import{a as o}from"./redux-vendor-CfkcHgWN.js";import{L as l,j as n,h as s}from"./index-D80MdVQn.js";const u=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,role_key:e.role_key||""}});return t(s()),{data:a,status:r}}),A=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}}}),_=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}}}),S=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}}});export{S as a,u as b,A as c,_ as s};