import {C,x}from'./chunk-C5G179Xd.js';import {J,c as tS,l as Qt,fR as n,a5 as fh,a7 as si,by as it,fS as r$1,p as Jt,ac as Dr,bE as ff,aq as Sr,bW as JT,bu as dy}from'./main-WUGO6e7n.js';var A,S=J(()=>{tS();Qt();n();C();fh();si();tS();A=(()=>{class i extends x{constructor(){super(),this.onAdd=new it,this.onChangePasswordRow=new it,this.onRefresh=new it,this.onViewRow=new it,this.onEditRow=new it,this.onDeleteRow=new it,this.onDuplicateRow=new it,this.storageService=r$1.injector.get(Jt),this.currentUserService=r$1.injector.get(Dr);}ngAfterContentInit(){this.currentUserService.webSettingsChanged.pipe(ff(this.destroyed$),Sr(e=>!!e)).subscribe(e=>{this.defaultPageSize=e.defaultPageSize,this.dateFormatToDisplay=this.currentUserService.displayDateFormat,this.timeFormatToDisplay=this.currentUserService.displayTimeFormat,this.dateTimeFormatToDisplay=this.currentUserService.displayDateTimeFormat;});}add(){this.onAdd.emit(null);}changePassword(e){this.onChangePasswordRow.emit(e);}view(e){this.onViewRow.emit(e);}edit(e){this.onEditRow.emit(e);}delete(e){this.onDeleteRow.emit(e);}refresh(){this.onRefresh.emit(null);}static{this.\u0275fac=function(w){return new(w||i)};}static{this.\u0275dir=JT({type:i,inputs:{items:"items"},outputs:{onEditRow:"onEditRow",onDeleteRow:"onDeleteRow"},features:[dy]});}}return i})();});export{A,S};