PageSourceSearch

https://www.lawunleashed.ai/_next/static/chunks/app/(marketing)/signup/page-2c330d63547c19f9.js

js lawunleashed.ai collected 2026-10-05 15:23:28 UTC 27,516 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6c1aaf5e-ff46-4253-ac5d-119c60ae5e10",e._sentryDebugIdIdentifier="sentry-dbid-6c1aaf5e-ff46-4253-ac5d-119c60ae5e10")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8235],{9913:(e,t,s)=>{Promise.resolve().then(s.bind(s,59508))},16566:(e,t,s)=>{"use strict";s.d(t,{Cf:()=>x,Es:()=>h,HM:()=>u,L3:()=>b,c7:()=>p,lG:()=>c,rr:()=>f,zM:()=>o});var a=s(89036),r=s(14080),l=s(96937),i=s(32978),n=s(58281);let c=l.bL,o=l.l9,d=l.ZL,u=l.bm,m=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(l.hJ,{ref:t,className:(0,n.cn)("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...r})});m.displayName=l.hJ.displayName;let x=r.forwardRef((e,t)=>{let{className:s,children:r,...c}=e;return(0,a.jsxs)(d,{children:[(0,a.jsx)(m,{}),(0,a.jsxs)(l.UC,{ref:t,className:(0,n.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",s),...c,children:[r,(0,a.jsxs)(l.bm,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(i.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=l.UC.displayName;let p=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,n.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...s})};p.displayName="DialogHeader";let h=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,n.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...s})};h.displayName="DialogFooter";let b=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(l.hE,{ref:t,className:(0,n.cn)("text-lg font-semibold leading-none tracking-tight",s),...r})});b.displayName=l.hE.displayName;let f=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(l.VY,{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",s),...r})});f.displayName=l.VY.displayName},32978:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(37181).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},34334:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var a=s(14080);function r(e){let t=a.useRef({value:e,previous:e});return a.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},38022:(e,t,s)=>{"use strict";s.d(t,{C1:()=>C,bL:()=>k});var a=s(14080),r=s(55367),l=s(87239),i=s(49620),n=s(91122),c=s(34334),o=s(24174),d=s(2291),u=s(48484),m=s(89036),x="Checkbox",[p,h]=(0,l.A)(x),[b,f]=p(x),g=a.forwardRef((e,t)=>{let{__scopeCheckbox:s,name:l,checked:c,defaultChecked:o,required:d,disabled:p,value:h="on",onCheckedChange:f,form:g,...j}=e,[v,k]=a.useState(null),C=(0,r.s)(t,e=>k(e)),S=a.useRef(!1),P=!v||g||!!v.closest("form"),[A,R]=(0,n.i)({prop:c,defaultProp:null!=o&&o,onChange:f,caller:x}),I=a.useRef(A);return a.useEffect(()=>{let e=null==v?void 0:v.form;if(e){let t=()=>R(I.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[v,R]),(0,m.jsxs)(b,{scope:s,state:A,disabled:p,children:[(0,m.jsx)(u.sG.button,{type:"button",role:"checkbox","aria-checked":y(A)?"mixed":A,"aria-required":d,"data-state":w(A),"data-disabled":p?"":void 0,disabled:p,value:h,...j,ref:C,onKeyDown:(0,i.m)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,i.m)(e.onClick,e=>{R(e=>!!y(e)||!e),P&&(S.current=e.isPropagationStopped(),S.current||e.stopPropagation())})}),P&&(0,m.jsx)(N,{control:v,bubbles:!S.current,name:l,value:h,checked:A,required:d,disabled:p,form:g,style:{transform:"translateX(-100%)"},defaultChecked:!y(o)&&o})]})});g.displayName=x;var j="CheckboxIndicator",v=a.forwardRef((e,t)=>{let{__scopeCheckbox:s,forceMount:a,...r}=e,l=f(j,s);return(0,m.jsx)(d.C,{present:a||y(l.state)||!0===l.state,children:(0,m.jsx)(u.sG.span,{"data-state":w(l.state),"data-disabled":l.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});v.displayName=j;var N=a.forwardRef((e,t)=>{let{__scopeCheckbox:s,control:l,checked:i,bubbles:n=!0,defaultChecked:d,...x}=e,p=a.useRef(null),h=(0,r.s)(p,t),b=(0,c.Z)(i),f=(0,o.X)(l);a.useEffect(()=>{let e=p.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(b!==i&&t){let s=new Event("click",{bubbles:n});e.indeterminate=y(i),t.call(e,!y(i)&&i),e.dispatchEvent(s)}},[b,i,n]);let g=a.useRef(!y(i)&&i);return(0,m.jsx)(u.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=d?d:g.current,...x,tabIndex:-1,ref:h,style:{...x.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function y(e){return"indeterminate"===e}function w(e){return y(e)?"indeterminate":e?"checked":"unchecked"}N.displayName="CheckboxBubbleInput";var k=g,C=v},53572:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(37181).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},59508:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>I});var a=s(89036),r=s(85918),l=s(14080),i=s(64189),n=s.n(i),c=s(37101),o=s(67742),d=s(91090),u=s(81170),m=s(96504),x=s(73773),p=s(38541),h=s(66746),b=s(83451),f=s(53572),g=s(28528),j=s(90743),v=s(4138),N=s(30898),y=s(58281),w=s(68899),k=s(56131),C=s(85890);let S=(0,r.KV)("signup"),P=w.z.string().email("Please enter a valid email address."),A=e=>{let t=[];return e.length<8&&t.push("Password must be at least 8 characters long."),/[a-zA-Z]/.test(e)||t.push("Password must contain at least one letter."),/\d/.test(e)||t.push("Password must contain at least one number."),t};function R(){let e=(0,o.useRouter)(),[t,r]=(0,l.useState)(1),{logEvent:i,sessionId:w}=(0,N.s)(),[R,I]=(0,l.useState)(""),[E,z]=(0,l.useState)(""),[L,D]=(0,l.useState)(""),[_,F]=(0,l.useState)(""),[J,M]=(0,l.useState)(""),[T,$]=(0,l.useState)(""),[U,O]=(0,l.useState)(""),[Y,G]=(0,l.useState)(!1),[q,W]=(0,l.useState)(null),[H,Z]=(0,l.useState)(null),[V,B]=(0,l.useState)([]),[K,X]=(0,l.useState)(!1),[Q,ee]=(0,l.useState)(null),[et,es]=(0,l.useState)(null),[ea,er]=(0,l.useState)("pilot"),[el,ei]=(0,l.useState)(1),[en,ec]=(0,l.useState)(null),[eo,ed]=(0,l.useState)(!1),[eu,em]=(0,l.useState)(null),[ex,ep]=(0,l.useState)(!1);(0,l.useEffect)(()=>{var e;let t=new URLSearchParams(window.location.search),s=t.get("inviteId"),a=t.get("email"),r=t.get("plan"),l=!(e=t.get("returnTo"))||!e.startsWith("/")||e.startsWith("//")?null:e;if(s&&ee(s),a){let e=decodeURIComponent(a);F(e),es(e)}"premium"===r&&er("premium"),em(l)},[]);let eh=e=>{let t=e.replace(/\D/g,"");return 0===t.length?"":t.length<4?"(".concat(t):t.length<7?"(".concat(t.slice(0,3),") ").concat(t.slice(3)):"(".concat(t.slice(0,3),") ").concat(t.slice(3,6),"-").concat(t.slice(6,10))},eb=()=>{if(!R.trim()||!E.trim()||!L.trim()||!_.trim()||!U.trim())return W("Please fill in all required fields."),!1;let e=P.safeParse(_.trim());return e.success?!H&&(!J||V.length>0?(W("Please fix password issues."),!1):J!==T?(W("Passwords do not match."),!1):(W(null),!0)):(Z(e.error.errors[0].message),!1)},ef=async t=>{t.preventDefault(),W(""),G(!0);try{if(!v.j2)throw Error("Auth not initialized");if(!K){W("You must agree to the Terms of Service and Privacy Policy"),G(!1);return}let t=(0,v.getCallable)("signUp"),a={sessionId:w};try{let e=sessionStorage.getItem("law_unleashed_analytics_campaign");if(e){let t=JSON.parse(e);t&&(a.source=t.source,a.medium=t.medium,a.campaign=t.campaign,a.content=t.content,a.term=t.term)}}catch(e){S.error("Error reading campaign storage:",e)}if(await t({email:_,password:J,firstName:R.trim(),lastName:E.trim(),phoneNumber:U.trim()||null,companyName:L.trim()||null,plan:ea,agreements:{tos_version:"v1.1",privacy_policy_version:"v1.1",agreed_at:new Date().toISOString()},acquisition:a}),await (0,j.x9)(v.j2,_,J),Q&&et)try{let e=(0,v.getCallable)("acceptTeamInvitation");await e({invitationId:Q,userEmail:et}),p.oR.success("Successfully claimed your Premium seat!")}catch(e){S.error("Error accepting team invitation:",e),p.oR.error("Account created, but issue claiming seat. C
1ontact support.")}if("premium"===ea&&!Q)try{let e=(0,v.getCallable)("createTeam"),t=L.trim()||"My Team",{teamId:a}=(await e({name:t,description:"".concat(t,"'s default team")})).data,r=(0,v.getCallable)("createCheckoutSession"),{sessionId:l}=(await r({teamId:a,seatCount:el,isNewUser:!0})).data,{loadStripe:i}=await s.e(3367).then(s.bind(s,23367)),n=await i("pk_live_51RiJhAG1mJcUWn8SZVuLk3YLEGYRQgGDPhE4bqAHHpOIO01qcSUjiLSnPdxhf3asuxXMI9yWzLiduxf5i9uAtBW700ZM3stM1J");if(n)return void await n.redirectToCheckout({sessionId:l})}catch(e){S.error("Error setting up Premium plan:",e),p.oR.error("Account created, but issue setting up Premium. Contact support.")}i("signup",{method:"signup",plan:ea}),ep(!0);let r=await (0,k.kD)(_);if(ep(!1),r){S.debug("Pending invitation found:",r),ec(r),ed(!0),G(!1);return}S.debug("No pending invitations found for this email."),e.push(eu||"/onboarding")}catch(e){S.error("Signup failed:",e),W(e.message||"Failed to create account"),p.oR.error(e.message||"Failed to create account")}finally{G(!1)}},eg=async t=>{if(!v.j2.currentUser||!t.id){p.oR.error("User session error or invalid invite. Please log in again."),ed(!1),ec(null);return}try{let s=(0,v.getCallable)("acceptInvitation"),a=(await s({inviteId:t.id})).data;a.success&&a.workspaceId?(p.oR.success("Successfully joined ".concat(t.workspaceName,"! Redirecting...")),ed(!1),ec(null),localStorage.setItem("selectedWorkspaceId",a.workspaceId),e.push(eu||"/onboarding")):p.oR.error(a.error||"Failed to accept invitation. Please try again.")}catch(e){S.error("Error accepting invitation:",e),p.oR.error("Failed to accept invitation. Please try again.")}},ej=async t=>{if(!t)return void S.error("Invite ID missing, cannot decline.");try{await (0,k.r3)(t),p.oR.info("Invitation declined."),ed(!1),ec(null),e.push("/onboarding")}catch(e){S.error("Error declining invitation:",e),p.oR.error("Failed to decline invitation."),ed(!1),ec(null)}},ev="premium"===ea,eN=199*el;return(0,a.jsxs)("div",{className:"min-h-screen flex flex-col items-center p-4 pt-16 pb-40",children:[(0,a.jsxs)("div",{className:"w-full max-w-2xl",children:[(0,a.jsxs)("div",{className:"mb-8 flex flex-col items-center",children:[(0,a.jsx)(n(),{href:"/",className:"flex items-center justify-center mb-8",children:(0,a.jsx)(c.default,{src:"/logo-hex.png",alt:"LawUnleashed.ai",width:360,height:150,className:"w-auto h-24"})}),(0,a.jsx)("h1",{className:"text-4xl font-bold text-white mb-2",children:"Create your account"}),(0,a.jsxs)("div",{className:"flex items-center gap-4 mt-4 text-sm",children:[(0,a.jsxs)("div",{className:(0,y.cn)("flex items-center gap-2",t>=1?"text-blue-400":"text-gray-500"),children:[(0,a.jsx)("div",{className:(0,y.cn)("size-6 rounded-full flex items-center justify-center border",t>=1?"bg-blue-500/20 border-blue-500":"border-gray-600"),children:"1"}),(0,a.jsx)("span",{children:"Plan"})]}),(0,a.jsx)("div",{className:"w-8 h-px bg-gray-700"}),(0,a.jsxs)("div",{className:(0,y.cn)("flex items-center gap-2",t>=2?"text-blue-400":"text-gray-500"),children:[(0,a.jsx)("div",{className:(0,y.cn)("size-6 rounded-full flex items-center justify-center border",t>=2?"bg-blue-500/20 border-blue-500":"border-gray-600"),children:"2"}),(0,a.jsx)("span",{children:"Account"})]}),(0,a.jsx)("div",{className:"w-8 h-px bg-gray-700"}),(0,a.jsxs)("div",{className:(0,y.cn)("flex items-center gap-2",t>=3?"text-blue-400":"text-gray-500"),children:[(0,a.jsx)("div",{className:(0,y.cn)("size-6 rounded-full flex items-center justify-center border",t>=3?"bg-blue-500/20 border-blue-500":"border-gray-600"),children:"3"}),(0,a.jsx)("span",{children:"Review"})]})]})]}),(0,a.jsxs)("div",{className:"orbit-card p-6 space-y-6",children:[1===t&&(0,a.jsxs)("div",{className:"space-y-6 animate-in fade-in slide-in-from-right-4 duration-300",children:[(0,a.jsx)("h2",{className:"text-xl font-semibold text-white mb-4 text-center",children:"Choose your plan"}),(0,a.jsxs)("div",{className:"grid md:grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{className:(0,y.cn)("cursor-pointer rounded-xl border p-6 transition-all duration-200 relative overflow-hidden","pilot"===ea?"bg-blue-600/20 border-blue-400 ring-1 ring-blue-400":"bg-black/40 border-white/10 hover:border-blue-400/50"),onClick:()=>er("pilot"),children:[(0,a.jsxs)("div",{className:"flex justify-between items-start mb-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-xl font-bold text-white",children:"Free Trial"}),(0,a.jsx)("p",{className:"text-blue-300",children:"$0"})]}),"pilot"===ea&&(0,a.jsx)("div",{className:"bg-blue-500 rounded-full p-1",children:(0,a.jsx)(h.A,{className:"size-4 text-white"})})]}),(0,a.jsxs)("ul",{className:"space-y-2 text-sm text-gray-300",children:[(0,a.jsxs)("li",{className:"flex gap-2",children:[(0,a.jsx)(h.A,{className:"size-4 text-blue-400"})," Limited tokens"]}),(0,a.jsxs)("li",{className:"flex gap-2",children:[(0,a.jsx)(h.A,{className:"size-4 text-blue-400"})," Standard support"]}),(0,a.jsxs)("li",{className:"flex gap-2",children:[(0,a.jsx)(h.A,{className:"size-4 text-blue-400"})," Single user"]})]})]}),(0,a.jsxs)("div",{className:(0,y.cn)("cursor-pointer rounded-xl border p-6 transition-all duration-200 relative overflow-hidden","premium"===ea?"bg-purple-600/20 border-purple-400 ring-1 ring-purple-400":"bg-black/40 border-white/10 hover:border-purple-400/50"),onClick:()=>er("premium"),children:[(0,a.jsxs)("div",{className:"flex justify-between items-start mb-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-xl font-bold text-white",children:"Premium"}),(0,a.jsx)("p",{className:"text-purple-300",children:"$199/seat"})]}),"premium"===ea&&(0,a.jsx)("div",{className:"bg-purple-500 rounded-full p-1",children:(0,a.jsx)(h.A,{className:"size-4 text-white"})})]}),(0,a.jsxs)("ul",{className:"space-y-2 text-sm text-gray-300",children:[(0,a.jsxs)("li",{className:"flex gap-2",children:[(0,a.jsx)(h.A,{className:"size-4 text-purple-400"})," Expanded tokens"]}),(0,a.jsxs)("li",{className:"flex gap-2",children:[(0,a.jsx)(h.A,{className:"size-4 text-purple-400"})," Premium templates"]}),(0,a.jsxs)("li",{className:"flex gap-2",children:[(0,a.jsx)(h.A,{className:"size-4 text-purple-400"})," Priority support"]}),(0,a.jsxs)("li",{className:"flex gap-2",children:[(0,a.jsx)(h.A,{className:"size-4 text-purple-400"})," Shared workspaces"]}
1)]})]})]}),ev&&!Q&&(0,a.jsx)("div",{className:"space-y-4 border-t border-white/10 pt-4 animate-in fade-in slide-in-from-top-2",children:(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(m.J,{className:"text-base text-blue-300 text-center block",children:"Number of Seats"}),(0,a.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,a.jsx)(u.$,{type:"button",variant:"outline",className:"size-10 bg-purple-600 hover:bg-purple-700 text-white font-bold text-2xl flex items-center justify-center",onClick:()=>ei(e=>Math.max(1,e-1)),disabled:el<=1||Y,children:"-"}),(0,a.jsx)(d.p,{min:1,max:50,value:el,onChange:e=>{ei(Math.max(1,parseInt(e.target.value)||1))},className:"w-20 text-2xl font-bold text-center py-4 bg-black/60 border-white/10 text-white",disabled:Y}),(0,a.jsx)(u.$,{type:"button",variant:"outline",className:"size-10 bg-purple-600 hover:bg-purple-700 text-white font-bold text-2xl flex items-center justify-center",onClick:()=>ei(e=>e+1),disabled:Y,children:"+"})]}),(0,a.jsxs)("p",{className:"text-sm text-purple-300 text-center font-semibold mt-2",children:["Total: $",eN.toLocaleString(),"/month"]})]})}),(0,a.jsx)("div",{className:"text-center mt-4 p-3 bg-white/5 rounded-lg",children:ev?(0,a.jsxs)("p",{className:"text-purple-300",children:["You will be charged ",(0,a.jsxs)("strong",{children:["$",eN.toLocaleString()]})," today and monthly on this date."]}):(0,a.jsx)("p",{className:"text-blue-300",children:"No credit card required. Start for free today!"})})]}),2===t&&(0,a.jsxs)("div",{className:"space-y-4 animate-in fade-in slide-in-from-right-4 duration-300",children:[(0,a.jsx)("h2",{className:"text-xl font-semibold text-white mb-4",children:"Your Details"}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(m.J,{htmlFor:"firstName",className:"text-base text-blue-300",children:"First name *"}),(0,a.jsx)(d.p,{id:"firstName",value:R,onChange:e=>I(e.target.value),placeholder:"John",className:"bg-black/60 border-white/10 text-white text-base"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(m.J,{htmlFor:"lastName",className:"text-base text-blue-300",children:"Last name *"}),(0,a.jsx)(d.p,{id:"lastName",value:E,onChange:e=>z(e.target.value),placeholder:"Doe",className:"bg-black/60 border-white/10 text-white text-base"})]})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(m.J,{htmlFor:"companyName",className:"text-base text-blue-300",children:"Company Name *"}),(0,a.jsx)(d.p,{id:"companyName",value:L,onChange:e=>D(e.target.value),placeholder:"Your Company Inc.",className:"bg-black/60 border-white/10 text-white text-base"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(m.J,{htmlFor:"email",className:"text-base text-blue-300",children:"Email *"}),(0,a.jsx)(d.p,{id:"email",type:"email",value:_,onChange:e=>{F(e.target.value),H&&Z(null)},onBlur:()=>{if(!_.trim())return void Z(null);let e=P.safeParse(_.trim());e.success?Z(null):Z(e.error.errors[0].message)},placeholder:"[email protected]",className:"bg-black/60 text-white text-base ".concat(H?"border-red-500":"border-white/10")}),H&&(0,a.jsx)("p",{className:"text-xs text-red-500 pt-1",children:H})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(m.J,{htmlFor:"phoneNumber",className:"text-base text-blue-300",children:"Phone number *"}),(0,a.jsx)(d.p,{id:"phoneNumber",type:"tel",value:U,onChange:e=>{O(eh(e.target.value))},placeholder:"(555) 123-4567",className:"bg-black/60 border-white/10 text-white text-base"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(m.J,{htmlFor:"password",className:"text-base text-blue-300",children:"Password *"}),(0,a.jsx)(d.p,{id:"password",type:"password",value:J,onChange:e=>{let t=e.target.value;M(t),W(null),B(A(t))},placeholder:"••••••••",className:"bg-black/60 border-white/10 text-white text-base"}),(0,a.jsx)("p",{className:"text-xs text-blue-300/70",children:"Must be at least 8 characters, including a letter and a number."}),V.length>0&&(0,a.jsx)("div",{className:"text-xs text-red-500 pt-1 space-y-1",children:V.map((e,t)=>(0,a.jsx)("p",{children:e},t))})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(m.J,{htmlFor:"confirmPassword",className:"text-base text-blue-300",children:"Confirm Password *"}),(0,a.jsx)(d.p,{id:"confirmPassword",type:"password",value:T,onChange:e=>{$(e.target.value),W(null)},placeholder:"••••••••",className:"bg-black/60 border-white/10 text-white text-base"}),J&&T&&J!==T&&(0,a.jsx)("p",{className:"text-xs text-red-500 pt-1",children:"Passwords do not match."})]})]}),3===t&&(0,a.jsxs)("div",{className:"space-y-6 animate-in fade-in slide-in-from-right-4 duration-300",children:[(0,a.jsx)("h2",{className:"text-xl font-semibold text-white mb-4",children:"Review & Finish"}),(0,a.jsxs)("div",{className:"bg-white/5 rounded-lg p-4 border border-white/10",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,a.jsx)("span",{className:"text-gray-400",children:"Selected Plan"}),(0,a.jsx)("span",{className:(0,y.cn)("font-bold",ev?"text-purple-400":"text-blue-400"),children:ev?"Premium":"Free Trial"})]}),ev&&(0,a.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,a.jsx)("span",{className:"text-gray-400",children:"Seats"}),(0,a.jsx)("span",{className:"text-white",children:el})]}),(0,a.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,a.jsx)("span",{className:"text-gray-400",children:"Total"}),(0,a.jsx)("span",{className:(0,y.cn)("font-bold",ev?"text-purple-300":"text-blue-300"),children:ev?"$".concat(eN.toLocaleStr
1ing(),"/mo"):"$0"})]}),(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)("span",{className:"text-gray-400",children:"Email"}),(0,a.jsx)("span",{className:"text-white",children:_})]})]}),ev&&(0,a.jsx)("div",{className:"bg-purple-900/20 border border-purple-500/30 rounded-lg p-4",children:(0,a.jsx)("p",{className:"text-purple-200 text-sm text-center",children:"You will be redirected to Stripe to securely complete your payment."})}),(0,a.jsx)("div",{className:"py-4",children:(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(x.S,{id:"terms",checked:K,onCheckedChange:e=>X(e),disabled:Y}),(0,a.jsxs)(m.J,{htmlFor:"terms",className:"text-sm text-blue-300/80",children:["I agree to the"," ",(0,a.jsx)(n(),{href:"/terms-of-service",className:"text-blue-500 hover:text-blue-400",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"})," ","and"," ",(0,a.jsx)(n(),{href:"/privacy-policy",className:"text-blue-500 hover:text-blue-400",target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"})]})]})})]}),(0,a.jsxs)("div",{className:"flex gap-3 pt-4",children:[t>1&&(0,a.jsxs)(u.$,{type:"button",variant:"outline",onClick:()=>{t>1&&(r(t-1),W(null))},disabled:Y,className:"flex-1 border-white/20 text-white hover:bg-white/10",children:[(0,a.jsx)(b.A,{className:"mr-2 size-4"})," Back"]}),t<3?(0,a.jsxs)(u.$,{type:"button",onClick:()=>{1===t?r(2):2===t&&eb()&&r(3)},className:"flex-1 bg-blue-600 hover:bg-blue-500 text-white",children:["Next ",(0,a.jsx)(f.A,{className:"ml-2 size-4"})]}):(0,a.jsxs)(u.$,{onClick:ef,disabled:Y||!K,className:(0,y.cn)("flex-1 text-white",ev?"bg-purple-600 hover:bg-purple-500":"bg-blue-600 hover:bg-blue-500"),children:[Y?(0,a.jsx)(g.A,{className:"h-4 w-4 animate-spin mr-2"}):null,Y?ev?"Redirecting to Payment...":"Creating Account...":ev?"Pay $".concat(eN," & Join"):"Create Account"]})]}),q&&(0,a.jsx)("p",{className:"text-sm text-red-500 text-center mt-2",children:q}),(0,a.jsx)("div",{className:"mt-4 text-center",children:(0,a.jsxs)("p",{className:"text-lg text-blue-300/80",children:["Already have an account?"," ",(0,a.jsx)(n(),{href:eu?"/login?returnTo=".concat(encodeURIComponent(eu)):"/login",className:"text-blue-500 hover:text-blue-400 text-lg",children:"Log in"})]})})]})]}),(0,a.jsx)(C.f,{invite:en,onAccept:eg,onDecline:ej,onOpenChange:t=>{!t&&(ed(!1),ec(null),Y||e.push("/onboarding"))}})]})}function I(){return(0,a.jsx)(l.Suspense,{fallback:(0,a.jsx)("div",{className:"min-h-screen flex items-center justify-center text-white",children:(0,a.jsx)(g.A,{className:"h-8 w-8 animate-spin"})}),children:(0,a.jsx)(R,{})})}},66746:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(37181).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},66828:(e,t,s)=>{"use strict";s.d(t,{b:()=>n});var a=s(14080),r=s(48484),l=s(89036),i=a.forwardRef((e,t)=>(0,l.jsx)(r.sG.label,{...e,ref:t,onMouseDown:t=>{var s;t.target.closest("button, input, select, textarea")||(null==(s=e.onMouseDown)||s.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));i.displayName="Label";var n=i},73773:(e,t,s)=>{"use strict";s.d(t,{S:()=>c});var a=s(89036),r=s(14080),l=s(38022),i=s(66746),n=s(58281);let c=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(l.bL,{ref:t,className:(0,n.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",s),...r,children:(0,a.jsx)(l.C1,{className:(0,n.cn)("flex items-center justify-center text-current"),children:(0,a.jsx)(i.A,{className:"h-4 w-4"})})})});c.displayName=l.bL.displayName},83451:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(37181).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},85890:(e,t,s)=>{"use strict";s.d(t,{f:()=>d});var a=s(89036),r=s(85918),l=s(14080),i=s(16566),n=s(81170),c=s(28528);let o=(0,r.KV)("invitation-modal");function d(e){let{invite:t,onAccept:s,onDecline:r,onOpenChange:d}=e,[u,m]=(0,l.useState)(!1);if(!t||!t.id)return null;let x=async()=>{m(!0),await s(t),m(!1)},p=async()=>
1{if(!t.id)return void o.error("Invite ID missing, cannot decline.");m(!0),await r(t.id),m(!1)};return(0,a.jsx)(i.lG,{open:!!t,onOpenChange:d,children:(0,a.jsxs)(i.Cf,{className:"sm:max-w-[425px]",children:[(0,a.jsxs)(i.c7,{children:[(0,a.jsx)(i.L3,{children:"Workspace Invitation"}),(0,a.jsxs)(i.rr,{className:"text-base",children:["You've been invited by ",(0,a.jsx)("b",{children:t.inviterName||"Someone"})," to join the",(0,a.jsxs)("b",{children:[" ",t.workspaceName]})," workspace."]})]}),(0,a.jsxs)("div",{className:"py-4 space-y-2 text-base text-muted-foreground",children:[(0,a.jsx)("p",{children:"Accepting this invitation will make your projects, reports, files, and other work within this workspace visible to all members of the workspace."}),(0,a.jsx)("p",{children:"Likewise, you will be able to see work created by other members of the workspace."})]}),(0,a.jsxs)(i.Es,{children:[(0,a.jsxs)(n.$,{variant:"outline",onClick:p,disabled:u,children:[u?(0,a.jsx)(c.A,{className:"h-4 w-4 animate-spin mr-2"}):null,"Decline"]}),(0,a.jsxs)(n.$,{onClick:x,disabled:u,children:[u?(0,a.jsx)(c.A,{className:"h-4 w-4 animate-spin mr-2"}):null,"Accept Invitation"]})]})]})})}},91090:(e,t,s)=>{"use strict";s.d(t,{p:()=>i});var a=s(89036),r=s(14080),l=s(58281);let i=r.forwardRef((e,t)=>{let{className:s,type:r,...i}=e;return(0,a.jsx)("input",{type:r,className:(0,l.cn)("flex h-10 w-full rounded-md border border-white/20 bg-gray-800/80 px-3 py-2 text-sm font-normal text-white ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-blue-300/70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...i})});i.displayName="Input"},96504:(e,t,s)=>{"use strict";s.d(t,{J:()=>o});var a=s(89036),r=s(14080),l=s(66828),i=s(218),n=s(58281);let c=(0,i.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),o=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(l.b,{ref:t,className:(0,n.cn)(c(),s),...r})});o.displayName=l.b.displayName}},e=>{var t=t=>e(e.s=t);e.O(0,[6075,9916,4189,8744,1032,2291,3516,8770,5585,4233,6937,9255,5370,898,9276,2898,6540,7358],()=>t(9913)),_N_E=e.O()}]);

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.