1import{j as V,c as e,n as m,l as A,x as F,a as l,o as a,b as d,g as G,t as _,d as r,e as u,r as I,h as z,q as N,C as P,k as j,m as U,y as L,z as C,F as D,f as R,B as T,D as q,N as K,A as M,K as O}from"./FcYNwMmb.js";import{_ as W}from"./CJ07q0zm.js";import{b as J}from"./DT8ygjXO.js";import{G as Q}from"./Uq5Q0dIN.js";import{_ as X}from"./CbotE0GP.js";import{u as Y}from"./0kj3WwMt.js";import{p as Z,E as tt}from"./BlWWbSov.js";import{u as et,a as at}from"./C-JhY_EZ.js";import"./CvOLBrAg.js";import"./CelBwquY.js";const st={key:0,class:"font-ptsans font-bold text-custompink text-xl sm:text-2xl"},ot={key:2,class:"mt-8 video-section"},lt={class:"relative pt-[56.25%]"},nt={key:3,class:"mt-8 gallery-section"},rt=V({__name:"BlogAbschnitt",props:{abschnitt:{type:[Object,Number],required:!0}},setup(S){const f=S,i=e(()=>typeof f.abschnitt=="object"?f.abschnitt:{}),v=e(()=>i.value?m(i.value,"title")??"":""),g=e(()=>i.value?m(i.value,"body")??"":""),n=e(()=>i.value?m(i.value,"youtube_video-id")??"":""),c=e(()=>{const s=A(i.value,"bildergalerie");return Array.isArray(s)?s:s?[s]:[]});return(s,y)=>{const k=F("SafeHtml");return a(),l("div",null,[v.value?(a(),l("div",st,_(v.value),1)):d("",!0),g.value?(a(),G(k,{key:1,content:g.value,class:"main-text font-firasans text-base text-customerblack mt-3"},null,8,["content"])):d("",!0),n.value?(a(),l("div",ot,[r("div",lt,[u(X,{youtubeVideoId:n.value},null,8,["youtubeVideoId"])])])):d("",!0),c.value&&c.value.length>0?(a(),l("div",nt,[u(Q,{images:c.value,autoplay:!1},null,8,["images"])])):d("",!0)])}}}),it={key:0,class:"flex flex-col w-full"},ct={class:"w-full"},ut={key:0,class:"absolute top-2 right-2 bg-black bg-opacity-50 text-white text-xs p-1"},dt={class:"flex-shrink-0",style:{"margin-top":"-100px",position:"relative"}},vt={class:"flex justify-center pl-4 pr-4"},mt={class:"bg-white pt-7 pb-7 pl-4 pr-4 md:p-12 max-w-full md:max-w-[80%] xl:max-w-[60%]"},pt={class:"font-amaticsc font-bold text-custompink text-xl sm:text-2xl"},ft={class:"font-ptsans font-bold text-customblue text-3xl lg:text-4xl"},gt={key:0,class:"pl-4 pr-4 md:pl-12 md:pr-12 xl:pl-36 xl:pr-24 bloger mt-12 md:mt-32"},ht={key:1},bt=V({__name:"[id]",setup(S){q();const f=j(),i=et(),v=I(null),g=z();e(()=>i.value);const n=I([]),c=e(()=>{var t;return((t=v.value)==null?void 0:t.data)||{}}),s=e(()=>m(c.value,"title")??"");at("/blogartikel",s);const y=e(()=>m(c.value,"subtitel")??""),k=e(()=>m(c.value,"body")??""),x=e(()=>A(c.value,"verlinkte_blogposts")??[]),B=e(()=>{const t=A(c.value,"abschnitt");return Array.isArray(t)?t:t?[t]:[]}),p=e(()=>{const t=m(c.value,"bannerbild");if(!t)return{path:"",description:"",copyright:"",aiGenerated:!1};const o=Z(t);return{path:N(o.path)||"",description:o.description||"",copyright:o.copyright||"",aiGenerated:o.aiGenerated}}),E=I(!1),H=e(()=>p.value.path?{backgroundImage:`url(${p.value.path})`,backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat",margin:"0 auto"}:{backgroundColor:"white"});P(async()=>{const t=i.value;if(!t){f.push("/404");return}v.value=await g.fetchAndReturnContent(t),v.value||f.push("/404")});async function $(){if(!E.value){n.value=[];const t=Array.isArray(x.value)?x.value.slice(0,2):[x.value];for(const o of t)try{const h=await g.fetchAndReturnContent(o);n.value.push(h)}catch(h){console.error("Error fetching content for ID:",o,h)}}E.value=!0}return U(x,async t=>{t.length&&n.value.length===0&&await $()}),Y({title:()=>s.value?`${s.value} | SH GUIDE`:"SH GUIDE",meta:[{name:"description",content:()=>y.value||s.value||"Blog-Beitrag auf SH GUIDE lesen."}]}),(t,o)=>{const h=F("SafeHtml");return v.value?(a(),l("div",it,[u(K),u(W,{title:s.value,"show-change-modal-option":!0,"show-share-btn-option":!0},null,8,["title"]),r("div",ct,[r("div",{class:C(["blog-artikel-header-image relative",{"max-h-[120px]":!p.value.path}]),style:L(H.value)},[p.value.copyright?(a(),l("div",ut," © "+_(p.value.copyright),1)):d("",!0),u(tt,{active:p.value.aiGenerated,size:"sm"},null,8,["active"])],6)]),r("div",dt,[r("div",null,[r("div",vt,[r("div",mt,[r("div",pt,_(y.value),1),r("div",ft,_(s.value),1),u(h,{content:k.value,class:"blog-text font-firasans text-customerblack text-base mt-4 md:mt-6"},null,8,["content"]),B.value?(a(!0),l(D,{key:0},R(B.value,(b,w)=>(a(),l("div",{class:"mt-8",key:w},[u(rt,{abschnitt:b},null,8,["abschnitt"])]))),128)):d("",!0)])])])]),n.value&&n.value.length>0?(a(),l("div",gt,[o[0]||(o[0]=r("div",{class:"text-customblue font-amaticsc font-bold flex justify-center text-3xl sm:text-5xl"}," WEITERE ARTIKEL ",-1)),r("div",{class:C(["grid gap-4 mt-6 grid-cols-1 xl:grid-cols-2",{"justify-items-center":n.value.length===1}])},[(a(!0),l(D,null,R(n.value,(b,w)=>(a(),l("div",{key:w,class:C({"col-span-2 max-w-full xl:max-w-[50%]":n.value.length===1})},[b&&b.data?(a(),G(J,{key:0,post:b.data},null,8,["post"])):d("",!0)],2))),128))],2)])):d("",!0),u(M)])):(a(),l("div",ht,o[1]||(o[1]=[T('<div class="loading-overlay" data-v-771fb468><div class="loading-spinner" data-v-771fb468><svg class="animate-spin h-10 w-10 text-gray-500" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" data-v-771fb468><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4" data-v-771fb468></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" data-v-771fb468></path></svg></div></div>',1)])))}}}),Et=O(bt,[["__scopeId","data-v-771fb468"]]);export{Et 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.