1import p from"./Cgb5jUS3.js";import{d,E as u,e as h,m as _,k as f,w as b,i as g,g as y,r as E}from"./DbIaeWh9.js";import"./CS45uPso.js";import"./Bigt4iYH.js";const k={class:"preeco-embed"},w=["innerHTML"],x=d({__name:"PreecoEmbed",props:{title:{},url:{}},async setup(c){let n,s;const l=c,r=E(""),a=i(l.url);try{if(a){const e=([n,s]=u(()=>$fetch(`/api/content/preeco/${a}`,{responseType:"text"})),n=await n,s(),n);r.value=m(e)}}catch(e){r.value=`<p>PreecoEmbed konnte nicht geladen werden (${e}).</p>`}function i(e){try{return new URL(e).pathname.split("/").filter(Boolean).at(-1)??""}catch{return((e.split("?")[0]??"").split("#")[0]??"").split("/").filter(Boolean).at(-1)??""}}function m(e){{const t=new DOMParser().parseFromString(e,"text/html");return t.querySelectorAll("h2").forEach(o=>o.classList.add("article-subheadline")),t.body?.innerHTML?.trim()??""}}return(e,t)=>(h(),_("div",k,[f(p,{"content-blocks":[]},{default:b(()=>[g("div",{class:"preeco-embed__content",innerHTML:y(r)},null,8,w)]),_:1})]))}}),C=Object.assign(x,{__name:"MoleculesGeneralPreecoEmbed"});export{C 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.