import{_ as I,__tla as L}from"./Form-bc050365.js";import{_ as E,__tla as U}from"./XButton-b7f15a82.js";import{h as w,d as V,K as z,a,e as j,r as B,x as D,a5 as G,o as K,v as O,w as m,f as c,g as p,W as T,_ as W,__tla as $}from"./index-04f8d540.js";import{u as A,__tla as H}from"./useForm-c36fad2c.js";import J,{__tla as M}from"./LoginFormTitle-123042aa.js";import{u as N,L as Q,__tla as X}from"./useLogin-7eac15cf.js";import{__tla as Y}from"./el-virtual-list-5276bb3e.js";import{__tla as Z}from"./el-tree-select-78c28ca5.js";import{__tla as tt}from"./el-time-select-81f1c58c.js";import{__tla as rt}from"./InputPassword-8ab9403b.js";import{__tla as at}from"./InputPassword.vue_vue_type_style_index_0_scoped_3f07eb1d_lang-2654e1bc.js";import{__tla as et}from"./Editor-02b0cc9a.js";import{__tla as ot}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-f655ad55.js";import{__tla as lt}from"./index-ef33124b.js";import{__tla as st}from"./el-image-viewer-5878bd7a.js";import{__tla as _t}from"./useMessage-9c37e840.js";import{__tla as nt}from"./UploadImg-e5f21efb.js";import{__tla as ct}from"./UploadImgs-052904e6.js";import{__tla as it}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-f7d68fb8.js";import{__tla as mt}from"./UploadFile-f394ab3f.js";import{__tla as pt}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-93f37f7e.js";import{__tla as dt}from"./fixed-size-list-0f1e03bf.js";let P,ut=Promise.all([(()=>{try{return L}catch{}})(),(()=>{try{return U}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return tt}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return at}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{}})(),(()=>{try{return pt}catch{}})(),(()=>{try{return dt}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:r,message:e}=o;return{min:t,max:r,message:e||l("common.lengthRange",{min:t,max:r})}},notSpace:o=>({validator:(t,r,e)=>{(r==null?void 0:r.indexOf(" "))!==-1?e(new Error(o||l("common.notSpace"))):e()}}),notSpecialCharacters:o=>({validator:(t,r,e)=>{/[`~!@#$%^&*()_+<>?:"{},.\/;'[\]]/gi.test(r)?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:r}=d(),{register:e,elFormRef:v}=A(),{handleBackLogin:R,getLoginState:b}=N(),x=z(()=>a(b)===Q.REGISTER),k=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:[r()],password:[r()],check_password:[r()],code:[r()]},i=B(!1);return(ht,_)=>{const q=T,y=E,F=I;return D((K(),O(F,{rules:S,schema:a(k),class:"dark:(border-1 border-[var(--el-border-color)] border-solid)","hide-required-asterisk":"","label-position":"top",size:"large",onRegister:a(e)},{title:m(()=>[c(J,{style:{width:"100%"}})]),code:m(n=>[p("div",u,[c(q,{modelValue:n.code,"onUpdate:modelValue":s=>n.code=s,placeholder:a(t)("login.codePlaceholder")},null,8,["modelValue","onUpdate:modelValue","placeholder"])])]),register:m(()=>[p("div",h,[c(y,{loading:a(i),title:a(t)("login.register"),class:"w-[100%]",type:"primary",onClick:_[0]||(_[0]=n=>(async()=>{const s=a(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:a(t)("login.hasUser"),class:"w-[100%]",onClick:_[1]||(_[1]=n=>a(R)())},null,8,["title"])])]),_:1},8,["schema","onRegister"])),[[G,a(x)]])}}}),P=W(g,[["__file","D:/zx/mall-newfeifan-zx-business/src/views/Login/components/RegisterForm.vue"]])});export{ut as __tla,P as default};
