PageSourceSearch

https://www.uusisuomi.fi/static/static/js/async/electionmachine.66744de262.js

js uusisuomi.fi collected 2026-10-01 11:38:43 UTC 9,816 bytes, 4 lines download raw bytes

1"use strict";(globalThis.rspackChunktalent_news_frontend||=[]).push([["lg"],{XX(e,t,i){var n=i("X4"),a=i("DG"),r=i("WR");let{mediaShortSlugs:o,apiRoot:s}=n.A;t.A=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15;return(n,l,c)=>{let d=l();return((e,t,i,n)=>{if((0,a.b0)(t))return!1;let r=e.topic[t];return!r||!r.lastUpdated||r.lastUpdated+6e4<Date.now()||r.items.length<i+n})(d,e,t,i)?c.get(`${s}pages/v2/listingpage/topic/${o}/${e}/${t}/${i}`).then(i=>i.topicList.items.length||"vain-tilaajille"===e?(n((0===t?r.TJ:r.tj)((0,r.CE)({slug:e,data:i}))),Promise.resolve(i.topicList)):Promise.reject({status:404})).catch(e=>Promise.reject(e)):Promise.resolve(d.topic[e])}}},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},ZN(e,t,i){var n,a,r=i("X"),o=i("u"),s=i("XE"),l=i("uW"),c=i("exx"),d=i("Km"),p=i("X4"),u=i("lW"),m=i("kK");let{baseUrl:f,siteNameSlug:h,description:g}=p.A,v=o.memo(e=>{let t,{title:i,description:o=g,image:d,type:p,noindex:v,canonicalUrl:x,children:y}=e,A=(0,s.d4)(e=>e.user),{previousLocation:j}=(0,s.d4)(e=>e.history),w="/teemat/osakesaastotili-tulee"===u.A.location.pathname?"https://www.kauppalehti.fi/aiheet/osakesaastotili":x||(t=u.A.location.pathname,f+(0,c.A)(t,"/"));return(0,r.jsxs)(l.mg,{children:[i&&(0,r.jsx)("title",{children:i}),i&&(0,r.jsx)("meta",{property:"og:title",content:i}),i&&(0,r.jsx)("meta",{name:"twitter:title",content:i}),o&&(0,r.jsx)("meta",{name:"description",content:o}),o&&(0,r.jsx)("meta",{property:"og:description",content:o}),o&&(0,r.jsx)("meta",{name:"twitter:description",content:o}),d&&(0,r.jsx)("meta",{name:"twitter:image",content:d}),d&&(0,r.jsx)("meta",{name:"twitter:image",content:d}),p&&(0,r.jsx)("meta",{property:"og:type",content:p}),v?n||(n=(0,r.jsx)("meta",{name:"robots",content:"noindex"})):[(0,r.jsx)("link",{rel:"alternate",href:w,hrefLang:"fi-fi"},"a"),(0,r.jsx)("link",{rel:"canonical",href:w},"c"),(0,r.jsx)("meta",{property:"og:url",content:w},"o")],y&&y,a||(a=(0,r.jsx)("meta",{name:"robots",content:"noarchive"})),(0,r.jsx)("meta",{property:"og:image",content:d??`${f}/static/images/${h}_article_schema_fallback.png`}),(0,r.jsx)("meta",{property:"k5a:login",content:A.loggedIn?"1":"0"}),(0,r.jsx)("meta",{property:"k5a:subscriber",content:(0,m.A)(A.credentials)?"1":"0"}),(null==j?void 0:j.length)&&(0,r.jsx)("meta",{property:"k5a:referer",content:`${window.location.origin}${j[0].pathname}`})]})});t.A=(0,s.Ng)(e=>({noindex:""!==(0,d.A)(e.metadata.digitalData,"page.pageInfo.onsiteSearchTerm")}))(v)},Qz(e,t,i){i.d(t,{A:()=>X});var n,a,r,o=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;}"]),m=(0,c.i7)(["0%{opacity:0}
1100%{opacity:0.8}"]),f=(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}),h=(c.Ay.div.withConfig({componentId:"sc-20be0b5c-1"}))(["text-align:center;padding:20px 0;"]),g=(c.Ay.div.withConfig({componentId:"sc-20be0b5c-2"}))(["position:fixed;top:40vh;left:0;right:0;text-align:center;"]),v=(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;"],m),x=[0,1,2,3,4].map(e=>(0,o.jsx)(f,{$index:e},e));var y=e=>{let{overlay:t,...i}=e;return t?(0,o.jsx)(v,{...i,children:n||(n=(0,o.jsx)(g,{children:x}))}):(0,o.jsx)(h,{...i,children:x})};let A=(c.Ay.div.withConfig({componentId:"sc-f4eed479-0"}))(["position:relative;padding:0.9375rem 0;",";"],(0,d.A)("tablet")`
2        padding-top: 0;
3    `);var j=(0,l.Ng)(e=>({loading:e.ui.loading}))(e=>{let{loading:t,children:i}=e;return(0,o.jsxs)(A,{children:[t&&(a||(a=(0,o.jsx)(y,{overlay:!0}))),i]})}),w=i("Hw"),b=i("Xi"),k=i("Xo"),I=i("Rf"),E=i("lW");let C=(c.Ay.main.withConfig({componentId:"sc-cf4b58c7-0"}))(["color:",";",";@media ","{margin:0 auto;}@media ","{padding:0 ",";}"],k.I8.color.primary["5"],e=>{let{theme:t}=e;return t.foundation.media.type.ui.medium},k.I8.mediaquery.max.small,k.I8.mediaquery.min.small,k.I8.spacing.large),$=(c.Ay.section.withConfig({componentId:"sc-cf4b58c7-1"}))(["padding-top:",";"],k.I8.spacing["x-large"]);var X=(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:a}=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(E.A.location.hash),u=s.useRef(null),m=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,E.A.location.hash!==p.current&&m(),p.current=E.A.location.hash)},[c,E.A.location.hash,m]);let f=s.useMemo(()=>"/vaalikone2025"!==c||!d.current,[c]);return s.useEffect(()=>{let e=e=>{var t;(null==(t=e.data)?void 0:t.type)==="hashchange"&&m()};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[m]),(0,o.jsx)(j,{children:(0,o.jsxs)(C,{id:"skyscraper-height-div",children:[a,(0,o.jsxs)($,{children:[(0,o.jsx)("div",{ref:u,children:(0,o.jsx)(w.A,{html:i,id:n,loadEveryTimePageIsVisited:f})}),(0,o.jsx)(P,{teaserList:t.slice(0,6),title:"Vaalit",$_css:`${k.I8.spacing["x-large"]} 0`}),r||(r=(0,o.jsx)(b.F0,{postContent:!0,skipPlaceholder:!0}))]})]})})}),P=(0,c.Ay)(I.A).withConfig({componentId:"sc-cf4b58c7-2"})(e=>({margin:e.$_css}))},GF(e,t,i){i.r(t);var n=i("X");i("u");var a=i("X4"),r=i("Qz"),o=i("k4"),s=i("VT"),l=i("EJ"),c=i("XX"),d=i("ZN");async function p(e){let{store:t}=e;await Promise.all([t.dispatch((0,o.A)("vaalit","vaalikone","vaalikone","otherpage"))]),await (0,s.it)([(0,c.A)("vaalit",0,24)].filter(Boolean).map(e=>t.dispatch(e).catch(l.A)));let i=`<div id="alma-vaalikone-app" data-is-alma="true" data-enable-theme="true"><script async type="text/javascript" src=${a.A.vaalikone.url}><\/script></div>`;return(0,n.jsx)(r.A,{html:i,id:"vaalikone",genericPageHead:(0,n.jsx)(d.A,{title:a.A.vaalikone.metaHeading,description:a.A.vaalikone.metaDescription})})}i.d(t,{default:()=>p})},yQ9(e,t,i){i.d(t,{A:()=>a});var n=function(e,t,i){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(i=i>a?a:i)<0&&(i+=a),a=t>i?0:i-t>>>0,t>>>=0;for(var r=Array(a);++n<a;)r[n]=e[n+t];return r},a=function(e,t,i){var a=e.length;return i=void 0===i?a:i,!t&&i>=a?e:n(e,t,i)}},jLt(e,t){var i=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.A=function(e){return i.test(e)}},Us(e,t,i){i.d(t,{A:()=>f});var n=i("jLt"),a="\\ud800-\\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",s="[^"+a+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",d="(?:"+r+"|"+o+")?",p="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[s,l,c].join("|")+")"+p+d+")*",m=RegExp(o+"(?="+o+")|"+("(?:"+[s+r+"?",r,l,c,"["+a+"]"].join("|"))+")"+(p+d+u),"g"),f=function(e){return(0,n.A)(e)?e.match(m)||[]:e.split("")}},exx(e,t,i){i.d(t,{A:()=>d});var n=i("MJ"),a=i("yQ9"),r=i("Ho"),o=function(e,t){for(var i=e.length;i--&&(0,r.A)(t,e[i],0)>-1;);return i}
3,s=i("Us"),l=i("n4"),c=i("QP"),d=function(e,t,i){if((e=(0,l.A)(e))&&(i||void 0===t))return e.slice(0,(0,c.A)(e)+1);if(!e||!(t=(0,n.A)(t)))return e;var r=(0,s.A)(e),d=o(r,(0,s.A)(t))+1;return(0,a.A)(r,0,d).join("")}}}]);
4//# sourceMappingURL=electionmachine.66744de262.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.