1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[69],{"+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"),l=n("8K1b"),s=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,l=Object.create(u.prototype);return h(l,"_invoke",function(n,r,o){var a,c,u,l=0,s=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&&l&&!o&&e<s.length;e++){var o,a=s[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,s,h){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,h),c=s,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(l=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{l=1}}return{value:e,done:f}}}(n,o,a),!0),l}var i={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(h(e={},r,(function(){return this})),e),f=l.prototype=c.prototype=Object.create(s);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,h(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=l,h(f,"constructor",l),h(l,"constructor",u),u.displayName="GeneratorFunction",h(l,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(l.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,l,s;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,l=c.nextPage,s=c.total,t.setState({items:[].concat(Object(r.a)(t.state.items),Object(r.a)(null!==u&&void 0!==u?u:[])),nextPage:l,total:s,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})}}])}(s.Component);e.a=v},JgMc:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ldc/listOfLuoghi",function(){return n("atp/")}])},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"),l=n("ERkP"),s=n.n(l),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[]}))},m=n("aWzz"),y=n.n(m);function O(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),O(this,e,arguments)}return Object(u.a)(e,t),Object(a.a)(e,[{key:"render",value:function(){return this.props.children(this.context.slug)}}])}(s.a.Component);j.contextTypes={slug:y.a.string};var w=j,S=s.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=s.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}))}}])}(l.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"),l=n("sRHE"),s=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 m(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 y(t,e,n){return e=Object(l.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(l.a)(t).constructor):e.apply(t,n))}var O={origin:"",path:"",queryObject:{}},j=function(t){function e(t){var n;return Object(i.a)(this,e),(n=y(this,e,[t])).state=m(m({},O),{},{queryObject:t.queryString}),n.setQueryString=n.setQueryString.bind(n),n.getQueryString=n.getQueryString.bind(n),n.update=n.update.bind(n),n}return Object(s.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=m(m({},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:m(m({},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},YY8h: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"),l=n("ERkP"),s=n.n(l),f=n("QtE3"),p=n("Ehz4"),d=n("bAhH"),h=s.a.createElement;function g(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 b=function(t){function e(){return Object(o.a)(this,e),g(this,e,arguments)}return Object(u.a)(e,t),Object(a.a)(e,[{key:"render",value:function(){var t=this,e=this.props,n=e.id,o=e.title,a=e.id_comitato,i=e.slug,c=e.handleCardClick,u=e.fixedStatus,l=e.anchor,s=e.luogoSalvato,g=e.votesDisabled;return h(p.a,{id:n,title:o,id_comitato:a,slug:i},(function(e){var o=e.status,a=e.tokenId,p=u||o,b=g?null:function(){return h(d.a,Object(r.a)({},t.props,e))},v=s?"/luoghi/".concat(i,"?luogoSalvato").concat(l||""):"/luoghi/".concat(i,"?ldc").concat(l||"");return h(f.VoteCard,Object(r.a)({},t.props,{link:v,onClick:"function"===typeof c?function(){return c({slug:i,id:n,url:v})}:null,status:p,tokenId:a,renderButton:b,luogoSalvato:s}))}))}}])}(s.a.Component);e.a=b},"atp/":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"),l=n("8K1b"),s=n("ERkP"),f=n.n(s),p=n("j/s1"),d=n("cXXW"),h=n("FAGI"),g=n("TGUm"),b=n("D/vV"),v=n("uPMs"),m=n("Lm5w"),y=n("qkzg"),O=n("NbfL"),j=n("ezIv"),w=n("HbGN"),S=n("zjfJ"),k=n("zygG"),x=n("yIRn"),P=n("YY8h"),C=n("6qMH"),E=n("c63D"),I=n("QtE3"),R=n("fN3Q"),L=n.n(R),_=n("fRS9"),M=["comune","provincia","regione"],q=["search"],D=f.a.createElement;function T(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 z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach((function(e){Object(S.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function F(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=n("tTwn"),H=function(t){var e=t.handleSearch,n=t.search,r=(t.comune,t.provincia,t.regione,t.selectedOptions),o=t.tipologie,a=t.checkIfShowError,i=t.meta,c=t.handleShowMap,u=t.showMap,l=Object(j.g)(o),s=Object(j.q)(o),f=function(t,e){var n=t.find((function(t){return t&&t.id==e}));return n?n.macrotipologia:null},p=Object.entries(l).map((function(t){var e=Object(k.a)(t,2),n=e[0],r=e[1];return{name:f(s,n),options:r&&r.length>0&&r.map((function(t){var e=t.id,n=t.tipologia;return{macrotipologia:t.macrotipologia,name:n,id:e}}))}})),d={id:L()(),type:"dropdown",name:"Tipologie",IsLDC:"IsLDC",groups:p},h={id:L()(),type:"group",options:[{name:"Vicino a me",id:"geolocation",icon:!1,disabled:u}]};
1return D(I.Background,{color:"white"},D(U,null,D(Y,null,D(J,null,D(X,{active:!u,onClick:function(t){return c(!1)}},"Lista"),D(X,{active:u,onClick:function(t){return c(!0)}},"Mappa"))),D(V,null,D(I.FiltersBar,{searchPlaceholder:"Cerca un luogo per nome, localit\xe0 o regione",disabled:u,error:i&&i.queryError,onChange:e,searchValue:n,selectedOptions:r,model:[d,h],checkIfShowError:a,fixedBottom:!1,renderExtra:function(){return D(I.Button,{small:!0,link:"/il-fai/grandi-campagne/i-luoghi-del-cuore/luoghi-salvati/"},"LUOGHI SOSTENUTI")}}))))},N=function(t){var e=t.total,n=t.search,r=t.comune,o=t.provincia,a=t.regione,i=t.path;return D(I.FiltersResults,{total:e,message:[function(){if(r||o||a){var t="";return r&&(t="nel comune di ".concat(r)),o&&(t="nella provincia di ".concat(o)),a&&(t="nella regione ".concat(a)),'<h1 style="text-align:center; margin-bottom: .5rem;">\n Luoghi '.concat(t,"\n </h1>\n ")}return null}(),n&&n.indexOf("radius")<0?'<h1 style="text-align:center; margin-bottom: .5rem;">Hai cercato <strong>"'.concat(B(n),'"</strong></h1>'):null,r||o||a||n?'<p><a href="/'.concat(i,'">Resetta la ricerca</a></p>'):null].filter((function(t){return t})).join("")})},Q=function(t){var e=t.listOfLuoghi;return D(I.Padder,{size:"small"},D(E.a,{getPage:Promise.all([n.e(29),n.e(39)]).then(n.bind(null,"Wj6v"))},(function(t){var n=t.handleCardClick;return D(I.ListOfCards,{wrap:"big",cards:e.map(j.l),vertical:!0,CardComponent:function(t){return D(P.a,Object(o.a)({},t,{handleCardClick:n}))}})})))},G=function(t){var e=t.loading,n=t.loadMore,r=t.canLoadMore;return D(f.a.Fragment,null,r&&!e&&D(I.Padder,{size:"medium"},D(I.Button,{onClick:n,centered:!0},e?"Carico...":"Mostra altri")))},A=function(){return D(I.Wrapper,{size:"medium"},D(I.Padder,{size:"small"},D($,null,D("div",null,D(Z,null),Object(j.i)()?D(I.RichText,null,D("h1",{style:{textAlign:"center"}},"Quali luoghi vuoi votare?"),D("p",null,"Cerca un luogo per nome, localit\xe0 o regione: se \xe8 gi\xe0 presente puoi modificare la scheda con testo e foto, se non \xe8 presente"," ",D("a",{href:"/il-fai/grandi-campagne/i-luoghi-del-cuore/aggiungi-luogo"},"aggiungilo tu")),D("h5",null,"Non vedi il tuo voto? Non preoccuparti! I voti si aggiornano automaticamente ogni 15 minuti.")):D(I.RichText,null,D("p",null,"Cerca un luogo per nome, localit\xe0 o regione: se \xe8 gi\xe0 presente puoi modificare la scheda con testo e foto, se non \xe8 presente"," ",D("a",{href:"/il-fai/grandi-campagne/i-luoghi-del-cuore/aggiungi-luogo"},"aggiungilo tu")))))))},W=function(){return D("div",{style:{textAlign:"center"}},D(I.Wrapper,{size:"medium"},D(I.Padder,{size:"small"},D(I.RichText,{text:"<p>Il tuo Luogo del Cuore non \xe8 presente?</p>"}),D(Z,null),D(I.Button,{full:!0,link:"/il-fai/grandi-campagne/i-luoghi-del-cuore/aggiungi-luogo"},"Aggiungi un Luogo"," "),D(Z,null))))},K=function(t){function e(t){var n;return Object(a.a)(this,e),(n=F(this,e,[t])).state={meta:{queryError:null},showResult:!Object(j.h)(t.queryObject)},n.handleSearch=n.handleSearch.bind(n),n.handleShowMap=n.handleShowMap.bind(n),n.checkIfShowError=n.checkIfShowError.bind(n),n.handleLocation=n.handleLocation.bind(n),n}return Object(l.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:"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,l=e.coords,s=t.selectedOptions,f=t.search;if(this.checkIfShowError(f))return!1;var p=s&&s.length&&"geolocation"===s.find((function(t){return"geolocation"===t}));if(p&&!l)return"function"===typeof u&&u();var d=Object(j.c)(z(z({},t),{},{comune:o,provincia:a,regione:i,showMap:c}));n(z(z({},d),p?z(z({},l),{},{nearby:!0}):{}),!0),this.setState({showResult:!0})}},{key:"handleLocation",value:function(){var t=this.props,e=t.coords;(0,t.setQueryString)(z(z({},e),{},{nearby:!0}))}},{key:"handleShowMap",value:function(t){var e=this.props,n=e.setQueryString,r=e.queryObject;r.comune,r.provincia,r.regione;n(z(z({},Object(w.a)(r,M)),{},{showMap:t}),!0)}},{key:"render",value:function(){if(!this.props.listOfLuoghi)return null;var t=this.props,e=t.loading,r=t.listOfLuoghi,a=t.seo,i=t.queryObject,c=t.tipologie,u=t.total,l=t.withVotes,s=t.setQueryString,p=this.state,d=p.meta,h=p.showResult,g=i.comune,b=i.provincia,v=i.regione,m=i.showMap;
1return D(f.a.Fragment,null,D(I.Background,{color:"grey"},D(H,Object(o.a)({},Object(j.p)(i),{tipologie:c,handleSearch:this.handleSearch,checkIfShowError:this.checkIfShowError,meta:d,handleShowMap:this.handleShowMap,showMap:m})),m?D(C.a,{withVotes:l,getPage:Promise.all([n.e(29),n.e(39)]).then(n.bind(null,"Wj6v")),api:"ldc",selectedOptions:Object(j.n)(i),ldc:!0}):D(f.a.Fragment,null,e?D(I.Loading,{text:"<h4>Caricamento in corso</h4>"}):D(f.a.Fragment,null,!h&&D(A,null),(h||g||b||v)&&D(N,Object(o.a)({total:u,path:a&&a.url},i)),D(_.a,Object(o.a)({},this.props,i,{onClick:function(t){i.search;var e=Object(w.a)(i,q);s(z(z({search:null},e),t),!0)}})),!e&&r&&0===r.length?D(I.Padder,{size:"small"},D("div",{style:{textAlign:"center"}},D(I.FiltersResults,{total:"0"}))):D(f.a.Fragment,null,D(Q,this.props),D(G,this.props),Object(j.i)()&&D(W,null)))),D(x.a,null)))}}])}(f.a.Component),U=p.d.div.withConfig({displayName:"SearchLuoghi__FlexContainer",componentId:"sc-9a4pim-0"})(["display:flex;flex-flow:row wrap;background:white;max-width:1440px;margin:auto;min-height:68px;"]),Y=p.d.div.withConfig({displayName:"SearchLuoghi__FlexChildBtn",componentId:"sc-9a4pim-1"})(["flex:200px 0 0;"]),V=p.d.div.withConfig({displayName:"SearchLuoghi__FlexChild",componentId:"sc-9a4pim-2"})(["flex-grow:0;@media screen and (min-width:1024px){flex-grow:1;}"]),J=p.d.div.withConfig({displayName:"SearchLuoghi__FlexButtonsContainer",componentId:"sc-9a4pim-3"})(['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})),X=p.d.div.withConfig({displayName:"SearchLuoghi__FlexButton",componentId:"sc-9a4pim-4"})(['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})),Z=p.d.div.withConfig({displayName:"SearchLuoghi__Space",componentId:"sc-9a4pim-5"})(["margin-bottom:1.5rem;"]),$=p.d.div.withConfig({displayName:"SearchLuoghi__Center",componentId:"sc-9a4pim-6"})(["display:flex;justify-content:center;text-align:center;"]),tt=K,et=n("pqH2"),nt=n("r4FT"),rt=n("0D0S"),ot=n.n(rt),at=f.a.createElement;function it(){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,l=Object.create(u.prototype);return ct(l,"_invoke",function(n,r,o){var a,c,u,l=0,s=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&&l&&!o&&e<s.length;e++){var o,a=s[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,s,h){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,h),c=s,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(l=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{l=1}}return{value:e,done:f}}}(n,o,a),!0),l}var i={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(ct(e={},r,(function(){return this})),e),f=l.prototype=c.prototype=Object.create(s);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,ct(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=l,ct(f,"constructor",l),ct(l,"constructor",u),u.displayName="GeneratorFunction",ct(l,o,"GeneratorFunction"),ct(f),ct(f,o,"Generator"),ct(f,r,(function(){return this})),ct(f,"toString",(function(){return"[object Generator]"})),(it=function(){return{w:a,m:p}})()}function ct(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(ct=function(t,e,n,r){function a(e,n){ct(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 ut(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 lt=ot()().publicRuntimeConfig.PLATFORM,st=function(t){var e=t.page,n=t.queryObject;return n.order="orderby=rank-general",Object(et.l)({page:e,query:Object(j.o)(n)}).then((function(t){return{items:t.data,nextPage:t.next_page_url,total:t.total}}))},ft=function(t){function e(){return Object(a.a)(this,e),ut(this,e,arguments)}return Object(l.a)(e,t),Object(i.a)(e,[{key:"render",value:function(){var t=this,e=this.props.seo;return at(v.a,{seo:e},at(y.a,null,(function(t){return at(pt,null)})),at(O.a,{data:["ldc"]}),at(d.a,null,(function(e){var n=e.requestLocation,r=e.coords;return at(b.a,null,(function(e){return at(g.a,{queryString:e},(function(e){var a=e.getQueryObject,i=e.setQueryString;return at(h.a,{apiRequest:st,queryObject:a()},(function(e){var c=e.items,u=e.loadMore,l=e.nextPage,s=e.total,f=e.working;return at(tt,Object(o.a)({withVotes:!0},t.props,{handleSearch:t.handleSearch,handleLoadMore:t.handleLoadMore,handleShowMap:t.handleShowMap,checkIfShowError:t.checkIfShowError,requestLocation:n,coords:r,total:s,queryObject:a(),listOfLuoghi:c,canLoadMore:l,loadMore:u,loading:f,setQueryString:i}))}))}))}))})))}}],[{key:"getInitialProps",value:function(){var t=Object(r.a)(it().m((function t(e){var n,r,o,a;return it().w((function(t){for(;;)switch(t.n){case 0:return n=e.req,t.n=1,nt.a.get("".concat(lt,"/settings")).then((function(t){return t.data}));case 1:if(!t.v.hide_place_search_page){t.n=2;break}return t.a(2,{statusCode:404});case 2:return r=Object(j.i)()?{title:"Candida e vota i tuoi Luoghi del Cuore | FAI",de
1scription:"Cerca il tuo luogo del cuore per nome o localit\xe0, se \xe8 gi\xe0 candidato votalo, se non \xe8 presente aggiungilo tu. Ricordati che puoi votare pi\xf9 luoghi.",url:"il-fai/grandi-campagne/i-luoghi-del-cuore/cerca-un-luogo",ogImage:"https://fai-website.imgix.net/uploads/2024/09/17095152/OgImage_LDC.jpg"}:{title:"Cerca il tuo luogo del cuore",description:"Cerca un luogo per nome o localit\xe0; se vuoi, puoi arricchire la sua scheda con fotografie e nuove informazioni.",url:"il-fai/grandi-campagne/i-luoghi-del-cuore/cerca-un-luogo",ogImage:"https://fai-website.imgix.net/uploads/2024/09/17095152/OgImage_LDC.jpg"},t.n=3,Object(et.t)();case 3:return o=t.v,a=n?n.originalUrl:window.location.href,t.a(2,{tipologie:o,seo:r,originUrl:a})}}),t)})));return function(e){return t.apply(this,arguments)}}()}])}(s.Component),pt=p.d.div.withConfig({displayName:"ListOfLuoghi__SpazioSottoHeader",componentId:"sc-1xz300d-0"})(["height:143px;@media screen and (min-width:409px){height:99px;}@media screen and (min-width:900px){height:155px;}@media screen and (min-width:965px){height:114px;}@media screen and (min-width:991px){height:104px;}"]),dt=Object(m.a)({header:{alwaysFixed:!0,hasCustomHeader:!0,headerType:"ldc"}})(ft);e.default=dt},c63D:function(t,e,n){"use strict";var r=n("ERkP"),o=n.n(r),a=n("6780"),i=o.a.createElement;e.a=function(t){return i(a.a,{getPage:Promise.all([n.e(15),n.e(14),n.e(16),n.e(29),n.e(98)]).then(n.bind(null,"Wj6v"))},t.children)}},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})}))},fRS9: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("zjfJ"),l=n("ERkP"),s=n.n(l),f=n("QtE3"),p=n("pqH2"),d=s.a.createElement;function h(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 g=function(t){function e(t){var n;return Object(r.a)(this,e),(n=h(this,e,[t])).state={comuni:[],province:[],regioni:[]},n.update=n.update.bind(n),n}return Object(c.a)(e,t),Object(o.a)(e,[{key:"componentDidMount",value:function(){this.props.search&&this.update()}},{key:"componentDidUpdate",value:function(t){t.search!==this.props.search&&this.update()}},{key:"update",value:function(){var t=this,e=this.props.search;Object(p.g)(e).then((function(e){return t.setState({comuni:e})})),Object(p.p)(e).then((function(e){return t.setState({province:e})})),Object(p.q)(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=t.onClick,i=this.state,c=i.comuni,l=i.province,p=i.regioni;if(e&&0===e.length||""===e||void 0===e||n||r||o||!(c&&c.length>0||l&&l.length>0||p&&p.length>0))return null;var h,g=(h="nome",function(t,e){return t.map((function(t){return[t[h],Object(u.a)({},e,t[h])]}))}),b=[c&&c.length>0&&{title:"Comuni",tags:g(c,"comune")},l&&l.length>0&&{title:"Province",tags:g(l,"provincia")},p&&p.length>0&&{title:"Regioni",tags:g(p,"regione")}].filter((function(t){return t}));return d(s.a.Fragment,null,d(f.Wrapper,{size:"big"},d(f.Tags,{tagsGroups:b,onClick:a})))}}])}(s.a.Component);e.a=g},j46Z:function(t,e,n){"use strict";n.r(e),n.d(e,"requestLocation",(function(){return o})),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 l})),n.d(e,"b",(function(){return s}));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]:{};
1e%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},l=function(t){var e=c(t);return e&&e.status},s=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}}},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"),l=n.n(u),s=n("aWzz"),f=n.n(s);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)}}])}(l.a.Component);d.contextTypes={measures:f.a.object},e.a=d},yIRn:function(t,e,n){"use strict";var r=n("ERkP"),o=n.n(r),a=n("QtE3"),i=o.a.createElement;
1e.a=function(){return i(a.Background,{color:"white"},i(a.Wrapper,{size:"big"},i(a.Figure,{image:{url:"https://fai-website.s3.eu-west-1.amazonaws.com/images/FL_LDC_SITO-2026.jpg"}})))}}},[["JgMc",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.