PageSourceSearch

https://fondoambiente.it/_next/static/chunks/pages/evento-978bcc361e9ff9100118.js

js fondoambiente.it collected 2026-09-24 08:51:45 UTC 12,158 bytes, 1 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[54,39,98],{JTpX:function(t,e,n){"use strict";var r=n("9fIP"),o=n("MMYH"),a=n("K/z8"),i=n("sRHE"),c=n("8K1b"),l=n("ERkP"),u=n.n(l),s=n("voCV"),f=n("NAJH"),d=u.a.createElement;function p(t,e,n){return e=Object(i.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(i.a)(t).constructor):e.apply(t,n))}var b=function(t){function e(){return Object(r.a)(this,e),p(this,e,arguments)}return Object(c.a)(e,t),Object(o.a)(e,[{key:"componentDidMount",value:function(){this.script=document.createElement("script"),this.script.src="https://widget.qual.musement.com/bootstrap.js",this.script.async="async",this.script.id="m_widget_script",this.script.type="text/javascript",document.querySelector("body").appendChild(this.script)}},{key:"componentWillUnmount",value:function(){this.script.remove()}},{key:"render",value:function(){var t=this.props.widgetId;return d("div",null,d("div",{className:"MusementWidget","data-musement-widget":t}))}}])}(l.PureComponent);e.a=Object(s.a)(Object(f.a)(),Object(f.b)(),f.c,f.e,Object(f.d)([{prop:"widgetId",label:"ID widget"}]))(b)},JXgi:function(t,e,n){"use strict";e.a=function(t){if(!t)return null;var e=t.url_news;return{title:t.titolo,supertitle:"News",tag:"".concat(t.categoria&&t.categoria.descrizione||""),subtitle:t.dt_news,thumbnail:{url:t.image_featured||"//fai-website.imgix.net/static/placeholder_2.png"},link:"/news/".concat(e),content:t.abstract&&"".concat(t.abstract.slice(0,140),"...")}}},MJc2:function(t,e,n){var r=n("KEM+");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var i=n("ERkP"),c=n("8cHP").Link;t.exports=function(t){return i.createElement(t.route?c:"a",a(a({},t),{},{href:t.route||t.to||""}),t.children)}},SbKL:function(t,e,n){"use strict";n.r(e);var r=n("QsI/"),o=n("9fIP"),a=n("MMYH"),i=n("K/z8"),c=n("sRHE"),l=n("8K1b"),u=n("ERkP"),s=n.n(u),f=n("j/s1"),d=n("QtE3"),p=n("PZBX"),b=n("3Oy2"),g=n("uPMs"),m=n("k3zZ"),_=n("mtjO"),h=n("MJc2"),v=n.n(h),O=n("JXgi"),y=n("iR2b"),w=n("JTpX"),j=n("gc+n"),k=n("Lm5w"),P=n("0D0S"),E=n.n(P),z=s.a.createElement;function I(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof c?r:c,u=Object.create(l.prototype);return T(u,"_invoke",function(n,r,o){var a,c,l,u=0,s=o||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return a=e,c=0,l=t,d.n=n,i}};function p(n,r){for(c=n,l=r,e=0;!f&&u&&!o&&e<s.length;e++){var o,a=s[e],p=d.p,b=a[2];n>3?(o=b===r)&&(l=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=t):a[0]<=p&&((o=n<2&&p<a[1])?(c=0,d.v=r,d.n=a[1]):p<b&&(o=n<3||a[0]>r||r>b)&&(a[4]=n,a[5]=r,d.n=b,c=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,b){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,b),c=s,l=b;(e=c<2?t:l)||!f;){a||(c?c<3?(c>1&&(d.n=-1),p(c,l)):d.n=l:d.v=l);try{if(u=2,a){if(c||(o="next"),e=a[o]){if(!(e=e.call(a,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=a.return)&&e.call(a),c<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),c=1);a=t}else if((e=(f=d.n<0)?l:n.call(r,d))!==i)break}catch(e){a=t,c=1,l=e}finally{u=1}}return{value:e,done:f}}}(n,o,a),!0),u}var i={};function c(){}function l(){}function u(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(T(e={},r,(function(){return this})),e),f=u.prototype=c.prototype=Object.create(s);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,T(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return l.prototype=u,T(f,"constructor",u),T(u,"constructor",l),l.displayName="GeneratorFunction",T(u,o,"GeneratorFunction"),T(f),T(f,o,"Generator"),T(f,r,(function(){return this})),T(f,"toString",(function(){return"[object Generator]"})),(I=function(){return{w:a,m:d}})()}function T(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(T=function(t,e,n,r){function a(e,n){T(t,e,(function(t){return this._invoke(e,n,t)}))}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(a("next",0),a("throw",1),a("return",2))})(t,e,n,r)}function C(t,e,n){return e=Object(c.a)(e),Object(i.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 S=E()().publicRuntimeConfig,D=S.APP_DOMAIN,N=(S.GOOGLE_MAPS_API_KEY,function(t,e){var n=t.dt_inizio,r=t.dt_fine;return n===r?"".concat(Object(j.g)(n)):"\n    Da ".concat(Object(j.g)(n)," <br> a ").concat(Object(j.g)(r),"\n    ").concat(e?"<br /><br /> <strong>Prossima data:</strong><br> ".concat(Object(j.g)(e)):"","\n  ")}),M=function(t){if(!t)return!1;var e=t.indirizzo,n=t.localita,r=t.provincia;return!!(e||n||r)&&"\n      ".concat(null!==e?"".concat(e,", "):"","\n      ").concat(n||"","  ").concat(r?"(".concat(r.sigla,")"):"","\n    ")},x=function(t){function e(){return Object(o.a)(this,e),C(this,e,arguments)}return Object(l.a)(e,t),Object(a.a)(e,[{key:"render",value:function(){var t=this.props,e=t.event,n=(t.slug,t.breadcrumbs),r=t.seo,o=t.slides,a=t.indirizzo,i=t.luogo,c=t.firstAvailableDate,l=t.relatedEvents;return z(g.a,{seo:r},z(d.Hero,{title:e.titolo,subtitle:e.sottotitolo,backgroundImage:e.media[0]&&{url:e.media[0]&&e.media[0].url||""},cta:e.hero_button_label&&e.hero_button_url&&[e.hero_button_label,e.hero_button_url],LinkComponent:v.a,breadCrumbs:n,animateEntry:!0,seo:r}
1),z(d.Background,{color:"grey"},z(d.FogliaEvento,null,z(p.d,null,z(d.Sidebar,null,i&&i.fl_bene_fai&&z(b.a,null,z(m.a,{data:[i.id]})),!(i&&i.fl_bene_fai)&&i&&z(b.b,{title:i.nome}),a&&z(b.b,{title:"Indirizzo",content:'\n                    <a href="https://www.google.com/maps/search/'.concat(a,'" target="_blank" rel="noopener noreferrer nofollow">\n                    ').concat(a,"\n                    </a>\n                    ")}),z(b.b,{title:"Quando",content:N(e,c)}),(e.info_telefono||e.info_mail)&&z(b.b,{title:"Contatti",content:[e.info_telefono?'<a href="tel:'.concat(e.info_telefono,'">').concat(e.info_telefono,"</a>"):"",e.info_mail?'<a href="mailto:'.concat(e.info_mail,'">').concat(e.info_mail,"</a>"):""].join("<br />")}))),z(p.c,null,z(d.Padder,{size:"medium"},z(d.Wrapper,{size:"small"},e.tipologia&&z(p.b,null,z("strong",null,e.tema&&e.tema.tema)," \u203a"," ",z("strong",null,e.tipologia&&e.tipologia.tipologia)," ",e.target&&"per <strong>".concat(e.target.target,"</strong> "),"a cura di"," ",e.slug_owner?z("a",{style:{fontWeight:400},href:"/luoghi/rete-fai/".concat(e.slug_owner)},e.owner):z("strong",null,e.owner)),e.alert&&z(R,null,z(d.IconCard,{icon:"alert",title:e.alert.titolo,text:e.alert.testo_html||e.alert.testo,html:Boolean(e.alert.testo_html),horizontal:!0})),z(d.RichText,{text:"\n                      ".concat(e.abstract?"<h1>".concat(e.abstract,"</h1>"):"","\n                      ").concat(e.content.map((function(t){return"\n                        ".concat(t.par_titolo?"<h3>".concat(t.par_titolo,"</h3>"):"","\n                        ").concat(t.par_immagine?'<img src="'.concat(t.par_immagine,'" />'):"","\n                        ").concat(t.par_testo_html?"".concat(t.par_testo_html):"","\n                      ")})).join(""),"\n                    "),noPad:!0}),e.button_url&&e.button_descr&&z(d.Padder,{size:"small"},z(d.Button,{target:e.button_target,link:e.button_url},e.button_descr))))))),e.link_esterno1&&z(s.a.Fragment,null,z("div",{id:"ticket"}),z(w.a,{title:"Acquista il biglietto",widgetId:e.link_esterno1,color:"grey",pad:"small",backgroundColor:"lightBackgroun
1d"})),e.url_video?z(d.Background,{color:"grey"},z(d.Video,{wrap:"medium",title:e.titolo_video,link:e.url_video})):null,o&&o.length>0&&z(d.Wrapper,null,z(d.Padder,{size:"small"},z(d.MosaicGallery,{images:o.map((function(t){var e=t.url,n=t.alt,r=t.title;return{image:{url:"".concat(e,"?w=1600&h=900&fit=crop&auto=format,compress"),alt:n,title:r}}}))}))),e.news&&e.news.length>0&&z(d.Background,{color:"grey"},z(d.Padder,{size:"medium"},z(d.NewsGrid,{cards:e.news.map(O.a),title:"News"}))),l&&l.length>0&&z(d.Background,{color:"grey"},z(d.Padder,{size:"medium"},z(d.EventsGrid,{title:"Ti potrebbe interessare anche",cards:l.map(y.a),samesize:"true"}))),e.url_image_loghi&&z(p.a,{src:e.url_image_loghi}),z(d.FasciaNewsletterApp,null),z(d.FasciaSupporto,null))}}],[{key:"getInitialProps",value:function(){var t=Object(r.a)(I().m((function t(e){var n,r,o,a,i,c,l,u,s,f,d,p,b,g,m;return I().w((function(t){for(;;)switch(t.n){case 0:return n=e.query,e.res,r=n.slug,t.n=1,Object(_.a)("&slug=".concat(r)).then((function(t){return t[0]}));case 1:if("undefined"!==typeof(o=t.v)){t.n=2;break}return t.a(2,{statusCode:404});case 2:if(!(m=o.related&&o.related.length>0)){t.n=4;break}return t.n=3,Object(_.a)("&stato=1&date_from=now&limit=4&".concat(o.related.map((function(t){var e=t.id;return"id[]=".concat(e,"|NOT")})).join("&")));case 3:m=t.v;case 4:return a=m,i=o.titolo,c=o.title_og,l=o.luogo,u=o.title,s=[["/","Home"],["/eventi","Eventi"],["/eventi/".concat(r),"".concat(i)]],f=c||(u||i),d={title:u||(c||i),url:"".concat(D,"/eventi/").concat(r),ogImage:o.media[0]&&o.media[0].url,description:o.abstract,ogTitle:f},p=M(l),b=o.media.filter((function(t){return"TOP"!==t.pivot.position})),t.n=5,Object(_.a)("&slug=".concat(r,"&date_from=now")).then((function(t){return t[0]&&t[0].first_available_date}));case 5:return g=t.v,t.a(2,{event:o,slug:r,breadcrumbs:s,seo:d,slides:b,indirizzo:p,luogo:l,firstAvailableDate:g,relatedEvents:a})}}),t)})));return function(e){return t.apply(this,arguments)}}()}])}(u.Component),R=f.d.div.withConfig({displayName:"evento__IconCardWrapper",componentId:"sc-1knbh00-0"})(["background:#fff;padding:1rem;margin-bottom:1rem;"]);e.default=Object(k.b)(x)},iR2b:function(t,e,n){"use strict";var r=n("gc+n");e.a=function(t){if("undefined"===typeof t)return{};var e=t.date_to_show,n=t.dt_inizio,o=t.dt_fine,a=t.titolo,i=t.luogo,c=t.url_landing_page,l=e,u=function(t){var e=t.background_type;return"I"===e?"fullImg":"B"===e?"white":"V"===e?"green":void 0}(t),s=new Date(l).toString()===new Date((new Date).setHours(0,0,0,0)).toString();return{category:t.tema?t.tema.tema:"",title:a,dateFrom:Object(r.c)(n),dateTo:Object(r.c)(o),isToday:s,exactDate:l,exactDay:Object(r.d)(l),exactMonth:Object(r.e)(l),info:[t.owner&&t.owner.toUpperCase(),i?i.localita_web:""].join("<br />"),link:"/eventi/".concat(t.slug),hasLanding:c,thumbnail:{image:{url:t.media[0]&&t.media[0].url}},backgroundType:u}}},k3zZ:function(t,e,n){"use strict";var r=n("cxan"),o=n("ERkP"),a=n.n(o),i=n("voCV"),c=n("QtE3"),l=n("NAJH"),u=n("qXKH"),s=n("OzPX"),f=n("MJc2"),d=n.n(f),p=a.a.createElement,b=function(t){return p(c.ListCard,Object(r.a)({LinkComponent:d.a},t))},g=Object(i.a)(Object(l.a)(),Object(l.b)(),Object(l.d)([{prop:"data",type:"api",resource:"beni",exact:3,label:"Seleziona beni"}]),l.e,Object(s.a)("beni"));e.a=g((function(t){var e=t.resources,n=e.length>0?e.map(u.a):[];return p(b,n[0])}))},qXKH:function(t,e,n){"use strict";e.a=function(t){if("undefined"===typeof t)return{};var e=t.luogo.slug;return{id:t.id,title:t.titolo,supertitle:"",thumbnail:{url:t.media[0]&&t.media[0].url||"https://fai-website.imgix.net/static/placeholder_2.png"},link:"/luoghi/".concat(e),subtitle:t.luogo.localita_web,content:t.payoff}}},uk3A:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/evento",function(){return n("SbKL")}])}},[["uk3A",1,0,5,7,3,2,6,4,8,9,10,11,13,12,15,14,16,23]]]);

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.