import{k as p,x as P,l as C,H as B,L as j,ae as n,a7 as s,u as R,M as G,ab as f,v as h,V as v,o as U,h as A,a4 as T,F as q,af as M,Z as F,n as x,aa as S,y as Q,E as J,a9 as D,a2 as ve,P as he,i as ye,a3 as pe,r as be,U as te}from"./vue-core-BWkI2jmS.js";import{b as I,a as ne}from"./admin-Ct38yXux.js";import{b as ke}from"./useSEO-CVT49T3s.js";import{u as $e}from"./formModal-DTVxpRwn.js";import{u as xe,F as Se,a as Te,b as we}from"./FormSuccessScreen-uBnFk0ky.js";import Le from"./ElementForm-ZhvFaI_E.js";function ae(e){const t=p(()=>P(e).style||{}),d=p(()=>{const i=t.value,a={};return i.backgroundColor&&(a.backgroundColor=i.backgroundColor),typeof i.paddingTop=="number"&&(a.paddingTop=`${i.paddingTop}px`),typeof i.paddingBottom=="number"&&(a.paddingBottom=`${i.paddingBottom}px`),typeof i.marginTop=="number"&&(a.marginTop=`${i.marginTop}px`),typeof i.marginBottom=="number"&&(a.marginBottom=`${i.marginBottom}px`),i.textAlign&&(a.textAlign=i.textAlign),i.textColor&&(a.color=i.textColor),a}),u=p(()=>{const i=P(e).customClasses;return typeof i=="string"?i.trim():""}),_=p(()=>!!t.value.backgroundImage),m=p(()=>{const i=t.value,a={};return i.backgroundImage&&(a.backgroundImage=`url("${i.backgroundImage}")`,a.backgroundSize=i.backgroundSize||"cover",a.backgroundPosition="50% 50%",a.backgroundRepeat="no-repeat",typeof i.backgroundImageOpacity=="number"&&i.backgroundImageOpacity>=0&&i.backgroundImageOpacity<=1&&(a.opacity=String(i.backgroundImageOpacity))),a}),r=p(()=>{const i=P(e);if(typeof i.name=="string"&&i.name.length>0)return i.name;const a=i.sectionId;return typeof a=="string"&&a.length>0?a:typeof i.order=="number"?`section-order-${i.order}`:""}),o=p(()=>{const i=P(e).cssOverrides,a=r.value;return!i||!a?"":`[data-section-name="${a}"] { ${i} }`}),l=p(()=>{const i=P(e).customId;return typeof i=="string"?i.trim():""});return{rootStyle:d,rootClasses:u,hasBackgroundImage:_,backgroundLayerStyle:m,scopedCssOverrides:o,sectionDataName:r,sectionHtmlId:l}}const Ee=["innerHTML"],Ce={key:2,class:"element-hero__structured"},Ae={class:"element-hero__content"},Ie={key:0,class:"element-hero__title"},qe={key:1,class:"element-hero__subtitle"},He=["href"],Me=C({__name:"ElementHero",props:{section:{},pageTemplate:{}},setup(e){const t=e,d=A(null),{hasBackgroundImage:u,backgroundLayerStyle:_}=ae(()=>t.section);B(async function(){if(await j(),!!d.value){d.value.querySelectorAll("[contenteditable]").forEach(function(k){k.removeAttribute("contenteditable")});var l=d.value.querySelector(".element-hero__body"),i=l?l.querySelectorAll(":scope > .grid-row"):[];if(i.length>=2){var a=i[1],c=a.querySelector(".grid-col:first-child");if(c){var g=c.querySelector(":scope > div"),b=g?g.querySelector(":scope > div"):null;if(b&&b.querySelector("h1")){var L=i[0].querySelector(".grid-col:first-child");if(L){var $=L.querySelector(":scope > div");$&&$.remove(),L.appendChild(b)}}}}var y=d.value.querySelector(".grid-col:first-child");if(y){var w=y.querySelectorAll("figure");if(w.length>3){var V=w[0].parentElement;if(V){var N=document.createElement("div");N.className="basec-marquee-track";var H=w.length;Array.from(w).forEach(function(k){N.appendChild(k)}),Array.from(N.children).forEach(function(k,O){O<H&&N.appendChild(k.cloneNode(!0))}),V.replaceChildren(N)}}}}});const m=p(()=>{var l,i;return!t.section.content&&(((l=t.section.settings)==null?void 0:l.subtitle)||((i=t.section.settings)==null?void 0:i.ctaText)||t.section.title)}),r=p(()=>{var l;return Number((l=t.section.settings)==null?void 0:l.heroVariant)||1}),o=p(()=>{var l;return String(((l=t.section.settings)==null?void 0:l.heroStyle)||"tuerkis")});return(l,i)=>{var a,c,g;return n(),s("section",{ref_key:"sectionRef",ref:d,class:U(["element-hero",[e.pageTemplate?"element-hero--tmpl-"+e.pageTemplate:"","element-hero--variant-"+r.value,"element-hero--style-"+o.value]])},[R(u)?(n(),s("div",{key:0,class:"element-hero__bg-layer",style:G(R(_)),"aria-hidden":"true"},null,4)):f("",!0),e.section.content?(n(),s("div",{key:1,class:"element-hero__body",innerHTML:e.section.content},null,8,Ee)):m.value?(n(),s("div",Ce,[h("div",Ae,[e.section.title?(n(),s("h1",Ie,v(e.section.title),1)):f("",!0),(a=e.section.settings)!=null&&a.subtitle?(n(),s("h2",qe,v(e.section.settings.subtitle),1)):f("",!0),(c=e.section.settings)!=null&&c.ctaLink&&((g=e.section.settings)!=null&&g.ctaText)?(n(),s("a",{key:2,href:String(e.section.settings.ctaLink),class:"element-hero__cta"},v(e.section.settings.ctaText),9,He)):f("",!0)])])):f("",!0)],2)}}}),Ve=I(Me,[["__scopeId","data-v-9f8349d5"]]),Ue={class:"element-text__container"},Ne={class:"element-text__left"},Re={key:0,class:"element-text__label"},Fe=["innerHTML"],Oe=["innerHTML"],Be={key:3,class:"element-text__stats-horizontal"},ze={class:"element-text__stat-value"},De={key:0,class:"element-text__stat-suffix"},Pe={class:"element-text__stat-label"},je={key:0,class:"element-text__stats-source-inline"},Ge={key:4,class:"element-text__cta"},Je={key:0,class:"element-text__right"},Qe={class:"element-text__stats"},We={class:"element-text__stat-value"},Ye={key:0,class:"element-text__stat-suffix"},Ze={class:"element-text__stat-label"},Ke={key:0,class:"element-text__stats-source"},Xe={key:1,class:"element-text__right"},et={class:"element-text__cards"},tt=["href"],nt={class:"element-text__card-title"},st=C({__name:"ElementText",props:{section:{}},setup(e){const t=e,d=p(function(){var b;if(!t.section.title)return"";const g=(b=t.section.settings)==null?void 0:b.titleHighlight;return g?g==="all"?'<span class="gold">'+t.section.title+"</span>":t.section.title.replace(g,'<span class="gold">'+g+"</span>"):t.section.title}),u=p(function(){var g;return((g=t.section.settings)==null?void 0:g.counters)||[]}),_=p(function(){var g;return((g=t.section.settings)==null?void 0:g.statsLabel)||""}),m=p(function(){return u.value.length>0}),r=p(function(){var g;return((g=t.section.settings)==null?void 0:g.cards)||[]}),o=p(function(){return r.value.length>0}),l=p(function(){var g;return((g=t.section.settings)==null?void 0:g.ctaText)||""}),i=p(function(){var g;return((g=t.section.settings)==null?void 0:g.ctaLink)||""}),a=p(function(){return m.value||o.value}),c=p(function(){var g;return((g=t.section.settings)==null?void 0:g.textAlign)==="center"});return(g,b)=>{var $;const L=T("router-link");return n(),s("section",{class:U(["element-text",{"element-text--two-col":a.value,"element-text--with-cards":o.value,"element-text--centered":c.value}])},[h("div",Ue,[h("div",Ne,[($=e.section.settings)!=null&&$.label?(n(),s("span",Re,v(e.section.settings.label),1)):f("",!0),e.section.title?(n(),s("h2",{key:1,class:"element-text__title",innerHTML:d.value},null,8,Fe)):f("",!0),e.section.content?(n(),s("div",{key:2,class:"element-text__body",innerHTML:e.section.content},null,8,Oe)):f("",!0),o.value&&m.value?(n(),s("div",Be,[(n(!0),s(q,null,M(u.value,(y,w)=>(n(),s("div",{key:w,class:"element-text__stat"},[h("div",ze,[F(v(y.value),1),y.suffix?(n(),s("span",De,v(y.suffix),1)):f("",!0)]),h("p",Pe,v(y.label),1)]))),128)),_.value?(n(),s("p",je,v(_.value),1)):f("",!0)])):f("",!0),l.value&&i.value?(n(),s("div",Ge,[x(L,{to:i.value,class:"element-text__cta-btn"},{default:S(()=>[F(v(l.value),1)]),_:1},8,["to"])])):f("",!0)]),m.value&&!o.value?(n(),s("div",Je,[h("div",Qe,[(n(!0),s(q,null,M(u.value,(y,w)=>(n(),s("div",{key:w,class:"element-text__stat"},[h("div",We,[F(v(y.value),1),y.suffix?(n(),s("span",Ye,v(y.suffix),1)):f("",!0)]),h("p",Ze,v(y.label),1)]))),128))]),_.value?(n(),s("p",Ke,v(_.value),1)):f("",!0)])):f("",!0),o.value?(n(),s("div",Xe,[h("div",et,[(n(!0),s(q,null,M(r.value,(y,w)=>(n(),s("a",{key:w,class:"element-text__card",href:y.link||void 0,style:G(y.image?{backgroundImage:"url("+y.image+")"}:{})},[h("span",nt,v(y.title),1)],12,tt))),128))])])):f("",!0)])],2)}}}),ot=I(st,[["__scopeId","data-v-7fa15f50"]]),it={class:"element-stats"},ct=["innerHTML"],lt={key:1,class:"element-stats__structured"},at={key:0,class:"element-stats__title"},rt={class:"element-stats__grid"},ut={class:"element-stats__value-row"},dt={class:"element-stats__number"},mt={key:0,class:"element-stats__suffix"},_t={key:0,class:"element-stats__label"},gt=C({__name:"ElementStats",props:{section:{}},setup(e){return(t,d)=>{var _,m;const u=T("v-container");return n(),s("section",it,[e.section.content?(n(),s("div",{key:0,class:"element-stats__body",innerHTML:e.section.content},null,8,ct)):(m=(_=e.section.settings)==null?void 0:_.counters)!=null&&m.length?(n(),s("div",lt,[x(u,null,{default:S(()=>{var r;return[e.section.title?(n(),s("h2",at,v(e.section.title),1)):f("",!0),h("div",rt,[(n(!0),s(q,null,M((r=e.section.settings)==null?void 0:r.counters,(o,l)=>(n(),s("div",{key:"stat-"+l,class:"element-stats__item"},[h("div",ut,[h("span",dt,v(o.value),1),o.suffix?(n(),s("span",mt,v(o.suffix),1)):f("",!0)]),o.label?(n(),s("span",_t,v(o.label),1)):f("",!0)]))),128))])]}),_:1})])):f("",!0)])}}}),ft=I(gt,[["__scopeId","data-v-520b3424"]]),vt={class:"element-service-cards"},ht=["innerHTML"],yt={key:1,class:"element-service-cards__structured"},pt={key:0,class:"element-service-cards__title"},bt={class:"element-service-cards__grid"},kt=["href"],$t={key:0,class:"element-service-cards__card-title"},xt=C({__name:"ElementServiceCards",props:{section:{}},setup(e){return(t,d)=>{var _,m;const u=T("v-container");return n(),s("section",vt,[e.section.content?(n(),s("div",{key:0,class:"element-service-cards__body",innerHTML:e.section.content},null,8,ht)):(m=(_=e.section.settings)==null?void 0:_.cards)!=null&&m.length?(n(),s("div",yt,[x(u,null,{default:S(()=>{var r;return[e.section.title?(n(),s("h2",pt,v(e.section.title),1)):f("",!0),h("div",bt,[(n(!0),s(q,null,M((r=e.section.settings)==null?void 0:r.cards,(o,l)=>(n(),s("a",{key:"card-"+l,class:"element-service-cards__card",style:G(o.image?{backgroundImage:"url("+o.image+")"}:{}),href:o.link?String(o.link):void 0},[o.title?(n(),s("span",$t,v(o.title),1)):f("",!0)],12,kt))),128))])]}),_:1})])):f("",!0)])}}}),St=I(xt,[["__scopeId","data-v-d2aab6a4"]]),Tt={class:"element-glassy-grid"},wt=["innerHTML"],Lt={key:1,class:"element-glassy-grid__structured"},Et={class:"element-glassy-grid__heading"},Ct={key:0,class:"element-glassy-grid__title"},At={key:1,class:"element-glassy-grid__description"},It={class:"element-glassy-grid__grid"},qt={key:0,class:"element-glassy-grid__box-header"},Ht={class:"element-glassy-grid__box-title"},Mt={key:0,class:"element-glassy-grid__box-desc"},Vt={key:1,class:"element-glassy-grid__list"},Ut=C({__name:"ElementGlassyGrid",props:{section:{}},setup(e){return(t,d)=>{var _,m,r;const u=T("v-container");return n(),s("section",Tt,[e.section.content?(n(),s("div",{key:0,class:"element-glassy-grid__body",innerHTML:e.section.content},null,8,wt)):(m=(_=e.section.settings)==null?void 0:_.boxes)!=null&&m.length||(r=e.section.settings)!=null&&r.description?(n(),s("div",Lt,[x(u,null,{default:S(()=>{var o,l;return[h("div",Et,[e.section.title?(n(),s("h2",Ct,v(e.section.title),1)):f("",!0),(o=e.section.settings)!=null&&o.description?(n(),s("p",At,v(e.section.settings.description),1)):f("",!0)]),h("div",It,[(n(!0),s(q,null,M((l=e.section.settings)==null?void 0:l.boxes,(i,a)=>{var c;return n(),s("div",{key:"box-"+a,class:"element-glassy-grid__box"},[i.title?(n(),s("div",qt,[h("h5",Ht,v(i.title),1),i.description?(n(),s("p",Mt,v(i.description),1)):f("",!0)])):f("",!0),(c=i.children)!=null&&c.length?(n(),s("ul",Vt,[(n(!0),s(q,null,M(i.children,(g,b)=>(n(),s("li",{key:"child-"+b},v(g.title||g.label),1))),128))])):f("",!0)])}),128))])]}),_:1})])):f("",!0)])}}}),se=I(Ut,[["__scopeId","data-v-b4fdcafb"]]),Nt={class:"element-pricing"},Rt=["innerHTML"],Ft={key:1,class:"element-pricing__structured"},Ot={key:0,class:"element-pricing__title"},Bt={class:"element-pricing__cards"},zt={key:0,class:"element-pricing__ribbon"},Dt={class:"element-pricing__card-inner"},Pt={class:"element-pricing__card-header"},jt={class:"element-pricing__card-name"},Gt={key:0,class:"element-pricing__card-subtitle"},Jt={class:"element-pricing__card-price"},Qt={class:"element-pricing__price-value"},Wt={key:0,class:"element-pricing__features"},Yt=["href","data-open-form-slug"],Zt=C({__name:"ElementPricing",props:{section:{}},setup(e){return(t,d)=>{var _,m;const u=T("v-container");return n(),s("section",Nt,[e.section.content?(n(),s("div",{key:0,class:"element-pricing__body",innerHTML:e.section.content},null,8,Rt)):(m=(_=e.section.settings)==null?void 0:_.packages)!=null&&m.length?(n(),s("div",Ft,[x(u,null,{default:S(()=>{var r;return[e.section.title?(n(),s("h2",Ot,v(e.section.title),1)):f("",!0),h("div",Bt,[(n(!0),s(q,null,M((r=e.section.settings)==null?void 0:r.packages,(o,l)=>{var i;return n(),s("div",{key:"pricing-"+l,class:U(["element-pricing__card",{"element-pricing__card--highlighted":o.highlighted}])},[o.highlighted?(n(),s("div",zt)):f("",!0),h("div",Dt,[h("div",Pt,[h("h2",jt,v(o.name),1),o.description?(n(),s("span",Gt,v(o.description),1)):f("",!0)]),h("div",Jt,[h("span",Qt,v(o.price),1),d[0]||(d[0]=h("span",{class:"element-pricing__price-currency"},"Euro",-1)),d[1]||(d[1]=h("span",{class:"element-pricing__price-period"},"Einmalig",-1))]),(i=o.features)!=null&&i.length?(n(),s("ul",Wt,[(n(!0),s(q,null,M(o.features,(a,c)=>(n(),s("li",{key:"feat-"+c},[d[2]||(d[2]=h("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none"},[h("path",{d:"M8.5 16.5L3.5 11.5L5 10L8.5 13.5L16 6L17.5 7.5L8.5 16.5Z",fill:"currentColor"})],-1)),h("span",null,v(a.text),1)]))),128))])):f("",!0),o.ctaLink&&o.cta?(n(),s("a",{key:1,href:String(o.ctaLink),"data-open-form-slug":o.openFormSlug?String(o.openFormSlug):void 0,class:"element-pricing__cta"},v(o.cta),9,Yt)):f("",!0)])],2)}),128))])]}),_:1})])):f("",!0)])}}}),Kt=I(Zt,[["__scopeId","data-v-c1bf32b5"]]);function re(e){const t=[];if(!e.value)return{cleanup:function(){}};const d=e.value,u=d.querySelectorAll('[id^="elementor-tab-title-"]'),_=d.querySelectorAll('[id^="elementor-tab-content-"]');return u.length>0&&(_.forEach(function(r){r.style.display="none"}),u.forEach(function(r){r.style.cursor="pointer";const o=function(){const l=r.getAttribute("id");if(!l)return;const i=l.replace("tab-title-","tab-content-"),a=d.querySelector("#"+i);if(!a)return;const c=a.style.display!=="none";a.style.display=c?"none":"block",r.classList.toggle("accordion-active",!c)};r.addEventListener("click",o),t.push({element:r,handler:o})})),{cleanup:function(){t.forEach(function(r){r.element.removeEventListener("click",r.handler)}),t.length=0}}}function Xt(e){return ke(e||[])}function oe(e){if(typeof document>"u")return;const t=Xt(e),u=document.querySelector('script[type="application/ld+json"][data-seo-key="faq"]');if(!t){u&&u.remove();return}const _=JSON.stringify(t);if(u){u.textContent=_;return}const m=document.createElement("script");m.type="application/ld+json",m.setAttribute("data-seo-key","faq"),m.textContent=_,document.head.appendChild(m)}function ie(){if(typeof document>"u")return;const e=document.querySelector('script[type="application/ld+json"][data-seo-key="faq"]');e&&e.remove()}const en=["innerHTML"],tn={key:1,class:"element-faq__structured"},nn={key:0,class:"element-faq__title"},sn={class:"element-faq__list"},on=["onClick"],cn=["innerHTML"],ln=C({__name:"ElementFAQ",props:{section:{}},setup(e){const t=e,d=A(null),u=A(null);function _(o){u.value=u.value===o?null:o}const m=p(()=>{const o=Array.isArray(t.section.items)?t.section.items:null,l=t.section.settings??{},i=Array.isArray(l.items)?l.items:null;return(o&&o.length>0?o:i||[]).map(c=>({question:(c.title||"").trim(),answer:(c.content||"").replace(/<[^>]+>/g,"").trim()})).filter(c=>c.question.length>0&&c.answer.length>0)});let r=null;return B(async function(){if(await j(),m.value.length>0&&oe(m.value),!d.value||!t.section.content)return;r=re(d).cleanup}),Q(m,o=>{o.length>0?oe(o):ie()}),J(function(){r&&r(),ie()}),(o,l)=>{var i,a,c;return n(),s("section",{ref_key:"sectionRef",ref:d,class:"element-faq"},[e.section.content?(n(),s("div",{key:0,class:"element-faq__body",innerHTML:e.section.content},null,8,en)):(i=e.section.items)!=null&&i.length||(a=e.section.settings)!=null&&a.items?(n(),s("div",tn,[e.section.title?(n(),s("h2",nn,v(e.section.title),1)):f("",!0),h("div",sn,[(n(!0),s(q,null,M(e.section.items||((c=e.section.settings)==null?void 0:c.items),(g,b)=>(n(),s("div",{key:"faq-"+b,class:U(["element-faq__item",{"element-faq__item--open":u.value===b}])},[h("button",{class:"element-faq__question",onClick:L=>_(b)},v(g.title),9,on),u.value===b&&g.content?(n(),s("div",{key:0,class:"element-faq__answer",innerHTML:g.content},null,8,cn)):f("",!0)],2))),128))])])):f("",!0)],512)}}}),an=I(ln,[["__scopeId","data-v-9dbd3118"]]),rn={class:"element-testimonial"},un=["innerHTML"],dn={key:1,class:"element-testimonial__structured"},mn={class:"element-testimonial__block"},_n=["src","alt"],gn=["innerHTML"],fn={key:2,class:"element-testimonial__author"},vn={key:0,class:"element-testimonial__company"},hn=C({__name:"ElementTestimonial",props:{section:{}},setup(e){return(t,d)=>{var _,m;const u=T("v-container");return n(),s("section",rn,[e.section.content?(n(),s("div",{key:0,class:"element-testimonial__body",innerHTML:e.section.content},null,8,un)):(m=(_=e.section.settings)==null?void 0:_.testimonials)!=null&&m.length?(n(),s("div",dn,[x(u,null,{default:S(()=>{var r,o,l,i,a,c,g,b,L,$,y,w,V;return[h("div",mn,[(o=((r=e.section.settings)==null?void 0:r.testimonials)[0])!=null&&o.image?(n(),s("img",{key:0,src:String(((l=e.section.settings)==null?void 0:l.testimonials)[0].image),alt:String(((i=e.section.settings)==null?void 0:i.testimonials)[0].name||""),class:"element-testimonial__avatar",width:"64",height:"64",loading:"lazy",decoding:"async"},null,8,_n)):f("",!0),(c=((a=e.section.settings)==null?void 0:a.testimonials)[0])!=null&&c.quote?(n(),s("blockquote",{key:1,class:"element-testimonial__quote",innerHTML:((g=e.section.settings)==null?void 0:g.testimonials)[0].quote},null,8,gn)):f("",!0),(L=((b=e.section.settings)==null?void 0:b.testimonials)[0])!=null&&L.name?(n(),s("cite",fn,[F(v((($=e.section.settings)==null?void 0:$.testimonials)[0].name)+" ",1),(w=((y=e.section.settings)==null?void 0:y.testimonials)[0])!=null&&w.company?(n(),s("span",vn," , "+v(((V=e.section.settings)==null?void 0:V.testimonials)[0].company),1)):f("",!0)])):f("",!0)])]}),_:1})])):f("",!0)])}}}),yn=I(hn,[["__scopeId","data-v-e1c51f06"]]);function ue(e){const t=[];if(!e.value)return{cleanup:function(){}};const d=e.value.querySelectorAll("button[data-tab-index]"),u=e.value.querySelectorAll("[data-tab-panel]");if(d.length>0&&u.length>0){const m=function(r){d.forEach(function(o){const l=o.getAttribute("data-tab-index")===r;o.classList.toggle("tab-active",l),o.setAttribute("tabindex",l?"0":"-1")}),u.forEach(function(o){const l=o.getAttribute("data-tab-panel")===r;o.classList.toggle("tab-panel-hidden",!l)})};d.forEach(function(r){const o=function(){const l=r.getAttribute("data-tab-index");l&&m(l)};r.addEventListener("click",o),t.push({element:r,handler:o})})}return{cleanup:function(){t.forEach(function(m){m.element.removeEventListener("click",m.handler)}),t.length=0}}}const pn=["innerHTML"],bn={key:1,class:"element-tabs__structured"},kn={key:0,class:"element-tabs__title"},$n={class:"element-tabs__heading"},xn=["onClick"],Sn={class:"element-tabs__panels"},Tn=["innerHTML"],wn=C({__name:"ElementTabs",props:{section:{}},setup(e){const t=e,d=A(null),u=A(0);function _(r){u.value=r}let m=null;return B(async function(){if(await j(),!d.value||!t.section.content)return;m=ue(d).cleanup}),J(function(){m&&m()}),(r,o)=>{var l;return n(),s("section",{ref_key:"sectionRef",ref:d,class:"element-tabs"},[e.section.content?(n(),s("div",{key:0,class:"element-tabs__body",innerHTML:e.section.content},null,8,pn)):(l=e.section.items)!=null&&l.length?(n(),s("div",bn,[e.section.title?(n(),s("h2",kn,v(e.section.title),1)):f("",!0),h("div",$n,[(n(!0),s(q,null,M(e.section.items,(i,a)=>(n(),s("button",{key:"tab-btn-"+a,class:U(["element-tabs__button",{"element-tabs__button--active":u.value===a}]),onClick:c=>_(a)},v(i.title),11,xn))),128))]),h("div",Sn,[(n(!0),s(q,null,M(e.section.items,(i,a)=>(n(),s("div",{key:"tab-panel-"+a,class:U(["element-tabs__panel",{"element-tabs__panel--hidden":u.value!==a}])},[i.content?(n(),s("div",{key:0,innerHTML:i.content},null,8,Tn)):f("",!0)],2))),128))])])):f("",!0)],512)}}}),Ln=I(wn,[["__scopeId","data-v-bdc8201e"]]),En={class:"element-logo-bar"},Cn=["innerHTML"],An={key:1,class:"element-logo-bar__structured"},In={key:0,class:"element-logo-bar__title"},qn={class:"element-logo-bar__grid"},Hn=["src","alt"],Mn=C({__name:"ElementLogoBar",props:{section:{}},setup(e){return(t,d)=>{var _,m;const u=T("v-container");return n(),s("section",En,[e.section.content?(n(),s("div",{key:0,class:"element-logo-bar__body",innerHTML:e.section.content},null,8,Cn)):(m=(_=e.section.settings)==null?void 0:_.logos)!=null&&m.length?(n(),s("div",An,[x(u,null,{default:S(()=>{var r;return[e.section.title?(n(),s("h2",In,v(e.section.title),1)):f("",!0),h("div",qn,[(n(!0),s(q,null,M((r=e.section.settings)==null?void 0:r.logos,(o,l)=>(n(),s("figure",{key:"logo-"+l},[o.image?(n(),s("img",{key:0,src:String(o.image),alt:String(o.alt||""),width:"240",height:"120",loading:"lazy",decoding:"async"},null,8,Hn)):f("",!0)]))),128))])]}),_:1})])):f("",!0)])}}}),ce=I(Mn,[["__scopeId","data-v-e435db9e"]]),Vn={class:"element-cta"},Un=["innerHTML"],Nn={key:1,class:"element-cta__structured"},Rn={key:0,class:"element-cta__title"},Fn={key:1,class:"element-cta__description"},On=["href"],Bn=C({__name:"ElementCTA",props:{section:{}},setup(e){const t=e,d=$e(),u=p(()=>{var o;const r=(o=t.section.settings)==null?void 0:o.openFormSlug;return typeof r=="string"?r.trim():""}),_=p(()=>u.value.length>0);function m(){u.value&&d.open(u.value)}return(r,o)=>{var l,i,a,c,g;return n(),s("section",Vn,[e.section.content?(n(),s("div",{key:0,class:"element-cta__body",innerHTML:e.section.content},null,8,Un)):(l=e.section.settings)!=null&&l.buttonText||e.section.title?(n(),s("div",Nn,[e.section.title?(n(),s("h2",Rn,v(e.section.title),1)):f("",!0),(i=e.section.settings)!=null&&i.subtext?(n(),s("p",Fn,v(e.section.settings.subtext),1)):f("",!0),_.value&&((a=e.section.settings)!=null&&a.buttonText)?(n(),s("button",{key:2,type:"button",class:"element-cta__button",onClick:m},v(e.section.settings.buttonText),1)):(c=e.section.settings)!=null&&c.buttonLink&&((g=e.section.settings)!=null&&g.buttonText)?(n(),s("a",{key:3,href:String(e.section.settings.buttonLink),class:"element-cta__button"},v(e.section.settings.buttonText),9,On)):f("",!0)])):f("",!0)])}}}),zn=I(Bn,[["__scopeId","data-v-8aebf54a"]]),Dn={class:"element-expertise"},Pn={class:"element-expertise__container"},jn={class:"element-expertise__left"},Gn={key:0,class:"element-expertise__label"},Jn=["innerHTML"],Qn=["innerHTML"],Wn={key:3,class:"element-expertise__cta"},Yn={class:"element-expertise__right"},Zn={class:"element-expertise__skills"},Kn={class:"element-expertise__skill-title"},Xn={class:"element-expertise__skill-bar"},es={class:"element-expertise__skill-subtitle"},ts={key:0,class:"element-expertise__logo"},ns=["src"],ss=C({__name:"ElementExpertise",props:{section:{}},setup(e){const t=e,d=p(function(){var i;if(!t.section.title)return"";const l=(i=t.section.settings)==null?void 0:i.titleHighlight;return l?t.section.title.replace(l,'<span class="gold">'+l+"</span>"):t.section.title}),u=p(function(){var l;return((l=t.section.settings)==null?void 0:l.skills)||[]}),_=p(function(){var l;return((l=t.section.settings)==null?void 0:l.body)||t.section.content||""}),m=p(function(){var l;return((l=t.section.settings)==null?void 0:l.ctaText)||""}),r=p(function(){var l;return((l=t.section.settings)==null?void 0:l.ctaLink)||""}),o=p(function(){var l;return((l=t.section.settings)==null?void 0:l.logoImage)||""});return(l,i)=>{var c;const a=T("router-link");return n(),s("section",Dn,[h("div",Pn,[h("div",jn,[(c=e.section.settings)!=null&&c.label?(n(),s("span",Gn,v(e.section.settings.label),1)):f("",!0),e.section.title?(n(),s("h2",{key:1,class:"element-expertise__title",innerHTML:d.value},null,8,Jn)):f("",!0),_.value?(n(),s("div",{key:2,class:"element-expertise__body",innerHTML:_.value},null,8,Qn)):f("",!0),m.value&&r.value?(n(),s("div",Wn,[x(a,{to:r.value,class:"element-expertise__cta-btn"},{default:S(()=>[F(v(m.value),1)]),_:1},8,["to"])])):f("",!0)]),h("div",Yn,[h("div",Zn,[(n(!0),s(q,null,M(u.value,(g,b)=>(n(),s("div",{key:b,class:"element-expertise__skill"},[h("span",Kn,v(g.title),1),h("div",Xn,[h("span",es,v(g.subtitle),1)])]))),128))]),o.value?(n(),s("div",ts,[h("img",{src:o.value,alt:"",width:"160",height:"80",loading:"lazy",decoding:"async"},null,8,ns)])):f("",!0)])])])}}}),os=I(ss,[["__scopeId","data-v-813d6375"]]),is={key:0,class:"d-flex justify-center py-8"},cs={key:2,class:"element-gated-content__card"},ls={class:"element-gated-content__title"},as={class:"element-gated-content__desc"},rs={style:{position:"absolute",left:"-9999px",opacity:"0",height:"0",overflow:"hidden"}},us=["name"],ds=C({__name:"ElementGatedContent",props:{section:{}},setup(e){const t=e,{honeypotField:d,honeypotValue:u,isBot:_}=Te(),{cleanUtm:m}=xe(),{trackFormStart:r,trackFormSubmit:o,trackFileDownload:l}=we(),i=A(!0),a=A(!1),c=A(null),g=A(),b=A(!1),L=A("idle"),$=A(""),y=be({firstName:"",lastName:"",email:"",privacyAccepted:!1}),w=A(!1);function V(){w.value||(w.value=!0,r("gated_content_embedded"))}async function N(){var O;const{valid:H}=await g.value.validate();if(!H||!y.privacyAccepted||_.value||!c.value)return;L.value="loading";const k=await ne.post(`/forms/gated-content/${c.value._id}/submit`,{email:y.email,firstName:y.firstName,lastName:y.lastName,privacyAccepted:!0,utm:m.value,website_url:u.value},{skipAuth:!0});k.success&&k.data?(L.value="success",$.value=k.data.downloadUrl,o("gated_content_embedded"),(O=c.value)!=null&&O.title&&l(c.value.title,c.value._id)):L.value="error"}return B(async()=>{var O;const H=(O=t.section.settings)==null?void 0:O.slug;if(!H){i.value=!1,a.value=!0;return}const k=await ne.get(`/forms/gated-content/by-slug/${H}`,{skipAuth:!0});k.success&&k.data?c.value=k.data:a.value=!0,i.value=!1}),(H,k)=>{const O=T("v-progress-circular"),Y=T("v-alert"),Z=T("v-icon"),de=T("v-img"),z=T("v-col"),W=T("v-text-field"),me=T("v-checkbox"),_e=T("v-btn"),K=T("v-row"),ge=T("v-form"),fe=T("v-container");return n(),s("section",{class:U(["element-gated-content",{"element-gated-content--loaded":!!c.value}])},[x(fe,null,{default:S(()=>[i.value?(n(),s("div",is,[x(O,{indeterminate:"",color:"primary"})])):a.value?(n(),D(Y,{key:1,type:"warning",variant:"tonal",class:"my-4"},{default:S(()=>[...k[6]||(k[6]=[F(" Dieser Inhalt ist leider nicht verfügbar. ",-1)])]),_:1})):c.value?(n(),s("div",cs,[x(K,{align:"center"},{default:S(()=>[x(z,{cols:"12",md:"5"},{default:S(()=>[c.value.previewImage?(n(),D(de,{key:1,src:c.value.previewImage,"aspect-ratio":"1.414",rounded:"lg","max-height":"200"},null,8,["src"])):(n(),D(Z,{key:0,size:"48",color:"primary",class:"mb-3"},{default:S(()=>[F(v(c.value.mimeType==="application/zip"?"mdi-folder-zip-outline":"mdi-file-pdf-box"),1)]),_:1})),h("h3",ls,v(c.value.title),1),h("p",as,v(c.value.description),1)]),_:1}),x(z,{cols:"12",md:"7"},{default:S(()=>{var X,ee;return[L.value==="success"?(n(),D(Se,{key:0,title:"Download bereit!",text:"Der Link wurde auch an Ihre E-Mail gesendet.","download-url":$.value,"analytics-event":"file_download","analytics-params":{file_name:((X=c.value)==null?void 0:X.title)||"",content_id:((ee=c.value)==null?void 0:ee._id)||""}},null,8,["download-url","analytics-params"])):(n(),D(ge,{key:1,ref_key:"formRef",ref:g,modelValue:b.value,"onUpdate:modelValue":k[5]||(k[5]=E=>b.value=E),onSubmit:ve(N,["prevent"])},{default:S(()=>[x(K,{dense:""},{default:S(()=>[x(z,{cols:"12",sm:"6"},{default:S(()=>[x(W,{modelValue:y.firstName,"onUpdate:modelValue":k[0]||(k[0]=E=>y.firstName=E),label:"Vorname *",rules:[E=>!!E||"Pflichtfeld"],density:"compact",onFocus:V},null,8,["modelValue","rules"])]),_:1}),x(z,{cols:"12",sm:"6"},{default:S(()=>[x(W,{modelValue:y.lastName,"onUpdate:modelValue":k[1]||(k[1]=E=>y.lastName=E),label:"Nachname *",rules:[E=>!!E||"Pflichtfeld"],density:"compact",onFocus:V},null,8,["modelValue","rules"])]),_:1}),x(z,{cols:"12"},{default:S(()=>[x(W,{modelValue:y.email,"onUpdate:modelValue":k[2]||(k[2]=E=>y.email=E),label:"E-Mail *",type:"email",rules:[E=>!!E||"Pflichtfeld",E=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(E)||"Ungültig"],density:"compact",onFocus:V},null,8,["modelValue","rules"])]),_:1}),h("div",rs,[he(h("input",{"onUpdate:modelValue":k[3]||(k[3]=E=>ye(u)?u.value=E:null),name:R(d),type:"text",tabindex:"-1",autocomplete:"off"},null,8,us),[[pe,R(u)]])]),x(z,{cols:"12"},{default:S(()=>[x(me,{modelValue:y.privacyAccepted,"onUpdate:modelValue":k[4]||(k[4]=E=>y.privacyAccepted=E),density:"compact"},{label:S(()=>[...k[7]||(k[7]=[h("span",{style:{"font-size":"0.8rem",color:"#748686"}},"Datenschutz akzeptiert *",-1)])]),_:1},8,["modelValue"])]),_:1}),L.value==="error"?(n(),D(z,{key:0,cols:"12"},{default:S(()=>[x(Y,{type:"error",variant:"tonal",density:"compact",class:"mb-2"},{default:S(()=>[...k[8]||(k[8]=[F(" Es ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut. ",-1)])]),_:1})]),_:1})):f("",!0),x(z,{cols:"12"},{default:S(()=>[x(_e,{type:"submit",color:"primary",loading:L.value==="loading",disabled:!b.value||!y.privacyAccepted||R(_),block:""},{default:S(()=>[x(Z,{start:""},{default:S(()=>[...k[9]||(k[9]=[F("mdi-download",-1)])]),_:1}),k[10]||(k[10]=F(" Herunterladen ",-1))]),_:1},8,["loading","disabled"])]),_:1})]),_:1})]),_:1},8,["modelValue"]))]}),_:1})]),_:1})])):f("",!0)]),_:1})],2)}}}),ms=I(ds,[["__scopeId","data-v-8408dff6"]]),_s={class:"element-image-text__grid"},gs={key:0,class:"element-image-text__image-col"},fs=["src","alt"],vs={class:"element-image-text__text-col"},hs={key:0,class:"element-image-text__title"},ys=["innerHTML"],ps=C({__name:"ElementImageText",props:{section:{}},setup(e){const t=e,d=p(()=>{const m=t.section.settings??{};return typeof m.image=="string"?m.image:""}),u=p(()=>(t.section.settings??{}).imagePosition==="left"?"left":"right"),_=p(()=>{const m=t.section.settings??{};return typeof m.alt=="string"?m.alt:t.section.title||""});return(m,r)=>{const o=T("v-container");return n(),s("section",{class:U(["element-image-text","element-image-text--image-"+u.value])},[x(o,null,{default:S(()=>[h("div",_s,[d.value?(n(),s("div",gs,[h("img",{src:d.value,alt:_.value,class:"element-image-text__image",loading:"lazy",decoding:"async",width:"800",height:"480"},null,8,fs)])):f("",!0),h("div",vs,[e.section.title?(n(),s("h2",hs,v(e.section.title),1)):f("",!0),e.section.content?(n(),s("div",{key:1,class:"element-image-text__body",innerHTML:e.section.content},null,8,ys)):f("",!0)])])]),_:1})],2)}}}),bs=I(ps,[["__scopeId","data-v-b105dc61"]]);function ks(e,t){if(typeof document>"u"||!e||!t||!t.name||!t.thumbnailUrl)return;const d={"@context":"https://schema.org","@type":"VideoObject",name:t.name,description:t.description&&t.description.trim().length>0?t.description:t.name,thumbnailUrl:t.thumbnailUrl,uploadDate:t.uploadDate||new Date().toISOString().split("T")[0],contentUrl:t.contentUrl,embedUrl:t.embedUrl,duration:t.duration};Object.keys(d).forEach(o=>{(d[o]===void 0||d[o]===null||d[o]==="")&&delete d[o]});const u=`script[type="application/ld+json"][data-video="${e}"]`,_=document.querySelector(u),m=JSON.stringify(d);if(_){_.textContent=m;return}const r=document.createElement("script");r.type="application/ld+json",r.setAttribute("data-video",e),r.textContent=m,document.head.appendChild(r)}function $s(e){if(typeof document>"u"||!e)return;const t=document.querySelector(`script[type="application/ld+json"][data-video="${e}"]`);t&&t.remove()}function xs(e){return`https://img.youtube.com/vi/${e}/maxresdefault.jpg`}function Ss(e){return`https://www.youtube-nocookie.com/embed/${e}`}const Ts={class:"element-video"},ws={key:0,class:"element-video__title"},Ls=["src","title"],Es={key:2,class:"element-video__placeholder"},Cs={key:3,class:"element-video__caption"},As=C({__name:"ElementVideo",props:{section:{}},setup(e){const t=e,d=/^[a-zA-Z0-9_-]{11}$/;function u(a){if(d.test(a))return a;try{const c=new URL(a),g=c.hostname.replace(/^www\./,"").replace(/^m\./,"");if(g==="youtu.be"){const b=c.pathname.replace(/^\//,"").split("/")[0];return d.test(b)?b:""}if(g==="youtube.com"||g==="youtube-nocookie.com"){if(c.pathname==="/watch"){const L=c.searchParams.get("v")??"";return d.test(L)?L:""}const b=c.pathname.match(/^\/(?:embed|shorts|v|live)\/([^/?#]+)/);if(b&&d.test(b[1]))return b[1]}}catch{}return""}const _=p(()=>{const a=t.section.settings??{},c=typeof a.videoId=="string"?a.videoId:"";if(c&&d.test(c))return c;const g=typeof a.url=="string"?a.url:"";return g?u(g):""}),m=p(()=>(t.section.settings??{}).aspectRatio==="4:3"?"element-video__frame--4-3":"element-video__frame--16-9"),r=p(()=>{if(!_.value)return"";const a=t.section.settings??{},c=new URLSearchParams;return c.set("rel","0"),a.autoplay===!0&&c.set("autoplay","1"),typeof a.startTime=="number"&&a.startTime>0&&c.set("start",String(Math.floor(a.startTime))),`https://www.youtube-nocookie.com/embed/${_.value}?${c.toString()}`}),o=p(()=>{const a=t.section.settings??{};return typeof a.caption=="string"?a.caption:""}),l=p(()=>{if(_.value)return`youtube-${_.value}`;const a=t.section.settings??{};return(typeof a.sectionId=="string"?a.sectionId:"")||`video-${t.section.order??0}`});function i(){_.value&&ks(l.value,{name:t.section.title||o.value||"Video",description:o.value||t.section.title||"",thumbnailUrl:xs(_.value),embedUrl:Ss(_.value),contentUrl:`https://www.youtube.com/watch?v=${_.value}`})}return B(()=>{i()}),Q(()=>[_.value,t.section.title,o.value],()=>{i()}),J(()=>{$s(l.value)}),(a,c)=>{const g=T("v-container");return n(),s("section",Ts,[x(g,null,{default:S(()=>[e.section.title?(n(),s("h2",ws,v(e.section.title),1)):f("",!0),_.value?(n(),s("div",{key:1,class:U(["element-video__frame",m.value])},[h("iframe",{src:r.value,class:"element-video__iframe",title:e.section.title||"YouTube Video",loading:"lazy",allow:"autoplay; encrypted-media; picture-in-picture",allowfullscreen:""},null,8,Ls)],2)):(n(),s("div",Es," Video kann nicht angezeigt werden - ungültige YouTube-URL in Section-Settings. ")),o.value?(n(),s("p",Cs,v(o.value),1)):f("",!0)]),_:1})])}}}),Is=I(As,[["__scopeId","data-v-a58e167a"]]),qs={class:"element-external-script"},Hs=["data-provider","data-align"],Ms={key:2,class:"element-external-script__placeholder"},Vs=C({__name:"ElementExternalScript",props:{section:{}},setup(e){const t=e,d=A(null);let u=null;const _=p(()=>{const c=t.section.settings??{};return typeof c.scriptUrl=="string"?c.scriptUrl.trim():""}),m=p(()=>{const c=t.section.settings??{};return typeof c.provider=="string"?c.provider:""}),r=p(()=>{const c=t.section.settings??{},g=typeof c.minHeight=="number"?c.minHeight:600;return g>0?`${g}px`:"600px"}),o=p(()=>{const c=t.section.settings??{},g=c.textAlign??c.align;return g==="center"||g==="right"?g:"left"});function l(c){try{c.includes("kicktipp.de")&&delete window.kicktipp}catch{}}function i(c){for(;c.firstChild;)c.removeChild(c.firstChild)}function a(){const c=_.value,g=d.value;if(!c||!g)return;u&&u.parentNode&&(u.parentNode.removeChild(u),u=null,l(c),i(g));const b=document.createElement("script");b.src=c,b.async=!0,g.appendChild(b),u=b}return B(()=>{a()}),Q(_,()=>{a()}),J(()=>{u&&u.parentNode&&u.parentNode.removeChild(u),u=null,l(_.value),d.value&&i(d.value)}),(c,g)=>{const b=T("v-container");return n(),s("section",qs,[x(b,null,{default:S(()=>[e.section.title?(n(),s("h2",{key:0,class:U(["element-external-script__title",`element-external-script__title--${o.value}`])},v(e.section.title),3)):f("",!0),_.value?(n(),s("div",{key:1,ref_key:"containerRef",ref:d,class:"element-external-script__container",style:G({minHeight:r.value}),"data-provider":m.value||void 0,"data-align":o.value},null,12,Hs)):(n(),s("div",Ms," Drittanbieter-Widget ist nicht konfiguriert - bitte Script-URL in den Section-Einstellungen hinterlegen. "))]),_:1})])}}}),Us=I(Vs,[["__scopeId","data-v-cd3f9d40"]]),Ns=["innerHTML"],Rs=C({__name:"GenericContent",props:{section:{},pageTemplate:{}},setup(e){const t=A(null);return B(async function(){await j(),t.value&&t.value.querySelectorAll("[contenteditable]").forEach(function(d){d.removeAttribute("contenteditable")})}),(d,u)=>{const _=T("v-container");return n(),s("section",{ref_key:"sectionRef",ref:t,class:U(["generic-content",["generic-content--"+e.section.type,e.pageTemplate?"generic-content--tmpl-"+e.pageTemplate:""]])},[x(_,null,{default:S(()=>[h("div",{class:"generic-content__body",innerHTML:e.section.content},null,8,Ns)]),_:1})],2)}}}),Fs=I(Rs,[["__scopeId","data-v-31c2791a"]]);function Os(e){e.value&&e.value.querySelectorAll("[contenteditable]").forEach(function(t){t.removeAttribute("contenteditable")})}function Bs(e){if(e.value){var t=e.value.querySelector(".content-section__body"),d=t?t.querySelectorAll(":scope > .grid-row"):[];if(!(d.length<2)){var u=d[1],_=u.querySelector(".grid-col:first-child");if(_){var m=_.querySelector(":scope > div"),r=m?m.querySelector(":scope > div"):null;if(!(!r||!r.querySelector("h1"))){var o=d[0].querySelector(".grid-col:first-child");if(o){var l=o.querySelector(":scope > div");l&&l.remove(),o.appendChild(r)}}}}}}function zs(e){if(e.value){var t=e.value.querySelector(".grid-col:first-child");if(t){var d=t.querySelector(":scope > div"),u=d?d.querySelectorAll(":scope > div"):[],_=u.length>0?u[u.length-1]:null,m=_?_.querySelectorAll("figure"):[];if(!(m.length<=3)){var r=document.createElement("div");r.className="basec-marquee-track";var o=m.length;Array.from(m).forEach(function(l){r.appendChild(l)}),Array.from(r.children).forEach(function(l,i){i<o&&r.appendChild(l.cloneNode(!0))}),_.replaceChildren(r)}}}}const Ds=["innerHTML"],Ps=C({__name:"ContentSection",props:{section:{},pageTemplate:{}},setup(e){const t=A(null);let d=null,u=null;return B(async function(){if(await j(),!t.value)return;Os(t),d=ue(t).cleanup,u=re(t).cleanup,Bs(t),zs(t)}),J(function(){d&&d(),u&&u()}),(_,m)=>{const r=T("v-container");return n(),s("section",{ref_key:"sectionRef",ref:t,class:U(["content-section",["content-section--"+e.section.type,e.pageTemplate?"content-section--tmpl-"+e.pageTemplate:""]])},[x(r,null,{default:S(()=>[h("div",{class:"content-section__body",innerHTML:e.section.content},null,8,Ds)]),_:1})],2)}}}),le=I(Ps,[["__scopeId","data-v-bb810101"]]),js={key:0,class:"sr-only"},Ks=C({__name:"SectionRenderer",props:{section:{},pageTemplate:{},totalSections:{},sectionIndex:{},pageTitle:{}},setup(e){const t=e,d=p(function(){if(t.sectionIndex!==0||!t.pageTitle)return!1;const $=t.section.type,y=typeof t.section.title=="string"&&t.section.title.trim().length>0;return!($==="hero"&&y&&!t.section.content)}),u={hero:Ve,text:ot,stats:ft,"service-cards":St,"glassy-grid":se,grid:se,pricing:Kt,faq:an,testimonial:yn,tabs:Ln,logos:ce,"logo-bar":ce,cta:zn,expertise:os,"gated-content":ms,form:Le,"image-text":bs,video:Is,"external-script":Us},_=p(function(){const $=t.section.type;return(t.section.settings??{})._monolith===!0||t.totalSections===1&&($==="text"||!u[$])?le:u[$]||Fs}),m=A(!1);B(()=>{m.value=new URLSearchParams(window.location.search).has("overlay")});const r=p(()=>{if(!m.value)return"";const $=t.section.settings??{},y=$._mergedSections;if($._monolith===!0&&Array.isArray(y)&&y.length>0){const w=y,V=`#${w[0].order}-#${w[w.length-1].order}`,N=w.map(function(H){return H.type}).join(", ");return`Sections ${V} (${N})`}return`Section ${t.section.order}: ${t.section.type}`}),o=p(()=>{const $=t.section;return $.sectionId||$.name||`order-${$.order}`}),{rootStyle:l,rootClasses:i,sectionDataName:a,sectionHtmlId:c,scopedCssOverrides:g}=ae(()=>t.section),b=A(null);Q([b,g],([$,y])=>{$&&($.textContent=y)},{immediate:!0});function L(){if(!m.value)return;const $=t.section.settings??{},y=$._mergedSections,w=$._monolith===!0&&Array.isArray(y)?JSON.parse(JSON.stringify(y)):null,V=t.section.name||`#${t.section.order}`,N=[window.location.origin];let H=window.location.origin;try{document.referrer&&(H=new URL(document.referrer).origin)}catch{H=window.location.origin}const k=N.includes(H)?H:window.location.origin;window.parent.postMessage({type:"section-select",sectionName:V,sectionType:t.section.type,sectionId:o.value,order:t.section.order,mergedSections:w},k)}return($,y)=>(n(),s(q,null,[d.value?(n(),s("h1",js,v(e.pageTitle),1)):f("",!0),(n(),D(te(_.value),{section:e.section,"page-template":e.pageTemplate,id:R(c)||void 0,class:U([{"section-overlay-active":m.value},R(i)]),style:G(R(l)),"data-section-id":o.value,"data-section-name":R(a)||void 0,"data-section-order":e.section.order,"data-section-type":e.section.type,"data-section-label":m.value?r.value:void 0,onClick:L},null,8,["section","page-template","id","class","style","data-section-id","data-section-name","data-section-order","data-section-type","data-section-label"])),R(g)?(n(),D(te("style"),{key:1,ref_key:"cssOverrideStyleEl",ref:b},null,512)):f("",!0)],64))}});export{Ks as _};