import{u as h}from"./index.bbd45d05.js";import{e as x}from"./miniprogram_enter.e4c6411c.js";import{d as y,b as B,c as s,e as V,f as A,h as e,i as u,u as o,g as t,t as a,m,E as _,b4 as S,R as k,S as I,_ as N}from"./index.0308b213.js";const P=c=>(k("data-v-5587bcd3"),c=c(),I(),c),U={class:"setting-form"},L={style:{display:"flex","flex-direction":"column"}},q=m("\u662F"),M=m("\u5426"),R=P(()=>t("text",{class:"tips"},"\u6CE8\u610F:\u8BF7\u5982\u5B9E\u586B\u5199,\u5426\u5219\u4F1A\u5BFC\u81F4\u4E0A\u4F20\u5931\u8D25\u3002",-1)),T={style:{display:"flex","flex-direction":"column"}},j={class:"operation-btn"},z=m("\u63D0\u4EA4"),G=y({setup(c){const l=B({version:"",desc:"",type:"miniProgram",is_contactPlugin:"1"}),p=window.location.protocol+"//"+window.location.host+"/",r=window.location.host,g=()=>{if(!l.version){_.error("\u8BF7\u8F93\u5165\u7248\u672C\u53F7");return}if(!l.desc){_.error("\u8BF7\u8F93\u5165\u63CF\u8FF0");return}const F=S.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});h(l).then(n=>{console.log("res",n),n.code==1?_.success("\u4E0A\u4F20\u6210\u529F"):_.error("\u4E0A\u4F20\u5931\u8D25"),F.close()})};return(F,n)=>{const f=s("el-input"),i=s("el-form-item"),D=s("el-radio"),w=s("el-radio-group"),v=s("el-image"),C=s("el-form"),b=s("el-button"),E=s("el-card");return V(),A("div",U,[e(E,{shadow:"always",style:{"margin-top":"20px"}},{default:u(()=>[e(C,{"label-width":"200px"},{default:u(()=>[e(i,{label:"\u7248\u672C\u53F7"},{default:u(()=>[e(f,{modelValue:o(l).version,"onUpdate:modelValue":n[0]||(n[0]=d=>o(l).version=d),placeholder:"\u4E0A\u4F20\u7684\u7248\u672C\u53F7"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u63CF\u8FF0"},{default:u(()=>[e(f,{modelValue:o(l).desc,"onUpdate:modelValue":n[1]||(n[1]=d=>o(l).desc=d),placeholder:"\u4E0A\u4F20\u7684\u7248\u672C\u63CF\u8FF0"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u662F\u5426\u5DF2\u5B89\u88C5\u4F01\u4E1A\u5FAE\u4FE1\u8054\u7CFB\u6211\u63D2\u4EF6"},{default:u(()=>[t("view",L,[e(w,{modelValue:o(l).is_contactPlugin,"onUpdate:modelValue":n[2]||(n[2]=d=>o(l).is_contactPlugin=d)},{default:u(()=>[e(D,{label:"1"},{default:u(()=>[q]),_:1}),e(D,{label:"0"},{default:u(()=>[M]),_:1})]),_:1},8,["modelValue"]),R])]),_:1}),e(i,{label:"\u670D\u52A1\u5668\u914D\u7F6E"},{default:u(()=>[t("view",T,[t("view",null," request\u5408\u6CD5\u57DF\u540D: "+a(p)),t("view",null," socket\u5408\u6CD5\u57DF\u540D: wss://"+a(o(r)),1),t("view",null," uploadFile\u5408\u6CD5\u57DF\u540D: "+a(p)),t("view",null," downloadFile\u5408\u6CD5\u57DF\u540D: "+a(p)),t("view",null," upd\u5408\u6CD5\u57DF\u540D: udp://"+a(o(r)),1),t("view",null," tcp\u5408\u6CD5\u57DF\u540D: tcp://"+a(o(r)),1),t("view",null," DNS\u9884\u89E3\u6790\u57DF\u540D: "+a(o(r)),1)])]),_:1}),e(i,{label:"\u5FEB\u6377\u767B\u5F55"},{default:u(()=>[e(v,{src:o(x),style:{width:"200px",height:"200px"}},null,8,["src"])]),_:1})]),_:1}),t("div",j,[e(b,{type:"primary",onClick:g},{default:u(()=>[z]),_:1})])]),_:1})])}}});const O=N(G,[["__scopeId","data-v-5587bcd3"]]);export{O as default};
