import{a as d,b as P}from"./chunk-TRDH7I7Q.js";import{a as c,b as f}from"./chunk-LK2BF24O.js";import{P as u,Q as b}from"./chunk-DCSOZT4N.js";import{h as n,o as l}from"./chunk-HO2J6YLX.js";import{Eb as e,Gd as g,Qb as o,Sb as a,ia as s,na as p}from"./chunk-JSJB5BKT.js";import{e as m}from"./chunk-SZAW6ZBW.js";var C,S=m(()=>{P();p();g();b();l();f();C=(()=>{class t extends d{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(s(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)(e(u),e(n),e(c))}}static{this.\u0275dir=o({type:t,features:[a]})}}return t})()});export{C as a,S as b};
