PageSourceSearch

https://www.uusisuomi.fi/static/static/js/async/g.e128349e42.js

js uusisuomi.fi collected 2026-10-01 11:39:15 UTC 175,506 bytes, 173 lines download raw bytes

1"use strict";(globalThis.rspackChunktalent_news_frontend||=[]).push([["g"],{nl(e,t,i){var a=i("pi"),n=i("v2"),o=i("Ax"),l=i("WR");function r(e,t,i,r,s){let d,m=e.lockedArticleHidden||e.loginRequiredArticleHidden||e.paywallArticleHidden||e.regwallArticleHidden||e.archivedArticleHidden||e.giftArticleHidden;return d=(null==s?void 0:s.wallVisibility)?"always"===s.wallVisibility?"paywall":"free":m?"paywall":"free",(0,l.uA)({attributes:(0,a.A)({authors:e.authors,articleLength:e.articleLength,contentCharge:e.lockedArticle?"starred":e.freeArticle?"free":"paid",contentVisibility:d,newspilot:(0,a.A)({jobId:e.npJobId,articleId:e.npArticleId,originalArticleId:e.npOriginalArticleId}),dashboard:(0,a.A)({alternateId:e.articleAlternateId,assignmentId:e.articleAssignmentId,contentSource:e.contentSource}),content:{cid:e.uuid,system:"OpenContent",articleType:e.subject,weekNumber:(()=>{if(r){let[e,t]=r.split("-");return`${t}-W${e}`}})()},paywall:c(e,t,s)},e=>!(0,n.A)(e)),category:{tags:(0,o.h)(e),themes:e.themes&&e.themes.map(e=>e.name),categoryType:e.categoryType},pageInfo:{issueDate:e.published,pageTitle:e.title,modifiedDate:e.modified}})}let s=e=>e.lockedArticle||e.hardPaywallArticle?"paid":e.loginRequiredArticle?"login_required":e.physiciansArticle?"physician":e.freeArticle?"free":"metered",d=e=>e.lockedArticleHidden?"strict":e.paywallArticleHidden?"dynamic":e.loginRequiredArticleHidden||e.regwallArticleHidden||e.giftArticleHidden?"registration":e.archivedArticleHidden?"archive":void 0,c=(e,t,i)=>{let a=e.lockedArticleHidden||e.paywallArticleHidden||!1===e.freeArticle&&!1===e.hardPaywallArticle,n=d(e),o=(null==i?void 0:i.wallType)||n;return a?{read:t.usedClicks,max:t.maxClicks,free:e.freeArticle,type:o,dw:s(e)}:void 0};i.d(t,{A:()=>r},{dw:s,f:d})},K1(e,t,i){var a=i("X4"),n=i("WR");let{mediaShortSlugs:o}=a.A;t.A=e=>{let{media:t,limit:i=20,append:l=!1,cache:r=!1,topics:s,laterThan:d}=e;return(e,c,m)=>{let u=c(),p=l?d:new Date().toISOString(),g=t||o.split(",");if(!r||(e=>{let{ownTopics:t,user:i}=e;if(!i.loggedIn||i.isGroup)return!1;let{lastUpdated:a}=t.newsItems;return!a||a+3e5<Date.now()})(u)){let t={query:`query { newsItemsByCategories(categories: ${JSON.stringify(s)}, medias: ${JSON.stringify(g)}, laterThan: "${p}", limit: ${i}) { uuid teaserTitle: title title teaserText leadImageUuid leadImageCrop authorDetails { name firstname lastname imageurl hiResImageUrl } dateline published lockedArticle: isLocked secondaryCategories: categories { name slug } videoTeaserImage companies media:medias subject subjectCode } }`};return m.graphQl(`${a.A.apiRoot}mynews/graphql`,JSON.stringify(t)).then(t=>{l?e((0,n.sx)((0,n.CE)(t))):e((0,n.Mo)((0,n.CE)(t)))}).catch(e=>{})}return Promise.resolve()}}},Hw(__unused_rspack_module,__webpack_exports__,__webpack_require__){var react_jsx_runtime__rspack_import_0=__webpack_require__("X"),react__rspack_import_1=__webpack_require__("u"),styled_components__rspack_import_2=__webpack_require__("tE");function _defineProperty(e,t,i){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:t+""}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var a=i.call(e,t||"default");if("object"!=typeof a)return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}let Embed=(styled_components__rspack_import_2.Ay.div.withConfig({componentId:"sc-198d75c4-0"}))(["max-width:100%;background-color:inherit;clear:both;iframe,> *{max-width:100%;}"]),scriptId=e=>`ext-${e}`;function evalJS(id){try{let scripts=document.querySelectorAll(`#${scriptId(id)} script`);Array.prototype.forEach.call(scripts,script=>{if(script.src){let s=document.createElement("script");s.async=!0,s.src=script.src,document.head.appendChild(s)}else eval(script.text)})}catch(error){console.log(error)}window.scripts[id]=!0}function cleanupJS(e){delete window.scripts[e];let t=document.querySelectorAll(`#${scriptId(e)} script`);Array.prototype.forEach.call(t,e=>{e.parentNode&&e.parentNode.removeChild(e)})}class GenericExternalHtml extends react__rspack_import_1.Component{componentDidMount(){window.scripts=window.scripts||{},this.setState({mounted:!0}),this.prevId=this.props.id}componentDidUpdate(){var e;this.prevId&&this.prevId!==this.props.id&&(cleanupJS(this.prevId),this.prevId=this.props.id),(null==(e=window.scripts)?void 0:e[this.props.id])||evalJS(this.props.id)}componentWillUnmount(){this.props.loadEveryTimePageIsVisited&&cleanupJS(this.props.id)}render(){return this.state.mounted?(0,react_jsx_runtime__rspack_import_0.jsx)(Embed,{id:scriptId(this.props.id),dangerouslySetInnerHTML:{__html:this.props.html}}):null}constructor(...e){super(...e),_defineProperty(this,"state",{}),_defineProperty(this,"prevId",null)}}__webpack_exports__.A=GenericExternalHtml},Nb(e,t,i){var a,n=i("X"),o=i("u"),l=i("tE"),r=i("XE"),s=i("qV"),d=i("Xo"),c=i("t8"),m=i("X4"),u=i("Zp"),p=i("e4"),g=i("WR"),h=i("JF");let f=(l.Ay.span.withConfig({componentId:"sc-16747490-0"}))(["margin-right:10px;"]),y=(l.Ay.span.withConfig({componentId:"sc-16747490-1"}))(["text-transform:uppercase;white-space:nowrap;font-size:11px;"]),x=(0,l.i7)(["0%{opacity:1;}100%{opacity:0;}"]),w=(0,l.i7)(["0%{opacity:.2;}20%{opacity:1;}100%{opacity:.2;}"]),b=(0,l.DU)([".ril__outer{background-color:rgba(0,0,0,0.85);outline:none;top:0;left:0;right:0;bottom:0;width:100%;height:100%;-ms-content-zooming:none;-ms-user-select:none;-ms-touch-select:none;touch-action:none;}.ril__outerClosing{opacity:0;}.ril__inner{position:absolute;top:0;left:0;right:0;bottom:0;}.ril__image,.ril__imagePrev,.ril__imageNext{position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;max-width:none;-ms-content-zooming:none;-ms-user-select:none;-ms-touch-select:none;touch-action:none;}.ril__imageDiscourager{background-repeat:no-repeat;background-position:center;background-size:contain;}.ril__navButtons{border:none;position:absolute;top:0;bottom:0;width:20px;height:34px;padding:40px 30px;margin:auto;cursor:pointer;opacity:0.7;}.ril__navButtons:hover{opacity:1;}.ril__navButtons:active{opacity:0.7;}.ril__navButtonPrev{left:0;background:rgba(0,0,0,0.2) url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDE5LDMgLTIsLTIgLTE2LDE2IDE2LDE2IDEsLTEgLTE1LC0xNSAxNSwtMTUgeiIgZmlsbD0iI0ZGRiIvPjwvc3ZnPg==') no-repeat center;}.ril__navButtonNext{right:0;background:rgba(0,0,0,0.2) url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDEsMyAyLC0yIDE2LDE2IC0xNiwxNiAtMSwtMSAxNSwtMTUgLTE1LC0xNSB6IiBmaWxsPSIjRkZGIi8+PC9zdmc+') no-repeat center;}.ril__downloadBlocker{position:absolute;top:0;left:0;right:0;bottom:0;background-image:url('data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7');background-size:cover;}.ril__caption,.ril__toolbar{background-color:rgba(0,0,0,0.5);position:absolute;
1left:0;right:0;display:flex;justify-content:space-between;}.ril__caption{bottom:0;max-height:150px;overflow:auto;}.ril__captionContent{padding:10px 20px;color:#fff;}.ril__toolbar{top:0;height:50px;}.ril__toolbarSide{height:50px;margin:0;}.ril__toolbarLeftSide{padding-left:20px;padding-right:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;}.ril__toolbarRightSide{padding-left:0;padding-right:20px;flex:0 0 auto;}.ril__toolbarItem{display:inline-block;line-height:50px;padding:0;color:#fff;font-size:120%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.ril__toolbarItemChild{vertical-align:middle;}.ril__builtinButton{width:40px;height:35px;cursor:pointer;border:none;opacity:0.7;}.ril__builtinButton:hover{opacity:1;}.ril__builtinButton:active{outline:none;}.ril__builtinButtonDisabled{cursor:default;opacity:0.5;}.ril__builtinButtonDisabled:hover{opacity:0.5;}.ril__closeButton{background:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIj48cGF0aCBkPSJtIDEsMyAxLjI1LC0xLjI1IDcuNSw3LjUgNy41LC03LjUgMS4yNSwxLjI1IC03LjUsNy41IDcuNSw3LjUgLTEuMjUsMS4yNSAtNy41LC03LjUgLTcuNSw3LjUgLTEuMjUsLTEuMjUgNy41LC03LjUgLTcuNSwtNy41IHoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=') no-repeat center;}.ril__zoomInButton{background:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PHBhdGggZD0iTTEyIDV2NiIvPjwvZz48Y2lyY2xlIGN4PSIxMiIgY3k9IjgiIHI9IjciIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+') no-repeat center;}.ril__zoomOutButton{background:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PC9nPjxjaXJjbGUgY3g9IjEyIiBjeT0iOCIgcj0iNyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=') no-repeat center;}.ril__outerAnimating{animation-name:",";}.ril__loadingCircle{text-align:center;position:relative;}.ril__loadingCirclePoint{display:inline-block;background-color:",";margin:4px;height:10px;width:10px;animation-name:",";animation-duration:1.4s;animation-iteration-count:infinite;animation-fill-mode:both;}"," .ril__loadingCirclePoint:nth-of-type(n+6){display:none;}.ril__loadingContainer{position:absolute;top:0;right:0;bottom:0;left:0;}.ril__imagePrev .ril__loadingContainer,.ril__imageNext .ril__loadingContainer{display:none;}.ril__errorContainer{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#fff;}.ril__imagePrev .ril__errorContainer,.ril__imageNext .ril__errorContainer{display:none;}.ril__loadingContainer__icon{color:#fff;position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);}"],x,e=>{let{theme:t}=e;return t.foundation.media.color.primary.static[3]},w,[0,1,2,3,4].map(e=>(0,l.AH)([".ril__loadingCirclePoint:nth-of-type(","){animation-delay:","s;}"],e+1,(e+1)*.2))),I=m.A.renewedMedias.includes(m.A.siteShortSlug)?.66:.75,v=(e,t,i)=>{var a;let n=(0,p.A)(e,t),o=parseInt(e.width)||0,l=parseInt(e.height)||0,r=n?o>l?`${l}x${Math.round(l*I)}`:`${o}x${Math.round(o*I)}`:`${o}x`,s=i?"3:2":parseInt(e.height)>parseInt(e.width)&&e.flags?"3:4":void 0;return(0,u.si)(e,r,s,void 0,null==(a=e.flags)?void 0:a.disableAutomaticCrop).url};t.A=(0,r.Ng)(e=>({openUuid:e.ui.lightbox}),{close:g.f0.bind(null,void 0),move:g.f0})(e=>{let{article:t,openUuid:i,close:l,move:r}=e,m=o.useMemo(()=>t.body.length>0?t.body.filter(e=>"x-im/image"===e.name).map(e=>{var i,a;return{...e,src:v(e.attributes,t,(null==(a=t.leadImage)||null==(i=a.attributes)?void 0:i.uuid)===e.attributes.uuid)}}):t.leadImage&&[{...t.leadImage,src:v(t.leadImage.attributes,t,!0)}],[t.body,t.leadImage]),u=o.useMemo(()=>t.body.filter(e=>{let{name:t}=e;return"alma/aside"===t}).flatMap(e=>{let{children:t={name:"",children:[{name:""}]}}=e;return t}).flatMap(e=>{let{children:t={name:""}}=e;return t}).filter(e=>{let{name:t}=e;return"x-im/image"===t}).map(e=>({...e,src:v(e.attributes,t)})),[t.body]),p=o.useMemo(()=>t.body.filter(e=>{let{name:t}=e;return h.er.includes(t)}).flatMap(e=>{let{children:t={name:"",children:[{name:""}]}}=e;return t}).flatMap(e=>{let{children:t={name:""}}=e;return t}).filter(e=>{let{name:t}=e;return"x-im/image"===t}).map(e=>({...e,src:v(e.attributes,t)})),[t.body]),g=o.useMemo(()=>[...m||[],...u,...p],[m,u,p]);if((0,o.useEffect)(()=>(i&&g&&g.length>0&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="visible"}),[i,g]),!i||!g||0===g.length)return null;let x=(0,c.A)(g,e=>e.attributes.uuid===i),{children:w}=g[x],I=g[x].attributes.photographer,j=w?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f,{children:w.map(e=>e.value)}),I&&(0,n.jsxs)(y,{children:["Kuva: ",I]})]}):null;return(0,n.jsxs)(n.Fragment,{children:[a||(a=(0,n.jsx)(b,{})),(0,n.jsx)(s.A,{mainSrc:g[x].src,imageCaption:j,nextSrc:x<g.length-1?g[x+1].src:void 0,prevSrc:x>0?g[x-1].src:void 0,onCloseRequest:l,onMovePrevRequest:()=>r(g[(x+g.length-1)%g.length].attributes.uuid),onMoveNextRequest:()=>r(g[(x+1)%g.length].attributes.uuid),reactModalStyle:{overlay:{zIndex:d.I8["z-index"].overlay}}})]})})},Fd(e,t,i){i.d(t,{A:()=>g});var a=i("X"),n=i("u"),o=i("XE"),l=i("Pj"),r=i("tE"),s=i("Xo"),d=i("Rf"),c=i("Xi");let m=(r.Ay.div.withConfig({componentId:"sc-949109c3-0"}))(["",""],e=>{let{$noVerticalMargin:t}=e;return!t&&`margin: ${s.I8.spacing["x-large"]} 0;`});var u=(0,n.memo)(e=>{let{teaserList:t,withDivider:i,noVerticalMargin:n,customTeaser:o,adDisabled:l,disableChildrenDataGa:r,...s}=e,c=l?void 0:{5:{all:(0,a.jsx)(p,{postContent:!0,orderNumber:2,skipPlaceholder:!0,spacings:{bottom:"core.spacing.medium"}})}};return(0,a.jsx)(m,{$noVerticalMargin:n,...s,children:(0,a.jsx)(d.A,{type:"primary_with_ad",teaserList:null==t?void 0:t.slice(0,12),title:"Suosittelemme",renderAd:c,disableDataGa:r})})}),p=(0,r.Ay)(c.F0).withConfig({componentId:"sc-949109c3-1"})(["@media ","{padding-top:",";}"],s.I8.mediaquery.max["x-small"],s.I8.spacing.medium),g=e=>{let t=(0,o.wA)(),i=(0,o.d4)(e=>e.lists.mostRead.data);return n.useEffect(()=>{t((0,l.A)())},[t]),(0,a.jsx)(u,{teaserList:i,...e})}},Iyu(e,t,i){i.d(t,{A:()=>z});var a,n,o,l,r,s,d,c,m,u=i("X");i("u");var p=i("uW"),g=i("XE"),h=i("X4"),f=i("nl"),y=i("On"),x=i("A1"),w=i("kK"),b=i("pi"),I=i("lW"),v=i("XV");h.A.baseUrl,h.A.baseUrl,h.A.siteName,h.A.baseUrl,h.A.fbPage,h.A.twitterHandle.slice(1);let j=e=>{var t,i,a;let n=(()=>{let{lockedArticle:t,archivedArticle:i,regwallArticleHidden:a,loginRequiredArticleHidden:n}=e;return!t&&!i&&!a&&!n})();return(0,u.jsxs)(p.mg,{children:[(0,u.jsx)("script",{type:"application/ld+json",children:JSON.stringify((0,b.A)({"@context":"https://schema.org","@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":`${h.A.baseUrl}${I.A.location.pathname}`},headline:null==e||null==(t=e.title)?void 0:t.substring(0,140),image:(0,v.I)(e)?[(0,v.q)("696x",e),(0,v.q)("696x",e,"16:9"),(0,v.q)("696x",e,"1:1")]:{"@type":"ImageObject",url:`${h.A.baseUrl}/static/images/${h.A.siteNameSlug}_article_schema_fallback.png`},datePublished:e.published,dateModified:e.modified,author:(null==(i=e.authors)?void 0:i.length)?{"@type":"Person",name:e.authors[0]}:null,publisher:{name:h.A.siteName,"@type":"Organization",logo:{"@type":"ImageObject",height:60,width:600,url:`${h.A.baseUrl}/static/images/${h.A.siteNameSlug}_AMP_publisher_logo.png`}},description:e.preamble,isAccessibleForFree:n,hasPart:{"@type":"WebPageElement",isAccessibleForFree:n,cssSelector:".article-body"},isPartOf:(null==(a=h.A.gea)?void 0:a.productId)?{"@type":"CreativeWork",productID:h.A.gea.productId}:void 0},e=>null!=e))}),e.primaryCategory&&(0,u.jsx)("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Uutiset",item:`${h.A.baseUrl}/uutiset`},{"@type":"ListItem",position:2,name:e.primaryCategory.name,item:`${h.A.baseUrl}/aiheet/${e.primaryCategory.slug}`}]})})]})};h.A.baseUrl,h.A.baseUrl;var A=i("wN");let{baseUrl:k,description:C,nativeAppInfo:$,siteNameSlug:S,siteName:_}=h.A;var z=function(e){var t;let i,h,{article:b}=e,I=(0,g.d4)(e=>e.user),{previousLocation:v}=(0,g.d4)(e=>e.history),z=k+(0,A.Ay)(b),T=(0,x.Go)(b),E=b.seoTitle?b.seoTitle:b.title,L=(0,x.vK)(b),P=(0,x.H9)(b),N=b.themes&&b.themes.length>0,D=b.primaryCategory?[b.primaryCategory,...b.secondaryCategories||[]]:[];return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(p.mg,{children:[(0,u.jsx)("title",{children:E}),l||(l=(0,u.jsx)("meta",{name:"robots",content:"max-image-preview:large"})),r||(r=(0,u.jsx)("meta",{property:"og:type",content:"article"})),(0,u.jsx)("meta",{property:"og:title",content:T}),(0,u.jsx)("meta",{name:"twitter:title",content:T}),(0,u.jsx)("meta",{name:"description",content:b.preamble?b.preamble:C}),(0,u.jsx)("meta",{property:"og:description",content:b.preamble?b.preamble:C}),(0,u.jsx)("meta",{name:"twitter:description",content:b.preamble?b.preamble:C}),(0,u.jsx)("meta",{property:"og:image",content:L}),(0,u.jsx)("meta",{name:"twitter:image",content:L}),s||(s=(0,u.jsx)("meta",{name:"twitter:card",content:"summary_large_image"})),(0,u.jsx)("meta",{property:"og:url",content:z}),(0,u.jsx)("link",{rel:"canonical",href:b.canonicalUrl||(0,A.Ay)(b)}),d||(d=(0,u.jsx)("meta",{name:"robots",content:"noarchive"})),(0,u.jsx)("meta",{property:"article:published_time",content:b.published}),(t=b.authors)&&t.length>0?t.map(e=>[(0,u.jsx)("meta",{name:"author",content:e},e),(0,u.jsx)("meta",{property:"article:author",content:e},`article:${e}`)]):o||(o=(0,u.jsx)("meta",{property:"article:author",content:_})),(i=(0,f.dw)(b),h=(0,w.A)(I.credentials),"metered"===i&&(0,y.jZ)(b)||"paid"===i&&!h?a||(a=(0,u.jsx)("meta",{property:"k5a:paywall",content:"hard"})):n||(n=(0,u.jsx)("meta",{property:"k5a:paywall",content:"open"}))),D.map(e=>(0,u.jsx)("meta",{property:"article:tag",content:e.name},e.slug)),b.wordCount&&(0,u.jsx)("meta",{property:"article:wordcount",content:b.wordCount.toString()}),b.modified&&(0,u.jsx)("meta",{property:"article:modified_time",content:b.modified}),b.metadata.subject&&(0,u.jsx)("meta",{property:"article:section",content:b.metadata.subject}),(0,u.jsx)("meta",{property:"k5a:login",content:I.loggedIn?"1":"0"}),(0,u.jsx)("meta",{property:"k5a:subscriber",content:(0,w.A)(I.credentials)?"1":"0"}),(0,u.jsx)("meta",{property:"k5a:paid",content:"free"===(0,f.dw)(b)?"0":"1"}),(0,u.jsx)("meta",{property:"am:pw_dw",content:(0,f.dw)(b)}),P&&(c||(c=(0,u.jsx)("meta",{property:"k5a:contentTag",content:"longform-article"}))),N&&(m||(m=(0,u.jsx)("meta",{property:"k5a:contentTag",content:"theme-article"}))),(null==v?void 0:v.length)&&(0,u.jsx)("meta",{property:"k5a:referer",content:`${window.location.origin}${v[0].pathname}`}),$&&((e,t)=>{let{ios:i,android:a}=t;return[(0,u.jsx)("meta",{name:"al:ios:url",content:`https://www.${S}.fi${(0,A.Ay)(e)}`},"iosurl"),(0,u.jsx)("meta",{name:"al:ios:app_store_id",content:i.appStoreId},"appstoreid"),(0,u.jsx)("meta",{name:"al:ios:app_name",content:i.appName},"appname"),(0,u.jsx)("meta",{property:"al:android:url",content:`https://www.${S}.fi${(0,A.Ay)(e)}`},"androidurl"),(0,u.jsx)("meta",{name:"al:android:package",content:a.package},"androidpackage"),(0,u.jsx)("meta",{name:"al:android:app_name",content:a.appName},"appname")]})(b,$)]}),(0,u.jsx)(j,{...b})]})}},vy(__unused_rspack_module,__webpack_exports__,__webpack_require__){var _CoralThread,react_jsx_runtime__rspack_import_0=__webpack_require__("X"),react__rspack_import_1=__webpack_require__("u"),styled_components__rspack_import_5=__webpack_require__("tE"),react_redux__rspack_import_2=__webpack_require__("XE"),_alma_news_media_talent_media_component_library__rspack_import_6=__webpack_require__("Xo"),config__rspack_import_3=__webpack_require__("X4"),common_utils_history__rspack_import_4=__webpack_require__("lW");let CoralThread=(styled_components__rspack_import_5.Ay.div.withConfig({componentId:"sc-62a1f1a2-0"}))(["margin-top:",";"],_alma_news_media_talent_media_component_library__rspack_import_6.I8.spacing["x-large"]);function CoralComments(param){let{uuid,token,callGetToken,setShowError}=param,{darkMode}=(0,react_redux__rspack_import_2.d4)(e=>e.ui),[currentTheme,setCurrentTheme]=react__rspack_import_1.useState(darkMode?"dark-theme":"light-theme"),reRenderCommentsWithNewToken=(0,react__rspack_import_1.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];"u">typeof window&&window.coralEmbed&&(window.coralEmbed.remove(),callGetToken(),setShowError(e))},[callGetToken]);return(0,react__rspack_import_1.useEffect)(()=>{window.reRenderCoralCommentsWithNewToken=reRenderCommentsWithNewToken,window.hideCoralCommentsError=()=>setShowError(!1)},[reRenderCommentsWithNewToken,setShowError]),(0,react__rspack_import_1.useEffect)(()=>{let e=darkMode?"dark-theme":"light-theme";currentTheme!==e&&(setCurrentTheme(e),reRenderCommentsWithNewToken())},[darkMode,currentTheme,callGetToken]),(0,react__rspack_import_1.useEffect)(()=>
1{if("u">typeof window){let storyUrl=`${config__rspack_import_3.A.baseUrl}${common_utils_history__rspack_import_4.A.location.pathname}`,scriptContent=`
2                (function() {
3                    var d = document,
4                        s = d.createElement("script");
5                    var URL = "${config__rspack_import_3.A.coralDomainName}";
6                    s.src = URL + "/assets/js/embed.js";
7                    s.async = false;
8                    s.defer = true;
9                    s.onload = function() {
10                        if (typeof Coral !== 'undefined') {
11                            window.coralEmbed = Coral.createStreamEmbed({
12                                id: "coral_thread",
13                                autoRender: true,
14                                rootURL: URL,
15                                storyURL: "${storyUrl}",
16                                storyID: "${uuid}",
17                                accessToken: "${token}",
18                                containerClassName: "coral-${config__rspack_import_3.A.siteNameSlug} ${currentTheme}",
19                                events: function (events) {
20                                    events.on("loginPrompt", function () {
21                                        window.AlmaAccountCore.login({ source: 'kommentointi' });
22                                    });
23                                    // There is an issue where the token gets expired before user sends the comment.
24                                    // The token is given to coral when the coral embed is rendered, but its lifetime is only 5 minutes.
25                                    // If user sends the comment after 5 minutes, the token is expired and the comment is not sent.
26                                    // This workaround refreshes the token and re-renders the comments if such an error occurs.
27                                    // The written comment is not lost, it is saved in the browser local storage.
28                                    events.on("createComment.error", function (event) {
29                                        if (event.error.code === "USER_NOT_ENTITLED") {
30                                            window.reRenderCoralCommentsWithNewToken(true);
31                                        }
32                                    });
33                                    events.on("createComment.success", function (event) {
34                                        window.hideCoralCommentsError()
35                                    });
36                                },
37                            });
38                        } else {
39                            console.error('Coral object not found');
40                        }
41                    };
42                    s.onerror = function() {
43                        console.error('Failed to load Coral embed script');
44                    };
45                    (d.head || d.body).appendChild(s);
46                })();
47            `;try{eval(scriptContent)}catch(error){console.error("Error evaluating script:",error)}}},[token,uuid,currentTheme]),_CoralThread||(_CoralThread=(0,react_jsx_runtime__rspack_import_0.jsx)(CoralThread,{id:"coral_thread"}))}__webpack_require__.d(__webpack_exports__,{A:()=>CoralComments})},fE(e,t,i){var a=i("X"),n=i("tE");i("u");var o=i("kDx");let l=`
48    width: 100%;
49    .eo-embed-header {
50        padding: 0.3125rem;
51        flex-wrap: nowrap;
52        --eo-header-logo-r: 2.5rem;
53        --eo-header-group-basis: auto;
54        --eo-header-uuteen-margin-top: calc(
55            var(--eo-header-logo-r) * 0.2855
56        );
57    }
58    @media (max-width: 26.25rem) {
59        > a > img {
60            width: 100% !important;
61        }
62    }
63`;t.A=e=>{let{css:t,...i}=e;return(0,a.jsx)(r,{...i,$_css:t})};var r=(0,n.Ay)(o.EtuoviReactEmbed).withConfig({componentId:"sc-b6c374f0-0"})([""," ",""],l,e=>e.$_css)},J2(e,t,i){i.d(t,{hf:()=>a.A,MK:()=>o,_d:()=>l._});var a=i("Bi");i("tN");var n=i("u");let o=e=>{(0,n.useEffect)(()=>{let t=window.talent||{};t.media=e.media,window.talent=t},[e])};var l=i("W5v")},Bi(e,t,i){var a=i("XE"),n=i("kdB");t.A=()=>{let e=(0,a.d4)(e=>{var t,i,a,n;return null==(n=e.metadata)||null==(a=n.digitalData)||null==(i=a.page)||null==(t=i.attributes)?void 0:t.width})??0,t=e<n.SO.tablet,i=(0,n.Uw)(e);return{viewportWidth:e,isMobileViewport:t,contentAdStartIndex:i}}},W5v(e,t,i){var a=i("u"),n=i("XE"),o=i("WR");i.d(t,{},{_:()=>{let e=(0,n.wA)();(0,a.useEffect)(()=>(e((0,o.lq)(!0)),()=>{e((0,o.lq)(!1))}),[e])}})},j4(e,t,i){async function a(e,t){let i=Array.from(new Uint8Array(atob(e).split("").map(e=>e.charCodeAt(0)))),a=await window.crypto.subtle.importKey("raw",new TextEncoder().encode(t),{name:"AES-GCM"}
63,!1,["decrypt"]),n=await window.crypto.subtle.decrypt({name:"AES-GCM",iv:new Uint8Array(i.slice(0,12)),tagLength:128},a,new Uint8Array(i.slice(12)));return new TextDecoder("utf-8").decode(new Uint8Array(n))}async function n(e,t){try{let i=await crypto.subtle.importKey("raw",new TextEncoder().encode(t),{name:"AES-GCM"},!1,["encrypt"]),a=new TextEncoder().encode(e),n=window.crypto.getRandomValues(new Uint8Array(12)),o=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:n},i,a),l=Array.from(n).concat(Array.from(new Uint8Array(o)));return btoa(String.fromCharCode.apply(null,l))}catch(e){return console.error("Encryption failed:",e),""}}i.d(t,{w:()=>a,y:()=>n})},Ax(e,t,i){i.d(t,{},{h:e=>{let{secondaryCategories:t,primaryCategory:i}=e;return(i?[i,...t||[]]:[]).map(e=>e.name).filter(e=>""!==e)}})},qU(e,t,i){let a=["gaa_at","gaa_n","gaa_ts","gaa_sig"],n="gea_sub",o="gea_alma_email_b64";function l(){var e,t;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0===globalThis.window?"":null==(t=globalThis.window)||null==(e=t.location)?void 0:e.search,n=new URLSearchParams(i);return a.every(e=>n.get(e))?n:null}let r=new Set([n,o]),s=e=>{let t=e.indexOf("="),i=-1===t?e:e.slice(0,t);try{return decodeURIComponent(i.replace(/\+/g," "))}catch{return i}};function d(e,t){if(void 0===t||""===t)return;for(let e of a)if(!t.includes(`${e}=`))return;let i=t.startsWith("?")?t.slice(1):t;if(""===i)return;let n=[];for(let e of i.split("&"))if(e.length>0){let t=s(e);r.has(t)||n.push(e)}if(0!==n.length)return`${e}?${n.join("&")}`}i.d(t,{CA:()=>l,zX:()=>d},{Pw:n,WS:o})},On(e,t,i){var a=i("Z2"),n=i("X4"),o=i("Gg"),l=i("O1"),r=i("j4");let s=async(e,t,i,l,s)=>{let d=n.A.subscriptionSelfService,c=new URLSearchParams;if(c.append("returnUrl",window.location.href),l&&c.append("pageId",l),c.append("origin",`${n.A.siteShortSlug}-web`),t){let e=await (null===a.I8||void 0===a.I8?void 0:a.I8.getUserInfo()),t=null==e?void 0:e["https://almamedia.net/almaIDHash"];c.append("almaIdHash",t??"unauthenticated")}else{if(i){let e=await (0,r.y)(i,"f3cd644dec8947bb63b2beb56c6dfa4c");e&&c.append("email",e)}c.append("almaIdHash","unauthenticated")}return(0,o.Pg)(c,s,l),`${d}/tilaus/artikkeli/${n.A.siteShortSlug}/${e.number}?${c.toString()}`},d=e=>e.lockedArticleHidden||e.loginRequiredArticleHidden||e.paywallArticleHidden||e.regwallArticleHidden||e.archivedArticleHidden;i.d(t,{},{K0:e=>{var t;return!!e&&((null==e?void 0:e.packageId)==="DIGI_PR"||(null==e||null==(t=e.papers)?void 0:t.length)>1&&(null==e?void 0:e.papers.some(e=>"DIGI_PR"===e.packageId)))},QM:e=>e.lockedArticleHidden||e.archivedArticleHidden&&"subscription"===e.archivedArticleMode,Tt:(e,t)=>({YY:"v",MM:t>1?`${t} kk`:`${t}. kk`})[e]??e,_V:s,aq:(e,t,i)=>i.flags["display-article-wall"].value||d(t)||((e,t)=>{let{loggedIn:i,needsVerification:a}=e,n=void 0!==e.almaIdHash,o=(0,l.F3)(e),r=t.lockedArticle;return i&&a&&n&&o&&r})(e,t)||t.giftArticleHidden,jZ:e=>e.loginRequiredArticleHidden||e.regwallArticleHidden||e.archivedArticleHidden&&"registration"===e.archivedArticleMode,zq:d})},jyS(e,t,i){function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",i=document.querySelector(e);i&&i.scrollIntoView({behavior:t})}i.d(t,{A:()=>a})},Gg(e,t,i){i("XE"),i("u");var a=i("X4");i("WR"),i("cX");var n=i("HH");i("O1");var o=i("a"),l=i("nl");i("k5");let r=!1,s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;return new Promise(t=>{var i,a,n;if(null==(n=globalThis.window)||null==(a=n.sophi)||null==(i=a.dataLayer)?void 0:i.trace)return void t();let o=setInterval(()=>{var e,i,a;(null==(a=globalThis.window)||null==(i=a.sophi)||null==(e=i.dataLayer)?void 0:e.trace)&&(clearInterval(o),clearTimeout(l),t())},20),l=setTimeout(()=>{clearInterval(o),t()},e)})},d=async()=>{!a.A.sophiFeatureEnabled||r||(r=!0,await s(1e4),(0,o.UZ)({event:"sophi_purchase_ready"}))},c=async e=>{var t,i;await (t={args:e},!(null==(i=globalThis.window)?void 0:i.demeter)?(console.error("Demeter is not available"),Promise.resolve(void 0)):new Promise(e=>{try{let i=globalThis.window.demeter("userProperties",t);Promise.resolve(i).then(e).catch(t=>{console.error("Demeter call failed:",t),e(void 0)})}catch(t){console.error("Demeter call failed (synchronous error):",t),e(void 0)}}))},m=async(e,t)=>a.A.sophiFeatureEnabled&&t&&(0,n.DK)(e)?Promise.race([c({2:!0}),new Promise(e=>setTimeout(e,250))]):Promise.resolve();i.d(t,{},{Kf:d,Pg:(e,t,i)=>{var n,o,r,s,d,c,m,u,p;if(!a.A.sophiFeatureEnabled)return;let g=null==(o=globalThis.window)||null==(n=o.sophi)?void 0:n.dataLayer,h=null==(r=globalThis.window)?void 0:r.digitalData,f=(t,i)=>
63{null!=i&&""!==i&&e.append(t,String(i))};f("sophi_inputs",null==g?void 0:g.inputs),f("sophi_context",null==g?void 0:g.context),f("sophi_trace_id",null==g?void 0:g.trace),f("test_object",null==g?void 0:g.experimentsCode),f("page_id",i||(null==h||null==(c=h.page)||null==(d=c.attributes)||null==(s=d.content)?void 0:s.cid)||(null==t?void 0:t.uuid)),f("wall_type",null==h||null==(p=h.page)||null==(u=p.attributes)||null==(m=u.paywall)?void 0:m.type),f("original_wall_status",t?(0,l.f)(t)||"free":null)},pG:m})},UC(e,t,i){let a;i.d(t,{A:()=>sO});var n,o,l,r,s,d,c,m,u,p,g,h,f,y,x,w,b,I,v,j,A,k,C,$,S,_,z,T,E,L,P,N,D,M,R,H,U,q,O,B,V,G,W,F,Z,K,X,J,Q,Y,ee,et,ei,ea,en,eo,el,er,es,ed,ec,em,eu,ep,eg,eh,ef,ey,ex,ew,eb,eI,ev,ej,eA,ek,eC,e$,eS,e_,ez,eT,eE,eL=i("X"),eP=i("u"),eN=i("tE"),eD=i("bI"),eM=i("XE"),eR=i("Xo"),eH=i("GK"),eU=i("Le"),eq=i("X4m"),eO=i("WV"),eB=i("RL"),eV=i("X4"),eG=i("J2"),eW=i("t8");let eF=(e,t)=>({attributes:{type:"articleAd",orderNo:e,outstream:t},name:"articleAd"});var eZ=i("kdB");let eK={am:3,ap:2,kl:2,te:3,tt:5,tv:5,us:5};var eX=function(e){let{longform:t,liveArticle:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{viewportWidth:a,contentAdStartIndex:n}=(0,eG.hf)();return(0,eP.useMemo)(()=>"kl"===eV.A.siteShortSlug&&t||i||!a?e.body:(e=>{let{article:t,contentAdStartOrderNo:i=2,firstPosition:a=3,repeat:n=3,repeatInterval:o=9,endMargin:l=2,outstreamPosition:r=7,outstream
63:s=!0}=e;if(-1!==(0,eW.A)(t.body,e=>"articleAd"===e.name))return t.body;let d=0,c=0,m=[];for(let e=0;e<t.body.length;e++){if("body"===t.body[e].name)if(++d%(o+1)===a&&m.length<n&&t.body.length-e>l&&(0===c||"body"===t.body[e-1].name&&e<t.body.length-1&&"body"===t.body[e+1].name)){if(m.push({i:e,ad:eF(i+c,!1)}),c++,m.length===n)break}else d===r&&s&&m.push({i:e,ad:eF(1,!0)});e!==t.body.length-1||m.length||m.push({i:e,ad:eF(i,!1)})}let u=t.body.slice(0);return m.forEach(e=>{let{i:t,ad:i}=e;return u.splice(t+1,0,i)}),u})({article:{...e,body:e.body.filter(e=>"articleAd"!==e.name)},contentAdStartOrderNo:n,repeatInterval:{am:9,ap:12,kl:12,te:9,tt:a<eZ.SO.tablet?9:12,tv:a<eZ.SO.tablet?9:12,us:9}[eV.A.siteShortSlug],repeat:eK[eV.A.siteShortSlug],outstream:"tv"===eV.A.siteShortSlug}),[e,t,i,a,n])},eJ=i("WJ"),eQ=i("F6y"),eY=i("Km"),e0=i("JF");let e8=["alma/qualifio-embed"],e1=(eN.Ay.span.withConfig({componentId:"sc-4e2d3235-0"}))(["box-shadow:0 4px #ffe99c;"]);var e2=i("Hw");let e5=(eN.Ay.div.withConfig({componentId:"sc-9cc81921-0"}))(["max-width:100%;margin-bottom:",";iframe,> *{max-width:100%;}@media ","{margin-bottom:",";}"],eR.I8.spacing["x-large"],eR.I8.mediaquery.max["x-small"],eR.I8.spacing.large);e5.childNodes={format:null,text:e=>{let t=(0,eP.useId)();return(0,eP.useEffect)(()=>{let e=e=>{if(e.data){var i,a;if(e.origin!==eV.A.assetApiUrl)return;let n=null==(a=document.getElementById(`ext-${t}`))||null==(i=a.children)?void 0:i[0];null!==n&&(null==n?void 0:n.tagName)==="IFRAME"&&n.contentWindow===e.source&&e.data.contentHeight&&(n.style.height=`${e.data.contentHeight}px`)}};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[t]),(0,eL.jsx)(eL.Fragment,{children:e.value?(0,eL.jsx)(e2.A,{html:e.value,id:t}):e.children})}};var e4=i("fq");let e3=(eN.Ay.pre.withConfig({componentId:"sc-51cd08a-0"}))(["font-family:monospace;line-height:1.5625;color:",";"],e4.Ay.colors.text);var e6=()=>e=>e.children,e9=i("eJ"),e7=i("HH"),te=i("hK"),tt=i("h8");let ti=(eN.Ay.div.withConfig({componentId:"sc-35a2236-0"}))(["display:flex;"]),ta=(eN.Ay.div.withConfig({componentId:"sc-35a2236-1"}))(["font-size:",";color:",";line-height:",";padding:30px 15px;margin:"," auto "," auto;max-width:21.875rem;border:solid 1px #ddd;text-align:center;"],eR.I8.font.scale["0"],eR.I8.color.primary.foreground,eR.I8["line-height"].medium,eR.I8.spacing.medium,eR.I8.spacing["x-large"]);var tn=e=>{let{requiredPurposes:t=[]}=e;async function i(){var e;let i=null==(e=window.ALMA)?void 0:e.cmpV3;if("function"==typeof(null==i?void 0:i.giveConsentToPurpose))try{await i.giveConsentToPurpose(t)}catch(e){console.error("Failed to give consent to purposes:",e)}}let a=(e=>{if(0===e.length)return"tarvittavat evästeet";let t={functional:"toiminnalliset evästeet",analytics:"analytiikkaevästeet",marketing_and_advertising:"markkinointi- ja mainosevästeet",social_media:"sosiaalisen median evästeet",personalization:"personointi evästeet",sharing_target_groups_for_campaign_use:"kohderyhmien jakaminen evästeet",location:"sijaintievästeet",fiam_measurement:"sovelluksen mittausevästeet"},i=e.map(e=>t[e]??e);if(1===i.length)return i[0];if(2===i.length)return`${i[0]} ja ${i[1]}`;let a=i.pop();return`${i.join(", ")} ja ${a}`})(t),n=(0,eL.jsxs)(tt.Ay,{onClick:e=>{e.preventDefault(),i()},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),i())},borderType:"light",tabIndex:0,children:["hyväksy ",a,"."]});return(0,eL.jsx)(ti,{children:(0,eL.jsxs)(ta,{children:["Sisältöä ei voida näyttää evästeasetuksien vuoksi. Nähdäksesi sisällön, ",n]})})};let to=(eN.Ay.div.withConfig({componentId:"sc-f7d405a7-0"}))(["margin:1rem;min-height:4rem;"]),tl=(eN.Ay.div.withConfig({componentId:"sc-f7d405a7-1"}))(["margin:15px 0;padding:30px 15px;text-align:center;line-height:1.4;border:solid 1px #ddd;p{margin:0px;}"]),tr=e=>({consentV3:e.user.consentV3});(0,eM.Ng)(tr);var ts=(0,eM.Ng)(tr)(function(e){let{checkConsent:t,consentV3:i,children:a}=e,[l,r]=eP.useState(!1);if(eP.useEffect(()=>{let e=setTimeout(()=>{i.consentsLoaded||r(!0)},15e3);return()=>{clearTimeout(e)}},[i.consentsLoaded]),l&&!i.consentsLoaded)return n||(n=(0,eL.jsx)(tl,{children:(0,eL.jsxs)("p",{children:["Sisältöä ei voitu ladata.",(0,eL.jsx)("br",{}),"Tämä voi johtua selainlaajennuksesta."]})}
63));if(!i.consentsLoaded)return o||(o=(0,eL.jsx)(to,{children:(0,eL.jsx)(te.A,{size:"core.size.icon.large",text:"Ladataan...",useMediaColors:!0})}));if(t(i))return a;let s=(0,e7.Lv)(t);return(0,eL.jsx)(tn,{requiredPurposes:s})});let td=(eN.Ay.div.withConfig({componentId:"sc-94cd7686-0"}))(["",""],e=>{let{theme:t}=e;return"te"===t.foundation.media.mediaToken&&(0,eN.AH)(["margin:0 auto;"])}),tc=(eN.Ay.div.withConfig({componentId:"sc-94cd7686-1"}))(["width:100%;height:auto;overflow:hidden;position:relative;padding-bottom:56.25%;margin-bottom:",";iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0;}"],e=>{let{theme:t}=e;return"te"===t.foundation.media.mediaToken?`calc(${eR.I8["line-height"].medium} * ${eR.I8.font.scale["2"]})`:"0.9375rem"});var tm=i("Pc");let tu=(eN.Ay.strong.withConfig({componentId:"sc-fbb50ce-0"}))(["float:left;font-size:16px;line-height:1.54625;color:",";letter-spacing:1px;text-transform:uppercase;&::after{content:'—';margin:0 5px;}"],eR.I8.color.primary["5"]);var tp=i("vD");let tg=(eN.Ay.div.withConfig({componentId:"sc-7bfb0fc5-0"}))(["max-width:100%;iframe,> *{max-width:100%;}html.theme-dark & iframe{color-scheme:dark;}@media (prefers-color-scheme:dark){& iframe{color-scheme:dark;}}"]);tg.childNodes={format:null,text:e=>{let t=(0,eM.d4)(e=>e.ui.darkMode);return e.value?(0,eL.jsx)(e2.A,{html:((e,t)=>{if(eV.A.darkModeAvailable&&t){let t=/src=['"](?:[^"'\/]*\/)*([^'"]+)['"]/g,i=e.match(t);if(i&&i.length>0)return e.replace(t,`${i[0].slice(0,-1)}?dark=true"`)}return e})(e.value,t),id:`a${Math.floor(1e5*Math.random()).toString()}`}):e.children}};var th=i("Xj");let tf=(eN.Ay.div.withConfig({componentId:"sc-7c0f48bc-0"}))(["width:","px !important;max-width:none !important;margin-left:","px;iframe,> *{max-width:none !important;width:100% !important;}"],e=>e.width,e=>e.marginLeft),ty=(eN.Ay.div.withConfig({componentId:"sc-7c0f48bc-1"}))(["margin-bottom:",";@media ","{margin-bottom:",";}"],eR.I8.spacing["x-large"],eR.I8.mediaquery.max["x-small"],eR.I8.spacing.large),tx=e=>"tv"===e||"tt"===e?1170:1200,tw=(e,t)=>"te"===e?t?16:32:t?15:30;var tb=e=>{let{size:t,children:i,...a}=e,[n,o]=eP.useState(!1),[l,r]=eP.useState("u">typeof window?document.documentElement.clientWidth:0),[s,d]=eP.useState(0);eP.useEffect(()=>{o(!0);let e=(0,th.A)(()=>{"u">typeof window&&r(document.documentElement.clientWidth)},500);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let c=eP.useCallback(e=>{if(e&&e.parentElement){if(l<tx(eV.A.siteShortSlug))return d(-(e.getBoundingClientRect().x-tw(eV.A.siteShortSlug,!0)));d((l-tx(eV.A.siteShortSlug))/2-e.parentElement.getBoundingClientRect().x+tw(eV.A.siteShortSlug,!0))}},[l]);if("u"<typeof window||!n)return null;if("fullscreen"===t)return(0,eL.jsx)(tf,{width:l<tx(eV.A.siteShortSlug)?l-tw(eV.A.siteShortSlug):tx(eV.A.siteShortSlug)-tw(eV.A.siteShortSlug),marginLeft:s,ref:c,...a,children:i});return(0,eL.jsx)(ty,{...a,children:i})};let tI=e=>{let{attributes:t,children:i}=e;return(0,eL.jsx)(tb,{size:null==t?void 0:t.size,children:i})};tI.childNodes={format:null,code:tg};let tv=(eN.Ay.div.withConfig({componentId:"sc-ee3e9a2d-0"}))(["margin-bottom:0.9375rem;clear:both;"]),tj="InfogramEmbeds",tA=e=>{null!=e&&window[tj]&&window[tj].process()};var tk=(0,eN.Ay)(tb).withConfig({componentId:"sc-ee3e9a2d-1"})(["iframe{background-color:",";}"],eR.I8.color.primary.static.white);let tC=(eN.Ay.iframe.withConfig({componentId:"sc-cfb90e19-0"}))(["width:100%;height:","px;border:none;overflow:hidden;margin-bottom:14px;"],e=>{let{initialHeight:t}=e;return t}),t$=(0,eN.Ay)(eO.D.Subtitle).withConfig({componentId:"sc-ec360c9b-0"})(["margin-top:",";margin-bottom:",";"],eR.I8.spacing["xx-large"],eR.I8.spacing["x-large"]);var tS=i("G1"),t_=i("ge"),tz=i("pG"),tT=i("wN");let{mediaShortSlugs:tE,siteShortSlug:tL,baseUrl:tP}=eV.A,tN=(0,eN.Ay)(tt.Ay).withConfig({componentId:"sc-34e5494e-0"})(["display:flex;margin-bottom:calc("," * ",");span{text-underline-offset:",";}"],eR.I8["line-height"].medium,eR.I8.font.scale["2"],eR.I8.size["xxxxx-small"]);var tD=(0,eN.Ay)(tN).withConfig({componentId:"sc-34e5494e-1"})(e=>({color:e.$_css3}));let tM=(0,eN.Ay)(tt.Ay).withConfig({componentId:"sc-34e5494e-2"})(["font-size:inherit;font-family:inherit;font-weight:inherit;word-break:break-word;span{text-underline-offset:",";}"],eR.I8.size["xxxxx-small"]),tR=(0,eN.Ay)(tt.Ay).withConfig({componentId:"sc-34e5494e-3"})(["display:block;margin-bottom:calc("," * ",");"],eR.I8["line-height"].medium,eR.I8.font.scale["1"]);var tH=(0,eN.Ay)(tR).withConfig({componentId:"sc-34e5494e-4"})(["",""],e=>e.$_css),tU=e=>{let{children:t,attributes:i,...a}=e,n=(0,eN.DP)(),o=null==t?void 0:t.some(e=>{var t,i,a,n;return(null==e||null==(t=e.props)?void 0:t.value)&&"string"==typeof(null==e||null==(i=e.props)?void 0:i.value)&&(null==e||null==(a=e.props)?void 0:a.value.length)!==(null==e||null==(n=e.props)?void 0:n.value.trimEnd().length)});if("id"in i&&"newsletter-link"===i.id&&"href"in i)return(0,eL.jsxs)(eL.Fragment,{children:[(0,eL.jsx)(tH,{href:i.href,externalLink:!0,borderType:"light",$_css:i.css,children:t}),o&&(l||(l=(0,eL.jsx)(eL.Fragment,{children:" "})))]});if("href"in i){let e=!i.href.includes(tP);return(0,eL.jsxs)(eL.Fragment,{children:[(0,eL.jsx)(tq,{href:i.href,customComponent:(0,eL.jsx)(tM,{externalLink:e,borderType:"light",children:t},i.id),target:e?"_blank":"_self",$_css2:i.css}),o&&(r||(r=(0,eL.jsx)(eL.Fragment,{children:" "})))]})}let{uuid:s,title:d,media:c=tL}=i,m=(0,tT.pD)(c,`/uutiset/a/${s}`),u=!tE.split(",").includes(c);return(0,eL.jsx)(tz.Ay,{href:m,target:u?"_blank":"_self",customComponent:(0,eL.jsx)(tD,{icon:(0,eL.jsx)(t_.A,{size:"core.size.
63icon.small",color:`${n.foundation.media.mediaToken}.color.primary.4`}),textHoverColor:"core.color.primary.foreground",borderType:"light",borderColor:"core.color.border.6",borderHoverColor:`${n.foundation.media.mediaToken}.color.primary.3`,iconPosition:"left",...a,$_css3:eR.I8.color.primary.foreground,children:d})})},tq=(0,eN.Ay)(tz.Ay).withConfig({componentId:"sc-34e5494e-5"})(["",""],e=>e.$_css2);let tO=(eN.Ay.p.withConfig({componentId:"sc-bdfba0a-0"}))(["font-size:",";line-height:",";",";"],eR.I8.font.scale["0"],eR.I8["line-height"].medium,e=>{let{theme:t}=e;return t.foundation.media.type.body.facts.normal}),tB=(0,eN.Ay)(tS.g).withConfig({componentId:"sc-bdfba0a-1"})(["p,h3{margin-block:unset;}ol,ul{padding:0;}@media ","{h2{font-size:",";}}strong{",";}i{",";font-style:normal;}"],eR.I8.mediaquery.max.small,eR.I8.font.scale["2"],e=>{let{theme:t}=e;return t.foundation.media.type.body.facts.heavy},e=>{let{theme:t}=e;return t.foundation.media.type.body.facts.normal});var tV=(0,eN.Ay)(tB).withConfig({componentId:"sc-bdfba0a-2"})(["@media ","{margin:0 0 calc( "," * "," );}"],eR.I8.mediaquery.max["x-small"],eR.I8["line-height"].medium,eR.I8.font.scale["2"]);let tG=(0,eN.Ay)(eO.D.Subtitle).withConfig({componentId:"sc-bdfba0a-3"})(["",";"],e=>{let{theme:t}=e;return t.foundation.media.type.body.facts.heavy}),tW=["talent/sidebar","alma/aside","readmore"],tF=["articleAd","alma/graffa-embed","talent/embed","x-im/htmlembed","alma/qualifio-embed","x-im/image"],tZ=e=>{var t;let{children:i,attributes:a,article:n,index:o}=e,l=n.body.filter(e=>!e.extra),r=o!==l.length-1&&tF.includes(null==n||null==(t=n.body[o+1])?void 0:t.name),s=l.slice(o).every(e=>tW.includes(e.name));return(0,eL.jsxs)(tV,{fullWidth:r||s||"center"===a.alignment,children:[a&&a.title&&(0,eL.jsx)(tG,{decorationType:"fact",size:"medium",level:"span",children:a.title}),i]})};tZ.childNodes={body:tO,subheadline:eO.D.Subtitle,subheadline1:eO.D.Subtitle,"x-im/link":e=>{let{attributes:t,children:i}=e;return(0,eL.jsx)(tK,{attributes:t,borderType:void 0,borderColor:void 0,borderHoverColor:"core.color.primary.foreground",icon:s||(s=(0,eL.jsx)(t_.A,{size:"core.size.
63icon.small",color:"core.color.primary.foreground"})),children:i})}};var tK=(0,eN.Ay)(tU).withConfig({componentId:"sc-bdfba0a-4"})({marginBottom:0}),tX=i("zQ"),tJ=i("Ag"),tQ=i("Xi");let tY=(0,eN.Ay)(tQ.Vh).withConfig({componentId:"sc-4a589291-0"})([""," > ","{clear:both;position:relative;margin:1.875rem 0;padding:0.9375rem 0;}"],e=>{let{$adShown:t}=e;return t&&(0,eN.AH)(["overflow:hidden;clear:both;"])},eV.A.lazyLoadAds?"div > div:not(:empty)":"div:not(:empty)"),t0=(0,eN.Ay)(tX.A).withConfig({componentId:"sc-4a589291-1"})(["display:",";"],e=>{let{$hide:t}=e;return t?"none":"block"}),t8=(0,eN.Ay)(tQ.Ad).withConfig({componentId:"sc-4a589291-2"})(["> div:not(:empty){margin-bottom:1.875rem !important;}"]),t1=e=>{let{children:t,hide:i}=e,a=(0,eN.DP)();return(0,eL.jsxs)(eL.Fragment,{children:[(0,eL.jsx)(t0,{$hide:i,thickness:"core.size.xxxxx-small",color:"core.color.border.2",spacing:{size:"core.spacing.medium",sides:["bottom"]},labelColor:"core.color.primary.4",labelBackground:`theme1.${a.foundation.theme.context}.color.base.1`,label:"Artikkeli jatkuu mainoksen jälkeen"}),t,(0,eL.jsx)(t0,{$hide:i,thickness:"core.size.xxxxx-small",color:"core.color.border.2",spacing:{size:"core.spacing.medium",sides:["top"]},className:(0,eH.A)("bottom","x-large")})]})},t2=e=>{let{attributes:t}=e,{orderNo:i,outstream:a}=t,[n,o]=eP.useState(!1),l=(0,eZ.Jc)("tablet");return(0,eL.jsx)(tY,{$adShown:n,children:a?(0,eL.jsx)(t1,{hide:!n,children:(0,eL.jsx)(t8,{setAdShown:o,id:`almad-outstream-${i}`})}):(0,eL.jsxs)(eL.Fragment,{children:[(0,eL.jsx)(tJ.A,{viewportFrom:l,children:(0,eL.jsx)(t1,{hide:!n,children:(0,eL.jsx)(tQ.Ad,{setAdShown:o,id:`almad-content-${i}`})})}),(0,eL.jsx)(tJ.A,{viewportTo:l,children:(0,eL.jsx)(t1,{hide:!n,children:(0,eL.jsx)(tQ.Ad,{setAdShown:o,id:`almad-content-${i}`})})})]})})};var t5=e=>{let{attributes:t}=e;return eV.A.lazyLoadAds?(0,eL.jsx)(eD.Ay,{offset:300,children:(0,eL.jsx)(t2,{attributes:t})}):(0,eL.jsx)(t2,{attributes:t})},t4=i("Ci");let t3=e=>{let{children:t,...i}=e;return(0,eL.jsx)(t6,{as:"ul",...i,children:t})};t3.childNodes={"list-item":t4.B.UnorderedListItem};var t6=(0,eN.Ay)(t4.B).withConfig({componentId:"sc-53bf8c62-0"})({marginBottom:"calc(var(--core-line-height-medium) * var(--core-font-scale-2))"});let t9=e=>{let{children:t,...i}=e;return(0,eL.jsx)(t7,{as:"ol",...i,children:t})};t9.childNodes={"list-item":t4.B.OrderedListItem};var t7=(0,eN.Ay)(t4.B).withConfig({componentId:"sc-563ce144-0"})({marginBottom:"calc(var(--core-line-height-medium) * var(--core-font-scale-2))"}),ie=i("lN"),it=e=>{let{children:t,attributes:i}=e;return(0,eL.jsx)(ii,{$_css:`calc(${eR.I8["line-height"].medium} * ${eR.I8.font.scale["2"]})`,children:(0,eL.jsx)(ie.u.Content,{children:t})})},ii=(0,eN.Ay)(ie.u).withConfig({componentId:"sc-4a265113-0"})(e=>({maxWidth:"100ch",marginBottom:e.$_css})),ia=i("zP"),io=i("D1"),il=i("v8d"),ir=i("GS"),is=i("AF"),id=i("VM"),ic=i("Es"),im=i("jk"),iu=i("lW"),ip=i("On"),ig=i("gV"),ih=i("A1"),iy=i("NI");let ix=(eN.Ay.div.withConfig({componentId:"sc-deb89226-0"}))(["width:40.445%;float:right;margin-bottom:",";@media ","{float:none;width:100%;}"],eR.I8.spacing.medium,eR.I8.mediaquery.max["x-small"]),iw=(eN.Ay.div.withConfig({componentId:"sc-deb89226-1"}))(["display:flex;position:relative;z-index:1;flex-direction:column;gap:",";padding-bottom:",";margin:0 0 "," ",";"," img{width:",";height:",";}@media ","{margin-left:0;}"],eR.I8.spacing["x-small"],eR.I8.spacing["x-small"],eR.I8.spacing["x-small"],eR.I8.spacing.medium,e=>{let{$hideBottomBorder:t}=e;return!t&&`border-bottom: ${eR.I8.border["x-small"]} solid ${eR.I8.color.border["2"]};`},eR.I8.size["xx-large"],eR.I8.size["xx-large"],eR.I8.mediaquery.max["x-small"]),ib=(eN.Ay.div.withConfig({componentId:"sc-deb89226-2"}))(["display:flex;padding-bottom:",";border-bottom:"," solid ",";",""],eR.I8.spacing["x-small"],eR.I8.border["x-small"],eR.I8.color.border["2"],e=>{let{$isModified:t}=e;return t&&`
64            @media ${eR.I8.mediaquery.min.small} and ${eR.I8.mediaquery.max.medium} {
65                flex-direction: column;
66            }
67    `}),iI=(eN.Ay.div.withConfig({componentId:"sc-deb89226-3"}))(["display:flex;flex-direction:row;"]);var iv=e=>{let t,{article:i,hasWritersPage:a,user:n,authorsOverride:o=[],showAnnouncementIcon:l,showOpinionIcon:r,...s}=e,[p,g]=(0,eP.useState)(!1),h=(0,eM.d4)(e=>e.featureFlags),f=new URLSearchParams(iu.A.location.search),y=!(0,ia.H)(new Date(i.published),new Date(i.modified)),x=(0,ip.aq)(n,i,h)||"true"===f.get("paymentOk"),w=!x&&null===f.get("gift")&&(0,ih.PQ)(i),b=(t=null==i?void 0:i.authorDetails,x&&((null==t?void 0:t.length)??0)<3?null==t?void 0:t.slice(0,1):t),I=(null==b?void 0:b.length)?b:o,v=(0,eP.useMemo)(()=>
67l?d||(d=(0,eL.jsx)(io.A,{size:"core.size.icon.medium"})):r?c||(c=(0,eL.jsx)(il.A,{size:"core.size.icon.medium"})):void 0,[l,r]);return(null==I?void 0:I.length)?(0,eL.jsxs)(ix,{children:[(0,eL.jsxs)(iw,{$hideBottomBorder:x||(null==I?void 0:I.length)===0,...s,children:[i.dateline&&(0,eL.jsx)(ij,{text:i.dateline||"",icon:m||(m=(0,eL.jsx)(ir.default,{size:"core.size.icon.medium",color:"core.color.primary.foreground"}))}),(0,eL.jsxs)(ib,{$isModified:y,children:[(0,eL.jsx)(eq.m.Timestamp,{date:i.published,format:"d.M.yyyy HH:mm",noDivider:!0}),y&&(0,eL.jsxs)(iI,{children:[(0,eL.jsx)(iA,{thickness:"core.size.line.thin",vertical:!0,color:"core.color.border.2",spacing:{size:"core.size.xx-small",sides:["left","right"]}}),(0,eL.jsx)(iC,{text:"Päivitetty",noDivider:!0}),(0,eL.jsx)(eq.m.Timestamp,{date:i.modified,format:"d.M.yyyy HH:mm",lowerCase:!0,noDivider:!0})]})]}),(0,eL.jsx)(is.A,{disabled:x,"aria-disabled":x,children:null==I?void 0:I.map(e=>{let t=e.isBlogger&&e.nameSlug?`/bloggaaja/${e.nameSlug}`:a&&e.nameSlug?`/kirjoittaja/${e.nameSlug}`:void 0;return(0,eL.jsx)(id.A,{name:e.name,imageSrc:(0,ig.A)({authorDetails:[e]},"66x66"),renderNameLink:t?e=>(0,eL.jsx)(tz.Ay,{href:t,customComponent:e}):void 0,customIcon:v},`${e.id}_${e.name}`)})})]}),w&&(0,eL.jsx)(iy.U,{location:"byline",isOpen:p,setIsOpen:g,shareAsGift:!0,trigger:(0,eL.jsx)(ik,{icon:u||(u=(0,eL.jsx)(ic.A,{size:"core.size.
67icon.medium"})),children:"Lahjoita juttu"})})]}):null},ij=(0,eN.Ay)(eU.A).withConfig({componentId:"sc-deb89226-4"})(["padding:"," "," calc( "," + "," ) 0;border-bottom:"," solid ",";"],eR.I8.spacing["xx-small"],eR.I8.spacing["xx-small"],eR.I8.spacing["xx-small"],eR.I8.spacing["xx-small"],eR.I8.border["x-small"],eR.I8.color.border["3"]),iA=(0,eN.Ay)(tX.A).withConfig({componentId:"sc-deb89226-5"})(["height:0.813rem;@media "," and ","{display:none;}"],eR.I8.mediaquery.min.small,eR.I8.mediaquery.max.medium),ik=(0,eN.Ay)(im.A).withConfig({componentId:"sc-deb89226-6"})(["margin-left:",";@media ","{margin-left:0;padding-left:0;}"],eR.I8.spacing["xxx-small"],eR.I8.mediaquery.max["x-small"]),iC=(0,eN.Ay)(eq.m.Label).withConfig({componentId:"sc-deb89226-7"})(["text-transform:none;padding-right:",";"],eR.I8.spacing["xx-small"]);let i$=e=>{var t,i;return(null==(t=e.primaryCategory)?void 0:t.slug)==="porssitiedotteet"||(null==(i=e.primaryCategory)?void 0:i.slug)==="lehdistotiedotteet"},iS=[{name:eV.A.siteName,nameSlug:""}],i_=["ap","kl","te","tt","us"];var iz=e=>{var t;let{article:i}=e,a=(0,eM.d4)(e=>e.user),n=!(null==i||null==(t=i.authorDetails)?void 0:t.length);return(0,eL.jsx)(iv,{article:i,user:a,authorsOverride:n?i$(i)&&i.contentSource?[{name:i.contentSource,nameSlug:""}]:iS:void 0,hasWritersPage:i_.includes(eV.A.siteShortSlug),showOpinionIcon:"10000011"===i.subjectCode,showAnnouncementIcon:i$(i)})},iT=i("DW"),iE=i("tN");let iL=(eN.Ay.blockquote.withConfig({componentId:"sc-adbc4311-0"}))(["display:flex;justify-content:center;margin:0 0 calc("," * ",") 0;> iframe{min-width:0 !important;width:100%;max-width:22rem;}"],eR.I8["line-height"].medium,eR.I8.font.scale["2"]),iP=(eN.Ay.blockquote.withConfig({componentId:"sc-11604e1a-0"}))(["margin:0 0 calc("," * ",") 0;text-align:center;> div > span{max-width:22rem;background:",";}"],eR.I8["line-height"].medium,eR.I8.font.scale["2"],eR.I8.color.primary.static["foreground-inverse"]),iN=(eN.Ay.blockquote.withConfig({componentId:"sc-84c4049-0"}))(["margin:0 0 calc("," * ",") 0;> div{display:flex;justify-content:center;width:100%;}"],eR.I8["line-height"].medium,eR.I8.font.scale["2"]);function iD(e){let{dispatch:t}=e,i=(0,eP.useRef)(null);return(0,eP.useEffect)(()=>{t({type:"set",payload:i.current})},[t]),(0,eL.jsx)(iN,{children:(0,eL.jsx)("div",{ref:i})})}function iM(e,t){return"set"===t.type?{ref:t.payload}:{ref:null}}let iR=(eN.Ay.td.withConfig({componentId:"sc-e58e4e03-0"}))(["padding:",";&:first-child{",";text-align:left;}> p{",";font-size:",";&:only-child{margin:0;}}"],eR.I8.spacing.small,e=>{let{theme:t}=e;return t.foundation.media.type.ui.heavy},e=>{let{theme:t}=e;return t.foundation.media.type.ui.normal},eR.I8.font.scale["-1"]),iH=(eN.Ay.figure.withConfig({componentId:"sc-3d5bd732-0"}))(["overflow-x:auto;width:100%;margin:"," 0;border:"," "," solid;"],eR.I8.spacing.medium,eR.I8.color.border["1"],eR.I8.border["x-small"]),iU=(eN.Ay.table.withConfig({componentId:"sc-3d5bd732-1"}))(["",";width:100%;font-size:",";border-collapse:collapse;td{text-align:right;}tr{background:",";&:first-child{font-weight:bold;td{",";border-bottom:"," 1px solid;}}&:nth-child(even){background:",";}}"],e=>{let{theme:t}=e;return t.foundation.media.type.ui.normal},eR.I8.font.scale["-1"],eR.I8.color.primary["foreground-inverse"],e=>{let{theme:t}=e;return t.foundation.media.type.ui.normal},e4.Ay.colors.default_border,eR.I8.color.primary["1"]);var iq=e=>{let{children:t}=e;return(0,eL.jsx)(iH,{children:(0,eL.jsx)(iU,{children:(0,eL.jsx)("tbody",{children:t})})})};let iO=(eN.Ay.div.withConfig({componentId:"sc-72eef93-0"}))(["display:inline-block;width:100%;"]),iB=e=>{let{children:t}=e;return(0,eL.jsx)(iO,{children:t})};iB.childNodes={table:iq,tbody:iq,td:e=>{let{children:t,attributes:i,...a}=e;return(0,eL.jsx)(iR,{colSpan:(null==i?void 0:i.colspan)?Number(i.colspan):void 0,...a,children:t})},tr:"tr",th:"th",caption:e=>{let{children:t}=e;return(0,eL.jsx)(eO.D.Subtitle,{size:"x-small",children:t})}};let iV=(eN.Ay.strong.withConfig({componentId:"sc-f9bcf09c-0"}))(["color:",";",";letter-spacing:0.1px;"],eR.I8.color.primary.foreground,e=>e.theme.foundation.media.type.body.heavy);var iG=e=>{let{attributes:t,children:i}=e;return(null==t?void 0:t.type)==="person"?(0,eL.jsx)(iV,{children:i}):(null==t?void 0:t.type)==="org"?(0,eL.jsx)("i",{children:i}):(0,eL.jsx)(iV,{children:i})},iW=i("qv"),iF=i("Ac"),iZ=i("Zp"),iK=i("WR"),iX=i("yQA");let iJ=/([.:!?])(?=\s|$)/;function iQ(e){let t=(null==e?void 0:e.trim())||"";if(!t)return{category:"",categoryWithPunctuation:"",caption:"",fullText:""};let[i="",a="",...n]=t.split(iJ),o=n.join("").trim();return a&&o?{category:i,categoryWithPunctuation:`${i}${a}`,caption:o,fullText:t}:{category:"",categoryWithPunctuation:"",caption:t,fullText:t}}function iY(e,t){var i,a,n;if(!e.leadImage&&!t)return"";let{children:o}=t||e.leadImage||{},l=eP.isValidElement(null==o?void 0:o[0]);if((0,ih.Zj)(e))return(null==(n=e.authors)?void 0:n[0])||"";if(!o||0===o.length||!l&&!o[0].value||l&&!(null==(i=o[0].props)?void 0:i.value))return"";let r=o[0].value||(null==(a=o[0].props)?void 0:a.value);return(0,ih.Z_)(e)?r:iQ(r).caption}var i0=i("es"),i8=i("e4"),i1=i("OS"),i2=function(e){var t;let{credit:i,children:a,className:n}=e,{categoryWithPunctuation:o,caption:l}=a&&0!==a.length&&(null==(t=a[0].props)?void 0:t.value)?iQ(a[0].props.value):iQ();return l||i?(0,eL.jsx)(i5,{category:o,caption:l,credits:i?`KUVA: ${i}`:"",className:n,useMediaColoredCategory:!0,$_css:eR.I8.spacing.small}):p||(p=(0,eL.jsx)("div",{}))},i5=(0,eN.Ay)(i1.A).withConfig({componentId:"sc-803dcd50-0"})(e=>({paddingTop:e.$_css}));let i4=`
68    float: left;
69    width: 47%;
70    margin: 32px 20px 20px 0;
71`,i3=`
72    float: right;
73    width: 47%;
74    margin: 32px 0px 20px 20px;
75`,i6=(eN.Ay.div.withConfig({componentId:"sc-cf9b8b8d-0"}))(["",""],e=>e.longformWide&&`
76        width: 100vw;
77        position: relative;
78        left: 50%;
79        right: 50%;
80        margin-left: -50vw;
81        margin-right: -50vw;
82        `),i9=(0,eN.AH)(["@media ","{float:right;width:50%;padding:0 0 "," ",";}figcaption{text-align:center;}"],eR.I8.mediaquery.min.small,eR.I8.spacing.medium,eR.I8.spacing.medium),i7=(eN.Ay.figure.withConfig({componentId:"sc-cf9b8b8d-1"}))(["position:relative;margin:0 0 "," 0;",";"," ",""],eR.I8.spacing["x-large"],(0,iF.C9)("desktop")`
83        ${e=>
83"left"===e.alignment?i4:""}
84        ${e=>"right"===e.alignment?i3:""}
85    `,e=>{let{longformWide:t}=e;return t&&`
86        margin-top: ${eR.I8.spacing["xx-large"]};
87        margin-bottom: ${eR.I8.spacing["xx-large"]};
88        clear: both;
89
90        @media ${eR.I8.mediaquery.max["x-small"]} {
91            margin-top: ${eR.I8.spacing["x-large"]};
92            margin-bottom: ${eR.I8.spacing["x-large"]};
93        }
94    `},e=>{let{isOpinionLeadImage:t}=e;return t&&i9}),ae=(0,eN.Ay)(iX.Ay).withConfig({componentId:"sc-cf9b8b8d-2"})(["max-width:100%;height:auto;"]),at=(eN.Ay.div.withConfig({componentId:"sc-cf9b8b8d-3"}))(["padding-top:","%;height:0;position:relative;> div,> button{position:absolute;top:0;left:0;width:100%;height:100%;}"],e=>e.height);var ai=(0,eM.Ng)(e=>({ui:e.ui}),{openImage:iK.f0})(e=>{var t,i;let{article:a,attributes:n,children:o,openImage:l,className:r,dimensions:s=`${iZ.zt}x`,ui:d}=e,[c,m]=eP.useState(0);if(eP.useEffect(()=>m(d.viewport),[d.viewport]),d.loading)return null;let u=(0,ih.Zj)(a)&&"lead"===n.position;if("lead"===n.position)return null;let p="center"===n.alignment&&"longform"===a.template&&!n.flags&&n.crops&&Object.keys(n.crops).length>0||!1;p&&(s=c>=1200?"1920x":c<1200&&c>=768?"1280x":`${iZ.zt}x`);let g=p?[575,991,1199,1439,1920]:"left"===n.alignment||"right"===n.alignment?[359,528,589,604]:[528,589,604,718],h=p?`
95        100vw
96    `:"left"===n.alignment||"right"===n.alignment?`
97        ${eR.I8.mediaquery.max["x-small"]} calc(100vw - ${iW.I8.spacing.medium}*2),
98        (max-width: 40.625rem) calc(100vw - ${iW.I8.spacing.large}*2),
99        ${eR.I8.mediaquery.max.medium} 37.75rem,
100        22.438rem
101    `:`
102        ${eR.I8.mediaquery.max["x-small"]} calc(100vw - ${iW.I8.spacing.medium}*2),
103        (max-width: 40.625rem) calc(100vw - ${iW.I8.spacing.large}*2),
104        ${eR.I8.mediaquery.max.medium} 37.75rem,
105        44.875rem
106    `,f=!!(null==(t=a.liveArticleInfo)?void 0:t.liveArticleId),y=(0,i8.A)(n,a)&&!f,x=y?`${iZ.zt}x${.66*iZ.zt}`:s,w=n.crops&&Object.keys(n.crops).length>0,b=!!(null==(i=n.flags)?void 0:i.disableAutomaticCrop),I=(0,iZ.si)(n,x,(0,i0._)(n,p,b,c,f),b||!w&&f,y,g),v=Number(s.split("x")[0]),j=I.ratio.split(":").map(e=>Number(e)).filter(e=>!isNaN(e)),A=v*j[1]/j[0];return(0,eL.jsxs)(i7,{alignment:n.alignment,className:r,longformWide:p,isOpinionLeadImage:u,children:[(0,eL.jsx)(i6,{longformWide:p,children:(0,eL.jsx)(at,{height:y?"66":(0,i0.E)(n,p&&c>=1200,void 0,void 0,void 0,f),children:(0,eL.jsx)(ae,{ratio:I.ratio,src:I.url,onClick:()=>l(n.uuid),skipCropScale:b,useAsButton:!0,srcSet:I.srcSet,sizes:h,alt:iY(a,{name:"x-im/image",attributes:n,children:o}),width:v,height:A})})}),(0,eL.jsx)(i2,{credit:n.photographer,children:o})]})}),aa=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"kl";return(i,a,n)=>{var o;return(o=a().lists.readMore,!o||!o.lastUpdated||o.lastUpdated+12e4<Date.now()||o.data.every(t=>!e.includes(t.uuid))||0)?n.get(`${eV.A.apiRoot}news/v2/dynamic/teaser/${t}/${e}`).then(e=>i(iK.dT.done({params:{name:"readMore"},result:e}))):Promise.resolve()}},an=i("Rf"),ao=(0,eN.Ay)(an.A).withConfig({componentId:"sc-67be089e-0"})(e=>({marginBottom:e.$_css}));let al=(eN.Ay.div.withConfig({componentId:"sc-212f1a50-0"}))(["display:flex;justify-content:center;margin:0 0 calc("," * ",") 0;> iframe{min-width:0 !important;width:100%;}"],eR.I8["line-height"].medium,eR.I8.font.scale["2"]);var ar=i("im"),as=i("Q7"),ad=i("vE"),ac=i("w0"),am=i("F5"),au=i("c6"),ap=i("R1"),ag=i("ty");let ah=(eN.Ay.div.withConfig({componentId:"sc-8655ea2c-0"}))(["scroll-margin-top:calc(79px + ",");&& figure{margin-bottom:",";}"],eR.I8.spacing.large,eR.I8.spacing.large),af=(0,eN.Ay)(eq.m.Timestamp).withConfig({componentId:"sc-8655ea2c-1"})(["",";font-size:",";margin-left:",";"],e=>{let{theme:t}=e;return t.foundation.media.type.ui.medium},eR.I8.font.scale["-1"],eR.I8.spacing["xx-small"]),ay=e=>{var t;let i,a,n,o,l,{children:r,attributes:s,...d}=e,c=(t=s.published_at,i=new Date,a=new Date(t),n=1>(0,ac.M)(i,a),o=(0,am.c)(a),l=(0,au.P)(a),n?{format:"m 'min'",value:(0,ap.g)(a,(0,ag.o)(i,a)).toISOString()}:o?{format:"HH:mm",value:t}:l?{format:"'Eilen' HH:mm",value:t}:{format:"dd.MM.yyyy HH:mm",value:t});return(0,eL.jsxs)(ah,{id:s.id,...d,children:[(0,eL.jsxs)(ar.A,{type:"flex",direction:"row",marginBottom:`${eR.I8.spacing.large}, @max.small=${eR.I8.spacing.medium}`,alignItems:"center",gap:0,children:[h||(h=(0,eL.jsx)(as.default,{size:"core.size.
106icon.medium",color:"core.color.primary.4"})),(0,eL.jsx)(af,{date:c.value,format:c.format,isRelative:!1})]}),r]})},ax=(0,eN.Ay)(ad.f.Text).attrs({size:"large",sizeBreakpoint:[{breakpoint:"core.mediaquery.max.small",size:"medium-heavy"}]}).withConfig({componentId:"sc-8655ea2c-2"})(["margin-bottom:",";display:inline-block;"],eR.I8.spacing.small),aw=(0,eN.Ay)(eJ.f).attrs({size:"small, @min.medium=medium"}).withConfig({componentId:"sc-8655ea2c-3"})(["margin-bottom:",";@media ","{margin-bottom:",";}"],eR.I8.spacing.large,eR.I8.mediaquery.min.medium,eR.I8.spacing["x-large"]);ay.childNodes={subheadline1:ax,paragraph:aw,body:aw};var ab=i("W4"),aI=i("eV"),av=i("uW"),aj=i("co"),aA=i("kk"),ak=i("Vv"),aC=i("is"),a$=i("dL"),aS=i("Ui"),a_=i("ex"),az=i("lv"),aT=i("MQ"),aE=i("xR"),aL=i("kd");let aP=(eN.Ay.div.withConfig({componentId:"sc-25a4c0f1-0"}))(["display:flex;flex-direction:column;gap:",";"," ",";"],eR.I8.spacing.medium,e=>{let{$prevSame:t,$nextSame:i}=e;return i&&t?(0,eN.AH)(["padding:0px "," "," ",";"],eR.I8.spacing.medium,eR.I8.spacing.large,eR.I8.spacing["x-large"]):i?(0,eN.AH)(["padding:0 "," "," ",";"],eR.I8.spacing.medium,eR.I8.spacing.large,eR.I8.spacing["x-large"]):t?i?(0,eN.AH)(["padding:0px "," 0px ",";"],eR.I8.spacing.medium,eR.I8.spacing["x-large"]):(0,eN.AH)(["padding:0px "," "," ",";"],eR.I8.spacing.medium,eR.I8.spacing["x-small"],eR.I8.spacing["x-large"]):(0,eN.AH)(["padding:0 "," "," ",";"],eR.I8.spacing.medium,eR.I8.spacing["x-small"],eR.I8.spacing["x-large"])},e=>{let{$lastElement:t}=e;return t&&(0,eN.AH)(["padding-bottom:",";"],eR.I8.spacing["xx-large"])}),aN=(0,eN.Ay)(aL.N_).withConfig({componentId:"sc-25a4c0f1-1"})(["display:flex;padding-left:",";"," "," &:focus-visible{outline:none;> *{background:",";color:",";}}"],eR.I8.spacing.large,e=>{let{$onlyElement:t,$firstElement:i,$lastElement:a,theme:n}=e;return(t||i)&&(0,eN.AH)(["&::before{content:'';position:absolute;left:3px;border-left:solid 2px ",";top:",";height:",";}",""],(0,aE.b)(`theme1.${n.foundation.theme.context}.color.base.3`),i?"0":`calc(${eR.I8.spacing.large} * -1 + ${eR.I8.spacing["x-small"]})`,i?eR.I8.spacing["x-small"]:eR.I8.spacing.large,!a&&`&::after {
107                    content: '';
108                    position: absolute;
109                    border-left: solid 2px ${(0,aE.b)(`theme1.${n.foundation.theme.context}.color.base.3`)};
110                    height: calc(100% - 1.5rem);;
111                    left: 3px;
112                    top: calc(${eR.I8.spacing.medium} + ${eR.I8.spacing["x-small"]});
113                }`)},e=>{let{$onlyElement:t,$lastElement:i,theme:a}=e;return!t&&!i&&(0,eN.AH)(["&::after{content:'';position:absolute;border-left:solid 2px ",";height:100%;left:3px;top:32px;}"],(0,aE.b)(`theme1.${a.foundation.theme.context}.color.base.3`))},eR.I8.color.primary.foreground,eR.I8.color.primary["foreground-inverse"]),aD=(0,eN.Ay)(ad.f.Text).withConfig({componentId:"sc-25a4c0f1-2"})(["display:inline-block;color:",";text-align:left;&::before{content:'';position:absolute;left:0px;top:8px;border:",";border-radius:",";}"],e=>{let{$active:t}=e;return t?eR.I8.color.primary["4"]:eR.I8.color.primary.foreground},e=>{let{$active:t,theme:i}=e;return`solid 4px ${t?eR.I8.color.primary.foreground:(0,aE.b)(`theme1.${i.foundation.theme.context}.color.base.3`)}`},eR.I8.shape.circle),aM=(0,eN.Ay)(eq.m.Timestamp).withConfig({componentId:"sc-25a4c0f1-3"})(["",";display:inline-flex;font-size:",";margin:0 ",";min-width:4.375rem;color:",";align-items:stretch;"],e=>{let{theme:t,$isToday:i}=e;return i?t.foundation.media.type.ui.semi:t.foundation.media.type.ui.normal},eR.I8.font.scale["0"],eR.I8.spacing.small,eR.I8.color.primary.foreground),aR=(0,eP.forwardRef)((e,t)=>{let{item:i,link:a,linkAs:n,handleClick:o,time:l,previousElementHasSameDepartment:r,nextElementHasSameDepartment:s,isLastElement:d,isActive:c,...m}=e,u=(0,eM.d4)(e=>{var t;return null==(t=e.history.location)?void 0:t.pathname}),p=!!l&&(0,am.c)(new Date(null==l?void 0:l.value));return(0,eL.jsx)(aP,{$prevSame:r,$nextSame:s,$lastElement:d,ref:t,...m,children:(0,eL.jsxs)(aN,{href:a,onClick:o,forwardedAs:n,$onlyElement:!s&&!r,$firstElement:!r,$lastElement:d,children:[l&&(0,eL.jsx)(a
113M,{date:l.value,format:l.format,isRelative:!1,$isToday:p,children:l.value}),(0,eL.jsx)(aD,{$active:(null==u?void 0:u.includes(i.uuid))||c,size:"small",children:i.title})]},i.uuid)})}),aH=(eN.Ay.time.withConfig({componentId:"sc-d00b87b-0"}))(["",";font-size:",";line-height:",";color:",";display:inline-block;position:relative;z-index:",";background-color:",";padding-bottom:",";padding-top:",";@media ","{padding-bottom:",";}",""],e=>{let{theme:t}=e;return t.foundation.media.type.ui.semi},eR.I8.font.scale["0"],eR.I8["line-height"].medium,eR.I8.color.primary.foreground,eR.I8["z-index"].elevate,e=>{let{theme:t}=e;return(0,aE.b)(`theme1.${t.foundation.theme.context}.color.base.1`)},eR.I8.spacing.small,eR.I8.spacing.small,eR.I8.mediaquery.max["x-small"],eR.I8.spacing["x-small"],e=>{let{$firstDeparment:t}=e;return t&&"&& { padding-top: 0; }"});var aU=e=>{let{events:t,cardAmount:i,version:a,increaseCardAmount:n}=e,[o,l]=(0,eP.useState)("");(0,eP.useEffect)(()=>{let e=e=>{if(null==o?void 0:o.length){let e=document.getElementById(o);if(e){let t=e.getBoundingClientRect().top+window.scrollY;Math.abs(window.scrollY-t)>140&&setTimeout(()=>{e.scrollIntoView({behavior:"smooth"})},100)}l("")}};return window.addEventListener("scrollend",e),()=>{window.removeEventListener("scrollend",e)}},[o]);let r=t.slice(0,i).filter(e=>e.title&&"false"!==e.highlight);if((null==r?void 0:r.length)===0)return null;let s=t.filter(e=>e.title&&"false"!==e.highlight).length;return(0,eL.jsxs)(aB,{gap:0,children:[(0,eL.jsx)(aV,{size:"small, @min.medium=medium",children:"v2"===a?"Tapahtumien kulku":"Päätapahtumat"}),r.map((e,t)=>{let i=0!==t&&r[t-1].department===e.department,a=t!==r.length-1&&r[t+1].department===e.department,n=0===t;return(0,eL.jsxs)(eP.Fragment,{children:[!i&&e.department&&(0,eL.jsx)(aH,{$firstDeparment:n,children:e.department}),(0,eL.jsx)(aq,{item:e,handleClick:()=>{let t=document.getElementById(e.uuid);t&&(t.scrollIntoView({behavior:"smooth"}),l(e.uuid))},previousElementHasSameDepartment:i,nextElementHasSameDepartment:a,isLastElement:t===r.length-1,isActive:n,time:e.time?{value:e.time,format:"HH:mm"}:void 0,linkAs:"button"})]},e.uuid)}),s>r.length&&(0,eL.jsx)(aO,{onClick:n,icon:f||(f=(0,eL.jsx)(aC.A,{size:"core.size.
113icon.medium"})),children:"Näytä lisää tapahtumia"})]})},aq=(0,eN.Ay)(aR).withConfig({componentId:"sc-d00b87b-1"})(["> button{background:none;position:relative;}"]),aO=(0,eN.Ay)(a_.A).withConfig({componentId:"sc-d00b87b-2"})(["align-self:center;margin-top:",";@media ","{width:100%;}"],eR.I8.spacing.small,eR.I8.mediaquery.max["x-small"]),aB=(0,eN.Ay)(ar.A).withConfig({componentId:"sc-d00b87b-3"})(["padding-top:calc( "," + "," + "," );padding-bottom:",";button:has(+ time){padding-bottom:",";@media ","{padding-bottom:",";}}@media ","{padding-top:0;padding-bottom:",";}"],eR.I8.spacing.medium,eR.I8.spacing["xxxx-small"],eR.I8.spacing["xxxxx-small"],eR.I8.spacing["xx-large"],eR.I8.spacing["x-small"],eR.I8.mediaquery.max["x-small"],eR.I8.spacing["xxx-small"],eR.I8.mediaquery.max.small,eR.I8.spacing["x-large"]),aV=(0,eN.Ay)(eO.D.Subtitle).withConfig({componentId:"sc-d00b87b-4"})(["margin-bottom:",";@media ","{margin-bottom:",";}"],eR.I8.spacing.large,eR.I8.mediaquery.max["x-small"],eR.I8.spacing.medium);let aG="4.9375rem",aW=(0,eN.Ay)(aj.H).withConfig({componentId:"sc-5363e4f-0"})(["position:fixed;top:calc("," + ",");left:50%;transform:translateX(-50%);background:",";color:",";hr{border-color:",";}svg{fill:",";}> button{&:focus-visible{outline-offset:",";&:after{content:'';position:absolute;width:100%;height:100%;outline:"," solid ",";}}}"],aG,eR.I8.spacing["x-large"],e=>{let{theme:t}=e;return(0,aE.b)(`${t.foundation.theme.context}.color.cta.primary.normal`)},eR.I8.color.primary["foreground-inverse"],eR.I8.color.primary["foreground-inverse"],eR.I8.color.primary["foreground-inverse"],eR.I8["outline-offset"].small,eR.I8.outline.small,eR.I8.color.primary["foreground-inverse"]),aF=(eN.Ay.div.withConfig({componentId:"sc-5363e4f-1"}))(["",""],e=>{let{$allCardsVisible:t}=e;return`
114    ${t?"> div:not(:last-child)":"> div"} {
115            border-bottom: solid ${eR.I8.border["x-small"]} ${eR.I8.color.border["1"]};
116            margin-bottom: ${eR.I8.spacing.large};
117        }
118    `}),aZ=(eN.Ay.p.withConfig({componentId:"sc-5363e4f-2"}))(["",";font-size:",";color:",";line-height:",";padding-block:",";margin:0;display:flex;justify-content:center;"],e=>{let{theme:t}=e;return t.foundation.media.type.ui.normal},eR.I8.font.scale["0"],eR.I8.color.primary.foreground,eR.I8["line-height"].medium,eR.I8.spacing.medium);var aK=(0,eN.Ay)(aZ).withConfig({componentId:"sc-5363e4f-3"})(["padding-block:0;"]),aX=e=>{var t,i,a,n,o,l,r,s,d;let c,{attributes:m,children:u,article:p}=e,[g,h]=(0,eP.useState)(!1),[f,A]=(0,eP.useState)(null==u||null==(a=u[0])||null==(i=a.props)||null==(t=i.attributes)?void 0:t.id),[k,C]=(0,eP.useState)(5),[$,S]=(0,eP.useState)({label:"Uusin ensin",value:"new"}),_=(0,eP.useRef)(null),z=(0,eP.useRef)(null),T=(0,eP.useRef)(null),E=(0,eM.wA)();s=()=>{var e;if(null==(e=p.liveArticleInfo)?void 0:e.liveArticleId){let{liveToolVersion:e,media:t,...i}=p.liveArticleInfo;E((0,az.Ay)({uuid:p.liveArticleInfo.liveArticleId,currentArticleUuid:p.uuid,isVersionThree:"v3"===e,media:t??(0,aT.F1)(p),attributes:i}))}},d="false"===m.active||!1===m.active,c=(0,eP.useRef)(s),(0,eP.useEffect)(()=>{c.current=s},[s]),(0,eP.useEffect)(()=>{let e=setInterval(()=>c.current(),15e3);return d&&clearInterval(e),()=>clearInterval(e)},[15e3,d]);let L=e=>{var t,i,a;e&&_.current&&_.current.scrollIntoView({behavior:"smooth"}),A(null==u||null==(a=u[0])||null==(i=a.props)||null==(t=i.attributes)?void 0:t.id)},P=u.map(e=>{var t,i,a,n,o,l,r,s;let d=null==(i=e.props)||null==(t=i.attributes)?void 0:t.published_at;return{time:d,department:(e=>{if(!e)return;let t=(0,am.c)(new Date(e)),i=(0,au.P)(new Date(e));if(!t)return i?"Eilen":(0,ab.GP)(new Date(e),"dd.MM.yyyy")})(d),title:null==(n=e.props)||null==(a=n.attributes)?void 0:a.title,uuid:null==(l=e.props)||null==(o=l.attributes)?void 0:o.id,highlight:null==(s=e.props)||null==(r=s.attributes)?void 0:r.highlight}}).filter(e=>e.time),N="old"===$.value?[...u].reverse().slice(0,k):u.slice(0,k),[D,...M]=N,R=N.length===u.length;return(0,eL.jsxs)(a8,{gap:0,children:[y||(y=(0,eL.jsx)(av.mg,{children:(0,eL.jsx)("meta",{property:"k5a:contentTag",content:"live-article"})})),(0,eL.jsx)(aU,{events:"old"===$.value?[...P].reverse():P,cardAmount:k,increaseCardAmount:()=>C(e=>e+5),version:null==(n=p.liveArticleInfo)?void 0:n.liveToolVersion}),(0,eL.jsx)(t5,{attributes:{orderNo:1}}),(0,eL.jsxs)(a0,{type:"flex",direction:"row",alignItems:"center",justifyContent:"space-between",marginBottom:eR.I8.spacing["x-large"],ref:_,children:[x||(x=(0,eL.jsx)(eO.D.Subtitle,{size:"large",decorationType:"category-list",children:"Liveseuranta"})),(0,eL.jsx)(ar.A,{direction:"row",children:(0,eL.jsxs)(aA.A,{initialActiveTab:$,tabType:"default",useWithoutTabPanels:!0,clickHandler:e=>S(e),children:[w||(w=(0,eL.jsx)(ak.A,{tabLabel:"Uusin ensin",tabValue:"new"})),b||(b=(0,eL.jsx)(ak.A,{tabLabel:"Vanhin ensin",tabValue:"old"}))]})})]}),(0,eL.jsxs)(aF,{$allCardsVisible:R,children:[(0,eL.jsx)(aI.Y,{onEnter:()=>h(!1),onLeave:e=>{if("above"===e.currentPosition){var t,i,a;h(!0),A(null==u||null==(a=u[0])||null==(i=a.props)||null==(t=i.attributes)?void 0:t.id)}},topOffset:110,children:(0,eL.jsx)("div",{children:D})}),M]}),0===N.length&&(I||(I=(0,eL.jsx)(aK,{children:"Liveseurannassa ei vielä julkaisuja"}))),N.length<u.length&&(0,eL.jsx)(aY,{onClick:()=>C(e=>
118e+5),icon:v||(v=(0,eL.jsx)(aC.A,{size:"core.size.icon.medium"})),children:"Näytä lisää tapahtumia"}),R&&(0,eL.jsxs)(eL.Fragment,{children:[(0,eL.jsx)(aJ,{}),(0,eL.jsx)(aZ,{children:"old"===$.value?"Ei uudempia tapahtumia":"Ei vanhempia tapahtumia"}),(0,eL.jsx)(aQ,{$_css:eR.I8.spacing.medium})]}),g&&f!==(null==u||null==(r=u[0])||null==(l=r.props)||null==(o=l.attributes)?void 0:o.id)&&(0,eL.jsxs)(aW,{children:[(0,eL.jsx)(aj.H.Label,{ref:z,onClick:()=>L(!0),autoFocus:!!T.current,children:"Uusia päivityksiä"}),(0,eL.jsx)(aj.H.Icon,{"aria-label":"Sulje ilmoitus",icon:j||(j=(0,eL.jsx)(a$.A,{size:"core.size.icon.medium"})),onClick:()=>L(!1),onBlur:e=>{T.current&&e.relatedTarget!==z.current&&(e.preventDefault(),T.current.focus())}})]})]})},aJ=(0,eN.Ay)(aS.CK).withConfig({componentId:"sc-5363e4f-4"})(["margin-top:",";@media ","{margin-top:",";}"],eR.I8.spacing.large,eR.I8.mediaquery.max.small,eR.I8.spacing.small),aQ=(0,eN.Ay)(aS.CK).withConfig({componentId:"sc-5363e4f-5"})(e=>({marginBottom:e.$_css})),aY=(0,eN.Ay)(a_.A).withConfig({componentId:"sc-5363e4f-6"})(["margin-bottom:",";align-self:center;@media ","{width:100%;}"],eR.I8.spacing.large,eR.I8.mediaquery.max["x-small"]),a0=(0,eN.Ay)(ar.A).withConfig({componentId:"sc-5363e4f-7"})(["scroll-margin-top:",";"],aG),a8=(0,eN.Ay)(ar.A).withConfig({componentId:"sc-5363e4f-8"})(["width:100%;&:not(:last-child){margin-bottom calc("," * ",");}"],eR.I8["line-height"].medium,eR.I8.font.scale["1"]),a1=i("Z3"),a2=i("tl");let a5=(eN.Ay.div.withConfig({componentId:"sc-e4f72cfc-0"}))(["padding:"," "," "," ",";border:"," solid ",";margin-bottom:",";display:flex;flex-direction:row;justify-content:space-between;gap:",";@media ","{flex-direction:column;margin-bottom:",";}"],eR.I8.spacing.large,eR.I8.spacing.medium,eR.I8.spacing.large,eR.I8.spacing.large,eR.I8.border["x-small"],eR.I8.color.border["2"],eR.I8.spacing["xx-large"],eR.I8.spacing.small,eR.I8.mediaquery.max.small,eR.I8.spacing.large),a4=(eN.Ay.div.withConfig({componentId:"sc-e4f72cfc-1"}))(["max-width:37.5rem;ol,ul{padding:0;margin:0;> li{display:flex;align-items:baseline;&:nth-child(n + 2){display:none;}&::before{display:flex;flex-shrink:0;}}}",""],e=>{let{$showAll:t}=e;return t&&`
119        ${a6} {
120            -webkit-line-clamp: none;
121        }
122
123        ol > li, ul > li {
124            &:nth-child(n + 2) {
125                display: flex;
126            }
127
128            &:not(:last-child) {
129                margin-bottom: ${eR.I8.spacing.medium};
130            }
131        }
132    `}),a3=(eN.Ay.h3.withConfig({componentId:"sc-e4f72cfc-2"}))(["",";font-size:",";line-height:",";color:",";margin:0 0 "," 0;"],e=>{let{theme:t}=e;return t.foundation.media.type.ui.medium},eR.I8.font.scale["1"],eR.I8["line-height"].medium,eR.I8.color.primary.foreground,eR.I8.spacing.medium),a6=(eN.Ay.p.withConfig({componentId:"sc-e4f72cfc-3"}))(["",";font-size:",";line-height:",";color:",";margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;"],e=>{let{theme:t}=e;return t.foundation.media.type.ui.normal},eR.I8.font.scale["0"],eR.I8["line-height"].medium,eR.I8.color.primary.foreground),a9=e=>{let{attributes:t,children:i}=e,[a,n]=eP.useState(!1),o=(0,eP.useId)(),l=(0,eP.useId)(),r=(null==t?void 0:t.title)==="TIIVISTELMÄ"?"Tiivistelmä":null==t?void 0:t.title;return(0,eL.jsxs)(a5,{role:"region","aria-labelledby":l,children:[(0,eL.jsxs)(a4,{$showAll:a,id:o,children:[(0,eL.jsx)(a3,{id:l,children:r}),i]}
132),(0,eL.jsx)(a7,{icon:a?A||(A=(0,eL.jsx)(a1.A,{size:"core.size.icon.small"})):k||(k=(0,eL.jsx)(a2.A,{size:"core.size.icon.small"})),iconPositionRight:!0,"aria-expanded":a,"aria-label":a?"Sulje tiivistelmä":"Lue koko tiivistelmä","aria-controls":o,onClick:()=>n(!a),children:a?"Sulje":"Lue lisää"})]})};a9.childNodes={body:a6};var a7=(0,eN.Ay)(im.A).withConfig({componentId:"sc-e4f72cfc-4"})(["white-space:nowrap;padding:0;align-self:end;"]);let ne=(eN.I4.div.withConfig({componentId:"sc-3bcac3d1-0"}))(["display:flex;justify-content:center;margin:0 0 calc("," * ",") 0;"],eR.I8["line-height"].medium,eR.I8.font.scale["2"]),nt={text:e=>{let{value:t}=e;return t.replace(/\u00A0/g," ")},a:tU,b:"strong",br:"br",em:"i",person:e6(),data:e6(),strong:iG,headline:null,subheadline:t$,subheadline1:t$,preamble:null,body:eJ.f,byline:[iz,!0],p:eJ.f,"x-im/image":[ai,!0],"x-im/youtube":e=>{var t;let{attributes:i}=e,a=(null==i?void 0:i.url)?(t=i.url).includes("youtu.be/")?t.split("youtu.be/")[1]:(0,e9.qg)(t.split("?")[1]||"").v:void 0;return a?(0,eL.jsx)(ts,{checkConsent:e7.W8,children:(0,eL.jsx)(td,{children:(0,eL.jsx)(tc,{children:(0,eL.jsx)("iframe",{src:`https://www.youtube.com/embed/${a}`})})})}):null},"x-im/htmlembed":e5,"alma/qbrick-video":tm.A,"talent/table":iB,"talent/sidebar":[tZ,!0],"talent/sidequote":it,"talent/pre":e3,preline:null,articleAd:t5,"x-im/unordered-list":t3,"x-im/ordered-list":t9,"alma/unordered-list":t3,"alma/ordered-list":t9,"alma/summary":a9,"alma/aside":[tZ,!0],"alma/qualifio-embed":e=>(0,eL.jsx)(ts,{checkConsent:e7.z$,children:(0,eL.jsx)(e2.A,{html:e.embedJavaScript,id:`q-${e.qualifioId}`,loadEveryTimePageIsVisited:!0})}),"x-im/table":iB,"x-im/link":tU,"x-alma-web-only-text":e6(),"x-highlighter":e1,"x-person":iG,"x-location":tU,"talent/embed":e=>{let{attributes:t}=e,{embedId:i,id:a}=t,n=`${eV.A.embedUrl}/embeds/${i}/index.html?site=${eV.A.siteShortSlug}`;return eP.useEffect(()=>{let e=e=>{if(e.origin!==eV.A.embedUrl)return;let t=document.getElementById(a);null!==t&&"IFRAME"===t.tagName&&t.contentWindow===e.source&&e.data.contentHeight&&(t.style.height=`${e.data.contentHeight}px`)};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[]),(0,eL.jsx)(tC,{initialHeight:350,id:a,src:n,scrolling:"no"})},dateline:tu,links:null,link:null,madmansrow:null,meta:null,company:"i",product:tU,"alma/jw-video":tp.A,bluesky:e=>{let{attributes:t}=e,{darkMode:i}=(0,eM.d4)(e=>e.ui);return(0,iE.A)(100,"bluesky.scan"),(0,eL.jsx)(ts,{checkConsent:e7.W8,children:(0,eL.jsx)(iT.A,{embed:"bluesky-js",children:(0,eL.jsx)(ne,{children:(0,eL.jsx)("blockquote",{className:"bluesky-embed","data-bluesky-uri":t.uri,"data-bluesky-cid":t.id,"data-bluesky-embed-color-mode":i?"dark":"light"})})})})},"x-im/infogram":e=>{let{attributes:t}=e;return(0,eP.useEffect)(()=>{var e=document,t="infogram-async",i="//e.infogram.com/js/dist/embed-loader-min.js";let a=e.getElementsByTagName("script")[0],n=/^http:/.test(e.location)?"http:":"https:";if(/^\/{2}/.test(i)&&(i=n+i),window[tj]&&window[tj].initialized)window[tj].process&&window[tj].process();else if(!e.getElementById(t)){let n=e.createElement("script");n.async=1,n.id=t,n.src=i,a.parentNode.insertBefore(n,a)}},[]),(0,eL.jsx)(tk,{size:null==t?void 0:t.size,children:(0,eL.jsx)(tv,{className:"infogram-embed","data-id":null==t?void 0:t.id,"data-type":"interactive",ref:tA})})},"x-im/instagram":e=>{let{attributes:t}=e;return(0,iE.A)(100,"instgrm.Embeds.process"),(0,eL.jsx)(ts,{checkConsent:e7.W8,children:(0,eL.jsx)(iT.A,{embed:"instagram-js",children:(0,eL.jsx)(iL,{className:"instagram-container",children:(0,eL.jsx)("blockquote",{className:"instagram-media","data-instgrm-version":"7",children:(0,eL.jsx)("a",{href:`https://www.instagram.com/p/${t.id}`,target:"_blank",rel:"noreferrer"})})})})})},"alma/graffa-embed":tI,"x-im/facebook-post":e=>{let{attributes:t}=e;return(0,iE.A)(100,"FB.init",{xfbml:!0,version:"v3.3"}),(0,eL.jsx)(ts,{checkConsent:e7.W8,children:(0,eL.jsx)(iT.A,{embed:"facebook-jssdk",children:(0,eL.jsx)(iP,{children:(0,eL.jsx)("div",{className:"fb-post","data-href":t.url,"data-width":"auto"})})})})},"x-im/twitter":e=>{let{attributes:t}=e,i=(0,eM.d4)(e=>e.ui.darkMode),[a,n]=(0,eP.useReducer)(iM,{ref:null});return(0,eP.useEffect)(()=>{null!==a.ref&&function e(t,i,a){window.twttr?(i&&(null==i?void 0:i.childElementCount)>0&&i.removeChild(i.children[0]),window.twttr.widgets.createTweet(t,i,{lang:"fi",theme:a?"dar
132k":"light",dnt:!0,width:500})):setTimeout(()=>e(t,i,a),100)}(t.id,a.ref,i)},[a.ref,t.id,i]),(0,eL.jsx)(ts,{checkConsent:e7.W8,children:(0,eL.jsx)(iT.A,{embed:"twitter-wjs",children:(0,eL.jsx)(iD,{dispatch:n})})})},"x-im/spotify":e=>{let{attributes:t}=e;return(0,eP.useEffect)(()=>{window.onSpotifyIframeApiReady=e=>{let i=document.getElementById("spotify-embed"),a={uri:t.url};i&&e.createController(i,a,()=>{})}},[]),g||(g=(0,eL.jsx)(ts,{checkConsent:e7.W8,children:(0,eL.jsx)(iT.A,{embed:"spotify-js",children:(0,eL.jsx)(al,{children:(0,eL.jsx)("div",{id:"spotify-embed"})})})}))},blockquote:it,vignette:null,thead:"thead",readmore:e=>{let{children:t}=e,i=(0,eM.wA)(),a=(0,eM.d4)(e=>e.lists.readMore);return(0,eP.useEffect)(()=>{let e=t.filter(e=>!!e).flatMap(e=>{let{props:t}=e;return null==t?void 0:t.children}).filter(e=>!!e).flatMap(e=>{let{props:t}=e;return null==t?void 0:t.attributes}).filter(e=>{let{type:t}=e;return"x-im/link"===t}).reduce((e,t)=>({uuid:[...e.uuid,t.uuid],media:e.media.includes(t.media)?e.media:[...e.media,t.media]}),{uuid:[],media:[]});i(aa(e.uuid,e.media))},[]),(0,eL.jsx)(ao,{type:"primary_with_ad",teaserList:a.data,title:"Lue myös",$_css:eR.I8.spacing["x-large"]})},[e0.Mm]:null,[e0.JM]:[aX,!0],[e0.Qo]:[aX,!0],"alma/live-tool-card":[ay,!0]};var ni=e=>{let{article:t,elements:i,translations:a}=e;return i&&i.length?(0,eL.jsx)(eL.Fragment,{children:i.map((e,i)=>(function e(t,i,a,n){let o,[l,r]=Array.isArray(t[i.name])?t[i.name]:[t[i.name],!1],s="string"!=typeof l&&(0,eQ.isValidElementType)(l);if(void 0===l)return console.error("[unknown element]",i),null;if("body"===i.name&&i.children&&"strong"===i.children[0].name&&(o=1===i.children.length?"subheading":"full-paragraph"),e8.includes(i.name)&&l)return eP.createElement(l,..."alma/qualifio-embed"===i.name?[i.children[0].children.reduce((e,t)=>Object.assign(e,{[t.name]:t.children[0].value}),{key:a})]:[i.attributes,i.children]);let d=Array.isArray(i.children)?i.children.map((i,a)=>e(s?{...t,...l.childNodes}:t,i,a,n)):null;if("alma/aside"===i.name&&Array.isArray(d)&&!(0,eY.A)(d[0],"props.children"))return null;if(l){let e="string"==typeof l?void 0:i.attributes;return eP.createElement(l,{value:i.value,article:r?n:void 0,attributes:e,index:a,className:o,key:(()=>{if(i.attributes){if(e0.er.includes(i.attributes.type))return`live-tool-${a}`;if(i.attributes.id)return`${i.attributes.id}-${a}`;if(i.attributes.uuid)return`${i.attributes.uuid}-${a}`}return a})()},d)}return null})({...nt,...a},e,i,t))}):null},na=i("K3");let nn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"4:3",t=e.split(":").map(e=>Number(e));return`${100*t[1]/t[0]}%`},no=(eN.Ay.div.withConfig({componentId:"sc-51cf515f-0"}))(["width:100%;height:0px;",";position:relative;overflow:hidden;display:block;text-decoration:none;> div,> button{position:absolute;top:0;left:0;width:100%;height:100%;}&:focus-within{overflow:visible;}"],e=>{let{imageRatio:t,paddingTop:i}=e;return i?(0,na.A)("padding-top",i):`padding-top: ${nn(t)}`}),nl=(eN.Ay.figure.withConfig({componentId:"sc-f5eb6733-0"}))(["margin:0px;"]),nr=e=>{var t;let{leadImage:i,photographer:a}=e,n=null==(t=i.children)?void 0:t.find(e=>"text"===e.name);if(n&&n.value){let{categoryWithPunctuation:e,caption:t}=iQ(n.value);if(t)return(0,eL.jsx)(i1.A,{caption:t,category:e,credits:a?`KUVA: ${a}`:"",useMediaColoredCategory:!0})}else if(a)return(0,eL.jsx)(i1.A,{credits:`KUVA: ${a}`,useMediaColoredCategory:!0});return null};var ns=e=>{let{article:t,attributes:i}=e,a=(0,eM.wA)();if(t.leadImage&&t.leadImage.attributes){let{url:e,srcSet:n}=(0,iZ.si)(t.leadImage.attributes,"750x500","3:2",void 0,void 0,[575,604,690,764]),o=`
133            ${eR.I8.mediaquery.max["x-small"]} calc(100vw - ${iW.I8.spacing.medium}*2),
134            (max-width: 40.625rem) calc(100vw - ${iW.I8.spacing.large}*2),
135            ${eR.I8.mediaquery.max.small} 604px,
136            ${eR.I8.mediaquery.max.medium} 64vw,
137            764px
138        `;return(0,eL.jsxs)(nl,{children:[(0,eL.jsx)(no,{imageRatio:"3:2",className:(0,eH.A)("bottom","small"),children:(0,eL.jsx)(iX.Ay,{src:e,srcSet:n,sizes:o,width:"750",height:"500",onClick:()=>a((0,iK.f0)(i.uuid)),alt:iY(t),useAsButton:!0})}),(0,eL.jsx)(nr,{leadImage:t.leadImage,photographer:i.photographer})]})}return null},nd=i("kU"),nc=i("cq");let nm=(eN.Ay.figure.withConfig({componentId:"sc-4fcb6f50-0"}))(["margin:0px;overflow:",";",";"],e=>{let{imageNotPositioned:t}=e;return t?"hidden":"visible"},(0,iF.C9)("mobile","tablet")`
139        order: -1;
140    `),nu=(0,eN.Ay)(iX.Ay).withConfig({componentId:"sc-4fcb6f50-1"}
140)(["height:100%;width:100%;"]),np=(eN.Ay.div.withConfig({componentId:"sc-4fcb6f50-2"}))(["position:relative;max-width:","px;width:100vw;",";left:",";> div,> button{width:calc(100% - "," * 2);position:absolute;top:0;left:",";@media ","{width:100%;left:0px;}}"],1200,e=>{let{$paddingPercentage:t}=e,i=Math.round(1.125*(0,nd.A)(iW.I8.spacing.large)*100)/100;return(0,eN.AH)(["padding-top:min( calc(","vw - ","px),","px );@media ","{padding-top:","vw;}"],t,i,675-i,eR.I8.mediaquery.max["x-small"],t)},e=>{let{$leftOffset:t}=e;return`-${t}px`},eR.I8.spacing.large,eR.I8.spacing.large,eR.I8.mediaquery.max["x-small"]);var ng=e=>{let{article:t,attributes:i,children:a}=e,n=(0,eP.useMemo)(()=>(0,iZ.si)(i,"1200x675","16:9",void 0,void 0,[575,945,1154]),[i]),o=`
141        ${eR.I8.mediaquery.max["x-small"]} 100vw,
142        ${eR.I8.mediaquery.max.medium} calc(100vw - ${iW.I8.spacing.large}*2),
143        72.125rem
144    `,[l,r]=(0,eP.useState)(0),s=(0,eP.useRef)(null),d=(0,eP.useRef)(null),c=(0,eM.wA)(),m=()=>{if(d.current&&s.current&&"u">typeof window){let{width:e}=s.current.getBoundingClientRect(),{left:t}=d.current.getBoundingClientRect();r(t-(document.documentElement.clientWidth-e)/2)}},u=(0,nc.A)(m,200);return(0,eP.useEffect)(()=>(m(),window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)),[u]),(0,eL.jsxs)(nm,{ref:d,imageNotPositioned:0===l,children:[(0,eL.jsx)(np,{$leftOffset:l,ref:s,$paddingPercentage:(0,i0.E)(i,!1,i.position,!0),children:(0,eL.jsx)(nu,{ratio:n.ratio,src:n.url,srcSet:n.srcSet,sizes:o,onClick:()=>c((0,iK.f0)(i.uuid)),useAsButton:!0,alt:iY(t,{name:"x-im/image",attributes:i,children:a}),width:1200,height:675})}),(0,eL.jsx)(i2,{credit:i.photographer,children:a})]})},nh=i("IrX"),nf=i("kB");let ny=(eN.Ay.div.withConfig({componentId:"sc-c374ffb8-0"}))(["display:flex;flex-direction:column;"]);var nx=(0,eN.Ay)(ny).withConfig({componentId:"sc-c374ffb8-1"})(["",""],e=>e.$_css10);let nw=(0,eN.Ay)(eO.D.Subtitle).withConfig({componentId:"sc-c374ffb8-2"})(["margin:0 0 "," 0;@media ","{margin:0 0 "," 0;}"],eR.I8.spacing["xxx-small"],eR.I8.mediaquery.max["x-small"],eR.I8.spacing.large),nb=(eN.Ay.div.withConfig({componentId:"sc-c374ffb8-3"}))(["display:flex;width:100%;align-items:center;justify-content:space-between;padding:"," 0;border-bottom:"," solid ",";@media ","{gap:",";&:first-of-type{padding-top:0;}> button{padding-right:0;}}"],eR.I8.spacing.small,eR.I8.border["x-small"],eR.I8.color.border["2"],eR.I8.mediaquery.max["x-small"],eR.I8.spacing.medium);var nI=e=>{let{categories:t}=e,[i,a]=(0,eP.useState)(!0),n=(0,eM.d4)(e=>e.ownTopics.topics),o=(0,eM.d4)(e=>e.metadata.digitalData.page.pageInfo.locationPathName);return(0,eP.useEffect)(()=>{a(!0)},[o]),(0,eL.jsxs)(nx,{$_css10:i?void 0:{paddingBottom:eR.I8.spacing.medium},children:[C||(C=(0,eL.jsx)(nw,{decorationType:"category-list",size:"small, @min.small=large",children:"Seuraa artikkelin aiheita"})),t.slice(0,i?3:t.length).map(e=>{let t=n.map(e=>e.toLowerCase()).includes(e.name.toLowerCase());return(0,eL.jsxs)(nb,{children:[(0,eL.jsx)(tz.Ay,{href:`/aiheet/${e.slug}`,customComponent:(0,eL.jsx)(nv,{focusOutline:"medium",$_css:eR.I8.color.primary.foreground}),children:e.name}),t?(0,eL.jsx)(nf.s,{itemName:e.name,showMessage:!0,buttonType:"tertiary"}):(0,eL.jsx)(nf.X,{itemName:e.name,showMessage:!0,buttonType:"tertiary"})]},e.slug)}),$||($=(0,eL.jsx)(nh.A,{size:"core.spacing.small"})),t.length>3&&i&&(0,eL.jsx)(nj,{iconPositionRight:!0,icon:S||(S=(0,eL.jsx)(a2.A,{color:"core.color.cta.primary.normal",size:"core.size.
144icon.medium"})),onClick:()=>a(!1),$_css2:eR.I8.color.cta.secondary.text,$_css3:eR.I8.color.cta.secondary.normal,$_css4:eR.I8.color.cta.secondary.normal,$_css5:eR.I8.color.cta.secondary.normal,$_css6:eR.I8.color.cta.secondary.hover,$_css7:eR.I8.color.cta.secondary.hover,$_css8:eR.I8.color.cta.secondary.active,$_css9:eR.I8.color.cta.secondary.active,children:"Näytä kaikki"})]})},nv=(0,eN.Ay)(tt.Ay).withConfig({componentId:"sc-c374ffb8-4"})(e=>({"&:visited":{color:e.$_css}})),nj=(0,eN.Ay)(im.A).withConfig({componentId:"sc-c374ffb8-5"})(e=>({width:"fit-content",alignSelf:"center",color:e.$_css2,borderColor:e.$_css3,"&:focus-visible":{borderColor:e.$_css4,outlineColor:e.$_css5},"&:hover:not(:disabled)":{color:e.$_css6,borderColor:e.$_css7},"&:active":{color:e.$_css8,borderColor:e.$_css9}})),nA=i("aO"),nk=i("Cr"),nC=i("N4"),n$=i("O1"),nS=i("MI"),n_=i("a"),nz=async e=>fetch(`${eV.A.itsepalveluApiRoot}/v1/self-service/verify?clientId=${eV.A.almaLogin.clientID}&id=${encodeURI(e)}&responsetype=json&lang=fi`),nT=i("j9"),nE=i("Zl"),nL=e=>{let{subtitle:t,paragraph:i,onCancelClick:a,...n}=e;return(0,eL.jsxs)(nT.j,{"data-paywall-state":"polling-user-rights",...n,children:[(0,eL.jsxs)(nD,{"data-paywall-section":"paywall-heading",$_css:eR.I8.grid.gutter.small,children:[(0,eL.jsx)(nE.A,{"data-paywall-section-item":"paywall-heading-logo",media:e4.Ay.foundation.media.mediaToken,size:"core.size.x-large"}),_||(_=(0,eL.jsx)(nT.j.CategoryHeading,{"data-paywall-section-item":"paywall-heading-category",children:"Digitilaus"}))]}),(0,eL.jsxs)(nM,{"data-paywall-section":"paywall-description",$_css3:eR.I8.grid.gutter["x-small"],children:[(0,eL.jsx)(eO.D.Subtitle,{size:"medium","data-paywall-section-item":"paywall-description-textnotes",children:t}),(0,eL.jsx)(nP,{useMediaColors:!0,text:"",$_css2:eR.I8.spacing.medium}),(0,eL.jsx)(nN,{size:"small","data-paywall-section-item":"paywall-description-textpresentation",children:i})]}),(0,eL.jsx)(nR,{"data-paywall-section":"paywall-buttons",$_css4:eR.I8.spacing.small,children:(0,eL.jsx)(im.A,{onClick:a,"data-paywall-section-item":"paywall-buttons-tertiary-cta",children:"Takaisin"})})]})},nP=(0,eN.Ay)(te.A).withConfig({componentId:"sc-404795b-0"})(e=>({marginTop:e.$_css2})),nN=(0,eN.Ay)(eJ.f).withConfig({componentId:"sc-404795b-1"})({margin:0}),nD=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-404795b-2"})(e=>({display:"grid",justifyItems:"center",rowGap:e.$_css,textAlign:"center"})),nM=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-404795b-3"})(e=>({display:"grid",rowGap:e.$_css3,textAlign:"center"})),nR=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-404795b-4"})(e=>({display:"grid",justifyItems:"center",rowGap:e.$_css4,textAlign:"center"}));let nH=(0,eN.Ay)(nS.Ay).withConfig({componentId:"sc-36e625e1-0"})(["margin-top:2em;min-height:21.4rem;display:flex;justify-content:center;clear:both;"]),nU=(0,eN.Ay)(a_.A).withConfig({componentId:"sc-36e625e1-1"})(["justify-content:center;text-decoration:none;margin-top:",";"],e=>{let{theme:t}=e;return t.foundation.core.spacing.medium});var nq=e=>
144{let{adjustLoadingView:t}=e,[i,a]=(0,eP.useState)(""),[n,o]=(0,eP.useState)(!1),[l,r]=(0,eP.useState)(!1),{data:s}=(0,nC.Bq)({},{pollingInterval:l?5e3:void 0}),[d]=(0,nC.pm)(),c=(0,eM.d4)(e=>e.user),m=null==s?void 0:s.email,u=(null==s?void 0:s.almaId)||"",p=c.consentV3;eP.useEffect(()=>((0,n_.Ay)("Email Verification Wall","verification wall activated"),()=>{(0,n_.Ay)("Email Verification Wall","verification passed"),d()}),[]);let g=(0,eP.useCallback)(()=>{a("Tarkistetaan Alma-tunnusta"),r(!0),(0,n_.Ay)("Email Verification Wall","click")},[p]);async function h(){a("Lähetämme vahvistusviestin"),u&&await nz(u),o(!0),a("")}let f=n?z||(z=(0,eL.jsx)(nU,{tagAs:"a",href:"https://www.almatalent.fi/ota-yhteytta/",target:"_blank",rel:"noopener noreferrer",children:"Tarvitsetko apua?"})):void 0;return"Tarkistetaan Alma-tunnusta"===i?(0,eL.jsx)(nL,{subtitle:i,paragraph:"Odotathan hetken, vahvistetun tunnuksen tarkistamisessa\n            voi kestää noin minuutin.",onCancelClick:()=>{r(!1),a("")}}):(0,eL.jsx)(nH,{wallTitleText:n?"Vahvistusviesti lähetetty":"Sähköpostiosoitetta ei ole vielä vahvistettu",wallDescriptionText:`Olemme l\xe4hett\xe4neet tunnuksen vahvistusviestin s\xe4hk\xf6postiisi <b>${m}</b>.`,primaryAction:()=>{g()},primaryText:"Olen vahvistanut tunnuksen",secondaryAction:()=>{n||h()},secondaryText:n?"":"Tilaa uusi vahvistusviesti",simpleSecondary:f,media:eV.A.siteShortSlug,loading:""!==i,loadingText:i,adjustLoadingView:t,iconVisible:!1,"data-paywall-state":"email-verification"})},nO=i("Z2"),nB=i("zz"),nV=i("VT");let{subscriptionApiRoot:nG,organizationName:nW,baseUrl:nF}=eV.A,nZ=e=>({error:{status:e.status,data:e.error,body:e.body}}),nK=`${window.location.origin}${nG}`,{useGetCampaignQuery:nX}=nB.F.injectEndpoints({endpoints:e=>({getCampaign:e.query({serializeQueryArgs:e=>{let{queryArgs:t}=e,{fetchLoggedInDataOnSSR:i,...a}=t;return a},queryFn:async e=>{let{receiveType:t,campaignGroup:i,userLoggedIn:a,fetchLoggedInDataOnSSR:n}=e,o=i?`${nK}/campaigns/v2/${nW}/${t}/${i}`:`${nK}/campaigns/v2/${nW}/${t}`,l=()=>(0,nV.Jt)(o).then(e=>({data:e})).catch(e=>nZ(e));if(a){let e=await (0,nO.Go)();return e?(0,nV.Jt)(o,{Authorization:`Bearer ${e}`}).then(e=>({data:e})).catch(e=>nZ(e)):n?l():{error:{status:401,data:"AccessToken could not be retrieved"}}}return l()}})})});var nJ=i("k5"),nQ=i("sl"),nY=i("Gg");let n0=async()=>{let e=new AbortController,t=setTimeout(()=>e.abort(),5e3);try{let t=await fetch(`${eV.A.baseUrl}/config/paywallConfigs/${eV.A.siteShortSlug}-config.json`,{signal:e.signal});if(!t.ok)return;return await t.json()}catch{return}finally{clearTimeout(t)}},{useGetPaywallConfigQuery:n8}=nB.F.injectEndpoints({endpoints:e=>({getPaywallConfig:e.query({queryFn:async()=>({data:await n0()})})})});var n1=(0,eP.createContext)({onPaymentCompletedCallback:void 0,onChangedUserCredentialsCallback:void 0,proceedToContentBtnText:void 0,currentArticle:void 0,orderMetaReady:!1}),n2=i("v7"),n5=i("v"),n4=i("Gz");let n3=(eN.Ay.div.withConfig({componentId:"sc-fc8c9078-0"}))(["position:absolute;top:0;left:0;right:0;z-index:1;display:flex;align-items:center;justify-content:center;height:0;overflow:hidden;&:focus-within{height:",";}"],eR.I8.size["xx-large"]);var n6=e=>{let{href:t="/saavutettavuusseloste",text:i="Saavutettavuusseloste"}=e;return(0,eL.jsx)(n3,{children:(0,eL.jsx)(n4.A,{href:t,text:i})})},n9=i("F6");let n7={},oe="",ot=new Set,oi=e=>{let t=Object.entries(e).filter(e=>{let[t,i]=e;return t&&i}).map(e=>{let[t,i]=e;return`${t}-${i}`}).sort();return t.length?`|${t.join("|")}|`:""},oa=e=>{oe!==e&&(oe=e,ot=new Set)},on=!1,oo=eP.memo(e=>{let{name:t,componentA:i=null,componentB:a=null,componentC:n=null,targetedContent:o,overrideVariant:l}=e,r=(0,eM.wA)(),{consentV3:s}=(0,eM.d4)(e=>e.user),d=(0,eM.d4)(e=>e.ui.ABTests),c=(0,eM.d4)(e=>{var t;return null==(t=e.history.location)?void 0:t.pathname}),{variant:m}=d.find(e=>e.name===t)||{};if((0,eP.useEffect)(()=>{if(o&&(0,e7.jk)(s)&&m){let e;"A"===m&&o.variantA?e=o.variantA:"B"===m&&o.variantB?e=o.variantB:"C"===m&&o.variantC&&(e=o.variantC),e&&r((0,iK.tw)({algorithm:e}))}},[m,o,s,r]),(0,eP.useEffect)(()=>{!l&&m&&(0,e7.jk)(s)&&((e,t)=>{var i;let a;if("u"<typeof window||!t)return;let n=null==(i=(eV.A.abTests??[]).find(t=>t.name===e))?void 0:i.analyticsCode;if(!n)return;let o="u"<typeof window?{...n7}:{...(e=>{if("string"!=typeof e||0===e.length)return{};let t=e.replace(/^\|/,"").replace(/\|$/,"");return t?t.split("|").reduce((e,t)=>
144{let i=t.lastIndexOf("-");if(i<=0)return e;let a=t.slice(0,i),n=t.slice(i+1);return a&&n&&(e[a]=n),e},{}):{}})((0,nJ.Ri)("",nJ.oM)),...n7},l=o[n]===t?o:{...o,[n]:t};l!==o&&(e=>{if(n7=e,"u"<typeof window)return;let t=oi(e);t&&(0,nJ.TV)(nJ.oM,t,30)})(l),!on&&"u">typeof window&&(on=!0,oa(iu.A.location.pathname),iu.A.listen(e=>{let{location:t}=e;oa(t.pathname)})),oa(window.location.pathname),a=`${n}|${t}`,!ot.has(a)&&(ot.add(a),1)&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"ab_test_exposure",ab_test_name:e,ab_test_variant:t,ab_tests:oi(l)}))})(t,m)},[t,m,s,l,c]),"B"===l)return a;if("A"===l)return i;let u=!!s.consentsLoaded;if(m&&(!u||(0,e7.jk)(s))&&m)switch(m){case"B":return a;case"C":return n}return i});var ol=i("si"),or=i("uQ");let os=(eN.Ay.div.withConfig({componentId:"sc-ef03223e-0"}))(["width:","px;height:","px;overflow:hidden;position:absolute;top:-0.25rem;right:-0.25rem;&:before,&:after{position:absolute;content:'';display:block;border:"," solid ",";border-top-color:transparent;border-right-color:transparent;border-left-color:transparent;}&:before{top:-0.3125rem;left:0px;}&:after{bottom:0;right:-0.3125rem;transform:rotate(90deg);}"],e=>{let{$size:t}=e;return t},e=>{let{$size:t}=e;return t},eR.I8.border.medium,e=>{let{theme:t}=e;return t.foundation.media.color.primary[3]}),od=(eN.Ay.span.withConfig({componentId:"sc-ef03223e-1"}))(["",";color:",";font-size:",";line-height:",";position:absolute;display:block;width:","px;padding:"," 0;background:",";text-align:center;transform:translate(29.29%,-100%) rotate(45deg);transform-origin:bottom left;top:0px;left:-1.6875rem;z-index:",";"],e=>{let{theme:t}=e;return t.foundation.media.type.ui.semi},e=>{let{theme:t}=e;return t.foundation.media.color.primary[4]},eR.I8.font.scale[-2],eR.I8["line-height"].none,e=>{let{$width:t}=e;return t},eR.I8.spacing["xxx-small"],e=>{let{theme:t}=e;return t.foundation.media.color.primary[2]},eR.I8["z-index"].elevate);var oc=e=>{let{text:t,additionalSize:i=0}=e,a=74+i;return(0,eL.jsx)(os,{$size:a,className:"offer-ribbon",children:(0,eL.jsx)(od,{$width:1.375*a,children:t})})};let om="benefits-marketing-list",ou=(0,eN.Ay)(nT.j).withConfig({componentId:"sc-e7a8655f-0"})(["position:relative;padding:"," ",";scroll-snap-align:center;border-radius:calc( "," + "," + "," );border-width:",";border-color:",";@media ","{padding-bottom:",";}> div{display:flex;flex-direction:column;gap:0;}&.premium-wall{background:linear-gradient( 128.4deg,#171d27 0%,#162456 45%,#162456 64.94%,#171d27 100% );h2,h3,p,span{color:",";}path{fill:",";}li{path{fill:",";}}li:not(:last-child){border-bottom-color:rgba(255,255,255,0.15);}.offer-ribbon{> span{background-color:",";color:",";}}button{&:focus-visible{outline-color:",";}}@media ","{[data-paywall-section='paywall-benefits']{border-top-color:rgba(255,255,255,0.15);}button{&:has(> span){color:",";path{fill:",";}}}}}"],eR.I8.spacing.large,eR.I8.spacing.medium,eR.I8.size["xx-small"],eR.I8.border.small,eR.I8.border["x-small"],eR.I8.border["x-small"],e=>{let{theme:t}=e;return t.foundation.media.color.wall.border},eR.I8.mediaquery.max.small,eR.I8.spacing.small,eR.I8.color.primary.static["foreground-inverse"],eR.I8.color.primary.static["foreground-inverse"],e=>{let{theme:t}=e;return t.foundation.media.color.primary.static[2]},e=>{let{theme:t}=e;return t.foundation.media.color.primary.static[2]},e=>{let{theme:t}=e;return t.foundation.media.color.primary.static[4]},eR.I8.color.primary.static["foreground-inverse"],eR.I8.mediaquery.max.small,e=>{let{theme:t}=e;return t.foundation.media.color.primary.static[3]},e=>{let{theme:t}=e;return t.foundation.media.color.primary.static[3]}),op=(eN.Ay.div.withConfig({componentId:"sc-e7a8655f-1"}))(["position:absolute;top:0;left:0;width:100%;height:",";border-top-left-radius:calc( "," + "," + "," );border-top-right-radius:calc( "," + "," + "," );background:linear-gradient( 90deg,rgba(0,30,73,0.6) 0%,#e9f3fd 50%,rgba(0,30,73,0.6) 100% );"],eR.I8.spacing["x-small"],eR.I8.size["xx-small"],eR.I8.border.small,eR.I8.border["x-small"],eR.I8.size["xx-small"],eR.I8.border.small,eR.I8.border["x-small"]),og=(eN.Ay.div.withConfig({componentId:"sc-e7a8655f-2"}))(["display:flex;flex-direction:column;row-gap:",";padding-bottom:",";height:fit-content;@media ","{padding-bottom:",";}"],eR.I8.spacing.small,eR.I8.spacing.large,eR.I8.mediaquery.max.small,eR.I8.spacing.medium),oh=(eN.Ay.h2.withConfig({componentId:"sc-e7a8655f-3"}))(["",";color:",";font-size:",";line-height:",";margin:0;"],e=>{let{theme:t}=e;return t.foundation.media.type.ui.medium},eR.I8.color.primary.foreground,eR.I8.font.scale["0"],eR.I8["line-height"].medium),of=(eN.Ay.p.withConfig({componentId:"sc-e7a8655f-4"}))(["",";color:",";font-size:",";line-height:",";margin:0;"],e=>{let{theme:t}=e;return t.foundation.media.type.ui.normal},eR.I8.color.primary.foreground,eR.I8.font.scale["-1"],eR.I8["line-height"].medium),oy=(eN.Ay.div.withConfig({componentId:"sc-e7a8655f-5"}))(["display:inline-flex;gap:",";align-items:center;"],eR.I8.spacing["xx-small"]),ox=(eN.Ay.span.withConfig({componentId:"sc-e7a8655f-6"}))(["",";color:",";font-size:",";line-height:",";&:after{content:'+';}"],e=>{let{theme:t}=e;return t.foundation.media.type.ui.medium},eR.I8.color.primary["4"],eR.I8.font.scale["0"],eR.I8["line-height"].none),ow=(eN.Ay.h2.withConfig({componentId:"sc-e7a8655f-7"}))(["",";color:",";font-size:",";line-height:",";margin:0;"],e=>{let{theme:t}=e;return t.foundation.media.type.ui.semi},eR.I8.color.primary.foreground,eR.I8.font.scale["4"],eR.I8["line-height"].none);var ob=(0,eP.memo)(e=>{var t,i,a,n;let{campaign:o,handleOrderClick:l,benefitsOpen:r,toggleBenefits:s,priceSectionHeight:d,setPriceSectionHeight:c,benefitsSectionHeight:m,setBenefitsSectionHeight:u,showRibbon:p,...g}=e,h=(0,eN.DP)(),f=(0,eP.useRef)(null),y=(0,eP.useRef)(null),x=(0,eP.useCallback)(e=>{var t,i,a,n;if(f.current){let a=null==(i=f.current.children)||null==(t=i[0])?void 0:t.getBoundingClientRect().height;a>(e?0:d)&&c(a)}if(y.current){let t=(null==(n=y.current.children)||null==(a=n[0])?void 0:a.getBoundingClientRect().height)||0;t>(e?0:m)&&u(t)}},[d,m,c,u]),w=(0,nc.A)(x,200);(0,eP.useLayoutEffect)(function(){x();let e=new MutationObserver(()=>w(!0)),t=document.getElementById(`${om}_${o.id}`);t&&e.observe(t,{childList:!0,subtree:!0});let i=()=>w();return window.addEventListener("resize",i),()=>{e.disconnect(),window.removeEventListener("resize",i)}},[x,w,o.id]);let b=o&&(null==(t=o.papers)?void 0:t.length)>1?o.papers.flatMap(e=>e.productTexts):null==(a=o.papers)||null==(i=a[0])?void 0:i.productTexts,I=(0,ip.K0)(o);return(0,eL.jsxs)(ou,{backgroundColor:`theme1.${h.foundation.theme.context}.color.base.1`,className:I?"premium-wall":void 0,...g,children:[I&&(E||(E=(0,eL.jsx)(op,{}))),p&&(0,eL.jsx)(oc,{text:I?"Uutta":"Huippuetu"}),(0,eL.jsx)(oA,{"data-paywall-section":"paywall-heading",children:o.papers?null==(n=o.papers)?void 0:n.map((e,t)=>{if(t>0){let t="KALE"===e.paperCode?"kl":e.paperCode.toLowerCase();return t===h.foundation.media.mediaToken?null:(0,eL.jsxs)(oy,{children:[T||(T=(0,eL.jsx)(ox,{}
144)),(0,eL.jsx)(oI,{media:t,id:"dynamic-product-logo","data-paywall-section-item":"paywall-heading-logo"})]},`dynamic-logo-${e.paperCode}`)}return(0,eL.jsx)(ov,{media:h.foundation.media.mediaToken,id:"media-logo","data-paywall-section-item":"paywall-heading-logo"},`media-logo-${e.paperCode}`)}):null}),(0,eL.jsx)(ok,{ref:f,"data-paywall-section":"paywall-description",$_css:0===d?"auto":`${d}px`,children:(0,eL.jsxs)(og,{children:[(0,eL.jsx)(oh,{"data-paywall-section-item":"paywall-description-textnotes",className:"paywall-textnotes",children:o.textNotes}),(0,eL.jsxs)(ow,{"data-paywall-section-item":"paywall-description-price",children:[o.totalPrice," €",o.subscriptionUnit?` / ${(0,ip.Tt)(o.subscriptionUnit,o.subscriptionLength)}`:""]})]})}),(null==b?void 0:b.length)>0&&(0,eL.jsx)(oC,{"data-paywall-section":"paywall-benefits",ref:y,$_css2:0===m?"auto":`${m}px`,children:(0,eL.jsx)(ol.L,{id:`${om}_${o.id}`,"data-paywall-section-item":"paywall-benefits-list",heading:"kl"===eV.A.siteShortSlug?"Valitse Suomen suurin talousmedia:":"Tilauksen edut",children:null==b?void 0:b.map(e=>(0,eL.jsx)(ol.L.ListItem,{children:e.text},e.text))})}),o.textPresentation&&(0,eL.jsx)(o$,{"data-paywall-section":"paywall-description",children:(0,eL.jsx)(of,{"data-paywall-section-item":"paywall-description-textpresentation",children:o.textPresentation})}),(0,eL.jsx)(oS,{"data-paywall-section":"paywall-buttons",children:(0,eL.jsx)(oj,{"data-paywall-section-item":"paywall-buttons-primary-cta",onClick:()=>l(o),children:"Tilaa"})}),(null==b?void 0:b.length)>0&&(0,eL.jsxs)(o_,{"data-paywall-section":"paywall-benefits",children:[(0,eL.jsx)(im.A,{"data-paywall-section-item":"paywall-buttons-benefits-cta",iconPositionRight:!0,icon:r?L||(L=(0,eL.jsx)(a1.A,{size:"core.size.
144icon.medium"})):P||(P=(0,eL.jsx)(a2.A,{size:"core.size.icon.medium"})),onClick:s,children:"Katso kaikki edut"}),r&&(0,eL.jsx)(ol.L,{"data-paywall-section-item":"paywall-benefits-list",heading:"",children:b.map(e=>(0,eL.jsx)(ol.L.ListItem,{children:e.text},e.text))})]})]})}),oI=(0,eN.Ay)(nE.A).withConfig({componentId:"sc-e7a8655f-8"})(["width:auto;height:calc( "," + "," );"],eR.I8.size.medium,eR.I8.size["xx-small"]),ov=(0,eN.Ay)(nE.A).withConfig({componentId:"sc-e7a8655f-9"})(["height:calc( "," + "," );"],eR.I8.size.medium,eR.I8.size["xx-small"]),oj=(0,eN.Ay)(or.A).withConfig({componentId:"sc-e7a8655f-10"})({width:"100%"}),oA=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-e7a8655f-11"})(["display:flex;flex-wrap:wrap;row-gap:",";column-gap:",";padding-bottom:",";> svg{width:auto;}"],eR.I8.spacing.small,eR.I8.spacing["xx-small"],eR.I8.spacing.medium),ok=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-e7a8655f-12"})(["display:grid;height:",";"],e=>e.$_css),oC=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-e7a8655f-13"})(["height:",";@media ","{display:none;}"],e=>e.$_css2,eR.I8.mediaquery.max.small),o$=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-e7a8655f-14"})(["padding-bottom:",";@media ","{padding-block:",";}"],eR.I8.spacing.medium,eR.I8.mediaquery.min.medium,eR.I8.spacing.medium),oS=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-e7a8655f-15"})(["display:grid;justify-items:center;row-gap:",";text-align:center;@media ","{margin-top:auto;}"],eR.I8.spacing.medium,eR.I8.mediaquery.min.medium),o_=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-e7a8655f-16"})(["margin-top:",";border-top:"," solid ",";@media ","{display:none;}> button{width:100%;}"],eR.I8.spacing.medium,eR.I8.border["x-small"],eR.I8.color.border["1"],eR.I8.mediaquery.min.medium),oz=i("S7");let oT=e=>{let t=(0,eM.wA)(),{onSuccess:i,customCooldownMs:a}=e||{},[n,o]=(0,eP.useState)(!1),[l,r]=(0,eP.useState)(!1),s=(0,eP.useRef)(!1);return{isRefreshing:l,handleRefreshRights:(0,eP.useCallback)(async()=>{if(!s.current){s.current=!0,r(!0),o(!0),setTimeout(()=>o(!1),a||2e4);try{(0,oz.VI)();let e=await (null===nO.I8||void 0===nO.I8?void 0:nO.I8.silentAuthentication({cacheMode:"off"}));if(!e)throw Error("Failed to obtain fresh authentication token");(0,oz.Im)(e),t(nC.i$.util.invalidateTags(["User","UserData"])),i&&i()}catch(e){console.error("Rights refresh failed:",e)}finally{s.current=!1,r(!1)}}},[i,t,a]),onCooldown:n}};var oE=i("NJ"),oL=i("FN"),oP=e=>{let{message:t}=e,i=(0,eN.DP)();return(0,eL.jsx)(oN,{variant:"notification",text:t,icon:N||(N=(0,eL.jsx)(oE.A,{size:"core.size.
144icon.medium",color:"core.color.primary.foreground"})),$_css:(0,aE.b)(`theme1.${i.foundation.theme.context}.color.base.1`)})},oN=(0,eN.Ay)(oL.A).withConfig({componentId:"sc-482cb2c8-0"})(["background-color:",";border:"," solid var(--core-color-primary-static-foreground-inverse);p{color:",";}"],e=>e.$_css,eR.I8.border["x-small"],eR.I8.color.primary.foreground),oD=i("uJ"),oM=i("gkw");let oR=`${eV.A.b2bSubscriptionLink}?utm_source=kl&utm_campaign=yritystilaukset&utm_medium=paywall`;var oH=(0,eP.memo)(e=>{let{contentLayout:t,...i}=e;return"kl"!==eV.A.siteShortSlug?null:(0,eL.jsx)(oD.e,{...i,children:(0,eL.jsxs)(oD.e.Content,{layout:t,children:[D||(D=(0,eL.jsx)(oD.e.Icon,{children:(0,eL.jsx)(oM.A,{size:"core.size.icon.xx-large"})})),M||(M=(0,eL.jsxs)(oD.e.TextGroup,{children:[(0,eL.jsx)(oD.e.Title,{children:"Yritystilaukset"}),(0,eL.jsx)(oD.e.Description,{children:"Koko tiimille yhdellä tilauksella"})]})),(0,eL.jsx)(oD.e.Cta,{onClick:()=>{window.location.href=oR},style:{width:"100%",minWidth:"7.375rem"},"data-paywall-section-item":"paywall-buttons-b2b-cta",children:"Tutustu"})]})})});let oU=(0,eN.Ay)(nT.j).withConfig({componentId:"sc-e67fbe19-0"})(["> div{max-width:30.438rem;}"]),oq=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-e67fbe19-1"})(["background:",";padding:"," ",";border:"," solid ",";border-radius:",";display:grid;row-gap:",";"],e=>{let{theme:t}=e;return(0,aE.b)(`theme1.${t.foundation.theme.context}.color.base.1`)},eR.I8.spacing.large,eR.I8.spacing.medium,eR.I8.border["x-small"],e=>{let{theme:t}=e;return t.foundation.media.color.wall.border},eR.I8.border.large,eR.I8.spacing.large);var oO=(0,eP.memo)(e=>{var t,i,a,n,o,l;let{campaign:r,handleOrderClick:s,userLoggedIn:d,contextualWallMessage:c}=e,{onChangedUserCredentialsCallback:m}=(0,eP.useContext)(n1),{isRefreshing:u,onCooldown:p,handleRefreshRights:g}=oT({onSuccess:m});return(0,eL.jsxs)(oU,{"data-paywall-state":"campaign-info",gutter:eR.I8.spacing.medium,children:[R||(R=(0,eL.jsx)(n6,{})),c&&(0,eL.jsx)(nT.j.Section,{children:(0,eL.jsx)(oP,{message:c})}),(0,eL.jsxs)(oq,{"data-paywall-section":"paywall-product-info",children:[(0,eL.jsxs)(oZ,{"data-paywall-section":"paywall-heading",$_css:eR.I8.grid.gutter.small,children:[(0,eL.jsx)(nE.A,{"data-paywall-section-item":"paywall-heading-logo",media:e4.Ay.foundation.media.mediaToken,size:"core.size.x-large"}),H||(H=(0,eL.jsx)(nT.j.CategoryHeading,{"data-paywall-section-item":"paywall-heading-category",children:"Digitilaus"}))]}),(0,eL.jsxs)(oK,{"data-paywall-section":"paywall-description",$_css2:eR.I8.grid.gutter["x-small"],children:[(0,eL.jsx)(eO.D.Subtitle,{size:"medium","data-paywall-section-item":"paywall-description-textnotes",children:r.textNotes}),(0,eL.jsx)(oB,{size:"small","data-paywall-section-item":"paywall-description-textpresentation",children:r.textPresentation})]}),(null==(a=r.papers)||null==(i=a[0])||null==(t=i.productTexts)?void 0:t.length)>0&&(0,eL.jsx)(nT.j.Section,{"data-paywall-section":"paywall-benefits",children:(0,eL.jsx)(ol.L,{"data-paywall-section-item":"paywall-benefits-list",heading:"kl"===eV.A.siteShortSlug?"Valitse Suomen suurin talousmedia:":"Tilauksen edut",children:null==(l=r.papers)||null==(o=l[0])||null==(n=o.productTexts)?void 0:n.map(e=>(0,eL.jsx)(ol.L.ListItem,{children:e.text},e.text))})}),r.textRenewal&&(0,eL.jsx)(nT.j.Section,{"data-paywall-section":"paywall-textrenewal",children:(0,eL.jsx)(nT.j.InfoText,{"data-paywall-section-item":"paywall-textrenewal-infotext",children:r.textRenewal})}),(0,eL.jsx)(oX,{"data-paywall-section":"paywall-buttons",children:(0,eL.jsx)(oV,{onClick:()=>s(r),"data-paywall-section-item":"paywall-buttons-primary-cta",children:"Tilaa"})})]}),(0,eL.jsxs)(oJ,{"data-paywall-section":"paywall-secondary-actions",$_css3:eR.I8.spacing.medium,children:["kl"===eV.A.siteShortSlug&&(0,eL.jsx)(oF,{rounded:!0}),d&&(0,eL.jsx)(oG,{onClick:g,"data-paywall-section-item":"paywall-buttons-refresh-rights",loading:u||p,disabled:u||p,children:"Olen tilaaja"}),!d&&(0,eL.jsx)(oW,{onClick:()=>n5.Ay.openAlmaLogin(),"data-paywall-section-item":"paywall-buttons-secondary-cta",children:"Tilaaja, kirjaudu sisään"})]})]})}),oB=(0,eN.Ay)(eJ.f).withConfig({componentId:"sc-e67fbe19-2"})({margin:0}),oV=(0,eN.Ay)(or.A).withConfig({componentId:"sc-e67fbe19-3"})({width:"100%"}),oG=(0,eN.Ay)(im.A).withConfig({componentId:"sc-e67fbe19-4"})({width:"100%"}),oW=(0,eN.Ay)(im.A).withConfig({componentId:"sc-e67fbe19-5"})({width:"100%"}),oF=(0,eN.Ay)(oH).withConfig({componentId:"sc-e67fbe19-6"})({textAlign:"left"}),oZ=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-e67fbe19-7"})(e=>({display:"grid",justifyItems:"center",rowGap:e.$_css,textAlign:"center"})),oK=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-e67fbe19-8"})(e=>({display:"grid",rowGap:e.$_css2,textAlign:"center"})),oX=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-e67fbe19-9"})({display:"grid",justifyItems:"center",textAlign:"center"}),oJ=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-e67fbe19-10"})(e=>({display:"grid",justifyItems:"center",rowGap:e.$_css3,textAlign:"center"})),oQ=i("vf");function oY(e,t,i){if(!window.ecomAB||!e||!t)return i;let a=(0,oQ.A)(window.ecomAB,i=>
144{if(i.target===e&&i.changeset[t])return i});return a?a.changeset[t]:i}let o0={variant:"40",control:"50",holdout:"51"};var o8=()=>{var e,t;let i,a=(0,eM.d4)(e=>e.sophi.assignedGroup);i=eV.A.sophiFeatureEnabled&&a&&o0[a]||"35";let[n,o]=(0,eP.useState)(0),l=function(){o(n+1)};return(0,eP.useEffect)(()=>(document.addEventListener("ecomAbUpdate",l),function(){document.removeEventListener("ecomAbUpdate",l)}),[]),{receiveType:oY("paywall.kayak","receiveType",i),isSetThroughEcomAB:null==(t=globalThis.window)||null==(e=t.ecomAB)?void 0:e.some(e=>{var t;return(null==(t=e.changeset)?void 0:t.receiveType)!==void 0})}};let o1=(eN.Ay.div.withConfig({componentId:"sc-f953c9aa-0"}))(["display:flex;flex-direction:column;"]),o2=(eN.Ay.div.withConfig({componentId:"sc-f953c9aa-1"}))(["display:flex;flex-direction:row;gap:",";margin-bottom:",";"],eR.I8.spacing.small,eR.I8.spacing.medium),o5=(0,eN.Ay)(im.A).withConfig({componentId:"sc-f953c9aa-2"})(["position:relative;display:flex;flex-direction:column;flex-grow:1;gap:",";border-radius:calc("," * 2);background:",";padding-top:calc("," + ",");padding-bottom:",";padding-inline:",";outline:",";",""],eR.I8.spacing["xx-small"],eR.I8.shape.rounded,e=>{let{theme:t}=e;return(0,aE.b)(`theme1.${t.foundation.theme.context}.color.base.1`)},eR.I8.spacing.large,eR.I8.spacing["x-small"],eR.I8.spacing["x-small"],eR.I8.spacing["xx-small"],e=>{let{theme:t}=e;return`${eR.I8.border["x-small"]} solid ${t.foundation.media.color.wall.border}`},e=>{let{$selected:t}=e;return t&&`
145        outline: ${eR.I8.border.small} solid ${eR.I8.color.border["6"]};
146
147        &::after {
148            content: '';
149            position: absolute;
150            bottom: calc(${eR.I8.spacing.medium} * -1);
151            left: 50%;
152            width: 0;
153            height: 0;
154            transform: translateX(-50%);
155            border-right: calc(${eR.I8.spacing.small} + ${eR.I8.spacing["xxxx-small"]}) solid transparent;
156            border-left: calc(${eR.I8.spacing.small} + ${eR.I8.spacing["xxxx-small"]}) solid transparent;
157            border-top: ${eR.I8.spacing.medium} solid ${eR.I8.color.border["6"]};
158        }
159    `}),o4=(eN.Ay.span.withConfig({componentId:"sc-f953c9aa-3"}))(["position:absolute;top:0;left:0;width:100%;border-top-left-radius:calc("," * 2);border-top-right-radius:calc("," * 2);",";background-color:",";margin:0;padding:"," "," "," ",";font-size:",";line-height:",";color:",";white-space:nowrap;"],eR.I8.shape.rounded,eR.I8.shape.rounded,e=>{let{theme:t}=e;return t.foundation.media.type.ui.medium},e=>{let{theme:t,$isLastItem:i}=e;return i?t.foundation.media.color.primary[6]:t.foundation.media.color.primary[2]},eR.I8.spacing["xx-small"],eR.I8.spacing.small,eR.I8.spacing["xxx-small"],eR.I8.spacing.small,eR.I8.font.scale["-2"],eR.I8["line-height"].none,e=>{let{$isLastItem:t}=e;return t?eR.I8.color.primary["foreground-inverse"]:eR.I8.color.primary.foreground}),o3=(eN.Ay.span.withConfig({componentId:"sc-f953c9aa-4"}))(["display:block;",";font-size:",";color:",";line-height:",";margin:0;"],e=>{let{theme:t}=e;return t.foundation.media.type.ui.medium},eR.I8.font.scale["0"],eR.I8.color.primary.foreground,eR.I8["line-height"].medium),o6=(eN.Ay.span.withConfig({componentId:"sc-f953c9aa-5"}))(["display:block;",";font-size:",";color:",";line-height:",";margin:0;"],e=>{let{theme:t}=e;return t.foundation.media.type.headline.heavy},eR.I8.font.scale["3"],eR.I8.color.primary.foreground,eR.I8["line-height"].none),o9=(0,eN.Ay)(nT.j).withConfig({componentId:"sc-f953c9aa-6"})(["position:relative;padding:",";scroll-snap-align:center;border-radius:calc("," * 2);border-width:",";border-color:",";@media ","{padding:",";}> div{display:flex;flex-direction:column;gap:0;}&.premium-wall{background:linear-gradient( 128.4deg,#171d27 0%,#162456 45%,#162456 64.94%,#171d27 100% );h2,h3,p,span{color:",";}path{fill:",";}li{path{fill:",";}}li:not(:last-child){border-bottom-color:rgba(255,255,255,0.15);}.offer-ribbon{> span{background-color:",";color:",";}}button{&:focus-visible{outline-color:",";}}@media ","{[data-paywall-section='paywall-benefits']{border-top-color:rgba(255,255,255,0.15);}button{&:has(> span){color:",";
159path{fill:",";}}}}}"],eR.I8.spacing.large,eR.I8.shape.rounded,eR.I8.border["x-small"],eR.I8.color.border["6"],eR.I8.mediaquery.max["x-small"],eR.I8.spacing.medium,eR.I8.color.primary.static["foreground-inverse"],eR.I8.color.primary.static["foreground-inverse"],e=>{let{theme:t}=e;return t.foundation.media.color.primary.static[2]},e=>{let{theme:t}=e;return t.foundation.media.color.primary.static[2]},e=>{let{theme:t}=e;return t.foundation.media.color.primary.static[4]},eR.I8.color.primary.static["foreground-inverse"],eR.I8.mediaquery.max.small,e=>{let{theme:t}=e;return t.foundation.media.color.primary.static[3]},e=>{let{theme:t}=e;return t.foundation.media.color.primary.static[3]}),o7=(eN.Ay.p.withConfig({componentId:"sc-f953c9aa-7"}))(["",";color:",";font-size:",";line-height:",";margin:0;"],e=>{let{theme:t}=e;return t.foundation.media.type.ui.normal},eR.I8.color.primary.foreground,eR.I8.font.scale["-1"],eR.I8["line-height"].medium),le=(eN.Ay.span.withConfig({componentId:"sc-f953c9aa-8"}))(["display:block;",";color:",";font-size:",";line-height:",";"],e=>{let{theme:t}=e;return t.foundation.media.type.ui.normal},eR.I8.color.primary.foreground,eR.I8.font.scale["-1"],eR.I8["line-height"].medium),lt=["Kokeile","Säästä 26%","Säästä 35%"],li=["35,90 €/kk","26,50 €/kk","23,25 €/kk"],la=[{textId:"benefit-articles",text:"Rajoittamaton pääsy kaikkiin Kauppalehden artikkeleihin"},{textId:"benefit-tools",text:"Työkalut parempien sijoituspäätösten tueksi"}];var ln=(0,eP.memo)(e=>{let{campaigns:t,handleOrderClick:i,...a}=e,[n,o]=(0,eP.useState)(t[0]),l=(0,eN.DP)();return(0,eL.jsxs)(o1,{children:[(0,eL.jsx)(o2,{role:"group","aria-label":"Tilauksen kesto",children:t.map((e,i)=>{let a;return(0,eL.jsxs)(o5,{onClick:()=>o(e),$selected:n.id===e.id,"aria-pressed":n.id===e.id,children:[(0,eL.jsx)(o4,{$isLastItem:i===t.length-1,children:lt[i]}),e.subscriptionUnit&&(0,eL.jsx)(o3,{children:1===e.subscriptionLength?`${(0,ip.Tt)(e.subscriptionUnit,e.subscriptionLength)} vain`:(0,ip.Tt)(e.subscriptionUnit,e.subscriptionLength)}),(0,eL.jsx)(o6,{children:(a=parseFloat(e.totalPrice.replace(",",".")),Intl.NumberFormat("fi-FI",{style:"currency",currency:"EUR",minimumFractionDigits:2*!Number.isInteger(a),maximumFractionDigits:2}).format(a))}),(0,eL.jsx)(le,{children:li[i]})]},e.id)})}),(0,eL.jsxs)(o9,{backgroundColor:`theme1.${l.foundation.theme.context}.color.base.1`,...a,children:[n.textPresentation&&(0,eL.jsx)(ll,{"data-paywall-section":"paywall-description",children:(0,eL.jsx)(o7,{"data-paywall-section-item":"paywall-description-textpresentation",children:n.textPresentation})}),(null==la?void 0:la.length)>0&&(0,eL.jsx)(nT.j.Section,{"data-paywall-section":"paywall-benefits",children:(0,eL.jsx)(ol.L,{id:`benefits-marketing-list_${n.id}`,"data-paywall-section-item":"paywall-benefits-list",heading:"Tilauksen edut",children:null==la?void 0:la.map(e=>(0,eL.jsx)(ol.L.ListItem,{children:e.text},e.text))})}),(0,eL.jsx)(lr,{"data-paywall-section":"paywall-buttons",children:(0,eL.jsx)(lo,{"data-paywall-section-item":"paywall-buttons-primary-cta",onClick:()=>i(n),children:"Tilaa"})}),U||(U=(0,eL.jsx)(ls,{"data-paywall-section":"paywall-cancellation-description",children:(0,eL.jsx)(o7,{"data-paywall-section-item":"paywall-cancellation-description-textpresentation",children:"Voit lopettaa tilauksen Oma asioinnissa milloin vain maksetun kauden loppuun. Tilaus sisältää uutiskirjeen."})}))]})]})}),lo=(0,eN.Ay)(or.A).withConfig({componentId:"sc-f953c9aa-9"})({width:"100%"}),ll=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-f953c9aa-10"})(["padding-bottom:",";"],eR.I8.spacing.medium),lr=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-f953c9aa-11"})(["padding-block:",";"],eR.I8.spacing.medium),ls=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-f953c9aa-12"})(["text-align:center;"]);let ld=(0,eN.Ay)(im.A).withConfig({componentId:"sc-db788dca-0"})(["width:100%;@media ","{margin-top:",";}"],eR.I8.mediaquery.max.small,eR.I8.spacing.small),lc=(0,eN.Ay)(nT.j).withConfig({componentId:"sc-db788dca-1"})(["justify-content:center;"]),lm=(0,eN.Ay)(nT.j).withConfig({componentId:"sc-db788dca-2"})(["> div{max-width:unset;gap:",";@media ","{max-width:25rem;gap:",";}}.premium-container{.paywall-textnotes{font-size:",";}}"],eR.I8.spacing.medium,eR.I8.mediaquery.max.small,eR.I8.spacing.small,eR.I8.font.scale["1"]),lu=e=>{let{campaign:t,handleOrderClick:i,userLoggedIn:a,contextualWallMessage:n,isRefreshing:o,onCooldown:l,handleRefreshRights:r}=e,s=(0,eN.DP)(),d=t.some(e=>(0,ip.K0)(e));return(0,eL.jsxs)(lc,{"data-paywall-state":"campaign-info",gutter:eR.I8.spacing.medium,children:[q||(q=(0,eL.jsx)(n6,{})),n&&(0,eL.jsx)(nT.j.Section,{children:(0,eL.jsx)(oP,{message:n})}),(0,eL.jsxs)(lx,{"data-paywall-section":"paywall-heading",$_css:eR.I8.spacing.small,children:[(0,eL.jsx)(nE.A,{"data-paywall-section-item":"paywall-heading-logo",media:s.foundation.media.mediaToken,size:"core.size.x-large"}),O||(O=(0,eL.jsx)(nT.j.CategoryHeading,{"data-paywall-section-item":"paywall-heading-category",children:"Digitilaus"})),(0,eL.jsx)(ly,{size:"small",children:"Valitse sinulle sopivin tilaus ja jatka lukemista"})]}),(0,eL.jsx)(lw,{"data-paywall-section":"paywall-three-offers",className:d?"premium-container":void 0,children:(0,eL.jsx)(ln,{campaigns:t.slice(2,5),handleOrderClick:i})}),"kl"===eV.A.siteShortSlug&&(B||(B=(0,eL.jsx)(nT.j.Section,{"data-paywall-section":"paywall-b2b-promo",children:(0,eL.jsx)(oH,{rounded:!0})}))),(0,eL.jsxs)(lb,{"data-paywall-section":"paywall-buttons",$_css2:eR.I8.spacing["xxxx-small"],children:[a&&(0,eL.jsx)(ld,{onClick:r,"data-
159paywall-section-item":"paywall-buttons-refresh-rights",loading:o||l,disabled:o||l,children:"Olen tilaaja"}),!a&&(0,eL.jsx)(ld,{onClick:()=>n5.Ay.openAlmaLogin(),"data-paywall-section-item":"paywall-buttons-secondary-cta",children:"Tilaaja, kirjaudu sisään"})]})]})},lp=e=>{let{campaign:t,handleOrderClick:i,userLoggedIn:a,contextualWallMessage:n,isRefreshing:o,onCooldown:l,handleRefreshRights:r}=e,[s,d]=(0,eP.useState)(0),[c,m]=(0,eP.useState)(0),u=(0,eP.useId)(),p=(0,eN.DP)(),[g,h]=(0,eP.useState)(!1),f=t.slice(0,2),y=f.some(e=>(0,ip.K0)(e));return(0,eL.jsxs)(lm,{"data-paywall-state":"campaign-info",children:[V||(V=(0,eL.jsx)(n6,{})),n&&(0,eL.jsx)(nT.j.Section,{children:(0,eL.jsx)(oP,{message:n})}),(0,eL.jsxs)(lI,{"data-paywall-section":"paywall-heading",$_css3:eR.I8.grid.gutter.small,children:[(0,eL.jsx)(nE.A,{"data-paywall-section-item":"paywall-heading-logo",media:p.foundation.media.mediaToken,size:"core.size.x-large"}),G||(G=(0,eL.jsx)(nT.j.CategoryHeading,{"data-paywall-section-item":"paywall-heading-category",children:"Digitilaus"}))]}),(0,eL.jsx)(lv,{"data-paywall-section":"paywall-multiple-offers",className:y?"premium-container":void 0,$_css4:f.length,children:f.map((e,t)=>(0,eL.jsx)(ob,{campaign:e,handleOrderClick:i,benefitsOpen:g,toggleBenefits:()=>h(!g),id:`carousel-teaser-${u}-${t}`,"data-carousel-item":!0,"data-index":t,showRibbon:0!==t,priceSectionHeight:s,setPriceSectionHeight:e=>d(e),benefitsSectionHeight:c,setBenefitsSectionHeight:e=>m(e)},e.id))}),(0,eL.jsx)(n2.A,{teaserList:f.map(e=>({uuid:e.id,heading:e.name})),uniqueId:u}),"kl"===eV.A.siteShortSlug&&(W||(W=(0,eL.jsx)(nT.j.Section,{"data-paywall-section":"paywall-b2b-promo",children:(0,eL.jsx)(oH,{rounded:!0})}))),(0,eL.jsxs)(lj,{"data-paywall-section":"paywall-buttons",$_css5:eR.I8.spacing["xxxx-small"],children:[a&&(0,eL.jsx)(ld,{onClick:r,"data-paywall-section-item":"paywall-buttons-refresh-rights",loading:o||l,disabled:o||l,children:"Olen tilaaja"}),!a&&(0,eL.jsx)(ld,{onClick:()=>n5.Ay.openAlmaLogin(),"data-paywall-section-item":"paywall-buttons-secondary-cta",children:"Tilaaja, kirjaudu sisään"})]})]})};var lg=(0,eP.memo)(e=>{let{campaign:t,handleOrderClick:i,userLoggedIn:a,contextualWallMessage:n}=e,{onChangedUserCredentialsCallback:o}=(0,eP.useContext)(n1),{isRefreshing:l,onCooldown:r,handleRefreshRights:s}=oT({onSuccess:o});return(lf(),5===t.length)?(0,eL.jsx)(oo,{name:n9.mL,componentA:(0,eL.jsx)(lp,{campaign:t,handleOrderClick:i,userLoggedIn:a,contextualWallMessage:n,isRefreshing:l,onCooldown:r,handleRefreshRights:s}),componentB:(0,eL.jsx)(lu,{campaign:t,handleOrderClick:i,userLoggedIn:a,contextualWallMessage:n,isRefreshing:l,onCooldown:r,handleRefreshRights:s})}):t.length>1?(0,eL.jsx)(lp,{campaign:t,handleOrderClick:i,userLoggedIn:a,contextualWallMessage:n,isRefreshing:l,onCooldown:r,handleRefreshRights:s}):(0,eL.jsx)(oO,{campaign:null==t?void 0:t[0],handleOrderClick:i,userLoggedIn:a,contextualWallMessage:n})});let lh=()=>{"u">typeof window&&(window.dispatchEvent(new CustomEvent("article-paywall-campaign-info-rendered")),window.articlePaywallCampaignInfoRendered=!0)},lf=()=>{let{receiveType:e,isSetThroughEcomAB:t}=o8();(0,eP.useEffect)(()=>{var e,i,a,n;let o;return window.articlePaywallCampaignInfoRendered=!1,o=(null==(e=window.ABTasty)?void 0:e.started)?(null==(n=window.ABTasty)||null==(a=n.eventState)||null==(i=a.executedCampaign)?void 0:i.status)==="complete"?window.setTimeout(()=>lh(),500*!t):window.setTimeout(()=>lh(),500):window.setTimeout(()=>lh(),500),()=>{clearTimeout(o)}},[e,t])};var ly=(0,eN.Ay)(eO.D.Subtitle).withConfig({componentId:"sc-db788dca-3"})(["padding-inline:",";"],eR.I8.spacing.medium),lx=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-db788dca-4"})(e=>({display:"grid",justifyItems:"center",rowGap:e.$_css,textAlign:"center"})),lw=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-db788dca-5"})(["max-width:27.5625rem;"]),lb=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-db788dca-6"})(e=>({display:"grid",justifyItems:"center",rowGap:e.$_css2,textAlign:"center",maxWidth:"27.688rem",margin:"0 auto"})),lI=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-db788dca-7"})(e=>({display:"grid",justifyItems:"center",rowGap:e.$_css3,textAlign:"center"})),lv=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-db788dca-8"})(["display:grid;grid-template-columns:1fr 1fr;column-gap:",";@media ","{padding-top:calc( "," + "," );padding-right:",";grid-template-columns:repeat( ",",100% );overflow-x:scroll;scroll-snap-type:x mandatory;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;}"],eR.I8.spacing.small,eR.I8.mediaquery.max.small,eR.I8.spacing["xxx-small"],eR.I8.spacing["xxxx-small"],eR.I8.spacing["xx-small"],e=>e.$_css4),lj=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-db788dca-9"})(e=>({display:"grid",justifyItems:"center",rowGap:e.$_css5,textAlign:"center",maxWidth:"27.688rem",margin:"0 auto"})),lA=i("ol"),lk=()=>{let[e]=(0,nC.Ng)({}),t=async()=>{await e({}),n5.Ay.openAlmaLogin()};return(0,eL.jsxs)(nT.j,{"data-paywall-state":"corporate-customer",children:[(0,eL.jsxs)(lS,{"data-paywall-section":"paywall-heading",$_css:eR.I8.grid.gutter.small,children:[(0,eL.jsx)(nE.A,{"data-paywall-section-item":"paywall-heading-logo",media:e4.Ay.foundation.media.mediaToken,size:"core.size.x-large"}),F||(F=(0,eL.jsx)(nT.j.CategoryHeading,{"data-paywall-section-item":"paywall-heading-category",children:"Digitilaus"}))]}),(0,eL.jsxs)(l_,{"data-paywall-section":"paywall-description",$_css2:eR.I8.grid.gutter["x-small"],children:[Z||(Z=(0,eL.jsx)(eO.D.Subtitle,{size:"medium","data-paywall-section-item":"paywall-description-icon",children:(0,eL.jsx)(lA.default,{size:"core.size.
159icon.x-large"})})),K||(K=(0,eL.jsx)(eO.D.Subtitle,{size:"medium","data-paywall-section-item":"paywall-description-textnotes",children:"Olet kirjautunut sisään työnantajasi tarjoamalla ryhmätunnuksella."})),(0,eL.jsx)(lC,{size:"small","data-paywall-section-item":"paywall-description-textpresentation",children:"Kirjaudu sisään henkilökohtaisella Alma-tunnuksellasi tehdäksesi tilauksen."})]}),(0,eL.jsx)(lz,{"data-paywall-section":"paywall-buttons",$_css3:eR.I8.spacing.medium,children:(0,eL.jsx)(l$,{onClick:t,"data-paywall-section-item":"paywall-buttons-primary-cta",children:"Kirjaudu Alma-tunnuksellasi"})})]})},lC=(0,eN.Ay)(eJ.f).withConfig({componentId:"sc-a342187d-0"})({margin:0}),l$=(0,eN.Ay)(or.A).withConfig({componentId:"sc-a342187d-1"})({width:"100%"}),lS=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-a342187d-2"})(e=>({display:"grid",justifyItems:"center",rowGap:e.$_css,textAlign:"center"})),l_=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-a342187d-3"})(e=>({display:"grid",rowGap:e.$_css2,textAlign:"center"})),lz=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-a342187d-4"})(e=>({display:"grid",justifyItems:"center",rowGap:e.$_css3,textAlign:"center"})),lT=i("qh"),lE=i("jyS"),lL=i("v8");let lP={kl:"8aab256e-3d10-49dd-a373-6f06352068ff"};var lN=()=>{let e=lP[eV.A.siteShortSlug];return(0,eP.useEffect)(()=>{if(!e)return;if(!window.pixie||"function"!=typeof window.pixie||!window.pixie.actionQueue){let e=window.pixie=function(t,i,a){e.actionQueue||(e.actionQueue=[]),e.actionQueue.push({action:t,actionValue:i,params:a})};e.actionQueue||(e.actionQueue=[])}let t=document.createElement("script");return t.async=!0,t.src="//acdn.adnxs.com/dmp/up/pixie.js",document.head.insertBefore(t,document.head.firstChild),window.pixie("config","tcf",{enabled:!0}),window.pixie("init",e),window.pixie("event","Purchase",{item_id:eV.A.siteNameSlug,item_type:"paywall",item_name:"publisher"}),()=>{document.head.contains(t)&&document.head.removeChild(t)}},[e]),null},lD=()=>{let{onPaymentCompletedCallback:e,onChangedUserCredentialsCallback:t,proceedToContentBtnText:i,orderMetaReady:n}=(0,eP.useContext)(n1),o=(0,eP.useRef)(!1),l=(0,eP.useRef)(!1),{data:r,isSuccess:s}=(0,nC.Bq)({}),[d]=(0,nC.pm)(),{userPollingOn:c,pollingTimedOut:m,startPolling:u,resetPolling:p}=(0,lL.c)(d);(0,eP.useEffect)(()=>{t&&(null==r?void 0:r.credentials)&&(null==a?void 0:a.credentials)&&a.credentials!==r.credentials&&(t(),(0,nJ.TV)(nJ.N5,"true",1)),a=r},[t,r]);let g=(0,eM.d4)(e=>e.user),h=(0,eP.useMemo)(()=>new URLSearchParams(iu.A.location.search),[]);(0,eP.useEffect)(()=>{"true"===h.get("paymentOk")&&!o.current&&n&&s&&(0,n$.M3)(r)&&((0,n_.UZ)({event:"NewsOrderPipeline-SUCCESSFUL_ORDER",successful_order:!0}),(0,nY.Kf)().catch(()=>{}),o.current=!0)},[h,n,s,r]),(0,eP.useEffect)(()=>()=>(0,lE.A)(".article-start","smooth"),[]);let f=(0,eM.d4)(e=>e.user.lambdaCookies),y=(0,eP.useCallback)(()=>{u(),(0,lT.C)(lT.N),null==t||t(),null==e||e(),(0,e7.kn)(g.consentV3)&&(0,nJ.TV)(nJ.TI,"true",7)},[u,t,e,g.consentV3]),x=(0,nJ.Ri)(f,nJ.Cc),w=(0,nJ.Ri)(f,nJ.R8);return((0,eP.useEffect)(()=>{"linked_group"===x&&(y(),(0,nJ.Yj)(nJ.Cc))},[x,y]),(0,eP.useEffect)(()=>{"true"===w&&s&&(0,n$.M3)(r)&&(l.current||(l.current=!0,y()))},[w,s,r,y]),c||m)?(0,eL.jsx)(nL,{subtitle:m?"Lukuoikeuksien päivitys viivästyy":"Sisältöä ladataan",paragraph:m?"Lukuoikeuksien päivittäminen kestää odotettua pidempään. Voit sulkea tämän ikkunan ja palata lukemaan artikkelia myöhemmin. Tilausvahvistus on lähetetty sähköpostiisi.":"Odotathan hetken, lukuoikeuksien päivittäminen voi kestää noin minuutin.",onCancelClick:p}):(0,eL.jsxs)(nT.j,{"data-paywall-state":"paywall-completed",children:[(0,eL.jsxs)(lU,{"data-paywall-section":"paywall-description",$_css:eR.I8.grid.gutter.small,children:[(0,eL.jsx)(nE.A,{"data-paywall-section-item":"paywall-heading-logo",media:e4.Ay.foundation.media.mediaToken,size:"core.size.x-large"}),X||(X=(0,eL.jsx)(nT.j.CategoryHeading,{"data-paywall-section-item":"paywall-heading-category",children:"Digitilaus"}))]}),(0,eL.jsxs)(lq,{"data-paywall-section":"paywall-description",$_css2:eR.I8.grid.gutter["x-small"],children:[J||(J=(0,eL.jsx)(eO.D.Subtitle,{size:"medium","data-paywall-section-item":"paywall-description-textnotes",children:"Kiitos tilauksesta!"})),(0,eL.jsx)(lM,{size:"small","data-paywall-section-item":"paywall-description-textpresentation",children:"Olemme lähettäneet tilausvahvistusviestin sähköpostiisi"})]}),(0,eL.jsxs)(lO,{"data-paywall-section":"paywall-buttons",$_css3:eR.I8.spacing.medium,children:[(0,eL.jsx)(lR,{onClick:y,"data-paywall-section-item":"paywall-buttons-primary-cta",children:i||"Jatka lukemaan artikkelia"}),(0,eL.jsx)(lH,{"data-paywall-section-item":"paywall-buttons-tertiary-cta",as:"a",href:"https://www.almamedia.fi/yhteystiedot/asiakaspalvelu/",target:"_blank",rel:"noopener noreferrer",children:"Tarvitsetko apua?"})]}),Q||(Q=(0,eL.jsx)(lN,{}))]})},lM=(0,eN.Ay)(eJ.f).withConfig({componentId:"sc-8d9ca28e-0"})({margin:0}),lR=(0,eN.Ay)(or.A).withConfig({componentId:"sc-8d9ca28e-1"})({width:"100%"}),lH=(0,eN.Ay)(im.A).withConfig({componentId:"sc-8d9ca28e-2"})({textDecoration:"none"}),lU=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-8d9ca28e-3"})(e=>({display:"grid",justifyItems:"center",rowGap:e.$_css,textAlign:"center"})),lq=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-8d9ca28e-4"})(e=>({display:"grid",rowGap:e.$_css2,textAlign:"center"})),lO=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-8d9ca28e-5"})(e=>({display:"grid",justifyItems:"center",rowGap:e.$_css3,textAlign:"center"})),lB=i("Ul"),lV=i.n(lB),lG=e=>{let{isError:t,error:i,refetch:a,className:n}=e;return(0,eP.useEffect)(()=>
159{i&&(0,n_.Ay)("kayak_paywall_error","failed_campaign_fetch",i.data||i.message,i.status)},[i]),(0,eL.jsxs)(lK,{className:lV()("alma-news-order-pipeline",n),"data-paywall-state":"failed-campaign-fetch",$_css4:eR.I8.color.primary.foreground,children:[(0,eL.jsxs)(lX,{"data-paywall-section":"paywall-heading",$_css:eR.I8.grid.gutter.small,children:[(0,eL.jsx)(nE.A,{"data-paywall-section-item":"paywall-heading-logo",media:e4.Ay.foundation.media.mediaToken,size:"core.size.x-large"}),Y||(Y=(0,eL.jsx)(nT.j.CategoryHeading,{"data-paywall-section-item":"paywall-heading-category",children:"Digitilaus"}))]}),(0,eL.jsx)(lJ,{"data-paywall-section":"paywall-description",$_css2:eR.I8.grid.gutter.small,children:t?(0,eL.jsxs)(eL.Fragment,{children:[et||(et=(0,eL.jsx)(eO.D.Subtitle,{size:"medium","data-paywall-section-item":"paywall-description-icon",children:(0,eL.jsx)(lA.default,{size:"core.size.icon.x-large"})})),(0,eL.jsx)(lW,{size:"small","data-paywall-section-item":"paywall-description-textpresentation",children:(null==i?void 0:i.status)===401?"Tilaus epäonnistui. Varmistathan, ettei selaimesi ole incognito-tilassa ja yritä uudelleen.":"Jotain meni pieleen, ole hyvä ja yritä hetken päästä uudelleen."})]}):ee||(ee=(0,eL.jsx)(te.A,{useMediaColors:!0}))}),(0,eL.jsxs)(lQ,{"data-paywall-section":"paywall-buttons",$_css3:eR.I8.spacing.small,children:[(0,eL.jsx)(lF,{"data-paywall-section-item":"paywall-buttons-primary-cta",onClick:()=>{a()},disabled:!t,children:"Yritä uudelleen"}),(0,eL.jsx)(lZ,{"data-paywall-section-item":"paywall-buttons-secondary-cta",tagAs:"a",href:"https://www.almamedia.fi/yhteystiedot/asiakaspalvelu/",target:"_blank",rel:"noopener noreferrer",children:"Tarvitsetko apua?"})]})]})},lW=(0,eN.Ay)(eJ.f).withConfig({componentId:"sc-7bf5ed67-0"})({margin:0}),lF=(0,eN.Ay)(or.A).withConfig({componentId:"sc-7bf5ed67-1"})({width:"100%"}),lZ=(0,eN.Ay)(a_.A).withConfig({componentId:"sc-7bf5ed67-2"})({textDecoration:"none",width:"100%"}),lK=(0,eN.Ay)(nT.j).withConfig({componentId:"sc-7bf5ed67-3"})(e=>({color:e.$_css4,position:"relative"})),lX=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-7bf5ed67-4"})(e=>({display:"grid",justifyItems:"center",rowGap:e.$_css,textAlign:"center"})),lJ=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-7bf5ed67-5"})(e=>({display:"grid",justifyItems:"center",rowGap:e.$_css2,textAlign:"center"})),lQ=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-7bf5ed67-6"})(e=>({display:"grid",justifyItems:"center",rowGap:e.$_css3,textAlign:"center"})),lY=e=>{let{...t}=e;return(0,eL.jsx)(l0,{"data-paywall-state":"loading",className:"alma-news-order-pipeline loading-page",...t,$_css2:eR.I8.color.primary.foreground,children:(0,eL.jsx)(l8,{"data-paywall-section":"paywall-loader",$_css:eR.I8.grid.gutter.small,children:ei||(ei=(0,eL.jsx)(te.A,{useMediaColors:!0}))})})},l0=(0,eN.Ay)(nT.j).withConfig({componentId:"sc-5bda8166-0"})(e=>({color:e.$_css2,position:"relative",height:"10rem"})),l8=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-5bda8166-1"})(e=>({display:"grid",justifyItems:"center",rowGap:e.$_css,textAlign:"center"})),l1=e=>{let{wallMessage:t,userLoggedIn:i}=e;return(0,eL.jsxs)(nT.j,{gutter:eR.I8.spacing["x-large"],children:[ea||(ea=(0,eL.jsx)(n6,{})),(0,eL.jsxs)(l5,{$_css:eR.I8.grid.gutter.small,children:[(0,eL.jsx)(nE.A,{media:e4.Ay.foundation.media.mediaToken,size:"core.size.x-large"}),en||(en=(0,eL.jsx)(nT.j.CategoryHeading,{children:"Digitilaus"}))]}),(0,eL.jsxs)(l3,{$_css3:eR.I8.grid.gutter["x-small"],children:[eo||(eo=(0,eL.jsx)(eO.D.Subtitle,{size:"medium",children:(0,eL.jsx)(lA.default,{size:"core.size.
159icon.x-large"})})),(0,eL.jsx)(eO.D.Subtitle,{size:"medium",children:t}),(0,eL.jsx)(l4,{$_css2:eR.I8.font.scale["0"],children:"Yritä hetken kuluttua uudelleen."})]}),!i&&(0,eL.jsx)(l6,{children:(0,eL.jsx)(l2,{onClick:()=>n5.Ay.openAlmaLogin(),children:"Tilaaja, kirjaudu sisään"})})]})},l2=(0,eN.Ay)(or.A).withConfig({componentId:"sc-29c16aad-0"})({width:"100%"}),l5=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-29c16aad-1"})(e=>({display:"grid",justifyItems:"center",rowGap:e.$_css,textAlign:"center"})),l4=(0,eN.Ay)(nT.j.InfoText).withConfig({componentId:"sc-29c16aad-2"})(e=>({fontSize:e.$_css2})),l3=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-29c16aad-3"})(e=>({display:"grid",rowGap:e.$_css3,textAlign:"center"})),l6=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-29c16aad-4"})({display:"grid",justifyItems:"center",textAlign:"center"});let l9="kayak-paywall",l7=(eN.Ay.div.withConfig({componentId:"sc-e8e03ec0-0"}))(["@media ","{margin-inline:calc("," * -1);width:calc(100% + "," * 2);}"],eR.I8.mediaquery.max["x-small"],eR.I8.spacing.medium,eR.I8.spacing.medium),re=e=>{var t;let i,{adjustLoadingView:a,articleUuid:n,onOrderMetaReady:o}=e,l=(0,eP.useMemo)(()=>new URLSearchParams(iu.A.location.search),[]),[r,s]=(0,eP.useState)("true"===l.get("paymentOk")),{data:d,isSuccess:c,isFetching:m}=(0,nC.Bq)({}),u=c&&(0,n$.M3)(d),{receiveType:p}=o8(),{data:g,isSuccess:h,isError:f}=n8(),y=(null==g?void 0:g.orderPipelineClosed)===!0,x=!y&&(null==g?void 0:g.wallMessageShowed)===!0&&(null==g?void 0:g.wallMessage)?null==g?void 0:g.wallMessage:void 0,w=!c||r||y,{data:b,error:I,isError:v,refetch:j,isFetching:A}=nX({receiveType:p,userLoggedIn:u},{skip:w}),k=(0,eM.d4)(e=>e.user.email),C=(0,eM.d4)(e=>{var t;return n?null==(t=e.article[n])?void 0:t.data:void 0}),$=(0,eM.d4)(e=>e.sophi.scriptLoaded),S=(0,eM.d4)(e=>e.user.consentV3),_=(0,eP.useCallback)(async e=>{(0,n_.nK)("add_to_cart");try{await (0,nY.pG)(S,$)}catch(e){console.error("Failed to set add to cart click sophi user property",e)}try{sessionStorage.setItem(nJ.cD,JSON.stringify(e))}catch{}try{(0,n_.UZ)({event:"NewsOrderPipeline-ADD_TO_CART"},{containerToComplete:n_.Zn,fn:async()=>{try{let t=await (0,ip._V)(e,u,k,n,C);window.location.href=t}catch(e){console.error("Failed to build external order URL",e)}}})}catch(e){console.error("Failed to send add-to-cart analytics",e)}},[C,n,k,u,S,$]),[z,T]=(0,eP.useState)(!1),{data:E}=(0,nC.Bq)({},{skip:!u}),L=(0,eM.d4)(e=>e.user.lambdaCookies),P=(0,eP.useCallback)(e=>{o(!0)},[o]);return(t=void 0,(0,eP.useEffect)(()=>{var e,i;let a=new URLSearchParams(iu.A.location.search),n=JSON.parse(sessionStorage.getItem(nJ.cD)||"null"),o="true"===a.get("paymentOk")&&n?n:t,l=localStorage.getItem(nJ.w$),r=null;if(null!==l){try{r=JSON.parse(l)}catch{}u&&localStorage.removeItem(nJ.w$)}let s={item:{productInfo:{basePrice:a.get("price")||(null==r?void 0:r.price)||(null==o||null==(e=o.totalPrice)?void 0:e.toString())||"0",productCode:(null==o?void 0:o.packageId)||"",productName:a.get("productName")||(null==r?void 0:r.productName)||(null==o?void 0:o.name)||"",productVariant:(null==o?void 0:o.subscriptionUnit)||"",sku:a.get("sku")||(null==r?void 0:r.sku)||(null==o?void 0:o.priceCode)||""}},allItems:null==b?void 0:b.map(e=>({productInfo:{basePrice:(null==e?void 0:e.totalPrice.toString())||"0",productCode:(null==e?void 0:e.packageId)||"",productName:(null==e?void 0:e.name)||"",productVariant:(null==e?void 0:e.subscriptionUnit)||"",sku:(null==e?void 0:e.priceCode)||""}})),transaction:{transactionID:(null==r?void 0:r.transactionId)||a.get("id")||a.get("amp;id")||"",total:{transactionTotal:a.get("transactionTotal")||(null==r?void 0:r.transactionTotal)||(null==o||null==(i=o.totalPrice)?void 0:i.toString())||"0"}}};window.OrderMeta=s,null==P||P(s)},[t,b,P,u]),i=(0,eP.useMemo)(()=>new URLSearchParams(iu.A.location.search),[]),(0,eP.useEffect)(()=>{i.get("paymentOk")&&(0,lE.A)(`#${l9}`)},[i]),(0,eP.useEffect)(()=>{if("true"===l.get("paymentOk")&&sessionStorage.getItem(nJ.cD))(0,nJ.TV)(nJ.Cc,"true",1),s(!0);else if((0,nJ.Ri)(L,nJ.R8))s(!0);else if((0,nJ.Ri)(L,nJ.N5))s(!0);else{let e=(0,nJ.Ri)(L,nJ.Cc);e&&"false"!==e&&s(!0)}},[l,L]),(0,eP.useEffect)(()=>{w?T(!1):T(v)},[v,w]),(0,n$.IZ)(d))?el||(el=(0,eL.jsx)(lk,{})):r?er||(er=(0,eL.jsx)(lD,{})):y&&h&&(null==g?void 0:g.wallMessage)&&c&&(u||!m)?(0,eL.jsx)(l1,{wallMessage:g.wallMessage,userLoggedIn:u}):v||z?(0,eL.jsx)(lG,{refetch:j,isError:v,error:I}):b&&!A&&(h||f)&&(u||!m)?u&&(null==E?void 0:E.needsVerification)?(0,eL.jsx)(nq,{adjustLoadingView:a}):(0,eL.jsx)(lg,{handleOrderClick:_,campaign:b,userLoggedIn:u,contextualWallMessage:x}):es||(es=(0,eL.jsx)(lY,{}))};var rt=e=>{let{article:t,onPaymentCompleted:i,...a}=e,n=(0,eM.wA)(),[o,l]=(0,eP.useState)(!1),r=eP.useMemo(()=>({onPaymentCompletedCallback:i,onChangedUserCredentialsCallback:()=>{t&&(0,nQ.B)(n,{articleId:t.uuid})},currentArticle:t,orderMetaReady:o}),[null==t?void 0:t.uuid,n,i,o]);return(0,eL.jsx)(l7,{id:l9,children:(0,eL.jsx)(n1.Provider,{value:r,children:(0,eL.jsx)(re,{articleUuid:null==t?void 0:t.uuid,...a,onOrderMetaReady:l})})})};let ri=(eN.Ay.p.withConfig({componentId:"sc-1028dcb7-0"}))(["",";color:",";font-size:18px;line-height:24px;letter-spacing:0.1px;max-width:550px;",";"],e=>e.theme.foundation.media.type.body.normal,e=>e.theme.colors.text,(0,iF.C9)("mobile","desktop")`
160        margin-top: 0;
161    `),ra=(0,eN.AH)(["background-image:linear-gradient( 180deg,rgba( ",",0.1 ),rgba( ",",1 ) );"],e=>e.rgbColor?`${e.rgbColor}`:"255, 255, 255",e=>e.rgbColor?`${e.rgbColor}`:"255, 255, 255"),rn="kl"===eV.A.siteShortSlug?"28, 34, 43":"31, 31, 31",ro=(0,eN.AH)(["background-image:linear-gradient( 180deg,rgba( ",",0.1 ),rgba( ",",1 ) );"],e=>e.rgbColor?`${e.rgbColor}`:rn,e=>e.rgbColor?`${e.rgbColor}`:rn),rl=(0,eN.AH)([""," ",""],ra,e=>{let{theme:t}=e;return!t.disableDarkMode&&(0,eN.AH)(["@media (prefers-color-scheme:dark){&{","}}html.theme-light &{","}html.theme-dark &{","}"],ro,ra,ro)}),rr=(eN.Ay.div.withConfig({componentId:"sc-1ded6865-0"}))(["position:relative;"]),rs=(eN.Ay.div.withConfig({componentId:"sc-1ded6865-1"}))(["z-index:",";width:100%;height:100px;position:absolute;top:-100px;pointer-events:none;",""],eR.I8["z-index"].elevate,rl),rd=((eN.Ay.div.attrs({className:"article-body"})).withConfig({componentId:"sc-65a7f033-0"}))(["display:flow-root;position:relative;"]);var rc=e=>{let{article:t,children:i,showByline:a=!0,showShortBody:n=!0}=e;return(0,eL.jsxs)(rd,{children:[a&&(0,eL.jsx)(iz,{article:t}),n&&(0,eL.jsx)(rm,{$_css:eR.I8.color.primary.foreground,children:t.shortBody}),(0,eL.jsxs)(rr,{children:[ed||(ed=(0,eL.jsx)(rs,{})),i]})]})},rm=(0,eN.Ay)(e=>{let{children:t,...i}=e;return(0,eL.jsx)(ri,{className:"paragraph",...i,children:t})}).withConfig({componentId:"sc-65a7f033-1"})(e=>({color:e.$_css})),ru=i("Bf"),rp=i("QPP"),rg=i("oL"),rh=i("Ut"),rf=i("RiB"),ry=i("R8");let{siteShortSlug:rx}=eV.A,rw=(eN.Ay.div.withConfig({componentId:"sc-d140322e-0"}))(["text-align:center;max-width:","rem;"],27.875),rb=(eN.Ay.div.withConfig({componentId:"sc-d140322e-1"}))(["",";margin:30px 0px;clear:both;"],e=>{let{theme:t}=e;return t.foundation.media.type.body.normal}),rI=(eN.Ay.div.withConfig({componentId:"sc-d140322e-2"}))(["display:inline-block;margin-bottom:30px;svg{width:9.375rem;}"]),rv=(eN.Ay.div.withConfig({componentId:"sc-d140322e-3"}))(["padding-top:15px;margin:0 5px;cursor:pointer;"]);var rj=(0,eN.Ay)(rv).withConfig({componentId:"sc-d140322e-4"})(["margin-bottom:",";> button{width:100%;}"],eR.I8.spacing.medium);let rA=(eN.Ay.div.withConfig({componentId:"sc-d140322e-5"}))(["display:flex;justify-content:center;border:"," solid ",";padding:",";background:",";"],eR.I8.border["x-small"],e=>{let{theme:t,$isAlternativePaywall:i}=e;return i?t.foundation.media.color.wall.border:eR.I8.color.brand.grey["2"]},eR.I8.spacing["x-large"],e=>{let{theme:t,$isAlternativePaywall:i}=e;return i?t.foundation.media.color.wall.background:eR.I8.color.primary["foreground-inverse"]}),rk=(eN.Ay.h2.withConfig({componentId:"sc-d140322e-6"}))(["margin:0 0 "," 0;font-size:",";",";"],eR.I8.spacing.medium,eR.I8.font.scale["3"],e=>{let{theme:t}=e;return t.foundation.media.type.subtitle.heavy}),rC=(eN.Ay.p.withConfig({componentId:"sc-d140322e-7"}))(["font-size:",";line-height:",";margin:0 0 "," 0;",";"],eR.I8.font.scale["0"],eR.I8["line-height"].small,eR.I8.spacing.large,e=>{let{theme:t}=e;return t.foundation.media.type.body.normal}),r$=(eN.Ay.div.withConfig({componentId:"sc-d140322e-8"}))(["display:flex;justify-content:center;gap:",";margin:"," 0;@media ","{column-gap:",";}"],eR.I8.spacing["x-large"],eR.I8.spacing["x-large"],eR.I8.mediaquery.max["x-small"],eR.I8.spacing["x-small"]),rS=(eN.Ay.p.withConfig({componentId:"sc-d140322e-9"}))(["",";font-size:",";line-height:",";",""],e=>{let{theme:t}=e;return t.foundation.media.type.ui.normal},eR.I8.font.scale["-1"],eR.I8["line-height"]["x-small"],e=>{let{theme:t}=e;return"kl"===t.foundation.media.mediaToken&&`
162        @media ${eR.I8.mediaquery.max["x-small"]} {
163            font-size: ${eR.I8.font.scale["-3"]};
164        }
165    `}),r_=(eN.Ay.div.withConfig({componentId:"sc-d140322e-10"}))(["display:flex;flex-direction:row;justify-content:space-around;margin-bottom:",";> svg{border:"," solid ",";border-radius:",";> path:first-of-type{","}}",""],eR.I8.spacing.small,eR.I8.size["xxxxx-small"],eR.I8.color.primary.static.white,eR.I8.shape.circle,e=>{let{theme:t}=e;return"kl"===t.foundation.media.mediaToken&&`fill: ${(0,aE.b)(`theme1.${t.foundation.theme.context}.color.base.1`)};`},e=>{let{theme:t}=e;return"kl"!==t.foundation.media.mediaToken&&(0,rf.I)("fill",eR.I8.color.primary["foreground-inverse"],t.foundation.media.color.wall.background,"> svg > path:first-of-type")}),rz=(eN.Ay.div.withConfig({componentId:"sc-d140322e-11"}))(["width:","rem;@media ","{max-width:","rem;width:100%;}"],6.3125,eR.I8.mediaquery.max["x-small"],6.3125),rT="pricewall.registration",rE={PORTFOLIO:{icon:rp.default,text:"Oma salkku"},FOLLOW_TOPIC:{icon:rg.default,text:"Uutisten aiheseuranta"},SAVE_NEWS:{icon:rh.default,text:"Uutisten tallentaminen"}}
165,rL="kl"===rx?["SAVE_NEWS","FOLLOW_TOPIC","PORTFOLIO"]:["SAVE_NEWS","FOLLOW_TOPIC"],rP=()=>(0,eL.jsx)(eL.Fragment,{children:rL.map(e=>{let t=rE[e].icon;return(0,eL.jsxs)(rz,{children:[(0,eL.jsx)(r_,{children:(0,eL.jsx)(t,{size:"core.size.icon.xx-large, @min.small=core.size.icon.xxx-large"})}),(0,eL.jsx)(rS,{children:rE[e].text})]},e)})}),rN=()=>(0,eL.jsxs)(eL.Fragment,{children:[ec||(ec=(0,eL.jsx)("section",{"data-regwall-section":"regwall-heading",children:(0,eL.jsx)(rk,{children:"Tämä juttu on maksuton"})})),em||(em=(0,eL.jsx)("section",{"data-regwall-section":"regwall-description",children:(0,eL.jsx)(rC,{children:"Pääset lukemaan sen ilmaiseksi kirjautumalla sisään tai luomalla maksuttoman Alma-tunnuksen."})})),rL.length>0&&(eu||(eu=(0,eL.jsxs)(eL.Fragment,{children:[(0,eL.jsxs)("section",{"data-regwall-section":"regwall-benefits",children:[(0,eL.jsx)(rC,{"data-regwall-section":"regwall-benefits-paragraph",children:"Kirjautuneen käyttäjän etuja ovat myös"}),(0,eL.jsx)(r$,{children:(0,eL.jsx)(rP,{})})]}),(0,eL.jsx)(rC,{"data-regwall-section":"regwall-account-paragraph",children:"Tunnuksen luominen vie vain hetken. Saat sen avulla lukea ilmaiseksi enemmän sinua kiinnostavaa sisältöä."})]})))]});var rD=e=>{let{article:t}=e,i=null==t?void 0:t.uuid;(0,eP.useEffect)(()=>{window.dispatchEvent(new CustomEvent("article-regwall-rendered")),window.articleRegwallRendered=!0},[]);let a="kl"===rx||"te"===rx||"tt"===rx;return(0,eL.jsx)(rb,{id:"registration-wall",children:(0,eL.jsx)(rA,{$isAlternativePaywall:!!a,children:(0,eL.jsxs)(rw,{id:"registration-wall-content",children:[(0,eL.jsx)(rI,{"data-regwall-section":"regwall-logo",children:(0,eL.jsx)(nE.A,{media:eV.A.siteShortSlug,size:"core.size.xxx-large"})}),a?ep||(ep=(0,eL.jsx)(rN,{})):(0,eL.jsxs)(eL.Fragment,{children:[(0,eL.jsx)("section",{"data-regwall-section":"regwall-heading",children:(0,eL.jsx)(rk,{children:oY(rT,"title","TÄMÄ JUTTU ON MAKSUTON")})}),(0,eL.jsx)("section",{"data-regwall-section":"regwall-description",children:(0,eL.jsx)(rC,{children:oY(rT,"description","Pääset lukemaan sen ilmaiseksi kirjautumalla sisään tai luomalla maksuttoman Alma-tunnuksen. Tunnuksen luominen vie vain hetken. Sen avulla saat lukea enemmän sinua kiinnostavaa sisältöä.")})})]}),(0,eL.jsx)(rj,{children:(0,eL.jsx)(or.A,{onClick:()=>{i&&(0,ry.uo)(i),(0,ru.A)("registrationWall","signup")},id:"regwall-btn",children:oY(rT,"button","Kirjaudu tai luo tunnus")})})]})})})},rM=i("ixV"),rR=i("iQ"),rH=e=>{let{title:t,description:i,source:a,customIcon:n,...o}=e,l=(0,eN.DP)();return(0,eL.jsxs)(rV,{...o,children:[(0,eL.jsxs)(rG,{$_css:eR.I8.grid.gutter.small,children:[(0,eL.jsx)(nE.A,{media:l.foundation.media.mediaToken,size:"core.size.x-large"}),n||eg||(eg=(0,eL.jsx)(rR.A,{size:"core.size.x-large"}))]}),(0,eL.jsxs)(rW,{$_css2:eR.I8.grid.gutter.small,children:[(0,eL.jsx)(eO.D.Subtitle,{size:"medium",children:t}),Array.isArray(i)?i.map((e,t)=>(0,eL.jsx)(rU,{size:"small",children:e},t)):(0,eL.jsx)(rq,{size:"small",children:i})]}),(0,eL.jsxs)(rF,{$_css3:eR.I8.spacing.small,children:[(0,eL.jsx)(rO,{onClick:()=>n5.Ay.openAlmaLogin({source:a}),children:"Kirjaudu sisään"}),(0,eL.jsx)(rB,{onClick:()=>n5.Ay.openAlmaLogin({screen_hint:"signup",source:a}),children:"Luo maksuton Alma-tunnus"})]})]})},rU=(0,eN.Ay)(eJ.f).withConfig({componentId:"sc-6f5e4f41-0"})({margin:0}),rq=(0,eN.Ay)(eJ.f).withConfig({componentId:"sc-6f5e4f41-1"})({margin:0}),rO=(0,eN.Ay)(or.A).withConfig({componentId:"sc-6f5e4f41-2"})({width:"100%"}),rB=(0,eN.Ay)(a_.A).withConfig({componentId:"sc-6f5e4f41-3"})({width:"100%"}),rV=(0,eN.Ay)(nT.j).withConfig({componentId:"sc-6f5e4f41-4"})(["max-width:none;"]),rG=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-6f5e4f41-5"})(e=>({display:"grid",justifyItems:"center",rowGap:e.$_css,textAlign:"center"})),rW=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-6f5e4f41-6"})(e=>({display:"grid",rowGap:e.$_css2,textAlign:"center"})),rF=(0,eN.Ay)(nT.j.Section).withConfig({componentId:"sc-6f5e4f41-7"})(e=>({display:"grid",justifyItems:"center",rowGap:e.$_css3,textAlign:"center"})),rZ=()=>(0,eL.jsx)(rH,{title:"Tämä juttu sinun kannattaa lukea!",description:"kl"===eV.A.siteShortSlug?["Ystäväsi haluaa jakaa sinulle tämän vain tilaajille tarkoitetun artikkelin. Lue se veloituksetta kirjautumalla sisään Alma-tunnuksellasi.","Kirjautuneen käyttäjän etuja ovat mm. artikkelien tallentaminen, aiheseuranta sekä Oma salkku.","Tunnuksen luominen vie vain hetken."]:[`Hei! Yst\xe4v\xe4si haluaa jakaa sinulle lahjaksi t\xe4m\xe4n vain tilaajille tarkoitetun ${eV.A.siteNameGenitive} artikkelin.`,"Lunasta veloitukseton lukuoikeus helposti kirjautumalla sisään tai luomalla käyttäjätunnus."],source:"GiftWall-LoginWall",customIcon:eh||(eh=(0,eL.jsx)(rM.A,{size:"core.size.xxx-large"}))});let rK="7.4rem";var rX=e=>{var t;
165let{article:i,children:a,showKayakOnMetered:n}=e,o=new URLSearchParams(iu.A.location.search),[l,r]=eP.useState("true"===o.get("paymentOk")),s=(0,eM.d4)(e=>e.user),d=(0,n$.M3)(s),{data:c}=(0,nC.Bq)({},{skip:!d}),m=(0,eM.d4)(e=>e.featureFlags.flags["display-article-wall"].value),u=(0,ip.zq)(i),p=(0,ip.QM)(i),g=u&&p||n&&!i.freeArticle&&s.usedClicks>=s.maxClicks||l||m,h=(0,ip.jZ)(i);return i.lockedArticlesOpen&&!m||(null==(t=i.gea)?void 0:t.signedEntitlements)?a:eV.A.giftMessagePaywall&&i.giftArticleHidden?(0,eL.jsx)(rc,{article:i,children:ef||(ef=(0,eL.jsx)(rZ,{}))}):(null==c?void 0:c.needsVerification)?(0,eL.jsx)(rc,{article:i,children:ey||(ey=(0,eL.jsx)(nq,{adjustLoadingView:rK}))}):g?(0,eL.jsx)(rc,{article:i,children:(0,eL.jsx)(rt,{article:i,adjustLoadingView:rK,onPaymentCompleted:()=>r(!1)})}):h?(0,eL.jsx)(rc,{article:i,children:(0,eL.jsx)(rD,{article:i})}):a},rJ=i("Uz"),rQ=i("Wf"),rY=i("sX"),r0=i("NX"),r8=i("Zy");let r1=(eN.Ay.div.withConfig({componentId:"sc-fbb19938-0"}))(["display:grid;align-items:center;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:",";padding:"," 0;border-bottom:"," "," solid;> button{grid-column:12;justify-self:end;padding-right:0;}"],eR.I8.spacing.small,eR.I8.spacing.small,eR.I8.border["x-small"],eR.I8.color.border["2"]),r2=(0,eN.Ay)(tz.Ay).withConfig({componentId:"sc-fbb19938-1"})(["grid-column:span 7;"]);var r5=e=>{let{name:t,marketData:i,followingCurrentStock:a,hideFollowing:n,...o}=e;return(null==i?void 0:i.stockData)?(0,eL.jsxs)(r1,{$noFollowingButtons:n,...o,children:[(0,eL.jsx)(r2,{href:`${eV.A.baseUrl}/porssi/porssikurssit/osake/${i.stockData.marketplaceSymbol}/${i.stockData.symbol}`,customComponent:ex||(ex=(0,eL.jsx)(tt.Ay,{focusOutline:"medium",focusOutlineOffset:"small",noUnderlineOnHover:!0})),"data-ga-item-name":"stock-link","data-ga-item-id":i.stockData.symbol,children:(0,eL.jsxs)(r8.D,{gap:eR.I8.spacing["xx-small"],direction:"column",alignItems:"start",children:[(0,eL.jsx)(r8.D.Heading,{children:t}),(0,eL.jsxs)(ar.A,{gap:eR.I8.spacing["xxxx-small"],direction:"row",children:[(0,eL.jsx)(r8.D.Label,{children:i.stockData.symbol}),(0,eL.jsx)(r8.D.Time,{time:i.stockData.dateTime})]}),(i.stockData.lastPrice||i.stockData.closePrice||i.stockData.changePercent)&&(0,eL.jsxs)(ar.A,{gap:0,direction:"row",alignItems:"center",children:[(0,eL.jsx)(r8.D.Value,{tickSize:i.stockData.tickSize,changeValue:i.stockData.lastPrice||i.stockData.closePrice,changeValueSymbol:i.stockData.currencySymbol}),(0,eL.jsx)(r4,{color:"core.color.border.2",thickness:"core.size.line.thin",spacing:{size:"core.spacing.xx-small",sides:["left","right"]},vertical:!0}),(0,eL.jsxs)(ar.A,{direction:"row",gap:eR.I8.spacing["xxx-small"],alignItems:"center",children:[(0,eL.jsx)(r8.D.Change,{changePercentage:i.stockData.changePercent}),(0,eL.jsx)(r8.D.Indicator,{changePercentage:i.stockData.changePercent,size:"medium"})]})]})]})}),!n&&(0,eL.jsx)(eL.Fragment,{children:a?(0,eL.jsx)(nf.s,{itemName:t,buttonType:"tertiary",showMessage:!0,isCompany:!0}):(0,eL.jsx)(nf.X,{itemName:t,buttonType:"tertiary",showMessage:!0,isCompany:!0})})]}):null},r4=(0,eN.Ay)(tX.A).withConfig({componentId:"sc-fbb19938-2"})({height:"0.75rem"}),r3=i("Bw");let r6=(eN.Ay.div.withConfig({componentId:"sc-da9b639b-0"}))(["display:flex;flex-direction:column;clear:both;"]);var r9=(0,eN.Ay)(im.A).withConfig({componentId:"sc-da9b639b-1"})(e=>({width:"fit-content",alignSelf:"center",color:e.$_css,borderColor:e.$_css2,marginTop:e.$_css3,"&:focus-visible":{borderColor:e.$_css4,outlineColor:e.$_css5},"&:hover:not(:disabled)":{color:e.$_css6,borderColor:e.$_css7},"&:active":{color:e.$_css8,borderColor:e.$_css9}})),r7=i("RS"),se=i("AK"),st=i("DG");let{apiRoot:si,mediaShortSlugs:sa}=eV.A;var sn=function(e,t,i){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:sa;return(n,o,l)=>{var r;let s,d=Array.isArray(e)?e:[e];return(r=o(),s=[],d.forEach(e=>{(0,st.b0)(e)||s.push(e)}),(0,se.A)(s,e=>!r.companyNews[e]))?l.get(`${si}news/v2/company/businessid/${a}/${d.join(",")}/${t}/${i}`).then(e=>{let t;return n((0,iK.py)((t={},Object.entries(e).forEach(e=>{let[i,a]=e;a.items&&(t[i]=a)}),t)))}).catch(()=>{}):Promise.resolve()}},so=i("Hu");let sl=(eN.Ay.div.withConfig({componentId:"sc-bff6e701-0"}))(["display:flex;flex-direction:column;gap:",";margin-bottom:",";@media ","{gap:",";}"],eR.I8.spacing.medium,eR.I8.spacing.large,eR.I8.mediaquery.min.small,eR.I8.spacing.large);var sr=e=>{let{articleUuid:t,companies:i,customTitle:a="Lisää artikkelin yhtiöistä",noNewsCallback:n,...o}=e,l=(0,eM.wA)(),r=(0,eM.d4)(e=>e.companyNews),s=(0,eP.useMemo)(()=>[...new Set(i)],[i]),d=s.map(e=>
165e.businessId).filter(Boolean),c=Object.entries(r).reduce((e,t)=>{let[i,a]=t;return d.some(e=>e.replace(/-/g,"")===i.replace(/-/g,""))?{[i]:{...a},...e}:e},{}),m=Object.keys(c).reduce((e,i)=>{var a;let n=null==(a=c[i])?void 0:a.items;return n?(0,r7.A)([...e,...n],"uuid").filter(e=>e.uuid&&e.uuid!==t):e},[]).sort((e,t)=>e.modified&&t.modified&&e.modified>t.modified?-1:1).splice(0,3);return(0,eP.useEffect)(()=>{l(sn(s.map(e=>e.businessId),0,5))},[s,l]),(0,eP.useEffect)(()=>{0!==Object.keys(c).length&&!m.length&&n&&n()},[c,m,n]),m.length?(0,eL.jsxs)(sl,{...o,children:[(0,eL.jsx)(sd,{size:"small, @min.small=large",decorationType:"category-list",children:a}),(0,eL.jsx)(ss,{items:m,totalAvailable:m.length,handleLoadMore:()=>{},showTimestamp:!0,hideMobileLeaderboard:!0,noAds:!0})]}):null},ss=(0,eN.Ay)(so.A).withConfig({componentId:"sc-bff6e701-1"})(["overflow-x:visible;> div:first-child{> svg:last-of-type{display:none;}}"]),sd=(0,eN.Ay)(eO.D.Subtitle).withConfig({componentId:"sc-bff6e701-2"})(["@media ","{margin:0 ",";}"],eR.I8.mediaquery.max["x-small"],eR.I8.spacing.medium),sc=i("zQV"),sm=i("w");let su=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{skip:t=!1,isPublicApi:i=!0,refetchOnMount:a=!0}=e,[n,o]=(0,eP.useState)(),[l,r]=(0,eP.useState)(!1),[s,d]=(0,eP.useState)(),c=(0,eP.useCallback)(async()=>{r(!0),d(void 0);try{let e=await (0,oz.DF)();return o(e),e}catch(e){d(e);return}finally{r(!1)}},[]),m=(0,eP.useCallback)(async()=>((0,oz.HU)(),await c()),[c]),u=(0,eP.useCallback)(()=>{(0,oz.VI)(),o(void 0)},[]);return(0,eP.useEffect)(()=>{if(t||!a)return;let{shouldFetch:e}=(0,oz.t9)(i,!1);e&&c()},[t,i,a,c]),{token:n,loading:l,error:s,refetch:c,resetAndRefetch:m,clearToken:u}},sp=(eN.Ay.div.withConfig({componentId:"sc-ccca7a25-0"}))(["font-size:",";line-height:",";color:",";margin-top:",";"],eR.I8.font.scale["0"],eR.I8["line-height"].medium,eR.I8.color.primary.foreground,eR.I8.spacing["xx-small"]);var sg=e=>{let{subject:t="Asetus"}=e;return(0,eL.jsxs)(sp,{children:[t," tallennetaan, kun"," ",(0,eL.jsx)(tt.Ay,{onClick:e=>{var t,i;e.preventDefault(),null==(i=window.ALMA)||null==(t=i.cmpV3)||t.giveConsentToPurpose(["functional"])},onKeyDown:e=>{if("Enter"===e.key||" "===e.key){var t,i;e.preventDefault(),null==(i=window.ALMA)||null==(t=i.cmpV3)||t.giveConsentToPurpose(["functional"])}},borderType:"light",tabIndex:0,children:"toiminnalliset evästeet on hyväksytty."})]})},sh=i("vy");let sf=(eN.Ay.div.withConfig({componentId:"sc-e695fde4-0"}))(["display:flex;justify-content:space-between;align-items:center;flex-direction:row;gap:",";@media ","{flex-direction:column;align-items:stretch;}"],eR.I8.spacing["x-large"],eR.I8.mediaquery.max["x-small"]),sy=(eN.Ay.div.withConfig({componentId:"sc-e695fde4-1"}))(["",";font-size:",";color:",";margin:0;"],e=>{let{theme:t}=e;return t.foundation.media.type.ui.semi},eR.I8.font.scale["2"],eR.I8.color.primary.foreground),sx=(eN.Ay.span.withConfig({componentId:"sc-e695fde4-2"}))(["padding-left:",";"],eR.I8.spacing["xx-small"]),sw=(eN.Ay.div.withConfig({componentId:"sc-e695fde4-3"}))([""]),sb="hideComments";var sI=(0,eN.Ay)(sc.A).withConfig({componentId:"sc-e695fde4-4"})(e=>({marginTop:e.$_css})),sv=i("Nc"),sj=i("qU");let sA=(0,eP.lazy)(()=>i.e(4).then(i.bind(i,"Kh"))),sk=(0,sv.A)(e=>{let t,i,a,n,o,l,{articleId:r}=e;return(t=(0,eM.d4)(e=>e.user),i=(0,eM.d4)(e=>{var t,i;return!!(null==(i=e.article[r])||null==(t=i.data)?void 0:t.gea)}),a=(0,e7.Dp)(t.consentV3),n=(0,n$.F3)(t),o=(0,sj.CA)(),l=function(){var e;if(!(null==(e=globalThis.window)?void 0:e.location))return!1;let t=new URLSearchParams(globalThis.window.location.search);return!!(t.get(sj.Pw)||t.get(sj.WS))}(),o&&a&&!n||i||l)?(0,eL.jsx)(eP.Suspense,{fallback:null,children:(0,eL.jsx)(sA,{articleId:r})}):null});var sC=i("BR"),s$=i("bs"),sS=i("P9"),s_=i("vl"),sz=i("QD");let sT=(eN.Ay.div.withConfig({componentId:"sc-2f5b5744-0"}))(["display:grid;grid-template-columns:max-content max-content max-content 1fr max-content;grid-template-areas:'snf-left snf-left snf-left . snf-right';gap:",";align-items:center;padding:"," ",";margin:"," 0 0 0;border:"," "," solid;border-width:"," 0;clear:both;"],eR.I8.spacing["x-small"],eR.I8.spacing["x-small"],eR.I8.spacing["xxxx-small"],eR.I8.spacing.large,eR.I8.border["x-small"],eR.I8.color.border["2"],eR.I8.border["x-small"]),sE=(e,t)=>encodeURIComponent(`${"Juttuvinkki aiheesta"===e?"Juttuvinkki koskien aihetta":e} ${eV.A.baseUrl}${t} 
166
167
168${(()=>{switch(e){case"Oikaisupyyntö jutusta":return"Kuvaile virhettä";case"Juttuvinkki aiheesta":return"Kuvaile vinkkiä";case"Palaute jutusta":return"Palautteesi"}})()}: 
169
170
171Yhteystietosi (nimi ja puhelinnumero)
172`);var sL=e=>{let{article:t,showSave:i=!0,className:a}=e,[n,o]=(0,eP.useState)(!1),[l,r]=(0,eP.useState)(!1),[s,d]=(0,eP.useState)(!1),c=(0,eP.useCallback)(()=>d(!1),[]),m=(0,eP.useRef)(null),u=(0,eM.d4)(e=>{var t;return(null==(t=e.history.location)?void 0:t.pathname)||""}),p=[`${eV.A.siteNameSlug}@almamedia.fi`,...t.authorDetails.map(e=>
172e.email)].filter(Boolean).join(","),g=[{text:"Ilmoita asiavirheestä",link:`mailto:${p}?subject=${encodeURIComponent("Oikaisupyyntö jutusta")}&body=${sE("Oikaisupyyntö jutusta",u)}`,el:eA||(eA=(0,eL.jsx)(lA.default,{size:"core.size.icon.medium"}))},{text:"Jätä juttuvinkki",link:`mailto:${p}?subject=${encodeURIComponent("Juttuvinkki aiheesta")}&body=${sE("Juttuvinkki aiheesta",u)}`,el:ek||(ek=(0,eL.jsx)(sC.A,{size:"core.size.icon.medium"}))},{text:"Lähetä palautetta",link:`mailto:${p}?subject=${encodeURIComponent("Palaute jutusta")}&body=${sE("Palaute jutusta",u)}`,el:eC||(eC=(0,eL.jsx)(s$.A,{size:"core.size.icon.medium"}))}];return(0,eL.jsxs)(sT,{className:a,children:[i&&(0,eL.jsx)(iy.$,{articleID:t.uuid}),(0,eL.jsx)(iy.U,{isOpen:n,setIsOpen:o,location:"bottom_action_bar_share"}),(0,ih.PQ)(t)&&(0,eL.jsx)(iy.U,{isOpen:l,setIsOpen:r,shareAsGift:!0,location:"bottom_action_bar_gift"}),(0,eL.jsx)(sz.A,{isOpen:s,closePopup:c,trigger:(0,eL.jsx)(sP,{ref:m,onClick:s?c:()=>{d(!0),o(!1),r(!1)},icon:e$||(e$=(0,eL.jsx)(lA.default,{})),hasTransparentBorderWhenNormal:!0,borderShape:"core.shape.rounded","aria-expanded":s,"aria-controls":"feedback-popup",$_css:s&&`border: ${eR.I8.border["x-small"]} ${eR.I8.color.border["4"]} solid;`,children:"Anna palautetta"}),popupTop:"Anna palautetta",id:"feedback-popup",children:(0,eL.jsx)(sS.z.Menu,{children:g.map((e,t)=>(0,eL.jsx)(sS.z.MenuItem,{children:(0,eL.jsx)(tt.Ay,{tagAs:"a",href:e.link,target:"_blank",icon:e.el,iconPosition:"left",children:e.text})},`${e.text}_${t}`))})})]})},sP=(0,eN.Ay)(s_.A).withConfig({componentId:"sc-2f5b5744-1"})(["grid-area:snf-right;span:has(&){grid-area:snf-right;}@media ","{","}"],eR.I8.mediaquery.min.medium,e=>e.$_css);let sN=(eN.Ay.article.withConfig({componentId:"sc-ebdf5edd-0"}))(["max-width:",";margin:0 auto;.article-end{clear:both;}img{max-width:100%;}"],eR.I8.size.template.article),sD=(eN.Ay.div.withConfig({componentId:"sc-ebdf5edd-1"}))(["margin-bottom:",";@media ","{padding:0 ",";}"],eR.I8.spacing.large,eR.I8.mediaquery.max["x-small"],eR.I8.spacing.medium),sM=(eN.Ay.div.withConfig({componentId:"sc-ebdf5edd-2"}))(["",";"],e=>{let{$longform:t}=e;return t&&"text-align: center"}),sR=(eN.Ay.div.withConfig({componentId:"sc-ebdf5edd-3"}))(["display:flex;flex-wrap:wrap;margin-bottom:",";gap:",";",";"],eR.I8.spacing.medium,eR.I8.spacing.medium,e=>{let{$longform:t}=e;return t&&"justify-content: center"}),sH=(eN.Ay.div.withConfig({componentId:"sc-ebdf5edd-4"}))(["margin-bottom:",";"],eR.I8.spacing["x-large"]),sU=((eN.Ay.div.attrs({className:"article-body"})).withConfig({componentId:"sc-ebdf5edd-5"}))(["> :last-child{margin-bottom:0;}"]),sq=(eN.Ay.div.withConfig({componentId:"sc-ebdf5edd-6"}))(["display:flex;gap:",";",";padding-bottom:",";margin-bottom:",";border-bottom:"," solid ",";@media ","{flex-direction:column;}&:empty{display:none;}"],eR.I8.spacing.medium,e=>{let{$isLongform:t}=e;return t&&"justify-content: center"},eR.I8.spacing.medium,eR.I8.spacing.medium,eR.I8.border["x-small"],eR.I8.color.border["1"],eR.I8.mediaquery.max["x-small"]);var sO=eP.memo(e=>{var t,i,a,n,o,l,r;let{article:s,longform:d,user:c,hideMobileLeaderboardAd:m,hideCategorySection:u,isPodcast:p,liveArticle:g,isInfoArticle:h}=e,f=(0,eM.wA)(),y=(0,eM.d4)(e=>e.featureFlags),x=(0,nA.iT)(s),w=null==s||null==(i=s.leadImage)||null==(t=i.children)?void 0:t.some(e=>"text"===e.name&&""!==e.value),b=g?s.body.find(e=>e0.er.includes(e.name)):void 0,I=(null==b||null==(a=b.attributes)?void 0:a.active)===!0||(null==b||null==(n=b.attributes)?void 0:n.active)==="true",v=eX(s,{longform:d,liveArticle:g}),j=s.body.find(e=>"alma/summary"===e.name),A=(0,ip.aq)(c,s,y)??!1;return(0,eP.useEffect)(()=>{f((0,iK.lm)({key:"articleWall",value:A}))},[f,A]),(0,eL.jsxs)(sN,{children:[(0,eL.jsxs)(sD,{children:[(0,eL.jsx)(eN.NP,{theme:e4.Ay,children:(0,eL.jsxs)(sM,{className:(0,eH.A)("bottom","x-large"),$longform:d,children:[(0,eL.jsx)(sq,{$isLongform:d}),(0,eL.jsxs)(sR,{$longform:d,children:[I&&(eS||(eS=(0,eL.jsx)(eU.A,{type:"live_main_alternate",text:"US seuraa",size:"medium"}))),(0,eL.jsxs)(eq.m,{children:[eV.A.showSubscriberIcon&&s.lockedArticle&&(e_||(e_=(0,eL.jsx)(eq.m.Subscriber,{}))),s.primaryCategory&&(0,eL.jsx)(eq.m.Label,{text:s.primaryCategory.name})]})]}),(0,eL.jsxs)(eO.D.Headline,{level:"h1",size:"small, @min.small=medium, @min.medium=large",className:(0,eH.A)("bottom","medium"),"data-test":"articleTitle",children:[(0,eL.jsx)(nk.A,{teaser:s}),s.title]}),(0,eL.jsx)(sG,{size:"small, @min.small=medium, @min.medium=large",children:s.preamble})]})}),(!x||w)&&s.leadImage&&(0,eL.jsx)(sH,{children:(0,eL.jsx)(ni,{article:s,elements:[s.leadImage],translations:{"x-im/image":d?[ng,!0]:[ns,!0]}})}),s.leadVideo&&(0,eL.jsx)(sH,{children:(0,eL.jsx)(ni,{article:s,elements:[s.leadVideo]})}),!m&&(ez||(ez=(0,eL.jsx)(tQ.F0,{orderNumber:1,viewportTo:"tablet",skipPlaceholder:!0}))),j&&(0,eL.jsx)(ni,{article:s,elements:[j]}),eT||(eT=(0,eL.jsx)("div",{className:"article-start"})),(0,eL.jsx)(sk,{articleId:s.uuid}),(0,eL.jsx)(rX,{article:s,showKayakOnMetered:!0,children:(0,eL.jsx)(eN.NP,{theme:e4.Ay,children:(0,eL.jsx)(sU,{children:(0,eL.jsx)(ni,{article:s,elements:v.filter(e=>{var t;return"readmore"!==e.name&&"dateline"!==e.name&&"alma/summary"!==e.name&&("alma/jw-video"!==e.name||(null==(t=e.attributes)?void 0:t.position)!=="lead")})})})})}),!A&&(0,eL.jsx)(sL,{article:s}),eE||(eE=(0,eL.jsx)("div",{className:"article-end"}))]}),(null==(o=s.relatedArticles)?void 0:o.items)&&(0,eL.jsx)(sW,{type:"primary_with_ad",teaserList:null==(l=s.relatedArticles)?void 0:l.items,title:"Lue myös",$_css:eR.I8.spacing["x-large"]}),!h&&(0,eL.jsx)(sV,{uuid:s.uuid,user:c,$_css2:A?eR.I8.spacing["x-large"]:eR.I8.spacing["xxxx-small"]}),s.companies&&(0,eL.jsx)(sr,{articleUuid:s.uuid,companies:s.companies}),(0,eL.jsxs)(sD,{children:[s.companies&&(0,eL.jsx)(eD.Ay,{offset:500,children:(0,eL.jsx)(sB,{companies:s.companies})}),!u&&!p&&(s.primaryCategory||(null==(r=s.secondaryCategories)?void 0:r.length)>0)&&(0,eL.jsx)(nI,{categories:s.primaryCategory?[s.primaryCategory,...s.secondaryCategories]:[...s.secondaryCategories]})]})]})}),sB=(0,eN.Ay)(e=>{let{companies:t,...i}=e,[a,n]=(0,eP.useState)(!0),[o,l]=(0,eP.useState)(3),r=(0,eM.wA)(),s=(0,eM.d4)(e=>{var t;return(null==(t=e.companies)?void 0:t.companyData)||{}}),d=(0,eM.d4)(e=>e.ownTopics.followedCompanies),c=(0,eM.d4)(e=>e.metadata.digitalData.page.pageInfo.locationPathName);(0,eP.useEffect)(()=>
172{if(t){let e=(0,ih.QN)(t).slice(0,3);e.length&&r((0,rQ.Wc)(e))}},[t,r]),(0,eP.useEffect)(()=>{n(!0)},[c]);let m=t.length,u=Object.values(t.reduce((e,t)=>{var i;let a=t.businessId||t.mainShareSymbol;return{[a]:{...t,...(null==(i=Object.entries(s).find(e=>{let[t]=e;return a===t}))?void 0:i[1])||{}},...e}},{})).sort((e,t)=>e.hasOwnProperty("stockData")?-1:+!!t.hasOwnProperty("stockData")).slice(0,a?3:m);return((0,eP.useEffect)(()=>{Object.keys(s).filter(e=>t.find(t=>t.businessId===e||t.mainShareSymbol===e)).length>=o&&3!==o&&(n(!1),l(3))},[o,s,t]),0===m)?null:(0,eL.jsxs)(r6,{...i,children:[u.map(e=>{var t;let i=d.map(e=>e.toLowerCase()).includes(e.name.toLowerCase()),a={stockData:(null==(t=e.stockData)?void 0:t.quotes)?{...e.stockData.quotes,marketplaceSymbol:e.stockData.marketplaceSymbol,currencySymbol:(0,rJ.P)(e.stockData.quotes.tradeCurrency)}:void 0};return(0,eL.jsx)(r0.A,{name:e.name,followingCurrentStock:i,businessId:e.businessId,marketData:a,componentWhenMatched:(0,eL.jsx)(r5,{name:e.name,marketData:a,followingCurrentStock:i}),componentWhenUnmatched:(0,eL.jsx)(r3.A,{name:e.name,marketData:a,followingCurrentStock:i})},e.mainShareSymbol??e.businessId)}),m>3&&a&&(0,eL.jsx)(r9,{iconPositionRight:!0,icon:ew||(ew=(0,eL.jsx)(a2.A,{color:"core.color.cta.primary.normal",size:"core.size.
172icon.medium"})),loading:3!==o,loadingUseMediaColors:!0,onClick:()=>{let e=u.map(e=>{var t;return null==(t=e.stockData)?void 0:t.symbol}),i=(0,ih.QN)(t).filter(t=>!e.includes(t.mainShareSymbol)).slice(0,20),a=i.length;0!==a&&(0,rY.w)()?(r((0,rQ.Wc)(i)),l(a<=3?3+a:a)):n(!1)},$_css:eR.I8.color.cta.secondary.text,$_css2:eR.I8.color.cta.secondary.normal,$_css3:eR.I8.spacing.small,$_css4:eR.I8.color.cta.secondary.normal,$_css5:eR.I8.color.cta.secondary.normal,$_css6:eR.I8.color.cta.secondary.hover,$_css7:eR.I8.color.cta.secondary.hover,$_css8:eR.I8.color.cta.secondary.active,$_css9:eR.I8.color.cta.secondary.active,children:"Näytä kaikki"})]})}).withConfig({componentId:"sc-ebdf5edd-7"})(["margin-bottom:",";@media ","{margin-bottom:",";}"],eR.I8.spacing["xx-large"],eR.I8.mediaquery.min.medium,eR.I8.spacing["xx-large"]),sV=(0,eN.Ay)(e=>{let{user:t,uuid:i,...a}=e,[n,o]=(0,eP.useState)(!1),[l,r]=eP.useState(!1),s=(0,eM.d4)(e=>e.user.consentV3),{token:d}=su({skip:!t.loggedIn||t.isGroup,isPublicApi:!0});(0,eP.useEffect)(()=>{let e=(0,e7.kn)(s)&&sm.A.getItem(sb);t.loggedIn&&!d||e?o(!1):o(!0)},[t,d,s]);let c=(0,eP.useCallback)(async()=>(null==t?void 0:t.isGroup)?Promise.resolve(void 0):await (0,oz.DF)(),[t]);return t.isGroup?null:(0,eL.jsxs)(sw,{id:"coral-talk",...a,children:[(0,eL.jsxs)(sf,{id:"keskustelu",children:[eb||(eb=(0,eL.jsx)(sy,{children:"Osallistu keskusteluun"})),(0,eL.jsxs)(or.A,{className:"toggle-text",onClick:()=>{(0,e7.kn)(s)&&(n?sm.A.setItem(sb,"1"):sm.A.removeItem(sb)),t.loggedIn&&!d?n5.Ay.openAlmaLogin({source:"kommentointi"}):o(!n)}
172,icon:eI||(eI=(0,eL.jsx)(rM.A,{size:"core.size.icon.medium"})),children:[n?"Sulje kommentointi":"Kommentoi",ev||(ev=(0,eL.jsx)(sx,{className:"coral-count","data-coral-notext":!0}))]})]}),s.consentsLoaded&&!(0,e7.kn)(s)&&(ej||(ej=(0,eL.jsx)(sg,{subject:"Kommenttiosion piilotusasetukset"}))),l&&(0,eL.jsx)(sI,{type:"failure",title:"Virhe",message:"Istunto vanhentui. Ole hyvä ja yritä lähettää kommentti uudelleen.",$_css:eR.I8.spacing.medium}),n&&(0,eL.jsx)(eD.Ay,{offset:500,children:(0,eL.jsx)(sh.A,{uuid:i,token:d||"",callGetToken:c,setShowError:r})}),(0,eL.jsx)(tX.A,{thickness:"core.size.xxxxx-small",color:"core.color.border.2",spacing:{size:"core.spacing.x-large",sides:["top","bottom"]}})]},`${t.loggedIn}${i}${t.isGroup}`)}).withConfig({componentId:"sc-ebdf5edd-8"})(["margin-top:",";@media ","{padding-inline:",";}"],e=>e.$_css2,eR.I8.mediaquery.max["x-small"],eR.I8.spacing.medium),sG=(0,eN.Ay)(eB.G).withConfig({componentId:"sc-ebdf5edd-9"})({marginBottom:0,marginTop:0}),sW=(0,eN.Ay)(an.A).withConfig({componentId:"sc-ebdf5edd-10"})(e=>({marginBottom:e.$_css}))},wv(e,t,i){i.d(t,{A:()=>E});var a,n,o,l=i("X"),r=i("u"),s=i("XE"),d=i("tE"),c=i("Xo"),m=i("UD"),u=i("Xi"),p=i("J2"),g=i("Nb"),h=i("Iyu"),f=i("vm"),y=i("X4"),x=i("fE"),w=i("A1"),b=i("bI"),I=i("Fd"),v=i("zi"),j=i("KR"),A=e=>{let{title:t,href:i,limit:a=5,media:n="te",target:o="latest",noVerticalMargin:d,...c}=e,m=(0,s.wA)(),u=(0,s.d4)(e=>e.lists.latest.data);return r.useEffect(()=>{m((0,v.A)(0,a,n,o))},[m,a,n,o]),(0,l.jsx)(j.A,{title:t,teasers:u,href:i,limit:a,noVerticalMargin:d,...c})},k=i("UC");let C=(d.Ay.div.withConfig({componentId:"sc-964e5c54-0"}))(["display:flex;gap:",";flex-direction:column;@media ","{margin:0 ",";flex-direction:row;}@media ","{padding:0 ",";}@media ","{max-width:",";margin:0 auto;}@media ","{padding-top:",";}@media ","{padding-top:",";}"],c.I8.spacing["x-large"],c.I8.mediaquery.min.medium,c.I8.spacing.large,c.I8.mediaquery.range.small,c.I8.spacing.large,c.I8.mediaquery.max.small,c.I8.size.template["page-wrapper-mobile"],c.I8.mediaquery.min.small,c.I8.spacing["xx-large"],c.I8.mediaquery.max["x-small"],c.I8.spacing.large),$=(d.Ay.div.withConfig({componentId:"sc-964e5c54-1"}))(["flex:1;"]),S=(d.Ay.section.withConfig({componentId:"sc-964e5c54-2"}))(["max-width:",";margin:"," auto 0 auto;"],c.I8.size.template.article,c.I8.spacing["x-large"]),_=(d.Ay.div.withConfig({componentId:"sc-964e5c54-3"}))(["display:flex;flex-direction:column;@media ","{width:",";}@media ","{display:none;}"],c.I8.mediaquery.min.medium,c.I8.size.template.sidebar,c.I8.mediaquery.max.small),z=(d.Ay.div.withConfig({componentId:"sc-964e5c54-4"}))(["display:flex;flex-direction:column;@media ","{display:none;}"],c.I8.mediaquery.min.medium),T=(d.Ay.div.withConfig({componentId:"sc-964e5c54-5"}))(["position:sticky;top:5.125rem;"]);var E=e=>{let{articleId:t,liveArticle:i}=e,r=(0,s.d4)(e=>e.article[t].data),d=(0,s.d4)(e=>e.user),f=(0,w.SV)(r,"asuminen"),v=t===y.A.infoPageArticleId;return(0,p._d)(),(0,p.MK)(r),(0,l.jsxs)(m.A,{children:[(0,l.jsx)(g.A,{article:r}),(0,l.jsx)(h.A,{article:r}),(0,l.jsxs)(C,{id:"skyscraper-height-div",children:[(0,l.jsxs)($,{children:[(0,l.jsx)(k.A,{article:r,user:d,liveArticle:i,isInfoArticle:v}),(0,l.jsxs)(S,{children:[(0,l.jsx)(u.F0,{orderNumber:1,postContent:!0,skipPlaceholder:!0,spacings:{bottom:"core.spacing.x-large"}}),a||(a=(0,l.jsx)(b.Ay,{offset:600,children:(0,l.jsx)(I.A,{withDivider:!0})})),(0,l.jsx)(u.F0,{orderNumber:3,postContent:!0,skipPlaceholder:!0,spacings:{bottom:"core.spacing.x-large"}}),(0,l.jsxs)(z,{children:[(0,l.jsx)(b.Ay,{offset:600,children:(0,l.jsx)(N,{$_css:c.I8.spacing["x-large"]})}),(0,l.jsx)(b.Ay,{offset:600,children:(0,l.jsx)(L,{title:"Uusimmat",href:"/uutiset",media:"us",noVerticalMargin:!0,$_css2:c.I8.spacing["x-large"]})})]}),(0,l.jsx)(b.Ay,{offset:600,children:f?n||(n=(0,l.jsx)(x.A,{media:"us"})):(0,l.jsx)(u.a3,{url:y.A.joblyUrl,wide:!0,items:8,noMarginBottom:!0})})]})]}),(0,l.jsxs)(_,{as:"aside",children:[(0,l.jsx)(u.F0,{id:"almad-aside-right-1",spacings:{bottom:"core.spacing.x-large"},viewportFrom:"tablet_landscape"}),(0,l.jsx)(D,{$_css3:c.I8.spacing["x-large"]}),(0,l.jsx)(u.F0,{id:"almad-aside-right-2",skipPlaceholder:!0,viewportFrom:"tablet_landscape",spacings:{bottom:"core.spacing.x-large"}}),(0,l.jsx)(b.Ay,{offset:600,children:(0,l.jsx)(P,{title:"Uusimmat",href:"/uutiset",media:"us",noVerticalMargin:!0,$_css4:c.I8.spacing["x-large"]})}),o||(o=(0,l.jsx)(T,{children:(0,l.jsx)(u.F0,{id:"almad-aside-right-3",skipPlaceholder:!0,viewportFrom:"tablet_landscape",noMargin:!0})}))]})]})]})},L=(0,d.Ay)(A).withConfig({componentId:"sc-964e5c54-6"})(e=>({marginBottom:e.$_css2})),P=(0,d.Ay)(A).withConfig({componentId:"sc-964e5c54-7"})(e=>({marginBottom:e.$_css4})),N=(0,d.Ay)(f.A).withConfig({componentId:"sc-964e5c54-8"})(e=>({marginBottom:e.$_css})),D=(0,d.Ay)(f.A).withConfig({componentId:"sc-964e5c54-9"})(e=>({marginBottom:e.$_css3}))}}]);
173//# sourceMappingURL=g.e128349e42.js.map

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.