1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4830],{36932:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/materiaalipankki",function(){return t(27411)}])},45107:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var s=t(85893),r=t(11163),c=t(59130),i=t(67294),a=(0,c.withTranslation)("common")((function(e){var n=e.documents,t=e.t,r=function(e){switch(e){case"doc":case"docx":return"far fa-file-word";case"ppt":case"pptx":case"potx":return"far fa-file-powerpoint";case"xls":case"xlsx":return"far fa-file-excel";case"pdf":return"far fa-file-pdf";case"png":case"jpg":case"jpeg":case"ai":case"eps":return"far fa-file-image";case"mp3":return"far fa-file-audio";default:return"far fa-file-alt"}},c=(0,i.useState)(n),a=c[0],o=c[1];return(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"form-group",style:{display:"inline-block"},children:(0,s.jsxs)("select",{className:"form-control",onChange:function(e){return function(e){if(e){var t=n.filter((function(n){return n.categoryId==e}));o(t)}else o(n)}(e.target.value)},children:[(0,s.jsxs)("option",{value:"",children:[t("showAll")," (",n.length,")"]}),function(){var e=[];return n.forEach((function(n){var t=e.find((function(e){return e.id==n.categoryId}));t?t.count++:e.push({title:n.category,id:n.categoryId,count:1})})),e}().map((function(e){return(0,s.jsxs)("option",{value:e.id,children:[e.title," (",e.count,")"]},e.id)}))]})}),(0,s.jsx)("div",{className:"table-responsive",children:(0,s.jsxs)("table",{className:"table table-striped table-hover",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{scope:"col",children:t("category")}),(0,s.jsx)("th",{scope:"col",children:t("description")}),(0,s.jsx)("th",{scope:"col",children:t("name")})]})}),(0,s.jsx)("tbody",{children:a.length>0?a.map((function(e){return(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:e.category}),(0,s.jsx)("td",{children:e.description}),(0,s.jsx)("td",{children:(0,s.jsxs)("a",{target:"_blank",href:"/api/documents/download/".concat(e.id),rel:"nofollow",children:[(0,s.jsx)("i",{className:r(e.extension)})," \xa0 ",e.name]})})]},e.id)})):(0,s.jsx)("tr",{children:(0,s.jsx)("td",{colSpan:"3",children:t("noDocuments")})})})]})})]})})),o=(0,c.withTranslation)("common")((function(e){var n=e.documents,t=e.t,c=(0,r.useRouter)().query;return(0,s.jsxs)("div",{children:["subsiteId"in c?(0,s.jsxs)("h2",{children:[" ",t("teamDocuments")]}):null,(0,s.jsx)(a,{documents:n.documents}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),null!=n.inheritedDocuments&&n.inheritedDocuments.length>0?(0,s.jsxs)("div",{children:[(0,s.jsxs)("h2",{children:[" ",t("clubDocuments")," "]}),(0,s.jsx)(a,{documents:n.inheritedDocuments})]}):null]})}))},48825:function(e,n,t){"use strict";t.r(n);var s=t(41799),r=t(69396),c=t(85893),i=t(51270),a=t(7649),o=t(69447),l=t(24002),u=t(67294),d=t(64290);i.Z.use([a.Z]);n.default=function(e){var n=e.sponsors,t=e.currentSection,i=(0,u.useContext)(d.Z).siteData;return n.length>0?(0,c.jsx)("section",{id:t,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:n.map((function(e){var n={};return e.sponsorWww&&(n.href=e.sponsorWww,n.target=e.sponsorLinkTarget,n.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,r.Z)((0,s.Z)({},n),{children:(0,c.jsx)("img",{src:"".concat(i.staticUrl,"/imagebank/").concat(e.sponsorImage),alt:e.sponsorName})}))})},e.sponsorId)}))})})}):null}},27411:function(e,n,t){"use strict";t.r(n);var s=t(47568),r=t(70655),c=t(85893),i=t(17280),a=t(1112),o=t(29473),l=t(19226),u=t(48825),d=t(67294),f=t(64290),h=t(59130),p=t(43908),x=t(70167),m=t(45107),j=t(2962),v=function(e){var n=e.topSponsors,t=e.documents,s=e.t,r=(0,d.useContext)(f.Z).siteData;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(j.PB,{title:"".concat(r.name," - ").concat(s("documents")),openGraph:{title:"".concat(r.name," - ").concat(s("documents"))}}),(0,c.jsx)(u.default,{sponsors:n}),(0,c.jsxs)("div",{className:"sticky-top",children:[(0,c.jsx)(a.default,{}),(0,c.jsx)(l.default,{})]}),(0,c.jsx)("section",{id:"page-content",children:(0,c.jsx)("div",{className:"container",children:(0,c.jsx)("div",{className:"row",children:(0,c.jsxs)("div",{className:"col",children:[(0,c.jsx)("br",{}),(0,c.jsx)(m.Z,{documents:t})]})})})})]})};v.getInitialProps=function(){var e=(0,s.Z)((function(e,n){var t,s,c,a,l;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return t=e.req,s=(0,i.Z)(t).origin,c=(0,x.Z)(t),a=(0,p.Z)("",n.sections),[4,o.Z.get("".concat(s,"/api/documents/site/").concat(a),c)];case 1:return[4,r.sent().json()];case 2:return l=r.sent(),[4,o.Z.get("".concat(s,"/api/sponsors/subsite/").concat(a,"/6"),c)];case 3:return[4,r.sent().json()];case 4:return[2,{topSponsors:r.sent(),documents:l,namespacesRequired:["common"]}]}}))}));return function(n,t){return e.apply(this,arguments)}}(),n.default=(0,h.withTranslation)("common")(v)},43908:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});var s=t(828);function r(e,n){var t=null;
1return Object.entries(n).forEach((function(n){var r=(0,s.Z)(n,2),c=(r[0],r[1]);c.url==e&&(t=c.sectionSubsiteId)})),t}}},function(e){e.O(0,[9710,1725,9226,9774,2888,179],(function(){return n=36932,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.