PageSourceSearch

https://chatspark.io/_next/static/chunks/6090.66fb7a1986575547.js

js chatspark.io collected 2026-10-04 16:09:16 UTC 51,900 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6090],{46090:function(e,t,o){o.r(t),o.d(t,{default:function(){return j}});var i=o(57437),r=o(2265),n=o(57970),s=o(33145),a=o(23859),l=o(5095),c=o(45873),d=o(22561);o(25586);let x=new n.M2({gfm:!0,breaks:!0});function p(e){return e?x.parse(e):""}function h(e){let{messages:t}=e,[o,n]=(0,r.useState)(0);return(0,r.useEffect)(()=>{n(0);let e=setTimeout(()=>n(1),2500);return()=>clearTimeout(e)},[t]),(0,i.jsx)("span",{className:"demo-thinking-pulse",children:t[o]})}x.use({renderer:{link(e){let{href:t,text:o}=e;return t===o||t==="mailto:".concat(o)?o:'<a href="'.concat(t,'">').concat(o,"</a>")}}});let u=[{id:"gmail",label:"Gmail",icon:d.qgt,url:"mail.google.com/mail/u/0/#inbox/19f3a...",email:{from:"Sarah Chen",fromEmail:"[email protected]",subject:"Billing question: Enterprise plan",body:"Hi team,\n\nI'm currently on the Pro plan but considering upgrading to Enterprise. Can you explain the key differences and if there's a migration path for our existing data?\n\nWe have 45 users and need SSO support.\n\nThanks,\nSarah",time:"2:34 PM",avatarColor:"red"},copilotResponse:"Based on your training data, here's a draft reply:\n\nHi Sarah,\n\nGreat question! The Enterprise plan includes SSO (SAML 2.0), dedicated account management, and custom API limits. For 45 users, you'd also get priority support and 99.9% SLA.\n\nMigration is seamless. All existing data, agents, and configurations carry over automatically. I can schedule a 15-min walkthrough if helpful.\n\nBest regards",actions:["Draft Reply","Summarize","Clarify","Quick Reply"],sources:[{name:"Enterprise Plan Guide.pdf",docType:"pdf"},{name:"Migration Docs.pdf",docType:"pdf"},{name:"chatspark.io/pricing",docType:"url"}]},{id:"fub",label:"AI Assistant",icon:d.tNe,url:"app.followupboss.com/pipeline",type:"crm",crmData:{title:"My Pipeline",count:24,stage:"Lead",contacts:[{name:"Gary Taylor",email:"[email protected]",lastActivity:"2 days ago",highlight:!0},{name:"Bill Longhorn",email:"[email protected]",lastActivity:"3 days ago",highlight:!0},{name:"Chase Fuller",email:"[email protected]",lastActivity:"9 days ago",highlight:!0},{name:"Dana Reeves",email:"[email protected]",lastActivity:"12 days ago",highlight:!1},{name:"Marcus Webb",email:"[email protected]",lastActivity:"14 days ago",highlight:!1}]},conversations:[{userMessage:"What's in my pipeline?",copilotResponse:"You've got **24 contacts** in Lead stage — but three stand out right now.\n\n**Chase Fuller** had a showing 9 days ago and hasn't heard from you since. That's your highest-risk contact. **Bill Longhorn** hasn't responded to your last outreach in 3 days. **Gary Taylor** is warm — 2 days out, just needs a check-in.\n\nThe rest of the pipeline looks quiet. Want me to help you prioritize these three?",sources:[{name:"Follow Up Boss \xb7 Pipeline",docType:"action"}]},{userMessage:"Which ones need my attention?",copilotResponse:"Here's how I'd rank them:\n\n1. **Chase Fuller** — Most urgent. 9 days since a showing with no follow-up. In a competitive market, that's a real risk of losing him.\n2. **Bill Longhorn** — 3 days since your last email with no reply. Worth a short check-in today.\n3. **Gary Taylor** — Warmest of the three. 2 days out, low urgency, but don't let it stretch to a week.\n\nI'd start with Chase.",sources:[{name:"Follow Up Boss \xb7 Pipeline",docType:"action"}]},{userMessage:"Add a task to follow up with Gary tomorrow @ 11",copilotResponse:"Done — task created for **Gary Taylor**, tomorrow at 11:00 AM.\n\nWant me to draft a quick check-in message now so you're ready to send when the time comes?",sources:[{name:"Follow Up Boss \xb7 Tasks",docType:"action"}]}],actions:["View Pipeline","Add Task","Draft Message","Log Activity"]},{id:"zendesk",label:"Zendesk",icon:d.Kaj,url:"support.company.zendesk.com/agent/tickets/4821",email:{from:"Lisa Park",fromEmail:"Ticket #4821 \xb7 High Priority",subject:"Cannot reset password. Reset email never arrives.",body:"I've tried resetting my password 4 times today. The reset email never arrives. I've checked spam and junk folders. My email is [email protected].\n\nThis is blocking my team from accessing our dashboards. Please help urgently.",time:"9:02 AM",avatarColor:"green"},copilotResponse:"Checked your knowledge base and system docs:\n\n1. Email delivery issue likely related to the customer's domain (designco.com). Check if it's on the suppression list.\n\n2. Temporary workaround: Admin can generate a direct reset link from Settings → Users → Manual Reset.\n\n3. Escalation path: If suppression list, forward to engineering with the bounce log.\n\nSuggested priority: Escalate to Tier 2 with bounce log attached.",actions:["Summarize Ticket","Draft Response","Suggest Solution","Escalation Note"],sources:[{name:"Password Reset SOP.pdf",docType:"pdf"},{name:"Email Suppression Guide.txt",docType:"txt"},{name:"Zendesk \xb7 Ticket History",docType:"action"}]},{id:"sales",label:"Sales",icon:d.QaE,url:"app.hubspot.com/contacts/deals/record/8412...",email:{from:"Deal: Meridian Health Group",fromEmail:"Stage: Proposal Sent \xb7 $18,000 ARR",subject:"ChatSpark vs. their current setup",body:"Meridian Health is running a basic FAQ bot built in-house. Their team of 35 supp
1ort reps is drowning in repetitive questions.\n\nThey want to know:\n\n• How fast can they go live with ChatSpark?\n• Can it train on their existing knowledge base?\n• What makes CoPilot different from their current workflow?\n\nDemo call is Friday at 2 PM.",time:"3:15 PM",avatarColor:"orange"},copilotResponse:"From your ChatSpark sales playbook:\n\n- **Time to value:** Most teams go live in under 5 minutes. Training on existing docs is drag-and-drop, no engineering required.\n- **vs. in-house bots:** ChatSpark trains on their actual data (PDFs, URLs, help docs) and improves with every conversation. No prompt engineering needed.\n- **CoPilot angle:** Their 35 reps can use CoPilot inside Gmail, Zendesk, or any browser tab. Zero context switching. This is the 10x productivity story.\n- **Talk track:** Lead with the 5-minute setup and CoPilot demo. Show them the before/after workflow.",actions:["Summarize Record","Draft Follow-up","Prep for Call","Log Summary"],sources:[{name:"Sales Playbook 2025.pdf",docType:"pdf"},{name:"Competitive Battlecard.pdf",docType:"pdf"},{name:"HubSpot \xb7 Deal Record",docType:"action"}]},{id:"engineering",label:"Engineering",icon:d.XTG,url:"company.atlassian.net/browse/ENG-2847",email:{from:"ENG-2847",fromEmail:"Bug \xb7 P1 \xb7 Assigned to you",subject:"Webhook delivery failing for EU customers",body:"Since 06:00 UTC, webhook deliveries to EU endpoints are timing out. Affecting ~12% of Enterprise customers.\n\nError: Connection timeout after 30s on eu-west-1 relay.\n\nPossible regression from last deploy (v2.14.3).",time:"7:30 AM",avatarColor:"orange"},copilotResponse:"Found relevant context from your engineering wiki:\n\n1. eu-west-1 relay was updated in v2.14.3 to use connection pooling. The timeout config was not carried over.\n\n2. Fix: Check relay config in infra/webhooks/eu-relay.yaml. The timeout_ms field defaults to 5000 in the new pool, but EU endpoints need 30000.\n\n3. Similar issue in ENG-1923 (resolved Nov 2024). Same root cause, different region.\n\nRecommend: Hotfix the relay config and add a regression test for timeout inheritance.",actions:["Summarize Ticket","Draft Response","Suggest Solution","Escalation Note"],sources:[{name:"Engineering Wiki.pdf",docType:"pdf"},{name:"ENG-1923 Resolution.txt",docType:"txt"},{name:"Jira \xb7 Ticket Context",docType:"action"}]},{id:"hr",label:"HR",icon:d.TSD,url:"people.company.com/requests/inbox",email:{from:"Jamie Rivera",fromEmail:"Employee Request \xb7 Benefits",subject:"Parental leave policy for remote employees",body:"Hi HR team,\n\nI'm expecting in June and wanted to understand our parental leave policy. I'm a full-time remote employee based in Colorado.\n\nSpecifically:\n\n• How many weeks of paid leave?\n• Does remote status affect eligibility?\n• What's the process for requesting leave?\n\nThanks,\nJamie",time:"10:45 AM",avatarColor:"teal"},copilotResponse:"From your HR policy handbook (v2025.1):\n\n- **Paid parental leave:** 16 weeks for all full-time employees, regardless of location or remote status.\n- **Eligibility:** Must have 6+ months tenure at time of leave. Colorado employees also qualify for state FAMLI benefits (up to 12 additional weeks partial pay).\n- **Process:** Submit via PeopleOps portal 30 days in advance. Manager approval is automatic for parental leave.\n- **Note:** Remote employees receive the same benefits as in-office. No distinction in the policy.",actions:["Key Takeaways","Summarize","Explain"],sources:[{name:"HR Policy Handbook 2025.pdf",docType:"pdf"},{name:"Colorado FAMLI Guide.pdf",docType:"pdf"},{name:"BambooHR \xb7 Employee Record",docType:"action"}]},{id:"knowledge",label:"Internal Knowledge",icon:d.W79,url:"wiki.company.com/search",email:{from:"You",fromEmail:"Internal search",subject:"What's our refund policy for annual plans?",body:"Searching across your connected knowledge sources...\n\n\uD83D\uDCC4 Refund Policy v3.2 (updated Jan 2025)\n\uD83D\uDCC4 Billing FAQ. Internal Wiki\n\uD83D\uDCC4 Customer Success Playbook. Section 4.7",time:"Just now",avatarColor:"purple"},copilotResponse:"From your knowledge base (3 sources matched):\n\n- **Annual plans:** Full refund within 14 days of purchase. After 14 days, pro-rated refund for remaining months minus a 10% early termination fee.\n- **Exception:** Enterprise contracts follow custom terms in their MSA.\n- **Process:** Customer Success initiates via Stripe dashboard → Refunds → Pro-rated.\n\n**Confidence:** High (3 matching sources, last updated Jan 2025)",actions:["Key Takeaways","Summarize","Explain"],sources:[{name:"Refund Policy v3.2.pdf",docType:"pdf"},{name:"Billing FAQ.pdf",docType:"pdf"},{name:"Customer Success Playbook.txt",docType:"txt"}]},{id:"website",label:"Website",icon:d.MEw,url:"chatspark.io/my/dashboard",type:"dashboard",dashboardStats:{overview:[{label:"Messages Usage",value:"10,754",limit:"15,000",change:"+18%",subtitle:"vs. Previous Per
1iod",sparkData:[7800,8200,8800,9300,9800,10200,10754],sparkPositive:!0},{label:"Training Data Usage",value:"247",limit:"500",change:"+4%",subtitle:"142 PDF, 78 Web Pages, 27 Text",sparkData:[230,235,238,241,243,245,247],sparkPositive:!0},{label:"Total Chats Opened",value:"3,847",change:"+18%",subtitle:"vs. Previous Period",sparkData:[2800,3e3,3150,3300,3450,3600,3847],sparkPositive:!0}],performance:[{label:"Avg. Chat Time",value:"1m 42s",change:"-8%",subtitle:"vs. Previous Period",sparkData:[132,125,120,115,110,106,102],sparkPositive:!1},{label:"Leads Captured",value:"153",change:"+12%",subtitle:"vs. Previous Period",sparkData:[110,118,125,132,138,145,153],sparkPositive:!0},{label:"AI Resolution Rate",value:"98%",change:"+6pt",subtitle:"3,770 of 3,847 chats resolved",sparkData:[92,94,95,96,96.5,97,98],sparkPositive:!0}],efficiency:[{label:"Total Time Saved",value:"66+ Days",change:"+23%",subtitle:"vs. Previous Period",sparkData:[40,46,50,54,58,62,66],sparkPositive:!0},{label:"Cost Savings",value:"$47,880",change:"+16%",subtitle:"vs. Previous Period",sparkData:[3e4,35e3,38e3,41e3,43e3,45e3,47880],sparkPositive:!0},{label:"AI Actions",value:"2,341",change:"+34%",subtitle:"vs. Previous Period",sparkData:[1500,1680,1820,1940,2060,2180,2341],sparkPositive:!0}],copilot:[{label:"Active Users",value:"12",change:"+3",subtitle:"vs. Previous Period",sparkData:[7,8,9,10,10,11,12],sparkPositive:!0},{label:"Total Sessions",value:"247",change:"+31%",subtitle:"vs. Previous Period",sparkData:[150,170,188,200,215,230,247],sparkPositive:!0},{label:"CoPilot Messages",value:"1,842",change:"+24%",subtitle:"vs. Previous Period",sparkData:[1100,1250,1380,1500,1620,1730,1842],sparkPositive:!0},{label:"Time Saved",value:"18.4h",change:"+28%",subtitle:"vs. Previous Period",sparkData:[11,12.5,13.8,15,16,17.2,18.4],sparkPositive:!0},{label:"Response Utilization",value:"74%",change:"+9pt",subtitle:"vs. Previous Period",sparkData:[52,58,63,67,70,72,74],sparkPositive:!0},{label:"Most Used Platform",value:"Gmail",change:"+18%",subtitle:"of total sessions",sparkData:[28,32,35,40,42,44,46],sparkPositive:!0},{label:"Top Action",value:"Draft Reply",change:"+22%",subtitle:"of all actions taken",sparkData:[30,34,38,42,46,50,55],sparkPositive:!0}],copilotTeam:[{name:"Jordan Mercer",sessions:48,timeSaved:92},{name:"Taylor Winslow",sessions:41,timeSaved:78},{name:"Alex Harmon",sessions:35,timeSaved:67},{name:"Morgan Voss",sessions:29,timeSaved:54},{name:"Casey Elliot",sessions:18,timeSaved:34}]},copilotResponse:"Here are your key takeaways for this month:\n\n**Platform**\n• 10,754 messages used (72% of limit) — up 18% vs. last period\n• 3,847 chats opened with a 98% resolution rate\n• 66+ days of agent time saved and $47,880 in cost recovered\n\n**CoPilot**\n• 12 active users \xb7 247 sessions \xb7 1,842 messages \xb7 18.4h saved\n• 74% response utilization — team is acting on AI suggestions\n• Top platform: Gmail \xb7 Top action: Draft Reply",actions:["Key Takeaways","Summarize","Explain"]}],g={"Draft Reply":d._4b,"Quick Reply":d.qVT,Summarize:d.vrJ,Clarify:d.W79,"Summarize Ticket":d.vrJ,"Draft Response":d._4b,"Suggest Solution":d.W79,"Escalation Note":d.QNV,"Summarize Record":d.vrJ,"Draft Follow-up":d._4b,"Prep for Call":d.PES,"Log Summary":d._2y,"Key Takeaways":d.G8Q,Explain:d.W79,"View Pipeline":d.G8Q,"Add Task":d._2y,"Draft Message":d._4b,"Log Activity":d.kYI};function m(e){let{data:t,positive:o}=e;if(!t||t.length<2)return null;let r=!1===o?"#E53E3E":!0===o?"#38A169":"#3182CE",n=Math.min(...t),s=Math.max(...t)-n||1,l=[{x:0,y:60},{x:54,y:60},...t.map((e,o)=>({x:54+o/(t.length-1)*66,y:60-(e-n)/s*39}))].map(e=>"".concat(e.x.toFixed(1),",").concat(e.y.toFixed(1))).join(" "),c="0,".concat(60," ").concat(l," ").concat(120,",").concat(60);return(0,i.jsx)(a.Box,{position:"absolute",bottom:"0",left:"0",right:"0",height:"55%",pointerEvents:"none",children:(0,i.jsxs)("svg",{width:"100%",height:"100%",viewBox:"0 0 ".concat(120," ").concat(60),preserveAspectRatio:"none",children:[(0,i.jsx)("polygon",{points:c,fill:r,fillOpacity:"0.07"}),(0,i.jsx)("polyline",{points:l,fill:"none",stroke:r,strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:"0.28"})]})})}function f(e){let{stat:t}=e,o=t.change.startsWith("-")&&"Avg. Chat Time"!==t.label;return(0,i.jsxs)(a.Box,{bg:"white",borderRadius:"xl",border:"1px solid",borderColor:"gray.100",py:"2.5",px:"3",position:"relative",overflow:"hidden",style:{boxShadow:"0 1px 2px rgba(0,0,0,0.04)"},transition:"all 0.2s",_hover:{boxShadow:"0 2px 6px rgba(0,0,0,0.06)"},children:[(0,i.jsxs)(a.kCb,{justify:"space-between",align:"flex-start",mb:"0.5",position:"relative",zIndex:1,children:[(0,i.jsx)(a.Text,{fontSize:"9px",color:"gray.500",fontWeight:"500",noOfLines:1,lineHeight:"1.3",children:t.label}),(0,i.jsx)(a.Box,{color:"gray.300",flexShrink:0,ml:"1",children:(0,i.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,i.jsx)("circle",{cx:"10",cy:"10",r:"8"}),(0,i.jsx)("path",{d:"M10 9v5M10 6.5v0",strokeLinecap:"round"})]})})]}),(0,i.jsxs)(a.kCb,{align:"baseline",gap:"1",mt:"1",position:"relative",zIndex:1,children:[(0,i.jsx)(a.Text,{fontSize:"16px",fontWeight:"600",color:"gray.900",lineHeight:"1.2",letterSpacing:"-0.01em",children:t.value}),t.limit&&(0,i.jsxs)(a.Text,{fontSize:"10px",fontWeight:"400",color:"gray.400",lineHeight:"1",children:["/ ",t.limit]})]}),(0,i.jsxs)(a.kCb,{align:"center",gap:"1.5",mt:"1.5",minH:"14px",position:"relative",zIndex:1,children:[t.subtitle&&(0,i.jsx)(a.Text,{fontSize:"8px",color:"gray.500",fontWeight:"400",lineHeight:"1.2",noOfLines:1,flex:"1",minW:"0",children:t.subtitle}),(0,i.jsx)(a.Box,{display:"inline-flex",px:"1.5",py:"0.5",borderRadius:"full",bg:o?"red.50":"green.50",flexShrink:0,children:(0,i.jsx)(a.Text,{fontSize:"8px",fontWeight:"600",color:o?"red.500":"green.600",lineHeight:"1",children:o?t.change:"+".concat(t.change.replace(/^\+/,""))})})]}),t.sparkData&&(0,i.jsx)(m,{data:t.sparkData,positive:t.sparkPositive})]})}let b=function(){let e=new Date,t=String(e.getMonth()+1).padStart(2,"0"),o=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),i=e.toLocaleStr
1ing("default",{month:"short"});return{header:"".concat(i," 1 – ").concat(i," ").concat(o),xLabels:[1,8,15,22,29].map(e=>"".concat(t,"/").concat(String(e).padStart(2,"0")))}}(),y=["Just now","12m ago","1h ago","2h ago","3h ago","Yesterday","2d ago","3d ago"];function j(){var e,t,o,n;let[x,m]=(0,r.useState)(0),[j,k]=(0,r.useState)(0),[S,v]=(0,r.useState)([]),[w,C]=(0,r.useState)(!0),[B,F]=(0,r.useState)(!1),[T,E]=(0,r.useState)(!1),[z,A]=(0,r.useState)(!1),R=(0,r.useRef)(null),W=(0,r.useRef)(null),H=(0,r.useRef)(null),P=(0,r.useRef)(null),D=(0,a.Sx0)({base:!1,lg:!0}),M=u[x],I=!!M.conversations,L=I?M.conversations[j]:null,O=null!==(t=null==L?void 0:L.copilotResponse)&&void 0!==t?t:M.copilotResponse,J=(0,r.useMemo)(()=>(function(e){var t,o;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=null===(t=e.sources)||void 0===t?void 0:t.find(e=>"action"===e.docType),n=(null==r?void 0:r.name.split("\xb7")[0].trim())||null;if("dashboard"===e.type)return["Reading the page you're viewing...","Putting it together..."];if("crm"===e.type){let e=[["Reading your Follow Up Boss pipeline...","Looking up contact activity..."],["Reviewing your pipeline contacts...","Checking recent activity..."],["Creating a task in Follow Up Boss...","Confirming task details..."]];return null!==(o=e[i])&&void 0!==o?o:e[0]}return n?["Reading the page you're viewing...","Working with ".concat(n,"...")]:e.email?["Reading the page you're viewing...","Searching your knowledge base..."]:["Understanding your request...","Searching your knowledge base..."]})(M,j),[x,j]);(0,r.useEffect)(()=>{k(0),v([])},[x]);let{displayHtml:G,phase:_,charCount:U}=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:800,[n,s]=(0,r.useState)(0),[a,l]=(0,r.useState)("idle"),c=(0,r.useRef)(null),d=(0,r.useRef)(null),{html:x,charPositions:h}=(0,r.useMemo)(()=>(function(e){if(!e)return{html:"",charPositions:[]};let t=p(e),o=[],i=0;for(;i<t.length;)if("<"===t[i]){let e=t.indexOf(">",i);i=-1===e?t.length:e+1}else if("&"===t[i]){let e=t.indexOf(";",i),r=-1===e?i+1:e+1;o.push(r),i=r}else o.push(i+1),i++;return{html:t,charPositions:o}})(e),[e]);return(0,r.useEffect)(()=>{if(c.current&&clearInterval(c.current),d.current&&clearTimeout(d.current),c.current=null,d.current=null,!t){s(0),l("idle");return}return l("thinking"),s(0),d.current=setTimeout(()=>{l("streaming");let e=0;c.current=setInterval(()=>{++e<=h.length?s(e):(l("complete"),clearInterval(c.current),c.current=null)},o)},i),()=>{c.current&&clearInterval(c.current),d.current&&clearTimeout(d.current),c.current=null,d.current=null}},[e,t,o,i,h]),{displayHtml:0===n?"":x.slice(0,h[n-1]),phase:a,charCount:h.length}}(O,!0,15,5e3);(0,r.useEffect)(()=>(R.current&&(clearTimeout(R.current),R.current=null),"complete"!==_||(I&&j<M.conversations.length-1?R.current=setTimeout(()=>{v(e=>[...e,L]),k(e=>e+1)},2e3):T||(R.current=setTimeout(()=>{m(e=>(e+1)%u.length)}
1,3500))),()=>{R.current&&clearTimeout(R.current)}),[_,T,I,j,M,L]),(0,r.useEffect)(()=>{W.current&&(W.current.scrollTop=W.current.scrollHeight)},[_,j]),(0,r.useEffect)(()=>{let e=P.current;if(!e)return;let t=t=>{0!==t.deltaY&&(t.preventDefault(),e.scrollLeft+=t.deltaY)};return e.addEventListener("wheel",t,{passive:!1}),()=>e.removeEventListener("wheel",t)},[_]),(0,r.useEffect)(()=>{if(!z)return;let e=document.body.style.overflow;document.body.style.overflow="hidden";let t=e=>{"Escape"===e.key&&A(!1)};return window.addEventListener("keydown",t),()=>{document.body.style.overflow=e,window.removeEventListener("keydown",t)}},[z]);let N=e=>{E(!0),m(e)};return(0,r.useEffect)(()=>{let e=document.createElement("style");return e.textContent="\n.demo-md { font-size: 13px; color: #111827; line-height: 1.65; }\n.demo-md p { margin-bottom: 6px; }\n.demo-md p:last-child { margin-bottom: 0; }\n.demo-md strong { font-weight: 600; }\n.demo-md em { font-style: italic; }\n.demo-md ul { list-style: disc; padding-left: 16px !important; margin-left: 16px !important; margin-bottom: 6px; }\n.demo-md ol { list-style: decimal; padding-left: 16px !important; margin-left: 16px !important; margin-bottom: 6px; }\n.demo-md li { margin-bottom: 2px; line-height: 1.6; }\n.demo-md h1,.demo-md h2 { font-size: 13px; font-weight: 600; margin-top: 8px; margin-bottom: 4px; }\n.demo-md h3 { font-size: 12px; font-weight: 500; margin-top: 6px; margin-bottom: 2px; }\n.demo-md code { background: rgba(0,0,0,0.05); border-radius: 4px; padding: 1px 4px; font-size: 11px; font-family: ui-monospace,monospace; }\n.demo-md pre { background: rgba(0,0,0,0.05); border-radius: 6px; padding: 8px 10px; font-size: 11px; font-family: ui-monospace,monospace; overflow-x: auto; margin-bottom: 6px; }\n.demo-md a { color: #3B82F6; text-decoration: underline; }\n.demo-md blockquote { border-left: 2px solid #E5E7EB; padding-left: 10px; color: #6B7280; margin-bottom: 6px; font-style: italic; }\n.demo-md hr { border: none; border-top: 1px solid #E5E7EB; margin: 8px 0; }\n.demo-md table { font-size: 11px; border-collapse: collapse; width: 100%; margin-bottom: 6px; }\n.demo-md th { border: 1px solid #E5E7EB; padding: 3px 6px; background: #F9FAFB; font-weight: 500; text-align: left; }\n.demo-md td { border: 1px solid #E5E7EB; padding: 3px 6px; }\n@keyframes demoPulse { 0%,100% { opacity: 0.45; } 50% { opacity: 0.9; } }\n.demo-thinking-pulse { display: inline-block; font-size: 11px; color: #6B7280; line-height: 1.6; animation: demoPulse 2s ease-in-out infinite; }\n",document.head.appendChild(e),()=>{e.parentNode&&e.parentNode.removeChild(e)}},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.M,{children:z&&(0,i.jsx)(c.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},style:{position:"fixed",inset:0,zIndex:9998,background:"rgba(0,0,0,0.75)",cursor:"pointer"},onClick:()=>A(!1)},"fs-backdrop")}),(0,i.jsxs)(a.Box,{w:z?void 0:"full",maxW:z?"none":"960px",mx:z?void 0:"auto",position:z?"fixed":void 0,top:z?"30px":void 0,left:z?"30px":void 0,right:z?"30px":void 0,bottom:z?"30px":void 0,zIndex:z?9999:void 0,display:z?"flex":void 0,flexDirection:z?"column":void 0,borderRadius:"xl",border:"1px solid",borderColor:"gray.200",overflow:"hidden",bg:"white",children:[(0,i.jsxs)(a.HStack,{bg:"gray.100",px:"4",py:"2.5",spacing:"3",borderBottom:"1px solid",borderColor:"gray.200",flexShrink:0,children:[(0,i.jsxs)(a.HStack,{spacing:"1.5",flexShrink:0,children:[(0,i.jsx)(a.Box,{w:"3",h:"3",borderRadius:"full",bg:"#FF5F57"}),(0,i.jsx)(a.Box,{w:"3",h:"3",borderRadius:"full",bg:"#FFBD2E"}),(0,i.jsx)(a.Box,{w:"3",h:"3",borderRadius:"full",bg:"#28CA41"})]}),(0,i.jsx)(a.Box,{flex:"1",bg:"white",borderRadius:"md",px:"3",py:"1",border:"1px solid",borderColor:"gray.200",children:(0,i.jsx)(a.Text,{fontSize:"xs",color:"gray.400",noOfLines:1,children:M.url})}),(0,i.jsx)(a.hU,{display:{base:"none",lg:"flex"},size:"xs",variant:"ghost",icon:(0,i.jsx)(a.JO$,{as:z?d.vl9:d.s9X,boxSize:"3.5"}),onClick:()=>A(e=>!e),"aria-label":z?"Exit fullscreen":"Expand to fullscreen",color:"gray.400",flexShrink:0,_hover:{color:"gray.600",bg:"gray.200"}})]}),(0,i.jsxs)(a.Box,{position:"relative",flexShrink:0,children:[(0,i.jsx)(a.HStack,{px:"3",py:"2",bg:"gray.50",spacing:"1",overflowX:"auto",sx:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"},children:u.map((e,t)=>(0,i.jsx)(a.Button,{size:"sm",variant:x===t?"solid":"ghost",colorScheme:x===t?"blue":"gray",onClick:()=>N(t),leftIcon:(0,i.jsx)(a.JO$,{as:e.icon,boxSize:"3.5"}),fontSize:"xs",fontWeight:"600",flexShrink:0,h:"32px",children:e.label},e.id))}),(0,i.jsx)(a.Box,{h:"2px",bg:"gray.200",w:"full",children:!T&&(0,i.jsx)(a.Box,{h:"full",bg:"blue.400",borderRadius:"0 1px 1px 0",transformOrigin:"left",style:{animation:"cpTabFill ".concat(5250+15*U+3500,"ms linear forwards")}},x)})]}),(0,i.jsxs)(a.Box,{position:"relative",overflow:"hidden",h:z?void 0:{base:"610px",lg:"590px"},flex:z?"1":void 0,minH:z?0:void 0,children:[(0,i.jsx)(a.Box,{w:"full",h:"full",overflowY:"auto",style:{paddingRight:D&&w?"405px":"0px",transition:"padding-right 0.28s cubic-bezier(0.22, 1, 0.36, 1)"},sx:{"&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{bg:"transparent"},"&::-webkit-scrollbar-thumb":{bg:"gray.200",borderRadius:"full","&:hover":{bg:"gray.300"}},scrollbarWidth:"thin",scrollbarColor:"rgba(203,213,225,0.5) transparent"},children:(0,i.jsx)(l.M,{mode:"wait",children:(0,i.jsx)(c.E.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.2},children:"crm"===M.type?(0,i.jsxs)(a.Box,{h:"full",bg:"#F9FAFB",display:"flex",flexDirection:"column",overflow:"hidden",children:[(0,i.jsx)(a.Box,{px:"4",py:"2.5",bg:"white",borderBottom:"1px solid #E5E7EB",flexShrink:0,children:(0,i.jsxs)(a.HStack,{justify:"space-between",align:"center",children:[(0,i.jsxs)(a.HStack,{spacing:"2",children:[(0,i.jsx)(a.Box,{w:"22px",h:"22px",borderRadius:"6px",bg:"#4A90D9",display:"flex",alignItems:"center",justifyContent:"center",children:(0,i.jsx)(a.Text,{fontSize:"10px",fontWeight:"700",color:"white",lineHeight:"1",children:"F"})}),(0,i.jsx)(a.Text,{fontSize:"12px",fontWeight:"700",color:"#111827",letterSpacing:"-0.01em",children:"Follow Up Boss"})]}),(0,i.jsxs)(a.HStack,{spacing:"1.5",children:[(0,i.jsx)(a.Box,{px:"2",py:"0.5",borderRadius:"md",bg:"#EFF6FF",border:"1px solid rgba(59,130,246,0.2)",children:(0,i.jsx)(a.Text,{fontSize:"9px",fontWeight:"600",color:"#2563EB",lineHeight:"1.4",children:"Pipeline"})}),(0,i.jsx)(a.Box,{px:"2",py:"0.5",borderRadius:"md",children:(0,i.jsx)(a.Text,{fontSize:"9px",fontWeight:"500",color:"#6B7280",lineHeight:"1.4",children:"Contacts"})}),(0,i.jsx)(a.Box,{px:"2",py:"0.5",borderRadius:"md",children:(0,i.jsx)(a.Text,{fontSize:"9px",fontWeight:"500",color:"#6B7280",lineHeight:"1.4",children:"Tasks"})})]})]})}),(0,i.jsxs)(a.Box,{px:"4",pt:"3",pb:"2",bg:"white",borderBottom:"1px solid #F3F4F6",flexShrink:0,children:[(0,i.jsxs)(a.HStack,{justify:"space-between",align:"center",mb:"2",children:[(0,i.jsxs)(a.HStack,{spacing:"2",children:[(0,i.jsx)(a.Text,{fontSize:"14px",fontWeight:"700",color:"#111827",letterSpacing:"-0.02em",children:M.crmData.title}),(0,i.jsx)(a.Box,{px:"1.5",py:"0.5",borderRadius:"full",bg:"#EFF6FF",children:(0,i.jsxs)(a.Text,{fontSize:"9px",fontWeight:"600",color:"#2563EB",lineHeight:"1",children:[M.crmData.count," contacts"]})})]}),(0,i.jsxs)(a.HStack,{spacing:"1.5",children:[(0,i.jsx)(a.Box,{px:"2",py:"1",borderRadius:"md",border:"1px solid #E5E7EB",bg:"white",cursor:"default",children:(0,i.jsx)(a.Text,{fontSize:"9px",fontWeight:"500",color:"#6B7280",children:"Filter"})}),(0,i.jsx)(a.Box,{px:"2",py:"1",borderRadius:"md",border:"1px solid #E5E7EB",bg:"white",cursor:"default",children:(0,i.jsx)(a.Text,{fontSize:"9px",fontWeight:"500",color:"#6B7280",children:"Sort"})})]})]}),(0,i.jsxs)(a.HStack,{spacing:"1.5",children:[(0,i.jsx)(a.Box,{px:"2.5",py:"1",borderRadius:"full",bg:"#3B82F6",cursor:"default",children:(0,i.jsx)(a.Text,{fontSize:"9px",fontWeight:"600",color:"white",lineHeight:"1",children:"Lead"})}),(0,i.jsx)(a.Box,{px:"2.5",py:"1",borderRadius:"full",bg:"#F3F4F6",cursor:"default",children:(0,i.jsx)(a.Text,{fontSize:"9px",fontWeight:"500",color:"#6B7280",lineHeight:"1",children:"Active"})}),(0,i.jsx)(a.Box,{px:"2.5",py:"1",borderRadius:"full",bg:"#F3F4F6",cursor:"default",children:(0,i.jsx)(a.Text,{fontSize:"9px",fontWeight:"500",color:"#6B7280",lineHeight:"1",children:"Under Contract"})}),(0,i.jsx)(a.Box,{px:"2.5",py:"1",borderRadius:"full",bg:"#F3F4F6",cursor:"default",children:(0,i.jsx)(a.Text,{fontSize:"9px",fontWeight:"500",color:"#6B7280",lineHeight:"1",children:"Closed"})})]})]}),(0,i.jsx)(a.Box,{px:"4",py:"2",bg:"white",borderBottom:"1px solid #F3F4F6",flexShrink:0,children:(0,i.jsxs)(a.HStack,{spacing:"2",px:"2.5",py:"1.5",borderRadius:"7px",border:"1px solid #E5E7EB",bg:"#F9FAFB",children:[(0,i.jsx)(a.JO$,{as:d.G8Q,boxSize:"3",color:"#9
1CA3AF"}),(0,i.jsx)(a.Text,{fontSize:"11px",color:"#9CA3AF",lineHeight:"1",style:{fontStyle:"italic"},children:"Search contacts..."})]})}),(0,i.jsx)(a.Box,{flex:"1",overflowY:"auto",sx:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"},children:(0,i.jsx)(a.VStack,{spacing:"0",align:"stretch",children:M.crmData.contacts.map((e,t)=>(0,i.jsx)(a.Box,{px:"4",py:"3",bg:e.highlight?"rgba(239,246,255,0.6)":"white",borderLeft:"3px solid",borderLeftColor:e.highlight?"#3B82F6":"transparent",borderBottom:"1px solid",borderBottomColor:"#F3F4F6",cursor:"default",_hover:{bg:e.highlight?"rgba(239,246,255,0.9)":"#F9FAFB"},transition:"all 0.15s",children:(0,i.jsxs)(a.HStack,{justify:"space-between",align:"start",children:[(0,i.jsxs)(a.HStack,{spacing:"2.5",align:"start",children:[(0,i.jsx)(a.Box,{w:"30px",h:"30px",borderRadius:"full",flexShrink:0,bg:e.highlight?"#DBEAFE":"#F3F4F6",display:"flex",alignItems:"center",justifyContent:"center",children:(0,i.jsx)(a.Text,{fontSize:"11px",fontWeight:"700",color:e.highlight?"#2563EB":"#6B7280",lineHeight:"1",children:e.name.charAt(0)})}),(0,i.jsxs)(a.Box,{children:[(0,i.jsx)(a.Text,{fontSize:"12px",fontWeight:"600",color:e.highlight?"#111827":"#374151",lineHeight:"1.3",children:e.name}),(0,i.jsx)(a.Text,{fontSize:"10px",color:"#9CA3AF",lineHeight:"1.4",mt:"0.5",children:e.email}),(0,i.jsx)(a.HStack,{spacing:"1.5",mt:"1",children:(0,i.jsx)(a.Box,{px:"1.5",py:"0.5",borderRadius:"full",bg:e.highlight?"#DBEAFE":"#F3F4F6",children:(0,i.jsx)(a.Text,{fontSize:"8px",fontWeight:"600",color:e.highlight?"#2563EB":"#6B7280",lineHeight:"1",children:"Lead"})})})]})]}),(0,i.jsxs)(a.Box,{textAlign:"right",flexShrink:0,children:[(0,i.jsx)(a.Text,{fontSize:"9px",color:"#9CA3AF",lineHeight:"1.3",children:"Last activity"}),(0,i.jsx)(a.Text,{fontSize:"10px",fontWeight:"500",color:e.highlight?"#3B82F6":"#6B7280",lineHeight:"1.3",mt:"0.5",children:e.lastActivity})]})]})},t))})})]}):"dashboard"===M.type?(0,i.jsxs)(a.Box,{p:{base:"3",md:"4"},bg:"white",h:"full",overflowY:"auto",sx:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"},children:[(0,i.jsxs)(a.HStack,{justify:"space-between",align:"center",mb:"3",children:[(0,i.jsx)(a.Text,{fontWeight:"700",fontSize:"17px",color:"gray.900",letterSpacing:"-0.02em",children:"Dashboard"}),(0,i.jsxs)(a.HStack,{spacing:"2",children:[(0,i.jsxs)(a.HStack,{px:"2.5",py:"1",borderRadius:"md",border:"1px solid",borderColor:"gray.200",bg:"white",spacing:"1.5",cursor:"default",style:{boxShadow:"0 1px 2px rgba(0,0,0,0.04)"},children:[(0,i.jsx)(a.Text,{fontSize:"11px",fontWeight:"500",color:"gray.700",children:"All AI Agents"}),(0,i.jsx)(a.JO$,{as:d.kzR,boxSize:"2.5",color:"gray.400"})]}),(0,i.jsxs)(a.HStack,{px:"2.5",py:"1",borderRadius:"md",border:"1px solid",borderColor:"gray.200",bg:"white",spacing:"1.5",cursor:"default",style:{boxShadow:"0 1px 2px rgba(0,0,0,0.04)"},children:[(0,i.jsx)(a.JO$,{as:d.GQ2,boxSize:"3",color:"gray.400"}),(0,i.jsx)(a.Text,{fontSize:"11px",fontWeight:"500",color:"gray.700",children:"This Month"}),(0,i.jsx)(a.JO$,{as:d.kzR,boxSize:"2.5",color:"gray.400"})]})]})]}),(0,i.jsxs)(a.Box,{mb:"3",bg:"white",border:"1px solid",borderColor:"gray.100",borderRadius:"xl",style:{boxShadow:"0 1px 3px rgba(0,0,0,0.06)"},children:[(0,i.jsxs)(a.HStack,{justify:"space-between",px:"3",pt:"2.5",pb:"1",children:[(0,i.jsxs)(a.Box,{children:[(0,i.jsx)(a.Text,{fontSize:"11px",fontWeight:"600",color:"gray.700",children:"Message Trends"}),(0,i.jsx)(a.Text,{fontSize:"9px",color:"gray.400",mt:"0.5",children:b.header})]}),(0,i.jsxs)(a.HStack,{spacing:"3",children:[(0,i.jsxs)(a.HStack,{spacing:"1",children:[(0,i.jsx)(a.Box,{w:"10px",h:"1.5px",bg:"#3182CE",borderRadius:"full"}),(0,i.jsx)(a.Text,{fontSize:"9px",color:"gray.400",children:"Current"})]}),(0,i.jsxs)(a.HStack,{spacing:"1",children:[(0,i.jsx)(a.Box,{w:"10px",h:"1.5px",bg:"gray.300",borderRadius:"full"}),(0,i.jsx)(a.Text,{fontSize:"9px",color:"gray.400",children:"Previous"})]})]})]}),(0,i.jsx)(a.Box,{px:"1",pb:"1",children:(0,i.jsxs)("svg",{viewBox:"0 0 580 200",width:"100%",style:{display:"block"},children:[(0,i.jsxs)("defs",{children:[(0,i.jsxs)("linearGradient",{id:"trendFill",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,i.jsx)("stop",{offset:"0%",stopColor:"#3182CE",stopOpacity:"0.12"}),(0,i.jsx)("stop",{offset:"100%",stopColor:"#3182CE",stopOpacity:"0.01"})]}),(0,i.jsx)("clipPath",{id:"chartClip",children:(0,i.jsx)("rect",{x:"38",y:"8",width:"530",height:"145"})})]}),(0,i.jsx)("text",{x:"33",y:"22",fontSize:"9",fill:"#CBD5E0",textAnchor:"end",dominantBaseline:"middle",children:"200"}),(0,i.jsx)("text",{x:"33",y:"55",fontSize:"9",fill:"#CBD5E0",textAnchor:"end",dominantBaseline:"middle",children:"160"}),(0,i.jsx)("text",{x:"33",y:"88",fontSize:"9",fill:"#CBD5E0",textAnchor:"end",dominantBaseline:"middle",children:"120"}),(0,i.jsx)("text",{x:"33",y:"121",fontSize:"9",fill:"#CBD5E0",textAnchor:"end",dominantBaseline:"middle",children:"80"}),(0,i.jsx)("text",{x:"33",y:"148",fontSize:"9",fill:"#CBD5E0",textAnchor:"end",dominantBaseline:"middle",children:"40"}),(0,i.jsx)("line",{x1:"38",y1:"22",x2:"568",y2:"22",stroke:"#F1F5F9",strokeWidth:"0.75"}),(0,i.jsx)("line",{x1:"38",y1:"55",x2:"568",y2:"55",stroke:"#F1F5F9",strokeWidth:"0.75"}),(0,i.jsx)("line",{x1:"38",y1:"88",x2:"568",y2:"88",stroke:"#F1F5F9",strokeWidth:"0.75"}),(0,i.jsx)("line",{x1:"38",y1:"121",x2:"568",y2:"121",stroke:"#F1F5F9",strokeWidth:"0.75"}),(0,i.jsx)("line",{x1:"38",y1:"148",x2:"568",y2:"148",stroke:"#F1F5F9",strokeWidth:"0.75"}),(0,i.jsx)("path",{clipPath:"url(#chartClip)",d:"M 38,130 C 52,130 64,95 78,95 C 92,95 104,70 118,70 C 132,70 144,75 158,75 C 172,75 184,118 198,118 C 212,118 224,82 238,82 C 252,82 264,78 278,78 C 293,78 305,132 318,132 C 332,132 344,73 358,73 C 372,73 384,48 398,48 C 412,48 424,112 438,112 C 452,112 464,132 478,132 C 492,132 504,95 518,95 C 532,95 544,98 558,98",fill:"none",stroke:"#CBD5E0",
1strokeWidth:"1.5",strokeDasharray:"6,4"}),(0,i.jsx)("path",{clipPath:"url(#chartClip)",d:"M 38,122 C 52,122 64,78 78,78 C 92,78 104,52 118,52 C 132,52 144,55 158,55 C 172,55 184,108 198,108 C 212,108 224,66 238,66 C 252,66 264,60 278,60 C 293,60 305,128 318,128 C 332,128 344,56 358,56 C 372,56 384,22 398,22 C 412,22 424,98 438,98 C 452,98 464,128 478,128 C 492,128 504,80 518,80 C 532,80 544,84 558,84 L 558,155 L 38,155 Z",fill:"url(#trendFill)"}),(0,i.jsx)("path",{clipPath:"url(#chartClip)",d:"M 38,122 C 52,122 64,78 78,78 C 92,78 104,52 118,52 C 132,52 144,55 158,55 C 172,55 184,108 198,108 C 212,108 224,66 238,66 C 252,66 264,60 278,60 C 293,60 305,128 318,128 C 332,128 344,56 358,56 C 372,56 384,22 398,22 C 412,22 424,98 438,98 C 452,98 464,128 478,128 C 492,128 504,80 518,80 C 532,80 544,84 558,84",fill:"none",stroke:"#3182CE",strokeWidth:"2"}),(0,i.jsx)("text",{x:"38",y:"172",fontSize:"9",fill:"#CBD5E0",textAnchor:"start",children:b.xLabels[0]}),(0,i.jsx)("text",{x:"170",y:"172",fontSize:"9",fill:"#CBD5E0",textAnchor:"middle",children:b.xLabels[1]}),(0,i.jsx)("text",{x:"303",y:"172",fontSize:"9",fill:"#CBD5E0",textAnchor:"middle",children:b.xLabels[2]}),(0,i.jsx)("text",{x:"435",y:"172",fontSize:"9",fill:"#CBD5E0",textAnchor:"middle",children:b.xLabels[3]}),(0,i.jsx)("text",{x:"558",y:"172",fontSize:"9",fill:"#CBD5E0",textAnchor:"end",children:b.xLabels[4]})]})})]}),(0,i.jsxs)(a.Box,{mb:"3",children:[(0,i.jsx)(a.Text,{fontSize:"10px",fontWeight:"600",color:"gray.400",textTransform:"uppercase",letterSpacing:"wider",mb:"2",children:"Overview"}),(0,i.jsx)(a.SimpleGrid,{columns:3,spacing:"2",children:M.dashboardStats.overview.map(e=>(0,i.jsx)(f,{stat:e},e.label))})]}),(0,i.jsxs)(a.Box,{mb:"3",children:[(0,i.jsx)(a.Text,{fontSize:"10px",fontWeight:"600",color:"gray.400",textTransform:"uppercase",letterSpacing:"wider",mb:"2",children:"Performance"}),(0,i.jsx)(a.SimpleGrid,{columns:3,spacing:"2",children:M.dashboardStats.performance.map(e=>(0,i.jsx)(f,{stat:e},e.label))})]}),(0,i.jsxs)(a.Box,{mb:"3",children:[(0,i.jsx)(a.Text,{fontSize:"10px",fontWeight:"600",color:"gray.400",textTransform:"uppercase",letterSpacing:"wider",mb:"2",children:"Efficiency"}),(0,i.jsx)(a.SimpleGrid,{columns:3,spacing:"2",children:M.dashboardStats.efficiency.map(e=>(0,i.jsx)(f,{stat:e},e.label))})]}),(0,i.jsxs)(a.Box,{mb:"3",children:[(0,i.jsxs)(a.HStack,{mb:"2",spacing:"1.5",children:[(0,i.jsx)(a.Text,{fontSize:"10px",fontWeight:"600",color:"gray.400",textTransform:"uppercase",letterSpacing:"wider",children:"CoPilot Activity"}),(0,i.jsx)(a.Box,{px:"1.5",py:"0.5",borderRadius:"full",bg:"blue.50",children:(0,i.jsx)(a.Text,{fontSize:"8px",fontWeight:"600",color:"blue.500",lineHeight:"1",children:"This Month"})})]}),(0,i.jsx)(a.SimpleGrid,{columns:3,spacing:"2",mb:"2",children:M.dashboardStats.copilot.slice(0,3).map(e=>(0,i.jsx)(f,{stat:e},e.label))}),(0,i.jsx)(a.SimpleGrid,{columns:3,spacing:"2",children:M.dashboardStats.copilot.slice(3).map(e=>(0,i.jsx)(f,{stat:e},e.label))})]}),(0,i.jsxs)(a.Box,{bg:"white",border:"1px solid",borderColor:"gray.100",borderRadius:"xl",py:"2.5",px:"3",style:{boxShadow:"0 1px 2px rgba(0,0,0,0.04)"},children:[(0,i.jsxs)(a.kCb,{justify:"space-between",align:"center",mb:"2",children:[(0,i.jsx)(a.Text,{fontSize:"9px",color:"gray.400",fontWeight:"500",children:"Top Team Members"}),(0,i.jsx)(a.Box,{color:"gray.300",children:(0,i.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,i.jsx)("circle",{cx:"10",cy:"10",r:"8"}),(0,i.jsx)("path",{d:"M10 9v5M10 6.5v0",strokeLinecap:"round"})]})})]}),(0,i.jsx)(a.VStack,{spacing:"0",align:"stretch",children:M.dashboardStats.copilotTeam.map((e,t,o)=>(0,i.jsxs)(a.kCb,{justify:"space-between",align:"center",py:"1.5",borderBottom:t<o.length-1?"1px solid":"none",borderColor:"gray.50",children:[(0,i.jsx)(a.Text,{fontSize:"10px",fontWeight:"500",color:"gray.700",children:e.name}),(0,i.jsxs)(a.HStack,{spacing:"2",children:[(0,i.jsx)(a.Box,{px:"1.5",py:"0.5",borderRadius:"full",bg:"blue.50",children:(0,i.jsxs)(a.Text,{fontSize:"8px",fontWeight:"600",color:"blue.500",lineHeight:"1",children:[e.sessions," sessions"]})}),(0,i.jsxs)(a.Text,{fontSize:"8px",color:"gray.400",children:[e.timeSaved," min saved"]})]})]},e.name))})]})]}):(0,i.jsx)(a.Box,{p:{base:"4",md:"5"},children:(0,i.jsxs)(a.VStack,{align:"start",spacing:"3",children:[(0,i.jsxs)(a.HStack,{justify:"space-between",w:"full",align:"start",children:[(0,i.jsxs)(a.HStack,{spacing:"3",children:[(0,i.jsx)(a.Box,{w:"36px",h:"36px",borderRadius:"full",bg:"".concat(M.email.avatarColor,".100"),display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,children:(0,i.jsx)(a.Text,{fontSize:"sm",fontWeight:"700",color:"".concat(M.email.avatarColor,".700"),children:M.email.from.charAt(0)})}),(0,i.jsxs)(a.VStack,{align:"start",spacing:"0",children:[(0,i.jsx)(a.Text,{fontWeight:"700",fontSize:"sm",color:"gray.800",children:M.email.from}),(0,i.jsx)(a.Text,{fontSize:"xs",color:"gray.500",children:M.email.fromEmail})]})]}),(0,i.jsx)(a.Text,{fontSize:"xs",color:"gray.400",flexShrink:0,children:M.email.time})]}),(0,i.jsx)(a.Text,{fontWeight:"600",fontSize:"md",color:"gray.800",children:M.email.subject}),(0,i.jsx)(a.izJ,{}),(0,i.jsx)(a.Text,{fontSize:"sm",color:"gray.600",whiteSpace:"pre-wrap",lineHeight:"1.7",children:M.email.body})]})})},x)})}),(0,i.jsx)(l.M,{mode:"wait",children:w?(0,i.jsx)(c.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},style:{position:"absolute",top:"16px",right:"17px",bottom:"16px",width:D?"370px":"calc(100% - 16px)",borderRadius:"12px",boxShadow:"0 0 0 1px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04), 0 8px 16px rgba(0,0,0,0.06)",background:"#FFFFFF",display:"flex",flexDirection:"column",overflow:"hidden",fontFamily:"Inter, system-ui, sans-serif"},children:(0,i.jsxs)(a.kCb,{direction:"column",h:"full",children:[(0,i.jsxs)(a.HStack,{px:"5",h:"52px",borderBottom:"1px solid",borderColor:"#E5E7EB",justify:"space-between",flexShrink:0,children:[(0,i.jsxs)(a.HStack,{spacing:"2.5",children:[(0,i.jsx)(a.Box,{w:"36px",h:"36px",borderRadius:"12px",bg:"white",border:"1px solid",borderColor:"#E5E7EB",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",style:{boxShadow:"0 1px 3px rgba(0,0,0,0.08)"},children:(0,i.jsx)(s.default,{src:"/images/chatspark-mark.png",alt:"ChatSpark",width:24,height:24,style:{objectFit:"contain"}})}),(0,i.jsx)(a.Text,{fontSize:"15px",fontWeight:"600",color:"#111827",letterSpacing:"-0.02em",lineHeight:"1",children:"CoPilot"}),(0,i.jsx)(a.Box,{w:"8px",h:"8px",borderRadius:"full",bg:"green.500",flexShrink:0,title:"Connected"})]}),(0,i.jsx)(a.Box,{as:"button",w:"36px",h:"36px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",color:"#9CA3AF",_hover:{bg:"#F9FAFB",color:"#111827"},transition:"all 0.15s",onClick:()=>C(!1),children:(0,i.jsx)(a.JO$,{as:d.yoF,boxSize:"3.5"})})]}),(0,i.jsxs)(a.HStack,{px:"4",h:"36px",bg:"white",borderBottom:"1px solid",borderColor:"#E5E7EB",justify:"space-between",flexShrink:0,children:[(0,i.jsxs)(a.HStack,{spacing:"1",px:"2.5",py:"0.5",borderRadius:"9999px",bg:"#F9FAFB",border:"1px solid",borderColor:"#E5E7EB",cursor:"default",minW:"0",overflow:"hidden",children:[(0,i.jsx)(a.Text,{fontSize:"11px",fontWeight:"500",color:"#111827",noOfLines:1,maxW:"140px",children:"ChatSpark AI Agent"}),(0,i.jsx)(a.JO$,{as:d.kzR,boxSize:"2.5",color:"#9CA3AF",flexShrink:0})]}),(0,i.jsxs)(a.HStack,{spacing:"0.5",flexShrink:0,children:[(0,i.jsx)(a.Box,{w:"32px",h:"32px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",color:"#9CA3AF",cursor:"default",_hover:{bg:"#F9FAFB",color:"#111827"},transition:"all 0.15s",children:(0,i.jsx)(a.JO$,{as:d._4b,boxSize:"3.5"})}),(0,i.jsx)(a.Box,{as:"button",w:"32px",h:"32px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",color:B?"#111827":"#9CA3AF",bg:B?"rgba(59,130,246,0.08)":"transparent",cursor:"pointer",_hover:{bg:"#F9FAFB",color:"#111827"},transition:"all 0.15s",onClick:()=>F(!0),children:(0,i.jsx)(a.JO$,{as:d.XoX,boxSize:"3.5"})}),(0,i.jsx)(a.Box,{w:"32px",h:"32px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",color:"#9CA3AF",cursor:"default",_hover:{bg:"#F9FAFB",color:"#111827"},transition:"all 0.15s",children:(0,i.jsx)(a.JO$,{as:d.tai,boxSize:"3.5"})})]})]}),(0,i.jsxs)(a.Box,{ref:W,flex:"1",overflowY:"auto",px:"4",pt:"4",pb:"6",bg:"white",sx:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"},children:[S.map((e,t)=>(0,i.jsxs)(a.Box,{children:[(0,i.jsx)(a.kCb,{justify:"flex-end",mb:"3",children:(0,i.jsx)(a.Box,{bg:"#3B82F6",color:"white",px:"3.5",py:"2.5",fontSize:"13px",lineHeight:"1.7",maxW:"82%",style:{borderRadius:"12px 12px 3px 12px"},children:e.userMessage})}),(0,i.jsxs)(a.HStack,{align:"start",spacing:"2",mb:"4",children:[(0,i.jsx)(a.Box,{w:"20px",h:"20px",borderRadius:"6px",bg:"white",border:"1px solid",borderColor:"#E5E7EB",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,mt:"1",overflow:"hidden",style:{boxShadow:"0 1px 2px rgba(0,0,0,0.06)"},children:(0,i.jsx)(s.default,{src:"/images/chatspark-mark.png",alt:"ChatSpark",width:13,height:13,style:{objectFit:"contain"}})}),(0,i.jsxs)(a.Box,{flex:"1",minW:"0",children:[(0,i.jsx)(a.Box,{bg:"white",border:"1px solid",borderColor:"#E5E7EB",px:"3.5",py:"2.5",fontSize:"13px",color:"#111827",lineHeight:"1.7",style:{borderRadius:"3px 12px 12px 12px"},children:(0,i.jsx)("div",{className:"demo-md",dangerouslySetInnerHTML:{__html:p(e.copilotResponse)}})}),e.sources&&e.sources.length>0&&(0,i.jsxs)(a.Box,{mt:"2",children:[(0,i.jsx)(a.Text,{fontSize:"10px",fontWeight:"500",color:"#9
1CA3AF",textTransform:"uppercase",letterSpacing:"wider",mb:"1.5",children:"Sources"}),(0,i.jsx)(a.Eq9,{spacing:"1.5",children:e.sources.map((e,t)=>(0,i.jsx)(a.Ucj,{children:(0,i.jsxs)(a.HStack,{spacing:"1",px:"2",py:"1",borderRadius:"8px",border:"1px solid",borderColor:"action"===e.docType?"rgba(59,130,246,0.25)":"#E5E7EB",bg:"action"===e.docType?"rgba(239,246,255,0.8)":"#F9FAFB",cursor:"default",children:[(0,i.jsx)(a.JO$,{as:"action"===e.docType?d.kYI:"url"===e.docType?d.C1O:d.vrJ,boxSize:"3",color:"action"===e.docType?"#3B82F6":"url"===e.docType?"#3B82F6":"txt"===e.docType?"#6B7280":"#EF4444"}),(0,i.jsx)(a.Text,{fontSize:"10px",fontWeight:"500",color:"action"===e.docType?"#2563EB":"#6B7280",maxW:"110px",isTruncated:!0,children:e.name})]})},t))})]})]})]})]},t)),(0,i.jsx)(a.kCb,{justify:"flex-end",mb:"4",children:(0,i.jsx)(a.Box,{bg:"#3B82F6",color:"white",px:"3.5",py:"2.5",fontSize:"13px",lineHeight:"1.7",maxW:"82%",style:{borderRadius:"12px 12px 3px 12px"},children:I?L.userMessage:M.actions[0]})}),(0,i.jsxs)(a.HStack,{align:"start",spacing:"2",mb:"1",children:[(0,i.jsx)(a.Box,{w:"20px",h:"20px",borderRadius:"6px",bg:"white",border:"1px solid",borderColor:"#E5E7EB",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,mt:"1",overflow:"hidden",style:{boxShadow:"0 1px 2px rgba(0,0,0,0.06)"},children:(0,i.jsx)(s.default,{src:"/images/chatspark-mark.png",alt:"ChatSpark",width:13,height:13,style:{objectFit:"contain"}})}),(0,i.jsxs)(a.Box,{flex:"1",minW:"0",children:[(0,i.jsx)(a.Box,{bg:"white",border:"1px solid",borderColor:"#E5E7EB",px:"3.5",py:"2.5",fontSize:"13px",color:"#111827",lineHeight:"1.7",style:{borderRadius:"3px 12px 12px 12px"},children:(0,i.jsx)(l.M,{mode:"wait",children:"thinking"===_?(0,i.jsx)(c.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},children:(0,i.jsx)(h,{messages:J})},"thinking-".concat(j)):"streaming"===_||"complete"===_?(0,i.jsx)(c.E.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.2},children:(0,i.jsx)("div",{className:"demo-md",dangerouslySetInnerHTML:{__html:G}})},"content-".concat(j)):null})}),("streaming"===_||"complete"===_)&&(0,i.jsx)(a.Text,{fontSize:"11px",color:"#9CA3AF",mt:"1",lineHeight:"1",children:"Just now"}),"complete"===_&&(null===(e=null!==(o=null==L?void 0:L.sources)&&void 0!==o?o:M.sources)||void 0===e?void 0:e.length)>0&&(0,i.jsxs)(a.Box,{mt:"2",children:[(0,i.jsx)(a.Text,{fontSize:"10px",fontWeight:"500",color:"#9CA3AF",textTransform:"uppercase",letterSpacing:"wider",mb:"1.5",children:"Sources"}),(0,i.jsx)(a.Eq9,{spacing:"1.5",children:(null!==(n=null==L?void 0:L.sources)&&void 0!==n?n:M.sources).map((e,t)=>(0,i.jsx)(a.Ucj,{children:(0,i.jsxs)(a.HStack,{spacing:"1",px:"2",py:"1",borderRadius:"8px",border:"1px solid",borderColor:"action"===e.docType?"rgba(59,130,246,0.25)":"#E5E7EB",bg:"action"===e.docType?"rgba(239,246,255,0.8)":"#F9FAFB",cursor:"default",_hover:{borderColor:"action"===e.docType?"rgba(59,130,246,0.5)":"rgba(59,130,246,0.4)",color:"#3B82F6"},transition:"all 0.15s",children:[(0,i.jsx)(a.JO$,{as:"action"===e.docType?d.kYI:"url"===e.docType?d.C1O:d.vrJ,boxSize:"3",color:"action"===e.docType?"#3B82F6":"url"===e.docType?"#3B82F6":"txt"===e.docType?"#6B7280":"#EF4444"}),(0,i.jsx)(a.Text,{fontSize:"10px",fontWeight:"500",color:"action"===e.docType?"#2563EB":"#6B7280",maxW:"110px",isTruncated:!0,children:e.name})]})},t))})]})]})]}),(0,i.jsx)(a.Box,{ref:H,h:"1px"})]}),(0,i.jsx)(l.M,{children:"complete"===_&&(0,i.jsx)(c.E.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},transition:{duration:.2,delay:.05},style:{flexShrink:0},children:(0,i.jsx)(a.Box,{ref:P,borderTop:"1px solid",borderColor:"#E5E7EB",px:"3.5",py:"2",overflowX:"auto",style:{touchAction:"pan-x"},sx:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"},children:(0,i.jsx)(a.HStack,{spacing:"1.5",flexWrap:"nowrap",minW:"max-content",children:M.actions.map(e=>(0,i.jsxs)(a.HStack,{as:"button",spacing:"1",px:"2.5",py:"1",borderRadius:"9999px",border:"1px solid",borderColor:"#E5E7EB",bg:"#F9FAFB",cursor:"default",flexShrink:0,_hover:{bg:"#F3F4F6",borderColor:"#D1D5DB"},transition:"all 0.15s",children:[(0,i.jsx)(a.JO$,{as:g[e]||d.vrJ,boxSize:"3",color:"#6B7280"}),(0,i.jsx)(a.Text,{fontSize:"10px",fontWeight:"500",color:"#6B7280",whiteSpace:"nowrap",children:e})]},e))})})})}),(0,i.jsx)(a.Box,{borderTop:"1px solid",borderColor:"#E5E7EB",px:"3",py:"2",flexShrink:0,children:(0,i.jsxs)(a.HStack,{spacing:"2",align:"end",children:[(0,i.jsx)(a.Box,{flex:"1",bg:"#F9FAFB",borderRadius:"8px",border:"1px solid",borderColor:"#E5E7EB",px:"3",py:"2",fontSize:"13px",color:"#9CA3AF",lineHeight:"1.5",minH:"36px",display:"flex",alignItems:"center",userSelect:"none",style:{fontStyle:"italic"},children:"Ask anything..."}),(0,i.jsx)(a.Box,{w:"32px",h:"32px",borderRadius:"full",bg:"#3B82F6",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:"default",children:(0,i.jsx)(a.JO$,{as:d.EQn,boxSize:"3.5",color:"white"})})]})}),(0,i.jsx)(l.M,{children:B&&(0,i.jsxs)(c.E.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",stiffness:300,damping:30},style:{position:"absolute",inset:0,background:"#FFFFFF",zIndex:10,display:"flex",flexDirection:"column",fontFamily:"Inter, system-ui, sans-serif"},children:[(0,i.jsxs)(a.HStack,{px:"4",h:"48px",borderBottom:"1px solid",borderColor:"#E5E7EB",justify:"space-between",flexShrink:0,children:[(0,i.jsx)(a.Text,{fontSize:"14px",fontWeight:"600",color:"#111827",children:"History"}),(0,i.jsx)(a.Box,{as:"button",w:"32px",h:"32px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",color:"#9CA3AF",cursor:"pointer",_hover:{bg:"#F9FAFB",color:"#111827"},transition:"all 0.15s",onClick:()=>F(!1),children:(0,i.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:(0,i.jsx)("path",{d:"M6 6l8 8M14 6l-8 8"})})})]}),(0,i.jsx)(a.Box,{flex:"1",overflowY:"auto",sx:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"},children:u.map((e,t)=>{var o;return(0,i.jsx)(a.Box,{as:"button",w:"full",textAlign:"left",px:"4",py:"3",borderBottom:"1px solid",borderColor:"rgba(229,231,235,0.6)",cursor:"pointer",bg:x===t?"#F9FAFB":"transparent",_hover:{bg:"#F9FAFB"},transition:"background 0.15s",onClick:()=>{m(t),E(!0),F(!1)},children:(0,i.jsxs)(a.HStack,{justify:"space-between",align:"start",spacing:"2",children:[(0,i.jsxs)(a.Box,{minW:"0",flex:"1",children:[(0,i.jsx)(a.Text,{fontSize:"13px",color:"#111827",noOfLines:1,fontWeight:x===t?"600":"400",children:"dashboard"===e.type?"Dashboard \xb7 Key Takeaways":(null===(o=e.email)||void 0===o?void 0:o.subject)?e.email.subject:e.label}
1),(0,i.jsxs)(a.Text,{fontSize:"11px",color:"#9CA3AF",mt:"0.5",children:["ChatSpark AI Agent \xb7 ",y[t]||"Earlier"]})]}),x===t&&(0,i.jsx)(a.Box,{w:"6px",h:"6px",borderRadius:"full",bg:"#3B82F6",flexShrink:0,mt:"1"})]})},e.id)})}),(0,i.jsx)(a.Box,{px:"4",py:"3",borderTop:"1px solid",borderColor:"#E5E7EB",flexShrink:0,children:(0,i.jsxs)(a.Text,{fontSize:"11px",color:"#9CA3AF",cursor:"default",children:[u.length," conversations"]})})]})})]})},"expanded"):(0,i.jsx)(c.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},style:{position:"absolute",right:"20px",top:"50%",transform:"translateY(-50%)",width:"56px",height:"60px"},children:(0,i.jsx)(a.Box,{as:"button",w:"56px",h:"56px",borderRadius:"16px",bg:"white",border:"1px solid",borderColor:"#E5E7EB",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",style:{boxShadow:"0 1px 4px rgba(0,0,0,0.06)"},onClick:()=>C(!0),_hover:{borderColor:"#3B82F6"},transition:"border-color 0.15s",children:(0,i.jsx)(s.default,{src:"/images/chatspark-mark.png",alt:"ChatSpark",width:32,height:32,style:{objectFit:"contain"}})})},"collapsed")})]})]})]})}}}]);

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.