import{cx as i,U as c,q as u,H as d,cy as p,cz as g}from"./index-C5GbdPxY.js";const l=i("settings",{state:()=>({loading:!1}),actions:{setLoading(t){this.loading=t}}});function L(){const t=c(),r=u(),{t:o}=d(),s=l();return{store:s,getSettings:async e=>{s.setLoading(!0);try{const a=await g(e);return s.setLoading(!1),a.data.body}catch{return t.error(o("core::errors.failed_to_load_data")),s.setLoading(!1),!1}},update:async(e,a)=>{const n=await p(e,a);return r.setSettings(n.data.body.app_settings),n}}}var y=(t=>(t.General="general",t.Application="application",t.Currency="currency",t.Mail="mail",t.Filesystem="filesystem",t))(y||{});export{y as S,L as u};
