import{Ma as D}from"./chunk-QHAVDXDG.js";import{X as u,pa as _}from"./chunk-27KSTDMK.js";import{b as C}from"./chunk-7E4GTVCE.js";import{a as y}from"./chunk-HEWBVLHR.js";import{z as f}from"./chunk-GQAU5ACB.js";import{Bb as i,Ea as a,Ib as d,hc as p,ic as m,jc as g,k as c,qa as s,tc as l,yd as h}from"./chunk-ISMRT7VU.js";var r=class e{constructor(o,t){this._dialogRef=o,this._cdr=t,this.destroyRef=s(a)}ngOnInit(){this._dialogRef.instance?.submitted.pipe(f(this.destroyRef)).subscribe(()=>this._cdr.markForCheck())}changed(o){this.selectedCategoriesId=o,this._dialogRef.submitData$$.next(this.selectedCategoriesId)}static{this.\u0275fac=function(t){return new(t||e)(i(u),i(h))}}static{this.\u0275cmp=d({type:e,selectors:[["tis-add-category-products-dialog"]],decls:1,vars:4,consts:[[3,"changed","checkboxMode","options","searchInput","multiple"]],template:function(t,n){t&1&&(m(0,"wk-tree-view",0),l("changed",function(R){return n.changed(R)}),g()),t&2&&p("checkboxMode","normal")("options",n.categories)("searchInput",!0)("multiple",!0)},dependencies:[_],encapsulation:2,changeDetection:0})}};c([y(C.categories)],r.prototype,"categories",void 0);var j=e=>({header:e("\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438"),cancelButton:{label:e("\u041E\u0442\u043C\u0435\u043D\u0430")},submitButton:{variant:"success",icon:D.Check,label:e("\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435")}}),P=e=>({type:"error",header:e("\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0430 \u0446\u0435\u043D"),message:e("\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{r as a,j as b,P as c};
//# sourceMappingURL=chunk-TAW3CUZT.js.map
