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