PageSourceSearch

https://app.liine.ai/_next/static/chunks/9739-ff40a15d87cd6337.js?dpl=dpl_4Z769fCRhvPRcZAYALxxMBxARH2E

js liine.ai collected 2026-10-05 12:09:48 UTC 26,933 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9739],{3998:(e,t,a)=>{a.d(t,{$:()=>o});var r=a(95155);a(12115);var s=a(32467),n=a(83101),i=a(64269);let l=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",xs:"h-6 rounded-md gap-1 px-2 has-[>svg]:px-1 text-xs",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function o(e){let{className:t,variant:a,size:n,asChild:o=!1,...d}=e,c=o?s.DX:"button";return(0,r.jsx)(c,{"data-slot":"button",className:(0,i.cn)(l({variant:a,size:n,className:t})),...d})}},5917:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(71847).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},20063:(e,t,a)=>{var r=a(47260);a.o(r,"useParams")&&a.d(t,{useParams:function(){return r.useParams}}),a.o(r,"usePathname")&&a.d(t,{usePathname:function(){return r.usePathname}}),a.o(r,"useRouter")&&a.d(t,{useRouter:function(){return r.useRouter}}),a.o(r,"useSearchParams")&&a.d(t,{useSearchParams:function(){return r.useSearchParams}}),a.o(r,"useSelectedLayoutSegment")&&a.d(t,{useSelectedLayoutSegment:function(){return r.useSelectedLayoutSegment}}),a.o(r,"useSelectedLayoutSegments")&&a.d(t,{useSelectedLayoutSegments:function(){return r.useSelectedLayoutSegments}})},38162:(e,t,a)=>{a.d(t,{C1:()=>N,bL:()=>w});var r=a(12115),s=a(94446),n=a(3468),i=a(92556),l=a(23558),o=a(78108),d=a(84288),c=a(76842),u=a(88142),m=a(95155),h="Checkbox",[x,g]=(0,n.A)(h),[f,p]=x(h);function v(e){let{__scopeCheckbox:t,checked:a,children:s,defaultChecked:n,disabled:i,form:o,name:d,onCheckedChange:c,required:u,value:x="on",internal_do_not_use_render:g}=e,[p,v]=(0,l.i)({prop:a,defaultProp:null!=n&&n,onChange:c,caller:h}),[b,y]=r.useState(null),[w,j]=r.useState(null),N=r.useRef(!1),k=!b||!!o||!!b.closest("form"),C={checked:p,disabled:i,setChecked:v,control:b,setControl:y,name:d,form:o,value:x,hasConsumerStoppedPropagationRef:N,required:u,defaultChecked:!S(n)&&n,isFormControl:k,bubbleInput:w,setBubbleInput:j};return(0,m.jsx)(f,{scope:t,...C,children:"function"==typeof g?g(C):s})}var b="CheckboxTrigger",y=r.forwardRef((e,t)=>{let{__scopeCheckbox:a,onKeyDown:n,onClick:l,...o}=e,{control:d,value:c,disabled:h,checked:x,required:g,setControl:f,setChecked:v,hasConsumerStoppedPropagationRef:y,isFormControl:w,bubbleInput:j}=p(b,a),N=(0,s.s)(t,f),k=r.useRef(x);return r.useEffect(()=>{let e=null==d?void 0:d.form;if(e){let t=()=>v(k.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[d,v]),(0,m.jsx)(u.sG.button,{type:"button",role:"checkbox","aria-checked":S(x)?"mixed":x,"aria-required":g,"data-state":z(x),"data-disabled":h?"":void 0,disabled:h,value:c,...o,ref:N,onKeyDown:(0,i.mK)(n,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,i.mK)(l,e=>{v(e=>!!S(e)||!e),j&&w&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())})})});y.displayName=b;var w=r.forwardRef((e,t)=>{let{__scopeCheckbox:a,name:r,checked:s,defaultChecked:n,required:i,disabled:l,value:o,onCheckedChange:d,form:c,...u}=e;return(0,m.jsx)(v,{__scopeCheckbox:a,checked:s,defaultChecked:n,disabled:l,required:i,onCheckedChange:d,name:r,form:c,value:o,internal_do_not_use_render:e=>{let{isFormControl:r}=e;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(y,{...u,ref:t,__scopeCheckbox:a}),r&&(0,m.jsx)(C,{__scopeCheckbox:a})]})}})});w.displayName=h;var j="CheckboxIndicator",N=r.forwardRef((e,t)=>
1{let{__scopeCheckbox:a,forceMount:r,...s}=e,n=p(j,a);return(0,m.jsx)(c.C,{present:r||S(n.checked)||!0===n.checked,children:(0,m.jsx)(u.sG.span,{"data-state":z(n.checked),"data-disabled":n.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});N.displayName=j;var k="CheckboxBubbleInput",C=r.forwardRef((e,t)=>{let{__scopeCheckbox:a,...n}=e,{control:i,hasConsumerStoppedPropagationRef:l,checked:c,defaultChecked:h,required:x,disabled:g,name:f,value:v,form:b,bubbleInput:y,setBubbleInput:w}=p(k,a),j=(0,s.s)(t,w),N=(0,o.Z)(c),C=(0,d.X)(i);r.useEffect(()=>{if(!y)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!l.current;if(N!==c&&e){let a=new Event("click",{bubbles:t});y.indeterminate=S(c),e.call(y,!S(c)&&c),y.dispatchEvent(a)}},[y,N,c,l]);let z=r.useRef(!S(c)&&c);return(0,m.jsx)(u.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=h?h:z.current,required:x,disabled:g,name:f,value:v,form:b,...n,tabIndex:-1,ref:j,style:{...n.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function S(e){return"indeterminate"===e}function z(e){return S(e)?"indeterminate":e?"checked":"unchecked"}C.displayName=k},57828:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(71847).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},59739:(e,t,a)=>{a.d(t,{q:()=>b});var r=a(95155),s=a(12115),n=a(52619),i=a.n(n),l=a(15239);let o=(0,a(71847).A)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);var d=a(57828),c=a(93658),u=a(20063),m=a(3998),h=a(65142),x=a(73457);let g=[{label:"Too weak",barClass:"bg-destructive/80",textClass:"text-destructive"},{label:"Fair",barClass:"bg-orange-500/80",textClass:"text-orange-500"},{label:"Good",barClass:"bg-blue-500/80",textClass:"text-blue-500"},{label:"Strong",barClass:"bg-emerald-500/80",textClass:"text-emerald-500"}];function f(e){let{score:t,feedback:a,length:s,minLength:n=8}=e;if(null===t||t<0)return null;let i=Math.max(0,Math.min(t,g.length-1)),l=g[i];return(0,r.jsxs)("div",{className:"mt-2 space-y-2","aria-live":"polite",children:[(0,r.jsx)("div",{className:"bg-muted h-1 w-full rounded-full",children:(0,r.jsx)("div",{className:"h-full rounded-full transition-all duration-200 ".concat(l.barClass),style:{width:"".concat((i+1)/g.length*100,"%")}})}),(0,r.jsxs)("div",{className:"flex items-center justify-between text-xs font-medium",children:[(0,r.jsxs)("span",{className:l.textClass,children:[l.label,a?(0,r.jsxs)("span",{className:"ml-1",children:["\xb7 ",a]}):null]}),(0,r.jsx)("span",{className:"text-muted-foreground tabular-nums",children:"".concat(s,"/").concat(n)})]})]})}let p=[{strategy:"oauth_google",name:"Google",icon:()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 48 48",children:[(0,r.jsx)("path",{fill:"#FFC107",d:"M43.611 20.083H42V20H24v8h11.303c-1.649 4.657-6.08 8-11.303 8-6.627 0-12-5.373-12-12s12-5.373 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 12.955 4 4 12.955 4 24s8.955 20 20 20 20-8.955 20-20c0-2.641-.21-5.236-.611-7.743z"}),(0,r.jsx)("path",{fill:"#FF3D00",d:"M6.306 14.691l6.571 4.819C14.655 15.108 18.961 12 24 12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4 16.318 4 9.656 8.337 6.306 14.691z"}),(0,r.jsx)("path",{fill:"#4CAF50",d:"M24 44c5.166 0 9.86-1.977 13.409-5.192l-6.19-5.238C29.211 35.091 26.715 36 24 36c-5.202 0-9.619-3.317-11.283-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44z"}),(0,r.jsx)("path",{fill:"#1976D2",d:"M43.611 20.083H42V20H24v8h11.303c-.792 2.237-2.231 4.166-4.087 5.571l6.19 5.238C42.022 35.026 44 30.038 44 24c0-2.641-.21-5.236-.611-7.743z"})]})},{strategy:"oauth_github",name:"GitHub",icon:()=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"})})},{strategy:"oauth_microsoft",name:"Microsoft",icon:()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 23 23",children:[(0,r.jsx)("path",{fill:"#f25022",d:"M1 1h10v10H1z"}),(0,r.jsx)("path",{fill:"#7fba00",d:"M12 1h10v10H12z"}),(0,r.jsx)("path",{fill:"#00a4ef",d:"M1 12h10v10H1z"}),(0,r.jsx)("path",{fill:"#ffb900",d:"M12 12h10v10H12z"})]})}
1,{strategy:"oauth_discord",name:"Discord",icon:()=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515a.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0a12.64 12.64 0 0 0-.617-1.25a.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057a19.9 19.9 0 0 0 5.993 3.03a.078.078 0 0 0 .084-.028a14.09 14.09 0 0 0 1.226-1.994a.076.076 0 0 0-.041-.106a13.107 13.107 0 0 1-1.872-.892a.077.077 0 0 1-.008-.128a10.2 10.2 0 0 0 .372-.292a.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127a12.299 12.299 0 0 1-1.873.892a.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028a19.839 19.839 0 0 0 6.002-3.03a.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.956-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.955-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.946 2.418-2.157 2.418z"})})},{strategy:"oauth_twitter",name:"Twitter",icon:()=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}],v=e=>{let{testimonial:t,delay:a}=e;return(0,r.jsxs)("div",{className:"animate-testimonial ".concat(a," bg-card/40 flex w-64 items-start gap-3 rounded-3xl border border-white/10 p-5 backdrop-blur-xl dark:bg-zinc-800/40"),children:[(0,r.jsx)(l.default,{src:t.avatarSrc,width:40,height:40,className:"h-10 w-10 rounded-2xl object-cover",alt:"avatar"}),(0,r.jsxs)("div",{className:"text-sm leading-snug",children:[(0,r.jsx)("p",{className:"flex items-center gap-1 font-medium",children:t.name}),(0,r.jsx)("p",{className:"text-muted-foreground",children:t.handle}),(0,r.jsx)("p",{className:"text-foreground/80 mt-1",children:t.text})]})]})},b=e=>{let{title:t,description:n,heroImageSrc:l,testimonials:g=[],mode:b="sign-in",redirectUrl:y="/dashboard",enabledOAuthProviders:w=["google","github","microsoft"],invitationTicket:j=null,isInvitation:N=!1}=e,[k,C]=(0,s.useState)(!1),[S,z]=(0,s.useState)(""),[A,_]=(0,s.useState)(""),[L,M]=(0,s.useState)(""),[E,P]=(0,s.useState)(""),[R,H]=(0,s.use
1State)(""),[F,I]=(0,s.useState)(!1),[D,U]=(0,s.useState)(""),[B,W]=(0,s.useState)(null),[q,O]=(0,s.useState)(""),[T,G]=(0,s.useState)(!1),[V,$]=(0,s.useState)(null),[K,X]=(0,s.useState)(null);(0,s.useEffect)(()=>{let e=localStorage.getItem("liine_last_oauth_strategy");e&&$(e)},[]),(0,s.useEffect)(()=>{"sign-up"===b?Promise.all([a.e(7980),a.e(8177)]).then(a.t.bind(a,88177,23)).then(e=>{X(()=>e.default)}):(W(null),O(""),G(!1))},[b]);let{signIn:Z,setActive:J}=(0,c.go)(),{signUp:Q,setActive:Y}=(0,c.yC)(),ee=(0,u.useRouter)(),et=e=>{let t=encodeURIComponent(y);return"".concat(e,"?redirect_url=").concat(t)},ea=async e=>{if(e.preventDefault(),!Z)return;let t=S.trim(),a=A.trim();if(!t||!a)return void U("Please enter your email and password.");I(!0),U("");try{let e=await Z.create({identifier:t,password:a});"complete"===e.status&&(await J({session:e.createdSessionId}),ee.push(y))}catch(e){var r,s;U((null==(s=e.errors)||null==(r=s[0])?void 0:r.message)||"An error occurred during sign in")}finally{I(!1)}},er=async e=>{if(e.preventDefault(),!Q)return;let t=S.trim(),a=A.trim(),r=R.trim(),s=L.trim(),n=E.trim(),i=!!(N&&j);if(i?!a||!r||!s||!n:!t||!a||!r||!s||!n)return void U("Please complete all required fields.");if(!i)try{let e=await fetch("/api/email/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t})});if(!e.ok){let t=await e.json().catch(()=>({}));U(t.error||"Unable to validate email address. Please try another.");return}}catch(e){U("Unable to validate email address. Please try again later.");return}I(!0),U("");try{let e;if(i&&j){let t={strategy:"ticket",ticket:j,password:a};if(t.username=r,t.firstName=s,t.lastName=n,e=await Q.create(t),"complete"===e.status){await Y({session:e.createdSessionId}),ee.push(y);return}}else{let i={emailAddress:t,password:a};i.username=r,i.firstName=s,i.lastName=n,e=await Q.create(i),await Q.prepareEmailAddressVerification({strategy:"email_code"})}e.status}catch(e){var l,o;U((null==(o=e.errors)||null==(l=o[0])?void 0:l.message)||"An error occurred during sign up")}finally{I(!1)}},es=async e=>{try{localStorage.setItem("liine_last_oauth_strategy",e);let t={additionalOAuthScopes:["prompt=select_account"]};"sign-in"===b&&Z?await Z.authenticateWithRedirect({strategy:e,redirectUrl:window.location.origin+"/sso-callback",redirectUrlComplete:y,...t}):"sign-up"===b&&Q&&await Q.authenticateWithRedirect({strategy:e,redirectUrl:window.location.origin+"/sso-callback",redirectUrlComplete:y,...t})}catch(e){console.error("OAuth authentication error:",e),U("Failed to authenticate with the selected provider")}};return(0,r.jsxs)("div",{className:"font-geist flex min-h-screen w-full flex-col overflow-hidden md:flex-row",children:[(0,r.jsx)("section",{className:"flex flex-1 items-center justify-center p-8",children:(0,r.jsx)("div",{className:"w-full max-w-md",children:(0,r.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,r.jsx)("div",{className:"flex justify-between",children:(0,r.jsx)(i(),{href:"/",className:"text-muted-foreground hover:text-foreground text-sm transition-colors",children:"← Back to home"})}),(0,r.jsx)("h1",{className:"animate-element animate-delay-100 text-foreground text-4xl leading-tight font-light tracking-tighter md:text-5xl",children:t||("sign-in"===b?"Welcome":"Join Us")}),(0,r.jsx)("p",{className:"animate-element animate-delay-200 text-muted-foreground",children:n||("sign-in"===b?"Access your account and continue your journey with us":"Create your account and start your journey with us")}),D&&(0,r.jsx)("div",{className:"animate-element animate-delay-250 bg-destructive/10 border-destructive/20 text-destructive rounded-lg border p-3 text-sm",children:D}),(0,r.jsxs)("form",{className:"space-y-5",onSubmit:"sign-in"===b?ea:er,noValidate:!0,children:["sign-up"===b&&(0,r.jsxs)(r.Fragment,{children:[N&&(0,r.jsx)("div",{className:"animate-element animate-delay-200",children:(0,r.jsx)("div",{className:"border-border rounded-2xl border bg-violet-500/10 p-4 backdrop-blur-sm",children:(0,r.jsx)("p",{className:"text-sm text-violet-800",children:"✉️ Welcome! Your email is verified."})})}),(0,r.jsxs)("div",{className:"animate-element animate-delay-300 space-y-5",children:[(0,r.jsx)("label",{className:"text-muted-foreground mb-2 block text-sm font-medium",children:"Username"}),(0,r.jsx)(h.p,{name:"username",type:"text",placeholder:"alex.harris",value:R,onChange:e=>H(e.target.value),autoComplete:"username",required:!0,size:"lg",className:"text-sm"})]}),(0,r.jsxs)("div",{className:"animate-element animate-delay-300 grid grid-cols-2 gap-3",children:[(0,r.jsxs)("div",{className:"space-y-5",children:[(0,r.jsx)("label",{className:"text-muted-foreground mb-2 block text-sm font-medium",children:"First Name"}),(0,r.jsx)(h.p,{name:"firstName",type:"text",placeholder:"Alex",value:L,onChange:e=>M(e.target.value),autoComplete:"given-name",required:!0,size:"lg",className:"text-sm"})]}),(0,r.jsxs)("div",{className:"space-y-5",children:[(0,r.jsx)("label",{className:"text-muted-foreground mb-2 block text-sm font-medium",children:"Last Name"}),(0,r.jsx)(h.p,{name:"lastName",type:"text",placeholder:"Harris",value:E,onChange:e=>P(e.target.value),autoComplete:"family-name",required:!0,size:"lg",className:"text-sm"})]})]})]}),!N&&(0,r.jsxs)("div",{className:"animate-element animate-delay-300 space-y-5",children:[(0,r.jsx)("label",{className:"text-muted-foreground mb-2 block text-sm font-medium",children:"Email Address"}),(0,r.jsx)(h.p,{name:"email",type:"email",placeholder:"sign-up"===b?"[email protected]":"Enter your email address",value:S,onChange:e=>z(e.target.value),autoComplete:"email",required:!0,size:"lg",className:"text-sm"})]}),(0,r.jsxs)("div",{className:"animate-element animate-delay-400",children:[(0,r.jsx)("label",{className:"text-muted-foreground mb-2 block text-sm font-medium",children:"Password"}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(h.p,{name:"password",type:k?"text":"password",placeholder:"sign-up"===b?"Create a strong password":"Enter your password",value:A,onChange:e=>{let t=e.target.value;if(_(t),T||G(!0),K&&"sign-up"===b){let e=K(t);W(e.score),O((e.feedback.warning?e.feedback.warning:e.feedback.suggestions[0])||"")}else"sign-up"===b&&(W(null),O(""));t||(W(null),O(""))},autoComplete:"sign-in"===b?"current-password":"new-password",required:!0,size:"lg",className:"pr-12 text-sm"}),(0,r.jsx)("button",{type:"button",onClick:()=>C(!k),className:"absolute inset-y-0 right-3 flex items-center","aria-label":k?"Hide password":"Show password",children:k?(0,r.jsx)(o,{className:"text-muted-foreground hover:text-foreground h-5 w-5 transition-colors"}):(0,r.jsx)(d.A,{className:"text-muted-foreground hover:text-foreground h-5 w-5 transition-colors"})})]}),"sign-up"===b&&K&&T&&A.length>0?(0,r.jsx)("div",{className:"mt-3",children:(0,r.jsx)(f,{score:B,feedback:q,length:A.length,minLength:8})}):null]}),"sign-in"===b&&(0,r.jsxs)("div",{className:"animate-element animate-delay-500 flex items-center justify-between text-sm",children:[(0,r.jsxs)("label",{className:"flex cursor-pointer items-center gap-3",children:[(0,r.jsx)(x.S,{name:"rememberMe"}
1),(0,r.jsx)("span",{className:"text-foreground/90",children:"Keep me signed in"})]}),(0,r.jsx)("button",{type:"button",onClick:()=>{ee.push("/forgot-password")},className:"text-violet-400 transition-colors hover:underline",children:"Reset password"})]}),!N&&(0,r.jsx)("div",{id:"clerk-captcha",className:"animate-element animate-delay-500"}),(0,r.jsx)("div",{className:"animate-element animate-delay-600 mt-8",children:(0,r.jsx)(m.$,{type:"submit",disabled:F,size:"lg",className:"w-full",children:F?"Loading...":"sign-in"===b?"Sign In":"Create Account"})})]}),!N&&(0,r.jsxs)("div",{className:"animate-element animate-delay-700 relative mt-6 flex items-center justify-center",children:[(0,r.jsx)("span",{className:"border-border w-full border-t"}),(0,r.jsx)("span",{className:"text-muted-foreground bg-background absolute px-4 text-sm",children:"Or continue with"})]}),!N&&(0,r.jsx)("div",{className:"mt-5 flex gap-3",children:p.filter(e=>w.includes(e.name.toLowerCase())).map((e,t)=>{let a=e.icon,s=e.strategy===V&&"sign-in"===b;return(0,r.jsxs)(m.$,{onClick:()=>es(e.strategy),variant:"outline",size:"lg",className:"animate-element relative flex-1 gap-2 ".concat(s?"ring-1 ring-violet-400":""),style:{animationDelay:"".concat(.8+.1*t,"s")},children:[s&&(0,r.jsx)("span",{className:"ring-background absolute -top-2 -right-2 flex h-5 items-center justify-center rounded-full bg-violet-400 px-2 text-[10px] font-medium text-white shadow-sm ring-2",children:"Last used"}),(0,r.jsx)(a,{}),(0,r.jsx)("span",{className:"text-sm font-medium",children:e.name})]},e.strategy)})}),(0,r.jsx)("p",{className:"animate-element text-muted-foreground text-center text-sm",style:{animationDelay:"".concat(1.3+.1*w.length,"s")},children:"sign-in"===b?(0,r.jsxs)(r.Fragment,{children:["New to our platform?"," ",(0,r.jsx)("button",{onClick:()=>ee.push("/waitlist"),className:"text-violet-400 transition-colors hover:underline",children:"Join Waitlist"})]}):(0,r.jsxs)(r.Fragment,{children:["Already have an account?"," ",(0,r.jsx)("button",{onClick:()=>{"sign-in"===b?ee.push(et("/sign-up")):ee.push(et("/sign-in"))},className:"text-violet-400 transition-colors hover:underline",children:"Sign In"})]})})]})})}),l&&(0,r.jsxs)("section",{className:"relative hidden flex-1 overflow-hidden p-4 md:block",children:[(0,r.jsx)("div",{className:"animate-slide-right animate-delay-300 absolute inset-4 rounded-3xl bg-cover bg-center",style:{backgroundImage:"url(".concat(l,")")}}),g.length>0&&(0,r.jsxs)("div",{className:"absolute bottom-8 left-1/2 flex w-full -translate-x-1/2 justify-center gap-4 px-8",children:[(0,r.jsx)(v,{testimonial:g[0],delay:"animate-delay-1000"}),g[1]&&(0,r.jsx)("div",{className:"hidden xl:flex",children:(0,r.jsx)(v,{testimonial:g[1],delay:"animate-delay-1200"})}),g[2]&&(0,r.jsx)("div",{className:"hidden 2xl:flex",children:(0,r.jsx)(v,{testimonial:g[2],delay:"animate-delay-1400"})})]})]})]})}},64269:(e,t,a)=>{a.d(t,{cn:()=>n});var r=a(2821),s=a(75889);function n(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,s.QP)((0,r.$)(t))}},65142:(e,t,a)=>{a.d(t,{j:()=>i,p:()=>l});var r=a(95155);a(12115);var s=a(83101),n=a(64269);let i=(0,s.F)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input w-full min-w-0 rounded-md border bg-transparent shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:border-0 file:bg-transparent file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{size:{default:"h-9 px-3 py-1 text-base md:text-sm file:h-7 file:text-sm",sm:"h-8 px-2.5 py-1 text-xs file:h-6 file:text-xs",lg:"h-10 px-4 py-2 text-base file:h-8 file:text-sm"}},defaultVariants:{size:"default"}});function l(e){let{className:t,type:a,size:s,onFocus:l,...o}=e;return(0,r.jsx)("input",{type:a,"data-slot":"input",className:(0,n.cn)(i({size:s,className:t})),onFocus:e=>{let t=e.currentTarget;requestAnimationFrame(()=>{try{var e,a;let r=null!=(a=null==(e=t.value)?void 0:e.length)?a:0,s=0===t.selectionStart&&t.selectionEnd===r;r>0&&s&&t.setSelectionRange(r,r)}catch(e){}}),null==l||l(e)},...o})}},71847:(e,t,a)=>{a.d(t,{A:()=>
1o});var r=a(12115);let s=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,a)=>a?a.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},n=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter((e,t,a)=>!!e&&""!==e.trim()&&a.indexOf(e)===t).join(" ").trim()};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,r.forwardRef)((e,t)=>{let{color:a="currentColor",size:s=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:d="",children:c,iconNode:u,...m}=e;return(0,r.createElement)("svg",{ref:t,...i,width:s,height:s,stroke:a,strokeWidth:o?24*Number(l)/Number(s):l,className:n("lucide",d),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(m)&&{"aria-hidden":"true"},...m},[...u.map(e=>{let[t,a]=e;return(0,r.createElement)(t,a)}),...Array.isArray(c)?c:[c]])}),o=(e,t)=>{let a=(0,r.forwardRef)((a,i)=>{let{className:o,...d}=a;return(0,r.createElement)(l,{ref:i,iconNode:t,className:n("lucide-".concat(s(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),o),...d})});return a.displayName=s(e),a}},73457:(e,t,a)=>{a.d(t,{S:()=>l});var r=a(95155);a(12115);var s=a(38162),n=a(5917),i=a(64269);function l(e){let{className:t,...a}=e;return(0,r.jsx)(s.bL,{"data-slot":"checkbox",className:(0,i.cn)("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 cursor-pointer rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),...a,children:(0,r.jsx)(s.C1,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:(0,r.jsx)(n.A,{className:"size-3.5"})})})}},78108:(e,t,a)=>{a.d(t,{Z:()=>s});var r=a(12115);function s(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},84288:(e,t,a)=>{a.d(t,{X:()=>n});var r=a(12115),s=a(4129);function n(e){let[t,a]=r.useState(void 0);return(0,s.N)(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,s;if(!Array.isArray(t)||!t.length)return;let n=t[0];if("borderBoxSize"in n){let e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,s=t.blockSize}else r=e.offsetWidth,s=e.offsetHeight;a({width:r,height:s})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}a(void 0)},[e]),t}}}]);

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.