import{b5 as a}from"./index-2e57ee69.js";class c{static async myApplications(t=1){return await a.get(`/job-opportunities/applicants/my-applications?page=${t}`)}static async cancelApplication(t){return await a.delete(`/job-opportunities/applicants/cancel/${t}`)}static async myCVs(){return await a.get("/job-opportunities/applicants/my-cvs")}static async deleteMyCV(t){return await a.delete(`/job-opportunities/applicants/my-cvs/${t}`)}static async byOfferFilters(t){const i=p=>Object.entries(p).filter(([n,e])=>e!=null).map(([n,e])=>`${encodeURIComponent(n)}=${encodeURIComponent(e)}`).join("&");return await a.get(`/job-opportunities/applicants/by-offer/filters?${i(t)}`)}static async byOffer(t){const i=p=>Object.entries(p).filter(([n,e])=>e!=null).map(([n,e])=>`${encodeURIComponent(n)}=${encodeURIComponent(e)}`).join("&");return await a.get(`/job-opportunities/applicants/by-offer?${i(t)}`)}static async setState(t){return await a.put(`/job-opportunities/applicants/set-state/${t.applicantId}`,{state:t.state,feedback:t.feedback||null})}}export{c as J};
