1"use strict";(globalThis.rspackChunktalent_news_frontend||=[]).push([[5369],{93900(e,t,s){s.r(t),s.d(t,{default:()=>e0});var a,i,r,n,l,o,c,d,p,h,m,u,g,x,f,v,y,j,A,N,b=s(74848),k=s(96540),w=s(70887),C=s(59114),I=s(25402),S=s(8814),P=s(66401),L=s(47360),F=s(39993),H=s(46942),E=s.n(H),M=s(96362),R=s(22361),$=s(97584),T=s(8391),z=s(50586),_=s(13114),q=s(89594),O=s(27897),U=s(26666),X=s(52601),D=s(13988),G=s(3186),W=s(4247),B=s(25630);function V(e,t,s){var a;return(t="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var a=s.call(e,t||"default");if("object"!=typeof a)return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?a:a+"")in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}class K extends k.Component{render(){let{history:e}=this.props,t=e.movement&&e.movement.length?e.movement:null,s=t?(0,G.format)(new Date((0,U.A)(t)[0]),"d.M. H:mm"):null,i=e.tickSize||2,r=e.closePrice||void 0,n=(0,X.A)(t,e=>e[1])[1],l=(0,D.A)(t,e=>e[1])[1];return this.graphConfig=t?{chart:{height:260,spacingBottom:20,spacingTop:30,spacingLeft:0,spacingRight:0,zoomType:"none",pinchType:"none",panning:!1},credits:{enabled:!1},rangeSelector:{enabled:!1},navigator:{enabled:!1},scrollbar:{enabled:!1},plotOptions:{line:{connectNulls:!0},series:{enableMouseTracking:!1}},yAxis:[{labels:{align:"right",x:-3,format:`{value:.${i}f}`,overflow:!1,reserveSpace:!1,style:{color:this.theme.labelColor,cursor:"pointer"}},gridLineWidth:1,tickAmount:5,lineWidth:1,offset:60,showLastLabel:!0,plotLines:[{value:r,color:"var(--theme1-core-color-base-3)",dashStyle:"dot",width:1,zIndex:10}],min:r&&n>r?r:n,max:r&&l<r?r:l}],xAxis:[{lineWidth:0,gridLineWidth:1,type:"datetime",labels:{formatter(){return(0,G.format)(new Date(this.value),"H:mm")},style:{color:this.theme.labelColor,cursor:"pointer"},autoRotation:!1}}],series:[{type:"line",name:"Kurssi",id:"kurssi",data:t,color:`rgb(${this.theme.color})`}],tooltip:{enabled:!1},title:{align:"right",verticalAlign:"bottom",x:-3,y:32,text:s,floating:!0,style:{color:this.theme.labelColor,fontSize:"11px"}}}:null,(0,b.jsx)("div",{className:"stock-graph-wrapper",children:(0,b.jsx)("div",{children:this.graphConfig&&"u">typeof window?(0,b.jsx)(W.A,{options:this.graphConfig}):a||(a=(0,b.jsx)(B.A,{}))})})}constructor(e){super(e),V(this,"graphConfig",void 0),V(this,"theme",void 0),this.graphConfig=null,"ap"===this.props.theme?this.theme={color:"237, 43, 59",labelColor:"#9598A8"}:this.theme={color:"0, 82, 156",labelColor:"var(--core-color-primary-4)"}}}var J=s(16784),Y=s(61027),Q=s(60493),Z=(0,S.Ng)(e=>{let{indexLatestHistory:t,indexLatestHistoryLoading:s}=e.graph;return{indexLatestHistory:t,indexLatestHistoryLoading:s}},e=>({getIndexIntraday:t=>e((0,J.xA)(t))}))(e=>{if((0,k.useEffect)(()=>{e.getIndexIntraday(e.data.symbol)},[]),e.indexLatestHistoryLoading)return i||(i=(0,b.jsx)(B.A,{}));let t=e.indexLatestHistory,{symbol:s}=e.data,a=t&&t[s]?t[s]:null;return(0,b.jsxs)("div",{className:"index-graph-card",children:[(0,b.jsx)("div",{className:"title",children:e.data.name}),(0,b.jsxs)("div",{className:"row-justify",children:[(0,b.jsx)(Y.A,{data:e.data.changePercent}),(0,b.jsx)(Q.A,{data:e.data.lastPrice,className:"monospace",decimals:e.data.tickSize})]}),a&&(0,b.jsx)(K,{history:a,theme:e.theme})]})}),ee=s(82983),et=s(45560),es=s(68715),ea=s(21005),ei=s(66852),er=s(8142),en=s(12254),el=s(21903),eo=s(70202),ec=s(68776);let ed=(et.Ay.h3.withConfig({componentId:"sc-33c01169-0"}))(["margin:0;",";font-size:19px;color:",";line-height:",";text-transform:none;"],e=>e.theme.fonts.sans_medium,R.I8.color.primary.foreground,e=>e.theme.stock_heading_line_height),ep=(et.Ay.div.withConfig({componentId:"sc-33c01169-1"}))(["position:relative;display:table;border-collapse:separate;"]),eh=(et.Ay.div.withConfig({componentId:"sc-626b564e-0"}))(["margin-bottom:12px;",""],e=>{let{isArvopaperi:t}=e;return t&&` 2 position: relative; 3 margin-bottom: ${R.I8.spacing.large}; 4 float: none; 5 background: ${R.I8.color.primary["foreground-inverse"]}; 6 padding-inline: ${R.I8.spacing.small}; 7 padding-top: ${R.I8.spacing.small}; 8 `}),em=(et.Ay.div.withConfig({componentId:"sc-626b564e-1"}))(["display:flex;align-items:center;justify-content:space-between;padding-bottom:",";"],R.I8.spacing.small),eu=(0,et.Ay)(ed).withConfig({componentId:"sc-626b564e-2"})(["display:inline-block;"]),eg=(0,et.Ay)(ep).withConfig({componentId:"sc-626b564e-3"})(["display:inline-table;vertical-align:top;width:100%;margin-bottom:",";padding:0;"],R.I8.spacing.small),ex=(et.Ay.div.withConfig({componentId:"sc-626b564e-8"}))(["overflow:hidden;transition:height 0.3s ease-out;a{height:42px;display:block;padding:0px 16px;&:nth-child(odd){background:",";}&:hover{opacity:",";}}"],e=>{let{theme:t}=e;return(0,el.b)(`theme1.${t.foundation.theme.context}.color.base.2`)},e=>e.theme.link_hover_opacity),ef=(et.Ay.h3.withConfig({componentId:"sc-626b564e-9"}))(["display:flex;align-items:center;height:100%;color:",";margin:0;"],e=>{let{theme:t}=e;return t.foundation.media.color.brand}),ev=(et.Ay.div.withConfig({componentId:"sc-626b564e-10"}))(["padding:",";"],e=>e.isArvopaperi?"0 0 12px 0":"0px 0px 21px 0px"),ey=e=>{let{props:t}=e;return(0,b.jsxs)(ev,{isArvopaperi:t.isArvopaperi,children:["Hakusanalla ",(0,b.jsx)("span",{children:t.query})," ei löytynyt osakkeita"]})},ej=e=>{let{props:t}=e;return(0,b.jsx)(ev,{isArvopaperi:t.isArvopaperi,children:(0,b.jsxs)(es.A,{onClick:t.handleClick,icon:r||(r=(0,b.jsx)(ea.A,{size:"core.size.
8icon.small"})),iconPositionRight:!0,children:["Näytä kaikki (",t.resultsLen,")"]})})};class eA extends k.Component{handleChange(e){this.updateInputState(e.target.value.toLowerCase())}handleClick(){this.setState({showAll:!0})}getFilteredList(e){this.props.getSearchList(e)}updateInputState(e){e.length>1?(this.getFilteredList(e),this.setState({query:e,showAll:!1})):this.setState({query:""})}resetFilter(){this.setState({query:""},()=>{this.inputFilter.current&&(this.inputFilter.current.value="",this.inputFilter.current.focus())})}render(){let{searchList:e,isArvopaperi:t,searchListLoading:s}=this.props,a=this.state.query.length>1&&!(0,P.A)(e)?e.results:null,i=a?a.length:void 0,r=this.state.showAll?i:5,o=Math.min(i,r),c=i?42*o+12:0;return(0,b.jsxs)(eh,{isArvopaperi:t,children:[n||(n=(0,b.jsxs)(em,{children:[(0,b.jsx)(eu,{children:"Hae osakkeita"}),(0,b.jsx)(en.Ay,{href:"porssi/kurssit/XHEL",customComponent:(0,b.jsx)(ei.Ay,{noUnderlineOnHover:!0}),children:"Näytä kaikki"})]})),(0,b.jsx)(eg,{children:(0,b.jsx)(er.A,{type:"text",onChange:this.handleChange,placeholder:"Esim. Alma Media",ref:this.inputFilter,onClear:this.resetFilter})}),this.state.query&&s?l||(l=(0,b.jsx)(B.A,{})):null,(0,b.jsx)(ex,{style:{height:c},isArvopaperi:t,children:i?a.slice(0,r).map(e=>
8(0,b.jsx)(O.A,{routeName:"singleStock",navParams:{symbol:e.symbol,market:e.marketplaceSymbol},children:(0,b.jsx)(ef,{children:e.name})},`res_${e.symbol}`)):null}),(0,b.jsxs)("div",{children:[a&&!i&&(0,b.jsx)(ey,{props:{query:this.state.query,isArvopaperi:t}}),o<i?(0,b.jsx)(ej,{props:{resultsLen:i,handleClick:this.handleClick,isArvopaperi:t}}):null]})]})}constructor(e){var t,s,a;super(e),s=void 0,(t="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var a=s.call(e,t||"default");if("object"!=typeof a)return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t="inputFilter","string"))?a:a+"")in this?Object.defineProperty(this,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):this[t]=s,this.state={query:"",showAll:!1},this.inputFilter=k.createRef(),this.handleChange=this.handleChange.bind(this),this.handleClick=this.handleClick.bind(this),this.resetFilter=this.resetFilter.bind(this),this.getFilteredList=this.getFilteredList.bind(this),this.updateInputState=(0,ee.A)(this.updateInputState.bind(this),500)}}var eN=(0,S.Ng)(e=>({searchList:e.stock.searchList.data,searchListLoading:e.stock.searchListLoading,isArvopaperi:e.theme.isArvopaperi}),e=>({getSearchList:t=>e((0,eo.Hh)(t))}))(eA),eb=s(91438),ek=s(74722),ew=s(50791),eC=s(27422),eI=s(13602),eS=s(4554),eP=e=>{if((0,P.A)(e.data))return null;let t=e.data,s=(0,eI.A)((0,eC.A)(t),"list","dateTime","name"),a=(0,ek.A)(s,e=>t[e]/(0,ew.A)((0,ek.A)(s,e=>t[e]))*100),i=E()({performanceGraph:!0,no1:0===t.gainers,no2:0===t.neutral,no3:0===t.losers,reverse:"rev"===e.order,minimal:e.minimal});return(0,b.jsx)("div",{className:i,children:(0,ek.A)(a,(a,i)=>{let r=E()({[`${[s[i]]}`]:!0,bars:!0}),n=t[s[i]],l=e.minimal?(0,eS.A)((0,ek.A)(t,e=>`${e+String.fromCharCode(8239)}%`)," / "):void 0;return a>0?(0,b.jsx)("div",{style:{width:`${a}%`},className:r,title:l,children:e.minimal?void 0:(0,b.jsx)("span",{className:"counts",children:n})},`d-${i}`):void 0})})},eL=s(43925),eF=s(1330),eH=e=>{let t,s,a;if(!(null==e?void 0:e.item))return null;if("portfolio"===e.type)t="portfolio";else if(e.item.expired)t="";else if(e.dynamicRoute)switch(e.item.type){case"share":t="singleStock";break;case"option":t="singleOption";break;case"warrant":t="singleWarrant";break;case"fund":t="fundItem";break;case"index":t="stockIndex";break;case"currency":t="currencyItem";break;case"interest":t="interestItem";break;case"etf":t="singleEtf";break;default:t=""}else t="singleStock";let i=e.item.insref||e.item.insRef,r=null==e?void 0:e.item.symbol,n=null==e?void 0:e.item.marketplaceSymbol,l=""!==t,p=E()({"row-graph":!1,"tr-link":l}),h=(0,b.jsx)(Y.A,{data:e.item.changePercent}),m=(0,b.jsx)(eF.A,{type:"number",data:e.item.marketValue,decimals:2}),u=(0,b.jsx)(eF.A,{type:"number",data:e.item.turnover,millions:!0,decimals:0});return s=e.item.lastPrice?(0,b.jsx)(eF.A,{type:"number",data:e.item.lastPrice,decimals:e.item.tickSize}):(0,b.jsx)(eF.A,{type:"number",data:e.item.closePrice,decimals:e.item.tickSize}),a="gainers"===e.dir?o||(o=(0,b.jsx)(ec.A,{type:"indicator-arrow-up",className:"indicator"})):"losers"===e.dir?c||(c=(0,b.jsx)(ec.A,{type:"indicator-arrow-down",className:"indicator"})):d||(d=(0,b.jsx)("span",{className:"indicator-neutral",children:"-"})),(0,b.jsxs)("tr",{className:p,onClick:l?function(e){e.preventDefault(),window.location.href=e.currentTarget.getElementsByTagName("a")[0].getAttribute("href")||""}:void 0,"data-symbol":e.item.symbol,children:[e.rank&&(0,b.jsx)("td",{className:"rank-cell",children:e.item.rank}),(0,b.jsxs)("td",{className:"indicator-cell",children:[a,0!==e.item.rankChange&&(0,b.jsx)(eL.A,{data:e.item.rankChange,id:e.item.key})]}),(0,b.jsx)("td",{className:"perf-label",children:l&&(e.item.symbol||e.item.symbol)?(0,b.jsx)(O.A,{routeName:t,navParams:{portfolioId:r,symbol:r,insRef:i,market:n},children:(0,b.jsx)("span",{className:"changerName",title:e.item.name,children:e.item.name})}):(0,b.jsx)("span",{className:"changerName",title:e.item.name,children:e.item.name})}),e.item.votes&&(0,b.jsx)("td",{className:"inline-graph",children:(0,b.jsx)(eP,{data:e.item.votes,minimal:!1})}
8),e.item.votes||"rank"===e.type?null:(0,b.jsx)("td",{className:"perf-value monospace",children:s}),"portfolio"===e.type?(0,b.jsx)("td",{className:"perf-value monospace own-case-value",children:m}):null,e.item.votes||"rank"===e.type?null:(0,b.jsx)("td",{className:"perf-value monospace",children:h}),"mostActive"===e.type?(0,b.jsx)("td",{className:"perf-value monospace own-case-value",children:u}):null]})},eE=e=>{let{name:t,list:s,type:a,rank:i,dynamicRoute:r}=e,n=s.filter(Boolean);return n.length?(0,b.jsx)("table",{className:`listing list-${t}`,children:(0,b.jsx)("tbody",{children:n.map(e=>(0,b.jsx)(eH,{item:e,type:a,dir:e.rank&&!e.rankChange?"neutral":e.rankChange?e.rankChange<0?"losers":"gainers":e.changePercent?e.changePercent<0?"losers":"gainers":0===e.changePercent?"neutral":t,rank:i,dynamicRoute:r},e.name))})}):null},eM=k.memo(e=>e.data?(0,b.jsxs)("div",{className:E()(e.className,E()("performance-card",{"no-graph":e.noGraph,"behind-paywall":e.paywallOverlay})),children:[e.name&&(0,b.jsx)("h5",{className:"title",children:e.name}),!e.noGraph&&(0,b.jsx)(eP,{data:e.data}),e.data.list&&e.data.list.top&&(0,b.jsx)(eE,{list:e.data.list.top,name:"toplist",type:e.type,rank:e.rank,dynamicRoute:e.dynamicRoute})]}):null,(e,t)=>{var s,a,i,r,n,l;return(null==(i=e.data)||null==(a=i.list)||null==(s=a.top)?void 0:s.length)===(null==(l=t.data)||null==(n=l.list)||null==(r=n.top)?void 0:r.length)}),eR=s(26362),e$=s(93177),eT=s(84388),ez=s(6323);class e_ extends k.Component{render(){var e;if(!this.props.data||!this.props.data.title)return null;let t=((e,t)=>{if(void 0===t)return"";switch(e){case"FLASH":return"***";case"NEWS":default:return t.name;case"STOCK_EXCHANGE_RELEASE":return"[tiedote]"}})(this.props.data.profile,this.props.data.primaryCategory),s=s=>s?[(0,b.jsxs)("p",{style:{whiteSpace:"nowrap"},children:[s.timestamp&&(0,b.jsx)(ez.A,{dateFormat:this.props.dateFormat,published:this.props.data.published}),s.showCategory&&(e||(e=(0,b.jsx)("span",{className:"headline-category",children:t})))]},`p-${this.props.data.title}`),(0,b.jsx)("h4",{className:"teaser-title",children:this.props.data.title.replace("***","").trim()},`h3-${this.props.data.title}`)]:null;return(0,b.jsx)("div",{className:this.props.className,children:"FLASH"===this.props.data.profile?(0,b.jsx)("div",{className:"headline flash",children:s(this.props.options)}):(0,b.jsx)(O.A,{href:this.props.data.externalUrl||this.props.data.href,className:"headline",activeClass:"active",children:s(this.props.options)})})}}var eq=s(8619);class eO extends k.Component{static sliceList(e,t){return e&&e.length>0?e&&e.slice(0,t):e}formatHeadlines(e){return(0,b.jsx)("div",{className:"stock headline-list",children:!(0,P.A)(e)&&e.map(e=>(0,b.jsx)(e_,{data:{title:e.title,published:e.published,externalUrl:this.props.isAp?`https://www.kauppalehti.fi/uutiset/a/${e.uuid}`:void 0,profile:e.storyType.toUpperCase(),href:`/uutiset/a/${e.uuid}`,primaryCategory:e.primaryCategory},options:{timestamp:!0,showCategory:!0}},e.uuid))})}render(){var e,t,s,a,i,r,n,l,o;if(this.props.stockNewsLoading)return null;let c=this.props.isLoggedIn&&this.props.hasDigitilausCredentials||(0,P.A)(null==(e=this.props.stockNews)?void 0:e.investor)?null==(s=this.props.stockNews)?void 0:s.investor:null==(t=this.props.stockNews)?void 0:t.investor.filter(e=>"flash"!==e.storyType),d=this.props.isAp?eO.sliceList(c,3):c,v=this.props.isAp?eO.sliceList((null==(a=this.props.latestReleases)?void 0:a.items)||[],3):null==(i=this.props.latestReleases)?void 0:i.items,y=this.props.isAp?"col-md-3 col-bg kl-news clearfix":"clearfix";return(0,b.jsxs)(eX,{gap:R.I8.spacing.large,children:[d&&d.length>0&&(0,b.jsxs)("div",{className:y,"data-group":"news-market",children:[this.props.isAp?p||(p=(0,b.jsx)("a",{className:"kl-logo",href:"https://www.kauppalehti.fi/",children:(0,b.jsx)("span",{})})):null,h||(h=(0,b.jsx)(eq.A,{text:"Markkinauutiset",link:"https://www.kauppalehti.fi/kl-nyt"})),this.formatHeadlines(d)]}),(null==(r=this.props.stockNews)?void 0:r.interest)&&(0,b.jsxs)("div",{className:y,"data-group":"news-interest",children:[m||(m=(0,b.jsx)(eq.A,{text:"Korot"})),this.formatHeadlines(null==(n=this.props.stockNews)?void 0:n.interest)]}),!this.props.isAp&&(u||(u=(0,b.jsx)(z.F0,{id:"almad-aside-right-1",viewportFrom:992,n
8oMargin:!0,skipPlaceholder:!0}))),(0,b.jsx)(z.F0,{skipPlaceholder:!0,orderNumber:1,viewportTo:992,postContent:!this.props.isAp,spacings:{left:"core.spacing.small",right:"core.spacing.small"}}),(null==(l=this.props.stockNews)?void 0:l.survey)&&(0,b.jsxs)("div",{className:y,"data-group":"news-survey",children:[g||(g=(0,b.jsx)(eq.A,{text:"Pörssikatsaus"})),this.formatHeadlines(null==(o=this.props.stockNews)?void 0:o.survey)]}),!this.props.isAp&&(x||(x=(0,b.jsx)(z.F0,{id:"almad-aside-right-2",viewportFrom:992,noMargin:!0,skipPlaceholder:!0}))),!this.props.isAp&&(0,b.jsx)(z.F0,{skipPlaceholder:!0,orderNumber:2,viewportTo:992,postContent:!0,spacings:{left:"core.spacing.small",right:"core.spacing.small"}}),v&&(0,b.jsxs)("div",{className:y,"data-group":"news-stockrelease",children:[f||(f=(0,b.jsx)(eq.A,{text:"Pörssitiedotteet",link:"https://www.kauppalehti.fi/kl-nyt"})),v.map(e=>(0,b.jsx)(e_,{data:{title:e.teaserTitle,profile:"STOCK_EXCHANGE_RELEASE",published:e.published,href:`/porssitiedotteet/a/${e.uuid}`},options:{timestamp:!0,showCategory:!1},className:"stock headline-list"},e.uuid))]})]})}constructor(e){super(e),this.formatHeadlines.bind(this)}}var eU=(0,S.Ng)(e=>{let{stockNews:t,stockNewsLoading:s}=e.stockNews,{hasDigitilausCredentials:a,loggedIn:i}=e.user;return{stockNews:t,stockNewsLoading:s,loggedIn:i,hasDigitilausCredentials:a}},null)(eO),eX=(0,et.Ay)(eT.A).withConfig({componentId:"sc-dd0f03c8-0"})(["@media ","{margin-block:",";}"],R.I8.mediaquery.max.small,R.I8.spacing.large),eD=s(92932);let eG=(et.Ay.div.withConfig({componentId:"sc-906c5d26-0"}))(["display:flex;flex-direction:column;max-width:680px;"]),eW=(et.Ay.div.withConfig({componentId:"sc-906c5d26-1"}))(["font-size:16px;text-transform:uppercase;margin-bottom:12px;"]),eB=(et.Ay.div.withConfig({componentId:"sc-906c5d26-2"}))(["white-space:normal;"]),eV=(et.Ay.div.withConfig({componentId:"sc-906c5d26-3"}))(["display:flex;width:100%;justify-content:space-between;padding:16px 0px;"]);var eK=()=>v||(v=(0,b.jsxs)(eG,{children:[(0,b.jsx)(eW,{children:"Inderesin analyysit"}),(0,b.jsx)(eB,{children:"Inderesin analyysit ovat syvällisiä katsauksia yhtiöiden toimintaan ja liiketoimintaympäristöön."}),(0,b.jsxs)(eV,{children:[(0,b.jsx)(en.Ay,{className:"link",href:"/porssi/analyysit/inderesinanalyysit",children:"Lue lisää >>"}),(0,b.jsx)(eD.A,{})]})]}));let eJ=["OMXHPI","OMXH15","OMXH25","OMXHCAPGI","DAX30","SXXP","NDX","COMP","HSI","FNFIEURPI"];function eY(e){return e.insRef||e.isin||JSON.stringify(e)}var eQ=e=>{let{active:t,commonIndices:s,performance:a,currencies:i,interests:r,latestReleases:n}=e,l=eJ.map(e=>s.filter(t=>t.symbol===e)[0]).filter(e=>e),o=l.filter(e=>(0,M.A)(["OMXHPI","FNFIEURPI"],e.symbol));return(0,b.jsxs)($.A,{className:"stock-exchange-page",children:[(0,b.jsx)(_.A,{canonical:`${q.A.baseUrl}/porssi`}),y||(y=(0,b.jsx)(eN,{})),o&&(0,b.jsx)("div",{className:"index-card-container col-bg mb-2",style:{zIndex:R.I8["z-index"].elevate},children:(0,b.jsx)("div",{className:"scroller",children:(0,b.jsx)("div",{className:"scroll-container scrollbar",children:(0,b.jsxs)("ul",{className:"clearfix index-card-list",children:[o.map(e=>(0,b.jsx)("li",{className:"col-md-4",children:(0,b.jsx)(O.A,{routeName:"stockIndex",navParams:{symbol
8:e.symbol},children:(0,b.jsx)(Z,{data:e,theme:"ap"})})},e.symbol)),j||(j=(0,b.jsx)("div",{className:"col-md-4 p-2",children:(0,b.jsx)(eK,{})}))]})})})}),(0,b.jsx)(T.A,{children:(0,b.jsxs)("div",{style:{zIndex:R.I8["z-index"].elevate,background:R.I8.color.primary["foreground-inverse"]},children:[(0,b.jsxs)("div",{className:"col-md-9 col-bg ap-grid-cross clearfix",children:[(0,b.jsxs)(eb.A,{size:"small",className:E()("carousel-table large-table col-starter col-sm-7 px-1"),children:[l.map(e=>(0,b.jsx)(e$.A,{"data-group":"Indeksit",data:e,valueClass:"monospace",link:!0,route:"stockIndex"},eY(e))),i.map(e=>(0,b.jsx)(e$.A,{type:"currency","data-group":"Valuutat",data:e,valueClass:"monospace",link:!0,route:"currencyItem"},eY(e))),null==r?void 0:r.map(e=>(0,b.jsx)(e$.A,{type:"percent","data-group":"Korot",data:e,valueClass:"monospace",link:!0,route:"interestItem"},eY(e)))]}),(0,b.jsxs)(eb.A,{size:"medium",grid:!0,childClasses:"col-full",className:E()("col-starter border-right","col-sm-5","px-1"),children:[(0,b.jsx)(eM,{noGraph:!0,"data-group":"Nousijat / Laskijat",data:a}),t?(0,b.jsx)(eM,{noGraph:!0,"data-group":"Vaihdetuimmat",data:t,type:"mostActive"}):null]}),A||(A=(0,b.jsx)(eR.A,{}))]}),(0,b.jsx)(eU,{isAp:!0,latestReleases:n}),(0,b.jsx)(z.F0,{skipPlaceholder:!0,orderNumber:1,viewportTo:992,postContent:!0,spacings:{left:"core.spacing.small",right:"core.spacing.small"}})]})})]})},eZ=(0,S.Ng)(function(e){let{page:{stockExchange:t}}=e;return{content:t.data}})(e=>{var t;let s=e.content,{commonInterests:a,latestReleases:i}=s,r=function(e){let t,s;if(!e)return null;let{gainers:a,neutral:i,losers:r,list:n}=e;return{gainers:a,neutral:i,losers:r,list:{top:(t=(0,F.A)(n.gainers,6),s=(0,F.A)(n.losers,6).reverse(),(0,F.A)(t.concat(s,n.neutral),12).filter(Boolean))}}}(s.performance),n=!(t=s.active)||(0,P.A)(t.shares)?null:{list:{top:t.shares}},l={active:n,commonIndices:s.indices.commonIndexes,performance:r,currencies:s.currencies&&s.currencies.currencies&&s.currencies.currencies.length?["EURUSD","EURGBP","EURRUB","JPYUSD"].map(e=>{let t=(0,L.A)(s.currencies.currencies.filter(t=>e===t.symbol)),a="EURUSD"===t.symbol?4:3;return{...t,tickSize:a}}):[],interests:null==a?void 0:a.interests,latestReleases:i};return(0,b.jsx)("div",{className:"greyhound-global-styles",children:(0,b.jsx)(eQ,{...l})})});async function e0(e){let{store:t}=e;return await Promise.all([t.dispatch((0,w.t9)()),t.dispatch((0,C.W)()),t.dispatch((0,I.A)("porssi","porssi-etusivu","Pörssi - Pörssikurssit tänään","sectionfrontpage"))]),N||(N=(0,b.jsx)(eZ,{}))}},25630(e,t,s){var a=s(74848),i=s(96540),r=s(70924),n=s(45560);let l=(n.Ay.div.withConfig({componentId:"sc-8232f434-0"}))(["height:inherit;"]),o=(n.Ay.div.withConfig({componentId:"sc-8232f434-1"}))(["height:",";display:flex;justify-content:center;align-items:center;"],e=>{let{$height:t}=e;return`${t}px`||"100%"});t.A=e=>{let{height:t=160,mountCallback:s,noTxt:n,text:c,fullHeight:d,customClass:p,...h}=e,[m,u]=i.useState(t),g=i.useRef(null);return i.useEffect(()=>{if(d&&g.current){var e;u(window.outerHeight-((null==(e=g.current)?void 0:e.getBoundingClientRect().top)||0))}null==s||s()},[g.current]),(0,a.jsx)(l,{ref:g,...h,children:d&&!m?null:(0,a.jsx)(o,{$height:m,className:p,children:(0,a.jsx)(r.A,{size:"core.size.
8icon.x-large",text:n?"":c||"Lataus käynnissä.."})})})}},6323(e,t,s){var a,i=s(74848);s(96540);var r=s(16214),n=s(68776);t.A=e=>{let t=e.published||e.modified||e.data;if(!t)return null;let s=e.published||e.modified,l=(0,r.fU)(t,e.dateFormat,s);return(0,i.jsxs)("span",{className:"timestamp",children:[e.clock&&(a||(a=(0,i.jsx)(n.A,{type:"clock"}))),(0,i.jsx)("time",{className:e.className,children:l})]})}},61027(e,t,s){var a=s(74848),i=s(96540),r=s(46942),n=s.n(r),l=s(63463);class o extends i.Component{render(){let e,t,{data:s}=this.props;if(null==s)return(0,a.jsx)("span",{className:this.props.className,children:"-"});let i=this.props.postfix||"",r="";s<0?(e=Math.abs(s),t=this.props.inverted?"change-positive":"change-negative",r="-"):s>0?(e=s,t=this.props.inverted?"change-negative":"change-positive",r="+"):(e=s,t="no-change",r=" ");let o=(e,t,s)=>{if(this.props.number){let s=l.A.numberValue(this.props.data,this.props.decimals,t,!1,this.props.proportional,this.props.postfixNoSpace);return"+"===e?`+${s}`:`${s}`}let a="-"!==s?l.A.changePercentage(Number(s),this.props.decimals,this.props.proportional):s;return e?`<span class="change-prefix">${e}</span>${a}`:a};return(0,a.jsx)("span",{className:n()("changePercent",this.props.className,t),dangerouslySetInnerHTML:{__html:o(r,i,e.toString())||""}})}}t.A=o},43925(e,t,s){var a=s(74848);s(96540);var i=s(46942),r=s.n(i);t.A=e=>{if(void 0===e.data)return null;let t=Math.abs(e.data),s=e.data<0?"change-negative":e.data>0?"change-positive":"no-change";return(0,a.jsx)("span",{id:e.id,className:r()("changeRank",e.className,s,"monospace"),children:t})}},40371(e,t,s){var a=s(74848);s(96540);var i=s(46942),r=s.n(i),n=s(63463);t.A=e=>{let t=n.A.currencyValue(e.data,e.decimals,e.unit,e.millions,e.proportional),s=e.postfix||"";return(0,a.jsx)("span",{className:r()(e.className),dangerouslySetInnerHTML:{__html:(t||"")+s}})}},60493(e,t,s){var a=s(74848);s(96540);var i=s(46942),r=s.n(i),n=s(63463);t.A=e=>{let t=n.A.numberValue(e.data,e.decimals,e.postfix,e.millions,e.proportional,e.postfixNoSpace);return(0,a.jsx)("span",{className:r()(e.className),dangerouslySetInnerHTML:{__html:t||""}})}},26362(e,t,s){var a=s(74848);s(96540);var i=s(46942),r=s.n(i),n=s(12254),l=s(13825);t.A=e=>{let{type:t="millistream",prefix:s="Markkinatiedot toimittaa",text:i="Millistream",className:o}=e,c=r()("stock-src-wrapper",o);return(0,a.jsx)("div",{className:c,children:(0,a.jsxs)("span",{className:"txt",children:[s,(0,a.jsxs)(n.Ay,{href:l.A.external[t],external:!0,children:[" ",i," "]})]})})}},1330(e,t,s){s.d(t,{A:()=>b});var a,i,r,n,l,o,c,d,p=s(74848);s(96540);var h=s(61027),m=s(40371),u=s(60493),g=s(6323),x=s(5556),f=s.n(x),v=s(46942),y=s.n(v),j=function(e){let t=e=>{let{classes:t}=e;return(0,p.jsx)("div",{className:t})},s=e=>{let{classes:t}=e;return(0,p.jsx)("div",{className:t,children:a||(a=(0,p.jsxs)("svg",{fill:"url(#gradient)",width:"16",height:"16",viewBox:"0 0 16 16",children:[(0,p.jsx)("defs",{children:(0,p.jsxs)("linearGradient",{id:"gradient",children:[(0,p.jsx)("stop",{offset:"50%",stopColor:"var(--core-color-primary-5)"}),(0,p.jsx)("stop",{offset:"50%",stopColor:"var(--core-color-primary-3)"})]})}),(0,p.jsx)("path",{d:"M16 6.204l-5.528-0.803-2.472-5.009-2.472 5.009-5.528 0.803 4 3.899-0.944 5.505 4.944-2.599 4.944 2.599-0.944-5.505 4-3.899z"})]}))})};t.propTypes={classes:f().string},s.propTypes={classes:f().string};let i=Number(e.rating.toFixed(2))%1,r=i>=.25&&i<=.75,n=[],l=i>=.75?Math.round(e.rating):Math.floor(e.rating);for(let a=0;a<5;a++){let i;i=a<l?y()({star:"star"===e.type,square:"square"===e.type,"fill-black":!0}):a===l&&r?y()({star:"star"===e.type,square:"square"===e.type}):y()({star:"star"===e.type,square:"square"===e.type,"fill-grey":!0});let o="star"===e.type?(0,p.jsx)(s,{classes:i},a):(0,p.jsx)(t,{classes:i},a);n.push(o)}return(0,p.jsx)("div",{className:"rating",children:n})},A=s(43925),N=s(68776),b=e=>{if(!e.renderEmpty&&!e.data&&"boolean"!=typeof e.data)return null;switch(e.type){case"date":return(0,p.jsx)(g.A,{data:e.data,className:e.className,dateFormat:e.dateFormat,clock:e.clock});case"number":return(0,p.jsx)(u.A,{data:e.data,postfix:e.postfix,postfixNoSpace:e.postfixNoSpace,className:e.className,decimals:e.decimals,millions:e.millions,proportional:e.proportional});case"currency":return(0,p.jsx)(m.A,{data:e.data,className:e.className,decimals:e.decimals,unit:e.unit,millions:e.millions,proportional:e.proportional});case"change":return(0,p.jsx)(h.A,{data:e.data,className:e.className,decimals:e.decimals,proportional:e.proportional});case"inverted-change":return(0,p.jsx)(h.A,{data:e.data,className:e.className,decimals:e.decimals,proportional:e.proportional,inverted:!0});case"changeNumber":return(0,p.jsx)(h.A,{data:e.data,className:e.className,decimals:e.decimals,number:!0,postfix:e.postfix,proportional:e.proportional,postfixNoSpace:e.postfixNoSpace});case"interimdate":{let t=new Date(e.data),s=t.getFullYear(),a=t.getMonth()+1;if(a<10)return(0,p.jsxs)("span",{children:["0",a,"/",s]});return(0,p.jsxs)("span",{children:[a,"/",s]})}case"ratingStar":return(0,p.jsx)(j,{type:"star",rating:e.data});case"ratingSquare":return(0,p.jsx)(j,{type:"square",rating:e.data});case"rankChange":{let t,s=(0,p.jsx)(A.A,{data:e.data});return e.data>0?t=i||(i=(0,p.jsx)(N.A,{type:"indicator-arrow-up",className:"indicator"})):e.data<0?t=r||(r=(0,p.jsx)(N.A,{type:"indicator-arrow-down",className:"indicator"})):(t=n||(n=(0,p.jsx)("span",{className:"indicator-neutral",children:"-"})),s=null),(0,p.jsxs)("div",{className:"indicator-cell indicator-right-side",children:[t,s]})}case"percentage":return(0,p.jsx)(u.A,{className:"monospace",data:e.data,postfix:"%",decimals:2});case"percentageOf":return(0,p.jsxs)("div",{className:"percentage-of monospace",children:[(0,p.jsx)(u.A,{data:e.data,decimals:0}),l||(l=(0,p.jsx)("span",{className:"thinsp",children:" "})),o||(o=(0,p.jsx)("span",{children:"/"})),c||(c=(0,p.jsx)("span",{className:"thinsp",children:" "})),d||(d=(0,p.jsx)("span",{children:"100"}))]});case"delay":return(0,p.jsx)("span",{className:e.className,children:e.data?"0 MIN":"15 MIN"});case"string":var t;if(e.legendWidth&&e.legendWidth<(null==(t=e.data)?void 0:t.length)*7)return(0,p.jsx)("span",{className:e.className,style:{justifyContent:"end"},children:e.data});return(0,p.jsx)("span",{className:e.className,children:e.data});case"title":return(0,p.jsx)("span",{className:"stock-list-item-title",children:e.data});case"uppercase":return(0,p.jsx)("span",{className:`capitalize ${e.className}`,children:e.data});default:return(0,p.jsx)("span",{className:e.className,children:e.data})}}},7209(e,t,s){t.A=(0,s(57971).zR)()}}]); 9//# sourceMappingURL=stockExchange.c466ea7cbc.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.