import{d as e,m as t,t as n}from"./hooks.module-5xe-uC6c.js";import{I as r,N as i,r as a}from"./content_renderer-CoENEE63.js";import{t as o}from"./jsxRuntime.module--xb8gfv5.js";import{U as s}from"./hooks-CSTgmcXO.js";e();function c({note:e,viewScope:c,ntxId:l}){let u=n(null),d=n(null);return t(()=>{e&&(u.current=a(e).then(e=>{d.current&&(d.current.replaceChildren(...e),r.triggerEvent(`contentElRefreshed`,{ntxId:l,contentEl:d.current}))}))},[e,l]),s(`executeWithContentElement`,async({resolve:e,ntxId:t})=>{t===l&&(await u.current,e(i(d)))}),o(`div`,{ref:d,className:`note-detail-doc-content ck-content ${c?.viewMode===`contextual-help`?`contextual-help`:``}`})}export{c as default};