import{_ as F,__tla as I}from"./Form-61b815db.js";import{_ as L,__tla as E}from"./XButton-4acb3113.js";import{n as w,d as V,b as z,a as r,f as j,r as B,C as D,a1 as G,o as H,l as O,w as m,i as c,g as p,U as T,_ as X,__tla as $}from"./index-8c6726e5.js";import{u as A,__tla as J}from"./useForm-bda3e18c.js";import K,{__tla as M}from"./LoginFormTitle-2fd7dc39.js";import{u as N,L as Q,__tla as W}from"./useLogin-569eac49.js";import{__tla as Y}from"./el-virtual-list-be990069.js";import{__tla as Z}from"./el-tree-select-9a22c115.js";import{__tla as tt}from"./el-time-select-4d3bcab0.js";import{__tla as at}from"./InputPassword-870dfa66.js";import{__tla as rt}from"./Editor-1fcaafc3.js";import{__tla as et}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-7c0b71fe.js";import{__tla as ot}from"./index-bd7c5832.js";import{__tla as lt}from"./el-image-viewer-49715a4b.js";import{__tla as st}from"./useMessage-9f6930df.js";import{__tla as _t}from"./UploadImg-48cb4efb.js";import{__tla as nt}from"./UploadImgs-69b202a7.js";import{__tla as ct}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-931c78ff.js";import{__tla as it}from"./UploadFile-77591840.js";import{__tla as mt}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-b1b5de5c.js";let P,pt=Promise.all([(()=>{try{return I}catch{}})(),(()=>{try{return E}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return tt}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return ct}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return mt}catch{}})()]).then(async()=>{let l,d,u,h,f,g;({t:l}=w()),d=()=>({required:o=>({required:!0,message:o||l("common.required")}),lengthRange:o=>{const{min:t,max:a,message:e}=o;return{min:t,max:a,message:e||l("common.lengthRange",{min:t,max:a})}},notSpace:o=>({validator:(t,a,e)=>{(a==null?void 0:a.indexOf(" "))!==-1?e(new Error(o||l("common.notSpace"))):e()}}),notSpecialCharacters:o=>({validator:(t,a,e)=>{/[`~!@#$%^&*()_+<>?:"{},.\/;'[\]]/gi.test(a)?e(new Error(o||l("common.notSpecialCharacters"))):e()}})}),u={class:"w-[100%] flex"},h={class:"w-[100%]"},f={class:"mt-15px w-[100%]"},g=V({name:"RegisterForm",__name:"RegisterForm",setup(o){const{t}=w(),{required:a}=d(),{register:e,elFormRef:v}=A(),{handleBackLogin:R,getLoginState:b}=N(),k=z(()=>r(b)===Q.REGISTER),x=j([{field:"title",colProps:{span:24}},{field:"username",label:t("login.username"),value:"",component:"Input",colProps:{span:24},componentProps:{placeholder:t("login.usernamePlaceholder")}},{field:"password",label:t("login.password"),value:"",component:"InputPassword",colProps:{span:24},componentProps:{style:{width:"100%"},strength:!0,placeholder:t("login.passwordPlaceholder")}},{field:"check_password",label:t("login.checkPassword"),value:"",component:"InputPassword",colProps:{span:24},componentProps:{style:{width:"100%"},strength:!0,placeholder:t("login.passwordPlaceholder")}},{field:"code",label:t("login.code"),colProps:{span:24}},{field:"register",colProps:{span:24}}]),S={username:[a()],password:[a()],check_password:[a()],code:[a()]},i=B(!1);return(dt,_)=>{const U=T,y=L,q=F;return D((H(),O(q,{rules:S,schema:r(x),class:"dark:(border-1 border-[var(--el-border-color)] border-solid)","hide-required-asterisk":"","label-position":"top",size:"large",onRegister:r(e)},{title:m(()=>[c(K,{style:{width:"100%"}})]),code:m(n=>[p("div",u,[c(U,{modelValue:n.code,"onUpdate:modelValue":s=>n.code=s,placeholder:r(t)("login.codePlaceholder")},null,8,["modelValue","onUpdate:modelValue","placeholder"])])]),register:m(()=>[p("div",h,[c(y,{loading:r(i),title:r(t)("login.register"),class:"w-[100%]",type:"primary",onClick:_[0]||(_[0]=n=>(async()=>{const s=r(v);s==null||s.validate(async C=>{if(C)try{i.value=!0}finally{i.value=!1}})})())},null,8,["loading","title"])]),p("div",f,[c(y,{title:r(t)("login.hasUser"),class:"w-[100%]",onClick:_[1]||(_[1]=n=>r(R)())},null,8,["title"])])]),_:1},8,["schema","onRegister"])),[[G,r(k)]])}}}),P=X(g,[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/Login/components/RegisterForm.vue"]])});export{pt as __tla,P as default};
