PageSourceSearch

https://www.kauppalehti.fi/static/static/js/async/verokone.5cc45a4318.js

js kauppalehti.fi collected 2026-09-24 15:29:41 UTC 6,140 bytes, 4 lines download raw bytes

1"use strict";(globalThis.rspackChunktalent_news_frontend||=[]).push([[2177],{78105(__unused_rspack_module,__webpack_exports__,__webpack_require__){var react_jsx_runtime__rspack_import_0=__webpack_require__(74848),react__rspack_import_1=__webpack_require__(96540),styled_components__rspack_import_2=__webpack_require__(45560);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 n=i.call(e,t||"default");if("object"!=typeof n)return n;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},57414(e,t,i){var n,o=i(74848),r=i(96540),a=i(8814),s=i(45560),d=i(22361),l=i(31237),c=i(53392),p=i(50586),u=i(78105),h=i(96462);let m=[],v=(s.Ay.main.withConfig({componentId:"sc-7f7d13b1-0"}))(["color:",";",";@media ","{margin:0 auto;}@media ","{padding:0 ",";}"],d.I8.color.primary["5"],e=>{let{theme:t}=e;return t.foundation.media.type.ui.medium},d.I8.mediaquery.max.small,d.I8.mediaquery.min.small,d.I8.spacing.large),f=(s.Ay.section.withConfig({componentId:"sc-7f7d13b1-1"}))(["padding-top:",";"],d.I8.spacing["x-large"]);t.A=e=>{let{html:t,id:i,genericPageHead:s}=e,h=(0,a.d4)(e=>{var t,i;return(null==(i=e.topic)||null==(t=i.vaalit)?void 0:t.items)??m}),y=(0,a.d4)(e=>{var t;return(null==(t=e.history.location)?void 0:t.pathname)||""}),w=r.useRef(!1),x=r.useRef(l.A.location.hash),b=r.useRef(null),A=r.useCallback(()=>{requestAnimationFrame(()=>{setTimeout(()=>{var e;let t=null==(e=b.current)?void 0:e.getBoundingClientRect().top;if(void 0!==t){let e=window.pageYOffset+t-20;window.scrollTo({top:e,behavior:"smooth"})}},100)})},[]);r.useEffect(()=>{"/vaalikone2025"===y&&(w.current=!0,l.A.location.hash!==x.current&&A(),x.current=l.A.location.hash)},[y,l.A.location.hash,A]);let I=r.useMemo(()=>"/vaalikone2025"!==y||!w.current,[y]);return r.useEffect(()=>{let e=e=>{var t;(null==(t=e.data)?void 0:t.type)==="hashchange"&&A()};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[A]),(0,o.jsx)(c.A,{children:(0,o.jsxs)(v,{id:"skyscraper-height-div",children:[s,(0,o.jsxs)(f,{children:[(0,o.jsx)("div",{ref:b,children:(0,o.jsx)(u.A,{html:t,id:i,loadEveryTimePageIsVisited:I})}),(0,o.jsx)(g,{teaserList:h.slice(0,6),title:"Vaalit",$_css:`${d.I8.spacing["x-large"]} 0`})]}),n||(n=(0,o.jsx)(p.F0,{postContent:!0,skipPlaceholder:!0}))]})})};var g=(0,s.Ay)(h.default).withConfig({componentId:"sc-7f7d13b1-2"})(e=>({margin:e.$_css}))},13705(e,t,i){var n,o=i(74848);i(96540);
1var r=i(45560),a=i(52745);let s=(0,r.i7)(["0%{opacity:.2;}20%{opacity:1;}100%{opacity:.2;}"]),d=(0,r.i7)(["0%{opacity:0}100%{opacity:0.8}"]),l=(r.Ay.div.withConfig({componentId:"sc-20be0b5c-0"}))(["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;animation-delay:","s;"],a.Ay.colors.main,s,e=>{let{$index:t}=e;return .2*t}),c=(r.Ay.div.withConfig({componentId:"sc-20be0b5c-1"}))(["text-align:center;padding:20px 0;"]),p=(r.Ay.div.withConfig({componentId:"sc-20be0b5c-2"}))(["position:fixed;top:40vh;left:0;right:0;text-align:center;"]),u=(r.Ay.div.withConfig({componentId:"sc-20be0b5c-3"}))(["background:#fff;opacity:0.8;position:absolute;width:100%;height:100%;z-index:100;animation:"," 0.15s;"],d),h=[0,1,2,3,4].map(e=>(0,o.jsx)(l,{$index:e},e));t.A=e=>{let{overlay:t,...i}=e;return t?(0,o.jsx)(u,{...i,children:n||(n=(0,o.jsx)(p,{children:h}))}):(0,o.jsx)(c,{...i,children:h})}},53392(e,t,i){var n,o=i(74848);i(96540);var r=i(8814),a=i(45560),s=i(72226),d=i(13705);let l=(a.Ay.div.withConfig({componentId:"sc-3d4872c6-0"}))(["position:relative;padding:",";",";"],e=>e.padding?e.padding:"0.9375rem 0",(0,s.A)("tablet")`
2        padding-top: 0;
3    `);t.A=e=>{let{children:t,padding:i,className:a}=e,s=(0,r.d4)(e=>e.ui.loading);return(0,o.jsxs)(l,{padding:i,className:a,children:[s&&(n||(n=(0,o.jsx)(d.A,{overlay:!0}))),t]})}},12854(e,t,i){i.r(t);var n=i(74848);i(96540);var o=i(63328),r=i(34387),a=i(57414);async function s(e){let{store:t}=e;await Promise.all([t.dispatch((0,r.A)("verokone","verokone","verokone","otherpage"))]);let i=`<div id="il-verot-front" data-dark-theme-enabled="true"><script type="text/javascript" src="${o.A.verokoneUrl}"></script></div>`;return(0,n.jsx)(a.A,{html:i,id:"verokone"})}i.d(t,{default:()=>s})}}]);
4//# sourceMappingURL=verokone.5cc45a4318.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.