import{d as R,r as p,u as w,h as d,o as i,j as o,w as e,T as l,i as t,z,A as m,B as T,p as f,N as A,l as u,C as G,F as v,c as b,D as y,E as C,G as V,H as D,I as E,J as I,K as M,v as $}from"./index-9PRMimni.js";import j from"./PlusLoginForm-D-ugQ67o.js";import P from"./MobileLogin-DzkWB3NY.js";import{_ as H}from"./PlusRegisterForm.vue_vue_type_script_setup_true_lang-BjeinGOP.js";import J from"./TogglePage-BjOMGgVd.js";const K="/assets/logo-CNcAxguf.svg",O="/assets/coding-C3sLEwZe.png",S={class:"account-root"},W={class:"account-form"},Z={class:"account-top"},q={class:"user-account"},Q={class:"user-register"},U={class:"account-tabs"},X={class:"pb-8"},Y=R({__name:"login",setup(oo){const s=p("login"),a=p("login"),k=w();function B(){s.value="login"}function _(){s.value="register"}function L(){a.value=a.value==="login"?"register":"login"}function N(){k.warning("邮箱注册暂未实现")}return(to,n)=>{const g=z,c=A,r=T,x=V,h=D;return i(),d("div",S,[o(g,{tag:"div",class:"account-root-item root-left-item"},{default:e(()=>[o(l,{name:"fade-bottom",appear:"",mode:"out-in"},{default:e(()=>n[2]||(n[2]=[t("div",null,[t("div",{class:"root-left-logo"},[t("img",{src:K,alt:""}),t("div",{class:"stand-title"},"Naive Admin")]),t("div",{class:"root-left-title"},"开箱即用，中后台前端/设计解决方案"),t("div",{class:"root-left-desc"},"多生态支持、功能丰富、高颜值模板"),t("div",{class:"coding-img"},[t("img",{src:O,alt:"coding"})])],-1)])),_:1})]),_:1}),o(g,{tag:"div",class:"account-root-item root-right-item"},{default:e(()=>[o(l,{name:"fade-bottom",appear:"",mode:"out-in"},{default:e(()=>[t("div",W,[t("div",Z,[t("div",q,m(a.value==="login"?"登录":"注册")+"你的账户",1),t("div",Q,[t("span",null,m(a.value==="login"?"没有账户？":"已有账户？"),1),o(r,{text:"",type:"info","icon-placement":"right",onClick:L},{icon:e(()=>[o(c,null,{default:e(()=>[o(u(G))]),_:1})]),default:e(()=>[f(m(a.value==="login"?"免费注册":"前去登录")+" ",1)]),_:1})])]),a.value==="login"?(i(),d(v,{key:0},[t("div",U,[t("div",{class:C(["account-tabs-item",{"on-item":s.value==="login"}]),onClick:n[0]||(n[0]=F=>s.value="login")},"账号密码登录",2),t("div",{class:C(["account-tabs-item",{"on-item":s.value==="mobile-login"}]),onClick:n[1]||(n[1]=F=>s.value="mobile-login")},"手机验证码登录",2)]),s.value==="login"?(i(),b(l,{key:0,name:"fade-bottom",appear:"",mode:"out-in"},{default:e(()=>[o(j,{ref:"LoginFormRef",onGoRegister:_},null,512)]),_:1})):y("",!0),s.value==="mobile-login"?(i(),b(l,{key:1,name:"fade-bottom",appear:"",mode:"out-in"},{default:e(()=>[o(P,{ref:"MobileLoginRef",onGoRegister:_},null,512)]),_:1})):y("",!0),o(x,{"title-placement":"center",class:"rests-login-type"},{default:e(()=>n[3]||(n[3]=[f("其他登录方式")])),_:1}),t("div",X,[o(h,{justify:"space-around"},{default:e(()=>[o(r,{strong:"",circle:"",type:"tertiary"},{icon:e(()=>[o(c,{size:"18"},{default:e(()=>[o(u(E))]),_:1})]),_:1}),o(r,{strong:"",circle:"",type:"tertiary"},{icon:e(()=>[o(c,{size:"18"},{default:e(()=>[o(u(I))]),_:1})]),_:1}),o(r,{strong:"",circle:"",type:"tertiary"},{icon:e(()=>[o(c,{size:"18"},{default:e(()=>[o(u(M))]),_:1})]),_:1})]),_:1})])],64)):(i(),d(v,{key:1},[t("div",{class:"account-tabs"},[n[4]||(n[4]=t("div",{class:"account-tabs-item on-item"},"手机注册",-1)),t("div",{class:"account-tabs-item",onClick:N},"邮箱注册")]),o(l,{name:"fade-bottom",appear:"",mode:"out-in"},{default:e(()=>[o(H,{onBackLogin:B})]),_:1})],64))])]),_:1})]),_:1}),o(J)])}}}),lo=$(Y,[["__scopeId","data-v-27634fb4"]]);export{lo as default};
