{"version":3,"file":"DockConversation.cjs","names":["useT","Timeline","FileIcon"],"sources":["../../../../src/web/features/session/DockConversation.tsx"],"sourcesContent":["import { useT } from '@agimon-ai/po-core/web';\nimport { FileIcon } from '@agimon-ai/po-web-components';\nimport type { ComponentType, ReactNode } from 'react';\n\nimport { Timeline, type TranscriptTurnRenderProps } from './Timeline';\n\n/**\n * The conversation beside a file canvas: the dense transcript, what the next\n * message is about, then the template's composer. The same body fills the\n * dock's Conversation tab and the narrow-screen sheet.\n */\nexport function DockConversation({\n  label,\n  renderTurn,\n  composer,\n}: {\n  /** The file the conversation sits beside; the message carries it when sent. */\n  label: string;\n  renderTurn?: ComponentType<TranscriptTurnRenderProps>;\n  composer: ReactNode;\n}) {\n  const t = useT();\n  return (\n    <>\n      <div className=\"relative flex min-h-0 flex-1 flex-col\">\n        <Timeline dense showThinking={false} renderTurn={renderTurn} />\n      </div>\n      <div className=\"flex shrink-0 flex-col gap-1.5 px-3 pt-2 pb-3\">\n        {/* Says what the message carries, since the composer no longer sits on the file it is about. */}\n        <p data-testid=\"dock-conversation-about\" className=\"flex min-w-0 items-center gap-1.5 px-5 text-sm text-po-dim\">\n          <FileIcon aria-hidden className=\"size-3.5 shrink-0\" />\n          <span className=\"truncate\">{t('webDashboard.session.aboutFile', 'About {label}', { label })}</span>\n        </p>\n        {composer}\n      </div>\n    </>\n  );\n}\n"],"mappings":";;;;;;;;;;AAWA,SAAgB,iBAAiB,EAC/B,OACA,YACA,YAMC;CACD,MAAM,KAAA,GAAIA,uBAAAA,KAAAA,CAAK;CACf,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAA,kBAAA,UAAA,EAAA,UAAA,CACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;EAAK,WAAU;EACb,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAACC,iBAAAA,UAAD;GAAU,OAAA;GAAM,cAAc;GAAmB;EAAa,CAAA;CAC3D,CAAA,GACL,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CAEE,iBAAA,GAAA,kBAAA,KAAA,CAAC,KAAD;GAAG,eAAY;GAA0B,WAAU;GAAnD,UAAA,CACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,6BAAAA,UAAD;IAAU,eAAA;IAAY,WAAU;GAAqB,CAAA,GACrD,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;IAAM,WAAU;IAAY,UAAA,EAAE,kCAAkC,iBAAiB,EAAE,MAAM,CAAC;GAAQ,CAAA,CACjG;EACF,CAAA,GAAA,QACE;CACL,CAAA,CAAA,EAAA,CAAA;AAEN"}