PageSourceSearch

https://classsight.ai/assets/LumiV2Page-D0G-XSgY.js

js classsight.ai collected 2026-09-24 13:55:01 UTC 4,125 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-markdown-Daxr8BJC.js";import{r as m}from"./vendor-charts-qvx8-m0G.js";import{T as v,C as N}from"./thread-history-sidebar-D-_nFB8L.js";import{G as I}from"./index-DVHzHwfb.js";import{L as p}from"./loader-circle-5In9C9RK.js";import{S as x}from"./sparkles-ZKAwYkjM.js";import"./vendor-pdf-SjvVsPhg.js";import"./dialog-CoKHzKdp.js";import"./plus-DzS8-e80.js";import"./copy-B-nuCaxy.js";import"./collapsible-fe2pDx6G.js";import"./index-Ckl2TChX.js";import"./file-spreadsheet-BCHaQe7E.js";import"./download-TYC08iVT.js";import"./boxes-C7c1B9GU.js";import"./graduation-cap-B_TUFVjC.js";import"./circle-check-DpVZg0Xw.js";import"./trending-down-Bl73Fg8M.js";import"./school-4A8lJqaK.js";import"./dollar-sign-DpmVbGPx.js";import"./lightbulb-C6VEnOLA.js";import"./arrow-down-C6PcPuqw.js";import"./external-link-BUHz4glL.js";import"./shield-alert-DJaRZQde.js";import"./coins-CpwqQ9hp.js";import"./arrow-up-Dq7h4C1j.js";import"./square-Bou04xMO.js";import"./pencil-CrEsP4Mk.js";import"./chevron-left-Y_vLsvat.js";import"./printer-BC1BowKd.js";import"./message-square-aubCxhfP.js";import"./formatDistanceToNow-D5Ztn83p.js";import"./en-US-B1FN9Dyc.js";import"./differenceInCalendarMonths-C3l8q_Lm.js";const h="sql-agent",l=i=>`lumi-v2-thread:${i}`,u=()=>typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`t-${Date.now()}-${Math.random().toString(16).slice(2)}`,ie=()=>{const i="https://lumi-v2.classsight.ai",{user:c,userProfile:r,loading:f}=I(),t=c==null?void 0:c.id,d=r==null?void 0:r.district_id,g=r==null?void 0:r.role,j=(r==null?void 0:r.school_id)??null,[a,o]=m.useState(null);m.useEffect(()=>{if(!t){o(null);return}const s=l(t);let n=localStorage.getItem(s);n||(n=u(),localStorage.setItem(s,n)),o(n)},[t]);const b=m.useCallback(s=>{t&&(localStorage.setItem(l(t),s),o(s))},[t]),y=m.useCallback(()=>{if(!t)return;const s=u();localStorage.setItem(l(t),s),o(s)},[t]);return f||!r?e.jsx("div",{className:"flex h-[calc(100dvh-12rem)] min-h-[420px] items-center justify-center",children:e.jsxs("div",{className:"flex flex-col items-center gap-3 text-muted-foreground",children:[e.jsx(p,{className:"size-6 animate-spin"}),e.jsx("p",{className:"text-sm",children:"Loading Lumi…"})]})}):!d||!t?e.jsx("div",{className:"flex h-[calc(100dvh-12rem)] min-h-[420px] items-center justify-center px-4",children:e.jsxs("div",{className:"max-w-md rounded-2xl border bg-card p-6 text-center shadow-sm",children:[e.jsx("div",{className:"mx-auto mb-3 flex size-12 items-center justify-center rounded-full bg-amber-50 text-amber-600",children:e.jsx(x,{className:"size-5"})}),e.jsx("h2",{className:"font-poppins font-semibold text-base",children:"Lumi needs a district to scope your data"}),e.jsx("p",{className:"mt-2 text-muted-foreground text-sm",children:"Your account isn't yet linked to a district. Ask your administrator to assign you to one, then come back."})]})}):e.jsxs("div",{className:"flex h-[calc(100dvh-12rem)] min-h-[560px] flex-col bg-gradient-to-b from-background to-muted/30",children:[e.jsx("div",{className:"flex items-center justify-between border-b bg-background/70 px-6 py-3 backdrop-blur",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"relative flex size-10 items-center justify-center rounded-xl bg-gradient-to-br from-primary/20 via-primary/10 to-transparent text-primary ring-1 ring-primary/15",children:e.jsx(x,{className:"size-5"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"font-poppins font-semibold text-lg leading-tight",children:"Lumi"}),e.jsx("p",{className:"text-muted-foreground text-xs",children:"Conversational analytics for your district — ask anything."})]})]})}),e.jsxs("div",{className:"flex min-h-0 flex-1 overflow-hidden",children:[e.jsx(v,{agentBaseUrl:i,agentId:h,userId:t,activeThreadId:a,onSelect:b,onNew:y}),e.jsx("div",{className:"min-w-0 flex-1",children:a?e.jsx(N,{baseUrl:i,agentId:h,threadId:a,userId:t,districtId:d,role:g,schoolId:j},a):e.jsx("div",{className:"flex h-full items-center justify-center",children:e.jsx(p,{className:"size-5 animate-spin text-muted-foreground"})})})]})]})};export{ie as default};

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.