import {C as C$1,x}from'./chunk-C5G179Xd.js';import {J,a5 as fh,c as tS,a7 as si,G as vl,b2 as v,bE as ff,w as wo,ac as Dr,M as ie,bc as I,bW as JT,bu as dy}from'./main-WUGO6e7n.js';var C,S=J(()=>{C$1();fh();tS();si();vl();v();C=(()=>{class t extends x{constructor(i,r,h){super(),this.currentUserService=i,this.route=r,this.longOperationIndicatorService=h,this.defaultSortOrder=1;}loadList(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.longOperationIndicatorService.showIndicator(),this.getList();}buildParamsFromQueryParams(i){this.parameters=this.buildQueryParams(i),this.paging=this.buildPagingFromQueryParams(i);}subscribeToQueryParams(){this.route.queryParams.pipe(ff(this.destroyed$)).subscribe(i=>{this.buildParamsFromQueryParams(i),this.loadList();});}buildPagingFromQueryParams(i){return {pageNumber:i.pagenumber&&(!this.totalCount||this.paging.pageSize<this.totalCount)?+i.pagenumber:1,pageSize:+i.pagesize||this.currentUserService.webSettingsSnapshot.defaultPageSize,sortOrder:i&&i.sortorder?+i.sortorder:this.defaultSortOrder,sortField:i.sortfield}}static{this.\u0275fac=function(r){return new(r||t)(wo(Dr),wo(ie),wo(I))};}static{this.\u0275dir=JT({type:t,features:[dy]});}}return t})();});export{C,S};