import{az as i,d as h,b as x,c as n,e as C,f as v,g as c,h as e,i as o,u as a,m as _,E as F,_ as V}from"./index.0308b213.js";const k=()=>i.request({url:"addon/keloop.web.index/getConfig"}),B=l=>i.request({url:"addon/keloop.web.index/setConfig",method:"POST",data:l}),E={class:"area-config"},w={class:"config-form"},y=_("\u5F00"),I=_("\u5173"),N={class:"operation-btn"},q=_("\u63D0\u4EA4"),A=h({setup(l){const t=x({open:0});(()=>{k().then(s=>{t.open=s.data?Number(s.data):0})})();const r=()=>{B(t).then(s=>{F.success("\u66F4\u65B0\u6210\u529F")})};return(s,d)=>{const u=n("el-radio"),p=n("el-radio-group"),f=n("el-form-item"),m=n("el-form"),g=n("el-button");return C(),v("div",E,[c("div",w,[e(m,{model:a(t),"label-width":"160px"},{default:o(()=>[e(f,{label:"\u5FEB\u8DD1\u8005\u5F00\u5173"},{default:o(()=>[e(p,{modelValue:a(t).open,"onUpdate:modelValue":d[0]||(d[0]=b=>a(t).open=b)},{default:o(()=>[e(u,{label:1},{default:o(()=>[y]),_:1}),e(u,{label:0},{default:o(()=>[I]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),c("div",N,[e(g,{type:"primary",onClick:r},{default:o(()=>[q]),_:1})])])}}});const T=V(A,[["__scopeId","data-v-4a648f65"]]);export{T as default};
