1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9566],{92029:function(e,t,n){var s=n(67294);t.Z=function(e){var t=(0,s.useRef)(e);return(0,s.useEffect)((function(){t.current=e}),[e]),t}},78146:function(e,t,n){n.d(t,{Z:function(){return r}});var s=n(67294),a=n(92029);function r(e){var t=(0,a.Z)(e);return(0,s.useCallback)((function(){return t.current&&t.current.apply(t,arguments)}),[t])}},60930:function(e,t,n){n.d(t,{Z:function(){return a}});var s=Function.prototype.bind.call(Function.prototype.call,[].slice);function a(e,t){return s(e.querySelectorAll(t))}},74226:function(e,t,n){n.d(t,{Z:function(){return p}});var s=n(85893),a=n(67294),r=n(64290),c=n(59130),i=(0,c.withTranslation)("common")((function(e){var t=e.game,n=e.t,c=(0,a.useContext)(r.Z).siteData;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"card",children:[(0,s.jsx)("div",{className:"card-header",children:n("statsTitle")}),(0,s.jsxs)("div",{className:"card-body",children:[(0,s.jsxs)("div",{className:"row text-center align-items-center",children:[(0,s.jsx)("div",{className:"col-4",children:t.awayGame?t.gameGuestteam:(0,s.jsx)("img",{src:"".concat(c.staticUrl,"/logos/logo-300.png"),width:"60"})}),(0,s.jsx)("div",{className:"col-4",children:(0,s.jsx)("h3",{children:t.result})}),(0,s.jsx)("div",{className:"col-4",children:t.awayGame?(0,s.jsx)("img",{src:"".concat(c.staticUrl,"/logos/logo-300.png"),width:"60"}):t.gameGuestteam})]}),(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)("div",{className:"col-3"}),(0,s.jsx)("div",{className:"col-6",style:{textAlign:"center"},children:t.periodResults.map((function(e,n){return(0,s.jsx)("span",{className:"badge result ml-2",children:e},"".concat(t.gameId,"-").concat(n))}))}),(0,s.jsx)("div",{className:"col-3"})]}),t.gameStats.length?(0,s.jsx)("table",{className:"table text-center text-md-left my-3",children:(0,s.jsx)("tbody",{children:t.gameStats.map((function(e){return(0,s.jsxs)("tr",{style:{color:e.opponentStat?"red":""},children:[(0,s.jsxs)("td",{children:[e.time,"'"]}),(0,s.jsx)("td",{children:e.statType}),(0,s.jsx)("td",{children:e.name})]},e.id)}))})}):null]})]})})})),l=n(56841),o=n(2016),u=(n(16539),n(67908)),d=n(19973),m=n(11163),h=(n(56201),n(41664)),f=n.n(h),x=n(15177),p=(0,c.withTranslation)("common")((function(e){var t=e.game,n=(e.siteType,e.t),c=e.activeTab,h=(0,a.useContext)(r.Z).siteData,p=(0,m.useRouter)().query;if(!p.sectionId||!p.seasonId)return null;var g=new Date(t.gameDate),v=h.sections.find((function(e){return e.id==p.sectionId})).seasons.find((function(e){return e.id==p.seasonId})).seasonData,j=0;v.subsiteGroups.forEach((function(e){e.subsites.forEach((function(e){e.id==t.subsiteId&&(j=e.sportType)}))})),c=null!==c&&void 0!==c?c:"prepuff";var N=(0,m.useRouter)(),b=(0,x.Z)(N.query),Z=b.href,y=b.linkAs;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("section",{id:"games",children:(0,s.jsx)("div",{className:"container py-4",children:(0,s.jsx)("div",{className:"col-12 my-1",children:(0,s.jsxs)("div",{className:"row d-flex align-items-center",children:[(0,s.jsx)("div",{className:"col-12 col-sm-5 col-lg-2 ",children:(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)("div",{className:"col-4 event-day p-2 m-0 text-center",children:g.getDate()}),(0,s.jsx)("div",{className:"col-8 event-month p-2 m-0 text-center",children:n("shortMonthts.".concat(g.getMonth()))}),(0,s.jsxs)("div",{className:"col-12 event-time p-2 m-0 text-center",children:[(0,s.jsx)("i",{className:"fas fa-clock"}),t.time]})]})}),(0,s.jsx)("div",{className:"col-1 col-sm-1 col-lg-1 text-right text-lg-center"}),(0,s.jsxs)("div",{className:"col-12 col-sm-6 col-lg-9 mt-2",children:[t.subsiteName,", ",t.league,(0,s.jsxs)("h2",{children:[(0,u.Z)(h.shortName,t),"\xa0\xa0",t.result?t.result:""]}),t.gamePlace]})]})})})}),(0,s.jsxs)(l.Z.Container,{id:"left-tabs",defaultActiveKey:c,children:[(0,s.jsx)("section",{id:"raports-menu",children:(0,s.jsxs)(o.Z,{activeKey:c,as:"ul",className:"nav nav-pills pt-2 p-0 d-flex justify-content-center",variant:"pills",children:[(0,s.jsx)(o.Z.Item,{as:"li",children:(0,s.jsx)(o.Z.Link,{eventKey:"prepuff",children:n("sportTexts.".concat(j,".competitionPrepuff"))})}),(0,s.jsx)(o.Z.Item,{as:"li",children:(0,s.jsx)(o.Z.Link,{eventKey:"report",children:n("sportTexts.".concat(j,".competitionReport"))})})]})}),(0,s.jsx)("section",{id:"page-content",children:(0,s.jsx)("div",{className:"container",children:(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)("div",{className:"col-md-8 order-0 order-md-0 order-sm-0 py-4",children:(0,s.jsxs)(l.Z.Content,{className:"tab-content",children:[(0,s.jsx)(l.Z.Pane,{eventKey:"prepuff",children:(0,s.jsxs)(d.Z,{children:[t.gamePrepuffTitle?(0,s.jsx)("h1",{className:"mb-3",children:t.gamePrepuffTitle}):null,t.prepuffImage?(0,s.jsx)("img",{className:"img-fluid mb-5",src:t.prepuffImage}):null,(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:t.gamePrepuff}})]})},"1"),(0,s.jsx)(l.Z.Pane,{eventKey:"report",children:(0,s.jsxs)(d.Z,{children:[(0,s.jsx)("h1",{className:"mb-3",children:t.gamePublicnewsTitle}),t.publicnewsImage?(0,s.jsx)("img",{className:"img-fluid mb-5",src:t.publicnewsImage}):null,(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:t.gamePublicnews}})]})},"2")]})}),(0,s.jsxs)("div",{className:"col-md-4 order-1 order-md-1 order-sm-1 py-4 statistics",children:[t.result?(0,s.jsx)(i,{game:t}):null,(0,s.jsx)("div",{className:"col-12 pelit pb-4",children:(0,s.jsx)(f(),{href:Z+"ottelut",as:y+"ottelut",children:(0,s.jsx)("a",{className:"btn btn-highlighted
1w-auto mt-4",children:n("sportTexts.".concat(j,".competitionList"))})})})]})]})})})]})]})}))},19973:function(e,t,n){var s=n(85893),a=n(67294),r=n(61129),c=n.n(r);t.Z=function(e){var t=e.children,n=function(e){l({toggler:!i.toggler,slide:e})},r=(0,a.useState)({toggler:!1,slide:1}),i=r[0],l=r[1],o=(0,a.useState)([]),u=o[0],d=o[1],m=(0,a.useState)(0),h=m[0],f=m[1];return(0,a.useEffect)((function(){var e=[],t=1;document.querySelectorAll(".lightboxWrapper img").forEach((function(n){var s=n.getAttribute("src");s&&s.length&&(n.setAttribute("data-img-index",t++),e.push(s.replace("_big","_huge").replace("_medium","_huge").replace("_thumb","_huge")))})),e.length>0&&(d(e),f(1))}),[]),(0,s.jsxs)("div",{className:"lightboxWrapper",onClick:function(e){if("IMG"===e.target.tagName&&"A"!==e.target.parentNode.tagName&&e.target.hasAttribute("data-img-index")){var t=parseInt(e.target.getAttribute("data-img-index"));n(t)}},children:[t,(0,s.jsx)(c(),{type:"image",toggler:i.toggler,sources:u,slide:i.slide},h)]})}},83593:function(e,t,n){var s=n(85893),a=n(41664),r=n.n(a),c=n(59130);t.Z=(0,c.withTranslation)("common")((function(e){var t=e.linkHref,n=e.linkAs,a=e.day,c=e.month,i=e.time,l=e.title,o=(e.subtitle,e.place),u=e.description,d=e.result,m=e.t,h="";return""!=d&&null!==d&&void 0!==d&&(h="<span class='event-result'>"+d+"</span><br />"),(0,s.jsx)(r(),{href:t,as:n,children:(0,s.jsx)("a",{children:(0,s.jsxs)("div",{className:"row mb-3 d-flex align-items-center ",children:[(0,s.jsxs)("div",{className:"col-4 col-md-3",children:[(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)("div",{className:"col-5 event-day p-2 m-0 text-center",children:a}),(0,s.jsx)("div",{className:"col-7 event-month p-2 m-0 text-center",children:m("shortMonthts.".concat(c))})]}),(0,s.jsx)("div",{className:"row",children:(0,s.jsxs)("div",{className:"col-12 event-time p-2 m-0 text-center",children:[(0,s.jsx)("i",{className:"fas fa-clock"})," ",i]})})]}),(0,s.jsxs)("div",{className:"col-8 col-md-9",children:[(0,s.jsx)("span",{className:"event-descr",children:u}),(0,s.jsx)("br",{}),(0,s.jsx)("span",{className:"event-title",children:l}),(0,s.jsx)("br",{}),(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:h}}),(0,s.jsx)("span",{className:"event-place",children:o})]})]})})})}))},16539:function(e,t,n){var s=n(85893),a=n(41664),r=n.n(a),c=n(67294),i=n(64290),l=n(13588),o=n(11163),u=n(59130),d=n(52217),m=n(83593),h=n(15268),f=n(67908);t.Z=(0,u.withTranslation)("common")((function(e){var t,n=e.games,a=e.siteType,u=e.t,x=e.gamesportType,p=(0,c.useContext)(i.Z).siteData,g=(0,o.useRouter)().query,v=(0,l.Z)(g),j=(0,o.useRouter)(),N=(0,l.Z)(j.query),b=N.href,Z=N.linkAs,y=null!==(t=g.section)&&void 0!==t?t:"",w=null;return w="site"==a||"section"==a?(0,h.Z)(y,p.sections):(0,d.Z)(g.subsiteId,p.sections),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"row",children:(0,s.jsx)("h4",{className:"text-black mb-3",children:u("sportTexts.".concat(x,".nextGamesTitle"))})}),n.length?n.map((function(e){var t=new Date(e.gameDate),n=function(e,t){var n={href:"",as:""};return"site"==a?e.isJopoxSite?(n.href="/ottelut/[gameId]",n.as="/ottelut/".concat(t.gameId)):(n.href="/ottelut/[gameId]/[gamesection]",n.as="/ottelut/".concat(t.gameId,"/").concat(t.sectionUrl)):(n.href=v.href+"ottelut/[gameId]",n.as=v.linkAs+"ottelut/".concat(t.gameId)),n}(p,e),r=t.getMonth(),c=t.getDate(),i=e.gameTime,l="".concat(e.subSiteName,", ").concat(e.leagueName),o=(0,f.Z)(p.shortName,e,w,e.subsiteNameIsPrimary,e.subsiteName),u="".concat(e.leagueName," , ").concat(e.subsiteName),d=e.gamePlace;return(0,s.jsx)(m.Z,{linkHref:n.href,linkAs:n.as,day:c,time:i,month:r,title:o,subtitle:l,description:u,place:d,result:""},e.gameId)})):(0,s.jsx)("div",{className:"mb-5",children:u("sportTexts.".concat(x,".noCompetitions"))}),(0,s.jsx)(r(),{href:b+"ottelut",as:Z+"ottelut",children:(0,s.jsx)("a",{className:"btn btn-highlighted w-auto mt-4",children:u("sportTexts.".concat(w,".competitionList"))})})]})}))},56201:function(e,t,n){var s=n(85893),a=n(16573),r=n(1020),c=n(46616),i=n(12834),l=n(69275),o=n(89674),u=n(26377);t.Z=function(e){var t=e.shareUrl;return(0,s.jsxs)("div",{children:[(0,s.jsx)(a.Z,{url:t,children:(0,s.jsx)(r.Z,{round:!0,size:36})}),(0,s.jsx)(c.Z,{url:t,children:(0,s.jsx)("img",{src:"/images/x_logo.png"})}),(0,s.jsx)(i.Z,{url:t,children:(0,s.jsx)(l.Z,{round:!0,size:36})}),(0,s.jsx)(o.Z,{url:t,children:(0,s.jsx)(u.Z,{round:!0,size:36})})]})}},67908:function(e,t,n){function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(1===n)return t.gameHometeam;var r,c,i="";s&&a?i=(a+" "+(null!==(c=t.gameHometeam)&&void 0!==c?c:"")).trim():i=(e+" "+(null!==(r=t.gameHometeam)&&void 0!==r?r:"")).trim();return t.awayGame?"".concat(t.gameGuestteam," - ").concat(i," "):" ".concat(i," - ").concat(t.gameGuestteam)}n.d(t,{Z:function(){return s}})},1329:function(e,t,n){function s(e,t){var n=null;return e.forEach((function(e){e.id==t&&(n=e.name)})),n}n.d(t,{Z:function(){return s}})},15268:function(e,t,n){function s(e,t){var n=0;return t.forEach((function(t){t.url==e&&(n=t.sectionSportType)})),n}n.d(t,{Z:function(){return s}})},69913:function(e,t,n){n.d(t,{Z:function(){return c}});var s=n(1329),a=n(55223),r=n(90028);
1function c(e,t,n){var c=e.name;if(n){var i=(0,r.Z)(n,e.sections);c=c+" - "+(0,s.Z)(e.sections,i)}return t&&(c=c+" - "+(0,a.Z)(e.sections,t)),c}},55223:function(e,t,n){function s(e,t){var n=null;return e.forEach((function(e){e.sectionSubsiteId==t&&(n=e.name),e.subsiteGroups.forEach((function(e){e.subsites.forEach((function(e){e.id==t&&(n=e.name)}))}))})),n}n.d(t,{Z:function(){return s}})},13588:function(e,t,n){function s(e){var t="/",n="/";return"section"in e&&(t+="[section]/",n+="".concat(e.section,"/")),"subsiteId"in e&&(t+="joukkueet/[subsiteId]/",n+="joukkueet/".concat(e.subsiteId,"/")),{href:t,linkAs:n}}n.d(t,{Z:function(){return s}})},41068:function(e,t,n){var s,a=n(1368),r=n(38321),c=n(44036),i=n.n(c),l=n(67294),o=n(16592),u=n(93825),d=n(34509),m=["className","children"],h=((s={})[o.d0]="show",s[o.cn]="show",s),f=l.forwardRef((function(e,t){var n=e.className,s=e.children,c=(0,r.Z)(e,m),f=(0,l.useCallback)((function(e){(0,d.Z)(e),c.onEnter&&c.onEnter(e)}),[c]);return l.createElement(o.ZP,(0,a.Z)({ref:t,addEndListener:u.Z},c,{onEnter:f}),(function(e,t){return l.cloneElement(s,(0,a.Z)({},t,{className:i()("fade",n,s.props.className,h[e])}))}))}));f.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},f.displayName="Fade",t.Z=f},48358:function(e,t,n){var s=n(1368),a=n(38321),r=n(67294),c=n(16833),i=["as","disabled","onKeyDown"];function l(e){return!e||"#"===e.trim()}var o=r.forwardRef((function(e,t){var n=e.as,o=void 0===n?"a":n,u=e.disabled,d=e.onKeyDown,m=(0,a.Z)(e,i),h=function(e){var t=m.href,n=m.onClick;(u||l(t))&&e.preventDefault(),u?e.stopPropagation():n&&n(e)};return l(m.href)&&(m.role=m.role||"button",m.href=m.href||"#"),u&&(m.tabIndex=-1,m["aria-disabled"]=!0),r.createElement(o,(0,s.Z)({ref:t},m,{onClick:h,onKeyDown:(0,c.Z)((function(e){" "===e.key&&(e.preventDefault(),h(e))}),d)}))}));o.displayName="SafeAnchor",t.Z=o},42473:function(e){var t=function(){};e.exports=t}
1,78660:function(e,t,n){function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,s(e,t)}n.d(t,{Z:function(){return a}})}}]);
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.