var j=Object.defineProperty,$=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var k=(n,t,o)=>t in n?j(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,C=(n,t)=>{for(var o in t||(t={}))M.call(t,o)&&k(n,o,t[o]);if(b)for(var o of b(t))U.call(t,o)&&k(n,o,t[o]);return n},I=(n,t)=>$(n,L(t));import{d as y,f as _,b as D,a2 as N,a3 as z,a4 as i,u as a,a5 as f,k as r,a6 as E,F as R}from"./vue-vendor-CxLCUzY4.js";import{C as V,ab as W,bO as A,bP as G,K as H,_ as K}from"./index-CYriLmQo.js";import{Q as O}from"./index-Bn_JFTOp.js";import P from"./ThirdModal-BvrdfSi2.js";import{j as J}from"./jeecg_ad_text-C1w60wsZ.js";import{bm as X,be as Y,bn as Z,bc as ii}from"./antd-vue-vendor-CDWW6V_M.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./download-CkbK5et1.js";import"./base64Conver-24EVOS6V.js";import"./index-Bb_NRLur.js";import"./useCountdown-C3-PRPLY.js";import"./index-CF_FJn6P.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useTimeout-DC8132dd.js";import"./index-CxQILSKV.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useFormItemSingle-DM34aWgK.js";import"./useThirdLogin-DMh2GqBN.js";const ti={class:"aui-content"},oi={class:"aui-container"},si={class:"aui-form"},ei={class:"aui-image"},ni={class:"aui-image-text"},ai=["src"],li={class:"aui-formBox aui-formEwm"},ri={class:"aui-formWell"},ci={class:"aui-flex aui-form-nav investment_title",style:{"padding-bottom":"19px"}},di={class:"aui-flex-box activeNav"},ui={class:"aui-form-box"},mi={class:"aui-account",style:{padding:"30px 0"}},_i={class:"aui-ewm"},fi={class:"aui-formButton"},pi={class:"aui-flex aui-third-text"},vi={class:"aui-flex-box aui-third-border"},hi={class:"aui-flex-box"},gi={class:"aui-third-login"},xi={class:"aui-flex-box"},bi={class:"aui-third-login"},ki={class:"aui-flex-box"},Ci={class:"aui-third-login"},Ii={class:"aui-flex-box"},yi={class:"aui-third-login"},Ti=y({name:"mini-code-login"}),wi=y(I(C({},Ti),{emits:["go-back","success","register"],setup(n,{expose:t,emit:o}){const T=X({scriptUrl:"//at.alicdn.com/t/font_2316098_umqusozousr.js"}),{prefixCls:w}=V("minilogin"),{t:u}=H(),p=_("");let c;const v=_("0"),h=_(),F=W(),q=o;function g(){v.value="0",A().then(s=>{p.value=s.qrcodeId,s.qrcodeId&&B(s.qrcodeId)})}function x(s){G({qrcodeId:s}).then(e=>{let l=e.token;l=="-2"&&(g(),clearInterval(c)),e.success&&(v.value="2",clearInterval(c),setTimeout(()=>{F.qrCodeLogin(l)},500))})}function B(s){x(s),m(),c=setInterval(()=>{x(s)},1500)}function m(){c&&clearInterval(c)}function d(s){h.value.onThirdLogin(s)}function Q(){g()}function S(){q("go-back"),m()}return D(()=>{m()}),t({initFrom:Q}),(s,e)=>(N(),z(R,null,[i("div",ti,[i("div",oi,[i("div",si,[i("div",ei,[i("div",ni,[i("img",{src:a(J),alt:""},null,8,ai)])]),i("div",li,[i("div",ri,[i("form",null,[i("div",ci,[i("div",di,f(a(u)("sys.login.qrSignInFormTitle")),1)]),i("div",ui,[i("div",mi,[i("div",_i,[r(a(O),{value:p.value,class:"enter-x flex justify-center xl:justify-start",width:280},null,8,["value"])])])]),i("div",fi,[i("a",{class:"aui-linek-code aui-link-register",onClick:S},f(a(u)("sys.login.backSignIn")),1)])])]),i("div",pi,[i("div",vi,[i("span",null,f(a(u)("sys.login.otherSignIn")),1)])]),i("div",{class:E(["aui-flex",`${a(w)}-sign-in-way`])},[i("div",hi,[i("div",gi,[i("a",{href:"",title:"github",onClick:e[0]||(e[0]=l=>d("github"))},[r(a(Y))])])]),i("div",xi,[i("div",bi,[i("a",{href:"",title:"企业微信",onClick:e[1]||(e[1]=l=>d("wechat_enterprise"))},[r(a(T),{class:"item-icon",type:"icon-qiyeweixin3"})])])]),i("div",ki,[i("div",Ci,[i("a",{href:"",title:"钉钉",onClick:e[2]||(e[2]=l=>d("dingtalk"))},[r(a(Z))])])]),i("div",Ii,[i("div",yi,[i("a",{href:"",title:"微信",onClick:e[3]||(e[3]=l=>d("wechat_open"))},[r(a(ii))])])])],2)])])])]),r(P,{ref_key:"thirdModalRef",ref:h},null,512)],64))}})),Xi=K(wi,[["__scopeId","data-v-e635d5d9"]]);export{Xi as default};
