import{_ as q}from"./index.59e880ed.js";import{P as U,H as I,B as y,C as S,w as R,D as N}from"./element-plus.c4a2af8a.js";import{_ as j}from"./picker.d293012b.js";import{r as A,u as M}from"./index.2b468485.js";import{d as C,$ as W,s as H,af as E,o as a,c as K,U as o,L as t,u as L,M as F,K as m,a as u,S as _}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.2c826b32.js";import"./index.43539bbf.js";import"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import"./index.30d806cb.js";import"./index.a98f6bc2.js";import"./index.vue_vue_type_script_setup_true_lang.f10703bb.js";import"./usePaging.160b82b8.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.2903c55e.js";import"./vue.305b70ee.js";import"./sortablejs.9ffc750f.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";function P(D){return A.post({url:"/channel.mnp_settings/setConfig",params:D})}function T(){return A.get({url:"/channel.mnp_settings/getConfig"})}const $=u("div",{class:"font-medium mb-7"},"\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F",-1),z={class:"w-80"},G={class:"w-80"},J={class:"flex-1"},O=u("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A\u5BBD400px*\u9AD8400px\u3002jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),Q=u("div",{class:"font-medium mb-7"},"\u5F00\u53D1\u8005ID",-1),X={class:"w-80"},Y={class:"w-80"},Z=u("div",{class:"form-tips"}," \u5C0F\u7A0B\u5E8F\u8D26\u53F7\u767B\u5F55\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\uFF0C\u70B9\u51FB\u5F00\u53D1>\u5F00\u53D1\u8BBE\u7F6E->\u5F00\u53D1\u8005ID\uFF0C\u8BBE\u7F6EAppID\u548CAppSecret ",-1),uu=u("div",{class:"font-medium mb-7"},"\u670D\u52A1\u5668\u57DF\u540D",-1),eu={class:"flex-1 min-w-0"},ou={class:"sm:flex"},tu={class:"mr-4 sm:w-80 flex"},su=_("\u590D\u5236"),lu=u("div",{class:"form-tips"}," \u5C0F\u7A0B\u5E8F\u8D26\u53F7\u767B\u5F55\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\uFF0C\u70B9\u51FB\u5F00\u53D1>\u5F00\u53D1\u8BBE\u7F6E->\u670D\u52A1\u5668\u57DF\u540D\uFF0C\u586B\u5199https\u534F\u8BAE\u57DF\u540D ",-1),du={class:"flex-1 min-w-0"},iu={class:"sm:flex"},au={class:"mr-4 sm:w-80 flex"},nu=_("\u590D\u5236"),Fu=u("div",{class:"form-tips"}," \u5C0F\u7A0B\u5E8F\u8D26\u53F7\u767B\u5F55\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\uFF0C\u70B9\u51FB\u5F00\u53D1>\u5F00\u53D1\u8BBE\u7F6E->\u670D\u52A1\u5668\u57DF\u540D\uFF0C\u586B\u5199wss\u534F\u8BAE\u57DF\u540D ",-1),mu={class:"flex-1 min-w-0"},_u={class:"sm:flex"},pu={class:"mr-4 sm:w-80 flex"},ru=_("\u590D\u5236"),cu=u("div",{class:"form-tips"}," \u5C0F\u7A0B\u5E8F\u8D26\u53F7\u767B\u5F55\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\uFF0C\u70B9\u51FB\u5F00\u53D1>\u5F00\u53D1\u8BBE\u7F6E->\u670D\u52A1\u5668\u57DF\u540D\uFF0C\u586B\u5199https\u534F\u8BAE\u57DF\u540D ",-1),Du={class:"flex-1 min-w-0"},fu={class:"sm:flex"},Bu={class:"mr-4 sm:w-80 flex"},Eu=_("\u590D\u5236"),Au=u("div",{class:"form-tips"}," \u5C0F\u7A0B\u5E8F\u8D26\u53F7\u767B\u5F55\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\uFF0C\u70B9\u51FB\u5F00\u53D1>\u5F00\u53D1\u8BBE\u7F6E->\u670D\u52A1\u5668\u57DF\u540D\uFF0C\u586B\u5199https\u534F\u8BAE\u57DF\u540D ",-1),Cu={class:"flex-1 min-w-0"},vu={class:"sm:flex"},hu={class:"mr-4 sm:w-80 flex"},wu=_("\u590D\u5236"),bu=u("div",{class:"form-tips"}," \u5C0F\u7A0B\u5E8F\u8D26\u53F7\u767B\u5F55\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\uFF0C\u70B9\u51FB\u5F00\u53D1>\u5F00\u53D1\u8BBE\u7F6E->\u670D\u52A1\u5668\u57DF\u540D\uFF0C\u586B\u5199udp\u534F\u8BAE\u57DF\u540D ",-1),Vu=u("div",{class:"font-medium mb-7"},"\u4E1A\u52A1\u57DF\u540D",-1),gu={class:"flex-1 min-w-0"},xu={class:"sm:flex"},ku={class:"mr-4 sm:w-80 flex"},qu=_("\u590D\u5236"),Uu=u("div",{class:"form-tips"}," \u5C0F\u7A0B\u5E8F\u8D26\u53F7\u767B\u5F55\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\uFF0C\u70B9\u51FB\u5F00\u53D1>\u5F00\u53D1\u8BBE\u7F6E->\u4E1A\u52A1\u57DF\u540D\uFF0C\u586B\u5199\u4E1A\u52A1\u57DF\u540D ",-1),Iu=_("\u4FDD\u5B58"),yu=C({name:"weappConfig"}),ge=C({...yu,setup(D){const v=M(),e=W({name:"",original_id:"",qr_code:"",app_id:"",app_secret:"",business_domain:"",download_file_domain:"",request_domain:"",socket_domain:"",tcpDomain:"",udp_domain:"",upload_file_domain:""}),f=H(),h={app_id:[{required:!0,message:"\u8BF7\u8F93\u5165AppID",trigger:["blur","change"]}],app_secret:[{required:!0,message:"\u8BF7\u8F93\u5165AppSecret",trigger:["blur","change"]}]},B=async()=>{const r=await T();for(const s in e)e[s]=r[s]},w=async()=>{var r;await((r=f.value)==null?void 0:r.validate()),await P(e),B()};return B(),(r,s)=>{const b=U,c=I,i=y,d=S,V=j,n=R,g=N,x=q,p=E("copy"),k=E("perms");return a(),K("div",null,[o(c,{class:"!border-none",shadow:"never"},{default:t(()=>[o(b,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1A\u586B\u5199\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F\u5F00\u53D1\u914D\u7F6E\uFF0C\u8BF7\u524D\u5F80\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\u7533\u8BF7\u5C0F\u7A0B\u5E8F\u5E76\u5B8C\u6210\u8BA4\u8BC1",closable:!1,"show-icon":""})]),_:1}),o(g,{ref_key:"formRef",ref:f,model:e,rules:h,"label-width":L(v).isMobile?"80px":"160px"},{default:t(()=>[o(c,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[$,o(d,{label:"\u5C0F\u7A0B\u5E8F\u540D\u79F0",prop:"name"},{default:t(()=>[u("div",z,[o(i,{modelValue:e.name,"onUpdate:modelValue":s[0]||(s[0]=l=>e.name=l),placeholder:"\u8BF7\u8F93\u5165\u5C0F\u7A0B\u5E8F\u540D\u79F0"},null,8,["modelValue"])])]),_:1}),o(d,{label:"\u539F\u59CBID",prop:"original_id"},{default:t(()=>[u("div",G,[o(i,{modelValue:e.original_id,"onUpdate:modelValue":s[1]||(s[1]=l=>e.original_id=l),placeholder:"\u8BF7\u8F93\u5165\u539F\u59CBID"},null,8,["modelValue"])])]),_:1}),o(d,{label:"\u5C0F\u7A0B\u5E8F\u7801",prop:"qr_code"},{default:t(()=>[u("div",J,[u("div",null,[o(V,{modelValue:e.qr_code,"onUpdate:modelValue":s[2]||(s[2]=l=>e.qr_code=l),limit:1},null,8,["modelValue"])]),O])]),_:1})]),_:1}),o(c,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[Q,o(d,{label:"AppID",prop:"app_id"},{default:t(()=>[u("div",X,[o(i,{modelValue:e.app_id,"onUpdate:modelValue":s[3]||(s[3]=l=>e.app_id=l),placeholder:"\u8BF7\u8F93\u5165AppID"},null,8,["modelValue"])])]),_:1}),o(d,{label:"AppSecret",prop:"app_secret"},{default:t(()=>[u("div",Y,[o(i,{modelValue:e.app_secret,"onUpdate:modelValue":s[4]||(s[4]=l=>e.app_secret=l),placeholder:"\u8BF7\u8F93\u5165AppSecret"},null,8,["modelValue"])])]),_:1}),o(d,null,{default:t(()=>[Z]),_:1})]),_:1}),o(c,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[uu,o(d,{label:"request\u5408\u6CD5\u57DF\u540D",prop:"appId"},{default:t(()=>[u("div",eu,[u("div",ou,[u("div",tu,[o(i,{modelValue:e.request_domain,"onUpdate:modelValue":s[5]||(s[5]=l=>e.request_domain=l),disabled:""},null,8,["modelValue"])]),F((a(),m(n,null,{default:t(()=>[su]),_:1})),[[p,e.request_domain]])]),lu])]),_:1}),o(d,{label:"socket\u5408\u6CD5\u57DF\u540D"},{default:t(()=>[u("div",du,[u("div",iu,[u("div",au,[o(i,{modelValue:e.socket_domain,"onUpdate:modelValue":s[6]||(s[6]=l=>e.socket_domain=l),disabled:""},null,8,["modelValue"])]),F((a(),m(n,null,{default:t(()=>[nu]),_:1})),[[p,e.socket_domain]])]),Fu])]),_:1}),o(d,{label:"uploadFile\u5408\u6CD5\u57DF\u540D"},{default:t(()=>[u("div",mu,[u("div",_u,[u("div",pu,[o(i,{modelValue:e.upload_file_domain,"onUpdate:modelValue":s[7]||(s[7]=l=>e.upload_file_domain=l),disabled:""},null,8,["modelValue"])]),F((a(),m(n,null,{default:t(()=>[ru]),_:1})),[[p,e.upload_file_domain]])]),cu])]),_:1}),o(d,{label:"downloadFile\u5408\u6CD5\u57DF\u540D"},{default:t(()=>[u("div",Du,[u("div",fu,[u("div",Bu,[o(i,{modelValue:e.download_file_domain,"onUpdate:modelValue":s[8]||(s[8]=l=>e.download_file_domain=l),disabled:""},null,8,["modelValue"])]),F((a(),m(n,null,{default:t(()=>[Eu]),_:1})),[[p,e.download_file_domain]])]),Au])]),_:1}),o(d,{label:"udp\u5408\u6CD5\u57DF\u540D"},{default:t(()=>[u("div",Cu,[u("div",vu,[u("div",hu,[o(i,{modelValue:e.udp_domain,"onUpdate:modelValue":s[9]||(s[9]=l=>e.udp_domain=l),disabled:""},null,8,["modelValue"])]),F((a(),m(n,null,{default:t(()=>[wu]),_:1})),[[p,e.udp_domain]])]),bu])]),_:1})]),_:1}),o(c,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[Vu,o(d,{label:"\u4E1A\u52A1\u57DF\u540D"},{default:t(()=>[u("div",gu,[u("div",xu,[u("div",ku,[o(i,{modelValue:e.business_domain,"onUpdate:modelValue":s[10]||(s[10]=l=>e.business_domain=l),disabled:""},null,8,["modelValue"])]),F((a(),m(n,null,{default:t(()=>[qu]),_:1})),[[p,e.business_domain]])]),Uu])]),_:1})]),_:1})]),_:1},8,["model","label-width"]),F((a(),m(x,null,{default:t(()=>[o(n,{type:"primary",onClick:w},{default:t(()=>[Iu]),_:1})]),_:1})),[[k,["channel.mnp_settings/setConfig"]]])])}}});export{ge as default};