PageSourceSearch

https://lendtelligent.replit.app/_next/static/chunks/app/login/page-bec9bd33fed7a8d6.js

js lendtelligent.replit.app collected 2026-10-03 03:56:11 UTC 16,265 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{3998:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>o});var n=r(95155),a=r(12115),s=r(32467),i=r(83101),l=r(64269);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90","destructive-outline":"bg-destructive/10 text-secondary-foreground hover:bg-destructive/20",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>{let{className:r,variant:a,size:i,asChild:d=!1,...c}=e,u=d?s.DX:"button";return(0,n.jsx)(u,{className:(0,l.cn)(o({variant:a,size:i,className:r})),ref:t,...c})});d.displayName="Button"},15894:(e,t,r)=>{"use strict";r.d(t,{dj:()=>u});var n=r(12115);let a=0,s=new Map,i=e=>{if(s.has(e))return;let t=setTimeout(()=>{s.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);s.set(e,t)},l=[],o={toasts:[]};function d(e){o=((e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?i(r):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}})(o,e),l.forEach(e=>{e(o)})}function c(e){let{...t}=e,r=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),n=()=>d({type:"DISMISS_TOAST",toastId:r});return d({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||n()}}}),{id:r,dismiss:n,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function u(){let[e,t]=n.useState(o);return n.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:c,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},17625:(e,t,r)=>{"use strict";r.d(t,{R:()=>s});var n=r(95155),a=r(12115);function s(e){let{glow:t=360,dot:r=150}=e,s=(0,a.useRef)(null);(0,a.useEffect)(()=>{let e=s.current,t=null==e?void 0:e.parentElement;if(!e||!t||!(window.matchMedia("(hover: hover) and (pointer: fine)").matches&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches))return;let r=0,n=0,a=0,i=()=>{r=0;let s=t.getBoundingClientRect();e.style.setProperty("--mx","".concat(n-s.left,"px")),e.style.setProperty("--my","".concat(a-s.top,"px")),e.style.setProperty("--fx","1")},l=e=>{n=e.clientX,a=e.clientY,r||(r=requestAnimationFrame(i))},o=()=>e.style.setProperty("--fx","0");return t.addEventListener("pointermove",l),t.addEventListener("pointerleave",o),()=>{t.removeEventListener("pointermove",l),t.removeEventListener("pointerleave",o),r&&cancelAnimationFrame(r)}},[]);let i="radial-gradient(circle ".concat(r,"px at var(--mx, 50%) var(--my, 40%), #000 0%, transparent 70%)");return(0,n.jsxs)("div",{ref:s,"aria-hidden":!0,style:{position:"absolute",inset:0,zIndex:0,pointerEvents:"none"},children:[(0,n.jsx)("div",{style:{position:"absolute",inset:0,opacity:"var(--fx, 0)",transition:"opacity 0.45s ease",mixBlendMode:"screen",background:"radial-gradient(circle ".concat(t,"px at var(--mx, 50%) var(--my, 40%), rgba(74,124,155,0.30) 0%, rgba(43,122,120,0.16) 38%, rgba(123,107,141,0.08) 55%, transparent 72%)")}}),(0,n.jsx)("div",{style:{position:"absolute",inset:0,opacity:"var(--fx, 0)",transition:"opacity 0.45s ease",backgroundImage:"radial-gradient(circle, rgba(111,184,111,0.55) 1px, transparent 1px)",backgroundSize:"32px 32px",WebkitMaskImage:i,maskImage:i}})]})}},32467:(e,t,r)=>{"use strict";r.d(t,{DX:()=>u,TL:()=>c});var n,a=r(12115),s=r(94446),i=r(95155),l=Symbol.for("react.lazy"),o=(n||(n=r.t(a,2)))[" use ".trim().toString()];function d(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===l&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function c(e){let t=function(e){let t=a.forwardRef((e,t)=>
1{let{children:r,...n}=e;if(d(r)&&"function"==typeof o&&(r=o(r._payload)),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),d=function(e,t){let r={...t};for(let n in t){let a=e[n],s=t[n];/^on[A-Z]/.test(n)?a&&s?r[n]=(...e)=>{let t=s(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...s}:"className"===n&&(r[n]=[a,s].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==a.Fragment&&(d.ref=t?(0,s.t)(t,o):o),a.cloneElement(r,d)}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:n,...s}=e;d(n)&&"function"==typeof o&&(n=o(n._payload));let l=a.Children.toArray(n),c=l.find(f);if(c){let e=c.props.children,n=l.map(t=>t!==c?t:a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...s,ref:r,children:a.isValidElement(e)?a.cloneElement(e,void 0,n):null})}return(0,i.jsx)(t,{...s,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}var u=c("Slot"),p=Symbol("radix.slottable");function f(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===p}},32894:(e,t,r)=>{"use strict";r.d(t,{b:()=>o});var n=r(12115);r(47650);var a=r(32467),s=r(95155),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,a.TL)(`Primitive.${t}`),i=n.forwardRef((e,n)=>{let{asChild:a,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(a?r:t,{...i,ref:n})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),l=n.forwardRef((e,t)=>(0,s.jsx)(i.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())}}));l.displayName="Label";var o=l},40341:(e,t,r)=>{Promise.resolve().then(r.bind(r,58956))},58956:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var n=r(95155),a=r(12115),s=r(20063),i=r(96199),l=r(3998),o=r(86948),d=r(65142),c=r(76444),u=r(15894),p=r(78105),f=r(17625),m=r(92033),x=r(52619),v=r.n(x);function y(){let e=(0,s.useRouter)(),t=(0,s.useSearchParams)(),{toast:r}=(0,u.dj)(),[x,y]=(0,a.useState)(""),[g,h]=(0,a.useState)(""),[b,j]=(0,a.useState)(!1),w=t.get("error"),N=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/dashboard";return"string"!=typeof e||""===e||!e.startsWith("/")||e.startsWith("//")||e.startsWith("/\\")||/[\u0000-\u001f\u007f]/.test(e)?t:e}(t.get("callbackUrl"));(0,a.useEffect)(()=>{"CredentialsSignin"===w&&r({variant:"destructive",title:"Login Failed",description:"Invalid email or password. Please try again."})},[w,r]);let S=async t=>{if(t.preventDefault(),!x||!g)return void r({variant:"destructive",title:"Error",description:"Please enter both email and password."});j(!0);try{let t=await (0,i.Jv)("credentials",{email:x,password:g,redirect:!1});if(null==t?void 0:t.error)r({variant:"destructive",title:"Login Failed",description:"Invalid email or password. Please try again."});else if(null==t?void 0:t.ok){await new Promise(e=>setTimeout(e,500));let t=await fetch("/api/auth/session"),r=await t.json();(null==r?void 0:r.user)?window.location.href=N:(e.push(N),e.refresh())}}catch(e){r({variant:"destructive",title:"Error",description:"Something went wrong. Please try again."})}finally{j(!1)}};return(0,n.jsxs)("div",{className:"relative flex min-h-screen flex-col items-center justify-center overflow-hidden px-4 py-10",style:{background:"#0F1A2E"},children:[(0,n.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-0",style:{background:"radial-gradient(ellipse 60% 50% at 20% 40%, rgba(74, 124, 155, 0.18) 0%, transparent 70%), radial-gradient(ellipse 50% 40% at 80% 60%, rgba(43, 122, 120, 0.14) 0%, transparent 70%), radial-gradient(ellipse 40% 30% at 60% 20%, rgba(123, 107, 141, 0.10) 0%, transparent 70%)"}}
1),(0,n.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-0",style:{backgroundImage:"radial-gradient(circle, rgba(74, 124, 155, 0.25) 1px, transparent 1px)",backgroundSize:"32px 32px",WebkitMaskImage:"radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%)",maskImage:"radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%)"}}),(0,n.jsx)(f.R,{}),(0,n.jsxs)("div",{className:"z-10 mb-6 flex items-center gap-2.5",children:[(0,n.jsx)("span",{className:"flex h-9 w-9 items-center justify-center rounded-lg",style:{background:"#4A7C9B"},children:(0,n.jsx)(p.pF,{width:18,height:18,style:{stroke:"#fff",fill:"none",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}})}),(0,n.jsxs)("span",{className:"text-xl font-extrabold tracking-tight text-white",children:["Lendsight",(0,n.jsx)("span",{style:{color:"#7FB0CC"},children:"AI"})]})]}),(0,n.jsxs)(o.Zp,{className:"z-10 mx-auto w-full max-w-sm shadow-2xl",children:[(0,n.jsxs)(o.aR,{className:"text-center",children:[(0,n.jsx)(o.ZB,{className:"text-2xl font-headline pt-2",children:"LendsightAI - Calculators"}),(0,n.jsx)(o.BT,{children:"Sign Up or Sign in for Elegant Calculators that answer Key Financial Questions"})]}),(0,n.jsx)(o.Wu,{children:(0,n.jsxs)("form",{onSubmit:S,className:"space-y-4",children:[(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(c.J,{htmlFor:"email",children:"Email"}),(0,n.jsx)(d.p,{id:"email",type:"email",placeholder:"[email protected]",value:x,onChange:e=>y(e.target.value),disabled:b,required:!0})]}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)(c.J,{htmlFor:"password",children:"Password"}),(0,n.jsx)(v(),{href:"/forgot-password",className:"text-sm text-primary hover:underline",children:"Forgot password?"})]}),(0,n.jsx)(d.p,{id:"password",type:"password",placeholder:"Enter your password",value:g,onChange:e=>h(e.target.value),disabled:b,required:!0})]}),(0,n.jsx)(l.$,{type:"submit",className:"w-full hover:opacity-90",style:{backgroundColor:"#5B9F5B",color:"#fff"},disabled:b,children:b?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.A,{className:"mr-2 h-4 w-4 animate-spin"}),"Signing in..."]}):"Sign In"})]})}),(0,n.jsx)(o.wL,{className:"flex flex-col space-y-2",children:(0,n.jsxs)("p",{className:"text-sm text-muted-foreground text-center",children:["Don't have an account?"," ",(0,n.jsx)(v(),{href:"/signup",className:"text-primary hover:underline font-medium",children:"Sign Up"})]})})]})]})}function g(){return(0,n.jsx)(a.Suspense,{fallback:(0,n.jsx)("div",{className:"flex min-h-screen items-center justify-center",children:(0,n.jsx)(m.A,{className:"h-8 w-8 animate-spin text-primary"})}),children:(0,n.jsx)(y,{})})}},64269:(e,t,r)=>{"use strict";r.d(t,{cn:()=>s});var n=r(2821),a=r(75889);function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.QP)((0,n.$)(t))}},65142:(e,t,r)=>{"use strict";r.d(t,{p:()=>i});var n=r(95155),a=r(12115),s=r(64269);let i=a.forwardRef((e,t)=>{let{className:r,type:a,...i}=e;return(0,n.jsx)("input",{type:a,className:(0,s.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground 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,...i})});i.displayName="Input"},76444:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var n=r(95155),a=r(12115),s=r(32894),i=r(83101),l=r(64269);let o=(0,i.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.b,{ref:t,className:(0,l.cn)(o(),r),...a})});d.displayName=s.b.displayName},78105:(e,t,r)=>{"use strict";r.d(t,{Jl:()=>i,Qp:()=>l,W1:()=>o,bm:()=>d,pF:()=>s});var n=r(95155);let a=e=>({viewBox:"0 0 24 24","aria-hidden":!0,focusable:!1,...e});function s(e){return(0,n.jsxs)("svg",{...a(e),children:[(0,n.jsx)("polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17"}),(0,n.jsx)("polyline",{points:"16 7 22 7 22 13"})]})}function i(e){return(0,n.jsx)("svg",{...a(e),children:(0,n.jsx)("polyline",{points:"20 6 9 17 4 12"})})}function l(e){return(0,n.jsxs)("svg",{...a(e),children:[(0,n.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),(0,n.jsx)("polyline",{points:"12 5 19 12 12 19"})]})}function o(e){return(0,n.jsxs)("svg",{...a(e),children:[(0,n.jsx)("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),(0,n.jsx)("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),(0,n.jsx)("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})}function d(e){return(0,n.jsxs)("svg",{...a(e),children:[(0,n.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,n.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}},83101:(e,t,r)=>{"use strict";r.d(t,{F:()=>i});var n=r(2821);let a=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,s=n.$,i=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return s(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],n=null==l?void 0:l[e];
1if(null===t)return null;let s=a(t)||a(n);return i[e][s]}),d=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return s(e,o,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...a}=t;return Object.entries(a).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...l,...d}[t]):({...l,...d})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},86948:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>l,wL:()=>u});var n=r(95155),a=r(12115),s=r(64269);let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("rounded-xl border bg-card text-card-foreground shadow-sm",r),...a})});i.displayName="Card";let l=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",r),...a})});l.displayName="CardHeader";let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("text-2xl font-semibold leading-none tracking-tight",r),...a})});o.displayName="CardTitle";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",r),...a})});d.displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",r),...a})});c.displayName="CardContent";let u=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",r),...a})});u.displayName="CardFooter"},92033:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14294).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},94446:(e,t,r)=>{"use strict";r.d(t,{s:()=>i,t:()=>s});var n=r(12115);function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function s(...e){return t=>{let r=!1,n=e.map(e=>{let n=a(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():a(e[t],null)}}}}function i(...e){return n.useCallback(s(...e),e)}}},e=>{e.O(0,[4909,2619,9625,8441,1255,7358],()=>e(e.s=40341)),_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.