PageSourceSearch

https://playbooks.com/build/assets/register-BgVsZokV.js

js playbooks.com collected 2026-10-03 23:46:45 UTC 4,461 bytes, 1 lines download raw bytes

1import{c as b,j as e,F as v,H as _}from"./app-Bda8uKs2.js";import{I as n}from"./input-error-BA2hzhS0.js";import{T as j}from"./text-link-8dUjptWL.js";import{B as I}from"./button-BuIdVqHk.js";import{I as i}from"./input-BBm_UpVq.js";import{L as m}from"./label-vcTeWSwh.js";import{S as C}from"./spinner-CvOcmIhb.js";import{A as F}from"./auth-layout-DmfNTcRJ.js";import{l as q}from"./index-eIYmd7L3.js";import{t as P,p as S}from"./index-Dit9vzXy.js";import{q as L}from"./index-Dag5ztfA.js";/* empty css            */import"./utils-Bk3hkyGf.js";import"./index-CLnS0zot.js";import"./index-HTteRQBt.js";import"./loader-circle-qMI-OBPc.js";import"./createLucideIcon-q0nE9J3F.js";import"./flash-toaster-DoFWjaT9.js";import"./index-BusHtOjd.js";import"./app-logo-icon-8QGdaQo7.js";const a=r=>({url:a.url(r),method:"post"});a.definition={methods:["post"],url:"/register"};a.url=r=>a.definition.url+L(r);a.post=r=>({url:a.url(r),method:"post"});const y=r=>({action:a.url(r),method:"post"});y.post=r=>({action:a.url(r),method:"post"});a.form=y;function Y(r){const t=b.c(11),{plan:l,interval:d,trialDays:f}=r,c=!!(l&&d),g=c?"Create your account, then add your billing details securely with Stripe.":"Create your account and company workspace.";let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p=e.jsx(_,{title:"Register"}),t[0]=p):p=t[0];let u,x;t[1]===Symbol.for("react.memo_cache_sentinel")?(u=a.form(),x=["password","password_confirmation"],t[1]=u,t[2]=x):(u=t[1],x=t[2]);let s;t[3]!==c||t[4]!==d||t[5]!==l||t[6]!==f?(s=e.jsx(v,{...u,resetOnSuccess:x,disableWhileProcessing:!0,className:"flex flex-col gap-6",children:w=>{const{processing:N,errors:o}=w;return e.jsxs(e.Fragment,{children:[c&&e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"hidden",name:"plan",value:l??""}),e.jsx("input",{type:"hidden",name:"interval",value:d??""})]}),e.jsxs("div",{className:"rounded-lg border bg-muted/40 p-4 text-sm text-muted-foreground",children:[e.jsxs("p",{className:"font-medium text-foreground",children:[f,"-day free trial"]}),e.jsx("p",{className:"mt-1",children:"If you are creating a team, you will choose a plan and add a payment method next. Nothing is charged until the trial ends, and you can cancel anytime."})]}),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",name:"name",placeholder:"Full name"}),e.jsx(n,{message:o.name,className:"mt-2"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(m,{htmlFor:"team_name",children:"Company or team name"}),e.jsx(i,{id:"team_name",type:"text",tabIndex:2,autoComplete:"organization",name:"team_name",placeholder:"Acme Inc."}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Required when creating a new workspace."}),e.jsx(n,{message:o.team_name})]}),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:3,autoComplete:"email",name:"email",placeholder:"[email protected]"}),e.jsx(n,{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:4,autoComplete:"new-password",name:"password",placeholder:"Password"}),e.jsx(n,{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:5,autoComplete:"new-password",name:"password_confirmation",placeholder:"Confirm password"}),e.jsx(n,{message:o.password_confirmation})]}),e.jsxs(I,{type:"submit",className:"mt-2 w-full",tabIndex:6,"data-test":"register-user-button",children:[N&&e.jsx(C,{}),"Create account"]})]}),e.jsxs("div",{className:"text-center text-sm text-muted-foreground",children:["Already have an account?"," ",e.jsx(j,{href:q(),tabIndex:7,children:"Log in"})]}),e.jsxs("p",{className:"text-center text-xs text-muted-foreground",children:["By creating an account you agree to our"," ",e.jsx(j,{href:P(),children:"Terms"})," and"," ",e.jsx(j,{href:S(),children:"Privacy Policy"}),"."]})]})}}),t[3]=c,t[4]=d,t[5]=l,t[6]=f,t[7]=s):s=t[7];let h;return t[8]!==g||t[9]!==s?(h=e.jsxs(F,{title:"Create an account",description:g,children:[p,s]}),t[8]=g,t[9]=s,t[10]=h):h=t[10],h}export{Y 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.