import{e as d,f as b}from"./chunk-Y5ITWXM5.js";import{B as h,Ia as f,Ja as p}from"./chunk-NNMVEAHQ.js";import{a as m,b as r}from"./chunk-KXDO3JYP.js";import{c as u}from"./chunk-RTKDH4JU.js";import{Cb as c,la as n,sd as l,vb as s}from"./chunk-PVUKHE45.js";import{d as a,n as D}from"./chunk-VD6R3735.js";D();var t,F=(t=class{constructor(i,e,o,v){this.fb=i,this.data=e,this.drawerRef=o,this.cdr=v,this.icons=b,this.filtersForm=this.buildForm(),this.localizationService=n(d)}ngOnInit(){this._initialValue=this.filtersForm.value,this._setupFilters(),this._initSub(),this._initResetFormSub()}_initSub(){this.filtersForm.valueChanges.pipe(r(this)).subscribe(i=>{let e=u(this._initialValue,i)?null:i;this.drawerRef.submitData$$.next(e)})}_setupFilters(){this.data.filters&&(this.drawerRef.submitData$$.next(this.data.filters),this.filtersForm.patchValue(this.patchValue()))}_initResetFormSub(){this.drawerRef.instance?.canceled.pipe(r(this)).subscribe(()=>{this.filtersForm.reset(),this.cdr.detectChanges()})}},t.\u0275fac=function(e){return new(e||t)(s(h),s(p),s(f),s(l))},t.\u0275cmp=c({type:t,selectors:[["tis-base-table-view"]],decls:0,vars:0,template:function(e,o){},encapsulation:2}),t);F=a([m()],F);export{F as a};
//# sourceMappingURL=chunk-KHQCZWHX.js.map
