PageSourceSearch

https://www.lahitapiola.fi/component---src-templates-base-tsx-1f38d92d3024465244e0.js

js lahitapiola.fi collected 2026-10-01 10:35:40 UTC 165,930 bytes, 300 lines download raw bytes

1"use strict";(self.webpackChunkltfi=self.webpackChunkltfi||[]).push([[6551],{2780:function(e,t,n){n.r(t),n.d(t,{Head:function(){return go},default:function(){return mo}});var a=n(4810),l=n(6540),o=n(9751),i=n(5823);var r=(0,i.A)((e=>l.createElement(o.hP,{theme:e.theme,variation:"footer"},e.breadcrumbs.map(((t,n)=>l.createElement("span",{key:`breadcrumb-${n}`},l.createElement(o.UU,Object.assign({},t,{theme:e.theme}),t.label))))))),c=n(1958),s=n(823),d=n(8987),u=n(3679),g=n(795),m=n(8044),p=n(4215),v=n(1817),h=n(4633);const f=()=>(0,h.Tn)()?"turva_site_notification_banner_closed":"lahitapiola_site_notification_banner_closed",b=u.styled.div.withConfig({displayName:"NotificationBar__Notification",componentId:"sc-1ipskdc-0"})(["width:100%;text-align:center;padding:16px;display:",";flex-direction:row;gap:",";background:",";@media ","{text-align:left;}.duet-link,.link::part(duet-link){color:",";&:hover{text-decoration:none;}&:focus{outline:0px;box-shadow:rgb(255 255 255 / 30%) 0px 0px 0px 4px,rgb(255 255 255) 0px 0px 0px 1px;}}"],(e=>e.$isNotificationOpen?"flex":"none"),s.Sjf,(e=>"turva"===e.$theme?s.k5c:s.Ag5),(0,h._n)(s._h7),(e=>"turva"===e.$theme?s.zuw:s.VtW)),y=(0,u.styled)(o.QA).withConfig({displayName:"NotificationBar__StyledDuetIcon",componentId:"sc-1ipskdc-1"})(["align-self:center;&:hover{cursor:pointer !important;}"]);var C=l.memo((0,i.A)((e=>{const{isNotificationOpen:t,hideNotifications:n,showNotifications:a}=l.useContext(p.V),o="turva"===e.theme?"gray-lightest-turva":"gray-lightest",i=l.useCallback((()=>{e.updatedAt&&(d.A.set(f(),e.updatedAt,{expires:30}),n())}),[n,e.updatedAt]),r=l.useCallback((e=>{"Enter"!==e.code&&"Space"!==e.code||(e.preventDefault(),i())}),[i]);l.useEffect((()=>{const t=d.A.get(f());t?t!==e.updatedAt&&(d.A.remove(f()),a()):a()}),[e.updatedAt,a]);const c="activity-close",s=(0,v.C)(c);return l.createElement(b,{$theme:e.theme,$isNotificationOpen:t,"data-testid":"notification-bar"},l.createElement(m.A,{body:e.content,childrenContentfulRichTextStyleJsonNode:[{textColor:o,margin:"none"}],parentComponent:g.dlc}),l.createElement(y,{icon:s,tabIndex:0,role:"button","aria-label":e.closeAriaLabel,outline:(0,h.Tn)()?"color-primary-dark-turva":"color-primary-dark",color:(0,h.Tn)()?"gray-lightest-turva":"gray-lightest",name:c,size:"xx-small",margin:"none",onClick:i,onKeyDown:r}))}))),x=n(5158);var E=(0,i.A)((e=>{const t=e.backgroundColor?(0,x.vA)(e.backgroundColor):void 0;return l.createElement("section",{style:{textAlign:"center",backgroundColor:t}},l.createElement("a",{href:"/version.txt",target:"_blank",rel:"noreferrer"},"Version: ",e.version)," ","|"," ",l.createElement("a",{href:"/packages.txt",target:"_blank",rel:"noreferrer"},"Packages for version: ",e.version))})),k=n(1468);var I=(0,i.A)((e=>{var t;return l.createElement(o._e,Object.assign({},e,{theme:null!==(t=e.duetTheme)&&void 0!==t?t:e.theme}))}));const L=(0,u.styled)(I).withConfig({displayName:"LangChangeModal__StyledModal",componentId:"sc-1n10g85-0"})(["position:relative;z-index:1000202 !important;"]);var w=(0,i.A)((e=>{const t="turva"!==e.theme?"warning":"warning-turva";return l.createElement(L,{id:"lang-modal",duetTheme:e.theme,active:e.isOpen,onDuetBeforeClose:e.onBeforeClose,onDuetClose:e.onClose,icon:"messaging-alert",color:t,size:"small",className:"duet-text-center",heading:e.heading},l.createElement(o.vC,{id:"lang-modal-text"},e.text),l.createElement(o.XG,{id:"lang-modal-button-yes",variation:"primary",theme:e.theme,onClick:e.onYesBtnClick},e.yesButtonLabel),l.createElement(o.XG,{id:"lang-modal-button-no",variation:"default",theme:e.theme,onClick:e.onClose},e.noButtonLabel))})),A=n(317),S=n(3518),P=n(4919);const T=e=>e.application.nextLang,_=e=>e.application.nextLangUrl;var N=e=>{const t=l.useContext(A.V),n=(0,k.d4)(T),a=(0,k.d4)(_),o=(0,P.Mf)(),{navigateTo:i}=(0,S.A)(),r=l.useCallback(((e,n)=>{e.preventDefault(),"click"===e.type&&t.openModal(n)}),[t]),c=l.useCallback((e=>{e.detail.originalEvent.preventDefault(),"duetBeforeClose"===e.type&&t.closeModal()}),[t]),s=l.useCallback((e=>{n&&document.documentElement.setAttribute("lang",n),n&&o(`header_${n}`),"click"===e.type&&t.closeModal(),a&&i(a)}),[o,t,i,n,a]);return l.createElement(w,Object.assign({},e,{heading:e.heading,text:e.text,yesButtonLabel:e.yesButtonLabel,noButtonLabel:e.noButtonLabel,isOpen:"lang-change"===t.activeModalId,onClose:r,onBeforeClose:c,onYesBtnClick:s}))};var $=(0,i.A)((e=>{let{margin:t,theme:n}=e;return l.createElement(o.GK,{margin:t,theme:n})}
1));var D=(0,i.A)((e=>{let{theme:t,logoHref:n,onClick:a,onDuetEvent:i,children:r,logo:c,accessibleLabel:s,hideOnScroll:d}=e;return l.createElement(o.lu,{logoHref:n,theme:t,onClick:a,onDuetEvent:i,logo:null==c||c,accessibleLabel:s,hideOnScroll:d},r)}));var R=(0,i.A)((e=>{let{id:t,theme:n,leadingIcon:a,children:i,onClick:r,accessibleLabel:c,url:s,active:d,analyticsId:u,testId:g}=e;return l.createElement(o.sY,{id:t,leadingIcon:a,theme:n,onClick:r,accessibleLabel:c,url:s,active:d,"data-analytics-link":u,"data-testid":g},i)}));var M=(0,i.A)((e=>{let{theme:t,accessibleLabel:n,children:a,controller:i,accessibleRole:r,testId:c}=e;return l.createElement(o.OA,{accessibleLabel:n,controller:i,accessibleRole:r,"data-testid":c,theme:t,forcePlacement:!0,"skip-teleport":!0},a)}));var B=(0,i.A)((e=>{let{theme:t,active:n,url:a,accessibleLabel:i,accessibleRole:r,targetLanguage:c,onClick:s,children:d,analyticsId:u}=e;return l.createElement(o.H0,{active:n,url:a,accessibleLabel:i,accessibleRole:r,targetLanguage:c,onClick:s,"data-analytics-link":u,"data-testid":"duet-popup-menu-item",theme:t},d)}));var F=(0,i.A)((e=>{let{theme:t,open:n,children:a,accessibleLabel:i,hideOnScroll:r}=e;return l.createElement(o.Bc,{open:n,accessibleLabel:i,theme:t,hideOnScroll:r},a)}));var U=(0,i.A)((e=>{let{theme:t,icon:n,open:a,children:i,active:r}=e;return l.createElement(o.mE,Object.assign({icon:n,open:a,theme:t,"data-testid":"duet-submenu-bar-dropdown"},r?{active:r}:{}),i)}));var z=(0,i.A)((e=>{let{theme:t,caret:n,highlight:a,href:i,icon:r,children:c,analyticsId:s,onClick:d,active:u}=e;return l.createElement(o.AX,Object.assign({caret:n,highlight:a,href:i,icon:r,onClick:d,theme:t,"data-analytics-link":s,"data-testid":"duet-submenu-bar-dropdown-link"},u?{active:u}:{}),c)}));var O=(0,i.A)((e=>{let{theme:t,href:n,icon:a,children:i,onClick:r,analyticsId:c,active:s}=e;return l.createElement(o.pw,Object.assign({theme:t,href:n,icon:a,onClick:r,"data-analytics-link":c},s?{active:s}:{}),i)}));var j=(0,i.A)((e=>{let{theme:t,children:n,accessibleLabel:a,variation:i}=e;return l.createElement(o.uJ,{accessibleLabel:a,theme:t,variation:i},n)}));var H=(0,i.A)((e=>{let{theme:t,url:n,active:a,children:i,analyticsId:r,onClick:c,testId:s,variation:d,leadingIcon:u,accessibleLabel:g,id:m}=e;return l.createElement(o.pQ,{url:n,theme:t,active:a,"data-analytics-link":r,"data-testid":s,onClick:c,variation:d,leadingIcon:u,accessibleLabel:g,id:m},i)}));const J=e=>{var t;return{...e,items:null===(t=e.items)||void 0===t?void 0:t.filter((e=>e.showInNavigation))}};var K=n(4926),G=n(2210);var V=(0,i.A)((e=>{let{theme:t,backgroundColor:n,children:a,id:i,opener:r,handleSlideoutClose:c}=e;return l.createElement(o.mk,Object.assign({theme:t,id:i,onDuetSlideoutEvent:c,opener:r},n?{backgroundColor:n}:{}),a)})),W=n(4081),q=n(6807),Y=n(7411);const Q=u.styled.div.withConfig({displayName:"GroupLinkLoginItem__ButtonContainerWrapper",componentId:"sc-1f570om-0"})(["margin-top:8px;"]);var X=(0,i.A)((e=>{let{linkItem:t}=e;const n=`${Y.st[g.tNG]}${t.analyticsKey}`;return l.createElement(Q,{className:"button-wrapper"},l.createElement(q.A,{padding:"none",variation:"plain",url:t.href,icon:"action-arrow-right-small",label:t.label,accessibleLabel:t.accessibleLabel,childrenContentfulButtonStyleJsonNode:[{iconPosition:"right",iconSize:"medium-small"}],analyticsKey:n,isLoginLink:!0}))}));const Z=u.styled.p.withConfig({displayName:"GroupMicrocopyLoginItem__MicrocopyHeading",componentId:"sc-uwnuir-0"})(["margin:0;color:",";font-size:20px;font-weight:600;"],(e=>"turva"===e.$theme?s.Iv7:s.QUQ)),ee=u.styled.p.withConfig({displayName:"GroupMicrocopyLoginItem__MicrocopyDescription",componentId:"sc-uwnuir-1"})(["margin:0;padding:8px 0 0;color:",";font-size:16px;"],(e=>"turva"===e.$theme?s.gQc:s.oTQ));var te=(0,i.A)((e=>{let{microcopyItem:t,orderNumber:n,theme:a}=e;return 0===n?l.createElement(Z,{$theme:a},t.value):l.createElement(ee,{$theme:a},t.value)})),ne=n(9192);var ae=()=>l.createElement(l.Fragment,null,l.createElement(ne.A,null),l.createElement($,{margin:"none"}),l.createElement(ne.A,null));const le=u.styled.div.withConfig({displayName:"GroupLoginItem__StyledCustomLoginItemWrapper",componentId:"sc-4bqvx6-0"})(["padding:8px 0;& > .button-wrapper{margin-top:8px;}& > .button-wrapper:first-of-type{margin-top:20px;}"]);var oe=(0,i.A)((e=>{var t;let{groupItem:n,orderNumber:a}=e,o=0;return l.createElement(l.Fragment,null,a>0?l.createElement(ae,null):null,l.createElement(le,null,null===(t=n.items)||void 0===t?void 0:t.map((e=>{var t,n;if((null===(t=e.internal)||void 0===t?void 0:t.type)===g.lVM){const t=o++;return l.createElement(te,{microcopyItem:e,key:e.contentful_id,orderNumber:t})}return(null===(n=e.internal)||void 0===n?void 0:n.type)===g.Kvg?l.createElement(X,{linkItem:e,key:e.contentful_id}):null}))))}));var ie=(0,i.A)((e=>{let{active:t,accessibleLabel:n,targetLanguage:a,caret:i,href:r,icon:c,size:s,theme:d,onClick:u,analyticsId:g,testId:m,children:p,isTrackable:v}=e;return l.createElement(o.i4,Object.assign({accessibleLabel:n,targetLanguage:a,active:t,caret:i,href:r,icon:c,size:s,theme:d,onClick:u,"data-analytics-link":g,"data-testid":m},v?{className:"isTrackable"}:{}),p)}));var re=e=>{var t,n;let{loginLink:a,orderNumber:o,handleLoginLinkClick:i}=e;const r=l.useCallback((e=>{var t;(t=a.href)&&`${window.location.protocol}//${window.location.host}${t}`===window.location.href?window.location.reload():i(e,a.href,a.loginLink)}),[i,a.href,a.loginLink]),c=`${Y.st[g.tNG]}${a.analyticsKey}`;return l.createElement(l.Fragment,null,o>0?l.createElement(ae,null):null,l.createElement(ie,Object.assign({size:"medium",caret:!0,href:null!==(t=a.href)&&void 0!==t?t:"#",onClick:r,analyticsId:c},a.isTrackable?{isTrackable:a.isTrackable}:{}),a.label,null!==(n=a.loginLinkDescription)&&void 0!==n&&n.loginLinkDescription?l.createElement("span",{slot:"description"},a.loginLinkDescription.loginLinkDescription):null))};var ce=e=>{var t;let{loginItem:n,handleClick:a,orderNumber:o,handleLoginLinkClick:i}=e;return(null===(t=n.internal)||void 0===t?void 0:t.type)===g.Kvg?l.createElement(re,{key:n.contentful_id,loginLink:n,orderNumber:o,handleClick:a,handleLoginLinkClick:i}):l.createElement(oe,{key:n.contentful_id,groupItem:n,orderNumber:o})};var se=(0,i.A)((e=>{let{segments:t,handleClick:n,handleLoginLinkClick:a,loginSlideoutIdentifier:o}=e;return t&&0!==t.length?l.createElement(l.Fragment,null,t.map((e=>{var t;return e.showInNavigationLogin?l.createElement("div",{key:`tab-content-${e.contentfulId}`,id:`${o}-${e.contentfulId}`},null===(t=e.loginItems)||void 0===t?void 0:t.map(((t,i)=>l.createElement(ce,{loginItem:t,orderNumber:i,handleClick:n,handleLoginLinkClick:a,key:`tab-content-item-${o}-${e.contentfulId}-${t.contentful_id}`})))):null}))):null}));var de=e=>{let{label:t,children:n,selected:a,className:i,contentId:r,analyticsId:c}=e;return l.createElement(o.md,Object.assign({label:t,className:i,"content-id":r,selected:a||void 0},c?{"data-analytics-link":c}:{}),n)},ue=n(3735);const ge=(0,u.styled)(ue.A).withConfig({displayName:"LoginSlideoutTabs__StyledTabGroup",componentId:"sc-z7ngkh-0"}
1)(["&::part(slideout-tab-button){background-color:transparent;}&::part(slideout-tab-button--selected){background-color:transparent;}"]);var me=(0,i.A)((e=>{let{segments:t,segmentTabTitles:n,loginSlideoutIdentifier:a,theme:o,onTabChange:i,loginSegmentsAnalyticsIds:r}=e;return t&&0!==t.length?l.createElement(ge,{variation:"plain",identifier:"slideout-tab",margin:"none",duetTheme:o,onDuetTabChange:i},t.map(((e,t)=>e.showInNavigationLogin?l.createElement(de,{key:`tab-${e.contentfulId}`,contentId:`${a}-${e.contentfulId}`,className:"login-tab",label:n[t],selected:e.active,analyticsId:r[t]}):null))):null}));var pe=(0,i.A)((e=>{let{loginPanelSegments:t,segmentTabTitles:n,loginHeading:a,loginButtonLabel:i,loginButtonAccessibleLabel:r,loginSlideoutIdentifier:c,handleClick:d,handleLoginLinkClick:u,theme:g,onTabChange:m,handleLoginButtonClick:p,loginButtonAnalyticsId:v,loginSegmentsAnalyticsIds:h}=e;return(0,W.A)()?l.createElement(l.Fragment,null,l.createElement(R,{id:`login-slideout-${c}-opener`,testId:"login-slideout-opener",leadingIcon:"navigation-user",accessibleLabel:r,onClick:p,analyticsId:v},i),l.createElement(V,{id:`login-slideout-${c}`,opener:`login-slideout-${c}-opener`},l.createElement("div",{slot:"sticky-header"},l.createElement(o.zQ,{alignment:"center",style:{gap:`${s.isx}`}},l.createElement(G.A,{name:"navigation-login",size:"medium",margin:"none"}),l.createElement(K.A,{level:"div",visualLevel:"h3",margin:"none"},a)),l.createElement(me,{segments:t,segmentTabTitles:n,loginSlideoutIdentifier:c,theme:g,onTabChange:m,loginSegmentsAnalyticsIds:h})),l.createElement(se,{segments:t,handleClick:d,handleLoginLinkClick:u,loginSlideoutIdentifier:c}))):null}));const ve=u.styled.div.withConfig({displayName:"DesktopNav__DesktopNavContainer",componentId:"sc-1swhehi-0"})(["display:none;@media ","{display:inherit;}"],(0,h._n)(s.GOF));var he=(0,i.A)((e=>{var t;let{segments:n,loginPanelSegments:a,segmentTabTitles:o,loginHeading:i,loginButtonLabel:r,activeSegment:c,activeSubsegment:s,languageItems:d,activeLocaleLabel:u,languageSelectorButtonAccessibleLabel:g,handleClick:m,handleLogoClick:p,handleLoginLinkClick:v,handleLanguageSelect:f,toolbarAccessibleLabel:b,menubarAccessibleLabel:y,onTabChange:C,handleLoginButtonClick:x,loginButtonAnalyticsId:E,loginSegmentsAnalyticsIds:k,defaultSegmentUrl:I}=e;return l.createElement(ve,{slot:"desktop"},l.createElement(j,{accessibleLabel:b,variation:"negative"},l.createElement("div",{slot:"left"},n.map((e=>e.hideInNavigation?null:l.createElement(H,{key:e.contentfulId,active:e.active,url:e.href,analyticsId:e.analyticsId,onClick:m,testId:`nav-desktop-segment-link-${(0,h.Yv)(e.label)}`,variation:"negative"},e.label)))),l.createElement("div",{slot:"right"},l.createElement(H,{leadingIcon:"navigation-language",accessibleLabel:g,variation:"negative",id:"toolbar-item-language",testId:"toolbar-item-language"},u),l.createElement(M,{controller:"toolbar-item-language",accessibleRole:"list",testId:"language-popup-menu"},d.map(((e,t)=>l.createElement("span",{key:t},l.createElement(B,{active:e.active,url:e.href,analyticsId:e.analyticsKey,accessibleLabel:e.accessibleLabel,targetLanguage:e.active?void 0:e.country,onClick:f,accessibleRole:"listitem"},e.label))))))),l.createElement(D,{logoHref:I||"/",onDuetEvent:p,accessibleLabel:y},l.createElement("div",{slot:"center"},null==c||null===(t=c.items)||void 0===t?void 0:t.map((e=>l.createElement(R,{key:e.contentfulId,url:e.href,active:e.active,analyticsId:e.analyticsId,onClick:m,testId:"nav-desktop-segment-link"},e.label)))),l.createElement("div",{slot:"right"},l.createElement(pe,{loginPanelSegments:a,handleClick:m,handleLoginLinkClick:v,segmentTabTitles:o,loginHeading:i,loginButtonLabel:r,loginSlideoutIdentifier:"desktop",onTabChange:C,loginSegmentsAnalyticsIds:k,handleLoginButtonClick:x,loginButtonAnalyticsId:E}))),null!=s&&s.items?l.createElement(F,{accessibleLabel:s.label},s.items.map((e=>{const t=J(e);var n,a;return t.items&&t.items.length>0?l.createElement(U,{key:t.contentfulId,icon:t.icon||void 0,active:t.active},l.createElement("span",{slot:"label"},t.label),null===(n=t.items)||void 0===n?void 0:n.map((e=>l.createElement(z,{key:e.contentfulId,href:e.href,analyticsId:e.analyticsId,onClick:m,active:e.active},e.label))),t.isPageTranslated?l.createElement(l.Fragment,null,l.createElement($,{margin:"none"}),l.createElement(z,{caret:!0,highlight:!0,href:t.href,onClick:m,analyticsId:t.analyticsId},null!==(a=t.collectionPageLinkText)&&void 0!==a?a:"")):null):l.createElement(O,{key:t.contentfulId,href:t.href,icon:t.icon||void 0,onClick:m,analyticsId:t.analyticsId,active:t.active},t.label)}))):null)})),fe=n(7985),be=n(6961);var ye=(0,i.A)((e=>{let{active:t,icon:n,labelSize:a,open:i,children:r,backgroundColor:c,theme:s,handleSlideoutPanelLoginButtonClick:d,slideoutPanelloginButtonAnalyticsId:u}=e;return l.createElement(o.Kn,Object.assign({active:t,icon:n,labelSize:a},i?{open:i}:{},{theme:s},c?{backgroundColor:c}:{},{onClick:d,"data-analytics-link":u}),r)}));var Ce=(0,i.A)((e=>{let{segments:t,segmentTabTitles:n,loginHeading:a,handleClick:i,handleLoginLinkClick:r,theme:c,label:d,onTabChange:u,handleSlideoutPanelLoginButtonClick:g,slideoutPanelloginButtonAnalyticsId:m,loginSegmentsAnalyticsIds:p}=e;return(0,W.A)()?l.createElement(ye,{icon:"category-block",backgroundColor:"gray-lightest",labelSize:"medium",handleSlideoutPanelLoginButtonClick:g,slideoutPanelloginButtonAnalyticsId:m},l.createElement("span",{slot:"label"},d),l.createElement("div",{slot:"sticky-header"},l.createElement(o.zQ,{alignment:"center",style:{gap:`${s.isx}`}},l.createElement(G.A,{name:"navigation-login",size:"medium",margin:"none"}
1),l.createElement(be.A,{level:"div",visualLevel:"h3",margin:"none"},a)),l.createElement(me,{segments:t,segmentTabTitles:n,loginSlideoutIdentifier:"login-slideout-panel",theme:c,onTabChange:u,loginSegmentsAnalyticsIds:p})),l.createElement(se,{segments:t,handleClick:i,handleLoginLinkClick:r,loginSlideoutIdentifier:"login-slideout-panel"})):null}));var xe=(0,i.A)((e=>{let{children:t,theme:n}=e;return l.createElement(o.Yh,{theme:n},t)}));var Ee=e=>{let{languageItems:t,handleLanguageSelect:n}=e;return l.createElement(xe,null,t.map(((e,t)=>l.createElement(ie,{size:"small",active:e.active,key:t,href:e.href,analyticsId:e.mobileAnalyticsKey,accessibleLabel:e.accessibleLabel,targetLanguage:e.active?void 0:e.country,onClick:n},e.mobileLabel))))};var ke=(0,i.A)((e=>{let{icon:t,open:n,children:a,theme:i,active:r}=e;return l.createElement(o.ZR,{icon:t,open:n,theme:i,active:r},a)}));var Ie=e=>{var t;let{item:n,handleClick:a}=e;return l.createElement(ke,{key:n.contentfulId,icon:n.icon||"",active:!!n.active},l.createElement("span",{slot:"label"},n.label),null===(t=n.items)||void 0===t?void 0:t.map((e=>l.createElement(ie,{key:e.contentfulId,href:e.href,active:e.active,onClick:a,analyticsId:e.analyticsId},e.label))),n.isPageTranslated?l.createElement(ie,{href:n.href,onClick:a,analyticsId:n.analyticsId},n.collectionPageLinkText):null)};var Le=e=>{let{subsegment:t,handleClick:n}=e;var a;return t.items&&t.items.length>0?l.createElement(ye,{labelSize:"large",key:t.contentfulId,active:t.active},l.createElement("span",{slot:"label"},t.label),null===(a=t.items)||void 0===a?void 0:a.map((e=>{const t=J(e);return t.items&&t.items.length>0?l.createElement(Ie,{key:t.contentfulId,item:t,handleClick:n}):l.createElement(ie,{key:t.contentfulId,href:t.href,icon:t.icon||"",active:t.active,onClick:n,analyticsId:t.analyticsId},t.label)}))):l.createElement(ie,{key:t.label,size:"large",href:t.href,active:t.active,onClick:n,analyticsId:t.analyticsId},t.label)};var we=e=>{var t;let{activeSegment:n,logoHref:a,segments:o,loginPanelSegments:i,languageItems:r,handleClick:c,handleLogoClick:s,handleLanguageSelect:d,handleSlideoutClose:u,segmentTabTitles:g,loginHeading:m,mobileNavigationLandingPage:p,mobileLoginLink:v,handleLoginLinkClick:f,mobileMenuButtonAccessibleLabel:b,mobileLoginButtonAccessibleLabel:y,mainMenubarAccessibleLabel:C,onTabChange:x,handleLoginButtonClick:E,handleSlideoutPanelLoginButtonClick:k,slideoutPanelloginButtonAnalyticsId:I,loginButtonAnalyticsId:L,loginSegmentsAnalyticsIds:w}=e;return l.createElement(D,{logoHref:a,logo:!0,onDuetEvent:s,accessibleLabel:C},l.createElement("div",{slot:"right"},l.createElement(pe,{loginPanelSegments:i,handleClick:c,handleLoginLinkClick:f,segmentTabTitles:g,loginHeading:m,loginButtonAccessibleLabel:y,loginSlideoutIdentifier:"mobile",handleLoginButtonClick:E,loginButtonAnalyticsId:L,onTabChange:x,loginSegmentsAnalyticsIds:w}),l.createElement(R,{id:"main-slideout-opener",leadingIcon:"navigation-menu",accessibleLabel:b}),l.createElement(V,{id:"main-slideout",opener:"main-slideout-opener",handleSlideoutClose:u},p?l.createElement(ie,{onClick:e=>null==c?void 0:c(e,!0),active:p.active,href:null==n?void 0:n.href,size:"large",analyticsId:null==n?void 0:n.analyticsId},p.label):null,null==n||null===(t=n.items)||void 0===t?void 0:t.map((e=>l.createElement(Le,{key:e.contentfulId,handleClick:c,subsegment:e}))),l.createElement(fe.A,{size:"large"}),l.createElement(Ce,{handleClick:c,segments:o,loginHeading:m,segmentTabTitles:g,label:v,handleLoginLinkClick:f,onTabChange:x,loginSegmentsAnalyticsIds:w,handleSlideoutPanelLoginButtonClick:k,slideoutPanelloginButtonAnalyticsId:I}),l.createElement($,null),o.map((e=>e.hideInNavigation?null:l.createElement(ie,{key:e.contentfulId,href:e.href,active:e.active,onClick:c,analyticsId:e.analyticsId,testId:`nav-mobile-segment-link-${(0,h.Yv)(e.label)}`,size:"small"},e.label))),l.createElement(fe.A,{size:"medium"}),l.createElement(Ee,{languageItems:r,handleLanguageSelect:d}))))};var Ae=e=>{let{activeSubsegment:t,handleClick:n,showAllLabel:a,hideOnScroll:o}=e;var i;return t&&t.items?l.createElement(F,{accessibleLabel:t.label,hideOnScroll:o},l.createElement("span",{slot:"label"},a),null==t||null===(i=t.items)||void 0===i?void 0:i.map((e=>{const t=J(e);return t.items&&t.items.length>0?l.createElement(U,{icon:t.icon||void 0,key:t.contentfulId,open:!!t.active,active:t.active},l.createElement("span",{slot:"label"},t.label),t.items.map((e=>l.createElement(z,{href:e.href,onClick:n,key:e.contentfulId,analyticsId:e.analyticsId,active:e.active},e.label))),t.isPageTranslated?l.createElement(z,{href:t.href,onClick:n,analyticsId:e.analyticsId},t.collectionPageLinkText||void 0):null):l.createElement(O,{key:t.contentfulId,href:t.href,onClick:n,icon:t.icon||void 0,analyticsId:t.analyticsId,active:t.active},t.label)}))):null};var Se=e=>{var t;let{activeSegment:n,handleClick:a,handleLogoClick:o,scrollableMenubarAccessibleLabel:i,hideOnScroll:r}=e;return l.createElement(D,{logo:!1,onDuetEvent:o,accessibleLabel:i,hideOnScroll:r},l.createElement("div",{slot:"center"},null==n||null===(t=n.items)||void 0===t?void 0:t.map((e=>l.createElement(R,{key:e.contentfulId,active:e.active,url:e.href,onClick:a,analyticsId:e.analyticsId},e.label)))))};const Pe=u.styled.div.withConfig({displayName:"MobileNav__MobileNavContainer",componentId:"sc-1fndlwg-0"})(["display:inherit;@media ","{display:none;}"],(0,h._n)(s.GOF));var Te=e=>{let{activeSegment:t,activeSubsegment:n,segments:a,loginPanelSegments:o,languageItems:i,handleClick:r,handleLogoClick:c,handleLoginLinkClick:s,handleLanguageSelect:d,handleSlideoutClose:u,showAllLabel:g,loginHeading:m,loginButtonLabel:p,segmentTabTitles:v,mobileNavigationLandingPage:h,mobileLoginLink:f,mobileMenuButtonAccessibleLabel:b,mobileLoginButtonAccessibleLabel:y,mainMenubarAccessibleLabel:C,scrollableMenubarAccessibleLabel:x,onTabChange:E,handleLoginButtonClick:k,handleSlideoutPanelLoginButtonClick:I,slideoutPanelloginButtonAnalyticsId:L,loginButtonAnalyticsId:w,loginSegmentsAnalyticsIds:A,defaultSegmentUrl:S,hideOnScroll:P}=e;return l.createElement(Pe,{slot:"mobile"},l.createElement(we,{segments:a,loginPanelSegments:o,loginHeading:m,loginButtonLabel:p,segmentTabTitles:v,logoHref:null!=S?S:"",languageItems:i,handleLanguageSelect:d,handleClick:r,handleLogoClick:c,handleLoginLinkClick:s,handleSlideoutClose:u,mobileLoginLink:f,mobileNavigationLandingPage:h,activeSegment:t,mobileMenuButtonAccessibleLabel:b,mobileLoginButtonAccessibleLabel:y,mainMenubarAccessibleLabel:C,onTabChange:E,loginSegmentsAnalyticsIds:A,handleLoginButtonClick:k,loginButtonAnalyticsId:w,handleSlideoutPanelLoginButtonClick:I,slideoutPanelloginButtonAnalyticsId:L}),l.createElement(Se,{activeSegment:t,handleClick:r,handleLogoClick:c,scrollableMenubarAccessibleLabel:x,hideOnScroll:P}),l.createElement(Ae,{activeSubsegment:n,handleClick:r,showAllLabel:g,hideOnScroll:P}))},_e=n(2428),Ne=n(3519),$e=n(1589);var De=(0,i.A)((e=>{let{theme:t,children:n}=e;return l.createElement(o.e4,{theme:t,sticky:!0},n)})),Re=n(7729),Me=n(102);var Be=(e,t)=>{if(!e)return!1;const n={sv:"swedishTranslationExists",en:"englishTranslationExists"}[t];return!n||!1!==e[n]},Fe=n(9992);const Ue=(e,t)=>{const n=`${e}${t}/`;return{absoluteUrl:(0,Fe.Lo)(n),relativeUrl:n}},ze=(e,t,n,a)=>{const l=[],o=e.filter((e=>!0===e.promoteInNavigation));for(const d of o)if(Be(d,a)){var i,r,c,s;const{absoluteUrl:e}=Ue(t,d.slug),a=(0,Y.bh)(d.analyticsKey,g.tNG,null!==(i=d.navigationLabelFinnish)&&void 0!==i?i:d.pageTitleFinnish);l.push({label:null!==(r=null!==(c=d.navigationLabel)&&void 0!==c?c:d.pageTitle)&&void 0!==r?r:"",icon:null!==(s=d.icon)&&void 0!==s?s:void 0,href:e,active:n.slice(2).includes(d.slug),slug:d.slug,items:null,contentfulId:d.contentful_id,analyticsId:a})}return l},Oe=(e,t,n,a)=>{const l=[],o=e.filter((e=>!e.promoteInNavigation));for(const s of o)if(Be(s,a)){var i,r,c;const{absoluteUrl:e}=Ue(t,s.slug),a=(0,Y.bh)(s.analyticsKey,g.tNG,null!==(i=s.navigationLabelFinnish)&&void 0!==i?i:s.pageTitleFinnish);l.push({label:null!==(r=null!==(c=s.navigationLabel)&&void 0!==c?c:s.pageTitle)&&void 0!==r?r:"",href:e,slug:s.slug,analyticsId:a,active:n.slice(2).includes(s.slug),items:null,contentfulId:s.contentful_id,showInNavigation:s.showInNavigation})}return l};var je=(0,i.A)((e=>{var t,n,a;const o=(0,l.useContext)(_e.A),i=(0,l.useContext)(Ne.A),r=(0,l.useContext)($e.A),{openM
1odal:c}=l.useContext(A.V),{navigateTo:s}=(0,S.A)(),d=(0,P.Mf)(Y.pQ),u=(0,k.wA)(),m=e.pagePath?e.pagePath.split("/"):[""],p=e=>`${o.node_locale===g.Xn3?"/":`/${o.node_locale}/`}${e}/`,v=(e,t)=>{const n=[],a=e.filter((e=>e.showInNavigation));for(const v of a){var l,i,r;const{absoluteUrl:e,relativeUrl:a}=Ue(t,v.slug),h=(0,Y.bh)(v.analyticsKey,g.tNG,null!==(l=null!==(i=v.collectionPageLinkTextFinnish)&&void 0!==i?i:v.navigationLabelFinnish)&&void 0!==l?l:v.pageTitleFinnish),f=v.childPages?ze(v.childPages,a,m,o.node_locale):[],b=v.childPages?Oe(v.childPages,a,m,o.node_locale):[],y=!(null===(r=v.childPages)||void 0===r||!r.some((e=>e.showInNavigation&&Be(e,o.node_locale)))),C=Be(v,o.node_locale);if(C||y){var c,s,d,u,p;const t=null===(c=v.childPages)||void 0===c?void 0:c.filter((e=>Be(e,o.node_locale)));if(f.length>0&&(null==t?void 0:t.length)===f.length){n.push(...f);continue}let a=!1;for(const e of b)!0===e.active&&(a=!0);let l=!1;for(const e of f)!0===e.active&&(l=!0);n.push({label:null!==(s=null!==(d=v.navigationLabel)&&void 0!==d?d:v.pageTitle)&&void 0!==s?s:"",icon:null!==(u=v.icon)&&void 0!==u?u:void 0,href:e,slug:v.slug,items:b,active:a||!l&&m.length>1&&m.slice(2).includes(v.slug),collectionPageLinkText:null!==(p=v.collectionPageLinkText)&&void 0!==p?p:null,contentfulId:v.contentful_id,analyticsId:h,isPageTranslated:C,showInNavigation:v.showInNavigation},...f)}else f.length>0&&n.push(...f)}return n},f=(e,t)=>{const n=[],a=e.filter((e=>!0!==e.hideInNavigation));for(const l of a)if(Be(l.landingPage,o.node_locale)){let e=!1;r&&(e=l.slug===r.slug);const{absoluteUrl:a,relativeUrl:o}=Ue(t,l.slug||""),i=(0,Y.bh)(l.analyticsKey,g.tNG,l.titleFinnish),c=null!=l&&l.pages?v(l.pages,o):null;n.push({label:l.title||"",slug:l.slug||"",href:a,active:e,items:c,contentfulId:l.contentful_id,analyticsId:i})}return n},b=o.segments?(e=>{const t=[];for(const r of e){var n,a,l,o;const e=r.slug===i.slug,c=p(r.slug),s=(0,Fe.Lo)(c),d=(0,Y.bh)(r.analyticsKey,g.tNG,r.titleFinnish||""),u=(0,Y.bh)(void 0,g.tNG,r.titleFinnish||""),m=e&&i.subsegments?f(i.subsegments,c):null,v=null===(n=r.header)||void 0===n?void 0:n.loginItems,h=null!==(a=null===(l=r.header)||void 0===l?void 0:l.loginSegmentName)&&void 0!==a?a:null;t.push({label:r.title,href:s,active:e,items:m,loginItems:v,loginSegmentName:h,showInNavigationLogin:r.showInNavigationLogin,contentfulId:r.contentful_id,analyticsId:d,loginTabAnalyticsId:u,hideInNavigation:null!==(o=r.hideInNavigation)&&void 0!==o&&o})}return t})(o.segments):[],y=(e=>{const t=[];for(const n of e){let e=!1;o.node_locale===n.country&&(e=!0),t.push({label:n.label,accessibleLabel:n.accessibleLabel,analyticsKey:n.analyticsKey,mobileAnalyticsKey:n.mobileAnalyticsKey,mobileLabel:n.mobileLabel,country:n.country,href:(0,Fe.Lo)(n.href),active:e})}return t})(e.languageItems),C=p(null===(t=o.defaultSegment)||void 0===t?void 0:t.slug),x=(null===(n=y.find((e=>e.active)))||void 0===n?void 0:n.country.toUpperCase())||"FI",E=b.map((e=>({label:e.label,active:e.active,href:e.href,contentfulId:e.contentfulId,analyticsId:e.analyticsId,loginTabAnalyticsId:e.loginTabAnalyticsId,loginItems:e.loginItems,loginSegmentName:e.loginSegmentName,showInNavigationLogin:e.showInNavigationLogin,hideInNavigation:e.hideInNavigation}))),[I,L]=l.useState([...E]),w=b.find((e=>e.active)),T=null==w||null===(a=w.items)||void 0===a?void 0:a.find((e=>e.active)),_=l.useCallback(((e,t)=>{e.preventDefault();const n=e.currentTarget.dataset.analyticsLink;n&&d(n);let a="/";"url"in e.currentTarget?a=e.currentTarget.url:"href"in e.currentTarget&&(a=e.currentTarget.href);
1const l=(0,Me.gD)(Me.bE.INTERNAL,a);(0,Me.mi)(l),s(a,t)}),[d,s]),N=l.useCallback((e=>{const{name:t,data:n,originalEvent:a}=e.detail;if(a.preventDefault(),"logoClick"===t){d((0,h.Tn)()?Y.Zn:Y.dX);const e=(0,Me.gD)(Me.bE.INTERNAL,n.logoHref);(0,Me.mi)(e),s(n.logoHref)}}),[d,s]),$=[];for(const l of E)l.loginSegmentName?$.push(l.loginSegmentName):$.push(l.label);const D=l.useCallback(((t,n,a)=>{t.preventDefault();const l=t.currentTarget.dataset.analyticsLink;if(l&&!a&&d(l),l&&a&&e.loginSlideoutLoginLinkEvent&&d(l,void 0,e.loginSlideoutLoginLinkEvent),n){const e=(0,Me.gD)(Me.bE.EXTERNAL,n);(0,Me.mi)(e),s(n)}}),[d,s,e.loginSlideoutLoginLinkEvent]),R=l.useCallback((e=>{var t;e.preventDefault();const{textContent:n}=e.target;let a="/";"url"in e.currentTarget?a=e.currentTarget.url:"href"in e.currentTarget&&(a=e.currentTarget.href);const l=e.currentTarget.dataset.analyticsLink,o=(null===(t=y.find((e=>e.label===n||e.mobileLabel===n)))||void 0===t?void 0:t.country)||null,i=document.querySelector(".cx-widget-status");if(!i||i.textContent!==g.yAt&&i.textContent!==g.dhW&&i.textContent!==g.hqx){l&&d(l);
1const e=(0,Me.gD)(Me.bE.INTERNAL,a);(0,Me.mi)(e),o&&"undefined"!=typeof document&&document.documentElement.setAttribute("lang",o),s(a)}else c("lang-change"),u((0,Re.XM)(a)),u((0,Re.gI)(o))}),[y,c,u,d,s]),M=l.useCallback((e=>{e.preventDefault();const t=Array.from(document.querySelectorAll("duet-slideout-panel"));for(const n of t)if(n.hasAttribute("open")){const e=Array.from(n.querySelectorAll("duet-slideout-panel-dropdown"));for(const t of e)t.hasAttribute("open")&&t.removeAttribute("open");n.removeAttribute("open")}}),[]),B=l.useMemo((()=>{const e=[];for(const n of E){var t;n.showInNavigationLogin&&e.push(null!==(t=n.loginTabAnalyticsId)&&void 0!==t?t:"")}return e}),[E]),F=l.useCallback((e=>{B[e.detail.value]&&d(B[e.detail.value]||"")}),[d,B]),U=l.useMemo((()=>(0,Y.bh)(e.loginButtonFi,g.tNG,void 0)),[e.loginButtonFi]),z=l.useMemo((()=>(0,Y.bh)(e.mobileLoginLinkFi,g.tNG,void 0)),[e.mobileLoginLinkFi]),O=l.useCallback((()=>{var e,t;const n=(null===(e=o.segments)||void 0===e||null===(t=e[1])||void 0===t?void 0:t.slug)||"",a=new Set([g.hCU,g.RHJ]),l=new URL((0,h.bp)()).pathname.split("/").find((e=>Boolean(e)&&!a.has(e)))===n,i=I.map(((e,t)=>({...e,active:l?1===t:0===t})));L(i)}),[o,I]),j=l.useCallback((()=>{O(),U&&d(U)}),[d,U,O]),H=l.useCallback((t=>{var n;(null===(n=t.currentTarget)||void 0===n?void 0:n.innerText)===e.mobileLoginLink&&(O(),z&&d(z))}),[d,e.mobileLoginLink,z,O]),J={label:o.mobileNavigationLandingPageLinkText,active:i.slug===m[m.length-1]};let K=o.mobileNavigationShowAllText;var G,V,W;T&&(K=null!==(G=null===(V=T.items)||void 0===V||null===(W=V.find((e=>e.active)))||void 0===W?void 0:W.label)&&void 0!==G?G:o.mobileNavigationShowAllText);return l.createElement(De,null,l.createElement(he,{segments:E,loginPanelSegments:I,segmentTabTitles:$,loginHeading:e.loginHeading,loginButtonLabel:e.loginButton,activeSegment:w,activeSubsegment:T,languageItems:y,activeLocaleLabel:x,languageSelectorButtonAccessibleLabel:e.accessibleLabels.languageSelectorButtonAccessibleLabel,toolbarAccessibleLabel:e.accessibleLabels.desktopToolbarAccessibleLabel,menubarAccessibleLabel:e.accessibleLabels.menubarAccessibleLabel,handleClick:_,handleLoginLinkClick:D,handleLanguageSelect:R,handleLogoClick:N,onTabChange:F,handleLoginButtonClick:j,loginButtonAnalyticsId:U,loginSegmentsAnalyticsIds:B,defaultSegmentUrl:C}),l.createElement(Te,{segments:E,loginPanelSegments:I,activeSegment:w,activeSubsegment:T,loginHeading:e.loginHeading,loginButtonLabel:e.loginButton,mobileMenuButtonAccessibleLabel:e.accessibleLabels.mobileMenuButtonAccessibleLabel,mobileLoginButtonAccessibleLabel:e.accessibleLabels.mobileLoginButtonAccessibleLabel,segmentTabTitles:$,languageItems:y,handleClick:_,mainMenubarAccessibleLabel:e.accessibleLabels.mobileMenubarAccessibleLabel,scrollableMenubarAccessibleLabel:e.accessibleLabels.menubarAccessibleLabel,handleLoginLinkClick:D,handleLanguageSelect:R,handleSlideoutClose:M,showAllLabel:K,mobileNavigationLandingPage:J,handleLogoClick:N,mobileLoginLink:e.mobileLoginLink,onTabChange:F,loginSegmentsAnalyticsIds:B,handleLoginButtonClick:j,handleSlideoutPanelLoginButtonClick:H,loginButtonAnalyticsId:U,slideoutPanelloginButtonAnalyticsId:z,defaultSegmentUrl:C,hideOnScroll:!0}))})),He=n(1988);const Je=u.styled.div.withConfig({displayName:"PopUp__StyledWrapper",componentId:"sc-1jte5cl-0"})(["position:fixed;animation:fadeIn 1s;@keyframes fadeIn{0%{opacity:0;}100%{opacity:1;}}left:42px;bottom:22px;width:575px;@media ","{left:20px;bottom:62px;width:222px !important;text-align:center;}z-index:",";"],(0,h._n)("(max-width: 43em)"),(0,h._n)(s.gST)-1),Ke=u.styled.div.withConfig({displayName:"PopUp__StyledFlex",componentId:"sc-1jte5cl-1"})(["@media ","{display:flex;}"],(0,h._n)("(min-width: 43em)")),Ge=(0,u.styled)(o.QA).withConfig({displayName:"PopUp__StyledDuetIconClose",componentId:"sc-1jte5cl-2"})(["&:hover{cursor:pointer !important;}z-index:10000;position:absolute;top:20px;right:20px;"]),Ve=u.styled.div.withConfig({displayName:"PopUp__StyledDuetIcon",componentId:"sc-1jte5cl-3"})(["max-width:75px;margin-top:5px;margin-left:5px;align-items:center !important;justify-content:center !important;vertical-align:top;flex:1;@media ","{max-width:1000px !important;margin-top:0px !important;margin-left:0px !important;margin-right:20px !important;display:flex !important;width:100% !important;margin-top:20px !important;}"],(0,h._n)("(max-width: 43em)")),We=u.styled.div.withConfig({displayName:"PopUp__StyledDiv",componentId:"sc-1jte5cl-4"})(["@media ","{flex:1;}"],(0,h._n)("(min-width: 43em)")),qe=u.styled.div.withConfig({displayName:"PopUp__StyledCard",componentId:"sc-1jte5cl-5"})(["position:relative;"]),Ye=u.styled.div.withConfig({displayName:"PopUp__StyledRichTextBody",componentId:"sc-1jte5cl-6"})(["",""],(e=>"turva"!==e.$theme&&u.css`
2      .duet-link,
3      .link::part(duet-link) {
4        color: ${s.VtW};
5      }
6    `));var Qe=(0,i.A)((e=>{var t;const n=(0,h.Tn)()?"gray-lightest-turva":"primary",a=(0,x.cI)(n),o=null!==(t=e.contentful_id)&&void 0!==t?t:"",[i,r]=l.useState(!1),c=l.useCallback((()=>{var e;r(!1),null===(e=sessionStorage)||void 0===e||e.setItem(o,"true")}),[o]),s=l.useCallback((e=>{"Enter"!==e.code&&"Space"!==e.code||(e.preventDefault(),c())}),[c]);l.useEffect((()=>{var e;if(!(null===(e=sessionStorage)||void 0===e?void 0:e.getItem(o))){const e=setTimeout((()=>{r(!0)}),3e3);return()=>clearTimeout(e)}}),[o]);const d=[{textColor:a}];return i&&l.createElement(Je,null,l.createElement(qe,null,l.createElement(He.A,{role:"region","aria-labelledby":"popupOtsikko",background:n,padding:"x-small","border-radius":"radius-large",theme:e.theme,"data-testid":"popUpDuetCard"},l.createElement(Ke,null,l.createElement(Ge,{role:"button",name:"activity-close",size:"small",margin:"none",color:a,"aria-label":e.closeAriaLabel,tabIndex:0,onClick:c,onKeyDown:s}),l.createElement(Ve,null,l.createElement(G.A,{name:e.icon,size:"xx-large",color:a,responsive:!1})),l.createElement(We,null,l.createElement(K.A,{level:"h3","visual-level":"h4",color:a,id:"popupOtsikko"},(0,h.G6)(e.title)),e.body?l.createElement(Ye,{$theme:e.theme},l.createElement(m.A,{body:e.body,childrenContentfulRichTextStyleJsonNode:d,styledHyperlinks:!1})):null,l.createElement(ne.A,{size:"xx-small",direction:"vertical"}),e.button?l.createElement(q.A,{contentful_id:e.button.contentful_id,childrenContentfulButtonStyleJsonNode:[],url:e.button.url,accessibleLabel:e.button.accessibleLabel,label:e.button.label,variation:(0,h.Tn)()?"primary":"negative",parentComponent:g.GBv,anal
6yticsKey:e.button.analyticsKey,wrapping:"auto"}):null)))))}));var Xe=e=>l.createElement(Qe,e),Ze=n(9757);var et=e=>{let{url:t,children:n}=e;const a=l.useCallback((e=>{if(e.preventDefault(),!t)return;const n=document.querySelector(t);null==n||n.setAttribute("tabindex","-1"),null==n||n.focus()}),[t]);return l.createElement(Ze.A,{url:t,tabToLink:!0,onClick:a,className:"skip-link"},n)},tt=n(7017);const nt={pageContext:void 0},at=l.createContext(nt),lt=e=>{const t=(0,h.RI)(),n=(0,P.EK)(),a=(0,P.g7)(),o=l.useRef(!1),i=l.useRef(null),r=l.useRef(!1),c=l.useRef(e);c.current=e;const s=l.useCallback((()=>{var e,l,i;if(o.current)return;const r=c.current,s=null!==(e=r.pageContext.newsroomMarketingTags)&&void 0!==e?e:r.pageContext.marketingTags;if(t&&(r.pageContext.form||r.pageContext.calculator||r.hasLifeForm)){const e=[];r.pageContext.form&&e.push(Y.eD),r.pageContext.calculator&&e.push(Y.Ks),r.hasLifeForm&&e.push(Y.Z4);const t=r.pageContext.form?r.pageContext.formMetadata:null;a(e,t,r.pageContext.calculatorName,r.lifeFormAnalyticsKeys,s,r.pageContext.isClaimInstructionPage)}else t&&!r.pageContext.form&&n(s,r.pageContext.isClaimInstructionPage);o.current=!0,null!==(l=window.digitalData)&&void 0!==l&&null!==(i=l.page)&&void 0!==i&&i.events&&(window.digitalData.page.events=void 0)}),[t,a,n]),d=l.useCallback((async()=>{if(await(async()=>new Promise((e=>{let t=0;const n=setInterval((()=>{window.digitalData&&window.digitalData.page||1e3===t?(clearInterval(n),e(!0)):t++}),50)})))(),!t)return;const e=()=>{r.current||o.current||(window._satellite?s():i.current=window.setTimeout(e,50))};e()}),[t,s]);return(0,l.useEffect)((()=>{if(!tt.s.isViewRenderEndEventDispatched())if(tt.s.isDomCompleteDispatched()){const e=(0,Me.ED)();
6(0,Me.QT)(e),tt.s.setViewRenderEndEventDispatched(!0)}else{const e=(0,Me.OX)(),t=(0,Me.ED)();(0,Me.et)(e),tt.s.setDomCompleteDispatched(!0),(0,Me.QT)(t),tt.s.setViewRenderEndEventDispatched(!0)}}),[]),(0,l.useEffect)((()=>(r.current=!1,d(),()=>{r.current=!0,null!==i.current&&window.clearTimeout(i.current)})),[d]),l.createElement(at.Provider,{value:e.pageContext},e.children)};var ot=n(3064),it=n(9317);const rt={[g.$52]:"Suomeksi",[g.hCU]:"På svenska",[g.RHJ]:"In English"},ct={[g.$52]:"Vaihda kieli suomeksi",[g.hCU]:"Byt språk till svenska",[g.RHJ]:"Change language to English"},st={[g.$52]:"Suomi",[g.hCU]:"Svenska",[g.RHJ]:"English"};var dt=(e,t)=>{var n,a,o;const i=t.allLocales,r=null==t||null===(n=t.segment)||void 0===n||null===(a=n.landingPage)||void 0===a?void 0:a.contentful_id,c=null==t||null===(o=t.segment)||void 0===o?void 0:o.contentful_id,s={},d=[],u=[],g=l.useContext(it.Q),m=e.map((e=>{var t;return{...e,path:null===(t=e.path)||void 0===t?void 0:t.replace(/\.html$/,"/")}}));if(g){((e,t,n)=>{const a=[...n].filter((e=>{let[,n]=e;return t===n.id})).map((e=>e[0]));for(const l of a)l.startsWith("/sv")?e.sv=l:l.startsWith("/en")?e.en=l:e.fi=l})(s,r,g);for(const e of i){const t=m.find((t=>{var n;return t.pageContext.locale===e&&(null===(n=t.pageContext.segment)||void 0===n?void 0:n.contentful_id)===c}));t&&d.push(t),t||d.push({pageContext:{contentfulId:m[0].pageContext.contentfulId,locale:e},path:`${s[e]}`})}}for(const l of d){var p;const e=null==l||null===(p=l.pageContext)||void 0===p?void 0:p.locale,t=(0,h.bX)(rt,e)?e:void 0;t&&!u.some((e=>e.href===l.path||e.country===t))&&u.push({label:rt[t],accessibleLabel:ct[t],analyticsKey:`header_${(0,h.Yv)(rt[t])}_vaihda-kieli`,mobileAnalyticsKey:`header_${(0,h.Yv)(st[t])}_vaihda-kieli`,mobileLabel:st[t],country:l.pageContext.locale,href:l.path})}return u},ut=n(3248),gt=n(7527);var mt=function(e,t,n){void 0===e&&(e=[]),void 0===t&&(t=[]),void 0===n&&(n=[]);const a=[...e,...t,...n];for(const l of a){const e=l;e.options||(e.options=[])}return{headExternalScripts:a.filter((e=>"head"===e.position)),headInitScripts:a.filter((e=>"head"===e.initalizationCodePosition)),bodyExternalScripts:a.filter((e=>"body"===e.position)),bodyInitScripts:a.filter((e=>"body"===e.initalizationCodePosition))}};const pt=function(e,t,n,a){var l;if(void 0===a&&(a=new WeakSet),!e||"object"!=typeof e)return;if(a.has(e))return;a.add(e);const o=null===(l=e.internal)||void 0===l?void 0:l.type;if(o&&t.has(o)){var i;const t=null!==(i=n.get(o))&&void 0!==i?i:[];t.push(e),n.set(o,t)}for(const r of Object.values(e))if(Array.isArray(r))for(const e of r)pt(e,t,n,a);else r&&"object"==typeof r&&pt(r,t,n,a)},vt=new Set([g.GmZ,g.cH8]);var ht=n(935),ft=n(3433),bt=n(6462),yt=n(2067),Ct=n(7006),xt=n(1856),Et=n(6545),kt=n(2731);const It=u.styled.div.withConfig({displayName:"CampaignLandingPageContainer__ButtonWrapper",componentId:"sc-1bq564e-0"})(["display:flex;justify-content:center;align-items:center;margin-top:40px;"]),Lt=(e,t,n)=>{var a;const l=null!=t?t:"/";return[{label:(null==e||null===(a=e.card)||void 0===a?void 0:a.ctaLabel)||n,variation:"negative",contentful_id:"campaign-landing-page-banner-button",url:l,childrenContentfulButtonStyleJsonNode:[{screen:"all",iconPosition:"right"}],internal:{type:g.cmn}}]},wt=(e,t)=>t===g.hCU?!!e.swedishTranslationExists:t!==g.RHJ||!!e.englishTranslationExists;var At=e=>{var t,n,a,i;const{campaigns:r,bannerCampaign:c,promotedCampaigns:s,moreCampaignsButtonLabel:d,regionalReleasesLabel:u,defaultBannerButtonCTA:g}=e.externalPage,{findUrlById:m}=(0,yt.A)(),p=null!==(t=e.bottomCards)&&void 0!==t?t:[],[v,f]=l.useState([]),[b,y]=l.useState([]),[C,x]=l.useState(null),E=l.useRef([]),k=l.useRef(null),I=l.useRef(null),L=l.useMemo((()=>Date.now()),[]);r&&r.sort(((e,t)=>t.publishDate.localeCompare(e.publishDate)));const w=l.useMemo((()=>r?r.filter((t=>(t.showInLandingPage||"ContentfulNewsroomNationalCampaign"===t.internal.type)&&Date.parse(t.publishDate)<L&&(!t.endDate||Date.parse(t.endDate)>L)&&wt(t,e.locale))):[]),[r,L,e.locale]);s&&s.sort(((e,t)=>null==t?void 0:t.startDate.localeCompare(null==e?void 0:e.startDate)));const A=l.useMemo((()=>s?s.filter((e=>"top"===e.promoteInRegionalCampaigns&&Date.parse(e.startDate)<L&&(!e.endDate||Date.parse(e.endDate)>L))):[]),[s,L]),S=l.useMemo((()=>s?s.filter((e=>"bottom"===e.promoteInRegionalCampaigns&&Date.parse(e.startDate)<L&&(!e.endDate||Date.parse(e.endDate)>L))):[]),[s,L]),P=null===(n=(0,Ct.r)())||void 0===n?void 0:n.pageContext;if(c&&wt(c,e.locale)){const e=m(c.contentful_id,null==P?void 0:P.locale);E.current=Lt(c,e,g),k.current=c}else if(A.length>0&&null!==(a=A[0])&&void 0!==a&&a.contentful_id){const e=m(A[0].contentful_id,null==P?void 0:P.locale);E.current=Lt(A[0],e,g),k.current||(k.current=A[0],A.splice(0,1))}const T=k.current?(e=>{var t;let n,a,l;if(null!=e&&e.card)n=e.card.heading,a=e.card.description,l=e.card.image;else if("ContentfulCampaign"===(null===(t=e.internal)||void 0===t?void 0:t.type)){var o,i,r,c;const t=e;n=null===(o=t.hero)||void 0===o||null===(i=o.heading)||void 0===i?void 0:i.heading,a=null!==(r=t.hero)&&void 0!==r&&r.ingress?{description:t.hero.ingress.ingress}:void 0,l=null===(c=t.hero)||void 0===c?void 0:c.backgroundImage}else{var s,d;const t=e;n=t.title,a=null!==(s=t.ingress)&&void 0!==s&&s.ingress?{description:t.ingress.ingress}:void 0,l=null===(d=t.heroImage)||void 0===d?void 0:d.asset}return n&&(n=(0,h.G6)(n)),{heading:n,description:a,image:l}})(k.current):null,_=l.useMemo((()=>[...A,...w,...S]),[A,S,w]);l.useEffect((()=>{_.length>
66?(f(_.slice(0,6)),y(_.slice(6))):f(_)}),[_]);const N=l.useCallback((()=>{b.length<6?(f([...v,...b]),y([])):(f([...v,...b.slice(0,6)]),y(b.slice(6))),x(C?C+6:6)}),[b,C,v]);return l.useEffect((()=>{var e;null===(e=I.current)||void 0===e||e.setFocus()}),[C]),l.createElement(l.Fragment,null,k&&T?l.createElement(xt.A,{key:`campaign-landing-banner-${null===(i=k.current)||void 0===i?void 0:i.contentful_id}`,heading:T.heading,description:T.description,forceMaxWidth:!0,internal:{type:"ContentfulBannerNew"},buttons:E.current,backgroundImage:T.image,childrenContentfulBannerNewStyleJsonNode:[{backgroundColor:"secondary"}]}):null,l.createElement(o.P6,{size:"xx-large"}),l.createElement(Et.A,{articles:v,nextFocusableCard:C,focusableCardRef:I}),b.length>0&&l.createElement(It,null,l.createElement(q.A,{icon:"action-arrow-down-small",onClick:N,contentful_id:e.externalPage.contentful_id,label:d,childrenContentfulButtonStyleJsonNode:[{iconPosition:"right"}],noWrapperSpan:!0})),l.createElement(kt.A,{articles:p,header:null!=u?u:""}))},St=n(6216),Pt=n(9785);const Tt=e=>0===e.length||/^[A-Za-zÄÅÖäåö]{1,3}-\d{1,3}$/.test(e)||/^\d{1,3}-[A-Za-zÄÅÖäåö]{1,3}$/.test(e),_t=u.styled.form.withConfig({displayName:"CarInsuranceCalculator__StyledForm",componentId:"sc-1kl7xou-0"})(["white-space:nowrap;@media ","{width:100%;}"],(0,h._n)(s._h7)),Nt=u.styled.div.withConfig({displayName:"CarInsuranceCalculator__ContentWrapper",componentId:"sc-1kl7xou-1"})(["display:flex;gap:",";@media ","{flex-direction:column;}"],s.GYs,(0,h._n)(s._h7)),$t=u.styled.div.withConfig({displayName:"CarInsuranceCalculator__ButtonWrapper",componentId:"sc-1kl7xou-2"})(["display:flex;flex-direction:column;@media ","{margin-top:40px;}"],(0,h._n)(s.iqz));var Dt=(0,i.A)((e=>{const{control:t,handleSubmit:n,formState:a}=(0,Pt.mN)({mode:"onTouched",defaultValues:{registrationNumberInput:""}}),i=l.useRef(null),r=(0,P.CZ)(),c=l.useCallback((t=>{const n=(0,h.Tn)()?((e,t)=>{const n=new URL(e);return n.searchParams.append("reknro",t),n.toString()})(e.calculatorLaunchUrl,t.registrationNumberInput):((e,t)=>{const n=new URL(e);return n.pathname.endsWith("/")||(n.pathname+="/",e=n.toString()),n.searchParams.append("regNum",t.toLocaleUpperCase()),n.toString()})(e.calculatorLaunchUrl,t.registrationNumberInput);r({linkName:e.buttonAnalyticsKey},{},Y.IF,e.marketingTags),(0,Fe.bw)(n)}),[e.calculatorLaunchUrl,e.buttonAnalyticsKey,e.marketingTags,r]);return l.createElement(_t,{onSubmit:n(c,(e=>{var t;e.registrationNumberInput&&(null==i||null===(t=i.current)||void 0===t||t.setFocus())})),"aria-label":e.formAccessibleLabel,"data-testid":"car-insurance-calculator"},l.createElement(Nt,null,l.createElement(Pt.xI,{name:"registrationNumberInput",control:t,rules:{validate:Tt},render:t=>{var n;let{field:{onChange:r,onBlur:c,...s}}=t;return l.createElement(o.R8,Object.assign({},s,{onDuetChange:r,maxlength:7,debounce:100,ref:i,onDuetBlur:c,label:e.inputLabel,disallowPattern:"[^\\da-zA-ZÄäÅåÖö-]",theme:e.theme,error:null!==(n=a.errors)&&void 0!==n&&n.registrationNumberInput?e.validationErrorMessage:"",margin:"none","data-testid":"register-number-input",className:"car-insurance-calculator-input"}))}}),e.buttonLabel?l.createElement($t,null,e.children):null))}));var Rt=e=>{var t,n,a,o,i,r,c,s,d;const u=l.useContext(_e.A);if((null==u?void 0:u.node_locale)!==g.$52&&(null==u?void 0:u.node_locale)!==g.z6F&&(null==u?void 0:u.node_locale)!==g.IzJ)return null;const m=(0,Y.bh)(null!==(t=null===(n=e.submitButton)||void 0===n?void 0:n.analyticsKey)&&void 0!==t?t:e.buttonAnalyticsKey,g.S1J,null===(a=e.submitButton)||void 0===a?void 0:a.labelFinnish),p={...e.submitButton,label:null!==(o=null===(i=e.submitButton)||void 0===i?void 0:i.label)&&void 0!==o?o:e.buttonLabel,accessibleLabel:null!==(r=null===(c=e.submitButton)||void 0===c?void 0:c.accessibleLabel)&&void 0!==r?r:e.buttonAccessibleLabel,analyticsKey:null!==(s=null===(d=e.submitButton)||void 0===d?void 0:d.analyticsKey)&&void 0!==s?s:e.buttonAnalyticsKey};return l.createElement(Dt,{inputLabel:e.inputLabel,formAccessibleLabel:e.formAccessibleLabel,validationErrorMessage:e.validationErrorMessage,calculatorLaunchUrl:e.calculatorLaunchUrl,buttonLabel:p.label,buttonAnalyticsKey:m,marketingTags:e.marketingTags},l.createElement(q.A,Object.assign({childrenContentfulButtonStyleJsonNode:[],submit:!0,variation:"primary",margin:"auto",parentComponent:g.S1J},p,{dataLinkUrl:e.calculatorLaunchUrl})))};var Mt=n(2507),Bt=n(7922),Ft=n(2906);const Ut="cottage",zt=new Set(["default","blockofflats","townhouse","semidetached",Ut]);var Ot=(e,t,n,a)=>{const l=new Map([]);a===Ut&&l.set("type",a),t&&l.set("size",t),!(0,h.Tn)()&&n&&l.set("language",n);let o=e;if(l.size>0){let e=0;for(const[t,n]of l.entries())o=0===e?`${o}?${t}=${n}`:`${o}&${t}=${n}`,e++}return a&&a!==Ut&&(o=`${o}#${a}`),o};
6const jt=(e,t,n)=>{if(0===e.length)return!0;if(!/^\d+$/.test(e))return t;const a=Number.parseInt(e,10);return!(a<4||a>9999)||n},Ht=u.styled.form.withConfig({displayName:"HomeInsuranceCalculator__StyledForm",componentId:"sc-1gzj7x-0"})(["white-space:nowrap;@media ","{width:100%;}"],(0,h._n)(s._h7)),Jt=u.styled.div.withConfig({displayName:"HomeInsuranceCalculator__InputWrapper",componentId:"sc-1gzj7x-1"})(["@media ","{max-width:290px;}"],(0,h._n)(s.iqz)),Kt=u.styled.div.withConfig({displayName:"HomeInsuranceCalculator__ContentWrapper",componentId:"sc-1gzj7x-2"})(["display:flex;gap:24px;@media ","{flex-direction:column;}"],(0,h._n)(s._h7)),Gt=u.styled.div.withConfig({displayName:"HomeInsuranceCalculator__ButtonWrapper",componentId:"sc-1gzj7x-3"})(["display:flex;flex-direction:column;@media ","{margin-top:40px;}"],(0,h._n)(s.iqz));var Vt=(0,i.A)((e=>{var t,n,a,o,i;const{control:r,handleSubmit:c,formState:s}=(0,Pt.mN)({mode:"onTouched",defaultValues:{areaInput:""}}),d=l.useRef(null),u=l.useCallback((e=>{var t;return"0"===e?(null===(t=d.current)||void 0===t||t.clearInput(),""):e}),[]),g=(0,P.CZ)(),m=l.useCallback((t=>{var n;const a=t.areaInput.replace(/^0+/,""),l=Ot(e.paramsReceiverUrl,a,e.locale,null===(n=e.apartmentType)||void 0===n?void 0:n.coverableId);g({linkName:e.buttonAnalyticsKey},{},Y.IF,e.marketingTags),(0,Fe.bw)(l)}),[e.paramsReceiverUrl,e.locale,null===(t=e.apartmentType)||void 0===t?void 0:t.coverableId,e.buttonAnalyticsKey,e.marketingTags,g]);return l.createElement(Ht,{onSubmit:c(m,(e=>{var t,n,a;null!==(t=e.areaInput)&&void 0!==t&&t.message&&""!==(null===(n=e.areaInput)||void 0===n?void 0:n.message)&&(null==d||null===(a=d.current)||void 0===a||a.setFocus())})),"aria-label":"default"===(null===(n=e.apartmentType)||void 0===n?void 0:n.coverableId)?e.formAccessibleLabel:`${e.formAccessibleLabel} - ${null===(a=e.apartmentType)||void 0===a||null===(o=a.title)||void 0===o?void 0:o.toLowerCase()}`,"data-testid":"home-insurance-calculator"},l.createElement(Kt,null,l.createElement(Jt,null,l.createElement(Ft.A,{name:"areaInput",inputRef:d,control:r,maxLength:4,expand:!0,isFormDirty:s.isDirty,currentErrorMessage:(null===(i=s.errors.areaInput)||void 0===i?void 0:i.message)||"",tooltipText:e.tooltipText,inputLabel:e.inputLabel,disallowPattern:"[^\\d]",transformInputValue:u,validateArgs:[e.validationErrorFormat,e.validationErrorMinMax],validateFunction:jt,testId:"area-input",className:"home-insurance-calculator-input",icon:"form-area"})),e.buttonLabel?l.createElement(Gt,null,e.children):null))}));var Wt=e=>{var t,n,a,o,i;const r=l.useContext(_e.A),c=l.useMemo((()=>e.apartmentType?{...e.apartmentType}:{}),[e.apartmentType]),s=(0,Y.bh)(null===(t=e.submitButton)||void 0===t?void 0:t.analyticsKey,g.S1J,null===(n=e.submitButton)||void 0===n?void 0:n.labelFinnish);let d=null===(a=e.apartmentType)||void 0===a?void 0:a.coverableId;if(d&&zt.has(d)||(d="default"),c.coverableId=d,(null==r?void 0:r.node_locale)===g.RHJ||(null==r?void 0:r.node_locale)===g.pA3||(null==r?void 0:r.node_locale)===g.SVO)return null;if((0,h.Tn)()&&((null==r?void 0:r.node_locale)===g.hCU||(null==r?void 0:r.node_locale)===g.JR1||(null==r?void 0:r.node_locale)===g.ygE))return null;const u=null==r?void 0:r.node_locale,m=(0,Fe.Bu)(e.paramsReceiverUrlSit,e.paramsReceiverUrlUat,e.paramsReceiverUrlProd),p={...e.submitButton,label:null!==(o=null===(i=e.submitButton)||void 0===i?void 0:i.label)&&void 0!==o?o:e.buttonLabel};return l.createElement(Vt,{apartmentType:c,formAccessibleLabel:e.formAccessibleLabel,buttonAnalyticsKey:s,buttonLabel:p.label,validationErrorMinMax:e.validationErrorMinMax,validationErrorFormat:e.validationErrorFormat,tooltipText:e.tooltipText,inputLabel:e.inputLabel,locale:u,paramsReceiverUrl:m,marketingTags:e.marketingTags},l.createElement(q.A,Object.assign({childrenContentfulButtonStyleJsonNode:[],submit:!0,variation:"primary",margin:"auto",testId:"area-input-submit",parentComponent:g.S1J},p,{dataLinkUrl:m})))};var qt=n(601),Yt=n(9418);const Qt="Passenger car",Xt="Van",Zt="Motor Caravan",en="Moped",tn="Motorcycle",nn="Snowmobile",an="Quad bike",ln="Light trailer",on="Caravan trailer",rn="Tractor",cn=new Set([Qt,Xt,Zt,en,tn,nn,an,ln,on,rn]),sn={[Qt]:"PassengerCar",[Xt]:"Van",[Zt]:"MotorCaravan",[en]:"Moped",[tn]:"Motorcycle",[nn]:"Snowmobile",[an]:"QuadBike",[ln]:"LightTrailer",[on]:"CaravanTrailer",[rn]:"Tractor"},dn=[Qt,Xt,Zt,tn],un=[Qt,Xt,Zt,tn];var gn=n(5266),mn=n(6172);const pn={[Qt]:17,[Xt]:17,[Zt]:17,[en]:15,[tn]:16,[nn]:15,[an]:15,[ln]:17,[on]:17,[rn]:15},vn=(e,t)=>/^[A-Za-zÄÅÖäåö]{1,3}-?\d{1,3}$/.test(e)||/^\d{1,3}-?[A-Za-zÄÅÖäåö]{1,3}$/.test(e)||t,hn=(e,t,n,a,l,o)=>
6{const i=mn.i.validate(e);if(!i)return n;const r=e.slice(0,-1).slice(-3);if("001"===r||"000"===r)return n;const c=(e=>{const t=e.substring(0,2),n=e.substring(2,4),a=e.substring(4,6),l=e.charAt(6);let o;if("+"===l)o="18";else if(["-","Y","X","W","V","U"].includes(l))o="19";else{if(!["A","B","C","D","E","F"].includes(l))return console.error("Cannot determine birth date from SSN"),!1;o="20"}return new Date(`${o+a}-${n}-${t}`)})(e);if(!c)return n;const s=t&&pn[t],d=((e,t)=>{const n=new Date,a=n.getFullYear()-t,l=n.getMonth(),o=n.getDate();return e.getFullYear()<a||e.getFullYear()===a&&e.getMonth()<l||e.getFullYear()===a&&e.getMonth()===l&&e.getDate()<=o})(c,s);if(!d){if(17===s)return o;if(16===s)return l;if(15===s)return a}return null!=i?i:n},fn=u.styled.form.withConfig({displayName:"VehicleInsuranceCalculator__StyledForm",componentId:"sc-1cz8nt4-0"})(["@media ","{width:100%;}"],(0,h._n)(s._h7)),bn=u.styled.div.withConfig({displayName:"VehicleInsuranceCalculator__ContentWrapper",componentId:"sc-1cz8nt4-1"})(["position:relative;display:flex;gap:",";@media ","{flex-direction:column;gap:",";}"],s.Sjf,(0,h._n)(s._h7),s.isx),yn=u.styled.div.withConfig({displayName:"VehicleInsuranceCalculator__ButtonWrapper",componentId:"sc-1cz8nt4-2"})(["display:flex;flex-direction:column;white-space:nowrap;margin-top:",";@media ","{margin-top:40px;}"],s.isx,(0,h._n)(s.iqz)),Cn=u.styled.div.withConfig({displayName:"VehicleInsuranceCalculator__ConsentContentWrapper",componentId:"sc-1cz8nt4-3"})(["max-width:500px;text-align:left;"]),xn=u.styled.div.withConfig({displayName:"VehicleInsuranceCalculator__ConsentDuetAlertWrapper",componentId:"sc-1cz8nt4-4"})(["margin-top:20px;"]),En=u.styled.div.withConfig({displayName:"VehicleInsuranceCalculator__ButtonWrapperOwnLine",componentId:"sc-1cz8nt4-5"})(["display:flex;flex-direction:column;white-space:nowrap;@media ","{float:inline-start;}"],(0,h._n)(s.iqz)),kn=u.styled.div.withConfig({displayName:"VehicleInsuranceCalculator__InfoTextWrapper",componentId:"sc-1cz8nt4-6"})(["max-width:500px;margin-top:",";"],s.Sjf),In=e=>null==e?void 0:e.replace(/\s+/g,"").toUpperCase(),Ln=(e,t,n)=>!(e&&(!t||0===t.length))||(null!=n?n:"Pakollinen");var wn=(0,i.A)((e=>{var t,n,a,i,r,c;const s=(0,h.Tn)()?un:dn,d=l.useMemo((()=>function(e,t){var n;let a=!1;var l;null!==(n=e.vehicleType)&&void 0!==n&&n.coverableId&&(a=t.includes(null===(l=e.vehicleType)||void 0===l?void 0:l.coverableId));return a}(e,s)),[s,e]),{control:u,handleSubmit:g,formState:p}=(0,Pt.mN)({mode:"onTouched",defaultValues:{registrationNumber:"",ssn:"",consentCheckbox:[]}}),v=l.useRef(null),f=l.useRef(null),b=l.useRef(null),y=l.useRef(null),C=(0,P.CZ)(),x=l.useCallback(((t,n)=>{var a;(null==n?void 0:n.target).onformdata=e=>{e.formData.delete("consentCheckbox")},C({linkName:e.buttonAnalyticsKey},{},Y.IF,e.marketingTags),null===(a=v.current)||void 0===a||a.submit()}),[C,e.buttonAnalyticsKey,e.marketingTags]),E=e.paramsReceiverUrl,k=l.useCallback((e=>{"input"===e.target.localName&&"Enter"===e.key&&e.preventDefault()}),[]),L=e.consentModalHeading,w="turva"!==e.theme?"primary":"primary-turva",[A,S]=l.useState(!1),T=l.useCallback((()=>{S(!1)}),[]);return l.createElement(fn,{ref:v,onSubmit:g(x,(e=>{var t,n,a,l,o,i,r;if(null!==(t=e.registrationNumber)&&void 0!==t&&t.message&&""!==(null===(n=e.registrationNumber)||void 0===n?void 0:n.message))null==f||null===(r=f.current)||void 0===r||r.setFocus();else if(null!==(a=e.ssn)&&void 0!==a&&a.message&&""!==(null===(l=e.ssn)||void 0===l?void 0:l.message)){var c;null==b||null===(c=b.current)||void 0===c||c.setFocus()}else if(d&&null!==(o=e.consentCheckbox)&&void 0!==o&&o.message&&""!==(null===(i=e.consentCheckbox)||void 0===i?void 0:i.message)){var s;null==y||null===(s=y.current)||void 0===s||s.setFocus()}})),"aria-label":`${e.formAccessibleLabel} - ${null===(t=e.vehicleType)||void 0===t?void 0:t.title}`,"data-testid":"vehicle-insurance-calculator",action:E,method:"post",noValidate:!0},l.createElement(bn,null,l.createElement(Ft.A,{name:"registrationNumber",inputRef:f,control:u,maxLength:7,debounce:20,isFormDirty:p.isDirty,currentErrorMessage:(null===(n=p.errors.registrationNumber)||void 0===n?void 0:n.message)||"",tooltipText:e.tooltipTextRegNumber,transformInputValue:In,inputLabel:e.labelRegNumber,disallowPattern:"[^\\da-zA-ZÄäÅåÖö-]",validateArgs:[e.validationErrorRegNumber],validateFunction:vn,testId:e.labelRegNumber,className:"vehicle-insurance-calculator-input",onKeyDown:k,autoComplete:"off",required:!0}),l.createElement(Ft.A,{name:"ssn",inputRef:b,control:u,maxLength:11,debounce:20,isFormDirty:p.isDirty,currentErrorMessage:(null===(a=p.errors.ssn)||void 0===a?void 0:a.message)||"",tooltipText:e.tooltipTextSSN,transformInputValue:In,inputLabel:e.labelSSN,disallowPattern:"[^-+A-Fa-fHhJ-Nj-nPpR-Yr-y\\d]",validateArgs:[null===(i=e.vehicleType)||void 0===i?void 0:i.coverableId,e.validationErrorSSNFormat,e.validationErrorSSNMinAge15,e.validationErrorSSNMinAge16,e.validationErrorSSNMinAge17],validateFunction:hn,testId:e.labelSSN,className:"vehicle-insurance-calculator-input",onKeyDown:k,autoComplete:"off",required:!0}),e.hiddenAccessableText&&!d?l.createElement(o.YF,null,e.hiddenAccessableText):null,e.buttonLabel&&!d?l.createElement(yn,null,e.children):null),d?l.createElement(Cn,null,l.createElement(o.HO,{label:"",theme:e.theme,error:(null===(r=p.errors.consentCheckbox)||void 0===r?void 0:r.message)||"",className:"consentFieldset"},l.createElement(o.zQ,{direction:"horizontal"},l.createElement(o.c1,{margin:"none"},l.createElement(Pt.xI,{name:"consentCheckbox",control:u,defaultValue:[],rules:{validate:t=>Ln(!0,t,e.consentErrorMessage)},render:t=>{var n;let{field:{onBlur:a,onChange:i}}=t;return l.createElement(o.ks,{ref:y,onDuetChange:e=>i(e.target.checked),onDuetBlur:p.isDirty?a:void 0,onBlur:p.isDirty?a:void 0,required:!0,label:`${e.consentCheckboxLabel} ${e.consentCheckboxLabelLinkText}`,"label-hidden":!0,error:(null===(n=p.errors.consentCheckbox)||void 0===n?void 0:n.message)||"",theme:e.theme})}})),l.createElement(o.c1,{fill:!0,margin:"none"},l.createElement(o.vC,{margin:"none"},`${e.consentCheckboxLabel} `,l.createElement(o.hD,{onClick:e=>{e.preventDefault(),S(!0)},url:"",theme:e.theme}
6,e.consentCheckboxLabelLinkText))))),l.createElement(xn,null,null!==(c=p.errors.consentCheckbox)&&void 0!==c&&c.message?l.createElement(gn.A,{variation:"default",announcements:!1,theme:e.theme},e.consentAdditionalInfo?l.createElement(m.A,Object.assign({},e.consentAdditionalInfo,{childrenContentfulRichTextStyleJsonNode:[]})):null):null),e.hiddenAccessableText?l.createElement(o.YF,null,e.hiddenAccessableText):null,e.buttonLabel?l.createElement(En,null,e.children):null,l.createElement(o._e,{active:A,onDuetClose:T,theme:e.theme},l.createElement("div",{className:"duet-text-center"},l.createElement(G.A,{name:"messaging-info",size:"xx-large",color:w}),l.createElement(K.A,{level:"h3",visualLevel:"h2"},L),e.consentModalBodyText?l.createElement(m.A,Object.assign({},e.consentModalBodyText,{childrenContentfulRichTextStyleJsonNode:[]})):null,l.createElement(o.XG,{variation:"primary",submit:!0,theme:e.theme,onClick:T},e.consentModalCloseButtonText))),l.createElement(I,null)):null,e.infoText?l.createElement(kn,null,l.createElement(m.A,Object.assign({},e.infoText,{childrenContentfulRichTextStyleJsonNode:[{screen:"all",textAlignment:"left"}]}))):null,e.vehicleTypeForSubmission?l.createElement("input",{name:"registrationType",value:e.vehicleTypeForSubmission,type:"hidden","data-testid":"vic-registration-type"}):null,l.createElement("input",{name:"language",value:e.locale,type:"hidden","data-testid":"vic-language"}),l.createElement("input",{name:"callbackUrl",value:e.currentUrl,type:"hidden","data-testid":"vic-callback-url"}),l.createElement("input",{name:"applicationId",value:"MOTOR",type:"hidden","data-testid":"vic-application-id"}))}));var An=e=>{var t,n,a,o,i,r,c,s;const d=l.useContext(_e.A),u=(0,Y.bh)(null===(t=e.submitButton)||void 0===t?void 0:t.analyticsKey,g.S1J,null===(n=e.submitButton)||void 0===n?void 0:n.labelFinnish);if((null==d?void 0:d.node_locale)===g.RHJ||(null==d?void 0:d.node_locale)===g.pA3||(null==d?void 0:d.node_locale)===g.SVO)return null;let m="fi";(null==d?void 0:d.node_locale)!==g.hCU&&(null==d?void 0:d.node_locale)!==g.JR1&&(null==d?void 0:d.node_locale)!==g.ygE||(m=g.hCU);const p=(0,Fe.Lo)(null===(a=(0,Ct.r)())||void 0===a?void 0:a.pageContext.pagePath),v=(0,Fe.Bu)(e.paramsReceiverUrlSit,e.paramsReceiverUrlUat,e.paramsReceiverUrlProd),h=null!==(o=e.vehicleType)&&void 0!==o&&o.coverableId?sn[e.vehicleType.coverableId]:null;if(null===(i=e.vehicleType)||void 0===i||!i.coverableId||!cn.has(null===(r=e.vehicleType)||void 0===r?void 0:r.coverableId))return null;const f={...e.submitButton,label:null!==(c=null===(s=e.submitButton)||void 0===s?void 0:s.label)&&void 0!==c?c:e.buttonLabel};let b;return"vehicle.insurance.calculator.hidden.accessable.text.fi"!==e.hiddenAccessableTextFi&&m===g.$52&&(b=e.hiddenAccessableTextFi),"vehicle.insurance.calculator.hidden.accessable.text.sv"!==e.hiddenAccessableTextSv&&m===g.hCU&&(b=e.hiddenAccessableTextSv),l.createElement(wn,{vehicleType:e.vehicleType,vehicleTypeForSubmission:h,formAccessibleLabel:e.formAccessibleLabel,buttonAnalyticsKey:u,buttonLabel:f.label,hiddenAccessableText:b,validationErrorRegNumber:e.validationErrorRegNumber,validationErrorSSNFormat:e.validationErrorSSNFormat,validationErrorSSNMinAge15:e.validationErrorSSNMinAge15,validationErrorSSNMinAge16:e.validationErrorSSNMinAge16,validationErrorSSNMinAge17:e.validationErrorSSNMinAge17,tooltipTextSSN:e.tooltipTextSSN,labelSSN:e.labelSSN,tooltipTextRegNumber:e.tooltipTextRegNumber,labelRegNumber:e.labelRegNumber,infoText:e.infoText,locale:m,currentUrl:p,paramsReceiverUrl:v,marketingTags:e.marketingTags,consentCheckboxLabel:e.consentCheckboxLabel,consentCheckboxLabelLinkText:e.consentCheckboxLabelLinkText,consentErrorMessage:e.consentErrorMessage,consentAdditionalInfo:e.consentAdditionalInfo,consentModalHeading:e.consentModalHeading,consentModalBodyText:e.consentModalBodyText,consentModalCloseButtonText:e.consentModalCloseButtonText},l.createElement(q.A,Object.assign({childrenContentfulButtonStyleJsonNode:[],submit:!0,variation:"primary",margin:"auto",parentComponent:g.S1J},f,{dataLinkUrl:v})))};const Sn=e=>l.createElement(o.VD,{theme:e.theme,description:e.description,image:e.image,"category-icon":e.icon,variation:e.variation,textCenter:e.textCenter,layout:e.layout,id:e.id,"image-alt":e.imageAltText},e.children);var Pn=l.memo(Sn);const Tn=g.YG4,_n=u.styled.div.withConfig({displayName:"NewHero__ContentWrapper",componentId:"sc-7amt7g-0"})(["display:flex;gap:",";flex-wrap:wrap;flex-direction:row;justify-content:center;@media ","{justify-content:",";}"],s.Sjf,(0,h._n)(s.GOF),(e=>e.$variation===g.YG4||e.$variation===g.X0W||e.$textCenter?"center":"inherit")),Nn=u.styled.div.withConfig({displayName:"NewHero__AppContainer",componentId:"sc-7amt7g-1"})(["",""],(e=>e.variation===g.YG4&&u.css`
7      display: flex;
8      justify-content: center;
9    `)),$n=e=>e===g.h$u?g.hzt:g.GZ4,Dn=e=>{var t,n,a,o,i;let{...r}=e;const c=function(e){return void 0===e&&(e=Tn),e!==g.naV?e:g.DX2}(r.variation);let s=null!==(t=r.heading)&&void 0!==t&&t.heading?(0,h.G6)(r.heading.heading):"";c===g.YG4&&r.campaignHeading&&(s=(0,h.G6)(r.campaignHeading));const d=null!==(n=r.subheading)&&void 0!==n&&n.subheading?(0,h.G6)(r.subheading.subheading):void 0,u=null!==(a=null===(o=r.ingress)||void 0===o?void 0:o.ingress)&&void 0!==a?a:"",m=c===g.DX2,p=r.variation===g.naV,v=l.useMemo((()=>p&&!r.textCenterWithImage||!r.imageUrl?"":(0,Fe.k6)(r.imageUrl)),[r.imageUrl,p,r.textCenterWithImage]),f=null!==(i=r.icon)&&void 0!==i?i:"",b=m?"plain":"primary",y=m?"plain":"default",C=m?"right":void 0;let x;m&&!r.noArrowIcon&&(x="action-arrow-right-small");const E=l.useContext(_e.A);let k=r.imageAltText;var I,L;(null==E?void 0:E.node_locale)!==g.hCU&&(null==E?void 0:E.node_locale)!==g.JR1&&(null==E?void 0:E.node_locale)!==g.ygE||(k=null!==(I=r.imageAltTextSv)&&void 0!==I?I:"");(null==E?void 0:E.node_locale)!==g.RHJ&&(null==E?void 0:E.node_locale)!==g.pA3&&(null==E?void 0:E.node_locale)!==g.SVO||(k=null!==(L=r.imageAltTextEn)&&void 0!==L?L:"");return l.createElement(Pn,{description:u,variation:c,image:v,icon:f,theme:r.theme,textCenter:p,layout:$n(c),id:`hero-${r.contentful_id}`,imageAltText:k},s?l.createElement("h1",{className:"duet-heading",slot:"heading"},s):null,d?l.createElement("h2",{className:"duet-heading",slot:"subheading"},d):null,l.createElement(_n,{$variation:c,$textCenter:p},r.content?r.content.map(((e,t)=>{var n,a;switch(null===(n=e.internal)||void 0===n?void 0:n.type){case g.$Xw:{const t=e;return l.createElement(Bt.A,{key:t.contentful_id,links:t.links,button:t.button,contentful_id:t.contentful_id,internal:t.internal})}case g.sx5:return l.createElement(Nn,{key:`hero-app-content-${t}`,variation:c},l.createElement(Mt.A,{component:e}));case g.wpH:{const t=e;return l.createElement(Rt,Object.assign({key:t.contentful_id},t))}case g.AI7:{const t=e;return St.A.isVehicleCalculatorEnabled?l.createElement(An,Object.assign({key:t.contentful_id},t)):null}case g.lXQ:{const t=e;return l.createElement(Wt,Object.assign({key:t.contentful_id},t))}case g.hqe:if(St.A.isLifeButtonEnabled){const t=e;return l.createElement(qt.A,Object.assign({parentComponent:g.S1J,key:t.contentful_id},t))}return null;case g.rK6:if(St.A.isLifeFormEnabled&&!(0,h.Tn)()){const t=e;return l.createElement(Yt.A,Object.assign({key:t.contentful_id},t))}if(St.A.isLifeFormTurvaEnabled&&(0,h.Tn)()){const t=e;return l.createElement(Yt.A,Object.assign({key:t.contentful_id},t))}return null}const o=e,i=[{screen:"all",iconPosition:C}];return l.createElement(q.A,Object.assign({},o,{key:`hero-cta-button-${t}`,variation:null!==(a=r.buttonVariation)&&void 0!==a?a:0===t?b:y,icon:x,childrenContentfulButtonStyleJsonNode:i,parentComponent:g.S1J,theme:r.theme},r.useRegularNavigation?{useRegularNavigation:r.useRegularNavigation}:{}))})):null))};var Rn=(0,i.A)(l.memo(Dn)),Mn=n(9408),Bn=n(2006);var Fn=e=>{var t,n,a,o,i,r,c,s,d,u,g,m;const{width:p,height:v}=l.useMemo((()=>{var t,n;return((e,t,n,a)=>
9{if(!e||e<=n||!t||t<=a)return{width:e,height:t};const l=t/e;let o=e,i=t;return e>n&&(o=n,i=o*l),i<a&&(i=a,o=i/l),{width:o,height:i}})(null===(t=e.backgroundImage)||void 0===t?void 0:t.width,null===(n=e.backgroundImage)||void 0===n?void 0:n.height,1600,580)}),[null===(t=e.backgroundImage)||void 0===t?void 0:t.height,null===(n=e.backgroundImage)||void 0===n?void 0:n.width]),h=(0,Bn.A)(null===(a=e.backgroundImage)||void 0===a||null===(o=a.file)||void 0===o?void 0:o.url,p,v),f="product"===e.variation||"content"===e.variation?null===(i=e.backgroundImage)||void 0===i||null===(r=i.lowQualityImage)||void 0===r||null===(c=r.images)||void 0===c||null===(s=c.fallback)||void 0===s?void 0:s.src:null===(d=e.backgroundImage)||void 0===d||null===(u=d.gatsbyImageData)||void 0===u||null===(g=u.images)||void 0===g||null===(m=g.fallback)||void 0===m?void 0:m.src;return l.createElement(Mn.m,{heroContentfulId:e.contentful_id},l.createElement(Rn,Object.assign({},e,{imageUrl:null!=f?f:h})))};var Un=n(9793),zn=n(6762);var On=function(e){let{initialInView:t=!1,options:n={}}=void 0===e?{}:e;const{0:a,1:o}=(0,l.useState)(t),i=(0,l.useRef)(),r=e=>{for(const t of e){const e=t.intersectionRatio>0;o(e)}};return(0,l.useEffect)((()=>{if(!i.current)return;const e=new IntersectionObserver(r,n||{});return e.observe(i.current),()=>{e.disconnect&&e.disconnect()}}),[n]),{ref:i,inView:a}},jn=n(6097),Hn=n(9229),Jn=n(9533);const Kn=(e,t,n)=>{var a;(null!==(a=t.split("/?")[0])&&void 0!==a?a:t)===`#${n}`&&(e.setAttribute("tabIndex","-1"),(0,Jn.O)(e))};var Gn=n(6733);const Vn=u.styled.div.withConfig({displayName:"ScriptPlaceholder__ScriptContainer",componentId:"sc-11tq2t7-0"})(["height:",";width:",";overflow:",";display:flex;justify-content:center;align-items:center;"],(e=>{var t;return null!==(t=e.height)&&void 0!==t?t:"500px"}),(e=>e.width?(0,Gn.zx)(e.width):(0,Gn.zx)("col-12")),(e=>{var t;return null!==(t=e.overflow)&&void 0!==t?t:"auto"})),Wn=u.styled.div.withConfig({displayName:"ScriptPlaceholder__Spinner",componentId:"sc-11tq2t7-1"})(["border:10px solid #f3f3f3;border-radius:50%;border-top:10px solid #3498db;width:70px;height:70px;-webkit-animation:spin 2s linear infinite;animation:spin 1s linear infinite;@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);}}@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"]);var qn=(0,i.A)((e=>{let{id:t,className:n,style:a}=e;return l.createElement(Vn,{id:t,className:n,width:null==a?void 0:a.width,height:null==a?void 0:a.height,overflow:null==a?void 0:a.overflow},l.createElement(Wn,null))}));var Yn=e=>{let{id:t,className:n,...a}=e;const o=(0,jn.A)(a.childrenContentfulScriptPlaceholderStyleJsonNode);return l.createElement(qn,{id:t,className:n,style:o})},Qn=n(9578);const Xn=(0,u.styled)(Qn.A).withConfig({displayName:"Subsection__Container",componentId:"sc-1kn6pm7-0"})(["padding:0 ","px !important;margin-bottom:30px !important;scroll-margin-top:",";display:",";"," @media (max-width:62em){","}"," "," ",""],g.Tn8,s.WX9,(e=>"true"===e.$isHidden?"none":"flex"),(e=>e.$hasLifeForm&&u.css`
10      align-items: ${(e=>(0,Gn.J6)(e.distribution||"center"))({distribution:e.$distribution})};
11    `),(e=>e.$hasPromoCard&&u.css`
12        width: 100%;
13      `),(e=>e.$hasBannerNew&&u.css`
14      align-self: stretch;
15    `),(e=>e.$hasBannerNewInFlexibleContainer&&u.css`
16      align-self: stretch;
17      .flexible-container {
18        height: 100%;
19      }
20    `),(e=>e.$hasVideo&&u.css`
21      justify-content: flex-start;
22    `));var Zn=(0,i.A)((e=>{var t;let{forwardedRef:n,...a}=e;const{distribution:o,width:i,hidden:r}=null!==(t=a.newStyle)&&void 0!==t?t:{};return l.createElement(Xn,Object.assign({$distribution:o,$width:i,$isHidden:r,$hasPromoCard:a.hasPromoCard,$hasBannerNew:a.hasBannerNew,$hasBannerNewInFlexibleContainer:a.hasBannerNewInFlexibleContainer,$hasLifeForm:a.hasLifeForm,$hasVideo:a.hasVideo},a.isSectionComponent?{}:{id:a.subsectionId,ref:n},{"data-testid":"subsection"}),a.children)}));const ea={rootHeadingLevel:"h2"};var ta=l.createContext(ea),na=n(3458),aa=n(4905);var la=e=>{var t,n,a,i,r,c;const s=null===(t=e.components)||void 0===t?void 0:t.some((e=>{var t;return"ContentfulPromotionalCard"===(null===(t=e.internal)||void 0===t?void 0:t.type)})),d=null===(n=e.components)||void 0===n?void 0:n.some((e=>{var t;return"ContentfulBannerNew"===(null===(t=e.internal)||void 0===t?void 0:t.type)})),u=null===(a=e.components)||void 0===a?void 0:a.some((e=>{var t;return(null===(t=e.internal)||void 0===t?void 0:t.type)===g.rK6})),m=null!==(i=null===(r=e.components)||void 0===r?void 0:r.some((e=>{var t,n;return"ContentfulFlexibleContainer"===(null===(t=e.internal)||void 0===t?void 0:t.type)&&(null===(n=e.items)||void 0===n?void 0:n.some((e=>{var t;return"ContentfulBannerNew"===(null===(t=e.internal)||void 0===t?void 0:t.type)})))}
22)))&&void 0!==i&&i,p=null===(c=e.components)||void 0===c?void 0:c.some((e=>{var t;return(null===(t=e.internal)||void 0===t?void 0:t.type)===g.ZMs})),v=(0,jn.A)(e.childrenContentfulSubsectionNewStyleJsonNode,!0),h=(0,k.wA)(),{ref:f,inView:b}=On({options:{rootMargin:"-32px 0px -250px 0px"}}),y=(0,W.A)(),C=e.subsectionId||`subsection-${e.contentful_id}`;l.useEffect((()=>{if(f.current){const e=f.current.getAttribute("id");e&&h(b?(0,Re.Mr)(e):(0,Re.$w)(e))}}),[b,h,f]),l.useEffect((()=>{if(y){const e=window.location.hash;f.current&&Kn(f.current,e,C)}}),[f,C,y]);const x=l.useMemo((()=>({rootHeadingLevel:"h2"})),[]);return l.createElement(Zn,Object.assign({},e,{newStyle:v,subsectionId:C,forwardedRef:f,hasPromoCard:s,hasBannerNew:d,hasBannerNewInFlexibleContainer:m,hasLifeForm:u,hasVideo:p}),e.subsectionHeading?l.createElement(aa.A,e.subsectionHeading):null,l.createElement(ta.Provider,{value:x},e.components?e.components.map(((t,n)=>{var a;return l.createElement(l.Fragment,{key:`component-${n}`},l.createElement(na.A,{component:t}),e.components&&n<(null===(a=e.components)||void 0===a?void 0:a.length)-1?l.createElement(o.P6,{size:"x-large"}):null)})):null,e.children))};const oa=u.styled.section.withConfig({displayName:"Section__Container",componentId:"sc-1cvfwj0-0"})(["scroll-margin-top:",";",""],s.GYs,(e=>e.$isSectionComponent&&u.css`
23      width: 100%;
24    `)),ia=u.styled.div.withConfig({displayName:"Section__SectionHeader",componentId:"sc-1cvfwj0-1"})(["text-align:center;margin:auto;max-width:1110px;"]),ra=u.styled.div.withConfig({displayName:"Section__SubsectionList",componentId:"sc-1cvfwj0-2"})(["margin:auto !important;max-width:1110px !important;display:flex;justify-content:center;flex-wrap:wrap;"]);function ca(e){var t,n,a;if(null!==(t=(0,Ct.r)())&&void 0!==t&&null!==(n=t.pageContext)&&void 0!==n&&n.officeInformation)return!0;const l=new Set(["Collapsible","Link"]);return null==e||null===(a=e[0])||void 0===a?void 0:a.some((e=>{var t,n,a,o,i,r;return(null==e||null===(t=e.props)||void 0===t||null===(n=t.components)||void 0===n||null===(a=n[0])||void 0===a?void 0:a.type)&&l.has(null==e||null===(o=e.props)||void 0===o||null===(i=o.components)||void 0===i||null===(r=i[0])||void 0===r?void 0:r.type)}))}var sa=(0,i.A)((e=>{var t,n,a,i,r,c,s,d;let{textColor:u,backgroundColor:g,...m}=e;const p=m.heading||m.subheading,v=null!==(t=null===(n=m.style)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:g;return l.createElement(oa,{className:`duet-background-${v}`,id:m.id,ref:m.forwardedRef,"data-testid":"section",$isSectionComponent:m.isSectionComponent},l.createElement(o.P6,{size:"xxxx-large"}),p?l.createElement(ia,null,m.heading?l.createElement(K.A,{level:null!==(a=m.headingLevel)&&void 0!==a?a:"h2",color:null!==(i=null===(r=m.style)||void 0===r?void 0:r.headingColor)&&void 0!==i?i:u},(0,h.G6)(m.heading)):null,m.subheading?l.createElement(K.A,{level:null!==(c=m.subheadingLevel)&&void 0!==c?c:"h3",color:null!==(s=null===(d=m.style)||void 0===d?void 0:d.subheadingColor)&&void 0!==s?s:u},(0,h.G6)(m.subheading)):null,l.createElement(o.P6,{size:"large"})):null,l.createElement(ra,{$isSectionComponent:m.isSectionComponent,style:{alignItems:ca(m.children)?"flex-start":"stretch"}},m.children?l.Children.map(m.children,(e=>{const t=e;return t?l.cloneElement(t,{headingLevel:p?"h3":"h2"}):null})):null),l.createElement(o.P6,{size:"xxxx-large"}))}));var da=l.forwardRef((function(e,t){return l.createElement(sa,Object.assign({},e,{forwardedRef:t,textColor:e.textColor,backgroundColor:e.backgroundColor,headingLevel:e.headingLevel,subheadingLevel:e.subheadingLevel,isSectionComponent:e.isSectionComponent}),e.children)}));var ua=e=>{const{ref:t,inView:n}=On({options:{rootMargin:"-32px 0px -250px 0px"}}),a=(0,jn.A)(e.childrenContentfulSectionStyleJsonNode),{textColor:o,backgroundColor:i}=(0,zn.A)(),r=(0,k.wA)(),c=(0,W.A)(),s=(0,Hn.l)("h2",null==a?void 0:a.headingLevel),d=(0,Hn.d)(s),u=e.sectionId||`section-${e.contentful_id}`,g=l.useMemo((()=>({backgroundColor:(null==a?void 0:a.backgroundColor)||"gray-lightest",contentfulId:e.contentful_id||""})),[e.contentful_id,null==a?void 0:a.backgroundColor]);return l.useEffect((()=>
24{if(t.current){const e=t.current.getAttribute("id"),a=n?Re.Mr:Re.$w;r(a(e))}}),[t,n,r]),l.useEffect((()=>{if(c){const e=window.location.hash;t.current&&Kn(t.current,e,u)}}),[t,u,c]),l.createElement(Un.A.Provider,{value:g},l.createElement(da,Object.assign({},e,{textColor:o,backgroundColor:i,headingLevel:s,subheadingLevel:d,style:a,id:u,ref:t}),e.body?e.body.map(((e,t)=>{var n;return"ContentfulScriptPlaceholder"===(null===(n=e.internal)||void 0===n?void 0:n.type)?l.createElement(Yn,Object.assign({key:`script-placeholder-${t}`,id:e.id,className:e.className},e)):l.createElement(la,Object.assign({key:`subsection-${t}`},e))})):null,e.children))},ga=n(8036);var ma=(e,t,n)=>{var a,l,o,i,r,c,s,d,u,m,p,v,f;let{pageContext:b}=t;const{metadata:y,canonicalPage:C,pageType:x,updatedAt:E,paginationIdentifier:k,content:I,productPageAnalyticsData:L}=e,w={targetProductId:(null==y?void 0:y.targetProductId)||void 0,targetProductCategory:(null==y?void 0:y.targetProductCategory)||void 0},A={...b,targetProps:w};let S,P;(0,Ct.j)({pageContext:A});if(((0,h.Bd)()?(0,h.bp)():"")!==tt.s.getPrevLocation()){const e={productCategory:tt.s.getProductCategory(),productId:tt.s.getProductId()};T=e,tt.s.setSourceProductCategory(null!==(_=T.productCategory)&&void 0!==_?_:""),tt.s.setSourceProductId(null!==(N=T.productId)&&void 0!==N?N:""),(()=>{var e,t,n,a,l,o;const i=(0,Ct.r)();tt.s.setProductCategory(null!==(e=null==i||null===(t=i.pageContext)||void 0===t||null===(n=t.targetProps)||void 0===n?void 0:n.targetProductCategory)&&void 0!==e?e:""),tt.s.setProductId(null!==(a=null==i||null===(l=i.pageContext)||void 0===l||null===(o=l.targetProps)||void 0===o?void 0:o.targetProductId)&&void 0!==a?a:"")})()}var T,_,N;tt.s.isFirstDataLayerUpdatedEventDispatched()&&(S=tt.s.getSourceProductCategory(),P=tt.s.getSourceProductId());let $=[];if(null!=C&&C.nodes&&C.nodes.length>2){const e=C.nodes[1].path.replace("/","").split("/");$=[b.siteSections[0],...e]}const D=(null==b?void 0:b.siteSections)&&(0,Y.d1)($.length>0?$:null==b?void 0:b.siteSections),{targetArticleSlug:R,targetArticleTitle:M,targetArticlePublishDate:B,targetArticleCreationDate:F,targetArticleContentCategory:U,targetArticleThumbnail:z,targetArticleContentSubCategory:O,targetArticleContentRegionalCompany:j,targetArticleIntro:H,targetArticleType:J,targetCampaignId:K,targetCampaignSlug:G,targetCampaignTitle:V,targetCampaignActiveStatus:W,targetCampaignStartDate:q,targetCampaignEndDate:Q,targetCampaignIsPrimary:X,targetCampaignCustomerType:Z,targetCampaignIsPublic:ee,targetCampaignIsExclude:te,targetCampaignRegion:ne,targetCampaignDescription:ae,targetCampaignImageUrl:le,targetCampaignCtaButton:oe,targetCampaignProductCategory:ie,targetCampaignProductSubCategory:re,targetFundId:ce,targetFundRisk:se,targetFundCategory:de}=null!=y?y:{},ue=F?null==b?void 0:b.contentfulId:void 0,ge={ID:ue,slug:R,title:M,publishDate:B,contentCategory:U,thumbnailURL:z?(0,Fe.k6)(z):z,contentSubCategory:O,contentRegionalCompany:j,language:null==b?void 0:b.locale,intro:H,type:J,creationDate:F,URL:null==n||null===(a=n.origin)||void 0===a?void 0:a.concat("/").concat(null==b?void 0:b.pagePath),name:M},me={id:ce,risk:se}
24,pe={id:K,slug:G,imageUrl:le?(0,Fe.k6)(le):le,headingText:V,ctaButton:oe,url:null==n||null===(l=n.origin)||void 0===l?void 0:l.concat("/").concat(null==b?void 0:b.pagePath),description:ae,region:ne,status:W?"active":"inactive",productSubCategory:re,productCategory:ie,isPrimaryOffer:X,startDate:q,endDate:Q,customerType:Z,isPublic:ee,isExclude:te},ve=null!==(o=D&&D[D.length-1])&&void 0!==o?o:"",he=(0,ga.VG)(),fe=k===g.BDR||k===g.NMF||k===g.IQz,be=(null==I||null===(i=I[0])||void 0===i||null===(r=i.body)||void 0===r||null===(c=r[0])||void 0===c||null===(s=c.components)||void 0===s||null===(d=s[0])||void 0===d?void 0:d.component)===g.LkL,ye=(null==L?void 0:L.productCategory)||(null==y?void 0:y.targetProductCategory)||void 0;let Ce,xe=null;return fe&&(xe=g.vwx),be&&(xe=g._FP),x===Y.qW&&(Ce={productCategories:null==de?void 0:de[0].analyticsKey,products:ce,rate:se}),{dataLayerProps:{applicationName:null==b||null===(u=b.domain)||void 0===u?void 0:u.applicationName,article:x===g.f_H&&ue?ge:void 0,offer:"kampanja"===x?pe:void 0,fund:x===Y.qW?me:void 0,authenticate:"open",businessRegion:he?he.region_analytics_key:"",categoryAffinity:"vakuutustuote"===x?b.categoryAffinity:void 0,contentCategory:(null==y?void 0:y.targetContentCategory)||void 0,contentSubCategory:(null==y?void 0:y.targetContentSubcategory)||void 0,channel:b.segment.analyticsKey,contentRegionalCompany:(null==y?void 0:y.targetContentRegionalCompany)||void 0,language:b.locale,pageDate:E,pageThumbnail:(null==y||null===(m=y.seoPageThumbnail)||void 0===m||null===(p=m.file)||void 0===p?void 0:p.url)||void 0,pageTitle:null!==(v=b.siteSections[b.siteSections.length-1])&&void 0!==v?v:"",pageName:ve,pageType:null!==(f=xe)&&void 0!==f?f:x,pageURL:n.href,siteSections:D,website:n.origin,productID:(null==L?void 0:L.productId)||(null==y?void 0:y.targetProductId)||void 0,productCategory:ye,turvaUniMember:(null==y?void 0:y.targetTurvaUniMember)||void 0,sourceProductCategory:S||void 0,sourceProductId:P||void 0,product:(null==L?void 0:L.product)||Ce||void 0,form:b.form}}};var pa=e=>{try{const t={applicationName:e.applicationName,authenticate:e.authenticate,channel:e.channel,language:e.language,pageDate:e.pageDate,pageName:e.pageName,pageTitle:e.pageTitle,pageType:e.pageType,pageURL:e.pageURL,website:e.website,sourceProductCategory:""!==e.sourceProductCategory?e.sourceProductCategory:void 0,sourceProductId:""!==e.sourceProductId?e.sourceProductId:void 0,product:e.product};e.article&&Object.assign(t,{article:e.article}),e.offer&&Object.assign(t,{offer:e.offer}),e.fund&&Object.assign(t,{fund:e.fund}),e.businessRegion&&Object.assign(t,{businessRegion:e.businessRegion}),e.categoryAffinity&&"undefined"!==e.categoryAffinity&&Object.assign(t,{categoryAffinity:e.categoryAffinity}),e.contentCategory&&Object.assign(t,{contentCategory:e.contentCategory}),e.contentSubCategory&&Object.assign(t,{contentSubCategory:e.contentSubCategory}),e.contentRegionalCompany&&Object.assign(t,{contentRegionalCompany:e.contentRegionalCompany}),e.pageThumbnail&&Object.assign(t,{pageThumbnail:e.pageThumbnail}),e.productID&&Object.assign(t,{productID:e.productID}),e.productCategory&&Object.assign(t,{productCategory:e.productCategory}),e.turvaUniMember&&Object.assign(t,{turvaUniMember:e.turvaUniMember});for(const[i,r]of e.siteSections.entries())t[`siteSection${i+1}`]=r;const n={};let a={};const l={};if(e.pageType===Y.U5&&e.form){a={name:e.productID?`${Y.R}_${e.productID}_${e.productCategory}`:`${Y.R}_${e.productCategory}`,type:Y.Tg}}const o={page:t,link:n,form:a,calculator:l};if((0,h.Bd)()){tt.s.setFirstDataLayerUpdatedEventDispatched(!1),window.digitalData={...window.digitalData,...o};const e=(0,Me.Me)(Me.hx.DIGITAL_DATA_POPULATED);(0,Me.UY)(e)}}catch(t){console.error(t)}};var va=e=>{l.useEffect((()=>{pa(e)}),[])};var ha=e=>{let{data:t,pageContext:n}=e;const{externalPage:a,externalPageTree:o}=t,i=a.heading?{heading:a.heading}:null,r=a.subheading?{ingress:a.subheading.subheading}:null,{municipalities:c,contactRegions:s,resources:d,finnishMunicipalities:u}=o,m=(0,bt.useLocation)();a.pageType="kampanjat-ohjaussivu";const{dataLayerProps:p}=ma(a,{pageContext:n},m);va(p);const v={internal:{type:"ContentfulApplication"},type:"Region Selector",childContentfulApplicationInputJsonNode:{target:"campaign"},municipalities:c,contactRegions:s,resources:d,finnishMunicipalities:u};return l.createElement(l.Fragment,null,l.createElement(Fn,{heading:i,subheading:null,ingress:r,variation:g.DX2,content:[v]}),l.createElement(ua,{contentful_id:a.contentful_id},l.createElement(la,{contentful_id:a.contentful_id},l.createElement(At,{externalPage:a,bottomCards:n.bottomCards,locale:n.locale}))))},fa=n(7230),ba=n(4623);const ya="askew",Ca="basic",xa="basic-with-heading-on-top",Ea="askew-left",ka="turva-blob",Ia=u.styled.div.withConfig({displayName:"Hero__HeroContainer",componentId:"sc-1fcta7c-0"})(["",""],(e=>{switch(e.$heroStyle){case Ca:return u.css`
25          position: relative;
26          overflow: hidden;
27          display: flex;
28          justify-content: center;
29          padding-top: 36px;
30          @media ${(0,h._n)(s._h7)} {
31            padding-top: 20px;
32          }
33        `;case xa:return u.css`
34          position: relative;
35          overflow: hidden;
36          display: flex;
37          flex-direction: column;
38          justify-content: space-between;
39          padding: auto;
40          min-height: 570px;
41          @media ${(0,h._n)(s._h7)} {
42            min-height: 382px;
43          }
44        `;case ya:case Ea:return u.css`
45          position: relative;
46          overflow: hidden;
47          display: flex;
48          justify-content: center;
49          height: ${e.$heroStyle===ya?"640px":"600px"};
50          @media ${(0,h._n)(s._h7)} {
51            height: 450px;
52          }
53        `;case ka:return u.css`
54          position: relative;
55          display: flex;
56          justify-content: center;
57          height: 640px;
58          @media ${(0,h._n)(s._h7)} {
59            height: 250px;
60          }
61        `;default:return null}})),La=u.styled.div.withConfig({displayName:"Hero__HeaderContainer",componentId:"sc-1fcta7c-1"})(["",""],(e=>{switch(e.$heroStyle){case ya:return u.css`
62      height: auto;
63      text-align: center;
64      position: absolute;
65      top: ${e.$subheading?s.Ojl:"180px"};
66      display: flex;
67      flex-direction: column;
68      justify-content: center;
69      align-items: top;
70      @media ${(0,h._n)(s._h7)} {
71        top: ${e.$subheading?"32px":"74px"};
72      `;case xa:return u.css`
73      min-height: 210px;
74      margin: auto;
75      height: auto;
76      text-align: center;
77      display: flex;
78      flex-direction: column;
79      justify-content: center;
80      align-items: top;
81      @media ${(0,h._n)(s._h7)} {
82        top: ${e.$subheading?"32px":"74px"};
83      `;default:return null}})),wa=u.styled.div.withConfig({displayName:"Hero__ContentContainer",componentId:"sc-1fcta7c-2"})(["",""],(e=>{switch(e.$heroStyle){case Ca:return u.css`
84          position: relative;
85          background-color: white;
86          display: flex;
87          justify-content: center;
88          align-items: center;
89          margin: 0 ${s.Sjf};
90          padding: ${s.GYs};
91          text-align: center;
92          max-width: 773px;
93          min-height: 334px;
94          @media ${(0,h._n)(s._h7)} {
95            margin: 0 ${s.Sjf};
96            height: 470px;
97            min-width: 320px;
98          }
99          @media ${(0,h._n)(s.sDr)} {
100            margin: 0 ${s.isx};
101            height: 334px;
102            min-width: 200px;
103          }
104          @media ${(0,h._n)(s.iqz)} {
105            margin: 0 ${s.C3h};
106            height: 520px;
107            min-width: 400px;
108          }
109          @media ${(0,h._n)(s.M8k)} {
110            margin: auto;
111            height: 564px;
112            min-width: 600px;
113          }
114          -webkit-border-top-left-radius: 24px;
115          -webkit-border-top-right-radius: 24px;
116          -moz-border-radius-topleft: 24px;
117          -moz-border-radius-topright: 24px;
118          border-top-left-radius: 24px;
119          border-top-right-radius: 24px;
120          @media ${(0,h._n)(s.sDr)} {
121            -webkit-border-top-left-radius: 12px;
122            -webkit-border-top-right-radius: 12px;
123            -moz-border-radius-topleft: 12px;
124            -moz-border-radius-topright: 12px;
125            border-top-left-radius: 12px;
126            border-top-right-radius: 12px;
127          }
128        `;case xa:return u.css`
129          position: relative;
130          background-color: white;
131          display: flex;
132          justify-content: center;
133          align-items: center;
134          padding: ${s.GYs};
135          text-align: center;
136          max-width: 773px;
137          @media ${(0,h._n)(s._h7)} {
138            margin: 0 ${s.Sjf};
139          }
140          @media ${(0,h._n)(s.sDr)} {
141            margin: 0 ${s.isx};
142          }
143          @media ${(0,h._n)(s.iqz)} {
144            margin: 0 ${s.C3h};
145            padding: ${s.a2z};
146          }
147          @media ${(0,h._n)(s.M8k)} {
148            margin: 0 auto;
149            width: 100%;
150            padding: ${s.Ojl};
151          }
152          -webkit-border-top-left-radius: 24px;
153          -webkit-border-top-right-radius: 24px;
154          -moz-border-radius-topleft: 24px;
155          -moz-border-radius-topright: 24px;
156          border-top-left-radius: 24px;
157          border-top-right-radius: 24px;
158          @media ${(0,h._n)(s.sDr)} {
159            -webkit-border-top-left-radius: 12px;
160            -webkit-border-top-right-radius: 12px;
161            -moz-border-radius-topleft: 12px;
162            -moz-border-radius-topright: 12px;
163            border-top-left-radius: 12px;
164            border-top-right-radius: 12px;
165          }
166        `;case ya:case Ea:return u.css`
167          display: block;
168          position: absolute;
169          top: ${e.$heroStyle===Ea?"280px":"365px"};
170          left: 0;
171          right: 0;
172          background-color: white;
173          text-align: center;
174          padding: ${s.C3h};
175          -webkit-transform: rotate(10deg);
176          -moz--transform: rotate(10deg);
177          transform: rotate(10deg);
178          -webkit-border-top-left-radius: 90px;
179          -webkit-border-top-right-radius: 90px;
180          -moz-border-radius-topleft: 90px;
181          -moz-border-radius-topright: 90px;
182          border-top-left-radius: 90px;
183          border-top-right-radius: 90px;
184          max-width: 680px;
185          height: 520px;
186          margin-left: auto;
187          margin-right: auto;
188          @media ${(0,h._n)(s._h7)} {
189            top: 198px;
190            left: -20px;
191            padding-left: 25px;
192            padding-right: 0px;
193            margin-left: auto;
194            margin-right: auto;
195            -webkit-border-top-right-radius: 0px;
196            -moz-border-radius-topright: 0px;
197            border-top-right-radius: 0px;
198            height: 197px;
199            -webkit-transform: rotate(6deg);
200            -moz--transform: rotate(6deg);
201            transform: rotate(6deg);
202          }
203          @media ${(0,h._n)(s.M8k)} {
204            margin-left: ${e.$heroStyle===Ea?s.a2z:"auto"};
205          }
206          @media ${(0,h._n)(s.GOF)} {
207            margin-left: ${e.$heroStyle===Ea?s.uSy:"auto"};
208          }
209          @media ${(0,h._n)(s.GOF)} {
210            margin-left: ${e.$heroStyle===Ea?s.WX9:"auto"};
211          }
212          @media ${(0,h._n)(s.QaQ)} {
213            margin-left: ${e.$heroStyle===Ea?"20%":"auto"};
214          }
215        `;case ka:return u.css`
216          display: block;
217          position: absolute;
218          top: 175px;
219          left: 0;
220          right: 0;
221          background-color: ${s.qgF};
222          text-align: left;
223          padding: ${s.C3h};
224          max-width: 577px;
225          height: 520px;
226          margin-left: auto;
227          margin-right: auto;
228          mask-image: url('data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2
228049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E');
229          mask-repeat: no-repeat;
230          transform: rotate(-194.91deg);
231          z-index: 1;
232          @media ${(0,h._n)(s._h7)} {
233            max-width: 277px;
234            top: 135px;
235            left: -20px;
236            padding-left: 25px;
237            padding-right: 0px;
238            margin-left: auto;
239            margin-right: auto;
240            height: 220px;
241            text-align: center;
242          }
243          @media ${(0,h._n)(s.M8k)} {
244            margin-left: ${s.Ojl};
245          }
246          @media ${(0,h._n)(s.GOF)} {
247            margin-left: ${s.uSy};
248          }
249        `;default:return null}})),Aa=u.styled.img.withConfig({displayName:"Hero__PromotionBanner",componentId:"sc-1fcta7c-3"})(["display:none;@media ","{display:block;position:absolute;bottom:",";left:",";}"],(0,h._n)(s.M8k),s.GYs,s.GYs),Sa=u.styled.div.withConfig({displayName:"Hero__InnerContentContainer",componentId:"sc-1fcta7c-4"})(["",""],(e=>{switch(e.$heroStyle){case xa:return u.css``;case ya:case Ea:return u.css`
250          -webkit-transform: rotate(-10deg);
251          -moz--transform: rotate(-10deg);
252          transform: rotate(-10deg);
253          position: relative;
254          margin-top: ${s.a2z};
255          padding-left: ${e.$heroStyle===Ea?s.uSy:s.Sjf};
256          padding-right: ${e.$heroStyle===Ea?s.a2z:s.Sjf};
257          @media ${(0,h._n)(s._h7)} {
258            margin-top: ${s.GYs};
259            -webkit-transform: rotate(-6deg);
260            -moz--transform: rotate(-6deg);
261            transform: rotate(-6deg);
262            padding-left: ${s.Sjf};
263            padding-right: ${s.Sjf};
264          }
265        `;case ka:return u.css`
266          position: relative;
267          @media ${(0,h._n)(s._h7)} {
268            bottom: -60%;
269            transform: rotate(194.91deg) translateY(60%);
270            padding-left: 33%;
271            padding-right: none;
272          }
273          @media ${(0,h._n)(s.iqz)} {
274            bottom: -30%;
275            transform: rotate(194.91deg) translateY(30%);
276            margin-top: ${s.a2z};
277            padding-left: ${s.Ojl};
278            padding-right: ${s.a2z};
279          }
280        `;default:return null}})),Pa=u.css`
281  position: absolute !important;
282  top: 0;
283  z-index: -1000;
284  min-width: 100%;
285  height: 100%;
286  @media ${(0,h._n)(s._h7)} {
287    height: ${e=>e.$componentProps.heroStyle===ya||e.$componentProps.heroStyle===Ea?"246px":"100%"};
288  }
289`;var Ta=(0,i.A)((e=>{var t,n,a,i,r,c,s,d,u,m,p,v;let{isMobile:f,...b}=e,y=b.variation||Ca;b.variation===ka&&"turva"!==b.theme&&(y=Ca);const C=null!==(t=b.heading)&&void 0!==t&&t.heading?(0,h.G6)(b.heading.heading):void 0,x=null!==(n=b.subheading)&&void 0!==n&&n.subheading?(0,h.G6)(b.subheading.subheading):void 0,E={heroStyle:y},k=(null===(a=b.backgroundImage)||void 0===a?void 0:a.width)||1600,I=b.backgroundImage?{...b.backgroundImage,maxWidth:k}:null,L=(0,W.A)(),w=l.useContext(_e.A);let A=b.imageAltText;var S,P;(null==w?void 0:w.node_locale)!==g.hCU&&(null==w?void 0:w.node_locale)!==g.JR1&&(null==w?void 0:w.node_locale)!==g.ygE||(A=null!==(S=b.imageAltTextSv)&&void 0!==S?S:"");(null==w?void 0:w.node_locale)!==g.RHJ&&(null==w?void 0:w.node_locale)!==g.pA3&&(null==w?void 0:w.node_locale)!==g.SVO||(A=null!==(P=b.imageAltTextEn)&&void 0!==P?P:"");return l.createElement(l.Fragment,null,l.createElement(Ia,{$heroStyle:y,$subheading:x,id:`hero-${b.contentful_id}`},(y===ya||y===xa)&&l.createElement(La,{$heroStyle:y,$subheading:x},C?l.createElement(K.A,{level:b.headingLevel,color:null!==(i=null===(r=b.style)||void 0===r?void 0:r.headingColor)&&void 0!==i?i:"color-gray-lightest"},L?l.createElement("span",{style:{whiteSpace:"pre-line"}},C):l.createElement("span",null,C)):null,x?l.createElement(K.A,{level:b.subheadingLevel,color:null!==(c=null===(s=b.style)||void 0===s?void 0:s.subheadingColor)&&void 0!==c?c:"color-gray-lightest"},L?l.createElement("span",{style:{whiteSpace:"pre-line"}},x):l.createElement("span",null,x)):null),l.createElement(wa,{$heroStyle:y,"data-testid":"hero-content-container"},l.createElement(Sa,{$heroStyle:y},!C||y!==Ca&&y!==Ea?null:l.createElement(K.A,{level:b.headingLevel,color:null===(d=b.style)||void 0===d?void 0:d.headingColor},C),C&&y===ka?l.createElement(K.A,{level:b.headingLevel,visualLevel:f?"h3":b.headingLevel,color:null===(u=b.style)||void 0===u?void 0:u.headingColor},C):null,x&&y===Ca?l.createElement(K.A,{level:b.subheadingLevel,color:null===(m=b.style)||void 0===m?void 0:m.subheadingColor},x):null,x&&y===ka?l.createElement(K.A,{level:b.subheadingLevel,visualLevel:f?"h4":b.subheadingLevel,color:null===(p=b.style)||void 0===p?void 0:p.subheadingColor},x):null,b.children,b.promotionBanner?l.createElement(Aa,{src:b.promotionBanner.file.url,"aria-hidden":"true"}):null)),I?l.createElement(ba.A,{image:I,alt:null!==(v=A)&&void 0!==v?v:"",objectFit:"cover",objectPosition:"center top",componentStyle:Pa,componentProps:E}):null),"turva-blob"===b.variation&&l.createElement(o.P6,{size:"x-large"}),f&&"turva-blob"===b.variation?l.createElement(l.Fragment,null,l.createElement(o.P6,{size:"x-large"}),l.createElement(o.P6,{size:"xxxx-large"})):null)})),_a=n(9506);var Na=e=>{const t=(0,jn.A)(e.childrenContentfulHeroDoNotUseStyleJsonNode),n=(0,_a.d)(),a=n["xx-small"]||n["x-small"],o=(0,Hn.l)("h1",null==t?void 0:t.headingLevel),i=(0,Hn.d)(o);return l.createElement(Ta,Object.assign({},e,{style:t,isMobile:a,headingLevel:o,subheadingLevel:i}),e.content?e.content.map(((e,t)=>l.createElement(na.A,{component:e,key:`hero-content-${t}`}))):null)};var $a=(0,i.A)((e=>{var t;return l.createElement(o._e,{id:e.slug,heading:e.heading,size:e.size,active:null!==(t=e.isOpen)&&void 0!==t&&t,onDuetClose:e.onClose,onDuetBeforeClose:e.onBeforeClose,theme:e.theme,"data-testid":"duet-modal"},e.children)}));var Da=e=>{const t=l.useContext(A.V),n=t.activeModalId===e.slug,a=l.useCallback(((e,n)=>{e.preventDefault(),"click"===e.type&&t.openModal(n)}),[t]),o=l.useCallback((e=>{e.detail.originalEvent.preventDefault(),"duetBeforeClose"===e.type&&t.closeModal()}),[t]);return n?l.createElement($a,Object.assign({},e,{isOpen:n,onClose:a,onBeforeClose:o}),e.sections?e.sections.map(((e,t)=>
289l.createElement(ua,Object.assign({key:`modal-section-${t}`},e)))):null):null};var Ra=n(1255);const Ma=u.styled.div.withConfig({displayName:"SectionFaqGroupContainer__CenteringWrapper",componentId:"sc-pb3omt-0"})(["display:flex;justify-content:center;"]),Ba=u.styled.div.withConfig({displayName:"SectionFaqGroupContainer__FaqHeading",componentId:"sc-pb3omt-1"})(["display:flex;",""],(e=>e.$alignment&&"left"===e.$alignment&&u.css`
290      width: 100%;
291      justify-content: left;
292    `));var Fa=e=>{var t;const{ref:n,inView:a}=On({options:{rootMargin:"-32px 0px -250px 0px"}}),o=(0,k.wA)(),i=(0,W.A)(),r=(0,h.Tn)()?"secondary-turva":"secondary",c="gray-lightest",s={headingLevel:"h2",subheadingLevel:"h3",headingColor:r,subheadingColor:r,backgroundColor:c},d=`section-${e.contentful_id}`;l.useEffect((()=>{if(n.current){const e=n.current.getAttribute("id"),t=a?Re.Mr:Re.$w;o(t(e))}}),[n,a,o]),l.useEffect((()=>{if(i){const e=window.location.hash;n.current&&Kn(n.current,e,d)}}),[n,d,i]);const u=null===(t=e.items)||void 0===t?void 0:t.map((e=>({contentful_id:e.contentful_id,heading:e.question,body:e.answer}))),g=e.listToggleOpenText&&e.showOpenButton?{key:"List toggle open",value:e.listToggleOpenText}:null,m=(0,jn.A)([{screen:"all",width:"col-8"}],!0);return l.createElement(Ma,null,l.createElement(da,{style:s,textColor:r,backgroundColor:c,id:d,ref:n,isSectionComponent:!0},l.createElement(Zn,{newStyle:m,isSectionComponent:!0},e.heading?l.createElement(Ba,{$alignment:e.textAlignment},l.createElement(be.A,{level:"h2",color:r},(0,h.G6)(e.heading))):null,l.createElement(Ra.A,Object.assign({contentful_id:e.contentful_id,items:u},g?{toggleSettings:[g]}:{})))))};const Ua=e=>e.application.sectionInView;var za=e=>{const{0:t,1:n}=(0,l.useState)(),a=(0,k.d4)(Ua);return(0,l.useEffect)((()=>{const t=a.stack.find((t=>e.includes(t)));n(t)}),[n,a.stack,e]),t},Oa=n(5957);const ja=`inset 0 -3px 0 0 ${s.cG_}`,Ha=`inset 0 -5px 0 0 ${s.qgF}`,Ja=u.styled.div.withConfig({displayName:"StickyNavigation__Container",componentId:"sc-hpzu45-0"})(["display:flex;justify-content:center;box-shadow:none;opacity:1;z-index:auto;@media ","{position:-webkit-sticky;position:sticky;background-color:",";box-shadow:0 2px 6px 0 rgba(0,41,77,0.07);z-index:398;top:0;border-bottom:1px solid rgb(225,227,230);}"],(0,h._n)(s.GOF),s.VtW),Ka=u.styled.div.withConfig({displayName:"StickyNavigation__ItemsContainer",componentId:"sc-hpzu45-1"})(["width:80%;display:flex;justify-content:center;flex-direction:column;margin-bottom:40px;margin-top:40px;border-bottom:1px solid rgb(225,227,230);@media ","{width:100%;flex-direction:row;justify-content:center;margin-top:0;margin-bottom:0;border-bottom:none;}"],(0,h._n)(s.GOF)),Ga=u.styled.div.withConfig({displayName:"StickyNavigation__GridItem",componentId:"sc-hpzu45-2"})(["text-align:center;box-sizing:border-box;padding:10px 0;margin:0;border-top:1px solid rgb(225,227,230);@media ","{padding:30px 0;margin:0 20px;border-top:none;}",""],(0,h._n)(s.GOF),(e=>e.$active&&u.css`
293      box-shadow: ${"turva"===e.$theme?Ha:ja};
294      a {
295        color: ${"turva"===e.$theme?s.qgF:s.cG_};
296      }
297    `)),Va=u.styled.a.withConfig({displayName:"StickyNavigation__Link",componentId:"sc-hpzu45-3"})(["background:none;border:none;color:",";text-decoration:none;font-family:",";font-size:",";font-weight:",";display:block;width:100%;height:100%;cursor:pointer;&:hover{color:",";}"," @media ","{&:hover{color:",";}}"],s.QUQ,s.PQp,s.AMt,s.Lgp,(e=>"turva"===e.$theme?s.Iv7:s.QUQ),(e=>"turva"===e.$theme&&u.css`
298      font-family: ${s.rgS};
299      color: ${s.Iv7};
300    `),(0,h._n)(s.iqz),(e=>"turva"===e.$theme?s.qgF:s.cG_));var Wa=(0,i.A)((e=>{const t=(0,l.useMemo)((()=>{var t;return null===(t=e.items)||void 0===t?void 0:t.map((e=>e.anchorId))}),[e.items]),n=za(t),a=(0,W.A)(),o=l.useCallback((e=>t=>{t.preventDefault();const n=document.querySelector(`#${e}`);n&&(n.setAttribute("tabindex","-1"),n.focus({preventScroll:!0}),n.scrollIntoView())}),[]),i=(()=>{if(a){const e=(0,Oa.q)();if(e&&e!==g.Xn3)return e===g.hCU?g.lvv:g.vtC}return g.VVc})();return l.createElement(Ja,null,l.createElement(Ka,{role:"navigation","aria-label":i},!!e.items&&e.items.map(((t,a)=>{return t.label?l.createElement(Ga,{key:`sticky-item-${a}`,$active:(i=t.anchorId,n===i),$theme:e.theme,"data-testid":`sticky-item-${a}`},l.createElement(Va,{onClick:o(t.anchorId),$theme:e.theme,role:"link",href:`#${t.anchorId}`},t.label)):null;var i}))))}
300));const qa=e=>{var t;const n=null!==(t=e.navigationComponent)&&void 0!==t?t:e;if(n.contentful_id){var a,l;if("ContentfulSection"===(null===(a=n.internal)||void 0===a?void 0:a.type))return`section-${n.contentful_id}`;if("ContentfulSubsection"===(null===(l=n.internal)||void 0===l?void 0:l.type))return`subsection-${n.contentful_id}`}return""};var Ya=e=>{let{stickyNavigationComponents:t}=e;const n=t.map(((e,t)=>{var n;return{anchorId:qa(e),analyticsLabel:"",label:e.label||e.heading||(null===(n=e.subsectionHeading)||void 0===n?void 0:n.heading.heading),key:t}}));return l.createElement(Wa,{items:n})};var Qa=e=>{var t;const{hero:n,icon:a,content:o,modals:i,stickyNavigationComponents:r,backButton:c,backButtonLabel:s,heroTitle:d}=null!=e?e:{},u=(0,bt.useLocation)().state,g=l.useCallback((()=>{window.history.back()}),[]),m="ContentfulHero"===(null==n||null===(t=n.internal)||void 0===t?void 0:t.type);return l.createElement(l.Fragment,null,!!n&&(m?l.createElement(ft.A,{suspense:!1},l.createElement(Fn,Object.assign({icon:a,campaignHeading:null!=d?d:void 0},n))):l.createElement(ft.A,{suspense:!1},l.createElement(Na,n))),!!r&&l.createElement(ft.A,{suspense:!1},l.createElement(Ya,{stickyNavigationComponents:r})),l.createElement("div",{className:"content-wrapper"},c&&null!=u&&u.fromSameOrigin?l.createElement(ft.A,{suspense:!1},l.createElement(fa.A,{id:"back-button",label:s,icon:"action-arrow-left",variation:"plain",padding:"none",onClick:g})):null,o?o.map(((e,t)=>{var n;return"ContentfulSectionFaqGroup"===(null===(n=e.internal)||void 0===n?void 0:n.type)?l.createElement(ft.A,{suspense:!1,key:`section-faq-group-suspense-${t}`},l.createElement(Fa,Object.assign({key:`section-faq-group-${t}`},e))):l.createElement(ft.A,{suspense:!1,key:`section-suspense-${t}`},l.createElement(ua,Object.assign({key:`section-${t}`},e)))})):null),i?i.map(((e,t)=>l.createElement(ft.A,{suspense:!1,key:`modal-suspense-${t}`},l.createElement(Da,Object.assign({key:`modal-${t}`},e))))):null)};var Xa=e=>{var t,n,a,o,i,r,c,s,d,u,g;const m=(0,bt.useLocation)(),{contentful_id:p,endDate:v,hero:h,pageTitle:f,slug:b,startDate:y,startDateFormatted:C,endDateFormatted:x,isPrimary:E,insuranceAnalyticsKeys:k,internal:I,content:L,icon:w,stickyNavigationComponents:A,isExcluded:S}=null!==(t=null===(n=e.data)||void 0===n?void 0:n.contentfulCampaign)&&void 0!==t?t:{},P=(new Date).toISOString(),T={targetCampaignId:p,targetCampaignSlug:b,targetCampaignTitle:f,targetCampaignActiveStatus:P>=y&&P<=v,targetCampaignStartDate:C,targetCampaignEndDate:x,targetCampaignIsPrimary:E,targetCampaignCustomerType:null===(a=e.pageContext)||void 0===a||null===(o=a.segment)||void 0===o?void 0:o.slug,targetCampaignIsPublic:!0,targetCampaignIsExclude:null!=S&&S,targetCampaignRegion:"valtakunnallinen",targetCampaignDescription:null==h||null===(i=h.ingress)||void 0===i?void 0:i.ingress,targetCampaignImageUrl:null==h||null===(r=h.backgroundImage)||void 0===r||null===(c=r.file)||void 0===c?void 0:c.url,targetCampaignCtaButton:(null==h?void 0:h.content)&&(null==h||null===(s=h.content[0])||void 0===s?void 0:s.label),targetCampaignProductSubCategory:null==k?void 0:k.insuranceAnalyticsKey,targetCampaignProductCategory:null==k?void 0:k.insuranceCategoryAnalyticsKey};null!=e&&null!==(d=e.data)&&void 0!==d&&d.contentfulCampaign&&(e.data.contentfulCampaign.pageType="kampanja",e.data.contentfulCampaign.metadata=T);const{dataLayerProps:_}=ma(null==e||null===(u=e.data)||void 0===u?void 0:u.contentfulCampaign,{pageContext:e.pageContext},m);return va(_),l.createElement(Qa,{internal:I,hero:h,content:L,icon:w,stickyNavigationComponents:A,heroTitle:null===(g=e.pageContext.segment)||void 0===g?void 0:g.heroTitle})};var Za=e=>{var t,n,a,o,i;const r=(0,bt.useLocation)(),{hero:c,internal:s,content:d,icon:u,stickyNavigationComponents:g}=null!==(t=null===(n=e.data)||void 0===n?void 0:n.contentfulClaimInstruction)&&void 0!==t?t:{};null!=e&&null!==(a=e.data)&&void 0!==a&&a.contentfulClaimInstruction&&(e.data.contentfulClaimInstruction.pageType=Y.U5);const{dataLayerProps:m}=ma(null==e||null===(o=e.data)||void 0===o?void 0:o.contentfulClaimInstru
300ction,{pageContext:e.pageContext},r);return va(m),l.createElement(Qa,{internal:s,hero:c,content:d,icon:u,stickyNavigationComponents:g,heroTitle:null===(i=e.pageContext.segment)||void 0===i?void 0:i.heroTitle})};var el=e=>{var t,n,a,o,i;const r=(0,bt.useLocation)(),{hero:c,internal:s,content:d,icon:u,stickyNavigationComponents:g}=null!==(t=null===(n=e.data)||void 0===n?void 0:n.contentfulClaimInstructionCategory)&&void 0!==t?t:{};null!=e&&null!==(a=e.data)&&void 0!==a&&a.contentfulClaimInstructionCategory&&(e.data.contentfulClaimInstructionCategory.pageType=Y.U5);const{dataLayerProps:m}=ma(null==e||null===(o=e.data)||void 0===o?void 0:o.contentfulClaimInstructionCategory,{pageContext:e.pageContext},r);return va(m),l.createElement(Qa,{internal:s,hero:c,content:d,icon:u,stickyNavigationComponents:g,heroTitle:null===(i=e.pageContext.segment)||void 0===i?void 0:i.heroTitle})},tl=n(5982);const nl=[{screen:"desktop",width:"col-8"},{screen:"tablet",width:"col-8"},{screen:"mobile",width:"col-12"}];var al=e=>{var t,n,a,o;let{data:i,pageContext:r}=e;const{externalPage:c}=i,{contentful_id:s,fonectaPerson:d,heroIngress:u,pageHeading:m,heroImage:p,heroCta:v,webPageContent:h}=c,{contactRegionTitle:f,parentSiteSections:b}=r,y=`edustajat_${f.toLowerCase()}_${s}`,C=`${null!==(t=null==d||null===(n=d.data)||void 0===n?void 0:n.firstName)&&void 0!==t?t:""} ${null!==(a=null==d||null===(o=d.data)||void 0===o?void 0:o.lastName)&&void 0!==a?a:""}`.trim(),x={heading:null==m?void 0:m.trim()};x.heading||(x.heading=C);const E=null!=u&&u.heroIngress?{ingress:u.heroIngress}:null,k=null!=p?p:null,I=Boolean(k),{label:L,accessibleLabel:w,url:A,variation:S,analyticsEventCode:P,analyticsKey:T}=v||{},_=L&&A?[{label:L,accessibleLabel:w,analyticsEvent:P,analyticsKey:T,variation:S,icon:void 0,contentful_id:`contact-person-hero${s}`,url:A,childrenContentfulButtonStyleJsonNode:[]}]:[];r.siteSections=[...b,y],Object.assign(c,{pageType:Y.ZI,pageTitle:y});const N=(0,bt.useLocation)(),{dataLayerProps:$}=ma(c,{pageContext:r},N);va($);const D=null!=h?h:null;if(Array.isArray(null==D?void 0:D.references))for(const l of D.references){var R,M;if("ContentfulButtonContact"===(null==l||null===(R=l.internal)||void 0===R?void 0:R.type))l.internal.type="ContentfulContactPersonPageButton",l.analyticsEvent=null!==(M=l.analyticsEventCode)&&void 0!==M?M:"",l.parentComponent=g.nb_}const B=e=>{if(Array.isArray(e))for(const n of e)B(n);else if("object"==typeof e&&null!==e){var t;"hyperlink"===e.nodeType&&null!==(t=e.data)&&void 0!==t&&t.uri&&(e.data.businessPartner=C),e.content&&B(e.content)}};if(D){const e=JSON.parse(D.raw);B(e),D.raw=JSON.stringify(e)}return l.createElement(l.Fragment,null,l.createElement(Fn,{heading:x,subheading:null,ingress:E,backgroundImage:k,textCenterWithImage:I,variation:g.naV,content:_,buttonVariation:"primary",noArrowIcon:!0,useRegularNavigation:!0}),l.createElement(ua,{contentful_id:s},l.createElement(la,{contentful_id:s},D?l.createElement(tl.A,{body:D,childrenContentfulRichTextStyleJsonNode:nl}):null)))};var ll=e=>{let{data:t,pageContext:n}=e;const{externalPage:a,externalPageTree:i}=t,{mapLabels:r,officeMicrocopy:c}=i,{title:s,intro:d,fonectaBusinessUnit:u,analyticsKey:m}=a,{municipalities:p,contactRegions:v,resources:f,finnishMunicipalities:b}=i,y=(0,bt.useLocation)(),C=null!=m?m:"",x=n.parentSiteSections;n.siteSections=x.concat(C),a.pageType=Y.ZI;const{dataLayerProps:E}=ma(a,{pageContext:n},y);va(E);const k={childrenContentfulSubsectionNewStyleJsonNode:[{screen:"desktop",width:"776px"},{screen:"tablet",width:"col-12"},{screen:"mobile",width:"col-12"}],components:[{internal:{type:"ContentfulRichText"},body:{raw:JSON.stringify({nodeType:"document",data:{},content:[{nodeType:"embedded-entry-block",content:[],data:{target:{sys:{id:"contact-region-info",linkType:"Entry",type:"Link"}}}}]}),references:[{internal:{type:"ContentfulThirdPartyData"},contentful_id:"contact-region-info",externalReferences:[a],component:"Single Contact Region Information",mapLabels:r,officeMicrocopy:c}]}}]},I={internal:{type:"ContentfulApplication"},type:"Region Selector",childContentfulApplicationInputJsonNode:{target:"contacts"}
300,municipalities:p,contactRegions:v,resources:f,finnishMunicipalities:b};return l.createElement(l.Fragment,null,l.createElement(ft.A,{suspense:!1},l.createElement(Fn,{heading:{heading:`${c.pageTitlePrefix} - ${s||u.data.name}`},subheading:null,ingress:d?{ingress:null==d?void 0:d.intro}:null,variation:g.DX2,backgroundImage:void 0,content:(0,h.Tn)()?[]:[I]})),l.createElement(o.GK,null),l.createElement(ft.A,{suspense:!1},l.createElement(ua,{childrenContentfulSectionStyleJsonNode:[],body:[k]})))},ol=n(8450),il=n(2333),rl=n(54);const cl=u.styled.div.withConfig({displayName:"FundsContainer__PromotionalCardsWrapper",componentId:"sc-4w1mjo-0"})(["display:grid;grid-template-columns:repeat(1,1fr);grid-auto-rows:1fr;grid-column-gap:40px;grid-row-gap:40px;margin-top:40px;@media ","{grid-template-columns:repeat(2,1fr);}@media ","{grid-template-columns:repeat(3,1fr);}"],(0,h._n)(s.M8k),(0,h._n)(s.qBF)),sl=(0,u.styled)(K.A).withConfig({displayName:"FundsContainer__StyledHeading",componentId:"sc-4w1mjo-1"})(["text-align:center;margin-top:80px;"]),dl=e=>{if(Array.isArray(e))for(const n of e){var t;if(n.internal)if("ContentfulProductsInlineFrame"===n.internal.type&&(n.internal.type="ContentfulInlineFrame",n.name="funds-iframe"),"ContentfulProductsBanner"===n.internal.type)n.internal.type="ContentfulBannerNew",n.forceMaxWidth=!0,n.image&&(n.backgroundImage=n.image),null!==(t=n.bannerDescription)&&void 0!==t&&t.description&&(n.description=n.bannerDescription),n.ctaLabel&&n.ctaUrl&&(n.buttons=[{label:n.ctaLabel,variation:"primary",contentful_id:`banner-button-${n.contentful_id}`,url:n.ctaUrl}])}};var ul=e=>{var t,n,a,o,i,r,c;const{findUrlById:s}=(0,yt.A)(),{heroIngress:d,heroImage:u,heroContent:m,additionalInformation:p,productInformation:v,sustainabilityInformation:h}=(null===(t=e.externalPage)||void 0===t?void 0:t.lTfiFundPage)||{},{contentful_id:f,title:b,fundTabLabelLeft:y,fundTabLabelRight:C,fundLinksTitle:x,latestTalousBlogs:E}=e.externalPage,k=[];let I=null;v&&(dl(v.references),I={internal:{type:g.RzF},body:v},k.push({label:y,components:[I]}));let L=null;const w=null==h?void 0:h.bodyText;w&&(dl(w.references),L={internal:{type:g.RzF},body:w},k.push({label:C,components:[L]}));let A=null;return p&&(dl(p.references),A={raw:p.raw,references:p.references}),l.createElement(l.Fragment,null,l.createElement(Fn,{heading:{heading:null!=b?b:""},subheading:null,backgroundImage:{file:null==u?void 0:u.file,width:null==u||null===(n=u.file)||void 0===n||null===(a=n.details)||void 0===a||null===(o=a.image)||void 0===o?void 0:o.width,height:null==u||null===(i=u.file)||void 0===i||null===(r=i.details)||void 0===r||null===(c=r.image)||void 0===c?void 0:c.height},ingress:{ingress:null==d?void 0:d.heroIngress},variation:"product",content:m}),l.createElement(ua,{contentful_id:f},l.createElement(la,{contentful_id:f},k.length>0&&l.createElement(rl.A,{contentful_id:f,alignment:"left",tabs:k}),A?l.createElement(l.Fragment,null,l.createElement(ne.A,{size:"x-large"}),l.createElement(tl.A,{body:A,childrenContentfulRichTextStyleJsonNode:[]})):null,E&&E.length>0?l.createElement(l.Fragment,null,l.createElement(sl,{level:"h2"},x),l.createElement(cl,null,E.map((e=>{var t,n,a,o,i,r;const c=null===(t=(0,Ct.r)())||void 0===t?void 0:t.pageContext,d=null!==(n=s(e.contentful_id,null==c?void 0:c.locale))&&void 0!==n?n:"/",u=(0,ol.e)(e),m=(0,Y.bh)(e.slug,g.Fyk,null!==(a=null!==(o=null===(i=e.card)||void 0===i?void 0:i.headingFinnish)&&void 0!==o?o:e.titleFinnish)&&void 0!==a?a:""),p=!!d&&(0,Fe.xs)(d);return l.createElement(il.A,{key:`fund-latest-blogs-${e.contentful_id}`,heading:e.title,textContent:null===(r=e.ingress)||void 0===r?void 0:r.ingress,image:u,cropImage:!0,childrenContentfulCardNewStyleJsonNode:[{backgroundColor:"primary-lightest"}],url:d,dataAnalyticsLink:m,isTrackable:!!p})})))):null)))};var gl=e=>{let{data:t,pageContext:n}=e;const{externalPage:a}=t;a.pageType=Y.qW,a.metadata={targetFundId:a.fundId,targetFundRisk:a.fundRisk,targetFundCategory:a.fundCategory};const o=(0,bt.useLocation)(),{dataLayerProps:i}=ma(a,{pageContext:n},o);return va(i),l.createElement(ft.A,{suspense:!1},l.createElement(ul,{externalPage:a}))},ml=n(7584),pl=n(2404),vl=n(2490),hl=n(8428),fl=n(133),bl=n(1550),yl=n(887),Cl=n(9275),xl=n(5930);const El=u.styled.div.withConfig({displayName:"NewsroomArticle__StyledArticleContainer",componentId:"sc-cjpv8s-0"})(["margin:",";margin-top:",";display:flex;flex-direction:column;justify-content:center;align-items:center;"],s.GYs,s.Ojl),kl=u.styled.div.withConfig({displayName:"NewsroomArticle__StyledArticle",componentId:"sc-cjpv8s-1"})(["word-break:break-word;display:flex;flex-direction:column;justify-content:center;align-items:center;"]),Il=u.styled.div.withConfig({displayName:"NewsroomArticle__StyledLayout",componentId:"sc-cjpv8s-2"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;max-width:744px;"]),Ll=u.styled.h1.withConfig({displayName:"NewsroomArticle__StyledH1",componentId:"sc-cjpv8s-3"})(["margin-top:"," !important;"],s.YWj),wl=(0,u.styled)(o.vC).withConfig({displayName:"NewsroomArticle__StyledIngress",componentId:"sc-cjpv8s-4"})(["font-size:",";margin-bottom:0;"],s.AjD),Al=u.styled.div.withConfig({displayName:"NewsroomArticle__StyledHeroImageContainer",componentId:"sc-cjpv8s-5"})(["word-break:break-word;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:",";margin-bottom:",";"],s.isx,s.C3h),Sl=u.styled.div.withConfig({displayName:"NewsroomArticle__ImageWrapper",componentId:"sc-cjpv8s-6"})(["max-width:900px;border-radius:",";"],s.Qlz),Pl=(0,u.styled)(Il).withConfig({displayName:"NewsroomArticle__StyledBodyLayout",componentId:"sc-cjpv8s-7"})(["margin-bottom:",";"],s.Ojl),Tl=e=>!e||/^$|^\s+$/.test(e)?void 0:e;var _l=(0,i.A)((e=>{var t,n,a,i,r,c,s,d,u,m,p,v;const{findUrlById:h,findUrlByTag:f}=(0,yt.A)(),b=(0,W.A)(),y=l.useMemo((()=>({raw:"",references:[]})),[]),{article:C,theme:x}=e,E=C.promotedContent,k=(0,Cl.f)(C),I=(0,bl.v)(E,h),L=Tl(null==E?void 0:E.bannerCtaLabel);let w=null;var A,S;Tl(null===(t=C.heroButton)||void 0===t?void 0:t.label)&&null!==(n=C.heroButton)&&void 0!==n&&n.url?w={label:null===(A=C.heroButton)||void 0===A?void 0:A.label,href:null===(S=C.heroButton)||void 0===S?void 0:S.url}:I&&L&&(w={label:L,href:I});const P=((e,t)=>{var n,a;const l=null===(n=(0,Ct.r)())||void 0===n||null===(a=n.pageContext)||void 0===a?void 0:a.locale;return e===g.l0Y||e===g.JVl||e===g.Da_?t(g.BDR,l):e===g.yK0||e===g.MJq?t(g.NMF,l):e===g.HC5?t(g.IQz,l):null})(C.internal.type,f),T=null!=E&&E.icon?{icon:E.icon,childrenContentfulIconStyleJsonNode:[]}:void 0,_={content:null==E?void 0:E.bannerText,buttonCta:L,buttonUrl:I},N=null!==(a=C.bodyText)&&void 0!==a?a:y,$=(0,hl.A)(N);return l.createElement(El,null,l.createElement(kl,null,l.createElement(Il,null,l.createElement("div",null,l.createElement(yl.A,{preHeadingLabelItems:k}),l.createElement(Ll,{className:"duet-heading"},C.title),l.createElement(wl,{variation:"intro"},null===(i=C.ingress)||void 0===i?void 0:i.ingress,w?l.createElement(q.A,{contentful_id:e.article.contentful_id,variation:"plain",icon:"action-arrow-right-small",margin:"none",url:w.href,duetTheme:x,dataLinkUrl:w.href,childrenContentfulButtonStyleJsonNode:[{iconPosition:"right",display:"block",width:"fit-content"}],label:w.label,noWrapperSpan:!0,testId:"newsroom-hero-button"}):null))),null!==(r=C.heroImage)&&void 0!==r&&r.asset?l.createElement(Al,null,l.createElement(Sl,null,l.createElement(ml.A,Object.assign({}
300,C.heroImage,{caption:void 0})),C.heroImage.caption?l.createElement("span",null,C.heroImage.caption):null)):null,C.bodyText?l.createElement(Pl,null,l.createElement(xl.A,{body:C.bodyText,renderOptions:$,clientRenderOnly:!0})):null,E&&L&&I&&b&&((null==E?void 0:E.variation)===fl.b.BANNER||null==E||!E.variation)?l.createElement(l.Fragment,null,l.createElement(xt.A,{id:`personalised-${E.contentful_id}`,heading:E.bannerHeading,description:{description:null!==(c=E.bannerText)&&void 0!==c?c:""},forceMaxWidth:!0,internal:{type:"ContentfulBannerNew"},buttons:[{label:L,accessibleLabel:E.bannerCtaAccessibleLabel,variation:"primary",contentful_id:`${E.contentful_id}-banner-button`,url:I,childrenContentfulButtonStyleJsonNode:[{screen:"all",iconPosition:"right"}],analyticsKey:C.slug,parentComponent:g.VGv,labelFinnish:null!==(s=null!==(d=null===(u=C.card)||void 0===u?void 0:u.headingFinnish)&&void 0!==d?d:C.titleFinnish)&&void 0!==s?s:"",testId:"newsroom-promoted-content-button",internal:{type:g.cmn}}],backgroundImage:E.bannerImage,childrenContentfulBannerNewStyleJsonNode:[{}]}),l.createElement(o.P6,{size:"xxxx-large"})):null,E&&L&&I&&(null==E?void 0:E.variation)===fl.b.PROMOTIONAL_CARD?l.createElement(l.Fragment,null,l.createElement(vl.A,{contentful_id:E.contentful_id,heading:null==E?void 0:E.bannerHeading,promotionalCardIcon:T,newsroomPromotionalCardContent:_,childrenContentfulPromotionalCardStyleJsonNode:[{}]}),l.createElement(o.P6,{size:"xxxx-large"})):null,e.showMostRecentNews?l.createElement(pl.A,{articles:C.promotedArticles,heading:null===(m=C.featuredArticles)||void 0===m?void 0:m.heading,microCopyHeading:null!==(p=C.promotedArticlesHeaderLabel)&&void 0!==p?p:"",buttonLabel:null!==(v=C.promotedArticlesMoreButtonLabel)&&void 0!==v?v:"",buttonUrl:null!=P?P:"/"}):null))}));const Nl=e=>{let t;if(e){var n;t=null===(n=new Date(e).toISOString().split("T")[0])||void 0===n?void 0:n.split("-").join("")}return t};var $l=e=>{var t,n,a,o,i,r,c,s,d,u,m,p;let{data:v,pageContext:h}=e;const{externalPage:f}=v,b=f?{...f}:{};h.siteSections=[];const y=h.pagePath.startsWith("/")?h.pagePath.slice(1).split("/"):h.pagePath.split("/"),C=y[0]===g.hCU||y[0]===g.RHJ?y.slice(1):y,x=[];x.push(null===(t=h.domain)||void 0===t?void 0:t.analyticsKey,null===(n=h.segment)||void 0===n?void 0:n.analyticsKey,null===(a=h.subsegment)||void 0===a?void 0:a.analyticsKey);let E=null;var k;C.length>2&&(E=null===(k=h.subsegment)||void 0===k?void 0:k.pages.find((e=>e.slug===C[2])),E&&x.push(E.analyticsKey));if(C.length>=5&&E){var I;const e=null===(I=E.childPages)||void 0===I?void 0:I.find((e=>e.slug===C[3]));e&&x.push(e.analyticsKey)}x.push(null===(o=h.newsArticle)||void 0===o?void 0:o.slugFinnish),h.siteSections=x,b.pageType=g.f_H;const L=(0,bt.useLocation)(),w={targetArticleContentCategory:null==f||null===(i=f.category)||void 0===i?void 0:i.title,targetArticleSlug:null==f?void 0:f.slug,targetArticlePublishDate:Nl(null==f?void 0:f.publishDate),targetArticleCreationDate:Nl(null==f?void 0:f.createdAt),targetArticleTitle:null==f?void 0:f.title,targetArticleThumbnail:null!=f&&null!==(r=f.heroImage)&&void 0!==r&&null!==(c=r.asset)&&void 0!==c&&null!==(s=c.file)&&void 0!==s&&s.url?(0,Fe.k6)(f.heroImage.asset.file.url):void 0,targetArticleIntro:null==f||null===(d=f.ingress)||void 0===d?void 0:d.ingress,targetArticleContentRegionalCompany:null==f?void 0:f.articleRegionLabel,targetArticleType:null==f||null===(u=f.articleType)||void 0===u||null===(m=u.contentType)||void 0===m||null===(p=m.sys)||void 0===p?void 0:p.id};b.metadata=w;const{dataLayerProps:A}=ma(b,{pageContext:h},L);return va(A),l.createElement(ft.A,{suspense:!1},l.createElement(_l,{article:f,showMostRecentNews:!0}))};const Dl=e=>{let t;if(e){var n;t=null===(n=new Date(e).toISOString().split("T")[0])||void 0===n?void 0:n.split("-").join("")}return t};var Rl=e=>{var t,n,a,o,i,r,c,s,d,u,m,p;let{data:v,pageContext:h}=e;const{externalPage:f}=v,b=f?{...f}:{};h.siteSections=[];const y=h.pagePath.startsWith("/")?h.pagePath.slice(1).split("/"):h.pagePath.split("/"),C=y[0]===g.hCU||y[0]===g.RHJ?y.slice(1):y,x=[];x.push(null===(t=h.domain)||void 0===t?void 0:t.analyticsKey,null===(n=h.segment)||void 0===n?void 0:n.analyticsKey,null===(a=h.subsegment)||void 0===a?void 0:a.analyticsKey);let E=null;var k;C.length>2&&(E=null===(k=h.subsegment)||void 0===k?void 0:k.pages.find((e=>e.slug===C[2])),E&&x.push(E.analyticsKey));if(C.length>=5&&E){var I;const e=null===(I=E.childPages)||void 0===I?void 0:I.find((e=>e.slug===C[3]));e&&x.push(e.analyticsKey)}x.push(null===(o=h.newsArticle)||void 0===o?void 0:o.slugFinnish),h.siteSections=x,b.pageType=g.f_H;const L=(0,bt.useLocation)(),w={targetArticleContentCategory:null==f||null===(i=f.category)||void 0===i?void 0:i.title,targetArticleSlug:null==f?void 0:f.slug,targetArticlePublishDate:Dl(null==f?void 0:f.publishDate),targetArticleCreationDate:Dl(null==f?void 0:f.createdAt),targetArticleTitle:null==f?void 0:f.title,targetArticleThumbn
300ail:null!=f&&null!==(r=f.heroImage)&&void 0!==r&&null!==(c=r.asset)&&void 0!==c&&null!==(s=c.file)&&void 0!==s&&s.url?(0,Fe.k6)(f.heroImage.asset.file.url):void 0,targetArticleIntro:null==f||null===(d=f.ingress)||void 0===d?void 0:d.ingress,targetArticleContentRegionalCompany:null==f?void 0:f.articleRegionLabel,targetArticleType:null==f||null===(u=f.articleType)||void 0===u||null===(m=u.contentType)||void 0===m||null===(p=m.sys)||void 0===p?void 0:p.id};b.metadata=w;const{dataLayerProps:A}=ma(b,{pageContext:h},L);return va(A),l.createElement(ft.A,{suspense:!1},l.createElement(_l,{article:f,showMostRecentNews:null==f?void 0:f.showMostRecentNews}))};const Ml=[{screen:"desktop",width:"col-8"},{screen:"tablet",width:"col-8"},{screen:"mobile",width:"col-12"}];var Bl=e=>{const{moreBenefitsAndCampaignsLabel:t,bodyText:n,defaultBannerButtonCTA:a,allCampaignsButtonLabel:o,promotedArticles:i}=e.externalPage,r=e.bottomCards,c=n?JSON.parse(JSON.stringify(n)):null;if(null!=c&&c.references)for(const l of c.references){var s;"ContentfulNewsroomPromotedContent"!==(null==l||null===(s=l.internal)||void 0===s?void 0:s.type)||l.bannerCtaLabel||(l.bannerCtaLabel=a)}const d=i&&i.length>0?i:r;let u=e.parentPath;return"/"!==u[0]&&(u=`/${u}`),l.createElement(l.Fragment,null,c?l.createElement(m.A,{body:c,childrenContentfulRichTextStyleJsonNode:Ml}):null,l.createElement(kt.A,{articles:d,header:null!=t?t:"",buttonLabel:null!=o?o:"",buttonUrl:u}))};var Fl=e=>{var t,n,a,o,i,r,c,s,d,u,m,p;let{data:v,pageContext:h}=e;const f=(0,W.A)(),{externalPage:b}=v,y=b.title?{heading:b.title}:null,C=b.ingress?{ingress:b.ingress.ingress}:null,x=b.heroImage?b.heroImage.asset:null,E=null!==(t=b.heroLinkLabel)&&void 0!==t?t:null,k=null!==(n=b.heroLinkUrl)&&void 0!==n?n:null,I=!!x,L=E&&k?[{label:E,icon:"navigation-arrow-right",contentful_id:`regional-campaign-hero${b.contentful_id}`,url:k,childrenContentfulButtonStyleJsonNode:[{screen:"all",iconPosition:"right"}]}]:[],w=(new Date).toISOString();b.pageType="kampanja";let A=(null==b?void 0:b.region)&&(null==b?void 0:b.region[0].analyticsKey);"ContentfulNewsroomNationalCampaign"===(null===(a=b.internal)||void 0===a?void 0:a.type)&&(A=(0,Y.YD)(b.region)),b.metadata={targetCampaignId:b.contentful_id,targetCampaignSlug:b.slug,targetCampaignTitle:b.title,targetCampaignActiveStatus:w>=b.publishDate&&w<=b.endDate,targetCampaignStartDate:b.publishDateFormatted,targetCampaignEndDate:b.endDateFormatted,targetCampaignIsPrimary:b.isPrimary,targetCampaignCustomerType:null==h||null===(o=h.segment)||void 0===o?void 0:o.slug,targetCampaignIsPublic:null===(i=null==b?void 0:b.showInLandingPage)||void 0===i||i,targetCampaignIsExclude:null!==(r=null==b?void 0:b.isExcluded)&&void 0!==r&&r,targetCampaignRegion:A,targetCampaignDescription:null==b||null===(c=b.ingress)||void 0===c?void 0:c.ingress,targetCampaignImageUrl:null===(s=b.heroImage)||void 0===s||null===(d=s.asset)||void 0===d||null===(u=d.file)||void 0===u?void 0:u.url,targetCampaignCtaButton:b.heroLinkLabel,targetCampaignProductCategory:null===(m=b.insuranceAnalyticsKeys)||void 0===m?void 0:m.insuranceCategoryAnalyticsKey,targetCampaignProductSubCategory:null===(p=b.insuranceAnalyticsKeys)||void 0===p?void 0:p.insuranceAnalyticsKey};const S=(0,bt.useLocation)(),{dataLayerProps:P}=ma(b,{pageContext:h},S);return va(P),f?l.createElement(l.Fragment,null,l.createElement(Fn,{heading:y,subheading:null,ingress:C,backgroundImage:x,variation:g.naV,content:L,textCenterWithImage:I,buttonVariation:"primary",noArrowIcon:!0,useRegularNavigation:!0}),l.createElement(ua,{contentful_id:b.contentful_id},l.createElement(la,{contentful_id:b.contentful_id},l.createElement(Bl,{externalPage:b,bottomCards:h.bottomCards,parentPath:h.parentPath})))):null};var Ul=e=>{var t;let{data:n,pageContext:a}=e;const{externalPage:i,externalPageTree:r}=n,{mapLabels:c,officeMicrocopy:s}=r,{fonectaData:d,title:u,intro:m,parentContactRegion:p,analyticsKey:v}=i,h=(0,bt.useLocation)(),f=null!=v?v:"",b=p&&p[0]?null===(t=p[0])||void 0===t?void 0:t.analyticsKey:"",y=a.parentSiteSections;a.siteSections=y.concat(b).concat(f),i.pageType=Y.ZI;const{dataLayerProps:C}=ma(i,{pageContext:a},h);va(C);const x={internal:{type:"ContentfulSubsection"},childrenContentfulSubsectionNewStyleJsonNode:[{screen:"all",width:"col-8"}
300],components:[{internal:{type:"ContentfulRichText"},body:{raw:JSON.stringify({nodeType:"document",data:{},content:[{nodeType:"embedded-entry-block",content:[],data:{target:{sys:{id:"office-info",linkType:"Entry",type:"Link"}}}}]}),references:[{internal:{type:"ContentfulThirdPartyData"},contentful_id:"office-info",externalReferences:[i],component:"Single Office Information",mapLabels:c,officeMicrocopy:s}]}}]};return l.createElement(l.Fragment,null,l.createElement(ft.A,{suspense:!1},l.createElement(Fn,{heading:{heading:`${s.pageTitlePrefix} - ${u||d.localizedName}`},subheading:null,ingress:m?{ingress:null==m?void 0:m.intro}:null,variation:g.DX2,backgroundImage:void 0,content:[]})),l.createElement(o.GK,null),l.createElement(ft.A,{suspense:!1},l.createElement(ua,{childrenContentfulSectionStyleJsonNode:[],body:[x]})))};var zl=e=>{var t,n,a;let{data:o,pageContext:i}=e;const{hero:r,icon:c,content:s,modals:d,stickyNavigationComponents:u,backButton:g,internal:m}=o.contentfulPage,p=(0,bt.useLocation)(),{dataLayerProps:v}=ma(o.contentfulPage,{pageContext:i},p);return va(v),l.createElement(Qa,{internal:m,backButton:g,backButtonLabel:null===(t=o.commonPageData)||void 0===t||null===(n=t.backButton)||void 0===n?void 0:n.value,hero:r,content:s,modals:d,icon:c,stickyNavigationComponents:u,heroTitle:null===(a=i.segment)||void 0===a?void 0:a.heroTitle})};var Ol=e=>{var t,n,a,o,i;const r=(0,bt.useLocation)(),{hero:c,internal:s,content:d,icon:u,stickyNavigationComponents:g}=null!==(t=null===(n=e.data)||void 0===n?void 0:n.contentfulProductCategoryPage)&&void 0!==t?t:{};null!=e&&null!==(a=e.data)&&void 0!==a&&a.contentfulProductCategoryPage&&(e.data.contentfulProductCategoryPage.pageType="tuotekategoria");const{dataLayerProps:m}=ma(null==e||null===(o=e.data)||void 0===o?void 0:o.contentfulProductCategoryPage,{pageContext:e.pageContext},r);return va(m),l.createElement(Qa,{internal:s,hero:c,content:d,icon:u,stickyNavigationComponents:g,heroTitle:null===(i=e.pageContext.segment)||void 0===i?void 0:i.heroTitle})};var jl=e=>{var t,n,a,o,i;const r=(0,bt.useLocation)(),{hero:c,internal:s,content:d,icon:u,stickyNavigationComponents:g}=null!==(t=null===(n=e.data)||void 0===n?void 0:n.contentfulProductPage)&&void 0!==t?t:{};null!=e&&null!==(a=e.data)&&void 0!==a&&a.contentfulProductPage&&(e.data.contentfulProductPage.pageType="vakuutustuote");const{dataLayerProps:m}=ma(null==e||null===(o=e.data)||void 0===o?void 0:o.contentfulProductPage,{pageContext:e.pageContext},r);return va(m),l.createElement(Qa,{internal:s,hero:c,content:d,icon:u,stickyNavigationComponents:g,heroTitle:null===(i=e.pageContext.segment)||void 0===i?void 0:i.heroTitle})};var Hl=e=>{let{data:t,pageContext:n}=e;return l.createElement(ft.A,{suspense:!1},((e,a)=>{if(t.contentfulPage)return l.createElement(zl,{data:t,pageContext:n});if(t.contentfulCampaign)return l.createElement(Xa,{data:t,pageContext:n});if(t.contentfulProductCategoryPage)return l.createElement(Ol,{data:t,pageContext:n});if(t.contentfulProductPage)return l.createElement(jl,{data:t,pageContext:n});if(t.contentfulClaimInstruction)return l.createElement(Za,{data:t,pageContext:n});if(t.contentfulClaimInstructionCategory)return l.createElement(el,{data:t,pageContext:n});switch(null===(e=t.externalPage)||void 0===e||null===(a=e.internal)||void 0===a?void 0:a.type){case"ContentfulContactRegion":return l.createElement(ll,{data:t,pageContext:n});case"ContentfulOfficeInformation":return l.createElement(Ul,{data:t,pageContext:n});case g.l0Y:case g.Da_:case g.yK0:case g.MJq:case g.HC5:return l.createElement($l,{data:t,pageContext:n});case g.JVl:return l.createElement(Rl,{data:t,pageContext:n});case"ContentfulProductsFund":return l.createElement(gl,{data:t,pageContext:n});case"ContentfulNewsroomCampaignLandingPage":return l.createElement(ha,{data:t,pageContext:n});case"ContentfulNewsroomNationalCampaign":case"ContentfulNewsroomRegionalCampaign":return l.createElement(Fl,{data:t,pageContext:n});case"ContentfulContactPerson":return l.createElement(al,{data:t,pageContext:n});default:return l.createElement(zl,{data:t,pageContext:n})}})())};var Jl=e=>{var t,n,a,o,i,r,c,s,d,u,m,p,v,h,f;const b=null!==(t=null===(n=e.alternateLocales)||void 0===n?void 0:n.map((e=>({...e}))))&&void 0!==t?t:[];let y,C=e.canonicalUrl;if(e.locale!==g.$52){const e=b.find((e=>e.locale===g.$52));e&&(C=e.canonicalUrl)}b.push({locale:e.locale,canonicalUrl:e.canonicalUrl},{locale:"x-default",canonicalUrl:C});const x=null===(a=e.externalPageMetadata)||void 0===a?void 0:a.metaDescription;x&&("object"==typeof x&&"metaDescription"in x?y=x.metaDescription:"string"==typeof x&&(y=x));const E=null!==(o=null!==(i=null!==(r=null!==(c=null!==(s=e.newsroomArticleSEODescription)&&void 0!==s?s:null===(d=e.metadata)||void 0===d?void 0:d.seoDescription)&&void 0!==c?c:y)&&void 0!==r?r:null===(u=e.externalPageMetadata)||void 0===u||null===(m=u.seoDescription)||void 0===m?void 0:m.metaDescription)&&void 0!==i?i:e.externalPageIntro)&&void 0!==o?o:"";return l.createElement(l.Fragment,null,l.createElement("title",null,e.title),l.createElement("meta",{name:"title",content:e.title}),l.createElement("meta",{name:"description",content:E}),l.createElement("meta",{property:"og:title",content:e.title}),l.createElement("meta",{property:"og:type",content:"website"}),l.createElement("meta",{property:"og:url",content:e.canonicalUrl}),l.createElement("meta",{property:"og:description",content:E}),l.createElement("meta",{property:"og:image",content:(0,Fe.k6)(e.thumbnailUrl)}),l.createElement("meta",{property:"og:image:alt",content:null!==(p=e.thumbnailAltText)&&void 0!==p?p:""}),l.createElement("meta",{property:"og:site_name",content:e.siteName}),l.createElement("meta",{property:"og:locale",content:e.siteLocale}),e.otherLocales?e.otherLocales.map(((e,t)=>l.createElement("meta",{key:`og-locale-alternate-${t}`,property:"og:locale:alternate",content:e}))):null,l.createElement("meta",{property:"twitter:card",content:"summary_large_image"}),l.createElement("meta",{property:"twitter:url",content:e.canonicalUrl}),l.createElement("meta",{property:"twitter:title",content:e.title}),l.createElement("meta",{property:"twitter:description",content:E}),l.createElement("meta",{property:"twitter:image",content:(0,Fe.k6)(e.thumbnailUrl)}),l.createElement("meta",{property:"twitter:image:alt",content:null!==(v=e.thumbnailAltText)&&void 0!==v?v:""}),e.metadata?l.createElement("meta",{property:"twitter:site",content:null!==(h=e.metadata.seoTwitterUsername)&&void 0!==h?h:""}):null,b?b.map(((e,t)=>l.createElement("link",{key:`alternate-page-locale-${t}`,rel:"alternate",href:e.canonicalUrl,hrefLang:e.locale}))):null,e.metadata?l.createElement("meta",{property:"keywords",content:null!==(f=e.metadata.seoKeywords)&&void 0!==f?f:""}):null,l.createElement("meta",{property:"description",content:E}),e.isPageIndexingDisabled?l.createElement("meta",{name:"robots",content:"noindex, nofollow, noimageindex"}):null,l.createElement("link",{rel:"canonical",href:e.canonicalUrl}),e.financialProduct?l.createElement("script",{type:"application/ld+json"},JSON.stringify(e.financialProduct)):null)};const Kl=function(e,t){return void 0===t&&(t=2),String(e).padStart(t,"0")},Gl=(e,t)=>
300new Date(e.toLocaleString("en-US",{timeZone:t})).getTime(),Vl=e=>{const t=new Date(e),n=Math.round((Gl(t,"Europe/Helsinki")-Gl(t,"UTC"))/6e4),a=new Date(t.getTime()+6e4*n),l=n>=0?"+":"-",o=Math.abs(n),i=Kl(Math.floor(o/60)),r=Kl(o%60),c=Kl(a.getUTCMilliseconds(),3);return`${a.getUTCFullYear()}-${Kl(a.getUTCMonth()+1)}-${Kl(a.getUTCDate())}T${Kl(a.getUTCHours())}:${Kl(a.getUTCMinutes())}:${Kl(a.getUTCSeconds())}.${c}${l}${i}:${r}`};var Wl=e=>{const t=e.currentUrl,n=(0,Fe.R_)(),a=e.frontPageUrl;let l;e.seoFinancialProductReviewRating&&Number(e.seoFinancialProductReviewRating)>=1&&Number(e.seoFinancialProductReviewRating)<=5&&e.seoFinancialProductReviewOrganizationName&&(l={"@type":"Review",reviewRating:{"@type":"Rating",ratingValue:e.seoFinancialProductReviewRating.toString()},author:{"@type":"Organization",name:e.seoFinancialProductReviewOrganizationName,...e.seoFinancialProductReviewUrl?{url:e.seoFinancialProductReviewUrl}:{}}});const o={"@type":"FinancialProduct","@id":`${t}#financial-product`,feesAndCommissionsSpecification:t,areaServed:"Finland",brand:(0,h.Tn)()?"Turva":"LähiTapiola",category:e.seoFinancialProductCategory,...e.seoDescription?{description:e.seoDescription}:{},...a?{mainEntityOfPage:a}:{},name:e.title,...l?{review:l}:{}},i=e.locale?e.locale.replace("_","-"):void 0;return{"@context":"https://schema.org","@graph":[{"@type":"WebPage","@id":t,url:t,name:e.title,...i?{inLanguage:i}:{},...e.datePublished?{datePublished:Vl(e.datePublished)}:{},...e.dateModified?{dateModified:Vl(e.dateModified)}:{},isPartOf:{"@type":"WebSite","@id":n},mainEntity:{"@id":`${t}#financial-product`}},o]}};var ql=e=>({"@context":"https://schema.org","@type":"FinancialProduct",feesAndCommissionsSpecification:e.currentUrl,areaServed:"Finland",brand:"LähiTapiola",category:e.seoFinancialProductCategory,...e.seoDescription?{description:e.seoDescription}:{},...e.frontPageUrl?{mainEntityOfPage:e.frontPageUrl}:{},name:e.title});const Yl=e=>{switch(e){case g.$52:return g.z6F;case g.hCU:return g.JR1;case g.RHJ:return g.pA3;default:return g.z6F}},Ql=(e,t)=>{const n=[];for(const[a,l]of t.entries())switch(l.node_locale){case g.$52:e!==g.$52&&n.push(g.z6F);break;case g.hCU:e!==g.hCU&&n.push(g.JR1);break;case g.RHJ:e!==g.RHJ&&n.push(g.pA3)}return n};var Xl=e=>{var t,n,a,o,i,r,c,s,d,u,g,m,p,v,h,f,b;let y,C;const x="?w=1200&h=630&q=90&fit=fill&f=bottom&fm=jpg";var E;null!==(t=e.metadata)&&void 0!==t&&null!==(n=t.seoPageThumbnail)&&void 0!==n&&null!==(a=n.file)&&void 0!==a&&a.url?(y=`${e.metadata.seoPageThumbnail.file.url}${x}`,C=null!==(E=e.metadata.seoThumbnailAltText)&&void 0!==E?E:""):e.heroImage?(y=`${e.heroImage}${x}`,C=""):(y=`${e.defaultImage}${x}`,C="");y.startsWith("https:")||(y=`https:${y}`);const k=(null===(o=e.externalPageMetadata)||void 0===o?void 0:o.sourceTitle)||(null===(i=e.externalPageMetadata)||void 0===i?void 0:i.seoTitle)||e.newsroomArticleSEOTitle;let I=e.title;k?I=`${k} | ${e.siteName}`:null!==(r=e.metadata)&&void 0!==r&&r.seoTitle&&(I=`${e.metadata.seoTitle} | ${e.siteName}`),I=I.replace(/&shy;/g,"");let L=e.isRegionalCampaign||!1===(null===(c=e.metadata)||void 0===c?void 0:c.seoIndexPage)||!1===(null===(s=e.externalPageMetadata)||void 0===s?void 0:s.seoPageIndex)||!1===(null===(d=e.externalPageMetadata)||void 0===d?void 0:d.seoIndexPage);!e.isNationalCampaign||null!==(u=e.externalPageMetadata)&&void 0!==u&&u.seoIndexPage||(L=!0);const w={seoFinancialProductCategory:null===(g=e.metadata)||void 0===g?void 0:g.seoFinancialProductCategory,seoFinancialProductReviewOrganizationName:null===(m=e.metadata)||void 0===m?void 0:m.seoFinancialProductReviewOrganizationName,seoFinancialProductReviewRating:null===(p=e.metadata)||void 0===p?void 0:p.seoFinancialProductReviewRating,seoFinancialProductReviewUrl:null===(v=e.metadata)||void 0===v?void 0:v.seoFinancialProductReviewUrl,seoDescription:null===(h=e.metadata)||void 0===h?void 0:h.seoDescription,title:I,currentUrl:e.currentUrl,frontPageUrl:e.frontPageUrl,locale:Yl(e.siteLocale),datePublished:e.datePublished,dateModified:e.dateModified};let A;if(null!==(f=e.metadata)&&void 0!==f&&f.seoFinancialProductCategory&&(A=Wl(w)),null!==(b=e.externalPageMetadata)&&void 0!==b&&b.fundSeoFinancialProductCategory){var S,P;const t={seoFinancialProductCategory:null===(S=e.externalPageMetadata)||void 0===S?void 0:S.fundSeoFinancialProductCategory,seoDescription:String(null===(P=e.externalPageMetadata)||void 0===P?void 0:P.metaDescription),title:I,currentUrl:e.currentUrl,frontPageUrl:e.frontPageUrl};A=ql(t)}return l.createElement(Jl,{metadata:e.metadata,externalPageMetadata:e.externalPageMetadata,externalPageIntro:e.externalPageIntro,canonicalUrl:e.canonicalUrl,title:I,siteName:e.siteName,siteLocale:Yl(e.siteLocale),locale:e.siteLocale,otherLocales:Ql(e.siteLocale,e.allLocales),alternateLocales:e.alternateLocales,thumbnailUrl:y,thumbnailAltText:C,isPageIndexingDisabled:L,financialProduct:A,newsroomArticleSEODescription:e.newsroomArticleSEODescription})},Zl=n(6575),eo=n(8121);const to=e=>{e.media="all"};var no=e=>{let{href:t}=e;return(0,l.useEffect)((()=>{const e=document.createElement("link");e.rel="stylesheet",e.href=t,e.media="print";const n=()=>to(e);return e.addEventListener("load",n),document.head.append(e),()=>{e.removeEventListener("load",n),e.remove()}}),[t]),null},ao=n(7867);const lo=(0,h.bp)();var oo=e=>({"@context":"https://schema.org","@type":e.articleType===g.HC5?"BlogPosting":"Article",mainEntityOfPage:{"@type":"WebPage","@id":lo},...e.headline?{headline:e.headline}:{},...e.description?{description:e.description}:{},...e.heroImage?{image:e.heroImage}:{},author:{...e.author===g.qJJ||e.author===g.U1O?{"@type":"Organization"}:{"@type":"Person"},name:e.author},publisher:{"@type":"Organization",name:(0,h.Tn)()?g.qJJ:g.U1O,logo:{"@type":"ImageObject",url:(0,Fe.D1)()}},...e.datePublished?{datePublished:Vl(e.datePublished)}:{},...e.dateModified?{dateModified:Vl(e.dateModified)}:{}});var io=e=>{const t={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[]};if(e)for(const[l,o]of e.entries()){var n,a;const e={"@type":"ListItem",position:l+1,name:null!==(n=null!==(a=o.label)&&void 0!==a?a:o.accessibleLabel)&&void 0!==n?n:""};o.href&&Object.assign(e,{item:(0,Fe.hg)((0,Fe.R_)()+o.href)}),t.itemListElement.push(e)}return t};var ro=e=>{if(Array.isArray(e)&&e.some((e=>e&&"object"==typeof e&&"items"in e))){const t=[];for(const n of e)if(n.items&&n.items.length>0)for(const e of n.items){const n=(0,h.Xz)(e.answer.raw);
300t.push({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:n}})}return{"@context":"https://schema.org","@type":"FAQPage",mainEntity:t}}return null};var co=e=>{const t=(0,Fe.R_)(),n=(0,Fe.D1)(),a="none"!==e.organizationSchemaReviewingOrganizationUrl;let l={};return Number(e.organizationSchemaReviewRating)>=1&&Number(e.organizationSchemaReviewRating)<=5&&"none"!==e.organizationSchemaReviewingOrganizationName&&(l={"@type":"Review",reviewRating:{"@type":"Rating",ratingValue:e.organizationSchemaReviewRating},author:{"@type":"Organization",name:e.organizationSchemaReviewingOrganizationName,...a&&{url:e.organizationSchemaReviewingOrganizationUrl}}}),{"@context":"https://schema.org","@type":"Organization",name:e.sitename,url:t,logo:n,address:{"@type":"PostalAddress",addressLocality:e.organizationSchemaAddressLocality,postalCode:e.organizationSchemaPostalCode,streetAddress:e.organizationSchemaStreetAddress},..."none"!==e.organizationSchemaTelephone?{telephone:e.organizationSchemaTelephone}:{},sameAs:e.organizationSchemaSocialMedia,...l?{review:l}:{}}};var so=e=>{const t=[];for(const a of e)if(a.youtubeUrl){if((0,Fe.J0)(a.youtubeUrl)){var n;const e=(0,Fe.Eq)(a.youtubeUrl),l=(0,Fe.B8)(e),o=(0,Fe.IU)(e),i=a.duration?(0,h.aF)(a.duration):null;t.push({"@context":"https://schema.org","@type":"VideoObject",...a.title?{name:a.title}:{},...null!==(n=a.description)&&void 0!==n&&n.description?{description:a.description.description}:{},...l?{thumbnailUrl:l}:{},...a.uploadDate?{uploadDate:a.uploadDate}:{},...i?{duration:i}:{},...o?{contentUrl:o}:{},embedUrl:e})}}return t};var uo=e=>{let{url:t,name:n,description:a,datePublished:l,dateModified:o}=e;const i=(0,Fe.R_)();return{"@context":"https://schema.org","@type":"WebPage","@id":t,url:t,name:n,...a?{description:a}:{},...l?{datePublished:Vl(l)}:{},...o?{dateModified:Vl(o)}:{},isPartOf:{"@type":"WebSite","@id":i}}};const go=e=>{var t,n,a,o,i,r,c,s,d,u,m,p,v,f,b,y,C,x,E,k,I,L,w,A,S,P,T,_,N,$,D,R,M,B,F,U,z,O,j,H,J,K,G,V,W,q,Y,Q,X;let{data:Z,pageContext:ee}=e;const te=((e,t)=>{var n,a;const l=null===(n=e.externalPage)||void 0===n?void 0:n.canonicalUrl;if(l)return(0,Fe.Lo)(l);const o=null===(a=e.canonicalPage)||void 0===a?void 0:a.nodes.filter((e=>e.node_locale===t.locale));let i=null;for(const c of o)(!i||c.canonicalUrl.split("/").length<=i.split("/").length)&&(i=c.canonicalUrl);const r=(0,Fe.R_)();return i?r+String((0,Fe.hg)(i)):r+String((0,Fe.hg)(t.pagePath))})(Z,ee),ne=null===(t=Z.canonicalPage)||void 0===t?void 0:t.nodes.find((e=>e.node_locale===ee.locale)),ae=null===(n=Z.canonicalPage)||void 0===n?void 0:n.nodes.filter((e=>e.node_locale!==ee.locale&&Be(ne,e.node_locale))),le=[];if(ae.length>0)for(const[l,g]of ae.entries())le.push({locale:g.node_locale,canonicalUrl:(0,Fe.R_)()+String((0,Fe.hg)(g.canonicalUrl))});else if(Z.externalPage)for(const l of null!==(oe=null===(ie=Z.languageItems)||void 0===ie?void 0:ie.nodes)&&void 0!==oe?oe:[]){var oe,ie;const e=l.pageContext.locale;e!==ee.locale&&Be(Z.externalPage,e)&&le.push({locale:e,canonicalUrl:(0,Fe.R_)()+String((0,Fe.hg)(l.path))})}const re=(null===(a=ee.domain)||void 0===a?void 0:a.externalScripts)||[],ce=(null===(o=ee.segment)||void 0===o?void 0:o.externalScripts)||[],se=(null===(i=Z.contentfulPage)||void 0===i?void 0:i.externalScripts)||[],{headExternalScripts:de,headInitScripts:ue}=mt(re,ce,se),ge=`${(0,eo.w)(Z)} | ${null!==(r=null==ee||null===(c=ee.domain)||void 0===c?void 0:c.siteTitle)&&void 0!==r?r:""}`,me=`${null!==(s=null==ee||null===(d=ee.domain)||void 0===d?void 0:d.siteTitle)&&void 0!==s?s:""}`,pe=ee.domain,ve={sitename:me,organizationSchemaAddressLocality:`${pe.organizationSchemaAddressLocality}`,organizationSchemaPostalCode:`${pe.organizationSchemaPostalCode}`,organizationSchemaReviewRating:`${pe.organizationSchemaReviewRating}`,organizationSchemaReviewingOrganizationName:`${pe.organizationSchemaReviewingOrganizationName}`,organizationSchemaReviewingOrganizationUrl:`${pe.organizationSchemaReviewingOrganizationUrl}`,organizationSchemaSocialMedia:pe.organizationSchemaSocialMedia,organizationSchemaStreetAddress:`${pe.organizationSchemaStreetAddress}`,organizationSchemaTelephone:`${pe.organizationSchemaTelephone}`},he=null===(u=Z.allLocales)||void 0===u?void 0:u.nodes,fe=io(ee.breadcrumbs);let be={};ee.isFrontPage&&(be=co(ve));let ye=null;ee.faq&&(ye=ro(ee.faq));const Ce=(e=>{var t,n,a,l,o,i,r,c,s,d,u,g,m,p,v,h,f,b,y;return null!==(t=null!==(n=null!==(a=null===(l=e.contentfulPage)||void 0===l||null===(o=l.hero)||void 0===o||null===(i=o.backgroundImage)||void 0===i||null===(r=i.file)||void 0===r?void 0:r.url)&&void 0!==a?a:null===(c=e.contentfulCampaign)||void 0===c||null===(s=c.hero)||void 0===s||null===(d=s.backgroundImage)||void 0===d||null===(u=d.file)||void 0===u?void 0:u.url)&&void 0!==n?n:null===(g=e.externalPage)||void 0===g||null===(m=g.heroImage)||void 0===m||null===(p=m.asset)||void 0===p||null===(v=p.file)||void 0===v?void 0:v.url)&&void 0!==t?t:null===(h=e.externalPage)||void 0===h||null===(f=h.lTfiFundPage)||void 0===f||null===(b=f.heroImage)||void 0===b||null===(y=b.file)||void 0===y?void 0:y.url})(Z),xe=null===(m=ee.domain)||void 0===m||null===(p=m.defaultImage)||void 0===p||null===(v=p.file)||void 0===v?void 0:v.url,Ee=(0,h.Tn)()?'\n  @font-face {\n    font-family: "turva-sans";\n    font-display: swap;\n    src: url("/fonts/Turva-Bold.woff2") format("woff2"), url("/fonts/Turva-Bold.woff") format("woff");\n    font-weight: 700;\n    font-style: normal;\n  }\n  @font-face {\n    font-family: "turva-sans";\n    font-display: swap;\n    src: url("/fonts/Turva-BoldItalic.woff2") format("woff2"), url("/fonts/Turva-BoldItalic.woff") format("woff");\n    font-weight: 700;\n    font-style: italic;\n  }\n  @font-face {\n    font-family: "turva-sans";\n    font-display: swap;\n    src: url("/fonts/Turva-Semibold.woff2") format("woff2"), url("/fonts/Turva-Semibold.woff") format("woff");\n    font-weight: 600;\n    font-style: normal;\n  }\n  @font-face {\n    font-family: "turva-sans";\n    font-display: swap;\n    src: url("/fonts/Turva-Regular.woff2") format("woff2"), url("/fonts/Turva-Regular.woff") format("woff");\n    font-weight: 400;\n    font-style: normal;\n  }\n  body {\n    -moz-osx-font-smoothing: grayscale;\n    -webkit-font-smoothing: antialiased;\n  }\n  ':'\n  @font-face {\n    font-family: "localtapiola-sans";\n    font-display: swap;\n    src: url("/fonts/LocalTapiola-Extrabold.woff2") format("woff2"), url("/fonts/LocalTapiola-Extrabold.woff") format("woff");\n    font-weight: 800;\n    font-style: normal;\n  }\n  @font-face {\n    font-family: "localtapiola-sans";\n    font-display: swap;\n    src: url("/fonts/LocalTapiola-Semibold.woff2") format("woff2"), url("/fonts/LocalTapiola-Semibold.woff") format("woff");\n    font-weight: 600;\n    font-style: normal;\n  }\n  @font-face {\n    font-family: "localtapiola-sans";\n    font-display: swap;\n    src: url("/fonts/LocalTapiola-Regular.woff2") format("woff2"), url("/fonts/LocalTapiola-Regular.woff") format("woff");\n    font-weight: 400;\n    font-style: normal;\n  }\n  body {\n    -moz-osx-font-smoothing: grayscale;\n    -webkit-font-smoothing: antialiased;\n  }\n  ',ke=null===(f=Z.externalPage)||void 0===f||null===(b=f.lTfiFundPage)||void 0===b?void 0:b.seoMetadata;Z.externalPage&&ke&&(Z.externalPage.seoMetadata=Object.assign({},{metaDescription:ke.seoDescription,seoPageIndex:ke.seoPageIndex,sourceTitle:ke.seoTitle,fundSeoFinancialProductCategory:g.Hzy}));const Ie=((e,t,n)=>{const{seoTitleFinnish:a,seoTitleSwedish:l,seoTitleEnglish:o}=null!=e?e:{};return n===g.$52?null!=a?a:t:n===g.hCU?null!=l?l:t:n===g.RHJ?null!=o?o:t:void 0})(null==Z||null===(y=Z.externalPage)||void 0===y?void 0:y.metadata,null==Z||null===(C=Z.externalPage)||void 0===C?void 0:C.title,ee.locale),Le=((e,t,n)=>{const{metaDescriptionFinnish:a,metaDescriptionSwedish:l,metaDescriptionEnglish:o}=null!=e?e:{};return n===g.$52?null!=a?a:t:n===g.hCU?null!=l?l:t:n===g.RHJ?null!=o?o:t:void 0})(null==Z||null===(x=Z.externalPage)||void 0===x?void 0:x.metadata,null==Z||null===(E=Z.externalPage)||void 0===E||null===(k=E.ingress)||void 0===k?void 0:k.ingress,ee.locale);let we=null;if((null===(I=Z.externalPage)||void 0===I||null===(L=I.internal)||void 0===L?void 0:L.type)===g.l0Y||(null===(w=Z.externalPage)||void 0===w||null===(A=w.internal)||void 0===A?void 0:A.type)===g.JVl||(null===(S=Z.externalPage)||void 0===S||null===(P=S.internal)||void 0===P?void 0:P.type)===g.Da_||(null===(T=Z.externalPage)||void 0===T||null===(_=T.internal)||void 0===_?void 0:_.type)===g.HC5||(null===(N=Z.externalPage)||void 0===N||null===($=N.internal)||void 0===$?void 0:$.type)===g.yK0||(null===(D=Z.externalPage)||void 0===D||null===(R=D.internal)||void 0===R?void 0:R.type)===g.MJq){var Ae,Se,Pe,Te,_e,Ne,$e,De,Re,Me,Ue,ze;const e=null!==(Ae=Z.externalPage)&&void 0!==Ae&&null!==(Se=Ae.heroImage)&&void 0!==Se&&null!==(Pe=Se.asset)&&void 0!==Pe&&null!==(Te=Pe.file)&&void 0!==Te&&Te.url?(0,Fe.SL)(Z.externalPage.heroImage.asset.file.url):void 0,t=(0,h.Tn)()?g.qJJ:g.U1O;we={articleType:null===(_e=Z.externalPage)||void 0===_e||null===(Ne=_e.internal)||void 0===Ne?void 0:Ne.type,headline:Ie,description:Le,heroImage:e,author:(null===($e=Z.externalPage)||void 0===$e||null===(De=$e.internal)||void 0===De?void 0:De.type)===g.HC5&&null!==(Re=Z.externalPage.author)&&void 0!==Re&&Re.internalName?Z.externalPage.author.internalName:t,datePublished:null===(Me=Z.externalPage)||void 0===Me?void 0:Me.publishDate,dateModified:null!==(Ue=ee.pageUpdatedAt)&&void 0!==Ue?Ue:null===(ze=Z.externalPage)||void 0===ze?void 0:ze.updatedAt}}const Oe=null!==(M=Z.externalPage)&&void 0!==M&&M.hideDate||!we?null:oo(we),je=ee.video&&ee.video.length>0?so(ee.video):null,He="https://ag.lahitapiola.fi:443/jstag/managed/7cad9f54-9af6-43ab-a8f1-181e5d671847/e1b5e24789e4de91_complete.js",Je=(null===(B=Z.contentfulPage)||void 0===B?void 0:B.metadata)||(null===(F=Z.contentfulCampaign)||void 0===F?void 0:F.seoMetadata)||(null===(U=Z.contentfulProductCategoryPage)||void 0===U?void 0:U.metadata)||(null===(z=Z.contentfulProductPage)||void 0===z?void 0:z.metadata),Ke=!(null==Je||!Je.seoFinancialProductCategory),Ge=null!==Oe||null!==(O=Z.externalPage)&&void 0!==O&&O.lTfiFundPage||Ke?null:uo({url:te,name:ge,description:null!==(j=null==Je?void 0:Je.seoDescription)&&void 0!==j?j:void 0,datePublished:ee.createdAt,dateModified:ee.pageUpdatedAt});return l.createElement(l.Fragment,null,l.createElement(Xl,{metadata:Je,externalPageMetadata:(null===(H=Z.externalPage)||void 0===H?void 0:H.seoMetadata)||(null===(J=Z.externalPage)||void 0===J?void 0:J.metadata),externalPageIntro:null===(K=Z.externalPage)||void 0===K||null===(G=K.intro)||void 0===G?void 0:G.intro,heroImage:Ce,defaultImage:xe,canonicalUrl:te,title:ge,siteName:me,siteLocale:ee.locale,allLocales:he,alternateLocales:le,isRegionalCampaign:(null===(V=Z.externalPage)||void 0===V||null===(W=V.internal)||void 0===W?void 0:W.type)===g.$Vg,isNationalCampaign:(null===(q=Z.externalPage)||void 0===q||null===(Y=q.internal)||void 0===Y?void 0:Y.type)===g.KgP,isFrontPage:ee.isFrontPage,currentUrl:(0,Fe.Lo)(ee.pagePath),frontPageUrl:(0,Fe.Lo)(null==ee||null===(Q=ee.domain)||void 0===Q||null===(X=Q.defaultSegment)||void 0===X?void 0:X.slug),newsroomArticleSEOTitle:Ie,newsroomArticleSEODescription:Le,datePublished:ee.createdAt,dateModified:ee.pageUpdatedAt}),de?de.map(((e,t)=>{var n,a,o;return l.createElement("script",Object.assign({key:`head-script-${t}`,src:e.sourceUrl||(null===(n=e.sourceFile)||void 0===n?void 0:n.url)},null!==(a=e.options)&&void 0!==a&&a.some((e=>"async"===e))?{async:void 0}:{},null!==(o=e.options)&&void 0!==o&&o.some((e=>"defer"===e))?{defer:void 0}:{}))})):null,ue?ue.map(((e,t)=>{var n;return l.createElement("script",{key:`head-init-script-${t}`},null===(n=e.initalizationCode)||void 0===n?void 0:n.initalizationCode)})):null,(0,h.RI)()&&l.createElement("script",{id:"adobe-dtm-launch-script",key:"adobedtm",type:"text/javascript",src:"//www.lahitapiola.fi/assets/launch/launch-EN779e438b4e8144828fe41db650fbf2f3.min.js",async:!0}),fe.itemListElement.length>0&&l.createElement("script",{type:"application/ld+json"},JSON.stringify(fe)),ee.isFrontPage?l.createElement("script",{type:"application/ld+json"},JSON.stringify(be)):null,ye?l.createElement("script",{type:"application/ld+json"},JSON.stringify(ye)):null,Oe?l.createElement("script",{type:"application/ld+json"},JSON.stringify(Oe)):null,Ge?l.createElement("script",{type:"application/ld+json"},JSON.stringify(Ge)):null,je?l.createElement("script",{type:"application/ld+json"},JSON.stringify(je)):null,l.createElement("style",null,Ee),l.createElement(no,{href:Zl.S}),He?l.createElement(ao.A,{src:He,id:"monitoring-script",defer:!1,async:!0}):null,null)};var mo=e=>{var t,n,o,i,s,d,u,m,p,v,f,b,y,x,k,I,L,w,A,S,T,_,$,D,R,M,B,F,U,z,O,j,H,J,K,G,V,q,Q,X,Z,ee,te,ne,ae,le,oe,ie,re,ce,se,de;let ue,ge,{data:me,pageContext:pe}=e,ve=!1,he="";null!==me.contentfulPage&&(ue=me.contentfulPage),null!==me.contentfulProductPage&&(ue=me.contentfulProductPage),null!==me.contentfulProductCategoryPage&&(ue=me.contentfulProductCategoryPage),null!==me.contentfulClaimInstru
300ction&&(ue=me.contentfulClaimInstruction),null!==me.contentfulClaimInstructionCategory&&(ue=me.contentfulClaimInstructionCategory),null!==me.externalPage&&(ge=me.externalPage);const fe=null===(t=ue)||void 0===t||null===(n=t.hero)||void 0===n||null===(o=n.content)||void 0===o?void 0:o.some((e=>{var t;return(null===(t=e.internal)||void 0===t?void 0:t.type)===g.rK6}));if(fe)for(const a of ue.hero.content){var be;(null===(be=a.internal)||void 0===be?void 0:be.type)===g.rK6&&(he.length>0?(he=he.concat(" | "),he=he.concat(`${a.submitButton.analyticsKey}-laskuri`)):he=he.concat(`${a.submitButton.analyticsKey}-laskuri`))}const ye=null===(i=ue)||void 0===i||null===(s=i.content)||void 0===s?void 0:s.some((e=>{var t;return null===(t=e.body)||void 0===t?void 0:t.some((e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.some((e=>{var t;return(null===(t=e.internal)||void 0===t?void 0:t.type)===g.rK6}))}))}));if(null!==(d=ue)&&void 0!==d&&d.content)for(const a of ue.content)if(null!=a&&a.body)for(const e of a.body)if(null!=e&&e.components)for(const t of e.components){var Ce;(null===(Ce=t.internal)||void 0===Ce?void 0:Ce.type)===g.rK6&&(he.length>0?(he=he.concat(" | "),he=he.concat(`${t.submitButton.analyticsKey}-laskuri`)):he=he.concat(`${t.submitButton.analyticsKey}-laskuri`))}const xe=null===(u=ge)||void 0===u||null===(m=u.bodyText)||void 0===m?void 0:m.references.some((e=>{var t;return null==e||null===(t=e.contentfulNewsroomLifeButtons)||void 0===t?void 0:t.some((e=>{var t,n;return!(null==e||null===(t=e.internal)||void 0===t||!t.type)&&(null===(n=e.internal)||void 0===n?void 0:n.type)===g.rK6}))}));if(xe)for(const a of ge.bodyText.references)if(null!=a&&a.contentfulNewsroomLifeButtons)for(const e of a.contentfulNewsroomLifeButtons){var Ee;(null==e||null===(Ee=e.internal)||void 0===Ee?void 0:Ee.type)===g.rK6&&(he.length>0?(he=he.concat(" | "),he=he.concat(`${e.submitButton.analyticsKey}-laskuri`)):he=he.concat(`${e.submitButton.analyticsKey}-laskuri`))}ve=ye||fe||xe;const{hasForm:ke,formMetadata:Ie}=((e,t)=>{var n,a;const l=new Map;pt(e,vt,l),pt(t,vt,l);const o=null!==(n=l.get(g.GmZ))&&void 0!==n?n:[],i=null!==(a=l.get(g.cH8))&&void 0!==a?a:[];return{hasForm:o.length>0||i.length>0,formMetadata:o[0]?{name:o[0].metadataFormName,type:o[0].metadataFormType}:void 0}})(ue,ge),Le={...pe,form:ke,formMetadata:Ie},{content:we,chatTopic:Ae,externalScripts:Se,paginationIdentifier:Pe}=null!==(p=me.contentfulPage)&&void 0!==p?p:{},Te=(0,W.A)(),_e=(0,Fe.al)(),Ne=_e?_e.get("modal"):null,$e=Array.isArray(we)?we[we.length-1].backgroundColor:null,De=dt(me.languageItems.nodes,pe),Re=!!pe.domain.notificationContent,Me=(null===(v=pe.domain)||void 0===v?void 0:v.externalScripts)||[],Be=(null===(f=pe.segment)||void 0===f?void 0:f.externalScripts)||[],Ue=Se||[],{bodyExternalScripts:ze,bodyInitScripts:Oe}=mt(Me,Be,Ue),He="prod"!==(0,ht.A)(),Je=(0,P.Mf)(Y.pQ),Ke=l.useCallback((e=>{var t,n;if("osuuksienarvot"===(null===(t=e.data)||void 0===t?void 0:t.type)){const t=`${e.data.clickedElement}_${(0,h.Yv)(e.data.fundName)}`;Je(t)}if("osuuksienarvot/henki"===(null===(n=e.data)||void 0===n?void 0:n.type)){const t=`${e.data.clickedElement}_${(0,h.Yv)(e.data.fundName)}`;Je(t)}}),[Je]);Te&&((e=>{const t=window;t.OneTrust&&t.OneTrust.changeLanguage(e)})(pe.domain.node_locale),(()=>{const e=document.querySelector("#onetrust-group-container"),t=document.querySelector(".onetrust-pc-dark-filter.ot-hide");if(e&&!t){const t=document.createElement("span");t.setAttribute("tabindex","-1"),t.setAttribute("id","onetrustbannersdkfocusid"),e.prepend(t);const n=document.querySelector("#onetrustbannersdkfocusid");n&&n.focus()}})());const Ge=pe.breadcrumbs?pe.breadcrumbs.map(((e,t)=>{const{href:n,...a}=e;if(t===pe.breadcrumbs.length-1)return{...a};const l=`${(0,Fe.R_)()}${n}`;return{...a,href:l}})):null,Ve=()=>{var e,t,n,a;return l.createElement("aside",null,l.createElement(ft.A,{suspense:!1},l.createElement(C,{content:null===(e=pe.domain.notificationContent)||void 0===e?void 0:e.body,updatedAt:null===(t=pe.domain.notificationContent)||void 0===t?void 0:t.updatedAt,closeAriaLabel:null===(n=pe.commonPageData)||void 0===n||null===(a=n.notificationCloseAriaLabel)||void 0===a?void 0:a.value})))},We={mobileMenuButtonAccessibleLabel:(null===(b=pe.commonPageData)||void 0===b||null===(y=b.mobileMenuButtonAccessibleLabel)||void 0===y?void 0:y.value)||"",mobileLoginButtonAccessibleLabel:(null===(x=pe.commonPageData)||void 0===x||null===(k=x.mobileLoginButtonAccessibleLabel)||void 0===k?void 0:k.value)||"",languageSelectorButtonAccessibleLabel:(null===(I=pe.commonPageData)||void 0===I||null===(L=I.languageSelectorButtonAccessibleLabel)||void 0===L?void 0:L.value)||"",menubarAccessibleLabel:(null===(w=pe.commonPageData)||void 0===w||null===(A=w.navMenubarAccessibleLabel)||void 0===A?void 0:A.value)||"",mobileMenubarAccessibleLabel:(null===(S=pe.commonPageData)||void 0===S||null===(T=S.navMobileMenubarAccessibleLabel)||void 0===T?void 0:T.value)||"",desktopToolbarAccessibleLabel:(null===(_=pe.commonPageData)||void 0===_||null===($=_.navDesktopToolbarAccessibleLabel)||void 0===$?void 0:$.value)||""};(0,l.useEffect)((()=>((0,ut.A)(pe.contentfulId),(()=>{const e=document.querySelector(g.Sg$);null==e||e.remove()})(),"undefined"!=typeof document&&(document.documentElement.lang=pe.locale),window.addEventListener("message",Ke),()=>{window.removeEventListener("message",Ke)})),[]);const qe=null!==(D=null!==(R=null!==(M=null!==(B=null!==(F=null!==(U=null!==(z=me.contentfulPage)&&void 0!==z?z:me.contentfulCampaign)&&void 0!==U?U:me.contentfulProductCategoryPage)&&void 0!==F?F:me.contentfulProductPage)&&void 0!==B?B:me.contentfulClaimInstru
300ction)&&void 0!==M?M:me.contentfulClaimInstructionCategory)&&void 0!==R?R:null===(O=me.externalPage)||void 0===O?void 0:O.lTfiFundPage)&&void 0!==D?D:me.externalPage;let Ye=me.pageMatch.nodes;(null===(j=me.productPageMatch)||void 0===j||null===(H=j.nodes)||void 0===H?void 0:H.length)>0?Ye=me.productPageMatch.nodes:(null===(J=me.categoryPageMatch)||void 0===J||null===(K=J.nodes)||void 0===K?void 0:K.length)>0&&(Ye=me.categoryPageMatch.nodes),me.canonicalPage={nodes:Ye};const Qe=l.createElement(lt,{pageContext:Le,hasLifeForm:ve,lifeFormAnalyticsKeys:he},l.createElement(gt.A,{pageContext:pe,bodyExternalScripts:ze,bodyInitScripts:Oe,activeModalId:Ne,chatTopic:Ae,key:pe.domain.node_locale},l.createElement(c.A,null),l.createElement(ft.A,{suspense:!1},l.createElement(et,{url:"#main-content"},(null===(G=pe.commonPageData)||void 0===G||null===(V=G.skipLinkToMainContentLabel)||void 0===V?void 0:V.value)||"")),l.createElement(ft.A,{suspense:!1},l.createElement(et,{url:"#duet-footer"},(null===(q=pe.commonPageData)||void 0===q||null===(Q=q.skipLinkToFooterLabel)||void 0===Q?void 0:Q.value)||"")),Re?Ve():null,l.createElement(je,{pagePath:pe.pagePath,languageItems:De,loginHeading:(null===(X=pe.commonPageData)||void 0===X||null===(Z=X.loginHeading)||void 0===Z?void 0:Z.value)||"",loginButton:(null===(ee=pe.commonPageData)||void 0===ee||null===(te=ee.loginButton)||void 0===te?void 0:te.value)||"",loginButtonFi:(null===(ne=pe.commonPageData)||void 0===ne||null===(ae=ne.loginButtonFi)||void 0===ae?void 0:ae.value)||"",loginSlideoutLoginLinkEvent:(null===(le=pe.commonPageData)||void 0===le||null===(oe=le.loginSlideoutLoginLinkEvent)||void 0===oe?void 0:oe.value)||"",mobileLoginLink:(null===(ie=pe.commonPageData)||void 0===ie||null===(re=ie.mobileLoginLink)||void 0===re?void 0:re.value)||"",mobileLoginLinkFi:(null===(ce=pe.commonPageData)||void 0===ce||null===(se=ce.mobileLoginLinkFi)||void 0===se?void 0:se.value)||"",accessibleLabels:We}),l.createElement("main",{id:"main-content"},l.createElement(ft.A,{suspense:!1},l.createElement(c.A,null)),l.createElement(ft.A,{suspense:!1},l.createElement(ot.g,{paginatedArticles:(()=>{var e,t,n;switch(Pe){case g.BDR:return null===(e=me.paginatedArticles)||void 0===e?void 0:e.nodes;case g.IQz:return null===(t=me.paginatedBlogs)||void 0===t?void 0:t.nodes;case g.NMF:return null===(n=me.paginatedReleases)||void 0===n?void 0:n.nodes;default:return}})(),totalPageCount:null==pe?void 0:pe.numPages,currentPage:null==pe?void 0:pe.currentPage,totalPaginatedItems:null==pe?void 0:pe.totalPaginatedItems,paginatedItemsPerPage:pe.paginatedItemsPerPage,pagePath:null==pe?void 0:pe.pagePath},l.createElement(Hl,{data:me,pageContext:Le})))),He?l.createElement(E,{backgroundColor:$e,version:"HEAD-02b8d61"}):null,!!Ge&&l.createElement(ft.A,{suspense:!1},l.createElement(r,{breadcrumbs:Ge})),l.createElement(ft.A,{suspense:!1},l.createElement(a.Slice,{alias:"footer",allowEmpty:!0})),Re?Ve():null,null!==(de=pe.commonPageData)&&void 0!==de&&de.langChangeModal?l.createElement(ft.A,{suspense:!1},l.createElement(N,pe.commonPageData.langChangeModal.childContentfulApplicationInputJsonNode)):null,null!=qe&&qe.popUp?(()=>{var e,t,n;const a=null!==(e=qe.popUp.newsroomPopUp)&&void 0!==e?e:qe.popUp;return l.createElement(Xe,{contentful_id:a.contentful_id,title:a.title,icon:a.icon,body:a.body,button:a.button,closeAriaLabel:null===(t=pe.commonPageData)||void 0===t||null===(n=t.notificationCloseAriaLabel)||void 0===n?void 0:n.value})})():null)),Ze="true"==={}.GATSBY_REACT_DISABLE_STRICT_MODE;return Ze&&console.warn("React.StrictMode is disabled"),Ze?Qe:l.createElement(l.StrictMode,null,Qe)}},6172:function(e,t){var n;t.i=void 0,function(e){e.FEMALE="female",e.MALE="male"}(n||(n={}));class a{static parse(e){if(!d.test(e))throw new Error("Not valid SSN format");const t=parseInt(e.substring(0,2),10),n=e.substring(2,4),a=e.charAt(6),o=parseInt(e.substring(4,6),10)+l.get(a),c=e.substring(7,10),s=e.substring(10,11),g=parseInt(c,10)%2?this.MALE:this.FEMALE,p=u(o,n);if(!i.get(n)||t>p)throw new Error("Not valid SSN");const v=parseInt(e.substring(0,6)+c,10),h=new Date(o,parseInt(n,10)-1,t,0,0,0,0),f=new Date;return{valid:s===r[v%31],sex:g,dateOfBirth:h,ageInYears:m(h,f)}}static validate(e){try{return this.parse(e).valid}catch(t){return!1}}static createWithAge(e){if(e<c||e>s)throw new Error(`Given age (${e}) is not between sensible age range of ${c} and ${s}`);const t=new Date;let n=t.getFullYear()-e;const a=`00${g(12)}`.substr(-2,2);let i=function(e,t){const n=u(e,t);return`00${g(n)}`.substr(-2,2)}(n,a);const d=g(800)+99;p(new Date(n,Number(a)-1,Number(i)),t)||(this.isLeapYear(n)&&"29"===i&&a===o&&(i="28"),n--);const m=[];l.forEach(((e,t)=>{e===100*Math.floor(n/100)&&m.push(t)}));const v=m[Math.floor(Math.random()*m.length)];n%=100;const h=function(e){return e%100<10?`0${e}`:e.toString()}(n),f=parseInt(i+a+h+d,10);return i+a+h+v+d+r[f%31]}static isLeapYear(e){return e%4==0&&e%100!=0||e%400==0}}t.i=a,a.FEMALE=n.FEMALE,a.MALE=n.MALE;const l=new Map;l.set("F",2e3),l.set("E",2e3),l.set("D",2e3),l.set("C",2e3),l.set("B",2e3),l.set("A",2e3),l.set("U",1900),l.set("V",1900),l.set("W",1900),l.set("X",1900),l.set("Y",1900),l.set("-",1900),l.set("+",1800);const o="02",i=new Map;i.set("01",31),i.set("02",28),i.set("03",31),i.set("04",30),i.set("05",31),i.set("06",30),i.set("07",31),i.set("08",31),i.set("09",30),i.set("10",31),i.set("11",30),i.set("12",31);const r="0123456789ABCDEFHJKLMNPRSTUVWXY".split(""),c=1,s=200,d=/^(0[1-9]|[12]\d|3[01])(0[1-9]|1[0-2])([5-9]\d\+|\d\d[-U-Y]|[012]\d[A-F])\d{3}[\dA-Z]$/;function u(e,t){const n=i.get(t);return t===o&&a.isLeapYear(e)?n+1:n}function g(e){return Math.floor(Math.random()*e)+1}function m(e,t){return t.getFullYear()-e.getFullYear()-(p(e,t)?0:1)}function p(e,t){return e.getMonth()<t.getMonth()||e.getMonth()===t.getMonth()&&e.getDate()<=t.getDate()}}}]);

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.