import{a as p,b as u}from"./chunk-WMWTQN62.js";import{W as h}from"./chunk-OJKN3TNK.js";import{b as c}from"./chunk-QF5VF47J.js";import{a as m,b as s}from"./chunk-LJIIRAVZ.js";import{c as f}from"./chunk-5IQ74NUL.js";import{$c as l,ob as i,xb as n}from"./chunk-3FIHWXA5.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};
