import{l as b,r as y,m as c,p as T,U as s,O as r,q as t,I as m,u as e,T as l,a0 as k,W as C,M as d,aG as I,aH as S}from"./vue-chunks-DyZSmvoe.js";import{T as L,_ as j,a as f}from"./LocaleDropdown.vue_vue_type_script_setup_true_lang-Cx5WZLK3.js";import{_ as B}from"./LoginForm.vue_vue_type_script_setup_true_lang-DClIJzut.js";import{_ as $}from"./RegisterForm.vue_vue_type_script_setup_true_lang-CdHl7U64.js";import{u as H,a as h,b as R,c as V,g as D,_ as E}from"./index-D4Ne4xf-.js";import{g as G}from"./element-plus-DNKe9-lk.js";import"./useIcon-CMCVj6oE.js";import"./useForm-kq1sxERw.js";import"./wang-editor-C7jwA1hA.js";import"./tsxHelper-DOqx_mcA.js";import"./useValidator-BN3tPovt.js";const M="/assets/login-box-bg-CL6i7T2F.svg",p=a=>(I("data-v-ba6c7c0f"),a=a(),S(),a),N={class:"relative flex mx-auto min-h-100vh"},q={class:"flex items-center relative text-white"},z=p(()=>t("img",{src:f,alt:"",class:"w-48px h-48px mr-10px"},null,-1)),A={class:"text-20px font-bold"},F={class:"flex justify-center items-center h-[calc(100%-60px)]"},O=p(()=>t("img",{src:M,key:"1",alt:"",class:"w-350px"},null,-1)),P={class:"text-3xl text-white",key:"2"},U={class:"mt-5 font-normal text-white text-14px",key:"3"},W={class:"flex-1 p-30px lt-sm:p-10px dark:bg-[var(--login-bg-color)] relative"},J={class:"flex justify-between items-center text-white at-2xl:justify-end at-xl:justify-end"},K={class:"flex items-center at-2xl:hidden at-xl:hidden"},Q=p(()=>t("img",{src:f,alt:"",class:"w-48px h-48px mr-10px"},null,-1)),X={class:"text-20px font-bold"},Y={class:"flex justify-end items-center space-x-10px"},Z={class:"h-full flex items-center m-auto w-[100%] at-2xl:max-w-500px at-xl:max-w-500px at-md:max-w-500px at-lg:max-w-500px"},tt=b({__name:"Login",setup(a){const{getPrefixCls:g}=R(),x=g("login"),o=H(),{t:_}=V(),i=y(!0),u=()=>{i.value=!1},v=()=>{i.value=!0},w=()=>{const n=D("--el-bg-color");o.setMenuTheme(n),o.setHeaderTheme(n)};return(n,et)=>(c(),T("div",{class:m([e(x),"h-[100%] relative lt-xl:bg-[var(--login-bg-color)] lt-sm:px-10px lt-xl:px-10px lt-md:px-10px"])},[s(e(G),{class:"h-full"},{default:r(()=>[t("div",N,[t("div",{class:m(`${e(x)}__left flex-1 bg-gray-500 bg-opacity-20 relative p-30px lt-xl:hidden`)},[t("div",q,[z,t("span",A,l(e(h)(e(o).getTitle)),1)]),t("div",F,[s(k,{appear:"",tag:"div","enter-active-class":"animate__animated animate__bounceInLeft"},{default:r(()=>[O,t("div",P,l(e(_)("login.welcome")),1),t("div",U,l(e(_)("login.message")),1)]),_:1})])],2),t("div",W,[t("div",J,[t("div",K,[Q,t("span",X,l(e(h)(e(o).getTitle)),1)]),t("div",Y,[s(e(L),{onChange:w}),s(e(j),{class:"lt-xl:text-white dark:text-white"})])]),s(C,{appear:"","enter-active-class":"animate__animated animate__bounceInRight"},{default:r(()=>[t("div",Z,[i.value?(c(),d(e(B),{key:0,class:"p-20px h-auto m-auto lt-xl:rounded-3xl lt-xl:light:bg-white",onToRegister:u})):(c(),d(e($),{key:1,class:"p-20px h-auto m-auto lt-xl:rounded-3xl lt-xl:light:bg-white",onToLogin:v}))])]),_:1})])])]),_:1})],2))}}),mt=E(tt,[["__scopeId","data-v-ba6c7c0f"]]);export{mt as default};
