import{f as y}from"./chunk-LH4LY7P4.js";import{Ia as C,_a as _}from"./chunk-IDENGFF3.js";import{a as u,b as f}from"./chunk-IGFM5CCE.js";import{b as D}from"./chunk-YEPOPWON.js";import{a as R}from"./chunk-FPRDBDVD.js";import{ua as h}from"./chunk-TDUJNOEU.js";import{Db as a,dc as d,ec as m,fc as p,tc as l,wb as n,zd as g}from"./chunk-I3FGJX2C.js";import{d as r,n as b}from"./chunk-INB5GR2I.js";b();var e,c=(e=class{constructor(i,o){this._dialogRef=i,this._cdr=o}ngOnInit(){this._dialogRef.instance?.submitted.pipe(f(this)).subscribe(()=>this._cdr.markForCheck())}changed(i){this.selectedCategoriesId=i,this._dialogRef.submitData$$.next(this.selectedCategoriesId)}},e.\u0275fac=function(o){return new(o||e)(n(C),n(g))},e.\u0275cmp=a({type:e,selectors:[["tis-add-category-products-dialog"]],decls:1,vars:4,consts:[[3,"changed","checkboxMode","options","searchInput","multiple"]],template:function(o,s){o&1&&(m(0,"wk-tree-view",0),l("changed",function(v){return s.changed(v)}),p()),o&2&&d("checkboxMode","normal")("options",s.categories)("searchInput",!0)("multiple",!0)},dependencies:[h,_],encapsulation:2,changeDetection:0}),e);r([R(D.categories)],c.prototype,"categories",void 0);c=r([u()],c);var P=t=>({header:t("\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438"),cancelButton:{label:t("\u041E\u0442\u043C\u0435\u043D\u0430")},submitButton:{variant:"success",icon:y.Check,label:t("\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435")}}),j=t=>({type:"error",header:t("\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0430 \u0446\u0435\u043D"),message:t("\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430 \u043A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u044F. \u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u044E \u0434\u043B\u044F \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u044F \u0438\u043B\u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u041E\u0442\u043C\u0435\u043D\u0430")});export{c as a,P as b,j as c};
//# sourceMappingURL=chunk-G5MXNPSX.js.map
