1"use strict";(globalThis.rspackChunktalent_news_frontend||=[]).push([[6184],{26961(e,a,t){var i=t(76396);let r=i.F.injectEndpoints({endpoints:e=>({getCurrency:e.query({query:e=>({url:`currencies/basic/${e}`}),transformResponse:e=>{var a;return(null==(a=e.currencies)?void 0:a[0])??{}},transformErrorResponse:i.k}),getBaseCurrencyComparison:e.query({query:e=>{let{currency:a,date:t}=e;return{url:`currencies/basic/all/${a}/${t}`}},transformErrorResponse:i.k}),getCurrencyList:e.query({query:()=>({url:"currencies/basic/all/EUR"}),transformErrorResponse:i.k}),getBaseCurrencies:e.query({query:()=>({url:"currencies/basic/basecurrencies"}),transformErrorResponse:i.k}),getCurrencyGraph:e.query({query:e=>{let{symbol:a,period:t}=e;return{url:`currencies/graph/${a}/${t}`}},transformErrorResponse:i.k})})}),{useGetCurrencyQuery:n,useGetBaseCurrencyComparisonQuery:l,useGetCurrencyListQuery:o,useGetBaseCurrenciesQuery:s,useGetCurrencyGraphQuery:u}=r;t.d(a,{},{oW:r,vS:u,vj:n,vt:l})},30392(e,a,t){var i,r,n=t(74848),l=t(96540),o=t(8814),s=t(80545),u=t(55400),m=t(77500),c=t(63328),d=t(31237),p=t(68033);let{baseUrl:g,siteNameSlug:h,description:y}=c.A,x=l.memo(e=>{let a,{title:t,description:l=y,image:m,type:c,noindex:x,canonicalUrl:v,children:b}=e,f=(0,o.d4)(e=>e.user),{previousLocation:I}=(0,o.d4)(e=>e.history),w="/teemat/osakesaastotili-tulee"===d.A.location.pathname?"https://www.kauppalehti.fi/aiheet/osakesaastotili":v||(a=d.A.location.pathname,g+(0,u.A)(a,"/"));return(0,n.jsxs)(s.mg,{children:[t&&(0,n.jsx)("title",{children:t}),t&&(0,n.jsx)("meta",{property:"og:title",content:t}),t&&(0,n.jsx)("meta",{name:"twitter:title",content:t}),l&&(0,n.jsx)("meta",{name:"description",content:l}),l&&(0,n.jsx)("meta",{property:"og:description",content:l}),l&&(0,n.jsx)("meta",{name:"twitter:description",content:l}),m&&(0,n.jsx)("meta",{name:"twitter:image",content:m}),m&&(0,n.jsx)("meta",{name:"twitter:image",content:m}),c&&(0,n.jsx)("meta",{property:"og:type",content:c}),x?i||(i=(0,n.jsx)("meta",{name:"robots",content:"noindex"})):[(0,n.jsx)("link",{rel:"alternate",href:w,hrefLang:"fi-fi"},"a"),(0,n.jsx)("link",{rel:"canonical",href:w},"c"),(0,n.jsx)("meta",{property:"og:url",content:w},"o")],b&&b,r||(r=(0,n.jsx)("meta",{name:"robots",content:"noarchive"})),(0,n.jsx)("meta",{property:"og:image",content:m??`${g}/static/images/${h}_article_schema_fallback.png`}),(0,n.jsx)("meta",{property:"k5a:login",content:f.loggedIn?"1":"0"}),(0,n.jsx)("meta",{property:"k5a:subscriber",content:(0,p.A)(f.credentials)?"1":"0"}),(null==I?void 0:I.length)&&(0,n.jsx)("meta",{property:"k5a:referer",content:`${window.location.origin}${I[0].pathname}`})]})});a.A=(0,o.Ng)(e=>({noindex:""!==(0,m.A)(e.metadata.digitalData,"page.pageInfo.onsiteSearchTerm")}))(x)},95770(e,a,t){var i,r=t(74848),n=t(96540),l=t(45560),o=t(22361),s=t(89266),u=t(89362),m=t(22772),c=t(63328),d=t(27922),p=t(38415),g=t(21903),h=t(12190),y=t(8814);let x=(l.Ay.div.withConfig({componentId:"sc-30410f40-0"}))(["width:100%;position:relative;padding-bottom:",";@media ","{max-width:",";margin:0 auto;}@media ","{padding-bottom:",";}"],e=>{let{$isAP:a}=e;return a?o.I8.spacing.large:o.I8.spacing.small},o.I8.mediaquery.max.small,o.I8.size.template["page-wrapper-mobile"],o.I8.mediaquery.max["x-small"],o.I8.spacing["xxx-small"]),v=(l.Ay.div.withConfig({componentId:"sc-30410f40-1"}))(["transform:translate(0);&:after{content:'';background:",";width:100%;height:",";display:inline-block;position:absolute;bottom:0;left:0;}"],o.I8.color.border["2"],o.I8.border["x-small"]),b=(0,l.Ay)(s.A).withConfig({componentId:"sc-30410f40-2"})(["overflow-x:auto;padding-top:",";padding-inline:",";background-color:",";@media ","{padding-inline:",";}@media ","{&&{&:after{width:3rem;}}}"," ",""],o.I8.spacing.medium,"ap"===c.A.siteShortSlug?"0":o.I8.spacing.large,e=>{let{theme:a}=e;return(0,g.b)(`theme1.${a.foundation.theme.context}.color.base.1`)},o.I8.mediaquery.max["x-small"],o.I8.spacing.medium,o.I8.mediaquery.min.small,p.TH,p.EX),f=(0,l.Ay)(d.N_).withConfig({componentId:"sc-30410f40-3"})(["&:focus-visible{outline-offset:calc("," * -1);border-radius:",";}",""],o.I8["outline-offset"].medium,o.I8.shape.sharp,e=>{let{$active:a}=e;return a&&` 2 span[role="tab"] { 3 box-shadow: inset 0 calc(-1 * ${o.I8.border.medium}) 0 0 4 ${o.I8.color.border["6"]}; 5 } 6 `}),I=[{label:"Osakkeet",value:"/porssi/kurssit/XHEL"},{label:"Warrantit",value:"/porssi/kurssit/warrantit/XHEL"},{label:"ETF",value:"/porssi/kurssit/etf"},{label:"Valuutat",value:"/porssi/valuutat"}],w=[{label:"Yleisnäkymä",value:"/porssi"},{label:"Osakkeet",value:"/porssi/kurssit/XHEL"},{label:"Sijoittajan työkalut",value:"/porssi/analyysit"},{label:"Osinkokalenteri",value:"/porssi/osinkokalenteri"},{label:"Rahastot",value:"/porssi/rahastot"},{label:"ETF",value:"/porssi/etf"},{label:"Valuutat",value:"/porssi/valuutat"},{label:"Korot",value:"/porssi/korot/viitekorot"},{label:"Indeksit",value:"/porssi/indeksit"},{label:"Warrantit",value:"/porssi/kurssit/warrantit/XHEL"},{label:"Päätöskurssit",value:"/porssi/paatoskurssit/helsinki"}];a.A=e=>{let{initialActiveLabel:a,displayInAP:t=!1,...l}=e,[o,s]=n.useState(a),m=(0,y.d4)(e=>e.theme.isArvopaperi);if(m&&!t)return null;
6let c=m?I:w;return(0,r.jsx)(x,{$isAP:m,style:{position:"relative"},...l,children:(0,r.jsx)(v,{children:(0,r.jsx)(h.A,{children:(0,r.jsx)(b,{tabType:"default",useWithoutTabPanels:!0,children:c.map(e=>(0,r.jsx)(f,{href:e.value,customComponent:i||(i=(0,r.jsx)(u.Ay,{focusOutline:"medium",focusOutlineOffset:"none",noUnderlineOnHover:!0})),$active:o===e.label,disableRestoreScroll:!0,children:(0,r.jsx)(j,{tabLabel:e.label,tabValue:e.value,tabIndex:-1,onClick:(a,t)=>{t.metaKey||t.ctrlKey||1===t.button||s(e.label)},tagAs:"span"})},e.label))})})})})};var j=(0,l.Ay)(m.A).withConfig({componentId:"sc-30410f40-4"})(["padding-inline:calc( "," + "," );"],o.I8.spacing.small,o.I8.spacing["xxxx-small"])},36096(e,a,t){t.r(a),t.d(a,{default:()=>eu});var i,r,n,l,o,s=t(74848),u=t(96540),m=t(34387),c=t(22361),d=t(22772),p=t(89266),g=t(39276),h=t(45560),y=t(19236),x=t(93347),v=t(30392),b=t(38415),f=t(95770),I=t(50586),w=t(72055),j=t(73505),C=t(26961);let k=["Maa","Yksikkö","Koodi","Kurssi","Muutos","Päivitetty"],A=["9rem","8rem","6rem","7rem","7rem","8rem"],q=["9rem","6.25rem","6rem","6rem","6rem","7rem"],D=[{type:"currency_link"},{type:"text_value"},{type:"text_value"},{type:"number_value",modifiers:{numberFormattingOptions:{maximumFractionDigits:2}}},{type:"percentage_value_with_color",modifiers:{numberFormattingOptions:{maximumFractionDigits:2}}},{type:"date_value",modifiers:{dateOutputFormat:"d.M. HH:mm"}}];var N=()=>{let{data:e}=C.oW.useGetCurrencyListQuery(),{listData:a,extraProperties:t}=u.useMemo(()=>{if(!e||0===e.currencies.length)return{listData:[],extraProperties:[]};let a=[],t=[];return e.currencies.forEach(e=>{a.push([e.quoteCountryName,e.quoteCurrencyName,e.quoteCurrency,(0,w.cR)(e.lastPrice),(0,w.cR)(e.changePercent),e.dateTime]),t.push({symbol:e.symbol,quoteCurrency:e.quoteCurrency})}),{listData:a,extraProperties:t}},[e]);return(0,s.jsx)(j.A,{types:D,headers:k,data:a,extraProperties:t,widths:A,maxWidths:q,rowLimit:1e3,searchLabel:"Hae valuuttaa nimellä",searchField:{index:0,tableId:"currency-list-table"}})},P=t(84388),E=t(58444),S=t(10995),R=t(2274),$=t(3186),F=t(48497),L=t(21881);let V=["USD","SEK","DKK","GBP","CNY","RUB","THB","BRL","CAD","AUD","JPY","NOK"],T=(h.Ay.div.withConfig({componentId:"sc-2682e739-0"}))(["display:flex;flex-direction:row;column-gap:",";row-gap:",";flex-wrap:wrap;"],c.I8.spacing.large,c.I8.spacing.medium),U=(h.Ay.div.withConfig({componentId:"sc-2682e739-1"}))(["@media ","{order:-1;}@media ","{width:100%;> div{width:100%;}}"],c.I8.mediaquery.max.small,c.I8.mediaquery.max["x-small"]),H=(0,h.Ay)(P.A).withConfig({componentId:"sc-2682e739-2"})(["> div:first-child{width:6.5rem;}> div:last-child{width:13.5rem;@media ","{width:100%;}}input{border-top-right-radius:0;border-bottom-right-radius:0;&:focus-visible{z-index:",";}}@media ","{flex-wrap:nowrap;width:100%;}"],c.I8.mediaquery.max["x-small"],c.I8["z-index"].elevate,c.I8.mediaquery.max["x-small"]),M=(h.Ay.p.withConfig({componentId:"sc-2682e739-3"}))(["",";color:",";font-size:",";line-height:",";margin:0;"],e=>{let{theme:a}=e;return a.foundation.media.type.ui.normal},c.I8.color.primary.foreground,c.I8.font.scale["0"],c.I8["line-height"].medium),_=(h.Ay.div.withConfig({componentId:"sc-2682e739-4"}))(["display:grid;grid-template-columns:repeat(4,1fr);row-gap:",";@media ","{grid-template-columns:repeat(2,1fr);}@media ","{grid-template-columns:1fr;}"],c.I8.spacing.large,c.I8.mediaquery.max.small,c.I8.mediaquery.max["x-small"]),B=(h.Ay.div.withConfig({componentId:"sc-2682e739-5"}))(["display:flex;flex-direction:column;gap:",";"],c.I8.spacing["xxx-small"]),K=(h.Ay.span.withConfig({componentId:"sc-2682e739-6"}))(["",";color:",";font-size:",";line-height:",";"],e=>{let{theme:a}=e;return a.foundation.media.type.ui.normal},c.I8.color.primary.foreground,c.I8.font.scale["0"],c.I8["line-height"].medium),O=()=>{let e=new Date;return e.setHours(0,0,0,0),e};var W=()=>{let[e,a]=(0,u.useState)({value:"EUR",label:"EU (EUR)"}),[t,i]=(0,u.useState)({value:"USD",label:"Yhdysvallat (USD)"}),[r,n]=(0,u.useState)(O()),[l,o]=(0,u.useState)(1),{data:m}=C.oW.useGetBaseCurrencyComparisonQuery({currency:e.value,date:(0,$.format)(r,"yyyy-MM-dd")}),{data:d}=C.oW.useGetBaseCurrenciesQuery(),p=(0,F.isBefore)(r,O()),g=(0,u.useMemo)(()=>(null==m?void 0:m.currencies)?m.currencies.map(e=>({value:e.quoteCurrency,label:`${e.quoteCountryName} (${e.quoteCurrency})`,price:p?e.closePrice:e.lastPrice,date:p?e.closeDateTime:e.dateTime,fromName:e.baseCurrencyName,toName:e.quoteCurrencyNamePartitive})):[],[null==m?void 0:m.currencies,p]),h=(null==d?void 0:d.baseCurrencies)?d.baseCurrencies.map(e=>({value:e.symbol,label:`${e.country} (${e.symbol})`})):[],y=g.find(e=>e.value===t.value),x=(0,u.useCallback)(()=>g.length>0?{value:g[0].value,label:g[0].label}:t,[g,t]);(0,u.useEffect)(()=>{!y&&g.length>0&&i(x())},[null==m?void 0:m.currencies,x,y,g.length]);let v=l*((null==y?void 0:y.price)??0),b=(null==y?void 0:y.date)?(0,$.format)(new Date(y.date),"dd.MM. HH:mm"):"",f=(null==y?void 0:y.fromN
6ame)??"",I=(null==y?void 0:y.toName)??"",w=(0,u.useMemo)(()=>(null==m?void 0:m.currencies)?m.currencies.map(e=>({value:e.quoteCurrency,price:p?e.closePrice:e.lastPrice,quoteCountryName:e.quoteCountryName,quoteCurrencyName:e.quoteCurrencyName,quoteCurrencyNamePartitive:e.quoteCurrencyNamePartitive})).filter(e=>V.includes(e.value)):null,[null==m?void 0:m.currencies,p]),j=(e,t)=>{"from"===t&&(a(e),o(1)),"to"===t&&i(e)},k=e=>{o(Number(e.target.value))};return(0,s.jsxs)(P.A,{gap:c.I8.spacing.medium,children:[(0,s.jsxs)(T,{children:[(0,s.jsxs)(H,{direction:"row",gap:c.I8.spacing["xxx-small"],children:[(0,s.jsx)(E.A,{name:"from",placeholder:"Anna määrä",type:"number",value:l,onChange:e=>k(e)}),(0,s.jsx)(S.A,{value:e,onChange:e=>j(e,"from"),options:h,isClearable:!1,customStyles:{control:{borderTopLeftRadius:"0",borderBottomLeftRadius:"0"}}})]}),(0,s.jsx)(U,{children:(0,s.jsx)(R.Ay,{onChange:e=>n(e),clearDate:()=>void 0,locale:"fi",showYearDropdown:!0,scrollableYearDropdown:!0,yearDropdownItemNumber:25,maxDate:new Date,popperPlacement:"bottom",selected:r,dateFormat:"dd.MM.yyyy"})})]}),(0,s.jsxs)(T,{children:[(0,s.jsxs)(H,{direction:"row",gap:c.I8.spacing["xxx-small"],children:[(0,s.jsx)(E.A,{name:"to",placeholder:"Anna määrä",type:"number",value:v,onChange:e=>k(e)}),(0,s.jsx)(S.A,{value:t,onChange:e=>j(e,"to"),options:g,isClearable:!1,customStyles:{control:{borderTopLeftRadius:"0",borderBottomLeftRadius:"0"}}})]}),(0,s.jsxs)(P.A,{gap:0,children:[(0,s.jsx)(M,{children:b}),(0,s.jsxs)(M,{children:[l," ",f," = ",v," ",I]})]})]}),(0,s.jsxs)(P.A,{gap:c.I8.spacing.large,children:[(0,s.jsx)(G,{size:"small, @min.small=medium",level:"h2",useUiFont:!0,children:"Matkavaluuttakurssit"}),(0,s.jsx)(_,{children:null==w?void 0:w.map(e=>{let a=Intl.NumberFormat("fi-FI",{minimumFractionDigits:5,maximumFractionDigits:5}).format(e.price),t=0!==e.price?1/e.price:0,i=Intl.NumberFormat("fi-FI",{minimumFractionDigits:5,maximumFractionDigits:5}).format(t);return(0,s.jsxs)(B,{role:"region","aria-label":e.quoteCountryName,children:[(0,s.jsxs)(X,{direction:"row",gap:c.I8.spacing["xx-small"],alignItems:"center","aria-label":`1 euro on vaihtokurssilla ${a} ${e.quoteCurrencyNamePartitive}`,children:[(0,s.jsx)(z,{countryCode:"eu",height:"22","aria-hidden":"true"})," ",(0,s.jsxs)(K,{children:["1 EUR = ",a," ",e.value]})]}),(0,s.jsxs)(P.A,{direction:"row",gap:c.I8.spacing["xx-small"],alignItems:"center","aria-label":`1 ${e.quoteCurrencyName} on vaihtokurssilla ${i} euroa`,children:[(0,s.jsx)(Y,{countryCode:e.value.slice(0,2).toLowerCase(),height:"22","aria-hidden":"true"})," ",(0,s.jsxs)(K,{children:["1 ",e.value," ="," ",i," EUR"]})]})]},e.value)})})]})]})},z=(0,h.Ay)(L.xJ).withConfig({componentId:"sc-2682e739-7"})(["border-radius:",";border:"," solid ",";"],c.I8.shape.circle,c.I8.border["x-small"],c.I8.color.border["2"]),Y=(0,h.Ay)(L.xJ).withConfig({componentId:"sc-2682e739-8"})(["border-radius:",";border:"," solid ",";"],c.I8.shape.circle,c.I8.border["x-small"],c.I8.color.border["2"]),X=(0,h.Ay)(P.A).withConfig({componentId:"sc-2682e739-9"})(["flex-wrap:nowrap;"]),G=(0,h.Ay)(g.D.Subtitle).withConfig({componentId:"sc-2682e739-10"})(["padding-top:",";@media ","{padding-top:",";}"],c.I8.spacing.medium,c.I8.mediaquery.max["x-small"],c.I8.spacing.small);let J="currencies",Q="calculator",Z={[J]:"/porssi/valuutat",[Q]:"/porssi/valuutat/valuuttamuunnin"},ee={valuutat:{label:"Valuutat",value:J},valuuttamuunnin:{label:"Valuuttamuunnin",value:Q}},ea=(h.I4.p.withConfig({componentId:"sc-6271431b-0"}))(["",";color:",";font-size:",";line-height:",";margin:0 0 "," 0;"],e=>{let{theme:a}=e;return a.foundation.media.type.ui.normal},c.I8.color.primary.foreground,c.I8.font.scale["0"],c.I8["line-height"].medium,c.I8.spacing.large);var et=e=>{let{page:a}=e,[t,m]=(0,u.useState)(ee[a]),c=t.value===Q?"Valuuttamuunnin ja laskuri":"Valuuttakurssit tänään",p=t.value===Q?"Laske valuutan arvo helposti valuuttamuuntimella. Vertaa valuutan arvoa Euroon tai muihin valuuttoihin. Valuuttamuuntimen käyttäminen on maksutonta. Kokeile heti!":"Seuraa valuuttakursseja: Euro, dollari ja muut tärkeimmät valuuttaparit. Päivän valuuttakurssit, graafit ja valuuttalaskuri.";return(0,s.jsxs)(x.f9,{children:[(0,s.jsx)(v.A,{title:c,description:p}),i||(i=(0,s.jsx)(f.A,{initialActiveLabel:"Valuutat",displayInAP:!0})),(0,s.jsxs)(ei,{children:[r||(r=(0,s.jsx)(I.rd,{})),(0,s.jsx)(er,{title:"Valuutat"}),(0,s.jsxs)(en,{initialActiveTab:t,tabType:"default",clickHandler:e=>{m(e);let a=Z[e.value];a&&"u">typeof window&&window.history.pushState({},"",a)},children:[(0,s.jsxs)(d.A,{tabLabel:"Valuutat",tabValue:J,children:[(0,s.jsx)(el,{size:"small, @min.small=medium",level:"h2",useUiFont:!0,children:"Valuutat"}),n||(n=(0,s.jsx)(N,{}))]}),(0,s.jsxs)(d.A,{tabLabel:"Valuuttamuunnin",tabValue:Q,children:[(0,s.jsx)(eo,{size:"small, @min.small=medium",level:"h2",useUiFont:!0,children:"Valuuttamuunnin"}),l||(l=(0,s.jsx)(ea,{children:"Kauppalehden valuuttamuuntimella vertaat helposti suosittujen valuuttojen arvoja euroon ja toisin päin."})),o||(o=(0,s.jsx)(W,{}))]})]})]})]})},ei=(0,h.I4)(x.N8).withConfig({componentId:"sc-6271431b-1"})(["[role='tabpanel']{flex-direction:column;}"]),er=(0,h.I4)(y.A).withConfig({componentId:"sc-6271431b-2"})(["margin-bottom:",";@media ","{> div{flex-direction:row;align-items:center;}}"],c.I8.spacing.medium,c.I8.mediaquery.range.small),en=(0,h.I4)(p.A).withConfig({componentId:"sc-6271431b-3"})(["padding-block:",";overflow-x:auto;"," ",""],c.I8.spacing.small,b.TH,b.EX),el=(0,h.I4)(g.D.Subtitle).withConfig({componentId:"sc-6271431b-4"})(["padding-block:",";@media ","{padding-block:",";}"],c.I8.spacing.medium,c.I8.mediaquery.max["x-small"],c.I8.spacing.small),eo=(0,h.I4)(g.D.Subtitle).withConfig({componentId:"sc-6271431b-5"})(["padding-top:",";@media ","{padding-top:",";}"],c.I8.spacing.medium,c.I8.mediaquery.max["x-small"],c.I8.spacing.small),es=t(86969);async function eu(e){let{store:a,path:t}=e,i=t.includes("valuuttamuunnin")?"valuuttamuunnin":"valuutat";return await Promise.all([a.dispatch((0,es.Pi)(C.oW.endpoints.getCurrencyList.initiate,void 0,void 0,!0)),a.dispatch((0,es.Pi)(C.oW.endpoints.getBaseCurrencies.initiate,void 0,void 0,!0)),a.dispatch((0,es.Pi)(C.oW.endpoints.getBaseCurrencyComparison.initiate,{currency:"EUR",date:(0,$.format)(new Date,"yyyy-MM-dd")},void 0,!0)),a.dispatch((0,m.A)(["porssi","valuutat"],"valuutat","Valuutat | Pörssi","sectionfrontpage"))]),(0,s.jsx)(et,{page:i})}}}]); 7//# sourceMappingURL=currencylistpage.725e8166d6.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.