import{d as e,l as t,t as n}from"./hooks.module-BrXTvcfS.js";import{G as r,a as i}from"./content_renderer-DOj8g78V.js";import{t as a}from"./jsxRuntime.module-Cao1NCKs.js";import{o}from"./react_utils-Bz0ffU2Y.js";import{J as s}from"./hooks-ClTXKdUl.js";e();function c({note:e,viewScope:c,ntxId:l}){let u=n(null),d=n(null);return t(()=>{e&&(u.current=i(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(o(d)))}),a(`div`,{ref:d,className:`note-detail-doc-content ck-content ${c?.viewMode===`contextual-help`?`contextual-help`:``}`})}export{c as default};