1"use strict";(globalThis.rspackChunktalent_news_frontend||=[]).push([["2u"],{XeH(e,i,t){var n=t("zz");let r=n.F.injectEndpoints({endpoints:e=>({getExternalInderes:e.query({query:()=>({url:"external/inderes"}),transformErrorResponse:n.k}),getInderesAnalysis:e.query({query:e=>({url:`inderes/analysis/${e}`}),transformErrorResponse:n.k}),getAllInderesAnalyses:e.query({query:()=>({url:"inderes/analysis"}),transformErrorResponse:n.k}),getInderesForecast:e.query({query:e=>({url:`inderes/forecast/${e}`}),transformErrorResponse:n.k})})}),{useGetExternalInderesQuery:o,useGetInderesForecastQuery:a,useGetInderesAnalysisQuery:s,useGetAllInderesAnalysesQuery:l}=r;t.d(i,{},{jD:o,l3:l,lF:r,oP:s,rh:a})},UNy(e,i,t){t.r(i),t.d(i,{FeedItem:()=>et,default:()=>er});var n,r,o,a,s,l,c,d,m,g=t("X"),h=t("u"),p=t("tE"),u=t("cq"),f=t("Xo"),x=t("im"),b=t("Mo"),I=t("Qi"),y=t("ex"),w=t("ge"),A=t("iG"),k=t("zQ"),v=t("Jk"),j=t("WV"),C=t("fR"),z=t("Mr"),$=t("j2"),q=t("nS"),D=t("YP"),T=t("w0"),E=t("OU"),H=t("xR");let S=(0,p.i7)(["50%{opacity:",";}"],f.I8.opacity["40"]),F=(0,p.i7)(["50%{-webkit-transform:scale(1.4,1.4);}"]),M=(p.Ay.div.withConfig({componentId:"sc-ba3a40b6-0"}))(["position:relative;"]),R=(p.Ay.div.withConfig({componentId:"sc-ba3a40b6-1"}))(["position:relative;background:",";width:0.375rem;height:0.375rem;border-radius:50%;@media (prefers-reduced-motion:no-preference){animation:"," 2s ease-out;animation-iteration-count:infinite;}"],f.I8.color.status.alert.foreground,F),U=(p.Ay.div.withConfig({componentId:"sc-ba3a40b6-2"}))(["position:absolute;left:-0.3125rem;top:-0.3125rem;border-radius:50%;height:1rem;width:1rem;opacity:",";background:",";@media (prefers-reduced-motion:no-preference){animation:"," 2s ease-out;animation-iteration-count:infinite;}"],f.I8.opacity["20"],f.I8.color.status.alert.foreground,S);var P=t("j5"),X=t("pG"),_=t("Zp"),G=t("HQ"),O=t("XeH");let Q=(p.Ay.div.withConfig({componentId:"sc-1b9a5e4c-0"}))(["position:relative;display:flex;flex-shrink:0;flex-direction:column;width:100%;background:",";padding-top:",";min-height:",";@media ","{max-width:calc(100vw - ",");}@media ","{max-width:72.125rem;}"," @media ","{padding-top:",";}@media ","{width:calc(100% - ",");}"],e=>{let{theme:i}=e;return(0,H.b)(`theme1.${i.foundation.theme.context}.color.base.3`)},f.I8.spacing.medium,e=>{let{$onlyOneFeed:i}=e;return i?"6.5rem":"9rem"},f.I8.mediaquery.min.medium,f.I8.spacing["xx-large"],f.I8.mediaquery.min.large,e=>{let{$showGradient:i}=e;return i&&(0,p.AH)(["&:after{position:absolute;bottom ",";right:0;bottom:",";content:'';width:",";height:4.9375rem;background:linear-gradient(90deg,rgba(236,236,245,0.00) 0%,#ECECF5 100%);pointer-events:none;html.theme-light &{background:linear-gradient(90deg,rgba(236,236,245,0.00) 0%,#ECECF5 100%);}html.theme-dark &{background:linear-gradient(90deg,rgba(41,46,63,0.00) 0%,#292E3F 100%);}@media (prefers-color-scheme:dark){&{background:linear-gradient(90deg,rgba(41,46,63,0.00) 0%,#292E3F 100%);}}@media ","{bottom:calc("," + ",");}@media ","{width:",";}}"],f.I8.spacing.small,f.I8.spacing.small,f.I8.size["xxx-large"],f.I8.mediaquery.min.medium,f.I8.spacing.medium,f.I8.size["x-small"],f.I8.mediaquery.max["x-small"],f.I8.size["x-large"])},f.I8.mediaquery.max.small,f.I8.spacing.small,f.I8.mediaquery.max["x-small"],f.I8.spacing["x-large"]),W=(p.Ay.div.withConfig({componentId:"sc-1b9a5e4c-1"}))(["display:flex;flex-shrink:0;gap:",";@media ","{gap:",";}"],f.I8.spacing.small,f.I8.mediaquery.min.medium,f.I8.spacing.medium),B=(0,p.Ay)(x.A).withConfig({componentId:"sc-1b9a5e4c-2"})(["position:relative;min-width:0;"," ",""],e=>{let{$timestampHidden:i}=e;return i&&(0,p.AH)(["justify-content:center;","{line-height:",";}"],L,f.I8["line-height"].small)},e=>{let{$onStockPage:i}=e;return i?(0,p.AH)(["background:",";flex:1;min-width:0;"],(0,H.b)("theme1.kl.color.base.3")):(0,p.AH)(["&:after{content:'';border-radius:"," 0 0 ",";background:",";opacity:",";position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;}"],f.I8.shape.rounded,f.I8.shape.rounded,f.I8.color.primary.foreground,f.I8.opacity["6"])}),J=(p.Ay.div.withConfig({componentId:"sc-1b9a5e4c-3"}))(["height:fit-content;flex-shrink:0;"]),L=(p.Ay.h3.withConfig({componentId:"sc-1b9a5e4c-4"}))(["",";line-height:",";font-size:",";display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;margin:0;overflow:hidden;text-overflow:ellipsis;"],e=>{let{theme:i}=e;return i.foundation.media.type.ui.semi},f.I8["line-height"].medium,f.I8.font.scale["0"]),K=(p.Ay.div.withConfig({componentId:"sc-1b9a5e4c-5"}))(["display:flex;align-items:center;gap:",";"],f.I8.spacing["xxx-small"]),N=(p.Ay.time.withConfig({componentId:"sc-1b9a5e4c-6"}))(["",";font-size:",";color:",";line-height:",";"],e=>{let{theme:i}=e;return i.foundation.media.type.ui.normal},f.I8.font.scale["-2"],f.I8.color.primary.foreground,f.I8["line-height"].medium),V=(0,p.Ay)(b.Ay).withConfig({componentId:"sc-1b9a5e4c-7"})(["display:flex;flex-shrink:0;"," &:focus-visible{outline-offset:0;}>
1 span{display:flex;","}"],e=>{let{$onStockPage:i}=e;return i&&(0,p.AH)(["width:100%;"])},e=>{let{$onStockPage:i}=e;return i&&(0,p.AH)(["width:100%;"])}),Y=(p.Ay.div.withConfig({componentId:"sc-1b9a5e4c-8"}))(["position:relative;height:57px;"]),Z=(p.Ay.img.withConfig({componentId:"sc-1b9a5e4c-9"}))(["border-radius:0 "," "," 0;"],f.I8.shape.rounded,f.I8.shape.rounded),ee=(p.Ay.div.withConfig({componentId:"sc-1b9a5e4c-10"}))(["position:absolute;border-radius:0 "," "," 0;top:0;left:0;width:100%;height:100%;background:linear-gradient( 180deg,rgba(41,46,63,0) 19.27%,rgba(41,46,63,0.6) 60.94% );"],f.I8.shape.rounded,f.I8.shape.rounded),ei=e=>{let{feed:i,title:t}=e;return(0,g.jsxs)(J,{children:[(0,g.jsx)(ea,{text:t,textColor:"core.color.primary.foreground",icon:"Meneillään"===t?(0,g.jsx)(eo,{}):(0,g.jsx)(I.default,{color:"Seuraavana"===t?"core.color.status.success.3":"core.color.primary.static.3",size:"core.size.icon.x-small"}),$_css:"Meneillään"===t?`0 ${f.I8.spacing["xx-small"]}`:"0"}),(0,g.jsx)(eg,{direction:"row",gap:`${f.I8.spacing["x-small"]}, @min.medium=${f.I8.spacing.small}`,children:i.map(e=>(0,g.jsx)(et,{feed:e,showImage:"Meneillään"===t},e.videoId))})]})},et=e=>{let{feed:i,showImage:t,onStockPage:n,hideTimestamp:r=!1,...s}=e,l=i.videoTitle.split(" ").map(e=>/[0-9]+[.:][0-9]+|\bklo\b|\bma\b|\bti\b|\bke\b|\bto\b|\bpe\b|\bla\b|\bsu\b/.test(e)?"":e).join(" "),c=(0,C.format)(new Date(i.startTime),"d.M. 'klo' HH:mm",{locale:E.fi}),d=n?"#inderesfeed":`porssi/porssikurssit/osake/${null==i?void 0:i.marketplaceSymbol[0]}/${null==i?void 0:i.symbol[0]}#inderesfeed`,m=(0,_.oU)("176x99",i.coverImage);return(0,g.jsxs)(V,{noUnderlineOnHover:!0,href:d,$onStockPage:n,...s,children:[(0,g.jsxs)(B,{gap:"0",padding:`${f.I8.spacing["xx-small"]} ${f.I8.spacing.small}`,$onStockPage:n,$timestampHidden:r,children:[(0,g.jsx)(L,{children:l}),!r&&(0,g.jsx)(K,{children:(0,g.jsx)(N,{children:c.length>=2?`${c[0].toUpperCase()}${c[1].toUpperCase()}${c.slice(2)}`:c})})]}),t&&(0,g.jsxs)(Y,{children:[(0,g.jsx)(Z,{src:m,alt:i.videoTitle,width:"101px",height:"57px"}),o||(o=(0,g.jsx)(ee,{})),a||(a=(0,g.jsx)(ep,{color:"core.color.primary.static.foreground-inverse",size:"core.size.
1icon.large"}))]})]})},en=(e,i)=>{let t=new Date(e.startTime),n=new Date(i.startTime);return t.getTime()-n.getTime()};var er=e=>{let{hideAllFeedsButton:i,...t}=e,[n,r]=(0,h.useState)(!1),[o,a]=(0,h.useState)(!1),p=(0,h.useRef)(null),{data:x}=(0,O.jD)(),I=()=>{p.current&&a(p.current.scrollWidth>Math.ceil(p.current.getBoundingClientRect().width))},A=(0,u.A)(I,200);if((0,h.useEffect)(()=>(I(),window.addEventListener("resize",A),()=>window.removeEventListener("resize",A)),[A]),!x)return null;let k=x.filter(e=>(0,z.isSameDay)(new Date(e.startTime),new Date)).sort(en);if(!k.length)return null;let v=k.filter(e=>(0,$.isBefore)((0,q.addHours)(new Date(e.startTime),1),new Date)),j=k.filter(e=>(0,D.isAfter)(new Date(e.startTime),new Date)),C=k.filter(e=>0===(0,T.M)(new Date(e.startTime),new Date)&&(0,D.isAfter)(new Date,new Date(e.startTime))),E=1==[...v,...j,...C].length;return(0,g.jsxs)(Q,{$onlyOneFeed:E,$showGradient:o&&!n,...t,children:[!E&&(0,g.jsx)(eu,{size:"x-small, @min.medium=small",children:"Tuloslähetykset"}),(0,g.jsx)(G.A,{ref:p,children:(0,g.jsxs)(eh,{direction:"row",gap:`${f.I8.spacing.small}, @min.medium=${f.I8.spacing.medium}`,onScroll:e=>{var i;let{scrollLeft:t,offsetWidth:o}=e.currentTarget;t+o+1>=(null==(i=e.currentTarget)?void 0:i.scrollWidth)?r(!0):n&&r(!1)},children:[(0,g.jsxs)(W,{children:[E&&(s||(s=(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(ef,{size:"small",children:"Tuloslähetykset"}),(0,g.jsx)(es,{vertical:!0,thickness:"core.size.line.thin",color:"core.color.border.1"})]}))),C.length>0&&(0,g.jsx)(ei,{feed:C,title:"Meneillään"}),C.length>0&&(j.length>0||v.length>0)&&(l||(l=(0,g.jsx)(el,{vertical:!0,thickness:"core.size.line.thin",color:"core.color.border.1"}))),j.length>0&&(0,g.jsx)(ei,{feed:j,title:"Seuraavana"}),j.length>0&&v.length>0&&(c||(c=(0,g.jsx)(ec,{vertical:!0,thickness:"core.size.line.thin",color:"core.color.border.1"}))),v.length>0&&(0,g.jsx)(ei,{feed:v,title:"Tallenteet"}),(0,g.jsx)(ed,{vertical:!0,thickness:"core.size.line.thin",color:"core.color.border.1"})]}),!i&&(0,g.jsx)(em,{href:"/kalenteri",customComponent:d||(d=(0,g.jsx)(b.Ay,{})),children:m||(m=(0,g.jsx)(y.A,{icon:(0,g.jsx)(w.A,{size:"core.size.
1icon.medium"}),iconPositionRight:!0,tagAs:"div",children:"Kaikki lähetykset"}))})]})})]})},eo=(0,p.Ay)(e=>(0,g.jsxs)(M,{...e,children:[n||(n=(0,g.jsx)(R,{})),r||(r=(0,g.jsx)(U,{}))]})).withConfig({componentId:"sc-1b9a5e4c-11"})(["margin-right:",";"],f.I8.spacing["xx-small"]),ea=(0,p.Ay)(A.A).withConfig({componentId:"sc-1b9a5e4c-12"})(["display:flex;height:",";margin-bottom:",";padding:",";"],f.I8.size.icon.medium,f.I8.spacing["xx-small"],e=>e.$_css),es=(0,p.Ay)(k.A).withConfig({componentId:"sc-1b9a5e4c-13"})(["margin:0;height:4.9375rem;"]),el=(0,p.Ay)(k.A).withConfig({componentId:"sc-1b9a5e4c-14"})(["margin:0;height:4.9375rem;"]),ec=(0,p.Ay)(k.A).withConfig({componentId:"sc-1b9a5e4c-15"})(["margin:0;height:4.9375rem;"]),ed=(0,p.Ay)(k.A).withConfig({componentId:"sc-1b9a5e4c-16"})(["margin:0;height:4.9375rem;@media ","{display:none;}"],f.I8.mediaquery.min.medium),em=(0,p.Ay)(X.Ay).withConfig({componentId:"sc-1b9a5e4c-17"})(["display:flex;flex-shrink:0;height:fit-content;align-self:end;margin-bottom:",";"],f.I8.spacing["xx-small"]),eg=(0,p.Ay)(x.A).withConfig({componentId:"sc-1b9a5e4c-18"})(["flex-wrap:nowrap;"]),eh=(0,p.Ay)(x.A).withConfig({componentId:"sc-1b9a5e4c-19"})(["flex-wrap:nowrap;overflow-x:auto;justify-content:space-between;padding:0 "," ",";"," @media ","{padding:0 "," ",";}"],f.I8.spacing.medium,f.I8.spacing.medium,P.J1,f.I8.mediaquery.max.small,f.I8.spacing.small,f.I8.spacing.small),ep=(0,p.Ay)(v.A).withConfig({componentId:"sc-1b9a5e4c-20"})(["position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);"]),eu=(0,p.Ay)(j.D.Subtitle).withConfig({componentId:"sc-1b9a5e4c-21"})(["margin-bottom:",";padding-inline:",";"],f.I8.spacing.medium,f.I8.spacing.medium),ef=(0,p.Ay)(j.D.Subtitle).withConfig({componentId:"sc-1b9a5e4c-22"})(["align-self:center;width:min-content;"])}}]); 2//# sourceMappingURL=2u.67e3de0814.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.