import{_ as U}from"./index.fade38ae.js";import{S,I,B as R,C as q,w as j,G as T,H as K,D as L}from"./element-plus.10e48c93.js";import{_ as N}from"./picker.6d288fdb.js";import{g as O,s as G}from"./wx_oa.ba7b6328.js";import{u as J}from"./index.5a613cc5.js";import{d as A,$ as M,s as z,af as D,o as F,c as H,U as u,L as t,a as e,u as l,M as p,K as c,R as n}from"./@vue.51d7f2d8.js";import"./@vueuse.ec90c285.js";import"./@element-plus.c80b8015.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.cfb3fa32.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";import"./index.3060c089.js";import"./index.vue_vue_type_script_setup_true_lang.579ca8f7.js";import"./index.739fab55.js";import"./index.1f161941.js";import"./index.vue_vue_type_script_setup_true_lang.c7e5e9c8.js";import"./usePaging.60d02673.js";import"./vue3-video-play.b911321b.js";import"./vuedraggable.0cb40d3a.js";import"./vue.5de34049.js";import"./sortablejs.ef73fc5c.js";import"./lodash.08438971.js";import"./axios.105476b3.js";import"./vue-router.9f65afb1.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.7ac6f233.js";import"./color.44a05936.js";import"./clone.0afcbf90.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.86067895.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.40d5feba.js";const Z=e("div",{class:"font-medium mb-7"},"\u5FAE\u4FE1\u516C\u4F17\u53F7",-1),$={class:"w-80"},P={class:"w-80"},Q=e("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A\u5BBD400px*\u9AD8400px\u3002jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),W=e("div",{class:"font-medium mb-7"},"\u516C\u4F17\u53F7\u5F00\u53D1\u8005\u4FE1\u606F",-1),X={class:"w-80"},Y={class:"w-80"},uu=e("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),eu=e("div",{class:"font-medium mb-7"},"\u670D\u52A1\u5668\u914D\u7F6E",-1),ou={class:"flex-1 min-w-0"},lu={class:"sm:flex"},tu={class:"mr-4 sm:w-80 flex"},su=e("div",{class:"form-tips"}," \u767B\u5F55\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\uFF0C\u70B9\u51FB\u5F00\u53D1>\u57FA\u672C\u914D\u7F6E>\u670D\u52A1\u5668\u914D\u7F6E\uFF0C\u586B\u5199\u670D\u52A1\u5668\u5730\u5740\uFF08URL\uFF09 ",-1),au={class:"flex-1 min-w-0"},iu={class:"w-80"},du=e("div",{class:"form-tips"}," \u767B\u5F55\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\uFF0C\u70B9\u51FB\u5F00\u53D1>\u57FA\u672C\u914D\u7F6E>\u670D\u52A1\u5668\u914D\u7F6E\uFF0C\u8BBE\u7F6E\u4EE4\u724CToken\u3002\u4E0D\u586B\u9ED8\u8BA4\u4E3A\u201Clikeshop\u201D ",-1),nu={class:"flex-1 min-w-0"},Fu={class:"w-80"},ru=e("div",{class:"form-tips"}," \u6D88\u606F\u52A0\u5BC6\u5BC6\u94A5\u753143\u4F4D\u5B57\u7B26\u7EC4\u6210\uFF0C\u5B57\u7B26\u8303\u56F4\u4E3AA-Z,a-z,0-9 ",-1),mu={class:"flex-1 min-w-0"},_u=e("div",{class:"font-medium mb-7"},"\u529F\u80FD\u8BBE\u7F6E",-1),pu={class:"flex-1 min-w-0"},cu={class:"sm:flex"},Bu={class:"mr-4 sm:w-80 flex"},Eu=e("div",{class:"form-tips"}," \u767B\u5F55\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\uFF0C\u70B9\u51FB\u8BBE\u7F6E>\u516C\u4F17\u53F7\u8BBE\u7F6E>\u529F\u80FD\u8BBE\u7F6E\uFF0C\u586B\u5199\u4E1A\u52A1\u57DF\u540D ",-1),fu={class:"flex-1 min-w-0"},Cu={class:"sm:flex"},Du={class:"mr-4 sm:w-80 flex"},Au=e("div",{class:"form-tips"}," \u767B\u5F55\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\uFF0C\u70B9\u51FB\u8BBE\u7F6E>\u516C\u4F17\u53F7\u8BBE\u7F6E>\u529F\u80FD\u8BBE\u7F6E\uFF0C\u586B\u5199JS\u63A5\u53E3\u5B89\u5168\u57DF\u540D ",-1),vu={class:"flex-1 min-w-0"},bu={class:"sm:flex"},wu={class:"mr-4 sm:w-80 flex"},Vu=e("div",{class:"form-tips"}," \u767B\u5F55\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\uFF0C\u70B9\u51FB\u8BBE\u7F6E>\u516C\u4F17\u53F7\u8BBE\u7F6E>\u529F\u80FD\u8BBE\u7F6E\uFF0C\u586B\u5199\u7F51\u9875\u6388\u6743\u57DF\u540D ",-1),hu=A({name:"wxOaConfig"}),be=A({...hu,setup(gu){const v=J(),o=M({name:"",original_id:" ",qr_code:"",app_id:"",app_secret:"",url:"",token:"",encoding_aes_key:"",encryption_type:1,business_domain:"",js_secure_domain:"",web_auth_domain:""}),f=z(),b={app_id:[{required:!0,message:"\u8BF7\u8F93\u5165AppID",trigger:["blur","change"]}],app_secret:[{required:!0,message:"\u8BF7\u8F93\u5165AppSecret",trigger:["blur","change"]}]},C=async()=>{const r=await O();for(const s in o)o[s]=r[s]},w=async()=>{var r;await((r=f.value)==null?void 0:r.validate()),await G(o),C()};return C(),(r,s)=>{const V=S,m=I,d=R,i=q,h=N,_=j,E=T,g=K,x=L,y=U,B=D("copy"),k=D("perms");return F(),H("div",null,[u(m,{class:"!border-none",shadow:"never"},{default:t(()=>[u(V,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1A\u586B\u5199\u5FAE\u4FE1\u516C\u4F17\u53F7\u5F00\u53D1\u914D\u7F6E\uFF0C\u8BF7\u524D\u5F80\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\u7533\u8BF7\u670D\u52A1\u53F7\u5E76\u5B8C\u6210\u8BA4\u8BC1",closable:!1,"show-icon":""})]),_:1}),u(x,{ref_key:"formRef",ref:f,model:l(o),rules:b,"label-width":l(v).isMobile?"80px":"160px"},{default:t(()=>[u(m,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[Z,u(i,{label:"\u516C\u4F17\u53F7\u540D\u79F0",prop:"name"},{default:t(()=>[e("div",$,[u(d,{modelValue:l(o).name,"onUpdate:modelValue":s[0]||(s[0]=a=>l(o).name=a),placeholder:"\u8BF7\u8F93\u5165\u516C\u4F17\u53F7\u540D\u79F0"},null,8,["modelValue"])])]),_:1}),u(i,{label:"\u539F\u59CBID",prop:"original_id"},{default:t(()=>[e("div",P,[u(d,{modelValue:l(o).original_id,"onUpdate:modelValue":s[1]||(s[1]=a=>l(o).original_id=a),placeholder:"\u8BF7\u8F93\u5165\u539F\u59CBID"},null,8,["modelValue"])])]),_:1}),u(i,{label:"\u516C\u4F17\u53F7\u4E8C\u7EF4\u7801",prop:"qr_code"},{default:t(()=>[e("div",null,[e("div",null,[u(h,{modelValue:l(o).qr_code,"onUpdate:modelValue":s[2]||(s[2]=a=>l(o).qr_code=a),limit:1},null,8,["modelValue"])]),Q])]),_:1})]),_:1}),u(m,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[W,u(i,{label:"AppID",prop:"app_id"},{default:t(()=>[e("div",X,[u(d,{modelValue:l(o).app_id,"onUpdate:modelValue":s[3]||(s[3]=a=>l(o).app_id=a),placeholder:"\u8BF7\u8F93\u5165AppID"},null,8,["modelValue"])])]),_:1}),u(i,{label:"AppSecret",prop:"app_secret"},{default:t(()=>[e("div",Y,[u(d,{modelValue:l(o).app_secret,"onUpdate:modelValue":s[4]||(s[4]=a=>l(o).app_secret=a),placeholder:"\u8BF7\u8F93\u5165AppSecret"},null,8,["modelValue"])])]),_:1}),u(i,null,{default:t(()=>[uu]),_:1})]),_:1}),u(m,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[eu,u(i,{label:"URL"},{default:t(()=>[e("div",ou,[e("div",lu,[e("div",tu,[u(d,{modelValue:l(o).url,"onUpdate:modelValue":s[5]||(s[5]=a=>l(o).url=a),disabled:""},null,8,["modelValue"])]),p((F(),c(_,null,{default:t(()=>[n("\u590D\u5236")]),_:1})),[[B,l(o).url]])]),su])]),_:1}),u(i,{label:"Token",prop:"Token"},{default:t(()=>[e("div",au,[e("div",iu,[u(d,{modelValue:l(o).token,"onUpdate:modelValue":s[6]||(s[6]=a=>l(o).token=a),placeholder:"\u8BF7\u8F93\u5165Token"},null,8,["modelValue"])]),du])]),_:1}),u(i,{label:"EncodingAESKey",prop:"encoding_aes_key"},{default:t(()=>[e("div",nu,[e("div",Fu,[u(d,{modelValue:l(o).encoding_aes_key,"onUpdate:modelValue":s[7]||(s[7]=a=>l(o).encoding_aes_key=a),placeholder:"\u8BF7\u8F93\u5165EncodingAESKey"},null,8,["modelValue"])]),ru])]),_:1}),u(i,{label:"\u6D88\u606F\u52A0\u5BC6\u65B9\u5F0F",required:"",prop:"encryption_type"},{default:t(()=>[e("div",mu,[u(g,{class:"flex-col !items-start min-w-0",modelValue:l(o).encryption_type,"onUpdate:modelValue":s[8]||(s[8]=a=>l(o).encryption_type=a)},{default:t(()=>[u(E,{label:1},{default:t(()=>[n(" \u660E\u6587\u6A21\u5F0F (\u4E0D\u4F7F\u7528\u6D88\u606F\u4F53\u52A0\u89E3\u5BC6\u529F\u80FD\uFF0C\u5B89\u5168\u7CFB\u6570\u8F83\u4F4E) ")]),_:1}),u(E,{label:2},{default:t(()=>[n(" \u517C\u5BB9\u6A21\u5F0F (\u660E\u6587\u3001\u5BC6\u6587\u5C06\u5171\u5B58\uFF0C\u65B9\u4FBF\u5F00\u53D1\u8005\u8C03\u8BD5\u548C\u7EF4\u62A4) ")]),_:1}),u(E,{label:3},{default:t(()=>[n(" \u5B89\u5168\u6A21\u5F0F\uFF08\u63A8\u8350\uFF09 (\u6D88\u606F\u5305\u4E3A\u7EAF\u5BC6\u6587\uFF0C\u9700\u8981\u5F00\u53D1\u8005\u52A0\u5BC6\u548C\u89E3\u5BC6\uFF0C\u5B89\u5168\u7CFB\u6570\u9AD8) ")]),_:1})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),u(m,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[_u,u(i,{label:"\u4E1A\u52A1\u57DF\u540D"},{default:t(()=>[e("div",pu,[e("div",cu,[e("div",Bu,[u(d,{modelValue:l(o).business_domain,"onUpdate:modelValue":s[9]||(s[9]=a=>l(o).business_domain=a),disabled:""},null,8,["modelValue"])]),p((F(),c(_,null,{default:t(()=>[n("\u590D\u5236")]),_:1})),[[B,l(o).business_domain]])]),Eu])]),_:1}),u(i,{label:"JS\u63A5\u53E3\u5B89\u5168\u57DF\u540D"},{default:t(()=>[e("div",fu,[e("div",Cu,[e("div",Du,[u(d,{modelValue:l(o).js_secure_domain,"onUpdate:modelValue":s[10]||(s[10]=a=>l(o).js_secure_domain=a),disabled:""},null,8,["modelValue"])]),p((F(),c(_,null,{default:t(()=>[n("\u590D\u5236")]),_:1})),[[B,l(o).js_secure_domain]])]),Au])]),_:1}),u(i,{label:"\u7F51\u9875\u6388\u6743\u57DF\u540D"},{default:t(()=>[e("div",vu,[e("div",bu,[e("div",wu,[u(d,{modelValue:l(o).web_auth_domain,"onUpdate:modelValue":s[11]||(s[11]=a=>l(o).web_auth_domain=a),disabled:""},null,8,["modelValue"])]),p((F(),c(_,null,{default:t(()=>[n("\u590D\u5236")]),_:1})),[[B,l(o).web_auth_domain]])]),Vu])]),_:1})]),_:1})]),_:1},8,["model","label-width"]),p((F(),c(y,null,{default:t(()=>[u(_,{type:"primary",onClick:w},{default:t(()=>[n("\u4FDD\u5B58")]),_:1})]),_:1})),[[k,["channel.official_account_setting/setConfig"]]])])}}});export{be as default};