1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="241a15a2-1624-c7d0-989b-7417f9273237")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,804214,e=>{"use strict";let t=(0,e.i(707583).default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["Zap",0,t],804214)},184618,e=>{"use strict";let t=(0,e.i(707583).default)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]);e.s(["Brain",0,t],184618)},393018,e=>{"use strict";let t=(0,e.i(707583).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,t],393018)},58663,e=>{"use strict";let t=(0,e.i(707583).default)("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);e.s(["Target",0,t],58663)},136462,e=>{"use strict";let t=(0,e.i(707583).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,t],136462)},660050,e=>{"use strict";let t=(0,e.i(707583).default)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);e.s(["Activity",0,t],660050)},731400,e=>{"use strict";let t=(0,e.i(707583).default)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Clock",0,t],731400)},988032,e=>{"use strict";let t=(0,e.i(707583).default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);e.s(["ArrowUp",0,t],988032)},626158,546465,e=>{"use strict";var t=e.i(331841),a=e.i(241310),r=e.i(286331),s=e.i(414753),l=e.i(136462),i=e.i(707583);let n=(0,i.default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,n],546465);var o=e.i(184618),d=e.i(660050);let c=(0,i.default)("sliders-horizontal",[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]]),h=(0,i.default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var x=e.i(507344),b=e.i(207396);let m=[{id:"brain-activity",label:"Brain Activity",icon:o.Brain,href:"/home",showDot:!0},{id:"system-health",label:"System Health",icon:d.Activity,href:"/dashboard"}],p=(0,a.memo)(function(e){let{variant:i,onNewChat:o,onSearch:d,onPreferences:p,onSettings:u,className:f}=e,g=(0,s.usePathname)(),{isAuthenticated:v,isLoading:y}=(0,b.useAuth)(),j=(0,a.useId)(),[k,w]=(0,a.useState)(""),N=(0,a.useCallback)(e=>{let t=e.target.value;w(t),d?.(t)},[d]),C=(0,a.useCallback)(e=>{e.preventDefault();let t=e.currentTarget.querySelector('input[type="search"]');t&&d?.(t.value)},[d]),A="modules"===i,M="chats"===i;M&&e.chatHistory;let F=M?e.currentChatId??null:null,S=M?e.onLoadChat:void 0,q=!!M&&(e.chatsLoading??!1),P=(0,a.useMemo)(()=>M?e.chatHistory??[]:[],[M,e]),T=(0,a.useMemo)(()=>
2{if(!M||!k.trim())return P;let e=k.trim().toLowerCase();return P.filter(t=>t.title.toLowerCase().includes(e))},[M,P,k]),L=M?"Search chats...":"Search ...",z=!y&&v?m:m.filter(({href:e})=>"/home"===e);return(0,t.jsx)("div",{className:(0,x.cn)("fb-brain-sidebar flex flex-col relative w-[20%] min-h-0 border-transparent rounded-xl",f),children:(0,t.jsxs)("div",{className:(0,x.cn)("flex flex-col flex-1 min-h-0 p-4 gap-4"),children:[(0,t.jsxs)("form",{onSubmit:C,className:"shrink-0",children:[(0,t.jsx)("label",{htmlFor:j,className:"sr-only",children:"Search"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(l.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-[var(--fb-brain-text-subtle)] pointer-events-none","aria-hidden":!0}),(0,t.jsx)("input",{id:j,type:"search",placeholder:L,value:M?k:void 0,onChange:N,className:"fb-brain-input w-full pl-9 pr-3 py-3.5 rounded-lg border text-sm focus:outline-none focus:ring-2 focus:ring-[var(--fb-brain-btn)]/30 focus:border-[var(--fb-brain-btn)]/50",style:{background:"var(--fb-brain-sidebar-search-bg)",borderColor:"var(--fb-brain-sidebar-search-border)",color:"var(--fb-brain-text)"}})]})]}),(0,t.jsxs)("button",{type:"button",onClick:o,className:"w-full flex items-center justify-between gap-2 rounded-lg border py-3 px-4 mb-6 text-xs font-semibold tracking-wider transition-colors shrink-0 hover:opacity-90",style:{background:"var(--fb-brain-new-chat-bg)",borderColor:"var(--fb-brain-new-chat-border)",color:"var(--fb-brain-new-chat-text)"},children:[(0,t.jsx)("span",{children:"NEW CHAT"}),(0,t.jsx)(n,{className:"w-6 h-6 shrink-0","aria-hidden":!0})]}),A&&(0,t.jsxs)("div",{className:"flex flex-col gap-1 shrink-0",children:[(0,t.jsx)("h2",{className:"text-[12px] uppercase tracking-[0.2em] font-bold px-1 mb-3 text-[var(--fb-brain-sidebar-section-label)]",children:"SYSTEM MODULES"}),(0,t.jsx)("nav",{className:"flex flex-col gap-0.5","aria-label":"System modules",children:z.map(({id:e,label:a,icon:s,href:l,showDot:i})=>{let n="/home"===l?"/home"===g:g===l||g.startsWith(`${l}/`);return(0,t.jsxs)(r.default,{href:l,className:(0,x.cn)("w-full flex items-center gap-3 rounded-lg py-2.5 px-3 text-left text-sm transition-colors",n?"text-[var(--fb-brain-nav-active-text)] ring-1":"cursor-pointer border border-transparent text-[var(--fb-brain-sidebar-item-text)] hover:bg-[var(--fb-brain-surface-bg)] hover:border-[var(--fb-brain-surface-border)]"),style:n?{background:"var(--fb-brain-nav-active-bg)",boxShadow:"inset 0 0 0 1px var(--fb-brain-nav-active-ring)"}:void 0,"aria-current":n?"page":void 0,children:[(0,t.jsx)(s,{className:(0,x.cn)("w-4 h-4 shrink-0",n?"text-[var(--fb-brain-nav-active-text)]":"text-[var(--fb-brain-sidebar-item-text)]")}),(0,t.jsx)("span",{children:a}),i&&n&&(0,t.jsx)("span",{className:"w-2 h-2 rounded-full shrink-0 bg-[var(--fb-brain-accent)]","aria-hidden":!0})]},e)})})]}),M&&(0,t.jsxs)("div",{className:"flex flex-col gap-1 shrink-0 min-h-0 flex-1 flex",children:[(0,t.jsx)("h2",{className:"text-[12px] uppercase tracking-[0.2em] font-bold px-1 mb-3 text-[var(--fb-brain-sidebar-section-label)]",children:"All Chats"}),(0,t.jsxs)("nav",{className:"flex flex-col gap-0.5 overflow-y-auto min-h-0","aria-label":"Chat list",children:[q&&(0,t.jsx)("p",{className:"text-[var(--fb-brain-sidebar-search-text)] text-sm py-2 px-3",children:"Loading chats..."}),!q&&0===T.length&&(0,t.jsx)("p",{className:"text-[var(--fb-brain-sidebar-search-text)] text-sm py-2 px-3",children:"No chats yet"}),!q&&T.map(e=>{let a=F===e.id;return(0,t.jsx)("button",{type:"button",onClick:()=>S?.(e.id),className:(0,x.cn)("w-full rounded-lg py-2.5 px-3 text-left text-sm transition-colors border border-transparent",a?"text-[var(--fb-brain-nav-active-text)] ring-1":"text-[var(--fb-brain-sidebar-item-text)] hover:bg-[var(--fb-brain-surface-bg)] hover:border-[var(--fb-brain-surface-border)]"),style:a?{background:"var(--fb-brain-nav-active-bg)",boxShadow:"inset 0 0 0 1px var(--fb-brain-nav-active-ring)"}:void 0,"aria-current":a?"page":void 0,children:(0,t.jsx)("span",{className:"block truncate",children:e.title})},e.id)})]})]}),A&&(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsxs)("div",{className:"pt-4 border-t space-y-3 shrink-0",style:{borderColor:"var(--fb-brain-sidebar-footer-border)"},children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-2 border rounded-full w-fit",style:{borderColor:"rgba(52, 211, 153, 0.45)",background:"rgba(16, 185, 129, 0.1)"},children:[(0,t.jsx)("span",{className:"w-2 h-2 rounded-full shrink-0",style:{background:"var(--fb-brain-success)",boxShadow:"0 0 6px rgba(52, 211, 153, 0.6)"},"aria-hidden":!0}),(0,t.jsx)("span",{className:"text-[11px] uppercase tracking-wider font-medium px-2 py-1",style:{color:"var(--fb-brain-success)"}
2,children:"System Online"})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)("button",{type:"button",onClick:p,className:"group flex-1 flex items-center justify-center gap-2 rounded-lg py-2 px-3 text-sm border transition-all duration-200 hover:-translate-y-0.5 text-[var(--fb-brain-sidebar-item-text)] hover:text-[var(--fb-brain-heading)]",style:{background:"var(--fb-brain-sidebar-search-bg)",borderColor:"var(--fb-brain-sidebar-search-border)"},children:[(0,t.jsx)(c,{className:"w-4 h-4 shrink-0 transition-colors group-hover:text-[var(--fb-brain-accent)]","aria-hidden":!0}),(0,t.jsx)("span",{children:"Preferences"})]}),(0,t.jsx)("button",{type:"button",onClick:u,className:"shrink-0 p-2 rounded-lg border transition-all text-[var(--fb-brain-sidebar-item-text)] hover:text-[var(--fb-brain-heading)]",style:{background:"var(--fb-brain-sidebar-search-bg)",borderColor:"var(--fb-brain-sidebar-search-border)"},"aria-label":"Settings",children:(0,t.jsx)(h,{className:"w-4 h-4","aria-hidden":!0})})]})]})]})})});e.s(["LeftPanel",0,p],626158)},995523,e=>{"use strict";var t=e.i(331841),a=e.i(241310),r=e.i(414753),s=e.i(731400),l=e.i(707583);let i=(0,l.default)("coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);var n=e.i(58663),o=e.i(804214);let d=(0,l.default)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);var c=e.i(393018),h=e.i(988032),x=e.i(507344);let b=[{icon:s.Clock,value:"142ms",label:"Latency",dotColor:"bg-amber-500 shadow-[0_0_8px_rgba(245,158,11,0.6)]",iconColor:"text-[#05DF72]"},{icon:i,value:"2,847",label:"Tokens Used",dotColor:"bg-red-500 shadow-[0_0_8px_rgba(239,68,68,0.6)]",iconColor:"text-[#C27AFF]"},{icon:n.Target,value:"94.2%",label:"Confidence",dotColor:"bg-emerald-500 shadow-[0_0_8px_rgba(16,185,129,0.6)]",iconColor:"text-[#51A2FF]"},{icon:o.Zap,value:"AI Core",label:"Active Model",dotColor:"bg-emerald-500 shadow-[0_0_8px_rgba(16,185,129,0.6)]",iconColor:"text-[#FF8904]"}],m=[{name:"Context Analysis",status:"complete",progress:100},{name:"Model Inference",status:"processing",progress:64},{name:"Response Generation",status:"processing",progress:42},{name:"Quality Check",status:"queued",progress:15}],p=(0,a.memo)(function({status:e}){return"complete"===e?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-emerald-500/20 font-extralight border border-emerald-500/30 px-3 py-1 text-[10px] font-light tracking-wider text-emerald-400",children:[(0,t.jsx)(d,{className:"h-3.5 w-3.5"}),"Complete"]}):"processing"===e?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-purple-500/20 font-extralight border border-purple-500/30 px-3 py-1 text-[10px] font-light tracking-wider text-purple-400",children:[(0,t.jsx)(c.Loader2,{className:"h-3.5 w-3.5 animate-spin"}),"Processing"]}):(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-slate-600/30 font-extralight border border-slate-600/50 px-3 py-1 text-[10px] font-light tracking-wider text-slate-400 light:bg-slate-500/15 light:border-slate-500/35 light:text-slate-600",children:[(0,t.jsx)(s.Clock,{className:"h-3.5 w-3.5"}),"Queued"]})}),u=(0,a.memo)(function({progress:e,status:a}){return(0,t.jsx)("div",{className:"h-2 w-full rounded-full bg-white/5 light:bg-[#1a1b25]/12 overflow-hidden",children:(0,t.jsx)("div",{className:(0,x.cn)("h-full rounded-full bg-gradient-to-r transition-all duration-500","complete"===a?"from-emerald-500 to-amber-500":"processing"===a?"from-blue-500 to-violet-500":"from-slate-600 to-slate-500"),style:{width:`${e}%`}})})}),f=(0,a.memo)(function({icon:e,value:a,label:r,dotColor:s,iconColor:l}){return(0,t.jsxs)("div",{role:"listitem",className:"relative rounded-xl border border-white/5 bg-[#1E293B]/80 light:border-[var(--fb-panel-border)] light:bg-[var(--fb-panel-bg)] p-4 py-8","aria-label":`${r}: ${a}`,children:[(0,t.jsx)("div",{className:(0,x.cn)("absolute top-5 right-4 w-2 h-2 rounded-full",s),"aria-hidden":"true"}),(0,t.jsxs)("div",{className:"ml-2",children:[(0,t.jsx)("div",{className:"rounded-lg mb-4",children:(0,t.jsx)(e,{className:(0,x.cn)("h-5 w-5",l)})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-2xl font-semibold text-white light:text-[var(--fb-heading)]",children:a}),(0,t.jsx)("p",{className:"text-xs font-light mt-2 tracking-wider text-[#90A1B9] light:text-[var(--fb-text-muted)]",children:r})]})]})]})}),g=(0,a.memo)(function({name:e,status:a,progress:r}){return(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex flex-row items-center gap-2 mb-3",children:[(0,t.jsx)("span",{className:"text-base font-extralight text-white light:text-[var(--fb-text)]",children:e}),(0,t.jsx)(p,{status:a})]}),(0,t.jsx)("div",{className:"flex items-center gap-3",children:(0,t.jsxs)("span",{className:"text-xs font-mono text-slate-400 light:text-[var(--fb-text-muted)] w-8 text-right",children:[r,"%"]})})]}),(0,t.jsx)(u,{progress:r,status:a})]})}),v=m.reduce((e,t)=>
2(e[t.status]++,e),{complete:0,processing:0,queued:0}),y=(0,a.memo)(function(){let e=(0,a.useRef)(null),s=(0,r.useRouter)(),l=(0,a.useCallback)(()=>{let t=e.current?.value?.trim();if(!t)return;let a=new URLSearchParams({initialMessage:t}).toString();s.push(`/brain?${a}`)},[s]);return(0,t.jsxs)("div",{className:"mx-auto flex h-full min-h-0 w-full max-w-3xl flex-col overflow-hidden rounded-xl border border-[#767676]/38 light:border-[var(--fb-chat-shell-border)] light:bg-[var(--fb-chat-shell-bg)] font-[inter]",children:[(0,t.jsxs)("div",{className:"min-h-0 flex-1 overflow-x-hidden overflow-y-auto px-3 py-5 sm:px-4 lg:px-6",children:[(0,t.jsxs)("header",{className:"my-6",children:[(0,t.jsx)("h1",{className:"text-3xl font-bold text-white light:text-[var(--fb-heading)] tracking-tight",children:"Brain Activity"}),(0,t.jsx)("p",{className:"text-base text-[#90A1B9] light:text-[var(--fb-text-muted)] my-4",children:"Real-time orchestration of AI processes"})]}),(0,t.jsx)("div",{className:"grid sm:grid-cols-3 gap-8 mb-8",role:"list","aria-label":"Key metrics",children:b.map(e=>(0,t.jsx)(f,{...e},e.label))}),(0,t.jsxs)("div",{className:"flex min-h-0 flex-col rounded-xl border border-white/10 bg-[#181024]/95 light:border-[var(--fb-panel-border)] light:bg-[var(--fb-panel-bg)] p-6",children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-white light:text-[var(--fb-heading)] mb-6",children:"Active Processes"}),(0,t.jsxs)("div",{className:"space-y-6 ",children:[m.map(e=>(0,t.jsx)(g,{name:e.name,status:e.status,progress:e.progress},e.name)),(0,t.jsx)("div",{className:"h-px bg-white/5 light:bg-[#1a1b25]/10"})]}),(0,t.jsxs)("div",{className:"flex mx-20 pt-4 border-t border-white/5 light:border-[#1a1b25]/12 justify-between",role:"status","aria-label":`Process summary: ${v.complete} completed, ${v.processing} in progress, ${v.queued} queued`,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-2xl font-semibold text-emerald-400 text-center",children:v.complete}),(0,t.jsx)("p",{className:"tracking-wider text-[#9CA3AF] light:text-[var(--fb-text-subtle)] font-light text-xs",children:"Completed"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-2xl font-semibold text-blue-400 text-center",children:v.processing}),(0,t.jsx)("p",{className:"tracking-wider text-[#9CA3AF] light:text-[var(--fb-text-subtle)] font-light text-xs",children:"In Progress"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-2xl font-semibold text-slate-400 light:text-slate-600 text-center",children:v.queued}),(0,t.jsx)("p",{className:"tracking-wider text-[#9CA3AF] light:text-[var(--fb-text-subtle)] font-light text-xs",children:"Queued"})]})]})]})]}),(0,t.jsx)("div",{className:"shrink-0 border-t border-white/10 bg-[#0B0719]/50 light:border-[var(--fb-panel-border)] light:bg-[var(--fb-panel-bg)] px-3 py-3 backdrop-blur-sm sm:px-4 lg:px-6",children:(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),l()},className:"flex w-full min-w-0 items-end gap-1.5 rounded-2xl border border-[#1F2937] bg-[#111827] px-1.5 py-2 sm:gap-2 sm:px-2",children:[(0,t.jsx)("div",{className:"mb-1 flex shrink-0 items-center justify-center rounded-lg p-1.5 text-amber-400/90 xl:p-2","aria-hidden":"true",children:(0,t.jsx)(o.Zap,{size:18,fill:"none"})}),(0,t.jsx)("input",{ref:e,type:"text",placeholder:"Ask Anything",defaultValue:"",onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),l())},"aria-label":"Ask a question or give a command",className:"mb-1 min-h-10 min-w-0 flex-1 border-none bg-transparent py-2.5 pl-1 pr-2 text-sm text-white outline-none placeholder:text-white/45 sm:pl-2 xl:text-base"}),(0,t.jsx)("button",{type:"submit",className:"mb-1 flex shrink-0 items-center justify-center rounded-lg bg-[#9333ea] p-1.5 text-white shadow-lg shadow-[#9333ea]/30 transition-all duration-200 hover:bg-[#a855f7] hover:opacity-90 xl:p-2","aria-label":"Send message",children:(0,t.jsx)(h.ArrowUp,{size:18,strokeWidth:2})})]})})]})});var j=e.i(626158);let k=(0,l.default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594
21.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]),w={"GPT-4o":"bg-[#00D492]/10 border border-[#00D492]/20 text-[#00D492] font-light text-xs",Claude:"bg-[#FF8904]/10 border border-[#FF8904]/20 text-[#FF8904] font-light text-xs",Gemini:"bg-[#51A2FF]/10 border border-[#51A2FF]/20 text-[#51A2FF] font-light text-xs"},N=[{question:"How can I optimize the database queries",timestamp:"2 minutes ago",tokens:342,model:"GPT-4o"},{question:"Explain the difference between REST and GraphQL",timestamp:"8 minutes ago",tokens:578,model:"Claude"},{question:"Write a Python function for data validation",timestamp:"14 minutes ago",tokens:421,model:"Gemini"},{question:"What are the best practices for API security",timestamp:"23 minutes ago",tokens:689,model:"GPT-4o"},{question:"Debug the authentication middleware error",timestamp:"35 minutes ago",tokens:512,model:"Claude"}],C={today:24,thisWeek:847},A=(0,a.memo)(function({question:e,timestamp:a,tokens:r,model:l}){return(0,t.jsxs)("div",{className:"rounded-xl border border-white/5 bg-[#1E293B]/75 light:border-[var(--fb-panel-border)] light:bg-[var(--fb-panel-bg)] p-4 transition-colors hover:border-white/10 light:hover:border-[#a78bfa]/60",role:"listitem",children:[(0,t.jsx)("p",{className:"text-sm text-white light:text-[var(--fb-text)] leading-snug line-clamp-2 mb-3",children:e}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 flex-wrap",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[11px] text-slate-400 light:text-[var(--fb-text-muted)]",children:[(0,t.jsx)(s.Clock,{className:"w-3.5 h-3.5 shrink-0","aria-hidden":!0}),a]}),(0,t.jsxs)("span",{className:"text-[11px] text-slate-400 light:text-[var(--fb-text-muted)]",children:[r," tokens"]})]}),(0,t.jsx)("div",{className:"mt-2 text-right",children:(0,t.jsx)("span",{className:(0,x.cn)("inline-block rounded-md px-2 py-1 text-[10px] font-medium",w[l]),children:l})})]})}),M=(0,a.memo)(function({value:e,label:a,variant:r="purple"}){return(0,t.jsxs)("div",{className:"rounded-xl border border-white/5 bg-[#1E293B]/75 light:border-[var(--fb-panel-border)] light:bg-[var(--fb-panel-bg)] p-5",role:"status","aria-label":`${a}: ${e}`,children:[(0,t.jsx)("p",{className:(0,x.cn)("text-2xl font-bold tabular-nums","purple"===r?"text-[#A855F7]":"text-[#00D492]"),children:e}),(0,t.jsx)("p",{className:"text-xs text-white light:text-[var(--fb-text)] font-medium mt-1",children:a})]})}),F=(0,a.memo)(function({interactions:e=N,analytics:a=C}){return(0,t.jsxs)("div",{className:"flex flex-col min-h-0 h-full",children:[(0,t.jsxs)("header",{className:"shrink-0 mb-4",children:[(0,t.jsxs)("h3",{className:"text-lg font-bold text-white light:text-[var(--fb-heading)] flex items-center gap-2",children:[(0,t.jsx)(k,{size:20,className:"text-purple-400/80 shrink-0","aria-hidden":!0}),"Recent Interactions"]}),(0,t.jsx)("p",{className:"text-xs text-slate-400 light:text-[var(--fb-text-muted)] mt-1",children:"Chat history and analytics"})]}),(0,t.jsx)("div",{className:"flex-1 min-h-0 no-scrollbar overflow-y-auto",role:"region","aria-label":"Recent chat history",children:(0,t.jsx)("div",{className:"space-y-3",role:"list",children:e.map((e,a)=>(0,t.jsx)(A,{question:e.question,timestamp:e.timestamp,tokens:e.tokens,model:e.model},e.id??a))})}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3 shrink-0 pt-4 mt-4 border-t border-white/5 light:border-[#1a1b25]/12",children:[(0,t.jsx)(M,{value:a.today,label:"Today",variant:"purple"}),(0,t.jsx)(M,{value:a.thisWeek,label:"This Week",variant:"green"})]})]})}),S=(0,a.memo)(function({interactions:e,analytics:a}){return(0,t.jsx)("aside",{className:"flex min-h-0 w-[21rem] flex-col bg-slate-900/55 light:bg-transparent","aria-label":"Recent interactions",children:(0,t.jsx)("div",{className:"flex flex-col min-h-0",children:(0,t.jsx)("div",{className:"flex-1 min-h-0 rounded-2xl bg-[#0B0F1A]/50 border border-[#767676]/50 light:bg-[var(--fb-confidence-panel-bg)] light:border-[var(--fb-chat-shell-border)] p-5 shadow-inner",children:(0,t.jsx)(F,{interactions:e,anal
2ytics:a})})})})});e.s(["HomeDashboard",0,function(){let e=(0,a.useCallback)(()=>{},[]),r=(0,a.useCallback)(e=>{},[]),s=(0,a.useCallback)(()=>{},[]),l=(0,a.useCallback)(()=>{},[]);return(0,t.jsx)("main",{className:"home-dashboard mx-auto box-border flex h-full min-h-0 w-[92%] flex-1 flex-col overflow-hidden bg-[linear-gradient(90deg,#290036_0%,#070014_100%)] pb-24 font-[Inter] text-slate-300 md:pb-3",children:(0,t.jsxs)("div",{className:"relative flex min-h-0 flex-1 gap-3 overflow-hidden",children:[(0,t.jsx)("div",{className:"home-dash-left flex h-full w-[20%] shrink-0 self-stretch",children:(0,t.jsx)(j.LeftPanel,{variant:"modules",className:"h-full w-full min-h-0",onNewChat:e,onSearch:r,onPreferences:s,onSettings:l})}),(0,t.jsx)("section",{className:"home-dash-main relative flex h-full min-h-0 min-w-0 flex-1 flex-col",children:(0,t.jsx)(y,{})}),(0,t.jsx)("div",{className:"home-dash-right flex h-full shrink-0 self-stretch",children:(0,t.jsx)(S,{})})]})})}],995523)}]); 3 4//# debugId=241a15a2-1624-c7d0-989b-7417f9273237
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.