1import{d as N,j as e,r as v,L as x,a4 as w,a5 as g}from"./index-CUkvT9AI.js";import{C as $}from"./card-Yw-Qc9hQ.js";import{A as b}from"./arrow-right-DicXLdao.js";const L=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],z=N("arrow-left",L);function h(a,t){const l=[],r=/\[([^\]]+)\]\(([^)\s]+)\)/g;let s=0,n,p=0;const d=(o,i)=>{const c=[],u=/\*\*(.+?)\*\*/g;let m=0,f,y=0;for(;(f=u.exec(o))!==null;)f.index>m&&c.push(o.slice(m,f.index)),c.push(e.jsx("strong",{children:f[1]},`${i}-b-${y++}`)),m=u.lastIndex;return m<o.length&&c.push(o.slice(m)),c};for(;(n=r.exec(a))!==null;){n.index>s&&l.push(...d(a.slice(s,n.index),`${t}-t-${p}`));const[,o,i]=n;i.startsWith("/")?l.push(e.jsx(x,{to:i,className:"text-primary underline-offset-4 hover:underline",children:o},`${t}-l-${p++}`)):l.push(e.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:o},`${t}-l-${p++}`)),s=r.lastIndex}return s<a.length&&l.push(...d(a.slice(s),`${t}-t-end`)),l}function j({source:a}){const t=a.replace(/\r\n/g,` 2`).split(` 3`),l=[];let r=0,s=0;for(;r<t.length;){const n=t[r];if(!n.trim()){r++;continue}if(n.startsWith("## ")){l.push(e.jsx("h2",{className:"mt-10 font-display text-2xl md:text-3xl",children:h(n.slice(3).trim(),`h${s}`)},s++)),r++;continue}if(n.includes("|")&&t[r+1]?.includes("---")){const d=n.split("|").map(i=>i.trim()).filter(Boolean);r+=2;const o=[];for(;r<t.length&&t[r].includes("|");)o.push(t[r].split("|").map(i=>i.trim()).filter(Boolean)),r++;l.push(e.jsx("div",{className:"mt-6 overflow-x-auto",children:e.jsxs("table",{className:"w-full border-collapse text-sm",children:[e.jsx("thead",{children:e.jsx("tr",{className:"border-b border-border/60",children:d.map((i,c)=>e.jsx("th",{className:"p-2 text-left font-semibold",children:h(i,`th-${s}-${c}`)},c))})}),e.jsx("tbody",{children:o.map((i,c)=>e.jsx("tr",{className:"border-b border-border/40",children:i.map((u,m)=>e.jsx("td",{className:"p-2",children:h(u,`td-${s}-${c}-${m}`)},m))},c))})]})},s++));continue}if(/^[-*]\s+/.test(n)){const d=[];for(;r<t.length&&/^[-*]\s+/.test(t[r]);)d.push(t[r].replace(/^[-*]\s+/,"")),r++;l.push(e.jsx("ul",{className:"mt-4 list-disc space-y-1 pl-6 text-foreground/90",children:d.map((o,i)=>e.jsx("li",{children:h(o,`li-${s}-${i}`)},i))},s++));continue}if(/^\d+\.\s+/.test(n)){const d=[];for(;r<t.length&&/^\d+\.\s+/.test(t[r]);)d.push(t[r].replace(/^\d+\.\s+/,"")),r++;l.push(e.jsx("ol",{className:"mt-4 list-decimal space-y-1 pl-6 text-foreground/90",children:d.map((o,i)=>e.jsx("li",{children:h(o,`oli-${s}-${i}`)},i))},s++));continue}const p=[n];for(r++;r<t.length&&t[r].trim()&&!t[r].startsWith("## ")&&!/^[-*]\s+/.test(t[r])&&!/^\d+\.\s+/.test(t[r])&&!t[r].includes("|");)p.push(t[r]),r++;l.push(e.jsx("p",{className:"mt-4 leading-relaxed text-foreground/90",children:h(p.join(" "),`p-${s}`)},s++))}return e.jsx(v.Fragment,{children:l})}function D(a){const t=a.replace(/\r\n/g,` 4`);t.indexOf(` 5## `,t.indexOf("## "));const l=t.indexOf("## ");if(l===-1)return{head:t,tail:""};const r=t.indexOf(` 6 7`,l);return r===-1?{head:t,tail:""}:{head:t.slice(0,r),tail:t.slice(r)}}function B(){const{post:a,related:t}=w.useLoaderData(),l=t[0],{head:r,tail:s}=l?D(a.body):{head:a.body,tail:""};return e.jsxs("article",{className:"mx-auto max-w-3xl px-4 py-16 md:py-24",children:[e.jsxs(x,{to:"/blog",className:"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-primary",children:[e.jsx(z,{className:"h-4 w-4"})," Zurück zum Blog"]}),e.jsx("h1",{className:"mt-6 font-display text-4xl md:text-5xl",children:a.title}),e.jsx("p",{className:"mt-4 text-lg text-muted-foreground",children:a.excerpt}),e.jsxs("div",{className:"mt-6 flex items-center gap-3",children:[e.jsx("img",{src:g.image,alt:g.name,className:"h-10 w-10 rounded-full border border-border/60 object-cover",loading:"lazy"}),e.jsxs("div",{className:"text-sm",children:[e.jsxs("div",{className:"font-medium text-foreground",children:["Von ",g.name]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:new Date(a.published_at).toLocaleDateString("de-DE",{year:"numeric",month:"long",day:"numeric"})})]})]}
7),e.jsxs("div",{className:"mt-8 max-w-none text-foreground/90",children:[e.jsx(j,{source:r}),l&&s&&e.jsxs("aside",{className:"my-8 rounded-lg border border-primary/30 bg-primary/5 px-5 py-4 text-sm italic text-foreground/80",children:[e.jsx("span",{className:"font-semibold not-italic text-primary",children:"Lesetipp:"})," ",e.jsx(x,{to:"/blog/$slug",params:{slug:l.slug},className:"text-primary underline-offset-4 hover:underline",children:l.title})]}),e.jsxs("div",{className:"my-10 rounded-xl border border-primary/40 bg-gradient-to-br from-primary/10 via-primary/5 to-transparent p-6 md:p-8",children:[e.jsx("h3",{className:"font-display text-xl md:text-2xl text-foreground",children:"Jetzt IPTV Premium testen"}),e.jsx("p",{className:"mt-2 text-sm md:text-base text-muted-foreground",children:"20.000+ Live-Sender, 145.000 Filme, 44.000 Serien in 4K UHD â ab 15 â¬/Monat."}),e.jsxs(x,{to:"/preise",className:"mt-4 inline-flex items-center gap-2 rounded-lg bg-primary px-5 py-2.5 text-sm font-semibold text-primary-foreground transition hover:opacity-90",children:["Preise ansehen ",e.jsx(b,{className:"h-4 w-4"})]})]}),s&&e.jsx(j,{source:s})]}),e.jsxs("section",{className:"mt-12 overflow-hidden rounded-2xl border border-primary/40 bg-gradient-to-r from-primary/20 via-primary/10 to-primary/20 p-8 md:p-10 text-center",children:[e.jsx("h2",{className:"font-display text-2xl md:text-3xl text-foreground",children:"Bereit für grenzenloses TV-Erlebnis?"}),e.jsx("p",{className:"mt-3 text-sm md:text-base text-muted-foreground max-w-xl mx-auto",children:"Starte heute mit IPTV Premium â über 20.000 Sender, alle Sport-Events live in 4K, kein Vertrag, jederzeit kündbar."}),e.jsxs("div",{className:"mt-6 flex flex-wrap justify-center gap-3",children:[e.jsxs(x,{to:"/preise",className:"inline-flex items-center gap-2 rounded-lg bg-primary px-6 py-3 text-sm font-semibold text-primary-foreground transition hover:opacity-90",children:["Jetzt Abo starten ",e.jsx(b,{className:"h-4 w-4"})]}),e.jsx(x,{to:"/",className:"inline-flex items-center gap-2 rounded-lg border border-border/60 bg-card/60 px-6 py-3 text-sm font-semibold text-foreground transition hover:border-primary/60",children:"Mehr erfahren"})]})]}),t.length>0&&e.jsxs("section",{className:"mt-16 border-t border-border/60 pt-12",children:[e.jsx("h2",{className:"font-display text-2xl md:text-3xl",children:"Weiterlesen"}),e.jsx("div",{className:"mt-6 grid gap-5 md:grid-cols-3",children:t.map(n=>e.jsx(x,{to:"/blog/$slug",params:{slug:n.slug},children:e.jsxs($,{className:"group h-full border-border/60 bg-card/60 p-5 transition hover:border-primary/50",children:[e.jsx("div",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:new Date(n.published_at).toLocaleDateString("de-DE")}),e.jsx("h3",{className:"mt-2 font-display text-lg group-hover:text-primary",children:n.title}),e.jsx("p",{className:"mt-2 line-clamp-3 text-sm text-muted-foreground",children:n.excerpt}),e.jsxs("div",{className:"mt-3 inline-flex items-center gap-1 text-xs text-primary",children:["Weiterlesen ",e.jsx(b,{className:"h-3 w-3 transition group-hover:translate-x-1"})]})]})},n.slug))})]})]})}export{B as component};
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.