PageSourceSearch

https://studio.huskyvoice.ai/assets/Websites-D6gTJbGs.js

js huskyvoice.ai collected 2026-10-05 13:55:49 UTC 21,304 bytes, 11 lines download raw bytes

1import{ab as se,d as ce,o as l,c as d,bJ as ue,U as P,u as n,bK as me,f as N,b as e,D as C,b0 as T,t as s,G as V,e as b,aU as ae,au as q,aN as Y,ad as Z,y as F,z as oe,b9 as pe,g as r,aB as W,b4 as ee,F as M,r as L,w as y,bb as ge,v as xe,j as m,a3 as fe,a4 as ve,bL as he,a5 as be,a6 as ye,bM as _e,ah as we,a9 as ke,aP as le,bN as $e,bO as Ce,bP as Ve,bQ as Se,bR as De,bS as Te,bT as Pe,bU as Me,av as te,bV as Le,bW as je,a as Ae,bi as Ue,bj as Fe,bh as Ne}from"./index-BXzb0qht.js";import{T as J}from"./target-DomFEYK0.js";import{L as ne}from"./loader-CBL8pmXo.js";/**
2 * @license lucide-vue-next v0.454.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 Ie=se("MonitorIcon",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
7 * @license lucide-vue-next v0.454.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 Be=se("ShellIcon",[["path",{d:"M14 11a2 2 0 1 1-4 0 4 4 0 0 1 8 0 6 6 0 0 1-12 0 8 8 0 0 1 16 0 10 10 0 1 1-20 0 11.93 11.93 0 0 1 2.42-7.22 2 2 0 1 1 3.16 2.44",key:"1cn552"}]]),Ee=ce({__name:"CardFooter",props:{class:{}},setup(_){const u=_;return(p,h)=>(l(),d("div",{class:P(n(me)("flex items-center p-6 pt-0",u.class))},[ue(p.$slots,"default")],2))}}),Re={class:"bg-white overflow-hidden shadow rounded-lg"},qe={class:"p-5"},We={class:"flex items-center"},Je={class:"flex-shrink-0"},Oe={class:"ml-5 w-0 flex-1"},ze={class:"text-sm font-medium text-gray-500 truncate"},He={class:"flex items-baseline"},Ge={class:"text-2xl font-semibold text-gray-900"},Xe={__name:"StatsCard",props:{title:String,value:[String,Number],change:String,changeType:{type:String,default:"neutral"},icon:Object},setup(_){const u=_,p=N(()=>{switch(u.changeType){case"positive":return"text-green-600";case"negative":return"text-red-600";default:return"text-gray-600"}}),h=N(()=>typeof u.value=="number"?u.value.toLocaleString():u.value);return(i,g)=>(l(),d("div",Re,[e("div",qe,[e("div",We,[e("div",Je,[(l(),C(T(_.icon),{class:"h-6 w-6 text-gray-400","aria-hidden":"true"}
11))]),e("div",Oe,[e("dl",null,[e("dt",ze,s(_.title),1),e("dd",He,[e("div",Ge,s(h.value),1),_.change?(l(),d("div",{key:0,class:P(["ml-2 flex items-baseline text-sm font-semibold",p.value])},s(_.change),3)):V("",!0)])])])])])]))}},Ke={class:"mb-8 bg-white rounded-xl shadow-sm border border-gray-200 p-6"},Qe={key:0,class:"flex flex-col items-center justify-center h-[600px] w-full"},Ye={class:"flex justify-between items-center mb-6"},Ze={class:"flex gap-2 items-center"},et={class:"flex items-center gap-2 border rounded-lg px-3 py-1 shadow-sm"},tt={class:"text-sm"},st={class:"font-semibold text-gray-900"},at={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4"},ot={class:"flex justify-between items-start"},lt={class:"text-2xl font-bold"},nt={class:"text-gray-700"},it={class:"bg-white rounded-xl shadow-lg border border-gray-100 overflow-hidden mt-4"},rt={class:"p-6 border-b border-gray-100 bg-gradient-to-r from-purple-600 to-blue-600"},dt={class:"text-purple-100 text-sm mt-1"},ct={class:"overflow-x-auto"},ut={class:"max-h-96 overflow-y-auto"},mt={class:"min-w-full divide-y divide-gray-200"},pt={class:"bg-white divide-y divide-gray-200"},gt={class:"px-6 py-4 whitespace-nowrap"},xt={class:"flex items-center"},ft={class:"flex-shrink-0 h-10 w-10"},vt={class:"h-10 w-10 rounded-full bg-gradient-to-br from-purple-500 to-blue-600 flex items-center justify-center"},ht={class:"ml-4"},bt={class:"text-sm font-medium text-gray-900"},yt={class:"text-sm text-gray-500"},_t={class:"px-6 py-4 whitespace-nowrap"},wt={class:"text-sm text-gray-900"},kt={class:"text-sm text-gray-500"},$t={class:"px-6 py-4 whitespace-nowrap"},Ct={class:"text-sm text-gray-900"},Vt={class:"px-6 py-4 whitespace-nowrap"},St={class:"text-sm text-gray-900"},Dt={class:"text-sm text-gray-500"},Tt={class:"px-6 py-4 whitespace-nowrap"},Pt={class:"text-sm text-gray-900"},Mt={key:0,class:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800"},Lt={key:1,class:"text-gray-400"},jt={class:"px-6 py-4 whitespace-nowrap text-right text-sm font-medium"},At=["onClick"],Ut={key:1,class:"bg-white px-4 py-3 flex items-center justify-between border-t border-gray-200 sm:px-6"},Ft={class:"flex-1 flex justify-between sm:hidden"},Nt=["disabled"],It=["disabled"],Bt={class:"hidden sm:flex-1 sm:flex sm:items-center sm:justify-between"},Et={class:"text-sm text-gray-700"},Rt={class:"font-medium"},qt={class:"font-medium"},Wt={class:"font-medium"},Jt={class:"relative z-0 inline-flex rounded-md shadow-sm -space-x-px"},Ot=["disabled"],zt=["disabled"],Ht={class:"flex items-center space-x-4"},Gt={class:"flex-shrink-0"},Xt={class:"w-12 h-12 bg-white/20 rounded-full flex items-center justify-center"},Kt={class:"px-6 py-4 bg-gradient-to-r from-purple-50 to-blue-50 border-b border-gray-200 text-sm"},Qt={class:"grid grid-cols-1 md:grid-cols-3 gap-4"},Yt={class:"flex-1 overflow-y-auto p-6"},Zt={class:"text-lg font-semibold text-gray-900 mb-4 flex items-center"},es={class:"space-y-4"},ts={class:"flex-shrink-0 w-8 h-8 bg-gradient-to-br from-purple-500 to-blue-600 rounded-full flex items-center justify-center text-white font-bold text-sm"},ss={class:"flex-1 min-w-0"},as={class:"flex items-center gap-2 mb-2"},os={class:"text-sm font-semibold text-gray-900 truncate"},ls={class:"px-2 py-1 text-xs font-medium bg-purple-100 text-purple-800 rounded-full"},ns={key:0,class:"px-2 py-1 text-xs font-medium bg-green-100 text-green-800 rounded-full"},is={key:1,class:"px-2 py-1 text-xs font-medium bg-orange-100 text-orange-800 rounded-full"},rs={class:"flex items-center gap-4 text-sm text-gray-600"},ds={key:0},cs={class:"mt-2"},us=["href"],ms={class:"text-sm text-gray-600"},ps={__name:"Visitors",setup(_){const u=b(null),p=b(!1),h=b(!1),i=b(null),g=b(0),x=b(1),S=b([]),c=b({}),f=N(()=>[{icon1:ae,icon2:q,label:"Unique visitors",number:c.value.uniqueVisitors||0,description:"Unique sessions",color:"purple"},{icon1:Y,icon2:Y,label:"Page Views",number:c.value.totalPageViews||0,description:"Total page views",color:"green"},{icon1:Z,icon2:Z,label:"Avg Session",number:c.value.avgSessionDuration||0,description:"Average duration",color:"orange"},{icon1:J,icon2:J,label:"Pages/Visit",number:c.value.totalPageViews>0?(c.value.totalPageViews/c.value.uniqueVisitors).toFixed(1):"0.0",description:"Engagement depth",color:"blue"}]),w=o=>/Mobi|Android/i.test(o)?"Mobile":/Tablet|iPad/i.test(o)?"Tablet":"Desktop",I=()=>{const o=localStorage.getItem("__email__id");if(!o){u.value=null;return}const t=o.split("@");u.value=t.length>1?t[1]:null};function O(o){return!o||typeof o!="string"?"Unknown":o.includes("Edg")?"Edge":o.includes("Chrome")?"Chrome":o.includes("Firefox")?"Firefox":o.includes("Safari")&&!o.includes("Chrome")?"Safari":"Other"}function B(o){if(!o)return"Unknown";const t=new Date(o);if(isNaN(t.getTime()))return"Invalid Date";const E=t.getDate().toString().padStart(2,"0"),$=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getMonth()],j=t.getFullYear(),A=t.getHours().toString().padStart(2,"0"),U=t.getMinutes().toString().padStart(2,"0");return`${E}-${$}-${j} ${A}:${U}`}const ie=o=>{try{return new URL(o).hostname}catch{return"Unknown"}},re=o=>{i.value=o,h.value=!0},de=async()=>{p.value=!0;try{const o=await le.getVisitors();g.value=o.data.data.total,c.value=o.data.data.analytics,S.value=o.data.data.visitors}catch(o){console.log("Error in fetching the visitor:",o)}finally{p.value=!1}};return F(S,(o,t)=>{console.log("Visitors changed:",o)},{deep:!0}),F(c,(o,t)=>{console.log("analytics changed:",o)},{deep:!0}),F(i,o=>{console.log("selectedVisitor changed:",o)},{deep:!0}),oe(()=>{I(),console.log("Domain:",u.value),de()}),(o,t)=>{const E=pe("X");return l(),d("div",Ke,[p.value?(l(),d("div",Qe,[r(n(ne),{class:"h-10 w-10 text-purple-600 animate-spin mb
11-4"}),t[7]||(t[7]=e("p",{class:"text-gray-700 font-medium text-lg"}," Loading visitors... ",-1)),t[8]||(t[8]=e("p",{class:"text-gray-500 text-sm mt-1"}," Please wait while we fetch your data ",-1))])):V("",!0),e("div",Ye,[e("div",Ze,[r(n(W),{class:"h-5 w-5 text-purple-600"}),t[9]||(t[9]=e("div",null,[e("h3",{class:"text-md font-semibold"},"Visitor Analytics"),e("p",{class:"text-sm text-gray-600"}," Track and analyze website visitors and their journey ")],-1))]),e("div",et,[r(n(ee),{class:"h-4 w-4 text-purple-600"}),e("p",tt,[t[10]||(t[10]=e("span",{class:"font-medium text-gray-600"},"Domain:",-1)),e("span",st,s(u.value),1)])])]),e("div",at,[(l(!0),d(M,null,L(f.value,(a,$)=>(l(),C(n(xe),{key:$,class:"shadow-md"},{default:y(()=>[r(n(ge),null,{default:y(()=>[e("div",ot,[e("div",null,[e("p",lt,s(a.number),1),e("p",nt,s(a.label),1)]),e("div",{class:P(`bg-${a.color}-100 text-${a.color}-600 p-2 rounded-full`)},[(l(),C(T(a.icon1),{class:"h-4 w-4"}))],2)])]),_:2},1024),r(n(Ee),{class:"flex items-center gap-2 text-sm text-gray-600"},{default:y(()=>[(l(),C(T(a.icon2),{class:P(["h-4 w-4",`text-${a.color}-600`])},null,8,["class"])),e("span",{class:P(`text-${a.color}-600`)},s(a.description),3)]),_:2},1024)]),_:2},1024))),128))]),e("div",it,[e("div",rt,[t[11]||(t[11]=e("h3",{class:"text-xl font-semibold text-white"},"Website Visitors",-1)),e("p",dt," View all unique visitor sessions ("+s(g.value)+" total) ",1)]),e("div",ct,[e("div",ut,[e("table",mt,[t[12]||(t[12]=e("thead",{class:"bg-gray-50 sticky top-0 z-10"},[e("tr",null,[e("th",{class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Visitor Session"),e("th",{class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Device & Browser"),e("th",{class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," First Visit"),e("th",{class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Activity"),e("th",{class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," UTM Source"),e("th",{class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Actions")])],-1)),e("tbody",pt,[(l(!0),d(M,null,L(S.value,a=>(l(),d("tr",{key:a.sessionId,class:"hover:bg-gray-50"},[e("td",gt,[e("div",xt,[e("div",ft,[e("div",vt,[(l(),C(T(w(a.userAgent)==="Mobile"?"SmartphoneIcon":"MonitorIcon"),{class:"h-5 w-5 text-white"}))])]),e("div",ht,[e("div",bt," Session "+s(a.sessionId.slice(-8)),1),e("div",yt,s(a.language)+" • "+s(a.timezone),1)])])]),e("td",_t,[e("div",wt,s(w(a.userAgent))+" • "+s(O(a.userAgent)),1),e("div",kt,s(a.screenResolution),1)]),e("td",$t,[e("div",Ct,s(B(a.firstSeen)),1)]),e("td",Vt,[e("div",St,s(a.pageViews)+" pages",1),e("div",Dt,s(a.sessionDuration)+"m session",1)]),e("td",Tt,[e("div",Pt,[Object.keys(a.utmParams).length>0?(l(),d("span",Mt,s(a.utmParams.utm_source||Object.keys(a.utmParams)[0]),1)):(l(),d("span",Lt,"Direct"))])]),e("td",jt,[e("button",{onClick:$=>re(a),class:"inline-flex items-center px-3 py-1 border border-transparent text-sm leading-4 font-medium rounded-md text-white bg-gradient-to-r from-purple-600 to-blue-600 hover:from-purple-700 hover:to-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500 transition-colors"},[r(n(W),{class:"h-4 w-4 mr-1"}),m(" View Journey ("+s(a.pageViews)+") ",1)],8,At)])]))),128))])])])])]),g.value>50?(l(),d("div",Ut,[e("div",Ft,[e("button",{onClick:t[0]||(t[0]=a=>x.value=Math.max(1,x.value-1)),disabled:x.value===1,class:"relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 disabled:opacity-50"}," Previous ",8,Nt),e("button",{onClick:t[1]||(t[1]=a=>x.value=x.value+1),disabled:x.value*50>=g.value,class:"ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 disabled:opacity-50"}," Next ",8,It)]),e("div",Bt,[e("div",null,[e("p",Et,[t[13]||(t[13]=m(" Showing ")),e("span",Rt,s((x.value-1)*50+1),1),t[14]||(t[14]=m(" to ")),e("span",qt,s(Math.min(x.value*50,g.value)),1),t[15]||(t[15]=m(" of ")),e("span",Wt,s(g.value),1),t[16]||(t[16]=m(" results "))])]),e("div",null,[e("nav",Jt,[e("button",{onClick:t[2]||(t[2]=a=>x.value=Math.max(1,x.value-1)),disabled:x.value===1,class:"relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50 disabled:opacity-50"}," Previous ",8,Ot),e("button",{onClick:t[3]||(t[3]=a=>x.value=x.value+1),disabled:x.value*50>=g.value,class:"relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50 disabled:opacity-50"}," Next ",8,zt)])])])])):V("",!0),r(n(ke),{open:h.value,"onUpdate:open":t[6]||(t[6]=a=>h.value=a)},{default:y(()=>[r(n(fe),{class:"max-w-5xl w-full max-h-[90vh] flex flex-col rounded-2xl shadow-2xl"},{default:y(()=>{var a,$,j,A,U,z,H,G,X,K,Q;return[r(n(ve),{class:"flex flex-row items-center justify-between bg-gradient-to-r from-purple-600 to-blue-600 px-6 py-4 rounded-t-2xl"},{default:y(()=>{var v;return[e("div",Ht,[e("div",Gt,[e("div",Xt,[(l(),C(T(w((v=i.value)==null?void 0:v.userAgent)==="Mobile"?n(he):n(Ie)),{class:"w-6 h-6 text-white"}))])]),e("div",null,[r(n(be),{class:"text-xl font-semibold text-white"},{default:y(()=>t[17]||(t[17]=[m(" Visitor Journey ")])),_:1}),r(n(ye),{class:"text-purple-100 text-sm"},{default:y(()=>{var k,D,R;return[m(" Session "+s((D=(k=i.value)==null?void 0:k.sessionId)==null?void 0:D.slice(-8))+" • "+s((R=i.value)==null?void 0:R.pageViews)+" page views ",1)]}),_:1})])]),e("button",{onClick:t[4]||(t[4]=k=>h.value=!1),class:"text-white/70 hover:text-white p-2 hover:bg-white/10 rounded-lg transition-colors"},[r(E,{class:"w-6 h-6"})])]}),_:1}),e("div",Kt,[e("div",Qt,[e("div",null,[t[18]||(t[18]=e("span",{class:"font-medium"},"Device:",-1)),m(" "+s(w((a=i.value)==null?void 0:a.userAgent))+" • "+s(O(($=i.value)==null?void 0:$.userAgent)),1)]),e("div",null,[t[19]||(t[19]=e("span",{class:"font-medium"},"First Visit:",-1)),m(" "+s(B((j=i.value)==null?void 0:j.firstSeen)),1)]),e("div",null,[t[20]||(t[20]=e("span",{class:"font-medium"},"Duration:",-1)),m(" "+s((A=i.value)==null?void 0:A.sessionDuration)+" minutes ",1)]),e("div",null,[t[21]||(t[21]=e("span",{class:"font-medium"},"Resolution:",-1)),m(" "+s((U=i.value)==null?void 0:U.screenResolution),1)]),e("div",null,[t[22]||(t[22]=e("span",{class:"font-medium"}
11,"Language:",-1)),m(" "+s((z=i.value)==null?void 0:z.language),1)]),e("div",null,[t[23]||(t[23]=e("span",{class:"font-medium"},"UTM Source:",-1)),m(" "+s(((G=(H=i.value)==null?void 0:H.utmParams)==null?void 0:G.utm_source)||"Direct"),1)])])]),e("div",Yt,[e("h3",Zt,[r(n(ee),{class:"w-5 h-5 text-purple-600 mr-2"}),m(" Page Journey ("+s((K=(X=i.value)==null?void 0:X.pages)==null?void 0:K.length)+" pages) ",1)]),e("div",es,[(l(!0),d(M,null,L(((Q=i.value)==null?void 0:Q.pages)||[],(v,k)=>(l(),d("div",{key:k,class:"flex items-start gap-4 p-4 bg-gradient-to-r from-gray-50 to-blue-50/30 rounded-lg border border-gray-100"},[e("div",ts,s(k+1),1),e("div",ss,[e("div",as,[e("h4",os,s(v.title),1),e("span",ls,s(v.category),1),v.hasContactForm?(l(),d("span",ns,"Contact Form")):V("",!0),v.hasPricing?(l(),d("span",is,"Pricing")):V("",!0)]),e("div",rs,[e("span",null,s(v.path),1),t[24]||(t[24]=e("span",null,"•",-1)),e("span",null,s(B(v.timestamp)),1),v.referrer?(l(),d("span",ds,"• from "+s(ie(v.referrer)),1)):V("",!0)]),e("div",cs,[e("a",{href:v.url,target:"_blank",class:"inline-flex items-center text-purple-600 hover:text-purple-800 text-sm font-medium"},[r(n(_e),{class:"h-3 w-3 mr-1"}),t[25]||(t[25]=m(" View Page "))],8,us)])])]))),128))])]),r(n(we),{class:"p-6 border-t border-gray-200 bg-gradient-to-r from-gray-50 to-white rounded-b-2xl flex justify-between items-center"},{default:y(()=>{var v,k,D;return[e("div",ms,s((k=(v=i.value)==null?void 0:v.pages)==null?void 0:k.length)+" pages viewed in "+s((D=i.value)==null?void 0:D.sessionDuration)+" minutes ",1),e("button",{onClick:t[5]||(t[5]=R=>h.value=!1),class:"px-6 py-3 bg-gradient-to-r from-purple-600 to-blue-600 text-white rounded-lg hover:from-purple-700 hover:to-blue-700 transition-all duration-200 shadow-md hover:shadow-lg font-medium"}," Close ")]}),_:1})]}),_:1})]),_:1},8,["open"])])}}},gs={class:"mb-8 bg-white rounded-xl shadow-sm border border-gray-200 p-6"},xs={key:0,class:"flex flex-col items-center justify-center h-[600px] w-full"},fs={key:1},vs={class:"text-lg font-semibold text-gray-900 mb-6 flex items-center"},hs={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8"},bs={class:"grid grid-cols-1 lg:grid-cols-3 gap-6"},ys={class:"lg:col-span-3 bg-white p-6 rounded-xl shadow-sm border border-gray-200"},_s={class:"text-lg font-semibold text-gray-900 mb-4 flex items-center"},ws={class:"h-64"},ks={__name:"WebsiteDashboard",setup(_){$e.register(Ce,Ve,Se,De,Te,Pe,Me);const u=je,p=b({totalLeads:0,totalConversations:0,totalInteractions:0,uniqueVisitors:0,totalPageViews:0,conversionRate:0,topDomains:[],dailyStats:[],topPages:[],recentActivity:[]}),h=b(!1);b([{icon:W,label:"Visitors",description:"Session Tracking and Journey",color:"purple",route:"/visitors"},{icon:te,label:"Chat History",description:"View Conversation",color:"green",route:"/chat-history"},{icon:Be,label:"Pipeline Leads",description:"Manage Contacts",color:"orange",route:"/pipeline-leads"}]);const i=async()=>{h.value=!0;try{const c=await le.getAnalytics();p.value=c,console.log("fetch analytics",c)}catch(c){console.error("❌ Error fetching analytics:",c)}finally{h.value=!1}};oe(()=>{i()}),F(p,c=>{console.log("Analytics Value",c)});const g=b([{title:"Website Visitors",value:()=>p.value.uniqueVisitors||0,change:"+8%",changeType:"positive",icon:ae},{title:"Pipeline Leads",value:()=>p.value.totalLeads,change:"+12%",changeType:"positive",icon:J},{title:"Conversations",value:()=>p.value.totalConversations,change:"+6%",changeType:"positive",icon:te},{title:"Conversion Rate",value:()=>`${p.value.conversionRate}%`,change:"+2%",changeType:"positive",icon:q}]),x=N(()=>{const c=p.value.dailyStats||[];return{labels:c.map(f=>new Date(f.date).toLocaleDateString("en-US",{month:"short",day:"numeric"})),datasets:[{label:"Leads",data:c.map(f=>f.leads),borderColor:"#7B5CDC",borderWidth:3,fill:!1,tension:.4},{label:"Conversations",data:c.map(f=>f.conversations),borderColor:"#10b981",borderWidth:2,fill:!1,tension:.4}]}}),S={responsive:!0,maintainAspectRatio:!1,plugins:{tooltip:{backgroundColor:"#fff",borderColor:"#e5e7eb",borderWidth:1,titleColor:"#111827",bodyColor:"#374151",padding:8,callbacks:{label:c=>`${c.dataset.label}: ${c.formattedValue}`}},legend:{labels:{color:"#374151"}}},scales:{x:{ticks:{color:"#6b7280"},grid:{color:"#f3f4f6"}},y:{ticks:{color:"#6b7280"},grid:{color:"#f3f4f6"}}}};return(c,f)=>(l(),d("div",gs,[h.value?(l(),d("div",xs,[r(n(ne),{class:"h-10 w-10 text-purple-600 animate-spin mb
11-4"}),f[0]||(f[0]=e("p",{class:"text-gray-700 font-medium text-lg"},"Loading analytics...",-1)),f[1]||(f[1]=e("p",{class:"text-gray-500 text-sm mt-1"},"Please wait while we fetch your data",-1))])):(l(),d("div",fs,[e("h3",vs,[r(n(Le),{class:"w-5 h-5 text-[#7B5CDC] mr-2"}),f[2]||(f[2]=m(" Analytics Overview "))]),e("div",hs,[(l(!0),d(M,null,L(g.value,(w,I)=>(l(),C(Xe,{key:I,title:w.title,value:w.value(),change:w.change,changeType:w.changeType,icon:w.icon},null,8,["title","value","change","changeType","icon"]))),128))]),e("div",bs,[e("div",ys,[e("h3",_s,[r(n(q),{class:"w-5 h-5 text-[#7B5CDC] mr-2"}),f[3]||(f[3]=m(" Daily Activity Trends "))]),e("div",ws,[r(n(u),{data:x.value,options:S},null,8,["data"])])])])]))]))}},$s={class:"min-h-screen bg-background"},Cs={class:"w-full mt-10 px-4 sm:px-6 lg:px-8"},Vs={class:"bg-card rounded-lg shadow-sm border border-gray-200 dark:border-gray-700"},Ss={class:"border-b border-gray-100 dark:border-gray-700 px-4 py-2"},Ds={class:"p-6"},Ts={key:0},Ps={key:1},As={__name:"Websites",setup(_){const u=b("analytics"),p=[{value:"analytics",label:"Analytics"},{value:"visitors",label:"Visitors"}];
11return(h,i)=>(l(),d("div",$s,[i[1]||(i[1]=Ae('<div class="bg-card border-b border-gray-200 dark:border-gray-700"><div class="px-4 sm:px-6 lg:px-8"><div class="flex items-center justify-between h-16"><div><h1 class="text-xl font-semibold text-gray-900">Website</h1><p class="text-sm text-gray-500">Manage your Pipeline Management</p></div></div></div></div>',1)),e("div",Cs,[e("div",Vs,[e("div",Ss,[r(n(Ne),{modelValue:u.value,"onUpdate:modelValue":i[0]||(i[0]=g=>u.value=g),class:"w-full"},{default:y(()=>[r(n(Ue),{class:"flex space-x-2 bg-muted p-1 rounded-lg"},{default:y(()=>[(l(),d(M,null,L(p,g=>r(n(Fe),{key:g.value,value:g.value,class:"flex-1 rounded-md data-[state=active]:bg-card data-[state=active]:shadow-sm data-[state=active]:text-primary"},{default:y(()=>[m(s(g.label),1)]),_:2},1032,["value"])),64))]),_:1})]),_:1},8,["modelValue"])]),e("div",Ds,[u.value==="analytics"?(l(),d("div",Ts,[r(ks)])):u.value==="visitors"?(l(),d("div",Ps,[r(ps)])):V("",!0)])])])]))}};export{As 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.