1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9030],{78278:function(e,t,n){n.d(t,{Z:function(){return S}});var s=n(47568),a=n(70655),c=n(85893),i=n(51723),r=n(30381),o=n.n(r),l=n(59130),u=n(67294),d=n(17280),m=n(29473),h=n(64290),p=n(90028),x=n(11163),g=(0,l.withTranslation)("common")((function(e){var t=e.siteType,n=e.t,r=e.onDaySelect,l=(0,u.useContext)(h.Z).siteData,g=(0,u.useState)(null),f=g[0],v=g[1],j=(0,u.useState)([]),b=j[0],y=j[1],N=(0,x.useRouter)().query;function Z(e){return w.apply(this,arguments)}function w(){return(w=(0,s.Z)((function(e){var n,s,c,i,r;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return n=(0,d.Z)().origin,"site"!=t?[3,2]:[4,m.Z.get("".concat(n,"/api/calendar/site/eventdays?year=").concat(e.year(),"&month=").concat(e.month()+1))];case 1:case 3:case 5:return s=a.sent(),[3,7];case 2:return"section"!=t?[3,4]:(c=(0,p.Z)(N.section,l.sections),[4,m.Z.get("".concat(n,"/api/calendar/section/").concat(c,"/eventdays?year=").concat(e.year(),"&month=").concat(e.month()+1))]);case 4:return"subsite"!=t?[3,6]:(i=N.subsiteId,[4,m.Z.get("".concat(n,"/api/calendar/subsite/").concat(i,"/eventdays?year=").concat(e.year(),"&month=").concat(e.month()+1))]);case 6:return[2];case 7:return[4,s.json()];case 8:return r=a.sent(),y(r),v(e),[2]}}))}))).apply(this,arguments)}return(0,u.useEffect)((function(){Z(o()())}),[]),(0,c.jsxs)("div",{id:"calendar",children:[(0,c.jsx)("div",{className:"col-12",children:(0,c.jsx)("h4",{className:"text-black mb-3 mt-3",children:n("calendar")})}),null!=f?(0,c.jsx)(i.f,{weekOffset:1,onChangeMonth:function(e){return Z(e)},date:f,onPickDate:function(e){r&&"function"===typeof r&&r(e)},renderDay:function(e){var t=e.day,n=e.classNames,s=e.onPickDate,a=!1,i=[];return b.forEach((function(e){t.isSame(e.date,"day")&&(a=!0,e.hasTraining&&(!0,i.push('url("/images/harjoitus.png")')),e.hasGame&&(!0,i.push('url("/images/peli.png")')),e.hasEvent&&(!0,i.push('url("/images/muu.png")')))})),(0,c.jsx)("div",{style:a?{backgroundImage:i.join(",")}:{},className:"".concat(a?"has-event ":""," Calendar-grid-item ").concat(n," ").concat(t.isSame(o()(),"day")?"Calendar-grid-item--current":""),onClick:a?function(e){return s(t)}:null,children:a?(0,c.jsx)("button",{children:t.format("D")}):t.format("D")},t.format())},renderHeader:function(e){var t=e.date,s=e.onPrevMonth,a=e.onNextMonth;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"Calendar-header",children:[(0,c.jsx)("button",{onClick:s,"aria-label":"Previous month",children:(0,c.jsx)("i",{className:"fas fa-chevron-circle-left"})}),(0,c.jsxs)("div",{className:"Calendar-header-currentDate",children:[n("months.".concat(t.month()))," ",t.format("YYYY")]}),(0,c.jsx)("button",{onClick:a,"aria-label":"Next month",children:(0,c.jsx)("i",{className:"fas fa-chevron-circle-right"})})]}),(0,c.jsxs)("div",{className:"Calendar-grid",children:[(0,c.jsx)("div",{className:"Calendar-grid-item",children:n("shortDays.0")}),(0,c.jsx)("div",{className:"Calendar-grid-item",children:n("shortDays.1")}),(0,c.jsx)("div",{className:"Calendar-grid-item",children:n("shortDays.2")}),(0,c.jsx)("div",{className:"Calendar-grid-item",children:n("shortDays.3")}),(0,c.jsx)("div",{className:"Calendar-grid-item",children:n("shortDays.4")}),(0,c.jsx)("div",{className:"Calendar-grid-item",children:n("shortDays.5")}),(0,c.jsx)("div",{className:"Calendar-grid-item",children:n("shortDays.6")})]})]})}}):null]})})),f=n(70167),v=n(83593),j=n(42977),b=n(77104),y=1,N=2,Z=3,w=n(67908),T=n(55223),I=n(13588),k=function(e){var t=e.dayOfMonth,n=e.monthTitle,s=e.time;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"row",children:[(0,c.jsx)("div",{className:"col-5 event-day p-2 m-0 text-center",children:t}),(0,c.jsx)("div",{className:"col-7 event-month p-2 m-0 text-center",children:n})]}),(0,c.jsx)("div",{className:"row",children:(0,c.jsxs)("div",{className:"col-12 event-time p-2 m-0 text-center",children:[(0,c.jsx)("i",{className:"fas fa-clock"})," ",s]})})]})},D=(0,l.withTranslation)("common")((function(e){var t=e.eventId,n=e.eventType,s=e.day,a=e.month,i=e.title,r=(e.subtitle,e.time),o=e.place,l=e.description,u=e.onEventClick,d=e.t;return(0,c.jsx)("a",{style:{cursor:"pointer"},onClick:function(){return u(t,n)},children:(0,c.jsxs)("div",{className:"row mb-3 d-flex align-items-center",children:[(0,c.jsx)("div",{className:"col-4 col-md-3",children:(0,c.jsx)(k,{dayOfMonth:s,monthTitle:d("shortMonthts.".concat(a)),time:r})}),(0,c.jsxs)("div",{className:"col-8 col-md-9",children:[(0,c.jsx)("span",{className:"event-descr",children:l}),(0,c.jsx)("br",{}),(0,c.jsx)("span",{className:"event-title",children:i}),(0,c.jsx)("br",{}),(0,c.jsx)("span",{className:"event-place",children:o})]})]})})})),C=n(79548),_=(0,l.withTranslation)("common")((function(e){var t=e.siteType,n=e.events,i=e.t,r=function(){p(!1)},o=((0,u.useContext)(C.OO).i18n.language,(0,u.useState)(!1)),l=o[0],p=o[1],g=(0,u.useState)({}),k=g[0],_=g[1],S=(0,x.useRouter)().query,M=(0,u.useContext)(h.Z).siteData;
1if(!n||0===n.length)return null;var H="";return(0,c.jsxs)("div",{children:[n.map((function(e){var n,s=new Date(e.date),a=M.sections.find((function(t){return t.id==e.sectionId})),r=null!==(n=null===a||void 0===a?void 0:a.sectionSportType)&&void 0!==n?n:0;if(e.eventType==y)return H=(0,T.Z)(M.sections,e.subsiteId),(0,c.jsx)(D,{onEventClick:G,eventId:e.eventId,eventType:y,day:s.getDate(),month:s.getMonth(),time:e.uiTime,place:e.place,description:i("trainings")+": "+H,title:e.title,subtitle:e.subtitle},"".concat(e.eventType,"-").concat(e.eventId));if(e.eventType==N){var o=new Date(e.date),l=function(e,n){var s={href:"",as:""};if("site"==t)e.isJopoxSite?(s.href="/ottelut/[gameId]",s.as="/ottelut/".concat(n.eventId)):(s.href="/ottelut/[gameId]/[gamesection]",s.as="/ottelut/".concat(n.eventId,"/").concat(n.sectionUrl));else{var a=(0,I.Z)(S);s.href=a.href+"ottelut/[gameId]",s.as=a.linkAs+"ottelut/".concat(n.eventId)}return s}(M,e),u=o.getMonth(),d=o.getDate(),m=e.uiTime,h=i("sportTexts.".concat(r,".gameTitle"))+": "+e.subsiteName+", "+e.leagueName,p=e.place,x=(0,w.Z)(M.shortName,e,r,e.subsiteNameIsPrimary,e.subsiteName);return(0,c.jsx)(v.Z,{linkHref:l.href,linkAs:l.as,day:d,month:u,title:x,time:m,description:h,subtitle:"",place:p},"".concat(e.eventType,"-").concat(e.eventId))}return e.eventType==Z?(H=(0,T.Z)(M.sections,e.subsiteId),(0,c.jsx)(D,{onEventClick:E,eventId:e.eventId,eventType:Z,day:s.getDate(),month:s.getMonth(),title:e.title,time:e.uiTime,description:i("event")+": "+H,place:e.place,subtitle:e.subtitle},"".concat(e.eventType,"-").concat(e.eventId))):null})),(0,c.jsxs)(j.Z,{show:l,onHide:r,children:[(0,c.jsx)(j.Z.Header,{closeButton:!0,children:(0,c.jsx)(j.Z.Title,{children:k.title})}),(0,c.jsxs)(j.Z.Body,{children:[k.subtitle1?(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:k.subtitle1}}):null,k.subtitle2?(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:k.subtitle2}}):null,(0,c.jsx)("div",{dangerouslySetInnerHTML:{__html:k.body}})]}),(0,c.jsx)(j.Z.Footer,{children:(0,c.jsx)(b.Z,{variant:"secondary",onClick:r,children:i("closeModal")})})]})]});function E(e,t){return F.apply(this,arguments)}function F(){return(F=(0,s.Z)((function(e,t){return(0,a.__generator)(this,(function(n){switch(t){case Z:L(e);break;case y:G(e)}return[2]}))}))).apply(this,arguments)}function L(e){return U.apply(this,arguments)}function U(){return(U=(0,s.Z)((function(e){var t,n;return(0,a.__generator)(this,(function(s){switch(s.label){case 0:return(0,f.Z)(),t=(0,d.Z)().origin,[4,m.Z.get("".concat(t,"/api/events/").concat(e))];case 1:return[4,s.sent().json()];case 2:return n=s.sent(),_({title:n.title,subtitle1:"<p><b><i class='far fa-calendar-alt'></i> "+i("time")+":</b> "+n.time+"</p>",subtitle2:"<p><b><i class='fas fa-map-marker-alt'></i> "+i("place")+":</b> "+n.place+"</p>",body:n.description}),p(!0),[2]}}))}))).apply(this,arguments)}function G(e){return P.apply(this,arguments)}function P(){return(P=(0,s.Z)((function(e){var t,n,s;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return(0,f.Z)(),t=(0,d.Z)().origin,[4,m.Z.get("".concat(t,"/api/trainings/subsite/").concat(S.subsiteId,"/").concat(e))];case 1:return[4,a.sent().json()];case 2:return n=a.sent(),s=n.uiDate,n.uiEndTime&&(s+=" - "+n.uiEndTime),_({title:n.name,subtitle1:"<p><b><i class='far fa-calendar-alt'></i> "+i("time")+":</b> "+s+"</p>",subtitle2:"<p><b><i class='fas fa-map-marker-alt'></i> "+i("place")+":</b> "+n.place+"</p>",body:n.publicinfo}),p(!0),[2]}}))}))).apply(this,arguments)}})),S=(0,l.withTranslation)("common")((function(e){var t=e.siteType,n=e.t,i=(0,u.useContext)(h.Z).siteData,r=(0,u.useState)(null),o=r[0],l=r[1],v=(0,u.useState)(n("futureEvents")),j=v[0],b=v[1],y=(0,x.useRouter)().query;function N(){return N=(0,s.Z)((function(){var e,n,s,c,r,o;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return e=null,(0,f.Z)(),n=(0,d.Z)().origin,(0,p.Z)(y.section,i.sections),"site"!=t?[3,2]:[4,m.Z.get("".concat(n,"/api/calendar/site/upcoming"))];case 1:return e=a.sent(),[3,6];case 2:return"section"!=t?[3,4]:(c=(0,p.Z)(null!==(s=y.section)&&void 0!==s?s:"",i.sections),[4,m.Z.get("".concat(n,"/api/calendar/section/").concat(c,"/upcoming"))]);case 3:return e=a.sent(),[3,6];case 4:return r=y.subsiteId,[4,m.Z.get("".concat(n,"/api/calendar/subsite/").concat(r,"/upcoming"))];case 5:e=a.sent(),a.label=6;case 6:return[4,e.json()];case 7:return o=a.sent(),l(o),[2]}}))})),N.apply(this,arguments)}function Z(){return Z=(0,s.Z)((function(e){var s,c,r,o,u,h;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return e=new Date(e),s=null,(0,f.Z)(),c=(0,d.Z)().origin,"site"!=t?[3,2]:[4,m.Z.get("".concat(c,"/api/calendar/site/day?year=").concat(e.getFullYear(),"&month=").concat(e.getMonth()+1,"&day=").concat(e.getDate()))];case 1:return s=a.sent(),[3,6];case 2:return"section"!=t?[3,4]:(o=(0,p.Z)(null!==(r=y.section)&&void 0!==r?r:"",i.sections),[4,m.Z.get("".concat(c,"/api/calendar/section/").concat(o,"/day?year=").concat(e.getFullYear(),"&month=").concat(e.getMonth()+1,"&day=").concat(e.getDate()))]);case 3:return s=a.sent(),[3,6];case 4:return u=y.subsiteId,[4,m.Z.get("".concat(c,"/api/calendar/subsite/").concat(u,"/day?year=").concat(e.getFullYear(),"&month=").concat(e.getMonth()+1,"&day=").concat(e.getDate()))];case 5:s=a.sent(),a.label=6;case 6:return[4,s.json()];case 7:return h=a.sent(),l(h),b(n("eventsOfday")+" "+e.toLocaleDateString("fi")),[2]}}))})),Z.apply(this,arguments)}return(0,u.useEffect)((function(){!function(){N.apply(this,arguments)}()}),[]),(0,c.jsxs)("div",{className:"row",children:[(0,c.jsx)("div",{className:"col-md-12 col-lg-6 ",children:(0,c.jsx)("div",{className:"row pl-0 pl-md-3",children:(0,c.jsx)(g,{siteType:t,onDaySelect:function(e){return Z.apply(this,arguments)}})})}),(0,c.jsx)("div",{className:"col-md-12 col-lg-6 ",children:(0,c.jsxs)("div",{className:"pl-4",children:[(0,c.jsx)("div",{className:"row",children:(0,c.jsx)("h4",{className:"text-black mb-3 mt-3",children:j})}),(0,c.jsx)(_,{siteType:t,events:o})]})})]})}))},83593:function(e,t,n){var s=n(85893),a=n(41664),c=n.n(a),i=n(59130);t.Z=(0,i.withTranslation)("common")((function(e){var t=e.linkHref,n=e.linkAs,a=e.day,i=e.month,r=e.time,o=e.title,l=(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)(c(),{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(i))})]}),(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"})," ",r]})})]}),(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:o}),(0,s.jsx)("br",{}),(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:h}}),(0,s.jsx)("span",{className:"event-place",children:l})]})]})})})}))},96745:function(e,t,n){var s=n(85893),a=n(41664),c=n.n(a),i=n(67294),r=n(64290),o=n(13588),l=n(11163),u=n(59130),d=n(83593),m=n(52217),h=n(15268);t.Z=(0,u.withTranslation)("common")((function(e){var t,n=e.games,a=e.siteType,u=e.t,p=(0,i.useContext)(r.Z).siteData,x=(0,l.useRouter)().query,g=(0,o.Z)(x),f=null!==(t=x.section)&&void 0!==t?t:"",v=null;return v="site"==a||"section"==a?(0,h.Z)(f,p.sections):(0,m.Z)(x.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(v,".recentCompetitions"))})}),n.length?n.map((function(e){var t=(0,m.Z)(e.subsiteId,p.sections),n=new Date(e.date),c=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=g.href+"ottelut/[gameId]",n.as=g.linkAs+"ottelut/".concat(t.gameId)),n}(p,e),i=n.getMonth(),r=n.getDate(),o=e.uiTime,l="".concat(e.subsiteName,", ").concat(e.league),u=function(e,t){return 1===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)?e.gameHometeam:e.subsiteNameIsPrimary?e.awayGame?(0,s.jsxs)(s.Fragment,{children:[e.gameGuestteam," \u2013 ",(e.subsiteName+" "+e.gameHometeam).trim()]}):(0,s.jsxs)(s.Fragment,{children:[(e.subsiteName+" "+e.gameHometeam).trim()," \u2013 ",e.gameGuestteam]}):e.awayGame?(0,s.jsxs)(s.Fragment,{children:[e.gameGuestteam," \u2013 ",(t.shortName+" "+e.gameHometeam).trim()]}):(0,s.jsxs)(s.Fragment,{children:[(t.shortName+" "+e.gameHometeam).trim()," \u2013 ",e.gameGuestteam]})}(e,p,t),h="".concat(e.league," , ").concat(e.subsiteName),x=e.gamePlace,f=e.result;return(0,s.jsx)(d.Z,{linkHref:c.href,linkAs:c.as,day:r,time:o,month:i,title:u,subtitle:l,description:h,place:x,result:f},e.gameId)})):(0,s.jsx)("div",{className:"mb-5",children:u("sportTexts.".concat(v,".noCompetitions"))}),(0,s.jsx)("div",{className:"row",children:(0,s.jsx)(c(),{as:"".concat(g.linkAs,"ottelut"),href:"".concat(g.href,"ottelut"),children:(0,s.jsx)("a",{className:"btn btn-highlighted
1w-auto",children:u("sportTexts.".concat(v,".competitionList"))})})})]})}))},8311:function(e,t,n){n.r(t);var s=n(41799),a=n(69396),c=n(85893),i=n(67294),r=n(64290);t.default=function(e){var t=(0,i.useContext)(r.Z).siteData;return(0,c.jsx)("section",{id:"imagelifts",children:(0,c.jsx)("div",{className:"container py-4",children:(0,c.jsx)("div",{className:"row",children:e.imageLifts.map((function(e){var n={};return e.sponsorWww&&(n.href=e.sponsorWww,n.target=e.sponsorLinkTarget,n.rel="noopener"),(0,c.jsx)("div",{className:"col-md-3 py-3 text-center",children:(0,c.jsx)("a",(0,a.Z)((0,s.Z)({},n),{children:(0,c.jsx)("img",{src:"".concat(t.staticUrl,"/imagebank/").concat(e.sponsorImage),alt:e.sponsorName})}))},e.sponsorId)}))})})})}},97815:function(e,t,n){n.r(t);var s=n(41799),a=n(69396),c=n(85893),i=n(70130),r=n(67294),o=n(64290);t.default=function(e){var t=e.slides;if(null==t||t.length<1)return null;var n=(0,r.useContext)(o.Z).siteData;return(0,c.jsx)("header",{children:(0,c.jsx)(i.Z,{className:"carousel",children:t.map((function(e){var t={};return e.carouselLink&&(t.href=e.carouselLink,t.as="a",t.rel="noopener"),(0,c.jsxs)(i.Z.Item,(0,a.Z)((0,s.Z)({},t),{children:[(0,c.jsxs)("picture",{children:[(0,c.jsx)("source",{media:"(min-width:767px)",srcSet:"".concat(n.staticUrl,"/imagebank/carousel/").concat(e.carouselImage)}
1),(0,c.jsx)("source",{media:"(min-width:200px)",srcSet:"".concat(n.staticUrl,"/imagebank/carousel/").concat(e.carouselMobileImage)}),(0,c.jsx)("img",{className:"d-block w-100",src:"".concat(n.staticUrl,"/imagebank/carousel/").concat(e.carouselImage),alt:""})]}),e.carouselText||e.carouselTitle?(0,c.jsx)(i.Z.Caption,{className:"d-block text-left py-3 py-lg-2",children:(0,c.jsx)("div",{className:"container p-2",children:(0,c.jsxs)("div",{className:"row d-flex align-items-center",children:[(0,c.jsx)("div",{className:"col-auto",children:(0,c.jsx)("img",{className:"slider-logo",src:"".concat(n.staticUrl,"/logos/logo-300.png"),alt:""})}),(0,c.jsxs)("div",{className:"col py-0 pl-0 pl-lg-3",children:[(0,c.jsx)("h2",{className:"w-100",children:e.carouselTitle}),e.carouselText?(0,c.jsx)("p",{className:"my-0",children:e.carouselText}):null]})]})})}):null]}),e.carouselImage)}))})})}},88181:function(e,t,n){n.r(t);var s=n(47568),a=n(70655),c=n(85893),i=n(40207),r=n(11163),o=n(67294),l=n(29473),u=n(17280),d=n(64290),m=n(90028),h=n(59130),p=n(70167);t.default=(0,h.withTranslation)("common")((function(e){var t=e.news,n=e.siteType,h=e.t,x=(0,o.useState)(t),g=x[0],f=x[1],v=(0,o.useState)(0),j=v[0],b=v[1],y=(0,r.useRouter)().query,N=(0,o.useContext)(d.Z).siteData,Z=(0,o.useState)(6==t.length),w=Z[0],T=Z[1];return(0,o.useEffect)((function(){f(t)}),[t]),g&&0!=g.length?(0,c.jsx)("section",{id:"sectionheadnews",children:(0,c.jsxs)("div",{className:"container pt-4",children:[(0,c.jsx)("div",{className:"row",children:g.map((function(e){return(0,c.jsx)(i.Z,{siteData:N,newsLift:e},e.id+"_"+e.newsLiftType)}))}),w?(0,c.jsx)("div",{className:"row",children:(0,c.jsx)("div",{className:"col-12 text-center",children:(0,c.jsx)("button",{type:"button",className:"btn btn-more2 w-auto my-4",onClick:(0,s.Z)((function(){return(0,a.__generator)(this,(function(e){return[2,I({siteType:n})]}))})),children:h("morenews")})})}):null]})}):null;function I(){return k.apply(this,arguments)}function k(){return(k=(0,s.Z)((function(){var e,t,s,c,i,r,o;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return e=j+1,t=(0,u.Z)().origin,s=(0,p.Z)(),c={},"site"!=n?[3,2]:[4,l.Z.get("".concat(t,"/api/newslift/site?start=").concat(e),s)];case 1:return c=a.sent(),[3,6];case 2:return"section"!=n?[3,4]:(i=(0,m.Z)(y.section,N.sections),[4,l.Z.get("".concat(t,"/api/newslift/section/").concat(i,"?start=").concat(e),s)]);case 3:return c=a.sent(),[3,6];case 4:return[4,l.Z.get("".concat(t,"/api/newslift/subsite/").concat(y.subsiteId,"?start=").concat(e),s)];case 5:c=a.sent(),a.label=6;case 6:return[4,c.json()];case 7:return r=a.sent(),o=g.concat(r),T(6==r.length),f(o),b(e),[2]}}))}))).apply(this,arguments)}}))},40207:function(e,t,n){n.d(t,{Z:function(){return m}});var s=n(85893),a=n(41664),c=n.n(a),i=n(11163),r=n(13588);n(67294),n(64290);var o=n(55223),l=n(1329),u=n(59130),d=n(52217),m=(0,u.withTranslation)("common")((function(e){var t,n,a,u=e.newsLift,m=e.t,h=e.siteData,p=(0,i.useRouter)().query,x=(0,r.Z)(p),g=x.href,f=x.linkAs,v=(0,d.Z)(u.subsiteId,h.sections);1==u.newsLiftType?(a=g+"uutiset/[newsId]/[slug]",n=f+"uutiset/".concat(u.id,"/").concat(u.slug),t=m("anews")):2==u.newsLiftType?(h.isJopoxSite||"section"in p?(a=g+"ottelut/[gameId]?tab=prepuff",n=f+"ottelut/".concat(u.id,"?tab=prepuff")):(a=g+"ottelut/[gameId]/[gamesection]?tab=prepuff",n=f+"ottelut/".concat(u.id,"/").concat(u.sectionUrl,"?tab=prepuff")),t=m("sportTexts.".concat(v,".competitionPrepuff"))):3==u.newsLiftType?(h.isJopoxSite||"section"in p?(a=g+"ottelut/[gameId]?tab=report",n=f+"ottelut/".concat(u.id,"?tab=report")):(a=g+"ottelut/[gameId]/[gamesection]?tab=report",n=f+"ottelut/".concat(u.id,"/").concat(u.sectionUrl,"?tab=report")),t=m("sportTexts.".concat(v,".competitionReport"))):(null,t=null);var j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=null,s=null,a=null;return n=new Date(e),1==t?n=n.getDate()+"."+(n.getMonth()+1)+"."+n.getFullYear():2==t?n=n.getDate():3==t?(a=("0"+n.getHours()).slice(-2),s=("0"+n.getMinutes()).slice(-2),n=n.getDate()+"."+n.getMonth()+"."+n.getFullYear()+" "+a+":"+s):4==t&&(a=("0"+n.getHours()).slice(-2),s=("0"+n.getMinutes()).slice(-2),n=a+":"+s),n}(u.date,1),b=null;return b=11!==u.subsiteType?(0,o.Z)(h.sections,u.subsiteId):(0,l.Z)(h.sections,u.sectionId),(0,s.jsx)("div",{className:"col-lg-4 col-md-6 col-sm-6 col-12 pb-4 pt-4 px-0 px-md-3 px-sm-3 h-news",children:(0,s.jsx)(c(),{href:a,as:n,children:(0,s.jsxs)("a",{children:[(0,s.jsx)("div",{className:"col-12 pl-0 pr-0 ",children:u.imageId&&u.imageExtension?(0,s.jsx)("img",{alt:u.title,className:"card-img-top",src:"".concat(h.staticUrl,"/imagebank/").concat(u.imageId,"_big").concat(u.imageExtension)}):(0,s.jsx)("img",{alt:u.title,className:"card-img-top p-4",src:"".concat(h.staticUrl,"/logos/logo-600.png")})}),(0,s.jsx)("div",{className:"date w-100 mb-1 mt-3 px-3 px-md-0",children:j}),(0,s.jsx)("div",{className:"date w-100 mb-0 mt-0 mb-3 px-3 px-md-0",children:(0,s.jsxs)("strong",{children:[t," - ",b]})}),(0,s.jsx)("div",{className:"mainnews-title w-100 mb-0 mt-0 mb-3 px-3 px-md-0",style:{color:"#FFFFFF"},children:u.title})]})})})}))},87626:function(e,t,n){var s=n(85893),a=n(67294);t.Z=function(e){var t=e.embed;return(0,a.useEffect)((function(){var e=document.createElement("script");e.src="https://apps.elfsight.com/p/platform.js",e.id="libraryName",document.body.appendChild(e)}),[]),(0,s.jsx)("section",{children:(0,s.jsx)("div",{className:"container ",children:(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:t.embedCode}})})})}},48825:function(e,t,n){n.r(t);var s=n(41799),a=n(69396),c=n(85893),i=n(51270),r=n(7649),o=n(69447),l=n(24002),u=n(67294),d=n(64290);i.Z.use([r.Z]);t.default=function(e){var t=e.sponsors,n=e.currentSection,i=(0,u.useContext)(d.Z).siteData;return t.length>0?(0,c.jsx)("section",{id:n,children:(0,c.jsx)("div",{className:"container py-4",children:(0,c.jsx)(o.t,{spaceBetween:10,autoplay:{delay:3e3,disableOnInteraction:!0},breakpoints:{375:{slidesPerView:2},767:{slidesPerView:6}},children:t.map((function(e){var t={};return e.sponsorWww&&(t.href=e.sponsorWww,t.target=e.sponsorLinkTarget,t.rel="noopener"),(0,c.jsx)(l.o,{children:(0,c.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,c.jsx)("a",(0,a.Z)((0,s.Z)({},t),{children:(0,c.jsx)("img",{src:"".concat(i.staticUrl,"/imagebank/").concat(e.sponsorImage),alt:e.sponsorName})}))})},e.sponsorId)}))})})}):null}},56306:function(e,t,n){var s=n(85893);n(67294),n(64290);t.Z=function(e){return(0,s.jsx)("section",{id:"subsitedescription",className:"description",children:(0,s.jsx)("div",{className:"container py-4",children:(0,s.jsx)("div",{className:"col-12 text-center",children:(0,s.jsx)("a",{style:{fontSize:24},children:e.description.subsiteDescription})})})})}},89096:function(e,t,n){n.d(t,{Z:function(){return u}});var s=n(85893),a=n(85509),c=n(56841),i=n(59130),r=n(64290),o=n(67294),l=function(e){var t=e.widget,n=(0,o.useContext)(r.Z).siteData,a="".concat("https://jojo.jopox.fi/tasoEmbed/taso.aspx","?mdb=").concat(n.metadataDatabase,"&widget=").concat(t.id);return(0,s.jsx)("div",{children:(0,s.jsx)("iframe",{style:{height:"500px",width:"100%",border:"none"},src:a})})},u=(0,i.withTranslation)("common")((function(e){var t=e.widgets,n=e.t;return null==t||0==t.length?null:(0,s.jsx)("div",{id:"taso",className:"container my-4 taso-container",children:(0,s.jsxs)("div",{className:"mx2",children:[(0,s.jsx)("div",{className:"row mb-3",children:(0,s.jsx)("div",{className:"col-12 taso-header",children:n("resultService")})}),(0,s.jsx)("div",{className:"row",children:(0,s.jsx)("div",{className:"col-12 p2",children:(0,s.jsx)(a.Z,{defaultActiveKey:"taso-"+t[0].id,children:t.map((function(e){return(0,s.jsx)(c.Z,{eventKey:"taso-"+e.id,title:e.title,children:(0,s.jsx)("div",{className:"pt-2",children:(0,s.jsx)(l,{widget:e})})},e.id)}))})})})]})})}))},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 c,i,r="";s&&a?r=(a+" "+(null!==(i=t.gameHometeam)&&void 0!==i?i:"")).trim():r=(e+" "+(null!==(c=t.gameHometeam)&&void 0!==c?c:"")).trim();return t.awayGame?"".concat(t.gameGuestteam," - ").concat(r," "):" ".concat(r," - ").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}})}}]);
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.