import{f as y}from"./chunk-Y5ITWXM5.js";import{Fa as C,Za as _}from"./chunk-NNMVEAHQ.js";import{a as u,b as f}from"./chunk-KXDO3JYP.js";import{b as D}from"./chunk-EVIBIPJS.js";import{a as R}from"./chunk-F24KRXZV.js";import{Cb as a,Ue as h,bc as d,cc as m,dc as p,nc as l,sd as g,vb as n}from"./chunk-PVUKHE45.js";import{d as r,n as b}from"./chunk-VD6R3735.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-HGBZ6ZFQ.js.map
