(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{tcPx:function(e,l,i){"use strict";i.r(l),i.d(l,"query",(function(){return r}));var a=i("uCtA"),n=i("ERkP"),t=i.n(n),o=(i("+5lD"),i("wgY5")),d=i.n(o),s=(i("xD/0"),i("BkJp"));l.default=function(e){var l,i,n,o,r,c,m,u,_,f,p,h,g,v,E,b,w,N,L,y,M,z,Y,D=e.data,k=e.pageContext,x="/"+k.lang,F=["audiobook","comunicato_stampa","notizia","approfondimento","pubblicazione","corso","pagina","sezione"],I=(null===(l=D.node)||void 0===l||null===(i=l.relationships)||void 0===i||null===(n=i.field_correlazioni)||void 0===n||n.filter((function(e){return null==e.field_categoria_primaria||F.indexOf(e.field_categoria_primaria)>-1})).map((function(e){var l,i;return{title:e.field_categoria_primaria&&"audiobook"===e.field_categoria_primaria?"Ascolta la versione audiobook":e.field_titolo_esteso,slug:Object(s.c)(x+(null===(l=e.fields)||void 0===l?void 0:l.slug),"INR Attimo Decisivo",null===(i=e.relationships)||void 0===i?void 0:i.field_sottodominio.name)}})),null===(o=D.node)||void 0===o||null===(r=o.relationships)||void 0===r||null===(c=r.field_allegati)||void 0===c?void 0:c.map((function(e){var l,i,a;return{title:"Scarica la versione PDF",slug:null==e||null===(l=e.relationships)||void 0===l||null===(i=l.field_allegato)||void 0===i||null===(a=i.localFile)||void 0===a?void 0:a.publicURL}}))),R={name:D.node.title,slug:D.node.fields&&D.node.fields.slug?D.node.fields.slug:null,active:!0};return d.a.locale("it"),t.a.createElement(a.t,{basePathNavbar:"https://www.iononrischio.gov.it",menuItems:k.menu,slugTraduzione:D.node.relationships.field_riferimento_traduzione?D.node.relationships.field_riferimento_traduzione.fields.slug:"",pageId:D.node.drupal_internal__nid,title:D.node.title,env:"prod",lang:k.lang,elencoId:null===(m=D.elenco)||void 0===m?void 0:m.drupal_internal__nid,breadcrumbItem:R,immagineShare:(null===(u=D.node.relationships)||void 0===u?void 0:u.field_immagine_dettaglio)?"https://www.iononrischio.gov.it"+(null===(_=D.node.relationships)||void 0===_||null===(f=_.field_immagine_dettaglio)||void 0===f||null===(p=f.relationships)||void 0===p||null===(h=p.image)||void 0===h||null===(g=h.localFile)||void 0===g?void 0:g.publicURL):"https://www.iononrischio.gov.it"+(null===(v=k.socialImg)||void 0===v||null===(E=v.relationships)||void 0===E||null===(b=E.image)||void 0===b||null===(w=b.localFile)||void 0===w?void 0:w.publicURL),abstractShare:(null===(N=D.node.body)||void 0===N?void 0:N.processed)?D.node.body.processed.replace(/<\/?[^>]+(>|$)/g,""):"",slug:"https://www.iononrischio.gov.it/"+k.lang+D.node.fields.slug,minisiti:s.d,menuFooterItems:k.menuFooter,isIoNonRischio:!0},(null===(L=D.node)||void 0===L?void 0:L.field_sfoglia_embed)?t.a.createElement("div",{className:"container"},t.a.createElement("div",{className:"px-custom"},t.a.createElement("div",{className:"row"},t.a.createElement("div",{className:"col-12"},t.a.createElement("section",null,t.a.createElement("h1",null,D.node.field_titolo_esteso),t.a.createElement("div",{className:"redazionale",dangerouslySetInnerHTML:{__html:D.node.body?D.node.body.processed:""}}),Array.isArray(D.node.relationships.field_allegati)&&D.node.relationships.field_allegati.length>0&&D.node.relationships.field_allegati.map((function(e){var l,i,n,o;return D.node.field_versione_sfogliabile&&"pdf"===(null===(l=e.relationships.field_allegato)||void 0===l||null===(i=l.localFile)||void 0===i?void 0:i.extension)&&t.a.createElement(a.x,{isEmbed:!0,url:null===(n=e.relationships.field_allegato)||void 0===n||null===(o=n.localFile)||void 0===o?void 0:o.publicURL})})),D.node.relationships.field_accordion&&D.node.relationships.field_accordion.length>0?t.a.createElement(a.a,{id:"1"},D.node.relationships.field_accordion.map((function(e){return t.a.createElement(a.b,{title:e.field_titolo?e.field_titolo:"",body:e.field_testo?e.field_testo.processed:"",id:e.drupal_internal__id,accordionId:"1",img:e.relationships.field_immagine,tabella:e.field_tabella?e.field_tabella.processed:null,video:e.relationships.field_video,links:e.relationships?Object(s.a)(e.relationships.field_link_interni,k.lang,"Io Non Rischio"):null})}))):null,t.a.createElement("section",{className:"attachments-and-links"},I&&I.length>0&&t.a.createElement(a.r,{titoloSezione:"Altre versioni"},t.a.createElement(a.s,{links:I})))))))):t.a.createElement("section",{className:"container"},t.a.createElement("div",{className:"px-custom"},t.a.createElement("article",null,t.a.createElement("div",{className:"category-top"},t.a.createElement("span",{className:"data"},d()(D.node.field_data).format("D MMMM Y"))),t.a.createElement("h1",null,D.node.field_titolo_esteso),t.a.createElement("div",{className:"row"},D.node.relationships.field_immagine_dettaglio&&t.a.createElement("div",{className:"col-12 col-md-6 col-xl-3"},t.a.createElement("img",{alt:D.node.relationships.field_immagine_dettaglio.field_alt,src:null===(y=D.node.relationships.field_immagine_dettaglio)||void 0===y||null===(M=y.relationships)||void 0===M||null===(z=M.field_immagine)||void 0===z||null===(Y=z.localFile)||void 0===Y?void 0:Y.publicURL,className:"img-fluid w-100 mb-3"})),t.a.createElement("div",{className:"col-12 col-md-6 col-xl-5"},t.a.createElement("div",{dangerouslySetInnerHTML:{__html:D.node.body?D.node.body.processed:""}})),t.a.createElement("div",{className:"col-12 col-md-6 col-xl-4"},t.a.createElement("div",{className:"it-list-wrapper"},t.a.createElement("ul",{className:"it-list"},D.node.field_autore&&t.a.createElement("li",null,t.a.createElement("div",null,t.a.createElement("span",{className:"font-weight-semibold"},"Autore: ")," ",D.node.field_autore)),D.node.field_curatore&&t.a.createElement("li",null,t.a.createElement("div",null,t.a.createElement("span",{className:"font-weight-semibold"},"Curatore: ")," ",D.node.field_curatore)),D.node.field_editore&&t.a.createElement("li",null,t.a.createElement("div",null,t.a.createElement("span",{className:"font-weight-semibold"},"Editore: ")," ",D.node.field_editore)),D.node.field_lingua&&t.a.createElement("li",null,t.a.createElement("div",null,t.a.createElement("span",{className:"font-weight-semibold"},"Lingua: ")," ",D.node.field_lingua)),D.node.field_pagine&&t.a.createElement("li",null,t.a.createElement("div",null,t.a.createElement("span",{className:"font-weight-semibold"},"Pagine: ")," ",D.node.field_pagine)),D.node.field_anno_pubblicazione&&t.a.createElement("li",null,t.a.createElement("div",null,t.a.createElement("span",{className:"font-weight-semibold"},"Anno di pubblicazione: ")," ",D.node.field_anno_pubblicazione)),D.node.field_edizione&&t.a.createElement("li",null,t.a.createElement("div",null,t.a.createElement("span",{className:"font-weight-semibold"},"Edizione: ")," ",D.node.field_edizione)),D.node.field_isbn&&t.a.createElement("li",null,t.a.createElement("div",null,t.a.createElement("span",{className:"font-weight-semibold"},"ISBN: ")," ",D.node.field_isbn)),t.a.createElement("li",null,t.a.createElement("div",null,t.a.createElement("span",{className:"font-weight-semibold"},"Disponibilità: "),D.node.field_richiedi_una_copia?"Si":"No")),t.a.createElement("li",null,t.a.createElement("div",null,t.a.createElement("span",{className:"font-weight-semibold"},"Disponibilità online: ")," ",Array.isArray(D.node.relationships.field_allegati)&&D.node.relationships.field_allegati.length>0?"Si":"No")))),t.a.createElement("div",{className:"article-file-actions"},Array.isArray(D.node.relationships.field_allegati)&&D.node.relationships.field_allegati.length>0?D.node.relationships.field_allegati.map((function(e){var l,i,n,o,d,s;return t.a.createElement("ul",null,t.a.createElement("li",null,t.a.createElement("a",{href:null===(l=e.relationships.field_allegato)||void 0===l||null===(i=l.localFile)||void 0===i?void 0:i.publicURL,download:!0},t.a.createElement(a.z,{name:"download"}),t.a.createElement("span",null,"Scarica"))),D.node.field_versione_sfogliabile&&"pdf"===(null===(n=e.relationships.field_allegato)||void 0===n||null===(o=n.localFile)||void 0===o?void 0:o.extension)&&t.a.createElement(a.x,{url:"https://www.iononrischio.gov.it"+(null===(d=e.relationships.field_allegato)||void 0===d||null===(s=d.localFile)||void 0===s?void 0:s.publicURL)}),D.node.field_richiedi_una_copia&&t.a.createElement("li",null,t.a.createElement("a",{href:"mailto:"+D.node.field_richiedi_una_copia},t.a.createElement(a.z,{name:"files"}),t.a.createElement("span",null,"Richiedi una copia"))))})):t.a.createElement(t.a.Fragment,null,D.node.field_richiedi_una_copia&&t.a.createElement("ul",null,t.a.createElement("li",null,t.a.createElement("a",{href:"mailto:"+D.node.field_richiedi_una_copia},t.a.createElement(a.z,{name:"files"}),t.a.createElement("span",null,"Richiedi una copia"))))))))),t.a.createElement(a.w,null))))};var r="1938739106"},"xD/0":function(e,l,i){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(i("wgY5"))}}]); //# sourceMappingURL=component---src-templates-pubblicazione-template-it-jsx-2b97ca7cc11151fa8587.js.map