PageSourceSearch

https://flowmq.io/_nuxt/BkvfSzen.js

js flowmq.io collected 2026-10-10 00:36:48 UTC 5,796 bytes, 1 lines download raw bytes

1import{_ as M}from"./BVDYO-w2.js";import{_ as G}from"./yOSRwLU9.js";import{t as J,_ as K,a as Q,b as W,c as X}from"./BA39RLzk.js";import{u as Y,F as ee}from"./B9quOlT3.js";import{_ as te}from"./B2cu2pV_.js";import{_ as se}from"./CL0fvtzj.js";import{_ as re}from"./BfiIOFYo.js";import{_ as oe}from"./DzYU8giY.js";import{d as ae,u as ne,e as ie,a3 as le,w as ue,a5 as me,c as ce,a as o,i as p,j as r,g as h,h as pe,af as de,o as c,Z as n,U as t,_ as l,a2 as L,I as C,a1 as d,R as I,a9 as _e,q as fe}from"./B5ypgLFi.js";import{_ as ge}from"./DasSiUug.js";import{_ as he}from"./CqWK78FT.js";import{v as R}from"./TFuywogJ.js";import{o as ve,s as F}from"./CBLLHJls.js";import{u as we}from"./DD7_lBPD.js";import"./C1tSitqM.js";import"./B2SBFMO9.js";import"./DNIe5Eja.js";import"./CeXtrIGW.js";import"./B7fCO2tf.js";import"./CjMghhTy.js";import"./_TtA5Tsl.js";import"./Dqr1R4e4.js";import"./CKzuGDIT.js";const $e={class:"w-full"},be={class:"grid gap-5"},ye={class:"relative flex items-center py-1"},xe={class:"bg-background px-3 text-sm text-muted-foreground"},Pe={class:"border-t border-border pt-4 text-sm leading-6 text-muted-foreground"},ke={class:"flex flex-col items-center justify-center gap-1 border-t border-border/70 pt-5 text-center text-sm text-muted-foreground sm:flex-row"},We=ae({__name:"sign-up",setup(Ae){const{t:a}=ne(),U=ie(),{auth:q}=we(),f=h(!1),u=h(""),$=h(!1),b=h(!1),g=pe(()=>U.query.redirect);le({title:a("auth.register.title")});const i=fe({uppercase:!1,lowercase:!1,number:!1,special:!1,minLength:!1});function T(e){i.uppercase=/[A-Z]/.test(e),i.lowercase=/[a-z]/.test(e),i.number=/\d/.test(e),i.special=/[!@#$%^&*(),.?":{}|<>]/.test(e),i.minLength=e.length>=8}const E=J(ve({email:F().email(a("auth.register.errors.invalidEmail")),password:F().min(8,a("auth.register.errors.passwordLength")).refine(e=>/[A-Z]/.test(e),{message:a("auth.register.errors.missingUppercase")}).refine(e=>/[a-z]/.test(e),{message:a("auth.register.errors.missingLowercase")}).refine(e=>/\d/.test(e),{message:a("auth.register.errors.missingNumber")}).refine(e=>/[!@#$%^&*(),.?":{}|<>]/.test(e),{message:a("auth.register.errors.missingSpecial")})})),{handleSubmit:B,values:N}=Y({keepValuesOnUnmount:!0,validationSchema:E,initialValues:{email:"",password:""}});ue(()=>N.password,e=>
1{e?T(e):Object.keys(i).forEach(s=>{i[s]=!1})},{immediate:!0});const y=B(async e=>{try{f.value=!0,u.value="";const s=me("/auth/confirm"),v=g.value?`${window.location.origin}${s}?redirect=${encodeURIComponent(g.value)}`:`${window.location.origin}${s}`,{error:m}=await q.signUp({email:e.email,password:e.password,options:{emailRedirectTo:v}});if(m){m.message.includes("email address is too long")||m.message.toLowerCase().includes("too long")?u.value=a("auth.register.errors.emailTooLong"):m.message.includes("email")||m.message.includes("already")?u.value=a("auth.register.errors.emailInUse"):u.value=a("auth.register.errors.generalError");return}b.value=!0}catch(s){console.error("Sign up error:",s),u.value=a("auth.register.errors.generalError")}finally{f.value=!1}});return(e,s)=>{const v=M,m=G,x=Q,O=te,P=W,k=X,A=K,S=ee,V=se,j=re,w=oe,Z=de("I18nT"),z=_e,D=ge,H=he;return c(),ce("div",$e,[o(b)?(c(),p(H,{key:1,tone:"success",icon:"lucide:mail-check",title:e.$t("auth.register.successTitle"),description:e.$t("auth.register.successMessage")},null,8,["title","description"])):(c(),p(D,{key:0,title:e.$t("auth.register.title")},{default:r(()=>[n("div",be,[t(v,{"is-loading":o(f)},null,8,["is-loading"]),n("div",ye,[s[2]||(s[2]=n("div",{class:"h-px flex-1 bg-border"},null,-1)),n("span",xe,l(e.$t("auth.signin.or")),1),s[3]||(s[3]=n("div",{class:"h-px flex-1 bg-border"},null,-1))]),n("form",{class:"grid gap-5",onSubmit:s[1]||(s[1]=(..._)=>o(y)&&o(y)(..._))},[o(u)?(c(),p(m,{key:0,message:o(u)},null,8,["message"])):L("",!0),t(S,{name:"email"},{default:r(({componentField:_})=>[C((c(),p(A,null,{default:r(()=>[t(x,null,{default:r(()=>[d(l(e.$t("auth.register.emailLabel")),1)]),_:1}),t(P,null,{default:r(()=>[t(O,I(_,{type:"email",placeholder:e.$t("auth.register.emailPlaceholder"),autocomplete:"email",class:"h-11"}),null,16,["placeholder"])]),_:2},1024),t(k)]),_:2},1024)),[[o(R)]])]),_:1}),t(S,{name:"password"},{default:r(({componentField:_})=>[C((c(),p(A,null,{default:r(()=>[t(x,null,{default:r(()=>[d(l(e.$t("auth.register.passwordLabel")),1)]),_:1}),t(P,null,{default:r(()=>[t(V,I(_,{placeholder:e.$t("auth.register.passwordPlaceholder"),autocomplete:"new-password","show-aria-label":e.$t("auth.password.show"),"hide-aria-label":e.$t("auth.password.hide"),"input-class":"h-11",onFocus:s[0]||(s[0]=Se=>$.value=!0)}),null,16,["placeholder","show-aria-label","hide-aria-label"])]),_:2},1024),t(k),o($)?(c(),p(j,{key:0,class:"mt-1",requirements:o(i),"i18n-prefix":"auth.register.passwordRequirements"},null,8,["requirements"])):L("",!0)]),_:2},1024)),[[o(R)]])]),_:1}),n("div",Pe,[t(Z,{scope:"global",keypath:"auth.register.termsAndPolicy",tag:"span"},{termsOfService:r(()=>[t(w,{url:"/content/terms-of-service",class:"text-primary hover:underline underline-offset-4"},{default:r(()=>[d(l(e.$t("auth.register.termsOfService")),1)]),_:1})]),privacyPolicy:r(()=>[t(w,{url:"/content/privacy-policy",class:"text-primary hover:underline underline-offset-4"},{default:r(()=>[d(l(e.$t("auth.register.privacyPolicy")),1)]),_:1})]),_:1})]),t(z,{type:"submit",class:"h-11 w-full font-normal",loading:o(f)},{default:r(()=>[d(l(e.$t("auth.register.signUpButton")),1)]),_:1},8,["loading"]),n("div",ke,[n("span",null,l(e.$t("auth.register.alreadyHaveAccount")),1),t(w,{url:o(g)?`/auth/sign-in?redirect=${encodeURIComponent(o(g))}`:"/auth/sign-in",class:"text-primary hover:underline underline-offset-4"},{default:r(()=>[d(l(e.$t("auth.register.signIn")),1)]),_:1},8,["url"])])],32)])]),_:1},8,["title"]))])}}});export{We as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.