import{_ as U}from"./index.7ebe31c9.js";import{T as S,J as I,C as R,D as q,w as j,H as T,I as J,F as N}from"./element-plus.ff90c99c.js";import{_ as O}from"./picker.5a89669b.js";import{g as K,s as L}from"./wx_oa.88e3a8b0.js";import{u as z}from"./index.872975fb.js";import{d as A,$ as G,s as H,aq as D,o as F,c as M,W as u,Q as t,a as e,u as l,R as _,P as c,U as n}from"./@vue.f8dfc830.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./index.000fc3bb.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";import"./index.7bbc213e.js";import"./index.vue_vue_type_script_setup_true_lang.44dbc460.js";import"./index.4584e2bf.js";import"./index.4cae9985.js";import"./index.vue_vue_type_script_setup_true_lang.ec118b31.js";import"./usePaging.bd7a7dec.js";import"./vue3-video-play.5592bdaa.js";import"./vuedraggable.99ce9db3.js";import"./vue.80fb6650.js";import"./sortablejs.76b408b5.js";import"./lodash.3e731b89.js";import"./axios.c2babb35.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.3a7f085f.js";import"./color.5ae3e2dd.js";import"./clone.7bcb5228.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.37836f15.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.79024f1a.js";const P=e("div",{class:"font-medium mb-7"},"\u5FAE\u4FE1\u516C\u4F17\u53F7",-1),Q={class:"w-80"},W={class:"w-80"},Z=e("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A\u5BBD400px*\u9AD8400px\u3002jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),$=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"},pu=e("div",{class:"font-medium mb-7"},"\u529F\u80FD\u8BBE\u7F6E",-1),_u={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"}),he=A({...hu,setup(gu){const v=z(),o=G({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=H(),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 K();for(const s in o)o[s]=r[s]},w=async()=>{var r;await((r=f.value)==null?void 0:r.validate()),await L(o),C()};return C(),(r,s)=>{const V=S,m=I,d=R,i=q,h=O,p=j,E=T,g=J,x=N,y=U,B=D("copy"),k=D("perms");return F(),M("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(()=>[P,u(i,{label:"\u516C\u4F17\u53F7\u540D\u79F0",prop:"name"},{default:t(()=>[e("div",Q,[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",W,[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"])]),Z])]),_:1})]),_:1}),u(m,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[$,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"])]),_((F(),c(p,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(()=>[pu,u(i,{label:"\u4E1A\u52A1\u57DF\u540D"},{default:t(()=>[e("div",_u,[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"])]),_((F(),c(p,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"])]),_((F(),c(p,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"])]),_((F(),c(p,null,{default:t(()=>[n("\u590D\u5236")]),_:1})),[[B,l(o).web_auth_domain]])]),Vu])]),_:1})]),_:1})]),_:1},8,["model","label-width"]),_((F(),c(y,null,{default:t(()=>[u(p,{type:"primary",onClick:w},{default:t(()=>[n("\u4FDD\u5B58")]),_:1})]),_:1})),[[k,["channel.official_account_setting/setConfig"]]])])}}});export{he as default};