import {J,eo as f,la as es,eq as r$1,le as b}from'./main-WUGO6e7n.js';var r,h=J(()=>{f();es();r=class n{toQueryString(){let e=[];if(this.dateFilter!==null&&this.dateFilter.toString()&&e.push("dateFilter="+encodeURIComponent(this.dateFilter.toString())),this.filter!==null&&this.filter.toString()&&e.push("filter="+encodeURIComponent(this.filter.toString())),this.messageType)for(let i=0;i<this.messageType.length;i++)this.messageType[i]!==null&&e.push("messageType="+encodeURIComponent(this.messageType[i].toString()));return this.fromDate!==null&&this.fromDate.toString()&&e.push("fromDate="+encodeURIComponent(this.fromDate.toString())),this.toDate!==null&&this.toDate.toString()&&e.push("toDate="+encodeURIComponent(this.toDate.toString())),this.key!==null&&this.key.toString()&&e.push("key="+encodeURIComponent(this.key.toString())),this.pageNumber!==null&&this.pageNumber.toString()&&e.push("pageNumber="+encodeURIComponent(this.pageNumber.toString())),this.pageSize!==null&&this.pageSize.toString()&&e.push("pageSize="+encodeURIComponent(this.pageSize.toString())),this.sortField!==null&&this.sortField.toString()&&e.push("sortField="+encodeURIComponent(this.sortField.toString())),this.sortOrder!==null&&this.sortOrder.toString()&&e.push("sortOrder="+encodeURIComponent(this.sortOrder.toString())),e.join("&")}constructor(e=null){this.clone=()=>new n(this),this.dateFilter=r$1.manageDefaultValue(e,"dateFilter",b.LastWeek),this.filter=r$1.manageDefaultValue(e,"filter",""),this.messageType=e&&e.messageType?e.messageType:[],this.fromDate=r$1.manageDefaultValue(e,"fromDate",null),this.toDate=r$1.manageDefaultValue(e,"toDate",null),this.key=r$1.manageDefaultValue(e,"key",""),this.pageNumber=r$1.manageDefaultValue(e,"pageNumber",0),this.pageSize=r$1.manageDefaultValue(e,"pageSize",0),this.sortField=r$1.manageDefaultValue(e,"sortField",""),this.sortOrder=r$1.manageDefaultValue(e,"sortOrder",1);}get dateFilterKey(){return b.getEnumKey(this.dateFilter)}};});export{h,r};