1(self.webpackChunk=self.webpackChunk||[]).push([[9183],{7253(e,t,a){var n;n=e=>(()=>{var t={540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},1601:e=>{e.exports=function(e){return e[1]}},5056:(e,t,a)=>{e.exports=function(e){var t=a.nc;t&&e.setAttribute("nonce",t)}},5072:e=>{var t=[];function a(e){for(var a=-1,n=0;n<t.length;n++)if(t[n].identifier===e){a=n;break}return a}function n(e,n){for(var l={},o=[],r=0;r<e.length;r++){var c=e[r],s=n.base?c[0]+n.base:c[0],d=l[s]||0,m="".concat(s," ").concat(d);l[s]=d+1;var p=a(m),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(h);else{var f=i(h,n);n.byIndex=r,t.splice(r,0,{identifier:m,updater:f,references:1})}o.push(m)}return o}function i(e,t){var a=t.domAPI(t);return a.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;a.update(e=t)}else a.remove()}}e.exports=function(e,i){var l=n(e=e||[],i=i||{});return function(e){e=e||[];for(var o=0;o<l.length;o++){var r=a(l[o]);t[r].references--}for(var c=n(e,i),s=0;s<l.length;s++){var d=a(l[s]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}l=c}}},5860:(e,t,a)=>{a.d(t,{A:()=>r});var n=a(1601),i=a.n(n),l=a(6314),o=a.n(l)()(i());o.push([e.id,'.il-election-game{--il-election-game-text-color: #222;--il-election-game-bg-color: #fff;--il-election-game-border-color: #ddd;--il-election-game-btn-bg-color: #fff;--il-election-game-btn-text-color: #dc0000;--il-election-game-btn-border-color: #dc0000;--il-election-game-disabled-btn-bg-color: #b3b3b3;--il-election-game-disabled-btn-text-color: #fff;--il-election-game-disabled-btn-border-color: #b3b3b3;background-color:var(--il-election-game-bg-color);color:var(--il-election-game-text-color);font-family:"Encode Sans Condensed",arial,sans-serif;display:flex;flex-direction:column;padding:0 7px;margin:14px 0;min-height:852px}.il-election-game .il-election-game-title{font-size:22px;font-weight:700;text-align:center;margin-bottom:7px}.il-election-game .il-election-game-caption{font-size:17px;font-weight:600;line-height:1.2;text-align:center;margin-bottom:14px}.il-election-game .il-election-game-advice{font-size:18px;font-weight:600;align-self:flex-end;text-align:center;margin-bottom:14px;width:74%}.il-election-game .il-election-game-candidate-list{width:100%;max-width:380px;margin:0 auto 14px;display:flex;flex-direction:column}.il-election-game .candidate-list-item{display:flex;justify-content:space-between;margin-bottom:14px}.il-election-game .candidate-list-item:last-child{margin-bottom:7px}.il-election-game .candidate-details-container{font-family:"Encode Sans Condensed",arial,sans-serif;display:flex;align-items:center}.il-election-game .candidate-image{display:none}.il-election-game .candidate-details{white-space:nowrap}.il-election-game .candidate-name{font-size:16px;font-weight:600}.il-election-game .candidate-votes{font-size:15px;font-weight:500}.il-election-game .candidate-list-btn-container{display:flex;align-items:center;justify-content:space-between;width:74%}@media screen and (min-width: 320px){.il-election-game .il-election-game-advice{width:63%}.il-election-game .candidate-image{display:inline;height:37px;width:37px;border-radius:50%}.il-election-game .candidate-details{margin-left:7px}.il-election-game .candidate-list-btn-container{width:63%}}@media screen and (min-width: 360px){.il-election-game{padding:0 14px}.il-election-game .candidate-votes{font-size:17px}.il-election-game .candidate-name{font-size:18px}}@media screen and (min-width: 380px){.il-election-game .candidate-image{height:46px;width:46px}}html.theme-light .il-election-game{--il-election-game-text-color: #222;--il-election-game-bg-color: #fff;--il-election-game-border-color: #ddd;--il-election-game-btn-bg-color: #fff;--il-election-game-btn-text-color: #dc0000;--il-election-game-btn-border-color: #dc0000;--il-election-game-disabled-btn-bg-color: #b3b3b3;--il-election-game-disabled-btn-text-color: #fff;--il-election-game-disabled-btn-border-color: #b3b3b3}html.theme-dark .il-election-game{--il-election-game-text-color: #fff;--il-election-game-bg-color: #2b2b2b;--il-election-game-btn-text-color: #fff;--il-election-game-border-color: #ddd;
1--il-election-game-btn-bg-color: #dc0000;--il-election-game-btn-border-color: #dc0000;--il-election-game-disabled-btn-bg-color: #222;--il-election-game-disabled-btn-text-color: #fff;--il-election-game-disabled-btn-border-color: #ddd}@media(prefers-color-scheme: dark){.il-election-game{--il-election-game-text-color: #fff;--il-election-game-bg-color: #2b2b2b;--il-election-game-btn-text-color: #fff;--il-election-game-border-color: #ddd;--il-election-game-btn-bg-color: #dc0000;--il-election-game-btn-border-color: #dc0000;--il-election-game-disabled-btn-bg-color: #222;--il-election-game-disabled-btn-text-color: #fff;--il-election-game-disabled-btn-border-color: #ddd}}.candidate-list-button{cursor:pointer;border-radius:4px;border:1px solid;font-family:"Encode Sans Condensed",arial,sans-serif;font-size:15px;font-weight:700;padding:4px 2px}.candidate-list-button:last-of-type{margin-right:0}@media screen and (min-width: 360px){.candidate-list-button{font-size:16px}}@media screen and (min-width: 380px){.candidate-list-button{padding:4px}}@media screen and (min-width: 400px){.candidate-list-button{padding:4px 7px}}.candidate-barchart{border-bottom:1px solid var(--il-election-game-border-color);margin:0 0 14px}.candidate-barchart .barchart-image-row{width:100%;border-bottom:1px solid var(--il-election-game-border-color);min-height:119px}.candidate-barchart .barchart-row-content{display:flex;justify-content:space-between;max-width:380px;margin:0 auto}.candidate-barchart .barchart-row-content.label-row{align-items:center;height:65px;text-align:center}.candidate-barchart .barchart-image{width:30%;height:auto;max-width:100px}.candidate-barchart .barchart-bar-container{display:flex;justify-content:space-around;width:40%}.candidate-barchart .barchart-bar-wrapper{height:100%;display:flex;align-items:flex-end;justify-content:center;width:45px}.candidate-barchart .barchart-bar{border-radius:4px 4px 0 0;width:35px}.candidate-barchart .barchart-name-votes{width:30%;font-size:17px;font-weight:600}.candidate-barchart .barchart-percent-advisory{width:40%}.candidate-barchart .barchart-percents{display:flex;justify-content:space-around}.candidate-barchart .votes-percent{font-size:19px;font-weight:700;width:45px;margin-bottom:2px}.candidate-barchart .barchart-advice{font-size:13px;font-weight:400;white-space:nowrap;margin-bottom:2px}@media screen and (min-width: 320px){.candidate-barchart .barchart-image-row{min-height:137px}.candidate-barchart .barchart-name-votes{font-size:18px}.candidate-barchart .votes-percent{font-size:20px}.candidate-barchart .barchart-advice{font-size:14px}}@media screen and (min-width: 360px){.candidate-barchart .barchart-image-row{min-height:149px}}.election-game-share{display:flex;justify-content:center;width:100%;border-top:1px solid var(--il-election-game-border-color);border-bottom:1px solid var(--il-election-game-border-color)}.election-game-share .election-game-share-content{display:flex;justify-content:space-between;align-items:center;width:100%;margin:14px}.election-game-share .election-game-share-title{width:120px;font-size:17px;font-weight:600}.election-game-share .election-game-share-buttons{display:flex}.election-game-share .election-game-share-button{margin-right:21px}.election-game-share .election-game-share-button:last-child{margin-right:0}.election-game-share svg{height:40px;width:40px}.election-game-share .facebook-svg{fill:#4267b2}.election-game-share .whatsapp-svg{display:block;fill:#25d366}.election-game-share .stroke{fill:#fff}@media screen and (min-width: 320px){.election-game-share .election-game-share-content{margin:14px 21px}}@media screen and (min-width: 360px){.election-game-share .election-game-share-content{max-width:315px}}@media screen and (min-width: 640px){.election-game-share .whatsapp-svg{display:none}.election-game-share .election-game-share-button:first-child{margin-right:0}.election-game-share .election-game-share-title{width:100%}}@font-face{font-family:"Encode Sans Condensed";font-weight:500;src:url("https://assets.ilcdn.fi/encode-sans-condensed-v10-latin-500.woff2") format("woff2"),url("https://assets.ilcdn.fi/encode-sans-condensed-v10-latin-500.woff") format("woff");font-display:fallback}@font-face{font-family:"Encode Sans Condensed";font-weight:600;src:url("https://assets.ilcdn.fi/encode-sans-condensed-v10-latin-600.woff2") format("woff2"),url("https://assets.ilcdn.fi/encode-sans-condensed-v10-latin-600.woff") format("woff");font-display:fallback}@font-face{font-family:"Encode Sans Condensed";font-weight:700;src:url("https://assets.ilcdn.fi/encode-sans-condensed-v5-latin-700.woff2") format("woff2"),url("https://assets.ilcdn.fi/encode-sans-condensed-v5-latin-700.woff") format("woff");font-display:fallback}',""]);const r=o},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var a="",n=void 0!==t[5];return t[4]&&(a+="@supports (".concat(t[4],") {")),t[2]&&(a+="@media ".concat(t[2]," {")),n&&(a+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),a+=e(t),n&&(a+="}"),t[2]&&(a+="}"),t[4]&&(a+="}"),a}).join("")},t.i=function(e,a,n,i,l){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(n)for(var r=0;r<this.length;r++){var c=this[r][0];null!=c&&(o[c]=!0)}for(var s=0;s<e.length;s++){var d=[].concat(e[s]);n&&o[d[0]]||(void 0!==l&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=l),a&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=a):d[2]=a),i&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=i):d[4]="".concat(i)),t.push(d))}},t}},6451:(e,t,a)=>{a.r(t),a.d(t,{default:()=>u});var n=a(5072),i=a.n(n),l=a(7825),o=a.n(l),r=a(7659),c=a.n(r),s=a(5056),d=a.n(s),m=a(540),p=a.n(m),h=a(1113),f=a.n(h),g=a(5860),b={};b.styleTagTransform=f(),b.setAttributes=d(),b.insert=c().bind(null,"head"),b.domAPI=o(),b.insertStyleElement=p(),i()(g.A,b);const u=g.A&&g.A.locals?g.A.locals:void 0},7659:e=>{var t={};e.exports=function(e,a){var n=function(e){if(void 0===t[e]){var a=document.querySelector(e);
1if(window.HTMLIFrameElement&&a instanceof window.HTMLIFrameElement)try{a=a.contentDocument.head}catch(e){a=null}t[e]=a}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(a)}},7825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(a){!function(e,t,a){var n="";a.supports&&(n+="@supports (".concat(a.supports,") {")),a.media&&(n+="@media ".concat(a.media," {"));var i=void 0!==a.layer;i&&(n+="@layer".concat(a.layer.length>0?" ".concat(a.layer):""," {")),n+=a.css,i&&(n+="}"),a.media&&(n+="}"),a.supports&&(n+="}");var l=a.sourceMap;l&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(l))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,a)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},9155:t=>{t.exports=e}},a={};function n(e){var i=a[e];if(void 0!==i)return i.exports;var l=a[e]={id:e,exports:{}};return t[e](l,l.exports,n),l.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var i={};n.r(i),n.d(i,{ILElectionGame:()=>u});var l=n(9155),o=n.n(l);const r=e=>function(t){const[a,i]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{n(6451),i(!0)},[]),a?o().createElement(e,{...t}):null},c={dev:"https://images.dev.vaalit.almamedia.fi",prod:"https://images.vaalit.almamedia.fi"},s={dev:"https://tp.dev.vaalit.almamedia.fi",prod:"https://tp.prod.vaalit.almamedia.fi"},d={Aaltola:"https://assets.ilcdn.fi/aaltola_peli_left.png",Andersson:"https://assets.ilcdn.fi/andersson_peli_left.png",Essayah:"https://assets.ilcdn.fi/essayah_peli_left.png",Haavisto:"https://assets.ilcdn.fi/haavisto_peli_left.png","Halla-aho":"https://assets.ilcdn.fi/halla-aho_peli_left.png",Harkimo:"https://assets.ilcdn.fi/harkimo_peli_left.png",Rehn:"https://assets.ilcdn.fi/rehn_peli_left.png",Stubb:"https://assets.ilcdn.fi/stubb_peli_left.png",Urpilainen:"https://assets.ilcdn.fi/urpilainen_peli_left.png"},m={Aaltola:"https://assets.ilcdn.fi/aaltola_peli_right.png",Andersson:"https://assets.ilcdn.fi/andersson_peli_right.png",Essayah:"https://assets.ilcdn.fi/essayah_peli_right.png",Haavisto:"https://assets.ilcdn.fi/haavisto_peli_right.png","Halla-aho":"https://assets.ilcdn.fi/halla-aho_peli_right.png",Harkimo:"https://assets.ilcdn.fi/harkimo_peli_right.png",Rehn:"https://assets.ilcdn.fi/rehn_peli_right.png",Stubb:"https://assets.ilcdn.fi/stubb_peli_right.png",Urpilainen:"https://assets.ilcdn.fi/urpilainen_peli_right.png"},p=({lastName:e,color:t,handleOnClick:a,index:n,isSelected:i})=>{const l={backgroundColor:i?t:"#fff",color:i?"#fff":t,borderColor:t};return o().createElement("button",{className:"candidate-list-button",onClick:()=>a(e,n),style:l},e)},h=({chartCandidates:e})=>o().createElement("div",{className:"candidate-barchart"},o().createElement("div",{className:"barchart-image-row"},o().createElement("div",{className:"barchart-row-content"},o().createElement("img",{className:"barchart-image",src:d[e[0].lastName]||""}),o().createElement("div",{className:"barchart-bar-container"},e.map(e=>o().createElement("div",{key:`barchart-bars-${e.lastName}`,className:"barchart-bar-wrapper"},o().createElement("div",{className:"barchart-bar",style:{height:`${e.totalVotePercent||0}%`,backgroundColor:e.color}})))),o().createElement("img",{className:"barchart-image",src:m[e[1].lastName]||""}))),o().createElement("div",{className:"barchart-row-content label-row"},e.map((t,a)=>o().createElement(o().Fragment,{key:`barchart-name-votes-${t.lastName}`},o().createElement("div",{className:"barchart-name-votes"},t.lastName," ",o().createElement("br",null),Math.floor(t.totalVotes).toLocaleStr
1ing("fi-FI")),0===a&&o().createElement("div",{className:"barchart-percent-advisory"},o().createElement("div",{className:"barchart-percents"},e.map(e=>o().createElement("div",{className:"votes-percent",key:`percent-${e.lastName}`},(e.totalVotePercent||0).toFixed(1).replace(".",",")))),o().createElement("div",{className:"barchart-advice"},"Osuus äänistä (%)")))))),f=()=>o().createElement("svg",{viewBox:"0 0 50 50",className:"facebook-svg"},o().createElement("g",null,o().createElement("circle",{className:"circle",cx:"25",cy:"25",r:"25"}),o().createElement("g",{transform:"translate(150.824 2549.344)"},o().createElement("path",{className:"stroke",d:"M-129.9-2509.3v-15h-4.5v-4.5h4.5v-4.5c0-3.8,1.5-6,6-6h4.5v4.5h-2c-1.4,0-2.5,1.2-2.5,2.5\n v3.4h6l-0.8,4.5h-5.3v15L-129.9-2509.3z"})))),g=()=>o().createElement("svg",{viewBox:"0 0 50 50",className:"whatsapp-svg",shapeRendering:"geometricPrecision"},o().createElement("g",null,o().createElement("circle",{className:"st0",cx:"25",cy:"25",r:"25"}),o().createElement("g",{transform:"translate(45.592 2548.445)"},o().createElement("path",{className:"stroke",d:"M-11-2533.1c-5.2-5.3-13.8-5.3-19,0c-4.3,4.3-5.2,11-2.1,16.2l-1.9,7l7.1-1.9 c2,1.1,4.2,1.6,6.4,1.6l0,0c7.4,0,13.4-6,13.4-13.5C-7.1-2527.1-8.5-2530.6-11-2533.1L-11-2533.1z M-20.5-2512.4L-20.5-2512.4 c-2,0-4-0.5-5.7-1.6l-0.4-0.2l-4.2,1.1l1.1-4.1l-0.3-0.4c-3.3-5.2-1.7-12.1,3.5-15.4s12.1-1.7,15.4,3.5s1.7,12.1-3.5,15.4 C-16.4-2513-18.4-2512.4-20.5-2512.4L-20.5-2512.4z M-14.4-2520.8c-0.3-0.2-2-1-2.3-1.1c-0.3-0.1-0.5-0.2-0.8,0.2 c-0.2,0.3-0.9,1.1-1.1,1.3c-0.2,0.2-0.4,0.3-0.7,0.1c-1-0.4-1.9-1-2.7-1.7c-0.7-0.7-1.4-1.5-1.9-2.3c-0.2-0.3,0-0.5,0.1-0.7 c0.2-0.2,0.3-0.4,0.5-0.6c0.1-0.2,0.2-0.4,0.3-0.6c0.1-0.2,0.1-0.4,0-0.6c-0.1-0.2-0.8-1.8-1-2.5c-0.3-0.7-0.5-0.6-0.8-0.6 s-0.4,0-0.6,0c-0.3,0-0.7,0.2-0.9,0.4c-0.8,0.7-1.2,1.7-1.2,2.8c0.1,1.3,0.6,2.5,1.4,3.5c1.4,2.2,3.4,3.9,5.7,5.1 c0.6,0.3,1.3,0.5,1.9,0.7c0.7,0.2,1.4,0.3,2.1,0.1c0.9-0.2,1.8-0.8,2.3-1.6c0.2-0.5,0.3-1.1,0.2-1.6 C-13.8-2520.5-14.1-2520.6-14.4-2520.8L-14.4-2520.8z"})))),b=r(({chartCandidates:e})=>{const t=`${e[0].candidateNumber}:${e[0].totalVotePercent.toFixed(1)}`,a=`${e[1].candidateNumber}:${e[1].totalVotePercent.toFixed(1)}`,n=e=>{((e,t)=>{try{window.loadGAFromSite&&window.sendCustomGA4Event?window.sendCustomGA4Event({eventName:e,eventDimensions:t}):(window.dataLayer||[]).push({...t,event:"sendGAEvent",eventName:e})}catch{}})("PresidentGame",{eventAction:"SocialMediaShare",eventLabel:e})},i="https://www.iltalehti.fi",l=`${i}/presidentinvaali-2024/presidenttipeli/${t},${a}`;return o().createElement("div",{className:"election-game-share"},o().createElement("div",{className:"election-game-share-content"},o().createElement("div",{className:"election-game-share-title"},"Jaa tuloksesi Presidenttipelistä"),o().createElement("div",{className:"election-game-share-buttons"},o().createElement("a",{className:"election-game-share-button",onClick:()=>n("Facebook"),target:"_blank",href:`https://www.facebook.com/sharer/sharer.php?u=${l}`,"aria-label":"Jaa facebookilla",rel:"noopener noreferrer"},o().createElement(f,null)),o().createElement("a",{className:"election-game-share-button",onClick:()=>n("Whatsapp"),"data-action":"share/whatsapp/share","data-title":"IL:n Presidenttipeli","data-host":i,"data-page-url":l,href:`whatsapp://send?text=${l}`,"aria-label":"Jaa whatsapilla"},o().createElement(g,null)))))}),u=r(({env:e="prod"})=>{const[t,a]=(0,l.useState)(void 0),[n,i]=(0,l.useState)(void 0),r=c[e]||"";(0,l.useEffect)(()=>{(async()=>{try{const t=await(async(e,t)=>{if(!t||!(t in s))throw new Error(`Invalid env: ${t||"undefined"}`);const a=await fetch(`${s[t]}/tpv-2024-1/candidates.json`);if(!a.ok)throw new Error("Fetch failed");const n=await a.json();if(Array.isArray(n))return n.sort((e,t)=>t.totalVotes-e.totalVotes);if(!("koko_maa"in n))throw new Error("Malformed response");return n.koko_maa.sort((e,t)=>t.totalVotes-e.totalVotes)})(0,e),n=(e=>{const t=e.reduce((e,t)=>e+t.totalVotes,0);return e.map(e=>({...e,selectedVotes:[],originalTotalVotes:e.totalVotes,totalVotePercent:e.totalVotes/t*100}))})(t.slice(0,2));a(n),i(t.slice(2))}catch(e){console.error(e)}})()},[e]);const d=e=>2===t?.filter(t=>t.selectedVotes[e]).length,m=e=>e.selectedVotes.reduce((e,t)=>
1e+t,0)+e.originalTotalVotes,f=(e,i)=>{if(!t||!n)return;const l=n[i].totalVotes,o=d(i);let r=0;const c=t.map(t=>("50/50"===e?t.selectedVotes[i]=o?0:l/2:o&&t.lastName!==e||!o&&t.selectedVotes[i]?t.selectedVotes[i]=0:t.lastName===e&&(t.selectedVotes[i]=l),r+=m(t),t));a(((e,t)=>e.map(e=>{const a=m(e);return{...e,totalVotes:a,totalVotePercent:a/t*100}}))(c,r))};return o().createElement("div",{className:"il-election-game"},2===t?.length&&o().createElement(o().Fragment,null,o().createElement("div",{className:"il-election-game-title"},"Presidenttipeli"),o().createElement("div",{className:"il-election-game-caption"},"Kokeile, miten ensimmäisellä kierroksella annetut äänet jakautuisivat toiselle kierrokselle päässeille ehdokkaille. Kenestä tulisi presidentti?"),o().createElement(h,{chartCandidates:t}),o().createElement("div",{className:"il-election-game-candidate-list"},o().createElement("div",{className:"il-election-game-advice"},"Lisää äänet ehdokkaalle"),n&&n.map((e,a)=>o().createElement("div",{key:`election-game-item-${e.lastName}`,className:"candidate-list-item"},o().createElement("div",{className:"candidate-details-container"},o().createElement("img",{className:"candidate-image",src:`${r}/${e.image}`}),o().createElement("div",{className:"candidate-details"},o().createElement("div",{className:"candidate-name"},e.lastName),o().createElement("div",{className:"candidate-votes"},e.totalVotes.toLocaleString("fi")))),o().createElement("div",{className:"candidate-list-btn-container"},[...t,{lastName:"50/50",color:"#666"}].map(e=>o().createElement(p,{key:`election-game-button-${e.lastName}`,lastName:e.lastName,color:e.color,handleOnClick:f,index:a,isSelected:"50/50"===e.lastName?d(a):"selectedVotes"in e&&!!e.selectedVotes[a]&&!d(a)})))))),o().createElement(b,{chartCandidates:t})))});return i})(),e.exports=n(a(96540))}}]); 2//# sourceMappingURL=ElectionGameEmbed.1730a52df.chunk.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.