PageSourceSearch

https://mndr.ai/chat-app/_next/static/chunks/6fe4d5c5b16970be.js

js mndr.ai collected 2026-10-05 15:23:37 UTC 7,648 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,998281,e=>{"use strict";var t=e.i(951906),a=e.i(303556);function r({className:e,...r}){return(0,t.jsx)("label",{"data-slot":"label",className:(0,a.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",e),...r})}e.s(["Label",()=>r])},104508,847226,886821,667486,e=>{"use strict";var t=e.i(558842);let a=(0,t.default)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);e.s(["default",()=>a],847226),e.s(["Monitor",()=>a],104508);let r=(0,t.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);e.s(["default",()=>r],886821);let s=(0,t.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);e.s(["default",()=>s],667486)},743055,e=>{"use strict";var t=e.i(951906),a=e.i(104508),r=e.i(886821),r=r,s=e.i(667486),s=s,i=e.i(729868),n=e.i(125109),o=e.i(380433),l=e.i(303556);let d=["light","dark","system"],c={light:s.default,dark:r.default,system:a.Monitor},u={light:"Light mode",dark:"Dark mode",system:"System mode"};function m({className:e}){let{themePreference:a,isHydrated:r,setThemePreference:s}=(0,o.useTheme)(),m=r?a:"system",f=c[m],h=(0,i.useCallback)(()=>{let e=d.indexOf(m);s(d[(e+1)%d.length])},[m,s]);return(0,t.jsx)(n.Button,{type:"button",variant:"outline",size:"icon-sm",className:(0,l.cn)("rounded-full border-border bg-card/70 text-foreground shadow-sm backdrop-blur-sm hover:bg-muted/80 hover:text-foreground",e),"aria-label":u[m],title:u[m],onClick:h,children:(0,t.jsx)(f,{className:"size-4"})})}function f({className:e}){let{themePreference:a,isHydrated:r,setThemePreference:s}=(0,o.useTheme)(),i=r?a:"system";return(0,t.jsx)("div",{role:"radiogroup","aria-label":"Theme",className:(0,l.cn)("flex items-center gap-0.5 rounded-full border border-border/60 bg-muted/40 p-0.5",e),children:d.map(e=>{let a=c[e],r=i===e;return(0,t.jsx)("button",{type:"button",role:"radio","aria-checked":r,"aria-label":u[e],title:u[e],onClick:()=>s(e),className:(0,l.cn)("flex size-6 items-center justify-center rounded-full transition-colors",r?"bg-background text-foreground shadow-sm ring-1 ring-border":"text-muted-foreground hover:text-foreground"),children:(0,t.jsx)(a,{className:"size-3.5"})},e)})})}e.s(["ThemeSegmentedControl",()=>f,"ThemeToggle",()=>m,"default",0,m],743055)},648701,e=>{"use strict";function t(e){return!e||!e.startsWith("/")||e.startsWith("//")||e.includes("://")?null:e}function a(e,t){let a=t.toString();return a?`${e}?${a}`:e}e.s(["buildFullPath",()=>a,"getSafeRedirect",()=>t])},335816,e=>{"use strict";var t=e.i(951906),a=e.i(105639),r=e.i(729868),s=e.i(994558),i=e.i(648701);function n({children:e}){let{user:n,isLoading:o}=(0,s.useAuth)(),l=(0,a.useRouter)(),d=(0,a.useSearchParams)(),c=(0,i.getSafeRedirect)(d.get("redirect"));return((0,r.useEffect)(()=>{!o&&n&&l.replace(c??"/app")},[o,n,l,c]),o||n)?null:(0,t.jsx)(t.Fragment,{children:e})}e.s(["PublicAuthGuard",()=>n,"default",0,n])},21799,e=>{"use strict";var t=e.i(951906),a=e.i(68084),r=e.i(105639),s=e.i(729868),i=e.i(353005),n=e.i(125109),o=e.i(908694),l=e.i(998281),d=e.i(994558),c=e.i(717942),u=e.i(648701);function m(){let{login:e}=(0,d.useAuth)(),m=(0,r.useRouter)(),f=(0,r.useSearchParams)(),h=(0,u.getSafeRedirect)(f.get("redirect")),[g,x]=(0,s.use
1State)(""),[p,y]=(0,s.useState)(""),[b,v]=(0,s.useState)(""),[j,k]=(0,s.useState)(!1),[N,w]=(0,s.useState)(!1),S=async t=>{t.preventDefault(),v(""),k(!0);try{await e({email:g,password:p}),m.push(h??"/app")}catch(e){v(e instanceof Error?e.message:"Unable to login")}finally{k(!1)}},C=async()=>{v(""),w(!0);try{let e=await (0,c.apiFetch)("/api/auth/google/start?mode=login",{method:"GET"}),t=await e.json().catch(()=>null),a="string"==typeof t?.redirectUrl?t.redirectUrl:null;if(!e.ok||!a){let e=t&&"string"==typeof t.error?t.error:"Failed to initialize Google sign-in.";throw Error(e)}window.location.assign(a)}catch(e){v(e instanceof Error?e.message:"Unable to continue with Google"),w(!1)}};return(0,t.jsxs)("form",{onSubmit:S,className:"space-y-5 p-6",children:[(0,t.jsxs)("div",{className:"space-y-1.5 text-center",children:[(0,t.jsx)("h1",{className:"font-[family-name:var(--font-heading)] text-xl font-bold tracking-tight text-foreground",children:"Welcome back"}),(0,t.jsx)("p",{className:"font-[family-name:var(--font-body)] text-xs text-muted-foreground",children:"Sign in to continue to your workspace."})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(l.Label,{htmlFor:"login-email",className:"font-[family-name:var(--font-heading)] text-xs font-medium",children:"Email"}),(0,t.jsx)(o.Input,{id:"login-email",type:"email",value:g,onChange:e=>x(e.target.value),autoComplete:"email",placeholder:"[email protected]",required:!0,className:"h-10 rounded-lg text-sm"})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)(l.Label,{htmlFor:"login-password",className:"font-[family-name:var(--font-heading)] text-xs font-medium",children:"Password"}),(0,t.jsx)(a.default,{href:"/forgot-password",className:"font-[family-name:var(--font-body)] text-xs text-muted-foreground transition-colors hover:text-primary",children:"Forgot password?"})]}),(0,t.jsx)(o.Input,{id:"login-password",type:"password",value:p,onChange:e=>y(e.target.value),autoComplete:"current-password",placeholder:"••••••••",required:!0,className:"h-10 rounded-lg text-sm"})]}),b?(0,t.jsx)("p",{className:"font-[family-name:var(--font-body)] text-xs text-destructive",children:b}):null,(0,t.jsx)(n.Button,{type:"submit",className:"w-full rounded-lg bg-primary font-[family-name:var(--font-heading)] text-sm font-semibold text-primary-foreground transition-colors hover:bg-[#c4694e]",disabled:j||N,children:j?"Signing in...":"Sign in"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,t.jsx)("span",{className:"w-full border-t border-border/70"})}),(0,t.jsx)("span",{className:"relative flex justify-center text-[11px] uppercase tracking-wide text-muted-foreground",children:(0,t.jsx)("span",{className:"bg-background px-2",children:"Or"})})]}),(0,t.jsxs)(n.Button,{type:"button",variant:"outline",className:"w-full rounded-lg font-[family-name:var(--font-heading)] text-sm font-semibold",disabled:j||N,onClick:()=>void C(),children:[N?(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"}):null,N?"Redirecting to Google...":"Continue with Google"]}),(0,t.jsxs)("p",{className:"text-center font-[family-name:var(--font-body)] text-xs text-muted-foreground",children:["Don't have an account?"," ",(0,t.jsx)(a.default,{href:h?`/register?redirect=${encodeURIComponent(h)}`:"/register",className:"font-[family-name:var(--font-heading)] font-semibold text-primary transition-colors hover:text-[#c4694e]",children:"Register"})]})]})}e.s(["LoginForm",()=>m,"default",0,m])}]);

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.