import{d}from"./chunk-JTYOM5WI.js";import{c as u}from"./chunk-QQGYKLKF.js";import{a as b}from"./chunk-QV3XX5C6.js";import{E as h,Ra as f,Sa as p}from"./chunk-JTDXTMDS.js";import{a as m,b as s}from"./chunk-NSGLSIBS.js";import{Ab as l,gd as c,ka as n,rb as i}from"./chunk-QMYHTLAJ.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=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(s(this)).subscribe(t=>{let e=u(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(p),i(f),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};
