PageSourceSearch

https://myfai.fondoambiente.it/_next/static/chunks/pages/ldc/listOfComitati-a76ddeb8851246e853e7.js

js fondoambiente.it collected 2026-09-24 08:53:03 UTC 16,896 bytes, 1 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[68],{MJc2:function(t,e,n){var r=n("KEM+");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 o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){r(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 i=n("ERkP"),c=n("8cHP").Link;t.exports=function(t){return i.createElement(t.route?c:"a",o(o({},t),{},{href:t.route||t.to||""}),t.children)}},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 o=n("Zee3");n.d(e,"c",(function(){return o.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"),a=n("9fIP"),o=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"),h=n("QtE3"),d=n("r4FT"),g=n("0D0S"),m=n.n(g)()().publicRuntimeConfig.WP_API,b=function(t){return d.a.get("".concat(m,"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(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(a.a)(this,e),O(this,e,arguments)}return Object(u.a)(e,t),Object(o.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,P=s.a.createElement;function C(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(a.a)(this,n),(t=C(this,n)).state={tabs:[]},t.child=s.a.createRef(),t}return Object(u.a)(n,e),Object(o.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;b(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}))}}])}(l.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(h.TabsNavigation,{tabs:e,selectedId:a,isMenu:!0,ref:n})}))}))},XpLF:function(t,e,n){"use strict";n.r(e);var r=n("cxan"),a=n("zjfJ"),o=n("9fIP"),i=n("MMYH"),c=n("K/z8"),u=n("sRHE"),l=n("8K1b"),s=n("zygG"),f=n("QsI/"),p=n("ERkP"),h=n.n(p),d=n("j/s1"),g=(n("2tDR"),n("Mpzg"),n("nChe")),m=n.n(g),b=n("uPMs"),v=n("Lm5w"),y=n("qkzg"),O=n("QtE3"),j=n("ezIv"),w=function(t){var e=t.titolo,n=t.luogo,r=t.id,a=((n||{}).ldc||{}).media;return{title:e,supertitle:"Comitato",subtitle:"Per ".concat(n&&n.nome),content:n&&n.localita_web,thumbnail:{url:Object(j.e)(a)},id:r,link:"/il-fai/grandi-campagne/i-luoghi-del-cuore/comitati/".concat(r)}},P=n("yIRn"),C=n("uDfI"),k=n("8CSu"),_=n("q5Eu"),E=n("sLbM"),S=(Object(C.b)((function(t){return{isAuthenticated:Object(k.b)(t)}}),{requestAuth:_.requestAuth})((function(t){var e=t.children,n=t.requestAuth;return e({requestAuth:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return E.a.apply(void 0,[{requestAuth:n}].concat(e))},isAuthenticated:t.isAuthenticated})})),h.a.createElement),R=Object(j.i)(),q=d.d.div.withConfig({displayName:"SearchComitati__Center",componentId:"sc-14b1bsi-0"})(["display:flex;justify-content:center;text-align:center;"]),D=d.d.div.withConfig({displayName:"SearchComitati__Spacer",componentId:"sc-14b1bsi-1"})(["margin-bottom:1rem;h2{font-size:1.2rem;}"]),x=d.d.div.withConfig({displayName:"SearchComitati__Intro",componentId:"sc-14b1bsi-2"})(["margin-top:2rem;padding:0 2rem;"]),I=d.d.div.withConfig({displayName:"SearchComitati__Flex",componentId:"sc-14b1bsi-3"})(["text-align:center;> *{margin-bottom:1rem;display:block;}@media screen and (min-width:800px){display:flex;align-items:center;justify-content:space-around;padding:0 1rem;> *{margin:0 0.5rem;}}"]),z=function(t){if(!t.data.luoghi)return null;t.originUrl;
1return S(O.Background,{color:"grey"},function(t){t.data;var e=t.query,n=t.handleSearch,r=e.search,a=(e.comune,e.provincia,e.regione,e.ids);return S(O.FiltersBar,{searchPlaceholder:"Cerca per nome comitato, luogo o localit\xe0",onChange:n,searchValue:r,selectedOptions:a&&a.split(",").map((function(t){return parseInt(t)}))})}(t),function(t){var e=t.meta.loading;return S(h.a.Fragment,null,e&&S(O.Loading,{text:"<h4>Caricamento in corso</h4>"}))}(t),S(q,null,S(x,null,S(O.Wrapper,{size:"small"},S(D,null,S("h2",null,R?"Vuoi promuovere il tuo luogo del cuore? Crea un gruppo con amici e fai rete con le associazioni locali, datevi un nome e registratevi qui. In questo modo potrai scaricare i materiali personalizzati necessari alla raccolta voti e rimanere aggiornato sul Censimento.":"Scopri tutti i gruppi che si sono attivati all\u2019ultimo Censimento per promuovere a far votare i propri luoghi del cuore"))),R&&S(h.a.Fragment,null,S(D,null,S(I,null,S(O.Button,{small:!0,full:!0,link:"/il-fai/grandi-campagne/i-luoghi-del-cuore/registra-comitato"},"Registra un comitato")))))),function(t){var e=t.query,n=t.data,r=t.path,a=e.search,o=e.comune,i=e.provincia,c=e.regione,u=n.luoghi,l=(o||i||c)&&'<h1 style="text-align:center; margin-bottom: .5rem;">\n        Comitati '.concat(function(t){var e=t.comune,n=t.provincia,r=t.regione;return e?"nel comune di ".concat(e):n?"nella provincia di ".concat(n):!!r&&"nella regione ".concat(r)}({comune:o,provincia:i,regione:c}),"\n     </h1>\n    "),s=(o||i||c||a)&&'<p><a href="'.concat(r,'">Resetta la ricerca</a></p>'),f=[l&&l,a&&'<h1  style="text-align:center; margin-bottom: .5rem;">Hai cercato <strong>"'.concat(a,'"</strong></h1>'),s&&s].filter((function(t){return t})).join("");return S(O.FiltersResults,{total:u.total&&a,message:f})}(t),function(t){var e=t.data,n=t.query,r=e.comuni,a=e.regioni,o=e.province,i=n.search,c=n.comune,u=n.provincia,l=n.regione;if(i&&0===i.length||""===i||void 0===i)return null;if(c||u||l)return null;if(!(r&&r.length>0||o&&o.length>0||a&&a.length>0))return null;var s=[r&&r.length>0&&{title:"Comuni",tags:r.map((function(t){return[t.nome,"?comune=".concat(t.nome)]}))},o&&o.length>0&&{title:"Province",tags:o.map((function(t){return[t.nome,"?provincia=".concat(t.nome)]}))},a&&a.length>0&&{title:"Regioni",tags:a.map((function(t){return[t.nome,"?regione=".concat(t.nome)]}))}].filter((function(t){return t}));return S(O.Wrapper,{size:"big"},S(O.Tags,{tagsGroups:s}))}(t),function(t){var e=t.meta,n=t.data,r=(t.originUrl,t.votes,e.loading),a=n.luoghi&&n.luoghi.data;return!r&&a&&0===a.length?S(O.Padder,{size:"small"},S("div",{style:{textAlign:"center"}},S(O.FiltersResults,{total:"0"}))):S(O.Padder,{size:"small"},S(O.ListOfCards,{wrap:"big",cards:a.map(w),vertical:!0,CardComponent:function(t){return S(O.ListCard,t)}}))}(t),function(t){var e=t.data,n=t.meta,r=t.handleLoadMore,a=e&&e.luoghi,o=a.current_page,i=a.last_page,c=n.loading;return i>o&&S(O.Padder,{size:"small"},S(O.Button,{onClick:r,children:c?"Carico...":"Mostra altre",centered:!0}))}(t),S(P.a,null))},L=n("pqH2"),M=n("NbfL"),A=n("fGyu");function H(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 N(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?H(Object(n),!0).forEach((function(e){Object(a.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var F=function(t,e){var n=e.type,r=e.payload;switch(n){case"REPLACE_LUOGHI":return r;case"ADD_LUOGHI":return{luoghi:N(N({},r.luoghi),{},{data:[].concat(Object(A.a)(t.luoghi.data),Object(A.a)(r.luoghi.data))})};default:return t}},T=n("0D0S"),G=n.n(T),B=h.a.createElement;function U(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 W(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?U(Object(n),!0).forEach((function(e){Object(a.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function K(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))}function J(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function o(n,r,a,o){var u=r&&r.prototype instanceof c?r:c,l=Object.create(u.prototype);return Q(l,"_invoke",function(n,r,a){var o,c,u,l=0,s=a||[],f=!1,p={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return o=e,c=0,u=t,p.n=n,i}};function h(n,r){for(c=n,u=r,e=0;!f&&l&&!a&&e<s.length;e++){var a,o=s[e],h=p.p,d=o[2];n>3?(a=d===r)&&(u=o[(c=o[4])?5:(c=3,3)],o[4]=o[5]=t):o[0]<=h&&((a=n<2&&h<o[1])?(c=0,p.v=r,p.n=o[1]):h<d&&(a=n<3||o[0]>r||r>d)&&(o[4]=n,o[5]=r,p.n=d,c=0))}if(a||n>1)return i;throw f=!0,r}return function(a,s,d){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&h(s,d),c=s,u=d;(e=c<2?t:u)||!f;){o||(c?c<3?(c>1&&(p.n=-1),h(c,u)):p.n=u:p.v=u);try{if(l=2,o){if(c||(a="next"),e=o[a]){if(!(e=e.call(o,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=o.return)&&e.call(o),c<2&&(u=TypeError("The iterator does not provide a '"+a+"' method"),c=1);o=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==i)break}catch(e){o=t,c=1,u=e}finally{l=1}}return{value:e,done:f}}}(n,a,o),!0),l}var i={};function c(){}function u(){}function l(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(Q(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,Q(t,a,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=l,Q(f,"constructor",l),Q(l,"constructor",u),u.displayName="GeneratorFunction",Q(l,a,"GeneratorFunction"),Q(f),Q(f,a,"Generator"),Q(f,r,(function(){return this})),Q(f,"toString",(function(){return"[object Generator]"})),(J=function(){return{w:o,m:p}})()}function Q(t,e,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(t){a=0}(Q=function(t,e,n,r){function o(e,n){Q(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:(o("next",0),o("throw",1),o("return",2))})(t,e,n,r)}var X=G()().publicRuntimeConfig.APP_DOMAIN,Z=function(t){var e=t.search,n=(t.tipologia,t.comune),r=t.provincia,a=t.regione,o=t.limit,i=void 0===o?24:o,c=t.page,u=void 0===c?1:c,l=t.order;return[u&&"page=".concat(u),i&&"limit=".concat(i),e&&"search=".concat(e),n&&"luogo.comune.nome=".concat(n),r&&"luogo.provincia.nome=".concat(r),a&&"luogo.regione.nome=".concat(a),l&&l].filter((function(t){return t})).join("&")},V=function(){var t=Object(f.a)(J().m((function t(e){var n,r,a,o,i,c;return J().w((function(t){for(;;)switch(t.n){case 0:if(e){t.n=1;break}return t.a(2,null);case 1:return t.n=2,Promise.all([Object(L.e)(Z(e)),Object(L.g)(e.search),Object(L.p)(e.search),Object(L.q)(e.search)]);case 2:return n=t.v,r=Object(s.a)(n,4),a=r[0],o=r[1],i=r[2],c=r[3],t.a(2,{luoghi:a,comuni:o,province:i,regioni:c})}}),t)})));return function(e){return t.apply(this,arguments)}}(),Y=function(t){function e(t){var n;Object(o.a)(this,e),n=K(this,e,[t]);var r=t.query,a=t.data;return n.state={data:a,query:r,meta:{loading:!1,error:!1}},n.handleLoadMore=n.handleLoadMore.bind(n),n.handleSearch=n.handleSearch.bind(n),n}return Object(l.a)(e,t),Object(i.a)(e,[{key:"handleSearch",value:function(t){var e=t.search,n=t.selectedOptions.join(",");if(this.state.query&&e===this.state.query.search&&n===this.state.query.ids)return!1;var r=this.state.query;this.setState({meta:{loading:!0},query:W(W({},r),{},{ids:n,search:e,page:1})})}},{key:"handleLoadMore",value:function(){var t=this.state.query;this.setState({meta:{loading:!0},query:W(W({},t),{},{page:(t.page||1)+1})})}},{key:"componentDidUpdate",value:function(){var t=Object(f.a)(J().m((function t(e,n){var r,a,o,i,c;return J().w((function(t){for(;;)switch(t.n){case 0:if(r=this.state,a=r.query,o=r.data,m()(n.query,a)){t.n=2;break}return t.n=1,V(a);case 1:i=t.v,c=a.page===(n.page||1),this.setState({meta:{loading:!1},data:F(o,{type:c?"REPLACE_LUOGHI":"ADD_LUOGHI",payload:i})},(function(){Object(j.a)(a)}));case 2:return t.a(2)}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()},{key:"shouldComponentUpdate",value:function(t,e){return!m()(e.query,this.state.query)||(!m()(e.data,this.state.data)||!m()(e.meta,this.state.meta))}},{key:"render",value:function(){var t=this.props,e=t.seo;t.originUrl;return B(b.a,{seo:e},B(y.a,null,(function(t){return B($,{height:104})})),B(M.a,{data:["ldc"]}),B(z,Object(r.a)({},this.props,this.state,{handleSearch:this.handleSearch,handleLoadMore:this.handleLoadMore})))}}],[{key:"getInitialProps",value:function(){var t=Object(f.a)(J().m((function t(e){var n,r,a,o,i;return J().w((function(t){for(;;)switch(t.n){case 0:return n=e.query,r=e.req,a={title:"Tutti i Comitati del censimento I Luoghi del Cuore | FAI",de
1scription:"Cerca il Comitato che sostiene il tuo luogo del cuore. Se sei gi\xe0 registrato, accedi all'area riservata. Se non trovi il tuo Comitato, registralo.",url:"".concat(X,"/il-fai/grandi-campagne/i-luoghi-del-cuore/comitati")},t.n=1,V(n);case 1:return o=t.v,i=r?"https://"+r.get("host")+r.originalUrl:window.location.href,t.a(2,{query:n,data:W({},o),seo:a,originUrl:i,path:r?r.path:null})}}),t)})));return function(e){return t.apply(this,arguments)}}()}])}(p.Component),$=d.d.div.withConfig({displayName:"ListOfComitati__SpazioSottoHeader",componentId:"sc-xyupi5-0"})(["height:",";"],(function(t){return t.height?"".concat(t.height,"px"):"0"})),tt=Object(v.a)({header:{alwaysFixed:!0,hasCustomHeader:!0,headerType:"ldc"}})(Y);e.default=tt},nChe:function(t,e,n){"use strict";t.exports=function(t,e){if(t===e)return!0;if(!t||!e)return!1;var n=Object.keys(t),r=Object.keys(e),a=n.length;if(r.length!==a)return!1;for(var o=0;o<a;o++){var i=n[o];if(t[i]!==e[i]||!Object.prototype.hasOwnProperty.call(e,i))return!1}return!0}},qkzg:function(t,e,n){"use strict";var r=n("9fIP"),a=n("MMYH"),o=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(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(i.a)(t).constructor):e.apply(t,n))}var h=function(t){function e(){return Object(r.a)(this,e),p(this,e,arguments)}return Object(c.a)(e,t),Object(a.a)(e,[{key:"render",value:function(){return this.props.children(this.context.measures)}}])}(l.a.Component);h.contextTypes={measures:f.a.object},e.a=h},wcrm:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ldc/listOfComitati",function(){return n("XpLF")}])},yIRn:function(t,e,n){"use strict";var r=n("ERkP"),a=n.n(r),o=n("QtE3"),i=a.a.createElement;
1e.a=function(){return i(o.Background,{color:"white"},i(o.Wrapper,{size:"big"},i(o.Figure,{image:{url:"https://fai-website.s3.eu-west-1.amazonaws.com/images/FL_LDC_SITO-2026.jpg"}})))}}},[["wcrm",1,0,5,7,3,2,6,4,8,9,10,11,13,12,15,14,16]]]);

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.