1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4769],{65191:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[section]/materiaalipankki",function(){return t(17734)}])},45107:function(n,e,t){"use strict";t.d(e,{Z:function(){return a}});var c=t(85893),r=t(11163),s=t(59130),i=t(67294),o=(0,s.withTranslation)("common")((function(n){var e=n.documents,t=n.t,r=function(n){switch(n){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"}},s=(0,i.useState)(e),o=s[0],a=s[1];return(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"form-group",style:{display:"inline-block"},children:(0,c.jsxs)("select",{className:"form-control",onChange:function(n){return function(n){if(n){var t=e.filter((function(e){return e.categoryId==n}));a(t)}else a(e)}(n.target.value)},children:[(0,c.jsxs)("option",{value:"",children:[t("showAll")," (",e.length,")"]}),function(){var n=[];return e.forEach((function(e){var t=n.find((function(n){return n.id==e.categoryId}));t?t.count++:n.push({title:e.category,id:e.categoryId,count:1})})),n}().map((function(n){return(0,c.jsxs)("option",{value:n.id,children:[n.title," (",n.count,")"]},n.id)}))]})}),(0,c.jsx)("div",{className:"table-responsive",children:(0,c.jsxs)("table",{className:"table table-striped table-hover",children:[(0,c.jsx)("thead",{children:(0,c.jsxs)("tr",{children:[(0,c.jsx)("th",{scope:"col",children:t("category")}),(0,c.jsx)("th",{scope:"col",children:t("description")}),(0,c.jsx)("th",{scope:"col",children:t("name")})]})}),(0,c.jsx)("tbody",{children:o.length>0?o.map((function(n){return(0,c.jsxs)("tr",{children:[(0,c.jsx)("td",{children:n.category}),(0,c.jsx)("td",{children:n.description}),(0,c.jsx)("td",{children:(0,c.jsxs)("a",{target:"_blank",href:"/api/documents/download/".concat(n.id),rel:"nofollow",children:[(0,c.jsx)("i",{className:r(n.extension)})," \xa0 ",n.name]})})]},n.id)})):(0,c.jsx)("tr",{children:(0,c.jsx)("td",{colSpan:"3",children:t("noDocuments")})})})]})})]})})),a=(0,s.withTranslation)("common")((function(n){var e=n.documents,t=n.t,s=(0,r.useRouter)().query;return(0,c.jsxs)("div",{children:["subsiteId"in s?(0,c.jsxs)("h2",{children:[" ",t("teamDocuments")]}):null,(0,c.jsx)(o,{documents:e.documents}),(0,c.jsx)("br",{}),(0,c.jsx)("br",{}),null!=e.inheritedDocuments&&e.inheritedDocuments.length>0?(0,c.jsxs)("div",{children:[(0,c.jsxs)("h2",{children:[" ",t("clubDocuments")," "]}),(0,c.jsx)(o,{documents:e.inheritedDocuments})]}):null]})}))},17734:function(n,e,t){"use strict";t.r(e);var c=t(47568),r=t(70655),s=t(85893),i=t(17280),o=t(1112),a=t(29473),u=t(19226),l=t(59130),d=t(43908),f=t(70167),h=t(45107),m=t(2962),x=t(11163),p=t(69913),j=function(n){var e=n.documents,t=n.siteData,c=n.t,r=(0,x.useRouter)().query,i=(0,p.Z)(t,null,r.section);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.PB,{title:"".concat(i," - ").concat(c("documents")),openGraph:{title:"".concat(i," - ").concat(c("documents"))}}),(0,s.jsxs)("div",{className:"sticky-top",children:[(0,s.jsx)(o.default,{}),(0,s.jsx)(u.default,{})]}),(0,s.jsx)("section",{id:"page-content",children:(0,s.jsx)("div",{className:"container",children:(0,s.jsx)("div",{className:"row",children:(0,s.jsxs)("div",{className:"col",children:[(0,s.jsx)("br",{}),(0,s.jsx)(h.Z,{documents:e})]})})})})]})};j.getInitialProps=function(){var n=(0,c.Z)((function(n,e){var t,c,s,o,u;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return t=n.req,c=n.query,s=(0,i.Z)(t).origin,o=(0,f.Z)(t),u=(0,d.Z)(c.section,e.sections),[4,a.Z.get("".concat(s,"/api/documents/section/").concat(u),o)];case 1:return[4,r.sent().json()];case 2:return[2,{documents:r.sent(),siteData:e,namespacesRequired:["common"]}]}}))}));return function(e,t){return n.apply(this,arguments)}}(),e.default=(0,l.withTranslation)("common")(j)},1329:function(n,e,t){"use strict";function c(n,e){var t=null;
1return n.forEach((function(n){n.id==e&&(t=n.name)})),t}t.d(e,{Z:function(){return c}})},69913:function(n,e,t){"use strict";t.d(e,{Z:function(){return i}});var c=t(1329),r=t(55223),s=t(90028);function i(n,e,t){var i=n.name;if(t){var o=(0,s.Z)(t,n.sections);i=i+" - "+(0,c.Z)(n.sections,o)}return e&&(i=i+" - "+(0,r.Z)(n.sections,e)),i}},55223:function(n,e,t){"use strict";function c(n,e){var t=null;return n.forEach((function(n){n.sectionSubsiteId==e&&(t=n.name),n.subsiteGroups.forEach((function(n){n.subsites.forEach((function(n){n.id==e&&(t=n.name)}))}))})),t}t.d(e,{Z:function(){return c}})},43908:function(n,e,t){"use strict";t.d(e,{Z:function(){return r}});var c=t(828);function r(n,e){var t=null;return Object.entries(e).forEach((function(e){var r=(0,c.Z)(e,2),s=(r[0],r[1]);s.url==n&&(t=s.sectionSubsiteId)})),t}}},function(n){n.O(0,[1725,9226,9774,2888,179],(function(){return e=65191,n(n.s=e);var e}));var e=n.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.