1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[477],{15935:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/joukkueet/[subsiteId]/materiaalipankki",function(){return t(35963)}])},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]})}))},35963: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),u=t(59130),l=t(70167),d=t(45107),f=t(11163),h=t(69913),m=t(2962),x=t(69623).default,j=function(e){var n=e.documents,t=e.siteData,s=e.t,r=(0,f.useRouter)().query,i=(0,h.Z)(t,r.subsiteId,null)+" - "+s("documents");return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(m.PB,{title:i,openGraph:{title:i}}),(0,c.jsxs)("div",{className:"sticky-top",children:[(0,c.jsx)(a.default,{}),(0,c.jsx)(x,{})]}),(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)(d.Z,{documents:n})]})})})})]})};j.getInitialProps=function(){var e=(0,s.Z)((function(e,n){var t,s,c,a;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return t=e.req,s=e.query,c=(0,i.Z)(t).origin,a=(0,l.Z)(t),[4,o.Z.get("".concat(c,"/api/documents/subsite/").concat(s.subsiteId),a)];case 1:return[4,r.sent().json()];case 2:return[2,{documents:r.sent(),siteData:n,namespacesRequired:["common"]}]}}))}));return function(n,t){return e.apply(this,arguments)}}(),n.default=(0,u.withTranslation)("common")(j)},1329:function(e,n,t){"use strict";function s(e,n){var t=null;return e.forEach((function(e){e.id==n&&(t=e.name)})),t}t.d(n,{Z:function(){return s}})},69913:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var s=t(1329),r=t(55223),c=t(90028);function i(e,n,t){var i=e.name;if(t){var a=(0,c.Z)(t,e.sections);i=i+" - "+(0,s.Z)(e.sections,a)}return n&&(i=i+" - "+(0,r.Z)(e.sections,n)),i}}},function(e){e.O(0,[6261,1725,9623,9774,2888,179],(function(){return n=15935,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.