import {J,eo as f,eq as r}from'./main-WUGO6e7n.js';var t,l=J(()=>{f();t=class s{toQueryString(){let e=[];if(this.filter!==null&&this.filter.toString()&&e.push("filter="+encodeURIComponent(this.filter.toString())),this.permissionOverride)for(let i=0;i<this.permissionOverride.length;i++)this.permissionOverride[i]!==null&&e.push("permissionOverride="+encodeURIComponent(this.permissionOverride[i].toString()));if(this.vaultPermissionOverride)for(let i=0;i<this.vaultPermissionOverride.length;i++)this.vaultPermissionOverride[i]!==null&&e.push("vaultPermissionOverride="+encodeURIComponent(this.vaultPermissionOverride[i].toString()));return 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 s(this),this.filter=r.manageDefaultValue(e,"filter",""),this.permissionOverride=e&&e.permissionOverride?e.permissionOverride:[],this.vaultPermissionOverride=e&&e.vaultPermissionOverride?e.vaultPermissionOverride:[],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);}};});export{l,t};