1import{l as L,f as V,m as W,n as b,c as _,o as m,F as J,r as Y,i as K,q as Q,s as X,g as Z,a as ee,t as te,S as ne,_ as oe,u as re,v as ie,C as p,x as se,y as ae,z as ce,R as le,A as I,j as S,B as ue,D as de,k as pe,E as fe,G as ge,H as A}from"./DWMJgymc.js";function me(t,e){return L(()=>{let n=t.value||[];return e.excludeHero&&(n=n.filter(i=>i.__typename!=="HeroSection")),e.excludeCta&&(n=n.filter(i=>i.__typename!=="CtaSection")),e.excludeTypes&&(n=n.filter(i=>!e.excludeTypes.includes(i.__typename))),e.includeTypes&&(n=n.filter(i=>e.includeTypes.includes(i.__typename))),n})}const he={class:"section-renderer"},ye=["id"],_e={key:1,class:"section-renderer__no-content"},we=V({__name:"SectionRenderer",props:{sections:{},excludeTypes:{},includeTypes:{},excludeHero:{type:Boolean},excludeCta:{type:Boolean}},setup(t){const e=t,n=me(W(e,"sections"),e),i=b();function d(){const a=i.path;return a==="/"||/^\/(de|en)?\/?$/.test(a)}const r=ne;function s(a){const c=r[a];return c||"div"}function f(a){const c={weight:a.weight,...a.data};return a.__typename==="HeroSection"&&d()?{...c,showBigLogo:!0}:c}function g(a){const c=n.value.findIndex(u=>u.__typename==="HeroSection");return c!==-1&&a===c+1}return(a,c)=>(m(),_("div",he,[t.sections&&t.sections.length>0?(m(!0),_(J,{key:0},Y(Z(n),(u,o)=>(m(),_("div",{key:u.id||`section-${u.weight}`,class:"section-renderer__item",id:g(o)?"main-content":void 0},[(m(),K(Q(s(u.__typename)),X({ref_for:!0},f(u)),null,16))],8,ye))),128)):(m(),_("div",_e,[ee("p",null,te(a.$t("pageBuilder.noContent")),1)]))]))}}),Ae=Object.assign(oe(we,[["__scopeId","data-v-ffc0a8c5"]]),{__name:"SectionRenderer"});function ve(){const t=b(),{locale:e}=re();return{slug:L(()=>ie(t,e.value)),locale:e}}const Ce=new Set([p.PAGE,p.POST,p.PRODUCT,p.REFERENCE]);function H(t){return t==null||t===""?"":t.trim().toLowerCase()}function Se(t,e){const n=H(e);return n!==""&&n!==p.HOME?n:H(t?.__typename)}function be(t,e){return!Ce.has(t)||!e?!1:e.sections.length===0}function Te(t){return typeof t=="object"&&t!==null&&"statusCode"in t&&typeof t.statusCode=="number"}async function He(t={}){const{type:e}=t,n=b(),{slug:i,locale:d}=ve();try{const r=t.locale??d.value??"";if(r==="")throw new Error("Locale is required");let s=t.slug;if((s==null||s==="")&&e!==p.HOME&&(s=i.value),(s==null||s==="")&&e!==p.HOME)throw new Error("Slug is required");const f=se(),g=ae(n),a=`content:${e??"auto"}:${r}:${s??"home"}`,{data:c,error:u}=await ce(a,async()=>le.resolveBySlug(s,r,f,g,e),{server:!0});if(u.value instanceof I)throw S({statusCode:404,statusMessage:"Page not found"});const o=c.value??null,h=Se(o,typeof e=="string"?e:void 0);if(be(h,o))throw S({statusCode:404,statusMessage:"Page not found"});return{data:o,error:u.value??null}}catch(r){if(r instanceof I)throw S({statusCode:404,statusMessage:"Page not found"});if(Te(r))throw r;return{data:null,error:r}}}function xe(t,e){return typeof t=="boolean"?t:typeof t=="string"?t.trim().toLowerCase()!=="false":e}const Re=["website","article","book","profile","music.song","music.album","music.playlist","music.radio_status","video.movie","video.episode","video.tv_show","video.other"];function M(t,e){if(t.trim().length===0)return null;if(/^https?:\/\//i.test(t))return t;if(e==null||e.trim().length===0)return null;try{return new URL(t,e).toString()}catch{return null}}function Ee(t,e,n){const i=t?.canonical?.trim()??"",r=i.length>0?M(i,n):null;if(r!=null&&r.length>0)return r;const s=M(e,n);return s!=null&&s.length>0?s:e}function O(t){if(t==null)return null;const e=t.mediaDetails,n=t.sourceUrl??e?.filePath??e?.file;if(n==null||n==="")return null;const i=e?.width,d=e?.height;return{url:n,alt:t.altText??void 0,width:i??void 0,height:d??void 0}}function B(t){if(t==null)return!0;const e=t.trim().toLowerCase();return e.length===0||e==="index"||e==="follow"?!0:!(e==="noindex"||e==="nofollow")}function De(t,e){return`${t?"index":"noindex"}, ${e?"follow":"nofollow"}`}function Ne(t){return t!=null&&t.length>0&&Re.includes(t)?t:"website"}function l(t){if(t==null||t.trim().length===0)return;const e=t.trim();if(!(e==="true"||e==="false"||e==="null"||e==="undefined"))return e}function Pe(t){const e=t?.schema?.raw;if(e==null||e.trim().length===0)return[];try{const n=JSON.parse(e);return(Array.isArray(n)?n:[n]).filter(r=>typeof r=="object"&&r!=null).map((r,s)=>({key:`schema-org-${s}`,type:"application/ld+json",children:JSON.stringify(r)}))}catch{return[]}}
1function Me(t){const e=ue(t),n=de("currentContent",()=>null);if(e==null){n.value=null;return}n.value=e;const i=pe(),r=fe(),s=typeof r=="object"&&r!=null?r:{},f=s.url??void 0,g=s.name??void 0,a=ge(),c=typeof a.public=="object"&&a.public!=null?a.public:{},u=xe(c.ignoreWpRobots,!0),o=e.seo,h=Ee(o,i.path,f),T=e.featuredImage??null,y=O(o?.opengraphImage??T),w=O(o?.twitterImage??o?.opengraphImage??T),x=s.indexable!==!1,$=x&&(u||B(o?.metaRobotsNoindex)),F=x&&(u||B(o?.metaRobotsNofollow)),v=l(o?.title)??l(o?.opengraphTitle)??e.title??void 0,R=l(o?.metaDesc),E=l(o?.opengraphDescription),D=R??E,j=E??R,z=l(o?.opengraphUrl)??h,N=l(o?.opengraphAuthor)??"",G=N.length>0?[N]:void 0,P=l(o?.opengraphPublisher)??"",C=P.length>0?[P]:void 0,q=l(o?.opengraphPublishedTime),U=l(o?.opengraphModifiedTime);A({title:v,meta:[{name:"description",content:D},{name:"keywords",content:l(o?.metaKeywords)},{name:"robots",content:De($,F)},{property:"og:type",content:Ne(o?.opengraphType)},{property:"og:title",content:v},{property:"og:description",content:j},{property:"og:url",content:z},{property:"og:site_name",content:l(o?.opengraphSiteName)??g},{property:"og:image",content:y?.url},{property:"og:image:alt",content:y?.alt},{property:"og:image:width",content:y?.width},{property:"og:image:height",content:y?.height},{property:"article:published_time",content:q},{property:"article:modified_time",content:U},{property:"article:author",content:G},{name:"twitter:card",content:w?"summary_large_image":"summary"},{name:"twitter:title",content:l(o?.twitterTitle)??v},{name:"twitter:description",content:l(o?.twitterDescription)??D},{name:"twitter:image",content:w?.url},{name:"twitter:image:alt",content:w?.alt}]});const k=Pe(o);A({link:[{key:"canonical",rel:"canonical",href:h}],meta:C&&C.length>0?[{key:"article:publisher",property:"article:publisher",content:C[0]}]:void 0,script:k.length>0?k:void 0})}export{Ae as _,He as a,Me as u};
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.