1"use strict";(self.webpackChunkswissborg_website_main=self.webpackChunkswissborg_website_main||[]).push([[1786],{1786:function(e,n,a){a.r(n),a.d(n,{BundleSimulationComparisonSliceWrapper:function(){return T}});var t=a(30758),r=a(4061),i=a(15328),l=a(17224),o=a(92009),s=a(64775),c=a(81363),u=a(58730),d=a(13465),m=a(48973),p=a(79453),b=a(47492),g=a(53276);const h=c.default.li.withConfig({displayName:"comparisonCard__CardItem",componentId:"sc-uerpyr-0"})(["display:flex;flex-direction:column;gap:",";padding:",";border:",";border-radius:1.6rem;background:",";@media ","{gap:",";padding:",";}"],(({theme:e})=>e.spacing.mobile.spacerS),(({theme:e})=>e.spacing.mobile.spacerS),(({theme:e})=>e.components.card.border),(({theme:e})=>e.components.card.background),(({theme:e})=>e.breakpoints.tablet),(({theme:e})=>e.spacing.desktop.spacerS),(({theme:e})=>e.spacing.desktop.spacerS)),f=c.default.h3.withConfig({displayName:"comparisonCard__CountryLabel",componentId:"sc-uerpyr-1"})([""," margin:0;color:",";"],u.Pc,(({theme:e})=>e.components.text)),y=c.default.ul.withConfig({displayName:"comparisonCard__BarList",componentId:"sc-uerpyr-2"})(["display:flex;flex-direction:column;gap:",";list-style:none;margin:0;padding:0;@media ","{gap:",";}"],(({theme:e})=>e.spacing.mobile.spacerS),(({theme:e})=>e.breakpoints.tablet),(({theme:e})=>e.spacing.desktop.spacerS)),v=c.default.li.withConfig({displayName:"comparisonCard__BarRow",componentId:"sc-uerpyr-3"})(["display:flex;flex-direction:column;gap:0.6rem;"]),w=c.default.div.withConfig({displayName:"comparisonCard__BarHeader",componentId:"sc-uerpyr-4"})(["display:flex;align-items:baseline;flex-wrap:wrap;gap:0.4rem 0.8rem;"]),C=c.default.span.withConfig({displayName:"comparisonCard__BarLabel",componentId:"sc-uerpyr-5"})([""," margin-right:auto;color:",";"],u.c_,(({theme:e})=>e.neutral.base)),S=c.default.span.withConfig({displayName:"comparisonCard__BarAmount",componentId:"sc-uerpyr-6"})([""," color:",";font-variant-numeric:tabular-nums;white-space:nowrap;"],u.tQ,(({theme:e})=>e.components.text)),_=c.default.span.withConfig({displayName:"comparisonCard__MultipleBadge",componentId:"sc-uerpyr-7"})([""," padding:0.2rem 0.6rem;border-radius:0.6rem;white-space:nowrap;font-variant-numeric:tabular-nums;color:",";background:",";border:1px solid ",";"],u.tQ,(({$isBundle:e,theme:n})=>e?n.primary.base:n.neutral.base),(({$isBundle:e,theme:n})=>e?n.alphas.primary20:"transparent"),(({$isBundle:e,theme:n})=>e?n.primary.base:n.strokeNeutralPrimary)),I=c.default.div.withConfig({displayName:"comparisonCard__BarTrack",componentId:"sc-uerpyr-8"})(["width:100%;height:0.8rem;border-radius:0.4rem;background:",";"],(({theme:e})=>"DARK"===e.name?e.neutral.dark.tint1:e.neutral.light.base)),N=c.default.div.withConfig({displayName:"comparisonCard__BarFill",componentId:"sc-uerpyr-9"})(["height:100%;width:",";border-radius:0.4rem;background:",";"],(({$widthRatio:e})=>100*e+"%"),(({$isBundle:e,theme:n})=>e?n.primary.base:n.neutral.base)),k=e=>"bundle"===e,B=({countryLabel:e,currency:n,bars:a})=>{const{locale:r}=(0,b.Sz)();return t.createElement(h,null,t.createElement(f,null,e),t.createElement(y,null,a.map((({key:e,label:a,amount:i,widthRatio:l,multiple:o})=>t.createElement(v,{key:e},t.createElement(w,null,t.createElement(C,null,a),t.createElement(S,null,(0,g.J)(i,n,r)),null!==o&&t.createElement(_,{$isBundle:k(e)},(0,g.O)(o,r))),t.createElement(I,{"aria-hidden":"true"},t.createElement(N,{$widthRatio:l,$isBundle:k(e)})))))))},x=(0,c.default)(d.JI).withConfig({displayName:"bundleSimulationComparisonSlice__SContainer",componentId:"sc-1gd8mi-0"})(["gap:",";@media ","{gap:",";}"],(({theme:e})=>e.spacing.mobile.spacerS),(({theme:e})=>e.breakpoints.tablet),(({theme:e})=>e.spacing.desktop.spacerS)),F=c.default.ul.withConfig({displayName:"bundleSimulationComparisonSlice__CardGrid",componentId:"sc-1gd8mi-1"})(["width:100%;display:grid;grid-template-columns:1fr;gap:",";list-style:none;margin:0;padding:0;@media ","{grid-template-columns:repeat(2,1fr);}@media ","{grid-template-columns:repeat(3,1fr);}"],(({theme:e})=>e.spacing.mobile.spacerS),(({theme:e})=>e.breakpoints.tabletS),(({theme:e})=>e.breakpoints.laptopS)),L=(0,c.default)(m.BlockContent).withConfig({displayName:"bundleSimulationComparisonSlice__S
1Disclaimer",componentId:"sc-1gd8mi-2"})([""," width:100%;margin-top:",";color:",";@media ","{margin-top:",";}"],u.c_,(({theme:e})=>e.spacing.mobile.spacerS),(({theme:e})=>e.neutral.base),(({theme:e})=>e.breakpoints.tablet),(({theme:e})=>e.spacing.desktop.spacerS)),$=({sectionProps:e,containerProps:{maxWidth:n,align:a},title:r,disclaimer:i,cards:l})=>t.createElement(d.M3,e,t.createElement(x,{$maxWidth:n,$align:a},r&&t.createElement(p.h,r),t.createElement(F,null,l.map((e=>t.createElement(B,{key:e.currency,countryLabel:e.countryLabel,currency:e.currency,bars:e.bars})))),i&&t.createElement(L,{value:i}))),E=(e,{paidInLabel:n,bundleLabel:a})=>{const t=Math.max(e.paidIn,e.bundleFinal,e.savingsFinal),r=e=>t>0?e/t:0;return[{key:"bundle",label:a,amount:e.bundleFinal,widthRatio:r(e.bundleFinal),multiple:e.bundleMultiple},{key:"savings",label:e.savingsName,amount:e.savingsFinal,widthRatio:r(e.savingsFinal),multiple:e.savingsMultiple},{key:"paidIn",label:n,amount:e.paidIn,widthRatio:r(e.paidIn),multiple:null}]},T=e=>{var n;const{config:a,paidInLabel:c,bundleSeriesLabel:u,...d}=e,m=(0,s.j)(null==a?void 0:a.bundleId),p=l.Fs((0,o.wh)(m,null!==(n=null==a?void 0:a.currencies)&&void 0!==n?n:null),r.x1((({authored:e,node:n})=>l.Fs((0,o.pp)(n,e.savingsLabelOverride),i.Tj((a=>{var t;return{currency:n.currency,countryLabel:null!==(t=e.countryLabel)&&void 0!==t?t:e.currency,bars:E(a,{paidInLabel:null!=c?c:a.contributionsName,bundleLabel:null!=u?u:n.product})}}))))));return r.J_(p)?t.createElement($,Object.assign({},d,{cards:p})):null}},53276:function(e,n,a){a.d(n,{J:function(){return r},O:function(){return i}});const t=/^[A-Z]{3}$/,r=(e,n,a)=>new Intl.NumberFormat(a,(e=>t.test(e)?{style:"currency",currency:e,maximumFractionDigits:0}:{maximumFractionDigits:0})(n)).format(e),i=(e,n)=>`${new Intl.NumberFormat(n,{minimumFractionDigits:2,maximumFractionDigits:2}).format(e)}x`},59121:function(e,n,a){a.d(n,{N:function(){return o},x:function(){return l}});var t=a(4061),r=a(15328),i=a(17224);const l=({productCode:e,series:n},a)=>t=>null!=a&&e(t)===a&&n(t).length>0,o=(e,n,a)=>i.Fs(e,t.i8(l(n,a)),r.NY)},64775:function(e,n,a){a.d(n,{j:function(){return i}});var t=a(59121);var r=a(80422);const i=e=>((e,n)=>e.filter((0,t.x)({productCode:e=>e.product,series:e=>e.performance},n)))((0,r.useStaticQuery)("2254149356").allBundleSimulation.nodes,e)},79453:function(e,n,a){a.d(n,{h:function(){return p}});var t=a(30758),r=a(81363),i=a(9331),l=a(58730);const o={TypoXSBold:l.tQ,TypoSBold:l.Pc,TypoMBold:l.$S,TypoLBold:l.Au,TypoXLBold:l.o3,Typo2XLBold:l.WS,Typo3XLBold:l.vS},s=["h1","h2","h3","h4","h5","h6"],c=e=>e in o?e:"TypoXLBold",u=e=>s.includes(e)?e:"h2",d=(0,r.css)(["",";",""],(({$size:e})=>o[e]),i.NA),m=r.default.span.withConfig({displayName:"title__StyledTitle",componentId:"sc-qpbgby-0"})(["",";"],d),p=({text:e,heading:n,size:a,className:r})=>e?t.createElement(m,{as:u(n),$size:c(a),className:r},e):null},92009:function(e,n,a){a.d(n,{dI:function(){return b},pp:function(){return h},wh:function(){return u}});var t=a(4061),r=a(15328),i=a(17224);const l=e=>null!==e,o=e=>"Total Contributed"===e.product,s=(e,n)=>i.Fs(e,t.i8(n),r.pb((e=>e.performance.some(l)))),c=e=>{const n=s(e.comparisons,o),a=s(e.comparisons,(e=>!o(e)));return r.$I(n)||r.$I(a)?r.dv:r.zN({contributions:n.value,savings:a.value})},u=(e,n)=>i.Fs(null!=n?n:[],t.x1((n=>i.Fs(e,t.i8((e=>e.currency===n.currency)),r.pb((e=>e.performance.some(l))),r.pb((e=>r.Ru(c(e)))),r.Tj((e=>({authored:n,node:e}))))))),d=(e,n)=>{const a=new Date(e);return new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth()+n,a.getUTCDate()))},m=(e,n)=>{var a;return null!==(a=e[n])&&void 0!==a?a:null},p=(e,{contributions:n,savings:a})=>Math.min(e.performance.length,a.performance.length,n.performance.length),b=e=>{const n=c(e),a=Date.parse(e.start);if(r.$I(n)||Number.isNaN(a)||e.intervalMonths<=0)return[];const t=p(e,n.value),{contributions:i,savings:l}=n.value;return Array.from({length:t},((n,t)=>({date:d(a,t*e.intervalMonths).toISOString(),bundle:m(e.performance,t),savings:m(l.performance,t),contributed:m(i.performance,t)})))},g=e=>{for(let n=e.length-1;n>=0;n--){const a=m(e,n);if(null!==a)return a}return null},h=(e,n)=>{const a=c(e);if(r.$I(a))return r.dv;const{contributions:t,savings:i}=a.value,l=p(e,a.value),o=g(t.performance.slice(0,l)),s=g(e.performance.slice(0,l)),u=g(i.performance.slice(0,l));return null===o||null===s||null===u||o<=0?r.dv:r.zN({paidIn:o,bundleFinal:s,bundleMultiple:s/o,savingsFinal:u,savings
1Multiple:u/o,savingsName:null!=n?n:i.product,contributionsName:t.product})}}}]);
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.