1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[86],{NAJH:function(t,e,n){"use strict";var r=n("Z2Hg");n.d(e,"a",(function(){return r.a}));var a=n("w2w1");n.d(e,"b",(function(){return a.a}));n("Gae8");var i=n("Zee3");n.d(e,"c",(function(){return i.a}));var o=n("KZWD");n.d(e,"d",(function(){return o.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"),a=n("9fIP"),i=n("MMYH"),o=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"),b=n("r4FT"),g=n("0D0S"),h=n.n(g)()().publicRuntimeConfig.WP_API,m=function(t){return b.a.get("".concat(h,"mrr/v1/menus/").concat(t)).then((function(t){return t.data})).catch((function(){return[]}))},v=n("aWzz"),y=n.n(v);function O(t,e,n){return e=Object(c.a)(e),Object(o.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(a.a)(this,e),O(this,e,arguments)}return Object(u.a)(e,t),Object(i.a)(e,[{key:"render",value:function(){return this.props.children(this.context.slug)}}])}(l.a.Component);j.contextTypes={slug:y.a.string};var w=j,P=l.a.createElement;function _(t,e,n){return e=Object(c.a)(e),Object(o.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(a.a)(this,n),(t=_(this,n)).state={tabs:[]},t.child=l.a.createRef(),t}return Object(u.a)(n,e),Object(i.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;m(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 P(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 P(w,null,(function(t){var r=e.find((function(e){return e.href===t})),a=r&&r.id;return P(d.TabsNavigation,{tabs:e,selectedId:a,isMenu:!0,ref:n})}))}))},h4bE:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/newSearch",function(){return n("jsND")}])},jsND:function(t,e,n){"use strict";n.r(e);var r=n("zygG"),a=n("zjfJ"),i=n("fGyu"),o=n("QsI/"),c=n("cxan"),u=n("9fIP"),s=n("MMYH"),l=n("K/z8"),f=n("sRHE"),p=n("8K1b"),d=n("ERkP"),b=n.n(d),g=n("prCu"),h=n.n(g),m=n("QtE3"),v=n("Lm5w"),y=n("NbfL"),O=n("uPMs"),j=n("6qMH"),w=n("cj0A"),P=n("0D0S"),_=n.n(P),F=b.a.createElement;function I(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function i(n,r,a,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return k(s,"_invoke",function(n,r,a){var i,c,u,s=0,l=a||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,o}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!a&&e<l.length;e++){var a,i=l[e],d=p.p,b=i[2];n>3?(a=b===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((a=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<b&&(a=n<3||i[0]>r||r>b)&&(i[4]=n,i[5]=r,p.n=b,c=0))}if(a||n>1)return o;throw f=!0,r}return function(a,l,b){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,b),c=l,u=b;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(a="next"),e=i[a]){if(!(e=e.call(i,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=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+a+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==o)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,a,i),!0),s}var o={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(k(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,k(t,a,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,k(f,"constructor",s),k(s,"constructor",u),u.displayName="GeneratorFunction",k(s,a,"GeneratorFunction"),k(f),k(f,a,"Generator"),k(f,r,(function(){return this})),k(f,"toString",(function(){return"[object Generator]"})),(I=function(){return{w:i,m:p}})()}function k(t,e,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(t){a=0}(k=function(t,e,n,r){function i(e,n){k(t,e,(function(t){return this._invoke(e,n,t)}))}e?a?a(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function z(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]:{};
1e%2?z(Object(n),!0).forEach((function(e){Object(a.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function C(t,e,n){return e=Object(f.a)(e),Object(l.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(f.a)(t).constructor):e.apply(t,n))}var R=_()().publicRuntimeConfig.APP_DOMAIN,S=function(t){function e(){var t;return Object(u.a)(this,e),(t=C(this,e)).state={currentView:"list"},t}return Object(p.a)(e,t),Object(s.a)(e,[{key:"onViewChange",value:function(t){this.setState({currentView:t})}},{key:"render",value:function(){var t=this,e=this.props,n=e.luoghi,r=(e.searchTerm,e.selectedOptions,"list"===this.state.currentView);return F(O.a,{hasFasciaGrazie:r,hasFasciaNLApp:r,hasFasciaSupporto:r,hasFooter:r},F(m.Hero,{height:"small",title:"1.000 luoghi aperti",subtitle:"Il 24 e 25 marzo per Giornate FAI di Primavera",backgroundImage:{url:"https://fai-website.imgix.net/images/VisualGFP2018.jpg",alt:"Visitatori alle Giornate FAI 2017 di Roma | Ph. Stefano Dal Pozzolo \xa9 Archivio FAI"},breadCrumbs:[["/","Home"],["/il-fai/","Il FAI"],["/il-fai/grandi-campagne","Grandi campagne"],["/il-fai/grandi-campagne/giornate-fai-di-primavera","Giornate FAI di Primavera"],["","Luoghi aperti"]],seo:{url:"".concat(R,"/il-fai/grandi-campagne/giornate-fai-di-primavera/i-luoghi-aperti"),title:"Il 24 e 25 marzo per Giornate FAI di Primavera"}}),F(y.a,{data:["gfp"]}),F(j.a,Object(c.a)({nearbyLuoghi:n},this.props,{onViewChange:function(e){return t.onViewChange.bind(t)(e)}})),r&&F("div",null,F(m.Background,{color:"orange"},F(m.Padder,{size:"small"},F(m.FasciaTitle,{color:"orange",title:"Per informazioni sulle aperture chiama lo 02.467615366"}))),F(m.FasciaCta,{title:"Non aspettare l'ultimo momento!",text:"<p>Iscriviti al FAI o rinnova subito la tua tessera! Anche quest'anno tanti vantaggi riservati solo agli iscritti FAI: ingressi dedicati e corsie preferenziali in tutti i luoghi aperti.</p>",cta:["Iscriviti ora","https://sostienici.fondoambiente.it/iscriviti.aspx?trkcd=PBISCR13H","_self"],buttons:[{id:"neat-sheep-79",button:["Rinnova subito","https://sostienici.fondoambiente.it/iscriviti.aspx?trkcd=PBISCR13H","_self"]}],pad:"medium",wrap:"false",color:"backgroundImage",backgroundImage:{id:"db3aeb3f-5455-4c72-a5a2-68aa46008430",url:"https://fai-website.s3-eu-west-1.amazonaws.com/images/RagazzaTessera2018.jpg",focus:[50,50],alt:"Volontaria con tessera FAI 2018",caption:"<p>Volontaria con tessera FAI 2018</p>",title:"Volontaria con tessera FAI 2018 Foto \xa9 Archivio FAI"},borderLine:!0}),F(m.IconCardContainer,{title:"Sempre a tua disposizione",wrap:"false",color:"green",items:[{id:"serious-dingo-15",icon:"mail",title:"Scrivici",link:["[email protected]","mailto:[email protected]","_self"]},{id:"lovely-walrus-100",icon:"call",title:"Contattaci",text:"02 467615399"},{id:"breezy-dragonfly-99",icon:"no_idea",title:"Stampa la tessera",link:["tessera.fondoambiente.it","https://tessera.fondoambiente.it/","_self"]}]}),F(m.Padder,{size:"medium"},F(m.Figure,{image:{url:"https://fai-website.s3-eu-west-1.amazonaws.com/images/FL_CS.jpg",alt:"Fascia loghi Giornate FAI di Primavera",title:"Fascia loghi Giornate FAI di Primavera"}}))))}}],[{key:"getInitialProps",value:function(){var t=Object(o.a)(I().m((function t(e){var n,a,o,c,u,s,l,f,p,d,b,g,m,v,y,O,j,P,_,F,k,z,C,R,S;return I().w((function(t){for(;;)switch(t.n){case 0:if(n=e.req,a=n?n.query:h.a.parse(window.location.search.substring(1)),c=(o=a).id,u=o.place,s=o.text,l=o.activeView,f=a.coords,p=["gfp.fl_accesso_disabili","gfp.fl_ingresso_esclusivo","gfp.fl_consigliato","fl_bene_fai"].reduce((function(t,e){return"undefined"!==typeof a[e]?[].concat(Object(i.a)(t),[e]):t}),[]),d={selectedOptions:p},!c){t.n=3;break}return t.n=1,w.a.getLuoghiByIds({ids:[c]}).then((function(t){return t.data.data[0]}));case 1:return b=t.v,g=b.gfp.titolo_apertura,m=parseFloat(b.coord_geo_lat),v=parseFloat(b.coord_geo_long),y=[m,v],t.n=2,w.a.getNearbyLuoghi(A({coords:y},d)).then((function(t){return t.data.data}));case 2:return O=t.v,j=g,t.a(2,{searchTerm:j,luoghi:O,selectedOptions:p,activeView:l,center:{lat:m,lng:v},listCenter:{lat:m,lng:v},zoom:11});case 3:if(!u||!f){t.n=5;break}return f=f.split(","),P=f.map(parseFloat),_=Object(r.a)(P,2),F=_[0],k=_[1],t.n=4,w.a.getNearbyLuoghi(A({coords:f},d)).then((function(t){return t.data.data}));case 4:return z=t.v,C=u,t.a(2,{searchTerm:C,luoghi:z,center:{lat:F,lng:k},listCenter:{lat:F,lng:k},selectedOptions:p,activeView:l,zoom:11});case 5:if(!s){t.n=6;break}return t.a(2,{selectedOptions:p,searchText:s,searchTerm:s,activeView:l,zoom:11});case 6:return t.n=7,w.a.getLuoghi({selectedOptions:p}).then((function(t){return t.data}));case 7:return R=t.v,S=R.data,t.a(2,{luoghi:S,selectedOptions:p})}}),t)})));return function(e){return t.apply(this,arguments)}}()}])}(b.a.Component);e.default=Object(v.b)(S)}},[["h4bE",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.