import{r as p}from"./full-conversation-normalized-LUbl1coD.js";import{R as m}from"./ai-response-ySM6s0iN.js";import"./iframe-B8FSoBNY.js";import"./preload-helper-PPVm8Dsz.js";import"./compiler-runtime-BXE7OOXE.js";import"./collaborative-markdown-editor-Bj0GvTvv.js";import"./rich-text-theme-Bkhh9rAZ.js";import"./index-DaXC_qY_.js";import"./index-DpB4ozcR.js";import"./factory-DAJZwK4o.js";import"./flex-DAJL4AFZ.js";import"./CodeBlockPlugin-C3OWpvP8.js";import"./index-B0y2_lLF.js";import"./index-cFwdnc0b.js";import"./create-recipe-context-BU56IzEo.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"./create-slot-recipe-context-DAhDE6G_.js";import"./FloatingTextFormatToolbarPlugin-B6jc8xvg.js";import"./resource-badge-Bw5UoU4J.js";import"./createLucideIcon-CcBBUKX8.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"./icon-button-DHiUe7rR.js";import"./button-C7it2n8t.js";import"./spinner-ZYH_gvW-.js";import"./index-CXwl6T4k.js";import"./x-D42ziktz.js";import"./stack-CN4X31TA.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";const e=p,i=t=>t.parts?.find(s=>s.type==="text"&&"text"in s)?.text,a=e.filter(t=>t.role==="user").map(i).find(Boolean)??"No user message available.",n=e.filter(t=>t.role==="assistant").map(i).find(t=>typeof t=="string"&&t.length>0)??"No assistant message available.",tt={title:"Chat UI/AI Response",component:m,parameters:{layout:"padded"}},r={args:{children:n,height:"auto"}},o={args:{children:a,height:"auto"}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{
  args: {
    children: assistantResponseForStory,
    height: "auto"
  }
}`,...r.parameters?.docs?.source}}};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`{
  args: {
    children: userPromptForStory,
    height: "auto"
  }
}`,...o.parameters?.docs?.source}}};const rt=["AssistantResponse","UserPromptAsContent"];export{r as AssistantResponse,o as UserPromptAsContent,rt as __namedExportsOrder,tt as default};
