import{R as o}from"./Root-rl66e6VO.js";import"./index-D02r7Zsc.js";class d extends o{constructor(){super(),this.sortTypes=!1}async getSortTypes(){if(!this.sortTypes){await this.get("ws").getSortTypes(this.get("sessionId")),this.sortTypes=[];for(let t of this.getConfig().sortTypes)this.sortTypes.push(t);return this.sortTypes}return this.sortTypes}async sortedSearch(t,s,e){var i=[],r=await this.get("ws").searchResultsSorted(t,s,0,"*",e);for(let a in r)i.push(r[a].noticeId);return i}async getAdvancedSearchFields(t){if(!this.criteriaArray){this.criteriaArray=[];let s=await this.get("ws").getAdvancedSearchFields(t,!0);for(let e of s)this.getConfig().advancedSearchCriterias.findIndex(r=>e.id==r)!==-1&&this.criteriaArray.push(e);return this.criteriaArray}return this.criteriaArray}}export{d as default};
