PageSourceSearch

https://bbcc.ai/build/assets/AIDashboard-Ls2EOTcJ.js

js bbcc.ai collected 2026-10-05 12:12:44 UTC 28,430 bytes, 1 lines download raw bytes

1import{r as o,a as u,j as e,H as M,L as r}from"./app-DP13319Q.js";import{D as L}from"./DraggableMenu-Bk7Spryo.js";import{M as W}from"./react-tooltip.min-DW3XhwOj.js";/* empty css            */import"./index-CtyZ6W6U.js";import"./index-DQkUn08L.js";function S({stats:a,recentConversations:j,usageTrends:B,modelUsage:f,languageStats:v,topConversations:b,auth:x}){var g;const[z,_]=o.useState("30d"),[l,m]=o.useState(!1),[s,h]=o.useState({isOpen:!1,feature:"",description:"",iconColor:"",icon:null});o.useCallback(()=>{u.visit("/")},[]);const y=o.useCallback(()=>{u.post("/logout")},[]),N=async()=>{m(!0);try{window.location.href="/ai/dashboard/export"}catch(t){console.error("Export failed:",t)}finally{m(!1)}};o.useCallback((t,i,k,C)=>{h({isOpen:!0,feature:t,description:i,iconColor:k,icon:C})},[]);const d=o.useCallback(()=>{h(t=>({...t,isOpen:!1}))},[]),p=t=>t.includes("kimi")?e.jsx("div",{className:"w-8 h-8 rounded-lg bg-green-100 flex items-center justify-center",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#22c55e",strokeWidth:"2",children:e.jsx("path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z"})})}):e.jsx("div",{className:"w-8 h-8 rounded-lg bg-gray-100 flex items-center justify-center",children:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#6b7280",strokeWidth:"2",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"M12 8v8M8 12h8"})]})}),w=t=>({en:"bg-blue-500",zh:"bg-red-500",ja:"bg-purple-500",ko:"bg-green-500",ar:"bg-yellow-500"})[t]||"bg-gray-500",c=t=>{if(t==null)return"0.0000";const i=Number(t);return isNaN(i)?"0.0000":i.toFixed(4)},n=t=>t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return e.jsxs(e.Fragment,{children:[e.jsx(M,{title:"AI Dashboard"}),e.jsx(W,{id:"main-tooltip",place:"top",className:"!bg-gray-900 !text-white !text-xs !px-3 !py-2 !rounded-lg !z-[100] !shadow-xl",effect:"solid"}),e.jsx(L,{auth:x}),e.jsx("div",{className:"flex min-h-screen bg-[#FCFCFC] text-slate-800",children:e.jsx("main",{className:"flex-1 min-h-screen overflow-y-auto",children:e.jsxs("div",{className:"flex flex-col min-h-screen",children:[e.jsx("nav",{className:"bg-white border-b border-gray-200 shadow-sm sticky top-0 z-20 w-full",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex justify-between items-center h-16",children:[e.jsx("div",{className:"flex items-center flex-shrink-0",children:e.jsx(r,{href:"/",className:"flex items-center space-x-2",children:e.jsx("span",{className:"font-semibold text-gray-900 ",children:"AI Dashboard"})})}),e.jsxs("div",{className:"flex items-center space-x-2 sm:space-x-4",children:[e.jsxs(r,{href:"/dashboard",className:"group relative inline-flex items-center p-2 sm:px-5 sm:py-2.5 bg-gradient-to-r from-emerald-400 via-emerald-500 to-green-600 text-white rounded-xl text-sm font-semibold shadow-lg shadow-emerald-500/30 hover:shadow-xl hover:shadow-emerald-500/40 transition-all duration-200 overflow-hidden","data-tooltip-id":"main-tooltip","data-tooltip-content":"Go to main dashboard",children:[e.jsx("span",{className:"absolute inset-0 w-full h-full bg-gradient-to-r from-transparent via-white/20 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-700"}),e.jsx("svg",{className:"h-5 w-5 sm:-ml-1 sm:mr-2.5 transition-transform group-hover:scale-110",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z"})}),e.jsx("span",{className:"hidden md:inline relative",children:"EZ Dashboard"})]}),e.jsx("button",{onClick:N,disabled:l,className:"inline-flex items-center p-2 sm:px-4 sm:py-2 border border-gray-300 rounded-lg text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none disabled:opacity-50","data-tooltip-id":"main-tooltip","data-tooltip-content":l?"Exporting...":"Export CSV",children:l?e.jsxs("svg",{className:"animate-spin h-4 w-4",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):e.jsxs(e.Fragment,{children:[e.jsx("svg",{className:"h-4 w-4 sm:mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})}),e.jsx("span",{className:"hidden lg:inline",children:"Export Data"})]})}),e.jsxs(r,{href:"/",className:"inline-flex items-center p-2 sm:px-4 sm:py-2 bg-gradient-to-r from-[#22c55e] to-[#16a34a] text-white rounded-lg text-sm font-medium hover:from-[#16a34a] hover:to-[#15803d]","data-tooltip-id":"main-tooltip","data-tooltip-content":"New Conversation",children:[e.jsx("svg",{className:"h-4 w-4 sm:mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),e.jsx("span",{className:"hidden lg:inline",children:"New"})]}),e.jsxs("button",{onClick:y,className:"inline-flex items-center p-2 sm:px-4 sm:py-2 border border-red-200 rounded-lg text-sm font-medium text-red-600 bg-white hover:bg-red-50 focus:outline-none transition-colors duration-200","data-tooltip-id":"main-tooltip","data-tooltip-content":"Logout",children:[e.jsx("svg",{className:"h-4 w-4 sm:mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"})}),e.jsx("span",{className:"hidden md:inline",children:"Logout"})]})]})]})})}),e.jsxs("div",{className:"flex-1 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8 w-full",children:[e.jsxs("div",{className:"mb-8",children:[e.jsxs("h1",{className:"text-3xl font-bold text-gray-900",children:["Welcome back, ",((g=x.user)==null?void 0:g.name)||"User","!"]}),e.jsx("p",{className:"text-gray-600 mt-1",children:"Here's an overview of your AI conversation activity."})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8",children:[e.jsxs("div",{className:"bg-white rounded-2xl border border-gray-200 p-6 shadow-sm hover:shadow-md transition-shadow",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center",children:e.jsx("svg",{className:"w-6 h-6 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})})}),e.jsx("span",{className:"text-xs font-medium text-blue-600 bg-blue-50 px-2 py-1 rounded-full","data-tooltip-id":"main-tooltip","data-tooltip-content":"All-time total conversations",children:"Total"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h3",{className:"text-3xl font-bold text-gray-900",children:n(a.totalConversations)}),e.jsx("p",{className:"text-sm text-gray-600",children:"Conversations"}),e.jsxs("p",{className:"text-xs text-gray-500","data-tooltip-id":"main-tooltip","data-tooltip-content":"Total messages across all conversations",children:[n(a.totalMessages)," messages total"]})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl border border-gray-200 p-6 shadow-sm hover:shadow-md transition-shadow",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-xl flex items-center justify-center",children:e.jsx("svg",{className:"w-6 h-6 text-purple-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 7h6m0 10v-3m-3 3h.01M9 17h.01M9 14h.01M12 14h.01M15 11h.01M12 11h.01M9 11h.01M7 21h10a2 2 0 002-2V5a2 2 0 00-2-2H7a2 2 0 00-2 2v14a2 2 0 002 2z"})})}),e.jsx("span",{className:"text-xs font-medium text-purple-600 bg-purple-50 px-2 py-1 rounded-full","data-tooltip-id":"main-tooltip","data-tooltip-content":"Total token usage across all conversations",children:"Usage"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h3",{className:"text-3xl font-bold text-gray-900",children:n(a.totalTokens)}),e.jsx("p",{className:"text-sm text-gray-600",children:"Total Tokens"}),e.jsxs("p",{className:"text-xs text-gray-500","data-tooltip-id":"main-tooltip","data-tooltip-content":"Estimated total cost based on token usage",children:["$",c(a.totalCost)," estimated cost"]})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl border border-gray-200 p-6 shadow-sm hover:shadow-md transition-shadow",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-green-100 rounded-xl flex items-center justify-center",children:e.jsx("svg",{className:"w-6 h-6 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})}),e.jsx("span",{className:"text-xs font-medium text-green-600 bg-green-50 px-2 py-1 rounded-full","data-tooltip-id":"main-tooltip","data-tooltip-content":"Activity in the last 24 hours",children:"Today"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h3",{className:"text-3xl font-bold text-gray-900",children:a.todayConversations}),e.jsx("p",{className:"text-sm text-gray-600",children:"New Conversations"}),e.jsxs("p",{className:"text-xs text-gray-500","data-tooltip-id":"main-tooltip","data-tooltip-content":"Messages sent today",children:[a.todayMessages," messages today"]})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl border border-gray-200 p-6 shadow-sm hover:shadow-md transition-shadow",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-orange-100 rounded-xl flex items-center justify-center",children:e.jsx("svg",{className:"w-6 h-6 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),e.jsx("span",{className:"text-xs font-medium text-orange-600 bg-orange-50 px-2 py-1 rounded-full","data-tooltip-id":"main-tooltip","data-tooltip-content":"Activity in the last 7 days",children:"This Week"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h3",{className:"text-3xl font-bold text-gray-900",children:a.weekConversations}),e.jsx("p",{className:"text-sm text-gray-600",children:"New Conversations"}),e.jsxs("p",{className:"text-xs text-gray-500","data-tooltip-id":"main-tooltip","data-tooltip-content":"Average messages per conversation",children:["Avg ",a.avgMessagesPerConversation," msgs per conversation"]})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-8",children:[e.jsx("div",{className:"bg-gradient-to-br from-[#22c55e]/10 to-[#16a34a]/5 rounded-2xl border border-[#22c55e]/20 p-6","data-tooltip-id":"main-tooltip","data-tooltip-content":"Your most frequently used AI model",children:e.jsxs("div",{className:"flex items-center space-x-3 mb-3",children:[e.jsx("div",{className:"w-10 h-10 bg-[#22c55e] rounded-lg flex items-center justify-center",children:e.jsx("svg",{className:"w-5 h-5 text-white",f
1ill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Favorite Model"}),e.jsx("p",{className:"font-semibold text-gray-900 capitalize",children:a.favoriteModel})]})]})}),e.jsx("div",{className:"bg-gradient-to-br from-blue-500/10 to-blue-600/5 rounded-2xl border border-blue-500/20 p-6","data-tooltip-id":"main-tooltip","data-tooltip-content":"Your most recent activity",children:e.jsxs("div",{className:"flex items-center space-x-3 mb-3",children:[e.jsx("div",{className:"w-10 h-10 bg-blue-500 rounded-lg flex items-center justify-center",children:e.jsx("svg",{className:"w-5 h-5 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Last Active"}),e.jsx("p",{className:"font-semibold text-gray-900",children:a.lastActive})]})]})}),e.jsx("div",{className:"bg-gradient-to-br from-purple-500/10 to-purple-600/5 rounded-2xl border border-purple-500/20 p-6","data-tooltip-id":"main-tooltip","data-tooltip-content":"When you joined ezbar.ai",children:e.jsxs("div",{className:"flex items-center space-x-3 mb-3",children:[e.jsx("div",{className:"w-10 h-10 bg-purple-500 rounded-lg flex items-center justify-center",children:e.jsx("svg",{className:"w-5 h-5 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Member Since"}),e.jsx("p",{className:"font-semibold text-gray-900",children:a.memberSince})]})]})})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8",children:[e.jsxs("div",{className:"lg:col-span-1 bg-white rounded-2xl border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Model Usage"}),e.jsx("div",{className:"space-y-4",children:f.map((t,i)=>e.jsxs("div",{"data-tooltip-id":"main-tooltip","data-tooltip-content":`${t.count} conversations using ${t.model}`,children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[p(t.model),e.jsx("span",{className:"text-sm font-medium text-gray-700 capitalize",children:t.model})]}),e.jsxs("span",{className:"text-sm text-gray-600",children:[t.count," (",t.percentage,"%)"]})]}),e.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2",children:e.jsx("div",{className:"bg-[#22c55e] h-2 rounded-full transition-all duration-500",style:{width:`${t.percentage}%`}})})]},i))})]}),e.jsxs("div",{className:"lg:col-span-2 bg-white rounded-2xl border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Language Distribution"}),e.jsx("div",{className:"flex flex-wrap gap-4",children:v.map((t,i)=>e.jsxs("div",{className:"flex-1 min-w-[150px]","data-tooltip-id":"main-tooltip","data-tooltip-content":`${t.count} conversations in ${t.name}`,children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsx("span",{className:"text-sm font-medium text-gray-700",children:t.name}),e.jsxs("span",{className:"text-sm text-gray-600",children:[t.percentage,"%"]})]}),e.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2",children:e.jsx("div",{className:`${w(t.code)} h-2 rounded-full transition-all duration-500`,style:{width:`${t.percentage}%`}})}),e.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:[t.count," conversations"]})]},i))})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl border border-gray-200 p-6 mb-8",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:"Recent 
1Conversations"}),e.jsxs(r,{href:"/ai/history",className:"text-sm text-[#22c55e] hover:text-[#16a34a] font-medium flex items-center","data-tooltip-id":"main-tooltip","data-tooltip-content":"View all conversation history",children:["View All",e.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]}),e.jsx("div",{className:"space-y-4",children:j.map(t=>e.jsx(r,{href:`/X/${t.slug}`,className:"block p-4 hover:bg-gray-50 rounded-xl transition-colors border border-gray-100 hover:border-gray-200","data-tooltip-id":"main-tooltip","data-tooltip-content":`View conversation: ${t.conversation_title}`,children:e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center space-x-2 mb-1",children:[p(t.model),e.jsx("h3",{className:"font-medium text-gray-900",children:t.conversation_title})]}),e.jsxs("p",{className:"text-sm text-gray-600 line-clamp-1 mb-2",children:['"',t.query,'"']}),e.jsxs("div",{className:"flex items-center space-x-4 text-xs",children:[e.jsx("span",{className:"text-gray-500","data-tooltip-id":"main-tooltip","data-tooltip-content":t.created_at_formatted,children:t.created_at_diff}),e.jsx("span",{className:"text-gray-300",children:"•"}),e.jsxs("span",{className:"text-gray-500","data-tooltip-id":"main-tooltip","data-tooltip-content":`${t.message_count} messages in this conversation`,children:[t.message_count," messages"]}),e.jsx("span",{className:"text-gray-300",children:"•"}),e.jsxs("span",{className:"text-emerald-600 font-medium","data-tooltip-id":"main-tooltip","data-tooltip-content":"Estimated cost for this conversation",children:["$",c(t.conversation_cost)]})]})]}),e.jsx("svg",{className:"w-5 h-5 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})},t.id))})]}),e.jsxs("div",{className:"bg-white rounded-2xl border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Most Resource-Intensive Conversations"}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Conversation"}),e.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Messages"}),e.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Tokens"}),e.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Cost"}),e.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Date"}),e.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"})]})}),e.jsx("tbody",{className:"divide-y divide-gray-200",children:b.map(t=>e.jsxs("tr",{className:"hover:bg-gray-50",children:[e.jsx("td",{className:"px-4 py-3",children:e.jsx("div",{className:"font-medium text-gray-900",children:t.conversation_title})}),e.jsx("td",{className:"px-4 py-3 text-sm text-gray-600","data-tooltip-id":"main-tooltip","data-tooltip-content":`${t.message_count} messages`,children:t.message_count}),e.jsx("td",{className:"px-4 py-3 text-sm text-gray-600","data-tooltip-id":"main-tooltip","data-tooltip-content":`${n(t.total_tokens)} total tokens used`,children:n(t.total_tokens)}),e.jsxs("td",{className:"px-4 py-3 text-sm font-medium text-emerald-600","data-tooltip-id":"main-tooltip","data-tooltip-content":"Estimated cost for this conversation",children:["$",c(t.conversation_cost)]}),e.jsx("td",{className:"px-4 py-3 text-sm text-gray-500","data-tooltip-id":"main-tooltip","data-tooltip-content":t.created_at_formatted,children:t.created_at_formatted}),e.jsx("td",{className:"px-4 py-3",children:e.jsx(r,{href:`/X/${t.slug}`,className:"text-[#22c55e] hover:text-[#16a34a] text-sm font-medium","data-tooltip-id":"main-tooltip","data-tooltip-content":"View this conversation",children:"View →"})})]},t.id))})]})})]})]})]})})}),s.isOpen&&e.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/50 p-4",children:e.jsxs("div",{className:"bg-white rounded-2xl shadow-2xl max-w-md w-full transform transition-all duration-300 scale-100 opacity-100",children:[e.jsx("div",{className:`px-6 py-5 rounded-t-2xl bg-gradient-to-r ${s.iconColor==="purple"?"from-purple-500 to-purple-600":s.iconColor==="blue"?"from-blue-500 to-blue-600":s.iconColor==="green"?"from-green-500 to-green-600":"from-orange-500 to-orange-600"}`,children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:"w-14 h-14 roun
1ded-xl bg-white/20 backdrop-blur-sm flex items-center justify-center",children:s.icon}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-white",children:s.feature}),e.jsxs("div",{className:"flex items-center space-x-2 mt-1",children:[e.jsx("span",{className:"px-2 py-0.5 bg-white/30 rounded-full text-xs font-semibold text-white","data-tooltip-id":"main-tooltip","data-tooltip-content":"This feature is in development",children:"Coming Soon"}),e.jsx("span",{className:"text-white/80 text-xs",children:"• Pre-alpha"})]})]})]}),e.jsx("button",{onClick:d,className:"text-white/80 hover:text-white transition-colors p-2 hover:bg-white/10 rounded-lg","aria-label":"Close modal","data-tooltip-id":"main-tooltip","data-tooltip-content":"Close modal",children:e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M18 6 6 18"}),e.jsx("path",{d:"m6 6 12 12"})]})})]})}),e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("h4",{className:"text-sm font-semibold text-gray-700 mb-2",children:"✨ What's coming?"}),e.jsx("p",{className:"text-gray-600 leading-relaxed",children:s.description})]}),e.jsxs("div",{className:"bg-gray-50 rounded-xl p-4 mb-6",children:[e.jsx("h4",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wider mb-3",children:"Early Preview"}),e.jsxs("div",{className:"space-y-2",children:[s.feature==="Analytics"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-600","data-tooltip-id":"main-tooltip","data-tooltip-content":"Track your AI usage in real-time",children:[e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#22c55e",strokeWidth:"2",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"m9 12 2 2 4-4"})]}),e.jsx("span",{children:"Real-time AI usage tracking and analytics"})]}),e.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-600","data-tooltip-id":"main-tooltip","data-tooltip-content":"Monitor token consumption and costs",children:[e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#22c55e",strokeWidth:"2",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"m9 12 2 2 4-4"})]}),e.jsx("span",{children:"Token consumption and cost insights"})]}),e.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-600","data-tooltip-id":"main-tooltip","data-tooltip-content":"Generate custom reports",children:[e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#22c55e",strokeWidth:"2",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"m9 12 2 2 4-4"})]}),e.jsx("span",{children:"Custom reports and exportable data"})]})]}),s.feature==="Collections"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-600","data-tooltip-id":"main-tooltip","data-tooltip-content":"Organize conversations into custom groups",children:[e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#22c55e",strokeWidth:"2",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"m9 12 2 2 4-4"})]}),e.jsx("span",{children:"Organize conversations into custom collections"})]}),e.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-600","data-tooltip-id":"main-tooltip","data-tooltip-content":"Add notes and tags to conversations",children:[e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#22c55e",strokeWidth:"2",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"m9 12 2 2 4-4"})]}),e.jsx("span",{children:"Add notes, tags, and custom metadata"})]}),e.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-600","data-tooltip-id":"main-tooltip","data-tooltip-content":"Export entire conversation threads",children:[e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#22c55e",strokeWidth:"2",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"m9 12 2 2 4-4"})]}),e.jsx("span",{children:"Export conversation threads"})]})]}),s.feature==="Bookmarks"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-600","data-tooltip-id":"main-tooltip","data-tooltip-content":"Save important conversations for later",children:[e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#22c55e",strokeWidth:"2",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"m9 12 2 2 4-4"})]}),e.jsx("span",{children:"Save important conversations"})]}),e.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-600","data-tooltip-id":"main-tooltip","data-tooltip-content":"Access your bookmarks across devices",children:[e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#22c55e",strokeWidth:"2",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"m9 12 2 2 4-4"})]}),e.jsx("span",{children:"Cross-device synchronization"})]}),e.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-600","data-tooltip-id":"main-tooltip","data-tooltip-content":"Organize bookmarks into folders",children:[e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#22c55e",strokeWidth:"2",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"m9 12 2 2 4-4"})]}),e.jsx("span",{children:"Folder organization and search"})]})]})]})]}),e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsxs("button",{onClick:()=>{d(),setTimeout(()=>{alert(`You'll be notified when ${s.feature} launches!`)},100)},className:`flex-1 px-4 py-3 ${s.iconColor==="purple"?"bg-purple-500 hover:bg-purple-600":s.iconColor==="blue"?"bg-blue-500 hover:bg-blue-600":s.iconColor==="green"?"bg-green-500 hover:bg-green-600":"bg-orange-500 hover:bg-orange-600"} text-white font-medium rounded-xl transition-colors flex items-center justify-center space-x-2`,"data-tooltip-id":"main-tooltip","data-tooltip-content":"Get notified when this feature launches",children:[e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:e.jsx("path",{d:"M22 2 11 13M22 2l-7 20-4-9-9-4 20-7z"})}),e.jsx("span",{children:"Notify Me"})]}),e.jsx("button",{onClick:d,className:"flex-1 px-4 py-3 bg-gray-100 hover:bg-gray-200 text-gray-700 font-medium rounded-xl transition-colors","data-tooltip-id":"main-tooltip","data-tooltip-content":"Close this modal",children:"Maybe Later"})]})]}),e.jsx("div",{className:"px-6 py-3 bg-gray-50 border-t border-gray-200 rounded-b-2xl",children:e.jsxs("p",{className:"text-xs text-gray-500 text-center flex items-center justify-center space-x-1",children:[e.jsx("span",{children:"🚧"}),e.jsx("span",{children:"We're working hard to bring you this feature. Stay tuned for updates!"})]})})]})})]})}export{S 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.