import{aa as E,d as S,a6 as D,b as v,c as p,e as f,f as b,g as V,u as o,k as C,i as u,h as t,A as F,m as d,E as x,R as k,S as y,_ as I}from"./index.0308b213.js";const U=()=>E.request({url:"agent/plugin.laba.setting/getSetting",method:"GET"}),N=_=>E.request({url:"agent/plugin.laba.setting/setSetting",method:"POST",data:_}),q=_=>(k("data-v-614bc082"),_=_(),y(),_),w={class:"area-config"},P={class:"config-form"},T=d("\u5F00"),O=d("\u5173"),G=d("\u5F00\u542F"),M=d("\u5173\u95ED"),R=q(()=>V("div",{class:"tn-form-item__tips"},"\u5F00\u542F\u6B64\u9879\u8BBE\u7F6E\u540E\uFF0C\u5916\u5356\u8BA2\u5355\u5728\u901A\u77E5\u9A91\u624B\u540E\u4F1A\u81EA\u52A8\u63A8\u9001\u5230\u4E91\u5587\u53ED\u914D\u9001",-1)),j=d("\u6B63\u5F0F"),z=d("\u6D4B\u8BD5"),H=d("\u63D0\u4EA4"),J={key:1},K=S({setup(_){const{OpPlatform:m}=D(),e=v({status:0,is_online:0,auto_push:0,appid:"",appSecret:"",title:""}),g=()=>{m.value==="agent"&&U().then(s=>{e.status=s.status||0,e.is_online=s.is_online||0,e.auto_push=s.auto_push||0,e.appid=s.appid||"",e.appSecret=s.appSecret||"",e.title=s.title||""})};g();const A=()=>{m.value==="agent"&&N(e).then(s=>{x.success("\u66F4\u65B0\u6210\u529F"),g()})};return(s,l)=>{const i=p("el-radio"),c=p("el-radio-group"),n=p("el-form-item"),r=p("el-input"),h=p("el-button"),B=p("el-form");return f(),b("div",w,[V("div",P,[o(m)=="agent"?(f(),C(B,{key:0,model:o(e),"label-width":"160px"},{default:u(()=>[t(n,{label:"\u4E91\u5587\u53ED\u5F00\u5173\u5F00\u5173"},{default:u(()=>[t(c,{modelValue:o(e).status,"onUpdate:modelValue":l[0]||(l[0]=a=>o(e).status=a)},{default:u(()=>[t(i,{label:1},{default:u(()=>[T]),_:1}),t(i,{label:0},{default:u(()=>[O]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(n,{label:"\u81EA\u52A8\u63A8\u9001\u8BA2\u5355"},{default:u(()=>[t(c,{modelValue:o(e).auto_push,"onUpdate:modelValue":l[1]||(l[1]=a=>o(e).auto_push=a)},{default:u(()=>[t(i,{label:1},{default:u(()=>[G]),_:1}),t(i,{label:0},{default:u(()=>[M]),_:1})]),_:1},8,["modelValue"]),R]),_:1}),t(n,{label:"\u8FD0\u884C\u73AF\u5883"},{default:u(()=>[t(c,{modelValue:o(e).is_online,"onUpdate:modelValue":l[2]||(l[2]=a=>o(e).is_online=a)},{default:u(()=>[t(i,{label:1},{default:u(()=>[j]),_:1}),t(i,{label:0},{default:u(()=>[z]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(n,{label:"\u5F00\u53D1\u8005ID"},{default:u(()=>[t(r,{modelValue:o(e).appid,"onUpdate:modelValue":l[3]||(l[3]=a=>o(e).appid=a)},null,8,["modelValue"])]),_:1}),t(n,{label:"appSecret"},{default:u(()=>[t(r,{modelValue:o(e).appSecret,"onUpdate:modelValue":l[4]||(l[4]=a=>o(e).appSecret=a)},null,8,["modelValue"])]),_:1}),t(n,{label:"\u5E73\u53F0\u540D"},{default:u(()=>[t(r,{modelValue:o(e).title,"onUpdate:modelValue":l[5]||(l[5]=a=>o(e).title=a)},null,8,["modelValue"])]),_:1}),t(n,{label:"",class:"continer-item"},{default:u(()=>[t(h,{type:"primary",onClick:A},{default:u(()=>[H]),_:1})]),_:1})]),_:1},8,["model"])):F("",!0),o(m)=="shangpu"?(f(),b("span",J,"\u8BF7\u5728\u4EE3\u7406\u540E\u53F0\u914D\u7F6E")):F("",!0)])])}}});const Q=I(K,[["__scopeId","data-v-614bc082"]]);export{Q as default};
