import{h as g}from"./sikshya-admin.js";import{u as h}from"./sikshya-admin-useAsyncData-D6Z2fDHQ.js";function l(c){const{taxonomyRestBase:e,search:r,orderby:t,order:a,page:s=1,perPage:o=20,refreshNonce:i=0}=c;return h(async()=>{const n=new URLSearchParams({per_page:String(o),page:String(s),orderby:t,order:a,hide_empty:"false"}),p=r.trim();p&&n.set("search",p);const m=`/${e.replace(/^\//,"")}?${n.toString()}`;return g().getWithTotal(m)},[e,r,t,a,s,o,i])}export{l as u};
