import{d as b}from"./chunk-MX2TZFKO.js";import{c as u}from"./chunk-QQGYKLKF.js";import{a as d}from"./chunk-TYWDRTVX.js";import{E as h,Qa as f,Ra as p}from"./chunk-AWFGQCOU.js";import{a as m,b as s}from"./chunk-CKUQY5IU.js";import{Ab as l,gd as c,ka as n,rb as i}from"./chunk-AO7NUUXN.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=d,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=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};
