1import{o as p,c as h,a0 as N,l as g,m,O as C,a9 as o,q as l}from"./index-MSa8avpS.js";import x from"./AppConsentPlaceholder-DQ47hnsl.js";const T={__name:"AppContent",props:{tag:{type:String,default:"div"},content:String},setup(n){const{hasMarketingConsent:u}=C(),d=m(()=>/<iframe\b[^>]*>(.*?)<\/iframe>|<iframe\b[^>]*>/i.test(n.content)),f=m(()=>{if(!d.value||u.value)return o(n.tag,{innerHTML:n.content});const t=new DOMParser().parseFromString(n.content,"text/html"),e=c(t.body.childNodes);return e.length===1?e[0]:o(n.tag,{},e)}),c=a=>Array.from(a).map(t=>{if(t.nodeType===Node.TEXT_NODE)return t.textContent;if(t.nodeType===Node.ELEMENT_NODE){const e={},i=t.nodeName.toLowerCase();for(const r of t.attributes)e[r.name]=r.value;if(i==="iframe"){const r=l.mapValues(l.pick(e,["width"]),s=>/(px|%)/.test(s)?`min(${s}, 100%)`:`min(${s}px, 100%)`);return o(x,r)}return o(i,e,c(t.childNodes))}return null}).filter(Boolean);return(a,t)=>n.content?(p(),h(N(f.value),{key:0,class:"editor editor__content"})):g("",!0)}};export{T 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.