PageSourceSearch

https://www.uusisuomi.fi/static/static/js/async/personalisedpage.e3123f355b.js

js uusisuomi.fi collected 2026-10-01 11:38:44 UTC 32,864 bytes, 9 lines download raw bytes

1"use strict";(globalThis.rspackChunktalent_news_frontend||=[]).push([["n6"],{hm(e,i,t){var a=t("VT"),n=t("WR");i.A=e=>{let{limit:i=100}=e;return(e,t,o)=>{let r,l=t();return(r=l.ownTopics.mostUsedTopics).frequencies.length<i||r.lastUpdated+24e4<Date.now()?o.get(a.vZ.mostUsedCategories({limit:i})).then(i=>e((0,n.f$)((0,n.CE)(i)))).catch(e=>Promise.reject(e)):Promise.resolve(l.ownTopics.mostUsedTopics)}}},cK(e,i,t){var a=t("X4"),n=t("WR");i.A=e=>{let{limit:i}=e;return(e,t,o)=>o.graphQl(`${a.A.apiRoot}mynews/graphql`,`{"query":"query { popularCompanies ( limit:${i})}"}`).then(i=>{e((0,n.dB)(i))}).catch(e=>{})}},uq(e,i,t){var a=t("X4"),n=t("WR");let{mediaShortSlugs:o}=a.A;i.A=e=>{let{media:i=o,limit:t=5,append:r=!1,cache:l=!1}=e;return async(e,o,s)=>{let m=o(),d=i.split(",");if(!l||(e=>{let{savedArticles:i,user:t}=e;if(!t.loggedIn||t.isGroup)return!1;let{lastUpdated:a}=i.readingList;return!a||a+3e5<Date.now()})(m)){let i={query:`query { readingList( medias: ${JSON.stringify(d)}, limit: ${t}) { uuid media:medias title leadImageUuid leadImageCrop published secondaryCategories: categories { name slug } videoTeaserImage teaserTitle lockedArticle:isLocked subject subjectCode } }`};return s.graphQl(`${a.A.apiRoot}mynews/graphql`,JSON.stringify(i)).then(i=>{r?e((0,n.Dw)((0,n.CE)(i))):e((0,n.hK)((0,n.CE)(i)))}).catch(e=>{})}return Promise.resolve()}}},ZN(e,i,t){var a,n,o=t("X"),r=t("u"),l=t("XE"),s=t("uW"),m=t("exx"),d=t("Km"),c=t("X4"),g=t("lW"),u=t("kK");let{baseUrl:p,siteNameSlug:h,description:x}=c.A,f=r.memo(e=>{let i,{title:t,description:r=x,image:d,type:c,noindex:f,canonicalUrl:y,children:I}=e,A=(0,l.d4)(e=>e.user),{previousLocation:j}=(0,l.d4)(e=>e.history),w="/teemat/osakesaastotili-tulee"===g.A.location.pathname?"https://www.kauppalehti.fi/aiheet/osakesaastotili":y||(i=g.A.location.pathname,p+(0,m.A)(i,"/"));return(0,o.jsxs)(s.mg,{children:[t&&(0,o.jsx)("title",{children:t}),t&&(0,o.jsx)("meta",{property:"og:title",content:t}),t&&(0,o.jsx)("meta",{name:"twitter:title",content:t}),r&&(0,o.jsx)("meta",{name:"description",content:r}),r&&(0,o.jsx)("meta",{property:"og:description",content:r}),r&&(0,o.jsx)("meta",{name:"twitter:description",content:r}),d&&(0,o.jsx)("meta",{name:"twitter:image",content:d}),d&&(0,o.jsx)("meta",{name:"twitter:image",content:d}),c&&(0,o.jsx)("meta",{property:"og:type",content:c}),f?a||(a=(0,o.jsx)("meta",{name:"robots",content:"noindex"})):[(0,o.jsx)("link",{rel:"alternate",href:w,hrefLang:"fi-fi"},"a"),(0,o.jsx)("link",{rel:"canonical",href:w},"c"),(0,o.jsx)("meta",{property:"og:url",content:w},"o")],I&&I,n||(n=(0,o.jsx)("meta",{name:"robots",content:"noarchive"})),(0,o.jsx)("meta",{property:"og:image",content:d??`${p}/static/images/${h}_article_schema_fallback.png`}),(0,o.jsx)("meta",{property:"k5a:login",content:A.loggedIn?"1":"0"}),(0,o.jsx)("meta",{property:"k5a:subscriber",content:(0,u.A)(A.credentials)?"1":"0"}),(null==j?void 0:j.length)&&(0,o.jsx)("meta",{property:"k5a:referer",content:`${window.location.origin}${j[0].pathname}`})]})});i.A=(0,l.Ng)(e=>({noindex:""!==(0,d.A)(e.metadata.digitalData,"page.pageInfo.onsiteSearchTerm")}))(f)},ms(e,i,t){let a="te"!==t("X4").A.siteShortSlug?"circle":void 0;t.d(i,{},{i:a})},Jp(e,i,t){t.r(i),t.d(i,{default:()=>iD});var a,n,o,r,l,s,m,d,c,g,u,p,h,x,f,y=t("X"),I=t("u"),A=t("k4"),j=t("hm"),w=t("tE"),b=t("XE"),v=t("Xo"),C=t("Ui"),k=t("K8"),z=t("L9"),q=t("ns"),$=t("E9"),T=t("im"),S=t("XZ"),O=t("zQ"),M=t("uQ"),P=t("ex"),L=t("zQV"),N=t("WV"),D=t("Hy"),_=t("pG"),F=t("OB"),R=t("MP"),X=t("ge"),B=t("Bf"),K=t("uq"),E=t("kZ"),U=t("Pq"),W=t("aU"),V=t("h8"),Q=t("kd"),Z=t("kB"),G=t("CC");(0,w.Ay)(O.A).withConfig({componentId:"sc-b1e52842-0"})(["@media ","{display:none;}"],v.I8.mediaquery.min.large),(0,w.Ay)(O.A).withConfig({componentId:"sc-b1e52842-1"})(["@media ","{display:none;}"],v.I8.mediaquery.min.large);let J=(w.Ay.div.withConfig({componentId:"sc-76496695-0"}))(["button{width:100%;margin:"," 0;}@media ","{display:flex;justify-content:space-between;align-items:center;button{width:auto;margin:0;}}"],v.I8.spacing.medium,v.I8.mediaquery.min.small),H=(w.Ay.header.withConfig({componentId:"sc-76496695-1"}))([""]),Y=(w.Ay.footer.withConfig({componentId:"sc-76496695-2"}))(["display:flex;justify-content:end;"]),ee=(w.Ay.section.withConfig({componentId:"sc-76496695-3"}))(["width:100%;margin:0 auto;display:flex;flex-direction:column;gap:",";@media ","{padding:0;width:auto;","}"],v.I8.spacing.large,v.I8.mediaquery.max["x-small"],e=>{let{$withoutSideMarginInMobile:i}=e;return!i&&`
2            margin-right: ${v.I8.spacing.medium};
3            margin-left: ${v.I8.spacing.medium};
4        `}),ei=(0,w.Ay)(Q.N_).withConfig({componentId:"sc-76496695-4"})(["display:flex;align-items:center;height:",";&:focus-visible{outline:",";outline-offset:",";}"],v.I8.size.target.medium,e=>{let{useWhiteFocus:i}=e;return`${v.I8.outline.medium} solid ${i?v.I8.color.primary.static["foreground-inverse"]:v.I8.color.border["6"]}`},v.I8["outline-offset"].small),et=e=>{var i;let{blackVariant:t,children:n,heading:o,headingLink:r,link:l,linkText:s,topicSlug:m,className:d,withoutSideMarginInMobile:c,stackFrom:g,showUnfollowButton:u,isCompany:p,...h}=e,x=Array.isArray(n)?n.length:1,f=(0,I.useMemo)(()=>i||(i=(0,y.jsx)(H,{children:(0,y.jsx)(N.D.Subtitle,{size:"small, @min.small=large",decorationType:"category-list",children:o})})),[o]);return 0===x?null:(0,y.jsxs)(ee,{className:d,$withoutSideMarginInMobile:c,"data-ga-list-name":o,...h,children:[r?(0,y.jsxs)(J,{children:[(0,y.jsx)(ei,{href:r,useWhiteFocus:t,children:f}),m&&(u?(0,y.jsx)(Z.X,{itemName:m,showMessage:!0,isCompany:p}):(0,y.jsx)(Z.s,{itemName:m,showMessage:!0,isCompany:p}))]}):(0,y.jsxs)(J,{children:[f,m&&(0,y.jsx)(Z.s,{itemName:m,showMessage:!0,isCompany:p})]}),"all"===g&&n,"all"!==g&&(0,y.jsx)(W.A,{stackFrom:g,children:n}),l&&(0,y.jsx)(Y,{children:(0,y.jsx)(Q.N_,{href:l,customComponent:(0,y.jsx)(V.Ay,{icon:a||(a=(0,y.jsx)(X.A,{size:"core.size.
4icon.small"})),iconPosition:"left",children:s})})})]})};(0,w.Ay)(et).withConfig({componentId:"sc-76496695-5"})(["&&{padding-bottom:",";margin-bottom:",";border-bottom:solid "," ",";}"],v.I8.spacing.large,v.I8.spacing["x-large"],v.I8.size.line.thin,v.I8.color.border["2"]);let ea=(0,w.Ay)(R.A).withConfig({componentId:"sc-76df187f-0"})(["padding:"," ",";",";@media ","{padding:"," 0 ",";}"],v.I8.spacing.large,v.I8.spacing.large,e=>{let{$applyBottomPadding:i}=e;return i?v.I8.spacing["x-large"]:v.I8.spacing.large},v.I8.mediaquery.max["x-small"],v.I8.spacing.large,e=>{let{$applyBottomPadding:i}=e;return i?v.I8.spacing["x-large"]:v.I8.spacing.large}),en=(w.Ay.div.withConfig({componentId:"sc-76df187f-1"}))(["display:flex;align-items:center;justify-content:center;flex-grow:2;@media ","{flex-direction:column;}"],v.I8.mediaquery.max.small),eo=(0,w.Ay)(U.A).withConfig({componentId:"sc-76df187f-2"})(["width:100%;"]),er=(w.Ay.div.withConfig({componentId:"sc-76df187f-3"}))(["@media ","{display:flex;gap:"," ",";padding-right:",";border-right:"," solid ",";> div{flex:1 50%;}}"],v.I8.mediaquery.min.medium,v.I8.spacing.large,v.I8.spacing.medium,v.I8.spacing["xx-large"],v.I8.size.line.thin,v.I8.color.border["2"]);var el=(0,b.Ng)(e=>({savedArticles:e.savedArticles}))((0,I.memo)(e=>{let{savedArticles:i,lazyLoadImages:t,className:a,renderTeaser:o,renderCustomList:r}=e,l=(0,b.wA)(),s=(0,b.d4)(e=>e.user),m=i.readingList.items,d=(0,I.useRef)(!1),c=(0,w.DP)(),g=(0,I.useCallback)(()=>s.loggedIn?m.length>0?"Tallenna  artikkeleita ja lue ne myöhemmin":F.A["personalised-page"]["saved-articles-promo"]["logged-in"].title:F.A["personalised-page"]["saved-articles-promo"]["logged-out"].title,[m.length,s.loggedIn]),u=(0,I.useCallback)(()=>s.loggedIn?F.A["personalised-page"]["saved-articles-promo"]["logged-in"].body:F.A["personalised-page"]["saved-articles-promo"]["logged-out"].body,[s.loggedIn]),p=(0,I.useCallback)(()=>{if(!s.loggedIn)return(0,y.jsx)(ed,{icon:n||(n=(0,y.jsx)(X.A,{size:"core.size.
4icon.medium"})),onClick:()=>(0,B.A)(),children:F.A["personalised-page"]["saved-articles-promo"]["logged-out"].cta})},[s.loggedIn]);if((0,I.useEffect)(()=>{d.current?s.loggedIn&&l((0,K.A)({media:"te",limit:5})):d.current=!0},[l,i.articles.length,s.loggedIn]),!m||0===m.length)return(0,y.jsx)(em,{heading:"Tallennetut",textColor:"core.color.primary.foreground",backgroundColor:`theme1.${c.foundation.theme.context}.color.base.2`,promotionColor:"core.color.primary.static.3",title:g(),text:u(),button:p(),className:a});let h=m.length>4,x=m.slice(0,4),f=null==r?void 0:r(x);return(0,y.jsx)(ea,{backgroundColor:`theme1.${c.foundation.theme.context}.color.base.2`,$applyBottomPadding:m.length>2&&m.length<5,className:a,children:(0,y.jsx)(et,{heading:"Tallennetut",headingLink:h?"/tallennetut":void 0,link:h?"/tallennetut":void 0,linkText:h?"Siirry Tallennetut-sivulle":void 0,children:m.length<3?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(er,{children:f??x.map((e,i,t)=>(0,y.jsx)(I.Fragment,{children:null==o?void 0:o(e,i,t)},e.uuid))},"teasers"),(0,y.jsxs)(en,{children:[(0,y.jsx)(es,{color:"core.color.border.2",thickness:"core.size.line.thin"}),(0,y.jsx)(eo,{textColor:"core.color.primary.foreground",title:g(),text:u(),button:p()})]},"promo")]}):f})})},(e,i)=>{var t,a,n,o;return(null==(t=e.savedArticles.articles)?void 0:t.length)===(null==(a=i.savedArticles.articles)?void 0:a.length)&&(null==(n=e.savedArticles.readingList.items)?void 0:n.length)===(null==(o=i.savedArticles.readingList.items)?void 0:o.length)})),es=(0,w.Ay)(O.A).withConfig({componentId:"sc-76df187f-4"})(["margin-bottom:",";@media ","{display:none;}"],v.I8.spacing["x-large"],v.I8.mediaquery.min.medium),em=(0,w.Ay)(E.A).withConfig({componentId:"sc-76df187f-5"})(["margin-bottom:",";@media ","{margin-bottom:",";}"],v.I8.spacing["x-large"],v.I8.mediaquery.max["x-small"],v.I8.spacing.large),ed=(0,w.Ay)(P.A).withConfig({componentId:"sc-76df187f-6"})(["outline-color:",";color:",";"],v.I8.color.primary.foreground,v.I8.color.primary.foreground),ec=t("UD"),eg=t("vm"),eu=t("WR");let ep=e=>{let{buttonType:i,...t}=e;return"primary"===i?(0,y.jsx)(M.A,{...t}):(0,y.jsx)(P.A,{...t})};var eh=e=>
4{let{onTopicClick:i,noFollowings:t,promotionHeading:a,promotionContainerTextColor:n="core.color.primary.static.white",promotionContainerBackgroundColor:s,promotionBlocksBackgroundColor:m="core.color.primary.static.3",isButtonPositiveColors:d,buttonType:c="secondary",renderChooseTopicButton:g,...u}=e,p=(0,b.d4)(e=>e.user),h=(0,w.DP)(),x=(0,b.wA)(),f=(0,I.useCallback)(()=>x((0,eu.o0)(!0)),[x]),A=(0,I.useCallback)(()=>p.isGroup?F.A["personalised-page"]["follow-category-promo"].corporate.title:p.loggedIn?F.A["personalised-page"]["follow-category-promo"]["logged-in"].title:F.A["personalised-page"]["follow-category-promo"]["logged-out"].title,[p]),j=(0,I.useCallback)(()=>p.isGroup?F.A["personalised-page"]["follow-category-promo"].corporate.body:p.loggedIn?F.A["personalised-page"]["follow-category-promo"]["logged-in"].body:F.A["personalised-page"]["follow-category-promo"]["logged-out"].body,[p]),v=(0,I.useCallback)(()=>p.isGroup?(0,y.jsx)(ep,{icon:o||(o=(0,y.jsx)(X.A,{size:"core.size.icon.medium"})),negativeColors:!d,onClick:f,buttonType:c,children:F.A["personalised-page"]["follow-category-promo"].corporate.cta}):p.loggedIn?g?g():(0,y.jsx)(ep,{icon:l||(l=(0,y.jsx)(S.A,{size:"core.size.
4icon.medium"})),negativeColors:!d,onClick:i,buttonType:c,children:F.A["personalised-page"]["follow-category-promo"]["logged-in"].cta}):(0,y.jsx)(ep,{icon:r||(r=(0,y.jsx)(X.A,{size:"core.size.icon.medium"})),negativeColors:!d,onClick:()=>(0,B.A)(),buttonType:c,children:F.A["personalised-page"]["follow-category-promo"]["logged-out"].cta}),[p,i,f,d,c,g]);return t?(0,y.jsx)(E.A,{heading:a,textColor:n,backgroundColor:s??`theme1.${h.foundation.theme.context}.color.base.4`,promotionColor:m,title:A(),text:j(),button:v(),...u}):null},ex=t("Rf"),ef=t("aO"),ey=t("OI"),eI=t("xR"),eA=t("WJ"),ej=t("hq6"),ew=t("c1"),eb=t("dL"),ev=t("r7X"),eC=t("EO"),ek=t("Vm"),ez=t("ja"),eq=t("re");let e$=(w.Ay.div.withConfig({componentId:"sc-de6ff759-0"}))(["position:fixed;width:100%;height:100%;top:0;left:0;z-index:",";background-color:",";overscroll-behavior:contain;overflow-y:scroll;@media ","{padding:0 ",";}"],v.I8["z-index"].overlay,e=>{let{theme:i}=e;return(0,eq.b)(`theme1.${i.foundation.theme.context}.color.overlay`)},v.I8.mediaquery.range.small,v.I8.spacing.large),eT=(w.Ay.div.withConfig({componentId:"sc-de6ff759-1"}))(["background-color:",";max-width:",";margin:"," auto;padding-bottom:",";@media ","{max-width:",";margin:"," auto;}@media ","{margin:0 auto;padding-bottom:",";}"],v.I8.color.primary["foreground-inverse"],"44.063rem",v.I8.spacing["xx-large"],v.I8.spacing["xx-large"],v.I8.mediaquery.range.small,"40.625rem",v.I8.spacing["x-large"],v.I8.mediaquery.max["x-small"],v.I8.spacing["x-large"]),eS=(w.Ay.div.withConfig({componentId:"sc-de6ff759-2"}))(["height:",";display:flex;flex-direction:row-reverse;padding:"," "," 0 0;@media ","{padding:"," "," "," 0;}"],v.I8.size["xxx-large"],v.I8.spacing.medium,v.I8.spacing.medium,v.I8.mediaquery.max["x-small"],v.I8.spacing.small,v.I8.spacing.small,v.I8.spacing["x-small"]),eO=(w.Ay.div.withConfig({componentId:"sc-de6ff759-3"}))(["margin:0 auto;@media ","{max-width:",";}@media ","{margin:0 ",";}"],v.I8.mediaquery.min.small,"30rem",v.I8.mediaquery.max["x-small"],v.I8.spacing.medium);var eM=t("IH"),eP=t("X0"),eL=t("Ob"),eN=t("k5"),eD=t("X4");let{siteAbbreviation:e_,siteShortSlug:eF,personalisedPageDefaultConfig:eR}=eD.A,eX=`oma${e_}_viewPreferences`,eB=e=>{var i,t,a;let n,{transform:o,draggingNodeRect:r,windowRect:l}=e;return r&&l?(i=o,t=r,a=l,n={...i},t.top+i.y<=a.top?n.y=a.top-t.top:t.bottom+i.y>=a.top+a.height&&(n.y=a.top+a.height-t.bottom),t.left+i.x<=a.left?n.x=a.left-t.left:t.right+i.x>=a.left+a.width&&(n.x=a.left+a.width-t.right),n):o},eK=e=>{let{transform:i}=e;return{...i,x:0}},eE=e=>"kl"===eF&&!1===e?eR.filter(e=>"premium"!==Object.keys(e)[0]):eR;function eU(e,i){let t=e=>Object.keys(e)[0],a=new Map(e.map(e=>[t(e),e])),n=new Map(i.map(e=>[t(e),Object.values(e)[0].show])),o=i.map(t).filter(e=>a.has(e));return 0===o.length?e:(o.length!==e.length?e.map(t):o).map(e=>{let{name:i,show:t}=Object.values(a.get(e))[0];return{[e]:{name:i,show:n.get(e)??t}}})}let eW=e=>{let i=e.map(e=>`${Object.keys(e)[0]}:${Object.values(e)[0].show?"1":"0"}`).join(";");(0,eN.TV)(eX,i,30)},eV=e=>{let i=(0,eN.Ri)(e,eX);if(i)return"object"==typeof i&&(eW(i),i=(0,eN.Ri)(e,eX)),i.split(";").map(e=>{let[i,t]=e.split(":"),a="";return eR.some(e=>{if(Object.keys(e)[0]===i)return a=Object.values(e)[0].name,!0}),{[i]:{name:a,show:"1"===t}}})},eQ=(w.Ay.ul.withConfig({componentId:"sc-221f0450-0"}))(["display:grid;"]),eZ=(w.Ay.li.withConfig({componentId:"sc-221f0450-1"}))(["display:grid;grid-template-columns:2.35fr 1fr 7.6875rem;@media ","{grid-template-columns:2.35fr 1fr 7.125rem;}@media ","{grid-template-columns:2.35fr 1fr 4.8125rem;}> label{",";font-size:",";}> label:first-child{padding-right:",";}padding-bottom:",";border-bottom:"," solid ",";"],v.I8.mediaquery.max.small,v.I8.mediaquery.max["x-small"],e=>{let{theme:i}=e;return i.foundation.media.type.ui.heavy},v.I8.font.scale["0"],v.I8.spacing.small,v.I8.spacing["x-small"],v.I8.border["x-small"],v.I8.color.border["3"]),eG=(w.Ay.div.withConfig({componentId:"sc-221f0450-2"}))(["",";font-size:",";padding-right:",";@media ","{font-size:",";}"],e=>{let{theme:i}=e;return i.foundation.media.type.ui.medium},v.I8.font.scale["0"],v.I8.spacing.small,v.I8.mediaquery.max["x-small"],v.I8.font.scale[-1]),eJ=(w.Ay.h2.withConfig({componentId:"sc-221f0450-3"}))(["",";font-size:",";line-height:",";color:",";margin:0 0 ",";text-align:center;"],e=>{let{theme:i}=e;return i.foundation.media.type.subtitle.medium},v.I8.font.scale["3"],v.I8["line-height"].small,v.I8.color.primary.foreground,v.I8.spacing["x-small"]),eH=(w.Ay.p.withConfig({componentId:"sc-221f0450-4"}))(["",";font-size:",";line-height:",";color:",";text-align:center;margin:0 0 ",";@media ","{margin:0 0 ",";}"],e=>{let{theme:i}=e;return i.foundation.media.type.body.normal},v.I8.font.scale["0"],v.I8["line-height"].medium,v.I8.color.primary.foreground,v.I8.spacing["xx-large"],v.I8.mediaquery.max["x-small"],v.I8.spacing["x-large"]),eY=(w.Ay.div.withConfig({componentId:"sc-221f0450-5"}))(["display:grid;padding:"," 0;align-items:center;grid-template-columns:2.35fr 1fr 7.6875rem;@media ","{grid-template-columns:2.35fr 1fr 7.125rem;}@media ","{grid-template-columns:2.35fr 1fr 4.8125rem;}"],v.I8.spacing.medium,v.I8.mediaquery.max.small,v.I8.mediaquery.max["x-small"]),e0=(0,w.Ay)(eA.f).withConfig({componentId:"sc-221f0450-6"})(["font-size:",";line-height:",";color:",";margin-block:0 ",";"],v.I8.font.scale[-2],v.I8["line-height"].medium,v.I8.color.primary["5"],v.I8.spacing["x-small"]);var e8=(0,w.Ay)(e0).withConfig({componentId:"sc-221f0450-7"})(["margin-top:",";"],v.I8.spacing.medium);let e1=(w.Ay.li.withConfig({componentId:"sc-221f0450-8"}))(["list-style-type:none;border-bottom:"," solid ",";"],v.I8.border["x-small"],v.I8.color.border["2"]),e2=I.memo(I.forwardRef((e,i)=>{let{id:t,children:a,show:n,selectedPreference:o,movers:r,moveOnClick:l,isLast:s,isFirst:m}=e,d=(0,w.DP)(),[c,g]=(0,I.useState)(n),{attributes:u,listeners:p,setNodeRef:h,transform:x,transition:f}=(0,eL.gl)({id:t}),A=r?function(e,i){let{direction:t,activeId:a,overId:n}=i;return a===e?{transform:`translate3d(0px, ${"up"===t?-79:79}px, 0) scaleX(1) scaleY(1)`,transition:"transform 300ms ease"}:n===e?{transform:`translate3d(0px, ${"up"===t?79:-79}px, 0) scaleX(1) scaleY(1)`,transition:"transform 300ms ease"}:void 0}(t,r):{transform:eM.Ks.Transform.toString(x),transition:f};return(0,y.jsx)(e1,{style:A,ref:h,children:(0,y.jsxs)(eY,{children:[(0,y.jsx)(eG,{children:a}),(0,y.jsx)(ej.A,{disabled:!1,checked:c,inline:!0,toggleSize:"small",checkboxId:a,"aria-label":`n\xe4yt\xe4/piilota ${a} `,onChange:e=>{let i=!c;g(i),o.find(e=>t===Object.keys(e)[0])[t].show=i,eW(o)}}),(0,y.jsxs)("div",{children:[(0,y.jsx)(e6,{icon:(0,y.jsx)(e3,{size:"core.size.
4icon.medium"}),targetSize:"core.size.target.xx-small",...u,onClick:()=>l(t,"up"),disabled:m,$_css:(0,eI.b)(`theme1.${d.foundation.theme.context}.color.base.2`)}),(0,y.jsx)(e4,{icon:(0,y.jsx)(e9,{size:"core.size.icon.medium"}),targetSize:"core.size.target.xx-small",...u,onClick:()=>l(t,"down"),disabled:s,$_css2:(0,eI.b)(`theme1.${d.foundation.theme.context}.color.base.2`)}),(0,y.jsx)(e7,{icon:(0,y.jsx)(ie,{size:"core.size.icon.large"}),targetSize:"core.size.target.xx-small",...u,...p})]})]})},t)}));var e5=e=>{let i,{shouldOpen:t=!1,onClose:a}=e,n=(0,b.d4)(e=>e.user.hasPremiumCredentials),o=(0,b.d4)(e=>e.user.lambdaCookies),r=(0,I.useMemo)(()=>{let e=eV(o),i=eE(n);return e?eU(i,e):i},[o,n]),l=I.useRef(null);(0,I.useEffect)(()=>(t&&(document.body.style.overflow="hidden"),(0,ez.o)("#viewModifierModal",void 0,a),()=>{document.body.style.overflow="visible"}),[a,t]);let[d,c]=(0,I.useState)(r.map(e=>Object.keys(e)[0])),g=(0,eP.FR)((0,eP.MS)(eP.AN),(0,eP.MS)(eP.uN,{coordinateGetter:eL.JR})),u=(0,I.useCallback)((e,i)=>{c(t=>{let a=(0,eL.be)(t,e,i);return r.sort((e,i)=>{let t=Object.keys(e)[0],n=Object.keys(i)[0];return a.indexOf(t)-a.indexOf(n)}),eW(r),a})},[r]),[p,h]=(0,I.useState)(null);function x(e,i){let t=d.indexOf(e);h({activeId:e,overId:"up"===i?d[t-1]:d[t+1],direction:i})}return(0,I.useEffect)(()=>{if(null===p)return;let e=setTimeout(()=>{u(d.indexOf(p.activeId),d.indexOf(p.overId)),h(null)},300);return()=>{clearTimeout(e)}},[p,u,d]),(0,y.jsx)(y.Fragment,{children:t&&(0,y.jsx)(e$,{onClick:e=>{var i;(null==(i=l.current)?void 0:i.contains(e.target))||a()},children:(0,y.jsxs)(eT,{id:"viewModifierModal",ref:l,children:[(0,y.jsx)(eS,{children:(0,y.jsx)(ew.A,{icon:s||(s=(0,y.jsx)(eb.A,{size:"core.size.
4icon.large"})),targetSize:"core.size.target.medium",onClick:a})}),(0,y.jsxs)(eO,{children:[(0,y.jsx)(eJ,{children:F.A["personalised-page"]["view-modifier-modal"].title}),(0,y.jsx)(eH,{children:F.A["personalised-page"]["view-modifier-modal"].body}),(0,y.jsx)(eP.Mp,{sensors:g,collisionDetection:eP.fp,onDragEnd:function(e){let{active:i,over:t}=e;t&&i.id!==t.id&&u(d.indexOf(i.id),d.indexOf(t.id))},modifiers:[eK,eB],children:(0,y.jsxs)(eQ,{children:[m||(m=(0,y.jsxs)(eZ,{children:[(0,y.jsx)("label",{children:"Osio"}),(0,y.jsx)("label",{children:"Näytä"}),(0,y.jsx)("label",{children:"Järjestä"})]})),(0,y.jsx)(eL.gB,{items:d,strategy:eL._G,children:(i=d.length,d.map((e,t)=>{let a,n=r.find(i=>e===Object.keys(i)[0]);return(0,y.jsx)(e2,{id:e,show:n[e].show,selectedPreference:r,moveOnClick:x,movers:p,isLast:t===i-1,isFirst:0===t,children:(a={Uutiset:"Uutiset",Longform:"Syventävät",Kolumnit:"Kolumnit",Nostot:"Nostot","Oma salkku":"Pörssi",Video:"Video","Uutiset maailmalta":"Maailmalta",Tallennetut:"Tallennetut",Suosittelemme:"Suosittelemme",Luetuimmat:"Luetuimmat",Tiedotteet:"Tiedotteet",Teemat:"Teemat","Kauppalehti Premium":"Kauppalehti Premium"},"kl"===eF?{...a,Longform:"KL Avain",Viikonvaihde:"Viikonvaihde"}:a)[n[e].name]},e)}))})]})}),(0,y.jsx)(e8,{children:F.A["personalised-page"]["view-modifier-modal"].mostReadDisclaimer}),(0,y.jsx)(e0,{children:F.A["personalised-page"]["view-modifier-modal"].recommendedDisclaimer}),(0,y.jsx)(e0,{children:F.A["personalised-page"]["view-modifier-modal"].generalDisclaimer})]})]})})})},e6=(0,w.Ay)(ew.A).withConfig({componentId:"sc-221f0450-9"})(["background-color:",";border-radius:",";@media ","{min-width:",";min-height:",";}"],e=>e.$_css,v.I8.shape.circle,v.I8.mediaquery.max["x-small"],v.I8.size.target["xxx-small"],v.I8.size.target["xxx-small"]),e4=(0,w.Ay)(ew.A).withConfig({componentId:"sc-221f0450-10"})(["background-color:",";border-radius:",";margin-left:",";@media ","{margin-left:",";}@media ","{min-width:",";min-height:",";}"],e=>e.$_css2,v.I8.shape.circle,v.I8.spacing["xxx-small"],v.I8.mediaquery.min.small,v.I8.spacing.small,v.I8.mediaquery.max["x-small"],v.I8.size.target["xxx-small"],v.I8.size.target["xxx-small"]),e7=(0,w.Ay)(ew.A).withConfig({componentId:"sc-221f0450-11"})(["justify-content:end;touch-action:none;@media ","{min-width:",";min-height:",";}"],v.I8.mediaquery.max["x-small"],v.I8.size.target["xxx-small"],v.I8.size.target["xxx-small"]),e3=(0,w.Ay)(ev.A).withConfig({componentId:"sc-221f0450-12"})(["@media ","{min-width:",";width:",";height:",";pointer-events:none;}"],v.I8.mediaquery.max["x-small"],v.I8.size.icon.small,v.I8.size.icon.small,v.I8.size.icon.small),e9=(0,w.Ay)(eC.A).withConfig({componentId:"sc-221f0450-13"})(["@media ","{min-width:",";width:",";height:",";pointer-events:none;}"],v.I8.mediaquery.max["x-small"],v.I8.size.icon.small,v.I8.size.icon.small,v.I8.size.icon.small),ie=(0,w.Ay)(ek.A).withConfig({componentId:"sc-221f0450-14"})(["@media ","{min-width:",";width:",";height:",";pointer-events:none;}"],v.I8.mediaquery.max["x-small"],v.I8.size.icon.medium,v.I8.size.icon.medium,v.I8.size.icon.medium),ii=t("W5"),it=t("Xi"),ia=t("A1"),io=t("Ox"),ir=t("ZN"),il=t("Zp"),is=t("el"),im=t("jk"),id=t("ms");let ic=(w.Ay.div.withConfig({componentId:"sc-46378b36-0"}))(["display:flex;flex-direction:column;row-gap:",";align-items:start;@media ","{margin-inline:",";}"],v.I8.spacing.medium,v.I8.mediaquery.max["x-small"],v.I8.spacing.medium);var ig=()=>{let e=(0,w.DP)();return(0,y.jsxs)(ic,{children:[(0,y.jsx)(ih,{decorationType:"section-page-title",decorationShape:id.i,size:"large",level:"h1",children:eD.A.personalizedPage.displayName}),(0,y.jsx)(iu,{size:"small",children:"Seuraa sinua kiinnostavia aiheita ja yhtiöitä ja vaikuta sisältöösi!"}),d||(d=(0,y.jsx)(C.CK,{})),(0,y.jsx)(_.Ay,{href:`/${eD.A.personalizedPage.slug}/aiheet`,customComponent:(0,y.jsx)(ip,{tagAs:"a",icon:(0,y.jsx)(is.A,{size:"core.size.
4icon.medium",color:`${e.foundation.media.mediaToken}.color.cta.primary.normal`}),$_css:v.I8.color.primary.foreground}),children:"Hallinnoi sisältöä"}),c||(c=(0,y.jsx)(C.CK,{}))]})},iu=(0,w.Ay)(eA.f).withConfig({componentId:"sc-46378b36-1"})({marginBottom:"0"}),ip=(0,w.Ay)(im.A).withConfig({componentId:"sc-46378b36-2"})(e=>({textDecoration:"none",color:e.$_css,padding:0})),ih=(0,w.Ay)(N.D.Subtitle).withConfig({componentId:"sc-46378b36-3"})(["&:before{top:0.125rem;}"]),ix=t("gC");let iy=(w.Ay.div.withConfig({componentId:"sc-fd266c21-0"}))(["display:flex;flex-direction:column;max-width:",";padding:"," "," 0;@media ","{max-width:",";margin:0 auto;padding:"," "," 0;}@media ","{padding:"," 0 0;}.topics-promotion div:empty{background-color:",";opacity:",";}"],v.I8.size.template["page-wrapper"],v.I8.spacing["x-large"],v.I8.spacing.large,v.I8.mediaquery.max.small,v.I8.size.template["page-wrapper-mobile"],v.I8.spacing.large,v.I8.spacing.large,v.I8.mediaquery.max["x-small"],v.I8.spacing.large,v.I8.color.primary.foreground,v.I8.opacity["10"]),iI=(0,w.Ay)(C.CK).withConfig({componentId:"sc-fd266c21-1"})([""," @media ","{display:none;}"],e=>{let{$withBlockMargin:i}=e;return i&&`margin-block: ${v.I8.spacing.medium};`},v.I8.mediaquery.min.medium),iA=(w.Ay.div.withConfig({componentId:"sc-fd266c21-2"}))(["@media ","{flex:1 calc(50% - ",") !important;}@media ","{margin-bottom:",";}"],v.I8.mediaquery.max.small,v.I8.spacing.medium,v.I8.mediaquery.max["x-small"],v.I8.spacing.large),ij=(e,i,t)=>{let a=[];for(let n=e.length-1;n>=0&&(!i(e[n])||(a.unshift(e.splice(n,1)[0]),!t||!(a.length>=t)));n--);return a},iw=e=>{let{teaser:i,noSeperator:t}=e;if((0,ef.iT)(i)){let e=(0,G.Jp)(i);return(0,y.jsxs)(y.Fragment,{children:[(0,I.createElement)(k.A,{...e,key:i.uuid,variants:"medium horizontal, @min.medium=medium vertical"}),!t&&(g||(g=(0,y.jsx)(iI,{$withBlockMargin:!0})))]})}let a=(0,G.Ck)(i);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(z.A,{...a,"data-ga-teaser-name":"MediumTeaser",hasInlinePaddingFromXSmallMQ:!1,orientation:"vertical"}),!t&&(u||(u=(0,y.jsx)(iI,{$withBlockMargin:!0})))]})};var ib=()=>{(0,io.A)(`oma-${eD.A.siteShortSlug}`);let e=(0,w.DP)(),i=(0,b.d4)(e=>e.user.lambdaCookies),t=eE(),a=eV(i),n=a?eU(t,a):t,[o,r]=(0,I.useState)(!1),{topicsWithSlugs:l,followedCompanies:s,newsItems:m,companyNewsItems:d}=(0,b.d4)(e=>e.ownTopics),c=d.items.filter(e=>{var i;return null==(i=e.media)?void 0:i.includes("stock-exchange-releases")}).slice(0,6),g=d.items.filter(e=>{var i;return!(null==(i=e.media)?void 0:i.includes("stock-exchange-releases"))}),u=[...new Map([...m.items,...g].map(e=>[e.uuid,e])).values()],f=(0,D.A)(u,e=>new Date(e.published)).reverse(),A=f.length,j=f.slice(0,3),C=f.slice(3,9),k=ij(f,e=>(0,ef.jF)(e),5),z=ij(f,ef.OV,5),M=ij(f,ef.qO,5),P=ij(f,ef.kZ,5),L=ij(f,ia.Z_,5),N=0===l.length&&0===s.length,R=0===A,X=(0,b.d4)(e=>Object.values(e.themes.themeLists)),B=(0,I.useCallback)(e=>{"viewModifier"===e&&r(!o)},[o]),K=(0,I.useCallback)(()=>({renderTeaser:()=>null,renderCarouselTeaser:()=>null,hasNonTransparentBackground:!0,isTeaserWithNoInlinePaddingOnXSmallMQ:!0}),[]),E=(0,I.useCallback)((e,i)=>e.map(e=>{let t=Object.keys(e)[0],{show:a}=Object.values(e)[0];switch(`${Object.keys(e)}`){case"savedArticles":if(a)return(0,y.jsx)(iq,{renderCustomList:e=>e.length>1?(0,y.jsx)(q.A.Provider,{value:K(),children:(0,y.jsx)(ex.A,{teaserList:e,type:e.length>2?"primary":"primary_with_ad"},t)}):null,renderTeaser:(e,i,t)=>(0,y.jsx)(q.A.Provider,{value:K(),children:(0,y.jsx)(iw,{teaser:e,noSeperator:1===t.length})}),$_css:(0,eI.b)(`theme1.${i.foundation.theme.context}.color.base.3`)},t);return null;case"mostRead":if(a)return(0,y.jsx)(ik,{isHorizontalList:!0,hideTeaserTimestamp:!0},t);return null;case"news":if(a)return!R&&(0,y.jsx)(ex.A,{teaserList:C,title:"Uutiset"},t);return null;case"longform":if(a)return!R&&k.length>0&&(0,y.jsx)(ey.x,{articleList:k,displayName:"Syventävät"},t);return null;case"opinions":if(a)return!R&&L.length>0&&(0,y.jsx)(ex.A,{teaserList:L,title:"Debatti",type:"quarternary",isCarouselFromSmallMQ:L.length>1,"data-ga-list-name":"Debatti"},t);return null;case"highlights":if(a)return!R&&z.length>0&&(0,y.jsx)(ex.A,{teaserList:z,title:"Nostot",type:"secondary",isCarouselFromSmallMQ:!0},t);return null;case"video":if(a)return!R&&M.length>0&&(0,y.jsx)(ex.A,{teaserList:M,title:"Videot",type:"primary"},t);return null;case"newsWorld":if(a)return!R&&P.length>0&&(0,y.jsx)(ex.A,{teaserList:P,title:"Maailmalta",type:"secondary",isCarouselFromSmallMQ:!0},t);return null;case"releases":if(a)return!R&&(0,y.jsx)(ex.A,{teaserList:c,title:"Tiedotteet"},t);return null;case"themes":if(a)return(0,y.jsx)(iC,{heading:"Teemat",headingLink:"/teemat",link:"/teemat",linkText:"Siirry Teemat-sivulle",stackFrom:"core.mediaquery.max.x-small",children:X.slice(0,4).map(e=>{var i,t,a;let n=(0,il.Sk)((0,il.qW)(void 0,"550x550"),null==(i=e.data.listImage)?void 0:i.attributes.uuid,null==(t=e.data.listImage)?void 0:t.attributes,[425,550,750,900],null==(a=e.data.externalListImage)?void 0:a.url),o=`
5                                            ${v.I8.mediaquery.max["x-small"]}
5 100vw,
6                                            ${v.I8.mediaquery.max.small} 34.375rem,
7                                            26.56rem
8                                        `;return(0,y.jsx)(iA,{children:(0,y.jsx)($.A,{imageRatio:"1:1",gradientOverlay:!0,imageAttributes:{sizes:o,srcSet:n},children:(0,y.jsx)(ix.A,{href:`/teemat/${e.data.displayNameSlug}`,invertedFocus:!0,children:(0,y.jsx)(iS,{size:"large, @min.small=medium, @min.medium=small",level:"span",$_css2:v.I8.color.primary.static.white,children:e.data.displayName})})})},e.data.id)})},t);return null;default:return null}}),[K,R,C,k,L,z,M,P,c,X]);return(0,y.jsxs)(ec.A,{children:[(0,y.jsx)(ir.A,{title:`Oma ${eD.A.siteName}`,description:"Seuraa sinua kiinnostavia aiheita ja yhtiöitä ja vaikuta sisältöösi!"}),(0,y.jsxs)(iy,{children:[(0,y.jsx)(e5,{shouldOpen:o,onClose:()=>B("viewModifier")}),"us"===eD.A.siteShortSlug&&(0,y.jsx)(iT,{message:"Oma US -palvelu ja aiheseuranta poistuvat käytöstä syksyn aikana.",type:"announcement"}),(0,y.jsxs)(T.A,{gap:`${v.I8.spacing["xx-large"]}, @max.small=${v.I8.spacing["x-large"]}`,children:[p||(p=(0,y.jsx)(ig,{})),N&&(0,y.jsx)(eh,{className:"topics-promotion",onTopicClick:()=>null,noFollowings:N,promotionContainerBackgroundColor:"transparent",promotionContainerTextColor:"core.color.primary.foreground",promotionBlocksBackgroundColor:"core.color.primary.static.2",isButtonPositiveColors:!0,buttonType:"primary",renderChooseTopicButton:()=>(0,y.jsx)(_.Ay,{href:`/${eD.A.personalizedPage.slug}/aiheet`,customComponent:(0,y.jsx)(iz,{tagAs:"a",icon:h||(h=(0,y.jsx)(S.A,{size:"core.size.
8icon.medium"}))}),children:F.A["personalised-page"]["follow-category-promo"]["logged-in"].cta})}),!R&&(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(ii.A,{title:"Uusimmat",list:j,hasVerticalSeperators:!0,lazyLoadImage:!1})})]}),!R&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(O.A,{thickness:"core.size.xxxxx-small",color:"core.color.border.1",spacing:{size:"core.spacing.x-large",sides:["top"]}}),(0,y.jsx)(i$,{icon:x||(x=(0,y.jsx)(S.A,{size:"core.size.icon.medium"})),iconPositionRight:!0,"aria-describedby":"SROnly",onClick:()=>B("viewModifier"),children:"Mukauta näkymää"})]}),(0,y.jsx)(T.A,{gap:`${v.I8.spacing["xx-large"]}, @max.small=${v.I8.spacing["x-large"]}`,children:E(n,e)}),(0,y.jsx)(iv,{orderNumber:1,postContent:!0,skipPlaceholder:!0,noMargin:!0})]})]})},iv=(0,w.Ay)(it.F0).withConfig({componentId:"sc-fd266c21-3"})(["&:has(:not(#almad-post-content-1:empty)){margin-top:",";}"],v.I8.spacing["x-large"]),iC=(0,w.Ay)(et).withConfig({componentId:"sc-fd266c21-4"})(["@media ","{> div{gap:",";}}"],v.I8.mediaquery.max.small,v.I8.spacing.medium),ik=(0,w.Ay)(eg.A).withConfig({componentId:"sc-fd266c21-5"})({width:"100%"}),iz=(0,w.Ay)(M.A).withConfig({componentId:"sc-fd266c21-6"})({textDecoration:"none"}),iq=(0,w.Ay)(el).withConfig({componentId:"sc-fd266c21-7"})(["margin-bottom:0;background-color:",";hr{margin-top:",";}"],e=>e.$_css,v.I8.spacing["x-large"]),i$=(0,w.Ay)(P.A).withConfig({componentId:"sc-fd266c21-8"})(["margin-top:",";margin-bottom:",";@media ","{margin-top:",";margin-bottom:calc( "," + "," );}@media ","{width:18.75rem;align-self:center;}@media ","{margin-inline:",";}"],v.I8.spacing["xx-large"],v.I8.spacing.large,v.I8.mediaquery.max.small,v.I8.spacing.large,v.I8.spacing.small,v.I8.spacing["x-large"],v.I8.mediaquery.min.small,v.I8.mediaquery.max["x-small"],v.I8.spacing.medium),iT=(0,w.Ay)(L.A).withConfig({componentId:"sc-fd266c21-9"})(["margin-bottom:",";"],v.I8.spacing["x-large"]),iS=(0,w.Ay)(N.D.Subtitle).withConfig({componentId:"sc-fd266c21-10"})(e=>({color:e.$_css2})),iO=t("uk"),iM=t("cK"),iP=t("HA"),iL=t("Pj"),iN=t("Ex");async function iD(e){let{store:i}=e;await i.dispatch((0,iO.A)());let t=[i.dispatch((0,j.A)({limit:100})),i.dispatch((0,iM.A)({limit:100})),i.dispatch((0,iP.A)({topicArticlesLimit:200})),i.dispatch((0,K.A)({limit:5})),i.dispatch((0,A.A)("personalisedPage","personalisedPage",void 0,"sectionfrontpage"))];return i.dispatch((0,iL.A)(0,12)),i.dispatch((0,iN.A)(0,12)),await Promise.all(t),f||(f=(0,y.jsx)(ib,{}))}}}]);
9//# sourceMappingURL=personalisedpage.e3123f355b.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.