PageSourceSearch

https://myfai.fondoambiente.it/_next/static/chunks/pages/gfp/luogo-d091592be8a5056ed712.js

js fondoambiente.it collected 2026-09-24 08:52:54 UTC 17,717 bytes, 1 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[59,38,96],{"66mY":function(t,n,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/gfp/luogo",function(){return e("YXAh")}])},DSo7:function(t,n){t.exports=function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}},"I/kN":function(t,n,e){var o=e("w7mb");t.exports=function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&o(t,n)}},I6ye:function(t,n,e){"use strict";e.d(n,"a",(function(){return b})),e.d(n,"e",(function(){return v})),e.d(n,"g",(function(){return y})),e.d(n,"f",(function(){return O})),e.d(n,"b",(function(){return A})),e.d(n,"h",(function(){return w})),e.d(n,"c",(function(){return j})),e.d(n,"d",(function(){return M}));var o=e("fGyu"),r=e("zjfJ"),i=e("zygG"),c=e("HbGN"),a=e("ERkP"),u=e.n(a),f=e("10AO"),l=e.n(f),s=(e("QtE3"),e("UxPf")),d=(e("ysqo"),e("Ehz4"),e("ezIv"),e("0D0S")),p=e.n(d),g=["search","fl_accesso_disabili","fl_ingresso_esclusivo","fl_commissione_eu","fl_consigliato","fl_bene_fai","comune","provincia","regione","lat","lng","nearby","ids"],_=["search","comune","regione","provincia","lat","lng","nearby","ids"];u.a.createElement;function m(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,o)}return e}p()().publicRuntimeConfig.APP_DOMAIN;var b="/il-fai/grandi-campagne/giornate-fai-di-primavera/i-luoghi-aperti",h=function(t){return t.reduce((function(t,n){return t.concat(Array.isArray(n)?h(n):n)}),[])},v=function(t){var n=t.id,e=t.gfp,o=t.localita_web,r=t.fl_bene_fai,i=t.slug,c=t.onClick;return"undefined"===typeof e?{}:{id:n,title:e.titolo_apertura,subtitle:o,link:"/luoghi/".concat(i,"?gfp"),slug:i,onClick:c,thumbnail:{url:e.media&&e.media.length>0&&void 0!==e.media.find((function(t){return"TOP"===t.pivot.position}))&&e.media.find((function(t){return"TOP"===t.pivot.position})).url||"https://fai-website.imgix.net/static/placeholder_2.png"},tooltips:[e.alert&&{icon:"alert",orange:!0,content:e.alert},e.fl_accesso_disabili&&{icon:"accessibility",content:"Luogo accessibile"},e.fl_ingresso_esclusivo&&{icon:"crown",content:"Ingresso dedicato agli iscritti FAI"},e.fl_consigliato&&{icon:"badge",content:"Luogo consigliato"},r&&{icon:"FaiLogo",content:"Bene FAI ".concat(e.fl_chiuso?"":"visitabile tutto l'anno")},e.fl_multi_gf&&{icon:"gfp_both_weekends",content:"Aperto primo e secondo weekend"},e.fl_commissione_eu&&{icon:"commissione_eu",content:"Apertura in collaborazione con la Commissione Europea"},!e.fl_multi_gf&&38===e.id_gf&&{icon:"gfp_first_weekend",content:"Primo weekend di apertura"},!e.fl_multi_gf&&39===e.id_gf&&{icon:"gfp_second_weekend",content:"Secondo weekend di apertura"}].filter((function(t){return t}))}},y=function(t){var n=t.search,e=t.fl_accesso_disabili,o=t.fl_ingresso_esclusivo,r=t.fl_commissione_eu,a=t.fl_consigliato,u=t.fl_bene_fai,f=t.comune,l=t.provincia,s=t.regi
1one,d=t.lat,p=t.lng,_=t.nearby,m=(t.ids,Object(c.a)(t,g)),b=[];return _&&d&&p&&(b.push("radius[coords]=".concat(parseFloat(d).toFixed(2),",").concat(parseFloat(p).toFixed(2))),b.push("radius[distance]=100")),h([n&&n.length>=3&&"search=".concat(n),e&&"gfp.fl_accesso_disabili=true",o&&"gfp.fl_ingresso_esclusivo=true",r&&"gfp.fl_commissione_eu=true",a&&"gfp.fl_consigliato=true",u&&"fl_bene_fai=true",f&&"comune.nome=".concat(f),l&&"provincia.nome=".concat(l),s&&"regione.nome=".concat(s),Object.keys(m).length&&Object.entries(m).map((function(t){var n=Object(i.a)(t,2),e=n[0],o=n[1];return"[object Array]"===Object.prototype.toString.call(o)?o.map((function(t){return"".concat(e,"[]=").concat(t)})):null})),b]).filter((function(t){return t})).join("&")},O=function(t){var n=t.id,e=t.gfp,o=t.localita_web,r=t.fl_bene_fai,i=t.slug,c=t.onClick;return"undefined"===typeof e?{}:{id:n,title:e.titolo_apertura,subtitle:o,link:"/luoghi/".concat(i,"?gfp"),slug:i,onClick:c,thumbnail:{url:Object(s.d)(e)},tooltips:[e.alert&&{icon:"alert",orange:!0,content:e.alert},e.fl_accesso_disabili&&{icon:"accessibility",content:"Luogo accessibile"},e.fl_ingresso_esclusivo&&{icon:"crown",content:"Ingresso dedicato agli iscritti FAI"},e.fl_consigliato&&{icon:"badge",content:"Luogo consigliato"},e.fl_commissione_eu&&{icon:"commissione_eu",content:"Apertura in collaborazione con la Commissione Europea"},r&&{icon:"FaiLogo",content:"Bene FAI ".concat(e.fl_chiuso?"":"visitabile tutto l'anno")}].filter((function(t){return t}))}},A=function(t){var n=t.search,e=t.selectedOptions,o=t.comune,c=t.provincia,a=t.regione,u=t.showMap,f=e&&-1!==e.indexOf("fl_accesso_disabili"),s=e&&-1!==e.indexOf("fl_ingresso_esclusivo"),d=e&&-1!==e.indexOf("fl_commissione_eu"),p=e&&-1!==e.indexOf("fl_consigliato"),g=e&&-1!==e.indexOf("fl_bene_fai"),_=e&&e.filter((function(t){return"fl_accesso_disabili"!==t&&"fl_ingresso_esclusivo"!==t&&"fl_commissione_eu"!==t&&"fl_consigliato"!==t&&"fl_bene_fai"!==t&&"geolocation"!==t&&-1===String(t).indexOf(":")})),b=e&&e.filter((function(t){return-1!==String(t).indexOf(":")})).reduce((function(t,n){var e=n.split(":"),o=Object(i.a)(e,2),r=o[0],c=o[1];return t[r]=t[r]||[],t[r].push(c),t}),{});return l()(function(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?m(Object(e),!0).forEach((function(n){Object(r.a)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):m(Object(e)).forEac
1h((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}({search:n,fl_accesso_disabili:f,fl_ingresso_esclusivo:s,fl_commissione_eu:d,fl_consigliato:p,fl_bene_fai:g,comune:o,provincia:c,regione:a,ids:_,showMap:u},b),(function(t){return!!t}))},w=function(t){var n=t.search,e=t.comune,r=t.regione,a=t.provincia,u=(t.lat,t.lng,t.nearby),f=t.ids,l=Object(c.a)(t,_),s=Object.entries(l).reduce((function(t,n){var e=Object(i.a)(n,2),r=e[0],c=e[1];return"[object Array]"===Object.prototype.toString.call(c)?t=[].concat(Object(o.a)(t),Object(o.a)(c.map((function(t){return[r,t].join(":")})))):t.push(r),t}),[]);return{search:n,comune:e,provincia:a,regione:r,selectedOptions:[].concat(Object(o.a)(u?["geolocation"]:[]),Object(o.a)(s),Object(o.a)(f||[]))}},j=function(t){var n=t.comune,e=t.provincia,o=t.regione;return n?"nel comune di ".concat(n):e?"in provincia di ".concat(e):o?"in ".concat(o):"per nome o localit\xe0"},M=function(t){return 0===Object.keys(t).length&&t.constructor===Object}},J9Yr:function(t,n,e){"use strict";var o=e("iN+R"),r=e("zQIG"),i=e("8mBC"),c=e("cMav"),a=e("pSQP"),u=e("I/kN");function f(t,n,e){return n=a(n),c(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(n,e||[],a(t).constructor):n.apply(t,e))}n.__esModule=!0,n.default=void 0;var l=e("ERkP"),s=function(t){function n(t){var e;return r(this,n),(e=f(this,n,[t]))._hasHeadManager=void 0,e.emitChange=function(){e._hasHeadManager&&e.props.headManager.updateHead(e.props.reduceComponentsToState(o(e.props.headManager.mountedInstances),e.props))},e._hasHeadManager=e.props.headManager&&e.props.headManager.mountedInstances,e}return u(n,t),i(n,[{key:"componentDidMount",value:function(){this._hasHeadManager&&this.props.headManager.mountedInstances.add(this),this.emitChange()}},{key:"componentDidUpdate",value:function(){this.emitChange()}},{key:"componentWillUnmount",value:function(){this._hasHeadManager&&this.props.headManager.mountedInstances.delete(this),this.emitChange()}},{key:"render",value:function(){return null}}])}(l.Component);n.default=s},N7I1:function(t,n){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},O5Wi:function(t,n){t.exports=function(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}},TZT2:function(t,n,e){"use strict";var o;n.__esModule=!0,n.AmpStateContext=void 0;var r=((o=e("ERkP"))&&o.__esModule?o:{default:o}).default.createContext({});n.AmpStateContext=r},UxPf:function(t,n,e){"use strict";e.d(n,"f",(function(){return o})),e.d(n,"d",(function(){return r})),e.d(n,"a",(function(){return i})),e.d(n,"e",(function(){return a})),e.d(n,"c",(function(){return u})),e.d(n,"b",(function(){return f})),e.d(n,"g",(function(){return l})),e.d(n,"i",(function(){return s})),e.d(n,"h",(function(){return d})),e.d(n,"j",(function(){return p}));var o=function(t){return!(void 0===t||"undefined"===typeof t||!t||""==t||" "==t||!1===t||null===t||0===t||NaN===t)},r=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TOP";return o(t.media)&&void 0!==t.media.find((function(t){return t.pivot.position===n}))&&t.media.find((function(t){return t.pivot.position===n})).url||"https://fai-website.imgix.net/static/placeholder_2.png"},i=function(t){var n=o(t.image_og)&&t.image_og||o(t.media)&&o(t.media[0].url)&&t.media[0].url||r(t);return"".concat(n,"?w=1200&h=630&fit=crop")},c=[{dd:"lun",nice:"Luned\xec"},{dd:"mar",nice:"Marted\xec"},{dd:"mer",nice:"Mercoled\xec"},{dd:"gio",nice:"Gioved\xec"},{dd:"ven",nice:"Venerd\xec"},{dd:"sab",nice:"Sabato"},{dd:"dom",nice:"Domenica"}],a=function(t){if(o(t)){var n=t.match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i);return o(n)&&n[1]?n[1]:t}},u=function(t){var n=t.url,e=t.label,r=t.target,i=t.classses;if(o(n)){var c=e||(-1!==n.search("mailto:")?n.replace("mailto:",""):a(n)),u=o(r)?r:"_blank";return'<a class="'.concat(o(i)&&i,'" href="').concat(n,'" target="').concat(u,'">').concat(c,"</a>")}},f=function(t){return c.map((function(n){var e,o=n.dd,r=n.nice,i=t["orario_".concat(o,"con")],c=t["orario_".concat(o,"mat")],a=t["orario_".concat(o,"pom")],u=t["nota_".concat(o)];return e=i||"".concat(c||"").concat(c&&a?" / ":"").concat(a||""),i||c||a?'\n           <p class="RichText__content-strongPrimary">\n            <strong>'.concat(r,": </strong>\n            ").concat(e,"\n            ","<br/>".concat(u||""),"\n          </p>\n        "):null})).join("")},l=function(t){var n=t.comune||{},e=t.provincia||{},o=[t.indirizzo||"",n.nome,e.sigla].filter((function(t){return t})).join(", ");return{title:"Indirizzo",icon:"position",content:'<a href="https://www.google.com/maps/search/'.concat(o,'" target="_blank" rel="noopener noreferrer nofollow">\n                ').concat(o,"\n              </a>")}},s=function(t){return{title:"Orario",content:f(t)}},d=function(t){return{title:"Durata visita",content:t.button_url}},p=function(t){if(o(t)){var n=t.button1_label,e=t.button1_url,r=t.button1_target,i=t.button2_label,c=t.button2_url,a=t.button2_target,u=t.button3_label,f=t.button3_url,l=t.button3_target;return{title:t.titolo,subtitle:t.sottotitolo,buttons:[{label:n,url:e,target:r,subscribe:!1},{label:i,url:c,target:a,subscribe:!1},{label:u,url:f,target:l,subscribe:!0}]}}}},YXAh:function(t,n,e){"use strict";e.r(n);var o=e("Woj4");n.default=o.default},bOkD:function(t,n,e){var o=e("cHE3");t.exports=function(t){if(Array.isArray(t))return o(t)}},cMav:function(t,n,e){var o=e("i2RQ"),r=e("N7I1");t.exports=function(t,n){return!n||"object"!==o(n)&&"function"!==typeof n?r(t):n}},dq4L:function(t,n,e){"use strict";n.__esModule=!0,n.isInAmpMode=c,n.useAmp=function(){return c(r.default.useContext(i.AmpStateContext))};var o,r=(o=e("ERkP"))&&o.__esModule?o:{default:o},i=e("TZT2");function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.ampFirst,e=void 0!==n&&n,o=t.hybrid,r=void 0!==o&&o,i=t.hasQuery,c=void 0!==i&&i;return e||r&&c}},"iN+R":function(t,n,e){var o=e("bOkD"),r=e("DSo7"),i=e("D7XE"),c=e("uYlf");t.exports=function(t){return o(t)||r(t)||i(t)||c()}},"op+c":function(t,n,e){"use strict";var o;n.__esModule=!0,n.HeadManagerContext=void 0;var r=((o=e("ERkP"))&&o.__esModule?o:{default:o}).default.createContext({});n.HeadManagerContext=r},pSQP:function(t,n){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e},qWIC:function(t,n,e){"use strict";e.d(n,"f",(function(){return a})),e.d(n,"b",(function(){return u})),e.d(n,"g",(function(){return f})),e.d(n,"e",(function(){return l})),e.d(n,"a",(function(){return s})),e.d(n,"c",(function(){return d})),e.d(n,"d",(function(){return p})),e.d(n,"h",(function(){return g}));var o=e("r4FT"),r=e("0D0S"),i=e.n(r)()().publicRuntimeConfig.PLATFORM,c=function(t){if(!t)return t;var n=t.replace("\u2019","'");return n="MONZA E BRIANZA"===n||"MONZA-E-BRIANZA"===n?"MONZA E DELLA BRIANZA":"GALLURA-NORD-EST-SARDEGNA"===n||"GALLURA NORD-EST SARDEGNA"===n?"GALLURA NORD-EST SARDEGNA":"MASSA CARRARA"===n||"MASSA-CARRARA"===n?"MASSA-CARRARA":n.replaceAll("-"," ")},a=function(t){return o.a.get("".concat(i,"/province?nome=*").concat(c(t),"*|LIKE")).then((function(t){return t.data.data}))}
1,u=function(t){return o.a.get("".concat(i,"/comuni?nome=*").concat(c(t),"*|LIKE&limit=50")).then((function(t){return t.data.data}))},f=function(t){return o.a.get("".concat(i,"/regioni?nome=*").concat(c(t),"*|LIKE")).then((function(t){return t.data.data}))},l=function(t){var n=t.page,e=t.query,r=["limit=24","page=".concat(n)].join("&");return o.a.get("".concat(i,"/luoghi/?with=tipologia,gfp,gfp.media&has=gfp&").concat(r,"&").concat(e||"")).then((function(t){return t.data}))},s=function(t){var n=t.prov_id,e=t.id,r=[,"limit=8","page=1"].join("&");return o.a.get("".concat(i,"/luoghi/?with=media,gfp,gfp.media,tipologia&has=gfp").concat(r,"&").concat(n&&"prov_id=".concat(n)||"","&id=").concat(e,"|NOT")).then((function(t){return t.data.data}))},d=function(t){return o.a.get("".concat(i,"/luoghi/?").concat(t,"&with=media,gfp,gfp.media,tipologia,comune,provincia,gfp.fascialoghi&has=gfp")).then((function(t){return t.data.data[0]}))},p=function(){return o.a.get("".concat(i,"/verticals/?id=GFP")).then((function(t){return t.data.data[0]}))},g=function(t,n){return void 0!==t&&null!==t&&o.a.get("".concat(i,"/luoghi/?gfp.id_gf_itinerario=").concat(t,"|LIKE&id[]=").concat(n,"|NOT&with=gfp,gfp.media&has=gfp")).then((function(t){return t.data.data}))}},uYlf:function(t,n){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},vSc7:function(t,n,e){"use strict";e.d(n,"e",(function(){return o})),e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return i})),e.d(n,"d",(function(){return c})),e.d(n,"a",(function(){return a}));var o=function(t,n){return t?n?"<".concat(n,">").concat(t,"</").concat(n,">"):t:""},r=function(t,n){return t&&t||n},i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return"".concat(t.replace(/(^\w+:|^)\/\//,"").split(".")[0],".imgix.net")},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fai-platform.s3.amazonaws.com";return t.replace(e,"function"!==typeof n?n:n(t))},c=function(t,n){return t.sort((function(t,e){return(t[n]||100)>(e[n]||100)?1:-1}))},a=function(t,n,e,o){var r=t.split("-").map((function(n,e){return e===t.split("-").length-1?n:"".concat(n,"+")})).join("");return"".concat("https://www.google.it/maps/search","/").concat(r,"/@").concat(n,",").concat(e,",").concat(o)}},ysqo:function(t,n,e){"use strict";e("O5Wi");n.__esModule=!0,n.defaultHead=l,n.default=void 0;var o,r=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==typeof t&&"function"!==typeof t)return{default:t};var n=f();if(n&&n.has(t))return n.get(t);var e={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=o?Object.getOwnPropertyDescriptor(t,r):null;i&&(i.get||i.set)?Object.defineProperty(e,r,i):e[r]=t[r]}e.default=t,n&&n.set(t,e);return e}(e("ERkP")),i=(o=e("J9Yr"))&&o.__esModule?o:{default:o},c=e("TZT2"),a=e("op+c"),u=e("dq4L");function f(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return f=function(){return t},t}function l(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=[r.default.createElement("meta",{charSet:"utf-8"})];return t||n.push(r.default.createElement("meta",{name:"viewport",content:"width=device-width"})),n}function s(t,n){return"string"===typeof n||"number"===typeof n?t:n.type===r.default.Fragment?t.concat(r.default.Children.toArray(n.props.children).reduce((function(t,n){return"string"===typeof n||"number"===typeof n?t:t.concat(n)}),[])):t.concat(n)}var d=["name","httpEquiv","charSet","itemProp"];function p(t,n){return t.reduce((function(t,n){var e=r.default.Children.toArray(n.props.children);return t.concat(e)}),[]).reduce(s,[]).reverse().concat(l(n.inAmpMode)).filter(function(){var t=new Set,n=new Set,e=new Set,o={};return function(r){var i=!0;if(r.key&&"number"!==typeof r.key&&r.key.indexOf("$")>0){var c=r.key.slice(r.key.indexOf("$")+1);t.has(c)?i=!1:t.add(c)}switch(r.type){case"title":case"base":n.has(r.type)?i=!1:n.add(r.type);break;case"meta":for(var a=0,u=d.length;a<u;a++){var f=d[a];if(r.props.hasOwnProperty(f))if("charSet"===f)e.has(f)?i=!1:e.add(f);else{var l=r.props[f],s=o[f]||new Set;s.has(l)?i=!1:(s.add(l),o[f]=s)}}}return i}}()).reverse().map((function(t,n){var e=t.key||n;return r.default.cloneElement(t,{key:e})}))}function g(t){var n=t.children,e=(0,r.useContext)(c.AmpStateContext),o=(0,r.useContext)(a.HeadManagerContext);return r.default.createElement(i.default,{reduceComponentsToState:p,headManager:o,inAmpMode:(0,u.isInAmpMode)(e)},n)}g.rewind=function(){};var _=g;n.default=_}},[["66mY",1,0,5,7,3,2,6,4,13,17,33]]]);

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.