PageSourceSearch

https://fondoambiente.it/_next/static/chunks/f71bf1cd6ef2c15e9e08b2689504fd61775be1e8.030e9744631910d70220.js

js fondoambiente.it collected 2026-09-24 08:52:03 UTC 48,205 bytes, 1 lines download raw bytes

1(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[27,38],{CWX0:function(t,e,n){"use strict";n.r(e);var i=n("QsI/"),o=n("9fIP"),r=n("MMYH"),a=n("K/z8"),c=n("sRHE"),l=n("8K1b"),u=n("cxan"),s=n("ERkP"),d=n.n(s),f=n("j/s1"),m=n("0D0S"),p=n.n(m),g=n("pqH2"),h=n("UxPf"),b=n("XSy+"),v=n("ncWu"),_=(n("K5XM"),n("QtE3")),y=n("3Oy2"),O=n("PZBX"),j=n("3e0z"),w=d.a.createElement;function C(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function r(n,i,o,r){var l=i&&i.prototype instanceof c?i:c,u=Object.create(l.prototype);return I(u,"_invoke",function(n,i,o){var r,c,l,u=0,s=o||[],d=!1,f={p:0,n:0,v:t,a:m,f:m.bind(t,4),d:function(e,n){return r=e,c=0,l=t,f.n=n,a}};function m(n,i){for(c=n,l=i,e=0;!d&&u&&!o&&e<s.length;e++){var o,r=s[e],m=f.p,p=r[2];n>3?(o=p===i)&&(l=r[(c=r[4])?5:(c=3,3)],r[4]=r[5]=t):r[0]<=m&&((o=n<2&&m<r[1])?(c=0,f.v=i,f.n=r[1]):m<p&&(o=n<3||r[0]>i||i>p)&&(r[4]=n,r[5]=i,f.n=p,c=0))}if(o||n>1)return a;throw d=!0,i}return function(o,s,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&m(s,p),c=s,l=p;(e=c<2?t:l)||!d;){r||(c?c<3?(c>1&&(f.n=-1),m(c,l)):f.n=l:f.v=l);try{if(u=2,r){if(c||(o="next"),e=r[o]){if(!(e=e.call(r,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,c<2&&(c=0)}else 1===c&&(e=r.return)&&e.call(r),c<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),c=1);r=t}else if((e=(d=f.n<0)?l:n.call(i,f))!==a)break}catch(e){r=t,c=1,l=e}finally{u=1}}return{value:e,done:d}}}(n,o,r),!0),u}var a={};function c(){}function l(){}function u(){}e=Object.getPrototypeOf;var s=[][i]?e(e([][i]())):(I(e={},i,(function(){return this})),e),d=u.prototype=c.prototype=Object.create(s);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,I(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=u,I(d,"constructor",u),I(u,"constructor",l),l.displayName="GeneratorFunction",I(u,o,"GeneratorFunction"),I(d),I(d,o,"Generator"),I(d,i,(function(){return this})),I(d,"toString",(function(){return"[object Generator]"})),(C=function(){return{w:r,m:f}})()}function I(t,e,n,i){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(I=function(t,e,n,i){function r(e,n){I(t,e,(function(t){return this._invoke(e,n,t)}))}e?o?o(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(r("next",0),r("throw",1),r("return",2))})(t,e,n,i)}function z(t,e,n){return e=Object(c.a)(e),Object(a.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(c.a)(t).constructor):e.apply(t,n))}var k=p()().publicRuntimeConfig.APP_DOMAIN,x=function(t){return w(_.ListCardWithTooltips,Object(u.a)({},t,{notLazy:!0,subtitleSansSerif:!0}))},N=function(t){var e=t.id,n=t.children;return w("div",{id:e},n)},S=function(t){},P=function(t){function e(t){var n;return Object(o.a)(this,e),(n=z(this,e,[t])).state={modalOpen:!1},n.handleCloseModal=n.handleCloseModal.bind(n),n}return Object(l.a)(e,t),Object(r.a)(e,[{key:"handleCloseModal",value:function(){var t=this.state.modalOpen;this.setState({modalOpen:!t})}},{key:"render",value:function(){var t=this.state.modalOpen,e=this.props,n=e.luogo,i=e.headerData,o=e.closestGfas,r=e.sameGfas,a=n.gfa,c=n.fl_bene_fai,l=(n.nome,a.button_label),s=a.button_url,f=a.button_target,m=a.alert,p=!!Object(h.f)(n.gfa.descrizione_itinerario)&&{icon:"map",content:"<b>".concat(a.itinerario,"</b><br/><br/>").concat(Object(h.f)(n.gfa.descrizione_itinerario)?n.gfa.descrizione_itinerario:""),title:"Itinerario"},g=Object(h.f)(n.gfa.descrizione_itinerario)?{id:"correlati",label:"Scopri gli altri luoghi dell'itinerario",handleAnchorClick:S}:null;return w(d.a.Fragment,null,Object(v.q)(Object(v.n)(n)),w(_.OverlayHeader,Object(h.j)(i)),w(_.Hero,Object(v.k)(this.props)),w(_.Background,{color:"grey"},w(_.FogliaEvento,null,w(O.d,null,w(_.Sidebar,null,w(y.b,Object(h.g)(n)),w(y.b,Object(h.i)(a)),!!a.note_orario_comuni.trim()&&w(y.d,{title:"Note per la visita"},w(j.a,{text:a.note_orario_comuni,limit:50})),a.note_mobilita_sostenibile&&!!a.note_mobilita_sostenibile.trim()&&w(y.d,{title:"Note Mobilit\xe0 Sostenibile"},w(j.a,{text:a.note_mobilita_sostenibile,limit:50}
1)),!!a.button_url&&!!a.button_url.trim()&&w(y.b,Object(h.h)(a)),!!a.note_disabili&&w(y.d,{title:"LUOGO PARZIALMENTE ACCESSIBILE"},w(j.a,{text:a.note_disabili,limit:50})),!a.note_disabili&&!a.fl_accesso_disabili&&w(y.f,{icon:"notaccessibility",title:"LUOGO NON ACCESSIBILE",content:"il percorso di visita non \xe8 fruibile a causa di barriere architettoniche che impediscono l\u2019accesso al luogo"}),Object(v.l)(n).map((function(t){return w(y.e,{key:t.title,title:t.title,icon:t.icon})})),p&&w(y.e,p),g&&w(y.c,g))),w(O.c,null,w(_.Padder,{size:"medium"},w(_.Wrapper,{size:"small"},m&&w(F,null,w(_.IconCard,{icon:"alert",title:"Attenzione!",text:m,horizontal:!0,size:"lg"})),w(_.Wrapper,{size:"large"},Object(v.i)(n)),w(B,null,w(_.RichText,{text:n.gfa.hero_subtext})),w(_.RichText,{text:Object(v.g)(a)}),Object(h.f)(l)&&Object(h.f)(s)&&w(M,null,w(_.Button,{link:s,target:f||"_self"},l)),(Object(h.f)(a.ringraziamenti)||Object(h.f)(a.patrocini)||Object(h.f)(a.collaborazioni))&&w(M,null,w(_.Button,{onClick:this.handleCloseModal},"Ringraziamenti")))))),!!n.gfa.iniziative_speciali&&w(D,{id:"iniziative-speciali"},w(_.FogliaEvento,null,w(O.d,null),w(O.c,null,w(_.Wrapper,{size:"small"},w("h3",{class:"iniziative-speciali"},"Iniziative speciali"),w(_.RichText,{style:"margin-left: 26.5rem;",color:"white",text:n.gfa.iniziative_speciali}))))),!!n.gfa.evento_giovani&&w(H,{id:"iniziative-speciali-giovani"},w(_.FogliaEvento,null,w(O.d,null),w(O.c,null,w(_.Wrapper,{size:"small"},w("h3",{class:"iniziative-speciali"},"Iniziative speciali dedicate ai giovani"),w(_.RichText,{style:"margin-left: 26.5rem;",color:"white",text:n.gfa.evento_giovani}))))),n.gfa&&n.gfa.url_fascia_sponsor&&w(E,{alt:"",src:n.gfa.url_fascia_sponsor}),w(N,{id:g&&g.id},w(_.Wrapper,{size:"large"},function(t,e){return w(d.a.Fragment,null,Object(h.f)(e)&&w(_.Padder,{size:"small"},w(_.ListOfCards,{wrap:"big",title:"Altri luoghi presenti in questo itinerario",cards:e.map(v.j),CardComponent:x,vertical:!0})))}(0,r))),w(_.Wrapper,{size:"large"},function(t,e){var n=t&&t.provincia&&t.provincia.nome;return w(d.a.Fragment,null,e&&e.length>0&&w(_.Padder,{size:"small"},w(_.ListOfCards,{wrap:"big",title:"Aperture vicine",cards:e.map(v.f),CardComponent:function(t){return w(x,t)},vertical:!0})),e&&e.length>0&&t.coord_geo_lat&&t.coord_geo_long&&w(R,null,w(_.Button,{link:"/il-fai/grandi-campagne/giornate-fai-autunno/i-luoghi-aperti/?provincia=".concat(n),target:"_self"},"TUTTE LE APERTURE VICINE")))}(n,o)),w(L,null,c&&w(_.FasciaCta,Object(u.a)({},Object(v.h)(n),{pad:"medium",color:"green"})),w(_.FasciaNewsletterApp,null))),t&&w(_.ModalOverlay,{onClose:this.handleCloseModal},T(a)))}}],[{key:"getInitialProps",value:function(){var t=Object(i.a)(C().m((function t(e){var n,i,o,r,a,c,l,u;return C().w((function(t){for(;;)switch(t.n){case 0:return n=e.query,i=n.slug,t.n=1,Object(g.c)("luoghi",{slug:i,with:["gfa","comune","provincia","gfa.media","rank","ldc"],has:["gfa"]}).then((function(t){return t.data[0]}));case 1:return o=t.v,t.n=2,Object(b.d)();case 2:return r=t.v,t.n=3,Object(b.a)(o);case 3:return a=t.v,t.n=4,Object(b.h)(o.gfa.id_gf_itinerario,o.id);case 4:return c=t.v,l="/luoghi/".concat(i,"?gfa"),u={title:o.gfa.title,description:o.gfa.metadescription,url:"".concat(k).concat(l),ogImage:Object(h.a)(o.gfa)},t.a(2,{luogo:o,headerData:r,closestGfas:a,sameGfas:c,seo:u,permalink:l})}}),t)})));return function(e){return t.apply(this,arguments)}}()}])}(s.Component),T=function(t){return w(W,null,w(q,null,"Ringraziamenti"),Object(h.f)(t.patrocini)&&w(A,null,w(G,null,"CON IL PATROCINIO DI"),t.patrocini),Object(h.f)(t.ringraziamenti)&&w(A,null,w(G,null,"SI RINGRAZIA PER IL SUPPORTO LOCALE"),t.ringraziamenti),Object(h.f)(t.collaborazioni)&&w(A,null,w(G,null,"HANNO INOLTRE COLLABORATO"),t.collaborazioni))},E=f.d.img.withConfig({displayName:"Luogo__FasciaSponsor",componentId:"sc-24szyo-0"})(["width:100%;height:100%;object-fit:contain;"]),L=f.d.div.withConfig({displayName:"Luogo__WrapperFascia",componentId:"sc-24szyo-1"})(["padding-top:3rem;"]),F=f.d.div.withConfig({displayName:"Luogo__IconCardWrapper",componentId:"sc-24szyo-2"})(["background:#fff;padding:1rem;margin-bottom:1rem;"]),M=f.d.div.withConfig({displayName:"Luogo__ButtonWrap",componentId:"sc-24szyo-3"})(["margin-top:2rem;padding:0 0.625rem;"]),R=f.d.div.withConfig({displayName:"Luogo__CenterBtn",componentId:"sc-24szyo-4"})(["text-align:center;"]),W=f.d.div.withConfig({displayName:"Luogo__ModalOverlayContent",componentId:"sc-24szyo-5"})(["padding:4rem 5rem;margin:0 auto;"]),q=f.d.h2.withConfig({displayName:"Luogo__ModalTitle",componentId:"sc-24szyo-6"})(["text-align:center;font-size:1.6rem;margin-bottom:3rem;font-weight:bold;"]),A=f.d.div.withConfig({displayName:"Luogo__ModalContentBlock",componentId:"sc-24szyo-7"})(["margin-bottom:2rem;"]),G=f.d.h2.withConfig({displayName:"Luogo__ModalSubtitle",componentId:"sc-24szyo-8"})(["font-weight:bold;"]),B=f.d.div.withConfig({displayName:"Luogo__TitleSubGallery",componentId:"sc-24szyo-9"})(["font-weight:bold;margin-bottom:2rem;margin-top:1rem;"]),D=f.d.div.withConfig({displayName:"Luogo__FasciaIniziativeSpeciali",componentId:"sc-24szyo-10"})(["background:#e74f30;color:white !important;padding-top:2rem !important;padding-bottom:2rem !important;margin-bottom:2rem !important;"]),H=f.d.div.withConfig({displayName:"Luogo__FasciaIniziativeSpecialiGiovani",componentId:"sc-24szyo-11"})(["background:#054238;color:white !important;margin-top:2rem !important;padding-top:2rem !important;padding-bottom:2rem !important"]);e.default=P},PtrQ:function(t,e,n){"use strict";n.r(e);var i=n("QsI/"),o=n("9fIP"),r=n("MMYH"),a=n("K/z8"),c=n("sRHE"),l=n("8K1b"),u=n("cxan"),s=n("ERkP"),d=n.n(s),f=n("j/s1"),m=n("0D0S"),p=n.n(m),g=(n("4Sj/"),n("QtE3")),h=n("PZBX"),b=(n("3Oy2"),n("Lm5w")),v=(d.a.createElement,p()().publicRuntimeConfig),_=(v.PLATFORM,v.APP_DOMAIN,f.d.div.withConfig({displayName:"RaccoltaMateriali__RaccoltaMaterialiWrap",componentId:"sc-1t4qycd-0"})(["display:block;"]),f.d.div.withConfig({displayName:"RaccoltaMateriali__RaccoltaMaterialiTitle",componentId:"sc-1t4qycd-1"})(["font-size:3rem;text-align:center;margin-bottom:3rem;
1"]),f.d.p.withConfig({displayName:"RaccoltaMateriali__CanvaDisclaimer",componentId:"sc-1t4qycd-2"})(["font-style:italic;margin-bottom:2rem;line-height:1.4;"]),n("ezIv")),y=n("JXgi"),O=n("UxPf"),j=n("pqH2"),w=n("Ehz4"),C=(n("78xW"),n("ysqo")),I=n.n(C),z=d.a.createElement,k="https://fai-website.imgix.net/static/placeholder_2.png?h=630&w=1200&fit=crop",x=function(t){return t.find((function(t){return 1===t.rank}))},N=function(t,e){return e.find((function(e){return e.nr_anno===t}))},S=(d.a.createElement,f.d.span.withConfig({displayName:"Infografica__NomeLuogoSalvato",componentId:"sc-9ebh1b-0"})(["text-transform:uppercase;"]),f.d.div.withConfig({displayName:"Infografica__InfograficaHeader",componentId:"sc-9ebh1b-1"})(["padding-top:4rem;"]),f.d.div.withConfig({displayName:"Infografica__InfograficaWrap",componentId:"sc-9ebh1b-2"})(["background:#f2f2f2;padding:0 1rem;margin:4rem 0 0;position:relative;"]),f.d.div.withConfig({displayName:"Infografica__InfograficaYear",componentId:"sc-9ebh1b-3"})(["font-size:3rem;width:100%;text-align:center;"]),f.d.div.withConfig({displayName:"Infografica__InfograficaYearQuote",componentId:"sc-9ebh1b-4"})(["font-size:1rem;text-align:center;"]),f.d.div.withConfig({displayName:"Infografica__InfograficaMainLabel",componentId:"sc-9ebh1b-5"})([""]),f.d.div.withConfig({displayName:"Infografica__InfograficaCards",componentId:"sc-9ebh1b-6"})(["padding:0 5rem;"]),f.d.div.withConfig({displayName:"Infografica__InfograficaCardIcon",componentId:"sc-9ebh1b-7"})(["width:100%;margin-bottom:1rem;"]),f.d.div.withConfig({displayName:"Infografica__InfograficaCardsInner",componentId:"sc-9ebh1b-8"})(["display:flex;justify-content:space-between;"]),f.d.div.withConfig({displayName:"Infografica__InfograficaCardWrap",componentId:"sc-9ebh1b-9"})(["width:28%;background-color:#f2f2f2;padding:0 2rem 2rem;text-align:center;"]),f.d.div.withConfig({displayName:"Infografica__InfograficaCardValue",componentId:"sc-9ebh1b-10"})(["font-weight:bold;font-size:1.6rem;margin-bottom:1rem;"]),n("6Oj0")),P=d.a.createElement,T=function(t){var e=t.first,n=t.year,i=t.rank,o=t.votes;return P(F,{first:e},P(M,{first:e},e&&P(W,null,P(g.Icon,{SVG:S.badge,size:[42,42]})),P(R,{first:e},"Censimento ",n),P(q,null,P("p",null,i.toLocaleString(),"\xb0 Posto")),P(A,null,o.toLocaleString()," Voti")))},E=f.d.div.withConfig({displayName:"StoricoClassifiche__StoricoRisulatiGrid",componentId:"sc-1thj9lq-0"})(["display:flex;flex-wrap:wrap;justify-content:center;"]),L=f.d.div.withConfig({displayName:"StoricoClassifiche__StoricoClassificaTitolo",componentId:"sc-1thj9lq-1"})(["font-size:2rem;font-weight:bold;text-align:center;margin-bottom:2rem;"]),F=f.d.div.withConfig({displayName:"StoricoClassifiche__ClassificaItem",componentId:"sc-1thj9lq-2"})(["margin-bottom:2rem;width:100%;padding:1rem 2rem;border-right:",";border-bottom:",";&:last-child{border-right:0;}@media screen and (min-width:400px){border-bottom:none;}@media screen and (min-width:400px) and (max-width:750px){&:nth-child(2n + 0){border-right:0;}width:",";}@media screen and (min-width:751px) and (max-width:960px){&:nth-child(3n + 0){border-right:0;}width:",";}@media screen and (min-width:961px){&:nth-child(4n + 0){border-right:0;}width:",";}"],(function(t){return t.first?"none":"1px solid rgba(255,255,255,.3)"}),(function(t){return t.first?"none":"1px solid rgba(255,255,255,.3)"}),(function(t){return t.first?"100%":"50%"}),(function(t){return t.first?"100%":"33.33%"}),(function(t){return t.first?"100%":"25%"})),M=f.d.div.withConfig({displayName:"StoricoClassifiche__ClassificaInner",componentId:"sc-1thj9lq-3"})(["border:",";margin:0 auto;position:relative;text-align:center;font-size:",";padding:",";border-radius:4px;@media screen and (min-width:768px){width:",";}"],(function(t){return t.first?"1px solid rgba(255,255,255,.3)":"none"}),(function(t){return t.first?"1.2rem":"inherit"}),(function(t){return t.first?"1.2rem 2.5rem":"0"}),(function(t){return t.first?"35%":"auto"})),R=f.d.div.withConfig({displayName:"StoricoClassifiche__ClassificaTitle",componentId:"sc-1thj9lq-4"})(["margin-bottom:",";white-space:nowrap;display:block;padding:",";font-weight:bold;position:",";top:-1rem;left:50%;transform:",";background-color:#054238;text-align:center;text-transform:uppercase;"],(function(t){return t.first?"0":"1rem"}),(function(t){return t.first?".2rem 1rem":"0"}),(function(t){return t.first?"absolute":"static"}),(function(t){return t.first?"translateX(-50%)":"none"})),W=f.d.div.withConfig({displayName:"StoricoClassifiche__ClassificaIcon",componentId:"sc-1thj9lq-5"})(["position:absolute;top:50%;transform:translateY(-50%);left:auto;"]),q=f.d.div.withConfig({displayName:"StoricoClassifiche__ClassificaDesc",componentId:"sc-1thj9lq-6"})([""]),A=f.d.div.withConfig({displayName:"StoricoClassifiche__ClassificaVoti",componentId:"sc-1thj9lq-7"})([""]),G=function(t){var e=t.classifiche.sort((function(t,e){return t.nr_anno-e.nr_anno})).reverse(),n=e.find((function(t){return 1===t.rank})),i=e.filter((function(t){return 1!==t.rank&&t.nr_voti_totali>0}));return(n||i&&i.length>
10)&&P(g.Background,{color:"green"},P(g.Wrapper,{size:"medium"},P(g.Padder,{size:"medium"},P(L,null,"Questo luogo \xe8 stato votato anche nel:"),n&&P(T,{first:!0,year:n.nr_anno,rank:n.rank,votes:n.nr_voti_totali.toLocaleString()}),i.length>0&&P(E,{key:i[0].nr_anno},i.map((function(t){return P(T,{year:t.nr_anno,rank:t.rank,votes:t.nr_voti_totali.toLocaleString()})}))))))},B=(d.a.createElement,f.d.div.withConfig({displayName:"Descrizione__ParagPlaceholderRow",componentId:"sc-1vlboux-0"})(["display:block;min-width:5em;height:1.2em;margin-bottom:0.8em;overflow:hidden;text-indent:-619px;margin-right:",";background-color:#ccc;"],(function(t){return t.margin?"".concat(t.margin,"rem"):"1rem"})),d.a.createElement,f.d.div.withConfig({displayName:"CompletamentoDati__EditContent",componentId:"sc-u1i6sj-0"})(["display:block;@media screen and (min-width:500px){display:flex;}"]),f.d.div.withConfig({displayName:"CompletamentoDati__EditContentCol",componentId:"sc-u1i6sj-1"})(["text-align:center;margin:0 1rem;padding:3rem 1rem;border-bottom:1px solid #ccc;&:first-child{border-top:1px solid #ccc;}@media screen and (min-width:500px){width:50%;margin:5rem 0;&:first-child{border-top:0 none;border-right:1px solid #ccc;}}"]),f.d.div.withConfig({displayName:"CompletamentoDati__ButtonWrap",componentId:"sc-u1i6sj-2"})(["margin:2rem 0 0;"]),n("YY8h"),d.a.createElement,f.d.div.withConfig({displayName:"BlockWithCards__ButtonWrappers",componentId:"sc-1q89m67-0"})(["text-align:center;margin:3rem auto 0;"]),n("Cmd6")),D=(n("XpZ2"),n("iR2b"),n("7xIC")),H=n.n(D),U=d.a.createElement;function V(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function r(n,i,o,r){var l=i&&i.prototype instanceof c?i:c,u=Object.create(l.prototype);return X(u,"_invoke",function(n,i,o){var r,c,l,u=0,s=o||[],d=!1,f={p:0,n:0,v:t,a:m,f:m.bind(t,4),d:function(e,n){return r=e,c=0,l=t,f.n=n,a}};function m(n,i){for(c=n,l=i,e=0;!d&&u&&!o&&e<s.length;e++){var o,r=s[e],m=f.p,p=r[2];n>3?(o=p===i)&&(l=r[(c=r[4])?5:(c=3,3)],r[4]=r[5]=t):r[0]<=m&&((o=n<2&&m<r[1])?(c=0,f.v=i,f.n=r[1]):m<p&&(o=n<3||r[0]>i||i>p)&&(r[4]=n,r[5]=i,f.n=p,c=0))}if(o||n>1)return a;throw d=!0,i}return function(o,s,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&m(s,p),c=s,l=p;(e=c<2?t:l)||!d;){r||(c?c<3?(c>1&&(f.n=-1),m(c,l)):f.n=l:f.v=l);try{if(u=2,r){if(c||(o="next"),e=r[o]){if(!(e=e.call(r,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,c<2&&(c=0)}else 1===c&&(e=r.return)&&e.call(r),c<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),c=1);r=t}else if((e=(d=f.n<0)?l:n.call(i,f))!==a)break}catch(e){r=t,c=1,l=e}finally{u=1}}return{value:e,done:d}}}(n,o,r),!0),u}var a={};function c(){}function l(){}function u(){}e=Object.getPrototypeOf;var s=[][i]?e(e([][i]())):(X(e={},i,(function(){return this})),e),d=u.prototype=c.prototype=Object.create(s);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,X(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=u,X(d,"constructor",u),X(u,"constructor",l),l.displayName="GeneratorFunction",X(u,o,"GeneratorFunction"),X(d),X(d,o,"Generator"),X(d,i,(function(){return this})),X(d,"toString",(function(){return"[object Generator]"})),(V=function(){return{w:r,m:f}})()}function X(t,e,n,i){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(X=function(t,e,n,i){function r(e,n){X(t,e,(function(t){return this._invoke(e,n,t)}))}e?o?o(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(r("next",0),r("throw",1),r("return",2))})(t,e,n,i)}function Q(t,e,n){return e=Object(c.a)(e),Object(a.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(c.a)(t).constructor):e.apply(t,n))}var Y=p()().publicRuntimeConfig.APP_DOMAIN,Z=1,K=2,J=11,$=function(t,e){return U(g.MosaicGallery,{images:t.filter((function(t){return t.pivot.id_tab===e})).map((function(t){return{image:{url:t.url,alt:t.alt,title:t.title,caption:t.credit}}}))})},tt=function(t){if(!t)return null;if(!t.url_video)return null;var e=t.url_video.split("/");return U(it,null,U("iframe",{className:"iframeVideo",width:"560",height:"315",src:"https://www.youtube.com/embed/".concat(e[e.length-1]),frameBorder:"0",allow:"autoplay",allowFullScreen:!0}))},et=function(t){function e(){return Object(o.a)(this,e),Q(this,e,arguments)}
1return Object(l.a)(e,t),Object(r.a)(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.requestVote;t.voted&&e()}},{key:"render",value:function(){var t,e=this.props,n=e.luogo,i=(e.luoghiVicini,e.luoghiSimili,e.luogoNews),o=(e.luogoEvents,e.headerData),r=e.currentFilter,a=(e.activeCampaign,e.settings),c=e.onTabChange,l=e.tabUrl,s=(n.selezioni,n.ldc,n.comitati),f=!(n&&n.ldc&&n.ldc.fl_multi_comune),m=!!a&&a.id_ldc_current;m&&s.filter((function(t){return t.id_ldc==m}));return U(d.a.Fragment,null,function(t){var e=t.title,n=t.description,i=t.ogImage;return z(I.a,null,e&&z("title",{key:"title"},e),n&&z(d.a.Fragment,null,z("meta",{name:"description",content:n,key:"description"}),z("meta",{property:"og:description",content:n,key:"og:description"})),i&&z(d.a.Fragment,null,z("meta",{property:"og:image",content:i.url,key:"og:image"}),z("meta",{property:"og:image:width",content:i.width,key:"og:image:width"}),z("meta",{property:"og:image:height",content:i.height,key:"og:image:height"}),z("meta",{name:"twitter:image",content:i.TwitterImageUrl})))}(function(t){var e=t.titolo_og,n=t.metadescription_og,i=t.metadescription,o=function(t){return t.media&&t.media.find((function(t){return"TOP"===t.pivot.position}))}(t);return{title:e,description:n||i,ogImage:{url:o&&o.url?"".concat(o&&o.url,"?h=630&w=1200&mark64=aHR0cHM6Ly9mYWktd2Vic2l0ZS5pbWdpeC5uZXQvdXBsb2Fkcy8yMDE4LzA1LzI1MTUwNTAxL0JvbGxpbm8tdm90YS1sZGMucG5n&markpad=40&fit=crop&markscale=16&markalign=top%2Cright"):k,twitterUrl:o&&o.url?"".concat(o&&o.url):k,width:1200,height:630}}}(n.ldc)),U(g.OverlayHeader,Object(O.j)(o)),function(t){var e=t.luogo,n=t.showAddress,i=e.ldc,o=Object(_.j)(i)&&Object(_.j)(i.media)?i.media.find((function(t){return"TOP"===t.pivot.position})):"",r={title:e.ldc&&e.ldc.titolo,subtitle:n&&e.localita_web&&e.localita_web,backgroundImage:Object(_.j)(o)&&{url:o.url,title:o.title?o.title:null},breadCrumbs:[["/","Home"],["/luoghi ","Luoghi"],[null,e&&e.nome||"qui"]],seo:{url:"".concat(Y,"/eventi/").concat(e.slug),title:Object(_.j)(e.titolo_og)?e.titolo_og:Object(_.j)(e.title)?e.title:""},social:"true",height:"small"};return U(g.Hero,Object(u.a)({},r,{autoHeight:!0}))}({luogo:n,currentFilter:r,showAddress:f}),U(B.a,{items:function(t){var e=x(t.classifiche),n=[];if(t.ldc.censimento_intervento){var i=t.ldc.censimento_intervento.nr_anno,o=N(i,t.classifiche);n.push({title:"anno censimento",text:e&&e.nr_anno?e.nr_anno:i||"",icon:"heart"}),n.push({title:"numero voti",text:e&&e.nr_voti_totali?e.nr_voti_totali.toLocaleString():o?o.nr_voti_totali.toLocaleString():"",icon:"pencil"}),n.push({title:"posizione classifica",text:e&&e.rank?e.rank:o?o.rank:"",icon:"cup"})}return n.push({title:"stato del progetto",text:t.ldc.stato_intervento&&t.ldc.stato_intervento.stato_intervento,icon:"timer"}),t.ldc.tipo_intervento&&n.push({title:"tipologia",text:t.ldc.tipo_intervento.tipo_intervento&&t.ldc.tipo_intervento.tipo_intervento,icon:"worker"}),n}(n)}),U(g.Tabs,{selectedUrl:l||"/",onTabChange:c,noMargin:!0},function(t){return t&&t.ldc&&U(g.Tab,{id:"panoramica",label:"Panoramica",url:"/"},U(g.FogliaEvento,null,U(h.c,null,U(g.Padder,{size:"medium"},U(g.Wrapper,{size:"medium"},U(g.RichText,{text:t.ldc.panoramica})),t&&t.ldc&&t.ldc.media&&U(g.Wrapper,{size:"large"},$(t.ldc.media,K)),U(g.Padder,{size:"small"},U(g.Wrapper,{size:"small"},tt(t.ldc))),U(g.Padder,{size:"small"},U(G,{classifiche:t.classifiche}))))))}(n),function(t){return t&&t.ldc&&U(g.Tab,{id:"progetto",label:"progetto",url:"progetto"},U(g.FogliaEvento,null,U(h.c,null,U(g.Padder,{size:"medium"},U(g.Wrapper,{size:"medium"},U(g.RichText,{text:t.ldc.progetto})),t&&t.ldc&&t.ldc.media&&U(g.Wrapper,{size:"large"},$(t.ldc.media,J))))))}(n),function(t){return t&&t.ldc&&t.ldc.raccolta_voti&&U(g.Tab,{id:"sostenitori",label:"persone",url:"sostenitori"},U(g.FogliaEvento,null,U(h.c,null,U(g.Padder,{size:"medium"},U(g.Wrapper,{size:"medium"},U(g.RichText,{text:t.ldc.raccolta_voti}))))))}(n),(t=i,U(g.Tab,{id:"news",label:"news",url:"news"},U(g.Background,{color:"grey"},U(g.Wrapper,{size:"medium"},U(g.Padder,{size:"medium"},t&&t.length>0&&U(g.NewsGrid,{pad:"medium",cards:t.map((function(t){return Object(y.a)(t)})),title:"Ultime News",cta:["Tutte le notizie","/il-fai/grandi-campagne/i-luoghi-del-cuore/notizie/"]})))))),function(t){return U(g.Tab,{id:"media",label:"media",url:"media"},t&&t.ldc&&U("div",null,U(g.Padder,{size:"small"},U(g.Wrapper,{size:"small"},tt(t.ldc)))),t&&t.ldc&&U(g.Wrapper,{size:"large"},$(t.ldc.media,Z)))}(n),function(t){return t&&t.ldc&&t.ldc.visita&&U(g.Tab,{id:"visita",label:"visita",url:"visita"},U(g.Padder,{size:"medium"},U(g.Wrapper,{size:"medium"},U(g.RichText,{text:t.ldc.visita}))))}(n)))}}])}(d.a.Component),nt=function(t){function e(){return Object(o.a)(this,e),Q(this,e,arguments)}return Object(l.a)(e,t),Object(r.a)(e,[{key:"handleBeneTabChange",value:function(t){var e=this.props.slug;H.a.replace({pathname:"/luogo",query:{slug:e,tabUrl:t.url}},"/luoghi/".concat(e).concat("undefined"!==typeof t.url&&"/"!==t.url?"/".concat(t.url):"","?luogoSalvato"),{shallow:!0})}},{key:"render",value:function(){var t=this;return this.props.luogo?U(w.a,null,(function(e){var n=e.requestVote;return U(et,Object(u.a)({},t.props,{requestVote:n,onTabChange:function(e){return t.handleBeneTabChange(e)}}))})):null}}],[{key:"getInitialProps",value:function(){var t=Object(i.a)(V().m((function t(e){var n,i,o,r,a,c,l,u,s,d,f,m,p,g,h;return V().w((function(t){for(;;)switch(t.n){case 0:return n=e.query,i=n.slug,n.returnUrl,t.n=1,Object(j.c)("luoghi",{slug:i,with:["classifiche","comune","eventi","ldc","ldc.censimento_intervento","ldc.media","ldc.stato_intervento","ldc.testimonials","ldc.tipo_intervento","provincia","rank","regione","tipologia","selezioni","ldc_tipologia","comitati","classifiche.censimento_classifica"],has:["ldc_tipologia","ldc"]}).then((function(t){return t.data[0]}));case 1:if(o=t.v){t.n=2;break}return t.a(2,{luogo:!1});case 2:return t.n=3,Object(j.c)("news",{has:"luoghi","luoghi.id":o.id,orderby:"dt_news-",limit:6}).then((function(t){return t.data}));case 3:return r=t.v,t.n=4,Object(j.c)("ldc/eventi",{id_luogo:o.id,limit:6,with:["calendar","luogo","luogo.ldc"]}).then((function(t){return t.data}));case 4:return a=t.v,t.n=5,Object(j.c)("ldc/comitati",{"luogo.id":o.id}).then((function(t){return t.data}));case 5:return c=t.v,l=o.coord_geo_lat,u=o.coord_geo_long,s=o.id,d=o.ldc_tipologia,t.n=6,Object(j.l)({query:"&radius[coords]=".concat(parseFloat(l).toFixed(2),",").concat(parseFloat(u).toFixed(2),"&radius[distance]=10&limit=5")}).then((function(t){return t.data.filter((function(t){return t.id!=s})).slice(0,4)}));case 6:return f=t.v,t.n=7,Object(j.l)({query:"".concat(d&&d.id?"&id_tp_luogo=".concat(d.id):"","&limit=4&orderby=rank-general"),tipologiaId:d&&d.id_tp_luogo?d.id_tp_luogo:void 0}).then((function(t){return t.data.filter((function(t){return t.id!=s})).slice(0,4)}));case 7:return m=t.v,t.n=8,Object(j.c)("verticals",{}).then((function(t){return t.data.find((function(t){return"LDC"==t.id}))}));case 8:return p=t.v,g="/luoghi/".concat(i,"?luogoSalvato"),h=Object(_.i)(),t.a(2,{luogo:o,luogoNews:r,luogoEvents:a,luoghiVicini:f,luoghiSimili:m,luogoComitati:c,headerData:p,permalink:g,activeCampaign:h,slug:i})}}),t)})));return function(e){return t.apply(this,arguments)}}()}])}(s.Component),it=(f.d.div.withConfig({displayName:"LuogoSalvato__WrapperFascia",componentId:"sc-vwh21v-0"})([""]),f.d.div.withConfig({displayName:"LuogoSalvato__VideoWrapper",componentId:"sc-vwh21v-1"})(["text-align:center;margin:3rem 0 2rem;iframe{margin:0 auto;display:block;width:100%;height:24rem;}"]));f.d.div.withConfig({displayName:"LuogoSalvato__PrivacyInfo",componentId:"sc-vwh21v-2"})(["max-width:800px;padding-top:0rem;padding-bottom:4rem;margin:0 auto;"]),e.default=Object(b.a)({header:{remove:!0}})(nt)},XpZ2:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i={};n.r(i),n.d(i,"beniInfo",(function(){return a})),n.d(i,"hero",(function(){return c})),n.d(i,"panoramica",(function(){return l})),n.d(i,"ringraziamenti",(function(){return u})),n.d(i,"fasciaCta",(function(){return s})),n.d(i,"gallery",(function(){return d})),n.d(i,"visita",(function(){return r})),n.d(i,"affitto",(function(){return f})),n.d(i,"dnp",(function(){return m})),n.d(i,"spazi",(function(){return p})),n.d(i,"lingue",(function(){return g})),n.d(i,"prossimiEventi",(function(){return h}));var o=n("vSc7"),r=(n("JXgi"),function(t){return{faqs:t.bene.servizi.sort((function(t,e){return(t.display_order||100)<(e.display_order||100)?-1:1})).map((function(t){return{icon:t.icon_servizio,question:t.label_servizio,answer:t.testo_servizio}}))}}),a=function(t){var e=t.slug,n=t.coord_geo_lat,i=t.coord_geo_long,r=t.indirizzo,a=t.localita,c=t.fl_accesso_disabili,l=t.socials,u=t.bene,s=[],d=function(t,e){return function(t,e,n){return t?n.push(e):null}(t,e,s)};d(u.tipologia&&u.tipologia.tipologia,{title:"tipologia",text:u.tipologia.tipologia,icon:"FaiLogo"}),d(r||a||e||n||i,{title:"dove",text:"",icon:"position",link:["".concat(Object(o.b)(r,"")," ").concat(Object(o.b)(a,"")),Ob
1ject(o.a)(e,n,i,"16z"),!0]}),d(u.info_telefono||u.info_cellulare||u.info_mail,{title:"contatti",text:"".concat(u.info_telefono||u.info_cellulare||""),icon:"call_chat",link:["".concat(u.info_mail),"mailto:".concat(u.info_mail)]});var f=l&&l.length>0&&l.find((function(t){return 1===t.id&&t.pivot&&t.pivot.url_social})),m=f&&f.pivot&&f.pivot.url_social;return d(m,{title:"fan page",icon:"FacebookIcon",link:["Seguici su Facebook",m,!0]}),d(c,{title:"luogo accessibile",text:c,icon:"accessibility"}),{items:s}},c=function(t,e){return{title:t.bene.titolo,subtitle:t.bene.payoff,backgroundImage:{alt:t.media[0]&&t.media[0].alt||"",title:t.media[0]&&t.media[0].title||"",url:t.media[0]&&t.media[0].url||""},breadCrumbs:[["/","Home"],["/luoghi/","Luoghi"],["/luoghi/beni-fai","I Beni FAI"],["/luoghi/".concat(t.slug),"".concat(t.bene.titolo)]],luogo:t,socials:{metadata:{permalink:e}}}},l=function(t){var e=t.bene,n=Object(o.e)(e.panoramiche[0].titolo,"h1"),i=Object(o.e)(e.panoramiche[0].sottotitolo,"h2"),r=Object(o.e)(e.panoramiche[0].testo_html,null);return{text:"".concat(n).concat(i).concat(r)}},u=function(t){return{text:t.bene.ringraziamenti.sort((function(t,e){return(t.ord||100)<(e.ord||100)?-1:1})).reduce((function(t,e,n){var i=Object(o.e)(e.titolo,"h1"),r=e.url_image?'<img class="lazyload" data-src="'.concat(Object(o.c)(e.url_image),'" style="width: auto; margin: 0; margin-bottom: 3rem;" />'):"",a=Object(o.e)(e.sottotitolo,0==n?"h2":"h3"),c=0==n?Object(o.e)(e.testo,"h2"):e.testo_html;return t.push("".concat(i).concat(a).concat(c).concat(r)),t}),[]).join("")}},s=function(t){return{title:t.bene.sostienici.titolo,text:t.bene.sostienici.testo_html,cta:[t.bene.sostienici.sostienici_button_label,t.bene.sostienici.sostienici_button_url]}},d=function(t){return{slides:t.media.filter((function(t){return"TOP"!==t.pivot.position})).reduce((function(t,e){var n=Object(o.e)(e.soggetto,"h3"),i=Object(o.e)(e.didascalia,"p");return t.push({image:{url:"".concat(Object(o.c)(e.url),"?w=1600&h=800&fit=crop&auto=format,compress"),alt:e.alt,title:e.title,caption:n+i}}),t}),[])}},f=function(t){var e=t.bene.affitto,n=Object(o.e)(e.titolo,"h1"),i=Object(o.e)(e.sottotitolo,"h2"),r=Object(o.e)(e.testo_html,null),a=e.info_privato_html?"<p><strong>Per informazioni</strong></p>".concat(e.info_privato_html):"";return{text:"".concat(n).concat(i).concat(r).concat(a)}},m=function(t){var e=t.dnp,n=e.filter((function(t){return null!==t["@self"]})).filter((function(t){return"false"!==t["@self"].fl_online}));return{cards:Object(o.d)(n,"display_order").slice(0,5).map((function(t){var e="undefined"!==typeof t["@self"].media[0];return{title:t["@self"].titolo,excerpt:t["@self"].descrizione_html,thumbnail:e?{url:"".concat(Object(o.c)(t["@self"].media[0].url)),title:t["@self"].media[0].titolo,alt:t["@self"].media[0].alt}:"",placeholder:!e}}))}},p=function(t){var e=t.spazi;return{cards:e.filter((function(t){return 0!==t.fl_tab_affitti})).filter((function(t){return!1!==t.fl_online})).map((function(t){var e="undefined"!==typeof t.media[0];return{title:t.titolo,excerpt:t.descrizione_affitto_html,thumbnail:e?{url:"".concat(Object(o.c)(t.media[0].url)),title:t.media[0].titolo,alt:t.media[0].alt}:"",placeholder:!e,readMore:!0}}))}},g=function(t){t.lingue},h=function(t){return t.eventi.filter((function(t){return(new Date).getTime()<new Date(t.dt_fine).getTime()}))};n("+eMw")},pAYN:function(t,e,n){"use strict";n.r(e);var i=n("QsI/"),o=n("9fIP"),r=n("MMYH"),a=n("K/z8"),c=n("sRHE"),l=n("8K1b"),u=n("cxan"),s=n("ERkP"),d=n.n(s),f=n("j/s1"),m=n("UxPf"),p=n("ttF7"),g=n("es+e"),h=n("QtE3"),b=n("PZBX"),v=d.a.createElement;function _(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function r(n,i,o,r){var l=i&&i.prototype instanceof c?i:c,u=Object.create(l.prototype);return y(u,"_invoke",function(n,i,o){var r,c,l,u=0,s=o||[],d=!1,f={p:0,n:0,v:t,a:m,f:m.bind(t,4),d:function(e,n){return r=e,c=0,l=t,f.n=n,a}};function m(n,i){for(c=n,l=i,e=0;!d&&u&&!o&&e<s.length;e++){var o,r=s[e],m=f.p,p=r[2];n>3?(o=p===i)&&(l=r[(c=r[4])?5:(c=3,3)],r[4]=r[5]=t):r[0]<=m&&((o=n<2&&m<r[1])?(c=0,f.v=i,f.n=r[1]):m<p&&(o=n<3||r[0]>i||i>p)&&(r[4]=n,r[5]=i,f.n=p,c=0))}if(o||n>1)return a;throw d=!0,i}return function(o,s,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&m(s,p),c=s,l=p;(e=c<2?t:l)||!d;){r||(c?c<3?(c>1&&(f.n=-1),m(c,l)):f.n=l:f.v=l);try{if(u=2,r){if(c||(o="next"),e=r[o]){if(!(e=e.call(r,l)))throw TypeError("iterator result is not an object");
1if(!e.done)return e;l=e.value,c<2&&(c=0)}else 1===c&&(e=r.return)&&e.call(r),c<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),c=1);r=t}else if((e=(d=f.n<0)?l:n.call(i,f))!==a)break}catch(e){r=t,c=1,l=e}finally{u=1}}return{value:e,done:d}}}(n,o,r),!0),u}var a={};function c(){}function l(){}function u(){}e=Object.getPrototypeOf;var s=[][i]?e(e([][i]())):(y(e={},i,(function(){return this})),e),d=u.prototype=c.prototype=Object.create(s);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,y(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=u,y(d,"constructor",u),y(u,"constructor",l),l.displayName="GeneratorFunction",y(u,o,"GeneratorFunction"),y(d),y(d,o,"Generator"),y(d,i,(function(){return this})),y(d,"toString",(function(){return"[object Generator]"})),(_=function(){return{w:r,m:f}})()}function y(t,e,n,i){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(y=function(t,e,n,i){function r(e,n){y(t,e,(function(t){return this._invoke(e,n,t)}))}e?o?o(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(r("next",0),r("throw",1),r("return",2))})(t,e,n,i)}function O(t,e,n){return e=Object(c.a)(e),Object(a.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(c.a)(t).constructor):e.apply(t,n))}var j=function(t){return v(h.ListCardWithTooltips,Object(u.a)({},t,{notLazy:!0,subtitleSansSerif:!0}))},w=function(t){function e(t){var n;return Object(o.a)(this,e),(n=O(this,e,[t])).state={modalOpen:!1},n.handleCloseModal=n.handleCloseModal.bind(n),n}return Object(l.a)(e,t),Object(r.a)(e,[{key:"handleCloseModal",value:function(){var t=this.state.modalOpen;this.setState({modalOpen:!t})}},{key:"render",value:function(){var t=this.state.modalOpen,e=this.props,n=e.luogo,i=e.headerData,o=e.closestMfis,r=(e.sameMfis,n.mfi),a=n.fl_bene_fai,c=(r.button_label,r.button_url,r.button_target,r.alert);return v(d.a.Fragment,null,Object(g.q)(Object(g.n)(n)),v(h.OverlayHeader,Object(m.j)(i)),v(h.Hero,Object(g.j)(n)),v(h.Backgroun
1d,{color:"grey"},v(h.FogliaEvento,null,v(b.d,null,v(h.Sidebar,{address:Object(m.g)(n),icons:Object(g.k)(n),links:Object(g.l)(n)})),v(b.c,null,v(h.Padder,{size:"medium"},v(h.Wrapper,{size:"small"},c&&v(I,null,v(h.IconCard,{icon:"alert",title:"Attenzione!",text:c,horizontal:!0})),v(h.RichText,{text:Object(g.g)(r)}))))),v(h.Wrapper,{size:"large"},Object(g.i)(n)),v(h.Wrapper,{size:"large"},function(t,e){var n=t&&t.provincia&&t.provincia.nome;return v(d.a.Fragment,null,e&&e.length>0&&v(h.Padder,{size:"small"},v(h.ListOfCards,{wrap:"big",title:"Aperture vicine",cards:e.map(g.f),CardComponent:function(t){return v(j,t)},vertical:!0})),e&&e.length>0&&t.coord_geo_lat&&t.coord_geo_long&&v(z,null,v(h.Button,{link:"/il-fai/grandi-campagne/mattinate-fai-inverno/i-luoghi-aperti/?provincia=".concat(n),target:"_self"},"TUTTE LE APERTURE VICINE")))}(n,o)),v(C,null,a&&v(h.FasciaCta,Object(u.a)({},Object(g.h)(n),{pad:"medium",color:"green"})),v(h.FasciaNewsletterApp,null))),t&&v(h.ModalOverlay,{onClose:this.handleCloseModal},ContentModal(r)))}}],[{key:"getInitialProps",value:function(){var t=Object(i.a)(_().m((function t(e){var n,i,o,r,a,c,l;return _().w((function(t){for(;;)switch(t.n){case 0:return n=e.query,i=n.slug,t.n=1,Object(p.a)("luoghi",{slug:i,with:["mfi","comune","provincia","mfi.media"]}).then((function(t){return t.data[0]}));case 1:return o=t.v,t.n=2,Object(p.d)();case 2:return r=t.v,t.n=3,Object(p.b)(o);case 3:return a=t.v,t.n=4,Object(p.i)(o.id);case 4:return c=t.v,l="/luoghi/".concat(i,"?mfi"),t.a(2,{luogo:o,permalink:l,headerData:r,closestMfis:a,sameMfis:c})}}),t)})));return function(e){return t.apply(this,arguments)}}()}])}(s.Component),C=f.d.div.withConfig({displayName:"Luogo__WrapperFascia",componentId:"sc-1cic0xu-0"})(["padding-top:3rem;"]),I=f.d.div.withConfig({displayName:"Luogo__IconCardWrapper",componentId:"sc-1cic0xu-1"})(["background:#fff;padding:1rem;margin-bottom:1rem;"]),z=f.d.div.withConfig({displayName:"Luogo__CenterBtn",componentId:"sc-1cic0xu-2"})(["text-align:center;"]);e.default=w},sAQc:function(t,e,n){"use strict";n.r(e),n.d(e,"renderSEO",(function(){return M}));var i=n("QsI/"),o=n("9fIP"),r=n("MMYH"),a=n("K/z8"),c=n("sRHE"),l=n("8K1b"),u=n("cxan"),s=n("ERkP"),d=n.n(s),f=n("ysqo"),m=n.n(f),p=n("j/s1"),g=n("QtE3"),h=n("PZBX"),b=n("3Oy2"),v=n("pqH2"),_=n("UxPf"),y=n("Ci+5"),O=d.a.createElement,j=function(t){var e=t.limit,n=Array(e).fill(4),i=0;return O(d.a.Fragment,null,n.map((function(){var t=Math.floor(5*Math.random())+1;return i=t<e?t+i:0,O(w,{margin:t})})))},w=p.d.div.withConfig({displayName:"Descrizione__ParagPlaceholderRow",componentId:"sc-pozu0i-0"})(["display:block;min-width:5em;height:1.2em;margin-bottom:0.8em;overflow:hidden;text-indent:-619px;margin-right:",";background-color:#ccc;"],(function(t){return t.margin?"".concat(t.margin,"rem"):"1rem"})),C=function(t){var e="";return e=t.descrizione?t.descrizione:t.descrizione_html,t.faixme&&t.faixme.descrizione_html&&(e=t.faixme.descrizione_html),e?O(g.RichText,{text:e}):O(j,{limit:8})},I=function(t){if(Object(_.f)(t)&&t.length)return{title:"Contatti",icon:"",content:t.map((function(t){return function(t){var e,n=!!Object(_.f)(t.tipo.tipo_recapito)&&t.tipo.tipo_recapito.toLowerCase().replace(" ","-");switch(n){case"e-mail":e='<a href="mailto:'.concat(t.recapito,'" target="_blank">').concat(t.recapito,"</a>");break;case"sito-web":e='<a href="'.concat(t.recapito,'" target="_blank">').concat(Object(_.e)(t.recapito),"</a>");break;default:e="<span>".concat(n,": ").concat(t.recapito,"</span>")}return"<div>".concat(e).concat(Object(_.f)(t.note_recapito)?"<em>".concat(t.note_recapito,"</em>"):"","</div>")}(t)})).join("")}},z=n("ZaFK"),k=n("MJc2"),x=n.n(k),N=d.a.createElement;function S(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function r(n,i,o,r){var l=i&&i.prototype instanceof c?i:c,u=Object.create(l.prototype);return P(u,"_invoke",function(n,i,o){var r,c,l,u=0,s=o||[],d=!1,f={p:0,n:0,v:t,a:m,f:m.bind(t,4),d:function(e,n){return r=e,c=0,l=t,f.n=n,a}};function m(n,i){for(c=n,l=i,e=0;!d&&u&&!o&&e<s.length;e++){var o,r=s[e],m=f.p,p=r[2];n>3?(o=p===i)&&(l=r[(c=r[4])?5:(c=3,3)],r[4]=r[5]=t):r[0]<=m&&((o=n<2&&m<r[1])?(c=0,f.v=i,f.n=r[1]):m<p&&(o=n<3||r[0]>i||i>p)&&(r[4]=n,r[5]=i,f.n=p,c=0))}if(o||n>1)return a;throw d=!0,i}return function(o,s,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&m(s,p),c=s,l=p;(e=c<2?t:l)||!d;){r||(c?c<3?(c>1&&(f.n=-1),m(c,l)):f.n=l:f.v=l);try{if(u=2,r){if(c||(o="next"),e=r[o]){if(!(e=e.call(r,l)))throw TypeError("iterator result is not an object");
1if(!e.done)return e;l=e.value,c<2&&(c=0)}else 1===c&&(e=r.return)&&e.call(r),c<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),c=1);r=t}else if((e=(d=f.n<0)?l:n.call(i,f))!==a)break}catch(e){r=t,c=1,l=e}finally{u=1}}return{value:e,done:d}}}(n,o,r),!0),u}var a={};function c(){}function l(){}function u(){}e=Object.getPrototypeOf;var s=[][i]?e(e([][i]())):(P(e={},i,(function(){return this})),e),d=u.prototype=c.prototype=Object.create(s);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,P(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=u,P(d,"constructor",u),P(u,"constructor",l),l.displayName="GeneratorFunction",P(u,o,"GeneratorFunction"),P(d),P(d,o,"Generator"),P(d,i,(function(){return this})),P(d,"toString",(function(){return"[object Generator]"})),(S=function(){return{w:r,m:f}})()}function P(t,e,n,i){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(P=function(t,e,n,i){function r(e,n){P(t,e,(function(t){return this._invoke(e,n,t)}))}e?o?o(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(r("next",0),r("throw",1),r("return",2))})(t,e,n,i)}function T(t,e,n){return e=Object(c.a)(e),Object(a.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(c.a)(t).constructor):e.apply(t,n))}var E=function(t){return N(g.CardConvenzione,Object(u.a)({LinkComponent:x.a},t))},L=function(t){return t.items.map((function(t){return N(D,null,N(H,null,"".concat(t.categoria," ")," > "),N(U,null,t.sottocategorie.map((function(e,n){return N(d.a.Fragment,null,N("a",{href:"".concat(y.a,"?ids[]=").concat(e.id)},e.name),n===t.sottocategorie.length-1&&t.sottocategorie.length?"":", ")}))))}))},F=function(t,e,n){return N(d.a.Fragment,null,n&&n.length>0&&N(g.Padder,{size:"small"},N(g.ListOfCards,{wrap:"big",title:e,cards:n.map(y.e),CardComponent:function(t){return N(E,Object(u.a)({target:"_blank"},t))},vertical:!0})))},M=function(t){var e=t.title,n=t.description,i=t.ogImage;return N(m.a,null,e&&N("title",{key:"title"},e),e&&(N("meta",{property:"og:title",content:e||"FAI - Fondo Ambiente Italiano",key:"og:title"}),N("meta",{name:"twitter:title",content:e||"FAI - Fondo Ambiente Italiano"})),N("meta",{name:"twitter:card",content:"summary"}),n&&N(d.a.Fragment,null,N("meta",{name:"description",content:n,key:"description"}),N("meta",{property:"og:description",content:n,key:"og:description"}),N("meta",{name:"twitter:description",content:n})),i&&N(d.a.Fragment,null,N("meta",{property:"og:image",content:i&&i,key:"og:image"}),N("meta",{property:"og:image:width",content:i.width?i.width:1200,key:"og:image:width"}),N("meta",{property:"og:image:height",content:i.height?i.height:630,key:"og:image:height"}),N("meta",{name:"twitter:image",content:i.url&&i})))},R=function(t){var e=t.categorie,n=t.sottocategorie;return 0===e.length?[]:e.map((function(t){var e=n&&n.filter((function(e){return e.id_cat===t.id}));return{categoria:t.categoria,sottocategorie:e&&e.map((function(t){return{id:t.id,name:t.sottocategoria}}))}}))},W=function(t){function e(t){return Object(o.a)(this,e),T(this,e,[t])}return Object(l.a)(e,t),Object(r.a)(e,[{key:"render",value:function(){var t=this.props,e=t.headerData,n=t.convenzioniSameLuogo,i=t.convenzioniSameCategories,o=t.faixme,r=(t.statusCode,o.button_label),a=o.button_url,c=o.button_target,l=o.validita,s=o.luogo,f=s.fl_bene_fai;return N(d.a.Fragment,null,M(Object(y.k)(o)),N(g.OverlayHeader,Object(_.j)(e)),N(g.Hero,Object(y.h)(o)),N(g.Background,{color:"grey"},N(g.FogliaEvento,null,N(h.d,null,N(g.Sidebar,null,N(b.b,Object(_.g)(s)),N(b.b,I(o.recapiti)),N(G,null,N(b.b,function(t,e){if(Object(_.f)(t))return{title:"PERCENTUALE DI SCONTO PER GLI ISCRITTI FAI",icon:"",content:'<div class="discountPercNum">-'.concat(e,"%</div>")}}(o.sconto,o.perc_sconto))))),N(h.c,null,N(g.Padder,{size:"medium"},N(g.Wrapper,{size:"small"},N(L,{items:R(o)}),N(B,null,N("a",{href:"/luoghi/".concat(s.slug)},s.nome,Object(_.f)(s.localita_web)?", ".concat(s.localita_web):"")),N(C,o),Object(_.f)(l)?N(q,null,l):"")),Object(_.f)(r)&&Object(_.f)(a)?N(g.Wrapper,{size:"small"},N(g.Button,{link:a,target:c},r)):"")),N(g.Wrapper,{size:"large"},N(g.MosaicGallery,{title:"Gallery",images:Object(y.g)(o)})),N(g.Wrapper,{size:"large"},F(0,"In pi\xf9 per te",n)),N(g.Wrapper,{size:"large"},F(0,"Ti potrebbero interessare anche:",i)),N(A,null,f&&N(g.FasciaCta,Object(u.a)({},Object(y.f)(s),{pad:"medium",color:"green"})),N(g.FasciaNewsletterApp,null))))}}],[{key:"getInitialProps",value:function(){var t=Object(i.a)(S().m((function t(e){var n,i,o,r,a,c,l,u;return S().w((function(t){for(;;)switch(t.n){case 0:return n=e.query,i=n.slug,o=n.fxm,t.n=1,Object(v.c)("luoghi/faixme",{slug:o,with:["luogo","recapiti","sconto","media","categorie","sottocategorie","luogo.comune","luogo.provincia","luogo.regione"],has:"sottocategorie"}).then((function(t){return t.data[0]}));case 1:if(r=t.v){t.n=2;break}return t.a(2,{statusCode:404});case 2:return t.n=3,Object(z.c)(r);case 3:return a=t.v,t.n=4,Object(z.b)(r);case 4:return c=t.v,t.n=5,Object(z.f)();case 5:return l=t.v,u="/luoghi/".concat(i,"?fxm=").concat(o),t.a(2,{headerData:l,permalink:u,faixme:r,convenzioniSameLuogo:a,convenzioniSameC
1ategories:c})}}),t)})));return function(e){return t.apply(this,arguments)}}()}])}(s.Component),q=p.d.strong.withConfig({displayName:"Luogo__LabelValidita",componentId:"sc-m9j9qa-0"})(["margin-top:4rem;display:block;"]),A=p.d.div.withConfig({displayName:"Luogo__WrapperFascia",componentId:"sc-m9j9qa-1"})(["padding-top:3rem;"]),G=(p.d.div.withConfig({displayName:"Luogo__ModalOverlayContent",componentId:"sc-m9j9qa-2"})(["padding:4rem 5rem;margin:0 auto;"]),p.d.h2.withConfig({displayName:"Luogo__ModalTitle",componentId:"sc-m9j9qa-3"})(["text-align:center;font-size:1.6rem;margin-bottom:3rem;font-weight:bold;"]),p.d.div.withConfig({displayName:"Luogo__ModalContentBlock",componentId:"sc-m9j9qa-4"})(["margin-bottom:2rem;"]),p.d.h2.withConfig({displayName:"Luogo__ModalSubtitle",componentId:"sc-m9j9qa-5"})(["font-weight:bold;"]),p.d.div.withConfig({displayName:"Luogo__DiscountBadge",componentId:"sc-m9j9qa-6"})(["text-align:center;.discountPercNum{display:block;font-weight:bold;font-size:3rem;margin-bottom:0.5rem;}"])),B=p.d.h3.withConfig({displayName:"Luogo__LuogoConvenzione",componentId:"sc-m9j9qa-7"})(["color:",";padding-left:0.625rem;font-size:1rem;margin-bottom:1rem;"],(function(t){return t.theme.colors.orange})),D=p.d.div.withConfig({displayName:"Luogo__Breadcrumbs",componentId:"sc-m9j9qa-8"})(["margin-bottom:2rem;padding:0 0.625rem;"]),H=p.d.span.withConfig({displayName:"Luogo__BreadcrumbsCat",componentId:"sc-m9j9qa-9"})(["font-weight:bold;"]),U=p.d.a.withConfig({displayName:"Luogo__BreadcrumbsSubCat",componentId:"sc-m9j9qa-10"})(["color:",";"],(function(t){return t.theme.colors.orange}));e.default=W},vSc7:function(t,e,n){"use strict";n.d(e,"e",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return a})),n.d(e,"a",(function(){return c}));var i=function(t,e){return t?e?"<".concat(e,">").concat(t,"</").concat(e,">"):t:""},o=function(t,e){return t&&t||e},r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return"".concat(t.replace(/(^\w+:|^)\/\//,"").split(".")[0],".imgix.net")},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fai-platform.s3.amazonaws.com";return t.replace(n,"function"!==typeof e?e:e(t))},a=function(t,e){return t.sort((function(t,n){return(t[e]||100)>(n[e]||100)?1:-1}))},c=function(t,e,n,i){var o=t.split("-").map((function(e,n){return n===t.split("-").length-1?e:"".concat(e,"+")})).join("");return"".concat("https://www.google.it/maps/search","/").concat(o,"/@").concat(e,",").concat(n,",").concat(i)}}}]);

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.