import{a as n}from"./redux-vendor-B7uoacJt.js";import{L as o,j as u,h as r}from"./index-Cr86_nOs.js";const m=n("GET_DOCUMENT_STATES",async(e,{dispatch:t})=>{t(o());const{data:s,status:a}=await u.get("bar-documents-status/");return t(r()),{data:s,status:a}}),S=n("PROVINCE_SUBMIT_DOCUMENT_STATES",async(e,{dispatch:t})=>{try{t(o());const{data:s,status:a}=await u.put("bar-documents-status/0/",e);return t(r()),{data:s,status:a}}catch(s){return t(r()),{error:s.response.data.result}}});export{m as g,S as s};
