import {J,eo as f,eq as r}from'./main-WUGO6e7n.js';var s,h=J(()=>{f();s=class n{toQueryString(){let i=[];if(this.authenticationTypes)for(let t=0;t<this.authenticationTypes.length;t++)this.authenticationTypes[t]!==null&&i.push("authenticationTypes="+encodeURIComponent(this.authenticationTypes[t].toString()));if(this.connectionIds)for(let t=0;t<this.connectionIds.length;t++)this.connectionIds[t]!==null&&i.push("connectionIds="+encodeURIComponent(this.connectionIds[t].toString()));if(this.filter!==null&&this.filter.toString()&&i.push("filter="+encodeURIComponent(this.filter.toString())),this.permissionPath!==null&&this.permissionPath.toString()&&i.push("permissionPath="+encodeURIComponent(this.permissionPath.toString())),this.permissions)for(let t=0;t<this.permissions.length;t++)this.permissions[t]!==null&&i.push("permissions="+encodeURIComponent(this.permissions[t].toString()));if(this.permissionSources)for(let t=0;t<this.permissionSources.length;t++)this.permissionSources[t]!==null&&i.push("permissionSources="+encodeURIComponent(this.permissionSources[t].toString()));if(this.vaultIds)for(let t=0;t<this.vaultIds.length;t++)this.vaultIds[t]!==null&&i.push("vaultIds="+encodeURIComponent(this.vaultIds[t].toString()));return this.key!==null&&this.key.toString()&&i.push("key="+encodeURIComponent(this.key.toString())),this.pageNumber!==null&&this.pageNumber.toString()&&i.push("pageNumber="+encodeURIComponent(this.pageNumber.toString())),this.pageSize!==null&&this.pageSize.toString()&&i.push("pageSize="+encodeURIComponent(this.pageSize.toString())),this.sortField!==null&&this.sortField.toString()&&i.push("sortField="+encodeURIComponent(this.sortField.toString())),this.sortOrder!==null&&this.sortOrder.toString()&&i.push("sortOrder="+encodeURIComponent(this.sortOrder.toString())),i.join("&")}constructor(i=null){this.clone=()=>new n(this),this.authenticationTypes=i&&i.authenticationTypes?i.authenticationTypes:[],this.connectionIds=r.manageDefaultArrayValue(i,"connectionIds",void 0),this.filter=r.manageDefaultValue(i,"filter",""),this.permissionPath=r.manageDefaultValue(i,"permissionPath",""),this.permissions=i&&i.permissions?i.permissions:[],this.permissionSources=i&&i.permissionSources?i.permissionSources:[],this.vaultIds=r.manageDefaultArrayValue(i,"vaultIds",void 0),this.key=r.manageDefaultValue(i,"key",""),this.pageNumber=r.manageDefaultValue(i,"pageNumber",0),this.pageSize=r.manageDefaultValue(i,"pageSize",0),this.sortField=r.manageDefaultValue(i,"sortField",""),this.sortOrder=r.manageDefaultValue(i,"sortOrder",1);}};});export{h,s};