1"use strict";(globalThis.rspackChunktalent_news_frontend||=[]).push([["d4"],{Hw(__unused_rspack_module,__webpack_exports__,__webpack_require__){var react_jsx_runtime__rspack_import_0=__webpack_require__("X"),react__rspack_import_1=__webpack_require__("u"),styled_components__rspack_import_2=__webpack_require__("tE");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},Qz(e,t,i){i.d(t,{A:()=>$});var n,o,r,a=i("X"),s=i("u"),l=i("XE"),c=i("tE"),d=i("Tu"),p=i("fq");let u=(0,c.i7)(["0%{opacity:.2;}20%{opacity:1;}100%{opacity:.2;}"]),h=(0,c.i7)(["0%{opacity:0}100%{opacity:0.8}"]),m=(c.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;"],p.Ay.colors.main,u,e=>{let{$index:t}=e;return .2*t}),v=(c.Ay.div.withConfig({componentId:"sc-20be0b5c-1"}))(["text-align:center;padding:20px 0;"]),f=(c.Ay.div.withConfig({componentId:"sc-20be0b5c-2"}))(["position:fixed;top:40vh;left:0;right:0;text-align:center;"]),g=(c.Ay.div.withConfig({componentId:"sc-20be0b5c-3"}))(["background:#fff;opacity:0.8;position:absolute;width:100%;height:100%;z-index:100;animation:"," 0.15s;"],h),y=[0,1,2,3,4].map(e=>(0,a.jsx)(m,{$index:e},e));var w=e=>{let{overlay:t,...i}=e;return t?(0,a.jsx)(g,{...i,children:n||(n=(0,a.jsx)(f,{children:y}))}):(0,a.jsx)(v,{...i,children:y})};let x=(c.Ay.div.withConfig({componentId:"sc-f4eed479-0"}))(["position:relative;padding:0.9375rem 0;",";"],(0,d.A)("tablet")` 2 padding-top: 0; 3 `);var b=(0,l.Ng)(e=>({loading:e.ui.loading}))(e=>{let{loading:t,children:i}=e;return(0,a.jsxs)(x,{children:[t&&(o||(o=(0,a.jsx)(w,{overlay:!0}))),i]})}),A=i("Hw"),I=i("Xi"),j=i("Xo"),k=i("Rf"),C=i("lW");let E=(c.Ay.main.withConfig({componentId:"sc-cf4b58c7-0"}))(["color:",";",";@media ","{margin:0 auto;}@media ","{padding:0 ",";}"],j.I8.color.primary["5"],e=>{let{theme:t}=e;return t.foundation.media.type.ui.medium},j.I8.mediaquery.max.small,j.I8.mediaquery.min.small,j.I8.spacing.large),T=(c.Ay.section.withConfig({componentId:"sc-cf4b58c7-1"}))(["padding-top:",";"],j.I8.spacing["x-large"]);var $=(0,l.Ng)(e=>{var t,i;return{teasers:(null==(i=e.topic)||null==(t=i.vaalit)?void 0:t.items)||[]}})(e=>{let{teasers:t,html:i,id:n,genericPageHead:o}=e,c=(0,l.d4)(e=>{var t;return(null==(t=e.history.location)?void 0:t.pathname)||""}),d=s.useRef(!1),p=s.useRef(C.A.location.hash),u=s.useRef(null),h=s.useCallback(()=>{requestAnimationFrame(()=>{setTimeout(()=>{var e;let t=null==(e=u.current)?void 0:e.getBoundingClientRect().top;if(void 0!==t){let e=window.pageYOffset+t-20;window.scrollTo({top:e,behavior:"smooth"})}},100)})},[]);s.useEffect(()=>{"/vaalikone2025"===c&&(d.current=!0,C.A.location.hash!==p.current&&h(),p.current=C.A.location.hash)},[c,C.A.location.hash,h]);let m=s.useMemo(()=>"/vaalikone2025"!==c||!d.current,[c]);return s.useEffect(()=>{let e=e=>{var t;(null==(t=e.data)?void 0:t.type)==="hashchange"&&h()};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[h]),(0,a.jsx)(b,{children:(0,a.jsxs)(E,{id:"skyscraper-height-div",children:[o,(0,a.jsxs)(T,{children:[(0,a.jsx)("div",{ref:u,children:(0,a.jsx)(A.A,{html:i,id:n,loadEveryTimePageIsVisited:m})}),(0,a.jsx)(P,{teaserList:t.slice(0,6),title:"Vaalit",$_css:`${j.I8.spacing["x-large"]} 0`}),r||(r=(0,a.jsx)(I.F0,{postContent:!0,skipPlaceholder:!0}))]})]})})}),P=(0,c.Ay)(k.A).withConfig({componentId:"sc-cf4b58c7-2"})(e=>({margin:e.$_css}))},JK(e,t,i){i.r(t);var n=i("X");i("u");var o=i("X4"),r=i("k4"),a=i("Qz");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"><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.8672f813d1.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.