import{T as i,E as d,a as c,u as p,b as l,p as f}from"./Wrapper-obocs1sV.chunk.mjs";import{w as u,i as C}from"./vue.runtime.esm-CbNPNm8f.chunk.mjs";import{n as b}from"./NcCheckboxRadioSwitch-D4IV4zWy-Bb19W4wJ.chunk.mjs";const _={name:"BaseReader",components:{EditorContent:d,TocContainer:i},props:{content:{type:String,required:!0}},setup(t){const e=C("extensions"),n=new c({extensions:e()});f(n);const{useTableOfContents:r}=p(),{setContent:o,setEditable:a}=l(n);return u(()=>t.content,s=>{console.warn({content:s}),o(s)}),a(!1),o(t.content,{addToHistory:!1}),{editor:n,useTableOfContents:r}},beforeDestroy(){this.editor?.destroy()}};var m=function(){var t=this,e=t._self._c;return e("div",{staticClass:"editor__content-wrapper",attrs:{"data-text-el":"editor-content-wrapper"}},[e("EditorContent",{staticClass:"editor__content text-editor__content",attrs:{id:"read-only-editor",editor:t.editor}}),t.useTableOfContents?e("TocContainer"):t._e()],1)},x=[],T=b(_,m,x,!1,null,"03dfbbdb");const v=T.exports;export{v as B};
//# sourceMappingURL=BaseReader-DF7IocT4.chunk.mjs.map
