import{a}from"./redux-vendor-B7uoacJt.js";import{j as n,L as o,h as u}from"./index-Vwb3Bce5.js";const S=a("SLAUGHTER_SUBMIT_DISPENSER",async(e,{dispatch:r})=>{try{const{data:s,status:t}=await n.post("dispenser/",e);return r(o()),{data:s,status:t}}catch(s){return r(u()),{error:s.response.data.result}}}),p=a("SLAUGHTER_EDIT_DISPENSER",async(e,{dispatch:r})=>{try{const{data:s,status:t}=await n.put("dispenser/0/",e);return r(o()),{data:s,status:t}}catch(s){return r(u()),{error:s.response.data.result}}});export{p as a,S as s};
