1import{q as f,O as l,ae as m,o as _,ar as d,as as h,ak as g,a as v,b as p}from"./LpSPXVdX.js";const L=["innerHTML"],b=f({__name:"RichText",props:{html:{}},setup(u){const s=l(null),t=m(),n=l([]);_(()=>{t&&r()}),d(()=>{t&&c()}),h(()=>{t&&(c(),g(()=>{r()}))});const r=()=>{n.value=s.value?[...s.value.getElementsByTagName("a")]:[],n.value.forEach(e=>{e.hasAttribute("download")||e.addEventListener("click",i,!1)})},c=()=>{n.value.forEach(e=>{e.hasAttribute("download")||e.removeEventListener("click",i,!1)}),n.value=[]},i=e=>{const o=e.target,a=o.getAttribute("href");o.getAttribute("target")==="_blank"||new URL(document.baseURI).origin===new URL(a||"",document.baseURI).origin||a&&a[0]==="/"&&(e.preventDefault(),t.push(a))};return(e,o)=>(p(),v("div",{ref_key:"el",ref:s,class:"rich-text",innerHTML:u.html},null,8,L))}}),R=Object.assign(b,{__name:"LLRichText"});export{R as _};
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.