import{a as p,b as u}from"./chunk-DL4FRBQZ.js";import{W as h}from"./chunk-TLX24J4H.js";import{a as c}from"./chunk-35QF24UV.js";import{a as m,b as s}from"./chunk-RBR4ZJRC.js";import{c as f}from"./chunk-DUTQUMXZ.js";import{Ab as n,gd as l,rb as i}from"./chunk-ZGECHOBP.js";import{b as a,i as F}from"./chunk-QOJKCMZT.js";F();var d=class r{constructor(t,e,o,b){this.fb=t,this.data=e,this.drawerRef=o,this.cdr=b,this.icons=c,this.filtersForm=this.buildForm()}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(u),i(p),i(l))}}static{this.\u0275cmp=n({type:r,selectors:[["tis-base-table-view"]],standalone:!1,decls:0,vars:0,template:function(e,o){},encapsulation:2})}};d=a([m()],d);export{d as a};
