import{bM as f,bN as m,i as B,_ as y,d as w,t as x,b,s as d,c as R,e as n,n as O,u as s,a as u,w as c,F as z,r as i,o as U,h as p,p as F,q as L}from"./index.b616fdab.js";var S="data:image/png;base64,[encoded data, 5416 characters]";const h="production",T={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"},test:{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"}},Z={production:e=>{window.location.href=e},development:()=>{f("token"),m({tenantId:"111"}),B.push({path:"/home"})},test:e=>{window.location.href=e}},N=Z[h],o=T[h];const A=e=>(F("data-v-78949c1a"),e=e(),L(),e),X=A(()=>n("div",{class:"title-container"},[n("h3",null,"\u79D8\u5BC6\u57FA\u5730")],-1)),j=p(" \u5176\u4ED6\u767B\u5F55\u65B9\u5F0F\u6682\u65F6\u8FD8\u6CA1\u6709\u54E6 "),_=p(" ------------------------------------------------------------ "),g=A(()=>n("div",null," \u5FAE\u4FE1/\u652F\u4ED8\u5B9D ",-1)),M=w({setup(e){let E=o.BAIDU_CLOUD_URL+o.RESPONSE_TYPE+o.CLIENT_ID+o.REDIRECT_URI+o.SCOPE+o.DEVICE_ID+o.QR_CODE+o.DISPLAY;x();const v=b(),D=d({user_id:"",password:""}),I=d({user_id:[{validator:(l,a,t)=>{a?t():t(new Error("\u8BF7\u8F93\u5165\u7684\u7528\u6237\u540D"))},trigger:"blur"}],password:[{validator:(l,a,t)=>{a?t():t(new Error("\u8BF7\u8F93\u5165\u5BC6\u7801"))},trigger:"blur"}]}),r=d({});return r.width=window.innerWidth*.7+"px",(l,a)=>{const t=i("el-avatar"),P=i("el-form-item"),k=i("el-form"),C=i("el-card");return U(),R(z,null,[n("div",{class:"yuliu",style:O(s(r))},null,4),u(C,{class:"box-card"},{default:c(()=>[u(k,{ref_key:"ruleFormRef",ref:v,model:s(D),rules:s(I),"status-icon":"","label-width":"120px",class:"demo-ruleForm"},{default:c(()=>[X,n("div",null,[u(t,{size:28,src:s(S),onClick:a[0]||(a[0]=G=>s(N)(s(E)))},null,8,["src"])]),u(P,null,{default:c(()=>[j]),_:1})]),_:1},8,["model","rules"]),_,g]),_:1})],64)}}});var J=y(M,[["__scopeId","data-v-78949c1a"]]);export{J as default};
