PageSourceSearch

https://myfai.fondoambiente.it/_next/static/chunks/6b65591598ce461…696bf5b71af8b539dfe.ecfc0eb9d71021c40724.js

js fondoambiente.it collected 2026-09-24 08:53:40 UTC 57,561 bytes, 1 lines download raw bytes

1(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[24],{6780:function(e,t,n){"use strict";var o=n("QsI/"),r=n("9fIP"),i=n("MMYH"),a=n("K/z8"),c=n("sRHE"),s=n("8K1b"),l=n("ERkP"),u=n.n(l),d=n("i8i4"),f=n.n(d),g=n("QtE3"),p=u.a.createElement;function h(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var s=o&&o.prototype instanceof c?o:c,l=Object.create(s.prototype);return m(l,"_invoke",function(n,o,r){var i,c,s,l=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:g,f:g.bind(e,4),d:function(t,n){return i=t,c=0,s=e,f.n=n,a}};function g(n,o){for(c=n,s=o,t=0;!d&&l&&!r&&t<u.length;t++){var r,i=u[t],g=f.p,p=i[2];n>3?(r=p===o)&&(s=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=g&&((r=n<2&&g<i[1])?(c=0,f.v=o,f.n=i[1]):g<p&&(r=n<3||i[0]>o||o>p)&&(i[4]=n,i[5]=o,f.n=p,c=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&g(u,p),c=u,s=p;(t=c<2?e:s)||!d;){i||(c?c<3?(c>1&&(f.n=-1),g(c,s)):f.n=s:f.v=s);try{if(l=2,i){if(c||(r="next"),t=i[r]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),c=1);i=e}else if((t=(d=f.n<0)?s:n.call(o,f))!==a)break}catch(t){i=e,c=1,s=t}finally{l=1}}return{value:t,done:d}}}(n,r,i),!0),l}var a={};function c(){}function s(){}function l(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(m(t={},o,(function(){return this})),t),d=l.prototype=c.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,m(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=l,m(d,"constructor",l),m(l,"constructor",s),s.displayName="GeneratorFunction",m(l,r,"GeneratorFunction"),m(d),m(d,r,"Generator"),m(d,o,(function(){return this})),m(d,"toString",(function(){return"[object Generator]"})),(h=function(){return{w:i,m:f}})()}function m(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(m=function(e,t,n,o){function i(t,n){m(e,t,(function(e){return this._invoke(t,n,e)}))}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))})(e,t,n,o)}function b(e,t,n){return t=Object(c.a)(t),Object(a.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var v=function(e){function t(){var e;return Object(r.a)(this,t),(e=b(this,t)).state={activeSlug:null,activeId:null,loading:!1,initialProps:null,didPushState:!1},e.openOverlay=e.openOverlay.bind(e),e.handleOverlayClose=e.handleOverlayClose.bind(e),e._handlePopState=e._handlePopState.bind(e),e}return Object(s.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("popstate",this._handlePopState)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("popstate",this._handlePopState)}},{key:"_handlePopState",value:function(){(this.state.activeSlug||this.state.activeId)&&this.setState({activeSlug:!1,activeId:!1,didPushState:!1})}},{key:"openOverlay",value:function(){var e=Object(o.a)(h().m((function e(t){var n,r,i,a,c,s,l,u,d=this;return h().w((function(e){for(;;)switch(e.n){case 0:return n=t.slug,r=t.id,i=t.fxm,a=t.url,c=this.props.getPage,e.n=1,c.then((function(e){return e.default}));case 1:if(s=e.v,l=window.location.href,u=!1,a)try{window.history.pushState({luogoOverlay:!0},"",a),u=!0}catch(f){}this.setState({activeSlug:n,activeId:r,originUrl:l,didPushState:u,loading:!0,Page:s},Object(o.a)(h().m((function e(){var t;return h().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,s.getInitialProps({query:{slug:n,id:r,fxm:i,isOverlay:!0}});case 1:t=e.v,d.setState({initialProps:t,loading:!1},(function(){}));case 2:return e.a(2)}}),e)}))));case 2:return e.a(2)}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"handleOverlayClose",value:function(){this.state.didPushState&&(this.state.activeSlug||this.state.activeId)?window.history.back():this.setState({activeSlug:!1,activeId:!1})}},{key:"render",value:function(){var e=this.state,t=e.activeSlug,n=e.activeId,o=e.Page,r=e.initialProps,i=e.loading;return p(u.a.Fragment,null,t||n?f.a.createPortal(i?p(g.Loading,null):p(g.ModalOverlay,{showModal:!0,big:!0,onClose:this.handleOverlayClose},p(o,r)),document.querySelector("#overlay-container")):null,this.props.children({handleCardClick:this.openOverlay}))}}])}(u.a.Component);t.a=v},"6qMH":function(e,t,n){"use strict";var o=n("cxan"),r=n("zjfJ"),i=n("fGyu"),a=n("QsI/"),c=n("HbGN"),s=n("9fIP"),l=n("MMYH"),u=n("K/z8"),d=n("sRHE"),f=n("8K1b"),g=n("ERkP"),p=n.n(g),h=n("voCV"),m=n("Ai6V"),b=n("E/ZA"),v=n.n(b),y=n("j/s1"),O=n("ndhu"),w=n("QqxL"),_=n("lYJj");function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?j(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_LUOGO":return{id:t.id,status:"LOADING"};case"LOADED_LUOGO":return k({status:"LOADED"},t.luogo);default:return e}},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_LUOGHI":return[].concat(Object(i.a)(e),Object(i.a)(t.luoghi.map((function(e){return C(null,{id:e,type:"ADD_LUOGO"})}))));case"LOADED_LUOGHI":return e.map((function(e){var n=t.luoghi.find((function(t){return t.id==e.id}));return n?C(e,{id:n.id,type:"LOADED_LUOGO",luogo:n}):e}));default:return e}},x=n("cj0A"),I=n("QtE3"),P=n("6Oj0"),M=n("0D0S"),L=n.n(M),E=["item","index"],F=p.a.createElement;function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var s=o&&o.prototype instanceof c?o:c,l=Object.create(s.prototype);return A(l,"_invoke",function(n,o,r){var i,c,s,l=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:g,f:g.bind(e,4),d:function(t,n){return i=t,c=0,s=e,f.n=n,a}};function g(n,o){for(c=n,s=o,t=0;!d&&l&&!r&&t<u.length;t++){var r,i=u[t],g=f.p,p=i[2];n>3?(r=p===o)&&(s=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=g&&((r=n<2&&g<i[1])?(c=0,f.v=o,f.n=i[1]):g<p&&(r=n<3||i[0]>o||o>p)&&(i[4]=n,i[5]=o,f.n=p,c=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&g(u,p),c=u,s=p;(t=c<2?e:s)||!d;){i||(c?c<3?(c>1&&(f.n=-1),g(c,s)):f.n=s:f.v=s);try{if(l=2,i){if(c||(r="next"),t=i[r]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),c=1);i=e}else if((t=(d=f.n<0)?s:n.call(o,f))!==a)break}catch(t){i=e,c=1,s=t}finally{l=1}}return{value:t,done:d}}}(n,r,i),!0),l}var a={};function c(){}function s(){}function l(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(A(t={},o,(function(){return this})),t),d=l.prototype=c.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,A(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=l,A(d,"constructor",l),A(l,"constructor",s),s.displayName="GeneratorFunction",A(l,r,"GeneratorFunction"),A(d),A(d,r,"Generator"),A(d,o,(function(){return this})),A(d,"toString",(function(){return"[object Generator]"})),(N=function(){return{w:i,m:f}})()}function A(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(A=function(e,t,n,o){function i(t,n){A(e,t,(function(e){return this._invoke(t,n,e)}))}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))})(e,t,n,o)}function T(e,t,n){return t=Object(d.a)(t),Object(u.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(d.a)(e).constructor):t.apply(e,n))}var G=L()().publicRuntimeConfig.GOOGLE_MAPS_API_KEY,R=function(e){function t(e){var n;return Object(s.a)(this,t),(n=T(this,t,[e])).handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.state={isFloating:e.value},n}return Object(f.a)(t,e),Object(l.a)(t,[{key:"handleFocus",value:function(e){this.setState({isFloating:!0}),this.props.onFocus(e)}},{key:"handleBlur",value:function(e){this.setState({isFloating:!1}),this.props.onBlur(e)}},{key:"render",value:function(){var e=this.state.isFloating,t=this.props,n=t.value,r=t.inHero;return F(B,null,F(W,{inHero:r,isFloating:e||""!==n},F(q,null,F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",fill:"black","aria-hidden":"true",width:"16",height:"16"},F("title",null,"Cerca"),F("path",{className:"cls-1",d:"M39.87 69.77A29.9 29.9 0 1 1 61 18.72a29.9 29.9 0 0 1-21.14 51zm0-56.51a26.6 26.6 0 1 0 18.81 7.79 26.43 26.43 0 0 0-18.81-7.79z"}),F("path",{className:"cls-1",d:"M70.85 72.5a1.64 1.64 0 0 1-1.16-.5l-11-11A1.65 1.65 0 0 1 61 58.68l11 11a1.65 1.65 0 0 1-1.17 2.82z"}),F("path",{className:"cls-1",d:"M82.68 90a1.64 1.64 0 0 1-1.17-.48L66.83 74.87a1.65 1.65 0 0 1 0-2.33l5.71-5.71a1.65 1.65 0 0 1 2.33 0l14.68 14.68a1.65 1.65 0 0 1 0 2.33l-5.71 5.71a1.64 1.64 0 0 1-1.16.45zM70.33 73.71l12.35 12.34 3.37-3.37-12.34-12.35z"}))),"Cerca un luogo per nome o localit\xe0"),F(H,Object(o.a)({},this.props,{onFocus:this.handleFocus,onBlur:this.handleBlur,inHero:r})))}}])}(p.a.Component),B=y.d.div.withConfig({displayName:"Suggestions__InputWrapper",componentId:"sc-p2reeq-0"})(["position:relative;height:100%;flex-grow:1;"]),W=y.d.label.withConfig({displayName:"Suggestions__Label",componentId:"sc-p2reeq-1"})(["transform:",";transition:all 0.3s;z-index:1;pointer-events:none;margin-left:0.5rem;color:",";font-size:",";position:absolute;height:100%;display:flex;align-items:center;font-family:",";@media screen and (min-width:1024px){margin-left:1rem;}"],(function(e){return e.isFloating?"translate(0,-35%)":"none"}),(function(e){return e.theme.colors.darkGrey}),(function(e){return e.isFloating?".725rem":".875rem"}),(function(e){return e.theme.fonts.sansSerif})),q=y.d.div.withConfig({displayName:"Suggestions__LensContainer",componentId:"sc-p2reeq-2"})(["margin-right:0.5rem;display:flex;"]),H=y.d.input.withConfig({displayName:"Suggestions__Input",componentId:"sc-p2reeq-3"})(["width:100%;height:100%;padding-left:0.5rem;color:",";left:0;right:0;border:none;position:absolute;outline:none;padding-top:10px;&:hover{background-color:#e74f30;}@media screen and (min-width:1024px){padding-left:1rem;padding-top:0;}"],(function(e){return e.theme.colors.darkGrey})),U=y.d.div.withConfig({displayName:"Suggestions__Suggestion",componentId:"sc-p2reeq-4"})(["padding:0.75rem 0;padding-left:1rem;letter-spacing:0.1em;display:flex;align-items:center;background-color:",";color:",";cursor:pointer;",";"],(function(e){return e.selected?"#e74f30":"white"}),(function(e){return e.selected?"white":"#808080"}),(function(e){return e.selected?"\n    * {\n      fill: white;\n    }\n  ":"\n    * {\n      fill: #e74f30;\n    }\n  "})),V=function(e){function t(){var e;return Object(s.a)(this,t),(e=T(this,t)).state={suggestions:[],searchTerm:""},e.getSuggestions=v()(e.getSuggestions.bind(e),1e3),e.handleOnInputValueChange=e.handleOnInputValueChange.bind(e),e.handleFloatingLabel=e.handleFloatingLabel.bind(e),e}return Object(f.a)(t,e),Object(l.a)(t,[{key:"handleOnInputValueChange",value:function(e){var t=this;this.setState({isLoadingSuggestions:""!==e?"Sta caricando ...":null,term:e},(function(){return t.getSuggestions(e)}))}},{key:"getSuggestions",value:function(){var e=Object(a.a)(N().m((function e(t){var n,o,r,a,c;return N().w((function(e){for(;;)switch(e.n){case 0:return n=this.props.selectedOptions,e.n=1,this.props.api.getSuggestions({term:t,selectedOptions:n});case 1:return o=e.v,r=function(e){return new Promise((function(t){(ne
1w google.maps.places.AutocompleteService).getPlacePredictions({input:e,types:["(regions)"],componentRestrictions:{country:"it"}},(function(e){return t(e)}))}))},e.n=2,r(t);case 2:a=e.v,c=[].concat(Object(i.a)(o),Object(i.a)(a?a.map((function(e){return{type:"google-maps",label:e.description}})):[])),this.setState({suggestions:c,isLoadingSuggestions:c.length?null:"Nessun risultato"});case 3:return e.a(2)}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"handleSuggestionsSelection",value:function(){var e=Object(a.a)(N().m((function e(t){var n,o,r,i,a,c;return N().w((function(e){for(;;)switch(e.n){case 0:if("emptySuggestion"!==(n=t.type)){e.n=2;break}if(o=t.label,"function"===typeof(r=this.props.handleEmptySuggestion)){e.n=1;break}return e.a(2,!1);case 1:return r(o),e.a(2,!1);case 2:if("google-maps"!==n){e.n=4;break}return i=new google.maps.Geocoder,a=function(){return new Promise((function(e){i.geocode({address:t.label},(function(t){return e(t)}))}))},e.n=3,a().then((function(e){return e[0]})).then((function(e){var t=e.geometry.location;return{lat:t.lat(),lng:t.lng()}}));case 3:return c=e.v,this.props.getLuoghiByProximity({name:t.label,coords:c,type:"google-maps"}),e.a(2);case 4:if("nearby"!==n){e.n=5;break}return this.props.askForGeolocationPermission(z(z({},t),{},{type:"nearby"})),e.a(2);case 5:this.props.getLuoghiByProximity({luogo:t}),this.setState({searchTerm:t.gfp.titolo_apertura});case 6:return e.a(2)}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"handleFloatingLabel",value:function(e){this.setState({isFloatingLabel:isFloatingLabel})}},{key:"render",value:function(){var e=this,t=this.state,n=t.suggestions,r=t.isLoadingSuggestions,i=t.term,a=(t.isFloatingLabel,this.state.searchTerm||this.props.searchTerm);return F(p.a.Fragment,null,F(I.SearchSuggestions,{itemToString:function(e){if(!e)return"";if("nearby"===e.type)return"Luoghi vicini a me";if("google-maps"===e.type)return e.label;if("emptySuggestion"===e.type)return e.label;var t=e.gfp.titolo_apertura;return t.length>30?"".concat(t.slice(0,30).trim(""),"..."):t},renderSuggestionItem:function(e){var t=e.item,n=e.index,r=Object(c.a)(e,E);return F(U,Object(o.a)({},r,{key:n}),F(Z,null,F(I.Icon,{SVG:"google-maps"===t.type?P.position:"nearby"===t.type?P.exact_position:P.FaiLogo,size:[24,24],color:"white"}))," ",t.gfp?t.gfp.titolo_apertura:t.label)},searchTerm:a,input:function(e){return F(R,e)},term:i,suggestions:n,isLoadingSuggestions:r,onInputValueChange:function(t){return e.handleOnInputValueChange(t)},onSelect:this.handleSuggestionsSelection.bind(this)}))}}])}(p.a.Component),Z=(y.d.div.withConfig({displayName:"Suggestions__SuggestionsIntro",componentId:"sc-p2reeq-5"})(["background:white;color:black;text-align:left;padding-left:1rem;display:flex;align-items:center;padding:1rem;"]),y.d.div.withConfig({displayName:"Suggestions__SuggestionIcon",componentId:"sc-p2reeq-6"})(["margin-right:1rem;"])),J=(Object(h.a)(Object(h.g)({googleMapURL:"https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=geometry,drawing,places&key=".concat(G,"&language=it"),loadingElement:F("div",{style:{height:"100%"}}),containerElement:F("div",{style:{height:"100%",width:"100%"}}),mapElement:F("div",{style:{height:"100%",width:"100%"}})}),m.withScriptjs)(V),n("6780")),K=n("es+e"),Y=n("ncWu"),Q=n("Ci+5"),X=n("ezIv"),$=n("I6ye"),ee=n("wuXC"),te=n.n(ee),ne=(n("RBiB"),["zoom"]),oe=["zoom"],re=p.a.createElement;function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ce(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var s=o&&o.prototype instanceof c?o:c,l=Object.create(s.prototype);return se(l,"_invoke",function(n,o,r){var i,c,s,l=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:g,f
1:g.bind(e,4),d:function(t,n){return i=t,c=0,s=e,f.n=n,a}};function g(n,o){for(c=n,s=o,t=0;!d&&l&&!r&&t<u.length;t++){var r,i=u[t],g=f.p,p=i[2];n>3?(r=p===o)&&(s=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=g&&((r=n<2&&g<i[1])?(c=0,f.v=o,f.n=i[1]):g<p&&(r=n<3||i[0]>o||o>p)&&(i[4]=n,i[5]=o,f.n=p,c=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&g(u,p),c=u,s=p;(t=c<2?e:s)||!d;){i||(c?c<3?(c>1&&(f.n=-1),g(c,s)):f.n=s:f.v=s);try{if(l=2,i){if(c||(r="next"),t=i[r]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),c=1);i=e}else if((t=(d=f.n<0)?s:n.call(o,f))!==a)break}catch(t){i=e,c=1,s=t}finally{l=1}}return{value:t,done:d}}}(n,r,i),!0),l}var a={};function c(){}function s(){}function l(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(se(t={},o,(function(){return this})),t),d=l.prototype=c.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,se(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=l,se(d,"constructor",l),se(l,"constructor",s),s.displayName="GeneratorFunction",se(l,r,"GeneratorFunction"),se(d),se(d,r,"Generator"),se(d,o,(function(){return this})),se(d,"toString",(function(){return"[object Generator]"})),(ce=function(){return{w:i,m:f}})()}function se(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(se=function(e,t,n,o){function i(t,n){se(e,t,(function(e){return this._invoke(t,n,e)}))}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))})(e,t,n,o)}function le(e,t,n){return t=Object(d.a)(t),Object(u.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(d.a)(e).constructor):t.apply(e,n))}var ue=L()().publicRuntimeConfig,de=(ue.PLATFORM,ue.GOOGLE_MAPS_API_KEY);function fe(e){return new Promise((function(t){"undefined"===typeof google&&t(!1),(new google.maps.places.AutocompleteService).getPlacePredictions({input:e,types:["(regions)"],componentRestrictions:{country:"it"}},(function(e){return t(e)}))}))}var ge=function(e){function t(e){var n;return Object(s.a)(this,t),(n=le(this,t,[e])).state={nearbyLuoghi:e.nearbyLuoghi,suggestions:[],activeView:e.activeView||"list",luoghiCaricati:[],activeMarker:!1,zoom:e.zoom||6,center:e.center||{lat:42.261167,lng:12.8806503},listCenter:e.listCenter||{},geolocation:{},page:1,canLoadMore:!0,searchText:e.searchText||"",searchTerm:e.searchTerm||e.searchText||"",elements:[],elementsIds:[],selectedMarker:!1},n.api=Object(x.a)(e.api?e.api.toLowerCase():"ldc"),n.getSuggestions=v()(n.getSuggestions.bind(n),1e3),n.getMapClusters=n.getMapClusters.bind(n),n.getBounds=n.getBounds.bind(n),n.getMapLuoghi=n.getMapLuoghi.bind(n),n.getMapElements=n.getMapElements.bind(n),n.handleLoadMore=v()(n.handleLoadMore.bind(n),1e3),n.handleZoomChange=n.handleZoomChange.bind(n),n.handleEmptySuggestion=n.handleEmptySuggestion.bind(n),n.askForGeolocationPermission=n.askForGeolocationPermission.bind(n),n.loadMoreRows=n.loadMoreRows.bind(n),n.getLuoghiByProximity=n.getLuoghiByProximity.bind(n),n.handleFlagChange=n.handleFlagChange.bind(n),n.handleMarkerClick=n.handleMarkerClick.bind(n),n.handleMarkerMouseover=n.handleMarkerMouseover.bind(n),n.handleCloseInfoWindow=n.handleCloseInfoWindow.bind(n),n.handleInfoWindowElement=n.handleInfoWindowElement.bind(n),n.getMapRef=function(e){e&&!n.map&&(n.map=e)},n}return Object(f.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){var e=this.state.searchText;this.handleTextSearch(e),this.askForGeolocationPermission()}},{key:"shouldComponentUpdate",value:function(e,t){var n=this.state,o=n.zoom,r=(Object(c.a)(n,ne),t.zoom),i=(Object(c.a)(t,oe),e.selectedOptions),a=this.props.selectedOptions;return te()(i,a)?o===r:(this.handleFlagChange(i),!0)}},{key:"getMapElements",value:function(){return this.props.explodeClusters?this.getMapLuoghi():this.getMapClusters()}},{key:"getMapLuoghi",value:function(){var e=Object(a.a)(ce().m((function e(){var t,n,o,r,a,c,s,l;return ce().w((function(e){for(;;)switch(e.n){case 0:return t=this.getBounds(),n=t.boundingBox,o=this.props,r=o.selectedOptions,a=o.onlyInterventoOnline,c=o.ldc,e.n=1,this.api.getLuoghiWithBbox({boundingBox:n,selectedOptions:r,onlyInterventoOnline:a,ldc:c}).then((function(e){return e.data.data}));case 1:s=e.v,l=s.map((function(e){return e.id})),this.setState({elements:Object(i.a)(s),elementsIds:l});case 2:return e.a(2)}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getBounds",value:function(){var e=this.map.getBounds(),t=[e.getNorthEast().lat(),e.getNorthEast().lng(),e.getSouthWest
1().lat(),e.getSouthWest().lng()];return{bounds:e,boundingBox:t,zoom:this.map.getZoom()}}},{key:"getSuggestions",value:function(){var e=Object(a.a)(ce().m((function e(t){var n;return ce().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,fe(t);case 1:n=e.v,this.setState({suggestions:n.map((function(e){return{type:"google-maps",label:e.description}}))});case 2:return e.a(2)}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getLuoghiByProximity",value:function(){var e=Object(a.a)(ce().m((function e(t){var n,o,r,i,a,c,s;return ce().w((function(e){for(;;)switch(e.n){case 0:n=t.luogo,o=t.coords,i=(r=n||{}).coord_geo_lat,a=r.coord_geo_long,c=o?o.lat:i,s=o?o.lng:a,this.handlePositionChange({lat:c,lng:s});case 1:return e.a(2)}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getMapClusters",value:function(){var e=Object(a.a)(ce().m((function e(){var t,n,o,r,i,a,c,s,l,u,d,f,g,p,h;return ce().w((function(e){for(;;)switch(e.n){case 0:return t=this.getBounds(),n=t.bounds,o=t.boundingBox,r=t.zoom,i=this.props,a=i.selectedOptions,c=i.onlyInterventoOnline,s=i.ldc,e.n=1,this.api.getClusters({boundingBox:o,zoom:r,selectedOptions:a,onlyInterventoOnline:c,ldc:s}).then((function(e){return e.data.data}));case 1:l=e.v,u=50,d=[],f=0;case 2:if(!(f<l.length)){e.n=6;break}if(!(g=l[f]).elements||!g.elements.length){e.n=5;break}p=void 0,p=0;case 3:if(!(p<g.elements.length)){e.n=5;break}if(h=g.elements[p],n.contains(new google.maps.LatLng(h.coord_geo_lat,h.coord_geo_long))&&d.push(h.id),d.length!==u){e.n=4;break}return e.a(3,6);case 4:p++,e.n=3;break;case 5:f++,e.n=2;break;case 6:this.setState({elements:l,elementsIds:d});case 7:return e.a(2)}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"handleTextSearch",value:function(){var e=Object(a.a)(ce().m((function e(t){var n,o,r,i,a;return ce().w((function(e){for(;;)switch(e.n){case 0:if(!t){e.n=5;break}return e.n=1,this.api.getSuggestions({term:t});case 1:if(!((n=e.v)&&n.length>0)){e.n=2;break}return o=n[0],this.getLuoghiByProximity({luogo:o}),e.a(2);case 2:return e.n=3,this.getGoogleMapsSuggestions(t);case 3:if(!((r=e.v)&&r.length>0)){e.n=5;break}return i=function(){return new Promise((function(e){"undefined"===typeof google&&e(!1),(new google.maps.Geocoder).geocode({address:t},(function(t){return e(t)}))}))},e.n=4,i().then((function(e){return e.length>0&&e[0]})).then((function(e){var t=e.geometry.location;return{lat:t.lat(),lng:t.lng()}}));case 4:a=e.v,this.getLuoghiByProximity({coords:a});case 5:return e.a(2)}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"loadMoreRows",value:function(){var e=Object(a.a)(ce().m((function e(t){var n,o,r,i,c,s=this;return ce().w((function(e){for(;;)switch(e.n){case 0:n=t.startIndex,o=t.stopIndex,r=this.state.elementsIds,i=this.props.api,c=r.slice(n,o+1),this.setState({luoghiCaricati:S(this.state.luoghiCaricati,{type:"ADD_LUOGHI",luoghi:c})},Object(a.a)(ce().m((function e(){var t;return ce().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,s.api.getLuoghiByIds({ids:c.slice(0,100)}).then((function(e){return e.data.data})).then((function(e){return"faixme"===i?e.map((function(e){var t=e.faixme;return ae(ae({},t[0]),{},{id:t[0].id_luogo})})):e}));case 1:t=e.v,s.setState({luoghiCaricati:S(s.state.luoghiCaricati,{type:"LOADED_LUOGHI",luoghi:t})});case 2:return e.a(2)}}),e)}))));case 1:return e.a(2)}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"handleMarkerMouseover",value:function(e){1===e.count&&this.setState({activemarker:e.id})}},{key:"handleCloseInfoWindow",value:function(){this.setState({selectedMarker:!1})}},{key:"handleInfoWindowElement",value:function(e){var t=this.props.openPage,n=e.id,o=e.slug,r=e.faixme;t({slug:o,id:n,fxm:r&&r.length&&r[0].slug})}},{key:"handleMarkerClick",value:function(e){var t=this.state.selectedMarker;if(e.hasOwnProperty("count")&&e.count>1){for(var n=new google.maps.LatLngBounds,o=0;o<e.elements.length;o++){var r=e.elements[o];n.extend(new google.maps.LatLng(r.coord_geo_lat,r.coord_geo_long))}this.map.fitBounds(n)}else t===e?this.handleCloseInfoWindow():this.setState({selectedMarker:e})}},{key:"handleZoomChange",value:function(){this.setState({zoom:this.map.getZoom()})}},{key:"handlePositionChange",value:function(){var e=Object(a.a)(ce().m((function e(t){var n,o,r,i;return ce().w((function(e){for(;;)switch(e.n){case 0:return this.setState({loading:!0}),n=t.lat,o=t.lng,r=this.props.api,e.n=1,this.api.getNearbyLuoghi({co
1ords:[n,o]}).then((function(e){return e.data.data})).then((function(e){return"faixme"===r?e.map((function(e){var t=e.faixme;return ae(ae({},t),{},{id:t.id_luogo})})):e}));case 1:i=e.v,this.setState({geolocation:{loading:!1},page:1,loading:!1,center:{lat:n,lng:o},listCenter:{lat:n,lng:o},nearbyLuoghi:i,canLoadMore:!0});case 2:return e.a(2)}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"handleLoadMore",value:function(){var e=Object(a.a)(ce().m((function e(){var t,n,o,r,a,c,s,l,u;return ce().w((function(e){for(;;)switch(e.n){case 0:return t=this.state.listCenter,n=this.state.page+1,o=t.lat,r=t.lng,a=ae(ae({},o&&r?{coords:[o,r]}:{}),{},{page:n}),c=this.props.api,this.setState({loadingMore:!0,loading:!1}),e.n=1,this.api.getNearbyLuoghi(ae({},a)).then((function(e){return e.data}));case 1:s=e.v,l="faixme"===c?s.data.map((function(e){var t=e.faixme;return ae(ae({},t),{},{id:t.id_luogo})})):s.data,u=null!==s.next_page_url,this.setState({geolocation:{loading:!1},page:n,loadingMore:!1,canLoadMore:u,nearbyLuoghi:[].concat(Object(i.a)(this.state.nearbyLuoghi),Object(i.a)(l))});case 2:return e.a(2)}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"askForGeolocationPermission",value:function(){var e=this;this.setState({geolocation:{loading:!0}}),window.navigator.geolocation.getCurrentPosition((function(t){var n=t.coords,o=n.latitude,r=n.longitude;return e.handlePositionChange({lat:o,lng:r})}))}},{key:"handleEmptySuggestion",value:function(e){var t=this;if(!e)return!1;this.setState({searchText:e},(function(){t.handleTextSearch(e)}))}},{key:"handleFlagChange",value:function(){var e=Object(a.a)(ce().m((function e(t){var n,o,r,i,a;return ce().w((function(e){for(;;)switch(e.n){case 0:return n=this.state.center,o=n.lat,r=n.lng,i=this.props.api,e.n=1,this.api.getNearbyLuoghi({coords:[o,r],selectedOptions:t}).then((function(e){return e.data.data})).then((function(e){return"faixme"===i?e.map((function(e){var t=e.faixme;return ae(ae({},t),{},{id:t.id_luogo})})):e}));case 1:a=e.v,this.setState({nearbyLuoghi:a,canLoadMore:!0}),this.getMapElements();case 2:return e.a(2)}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this,t=this.state,n=(t.suggestions,t.activeView,t.luoghiCaricati),o=t.activeMarker,r=(t.geolocation,t.loading,t.loadingMore,t.canLoadMore,t.searchTerm,t.elements),i=t.elementsIds,a=t.selectedMarker,c=this.props,s=c.getPage,l=c.isMobile,u=c.api,d=c.withVotes,f=c.explodeClusters,g=c.itemsLegend,p=void 0===g?[]:g,h=c.mapFullWidth;this.state.page||this.props.page;return re(he,null,!l&&!h&&re(_.a,{withVotes:d,getPage:s,luoghi:n,elementsIds:i,loadMoreRows:this.loadMoreRows,jumpTo:o,activeMarker:this.state.activeMarker,makeCard:function(e){switch(e.toLowerCase()){case"ldc":return X.l;case"gfa":return Y.f;case"gfp":return $.e;case"mfi":return K.f;case"faixme":return Q.e;default:return null}}(u)}),re(w.a,{explodeClusters:f,itemsLegend:p,zoom:this.state.zoom,center:this.state.center,onMarkerInteraction:this.handleMarkerClick,onMarkerMouseOver:this.handleMarkerMouseover,selectedMarker:a,onCloseInfoWindow:this.handleCloseInfoWindow,onInfoWindowElement:this.handleInfoWindowElement,elements:r,handleBoundsChange:function(){e.getMapElements()},getMapRef:this.getMapRef,onZoomChanged:this.handleZoomChange}))}}])}(g.Component),pe=Object(h.a)(Object(h.g)({googleMapURL:"https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=geometry,drawing,places&key=".concat(de),loadingElement:re("div",{style:{height:"100%"}}),containerElement:re("div",{style:{height:"100%",width:"100%"}})}),m.withScriptjs)(ge),he=(t.a=function(e){return re(J.a,{getPage:e.getPage},(function(t){var n=t.handleCardClick;return re(O.a,{query:"(min-width: 1180px)"},(function(t){return re(pe,Object(o.a)({},e,{isMobile:!t,openPage:n}))}))}))},y.d.div.withConfig({displayName:"Search__MapContainer",componentId:"sc-hosb9t-0"}
1)(["height:80vh;display:flex;"]));y.d.div.withConfig({displayName:"Search__SuggestionContainer",componentId:"sc-hosb9t-1"})(["position:absolute;height:50px;width:50%;top:5%;left:5%;background:white;padding:0 1rem;z-index:999;"]),y.d.div.withConfig({displayName:"Search__MappaLuoghiContainer",componentId:"sc-hosb9t-2"})(["width:100%;position:relative;"])},I6ye:function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"e",(function(){return y})),n.d(t,"g",(function(){return O})),n.d(t,"f",(function(){return w})),n.d(t,"b",(function(){return _})),n.d(t,"h",(function(){return j})),n.d(t,"c",(function(){return k})),n.d(t,"d",(function(){return C}));var o=n("fGyu"),r=n("zjfJ"),i=n("zygG"),a=n("HbGN"),c=n("ERkP"),s=n.n(c),l=n("10AO"),u=n.n(l),d=(n("QtE3"),n("UxPf")),f=(n("ysqo"),n("Ehz4"),n("ezIv"),n("0D0S")),g=n.n(f),p=["search","fl_accesso_disabili","fl_ingresso_esclusivo","fl_commissione_eu","fl_consigliato","fl_bene_fai","comune","provincia","regione","lat","lng","nearby","ids"],h=["search","comune","regione","provincia","lat","lng","nearby","ids"];s.a.createElement;function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}g()().publicRuntimeConfig.APP_DOMAIN;var b="/il-fai/grandi-campagne/giornate-fai-di-primavera/i-luoghi-aperti",v=function(e){return e.reduce((function(e,t){return e.concat(Array.isArray(t)?v(t):t)}),[])},y=function(e){var t=e.id,n=e.gfp,o=e.localita_web,r=e.fl_bene_fai,i=e.slug,a=e.onClick;return"undefined"===typeof n?{}:{id:t,title:n.titolo_apertura,subtitle:o,link:"/luoghi/".concat(i,"?gfp"),slug:i,onClick:a,thumbnail:{url:n.media&&n.media.length>0&&void 0!==n.media.find((function(e){return"TOP"===e.pivot.position}))&&n.media.find((function(e){return"TOP"===e.pivot.position})).url||"https://fai-website.imgix.net/static/placeholder_2.png"},tooltips:[n.alert&&{icon:"alert",orange:!0,content:n.alert},n.fl_accesso_disabili&&{icon:"accessibility",content:"Luogo accessibile"},n.fl_ingresso_esclusivo&&{icon:"crown",content:"Ingresso dedicato agli iscritti FAI"},n.fl_consigliato&&{icon:"badge",content:"Luogo consigliato"},r&&{icon:"FaiLogo",content:"Bene FAI ".concat(n.fl_chiuso?"":"visitabile tutto l'anno")},n.fl_multi_gf&&{icon:"gfp_both_weekends",content:"Aperto primo e secondo weekend"},n.fl_commissione_eu&&{icon:"commissione_eu",content:"Apertura in collaborazione con la Commissione Europea"},!n.fl_multi_gf&&38===n.id_gf&&{icon:"gfp_first_weekend",content:"Primo weekend di apertura"},!n.fl_multi_gf&&39===n.id_gf&&{icon:"gfp_second_weekend",content:"Secondo weekend di apertura"}].filter((function(e){return e}))}},O=function(e){var t=e.search,n=e.fl_accesso_disabili,o=e.fl_ingresso_esclusivo,r=e.fl_commissione_eu,c=e.fl_consigliato,s=e.fl_bene_fai,l=e.comune,u=e.provincia,d=e.regione,f=e.lat,g=e.lng,h=e.nearby,m=(e.ids,Object(a.a)(e,p)),b=[];return h&&f&&g&&(b.push("radius[coords]=".concat(parseFloat(f).toFixed(2),",").concat(parseFloat(g).toFixed(2))),b.push("radius[distance]=100")),v([t&&t.length>=3&&"search=".concat(t),n&&"gfp.fl_accesso_disabili=true",o&&"gfp.fl_ingresso_esclusivo=true",r&&"gfp.fl_commissione_eu=true",c&&"gfp.fl_consigliato=true",s&&"fl_bene_fai=true",l&&"comune.nome=".concat(l),u&&"provincia.nome=".concat(u),d&&"regione.nome=".concat(d),Object.keys(m).length&&Object.entries(m).map((function(e){var t=Object(i.a)(e,2),n=t[0],o=t[1];return"[object Array]"===Object.prototype.toString.call(o)?o.map((function(e){return"".concat(n,"[]=").concat(e)})):null})),b]).filter((function(e){return e})).join("&")},w=function(e){var t=e.id,n=e.gfp,o=e.localita_web,r=e.fl_bene_fai,i=e.slug,a=e.onClick;return"undefined"===typeof n?{}:{id:t,title:n.titolo_apertura,subtitle:o,link:"/luoghi/".concat(i,"?gfp"),slug:i,onClick:a,thumbnail:{url:Object(d.d)(n)},tooltips:[n.alert&&{icon:"alert",orange:!0,content:n.alert},n.fl_accesso_disabili&&{icon:"accessibility",content:"Luogo accessibile"},n.fl_ingresso_esclusivo&&{icon:"crown",content:"Ingresso dedicato agli iscritti FAI"},n.fl_consigliato&&{icon:"badge",content:"Luogo consigliato"},n.fl_commissione_eu&&{icon:"commissione_eu",content:"Apertura in collaborazione con la Commissione Europea"},r&&{icon:"FaiLogo",content:"Bene FAI ".concat(n.fl_chiuso?"":"visitabile tutto l'anno")}].filter((function(e){return e}))}},_=function(e){var t=e.search,n=e.selectedOptions,o=e.comune,a=e.provincia,c=e.regione,s=e.showMap,l=n&&-1!==n.indexOf("fl_accesso_disabili"),d=n&&-1!==n.indexOf("fl_ingresso_esclusivo"),f=n&&-1!==n.indexOf("fl_commissione_eu"),g=n&&-1!==n.indexOf("fl_consigliato"),p=n&&-1!==n.indexOf("fl_bene_fai"),h=n&&n.filter((function(e){return"fl_accesso_disabili"!==e&&"fl_ingresso_esclusivo"!==e&&"fl_commissione_eu"!==e&&"fl_consigliato"!==e&&"fl_bene_fai"!==e&&"geolocation"!==e&&-1===String(e).indexOf(":")})),b=n&&n.filter((function(e){return-1!==String(e).indexOf(":")})).reduce((function(e,t){var n=t.split(":"),o=Object(i.a)(n,2),r=o[0],a=o[1];return e[r]=e[r]||[],e[r].push(a),e}),{});return u()(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?m(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({search:t,fl_accesso_disabili:l,fl_ingresso_esclusivo:d,fl_commissione_eu:f,fl_consigliato:g,fl_bene_fai:p,comune:o,provincia:a,regione:c,ids:h,showMap:s},b),(function(e){return!!e}))},j=function(e){var t=e.search,n=e.comune,r=e.regione,c=e.provincia,s=(e.lat,e.lng,e.nearby),l=e.ids,u=Object(a.a)(e,h),d=Object.entries(u).reduce((function(e,t){var n=Object(i.a)(t,2),r=n[0],a=n[1];return"[object Array]"===Object.prototype.toString.call(a)?e=[].concat(Object(o.a)(e),Object(o.a)(a.map((function(e){return[r,e].join(":")})))):e.push(r),e}),[]);return{search:t,comune:n,provincia:c,regione:r,selectedOptions:[].concat(Object(o.a)(s?["geolocation"]:[]),Object(o.a)(d),Object(o.a)(l||[]))}},k=function(e){var t=e.comune,n=e.provincia,o=e.regione;return t?"nel comune di ".concat(t):n?"in provincia di ".concat(n):o?"in ".concat(o):"per nome o localit\xe0"},C=function(e){return 0===Object.keys(e).length&&e.constructor===Object}},QqxL:function(e,t,n){"use strict";var o=n("ERkP"),r=n.n(o),i=n("voCV"),a=n("j/s1"),c=n("Ai6V"),s=(n("vDqi"),n("0D0S")),l=n.n(s),u=r.a.createElement,d=(l()().publicRuntimeConfig.PLATFORM,function(e){var t=e.items;return u(r.a.Fragment,null,t&&t.length?u(f,null,t.map((function(e,t){var n=e.colore_mappa||"#1E90FF",o=e.legenda_mappa;return!(!n||!o)&&u(g,null,u(p,{color:n})," ",u("span",null,o))}))):u("div",null))}),f=a.d.div.withConfig({displayName:"MapLegend__Legend",componentId:"sc-rsgbap-0"})(["position:absolute;padding:20px;right:10px;bottom:24px;background:white;z-index:61;visibility:visible !important;"]),g=a.d.div.withConfig({displayName:"MapLegend__LegendRow",componentId:"sc-rsgbap-1"})(["display:flex;align-items:center;margin-bottom:4px;"]),p=a.d.div.withConfig({displayName:"MapLegend__LegendDot",componentId:"sc-rsgbap-2"})(["margin-right:8px;vertical-align:middle;border-radius:50%;width:20px;height:20px;background:",";display:inline-block;"],(function(e){return e.color})),h=n("9fIP"),m=n("MMYH"),b=n("K/z8"),v=n("sRHE"),y=n("8K1b"),O=n("zjfJ"),w=n("cxan"),_=(n("6Oj0"),r.a.createElement),j=function(e){var t=e.onCloseInfoWindow,n=e.onInfoWindowElement,o=e.elements,r=e.desc;return _(c.InfoWindow,{onCloseClick:t},_(k,null,o&&o.length&&o.map((function(e){var t=e.ldc,o=e.media,r=e.bene,i=e.gfa,a=t&&t.media&&t.media.length>0&&t.media[0]&&t.media[0].url,c=r&&r.media&&r.media.length>0&&r.media[0]&&r.media[0].url,s=o&&o.length>0&&o[0]&&o[0].url,l=i&&i.media&&i.media.length>0&&i.media[0]&&i.media[0].url,u=a||c||s||l,d=e.nome||e.titolo;return _("div",{onClick:function(){return n(e)}},u&&_(S,{url:u}),_(C,null,d),_("br",null),e.desc&&"undefined"!==e.desc&&_(x,null,e.desc))})),r&&"undefined"!==r&&_(x,null,r)))},k=a.d.div.withConfig({displayName:"MapInfoWindow__InfoWindowElement",componentId:"sc-54rjm4-0"})(["width:200px;cursor:pointer;margin:6px;"]),C=a.d.div.withConfig({displayName:"MapInfoWindow__InfoWindowElementName",componentId:"sc-54rjm4-1"})(["display:flex;align-items:center;justify-content:center;font-weight:bold;"]),S=a.d.div.withConfig({displayName:"MapInfoWindow__InfoWindowElementImage",componentId:"sc-54rjm4-2"})(["background-image:url(",");background-size:cover;width:100%;height:100px;margin-bottom:8px;"],(function(e){return e.url})),x=a.d.div.withConfig({displayName:"MapInfoWindow__InfoWindowElementDesc",componentId:"sc-54rjm4-3"})(["margin-top:8px;"]);var I="M10.3 1.7c-3.1.6-8.3 5.9-8.5 8.6-.3 4.9.6 7.6 5.3 15.8 2.7 4.7 5.3 10.3 5.6 12.4l.6 3.8 1.2-4.4c.6-2.5 3.3-8.2 5.9-12.7 5.1-8.7 6-13.2 3.6-17.6-2.3-4.5-8.3-7-13.7-5.9z",P=r.a.createElement;function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?M(Object(n),!0).forEach((function(t){Object(O.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return t=Object(v.a)(t),Object(b.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(v.a)(e).constructor):t.apply(e,n))}var F=function(e){var t=e.element,n=e.selectedMarker,o=e.onMarkerInteraction,r=e.onMarkerMouseOver,i=e.onCloseInfoWindow,a=e.onInfoWindowElement,s=o.bind(undefined,t[0]),l={icon:{path:I,fillColor:"#811620",strokeColor:"#fff",fillOpacity:1,scale:1,size:new google.maps.Size(27,43),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(13,43)},label:{text:String(" ")}},u=t[0],d=+u.coord_geo_lat,f=+u.coord_geo_long;return P(c.Marker,Object(w.a)({position:{lat:d,lng:f}},l,{onClick:s,onMouseOver:function(){return r(t[0])}}),t.some((function(e){return e.id===n.id}))&&P(j,{onCloseInfoWindow:i,onInfoWindowElement:a,elements:t}))},D=function(e){function t(e){var n;return Object(h.a)(this,t),n=E(this,t,[e]),Object(O.a)(n,"getMarkerColor",(function(e,t){switch(t){case"ldc":return n.DEFAULT_COLOR_LDC;case"delegazioni":case"beni":return e&&e.colore_mappa||n.DEFAULT_COLOR;default:return n.DEFAULT_COLOR}})),Object(O.a)(n,"getClusterColor",(function(e){if(e&&e.length){var t=e.map((function(e){return e.stato_intervento})).filter((function(e){return void 0!==e}));if(t&&t.length)return function(e,t){return e.reduce((function(e,n){return n[t]<e[t]?n:e}),e[0])}((o=t).filter((function(e,t){var n=JSON.stringify(e);return t===o.findIndex((function(e){return JSON.stringify(e)===n}))})),"id").colore_mappa}var o;return n.DEFAULT_COLOR})),Object(O.a)(n,"renderCluster",(function(e){return{icon:{url:(t=n.getClusterColor(e),"data:image/svg+xml;base64,"+window.btoa('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-100 -100 200 200"><defs><g id="a" transform="rotate(45)"><path d="M0 47A47 47 0 0 0 47 0L62 0A62 62 0 0 1 0 62Z" fill-opacity="0.7"/><path d="M0 67A67 67 0 0 0 67 0L81 0A81 81 0 0 1 0 81Z" fill-opacity="0.5"/><path d="M0 86A86 86 0 0 0 86 0L100 0A100 100 0 0 1 0 100Z" fill-opacity="0.3"/></g></defs><g fill="'+t+'"><circle r="42"/><use xlink:href="#a"/><g transform="rotate(120)"><use xlink:href="#a"/></g><g transform="rotate(240)"><use xlink:href="#a"/></g></g></svg>')),scaledSize:new google.maps.Size(53,53),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(26,26),labelOrigin:new google.maps.Point(26,26)},label:{text:String(e.length),color:"#fff",fontSize:"16px"}};var t})),Object(O.a)(n,"renderMarker",(function(e,t){return{icon:{path:I,fillColor:n.getMarkerColor(e,t),strokeColor:"#fff",fillOpacity:1,scale:1,size:new google.maps.Size(27,43),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(13,43)},label:{text:String(" ")}}})),n.DEFAULT_COLOR="#1E90FF",n.DEFAULT_COLOR_LDC="#E74F30",n}return Object(y.a)(t,e),Object(m.a)(t,[{key:"render",value:function(){var e=this.props,t=e.selectedMarker,n=e.onMarkerMouseOver,o=e.onMarkerInteraction,r=e.element,i=e.onCloseInfoWindow,a=e.onInfoWindowElement,s=e.vertical;if(Array.isArray(r))return P(F,{selectedMarker:t,onMarkerMouseOver:n,onMarkerInteraction:o,element:r,onCloseInfoWindow:i,onInfoWindowElement:a});var l=r.coord_geo_lat,u=r.coord_geo_long,d=r.elements,f=r.luogo,g=r.ldc,p=r.fl_delegazione,h=r.fl_segr_reg,m=r.fl_gruppo_fai,b=r.fl_faigiovani,v=r.fl_ponte,y=(r.slug,r.id_tipologia_bene),O=r.gfa,_=r.mfi,k=l?+l:f.coord_geo_lat,C=u?+u:f.coord_geo_long,S=r[s]||g,x=p||h||m||b||v,I=void 0!==y&&null!==y,M=o.bind(this,r),E="undefined"!==typeof O&&null!==O,D="undefined"!==typeof _&&null!==_,z={};d&&d.length&&r.hasOwnProperty("count")&&r.count>1?z=this.renderCluster(d):x?z=this.renderMarker(r,"delegazioni"):g?z=this.renderMarker(S,"ldc"):I&&(z=this.renderMarker(r,"beni"));var N=r.descrizione_short||function(e){var t=document.createElement("div");t.innerHTML=e;var n=t.textContent;return n.length>140&&(n=n.substr(0,140),n+="\u2026"),n}(r.descrizione),A=L(L({},r),{},{desc:N}),T=(g||x||I||E||D)&&t.id===r.id&&P(j,{onCloseInfoWindow:i,onInfoWindowElement:a,elements:[A]});return P(c.Marker,Object(w.a)({position:{lat:k,lng:C}},z,{onClick:M,onMouseOver:function(){return n(r)}}),T)}}])}(o.Component),z=r.a.createElement,N=l()().publicRuntimeConfig.GOOGLE_MAPS_API_KEY,A=a.d.div.withConfig({displayName:"Map__ContainerMappa",componentId:"sc-17z5ypa-0"})(["flex:100%;height:100%;position:relative;"]);t.a=Object(i.a)(i.d,Object(i.g)({googleMapURL:"https://maps.googleapis.com/ma
1ps/api/js?v=3.exp&libraries=geometry,drawing,places&key=".concat(N),loadingElement:z("div",{style:{height:"100%"}}),containerElement:z("div",{style:{height:"100%",width:"100%"}}),mapElement:z("div",{style:{height:"100%",width:"100%"}})}),c.withScriptjs,c.withGoogleMap)((function(e){var t=e.getMapRef,n=e.handleBoundsChange,o=e.onMarkerInteraction,r=e.onMarkerMouseOver,i=e.zoom,a=(e.withMapLegend,e.itemsLegend),s=e.center,l=e.onZoomChanged,u=e.elements,f=e.selectedMarker,g=e.onCloseInfoWindow,p=e.onInfoWindowElement;return z(A,null,z(d,{items:a}),z(c.GoogleMap,{ref:t,animatedZoom:!1,defaultOptions:{animatedZoom:!1,disableDefaultUI:!0,zoomControl:!0},onIdle:n,zoom:i,center:s,onZoomChanged:l},u.map((function(e){return z(D,{selectedMarker:f,onMarkerMouseOver:r,onMarkerInteraction:o,element:e,onCloseInfoWindow:g,onInfoWindowElement:p})}))))}))},RBiB:function(e,t,n){var o=n("0Ocv"),r=n("R5u7"),i=n("m2YG"),a=Math.ceil,c=Math.max;e.exports=function(e,t,n){t=(n?r(e,t,n):void 0===t)?1:c(i(t),0);var s=null==e?0:e.length;if(!s||t<1)return[];for(var l=0,u=0,d=Array(a(s/t));l<s;)d[u++]=o(e,l,l+=t);return d}},cj0A:function(e,t,n){"use strict";var o=n("HbGN"),r=n("QsI/"),i=n("zjfJ"),a=n("cr+I"),c=n.n(a),s=n("0D0S"),l=n.n(s),u=n("r4FT"),d=["boundingBox","selectedOptions","ldc","onlyInterventoOnline"];function f(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var s=o&&o.prototype instanceof c?o:c,l=Object.create(s.prototype);return g(l,"_invoke",function(n,o,r){var i,c,s,l=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:g,f:g.bind(e,4),d:function(t,n){return i=t,c=0,s=e,f.n=n,a}};function g(n,o){for(c=n,s=o,t=0;!d&&l&&!r&&t<u.length;t++){var r,i=u[t],g=f.p,p=i[2];n>3?(r=p===o)&&(s=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=g&&((r=n<2&&g<i[1])?(c=0,f.v=o,f.n=i[1]):g<p&&(r=n<3||i[0]>o||o>p)&&(i[4]=n,i[5]=o,f.n=p,c=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&g(u,p),c=u,s=p;(t=c<2?e:s)||!d;){i||(c?c<3?(c>1&&(f.n=-1),g(c,s)):f.n=s:f.v=s);try{if(l=2,i){if(c||(r="next"),t=i[r]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),c=1);i=e}else if((t=(d=f.n<0)?s:n.call(o,f))!==a)break}catch(t){i=e,c=1,s=t}finally{l=1}}return{value:t,done:d}}}(n,r,i),!0),l}var a={};function c(){}function s(){}function l(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(g(t={},o,(function(){return this})),t),d=l.prototype=c.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,g(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=l,g(d,"constructor",l),g(l,"constructor",s),s.displayName="GeneratorFunction",g(l,r,"GeneratorFunction"),g(d),g(d,r,"Generator"),g(d,o,(function(){return this})),g(d,"toString",(function(){return"[object Generator]"})),(f=function(){return{w:i,m:p}})()}function g(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(g=function(e,t,n,o){function i(t,n){g(e,t,(function(e){return this._invoke(t,n,e)}))}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))})(e,t,n,o)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var m=l()().publicRuntimeConfig.PLATFORM;t.a=function(e){var t={has:e,slug:"null|NOT",limit:99,coord_geo_lat:"null|NOT",coord_geo_long:"null|NOT"};"delegazione"!==e&&(t.with="".concat(e,",").concat(e,".media").concat("faixme"===e?",faixme.luogo":""));var n=function(e){return e&&e.reduce((function(e,t){return h(h({},e),{},Object(i.a)({},t,1))}),{})},a=function(e){return u.a.get("".concat(m,"/luoghi?").concat((n=e,"".concat(c.a.stringify(h(
1h({},t),n),{arrayFormat:"bracket"})))));var n},s=function(t){var n={with:"".concat(e,",").concat(e,".media").concat("faixme"===e?",faixme.luogo":"")};if(t){n.with+=",ldc.stato_intervento",n.ldc=h(h({},n.ldc),{},{fl_intervento:1});var o=new Date(Date.now()+864e5);n["ldc.dt_intervento_online"]="".concat(o.toISOString().slice(0,10),"|LOWER")}return n},l=function(e){return e.map((function(e){return e?parseFloat(e).toFixed(2):0}))};return{getLuoghi:function(e){var t=(e||{}).selectedOptions;return a(h({},n(t)))},getNearbyLuoghi:function(e){var t=e.coords,n=e.selectedOptions,o=e.page,r=e.radius,i=void 0===r?300:r,c=e.limit,s=void 0===c?null:c;return a(h(h(h({},n),t?{"radius[coords]":t?t.join(","):null,"radius[distance]":t?i:null}:{}),{},{limit:s,page:o}))},getLuoghiByIds:function(e){var t=e.ids,n=e.selectedOptions;return a(h(h({},n),{},{id:t}))},getSuggestions:function(){var e=Object(r.a)(f().m((function e(t){var o,r,i;return f().w((function(e){for(;;)switch(e.n){case 0:return o=t.term,r=t.selectedOptions,e.n=1,a(h(h({},n(r)),{},{search:o})).then((function(e){return e.data.data}));case 1:return i=e.v,e.a(2,i.slice(0,3))}}),e)})));return function(t){return e.apply(this,arguments)}}(),getClusters:function(e){var t=e.boundingBox,n=e.zoom,o=e.selectedOptions,r=e.onlyInterventoOnline,i=e.ldc,c={limit:200,"cluster[zoom]":n,"cluster[bbox]":l(t).join(","),id:"null|NOT"},u={};i&&(u=h({cluster_join:"ldc_luoghi"},s(r)),r&&(u.metas="ldc.colour,ldc.colore_mappa,ldc.stato_intervento.colore_mappa",u.cluster_join+=",ldc_luoghi.ldc_stati_intervento"));var d=h(h(h({},o),c),u);return a(d)},getLuoghiWithBbox:function(){var e=Object(r.a)(f().m((function e(t){var n,r,i,c,u,g,p;return f().w((function(e){for(;;)switch(e.n){case 0:return n=t.boundingBox,r=t.selectedOptions,i=t.ldc,c=t.onlyInterventoOnline,u=Object(o.a)(t,d),g=h({limit:200,bbox:l(n).join(",")},u),p={},i&&(p=h({},s(c))),e.a(2,a(h(h(h({},r),g),p)))}}),e)})));return function(t){return e.apply(this,arguments)}}()}}},lYJj:function(e,t,n){"use strict";n.d(t,"a",(function(){return U}));var o=n("cxan"),r=n("9fIP"),i=n("MMYH"),a=n("K/z8"),c=n("sRHE"),s=n("8K1b"),l=n("zjfJ"),u=n("ERkP"),d=n.n(u),f=n("j/s1"),g=n("HbGN"),p=["renderPicture","renderBody","onClick"],h=d.a.createElement,m=function(e){var t=e.renderPicture,n=e.renderBody,o=e.onClick,r=Object(g.a)(e,p);return h(y,{isActive:r.isActive,isSmall:r.small,onClick:o},r.thumbnail&&h(O,null,t(r)),h(_,null,n(r)))},b=function(e){return h(m,Object(o.a)({renderPicture:function(e){var t=e.thumbnail,n=e.title;return h(w,{backgroundImage:"".concat(t&&t.url,"?w=300&fit=crop"),alt:n})},renderBody:function(t){var n=t.title,o=t.subtitle;return h(d.a.Fragment,null,h(k,null,n),h(C,null,o),e.children)}},e))},v=function(e){return h(m,Object(o.a)({renderPicture:function(e){return h(S,null)},renderBody:function(e){return h(d.a.Fragment,null,h(x,null),h(I,null))}},e))},y=f.d.div.withConfig({displayName:"SearchCard__Container",componentId:"sc-1swgqbv-0"})(["background-color:white;display:flex;position:relative;margin:0.5rem 1rem;height:auto;min-height:",';&:after{content:"";position:absolute;left:0;right:0;height:3px;background-color:',";}&:hover{box-shadow:0 5px 6px -4px rgba(0,0,0,0.2);cursor:pointer;}"],(function(e){return e.isSmall?"115px":"150px"}),(function(e){return e.isActive?"orange":"transparent"})),O=f.d.div.withConfig({displayName:"SearchCard__Picture",componentId:"sc-1swgqbv-1"})(["flex:10rem 0 0;&:before{content:'';padding-bottom:100%;}overflow:hidden;position:relative;"]),w=f.d.div.withConfig({displayName:"SearchCard__PictureBg",componentId:"sc-1swgqbv-2"})(["position:absolute;top:0;bottom:0;left:0;right:0;background-image:",";background-size:cover;background-position:center;width:100%;height:100%;"],(function(e){return"url(".concat(e.backgroundImage,")")})),_=f.d.div.withConfig({displayName:"SearchCard__Body",componentId:"sc-1swgqbv-3"})(["margin:1rem;"]),j=f.d.div.withConfig({displayName:"SearchCard__BasePlaceholder",componentId:"sc-1swgqbv-4"})(["background:#f6f7f8;animation-duration:1.4s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;background:#f6f7f8;background:#eeeeee;background:linear-gradient(to right,#eeeeee 8%,#dddddd 18%,#eeeeee 33%);background-size:800px 104px;height:96px;position:relative;@keyframes placeHolderShimmer{0%{background-position:-468px 0;}100%{background-position:468px 0;}}"]),k=f.d.h1.withConfig({displayName:"SearchCard__Title",componentId:"sc-1swgqbv-5"})(['font-family:serif;font-weight:800;font-size:1.25rem;font-family:"Sabon Next","Georgia",serif;line-height:1;margin-bottom:0.5rem;']),C=f.d.h3.withConfig({displayName:"SearchCard__Subtitle",componentId:"sc-1swgqbv-6"})(['line-height:1;font-size:0.8rem;font-weight:600;text-transform:capitalize;font-family:"Sabon Next","Georgia",serif;']),S=Object(f.d)(j).withConfig({displayName:"SearchCard__PlaceholderImage",componentId:"sc-1swgqbv-7"})(["width:100%;height:100%;background-color:#eee;"]),x=Object(f.d)(j).withConfig({displayName:"SearchCard__PlaceholderTitle",componentId:"sc-1swgqbv-8"})(["height:1.25rem;width:10rem;background-color:#eee;margin-bottom:0.5rem;"]),I=Object(f.d)(j).withConfig({displayName:"SearchCard__PlaceholderSubtitle",componentId:"sc-1swgqbv-9"})(["height:0.625rem;width:8rem;background-color:#eee;"]),P=(f.d.div.withConfig({displayName:"SearchCard__Debug",componentId:"sc-1swgqbv-10"})(["position:absolute;top:0;left:0;background-color:white;color:#333;font-size:10px;padding:0.5em;z-index:2;"]),function(e){return"LOADED"===e.status?h(b,e):h(v,e)}),M=n("Ehz4"),L=n("bAhH"),E=d.a.createElement,F=f.d.div.withConfig({displayName:"SearchVoteCard__SearchVoteCardContent",componentId:"sc-4tsyan-0"})(["margin-top:10px;"]),D=function(e){return E(M.a,e,(function(t){t.status,t.tokenId;return E(P,e,E(F,null,E(L.a,t)))}))},z=n("tTwn"),N=n.n(z),A=n("QtE3"),T=d.a.createElement,G=function(e){var t=e.total,n=e.keyword,o=e.reset;return T(A.FiltersResults,{total:t},n&&T(R,null,"Hai cercato",T("strong",null,'"',N()(n),'"')),o&&T("p",null,T(B,{href:"#",onClick:o},"Resetta la ricerca")))},R=f.d.h1.withConfig({displayName:"FilterResults__SearchText",componentId:"sc-1kcb6yx-0"})(["text-align:center !important;margin-bottom:0.5rem !important;"]),B=f.d.button.withConfig({displayName:"FilterResults__Reset",componentId:"sc-1kcb6yx-1"})(["background:none !important;color:#e74f30;border:none;padding:0 !important;border-bottom:1px solid #e74f30;cursor:pointer;font-size:1rem;"]),W=n("6780"),q=d.a.createElement;function H(e,t,n){return t=Object(c.a)(t),Object(a.a)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Object(c.a)(e).constructor):t.apply(e,n))}var U=function(e){function t(){var e;Object(r.a)(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return e=H(this,t,[].concat(i)),Object(l.a)(e,"renderLuogo",(function(t,n){var r=e.props,i=r.elementsIds,a=r.luoghi,c=r.makeCard,s=r.activeMarker,l=r.getPage,u=i[n],d=a.find((function(e){return e.id===u})),f=d?c(d):{},g=e.props.withVotes?D:P,p=i[n],h=s==p;return q(W.a,{getPage:l},(function(t){var n=t.handleCardClick;return q(g,Object(o.a)({smallOverlay:!0,id:p,status:d&&d.status||e.props.status,isActive:h},f,{onClick:function(){n({slug:f.slug,id:p,fxm:f.fxm})}}))}))})),e}
1return Object(s.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.props.loadMoreRows({startIndex:0,stopIndex:99})}},{key:"componentWillReceiveProps",value:function(e){e.elementsIds&&e.elementsIds!==this.props.elementsIds&&this.props.loadMoreRows({startIndex:0,stopIndex:e.elementsIds.length})}},{key:"render",value:function(){var e=this.props,t=e.elementsIds,n=e.keyword,o=e.reset;return q(V,null,q(Z,null,t.length>0?t.map(this.renderLuogo):q(G,{total:0,keyword:n,reset:o})))}}])}(u.Component),V=f.d.div.withConfig({displayName:"Sidebar__SidebarContainer",componentId:"sc-1xa159a-0"})(["position:relative;width:100%;max-width:500px;height:100%;overflow:hidden;"]),Z=f.d.div.withConfig({displayName:"Sidebar__SidebarContent",componentId:"sc-1xa159a-1"})(["width:100%;max-width:500px;height:100%;overflow:auto;padding:10px;"])}}]);

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.