(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{"s/UR":function(e,i,l){"use strict";l.r(i),l.d(i,"query",(function(){return s}));var t=l("uCtA"),n=l("ERkP"),o=l.n(n),a=l("pHzT"),r=l("BkJp"),d=l("uVAr");i.default=function(e){var i,l,n,s,c,u,_,m,p,f,g,v,h,b,E,z,O,j,k,y,S,x,A,w,F,I,N,U,R,C,L,M,P,T,V,H,J,q,B,$,D,G=e.data,K=e.pageContext,Q="/"+K.lang,W=(Object(d.a)(K.menu,K.lang,"prod",null,G.node.drupal_internal__nid),Object(d.a)(K.menuMinisito,K.lang,"prod",null,G.node.drupal_internal__nid)),X=Object(d.b)(W,G.node.drupal_internal__nid,"idContenuto","children"),Y=!(!X||Array.isArray(X.children)&&X.children.length<=0&&!X.idParent),Z=["comunicato_stampa","notizia","approfondimento","pubblicazione","corso","pagina","sezione"],ee=["galleria_foto","galleria_flickr","video"],ie=G.node.relationships.field_correlazioni.filter((function(e){return null==e.field_categoria_primaria||Z.indexOf(e.field_categoria_primaria)>-1})).map((function(e){return{title:(e.field_categoria_primaria?""+Object(r.b)(e.field_categoria_primaria).charAt(0).toUpperCase()+Object(r.b)(e.field_categoria_primaria).replace(/_/g," ").slice(1)+"":"Section")+" - "+e.field_titolo_esteso,slug:Object(r.c)(Q+e.fields.slug,"Eventi",e.relationships.field_sottodominio.name)}})),le=G.node.relationships.field_correlazioni.filter((function(e){return ee.indexOf(e.field_categoria_primaria)>-1})).map((function(e){return{title:("video"===e.field_categoria_primaria?"Video":"Photo")+" - "+e.field_titolo_esteso,slug:Object(r.c)(Q+e.fields.slug,"Eventi",e.relationships.field_sottodominio.name)}})),te=G.node.relationships.field_correlazioni.filter((function(e){return"bando_di_gara"===e.field_categoria_primaria})).map((function(e){return{title:(e.field_categoria_primaria?""+Object(r.b)(e.field_categoria_primaria).charAt(0).toUpperCase()+Object(r.b)(e.field_categoria_primaria).replace(/_/g," ").slice(1)+"":"")+" - "+e.field_titolo_esteso,slug:Object(r.c)(Q+e.fields.slug,"Eventi",e.relationships.field_sottodominio.name)}})),ne=G.node.relationships.field_correlazioni.filter((function(e){return"mappa"===e.field_categoria_primaria})).map((function(e){return{title:(e.field_categoria_primaria?""+Object(r.b)(e.field_categoria_primaria).charAt(0).toUpperCase()+Object(r.b)(e.field_categoria_primaria).replace(/_/g," ").slice(1)+"":"")+" - "+e.field_titolo_esteso,slug:Object(r.c)(Q+e.fields.slug,"Eventi",e.relationships.field_sottodominio.name)}})),oe=G.node.relationships.field_correlazioni.filter((function(e){return"timeline"===e.field_categoria_primaria})).map((function(e){return{title:(e.field_categoria_primaria?""+Object(r.b)(e.field_categoria_primaria).charAt(0).toUpperCase()+Object(r.b)(e.field_categoria_primaria).replace(/_/g," ").slice(1)+"":"")+" - "+e.field_titolo_esteso,slug:Object(r.c)(Q+e.fields.slug,"Eventi",e.relationships.field_sottodominio.name)}})),ae=G.node.relationships.field_normative.map((function(e){return{title:e.field_titolo_esteso,slug:Object(r.c)(Q+e.fields.slug,"Eventi",e.relationships.field_sottodominio.name)}})),re=G.node.field_link_esterni?G.node.field_link_esterni.map((function(e){return{title:e.title,titleLinkEsterno:"Val al sito "+e.uri,slug:e.uri}})):[];return o.a.createElement(t.t,{isEventi:!0,menuItems:K.menu,slugTraduzione:G.node.relationships.field_riferimento_traduzione?G.node.relationships.field_riferimento_traduzione.fields.slug:"",pageId:G.node.drupal_internal__nid,title:G.node.title,env:"prod",lang:K.lang,domain:"Events",subdomainMenuItems:K.menuMinisito,basePathNavbar:"https://www.protezionecivile.gov.it",minisiti:r.d,immagineShare:(null===(i=G.node.relationships)||void 0===i?void 0:i.field_immagine_dettaglio)?"https://eventi.protezionecivile.gov.it"+(null===(l=G.node.relationships)||void 0===l||null===(n=l.field_immagine_dettaglio)||void 0===n||null===(s=n.relationships)||void 0===s||null===(c=s.image)||void 0===c||null===(u=c.localFile)||void 0===u?void 0:u.publicURL):"https://eventi.protezionecivile.gov.it"+(null===(_=K.socialImg)||void 0===_||null===(m=_.relationships)||void 0===m||null===(p=m.image)||void 0===p||null===(f=p.localFile)||void 0===f?void 0:f.publicURL),abstractShare:(null===(g=G.node.body)||void 0===g?void 0:g.processed)?G.node.body.processed.replace(/<\/?[^>]+(>|$)/g,""):"",slug:"https://eventi.protezionecivile.gov.it/"+K.lang+G.node.fields.slug,menuFooterItems:K.menuFooter},o.a.createElement("div",{className:"container"},o.a.createElement("div",{className:"px-custom"},o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-12"+(X&&X.children.length>0?" col-xl-8":"")},o.a.createElement("article",null,o.a.createElement("h1",null,G.node.field_titolo_esteso),G.node.field_box_primo_piano_immagine?X&&X.children.length>0?o.a.createElement(o.a.Fragment,null,o.a.createElement("p",null,o.a.createElement("img",{src:null==G||null===(v=G.node)||void 0===v||null===(h=v.relationships)||void 0===h||null===(b=h.field_immagine_anteprima)||void 0===b?void 0:b.relationships.image.localFile.childImageSharp.fluid.src,alt:null==G||null===(E=G.node)||void 0===E||null===(z=E.relationships)||void 0===z||null===(O=z.field_immagine_anteprima)||void 0===O?void 0:O.field_alt,className:"img-fluid w-100"})),o.a.createElement("div",{className:"abstract-sez-minisito",dangerouslySetInnerHTML:{__html:null==G||null===(j=G.node)||void 0===j||null===(k=j.field_abstract)||void 0===k?void 0:k.processed}})):o.a.createElement(t.j,{body:G.node.field_abstract?G.node.field_abstract.processed:"",image:null==G||null===(y=G.node)||void 0===y||null===(S=y.relationships)||void 0===S?void 0:S.field_immagine_anteprima,testoIntero:!0}):null,o.a.createElement("div",{dangerouslySetInnerHTML:{__html:G.node.body?G.node.body.processed:""}}),o.a.createElement("section",null,Array.isArray(G.node.relationships.field_allegati)&&G.node.relationships.field_allegati.length>0&&o.a.createElement(t.d,{titoloSezione:"Attachments"},Array.isArray(G.node.relationships.field_allegati)?G.node.relationships.field_allegati.map((function(e){var i,l,n,a,r,d,s,c,u,_;return o.a.createElement(t.e,{titolo:e.field_titolo_esteso,descrizione:null===(i=e.relationships)||void 0===i||null===(l=i.field_allegato)||void 0===l?void 0:l.description,dimension:null===(n=e.relationships)||void 0===n||null===(a=n.field_allegato)||void 0===a?void 0:a.filesize,slug:null===(r=e.relationships)||void 0===r||null===(d=r.field_allegato)||void 0===d||null===(s=d.localFile)||void 0===s?void 0:s.publicURL,extension:null===(c=e.relationships)||void 0===c||null===(u=c.field_allegato)||void 0===u||null===(_=u.localFile)||void 0===_?void 0:_.extension})})):o.a.createElement(t.e,{titolo:null===(x=G.node.relationships)||void 0===x||null===(A=x.field_allegati)||void 0===A?void 0:A.field_titolo_esteso,descrizione:(null===(w=G.node)||void 0===w||null===(F=w.relationships)||void 0===F||null===(I=F.field_allegati)||void 0===I?void 0:I.relationships)?null===(N=G.node.relationships.field_allegati.relationships.field_allegato)||void 0===N?void 0:N.description:"",dimension:(null===(U=G.node)||void 0===U||null===(R=U.relationships)||void 0===R||null===(C=R.field_allegati)||void 0===C?void 0:C.relationships)?null===(L=G.node.relationships.field_allegati.relationships.field_allegato)||void 0===L?void 0:L.filesize:"",slug:(null===(M=G.node)||void 0===M||null===(P=M.relationships)||void 0===P||null===(T=P.field_allegati)||void 0===T?void 0:T.relationships)?null===(V=G.node.relationships.field_allegati.relationships.field_allegato)||void 0===V||null===(H=V.localFile)||void 0===H?void 0:H.publicURL:"",extension:(null===(J=G.node)||void 0===J||null===(q=J.relationships)||void 0===q||null===(B=q.field_allegati)||void 0===B?void 0:B.relationships)?null===($=G.node.relationships.field_allegati.relationships.field_allegato)||void 0===$||null===(D=$.localFile)||void 0===D?void 0:D.extension:""})),ae&&ae.length>0&&o.a.createElement(t.r,{titoloSezione:"Regulations"},o.a.createElement(t.s,{links:ae})),te&&te.length>0&&o.a.createElement(t.r,{titoloSezione:"Notices and calls for tender"},o.a.createElement(t.s,{links:te})),ie&&ie.length>0&&o.a.createElement(t.r,{titoloSezione:"Read more"},o.a.createElement(t.s,{links:ie})),le&&le.length>0&&o.a.createElement(t.r,{titoloSezione:"Photos and Videos"},o.a.createElement(t.s,{links:le})),ne&&ne.length>0&&o.a.createElement(t.r,{titoloSezione:"Maps"},o.a.createElement(t.s,{links:ne})),oe&&oe.length>0&&o.a.createElement(t.r,{titoloSezione:"Timeline"},o.a.createElement(t.s,{links:oe})),re&&re.length>0&&o.a.createElement(t.r,{titoloSezione:"External links"},o.a.createElement(t.s,{links:re}))),o.a.createElement(t.x,null))),Y&&o.a.createElement("div",{className:"col-12 col-xl-4"},o.a.createElement(a.a,{menuItems:[X]}))))))};var s="4128452434"}}]);
//# sourceMappingURL=component---src-templates-sezione-senza-anticipazioni-template-en-jsx-63e6a99df1d48f745559.js.map