import{_ as q}from"./index.b3d3ef39.js";import{K as I,I as U,B as y,C as S,w as R,D as N}from"./element-plus.7a22678c.js";import{_ as j}from"./picker.6ba63c06.js";import{r as A,u as K}from"./index.c1e51f45.js";import{d as C,_ as T,s as W,ae as E,o as a,c as J,T as o,K as t,u as L,L as F,J as m,a as u,R as _}from"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.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.06992a2f.js";import"./index.aa0774db.js";import"./index.vue_vue_type_script_setup_true_lang.cabb2d32.js";import"./index.77d6aeff.js";import"./index.623bbb33.js";import"./index.vue_vue_type_script_setup_true_lang.aa7eacaa.js";import"./usePaging.2a59f422.js";import"./vue3-video-play.5aacf00d.js";import"./vuedraggable.0b47cde1.js";import"./vue.118acae4.js";import"./sortablejs.9ffc750f.js";import"./lodash.ec5da75f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.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.241b9b5d.js";function M(D){return A.post({url:"/channel.mnp_settings/setConfig",params:D})}function z(){return A.get({url:"/channel.mnp_settings/getConfig"})}const G=u("div",{class:"font-medium mb-7"},"\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F",-1),H={class:"w-80"},O={class:"w-80"},P={class:"flex-1"},Q=u("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A\u5BBD400px*\u9AD8400px\u3002jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),X=u("div",{class:"font-medium mb-7"},"\u5F00\u53D1\u8005ID",-1),Y={class:"w-80"},Z={class:"w-80"},$=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"),Iu=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),Uu=_("\u4FDD\u5B58"),yu=C({name:"weappConfig"}),ge=C({...yu,setup(D){const v=K(),e=T({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=W(),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 z();for(const s in e)e[s]=r[s]},w=async()=>{var r;await((r=f.value)==null?void 0:r.validate()),await M(e),B()};return B(),(r,s)=>{const b=I,c=U,i=y,d=S,V=j,n=R,g=N,x=q,p=E("copy"),k=E("perms");return a(),J("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(()=>[G,o(d,{label:"\u5C0F\u7A0B\u5E8F\u540D\u79F0",prop:"name"},{default:t(()=>[u("div",H,[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",O,[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",P,[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"])]),Q])]),_:1})]),_:1}),o(c,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[X,o(d,{label:"AppID",prop:"app_id"},{default:t(()=>[u("div",Y,[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",Z,[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(()=>[$]),_: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]])]),Iu])]),_:1})]),_:1})]),_:1},8,["model","label-width"]),F((a(),m(x,null,{default:t(()=>[o(n,{type:"primary",onClick:w},{default:t(()=>[Uu]),_:1})]),_:1})),[[k,["channel.mnp_settings/setConfig"]]])])}}});export{ge as default};