PageSourceSearch

https://www.rewasd.com/_nuxt/DQTJGHFg.js

js rewasd.com collected 2026-10-03 21:40:30 UTC 6,522 bytes, 1 lines download raw bytes

1import{d as P,e as c,f as _,h as o,G as C,k as w,t as r,s as D,g as t,a0 as L,a1 as T,j as E,E as G,K as H,L as z,D as I,M as U,i,l as p,r as N,p as W,B as K,A as J}from"./CFxGRstO.js";import{_ as M}from"./6HuN2jx9.js";import{_ as Q}from"./ChN_4ZVZ.js";import{_ as X}from"./B-1_KvNR.js";import{_ as Y}from"./CnIo5AX8.js";import{_ as Z}from"./DnMM_Yjt.js";import{v as l}from"./Dir1hRYt.js";import{y as tt}from"./C97LyYTF.js";import{a as q,d as ot,c as et,u as st,b as O}from"./CgWzIhW9.js";import{i as at}from"./Dhu0ts9N.js";import{u as it}from"./CdviQ7zO.js";import{p as rt}from"./Bg2uL3dI.js";import{_ as nt}from"./CR0-Au_c.js";import"./Dav6wwHW.js";import"./C16c000V.js";import"./DlAUqK2U.js";import"./Cpj98o6Y.js";import"./B2a-ywG8.js";import"./BWBHGvIx.js";import"./-vsEa_js.js";const lt={class:"tw-mx-auto tw-text-center"},mt={class:"tw-text-h4 !tw-text-yellow !tw-mb-6 password-form-header"},dt={class:"tw-mb-6 tw-mx-auto sign-in-block"},ct={class:"tw-mb-4"},ut={class:"!tw-text-yellow signup-form-link"},pt=P({__name:"EmailConfirmation",props:{email:{},hash:{}},setup(m){return(g,n)=>(c(),_("div",lt,[o("h1",mt,[C(g.$slots,"default")]),o("div",dt,[o("p",ct,[w(r(g.$t("account.profile.confirm_email.text"))+": ",1),o("span",ut,r(m.email),1),n[0]||(n[0]=w(". ",-1))])])]))}}),_t=Object.assign(pt,{__name:"UserEmailConfirmation"}),{addCustomEmailValidator:wt,addNonTemporaryEmailValidator:ft}=tt();wt();ft();function bt(){const m={email:q().required(l("validation.common.required")).email(l("validation.email.enter_valid")).nonTemporaryEmail(l("validation.email.not_temporary")).min(5).max(200),password:q().required(l("validation.common.required")).min(6,l("validation.password.too_short")).max(200,l("validation.password.too_long")),cpassword:q().required(l("validation.common.required")).oneOf([ot("password")],l("validation.password.not_match")).min(6,l("validation.password.too_short")).max(200,l("validation.password.too_long"))};return et(m)}const vt={key:0},ht={key:1,class:"tw-mx-auto sign-in-block"},gt={key:0,class:"alert alert-warning",role:"alert"},xt={class:"tw-mb-4"},$t={class:"tw-mb-4"},yt={for:"email",class:"form-label"},kt={key:0,class:"error-msg invalid-feedback"},Vt={class:"tw-mb-2"},Ct={class:"tw-mb-4"},Et={class:"tw-mb-6"},Ft={class:"tw-mb-4"},Rt={class:"tw-mr-auto tw-text-sm tw-mb-4"},St={class:"tw-grid tw-gap-2 tw-py-2 tw-mb-4"},Bt=P({__name:"RegistrationForm",props:{emailLabel:{default:"Email"},passwordLabel:{default:"Password"},cpasswordLabel:{default:"Repeat password"},buttonText:{}},setup(m){const g=D(),{submitWithRecaptcha:n,preloadRecaptchaOnInteraction:f}=it(),y=bt(),{handleSubmit:F,isSubmitting:b,errors:u,meta:R,setErrors:v}=st({validationSchema:y}),{value:h}=O("email"),{value:d}=O("password"),{value:x}=O("cpassword"),S=N(""),k=N(!1),A=N(!1),j=F(async a=>{const e={email:a.email,password:a.password,cpassword:a.cpassword};await n(e,async V=>{S.value="";try{const{userErrors:$,data:B}=await g.signUp(V);$?(await rt(800),v($.errors)):(k.value=!0,S.value=B.hash)}catch{A.value=!0}})});return(a,e)=>{const V=Y,$=M,B=Z;return t(k)?(c(),_("div",vt,[C(a.$slots,"success-message",L(T({email:t(h),activationHash:t(S)})))])):(c(),_("div",ht,[o("div",null,[C(a.$slots,"before-form",L(T({finished:t(k)}))),t(A)?(c(),_("div",gt,r(a.$t("user.registration_form.generic_error")),1)):E("",!0),o("form",{onFocusinCaptureOnce:e[6]||(e[6]=(...s)=>t(f)&&t(f)(...s)),onPointerdownCaptureOnce:e[7]||(e[7]=(...s)=>t(f)&&t(f)(...s)),onSubmit:e[8]||(e[8]=G((...s)=>t(j)&&t(j)(...s),["prevent"]))},[o("div",xt,[o("div",$t,[o("label",yt,r(m.emailLabel),1),H(o("input",{id:"email","onUpdate:modelValue":e[0]||(e[0]=s=>U(h)?h.value=s:null),type:"email",class:I(["form-control",[t(u).email&&"is-invalid"]]),name:"email",onFocus:e[1]||(e[1]=s=>t(v)({email:""}))},null,34),[[z,t(h)]]),t(u).email?(c(),_("div",kt,r(t(u).email),1)):E("",!0)])]),o("div",Vt,[o("div",Ct,[i(V,{modelValue:t(d),"onUpdate:modelValue":e[2]||(e[2]=s=>U(d)?d.value=s:null),label:m.passwordLabel,"error-text":t(u).password,"is-disabled":t(b),onFocus:e[3]||(e[3]=s=>t(v)({password:""}))},null,8,["modelValue","label","error-text","is-disabled"])])]),o("div",Et,[o("div",Ft,[i(V,{modelValue:t(x),"onUpdate:modelValue":e[4]||(e[4]=s=>U(x)?x.value=s:null),label:m.cpasswordLabel,"error-text":t(u).cpassword,"is-disabled":t(b),onFocus:e[5]||(e[5]=s=>t(v)({cpassword:""}))},null,8,["modelValue","label","error-text","is-disabled"])])]),o("div",Rt,[w(r(a.$t("user.registration_form.terms_agreement"))+" ",1),i($,{to:"/terms-of-use"},{default:p(()=>[w(r(a.$t("user.registration_form.terms_of_service")),1)]),_:1}),w(" "+r(a.$t("user.registration_form.and"))+" ",1),i($,{to:"/privacy"},{default:p(()=>[w(r(a.$t("user.registration_form.privacy_policy")),1)]),_:1})]),o("div",St,[i(B,{label:m.buttonText,class:"btn btn-md btn-primary btn-spinner ripple",type:"submit",disabled:t(b)||!t(at)(t(u))&&t(R).touched,loading:t(b)},null,8,["label","disabled","loading"])])],32),C(a.$slots,"after-form",L(T({finished:t(k)})))])]))}}}),Lt=Object.assign(Bt,{__name:"UserRegistrationForm"}),Tt={key:0,class:"tw-text-h4 !tw-text-yellow !tw-mb-4 tw-mx-auto sign-in-block tw-text-center password-form-header"},Ut={class:"tw-flex tw-gap-x-4 tw-justify-center tw-items-center tw-flex-col"},Nt={class:"tw-mb-0"},qt={key:0,class:"tw-mx-auto sign-in-block"},Ot={class:"tw-grid tw-mx-auto tw-mb-4 sign-in-block"}
1,ao=P({__name:"sign-up",setup(m){return(n,f)=>{const y=J,F=_t,b=M,u=Q,R=X,v=Lt,h=nt;return c(),W(h,null,{default:p(()=>[i(v,{"button-text":n.$t("user.registration_form.register_button")},{"before-form":p(({finished:d})=>[d?E("",!0):(c(),_("h1",Tt,[i(y,{text:n.$t("user.registration_form.sign_up_title")},null,8,["text"])]))]),"success-message":p(({email:d,activationHash:x})=>[i(F,{email:d,hash:x},{default:p(()=>[i(y,{text:n.$t("account.profile.confirm_email.title")},null,8,["text"])]),_:1},8,["email","hash"])]),"after-form":p(({finished:d})=>[d?E("",!0):(c(),_(K,{key:0},[o("div",Ut,[o("p",Nt,[w(r(n.$t("user.registration_form.already_have_account"))+" ",1),i(b,{to:"/user/sign-in"},{default:p(()=>[w(r(n.$t("user.registration_form.sign_in")),1)]),_:1})])]),(c(),_("div",qt,[o("div",Ot,[f[0]||(f[0]=o("div",{class:"tw-text-white tw-w-3/4 tw-mx-auto tw-relative tw-text-fs-sm tw-my-6"},[o("hr",{class:"tw-my-4 tw-opacity-25"}),o("span",{class:"tw-absolute tw-top-1/2 tw-left-1/2 -tw-translate-x-1/2 -tw-translate-y-1/2 !tw-bg-dark tw-px-2"}," or sign in with ")],-1)),i(u)]),i(R)]))],64))]),_:1},8,["button-text"])]),_:1})}}});
1export{ao 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.