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