1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1032],{88958:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[section]/joukkueyhteydet",function(){return e(22708)}])},37753:function(n,t,e){"use strict";var s=e(47568),i=e(70655),r=e(85893),o=e(59130),c=e(67294),a=e(64290),l=e(17280),u=e(29473),d=e(70167),f=e(11163),h=e(90028),m=e(42977),p=e(77104),x=e(61129),j=e.n(x);t.Z=(0,o.withTranslation)("common")((function(n){var t=n.subsitecontacts,e=n.siteroles,o=n.t,x=n.siteType,g=function(){I(!1)},b=(0,c.useState)(t),v=b[0],_=b[1],Z=(0,c.useState)(!1),y=Z[0],I=Z[1],N=(0,c.useState)({}),k=N[0],L=N[1],w=(0,c.useState)({toggler:!1}),E=w[0],T=w[1],S=(0,c.useState)([]),C=S[0],H=S[1],M=(0,c.useContext)(a.Z).siteData,q=(0,f.useRouter)().query;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"form-group mb-2",style:{display:"inline-block"},children:(0,r.jsxs)("select",{className:"form-control",onChange:function(){var n=(0,s.Z)((function(n){return(0,i.__generator)(this,(function(t){return[2,F(n.target.value,x)]}))}));return function(t){return n.apply(this,arguments)}}(),children:[(0,r.jsx)("option",{value:"",children:o("selectRole")}),e.map((function(n){return(0,r.jsx)("option",{value:n.roleId,children:n.roleTitle},n.roleId)}))]})}),(0,r.jsx)("div",{className:"table-responsive text-left pb-3",children:(0,r.jsx)("table",{className:"table teamcontacts",children:(0,r.jsx)("tbody",{children:v.map((function(n){return(0,r.jsxs)(c.Fragment,{children:[(0,r.jsxs)("tr",{style:{color:"white",backgroundColor:"#343a40"},children:[(0,r.jsxs)("td",{children:[" ",n.sectionName," ",n.subsiteName]}),(0,r.jsx)("td",{}),(0,r.jsx)("td",{children:o("personrole")}),(0,r.jsx)("td",{children:o("personname")})]}),n.officialList.map((function(t,e){return 0==e?(0,r.jsxs)("tr",{children:[(0,r.jsxs)("td",{colSpan:"2",rowSpan:n.officialList.length,children:[n.subsiteImageId&&(0,r.jsx)("img",{className:"card-img-top",onClick:function(){return t=n.subsiteImageId,e=n.subsiteImageExtension,H(["".concat(M.staticUrl,"/imagebank/").concat(t,"_huge").concat(e)]),void setTimeout((function(){T({toggler:!E.toggler})}),100);var t,e},src:"".concat(M.staticUrl,"/imagebank/").concat(n.subsiteImageId,"_medium").concat(n.subsiteImageExtension),style:{width:"200px",cursor:"pointer",marginBottom:n.subsiteEmail?"16px":"0"}}),n.subsiteEmail&&(0,r.jsx)("p",{children:n.subsiteEmail})]}),(0,r.jsx)("td",{children:(0,r.jsx)("a",{onClick:function(){return O(n.officialList[e])},children:n.officialList[e].role})}),(0,r.jsx)("td",{children:(0,r.jsx)("a",{onClick:function(){return O(n.officialList[e])},children:n.officialList[e].personName})})]},"".concat(n.subsiteId,"-").concat(t.personId,"-").concat(t.roleId)):(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("a",{onClick:function(){return O(n.officialList[e])},children:n.officialList[e].role})}),(0,r.jsx)("td",{children:(0,r.jsx)("a",{onClick:function(){return O(n.officialList[e])},children:n.officialList[e].personName})})]},"".concat(n.subsiteId,"-").concat(t.personId,"-").concat(t.roleId))}))]},n.subsiteId)}))})})}),(0,r.jsxs)(m.Z,{show:y,onHide:g,children:[(0,r.jsx)(m.Z.Header,{closeButton:!0,children:(0,r.jsx)(m.Z.Title,{children:k.title})}),(0,r.jsxs)(m.Z.Body,{children:[k.role?(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:k.role}}):null,k.email?(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:k.email}}):null,k.phone?(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:k.phone}}):null,k.introduction?(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:k.introduction}}):null,(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:k.body}})]}),(0,r.jsx)(m.Z.Footer,{children:(0,r.jsx)(p.Z,{variant:"secondary",onClick:g,children:o("closeModal")})})]}),(0,r.jsx)(j(),{type:"image",toggler:E.toggler,sources:C},C[0])]});function O(n){return B.apply(this,arguments)}function B(){return(B=(0,s.Z)((function(n){var t,e,s,r;return(0,i.__generator)(this,(function(i){return t=null,e=null,s=null,""!=n.email&&null!==n.email&&(r=n.email,n.email.indexOf("@")>-1&&(r="<a href='mailto:"+n.email+"'>"+n.email+"</a>"),t="<strong>"+o("email")+":</strong> "+r),""!=n.phone&&null!==n.phone&&(e="<strong>"+o("phone")+":</strong> <a href='tel:"+n.phone+"'>"+n.phone+"</a>"),null!==n.introduction&&(s="<p><i>"+n.introduction+"</i></p>"),L({title:n.personName,role:"<h4>"+n.role+"</h4>",email:t,phone:e,introduction:s}),I(!0),[2]}))}
1))).apply(this,arguments)}function F(n,t){return P.apply(this,arguments)}function P(){return P=(0,s.Z)((function(n,t){var e,s,r,o;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return e=(0,l.Z)().origin,s=(0,d.Z)(),null,r=null,"section"!=t?[3,3]:(o=(0,h.Z)(q.section,M.sections),[4,u.Z.get("".concat(e,"/api/persons/subsitecontacts/section/").concat(o,"?roleId=").concat(n),s)]);case 1:return[4,i.sent().json()];case 2:return r=i.sent(),[3,6];case 3:return[4,u.Z.get("".concat(e,"/api/persons/subsitecontacts/site?roleId=").concat(n),s)];case 4:return[4,i.sent().json()];case 5:r=i.sent(),i.label=6;case 6:return _(r),[2]}}))})),P.apply(this,arguments)}}))},22708:function(n,t,e){"use strict";e.r(t);var s=e(47568),i=e(70655),r=e(85893),o=e(17280),c=e(1112),a=e(37753),l=e(19226),u=e(59130),d=e(29473),f=e(70167),h=e(90028),m=e(2962),p=e(11163),x=e(69913),j=function(n){var t=n.subsitecontacts,e=n.siteroles,s=n.siteData,i=n.t,o=(0,p.useRouter)().query,u=(0,x.Z)(s,null,o.section);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.PB,{title:"".concat(u," - ").concat(i("theOfficialsList")),openGraph:{title:"".concat(u," - ").concat(i("theOfficialsList"))}}),(0,r.jsxs)("div",{className:"sticky-top",children:[(0,r.jsx)(c.default,{}),(0,r.jsx)(l.default,{})]}),(0,r.jsx)("div",{className:"container pt-1 pb-4",children:(0,r.jsx)("div",{className:"row",children:(0,r.jsx)("div",{className:"col-12 p-4",children:(0,r.jsx)("div",{className:"container",children:(0,r.jsx)(a.Z,{siteType:"section",subsitecontacts:t,siteroles:e})})})})})]})};j.getInitialProps=function(){var n=(0,s.Z)((function(n,t){var e,s,r,c,a,l,u,m;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return e=n.query,s=n.req,r=(0,o.Z)(s).origin,c=(0,f.Z)(s),a=e.section,l=(0,h.Z)(a,t.sections),[4,d.Z.get("".concat(r,"/api/persons/subsitecontacts/section/").concat(l),c)];case 1:return[4,i.sent().json()];case 2:return u=i.sent(),[4,d.Z.get("".concat(r,"/api/persons/roles/section/").concat(l),c)];case 3:return[4,i.sent().json()];case 4:return m=i.sent(),[2,{subsitecontacts:u,siteroles:m,siteData:t,namespacesRequired:["common"]}]}}))}));return function(t,e){return n.apply(this,arguments)}}(),t.default=(0,u.withTranslation)("common")(j)},1329:function(n,t,e){"use strict";function s(n,t){var e=null;return n.forEach((function(n){n.id==t&&(e=n.name)})),e}e.d(t,{Z:function(){return s}})},69913:function(n,t,e){"use strict";e.d(t,{Z:function(){return o}});var s=e(1329),i=e(55223),r=e(90028);function o(n,t,e){var o=n.name;if(e){var c=(0,r.Z)(e,n.sections);o=o+" - "+(0,s.Z)(n.sections,c)}return t&&(o=o+" - "+(0,i.Z)(n.sections,t)),o}},55223:function(n,t,e){"use strict";function s(n,t){var e=null;return n.forEach((function(n){n.sectionSubsiteId==t&&(e=n.name),n.subsiteGroups.forEach((function(n){n.subsites.forEach((function(n){n.id==t&&(e=n.name)}))}))})),e}e.d(t,{Z:function(){return s}})}},function(n){n.O(0,[385,1129,9454,1725,9226,9774,2888,179],(function(){return t=88958,n(n.s=t);var t}));var t=n.O();_N_E=t}]);
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.