PageSourceSearch

https://archivi.ng/_nuxt/-IScKmBx.js

js archivi.ng collected 2026-10-02 17:04:50 UTC 8,206 bytes, 1 lines download raw bytes

1import q from"./ChB9BhF8.js";import{g as H,l as O,K as W,m as Y,j as Z,a1 as B,A as J,h as t,D as s,x as k,ah as K,P as i,ak as Q,J as l,I as b,E as C,Q as X,H as p,a4 as N,ai as D,B as f,aj as ee,a as d,c as L,n as V,G as se,o,v as te}from"./D3Mi9OEl.js";import{_ as oe}from"./BHzssZuM.js";import"./CeQ2PBfW.js";(function(){try{var g=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};g.SENTRY_RELEASE={id:"b1d507726365c2fa65bdc507ac9080512e92ee9c"};var c=new g.Error().stack;c&&(g._sentryDebugIds=g._sentryDebugIds||{},g._sentryDebugIds[c]="55fd37c3-c130-4a0d-97ec-8734e2efa565",g._sentryDebugIdIdentifier="sentry-dbid-55fd37c3-c130-4a0d-97ec-8734e2efa565")}catch{}})();const ae={class:"register"},le={class:"register__container"},ne={class:"left__container"},re={class:"form__container"},ie={class:"form__container--inner"},ue={key:0,class:"register__title"},de={key:1,class:"success__container"},ce={class:"success__message"},ve={key:0,class:"success__note success__resent"},me={key:1,class:"success__note"},pe=["disabled"],fe=["disabled"],ge={key:0,class:"error--text"},_e=["disabled"],ye={key:0,class:"error--text"},ke={class:"password-input-container"},be=["type","disabled"],we=["disabled"],he={key:0,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},xe={key:1,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ce={key:0,class:"password-tooltip"},Ae={key:0,class:"error--text"},Ee={key:0,class:"success--message"},Pe={key:1,class:"error--message"},Se=["disabled"],Ne={key:0},Ve={key:1},Be={key:3,class:"divider"},De=["disabled"],Le={key:0},Me={key:1},Te={key:5,class:"login--prompt"},Ie={key:6,class:"terms-notice"},Re=H({__name:"index",setup(g){const c=d(""),u=d(""),n=d(""),_=d(""),a=d({}),y=d(!1),A=d(!1),E=d(!1),P=d(!1),S=d(!1),w=O(),{isAuthenticated:M,loading:v,error:T}
1=W(w),{register:I,connectWithGoogle:R}=Y();Z(()=>{w.clearError(),_.value=""});const h=L(()=>({minLength:n.value.length>=8,hasUppercase:/[A-Z]/.test(n.value),hasLowercase:/[a-z]/.test(n.value),hasNumber:/[0-9]/.test(n.value),hasSymbol:/[^A-Za-z0-9]/.test(n.value)})),j=L(()=>c.value.trim()!==""&&u.value.trim()!==""&&n.value!=="");B(T,r=>{r&&(_.value=r)},{immediate:!0}),B(M,r=>{r&&V("/")});function $(){if(a.value={},c.value.trim().split(/\s+/).length<2)return a.value.name="Please enter both your first and last name",!1;const e=w.validateRegistration(c.value,u.value,n.value);return!e.valid&&e.errors&&(a.value={...a.value,...e.errors}),e.valid&&!a.value.name}async function F(){if(!$()){_.value="Please correct the errors in the form";return}w.clearError(),_.value="",await I(c.value,u.value,n.value)&&V({path:"/auth/confirm",query:{email:u.value}})}async function G(){w.clearError(),_.value="",await R("signup")&&await V("/")}async function U(){if(u.value){A.value=!0,E.value=!1;try{(await $fetch("/api/auth/resend-confirmation",{method:"POST",body:{email:u.value}})).success&&(E.value=!0)}catch(r){console.error("Failed to resend confirmation:",r)}finally{A.value=!1}}}return J({title:"Register | Archivi.ng"}),(r,e)=>{const z=q,x=se;return o(),t("div",ae,[s("div",le,[s("div",ne,[k(z)]),s("div",re,[s("div",ie,[e[29]||(e[29]=s("div",{class:"logo__container"},[s("img",{src:K,alt:"Archivi.ng logo",class:"logo--image"})],-1)),y.value?i("",!0):(o(),t("h1",ue,"Create your account")),y.value?(o(),t("div",de,[e[13]||(e[13]=s("div",{class:"success__icon"},[s("img",{src:Q,alt:""})],-1)),e[14]||(e[14]=s("h2",{class:"success__title"},"Check your email",-1)),s("p",ce,[e[6]||(e[6]=l(" We've sent a verification code to ",-1)),s("strong",null,b(u.value),1),e[7]||(e[7]=l(". Please check your inbox and enter the code to activate your account. ",-1))]),E.value?(o(),t("p",ve," Verification email sent! Please check your inbox. ")):(o(),t("p",me,[e[9]||(e[9]=l(" Didn't receive the email? Check your spam folder, ",-1)),s("button",{onClick:U,disabled:A.value,class:"success__link"},b(A.value?"Sending...":"resend confirmation email"),9,pe),e[10]||(e[10]=l(", or ",-1)),k(x,{to:"/login",class:"success__link"},{default:C(()=>[...e[8]||(e[8]=[l("try logging in",-1)])]),_:1}),e[11]||(e[11]=l(" if you've already verified. ",-1))])),k(x,{to:"/login",class:"back-to-login-btn"},{default:C(()=>[...e[12]||(e[12]=[l(" Back to Login ",-1)])]),_:1})])):(o(),t("form",{key:2,onSubmit:X(F,["prevent"]),class:"register__form"},[s("div",{class:p(["form-group",{error:a.value.name}])},[e[15]||(e[15]=s("label",{for:"fullName"},"Full Name*",-1)),N(s("input",{type:"text",id:"fullName","onUpdate:modelValue":e[0]||(e[0]=m=>c.value=m),placeholder:"Enter your full name",disabled:f(v)},null,8,fe),[[D,c.value]]),a.value.name?(o(),t("span",ge,b(a.value.name),1)):i("",!0)],2),s("div",{class:p(["form-group",{error:a.value.email}])},[e[16]||(e[16]=s("label",{for:"email"},"Email*",-1)),N(s("input",{type:"email",id:"email","onUpdate:modelValue":e[1]||(e[1]=m=>u.value=m),placeholder:"Enter your email",disabled:f(v)},null,8,_e),[[D,u.value]]),a.value.email?(o(),t("span",ye,b(a.value.email),1)):i("",!0)],2),s("div",{class:p(["form-group",{error:a.value.password}])},[e[20]||(e[20]=s("label",{for:"password"},"Password*",-1)),s("div",ke,[N(s("input",{type:P.value?"text":"password",id:"password","onUpdate:modelValue":e[2]||(e[2]=m=>n.value=m),placeholder:"Create a password",disabled:f(v),onFocus:e[3]||(e[3]=m=>S.value=!0),onBlur:e[4]||(e[4]=m=>S.value=!1)},null,40,be),[[ee,n.value]]),s("button",{type:"button",class:"password-toggle",onClick:e[5]||(e[5]=m=>P.value=!P.value),disabled:f(v)||!n.value},[P.value?(o(),t("svg",xe,[...e[18]||(e[18]=[s("path",{d:"m1 1 22 22",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),s("path",{d:"M6.71 6.71C4.27 8.21 1.58 10.9 1 12c.58 1.1 3.27 3.79 5.71 5.29M21 12c-.58-1.1-3.27-3.79-5.71-5.29",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),s("path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):(o(),t("svg",he,[...e[17]||(e[17]=[s("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z",stroke:"currentColor","stroke-width":"2",fill:"none"},null,-1),s("circle",{cx:"12",cy:"12",r:"3",stroke:"currentColor","stroke-width":"2",fill:"none"},null,-1)])]))],8,we),S.value?(o(),t("div",Ce,[e[19]||(e[19]=s("h4",null,"Your password must contain",-1)),s("ul",null,[s("li",{class:p({valid:h.value.minLength})}," At least 8 Characters ",2),s("li",{class:p({valid:h.value.hasUppercase})}," An uppercase letter ",2),s("li",{class:p({valid:h.value.hasLowercase})}," A lowercase letter ",2),s("li",{class:p({valid:h.value.hasNumber})}," A number ",2),s("li",{class:p({valid:h.value.hasSymbol})}," A symbol ",2)])])):i("",!0)]),a.value.password?(o(),t("span",Ae,b(a.value.password),1)):i("",!0)],2),E.value?(o(),t("div",Ee," Verification email sent! Please check your inbox. ")):i("",!0),_.value?(o(),t("div",Pe,b(_.value),1)):i("",!0),s("button",{type:"submit",class:"register__form--button",disabled:f(v)||!j.value},[f(v)?(o(),t("span",Ne,"Processing...")):(o(),t("span",Ve,"Create Account"))],8,Se)],32)),y.value?i("",!0):(o(),t("div",Be,[...e[21]||(e[21]=[s("span",null,"Or continue with",-1)])])),y.value?i("",!0):(o(),t("button",{key:4,class:"google-button",onClick:G,disabled:f(v)},[e[22]||(e[22]=s("img",{src:oe,alt:"Google",class:"google-icon"},null,-1)),f(v)?(o(),t("span",Le,"Connecting...")):(o(),t("span",Me,"Google"))],8,De)),y.value?i("",!0):(o(),t("div",Te,[e[24]||(e[24]=s("span",null,"Already have an account?",-1)),k(x,{to:"/login",class:"login--link"},{default:C(()=>[...e[23]||(e[23]=[l("Login",-1)])]),_:1})])),y.value?i("",!0):(o(),t("div",Ie,[s("p",null,[e[27]||(e[27]=l(" By joining Archivi.ng, you agree to our ",-1)),k(x,{to:"/terms-of-use",target:"_blank"},{default:C(()=>[...e[25]||(e[25]=[l("terms of use",-1)])]),_:1}),e[28]||(e[28]=l(" and ",-1)),k(x,{to:"/privacy-policy",target:"_blank"},{default:C(()=>[...e[26]||(e[26]=[l("privacy policy",-1)])]),_:1})])]))])])])])}}}),Ue=te(Re,[["__scopeId","data-v-e1356c99"]]);export{Ue 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.