1import{f as e,b as s,_ as t}from"./index-BRFDVCIf.js";import{r as a,j as l,$ as n,aa as r,b3 as i,aB as o,ab as d,ap as c,a5 as m,b4 as x,X as u,b5 as h,aR as p,aS as b,t as f,ah as j,b6 as g,ai as y,b7 as N,b8 as v,aT as w,aX as _}from"./vendor-react-C727waDe.js";import{A as C}from"./AdminLayout-5lzb9hC1.js";import{S}from"./StatsCard-DGo0dXDf.js";import{a as k,A as L}from"./vendor-motion-BzYzDwMV.js";import"./vendor-charts-Cm1nTONR.js";import"./vendor-ui-ByoYm48K.js";import"./button-Da3zuaHi.js";import"./logo-DqVeeaPd.js";const A=25,M=e=>{if(!e)return"â";try{return new Date(e).toLocaleString("en-IN",{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",timeZone:"Asia/Kolkata"})}catch{return e}},P=e=>{switch(e){case"completed":return"bg-emerald-50 text-emerald-700 border-emerald-200";case"contacted":return"bg-blue-50 text-blue-700 border-blue-200";case"new":return"bg-amber-50 text-amber-700 border-amber-200";case"qualified":return"bg-violet-50 text-violet-700 border-violet-200";default:return"bg-slate-50 text-slate-700 border-slate-200"}},K=()=>{const{token:f,logout:j}=e(),[g,y]=a.useState([]),[N,v]=a.useState({total:0,new:0,contacted:0,completed:0,paid:0}),[w,_]=a.useState({statuses:[],leadFors:[]}),[K,U]=a.useState(!0),[B,E]=a.useState(""),[R,I]=a.useState(""),[D,F]=a.useState(""),[Y,V]=a.useState("created_at"),[O,H]=a.useState("desc"),[z,q]=a.useState(1),J=async()=>{U(!0);try{const e=new URLSearchParams;B&&e.set("search",B),R&&e.set("status",R),D&&e.set("lead_for",D);const t=e.toString(),a=await fetch(`${s.ADMIN_LEADS_LIST}?${t}`,{headers:{Authorization:`Bearer ${f}`}}),l=await a.json();l.ok&&(y(l.leads),v(l.stats),_(l.filters))}catch(e){}finally{U(!1),q(1)}};a.useEffect(()=>{J()},[R,D]);const X=e=>{Y===e?H(e=>"asc"===e?"desc":"asc"):(V(e),H("desc")),q(1)},Z=a.useMemo(()=>{const e=B.trim().toLowerCase();let s=g;return e&&(s=s.filter(s=>[s.full_name,s.email,s.contact_number,s.city,s.business_name,s.plan_name,s.company_name].filter(Boolean).some(s=>s.toLowerCase().includes(e)))),s=[...s].sort((e,s)=>{const t=(e[Y]||"").toLowerCase(),a=(s[Y]||"").toLowerCase();return t<a?"asc"===O?-1:1:t>a?"asc"===O?1:-1:0}),s},[g,B,Y,O]),G=Math.max(1,Math.ceil(Z.length/A)),Q=Math.min(z,G),W=Z.slice((Q-1)*A,Q*A),[ee,se]=a.useState(null);return l.jsxs(l.Fragment,{children:[l.jsxs(n,{children:[l.jsx("title",{children:"Leads | SpeedTech.ai Admin"}),l.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),l.jsxs(C,{onLogout:j,children:[l.jsxs(k.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},children:[l.jsx("div",{className:"mb-6",children:l.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center gap-2 text-sm text-slate-500 mb-1",children:[l.jsx(r,{className:"h-4 w-4"}),l.jsx("span",{children:"Lead Management"})]}),l.jsx("h1",{className:"text-2xl sm:text-3xl font-bold text-slate-800",children:"Leads"}),l.jsxs("p",{className:"text-slate-500 mt-1",children:["All leads captured from forms and product pages â ",N.total," total"]})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsxs("button",{onClick:()=>{const e=Z.map(e=>[e.id,e.full_name||"",e.email||"",e.contact_number||"",e.company_name||"",e.city||"",e.business_name||"",e.business_type||"",e.plan_name||"",e.plan_code||"",e.monthly_calls||"",e.referred_by||"",e.lead_for||"",e.status,e.email_verified?"Yes":"No",e.has_payment?"Yes":"No",e.created_at,e.updated_at]),s=[["ID","Name","Email","Phone","Company","City","Business Name","Business Type","Plan","Plan Code","Monthly Calls","Referred By","Lead For","Status","Verified","Has Payment","Created","Updated"].join(","),...e.map(e=>e.map(e=>`"${(e||"").toString().replace(/"/g,'""')}"`).join(","))].join("\n"),t=new Blob(["\ufeff"+s],{type:"text/csv;charset=utf-8;"}),a=URL.createObjectURL(t),l=document.createElement("a");l.href=a,l.download=`leads-export-${(new Date).toISOString().slice(0,10)}.csv`,document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(a)},disabled:0===Z.length,className:"inline-flex items-center gap-2 px-3.5 py-2 rounded-xl bg-white border border-slate-200 text-slate-600 hover:bg-slate-50 hover:text-slate-900 text-sm font-medium transition-colors disabled:opacity-40",children:[l.jsx(i,{className:"h-4 w-4"})," CSV"]}),l.jsxs("button",{onClick:()=>{t(()=>import("./xlsx-ByDo_lG2.js"),[]).then(e=>{const s=Z.map(e=>[e.id,e.full_name||"",e.email||"",e.contact_number||"",e.company_name||"",e.city||"",e.business_name||"",e.business_type||"",e.plan_name||"",e.plan_code||"",e.monthly_calls||"",e.referred_by||"",e.lead_for||"",e.status,e.email_verified?"Yes":"No",e.has_payment?"Yes":"No",e.created_at,e.updated_at]),t=e.utils.aoa_to_sheet([["ID","Name","Email","Phone","Company","City","Business N
1ame","Business Type","Plan","Plan Code","Monthly Calls","Referred By","Lead For","Status","Verified","Has Payment","Created","Updated"],...s]),a=e.utils.book_new();e.utils.book_append_sheet(a,t,"Leads"),e.writeFile(a,`leads-export-${(new Date).toISOString().slice(0,10)}.xlsx`)})},disabled:0===Z.length,className:"inline-flex items-center gap-2 px-3.5 py-2 rounded-xl bg-gradient-to-r from-blue-500 to-indigo-500 text-white text-sm font-medium shadow-md shadow-blue-500/20 hover:shadow-lg transition-all disabled:opacity-40",children:[l.jsx(i,{className:"h-4 w-4"})," Excel"]}),l.jsxs("button",{onClick:J,className:"inline-flex items-center gap-2 px-3.5 py-2 rounded-xl bg-white border border-slate-200 text-slate-600 hover:bg-slate-50 hover:text-slate-900 text-sm font-medium transition-colors",children:[l.jsx(o,{className:"h-4 w-4 "+(K?"animate-spin":"")}),"Refresh"]})]})]})}),l.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-5 gap-4 mb-6",children:[l.jsx(S,{title:"Total Leads",value:N.total,icon:r,iconColor:"text-blue-500",delay:0}),l.jsx(S,{title:"New",value:N.new,icon:d,iconColor:"text-amber-500",delay:1}),l.jsx(S,{title:"Contacted",value:N.contacted,icon:c,iconColor:"text-sky-500",delay:2}),l.jsx(S,{title:"Completed",value:N.completed,icon:m,iconColor:"text-emerald-500",delay:3}),l.jsx(S,{title:"Converted",value:N.paid,icon:m,iconColor:"text-violet-500",delay:4})]}),l.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200/60 shadow-sm p-4 mb-4",children:[l.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center gap-3",children:[l.jsxs("div",{className:"relative flex-1 min-w-0",children:[l.jsx(x,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-slate-400"}),l.jsx("input",{type:"text",value:B,onChange:e=>{E(e.target.value),q(1)},placeholder:"Search by name, email, phone, city, business, planâ¦",className:"w-full pl-9 pr-9 py-2.5 text-sm bg-slate-50 border border-slate-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-blue-500/30 focus:border-blue-400 placeholder:text-slate-400"}),B&&l.jsx("button",{onClick:()=>E(""),className:"absolute right-2 top-1/2 -translate-y-1/2 p-1 rounded-md hover:bg-slate-200",children:l.jsx(u,{className:"h-3.5 w-3.5 text-slate-500"})})]}),l.jsxs("select",{value:R,onChange:e=>{I(e.target.value)},className:"px-3 py-2.5 text-sm bg-slate-50 border border-slate-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-blue-500/30 focus:border-blue-400 text-slate-700",children:[l.jsx("option",{value:"",children:"All Statuses"}),w.statuses.map(e=>l.jsx("option",{value:e,children:e.charAt(0).toUpperCase()+e.slice(1)},e))]}),l.jsxs("select",{value:D,onChange:e=>{F(e.target.value)},className:"px-3 py-2.5 text-sm bg-slate-50 border border-slate-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-blue-500/30 focus:border-blue-400 text-slate-700",children:[l.jsx("option",{value:"",children:"All Types"}),w.leadFors.map(e=>l.jsx("option",{value:e,children:e},e))]}),l.jsx("div",{className:"text-xs text-slate-500 whitespace-nowrap",children:K?"Loadingâ¦":`${Z.length} of ${g.length} leads`})]}),(R||D||B)&&l.jsxs("div",{className:"flex items-center gap-2 mt-3 pt-3 border-t border-slate-100",children:[l.jsx(h,{className:"h-3.5 w-3.5 text-slate-400"}),l.jsx("span",{className:"text-xs text-slate-500",children:"Active filters:"}),R&&l.jsxs("button",{onClick:()=>I(""),className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-blue-50 text-blue-700 text-xs border border-blue-200 hover:bg-blue-100",children:["Status: ",R," ",l.jsx(u,{className:"h-3 w-3"})]}),D&&l.jsxs("button",{onClick:()=>F(""),className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-violet-50 text-violet-700 text-xs border border-violet-200 hover:bg-violet-100",children:["Type: ",D," ",l.jsx(u,{className:"h-3 w-3"})]}),B&&l.jsxs("button",{onClick:()=>E(""),className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-amber-50 text-amber-700 text-xs border border-amber-200 hover:bg-amber-100",children:['Search: "',B,'" ',l.jsx(u,{className:"h-3 w-3"})]}),l.jsx("button",{onClick:()=>{I(""),F(""),E("")},className:"text-xs text-slate-500 hover:text-slate-800 ml-auto underline",children:"Clear all"})]})]}),l.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200/60 shadow-sm overflow-hidden",children:[K?l.jsx("div",{className:"p-4 space-y-3",children:[1,2,3,4,5].map(e=>l.jsxs("div",{className:"animate-pulse flex items-center gap-4 p-3",children:[l.jsx("div",{className:"h-10 w-10 bg-slate-200 rounded-lg flex-shrink-0"}),l.jsxs("div",{className:"flex-1 space-y-2",children:[l.jsx("div",{className:"h-3.5 bg-slate-200 rounded w-1/3"}),l.jsx("div",{className:"h-3 bg-slate-200 rounded w-1/4"})]}),l.jsx("div",{className:"h-6 w-20 bg-slate-200 rounded-full flex-shrink-0"}),l.jsx("div",{className:"h-6 w-28 bg-slate-200 rounded-lg flex-shrink-0"}),l.jsx("div",{className:"h-5 w-24 bg-slate-200 rounded flex-shrink-0"})]},e))}):0===Z.length?l.jsxs("div",{className:"p-16 text-center",children:[l.jsx("div",{className:"w-16 h-16 mx-auto mb-4 bg-slate-100 rounded-2xl flex items-center justify-center",children:l.jsx(r,{className:"h-8 w-8 text-slate-400"})}),l.jsx("h3",{className:"text-lg font-semibold text-slate-800 mb-1",children:B||R||D?"No matching leads":"No leads yet"}),l.jsx("p",{className:"text-slate-500 text-sm",children:B||R||D?"Try adjusting your filters or search terms.":"Leads will appear here as they are captured from forms and product pages."})]}):l.jsx("div",{className:"overflow-x-auto",children:l.jsxs("table",{className:"w-full text-sm",children:[l.jsx("thead",{children:l.jsxs("tr",{className:"text-left text-xs uppercase tracking-wider text-slate-500 bg-slate-50/60 border-b border-slate-200",children:[l.jsx(T,{label:"#",sortKey:"id",currentKey:Y,dir:O,onSort:X}),l.jsx(T,{label:"Lead",sortKey:"full_name",currentKey:Y,dir:O,onSort:X}),l.jsx(T,{label:"City",sortKey:"city",currentKey:Y,dir:O,onSort:X}),l.jsx(T,{label:"Plan",sortKey:"plan_name",currentKey:Y,dir:O,onSort:X}
1),l.jsx(T,{label:"Type",sortKey:"lead_for",currentKey:Y,dir:O,onSort:X}),l.jsx(T,{label:"Status",sortKey:"status",currentKey:Y,dir:O,onSort:X}),l.jsx(T,{label:"Created",sortKey:"created_at",currentKey:Y,dir:O,onSort:X}),l.jsx("th",{className:"px-4 py-3 font-semibold w-10"})]})}),l.jsx("tbody",{children:W.map((e,s)=>l.jsxs(k.tr,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},transition:{duration:.15,delay:.012*Math.min(s,8)},onClick:()=>se(e),className:"border-b border-slate-100 last:border-0 hover:bg-blue-50/30 cursor-pointer transition-colors",children:[l.jsxs("td",{className:"px-4 py-3 text-slate-500 font-mono text-xs",children:["#",e.id]}),l.jsx("td",{className:"px-4 py-3",children:l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("div",{className:"h-9 w-9 rounded-lg bg-gradient-to-br from-blue-500/10 to-indigo-500/10 flex items-center justify-center text-blue-600 font-semibold text-sm flex-shrink-0",children:(e.full_name||e.email||"?").charAt(0).toUpperCase()}),l.jsxs("div",{className:"min-w-0",children:[l.jsx("div",{className:"font-medium text-slate-800 truncate max-w-[200px]",children:e.full_name||"â"}),l.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-slate-500",children:[l.jsx("span",{className:"truncate max-w-[200px]",children:e.email||"â"}),e.email_verified&&l.jsx(m,{className:"h-3 w-3 text-emerald-500 flex-shrink-0",title:"Email verified"})]}),e.contact_number&&l.jsx("div",{className:"text-[11px] text-slate-400",children:e.contact_number})]})]})}),l.jsxs("td",{className:"px-4 py-3 text-slate-700",children:[e.city||"â",e.business_name&&l.jsx("div",{className:"text-[11px] text-slate-500 truncate max-w-[150px]",children:e.business_name})]}),l.jsxs("td",{className:"px-4 py-3",children:[l.jsx("div",{className:"text-slate-700 font-medium truncate max-w-[130px]",children:e.plan_name||"â"}),e.plan_code&&l.jsx("div",{className:"text-[10px] text-slate-400 font-mono",children:e.plan_code})]}),l.jsx("td",{className:"px-4 py-3",children:l.jsx("span",{className:"text-xs text-slate-600 bg-slate-50 border border-slate-200 px-2 py-0.5 rounded-md font-medium",children:e.lead_for||"â"})}),l.jsxs("td",{className:"px-4 py-3",children:[l.jsx("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 text-[11px] font-medium rounded-full border ${P(e.status||"")}`,children:(e.status||"â").charAt(0).toUpperCase()+(e.status||"").slice(1)}),e.has_payment&&l.jsx("div",{className:"text-[10px] text-emerald-600 mt-0.5 font-medium",children:"Paid"})]}),l.jsx("td",{className:"px-4 py-3 text-xs text-slate-600 whitespace-nowrap",children:M(e.created_at)}),l.jsx("td",{className:"px-4 py-3 text-right",children:l.jsx("span",{className:"text-slate-400 text-xs",children:"View"})})]},e.id))})]})}),Z.length>A&&l.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-t border-slate-100 bg-slate-50/40",children:[l.jsxs("span",{className:"text-xs text-slate-500",children:["Page ",Q," of ",G," · ",(Q-1)*A+1,"â",Math.min(Q*A,Z.length)," of ",Z.length]}),l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("button",{onClick:()=>q(e=>Math.max(1,e-1)),disabled:Q<=1,className:"p-2 rounded-lg hover:bg-slate-200 text-slate-600 disabled:opacity-30 transition-colors",children:l.jsx(p,{className:"h-4 w-4"})}),Array.from({length:Math.min(G,7)},(e,s)=>{let t;return t=G<=7||Q<=4?s+1:Q>=G-3?G-6+s:Q-3+s,l.jsx("button",{onClick:()=>q(t),className:"w-8 h-8 rounded-lg text-xs font-medium transition-colors "+(t===Q?"bg-gradient-to-r from-blue-500 to-indigo-500 text-white shadow-md":"hover:bg-slate-200 text-slate-600"),children:t},t)}),l.jsx("button",{onClick:()=>q(e=>Math.min(G,e+1)),disabled:Q>=G,className:"p-2 rounded-lg hover:bg-slate-200 text-slate-600 disabled:opacity-30 transition-colors",children:l.jsx(b,{className:"h-4 w-4"})})]})]})]})]}),l.jsx(L,{children:ee&&l.jsx($,{lead:ee,onClose:()=>se(null)})})]})]})},T=({label:e,sortKey:s,currentKey:t,dir:a,onSort:n})=>l.jsx("th",{className:"px-4 py-3 font-semibold cursor-pointer select-none hover:text-blue-600 transition-colors",onClick:()=>n(s),children:l.jsxs("span",{className:"inline-flex items-center",children:[e,t===s&&l.jsx("span",{className:"ml-1 text-blue-500",children:"â"})]})}),$=({lead:e,onClose:s})=>{a.useEffect(()=>{const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[]);
1const t=({title:e,fields:s})=>l.jsxs("div",{className:"mb-5",children:[l.jsx("h3",{className:"text-sm font-semibold text-slate-800 mb-2.5",children:e}),l.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:s.map(e=>l.jsxs("div",{className:"bg-slate-50 border border-slate-200 rounded-lg px-3 py-2",children:[l.jsx("div",{className:"flex items-center gap-1.5 text-[11px] text-slate-500 mb-0.5",children:l.jsx("span",{children:e.label})}),l.jsx("div",{className:"text-sm text-slate-800 font-medium",children:e.value})]},e.label))})]}),n=[{label:"Full Name",value:e.full_name||"â",icon:r},{label:"Email",value:e.email?l.jsx("a",{href:`mailto:${e.email}`,className:"text-blue-600 hover:underline",children:e.email}):"â",icon:c},{label:"Phone",value:e.contact_number?l.jsx("a",{href:`tel:${e.contact_number}`,className:"text-blue-600 hover:underline",children:e.contact_number}):"â",icon:f},{label:"Company",value:e.company_name||"â",icon:j},{label:"Email Verified",value:e.email_verified?l.jsxs("span",{className:"text-emerald-600 font-medium inline-flex items-center gap-1",children:[l.jsx(m,{className:"h-3.5 w-3.5"})," Yes"]}):l.jsxs("span",{className:"text-amber-600 font-medium inline-flex items-center gap-1",children:[l.jsx(d,{className:"h-3.5 w-3.5"})," No"]}),icon:m}],i=[{label:"City",value:e.city||"â",icon:g},{label:"Business Name",value:e.business_name||"â",icon:j},{label:"Business Type",value:e.business_type||"â",icon:y},{label:"Plan",value:e.plan_name||"â",icon:N},{label:"Plan Code",value:e.plan_code||"â",icon:N},{label:"Monthly Calls",value:e.monthly_calls||"â",icon:N},{label:"Referred By",value:e.referred_by||"â",icon:v}],o=[{label:"Lead For",value:e.lead_for||"â",icon:r},{label:"Status",value:l.jsx("span",{className:`inline-flex items-center px-2 py-0.5 text-xs font-medium rounded-full border ${P(e.status)}`,children:e.status}),icon:w},{label:"Has Payment",value:e.has_payment?l.jsxs("span",{className:"text-emerald-600 font-medium inline-flex items-center gap-1",children:[l.jsx(m,{className:"h-3.5 w-3.5"})," Yes"]}):"No",icon:m},{label:"UTM Source",value:e.utm_source||"â",icon:h},{label:"UTM Medium",value:e.utm_medium||"â",icon:h},{label:"UTM Campaign",value:e.utm_campaign||"â",icon:h},{label:"IP Address",value:e.ip_address||"â",icon:h},{label:"Created At",value:M(e.created_at),icon:_},{label:"Updated At",value:M(e.updated_at),icon:_}];return l.jsxs(l.Fragment,{children:[l.jsx(k.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},onClick:s,className:"fixed inset-0 bg-slate-900/40 backdrop-blur-sm z-50"}),l.jsxs(k.aside,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:28,stiffness:220},className:"fixed top-0 right-0 bottom-0 w-full max-w-xl bg-white z-50 shadow-2xl flex flex-col",children:[l.jsxs("div",{className:"px-6 py-5 border-b border-slate-200 flex items-start justify-between bg-gradient-to-r from-slate-50 to-white",children:[l.jsxs("div",{className:"min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-2 text-xs uppercase tracking-wider text-slate-500 mb-1",children:[l.jsx("span",{children:"Lead Details"}),l.jsx("span",{className:`inline-flex items-center px-2 py-0.5 text-[11px] font-medium rounded-full border ${P(e.status)}`,children:e.status})]}),l.jsx("h2",{className:"text-lg font-bold text-slate-800 truncate",children:e.full_name||"â"}),l.jsxs("div",{className:"flex items-center gap-3 mt-1.5 text-xs text-slate-500",children:[e.email&&l.jsxs("span",{className:"flex items-center gap-1",children:[l.jsx(c,{className:"h-3 w-3"})," ",e.email]}),e.contact_number&&l.jsxs("span",{className:"flex items-center gap-1",children:[l.jsx(f,{className:"h-3 w-3"})," ",e.contact_number]}),l.jsxs("span",{className:"flex items-center gap-1",children:[l.jsx(_,{className:"h-3 w-3"})," ",M(e.created_at)]})]})]}),l.jsx("button",{onClick:s,className:"p-2 rounded-lg hover:bg-slate-100 text-slate-500 flex-shrink-0",children:l.jsx(u,{className:"h-5 w-5"})})]}),l.jsxs("div",{className:"flex-1 overflow-y-auto px-6 py-5",children:[l.jsx(t,{title:"Identity",fields:n}),l.jsx(t,{title:"Business Details",fields:i}),l.jsx(t,{title:"Meta & Tracking",fields:o})]}),l.jsxs("div",{className:"px-6 py-4 border-t border-slate-200 bg-slate-50/60 flex items-center gap-3",children:[e.email&&l.jsxs("a",{href:`mailto:${e.email}?subject=${encodeURIComponent("Re: Your inquiry with SpeedTech.ai")}`,className:"inline-flex items-center gap-2 px-4 py-2.5 rounded-xl bg-gradient-to-r from-blue-500 to-indigo-500 text-white text-sm font-medium shadow-md shadow-blue-500/25 hover:shadow-lg transition-shadow",children:[l.jsx(c,{className:"h-4 w-4"})," Email Lead"]}),e.contact_number&&l.jsxs("a",{href:`tel:${e.contact_number}`,className:"inline-flex items-center gap-2 px-4 py-2.5 rounded-xl bg-white border border-slate-200 text-slate-600 text-sm font-medium hover:bg-slate-50",children:[l.jsx(f,{className:"h-4 w-4"})," Call"]}),l.jsx("button",{onClick:s,className:"px-4 py-2.5 rounded-xl bg-white border border-slate-200 text-slate-600 text-sm font-medium hover:bg-slate-50 ml-auto",children:"Close"})]})]})]})};export{K 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.