import{az as p,d as y,a6 as B,b as v,c as a,e as C,f as x,g as l,h as o,i as s,u as n,m as u,E as i,_ as F}from"./index.0308b213.js";import{g as E,u as V}from"./area.621453a9.js";const D=()=>p.request({url:"addon/area.web.index/config"}),I=d=>p.request({url:"addon/area.web.index/config",method:"POST",data:d}),N={class:"area-config"},w={class:"operation-btn"},k=u("\u63D0\u4EA4"),q={class:"config-form"},P=u("\u9ED8\u8BA4"),O=u("\u6307\u5B9A\u914D\u9001\u533A\u57DF"),T=y({setup(d){const{OpPlatform:r}=B(),t=v({address_type:1});(()=>{r.value==="agent"?E().then(e=>{t.address_type=e.address_type?Number(e.address_type):0}):D().then(e=>{t.address_type=e.address_type?Number(e.address_type):0})})();const f=()=>{r.value==="agent"?V(t).then(e=>{i.success("\u66F4\u65B0\u6210\u529F")}):I(t).then(e=>{i.success("\u66F4\u65B0\u6210\u529F")})};return(e,_)=>{const m=a("el-button"),c=a("el-radio"),g=a("el-radio-group"),A=a("el-form-item"),b=a("el-form");return C(),x("div",N,[l("div",w,[o(m,{type:"primary",onClick:f},{default:s(()=>[k]),_:1})]),l("div",q,[o(b,{model:n(t),"label-width":"160px"},{default:s(()=>[o(A,{label:"\u987E\u5BA2\u6536\u8D27\u5730\u5740\u8BBE\u7F6E\u65B9\u5F0F"},{default:s(()=>[o(g,{modelValue:n(t).address_type,"onUpdate:modelValue":_[0]||(_[0]=h=>n(t).address_type=h)},{default:s(()=>[o(c,{label:0},{default:s(()=>[P]),_:1}),o(c,{label:1},{default:s(()=>[O]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])])])}}});const U=F(T,[["__scopeId","data-v-e522c0c1"]]);export{U as default};
