import{a as u,b as d}from"./chunk-TNAVBFSM.js";import{d as b}from"./chunk-GPCBDOQR.js";import{c as f}from"./chunk-QQGYKLKF.js";import{a as p}from"./chunk-XS5S3HQB.js";import{E as h}from"./chunk-D2E2EQ56.js";import{a as m,b as s}from"./chunk-XVWHZ5TH.js";import{Bb as l,gd as c,la as n,sb as i}from"./chunk-LEOKSAW2.js";import{d as a,n as _}from"./chunk-HE7HQ6LI.js";_();var F=class r{constructor(t,e,o,v){this.fb=t,this.data=e,this.drawerRef=o,this.cdr=v,this.icons=p,this.filtersForm=this.buildForm(),this.localizationService=n(b)}ngOnInit(){this._initialValue=this.filtersForm.value,this._setupFilters(),this._initSub(),this._initResetFormSub()}_initSub(){this.filtersForm.valueChanges.pipe(s(this)).subscribe(t=>{let e=f(this._initialValue,t)?null:t;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(s(this)).subscribe(()=>{this.filtersForm.reset(),this.cdr.detectChanges()})}static{this.\u0275fac=function(e){return new(e||r)(i(h),i(d),i(u),i(c))}}static{this.\u0275cmp=l({type:r,selectors:[["tis-base-table-view"]],decls:0,vars:0,template:function(e,o){},encapsulation:2})}};F=a([m()],F);export{F as a};
