import{a as m,C as _,b as C,k as v,o as y,O as h,m as x,g as S,u as k,I as A,v as b}from"./convert-case-to-camel-case.utils-DDUpNI96.js";const E=["innerHTML"],I=m({__name:"Html",props:{field:{}},setup(l){const i=l,{field:r}=_(i),u=C(()=>{var t;return((t=r.value)==null?void 0:t.additionalStyles)||""}),o=v(null);function f(t){var c;const a=Array.from(t.querySelectorAll("script"));for(const e of a){const n=document.createElement("script");for(const{name:p,value:d}of Array.from(e.attributes))try{n.setAttribute(p,d)}catch{}e.src?n.src=e.src:n.textContent=e.textContent||"",(c=e.parentNode)==null||c.replaceChild(n,e)}}async function s(){o.value&&(await b(),f(o.value))}return y(()=>{s()}),h(()=>{var t;return(t=r.value)==null?void 0:t.htmlContent},()=>{s()}),(t,a)=>(S(),x("div",{class:A(["ccb-field",{[u.value]:!0}]),ref_key:"rootEl",ref:o,innerHTML:k(r).htmlContent},null,10,E))}});export{I as default};
//# sourceMappingURL=index-BVuIQ59J.js.map
