1"use strict";(self.webpackChunkgatsby_citius=self.webpackChunkgatsby_citius||[]).push([[9980],{15278:function(e,t,a){a.r(t);var n=a(62193),r=a.n(n),l=a(58156),o=a.n(l),i=a(96540),d=a(33829),c=a(24755),s=a(5588),m=a(59889),u=a(25753),p=a(72161),h=a(55735),_=a(71929),g=a(9889),E=a(74668),b=a(64618),v=a(19856),f=a(68369),y=a(20615),w=a(20312),F=a.n(w),k=a(5021);const{stripProtectedPlaceholders:A}=a(54535);t.default=e=>{let{data:t,location:a,pageContext:n}=e;const{t:l}=(0,c.useTranslation)(),{language:w}=(0,c.useI18next)(),{0:q,1:C}=(0,i.useState)(!1),I=t.news,x=I["Titular_"+w],B=I["Fecha_"+w],L=I.Fecha,R=I.slug,S=I["Entradilla_"+w],N=o()(n,"bodyPublicByLanguage."+w),z=n.protectedContentId,T=A(N),D=e=>e&&(e.caption||e.alternativeText)||"",P={path:[[l("newsSection"),g.R8],[l("news"),g.Er]],current:x},U=I.autores.map(e=>i.createElement("li",{key:(0,d.A)()},i.createElement(m.A,{to:"/team/"+e.slug},e.preferred_name.given_name+" "+e.preferred_name.family_name))),G=()=>{C(!1)};return i.createElement(u.A,{seoTitle:x,seoDescription:S,seoImage:I.og_image?I.og_image.localFile.publicURL:I.squared_photo?I.squared_photo.localFile.publicURL:t.headerImg.publicURL},i.createElement(p.Ay,{header:I.principal_photo&&i.createElement(h.A,{heading:!0,img:I.principal_photo?(0,s.c)(I.principal_photo.localFile.childImageSharp):(0,s.c)(t.headerImg.childImageSharp),alt:D(I.principal_photo)}),sidebar:i.createElement(i.Fragment,null,i.createElement(p.pL,{title:l("news")},i.createElement(p.qC,{data:B&&B,"data-typesense-field":"date_"+w})),!r()(I.autores)&&i.createElement(p.pL,null,i.createElement(p.qC,{title:l("news.authors"),DataComponent:"ul",data:U})),I.squared_photo&&i.createElement("div",{onClick:I.squared_photo_zoomable?()=>{window.innerWidth>768&&C(!0)}:null,className:I.squared_photo_zoomable?k.x_:"",style:{cursor:I.squared_photo_zoomable?"pointer":"default"}},i.createElement(s.G,{image:(0,s.c)(I.squared_photo.localFile.childImageSharp),alt:D(I.squared_photo)})),I.squared_photo_zoomable&&i.createElement(i.Fragment,null,i.createElement(F(),{isOpen:q,onRequestClose:G,contentLabel:"Image Modal",style:{overlay:{backgroundColor:"rgba(0, 0, 0, 0.75)"},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",maxHeight:"90vh",maxWidth:"90vw",position:"relative"}}},i.createElement(s.G,{image:(0,s.c)(I.squared_photo.localFile.childImageSharp),alt:D(I.squared_photo)})),q&&i.createElement("button",{onClick:G,style:{position:"fixed",top:"10px",right:"10px",width:"2.95rem",paddingLeft:"1rem",paddingRight:"1rem",background:"transparent",border:"none",fontSize:"2rem",cursor:"pointer",zIndex:1e3,color:"white",background:"black"}},"Ã"))),mainContent:i.createElement(i.Fragment,null,i.createElement(_.A,{data:P,clear:!0}),i.createElement("h1",{"data-typesense-field":"title_"+w},x),S&&i.createElement("p",null,S),I.video_position&&I.video_id&&"before-body"===I.video_position&&i.createElement(i.Fragment,null,i.createElement(y.A,{videoid:I.video_id})),N&&i.createElement(i.Fragment,null,i.createElement(E.A,{captions:!0,contentId:z,data:N,language:w}),i.createElement("div",{hidden:!0,"data-typesense-field":"body_"+w},i.createElement(b.A,{data:T,source:"markdown"}))),I.video_position&&I.video_id&&"after-body"===I.video_position&&i.createElement(i.Fragment,null,i.createElement(y.A,{videoid:I.video_id})),i.createElement(v.A,{t:l,url:a.href,text:x}))}),I.noticias_relacionadas&&I.noticias_relacionadas.length>0&&i.createElement(i.Fragment,null,i.createElement("h2",null,l("news.relatedNews")),i.createElement(f.Ay,{postCards:i.createElement(i.Fragment,null,I.noticias_relacionadas.map(e=>i.createElement(f.RK,{img:null!=e.principal_photo?(0,s.c)(e.principal_photo.localFile.childImageSharp):null,type:l("news.type"),date:e["Fecha_"+w],title:e["Titular_"+w],description:e["Entradilla_"+w],link:g.Er+"/"+e.slug,key:(0,d.A)()})))})),i.createElement("p",{hidden:!0,"data-typesense-field":"category"},l("news")),i.createElement("p",{hidden:!0,"data-typesense-field":"date"},Date.parse(L)),i.createElement("p",{hidden:!0,"data-typesense-field":"link"},g.Er+"/"+R),i.createElement("p",{hidden:!0,"data-typesense-field":"section"},"news_"+w))}},71929:function(e,t,a){a.d(t,{A:function(){return i}});var n=a(96540),r="breadcrumbs-module--Breadcrumbs--2482d",l=a(59889);const o=e=>{let{data:t,narrow:a,clear:o}=e,i="";for(const[r,u]of t.path)i=n.createElement(n.Fragment,null,i,n.createElement("div",{className:"breadcrumbs-module--Breadcrumbs_node--65700"},n.createElement(l.A,{to:u},r)));return i&&(i=n.createElement("div",{className:"breadcrumbs-module--Breadcrumbs_path--354b1"},i)),n.createElement("div",{className:("\n "+r+" "+(a?"breadcrumbs-module--Breadcrumbs___narrow--8bd2f":"")+" \n "+r+" "+(o?"breadcrumbs-module--Breadcrumbs___clear--1fe60":"")+" \n ").trim()},i,n.createElement("div",{className:"breadcrumbs-module--Breadcrumbs_current--5a441"},(void 0===(d=t.current)&&(d=[]),void 0===(c=100)&&(c=null===(m=d)||void 0===m?void 0:m.length),void 0===s&&(s="..."),d.length>=c?d.slice(0,c>
1=s.length?c-s.length:c)+s:d)));var d,c,s,m};var i=o;o.displayName="Breadcrumbs"}}]); 2//# sourceMappingURL=component---src-templates-news-news-template-jsx-1b90fbf71db0fb567b32.js.map
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.