PageSourceSearch

https://di-volio.com/pl/_nuxt/DpEHdugR.js

js di-volio.com collected 2026-10-05 05:31:45 UTC 12,400 bytes, 1 lines download raw bytes

1import{B as j,c as l,d as t,ao as A,Q as B,f as g,N as p,aq as v,r as u,z as n,t as f,e as x,aw as L,o,a2 as V}from"./CjXW0tVs.js";const q={class:"flex min-h-full flex-1 flex-col justify-center py-12 sm:px-6 lg:px-8"},E={class:"mt-10 sm:mx-auto sm:w-full sm:max-w-[480px]"},H={class:"bg-white px-6 py-12 shadow sm:rounded-lg sm:px-12"},U={class:"mb-4"},Z={class:"mt-2"},z={key:0,class:"text-red-500 text-sm mt-1"},F={class:"mb-4"},O={class:"mt-2"},R={key:0,class:"text-red-500 text-sm mt-1"},S={class:"mb-4"},$={class:"mt-2"},D={key:0,class:"text-red-500 text-sm mt-1"},T={class:"mb-4"},K={class:"mt-2"},P={class:"mb-4"},G={class:"mt-2"},Q={class:"mt-2"},W={class:"text-sm text-gray-500"},I={class:"mr-2"},J={key:0,xmlns:"http://www.w3.org/2000/svg",class:"inline h-4 w-4 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},X={key:1,xmlns:"http://www.w3.org/2000/svg",class:"inline h-4 w-4 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},Y={class:"mr-2"},ee={key:0,xmlns:"http://www.w3.org/2000/svg",class:"inline h-4 w-4 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},te={key:1,xmlns:"http://www.w3.org/2000/svg",class:"inline h-4 w-4 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},se={class:"mr-2"},le={key:0,xmlns:"http://www.w3.org/2000/svg",class:"inline h-4 w-4 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},oe={key:1,xmlns:"http://www.w3.org/2000/svg",class:"inline h-4 w-4 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},re={class:"mr-2"},ae={key:0,xmlns:"http://www.w3.org/2000/svg",class:"inline h-4 w-4 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},ie={key:1,xmlns:"http://www.w3.org/2000/svg",class:"inline h-4 w-4 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},ne={class:"mr-2"},ue={key:0,xmlns:"http://www.w3.org/2000/svg",class:"inline h-4 w-4 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},de={key:1,xmlns:"http://www.w3.org/2000/svg",class:"inline h-4 w-4 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},me={key:0,class:"text-red-500 text-sm mt-1"},pe={class:"mb-6"},ve={class:"mt-2"},we={key:0,class:"mb-4 text-red-500 text-sm"},xe={__name:"index",setup(ge){const M=L(),h=u(""),b=u(""),w=u(""),c=u(""),d=u(""),y=u(""),s=u({firstName:"",lastName:"",email:"",password:"",general:""}),r=u({length:!1,upper:!1,lower:!1,number:!1,special:!1});j(d,i=>{r.value.length=i.length>=8,r.value.upper=/[A-Z]/.test(i),r.value.lower=/[a-z]/.test(i),r.value.number=/[0-9]/.test(i),r.value.special=/[!@#$%^&*(),.?":{}|<>]/.test(i)});const _=async()=>{s.value={firstName:"",lastName:"",email:"",password:"",general:""};let i=!1;w.value!==c.value&&(s.value.email="Email addresses do not match.",i=!0),d.value!==y.value&&(s.value.password="Passwords do not match.",i=!0);const e=d.value;if((e.length<8||!/[A-Z]/.test(e)||!/[a-z]/.test(e)||!/[0-9]/.test(e)||!/[!@#$%^&*(),.?":{}|<>]/.test(e))&&(i=!0),!i)try{const{data:a,error:k}=await V("/api/auth/register",{method:"POST",body:{firstName:h.value,lastName:b.value,email:w.value,email2:c.value,password1:d.value,password2:y.value}},"$NfchKK9dWO");if(k.value){const C=k.value.data?.data;if(C)for(const[N,m]of Object.entries(C))s.value.hasOwnProperty(N)?s.value[N]=Array.isArray(m)?m.join(" "):m:s.value.general+=Array.isArray(m)?m.join(" "):m+" ";else s.value.general="An error occurred during registration.";return}a.value?.success?M.push({path:"/register/success",query:{email:w.value}}):s.value.general="Registration failed. Please try again."}catch(a){console.error(a),s.value.general="An unexpected error occurred."}};return(i,e)=>(o(),l("div",q,[e[29]||(e[29]=t("div",{class:"sm:mx-auto sm:w-full sm:max-w-md"},[t("h2",{class:"mt-6 text-center text-2xl/9 font-bold tracking-tight text-gray-900"}," Create Account ")],-1)),t("div",E,[t("div",H,[t("form",{onSubmit:B(_,["prevent"])},[t("div",U,[e[6]||(e[6]=t("label",{for:"firstName",class:"block text-sm/6 font-medium text-gray-900"}," First Name ",-1)),t("div",Z,[p(t("input",{"onUpdate:modelValue":e[0]||(e[0]=a=>h.value=a),type:"text",name:"firstName",id:"firstName",autocomplete:"given-name",required:"",class:n([{"border-red-500":s.value.firstName},"block w-full rounded-md bg-white px-3 py-1.5 text-base text-gray-900 outline outline-1 outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:outline-primary sm:text-sm/6"])},null,2),[[v,h.value]])]),s.value.firstName?(o(),l("span",z,f(s.value.firstName),1)):g("",!0)]),t("div",F,[e[7]||(e[7]=t("label",{for:"lastName",class:"block text-sm/6 font-medium text-gray-900"}," Last Name ",-1)),t("div",O,[p(t("input",{"onUpdate:modelValue":e[1]||(e[1]=a=>b.value=a),type:"text",name:"lastName",id:"lastName",autocomplete:"family-name",required:"",class:n([{"border-red-500":s.value.lastName},"block w-full rounded-md bg-white px-3 py-1.5 text-base text-gray-900 outline outline-1 outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:outline-primary sm:text-sm/6"])},null,2),[[v,b.value]])]),s.value.lastName?(o(),l("span",R,f(s.value.lastName),1)):g("",!0)]),t("div",S,[e[8]||(e[8]=t("label",{for:"email",class:"block text-sm/6 font-medium text-gray-900"}," Email Address ",-1)),t("div",$,[p(t("input",{"onUpdate:modelValue":e[2]||(e[2]=a=>w.value=a),type:"email",name:"email",id:"email",autocomplete:"email",required:"",class:n([{"border-red-500":s.value.email},"block w-full rounded-md bg-white px-3 py-1.5 text-base text-gray-900 outline outline-1 outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:outline-primary sm:text-sm/6"])},null,2),[[v,w.value]])]),s.value.email?(o(),l("span",D,f(s.value.email),1)):g("",!0)]),t("div",T,[e[9]||(e[9]=t("label",{for:"email2",class:"block text-sm/6 font-medium text-gray-900"}," Confirm Email Address ",-1)),t("div",K,[p(t("input",{"onUpdate:modelValue":e[3]||(e[3]=a=>c.value=a),type:"email",name:"email2",id:"email2",autocomplete:"email",required:"",class:n([{"border-red-500":s.value.email},"block w-full rounded-md bg-white px-3 py-1.5 text-base text-gray-900 outline outline-1 outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:outline-primary sm:text-sm/6"])},null,2),[[v,c.value]])])]),t("div",P,[e[25]||(e[25]=t("label",{for:"password1",class:"block text-sm/6 font-medium text-gray-900"}," Password ",-1)),t("div",G,[p(t("input",{"onUpdate:modelValue":e[4]||(e[4]=a=>d.value=a),type:"password",name:"password1",id:"password1",autocomplete:"new-password",required:"",class:n([{"border-red-500":s.value.password},"block w-full rounded-md bg-white px-3 py-1.5 text-base text-gray-900 outline outline-1 outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:outline-primary sm:text-sm/6"])},null,2),[[v,d.value]])]),t("div",Q,[t("ul",W,[t("li",{class:n({"text-red-500":!r.value.length})},[t("span",I,[r.value.length?(o(),l("svg",J,[...e[10]||(e[10]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):(o(),l("svg",X,[...e[11]||(e[11]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)])]))]),e[12]||(e[12]=x(" At least 8 characters ",-1))],2),t("li",{class:n({"text-red-500":!r.value.upper})},[t("span",Y,[r.value.upper?(o(),l("svg",ee,[...e[13]||(e[13]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):(o(),l("svg",te,[...e[14]||(e[14]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)])]))]),e[15]||(e[15]=x(" At least one uppercase letter ",-1))],2),t("li",{class:n({"text-red-500":!r.value.lower})},[t("span",se,[r.value.lower?(o(),l("svg",le,[...e[16]||(e[16]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):(o(),l("svg",oe,[...e[17]||(e[17]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)])]))]),e[18]||(e[18]=x(" At least one lowercase letter ",-1))],2),t("li",{class:n({"text-red-500":!r.value.number})},[t("span",re,[r.value.number?(o(),l("svg",ae,[...e[19]||(e[19]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):(o(),l("svg",ie,[...e[20]||(e[20]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)])]))]),e[21]||(e[21]=x(" At least one number ",-1))],2),t("li",{class:n({"text-red-500":!r.value.special})},[t("span",ne,[r.value.special?(o(),l("svg",ue,[...e[22]||(e[22]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):(o(),l("svg",de,[...e[23]||(e[23]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)])]))]),e[24]||(e[24]=x(" At least one special character (!@#$%^&*) ",-1))],2)])]),s.value.password?(o(),l("span",me,f(s.value.password),1)):g("",!0)]),t("div",pe,[e[26]||(e[26]=t("label",{for:"password2",class:"block text-sm/6 font-medium text-gray-900"}," Confirm Password ",-1)),t("div",ve,[p(t("input",{"onUpdate:modelValue":e[5]||(e[5]=a=>y.value=a),type:"password",name:"password2",id:"password2",autocomplete:"new-password",required:"",class:n([{"border-red-500":s.value.password},"block w-full rounded-md bg-white px-3 py-1.5 text-base text-gray-900 outline outline-1 outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:outline-primary sm:text-sm/6"])},null,2),[[v,y.value]])])]),s.value.general?(o(),l("div",we,f(s.value.general),1)):g("",!0),e[27]||
1(e[27]=t("div",{class:"pt-4"},[t("button",{type:"submit",class:"flex cta is-primary w-full justify-center rounded-md px-3 py-1.5 text-sm/6 font-semibold text-white shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"}," Register ")],-1))],32),e[28]||(e[28]=A('<div><div class="relative mt-10"><div class="absolute inset-0 flex items-center" aria-hidden="true"><div class="w-full border-t border-gray-200"></div></div><div class="relative flex justify-center text-sm/6 font-medium"><span class="bg-white px-6 text-gray-900">Or continue with</span></div></div><div class="mt-6 grid grid-cols-2 gap-4"><a href="#" class="flex w-full items-center justify-center gap-3 rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus-visible:ring-transparent"><svg class="h-5 w-5" aria-hidden="true" viewBox="0 0 24 24"><path d="M12.0003 4.75C13.7703 4.75 15.3553 5.36002 16.6053 6.54998L20.0303 3.125C17.9502 1.19 15.2353 0 12.0003 0C7.31028 0 3.25527 2.69 1.28027 6.60998L5.27028 9.70498C6.21525 6.86002 8.87028 4.75 12.0003 4.75Z" fill="#EA4335"></path><path d="M23.49 12.275C23.49 11.49 23.415 10.73 23.3 10H12V14.51H18.47C18.18 15.99 17.34 17.25 16.08 18.1L19.945 21.1C22.2 19.01 23.49 15.92 23.49 12.275Z" fill="#4285F4"></path><path d="M5.26498 14.2949C5.02498 13.5699 4.88501 12.7999 4.88501 11.9999C4.88501 11.1999 5.01998 10.4299 5.26498 9.7049L1.275 6.60986C0.46 8.22986 0 10.0599 0 11.9999C0 13.9399 0.46 15.7699 1.28 17.3899L5.26498 14.2949Z" fill="#FBBC05"></path><path d="M12.0004 24.0001C15.2404 24.0001 17.9654 22.935 19.9454 21.095L16.0804 18.095C15.0054 18.82 13.6204 19.245 12.0004 19.245C8.8704 19.245 6.21537 17.135 5.2654 14.29L1.27539 17.385C3.25539 21.31 7.3104 24.0001 12.0004 24.0001Z" fill="#34A853"></path></svg><span class="text-sm/6 font-semibold">Google</span></a><a href="/auth/facebook" class="flex w-full items-center justify-center gap-3 rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus-visible:ring-transparent"><span class="[&amp;&gt;svg]:h-5 [&amp;&gt;svg]:w-5 [&amp;&gt;svg]:fill-[#1877f2]"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M80 299.3V512H196V299.3h86.5l18-97.8H196V166.9c0-51.7 20.3-71.5 72.7-71.5c16.3 0 29.4 .4 37 1.2V7.9C291.4 4 256.4 0 236.2 0C129.3 0 80 50.5 80 159.4v42.1H14v97.8H80z"></path></svg></span><span class="text-sm/6 font-semibold">Facebook</span></a></div></div>',1))])])]))}};export{xe 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.