import{e as d,f as b}from"./chunk-LH4LY7P4.js";import{B as h,La as f,Ma as p}from"./chunk-IDENGFF3.js";import{a as m,b as r}from"./chunk-IGFM5CCE.js";import{c as u}from"./chunk-WUNNKW5D.js";import{Db as c,ma as n,wb as s,zd as l}from"./chunk-I3FGJX2C.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-J43C5WP7.js.map
