import{aa as p,d as y,b as C,c as a,e as B,f as v,g as r,h as t,i as o,u as _,m as l,E as x,R as E,S,_ as D}from"./index.0308b213.js";const V=e=>p.request({url:"agent/plugin.helibao.setting/getConfig",params:e}),A=e=>p.request({url:"agent/plugin.helibao.setting/setConfig",method:"POST",data:e}),F=e=>(E("data-v-60cd3982"),e=e(),S(),e),I={class:"area-config"},k=F(()=>r("h1",{style:{"font-size":"20px"}},"\u57FA\u672C\u8BBE\u7F6E",-1)),q={class:"config-form"},w=l("\u5408\u5229\u5B9D"),N=l("\u667A\u4ED8"),T=l("\u63D0\u4EA4"),z=y({setup(e){const s=C({type:1}),u=()=>{V(s).then(n=>{n=n.data,s.type=n.type})};u();const f=()=>{A(s).then(n=>{x.success("\u4FDD\u5B58\u6210\u529F"),u()})};return(n,c)=>{const d=a("el-radio"),m=a("el-radio-group"),i=a("el-form-item"),g=a("el-button"),h=a("el-form");return B(),v("div",I,[k,r("div",q,[t(h,{model:_(s),"label-width":"160px"},{default:o(()=>[t(i,{label:"\u7C7B\u578B"},{default:o(()=>[t(m,{modelValue:_(s).type,"onUpdate:modelValue":c[0]||(c[0]=b=>_(s).type=b)},{default:o(()=>[t(d,{label:1},{default:o(()=>[w]),_:1}),t(d,{label:2},{default:o(()=>[N]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(i,null,{default:o(()=>[t(g,{type:"primary",onClick:f},{default:o(()=>[T]),_:1})]),_:1})]),_:1},8,["model"])])])}}});const H=D(z,[["__scopeId","data-v-60cd3982"]]);export{H as default};
