PageSourceSearch

https://pita.fi/_next/static/chunks/9226-805236dc39ca48c5.js

js pita.fi collected 2026-10-02 23:33:47 UTC 6,803 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9226],{19226:function(e,n,s){s.r(n);var c=s(41799),i=s(69396),l=s(85893),a=s(41664),o=s.n(a),r=s(11163),t=s(67294),u=s(64290),d=s(13588),h=s(59130),m=s(15268),x=s(10055),j=s(91756),f=s(38430);n.default=(0,h.withTranslation)("common")((function(e){e.props;var n,s=e.t,a=function(e,n){if(1===e.menuType)return(0,l.jsx)(o(),{href:B.dynamicHref,as:"".concat(B.dynamicBaseAs,"/").concat(e.id,"/").concat(e.slug),children:(0,l.jsxs)("a",{children:[e.title,n?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"drop-icon ",children:"\u25be"}),(0,l.jsx)("label",{title:"Toggle Drop-down",className:"drop-icon",htmlFor:"menu-".concat(e.id),children:"\u25be"})]}):null]})});if(3===e.menuType){var s={href:e.url,as:e.url};if(0==e.url.indexOf("/")){var a=e.url.split("/");3==a.length&&"section"in h&&a[1]===h.section&&(s.href="/[section]/".concat(a[2]))}return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(o(),(0,i.Z)((0,c.Z)({},s),{children:(0,l.jsxs)("a",{children:[e.title,n?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"drop-icon ",children:"\u25be"}),(0,l.jsx)("label",{title:"Toggle Drop-down",className:"drop-icon",htmlFor:"menu-".concat(e.id),children:"\u25be"})]}):null]})}))})}return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("a",{children:[e.title,n?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"drop-icon ",children:"\u25be"}),(0,l.jsx)("label",{title:"Toggle Drop-down",className:"drop-icon",htmlFor:"menu-".concat(e.id),children:"\u25be"})]}):null]})})},h=(0,r.useRouter)().query,p=null!==(n=h.section)&&void 0!==n?n:"",g=(0,t.useContext)(u.Z).siteData,k=g.sections.find((function(e){return e.url==p})),y=(0,m.Z)(p,g.sections);if(!k||!k.menus)return null;var N,v=[],b=(0,d.Z)(h),B={};p.length>0?(B.sectionHref="/[section]",B.sectionBaseAs="/".concat(h.section),B.dynamicHref="/[section]/jaosto/[navMenuId]/[slug]",B.dynamicBaseAs="/".concat(h.section,"/jaosto"),v=null!==(N=g.sectionSomeLinks[k.id])&&void 0!==N?N:[]):(B.sectionHref="",B.sectionBaseAs="",B.dynamicHref="/seura/[navMenuId]/[slug]",B.dynamicBaseAs="/seura");var A,w,H=k.menus,T=null!==(A=k.siteMenus)&&void 0!==A?A:[],F=null!==(w=k.contactMenus)&&void 0!==w?w:[];return(0,t.useEffect)((function(){document.querySelectorAll("label.drop-icon").forEach((function(e){e.addEventListener("click",(function(e){e.stopPropagation()}))}))})),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("nav",{className:"menu menu-primary",children:[(0,l.jsxs)("label",{htmlFor:"dynamicmenu",className:"toggleMenu",id:"toggle-menu",children:[g.name,(0,l.jsx)("span",{className:"drop-icon",children:"\u25be"})]}),(0,l.jsx)("input",{type:"checkbox",id:"dynamicmenu",className:"toggler"}),(0,l.jsxs)("ul",{className:"main-menu clearfix",children:[(0,l.jsx)("li",{children:(0,l.jsx)(o(),{href:b.href,as:b.linkAs,children:(0,l.jsx)("a",{children:(0,l.jsx)("i",{className:"fas fa-home"})})})}),k.showSiteMenu?(0,l.jsxs)("li",{children:[(0,l.jsxs)("a",{children:[p?k.name:g.officialShortName,(0,l.jsx)("span",{className:"drop-icon",children:"\u25be"}),(0,l.jsx)("label",{title:"Toggle Drop-down",className:"drop-icon",htmlFor:"menu-101",children:"\u25be"})]}),(0,l.jsx)("input",{className:"toggler",type:"checkbox",id:"menu-101"}),(0,l.jsxs)("ul",{className:"sub-menu",children:[T.length?T.map((function(e){return Z(e)})):null,(0,l.jsx)("li",{children:(0,l.jsx)(o(),{href:"".concat(B.sectionHref,"/uutisarkisto"),as:"".concat(B.sectionBaseAs,"/uutisarkisto"),children:(0,l.jsx)("a",{children:s("newsListing")})})}),g.siteCmsType===j.Z.BasicJopox&&(0,l.jsx)("li",{children:(0,l.jsx)(o(),{href:"".concat(B.sectionHref,"/ottelut"),as:"".concat(B.sectionBaseAs,"/ottelut"),children:(0,l.jsx)("a",{children:s("sportTexts.".concat(y,".subsiteCompetitionlist"))})})}),(0,l.jsx)("li",{children:(0,l.jsx)(o(),{href:"".concat(B.sectionHref,"/lomakkeet"),as:"".concat(B.sectionBaseAs,"/lomakkeet"),children:(0,l.jsx)("a",{children:s("queriesListing")})})}),(0,l.jsx)("li",{children:(0,l.jsx)(o(),{href:"".concat(B.sectionHref,"/materiaalipankki"),as:"".concat(B.sectionBaseAs,"/materiaalipankki"),children:(0,l.jsx)("a",{children:s("documents")})})}),g.hasLpReservations?(0,l.jsx)("li",{children:(0,l.jsx)(o(),{href:"".concat(B.sectionHref,"/vuorovaraukset"),as:"".concat(B.sectionBaseAs,"/vuorovaraukset"),children:(0,l.jsx)("a",{children:s("lpReservations")})})}):null,(0,l.jsx)("li",{children:(0,l.jsx)(o(),{href:"".concat(B.sectionHref,"/tietosuojaseloste"),as:"".concat(B.sectionBaseAs,"/tietosuojaseloste"),children:(0,l.jsx)("a",{children:s("dataPrivacy")})})})]})]}):null,H.map((function(e){return Z(e)})),k.showContactsMenu?(0,l.jsxs)("li",{children:[(0,l.jsxs)("a",{children:[s("contactInformationMenu"),(0,l.jsx)("span",{className:"drop-icon",children:"\u25be"}),(0,l.jsx)("label",{title:"Toggle Drop-down",className:"drop-icon",htmlFor:"menu-102",children:"\u25be"})]}),(0,l.jsx)("input",{className:"toggler",type:"checkbox",id:"menu-102"}),(0,l.jsxs)("ul",{className:"sub-menu",children:[F.length?F.map((function(e){return Z(e)})):null,g.siteCmsType===j.Z.BasicJopox&&(0,l.jsx)("li",{children:(0,l.jsx)(o(),{href:"".concat(B.sectionHref,"/joukkueyhteydet"),as:"".concat(B.sectionBaseAs,"/joukkueyhteydet"),children:(0,l.jsx)("a",{children:s("theOfficialsList")})})}),(0,l.jsx)("li",{children:(0,l.jsx)(o(),{href:"".concat(B.sectionHref,"/organisaatio"),as:"".concat(B.sectionBaseAs,"/organisaatio"),children:(0,l.jsx)("a",{children:s("organisationListing")})})})]})]}):null,(0,l.jsxs)("li",{className:"menu-somelinks",children:[v&&v.length?(0,l.jsx)("div",{className:"menu-somelinks-container",children:v.map((function(e){return(0,f.Z)(e)}))}):null,g.lockerRoomUrl?(0,l.jsx)("a",{target:"_blank",rel:"noopener noreferrer nofollow",href:"".concat(g.lockerRoomUrl),style:{display:"inline-block"},children:(0,l.jsx)("i",{className:"fas fa-user-lock"})}):null]}),g.siteCmsType!==j.Z.BasicJopox&&(0,l.jsx)("li",{children:(0,l.jsx)(x.Z,{})})]})]}),(0,l.jsx)("nav",{className:"menu menu-login",children:g.lockerRoomUrl?(0,l.jsxs)("a",{target:"_blank",className:"main-menu clearfix toggleMenu",rel:"noopener noreferrer nofollow",id:"toggle-menu",href:"".concat(g.lockerRoomUrl),style:{display:"block"},children:[s("login"),(0,l.jsx)("i",{style:{float:"right"},className:"fas fa-user-lock"})]}):null})]});function Z(e){if(e.children.length){var n=a(e,!0);return(0,l.jsxs)("li",{children:[n,(0,l.jsx)("input",{className:"toggler",type:"checkbox",id:"menu-".concat(e.id)}),(0,l.jsx)("ul",{className:"sub-menu",children:e.children.map((function(e){return Z(e)}))})]},e.id)}return(0,l.jsx)("li",{children:a(e,!1)},e.id)}}))},15268:function(e,n,s){function c(e,n){var s=0;
1return n.forEach((function(n){n.url==e&&(s=n.sectionSportType)})),s}s.d(n,{Z:function(){return c}})}}]);

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.