1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7369,8406],{1628:(e,t,a)=>{"use strict";a.d(t,{V:()=>s,Y:()=>r});var i=a(83700),l=a(84897),n=a(99142);let r=n.Ikc({query:n.lqM(n.YjP()),category:n.lqM(n.YjP()),period:n.lqM(n.YjP()),order:n.lqM(n.YjP()),startDate:n.lqM(n.YjP()),endDate:n.lqM(n.YjP()),method:n.lqM(n.YjP()),tags:n.lqM(n.YjP())});function s(e,t,a,n,r,s,o){var c,d,u,m,f,p,h;let x=(0,i.d_)(r),g=(0,i.d_)(s);return c=encodeURIComponent(e),d=t,u=a,m=n,f=x,p=g,h=o,(0,l._b)({query:c,category:d,period:u,order:m,startDate:f,endDate:p,method:h})}},3009:(e,t,a)=>{"use strict";a.d(t,{Y:()=>l});var i=a(23305);let l=async(e,t,a,l,n)=>{let r="https://audio.sanoma-sndp.fi/metadata?id=".concat(e,"&brand=").concat(t,"&playlist=").concat("playlist"===n),s="https://audio-".concat(a,".sanoma-sndp.fi/metadata?id=").concat(e,"&brand=").concat(t,"&playlist=").concat("playlist"===n),o=await (0,i.Cr)({url:"prod"===a||"qa"===a?r:s,getValidSessionToken:l});if(!o)throw Error("Couldn't parse honk meta data");return o}},4797:(e,t,a)=>{"use strict";a.d(t,{z:()=>r});var i=a(27964),l=a(14232),n=a(2200);let r=e=>{let t,a=(0,i.c)(2),r=(0,l.useRef)(!1);a[0]!==e?(t=()=>{r.current||(r.current=!0,(0,n.X5)((t,a)=>{a&&"useractioncomplete"===t.eventStatus&&e()}))},a[0]=e,a[1]=t):t=a[1],(0,l.useEffect)(t)}},13725:(e,t,a)=>{"use strict";a.d(t,{p:()=>J});var i=a(37876),l=a(27964),n=a(18858),r=a(72848),s=a(23191),o=a(63593),c=a(14232);let d=(e,t)=>{let{"html.gns.extended-access.enabled":a}=e,{enableGoogleExtendedAccessOnArticlePage:i}=t;return!0===a&&i},u=(0,c.createContext)(null),m=e=>{let t,a,r=(0,l.c)(5),{children:s}=e,[m,f]=(0,c.useState)(void 0),p=(0,n.R7)(),h=(0,o.g$)();r[0]!==m?(t={gnsEaToken:m,setGnsEaToken:f},r[0]=m,r[1]=t):t=r[1];let x=t;return d(p,h)?(r[2]!==s||r[3]!==x?(a=(0,i.jsx)(u.Provider,{value:x,children:s}),r[2]=s,r[3]=x,r[4]=a):a=r[4],a):s},f=()=>{let e=(0,l.c)(1),t=(0,c.useContext)(u);if(!d((0,n.R7)(),(0,o.g$)())){let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={gnsEaToken:void 0,setGnsEaToken:p},e[0]=t):t=e[0],t}if(!t)throw Error("useGoogleExtendedAccess must be used within a GoogleExtendedAccessProvider");return t};function p(){}var h=a(92739),x=a(51799),g=a(51144),v=a(89099),b=a(67486),j=a.n(b),y=a(59712),k=a(74730),A=a(76984),_=a(88984);let N=e=>{if([g.J.AutoWelcomeBack,g.J.Unknown].includes(e.authenticationStatus)||e.authenticationStatus===g.J.Unauthenticated)return{granted:!1};if(e.authenticationStatus===g.J.Authenticated){let t=e.subscriptionDetails.isSubscriber?{granted:!0,grantReason:"SUBSCRIBER"}:{granted:!1},a=e.created?Math.round(new Date(e.created).getTime()/1e3):void 0;return{id:e.hashedAccountId,registrationTimestamp:a,...t}}return{granted:!1}},w=()=>{let e,t,a,u,m,p,b=(0,l.c)(20),w=(0,r.P)(),{userProfile:S}=(0,h.sb)(),I=(0,n.R7)(),C=(0,o.g$)(),{googleExtendedAccess:T,"hosts.sanomaSSO":P}=(0,s.U)(),{setGnsEaToken:E}=f(),{query:D}=(0,v.useRouter)(),{spcx:L}=(0,x.h)(),[F,B]=(0,c.useState)(!1);if(b[0]!==I||b[1]!==L||b[2]!==C||b[3]!==D||b[4]!==S.authenticationStatus){let t;e=d(I,C)&&(t=Object.keys(D),["gaa_at","gaa_n","gaa_sig","gaa_ts"].every(e=>t.includes(e)))&&L&&![g.J.Unknown,g.J.AutoWelcomeBack].includes(S.authenticationStatus),b[0]=I,b[1]=L,b[2]=C,b[3]=D,b[4]=S.authenticationStatus,b[5]=e}else e=b[5];let R=e;return(b[6]!==R?(t=()=>{R&&(0,y.PQ)("scripts loaded")},a=[R],b[6]=R,b[7]=t,b[8]=a):(t=b[7],a=b[8]),(0,c.useEffect)(t,a),R)?(b[9]===Symbol.for("react.memo_cache_sentinel")?(u=(0,i.jsx)(j(),{"data-testid":"gsi-script",async:!0,src:"https://accounts.google.com/gsi/client",defer:!0,onLoad:()=>{B(!0)}}),b[9]=u):u=b[9],b[10]!==w||b[11]!==I||b[12]!==T||b[13]!==F||b[14]!==P||b[15]!==E||b[16]!==S?(m=F&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j(),{"data-testid":"swg-script",async:!0,src:"https://news.google.com/swg/js/v1/swg.js","subscriptions-control":"manual"}),(0,i.jsx)(j(),{"data-testid":"swg-gaa-script",async:!0,src:"https://news.google.com/swg/js/v1/swg-gaa.js",onLoad:()=>{let e;window.GaaMetering.init({paywallType:"CLIENT_SIDE",allowedReferrers:[new URL(P).host],googleApiClientId:T.googleApiClientId,handleLoginPromise:new Promise((e,t)=>
1{window.GaaMetering.getLoginPromise().then(()=>{(0,y.PQ)("login");let t=(0,k.ZX)(w,I);window.location.href=t,e()}).catch(e=>{console.error(e),t(e)})}),registerUserPromise:new Promise((e,t)=>{window.GaaMetering.getGaaUserPromise().then(t=>{if(!("credential"in t))return void e();let a=(0,A.s)(t.credential),i=(0,k.Ln)(w,I,{firstName:a.given_name,lastName:a.family_name,email:a.email});(0,y.PQ)("register"),window.location.href=i,e()}).catch(e=>{console.error(e),t(e)})}),publisherEntitlementPromise:(e=S,new Promise(t=>{t(N(e))})),showPaywall:()=>{let e;(e=document.querySelector(".paywall-section"))&&(0,_.P)(e),(0,y.PQ)("show paywall")},unlockArticle:e=>{"string"==typeof(null==e?void 0:e.raw)?(E(e.raw),(0,y.PQ)("unlock article")):(0,y.PQ)("unlock article failed","Invalid entitlements")},userState:N(S)})}})]}),b[10]=w,b[11]=I,b[12]=T,b[13]=F,b[14]=P,b[15]=E,b[16]=S,b[17]=m):m=b[17],b[18]!==m?(p=(0,i.jsxs)(i.Fragment,{children:[u,m]}),b[18]=m,b[19]=p):p=b[19],p):null};var S=a(54056),I=a(85933);let C=e=>{let t,a=(0,l.c)(2),{children:n}=e;return a[0]!==n?(t=(0,i.jsx)("div",{className:"fadeout-above paywall-section",children:n}),a[0]=n,a[1]=t):t=a[1],t};var T=a(61941),P=a(15401),E=a(95961),D=a(61127),L=a(59575),F=a(41951),B=a(18847),R=a.n(B),O=a(60697),W=a(23453),M=a(49154);let z=R()(()=>Promise.all([a.e(7523),a.e(3234),a.e(8916)]).then(a.bind(a,57181)).then(e=>e.ShoppingUI),{loadableGenerated:{webpack:()=>[57181]},ssr:!1,...(0,W.d)()}),U=e=>{let t,a,o=(0,l.c)(21),{forceRefresh:c,funnelId:d,audienceId:u,sectionTheme:m,preSelectedOffer:f,noJsRedirect:p}=e,x=void 0!==p&&p,g=(0,r.P)(),{environment:v}=(0,s.U)(),{assetData:b}=(0,E._)(),j=(0,n.R7)(),{userProfile:y,getValidSessionToken:k,refreshSessionTokenAndUpdateContext:A}=(0,h.sb)(),{isDarkMode:_}=(0,L.DP)(),{handleBrazeCustomEvent:N,requestBrazeBannersRefresh:w}=(0,D.ml)(),S=(0,F.p)();o[0]!==g||o[1]!==m?(t=(0,O.N9)(g,m),o[0]=g,o[1]=m,o[2]=t):t=o[2];let I=t;return o[3]!==b||o[4]!==u||o[5]!==g||o[6]!==j||o[7]!==I||o[8]!==v||o[9]!==c||o[10]!==d||o[11]!==k||o[12]!==N||o[13]!==S||o[14]!==_||o[15]!==x||o[16]!==f||o[17]!==A||o[18]!==w||o[19]!==y?(a=d&&b?(0,i.jsx)(z,{brand:g,domain:(0,O.US)(g),userProfile:(0,M.XI)(y),urls:(0,M.Xg)(g,j,x),env:v,funnelId:d,articleId:b.id.toString(),audienceId:u,onContinueReading:c,getJwtToken:k,refreshUserInfo:A,isDarkMode:_,designSystem:I,...f&&{preSelectedOffer:f},handleBrazeCustomEvent:N,onEventRelayEvent:S,renderBrazeBanner:K,refreshBrazeBanners:w}):(0,i.jsx)(P.J,{}),o[3]=b,o[4]=u,o[5]=g,o[6]=j,o[7]=I,o[8]=v,o[9]=c,o[10]=d,o[11]=k,o[12]=N,o[13]=S,o[14]=_,o[15]=x,o[16]=f,o[17]=A,o[18]=w,o[19]=y,o[20]=a):a=o[20],a};function K(e){return(0,i.jsx)(T._,{productId:e})}var G=a(38679),H=a(59472),V=a(24733),q=a(68646),$=a(34950);let X=e=>{let t,a,d,u,m,f,p,x,g=(0,l.c)(59),{assetId:v,accessHookResult:b}=e,{refreshSession:j,userProfile:A,userIds:_}=(0,h.sb)(),N=(0,r.P)(),{isDarkMode:w}=(0,L.DP)(),{platform:S,useInkAuth:T,iOSExternalLinkAccount:P}=(0,o.g$)(),{assetData:B,setAssetData:R,setIsPaidInDynamicPaywall:O}=(0,E._)(),W=(0,n.R7)(),{handleBrazeCustomEvent:z}=(0,D.ml)(),K=(0,F.p)(),X=(0,H.q)(H.B.ArticlePaywall),J=(0,G.d)(),Z=(0,s.U)(),[Y,Q]=(0,c.useState)(void 0),ee=Y===v;e:{let e;g[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,M.Dh)(),g[0]=e):e=g[0];let a=e;if(a){let{articleId:e,funnelId:i,audienceId:l,preSelectedOfferIndex:n}=a;if(e===v.toString()){let e;g[1]===Symbol.for("react.memo_cache_sentinel")?(e={funnelId:i,audienceId:l,offerIndex:n},g[1]=e):e=g[1],t=e;break e}}t=void 0}let et=t,[ea,ei]=(0,c.useState)(et),{state:el,data:en,response:er}=b;g[2]!==j||g[3]!==er?(a=async()=>{await j(!0),Q(void 0),await er.mutate()},g[2]=j,g[3]=er,g[4]=a):a=g[4];let es=a;g[5]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{ei(e)},g[5]=d):d=g[5];let eo=d;g[6]!==T?(u=(e,t)=>{(0,y.q4)(e,T,t)},g[6]=T,g[7]=u):u=g[7];let ec=u;g[8]!==B||g[9]!==R||g[10]!==O?(m=e=>{var t;(null==B?void 0:B.sectionId)&&(0,$.BG)(B)?R({...B,links:e.partialArticle.links,splitBody:e.partialArticle.splitBody,mainVideo:e.partialArticle.mainVideo,summary:e.partialArticle.summary}):(0,$.JK)(B)&&R({...B,links:e.partialArticle.links,splitBody:e.partialArticle.splitBody,mainVideo:e.partialArticle.mainVideo}),O(null!=(t=e.isPaidInDynamicPaywall)&&t)},g[8]=B,g[9]=R,g[10]=O,g[11]=m):m=g[11];let ed=m;
1if(g[12]!==ee||g[13]!==v||g[14]!==en||g[15]!==ed||g[16]!==el?(f=()=>{!ee&&el===I.MB.GRANTED&&en&&(ed(en),Q(v))},p=[ee,v,en,ed,el],g[12]=ee,g[13]=v,g[14]=en,g[15]=ed,g[16]=el,g[17]=f,g[18]=p):(f=g[17],p=g[18]),(0,c.useEffect)(f,p),el===I.MB.GRANTED)return(0,M.HQ)(),null;if(S===I.OD.Android&&!J)return null;if(el===I.MB.DENIED){let e,t,a,l,n,r;if(ea){let e,t=(null==B?void 0:B.resourceType)==="Article"?B.sectionTheme:void 0;return g[19]!==es||g[20]!==ea.audienceId||g[21]!==ea.funnelId||g[22]!==ea.offerIndex||g[23]!==t?(e=(0,i.jsx)("div",{"data-testid":"shopping-container",className:"fadeout-above",children:(0,i.jsx)(U,{forceRefresh:es,funnelId:ea.funnelId,audienceId:ea.audienceId,sectionTheme:t,preSelectedOffer:ea.offerIndex})}),g[19]=es,g[20]=ea.audienceId,g[21]=ea.funnelId,g[22]=ea.offerIndex,g[23]=t,g[24]=e):e=g[24],e}let s=null==B?void 0:B.analyticsMetadataV2;g[25]!==Z?(e=(0,q.AR)(Z),g[25]=Z,g[26]=e):e=g[26];let o=null!=S?S:I.OD.Web;return g[27]!==A.authenticationStatus?(t=(0,q.FH)(A.authenticationStatus),g[27]=A.authenticationStatus,g[28]=t):t=g[28],g[29]!==N||g[30]!==W?(a=(0,k.ZX)(N,W),g[29]=N,g[30]=W,g[31]=a):a=g[31],g[32]!==N||g[33]!==W?(l=(0,k.Ln)(N,W),g[32]=N,g[33]=W,g[34]=l):l=g[34],g[35]!==J||g[36]!==S?(n=(0,V.Gq)(J,S),g[35]=J,g[36]=S,g[37]=n):n=g[37],g[38]!==b||g[39]!==B||g[40]!==v||g[41]!==N||g[42]!==z||g[43]!==ec||g[44]!==K||g[45]!==X||g[46]!==P||g[47]!==w||g[48]!==o||g[49]!==t||g[50]!==a||g[51]!==l||g[52]!==n||g[53]!==s||g[54]!==e||g[55]!==_.profileId||g[56]!==_.testGroupData?(r=(0,i.jsx)(C,{children:(0,i.jsx)(I.$p,{assetId:v,assetData:B,analyticsMetadataV2:s,env:e,platform:o,brand:N,isDarkMode:w,authState:t,loginUrl:a,registerUrl:l,isGoogleAccountAllowedToSubscribe:n,iOSExternalLinkAccount:P,profileId:_.profileId,testGroupData:_.testGroupData,accessHookResult:b,onRequestEmbeddedFunnel:eo,onCDPAnalyticsEvent:ec,onBrazeCustomEvent:z,onEventRelayEvent:K,onLinkClick:X})}),g[38]=b,g[39]=B,g[40]=v,g[41]=N,g[42]=z,g[43]=ec,g[44]=K,g[45]=X,g[46]=P,g[47]=w,g[48]=o,g[49]=t,g[50]=a,g[51]=l,g[52]=n,g[53]=s,g[54]=e,g[55]=_.profileId,g[56]=_.testGroupData,g[57]=r):r=g[57],r}return g[58]===Symbol.for("react.memo_cache_sentinel")?(x=(0,i.jsx)("div",{"data-ab":"paywall-loading","data-testid":"paywall-loading"}),g[58]=x):x=g[58],x},J=e=>{let t,a,r,s=(0,l.c)(7);if(!d((0,n.R7)(),(0,o.g$)())){let t;return s[0]!==e?(t=(0,i.jsx)(Z,{...e}),s[0]=e,s[1]=t):t=s[1],t}return s[2]!==e?(t=(0,i.jsx)(Z,{...e}),s[2]=e,s[3]=t):t=s[3],s[4]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsx)(w,{}),s[4]=a):a=s[4],s[5]!==t?(r=(0,i.jsxs)(m,{children:[t,a]}),s[5]=t,s[6]=r):r=s[6],r},Z=e=>{let t,a=(0,l.c)(3),{assetId:n}=e,{gnsEaToken:r}=f(),s=(0,S.I)(n,r);return a[0]!==s||a[1]!==n?(t=(0,i.jsx)(X,{assetId:n,accessHookResult:s}),a[0]=s,a[1]=n,a[2]=t):t=a[2],t}},14400:(e,t,a)=>{"use strict";a.d(t,{J:()=>m});var i=a(37876),l=a(27964),n=a(23191),r=a(28315),s=a(69998),o=a(18847),c=a.n(o),d=a(23453);let u=c()(()=>Promise.all([a.e(1306),a.e(5039)]).then(a.t.bind(a,21306,19)).then(e=>e.SupersaaWeatherWidget),{loadableGenerated:{webpack:()=>[21306]},ssr:!1,...(0,d.d)()}),m=e=>{let t,a,o=(0,l.c)(8),{id:c}=e,d=(0,s.g)(),{supersaaWidgetEnv:m}=(0,n.U)(),{position:f}=(0,r.u)(),p=c?"weather-widget-".concat(c):void 0,h="main"===f;return o[0]!==d||o[1]!==m||o[2]!==h?(t=(0,i.jsx)(u,{env:m,isMainLane:h,inkAppParams:d}),o[0]=d,o[1]=m,o[2]=h,o[3]=t):t=o[3],o[4]!==c||o[5]!==p||o[6]!==t?(a=(0,i.jsx)("div",{id:p,"data-id":c,className:"weather-widget-container",children:t}),o[4]=c,o[5]=p,o[6]=t,o[7]=a):a=o[7],a}},15401:(e,t,a)=>{"use strict";a.d(t,{J:()=>u});var i=a(37876),l=a(27964),n=a(55384),r=a(72872);function s(e){let t,a,n,r,s=(0,l.c)(8),{primaryMessage:o,secondaryMessage:c}=e,d=void 0===o?"Jokin on rikki.":o,u=void 0===c?"Yrit\xe4 ladata sivu uudelleen hetken kuluttua.":c;return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("style",{children:"\n body {\n background-color: #e9eaed;\n color: #333;\n -webkit-font-smoothing: antialiased;\n height: 100%;\n height: calc(100vh - 16px);\n font-family: Helvetica, Arial, sans-serif;\n margin: 8px;\n }\n \n .sndp-dark body {\n background-color: #101010FF;\n color: #F0EBE6FF;\n }\n\n .site-wrapper {\n height: 100%;\n }\n\n .content-wrapper {\n position: absolute;\n margin: auto;\n height: 265px;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n }\n\n h4 {\n color: #000000;\n text-transform: uppercase;\n font-weight: 700;\n }\n \n .sndp-dark h4 {\n color: #F0EBE6FF;\n }\n\n h4,\n p.error-message {\n font-size: 120%;\n text-align: center;\n }\n\n @media (max-width: 420px) {\n body {\n margin: 0;\n height: 100vh;\n }\n }\n "}),s[0]=t):t=s[0],s[1]!==d?(a=(0,i.jsx)("h4",{className:"error-header",children:d}),s[1]=d,s[2]=a):a=s[2],s[3]!==u?(n=(0,i.jsx)("p",{className:"error-message",children:u}),s[3]=u,s[4]=n):n=s[4],s[5]!==a||s[6]!==n?(r=(0,i.jsx)("div",{className:"site-wrapper",children:(0,i.jsxs)("div",{className:"content-wrapper",children:[t,a,n]})}),s[5]=a,s[6]=n,s[7]=r):r=s[7],r}var o=a(72848),c=a(14232),d=a(59712);function u(e){let t,a,u,m=(0,l.c)(5),{brandStyleSheetIsProvided:f}=e,p=void 0===f||f,h=(0,o.P)();return m[0]!==h?(t=()=>{(0,d.$)({event:"eventInfo",eventCategory:"application",eventAction:"error",eventLabel:"unhandledErrorPage"}),n.datadogLogs.onReady(()=>{n.datadogLogs.logger.error("UnhandledErrorPage got displayed for the user",{brand:h})})},a=[h],m[0]=h,m[1]=t,m[2]=a):(t=m[1],a=m[2]),(0,c.useEffect)(t,a),m[3]!==p?(u=p?(0,i.jsx)("div",{className:"flex justify-center",children:(0,i.jsx)(r.K,{primaryMessage:"Jokin on rikki.",secondaryMessage:"Yrit\xe4 ladata sivu uudelleen hetken kuluttua."})}):(0,i.jsx)(s,{}),m[3]=p,m[4]=u):u=m[4],u}},18706:(e,t,a)=>{"use strict";a.d(t,{Y:()=>A});
1var i=a(37876),l=a(27964),n=a(15039),r=a.n(n),s=a(7982),o=a(70864),c=a(87485),d=a(97843),u=a(39149),m=a.n(u),f=a(14232),p=a(63534),h=a(59712),x=a(74730);let g=e=>{let t,a,n,r=(0,l.c)(9),{tag:s,ref:o}=e;return s.title?(r[0]!==s.key||r[1]!==s.url?(t=(0,x.N2)(s.key,s.url),r[0]=s.key,r[1]=s.url,r[2]=t):t=r[2],r[3]!==s.title?(a=(0,i.jsx)("span",{className:b,children:s.title}),r[3]=s.title,r[4]=a):a=r[4],r[5]!==o||r[6]!==t||r[7]!==a?(n=(0,i.jsx)(p.N,{forwardRef:o,className:v,href:t,onClick:j,children:a}),r[5]=o,r[6]=t,r[7]=a,r[8]=n):n=r[8],n):null},v=r()("group","transition-[padding]","duration-200","active:px-(--tag-padding-x-outer-active)","active:py-(--tag-padding-y-outer-active)"),b=r()("rounded-nof-large","tag-font","inline-block","border-(length:--tag-border-width)","border-(color:--tag-border-color)","bg-(--tag-bg-color)","px-(--tag-padding-x)","py-(--tag-padding-y)","text-(--tag-fg-color)","outline-(color:--tag-border-color)","transition-[padding]","duration-200","group-hover:outline","group-hover:outline-(length:--tag-outline-width-hover)","group-active:px-(--tag-padding-x-active)","group-active:py-(--tag-padding-y-active)","group-active:outline","group-active:outline-(length:--tag-outline-width-active)");function j(){(0,h.XE)("in article","Article tag")}let y=e=>{let{tags:t}=e,[a,l]=(0,f.useState)(!1),[n,s]=(0,f.useState)(t.length),[u,p]=(0,f.useState)(!0),h=(0,f.useRef)([]),x=(0,f.useRef)(null),v=(0,f.useCallback)(()=>{x.current&&(s(k(x.current,h.current)),p(!1))},[]),b=(0,f.useCallback)(()=>{p(!0)},[]);if((0,d.l)("resize",m()(b,50)),(0,f.useLayoutEffect)(()=>{u&&v()},[v,u]),0===t.length)return null;h.current.length!==t.length&&(h.current=Array(t.length));let j=a||u?t.length:n,y=n!==t.length;return(0,i.jsxs)("div",{ref:x,id:"article-tags",className:r()("pb-nof-16 gap-nof-12 relative flex flex-wrap items-center",y&&a&&"pr-[36px]"),children:[t.slice(0,j).map((e,t)=>e.title&&(0,i.jsx)(g,{ref:e=>{h.current[t]=e},tag:e},e.key)),y&&(0,i.jsx)("button",{"aria-label":a?"Piilota kaikki aiheet":"N\xe4yt\xe4 kaikki aiheet","aria-controls":"article-tags","aria-expanded":a,className:r()("text-nof-foreground-primary absolute top-0 right-0",!a&&"ml-auto"),onClick:()=>{l(e=>!e)},children:a?(0,i.jsx)(c.K,{}):(0,i.jsx)(o.Z,{})})]})},k=(e,t)=>{let a=t.map(e=>null==e?void 0:e.getBoundingClientRect()),i=0;for(let t=1;t<a.length;t++){let l=a[t],n=a[t-1];if(!l||!n)break;let r=t===a.length-1,s=e.getBoundingClientRect().right-36*!r,o=l.left<=n.right,c=l.right<s;if(o||!c)break;i=t}return i+1},A=e=>{let t,a=(0,l.c)(3),{tags:n,stripped:o}=e;return a[0]!==o||a[1]!==n?(t=n&&n.length>0?(0,i.jsxs)("div",{className:r()("w-full",!o&&"border-nof-neutral-contrast-low py-nof-16 border-t border-b"),"data-testid":"tags",children:[!o&&(0,i.jsx)(s.$,{level:"h3",className:"my-nof-16 article-tail-title",title:"Seuraa ja lue artikkeliin liittyvi\xe4 aiheita"}),(0,i.jsx)(y,{tags:n})]}):null,a[0]=o,a[1]=n,a[2]=t):t=a[2],t}},23641:(e,t,a)=>{"use strict";a.d(t,{R:()=>w});var i=a(37876),l=a(27964),n=a(34063),r=a(78978),s=a(64357),o=a(79808),c=a(76577),d=a(93157),u=a(80067),m=a(4597),f=a(37206);function p(e){let t=e.getAttribute(r.L.ea);null!=t&&s.Ay.rr()&&s.Ay.removeSubscription(t),e&&e.parentNode&&e.parentNode.removeChild(e)}let h="data-ab-banner-placement-id";function x(e,t){if(e.os()){let t;return(t=document.createElement("div")).id=e.id,t.className="ab-html-control-banner",t.setAttribute(h,e.placementId),t}let a=document.createElement("iframe");return a.id=e.id,t&&a.setAttribute("nonce",t),a.className="ab-html-banner",a.setAttribute(h,e.placementId),a.setAttribute("title","Banner"),(0,d.Te)(a,e.html,t),a.onload=()=>{let t=a.contentWindow,i=t.document.getElementsByTagName("title");i&&i.length>0&&a.setAttribute("title",i[0].textContent||"");let l=Object.assign(Object.assign({},(0,d.KV)(a)),{logClick:function(){!function(e,t){if(!s.Ay.rr())return;if(!(e instanceof u.A))return n.A.error("Banner argument to logBannerClick must be an Banner object.");let a=m.A.o(),i=a.k();0===(0,f.HP)(i).length?n.A.info("Not logging banner click. No banners exist."):i[e.placementId]?a.Ct(e,t):n.A.info(`Not logging banner click for ID ${e.placementId}. The placement ID did not correspond to any banner.`)}(e,...arguments)},closeMessage:function(){let t;(t=document.getElementById(e.id))&&p(t),function(e){if(!s.Ay.rr())return;if(!(e instanceof u.A))return n.A.error("Banner argument to logBannerDismissal must be a Banner object.");let t=m.A.o(),a=t.k();0===(0,f.HP)(a).length?n.A.info("Not logging banner dismissal. No banners exist."):a[e.placementId]?t.wt(e):n.A.info(`Not logging banner dismissal for ID ${e.placementId}. The placement ID did not correspond to any banner.`)}(e)},setBannerHeight:e=>{isNaN(e)||!isFinite(e)||e<0?n.A.warn(`Invalid banner height: ${e}`):a.style.height=`${e}px`}});t.brazeBridge=l,t.appboyBridge=l,t.dispatchEvent(new CustomEvent("ab.BridgeReady"))},a}let g=function(e){return null!=e&&!!e.getAttribute("data-ab-had-top-impression")},v=function(e){return null!=e&&!!e.getAttribute("data-ab-had-bottom-impression")};var b=a(82793),j=a(55679);function y(){let e=document.querySelectorAll(".ab-html-banner, .ab-html-control-banner"),t=[];for(let a=0;a<e.length;a++){let i=e[a],l=i.getAttribute(h);if(!l)continue;let n=g(i),r=v(i);if(n&&r)continue;let s=(0,c.Kz)(i),o=(0,c.K)(i);s&&!n&&null!=i&&i.setAttribute("data-ab-had-top-impression","true"),o&&!r&&null!=i&&i.setAttribute("data-ab-had-bottom-impression","true"),g(i)&&v(i)&&t.push(l)}t.length>0&&function(e){if(!s.Ay.rr()||!e||e.length<=0)return;let t=m.A.o(),a=t.k();if(0===(0,f.HP)(a).length)return n.A.info("Not logging banners impression. No banners exist.");let i=t.Wt(),l=!1;if(Object.keys(i).some(e=>void 0!==a[e])){let e={};for(let t of Object.keys(i)){let l=a[t];l&&i[t]&&(e[l.id]=!0)}i=e,l=!0}let r=[];for(let t of e){let e=a[t];e?i[e.id]?n.A.info(`Not logging banners impression for ID ${t}. This ID was already logged this session.`):(i[e.id]=!0,r.push(e.id)):n.A.info(`Not logging banners impression for ID ${t}. The placement ID did not correspond to any banner.`)}0===r.length?l&&t.Mt(i):(t.Mt(i),j.A.Dt(b.w.ro,{ids:r}).lt)}(t)}var k=a(98203),A=a(72848),_=a(61127),N=a(14232);let w=e=>{let t,a,d,u=(0,l.c)(7),{placement:m,banner:f,className:h}=e,{shouldLoadBraze:g}=(0,_.ml)(),v=(0,A.P)(),b=(0,N.useRef)(null);if(u[0]!==f||u[1]!==g?(t=()=>{b.current&&g&&f&&function(e,t){if(!s.Ay.rr())return;if(!e)return n.A.error("Not inserting banner: banner was not provided.");if(!t)return n.A.error("Not inserting banner: parentNode was not provided.");if(!s.Ay.er(s.lw.nr))return n.A.error("Banners are disabled. Use the 'allowUserSuppliedJavascript' option for braze.initialize to enable these messages.");(0,o.n)(void 0,"banner",".ab-html-banner{width:100%;height:100%;border:none;display:block}.ab-html-control-banner{width:0;height:0;margin:0;border:none}");let a=x(e,s.Ay.er(s.lw.sr)),i=(0,k.j)(i=>{let l=i[e.placementId];l?t.replaceChildren(x(l,s.Ay.er(s.lw.sr))):p(a)});i&&a.setAttribute(r.L.ea,i),t.replaceChildren(a),(0,c.P4)(window,"scroll",y),y()}(f,b.current)},a=[f,g],u[0]=f,u[1]=g,u[2]=t,u[3]=a):(t=u[2],a=u[3]),(0,N.useEffect)(t,a),!g||!f)return null;let j="cep-banner-".concat(v,"_").concat(m);return u[4]!==h||u[5]!==j?(d=(0,i.jsx)("div",{ref:b,"data-testid":j,className:h}),u[4]=h,u[5]=j,u[6]=d):d=u[6],d}},25062:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});let i={src:"/_next/static/media/google-play.65510b40.svg",height:71,width:239,blurWidth:0,blurHeight:0}},27815:(e,t,a)=>{"use strict";a.d(t,{S:()=>d});var i=a(37876),l=a(27964),n=a(56),r=a(72848),s=a(31064),o=a(60697),c=a(25214);let d=e=>{let t,a,d,u,m=(0,l.c)(11),{asset:f}=e,p=(0,r.P)();if(m[0]!==f||m[1]!==p){var h;let e,i=f.mainPicture?(0,n.PF)(f.mainPicture.url,c.fW):"",l=(e=>{switch(e.resourceType){case"Article":case"Advertorial":return{author:{"@type":"Person",name:e.byLine},headline:e.title,isAccessibleForFree:e.paidType===s.H.free||e.paidType===s.H.metered,description:e.ingress,hasPart:{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".paywall-section"}};
1case"Recipe":return{name:e.title,description:e.ingress,totalTime:e.cookingDuration,recipeYield:e.portionSize,nutrition:{"@type":"NutritionInformation",calories:e.calories}};default:return{}}})(f),r="Recipe"===f.resourceType?"Recipe":"NewsArticle",d=f.displayDate,u=(0,o.w9)(p);m[4]!==p?(e=(0,o.JX)(p),m[4]=p,m[5]=e):e=m[5],a="application/ld+json",t=JSON.stringify({"@context":"https://schema.org","@type":r,mainEntityOfPage:{"@type":"WebPage","@id":null!=(h=f.shareUrl)?h:f.id},image:i,dateModified:d,publisher:{name:(0,o.w9)(p),"@type":"Organization"},isPartOf:{"@type":["CreativeWork","Product"],name:u,productID:"".concat(e,".fi:showcase")},...l}),m[0]=f,m[1]=p,m[2]=t,m[3]=a}else t=m[2],a=m[3];return m[6]!==t?(d={__html:t},m[6]=t,m[7]=d):d=m[7],m[8]!==a||m[9]!==d?(u=(0,i.jsx)("script",{type:a,dangerouslySetInnerHTML:d}),m[8]=a,m[9]=d,m[10]=u):u=m[10],u}},30691:(e,t,a)=>{"use strict";a.d(t,{e:()=>f});var i=a(37876),l=a(27964),n=a(72696),r=a(72848),s=a(92739),o=a(51144),c=a(18847),d=a.n(c),u=a(23453);let m=d()(()=>Promise.all([a.e(3234),a.e(6363)]).then(a.bind(a,3570)).then(e=>e.UserCommentsWidget),{loadableGenerated:{webpack:()=>[3570]},ssr:!1,...(0,u.d)()}),f=e=>{let t=(0,l.c)(7),{id:a}=e,c=(0,r.P)(),{userProfile:d,getValidSessionToken:u}=(0,s.sb)();switch(d.authenticationStatus){case o.J.Authenticated:case o.J.Unauthenticated:{let e,l,r="/api/commenting/".concat(c);return t[0]!==c||t[1]!==u||t[2]!==r?(e=(0,i.jsx)(n.t,{children:(0,i.jsx)(m,{commentRepoBasePath:r,brand:c,getJwtToken:u})}),t[0]=c,t[1]=u,t[2]=r,t[3]=e):e=t[3],t[4]!==a||t[5]!==e?(l=(0,i.jsx)("article",{"data-id":a,className:"mb-nof-16",children:e}),t[4]=a,t[5]=e,t[6]=l):l=t[6],l}case o.J.AutoWelcomeBack:case o.J.Unknown:default:return null}}},32045:(e,t,a)=>{"use strict";a.d(t,{Tj:()=>R,RS:()=>W,HL:()=>O,_v:()=>B});var i=a(25037),l=a(71497),n=a(96078),r=a(97388),s=a(64410);let o={adMarkerColor:"#ffffff",textColor:s.OOP,buttonColor:s.RlT,timelineProgressColor:s.F4K,timelineBackgroundColor:s.lVM,fontFamily:s.E4v,fontFamilyNumeric:s.E4v,titleFontWeight:s.Daf,titleFontSize:s.jox},c={adMarkerColor:"#ffffff",textColor:r.OOP,buttonColor:r.RlT,timelineProgressColor:r.F4K,timelineBackgroundColor:s.TlN,fontFamily:s.E4v,fontFamilyNumeric:s.E4v,titleFontWeight:s.Daf};var d=a(17578),u=a(32568),m=a(94733),f=a(50697);let p={adMarkerColor:"#ffffff",textColor:u.OOP,buttonColor:u.RlT,timelineProgressColor:u.F4K,timelineBackgroundColor:u.sXM,fontFamily:u.E4v,fontFamilyNumeric:u.E4v,titleFontWeight:u.Daf,titleFontSize:u.jox},h={adMarkerColor:"#ffffff",textColor:f.OOP,buttonColor:f.es0,timelineProgressColor:f.F4K,timelineBackgroundColor:f.NtC,fontFamily:f.E4v,fontFamilyNumeric:f.E4v,titleFontWeight:f.Daf,titleFontSize:f.jox},x={adMarkerColor:"#ffffff",textColor:d.OOP,buttonColor:d.RlT,timelineProgressColor:d.F4K,timelineBackgroundColor:u.kEL,fontFamily:u.E4v,fontFamilyNumeric:u.E4v,titleFontWeight:u.Daf,titleFontSize:u.jox},g={adMarkerColor:"#ffffff",textColor:m.OOP,buttonColor:f.es0,timelineProgressColor:m.F4K,timelineBackgroundColor:u.kEL,fontFamily:f.E4v,fontFamilyNumeric:f.E4v,titleFontWeight:f.Daf,titleFontSize:f.jox};var v=a(71473),b=a(34485),j=a(65912),y=a(54286);let k={adMarkerColor:"#ffffff",textColor:b.OOP,buttonColor:b.RlT,timelineProgressColor:b.F4K,timelineBackgroundColor:b.ITF,fontFamily:b.E4v,fontFamilyNumeric:b.E4v,titleFontWeight:b.Daf,titleFontSize:b.jox},A={adMarkerColor:"#ffffff",textColor:y.OOP,buttonColor:y.RlT,timelineProgressColor:y.F4K,timelineBackgroundColor:b.ITF,fontFamily:y.E4v,fontFamilyNumeric:y.E4v,titleFontWeight:y.Daf,titleFontSize:y.jox},_={adMarkerColor:"#ffffff",textColor:v.OOP,buttonColor:v.RlT,timelineProgressColor:v.F4K,timelineBackgroundColor:b.PKR,fontFamily:b.E4v,fontFamilyNumeric:b.E4v,titleFontWeight:b.Daf},N={adMarkerColor:"#ffffff",textColor:j.OOP,buttonColor:j.RlT,timelineProgressColor:j.F4K,timelineBackgroundColor:b.PKR,fontFamily:y.E4v,fontFamilyNumeric:y.E4v,titleFontWeight:y.Daf},w={adMarkerColor:"#ffffff",textColor:s.OOP,buttonColor:s.RlT,timelineProgressColor:s.F4K,timelineBackgroundColor:s.lVM,fontFamily:s.E4v,fontFamilyNumeric:s.E4v,titleFontWeight:s.dfg,titleFontSize:s.jox},S={adMarkerColor:"#ffffff",textColor:r.OOP,buttonColor:r.RlT,timelineProgressColor:r.F4K,timelineBackgroun
1dColor:s.TlN,fontFamily:s.E4v,fontFamilyNumeric:s.E4v,titleFontWeight:s.dfg,titleFontSize:s.jox},I={adMarkerColor:"#ffffff",textColor:u.OOP,buttonColor:u.RlT,timelineProgressColor:u.F4K,timelineBackgroundColor:u.sXM,fontFamily:u.E4v,fontFamilyNumeric:u.E4v,titleFontSize:u.jox,titleFontWeight:u.dfg},C={adMarkerColor:"#ffffff",textColor:f.OOP,buttonColor:f.es0,timelineProgressColor:f.F4K,timelineBackgroundColor:u.sXM,fontFamily:f.E4v,fontFamilyNumeric:f.E4v,titleFontSize:f.jox,titleFontWeight:f.dfg},T={adMarkerColor:"#ffffff",textColor:d.OOP,buttonColor:d.RlT,timelineProgressColor:d.F4K,timelineBackgroundColor:u.kEL,fontFamily:u.E4v,fontFamilyNumeric:u.E4v,titleFontSize:u.jox,titleFontWeight:u.dfg},P={adMarkerColor:"#ffffff",textColor:m.OOP,buttonColor:f.es0,timelineProgressColor:m.F4K,timelineBackgroundColor:u.kEL,fontFamily:f.E4v,fontFamilyNumeric:f.E4v,titleFontSize:f.jox,titleFontWeight:f.dfg},E={adMarkerColor:"#ffffff",textColor:b.OOP,buttonColor:b.RlT,timelineProgressColor:b.F4K,timelineBackgroundColor:b.ITF,fontFamily:b.E4v,fontFamilyNumeric:b.E4v,titleFontWeight:b.dfg,titleFontSize:b.jox},D={adMarkerColor:"#ffffff",textColor:y.OOP,buttonColor:y.RlT,timelineProgressColor:y.F4K,timelineBackgroundColor:b.ITF,fontFamily:y.E4v,fontFamilyNumeric:y.E4v,titleFontWeight:y.dfg,titleFontSize:y.jox},L={adMarkerColor:"#ffffff",textColor:v.OOP,buttonColor:v.RlT,timelineProgressColor:v.F4K,timelineBackgroundColor:b.PKR,fontFamily:b.E4v,fontFamilyNumeric:b.E4v,titleFontWeight:b.dfg,titleFontSize:b.jox},F={adMarkerColor:"#ffffff",textColor:j.OOP,buttonColor:j.RlT,timelineProgressColor:j.F4K,timelineBackgroundColor:b.PKR,fontFamily:y.E4v,fontFamilyNumeric:y.E4v,titleFontWeight:y.dfg,titleFontSize:y.jox},B=(e,t,a)=>{if(!e||"none"===t||!t)return!1;let l=new Date(2024,0,24).valueOf(),n=(0,i.H)(e.displayDate).valueOf();return"Cartoon"!==e.resourceType&&(n>=l||"dev"===a||"test"===a||"preview-test"===a)},R=(e,t,a,i,l,n)=>{var r;let s=((e,t,a,i)=>{if(e){switch(a){case"hs":return"business"===i?t?g:h:t?x:p;case"is":return"mn"===i?t?N:A:t?_:k;default:return t?c:o}}switch(a){case"hs":return"business"===i?t?P:C:t?T:I;case"is":return"menaiset"===i?t?F:D:t?L:E;default:return t?S:w}})(a,t,e,i),d={...s,titleFontSize:null!=(r=null!=n?n:s.titleFontSize)?r:"16px"};return l?{...d,textColor:l,buttonColor:l,timelineProgressColor:l,timelineBackgroundColor:l}:d},O=(e,t,a)=>{let i=(0,l.BW)(a);return(0,n.mp)(e,i,t)},W=(e,t,a)=>{let i=(0,l.BW)(a);return(0,n.mp)(e,i,t)}},33962:(e,t,a)=>{"use strict";a.d(t,{l:()=>J});var i=a(37876),l=a(27964),n=a(54740),r=a(41316),s=a(57744),o=a(15039),c=a.n(o),d=a(63534),u=a(7982),m=a(74730);let f=e=>{let t,a=(0,l.c)(3),{byLine:n,className:r}=e;return a[0]!==n||a[1]!==r?(t=n?(0,i.jsxs)("div",{className:c()("end-byline",r),children:[(0,i.jsx)(u.$,{level:"h3",className:"article-tail-title",title:"Lue lis\xe4\xe4 kirjoittajalta"}),(0,i.jsxs)(d.N,{className:"article-byline",href:(0,m.mp)(n),children:[n," ",(0,i.jsx)(s.f,{size:13,className:"inline"})]})]}):null,a[0]=n,a[1]=r,a[2]=t):t=a[2],t};var p=a(56083),h=a(30049);let x=e=>{let t,a,n=(0,l.c)(6),{picture:r,className:s,enableNativeLazyLoad:o}=e;return n[0]!==s?(t=c()("flex-none",s),n[0]=s,n[1]=t):t=n[1],n[2]!==o||n[3]!==r||n[4]!==t?(a=(0,i.jsx)(p.a,{squareBreakpoint:h.Dy,picture:r,containerClassName:t,maxImageWidth:200,enableNativeLazyLoad:o}),n[2]=o,n[3]=r,n[4]=t,n[5]=a):a=n[5],a};var g=a(84978),v=a(96017),b=a(89702),j=a(72848),y=a(31064),k=a(59712),A=a(40262);let _=e=>{let t,a=(0,l.c)(4),{links:n,hideHeadline:r}=e,s=(0,j.P)();return a[0]!==s||a[1]!==r||a[2]!==n?(t=n&&n.length>0?(0,i.jsxs)("div",{"data-nosnippet":!0,className:"related-articles",children:[!r&&(0,i.jsx)(u.$,{level:"h3",title:"Aiheeseen liittyv\xe4\xe4",className:"article-tail-title my-nof-16"}),n.map((e,t)=>{var a,l,n;return e.url?(0,i.jsxs)(d.N,{href:e.url,className:"related-articles__link",onClick:N,children:[e.picture&&(0,i.jsx)(x,{picture:e.picture,className:c()("related-articles__picture",{"h-full bg-(--teaser-list-writer-picture-bg-color)":null==(a=e.picture)?void 0:a.transparent}),enableNativeLazyLoad:!0}),(0,i.jsxs)("div",{children:[(0,i.jsx)(v.f,{sectionTheme:e.sectionTheme,className:"mb-nof-8"}),(0,i.jsx)(b.R,{className:"mb-nof-12",children:e.classification}),(0,i.jsx)(u.$,{level:"h3",className:"nof-component-teaser-title-xs-mobile sm:nof-component-teaser-title-xs-desktop text-nof-foreground-primary mb-nof-8",title:e.title,storyLogo:e.storyLogo}),(0,i.jsx)(g.g,{paidType:e.paidType,paidIndicatorClassName:"related-articles__paid-indicator",infoRowContent:e.infoRowContent,title:(0,A.cN)(e.paidType,s),paidIndicator:{text:e.paidType===y.H.paid||e.paidType===y.H.archivedPaid?(0,A.cN)(e.paidType,s):"",icon:"icon"},displayDate:e.displayDate,displayDateClassName:"related-articles__display-date",isNegative:!1,category:null==(n=e.assetReference)||null==(l=n.node)?void 0:l.title,contentType:"article"})]})]},t):null})]}):null,a[0]=s,a[1]=r,a[2]=n,a[3]=t):t=a[3],t};function N(){(0,k.XE)("in article","Aiheeseen liittyv\xe4\xe4")}var w=a(95961),S=a(61127),I=a(23641);let C=e=>{var t;let a,n,r,s=(0,l.c)(7),{className:o}=e,{getBanner:c}=(0,S.ml)(),{assetData:d}=(0,w._)(),u=null==d||null==(t=d.analyticsMetadataV2)?void 0:t.page_full_category;
1return(s[0]!==u||s[1]!==c?(n=T(a=c("article_tail"),u),s[0]=u,s[1]=c,s[2]=a,s[3]=n):(a=s[2],n=s[3]),n)?(s[4]!==a||s[5]!==o?(r=(0,i.jsx)(I.R,{placement:"article_tail",banner:a,className:o}),s[4]=a,s[5]=o,s[6]=r):r=s[6],r):null},T=(e,t)=>{if(!e)return!1;let a=e.getStringProperty("article_category");return"all_articles"===a||!!a&&!!t&&t.includes("/".concat(a,"/"))};var P=a(81389),E=a(17924),D=a(18858),L=a(38679),F=a(62498),B=a(14232);let R=()=>{var e;let t,a,n,r,s,o,c=(0,l.c)(18),{assetData:d}=(0,w._)(),u=(0,D.R7)(),m=null==(e=(0,L.d)())?void 0:e.subscribedNotificationCategories,[f,p]=(0,B.useState)(!1),[h,x]=(0,B.useState)(void 0),g=u["html.apps.notification.subscription"];c[0]!==h?(t=e=>{if(e.preventDefault(),null==h?void 0:h.notificationCategory){let e={type:F.oi.SubscribeToNotificationCategory,category:h.notificationCategory};(0,E.Wr)(e),p(!0)}},c[0]=h,c[1]=t):t=c[1];let v=t;return c[2]!==d||c[3]!==g?(a=()=>{var e;d&&g&&x(null!=(e=((e,t)=>{if("Article"===t.resourceType||"Audio"===t.resourceType)return e.find(e=>{var a,i;return(null==(i=e.nodeUrls)?void 0:i.includes(null!=(a=t.nodeUrl)?a:"node does not have url"))?e:void 0})})(g,d))?e:((e,t)=>{if("Article"===t.resourceType||"Audio"===t.resourceType)return e.find(e=>{var a;return(null==(a=t.tags)?void 0:a.some(t=>{var a;return t.url&&(null==(a=e.tagUrls)?void 0:a.includes(t.url))}))?e:void 0})})(g,d))},c[2]=d,c[3]=g,c[4]=a):a=c[4],c[5]!==d||c[6]!==u||c[7]!==g?(n=[d,u,g],c[5]=d,c[6]=u,c[7]=g,c[8]=n):n=c[8],(0,B.useEffect)(a,n),c[9]!==h||c[10]!==m?(r=()=>{(null==h?void 0:h.notificationCategory)&&p(!!(null==m?void 0:m.find(e=>0===h.notificationCategory.localeCompare(e,"en",{sensitivity:"accent"}))))},s=[h,m],c[9]=h,c[10]=m,c[11]=r,c[12]=s):(r=c[11],s=c[12]),(0,B.useEffect)(r,s),c[13]!==h||c[14]!==v||c[15]!==f||c[16]!==m?(o=m&&(null==h?void 0:h.notificationCategory)&&!f?(0,i.jsx)("section",{"data-testid":"app-notification-subscription-container",className:"bg-nof-background-content-elevated border-nof-neutral-contrast-low py-nof-16 border-t",children:(0,i.jsxs)("div",{className:"text-nof-foreground-primary nof-ui-body-medium gap-nof-xsmall px-nof-8 flex w-full items-center justify-between",children:[(0,i.jsx)("p",{"data-testid":"app-notification-subscription-category-label",className:"p-nof-2 font-bold",children:h.label}),(0,i.jsx)(P.$n,{id:"app-notification-subscription-button",label:"Kyll\xe4 kiitos!",variant:P.KT.Primary,onClick:e=>{v(e)}})]})}):null,c[13]=h,c[14]=v,c[15]=f,c[16]=m,c[17]=o):o=c[17],o};var O=a(18706),W=a(63593),M=a(21155),z=a(18847),U=a.n(z),K=a(23453),G=a(41362),H=a(37156);let V=e=>fetch(e).then(e=>e.ok?e.json():null);var q=a(3194);let $=U()(()=>Promise.resolve().then(a.bind(a,51773)),{loadableGenerated:{webpack:()=>[51773]},ssr:!1,...(0,K.d)()}),X=U()(()=>a.e(314).then(a.bind(a,10314)).then(e=>e.ArticleFollowUpQuestions),{loadableGenerated:{webpack:()=>[10314]},ssr:!1,...(0,K.d)()}),J=e=>{var t,a,s;let o,d,m,p,h,x,g,v,b,y,k,A,N,w,S,I,T,P,E=(0,l.c)(53),{asset:D,byLine:L,tags:F,links:z,linksAndTagsCombined:U,className:K,functionButtons:J}=e,[Z,Y]=(0,B.useState)(!1),{showNotificationSubscriptionComponent:Q}=(0,W.g$)(),{showFeedbackAndRectificationForms:ee,articleActionsPosition:et}=(0,M.t)(),ea=(0,j.P)(),ei="Article"===D.resourceType?D.reportCorrectionEmail:void 0;E[0]!==Z?(o=()=>Y(!Z),E[0]=Z,E[1]=o):o=E[1];let el=o,en=!!G.A.followUpQuestionsEnabled[ea],{data:er}=(t=D.id,I=(0,l.c)(2),T=void 0===en||en,P=(0,j.P)(),I[0]!==T?(S={enabled:T},I[0]=T,I[1]=S):S=I[1],(0,H.E)("/api/follow-up-questions/".concat(P,"/").concat(t),V,S)),es=en&&null!=er,eo=!es;E[2]!==eo?(d={disable:eo},E[2]=eo,E[3]=d):d=E[3];let{variant:ec,status:ed}=(0,q.GY)(q.No.FOLLOW_UP_QUESTIONS,d),eu=es&&"C"===ec,em=!(es&&"pending"===ed)&&!eu,ef="article-tail-actions ab-test-article-tail-actions-".concat(et),ep=Z&ⅇE[4]!==ef||E[5]!==ep?(m=c()(ef,{"article-tail-actions__no-border-bottom":ep}),E[4]=ef,E[5]=ep,E[6]=m):m=E[6];let eh="article-tail-actions-".concat(et);(E[7]!==D||E[8]!==ei||E[9]!==J||E[10]!==m||E[11]!==eh||E[12]!==el?(p=(0,i.jsx)(r.o,{className:m,dataAb:eh,asset:D,referer:"site share menu",functionButtons:J,correctionEmail
1:ei,toggleArticleTailForms:el}),E[7]=D,E[8]=ei,E[9]=J,E[10]=m,E[11]=eh,E[12]=el,E[13]=p):p=E[13],E[14]!==D.id||E[15]!==D.shareUrl||E[16]!==D.title||E[17]!==ee||E[18]!==Z)?(h=Z&&ee&&(0,i.jsx)($,{id:D.id,formVariant:"selection",articleInfo:{title:null!=(a=D.title)?a:"",url:null!=(s=D.shareUrl)?s:""},articleTail:!0}),E[14]=D.id,E[15]=D.shareUrl,E[16]=D.title,E[17]=ee,E[18]=Z,E[19]=h):h=E[19],E[20]!==p||E[21]!==h?(x=(0,i.jsxs)(i.Fragment,{children:[p,h]}),E[20]=p,E[21]=h,E[22]=x):x=E[22];let ex=x;E[23]!==L?(g=(0,i.jsx)(f,{byLine:L}),E[23]=L,E[24]=g):g=E[24],E[25]!==Q?(v=Q&&(0,i.jsx)(R,{}),E[25]=Q,E[26]=v):v=E[26];let eg="top"===et&&ex;E[27]!==U?(b=U&&(0,i.jsx)(n.c,{variant:n.K.LowContrast}),E[27]=U,E[28]=b):b=E[28],E[29]!==z||E[30]!==U||E[31]!==F?(y=U&&(z&&z.length>0||F&&F.length>0)&&(0,i.jsx)(u.$,{title:"Artikkeliin liittyv\xe4\xe4",level:"h3",className:"nof-ui-title-small text-nof-foreground-accent pt-nof-32 pb-nof-16"}),E[29]=z,E[30]=U,E[31]=F,E[32]=y):y=E[32],E[33]!==er||E[34]!==z||E[35]!==U||E[36]!==eu||E[37]!==em?(k=eu?(0,i.jsx)(X,{fixture:er}):em?(0,i.jsx)(_,{links:z,hideHeadline:U}):null,E[33]=er,E[34]=z,E[35]=U,E[36]=eu,E[37]=em,E[38]=k):k=E[38],E[39]!==U||E[40]!==F?(A=(0,i.jsx)(O.Y,{tags:F,stripped:U}),E[39]=U,E[40]=F,E[41]=A):A=E[41];let ev="bottom"===et&&ex;return E[42]===Symbol.for("react.memo_cache_sentinel")?(N=(0,i.jsx)(C,{}),E[42]=N):N=E[42],E[43]!==K||E[44]!==g||E[45]!==v||E[46]!==eg||E[47]!==b||E[48]!==y||E[49]!==k||E[50]!==A||E[51]!==ev?(w=(0,i.jsxs)("div",{className:K,"data-testid":"article-tail",children:[g,v,eg,b,y,k,A,ev,N]}),E[43]=K,E[44]=g,E[45]=v,E[46]=eg,E[47]=b,E[48]=y,E[49]=k,E[50]=A,E[51]=ev,E[52]=w):w=E[52],w}},34426:(e,t,a)=>{"use strict";a.d(t,{s:()=>r});var i=a(99142),l=a(71152);let n=i.Ikc({webCdpSegments:i.lqM(i.YOg(i.YjP()))}),r=()=>{if(!(0,l.Bd)())return[];try{var e;let t=localStorage.getItem("sa-segments");if(!t)return[];let a=n.safeParse(JSON.parse(t));return a.success&&null!=(e=a.data.webCdpSegments)?e:[]}catch(e){return[]}}},38982:(e,t,a)=>{"use strict";a.d(t,{r:()=>er,_:()=>el});var i=a(37876),l=a(27964),n=a(15039),r=a.n(n),s=a(41824),o=a(57067),c=a(81389),d=a(10742);let u=e=>{let t,a,n,r,s=(0,l.c)(5),{narrow:o}=e;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("div",{className:"mb-nof-16 inline-flex justify-center",children:(0,i.jsx)(d.L,{size:62})}),a=(0,i.jsx)("h2",{className:"nof-ui-title-medium mb-nof-16",children:"Kirjoita mielipidekirjoitus"}),n=(0,i.jsx)("p",{className:"nof-ui-body-medium mb-nof-16",children:"\xc4rsytt\xe4\xe4k\xf6 vai ihastuttaako jokin asia? Kirjoita siit\xe4 mielipide. Tekstit julkaistaan sek\xe4 verkossa ett\xe4 painetussa lehdess\xe4."}),s[0]=t,s[1]=a,s[2]=n):(t=s[0],a=s[1],n=s[2]);let u="/kirjoitamielipidekirjoitus/?ref=opinion-".concat(void 0!==o&&o?"side":"main");return s[3]!==u?(r=(0,i.jsx)("div",{className:"bg-nof-background-content-default border-b-nof-neutral-contrast-default w-full border-b",children:(0,i.jsxs)("div",{className:"bg-nof-background-content-accent text-nof-foreground-negative p-nof-16 flex flex-col items-center text-center",children:[t,a,n,(0,i.jsx)(c.z9,{link:{href:u},label:"T\xe4st\xe4 kirjoittamaan",variant:c.KT.Secondary})]})}),s[3]=u,s[4]=r):r=s[4],r};var m=a(63534);let f=[{href:"/sarjakuvat/fingerpori/",src:"/_next/static/media/fingerpori_306.3b5c1215.avif",label:"Fingerpori"},{href:"/sarjakuvat/viivijawagner/",src:"/_next/static/media/viivi_ja_wagner_306.6b9f4771.avif",label:"Viivi ja Wagner"},{href:"/sarjakuvat/fokit/",src:"/_next/static/media/fok_it_306.c61e1c8d.avif",label:"Fok_It"},{href:"/sarjakuvat/lassijaleevi/",src:"/_next/static/media/lassi_ja_leevi_306.1e6f43fa.avif",label:"Lassi ja Leevi"},{href:"/sarjakuvat/haraldhirmuinen/",src:"/_next/static/media/hh_306.8d1e3f52.avif",label:"Harald Hirmuinen"},{href:"/sarjakuvat/kamalaluonto/",src:"/_next/static/media/kl_306.9e52190e.avif",label:"Kamala luonto"}],p=()=>{let e,t,a,n=(0,l.c)(3);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)("h2",{className:"nof-component-list-heading-l text-nof-foreground-primary flex-3",children:"Sarjakuvat"}),n[0]=e):e=n[0],n[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsxs)("div",{className:"mb-nof-16 flex",children:[e,(0,i.jsx)(m.N,{href:"/sarjakuvat/",children:(0,i.jsx)("span",{className:"font-hs-helsingin text-nof-foreground-primary text-14 ml-nof-16 self-start font-medium",children:"Lis\xe4\xe4 sarjakuvia"})})]}),n[1]=t):t=n[1],n[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsxs)("div",{className:"bg-nof-background-content-default border-divider-1 px-nof-16 pt-nof-16 w-full border-b",children:[t,(0,i.jsx)("ul",{className:"gap-nof-8 sm:gap-nof-16 grid grid-cols-3",children:f.map(h)})]}),n[2]=a):a=n[2],a};function h(e){let{href:t,src:a,label:l}=e;return(0,i.jsx)("li",{className:"text-center",children:(0,i.jsxs)(m.N,{href:t,children:[(0,i.jsx)("img",{src:a,alt:"",className:"mb-nof-8 sm:mb-nof-16",loading:"lazy"}),(0,i.jsx)("span",{className:"font-hs-helsingin text-15 text-nof-foreground-primary mb-nof-16 block",children:l})]})},t)}let x=[{href:"/kayttaja/",label:"Omat kommentit"},{href:"/kommentit/art-2000006396703.html",label:"Kommentointiohjeet"},{href:"/mielipide/",label:"Verkon mielipidekirjoitukset"},{href:"/kirjoitamielipidekirjoitus/",label:"Mielipidekirjoituksen l\xe4hett\xe4minen"},{href:"/kommentit/art-2000006396771.html",label:"Ohjeistus Vieraskyn\xe4-kirjoituksen l\xe4hett\xe4miseen"}],g=()=>{let e,t,a=(0,l.c)(2);return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)("header",{children:(0,i.jsx)("h2",{className:"mx-nof-16 nof-component-list-heading-s text-nof-foreground-primary border-divider-3 py-nof-16 overflow-hidden border-b",children:"Kommentointi ja mielipiteet"})}),a[0]=e):e=a[0],a[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsxs)("div",{className:"bg-nof-background-content-default w-full",children:[e,(0,i.jsx)("div",{className:"font-hs-helsingin text-15 text-nof-foreground-primary px-nof-16 my-nof-16 leading-20 font-normal",children:(0,i.jsx)("ul",{className:"gap-nof-8 pb-nof-16 flex flex-col",children:x.map(v)})})]}),a[1]=t):t=a[1],t};function v(e){let{href:t,label:a}=e;return(0,i.jsx)("li",{children:(0,i.jsx)(m.N,{href:t,children:a})},t)}var b=a(14232),j=a(66991),y=a(25062);let k={"is.fi":{appIdAndroid:"fi.iltasanomat",appIdIos:"id368549037",webAndroid:"https://play.google.com/store/apps/details?id=fi.iltasanomat&hl
1=fi&referrer=utm_source%3Dis.fi%26utm_medium%3Dreferral%26utm_campaign%3Dlataasivu",webIos:"https://apps.apple.com/fi/app/apple-store/id368549037?pt=350676&ct=lataasivu&mt=8&l=fi"},"hs.fi":{appIdAndroid:"fi.hs.android",appIdIos:"id380643421",webAndroid:"https://play.google.com/store/apps/details?id=fi.hs.android&hl=fi&referrer=utm_source%3Dhs.fi%26utm_medium%3Dreferral%26utm_campaign%3Dlataasivu",webIos:"https://apps.apple.com/fi/app/apple-store/id380643421?pt=350676&ct=lataasivu&mt=8&l=fi"},"aamulehti.fi":{appIdAndroid:"com.almamedia.kioski.aamulehti",appIdIos:"id1037339214",webAndroid:"https://play.google.com/store/apps/details?id=com.almamedia.kioski.aamulehti&hl=fi&referrer=utm_source%3Daamulehti.fi%26utm_medium%3Dreferral%26utm_campaign%3Dlataasivu",webIos:"https://apps.apple.com/fi/app/apple-store/id1037339214?pt=350676&ct=lataasivu&mt=8&l=fi"},"satakunnankansa.fi":{appIdAndroid:"com.almamedia.kioski.satakunnankansa",appIdIos:"id1037351215",webAndroid:"https://play.google.com/store/apps/details?id=com.almamedia.kioski.satakunnankansa&hl=fi&referrer=utm_source%3Dsatakunnankansa.fi%26utm_medium%3Dreferral%26utm_campaign%3Dlataasivu",webIos:"https://apps.apple.com/fi/app/apple-store/id1037351215?pt=350676&ct=lataasivu&mt=8&l=fi"},"janakkalansanomat.fi":{appIdAndroid:"fi.janakkalansanomat",appIdIos:"id6746860665",webAndroid:"https://play.google.com/store/apps/details?id=fi.janakkalansanomat&hl=fi&referrer=utm_source%3Djanakkalansanomat.fi%26utm_medium%3Dreferral%26utm_campaign%3Dlataasivu",webIos:"https://apps.apple.com/fi/app/apple-store/id6746860665?pt=350676&ct=lataasivu&mt=8&l=fi"},"jamsanseutu.fi":{appIdAndroid:"com.almamedia.kioski.jamsanseutu",appIdIos:"id1373784797",webAndroid:"https://play.google.com/store/apps/details?id=com.almamedia.kioski.jamsanseutu&hl=fi&referrer=utm_source%3Djamsanseutu.fi%26utm_medium%3Dreferral%26utm_campaign%3Dlataasivu",webIos:"https://apps.apple.com/fi/app/apple-store/id1373784797?pt=350676&ct=lataasivu&mt=8&l=fi"},"kankaanpaanseutu.fi":{appIdAndroid:"fi.kankaanpaanseutu",appIdIos:"id6746861038",webAndroid:"https://play.google.com/store/apps/details?id=fi.kankaanpaanseutu&hl=fi&referrer=utm_source%3Dkankaanpaanseutu.fi%26utm_medium%3Dreferral%26utm_campaign%3Dlataasivu",webIos:"https://apps.apple.com/fi/app/apple-store/id6746861038?pt=350676&ct=lataasivu&mt=8&l=fi"},"kmvlehti.fi":{appIdAndroid:"com.almamedia.kioski.kmvlehti",appIdIos:"id1373789748",webAndroid:"https://play.google.com/store/apps/details?id=com.almamedia.kioski.kmvlehti&hl=fi&referrer=utm_source%3Dkmvlehti.fi%26utm_medium%3Dreferral%26utm_campaign%3Dlataasivu",webIos:"https://apps.apple.com/fi/app/apple-store/id1373789748?pt=350676&ct=lataasivu&mt=8&l=fi"},"merikarvialehti.fi":{appIdAndroid:"fi.merikarvialehti",appIdIos:"id6746861282",webAndroid:"https://play.google.com/store/apps/details?id=fi.merikarvialehti&hl=fi&referrer=utm_source%3Dmerikarvialehti.fi%26utm_medium%3Dreferral%26utm_campaign%3Dlataasivu",webIos:"https://apps.apple.com/fi/app/apple-store/id6746861282?pt=350676&ct=lataasivu&mt=8&l=fi"},"nokianuutiset.fi":{appIdAndroid:"com.almamedia.kioski.nokianuutiset",appIdIos:"id1373787253",webAndroid:"https://play.google.com/store/apps/details?id=com.almamedia.kioski.nokianuutiset&hl=fi&referrer=utm_source%3Dnokianuutiset.fi%26utm_medium%3Dreferral%26utm_campaign%3Dlataasivu",webIos:"https://apps.apple.com/fi/app/apple-store/id1373787253?pt=350676&ct=lataasivu&mt=8&l=fi"},"rannikkoseutu.fi":{appIdAndroid:"fi.rannikkoseutu",appIdIos:"id6746860083",webAndroid:"https://play.google.com/store/apps/details?id=fi.rannikkoseutu&hl=fi&referrer=utm_source%3Drannikkoseutu.fi%26utm_medium%3Dreferral%26utm_campaign%3Dlataasivu",webIos:"https://apps.apple.com/fi/app/apple-store/id6746860083?pt=350676&ct=lataasivu&mt=8&l=fi"},"suurkeuruu.fi":{appIdAndroid:"com.almamedia.kioski.suurkeuruu",appIdIos:"id1373788201",webAndroid:"https://play.google.com/store/apps/details?id=com.almamedia.kioski.suurkeuruu&hl=fi&referrer=utm_source%3Dsuurkeuruu.fi%26utm_medium%3Dreferral%26utm_campaign%3Dlataasivu",webIos:"https://apps.apple.com/fi/app/apple-store/id1373788201?pt=350676&ct=lataasivu&mt=8&l=fi"},"sydansatakunta.fi":{appIdAndroid:"fi.sydansatakunta",appIdIos:"id6746860209",webAndroid:"https://play.google.com/store/apps/details?id=fi.sydansatakunta&hl=fi&referrer=utm_source%3Dsydansatakunta.fi%26utm_medium%3Dreferral%26utm_campaign%3Dlataasivu",webIos:"https://apps.apple.com/fi/app/apple-store/id6746860209?pt=350676&ct=lataasivu&mt=8&l=fi"},"tyrvaansanomat.fi":{appIdAndroid:"fi.tyrvaansanomat",appIdIos:"id6746861102",webAndroid:"https://play.google.com/store/apps/details?id=fi.tyrvaansanomat&hl
1=fi&referrer=utm_source%3Dtyrvaansanomat.fi%26utm_medium%3Dreferral%26utm_campaign%3Dlataasivu",webIos:"https://apps.apple.com/fi/app/apple-store/id6746861102?pt=350676&ct=lataasivu&mt=8&l=fi"},"valkeakoskensanomat.fi":{appIdAndroid:"com.almamedia.kioski.valkeakoskensanomat",appIdIos:"id1315949484",webAndroid:"https://play.google.com/store/apps/details?id=com.almamedia.kioski.valkeakoskensanomat&hl=fi&referrer=utm_source%3Dvalkeakoskensanomat.fi%26utm_medium%3Dreferral%26utm_campaign%3Dlataasivu",webIos:"https://apps.apple.com/fi/app/apple-store/id1315949484?pt=350676&ct=lataasivu&mt=8&l=fi"}},A=e=>{let t=e.replace(/^\.+|\.+$/g,"").toLowerCase();for(;t.includes(".");){let e=k[t];if(e)return e;t=t.substring(t.indexOf(".")+1)}return null},_=()=>{let e,t,a,n,r,s,o,c,d,u,f,p,h=(0,l.c)(18),[x,g]=(0,b.useState)(null);return(h[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{g(A(globalThis.location.hostname))},t=[],h[0]=e,h[1]=t):(e=h[0],t=h[1]),(0,b.useEffect)(e,t),x)?(h[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsx)("div",{className:"nof-ui-body-medium text-nof-foreground-primary mb-nof-16 flex justify-center text-center",children:"Valitse sovelluskauppasi ja lataa sovellus"}),h[2]=a):a=h[2],h[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,i.jsx)("img",{alt:"",src:y.A.src,className:"mb-nof-4 h-[40px]",loading:"lazy"}),h[3]=n):n=h[3],h[4]!==x.webAndroid?(r=(0,i.jsx)(m.N,{href:x.webAndroid,"aria-label":"Lataa sovellus Google Playsta â Android-laitteet",className:"cursor-pointer select-none",openInNewTab:!0,children:n}),h[4]=x.webAndroid,h[5]=r):r=h[5],h[6]===Symbol.for("react.memo_cache_sentinel")?(s=(0,i.jsx)("p",{className:"nof-ui-body-small text-center","aria-hidden":"true",children:"Android-laitteet"}),h[6]=s):s=h[6],h[7]!==r?(o=(0,i.jsxs)("div",{className:"px-nof-4",children:[r,s]}),h[7]=r,h[8]=o):o=h[8],h[9]===Symbol.for("react.memo_cache_sentinel")?(c=(0,i.jsx)("img",{alt:"",src:j.A.src,className:"mx-[10px] my-[10px] mb-[14px] h-[40px]",loading:"lazy"}),h[9]=c):c=h[9],h[10]!==x.webIos?(d=(0,i.jsx)(m.N,{href:x.webIos,"aria-label":"Lataa sovellus App Storesta â Apple-laitteet",className:"cursor-pointer select-none",openInNewTab:!0,children:c}),h[10]=x.webIos,h[11]=d):d=h[11],h[12]===Symbol.for("react.memo_cache_sentinel")?(u=(0,i.jsx)("p",{className:"nof-ui-body-small text-center","aria-hidden":"true",children:"Apple-laitteet"}),h[12]=u):u=h[12],h[13]!==d?(f=(0,i.jsxs)("div",{className:"px-nof-4",children:[d,u]}),h[13]=d,h[14]=f):f=h[14],h[15]!==f||h[16]!==o?(p=(0,i.jsxs)("div",{className:"bg-nof-background-content-default border-divider-2 p-nof-16 w-full border-b",children:[a,(0,i.jsxs)("div",{className:"text-nof-foreground-primary flex items-center justify-center",children:[o,f]})]}),h[15]=f,h[16]=o,h[17]=p):p=h[17],p):null};var N=a(14e3);let w=()=>/iPhone|iPad|iPod/i.test(globalThis.navigator.userAgent),S=()=>/Android/i.test(globalThis.navigator.userAgent),I=()=>{let e,t,a=(0,l.c)(3),i=(0,N.useSearchParams)();return a[0]!==i?(e=()=>{var e,t;if(!(w()||S()||/IEMobile|BlackBerry/i.test(globalThis.navigator.userAgent))||!i)return;let a=A(globalThis.location.hostname);if(!a)return;let l=i.get("utm_source"),n=i.get("utm_medium"),r=i.get("utm_campaign");if(w()){let t,i;globalThis.location.href=(e=a.appIdIos,i=(t=[l,n,r].filter(Boolean)).length>0?"?pt=350676&ct=".concat(encodeURIComponent(t.join("_")),"&mt=8"):"","https://apps.apple.com/app/apple-store/".concat(e).concat(i))}else{let e,i;S()&&(globalThis.location.href=(t=a.appIdAndroid,i=(e=[l&&"utm_source=".concat(l),n&&"utm_medium=".concat(n),r&&"utm_campaign=".concat(r)].filter(Boolean)).length>0?"&referrer=".concat(encodeURIComponent(e.join("&"))):"","https://play.google.com/store/apps/details?id=".concat(t).concat(i)))}},t=[i],a[0]=i,a[1]=e,a[2]=t):(e=a[1],t=a[2]),(0,b.useEffect)(e,t),null},C=()=>{let e,t=(0,l.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(I,{}),(0,i.jsx)(_,{})]}),t[0]=e):e=t[0],e},T=[{href:"/pelit/art-2000011201869.html?ref=pelit_etusivu_teaser",src:"/_next/static/media/pelit-01.967265f0.avif",srcSquare:"/_next/static/media/pelit-01s.aca762b7.avif",title:"Sanajuuri",description:"Kasvata kirjain kerrallaan"},{href:"/pelit/art-2000010229611.html?ref=pelit_etusivu_teaser",src:"/_next/static/media/pelit-02.1dce9b01.avif",srcSquare:"/_next/static/media/pelit-02s.37f074e0.av
1if",title:"Sanalouhos",description:"T\xe4yt\xe4 ruudukko sanoilla"},{href:"/aihe/ristikko/?ref=pelit_etusivu_teaser",src:"/_next/static/media/pelit-03.2f1a8dde.avif",srcSquare:"/_next/static/media/pelit-03s.778e3b78.avif",title:"Miniristikko",description:"Ratkaisetko p\xe4iv\xe4n pulman?"},{href:"/pelit/art-2000009315283.html?ref=pelit_etusivu_teaser",src:"/_next/static/media/pelit-04.85ccda72.avif",srcSquare:"/_next/static/media/pelit-04s.7fd4cb96.avif",title:"Sudoku",description:"Aivojumppaa numeroilla"},{href:"/aihe/uutisvisa/?ref=pelit_etusivu_teaser",src:"/_next/static/media/pelit-05.8543b1f8.avif",srcSquare:"/_next/static/media/pelit-05s.e02c49e7.avif",title:"Uutisvisa",description:"Oletko lukenut uutiset?"},{href:"/sarjakuvat/?ref=pelit_etusivu_teaser",src:"/_next/static/media/pelit-06.7bba7956.avif",srcSquare:"/_next/static/media/pelit-06s.8b1bf7bd.avif",title:"Sarjakuvat",description:"P\xe4iv\xe4n parhaat sarjakuvat"}],P=e=>{let t,a,n,r,s=(0,l.c)(7),{square:o}=e,c=void 0!==o&&o;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("h2",{className:"nof-component-list-heading-l text-nof-foreground-primary flex-3",children:"Pelaa ja viihdy"}),s[0]=t):t=s[0],s[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsxs)("div",{className:"mb-nof-16 flex",children:[t,(0,i.jsx)(m.N,{href:"/pelit/?ref=pelit_etusivu_teaser",children:(0,i.jsxs)("span",{className:"font-hs-helsingin text-nof-foreground-primary text-14 ml-nof-16 self-start font-medium",children:["N\xe4yt\xe4 kaikki",(0,i.jsx)("span",{className:"sr-only",children:" pelit"})]})})]}),s[1]=a):a=s[1];let d=c?"gap-x-nof-xsmall sm:gap-x-nof-medium grid grid-cols-3":"gap-x-nof-medium grid grid-cols-2 sm:grid-cols-3";return s[2]!==c?(n=T.map(e=>{let{href:t,src:a,srcSquare:l,title:n,description:r}=e;return(0,i.jsx)("li",{children:(0,i.jsxs)(m.N,{href:t,children:[(0,i.jsx)("img",{src:c?l:a,alt:"",className:"mb-nof-8",loading:"lazy"}),(0,i.jsx)("span",{className:"font-hs-helsingin text-16 text-nof-foreground-primary mb-nof-0 block font-bold",children:n}),(0,i.jsx)("span",{className:"font-hs-helsingin text-15 text-nof-foreground-primary mb-nof-16 block leading-normal",children:r})]})},t)}),s[2]=c,s[3]=n):n=s[3],s[4]!==d||s[5]!==n?(r=(0,i.jsxs)("div",{className:"bg-nof-background-content-default border-divider-1 pt-nof-16 px-nof-16 w-full border-b",children:[a,(0,i.jsx)("ul",{className:d,children:n})]}),s[4]=d,s[5]=n,s[6]=r):r=s[6],r};var E=a(54740);let D=e=>{let t,a,n,r,s,o=(0,l.c)(10),{narrow:d}=e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("h2",{className:"nof-content-headline-xsmall mb-nof-12",children:"L\xe4het\xe4 HS:lle vinkki, kuva tai video!"}),o[0]=t):t=o[0],o[1]!==d?(a=d?(0,i.jsxs)("div",{className:"mb-nof-16 nof-ui-body-medium",children:[(0,i.jsx)("div",{className:"mb-nof-24",children:(0,i.jsx)(E.c,{})}),(0,i.jsxs)("div",{className:"gap-nof-16 flex flex-col",children:[(0,i.jsx)("p",{children:"Olitko paikalla, kun jotain tapahtui tai tied\xe4tk\xf6 jotain, mit\xe4 HS:n pit\xe4isi selvitt\xe4\xe4? L\xe4het\xe4 HS:lle vinkki, kuva tai video."}),(0,i.jsx)("p",{children:"HS on tehnyt useita juttuja lukijoiden vinkeist\xe4. Suuri kiitos panoksestasi!"}),(0,i.jsx)("p",{children:"Kuvista ja videoista maksetaan palkkio. Huomioi onnettomuuspaikalla pelastushenkil\xf6kunta ja auta."})]})]}):(0,i.jsx)("p",{className:"mb-nof-16 nof-ui-body-medium",children:"Olitko paikalla, kun jotain tapahtui tai tied\xe4tk\xf6 jotain, mit\xe4 toimituksen pit\xe4isi selvitt\xe4\xe4?"}),n=!d&&(0,i.jsxs)("div",{className:"gap-nof-16 flex flex-row",children:[(0,i.jsx)(c.z9,{link:{href:"/uutisvinkki/"},variant:c.KT.PrimarySmall,label:"Lomake"}),(0,i.jsx)(c.z9,{link:{href:"https://wa.me/358503274871",external:!0},variant:c.KT.PrimarySmall,label:"WhatsApp"})]}),o[1]=d,o[2]=a,o[3]=n):(a=o[2],n=o[3]),o[4]!==d?(r=d&&(0,i.jsx)("div",{className:"flex justify-center",children:(0,i.jsx)(c.z9,{link:{href:"/uutisvinkki/"},variant:c.KT.PrimarySmall,label:"L\xe4het\xe4 havaintosi"})}),o[4]=d,o[5]=r):r=o[5],o[6]!==a||o[7]!==n||o[8]!==r?(s=(0,i.jsxs)("div",{"data-testid":"hs-news-tip",className:"bg-nof-background-content-default text-nof-foreground-primary p-nof-16 w-full",children:[t,a,n,r]}),o[6]=a,o[7]=n,o[8]=r,o[9]=s):s=o[9],s};var L=a(63593),F=a(33399);let B=()=>{let e,t=(0,l.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsxs)("div",{className:"mb-nof-16 flex items-center justify-center",children:[(0,i.jsx)("img",{src:"/_next/static/media/is-logo-circle-neg.6855c799.svg",width:"50",height:"50",alt:"IS logo",loading:"lazy"}),(0,i.jsx)("span",{className:"is-extra-promo__font-color font-is-condensed ml-nof-8 text-5xl tracking-normal italic",children:"EXTRA"})]}),t[0]=e):e=t[0],e},R=()=>{let e,t,a,n=(0,l.c)(13),{platform:r,iOSExternalLinkAccount:s}=(0,L.g$)();if(r===F.OD.iOS){let e,t,a,l,r;if(!s)return null;if(n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(B,{}),t=(0,i.jsx)("p",{className:"pb-nof-16 ml-nof-4 text-4xl tracking-normal",children:"Haluatko lukea lis\xe4\xe4?"}),a=(0,i.jsx)("p",{className:"bold mb-nof-24 text-xl",children:"Lis\xe4\xe4 uutisia, viihdett\xe4 ja tietoa. Tutustu tilausvaihtoehtoihin painamalla alla olevaa linkki\xe4."}),n[0]=e,n[1]=t,n[2]=a):(e=n[0],t=n[1],a=n[2]),n[3]!==s){let e;n[5]===Symbol.for("react.memo_cache_sentinel")?(e=/^https?:\/\//,n[5]=e):e=n[5],l=s.replace(e,""),n[3]=s,n[4]=l}else l=n[4];return n[6]!==s||n[7]!==l?(r=(0,i.jsxs)("div",{className:"is-extra-promo font-is-condensed p-nof-40 bg-nof-background-content-default flex w-full flex-col items-center text-center",children:[e,t,a,(0,i.jsx)("a",{href:s,className:"is-extra-promo__order-ios inline-block text-lg",children:l})]}
1),n[6]=s,n[7]=l,n[8]=r):r=n[8],r}let o=r===F.OD.Android?"https://apps-html.is.fi/tilaa/android/?ref=isextra_promo_android":"https://kampanjat.is.fi/tilaa/?ref=isextra_promo";return n[9]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(B,{}),t=(0,i.jsx)("p",{className:"bold mb-nof-24 text-xl",children:"IS Extra tarjoaa sinulle lis\xe4\xe4 uutisia, viihdett\xe4 ja tietoa sek\xe4 rajattoman p\xe4\xe4syn kaikkiin IS Extra -sis\xe4lt\xf6ihin."}),n[9]=e,n[10]=t):(e=n[9],t=n[10]),n[11]!==o?(a=(0,i.jsxs)("div",{className:"is-extra-promo font-is-condensed p-nof-40 bg-nof-background-content-default flex w-full flex-col items-center text-center",children:[e,t,(0,i.jsx)(c.z9,{link:{href:o},label:"KOKEILE MAKSUTTA",variant:c.KT.Primary})]}),n[11]=o,n[12]=a):a=n[12],a},O=()=>{let e,t,a,n,r,s=(0,l.c)(9),{platform:o}=(0,L.g$)(),d=o===F.OD.Android?"https://oma.sanoma.fi/tuote/is-extra/vaihda-is-extra-tilauksesi-paremmaksi/?modal=taydenna-tilaustasi&tuote=K-IS_EXTRAPL&ref=is_konversio_promo_android":"https://oma.sanoma.fi/tuote/is-extra/vaihda-is-extra-tilauksesi-paremmaksi/?modal=taydenna-tilaustasi&tuote=K-IS_EXTRAPL&ref=is_konversio_promo_site",u=o===F.OD.Android?"IS Extra tarjoaa sinulle lis\xe4\xe4 uutisia, viihdett\xe4 ja tietoa sek\xe4 rajattoman p\xe4\xe4syn kaikkiin IS Extra -sis\xe4lt\xf6ihin.":"IS Extra+ -tilauksella p\xe4\xe4set lukemaan my\xf6s Me Naisten, Urheilulehden, Matkan ja Hyv\xe4n terveyden digilehti\xe4.";return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(B,{}),t=(0,i.jsx)("img",{className:"mb-nof-24",src:"/_next/static/media/is-extra-plus-promo.6437ae9e.avif",alt:"IS Digilehdet",loading:"lazy"}),s[0]=e,s[1]=t):(e=s[0],t=s[1]),s[2]!==u?(a=(0,i.jsx)("p",{className:"bold mb-nof-24 text-xl",children:u}),s[2]=u,s[3]=a):a=s[3],s[4]!==d?(n=(0,i.jsx)(c.z9,{link:{href:d},label:"VAIHDA TILAUKSESI",variant:c.KT.Primary}),s[4]=d,s[5]=n):n=s[5],s[6]!==a||s[7]!==n?(r=(0,i.jsxs)("div",{className:"is-extra-promo font-is-condensed p-nof-40 bg-nof-background-content-default flex w-full flex-col items-center text-center",children:[e,t,a,n]}),s[6]=a,s[7]=n,s[8]=r):r=s[8],r};var W=a(83462);let M="pelit_teaser",z=[{slug:"/pelit/art-2000012247697.html",srcWide:"/_next/static/media/IS_pelit_Nelosetx640.e7bc82c2.avif",srcSquare:"/_next/static/media/IS_pelit_Nelosetx300.192da9e6.avif",title:"Neloset",description:"Mitk\xe4 kuuluvat yhteen?"},{slug:"/pelit/art-2000012247447.html",srcWide:"/_next/static/media/IS_pelit_10kysymystax640.64e6b916.avif",srcSquare:"/_next/static/media/IS_pelit_10kysymystax300.8e56ad38.avif",title:"10 Kysymyst\xe4",description:"Moderni klassikko"},{slug:"/pelit/art-2000012247390.html",srcWide:"/_next/static/media/IS_pelit_Sanavelhox640.6d68dc88.avif",srcSquare:"/_next/static/media/IS_pelit_Sanavelhox300.812da849.avif",title:"Sanavelho",description:"P\xe4\xe4ttele sana!"},{slug:"/pelit/art-2000010229710.html",srcWide:"/_next/static/media/IS_pelit_Sudokux640.3b2114e7.avif",srcSquare:"/_next/static/media/IS_pelit_Sudokux300.ae16c32e.avif",title:"Sudoku",description:"Virkist\xe4v\xe4 aivojumppa"}],U=e=>{let t,a,n,s,o,c=(0,l.c)(10),{narrow:d}=e,u=void 0!==d&&d,f=(0,W.U)("(min-width: 576px)"),p=u?"".concat(M,"_right"):f?"".concat(M,"_wide"):"".concat(M,"_narrow");c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("div",{className:"mb-nof-16",children:(0,i.jsx)("h2",{className:"nof-component-list-heading-s sm:nof-component-list-heading-l text-nof-foreground-primary uppercase",children:"Ratkaise pelit"})}),a=(0,i.jsx)("p",{className:"nof-ui-body-medium mb-nof-16 text-nof-foreground-primary",children:"Ilta-Sanomien p\xe4ivitt\xe4in vaihtuvat p\xe4hkin\xe4t."}),c[0]=t,c[1]=a):(t=c[0],a=c[1]);let h=!u&&"sm:grid-cols-4";return c[2]!==h?(n=r()("gap-nof-16 mb-nof-16 grid w-full grid-cols-2 text-left",h),c[2]=h,c[3]=n):n=c[3],c[4]!==u||c[5]!==p?(s=z.map(e=>{let{slug:t,srcWide:a,srcSquare:l,title:n,description:r}=e;return(0,i.jsx)("li",{children:(0,i.jsxs)(m.N,{href:"".concat(t,"?ref=").concat(p),children:[(0,i.jsxs)("picture",{children:[!u&&(0,i.jsx)("source",{media:"(min-width: 576px)",srcSet:l}),(0,i.jsx)("img",{src:a,alt:"",className:"mb-nof-8",loading:"lazy"})]}),(0,i.jsx)("h3",{children:(0,i.jsx)("span",{className:"nof-ui-subtitle-medium text-nof-foreground-primary mb-nof-2 block",children:n})}),(0,i.jsx)("span",{className:"nof-ui-body-medium text-nof-foreground-primary block",children:r})]})},t)}),c[4]=u,c[5]=p,c[6]=s):s=c[6],c[7]!==n||c[8]!==s?(o=(0,i.jsxs)("div",{className:"bg-nof-background-content-default border-divider-1 pt-nof-16 px-nof-16 w-full border-b",children:[t,a,(0,i.jsx)("ul",{className:n,children:s})]}),c[7]=n,c[8]=s,c[9]=o):o=c[9],o},K=[{href:"/sivu/testit-ja-visat?ref=pelit_etusivu_teaser",src:"/_next/static/media/visat.6d6ccbd2.avif",title:"Tietovisat ja testit",description:"Visat ja teht\xe4v\xe4t eri aiheista."},{href:"/kotimaa/art-2000011488236.html?ref=pelit_etusivu_teaser",src:"/_next/static/media/neloset.ab2b3903.avif",title:"Neloset",description:"Mitk\xe4 sanat kuuluvat yhteen?"},{href:"/viihde/art-2000010229710.html?ref=pelit_etusivu_teaser",src:"/_next/static/media/sudoku.ce2b9273.avif",title:"Sudoku",description:"P\xe4ivitt\xe4inen aivojumppa."},{href:"/aihe/ristikko/?ref=pelit_etusivu_teaser",src:"/_next/static/media/miniristikko.a5072d6a.avif",title:"Miniristikko",description:"Pieni ristikko joka p\xe4iv\xe4."}],G=()=>{let e,t,a=(0,l.c)(2);return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)("div",{className:"mb-nof-16",children:(0,i.jsx)("h2",{className:"nof-component-list-heading-s sm:nof-component-list-heading-l text-nof-brand-primary",children:"Viihdy pelien ja visojen parissa"})}),a[0]=e):e=a[0],a[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsxs)("div",{className:"bg-nof-background-content-default border-divider-1 pt-nof-16 px-nof-16 w-full border-b",children:[e,(0,i.jsx)("ul",{className:"gap-nof-16 mb-nof-16 grid w-full grid-cols-2 text-left sm:grid-cols-4",children:K.map(H)})]}),a[1]=t):t=a[1],t};function H(e){let{href:t,src:a,title:l,description:n}=e;return(0,i.jsx)("li",{children:(0,i.jsxs)(m.N,{href:t,children:[(0,i.jsx)("img",{src:a,alt:"",className:"mb-nof-8",loading:"lazy"}),(0,i.jsx)("h3",{children:(0,i.jsx)("span",{className:"nof-ui-subtitle-medium text-nof-foreground-primary mb-nof-2 block",children:l})}),(0,i.jsx)("span",{className:"nof-ui-body-medium text-nof-foreground-primary block",children:n})]})},t)}let V=e=>{let t,a,n,r,s,o,d,u=(0,l.c)(11),{narrow:m}=e,f=void 0!==m&&m;u[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("div",{className:"mb-nof-16 inline-flex justify-center",children:(0,i.jsx)("img",{src:"/_next/static/media/PhotoCamera.45648496.svg",width:"64",height:"64",alt:"",loading:"lazy"})}),a=(0,i.jsx)("h2",{className:"nof-ui-title-large mb-nof-24",children:"L\xc4HET\xc4 VIDEO, KUVA TAI UUTISVINKKI"}),u[0]=t,u[1]=a):(t=u[0],a=u[1]);let p=f&&" Voit l\xe4hett\xe4\xe4 my\xf6s kuvia ja uutisvinkkej\xe4.";return u[2]!==p?(n=(0,i.jsxs)("p",{className:"nof-ui-body-large mb-nof-24",children:["Maksamme julkaistusta videosta v\xe4hint\xe4\xe4n 60 euroa. Lis\xe4ksi joka kuukausi palkitsemme yhden lukijan videon 550 eurolla.",p]}),u[2]=p,u[3]=n):n=u[3],u[4]===Symbol.for("react.memo_cache_sentinel")?(r=(0,i.jsx)(c.z9,{link:{href:"https://api.whatsapp.com/se
1nd?phone=358406609019"},label:"L\xe4het\xe4 Whatsappissa",variant:c.KT.Secondary}),u[4]=r):r=u[4],u[5]===Symbol.for("react.memo_cache_sentinel")?(s=(0,i.jsxs)("div",{className:"px-nof-16 gap-nof-16 mb-nof-24 flex flex-col items-center justify-center",children:[r,(0,i.jsx)(c.z9,{link:{href:"/uutisvinkki/"},label:"L\xe4het\xe4 lomakkeella",variant:c.KT.Secondary})]}),u[5]=s):s=u[5],u[6]!==f?(o=f&&(0,i.jsx)("p",{className:"nof-ui-body-small",children:"Onnettomuuspaikalla h\xe4lyt\xe4 ensin apua (112) ja auta. Eth\xe4n h\xe4iritse viranomaisten ty\xf6t\xe4 tai vaaranna kenenk\xe4\xe4n turvallisuutta."}),u[6]=f,u[7]=o):o=u[7],u[8]!==n||u[9]!==o?(d=(0,i.jsx)("div",{className:"bg-nof-background-content-default text-nof-foreground-negative border-b text-center",children:(0,i.jsxs)("div",{className:"bg-nof-brand-primary pt-nof-12 px-nof-16 pb-nof-24",children:[t,a,n,s,o]})}),u[8]=n,u[9]=o,u[10]=d):d=u[10],d};var q=a(14121),$=a(59712);let X="/_next/static/media/TV_lehti_2021_12_488x488.4e41d76f.avif",J=(e,t)=>({event:"eventInfo",eventCategory:"internal sales promo",eventAction:e,eventLabel:t?"tvlehti side":"tvlehti main"}),Z=e=>{let t,a,n,r,s,o,d=(0,l.c)(16),{narrow:u}=e,m=void 0!==u&&u;d[0]!==m?(t={triggerOnce:!0,onEnter:()=>(0,$.$)(J("impression",m))},d[0]=m,d[1]=t):t=d[1];let{ref:f}=(0,q.z)(t),p=m?"https://tilaa.sanoma.fi/tv-lehti?defaultAid=true&ref=tilaalinkki_side":"https://tilaa.sanoma.fi/tv-lehti?defaultAid=true&ref=tilaalinkki_main";d[2]!==p?(a={href:p},d[2]=p,d[3]=a):a=d[3],d[4]!==m?(n=()=>(0,$.$)(J("click",m)),d[4]=m,d[5]=n):n=d[5];let h=m?c.KT.PrimarySmall:c.KT.Primary;d[6]!==a||d[7]!==n||d[8]!==h?(r=(0,i.jsx)(c.z9,{link:a,label:"Tilaa Tv-lehti!",onClick:n,variant:h}),d[6]=a,d[7]=n,d[8]=h,d[9]=r):r=d[9];let x=r;return d[10]!==x||d[11]!==m?(s=m?(0,i.jsxs)("div",{className:"bg-nof-background-wallpaper-default p-nof-16 flex flex-col items-center text-center",children:[(0,i.jsx)("img",{src:X,alt:"TV-lehti",className:"mb-nof-8",loading:"lazy"}),(0,i.jsx)("h3",{className:"promo-title-10-sidelane mb-nof-16 overflow-hidden",children:"Tied\xe4 mit\xe4 katsot"}),x]}):(0,i.jsxs)("div",{className:"bg-nof-background-wallpaper-default p-nof-16 flex flex-col sm:flex-row",children:[(0,i.jsx)("div",{className:"sm:mr-nof-16 mb-nof-16 sm:mb-nof-0 flex shrink-0 self-center sm:items-start",children:(0,i.jsx)("img",{src:X,alt:"TV-lehti",className:"mb-nof-16 sm:mb-nof-0",width:311,height:311,loading:"lazy"})}),(0,i.jsxs)("div",{className:"flex-col self-center text-center sm:text-left",children:[(0,i.jsx)("h3",{className:"promo-title-10 sm:mb-nof-16 mb-nof-12 overflow-hidden",children:"Tied\xe4 mit\xe4 katsot"}),x]})]}),d[10]=x,d[11]=m,d[12]=s):s=d[12],d[13]!==f||d[14]!==s?(o=(0,i.jsx)("div",{ref:f,className:"bg-nof-background-content-default text-nof-foreground-primary border-divider-2 p-nof-16 border-b",children:s}),d[13]=f,d[14]=s,d[15]=o):o=d[15],o},Y=e=>{let t,a,n,s,o,d,u,m,f,p,h,x,g,v,b,j,y,k=(0,l.c)(36),{narrow:A}=e,_=void 0!==A&&A,N=_?"https://tilaa.sanoma.fi/me-naiset?showPaymentPeriodList=true&showOfferDetails=true&offer=12&defaultAid=true&ref=tilaalinkki_rightcol":"https://tilaa.sanoma.fi/me-naiset?showPaymentPeriodList=true&showOfferDetails=true&offer=12&defaultAid=true&ref=tilaalinkki_tail",w=!_;k[0]!==w?(t=r()("text-nof-foreground-primary px-nof-16 pt-nof-16 nof-component-list-heading-s uppercase",{"sm:nof-component-list-heading-l":w}),k[0]=w,k[1]=t):t=k[1],k[2]!==t?(a=(0,i.jsx)("h2",{className:t,children:"Tilaa Me Naiset"}),k[2]=t,k[3]=a):a=k[3];let S=!_;k[4]!==S?(n=r()("bg-nof-background-wallpaper-default m-nof-16 p-nof-16 flex flex-col",{"sm:flex-row":S}),k[4]=S,k[5]=n):n=k[5];let I=!_;k[6]!==I?(s=r()("pt-nof-24 relative",{"flex-2":I}),k[6]=I,k[7]=s):s=k[7],k[8]===Symbol.for("react.memo_cache_sentinel")?(o=(0,i.jsx)("img",{src:"/_next/static/media/mn-magazine-640x640.b56aba5a.avif",alt:"",loading:"lazy"}),k[8]=o):o=k[8],k[9]===Symbol.for("react.memo_cache_sentinel")?(d={width:87,height:87},u=(0,i.jsx)("span",{className:"pr-nof-2 flex-2 text-right text-6xl",children:"11"}),k[9]=d,k[10]=u):(d=k[9],u=k[10]);let C=_?"text-2xl":"text-3xl";k[11]!==C?(m=(0,i.jsx)("span",{className:C,children:"60"}
1),k[11]=C,k[12]=m):m=k[12],k[13]===Symbol.for("react.memo_cache_sentinel")?(f=(0,i.jsx)("span",{className:"text-base",children:"â¬/kk"}),k[13]=f):f=k[13],k[14]!==m?(p=(0,i.jsxs)("div",{className:"bg-nof-background-content-negative text-nof-foreground-negative font-is-condensed leading-very-tight p-nof-16 absolute top-0 left-0 flex items-center rounded-full font-semibold",style:d,children:[u,(0,i.jsxs)("span",{className:"flex flex-2 flex-col",children:[m,f]})]}),k[14]=m,k[15]=p):p=k[15],k[16]!==p||k[17]!==s?(h=(0,i.jsxs)("div",{className:s,children:[o,p]}),k[16]=p,k[17]=s,k[18]=h):h=k[18];let T=!_;k[19]!==T?(x=r()("flex flex-col items-center self-center text-center",{"flex-2 sm:items-start sm:text-left":T}),k[19]=T,k[20]=x):x=k[20];let P=_?"Tarinoita moninaisesta naiseudesta":"Tarinoita moninaisesta naiseudesta viikoittain";return k[21]!==P?(g=(0,i.jsx)("h3",{className:"mb-nof-16 sm:mb-nof-24 overflow-hidden",children:P}),k[21]=P,k[22]=g):g=k[22],k[23]!==N?(v=(0,i.jsx)(c.z9,{link:{href:N},label:"Tilaa Lehti",variant:c.KT.Primary}),k[23]=N,k[24]=v):v=k[24],k[25]!==x||k[26]!==g||k[27]!==v?(b=(0,i.jsxs)("div",{className:x,children:[g,v]}),k[25]=x,k[26]=g,k[27]=v,k[28]=b):b=k[28],k[29]!==h||k[30]!==b||k[31]!==n?(j=(0,i.jsxs)("div",{className:n,children:[h,b]}),k[29]=h,k[30]=b,k[31]=n,k[32]=j):j=k[32],k[33]!==j||k[34]!==a?(y=(0,i.jsxs)("div",{className:"bg-nof-background-content-default text-nof-foreground-primary border-divider-2 border-b",children:[a,j]}),k[33]=j,k[34]=a,k[35]=y):y=k[35],y},Q=e=>{let t,a,n,s,o,d,u=(0,l.c)(14),{narrow:m}=e,f=void 0!==m&&m,p=!f;u[0]!==p?(t=r()("bg-nof-background-wallpaper-default text-nof-foreground-primary p-nof-8 flex flex-col items-center text-center",{"sm:text-left":p}),u[0]=p,u[1]=t):t=u[1],u[2]!==f?(a=f&&(0,i.jsx)("h2",{className:"font-is-condensed leading-very-tight p-nof-8 overflow-hidden text-2xl font-semibold",children:"Tutustu Urheilulehteen tarjoushintaan"}),u[2]=f,u[3]=a):a=u[3];let h=f?"mb-nof-16":"sm:float-right";return u[4]!==h?(n=(0,i.jsx)("img",{src:"/_next/static/media/urheilulehti.bcaec001.avif",alt:"Urheilulehti",className:h,loading:"lazy"}),u[4]=h,u[5]=n):n=u[5],u[6]!==f?(s=!f&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h2",{className:"font-is-condensed leading-very-tight p-nof-8 overflow-hidden text-3xl font-semibold",children:"Tutustu Urheilulehteen tarjoushintaan"}),(0,i.jsx)("p",{className:"article-body px-nof-8 mb-nof-24",children:"Saat Urheilulehden kerran viikossa sek\xe4 urheilun erikoislehdet ja kausioppaat."})]}),u[6]=f,u[7]=s):s=u[7],u[8]===Symbol.for("react.memo_cache_sentinel")?(o=(0,i.jsx)("div",{className:"mb-nof-8",children:(0,i.jsx)(c.z9,{link:{href:"https://tilaa.sanoma.fi/urheilulehti?defaultAid=true&ref=nosto_isurheilu"},label:"Tutustu ja tilaa",variant:c.KT.PrimarySmall})}),u[8]=o):o=u[8],u[9]!==t||u[10]!==a||u[11]!==n||u[12]!==s?(d=(0,i.jsx)("div",{className:"bg-nof-background-content-default border-divider-2 p-nof-16 border-b",children:(0,i.jsxs)("div",{className:t,children:[a,n,s,o]})}),u[9]=t,u[10]=a,u[11]=n,u[12]=s,u[13]=d):d=u[13],d};var ee=a(28315),et=a(39153),ea=a(71152);let ei=()=>{let e,t,a,n,r,s,o,d,u=(0,l.c)(8);return u[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)("h2",{className:"nof-component-list-heading-s sm:nof-component-list-heading-l px-nof-16 pt-nof-16 uppercase",children:"Tilaa Me Naiset"}),u[0]=e):e=u[0],u[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("img",{src:"/_next/static/media/mn-products-980x551.c3011b41.avif",alt:"",loading:"lazy"}),u[1]=t):t=u[1],u[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsx)("span",{className:"pr-nof-2 flex-2 text-right text-6xl",children:"11"}),u[2]=a):a=u[2],u[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,i.jsxs)("div",{className:"mb-nof-16 relative",children:[t,(0,i.jsxs)("div",{className:"bg-nof-brand-primary text-nof-foreground-inverted font-is-condensed leading-very-tight p-nof-16 top-nof-16 right-nof-16 absolute flex h-[87px] w-[87px] items-center rounded-full font-semibold",children:[a,(0,i.jsxs)("span",{className:"flex flex-2 flex-col",children:[(0,i.jsx)("span",{className:"text-3xl",children:"60"}),(0,i.jsx)("span",{className:"text-base",children:"â¬/kk"})]})]})]}),r=(0,i.jsx)("span",{className:"font-is-condensed text-19 mb-nof-8 inline-block leading-normal font-bold uppercase italic",children:"Joka viikko uutta luettavaa!"}),s=(0,i.jsx)("h3",{className:"font-is-condensed leading-very-tight mb-nof-16 overflow-hidden text-4xl font-semibold md:text-5xl",children:"Inspiroivat ihmiset, muodin & kauneuden l\xf6yd\xf6t ja kiinnostavimmat ilmi\xf6t"}),u[3]=n,u[4]=r,u[5]=s):(n=u[3],r=u[4],s=u[5]),u[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,i.jsxs)("ul",{className:"font-is-source mb-nof-16",children:[(0,i.jsx)("li",{className:"mn-highlights-feature-item",children:"Me Naiset -aikakauslehti postitettuna 1 nro/vko"}),(0,i.jsx)("li",{className:"mn-highlights-feature-item",children:"Digitaalinen n\xe4k\xf6islehti"}),(0,i.jsx)("li",{className:"mn-highlights-feature-item",children:"Koko Me Naiset -arkisto digin\xe4"}),(0,i.jsx)("li",{className:"mn-highlights-feature-item",children:"Tilaajalahjana saat kahden Sanoman aikakauslehden digilukuoikeuden"})]}),u[6]=o):o=u[6],u[7]===Symbol.for("react.memo_cache_sentinel")?(d=(0,i.jsxs)("div",{className:"bg-nof-background-content-default text-nof-foreground-primary border-divider-2 border-b",children:[e,(0,i.jsxs)("div",{className:"bg-nof-background-wallpaper-default m-nof-16 p-nof-24 flex flex-col",children:[n,(0,i.jsxs)("div",{children:[r,s,o,(0,i.jsx)(c.z9,{link:{href:"https://tilaa.sanoma.fi/me-naiset?showPaymentPeriodList=true&showOfferDetails=true&offer=12&defaultAid=true"},label:"Tilaa Me Naiset",variant:c.KT.Primary})]})]})]}),u[7]=d):d=u[7],d},el=()=>(0,ea.Bd)()&&"function"==typeof document.createRange&&"function"==typeof document.createRange().createContextualFragment,en=e=>{let t,a,n,s=(0,l.c)(10),{children:o,peAnalyticsPosition:c,snippetVariant:d}=e,{useInkBridge:u}=(0,L.g$)();s[0]!==c||s[1]!==d?(t={type:"snippet",position:c,snippetVariant:d},s[0]=c,s[1]=d,s[2]=t):t=s[2];let m=t,{ref:f,registerClickImpression:p}=(0,et.qP)(m),h=!u;return s[3]!==h?(a=r()({"html-lane-item":h}),s[3]=h,s[4]=a):a=s[4],s[5]!==o||s[6]!==f||s[7]!==p||s[8]!==a?(n=(0,i.jsx)("div",{ref:f,className:a,onClick:p,children:o}),s[5]=o,s[6]=f,s[7]=p,s[8]=a,s[9]=n):n=s[9],n},er=e=>{let t=(0,l.c)(7),{position:a}=(0,ee.u)();if("snippetVariant"in e){let l,n;t[0]!==a||t[1]!==e?(l=((e,t)=>{switch(e.snippetVariant){case"al-games":case"sk-games":return(0,i.jsx)(s.H,{});case"al-news-tip":return(0,i.jsx)(o.s,{narrow:"right"===t,articleId:"2000007608717",brandName:"Aamulehden"});case"sk-news-tip":return(0,i.jsx)(o.s,{narrow:"right"===t,articleId:"2000007608776",brandName:"Satakunnan Kansan"});case"al-write-opinion":return(0,i.jsx)(u,{narrow:"right"===t});case"hs-news-tip":return(0,i.jsx)(D,{narrow:"right"===t});case"hs-cartoon":return(0,i.jsx)(p,{});case"hs-games":return(0,i.jsx)(P,{});case"hs-games-square":return(0,i.jsx)(P,{square:!0});case"download-app":return(0,i.jsx)(C,{});case"download-app-buttons":return(0,i.jsx)(_,{});case"download-app-redirect":return(0,i.jsx)(I,{});case"hs-opinion-instructions":return(0,i.jsx)(g,{});case"is-games":return(0,i.jsx)(U,{narrow:"right"===t});case"is-games-with-quiz":return(0,i.jsx)(G,{});case"is-news-tip":return(0,i.jsx)(V,{narrow:"right"===t});case"is-extra-promo":return(0,i.jsx)(R,{});case"is-extra-plus-promo":return(0,i.jsx)(O,{});case"is-tvlehti-sales-promo":return(0,i.jsx)(Z,{narrow:"right"===t});case"mn-highlights":return(0,i.jsx)(ei,{});case"mn-sales-promo":return(0,i.jsx)(Y,{narrow:"right"===t});case"ul-promo":return(0,i.jsx)(Q,{narrow:"right"===t});default:return null}})(e,a),t[0]=a,t[1]=e,t[2]=l):l=t[2];let r=l;return t[3]!==e.peAnalyticsPosition||t[4]!==e.snippetVariant||t[5]!==r?(n=r?(0,i.jsx)(en,{peAnalyticsPosition:e.peAnalyticsPosition,snippetVariant:e.snippetVariant,children:r}):null,t[3]=e.peAnalyticsPosition,t[4]=e.snippetVariant,t[5]=r,t[6]=n):n=t[6],n}return null}},41824:(e,t,a)=>{"use strict";a.d(t,{H:()=>s});var i=a(37876),l=a(27964),n=a(63534);let r=[{href:"/ristikko/",icon:{src:"/_next/static/media/regional-media-games-ristikko.8bc55a57.avif",height:1080,width:1920,blurDataURL:"data:image/avif;base64,AAAAHGZ0eXBhdmlmAAAAAG1pZjFhdmlmbWlhZgAAANZtZXRhAAAAAAAAACFoZGxyAAAAAAAAAABwaWN0AAAAAAAAAAAAAAAAAAAAACJpbG9jAAAAAERAAAEAAQAAAAAA+gABAAAAAAAAADwAAAAjaWluZgAAAAAAAQAAABVpbmZlAgAAAAABAABhdjAxAAAAAA5waXRtAAAAAAABAAAAVmlwcnAAAAA4aXBjbwAAAAxhdjFDgSACAAAAABRpc3BlAAAAAAAAAAgAAAAFAAAAEHBpeGkAAAAAAwgICAAAABZpcG1hAAAAAAAAAAEAAQOBAgMAAABEbWRhdBIACgg4CLxpAQ0GkDIuGkJi5OUUUUFAKoD/WusT0jmdW5FD64955HGSrWrZGRAhwtFXKj1p1+i5Es42NA==",blurWidth:8,blurHeight:5},label:"DIGIRISTIKKO"},{href:"/10kysymysta/",icon:{src:"/_next/static/media/regional-media-games-10kysymysta.3fdacaf2.avif",height:1080,width:1920,blurDataURL:"data:image/avif;base64,AAAAHGZ0eXBhdmlmAAAAAG1pZjFhdmlmbWlhZgAAANZtZXRhAAAAAAAAACFoZGxyAAAAAAAAAABwaWN0AAAAAAAAAAAAAAAAAAAAACJpbG9jAAAAAERAAAEAAQAAAAAA+gABAAAAAAAAADIAAAAjaWluZgAAAAAAAQAAABVpbmZlAgAAAAABAABhdjAxAAAAAA5waXRtAAAAAAABAAAAVmlwcnAAAAA4aXBjbwAAAAxhdjFDgSACAAAAABRpc3BlAAAAAAAAAAgAAAAFAAAAEHBpeGkAAAAAAwgICAAAABZpcG1hAAAAAAAAAAEAAQOBAgMAAAA6bWRhdBIACgg4CLxpAQ0GkDIkGkJi5OUUUUFAIAD/WsvBuwerxAE9/5iJkn8qjvrW2wFoecbY",blurWidth:8,blurHeight:5},label:"10 KYSYMYST\xc4"},{href:"/sudoku/",icon:{src:"/_next/static/media/regional-media-games-sudoku.4d73ed04.avif",height:1080,width:1920,blurDataURL:"data:image/avif;base64,AAAAHGZ0eXBhdmlmAAAAAG1pZjFhdmlmbWlhZgAAANZtZXRhAAAAAAAAACFoZGxyAAAAAAAAAABwaWN0AAAAAAAAAAAAAAAAAAAAACJpbG9jAAAAAERAAAEAAQAAAAAA+gABAAAAAAAAADwAAAAjaWluZgAAAAAAAQAAABVpbmZlAgAAAAABAABhdjAxAAAAAA5waXRtAAAAAAABAAAAVmlwcnAAAAA4aXBjbwAAAAxhdjFDgSACAAAAABRpc3BlAAAAAAAAAAgAAAAFAAAAEHBpeGkAAAAAAwgICAAAABZpcG1hAAAAAAAAAAEAAQOBAgMAAABEbWRhdBIACgg4CLxpAQ0GkDIuGkJi5OUUUUFAKoD/WusWdbQlQISdtlD9xET3MEcV133h051Q1M0RIhCQLtahsA==",blurWidth:8,blurHeight:5},label:"SUDOKU"}],s=()=>{let e,t,a,s=(0,l.c)(3);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)("h2",{className:"nof-component-list-heading-s sm:nof-component-list-heading-l text-nof-brand-primary flex-3",children:"Pelit"}),s[0]=e):e=s[0],s[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsxs)("div",{className:"mb-nof-16 flex",children:[e,(0,i.jsx)(n.N,{href:"/ajanviete/",children:(0,i.jsx)("span",{className:"font-al
1-metric text-brand-2 text-10 ml-nof-16 self-start font-medium",children:"N\xe4yt\xe4 kaikki"})})]}),s[1]=t):t=s[1],s[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsxs)("div",{className:"bg-nof-background-content-default border-divider-1 p-nof-16 w-full border-b",children:[t,(0,i.jsx)("ul",{className:"flex gap-2 sm:gap-4",children:r.map(o)})]}),s[2]=a):a=s[2],a};function o(e){let{href:t,icon:a,label:l}=e;return(0,i.jsx)("li",{className:"w-1/3 text-center",children:(0,i.jsxs)(n.N,{href:t,children:[(0,i.jsx)("img",{src:a.src,alt:"",className:"mb-nof-8",loading:"lazy"}),(0,i.jsx)("span",{className:"font-al-metric text-15 text-brand-2 block font-bold",children:l})]})},t)}},41951:(e,t,a)=>{"use strict";a.d(t,{p:()=>h});var i=a(72848),l=a(23191),n=a(20952),r=a(63593),s=a(92739),o=a(56905),c=a(14232),d=a(71497),u=a(96078),m=a(32614),f=a(38679);let p="paywallFunnelSessionID",h=()=>{let e=(0,i.P)(),t=(0,l.U)(),a=(0,n.p)(),h=(0,f.d)(),{platform:x}=(0,r.g$)(),{userProfile:g,userIds:v}=(0,s.sb)(),b=t["hosts.er.whitelabel"],j=(0,m.a)();return(0,c.useCallback)(async(t,i)=>{if(!j.current||!b)return;let l={core:{brand:e,source:o.k.Other,visitID:(0,u.h9)(),nodeID:a.nodeId,user:(0,d.gL)(g,v),device:(0,d.NW)(x,h)},paywallfunnel:{...t,paywallFunnelSessionID:(()=>{let e=sessionStorage.getItem(p);if(e)return e;let t="pf-session-".concat(crypto.randomUUID());return sessionStorage.setItem(p,t),t})()},asset:i};return(0,d.Xz)(b,"/v2/paywallfunnel",l,e)},[e,b,j,a.nodeId,x,v,g,h])}},42910:(e,t,a)=>{"use strict";a.d(t,{M:()=>o});var i=a(27964),l=a(72848),n=a(61127),r=a(14232),s=a(59712);let o=e=>{let t,a,o,c,d=(0,i.c)(11),u=(0,l.P)(),{getBrazeFeatureFlag:m,brazeFeatureFlagsUpToDate:f,shouldLoadBraze:p}=(0,n.ml)();if(d[0]!==u||d[1]!==m){let e=m("sndp.".concat(u,".puomi-paywall-target-group"));t=(null==e?void 0:e.getStringProperty("targetGroup"))||void 0,d[0]=u,d[1]=m,d[2]=t}else t=d[2];let h=t,x=!1===p||!0===p&&f,[g,v]=(0,r.useState)(!1);d[3]!==u||d[4]!==x||d[5]!==e?(a=()=>{if(x||e)return;let t=setTimeout(()=>{v(!0),(0,s.Xo)("feature flag timeout","sndp.".concat(u,".puomi-paywall-target-group"))},500);return()=>clearTimeout(t)},o=[x,e,u],d[3]=u,d[4]=x,d[5]=e,d[6]=a,d[7]=o):(a=d[6],o=d[7]),(0,r.useEffect)(a,o);let b=x||g,j=b&&!g?h:void 0;return d[8]!==b||d[9]!==j?(c={brazeTargetGroup:j,isReady:b},d[8]=b,d[9]=j,d[10]=c):c=d[10],c}},43032:(e,t,a)=>{"use strict";a.d(t,{X:()=>n});var i=a(37876),l=a(27964);let n=()=>{let e,t=(0,l.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)("div",{id:"page-main-content"}),t[0]=e):e=t[0],e}},46644:(e,t,a)=>{"use strict";a.d(t,{v:()=>tG});var i=a(37876),l=a(27964),n=a(15039),r=a.n(n),s=a(18858),o=a(464);let c=e=>{let t,a=(0,l.c)(2),{adformId:n}=e,r=(0,s.R7)()["html.advertorial.adform.pixel.enabled"];if(!(0,o.ND)()||!r)return null;let c="https://track.adform.net/adfserve/?bn=".concat(n,";").concat("1x1inv=1;srctype=3;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_50};ord=[timestamp]");return a[0]!==c?(t=(0,i.jsx)("img",{"data-testid":"adform",src:c,width:"1",height:"1",alt:""}),a[0]=c,a[1]=t):t=a[1],t};var d=a(28400),u=a(13725),m=a(72848),f=a(23191),p=a(59575),h=a(92739),x=a(18847),g=a.n(x),v=a(60697),b=a(23453),j=a(49154);let y=g()(()=>Promise.all([a.e(7523),a.e(3234),a.e(8916)]).then(a.bind(a,57181)).then(e=>e.ShoppingUIClaim),{loadableGenerated:{webpack:()=>[57181]},ssr:!1,...(0,b.d)()}),k=e=>{let t,a,n,r,o,c=(0,l.c)(21),{forceRefresh:d,sectionTheme:u,noJsRedirect:x}=e,g=void 0!==x&&x,b=(0,m.P)(),{environment:k}=(0,f.U)(),A=(0,s.R7)(),{userProfile:_,getValidSessionToken:N}=(0,h.sb)(),{isDarkMode:w}=(0,p.DP)();c[0]!==b||c[1]!==u?(t=(0,v.N9)(b,u),c[0]=b,c[1]=u,c[2]=t):t=c[2];let S=t;return c[3]!==b?(a=(0,v.US)(b),c[3]=b,c[4]=a):a=c[4],c[5]!==_?(n=(0,j.XI)(_),c[5]=_,c[6]=n):n=c[6],c[7]!==b||c[8]!==A||c[9]!==g?(r=(0,j.Xg)(b,A,g),c[7]=b,c[8]=A,c[9]=g,c[10]=r):r=c[10],c[11]!==b||c[12]!==S||c[13]!==k||c[14]!==d||c[15]!==N||c[16]!==w||c[17]!==a||c[18]!==n||c[19]!==r?(o=(0,i.jsx)(y,{brand:b,domain:a,userProfile:n,urls:r,env:k,onContinueReading:d,designSystem:S,getJwtToken:N,isDarkMode:w}),c[11]=b,c[12]=S,c[13]=k,c[14]=d,c[15]=N,c[16]=w,c[17]=a,c[18]=n,c[19]=r,c[20]=o):o=c[20],o};var A=a(89384);let _=e=>{let t,a,n,s,o,f,p=(0,l.c)(16),{assetId:h,className:x,adformId:g,children:v}=e,b=(0,m.P)();return p[0]!==x?(t=r()("article-body","ab-test-article-body","w-full",x),p[0]=x,p[1]=t):t=p[1],p[2]!==b?(a="hs"===b&&(0,i.jsx)(k,{forceRefresh:A.t}),p[2]=b,p[3]=a):a=p[3],p[4]!==h?(n=(0,i.jsx)(u.p,{assetId:h}),p[4]=h,p[5]=n):n=p[5],p[6]!==g?(s=g&&(0,i.jsx)(c,{adformId:g}),p[6]=g,p[7]=s):s=p[7],p[8]!==a||p[9]!==n||p[10]!==s?(o=(0,i.jsxs)(d.Y,{children:[a,n,s]}),p[8]=a,p[9]=n,p[10]=s,p[11]=o):o=p[11],p[12]!==v||p[13]!==t||p[14]!==o?(f=(0,i.jsxs)("section",{className:t,"data-ab":"article-body","data-scroll-depth-root":!0,children:[v,o]}),p[12]=v,p[13]=t,p[14]=o,p[15]=f):f=p[15],f};var N=a(95270),w=a.n(N),S=a(5243),I=a(72696),C=a(95961),T=a(63593),P=a(99972),E=a(14232),D=a(59712),L=a(40262),F=a(71152),B=a(59587),R=a(21155),O=a(25214),W=a(30049);let M=g()(()=>Promise.all([a.e(8299),a.e(682),a.e(5454)]).then(a.bind(a,20012)),{loadableGenerated:{webpack:()=>[20012]},ssr:!1,...(0,b.d)()}),z="stuck",U="".concat(O.xe,"px"),K="".concat(O.eN,"px"),G="".concat(O.vu,"px"),H="".concat(W.Tx,"px"),V="".concat(W.jK,"px"),q=e=>{let t,a=(0,l.c)(2);return a[0]!==e?(t=(0,i.jsx)(I.t,{children:(0,i.jsx)($,{...e})}),a[0]=e,a[1]=t):t=a[1],t},$=e=>{var t;let a,{video:l,renderContext:n="mainVideo",className:s,threshold:o=.9,stickyTitle:c,videoEventHandler:d,onEnterSticky:u,onExitSticky:m,autoplay:f}=e,{assetData:p}
1=(0,C._)(),h=(0,E.useRef)(null),x=(0,B.Fh)(l),{useInkMiniplayer:g,hideSideLane:v}=(0,T.g$)(),[b,j]=(0,E.useState)("auto"),{stickyVideoEnabled:y}=(0,R.t)(),k=(null==p?void 0:p.resourceType)==="Article"&&(null==(t=p.liveArticle)?void 0:t.isLive),[A,_]=(0,E.useState)(),[N,I]=(0,E.useState)(!1),O=(0,E.useCallback)(()=>{var e,t;return(0,F.Bd)()&&(null==(t=window.RP)||null==(e=t.Players)?void 0:e[x])},[x]),W=(0,E.useCallback)(()=>{J(h),null==m||m()},[m]),q=(0,E.useCallback)(e=>{e.boundingClientRect.top<0&&(null==A?void 0:A.playerState.status)==="playing"&&(X(h),null==u||u())},[A,u]),{ref:$}=(0,P.W)({onExit:q,onEnter:W,threshold:o}),X=e=>{e.current&&(y||N||k)&&e.current.classList.add(z)},J=e=>{e.current&&e.current.classList.remove(z)},Z=(0,E.useCallback)(function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(J(h),(0,D.XE)("sticky video close",""),e&&O()){var t,a,i;null==(i=window.RP)||null==(a=i.Players)||null==(t=a[x])||t.pause()}},[O,x]),Y=(0,E.useCallback)(()=>{J(h),(0,D.XE)("sticky video close",""),(null==A?void 0:A.player)&&A.player.pause()},[A]);(null==p?void 0:p.resourceType)==="Article"?a=p.template:(null==p?void 0:p.resourceType)==="Advertorial"&&(a=L.cZ);let Q=U;switch(a){case L.D8:case L.b4:Q=K;break;case L.ih:case L.cZ:Q="calc(".concat(K," - 2 * 8px)")}let ee=(0,B.tW)(l);return(0,E.useEffect)(()=>{let e=()=>{if(!h.current)return;let e=Math.min(.8*window.outerHeight,h.current.clientWidth*(1/ee));j("".concat(e,"px"))};return CSS.supports("aspect-ratio","1")||(window.addEventListener("resize",e),e()),()=>{window.removeEventListener("resize",e)}},[ee]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{ref:$,"data-testid":"inview-wrapper",className:w().dynamic([["4ebe93e3136ddbe4",[ee,ee,b,z,z,z,V,z,H,z,U,z,V,Q,z,z,U,G,z]]])+" "+(r()("placeholder bg-nof-background-content-default relative w-full",{"square-video":"square"===l.orientation,"vertical-video":"vertical"===l.orientation,"horizontal-video":"horizontal"===l.orientation||!l.orientation})||""),children:[(0,i.jsx)("div",{ref:h,"data-testid":"sticky-container",className:w().dynamic([["4ebe93e3136ddbe4",[ee,ee,b,z,z,z,V,z,H,z,U,z,V,Q,z,z,U,G,z]]])+" "+(r()("sticky-container top-0 z-10 w-full",{"side-lane-disabled":v,"side-lane-enabled":!v})||""),children:(0,i.jsxs)("div",{className:w().dynamic([["4ebe93e3136ddbe4",[ee,ee,b,z,z,z,V,z,H,z,U,z,V,Q,z,z,U,G,z]]])+" "+(r()("video-container relative left-0 w-full",{"below-header":!g})||""),children:[(0,i.jsx)(M,{mediaContent:l,renderContext:n,setVideoPlayer:_,showMediaContentInfo:!1,closeStickyVideo:g?Z:void 0,className:s,videoEventHandler:d,autoplay:f,onIsLive:I}),(0,i.jsx)("div",{className:w().dynamic([["4ebe93e3136ddbe4",[ee,ee,b,z,z,z,V,z,H,z,U,z,V,Q,z,z,U,G,z]]])+" close bg-nof-background-content-default border-divider-2 border-b",children:(0,i.jsxs)("div",{className:w().dynamic([["4ebe93e3136ddbe4",[ee,ee,b,z,z,z,V,z,H,z,U,z,V,Q,z,z,U,G,z]]])+" flex items-center p-8",children:[c&&(0,i.jsx)("p",{className:w().dynamic([["4ebe93e3136ddbe4",[ee,ee,b,z,z,z,V,z,H,z,U,z,V,Q,z,z,U,G,z]]])+" nof-ui-body-small text-nof-foreground-primary font-bold",children:c}),(0,i.jsx)("button",{onClick:()=>{Y()},className:w().dynamic([["4ebe93e3136ddbe4",[ee,ee,b,z,z,z,V,z,H,z,U,z,V,Q,z,z,U,G,z]]])+" nof-ui-body-medium text-nof-foreground-primary ml-auto p-4",children:"Sulje"})]})})]})}),(0,i.jsx)(w(),{id:"4ebe93e3136ddbe4",dynamic:[ee,ee,b,z,z,z,V,z,H,z,U,z,V,Q,z,z,U,G,z],children:"@supports(aspect-ratio:".concat(ee,"){.placeholder.__jsx-style-dynamic-selector{max-height:80vh}}@supports not (aspect-ratio:").concat(ee,"){.placeholder.__jsx-style-dynamic-selector{height:").concat(b,"}}.video-container.__jsx-style-dynamic-selector{transition:all.3s ease-out}.sticky-container.__jsx-style-dynamic-selector .close.__jsx-style-dynamic-selector{visibility:hidden;height:0;opacity:0;transition:opacity.3s ease}.sticky-container.").concat(z,".__jsx-style-dynamic-selector .close.__jsx-style-dynamic-selector{visibility:visible;height:auto;opacity:1}.sticky-container.").concat(z,".__jsx-style-dynamic-selector+.overlay-text.__jsx-style-dynamic-selector{color:#000}.sticky-container.").concat(z,".__jsx-style-dynamic-selector .below-header.__jsx-style-dynamic-selector{top:60px;position:absolute}@media(max-width:").concat(V,")and (orientation:portrait){.sticky-container.").concat(z,".__jsx-style-dynamic-selector{position:fixed;background-color:var(--nof-semantic-color-background-content-default)}}@media(min-width:").concat(H,"){.side-lane-disabled.sticky-container.").concat(z,".__jsx-style-dynamic-selector{position:fixed;max-width:").concat(U,";height:0}.side-lane-disabled.sticky-container.").concat(z,".__jsx-style-dynamic-selector .video-container.__jsx-style-dynamic-selector{width:45%;left:45%;position:absolute;transform:translate(-50%)}}@media(min-width:").concat(V,"){.video-container.__jsx-style-dynamic-selector{max-width:").concat(Q,"}.sticky-container.").concat(z,".__jsx-style-dynamic-selector{position:fixed}.side-lane-enabled.sticky-container.").concat(z,".__jsx-style-dynamic-selector .video-container.__jsx-style-dynamic-selector{margin-left:16px;left:").concat(U,";width:").concat(G,";transition:all.3s ease-out}.side-lane-disabled.sticky-container.").concat(z,".__jsx-style-dynamic-selector .video-container.__jsx-style-dynamic-selector{left:45%}}")})]}),(0,i.jsx)(S.U$,{caption:l.caption,credits:l.credits,photographer:l.photographer,renderContext:n})]})};var X=a(25034),J=a(81389),Z=a(53409),Y=a(6765),Q=a(41116),ee=a.n(Q),et=a(84688),ea=a(27417);let ei=e=>{let t,a,n,r,s,o,c=(0,l.c)(25),{picture:d,maxWidth:u,maxBreakpointWidth:m,showCaption:f,loading:p,className:h,lightbox:x,overlay:g}=e,v=void 0!==f&&f,{caption:b,photographer:j}=d,{openImageGalleryEvent:y}=(0,T.g$)(),k="eager"!==(void 0===p?"lazy":p);c[0]!==m||c[1]!==u||c[2]!==d||c[3]!==k?(t=(0,i.jsx)(Y.V,{picture:d,maxImageWidth:u,max
1ImageBreakpointWidth:m,enableNativeLazyLoad:k}),c[0]=m,c[1]=u,c[2]=d,c[3]=k,c[4]=t):t=c[4];let A=t;c[5]!==A||c[6]!==y||c[7]!==d||c[8]!==v?(a=()=>y?(0,i.jsx)(ea.O,{url:d.url,children:A}):(0,i.jsx)(el,{picture:d,showCaption:v,children:A}),c[5]=A,c[6]=y,c[7]=d,c[8]=v,c[9]=a):a=c[9];let _=a;c[10]!==A||c[11]!==x||c[12]!==_?(n=x?_():A,c[10]=A,c[11]=x,c[12]=_,c[13]=n):n=c[13];let N=n;return c[14]!==N||c[15]!==g?(r=g?(0,i.jsxs)("div",{className:"relative",children:[N,g]}):N,c[14]=N,c[15]=g,c[16]=r):r=c[16],c[17]!==b||c[18]!==j||c[19]!==v?(s=v&&(b||j)&&(0,i.jsx)("figcaption",{className:"mt-(--picture-caption-mt) px-(--picture-caption-px)",children:(0,i.jsx)(et.H,{caption:b,photographer:j})}),c[17]=b,c[18]=j,c[19]=v,c[20]=s):s=c[20],c[21]!==h||c[22]!==r||c[23]!==s?(o=(0,i.jsxs)("figure",{className:h,"data-scroll-depth-fallback-root":!0,children:[r,s]}),c[21]=h,c[22]=r,c[23]=s,c[24]=o):o=c[24],o},el=e=>{let t,a,n,r,s,o,c,d,u,m,f=(0,l.c)(21),{picture:p,showCaption:h,children:x}=e,[g,v]=(0,E.useState)(!1),{caption:b,photographer:j}=p;return f[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{v(!1)},f[0]=t):t=f[0],f[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsx)(Z.U,{size:24}),f[1]=a):a=f[1],f[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,i.jsx)(J.x,{label:"Sulje kuva",icon:a,iconOnly:!0,colorVariant:"Negative",containerClassName:"absolute right-8 top-8 z-10",onClick:()=>{v(!1)}}),f[2]=n):n=f[2],f[3]!==p?(r=(0,i.jsx)(Y.V,{picture:p,maxImageWidth:O.v7,imgClassNameOverride:"h-dvh w-dvw object-contain",skipPictureAspectRatio:!0}),f[3]=p,f[4]=r):r=f[4],f[5]!==b||f[6]!==j||f[7]!==h?(s=h&&(b||j)&&(0,i.jsx)("figcaption",{className:"bg-black-opacity p-nof-8 absolute bottom-0 left-0 min-w-full",children:(0,i.jsx)(et.H,{caption:b,photographer:j,inlineCredits:!1})}),f[5]=b,f[6]=j,f[7]=h,f[8]=s):s=f[8],f[9]!==r||f[10]!==s?(o=(0,i.jsxs)("figure",{className:"relative h-dvh w-dvw [--picture-byline-color:var(--nof-semantic-color-foreground-negative)] [--picture-caption-color:var(--nof-semantic-color-foreground-negative)]",children:[r,s]}),f[9]=r,f[10]=s,f[11]=o):o=f[11],f[12]!==g||f[13]!==o?(c=(0,i.jsxs)(ee(),{isOpen:g,onRequestClose:t,closeTimeoutMS:300,className:"absolute top-0 left-0 bg-black",children:[n,o]}),f[12]=g,f[13]=o,f[14]=c):c=f[14],f[15]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{v(!0)},f[15]=d):d=f[15],f[16]!==x?(u=(0,i.jsx)("button",{"aria-label":"Suurenna kuva",className:"block w-full",onClick:d,children:x}),f[16]=x,f[17]=u):u=f[17],f[18]!==c||f[19]!==u?(m=(0,i.jsxs)(i.Fragment,{children:[c,u]}),f[18]=c,f[19]=u,f[20]=m):m=f[20],m};var en=a(64933),er=a(55960),es=a(41362),eo=a(96078),ec=a(34950);let ed=g()(()=>Promise.all([a.e(8299),a.e(682),a.e(5454)]).then(a.bind(a,20012)),{loadableGenerated:{webpack:()=>[20012]},ssr:!1,...(0,b.d)()}),eu=e=>{let{className:t,picture:a,video:l,useStickyVideo:n=!0,maxImageWidth:s,maxImageBreakpointWidth:o}=e,{enableStickyVideo:c,hideSideLane:d}=(0,T.g$)(),[u,f]=(0,E.useState)(!1),{useMainVideoPreview:p}=es.A,{userProfile:x}=(0,h.sb)(),g=(0,m.P)(),{assetData:v,isPaidInDynamicPaywall:b}=(0,C._)(),j=a&&(0,O.$D)(a.url),y=a&&(0,O.K$)(a);(0,E.useEffect)(()=>{f(!(0,F.j$)(O.rI))},[]);let k=(e,a)=>(0,i.jsx)(ei,{className:r()("w-full",t,j?"px-(--article-main-image-px-svg)":"px-(--article-main-image-px)",{"article-main-image-wrapper--vertical":y}),picture:e,maxWidth:s,maxBreakpointWidth:o,loading:"eager",showCaption:!0,lightbox:!0,overlay:a});if(l){if(l.coverVideo)return(0,i.jsx)(X.p,{video:l,picture:a,maxImageWidth:s,maxImageBreakpointWidth:o,className:r()("px-(--article-main-video-px)",t),videoClassName:r()("article-main-video-wrapper w-full",(0,B.DN)(l.orientation))});if(p&&(0,ec.BG)(v)&&v.paidType&&!(0,eo.mp)(x,v.paidType,g,b)){var A;if(l.mainVideoPreview)return(0,i.jsx)(er.k,{video:l,picture:a,maxImageWidth:s,maxImageBreakpointWidth:o,className:r()("media-player-container media-player-wrapper media-player-wrapper--main relative",(0,B.DN)(l.orientation),t),showPaywall:!0,disableInViewPausing:!0,loop:!1});let e=null!=(A=l.picture)?A:a;if(e){let t="crossbow-livestream"===l.source;return k(e,(0,i.jsx)(en.R,{label:t?"L\xe4hetys vain tilaajille":"Katso tilauksella",showPlayButton:!t}))}return null}let e=!(0,B.Sk)(l)&&(u||d);return(0,i.jsx)("div",{className:r()("article-main-video-wrapper w-full px-(--article-main-video-px)",t),"data-scroll-depth-fallback-root":!0,children:n&&c&&!e?(0,i.jsx)(q,{video:l}):(0,i.jsx)(ed,{mediaContent:l,renderContext:"mainVideo"})})}return a?k(a):null};var em=a(33962),ef=a(57865);let ep=e=>{let t,a,n,s,o,c=(0,l.c)(13),{className:d,nodeTitle:u,storyLogo:m}=e;return c[0]!==d?(t=r()("adinfo-container","advertorial-info","hide-if-empty",d),c[0]=d,c[1]=t):t=c[1],c[2]!==u||c[3]!==m?(a=u&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"advertorial-info__label",children:"Mainos"}),m&&(0,i.jsx)("span",{className:"mx-nof-8","aria-hidden":"true",children:"â"})]}),c[2]=u,c[3]=m,c[4]=a):a=c[4],c[5]!==m?(n=m&&(0,i.jsx)("span",{className:"advertorial-info__label",children:m}),c[5]=m,c[6]=n):n=c[6],c[7]!==a||c[8]!==n?(s=(0,i.jsxs)("div",{className:"advertorial-info__wrapper hide-if-empty advertorial-label",children:[a,n]}),c[7]=a,c[8]=n,c[9]=s):s=c[9],c[10]!==t||c[11]!==s?(o=(0,i.jsx)("div",{className:t,children:s}),c[10]=t,c[11]=s,c[12]=o):o=c[12],o};
1var eh=a(53051),ex=a(14220),eg=a(7982),ev=a(6109);let eb=e=>{let t,a,n,s,o=(0,l.c)(12),{ingress:c,storyLogo:d,className:u}=e,{hideSections:m}=(0,R.t)();if(!c)return null;let f=m&&"hs-section-removal";return o[0]!==u||o[1]!==f?(t=r()(f,u),o[0]=u,o[1]=f,o[2]=t):t=o[2],o[3]!==m||o[4]!==d?(a=m&&d&&(0,i.jsxs)("span",{className:"font-(--ingress-storylogo-font-weight)",children:[d,(0,i.jsx)("span",{"aria-hidden":"true",children:" | "})]}),o[3]=m,o[4]=d,o[5]=a):a=o[5],o[6]!==c?(n=(0,ev.K)(c),o[6]=c,o[7]=n):n=o[7],o[8]!==t||o[9]!==a||o[10]!==n?(s=(0,i.jsxs)("p",{className:t,children:[a,n]}),o[8]=t,o[9]=a,o[10]=n,o[11]=s):s=o[11],s};var ej=a(16560),ey=a(85008),ek=a(94712),eA=a(38982);let e_=e=>{let t,a,n,r,s=(0,l.c)(8),{srcs:c}=e,d=(0,E.useRef)(null);s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,eA._)(),s[0]=t):t=s[0];let[u,m]=(0,E.useState)(t),f=(0,o.ND)();s[1]!==c?(a=c?c.map(eN).join(""):"",s[1]=c,s[2]=a):a=s[2];let p=a;if(s[3]!==u||s[4]!==p?(n=()=>{if(u)try{let e=document.createRange().createContextualFragment(p);d.current&&d.current.appendChild(e)}catch(e){m(!1)}},r=[u,p],s[3]=u,s[4]=p,s[5]=n,s[6]=r):(n=s[5],r=s[6]),(0,E.useEffect)(n,r),!c||0===c.length||!u||!f)return null;{let e;return s[7]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)("div",{ref:d}),s[7]=e):e=s[7],e}};function eN(e){return'<script src="'.concat(e,'" />')}var ew=a(43032),eS=a(20952);let eI=e=>{let t=(0,l.c)(58),{advertorial:a,placeholderType:n}=e,r=(0,m.P)(),s=(0,eS.p)(),{id:o,title:c,ingress:u,nodeTitle:f,editionNodeTitle:p,storyLogo:h,displayModifiedDate:x,displayDate:g,mainPicture:v,mainVideo:b,splitBody:j,links:y,byLine:k,tags:A,liveArticle:N,paidType:w,rawScriptSrcs:S,adformId:I,audioType:C,customListenAudioTitle:T}=a;switch(n){case"sitewide":default:return null;case"wide":{let e,a,l,n,o,d,m,x,g,j,y="edition"===s.nodeType?p:f;return t[0]!==h||t[1]!==y?(e=(0,i.jsx)(ep,{nodeTitle:y,storyLogo:h,className:"advertorial__spacing"}),t[0]=h,t[1]=y,t[2]=e):e=t[2],t[3]!==N?(a=(0,i.jsx)(ej.k,{className:"advertorial__spacing",liveArticle:N,liveIcon20:!0}),t[3]=N,t[4]=a):a=t[4],t[5]!==c?(l=(0,i.jsx)(eg.$,{className:"advertorial-article-headline article-title",title:c,level:"h2"}),t[5]=c,t[6]=l):l=t[6],t[7]!==u?(n=(0,i.jsx)(eb,{ingress:u,className:"advertorial-article-ingress article-ingress"}),t[7]=u,t[8]=n):n=t[8],t[9]!==r||t[10]!==w?(o=(0,L.cN)(w,r),t[9]=r,t[10]=w,t[11]=o):o=t[11],t[12]!==w||t[13]!==o?(d=(0,i.jsx)(ey.O,{title:o,icon:!0,paidType:w,className:"advertorial__spacing"}),t[12]=w,t[13]=o,t[14]=d):d=t[14],t[15]!==v||t[16]!==b?(m=(0,i.jsx)(eu,{picture:v,video:b,maxImageWidth:O.eN,maxImageBreakpointWidth:O.rI}),t[15]=v,t[16]=b,t[17]=m):m=t[17],t[18]!==e||t[19]!==a||t[20]!==l||t[21]!==n||t[22]!==d||t[23]!==m?(x=(0,i.jsxs)("div",{className:"advertorial__container--wide hide-if-empty",children:[e,a,l,n,d,m]}),t[18]=e,t[19]=a,t[20]=l,t[21]=n,t[22]=d,t[23]=m,t[24]=x):x=t[24],t[25]===Symbol.for("react.memo_cache_sentinel")?(g=(0,i.jsx)("div",{className:"mx-nof-16 mt-nof-16 md:hidden",children:(0,i.jsx)("hr",{className:"w-full"})}),t[25]=g):g=t[25],t[26]!==x?(j=(0,i.jsxs)(i.Fragment,{children:[x,g]}),t[26]=x,t[27]=j):j=t[27],j}case"main":{let e,l,n,r,s,c,u,m,f,p;return t[28]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(ew.X,{}),t[28]=e):e=t[28],t[29]!==C||t[30]!==T?(l=(0,i.jsx)(eh.x,{audioType:C,customListenAudioTitle:T}),t[29]=C,t[30]=T,t[31]=l):l=t[31],t[32]!==k?(n=(0,i.jsx)(ex.a,{byLine:k,className:"advertorial__byline"}),t[32]=k,t[33]=n):n=t[33],t[34]!==g||t[35]!==x?(r=(0,i.jsx)(ek.n,{date:g,modifiedDate:x,className:"advertorial__spacing"}),t[34]=g,t[35]=x,t[36]=r):r=t[36],t[37]!==j?(s=null==j?void 0:j.map(eC),t[37]=j,t[38]=s):s=t[38],t[39]!==I||t[40]!==o||t[41]!==s?(c=(0,i.jsx)(_,{assetId:o,adformId:I,children:s}),t[39]=I,t[40]=o,t[41]=s,t[42]=c):c=t[42],t[43]!==a||t[44]!==y||t[45]!==A?(u=(0,i.jsx)(em.l,{links:y,tags:A,className:"advertorial__article-tail",asset:a}),t[43]=a,t[44]=y,t[45]=A,t[46]=u):u=t[46],t[47]!==l||t[48]!==n||t[49]!==r||t[50]!==c||t[51]!==u?(m=(0,i.jsxs)("article",{className:"advertorial__container--main hide-if-empty",children:[l,n,r,c,u]}),t[47]=l,t[48]=n,t[49]=r,t[50]=c,t[51]=u,t[52]=m):m=t[52],t[53]!==S?(f=(0,i.jsx)(d.Y,{children:(0,i.jsx)(e_,{srcs:S}
1)}),t[53]=S,t[54]=f):f=t[54],t[55]!==m||t[56]!==f?(p=(0,i.jsxs)(i.Fragment,{children:[e,m,f]}),t[55]=m,t[56]=f,t[57]=p):p=t[57],p}}};function eC(e,t){return(0,i.jsx)(ef.B,{fragment:e},t)}var eT=a(41316),eP=a(27158);let eE=e=>{let t,a,n,s,o,c,d=(0,l.c)(18),{className:u,nodeTitle:m,storyLogo:f,sectionTheme:p,paidLogoAlignment:h,contentType:x,additionalLogo:g}=e,{hideSections:v}=(0,R.t)();if(v)return null;d[0]!==u?(t=r()("article-info","hide-if-empty",u),d[0]=u,d[1]=t):t=d[1];let b="left"===(void 0===h?"left":h)?"article-info__logo-align-left":"article-info__logo-align-center";d[2]!==b?(a=r()("article-info__wrapper","hide-if-empty","article-label",b),d[2]=b,d[3]=a):a=d[3];let j=null!=x?x:eP.cM.article;return d[4]!==g||d[5]!==p||d[6]!==j?(n=(0,i.jsx)("div",{className:"article-info__paid-logo",children:(0,i.jsx)(eP.bm,{contentType:j,sectionTheme:p,additionalLogo:g})}),d[4]=g,d[5]=p,d[6]=j,d[7]=n):n=d[7],d[8]!==m||d[9]!==f?(s=m?(0,i.jsxs)("span",{className:"article-info__label",children:[m,f&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"mx-nof-8","aria-hidden":"true",children:"|"}),f]})]}):f&&(0,i.jsx)("span",{className:"article-info__label",children:f}),d[8]=m,d[9]=f,d[10]=s):s=d[10],d[11]!==a||d[12]!==n||d[13]!==s?(o=(0,i.jsxs)("div",{className:a,children:[n,s]}),d[11]=a,d[12]=n,d[13]=s,d[14]=o):o=d[14],d[15]!==t||d[16]!==o?(c=(0,i.jsx)("div",{className:t,children:o}),d[15]=t,d[16]=o,d[17]=c):c=d[17],c};var eD=a(27815),eL=a(72051),eF=a(43801);let eB=e=>{let t,a,n,s=(0,l.c)(5),{sectionTheme:o,className:c}=e;return"hs"!==(0,m.P)()||"business"!==o?null:(s[0]!==c?(t=r()("flex justify-center",c),s[0]=c,s[1]=t):t=s[1],s[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsx)("div",{className:"hs-visio-logo h-[16px] md:h-[20px] [&>svg]:h-full [&>svg]:w-auto",children:(0,i.jsx)(eF.g,{colorVariant:eL.n.Positive,title:"HS Visio",size:20})}),s[2]=a):a=s[2],s[3]!==t?(n=(0,i.jsx)("div",{className:t,children:a}),s[3]=t,s[4]=n):n=s[4],n)},eR=e=>{let t=(0,l.c)(70),{article:a,placeholderType:n}=e,s=(0,m.P)(),o=(0,eS.p)(),{hideSections:c}=(0,R.t)(),{id:d,title:u,ingress:f,nodeTitle:p,editionNodeTitle:h,storyLogo:x,displayModifiedDate:g,displayDate:v,mainPicture:b,mainVideo:j,splitBody:y,links:k,byLine:A,tags:N,liveArticle:w,paidType:S,sectionTheme:I,additionalLogo:C,audioType:T,customListenAudioTitle:P}=a;switch(n){case"sitewide":default:return null;case"wide":{let e,l,n,d,m,g,v,y,k,_,N,T,P;t[0]!==a?(e=(0,i.jsx)(eD.S,{asset:a}),t[0]=a,t[1]=e):e=t[1];let E="edition"===o.nodeType?h:p;t[2]!==C||t[3]!==I||t[4]!==x||t[5]!==E?(l=(0,i.jsx)(eE,{nodeTitle:E,storyLogo:x,className:"mx-nof-16 mb-nof-16",sectionTheme:I,paidLogoAlignment:"middle",additionalLogo:C}),t[2]=C,t[3]=I,t[4]=x,t[5]=E,t[6]=l):l=t[6],t[7]!==I?(n=(0,i.jsx)(eB,{sectionTheme:I,className:"mb-nof-24 md:mb-nof-16"}),t[7]=I,t[8]=n):n=t[8],t[9]!==w?(d=(0,i.jsx)(ej.k,{className:"mx-nof-16 mb-nof-16",liveArticle:w,liveIcon20:!0,displayBackground:!0}),t[9]=w,t[10]=d):d=t[10];let D=c?"mb-nof-12":"mb-nof-8";t[11]!==D?(m=r()("nof-component-article-title-l-mobile text-nof-foreground-primary sm:nof-component-article-title-l-desktop w-full px-(--article-l-title-padding-x) [text-align:var(--article-l-title-align)]",D),t[11]=D,t[12]=m):m=t[12],t[13]!==m||t[14]!==u?(g=(0,i.jsx)(eg.$,{className:m,title:u,level:"h1"}),t[13]=m,t[14]=u,t[15]=g):g=t[15];let F=c?x:void 0;return t[16]!==f||t[17]!==F?(v=(0,i.jsx)(eb,{ingress:f,storyLogo:F,className:"article-ingress--large"}),t[16]=f,t[17]=F,t[18]=v):v=t[18],t[19]!==s||t[20]!==S||t[21]!==I?(y=(0,L.cN)(S,s,I),t[19]=s,t[20]=S,t[21]=I,t[22]=y):y=t[22],t[23]!==S||t[24]!==y?(k=(0,i.jsx)("div",{className:"article-template__actions-paid-indicator-container",children:(0,i.jsx)(ey.O,{title:y,icon:!0,paidType:S,className:"article-template__paid-indicator",isArticle:!0})}),t[23]=S,t[24]=y,t[25]=k):k=t[25],t[26]!==A?(_=(0,i.jsx)(ex.a,{byLine:A,className:"byline-top center mx-nof-16 mb-nof-16"}),t[26]=A,t[27]=_):_=t[27],t[28]!==a?(N=(0,i.jsx)(eT.o,{className:"article-actions--top mb-nof-16",asset:a,iconOnly:!0,referer:"before article"}),t[28]=a,t[29]=N):N=t[29],t[30]!==b||t[31]!==j?(T=(0,i.jsx)(eu,{className:"mb-nof-16",picture:b,video:j,maxImageWidth:O.eN,maxImageBreakpointWidth:O.rI}),t[30]=b,t[31]=j,t[32]=T):T=t[32],t[33]!==e||t[34]!==v||t[35]!==k||t[36]!==_||t[37]!==N||t[38]!==T||t[39]!==l||t[40]!==n||t[41]!==d||t[42]!==g?(P=(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"article-top--l hide-if-empty",children:[e,l,n,d,g,v,k,_,N,T]})}),t[33]=e,t[34]=v,t[35]=k,t[36]=_,t[37]=N,t[38]=T,t[39]=l,t[40]=n,t[41]=d,t[42]=g,t[43]=P):P=t[43],P}case"main":{let e,l,n,r,s,o,c,u;return t[44]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(ew.X,{}),t[44]=e):e=t[44],t[45]!==T||t[46]!==P||t[47]!==I?(l=(0,i.jsx)(eh.x,{sectionTheme:I,audioType:T,customListenAudioTitle:P}),t[45]=T,t[46]=P,t[47]=I,t[48]=l):l=t[48],t[49]!==A?(n=(0,i.jsx)(ex.a,{byLine:A,className:"byline-main mx-nof-16"}),t[49]=A,t[50]=n):n=t[50],t[51]!==v||t[52]!==g?(r=(0,i.jsx)(ek.n,{date:v,modifiedDate:g,className:"mx-nof-16 mb-nof-16"}),t[51]=v,t[52]=g,t[53]=r):r=t[53],t[54]!==y?(s=null==y?void 0:y.map(eO),t[54]=y,t[55]=s):s=t[55],t[56]!==d||t[57]!==s?(o=(0,i.jsx)(_,{assetId:d,children:s}),t[56]=d,t[57]=s,t[58]=o):o=t[58],t[59]!==a||t[60]!==A||t[61]!==k||t[62]!==N?(c=(0,i.jsx)(em.l,{byLine:A,links:k,tags:N,className:"article-tail",asset:a}),t[59]=a,t[60]=A,t[61]=k,t[62]=N,t[63]=c):c=t[63],t[64]!==l||t[65]!==n||t[66]!==r||t[67]!==o||t[68]!==c?(u=(0,i.jsxs)(i.Fragment,{children:[e,(0,i.jsxs)("article",{className:"article bottom-border--low-contrast hide-if-empty",children:[l,n,r,o,c]})]}),t[64]=l,t[65]=n,t[66]=r,t[67]=o,t[68]=c,t[69]=u):u=t[69],u}}};function eO(e,t){return(0,i.jsx)(ef.B,{fragment:e},t)}let eW=e=>{let t=(0,l.c)(68),{article:a,placeholderType:n}=e,s=(0,m.P)(),o=(0,eS.p)(),{hideSections:c}=(0,R.t)(),{id:d,title:u,ingress:f,nodeTitle:p,editionNodeTitle:h,storyLogo:x,displayModifiedDate:g,displayDate:v,mainPicture:b,mainVideo:j,splitBody:y,links:k,byLine:A,tags:N,liveArticle:w,paidType:S,sectionTheme:I,additionalLogo:C,audioType:T,customListenAudioTitle:P}=a;switch(n){case"sitewide":case"wide":default:return null;case"main":{let e,l,n,m,E,D,F,B,R,W,M,z,U,K,G,H,V,q,$,X;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(ew.X,{}),t[0]=e):e=t[0],t[1]!==a?(l=(0,i.jsx)(eD.S,{asset:a}),t[1]=a,t[2]=l):l=t[2];let J="edition"===o.nodeType?h:p;t[3]!==C||t[4]!==I||t[5]!==x||t[6]!==J?(n=(0,i.jsx)(eE,{nodeTitle:J,storyLogo:x,className:"px-nof-16 mb-nof-8",sectionTheme:I,additionalLogo:C}),t[3]=C,t[4]=I,t[5]=x,t[6]=J,t[7]=n):n=t[7],t[8]!==I?(m=(0,i.jsx)(eB,{sectionTheme:I,className:"mb-nof-24 md:mb-nof-16"}),t[8]=I,t[9]=m):m=t[9],t[10]!==w?(E=w&&w.isLive&&(0,i.jsx)("div",{className:"article--m-live-indicator",children:(0,i.jsx)(ej.k,{className:"px-nof-16 mb-nof-16",liveArticle:w,liveIcon20:!0,displayBackgroun
1d:!0})}),t[10]=w,t[11]=E):E=t[11];let Z=c?"mb-nof-12":"mb-(--article-m-title-margin-bottom)";return t[12]!==Z?(D=r()("nof-component-article-title-m-mobile text-nof-foreground-primary sm:nof-component-article-title-m-desktop mx-nof-16",Z),t[12]=Z,t[13]=D):D=t[13],t[14]!==D||t[15]!==u?(F=(0,i.jsx)(eg.$,{className:D,title:u,level:"h1"}),t[14]=D,t[15]=u,t[16]=F):F=t[16],t[17]!==f||t[18]!==x?(B=(0,i.jsx)(eb,{className:"article-ingress--medium",ingress:f,storyLogo:x}),t[17]=f,t[18]=x,t[19]=B):B=t[19],t[20]!==a?(R=(0,i.jsx)(eT.o,{className:"article-actions--top mb-nof-16",asset:a,referer:"before article"}),t[20]=a,t[21]=R):R=t[21],t[22]!==s||t[23]!==S||t[24]!==I?(W=(0,L.cN)(S,s,I),t[22]=s,t[23]=S,t[24]=I,t[25]=W):W=t[25],t[26]!==S||t[27]!==W?(M=(0,i.jsx)(ey.O,{title:W,icon:!0,paidType:S,className:"article-template__paid-indicator",isArticle:!0}),t[26]=S,t[27]=W,t[28]=M):M=t[28],t[29]!==R||t[30]!==M?(z=(0,i.jsxs)("div",{className:"article-template__actions-paid-indicator-container",children:[R,M]}),t[29]=R,t[30]=M,t[31]=z):z=t[31],t[32]!==b||t[33]!==j?(U=(0,i.jsx)(eu,{picture:b,className:"mb-nof-16",video:j,maxImageWidth:O.xe,maxImageBreakpointWidth:O.rI}),t[32]=b,t[33]=j,t[34]=U):U=t[34],t[35]!==T||t[36]!==P||t[37]!==I?(K=(0,i.jsx)(eh.x,{sectionTheme:I,audioType:T,customListenAudioTitle:P}),t[35]=T,t[36]=P,t[37]=I,t[38]=K):K=t[38],t[39]!==A?(G=(0,i.jsx)(ex.a,{byLine:A,className:"mx-nof-16 mb-nof-4"}),t[39]=A,t[40]=G):G=t[40],t[41]!==v||t[42]!==g?(H=(0,i.jsx)(ek.n,{date:v,modifiedDate:g,className:"mx-nof-16 mb-nof-16"}),t[41]=v,t[42]=g,t[43]=H):H=t[43],t[44]!==y?(V=null==y?void 0:y.map(eM),t[44]=y,t[45]=V):V=t[45],t[46]!==d||t[47]!==V?(q=(0,i.jsx)(_,{assetId:d,children:V}),t[46]=d,t[47]=V,t[48]=q):q=t[48],t[49]!==a||t[50]!==A||t[51]!==k||t[52]!==N?($=(0,i.jsx)(em.l,{byLine:A,links:k,tags:N,asset:a,className:"article-tail"}),t[49]=a,t[50]=A,t[51]=k,t[52]=N,t[53]=$):$=t[53],t[54]!==B||t[55]!==z||t[56]!==U||t[57]!==K||t[58]!==G||t[59]!==H||t[60]!==l||t[61]!==q||t[62]!==$||t[63]!==n||t[64]!==m||t[65]!==E||t[66]!==F?(X=(0,i.jsxs)(i.Fragment,{children:[e,(0,i.jsxs)("article",{className:"article bottom-border--low-contrast hide-if-empty",children:[l,n,m,E,F,B,z,U,K,G,H,q,$]})]}),t[54]=B,t[55]=z,t[56]=U,t[57]=K,t[58]=G,t[59]=H,t[60]=l,t[61]=q,t[62]=$,t[63]=n,t[64]=m,t[65]=E,t[66]=F,t[67]=X):X=t[67],X}}};function eM(e,t){return(0,i.jsx)(ef.B,{fragment:e},t)}var ez=a(38241);let eU=e=>{let t=(0,l.c)(62),{article:a,placeholderType:n}=e,r=(0,m.P)();if("wide"===n){let e,l,n,s,o,c,d,u,m,f,p,h,x,g,v,b,j,y,k,{id:A,displayDate:N,title:w,ingress:S,mainPicture:I,mainVideo:C,splitBody:T,links:P,byLine:E,paidType:D,displayModifiedDate:F,tags:B,nodeTitle:R,storyLogo:W,sectionTheme:M,additionalLogo:z,audioType:U,customListenAudioTitle:K}=a;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(ew.X,{}),t[0]=e):e=t[0],t[1]!==a?(l=(0,i.jsx)(eD.S,{asset:a}),t[1]=a,t[2]=l):l=t[2],t[3]!==I||t[4]!==C?(n=(0,i.jsx)(eu,{className:"mb-nof-24 md:mb-nof-40",picture:I,video:C,useStickyVideo:!1,maxImageBreakpointWidth:O.eN,maxImageWidth:O.eN}),t[3]=I,t[4]=C,t[5]=n):n=t[5],t[6]!==z||t[7]!==R||t[8]!==M||t[9]!==W?(s=(0,i.jsx)(eE,{className:"mb-nof-16",nodeTitle:R,storyLogo:W,sectionTheme:M,paidLogoAlignment:"middle",additionalLogo:z}),t[6]=z,t[7]=R,t[8]=M,t[9]=W,t[10]=s):s=t[10],t[11]!==M?(o=(0,i.jsx)(eB,{sectionTheme:M,className:"mb-nof-24 md:mb-nof-16"}),t[11]=M,t[12]=o):o=t[12],t[13]!==w?(c=(0,i.jsx)(eg.$,{className:"nof-component-article-title-xl-mobile sm:nof-component-article-title-xl-desktop px-nof-32 mb-nof-16 text-nof-foreground-primary article--xl-picture-top--headline max-w-(--width-wide) text-center",title:w,level:"h1"}),t[13]=w,t[14]=c):c=t[14],t[15]!==S?(d=(0,i.jsx)(eb,{className:"article-ingress--xlarge article-ingress__spacing article--xl-picture-top--ingress",ingress:S}),t[15]=S,t[16]=d):d=t[16],t[17]!==r||t[18]!==D||t[19]!==M?(u=(0,L.cN)(D,r,M),t[17]=r,t[18]=D,t[19]=M,t[20]=u):u=t[20],t[21]!==D||t[22]!==u?(m=(0,i.jsx)(ey.O,{title:u,icon:!0,paidType:D,className:"mb-nof-24",isArticle:!0}),t[21]=D,t[22]=u,t[23]=m):m=t[23],t[24]!==a?(f=(0,i.jsx)(eT.o,{className:"article-actions--top mb-nof-24",asset:a,iconOnly:!0,referer:"before article"}),t[24]=a,t[25]=f):f=t[25],t[26]===Symbol.for("react.memo_cache_sentinel")?(p=(0,i.jsx)("hr",{className:"article-divider"}),t[26]=p):p=t[26],t[27]!==U||t[28]!==K||t[29]!==M?(h=(0,i.jsx)(eh.x,{sectionTheme:M,audioType:U,customListenAudioTitle:K}),t[27]=U,t[28]=K,t[29]=M,t[30]=h):h=t[30],t[31]!==E?(x=(0,i.jsx)(ex.a,{byLine:E,className:"mb-nof-4"}),t[31]=E,t[32]=x):x=t[32],t[33]!==N||t[34]!==F?(g=(0,i.jsx)(ek.n,{date:N,modifiedDate:F}),t[33]=N,t[34]=F,t[35]=g):g=t[35],t[36]!==h||t[37]!==x||t[38]!==g?(v=(0,i.jsxs)("div",{className:"article-template__date-container hide-if-empty",children:[p,h,x,g]}),t[36]=h,t[37]=x,t[38]=g,t[39]=v):v=t[39],t[40]!==T?(b=null==T?void 0:T.map(eK),t[40]=T,t[41]=b):b=t[41],t[42]!==A||t[43]!==b?(j=(0,i.jsx)(_,{assetId:A,className:"article-body--xl",children:b}),t[42]=A,t[43]=b,t[44]=j):j=t[44],t[45]!==a||t[46]!==E||t[47]!==P||t[48]!==B?(y=(0,i.jsx)(em.l,{className:"article-tail--xl",byLine:E,links:P,tags:B,asset:a}),t[45]=a,t[46]=E,t[47]=P,t[48]=B,t[49]=y):y=t[49],t[50]!==f||t[51]!==v||t[52]!==j||t[53]!==y||t[54]!==l||t[55]!==n||t[56]!==s||t[57]!==o||t[58]!==c||t[59]!==d||t[60]!==m?(k=(0,i.jsxs)(i.Fragment,{children:[e,(0,i.jsxs)("article",{className:"article--xl-picture-top hide-if-empty",children:[l,n,s,o,c,d,m,f,v,j,y]})]}),t[50]=f,t[51]=v,t[52]=j,t[53]=y,t[54]=l,t[55]=n,t[56]=s,t[57]=o,t[58]=c,t[59]=d,t[60]=m,t[61]=k):k=t[61],k}return null};function eK(e,t){return"img"===e.type?(0,i.jsx)(ez.H,{fragment:e,size:"wide"},t):(0,i.jsx)(ef.B,{fragment:e},t)}let eG=e=>
1{let t=(0,l.c)(65),{article:a,placeholderType:n}=e,r=(0,m.P)();if("wide"===n){var s,o,c,d,u,f;let e,l,n,m,p,h,x,g,v,b,j,y,k,A,N,w,S,I,C,{id:T,displayDate:P,title:E,ingress:D,mainPicture:F,mainVideo:B,splitBody:R,links:W,byLine:M,paidType:z,displayModifiedDate:U,tags:K,nodeTitle:G,storyLogo:H,sectionTheme:V,additionalLogo:q,audioType:$,customListenAudioTitle:X}=a;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(ew.X,{}),t[0]=e):e=t[0],t[1]!==a?(l=(0,i.jsx)(eD.S,{asset:a}),t[1]=a,t[2]=l):l=t[2],t[3]!==q||t[4]!==G||t[5]!==V||t[6]!==H?(n=(0,i.jsx)(eE,{nodeTitle:G,storyLogo:H,sectionTheme:V,paidLogoAlignment:"middle",additionalLogo:q}),t[3]=q,t[4]=G,t[5]=V,t[6]=H,t[7]=n):n=t[7],t[8]!==V?(m=(0,i.jsx)(eB,{sectionTheme:V,className:"mb-nof-24 md:mb-nof-16"}),t[8]=V,t[9]=m):m=t[9],t[10]!==E?(p=(0,i.jsx)(eg.$,{className:"nof-component-article-title-xl-mobile px-nof-32 mb-nof-16 sm:nof-component-article-title-xl-desktop text-nof-foreground-primary max-w-(--width-wide) text-center",title:E,level:"h1"}),t[10]=E,t[11]=p):p=t[11],t[12]!==D?(h=(0,i.jsx)(eb,{className:"article-ingress--xlarge article-ingress__spacing",ingress:D}),t[12]=D,t[13]=h):h=t[13],t[14]!==r||t[15]!==z||t[16]!==V?(x=(0,L.cN)(z,r,V),t[14]=r,t[15]=z,t[16]=V,t[17]=x):x=t[17],t[18]!==z||t[19]!==x?(g=(0,i.jsx)(ey.O,{title:x,icon:!0,paidType:z,className:"mb-nof-24",isArticle:!0}),t[18]=z,t[19]=x,t[20]=g):g=t[20],t[21]!==a?(v=(0,i.jsx)(eT.o,{className:"article-actions--top mb-nof-24",asset:a,referer:"before article"}),t[21]=a,t[22]=v):v=t[22],t[23]!==F||t[24]!==B?(b=(0,i.jsx)(eu,{className:"mb-nof-16",picture:F,video:B,useStickyVideo:!1,maxImageBreakpointWidth:O.eN,maxImageWidth:O.eN}),t[23]=F,t[24]=B,t[25]=b):b=t[25],t[26]!==(null==(s=a.mainPicture)?void 0:s.caption)||t[27]!==(null==(o=a.mainPicture)?void 0:o.photographer)?(j=((null==(c=a.mainPicture)?void 0:c.caption)||(null==(d=a.mainPicture)?void 0:d.photographer))&&(0,i.jsx)("hr",{className:"article-divider w-full"}),t[26]=null==(u=a.mainPicture)?void 0:u.caption,t[27]=null==(f=a.mainPicture)?void 0:f.photographer,t[28]=j):j=t[28],t[29]!==$||t[30]!==X||t[31]!==V?(y=(0,i.jsx)(eh.x,{sectionTheme:V,audioType:$,customListenAudioTitle:X}),t[29]=$,t[30]=X,t[31]=V,t[32]=y):y=t[32],t[33]!==M?(k=(0,i.jsx)(ex.a,{byLine:M,className:"mb-nof-4"}),t[33]=M,t[34]=k):k=t[34],t[35]!==P||t[36]!==U?(A=(0,i.jsx)(ek.n,{date:P,modifiedDate:U}),t[35]=P,t[36]=U,t[37]=A):A=t[37],t[38]!==j||t[39]!==y||t[40]!==k||t[41]!==A?(N=(0,i.jsxs)("div",{className:"article-template__date-container hide-if-empty",children:[j,y,k,A]}),t[38]=j,t[39]=y,t[40]=k,t[41]=A,t[42]=N):N=t[42],t[43]!==R?(w=null==R?void 0:R.map(eH),t[43]=R,t[44]=w):w=t[44],t[45]!==T||t[46]!==w?(S=(0,i.jsx)(_,{assetId:T,className:"max-width-main",children:w}),t[45]=T,t[46]=w,t[47]=S):S=t[47],t[48]!==a||t[49]!==M||t[50]!==W||t[51]!==K?(I=(0,i.jsx)(em.l,{byLine:M,links:W,tags:K,className:"article-tail--xl",asset:a}),t[48]=a,t[49]=M,t[50]=W,t[51]=K,t[52]=I):I=t[52],t[53]!==b||t[54]!==N||t[55]!==S||t[56]!==I||t[57]!==l||t[58]!==n||t[59]!==m||t[60]!==p||t[61]!==h||t[62]!==g||t[63]!==v?(C=(0,i.jsxs)(i.Fragment,{children:[e,(0,i.jsxs)("article",{className:"article--xl-title-top hide-if-empty",children:[l,n,m,p,h,g,v,b,N,S,I]})]}),t[53]=b,t[54]=N,t[55]=S,t[56]=I,t[57]=l,t[58]=n,t[59]=m,t[60]=p,t[61]=h,t[62]=g,t[63]=v,t[64]=C):C=t[64],C}return null};function eH(e,t){return"img"===e.type?(0,i.jsx)(ez.H,{fragment:e,size:"wide"},t):(0,i.jsx)(ef.B,{fragment:e},t)}var eV=a(70864),eq=a(15199),e$=a(37156);let eX=e=>{let t,a,n,s=(0,l.c)(14),{video:o,className:c,maxImageWidth:d,maxImageBreakpointWidth:u}=e,{data:m,isLoading:f,error:p}=(0,e$.E)(o.sourceId,B.yb),h=!o.autoloop||o.autoloop;if(s[0]!==h||s[1]!==f||s[2]!==m){var x,g;t=!f&&(null==m?void 0:m.success)&&"video"===m.type&&(0,i.jsx)("video",{"data-testid":"xxl-video-player","aria-hidden":"true",className:"h-screen w-screen object-cover",autoPlay:!0,muted:!0,loop:h,playsInline:!0,preload:"metadata",children:(0,i.jsx)("source",{src:null==(g=m.clip.playback.media.streamUrls)||null==(x=g.http)?void 0:x.url})}),s[0]=h,s[1]=f,s[2]=m,s[3]=t}else t=s[3];return s[4]!==c||s[5]!==p||s[6]!==f||s[7]!==u||s[8]!==d||s[9]!==o.picture?(a=!f&&p&&(0,i.jsx)(eq.A,{containerClassName:r()("h-full w-full",c),picture:o.picture,maxImageWidth:d,maxImageBreakpointWidth:u,skipPictureAspectRatio:!0,imgClassNameOverride:r()("h-full w-full object-cover")}),s[4]=c,s[5]=p,s[6]=f,s[7]=u,s[8]=d,s[9]=o.picture,s[10]=a):a=s[10],s[11]!==t||s[12]!==a?(n=(0,i.jsxs)("div",{children:[t,a]}),s[11]=t,s[12]=a,s[13]=n):n=s[13],n},eJ=e=>{let t,a,n,s,o,c=(0,l.c)(16),{picture:d,video:u,className:m,children:f,maxImageWidth:p,maxImageBreakpointWidth:h}=e;return c[0]!==m?(t=r()("w-full",m),c[0]=m,c[1]=t):t=c[1],c[2]!==m||c[3]!==h||c[4]!==p||c[5]!==d||c[6]!==u?(a=u?(0,i.jsx)(eX,{video:u,className:m,maxImageWidth:p,maxImageBreakpointWidth:h}):(0,i.jsx)(eq.A,{containerClassName:r()("h-full w-full"),picture:d,maxImageWidth:p,maxImageBreakpointWidth:h,skipPictureAspectRatio:!0,imgClassNameOverride:r()("h-full w-full object-cover")}),c[2]=m,c[3]=h,c[4]=p,c[5]=d,c[6]=u,c[7]=a):a=c[7],c[8]!==f?(n=(0,i.jsx)("div",{className:"text-nof-foreground-negative gradient pointer-events-none absolute inset-0 flex flex-col items-center justify-end",children:f}),c[8]=f,c[9]=n):n=c[9],c[10]!==a||c[11]!==n?(s=(0,i.jsxs)("div",{className:"relative flex h-full w-full flex-col items-center justify-end overflow-hidden",children:[a,n]}),c[10]=a,c[11]=n,c[12]=s):s=c[12],c[13]!==t||c[14]!==s?(o=(0,i.jsx)("div",{className:t,children:s}),c[13]=t,c[14]=s,c[15]=o):o=c[15],o},eZ=e=>{let t,a=(0,l.c)(7),{picture:n,video:r,maxImageWidth:s,maxImageBreakpointWidth:o,children:c}=e;if(!r&&!n)return null;let d=r?"w-screen h-screen mb-nof-32 relative bg-nof-background-content-negative article-main-picture-or-video":"mb-nof-32 h-screen article-main-picture-or-video";return a[0]!==c||a[1]!==d||a[2]!==o||a[3]!==s||a[4]!==n||a[5]!==r?(t=(0,i.jsx)(eJ,{className:d,picture:n,video:r,maxImageWidth:s,maxImageBreakpointWidth:o,children:c}),a[0]=c,a[1]=d,a[2]=o,a[3]=s,a[4]=n,a[5]=r,a[6]=t):t=a[6],t};var eY=a(25232);let eQ=e=>{let t,a=(0,l.c)(69),{article:n,placeholderType:s}=e,o=(0,m.P)();a[0]!==n.paidType?(t=(0,L.k2)(n.paidType),a[0]=n.paidType,a[1]=t):t=a[1];let c=t;if("sitewide"!==s)return null;{var d,u;let e,t,l,s,m,f,p,h,x,g,v,b,j,y,k,A,N,w,S,I,C,{id:T,displayDate:P,title:E,ingress:D,mainPicture:F,mainVideo:B,splitBody:R,links:W,byLine:M,paidType:z,displayModifiedDate:U,tags:K,sectionTheme:G,additionalLogo:H,audioType:V,customListenAudioTitle:q}=n,$=B?B.credits:null==F?void 0:F.photographer;a[2]!==n?(e=(0,i.jsx)(eD.S,{asset:n}),a[2]=n,a[3]=e):e=a[3],a[4]!==H||a[5]!==G?(t=(0,i.jsx)(eE,{sectionTheme:G,contentType:eP.cM.articleXxl,additionalLogo:H}),a[4]=H,a[5]=G,a[6]=t):t=a[6],a[7]!==c?(l=!c&&(0,i.jsx)("div",{className:"brand-logo"}),a[7]=c,a[8]=l):l=a[8],a[9]===Symbol.for("react.memo_cache_sentinel")?(s=(0,i.jsx)(ew.X,{}),a[9]=s):s=a[9],a[10]!==E?(m=(0,i.jsx)(eg.$,{className:"nof-component-article-title-xl-mobile px-nof-32 pb-nof-8 sm:nof-component-article-title-xl-desktop text-nof-foreground-negative max-w-(--width-wide) text-center",title:E,level:"h1"}),a[10]=E,a[11]=m):m=a[11],a[12]===Symbol.for("react.memo_cache_sentinel")?(f=(0,i.jsx)("button",{className:"pointer-events-auto my-40",onClick:e0,children:(0,i.jsx)(eV.Z,{size:40})}
1),a[12]=f):f=a[12],a[13]!==F||a[14]!==B||a[15]!==t||a[16]!==l||a[17]!==m?(p=(0,i.jsxs)(eZ,{picture:F,video:B,maxImageBreakpointWidth:O.v7,maxImageWidth:O.v7,children:[t,l,s,m,f]}),a[13]=F,a[14]=B,a[15]=t,a[16]=l,a[17]=m,a[18]=p):p=a[18],a[19]!==D?(h=(0,i.jsx)(eb,{className:"article-ingress--xxlarge article-ingress__spacing",ingress:D}),a[19]=D,a[20]=h):h=a[20],a[21]!==V||a[22]!==q||a[23]!==G?(x=(0,i.jsx)(eh.x,{sectionTheme:G,audioType:V,customListenAudioTitle:q}),a[21]=V,a[22]=q,a[23]=G,a[24]=x):x=a[24],a[25]!==M?(g=(0,i.jsx)(ex.a,{byLine:M,className:"mb-nof-4"}),a[25]=M,a[26]=g):g=a[26];let X=null==(d=n.mainPicture)?void 0:d.photographer,J=!(null==(u=n.mainPicture)?void 0:u.photographer);a[27]!==X||a[28]!==J?(v=r()("px-nof-16","article__max-width--xxl",{"mb-nof-4":X,"mb-nof-16":J}),a[27]=X,a[28]=J,a[29]=v):v=a[29],a[30]!==P||a[31]!==U||a[32]!==v?(b=(0,i.jsx)(ek.n,{date:P,modifiedDate:U,className:v}),a[30]=P,a[31]=U,a[32]=v,a[33]=b):b=a[33],a[34]!==o||a[35]!==z||a[36]!==G?(j=(0,L.cN)(z,o,G),a[34]=o,a[35]=z,a[36]=G,a[37]=j):j=a[37],a[38]!==z||a[39]!==j?(y=(0,i.jsx)(ey.O,{title:j,icon:!0,paidType:z,className:"article--xxl-paid-indicator",isArticle:!0}),a[38]=z,a[39]=j,a[40]=y):y=a[40];let Z=B?"video":"picture";return a[41]!==$||a[42]!==Z?(k=(0,i.jsx)(eY.V,{className:"mb-nof-16 px-nof-16 article__max-width--xxl",credits:$,type:Z}),a[41]=$,a[42]=Z,a[43]=k):k=a[43],a[44]!==n?(A=(0,i.jsx)(eT.o,{className:"article-actions--top mb-nof-16 article-actions--xxl",asset:n,iconOnly:!0,referer:"before article"}),a[44]=n,a[45]=A):A=a[45],a[46]===Symbol.for("react.memo_cache_sentinel")?(N=(0,i.jsx)("div",{className:"max-width-main px-nof-16 mb-nof-16 w-full",children:(0,i.jsx)("hr",{className:"article-divider"})}),a[46]=N):N=a[46],a[47]!==R?(w=null==R?void 0:R.map(e1),a[47]=R,a[48]=w):w=a[48],a[49]!==T||a[50]!==w?(S=(0,i.jsx)(_,{assetId:T,className:"article-body--xl article__max-width--xxl",children:w}),a[49]=T,a[50]=w,a[51]=S):S=a[51],a[52]!==n||a[53]!==M||a[54]!==W||a[55]!==K?(I=(0,i.jsx)(em.l,{byLine:M,links:W,tags:K,asset:n,className:"p-nof-16 article__max-width--xxl w-full"}),a[52]=n,a[53]=M,a[54]=W,a[55]=K,a[56]=I):I=a[56],a[57]!==x||a[58]!==g||a[59]!==b||a[60]!==y||a[61]!==k||a[62]!==e||a[63]!==A||a[64]!==S||a[65]!==I||a[66]!==p||a[67]!==h?(C=(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("article",{className:"article--xxl hide-if-empty",children:[e,p,h,x,g,b,y,k,A,N,S,I]})}),a[57]=x,a[58]=g,a[59]=b,a[60]=y,a[61]=k,a[62]=e,a[63]=A,a[64]=S,a[65]=I,a[66]=p,a[67]=h,a[68]=C):C=a[68],C}};function e0(){window.scroll({top:window.innerHeight-64,behavior:"smooth"})}function e1(e,t){return"img"===e.type?(0,i.jsx)(ez.H,{fragment:e,size:"full"},t):(0,i.jsx)(ef.B,{fragment:e},t)}let e2=g()(()=>Promise.all([a.e(8299),a.e(682),a.e(475)]).then(a.bind(a,28357)),{loadableGenerated:{webpack:()=>[28357]},ssr:!1,...(0,b.d)()}),e3=e=>{let t=(0,l.c)(65),{audio:a,placeholderType:n}=e,s=(0,m.P)(),{hideSections:o}=(0,R.t)(),{id:c,title:d,ingress:u,nodeTitle:f,storyLogo:p,displayModifiedDate:h,displayDate:x,mainPicture:g,mainVideo:v,splitBody:b,links:j,byLine:y,liveArticle:k,paidType:A,sectionTheme:N,additionalLogo:w,audioId:S,customListenAudioTitle:I}=a;switch(n){case"sitewide":case"wide":default:return null;case"main":{let e,l,n,m,C,T,P,E,D,F,B,R,W,M,z,U,K,G,H;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(ew.X,{}),t[0]=e):e=t[0],t[1]!==a?(l=(0,i.jsx)(eD.S,{asset:a}),t[1]=a,t[2]=l):l=t[2],t[3]!==w||t[4]!==f||t[5]!==N||t[6]!==p?(n=(0,i.jsx)(eE,{nodeTitle:f,storyLogo:p,className:"px-nof-16 mb-nof-8",sectionTheme:N,additionalLogo:w}),t[3]=w,t[4]=f,t[5]=N,t[6]=p,t[7]=n):n=t[7],t[8]!==k?(m=(null==k?void 0:k.isLive)&&(0,i.jsx)("div",{className:"article--m-live-indicator",children:(0,i.jsx)(ej.k,{className:"px-nof-16 mb-nof-16",liveArticle:k,liveIcon20:!0,displayBackground:!0})}),t[8]=k,t[9]=m):m=t[9];let V=o?"mb-nof-12":"mb-(--article-m-title-margin-bottom)";return t[10]!==V?(C=r()("nof-component-article-title-m-mobile text-nof-foreground-primary sm:nof-component-article-title-m-desktop mx-nof-16",V),t[10]=V,t[11]=C):C=t[11],t[12]!==C||t[13]!==d?(T=(0,i.jsx)(eg.$,{className:C,title:d,level:"h1"}),t[12]=C,t[13]=d,t[14]=T):T=t[14],t[15]!==u||t[16]!==p?(P=(0,i.jsx)(eb,{className:"article-ingress--medium",ingress:u,storyLogo:p}),t[15]=u,t[16]=p,t[17]=P):P=t[17],t[18]!==a?(E=(0,i.jsx)(eT.o,{className:"article-actions--top mb-nof-16",asset:a,referer:"before article"}),t[18]=a,t[19]=E):E=t[19],t[20]!==s||t[21]!==A||t[22]!==N?(D=(0,L.cN)(A,s,N),t[20]=s,t[21]=A,t[22]=N,t[23]=D):D=t[23],t[24]!==A||t[25]!==D?(F=(0,i.jsx)(ey.O,{title:D,icon:!0,paidType:A,className:"article-template__paid-indicator",isArticle:!0}
1),t[24]=A,t[25]=D,t[26]=F):F=t[26],t[27]!==F||t[28]!==E?(B=(0,i.jsxs)("div",{className:"article-template__actions-paid-indicator-container",children:[E,F]}),t[27]=F,t[28]=E,t[29]=B):B=t[29],t[30]!==g||t[31]!==v?(R=(0,i.jsx)(eu,{picture:g,className:"mb-nof-16",video:v,maxImageWidth:O.xe,maxImageBreakpointWidth:O.rI}),t[30]=g,t[31]=v,t[32]=R):R=t[32],t[33]!==y?(W=(0,i.jsx)(ex.a,{byLine:y,className:"mx-nof-16 mb-nof-4"}),t[33]=y,t[34]=W):W=t[34],t[35]!==x||t[36]!==h?(M=(0,i.jsx)(ek.n,{date:x,modifiedDate:h,className:"mx-nof-16 mb-nof-16"}),t[35]=x,t[36]=h,t[37]=M):M=t[37],t[38]!==a||t[39]!==S||t[40]!==I||t[41]!==N?(z=(0,i.jsx)(e2,{podcastId:S,sectionTheme:N,customListenAudioTitle:I,asset:a}),t[38]=a,t[39]=S,t[40]=I,t[41]=N,t[42]=z):z=t[42],t[43]!==b?(U=null==b?void 0:b.map(e4),t[43]=b,t[44]=U):U=t[44],t[45]!==c||t[46]!==U?(K=(0,i.jsx)(_,{assetId:c,children:U}),t[45]=c,t[46]=U,t[47]=K):K=t[47],t[48]!==a||t[49]!==y||t[50]!==j?(G=(0,i.jsx)(em.l,{byLine:y,links:j,asset:a,className:"article-tail"}),t[48]=a,t[49]=y,t[50]=j,t[51]=G):G=t[51],t[52]!==B||t[53]!==R||t[54]!==W||t[55]!==M||t[56]!==z||t[57]!==K||t[58]!==G||t[59]!==l||t[60]!==n||t[61]!==m||t[62]!==T||t[63]!==P?(H=(0,i.jsxs)(i.Fragment,{children:[e,(0,i.jsxs)("article",{className:"article bottom-border--low-contrast hide-if-empty",children:[l,n,m,T,P,B,R,W,M,z,K,G]})]}),t[52]=B,t[53]=R,t[54]=W,t[55]=M,t[56]=z,t[57]=K,t[58]=G,t[59]=l,t[60]=n,t[61]=m,t[62]=T,t[63]=P,t[64]=H):H=t[64],H}}};function e4(e,t){return(0,i.jsx)(ef.B,{fragment:e},t)}var e6=a(35867),e5=a(73518),e7=a(91345),e8=a(63534);let e9=e=>{let t,a,n,r=(0,l.c)(16),{url:s,previous:o,iconOnly:c}=e;if(!s)return null;r[0]!==o?(t=o?(0,i.jsx)(e5.N,{}):(0,i.jsx)(e7.w,{}),r[0]=o,r[1]=t):t=r[1];let d=t,u=o?"Edellinen":"Seuraava",m=o?J.W3.Left:J.W3.Right;if(c){let e,t;return r[2]!==d||r[3]!==m||r[4]!==u?(e=(0,i.jsx)(J.x,{icon:d,iconAlign:m,iconOnly:!0,label:u}),r[2]=d,r[3]=m,r[4]=u,r[5]=e):e=r[5],r[6]!==e||r[7]!==s?(t=(0,i.jsx)(e8.N,{href:s,children:e}),r[6]=e,r[7]=s,r[8]=t):t=r[8],t}return r[9]!==s?(a={href:s,external:!1},r[9]=s,r[10]=a):a=r[10],r[11]!==d||r[12]!==m||r[13]!==u||r[14]!==a?(n=(0,i.jsx)(J.z9,{link:a,icon:d,iconAlign:m,label:u,variant:J.KT.Secondary}),r[11]=d,r[12]=m,r[13]=u,r[14]=a,r[15]=n):n=r[15],n},te=e=>{var t,a,n,s,o,c,d,u,m,f;let p,h,x,g=(0,l.c)(9),{asset:v,isDesktop:b,className:j}=e,{navigation:y}=v;return(null==(t=v.navigation)?void 0:t.previous)||(null==(a=v.navigation)?void 0:a.next)?(g[0]!==j?(p=r()("cartoon-navigation",j),g[0]=j,g[1]=p):p=g[1],g[2]!==b||g[3]!==(null==y||null==(n=y.next)?void 0:n.url)||g[4]!==(null==y||null==(s=y.previous)?void 0:s.url)?(h=b?(0,i.jsxs)("div",{className:"cartoon-navigation__desktop-buttons",children:[(0,i.jsx)(e9,{url:null==y||null==(o=y.previous)?void 0:o.url,previous:!0,iconOnly:!1}),(0,i.jsx)(e9,{url:null==y||null==(c=y.next)?void 0:c.url,previous:!1,iconOnly:!1})]}):(0,i.jsxs)("div",{className:"cartoon-navigation__mobile-buttons",children:[(0,i.jsx)(e9,{url:null==y||null==(d=y.previous)?void 0:d.url,previous:!0,iconOnly:!0}),(0,i.jsx)(e9,{url:null==y||null==(u=y.next)?void 0:u.url,previous:!1,iconOnly:!0})]}),g[2]=b,g[3]=null==y||null==(m=y.next)?void 0:m.url,g[4]=null==y||null==(f=y.previous)?void 0:f.url,g[5]=h):h=g[5],g[6]!==p||g[7]!==h?(x=(0,i.jsx)("div",{className:p,children:h}),g[6]=p,g[7]=h,g[8]=x):x=g[8],x):null};var tt=a(97843),ta=a(33399),ti=a(83700);let tl=e=>{let t,a,n,r,s,o,c=(0,l.c)(36),{cartoon:d,placeholderType:u}=e,{id:m,title:f,displayDate:p,mainPicture:h}=d,[x,g]=(0,E.useState)(0),{useInkBridge:v,platform:b}=(0,T.g$)(),j=x>W.Tx;c[0]!==p?(t=(0,ti.ed)({dateTimeStr:p,addZeroWidthSpaces:!0,returnOnlyDate:!0}),c[0]=p,c[1]=t):t=c[1];let y=t,k="".concat(null!=f?f:""," ").concat(y);switch(c[2]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{g(window.innerWidth)},n=[],c[2]=a,c[3]=n):(a=c[2],n=c[3]),(0,E.useLayoutEffect)(a,n),c[4]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{g(window.innerWidth)},c[4]=r):r=c[4],(0,tt.l)("resize",r),c[5]!==b||c[6]!==v?(s=()=>{v&&b===ta.OD.Android&&window.scrollBy(0,1)},o=[b,v],c[5]=b,c[6]=v,c[7]=s,c[8]=o):(s=c[7],o=c[8]),(0,E.useEffect)(s,o),u){case"wide":{let e,t,a,l,n,r;return c[9]!==k?(e=(0,i.jsx)("div",{className:"cartoon-headline-container",children:(0,i.jsx)(eg.$,{className:"nof-component-article-title-m-mobile text-nof-foreground-primary sm:nof-component-article-title-m-desktop px-nof-16 mb-(--article-m-title-margin-bottom) w-full text-center",title:k,level:"h2"})}),c[9]=k,c[10]=e):e=c[10],c[11]!==d?(t=(0,i.jsx)(eT.o,{className:"article-actions--top mb-nof-16",asset:d,iconOnly:!0,referer:"before article"}),c[11]=d,c[12]=t):t=c[12],c[13]!==d||c[14]!==j||c[15]!==h?(a=j?(0,i.jsx)(eu,{picture:h,className:"mx-nof-16 mb-nof-16",maxImageWidth:O.eN,maxImageBreakpointWidth:O.rI}):(0,i.jsx)(tn,{cartoon:d}),c[13]=d,c[14]=j,c[15]=h,c[16]=a):a=c[16],c[17]!==d||c[18]!==j?(l=(0,i.jsx)(te,{asset:d,isDesktop:j,className:"px-nof-16 mb-nof-8 w-full"}
1),c[17]=d,c[18]=j,c[19]=l):l=c[19],c[20]!==p?(n=(0,i.jsx)(ek.n,{date:p,className:"mx-nof-16 mb-nof-16"}),c[20]=p,c[21]=n):n=c[21],c[22]!==l||c[23]!==n||c[24]!==e||c[25]!==t||c[26]!==a?(r=(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"article-top--l bg-nof-background-content-default hide-if-empty pt-nof-16 md:mb-nof-16",children:[e,t,a,l,n]})}),c[22]=l,c[23]=n,c[24]=e,c[25]=t,c[26]=a,c[27]=r):r=c[27],r}case"main":{let e,t,a,l;return c[28]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(ew.X,{}),c[28]=e):e=c[28],c[29]!==m?(t=(0,i.jsx)(_,{assetId:m}),c[29]=m,c[30]=t):t=c[30],c[31]!==d?(a=(0,i.jsx)(em.l,{className:"mx-nof-16",asset:d}),c[31]=d,c[32]=a):a=c[32],c[33]!==t||c[34]!==a?(l=(0,i.jsxs)(i.Fragment,{children:[e,(0,i.jsxs)("article",{className:"article--l bg-nof-background-content-default hide-if-empty py-nof-16 mb-nof-16",children:[t,a]})]}),c[33]=t,c[34]=a,c[35]=l):l=c[35],l}default:return null}},tn=e=>{let t,a,n,r=(0,l.c)(4),{cartoon:s}=e,{mainPicture:o}=s,c=(0,E.useRef)(null);return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{let e=c.current;return e?(e.addEventListener("touchmove",tr,{passive:!1}),()=>{e.removeEventListener("touchmove",tr)}):ts},a=[],r[0]=t,r[1]=a):(t=r[0],a=r[1]),(0,E.useEffect)(t,a),r[2]!==o?(n=(0,i.jsx)("div",{className:"narrow-screen-cartoon-container",ref:c,"data-scroll-depth-fallback-root":!0,children:(0,i.jsx)(e6.j,{picture:o,maxImageWidth:O.eN,maxImageBreakpointWidth:O.rI,className:"cartoon-main-image-container",imgClassNameOverride:"cartoon-main-image",skipPictureAspectRatio:!0,zoomable:!0,showCaption:!0})}),r[2]=o,r[3]=n):n=r[3],n};function tr(e){e.stopPropagation()}function ts(){return null}let to=e=>{let t,a,n=(0,l.c)(7),{classification:r,storyLogo:s}=e;return r||s?(n[0]!==r||n[1]!==s?(t=r&&s&&(0,i.jsx)("span",{className:"mx-nof-8","aria-hidden":"true",children:"|"}),n[0]=r,n[1]=s,n[2]=t):t=n[2],n[3]!==r||n[4]!==s||n[5]!==t?(a=(0,i.jsxs)("span",{className:"nof-content-infoheading-small text-nof-foreground-accent mb-nof-12 sm:mb-nof-16 block",children:[r,t,s]}),n[3]=r,n[4]=s,n[5]=t,n[6]=a):a=n[6],a):null};var tc=a(81693),td=a(87751),tu=a(87618),tm=a(93582),tf=a(30951);let tp=e=>{let t,a,n,s,o,c,d,u,m,f,p,h,x=(0,l.c)(33),{fragment:g,plain:v,onClose:b,isSummaryOpen:j}=e,y=(0,E.useRef)(null);if(x[0]!==j||x[1]!==v?(t=()=>{if(j&&!v){var e;null==(e=y.current)||e.focus({preventScroll:!0})}},a=[j,v],x[0]=j,x[1]=v,x[2]=t,x[3]=a):(t=x[2],a=x[3]),(0,E.useEffect)(t,a),g.hider)return null;let k=!v,A=!v&&j,_=!v&&!j;x[4]!==k||x[5]!==A||x[6]!==_?(n=r()({"grid overflow-hidden motion-safe:[transition:grid-template-rows_200ms_ease-in-out]":k,"grid-rows-[1fr]":A,"grid-rows-[0fr]":_}),x[4]=k,x[5]=A,x[6]=_,x[7]=n):n=x[7];let N=!v;x[8]!==N?(s=r()({"min-h-0 overflow-hidden":N}),x[8]=N,x[9]=s):s=x[9];let w=!v&&!j||void 0,S=!v;if(x[10]!==S?(o=r()("text-nof-foreground-primary mb-nof-24 pt-nof-12 flex w-full flex-col items-start",{"px-nof-16 rounded-nof-medium [background:linear-gradient(180deg,var(--nof-semantic-color-background-content-tint)_12.02%,var(--nof-semantic-color-background-content-default)_100%)]":S}),x[10]=S,x[11]=o):o=x[11],x[12]!==v?(c=!v&&(0,i.jsx)("p",{className:"nof-ui-subtitle-small pb-nof-12",children:"Tiivistelm\xe4:"}),x[12]=v,x[13]=c):c=x[13],x[14]!==g.bulletPoints){var I;d=null==(I=g.bulletPoints)?void 0:I.map(tx),x[14]=g.bulletPoints,x[15]=d}else d=x[15];return x[16]!==d?(u=(0,i.jsx)("ul",{ref:y,tabIndex:-1,"aria-label":"Tiivistelm\xe4",className:"list-disc ps-[1.25rem] marker:text-(length:--summary-bullet-point-size) marker:leading-none marker:text-(--summary-bullet-point-color) focus:outline-hidden",children:d}),x[16]=d,x[17]=u):u=x[17],x[18]!==b||x[19]!==v?(m=!v&&b&&(0,i.jsx)("div",{className:"my-nof-small flex w-full justify-end",children:(0,i.jsx)(J.x,{small:!0,label:"Sulje","aria-label":"Sulje tiivistelm\xe4",onClick:b,containerClassName:"focus-visible:outline-hidden",icon:(0,i.jsx)(tu.b,{}),iconAlign:J.W3.Right})}),x[18]=b,x[19]=v,x[20]=m):m=x[20],x[21]!==o||x[22]!==c||x[23]!==u||x[24]!==m?(f=(0,i.jsxs)("div",{className:o,children:[c,u,m]}),x[21]=o,x[22]=c,x[23]=u,x[24]=m,x[25]=f):f=x[25],x[26]!==f||x[27]!==s||x[28]!==w?(p=(0,i.jsx)("div",{"data-testid":"summary-inert-wrapper",className:s,inert:w,children:f}),x[26]=f,x[27]=s,x[28]=w,x[29]=p):p=x[29],x[30]!==p||x[31]!==n?(h=(0,i.jsx)("div",{className:n,children:p}),x[30]=p,x[31]=n,x[32]=h):h=x[32],h};function th(e,t){return(0,E.createElement)(tf.m,{...e,key:t})}function tx(e,t){return(0,tm.N)(e)?(0,i.jsx)("li",{className:"nof-ui-body-medium mt
1-nof-16 w-full first:mt-0",children:e.crumbs.map(th)},"summary-bulletpoint-".concat(t)):null}let tg=e=>{let t,a,n,r,s,o,c,d,u=(0,l.c)(23),{summary:m,sectionTheme:f,audioType:p,customListenAudioTitle:h}=e,[x,g]=(0,E.useState)(!1),v=(0,E.useRef)(null),b=(0,E.useRef)(!1);u[0]!==x?(t=()=>{if(x)b.current=!0;else if(b.current){var e;null==(e=v.current)||e.focus()}},a=[x],u[0]=x,u[1]=t,u[2]=a):(t=u[1],a=u[2]),(0,E.useEffect)(t,a),u[3]!==x?(n=()=>{(0,D.XE)("article summary ".concat(x?"close":"open"),""),g(!x)},u[3]=x,u[4]=n):n=u[4];let j=n;return u[5]!==p||u[6]!==h||u[7]!==f?(r=(0,i.jsx)(eh.x,{sectionTheme:f,audioType:p,customListenAudioTitle:h,functionButton:!0}),u[5]=p,u[6]=h,u[7]=f,u[8]=r):r=u[8],u[9]!==j||u[10]!==x||u[11]!==m?(s=m&&!m.hider&&!x&&(0,i.jsx)("div",{className:"py-nof-2 ml-auto shrink-0",children:(0,i.jsx)(J.x,{ref:v,small:!0,label:"Tiivistelm\xe4","aria-label":"Avaa tiivistelm\xe4",iconAlign:J.W3.Right,onClick:j,containerClassName:"focus-visible:outline-hidden",icon:(0,i.jsx)(td.O,{})})}),u[9]=j,u[10]=x,u[11]=m,u[12]=s):s=u[12],u[13]!==r||u[14]!==s?(o=(0,i.jsxs)("div",{className:"mb-nof-24 flex flex-wrap items-start",children:[r,s]}),u[13]=r,u[14]=s,u[15]=o):o=u[15],u[16]!==j||u[17]!==x||u[18]!==m?(c=m&&!m.hider&&(0,i.jsx)(tp,{fragment:m,onClose:j,isSummaryOpen:x}),u[16]=j,u[17]=x,u[18]=m,u[19]=c):c=u[19],u[20]!==o||u[21]!==c?(d=(0,i.jsxs)(i.Fragment,{children:[o,c]}),u[20]=o,u[21]=c,u[22]=d):d=u[22],d},tv=e=>{let t,a,n,r,s,o,c,d,u,f,p,h,x,g,v,b,j,y,k,A,N=(0,l.c)(64),{article:w,placeholderType:S,hasGiftLinkBannerAbove:I}=e,C=(0,m.P)();if("wide"!==S)return null;let{id:T,splitBody:P,title:E,storyLogo:D,classification:F,mainPicture:B,mainVideo:R,ingress:W,paidType:M,sectionTheme:z,liveArticle:U,extendedByLine:K,displayDate:G,displayModifiedDate:H,byLine:V,links:q,tags:$,audioType:X,customListenAudioTitle:J,summary:Z}=w;N[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)(ew.X,{}),N[0]=t):t=N[0],N[1]!==w?(a=(0,i.jsx)(eD.S,{asset:w}),N[1]=w,N[2]=a):a=N[2],N[3]!==z?(n=(0,i.jsx)(eB,{className:"mb-nof-12",sectionTheme:z}),N[3]=z,N[4]=n):n=N[4];let Y=I?"mt-nof-24":"mt-nof-40";return N[5]!==U?(r=(null==U?void 0:U.isLive)&&(0,i.jsx)(ej.k,{className:"mb-nof-16",liveArticle:U,liveIcon20:!0,displayBackground:!0}),N[5]=U,N[6]=r):r=N[6],N[7]!==F||N[8]!==D?(s=(0,i.jsx)(to,{classification:F,storyLogo:D}),N[7]=F,N[8]=D,N[9]=s):s=N[9],N[10]!==Y||N[11]!==r||N[12]!==s?(o=(0,i.jsxs)("div",{className:Y,children:[r,s]}),N[10]=Y,N[11]=r,N[12]=s,N[13]=o):o=N[13],N[14]!==E?(c=(0,i.jsx)(eg.$,{title:E,level:"h1",className:"mb-nof-12 sm:mb-nof-8 nof-component-article-title-feature-mobile sm:nof-component-article-title-feature-desktop text-nof-foreground-primary"}),N[14]=E,N[15]=c):c=N[15],N[16]!==W?(d=(0,i.jsx)(eb,{ingress:W,className:"text-nof-foreground-primary nof-content-ingress-large mb-nof-16 sm:px-0"}),N[16]=W,N[17]=d):d=N[17],N[18]!==c||N[19]!==d?(u=(0,i.jsxs)("div",{className:"px-nof-16 max-w-(--width-main) text-center",children:[c,d]}),N[18]=c,N[19]=d,N[20]=u):u=N[20],N[21]!==C||N[22]!==M||N[23]!==z?(f=(0,L.cN)(M,C,z),N[21]=C,N[22]=M,N[23]=z,N[24]=f):f=N[24],N[25]!==M||N[26]!==f?(p=(0,i.jsx)(ey.O,{title:f,icon:!0,paidType:M,className:"article-template__paid-indicator mb-nof-24",isArticle:!0}),N[25]=M,N[26]=f,N[27]=p):p=N[27],N[28]!==B||N[29]!==R?(h=(0,i.jsx)(eu,{picture:B,className:"mb-nof-24",video:R,maxImageWidth:O.xe,maxImageBreakpointWidth:O.rI}),N[28]=B,N[29]=R,N[30]=h):h=N[30],N[31]!==X||N[32]!==J||N[33]!==Z?(x=(0,i.jsx)(tg,{summary:Z,audioType:X,customListenAudioTitle:J}),N[31]=X,N[32]=J,N[33]=Z,N[34]=x):x=N[34],N[35]!==G||N[36]!==H||N[37]!==K?(g=(0,i.jsx)(tc.b,{className:"mb-nof-24",byLine:K,displayDate:G,displayModifiedDate:H,renderAuthorsAsLinks:!0}),N[35]=G,N[36]=H,N[37]=K,N[38]=g):g=N[38],N[39]!==x||N[40]!==g?(v=(0,i.jsxs)("div",{className:"px-nof-16",children:[x,g]}),N[39]=x,N[40]=g,N[41]=v):v=N[41],N[42]!==P?(b=null==P?void 0:P.map(tb),N[42]=P,N[43]=b):b=N[43],N[44]!==T||N[45]!==b?(j=(0,i.jsx)(_,{assetId:T,children:b}),N[44]=T,N[45]=b,N[46]=j):j=N[46],N[47]!==w||N[48]!==V||N[49]!==q||N[50]!==$?(y=(0,i.jsx)(em.l,{byLine:V,links:q,tags:$,asset:w,linksAndTagsCombined:!0,functionButtons:!0,className:"px-nof-16 w-full"}),N[47]=w,N[48]=V,N[49]=q,N[50]=$,N[51]=y):y=N[51],N[52]!==v||N[53]!==j||N[54]!==y?(k=(0,i.jsxs)("div",{className:"w-full max-w-(--width-main)",children:[v,j,y]}),N[52]=v,N[53]=j,N[54]=y,N[55]=k):k=N[55],N[56]!==u||N[57]!==p||N[58]!==h||N[59]!==a||N[60]!==k||N[61]!==n||N[
162]!==o?(A=(0,i.jsxs)(i.Fragment,{children:[t,(0,i.jsxs)("article",{"data-testid":"feature-template",className:"article--feature py-nof-16 flex flex-col items-center",children:[a,n,o,u,p,h,k]})]}),N[56]=u,N[57]=p,N[58]=h,N[59]=a,N[60]=k,N[61]=n,N[62]=o,N[63]=A):A=N[63],A};function tb(e,t){return"img"===e.type?(0,i.jsx)(ez.H,{fragment:e,size:"wide"},t):(0,i.jsx)(ef.B,{fragment:e},t)}var tj=a(71452);let ty=e=>{let t,a,n,r,s,o,c,d,u,f,p,h,x,g,v,b,j,y,k,A=(0,l.c)(61),{article:N,placeholderType:w}=e,S=(0,m.P)();if("main"!==w)return null;let{id:I,splitBody:C,title:T,storyLogo:P,classification:E,mainPicture:D,mainVideo:F,ingress:B,paidType:R,sectionTheme:W,liveArticle:M,extendedByLine:z,displayDate:U,displayModifiedDate:K,byLine:G,links:H,tags:V,audioType:q,customListenAudioTitle:$,summary:X}=N;return A[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)(ew.X,{}),A[0]=t):t=A[0],A[1]!==W?(a=(0,i.jsx)(eB,{className:"mb-nof-16",sectionTheme:W}),A[1]=W,A[2]=a):a=A[2],A[3]!==D||A[4]!==F?(n=(0,i.jsx)("div",{className:"px-nof-0 sm:px-nof-16",children:(0,i.jsx)(eu,{picture:D,className:"mb-nof-24",video:F,maxImageWidth:O.xe,maxImageBreakpointWidth:O.rI})}),A[3]=D,A[4]=F,A[5]=n):n=A[5],A[6]!==N?(r=(0,i.jsx)(eD.S,{asset:N}),A[6]=N,A[7]=r):r=A[7],A[8]!==M?(s=(null==M?void 0:M.isLive)&&(0,i.jsx)(ej.k,{className:"mb-nof-16",liveArticle:M,liveIcon20:!0,displayBackground:!0}),A[8]=M,A[9]=s):s=A[9],A[10]!==E||A[11]!==P?(o=(0,i.jsx)(to,{classification:E,storyLogo:P}),A[10]=E,A[11]=P,A[12]=o):o=A[12],A[13]!==s||A[14]!==o?(c=(0,i.jsxs)("div",{className:"mt-nof-24",children:[s,o]}),A[13]=s,A[14]=o,A[15]=c):c=A[15],A[16]!==T?(d=(0,i.jsx)(eg.$,{title:T,level:"h1",className:"mb-nof-12 sm:mb-nof-8 nof-component-article-title-news-light-mobile sm:nof-component-article-title-news-light-desktop text-nof-foreground-primary"}),A[16]=T,A[17]=d):d=A[17],A[18]!==B?(u=(0,i.jsx)(eb,{ingress:B,className:"text-nof-foreground-primary nof-content-ingress-medium mb-nof-16"}),A[18]=B,A[19]=u):u=A[19],A[20]!==S||A[21]!==R||A[22]!==W?(f=(0,L.cN)(R,S,W),A[20]=S,A[21]=R,A[22]=W,A[23]=f):f=A[23],A[24]!==R||A[25]!==f?(p=(0,i.jsx)(ey.O,{title:f,icon:!0,paidType:R,className:"article-template__paid-indicator mb-nof-16",isArticle:!0}),A[24]=R,A[25]=f,A[26]=p):p=A[26],A[27]!==p||A[28]!==d||A[29]!==u?(h=(0,i.jsxs)("div",{className:"mb-nof-24",children:[d,u,p]}),A[27]=p,A[28]=d,A[29]=u,A[30]=h):h=A[30],A[31]!==q||A[32]!==$||A[33]!==X?(x=(0,i.jsx)(tg,{summary:X,audioType:q,customListenAudioTitle:$}),A[31]=q,A[32]=$,A[33]=X,A[34]=x):x=A[34],A[35]!==U||A[36]!==K||A[37]!==z?(g=(0,i.jsx)(tc.b,{className:"mb-nof-24",byLine:z,displayDate:U,displayModifiedDate:K,renderAuthorsAsLinks:!0}),A[35]=U,A[36]=K,A[37]=z,A[38]=g):g=A[38],A[39]!==h||A[40]!==x||A[41]!==g||A[42]!==r||A[43]!==c?(v=(0,i.jsxs)("div",{className:"px-nof-16",children:[r,c,h,x,g]}),A[39]=h,A[40]=x,A[41]=g,A[42]=r,A[43]=c,A[44]=v):v=A[44],A[45]!==C?(b=null==C?void 0:C.map(tk),A[45]=C,A[46]=b):b=A[46],A[47]!==I||A[48]!==b?(j=(0,i.jsx)(_,{assetId:I,children:b}),A[47]=I,A[48]=b,A[49]=j):j=A[49],A[50]!==N||A[51]!==G||A[52]!==H||A[53]!==V?(y=(0,i.jsx)(em.l,{byLine:G,links:H,tags:V,asset:N,linksAndTagsCombined:!0,functionButtons:!0,className:"px-nof-16 w-full"}),A[50]=N,A[51]=G,A[52]=H,A[53]=V,A[54]=y):y=A[54],A[55]!==v||A[56]!==j||A[57]!==y||A[58]!==a||A[59]!==n?(k=(0,i.jsxs)(i.Fragment,{children:[t,(0,i.jsxs)("article",{"data-testid":"news-light-template",className:"article--news-light py-nof-16",children:[a,n,v,j,y]})]}),A[55]=v,A[56]=j,A[57]=y,A[58]=a,A[59]=n,A[60]=k):k=A[60],k};function tk(e,t){return(0,i.jsx)(ef.B,{fragment:e},t)}let tA=e=>
1{let t,a,n,r,s,o,c,d,u,f,p,h,x,g,v,b,j,y,k,A,N=(0,l.c)(65),{article:w,placeholderType:S,hasGiftLinkBannerAbove:I}=e,C=(0,m.P)();if("main"!==S)return null;let{id:T,splitBody:P,title:E,storyLogo:D,classification:F,mainPicture:B,mainVideo:R,paidType:W,sectionTheme:M,liveArticle:z,extendedByLine:U,displayDate:K,displayModifiedDate:G,byLine:H,links:V,tags:q,audioType:$,customListenAudioTitle:X,summary:J,ingress:Z}=w;N[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)(ew.X,{}),N[0]=t):t=N[0],N[1]!==w?(a=(0,i.jsx)(eD.S,{asset:w}),N[1]=w,N[2]=a):a=N[2],N[3]!==M?(n=(0,i.jsx)(eB,{className:"mt-nof-24 mb-nof-12",sectionTheme:M}),N[3]=M,N[4]=n):n=N[4];let Y=I?"mt-nof-24":"mt-nof-40";return N[5]!==z?(r=(null==z?void 0:z.isLive)&&(0,i.jsx)(ej.k,{className:"mb-nof-16",liveArticle:z,liveIcon20:!0,displayBackground:!0}),N[5]=z,N[6]=r):r=N[6],N[7]!==F||N[8]!==D?(s=(0,i.jsx)(to,{classification:F,storyLogo:D}),N[7]=F,N[8]=D,N[9]=s):s=N[9],N[10]!==Y||N[11]!==r||N[12]!==s?(o=(0,i.jsxs)("div",{className:Y,children:[r,s]}),N[10]=Y,N[11]=r,N[12]=s,N[13]=o):o=N[13],N[14]!==E?(c=(0,i.jsx)(eg.$,{title:E,level:"h1",className:"mb-nof-12 sm:mb-nof-8 nof-component-article-title-news-mobile sm:nof-component-article-title-news-desktop text-nof-foreground-primary"}),N[14]=E,N[15]=c):c=N[15],N[16]!==Z||N[17]!==J?(d=J&&!J.hider?(0,i.jsx)(tp,{fragment:J,plain:!0,isSummaryOpen:!0}):(0,i.jsx)(eb,{ingress:Z,className:"text-nof-foreground-primary nof-content-ingress-medium mb-nof-16"}),N[16]=Z,N[17]=J,N[18]=d):d=N[18],N[19]!==C||N[20]!==W||N[21]!==M?(u=(0,L.cN)(W,C,M),N[19]=C,N[20]=W,N[21]=M,N[22]=u):u=N[22],N[23]!==W||N[24]!==u?(f=(0,i.jsx)(ey.O,{title:u,icon:!0,paidType:W,className:"article-template__paid-indicator mb-nof-16",isArticle:!0}),N[23]=W,N[24]=u,N[25]=f):f=N[25],N[26]!==f||N[27]!==a||N[28]!==n||N[29]!==o||N[30]!==c||N[31]!==d?(p=(0,i.jsxs)("div",{className:"px-nof-16",children:[a,n,o,c,d,f]}),N[26]=f,N[27]=a,N[28]=n,N[29]=o,N[30]=c,N[31]=d,N[32]=p):p=N[32],N[33]!==B||N[34]!==R?(h=(0,i.jsx)(eu,{picture:B,className:"mb-nof-24",video:R,maxImageWidth:O.xe,maxImageBreakpointWidth:O.rI}),N[33]=B,N[34]=R,N[35]=h):h=N[35],N[36]!==$||N[37]!==X||N[38]!==M?(x=(0,i.jsx)("div",{className:"mb-nof-24",children:(0,i.jsx)(eh.x,{sectionTheme:M,audioType:$,customListenAudioTitle:X,functionButton:!0})}),N[36]=$,N[37]=X,N[38]=M,N[39]=x):x=N[39],N[40]!==K||N[41]!==G||N[42]!==U?(g=(0,i.jsx)(tc.b,{className:"mb-nof-24",byLine:U,displayDate:K,displayModifiedDate:G,renderAuthorsAsLinks:!0}),N[40]=K,N[41]=G,N[42]=U,N[43]=g):g=N[43],N[44]!==x||N[45]!==g?(v=(0,i.jsxs)("div",{className:"px-nof-16",children:[x,g]}),N[44]=x,N[45]=g,N[46]=v):v=N[46],N[47]!==p||N[48]!==h||N[49]!==v?(b=(0,i.jsxs)("div",{children:[p,h,v]}),N[47]=p,N[48]=h,N[49]=v,N[50]=b):b=N[50],N[51]!==P?(j=null==P?void 0:P.map(t_),N[51]=P,N[52]=j):j=N[52],N[53]!==T||N[54]!==j?(y=(0,i.jsx)(_,{assetId:T,children:j}),N[53]=T,N[54]=j,N[55]=y):y=N[55],N[56]!==w||N[57]!==H||N[58]!==V||N[59]!==q?(k=(0,i.jsx)(em.l,{byLine:H,links:V,tags:q,asset:w,linksAndTagsCombined:!0,functionButtons:!0,className:"px-nof-16 w-full"}),N[56]=w,N[57]=H,N[58]=V,N[59]=q,N[60]=k):k=N[60],N[61]!==b||N[62]!==y||N[63]!==k?(A=(0,i.jsxs)(i.Fragment,{children:[t,(0,i.jsxs)("article",{"data-testid":"news-template",className:"article--news pb-nof-16",children:[b,y,k]})]}),N[61]=b,N[62]=y,N[63]=k,N[64]=A):A=N[64],A};function t_(e,t){return(0,i.jsx)(ef.B,{fragment:e},t)}var tN=a(38564),tw=a(61147);let tS={lion:{containerClasses:"items-center",logoClasses:"size-full"},quill:{containerClasses:"items-center",logoClasses:"size-full"},quotation_mark:{containerClasses:"items-start",logoClasses:"mr-[4px] mt-[4px] size-2/3"},kuukautinen:{containerClasses:"items-center",logoClasses:"size-full"}},tI=e=>{let t,a,n,s,o,c,d,u,m=(0,l.c)(22),{authors:f,picture:p,classification:h,classificationInfo:x,logo:g}=e;return m[0]!==f||m[1]!==g?(t=!g&&(0,i.jsx)(tT,{authors:f}),m[0]=f,m[1]=g,m[2]=t):t=m[2],m[3]!==h?(a=h&&(0,i.jsx)("p",{className:"nof-content-infoheading-small text-nof-foreground-accent mt-auto pt-16",children:(0,i.jsx)("span",{className:"[font-size:var(--nof-semantic-font-size-ui-heading-1)]",children:h})}),m[3]=h,m[4]=a):a=m[4],m[5]!==t||m[6]!==a?(n=(0,i.jsxs)("div",{className:"py-nof-16 pl-nof-16 flex min-w-0 flex-1 flex-col",children:[t,a]}
1),m[5]=t,m[6]=a,m[7]=n):n=m[7],m[8]!==p?(s=p&&(0,i.jsx)("div",{className:"-mt-nof-16 ml-auto h-[136px] w-[136px] shrink-0 self-end overflow-hidden",children:(0,i.jsx)(tw.Q,{picture:p,maxImageWidth:136,imgClassNameOverride:"w-full h-[141px] -mt-[5px] object-cover object-top"})}),m[8]=p,m[9]=s):s=m[9],m[10]!==g||m[11]!==p?(o=g&&!p&&(0,i.jsx)("div",{className:r()("p-nof-16 flex w-[120px] shrink-0 justify-end self-stretch",tS[g].containerClasses),children:(0,i.jsx)(tN.m,{logo:g,align:"right","data-testid":"classification-logo",className:tS[g].logoClasses})}),m[10]=g,m[11]=p,m[12]=o):o=m[12],m[13]!==n||m[14]!==s||m[15]!==o?(c=(0,i.jsxs)("div",{className:"bg-nof-background-content-tint flex min-h-[120px]",children:[n,s,o]}),m[13]=n,m[14]=s,m[15]=o,m[16]=c):c=m[16],m[17]!==x?(d=(0,i.jsx)("p",{className:"text-nof-foreground-secondary nof-ui-body-medium mt-nof-8 italic",children:x}),m[17]=x,m[18]=d):d=m[18],m[19]!==c||m[20]!==d?(u=(0,i.jsxs)("div",{"data-testid":"byline-box",className:"mb-nof-24 flex w-full flex-col",children:[c,d]}),m[19]=c,m[20]=d,m[21]=u):u=m[21],u},tC=r()("[font-family:var(--byline-box-author-font-family)]","[font-size:var(--byline-box-author-font-size)]","font-(--byline-box-author-font-weight)","[line-height:var(--byline-box-author-line-height)]"),tT=e=>{let t,a,n,s=(0,l.c)(5),{authors:o}=e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=r()(tC,"text-nof-foreground-primary break-words uppercase"),s[0]=t):t=s[0],s[1]!==o?(a=null==o?void 0:o.map((e,t)=>(0,i.jsx)("div",{children:(0,i.jsxs)("p",{children:[tP(e),(0,i.jsx)("span",{children:o.length-t>1?", ":""})]})},"author-".concat(t))),s[1]=o,s[2]=a):a=s[2],s[3]!==a?(n=(0,i.jsx)("div",{className:t,children:a}),s[3]=a,s[4]=n):n=s[4],n},tP=e=>e.firstName&&e.lastName?[e.firstName,e.lastName].filter(Boolean).join(" "):e.title,tE=e=>{let t,a,n,r,s,o,c,d,u,f,p,h,x,g,v,b,j,y,k,A=(0,l.c)(67),{article:N,placeholderType:w,hasGiftLinkBannerAbove:S}=e,I=(0,m.P)();if("main"!==w)return null;let{id:C,title:T,storyLogo:P,mainPicture:E,mainVideo:D,ingress:F,paidType:B,sectionTheme:R,liveArticle:W,authors:M,extendedByLine:z,listWriterPicture:U,classification:K,classificationInfo:G,displayDate:H,displayModifiedDate:V,byLine:q,links:$,tags:X,classificationLogo:J,audioType:Z,customListenAudioTitle:Y,summary:Q,splitBody:ee}=N;A[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)(ew.X,{}),A[0]=t):t=A[0],A[1]!==N?(a=(0,i.jsx)(eD.S,{asset:N}),A[1]=N,A[2]=a):a=A[2],A[3]!==R?(n=(0,i.jsx)(eB,{sectionTheme:R,className:"mb-nof-16"}),A[3]=R,A[4]=n):n=A[4];let et=S?"mt-nof-24":"mt-nof-40";return A[5]!==W?(r=(null==W?void 0:W.isLive)&&(0,i.jsx)(ej.k,{className:"mb-nof-16",liveArticle:W,liveIcon20:!0,displayBackground:!0}),A[5]=W,A[6]=r):r=A[6],A[7]!==P?(s=(0,i.jsx)(to,{storyLogo:P}),A[7]=P,A[8]=s):s=A[8],A[9]!==et||A[10]!==r||A[11]!==s?(o=(0,i.jsxs)("div",{className:et,children:[r,s]}),A[9]=et,A[10]=r,A[11]=s,A[12]=o):o=A[12],A[13]!==T?(c=(0,i.jsx)(eg.$,{title:T,level:"h1",className:"mb-nof-12 sm:mb-nof-8 nof-component-article-title-opinion-mobile sm:nof-component-article-title-opinion-desktop text-nof-foreground-primary"}),A[13]=T,A[14]=c):c=A[14],A[15]!==F?(d=(0,i.jsx)(eb,{ingress:F,className:"text-nof-foreground-primary nof-content-ingress-medium mb-nof-16"}),A[15]=F,A[16]=d):d=A[16],A[17]!==I||A[18]!==B||A[19]!==R?(u=(0,L.cN)(B,I,R),A[17]=I,A[18]=B,A[19]=R,A[20]=u):u=A[20],A[21]!==B||A[22]!==u?(f=(0,i.jsx)(ey.O,{title:u,icon:!0,paidType:B,className:"article-template__paid-indicator mb-nof-16",isArticle:!0}),A[21]=B,A[22]=u,A[23]=f):f=A[23],A[24]!==E||A[25]!==D?(p=(0,i.jsx)(eu,{picture:E,className:"mb-nof-24",video:D,maxImageWidth:O.xe,maxImageBreakpointWidth:O.rI}),A[24]=E,A[25]=D,A[26]=p):p=A[26],A[27]!==M||A[28]!==K||A[29]!==G||A[30]!==J||A[31]!==U?(h=(0,i.jsx)(tI,{authors:M,picture:U,classification:K,classificationInfo:G,logo:J}),A[27]=M,A[28]=K,A[29]=G,A[30]=J,A[31]=U,A[32]=h):h=A[32],A[33]!==Z||A[34]!==Y||A[35]!==R||A[36]!==Q?(x=(0,i.jsx)(tg,{summary:Q,sectionTheme:R,audioType:Z,customListenAudioTitle:Y}),A[33]=Z,A[34]=Y,A[35]=R,A[36]=Q,A[37]=x):x=A[37],A[38]!==H||A[39]!==V||A[40]!==z?(g=(0,i.jsx)(tc.b,{className:"mb-nof-24",byLine:z,displayDate:H,displayModifiedDate:V,renderAuthorsAsLinks:!0,hideDescription:!0}
1),A[38]=H,A[39]=V,A[40]=z,A[41]=g):g=A[41],A[42]!==f||A[43]!==p||A[44]!==h||A[45]!==x||A[46]!==g||A[47]!==a||A[48]!==n||A[49]!==o||A[50]!==c||A[51]!==d?(v=(0,i.jsxs)("div",{className:"px-nof-16",children:[a,n,o,c,d,f,p,h,x,g]}),A[42]=f,A[43]=p,A[44]=h,A[45]=x,A[46]=g,A[47]=a,A[48]=n,A[49]=o,A[50]=c,A[51]=d,A[52]=v):v=A[52],A[53]!==ee?(b=null==ee?void 0:ee.map(tD),A[53]=ee,A[54]=b):b=A[54],A[55]!==C||A[56]!==b?(j=(0,i.jsx)(_,{assetId:C,children:b}),A[55]=C,A[56]=b,A[57]=j):j=A[57],A[58]!==N||A[59]!==q||A[60]!==$||A[61]!==X?(y=(0,i.jsx)(em.l,{byLine:q,links:$,tags:X,asset:N,linksAndTagsCombined:!0,functionButtons:!0,className:"px-nof-16 w-full"}),A[58]=N,A[59]=q,A[60]=$,A[61]=X,A[62]=y):y=A[62],A[63]!==v||A[64]!==j||A[65]!==y?(k=(0,i.jsxs)(i.Fragment,{children:[t,(0,i.jsxs)("article",{"data-testid":"opinion-template",className:"article--opinion py-nof-16",children:[v,j,y]})]}),A[63]=v,A[64]=j,A[65]=y,A[66]=k):k=A[66],k};function tD(e,t){return(0,i.jsx)(ef.B,{fragment:e},t)}var tL=a(63240),tF=a(87602),tB=a(64076);let tR=e=>{let t,a,n,s,o,c=(0,l.c)(13),{className:d,label:u,value:m,Icon:f}=e;return m?(c[0]!==d?(t=r()(d,"nof-ui-body-small bg-nof-background-wallpaper-default text-nof-foreground-primary px-nof-16 mb-nof-8 flex h-40 flex-row items-center whitespace-nowrap"),c[0]=d,c[1]=t):t=c[1],c[2]!==f?(a=(0,i.jsx)("span",{className:"pr-nof-6",children:f}),c[2]=f,c[3]=a):a=c[3],c[4]!==u?(n=(0,i.jsx)("span",{className:"pr-nof-4 hidden sm:block",children:u}),c[4]=u,c[5]=n):n=c[5],c[6]!==m?(s=(0,i.jsx)("span",{className:"font-bold",children:m}),c[6]=m,c[7]=s):s=c[7],c[8]!==t||c[9]!==a||c[10]!==n||c[11]!==s?(o=(0,i.jsxs)("div",{className:t,children:[a,n,s]}),c[8]=t,c[9]=a,c[10]=n,c[11]=s,c[12]=o):o=c[12],o):null},tO=e=>{let t,a,n,s,o,c,d,u,m=(0,l.c)(16),{className:f,cookingDuration:p,portionSize:h,calories:x}=e;return m[0]!==f?(t=r()("flex","flex-row","flex-wrap","justify-start","hide-if-empty",f),m[0]=f,m[1]=t):t=m[1],m[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsx)(tF.x,{size:24}),m[2]=a):a=m[2],m[3]!==h?(n=(0,i.jsx)(tR,{className:"mr-nof-8",label:"M\xe4\xe4r\xe4",value:h,Icon:a}),m[3]=h,m[4]=n):n=m[4],m[5]===Symbol.for("react.memo_cache_sentinel")?(s=(0,i.jsx)(tB.B,{size:24}),m[5]=s):s=m[5],m[6]!==p?(o=(0,i.jsx)(tR,{className:"mr-nof-8",label:"Valmistusaika",value:p,Icon:s}),m[6]=p,m[7]=o):o=m[7],m[8]===Symbol.for("react.memo_cache_sentinel")?(c=(0,i.jsx)(tL.f,{size:24}),m[8]=c):c=m[8],m[9]!==x?(d=(0,i.jsx)(tR,{label:"Energia",value:x,Icon:c}),m[9]=x,m[10]=d):d=m[10],m[11]!==t||m[12]!==n||m[13]!==o||m[14]!==d?(u=(0,i.jsxs)("div",{className:t,children:[n,o,d]}),m[11]=t,m[12]=n,m[13]=o,m[14]=d,m[15]=u):u=m[15],u},tW=e=>{let t,a,n,r,s,o,c,d,u,m,f,p,h=(0,l.c)(36),{recipe:x,placeholderType:g}=e,{id:v,title:b,ingress:j,displayDate:y,displayModifiedDate:k,mainPicture:A,splitBody:N,tags:w}=x;return"main"!==g?null:(h[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)(ew.X,{}),h[0]=t):t=h[0],h[1]!==x?(a=(0,i.jsx)(eD.S,{asset:x}),h[1]=x,h[2]=a):a=h[2],h[3]!==b?(n=(0,i.jsx)(eg.$,{className:"nof-component-article-title-m-mobile text-nof-foreground-primary sm:nof-component-article-title-m-desktop mx-nof-16 mb-(--article-m-title-margin-bottom)",title:b,level:"h2"}),h[3]=b,h[4]=n):n=h[4],h[5]!==j?(r=(0,i.jsx)(eb,{ingress:j,className:"article-ingress--medium"}),h[5]=j,h[6]=r):r=h[6],h[7]!==x?(s=(0,i.jsx)(eT.o,{className:"article-actions--top px-nof-16 mb-nof-16",asset:x,referer:"before article"}),h[7]=x,h[8]=s):s=h[8],h[9]!==A?(o=(0,i.jsx)(eu,{picture:A,className:"mb-nof-16",maxImageWidth:O.xe,maxImageBreakpointWidth:O.rI}),h[9]=A,h[10]=o):o=h[10],h[11]!==y||h[12]!==k?(c=(0,i.jsx)(ek.n,{date:y,modifiedDate:k,className:"mx-nof-16 mb-nof-16"}),h[11]=y,h[12]=k,h[13]=c):c=h[13],h[14]!==x.calories||h[15]!==x.cookingDuration||h[16]!==x.portionSize?(d=(0,i.jsx)(tO,{className:"mx-nof-16 mb-nof-16",cookingDuration:x.cookingDuration,portionSize:x.portionSize,calories:x.calories}),h[14]=x.calories,h[15]=x.cookingDuration,h[16]=x.portionSize,h[17]=d):d=h[17],h[18]!==N?(u=null==N?void 0:N.map(tM),h[18]=N,h[19]=u):u=h[19],h[20]!==v||h[21]!==u?(m=(0,i.jsx)(_,{assetId:v,children:u}),h[20]=v,h[21]=u,h[22]=m):m=h[22],h[23]!==x||h[24]!==w?(f=(0,i.jsx)(em.l,{tags:w,asset:x,className:"article-tail"}),h[23]=x,h[24]=w,h[25]=f):f=h[25],h[26]!==m||h[27]!==f||h[28]!==a||h[29]!==n||h[30]!==r||h[31]!==s||h[32]!==o||h[33]!==c||h[34]!==d?(p=(0,i.jsxs)(i.Fragment,{children:[t,(0,i.jsxs)("article",{className:"recipe-template hide-if-empty",children:[a,n,r,s,o,c,d,m,f]})]}),h[26]=m,h[27]=f,h[28]=a,h[29]=n,h[30]=r,h[31]=s,h[32]=o,h[33]=c,h[34]=d,h[35]=p):p=h[35],p)};function tM(e,t){return(0,i.jsx)(ef.B,{fragment:e},t)}let tz=g()(()=>a.e(2764).then(a.bind(a,2764)),{loadableGenerated:{webpack:()=>[2764]},ssr:!1}),tU=e=>{let t=(0,l.c)(17),{placeholderType:a}=e,{assetData:n}=(0,C._)();if(!n||(0,L._P)(n))return null;if((0,ec.Jx)(n)&&(0,L.e8)(n))if("sitewide"!==a)return null;else{let e;return t[0]!==n?(e=(0,i.jsx)(tj.T,{article:n}),t[0]=n,t[1]=e):e=t[1],e}switch(n.resourceType){case"Advertorial":{let e;return t[2]!==n||t[3]!==a?(e=(0,i.jsx)(eI,{placeholderType:a,advertorial:n}),t[2]=n,t[3]=a,t[4]=e):e=t[4],e}case"Article":{let e;return t[5]!==n||t[6]!==a?(e=(0,i.jsx)(tK,{asset:n,placeholderType:a}
1),t[5]=n,t[6]=a,t[7]=e):e=t[7],e}case"Cartoon":{let e;return t[8]!==n||t[9]!==a?(e=(0,i.jsx)(tl,{placeholderType:a,cartoon:n}),t[8]=n,t[9]=a,t[10]=e):e=t[10],e}case"Recipe":{let e;return t[11]!==n||t[12]!==a?(e=(0,i.jsx)(tW,{placeholderType:a,recipe:n}),t[11]=n,t[12]=a,t[13]=e):e=t[13],e}case"Audio":{let e;return t[14]!==n||t[15]!==a?(e=(0,i.jsx)(e3,{placeholderType:a,audio:n}),t[14]=n,t[15]=a,t[16]=e):e=t[16],e}default:return null}},tK=e=>{let t,a,n,r,s,o=(0,l.c)(16),{asset:c,placeholderType:d}=e,u=String(c.template);o[0]!==u?(t=u.toLowerCase(),o[0]=u,o[1]=t):t=o[1];let m=t,[f,p]=(0,E.useState)(!1);o[2]!==c||o[3]!==f||o[4]!==d||o[5]!==m?(a=()=>{switch(m){case L.ih:return(0,i.jsx)(eR,{placeholderType:d,article:c});case L.g_:return(0,i.jsx)(eQ,{placeholderType:d,article:c});case L.D8:return(0,i.jsx)(eU,{placeholderType:d,article:c});case L.b4:return(0,i.jsx)(eG,{placeholderType:d,article:c});case L.GK:return(0,i.jsx)(tE,{placeholderType:d,article:c,hasGiftLinkBannerAbove:f});case L.pc:return(0,i.jsx)(tA,{placeholderType:d,article:c,hasGiftLinkBannerAbove:f});case L.KU:return(0,i.jsx)(tv,{placeholderType:d,article:c,hasGiftLinkBannerAbove:f});case L.I1:return(0,i.jsx)(ty,{placeholderType:d,article:c});case L.tL:default:return(0,i.jsx)(eW,{placeholderType:d,article:c})}},o[2]=c,o[3]=f,o[4]=d,o[5]=m,o[6]=a):a=o[6];let h=a;return o[7]!==c.id||o[8]!==d||o[9]!==m?(n=(0,i.jsx)(tz,{assetId:c.id,placeholderType:d,template:m,onVisibilityChange:p}),o[7]=c.id,o[8]=d,o[9]=m,o[10]=n):n=o[10],o[11]!==h?(r=h(),o[11]=h,o[12]=r):r=o[12],o[13]!==n||o[14]!==r?(s=(0,i.jsxs)(i.Fragment,{children:[n,r]}),o[13]=n,o[14]=r,o[15]=s):s=o[15],s},tG=e=>{let t=(0,l.c)(15),{className:a,subType:n}=e;switch(n){case"sitewide":{let e,l,n;return t[0]!==a?(e=(0,i.jsx)("div",{className:a,hidden:!0,children:"SiteWide ContentPlaceholder"}),t[0]=a,t[1]=e):e=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,i.jsx)(tU,{placeholderType:"sitewide"}),t[2]=l):l=t[2],t[3]!==e?(n=(0,i.jsxs)(i.Fragment,{children:[e,l]}),t[3]=e,t[4]=n):n=t[4],n}case"wide":{let e,l,n;return t[5]!==a?(e=(0,i.jsx)("div",{className:a,hidden:!0,children:"Wide ContentPlaceholder"}),t[5]=a,t[6]=e):e=t[6],t[7]===Symbol.for("react.memo_cache_sentinel")?(l=(0,i.jsx)(tU,{placeholderType:"wide"}),t[7]=l):l=t[7],t[8]!==e?(n=(0,i.jsxs)(i.Fragment,{children:[e,l]}),t[8]=e,t[9]=n):n=t[9],n}case"main":{let e,l,n;return t[10]!==a?(e=(0,i.jsx)("div",{className:a,hidden:!0,children:"Main ContentPlaceholder"}),t[10]=a,t[11]=e):e=t[11],t[12]===Symbol.for("react.memo_cache_sentinel")?(l=(0,i.jsx)(tU,{placeholderType:"main"}),t[12]=l):l=t[12],t[13]!==e?(n=(0,i.jsxs)(i.Fragment,{children:[e,l]}),t[13]=e,t[14]=n):n=t[14],n}default:return null}}},49154:(e,t,a)=>{"use strict";a.d(t,{Dh:()=>u,HQ:()=>m,XI:()=>o,Xg:()=>c});var i=a(29454),l=a(99142),n=a(51144),r=a(74730);let s="campaignIds",o=e=>e.authenticationStatus===n.J.Authenticated?e:void 0,c=(e,t,a,i)=>{let l={noJsRedirect:a,platform:i};return{login:(0,r.ZX)(e,t,l),logout:(0,r.OE)(e,"shopping-ui"),registration:(0,r.Ln)(e,t,void 0,l)}},d=l.Ikc({audienceId:l.lqM(l.YjP()),articleId:l.lqM(l.YjP()),funnelId:l.YjP(),preSelectedOfferIndex:l.lqM(l.YjP())}),u=()=>{let e=i.A.get(s);if(e)try{let t=d.safeParse(JSON.parse(e));return t.success?t.data:void 0}catch(e){return}},m=()=>{i.A.remove(s)}},49310:(e,t,a)=>{"use strict";a.d(t,{D:()=>m});var i=a(37876),l=a(27964),n=a(81389),r=a(61591),s=a(26847),o=a(18056),c=a(63534),d=a(61192),u=a(30809);let m=e=>{let t,a,n=(0,l.c)(13),{playerState:r,handleClick:s,loading:o,disabled:c,useInkButton:d,customListenAudioTitle:m,functionButton:h}=e,x=r===u.Q.PLAYING||r===u.Q.PAUSED,g=x||o||c;n[0]!==m||n[1]!==g||n[2]!==h||n[3]!==s||n[4]!==x||n[5]!==o||n[6]!==r?(t=(0,i.jsx)(p,{loading:o,isPlayingAudio:x,playerState:r,customListenAudioTitle:m,functionButton:h,disabled:g,handleClick:s}),n[0]=m,n[1]=g,n[2]=h,n[3]=s,n[4]=x,n[5]=o,n[6]=r,n[7]=t):t=n[7];let v=t;return n[8]!==v||n[9]!==g||n[10]!==s||n[11]!==d?(a=d?(0,i.jsx)(f,{handleClick:s,disabled:g,children:v}):(0,i.jsx)("div",{className:"button--simple-icon text-to-speech-button","data-testid":"text-to-speech-button",children:v}),n[8]=v,n[9]=g,n[10]=s,n[11]=d,n[12]=a):a=n[12],a},f=e=>{let t,a=(0,l.c)(4),{disabled:n,handleClick:r,children:s}=e;return a[0]!==s||a[1]!==n||a[2]!==r?(t=n?(0,i.jsx)("div",{className:"button--simple-icon text-to-speech-button","aria-label":"Toista","data-testid":"text-to-speech-button",children:s}):(0,i.jsx)(c.N,{href:"/paywall/v1/audio",className:"button--simple-icon text-to-speech-button","aria-label":"Toista","data-testid":"text-to-speech-button",onClick:r,children:s}),a[0]=s,a[1]=n,a[2]=r,a[3]=t):t=a[3],t},p=e=>{let t,a,c,m,f,p,h=(0,l.c)(24),{loading:x,isPlayingAudio:g,playerState:v,customListenAudioTitle:b,functionButton:j,disabled:y,handleClick:k}=e;h[0]!==b||h[1]!==g||h[2]!==x?(t=(e=>{let{loading:t,isPlayingAudio:a,customListenAudioTitle:i}=e;return t?"Ladataan...":a?"Kuuntelet juttua":null!=i?i:""})({loading:x,isPlayingAudio:g,customListenAudioTitle:b}),h[0]=b,h[1]=g,h[2]=x,h[3]=t):t=h[3];let A=t;h[4]!==x?(a=x&&(0,i.jsx)("span",{"data-testid":"spinner",children:(0,i.jsx)(o.y,{})}),h[4]=x,h[5]=a):a=h[5],h[6]!==g||h[7]!==v?(c=g&&(0,i.jsx)(d.N,{isPlaying:v===u.Q.PLAYING}),h[6]=g,h[7]=v,h[8]=c):c=h[8],h[9]!==y||h[10]!==j||h[11]!==k||h[12]!==g||h[13]!==A||h[14]!==x?(m=!g&&!x&&(j?(0,i.jsx)(n.x,{small:!0,iconOnly:!0,label:"",onClick:k,disabled:y,"aria-label":A,icon:(0,i.jsx)(r.h,{})}):(0,i.jsx)("button",{onClick:k,disabled:y,"aria-label":A,"data-testid":"play-icon-button",children:(0,i.jsx)(s.E,{size:40})})),h[9]=y,h[10]=j,h[11]=k,h[12]=g,h[13]=A,h[14]=x,h[15]=m):m=h[15];let _=j?"text-to-speech__title nof-ui-body-medium text-nof-foreground-primary":"text-to-speech__title";
1return h[16]!==A||h[17]!==_?(f=(0,i.jsx)("span",{"aria-hidden":"true",className:_,children:A}),h[16]=A,h[17]=_,h[18]=f):f=h[18],h[19]!==a||h[20]!==c||h[21]!==m||h[22]!==f?(p=(0,i.jsxs)(i.Fragment,{children:[a,c,m,f]}),h[19]=a,h[20]=c,h[21]=m,h[22]=f,h[23]=p):p=h[23],p}},51773:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>N});var i=a(37876),l=a(27964),n=a(15039),r=a.n(n),s=a(72848),o=a(23191),c=a(18858),d=a(20952),u=a(63593),m=a(92739),f=a(18847),p=a.n(f),h=a(59712),x=a(71152),g=a(23453),v=a(74730),b=a(68684);let j=p()(()=>Promise.all([a.e(3234),a.e(981)]).then(a.bind(a,80981)).then(e=>e.FormSelection),{loadableGenerated:{webpack:()=>[80981]},ssr:!1,...(0,g.d)()}),y=p()(()=>Promise.all([a.e(3234),a.e(981)]).then(a.bind(a,80981)).then(e=>e.FeedbackForm),{loadableGenerated:{webpack:()=>[80981]},ssr:!1,...(0,g.d)()}),k=p()(()=>Promise.all([a.e(3234),a.e(981)]).then(a.bind(a,80981)).then(e=>e.RectificationForm),{loadableGenerated:{webpack:()=>[80981]},ssr:!1,...(0,g.d)()}),A=p()(()=>Promise.all([a.e(3234),a.e(981)]).then(a.bind(a,80981)).then(e=>e.OpinionForm),{loadableGenerated:{webpack:()=>[80981]},ssr:!1,...(0,g.d)()}),_=p()(()=>Promise.all([a.e(3234),a.e(981)]).then(a.bind(a,80981)).then(e=>e.ObituaryForm),{loadableGenerated:{webpack:()=>[80981]},ssr:!1,...(0,g.d)()}),N=e=>{let t,a,n,f,p,g,N,w,S,I,C=(0,l.c)(38),{id:T,formVariant:P,articleInfo:E,articleTail:D}=e,L=(0,s.P)(),F=(0,c.R7)(),{environment:B}=(0,o.U)(),{useInkAuth:R}=(0,u.g$)(),{getValidSessionToken:O,userProfile:W}=(0,m.sb)(),{nodeUrl:M}=(0,d.p)(),z="/palaute/"===M;C[0]!==L||C[1]!==F?(t=(0,x.Bd)()?(0,v.ZX)(L,F):"",C[0]=L,C[1]=F,C[2]=t):t=C[2];let U=t;C[3]!==L||C[4]!==F?(a=(0,x.Bd)()?(0,v.Ln)(L,F):"",C[3]=L,C[4]=F,C[5]=a):a=C[5];let K=a;C[6]!==L||C[7]!==B||C[8]!==R?(n=e=>{(0,h.XE)("feedback-form","Kirjaudu sis\xe4\xe4n"),(0,b.Cw)(L,B),(0,b.wm)(R,e)}
1,C[6]=L,C[7]=B,C[8]=R,C[9]=n):n=C[9];let G=n;C[10]!==L||C[11]!==B||C[12]!==R?(f=e=>{(0,h.XE)("feedback-form","Luo tunnus"),(0,b.Cw)(L,B),(0,b.s1)(R,e)},C[10]=L,C[11]=B,C[12]=R,C[13]=f):f=C[13];let H=f;C[14]!==O||C[15]!==W?(p=async()=>({userProfile:W,sessionToken:await O()}),C[14]=O,C[15]=W,C[16]=p):p=C[16];let V=p;C[17]!==L||C[18]!==B||C[19]!==G||C[20]!==H||C[21]!==T||C[22]!==U||C[23]!==V||C[24]!==K?(g={id:T,env:B,brand:L,getOrRefreshSession:V,loginUrl:U,handleLoginLinkClick:G,registrationUrl:K,handleRegistrationLinkClick:H},C[17]=L,C[18]=B,C[19]=G,C[20]=H,C[21]=T,C[22]=U,C[23]=V,C[24]=K,C[25]=g):g=C[25];let q=g;C[26]!==E||C[27]!==D||C[28]!==q||C[29]!==P?(N=()=>{switch(P){case"feedback":return(0,i.jsx)("div",{"data-testid":"nrt-feedback-form",children:(0,i.jsx)(y,{...q})});case"selection":return(0,i.jsx)("div",{"data-testid":"nrt-form-selection",children:(0,i.jsx)(j,{...q,articleInfo:E,articleTail:D})});case"opinion":return(0,i.jsx)("div",{"data-testid":"nrt-opinion-form",children:(0,i.jsx)(A,{...q})});case"rectification":return(0,i.jsx)("div",{"data-testid":"nrt-rectification-form",children:(0,i.jsx)(k,{...q})});case"obituary":return(0,i.jsx)("div",{"data-testid":"nrt-obituary-form",children:(0,i.jsx)(_,{...q})});default:return null}},C[26]=E,C[27]=D,C[28]=q,C[29]=P,C[30]=N):N=C[30];let $=N;return C[31]!==z?(w=r()("mb-nof-16",{"border-divider-2 border-b":z}),C[31]=z,C[32]=w):w=C[32],C[33]!==$?(S=$(),C[33]=$,C[34]=S):S=C[34],C[35]!==w||C[36]!==S?(I=(0,i.jsx)("div",{className:w,children:S}),C[35]=w,C[36]=S,C[37]=I):I=C[37],I}},53051:(e,t,a)=>{"use strict";a.d(t,{x:()=>F});var i=a(37876),l=a(27964),n=a(95961),r=a(23191),s=a(63593),o=a(86700),c=a(18847),d=a.n(c),u=a(23453),m=a(54983),f=a(5243),p=a(32045),h=a(72848),x=a(92739),g=
1a(3890),v=a(62498),b=a(51144),j=a(30809),y=a(14232),k=a(3009),A=a(59712),_=a(56);let N=e=>{switch(e.substring(e.lastIndexOf("."))){case".EXT":return["webp","jpg.webp"];case".gif":return["gif"];case".svg":return["svg"];default:return[]}},w=e=>{let t=e.replace("/WIDTH.","/{width}.");return t.endsWith("gif")?S(t,"gif"):t.endsWith("svg")?S(t,"svg"):t.replace(".EXT",".{extension}")},S=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"{extension}";if(!e.endsWith(t))return e;{let i=e.length,l=t.length;return"".concat(e.slice(0,i-l)).concat(a)}};var I=a(17924),C=a(49310);let T=e=>{let t,a,s,c,d,u,m,j,_,N,w,S,T=(0,l.c)(37),{customListenAudioTitle:L,functionButton:F}=e;T[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],T[0]=t):t=T[0];let[B,R]=(0,y.useState)(t),[O,W]=(0,y.useState)(),[M,z]=(0,y.useState)(!1),{userProfile:U,getValidSessionToken:K}=(0,x.sb)(),{assetData:G}=(0,n._)(),{environment:H}=(0,r.U)(),V=(0,h.P)(),q=null!=L?L:G&&"customListenAudioTitle"in G?G.customListenAudioTitle:"Kuuntele juttu";T[1]!==G||T[2]!==B||T[3]!==(null==O?void 0:O.mediaUrl)||T[4]!==U?(a=()=>{G&&(0,I.g7)(v.oi.InitiateAudioMiniplayerV2)?(0,I.Wr)({type:v.oi.InitiateAudioMiniplayerV2,mediaId:G.id.toString()}):(0,I.Wr)({type:v.oi.InitiateAudioMiniplayer,assetId:null==G?void 0:G.id.toString(),mediaUrl:null==O?void 0:O.mediaUrl,playlist:function(e){return e.filter(P).map(E)}(B),userRole:(0,f.uG)(U),gaId:(0,A.MM)(G)})},T[1]=G,T[2]=B,T[3]=null==O?void 0:O.mediaUrl,T[4]=U,T[5]=a):a=T[5],null==O||O.mediaUrl;let $=a;T[6]!==G||T[7]!==V||T[8]!==H||T[9]!==K||T[10]!==U?(s=async e=>{(0,A.Pm)({assetId:null==G?void 0:G.id,error:!1}),!(0,p.HL)(U,V,G)||(G&&(0,o.Xb)(G)&&G.humanAudioId&&(0,p.RS)(U,V,G)?(e.preventDefault(),(0,I.Wr)({type:v.oi.InitiateAudioMiniplayerV2,mediaId:G.humanAudioId})):(null==G?void 0:G.id)&&(e.preventDefault(),z(!0),await (0,k.Y)(G.id,V,H,K,"playlist").then(e=>{window.inkAppInitialMiniplayerState=void 0,R(e.playlist),W(t=>{var a;return{...t,mediaUrl:null!=(a=e.mediaUrl)?a:e.sampleMediaUrl}})}).catch(e=>{console.error(e),(0,A.Pm)({error:!0,errorMessage:e instanceof Error?e.message:void 0}),function(e,t){let a={type:v.oi.MessageEvent,message:e,messageType:t};(0,I.Wr)(a)}("Kuunteleminen ei onnistu juuri nyt. Yrit\xe4 my\xf6hemmin uudelleen.",v.IF.ERROR)}).finally(()=>{z(!1)})))},T[6]=G,T[7]=V,T[8]=H,T[9]=K,T[10]=U,T[11]=s):s=T[11];let X=s;T[12]!==(null==G?void 0:G.id)?(c=()=>{var e;let t=null==(e=window.inkAppInitialMiniplayerState)?void 0:e.data;Number(null==t?void 0:t.assetId)===(null==G?void 0:G.id)?W(t):(W(void 0),R([]))},T[12]=null==G?void 0:G.id,T[13]=c):c=T[13],null==G||G.id;let J=c;T[14]!==J?(d=()=>{"visible"===document.visibilityState&&J()},T[14]=J,T[15]=d):d=T[15],(0,g.U)(d),T[16]!==J?(u=()=>{J()},m=[J],T[16]=J,T[17]=u,T[18]=m):(u=T[17],m=T[18]),(0,y.useEffect)(u,m),T[19]!==(null==O?void 0:O.mediaUrl)||T[20]!==$?(j=()=>{var e;(null==O?void 0:O.mediaUrl)&&(null==(e=window.inkAppInitialMiniplayerState)?void 0:e.data)===void 0&&$()},T[19]=null==O?void 0:O.mediaUrl,T[20]=$,T[21]=j):j=T[21];let Z=null==O?void 0:O.mediaUrl;T[22]!==$||T[23]!==Z?(_=[Z,$],T[22]=$,T[23]=Z,T[24]=_):_=T[24],(0,y.useEffect)(j,_),T[25]!==(null==G?void 0:G.id)?(N=()=>{let e=e=>{var t,a,i,l;if(Number(null!=(t=null==(a=e.detail)?void 0:a.data.assetId)?t:null==(i=e.detail)?void 0:i.data.mediaId)===(null==G?void 0:G.id)){let t=null==(l=e.detail)?void 0:l.data.state;W(e=>({...e,state:t}))}else W(D)};return(0,I.yb)(v.mB.MiniPlayerEvent,e),()=>{(0,I.Bv)(v.mB.MiniPlayerEvent,e)}},T[25]=null==G?void 0:G.id,T[26]=N):N=T[26];let Y=null==G?void 0:G.id;T[27]!==O||T[28]!==Y?(w=[Y,O],T[27]=O,T[28]=Y,T[29]=w):w=T[29],(0,y.useEffect)(N,w);let Q=null==O?void 0:O.state,ee=U.authenticationStatus===b.J.Unknown;return T[30]!==F||T[31]!==X||T[32]!==q||T[33]!==M||T[34]!==Q||T[35]!==ee?(S=(0,i.jsx)("section",{className:"text-to-speech__container","data-testid":"text-to-speech__container",children:(0,i.jsx)(C.D,{playerState:Q,handleClick:X,loading:M,disabled:ee,useInkButton:!0,customListenAudioTitle:q,functionButton:F})}),T[30]=F,T[31]=X,T[32]=q,T[33]=M,T[34]=Q,T[35]=ee,T[36]=S):S=T[36],S};function P(e){return!!e.picture}function E(e){var t,a,i,l,n,r;let s;return{...e,mediaUrl:null!=(t=null!=(a=e.mediaUrl)?a:e.sampleMediaUrl)?t:"",picture:e.picture?{source:{aspectRatio:(e=>{let{height:t,width:a}=e;return t&&a?a/t:1})(s=e.picture),availableWidths:_.ol,url:w(s.url),availableExtensions:N(s.url)},squareSource:{aspectRatio:1,availableWidths:_.ol,url:w(null!=(l=(i=s).squareUrl)?l:i.url),availableExtensions:N(null!=(r=(n=s).squareUrl)?r:n.url)}}:void 0}}function D(e){return{...e,state:j.Q.CLOSE}}let L=d()(()=>Promise.all([a.e(8299),a.e(682),a.e(475)]).then(a.bind(a,28357)),{loadableGenerated:{webpack:()=>[28357]},ssr:!1,...(0,u.d)(()=>(0,i.jsx)("div",{className:"h-[56px]"}))}),F=e=>{let t=(0,l.c)(18),{sectionTheme:a,listTemplate:c,theme:d,alasinColor:u,audioType:f,podcastId:h,podcastTitle:x,podcastEnabled:g,originalAssetId:v,customListenAudioTitle:b,functionButton:j,isSpecialArticle:y}=e,{useInkBridge:k}=(0,s.g$)(),{assetData:A}=(0,n._)(),{environment:_}=(0,r.U)();if(g||(0,p._v)(A,f,_)){if(k){let e;return t[0]!==u||t[1]!==A||t[2]!==b||t[3]!==j||t[4]!==y||t[5]!==h||t[6]!==x?(e=h?(0,i.jsx)(m.K,{podcastId:h,podcastTitle:null!=x?x:null==A?void 0:A.title,alasinColor:u,assetData:A,isSpecialArticle:y}):(0,i.jsx)(T,{customListenAudioTitle:b,functionButton:j}
1),t[0]=u,t[1]=A,t[2]=b,t[3]=j,t[4]=y,t[5]=h,t[6]=x,t[7]=e):e=t[7],e}else if(A&&(0,o.Xb)(A)){let e;return t[8]!==u||t[9]!==A||t[10]!==b||t[11]!==j||t[12]!==c||t[13]!==v||t[14]!==h||t[15]!==a||t[16]!==d?(e=(0,i.jsx)(L,{sectionTheme:a,listTemplate:c,theme:d,podcastId:h,alasinColor:u,originalAssetId:v,customListenAudioTitle:b,asset:A,functionButton:j}),t[8]=u,t[9]=A,t[10]=b,t[11]=j,t[12]=c,t[13]=v,t[14]=h,t[15]=a,t[16]=d,t[17]=e):e=t[17],e}}return null}},54056:(e,t,a)=>{"use strict";a.d(t,{I:()=>g});var i=a(85933),l=a(95961),n=a(72848),r=a(61127),s=a(23191),o=a(20952),c=a(63593),d=a(92739),u=a(31064),m=a(14232),f=a(96078),p=a(68646),h=a(34950),x=a(42910);let g=(e,t)=>{let a=(0,n.P)(),g=(0,s.U)(),{platform:b,useInkBridge:j}=(0,c.g$)(),{nodeType:y}=(0,o.p)(),{getValidSessionToken:k,userIds:{ceId:A},userProfile:_}=(0,d.sb)(),{assetData:N}=(0,l._)(),{shouldLoadBraze:w}=(0,r.ml)(),S=(0,p.FH)(_.authenticationStatus),{brazeTargetGroup:I,isReady:C}=(0,x.M)(S===i.kj.Pending),T=(0,m.useRef)(!1),P=(0,m.useRef)(!1);(0,m.useEffect)(()=>{!1===w&&(P.current=!0)},[w]);let E=T.current||P.current?void 0:I,D=N&&(0,h.BG)(N)&&N.paidType===u.H.dynamicPaywall,L=(0,i.G0)({brand:a,articleId:e,env:(0,p.AR)(g),authState:S,platform:null!=b?b:i.OD.Web,platformResolved:(0,p._B)(j,b),nodeType:null!=y?y:i.Z6.Normal,getJwtToken:k,googleExtendedAccessToken:t,ceId:A&&D?A:void 0,brazeTargetGroup:E,p2pDecile:(0,f.Wc)(),showPaywall:v(N)});return((0,m.useEffect)(()=>{L.state!==i.MB.GRANTED||E||(T.current=!0)},[L.state,E]),C||L.state!==i.MB.DENIED)?L:{...L,state:i.MB.LOADING}},v=e=>!!e&&"showPaywall"in e&&void 0!==e.showPaywall&&e.showPaywall},55100:(e,t,a)=>{"use strict";a.d(t,{I:()=>u});var i=a(79501),l=a(57579),n=a(3134),r=a(24968),s=a(37876),o=a(27964),c=a(69241),d=a(14232),u=e=>{let t,a,u,m,f,p,h,x,g,v,b,j,y,k,A,_,N,w,S,I,C,T,P,E,D,L,F,B,R,O,W,M,z=(0,o.c)(62);z[0]!==e?({id:t,name:f,placeholder:g,initialValue:a,searchButton:b,onSearch:x,onChange:p,onClear:h,label:m,labelVisible:j,ref:v,...u}=e,z[0]=e,z[1]=t,z[2]=a,z[3]=u,z[4]=m,z[5]=f,z[6]=p,z[7]=h,z[8]=x,z[9]=g,z[10]=v,z[11]=b,z[12]=j):(t=z[1],a=z[2],u=z[3],m=z[4],f=z[5],p=z[6],h=z[7],x=z[8],g=z[9],v=z[10],b=z[11],j=z[12]);let U=void 0===b||b,K=void 0!==j&&j,[G,H]=(0,d.useState)(null!=a?a:""),[V,q]=(0,d.useState)(!1),[$,X]=(0,d.useState)(!1),J=(0,d.useRef)(null),Z=(0,d.useRef)(null);z[13]!==p?(y=e=>{H(e.target.value),null==p||p(e)},z[13]=p,z[14]=y):y=z[14];let Y=y;z[15]!==h?(k=()=>{H(""),null==h||h()},z[15]=h,z[16]=k):k=z[16];let Q=k;z[17]!==x?(A=()=>{x()},z[17]=x,z[18]=A):A=z[18];let ee=A;z[19]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{setTimeout(()=>{q(!1)},0)},z[19]=_):_=z[19];let et=_;z[20]===Symbol.for("react.memo_cache_sentinel")?(N=e=>{var t;(null==(t=Z.current)?void 0:t.contains(e.relatedTarget))&&q(!1)},z[20]=N):N=z[20];let ea=N;z[21]!==ee?(w=e=>{"Enter"===e.key&&(e.preventDefault(),ee())},z[21]=ee,z[22]=w):w=z[22];let ei=w,el=(0,d.useId)(),en=null!=t?t:el;return z[23]!==en||z[24]!==m||z[25]!==K?(S=K&&(0,s.jsx)(n.t,{containerClassName:"_Label_18rqg_7",text:m,htmlFor:en}),z[23]=en,z[24]=m,z[25]=K,z[26]=S):S=z[26],z[27]===Symbol.for("react.memo_cache_sentinel")?(I=()=>{X(!0)},C=()=>{X(!0)},T=()=>{X(!1)},P=()=>{X(!1)},z[27]=I,z[28]=C,z[29]=T,z[30]=P):(I=z[27],C=z[28],T=z[29],P=z[30]),z[31]===Symbol.for("react.memo_cache_sentinel")?(E=(0,c.A)("_Input_18rqg_43","nof-ui-body-medium"),z[31]=E):E=z[31],z[32]===Symbol.for("react.memo_cache_sentinel")?(D=()=>{q(!0)},L=()=>{et()},z[32]=D,z[33]=L):(D=z[32],L=z[33]),z[34]!==Y||z[35]!==ei||z[36]!==en||z[37]!==u||z[38]!==m||z[39]!==f||z[40]!==g||z[41]!==v||z[42]!==G?(F=(0,s.jsx)("input",{ref:v,id:en,type:"search",name:f,value:G,onChange:Y,placeholder:g,className:E,onKeyDown:ei,onFocus:D,onBlur:L,"aria-label":m,...u}),z[34]=Y,z[35]=ei,z[36]=en,z[37]=u,z[38]=m,z[39]=f,z[40]=g,z[41]=v,z[42]=G,z[43]=F):F=z[43],z[44]!==Q||z[45]!==V||z[46]!==$||z[47]!==G?(B=G&&(V||$)&&(0,s.jsx)("button",{type:"button",className:"_ClearButton_18rqg_94",onClick:Q,ref:J,onBlur:e=>{ea(e)},children:(0,s.jsx)(l.k,{className:"_ClearIcon_18rqg_105"})}),z[44]=Q,z[45]=V,z[46]=$,z[47]=G,z[48]=B):B=z[48],z[49]!==F||z[50]!==B?(R=(0,s.jsxs)("div",{className:"_InputContainer_18rqg_43",onMouseOver:I,onFocus:C,onMouseOut:T,onBlur:P,children:[F,B]}),z[49]=F,z[50]=B,z[51]=R):R=z[51],z[52]!==ee||z[53]!==m||z[54]!==U?(O=U&&(0,s.jsx)(r.i,{ref:Z,type:"button",icon:(0,s.jsx)(i.W,{}),iconOnly:!0,label:m,containerClassName:"_SearchButton_18rqg_26",onClick:ee}),z[52]=ee,z[53]=m,z[54]=U,z[55]=O):O=z[55],z[56]!==R||z[57]!==O?(W=(0,s.jsxs)("div",{className:"_SearchContainer_18rqg_11",children:[R,O]}),z[56]=R,z[57]=O,z[58]=W):W=z[58],z[59]!==W||z[60]!==S?(M=(0,s.jsxs)("div",{className:"_SearchWra
1pper_18rqg_1",children:[S,W]}),z[59]=W,z[60]=S,z[61]=M):M=z[61],M};u.displayName="SearchBar"},57067:(e,t,a)=>{"use strict";a.d(t,{s:()=>r});var i=a(37876),l=a(27964),n=a(81389);let r=e=>{let t,a,r,s,o,c,d=(0,l.c)(12),{narrow:u,articleId:m,brandName:f}=e,p=void 0!==u&&u;d[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)("div",{className:"mb-nof-16 inline-flex justify-center",children:(0,i.jsx)("img",{src:"/_next/static/media/regional-media-newstip-icon-neg.1255467b.svg",width:"62",height:"62",alt:"",loading:"lazy"})}),d[0]=t):t=d[0],d[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsxs)("h2",{className:"nof-ui-title-medium mb-nof-16",children:["L\xe4het\xe4 meille vinkki, ",(0,i.jsx)("span",{className:"whitespace-nowrap",children:"kuva tai video"})]}),d[1]=a):a=d[1],d[2]!==f?(r=(0,i.jsxs)("p",{className:"nof-ui-subtitle-small mb-nof-16",children:["Olitko paikalla, kun jotain tapahtui tai tied\xe4tk\xf6 jotain, mit\xe4 ",f," pit\xe4isi selvitt\xe4\xe4?"]}),d[2]=f,d[3]=r):r=d[3],d[4]!==p?(s=p&&(0,i.jsx)("div",{className:"nof-ui-body-small mb-nof-16",children:(0,i.jsx)("p",{className:"font-normal",children:"Kuvista ja videoista maksetaan palkkio. Huomioi onnettomuuspaikalla pelastushenkil\xf6kunta ja auta."})}),d[4]=p,d[5]=s):s=d[5];let h="/info/art-".concat(m,".html?ref=newstip-").concat(p?"side":"main");return d[6]!==h?(o=(0,i.jsx)(n.z9,{link:{href:h},label:"L\xe4het\xe4 havaintosi",variant:n.KT.Secondary}),d[6]=h,d[7]=o):o=d[7],d[8]!==r||d[9]!==s||d[10]!==o?(c=(0,i.jsx)("div",{className:"bg-nof-background-content-default border-b-nof-neutral-contrast-default w-full border-b",children:(0,i.jsxs)("div",{className:"bg-nof-background-content-accent text-nof-foreground-negative p-nof-16 flex flex-col items-center text-center",children:[t,a,r,s,o]})}),d[8]=r,d[9]=s,d[10]=o,d[11]=c):c=d[11],c}},57369:(e,t,a)=>{"use strict";a.d(t,{r:()=>aK,i:()=>az});var i=a(37876),l=a(27964),n=a(15039),r=a.n(n),s=a(6868),o=a(39153),c=a(14121),d=a(59712),u=a(63534),m=a(61147),f=a(57814);let p=e=>{let t,a,n,r,s,o,c=(0,l.c)(19),{item:d,onItemClick:p,itemRef:h,impressionRef:x}=e,{maxImageWidth:g}=(0,f.j)();return c[0]!==d.picture||c[1]!==g?(t=(0,i.jsx)(m.Q,{containerClassName:"aspect-square relative rounded-(--nof-core-border-radius-8) overflow-hidden",picture:d.picture,maxImageWidth:g}),c[0]=d.picture,c[1]=g,c[2]=t):t=c[2],c[3]!==d.title?(a=(0,i.jsx)("h3",{className:"nof-ui-subtitle-small text-nof-foreground-primary line-clamp-3",children:d.title}),c[3]=d.title,c[4]=a):a=c[4],c[5]!==d.description?(n=d.description&&(0,i.jsx)("p",{className:"nof-ui-body-small text-nof-foreground-primary line-clamp-3",children:d.description}),c[5]=d.description,c[6]=n):n=c[6],c[7]!==a||c[8]!==n?(r=(0,i.jsxs)("div",{className:"gap-nof-8 flex flex-col",children:[a,n]}),c[7]=a,c[8]=n,c[9]=r):r=c[9],c[10]!==h||c[11]!==t||c[12]!==r?(s=(0,i.jsxs)("article",{ref:h,className:"gap-nof-12 flex flex-col","data-testid":"audio-series-grid-item",children:[t,r]}),c[10]=h,c[11]=t,c[12]=r,c[13]=s):s=c[13],c[14]!==x||c[15]!==d.href||c[16]!==p||c[17]!==s?(o=(0,i.jsx)(u.N,{href:d.href,onClick:p,forwardRef:x,children:s}),c[14]=x,c[15]=d.href,c[16]=p,c[17]=s,c[18]=o):o=c[18],o},h=e=>{let t,a,n,r=(0,l.c)(13),{item:s,index:u,peAnalyticsPosition:m,onItemClick:f,listId:h,listTitle:x}=e,g=(0,o.kd)(s,u,m,"grid","audio grid","audio_grid_item"),{ref:v,registerClickImpression:b}=(0,o.Ly)(g,.9);r[0]!==u||r[1]!==s||r[2]!==h||r[3]!==x?(t={onEnter:()=>{var e;(0,d.$)({event:"element_event",event_name:"element_shown",element_id:s.id,element_list_id:h,element_list_title:x,element_list_type:"grid",element_position:u+1,label:null!=(e=s.title)?e:"",ui_context:"audio grid"})},threshold:.3,triggerOnce:!0},r[0]=u,r[1]=s,r[2]=h,r[3]=x,r[4]=t):t=r[4];let{ref:j}=(0,c.z)(t);return r[5]!==f||r[6]!==b?(a=()=>{f(),b()},r[5]=f,r[6]=b,r[7]=a):a=r[7],r[8]!==v||r[9]!==s||r[10]!==j||r[11]!==a?(n=(0,i.jsx)(p,{item:s,onItemClick:a,itemRef:j,impressionRef:v}),r[8]=v,r[9]=s,r[10]=j,r[11]=a,r[12]=n):n=r[12],n},x=e=>{let t,a,n,r,o,u,m,f,p,x,v,b,j=(0,l.c)(36),{id:y,title:k,items:A,peAnalyticsPosition:_}=e;j[0]!==y||j[1]!==k?(t=e=>{(0,d.$)({event:"element_event",event_name:"list_shown",element_id:y,element_list_id:y,element_list_title:null!=k?k:"",element_list_type:"grid",label:null!=k?k:"",ui_context:"audio grid",...void 0===e?{}:e})},j[0]=y,j[1]=k,j[2]=t):t=j[2];let N=t;j[3]!==N?(a={onEnter:()=>{N({event_name:"list_shown"})},threshold:.3,triggerOnce:!0},j[3]=N,j[4]=a):a=j[4];let{ref:w}=(0,c.z)(a);j[5]!==N?(n=(e,t,a)=>{N({event_name:"element_click",element_id:e,element_position:t,label:a})},j[5]=N,j[6]=n):n=j[6];let S=n;
1if(j[7]!==S||j[8]!==y||j[9]!==A||j[10]!==_||j[11]!==w||j[12]!==k){r=Symbol.for("react.early_return_sentinel");e:{let e,t=null==A?void 0:A.filter(g);if(!t||0===t.length){r=null;break e}m="bg-nof-background-content-default",f=w,p="audio-series-grid",j[20]!==k?(x=(0,i.jsx)(s.B,{listTemplate:"carousel-audio-series-s",listTitle:k,forceDividerHidden:!0,className:"pb-nof-16"}),j[20]=k,j[21]=x):x=j[21],o="gap-nof-16 px-nof-16 pb-nof-16 mb-nof-8 sm:mb-nof-16 border-nof-neutral-contrast-default grid grid-cols-2 border-b sm:grid-cols-3",j[22]!==S||j[23]!==y||j[24]!==_||j[25]!==k?(e=(e,t)=>(0,i.jsx)(h,{item:e,index:t,peAnalyticsPosition:_,onItemClick:()=>{S(e.id,t+1,e.title)},listId:y,listTitle:null!=k?k:""},e.id),j[22]=S,j[23]=y,j[24]=_,j[25]=k,j[26]=e):e=j[26],u=t.map(e)}j[7]=S,j[8]=y,j[9]=A,j[10]=_,j[11]=w,j[12]=k,j[13]=r,j[14]=o,j[15]=u,j[16]=m,j[17]=f,j[18]=p,j[19]=x}else r=j[13],o=j[14],u=j[15],m=j[16],f=j[17],p=j[18],x=j[19];return r!==Symbol.for("react.early_return_sentinel")?r:(j[27]!==o||j[28]!==u?(v=(0,i.jsx)("div",{className:o,children:u}),j[27]=o,j[28]=u,j[29]=v):v=j[29],j[30]!==v||j[31]!==m||j[32]!==f||j[33]!==p||j[34]!==x?(b=(0,i.jsxs)("div",{className:m,ref:f,"data-testid":p,children:[x,v]}),j[30]=v,j[31]=m,j[32]=f,j[33]=p,j[34]=x,j[35]=b):b=j[35],b)};function g(e){return e.picture}x.displayName="AudioSeriesGrid";var v=a(76337),b=a(54740),j=a(30121),y=a(57744),k=a(16494),A=a(77770),_=a(99767),N=a(19501),w=a(84415),S=a(63593),I=a(99972),C=a(98419),T=a(14232),P=a(71152),E=a(30049),D=a(95895),L=a(59587),F=a(91267),B=a(1254);let R=e=>{let{reel:t,carouselRef:a,isMobile:l,isLastItem:n,play:s,onVideoError:o,onVideoInFocus:c,dispatchClickAnalytics:d}=e,m=(0,T.useRef)(null),[f,p]=(0,T.useState)(!1),{ref:h}=(0,I.W)({onEnter:()=>{null==c||c()},root:a.current,threshold:l?n?.6:.55:.7,rootMargin:l?"0px -22% 0px 0px":"0px -35% 0px 0px"});return(0,T.useEffect)(()=>{var e,t;s?null==(e=m.current)||e.play().then(()=>{p(!0)}).catch(()=>{}):(null==(t=m.current)||t.pause(),p(!1))},[s]),(0,i.jsx)(u.N,{href:"/nopeat/".concat(t.id,"/"),onClick:()=>{d()},children:(0,i.jsxs)("div",{className:"reel-carousel__player",children:[(0,i.jsx)(B.B,{imageTemplate:t.video.imageTemplate,thumbnailUrl:t.video.thumbnailUrl,width:300,className:r()("reel-carousel__player-thumbnail block",{hidden:f}),videoId:t.id}),(0,i.jsx)("video",{"data-testid":"reel-carousel-player-".concat(t.id),"aria-hidden":"true",ref:e=>{h(e),m.current=e},playsInline:!0,muted:!0,preload:"auto",loop:!0,onError:()=>null==o?void 0:o(),children:(0,i.jsx)("source",{src:"".concat(L.n6).concat(t.video.id,".mp4"),type:"video/mp4"})}),(0,i.jsx)(F.e,{title:t.title,typographyToken:"sndp-reel-carousel-item-title-font"})]})})},O=e=>{let t,a,n,s,c,d,u,m,f,p,h,x,g,v,b=(0,l.c)(34);b[0]!==e?({id:a,index:n,reel:u,slideRefs:m,focusedReelIndex:t,isLastItem:s,peAnalyticsPosition:c,...d}=e,b[0]=e,b[1]=t,b[2]=a,b[3]=n,b[4]=s,b[5]=c,b[6]=d,b[7]=u,b[8]=m):(t=b[1],a=b[2],n=b[3],s=b[4],c=b[5],d=b[6],u=b[7],m=b[8]);let j=(0,o.kd)(u,n,c,"carousel","reel carousel"),{ref:y,registerClickImpression:k}=(0,o.Ly)(j,.9);b[9]!==d||b[10]!==k?(f=()=>{d.dispatchClickAnalytics(),k()},b[9]=d,b[10]=k,b[11]=f):f=b[11],b[12]!==n||b[13]!==m.current?(p=e=>{let t=m.current;e?t.set(n,e):t.delete(n)},b[12]=n,b[13]=m.current,b[14]=p):p=b[14];let A=t===n;return b[15]!==A?(h=r()("reel-carousel__item",{"is-playing":A}),b[15]=A,b[16]=h):h=b[16],b[17]!==d||b[18]!==k?(x=()=>{d.dispatchClickAnalytics(),k()},b[17]=d,b[18]=k,b[19]=x):x=b[19],b[20]!==a||b[21]!==s||b[22]!==d||b[23]!==u||b[24]!==x?(g=(0,i.jsx)(R,{reel:u,isLastItem:s,id:a,...d,dispatchClickAnalytics:x}),b[20]=a,b[21]=s,b[22]=d,b[23]=u,b[24]=x,b[25]=g):g=b[25],b[26]!==a||b[27]!==y||b[28]!==s||b[29]!==f||b[30]!==p||b[31]!==h||b[32]!==g?(v=(0,i.jsx)(_.A,{dispatchLastItemAnalytic:f,impressionRef:y,isLastItem:s,ref:p,className:h,size:"xl",children:g},a),b[26]=a,b[27]=y,b[28]=s,b[29]=f,b[30]=p,b[31]=h,b[32]=g,b[33]=v):v=b[33],v},W=e=>{let t,a,n,r,s,o,c,u,m,f,p,h,x,g,v,j,y,k,_,w,L,F,B,R,W,U,K,G=(0,l.c)(69),{id:H,peAnalyticsPosition:V}=e;G[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,P.j$)(E.Dy),G[0]=t):t=G[0];let[q,$]=(0,T.useState)(!t);G[1]===Symbol.for("react.memo_cache_sentinel")?(a=[],G[1]=a):a=G[1];let[X,J]=(0,T.useState)(a),[Z,Y]=(0,T.useState)(0),[Q,ee]=(0,T.useState)(!1),{useInkBridge:et}=(0,S.g$)(),ea=(0,T.useRef)(null);G[2]===Symbol.for("react.memo_cache_sentinel")?(n=new Map,G[2]=n):n=G[2];let ei=(0,T.useRef)(n),{isLoading:el,isValidating:en,error:er,data:es,setSize:eo,size:ec}=(0,C.d)();G[3]!==H||G[4]!==et?(r=e=>{e.intersectionRatio>=.9&&(0,d.ZD)({event:"custom_event",event_name:"reels_list_shown",laneitem_id:H,reels_list_title:N.Y,reels_list_type:"carousel"},et),ee(!0)},G[3]=H,G[4]=et,G[5]=r):r=G[5],G[6]===Symbol.for("react.memo_cache_sentinel")?(s=e=>{e.intersectionRatio<=.3&&ee(!1)},o=[.3,.9],G[6]=s,G[7]=o):(s=G[6],o=G[7]),G[8]!==r?(c={onEnter:r,onExit:s,threshold:o},G[8]=r,G[9]=c):c=G[9];let{ref:ed}=(0,I.W)(c),eu=ec>=3;G[10]!==eo||G[11]!==ec?(u=()=>{eo(ec+1)},G[10]=eo,G[11]=ec,G[12]=u):u=G[12],G[13]!==eu||G[14]!==u?(m={skip:eu,onEnter:u},G[13]=eu,G[14]=u,G[15]=m):m=G[15];let{ref:em}=(0,I.W)(m);G[16]!==es||G[17]!==X?(f=es?es.filter(e=>!X.includes(e.id)):[],G[16]=es,G[17]=X,G[18]=f):f=G[18];let ef=f;G[19]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{let e=()=>{$(!(0,P.j$)(E.Dy))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},h=[],G[19]=p,G[20]=h):(p=G[19],h=G[20]),(0,T.useEffect)(p,h),G[21]!==Z||G[22]!==H||G[23]!==Q||G[24]!==ef||G[25]!==et?(x=()=>{var e;let t=null==(e=ef[Z])?void 0:e.id;Q&&t&&(0,d.ZD)({event:"custom_event",event_name:"reels_preview_shown",reels_id:t,laneitem_id:H,reels_list_title:N.Y,reels_list_position:Z,reels_preview_type:"video"},et)},g=[Q,H,Z,ef,et],G[21]=Z,G[22]=H,G[23]=Q,G[24]=ef,G[25]=et,G[26]=x,G[27]=g):(x=G[26],g=G[27]),(0,T.useEffect)(x,g),G[28]===Symbol.for("react.memo_cache_sentinel")?(v=e=>{let t=ei.current.get(e);t&&(t.scrollIntoView({behavior:"smooth",inline:"start",block:"nearest"}),Y(e))},G[28]=v):v=G[28];let ep=v;G[29]!==Z?(j=()=>{ep(Z>0?Z-1:0)},G[29]=Z,G[30]=j):j=G[30];let eh=j;G[31]!==Z||G[32]!==ef.length?(y=()=>{ep(Z<ef.length-1?Z+1:ef.length-1)},G[31]=Z,G[32]=ef.length,G[33]=y):y=G[33];let ex=y;G[34]!==H||G[35]!==et?(k=(e,t)=>{(0,d.ZD)({event:"custom_event",event_name:"reels_list_click",reels_id:e,laneitem_id:H,reels_list_title:N.Y,reels_list_position:t,reels_preview_type:"video"},et)},G[34]=H,G[35]=et,G[36]=k):k=G[36];let eg=k,ev=!el&&!er&&!en&&ef.length>0;return G[37]===Symbol.for("react.memo_cache_sentinel")?(_=(0,i.jsx)(D._,{}),w=(0,i.jsx)(b.c,{}
1),G[37]=_,G[38]=w):(_=G[37],w=G[38]),G[39]!==Z||G[40]!==H||G[41]!==q||G[42]!==V||G[43]!==Q||G[44]!==eg||G[45]!==ef?(L=ef.map((e,t)=>(0,i.jsx)(O,{reel:e,index:t,id:H,carouselRef:ea,isMobile:q,isLastItem:t===ef.length-1,play:Q&&Z===t,onVideoInFocus:()=>{Y(t)},onVideoError:()=>{J(t=>[...t,e.id])},dispatchClickAnalytics:()=>{eg(e.id,t)},slideRefs:ei,focusedReelIndex:Z,shownReels:ef,playbackEnabled:Q,peAnalyticsPosition:V},e.id)),G[39]=Z,G[40]=H,G[41]=q,G[42]=V,G[43]=Q,G[44]=eg,G[45]=ef,G[46]=L):L=G[46],G[47]!==el||G[48]!==ev||G[49]!==en?(F=!ev&&(0,i.jsx)(z,{renderLoadingState:el||en}),G[47]=el,G[48]=ev,G[49]=en,G[50]=F):F=G[50],G[51]!==em||G[52]!==ec?(B=ec<3&&(0,i.jsx)("div",{className:"reel-carousel__item","data-testid":"reel-carousel-infinite-scroll",ref:em}),G[51]=em,G[52]=ec,G[53]=B):B=G[53],G[54]!==L||G[55]!==F||G[56]!==B?(R=(0,i.jsxs)(A.F,{className:"reel-carousel",ref:ea,children:[L,F,B]}),G[54]=L,G[55]=F,G[56]=B,G[57]=R):R=G[57],G[58]!==Z||G[59]!==eh||G[60]!==ex||G[61]!==ef.length?(W=ef.length>0&&(0,i.jsx)(M,{showNextButton:Z!==ef.length-1,showPreviousButton:!!Z,onPreviousClick:eh,onNextClick:ex}),G[58]=Z,G[59]=eh,G[60]=ex,G[61]=ef.length,G[62]=W):W=G[62],G[63]!==R||G[64]!==W?(U=(0,i.jsxs)("div",{className:"reel-carousel__container",children:[R,W]}),G[63]=R,G[64]=W,G[65]=U):U=G[65],G[66]!==ed||G[67]!==U?(K=(0,i.jsxs)("article",{ref:ed,className:"reel-laneitem","data-testid":"reel-carousel",children:[_,w,U]}),G[66]=ed,G[67]=U,G[68]=K):K=G[68],K},M=e=>{let t,a,n,r=(0,l.c)(9),{showNextButton:s,showPreviousButton:o,onPreviousClick:c,onNextClick:d}=e;return r[0]!==c||r[1]!==o?(t=o&&(0,i.jsx)(w.o,{className:"reel-button reel-carousel__button previous",handleClick:()=>{c()},variant:"simple-icon",icon:j.A,iconSize:32,label:"Edellinen"}),r[0]=c,r[1]=o,r[2]=t):t=r[2],r[3]!==d||r[4]!==s?(a=s&&(0,i.jsx)(w.o,{className:"reel-button reel-carousel__button next",handleClick:()=>{d()},variant:"simple-icon",icon:y.f,iconSize:32,label:"Seuraava"}),r[3]=d,r[4]=s,r[5]=a):a=r[5],r[6]!==t||r[7]!==a?(n=(0,i.jsxs)(i.Fragment,{children:[t,a]}),r[6]=t,r[7]=a,r[8]=n):n=r[8],n},z=e=>{let t,a,n,s=(0,l.c)(6),{renderLoadingState:o}=e;s[0]!==o?(t=o?(0,i.jsx)("p",{children:"Sis\xe4lt\xf6\xe4 ladataan"}):(0,i.jsx)(k.A,{title:"Sis\xe4ll\xf6n lataamisessa tapahtui virhe",message:"P\xe4ivit\xe4 sivu tai kokeile my\xf6hemmin uudestaan."}),s[0]=o,s[1]=t):t=s[1];let c=t;return s[2]===Symbol.for("react.memo_cache_sentinel")?(a=Array.from({length:3}),s[2]=a):a=s[2],s[3]!==c||s[4]!==o?(n=(0,i.jsx)(i.Fragment,{children:a.map((e,t)=>(0,i.jsx)(_.V,{className:r()("reel-carousel__item reel-placeholder flex items-center justify-center",{"animate-pulse":o,"reel-carousel__error":!o}),size:"xl",children:c},t))}),s[3]=c,s[4]=o,s[5]=n):n=s[5],n};var U=a(61127),K=a(74978),G=a(33981);let H=e=>{let t,a,n,r,s,o=(0,l.c)(19),{contentCard:c}=e,{title:d,extras:u}=c;o[0]===Symbol.for("react.memo_cache_sentinel")?(t={info:G.K.Info,warning:G.K.Warning},o[0]=t):t=o[0];let m=t,f=u.variant?m[u.variant]:void 0;o[1]!==c?(a=(0,K.vy)(c),o[1]=c,o[2]=a):a=o[2],o[3]!==c?(n=()=>{(0,K.gS)(c)},o[3]=c,o[4]=n):n=o[4],o[5]!==f||o[6]!==a||o[7]!==n?(r={fullWidth:!0,variant:f,dismissible:a,onDismiss:n},o[5]=f,o[6]=a,o[7]=n,o[8]=r):r=o[8];let p=r;if(u.linkHref){let e,t,a="true"===u.linkExternal;return o[9]!==u.linkHref||o[10]!==a||o[11]!==d?(e={href:u.linkHref,external:a,text:d},o[9]=u.linkHref,o[10]=a,o[11]=d,o[12]=e):e=o[12],o[13]!==p||o[14]!==e?(t=(0,i.jsx)(G.F,{...p,"data-testid":"content-card-info-highlight",link:e}),o[13]=p,o[14]=e,o[15]=t):t=o[15],t}return o[16]!==p||o[17]!==d?(s=(0,i.jsx)(G.F,{"data-testid":"content-card-info-highlight",...p,text:d}),o[16]=p,o[17]=d,o[18]=s):s=o[18],s};var V=a(81761);let q=e=>{let t,a,i=(0,l.c)(4),{initialized:n}=(0,U.ml)();return i[0]!==e||i[1]!==n?(t=()=>{n&&(0,V.a)([e])},a=[e,n],i[0]=e,i[1]=n,i[2]=t,i[3]=a):(t=i[2],a=i[3]),(0,T.useEffect)(t,a),null};var $=a(46151),X=a(81389),J=a(53409),Z=a(7982),Y=a(92739),Q=a(51144);let ee=e=>{let t,a=(0,l.c)(3),{imageUrl:n,variant:r}=e;if(!n)return null;let s="simple-feature-promo__image--".concat(r);return a[0]!==n||a[1]!==s?(t=(0,i.jsx)("img",{className:s,src:n,alt:"Feature promo image"}),a[0]=n,a[1]=s,a[2]=t):t=a[2],t},et=e=>{let t,a=(0,l.c)(3),{title:n,variant:r}=e;if(!n)return null;let s="simple-feature-promo__title--".concat(r," sndp-simple-feature-promo-title-").concat(r,"-font");return a[0]!==s||a[1]!==n?(t=(0,i.jsx)(Z.$,{level:"h5",className:s,title:n}),a[0]=s,a[1]=n,a[2]=t):t=a[2],t},ea=e=>{let t,a=(0,l.c)(3),{description:n,variant:r}=e;if(!n)return null;let s="simple-feature-promo__description--".concat(r," sndp-simple-feature-promo-description-font");return a[0]!==n||a[1]!==s?(t=(0,i.jsx)("span",{className:s,children:n}),a[0]=n,a[1]=s,a[2]=t):t=a[2],t},ei=e=>{let t,a,n,r=(0,l.c)(10),{contentCard:s,variant:o}=e,{userProfile:c}=(0,Y.sb)();r[0]!==s.url||r[1]!==c?(t=s.url,s.url&&c.authenticationStatus===Q.J.Authenticated&&c.hashedSub&&(t=(0,K.e)(s.url,c.hashedSub)),r[0]=s.url,r[1]=c,r[2]=t):t=r[2];let{linkText:d}=s;r[3]!==s||r[4]!==t?(a=()=>{t&&((0,$.K)(s),window.location.href=t)},r[3]=s,r[4]=t,r[5]=a):a=r[5];let u=a;if(!d||!t)return null;let m="simple-feature-promo__button--".concat(o);
1return r[6]!==u||r[7]!==d||r[8]!==m?(n=(0,i.jsx)(X.$n,{containerClassName:m,variant:X.KT.Primary,label:d,onClick:u}),r[6]=u,r[7]=d,r[8]=m,r[9]=n):n=r[9],n},el=e=>{let t,a,n,r=(0,l.c)(7),{contentCard:s,variant:o,onDismiss:c}=e;r[0]!==s||r[1]!==c?(t=()=>{(0,K.gS)(s,c)},r[0]=s,r[1]=c,r[2]=t):t=r[2];let d=t,u="simple-feature-promo__dismiss-button--".concat(o);return r[3]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsx)(J.U,{size:32}),r[3]=a):a=r[3],r[4]!==d||r[5]!==u?(n=(0,i.jsx)(X.x,{containerClassName:u,label:"Sulje",iconOnly:!0,icon:a,onClick:d}),r[4]=d,r[5]=u,r[6]=n):n=r[6],n},en=e=>{let t,a,n,r,s,o,c=(0,l.c)(16),{contentCard:d}=e;q(d);let{description:u,imageUrl:m,title:f}=d,[p,h]=(0,T.useState)(!1);return p?null:(c[0]!==d?(t=(0,K.vy)(d)&&(0,i.jsx)(el,{contentCard:d,variant:"main",onDismiss:()=>{h(!0)}}),c[0]=d,c[1]=t):t=c[1],c[2]!==f?(a=(0,i.jsx)(et,{title:f,variant:"main"}),c[2]=f,c[3]=a):a=c[3],c[4]!==m?(n=(0,i.jsx)(ee,{imageUrl:m,variant:"main"}),c[4]=m,c[5]=n):n=c[5],c[6]!==u?(r=(0,i.jsx)(ea,{description:u,variant:"main"}),c[6]=u,c[7]=r):r=c[7],c[8]!==d?(s=(0,i.jsx)(ei,{variant:"main",contentCard:d}),c[8]=d,c[9]=s):s=c[9],c[10]!==t||c[11]!==a||c[12]!==n||c[13]!==r||c[14]!==s?(o=(0,i.jsxs)("section",{className:"simple-feature-promo--main","data-testid":"content-card-simple-feature-promo-main",children:[t,a,n,r,s]}),c[10]=t,c[11]=a,c[12]=n,c[13]=r,c[14]=s,c[15]=o):o=c[15],o)},er=e=>{let t,a,n,r,s,o=(0,l.c)(13),{contentCard:c}=e;q(c);let{description:d,imageUrl:u,title:m}=c,[f,p]=(0,T.useState)(!1);return f?null:(o[0]!==u?(t=(0,i.jsx)(ee,{imageUrl:u,variant:"wide"}),o[0]=u,o[1]=t):t=o[1],o[2]!==d||o[3]!==m?(a=(m||d)&&(0,i.jsxs)("section",{className:"simple-feature-promo__text-container","data-testid":"simple-feature-promo__text-container-".concat(m,"-").concat(d),children:[(0,i.jsx)(et,{title:m,variant:"wide"}),(0,i.jsx)(ea,{description:d,variant:"wide"})]}),o[2]=d,o[3]=m,o[4]=a):a=o[4],o[5]!==c?(n=(0,i.jsx)(ei,{variant:"wide",contentCard:c}),r=(0,K.vy)(c)&&(0,i.jsx)(el,{contentCard:c,variant:"wide",onDismiss:()=>{p(!0)}}),o[5]=c,o[6]=n,o[7]=r):(n=o[6],r=o[7]),o[8]!==t||o[9]!==a||o[10]!==n||o[11]!==r?(s=(0,i.jsxs)("section",{className:"simple-feature-promo--wide","data-testid":"content-card-simple-feature-promo-wide",children:[t,a,n,r]}),o[8]=t,o[9]=a,o[10]=n,o[11]=r,o[12]=s):s=o[12],s)},es=e=>{let t,a,n=(0,l.c)(10),{placement:r}=e,{brazeContentCards:s}=(0,U.ml)();if(n[0]!==s||n[1]!==r?(a=(t=(0,K.qd)(r,s))&&(0,K.Mu)(t),n[0]=s,n[1]=r,n[2]=t,n[3]=a):(t=n[2],a=n[3]),a)switch(t.extras.card_type){case K.Mx.SimpleFeaturePromoMain:{let e;return n[4]!==t?(e=(0,i.jsx)(en,{contentCard:t}),n[4]=t,n[5]=e):e=n[5],e}case K.Mx.SimpleFeaturePromoWide:{let e;return n[6]!==t?(e=(0,i.jsx)(er,{contentCard:t}),n[6]=t,n[7]=e):e=n[7],e}case K.Mx.InfoHighLight:{let e;return n[8]!==t?(e=(0,i.jsx)(H,{contentCard:t}),n[8]=t,n[9]=e):e=n[9],e}}return null};var eo=a(28400),ec=a(42584);let ed=e=>{let t,a,n,r,s,o,c,d,m,f,p=(0,l.c)(24),{date:h,id:x,name:g,picture:v,subtitles:b,title:j,url:y}=e,k=g+(h?" ".concat(h):"");return p[0]!==v?(t=(0,i.jsx)(ec.m,{picture:v}),p[0]=v,p[1]=t):t=p[1],p[2]!==k?(a=(0,i.jsx)(Z.$,{className:"edition-cover-product-name sndp-edition-cover-productname-font",level:"h4",title:k}),p[2]=k,p[3]=a):a=p[3],p[4]!==j?(n=j&&(0,i.jsx)(Z.$,{className:"edition-cover-main-article-title sndp-edition-cover-title-font",title:j,level:"h2"}),p[4]=j,p[5]=n):n=p[5],p[6]!==a||p[7]!==n?(r=(0,i.jsxs)("div",{className:"edition-cover-product-name-container",children:[a,n]}),p[6]=a,p[7]=n,p[8]=r):r=p[8],p[9]!==t||p[10]!==r?(s=(0,i.jsxs)("div",{className:"edition-cover-header",children:[t,r]}),p[9]=t,p[10]=r,p[11]=s):s=p[11],p[12]!==b?(o=b.map(eu),p[12]=b,p[13]=o):o=p[13],p[14]!==o?(c=(0,i.jsx)("div",{className:"edition-cover-subtitles-container",children:(0,i.jsx)("ul",{children:o})}),p[14]=o,p[15]=c):c=p[15],p[16]===Symbol.for("react.memo_cache_sentinel")?(d=(0,i.jsx)("div",{className:"edition-cover-button-container",children:(0,i.jsx)(X.$n,{variant:X.KT.Primary,label:"Lue lehti"})}),p[16]=d):d=p[16],p[17]!==s||p[18]!==c||p[19]!==y?(m=(0,i.jsxs)(u.N,{href:y,children:[s,c,d]}),p[17]=s,p[18]=c,p[19]=y,p[20]=m):m=p[20],p[21]!==x||p[22]!==m?(f=(0,i.jsx)("article",{"data-id":x,className:"edition-cover",children:m}),p[21]=x,p[22]=m,p[23]=f):f=p[23],f};function eu(e,t){return(0,i.jsx)("li",{className:"edition-cover-subtitle sndp-edition-cover-subtitle-font",children:(0,i.jsx)(Z.$,{level:"h3",title:e})},t)}var em=a(65344),ef=a(88491),ep=a(89099),eh=a.n(ep);let ex=e=>{let t,a,n,s,o,c,u,m,f,p,h,x=(0,l.c)(34),{edition:g,articleId:v,keyboardNavigation:b}=e,[k,A]=(0,T.useState)(!1),[_,N]=(0,T.useState)();if(x[0]!==v||x[1]!==g.sections){let e;t=g.sections.flatMap(eg),x[4]!==v?(e=e=>e.articleId===v,x[4]=v,x[5]=e):e=x[5],a=t.findIndex(e),x[0]=v,x[1]=g.sections,x[2]=t,x[3]=a}else t=x[2],a=x[3];let w=a,S=0===w,I=w===t.length-1;x[6]!==t?(n=e=>{let a=t[e];a&&setTimeout(async()=>{await eh().push(a.url),function(){document.body.focus(),window.scrollTo(0,0)}()},200)},x[6]=t,x[7]=n):n=x[7];let C=n;x[8]!==w||x[9]!==S||x[10]!==I||x[11]!==C?(s=e=>{let t=e.target;!(t instanceof HTMLElement&&("TEXTAREA"===t.tagName||"INPUT"===t.tagName))&&("ArrowLeft"!==e.key||e.isComposing||S||(A(!0),N(e.key),(0,d.bO)("edition arrow browse",e.key),C(w-1)),"ArrowRight"!==e.key||e.isComposing||I||(A(!0),N(e.key),(0,d.bO)("edition arrow browse",e.key),C(w+1)))},x[8]=w,x[9]=S,x[10]=I,x[11]=C,x[12]=s):s=x[12];let E=s;if(x[13]!==E||x[14]!==b?(o=()=>(b&&!(0,P.Fr)(navigator.userAgent)&&document.addEventListener("keydown",E,!1),()=>{document.removeEventListener("keydown",E,!1)}),c=[E,b],x[13]=E,x[14]=b,x[15]=o,x[16]=c):(o=x[15],c=x[16]),(0,T.useEffect)(o,c
1),!v||0===t.length)return null;let D=ev;return x[17]!==_||x[18]!==k?(u=k&&_&&(0,i.jsxs)("div",{className:r()("fixed top-[50vh] z-10",{"left-nof-16":"ArrowLeft"===_,"right-nof-16":"ArrowRight"===_}),children:["ArrowLeft"===_&&(0,i.jsx)(X.x,{label:D("ArrowLeft"),iconOnly:!0,icon:(0,i.jsx)(em.J,{size:60})}),"ArrowRight"===_&&(0,i.jsx)(X.x,{label:D("ArrowRight"),iconOnly:!0,icon:(0,i.jsx)(ef.c,{size:60})})]}),x[17]=_,x[18]=k,x[19]=u):u=x[19],x[20]!==w||x[21]!==S||x[22]!==C?(m=!S&&(0,i.jsx)("button",{onClick:()=>{C(w-1)},title:"Edellinen artikkeli","aria-label":"Edellinen artikkeli",children:(0,i.jsx)("span",{className:"text-nof-foreground-primary bg-nof-background-content-default flex justify-center rounded-full border-2 p-8",children:(0,i.jsx)(j.A,{size:16})})}),x[20]=w,x[21]=S,x[22]=C,x[23]=m):m=x[23],x[24]!==w||x[25]!==I||x[26]!==C?(f=!I&&(0,i.jsx)("button",{className:"ml-nof-8",onClick:()=>{C(w+1)},title:"Seuraava artikkeli","aria-label":"Seuraava artikkeli",children:(0,i.jsx)("span",{className:"text-nof-foreground-primary bg-nof-background-content-default flex justify-center rounded-full border-2 p-8",children:(0,i.jsx)(y.f,{size:16})})}),x[24]=w,x[25]=I,x[26]=C,x[27]=f):f=x[27],x[28]!==m||x[29]!==f?(p=(0,i.jsxs)("div",{className:"flex justify-end",children:[m,f]}),x[28]=m,x[29]=f,x[30]=p):p=x[30],x[31]!==u||x[32]!==p?(h=(0,i.jsxs)(i.Fragment,{children:[u,p]}),x[31]=u,x[32]=p,x[33]=h):h=x[33],h};function eg(e){return e.items}function ev(e){return"Lataa ".concat("ArrowLeft"===e?"edellist\xe4":"seuraavaa"," artikkelia.")}var eb=a(95961),ej=a(20952),ey=a(37156),ek=a(18179),eA=a(10914);let e_=e=>{let t,a,n,r=(0,l.c)(9),{id:s,viewFilter:o}=e,{nodeId:c}=(0,ej.p)();r[0]!==c?(t=(0,ek.GP)(c),r[0]=c,r[1]=t):t=r[1],r[2]!==c?(a=()=>(0,eA.T_)(c),r[2]=c,r[3]=a):a=r[3];let{data:d}=(0,ey.E)(t,a),{assetData:u}=(0,eb._)(),m=u?u.id:void 0;return d?(r[4]!==m||r[5]!==d||r[6]!==s||r[7]!==o?(n=(0,i.jsx)(eN,{id:s,edition:d,articleId:m,viewFilter:o}),r[4]=m,r[5]=d,r[6]=s,r[7]=o,r[8]=n):n=r[8],n):null},eN=e=>{let t,a,n,s,o,c,d,u=(0,l.c)(21),{id:m,edition:f,articleId:p,viewFilter:h}=e;u[0]!==p?(t=r()("bg-nof-background-content-default",{sticky:!p},{"top-0":!p}),u[0]=p,u[1]=t):t=u[1],u[2]===Symbol.for("react.memo_cache_sentinel")?(a=r()("border-solid","block","px-nof-16 py-nof-24","flex justify-between"),n=(0,i.jsx)(Z.$,{className:"edition-toc-headline",title:"Sis\xe4llysluettelo",level:"h2"}),u[2]=a,u[3]=n):(a=u[2],n=u[3]);let x="narrow"!==h;if(u[4]!==p||u[5]!==f||u[6]!==x?(s=(0,i.jsxs)("div",{className:a,children:[n,(0,i.jsx)(ex,{articleId:p,edition:f,keyboardNavigation:x})]}),u[4]=p,u[5]=f,u[6]=x,u[7]=s):s=u[7],u[8]!==p||u[9]!==f.sections){let e;u[11]!==p||u[12]!==f.sections.length?(e=(e,t)=>(0,i.jsx)("li",{children:(0,i.jsx)(ew,{section:e,articleId:p,lastSection:t===f.sections.length-1})},t),u[11]=p,u[12]=f.sections.length,u[13]=e):e=u[13],o=f.sections.map(e),u[8]=p,u[9]=f.sections,u[10]=o}else o=u[10];return u[14]!==o?(c=(0,i.jsx)("ol",{children:o}),u[14]=o,u[15]=c):c=u[15],u[16]!==m||u[17]!==t||u[18]!==s||u[19]!==c?(d=(0,i.jsxs)("article",{"data-id":m,className:t,children:[s,c]}),u[16]=m,u[17]=t,u[18]=s,u[19]=c,u[20]=d):d=u[20],d},ew=e=>{let t,a,n,s,o,c=(0,l.c)(22),{section:d,articleId:m,lastSection:f}=e,[p,h]=(0,T.useState)(!1);c[0]!==m||c[1]!==p?(t=()=>{m&&h(!p)},c[0]=m,c[1]=p,c[2]=t):t=c[2];let x=t;if(c[3]!==m||c[4]!==d.items){let e;c[6]!==m?(e=e=>e.articleId===m,c[6]=m,c[7]=e):e=c[7],a=d.items.filter(e),c[3]=m,c[4]=d.items,c[5]=a}else a=c[5];let g=a.length>0,v=p||g;c[8]!==m||c[9]!==f||c[10]!==x||c[11]!==d.title||c[12]!==g||c[13]!==v?(n=m?(0,i.jsx)("button",{className:r()({"nof-ui-subtitle-medium":g,"nof-ui-body-medium":!g,"border-b":v||f},"border-t","border-divider-1","block","p-nof-16","cursor-pointer","w-full","text-left"),onClick:x,children:(0,i.jsx)(Z.$,{title:d.title,level:"h3"})}):(0,i.jsx)("a",{href:"#"+d.title.replace(/ /g,"").toLowerCase(),className:"nof-ui-body-medium border-divider-1 p-nof-16 block border-b",children:(0,i.jsx)(Z.$,{title:d.title,level:"h3"})}),c[8]=m,c[9]=f,c[10]=x,c[11]=d.title,c[12]=g,c[13]=v,c[14]=n):n=c[14];let b=n;return c[15]!==m||c[16]!==d.items||c[17]!==v?(s=v&&d.items.map(e=>(0,i.jsx)(u.N,{className:r()("edition-toc__article-link",{"edition-toc__article-link--bold":e.articleId===m}),href:e.url,children:(0,i.jsx)(Z.$,{title:e.title,level:"h4"})}
1,e.url)),c[15]=m,c[16]=d.items,c[17]=v,c[18]=s):s=c[18],c[19]!==b||c[20]!==s?(o=(0,i.jsxs)("div",{className:"text-nof-foreground-primary",children:[b,s]}),c[19]=b,c[20]=s,c[21]=o):o=c[21],o};var eS=a(72872),eI=a(40859),eC=a(49001),eT=a(84209),eP=a(46644),eE=a(38982),eD=a(32214);let eL=e=>{let t,a,n,r=(0,l.c)(11),{id:s,source:c,height:d,name:u,peAnalyticsPosition:m}=e;r[0]!==u||r[1]!==m||r[2]!==c?(t={type:"iframe",position:m,iframeUrl:c,iframeName:u},r[0]=u,r[1]=m,r[2]=c,r[3]=t):t=r[3];let f=t,{ref:p}=(0,o.qP)(f),h="".concat(s);return r[4]!==d||r[5]!==c||r[6]!==h?(a=(0,i.jsx)(eD.h,{id:h,className:"iframe-container",src:c,height:d,allowFullScreen:!0}),r[4]=d,r[5]=c,r[6]=h,r[7]=a):a=r[7],r[8]!==p||r[9]!==a?(n=(0,i.jsx)("div",{ref:p,children:a}),r[8]=p,r[9]=a,r[10]=n):n=r[10],n};var eF=a(72696),eB=a(91520),eR=a(67625),eO=a(15850),eW=a(44780),eM=a(31064),ez=a(96078),eU=a(25214),eK=a(49983),eG=a(51961),eH=a(78236);let eV=e=>{let t,a,n,r,s,o,c,d,u,m,f,p=(0,l.c)(41),{group:h,peAnalyticsPosition:x,impressionType:g,id:v,peResponseID:b}=e,{nodeType:j}=(0,ej.p)(),{data:y}=(0,eW.i)(),k=null==y?void 0:y.isPaidInDynamicPaywall;p[0]!==h.template?(a=eQ(t=(0,eH.Dc)(h.template,"carousel-m")),p[0]=h.template,p[1]=t,p[2]=a):(t=p[1],a=p[2]);let A=a,[_,N]=(0,T.useState)(0);p[3]!==h.items?(n=h.items.map(e0),p[3]=h.items,p[4]=n):n=p[4];let w=n;p[5]!==k||p[6]!==w||p[7]!==t||p[8]!==j?(r=[w,j,t,k],p[5]=k,p[6]=w,p[7]=t,p[8]=j,p[9]=r):r=p[9],p[10]!==h.items||p[11]!==k||p[12]!==t||p[13]!==j?(s=()=>eq(h.items,t,j,k),p[10]=h.items,p[11]=k,p[12]=t,p[13]=j,p[14]=s):s=p[14];let S=(0,ey.E)(r,s);if(p[15]!==S.data||p[16]!==b){var I;o=null==(I=S.data)?void 0:I.map(e=>({...e,peResponseID:b})),p[15]=S.data,p[16]=b,p[17]=o}else o=p[17];let C=o;p[18]!==C||p[19]!==S?(c={...S,data:C},p[18]=C,p[19]=S,p[20]=c):c=p[20];let P=c,E=+("teaser-m-carousel-l"===t);return p[21]!==g||p[22]!==E?(d={impressionTypeOverride:g,pePositionInGroupOffset:E},p[21]=g,p[22]=E,p[23]=d):d=p[23],p[24]!==_?(u=()=>{N(_+1)},p[24]=_,p[25]=u):u=p[25],p[26]!==h.nodes||p[27]!==h.tags||p[28]!==h.vignette||p[29]!==h.vignetteDescription||p[30]!==v||p[31]!==A||p[32]!==P||p[33]!==t||p[34]!==_||p[35]!==x||p[36]!==u?(m=(0,i.jsx)(eK.l,{listData:P,listTemplate:t,id:v,itemCount:A,peAnalyticsPosition:x,listTitle:h.vignette,listDescription:h.vignetteDescription,showMore:!0,handleShowMore:u,listSource:"pe-recommendation-group",fetchAll:!0,page:_,reelGroupTags:h.tags,reelGroupNodes:h.nodes}),p[26]=h.nodes,p[27]=h.tags,p[28]=h.vignette,p[29]=h.vignetteDescription,p[30]=v,p[31]=A,p[32]=P,p[33]=t,p[34]=_,p[35]=x,p[36]=u,p[37]=m):m=p[37],p[38]!==m||p[39]!==d?(f=(0,i.jsx)(eG.D,{value:d,children:m}),p[38]=m,p[39]=d,p[40]=f):f=p[40],f},eq=async(e,t,a,i)=>{let l=e.filter(e=>void 0!==e.articleId);return"grid-reels"===t?e$(l,i,eY):(await Promise.all(l.map(async e=>eX({laneItem:await (0,eA.KP)(e.articleId,a,t),peItem:e},i)))).filter(e=>"standard"===e.laneItem.itemType).map(e=>eZ(e))},e$=async(e,t,a)=>{let i=new Map(e.map(e=>[e.articleId,e]));return(await (0,eA.Gv)([...i.keys()])).filter(e=>"id"in e).map(e=>{var a;let l=i.get(e.id);if(!l)return;let n=null!=(a=eJ(t,e.paidType))?a:e.paidType;return{listItem:{...e,paidType:n},peItem:l}}).filter(e=>!!e).map(a)},eX=(e,t)=>{let{laneItem:a,peItem:i}=e;return"standard"!==a.itemType?{laneItem:a,peItem:i}:{laneItem:{...a,paidType:eJ(t,a.paidType)},peItem:i}},eJ=(e,t)=>{if(t)return t!==eM.H.dynamicPaywall?t:!1===e?eM.H.dynamicPaywall:eM.H.paid},eZ=e=>{var t,a,i,l,n;let{laneItem:r,peItem:s}=e,o=null==(l=s.testVariants)?void 0:l.headline,c=null==(n=s.testVariants)?void 0:n.image;return{...r,href:r.url,displayDate:null!=(t=r.displayDate)?t:"",title:null!=(a=r.title)?a:"",paidType:null!=(i=r.paidType)?i:eM.H.free,personalized:!0,video:void 0,...o&&{headlineTestID:o.testID,headlineTestTitle:o.title,headlineVariantID:o.variantID},...c&&{picture:c.picture}}},eY=e=>{let{listItem:t,peItem:a}=e;return{...a,...t,personalized:!0}},eQ=e=>{switch(e){case"teaser-m-xs":case"teaser-k":case"teaser-xs":return 3;default:return 4}};function e0(e){let{articleId:t,testVariants:a}=e;return{articleId:t,testVariants:a}}let e1=e=>{let t,a=(0,l.c)(3),{isPersonalFrontPage:n}=(0,eO.B)();return a[0]!==n||a[1]!==e?(t=n?(0,i.jsx)(eF.t,{children:(0,i.jsx)(e2,{...e})}):(0,i.jsx)(eF.t,{children:(0,i.jsx)(e4,{id:e.id,overrideTheme:e.theme,peAnalyticsPosition:e.peAnalyticsPosition,peIndex:e.peItemIndex,overrideInforowContent:e.inforowContent})}),a[0]=n,a[1]=e,a[2]=t):t=a[2],t},e2=e=>{var t;let a,n,r,s,o=(0,l.c)(29),{id:c,peItemIndex:d,peAnalyticsPosition:u}=e,{data:m,isLoading:f,error:p}=(0,eW.i)();if(p){let e;return o[0]!==c||o[1]!==u||o[2]!==d?(e=(0,i.jsx)(e4,{id:c,peAnalyticsPosition:u,peIndex:d}),o[0]=c,o[1]=u,o[2]=d,o[3]=e):e=o[3],e}if(f){let e;return o[4]!==c?(e=(0,i.jsx)(eR.S,{id:c}),o[4]=c,o[5]=e):e=o[5],e}if(!m){let e;return o[6]!==c?(e=(0,i.jsx)(eR.u,{id:c}),o[6]=c,o[7]=e):e=o[7],e}if(o[8]!==m||o[9]!==c||o[10]!==d){r=Symbol.for("react.early_return_sentinel");e:{if(!(a=e5(m,d))){let e;o[14]!==c?(e=(0,i.jsx)(eR.S,{id:c}),o[14]=c,o[15]=e):e=o[15],r=e;break e}n=e6(a)}o[8]=m,o[9]=c,o[10]=d,o[11]=a,o[12]=n,o[13]=r}else a=o[11],n=o[12],r=o[13];if(r!==Symbol.for("react.early_return_sentinel"))return r;let h=n,x=a.personalized,g=a.resultType,v=a.resultId;if((null==(t=a.group)?void 0:t.impressionType)&&a.articleId){let e;return o[16]!==u||o[17]!==a.articleId||o[18]!==a.group||o[19]!==v?(e=(0,i.jsx)(eV,{group:a.group,peAnalyticsPosition:u,impressionType:a.group.impressionType,id:a.articleId,peResponseID:v}),o[16]=u,o[17]=a.articleId,o[18]=a.group,o[19]=v,o[20]=e):e=o[20],e}return o[21]!==c||o[22]!==x||o[23]!==u||o[24]!==g||o[25]!==d||o[26]!==v||o[27]!==h?(s=h?(0,i.jsx)(e4,{id:h,peAnalyticsPosition:u,peAnalyticsPositionType:g,peAnalyticsPersonalized:x,peIndex:d,peResponseID:v}):(0,i.jsx)(e4,{id:c,peAnalyticsPosition:u,peIndex:d}),o[21]=c,o[22]=x,o[23]=u,o[24]=g,o[25]=d,o[26]=v,o[27]=h,o[28]=s):s=o[28],s},e3=(0,P.Bd)()?4*window.innerHeight:4e3,e4=e=>{let t,a,n,r,s,o,c,d=(0,l.c)(31),{id:u,overrideTheme:m,peAnalyticsPosition:f,peIndex:p,peAnalyticsPositionType:h,peAnalyticsPersonalized:x,peResponseID:g,overrideInforowContent:v}=e,{data:b}=(0,eW.i)(),{nodeType:j}=(0,ej.p)();d[0]===Symbol.for("react.memo_cache_sentinel")?(t={triggerOnce:!0,rootMargin:"".concat(eB.jj," ").concat(e3,"px ").concat(e3,"px ").concat(e3,"px")},d[0]=t):t=d[0];let{ref:y,inView:k}=(0,I.W)(t),A=null==b?void 0:b.isPaidInDynamicPaywall;d[1]!==u||d[2]!==A||d[3]!==v||d[4]!==m||d[5]!==x||d[6]!==f||d[7]!==h||d[8]!==b||d[9]!==p||d[10]!==g?(a=e=>{let t=e5(b,null!=p?p:-1),a="standard"===e.itemType&&e.paidType===eM.H.dynamicPaywall&&!1!==A?{...e,paidType:eM.H.paid}:e;if("standard"===a.itemType){let e=u===e6(t),i=e?e7(b,p):null,l=e?e8(b,p):null,n=(null==l?void 0:l.picture)?{...l,picture:(0,eU.Ie)(l.picture,void 0!==m?m:a.theme)}:l;return{...(0,ez.zP)(a,f,h,x,g),...i,...n,theme:void 0!==m?m:a.theme,infoRowContent:void 0!==v?v:a.infoRowContent}}return a},d[1]=u,d[2]=A,d[3]=v,d[4]=m,d[5]=x,d[6]=f,d[7]=h,d[8]=b,d[9]=p,d[10]=g,d[11]=a):a=d[11];let _=a;
1d[12]!==u||d[13]!==j?(n=(0,ek.jg)(u,j),d[12]=u,d[13]=j,d[14]=n):n=d[14],d[15]!==u||d[16]!==j?(r=()=>(0,eA.KP)(u,j),d[15]=u,d[16]=j,d[17]=r):r=d[17],d[18]!==k?(s={enabled:k},d[18]=k,d[19]=s):s=d[19];let{data:N,error:w}=(0,ey.E)(n,r,s);d[20]!==N||d[21]!==_?(o=N?_(N):null,d[20]=N,d[21]=_,d[22]=o):o=d[22];let S=o;if(w)return null;if(S){let e;return d[23]!==S?(e=(0,i.jsx)(aK,{laneItem:S,lazyLoadTeaserImages:!1}),d[23]=S,d[24]=e):e=d[24],e}if(!k){let e;return d[25]!==u||d[26]!==y?(e=(0,i.jsx)(eR.u,{id:u,placeholderRef:y}),d[25]=u,d[26]=y,d[27]=e):e=d[27],e}return d[28]!==u||d[29]!==y?(c=(0,i.jsx)(eR.S,{id:u,placeholderRef:y}),d[28]=u,d[29]=y,d[30]=c):c=d[30],c},e6=e=>{var t;return null!=(t=null==e?void 0:e.laneItemId)?t:null==e?void 0:e.articleId},e5=(e,t)=>!e||t<0||t>=e.result.length?null:{...e.result[t],resultId:e.resultId},e7=(e,t)=>{var a;if("number"!=typeof t)return null;let i=e5(e,t);if(!i)return null;let l=null==(a=i.testVariants)?void 0:a.headline;return l?{headlineTestID:l.testID,headlineTestTitle:l.title,headlineVariantID:l.variantID}:null},e8=(e,t)=>{var a;if("number"!=typeof t)return null;let i=e5(e,t);if(!i)return null;let l=null==(a=i.testVariants)?void 0:a.image;return l?{picture:l.picture,imageTestID:l.testID,imageVariantID:l.variantID}:null};var e9=a(30691),te=a(3),tt=a(72848);let ta="user-local-news-selected-tag-id";var ti=a(34426),tl=a(78101);let tn=e=>{let t,a,n,s=(0,l.c)(5),{className:o}=e;return s[0]!==o?(t=r()("py-nof-16 nof-ui-body-medium text-nof-foreground-primary text-center",o),s[0]=o,s[1]=t):t=s[1],s[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsx)("span",{children:"Sis\xe4ll\xf6n lataus ep\xe4onnistui"}),s[2]=a):a=s[2],s[3]!==t?(n=(0,i.jsx)("div",{className:t,children:a}),s[3]=t,s[4]=n):n=s[4],n};var tr=a(63718),ts=a(43891),to=a(91045),tc=a(82771);let td=e=>{let t,a=(0,l.c)(2);return a[0]!==e?(t=(0,i.jsx)("li",{"aria-hidden":"true",className:"border-divider-1 py-nof-32 border-b last:border-0",...e}),a[0]=e,a[1]=t):t=a[1],t};var tu=a(56298);let tm=e=>{let t,a,n,r,s,o,c,d,u=(0,l.c)(15),{listTitle:m,selectOptions:f,handleTabSelect:p}=e;return u[0]!==m?(t=(0,i.jsx)("div",{className:"flex items-center",children:(0,i.jsx)(Z.$,{className:"nof-component-list-heading-l text-nof-foreground-negative mx-nof-8",title:m,level:"h2"})}),u[0]=m,u[1]=t):t=u[1],u[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsx)("span",{className:"visually-hidden",children:"Valitse alue"}),u[2]=a):a=u[2],u[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,i.jsx)(tu.B,{size:24}),u[3]=n):n=u[3],u[4]!==p?(r=e=>{p(parseInt(e.target.value))},u[4]=p,u[5]=r):r=u[5],u[6]===Symbol.for("react.memo_cache_sentinel")?(s=(0,i.jsx)("option",{value:"default",disabled:!0,children:"Valitse"}),u[6]=s):s=u[6],u[7]!==f?(o=f.map(tf),u[7]=f,u[8]=o):o=u[8],u[9]!==r||u[10]!==o?(c=(0,i.jsxs)("label",{className:"relative",children:[a,(0,i.jsxs)("div",{className:"text-nof-foreground-negative nof-ui-label-small px-nof-16 relative flex h-32 flex-row items-center rounded-full border bg-transparent text-center hover:bg-white/15 active:bg-white/15",children:["Valitse ",n,(0,i.jsxs)("select",{onChangeCapture:r,className:"absolute top-0 left-0 h-full w-full cursor-pointer opacity-0",defaultValue:"default",children:[s,o]})]})]}),u[9]=r,u[10]=o,u[11]=c):c=u[11],u[12]!==t||u[13]!==c?(d=(0,i.jsxs)("header",{className:"text-nof-foreground-negative bg-nof-brand-secondary flex items-center justify-between overflow-hidden p-12",children:[t,c]}),u[12]=t,u[13]=c,u[14]=d):d=u[14],d};function tf(e,t){return(0,i.jsx)("option",{value:t,className:"text-nof-foreground-primary",children:e},e)}let tp=e=>{let t,a=(0,l.c)(3),{listTitle:n,sectionUrl:r}=e;return a[0]!==n||a[1]!==r?(t=(0,i.jsx)("header",{className:"text-nof-foreground-negative bg-nof-brand-secondary p-16",children:r?(0,i.jsx)(u.N,{href:r,children:(0,i.jsx)(Z.$,{className:"font-hs-sanomat text-24 md:text-30 font-black",title:n,level:"h2"})}):(0,i.jsx)(Z.$,{className:"font-hs-sanomat text-24 md:text-30 font-black",title:n,level:"h2"})}),a[0]=n,a[1]=r,a[2]=t):t=a[2],t},th=e=>{let t,a,n,s,o,c,d=(0,l.c)(28),{id:u,list:m,listTitle:f,showMore:p,handleShowMore:h,hasMore:x,isLoading:g,isError:v,itemCount:b,forwardRef:j,sectionUrl:y,localNewsBox:k,availableAreas:A,handleAreaSelect:_,hidden:N}=e,w=!N;return d[0]!==N||d[1]!==w?(t=r()("bg-nof-background-content-default border-divider-2 w-full border-b",{"invisible h-0":N,"mb-nof-16":w}),d[0]=N,d[1]=w,d[2]=t):t=d[2],d[3]!==A||d[4]!==_||d[5]!==f||d[6]!==k||d[7]!==y?(a=k&&A&&_?(0,i.jsx)(tm,{listTitle:f,selectOptions:A.map(tv),handleTabSelect:_}):(0,i.jsx)(tp,{listTitle:f,sectionUrl:y}
1),d[3]=A,d[4]=_,d[5]=f,d[6]=k,d[7]=y,d[8]=a):a=d[8],d[9]!==v||d[10]!==g||d[11]!==b||d[12]!==m?(n=tg(g,v,m,b),d[9]=v,d[10]=g,d[11]=b,d[12]=m,d[13]=n):n=d[13],d[14]!==g||d[15]!==n?(s=(0,i.jsx)("ol",{"aria-busy":g,className:"px-nof-16",children:n}),d[14]=g,d[15]=n,d[16]=s):s=d[16],d[17]!==h||d[18]!==x||d[19]!==p?(o=p&&x?(0,i.jsx)(tr.b,{onClick:h}):null,d[17]=h,d[18]=x,d[19]=p,d[20]=o):o=d[20],d[21]!==j||d[22]!==u||d[23]!==t||d[24]!==a||d[25]!==s||d[26]!==o?(c=(0,i.jsxs)("article",{"data-id":u,ref:j,className:t,children:[a,s,o]}),d[21]=j,d[22]=u,d[23]=t,d[24]=a,d[25]=s,d[26]=o,d[27]=c):c=d[27],c},tx=e=>e.map((e,t)=>{let a=(0,tc.o6)(e);return 0===t?(0,i.jsx)("li",{children:(0,i.jsx)(ts.C,{listItemTeaser:!0,assetId:a.id,category:a.category,...a})},a.id):(0,i.jsx)("li",{className:"border-divider-1 border-b last:border-0",children:(0,i.jsx)(to.C,{listItemTeaser:!0,assetId:a.id,category:a.category,...a})},a.id)}),tg=(e,t,a,l)=>t?(0,i.jsx)("li",{children:(0,i.jsx)(tn,{})}):e?tx(a).concat(Array(l).fill(void 0).map((e,t)=>(0,i.jsx)(td,{"data-testid":"list-item-placeholder"},t))):tx(a);function tv(e){return e.title}let tb=e=>{let t,a=(0,l.c)(14),{id:n,list:r,listTitle:s,showMore:o,handleShowMore:c,hasMore:d,isLoading:u,isError:m,itemCount:f,forwardRef:p,hidden:h,availableAreas:x,handleAreaSelect:g}=e,v=void 0===s?"Paikallisuutiset":s,b=void 0===f?30:f;return Array.isArray(x)&&0!==x.length?(a[0]!==x||a[1]!==p||a[2]!==g||a[3]!==c||a[4]!==d||a[5]!==h||a[6]!==n||a[7]!==m||a[8]!==u||a[9]!==b||a[10]!==r||a[11]!==v||a[12]!==o?(t=(0,i.jsx)(th,{id:n,list:r,listTitle:v,isLoading:u,isError:m,itemCount:b,showMore:o,hasMore:d,handleShowMore:c,forwardRef:p,sectionTheme:"local",localNewsBox:!0,availableAreas:x,handleAreaSelect:g,hidden:h}),a[0]=x,a[1]=p,a[2]=g,a[3]=c,a[4]=d,a[5]=h,a[6]=n,a[7]=m,a[8]=u,a[9]=b,a[10]=r,a[11]=v,a[12]=o,a[13]=t):t=a[13],t):null},tj=e=>{let t,a,n,r,s,o,c,u,m,f,p,h,x,g,v,b,j,y,k,A,_,N=(0,l.c)(68);N[0]!==e?({id:n,availableAreas:s,fetchEnabled:t,forwardRef:a,itemCount:o,...r}=e,N[0]=e,N[1]=t,N[2]=a,N[3]=n,N[4]=r,N[5]=s,N[6]=o):(t=N[1],a=N[2],n=N[3],r=N[4],s=N[5],o=N[6]),N[7]!==s?(c=void 0===s?[]:s,N[7]=s,N[8]=c):c=N[8];let w=c,S=void 0===o?30:o,C=(0,tt.P)(),E=(0,T.useRef)(!1),D=(0,T.useRef)(-1),[L,F]=(0,T.useState)(void 0),[B,R]=(0,T.useState)(!1),[O,W]=(0,T.useState)(0);N[9]!==w||N[10]!==C||N[11]!==t?(u=()=>{t&&F(((e,t)=>{if(!(0,P.Bd)()||!Array.isArray(t)||0===t.length)return;let a=tl.s.getItem(ta);if(a){let i=parseInt(a);if(Array.isArray(t)&&t.length>0){let a=t.findIndex(e=>e.tagId===i),l=t[a];if(l)return(0,d.oL)(e,l.title),{tagId:l.tagId,title:l.title,matchingAreaIndex:a};tl.s.removeItem(ta)}}let i=(0,ti.s)().reduce((e,a)=>{let i=t.findIndex(e=>e.segments.findIndex(e=>e===a)>-1),l=t[i];if(!l)return e;if(!e)return{tagId:l.tagId,matchingSegmentIndex:l.segments.findIndex(e=>e===a),title:l.title,matchingAreaIndex:i,segment:a};{let t=l.segments.findIndex(e=>e===a);return t<e.matchingSegmentIndex?{tagId:l.tagId,title:l.title,matchingSegmentIndex:t,matchingAreaIndex:i,segment:a}:e}},void 0);return i&&(0,d._E)(e,i.title,i.segment),i})(C,w))},m=[t,w,C],N[9]=w,N[10]=C,N[11]=t,N[12]=u,N[13]=m):(u=N[12],m=N[13]),(0,T.useEffect)(u,m),N[14]!==C||N[15]!==t||N[16]!==L?(f=()=>{L&&t&&(0,d.uB)(C,L.title)},p=[C,t,L],N[14]=C,N[15]=t,N[16]=L,N[17]=f,N[18]=p):(f=N[17],p=N[18]),(0,T.useEffect)(f,p),N[19]!==w||N[20]!==C?(h=e=>{let t=w[e];t&&(tl.s.setItem(ta,t.tagId.toString()),(0,d.W2)(C),R(!1),W(0),F({tagId:t.tagId,title:t.title,matchingAreaIndex:e}))},N[19]=w,N[20]=C,N[21]=h):h=N[21];let M=h;N[22]!==C||N[23]!==B||N[24]!==O||N[25]!==L?(x=()=>{L&&(0,d.vE)(C,L.title),B||R(!0),W(O+1)},N[22]=C,N[23]=B,N[24]=O,N[25]=L,N[26]=x):x=N[26];let z=x;N[27]!==C||N[28]!==L?(g=()=>{E.current||(D.current=window.setTimeout(()=>{L&&((0,d.p1)(C,L.title),E.current=!0)},ez.wg))},N[27]=C,N[28]=L,N[29]=g):g=N[29];let U=g;N[30]===Symbol.for("react.memo_cache_sentinel")?(v=()=>{window.clearTimeout(D.current)},N[30]=v):v=N[30];let K=v;N[31]!==U?(b={threshold:ez.Qp,onEnter:U,onExit:K},N[31]=U,N[32]=b):b=N[32];let{ref:G}=(0,I.W)(b);N[33]!==B||N[34]!==t||N[35]!==n||N[36]!==L?(j=t&&(null==L?void 0:L.tagId)?(0,ek.N9)(n,L.tagId,B):null,N[33]=B,N[34]=t,N[35]=n,N[36]=L,N[37]=j):j=N[37];let H=j;N[38]!==B||N[39]!==n||N[40]!==(null==L?void 0:L.tagId)?(y=()=>{var e;return(0,eA.Xw)({id:n,tag:null!=(e=null==L?void 0:L.tagId)?e:0,fetchAll:
1B})},N[38]=B,N[39]=n,N[40]=null==L?void 0:L.tagId,N[41]=y):y=N[41],N[42]===Symbol.for("react.memo_cache_sentinel")?(k={keepPreviousData:!0},N[42]=k):k=N[42];let{data:V,error:q,isLoading:$}=(0,ey.E)(H,y,k);N[43]!==V||N[44]!==S||N[45]!==O?(A=V?V.slice(0,(O+1)*S):[],N[43]=V,N[44]=S,N[45]=O,N[46]=A):A=N[46];let X=A;N[47]!==B||N[48]!==$||N[49]!==X?(_=!B&&$?[]:X,N[47]=B,N[48]=$,N[49]=X,N[50]=_):_=N[50];let J=_,Z=!!V&&(!B||V.length>(O+1)*S);if("hs"!==C)return null;{let e,l,s=null==L?void 0:L.title,o=!!q;N[51]!==a||N[52]!==G?(e=e=>{a(e),G(e)},N[51]=a,N[52]=G,N[53]=e):e=N[53];let c=!t||!L;return N[54]!==w||N[55]!==J||N[56]!==M||N[57]!==z||N[58]!==Z||N[59]!==n||N[60]!==$||N[61]!==S||N[62]!==r||N[63]!==s||N[64]!==o||N[65]!==e||N[66]!==c?(l=(0,i.jsx)(tb,{id:n,listTitle:s,handleShowMore:z,handleAreaSelect:M,itemCount:S,list:J,isLoading:$,isError:o,hasMore:Z,forwardRef:e,hidden:c,availableAreas:w,...r}),N[54]=w,N[55]=J,N[56]=M,N[57]=z,N[58]=Z,N[59]=n,N[60]=$,N[61]=S,N[62]=r,N[63]=s,N[64]=o,N[65]=e,N[66]=c,N[67]=l):l=N[67],l}},ty=e=>{let t,a=(0,l.c)(2);return a[0]!==e?(t=(0,i.jsx)(eF.t,{children:(0,i.jsx)(tk,{...e})}),a[0]=e,a[1]=t):t=a[1],t},tk=e=>{let t,a=(0,l.c)(5);a[0]===Symbol.for("react.memo_cache_sentinel")?(t={rootMargin:(0,I.c)(),triggerOnce:!0},a[0]=t):t=a[0];let{ref:n,inView:r}=(0,I.W)(t);if(!e.listSource)return null;{let t;return a[1]!==r||a[2]!==e||a[3]!==n?(t=(0,i.jsx)(tj,{...e,forwardRef:n,fetchEnabled:r}),a[1]=r,a[2]=e,a[3]=n,a[4]=t):t=a[4],t}};var tA=a(46347),t_=a(55100),tN=a(18056),tw=a(17827);let tS=()=>{let e,t=(0,l.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)("div",{className:"flex justify-center p-16",children:(0,i.jsx)(tN.y,{})}),t[0]=e):e=t[0],e},tI=e=>{let t,a,n=(0,l.c)(7),{data:r,onResultClick:s}=e;if(n[0]!==r||n[1]!==s){let e;n[3]!==s?(e=(e,t)=>(0,i.jsx)(to.C,{showTeaserAsLink:!1,listItemTeaser:!1,...(0,tc.o6)(e),onClick:s?()=>s(t+1):void 0},e.id),n[3]=s,n[4]=e):e=n[4],t=r.map(e),n[0]=r,n[1]=s,n[2]=t}else t=n[2];return n[5]!==t?(a=(0,i.jsx)(i.Fragment,{children:t}),n[5]=t,n[6]=a):a=n[6],a},tC=e=>{let t,a,n,r,s,o=(0,l.c)(20),{swrKey:c,fetcher:d,emptyState:u,query:m,onResultClick:f,onShowMore:p}=e,{pages:h,data:x,isLoading:g,isValidating:v,error:b,loadMore:j}=(0,tw.j)(c,d),y=v&&!g;o[0]!==h?(t=null==h?void 0:h.at(-1),o[0]=h,o[1]=t):t=o[1];let k=t,A=!y&&(null==k?void 0:k.length)===50,_=g?"Ladataan hakutuloksia":y?"Ladataan lis\xe4\xe4 tuloksia":b||void 0===x?"":"".concat(x.length," hakutulosta");o[2]!==x||o[3]!==u||o[4]!==b||o[5]!==y||o[6]!==g||o[7]!==j||o[8]!==f||o[9]!==p||o[10]!==m||o[11]!==A?(a=()=>b?(0,i.jsxs)("div",{role:"alert",children:["Haku ",m?'"'.concat(m,'"'):""," ep\xe4onnistui. Yrit\xe4 my\xf6hemmin uudelleen."]}):g?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tI,{data:null!=x?x:[],onResultClick:f}),(0,i.jsx)(tS,{})]}):(null==x?void 0:x.length)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tI,{data:x,onResultClick:f}),y?(0,i.jsx)(tS,{}):A&&(0,i.jsx)(tr.b,{onClick:()=>{null==p||p(),j()},showBorder:!1,title:"N\xe4yt\xe4 lis\xe4\xe4"})]}):(null==x?void 0:x.length)===0?(0,i.jsx)("div",{className:"p-nof-16",children:"Haulle ei l\xf6ytynyt tuloksia"}):null!=u?u:null,o[2]=x,o[3]=u,o[4]=b,o[5]=y,o[6]=g,o[7]=j,o[8]=f,o[9]=p,o[10]=m,o[11]=A,o[12]=a):a=o[12];let N=a;return o[13]!==_?(n=(0,i.jsx)("div",{"aria-live":"polite","aria-atomic":"true",className:"visually-hidden",children:_}),o[13]=_,o[14]=n):n=o[14],o[15]!==N?(r=N(),o[15]=N,o[16]=r):r=o[16],o[17]!==n||o[18]!==r?(s=(0,i.jsxs)(i.Fragment,{children:[n,r]}),o[17]=n,o[18]=r,o[19]=s):s=o[19],s};var tT=a(84897);let tP=(e,t)=>({category:e,tags:t}),tE=(e,t)=>({tag:e,tagName:t}),tD=[tP("Ruokalaji",[tE("arkiruoka","arkiruoka"),tE("iltapala","iltapala"),tE("pasta","pasta"),tE("keitto","keitto"),tE("salaatti","salaatti"),tE("leivonta","leivonta"),tE("alkuruoka","alkuruoka"),tE("paaruoka","p\xe4\xe4ruoka"),tE("jalkiruoka","j\xe4lkiruoka"),tE("juoma","juoma"),tE("valipala","v\xe4lipala"),tE("aamiainen","aamiainen"),tE("brunssi","brunssi"),tE("piknik","piknik"),tE("sailonta","s\xe4il\xf6nt\xe4")]),tP("Ainesosat",[tE("hedelmat","hedelm\xe4t"),tE("jauheliha","jauheliha"),tE("jogurtti","jogurtti"),tE("juures","juures"),tE("juusto","juusto"),tE("kala","kala"),tE("kana","kana"),tE("kasvis","kasvis"),tE("lammas","lammas"),tE("liha","liha"),tE("lintu","lintu"),tE("lohi","lohi"),tE("maito","maito"),tE("makkara","makkara"),tE("marjat","marjat"),tE("muna","muna"),tE("naudanliha","naudanliha"),tE("peruna","peruna"),tE("riisi","riisi"),tE("riista","riista"),tE("sianl
1iha","sianliha"),tE("sienet","sienet"),tE("suklaa","suklaa"),tE("tofu","tofu"),tE("vihannekset","vihannekset"),tE("ayriaiset","\xe4yri\xe4iset")]),tP("Ruokatyyppi",[tE("booli","booli"),tE("cocktail","cocktail"),tE("hampurilainen","hampurilainen"),tE("hillo","hillo"),tE("kakku","kakku"),tE("kastike","kastike"),tE("keitto","keitto"),tE("kiisseli","kiisseli"),tE("kylma-kastike","kylm\xe4 kastike"),tE("leipa","leip\xe4"),tE("levite","levite"),tE("lammin-kastike","l\xe4mmin kastike"),tE("makea-leivonnainen","makea leivonnainen"),tE("makea-piirakka","makea piirakka"),tE("makeinen","makeinen"),tE("mehu","mehu"),tE("munakas","munakas"),tE("pannukakku","pannukakku"),tE("nuudeli","nuudeli"),tE("pataruoka","pataruoka"),tE("piirakka","piirakka"),tE("pirtelo","pirtel\xf6"),tE("pizza","pizza"),tE("pulla","pulla"),tE("puuro","puuro"),tE("risotto","risotto"),tE("smoothie","smoothie"),tE("sose","sose"),tE("suolainen-leivonnainen","suolainen leivonnainen"),tE("suolainen-piirakka","suolainen piirakka"),tE("sailonta","s\xe4il\xf6nt\xe4"),tE("tahna","tahna"),tE("tapas","tapas"),tE("uuniruoka","uuniruoka"),tE("vanukas","vanukas")]),tP("Sesongit",[tE("grillaus","grillaus"),tE("halloween","halloween"),tE("itsenaisyyspaiva","itsen\xe4isyysp\xe4iv\xe4"),tE("joulu","joulu"),tE("juhannus","juhannus"),tE("kesajuhlat","kes\xe4juhlat"),tE("kodin-juhlat","kodin juhlat"),tE("laskiainen","laskiainen"),tE("paasiainen","p\xe4\xe4si\xe4inen"),tE("rapukausi","rapukausi"),tE("sadonkorjuu","sadonkorjuu"),tE("uusivuosi","uusivuosi"),tE("valmistujaiset","valmistujaiset"),tE("vappu","vappu"),tE("aitienpaiva","\xe4itienp\xe4iv\xe4")]),tP("Erityisruokavalio",[tE("alkoholiton","alkoholiton"),tE("gluteeniton","gluteeniton"),tE("kananmunaton","kananmunaton"),tE("kasvisruoka","kasvisruoka"),tE("kevyet","kevyet"),tE("laktoositon","laktoositon"),tE("maidoton","maidoton"),tE("raakaruoka","raakaruoka"),tE("vegaani","vegaani"),tE("vahahiilihydraattinen","v\xe4h\xe4hiilihydraattinen")]),tP("Keitti\xf6",[tE("aasialainen-ruoka","aasialainen ruoka"),tE("afrikkalainen-ruoka","afrikkalainen ruoka"),tE("amerikkalainen-ruoka","amerikkalainen ruoka"),tE("espanjalainen-ruoka","espanjalainen ruoka"),tE("intialainen-ruoka","intialainen ruoka"),tE("italialainen-ruoka","italialainen ruoka"),tE("japanilainen-ruoka","japanilainen ruoka"),tE("kiinalainen-ruoka","kiinalainen ruoka"),tE("libanonilainen-ruoka","libanonilainen ruoka"),tE("lahi-idan-ruoka","l\xe4hi-id\xe4n ruoka"),tE("marokkolainen-ruoka","marokkolainen ruoka"),tE("meksikolainen-ruoka","meksikolainen ruoka"),tE("nepalilainen-ruoka","nepalilainen ruoka"),tE("ranskalainen-ruoka","ranskalainen ruoka"),tE("suomalainen-ruoka","suomalainen ruoka"),tE("thaimaalainen-ruoka","thaimaalainen ruoka"),tE("venalainen-ruoka","ven\xe4l\xe4inen ruoka"),tE("vietnamilainen-ruoka","vietnamilainen ruoka"),tE("valimerellinen-ruoka","v\xe4limerellinen ruoka")])],tL=()=>tD.map(e=>e.category),tF=e=>{var t;let a=null==(t=tD.find(t=>t.category===e))?void 0:t.tags;return a||[]},tB=e=>{if(!e)return"";for(let t of tD)if(t.tags.some(t=>t.tag===e))return t.category;return""},tR=e=>Object.values(e).filter(e=>void 0!==e),tO=async(e,t,a)=>{let i=tR(t),l=(0,tT._b)({query:null!=e?e:"",tag:i});await a.push("/ruokala/reseptit/?".concat(l))},tW=e=>{let t,a,n,r,s,o,c=(0,l.c)(12),{query:d,selectedTagPerCategory:u}=e;c[0]!==u?(t=tR(u),c[0]=u,c[1]=t):t=c[1];let m=t;return d?(c[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsx)("div",{className:"mx-nof-16 nof-component-list-heading-s sm:nof-component-list-heading-l py-nof-16 text-(--list-heading-text-color)",children:"Hakutulokset"}),n=(0,i.jsx)(b.c,{}),c[2]=a,c[3]=n):(a=c[2],n=c[3]),c[4]!==d||c[5]!==m?(r=["recipe-search",d,"reseptit",m],s=e=>(0,eA.DW)({query:d,start:50*e,pageSize:50,category:"reseptit",keywords:m}),c[4]=d,c[5]=m,c[6]=r,c[7]=s):(r=c[6],s=c[7]),c[8]!==d||c[9]!==r||c[10]!==s?(o=(0,i.jsxs)("div",{className:"recipe-search-results",children:[a,n,(0,i.jsx)("div",{className:"text-nof-foreground-primary",children:(0,i.jsx)(tC,{query:d,swrKey:r,fetcher:s})})]}),c[8]=d,c[9]=r,c[10]=s,c[11]=o):o=c[11],o):null},tM=()=>{let e,t,a,n,r,s=(0,l.c)(38),o=(0,ep.useRouter)(),[c,d]=(0,T.useState)("");if(s[0]!==o.query.tag){var u;e=("string"==typeof(u=o.query.tag)?[u]:Array.isArray(u)?u:[]).reduce((e,t)=>
1{let a=tB(t);return a&&(e[a]=t),e},{}),s[0]=o.query.tag,s[1]=e}else e=s[1];let[m,f]=(0,T.useState)(e),p=(0,T.useRef)(null);s[2]!==o||s[3]!==m?(t=async e=>{let t;e.preventDefault(),e.stopPropagation();let{query:a}={query:"string"==typeof(t=new FormData(e.currentTarget).get("query"))?t:null};a&&await tO(a,m,o)},s[2]=o,s[3]=m,s[4]=t):t=s[4];let h=t,x="string"==typeof o.query.query?o.query.query:void 0;if(s[5]!==h||s[6]!==c||s[7]!==x||s[8]!==o||s[9]!==m){let e,t,l,n,r,u=tL(),g=tF(c);if(s[11]!==h||s[12]!==x||s[13]!==o||s[14]!==m){let a,c,d,u,g,v=(g=tR(m),Object.values(tL().flatMap(e=>tF(e)).reduce((e,t)=>(g.includes(t.tag)&&(e[t.tag]=t),e),{})));s[20]!==x||s[21]!==o||s[22]!==m?(a=async(e,t)=>{let a=tB(e),i=m[a],l={...m,[a]:t||i===e?void 0:e};f(l),await tO(x,l,o)},s[20]=x,s[21]=o,s[22]=m,s[23]=a):a=s[23],e=a,s[24]!==m?(c=e=>tR(m).includes(e),s[24]=m,s[25]=c):c=s[25],t=c,l="recipe-search width-full",s[26]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{var e;return null==(e=p.current)?void 0:e.requestSubmit()},s[26]=d):d=s[26],s[27]!==x?(u=(0,i.jsx)(t_.I,{id:"recipe-search",label:"Hae reseptej\xe4",labelVisible:!0,placeholder:"Kirjoita hakusana",onSearch:d,name:"query",initialValue:x}),s[27]=x,s[28]=u):u=s[28],s[29]!==h||s[30]!==u?(n=(0,i.jsx)("search",{children:(0,i.jsx)("form",{ref:p,onSubmit:h,children:u})}),s[29]=h,s[30]=u,s[31]=n):n=s[31],r=v.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"recipe-search__tags",children:v.map((t,a)=>(0,i.jsx)(tA.v,{onClick:()=>e(t.tag,!0),text:{selected:t.tagName,unselected:t.tagName},variant:tA.Q.FunctionChip,icons:{selectedIcon:(0,i.jsx)(J.U,{}),unselectedIcon:(0,i.jsx)(J.U,{})},selected:!0},"".concat(t.tagName,"-").concat(a)))}),(0,i.jsx)(b.c,{})]}),s[11]=h,s[12]=x,s[13]=o,s[14]=m,s[15]=e,s[16]=t,s[17]=l,s[18]=n,s[19]=r}else e=s[15],t=s[16],l=s[17],n=s[18],r=s[19];a=(0,i.jsxs)("div",{className:l,children:[n,r,u.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"recipe-search__tags",children:u.map((e,t)=>(0,i.jsx)(tA.v,{onClick:()=>{e===c?d(""):d(e)},text:{selected:e,unselected:e},variant:tA.Q.FunctionChip,selected:e===c},"".concat(e,"-").concat(t)))}),(0,i.jsx)(b.c,{})]}),g.length>0&&(0,i.jsx)("div",{className:"recipe-search__tags",children:g.map((a,l)=>{let{tag:n,tagName:r}=a;return(0,i.jsx)(tA.v,{onClick:()=>e(n),text:{selected:r,unselected:r},variant:tA.Q.FunctionChip,selected:t(n)},"".concat(n,"-").concat(l))})})]}),s[5]=h,s[6]=c,s[7]=x,s[8]=o,s[9]=m,s[10]=a}else a=s[10];let g=null!=x?x:"";return s[32]!==m||s[33]!==g?(n=(0,i.jsx)(tW,{query:g,selectedTagPerCategory:m}),s[32]=m,s[33]=g,s[34]=n):n=s[34],s[35]!==a||s[36]!==n?(r=(0,i.jsxs)(i.Fragment,{children:[a,n]}),s[35]=a,s[36]=n,s[37]=r):r=s[37],r};var tz=a(1628);let tU=()=>{let e,t,a,n,r,s,o,c,u,m,f,p,h,x,g,v=(0,l.c)(38),{query:b}=(0,ep.useRouter)();if(v[0]!==b){var j;let{query:i,category:l,period:d,order:m,startDate:f,endDate:p,method:h,tags:x}=null!=(j=tz.Y.safeParse(b).data)?j:{};e=l,r=d,n=m,o=f,t=p,a=h,u=x,c=(s=void 0===i?"":i).trim(),v[0]=b,v[1]=e,v[2]=t,v[3]=a,v[4]=n,v[5]=r,v[6]=s,v[7]=o,v[8]=c,v[9]=u}else e=v[1],t=v[2],a=v[3],n=v[4],r=v[5],s=v[6],o=v[7],c=v[8],u=v[9];let y=c,k=y.length>0;return v[10]===Symbol.for("react.memo_cache_sentinel")?(m=(0,i.jsx)("h2",{className:"mx-nof-16 nof-component-list-heading-s border-divider-3 py-nof-16 border-b text-(--list-heading-text-color) [text-transform:var(--list-heading-text-transform)]",children:"Hakutulokset"}),v[10]=m):m=v[10],v[11]!==e||v[12]!==k||v[13]!==t||v[14]!==a||v[15]!==n||v[16]!==r||v[17]!==s||v[18]!==o||v[19]!==u?(f=k?["search",s,e,r,n,o,t,a,u]:null,v[11]=e,v[12]=k,v[13]=t,v[14]=a,v[15]=n,v[16]=r,v[17]=s,v[18]=o,v[19]=u,v[20]=f):f=v[20],v[21]!==e||v[22]!==t||v[23]!==a||v[24]!==n||v[25]!==r||v[26]!==s||v[27]!==o||v[28]!==u?(p=i=>(0,eA.DW)({query:s,start:50*i,pageSize:50,category:e,period:r,order:n,startDate:o,endDate:t,method:a,tag:u}),v[21]=e,v[22]=t,v[23]=a,v[24]=n,v[25]=r,v[26]=s,v[27]=o,v[28]=u,v[29]=p):p=v[29],v[30]!==y?(h=e=>{(0,d.pH)("search_result_selected",y,String(e))},v[30]=y,v[31]=h):h=v[31],v[32]===Symbol.for("react.memo_cache_sentinel")?(x=(0,i.jsx)("div",{className:"mb-nof-16 p-nof-16",children:'Kirjoita hakukentt\xe4\xe4n haluamasi hakusana tai -sanat. Jos sanoja on useita, t\xe4smenn\xe4 hakua sitaatein (esim. "presidentti Sauli Niinist\xf6").'}),v[32]=x):x=v[32],v[33]!==s||v[34]!==f||v[35]!==p||v[36]!==h?(g=(0,i.jsxs)("section",{className:"bg-nof-background-content-default mb-nof-16 w-full",children:[m,(0,i.jsx)("div",{className:"text-nof-foreground-primary",children:(0,i.jsx)(tC,{query:s,swrKey:f,fetcher:p,onResultClick:h,onShowMore:tK,emptyState:x})})]}),v[33]=s,v[34]=f,v[35]=p,v[36]=h,v[37]=g):g=v[37],g};function tK(){(0,d.pH)("search_show_more")}var tG=a(41610),tH=a(2132),tV=a(27158);let tq=e=>{let t=(0,l.c)(8),{getPersonalizableTicker:a}=(0,eO.B)(),{assetData:n}=(0,eb._)(),{firstTeaserAssetId:r}=(0,ej.p)();if((null==n?void 0:n.id)===e.id||r===e.id)return null;let s=e.personalizationMode;
1if(s&&(0,P.Bd)()){let l,n;t[0]!==a||t[1]!==s||t[2]!==e?(l=a(s,e),t[0]=a,t[1]=s,t[2]=e,t[3]=l):l=t[3];let r=l;return t[4]!==r?(n=(0,i.jsx)(t$,{...r}),t[4]=r,t[5]=n):n=t[5],n}{let a;return t[6]!==e?(a=(0,i.jsx)(t$,{...e}),t[6]=e,t[7]=a):a=t[7],a}},t$=e=>{var t;let a,n,s,c,m,f,p,h,x=(0,l.c)(28),g=(0,o.No)(e),{ref:v,registerClickImpression:b}=(0,o.Ly)(g),{assetData:j}=(0,eb._)(),{handleBrazeCustomEvent:y}=(0,U.ml)(),{id:k,title:A,theme:_,url:N,storyLogo:w,titleLabel:S}=e;if(!A)return null;x[0]!==(null==j?void 0:j.id)||x[1]!==y||x[2]!==b||x[3]!==_?(a=()=>{(0,d.XE)("ticker",_),b(),_.includes("promo")&&y({type:tH.l.ClickedSubscribe,payload:{story_id:String(null==j?void 0:j.id),purchase_funnel_type:tH.y.PromoTicker}})},x[0]=null==j?void 0:j.id,x[1]=y,x[2]=b,x[3]=_,x[4]=a):a=x[4];let I=a,C=tY[_];if(!C)return null;let T=null!=(t=tZ[_])?t:tZ.default;return x[5]!==C?(n=r()("ticker mb-nof-2 py-nof-12 px-nof-16 md:py-nof-16",C),x[5]=C,x[6]=n):n=x[6],x[7]!==w||x[8]!==T?(s=w&&(0,i.jsx)("span",{className:r()("font-(--ticker-storylogo-font-weight)",T),children:w+": "}),x[7]=w,x[8]=T,x[9]=s):s=x[9],x[10]!==S?(c=S&&(0,i.jsx)(tV.B5,{...S}),x[10]=S,x[11]=c):c=x[11],x[12]!==A?(m=(0,i.jsx)("span",{children:A}),x[12]=A,x[13]=m):m=x[13],x[14]!==s||x[15]!==c||x[16]!==m?(f=(0,i.jsxs)("h2",{className:"ticker__title",children:[s,c,m]}),x[14]=s,x[15]=c,x[16]=m,x[17]=f):f=x[17],x[18]!==k||x[19]!==n||x[20]!==f||x[21]!==_?(p=(0,i.jsx)("article",{"data-ab":_,"data-id":k,className:n,children:f}),x[18]=k,x[19]=n,x[20]=f,x[21]=_,x[22]=p):p=x[22],x[23]!==v||x[24]!==I||x[25]!==p||x[26]!==N?(h=(0,i.jsx)(u.N,{href:N,forwardRef:v,onClick:I,children:p}),x[23]=v,x[24]=I,x[25]=p,x[26]=N,x[27]=h):h=x[27],h},tX="font-(family-name:--ticker-20-font-family) text-(length:--ticker-20-font-size) font-(number:--ticker-20-font-weight) leading-(--ticker-20-line-height) tracking-(--ticker-20-letter-spacing) md:text-(length:--ticker-20-font-size-desktop)",tJ="font-(family-name:--ticker-font-family) text-(length:--ticker-font-size) font-(number:--ticker-font-weight) leading-(--ticker-line-height) tracking-(--ticker-letter-spacing) md:text-(length:--ticker-font-size-desktop)",tZ={"ticker-10":"text-(--ticker-10-storylogo-fg-color) font-(number:--ticker-10-storylogo-font-weight) [text-transform:var(--ticker-10-storylogo-text-transform)]","ticker-20":"font-(number:--ticker-20-storylogo-font-weight) [text-transform:var(--ticker-20-storylogo-text-transform)]","ticker-20-paid":"font-(number:--ticker-20-paid-storylogo-font-weight) [text-transform:var(--ticker-20-paid-storylogo-text-transform)]",default:"[text-transform:var(--ticker-storylogo-text-transform)]"},tY={"ticker-10":r()("font-(family-name:--ticker-10-font-family) text-(length:--ticker-10-font-size) font-(number:--ticker-10-font-weight) leading-(--ticker-10-line-height) tracking-(--ticker-10-letter-spacing) md:text-(length:--ticker-10-font-size-desktop)","bg-(--ticker-10-bg-color) text-(--ticker-10-fg-color)"),"ticker-20":r()(tX,"bg-(--ticker-20-bg-color) text-(--ticker-20-fg-color)"),"ticker-20-paid":r()(tX,"bg-(--ticker-20-paid-bg-color) text-(--ticker-20-paid-fg-color)"),"ticker-promo-10":r()(tJ,"bg-(--ticker-promo-10-bg-color) text-(--ticker-promo-10-fg-color)"),"ticker-promo-20":r()(tJ,"bg-(--ticker-promo-20-bg-color) text-(--ticker-promo-20-fg-color)"),"ticker-promo-30":r()(tJ,"bg-(--ticker-promo-30-bg-color) text-(--ticker-promo-30-fg-color)"),"ticker-promo-40":r()(tJ,"bg-(--ticker-promo-40-bg-color) text-(--ticker-promo-40-fg-color)")};var tQ=a(64883),t0=a(82722);let t1=e=>{let t,a,n,r=(0,l.c)(7),{tagId:s,tagNodeTitle:o}=e;r[0]!==s?(t=(0,tQ.gf)(s),r[0]=s,r[1]=t):t=r[1],r[2]!==s?(a=()=>(0,eA.bH)(s),r[2]=s,r[3]=a):a=r[3];let{data:c}=(0,ey.E)(t,a);return r[4]!==c||r[5]!==o?(n=(0,i.jsx)(t2,{tag:c,tagNodeTitle:o}),r[4]=c,r[5]=o,r[6]=n):n=r[6],n},t2=e=>{let t,a,n,r=(0,l.c)(7),{tag:s,tagNodeTitle:o}=e,c=s?s.title:o;return r[0]!==c?(t=(0,i.jsx)(Z.$,{className:"tag-heading p-nof-16",title:c,level:"h2"}),r[0]=c,r[1]=t):t=r[1],r[2]!==s?(a=s&&(0,i.jsx)("div",{className:"tag-subheader-follow-tag-button-container",children:(0,i.jsx)(t0.K,{tag:s})}),r[2]=s,r[3]=a):a=r[3],r[4]!==t||r[5]!==a?(n=(0,i.jsx)("div",{className:"tag-subheader-container",children:(0,i.jsxs)("div",{className:"tag-subheader-content",children:[t,a]})}),r[4]=t,r[5]=a,r[6]=n):n=r[6],n},t3=e=>{let t,a=(0,l.c)(2),{title:n}=e;return a[0]!==n?(t=(0,i.jsx)("div",{className:"border-divider-1 mb-nof-16 flex justify-center border-b lg:justify-start",children:(0,i.jsx)("div",{className:"bg-nof-background-content-default lg:w-wide w-main max-w-screen",children:(0,i.jsx)(Z.$,{className:"section__headline--large text-brand-1 p-nof-16",title:n,level:"h2"})})}),a[0]=n,a[1]=t):t=a[1],t},t4=e=>{let t=(0,l.c)(5),{title:a}=e,{nodeType:n,nodeId:r}=(0,ej.p)();switch(n){case"normal":{let e;return t[0]!==a?(e=(0,i.jsx)(t3,{title:a}),t[0]=a,t[1]=e):e=t[1],e}case"tag":{let e;return t[2]!==r||t[3]!==a?(e=(0,i.jsx)(t1,{tagId:r,tagNodeTitle:a},r),t[2]=r,t[3]=a,t[4]=e):e=t[4],e}default:return null}},t6=e=>{let t=(0,l.c)(7),{title:a}=e;if(!a)return null;{let e,l,n;return t[0]!==a?(e=a.replace(/ /g,"").toLowerCase(),t[0]=a,t[1]=e):e=t[1],t[2]!==a?(l=(0,i.jsx)(Z.$,{className:"section-heading-20 edition-subheader__title-color p-16",title:a,level:"h3"}),t[2]=a,t[3]=l):l=t[3],t[4]!==e||t[5]!==l?(n=(0,i.jsx)("div",{id:e,children:l}),t[4]=e,t[5]=l,t[6]=n):n=t[6],n}};var t5=a(83700);let t7=/\d{1,2}\.\d{1,2}\.\d{4}\s*$/,t8=e=>{let t,a,n,r,s,o=(0,l.c)(11);return o[0]!==e.title?(t=e.title?e.title.replace(t7,""):"",o[0]=e.title,o[1]=t):t=o[1],o[2]!==t?(a=(0,i.jsx)(Z.$,{className:"section__headline--large edition-subheader__title-color edition-subheader__headline",title:t,level:"h2"}),o[2]=t,o[3]=a):a=o[3],o[4]!==e.nodeStartDate?(n=e.nodeStartDate?(0,t5.s3)(new Date(e.nodeStartDate)):"",o[4]=e.nodeStartDate,o[5
1]=n):n=o[5],o[6]!==n?(r=(0,i.jsx)("div",{className:"nof-ui-body-medium edition-subheader__date",children:n}),o[6]=n,o[7]=r):r=o[7],o[8]!==a||o[9]!==r?(s=(0,i.jsx)("div",{className:"edition-subheader text-nof-foreground-primary",children:(0,i.jsxs)("div",{className:"edition-subheader__inner",children:[a,r]})}),o[8]=a,o[9]=r,o[10]=s):s=o[10],s},t9=e=>{let t=(0,l.c)(2),{title:a}=e,{isPersonalFrontPage:n}=(0,eO.B)();if(n)return null;{let e;return t[0]!==a?(e=(0,i.jsx)(t4,{title:a}),t[0]=a,t[1]=e):e=t[1],e}},ae=e=>{let t=(0,l.c)(10);switch(e.theme){case"edition":{let a;return t[0]!==e?(a=(0,i.jsx)(t8,{...e}),t[0]=e,t[1]=a):a=t[1],a}case"edition_section":{let a;return t[2]!==e?(a=(0,i.jsx)(t6,{...e}),t[2]=e,t[3]=a):a=t[3],a}case"SubHeader":{let a;return t[4]!==e?(a=(0,i.jsx)(t4,{...e}),t[4]=e,t[5]=a):a=t[5],a}case"ISSubHeader":{let a;return t[6]!==e.title?(a=(0,i.jsx)(eo.Y,{children:(0,i.jsx)(t9,{title:e.title})}),t[6]=e.title,t[7]=a):a=t[7],a}case"HSSubHeader":{let a;return t[8]!==e?(a=(0,i.jsx)(t4,{...e}),t[8]=e,t[9]=a):a=t[9],a}default:return null}};var at=a(14400),aa=a(41362),ai=a(4797),al=a(66108),an=a(21155),ar=a(18847),as=a.n(ar),ao=a(23453),ac=a(23641);let ad=e=>{let t,a,n=(0,l.c)(7),{getBanner:r}=(0,U.ml)();n[0]!==r||n[1]!==e.placement?(t=r(e.placement),n[0]=r,n[1]=e.placement,n[2]=t):t=n[2];let s=t;return n[3]!==s||n[4]!==e.id||n[5]!==e.placement?(a=(0,i.jsx)(ac.R,{banner:s,placement:e.placement,className:"mb-nof-16"},e.id),n[3]=s,n[4]=e.id,n[5]=e.placement,n[6]=a):a=n[6],a};var au=a(51773),am=a(2340);let af=e=>{let t,a,n,r=(0,l.c)(8),{laneItem:s}=e,o="laneitem-".concat(s.id);return r[0]!==s.vignette?(t=(0,i.jsx)(am.f,{vignette:s.vignette}),r[0]=s.vignette,r[1]=t):t=r[1],r[2]!==s.items?(a=s.items.map(ap),r[2]=s.items,r[3]=a):a=r[3],r[4]!==o||r[5]!==t||r[6]!==a?(n=(0,i.jsxs)("div",{className:"group-lane-item bg-nof-background-content-default mb-nof-16 border-b-nof-neutral-contrast-low border-b","data-testid":o,children:[t,a]}),r[4]=o,r[5]=t,r[6]=a,r[7]=n):n=r[7],n};function ap(e){return(0,i.jsx)(az,{laneItem:e},e.id)}var ah=a(10671),ax=a(23191),ag=a(59404),av=a(23305);let ab=e=>{let t=e.replace("preview-","");return"".concat("https://api".concat("prod"===t?"":"-"+t,".sanoma-sndp.fi"),"/newsletters/v1")},aj=async(e,t,a)=>{try{let i=await (0,av.Cr)({url:"".concat(ab(e),"/subscribe/"),requestOptions:{method:"post",body:JSON.stringify(t)},getValidSessionToken:a});if("Subscribed"===i.message)return(0,d.ps)("subscribe"),ag.n.Success;return(0,d.ps)("error"),ag.n.Failure}catch(e){return(0,d.ps)("error"),ag.n.Failure}},ay=async(e,t,a)=>{try{let i=await (0,av.Cr)({url:"".concat(ab(e),"/unsubscribe/"),requestOptions:{method:"post",body:JSON.stringify(t)},getValidSessionToken:a});if("Unsubscribed"===i.message)return(0,d.ps)("unsubscribe"),ag.n.Success;return(0,d.ps)("error"),ag.n.Failure}catch(e){return(0,d.ps)("error"),ag.n.Failure}};var ak=a(29113);let aA=e=>{let t,a=(0,l.c)(4),{fragmentId:n,children:s}=e,o=n?"#".concat(n):void 0;return a[0]!==s||a[1]!==n||a[2]!==o?(t=n?(0,i.jsx)("a",{className:r()("fragment-anchor"),href:o,children:s}):(0,i.jsx)(i.Fragment,{children:s}),a[0]=s,a[1]=n,a[2]=o,a[3]=t):t=a[3],t},a_=e=>{let t,a,n,r=(0,l.c)(6),{title:s,fragmentId:o}=e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)(ak.m,{size:64,className:"mb-nof-16"}),r[0]=t):t=r[0],r[1]!==s?(a=(0,i.jsx)("div",{className:"nof-ui-title-large mb-nof-16",children:s}),r[1]=s,r[2]=a):a=r[2],r[3]!==o||r[4]!==a?(n=(0,i.jsxs)(i.Fragment,{children:[t,(0,i.jsx)(aA,{fragmentId:o,children:a})]}),r[3]=o,r[4]=a,r[5]=n):n=r[5],n},aN=e=>{let t,a,n,s,o,c,u,m,f,p,h,x,g,v,b=(0,l.c)(50),{title:j,text:y,id:k,email:A,fragmentId:_,forwardRef:N,error:w,setResponse:S,isNewsletterNodePage:I}=e,{environment:C}=(0,ax.U)(),{getValidSessionToken:P}=(0,Y.sb)(),{handleBrazeCustomEvent:E}=(0,U.ml)(),{subscriptionGroupIds:D,isStatusLoading:L,mutate:F}=((e,t,a)=>{let i,n,r,s,o,c=(0,l.c)(13);c[0]!==a?(i=async e=>{try{return(await (0,av.Cr)({url:e,requestOptions:{method:"get"},getValidSessionToken:a})).message.split(",")}catch(e){return console.error("Failed to fetch users newsletter status"),[]}},c[0]=a,c[1]=i):i=c[1];let d=i;c[2]!==e||c[3]!==t?(n=t?"".concat(ab(e),"/status/"):null,c[2]=e,c[3]=t,c[4]=n):n=c[4],c[5]!==d?(r=e=>d(e),c[5]=d,c[6]=r):r=c[6];let{data:u,isLoading:m,mutate:f}=(0,ey.E)(n,r);
1return c[7]!==u?(s=null!=u?u:[],c[7]=u,c[8]=s):s=c[8],c[9]!==m||c[10]!==f||c[11]!==s?(o={subscriptionGroupIds:s,isStatusLoading:m,mutate:f},c[9]=m,c[10]=f,c[11]=s,c[12]=o):o=c[12],o})(C,I,P),{assetData:B}=(0,eb._)();b[0]!==D?(t=e=>[...D.filter(aw),e],b[0]=D,b[1]=t):t=b[1];let R=t;b[2]!==D?(a=e=>D.filter(t=>t!==e),b[2]=D,b[3]=a):a=b[3];let O=a,[W,M]=(0,T.useTransition)();b[4]!==k||b[5]!==D?(n=D.includes(k),b[4]=k,b[5]=D,b[6]=n):n=b[6];let z=n,K=z?"Tilattu osoitteeseen":"Tilaa osoitteeseen";b[7]!==k?(s={subscriptionGroupId:k},b[7]=k,b[8]=s):s=b[8];let G=s;if(b[9]!==R||b[10]!==B||b[11]!==G||b[12]!==C||b[13]!==P||b[14]!==E||b[15]!==k||b[16]!==F||b[17]!==O||b[18]!==S||b[19]!==j){c=t=>{e(t)},o=()=>{e(!0)};let e=e=>{S({status:ag.n.Loading}),M(async()=>{let t=e?await aj(C,G,P):await ay(C,G,P);t===ag.n.Success&&await F(()=>e?R(k):O(k),{revalidate:!1}),M(()=>{(S({status:t,data:null}),t===ag.n.Success)&&((0,d.ps)(e?"subscription done":"unsubscription done"),E({type:e?tH.l.ClickedNewsletterSubscription:tH.l.ClickedNewsletterUnsubscription,payload:{newsletterName:j,newsletterId:k,storyId:null==B?void 0:B.id.toString(),tags:(null==B?void 0:B.resourceType)==="Article"&&B.tags?B.tags.map(e=>e.key):void 0}}))})})};b[9]=R,b[10]=B,b[11]=G,b[12]=C,b[13]=P,b[14]=E,b[15]=k,b[16]=F,b[17]=O,b[18]=S,b[19]=j,b[20]=o,b[21]=c}else o=b[20],c=b[21];return b[22]!==_||b[23]!==j?(u=(0,i.jsx)(a_,{title:j,fragmentId:_}),b[22]=_,b[23]=j,b[24]=u):u=b[24],b[25]!==y?(m=(0,i.jsx)("div",{className:"mb-nof-16",children:y}),b[25]=y,b[26]=m):m=b[26],b[27]!==A||b[28]!==K?(f=(0,i.jsxs)("div",{className:"newsletter-form__email mb-nof-16",children:[K," ",A]}),b[27]=A,b[28]=K,b[29]=f):f=b[29],b[30]!==o||b[31]!==c||b[32]!==W||b[33]!==I||b[34]!==L||b[35]!==z?(p=(0,i.jsx)("div",{className:"flex justify-center",children:I?(0,i.jsxs)("div",{className:"newsletter-form__switch",children:[(W||L)&&(0,i.jsx)(tN.y,{}),!L&&(0,i.jsx)("div",{className:r()({"sr-only":W}),children:(0,i.jsx)(ah.d,{id:"newsletter",label:"Uutiskirjeen tilaus",checked:z,onCheckedChange:c})})]}):(0,i.jsx)(X.$n,{label:"Tilaa uutiskirje",variant:X.KT.Primary,onClick:o,loading:W,loadingLabel:"Tilataan..."})}),b[30]=o,b[31]=c,b[32]=W,b[33]=I,b[34]=L,b[35]=z,b[36]=p):p=b[36],b[37]!==w?(h=w&&(0,i.jsx)("div",{className:"newsletter-form__error mt-nof-16",children:"Tapahtui virhe. P\xe4ivit\xe4 sivu ja yrit\xe4 uudelleen."}),b[37]=w,b[38]=h):h=b[38],b[39]!==m||b[40]!==f||b[41]!==p||b[42]!==h?(x=(0,i.jsxs)("div",{className:"nof-ui-body-medium",children:[m,f,p,h]}),b[39]=m,b[40]=f,b[41]=p,b[42]=h,b[43]=x):x=b[43],b[44]!==x||b[45]!==u?(g=(0,i.jsxs)("div",{className:"newsletter",children:[u,x]}),b[44]=x,b[45]=u,b[46]=g):g=b[46],b[47]!==N||b[48]!==g?(v=(0,i.jsx)("div",{ref:N,className:"newsletter-container mb-nof-16",children:g}),b[47]=N,b[48]=g,b[49]=v):v=b[49],v};function aw(e){return""!==e}var aS=a(45579);let aI=()=>{let e,t,a=(0,l.c)(2);return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(a_,{title:"Kiitos!"}),a[0]=e):e=a[0],a[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)(eF.t,{children:(0,i.jsx)("div",{className:"newsletter-container mb-nof-16",children:(0,i.jsxs)("div",{className:"newsletter",children:[e,(0,i.jsxs)("div",{className:"nof-ui-body-medium",children:[(0,i.jsx)("div",{className:"mb-nof-16",children:"Olemme vastaanottaneet uutiskirjetilauksesi. Voit peruttaa tilauksesi uutiskirjeen lopussa olevasta linkist\xe4 tai alla olevasta linkist\xe4."}),(0,i.jsx)(aS.b,{text:"Peruuta uutiskirje t\xe4\xe4lt\xe4",href:"/uutiskirje",external:!1})]})]})})}),a[1]=t):t=a[1],t};var aC=a(18858),aT=a(74730),aP=a(68684);let aE=e=>{let t,a,n,r,s,o,c,u,m,f,p,h,x,g=(0,l.c)(37),{title:v,fragmentId:b,forwardRef:j}=e,y=(0,tt.P)(),{environment:k}=(0,ax.U)(),A=(0,aC.R7)();g[0]!==y||g[1]!==A?(t=(0,P.Bd)()?(0,aT.ZX)(y,A):"",g[0]=y,g[1]=A,g[2]=t):t=g[2];let _=t;g[3]!==y||g[4]!==A?(a=(0,P.Bd)()?(0,aT.Ln)(y,A):"",g[3]=y,g[4]=A,g[5]=a):a=g[5];let N=a,{useInkAuth:w}=(0,S.g$)();g[6]!==y||g[7]!==k||g[8]!==w?(n=e=>{(0,d.ps)("login started"),(0,aP.Cw)(y,k),(0,aP.wm)(w,e)},g[6]=y,g[7]=k,g[8]=w,g[9]=n):n=g[9];let I=n;g[10]!==y||g[11]!==k||g[12]!==w?(r=e=>{(0,d.ps)("registration started"),(0,aP.Cw)(y,k),(0,aP.s1)(w,e)},g[10]=y,g[11]=k,g[12]=w,g[13]=r):r=g[13];let C=r;return g[14]!==b||g[15]!==v?(s=(0,i.jsx)(a_,{title:v,fragmentId:b}),g[14]=b,g[15]=v,g[16]=s):s=g[16],g[17]===Symbol.for("react.memo_cache_sentinel")?(o=(0,i.jsx)("div",{className:"mb-nof-16",children:"Kirjaudu Sanoma-tilill\xe4 tilataksesi uutiskirjeen. Jos sinulla ei viel\xe4 ole Sanoma-tili\xe4, voit helposti luoda uuden."}),g[17]=o):o=g[17],g[18]!==_?(c={href:_},g[18]=_,g[19]=c):c=g[19],g[20]!==I||g[21]!==c?(u=(0,i.jsx)("div",{className:"mb-nof-16",children:(0,i.jsx)(X.z9,{label:"Kirjaudu",variant:X.KT.Primary,onClick:I,link:c})}),g[20]=I,g[21]=c,g[22]=u):u=g[22],g[23]!==N?(m={href:N},g[23]=N,g[24]=m):m=g[24],g[25]!==C||g[26]!==m?(f=(0,i.jsx)(X.z9,{label:"Luo tili",variant:X.KT.Secondary,onClick:C,link:m}),g[25]=C,g[26]=m,g[27]=f):f=g[27],g[28]!==f||g[29]!==u?(p=(0,i.jsxs)("div",{className:"nof-ui-body-medium",children:[o,(0,i.jsxs)("div",{className:"flex flex-col items-center",children:[u,f]})]}),g[28]=f,g[29]=u,g[30]=p):p=g[30],g[31]!==p||g[32]!==s?(h=(0,i.jsxs)("div",{className:"newsletter",children:[s,p]}),g[31]=p,g[32]=s,g[33]=h):h=g[33],g[34]!==j||g[35]!==h?(x=(0,i.jsx)("div",{ref:j,className:"newsletter-container mb-nof-16",children:h}),g[34]=j,g[35]=h,g[36]=x):x=g[36],x},aD=e=>{let t,a,n,r,s=(0,l.c)(9),{title:o,fragmentId:c,forwardRef:d}=e;return s[0]!==c||s[1]!==o?(t=(0,i.jsx)(a_,{title:o,fragmentId:c}),s[0]=c,s[1]=o,s[2]=t):t=s[2],s[3]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsx)("div",{className:"nof-ui-body-medium",children:"T\xe4m\xe4 toiminto ei ole k\xe4ytett\xe4viss\xe4 organisaatio- ja oppilaitosk\xe4ytt\xe4jill\xe4."}),s[3]=a):a=s[3],s[4]!==t?(n=(0,i.jsxs)("div",{className:"newsletter",children:[t,a]}),s[4]=t,s[5]=n):n=s[5],s[6]!==d||s[7]!==n?(r=(0,i.jsx)("div",{ref:d,className:"newsletter-container mb-nof-16",children:n}),s[6]=d,s[7]=n,s[8]=r):r=s[8],r};var aL=a(76507);let aF=e=>{let{newsletterSubscriptionTitle:t,newsletterSubscriptionText:a,newsletterSubscriptionId:l,newsletterSubscriptionFragment:n}=e,{userProfile:r}=(0,Y.sb)(),[s,o]=(0,T.useState)({status:ag.n.NotAsked}),{nodeUrl:c}=(0,ej.p)(),u="/uutiskirje/"===c,m=(0,T.useRef)(null),{ref:f}=(0,I.W)({triggerOnce:!0,skip:u,onEnter:()=>{(0,d.ps)("subscription popup shown")}}),{ref:p,inView:h}=(0,I.W)({root:m.current,rootMargin:(0,I.c)(),triggerOnce:!0});(0,aL.P)(h);let x=(0,T.useCallback)(e=>{f(e),p(e)},[f,p]),g=n?"".concat(n,"-uutiskirje"):void 0;return r.authenticationStatus===Q.J.Unauthenticated?(0,i.jsx)(aB,{id:g,ref:m,children:(0,i.jsx)(aE,{title:t,fragmentId:g,forwardRef:x})}):r.authenticationStatus===Q.J.Authenticated?u||s.status!==ag.n.Success?(0,i.jsx)(aB,{id:g,ref:m,children:r.email?(0,i.jsx)(aN,{title:t,text:a,id:l,fragmentId:g,forwardRef:x,error:s.status===ag.n.Failure,setResponse:o,email:r.email,isNewsletterNodePage:u}):(0,i.jsx)(aD,{title:t,fragmentId:g,forwardRef:x})}):(0,i.jsx)(aB,{id:g,ref:m,children:(0,i.jsx)(aI,{})}):null},aB=e=>{let t,a=(0,l.c)(4),{id:n,ref:r,children:s}=e;return a[0]!==s||a[1]!==n||a[2]!==r?(t=(0,i.jsx)(eo.Y,{children:(0,i.jsx)("div",{id:n,"data-testid":n,ref:r,children:s})}),a[0]=s,a[1]=n,a[2]=r,a[3]=t):t=a[3],t};var aR=a(34950),aO=a(68108);let aW=as()(()=>a.e(3646).then(a.bind(a,73646)),{loadableGenerated:{webpack:()=>[73646]},ssr:!1,...(0,ao.d)()}),aM=as()(()=>Promise.all([a.e(8725),a.e(4587)]).then(a.bind(a,94587)).then(e=>
1e.FacsimileLaneItem),{loadableGenerated:{webpack:()=>[94587]},ssr:!1,...(0,ao.d)()}),az=e=>{let t=(0,l.c)(10),{laneItem:a,lazyLoadTeaserImages:n}=e,r=void 0===n||n,{nodeUrl:s}=(0,ej.p)();if("personalizable"===a.itemType){let e;return t[0]!==a?(e=(0,i.jsx)(e1,{...a}),t[0]=a,t[1]=e):e=t[1],e}{let e;if((0,al.bJ)(a)){let e;return t[2]!==a?(e=(0,i.jsx)(eo.Y,{children:(0,i.jsx)(aU,{...a})}),t[2]=a,t[3]=e):e=t[3],e}if(aa.A.hideAdvertorialsForCopSubscribers&&(0,aR.BU)(a)&&!(0,aT.Mn)(s)||(0,al.c8)(a)){let e;return t[4]!==a||t[5]!==r?(e=(0,i.jsx)(eo.Y,{children:(0,i.jsx)(aK,{laneItem:a,lazyLoadTeaserImages:r})}),t[4]=a,t[5]=r,t[6]=e):e=t[6],e}return t[7]!==a||t[8]!==r?(e=(0,i.jsx)(aK,{laneItem:a,lazyLoadTeaserImages:r}),t[7]=a,t[8]=r,t[9]=e):e=t[9],e}},aU=e=>{let t,a,n,r=(0,l.c)(5);r[0]===Symbol.for("react.memo_cache_sentinel")?(t={},r[0]=t):t=r[0];let[,s]=(0,T.useState)(t);return r[1]!==s?(a=()=>{s({})},r[1]=s,r[2]=a):a=r[2],(0,ai.z)(a),r[3]!==e?(n=(0,i.jsx)(aK,{laneItem:e}),r[3]=e,r[4]=n):n=r[4],n},aK=e=>{let t,a,n,s=(0,l.c)(11),{laneItem:o,lazyLoadTeaserImages:c}=e,d=void 0===c||c,{userProfile:u}=(0,Y.sb)(),{assetData:m}=(0,eb._)(),{hideSideLane:f}=(0,S.g$)(),{nodeUrl:p}=(0,ej.p)(),h=((e,t)=>{let a,i,n,r,s=(0,l.c)(11),o=ez.Qp,c=(0,T.useRef)(-1),d=(0,T.useRef)(!1);s[0]!==e||s[1]!==t?(a=(0,al.DO)(e)&&(0,al.HZ)(t,e),s[0]=e,s[1]=t,s[2]=a):a=s[2];let u=a;s[3]!==e||s[4]!==u?(i=()=>{d.current||(c.current=window.setTimeout(()=>{u&&(0,tc.Wc)(e),d.current=!0},ez.wg))},s[3]=e,s[4]=u,s[5]=i):i=s[5];let m=i;s[6]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{window.clearTimeout(c.current)},s[6]=n):n=s[6];let f=n,p=!u;s[7]!==m||s[8]!==p||s[9]!==o?(r={threshold:o,onEnter:m,onExit:f,skip:p},s[7]=m,s[8]=p,s[9]=o,s[10]=r):r=s[10];let{ref:h}=(0,I.W)(r);return h})(o,u);if(aa.A.hideAdvertorialsForCopSubscribers&&!(0,al.ju)(u,o,p)||(0,al.Q2)(o)&&!(0,al.HZ)(u,o,m))return null;let x="narrow"===o.viewFilter&&!f,g="wide"===o.viewFilter;s[0]!==x||s[1]!==g?(t=r()({"lg:hidden":x,"hidden lg:block":g}),s[0]=x,s[1]=g,s[2]=t):t=s[2];let v="laneitem-".concat(o.id);return s[3]!==o||s[4]!==d?(a=(0,i.jsx)(aG,{laneItem:o,lazyLoadTeaserImages:d}),s[3]=o,s[4]=d,s[5]=a):a=s[5],s[6]!==h||s[7]!==t||s[8]!==v||s[9]!==a?(n=(0,i.jsx)("div",{className:t,"data-testid":v,ref:h,children:a}),s[6]=h,s[7]=t,s[8]=v,s[9]=a,s[10]=n):n=s[10],n},aG=e=>{let t=(0,l.c)(69),{laneItem:a,lazyLoadTeaserImages:n}=e,r=(0,tt.P)(),{compactWeatherWidget:s}=(0,an.t)();switch(a.itemType){case"errorMessagePlaceholder":{let e;return t[0]!==a.id?(e=(0,i.jsx)(eS.K,{id:a.id}),t[0]=a.id,t[1]=e):e=t[1],e}case"adPosition":{let e;if(a.positions){let e,l;if(t[2]!==a.id||t[3]!==a.positions){let l;t[5]!==a.id?(l=(e,t)=>(0,i.jsx)(eC.t,{id:a.id,className:"last:ml-nof-8 first:ml-nof-0 last:mr-nof-0 flex",position:e},"".concat(e,"-").concat(t)),t[5]=a.id,t[6]=l):l=t[6],e=a.positions.map(l),t[2]=a.id,t[3]=a.positions,t[4]=e}else e=t[4];return t[7]!==e?(l=(0,i.jsx)("div",{className:"max-w-main mx-auto flex",children:e}),t[7]=e,t[8]=l):l=t[8],l}return t[9]!==a.id||t[10]!==a.peAnalyticsPosition||t[11]!==a.position?(e=(0,i.jsx)(eC.t,{id:a.id,position:a.position,sndpPosition:a.peAnalyticsPosition}),t[9]=a.id,t[10]=a.peAnalyticsPosition,t[11]=a.position,t[12]=e):e=t[12],e}case"adPlaceholder":{let e;return t[13]!==a.id||t[14]!==a.peAnalyticsPosition?(e=(0,i.jsx)(eI.v,{id:a.id,sndpPosition:a.peAnalyticsPosition}),t[13]=a.id,t[14]=a.peAnalyticsPosition,t[15]=e):e=t[15],e}case"standard":{let e;return t[16]!==a||t[17]!==n?(e=(0,i.jsx)(tG.f,{className:"teaser__spacing-bottom",...a,lazyLoadImages:n}),t[16]=a,t[17]=n,t[18]=e):e=t[18],e}case"list":{let e;return t[19]!==a?(e=(0,i.jsx)(te.V,{...a}),t[19]=a,t[20]=e):e=t[20],e}case"localNewsBoxList":{let e;return t[21]!==a?(e=(0,i.jsx)(ty,{...a}),t[21]=a,t[22]=e):e=t[22],e}case"contentPlaceholder":{let e;return t[23]!==a?(e=(0,i.jsx)(eP.v,{...a}),t[23]=a,t[24]=e):e=t[24],e}case"search":{let e;return t[25]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(aW,{}),t[25]=e):e=t[25],e}case"searchResults":{let e;return t[26]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(tU,{}),t[26]=e):e=t[26],e}case"searchRecipesFilter":{let e;return t[27]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(tM,{}
1),t[27]=e):e=t[27],e}case"ticker":{let e;return t[28]!==a?(e=(0,i.jsx)(tq,{...a}),t[28]=a,t[29]=e):e=t[29],e}case"loadingPlaceholder":{let e;return t[30]!==a?(e=(0,i.jsx)(eB._,{...a}),t[30]=a,t[31]=e):e=t[31],e}case"html":{let e;return t[32]!==a?(e=(0,i.jsx)(eE.r,{...a}),t[32]=a,t[33]=e):e=t[33],e}case"editionSectionList":case"editionArticleList":{let e;return t[34]!==a.id||t[35]!==a.viewFilter?(e=(0,i.jsx)(e_,{id:a.id,viewFilter:a.viewFilter}),t[34]=a.id,t[35]=a.viewFilter,t[36]=e):e=t[36],e}case"subHeader":{let e;return t[37]!==a?(e=(0,i.jsx)(ae,{...a}),t[37]=a,t[38]=e):e=t[38],e}case"comments":{let e;return t[39]!==a.id?(e=(0,i.jsx)(eT.H,{id:a.id}),t[39]=a.id,t[40]=e):e=t[40],e}case"userCommentsList":{let e;return t[41]!==a.id?(e=(0,i.jsx)(e9.e,{id:a.id}),t[41]=a.id,t[42]=e):e=t[42],e}case"weatherWidget":{let e;return t[43]!==s||t[44]!==a.id?(e=s?(0,i.jsx)(aO.W,{id:a.id}):(0,i.jsx)(at.J,{id:a.id}),t[43]=s,t[44]=a.id,t[45]=e):e=t[45],e}case"iframe":{let e;return t[46]!==a?(e=(0,i.jsx)(eL,{...a}),t[46]=a,t[47]=e):e=t[47],e}case"followedTags":{let e;return t[48]!==a.id?(e=(0,i.jsx)(v.X,{id:a.id}),t[48]=a.id,t[49]=e):e=t[49],e}case"editionCover":{let e;return t[50]!==a?(e=(0,i.jsx)(ed,{...a}),t[50]=a,t[51]=e):e=t[51],e}case"facsimileLatestCover":case"facsimile":case"editionList":case"facsimileSearch":case"facsimileArchive":{let e;return t[52]!==a?(e=(0,i.jsx)(aM,{...a}),t[52]=a,t[53]=e):e=t[53],e}case"newsletterSubscription":{let e;return t[54]!==a?(e=(0,i.jsx)(aF,{...a}),t[54]=a,t[55]=e):e=t[55],e}case"brazeCepBanner":{let e;return t[56]!==a?(e=(0,i.jsx)(ad,{...a}),t[56]=a,t[57]=e):e=t[57],e}case"brazeContentCard":{let e;return t[58]!==a?(e=(0,i.jsx)(es,{...a}),t[58]=a,t[59]=e):e=t[59],e}case"reelCarousel":if("is"===r){let e;return t[60]!==a?(e=(0,i.jsx)(W,{...a}),t[60]=a,t[61]=e):e=t[61],e}return null;case"audioSeriesGrid":{let e;return t[62]!==a?(e=(0,i.jsx)(x,{...a}),t[62]=a,t[63]=e):e=t[63],e}case"group":{let e;return t[64]!==a?(e=(0,i.jsx)(af,{laneItem:a}),t[64]=a,t[65]=e):e=t[65],e}case"form":{let e;return t[66]!==a.formVariant||t[67]!==a.id?(e=(0,i.jsx)(au.default,{id:a.id,formVariant:a.formVariant}),t[66]=a.formVariant,t[67]=a.id,t[68]=e):e=t[68],e}default:return null}}},59472:(e,t,a)=>{"use strict";a.d(t,{B:()=>u,q:()=>m});var i=a(27964),l=a(72848),n=a(23191),r=a(63593),s=a(68684),o=a(17924),c=a(62498),d=a(33399);let u={StandaloneAppPaywall:"StandalonePaywall",ArticlePaywall:"Article"},m=e=>{let t,a=(0,i.c)(6),{useInkAuth:s,platform:o}=(0,r.g$)(),c=(0,l.P)(),{environment:d}=(0,n.U)();return a[0]!==c||a[1]!==d||a[2]!==e||a[3]!==o||a[4]!==s?(t=(t,a,i)=>f(s,c,d,e,t,a,i,o),a[0]=c,a[1]=d,a[2]=e,a[3]=o,a[4]=s,a[5]=t):t=a[5],t},f=(e,t,a,i,l,n,r,d)=>{switch(n){case"LOGIN":(0,s.Cw)(t,a),(0,s.wm)(e,l);break;case"REGISTER":(0,s.Cw)(t,a),(0,s.s1)(e,l);break;default:p(d,i,r)&&(l.preventDefault(),(0,o.Wr)({type:c.oi.StartSubscriptionFunnel,fullUrl:r}))}},p=(e,t,a)=>e===d.OD.Android&&t===u.StandaloneAppPaywall&&h(a),h=e=>e.includes("/subscription-funnel/shopping/")},61941:(e,t,a)=>{"use strict";a.d(t,{_:()=>o});var i=a(37876),l=a(27964),n=a(61127),r=a(23641);let s="shopping_confirmation",o=e=>{let t,a,o,d=(0,l.c)(6),{productId:u}=e,{getBanner:m}=(0,n.ml)();return(d[0]!==m||d[1]!==u?(a=c(t=m(s),u),d[0]=m,d[1]=u,d[2]=t,d[3]=a):(t=d[2],a=d[3]),a)?(d[4]!==t?(o=(0,i.jsx)(r.R,{placement:s,banner:t}),d[4]=t,d[5]=o):o=d[5],o):null},c=(e,t)=>{if(!e||!t)return!1;let a=e.getStringProperty("products");return!!a&&("all_products"===a.toLowerCase()||a.split(",").map(e=>e.trim().toLowerCase()).includes(t.toLowerCase()))}},66108:(e,t,a)=>{"use strict";a.d(t,{DO:()=>P,Q2:()=>x,c8:()=>g,bJ:()=>v,ju:()=>j,HZ:()=>b,IY:()=>_});var i=a(80104),l=a(72974),n=a(34776),r=a(25037),s=a(39971);let o=["frequencyMaxImpressions","frequencyMaxImpressionsPerDay","isSubscriber","isMiniSubscriber","isPremiumSubscriber","isAllowedToShareFamilyRights","isSample","isGift","isCombo","isCompanyUser","entitlement","nonRecurringSubscriptionEndingInLessThanDays","dmpSegment","cdpSegment","shownAfterXPageViews","isSchoolUser","isCorporateUser","isLoggedIn","hideFromCopSubscribers"];var c=a(51144),d=a(34426),u=a(464),m=a(82771),f=a(78101),p=a(34950),h=a(74730);let x=e=>0!==Object.entries(e.filters).length,g=e=>Object.entries(e.filters).some(e=>
1{let[t,a]=e;return o.includes(t)&&void 0!==a}),v=e=>void 0!==e.filters.shownAfterXPageViews,b=(e,t,a)=>_(e,t.filters)&&A(t)&&k(t)&&y(t,a)&&E(t)&&L(e,t.filters.isLoggedIn)&&D(e,t.filters.hideFromCopSubscribers),j=(e,t,a)=>!!(!(0,p.BU)(t)||(0,h.Mn)(a))||e.authenticationStatus!==c.J.Authenticated||!e.subscriptionDetails.isCopSubscriber,y=(e,t)=>{let{assetTagId:a}=e.filters;if(t&&a)switch(t.resourceType){case"Article":case"Recipe":case"Audio":case"SportLiveArticle":var i;return null==(i=t.tags)?void 0:i.some(e=>w(a,e.id)());default:return!1}return!0},k=e=>{let{dmpSegment:t,cdpSegment:a}=e.filters;return a?N((0,d.s)(),a):!t},A=e=>{if(!P(e))return!0;{let{total:t,duringLastDay:a}=(0,m.Ym)(e.id);return[I(e.filters.frequencyMaxImpressions,t),I(e.filters.frequencyMaxImpressionsPerDay,a)].every(e=>e())}},_=(e,t)=>{let a,l;return e.authenticationStatus===c.J.Authenticated?(a=e.subscriptionDetails,l=e.entitlements):(a={isSubscriber:!1,isPremiumSubscriber:!1,isMiniSubscriber:!1,isCopSubscriber:!1,isAllowedToShareFamilyRights:!1,isSample:!1,isCombo:!1,isGift:!1,legacyAdSubscriptionInfo:0},l=[]),[S(t.isSubscriber,a.isSubscriber),S(t.isMiniSubscriber,a.isMiniSubscriber),S(t.isPremiumSubscriber,a.isPremiumSubscriber),S(t.isAllowedToShareFamilyRights,a.isAllowedToShareFamilyRights),S(t.isSample,a.isSample),S(t.isCombo,a.isCombo),S(t.isGift,a.isGift),S(t.isCompanyUser,e.authenticationStatus===c.J.Authenticated&&e.userType!==i.u.REGULAR),S(t.isSchoolUser,e.authenticationStatus===c.J.Authenticated&&e.userType===i.u.SCHOOL),S(t.isCorporateUser,e.authenticationStatus===c.J.Authenticated&&e.userType===i.u.CORPORATE),C(t.entitlement,l),T(t.nonRecurringSubscriptionEndingInLessThanDays,a.nonRecurringSubscriptionEndDate)].every(e=>e())},N=(e,t)=>void 0===t||e.includes(t),w=(e,t)=>()=>void 0===e||void 0===t||e===t,S=(e,t)=>()=>void 0===e||e===t,I=(e,t)=>()=>void 0===e||e>t,C=(e,t)=>()=>void 0===e||t.some(t=>t.key===e.toUpperCase()),T=(e,t)=>()=>void 0===e||void 0!==t&&function(e,t){let a=+(0,n.a)(e,void 0),[i,l]=[+(0,n.a)(t.start,void 0),+(0,n.a)(t.end,void 0)].sort((e,t)=>e-t);return a>=i&&a<=l}((0,r.H)(t),{start:Date.now(),end:(0,s.f)(Date.now(),e)}),P=e=>void 0!==e.filters.frequencyMaxImpressions||void 0!==e.filters.frequencyMaxImpressionsPerDay,E=e=>{if(void 0===e.filters.shownAfterXPageViews)return!0;let t=f.s.getItem(l.JT),a=(0,u.HL)(),i=t?Number(t):0;return!a||i>=e.filters.shownAfterXPageViews},D=(e,t)=>!t||e.authenticationStatus!==c.J.Authenticated||!e.subscriptionDetails.isCopSubscriber,L=(e,t)=>void 0===t||t===(e.authenticationStatus===c.J.Authenticated)},66991:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});let i={src:"/_next/static/media/app-store.40cb72bc.svg",height:40,width:143,blurWidth:0,blurHeight:0}},67486:(e,t,a)=>{e.exports=a(19560)},68108:(e,t,a)=>{"use strict";a.d(t,{W:()=>m});var i=a(37876),l=a(27964),n=a(23191),r=a(28315),s=a(69998),o=a(18847),c=a.n(o),d=a(23453);let u=c()(()=>a.e(1306).then(a.t.bind(a,21306,19)).then(e=>e.SupersaaWeatherWidget),{loadableGenerated:{webpack:()=>[21306]},ssr:!1,...(0,d.d)()}),m=e=>{let t,a,o=(0,l.c)(8),{id:c}=e,d=(0,s.g)(),{supersaaWidgetEnv:m}=(0,n.U)(),{position:f}=(0,r.u)(),p=c?"compact-weather-widget-".concat(c):void 0,h="main"===f;return o[0]!==d||o[1]!==m||o[2]!==h?(t=(0,i.jsx)(u,{env:m,isMainLane:h,inkAppParams:d,variant:"compact"}),o[0]=d,o[1]=m,o[2]=h,o[3]=t):t=o[3],o[4]!==c||o[5]!==p||o[6]!==t?(a=(0,i.jsx)("div",{id:p,"data-id":c,className:"weather-widget-container compact-weather-widget-container",children:t}),o[4]=c,o[5]=p,o[6]=t,o[7]=a):a=o[7],a}},69998:(e,t,a)=>{"use strict";a.d(t,{g:()=>o});var i=a(27964),l=a(17924),n=a(63593),r=a(62498),s=a(14232);let o=()=>{let e,t,a,o,d=(0,i.c)(6),{useInkBridge:u}=(0,n.g$)();d[0]!==u?(e=u?{userlocation:{hasPermission:!1,locationEnabled:!0},requestInkAppLocationPermission:c}:void 0,d[0]=u,d[1]=e):e=d[1];let[m,f]=(0,s.useState)(e);d[2]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{var t,a,i,l,n;f({userlocation:{lat:null==(a=e.detail)?void 0:a.lat,lon:null==(i=e.detail)?void 0:i.lon,hasPermission:null!=(t=null==(l=e.detail)?void 0:l.hasPermission)&&t,locationEnabled:(null==(n=e.detail)?void 0:n.locationEnabled)!==!1},requestInkAppLocationPermission:c})},d[2]=t):t=d[2];let p=t;return d[3]!==u?(a=()=>(u&&((0,l.yb)(r.mB.UserLocationResponse,p),(0,l.Wr)({type:r.oi.GetUserLocation,maximumAge:9e5})),function(){u&&(0,l.Bv)(r.mB.UserLocationResponse,p)}),o=[p,c,u],d[3]=u,d[4]=a,d[5]=o):(a=d[4],o=d[5]),(0,s.useEffect)(a,o),m};function c(){(0,l.Wr)({type:r.oi.RequestUserLocationPermission})}},71452:(e,t,a)=>{"use strict";a.d(t,{T:()=>w,n:()=>C});var i=a(37876),l=a(27964),n=a(85933),r=a(33962),s=a(27815),o=a(13725),c=a(18847),d=a.n(c),u=a(43032),m=a(95961),f=a(61127),p=a(2132),h=a(63593),x=a(92739),g=
1a(97843),v=a(54056),b=a(21155),j=a(51144),y=a(89099),k=a(14232);let A=e=>{let{html:t,allowRerender:a,...i}=e,l=(0,k.useRef)(null),n=(0,k.useRef)(!0);return(0,k.useEffect)(()=>{if(!t||!l.current)throw Error("html prop can't be null");if(!n.current)return;n.current=!!a;let e=document.createRange().createContextualFragment(t);l.current.innerHTML="",l.current.appendChild(e)},[t,l,a]),(0,k.createElement)("div",{...i,ref:l})};var _=a(68684);let N=d()(()=>a.e(2764).then(a.bind(a,2764)),{loadableGenerated:{webpack:()=>[2764]},ssr:!1}),w=e=>{let t,a,n,r=(0,l.c)(6),s=(0,y.useRouter)(),o=(0,h.g$)();return(r[0]!==s.events?(t=()=>(s.events.on("routeChangeStart",T),()=>{s.events.off("routeChangeStart",T)}),r[0]=s.events,r[1]=t):t=r[1],r[2]!==s?(a=[s],r[2]=s,r[3]=a):a=r[3],(0,k.useEffect)(t,a),o.useInkBridge&&void 0===o.platform)?null:(r[4]!==e?(n=(0,i.jsx)(S,{...e}),r[4]=e,r[5]=n):n=r[5],n)},S=e=>{let t,a=(0,l.c)(4),{state:r}=(0,v.I)(e.article.id),s=r===n.MB.GRANTED,o=r===n.MB.LOADING;return a[0]!==e||a[1]!==s||a[2]!==o?(t=(0,i.jsx)(I,{hasAccess:s,isLoading:o,...e}),a[0]=e,a[1]=s,a[2]=o,a[3]=t):t=a[3],t},I=e=>{let{userProfile:t}=(0,x.sb)(),{assetData:a}=(0,m._)(),{showSpecialArticleTail:l}=(0,b.t)(),{handleBrazeCustomEvent:n}=(0,f.ml)(),c=(0,k.useCallback)(()=>{let a=new CustomEvent("specialArticleAccess",{detail:{userHasAccess:e.hasAccess,userIsLoggedIn:(0,_.M3)(t)}});window.dispatchEvent(a)},[e.hasAccess,t]),d=(0,k.useCallback)(e=>{c(),e<=5&&setTimeout(()=>{d(e+1)},100*Math.pow(2,e))},[c]);(0,k.useEffect)(()=>{e.isLoading||d(1)},[d,e.isLoading]);let h=(0,k.useCallback)(e=>{var a;if("dynamic-article"===e.data.type&&(null==(a=e.data.data)?void 0:a.action)==="activateNYTSubscription"&&e.origin===window.location.origin){let{authenticationStatus:e}=t;if(e===j.J.Authenticated){let{hashedAccountId:e}=t;e&&n({type:p.l.NytCampaignSubscription,payload:{promotion_id:"hs_nyt"}})}}},[n,t]);return(0,g.l)("message",h),(0,i.jsxs)("article",{className:"hide-if-empty",children:[(0,i.jsx)(s.S,{asset:e.article}),(0,i.jsx)(N,{assetId:e.article.id,specialArticleUnfolded:!0}),(0,i.jsx)(u.X,{}),(0,i.jsx)("div",{className:"w-full","data-testid":"embedded-article","data-scroll-depth-root":!0,suppressHydrationWarning:!0,children:e.article.externalHtml&&(0,i.jsx)(A,{html:e.article.externalHtml,allowRerender:!0})}),(0,i.jsxs)("div",{className:"bg-nof-background-content-default relative",children:[(null==a?void 0:a.resourceType)==="Article"&&(0,i.jsx)(o.p,{assetId:a.id}),C(l,a)&&(0,i.jsx)(r.l,{links:e.article.links,tags:e.article.tags,asset:e.article,className:"p-nof-16 article__max-width--xxl mx-auto w-full"})]})]})},C=(e,t)=>!!e&&(null==t?void 0:t.resourceType)!=="Advertorial"&&((null==t?void 0:t.resourceType)!=="Article"||!["sanalouhos","sanajuuri","10kysymysta","sanavelho"].some(e=>{var a;return null==(a=t.externalUrl)?void 0:a.includes(e)}));function T(e){window.location.href=e}},76337:(e,t,a)=>{"use strict";a.d(t,{X:()=>g});var i=a(37876),l=a(27964),n=a(15039),r=a.n(n),s=a(63534),o=a(82722);let c=e=>{let t,a,n,c,d,u=(0,l.c)(12),{tag:m}=e;if(!m.title)return null;let f=m.id;return u[0]===Symbol.for("react.memo_cache_sentinel")?(t=r()("nof-ui-subtitle-small text-nof-foreground-primary"),u[0]=t):t=u[0],u[1]!==m.title||u[2]!==m.url?(a=m.url?(0,i.jsx)(s.N,{href:m.url,children:m.title}):m.title,u[1]=m.title,u[2]=m.url,u[3]=a):a=u[3],u[4]!==a?(n=(0,i.jsx)("div",{className:"list-tag__inner",children:(0,i.jsx)("span",{className:t,children:a})}),u[4]=a,u[5]=n):n=u[5],u[6]!==m?(c=(0,i.jsx)(o.K,{tag:m}),u[6]=m,u[7]=c):c=u[7],u[8]!==n||u[9]!==c||u[10]!==m.id?(d=(0,i.jsxs)("div",{className:"list-tag","data-id":f,children:[n,c]}),u[8]=n,u[9]=c,u[10]=m.id,u[11]=d):d=u[11],d};var d=a(72848),u=a(92739),m=a(64883),f=a(99972),p=a(37156),h=a(51144),x=a(21529);let g=e=>{let t,a,n,r,s,o,c,g,b=(0,l.c)(22),{id:j}=e,{userProfile:y,getValidSessionToken:k}=(0,u.sb)(),A=(0,d.P)();b[0]===Symbol.for("react.memo_cache_sentinel")?(t={rootMargin:(0,f.c)(),triggerOnce:!0},b[0]=t):t=b[0];let{ref:_,inView:N}=(0,f.W)(t),w=y.authenticationStatus===h.J.Authenticated;b[1]!==w||b[2]!==y.accountIdEncoded?(a=w&&y.accountIdEncoded?(0,m.xl)(y.accountIdEncoded):null,b[1]=w,b[2]=y.accountIdEncoded,b[3]=a):a=b[3],b[4]!==A||b[5]!==k||b[6]!==y?(n=()=>(0,x.Ay)(y,A,k),b[4]=A,b[5]=k,b[6]=y,b[7]=n):n=b[7],b[8]!==N?(r={enabled:N},b[8]=N,b[9]=r):r=b[9];let{data:S}=(0,p.E)(a,n,r);if(!w||!y.accountIdEncoded)return null;if(!S||0===S.tags.length){let e;return b[10]!==j||b[11]!==_?(e=(0,i.jsx)("div",{"data-id":j,"data-testid":"followed-tags-anchor",ref:_}),b[10]=j,b[11]=_,b[12]=e):e=b[12],e}return b[13]===Symbol.for("react.memo_cache_sentinel")?(s=(0,i.jsx)("h2",{className:"sr-only",children:"Seuraamasi aiheet"}),b[13]=s):s=b[13],b[14]!==S.tags?(o=S.tags.map(v),b[14]=S.tags,b[15]=o):o=b[15],b[16]!==o?(c=(0,i.jsx)("ul",{className:"mb-nof-16 p-nof-16",children:o}),b[16]=o,b[17]=c):c=b[17],b[18]!==j||b[19]!==_||b[20]!==c?(g=(0,i.jsxs)("article",{"data-id":j,"data-testid":"followed-tags-anchor",ref:_,children:[s,c]}),b[18]=j,b[19]=_,b[20]=c,b[21]=g):g=b[21],g};function v(e){return(0,i.jsx)("li",{children:(0,i.jsx)(c,{tag:e})},e.key)}},76507:(e,t,a)=>{"use strict";a.d(t,{P:()=>n});var i=a(27964),l=a(14232);let n=e=>{let t,a,n=(0,i.c)(4),[r,s]=(0,l.useState)(!1);n[0]!==e||n[1]!==r?(t=()=>{if(e&&!r){let{hash:e}=window.location,t=e.replace("#","");if(""===t)return;let a=document.getElementById(t);a&&(a.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}),s(!0))}}
1,a=[e,r],n[0]=e,n[1]=r,n[2]=t,n[3]=a):(t=n[2],a=n[3]),(0,l.useEffect)(t,a)}},82722:(e,t,a)=>{"use strict";a.d(t,{K:()=>P});var i=a(37876),l=a(27964),n=a(60642),r=a(52677),s=a(15039),o=a.n(s),c=a(97410),d=a(72848),u=a(20304),m=a(64883),f=a(92739),p=a(59404),h=a(51144),x=a(14232),g=a(21529),v=a(59712),b=a(56840),j=a(91098),y=a(56137),k=a(24787),A=a(23191),_=a(18858),N=a(63593),w=a(68684),S=a(41906);let I=e=>{let t,a,n,r,s=(0,l.c)(17),{isOpen:o,setOpen:c}=e,u=(0,d.P)(),{environment:m}=(0,A.U)(),f=(0,_.R7)(),{useInkAuth:p}=(0,N.g$)();s[0]!==u||s[1]!==f||s[2]!==m||s[3]!==p?(t=()=>{(0,v.XE)("follow topic","Kirjaudu sis\xe4\xe4n"),(0,w.jL)(u,f,p,m)},s[0]=u,s[1]=f,s[2]=m,s[3]=p,s[4]=t):t=s[4];let h=t;s[5]!==u||s[6]!==f||s[7]!==m||s[8]!==p?(a=()=>{(0,v.XE)("follow topic","Luo tunnus"),(0,w.dG)(u,f,p,m)},s[5]=u,s[6]=f,s[7]=m,s[8]=p,s[9]=a):a=s[9];let x=a;return s[10]!==c?(n=()=>{c(!1)},s[10]=c,s[11]=n):n=s[11],s[12]!==o||s[13]!==h||s[14]!==x||s[15]!==n?(r=(0,i.jsx)(S.z,{headline:"Seuraa aiheita",text:"Luo tunnus tai kirjaudu sis\xe4\xe4n, jotta voit seurata lempiaiheitasi.",closeModal:n,isOpen:o,loginHandler:h,registrationHandler:x}),s[12]=o,s[13]=h,s[14]=x,s[15]=n,s[16]=r):r=s[16],r},C=e=>{let t,a=(0,l.c)(2),{className:n}=e;return a[0]!==n?(t=(0,i.jsx)(k.I,{name:"Follow",className:n}),a[0]=n,a[1]=t):t=a[1],t},T=e=>{let t,a=(0,l.c)(2),{className:n}=e;return a[0]!==n?(t=(0,i.jsx)(k.I,{name:"FollowFilled",className:n}),a[0]=n,a[1]=t):t=a[1],t},P=e=>{let t,a,s,k,A,_,N,w,S,P,F=(0,l.c)(36),{tag:B,className:R}=e,O=(0,d.P)(),{userProfile:W,getValidSessionToken:M}=(0,f.sb)(),{followedTagIds:z,isTagFollowed:U,setTagUnfollowed:K,setTagFollowed:G}=(0,u.c)(),{mutate:H}=(0,b.iX)();F[0]!==U||F[1]!==B.id?(t=U(B.id),F[0]=U,F[1]=B.id,F[2]=t):t=F[2];let[V,q]=(0,x.useState)(t),[$,X]=(0,x.useState)(!1);F[3]!==K||F[4]!==B.id?(a=()=>{K(B.id),q(!1)},F[3]=K,F[4]=B.id,F[5]=a):a=F[5];let J=a;F[6]!==z.status||F[7]!==U||F[8]!==B.id?(s=()=>{z.status===p.n.Success&&q(U(B.id))},k=[z.status,U,B.id],F[6]=z.status,F[7]=U,F[8]=B.id,F[9]=s,F[10]=k):(s=F[9],k=F[10]),(0,x.useEffect)(s,k),F[11]!==O||F[12]!==M||F[13]!==V||F[14]!==U||F[15]!==H||F[16]!==G||F[17]!==B||F[18]!==J||F[19]!==W?(A=e=>{if(e.preventDefault(),W.authenticationStatus===h.J.Authenticated&&W.accountIdEncoded){let{accountIdEncoded:e}=W;(V?g.Zo:g.Wy)(W,B.id,O,M).then(()=>{B.title&&(0,v.Wh)(V?"unfollow":"follow",B.title);let t=(0,m.xl)(e);V?(J(),H(t,e=>e?{tags:e.tags.filter(e=>e.id!==B.id)}:e,{revalidate:!1})):(q(!0),G(B.id),H(t,e=>e?{tags:[B,...e.tags]}:{tags:[B]},{revalidate:!1}))}).catch(t=>{console.error(t),q(U(B.id)),H((0,m.xl)(e)),H((0,m.gj)(e))})}else X(!0)},F[11]=O,F[12]=M,F[13]=V,F[14]=U,F[15]=H,F[16]=G,F[17]=B,F[18]=J,F[19]=W,F[20]=A):A=F[20];let Z=A;if(!B.title)return null;F[21]!==O||F[22]!==Z||F[23]!==V||F[24]!==$?(_=()=>{let e=V?"Seuraat":"Seuraa";return"hs"===O?(0,i.jsxs)("div",{className:"button__follow-tag",children:[(0,i.jsxs)("button",{onClick:Z,className:o()("tag-button follow-tag-button",{"tag-follow-link-active":V}),children:[e,V?(0,i.jsx)(r.S,{className:"ml-nof-8",size:26}):(0,i.jsx)(n.R,{className:"ml-nof-8",size:26})]}),(0,i.jsx)(I,{isOpen:$,setOpen:X})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j.$n,{className:"follow-tag-button",handleClick:Z,variant:"function",label:e,iconPosition:"left",icon:V?T:C}),(0,i.jsx)(y.K,{className:"follow-tag-icon-button",handleClick:Z,variant:"function",label:e,icon:V?T:C}),(0,i.jsx)(I,{isOpen:$,setOpen:X})]})},F[21]=O,F[22]=Z,F[23]=V,F[24]=$,F[25]=_):_=F[25];let Y=_;return F[26]!==R?(N=o()(R,"follow-tag-button-container"),F[26]=R,F[27]=N):N=F[27],F[28]!==Y?(w=()=>(0,i.jsx)(Y,{}),F[28]=Y,F[29]=w):w=F[29],F[30]!==z||F[31]!==w?(S=(0,i.jsx)(c.j,{remoteData:z,notAsked:E,loading:D,success:w,failure:L}),F[30]=z,F[31]=w,F[32]=S):S=F[32],F[33]!==N||F[34]!==S?(P=(0,i.jsx)("div",{className:N,children:S}),F[33]=N,F[34]=S,F[35]=P):P=F[35],P};function E(){return null}function D(){return null}function L(){return null}},94712:(e,t,a)=>{"use strict";a.d(t,{n:()=>o});var i=a(37876),l=a(27964),n=a(15039),r=a.n(n),s=a(83700);let o=e=>{let t,a,n,o,c,d,u=(0,l.c)(16),{date:m,modifiedDate:f,className:p}=e;u[0]!==m?(t=(0,s.ed)({dateTimeStr:m}),u[0]=m,u[1]=t):t=u[1];let h=t;u[2]!==f?(a=(0,s.ed)({dateTimeStr:f}),u[2]=f,u[3]=a):a=u[3];let x=a;return u[4]!==p?(n=r()("timestamp-label",p),u[4]=p,u[5]=n):n=u[5],u[6]!==m||u[7]!==h?(o=(0,i.jsx)("time",{itemProp:"datePublished",dateTime:m,children:h}),u[6]=m,u[7]=h,u[8]=o):o=u[8],u[9]!==x||u[10]!==f?(c=x?(0,i.jsxs)("span",{children:[" ","| P\xe4ivitetty"," ",(0,i.jsx)("time",{itemProp:"dateModified",dateTime:f,children:x})]}):null,u[9]=x,u[10]=f,u[11]=c):c=u[11],u[12]!==n||u[13]!==o||u[14]!==c?(d=(0,i.jsxs)("div",{className:n,children:[o,c]}),u[12]=n,u[13]=o,u[14]=c,u[15]=d):d=u[15],d}},97410:(e,t,a)=>{"use strict";a.d(t,{j:()=>l});var i=a(59404);function l(e){let{remoteData:t,success:a,notAsked:l,loading:n,failure:r}=e;switch(t.status){case i.n.NotAsked:return l();case i.n.Loading:return n();case i.n.Failure:return r();case i.n.Success:return a(t.data);default:return null}}},98419:(e,t,a)=>{"use strict";a.d(t,{Q:()=>f,d:()=>p});var i=a(27964),l=a(72848),n=a(63593),r=a(92739),s=a(14232),o=a(10914),
1c=a(78516),d=a(61016),u=a(32037);let m="/api",f=function(e){var t,a;let{tagInclude:u,tagIncludeMode:m,sectionFilter:f}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{userIds:{ceId:p,profileId:x}}=(0,r.sb)(),b=null==e?void 0:e.assetData.id,{fetchPersonalizedReelIds:j}=(e=>{let t,a,s=(0,i.c)(11),{tagInclude:o,tagIncludeMode:d,sectionFilter:u}=e,{userIds:m}=(0,r.sb)(),{ceId:f,profileId:p,testGroupData:h}=m,x=(0,l.P)(),{useInkBridge:b}=(0,n.g$)(),j=b?"ink-reelsfocus":"reelsfocus";s[0]!==x||s[1]!==f||s[2]!==j||s[3]!==p||s[4]!==u||s[5]!==o||s[6]!==d||s[7]!==h?(t=async()=>(await (0,c.ad)({ceId:f,profileId:p,mode:j,timeout:2e3,testGroupData:h,idsOrListItems:"ids",brand:x,tagInclude:o,tagIncludeMode:d,sectionFilter:u})).result.map(g).filter(v),s[0]=x,s[1]=f,s[2]=j,s[3]=p,s[4]=u,s[5]=o,s[6]=d,s[7]=h,s[8]=t):t=s[8];let y=t;return s[9]!==y?(a={fetchPersonalizedReelIds:y},s[9]=y,s[10]=a):a=s[10],a})({tagInclude:u,tagIncludeMode:m,sectionFilter:f}),y=(0,s.useRef)(null),k=(0,s.useRef)(!1),[A,_]=(0,s.useState)(!1),N=null!=(t=null==u?void 0:u.join(","))?t:"",w=null!=m?m:"",S=null!=(a=null==f?void 0:f.join(","))?a:"";(0,s.useEffect)(()=>{y.current=null,k.current=!1},[N,w,S]);let I=(0,s.useCallback)(async()=>{if(null!==y.current)return y.current;let e=await j(),t=b?e.filter(e=>e!==b):e;return y.current=t,0===t.length&&(k.current=!0),t},[j,b]),C=(0,s.useCallback)(()=>{k.current=!0},[]),T=(0,s.useCallback)(async e=>{if(k.current)return null;_(!0);try{let t=await I();if(0===t.length)return null;let a=60*e;if(a>=t.length)return C(),null;let i=Math.min(a+60,t.length),l=t.slice(a,i),n=await (0,o.Gv)(l,!0);if(0===n.length)return i>=t.length&&C(),null;return i>=t.length&&C(),n}finally{_(!1)}},[I,C,k]),P=(0,s.useCallback)(async e=>{try{let t=await T(e);if(t&&t.length>0)return t}catch(e){}return 0===e,h(e,b)},[T,b,N,S]),{data:E,isLoading:D,...L}=(0,d.Ay)((e,t)=>{var a,i;return t&&!t.length?null:["/api/reels",e,b,p,x,null!=(a=null==u?void 0:u.join(","))?a:"",null!=m?m:"",null!=(i=null==f?void 0:f.join(","))?i:""]},e=>{let[,t]=e;return P(t)},{revalidateFirstPage:!1,persistSize:!0});return{data:(0,s.useMemo)(()=>{let t=new Set,a=new Set,i=[],l=e=>{if(!e)return;let l=e.assetData,n=l.id,r=l.video.id;"number"==typeof n&&t.has(n)||r&&a.has(r)||("number"==typeof n&&t.add(n),a.add(r),i.push(e))};return l(e),null==E||E.forEach(e=>{e.forEach(e=>{l(e)})}),i},[E,e]),isLoading:D||A,...L}},p=()=>{let e,t,a,l,n,r=(0,i.c)(9);r[0]===Symbol.for("react.memo_cache_sentinel")?(e={revalidateFirstPage:!1,persistSize:!0},r[0]=e):e=r[0];let s=(0,d.Ay)(b,j,e);r[1]!==s?({data:t,...a}=s,r[1]=s,r[2]=t,r[3]=a):(t=r[2],a=r[3]),r[4]!==t?(l=null==t?void 0:t.flat(),r[4]=t,r[5]=l):l=r[5];let o=l;return r[6]!==o||r[7]!==a?(n={data:o,...a},r[6]=o,r[7]=a,r[8]=n):n=r[8],n},h=async(e,t)=>(0,u.d)({url:"".concat(m,"/reels/").concat(e).concat(t?"/".concat(t):"")}),x=async e=>(0,u.d)({url:"".concat(m,"/reels-list/").concat(e)});function g(e){return e.articleId}function v(e){return!!e}function b(e,t){return t&&!t.length?null:["/api/reels-list",e]}function j(e){let[,t]=e;return x(t)}}}]);
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.