1import{_ as X}from"./CBB4xW-e.js";import{u as F,f as Z,q as ee,n as te,N as oe,b as ne,O as ae,i as se,P as z,d as re}from"./BI4dxO8O.js";import{Y as ie}from"./CgU_Gher.js";import{d as U,C as le,z as ce,y as ue,bz as G,az as de,aW as c,o as a,c as l,n as u,q as w,a as S,w as h,l as R,t as N,b as y,F as E,f as x,m as q,e as _e,Y as pe,K as me,L as p,al as fe}from"./jmB-WYvk.js";import{u as ve}from"./3d_EdCaX.js";import{u as ge}from"./Dkt5NRvV.js";import"./BlVndTPS.js";import"./Dv-CToOw.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};i.SENTRY_RELEASE={id:"[email protected]"};var o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="69210459-3b7d-4141-9a66-4c71dd49292c",i._sentryDebugIdIdentifier="sentry-dbid-69210459-3b7d-4141-9a66-4c71dd49292c")}catch{}})();const be={key:0,class:"website-benefits"},he={class:"background"},ye={class:"wrapper"},Ee={class:"flex flex-col gap-6"},xe={key:1,class:"desktop"},Se={class:"categories"},ke=["onClick"],Be={class:"selection"},Ie=U({__name:"index",async setup(i){let o,d;const{t:_}=F(),{$viewport:g,$config:k}=le(),T=Z(),B=ce(),M=Array.isArray(B.query.category)?B.query.category[0]:B.query.category,n=pe(M||"default"),{normalizeLocale:P}=ee(),$=p(()=>P(T.i18n?.locale||"de-eu")),H=ue().public?.builderio?.apiKey??"",{categories:m}=([o,d]=G(()=>ve()),o=await o,d(),o),{data:f}=([o,d]=G(async()=>me(`benefits-articles-builder-${$.value}`,async()=>{const e=await ie({model:"benefits-article-page",apiKey:H,options:{locale:$.value,limit:100,fields:"id,data",noTargeting:!0,enrich:!0,includeRefs:!0}});if(!e||e.length===0)return[];const s=(T.i18n?.locale||"de-eu").toLowerCase();return e.map(r=>{const b=r.data?.url,A=Array.isArray(b)&&b.find(C=>C.startsWith(`/${s}/`))||"";return{id:r.id,title:r.data?.title||"",titleShort:r.data?.titleShort||r.data?.title||"",url:A,categoryId:r.data?.category?.id||r.data?.category?.value?.id||"",position:r.data?.position||0}})},{server:!0})),o=await o,d(),o);de(m,e=>{n.value!=="default"&&e&&!e.some(s=>s.handle===n.value)&&(n.value="default")},{immediate:!0});const V=p(()=>g.isGreaterOrEquals("large")),I=p(()=>m.value?.find(e=>e.handle===n.value)),W=p(()=>!f.value||!I.value?[]:f.value.filter(e=>e.categoryId===I.value?.id)),D=p(()=>!m.value||!f.value?[]:m.value.map(e=>({...e,articles:f.value.filter(s=>s.categoryId===e.id)}))),Y=p(()=>{const e=g.isGreaterOrEquals,s=e("large")?"desktop":e("tablet")?"tablet":"mobile";return`${k.public.IMAGE_CDN}svg/benefits-overview/bg-${n.value}/${s}.svg`}),K=e=>{n.value=n.value===e?"default":e},j=(e,s)=>{s?n.value=e:n.value===e&&(n.value="default")},J=e=>({...z(e.handle===n.value?e.color:"neutral-000","background-color"),transition:"all var(--transition-time) ease-in-out"}),Q=e=>z(e.handle===n.value?"neutral-000":e.color,"color"),L=(e,s)=>({text:e.titleShort,to:e.url,icon:"arrow-right","icon-position":"right","color-theme":"dark",size:"large"});return(e,s)=>{const O=te,r=ne,b=oe,A=ae,C=se;return c(f)&&c(m)?(a(),l("div",be,[u("div",he,[u("div",{style:w({"background-image":`url(${Y.value})`})},null,4)]),u("div",ye,[S(O,{overline:c(_)("MODULE_BENEFITS_OVERLINE"),"headline-level":"1",look:"none",centered:""},{headline:h(()=>[R(N(c(_)("MODULE_BENEFITS_HEADLINE")),1)]),paragraph:h(()=>[R(N(c(_)("MODULE_BENEFITS_PARAGRAPH")),1)]),_:1},8,["overline"]),V.value?(a(),l("div",xe,[u("div",Se,[(a(!0),l(E,null,x(D.value,t=>(a(),l("button",{key:t.id,style:w(J(t)),onClick:v=>K(t.handle)},[S(C,{name:t.icon,size:40,color:t.handle===n.value?"neutral-000":t.color},null,8,["name","color"]),u("span",{style:w(Q(t))},N(c(_)(`MODULE_BENEFITS_${t.handle.toUpperCase()}_ACTION`)),5)],12,ke))),128))]),u("div",Be,[(a(!0),l(E,null,x(W.value,t=>
1(a(),y(r,q({key:t.id},{ref_for:!0},L(t,I.value)),null,16))),128))])])):(a(),y(A,{key:0,"color-theme":"dark",class:"mobile-accordion"},{default:h(()=>[(a(!0),l(E,null,x(D.value,t=>(a(),y(b,{key:t.id,name:c(_)(`MODULE_BENEFITS_${t.handle.toUpperCase()}_ACTION`),icon:t.icon,color:t.color,onToggle:v=>j(t.handle,v)},{default:h(()=>[u("div",Ee,[(a(!0),l(E,null,x(t.articles,v=>(a(),y(r,q({key:v.id},{ref_for:!0},L(v,t)),null,16))),128))])]),_:2},1032,["name","icon","color","onToggle"]))),128))]),_:1}))])])):_e("",!0)}}}),Ae=Object.assign(re(Ie,[["__scopeId","data-v-f285d560"]]),{__name:"WebsiteBenefitsBuilder"}),Ce={class:"page"},Ge=U({__name:"index",setup(i){ge();const{t:o}=F();return fe({title:o("benefits-index.meta.title"),meta:[{property:"og:title",content:o("benefits-index.meta.title")},{name:"description",content:o("benefits-index.meta.description")},{property:"og:description",content:o("benefits-index.meta.description")}]}),(d,_)=>{const g=X,k=Ae;return a(),l("div",Ce,[S(g),S(k)])}}});export{Ge 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.