var m=Object.defineProperty;var E=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var h=(e,o,a)=>o in e?m(e,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[o]=a,v=(e,o)=>{for(var a in o||(o={}))C.call(o,a)&&h(e,a,o[a]);if(E)for(var a of E(o))y.call(o,a)&&h(e,a,o[a]);return e};import{u as F}from"./tenant.25fbfc82.js";import{_ as x,d as w,b as R,D,r,o as b,c as O,a as c,g as d,F as Z,p as U,m as z,u as i,e as u,f as l}from"./index.4a6e9266.js";var L="data:image/png;base64,[encoded data, 5416 characters]";const T="production",S={production:{BAIDU_CLOUD_URL:"http://openapi.baidu.com/oauth/2.0/authorize",RESPONSE_TYPE:"?response_type=code",CLIENT_ID:"&client_id=WksD0FOVAp8zSRV62qNKxtnCexArVPOf",REDIRECT_URI:"&redirect_uri=https://www.violin-home.cn/auth/api/v1/authorize/baidu",SCOPE:"&scope=basic,netdisk",DEVICE_ID:"&device_id=26202308",QR_CODE:"&qrcode=1",DISPLAY:"&display=popup"},development:{BAIDU_CLOUD_URL:"http://openapi.baidu.com/oauth/2.0/authorize",RESPONSE_TYPE:"?response_type=code",CLIENT_ID:"&client_id=BIukdHDXeNPmIXe96GA6OOXGgnP5GEhM",REDIRECT_URI:"&redirect_uri=http://localhost:8080/auth/api/v1/authorize/baidu",SCOPE:"&scope=basic,netdisk",DEVICE_ID:"&device_id=27103657",QR_CODE:"&qrcode=1",DISPLAY:"&display=popup"}};var s=v({},S[T]);const A=e=>(U("data-v-41a47210"),e=e(),z(),e),N=A(()=>u("div",{class:"yuliu"},null,-1)),j=A(()=>u("div",{class:"title-container"},[u("h3",null,"\u79D8\u5BC6\u57FA\u5730")],-1)),X={class:"tang-pass-qrcode-title"},g=l("\u767E\u5EA6\u7F51\u76D8\u626B\u7801\u767B\u9646"),M=["href"],V=l(" \u5176\u4ED6\u767B\u5F55\u65B9\u5F0F "),_=l(" ------------------------------------------------------------ "),Y=A(()=>u("div",null," \u5FAE\u4FE1/\u652F\u4ED8\u5B9D ",-1)),J=w({setup(e){let o=s.BAIDU_CLOUD_URL+s.RESPONSE_TYPE+s.CLIENT_ID+s.REDIRECT_URI+s.SCOPE+s.DEVICE_ID+s.QR_CODE+s.DISPLAY;F();const a=R(),B=D({user_id:"",password:""}),I=D({user_id:[{validator:(p,n,t)=>{n?t():t(new Error("\u8BF7\u8F93\u5165\u7684\u7528\u6237\u540D"))},trigger:"blur"}],password:[{validator:(p,n,t)=>{n?t():t(new Error("\u8BF7\u8F93\u5165\u5BC6\u7801"))},trigger:"blur"}]});return(p,n)=>{const t=r("el-avatar"),f=r("el-form-item"),P=r("el-form"),k=r("el-card");return b(),O(Z,null,[N,c(k,{class:"box-card"},{default:d(()=>[c(P,{ref_key:"ruleFormRef",ref:a,model:i(B),rules:i(I),"status-icon":"","label-width":"120px",class:"demo-ruleForm"},{default:d(()=>[j,u("p",X,[g,u("a",{class:"pass-link",href:i(o),target:"new"},"\u8BF7\u4F7F\u7528\u5FAE\u4FE1\u626B\u4E00\u626B\u767B\u5F55",8,M)]),c(t,{size:28,src:i(L)},null,8,["src"]),c(f,null,{default:d(()=>[V]),_:1})]),_:1},8,["model","rules"]),_,Y]),_:1})],64)}}});var q=x(J,[["__scopeId","data-v-41a47210"]]);export{q as default};
