PageSourceSearch

https://autobidfix.com/assets/CustomerSupportWidget-ad1aca61.js

js autobidfix.com collected 2026-10-02 01:23:36 UTC 25,094 bytes, 122 lines download raw bytes

1import{r as m,j as e,A as k,m as j}from"./vendor-framer-db2f12a5.js";import{C as z}from"./circle-check-167a2c20.js";import{c as F,S as G,X as M,F as B,C as U,U as q,L as J}from"./index-05c65494.js";import{C as X}from"./chart-column-82e36c20.js";import{G as Y}from"./gavel-4c31e23d.js";import{S as Q}from"./settings-245d4e14.js";import{A as W}from"./arrow-left-548b6e4c.js";import{S as Z}from"./send-002a17ca.js";import{H as K}from"./headphones-76fd86b3.js";import"./vendor-react-cc5bcf5d.js";import"./vendor-pdf-5f794b66.js";import"./vendor-recharts-2adcf5ee.js";import"./vendor-i18n-6b96dd07.js";import"./vendor-radix-adc69a00.js";import"./vendor-firebase-c0f880b0.js";/**
2 * @license lucide-react v0.469.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const ee=F("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"}]]);/**
7 * @license lucide-react v0.469.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const te=F("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/**
12 * @license lucide-react v0.469.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const se=F("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]),R={receptionist:{id:"receptionist",name:"Receptionist",description:"Greets users and directs them to the right department.",color:"bg-slate-800",icon:"User"},billing:{id:"billing",name:"Subscriptions & Billing",description:"Expert in payments, invoices, and plan changes.",color:"bg-blue-600",icon:"CreditCard"},operations:{id:"operations",name:"Operations & System",description:"Expert in platform usage and system features.",color:"bg-amber-500",icon:"Settings"},auctions:{id:"auctions",name:"Reports & Auctions",description:"Expert in auction data and vehicle reports.",color:"bg-indigo-700",icon:"FileText"}},P={receptionist:"/images/logo-full.png",billing:"/images/agent-billing.jpg",operations:"/images/agent-operations.jpg",auctions:"/images/agent-auctions.jpg"},O=[{id:"abf-score",title:"What is ABF Score?",description:"Understand how the AutoBidFix Score works and what it means for your vehicles.",icon:"BarChart3",color:"text-blue-600",bgColor:"bg-blue-50",agent:"operations",tags:["abf score","score","rating","vehicle score","puntuacion","calificacion"],content:`# What is ABF Score?
17
18The **ABF Score** is AutoBidFix's proprietary vehicle evaluation metric that helps you make informed decisions at auction.
19
20## How is it calculated?
21
22The ABF Score considers multiple factors:
23
24- **Vehicle History** — Accident reports, title status, ownership history
25- **Market Value** — Current fair market value based on comparable sales
26- **Condition Assessment** — Mechanical and cosmetic condition indicators
27- **Auction Risk** — Historical auction performance and price volatility
28
29## Score Ranges
30
31| Score | Rating | Recommendation |
32|-------|--------|----------------|
33| 90-100 | Excellent | Strong buy candidate |
34| 75-89 | Good | Worth considering |
35| 60-74 | Fair | Proceed with caution |
36| Below 60 | Risk | Additional research needed |
37
38## Tips
39
40- Always compare the ABF Score with your own inspection
41- A high score doesn't guarantee no issues — it indicates lower risk
42- The score updates as new information becomes available
43
44*For more details, chat with our Operations team.*`},{id:"how-credits-work",title:"How Credits Work?",description:"Learn about the credit system, how to purchase and use them.",icon:"Coins",color:"text-amber-600",bgColor:"bg-
44amber-50",agent:"billing",tags:["credits","creditos","purchase","buy","comprar","pricing","precio","plan"],content:`# How Credits Work
45
46Credits are the currency you use within AutoBidFix to access vehicle reports and auction tools.
47
48## Purchasing Credits
49
50You can purchase credits through:
51
521. **Subscription Plans** — Monthly plans with included credits
532. **Credit Packs** — One-time purchases of credit bundles
543. **Pay-per-report** — Individual report purchases
55
56## Credit Usage
57
58| Action | Credits Required |
59|--------|------------------|
60| Basic Vehicle Report | 1 credit |
61| Full Vehicle Report | 3 credits |
62| Auction Analysis | 2 credits |
63| Market Value Report | 2 credits |
64
65## Credit Expiration
66
67- Subscription credits renew monthly
68- Purchased credit packs expire after **12 months**
69- Unused subscription credits do **not** roll over
70
71*For billing questions, chat with our Billing team.*`},{id:"how-to-read-reports",title:"How to Read Reports?",description:"A guide to understanding and interpreting AutoBidFix vehicle reports.",icon:"FileText",color:"text-indigo-600",bgColor:"bg-indigo-50",agent:"auctions",tags:["reports","reportes","vehicle report","read","leer","interpretar","understand"],content:`# How to Read Reports
72
73AutoBidFix vehicle reports provide comprehensive information to help you make smart auction decisions.
74
75## Report Sections
76
77### 1. Vehicle Overview
78Basic information: year, make, model, VIN, mileage, and title status.
79
80### 2. History Check
81- **Accident History** — Reported accidents and severity
82- **Title Records** — Clean, salvage, rebuilt, flood, etc.
83- **Ownership History** — Number of previous owners
84
85### 3. ABF Score Analysis
86The overall score with breakdown by category.
87
88### 4. Market Analysis
89- **Fair Market Value** — Estimated retail value
90- **Auction Price Range** — Expected auction price range
91- **Price Trend** — Whether prices are trending up or down
92
93### 5. Risk Assessment
94Highlighted risk factors and recommendations.
95
96*For help interpreting a specific report, chat with our Reports & Auctions team.*`},{id:"storage-expiration",title:"Storage & Expiration",description:"How report storage works and when your data expires.",icon:"HardDrive",color:"text-slate-700",bgColor:"bg-slate-100",agent:"operations",tags:["storage","almacenamiento","expiration","expiracion","data","datos","guardar","save"],content:`# Storage & Expiration
97
98Learn how AutoBidFix stores your reports and when data expires.
99
100## Report Storage
101
102- All purchased reports are stored in your account
103- Reports are accessible from **My Reports** in the dashboard
104- You can download PDF versions at any time
105
106## Expiration Policy
107
108| Item | Retention Period |
109|------|------------------|
110| Vehicle Reports | 24 months |
111| Auction Analysis | 12 months |
112| Account Data | Active while subscribed |
113| Downloaded PDFs | No expiration (local) |
114
115*For questions about your storage, chat with our Operations team.*`}],_={BarChart3:X,Coins:ee,FileText:B,HardDrive:te,CreditCard:U,Gavel:Y,Settings:Q},re=({onStartChat:a,onOpenGuide:p})=>{const[n,l]=m.useState(""),[x,s]=m.useState(!1),r=m.useRef(null);m.useEffect(()=>{const t=h=>{r.current&&!r.current.contains(h.target)&&s(!1)};return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[]);const c=n.trim().length>=2?O.filter(t=>{const h=n.toLowerCase();return t.title.toLowerCase().includes(h)||t.description.toLowerCase().includes(h)||t.tags.some(u=>u.includes(h))}):[],d=t=>{t.preventDefault(),c.length>0?(p(c[0]),l(""),s(!1)):n.trim()&&a("receptionist")},f=O.slice(0,4);return e.jsxs("div",{className:"font-sans",children:[e.jsxs("div",{className:"bg-[#1B2A4A] p-5 flex justify-between items-center text-white rounded-t-2xl",children:[e.jsx("div",{className:"flex items-center gap-3",children:e.jsx("img",{src:"/images/logo-full.png",alt:"AutoBidFix",className:"h-10",onError:t=>{t.target.style.display="none"}})}),e.jsxs("div",{className:"flex items-center gap-2 bg-white/10 px-3 py-1.5 rounded-full border border-white/10",children:[e.jsx("div",{className:"w-2 h-2 bg-emerald-400 rounded-full animate-pulse"}),e.jsx("span",{className:"text-xs font-medium text-emerald-400",children:"Online"})]})]}),e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("h2",{className:"text-xl font-bold text-slate-900 mb-1",children:"Customer Support"}),e.jsxs("p",{className:"text-slate-500 flex items-center gap-1.5 text-xs",children:["All Systems Operational ",e.jsx(z,{className:"w-3 h-3 text-emerald-500"})]})]}),e.jsxs("div",{className:"relative mb-8",ref:r,children:[e.jsxs("form",{onSubmit:d,className:"relative group",children:[e.jsx("div",{className:"absolute inset-y-0 left-3 flex items-center pointer-events-none",children:e.jsx(G,{className:"w-4 h-4 text-slate-400 group-focus-within:text-amber-500 transition-colors"})}),e.jsx("input",{type:"text",value:n,onChange:t=>{l(t.target.value),s(!0)},onFocus:()=>s(!0),placeholder:"Search for help...",className:"w-full pl-10 pr-4 py-3 bg-slate-50 border border-slate-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-amber-400 focus:border-transparent transition-all text-slate-700 text-sm"}),n&&e.jsx("button",{type:"button",onClick:()=>{l(""),s(!1)},className:"absolute right-3 top-1/2 -translate-y-1/2 p-1 text-slate-400 hover:text-slate-600",children:e.jsx(M,{className:"w-3 h-3"})})]}),e.jsx(k,{children:x&&n.trim().length>=2&&e.jsx(j.div,{initial:{opacity:0,y:-5}
115,animate:{opacity:1,y:0},exit:{opacity:0,y:-5},className:"absolute top-full left-0 right-0 mt-2 bg-white rounded-xl shadow-lg border border-slate-200 z-30 overflow-hidden",children:c.length>0?e.jsx("div",{className:"py-1",children:c.map(t=>{const h=_[t.icon]||B;return e.jsxs("button",{onClick:()=>{p(t),l(""),s(!1)},className:"w-full flex items-center gap-3 px-4 py-2.5 hover:bg-slate-50 transition-colors text-left",children:[e.jsx("div",{className:`${t.bgColor} ${t.color} w-8 h-8 rounded-lg flex items-center justify-center flex-shrink-0`,children:e.jsx(h,{className:"w-4 h-4"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-semibold text-slate-800 truncate",children:t.title}),e.jsx("p",{className:"text-xs text-slate-500 truncate",children:t.description})]})]},t.id)})}):e.jsxs("div",{className:"p-4 text-center",children:[e.jsx("p",{className:"text-sm text-slate-500 mb-2",children:"No guides found"}),e.jsx("button",{onClick:()=>{a("receptionist"),l(""),s(!1)},className:"text-sm text-amber-600 hover:text-amber-700 font-medium",children:"Ask our AI assistant instead"})]})})})]}),e.jsxs("div",{className:"grid grid-cols-1 gap-4 mb-8",children:[e.jsx(j.div,{whileHover:{y:-2},className:"bg-blue-600 rounded-xl p-4 text-white shadow-lg relative overflow-hidden cursor-pointer",onClick:()=>a("billing"),children:e.jsxs("div",{className:"relative z-10 flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full overflow-hidden border-2 border-white/30 shadow-lg flex-shrink-0",children:e.jsx("img",{src:"/images/agent-billing.jpg",alt:"Billing",className:"w-full h-full object-cover",onError:t=>{t.target.style.display="none"}})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-sm font-bold",children:"Account & Billing"}),e.jsx("p",{className:"text-[10px] opacity-80",children:"Payments, Invoices, Plans"})]}),e.jsx("span",{className:"text-lg",children:"→"})]})}),e.jsx(j.div,{whileHover:{y:-2},className:"bg-amber-400 rounded-xl p-4 text-slate-900 shadow-lg relative overflow-hidden cursor-pointer",onClick:()=>a("operations"),children:e.jsxs("div",{className:"relative z-10 flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full overflow-hidden border-2 border-slate-900/20 shadow-lg flex-shrink-0",children:e.jsx("img",{src:"/images/agent-operations.jpg",alt:"Operations",className:"w-full h-full object-cover",onError:t=>{t.target.style.display="none"}})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-sm font-bold",children:"Credits & Reports"}),e.jsx("p",{className:"text-[10px] opacity-80",children:"Credits, ABF Score, Reports"})]}),e.jsx("span",{className:"text-lg",children:"→"})]})}),e.jsx(j.div,{whileHover:{y:-2},className:"bg-slate-800 rounded-xl p-4 text-white shadow-lg relative overflow-hidden cursor-pointer",onClick:()=>a("auctions"),children:e.jsxs("div",{className:"relative z-10 flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full overflow-hidden border-2 border-white/30 shadow-lg flex-shrink-0",children:e.jsx("img",{src:"/images/agent-auctions.jpg",alt:"Auctions",className:"w-full h-full object-cover",onError:t=>{t.target.style.display="none"}})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-sm font-bold",children:"Technical Issue"}),e.jsx("p",{className:"text-[10px] opacity-80",children:"Errors, Bugs, Performance"})]}),e.jsx("span",{className:"text-lg",children:"→"})]})})]}),e.jsxs("div",{className:"mb-6",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx("div",{className:"w-1.5 h-1.5 bg-amber-400 rounded-full"}),e.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Quick Guides"}),e.jsx("div",{className:"flex-1 h-px bg-slate-100 ml-2"})]}),e.jsx("div",{className:"grid grid-cols-2 gap-3",children:f.map(t=>{const h=_[t.icon]||B;return e.jsxs("div",{onClick:()=>p(t),className:"bg-slate-50 hover:bg-slate-100 p-3 rounded-xl border border-slate-100 transition-colors cursor-pointer group",children:[e.jsx("div",{className:`${t.bgColor} ${t.color} w-8 h-8 rounded-lg flex items-center justify-center mb-2 group-hover:scale-110 transition-transform`,children:e.jsx(h,{className:"w-4 h-4"})}),e.jsx("p",{className:"text-[11px] font-bold text-slate-700",children:t.title})]},t.id)})})]}),e.jsxs("button",{onClick:()=>a(),className:"w-full py-3 bg-amber-400 hover:bg-amber-500 text-slate-900 font-bold rounded-xl transition-all shadow-lg shadow-amber-100 flex items-center justify-center gap-2 text-sm",children:["Start Chat ",e.jsx("span",{className:"text-lg",children:"→"})]})]})]})},ae="https://amschxuhhialihmhzupq.supabase.co",L="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImFtc2NoeHVoaGlhbGlobWh6dXBxIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzAzODUzMjUsImV4cCI6MjA4NTk2MTMyNX0.mVM9gw6cLd_qo5ax4Xa3bWLC9yPWFGtkOgrqSc958a4",ne={"Content-Type":"application/json",apikey:L,Authorization:`Bearer ${L}`};async function ie(a,p,n,l,x,s,r){var y;const c=await fetch(`${ae}/functions/v1/chat-agent`,{method:"POST",headers:ne,body:JSON.stringify({message:p,image:x||null,session_id:n,agent_type:a,history:l})});if(!c.ok)throw new Error(`Chat error: ${c.status}`);const d=(y=c.body)==null?void 0:y.getReader();if(!d)throw new Error("No response stream");const f=new TextDecoder;let t=null,h=n,u=a,S="";for(;;){const{done:C,value:i}=await d.read();if(C)break;S+=f.decode(i,{stream:!0});const N=S.split(`
116`);S=N.pop()||"";
116for(const A of N){if(!A.startsWith("data: "))continue;const b=A.slice(6).trim();if(b)try{const o=JSON.parse(b);if(o.routed_to){u=o.routed_to,r==null||r(o.routed_to,o.agent_name);continue}if(o.text){s==null||s(o.text);continue}if(o.done){t=o.interaction_id,h=o.session_id||n,u=o.agent_type||u;continue}if(o.error)throw new Error(o.error)}catch(o){if(o instanceof SyntaxError)continue;throw o}}}return{interaction_id:t,session_id:h,agent_type:u}}const oe=({initialAgent:a="receptionist",onClose:p})=>{var C;const[n,l]=m.useState([{id:"1",role:"assistant",content:a==="receptionist"?"Hola! Soy el recepcionista de AutoBidFix. En que puedo ayudarte hoy?":`Hola! Soy el experto de ${R[a].name}. En que puedo ayudarte?`,agent:a,timestamp:Date.now()}]),[x,s]=m.useState(""),[r,c]=m.useState(a),[d,f]=m.useState(!1),[t]=m.useState(()=>`session-${Date.now()}-${Math.random().toString(36).slice(2,8)}`),h=m.useRef(null),u=()=>{var i;(i=h.current)==null||i.scrollIntoView({behavior:"smooth"})};m.useEffect(()=>{u()},[n]);const S=async i=>{if(i==null||i.preventDefault(),!x.trim()||d)return;const N={id:Date.now().toString(),role:"user",content:x,timestamp:Date.now()};l(b=>[...b,N]);const A=x;s(""),f(!0);try{const b=n.filter(g=>g.content).map(g=>({role:g.role==="user"?"user":"model",text:g.content})),o=(Date.now()+2).toString(),$={id:o,role:"assistant",content:"",agent:r,timestamp:Date.now()};l(g=>[...g,$]);const H=await ie(r,A,t,b,void 0,g=>{l(E=>E.map(w=>w.id===o?{...w,content:w.content+g}:w))},(g,E)=>{c(g),l(w=>{const T={id:(Date.now()+1).toString(),role:"assistant",content:`Te estoy transfiriendo al departamento de ${E} para ayudarte mejor.`,agent:"receptionist",timestamp:Date.now()},D=w.findIndex(v=>v.id===o);if(D>=0){const v=[...w];v.splice(D,0,T);const I=v.findIndex(V=>V.id===o);return I>=0&&(v[I]={...v[I],agent:g}),v}return[...w,T]})});H.agent_type!==r&&c(H.agent_type)}catch(b){console.error("Chat Error:",b),l(o=>[...o,{id:Date.now().toString(),role:"assistant",content:"Lo siento, ha ocurrido un error. Por favor, intenta de nuevo.",timestamp:Date.now()}])}finally{f(!1)}},y=R[r]||R.receptionist;return e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsxs("div",{className:`${y.color} p-3 text-white flex justify-between items-center transition-colors duration-500 rounded-t-2xl`,children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{onClick:p,className:"p-1.5 hover:bg-white/10 rounded-full transition-colors",children:e.jsx(W,{className:"w-4 h-4"})}),e.jsx("div",{className:"w-8 h-8 rounded-full overflow-hidden border-2 border-white/30 shadow-sm",children:e.jsx("img",{src:P[r],alt:y.name,className:"w-full h-full object-cover",onError:i=>{i.target.style.display="none"}})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-sm",children:y.name}),e.jsx("p",{className:"text-[9px] opacity-80 uppercase tracking-widest",children:"Agent Active"})]})]}),e.jsx("button",{onClick:p,className:"p-1.5 hover:bg-white/10 rounded-full transition-colors",children:e.jsx(M,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4 bg-slate-50",children:[e.jsx(k,{initial:!1,children:n.map(i=>e.jsx(j.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:`flex ${i.role==="user"?"justify-end":"justify-start"}`,children:e.jsxs("div",{className:`flex gap-2 max-w-[85%] ${i.role==="user"?"flex-row-reverse":"flex-row"}`,children:[i.role==="user"?e.jsx("div",{className:"w-7 h-7 rounded-full flex items-center justify-center shrink-0 shadow-sm bg-amber-400 text-slate-900",children:e.jsx(q,{className:"w-3.5 h-3.5"})}):e.jsx("div",{className:"w-7 h-7 rounded-full overflow-hidden shrink-0 shadow-sm border border-slate-200",children:e.jsx("img",{src:P[i.agent||"receptionist"],alt:"",className:"w-full h-full object-cover",onError:N=>{N.target.style.display="none"}})}),e.jsxs("div",{className:`p-3 rounded-2xl shadow-sm text-sm ${i.role==="user"?"bg-amber-400 text-slate-900 rounded-tr-none":"bg-white text-slate-700 rounded-tl-none border border-slate-100"}`,children:[e.jsx("div",{className:"whitespace-pre-wrap break-words",children:i.content}),e.jsx("div",{className:`text-[9px] mt-1.5 opacity-50 ${i.role==="user"?"text-right":"text-left"}`,children:new Date(i.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]})]})},i.id))}),d&&((C=n[n.length-1])==null?void 0:C.content)===""&&e.jsx("div",{className:"flex justify-start",children:e.jsxs("div",{className:"flex gap-2 items-center text-slate-400",children:[e.jsx(J,{className:"w-4 h-4 animate-spin"}),e.jsx("span",{className:"text-xs italic",children:"Thinking..."})]})}),e.jsx("div",{ref:h})]}),e.jsxs("form",{onSubmit:S,className:"p-3 bg-white border-t border-slate-100 flex gap-2 items-center",children:[e.jsx("input",{type:"text",value:x,onChange:i=>s(i.target.value),placeholder:"Escribe tu mensaje...",className:"flex-1 py-2.5 px-3 bg-slate-50 border border-slate-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-amber-400 focus:border-transparent transition-all text-slate-700 text-sm"}),e.jsx("button",{type:"submit",disabled:!x.trim()||d,className:`p-2.5 rounded-xl transition-all ${!x.trim()||d?"bg-slate-100 text-slate-400 cursor-not-allowed":"bg-amber-400 text-slate-900 hover:bg-amber-500"}`,children:e.jsx(Z,{className:"w-4 h-4"})})]})]})},le=({guide:a,onClose:p,onStartChat:n})=>{const l=x=>x.split(`
117`).map((s,r)=>{if(s.startsWith("# "))return e.jsx("h1",{className:"text-xl font-bold text-slate-900 mb-3",children:s.slice(2)},r);if(s.startsWith("## "))return e.jsx("h2",{className:"text-lg font-semibold text-slate-800 mt-5 mb-2",children:s.slice(3)},r);if(s.startsWith("### "))return e.jsx("h3",{className:"text-base font-semibold text-slate-800 mt-4 mb-1",children:s.slice(4)},r);if(s.startsWith("- **")){const d=s.match(/^- \*\*(.+?)\*\*(.*)$/);if(d)return e.jsxs("li",{className:"ml-4 text-slate-600 text-sm mb-1",children:[e.jsx("strong",{className:"text-slate-800",children:d[1]}),d[2]]},r)}if(s.startsWith("- "))return e.jsx("li",{className:"ml-4 text-slate-600 text-sm mb-1",children:s.slice(2)},r);if(s.startsWith("| ")&&s.includes("|"))return null;if(s.startsWith("*")&&s.endsWith("*"))return e.jsx("p",{className:"text-sm text-slate-500 italic mt-3",children:s.slice(1,-1)},r);if(s.trim()==="")return e.jsx("div",{className:"h-2"},r);const c=s.split(/\*\*(.+?)\*\*/g);return c.length>1?e.jsx("p",{className:"text-sm text-slate-600 mb-1",children:c.map((d,f)=>f%2===1?e.jsx("strong",{className:"text-slate-800",children:d},f):d)},r):e.jsx("p",{className:"text-sm text-slate-600 mb-1",children:s},r)});return e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsxs("div",{className:"bg-[#1B2A4A] p-3 text-white flex items-center gap-2 rounded-t-2xl",children:[e.jsx("button",{onClick:p,className:"p-1.5 hover:bg-white/10 rounded-full transition-colors",children:e.jsx(W,{className:"w-4 h-4"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"font-bold text-sm truncate",children:a.title}),e.jsx("p",{className:"text-[9px] opacity-80 truncate",children:a.description})]})]}),e.jsx("div",{className:"flex-1 overflow-y-auto p-5",children:l(a.content)}),e.jsx("div",{className:"p-3 border-t border-slate-100 bg-slate-50",children:e.jsxs("button",{onClick:()=>n(a.agent),className:"w-full py-2.5 bg-amber-400 hover:bg-amber-500 text-slate-900 font-bold rounded-xl transition-colors flex items-center justify-center gap-2 text-sm",children:[e.jsx(se,{className:"w-4 h-4"}),"Chat with an expert"]})})]})},Se=()=>{const[a,p]=m.useState(!1),[n,l]=m.useState("dashboard"),[x,s]=m.useState(void 0),[r,c]=m.useState(null),d=u=>{s(u||"receptionist"),l("chat")},f=u=>{c(u),l("guide")},t=()=>{l("dashboard"),s(void 0),c(null)},h=()=>{p(!1),setTimeout(()=>{l("dashboard"),s(void 0),c(null)},300)};return e.jsxs(e.Fragment,{children:[e.jsx(k,{children:!a&&e.jsx(j.button,{initial:{scale:0,opacity:0}
117,animate:{scale:1,opacity:1},exit:{scale:0,opacity:0},whileHover:{scale:1.1},whileTap:{scale:.95},onClick:()=>p(!0),className:"fixed bottom-6 right-6 z-[9999] w-14 h-14 bg-[#1B2A4A] hover:bg-[#243559] text-white rounded-full shadow-2xl flex items-center justify-center transition-colors group",title:"Customer Support",children:e.jsx(K,{className:"w-6 h-6 group-hover:scale-110 transition-transform"})})}),e.jsx(k,{children:a&&e.jsxs(j.div,{initial:{opacity:0,y:20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:20,scale:.95},transition:{type:"spring",damping:25,stiffness:300},className:"fixed bottom-4 right-4 sm:bottom-6 sm:right-6 z-[9999] w-[calc(100vw-32px)] sm:w-[400px] h-[80vh] sm:h-[650px] max-h-[85vh] max-w-[calc(100vw-32px)] sm:max-w-[calc(100vw-48px)] rounded-2xl shadow-2xl overflow-hidden border border-slate-200 bg-white flex flex-col",children:[e.jsx("button",{onClick:h,className:"absolute top-3 right-3 z-[10000] w-7 h-7 bg-white/90 hover:bg-white text-slate-600 hover:text-slate-900 rounded-full shadow-md flex items-center justify-center transition-all",title:"Close",children:e.jsx(M,{className:"w-3.5 h-3.5"})}),e.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:n==="dashboard"&&e.jsx(re,{onStartChat:d,onOpenGuide:f})}),n==="chat"&&e.jsx("div",{className:"absolute inset-0 bg-white flex flex-col rounded-2xl",children:e.jsx(oe,{initialAgent:x,onClose:t})}),n==="guide"&&r&&e.jsx("div",{className:"absolute inset-0 bg-white flex flex-col rounded-2xl",children:e.jsx(le,{guide:r,onClose:t,onStartChat:u=>{s(u),l("chat")}})})]})}),e.jsx("style",{dangerouslySetInnerHTML:{__html:`
118        .fixed [class*="overflow-y-auto"]::-webkit-scrollbar { width: 4px; }
119        .fixed [class*="overflow-y-auto"]::-webkit-scrollbar-track { background: transparent; }
120        .fixed [class*="overflow-y-auto"]::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
121        .fixed [class*="overflow-y-auto"]::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
122      `}})]})};export{Se as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.