1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./quill.CIgjrtLB.css"])))=>i.map(i=>d[i]); 2import{r as q,y as j,a7 as x,ah as E,e as _,M as c,h as A,c as k,o as D,a as R,Q as h}from"./BrkBPn3Y.js";import{initLottieFromHtml as g}from"./GqP-Dc3b.js";const b=["innerHTML"],B={__name:"WysiwygContent",props:{htmlContent:{type:String,default:""},wrapperDefaultClasses:{type:String,default:"ql-snow"},wrapperClasses:{type:String,default:""},defaultClasses:{type:String,default:"ql-editor"},classes:{type:String,default:""}},setup(a){const f=a,l=q(null),C=j();x(()=>Promise.resolve({}),__vite__mapDeps([0]),import.meta.url);const o=E("loadScript"),u=new Set,m=t=>{try{if(!t)return;const n=/ql-font-([\w-]+)/g,r=t.matchAll(n),e=new Set;for(const s of r)e.add(s[1]);if(e.size===0)return;const S=(t.match(/<style[^>]*>([\s\S]*?)<\/style>/gi)||[]).join("");let i=document.getElementById("quill-font-styles");i||(i=document.createElement("style"),i.id="quill-font-styles",document.head.appendChild(i));let d="";for(const s of e){const w=new RegExp(`\\.ql-font-${s.replace(/[_]/g,"\\-")}\\s*{`,"i");if(!S.match(w)&&!u.has(s)){const v=s.split("_").map(p=>p.charAt(0).toUpperCase()+p.slice(1)).join(" ");d+=`.ql-font-${s} { 3 font-family: '${v}', sans-serif; 4} 5`,u.add(s)}}d&&(i.textContent+=d)}catch{}};return _(async()=>{m(f.htmlContent);const t=document.querySelector(".ql-editor");if(t&&t.querySelectorAll("a").forEach(r=>{const e=r.getAttribute("href");e&&!e.startsWith("http")&&r.addEventListener("click",y=>{y.preventDefault(),C.push(e)})}),o){await c();const n=l.value.querySelectorAll('div[lottie-id][media-type="lottie"]');n&&n.length>0&&await o("https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.13.0/lottie.min.js",!0)}await c(),g(l.value)}),A(()=>f.htmlContent,async()=>{if(m(f.htmlContent),o){await c();const t=l.value.querySelectorAll('div[lottie-id][media-type="lottie"]');t&&t.length>0&&await o("https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.13.0/lottie.min.js",!0)}await c(),g(l.value)}),(t,n)=>(D(),k("div",{class:h([a.wrapperDefaultClasses,a.wrapperClasses])},[R("article",{ref_key:"articleContainerRef",ref:l,class:h([a.defaultClasses,a.classes]),innerHTML:a.htmlContent},null,10,b)],2))}};export{B as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.