import{d,e as b}from"./chunk-2MNVXWEX.js";import{D as h,Na as f,Oa as p}from"./chunk-YFBLRBP4.js";import{a as m,b as r}from"./chunk-VXSBHXCN.js";import{c as u}from"./chunk-RESH3J2M.js";import{Bb as c,Cd as l,oa as n,tb as s}from"./chunk-C2QKZJOP.js";import{d as a,n as D}from"./chunk-INB5GR2I.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-YSFWT5VI.js.map
