1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[58],{"+H2D":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var r="LOCATION_REQUEST",o="LOCATION_COMMIT",a="LOCATION_FAILURE"},FAGI:function(t,e,n){"use strict";var r=n("fGyu"),o=n("QsI/"),a=n("9fIP"),i=n("MMYH"),c=n("K/z8"),u=n("sRHE"),s=n("8K1b"),l=n("ERkP"),f=n("wuXC"),p=n.n(f);function d(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return h(s,"_invoke",function(n,r,o){var a,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return a=e,c=0,u=t,p.n=n,i}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,a=l[e],d=p.p,h=a[2];n>3?(o=h===r)&&(u=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=t):a[0]<=d&&((o=n<2&&d<a[1])?(c=0,p.v=r,p.n=a[1]):d<h&&(o=n<3||a[0]>r||r>h)&&(a[4]=n,a[5]=r,p.n=h,c=0))}if(o||n>1)return i;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){a||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,a){if(c||(o="next"),e=a[o]){if(!(e=e.call(a,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=a.return)&&e.call(a),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);a=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==i)break}catch(e){a=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,a),!0),s}var i={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(h(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,h(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,h(f,"constructor",s),h(s,"constructor",u),u.displayName="GeneratorFunction",h(s,o,"GeneratorFunction"),h(f),h(f,o,"Generator"),h(f,r,(function(){return this})),h(f,"toString",(function(){return"[object Generator]"})),(d=function(){return{w:a,m:p}})()}function h(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(h=function(t,e,n,r){function a(e,n){h(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 g(t,e,n){return e=Object(u.a)(e),Object(c.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(u.a)(t).constructor):e.apply(t,n))}var b={items:[],page:1,nextPage:null,total:0,working:!1},v=function(t){function e(){var t;return Object(a.a)(this,e),(t=g(this,e)).state=b,t.loadMore=t.loadMore.bind(t),t}return Object(s.a)(e,t),Object(i.a)(e,[{key:"componentDidMount",value:function(){this.update()}},{key:"componentDidUpdate",value:function(t,e){p()(t.queryObject,this.props.queryObject)?this.state.page===e.page||1===this.state.page||this.update():this.setState({page:1,items:[]},this.update)}},{key:"loadMore",value:function(){this.prevY=document.documentElement.scrollTop;var t=this.state.items;this.lastItemId=t[t.length-1].id,this.setState({page:this.state.page+1})}},{key:"update",value:function(){var t=this;this.setState({working:!0},Object(o.a)(d().m((function e(){var n,o,a,i,c,u,s,l;return d().w((function(e){for(;;)switch(e.n){case 0:if(n=t.props,o=n.apiRequest,a=n.queryObject,o){e.n=1;break}return t.setState({working:!1}),e.a(2);case 1:return i=t.state.page,e.n=2,o({page:i,queryObject:a});case 2:if(c=e.v){e.n=3;break}return t.setState({working:!1}),e.a(2);case 3:u=c.items,s=c.nextPage,l=c.total,t.setState({items:[].concat(Object(r.a)(t.state.items),Object(r.a)(null!==u&&void 0!==u?u:[])),nextPage:s,total:l,working:!1},(function(){if(t.lastItemId){var e=document.querySelector("[data-id='"+t.lastItemId+"']");e&&e.offsetWidth>0&&e.offsetHeight>0&&(e.scrollIntoView(),window.scrollBy(0,-200))}else document.documentElement.scrollTop=t.prevY}));case 4:return e.a(2)}}),e)}))))}},{key:"render",value:function(){var t=this.state,e=t.items,n=t.nextPage,r=t.total,o=t.working;return this.props.children({items:e,loadMore:this.loadMore,nextPage:n,total:r,working:o})}}])}(l.Component);e.a=v},NAJH:function(t,e,n){"use strict";var r=n("Z2Hg");n.d(e,"a",(function(){return r.a}));var o=n("w2w1");n.d(e,"b",(function(){return o.a}));n("Gae8");var a=n("Zee3");n.d(e,"c",(function(){return a.a}));var i=n("KZWD");n.d(e,"d",(function(){return i.a}));n("pxt2");var c=n("KtlO");n.d(e,"e",(function(){return c.a}));n("u2PW"),n("xQZi")},NbfL:function(t,e,n){"use strict";var r=n("cxan"),o=n("9fIP"),a=n("MMYH"),i=n("K/z8"),c=n("sRHE"),u=n("8K1b"),s=n("ERkP"),l=n.n(s),f=n("voCV"),p=n("NAJH"),d=n("QtE3"),h=n("r4FT"),g=n("0D0S"),b=n.n(g)()().publicRuntimeConfig.WP_API,v=function(t){return h.a.get("".concat(b,"mrr/v1/menus/").concat(t)).then((function(t){return t.data}
1)).catch((function(){return[]}))},y=n("aWzz"),O=n.n(y);function m(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 j=function(t){function e(){return Object(o.a)(this,e),m(this,e,arguments)}return Object(u.a)(e,t),Object(a.a)(e,[{key:"render",value:function(){return this.props.children(this.context.slug)}}])}(l.a.Component);j.contextTypes={slug:O.a.string};var w=j,S=l.a.createElement;function k(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))}e.a=Object(f.a)(Object(p.d)([{prop:"data",type:"api",resource:"menus",exact:1,label:"Seleziona menu"}]),(function(t){var e=function(e){function n(){var t;return Object(o.a)(this,n),(t=k(this,n)).state={tabs:[]},t.child=l.a.createRef(),t}return Object(u.a)(n,e),Object(a.a)(n,[{key:"componentDidMount",value:function(){this.props.data&&this.getData(this.props.data)}},{key:"componentWillReceiveProps",value:function(t){t.data&&this.getData(t.data)}},{key:"getData",value:function(t){var e=this;v(t[0]).then((function(t){e.setState({tabs:t.map((function(t){return{id:t.id,href:t.permalink,label:t.text}}))},(function(){return"function"===typeof e.child.current.maybeCenter&&e.child.current.maybeCenter()}))}))}},{key:"render",value:function(){return S(t,Object(r.a)({},this.props,{tabs:this.state.tabs,innerRef:this.child}))}}])}(s.Component);return e.displayName=Object(f.i)(t,"WithMenu"),e}))((function(t){var e=t.tabs,n=t.innerRef;return S(w,null,(function(t){var r=e.find((function(e){return e.href===t})),o=r&&r.id;return S(d.TabsNavigation,{tabs:e,selectedId:o,isMenu:!0,ref:n})}))}))},TGUm:function(t,e,n){"use strict";var r=n("zygG"),o=n("HbGN"),a=n("zjfJ"),i=n("9fIP"),c=n("MMYH"),u=n("K/z8"),s=n("sRHE"),l=n("8K1b"),f=n("ERkP"),p=n("cr+I"),d=n.n(p),h=n("wuXC"),g=n.n(h),b=["ids"];function v(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 y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){Object(a.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function O(t,e,n){return e=Object(s.a)(e),Object(u.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(s.a)(t).constructor):e.apply(t,n))}var m={origin:"",path:"",queryObject:{}},j=function(t){function e(t){var n;return Object(i.a)(this,e),(n=O(this,e,[t])).state=y(y({},m),{},{queryObject:t.queryString}),n.setQueryString=n.setQueryString.bind(n),n.getQueryString=n.getQueryString.bind(n),n.update=n.update.bind(n),n}return Object(l.a)(e,t),Object(c.a)(e,[{key:"componentDidUpdate",value:function(t,e){var n=this.state.queryObject;g()(e.queryObject,n)||this.update()}},{key:"update",value:function(){var t=this.props.noUpdate,e=this.state.queryObject;if(!t){var n=e,a=n.ids,i=Object(o.a)(n,b);
1if(a)e=y(y({},a.reduce((function(t,e){if("string"===typeof e&&e.indexOf(!0)){var n=e.split(":"),o=Object(r.a)(n,2),a=o[0],i=o[1];t[a]=t[a]||[],t[a].push(i)}else t.ids=t.ids||[],t.ids.push(e);return t}),{})),i);window.history.pushState({},"","".concat(window.location.origin).concat(window.location.pathname,"?").concat(d.a.stringify(e,{arrayFormat:"bracket"})))}}},{key:"setQueryString",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.state.queryObject;this.setState({queryObject:y(y({},e?{}:n),t)})}},{key:"getQueryString",value:function(){return this.state.queryObject}},{key:"render",value:function(){return this.props.children({setQueryString:this.setQueryString,getQueryObject:this.getQueryString})}}])}(f.Component);e.a=j},XXot:function(t,e,n){"use strict";n.r(e);var r=n("QsI/"),o=n("cxan"),a=n("9fIP"),i=n("MMYH"),c=n("K/z8"),u=n("sRHE"),s=n("8K1b"),l=n("ERkP"),f=n.n(l),p=n("j/s1"),d=n("QtE3"),h=n("uPMs"),g=n("zjfJ"),b=n("fN3Q"),v=n.n(b),y=n("I6ye"),O=n("6780"),m=n("qWIC"),j=f.a.createElement;function w(t,e,n){return e=Object(u.a)(e),Object(c.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(u.a)(t).constructor):e.apply(t,n))}var S=function(t){function e(t){var n;return Object(a.a)(this,e),n=w(this,e,[t]),console.log(t),n.state={comuni:[],province:[],regioni:[]},n.update=n.update.bind(n),n}return Object(s.a)(e,t),Object(i.a)(e,[{key:"componentDidUpdate",value:function(t){t.search!==this.props.search&&this.update()}},{key:"componentDidMount",value:function(){this.props.search&&this.update()}},{key:"update",value:function(){var t=this,e=this.props.search;Object(m.b)(e).then((function(e){return t.setState({comuni:e})})),Object(m.f)(e).then((function(e){return t.setState({province:e})})),Object(m.g)(e).then((function(e){return t.setState({regioni:e})}))}},{key:"render",value:function(){var t=this.props,e=t.search,n=t.comune,r=t.provincia,o=t.regione,a=this.state,i=a.comuni,c=a.province,u=a.regioni;if(e&&0===e.length||""===e||void 0===e||n||r||o||!(i&&i.length>0||c&&c.length>0||u&&u.length>0))return null;var s,l=(s="nome",function(t,e){return t.map((function(t){return[t[s],"?".concat(e,"=").concat(t[s])]}))}),p=[i&&i.length>0&&{title:"Comuni",tags:l(i,"comune")},c&&c.length>0&&{title:"Province",tags:l(c,"provincia")},u&&u.length>0&&{title:"Regioni",tags:l(u,"regione")}].filter((function(t){return t}));return j(f.a.Fragment,null,j(d.Wrapper,{size:"big"},j(d.Tags,{tagsGroups:p})))}}])}(f.a.Component),k=n("6qMH"),P=f.a.createElement;function A(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 R(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?A(Object(n),!0).forEach((function(e){Object(g.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function E(t,e,n){return e=Object(u.a)(e),Object(c.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(u.a)(t).constructor):e.apply(t,n))}var x=n("tTwn"),I=function(t){var e=t.handleSearch,n=t.handleShowMap,r=t.search,o=t.comune,a=t.provincia,i=t.regione,c=t.selectedOptions,u=t.checkIfShowError,s=t.meta,l=t.showMap,f={id:v()(),type:"group",options:[{name:"Vicino a me",id:"geolocation",icon:!1,disabled:!!(o||a||i)},{name:"Luoghi Accessibili",id:"fl_accesso_disabili",icon:"wheelchair"}]},p={id:v()(),type:"dropdown",name:"Filtra luoghi",groups:[{options:[{name:"Ingressi dedicati agli iscritti FAI",id:"fl_ingresso_esclusivo"},{name:"Beni FAI visitabili tutto l'anno",id:"fl_bene_fai"},{name:"Aperture della Commissione Europea",id:"fl_commissione_eu"}]}]};
1return P(d.Background,{color:"white"},P(L,null,P(M,null,P(q,null,P(D,{active:!l,onClick:function(t){return n(!1)}},"Lista"),P(D,{active:l,onClick:function(t){return n(!0)}},"Mappa"))),l||P(G,null,P(d.FiltersBar,{searchPlaceholder:"Cerca ".concat(Object(y.c)({comune:o,provincia:a,regione:i})),onChange:e,searchValue:r,selectedOptions:c,model:[f,p],checkIfShowError:u,error:s&&s.queryError,fixedBottom:!1}))))},_=function(t){var e=t.search,n=t.comune,r=t.provincia,o=t.regione,a=t.nearby,i=(n||r||o)&&'<h1 style="text-align:center; margin-bottom: .5rem;">\n Luoghi '.concat(Object(y.c)({comune:n,provincia:r,regione:o}),"\n </h1>\n "),c='<p><a href="/il-fai/grandi-campagne/giornate-fai-di-primavera/i-luoghi-aperti">Resetta la ricerca</a></p>',u=[i&&i,e&&'<h1 style="text-align:center; margin-bottom: .5rem;">Hai cercato <strong>"'.concat(x(e),'"</strong></h1>'),a&&'<h2 style="text-align:center; margin-bottom: .5rem;">Stai cercando nel raggio di 100 km dalla tua posizione attuale</h2>',c].filter((function(t){return t})).join("");return P(f.a.Fragment,null,P(d.FiltersResults,{total:-1,message:u}))},C=function(t){function e(t){var n;return Object(a.a)(this,e),(n=E(this,e,[t])).state={meta:{queryError:null},showResult:!Object(y.d)(t.queryObject)},n.handleSearch=n.handleSearch.bind(n),n.checkIfShowError=n.checkIfShowError.bind(n),n.handleShowMap=n.handleShowMap.bind(n),n}return Object(s.a)(e,t),Object(i.a)(e,[{key:"componentDidUpdate",value:function(t,e){var n=this.props.coords;!t.coords&&n&&this.handleLocation()}},{key:"checkIfShowError",value:function(t){return t&&t.length<3?(this.setState({meta:{queryError:"Devi scrivere almeno 3 caratteri"}}),!0):(this.setState({meta:{queryError:null}}),!1)}},{key:"handleLocation",value:function(){var t=this.props,e=t.coords;(0,t.setQueryString)(R(R({},e),{},{nearby:!0})),this.setState({showResult:!0})}},{key:"handleSearch",value:function(t){var e=this.props,n=e.setQueryString,r=e.queryObject,o=r.comune,a=r.provincia,i=r.regione,c=r.showMap,u=e.requestLocation,s=e.coords,l=t.selectedOptions,f=t.search;if(this.checkIfShowError(f))return!1;var p=l&&l.length&&"geolocation"===l.find((function(t){return"geolocation"===t}));if(p&&!s)return"function"===typeof u&&u();var d=Object(y.b)(R(R({},t),{},{comune:o,provincia:a,regione:i,showMap:c}));this.setState({showResult:!0}),n(R(R({},d),p?R(R({},s),{},{nearby:!0}):{}),!0)}},{key:"handleShowMap",value:function(t){(0,this.props.setQueryString)(R({},Object(y.b)({showMap:t})),!0)}},{key:"render",value:function(){if(!this.props.listOfGfp)return null;var t=this.props,e=t.canLoadMore,r=t.loading,a=(t.loadMore,t.listOfGfp),i=t.handleLoadMore,c=t.loadingMore,u=(t.originUrl,t.queryObject),s=t.total,l=this.state,p=l.meta,h=l.showResult,g=u.comune,b=u.provincia,v=u.regione,m=u.showMap;return P(d.Background,{color:"grey"},P(I,Object(o.a)({},Object(y.h)(u),{handleSearch:this.handleSearch,checkIfShowError:this.checkIfShowError,handleShowMap:this.handleShowMap,showMap:m,meta:p})),m?P(k.a,{getPage:Promise.all([n.e(33),n.e(38)]).then(n.bind(null,"Woj4")),api:"gfp"}):P(f.a.Fragment,null,r&&P(d.Loading,{text:"<h4>Caricamento in corso</h4>"}),(h||g||b||v)&&P(_,Object(o.a)({total:s},u)),P(S,Object(o.a)({},this.props,u)),!r&&a&&0===a.length?P(d.Padder,{size:"small"},P("div",{style:{textAlign:"center"}},P(d.FiltersResults,{total:"0"}))):P(O.a,{getPage:Promise.all([n.e(33),n.e(38)]).then(n.bind(null,"Woj4"))},(function(t){var e=t.handleCardClick;return P(f.a.Fragment,null,P(d.ListOfCards,{wrap:"big",cards:a.map(y.e),CardComponent:function(t){return P(d.ListCardWithTooltips,Object(o.a)({},t,{onClick:function(){return e({slug:t.slug,id:t.id})}}))},vertical:!0}))})),e&&!r&&P(d.Padder,{size:"small"},P(d.Button,{onClick:i,children:c?"Carico...":"Mostra altri",centered:!0}))))}}])}(f.a.Component),L=(p.d.a.withConfig({displayName:"LuoghiApertiGfp__ScaricaPdf",componentId:"sc-1v7abz1-0"})(["text-align:center;display:block;padding-top:1rem;@media screen and (min-width:1024px){font-size:14px;padding-top:2rem;}"]),p.d.div.withConfig({displayName:"LuoghiApertiGfp__FlexContainer",componentId:"sc-1v7abz1-1"})(["display:flex;flex-flow:row wrap;background:white;max-width:1440px;margin:auto;"])),M=p.d.div.withConfig({displayName:"LuoghiApertiGfp__FlexChildBtn",componentId:"sc-1v7abz1-2"})(["flex:200px 0 0;"]),G=p.d.div.withConfig({displayName:"LuoghiApertiGfp__FlexChild",componentId:"sc-1v7abz1-3"})(["flex-grow:0;@media screen and (min-width:1024px){flex-grow:1;}"]),q=p.d.div.withConfig({displayName:"LuoghiApertiGfp__FlexButtonsContainer",componentId:"sc-1v7abz1-4"})(['display:flex;justify-content:center;flex-flow:row wrap;margin:auto;height:100%;&:before{border-left:none;}@media screen and (min-width:1024px){&:before{content:"";border-left:2px solid ',";}}"],(function(t){return t.theme.colors.borderGreyLight})),D=p.d.div.withConfig({displayName:"LuoghiApertiGfp__FlexButton",componentId:"sc-1v7abz1-5"})(['flex-grow:1;display:flex;cursor:pointer;font-size:0.875rem;text-transform:uppercase;letter-spacing:0.06em;font-weight:800;font-family:"Benton Sans",sans-serif;justify-content:center;align-items:center;background:',";color:",";padding:20px 0px;@media screen and (min-width:1024px){padding:none;}"],(function(t){return t.active?t.theme.colors.orange:"white"}),(function(t){return t.active?"white":t.theme.colors.darkGrey})),F=C,N=n("cXXW"),T=n("NbfL"),z=n("Lm5w"),B=(n("qkzg"),n("FAGI")),Q=n("TGUm"),H=n("D/vV"),U=(n("UxPf"),n("0D0S")),W=n.n(U),K=f.a.createElement;function X(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return Z(s,"_invoke",function(n,r,o){var a,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return a=e,c=0,u=t,p.n=n,i}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,a=l[e],d=p.p,h=a[2];n>3?(o=h===r)&&(u=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=t):a[0]<=d&&((o=n<2&&d<a[1])?(c=0,p.v=r,p.n=a[1]):d<h&&
1(o=n<3||a[0]>r||r>h)&&(a[4]=n,a[5]=r,p.n=h,c=0))}if(o||n>1)return i;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){a||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,a){if(c||(o="next"),e=a[o]){if(!(e=e.call(a,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=a.return)&&e.call(a),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);a=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==i)break}catch(e){a=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,a),!0),s}var i={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(Z(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Z(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,Z(f,"constructor",s),Z(s,"constructor",u),u.displayName="GeneratorFunction",Z(s,o,"GeneratorFunction"),Z(f),Z(f,o,"Generator"),Z(f,r,(function(){return this})),Z(f,"toString",(function(){return"[object Generator]"})),(X=function(){return{w:a,m:p}})()}function Z(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(Z=function(t,e,n,r){function a(e,n){Z(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 J(t,e,n){return e=Object(u.a)(e),Object(c.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(u.a)(t).constructor):e.apply(t,n))}var V=W()().publicRuntimeConfig.APP_DOMAIN,Y=function(t){var e=t.page,n=t.queryObject;return Object(m.e)({page:e,query:Object(y.g)(n)}).then((function(t){return{items:t.data,nextPage:t.next_page_url,total:t.total}}))},$=function(t){function e(){return Object(a.a)(this,e),J(this,e,arguments)}return Object(s.a)(e,t),Object(i.a)(e,[{key:"render",value:function(){var t=this,e=this.props,n=e.seo,r=e.originUrl;e.vertical;return K(h.a,{seo:n},K(tt,null),K(T.a,{data:["gfp"]}),K(N.a,null,(function(e){var n=e.requestLocation,a=e.coords,i=e.status;return K(H.a,null,(function(e){return K(Q.a,{queryString:e},(function(e){var c=e.getQueryObject,u=e.setQueryString;return K(B.a,{apiRequest:Y,queryObject:c()},(function(e){var s=e.items,l=e.loadMore,f=e.nextPage,p=e.total,d=e.working;return K(F,Object(o.a)({},t.props,{originUrl:r,setQueryString:u,total:p,queryObject:c(),listOfGfp:s,canLoadMore:f,handleLoadMore:l,loading:d||"LOADING"===i,requestLocation:n,coords:a}))}))}))}))})),K("div",null,K(d.Wrapper,{size:"medium"},K(d.Padder,{size:"medium"},K(d.Figure,{image:{url:"https://fai-website.imgix.net/uploads/2026/03/03104600/FL_GFP_2026-190226_2.jpg",alt:"Fascia loghi Giornate FAI di Primavera",title:"Fascia loghi Giornate FAI di Primavera"}})))))}}],[{key:"getInitialProps",value:function(){var t=Object(r.a)(X().m((function t(e){var n,r,o,a;return X().w((function(t){for(;;)switch(t.n){case 0:return n=e.req,r={title:"Scopri i Luoghi aperti per le Giornate FAI di Primavera",description:"Tornano le Giornate FAI di Primavera. Scopri le aperture di questa edizione",url:"".concat(V).concat(y.a),ogImage:"https://fai-website.imgix.net/static/GFPCondivisione2021.jpeg?h=630&w=1200&fit=crop"},o=n?y.a:window.location.href,t.n=1,Object(m.d)();case 1:return a=t.v,t.a(2,{seo:r,originUrl:o,vertical:a})}}),t)})));return function(e){return t.apply(this,arguments)}}()}])}(l.Component),tt=p.d.div.withConfig({displayName:"ListOfLuoghi__SpazioSottoHeader",componentId:"sc-11kczz8-0"})(["height:138px;@media screen and (min-width:768px){height:104px;}"]),et=Object(z.a)({header:{alwaysFixed:!0,hasCustomHeader:!0,headerType:"gfp"}})($);e.default=et},cXXW:function(t,e,n){"use strict";var r=n("uDfI"),o=n("j46Z"),a=n("o2OV");e.a=Object(r.b)((function(t){return{coords:Object(a.c)(t),status:Object(a.d)(t),code:Object(a.b)(t)}}),o)((function(t){var e=t.coords,n=t.status,r=t.requestLocation,o=t.code;return(0,t.children)({coords:e,status:n,requestLocation:r,code:o})}))},j46Z:function(t,e,n){"use strict";n.r(e),n.d(e,"requestLocation",(function(){return o}
1)),n.d(e,"commitLocation",(function(){return a})),n.d(e,"failLocation",(function(){return i}));var r=n("+H2D"),o=function(){return{type:r.c}},a=function(t){var e=t.lat,n=t.lng;return{type:r.a,payload:{coords:{lat:e,lng:n}}}},i=function(t){var e=t.code;return{type:r.b,meta:{code:e}}}},o2OV:function(t,e,n){"use strict";n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return l}));var r=n("zjfJ"),o=n("+H2D");function a(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 i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var c=function(t){return t.location?t.location:null},u=function(t){var e=c(t);return e&&e.coords},s=function(t){var e=c(t);return e&&e.status},l=function(t){var e=c(t);return e&&e.meta&&e.meta.code};e.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case o.c:return i(i({},t),{},{status:"LOADING"});case o.a:return i(i({},t),{},{status:"SUCCESSFUL",coords:e.payload.coords});case o.b:return i(i({},t),{},{status:"FAILURE",meta:e.meta});default:return t}}},qWIC:function(t,e,n){"use strict";n.d(e,"f",(function(){return c})),n.d(e,"b",(function(){return u})),n.d(e,"g",(function(){return s})),n.d(e,"e",(function(){return l})),n.d(e,"a",(function(){return f})),n.d(e,"c",(function(){return p})),n.d(e,"d",(function(){return d})),n.d(e,"h",(function(){return h}));var r=n("r4FT"),o=n("0D0S"),a=n.n(o)()().publicRuntimeConfig.PLATFORM,i=function(t){if(!t)return t;var e=t.replace("\u2019","'");return e="MONZA E BRIANZA"===e||"MONZA-E-BRIANZA"===e?"MONZA E DELLA BRIANZA":"GALLURA-NORD-EST-SARDEGNA"===e||"GALLURA NORD-EST SARDEGNA"===e?"GALLURA NORD-EST SARDEGNA":"MASSA CARRARA"===e||"MASSA-CARRARA"===e?"MASSA-CARRARA":e.replaceAll("-"," ")},c=function(t){return r.a.get("".concat(a,"/province?nome=*").concat(i(t),"*|LIKE")).then((function(t){return t.data.data}))},u=function(t){return r.a.get("".concat(a,"/comuni?nome=*").concat(i(t),"*|LIKE&limit=50")).then((function(t){return t.data.data}))},s=function(t){return r.a.get("".concat(a,"/regioni?nome=*").concat(i(t),"*|LIKE")).then((function(t){return t.data.data}))},l=function(t){var e=t.page,n=t.query,o=["limit=24","page=".concat(e)].join("&");return r.a.get("".concat(a,"/luoghi/?with=tipologia,gfp,gfp.media&has=gfp&").concat(o,"&").concat(n||"")).then((function(t){return t.data}))},f=function(t){var e=t.prov_id,n=t.id,o=[,"limit=8","page=1"].join("&");return r.a.get("".concat(a,"/luoghi/?with=media,gfp,gfp.media,tipologia&has=gfp").concat(o,"&").concat(e&&"prov_id=".concat(e)||"","&id=").concat(n,"|NOT")).then((function(t){return t.data.data}))},p=function(t){return r.a.get("".concat(a,"/luoghi/?").concat(t,"&with=media,gfp,gfp.media,tipologia,comune,provincia,gfp.fascialoghi&has=gfp")).then((function(t){return t.data.data[0]}))},d=function(){return r.a.get("".concat(a,"/verticals/?id=GFP")).then((function(t){return t.data.data[0]}))},h=function(t,e){return void 0!==t&&null!==t&&r.a.get("".concat(a,"/luoghi/?gfp.id_gf_itinerario=").concat(t,"|LIKE&id[]=").concat(e,"|NOT&with=gfp,gfp.media&has=gfp")).then((function(t){return t.data.data}))}},qkzg:function(t,e,n){"use strict";var r=n("9fIP"),o=n("MMYH"),a=n("K/z8"),i=n("sRHE"),c=n("8K1b"),u=n("ERkP"),s=n.n(u),l=n("aWzz"),f=n.n(l);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 d=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:"render",value:function(){return this.props.children(this.context.measures)}}])}(s.a.Component);d.contextTypes={measures:f.a.object},e.a=d},ypll:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/gfp/listOfLuoghi",function(){return n("XXot")}])}},[["ypll",1,0,5,7,3,2,6,4,8,9,10,11,13,12,15,14,16,17,18,19,20,21,22,24]]]);
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.