PageSourceSearch

https://freeipapi.com/build/assets/register-DwEh86HM.js

js freeipapi.com collected 2026-10-02 05:14:00 UTC 3,401 bytes, 1 lines download raw bytes

1import{m as u,j as e,L as x}from"./app-BzqCBKFq.js";import{e as t,I as n}from"./input-error-iMATgqPn.js";import{S as h}from"./social-login-buttons-C2p3yoI4.js";import{T as f}from"./text-link-RHhxBW-_.js";import{B as g}from"./createLucideIcon-9pX33GdP.js";import{I as l}from"./input-nrZKWhYr.js";import{L as m}from"./label-CmhAsKmB.js";import{L as j}from"./layout-BgXqRUFu.js";import{A as w,a as v}from"./alert-DIKz74bL.js";import{L as y}from"./loader-circle-CSlPCcq7.js";/* empty css            */import"./_commonjsHelpers-D6-XlEtG.js";import"./index-C-GmmI6E.js";import"./index-C3ZIikIG.js";import"./toast-BK2vKZug.js";function S(){const{data:o,setData:i,post:d,processing:r,errors:s,reset:p}=u({name:"",email:"",password:"",password_confirmation:""}),c=a=>{a.preventDefault(),d("/register",{onFinish:()=>p("password","password_confirmation")})};return e.jsxs(j,{title:"Create an account",description:"Enter your details below to create your account",children:[e.jsx(x,{title:"Register"}),e.jsx(h,{}),e.jsxs("form",{className:"flex flex-col gap-6",onSubmit:c,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(l,{id:"name",type:"text",required:!0,autoFocus:!0,autoComplete:"name",value:o.name,onChange:a=>i("name",a.target.value),disabled:r,placeholder:"Full name",...t("name",s.name)}),e.jsx(n,{field:"name",message:s.name,className:"mt-2"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(m,{htmlFor:"email",children:"Email address"}),e.jsx(l,{id:"email",type:"email",required:!0,autoComplete:"email",value:o.email,onChange:a=>i("email",a.target.value),disabled:r,placeholder:"[email protected]",...t("email",s.email)}),e.jsx(n,{field:"email",message:s.email})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(m,{htmlFor:"password",children:"Password"}),e.jsx(l,{id:"password",type:"password",required:!0,autoComplete:"new-password",value:o.password,onChange:a=>i("password",a.target.value),disabled:r,placeholder:"Password",...t("password",s.password)}),e.jsx(n,{field:"password",message:s.password})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(m,{htmlFor:"password_confirmation",children:"Confirm password"}),e.jsx(l,{id:"password_confirmation",type:"password",required:!0,autoComplete:"new-password",value:o.password_confirmation,onChange:a=>i("password_confirmation",a.target.value),disabled:r,placeholder:"Confirm password",...t("password_confirmation",s.password_confirmation)}),e.jsx(n,{field:"password_confirmation",message:s.password_confirmation})]}),e.jsx("div",{className:"grid gap-2",children:e.jsx(w,{children:e.jsx(v,{children:e.jsxs("p",{className:"space-x-1 text-sm",children:[e.jsx("span",{children:"By creating an account, you agree to our"}),e.jsx("a",{href:"/terms",className:"text-primary underline",target:"_blank",rel:"noopener",children:"terms of service"}),e.jsx("span",{children:"and"}),e.jsx("a",{href:"/privacy",className:"text-primary underline",target:"_blank",rel:"noopener",children:"privacy policy"}),"."]})})})}),e.jsxs(g,{type:"submit",className:"mt-2 w-full",disabled:r,children:[r&&e.jsx(y,{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(f,{href:"/login",children:"Log in"})]})]})]})}export{S 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.