https://lannenkiekko.fi/_next/static/chunks/pages/[section]/joukku…/uutisarkisto-b53d58bae2b3f891.js
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7672],{49096:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[section]/joukkueet/[subsiteId]/uutisarkisto",function(){return n(28166)}])},89220:function(t,e,n){"use strict";var s=n(85893),r=n(59130),c=n(41664),i=n.n(c),a=n(13588),o=n(11163);e.Z=(0,r.withTranslation)("common")((function(t){var e=t.newslist,n=t.t,r=(0,o.useRouter)(),c=(0,a.Z)(r.query),u=c.href,l=c.linkAs;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"table-responsive text-left pb-3",children:(0,s.jsxs)("table",{className:"table table-hover",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{scope:"col",width:"200",children:n("newsDate")}),(0,s.jsx)("th",{scope:"col",children:n("newsTitle")}),(0,s.jsx)("th",{scope:"col",children:n("category")})]})}),(0,s.jsx)("tbody",{children:e.length?e.map((function(t){var e="".concat(u,"uutiset/[newsId]/[slug]"),r="".concat(l,"uutiset/").concat(t.id,"/").concat(t.slug),c=n("anews");return 2===t.type&&(e="".concat(u,"ottelut/[newsId]?tab=prepuff"),r="".concat(l,"ottelut/").concat(t.id,"?tab=prepuff"),c=n("gamePrepuff")),3===t.type&&(e="".concat(u,"ottelut/[newsId]?tab=report"),r="".concat(l,"ottelut/").concat(t.id,"?tab=report"),c=n("gameReport")),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:(0,s.jsx)(i(),{href:e,as:r,children:(0,s.jsx)("a",{children:t.date})})}),(0,s.jsx)("td",{children:(0,s.jsx)(i(),{href:e,as:r,children:(0,s.jsx)("a",{children:t.title})})}),(0,s.jsx)("td",{children:(0,s.jsx)(i(),{href:e,as:r,children:(0,s.jsx)("a",{children:c})})})]},t.id)})):(0,s.jsx)("tr",{children:(0,s.jsx)("td",{colSpan:"10",children:n("noNews")})})})]})})})}))},28166:function(t,e,n){"use strict";n.r(e);var s=n(47568),r=n(70655),c=n(85893),i=n(17280),a=n(1112),o=n(69623),u=n(29473),l=n(89220),h=n(59130),d=n(67294),f=n(70167),p=n(11163),j=n(69913),x=n(2962),w=function(t){var e=t.news,n=t.siteData,h=t.t,w=(0,d.useState)(e),b=w[0],m=w[1],v=(0,d.useState)(0),g=v[0],Z=v[1],_=(0,d.useState)(6===e.length),N=_[0],y=_[1],k=(0,p.useRouter)().query,I=(0,j.Z)(n,k.subsiteId,k.section)+" - "+h("newsarchive");return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(x.PB,{title:I,openGraph:{title:I}}),(0,c.jsxs)("div",{className:"sticky-top",children:[(0,c.jsx)(a.default,{}),(0,c.jsx)(o.default,{})]}),(0,c.jsx)("section",{className:"sectionhighlightedheader",children:(0,c.jsx)("div",{className:"container pt-4 pb-2",children:(0,c.jsx)("h1",{className:"mb-3",children:h("newsArchive")})})}),(0,c.jsxs)("section",{id:"page-content",children:[(0,c.jsx)("div",{className:"container pt-1 pb-4",children:(0,c.jsx)(l.Z,{newslist:b})}),N?(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-highlighted w-auto my-4",onClick:(0,s.Z)((function(){return(0,r.__generator)(this,(function(t){return[2,q()]}))})),children:h("newsArchiveLoadmore")})})}):null]})]});function q(){return E.apply(this,arguments)}function E(){return(E=(0,s.Z)((function(){var t,e,n,s;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return t=g+6,(0,f.Z)(),e=(0,i.Z)().origin,[4,u.Z.get("".concat(e,"/api/news/newslist/subsite/").concat(k.subsiteId,"?start=").concat(t))];case 1:return[4,r.sent().json()];case 2:return n=r.sent(),s=b.concat(n),m(s),Z(t),y(6===n.length),[2]}}))}))).apply(this,arguments)}};w.getInitialProps=function(){var t=(0,s.Z)((function(t,e){var n,s;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return n=(0,i.Z)(t.req).origin,s=(0,f.Z)(t.req),[4,u.Z.get("".concat(n,"/api/news/newslist/subsite/").concat(t.query.subsiteId),s)];case 1:return[4,r.sent().json()];case 2:return[2,{news:r.sent(),siteData:e,namespacesRequired:["common"]}]}}))}));return function(e,n){return t.apply(this,arguments)}}(),e.default=(0,h.withTranslation)("common")(w)},1329:function(t,e,n){"use strict";function s(t,e){var n=null;return t.forEach((function(t){t.id==e&&(n=t.name)})),n}n.d(e,{Z:function(){return s}})},69913:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var s=n(1329),r=n(55223),c=n(90028);function i(t,e,n){var i=t.name;if(n){var a=(0,c.Z)(n,t.sections);i=i+" - "+(0,s.Z)(t.sections,a)}return e&&(i=i+" - "+(0,r.Z)(t.sections,e)),i}}},function(t){t.O(0,[6261,1725,9623,9774,2888,179],(function(){return e=49096,t(t.s=e);var e}));var e=t.O();_N_E=e}]);
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.