import{d,bi as m,gm as u,G as c,gn as s,I as f,o as p,k as v,n,gk as _}from"./vEhBzV6O.js";import{B as k,a as g,H as h,I as B,L,P as b,S as x,U as C,O as E,C as I}from"./Cv4LrTK7.js";import{D as P,T as M}from"./BIcaVmDO.js";import{P as U}from"./BD8rYre8.js";const O=d({__name:"static-html-renderer",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(r){const i=m(r,"modelValue"),e=u({extensions:[k,g,P,h,B,L,b,U,x,M,C,E,I],content:i.value??"",editable:!1});return c(()=>{var a,t;e.value&&e.value instanceof s&&((t=(a=e.value)==null?void 0:a.view)!=null&&t.dom)&&["contenteditable","translate","class"].forEach(l=>{var o;(o=e.value)==null||o.view.dom.removeAttribute(l)})}),f(()=>{var a;e.value instanceof s&&((a=e.value)==null||a.destroy())}),(a,t)=>(p(),v(n(_),{editor:n(e)},null,8,["editor"]))}});export{O as _};
