PageSourceSearch

https://bbcc.ai/build/assets/register-CAloKUnG.js

js bbcc.ai collected 2026-10-05 12:14:01 UTC 2,664 bytes, 1 lines download raw bytes

1import{e as c,j as e,H as u}from"./app-DP13319Q.js";import{I as i,a as d}from"./input-Du_IreF9.js";import{T as x}from"./text-link-CaiCOl2M.js";import{B as h}from"./button-rFeFNNd5.js";import{L as m}from"./label-CjdjKtaD.js";import{A as g}from"./auth-layout-D4SvDWCh.js";import{L as w}from"./loader-circle-C-YIUsb6.js";/* empty css            */import"./utils-SWYxlXfx.js";import"./clsx-B-dksMZM.js";import"./index-DGVtPzwd.js";import"./app-logo-icon-B_rIw4ab.js";import"./createLucideIcon-BZKkeQZf.js";function A(){const{data:r,setData:t,post:n,processing:s,errors:o,reset:l}=c({name:"",email:"",password:"",password_confirmation:""}),p=a=>{a.preventDefault(),n(route("register"),{onFinish:()=>l("password","password_confirmation")})};return e.jsxs(g,{title:"Create an account",description:"Enter your details below to create your account",children:[e.jsx(u,{title:"Register"}),e.jsxs("form",{className:"flex flex-col gap-6",onSubmit:p,children:[e.jsxs("div",{className:"grid gap-6",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(m,{htmlFor:"name",children:"Name"}),e.jsx(i,{id:"name",type:"text",required:!0,autoFocus:!0,tabIndex:1,autoComplete:"name",value:r.name,onChange:a=>t("name",a.target.value),disabled:s,placeholder:"Full name"}),e.jsx(d,{message:o.name,className:"mt-2"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(m,{htmlFor:"email",children:"Email address"}),e.jsx(i,{id:"email",type:"email",required:!0,tabIndex:2,autoComplete:"email",value:r.email,onChange:a=>t("email",a.target.value),disabled:s,placeholder:"[email protected]"}),e.jsx(d,{message:o.email})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(m,{htmlFor:"password",children:"Password"}),e.jsx(i,{id:"password",type:"password",required:!0,tabIndex:3,autoComplete:"new-password",value:r.password,onChange:a=>t("password",a.target.value),disabled:s,placeholder:"Password"}),e.jsx(d,{message:o.password})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(m,{htmlFor:"password_confirmation",children:"Confirm password"}),e.jsx(i,{id:"password_confirmation",type:"password",required:!0,tabIndex:4,autoComplete:"new-password",value:r.password_confirmation,onChange:a=>t("password_confirmation",a.target.value),disabled:s,placeholder:"Confirm password"}),e.jsx(d,{message:o.password_confirmation})]}),e.jsxs(h,{type:"submit",className:"mt-2 w-full",tabIndex:5,disabled:s,children:[s&&e.jsx(w,{className:"h-4 w-4 animate-spin"}),"Create account"]})]}),e.jsxs("div",{className:"text-muted-foreground text-center text-sm",children:["Already have an account?"," ",e.jsx(x,{href:route("login"),tabIndex:6,children:"Log in"})]})]})]})}export{A 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.