import{u as x}from"./index.bbd45d05.js";import{e as V}from"./miniprogram_enter.e4c6411c.js";import{g as k}from"./basic.c1088fde.js";import{d as S,b as I,r as N,c as s,e as D,f as C,h as u,i as o,u as e,A as P,g as t,t as i,m as f,E as p,b4 as U,R as L,S as q,_ as M}from"./index.0308b213.js";const v=_=>(L("data-v-73bf6aaa"),_=_(),q(),_),R={class:"setting-form"},T={key:0,class:"tn-form-item__tips--green",style:{color:"#67C23A"}},j=v(()=>t("div",{class:"tn-form-item__tips--red"}," \u6CE8\u610F\uFF1A\u6B64\u5904\u7528\u4E8E\u5C0F\u7A0B\u5E8F\u4EE3\u7801\u4E0A\u4F20\u3002\u8BF7\u767B\u5F55\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F\u540E\u53F0\uFF0C\u5728\u5F00\u53D1\u7BA1\u7406-\u5F00\u53D1\u8BBE\u7F6E-\u5C0F\u7A0B\u5E8F\u4EE3\u7801\u4E0A\u4F20-\u5C0F\u7A0B\u5E8F\u4EE3\u7801\u4E0A\u4F20\u5BC6\u94A5,\u4E0B\u8F7D\u3001\u586B\u5199\u3002 ",-1)),z={style:{display:"flex","flex-direction":"column"}},G=f("\u662F"),H=f("\u5426"),J=v(()=>t("text",{class:"tips"},"\u6CE8\u610F:\u8BF7\u5982\u5B9E\u586B\u5199,\u5426\u5219\u4F1A\u5BFC\u81F4\u4E0A\u4F20\u5931\u8D25\u3002",-1)),K={style:{display:"flex","flex-direction":"column"}},O={class:"operation-btn"},Q=f("\u63D0\u4EA4"),W=S({setup(_){const l=I({version:"",desc:"",type:"miniProgram_manager",is_contactPlugin:"1",miniprogram_upload_private_key:""}),E=N(!1);(()=>{k().then(d=>{d.wxapp.miniprogram_upload_private_key&&(E.value=!0)})})();const F=window.location.protocol+"//"+window.location.host+"/",c=window.location.host,A=()=>{if(!l.version){p.error("\u8BF7\u8F93\u5165\u7248\u672C\u53F7");return}if(!l.desc){p.error("\u8BF7\u8F93\u5165\u63CF\u8FF0");return}const d=U.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});x(l).then(a=>{console.log("res",a),a.code==1?p.success("\u4E0A\u4F20\u6210\u529F"):p.error("\u4E0A\u4F20\u5931\u8D25"),d.close()}).catch(()=>{d.close()})};return(d,a)=>{const m=s("el-input"),r=s("el-form-item"),g=s("el-radio"),B=s("el-radio-group"),w=s("el-image"),y=s("el-form"),b=s("el-button"),h=s("el-card");return D(),C("div",R,[u(h,{shadow:"always",style:{"margin-top":"20px"}},{default:o(()=>[u(y,{"label-width":"200px"},{default:o(()=>[u(r,{label:"\u7248\u672C\u53F7"},{default:o(()=>[u(m,{modelValue:e(l).version,"onUpdate:modelValue":a[0]||(a[0]=n=>e(l).version=n),placeholder:"\u4E0A\u4F20\u7684\u7248\u672C\u53F7"},null,8,["modelValue"])]),_:1}),u(r,{label:"\u63CF\u8FF0"},{default:o(()=>[u(m,{modelValue:e(l).desc,"onUpdate:modelValue":a[1]||(a[1]=n=>e(l).desc=n),placeholder:"\u4E0A\u4F20\u7684\u7248\u672C\u63CF\u8FF0"},null,8,["modelValue"])]),_:1}),u(r,{label:"\u5C0F\u7A0B\u5E8F\u4EE3\u7801\u4E0A\u4F20\u5BC6\u94A5"},{default:o(()=>[u(m,{modelValue:e(l).miniprogram_upload_private_key,"onUpdate:modelValue":a[2]||(a[2]=n=>e(l).miniprogram_upload_private_key=n),type:"textarea",rows:10},null,8,["modelValue"]),E.value?(D(),C("div",T," \u5DF2\u4E0A\u4F20 ")):P("",!0),j]),_:1}),u(r,{label:"\u662F\u5426\u5DF2\u5B89\u88C5\u4F01\u4E1A\u5FAE\u4FE1\u8054\u7CFB\u6211\u63D2\u4EF6"},{default:o(()=>[t("view",z,[u(B,{modelValue:e(l).is_contactPlugin,"onUpdate:modelValue":a[3]||(a[3]=n=>e(l).is_contactPlugin=n)},{default:o(()=>[u(g,{label:"1"},{default:o(()=>[G]),_:1}),u(g,{label:"0"},{default:o(()=>[H]),_:1})]),_:1},8,["modelValue"]),J])]),_:1}),u(r,{label:"\u670D\u52A1\u5668\u914D\u7F6E"},{default:o(()=>[t("view",K,[t("view",null," request\u5408\u6CD5\u57DF\u540D: "+i(F)),t("view",null," socket\u5408\u6CD5\u57DF\u540D: wss://"+i(e(c)),1),t("view",null," uploadFile\u5408\u6CD5\u57DF\u540D: "+i(F)),t("view",null," downloadFile\u5408\u6CD5\u57DF\u540D: "+i(F)),t("view",null," upd\u5408\u6CD5\u57DF\u540D: udp://"+i(e(c)),1),t("view",null," tcp\u5408\u6CD5\u57DF\u540D: tcp://"+i(e(c)),1),t("view",null," DNS\u9884\u89E3\u6790\u57DF\u540D: "+i(e(c)),1)])]),_:1}),u(r,{label:"\u5FEB\u6377\u767B\u5F55"},{default:o(()=>[u(w,{src:e(V),style:{width:"200px",height:"200px"}},null,8,["src"])]),_:1})]),_:1}),t("div",O,[u(b,{type:"primary",onClick:A},{default:o(()=>[Q]),_:1})])]),_:1})])}}});const eu=M(W,[["__scopeId","data-v-73bf6aaa"]]);export{eu as default};
