import {J,eo as f,la as es,eq as r,le as b}from'./main-WUGO6e7n.js';var s,u=J(()=>{f();es();s=class o{toQueryString(){let e=[];if(this.filter!==null&&this.filter.toString()&&e.push("filter="+encodeURIComponent(this.filter.toString())),this.messageTypes)for(let n=0;n<this.messageTypes.length;n++)this.messageTypes[n]!==null&&e.push("messageTypes="+encodeURIComponent(this.messageTypes[n].toString()));if(this.vaultIds)for(let n=0;n<this.vaultIds.length;n++)this.vaultIds[n]!==null&&e.push("vaultIds="+encodeURIComponent(this.vaultIds[n].toString()));if(this.userIds)for(let n=0;n<this.userIds.length;n++)this.userIds[n]!==null&&e.push("userIds="+encodeURIComponent(this.userIds[n].toString()));return this.ticketNumber!==null&&this.ticketNumber.toString()&&e.push("ticketNumber="+encodeURIComponent(this.ticketNumber.toString())),this.username!==null&&this.username.toString()&&e.push("username="+encodeURIComponent(this.username.toString())),this.folder!==null&&this.folder.toString()&&e.push("folder="+encodeURIComponent(this.folder.toString())),this.machineName!==null&&this.machineName.toString()&&e.push("machineName="+encodeURIComponent(this.machineName.toString())),this.onOpenComment!==null&&this.onOpenComment.toString()&&e.push("onOpenComment="+encodeURIComponent(this.onOpenComment.toString())),this.onCloseComment!==null&&this.onCloseComment.toString()&&e.push("onCloseComment="+encodeURIComponent(this.onCloseComment.toString())),this.dateFilter!==null&&this.dateFilter.toString()&&e.push("dateFilter="+encodeURIComponent(this.dateFilter.toString())),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 o(this),this.filter=r.manageDefaultValue(e,"filter",""),this.messageTypes=e&&e.messageTypes?e.messageTypes:[],this.vaultIds=r.manageDefaultArrayValue(e,"vaultIds",void 0),this.userIds=r.manageDefaultArrayValue(e,"userIds",void 0),this.ticketNumber=r.manageDefaultValue(e,"ticketNumber",""),this.username=r.manageDefaultValue(e,"username",""),this.folder=r.manageDefaultValue(e,"folder",""),this.machineName=r.manageDefaultValue(e,"machineName",""),this.onOpenComment=r.manageDefaultValue(e,"onOpenComment",""),this.onCloseComment=r.manageDefaultValue(e,"onCloseComment",""),this.dateFilter=r.manageDefaultValue(e,"dateFilter",b.Last7Days),this.fromDate=r.manageDefaultValue(e,"fromDate",null),this.toDate=r.manageDefaultValue(e,"toDate",null),this.key=r.manageDefaultValue(e,"key",""),this.pageNumber=r.manageDefaultValue(e,"pageNumber",0),this.pageSize=r.manageDefaultValue(e,"pageSize",0),this.sortField=r.manageDefaultValue(e,"sortField",""),this.sortOrder=r.manageDefaultValue(e,"sortOrder",1);}get dateFilterKey(){return b.getEnumKey(this.dateFilter)}};});export{s,u};