import{a as o}from"./redux-vendor-B7uoacJt.js";import{L as l,j as n,h as s,X as c}from"./index-Vwb3Bce5.js";const A=o("SLAUGHTER_DELETE_ALLOCATED_SERVICE",async(e,{dispatch:t})=>{t(l());const{data:a,status:r}=await n.delete("steward-allocation/0/",{params:{steward_allocation_key:e.steward_allocation_key}});return t(s()),{data:a,status:r}}),_=o("SLAUGHTER_RETURN_ALLOCATED_SERVICE",async(e,{dispatch:t})=>{t(l());try{const{data:a,status:r}=await n.put("return-deleted-allocation/0/",e);return t(s()),{data:a,status:r}}catch(a){return t(s()),{error:a.response.data.result}}}),S=o("SLAUGHTER_ALLOCATE_STEWARD_SERVICE",async(e,{dispatch:t})=>{t(l());try{const{data:a,status:r}=await n.post("steward-allocation/",e);return t(s()),{data:a,status:r}}catch(a){return t(s()),{error:a.response.data.result}}}),L=o("SLAUGHTER_EDIT_ALLOCATION_STEWARD_SERVICE",async(e,{dispatch:t})=>{t(l());try{const{data:a,status:r}=await n.put("steward-allocation/0/",e);return t(s()),{data:a,status:r}}catch(a){return t(s()),{error:a.response.data.result}}}),T=o("SLAUGHTER_GET_GUILDS_FOR_ALLOCATE_SERVICE",async(e,{dispatch:t})=>{t(l());const{data:a,status:r}=await n.get("guilds/",{params:{role:c(),...e}});return t(s()),{data:a,status:r}}),R=o("SLAUGHTER_GET_COLDHOUSES_FOR_ALLOCATE_SERVICE",async(e,{dispatch:t})=>{t(l());const{data:a,status:r}=await n.get("cold-house/",{params:{role:c(),...e}});return t(s()),{data:a,status:r}});export{L as a,A as b,T as c,_ as d,R as e,S as s};
