PageSourceSearch

https://www.project-home.ai/build/assets/AccountInfoStep-CV0fcOXU.js

js project-home.ai collected 2026-10-05 13:54:09 UTC 4,530 bytes, 1 lines download raw bytes

1import{o as _,i as h,d as t,t as i,b as o,a as s,n as k,w as $,e as q,l as U,f as S,F as B,p as C,z as g}from"./app-Cxaof6Lh.js";import{_ as n}from"./InputError-Dvc7HO56.js";import{_ as m,a as d}from"./TextInput-Ipdnil0z.js";import{_ as w}from"./PasswordInput-ppq6BdMM.js";import{_ as F,u as N}from"./usePasswordValidation-CEHqB0EU.js";import{_ as P}from"./SelectInput-vMlZH3Yi.js";import{_ as j}from"./GoogleLoginButton-BczSwpu4.js";import{u as z}from"./useTranslation-BKytaGq-.js";const A={class:"text-3xl sm:text-[40px] font-bold text-neutral-900 tracking-wide leading-[40px] sm:leading-[52px] my-6"},O={class:"flex flex-col md:flex-row gap-4"},R={class:"flex-1"},T={class:"flex-1"},D={class:"mt-4"},E={class:"mt-4"},I={class:"mt-4"},M={class:"mt-4"},G={class:"flex flex-col items-center justify-end mt-8"},H=["disabled"],J={class:"text-primary font-bold"},se={__name:"AccountInfoStep",props:{form:{type:Object,required:!0},countries:{type:Array,default:()=>[]}},emits:["submit"],setup(e,{emit:x}){const c=e,p=x,{t:r}=z(),f=C(!1),{passwordChecks:v,isPasswordValid:u}=N(g(()=>c.form.password)),y=g(()=>!c.form.processing&&u.value),b=()=>{y.value&&p("submit")};return(V,a)=>(_(),h(B,null,[t("h1",A,i(o(r)("register.account.heading")),1),t("form",{onSubmit:S(b,["prevent"])},[s(j),a[7]||(a[7]=t("div",{class:"flex items-center my-6"},[t("hr",{class:"flex-1 border-neutral-200"}),t("span",{class:"px-6 text-sm text-neutral-500 bg-white"},"OR"),t("hr",{class:"flex-1 border-neutral-200"})],-1)),t("div",O,[t("div",R,[s(m,{for:"first_name",value:o(r)("register.account.first_name")},null,8,["value"]),s(d,{id:"first_name",type:"text",class:"mt-1 block w-full",modelValue:e.form.first_name,"onUpdate:modelValue":a[0]||(a[0]=l=>e.form.first_name=l),required:"",autofocus:"",autocomplete:"given-name"},null,8,["modelValue"]),s(n,{class:"mt-2",message:e.form.errors.first_name},null,8,["message"])]),t("div",T,[s(m,{for:"last_name",value:o(r)("register.account.last_name")},null,8,["value"]),s(d,{id:"last_name",type:"text",class:"mt-1 block w-full",modelValue:e.form.last_name,"onUpdate:modelValue":a[1]||(a[1]=l=>e.form.last_name=l),required:"",autocomplete:"family-name"},null,8,["modelValue"]),s(n,{class:"mt-2",message:e.form.errors.last_name},null,8,["message"])])]),t("div",D,[s(m,{for:"country_id",value:o(r)("register.account.country")},null,8,["value"]),s(P,{id:"country_id",modelValue:e.form.country_id,"onUpdate:modelValue":a[2]||(a[2]=l=>e.form.country_id=l),options:e.countries,placeholder:o(r)("register.account.country_placeholder"),"value-key":"id","label-key":"name",class:"mt-1",required:""},null,8,["modelValue","options","placeholder"]),s(n,{class:"mt-2",message:e.form.errors.country_id},null,8,["message"])]),t("div",E,[s(m,{for:"email",value:o(r)("register.account.email")},null,8,["value"]),s(d,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:e.form.email,"onUpdate:modelValue":a[3]||(a[3]=l=>e.form.email=l),required:"",autocomplete:"email"},null,8,["modelValue"]),s(n,{class:"mt-2",message:e.form.errors.email},null,8,["message"])]),t("div",I,[s(m,{for:"password",value:o(r)("register.account.password")},null,8,["value"]),s(w,{id:"password",modelValue:e.form.password,"onUpdate:modelValue":a[4]||(a[4]=l=>e.form.password=l),class:"mt-1 block w-full",autocomplete:"new-password",onFocus:a[5]||(a[5]=l=>f.value=!0)},null,8,["modelValue"]),s(n,{class:"mt-2",message:e.form.errors.password},null,8,["message"]),s(F,{"password-checks":o(v),show:f.value},null,8,["password-checks","show"])]),t("div",M,[s(m,{for:"password_confirmation",value:o(r)("register.account.confirm_password")},null,8,["value"]),s(w,{id:"password_confirmation",modelValue:e.form.password_confirmation,"onUpdate:modelValue":a[6]||(a[6]=l=>e.form.password_confirmation=l),class:"mt-1 block w-full",autocomplete:"new-password"},null,8,["modelValue"]),s(n,{class:"mt-2",message:e.form.errors.password_confirmation},null,8,["message"])]),t("div",G,[t("button",{class:k(["w-full rounded-3xl !text-center py-3 text-sm bg-primary text-primary-100 font-bold",{"opacity-25":e.form.processing||!o(u)}]),disabled:e.form.processing||!o(u)},i(o(r)("register.account.submit")),11,H),s(o(U),{href:V.route("login"),class:"rounded-md text-sm text-neutral-900 hover:text-neutral-950 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 mt
1-10"},{default:$(()=>[q(i(o(r)("register.account.already_have_account"))+" ",1),t("span",J,i(o(r)("register.account.sign_in")),1)]),_:1},8,["href"])])],32)],64))}};export{se 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.