1import{j as t,H as i,L as o}from"./app-DP13319Q.js";import{M as l}from"./index-WruS1vxz.js";import{M as n}from"./react-tooltip.min-DW3XhwOj.js";/* empty css */function h({conversation:e}){const a={backgroundColor:"transparent",color:"#1f2937",fontFamily:"Inter, sans-serif",fontSize:"14px",lineHeight:"1.6"};return t.jsxs(t.Fragment,{children:[t.jsx(i,{title:e.conversation_title}),t.jsx(n,{id:"conversation-tooltip",place:"top",className:"!bg-gray-900 !text-white !text-xs !px-3 !py-2 !rounded-lg !z-[100] !shadow-xl",effect:"solid"}),t.jsx("div",{className:"flex min-h-screen flex-col bg-[#FCFCFC]",children:t.jsxs("div",{className:"flex-1 w-full flex",children:[t.jsxs("aside",{className:"w-20 border-r border-gray-100 flex flex-col items-center py-6 bg-white fixed h-screen",children:[t.jsx(o,{href:"/",className:"text-[#22c55e] mb-8","data-tooltip-id":"conversation-tooltip","data-tooltip-content":"Go to home page",children:t.jsx("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:t.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"})})}),t.jsxs(o,{href:"/ai/history",className:"flex flex-col items-center group","data-tooltip-id":"conversation-tooltip","data-tooltip-content":"Back to conversation history",children:[t.jsx("div",{className:"p-2 bg-[#22c55e]/10 rounded-full",children:t.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"#22c55e",strokeWidth:"2",children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("polyline",{points:"12 6 12 12 16 14"})]})}),t.jsx("span",{className:"text-[10px] mt-1 text-[#22c55e] font-medium",children:"Back"})]})]}),t.jsxs("main",{className:"flex-1 ml-20 max-w-4xl mx-auto px-4 py-8",children:[t.jsx("div",{className:"mb-6",children:t.jsxs(o,{href:"/ai/history",className:"inline-flex items-center text-sm text-gray-600 hover:text-[#22c55e]","data-tooltip-id":"conversation-tooltip","data-tooltip-content":"Return to history list",children:[t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"mr-1",children:t.jsx("path",{d:"m15 18-6-6 6-6"})}),"Back to History"]})}),t.jsxs("div",{className:"bg-white rounded-xl border border-gray-200 p-6",children:[t.jsxs("div",{className:"mb-6 pb-4 border-b border-gray-200",children:[t.jsx("h1",{className:"text-2xl font-bold text-gray-900 mb-2",children:e.conversation_title}),t.jsxs("div",{className:"flex items-center space-x-4 text-sm text-gray-500",children:[t.jsx("span",{"data-tooltip-id":"conversation-tooltip","data-tooltip-content":"When this conversation started",children:e.created_at_formatted}),t.jsx("span",{children:"â¢"}),t.jsxs("span",{"data-tooltip-id":"conversation-tooltip","data-tooltip-content":`Total messages in this conversation: ${e.message_count}`,children:[e.message_count," messages"]}),t.jsx("span",{children:"â¢"}),t.jsxs("span",{"data-tooltip-id":"conversation-tooltip","data-tooltip-content":`Total tokens used: ${e.total_tokens}`,children:["Total tokens: ",e.total_tokens]}),t.jsx("span",{children:"â¢"}),t.jsxs("span",{"data-tooltip-id":"conversation-tooltip","data-tooltip-content":`Total cost of this conversation: $${e.total_cost}`,children:["Cost: $",e.total_cost]})]})]}),t.jsx("div",{className:"space-y-6",children:e.messages.map(s=>t.jsx("div",{className:`flex ${s.message_role==="user"?"justify-end":"justify-start"}`,children:t.jsxs("div",{className:`max-w-[80%] ${s.message_role==="user"?"text-right":"text-left"}`,children:[s.message_role==="user"?t.jsx("div",{className:"bg-[#22c55e] text-white rounded-2xl px-4 py-3","data-tooltip-id":"conversation-tooltip","data-tooltip-content":"Your question",children:t.jsx("p",{className:"font-medium",children:s.query})}):t.jsx("div",{className:"bg-gray-100 rounded-2xl px-4 py-3","data-tooltip-id":"conversation-tooltip","data-tooltip-content":"AI response",children:t.jsx(l,{source:s.response,style:a})}),t.jsxs("div",{className:`text-xs text-gray-500 mt-1 ${s.message_role==="user"?"text-right":"text-left"}`,children:[t.jsx("span",{"data-tooltip-id":"conversation-tooltip","data-tooltip-content":`Sent at ${s.created_at_formatted}`,children:s.created_at_formatted}),s.thinking_enabled&&t.jsx("span",{className:"ml-2 px-1.5 py-0.5 bg-purple-100 text-purple-600 rounded text-[10px]","data-tooltip-id":"conversation-tooltip","data-tooltip-content":"This response used thinking mode for enhanced reasoning",children:"Thinking mode"})]})]})},s.id))}),t.jsx("div",{className:"mt-8 pt-4 border-t border-gray-200",children:t.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500",children:[t.jsxs("div",{className:"flex items-center space-x-4",children:[t.jsxs("span",{className:"flex items-center space-x-1","data-tooltip-id":"conversation-tooltip","data-tooltip-content":"Total messages in this conversation",children:[t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:t.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})}),t.jsxs("span",{children:[e.message_count," messages"]})]}),t.jsxs("span",{className:"flex items-center space-x-1","data-tooltip-id":"conversation-tooltip","data-tooltip-content":"Total tokens used across all messages",children:[t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:t.jsx("path",{d:"M2 12h5l2-4 3 8 3-8 2 4h5"})}),t.jsxs("span",{children:[e.total_tokens," tokens"]})]}),t.jsxs("span",{className:"flex items-center space-x-1","data-tooltip-id":"conversation-tooltip","data-tooltip-content":"Total cost of this conversation",children:[t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:t.jsx("path",{d:"M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"})}),t.jsxs("span",{children:["$",e.total_cost]})]})]}),t.jsx(o,{href:"/ai/history",className:"text-[#22c55e] hover:text-[#16a34a] transition-colors","data-tooltip-id":"conversation-tooltip","data-tooltip-content":"View all conversations",children:"View History â
1"})]})})]})]})]})})]})}export{h 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.