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