1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1060],{71060:function(e,t,a){a.r(t),a.d(t,{AskAIProvider:function(){return P},useAskAI:function(){return M}});var n=a(57437),r=a(2265),s=a(49108),i=a(31469),o=a(50489),l=a(79744),c=a(52235),d=a(18727),u=a(48006),p=a(33388),m=a(18025),h=a(63236),f=a(73391),g=a(28745),x=a(5571);let b="Hello! I am StellarMind's AI Assistant. How can I help you today? You can ask me about this page, our flagship platforms (SCIO & Sarvam AI, Real Estate OS, Fire OS), enterprise case studies, or leadership.",w=[{label:"Sarvam & SCIO",query:"Tell me about SCIO being accepted into the Sarvam AI Startup Program"},{label:"Current Page",query:"Tell me about this page and what I can do here"},{label:"SCIO Platform",query:"Tell me about the SCIO Platform AI operations engine"},{label:"Real Estate OS",query:"What is the AI-Powered Real Estate OS?"},{label:"Fire OS",query:"Explain the Offline Fire OS inspection platform"},{label:"LEAP 2026",query:"What did StellarMind AI showcase at LEAP 2026 in Riyadh?"},{label:"AIVA Smart Home",query:"Tell me about AIVA Edge Computing Smart Home Assistant"},{label:"Company Leadership",query:"Who are the founders and leadership team of StellarMind?"}],v=[{keywords:["sarvam","sarvam ai","sarvam startup","startup program","scio sarvam","accelerator"],response:"StellarMind's flagship product **SCIO** has been officially accepted into the prestigious **Sarvam AI Startup Program**! This partnership combines SCIO's computer vision inspection workflows and supply chain operating system with Sarvam AI's sovereign foundation models, accelerating multimodal edge intelligence and shop-floor automation.\n\n[Read Official Sarvam Announcement](https://stellarmind.ai/news/scio-officially-accepted-into-sarvam-ai-startup-program)"},{keywords:["leap","leap 2026","riyadh","saudi","ronak barot","ronak"],response:"StellarMind AI participated in **LEAP 2026 in Riyadh** (Saudi Arabia), where Founder & CEO **Ronak Barot** and our team connected with enterprise leaders, demonstrating solutions in Enterprise AI, AI Agents, Computer Vision, and IoT.\n\n[Read LEAP 2026 Recap](https://stellarmind.ai/news/stellarmind-ai-at-leap-2026-riyadh-event-recap)"},{keywords:["news","latest news","announcements","milestones","press"],response:"StellarMind's latest news highlights include the official acceptance of **SCIO into the Sarvam AI Startup Program** and our showcase at **LEAP 2026 in Riyadh**.\n\n[Explore News & Events](https://stellarmind.ai/news)"},{keywords:["scio","sico","scio platform","operations engine","supply chain loop"],response:"The **SCIO Platform** (Smart Intelligence & Operations Engine) is StellarMind's flagship AI operations platform. It combines vision AI, automated inspection workflows, supply chain operating loops, and real-time operational dashboards for enterprise manufacturing and field operations. Notably, SCIO is officially part of the **Sarvam AI Startup Program**.\n\n[Explore SCIO Platform](https://stellarmind.ai/products/scio-platform)"},{keywords:["real estate","real estate os","proptech","property sales"],response:"**StellarMind Real Estate OS** is the AI operating system for real estate. It has six products on one shared core: **MarketOS** (AI marketing), **SalesOS** (AI CRM, WhatsApp & voice), **ProjectOS** (projects & operations), **ProcureOS** (AI procurement), **DesignOS** (drawings & 3D) and **FinanceOS** (financial intelligence, on the roadmap). It works with your existing CRM and ERP.\n\n[Explore Real Estate OS](https://stellarmind.ai/products/real-estate-os)"},{keywords:["fire os","fire inspection","offline fire","fire safety"],response:"**Fire OS** is an offline AI-powered operations & fire inspection platform built for safety field teams. It works 100% offline without internet connection, allowing inspectors to capture photo/voice evidence, detect safety risks with AI, track compliance, and auto-generate compliance reports.\n\n[Explore Fire OS](https://stellarmind.ai/products/fire-os)"},{keywords:["aiva","smart home","edge ai assistant","home assistant"],response:"**AIVA** is an All-in-One Smart Home AI Assistant powered by Edge Computing. Running 100% on-device with zero cloud dependency, AIVA features facial + voice recognition, edge-based habit learning, custom IoT hardware, and seamless Home Assistant integration (Nest, Hue, Ring & more).\n\n[Watch AIVA Demo](https://youtu.be/peSuFhkZngE)"}
1,{keywords:["autocad","drawing qa","structural engineering","cad compliance"],response:"Our **AI-Powered Structural Engineering Drawing QA Checker** automatically analyzes AutoCAD drawings against engineering code rules and standards. It detects non-compliance errors, shows required corrections, and generates detailed QA reports with clause references.\n\n[Watch AutoCAD QA Demo](https://youtu.be/2z6kH12L7ZA)"},{keywords:["view glass","dynamic glass","smart glass","view app"],response:"**View Dynamic Glass** is a smart building IoT innovation that automatically adjusts glass tint to reduce sun glare, lower energy costs, and enhance occupant wellness. Users control scenes and schedules via the View Mobile App.\n\n[Watch View Glass Demo](https://youtu.be/d4SN8KmFbLU)"},{keywords:["voice receptionist","salon booking","vapi"],response:"Our **AI Voice Receptionist Platform** handles inbound phone calls 24/7, checks real-time staff availability, books appointments without double-booking, and seamlessly transfers complex inquiries to human team members.\n\n[Explore Case Study](https://stellarmind.ai/case-studies/ai-voice-receptionist-salon-booking)"},{keywords:["ar storytelling","kids learning","ar app","phonetics"],response:"Our **Immersive Storytelling AR App** helps kids learn languages naturally through AI-powered interactions, phonetics-based gameplay, interactive 3D stories, and augmented reality engagement.\n\n[Watch AR App Demo](https://youtu.be/LMAoHTMc_6g)"},{keywords:["esports","gameplay analysis","gaming ai"],response:"Our **AI-Powered Gameplay Analysis Platform** analyzes live and recorded gaming matches to provide pro-tier insights, player action profiling, tactical recommendations, and automated highlight compilation for eSports teams.\n\n[Explore Case Study](https://stellarmind.ai/case-studies/ai-gameplay-analysis-for-esports)"},{keywords:["crypto","autonomous trading","trading bot","exchange bot"],response:"StellarMind's **AI Autonomous Trading Platform** connects to major cryptocurrency exchanges to execute high-frequency predictive trading strategies, dynamic risk mitigation, and algorithmic portfolio balancing.\n\n[Explore Case Study](https://stellarmind.ai/case-studies/ai-autonomous-trading-crypto-exchanges)"},{keywords:["knowledge graph","enterprise intelligence","graph ai"],response:"Our **AI Knowledge Graph Platform** unifies unstructured enterprise data, documents, and databases into a semantic graph network enabling natural-language querying and relationship discovery.\n\n[Explore Case Study](https://stellarmind.ai/case-studies/ai-knowledge-graph-platform)"},{keywords:["soc2","soc 2","compliance automation"],response:"Our **SOC 2 Report Automation Platform** uses generative AI to continuously collect audit evidence, evaluate security controls against trust principles, and auto-draft audit readiness documentation.\n\n[Explore Case Study](https://stellarmind.ai/case-studies/soc2-report-automation-with-ai)"},{keywords:["woocommerce","ecommerce ai","wordpress support"],response:"Our **AI WooCommerce Customer Support Engine** automates customer service tickets, processes order status checks, generates invoices, and provides intelligent product recommendations directly inside WordPress.\n\n[Explore Case Study](https://stellarmind.ai/case-studies/ai-woocommerce-customer-support-automation)"}],y=e=>{let t;if(!e)return"";let a=e.replace(/\*/g,""),r=/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g,s=[],i=0;for(;null!==(t=r.exec(a));){let e=t.index;e>i&&s.push(a.substring(i,e)),s.push((0,n.jsxs)("a",{href:t[2],target:"_blank",rel:"noopener noreferrer",className:"my-2 inline-flex items-center space-x-1.5 rounded-xl border border-green-500/30 bg-gradient-to-r from-blue-500/10 to-green-500/10 px-3.5 py-2 text-[11px] font-semibold text-green-400 shadow-[0_2px_8px_rgba(0,0,0,0.2)] transition-all duration-300 hover:border-green-400 hover:from-blue-500/20 hover:to-green-500/20 hover:text-green-300 group/btn",children:[(0,n.jsx)("span",{children:t[1]}),(0,n.jsx)(m.Z,{size:11,className:"transform transition-transform group-hover/btn:translate-x-0.5"})]},e)),i=r.lastIndex}return i<a.length&&s.push(a.substring(i)),s.length>0?s:a},S="stellarmind_ask_ai_recent_v1";function k(e){try{window.localStorage.setItem(S,JSON.stringify(e))}catch(e){}}let A=e=>{let t=e.find(e=>"user"===e.role);return t?t.content.slice(0,80):"New conversation"},I=()=>"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():"thread_".concat(Date.now(),"_").concat(Math.random().toString(36).slice(2));var C=a(23831);let j=[.22,1,.36,1],N=[.65,0,.35,1];function E(e){let{className:t="h-8 w-8"}=e;return(0,n.jsxs)("span",{className:"relative mt-0.5 flex ".concat(t," flex-shrink-0 items-center justify-center rounded-full bg-white shadow-sm"),children:[(0,n.jsxs)("svg",{className:"w-[66%] h-[66%] text-black",viewBox:"0 0 48 48",fill:"none",children:[(0,n.jsx)("rect",{x:"15.5",y:"14",width:"5",height:"11",rx:"2.5",fill:"#000000"}),(0,n.jsx)("rect",{x:"27.5",y:"14",width:"5",height:"11",rx:"2.5",fill:"#000000"}),(0,n.jsx)("path",{d:"M17.5 30.5C19.5 33.5 22.2 34.5 24 34.5C25.8 34.5 28.5 33.5 30.5 30.5",stroke:"#000000",strokeWidth:"3.2",strokeLinecap:"round"})]}),(0,n.jsx)("span",{className:"absolute -top-0.5 -right-0.5 flex h-2.5 w-2.5 items-center justify-center",children:(0,n.jsx)("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-emerald-500 border border-white"})})]})}function O(e){let{open:t,onClose:a,origin:O,initialQuery:R,onConsumeInitialQuery:P}=e,M=(0,f.J)(),D=O||{x:92,y:5},{messages:T,isLoading:F,sendMessage:q,clearChat:L,loadConversation:W,hasConversation:
1H}=function(){let[e,t]=(0,r.useState)([{role:"assistant",content:b}]),[a,n]=(0,r.useState)(!1),s=(0,r.useRef)(0),i=(0,r.useCallback)(async r=>{let i=(r||"").trim();if(!i||a)return;let o=e.map(e=>({role:"user"===e.role?"user":"assistant",content:e.content})),l=s.current;t(e=>[...e,{role:"user",content:i}]),n(!0);let c=function(e){let t=e.toLowerCase();if(["this page","current page","where am i","what page","summarize this page","tell me about this page","what is on this page","explain this page"].some(e=>t.includes(e))){var a;return(a=window.location.pathname)&&"/"!==a?a.includes("scio-platform")||a.includes("sico")?"You are on the **SCIO Platform** page. SCIO is StellarMind's unified supply chain & computer vision inspection operating system. Notably, SCIO was officially accepted into the **Sarvam AI Startup Program** to integrate sovereign foundational models and localized edge vision for enterprise operations.\n\n[Read Sarvam Announcement](https://stellarmind.ai/news/scio-officially-accepted-into-sarvam-ai-startup-program)":"/news"===a?"You are on the **News & Events** page. Here you will find our latest company announcements, including SCIO's acceptance into the **Sarvam AI Startup Program** and StellarMind's showcase at **LEAP 2026 in Riyadh**.\n\n[Explore News Articles](https://stellarmind.ai/news)":a.includes("sarvam-ai-startup-program")||a.includes("sarvam")?"You are reading: **StellarMind's SCIO Platform Officially Accepted into Sarvam AI Startup Program**. This milestone accelerates real-time edge vision inspections, localized factory-floor agent interfaces, and automated supply chain operations in collaboration with Sarvam AI.\n\n[Explore SCIO Platform](https://stellarmind.ai/products/scio-platform)":a.includes("leap-2026")||a.includes("riyadh")?"You are reading about **LEAP 2026 in Riyadh**, where StellarMind AI Founder & CEO Ronak Barot and team connected with global leaders to showcase Enterprise AI, Autonomous AI Agents, Computer Vision, and IoT.\n\n[Back to News](https://stellarmind.ai/news)":a.includes("fire-os")?"You are viewing **Fire OS**, an offline AI-powered safety operations & inspection platform that works 100% without internet for field hazard detection, photo evidence, and automated compliance reports.\n\n[Explore Fire OS](https://stellarmind.ai/products/fire-os)":a.includes("real-estate-os")?"You are viewing **Real Estate OS**, an end-to-e
1nd AI operating system covering property discovery, automated lead qualification, AI calling agents, and smart sales CRM.\n\n[Explore Real Estate OS](https://stellarmind.ai/products/real-estate-os)":a.startsWith("/services")?"You are exploring our **Enterprise Services**, including Custom Software & AI Development, Computer Vision, Autonomous AI Agents, LLM Deployment, IoT Systems, and DevOps Consulting.\n\n[Explore Services](https://stellarmind.ai/services)":a.startsWith("/case-studies")?"You are exploring our **Case Studies**, featuring real-world deployments in Structural AutoCAD QA, AI Voice Receptionist, Smart Building IoT, SOC 2 compliance, and eSports analytics.\n\n[Browse Case Studies](https://stellarmind.ai/case-studies)":a.startsWith("/about")?"You are on the **About Us** page. Learn about StellarMind AI's founding vision, engineering leadership, values, and our mission to build transformative enterprise AI.\n\n[Read About Us](https://stellarmind.ai/about)":a.startsWith("/contact")?"You are on the **Contact Us** page. You can send a direct message, schedule an enterprise consultation, or request a demo with our AI engineering team.\n\n[Contact Us](https://stellarmind.ai/contact)":a.startsWith("/career")||a.startsWith("/internship")?"You are exploring **Careers & Internships** at StellarMind AI. Check out our open engineering roles in AI/ML, Full Stack, Backend, Frontend, and DevOps.\n\n[View Careers](https://stellarmind.ai/career)":"You are exploring StellarMind AI. I can answer any questions about our products (SCIO, Fire OS, Real Estate OS), services, case studies, or leadership!":"You are on the **StellarMind AI Homepage**. Here you can explore our enterprise intelligence stack, flagship operating platforms (SCIO Platform, Fire OS, Real Estate OS), client case studies, and latest company news.\n\n[Explore SCIO Platform](https://stellarmind.ai/products/scio-platform)"}for(let e of v)if(e.keywords.some(e=>t.includes(e)))return e.response;return null}(i);if(c){setTimeout(()=>{l===s.current&&(t(e=>[...e,{role:"assistant",content:c}]),n(!1))},400);return}try{let e=window.location.pathname,a=await fetch("".concat("https://api.stellarmind.ai/","api/chatbot/chat"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:i,history:o,currentPage:e})});if(!a.ok)throw Error("Chat request failed");let n=await a.json();if(l!==s.current)return;if(n.success)t(e=>[...e,{role:"assistant",content:n.response}]);else throw Error(n.message||"Error generating response")}catch(e){if(l!==s.current)return;t(e=>[...e,{role:"assistant",content:"Sorry, I am having trouble connecting right now. Please try again in a moment, or reach us through the contact page."}])}finally{l===s.current&&n(!1)}},[e,a]);return{messages:e,isLoading:a,sendMessage:i,clearChat:(0,r.useCallback)(()=>{s.current+=1,t([{role:"assistant",content:"Chat cleared! How else can I assist you with StellarMind's solutions, products, or case studies today?"}]),n(!1)},[]),loadConversation:(0,r.useCallback)(e=>{s.current+=1,t(e&&e.length?e:[{role:"assistant",content:b}]),n(!1)},[]),hasConversation:e.some(e=>"user"===e.role)}}(),{threads:Y,saveThread:V,removeThread:_}=function(){let[e,t]=(0,r.useState)([]);return(0,r.useEffect)(()=>{t(function(){try{let e=window.localStorage.getItem(S),t=e?JSON.parse(e):[];return Array.isArray(t)?t:[]}catch(e){return[]}}())},[]),{threads:e,saveThread:(0,r.useCallback)((e,a)=>{e&&a.some(e=>"user"===e.role)&&t(t=>{let n=[{id:e,title:A(a),messages:a,updatedAt:Date.now()},...t.filter(t=>t.id!==e)].slice(0,8);return k(n),n})},[]),removeThread:(0,r.useCallback)(e=>{t(t=>{let a=t.filter(t=>t.id!==e);return k(a),a})},[])}}(),[z,U]=(0,r.useState)(""),[Z,B]=(0,r.useState)(!1),[Q,G]=(0,r.useState)(""),J=(0,r.useRef)(null),K=(0,r.useRef)(null),X=(0,r.useRef)(null),$=(0,r.useRef)(""),{isSupported:ee,isListening:et,permission:ea,start:en,stop:er}=(0,C.I)({onResult:e=>{G(""),U($.current?"".concat($.current," ").concat(e):e)},onError:e=>{"denied"===e?G("Microphone access is required to use voice input. Please enable microphone permission in your browser settings."):"no-device"===e?G("No microphone was found. Please connect one and try again."):G("Couldn't hear that -- try again, or just type your question.")}});(0,r.useEffect)(()=>
1{if(!t)return;let e=document.body.style.overflow;document.body.style.overflow="hidden";let n=e=>{"Escape"===e.key&&a()};window.addEventListener("keydown",n);let r=setTimeout(()=>{var e;return null===(e=K.current)||void 0===e?void 0:e.focus()},M?0:420);return()=>{document.body.style.overflow=e,window.removeEventListener("keydown",n),clearTimeout(r)}},[t,a,M]),(0,r.useEffect)(()=>{J.current&&J.current.scrollTo({top:J.current.scrollHeight,behavior:M?"auto":"smooth"})},[T,F,M]),(0,r.useEffect)(()=>{t||(er(),G(""))},[t,er]),(0,r.useEffect)(()=>{t&&R&&(q(R),null==P||P())},[t,R,q,P]),(0,r.useEffect)(()=>{T.some(e=>"user"===e.role)&&(X.current||(X.current=I()),V(X.current,T))},[T,V]);let es=e=>{var t;W(e.messages),X.current=e.id,B(!1),null===(t=K.current)||void 0===t||t.focus()};return(0,n.jsx)(g.M,{children:t&&(0,n.jsxs)(x.E.div,{role:"dialog","aria-modal":"true","aria-label":"Ask StellarMind AI",className:"fixed inset-0 z-[60] overflow-hidden",children:[(0,n.jsx)(x.E.div,{"aria-hidden":"true",initial:!M&&{scale:0},animate:{scale:1},exit:M?void 0:{scale:0},transition:{duration:.6,ease:N},className:"absolute rounded-full bg-ink-950",style:{width:"300vmax",height:"300vmax",left:"".concat(D.x,"%"),top:"".concat(D.y,"%"),marginLeft:"-150vmax",marginTop:"-150vmax",willChange:"transform"}}),(0,n.jsxs)(x.E.div,{variants:{hidden:{opacity:0,y:16},visible:{opacity:1,y:0,transition:{duration:.35,ease:j,delay:M?0:.32}},exit:{opacity:0,y:10,transition:{duration:.2,ease:j}}},initial:!M&&"hidden",animate:"visible",exit:M?void 0:"exit",className:"relative z-10 flex h-full w-full",children:[(0,n.jsxs)("aside",{className:"fixed inset-y-0 left-0 z-10 flex w-72 flex-shrink-0 flex-col border-r border-ink-600 bg-ink-900 p-5 transition-transform duration-300 ease-standard md:static md:translate-x-0 ".concat(Z?"translate-x-0":"-translate-x-full"),children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("h2",{className:"text-sm font-semibold uppercase tracking-wide text-fg-faint",children:"Chat"}),(0,n.jsx)("button",{type:"button",onClick:()=>B(!1),"aria-label":"Close chat history",className:"flex h-8 w-8 items-center justify-center rounded-lg text-fg-subtle transition-colors duration-150 hover:bg-ink-800 hover:text-fg md:hidden",children:(0,n.jsx)(s.Z,{className:"h-4 w-4"})})]}),(0,n.jsxs)("button",{type:"button",onClick:()=>{var e;et&&er(),G(""),L(),X.current=null,U(""),B(!1),null===(e=K.current)||void 0===e||e.focus()},className:"mt-5 inline-flex items-center justify-center gap-2 rounded-xl bg-brand-blue px-4 py-2.5 text-sm font-semibold text-white transition-colors duration-200 ease-standard hover:bg-brand-blue-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand-blue",children:[(0,n.jsx)(i.Z,{className:"h-4 w-4","aria-hidden":"true"}),"New Chat"]}),(0,n.jsxs)("div",{className:"mt-7 min-h-0 flex-1 overflow-y-auto",children:[(0,n.jsx)("p",{className:"px-1 text-xs font-medium uppercase tracking-[0.14em] text-fg-faint",children:"Recent"}),0===Y.length?(0,n.jsx)("p",{className:"mt-3 px-1 text-sm leading-relaxed text-fg-subtle",children:"Your conversations will show up here so you can pick up where you left off. Saved only on this device."}):(0,n.jsx)("ul",{className:"mt-2 space-y-1",children:Y.map(e=>(0,n.jsxs)("li",{className:"group/recent relative",children:[(0,n.jsx)("button",{type:"button",onClick:()=>es(e),className:"w-full truncate rounded-lg py-2 pl-2.5 pr-8 text-left text-sm transition-colors duration-150 hover:bg-ink-800 hover:text-fg ".concat(X.current===e.id?"bg-ink-800 text-fg":"text-fg-subtle"),title:e.title,children:e.title}),(0,n.jsx)("button",{type:"button",onClick:()=>_(e.id),"aria-label":"Remove from recent",className:"absolute right-1 top-1/2 flex h-6 w-6 -translate-y-1/2 items-center justify-center rounded-md text-fg-faint opacity-0 transition-opacity duration-150 hover:bg-ink-700 hover:text-fg group-hover/recent:opacity-100",children:(0,n.jsx)(o.Z,{className:"h-3.5 w-3.5"})})]},e.id))})]})]}),Z&&(0,n.jsx)("div",{"aria-hidden":"true",onClick:()=>B(!1),className:"fixed inset-0 z-[5] bg-black/60 md:hidden"}),(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,n.jsxs)("header",{className:"flex items-center justify-between border-b border-ink-600 px-5 py-4 sm:px-8",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("button",{type:"button",onClick:()=>B(!0),"aria-label":"Open chat history",className:"flex h-9 w-9 items-center justify-center rounded-lg text-fg-subtle transition-colors duration-150 hover:bg-ink-800 hover:text-fg md:hidden",children:(0,n.jsx)(l.Z,{className:"h-4 w-4"})}),(0,n.jsx)(E,{className:"h-8 w-8"}),(0,n.jsx)("span",{className:"text-base font-semibold text-fg",children:"Ask AI"})]}),(0,n.jsxs)("button",{type:"button",onClick:a,className:"inline-flex items-center gap-2 rounded-full border border-white/[0.08] bg-white/[0.03] px-4 py-2 text-sm font-medium text-fg-muted transition-all duration-200 ease-standard hover:border-white/20 hover:bg-white/[0.08] hover:text-fg focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand-blue",children:["Close",(0,n.jsx)(c.Z,{className:"h-3.5 w-3.5","aria-hidden":"true"})]})]}),(0,n.jsx)("div",{ref:J,className:"min-h-0 flex-1 overflow-y-auto px-5 py-8 sm:px-8",children:(0,n.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col gap-5",children:[T.map((e,t)=>(0,n.jsx)("div",{className:"flex ".concat("user"===e.role?"justify-end":"justify-start"),children:(0,n.jsxs)("div",{className:"flex max-w-[85%] items-start gap-3",children:["user"!==e.role&&(0,n.jsx)(E,{}),(0,n.jsx)("div",{className:"rounded-2xl p-4 text-sm leading-relaxed ".concat("user"===e.role?"rounded-tr-none border border-white/10 bg-gradient-to-br from-blue-600 via-indigo-600 to-indigo-700 text-white":"rounded-tl-none border border-white/[0.08] border-l-2 border-l-green-500 bg-white/[0.03] text-fg-muted"),children:(0,n.jsx)("div",{className:"whitespace-pre-line",children:y(e.content)})})]})},t)),F&&(0,n.jsx)("div",{className:"flex justify-start",children:(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)(E,{}),(0,n.jsx)("div",{className:"flex items-center rounded-2xl rounded-tl-none border border-white/[0.08] border-l-2 border-l-blue-500 bg-white/[0.03] p-4",children:(0,n.jsxs)("span",{className:"flex space-x-1 py-1",children:[(0,n.jsx)("span",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-blue-400",style:{animationDelay:"0ms"}}),(0,n.jsx)("span",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-indigo-400",style:{animationDelay:"150ms"}}),(0,n.jsx)("span",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-green-400",style:{animationDelay:"300ms"}})]})})]})}),!H&&(0,n.jsx)("div",{className:"mt-2 flex flex-wrap gap-2.5",children:w.map(e=>(0,n.jsx)("button",{type:"button",onClick:()=>q(e.query),className:"inline-flex h-9 items-center rounded-full border border-white/[0.08] bg-white/[0.03] px-3.5 text-sm font-medium text-fg-muted transition-all duration-200 ease-standard hover:-translate-y-[2px] hover:border-white/20 hover:bg-white/[0.08] hover:text-fg",children:e.label},e.label))})]})}),(0,n.jsx)("div",{className:"border-t border-ink-600 bg-ink-900/60 px-5 py-5 sm:px-8",children:(0,n.jsxs)("form",{onSubmit:e=>{e.preventDefault(),et&&er();let t=z.trim();t&&(U(""),q(t))},className:"mx-auto max-w-3xl",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3 rounded-2xl border bg-white/[0.03] px-5 py-3.5 transition-all duration-200 ease-standard focus-within:border-white/[0.16] ".concat(et?"border-rose-500/40":"border-white/[0.08]"),children:[(0,n.jsx)(d.Z,{className:"h-4 w-4 flex-shrink-0 text-blue-400","aria-hidden":"true"}),(0,n.jsx)("input",{ref:K,value:z,onChange:e=>U(e.target.value),placeholder:et?"Listening...":"Ask me anything",className:"min-w-0 flex-1 bg-transparent text-[15px] text-fg placeholder:text-fg-faint focus:outline-none"}),(0,n.jsxs)("button",{type:"button",onClick:()=>
1{if(!ee){var e;null===(e=K.current)||void 0===e||e.focus();return}if(G(""),et){er();return}$.current=z.trim(),en()},"aria-pressed":et,"aria-label":ee?"denied"===ea?"Microphone access blocked -- click for instructions":et?"Stop voice input":"Ask by voice":"Voice input isn't supported in this browser",className:"relative flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-full text-white transition-transform duration-200 ease-standard hover:scale-105 ".concat(ee?"":"opacity-50"),style:{backgroundImage:et?"linear-gradient(135deg,#FB7185 0%,#E11D48 100%)":"linear-gradient(135deg,#2F7DFF 0%,#2563EB 100%)"},children:[et&&(0,n.jsx)("span",{"aria-hidden":"true",className:"absolute inset-0 rounded-full bg-rose-500/50 animate-ping"}),et?(0,n.jsx)(u.Z,{className:"relative h-4 w-4",strokeWidth:2}):(0,n.jsx)(p.Z,{className:"relative h-4 w-4",strokeWidth:2})]}),(0,n.jsx)("button",{type:"submit",disabled:F||!z.trim(),"aria-label":"Send",className:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-full bg-ink-700 text-fg-muted transition-colors duration-200 ease-standard hover:bg-ink-600 hover:text-fg disabled:cursor-not-allowed disabled:opacity-40",children:(0,n.jsx)(m.Z,{className:"h-4 w-4",strokeWidth:2.25})})]}),(0,n.jsxs)("div",{className:"mt-3 flex items-center justify-between gap-3 px-1",children:[(0,n.jsx)("p",{className:"text-xs italic ".concat(Q?"text-rose-400":"text-fg-faint"),children:Q||"Content is generated
1with AI assistance"}),(0,n.jsx)(h.Z,{className:"h-4 w-4 flex-shrink-0 text-brand-green","aria-hidden":"true"})]})]})})]})]})]})})}let R=(0,r.createContext)(null);function P(e){let{children:t}=e,[a,s]=(0,r.useState)(!1),[i,o]=(0,r.useState)({x:92,y:5}),[l,c]=(0,r.useState)(null),d=(0,r.useCallback)(function(){var e;let{ref:t,query:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=null==t?void 0:null===(e=t.current)||void 0===e?void 0:e.getBoundingClientRect();n&&window.innerWidth>0&&window.innerHeight>0&&o({x:(n.left+n.width/2)/window.innerWidth*100,y:(n.top+n.height/2)/window.innerHeight*100}),c(a||null),s(!0)},[]),u=(0,r.useCallback)(()=>s(!1),[]),p=(0,r.useCallback)(()=>c(null),[]);return(0,n.jsxs)(R.Provider,{value:{openAskAI:d},children:[t,(0,n.jsx)(O,{open:a,onClose:u,origin:i,initialQuery:l,onConsumeInitialQuery:p})]})}function M(){let e=(0,r.useContext)(R);if(!e)throw Error("useAskAI must be used within AskAIProvider");return e}},23831:function(e,t,a){a.d(t,{I:function(){return r}});var n=a(2265);function r(){let{onResult:e,onError:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[a,r]=(0,n.useState)(!1),[s,i]=(0,n.useState)(!1),[o,l]=(0,n.use
1State)("unknown"),c=(0,n.useRef)(null),d=(0,n.useRef)("unknown"),u=(0,n.useRef)(e),p=(0,n.useRef)(t),m=(0,n.useCallback)(e=>{d.current=e,l(e)},[]);(0,n.useEffect)(()=>{u.current=e},[e]),(0,n.useEffect)(()=>{p.current=t},[t]),(0,n.useEffect)(()=>{var e;let t;if("undefined"==typeof navigator||!(null===(e=navigator.permissions)||void 0===e?void 0:e.query))return;let a=!1;return navigator.permissions.query({name:"microphone"}).then(e=>{a||(t=e,m(e.state),e.onchange=()=>m(e.state))}).catch(()=>{}),()=>{a=!0,t&&(t.onchange=null)}},[m]),(0,n.useEffect)(()=>{let e=window.SpeechRecognition||window.webkitSpeechRecognition;if(!e){i(!1);return}i(!0);let t=new e;return t.lang="en-US",t.continuous=!1,t.interimResults=!0,t.maxAlternatives=1,t.onresult=e=>{var t;let a="";for(let t=0;t<e.results.length;t++)a+=e.results[t][0].transcript;let n=e.results[e.results.length-1];null===(t=u.current)||void 0===t||t.call(u,a,!!(n&&n.isFinal))},t.onerror=e=>{var t,a,n;if(r(!1),"aborted"!==e.error){if("not-allowed"===e.error||"service-not-allowed"===e.error){m("denied"),null===(a=p.current)||void 0===a||a.call(p,"denied");return}if("audio-capture"===e.error){null===(n=p.current)||void 0===n||n.call(p,"no-device");return}null===(t=p.current)||void 0===t||t.call(p,"unknown")}},t.onend=()=>r(!1),c.current=t,()=>{t.onresult=null,t.onerror=null,t.onend=null;try{t.abort()}catch(e){}}},[m]);let h=(0,n.useCallback)(async()=>{var e,t,a,n,s,i,o;if("denied"===d.current){null===(e=p.current)||void 0===e||e.call(p,"denied");return}if("granted"!==d.current){if(!(null===(t=navigator.mediaDevices)||void 0===t?void 0:t.getUserMedia)){null===(a=p.current)||void 0===a||a.call(p,"unknown");return}try{(await navigator.mediaDevices.getUserMedia({audio:!0})).getTracks().forEach(e=>e.stop()),m("granted")}catch(e){e&&("NotAllowedError"===e.name||"PermissionDeniedError"===e.name)?(m("denied"),null===(n=p.current)||void 0===n||n.call(p,"denied")):e&&("NotFoundError"===e.name||"DevicesNotFoundError"===e.name)?null===(s=p.current)||void 0===s||s.call(p,"no-device"):null===(i=p.current)||void 0===i||i.call(p,"unknown");return}}try{null===(o=c.current)||void 0===o||o.start(),r(!0)}catch(e){}},[m]),f=(0,n.useCallback)(()=>{c.current&&!a&&h()},[a,h]),g=(0,n.useCallback)(()=>{var e;null===(e=c.current)||void 0===e||e.stop()},[]),x=(0,n.useCallback)(()=>{a?g():f()},[a,f,g]);return{isSupported:s,isListening:a,permission:o,start:f,stop:g,toggle:x}}}}]);
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.