1import{j as e}from"./app-D81FD0go.js";import{f as u}from"./dateUtils-DQoeIO_U.js";import{M as h}from"./message-square-KXvHBsWP.js";import"./createLucideIcon-DWaMr7ws.js";const b=({channelName:t,channelType:r,assistantName:l,createdAt:g,locationContextName:c,emailSubject:n})=>{const m=a=>u(a),p={messenger:"/images/messenger.png",instagram:"/images/instagram.png",whatsapp:"/images/whatsapp.png",widget:"/images/widget.png",microsoft_email:"/images/outlook.png",google_workspace:"/images/google.png"},x=a=>{const i=p[a??""]??"/images/widget.png";return e.jsx("img",{src:i,className:"h-3.5 w-3.5",alt:a??"channel"})},o=(()=>{switch(r){case"whatsapp":return"WhatsApp";case"instagram":return"Instagram";case"messenger":return"Messenger";case"microsoft_email":return"Outlook";case"google_workspace":return"Gmail";case"voice":return"Voice";case"widget":case void 0:case null:case"":return"Chat Widget";default:return r.charAt(0).toUpperCase()+r.slice(1)}})(),d=t&&t.trim()!==""&&t!==o,s=({label:a,value:i})=>e.jsxs("div",{className:"flex items-baseline gap-2 py-1 text-xs",children:[e.jsxs("span",{className:"w-24 shrink-0 text-gray-500",children:[a,":"]}),e.jsx("span",{className:"flex-1 min-w-0 truncate text-gray-900",children:i})]});return e.jsxs("div",{className:"w-full bg-white border-b border-gray-200",children:[e.jsxs("div",{className:"flex items-center gap-1.5 px-4 pt-3 pb-1.5",children:[e.jsx(h,{className:"h-3.5 w-3.5 text-gray-500"}),e.jsx("h3",{className:"text-xs font-semibold text-gray-900",children:"Conversation"})]}),e.jsx("div",{className:"px-4 pb-4",children:e.jsxs("div",{className:"divide-y divide-gray-100",children:[e.jsx(s,{label:"Channel",value:e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[x(r),e.jsx("span",{className:"truncate",children:o})]})}),d&&e.jsx(s,{label:"Channel name",value:t}),n&&e.jsx(s,{label:"Subject",value:e.jsx("span",{title:n,children:n})}),l&&e.jsx(s,{label:"Assistant",value:l}),c&&e.jsx(s,{label:"Location",value:c}),e.jsx(s,{label:"Started",value:m(g)})]})})]})};export{b 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.