import{j as r}from"./iframe-B8FSoBNY.js";import{c as p}from"./compiler-runtime-BXE7OOXE.js";import{r as a}from"./full-conversation-normalized-LUbl1coD.js";import{C as e}from"./ai-conversation-DcjS--ee.js";import{C as m}from"./ai-message-DLdAGhWH.js";import{m as n,M as l,g as s}from"./message-types-CEyA7Qm7.js";import{B as c}from"./index-B0y2_lLF.js";import{S as d}from"./stack-CN4X31TA.js";import"./preload-helper-PPVm8Dsz.js";import"./factory-DAJZwK4o.js";import"./button-C7it2n8t.js";import"./create-recipe-context-BU56IzEo.js";import"./spinner-ZYH_gvW-.js";import"./index-CXwl6T4k.js";import"./icon-button-DHiUe7rR.js";import"./createLucideIcon-CcBBUKX8.js";import"./create-slot-recipe-context-DAhDE6G_.js";import"./collaborative-markdown-editor-Bj0GvTvv.js";import"./rich-text-theme-Bkhh9rAZ.js";import"./index-DaXC_qY_.js";import"./index-DpB4ozcR.js";import"./flex-DAJL4AFZ.js";import"./CodeBlockPlugin-C3OWpvP8.js";import"./index-cFwdnc0b.js";import"./textarea-rqmaWSc5.js";import"./factory-BR3bc_RM.js";import"./use-field-context-DoxKQlMm.js";import"./computed-style-C0hzrq9-.js";import"./table-BKNSzs2r.js";import"./FloatingTextFormatToolbarPlugin-B6jc8xvg.js";import"./resource-badge-Bw5UoU4J.js";import"./file-text-D5m8MJlG.js";import"./tooltip-DZxUoouw.js";import"./portal-CZHfPTRw.js";import"./normalize-props-D7NI5JRu.js";import"./tooltip-C_a-XGZ8.js";import"./use-presence-context-DK2PGZth.js";import"./create-split-props-u5h9OPvL.js";import"./overflow-CkG1DOya.js";import"./x-D42ziktz.js";import"./markdown-editor-Y4eMsgVb.js";import"./LexicalHistoryPlugin.prod-BQAibkDj.js";import"./TreeViewPlugin-CyVKCrKJ.js";import"./markdown-BLUemkxK.js";import"./prompt-input-BLCttowi.js";import"./rich-message-BIkzo1SM.js";import"./ai-response-ySM6s0iN.js";import"./tool-invocation-timeline-B-cS0W6M.js";import"./trash-2-BO05slEk.js";import"./mutation-observer-CAfGweIM.js";import"./link-DE5grRtm.js";import"./diff-bubble-_zZypMRt.js";import"./diff-editor-DV9BXqbn.js";const x=a,ur={title:"Chat UI/AI Conversation",component:e.Root,parameters:{layout:"padded"}},f=n(x).slice(-18),g=()=>{const o=p.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx(c,{h:"640px",maxW:"960px",w:"full",borderWidth:"1px",borderRadius:"md",bg:"bg",overflow:"hidden",children:r.jsxs(e.Root,{children:[r.jsx(e.Viewport,{children:r.jsx(d,{gap:"sm",children:f.map(u)})}),r.jsx(e.ScrollToBottom,{"aria-label":"Scroll to latest message"})]})}),o[0]=t):t=o[0],t},i={render:()=>r.jsx(g,{})};function u(o){return r.jsx(m.Root,{from:s(o.role),children:r.jsx(m.Content,{from:s(o.role),children:r.jsx(l,{message:o})})},o.id)}i.parameters={...i.parameters,docs:{...i.parameters?.docs,source:{originalSource:`{
  render: () => <ConversationPreview />
}`,...i.parameters?.docs?.source}}};const hr=["FullConversationPreview"];export{i as FullConversationPreview,hr as __namedExportsOrder,ur as default};
