PageSourceSearch

https://vost.ai/_next/static/chunks/app/auth/page-1e92fba0c5105ba6.js?dpl=dpl_URj46FUCZ66EkiWFBzRkutFqqM4C

js vost.ai collected 2026-10-05 13:16:40 UTC 24,079 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8365],{2421:(e,t,r)=>{"use strict";r.d(t,{U:()=>s});var a=r(35965);function s(){window.location.hostname.includes("localhost");let e=!window.location.hostname.includes("vost.ai")&&!window.location.hostname.includes("localhost")&&!window.location.hostname.includes("127.0.0.1");return(0,a.createBrowserClient)("https://app.vost.ai","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InBsbWRsZ2F5dXN4ZG5tYmFmYnJ4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTIwOTM3NzgsImV4cCI6MjA2NzY2OTc3OH0.Sy0ggPprc0XWU3cz5CUkqDYvDD2TgmGbvEQ8WtVD1n8",{cookieOptions:{domain:e?void 0:".vost.ai",path:"/",sameSite:"lax",secure:!0}})}},2614:(e,t,r)=>{"use strict";r.d(t,{Zk:()=>a,jr:()=>s,s3:()=>n});let a="1613768559885591";function s(e){let t="undefined"!=typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():"".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2));return"".concat(e,".").concat(t)}function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s(e);return window.fbq&&a&&window.fbq("track",e,Object.fromEntries(Object.entries(t).filter(e=>{let[,t]=e;return null!=t&&""!==t})),{eventID:r}),r}},3920:(e,t,r)=>{Promise.resolve().then(r.bind(r,67621))},4359:(e,t,r)=>{"use strict";r.d(t,{DT:()=>l,Oj:()=>o});var a=r(43922),s=r(87345);let n=a.Yj().min(8,"Password must be at least 8 characters long").max(128,"Password must be less than 128 characters").regex(/[A-Z]/,"Password must contain at least one uppercase letter").regex(/[a-z]/,"Password must contain at least one lowercase letter").regex(/[0-9]/,"Password must contain at least one number").regex(/[^A-Za-z0-9]/,"Password must contain at least one special character"),i=a.Yj().email("Please enter a valid email address").toLowerCase().trim();function l(e){try{return i.parse(e),{valid:!0}}catch(e){if(e instanceof s.G)return{valid:!1,error:e.errors[0].message};return{valid:!1,error:"Invalid email"}}}function o(e){try{return n.parse(e),{valid:!0}}catch(e){if(e instanceof s.G)return{valid:!1,error:e.errors[0].message};return{valid:!1,error:"Invalid password"}}}a.Ik({email:i,password:n}),a.Ik({email:i,password:a.Yj().min(1,"Password is required")})},7059:(e,t,r)=>{"use strict";r.d(t,{$:()=>o,r:()=>l});var a=r(68987);r(2315);var s=r(9219),n=r(28877),i=r(80480);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 disabled:cursor-not-allowed [&_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 dark:text-foreground",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 dark:text-foreground",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",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:r,size:n,asChild:o=!1,...c}=e,d=o?s.DX:"button";return(0,a.jsx)(d,{"data-slot":"button",className:(0,i.cn)(l({variant:r,size:n,className:t})),...c})}},9219:(e,t,r)=>{"use strict";r.d(t,{DX:()=>l,Dc:()=>c,TL:()=>i});var a=r(2315),s=r(32638),n=r(68987);function i(e){let t=function(e){let t=a.forwardRef((e,t)=>
1{let{children:r,...n}=e;if(a.isValidElement(r)){var i;let e,l,o=(i=r,(l=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(l=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),c=function(e,t){let r={...t};for(let a in t){let s=e[a],n=t[a];/^on[A-Z]/.test(a)?s&&n?r[a]=(...e)=>{let t=n(...e);return s(...e),t}:s&&(r[a]=s):"style"===a?r[a]={...s,...n}:"className"===a&&(r[a]=[s,n].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==a.Fragment&&(c.ref=t?(0,s.t)(t,o):o),a.cloneElement(r,c)}return a.Children.count(r)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=a.forwardRef((e,r)=>{let{children:s,...i}=e,l=a.Children.toArray(s),o=l.find(d);if(o){let e=o.props.children,s=l.map(t=>t!==o?t:a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null);return(0,n.jsx)(t,{...i,ref:r,children:a.isValidElement(e)?a.cloneElement(e,void 0,s):null})}return(0,n.jsx)(t,{...i,ref:r,children:s})});return r.displayName=`${e}.Slot`,r}var l=i("Slot"),o=Symbol("radix.slottable");function c(e){let t=({children:e})=>(0,n.jsx)(n.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=o,t}function d(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===o}},15132:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(58997).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"}]])},21682:(e,t,r)=>{"use strict";r.d(t,{hO:()=>o,sG:()=>l});var a=r(2315),s=r(25002),n=r(9219),i=r(68987),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,n.TL)(`Primitive.${t}`),s=a.forwardRef((e,a)=>{let{asChild:s,...n}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(s?r:t,{...n,ref:a})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function o(e,t){e&&s.flushSync(()=>e.dispatchEvent(t))}},28877:(e,t,r)=>{"use strict";r.d(t,{F:()=>i});var a=r(18997);let s=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,n=a.$,i=(e,t)=>r=>{var a;if((null==t?void 0:t.variants)==null)return n(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:i,defaultVariants:l}=t,o=Object.keys(i).map(e=>{let t=null==r?void 0:r[e],a=null==l?void 0:l[e];if(null===t)return null;let n=s(t)||s(a);return i[e][n]}),c=r&&Object.entries(r).reduce((e,t)=>{let[r,a]=t;return void 0===a||(e[r]=a),e},{});return n(e,o,null==t||null==(a=t.compoundVariants)?void 0:a.reduce((e,t)=>{let{class:r,className:a,...s}=t;return Object.entries(s).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...l,...c}[t]):({...l,...c})[t]===r})?[...e,r,a]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},29905:(e,t,r)=>{"use strict";r.d(t,{BT:()=>o,Wu:()=>c,ZB:()=>l,Zp:()=>n,aR:()=>i,wL:()=>d});var a=r(68987);r(2315);var s=r(80480);function n(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"card",className:(0,s.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border shadow-sm",t),...r})}function i(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"card-header",className:(0,s.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 pt-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...r})}function l(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"card-title",className:(0,s.cn)("leading-none font-semibold",t),...r})}function o(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"card-description",className:(0,s.cn)("text-muted-foreground text-sm",t),...r})}function c(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"card-content",className:(0,s.cn)("px-6 pb-6",t),...r})}function d(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"card-footer",className:(0,s.cn)("flex items-center px-6 [.border-t]:pt-6",t),...r})}},32638:(e,t,r)=>{"use strict";r.d(t,{s:()=>i,t:()=>n});var a=r(2315);function s(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function n(...e){return t=>{let r=!1,a=e.map(e=>{let a=s(e,t);return r||"function"!=typeof a||(r=!0),a});if(r)return()=>{for(let t=0;t<a.length;t++){let r=a[t];"function"==typeof r?r():s(e[t],null)}}}}function i(...e){return a.useCallback(n(...e),e)}},40437:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});var a=r(68987);r(2315);var s=r(80480);function n(e){let{className:t,type:r,...n}=e;return(0,a.jsx)("input",{type:r,"data-slot":"input",className:(0,s.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:text-foreground dark:placeholder:text-muted-foreground","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",t),...n})}},45651:(e,t,r)=>{"use strict";r.d(t,{J:()=>i});var a=r(68987);r(2315);var s=r(64969),n=r(80480);function i(e){let{className:t,...r}=e;return(0,a.jsx)(s.b,{"data-slot":"label",className:(0,n.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...r})}},56043:(e,t,r)=>{"use strict";r.d(t,{y:()=>o});var a=r(68987),s=r(2315),n=r(80480),i=r(90652),l=r(15132);let o=s.forwardRef((e,t)=>
1{let{className:r,...o}=e,[c,d]=s.useState(!1);return(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("input",{type:c?"text":"password",className:(0,n.cn)("flex h-11 w-full rounded-md border border-input bg-background px-3 py-2 pr-10 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...o}),(0,a.jsxs)("button",{type:"button",onClick:()=>d(!c),className:"absolute right-0 top-0 h-11 px-3 py-2 hover:bg-transparent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",tabIndex:-1,disabled:o.disabled,children:[c?(0,a.jsx)(i.A,{className:"h-4 w-4 text-muted-foreground","aria-hidden":"true"}):(0,a.jsx)(l.A,{className:"h-4 w-4 text-muted-foreground","aria-hidden":"true"}),(0,a.jsx)("span",{className:"sr-only",children:c?"Hide password":"Show password"})]})]})});o.displayName="PasswordInput"},58997:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var a=r(2315);let s=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},n=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.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,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:c="",children:d,iconNode:u,...m}=e;return(0,a.createElement)("svg",{ref:t,...i,width:s,height:s,stroke:r,strokeWidth:o?24*Number(l)/Number(s):l,className:n("lucide",c),...!d&&!(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,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(d)?d:[d]])}),o=(e,t)=>{let r=(0,a.forwardRef)((r,i)=>{let{className:o,...c}=r;return(0,a.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),...c})});return r.displayName=s(e),r}},64068:(e,t,r)=>{"use strict";var a=r(42452);r.o(a,"useParams")&&r.d(t,{useParams:function(){return a.useParams}}),r.o(a,"usePathname")&&r.d(t,{usePathname:function(){return a.usePathname}}),r.o(a,"useRouter")&&r.d(t,{useRouter:function(){return a.useRouter}}),r.o(a,"useSearchParams")&&r.d(t,{useSearchParams:function(){return a.useSearchParams}})},64969:(e,t,r)=>{"use strict";r.d(t,{b:()=>l});var a=r(2315),s=r(21682),n=r(68987),i=a.forwardRef((e,t)=>(0,n.jsx)(s.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null==(r=e.onMouseDown)||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));i.displayName="Label";var l=i},67621:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var a=r(68987),s=r(2315),n=r(2421),i=r(7059),l=r(40437),o=r(56043),c=r(45651),d=r(29905),u=r(36115),m=r.n(u),p=r(64068),f=r(4359),h=r(2614),x=r(99259),v=r(73234);function g(){let[e,t]=(0,s.useState)("email"),[r,u]=(0,s.useState)(null),[g,b]=(0,s.useState)(""),[y,w]=(0,s.useState)(""),[j,N]=(0,s.useState)(!1),[k,C]=(0,s.useState)(""),[I,P]=(0,s.useState)(""),[S,A]=(0,s.useState)(""),R=(0,s.useRef)(null),D=(0,s.useRef)(null),W=(0,p.useRouter)(),O=(0,p.useSearchParams)(),_=(0,n.U)(),z=(null==O?void 0:O.get("redirect"))||(null==O?void 0:O.get("next"))||"/dashboard";(0,s.useEffect)(()=>{"email"===e?setTimeout(()=>{var e;return null==(e=R.current)?void 0:e.focus()},100):"password"===e&&setTimeout(()=>{var e;return null==(e=D.current)?void 0:e.focus()},100)},[e]);let E=async()=>{N(!0),C("");try{let e,t=window.location.host,r=window.location.protocol,a="".concat(r,"//").concat(t);e=z.startsWith("http://")||z.startsWith("https://")?z:"".concat(a).concat(z);let{error:s}=await _.auth.signInWithOAuth({provider:"google",options:{redirectTo:"".concat(a,"/auth/callback?redirect=").concat(encodeURIComponent(e)),queryParams:{access_type:"offline",prompt:"consent"}}});s&&C(s.message)}catch(e){C("An unexpected error occurred")}finally{N(!1)}},F=async e=>{e.preventDefault();let r=(0,f.DT)(g);if(!r.valid)return void P(r.error||"Invalid email");N(!0),C(""),P("");try{u(!0),t("password")}finally{N(!1)}},B=async e=>{e.preventDefault(),N(!0),C(""),A("");try{let{error:e}=await _.auth.signInWithPassword({email:g,password:y});if(!e)return void(z.startsWith("http://")||z.startsWith("https://")?window.location.href=z:(W.push(z),W.refresh())
1);if(e.message.includes("Invalid login credentials")){let e=(0,f.Oj)(y);if(!e.valid){A(e.error||"Invalid password"),u(!0),N(!1);return}let r=(0,h.jr)("signup"),a=new URLSearchParams({next:z,auth_intent:"signup",meta_event_id:r}),s="".concat(window.location.origin,"/auth/callback?").concat(a.toString()),{error:n,data:i}=await _.auth.signUp({email:g,password:y,options:{emailRedirectTo:s}});n?n.message.includes("already registered")?(C("Incorrect password for this email"),u(!1)):C(n.message):((0,h.s3)("CompleteRegistration",{method:"email"},r),(null==i?void 0:i.session)?z.startsWith("http://")||z.startsWith("https://")?window.location.href=z:(W.push(z),W.refresh()):t("success"))}else C(e.message)}catch(e){C("An unexpected error occurred")}finally{N(!1)}};return"success"===e?(0,a.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 py-12 px-4 sm:px-6 lg:px-8",children:(0,a.jsxs)(d.Zp,{className:"w-full max-w-md",children:[(0,a.jsxs)(d.aR,{className:"space-y-1",children:[(0,a.jsx)(d.ZB,{className:"text-2xl font-bold text-center",children:"✅ Check your email!"}),(0,a.jsxs)(d.BT,{className:"text-center",children:["We've sent a confirmation link to ",g]})]}),(0,a.jsxs)(d.Wu,{className:"space-y-4",children:[(0,a.jsx)("div",{className:"bg-green-50 border border-green-200 text-green-700 px-4 py-3 rounded-md text-sm",children:"Please check your email inbox and click the confirmation link to activate your account."}),(0,a.jsxs)("p",{className:"text-sm text-gray-600 text-center",children:["Didn't receive the email? Check your spam folder or"," ",(0,a.jsx)("button",{onClick:()=>{t("email"),u(null)},className:"text-blue-600 hover:text-blue-500 underline",children:"try again"})]})]})]})}):(0,a.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 py-12 px-4 sm:px-6 lg:px-8",children:(0,a.jsxs)(d.Zp,{className:"w-full max-w-md",children:[(0,a.jsxs)(d.aR,{className:"space-y-1",children:[(0,a.jsx)(d.ZB,{className:"text-2xl font-bold text-center",children:"email"===e?"Welcome to Vost":r?"Create your account":"Welcome back"}),(0,a.jsx)(d.BT,{className:"text-center",children:"email"===e?"Sign in or create an account to continue":r?"Creating a new account with ".concat(g):"Enter your password to continue"})]}),(0,a.jsxs)(d.Wu,{children:["email"===e&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i.$,{type:"button",variant:"outline",className:"w-full h-11",onClick:E,disabled:j,children:[(0,a.jsxs)("svg",{className:"w-5 h-5 mr-2",viewBox:"0 0 24 24",children:[(0,a.jsx)("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),(0,a.jsx)("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),(0,a.jsx)("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),(0,a.jsx)("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),"Continue with Google"]}),(0,a.jsxs)("div",{className:"relative my-6",children:[(0,a.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,a.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,a.jsx)("div",{className:"relative flex justify-center text-sm",children:(0,a.jsx)("span",{className:"px-2 bg-white text-gray-500",children:"Or continue with email"})})]})]}),"email"===e?(0,a.jsxs)("form",{onSubmit:F,className:"space-y-4",children:[k&&(0,a.jsx)("div",{className:"bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded-md text-sm",children:k}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(c.J,{htmlFor:"email",children:"Email address"}),(0,a.jsx)(l.p,{ref:R,id:"email",type:"email",value:g,onChange:e=>{if(b(e.target.value),I){let t=(0,f.DT)(e.target.value);P(!t.valid&&e.target.value&&t.error||"")}},onBlur:()=>{let e=(0,f.DT)(g);!e.valid&&g&&P(e.error||"Invalid email")},placeholder:"[email protected]",required:!0,disabled:j,autoComplete:"email",className:"h-11 ".concat(I?"border-red-500":"")}
1),I&&(0,a.jsx)("p",{className:"text-xs text-red-600",children:I})]}),(0,a.jsx)(i.$,{type:"submit",className:"w-full h-11",disabled:j||!g,children:j?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x.A,{className:"mr-2 h-4 w-4 animate-spin"}),"Continuing..."]}):"Continue"})]}):(0,a.jsxs)("form",{onSubmit:B,className:"space-y-4",children:[k&&(0,a.jsx)("div",{className:"bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded-md text-sm",children:k}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(c.J,{htmlFor:"email",children:"Email"}),(0,a.jsxs)("button",{type:"button",onClick:()=>{t("email"),w(""),A(""),C(""),u(null)},className:"text-sm text-blue-600 hover:text-blue-500 flex items-center gap-1",children:[(0,a.jsx)(v.A,{className:"h-3 w-3"}),"Change"]})]}),(0,a.jsx)(l.p,{id:"email-display",type:"email",value:g,disabled:!0,className:"h-11 bg-gray-50"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(c.J,{htmlFor:"password",children:"Password"}),!r&&(0,a.jsx)(m(),{href:"/auth/forgot-password?email=".concat(encodeURIComponent(g)),className:"text-sm text-blue-600 hover:text-blue-500",tabIndex:-1,children:"Forgot password?"})]}),(0,a.jsx)(o.y,{ref:D,id:"password",value:y,onChange:e=>{if(w(e.target.value),S){let t=(0,f.Oj)(e.target.value);A(!t.valid&&e.target.value&&t.error||"")}},placeholder:"Enter your password",required:!0,disabled:j,autoComplete:"current-password",className:"".concat(S?"border-red-500":"")}),S&&(0,a.jsx)("p",{className:"text-xs text-red-600",children:S}),r&&!S&&y.length>0&&(0,a.jsx)("p",{className:"text-xs text-gray-500",children:"Use 8+ characters with mixed case, number and special character"})]}),(0,a.jsx)(i.$,{type:"submit",className:"w-full h-11",disabled:j||!y,children:j?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x.A,{className:"mr-2 h-4 w-4 animate-spin"}),r?"Creating account...":"Signing in..."]}):"Continue"})]}),(0,a.jsx)("div",{className:"mt-6 text-center",children:(0,a.jsxs)("p",{className:"text-xs text-gray-500",children:["By continuing, you agree to our"," ",(0,a.jsx)(m(),{href:"/terms",className:"text-blue-600 hover:text-blue-500 underline",children:"Terms"})," ","and"," ",(0,a.jsx)(m(),{href:"/privacy",className:"text-blue-600 hover:text-blue-500 underline",children:"Privacy Policy"})]})})]})]})})}function b(){return(0,a.jsx)(s.Suspense,{fallback:(0,a.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 py-12 px-4 sm:px-6 lg:px-8",children:(0,a.jsxs)(d.Zp,{className:"w-full max-w-md",children:[(0,a.jsxs)(d.aR,{className:"space-y-1",children:[(0,a.jsx)(d.ZB,{className:"text-2xl font-bold text-center",children:"Welcome to Vost"}),(0,a.jsx)(d.BT,{className:"text-center",children:"Loading authentication..."})]}),(0,a.jsxs)(d.Wu,{className:"flex flex-col items-center justify-center py-8",children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"w-12 h-12 border-4 border-gray-200 rounded-full"}),(0,a.jsx)("div",{className:"w-12 h-12 border-4 border-[#FF7A00] border-t-transparent rounded-full animate-spin absolute top-0 left-0"})]}),(0,a.jsx)("p",{className:"mt-4 text-sm text-gray-500",children:"Please wait..."})]})]})}),children:(0,a.jsx)(g,{})})}},73234:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(58997).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},80480:(e,t,r)=>{"use strict";r.d(t,{P$:()=>i,TB:()=>n,cn:()=>l,df:()=>p,ds:()=>u,hY:()=>d,mq:()=>m,vv:()=>o,z9:()=>c});var a=r(18997),s=r(59649);let n="https",i="vost.ai";function l(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.QP)((0,a.$)(t))}function o(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}).format(e)}function c(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").substring(0,50)}function d(){return""}function u(e){return e?e.charAt(0).toUpperCase()+e.slice(1):"Card"}function m(e){return e||"****"}function p(e,t){let r=(null==e?void 0:e.balance_cents)||0,a=(null==t?void 0:t.remaining_cents)||0,s=r+a;return{prepaidBalanceCents:r,monthlyAllocationCents:a,totalBalanceCents:s,totalBalanceDollars:s/100,isLowBalance:s<1e3}}},90652:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(58997).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"}]])}},e=>{e.O(0,[1165,6115,5965,532,4850,8441,274,7358],()=>e(e.s=3920)),_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.