(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,290357,e=>{"use strict";var t=e.i(804690),i=e.i(753930),o=e.i(242092),a=e.i(856672),r=e.i(728811),n=e.i(470028),d=e.i(678450),l=e.i(539534),s=e.i(482794),u=e.i(396417),c=e.i(541524);e.i(807781),e.i(315139),e.i(897577);var f=e.i(245950),m=e.i(752776),p=e.i(993667),T=e.i(545502),b=e.i(403055);let g=(0,p.createLowlight)(m.common);function h({content:e,className:m,testId:p}){let{resolvedTheme:h}=(0,o.useTheme)(),k=(0,a.useEditor)({immediatelyRender:!1,editable:!1,extensions:[r.default.configure({codeBlock:!1}),(0,T.createCodeBlockWithMermaid)(g),f.Markdown.configure({html:!0,transformPastedText:!1,transformCopiedText:!1}),l.default.configure({openOnClick:!1}),n.default,d.default,s.default,u.default.configure({nested:!0}),c.Table.configure({resizable:!1}),c.TableRow,c.TableCell,c.TableHeader]});return(0,i.useEffect)(()=>{k&&!k.isDestroyed&&k.commands.setContent(e,{emitUpdate:!1})},[k,e]),(0,t.jsx)(a.EditorContent,{editor:k,"data-testid":p,className:(0,b.cn)("tiptap-plan-wrapper markdown-body !h-auto","dark"===h&&"dark","[&_.ProseMirror]:outline-none [&_.ProseMirror]:focus:outline-none","[&_.tiptap]:!p-0",m)})}e.s(["PlanReadOnlyMarkdown",()=>h])},793349,e=>{e.n(e.i(290357))}]);