1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[51,34,39,98],{"+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 i}));var r="LOCATION_REQUEST",o="LOCATION_COMMIT",i="LOCATION_FAILURE"},"/QYh":function(t,e,n){"use strict";var r=n("O5Wi"),o=n("zQIG"),i=n("8mBC");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 c(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}function u(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}e.__esModule=!0,e.default=void 0;var l,f=(l=n("ERkP"))&&l.__esModule?l:{default:l},p=n("D3Vl"),d=n("4smK");var h=[],b=[],y=!1;function g(t){var e=t(),n={loading:!0,loaded:null,error:null};return n.promise=e.then((function(t){return n.loading=!1,n.loaded=t,t})).catch((function(t){throw n.loading=!1,n.error=t,t})),n}function m(t){var e={loading:!1,loaded:{},error:null},n=[];try{Object.keys(t).forEach((function(r){var o=g(t[r]);o.loading?e.loading=!0:(e.loaded[r]=o.loaded,e.error=o.error),n.push(o.promise),o.promise.then((function(t){e.loaded[r]=t})).catch((function(t){e.error=t}))}))}catch(r){e.error=r}return e.promise=Promise.all(n).then((function(t){return e.loading=!1,t})).catch((function(t){throw e.loading=!1,t})),e}function v(t,e){return f.default.createElement(function(t){return t&&t.__esModule?t.default:t}(t),e)}function O(t,e){var n=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:v,webpack:null,modules:null},e),r=null;function o(){if(!r){var e=new j(t,n);r={getCurrentValue:e.getCurrentValue.bind(e),subscribe:e.subscribe.bind(e),retry:e.retry.bind(e),promise:e.promise.bind(e)}}return r.promise()}if(!y&&"function"===typeof n.webpack){var i=n.webpack();b.push((function(t){var e,n=u(i);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(-1!==t.indexOf(r))return o()}}catch(a){n.e(a)}finally{n.f()}}))}var a=function(t,e){o();var i=f.default.useContext(d.LoadableContext),a=(0,p.useSubscription)(r);return f.default.useImperativeHandle(e,(function(){return{retry:r.retry}}),[]),i&&Array.isArray(n.modules)&&n.modules.forEach((function(t){i(t)})),f.default.useMemo((function(){return a.loading||a.error?f.default.createElement(n.loading,{isLoading:a.loading,pastDelay:a.pastDelay,timedOut:a.timedOut,error:a.error,retry:r.retry}):a.loaded?n.render(a.loaded,t):null}),[t,a])};return a.preload=function(){return o()},a.displayName="LoadableComponent",f.default.forwardRef(a)}var j=function(){return i((function t(e,n){o(this,t),this._loadFn=e,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}),[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var t=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var e=this._res,n=this._opts;e.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){t._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){t._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){t._update({}),t._clearTimeouts()})).catch((function(e){t._update({}),t._clearTimeouts()})),this._update({})}},{key:"_update",value:function(t){this._state=c(c({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},t),this._callbacks.forEach((function(t){return t()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(t){var e=this;return this._callbacks.add(t),function(){e._callbacks.delete(t)}}}])}();function w(t){return O(g,t)}function _(t,e){for(var n=[];t.length;){var r=t.pop();
1n.push(r(e))}return Promise.all(n).then((function(){if(t.length)return _(t,e)}))}w.Map=function(t){if("function"!==typeof t.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return O(m,t)},w.preloadAll=function(){return new Promise((function(t,e){_(h).then(t,e)}))},w.preloadReady=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(e){var n=function(){return y=!0,e()};_(b,t).then(n,n)}))},window.__NEXT_PRELOADREADY=w.preloadReady;var E=w;e.default=E},"/oUt":function(t,e,n){"use strict";var r=n("oUmF"),o=n("f8sa"),i=n("ADPW"),a=n("rVun"),c={filter:function(t,e){return!t||"string"===typeof t&&void 0===e||("string"===typeof t&&(t=a(t,e)),this._filters=o(this._filters,t)),this},taxonomy:function(t,e){var n,o=Array.isArray(e),a=o?e.reduce((function(t,e){return t&&"number"===typeof e}),!0):"number"===typeof e,c=o?e.reduce((function(t,e){return t&&"string"===typeof e}),!0):"string"===typeof e;if(!c&&!a)throw new Error("term must be a number, string, or array of numbers or strings");return"category"===t?t=c?"category_name":"cat":"post_tag"===t&&(t="tag"),this._taxonomyFilters=this._taxonomyFilters||{},n=(this._taxonomyFilters[t]||[]).concat(e).sort(i),this._taxonomyFilters[t]=r(n,!0),this},year:function(t){return c.filter.call(this,"year",t)},month:function(t){var e;if("string"===typeof t){if(e=new Date(Date.parse(t+" 1, 2012")),isNaN(e))return this;t=e.getMonth()+1}return"number"===typeof t?c.filter.call(this,"monthnum",t):this},day:function(t){return c.filter.call(this,"day",t)},path:function(t){return c.filter.call(this,"pagename",t)}};t.exports=c},0:function(t,e){},"0KcG":function(t,e,n){"use strict";var r=["\\(\\?","(?:P<|<|')","([^>']+)","[>']","([^\\)]*)","\\)"].join(""),o=new RegExp(r);t.exports={pattern:r,namedGroupRE:o}},"241S":function(t,e,n){"use strict";var r=n("QsI/"),o=n("fGyu"),i=n("9fIP"),a=n("MMYH"),c=n("K/z8"),u=n("sRHE"),s=n("8K1b"),l=n("cxan"),f=n("zjfJ"),p=n("ERkP"),d=n.n(p),h=n("r4FT"),b=n("QtE3"),y=n("AU4o"),g=n.n(y),m=n("0D0S"),v=n.n(m),O=n("voCV"),j=n("HKMk"),w=n("uDfI"),_=n("GXeJ"),E=n("NAJH"),P=n("OzPX"),k=v()().publicRuntimeConfig.PLATFORM,T=d.a.createElement;function C(t,e,n){return e=Object(u.a)(e),Object(c.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(u.a)(t).constructor):e.apply(t,n))}var S=v()().publicRuntimeConfig.PLATFORM,x=function(t){function e(t){var n;return Object(i.a)(this,e),(n=C(this,e,[t])).state={items:[]},n.updateGrid=n.updateGrid.bind(n),n.updateGrid(t),n}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentWillReceiveProps",value:function(t){this.updateGrid(t)}},{key:"updateGrid",value:function(t){var e,n=this;if("string"!==typeof t.itemsType&&t.itemsType&&t.itemsType.length){var r=t.itemsType[0].split("|")[0]==="".concat(S,"/faqs/categorie?has=faqs")?"categorie":"tags",o=t.itemsType.map((function(t){return"".concat(r,".id[]=").concat(t.split("|")[1])})).join("&");(e="?with=tags,categorie&limit=999&&".concat(o),h.a.get("".concat(k,"/").concat("faqs","/").concat(e)).then((function(t){return t.data}))).then((function(t){n.setState({items:t.data})}))}else this.setState({items:[],api:t.itemsType})}},{key:"render",value:function(){var t=this.state.items,e=this.props.limit,n=t.filter((function(t){return t})).length>0?t:[];return T(b.FAQs,Object(l.a)({},this.props,{faqs:n,limit:e}))}}])}(p.Component),I=Object(O.a)(Object(E.b)(),Object(E.a)(),Object(E.d)([{prop:"intro",label:"Intro"},{prop:"title",label:"Titolo"},{prop:"subtitle",label:"Sottotitolo",type:"WYSIWYG"},{prop:"backgroundColor",label:"Style",type:"multiple",options:["green:VERDE","orange:ARANCIO"],initialValue:"green"},{prop:"limit",label:"Numero di FAQs da mostrare"},{prop:"itemsType",label:"Selezione flusso",type:"apiChooser",options:[{option:"".concat(S,"/faqs/categorie?has=faqs||CATEGORIE"),displayName:"descrizione"},{option:"".concat(S,"/tags?has=faqs||TAG"),displayName:"tag"}],initialValue:"".concat(S,"/faqs/categorie?has=faqs"),api:{prop:"data",resource:"apiChooser"}}]),Object(P.a)("apiChooser"))(x),A=n("j/s1"),L=n("6Oj0"),D=d.a.createElement;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 R=function(t){function e(t){var n;return Object(i.a)(this,e),(n=F(this,e,[t])).state={value:""},n.handleChange=n.handleChange.bind(n),n.handleSubmit=n.handleSubmit.bind(n),n}return Object(s.a)(e,t),Object(a.a)(e,[{key:"handleChange",value:function(t){this.setState({value:t})}},{key:"handleSubmit",value:function(){var t=this.props.searchUrl;window.location.href="".concat(t,"?search=").concat(this.state.value)}},{key:"render",value:function(){var t=this,e=this.props,n=e.placeholder,r=e.withIcon,o=e.buttonLabel;return D(b.Hero,Object(l.a)({},this.props,{renderSearch:function(){return D(N,{onSubmit:function(e){e.preventDefault(),t.handleSubmit()}},D(G,null,D(M,{type:"text",value:t.value,placeholder:n,onChange:function(e){return t.handleChange(e.target.value)}}),r&&D(b.Icon,{SVG:L.lens,color:"orange",size:[26,26],onClick:t.handleSubmit})),D(B,null,D(b.Button,{small:!0,tight:!0,onClick:t.handleSubmit},o||"Cerca")))}}))}}])}(p.Component),N=A.d.form.withConfig({displayName:"HeroWithSearch__Formazzo",componentId:"sc-fn4iif-0"})(["display:flex;align-items:normal;justify-content:stretch;position:relative;justify-content:space-between;margin:0 auto;margin-top:2rem;background-color:white;z-index:4;height:4rem;padding:1rem;width:calc(100vw - 2rem);max-width:600px;"]),G=A.d.div.withConfig({displayName:"HeroWithSearch__InputIconWrapper",componentId:"sc-fn4iif-1"})(["width:100%;.Icon{position:absolute;right:1rem;z-index:9999;}@media screen and (min-width:767px){.Icon{display:none;}}"]),M=A.d.input.withConfig({displayName:"HeroWithSearch__Inputtozzo",componentId:"sc-fn4iif-2"})(["width:100%;height:100%;color:#808080;left:0;right:0;border:none;outline:none;&:focus{outline:none;}"]),B=A.d.div.withConfig({displayName:"HeroWithSearch__ButtonContaianer",componentId:"sc-fn4iif-3"})(["display:none;@media screen and (min-width:768px){display:flex;align-self:center;}"]);R.fields=b.Hero.fields;var z=R,U=d.a.createElement,H=function(t){return U(z,Object(l.a)({},t,{searchUrl:"/il-fai/grandi-campagne/giornate-fai-di-primavera/i-luoghi-aperti/",placeholder:"Cerca un luogo per nome o localit\xe0",withIcon:!0}))};H.fields=z.fields;var q=H,W=n("JXgi"),V=n("yDM6"),K=d.a.createElement;function Y(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 Q=v()().publicRuntimeConfig.PLATFORM,J=function(t){function e(t){var n;return Object(i.a)(this,e),(n=Y(this,e,[t])).state={items:[],hasMore:!1,currentPage:1},n.loadMore=n.loadMore.bind(n),n.updateGrid=n.updateGrid.bind(n),n.updateGrid(t),n}
1return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentWillReceiveProps",value:function(t){this.updateGrid(t)}},{key:"updateGrid",value:function(t){var e=this;if("string"!==typeof t.itemsType&&t.itemsType&&t.itemsType.length){var n=t.itemsType[0].split("|")[0]==="".concat(Q,"/news/categorie")?"categoria":"tags",r=t.itemsType.map((function(t){return"".concat(n,".id[]=").concat(t.split("|")[1])})).join("&");Object(V.c)("?with=tags,categoria&page=".concat(this.state.currentPage,"&limit=").concat(t.limit,"&&").concat(r)).then((function(n){e.setState({items:1===e.state.currentPage?n.data:e.state.items.concat(n.data),hasMore:t.limit&&parseInt(n.total)-parseInt(n.to)>0,api:t.itemsType})}))}else this.setState({items:[],hasMore:!1,currentPage:1,api:t.itemsType})}},{key:"loadMore",value:function(){var t=this;this.setState({currentPage:this.state.currentPage+1},(function(){return t.updateGrid(t.props)}))}},{key:"render",value:function(){var t=this.state,e=t.items,n=t.hasMore,r=e.filter((function(t){return t})).length>0?e.map(W.a):[];return K("div",null,K(b.NewsGrid,{cards:r}),n&&K($,null,K(b.Button,{centered:!0,onClick:this.loadMore},"MOSTRA ALTRE")))}}])}(p.Component),X=Object(O.a)(E.c,Object(E.a)(),Object(E.b)(),Object(E.d)([{prop:"limit",label:"Numero di news da mostrare"},{prop:"itemsType",label:"Selezione flusso",type:"apiChooser",options:[{option:"".concat(Q,"/news/categorie||CATEGORIE"),displayName:"descrizione"},{option:"".concat(Q,"/tags?has=news||TAG"),displayName:"tag"}],initialValue:"".concat(Q,"/news/categorie"),api:{prop:"data",resource:"apiChooser"}}]),E.e,Object(P.a)("apiChooser"))(J),$=A.d.div.withConfig({displayName:"GridOfNewsWithApi__ButtonPadder",componentId:"sc-cu6etj-0"})(["padding-top:2rem;"]),Z=n("ysqo"),tt=n.n(Z),et=d.a.createElement;function nt(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 rt=function(t){function e(){return Object(i.a)(this,e),nt(this,e,arguments)}return Object(s.a)(e,t),Object(a.a)(e,[{key:"render",value:function(){var t=this.props.form;if("undefined"===typeof t||""===t)return et("div",{style:{textAlign:"center",padding:"5rem"}},"Scegli Form da utilizzare");var e="https://form.jotform.com/".concat(t);return et(d.a.Fragment,null,et(tt.a,null,et("script",{dangerouslySetInnerHTML:{__html:'var ifr = document.getElementById("JotFormIFrame-'.concat(t,'");\n if (window.location.href && window.location.href.indexOf("?") > -1) {\n var get = window.location.href.substr(window.location.href.indexOf("?") + 1);\n get += \'&nojump\'\n if (ifr && get.length > 0) {\n var src = ifr.src;\n src = src.indexOf("?") > -1 ? src + "&" + get : src + "?" + get;\n ifr.src = src;\n }\n }\n window.handleIFrameMessage = function(e) {\n if (typeof e.data !== \'string\') {\n return false;\n }\n var args = e.data.split(":");\n if (args.length > 2) {\n iframe = document.getElementById("JotFormIFrame-" + args[2]);\n } else {\n iframe = document.getElementById("JotFormIFrame");\n }\n if (!iframe) return;\n switch (args[0]) {\n case "scrollIntoView":\n iframe.scrollIntoView();\n break;\n case "setHeight":\n iframe.style.height = args[1] + "px";\n break;\n case "collapseErrorPage":\n if (iframe.clientHeight > window.innerHeight) {\n iframe.style.height = window.innerHeight + "px";\n }\n break;\n case "reloadPage":\n window.location.reload();\n break;\n }\n var isJotForm = (e.origin.indexOf("jotform") > -1) ? true : false;\n if (isJotForm && "contentWindow" in iframe && "postMessage" in iframe.contentWindow) {\
1n var urls = {\n "docurl": encodeURIComponent(document.URL),\n "referrer": encodeURIComponent(document.referrer)\n };\n iframe.contentWindow.postMessage(JSON.stringify({\n "type": "urls",\n "value": urls\n }), "*");\n }\n };\n if (window.addEventListener) {\n window.addEventListener("message", handleIFrameMessage, false);\n } else if (window.attachEvent) {\n window.attachEvent("onmessage", handleIFrameMessage)\n }')}})),et("iframe",{title:"jotform",id:"JotFormIFrame-".concat(t),allowTransparency:"true",src:e,frameBorder:"0",style:{width:"1px",minWidth:"100%",height:"auto",border:"none"},scrolling:"no"}))}}])}(p.PureComponent),ot=Object(O.a)(Object(E.a)(),Object(E.b)(),Object(E.d)([{prop:"form",label:"Scegli form",type:"multiple",options:["23274788955976:Lavora con noi","41554191687967:Richiesta immagini","62481535079966:Corporate Gold Donor","31502321142940:Lasciti","71974561078971:Carta docente","81022399778972:Convegno professionisti","81063683078966:5x1000","81064139078963:Adotta un albero o una panchina","81423851478967:Custode della bellezza 2018","81494068078971:Adotta un progetto","81922127778970:FAI Scuola Educational","82072546078965:FAI Scuola - Torneo del Paesaggio 2018","82072578178971:FAI Scuola - Concorso Fatti d'acqua","82393542778974:FAI Scuola Iscrizione","71724206278962:Art Bonus","73312338578966:Caricamento foto torneo del paesaggio 1 fased","80094347678972:Convegno FAI Delegati Brescia","83294962750971:Data Collection acqua","80512304678960:Concorso FAI Scuola fase finale","90293824576971:Data Collection DB Oracle","90442760436961:Convegno Professionisti 2"]}]))(rt),it=d.a.createElement;function at(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 ct=function(t){function e(t){var n;return Object(i.a)(this,e),n=at(this,e,[t]),Object(f.a)(n,"state",{src:null,form:null}),n}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentWillReceiveProps",value:function(t){if(t.form!==this.props.form){var e=t.form,n=window.location.search;n+=n?"&nojump":"?nojump",this.setState({form:e,src:"https://form.jotform.com/".concat(e).concat(n)})}}},{key:"componentDidMount",value:function(){if(this.props.form){var t=this.props.form,e=window.location.search;e+=e?"&nojump":"?nojump",this.setState({form:t,src:"https://form.jotform.com/".concat(t).concat(e)})}}},{key:"render",value:function(){var t=this.state,e=t.src,n=t.form;return e?it(d.a.Fragment,null,it(tt.a,null,it("script",{dangerouslySetInnerHTML:{__html:'\n window.handleIFrameMessage = function(e) {\n if (typeof e.data !== \'string\') {\n return false;\n }\n var args = e.data.split(":");\n if (args.length > 2) {\n iframe = document.getElementById("JotFormIFrame-" + args[2]);\n } else {\n iframe = document.getElementById("JotFormIFrame");\n }\n if (!iframe) return;\n switch (args[0]) {\n case "scrollIntoView":\n iframe.scrollIntoView();\n break;\n case "setHeight":\n iframe.style.height = args[1] + "px";\n break;\n case "collapseErrorPage":\n if (iframe.clientHeight > window.innerHeight) {\n iframe.style.height = window.innerHeight + "px";\n }\n break;\n case "reloadPage":\n window.location.reload();\n break;\n }\n var isJotForm = (e.origin.indexOf("jotform") > -1) ? true : false;\n if (isJotForm && "contentWindow" in iframe && "postMessage" in iframe.contentWindow) {\
1n var urls = {\n "docurl": encodeURIComponent(document.URL),\n "referrer": encodeURIComponent(document.referrer)\n };\n iframe.contentWindow.postMessage(JSON.stringify({\n "type": "urls",\n "value": urls\n }), "*");\n }\n };\n if (window.addEventListener) {\n window.addEventListener("message", handleIFrameMessage, false);\n } else if (window.attachEvent) {\n window.attachEvent("onmessage", handleIFrameMessage)\n }'}})),it("iframe",{title:"jotform",id:"JotFormIFrame-".concat(n),allowTransparency:"true",src:e,frameBorder:"0",style:{width:"1px",minWidth:"100%",height:"auto",border:"none"},scrolling:"no"})):it("div",{style:{textAlign:"center",padding:"5rem"}},"Scegli Form da utilizzare")}}])}(p.PureComponent),ut=Object(O.a)(Object(E.a)(),Object(E.b)(),Object(E.d)([{prop:"form",label:"Inserisci l'ID del form JotForm"}]))(ct),st=d.a.createElement;function lt(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 ft=function(t){function e(){var t;return Object(i.a)(this,e),t=lt(this,e),Object(f.a)(t,"onLoadIframeResizer",(function(e){iFrameResize({log:!1,enablePublicMethods:!0,resizedCallback:t.onResize},"#DatalyticsIframe-603cc104c460ad1d4acbb8d3")})),Object(f.a)(t,"onResize",(function(e){var n=e.height;t.setState({height:n})})),t.ref=d.a.createRef(),t.state={height:null},t}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentDidMount",value:function(){this.loadIFrameResizer()}},{key:"loadIFrameResizer",value:function(t){this.script=document.createElement("script"),this.script.src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.6.2/iframeResizer.min.js",this.script.type="text/javascript",this.script.addEventListener("load",this.onLoadIframeResizer),document.querySelector("head").appendChild(this.script)}},{key:"render",value:function(){var t=this.props.form;if("undefined"===typeof t||""===t)return st("div",{style:{textAlign:"center",padding:"5rem"}},"Scegli Analytics da utilizzare");var e="https://infographic.datalytics.it/#/".concat(t,"?loadingColor=rgba(255,255,255,1)");return st("div",{style:{display:"flex",justifyContent:"center",height:this.state.height?"".concat(this.state.height,"px"):"50rem"}},st("iframe",{ref:this.ref,title:"datalytics",id:"DatalyticsIframe-".concat(t),src:e,frameBorder:"0",width:"100%",height:"100%",allowTransparency:"true"}))}}])}(p.PureComponent),pt=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,E.e,Object(E.d)([{prop:"form",label:"Scegli form",type:"multiple",options:["603cc104c460ad1d4acbb8d3:Datalytics"]}]))(ft),dt=n("qXKH"),ht=n("MJc2"),bt=n.n(ht),yt=d.a.createElement,gt=function(t){return yt(b.ListCard,Object(l.a)({LinkComponent:bt.a},t))},mt=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,Object(E.d)([{prop:"data",type:"api",resource:"beni",exact:3,label:"Seleziona beni"}]),E.e,Object(P.a)("beni"))((function(t){var e=t.resources,n=e.length>0?e.map(dt.a):[];return yt(b.ListOfCards,{CardComponent:gt,cards:n})})),vt=n("HbGN"),Ot=function(t){var e=t.id,n=t.gfp,r=(t.tipologia,t.localita_web),o=t.fl_bene_fai,i=t.slug,a=t.onClick;return"undefined"===typeof n?{}:{id:e,title:n.titolo_apertura,subtitle:r,link:"/luoghi/".concat(i,"?gfp"),slug:i,onClick:a,thumbnail:{url:n.media&&n.media.length>0&&void 0!==n.media.find((function(t){return"TOP"===t.pivot.position}))&&n.media.find((function(t){return"TOP"===t.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_commissione_eu&&{icon:"commissione_eu",content:"Apertura in collaborazione con la Commissione Europea"},n.fl_ingresso_esclusivo&&{icon:"crown",content:"Ingresso dedicato agli iscritti Fai"},n.fl_consigliato&&{icon:"badge",content:"Luogo consigliato"},o&&{icon:"FaiLogo",content:"Bene FAI ".concat(n.fl_chiuso?"":"visitabile tutto l'anno")}].filter((function(t){return t}))}},jt=["resources"],wt=d.a.createElement,_t=function(t){return wt(b.ListCardWithTooltips,Object(l.a)({LinkComponent:bt.a},t))},Et=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,Object(E.d)([{prop:"data",type:"api",resource:"gfp",exact:3,label:"Seleziona luoghi GFP"}]),E.e,Object(P.a)("gfp"))((function(t){var e=t.resources,n=(Object(vt.a)(t,jt),e.length>0?e.filter((function(t){return"undefined"!==typeof t})).map(Ot):[]);return wt(b.ListOfCards,{CardComponent:_t,cards:n})})),Pt=n("iR2b"),kt=d.a.createElement,Tt=function(t){return kt(b.EventCard,Object(l.a)({LinkComponent:bt.a},t))},Ct=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,Object(E.d)([{prop:"border",label:"Bordo",type:"multiple",options:["true:MOSTRA","false:NASCONDI"]},{prop:"samesize",label:"Dimensione Cards",type:"multiple",options:["true:TUTTE UGUALI","false:DEFAULT"]},{prop:"data",type:"api",resource:"eventi",exact:4,label:"Seleziona eventi"}
1,{label:"Sfondo Card 1",prop:"cardsBackground1",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]},{label:"Sfondo Card 2",prop:"cardsBackground2",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]},{label:"Sfondo Card 3",prop:"cardsBackground3",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]},{label:"Sfondo Card 4",prop:"cardsBackground4",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]}]),E.e,Object(P.a)("eventi"))((function(t){var e=t.resources,n=t.border,r=t.samesize,o=t.cardsBackground1,i=t.cardsBackground2,a=t.cardsBackground3,c=t.cardsBackground4,u=e.length>0?e.map(Pt.a):[],s=[o,i,a,c];return kt(b.EventsGrid,{CardComponent:Tt,cards:u,border:n,samesize:r,cardsBackground:s})})),St=n("mtjO"),xt=d.a.createElement;function It(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return At(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(At(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,At(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,At(f,"constructor",s),At(s,"constructor",u),u.displayName="GeneratorFunction",At(s,o,"GeneratorFunction"),At(f),At(f,o,"Generator"),At(f,r,(function(){return this})),At(f,"toString",(function(){return"[object Generator]"})),(It=function(){return{w:i,m:p}})()}function At(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(At=function(t,e,n,r){function i(e,n){At(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:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function Lt(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 Dt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Lt(Object(n),!0).forEach((function(e){Object(f.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ft(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 Rt=function(t){return xt(b.EventCard,Object(l.a)({LinkComponent:bt.a},t))},Nt=function(t){function e(t){var n;return Object(i.a)(this,e),(n=Ft(this,e,[t])).state={events:[],loading:!1},n}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentDidMount",value:function(){var t=Object(r.a)(It().m((function t(){var e,n,r,o;return It().w((function(t){for(;;)switch(t.n){case 0:return e=this.props,n=e.regioni,r=e.owners,this.setState(Dt(Dt({},this.state),{},{loading:!0})),t.n=1,Object(St.b)(n,r);case 1:o=t.v,this.setState(Dt(Dt({},this.state),{},{events:o,loading:!1}));case 2:return t.a(2)}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"render",value:function(){var t=this.props,e=t.border,n=t.samesize,r=t.cardsBackgroun
1d1,o=t.cardsBackground2,i=t.cardsBackground3,a=t.cardsBackground4,c=this.state,u=c.loading,s=c.events,l=s.length?s.map(Pt.a):[],f=[r,o,i,a];return xt(d.a.Fragment,null,u&&xt(b.Loading,null),xt(b.EventsGrid,{CardComponent:Rt,cards:l,border:e,samesize:n,cardsBackground:f}))}}])}(d.a.Component),Gt=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,Object(E.d)([{prop:"border",label:"Bordo",type:"multiple",options:["true:MOSTRA","false:NASCONDI"]},{prop:"samesize",label:"Dimensione Cards",type:"multiple",options:["true:TUTTE UGUALI","false:DEFAULT"]},{prop:"regioni",type:"api",singleChoice:!0,resource:"regioni",label:"Seleziona regione"},{prop:"owners",type:"api",resource:"owners",label:"Seleziona delegazioni",pushZeroToValue:!0},{label:"Sfondo Card 1",prop:"cardsBackground1",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]},{label:"Sfondo Card 2",prop:"cardsBackground2",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]},{label:"Sfondo Card 3",prop:"cardsBackground3",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]},{label:"Sfondo Card 4",prop:"cardsBackground4",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]}]),E.e,Object(P.a)("regioni"),Object(P.a)("owners"))(Nt),Mt=d.a.createElement,Bt=function(t){return Mt(b.ListCard,Object(l.a)({LinkComponent:bt.a},t))},zt=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,Object(E.d)([{prop:"data",type:"api",resource:"news",exact:3,label:"Seleziona news"},{prop:"hasMobileLiteLayout",type:"boolean"}]),E.e,Object(P.a)("news"))((function(t){var e=t.resources,n=t.hasMobileLiteLayout,r=e.filter((function(t){return t})).length>0?e.map(W.a):[];return Mt(b.ListOfNews,{hasMobileLiteLayout:n,CardComponent:Bt,cards:r})})),Ut=d.a.createElement;function Ht(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 qt=v()().publicRuntimeConfig.PLATFORM,Wt=function(t){return Ut(b.ListCard,Object(l.a)({LinkComponent:bt.a},t))},Vt=function(t){function e(t){var n;return Object(i.a)(this,e),(n=Ht(this,e,[t])).state={items:[],hasMore:!1,currentPage:1},n.loadMore=n.loadMore.bind(n),n.updateGrid=n.updateGrid.bind(n),n.updateGrid(t),n}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentWillReceiveProps",value:function(t){this.updateGrid(t)}},{key:"updateGrid",value:function(t){var e=this;if("string"!==typeof t.itemsType&&t.itemsType&&t.itemsType.length){var n=t.itemsType[0].split("|")[0]==="".concat(qt,"/news/categorie")?"categoria":"tags",r=t.itemsType.map((function(t){return"".concat(n,".id[]=").concat(t.split("|")[1])})).join("&");Object(V.c)("?with=tags,categoria&page=".concat(this.state.currentPage,"&limit=").concat(t.limit,"&&").concat(r)).then((function(n){e.setState({items:1===e.state.currentPage?n.data:e.state.items.concat(n.data),hasMore:t.limit&&parseInt(n.total)-parseInt(n.to)>0,api:t.itemsType})}))}else this.setState({items:[],hasMore:!1,currentPage:1,api:t.itemsType})}},{key:"loadMore",value:function(){var t=this;this.setState({currentPage:this.state.currentPage+1},(function(){return t.updateGrid(t.props)}))}},{key:"render",value:function(){var t=this.state,e=t.items,n=t.hasMore,r=this.props.hasMobileLiteLayout,o=e.filter((function(t){return t})).length>0?e.map(W.a):[];return Ut("div",null,Ut(b.ListOfNews,{hasMobileLiteLayout:r,CardComponent:Wt,cards:o}),n&&Ut(Yt,null,Ut(b.Button,{centered:!0,onClick:this.loadMore},"MOSTRA ALTRI")))}}])}(p.Component),Kt=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,Object(E.d)([{prop:"limit",label:"Numero di news da mostrare"},{prop:"itemsType",label:"Selezione flusso",type:"apiChooser",options:[{option:"".concat(qt,"/news/categorie||CATEGORIE"),displayName:"descrizione"},{option:"".concat(qt,"/tags?has=news||TAG"),displayName:"tag"}],initialValue:"".concat(qt,"/news/categorie"),api:{prop:"data",resource:"apiChooser"}},{prop:"hasMobileLiteLayout",type:"boolean"}]),E.e,Object(P.a)("apiChooser"))(Vt),Yt=A.d.div.withConfig({displayName:"ListOfNewsWithApiChooser__ButtonPadder",componentId:"sc-xcl8tf-0"})(["padding-top:2rem;"]),Qt=n("K5XM");function Jt(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return Xt(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&
1(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(Xt(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Xt(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,Xt(f,"constructor",s),Xt(s,"constructor",u),u.displayName="GeneratorFunction",Xt(s,o,"GeneratorFunction"),Xt(f),Xt(f,o,"Generator"),Xt(f,r,(function(){return this})),Xt(f,"toString",(function(){return"[object Generator]"})),(Jt=function(){return{w:i,m:p}})()}function Xt(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(Xt=function(t,e,n,r){function i(e,n){Xt(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:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function $t(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Zt(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function Zt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function te(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 ee(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?te(Object(n),!0).forEach((function(e){Object(f.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ne=v()().publicRuntimeConfig.PLATFORM,re="".concat(ne,"/testimonials?with=ldc.luogo,ldc.media&orderby=cognome&limit=100"),oe="".concat(ne,"/luoghi?with=ldc,ldc.media,rank,classifiche,tipologia,comune,media,provincia,regione&has=tipologia,ldc&tipologia.fl_ldc=1"),ie=function(t){return h.a.get(t?"".concat(re,"&id_ldc=").concat(t):re).then((function(t){return t.data.data.map((function(t){return ee(ee({},t),{},{url_foto:Object(Qt.b)(t.url_foto)})}))}))},ae=function(){var t=Object(r.a)(Jt().m((function t(e){var n,r,o,i,a,c,u,s,l;return Jt().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,ie(e);case 1:n=t.v,r=[],o=$t(n);try{for(o.s();!(i=o.n()).done;)if((a=i.value).ldc){c=$t(a.ldc);try{for(c.s();!(u=c.n()).done;)s=u.value,r.push(s.id_luogo)}catch(p){c.e(p)}finally{c.f()}}}catch(p){o.e(p)}finally{o.f()}return t.n=2,f=r,h.a.get("".concat(oe,"&limit=100&").concat(f.map((function(t){return t&&"id[]=".concat(t)})).join("&"))).then((function(t){return t.data.data}));case 2:return l=t.v,t.a(2,{testimonials:n,luoghi:l})}var f}),t)})));return function(e){return t.apply(this,arguments)}}(),ce=n("ezIv"),ue=n("YY8h"),se=d.a.createElement;function le(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return fe(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&
1(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(fe(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,fe(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,fe(f,"constructor",s),fe(s,"constructor",u),u.displayName="GeneratorFunction",fe(s,o,"GeneratorFunction"),fe(f),fe(f,o,"Generator"),fe(f,r,(function(){return this})),fe(f,"toString",(function(){return"[object Generator]"})),(le=function(){return{w:i,m:p}})()}function fe(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(fe=function(t,e,n,r){function i(e,n){fe(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:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function pe(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 de=function(t){function e(t){var n;return Object(i.a)(this,e),(n=pe(this,e,[t])).state={testimonials:[],luoghi:[]},n}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentDidMount",value:function(){var t=Object(r.a)(le().m((function t(){var e,n,r,o,i;return le().w((function(t){for(;;)switch(t.p=t.n){case 0:return e=this.props.id_ldc,t.p=1,t.n=2,ae(e);case 2:n=t.v,r=n.testimonials,o=n.luoghi,this.setState({testimonials:r,luoghi:o}),t.n=4;break;case 3:t.p=3,i=t.v,console.error("[ListOfTestimonialsWithVote] caricamento testimonial fallito:",i);case 4:return t.a(2)}}),t,this,[[1,3]])})));return function(){return t.apply(this,arguments)}}()},{key:"render",value:function(){var t=this.props,e=t.title,n=t.subtitle,r=this.state,o=r.testimonials,i=r.luoghi;return se(d.a.Fragment,null,e&&se(b.FasciaTitle,{title:e}),n&&se("div",{className:"ContactForm-form__text"},se(b.RichText,{text:n})),se(b.ListOfTestimonials,{testimonials:o,luoghi:i.map(ce.l),VoteCardComponent:ue.a,hideRankingData:!0}))}}])}(p.Component),he=Object(O.a)(E.c,Object(E.a)(),Object(E.d)([{prop:"title",label:"Titolo"},{prop:"subtitle",label:"Sottotitolo",type:"WYSIWYG"},{prop:"id_ldc",label:"ID LDC",type:"string"}]))(de),be=n("wgY5"),ye=n.n(be),ge=(n("xD/0"),n("luEP")),me=n("prCu"),ve=n.n(me),Oe=n("lF6m"),je=n("6780"),we=n("Ehz4"),_e=d.a.createElement;function Ee(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 Pe=function(t){function e(){var t;return Object(i.a)(this,e),t=Ee(this,e),Object(f.a)(t,"showThankYou",(function(){t.setState({showThankYou:!0}),setTimeout((function(){return t.setState({showThankYou:!1})}),7e3)})),t.state={showThankYou:!1},t}return Object(s.a)(e,t),Object(a.a)(e,[{key:"render",value:function(){var t=this,e=this.state.showThankYou,n=this.props,r=n.id,o=n.title,i=n.id_comitato,a=n.slug,c=n.handleCardClick,u=n.progress,s=n.showVoteButton,f=void 0===s||s;return _e(we.a,{id:r,title:o,id_comitato:i,slug:a},(function(n){var o=n.status,i=n.errorMessage,s=n.requestVote,p=n.resendEmail,h=n.showShareOverlay,y=n.user,g=n.voteUser;return _e(b.CardClassificaLDC,Object(l.a)({},t.props,{onClick:"function"===typeof c?function(){return c({slug:a,id:r})}:null,renderButton:function(){return _e(d.a.Fragment,null,"VOTED"===o&&u&&_e(ke,null,_e(Te,null,_e(Ce,null,"Scheda luogo completata al ",_e("strong",null,u,"%")),_e(Se,{progress:u}))),f&&_e(d.a.Fragment,null,y&&y.id&&"VOTED"===o&&(e?_e(xe,null,"Grazie per aver votato!"):_e(b.Button,{onClick:h},_e("span",null,"condividi"))),(!o||"FAILED"===o)&&_e(b.Button,{onClick:function(){t.showThankYou(),s()}},_e("span",null,"Vota con 1 clic")),(!y||!y.id)&&g&&g.email&&"VOTED"===o&&(e?_e(xe,null,"Grazie per aver votato!"):_e(b.Button,{onClick:h},_e("span",null,"condividi"))),(!y||!y.id)&&g&&g.email&&"VOTE_PENDING"===o&&_e("div",null,_e(Ae,null,"Controlla la tua email per confermare il voto"),_e(Le,null,_e("a",{onClick:function(){return p()}},"reinvia email"))),"LOADING"===o&&_e(b.Button,{disabled:!0},_e("span",null,"loading")),"FAILED"===o&&i&&_e(Ie,{dangerouslySetInnerHTML:{__html:"\n ".concat(i,"\n ")}}),"FAILED"===o&&!i&&_e(Ie,null,"Salvataggio fallito. Riprova pi\xf9 tardi")))}}))}))}}])}
1(d.a.Component),ke=(A.d.div.withConfig({displayName:"CardClassificaLDC__Socials",componentId:"sc-1txuk2e-0"})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;height:3.5rem;"]),A.d.div.withConfig({displayName:"CardClassificaLDC__SocialsText",componentId:"sc-1txuk2e-1"})(["color:",";font-size:0.8rem;"],(function(t){return t.theme.colors.darkGrey})),A.d.div.withConfig({displayName:"CardClassificaLDC__SocialFaces",componentId:"sc-1txuk2e-2"})(["display:flex;"]),A.d.div.withConfig({displayName:"CardClassificaLDC__Face",componentId:"sc-1txuk2e-3"})(["height:40px;width:40px;position:relative;border-radius:50%;border:2px solid #fff;overflow:hidden;",";",";background-image:url(",");background-position:center center;background-size:cover;"],(function(t){return t.first&&"transform: translate(25%,0)"}),(function(t){return t.last&&"transform: translate(-25%,0)"}),(function(t){return t.url})),A.d.div.withConfig({displayName:"CardClassificaLDC__Progress",componentId:"sc-1txuk2e-4"})(["margin-bottom:1rem;height:3.5rem;display:flex;align-items:center;width:100%;"])),Te=A.d.div.withConfig({displayName:"CardClassificaLDC__ProgressInner",componentId:"sc-1txuk2e-5"})(["width:100%;"]),Ce=A.d.div.withConfig({displayName:"CardClassificaLDC__ProgressText",componentId:"sc-1txuk2e-6"})(["color:",";font-size:0.8rem;text-align:left;margin-bottom:0.5rem;"],(function(t){return t.theme.colors.darkGrey})),Se=A.d.div.withConfig({displayName:"CardClassificaLDC__ProgressBar",componentId:"sc-1txuk2e-7"})(["position:relative;height:0.25rem;background-color:",';&:before{content:"";position:absolute;left:0;width:',"%;height:100%;background-color:#e74f30;}"],(function(t){return t.theme.colors.lightGrey}),(function(t){return t.progress})),xe=A.d.span.withConfig({displayName:"CardClassificaLDC__Message",componentId:"sc-1txuk2e-8"})(["font-weight:600;color:",";display:block;padding:0.875rem 0;letter-spacing:0.07em;"],(function(t){return t.theme.colors.orange})),Ie=A.d.div.withConfig({displayName:"CardClassificaLDC__Failed",componentId:"sc-1txuk2e-9"})(["margin-top:0.5rem;color:red;font-size:0.75rem;letter-spacing:0.075em;"]),Ae=A.d.span.withConfig({displayName:"CardClassificaLDC__EmailPendingMessage",componentId:"sc-1txuk2e-10"})(["font-weight:600;color:",";display:block;padding:0.875rem 0 0.3rem 0;letter-spacing:0.07em;"],(function(t){return t.theme.colors.orange})),Le=A.d.small.withConfig({displayName:"CardClassificaLDC__EmailPendingResendLink",componentId:"sc-1txuk2e-11"})(["color:",";display:block;padding:0;text-decoration:underline;cursor:pointer;"],(function(t){return t.theme.colors.orange})),De=Pe,Fe=n("pqH2"),Re=["luogo","nr_voti_totali","votes"],Ne=d.a.createElement;function Ge(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 Me(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ge(Object(n),!0).forEach((function(e){Object(f.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Be(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 ze(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return Ue(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&
1(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(Ue(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Ue(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,Ue(f,"constructor",s),Ue(s,"constructor",u),u.displayName="GeneratorFunction",Ue(s,o,"GeneratorFunction"),Ue(f),Ue(f,o,"Generator"),Ue(f,r,(function(){return this})),Ue(f,"toString",(function(){return"[object Generator]"})),(ze=function(){return{w:i,m:p}})()}function Ue(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(Ue=function(t,e,n,r){function i(e,n){Ue(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:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}var He=(new Date).getFullYear(),qe=v()().publicRuntimeConfig.PLATFORM,We=function(t,e){if(t.nr_anno)return{id:t.nr_anno,label:"Classifica ".concat(t.nr_anno),type:"year"};if(t.titolo){var n,r,o=t.id;return t.censimento_classifica&&t.censimento_classifica.length&&(t=t.censimento_classifica[0]),{id:o,label:t.titolo,type:"selezione",id_selezione:null!==(n=t.id_selezione)&&void 0!==n?n:void 0,id_ldc:null!==(r=t.id_ldc)&&void 0!==r?r:void 0,is_id_ldc_current:t.id_ldc==e,order:t.order_}}},Ve=function(){var t=Object(r.a)(ze().m((function t(){var e,n,r,i;return ze().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,Object(Fe.d)("?groupby=nr_anno&orderby=nr_anno-");case 1:return e=t.v,t.n=2,Object(Fe.s)();case 2:return n=t.v,r=n.id_ldc_current,t.n=3,Object(Fe.r)();case 3:return i=t.v,t.a(2,[].concat(Object(o.a)(i.map((function(t){return We(t,r)}))),Object(o.a)(e.slice(0,1).map((function(t){return We(t,r)}))),Object(o.a)(e.slice(1).map((function(t){return We(t,r)})))))}}),t)})));return function(){return t.apply(this,arguments)}}(),Ke=function(){var t=Object(r.a)(ze().m((function t(){var e;return ze().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,h.a.get("".concat(qe,"/regioni?limit=30&orderby=nome")).then((function(t){return t.data.data}));case 1:return e=t.v,t.a(2,[{id:0,label:"Tutt'Italia",type:"regione"}].concat(e.map((function(t){return{id:t.id,label:t.nome,type:"regione"}}))))}}),t)})));return function(){return t.apply(this,arguments)}}(),Ye={label:"Classifica 2026",id:2026,isActive:!0},Qe="/il-fai/grandi-campagne/i-luoghi-del-cuore/classifica",Je=function(t){if(!t)return null;ye.a.locale("it");var e=ye()(t),n=e.format("HH:mm"),r=e.format("DD/MM/YYYY");return"Classifica web aggiornata alle ore ".concat(n," del ").concat(r,'<br />\nI voti vengono registrati in tempo reale ma l\u2019aggiornamento in classifica pu\xf2 richiedere fino a 60 minuti.<br />\nPer le classifiche regionali, clicca il men\xf9 a tendina \u201cTutt\u2019Italia\u201d e seleziona la regione. Per le classifiche locali <a href="/il-fai/grandi-campagne/i-luoghi-del-cuore/cerca-un-luogo/">clicca qui</a> e cerca una localit\xe0, un comune o una provincia.')},Xe=function(t){var e=t.filters,n=window.location.search.slice(1),r=ve.a.parse(n);return r.anno=r.anno?parseInt(r.anno):null,ge.object().shape({anno:ge.mixed().oneOf([].concat(Object(o.a)(e),[null])),web:ge.mixed()}).test("2018 can have web filter","",(function(t){var e=t.anno;return!t.web||e===He})).validate(r)},$e=function(t){function e(t){var n;return Object(i.a)(this,e),(n=Be(this,e,[t])).state={items:t.items||[],currentPage:1,currentFilter:He,currentRegion:0,availableFilters:[Ye],availableRegions:[],showLoadMore:!1,isFilteredByWeb:!1,isLoading:!0,lastUpdate:!1,isDDVisible:!1,isRegionSelectOpen:!1},n.handleChangeYearFilter=n.handleChangeYearFilter.bind(n),n.handleChangeRegionFilter=n.handleChangeRegionFilter.b
1ind(n),n.handleChangeFilterByType=n.handleChangeFilterByType.bind(n),n.handleLoadMore=n.handleLoadMore.bind(n),n.toggleDDPanel=n.toggleDDPanel.bind(n),n.toggleRegionPanel=n.toggleRegionPanel.bind(n),n.search=n.search.bind(n),n}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentDidMount",value:function(){var t=Object(r.a)(ze().m((function t(){var e,n,r,i,a,c;return ze().w((function(t){for(;;)switch(t.n){case 0:return e=this.state.availableFilters,t.n=1,h.a.get("".concat(qe,"/settings")).then((function(t){return t.data.ldc_classifica_last_update}));case 1:return n=t.v,t.n=2,Ve();case 2:return r=t.v,i=[].concat(Object(o.a)(e),Object(o.a)(r.filter((function(t){return e.map((function(e){return e.id!==t.id})).reduce((function(t,e){return t&&e}),!0)})))),t.n=3,Xe({filters:(u=i,u.map((function(t){return t.nr_anno||t.id})))}).catch((function(){return window.location.href=window.location.pathname}));case 3:return a=t.v,t.n=4,Ke();case 4:c=t.v,this.setState({currentFilter:a.anno||He,currentRegion:Number(a.regione||0),availableFilters:i,availableRegions:c,lastUpdate:Je(n)}),this.search();case 5:return t.a(2)}var u}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"handleChangeRegionFilter",value:function(t){var e=this,n=this.state.isFilteredByWeb;"number"!==typeof t?this.setState({isRegionSelectOpen:!1}):this.setState({items:[],currentPage:1,showLoadMore:!1,isLoading:!0,isRegionSelectOpen:!1,currentRegion:t,isFilteredByWeb:t===He&&n},(function(){window.history.pushState(null,"","".concat(Qe,"?").concat(ve.a.stringify(e.getFilters()))),e.search()}))}},{key:"handleChangeYearFilter",value:function(t){var e=this,n=this.state.isFilteredByWeb;t?this.setState({items:[],currentPage:1,showLoadMore:!1,isLoading:!0,isDDVisible:!1,currentFilter:t,isFilteredByWeb:t===He&&n},(function(){window.history.pushState(null,"","".concat(Qe,"?").concat(ve.a.stringify(e.getFilters()))),e.search()})):this.setState({isDDVisible:!1})}},{key:"getFilters",value:function(){var t=this.state,e=t.currentFilter,n=t.isFilteredByWeb,r=t.currentRegion,o={};return r&&(o.regione=r),e!==He&&(o.anno=e),!0===n&&(o.web=n),o}},{key:"handleChangeFilterByType",value:function(){var t=this;this.setState({items:[],currentPage:1,showLoadMore:!1,isFilteredByWeb:!this.state.isFilteredByWeb,isLoading:!0},(function(){t.search(),window.history.pushState(null,"","".concat(Qe,"?").concat(ve.a.stringify(t.getFilters())))}))}},{key:"handleLoadMore",value:function(){this.prevY=document.documentElement.scrollTop;var t=this.state.items;this.lastItemId=t[t.length-1].id,this.setState({isLoading:!0,currentPage:this.state.currentPage+1},this.search)}},{key:"toggleDDPanel",value:function(){var t=this.state.isDDVisible;this.setState({isDDVisible:!t})}},{key:"toggleRegionPanel",value:function(){this.setState({isRegionSelectOpen:!this.state.isRegionSelectOpen})}},{key:"search",value:function(){var t=Object(r.a)(ze().m((function t(){var e,n,r,i,a,c,u,s,l,f,p,d,b,y,g,m,v,O=this;return ze().w((function(t){for(;;)switch(t.n){case 0:return e=this.state,n=e.availableFilters,r=e.availableRegions,i=e.currentFilter,a=e.currentPage,c=e.currentRegion,u=e.items,s=e.isFilteredByWeb,l=n.find((function(t){return t.id===i})),r.find((function(t){return t.id===c})),f="page=".concat(a),p="",i===He||i===n[0].id?(d=s?"rank-online":"rank",p="luoghi?with=".concat(s?"rank_online":"rank",",tipologia,media,ldc.media&orderby=").concat(d,"&").concat(f,"&has=rank")):l.is_id_ldc_current&&(p="luoghi/ranks?".concat(f,"&has=luogo&with=luogo,luogo.classifiche,luogo.regione,luogo.ldc,luogo.ldc.media,luogo.selezioni,luogo.tipologia&luogo.selezioni.id=").concat(i)),0!==c&&(i===He||i===n[0].id?p+="®ione.id=".concat(c):p+="&luogo.regione.id=".concat(c)),b=[],t.n=1,j=p,h.a.get("".concat(qe,"/").concat(j)).then((function(t){return t.data}));case 1:y=t.v,g=y.data,m=y.current_page,v=y.last_page,b=i===He||i===n[0].id?g.map((function(t){return Me(Me({},t),{},{rank:s?t.rank_online:t.rank})})):g.map((function(t){var e=t.luogo,n=t.nr_voti_totali,r=t.votes,o=Object(vt.a)(t,Re);return Me(Me({},e),{},{rank:Me(Me({},o),{},{votes:r||n})})})),this.setState({items:[].concat(Object(o.a)(u),Object(o.a)(b)),showLoadMore:m<v,isLoading:!1},(function(){O.lastItemId?(document.querySelector("[data-id='"+O.lastItemId+"']").scrollIntoView(),window.scrollBy(0,-200)):document.documentElement.scrollTop=O.prevY}));case 2:return t.a(2)}var j}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"render",value:function(){var t=this,e=this.state,r=e.currentFilter,o=e.items,i=Object(ce.i)();return Ne(je.a,{getPage:n.e(29).then(n.bind(null,"Wj6v"))},(function(e){var n=e.handleCardClick;return Ne(d.a.Fragment,null,Ne(Oe.a,Object(l.a)({handleCardClick:n,CardClassificaLDC:De,handleChangeYearFilter:t.handleChangeYearFilter,handleChangeRegionFilter:t.handleChangeRegionFilter,handleChangeFilterByType:t.handleChangeFilterByType,toggleRegionPanel:t.toggleRegionPanel,toggleDDPanel:t.toggleDDPanel,handleLoadMore:t.handleLoadMore,showWebVotes:r===He,showExtraText:1===r,showWholeText:(r===He||1===r)&&i,currentFilterExtraText:1===r?tn:null,alertInnerHtmlText:r===He?i?'<p style="font-weight: bold; margin-bottom: 30px;">\n Il censimento \xe8 aperto! Vota e fai votare i tuoi luoghi del cuore: hai tempo fino al 15 dicembre 2026. La classifica definitiva verr\xe0 pubblicata a febbraio 2027.\n</p>':Ze:null,endOfCampaign:!i},t.state,{items:o.map(ce.l)})))}))}}])}(d.a.Component),Ze='<strong>Stai visualizzando la classifica definitiva del dodicesimo Censimento annunciata il 12 giugno 2025.</strong><br/><br/>\nPer le classifiche regionali, clicca il men\xf9 a tendina \u201cTutt\u2019Italia\u201d e seleziona la regione.<br/>\nPer le classifiche locali <a href="https://fondoambiente.it/il-fai/grandi-campagne/i-luoghi-del-cuore/cerca-un-luogo">clicca qui</a> e cerca una localit\xe0, un comune o una provincia. Potrai anche filtrare per tipologia di luogo.<br/><br/>\n',tn=Ne(d.a.Fragment,null,"Sono luoghi d\u2019acqua quelli che non potrebbero esistere senza l\u2019acqua stessa, la quale non rappresenta solo un elemento di contesto, bens\xec caratterizza in modo preponderante l\u2019essenza del luogo.",Ne("br",null),Ne("br",null),Ne("strong",null,"Scopri la classifica finale della nona edizione del censimento.")),en=$e,nn=n("lTvC"),rn=n("r04N"),on=n("q0ET"),an=d.a.createElement;function cn(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 un(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?cn(Object(n),!0).forEach((function(e){Object(f.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function sn(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 ln=function(t){function e(t){var n;return Object(i.a)(this,e),(n=sn(this,e,[t])).state={luoghi:[],status:"LOADING",canLoadMore:!0,currentPage:1},n.fetchAndUpdate=n.fetchAndUpdate.bind(n),n}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentDidMount",value:function(){"function"===typeof this.props.update?this.props.update(this.fetchAndUpdate):this.fetchAndUpdate()}},{key:"componentWillReceiveProps",value:function(t){var e=this.props.selezioniID;t.selezioniID&&t.selezioniID!==e&&this.fetchAndUpdate()}},{key:"fetchAndUpdate",value:function(){var t=this,e=this.props,n=e.fetchPromise,r=e.pagination,i=this.state,a=i.currentPage,c=i.luoghi;this.setState({status:"LOADING"},(function(){return n(un(un({},t.props),{},{page:a})).then((function(e){var n=a+1;t.setState({luoghi:r?[].concat(Object(o.a)(c),Object(o.a)(e)):e,status:"LOADED",currentPage:r?n:1,canLoadMore:!!r&&e.length>0})}))}))}},{key:"render",value:function(){var t=this.state,e=t.luoghi,n=t.canLoadMore,r=t.status,o=this.props,i=o.moreUrl,a=o.pagination,c=o.paginationType;return an(d.a.Fragment,null,this.props.render({luoghi:e,moreUrl:i,status:r}),"LOADING"===r&&an(rn.a,{boxed:!0,height:300}),a&&"BUTTON"!==c&&n&&an(nn,{onEnter:this.fetchAndUpdate}),a&&"BUTTON"===c&&n&&an(fn,null,an(on.a,{centered:!0,onClick:this.fetchAndUpdate,disabled:"LOADING"===r},"LOADING"===r?"CARICO...":"MOSTRA ALTRI")))}}])}(d.a.Component),fn=A.d.div.withConfig({displayName:"FetchLuoghi__ButtonPadder",componentId:"sc-1k1kqiz-0"})(["padding:2rem 0;"]),pn=ln,dn=n("c63D"),hn=d.a.createElement;function bn(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 yn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bn(Object(n),!0).forEach((function(e){Object(f.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var gn=function(t){t.page;return Object(Fe.l)({limit:100,query:"ldc.fl_intervento=true&orderby=rank"}).then((function(t){return t.data})).catch((function(t){return[]}))},mn=function(t){var e=t.ldc,n=e.media,r=e.titolo,o=t.id,i=t.slug,a=t.localita_web;return{_id:o,picture:Object(ce.e)(n),target:"/p/luogo/?id=".concat(o,"&ldc#descrizione_intervento"),title:r,localita_web:a,slug:i}},vn=Object(O.a)(E.c,Object(E.a)(),Object(E.b)(),E.e)((function(){return hn(pn,{fetchPromise:gn,render:function(t){var e=t.luoghi;return hn(dn.a,null,(function(t){var n=t.handleCardClick;return hn(b.GridSlideGallery,{images:e.map(mn).map((function(t){return yn(yn({},t),{},{onClick:n})}))})}))}})})),On=d.a.createElement,jn=function(t){var e=t.subtitle,n=t.backgroundImage,r=t.title,o=Object(ce.i)(),i="";i=e||"L\u2019undicesima edizione del Censimento si \xe8 conclusa il 15 dicembre 2022. I vincitori verranno annunciati a febbraio 2023. Naviga il sito e scopri la classifica provvisoria.";var a=n,c=r;return On(z,Object(l.a)({},t,{searchUrl:"/il-fai/grandi-campagne/i-luoghi-del-cuore/cerca-un-luogo",withIcon:!0,placeholder:"Cerca un luogo per nome o localit\xe0",buttonLabel:o?"Vota":"Cerca",subtitle:i,backgroundImage:a,title:c}))};jn.fields=z.fields;var wn=jn,_n=["resources"],En=d.a.createElement,Pn=function(t){return En(ue.a,Object(l.a)({},t,{onClick:function(){return t.handleCardClick({slug:t.slug,id:t.id})}}))},kn=Object(O.a)(E.c,E.e,Object(E.a)(),Object(E.b)(),Object(E.d)([{prop:"data",type:"api",resource:"ldc",exact:4,label:"Seleziona luoghi LDC"}]),Object(P.a)("ldc"))((function(t){var e=t.resources,n=(Object(vt.a)(t,_n),e.length>0?e.filter((function(t){return"undefined"!==typeof t})).map(ce.l):[]);return En(b.ListOfCards,{CardComponent:Pn,cards:n})})),Tn=d.a.createElement,Cn=function(t){return Tn(b.EventCard,Object(l.a)({LinkComponent:bt.a},t))},Sn=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,Object(E.d)([{prop:"border",label:"Bordo",type:"multiple",options:["true:MOSTRA","false:NASCONDI"]},{prop:"samesize",label:"Dimensione Cards",type:"multiple",options:["true:TUTTE UGUALI","false:DEFAULT"]},{prop:"data",type:"api",resource:"eventildc",exact:4,label:"Seleziona eventi"}
1,{label:"Sfondo Card 1",prop:"cardsBackground1",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]},{label:"Sfondo Card 2",prop:"cardsBackground2",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]},{label:"Sfondo Card 3",prop:"cardsBackground3",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]},{label:"Sfondo Card 4",prop:"cardsBackground4",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]}]),E.e,Object(P.a)("eventildc"))((function(t){var e=t.resources,n=t.border,r=t.samesize,o=t.cardsBackground1,i=t.cardsBackground2,a=t.cardsBackground3,c=t.cardsBackground4,u=e.length>0?e.map(ce.m):[],s=[o,i,a,c];return Tn(b.EventsGrid,{CardComponent:Cn,cards:u,border:n,samesize:r,cardsBackground:s})}));function xn(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 In=function(t){function e(t){var n;return Object(i.a)(this,e),(n=xn(this,e,[t])).timeoutId=null,n.setRefresh=n.setRefresh.bind(n),n.cancelRefresh=n.cancelRefresh.bind(n),n}return Object(s.a)(e,t),Object(a.a)(e,[{key:"setRefresh",value:function(t){var e=this,n=this.props.timeout;return this.cancelRefresh(),this.timeoutId=n&&setTimeout((function(){e.setRefresh(t)}),n),t()}},{key:"componentWillUnMount",value:function(){this.cancelRefresh()}},{key:"cancelRefresh",value:function(){clearTimeout(this.timeoutId)}},{key:"render",value:function(){return this.props.children({setRefresh:this.setRefresh,cancelRefresh:this.cancelRefresh})}}])}(d.a.PureComponent),An=n("9SJ6"),Ln=d.a.createElement;function Dn(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 Fn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Dn(Object(n),!0).forEach((function(e){Object(f.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Rn=function(t){return Ln(pn,Object(l.a)({},t,{render:function(t){var e=t.luoghi;t.status;return Ln(An.a,{CardComponent:ue.a,cards:e.map((function(t){return Fn(Fn({},Object(ce.l)(t)),{},{target:"_blank"})}))})}}))},Nn=["selezioniID","displayTitle","numberOfLuoghi"],Gn=d.a.createElement,Mn=function(t){var e=t.selezioniID,n=void 0===e?0:e,r=t.limit,o=void 0===r?4:r;return Object(Fe.l)({limit:o,query:"&selezioni.id=".concat(n,"&orderby=rank&ldc.media.pivot.position=TOP")}).then((function(t){return t.data}))},Bn=Object(O.a)(E.c,E.e,Object(E.a)(),Object(E.b)(),Object(E.d)([{prop:"selezioniID",label:"ID della selezione"},{prop:"numberOfLuoghi",label:"Numero di luoghi",type:"number"}]))((function(t){var e=t.selezioniID,n=(t.displayTitle,t.numberOfLuoghi),r=void 0===n?4:n,o=Object(vt.a)(t,Nn);return Gn(In,{timeout:3e5},(function(t){var n=t.setRefresh;return Gn(Rn,Object(l.a)({},o,{update:function(t){return n(t)},selezioniID:e,limit:r,fetchPromise:Mn}))}))})),zn=d.a.createElement,Un=function(t){var e=t.page;return Object(Fe.l)({page:e,query:"ldc.fl_intervento=true&limit=15&orderby=rank"}).then((function(t){return t.data})).catch((function(t){return[]}))},Hn=Object(O.a)(E.c,E.e,Object(E.a)(),Object(E.b)())((function(t){return zn(Rn,Object(l.a)({},t,{fetchPromise:Un,pagination:!0}))})),qn=d.a.createElement,Wn=function(){return Object(Fe.l)({limit:4,query:"orderby=rank-general"}).then((function(t){return t.data})).catch((function(t){return[]}))},Vn=Object(O.a)(E.c,E.e,Object(E.a)(),Object(E.b)())((function(t){return qn(In,{timeout:3e5},(function(e){var n=e.setRefresh;return qn(Rn,Object(l.a)({},t,{update:function(t){return n(t)},fetchPromise:Wn,moreUrl:"/il-fai/grandi-campagne/i-luoghi-del-cuore/classifica/"}))}))})),Kn=n("oUmF"),Yn=n.n(Kn),Qn=n("WTvm"),Jn=n.n(Qn),Xn=n("X0EA"),$n=n.n(Xn),Zn=n("Q5fB"),tr=n("8CSu"),er=n("77RZ"),nr=["facebookUserId"],rr=d.a.createElement;function or(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return ir(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&
1(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(ir(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,ir(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,ir(f,"constructor",s),ir(s,"constructor",u),u.displayName="GeneratorFunction",ir(s,o,"GeneratorFunction"),ir(f),ir(f,o,"Generator"),ir(f,r,(function(){return this})),ir(f,"toString",(function(){return"[object Generator]"})),(or=function(){return{w:i,m:p}})()}function ir(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(ir=function(t,e,n,r){function i(e,n){ir(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:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function ar(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 cr=v()().publicRuntimeConfig.PLATFORM,ur=function(t){function e(){var t;return Object(i.a)(this,e),(t=ar(this,e)).state={page:1,ids:[]},t.getVotedByFriends=t.getVotedByFriends.bind(t),t}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.tokenId,n=t.votes;this.getVotedByFriends({tokenId:e,votes:n})}},{key:"getVotedByFriends",value:function(){var t=Object(r.a)(or().m((function t(e){var n,r,i,a=this;return or().w((function(t){for(;;)switch(t.n){case 0:return n=e.tokenId,r=e.votes,t.n=1,h.a.get("".concat(cr,"/users/me/friends?with=voti.luogo"),{headers:{Authorization:"Bearer ".concat(n)}}).then((function(t){return t.data.data})).then((function(t){var e=t.reduce((function(t,e){return[].concat(Object(o.a)(t),Object(o.a)(e.voti.map((function(t){return t.luogo})).filter((function(t){return t})).filter((function(t){return!r.find((function(e){return e.id===t.id}))}))))}),[]).map((function(t){return t.id}));if(a.props.sortByFriends){var n=$n()(e);return Jn()(Yn()(e),(function(t){return n[t]})).reverse()}return Yn()(e)})).catch((function(t){return[]}));case 1:i=t.v,this.setState({ids:i});case 2:return t.a(2)}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"render",value:function(){var t=this.props,e=t.numberOfLuoghi,n=t.sortByFriends,r=this.state.ids,o=!n;return r&&0===r.length?rr(b.TitleGroup,{subtitle:"I tuoi amici di Facebook devono ancora votare i loro luoghi del cuore.<br>Invitali tu!"}):rr(Rn,Object(l.a)({},this.props,{pagination:!0,paginationType:"BUTTON",fetchPromise:function(t){var n=t.page;return function(t){var e=t.page,n=void 0===e?1:e,r=t.numberOfLuoghi,o=void 0===r?4:r,i=t.ids,a=t.orderByRank;return i&&0===i.length?Promise.resolve([]):Object(Fe.l)({limit:o,page:n,query:"".concat(a&&"&orderby=rank","&").concat(i.map((function(t){return"id[]=".concat(t)})).join("&"))}).then((function(t){return t.data})).catch((function(t){return[]}))}({numberOfLuoghi:e,page:n,ids:r,orderByRank:o})}}))}}])}(p.Component),sr=Object(O.a)(E.c,E.e,Object(E.a)(),Object(E.b)()),lr=Object(O.a)(Object(w.b)((function(t){return{facebookUserId:Object(Zn.b)(t),tokenId:Object(tr.b)(t),votes:Object(er.b)(t)}})),Object(E.d)([{prop:"numberOfLuoghi",label:"Numero di luoghi",type:"number"}])),fr=sr(ur),pr=lr((function(t){var e=t.facebookUserId,n=Object(vt.a)(t,nr);return e?rr(fr,n):null}));pr.fields=fr.fields;var dr=pr,hr=n("cXXW"),br=n("7U+e"),yr=d.a.createElement,gr=function(t){var e=t.coords,n=e.lat,r=e.lng,o=t.page,i=void 0===o?1:o;return Object(Fe.l)({limit:4,page:i,query:"radius[coords]=".concat(parseFloat(n).toFixed(2),",").concat(parseFloat(r).toFixed(2),"&radius[distance]=10&orderby=rank")}).then((function(t){return t.data}
1)).catch((function(t){return[]}))},mr=Object(O.a)(E.c,E.e,Object(E.a)(),Object(E.b)())((function(t){return yr(hr.a,null,(function(e){var n=e.requestLocation,r=e.coords,o=e.status;return yr(br.a,{coords:r,status:o,requestLocation:n,getLuoghi:gr,CardComponent:ue.a,makeCard:ce.l,fallback:t.fallback})}))})),vr=n("IuyV"),Or=d.a.createElement,jr=function(t){return Or(z,Object(l.a)({},t,{searchUrl:"/il-fai/grandi-campagne/giornate-fai-autunno/i-luoghi-aperti/",placeholder:"Cerca un luogo per nome o localit\xe0",withIcon:!0}))};jr.fields=z.fields;var wr=jr,_r=n("ncWu"),Er=d.a.createElement,Pr=function(t){return Er(b.ListCardWithTooltips,Object(l.a)({LinkComponent:bt.a},t))},kr=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,Object(E.d)([{prop:"data",type:"api",resource:"gfa",exact:3,label:"Seleziona luoghi GFA"}]),E.e,Object(P.a)("gfa"))((function(t){var e=t.resources,n=e.length>0?e.filter((function(t){return"undefined"!==typeof t})).map(_r.f):[];return Er(b.ListOfCards,{CardComponent:Pr,cards:n})})),Tr=d.a.createElement,Cr=function(t){return Tr(z,Object(l.a)({},t,{searchUrl:"/il-fai/grandi-campagne/mattinate-fai-inverno/i-luoghi-aperti/",placeholder:"Cerca un luogo per nome o localit\xe0",withIcon:!0}))};Cr.fields=z.fields;var Sr=Cr,xr=n("es+e"),Ir=d.a.createElement,Ar=function(t){return Ir(b.ListCardWithTooltips,Object(l.a)({LinkComponent:bt.a},t))},Lr=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,Object(E.d)([{prop:"data",type:"api",resource:"mfi",exact:3,label:"Seleziona luoghi MFI"}]),E.e,Object(P.a)("mfi"))((function(t){var e=t.resources,n=e.length>0?e.filter((function(t){return"undefined"!==typeof t})).map(xr.f):[];return Ir(b.ListOfCards,{CardComponent:Ar,cards:n})})),Dr=d.a.createElement,Fr=function(t){return Dr(z,Object(l.a)({},t,{searchUrl:"/sostienici/vantaggi-per-gli-iscritti/fai-per-me/cerca-convenzioni",placeholder:"Cerca per parola chiave o localit\xe0",withIcon:!0}))};Fr.fields=z.fields;var Rr=Fr,Nr=n("Ci+5"),Gr=d.a.createElement,Mr=function(t){return Gr(b.CardConvenzione,Object(l.a)({LinkComponent:bt.a},t))},Br=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,Object(E.d)([{prop:"data",type:"api",resource:"faixme",exact:3,label:"Seleziona convenzioni Faiperme"}]),E.e,Object(P.a)("faixme"))((function(t){var e=t.resources,n=e.length>0?e.filter((function(t){return"undefined"!==typeof t})).map(Nr.e):[];return Gr(b.ListOfCards,{CardComponent:Mr,cards:n})})),zr=n("ZaFK"),Ur=d.a.createElement;function Hr(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return qr(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(qr(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,qr(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,qr(f,"constructor",s),qr(s,"constructor",u),u.displayName="GeneratorFunction",qr(s,o,"GeneratorFunction"),qr(f),qr(f,o,"Generator"),qr(f,r,(function(){return this})),qr(f,"toString",(function(){return"[object Generator]"})),(Hr=function(){return{w:i,m:p}})()}function qr(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(qr=function(t,e,n,r){function i(e,n){qr(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:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function Wr(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 Vr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?Wr(Object(n),!0).forEach((function(e){Object(f.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Kr(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 Yr=function(t){function e(t){var n;return Object(i.a)(this,e),(n=Kr(this,e,[t])).state={luoghiFaiXMe:[],loading:!1},n}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentDidMount",value:function(){var t=Object(r.a)(Hr().m((function t(){var e,n;return Hr().w((function(t){for(;;)switch(t.n){case 0:return e=this.props.id_selezione,this.setState(Vr(Vr({},this.state),{},{loading:!0})),t.n=1,Object(zr.e)(e);case 1:n=t.v,this.setState(Vr(Vr({},this.state),{},{luoghiFaiXMe:n,loading:!1}));case 2:return t.a(2)}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"render",value:function(){var t=this.state,e=t.loading,n=t.luoghiFaiXMe;return Ur(d.a.Fragment,null,e&&Ur(b.Loading,null),Ur(b.ListOfCards,{cards:n.map(Nr.e),CardComponent:function(t){return Ur(b.CardConvenzione,Object(l.a)({LinkComponent:bt.a},t))}}))}}])}(d.a.Component),Qr=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,Object(E.d)([{prop:"id_selezione",type:"api",resource:"faixmeregioni",label:"Scegli una selezione",singleChoice:!0,pushZeroToValue:!0}]),E.e,Object(P.a)("faixmeregioni"))(Yr),Jr=d.a.createElement;function Xr(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return $r(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):($r(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,$r(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,$r(f,"constructor",s),$r(s,"constructor",u),u.displayName="GeneratorFunction",$r(s,o,"GeneratorFunction"),$r(f),$r(f,o,"Generator"),$r(f,r,(function(){return this})),$r(f,"toString",(function(){return"[object Generator]"})),(Xr=function(){return{w:i,m:p}})()}function $r(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}($r=function(t,e,n,r){function i(e,n){$r(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:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function Zr(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 to(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 eo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?to(Object(n),!0).forEach((function(e){Object(f.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):to(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var no=function(t){return Jr(b.ListCard,Object(l.a)({},t,{LinkComponent:bt.a}))},ro=function(t){return eo(eo({},Object(W.a)(t)),{},{content:t&&t.abstract,subtitle:null})},oo=function(t){return eo(eo({},Object(W.a)(t)),{},{thumbnail:{url:t&&t.image_sticky},subtitle:null,supertitle:null,tag:null})},io=function(t){return eo(eo({},Object(W.a)(t)),{},{subtitle:null})},ao=function(t){function e(){var t;return Object(i.a)(this,e),(t=Zr(this,e)).state={sideNews:[],news:[]},t}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentDidMount",value:function(){var t=Object(r.a)(Xr().m((function t(){var e;return Xr().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,Object(V.d)("&id_news_categoria=null|NOT&orderby=dt_news-&limit=6&image_sticky=null|NOT").then((function(t){return t.data}));case 1:e=t.v,this.setState({sideNews:e});case 2:return t.a(2)}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"render",value:function(){var t=this.state.sideNews,e=this.props.resources,n=e.slice(0,2).map(ro),r=e.slice(2).map(io),o=t.map(oo),i=[{supertitle:"RUBRICA",tag:"Restauri e valorizzazione"},{supertitle:"RUBRICA",tag:"Ambiente e paesaggio"},{supertitle:"RUBRICA",tag:"La rete dei volontari FAI"}];return Jr(d.a.Fragment,null,Jr(b.ListCardDouble,{cards:n,CardComponent:no}),Jr(b.Wrapper,{size:"big"},Jr(co,null,Jr(uo,null,Jr(b.NewsGrid,{cards:r.slice(0,2)}),Jr("div",null,Jr(b.List,{items:r.slice(2,5).map((function(t,e){return eo(eo({},t),i[e])})),ListItem:function(t){return Jr(b.NewsItem,t)},horizontal:!0,color:"green"})),Jr(b.NewsGrid,{cards:r.slice(5,6)}),Jr(b.NewsGrid,{cards:r.slice(6,8)})),Jr(so,null,Jr(b.List,{items:o&&o,ListItem:function(t){return Jr(b.NewsItem,Object(l.a)({},t,{withThumbnail:!0}))},color:"grey"}))),Jr(b.Padder,{size:"medium"},Jr(b.Button,{centered:!0,link:"/news/archivio"},"Archivio"))))}}])}(p.Component),co=A.d.div.withConfig({displayName:"NewsPage__Flex",componentId:"sc-1867xim-0"})(["justify-content:center;@media screen and (min-width:1024px){display:flex;}"]),uo=A.d.div.withConfig({displayName:"NewsPage__Main",componentId:"sc-1867xim-1"})(["flex-shrink:0;flex-basis:70%;"]),so=A.d.div.withConfig({displayName:"NewsPage__SideNews",componentId:"sc-1867xim-2"})(["flex-shrink:0;flex-basis:30%;background:#f2f2f2;"]),lo=Object(O.a)(Object(E.d)([{prop:"data",type:"api",resource:"news",exact:10,label:"Seleziona news"},{prop:"hasMobileLiteLayout",type:"boolean"}]),Object(P.a)("news"))(ao),fo=n("JTpX"),po=n("NbfL"),ho=n("KZWD"),bo=d.a.createElement,yo=Object(O.a)(Object(j.a)(),Object(ho.a)([{prop:"text",type:"WYSIWYG"},{prop:"date",type:"datetime-local"},{prop:"link",type:"cta"},{prop:"color",label:"Sfondo",type:"multiple",options:["white:BIANCO","orange:ARANCIO","green:VERDE","grey:GRIGIO"],defaultValue:"green"}]))((function(t){var e=t.date,n=t.text,r=t.link,o=t.color;return bo("div",null,bo(b.Countdown,{date:new Date(e),text:n,link:r,color:o}))})),go=n("Z2Hg"),mo=n("w2w1"),vo=n("Zee3"),Oo=n("KtlO"),jo=Object(O.a)(Object(j.a)(),vo.a,Object(ho.a)([{type:"repeater",prop:"slides",label:"Slides",model:[{prop:"title",label:"Titolo"},{prop:"link",label:"Link del Video"},{prop:"preview",label:"Preview del video",type:"media"},{prop:"related",label:"Video correlati",type:"boolean",initialValue:!1},{prop:"active",label:"Play video automaticamente",type:"multiple",options:["true:attivo","false:non attivo"]}]}]),Oo.a,Object(go.a)(),Object(mo.a)())(b.VideoSlider),wo=d.a.createElement,_o=Object(O.a)(Object(j.a)(),Object(ho.a)([{prop:"color",type:"multiple",label:"Color",options:["#054238:Verde","#e74f30:Arancione"]},{prop:"cards",type:"repeater",label:"Cards",model:[{prop:"icon",label:"Icona"},{prop:"title",label:"Titolo"},{prop:"subtitle",label:"Sottotitolo"},{prop:"link",label:"Link"},{prop:"target",label:"Link target",type:"multiple",options:["_self:_SELF","_blank:_BLANK"]}]}]),Oo.a,Object(go.a)(),Object(mo.a)())((function(t){var e=t.color,n=t.cards;return wo(b.IconCardBoxedContainer,null,n&&n.map((function(t){return wo(b.IconCardBoxed,Object(l.a)({},t,{color:e}))})))})),Eo=n("f3S9"),Po=n("NFNr");function ko(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 To(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?ko(Object(n),!0).forEach((function(e){Object(f.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ko(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Co(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return So(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(So(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,So(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,So(f,"constructor",s),So(s,"constructor",u),u.displayName="GeneratorFunction",So(s,o,"GeneratorFunction"),So(f),So(f,o,"Generator"),So(f,r,(function(){return this})),So(f,"toString",(function(){return"[object Generator]"})),(Co=function(){return{w:i,m:p}})()}function So(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(So=function(t,e,n,r){function i(e,n){So(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:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}var xo=v()().publicRuntimeConfig,Io=xo.PLATFORM,Ao=(xo.LARAVEL,function(t){return h.a.post("".concat(Io,"/quiz-scuole/generate-pdf"),{first_name:t.firstName,last_name:t.lastName,qualification:t.qualification,quiz_id:t.quizId})}),Lo=function(t,e){return h.a.get("".concat(Io,"/users/me/quizzes?id=quiz-").concat(t),{headers:{Authorization:"Bearer ".concat(e)}}).then((function(t){return t.data.payload.url})).catch((function(t){return!1}))},Do=function(){var t=Object(r.a)(Co().m((function t(e,n){var r,o;return Co().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,Lo(e,n);case 1:if(!(r=t.v)){t.n=2;break}return t.a(2,{certificate:{url:r}});case 2:return t.n=3,h.a.get("".concat(Io,"/users/me/objects/quiz-").concat(e),{headers:{Authorization:"Bearer ".concat(n)}}).then((function(t){return t.data.payload})).catch((function(t){if(404===t.status)return!1}));case 3:return o=t.v,t.a(2,o)}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),Fo=function(){var t=Object(r.a)(Co().m((function t(e,n,r){var o;return Co().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,Do(e,r);case 1:o=t.v,Object(h.a)({method:o?"PUT":"POST",url:"".concat(Io,"/users/me/objects/").concat(o?"quiz-".concat(e):""),data:{id:"quiz-".concat(e),payload:JSON.stringify(To({},n))},headers:{Authorization:"Bearer ".concat(r)}}).then((function(t){return t.data})).catch((function(t){return console.log(t)}));case 2:return t.a(2)}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),Ro=function(t){var e=t.quizId,n=t.payload,r=t.authToken;Object(h.a)({method:"POST",url:"".concat(Io,"/users/me/quizzes/"),data:{id:"quiz-".concat(e),payload:JSON.stringify({url:n})},headers:{Authorization:"Bearer ".concat(r)}})},No=d.a.createElement,Go=Object(O.a)(Object(j.a)({niceName:"ScuoleQuiz"}),Object(ho.a)([{prop:"quizId",label:"Quiz",type:"multiple",options:Eo.e.map((function(t){return"".concat(t.id,":").concat(t.label)})),initialValue:Eo.e[0].id}]),Object(w.b)((function(t){return{authToken:Object(tr.b)(t)}}),null))((function(t){return No(p.Fragment,null,No(b.ScuoleQuiz,Object(l.a)({},t,{quizId:t.quizId||Eo.e[0].id,getCertificateFromPlatform:Lo,saveCertificateToPlatform:Ro,generatePdf:Ao,getQuizState:Do,saveQuizState:Fo,logout:Po.a.logout})))})),Mo={SecondaryMenu:Object(j.a)({niceName:"Menu secondario"})(po.a),ScuoleQuizContainer:Go,Countdown:yo,Musement:Object(j.a)({group:"External"})(fo.a),ListOfPlacesWithApi:Object(j.a)({available:!1})((function(){return null})),JotFormIframe:Object(j.a)({group:"External",niceName:"iFrame JotFormPro"})(ot),JotFormIframeFree:Object(j.a)({group:"External",niceName:"iFrame JotFormPro Libero"})(ut),DatalyticsIframe:Object(j.a)({group:"External",niceName:"iFrame Datalytics"})(pt),ListOfCardsWithApi:Object(j.a)({group:"FAI Platform",niceName:"Lista di Beni"})(mt),ListOfCardsWithGFP:Object(j.a)({group:"FAI Platform",niceName:"Lista di GFP"})(Et),ListOfCardsWithLDC:Object(j.a)({group:"LDC",niceName:"Lista di LDC"})(kn),GridSlideGalleryWithLDC:Object(j.a)({group:"LDC",niceName:"Griglia luoghi LDC salvati"})(vn),ListOfNearbyLDC:Object(j.a)({group:"LDC",niceName:"LDC localizzati GPS"})(mr),ListOfLDCVotedByFriends:Object(j.a)({group:"LDC",niceName:"LDC votati dagli amici"})(dr),ListOfLDCFromSelezioni:Object(j.a)({group:"LDC",niceName:"LDC lista da selezioni"})(Bn),ListOfLDCSalvati:Object(j.a)({group:"LDC",niceName:"LDC salvati"})(Hn),ListOfMostVotedLDC:Object(j.a)({group:"LDC",niceName:"LDC pi\xf9 votati"})(Vn),ClassificaLDC:Object(j.a)({group:"LDC",niceName:"Classifica LDC"})(en),ListOfEventsWithApi:Object(j.a)({group:"FAI Platform",niceName:"Lista di Eventi"})(Ct),ListOfEventsRegionaliWithApi:Object(j.a)({group:"FAI Platform",niceName:"Lista di Eventi Regionali"})(Gt),ListOfNewsWithApi:Object(j.a)({group:"FAI Platform",niceName:"Lista di News"})(zt),ListOfNewsWithApiChooser:Object(j.a)({group:"FAI Platform",niceName:"Lista di News dinamica"})(Kt),GridOfNewsWithApi:Object(j.a)({group:"FAI Platform",niceName:"Griglia di News"})(X),FAQsWithApi:Object(j.a)({group:"FAI Platform",niceName:"FAQ dinamiche"})(I),ContactFormWithApi:Object(j.a)({group:"FAI Platform",niceName:"Contact Form"})(_.a),NewsPage:Object(j.a)({group:"FAI Platform",niceName:"Pagina news"})(lo),HeroWithSearch:Object(j.a)({group:"GFP",niceName:"Hero con Search GFP"})(q),LDCHeroWithSearch:Object(j.a)({group:"LDC",niceName:"Hero con Search LDC"})(wn),GFAHeroWithSearch:Object(j.a)({group:"GFA",niceName:"Hero con Search GFA"})(wr),ListOfCardsWithGFA:Object(j.a)({group:"GFA",niceName:"Lista di GFA"}
1)(kr),MFIHeroWithSearch:Object(j.a)({group:"MFI",niceName:"Hero con Search MFI"})(Sr),ListOfCardsWithMFI:Object(j.a)({group:"MFI",niceName:"Lista di MFI"})(Lr),FaiXMeHeroWithSearch:Object(j.a)({group:"FaiXMe",niceName:"Hero con Search FaiXMe"})(Rr),ListOfCardsFaiXMe:Object(j.a)({group:"FaiXMe",niceName:"Lista di FaiXMe"})(Br),ListOfCardsWithFaipermeRegioni:Object(j.a)({group:"FaiXMe",niceName:"Lista di FaiXMe Regioni"})(Qr),ListOfTestimonialWithVote:Object(j.a)({group:"LDC",niceName:"Lista testimonial"})(he),ListOfEventsLDCWithApi:Object(j.a)({group:"LDC",niceName:"Lista Eventi LDC"})(Sn),VideoSlider:Object(j.a)({niceName:"Slider Video"})(jo),EventsGridLDC:Object(j.a)({group:"LDC",niceName:"Griglia Eventi con Search LDC"})(vr.a),IconCardBoxedContainer:Object(j.a)({niceName:"IconCardBoxed Container"})(_o)},Bo=v()().publicRuntimeConfig.LARAVEL,zo=function(t){var e=new FormData;return e.append("image",t),h.a.post("".concat(Bo,"/upload/image"),e,{headers:{"Content-Type":"multipart/form-data"}})},Uo=n("MGb8"),Ho=n.n(Uo),qo=n("ynZC");function Wo(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return Vo(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(Vo(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Vo(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,Vo(f,"constructor",s),Vo(s,"constructor",u),u.displayName="GeneratorFunction",Vo(s,o,"GeneratorFunction"),Vo(f),Vo(f,o,"Generator"),Vo(f,r,(function(){return this})),Vo(f,"toString",(function(){return"[object Generator]"})),(Wo=function(){return{w:i,m:p}})()}function Vo(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(Vo=function(t,e,n,r){function i(e,n){Vo(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:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}var Ko=v()().publicRuntimeConfig.WP_API,Yo=function(){var t=Object(r.a)(Wo().m((function t(e,n){var r,o;return Wo().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,Object(qo.a)();case 1:return r=t.v,o=new Ho.a({endpoint:Ko,nonce:r}),t.a(2,o.users().me())}}),t)})));return function(e,n){return t.apply(this,arguments)}}();function Qo(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return Jo(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);
1try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(Jo(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Jo(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,Jo(f,"constructor",s),Jo(s,"constructor",u),u.displayName="GeneratorFunction",Jo(s,o,"GeneratorFunction"),Jo(f),Jo(f,o,"Generator"),Jo(f,r,(function(){return this})),Jo(f,"toString",(function(){return"[object Generator]"})),(Qo=function(){return{w:i,m:p}})()}function Jo(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(Jo=function(t,e,n,r){function i(e,n){Jo(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:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}var Xo=function(){var t=Object(r.a)(Qo().m((function t(e){var n,r,o,i,a;return Qo().w((function(t){for(;;)switch(t.n){case 0:return n=e.userID,r=e.postID,o=e.lock,i=void 0===o?"":o,t.n=1,Object(qo.a)("heartbeat");case 1:return a=t.v,t.a(2,Object(h.a)({method:"POST",url:"/wordpress/wp-admin/admin-ajax.php",data:ve.a.stringify({"data[wp-refresh-post-lock][post_id]":r,"data[wp-refresh-post-lock][lock]":"".concat(i||parseInt(Date.now()/1e3),":").concat(n),"data[wp-refresh-post-nonces][post_id]":r,interval:15,_nonce:a,action:"heartbeat",screen_id:"page",has_focus:!0}),headers:{"content-type":"application/x-www-form-urlencoded"}}))}}),t)})));return function(e){return t.apply(this,arguments)}}(),$o=function(){var t=Object(r.a)(Qo().m((function t(e){var n,r;return Qo().w((function(t){for(;;)switch(t.n){case 0:return n=e.postID,t.n=1,Object(qo.a)("heartbeat");case 1:return r=t.v,t.a(2,Object(h.a)({method:"POST",url:"/wordpress/wp-admin/admin-ajax.php",data:ve.a.stringify({"data[wp-check-locked-posts][]":"post-".concat(n),"data[wp-refresh-post-nonces][post_id]":n,interval:15,_nonce:r,action:"heartbeat",screen_id:"edit-page",has_focus:!0}),headers:{"content-type":"application/x-www-form-urlencoded"}}))}}),t)})));return function(e){return t.apply(this,arguments)}}(),Zo=Xo,ti=n("uPMs"),ei=d.a.createElement;function ni(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return ri(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(ri(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,ri(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,ri(f,"constructor",s),ri(s,"constructor",u),u.displayName="GeneratorFunction",ri(s,o,"GeneratorFunction"),ri(f),ri(f,o,"Generator"),ri(f,r,(function(){return this})),ri(f,"toString",(function(){return"[object Generator]"})),(ni=function(){return{w:i,m:p}})()}function ri(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(ri=function(t,e,n,r){function i(e,n){ri(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:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function oi(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 ii(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 ai(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?ii(Object(n),!0).forEach((function(e){Object(f.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ii(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ci=v()().publicRuntimeConfig,ui=ci.PLATFORM,si=ci.APP_DOMAIN,li=ci.WP_API,fi=ci.FAI_CONTACT_FORM,pi=function(t){return t&&t.replace("\u2019","'")},di=g()((function(){return Promise.all([n.e(0),n.e(28),n.e(95)]).then(n.bind(null,"dkz/"))}),{ssr:!1,loading:function(){return ei("div",{className:"pb-loading",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100vh",width:"100vw",position:"fixed",top:0,backgroundColor:"white",zIndex:1e3}},"Loading")},loadableGenerated:{webpack:function(){return["dkz/"]},modules:["@fai/pagebuilder/src/containers"]}}),hi=Object(f.a)(Object(f.a)(Object(f.a)(Object(f.a)(Object(f.a)({beni:{base:"".concat(ui,"/luoghi/beni?with=luogo,luogo.provincia,luogo.comune,tipologia,media"),getSearch:function(t){return h.a.get("".concat(hi.beni.base,"&titolo=%25").concat(t,"%25|LIKE").concat(t&&t.length>15?"&limit=99":"")).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.beni.base,"&").concat(t?t.map((function(t){return"id_luogo[]=".concat(t)})).join("&"):"")).then((function(t){return t.data.data}))},identifier:"id_luogo"},gfp:{base:"".concat(ui,"/luoghi/?with=gfp,gfp.media&has=gfp"),getSearch:function(t){return h.a.get("".concat(hi.gfp.base,"&nome=%25").concat(t,"%25|LIKE").concat(t&&t.length>15?"&limit=99":"")).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.gfp.base,"&").concat(t?t.map((function(t){return"id[]=".concat(t)})).join("&"):"")).then((function(t){return t.data.data}))},identifier:"id"},gfa:{base:"".concat(ui,"/luoghi/?with=gfa,gfa.media&has=gfa"),getSearch:function(t){return h.a.get("".concat(hi.gfa.base,"&nome=%25").concat(t,"%25|LIKE").concat(t&&t.length>15?"&limit=99":"")).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.gfa.base,"&").concat(t?t.map((function(t){return"id[]=".concat(t)})).join("&"):"")).then((function(t){return t.data.data}))},identifier:"id"},mfi:{base:"".concat(ui,"/luoghi/?with=mfi,mfi.media&has=mfi"),getSearch:function(t){return h.a.get("".concat(hi.mfi.base,"&nome=%25").concat(t,"%25|LIKE").concat(t&&t.length>15?"&limit=99":"")).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.mfi.base,"&").concat(t?t.map((function(t){return"id[]=".concat(t)})).join("&"):"")).then((function(t){return t.data.data}))},identifier:"id"},faixme:{base:"".concat(ui,"/luoghi/faixme/?with=luogo,media,categorie"),getSearch:function(t){return h.a.get("".concat(hi.faixme.base,"&titolo=%25").concat(t,"%25|LIKE").concat(t&&t.length>15?"&limit=99":"")).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.faixme.base,"&").concat(t?t.map((function(t){return"id[]=".concat(t)})).join("&"):"")).then((function(t){return t.data.data}))},identifier:"id"},ldc:{base:"".concat(ui,"/luoghi/?with=ldc,ldc.media&has=ldc"),getSearch:function(t){return h.a.get("".concat(hi.ldc.base,"&nome=%25").concat(t,"%25|LIKE").concat(t&&t.length>15?"&limit=99":"")).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.ldc.base,"&").concat(t?t.map((function(t){return"id[]=".concat(t)})).join("&"):"")).then((function(t){return t.data.data}))},identifier:"id"},news:{base:"".concat(ui,"/news?stato=1&id_news_categoria=null|NOT"),getSearch:function(t){return h.a.get("".concat(hi.news.base,"&titolo=%25").concat(t,"%25|LIKE").concat(t&&t.length>15?"&limit=99":"")).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.news.base,"&").concat(t?t.map((function(t){return"id[]=".concat(t)})).join("&"):"")).then((function(t){return t.data.data}))},identifier:"id"},apiChooser:{base:"",getItems:function(t){return h.a.get("".concat(t)).then((function(t){return t.data.data}))},getSearch:function(t){return h.a.get("".concat(t)).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.apiChooser.base,"?").concat(t?t.map((function(t){return"id[]=".concat(t)})).join("&"):"")).then((function(t){return t.data.data}))},identifier:"id",hideSearch:!1}
1,eventi:{base:"".concat(ui,"/eventi"),getSearch:function(t){return h.a.get("".concat(hi.eventi.base,"/?titolo=%25").concat(t,"%25|LIKE&orderby=dt_inizio-&limit=150")).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.eventi.base,"/?").concat(t?t.map((function(t){return"id[]=".concat(t)})).join("&"):"","&orderby=dt_inizio-&limit=150")).then((function(t){return t.data.data}))},identifier:"id"},regioni:{base:"".concat(ui,"/regioni"),getSearch:function(t){return h.a.get("".concat(ui,"/regioni?nome=").concat(pi(t),"*|LIKE")).then((function(t){return t.data.data}))},getIds:function(){return h.a.get("".concat(hi.regioni.base)).then((function(t){return t.data.data}))},identifier:"nome",hideTitle:!0},owners:{base:"".concat(ui,"/luoghiowners"),getSearch:function(t){return h.a.get("".concat(hi.owners.base,"?keyword=").concat(pi(t))).then((function(t){return t.data.data}))},getIds:function(){return h.a.get("".concat(hi.owners.base)).then((function(t){return t.data.data}))},identifier:"id_luogo_owner",displayName:"owner"}},"faixme",{base:"".concat(ui,"/luoghi/faixme/?with=luogo,media,categorie"),getSearch:function(t){return h.a.get("".concat(hi.faixme.base,"&titolo=%25").concat(t,"%25|LIKE").concat(t&&t.length>15?"&limit=99":"")).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.faixme.base,"&").concat(t?t.map((function(t){return"id[]=".concat(t)})).join("&"):"")).then((function(t){return t.data.data}))},identifier:"id"}),"faixmeregioni",{base:"".concat(ui,"/selezioni?id_vertical=FAIXME&limit=100"),getSearch:function(t){return h.a.get("".concat(hi.faixmeregioni.base,"&titolo[]=").concat(t,"|LIKE")).then((function(t){return t.data.data}))},getIds:function(){return h.a.get("".concat(hi.faixmeregioni.base)).then((function(t){return t.data.data}))},identifier:"id",displayName:"descrizione"}),"menus",{base:"".concat(li,"mrr/v1/menus/"),getSearch:function(t){return h.a.get("".concat(hi.menus.base)).then((function(t){return t.data}))},getIds:function(t){return h.a.get("".concat(hi.menus.base)).then((function(t){return t.data}))},identifier:"slug",displayName:"name",hideSearch:!0}),"aree",{base:fi||"//beta.faiconnect.caffeina.be/contact-form",getSearch:function(t){return h.a.get("".concat(hi.aree.base,"/aree/?titolo=%25").concat(t,"%25|LIKE&orderby=dt_inizio-")).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.aree.base,"/aree/?").concat(t?t.map((function(t){return"id[]=".concat(t)})).join("&"):"","&orderby=dt_inizio-")).then((function(t){return t.data.data}))},hideSearch:!0,identifier:"id",displayName:"label"}),"eventildc",{base:"".concat(ui,"/ldc/eventi"),getSearch:function(t){return h.a.get("".concat(hi.eventildc.base,"/?titolo=%25").concat(t,"%25|LIKE&limit=150")).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.eventildc.base,"/?").concat(t?t.map((function(t){return"id[]=".concat(t)})).join("&"):"","&limit=150")).then((function(t){return t.data.data}))},identifier:"id"}),bi=ai(ai({},b),Mo);bi.Root=function(t){return t.children};var yi=function(t){var e=t.root,n=t.data,r=t.breadcrumbs,o=t.seo;return ei("div",null,e.childIds.map((function(t){var e=n.nodes[t],i=e.component,a=e.props,c=e.childIds,u=e.id,s=bi[i];return ei(d.a.Fragment,{key:t},a&&a.anchorId&&ei("div",{id:a.anchorId}),ei(s,Object(l.a)({key:"node-".concat(u)},a,{breadCrumbs:r,seo:o,LinkComponent:bt.a,tabs:!(!e.props||!e.props.tabs)&&e.props.tabs}),c&&c.map((function(t){return ei(yi,{root:n.nodes[t],data:n})}))))})))},gi=function(t){var e=t.post,n=t.withPagebuilder,r=t.save,o=t.breadcrumbs,i=t.seo,a=t.sendHeartbeatFunction,c=t.checkHearbeatFunction,u=!!e.wpData&&e.wpData.content,s=""!==u&&JSON.parse(u);return n?ei("div",{style:{marginTop:"42px"}},ei(di,{onSave:r,onUpload:zo,availableComponents:Mo,apiMethods:hi,sendHeartbeatFunction:a,getUser:Yo,checkHearbeatFunction:c})):s?ei(yi,{root:s.nodes.root,data:s,breadcrumbs:o,seo:i}):null},mi=function(t,e){var n=t&&t.find((function(t){return t.meta_key===e}));return n?n.meta_value:""};e.a=function(t,e,n){var c=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],f=arguments.length>5?arguments[5]:void 0,d=function(n){function p(){return Object(i.a)(this,p),oi(this,p,arguments)}return Object(s.a)(p,n),Object(a.a)(p,[{key:"render",value:function(){var t=this.props,n=t.post,r=t.seo,i=(t.isAuthRequired,t.isAuthorized,n.wpData),a=i.parents,s=a?[["/","Home"]].concat(Object(o.a)(a.map((function(t,e){return[a.slice(0,e+1).reduce((function(t,e){var n=e.slug;return"".concat(t).concat(n,"/")}),"/"),t.post_title]}
1)))):[["/","Home"]],p=i&&"news"===i.type;return ei(ti.a,{type:f,seo:r,hasFasciaNLApp:p,hasFasciaSupporto:p,hasFooter:c,hasFasciaGrazie:u},ei(gi,Object(l.a)({},this.props,{breadcrumbs:s,save:function(t){return e(t,i.ID)},sendHeartbeatFunction:function(t,e){return Zo({userID:e,postID:i.ID,lock:t})},checkHearbeatFunction:function(){return $o({postID:i.ID})}})))}}],[{key:"getInitialProps",value:function(){var e=Object(r.a)(ni().m((function e(n){var r,o,i,a,c,u,s,l,f,p,d,h,b,y;return ni().w((function(e){for(;;)switch(e.n){case 0:return r=n.store,o=n.req,i=n.query,n.res,a=i.slug,c=i.pb,e.n=1,t(i.slug||"/").catch((function(t){return!1}));case 1:if(u=e.v){e.n=2;break}return e.a(2,{statusCode:404});case 2:return s="undefined"!==typeof c,l=u.wpData,f=u.apiData,s&&r.dispatch({type:"INIT_NODES",nodes:l.content&&JSON.parse(l.content).nodes,media:l.content&&JSON.parse(l.content).media}),p=function(t){return mi(l&&l.meta,t)},"| FAI - Fondo Ambiente Italiano",d=f&&"".concat(f.titolo," ").concat("| FAI - Fondo Ambiente Italiano")||p("_yoast_wpseo_title")||"".concat(l&&l.post_title," ").concat("| FAI - Fondo Ambiente Italiano"),h=f&&f.metadescription_og||p("_yoast_wpseo_metadesc"),b=f&&f.image_og||p("_yoast_wpseo_opengraph-image"),y=encodeURI(o&&o.url?si+o.url:"".concat(window.location.protocol,"//").concat(window.location.host,"/news/").concat(a)),e.a(2,{post:u,slug:a,apiData:f,withPagebuilder:s,seo:{title:d,description:h,ogImage:b,url:y}})}}),e)})));return function(t){return e.apply(this,arguments)}}()}])}(p.Component);return d}},"4FEf":function(t,e,n){"use strict";t.exports=function(t){return null!==t&&"object"===typeof t}},"4smK":function(t,e,n){"use strict";var r;e.__esModule=!0,e.LoadableContext=void 0;var o=((r=n("ERkP"))&&r.__esModule?r:{default:r}).default.createContext(null);e.LoadableContext=o},"72zh":function(t,e){t.exports=function(t){return t&&"object"===typeof t&&"function"===typeof t.copy&&"function"===typeof t.fill&&"function"===typeof t.readUInt8}},"7U+e":function(t,e,n){"use strict";n.d(e,"a",(function(){return E}));var r=n("zjfJ"),o=n("fGyu"),i=n("QsI/"),a=n("9fIP"),c=n("MMYH"),u=n("K/z8"),s=n("sRHE"),l=n("8K1b"),f=n("ERkP"),p=n.n(f),d=n("j/s1"),h=n("voCV"),b=n("9SJ6"),y=n("q0ET"),g=p.a.createElement;function m(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 v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function O(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return j(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(j(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,j(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,j(f,"constructor",s),j(s,"constructor",u),u.displayName="GeneratorFunction",j(s,o,"GeneratorFunction"),j(f),j(f,o,"Generator"),j(f,r,(function(){return this})),j(f,"toString",(function(){return"[object Generator]"})),(O=function(){return{w:i,m:p}})()}function j(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(j=function(t,e,n,r){function i(e,n){j(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:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function w(t,e,n){return e=Object(s.a)(e),Object(u.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(s.a)(t).constructor):e.apply(t,n))}
1var _={btnUrl:"",btnLabel:"Mostra tutti",infoLabel:"Non ci sono elementi vicino a me"},E=function(t){function e(){var t;return Object(a.a)(this,e),(t=w(this,e)).state={currentPage:1,luoghi:[],canLoadMore:!0,loading:!1},t.loadMore=t.loadMore.bind(t),t}return Object(l.a)(e,t),Object(c.a)(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.coords,n=t.requestLocation;e&&this.updateNearby({coords:e}),e||n()}},{key:"componentDidUpdate",value:function(t){var e=this.props.coords;Object(h.e)(t.coords,e)||this.updateNearby({coords:e})}},{key:"updateNearby",value:function(){var t=Object(i.a)(O().m((function t(){var e,n,r,i,a;return O().w((function(t){for(;;)switch(t.n){case 0:return e=this.props,n=e.getLuoghi,r=e.coords,i=this.state.currentPage,this.setState({loading:!0}),t.n=1,n({coords:r,page:i});case 1:a=t.v,this.setState({loading:!1,luoghi:[].concat(Object(o.a)(this.state.luoghi),Object(o.a)(a)),canLoadMore:a.length>0});case 2:return t.a(2)}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"loadMore",value:function(){var t=this,e=this.state,n=e.loading,r=e.canLoadMore;!n&&r&&this.setState({currentPage:this.state.currentPage+1},(function(){return t.updateNearby()}))}},{key:"render",value:function(){var t=this.state,e=t.luoghi,n=t.loading,r=t.canLoadMore,o=this.props,i=o.requestLocation,a=o.status,c=o.CardComponent,u=o.makeCard,s=o.coords,l=o.ContainerComponent,f=void 0===l?b.a:l,d=o.fallback;if(s&&0===e.length&&!n){var h=this.props.EmptyComponent;if(h)return g(h,null);var m=v(v({},_),d);return g(k,null,g("p",null,m.infoLabel),m.btnUrl&&g(p.a.Fragment,null,g(T,null),g(y.a,{className:"js-requestLocation",link:m.btnUrl},m.btnLabel)))}return e.length?g(p.a.Fragment,null,g(f,{CardComponent:c,cards:e.map(u)}),r&&g(P,null,g(y.a,{centered:!0,onClick:this.loadMore},n?"CARICO...":"MOSTRA ALTRI"))):g(k,{style:{padding:"100px"}},g("p",null,"\xc8 necessario attivare la Geolocalizzazione per vedere i luoghi vicini."),g(T,null),g(y.a,{className:"js-requestLocation",onClick:i},"LOADING"===a||n?"Carico....":"Attiva Geolocalizzazione"))}}])}(p.a.Component),P=d.d.div.withConfig({displayName:"FetchNearbyLuoghi__ButtonPadder",componentId:"sc-1yaxw6s-0"})(["padding:2rem 0;"]),k=d.d.div.withConfig({displayName:"FetchNearbyLuoghi__AuthNeeded",componentId:"sc-1yaxw6s-1"})(["text-align:center;"]),T=d.d.div.withConfig({displayName:"FetchNearbyLuoghi__Spacer",componentId:"sc-1yaxw6s-2"})(["margin-bottom:2rem;"])},"8I/T":function(t,e,n){"use strict";var r=n("wGKE"),o=n("k/58"),i={},a=n("/oUt"),c=a.filter,u=a.taxonomy;i.author=function(t){if(void 0===t)return this;if("string"===typeof t)return this.param("author",null),c.call(this,"author_name",t);if("number"===typeof t)return c.call(this,"author_name",null),this.param("author",t);if(null===t)return c.call(this,"author_name",null),this.param("author",null);throw new Error("author must be either a nicename string or numeric ID")},i.parent=r("parent"),i.post=r("post"),i.password=r("password"),i.status=r("status"),i.sticky=r("sticky"),i.categories=r("categories"),i.category=function(t){return o(t)?i.categories.call(this,t):u.call(this,"category",t)},i.excludeCategories=r("categories_exclude"),i.tags=r("tags"),i.tag=function(t){return o(t)?i.tags.call(this,t):u.call(this,"tag",t)},i.excludeTags=r("tags_exclude"),i.before=function(t){return this.param("before",new Date(t).toISOString())},i.after=function(t){return this.param("after",new Date(t).toISOString())},t.exports=i},"8vpR":function(t,e){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach((function(t){n.prototype[t]=function(){return this._defaults.push({fn:t,arguments:arguments}),this}})),n.prototype._setDefaults=function(t){this._defaults.forEach((function(e){t[e.fn].apply(t,e.arguments)}))},t.exports=n},ADPW:function(t,e,n){"use strict";t.exports=function(t,e){return t>e?1:t<e?-1:0}},AU4o:function(t,e,n){"use strict";var r=n("O5Wi");function o(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?o(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}e.__esModule=!0,e.noSSR=u,e.default=function(t,e){var n=a.default,r={loading:function(t){t.error,t.isLoading;return t.pastDelay,null}};t instanceof Promise?r.loader=function(){return t}:"function"===typeof t?r.loader=t:"object"===typeof t&&(r=i(i({},r),t));if(r=i(i({},r),e),"object"===typeof t&&!(t instanceof Promise)&&(t.render&&(r.render=function(e,n){return t.render(n,e)}),t.modules)){n=a.default.Map;var o={},c=t.modules();Object.keys(c).forEach((function(t){var e=c[t];"function"!==typeof e.then?o[t]=e:o[t]=function(){return e.then((function(t){return t.default||t}))}})),r.loader=o}r.loadableGenerated&&delete(r=i(i({},r),r.loadableGenerated)).loadableGenerated;if("boolean"===typeof r.ssr){if(!r.ssr)return delete r.ssr,u(n,r);delete r.ssr}return n(r)};c(n("ERkP"));var a=c(n("/QYh"));function c(t){return t&&t.__esModule?t:{default:t}}function u(t,e){return delete e.webpack,delete e.modules,t(e)}},B404:function(t,e,n){"use strict";var r=n("XLvf").inherits,o=n("JN2i"),i=n("b4Fh"),a=n("P3Rk");t.exports={create:function(t,e,n){function c(r){o.call(this,r),this._levels=t._levels,this.setPathPart(0,e).namespace(n)}return r(c,o),"object"===typeof t._getArgs&&Object.keys(t._getArgs).forEach((function(t){var e=i[t];"object"===typeof e&&Object.keys(e).forEach((function(t){a(c.prototype,t,e[t])}))})),Object.keys(t._setters).forEach((function(e){c.prototype[e]||(c.prototype[e]=t._setters[e])})),c}}},"C+Tx":function(t,e,n){"use strict";var r=n("hLC0");t.exports={locateAPIRootHeader:function(t){var e=t.link||t.headers&&t.headers.link,n=r(e),o=n&&n["https://api.w.org/"];if(o&&o.url)return o.url;throw new Error('No header link found with rel="https://api.w.org/"')}}},"Che/":function(t,e,n){"use strict";var r=n("pvoB"),o=n("wSS7"),i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=function(t,e,n){i&&"__proto__"===e?i(t,e,{enumerable:!0,configurable:!0,value:n,writable:!0}):t[e]=n},u=function(t,e){if("__proto__"===e){if(!o(t,e))return;if(a)return a(t,e).value}return t[e]};function s(){var t,e,n,o,i,a,l=arguments[0]||{},f=1,p=arguments.length,d=!1;for("boolean"===typeof l&&(d=l,l=arguments[1]||{},f=2),"object"===typeof l||r.fn(l)||(l={});f<p;f++)if(null!=(t=arguments[f]))for(e in"string"===typeof t&&(t=t.split("")),t)n=u(l,e),l!==(o=u(t,e))&&(d&&o&&(r.hash(o)||(i=r.array(o)))?(i?(i=!1,a=n&&r.array(n)?n:[]):a=n&&r.hash(n)?n:{},c(l,e,s(d,a,o))):"undefined"!==typeof o&&c(l,e,o));return l}s.version="1.1.7",t.exports=s},FAGI:function(t,e,n){"use strict";var r=n("fGyu"),o=n("QsI/"),i=n("9fIP"),a=n("MMYH"),c=n("K/z8"),u=n("sRHE"),s=n("8K1b"),l=n("ERkP"),f=n("wuXC"),p=n.n(f);function d(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return h(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(h(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,h(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,h(f,"constructor",s),h(s,"constructor",u),u.displayName="GeneratorFunction",h(s,o,"GeneratorFunction"),h(f),h(f,o,"Generator"),h(f,r,(function(){return this})),h(f,"toString",(function(){return"[object Generator]"})),(d=function(){return{w:i,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 i(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:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function b(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 y={items:[],page:1,nextPage:null,total:0,working:!1},g=function(t){function e(){var t;return Object(i.a)(this,e),(t=b(this,e)).state=y,t.loadMore=t.loadMore.bind(t),t}
1return Object(s.a)(e,t),Object(a.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,i,a,c,u,s,l;return d().w((function(e){for(;;)switch(e.n){case 0:if(n=t.props,o=n.apiRequest,i=n.queryObject,o){e.n=1;break}return t.setState({working:!1}),e.a(2);case 1:return a=t.state.page,e.n=2,o({page:a,queryObject:i});case 2:if(c=e.v){e.n=3;break}return t.setState({working:!1}),e.a(2);case 3:u=c.items,s=c.nextPage,l=c.total,t.setState({items:[].concat(Object(r.a)(t.state.items),Object(r.a)(null!==u&&void 0!==u?u:[])),nextPage:s,total:l,working:!1},(function(){if(t.lastItemId){var e=document.querySelector("[data-id='"+t.lastItemId+"']");e&&e.offsetWidth>0&&e.offsetHeight>0&&(e.scrollIntoView(),window.scrollBy(0,-200))}else document.documentElement.scrollTop=t.prevY}));case 4:return e.a(2)}}),e)}))))}},{key:"render",value:function(){var t=this.state,e=t.items,n=t.nextPage,r=t.total,o=t.working;return this.props.children({items:e,loadMore:this.loadMore,nextPage:n,total:r,working:o})}}])}(l.Component);e.a=g},Fu1L:function(t,e,n){"use strict";var r=n("4FEf");function o(t){if(t)return function(t){for(var e in o.prototype)t[e]=o.prototype[e];return t}(t)}t.exports=o,o.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,this},o.prototype.parse=function(t){return this._parser=t,this},o.prototype.responseType=function(t){return this._responseType=t,this},o.prototype.serialize=function(t){return this._serializer=t,this},o.prototype.timeout=function(t){if(!t||"object"!==typeof t)return this._timeout=t,this._responseTimeout=0,this;for(var e in t)switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;default:console.warn("Unknown timeout option",e)}return this},o.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};var i=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];o.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(t,e);if(!0===n)return!0;if(!1===n)return!1}catch(r){console.error(r)}if(e&&e.status&&e.status>=500&&501!=e.status)return!0;if(t){if(t.code&&~i.indexOf(t.code))return!0;if(t.timeout&&"ECONNABORTED"==t.code)return!0;if(t.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},o.prototype.then=function(t,e){if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(t,e){n.end((function(n,r){n?e(n):t(r)}))}))}return this._fullfilledPromise.then(t,e)},o.prototype.catch=function(t){return this.then(void 0,t)},o.prototype.use=function(t){return t(this),this},o.prototype.ok=function(t){if("function"!==typeof t)throw Error("Callback required");return this._okCallback=t,this},o.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},o.prototype.get=function(t){return this._header[t.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(t,e){if(r(t)){for(var n in t)this.set(n,t[n]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},o.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},o.prototype.field=function(t,e){if(null===t||void 0===t)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),r(t)){for(var n in t)this.field(n,t[n]);return this}if(Array.isArray(e)){for(var o in e)this.field(t,e[o]);return this}if(null===e||void 0===e)throw new Error(".field(name, val) val can not be empty");return"boolean"===typeof e&&(e=""+e),this._getFormData().append(t,e),this},o.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit
1("abort")),this},o.prototype._auth=function(t,e,n,r){switch(n.type){case"basic":this.set("Authorization","Basic "+r(t+":"+e));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer "+t)}return this},o.prototype.withCredentials=function(t){return void 0==t&&(t=!0),this._withCredentials=t,this},o.prototype.redirects=function(t){return this._maxRedirects=t,this},o.prototype.maxResponseSize=function(t){if("number"!==typeof t)throw TypeError("Invalid argument");return this._maxResponseSize=t,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(t){var e=r(t),n=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(e&&r(this._data))for(var o in t)this._data[o]=t[o];else"string"==typeof t?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"==n?this._data?this._data+"&"+t:t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)||n||this.type("json"),this},o.prototype.sortQuery=function(t){return this._sort="undefined"===typeof t||t,this},o.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var n=this.url.substring(e+1).split("&");"function"===typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.substring(0,e)+"?"+n.join("&")}}},o.prototype._appendQueryString=function(){console.trace("Unsupported")},o.prototype._timeoutError=function(t,e,n){if(!this._aborted){var r=new Error(t+e+"ms exceeded");r.timeout=e,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.abort(),this.callback(r)}},o.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},GKv7:function(t,e){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var o in r)n.call(r,o)&&(t[o]=r[o])}return t};var n=Object.prototype.hasOwnProperty},GXeJ:function(t,e,n){"use strict";var r=n("cxan"),o=n("ERkP"),i=n.n(o),a=n("voCV"),c=n("QtE3"),u=n("NAJH"),s=n("OzPX"),l=n("0D0S"),f=n.n(l),p=i.a.createElement,d=f()().publicRuntimeConfig.FAI_CONTACT_FORM||"//beta.faiconnect.caffeina.be/contact-form",h=Object(a.a)(Object(u.b)(),Object(u.a)(),Object(u.d)([{prop:"title",label:"Titolo"},{prop:"subtitle",label:"Sottotitolo",type:"WYSIWYG"},{prop:"ctaLabel",label:"Label CTA"},{prop:"disclaimer",label:"Disclaimer Privacy",type:"WYSIWYG"},{prop:"defaultArea",label:"Selezione flusso",type:"apiChooser",options:[{option:"false||OGGETTO LIBERO",displayName:"false"},{option:"".concat(d,"/aree||IMPOSTA OGGETTO"),displayName:"label"}],initialValue:"false",api:{prop:"data",resource:"apiChooser"}}]),Object(s.a)("apiChooser"));e.a=h((function(t){var e=!(!t.defaultArea||"false"===t.defaultArea||!t.defaultArea.length)&&t.defaultArea[0].split("|")[1],n=!t.defaultArea||"false"===t.defaultArea;return p(c.ContactForm,Object(r.a)({},t,{defaultArea:e,isSelectEnabled:n}))}))},HKMk:function(t,e,n){"use strict";var r=n("fGyu"),o=n("cxan"),i=n("zjfJ"),a=n("9fIP"),c=n("MMYH"),u=n("K/z8"),s=n("sRHE"),l=n("8K1b"),f=n("ERkP"),p=n.n(f),d=n("voCV"),h=p.a.createElement;function b(t,e,n){return e=Object(s.a)(e),Object(u.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(s.a)(t).constructor):e.apply(t,n))}var y=[{prop:"anchorId",label:"Inserisci l'id dell'ancora",type:""}];e.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var n=function(t){function n(){return Object(a.a)(this,n),b(this,n,arguments)}return Object(l.a)(n,t),Object(c.a)(n,[{key:"_handleChange",value:function(t,e){var n=this.props.onPropChange;this.setState(Object(i.a)({},t,e)),n(t,e)}},{key:"render",value:function(){return h("div",{style:{position:"relative"}}
1,h(e,Object(o.a)({},this.props,this.state)))}}])}(f.Component);return n.isAvailable="undefined"===typeof t.available||t.available,n.group=t.group||"Tutti",n.niceName=t.niceName,n.fields=[].concat(y,Object(r.a)(e.fields||[])),n.displayName=Object(d.i)(e,"withPageBuilder"),n}}},IEzQ:function(t,e,n){"use strict";var r=n("vqKY").create;function o(t,e){!function(t,e){var n,o,i,a;o=t._levels,i=e.level,a={component:e.component,validate:e.validate,methods:e.methods},o[i]=o[i]||[],o[i].push(a),e.level>0&&(n=r(e),e.names.forEach((function(e){var r=e.replace(/[_-]+\w/g,(function(t){return t.replace(/[_-]+/,"").toUpperCase()}));t._setters[r]||(t._setters[r]=n)})))}(t,e),e.children&&Object.keys(e.children).forEach((function(n){o(t,e.children[n])}))}t.exports={create:function(t,e){var n={_path:{0:e},_levels:{},_setters:{},_getArgs:t._getArgs};return Object.keys(t).forEach((function(e){"_getArgs"!==e&&o(n,t[e])})),n}}},IuyV:function(t,e,n){"use strict";n("sAyc");var r=n("fGyu"),o=n("QsI/"),i=n("9fIP"),a=n("MMYH"),c=n("K/z8"),u=n("sRHE"),s=n("8K1b"),l=n("cxan"),f=n("ERkP"),p=n.n(f),d=n("voCV"),h=n("j/s1"),b=n("tTwn"),y=n.n(b),g=n("QtE3"),m=n("NAJH"),v=n("MJc2"),O=n.n(v),j=n("ezIv"),w=n("mtjO"),_=p.a.createElement;function E(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return P(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(P(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,P(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,P(f,"constructor",s),P(s,"constructor",u),u.displayName="GeneratorFunction",P(s,o,"GeneratorFunction"),P(f),P(f,o,"Generator"),P(f,r,(function(){return this})),P(f,"toString",(function(){return"[object Generator]"})),(E=function(){return{w:i,m:p}})()}function P(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(P=function(t,e,n,r){function i(e,n){P(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:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}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))}var T=function(t){return"".concat(t.getFullYear(),"-").concat(t.getMonth()+1,"-").concat(t.getDate())},C=function(t,e){var n=[];if("now"===e){var r=new Date(t);r.setDate(r.getDate()-1),n.push("calendar.dt_evento=".concat(T(r),"|GREATER"))}else n.push("calendar.dt_evento=".concat(t,",").concat(e,"|BETWEEN"));return n.length?n.join("&"):""},S=function(t){return _(g.EventCard,Object(l.a)({},t,{LinkComponent:O.a}))},x=function(t){function e(t){var n;return Object(i.a)(this,e),(n=k(this,e,[t])).state={meta:{loading:!0}},n.search=n.search.bind(n),n.handleLoadMore=n.handleLoadMore.bind(n),n.updateResults=n.updateResults.bind(n),n}
1return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentDidMount",value:function(){var t=this;this.setState({meta:{loading:!1}});var e=new Date;Object(w.f)("&calendar.dt_evento=".concat(T(e),"&limit=8")).then((function(e){t.setState({events:e.data,total:e.total,showLoadMore:e.to<e.total,currentPage:1,searchKeyword:"",searchStartDate:null,searchEndDate:null})})).catch((function(t){console.error("[EventsGridLDC] caricamento eventi fallito:",t)}))}},{key:"handleLoadMore",value:function(){var t=Object(o.a)(E().m((function t(){var e,n,o,i,a,c,u,s,l,f,p,d,h;return E().w((function(t){for(;;)switch(t.n){case 0:return e=this.state,n=e.currentPage,o=e.searchKeyword,i=e.searchStartDate,a=e.searchEndDate,c="",(o||i||a)&&(c=[o&&"titolo=%25".concat(o,"%25|LIKE"),C(i,a)].filter((function(t){return t})),c="&".concat(c.join("&"))),u=this.state.events||this.props.events,s=n+1,t.n=1,Object(w.f)("&limit=8&page=".concat(s).concat(c));case 1:l=t.v,f=l.data,p=l.current_page,d=l.to,h=l.total,this.setState({events:[].concat(Object(r.a)(u),Object(r.a)(f)),currentPage:p,showLoadMore:d<h});case 2:return t.a(2)}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"search",value:function(t){var e=t.search,n=t.startDate,r=t.endDate;this.setState({searchKeyword:e,searchStartDate:n,searchEndDate:r,meta:{loading:!0}});var o=[e&&"&titolo=%25".concat(e,"%25|LIKE"),C(n,r),"limit=8"].join("&");this.updateResults(o,e,n,r)}},{key:"updateResults",value:function(){var t=Object(o.a)(E().m((function t(e,n,r,o){var i,a,c,u;return E().w((function(t){for(;;)switch(t.n){case 0:return"",t.n=1,Object(w.f)("".concat(e,"&").concat(""));case 1:i=t.v,a=i.data,c=i.total,u=i.to,this.setState({events:a,searchKeyword:n,showLoadMore:u<c,searchStartDate:r,searchEndDate:o,total:c,meta:{loading:!1}});case 2:return t.a(2)}}),t,this)})));return function(e,n,r,o){return t.apply(this,arguments)}}()},{key:"render",value:function(){var t=this.state,e=t.showLoadMore,n=t.searchKeyword,r=t.searchStartDate,o=t.searchEndDate,i=t.meta,a=t.total,c=this.state.events||this.props.events;return _(p.a.Fragment,null,i&&i.loading&&_(g.Loading,null),_(I,null,_(g.FiltersBar,{searchPlaceholder:"Cerca un evento",onChange:this.search,searchValue:n,datePicker:!0,startDate:r,endDate:o}),n&&function(t){t.events;var e=t.total,n=t.keyword,r=t.searchStartDate,o=n||r?'<p><a href="">Resetta la ricerca</a></p>':"",i=[n&&'<h1 style="text-align:center; margin-bottom: .5rem;">Hai cercato <strong>"'.concat(y()(n),'"</strong></h1>'),o&&o].filter((function(t){return t})).join(""),a=!!n&&e;return _(p.a.Fragment,null,_(g.FiltersResults,{total:a,message:i}))}({events:c,total:a,keyword:n,searchStartDate:r,searchEndDate:o}),c&&c.length>0?_(g.EventsGrid,{samesize:"true",cards:c.map(j.m),CardComponent:S,vertical:!0}):_("div",null,"Questa ricerca non ha ottenuto risultati, prova a inserire parole chiave differenti."),e&&_(g.Padder,{size:"medium"},_(g.Button,{centered:!0,onClick:this.handleLoadMore},"Carica Altri Eventi"))))}}])}(f.Component),I=h.d.div.withConfig({displayName:"EventsGridLDC__EventsGridLDCWrapper",componentId:"sc-1p7vlau-0"})(["background-color:#f2f2f2;.EventsGrid-row{padding:1em 1em 0;}"]),A=Object(d.a)(m.e);e.a=A(x)},JN2i:function(t,e,n){"use strict";var r=n("pu3o"),o=n("oUmF"),i=n("f8sa"),a=n("ADPW"),c=n("rVun"),u=n("wGKE"),s=n("W89y");function l(t){this._options=["auth","endpoint","headers","username","password","nonce"].reduce((function(e,n){return t&&t[n]&&(e[n]=t[n]),e}),{}),this.transport=t&&t.transport,this._params={},this._supportedMethods=["head","get","put","post","delete"],this._path={}}function f(t){return t}function p(t){return t?s(t,(function(t,e,n){return void 0!==e&&null!==e&&""!==e&&(t[n]=e),t}),{}):t}function d(t,e){if(!t.reduce((function(t,n){return!n.validate||(t||n.validate(e))}),!1))throw new Error(["Invalid path component:",e,"does not match"+(t.length>1?" any of":""),t.reduce((function(t,e){return t.concat(e.component)}),[]).join(", ")].join(" "))}l.prototype._renderQuery=function(){var t,e=i({},p(this._params)),n=(t=this._taxonomyFilters)?s(t,(function(t,e,n){return t[n]=e.map((function(t){return(t+"").trim().toLowerCase()})).join("+"),t}),{}):{};e.filter=i({},p(this._filters),n);var o=r.stringify(e,{arrayFormat:"brackets"}).split("&").sort().join("&"),a=/\?/.test(this._options.endpoint)?"&":"?";return""===o?"":a+o},l.prototype._renderPath=function(){this.validatePath();var t=this._path,e=Object.keys(t).sort((function(t,e){return parseInt(t,10)-parseInt(e,10)})).map((function(e){return t[e]}));return[this._namespace].concat(e).filter(f).join("/")},l.prototype.toString=function(){var t=this._renderPath(),e=this._renderQuery();return this._options.endpoint+t+e},l.prototype.setPathPart=function(t,e){if(this._path[t])throw new Error("Cannot over
1write value "+this._path[t]);return this._path[t]=e,this},l.prototype.validatePath=function(){for(var t=Object.keys(this._path).map((function(t){return parseInt(t,10)})).filter((function(t){return!isNaN(t)})),e=Math.max.apply(null,t),n=[],r=!0,o=0;o<=e;o++)this._levels&&this._levels[o]&&(this._path[o]?(d(this._levels[o],this._path[o]),n.push(this._path[o])):(n.push(" ??? "),r=!1));if(!r)throw new Error("Incomplete URL! Missing component: /"+n.join("/"));return this},l.prototype.param=function(t,e){return!t||"string"===typeof t&&void 0===e||("string"===typeof t&&(t=c(t,e)),Object.keys(t).forEach(function(e){var n=t[e];Array.isArray(n)&&(n=o(n).sort(a)),this._params[e]=n}.bind(this))),this},l.prototype.context=u("context"),l.prototype.edit=function(){return this.context("edit")},l.prototype.embed=function(){return this.param("_embed",!0)},l.prototype.page=u("page"),l.prototype.perPage=u("per_page"),l.prototype.offset=u("offset"),l.prototype.order=u("order"),l.prototype.orderby=u("orderby"),l.prototype.search=u("search"),l.prototype.include=u("include"),l.prototype.exclude=u("exclude"),l.prototype.slug=u("slug"),l.prototype.namespace=function(t){return this._namespace=t,this},l.prototype.auth=function(t){return"object"===typeof t&&("string"===typeof t.username&&(this._options.username=t.username),"string"===typeof t.password&&(this._options.password=t.password),t.nonce&&(this._options.nonce=t.nonce)),this._options.auth=!0,this},l.prototype.file=function(t,e){return this._attachment=t,this._attachmentName=e||void 0,this},l.prototype.setHeaders=function(t,e){return"string"===typeof t&&(t=c(t,e)),this._options.headers=Object.assign({},this._options.headers||{},t),this},l.prototype.get=function(t){return this.transport.get(this,t)},l.prototype.headers=function(t){return this.transport.head(this,t)},l.prototype.create=function(t,e){return this.transport.post(this,t,e)},l.prototype.update=function(t,e){return this.transport.put(this,t,e)},l.prototype.delete=function(t,e){return this.transport.delete(this,t,e)},l.prototype.then=function(t,e){return this.transport.get(this).then(t,e)},t.exports=l},JTpX:function(t,e,n){"use strict";var r=n("9fIP"),o=n("MMYH"),i=n("K/z8"),a=n("sRHE"),c=n("8K1b"),u=n("ERkP"),s=n.n(u),l=n("voCV"),f=n("NAJH"),p=s.a.createElement;function d(t,e,n){return e=Object(a.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(a.a)(t).constructor):e.apply(t,n))}var h=function(t){function e(){return Object(r.a)(this,e),d(this,e,arguments)}return Object(c.a)(e,t),Object(o.a)(e,[{key:"componentDidMount",value:function(){this.script=document.createElement("script"),this.script.src="https://widget.qual.musement.com/bootstrap.js",this.script.async="async",this.script.id="m_widget_script",this.script.type="text/javascript",document.querySelector("body").appendChild(this.script)}},{key:"componentWillUnmount",value:function(){this.script.remove()}},{key:"render",value:function(){var t=this.props.widgetId;return p("div",null,p("div",{className:"MusementWidget","data-musement-widget":t}))}}])}(u.PureComponent);e.a=Object(l.a)(Object(f.a)(),Object(f.b)(),f.c,f.e,Object(f.d)([{prop:"widgetId",label:"ID widget"}]))(h)},JXgi:function(t,e,n){"use strict";e.a=function(t){if(!t)return null;var e=t.url_news;return{title:t.titolo,supertitle:"News",tag:"".concat(t.categoria&&t.categoria.descrizione||""),subtitle:t.dt_news,thumbnail:{url:t.image_featured||"//fai-website.imgix.net/static/placeholder_2.png"},link:"/news/".concat(e),content:t.abstract&&"".concat(t.abstract.slice(0,140),"...")}}},LPWu:function(t,e,n){"use strict";t.exports=function(t,e,n){t&&void 0===t[e]&&(t[e]=n)}},M3g4:function(t,e,n){"use strict";e.type=function(t){return t.split(/ *; */).shift()},e.params=function(t){return t.split(/ *; */).reduce((function(t,e){var n=e.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(t[r]=o),t}),{})},e.parseLinks=function(t){return t.split(/ *, */).reduce((function(t,e){var n=e.split(/ *; */),r=n[0].slice(1,-1);return t[n[1].split(/ *= */)[1].slice(1,-1)]=r,t}),{})},e.cleanHeader=function(t,e){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&(delete t.authorization,delete t.cookie),t}},MGb8:function(t,e,n){"use strict";var r,o=n("f8sa"),i=n("W89y"),a=n("lmq3"),c=n("Zqdi").build,u=n("kAk6").generate,s=n("C+Tx"),l=n("JN2i"),f=n("dcew");function p(t){if(this instanceof p===!1)return new p(t);if("string"!==typeof t.endpoint)throw new Error("options hash must contain an API endpoint URL string");return this._ns={},this._options={endpoint:t.endpoint.replace(/\/?$/,"/")},t&&(t.username||t.password||t.nonce)&&this.auth(t),this.transport(t.transport).bootstrap(t&&t.routes)}p.prototype.transport=function(t){var e=this._options;return e.transport||(e.transport=Object.create(p.transport)),["get","head","post","put","delete"].forEach((function(n){t&&t[n]&&(e.transport[n]=t[n])})),this},p.transport=Object.create(f),Object.freeze(p.transport),p.site=function(t,e){return new p({endpoint:t,routes:e})},p.prototype.url=function(t){var e=o({},this._options,{endpoint:t});return new l(e)},p.prototype.root=function(t){t=t||"";var e=o({},this._options),n=new l(e);return n._path={0:t},n},p.prototype.setHeaders=l.prototype.setHeaders,p.prototype.auth=l.prototype.auth,p.prototype.registerRoute=n("umxl"),p.prototype.bootstrap=function(t){var e,n;return t?(e=c(t),n=u(e)):(r||(e=c(a),r=u(e)),n=r),i(n,(function(t,e,n){return t._ns[n]=i(e,(function(t,e,n){return t[n]=e,t}),t._ns[n]||{_options:t._options}
1),"wp/v2"===n&&Object.keys(t._ns[n]).forEach((function(e){t[e]=t._ns[n][e]})),t}),this)},p.prototype.namespace=function(t){if(!this._ns[t])throw new Error("Error: namespace "+t+" is not recognized");return this._ns[t]},p.discover=function(t){var e,n=p.site(t).root();return n.headers().catch((function(){return n.get()})).then(s.locateAPIRootHeader).then((function(t){return e=t,p.site(t).root().get()})).then((function(t){return new p({endpoint:e,routes:t.routes})})).catch((function(t){if(console.error(t),e)return console.warn("Endpoint detected, proceeding despite error..."),console.warn("Binding to "+e+" and assuming default routes"),new p.site(e);throw new Error("Autodiscovery failed")}))},t.exports=p},NbfL:function(t,e,n){"use strict";var r=n("cxan"),o=n("9fIP"),i=n("MMYH"),a=n("K/z8"),c=n("sRHE"),u=n("8K1b"),s=n("ERkP"),l=n.n(s),f=n("voCV"),p=n("NAJH"),d=n("QtE3"),h=n("r4FT"),b=n("0D0S"),y=n.n(b)()().publicRuntimeConfig.WP_API,g=function(t){return h.a.get("".concat(y,"mrr/v1/menus/").concat(t)).then((function(t){return t.data})).catch((function(){return[]}))},m=n("aWzz"),v=n.n(m);function O(t,e,n){return e=Object(c.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(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(i.a)(e,[{key:"render",value:function(){return this.props.children(this.context.slug)}}])}(l.a.Component);j.contextTypes={slug:v.a.string};var w=j,_=l.a.createElement;function E(t,e,n){return e=Object(c.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(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=E(this,n)).state={tabs:[]},t.child=l.a.createRef(),t}return Object(u.a)(n,e),Object(i.a)(n,[{key:"componentDidMount",value:function(){this.props.data&&this.getData(this.props.data)}},{key:"componentWillReceiveProps",value:function(t){t.data&&this.getData(t.data)}},{key:"getData",value:function(t){var e=this;g(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 _(t,Object(r.a)({},this.props,{tabs:this.state.tabs,innerRef:this.child}))}}])}(s.Component);return e.displayName=Object(f.i)(t,"WithMenu"),e}))((function(t){var e=t.tabs,n=t.innerRef;return _(w,null,(function(t){var r=e.find((function(e){return e.href===t})),o=r&&r.id;return _(d.TabsNavigation,{tabs:e,selectedId:o,isMenu:!0,ref:n})}))}))},P3Rk:function(t,e,n){"use strict";t.exports=function(t,e,n){"function"!==typeof n||t[e]||(t[e]=n)}},Q2tY:function(t,e,n){"use strict";var r=n("M3g4");function o(t){if(t)return function(t){for(var e in o.prototype)t[e]=o.prototype[e];return t}(t)}t.exports=o,o.prototype.get=function(t){return this.header[t.toLowerCase()]},o.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=r.type(e);var n=r.params(e);for(var o in n)this[o]=n[o];this.links={};try{t.link&&(this.links=r.parseLinks(t.link))}catch(i){}},o.prototype._setStatusProperties=function(t){var e=t/100|0;this.status=this.statusCode=t,this.statusType=e,this.info=1==e,this.ok=2==e,this.redirect=3==e,this.clientError=4==e,this.serverError=5==e,this.error=(4==e||5==e)&&this.toError(),this.created=201==t,this.accepted=202==t,this.noContent=204==t,this.badRequest=400==t,this.unauthorized=401==t,this.notAcceptable=406==t,this.forbidden=403==t,this.notFound=404==t,this.unprocessableEntity=422==t}},QTtx:function(t,e,n){"use strict";var r=n("0KcG").pattern.replace(/([^\\])\(([^?])/g,"$1(?:$2"),o=new RegExp("([^/]*"+r+"[^/]*
1)");t.exports=function(t){return t.split(o).reduce((function(t,e){return e?o.test(e)?t.concat(e):t.concat(e.split("/").filter(Boolean)):t}),[])}},"SYP+":function(t,e,n){"use strict";var r=n("V/Lb"),o=n("cYYr"),i={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Array.isArray,c=Array.prototype.push,u=function(t,e){c.apply(t,a(e)?e:[e])},s=Date.prototype.toISOString,l={delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(t){return s.call(t)},skipNulls:!1,strictNullHandling:!1},f=function t(e,n,o,i,c,s,f,p,d,h,b,y){var g=e;if("function"===typeof f?g=f(n,g):g instanceof Date&&(g=h(g)),null===g){if(i)return s&&!y?s(n,l.encoder):n;g=""}if("string"===typeof g||"number"===typeof g||"boolean"===typeof g||r.isBuffer(g))return s?[b(y?n:s(n,l.encoder))+"="+b(s(g,l.encoder))]:[b(n)+"="+b(String(g))];var m,v=[];if("undefined"===typeof g)return v;if(a(f))m=f;else{var O=Object.keys(g);m=p?O.sort(p):O}for(var j=0;j<m.length;++j){var w=m[j];c&&null===g[w]||(a(g)?u(v,t(g[w],o(n,w),o,i,c,s,f,p,d,h,b,y)):u(v,t(g[w],n+(d?"."+w:"["+w+"]"),o,i,c,s,f,p,d,h,b,y)))}return v};t.exports=function(t,e){var n=t,c=e?r.assign({},e):{};if(null!==c.encoder&&"undefined"!==typeof c.encoder&&"function"!==typeof c.encoder)throw new TypeError("Encoder has to be a function.");var s="undefined"===typeof c.delimiter?l.delimiter:c.delimiter,p="boolean"===typeof c.strictNullHandling?c.strictNullHandling:l.strictNullHandling,d="boolean"===typeof c.skipNulls?c.skipNulls:l.skipNulls,h="boolean"===typeof c.encode?c.encode:l.encode,b="function"===typeof c.encoder?c.encoder:l.encoder,y="function"===typeof c.sort?c.sort:null,g="undefined"!==typeof c.allowDots&&c.allowDots,m="function"===typeof c.serializeDate?c.serializeDate:l.serializeDate,v="boolean"===typeof c.encodeValuesOnly?c.encodeValuesOnly:l.encodeValuesOnly;if("undefined"===typeof c.format)c.format=o.default;else if(!Object.prototype.hasOwnProperty.call(o.formatters,c.format))throw new TypeError("Unknown format option provided.");var O,j,w=o.formatters[c.format];"function"===typeof c.filter?n=(j=c.filter)("",n):a(c.filter)&&(O=j=c.filter);var _,E=[];if("object"!==typeof n||null===n)return"";_=c.arrayFormat in i?c.arrayFormat:"indices"in c?c.indices?"indices":"repeat":"indices";var P=i[_];O||(O=Object.keys(n)),y&&O.sort(y);for(var k=0;k<O.length;++k){var T=O[k];d&&null===n[T]||u(E,f(n[T],T,P,p,d,h?b:null,j,y,g,m,w,v))}var C=E.join(s),S=!0===c.addQueryPrefix?"?":"";return C.length>0?S+C:""}},TGUm:function(t,e,n){"use strict";var r=n("zygG"),o=n("HbGN"),i=n("zjfJ"),a=n("9fIP"),c=n("MMYH"),u=n("K/z8"),s=n("sRHE"),l=n("8K1b"),f=n("ERkP"),p=n("cr+I"),d=n.n(p),h=n("wuXC"),b=n.n(h),y=["ids"];function g(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?g(Object(n),!0).forEach((function(e){Object(i.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(t,e,n){return e=Object(s.a)(e),Object(u.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(s.a)(t).constructor):e.apply(t,n))}var O={origin:"",path:"",queryObject:{}},j=function(t){function e(t){var n;return Object(a.a)(this,e),(n=v(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(l.a)(e,t),Object(c.a)(e,[{key:"componentDidUpdate",value:function(t,e){var n=this.state.queryObject;b()(e.queryObject,n)||this.update()}},{key:"update",value:function(){var t=this.props.noUpdate,e=this.state.queryObject;if(!t){var n=e,i=n.ids,a=Object(o.a)(n,y);if(i)e=m(m({},i.reduce((function(t,e){if("string"===typeof e&&e.indexOf(!0)){var n=e.split(":"),o=Object(r.a)(n,2),i=o[0],a=o[1];t[i]=t[i]||[],t[i].push(a)}else t.ids=t.ids||[],t.ids.push(e);return t}),{})),a);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},"V/Lb":function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,o=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),i=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)"undefined"!==typeof t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:i,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var o=e[r],i=o.obj[o.prop],a=Object.keys(i),c=0;c<a.length;++c){var u=a[c],s=i[u];"object"===typeof s&&null!==s&&-1===n.indexOf(s)&&(e.push({obj:i,prop:u}),n.push(s))}return function(t){for(var e;t.length;){var n=t.pop();if(e=n.obj[n.prop],Array.isArray(e)){for(var r=[],o=0;o<e.length;++o)"undefined"!==typeof e[o]&&r.push(e[o]);n.obj[n.prop]=r}}return e}(e)},decode:function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},encode:function(t){if(0===t.length)return t;for(var e="string"===typeof t?t:String(t),n="",r=0;r<e.length;++r){var i=e.charCodeAt(r);45===i||46===i||95===i||126===i||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?n+=e.charAt(r):i<128?n+=o[i]:i<2048?n+=o[192|i>>6]+o[128|63&i]:i<55296||i>=57344?n+=o[224|i>>12]+o[128|i>>6&63]+o[128|63&i]:(r+=1,i=65536+((1023&i)<<10|1023&e.charCodeAt(r)),n+=o[240|i>>18]+o[128|i>>12&63]+o[128|i>>6&63]+o[128|63&i])}return n},isBuffer:function(t){return null!==t&&"undefined"!==typeof t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},merge:function t(e,n,o){if(!n)return e;if("object"!==typeof n){if(Array.isArray(e))e.push(n);else{if(!e||"object"!==typeof e)return[e,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!==typeof e)return[e].concat(n);var a=e;return Array.isArray(e)&&!Array.isArray(n)&&(a=i(e,o)),Array.isArray(e)&&Array.isArray(n)?(n.forEach((function(n,i){if
1(r.call(e,i)){var a=e[i];a&&"object"===typeof a&&n&&"object"===typeof n?e[i]=t(a,n,o):e.push(n)}else e[i]=n})),e):Object.keys(n).reduce((function(e,i){var a=n[i];return r.call(e,i)?e[i]=t(e[i],a,o):e[i]=a,e}),a)}}},W89y:function(t,e,n){"use strict";t.exports=function(t,e,n){return Object.keys(t).reduce((function(n,r){return e(n,t[r],r)}),n)}},WTvm:function(t,e,n){(function(t,n){var r="[object Arguments]",o="[object Array]",i="[object Boolean]",a="[object Map]",c="[object Object]",u="[object Set]",s="[object DataView]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,f=/^\w*$/,p=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,b=/^\[object .+?Constructor\]$/,y=/^(?:0|[1-9]\d*)$/,g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g[r]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g["[object Error]"]=g["[object Function]"]=g[a]=g["[object Number]"]=g[c]=g["[object RegExp]"]=g[u]=g["[object String]"]=g["[object WeakMap]"]=!1;var m="object"==typeof t&&t&&t.Object===Object&&t,v="object"==typeof self&&self&&self.Object===Object&&self,O=m||v||Function("return this")(),j=e&&!e.nodeType&&e,w=j&&"object"==typeof n&&n&&!n.nodeType&&n,_=w&&w.exports===j&&m.process,E=function(){try{return _&&_.binding("util")}catch(t){}}(),P=E&&E.isTypedArray;function k(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function T(t,e){for(var n=-1,r=t?t.length:0,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function C(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function S(t,e){for(var n=-1,r=t?t.length:0;++n<r;)if(e(t[n],n,t))return!0;return!1}function x(t){return function(e){return t(e)}}function I(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function A(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function L(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var D,F,R=Array.prototype,N=Function.prototype,G=Object.prototype,M=O["__core-js_shared__"],B=function(){var t=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),z=N.toString,U=G.hasOwnProperty,H=G.toString,q=RegExp("^"+z.call(U).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=O.Symbol,V=O.Uint8Array,K=G.propertyIsEnumerable,Y=R.splice,Q=W?W.isConcatSpreadable:void 0,J=(D=Object.keys,F=Object,function(t){return D(F(t))}),X=Math.max,$=Dt(O,"DataView"),Z=Dt(O,"Map"),tt=Dt(O,"Promise"),et=Dt(O,"Set"),nt=Dt(O,"WeakMap"),rt=Dt(Object,"create"),ot=qt($),it=qt(Z),at=qt(tt),ct=qt(et),ut=qt(nt),st=W?W.prototype:void 0,lt=st?st.valueOf:void 0,ft=st?st.toString:void 0;function pt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function dt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ht(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function bt(t){var e=-1,n=t?t.length:0;for(this.__data__=new ht;++e<n;)this.add(t[e])}function yt(t){this.__data__=new dt(t)}function gt(t,e){var n=Qt(t)||Yt(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],r=n.length,o=!!r;for(var i in t)!e&&!U.call(t,i)||o&&("length"==i||Nt(i,r))||n.push(i);return n}function mt(t,e){for(var n=t.length;n--;)if(Kt(t[n][0],e))return n;return-1}pt.prototype.clear=function(){this.__data__=rt?rt(null):{}},pt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},pt.prototype.get=function(t){var e=this.__data__;if(rt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return U.call(e,t)?e[t]:void 0},pt.prototype.has=function(t){var e=this.__data__;return rt?void 0!==e[t]:U.call(e,t)},pt.prototype.set=function(t,e){return this.__data__[t]=rt&&void 0===e?"__lodash_hash_undefined__":e,this},dt.prototype.clear=function(){this.__data__=[]},dt.prototype.delete=function(t){var e=this.__data__,n=mt(e,t);return!(n<0)&&(n==e.length-1?e.pop():Y.call(e,n,1),!0)},dt.prototype.get=function(t){var e=this.__data__,n=mt(e,t);return n<0?void 0:e[n][1]},dt.prototype.has=function(t){return mt(this.__data__,t)>-1}
1,dt.prototype.set=function(t,e){var n=this.__data__,r=mt(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},ht.prototype.clear=function(){this.__data__={hash:new pt,map:new(Z||dt),string:new pt}},ht.prototype.delete=function(t){return Lt(this,t).delete(t)},ht.prototype.get=function(t){return Lt(this,t).get(t)},ht.prototype.has=function(t){return Lt(this,t).has(t)},ht.prototype.set=function(t,e){return Lt(this,t).set(t,e),this},bt.prototype.add=bt.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},bt.prototype.has=function(t){return this.__data__.has(t)},yt.prototype.clear=function(){this.__data__=new dt},yt.prototype.delete=function(t){return this.__data__.delete(t)},yt.prototype.get=function(t){return this.__data__.get(t)},yt.prototype.has=function(t){return this.__data__.has(t)},yt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof dt){var r=n.__data__;if(!Z||r.length<199)return r.push([t,e]),this;n=this.__data__=new ht(r)}return n.set(t,e),this};var vt,Ot,jt=(vt=function(t,e){return t&&wt(t,e,re)},function(t,e){if(null==t)return t;if(!Jt(t))return vt(t,e);for(var n=t.length,r=Ot?n:-1,o=Object(t);(Ot?r--:++r<n)&&!1!==e(o[r],r,o););return t});var wt=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===n(i[u],u,i))break}return e}}();function _t(t,e){for(var n=0,r=(e=Mt(e,t)?[e]:xt(e)).length;null!=t&&n<r;)t=t[Ht(e[n++])];return n&&n==r?t:void 0}function Et(t,e){return null!=t&&e in Object(t)}function Pt(t,e,n,l,f){return t===e||(null==t||null==e||!Zt(t)&&!te(e)?t!==t&&e!==e:function(t,e,n,l,f,p){var d=Qt(t),h=Qt(e),b=o,y=o;d||(b=(b=Ft(t))==r?c:b);h||(y=(y=Ft(e))==r?c:y);var g=b==c&&!I(t),m=y==c&&!I(e),v=b==y;if(v&&!g)return p||(p=new yt),d||ne(t)?At(t,e,n,l,f,p):function(t,e,n,r,o,c,l){switch(n){case s:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new V(t),new V(e)));case i:case"[object Date]":case"[object Number]":return Kt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case a:var f=A;case u:var p=2&c;if(f||(f=L),t.size!=e.size&&!p)return!1;var d=l.get(t);if(d)return d==e;c|=1,l.set(t,e);var h=At(f(t),f(e),r,o,c,l);return l.delete(t),h;case"[object Symbol]":if(lt)return lt.call(t)==lt.call(e)}return!1}(t,e,b,n,l,f,p);if(!(2&f)){var O=g&&U.call(t,"__wrapped__"),j=m&&U.call(e,"__wrapped__");
1if(O||j){var w=O?t.value():t,_=j?e.value():e;return p||(p=new yt),n(w,_,l,f,p)}}if(!v)return!1;return p||(p=new yt),function(t,e,n,r,o,i){var a=2&o,c=re(t),u=c.length,s=re(e).length;if(u!=s&&!a)return!1;var l=u;for(;l--;){var f=c[l];if(!(a?f in e:U.call(e,f)))return!1}var p=i.get(t);if(p&&i.get(e))return p==e;var d=!0;i.set(t,e),i.set(e,t);var h=a;for(;++l<u;){var b=t[f=c[l]],y=e[f];if(r)var g=a?r(y,b,f,e,t,i):r(b,y,f,t,e,i);if(!(void 0===g?b===y||n(b,y,r,o,i):g)){d=!1;break}h||(h="constructor"==f)}if(d&&!h){var m=t.constructor,v=e.constructor;m==v||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof v&&v instanceof v||(d=!1)}return i.delete(t),i.delete(e),d}(t,e,n,l,f,p)}(t,e,Pt,n,l,f))}function kt(t){return!(!Zt(t)||function(t){return!!B&&B in t}(t))&&(Xt(t)||I(t)?q:b).test(qt(t))}function Tt(t){return"function"==typeof t?t:null==t?oe:"object"==typeof t?Qt(t)?function(t,e){if(Mt(t)&&Bt(e))return zt(Ht(t),e);return function(n){var r=function(t,e,n){var r=null==t?void 0:_t(t,e);return void 0===r?n:r}(n,t);return void 0===r&&r===e?function(t,e){return null!=t&&function(t,e,n){e=Mt(e,t)?[e]:xt(e);var r,o=-1,i=e.length;for(;++o<i;){var a=Ht(e[o]);if(!(r=null!=t&&n(t,a)))break;t=t[a]}if(r)return r;return!!(i=t?t.length:0)&&$t(i)&&Nt(a,i)&&(Qt(t)||Yt(t))}(t,e,Et)}(n,t):Pt(e,r,void 0,3)}}(t[0],t[1]):function(t){var e=function(t){var e=re(t),n=e.length;for(;n--;){var r=e[n],o=t[r];e[n]=[r,o,Bt(o)]}return e}(t);if(1==e.length&&e[0][2])return zt(e[0][0],e[0][1]);return function(n){return n===t||function(t,e,n,r){var o=n.length,i=o,a=!r;if(null==t)return!i;for(t=Object(t);o--;){var c=n[o];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<i;){var u=(c=n[o])[0],s=t[u],l=c[1];if(a&&c[2]){if(void 0===s&&!(u in t))return!1}else{var f=new yt;if(r)var p=r(s,l,u,t,e,f);if(!(void 0===p?Pt(l,s,r,3,f):p))return!1}}return!0}(n,t,e)}}(t):function(t){return Mt(t)?(e=Ht(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return _t(e,t)}}(t);var e}(t)}function Ct(t){if(!function(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||G;return t===n}(t))return J(t);var e=[];for(var n in Object(t))U.call(t,n)&&"constructor"!=n&&e.push(n);return e}function St(t,e,n){var r=-1;return e=T(e.length?e:[oe],x(Tt)),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(function(t,e){var n=-1,r=Jt(t)?Array(t.length):[];return jt(t,(function(t,o,i){r[++n]=e(t,o,i)})),r}(t,(function(t,n,o){return{criteria:T(e,(function(e){return e(t)})),index:++r,value:t}})),(function(t,e){return function(t,e,n){var r=-1,o=t.criteria,i=e.criteria,a=o.length,c=n.length;for(;++r<a;){var u=It(o[r],i[r]);if(u)return r>=c?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function xt(t){return Qt(t)?t:Ut(t)}function It(t,e){if(t!==e){var n=void 0!==t,r=null===t,o=t===t,i=ee(t),a=void 0!==e,c=null===e,u=e===e,s=ee(e);
1if(!c&&!s&&!i&&t>e||i&&a&&u&&!c&&!s||r&&a&&u||!n&&u||!o)return 1;if(!r&&!i&&!s&&t<e||s&&n&&o&&!r&&!i||c&&n&&o||!a&&o||!u)return-1}return 0}function At(t,e,n,r,o,i){var a=2&o,c=t.length,u=e.length;if(c!=u&&!(a&&u>c))return!1;var s=i.get(t);if(s&&i.get(e))return s==e;var l=-1,f=!0,p=1&o?new bt:void 0;for(i.set(t,e),i.set(e,t);++l<c;){var d=t[l],h=e[l];if(r)var b=a?r(h,d,l,e,t,i):r(d,h,l,t,e,i);if(void 0!==b){if(b)continue;f=!1;break}if(p){if(!S(e,(function(t,e){if(!p.has(e)&&(d===t||n(d,t,r,o,i)))return p.add(e)}))){f=!1;break}}else if(d!==h&&!n(d,h,r,o,i)){f=!1;break}}return i.delete(t),i.delete(e),f}function Lt(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function Dt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return kt(n)?n:void 0}var Ft=function(t){return H.call(t)};function Rt(t){return Qt(t)||Yt(t)||!!(Q&&t&&t[Q])}function Nt(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||y.test(t))&&t>-1&&t%1==0&&t<e}function Gt(t,e,n){if(!Zt(n))return!1;var r=typeof e;return!!("number"==r?Jt(n)&&Nt(e,n.length):"string"==r&&e in n)&&Kt(n[e],t)}function Mt(t,e){if(Qt(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ee(t))||(f.test(t)||!l.test(t)||null!=e&&t in Object(e))}function Bt(t){return t===t&&!Zt(t)}function zt(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}($&&Ft(new $(new ArrayBuffer(1)))!=s||Z&&Ft(new Z)!=a||tt&&"[object Promise]"!=Ft(tt.resolve())||et&&Ft(new et)!=u||nt&&"[object WeakMap]"!=Ft(new nt))&&(Ft=function(t){var e=H.call(t),n=e==c?t.constructor:void 0,r=n?qt(n):void 0;if(r)switch(r){case ot:return s;case it:return a;case at:return"[object Promise]";case ct:return u;case ut:return"[object WeakMap]"}return e});var Ut=Vt((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(ee(t))return ft?ft.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var n=[];return p.test(t)&&n.push(""),t.replace(d,(function(t,e,r,o){n.push(r?o.replace(h,"$1"):e||t)})),n}));function Ht(t){if("string"==typeof t||ee(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}function qt(t){if(null!=t){try{return z.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Wt=function(t,e){return e=X(void 0===e?t.length-1:e,0),function(){for(var n=arguments,r=-1,o=X(n.length-e,0),i=Array(o);++r<o;)i[r]=n[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=n[r];return a[e]=i,k(t,this,a)}}((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Gt(t,e[0],e[1])?e=[]:n>2&&Gt(e[0],e[1],e[2])&&(e=[e[0]]),St(t,function t(e,n,r,o,i){var a=-1,c=e.length;for(r||(r=Rt),i||(i=[]);++a<c;){var u=e[a];n>0&&r(u)?n>1?t(u,n-1,r,o,i):C(i,u):o||(i[i.length]=u)}return i}(e,1),[])}));function Vt(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);
vendor: 9,847 bytes, line 1
1var a=t.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(Vt.Cache||ht),n}function Kt(t,e){return t===e||t!==t&&e!==e}function Yt(t){return function(t){return te(t)&&Jt(t)}(t)&&U.call(t,"callee")&&(!K.call(t,"callee")||H.call(t)==r)}Vt.Cache=ht;var Qt=Array.isArray;function Jt(t){return null!=t&&$t(t.length)&&!Xt(t)}function Xt(t){var e=Zt(t)?H.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function $t(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Zt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function te(t){return!!t&&"object"==typeof t}function ee(t){return"symbol"==typeof t||te(t)&&"[object Symbol]"==H.call(t)}var ne=P?x(P):function(t){return te(t)&&$t(t.length)&&!!g[H.call(t)]};function re(t){return Jt(t)?gt(t):Ct(t)}function oe(t){return t}n.exports=Wt}).call(this,n("lpmq"),n("EIeC")(t))},X0EA:function(t,e,n){(function(t,n){var r="[object Arguments]",o="[object Array]",i="[object Boolean]",a="[object Map]",c="[object Object]",u="[object Set]",s="[object DataView]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,f=/^\w*$/,p=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,b=/^\[object .+?Constructor\]$/,y=/^(?:0|[1-9]\d*)$/,g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g[r]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g["[object Error]"]=g["[object Function]"]=g[a]=g["[object Number]"]=g[c]=g["[object RegExp]"]=g[u]=g["[object String]"]=g["[object WeakMap]"]=!1;var m="object"==typeof t&&t&&t.Object===Object&&t,v="object"==typeof self&&self&&self.Object===Object&&self,O=m||v||Function("return this")(),j=e&&!e.nodeType&&e,w=j&&"object"==typeof n&&n&&!n.nodeType&&n,_=w&&w.exports===j&&m.process,E=function(){try{return _&&_.binding("util")}catch(t){}}(),P=E&&E.isTypedArray;function k(t,e,n,r){for(var o=-1,i=t?t.length:0;++o<i;){var a=t[o];e(r,a,n(a),t)}return r}function T(t,e){for(var n=-1,r=t?t.length:0;++n<r;)if(e(t[n],n,t))return!0;return!1}function C(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function S(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function x(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var I,A,L=Array.prototype,D=Function.prototype,F=Object.prototype,R=O["__core-js_shared__"],N=function(){var t=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),G=D.toString,M=F.hasOwnProperty,B=F.toString,z=RegExp("^"+G.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),U=O.Symbol,H=O.Uint8Array,q=F.propertyIsEnumerable,W=L.splice,V=(I=Object.keys,A=Object,function(t){return I(A(t))}),K=Ct(O,"DataView"),Y=Ct(O,"Map"),Q=Ct(O,"Promise"),J=Ct(O,"Set"),X=Ct(O,"WeakMap"),$=Ct(Object,"create"),Z=Rt(K),tt=Rt(Y),et=Rt(Q),nt=Rt(J),rt=Rt(X),ot=U?U.prototype:void 0,it=ot?ot.valueOf:void 0,at=ot?ot.toString:void 0;function ct(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ut(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function st(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function lt(t){var e=-1,n=t?t.length:0;for(this.__data__=new st;++e<n;)this.add(t[e])}function ft(t){this.__data__=new ut(t)}function pt(t,e){var n=Ht(t)||Ut(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],r=n.length,o=!!r;for(var i in t)!e&&!M.call(t,i)||o&&("length"==i||xt(i,r))||n.push(i);return n}function dt(t,e){for(var n=t.length;n--;)if(zt(t[n][0],e))return n;return-1}function ht(t,e,n,r){return gt(t,(function(t,o,i){e(r,t,n(t),i)})),r}ct.prototype.clear=function(){this.__data__=$?$(null):{}},ct.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},ct.prototype.get=function(t){var e=this.__data__;if($){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return M.call(e,t)?e[t]:void 0},ct.prototype.has=function(t){var e=this.__data__;return $?void 0!==e[t]:M.call(e,t)},ct.prototype.set=function(t,e){return this.__data__[t]=$&&void 0===e?"__lodash_hash_undefined__":e,this},ut.prototype.clear=function(){this.__data__=[]},ut.prototype.delete=function(t){var e=this.__data__,n=dt(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),!0)},ut.prototype.get=function(t){var e=this.__data__,n=dt(e,t);return n<0?void 0:e[n][1]},ut.prototype.has=function(t){return dt(this.__data__,t)>-1},ut.prototype.set=function(t,e){var n=this.__data__,r=dt(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},st.prototype.clear=function(){this.__data__={hash:new ct,map:new(Y||ut),string:new ct}},st.prototype.delete=function(t){return Tt(this,t).delete(t)},st.prototype.get=function(t){return Tt(this,t).get(t)},st.prototype.has=function(t){return Tt(this,t).has(t)},st.prototype.set=function(t,e){return Tt(this,t).set(t,e),this},lt.prototype.add=lt.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},lt.prototype.has=function(t){return this.__data__.has(t)},ft.prototype.clear=function(){this.__data__=new ut},ft.prototype.delete=function(t){return this.__data__.delete(t)},ft.prototype.get=function(t){return this.__data__.get(t)},ft.prototype.has=function(t){return this.__data__.has(t)},ft.prototype.set=function(t,e){var n=this.__data__;if(n instanceof ut){var r=n.__data__;if(!Y||r.length<199)return r.push([t,e]),this;n=this.__data__=new st(r)}return n.set(t,e),this};var bt,yt,gt=(bt=function(t,e){return t&&mt(t,e,Xt)},function(t,e){if(null==t)return t;if(!qt(t))return bt(t,e);for(var n=t.length,r=yt?n:-1,o=Object(t);(yt?r--:++r<n)&&!1!==e(o[r],r,o););return t}),mt=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===n(i[u],u,i))break}return e}}();function vt(t,e){for(var n=0,r=(e=It(e,t)?[e]:Pt(e)).length;null!=t&&n<r;)t=t[Ft(e[n++])];return n&&n==r?t:void 0}function Ot(t,e){return null!=t&&e in Object(t)}function jt(t,e,n,l,f){return t===e||(null==t||null==e||!Kt(t)&&!Yt(e)?t!==t&&e!==e:function(t,e,n,l,f,p){var d=Ht(t),h=Ht(e),b=o,y=o;d||(b=(b=St(t))==r?c:b);h||(y=(y=St(e))==r?c:y);var g=b==c&&!C(t),m=y==c&&!C(e),v=b==y;if(v&&!g)return p||(p=new ft),d||Jt(t)?kt(t,e,n,l,f,p):function(t,e,n,r,o,c,l){switch(n){case s:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new H(t),new H(e)));case i:case"[object Date]":case"[object Number]":return zt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case a:var f=S;case u:var p=2&c;if(f||(f=x),t.size!=e.size&&!p)return!1;var d=l.get(t);if(d)return d==e;c|=1,l.set(t,e);var h=kt(f(t),f(e),r,o,c,l);return l.delete(t),h;case"[object Symbol]":if(it)return it.call(t)==it.call(e)}return!1}(t,e,b,n,l,f,p);if(!(2&f)){var O=g&&M.call(t,"__wrapped__"),j=m&&M.call(e,"__wrapped__");if(O||j){var w=O?t.value():t,_=j?e.value():e;return p||(p=new ft),n(w,_,l,f,p)}}if(!v)return!1;return p||(p=new ft),function(t,e,n,r,o,i){var a=2&o,c=Xt(t),u=c.length,s=Xt(e).length;if(u!=s&&!a)return!1;var l=u;for(;l--;){var f=c[l];if(!(a?f in e:M.call(e,f)))return!1}var p=i.get(t);if(p&&i.get(e))return p==e;var d=!0;i.set(t,e),i.set(e,t);var h=a;for(;++l<u;){var b=t[f=c[l]],y=e[f];if(r)var g=a?r(y,b,f,e,t,i):r(b,y,f,t,e,i);if(!(void 0===g?b===y||n(b,y,r,o,i):g)){d=!1;break}h||(h="constructor"==f)}if(d&&!h){var m=t.constructor,v=e.constructor;m==v||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof v&&v instanceof v||(d=!1)}return i.delete(t),i.delete(e),d}(t,e,n,l,f,p)}(t,e,jt,n,l,f))}function wt(t){return!(!Kt(t)||function(t){return!!N&&N in t}(t))&&(Wt(t)||C(t)?z:b).test(Rt(t))}function _t(t){return"function"==typeof t?t:null==t?$t:"object"==typeof t?Ht(t)?function(t,e){if(It(t)&&At(e))return Lt(Ft(t),e);return function(n){var r=function(t,e,n){var r=null==t?void 0:vt(t,e);return void 0===r?n:r}(n,t);return void 0===r&&r===e?function(t,e){return null!=t&&function(t,e,n){e=It(e,t)?[e]:Pt(e);var r,o=-1,i=e.length;for(;++o<i;){var a=Ft(e[o]);if(!(r=null!=t&&n(t,a)))break;t=t[a]}if(r)return r;return!!(i=t?t.length:0)&&Vt(i)&&xt(a,i)&&(Ht(t)||Ut(t))}(t,e,Ot)}(n,t):jt(e,r,void 0,3)}}(t[0],t[1]):function(t){var e=function(t){var e=Xt(t),n=e.length;for(;n--;){var r=e[n],o=t[r];e[n]=[r,o,At(o)]}return e}(t);if(1==e.length&&e[0][2])return Lt(e[0][0],e[0][1]);return function(n){return n===t||function(t,e,n,r){var o=n.length,i=o,a=!r;if(null==t)return!i;for(t=Object(t);o--;){var c=n[o];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<i;){var u=(c=n[o])[0],s=t[u],l=c[1];if(a&&c[2]){if(void 0===s&&!(u in t))return!1}else{var f=new ft;if(r)var p=r(s,l,u,t,e,f);if(!(void 0===p?jt(l,s,r,3,f):p))return!1}}return!0}(n,t,e)}}(t):function(t){return It(t)?(e=Ft(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return vt(e,t)}}(t);var e}(t)}function Et(t){if(!function(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||F;return t===n}(t))return V(t);var e=[];for(var n in Object(t))M.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Pt(t){return Ht(t)?t:Dt(t)}function kt(t,e,n,r,o,i){var a=2&o,c=t.length,u=e.length;if(c!=u&&!(a&&u>c))return!1;var s=i.get(t);if(s&&i.get(e))return s==e;var l=-1,f=!0,p=1&o?new lt:void 0;for(i.set(t,e),i.set(e,t);++l<c;){var d=t[l],h=e[l];
1if(r)var b=a?r(h,d,l,e,t,i):r(d,h,l,t,e,i);if(void 0!==b){if(b)continue;f=!1;break}if(p){if(!T(e,(function(t,e){if(!p.has(e)&&(d===t||n(d,t,r,o,i)))return p.add(e)}))){f=!1;break}}else if(d!==h&&!n(d,h,r,o,i)){f=!1;break}}return i.delete(t),i.delete(e),f}function Tt(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function Ct(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return wt(n)?n:void 0}var St=function(t){return B.call(t)};function xt(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||y.test(t))&&t>-1&&t%1==0&&t<e}function It(t,e){if(Ht(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Qt(t))||(f.test(t)||!l.test(t)||null!=e&&t in Object(e))}function At(t){return t===t&&!Kt(t)}function Lt(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}(K&&St(new K(new ArrayBuffer(1)))!=s||Y&&St(new Y)!=a||Q&&"[object Promise]"!=St(Q.resolve())||J&&St(new J)!=u||X&&"[object WeakMap]"!=St(new X))&&(St=function(t){var e=B.call(t),n=e==c?t.constructor:void 0,r=n?Rt(n):void 0;if(r)switch(r){case Z:return s;case tt:return a;case et:return"[object Promise]";case nt:return u;case rt:return"[object WeakMap]"}return e});var Dt=Bt((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(Qt(t))return at?at.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var n=[];return p.test(t)&&n.push(""),t.replace(d,(function(t,e,r,o){n.push(r?o.replace(h,"$1"):e||t)})),n}));function Ft(t){if("string"==typeof t||Qt(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}function Rt(t){if(null!=t){try{return G.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Nt,Gt,Mt=(Nt=function(t,e,n){M.call(t,n)?++t[n]:t[n]=1},function(t,e){var n=Ht(t)?k:ht,r=Gt?Gt():{};return n(t,Nt,_t(e),r)});function Bt(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);
vendor: 4,524 bytes, line 1
1var a=t.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(Bt.Cache||st),n}function zt(t,e){return t===e||t!==t&&e!==e}function Ut(t){return function(t){return Yt(t)&&qt(t)}(t)&&M.call(t,"callee")&&(!q.call(t,"callee")||B.call(t)==r)}Bt.Cache=st;var Ht=Array.isArray;function qt(t){return null!=t&&Vt(t.length)&&!Wt(t)}function Wt(t){var e=Kt(t)?B.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function Vt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Kt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Yt(t){return!!t&&"object"==typeof t}function Qt(t){return"symbol"==typeof t||Yt(t)&&"[object Symbol]"==B.call(t)}var Jt=P?function(t){return function(e){return t(e)}}(P):function(t){return Yt(t)&&Vt(t.length)&&!!g[B.call(t)]};function Xt(t){return qt(t)?pt(t):Et(t)}function $t(t){return t}n.exports=Mt}).call(this,n("lpmq"),n("EIeC")(t))},XLvf:function(t,e,n){(function(t){var r=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++)n[e[r]]=Object.getOwnPropertyDescriptor(t,e[r]);return n},o=/%[sdj%]/g;e.format=function(t){if(!g(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(c(arguments[n]));return e.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(t).replace(o,(function(t){if("%%"===t)return"%";if(n>=i)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return t}})),u=r[n];n<i;u=r[++n])b(u)||!O(u)?a+=" "+u:a+=" "+c(u);return a},e.deprecate=function(n,r){if("undefined"!==typeof t&&!0===t.noDeprecation)return n;if("undefined"===typeof t)return function(){return e.deprecate(n,r).apply(this,arguments)};var o=!1;return function(){if(!o){if(t.throwDeprecation)throw new Error(r);t.traceDeprecation?console.trace(r):console.error(r),o=!0}return n.apply(this,arguments)}};var i,a={};function c(t,n){var r={seen:[],stylize:s};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&e._extend(r,n),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,t,r.depth)}function u(t,e){var n=c.styles[e];return n?"\x1b["+c.colors[n][0]+"m"+t+"\x1b["+c.colors[n][1]+"m":t}function s(t,e){return t}function l(t,n,r){if(t.customInspect&&n&&_(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,t);return g(o)||(o=l(t,o,r)),o}var i=function(t,e){if(m(e))return t.stylize("undefined","undefined");if(g(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(y(e))return t.stylize(""+e,"number");if(h(e))return t.stylize(""+e,"boolean");if(b(e))return t.stylize("null","null")}(t,n);if(i)return i;var a=Object.keys(n),c=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),w(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(_(n)){var u=n.name?": "+n.name:"";return t.stylize("[Function"+u+"]","special")}if(v(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(j(n))return t.stylize(Date.prototype.toString.call(n),"date");if(w(n))return f(n)}var s,O="",E=!1,P=["{","}"];(d(n)&&(E=!0,P=["[","]"]),_(n))&&(O=" [Function"+(n.name?": "+n.name:"")+"]");return v(n)&&(O=" "+RegExp.prototype.toString.call(n)),j(n)&&(O=" "+Date.prototype.toUTCString.call(n)),w(n)&&(O=" "+f(n)),0!==a.length||E&&0!=n.length?r<0?v(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),s=E?function(t,e,n,r,o){for(var i=[],a=0,c=e.length;a<c;++a)C(e,String(a))?i.push(p(t,e,n,r,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(p(t,e,n,r,o,!0))})),i}(t,n,r,c,a):a.map((function(e){return p(t,n,r,c,e,E)})),t.seen.pop(),function(t,e,n){if(t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(s,O,P)):P[0]+O+P[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,n,r,o,i){var a,c,u;if((u=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?c=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(c=t.stylize("[
1Setter]","special")),C(r,o)||(a="["+o+"]"),c||(t.seen.indexOf(u.value)<0?(c=b(n)?l(t,u.value,null):l(t,u.value,n-1)).indexOf("\n")>-1&&(c=i?c.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+c.split("\n").map((function(t){return" "+t})).join("\n")):c=t.stylize("[Circular]","special")),m(a)){if(i&&o.match(/^\d+$/))return c;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+c}function d(t){return Array.isArray(t)}function h(t){return"boolean"===typeof t}function b(t){return null===t}function y(t){return"number"===typeof t}function g(t){return"string"===typeof t}function m(t){return void 0===t}function v(t){return O(t)&&"[object RegExp]"===E(t)}function O(t){return"object"===typeof t&&null!==t}function j(t){return O(t)&&"[object Date]"===E(t)}function w(t){return O(t)&&("[object Error]"===E(t)||t instanceof Error)}function _(t){return"function"===typeof t}function E(t){return Object.prototype.toString.call(t)}function P(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(m(i)&&(i=t.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(i)){var r=t.pid;a[n]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",n,r,t)}}else a[n]=function(){};return a[n]},e.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=h,e.isNull=b,e.isNullOrUndefined=function(t){return null==t},e.isNumber=y,e.isString=g,e.isSymbol=function(t){return"symbol"===typeof t},e.isUndefined=m,e.isRegExp=v,e.isObject=O,e.isDate=j,e.isError=w,e.isFunction=_,e.isPrimitive=function(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t},e.isBuffer=n("72zh");var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(){var t=new Date,e=[P(t.getHours()),P(t.getMinutes()),P(t.getSeconds())].join(":");return[t.getDate(),k[t.getMonth()],e].join(" ")}function C(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",T(),e.format.apply(e,arguments))},e.inherits=n("cwbO"),e._extend=function(t,e){if(!e||!O(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t};var S="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function x(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');if(S&&t[S]){var e;if("function"!==typeof(e=t[S]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,S,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,r=new Promise((function(t,r){e=t,n=r})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(t,r){t?n(t):e(r)}));try{t.apply(this,o)}catch(a){n(a)}return r}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),S&&Object.defineProperty(e,S,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,r(t))},e.promisify.custom=S,e.callbackify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var o=n.pop();if("function"!==typeof o)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return o.apply(i,arguments)};e.apply(this,n).then((function(e){t.nextTick(a,null,e)}),(function(e){t.nextTick(x,e,a)}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),Object.defineProperties(n,r(e)),n}}).call(this,n("F63i"))},Xi74:function(t,e,n){"use strict";n.r(e);var r=n("zjfJ"),o=n("QsI/"),i=n("cxan"),a=n("9fIP"),c=n("MMYH"),u=n("K/z8"),s=n("sRHE"),l=n("8K1b"),f=n("ERkP"),p=n.n(f),d=n("0D0S"),h=n.n(d),b=n("QtE3"),y=n("r4FT"),g=n("MJc2"),m=n.n(g),v=n("uPMs"),O=n("xSgY"),j=n("Lm5w"),w=n("zygG"),_=n("fGyu"),E=n("HbGN"),P=n("10AO"),k=n.n(P),T=["search","comune","regione","provincia","lat","lng","nearby","ids"];function C(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 S(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?C(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var x=function(t){return t.reduce((function(t,e){return t.concat(Array.isArray(e)?x(e):e)}),[])},I=function(t){var e=t.search,n=t.comune,r=t.provincia,o=t.regione,i=t.lat,a=t.lng,c=t.nearby,u=t.fl_gruppo_fai,s=t.fl_segr_reg,l=t.fl_delegazione,f=t.fl_faigiovani,p=t.fl_ponte,d=t.page,h=[];c&&i&&a&&(h.push("radius[coords]=".concat(parseFloat(i).toFixed(2),",").concat(parseFloat(a).toFixed(2))),h.push("radius[distance]=100"));var b=[e&&e.length>=3&&"titolo=%25".concat(e,"%25|LIKE"),n&&"comune.nome=".concat(n),r&&"provincia.nome=".concat(r),o&&"regione.nome=".concat(o),u&&"fl_gruppo_fai=1",s&&"fl_segr_reg=1",l&&"fl_delegazione=1",f&&"fl_faigiovani=1",p&&"fl_ponte=1",d&&"page=".concat(d),h];return x(b).filter((function(t){return t})).join("&")},A=n("cXXW"),L=n("FAGI"),D=n("TGUm"),F=n("D/vV"),R=n("j/s1"),N=n("fN3Q"),G=n.n(N),M=p.a.createElement,B=function(t){var e=t.handleSearch,n=t.search,r=(t.comune,t.provincia,t.regione,t.selectedOptions),o=t.tipologie,i=t.checkIfShowError,a=t.meta,c=t.handleShowMap,u=t.showMap,s={id:G()(),type:"dropdown",name:"Tipologie",radio:!0,groups:[{options:o.map((function(t){return{id:t.id,name:t.tipologia}}))}]};return M(b.Background,{color:"white"},M(z,null,M(U,null,M(q,null,M(W,{active:!u,onClick:function(t){return c(!1)}},"Lista"),M(W,{active:u,onClick:function(t){return c(!0)}},"Mappa"))),M(H,null,M(b.FiltersBar,{searchPlaceholder:"Cerca per nome o luogo",disabled:u,error:a&&a.queryError,onChange:e,searchValue:n,selectedOptions:r,model:[s],checkIfShowError:i}))))},z=R.d.div.withConfig({displayName:"FilterBar__FlexContainer",componentId:"sc-1ydppmz-0"})(["display:flex;flex-flow:row wrap;background:white;max-width:1440px;margin:auto;min-height:68px;"]),U=R.d.div.withConfig({displayName:"FilterBar__FlexChildBtn",componentId:"sc-1ydppmz-1"})(["flex:200px 0 0;"]),H=R.d.div.withConfig({displayName:"FilterBar__FlexChild",componentId:"sc-1ydppmz-2"})(["flex-grow:0;@media screen and (min-width:1024px){flex-grow:1;}"]),q=R.d.div.withConfig({displayName:"FilterBar__FlexButtonsContainer",componentId:"sc-1ydppmz-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})),W=R.d.div.withConfig({displayName:"FilterBar__FlexButton",componentId:"sc-1ydppmz-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})),V=n("tTwn"),K=n.n(V),Y=p.a.createElement,Q=function(t){var e=t.total,n=t.keyword,r=t.reset,o=!!n&&e;return Y(b.FiltersResults,{total:o},n&&Y(J,null,"Hai cercato",Y("strong",null,'"',K()(n),'"')),n&&Y("p",null,Y(X,{href:"#",onClick:r},"Resetta la ricerca")))},J=R.d.h1.withConfig({displayName:"FilterResults__SearchText",componentId:"sc-1w5ep0y-0"})(["text-align:center !important;margin-bottom:0.5rem !important;"]),X=R.d.button.withConfig({displayName:"FilterResults__Reset",componentId:"sc-1w5ep0y-1"})(["background:none !important;color:#e74f30;border:none;padding:0 !important;border-bottom:1px solid #e74f30;cursor:pointer;font-size:1rem;"]),$=(p.a.createElement,n("6qMH"),n("voCV")),Z=n("Ai6V"),tt=n("ndhu"),et=n("6780"),nt=n("QqxL"),rt=n("lYJj"),ot=(n("cj0A"),n("cr+I")),it=p.a.createElement;function at(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return ct(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&
1(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(ct(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,ct(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,ct(f,"constructor",s),ct(s,"constructor",u),u.displayName="GeneratorFunction",ct(s,o,"GeneratorFunction"),ct(f),ct(f,o,"Generator"),ct(f,r,(function(){return this})),ct(f,"toString",(function(){return"[object Generator]"})),(at=function(){return{w:i,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 i(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:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function ut(t,e,n){return e=Object(s.a)(e),Object(u.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(s.a)(t).constructor):e.apply(t,n))}var st=h()().publicRuntimeConfig,lt=st.PLATFORM,ft=st.GOOGLE_MAPS_API_KEY,pt=function(t){function e(t){var n;return Object(a.a)(this,e),n=ut(this,e,[t]),Object(r.a)(n,"handleMarkerClick",(function(t){n.state.selectedMarker===t?n.handleCloseInfoWindow():n.setState({selectedMarker:t})})),Object(r.a)(n,"handleMarkerMouseover",(function(t){1===t.count&&n.setState({activeMarker:t.id})})),Object(r.a)(n,"handleCloseInfoWindow",(function(){n.setState({selectedMarker:!1})})),Object(r.a)(n,"handleInfoWindowElement",(function(t){var e=n.props.openPage,r=t.id;e({slug:t.slug,id:r})})),Object(r.a)(n,"loadMoreRows",function(){var t=Object(o.a)(at().m((function t(e){return at().w((function(t){for(;;)switch(t.n){case 0:e.startIndex,e.stopIndex;case 1:return t.a(2)}}),t)})));return function(e){return t.apply(this,arguments)}}()),n.state={zoom:t.zoom||6,center:t.center||{lat:42.261167,lng:12.8806503},elements:[],elementsIds:[],selectedMarker:!1,activeMarker:!1,status:null,selectedOptions:t.selectedOptions||""},n.getMapRef=function(t){t&&!n.map&&(n.map=t)},n}return Object(l.a)(e,t),Object(c.a)(e,[{key:"componentDidUpdate",value:function(){var t=Object(o.a)(at().m((function t(e){return at().w((function(t){for(;;)switch(t.n){case 0:if(e.selectedOptions===this.props.selectedOptions){t.n=1;break}return t.n=1,this.compute(this.props.selectedOptions);case 1:return t.a(2)}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"componentDidMount",value:function(){var t=Object(o.a)(at().m((function t(){var e;return at().w((function(t){for(;;)switch(t.n){case 0:return e=this.props.selectedOptions,t.n=1,this.compute(e);case 1:return t.a(2)}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"compute",value:function(){var t=Object(o.a)(at().m((function t(){var e,n,r,o,i,a=arguments;return at().w((function(t){for(;;)switch(t.n){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:"",this.setState({status:"LOADING"}),t.n=1,this.fetch(e);case 1:n=t.v,r=n.map((function(t){return t.id})),o="coord_geo_lat",i=this.groupByElements(n,o),this.setState({elements:n,elementsIds:r,elementsGroupedBy:i,status:"LOADED"});case 2:return t.a(2)}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"fetch",value:function(){var t=Object(o.a)(at().m((function t(){var e,n,r,o,i,a=arguments;return at().w((function(t){for(;;)switch(t.n){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:"",n=this.props.baseUrl,t.n=1,y.a.get("".concat(n).concat(e&&"&".concat(e)));case 1:return r=t.v,o=r.data.data,i=o.filter((function(t){return null!==t.coord_geo_lat})),t.a(2,i)}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"groupByElements",value:function(t,e){var r;return Object.values((r=t,n("Rj53")(r,e))).map((function(t){return 1===t.length?t[0]:t}))}},{key:"handleZoomChange",value:function(){this.setState({zoom:this.map.getZoom()})}},{key:"handleBoundsChange",value:function(){var t=Object(o.a)(at().m((function t(){var e,n,r,o,i;return at().w((function(t){for(;;)switch(t.n){case 0:return e=this.getBounds(),n=e.boundingBox,r=n.map((function(t){return t?parseFloat(t).toFixed(2):0})).join(","),t.n=1,y.a.get("".concat(lt,"/luoghi?&bbox=").concat(r,"&").concat(this.props.bboxQuery||"","&limit=200")).then((function(t){return t.data.data.filter((function(t){return null!==t.coord_geo_lat})).map((function(t){return t.id}))}));case 1:o=t.v,i=Object(ot.stringify)({id_luogo:o},{arrayFormat:"bracket"}),this.compute(this.props.selectedOptions+"&"+i);case 2:return t.a(2)}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"getBounds",value:function(){var t=this.map.getBounds(),e=[t.getNorthEast().lat(),t.getNorthEast().lng(),t.getSouthWest
1().lat(),t.getSouthWest().lng()];return{bounds:t,boundingBox:e,zoom:this.map.getZoom()}}},{key:"render",value:function(){var t=this.state,e=t.zoom,n=t.center,r=t.selectedMarker,o=t.elements,i=t.elementsGroupedBy,a=t.elementsIds,c=t.activeMarker,u=t.status,s=this.props,l=s.getPage,f=s.isMobile,p=s.explodeClusters,d=s.itemsLegend,h=void 0===d?[]:d,b=s.makeCard,y=s.withGroupBy,g=s.keyword,m=s.reset;return it(bt,null,!f&&it(rt.a,{withVotes:!1,getPage:l,luoghi:o,elementsIds:a,loadMoreRows:this.loadMoreRows,jumpTo:c,activeMarker:c,makeCard:b,status:u,keyword:g,reset:m}),it(nt.a,{explodeClusters:p,itemsLegend:h,zoom:e,center:n,onMarkerInteraction:this.handleMarkerClick,onMarkerMouseOver:this.handleMarkerMouseover,selectedMarker:r,onCloseInfoWindow:this.handleCloseInfoWindow,onInfoWindowElement:this.handleInfoWindowElement,elements:y?i||[]:o||[],getMapRef:this.getMapRef,onZoomChanged:this.handleZoomChange.bind(this),handleBoundsChange:this.handleBoundsChange.bind(this)}))}}])}(f.Component),dt=Object($.a)(Object($.g)({googleMapURL:"https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=geometry,drawing,places&key=".concat(ft),loadingElement:it("div",{style:{height:"100%"}}),containerElement:it("div",{style:{height:"100%",width:"100%"}})}),Z.withScriptjs)(pt),ht=function(t){return it(et.a,{getPage:t.getPage},(function(e){var n=e.handleCardClick;return it(tt.a,{query:"(min-width: 1180px)"},(function(e){return it(dt,Object(i.a)({},t,{isMobile:!e,openPage:n}))}))}))},bt=R.d.div.withConfig({displayName:"SearchStatic__MapContainer",componentId:"sc-1jbtq8y-0"})(["height:80vh;display:flex;"]),yt=function(t){var e=t.id,n=t.titolo,r=t.slug,o=t.onClick;return{id:e,title:n,small:!0,link:"/luoghi/rete-fai/".concat(r),target:"_self",slug:r,onClick:o}},gt=["comune","provincia","regione"],mt=p.a.createElement;function vt(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return Ot(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(Ot(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Ot(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,Ot(f,"constructor",s),Ot(s,"constructor",u),u.displayName="GeneratorFunction",Ot(s,o,"GeneratorFunction"),Ot(f),Ot(f,o,"Generator"),Ot(f,r,(function(){return this})),Ot(f,"toString",(function(){return"[object Generator]"})),(vt=function(){return{w:i,m:p}})()}function Ot(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(Ot=function(t,e,n,r){function i(e,n){Ot(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:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function jt(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 wt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?jt(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _t(t,e,n){return e=Object(s.a)(e),Object(u.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(s.a)(t).constructor):e.apply(t,n))}var Et=h()().publicRuntimeConfig,Pt=Et.PLATFORM,kt=(Et.APP_DOMAIN,function(t){return mt(b.CardDelegazione,Object(i.a)({},t,{LinkComponent:m.a}))}),Tt=function(t){function e(t){var n;return Object(a.a)(this,e),n=_t(this,e,[t]),Object(r.a)(n,"handleSearch",(function(t){var e=n.props,r=e.setQueryString,o=e.queryObject,i=o.comune,a=o.provincia,c=o.regione,u=o.showMap,s=e.requestLocation,l=e.coords,f=t.selectedOptions,p=t.search,d=f&&f.length&&"geolocation"===f.find((function(t){return"geolocation"===t}));if(d&&!l)return"function"===typeof s&&s();var h=function(t){var e=t.search,n=t.selectedOptions,r=t.comune,o=t.provincia,i=t.regione,a=t.showMap,c=n.reduce((function(t,e){return"showMap"===e||(t[e]=!0),t}),{});return k()(S(S({},c),{},{search:e,comune:r,provincia:o,regione:i,showMap:a}),(function(t){return!!t}))}(wt(wt({},t),{},{comune:i,provincia:a,regione:c,showMap:u}));r(wt(wt({},h),d?wt(wt({},l),{},{nearby:!0}):{}),!0),n.setState({showResult:!0,search:p})})),Object(r.a)(n,"checkIfShowError",(function(){var t=n.state.search;return t&&t.length<3?(n.setState({meta:{queryError:"Devi scrivere almeno 3 caratteri"}}),!0):(n.setState({meta:{queryError:null}}),!1)})),Object(r.a)(n,"resetSearch",(function(){var t=n.props.setQueryString;n.setState({search:null}),t({},!0)})),Object(r.a)(n,"handleLoadMore",(function(){n.props.loadMore()})),Object(r.a)(n,"handleShowMap",(function(t){var e=n.props,r=e.setQueryString,o=e.queryObject;o.comune,o.provincia,o.regione;r(wt(wt({},Object(E.a)(o,gt)),{},{showMap:t}),!0)})),n.state={delegazioni:[],canLoadMore:null},n}return Object(l.a)(e,t),Object(c.a)(e,[{key:"componentDidMount",value:function(){var t=Object(o.a)(vt().m((function t(){var e;return vt().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.computeTipologie();case 1:e=t.v,this.setState({itemsLegend:e});case 2:return t.a(2)}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"componentDidUpdate",value:function(t,e){var n=this.props.coords;!t.coords&&n&&this.handleLocation()}},{key:"handleLocation",value:function(){var t=this.props,e=t.coords;(0,t.setQueryString)(wt(wt({},e),{},{nearby:!0}))}},{key:"computeTipologie",value:function(){var t=Object(o.a)(vt().m((function t(){var e,n;return vt().w((function(t){for(;;)switch(t.n){case 0:return e=this.props.tipologie,n=this.createLegend(e),t.a(2,n)}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"createLegend",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=t.map((function(t,e){return{colore_mappa:t.colore_mappa,legenda_mappa:t.tipologia}})),n="Luoghi con pi\xf9 presidi";return e.push({colore_mappa:"#811620",legenda_mappa:n.toUpperCase()}),e}},{key:"render",value:function(){var t=this.props,e=t.loading,r=t.queryObject,o=(t.setQueryString,t.tipologie),a=t.Page,c=this.state,u=c.meta,s=c.delegazioni,l=c.canLoadMore,p=c.total,d=c.itemsLegend,h=(r.comune,r.provincia,r.regione,r.showMap),y=void 0!==h&&h,g=r.search,m=this.state.search||g;return mt(f.Fragment,null,mt(b.Background,{color:"grey"},mt(B,Object(i.a)({},function(t){var e=t.search,n=t.comune,r=t.regione,o=t.provincia,i=(t.lat,t.lng,t.nearby),a=t.ids,c=Object(E.a)(t,T);return{search:e,comune:n,provincia:o,regione:r,selectedOptions:[].concat(Object(_.a)(i?["geolocation"]:[]),Object(_.a)(Object.entries(c).map((function(t){var e=Object(w.a)(t,2),n=e[0];return e[1],n})).filter((function(t){return t}))),Object(_.a)(a?a.map((function(t){return parseInt(t,10)})):[]))}}(r),{tipologie:o,handleSearch:this.handleSearch,checkIfShowError:this.checkIfShowError,meta:u,handleShowMap:this.handleShowMap,showMap:y,search:m||""})),e&&mt(b.Loading,null),y?mt(f.Fragment,null,mt(ht,{explodeClusters:!0,itemsLegend:d,getPage:n.e(97).then(n.bind(null,"2RFG")),selectedOptions:I(r),baseUrl:"".concat(Pt,"/rete?limit=400"),makeCard:yt,bboxQuery:"has=delegazione",withGroupBy:!0})):mt(f.Fragment,null,mt(a,null),m&&mt(Q,{total:p,keyword:m,reset:this.resetSearch}),mt(b.ListOfCards,{wrap:"big",cards:s.map(O.a),CardComponent:kt,vertical:!0}),l&&mt(b.Padder,{size:"medium"},mt(b.Button,{centered:!0,onClick:this.handleLoadMore},"Carica Altri")))))}}],[{key:"getDerivedStateFromProps",value:function(t,e){return{delegazioni:t.delegazioni,canLoadMore:t.canLoadMore,total:t.total}}}])}(f.Component),Ct=n("241S"),St=n("Yler"),xt=p.a.createElement;function It(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return At(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&
1(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(At(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,At(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,At(f,"constructor",s),At(s,"constructor",u),u.displayName="GeneratorFunction",At(s,o,"GeneratorFunction"),At(f),At(f,o,"Generator"),At(f,r,(function(){return this})),At(f,"toString",(function(){return"[object Generator]"})),(It=function(){return{w:i,m:p}})()}function At(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(At=function(t,e,n,r){function i(e,n){At(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:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function Lt(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 Dt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Lt(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ft(t,e,n){return e=Object(s.a)(e),Object(u.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(s.a)(t).constructor):e.apply(t,n))}var Rt=h()().publicRuntimeConfig,Nt=Rt.PLATFORM,Gt=Rt.APP_DOMAIN,Mt=Rt.LARAVEL,Bt=function(t){var e=t.page,n=t.queryObject,r=I(n);return y.a.get("".concat(Nt,"/rete?with=luogo&limit=21&").concat(r&&"&".concat(r),"&page=").concat(e,"&orderby=id_tipologia,titolo")).then((function(t){return t.data})).then((function(t){return{items:t.data,nextPage:t.next_page_url,total:t.total}}))},zt=Object(Ct.a)((function(t){return y.a.get("".concat(Mt,"/wp-page/luoghi/rete-fai")).then((function(t){return t.data}))}),St.a,null,!1,!1),Ut=function(t){function e(t){return Object(a.a)(this,e),Ft(this,e,[t])}return Object(l.a)(e,t),Object(c.a)(e,[{key:"render",value:function(){var t=this,e=this.props,n=e.title,r=e.seo,o=e.hasBuildablePage,a=function(){return o?xt(zt,t.props):null};return xt(v.a,{seo:r,hasFasciaSupporto:!0},xt(b.Hero,{title:n,subtitle:"In ogni regione d'Italia",LinkComponent:m.a,backgroundImage:{url:"//fai-website.imgix.net/static/rete.jpg"},breadCrumbs:[["/","Home"],["/luoghi/","Luoghi"],["/luoghi/rete-fai","La rete del FAI"]],seo:r}),xt(b.Background,{color:"grey"},xt(A.a,null,(function(e){var n=e.requestLocation,r=e.coords;return xt(F.a,null,(function(e){return xt(D.a,{queryString:e},(function(e){var o=e.getQueryObject,c=e.setQueryString;return xt(L.a,{apiRequest:Bt,queryObject:o()},(function(e){var u=e.items,s=e.loadMore,l=e.nextPage,f=e.total,p=e.working;return xt(Tt,Object(i.a)({},t.props,{requestLocation:n,coords:r,total:f,queryObject:o(),delegazioni:u,canLoadMore:l,loadMore:s,loading:p,setQueryString:c,Page:a}))}))}))}))})),xt(b.FasciaNewsletterApp,null)))}}],[{key:"getInitialProps",value:function(){var t=Object(o.a)(It().m((function t(e){var n,r,o,i,a,c,u;return It().w((function(t){for(;;)switch(t.n){case 0:return e.req,t.n=1,zt.getInitialProps(e);case 1:return n=t.v,r="Una rete di volontari speciali",t.n=2,y.a.get("".concat(Nt,"/rete/tipologie"));case 2:return o=t.v,i=o.data.data,a=["fl_segr_reg","fl_delegazione","fl_gruppo_fai","fl_faigiovani","fl_ponte"],c=i.map((function(t,e){return{id:a[e],tipologia:t.tipologia,colore_mappa:t.colore_mappa}}
1)),u={title:"".concat(r," | FAI - Fondo Ambiente Italiano"),url:"".concat(Gt,"/rete-fai")},t.a(2,Dt(Dt({},404!==n.statusCode?n:{}),{},{hasBuildablePage:404!==n.statusCode,title:r,seo:u,tipologie:c}))}}),t)})));return function(e){return t.apply(this,arguments)}}()}])}(f.Component);e.default=Object(j.b)(Ut)},Y2eU:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/delegazioni",function(){return n("Xi74")}])},YY8h:function(t,e,n){"use strict";var r=n("cxan"),o=n("9fIP"),i=n("MMYH"),a=n("K/z8"),c=n("sRHE"),u=n("8K1b"),s=n("ERkP"),l=n.n(s),f=n("QtE3"),p=n("Ehz4"),d=n("bAhH"),h=l.a.createElement;function b(t,e,n){return e=Object(c.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(c.a)(t).constructor):e.apply(t,n))}var y=function(t){function e(){return Object(o.a)(this,e),b(this,e,arguments)}return Object(u.a)(e,t),Object(i.a)(e,[{key:"render",value:function(){var t=this,e=this.props,n=e.id,o=e.title,i=e.id_comitato,a=e.slug,c=e.handleCardClick,u=e.fixedStatus,s=e.anchor,l=e.luogoSalvato,b=e.votesDisabled;return h(p.a,{id:n,title:o,id_comitato:i,slug:a},(function(e){var o=e.status,i=e.tokenId,p=u||o,y=b?null:function(){return h(d.a,Object(r.a)({},t.props,e))},g=l?"/luoghi/".concat(a,"?luogoSalvato").concat(s||""):"/luoghi/".concat(a,"?ldc").concat(s||"");return h(f.VoteCard,Object(r.a)({},t.props,{link:g,onClick:"function"===typeof c?function(){return c({slug:a,id:n,url:g})}:null,status:p,tokenId:i,renderButton:y,luogoSalvato:l}))}))}}])}(l.a.Component);e.a=y},Yler:function(t,e,n){"use strict";var r=n("QsI/"),o=n("MGb8"),i=n.n(o),a=n("ynZC"),c=n("0D0S");function u(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,l=Object.create(u.prototype);return s(l,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),l}var a={};function c(){}function l(){}function f(){}e=Object.getPrototypeOf;var p=[][r]?e(e([][r]())):(s(e={},r,(function(){return this})),e),d=f.prototype=c.prototype=Object.create(p);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,s(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=f,s(d,"constructor",f),s(f,"constructor",l),l.displayName="GeneratorFunction",s(f,o,"GeneratorFunction"),s(d),s(d,o,"Generator"),s(d,r,(function(){return this})),s(d,"toString",(function(){return"[object Generator]"})),(u=function(){return{w:i,m:h}})()}function s(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(s=function(t,e,n,r){function i(e,n){s(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:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}var l=n.n(c)()().publicRuntimeConfig.WP_API,f=function(){var t=Object(r.a)(u().m((function t(e,n){var r,o;return u().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,Object(a.a)();case 1:return r=t.v,o=new i.a({endpoint:l,nonce:r}),t.a(2,o.pages().id(n).update({content:JSON.stringify(e)}))}}),t)})));return function(e,n){return t.apply(this,arguments)}}();e.a=f},Zqdi:function(t,e,n){"use strict";var r=n("0KcG").namedGroupRE,o=n("QTtx"),i=n("LPWu"),a=n("W89y");function c(t,e,n,o,i,a){var c=o.match(r),u=c&&c[1],s=c&&c[2],l=c?s||u:o,f=c?u:o,p=n[l]||{component:o,namedGroup:!!c,level:i,names:[]};p.names.indexOf(f)<0&&p.names.push(f);var d=""===s?/.*/:new RegExp(s?"^"+s+"$":o,"i");return p.validate=function(t){return d.test(t)},a[i+1]?p.children=p.children||{}:(p.methods=(t.methods||[]).map((function(t){return t.toLowerCase()})),p.methods.indexOf("get")>-1&&-1===p.methods.indexOf("head")&&p.methods.push("head"),t.endpoints&&(e._getArgs=e._getArgs||{}
1,t.endpoints.forEach((function(t){t.methods.forEach((function(n){"get"===n.toLowerCase()&&Object.keys(t.args).forEach((function(n){e._getArgs[n]=t.args[n]}))}))})))),n[l]=p,p.children}function u(t,e,n){var r=e.namespace,a=n.replace("/"+r+"/","").replace(/\/\?$/,""),u=o(a);if(!r||"/"+r===n||!a)return t;i(t,r,{});var s=t[r],l=u[0];i(s,l,{});var f=s[l];return u.reduce(c.bind(null,e,f),f),t}t.exports={build:function(t){return a(t,u,{})}}},agKL:function(t,e,n){(function(e,r){var o;o=function(){"use strict";function t(t){return"function"===typeof t}var o=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=0,a=void 0,c=void 0,u=function(t,e){b[i]=t,b[i+1]=e,2===(i+=2)&&(c?c(y):g())},s="undefined"!==typeof window?window:void 0,l=s||{},f=l.MutationObserver||l.WebKitMutationObserver,p="undefined"===typeof self&&"undefined"!==typeof e&&"[object process]"==={}.toString.call(e),d="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel;function h(){var t=setTimeout;return function(){return t(y,1)}}var b=new Array(1e3);function y(){for(var t=0;t<i;t+=2)(0,b[t])(b[t+1]),b[t]=void 0,b[t+1]=void 0;i=0}var g=void 0;function m(t,e){var n=arguments,r=this,o=new this.constructor(j);void 0===o[O]&&F(o);var i=r._state;return i?function(){var t=n[i-1];u((function(){return L(i,o,t,r._result)}))}():S(r,o,t,e),o}function v(t){if(t&&"object"===typeof t&&t.constructor===this)return t;var e=new this(j);return P(e,t),e}g=p?function(){return e.nextTick(y)}:f?function(){var t=0,e=new f(y),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}():d?function(){var t=new MessageChannel;return t.port1.onmessage=y,function(){return t.port2.postMessage(0)}}():void 0===s?function(){try{var t=n(0);return a=t.runOnLoop||t.runOnContext,function(){a(y)}}catch(e){return h()}}():h();var O=Math.random().toString(36).substring(16);function j(){}var w=new I;function _(t){try{return t.then}catch(e){return w.error=e,w}}function E(e,n,r){n.constructor===e.constructor&&r===m&&n.constructor.resolve===v?function(t,e){1===e._state?T(t,e._result):2===e._state?C(t,e._result):S(e,void 0,(function(e){return P(t,e)}),(function(e){return C(t,e)}))}(e,n):r===w?C(e,w.error):void 0===r?T(e,n):t(r)?function(t,e,n){u((function(t){var r=!1,o=function(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}(n,e,(function(n){r||(r=!0,e!==n?P(t,n):T(t,n))}),(function(e){r||(r=!0,C(t,e))}),t._label);!r&&o&&(r=!0,C(t,o))}),t)}(e,n,r):T(e,n)}function P(t,e){var n;t===e?C(t,new TypeError("You cannot resolve a promise with itself")):"function"===typeof(n=e)||"object"===typeof n&&null!==n?E(t,e,_(e)):T(t,e)}function k(t){t._onerror&&t._onerror(t._result),x(t)}function T(t,e){void 0===t._state&&(t._result=e,t._state=1,0!==t._subscribers.length&&u(x,t))}function C(t,e){void 0===t._state&&(t._state=2,t._result=e,u(k,t))}function S(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+1]=n,o[i+2]=r,0===i&&t._state&&u(x,t)}function x(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,o=void 0,i=t._result,a=0;a<e.length;a+=3)r=e[a],o=e[a+n],r?L(n,r,o,i):o(i);t._subscribers.length=0}}function I(){this.error=null}var A=new I;function L(e,n,r,o){var i=t(r),a=void 0,c=void 0,u=void 0,s=void 0;if(i){if((a=function(t,e){try{return t(e)}catch(n){return A.error=n,A}}(r,o))===A?(s=!0,c=a.error,a=null):u=!0,n===a)return void C(n,new TypeError("A promises callback cannot return that same promise."))}else a=o,u=!0;void 0!==n._state||(i&&u?P(n,a):s?C(n,c):1===e?T(n,a):2===e&&C(n,a))}var D=0;function F(t){t[O]=D++,t._state=void 0,t._result=void 0,t._subscribers=[]}function R(t,e){this._instanceConstructor=t,this.promise=new t(j),this.promise[O]||F(this.promise),o(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?T(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&T(this.promise,this._result))):C(this.promise,new Error("Array Methods must be provided an Array"))}function N(t){this[O]=D++,this._result=this._state=void 0,this._subscribers=[],j!==t&&("function"!==typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof N?function(t,e){try{e((function(e){P(t,e)}),(function(e){C(t,e)}))}catch(n){C(t,n)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object c
1onstructor cannot be called as a function.")}())}function G(){var t=void 0;if("undefined"!==typeof r)t=r;else if("undefined"!==typeof self)t=self;else try{t=Function("return this")()}catch(o){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var n=null;try{n=Object.prototype.toString.call(e.resolve())}catch(o){}if("[object Promise]"===n&&!e.cast)return}t.Promise=N}return R.prototype._enumerate=function(){for(var t=this.length,e=this._input,n=0;void 0===this._state&&n<t;n++)this._eachEntry(e[n],n)},R.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===v){var o=_(t);if(o===m&&void 0!==t._state)this._settledAt(t._state,e,t._result);else if("function"!==typeof o)this._remaining--,this._result[e]=t;else if(n===N){var i=new n(j);E(i,t,o),this._willSettleAt(i,e)}else this._willSettleAt(new n((function(e){return e(t)})),e)}else this._willSettleAt(r(t),e)},R.prototype._settledAt=function(t,e,n){var r=this.promise;void 0===r._state&&(this._remaining--,2===t?C(r,n):this._result[e]=n),0===this._remaining&&T(r,this._result)},R.prototype._willSettleAt=function(t,e){var n=this;S(t,void 0,(function(t){return n._settledAt(1,e,t)}),(function(t){return n._settledAt(2,e,t)}))},N.all=function(t){return new R(this,t).promise},N.race=function(t){var e=this;return o(t)?new e((function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)})):new e((function(t,e){return e(new TypeError("You must pass an array to race."))}))},N.resolve=v,N.reject=function(t){var e=new this(j);return C(e,t),e},N._setScheduler=function(t){c=t},N._setAsap=function(t){u=t},N._asap=u,N.prototype={constructor:N,then:m,catch:function(t){return this.then(null,t)}},G(),N.polyfill=G,N.Promise=N,N},t.exports=o()}).call(this,n("F63i"),n("lpmq"))},b4Fh:function(t,e,n){"use strict";var r=n("/oUt"),o=n("8I/T"),i={categories:{categories:o.categories,category:o.category},categories_exclude:{excludeCategories:o.excludeCategories},tags:{tags:o.tags,tag:o.tag},tags_exclude:{excludeTags:o.excludeTags},filter:r,post:{post:o.post,forPost:o.post}};["after","author","before","parent","password","status","sticky"].forEach((function(t){i[t]={},i[t][t]=o[t]})),t.exports=i},bwcf:function(t,e,n){"use strict";t.exports=function(t){if("object"!==typeof t)return!1;if(Array.isArray(t))return!1;for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}},c63D:function(t,e,n){"use strict";var r=n("ERkP"),o=n.n(r),i=n("6780"),a=o.a.createElement;e.a=function(t){return a(i.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"),i=n("o2OV");e.a=Object(r.b)((function(t){return{coords:Object(i.c)(t),status:Object(i.d)(t),code:Object(i.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})}))},cYYr:function(t,e,n){"use strict";var r=String.prototype.replace,o=/%20/g;t.exports={default:"RFC3986",formatters:{RFC1738:function(t){return r.call(t,o,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},cwbO:function(t,e){"function"===typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},dMso:function(t,e,n){function r(t){if(t)return function(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}(t)}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];
1if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<r.length;o++)if((n=r[o])===e||n.fn===e){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+t],this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,e)}return this},r.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},r.prototype.hasListeners=function(t){return!!this.listeners(t).length}},dZSc:function(t,e,n){var r,o,i,a;i=function(){var t=/^;\s*([^"=]+)=(?:"([^"]+)"|([^";,]+)(?:[;,]|$))/,e=/^<([^>]*)>/,n=/^\s*,\s*/;return{parse:function(r,o){for(var i,a,c,u=o&&o.extended||!1,s=[];r&&(r=r.trim(),a=e.exec(r));){for(var l={link:a[1]},f=(r=r.slice(a[0].length)).match(n);r&&(!f||f.index>0)&&(i=t.exec(r));)f=(r=r.slice(i[0].length)).match(n),"rel"===i[1]||"rev"===i[1]?(c=(i[2]||i[3]).split(/\s+/),l[i[1]]=c):l[i[1]]=i[2]||i[3];s.push(l),r=r.replace(n,"")}return u?s:s.reduce((function(t,e){return e.rel&&e.rel.forEach((function(n){t[n]=e.link})),t}),{})},stringify:function(t){var e=Object.keys(t).reduce((function(e,n){return e[t[n]]=e[t[n]]||[],e[t[n]].push(n),e}),{});return Object.keys(e).reduce((function(t,n){return t.concat("<"+n+'>; rel="'+e[n].join(" ")+'"')}),[]).join(", ")}}},a=this,t.exports?t.exports=i():"function"==typeof a.define&&a.define.amd?void 0===(o="function"===typeof(r=i)?r.call(e,n,e,t):r)||(t.exports=o):a.li=i()},dcew:function(t,e,n){"use strict";var r=n("agKL").Promise,o=n("sxWj"),i=n("dZSc").parse,a=n("cRaD"),c=n("JN2i"),u=n("r3iB"),s=n("f8sa"),l=n("W89y"),f=n("bwcf");function p(t,e){return e.headers?l(e.headers,(function(t,e,n){return t.set(n,e)}),t):t}function d(t,e,n){if(!n&&!e.auth&&!e.nonce)return t;if(e.nonce)return t.set("X-WP-Nonce",e.nonce),t;var r=r||e.username,o=o||e.password;return r&&o?t.auth(r,o):t}function h(t,e){var n=a.parse(t);return e=a.parse(e,!0),n.query=e.query,n.search=e.search,n.pathname=e.pathname,a.format(n)}function b(t,e,n){return new r((function(e,n){t.end((function(t,r){t||r.error?n(t||r.error):e(r)}))})).then(n).then((function(t){return e&&"function"===typeof e&&e(null,t),t}),(function(t){if(t.response&&t.response.body&&t.response.body.code&&(t=t.response.body),!e||"function"!==typeof e)throw t;e(t)}))}function y(t,e){var n=function(t){var e=t.body;if(f(e)&&"text/html"===t.type)try{e=JSON.parse(t.text)}catch(n){}return e}(e),r=function(t,e,n){var r=null;if(!t.headers||!t.headers["x-wp-totalpages"])return r;var o=t.headers["x-wp-totalpages"];if(!o||"0"===o)return r;var a=t.headers.link?i(t.headers.link):{};r={total:t.headers["x-wp-total"],totalPages:o,links:a};var u=e.endpoint;return a.next&&(r.next=new c(s({},e,{transport:n,endpoint:h(u,a.next)}))),a.prev&&(r.prev=new c(s({},e,{transport:n,endpoint:h(u,a.prev)}))),r}(e,t._options,t.transport);return r&&(n._paging=r),n}function g(t){return t.headers}t.exports={delete:function(t,e,n){n||"function"!==typeof e||(n=e,e=null),u("delete",t);var r=t.toString(),i=d(o.del(r),t._options,!0).send(e);return b(i=p(i,t._options),n,y.bind(null,t))},get:function(t,e){u("get",t);var n=t.toString(),r=d(o.get(n),t._options);return b(r=p(r,t._options),e,y.bind(null,t))},head:function(t,e){u("head",t);var n=t.toString(),r=d(o.head(n),t._options);return b(r=p(r,t._options),e,g)},post:function(t,e,n){u("post",t);var r=t.toString();e=e||{};var i=d(o.post(r),t._options,!0);return i=p(i,t._options),b(i=t._attachment?l(e,(function(t,e,n){return t.field(n,e)}),i.attach("file",t._attachment,t._attachmentName)):i.send(e),n,y.bind(null,t))},put:function(t,e,n){u("put",t);var r=t.toString();e=e||{};var i=d(o.put(r),t._options,!0).send(e);return b(i=p(i,t._options),n,y.bind(null,t))}}},f8sa:function(t,e,n){"use strict";t.exports=n("Che/")},hLC0:function(t,e,n){"use strict";var r=n("prCu"),o=n("cRaD"),i=n("GKv7");function a(t){return t&&t.rel}function c(t,e){return e.rel.split(/\s+/).forEach((function(n){t[n]=i(e,{rel:n})}
1)),t}function u(t,e){var n=e.match(/\s*(.+)\s*=\s*"?([^"]+)"?/);return n&&(t[n[1]]=n[2]),t}function s(t){try{var e=t.split(";"),n=e.shift().replace(/[<>]/g,""),a=o.parse(n),c=r.parse(a.query),s=e.reduce(u,{});return(s=i(c,s)).url=n,s}catch(l){return null}}t.exports=function(t){return t?t.split(/,\s*</).map(s).filter(a).reduce(c,{}):null}},iR2b:function(t,e,n){"use strict";var r=n("gc+n");e.a=function(t){if("undefined"===typeof t)return{};var e=t.date_to_show,n=t.dt_inizio,o=t.dt_fine,i=t.titolo,a=t.luogo,c=t.url_landing_page,u=e,s=function(t){var e=t.background_type;return"I"===e?"fullImg":"B"===e?"white":"V"===e?"green":void 0}(t),l=new Date(u).toString()===new Date((new Date).setHours(0,0,0,0)).toString();return{category:t.tema?t.tema.tema:"",title:i,dateFrom:Object(r.c)(n),dateTo:Object(r.c)(o),isToday:l,exactDate:u,exactDay:Object(r.d)(u),exactMonth:Object(r.e)(u),info:[t.owner&&t.owner.toUpperCase(),a?a.localita_web:""].join("<br />"),link:"/eventi/".concat(t.slug),hasLanding:c,thumbnail:{image:{url:t.media[0]&&t.media[0].url}},backgroundType:s}}},j46Z:function(t,e,n){"use strict";n.r(e),n.d(e,"requestLocation",(function(){return o})),n.d(e,"commitLocation",(function(){return i})),n.d(e,"failLocation",(function(){return a}));var r=n("+H2D"),o=function(){return{type:r.c}},i=function(t){var e=t.lat,n=t.lng;return{type:r.a,payload:{coords:{lat:e,lng:n}}}},a=function(t){var e=t.code;return{type:r.b,meta:{code:e}}}},"k/58":function(t,e,n){"use strict";t.exports=function t(e){if("number"===typeof e)return!0;if("string"===typeof e)return/^\d+$/.test(e);if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(!t(e[n]))return!1;return!0}return!1}},kAk6:function(t,e,n){"use strict";var r=n("f8sa"),o=n("IEzQ").create,i=n("B404").create,a=n("W89y");t.exports={generate:function(t){return a(t,(function(t,e,n){return t[n]=a(e,(function(t,e,a){var c=o(e,a),u=i(c,a,n);return t[a]=function(t){return new u(r({},this._options,t))},t[a].Ctor=u,t}),{}),t}),{})}}},lTvC:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"Waypoint",(function(){return m}));var r=n("tsZ/"),o=n("ERkP"),i=n.n(o),a=n("kvVz");function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function p(t,e){var n,r=(n=t,!isNaN(parseFloat(n))&&isFinite(n)?parseFloat(n):"px"===n.slice(-2)?parseFloat(n.slice(0,-2)):void 0);if("number"===typeof r)return r;var o=function(t){if("%"===t.slice(-1))return parseFloat(t.slice(0,-1))/100}(t);return"number"===typeof o?o*e:void 0}function d(t){return"string"===typeof t.type}var h;var b=[];function y(t){b.push(t),h||(h=setTimeout((function(){var t;for(h=null;t=b.shift();)t()}),0));var e=!0;return function(){if(e){e=!1;var n=b.indexOf(t);-1!==n&&(b.splice(n,1),!b.length&&h&&(clearTimeout(h),h=null))}}}var g={debug:!1,scrollableAncestor:void 0,children:void 0,topOffset:"0px",bottomOffset:"0px",horizontal:!1,onEnter:function(){},onLeave:function(){},onPositionChange:function(){},fireOnRapidScroll:!0},m=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(h,e);var n,o,u,l=f(h);function h(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),(e=l.call(this,t)).refElement=function(t){e._ref=t},e}return n=h,(o=[{key:"componentDidMount",value:function(){var t=this;h.getWindow()&&(this.cancelOnNextTick=y((function(){t.cancelOnNextTick=null;var e=t.props,n=e.children;e.debug,function(t,e){if(t&&!d(t)&&!e)throw new Error("<Waypoint> needs a DOM element to compute boundaries. The child you passed is neither a DOM element (e.g. <div>) nor does it use the innerRef prop.\n\nSee https://goo.gl/LrBNgw for more info.")}(n,t._ref),t._handleScroll=t._handleScroll.bind(t),t.scrollableAncestor=t._findScrollableAncestor(),t.scrollEventListenerUnsubscribe=Object(r.addEventListener)(t.scrollableAncestor,"scroll",t._handleScroll,{passive:!0}),t.resizeEventListenerUnsubscribe=Object(r.addEventListener)(window,"resize",t._handleScroll,{passive:!0}),t._handleScroll(null)})))}},{key:"componentDidUpdate",value:function(){var t=this;h.getWindow()&&this.scrollableAncestor&&(this.cancelOnNextTick||(this.cancelOnNextTick=y((function(){t.cancelOnNextTick=null,t._handleScroll(null)}))))}},{key:"componentWillUnmount",value:function(){h.getWindow()&&(this.scrollEventListenerUnsubscribe&&this.scrollEventListenerUnsubscribe(),this.resizeEventListenerUnsubscribe&&this.resizeEventListenerUnsubscribe(),this.cancelOnNextTick&&this.cancelOnNextTick())}},{key:"_findScrollableAncestor",value:function(){var e=this.props,n=e.horizontal,r=e.scrollableAncestor;if(r)return function(e){return"window"===e?t.window:e}(r);for(var o=this._ref;o.parentNode;){if((o=o.parentNode)===document.body)return window;var i=window.getComputedStyle(o),a=(n?i.getPropertyValue("overflow-x"):i.getPropertyValue("overflow-y"))||i.getPropertyValue("overflow");if("auto"===a||"scroll"===a||"overlay"===a)return o}return window}
1},{key:"_handleScroll",value:function(t){if(this._ref){var e=this._getBounds(),n=function(t){return t.viewportBottom-t.viewportTop===0?"invisible":t.viewportTop<=t.waypointTop&&t.waypointTop<=t.viewportBottom||t.viewportTop<=t.waypointBottom&&t.waypointBottom<=t.viewportBottom||t.waypointTop<=t.viewportTop&&t.viewportBottom<=t.waypointBottom?"inside":t.viewportBottom<t.waypointTop?"below":t.waypointTop<t.viewportTop?"above":"invisible"}(e),r=this._previousPosition,o=this.props,i=(o.debug,o.onPositionChange),a=o.onEnter,c=o.onLeave,u=o.fireOnRapidScroll;if(this._previousPosition=n,r!==n){var s={currentPosition:n,previousPosition:r,event:t,waypointTop:e.waypointTop,waypointBottom:e.waypointBottom,viewportTop:e.viewportTop,viewportBottom:e.viewportBottom};i.call(this,s),"inside"===n?a.call(this,s):"inside"===r&&c.call(this,s),u&&("below"===r&&"above"===n||"above"===r&&"below"===n)&&(a.call(this,{currentPosition:"inside",previousPosition:r,event:t,waypointTop:e.waypointTop,waypointBottom:e.waypointBottom,viewportTop:e.viewportTop,viewportBottom:e.viewportBottom}),c.call(this,{currentPosition:n,previousPosition:"inside",event:t,waypointTop:e.waypointTop,waypointBottom:e.waypointBottom,viewportTop:e.viewportTop,viewportBottom:e.viewportBottom}))}}}},{key:"_getBounds",value:function(){var t,e,n=this.props,r=n.horizontal,o=(n.debug,this._ref.getBoundingClientRect()),i=o.left,a=o.top,c=o.right,u=o.bottom,s=r?i:a,l=r?c:u;this.scrollableAncestor===window?(t=r?window.innerWidth:window.innerHeight,e=0):(t=r?this.scrollableAncestor.offsetWidth:this.scrollableAncestor.offsetHeight,e=r?this.scrollableAncestor.getBoundingClientRect().left:this.scrollableAncestor.getBoundingClientRect().top);var f=this.props,d=f.bottomOffset;return{waypointTop:s,waypointBottom:l,viewportTop:e+p(f.topOffset,t),viewportBottom:e+t-p(d,t)}}},{key:"render",value:function(){var t=this,e=this.props.children;return e?d(e)||Object(a.isForwardRef)(e)?i.a.cloneElement(e,{ref:function(n){t.refElement(n),e.ref&&("function"===typeof e.ref?e.ref(n):e.ref.current=n)}}):i.a.cloneElement(e,{innerRef:this.refElement}):i.a.createElement("span",{ref:this.refElement,style:{fontSize:0}})}}])&&c(n.prototype,o),u&&c(n,u),h}(i.a.PureComponent);m.above="above",m.below="below",m.inside="inside",m.invisible="invisible",m.getWindow=function(){if("undefined"!==typeof window)return window},m.defaultProps=g,m.displayName="Waypoint"}.call(this,n("lpmq"))},lmq3:function(t){t.exports=JSON.parse('{"/":{"namespace":"","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{}}}]},"/oembed/1.0":{"namespace":"oembed/1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{},"context":{}}}]},"/oembed/1.0/embed":{"namespace":"oembed/1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"url":{},"format":{},"maxwidth":{}}}]},"/wp/v2":{"namespace":"wp/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{},"context":{}}}]},"/wp/v2/posts":{"namespace":"wp/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{},"page":{},"per_page":{},"search":{},"after":{},"author":{},"author_exclude":{},"before":{},"exclude":{},"include":{},"offset":{},"order":{},"orderby":{},"slug":{},"status":{},"categories":{},"categories_exclude":{},"tags":{},"tags_exclude":{},"sticky":{}}},{"methods":["POST"],"args":{"date":{},"date_gmt":{},"slug":{},"status":{},"password":{},"title":{},"content":{},"author":{},"excerpt":{},"featured_media":{},"comment_status":{},"ping_status":{},"format":{},"meta":{},"sticky":{},"template":{},"categories":{},"tags":{}}}]},"/wp/v2/posts/(?P<id>[\\\\d]+)":{"namespace":"wp/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{},"password":{}}},{"methods":["POST","PUT","PATCH"],"args":{"date":{},"date_gmt":{},"slug":{},"status":{},"password":{},"title":{},"content":{},"author":{},"excerpt":{},"featured_media":{},"comment_status":{},"ping_status":{},"format":{},"meta":{},"sticky":{},"template":{},"categories":{},"tags":{}}},{"methods":["DELETE"],"args":{"force":{}}}]}
1,"/wp/v2/posts/(?P<parent>[\\\\d]+)/revisions":{"namespace":"wp/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{}}}]},"/wp/v2/posts/(?P<parent>[\\\\d]+)/revisions/(?P<id>[\\\\d]+)":{"namespace":"wp/v2","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{}}},{"methods":["DELETE"],"args":{"force":{}}}]},"/wp/v2/pages":{"namespace":"wp/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{},"page":{},"per_page":{},"search":{},"after":{},"author":{},"author_exclude":{},"before":{},"exclude":{},"include":{},"menu_order":{},"offset":{},"order":{},"orderby":{},"parent":{},"parent_exclude":{},"slug":{},"status":{}}},{"methods":["POST"],"args":{"date":{},"date_gmt":{},"slug":{},"status":{},"password":{},"parent":{},"title":{},"content":{},"author":{},"excerpt":{},"featured_media":{},"comment_status":{},"ping_status":{},"menu_order":{},"meta":{},"template":{}}}]},"/wp/v2/pages/(?P<id>[\\\\d]+)":{"namespace":"wp/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{},"password":{}}},{"methods":["POST","PUT","PATCH"],"args":{"date":{},"date_gmt":{},"slug":{},"status":{},"password":{},"parent":{},"title":{},"content":{},"author":{},"excerpt":{},"featured_media":{},"comment_status":{},"ping_status":{},"menu_order":{},"meta":{},"template":{}}},{"methods":["DELETE"],"args":{"force":{}}}]},"/wp/v2/pages/(?P<parent>[\\\\d]+)/revisions":{"namespace":"wp/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{}}}]},"/wp/v2/pages/(?P<parent>[\\\\d]+)/revisions/(?P<id>[\\\\d]+)":{"namespace":"wp/v2","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{}}},{"methods":["DELETE"],"args":{"force":{}}}]},"/wp/v2/media":{"namespace":"wp/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{},"page":{},"per_page":{},"search":{},"after":{},"author":{},"author_exclude":{},"before":{},"exclude":{},"include":{},"offset":{},"order":{},"orderby":{},"parent":{},"parent_exclude":{},"slug":{},"status":{},"media_type":{},"mime_type":{}}},{"methods":["POST"],"args":{"date":{},"date_gmt":{},"slug":{},"status":{},"title":{},"author":{},"comment_status":{},"ping_status":{},"meta":{},"template":{},"alt_text":{},"caption":{},"description":{},"post":{}}}]},"/wp/v2/media/(?P<id>[\\\\d]+)":{"namespace":"wp/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{},"password":{}}},{"methods":["POST","PUT","PATCH"],"args":{"date":{},"date_gmt":{},"slug":{},"status":{},"title":{},"author":{},"comment_status":{},"ping_status":{},"meta":{},"template":{},"alt_text":{},"caption":{},"description":{},"post":{}}},{"methods":["DELETE"],"args":{"force":{}}}]},"/wp/v2/types":{"namespace":"wp/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{}}}]},"/wp/v2/types/(?P<type>[\\\\w-]+)":{"namespace":"wp/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{}}}]},"/wp/v2/statuses":{"namespace":"wp/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{}}}]},"/wp/v2/statuses/(?P<status>[\\\\w-]+)":{"namespace":"wp/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{}}}]},"/wp/v2/taxonomies":{"namespace":"wp/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{},"type":{}}}]},"/wp/v2/taxonomies/(?P<taxonomy>[\\\\w-]+)":{"namespace":"wp/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{}}}]},"/wp/v2/categories":{"namespace":"wp/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{},"page":{},"per_page":{},"search":{},"exclude":{},"include":{},"order":{},"orderby":{},"hide_empty":{},"parent":{},"post":{},"slug":{}}},{"methods":["POST"],"args":{"description":{},"name":{},"slug":{},"parent":{},"meta":{}}}]},"/wp/v2/categories/(?P<id>[\\\\d]+)":{"namespace":"wp/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{}}}
1,{"methods":["POST","PUT","PATCH"],"args":{"description":{},"name":{},"slug":{},"parent":{},"meta":{}}},{"methods":["DELETE"],"args":{"force":{}}}]},"/wp/v2/tags":{"namespace":"wp/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{},"page":{},"per_page":{},"search":{},"exclude":{},"include":{},"offset":{},"order":{},"orderby":{},"hide_empty":{},"post":{},"slug":{}}},{"methods":["POST"],"args":{"description":{},"name":{},"slug":{},"meta":{}}}]},"/wp/v2/tags/(?P<id>[\\\\d]+)":{"namespace":"wp/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{}}},{"methods":["POST","PUT","PATCH"],"args":{"description":{},"name":{},"slug":{},"meta":{}}},{"methods":["DELETE"],"args":{"force":{}}}]},"/wp/v2/users":{"namespace":"wp/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{},"page":{},"per_page":{},"search":{},"exclude":{},"include":{},"offset":{},"order":{},"orderby":{},"slug":{},"roles":{}}},{"methods":["POST"],"args":{"username":{},"name":{},"first_name":{},"last_name":{},"email":{},"url":{},"description":{},"locale":{},"nickname":{},"slug":{},"roles":{},"password":{},"meta":{}}}]},"/wp/v2/users/(?P<id>[\\\\d]+)":{"namespace":"wp/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{}}},{"methods":["POST","PUT","PATCH"],"args":{"username":{},"name":{},"first_name":{},"last_name":{},"email":{},"url":{},"description":{},"locale":{},"nickname":{},"slug":{},"roles":{},"password":{},"meta":{}}},{"methods":["DELETE"],"args":{"force":{},"reassign":{}}}]},"/wp/v2/users/me":{"namespace":"wp/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{}}},{"methods":["POST","PUT","PATCH"],"args":{"username":{},"name":{},"first_name":{},"last_name":{},"email":{},"url":{},"description":{},"locale":{},"nickname":{},"slug":{},"roles":{},"password":{},"meta":{}}},{"methods":["DELETE"],"args":{"force":{},"reassign":{}}}]},"/wp/v2/comments":{"namespace":"wp/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{},"page":{},"per_page":{},"search":{},"after":{},"author":{},"author_exclude":{},"author_email":{},"before":{},"exclude":{},"include":{},"offset":{},"order":{},"orderby":{},"parent":{},"parent_exclude":{},"post":{},"status":{},"type":{},"password":{}}},{"methods":["POST"],"args":{"author":{},"author_email":{},"author_ip":{},"author_name":{},"author_url":{},"author_user_agent":{},"content":{},"date":{},"date_gmt":{},"parent":{},"post":{},"status":{},"meta":{}}}]},"/wp/v2/comments/(?P<id>[\\\\d]+)":{"namespace":"wp/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{},"password":{}}},{"methods":["POST","PUT","PATCH"],"args":{"author":{},"author_email":{},"author_ip":{},"author_name":{},"author_url":{},"author_user_agent":{},"content":{},"date":{},"date_gmt":{},"parent":{},"post":{},"status":{},"meta":{}}},{"methods":["DELETE"],"args":{"force":{},"password":{}}}]},"/wp/v2/settings":{"namespace":"wp/v2","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":{}},{"methods":["POST","PUT","PATCH"],"args":{"title":{},"description":{},"url":{},"email":{},"timezone":{},"date_format":{},"time_format":{},"start_of_week":{},"language":{},"use_smilies":{},"default_category":{},"default_post_format":{},"posts_per_page":{},"default_ping_status":{},"default_comment_status":{}}}]}}')},o2OV:function(t,e,n){"use strict";n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return l}));var r=n("zjfJ"),o=n("+H2D");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEac
1h((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var c=function(t){return t.location?t.location:null},u=function(t){var e=c(t);return e&&e.coords},s=function(t){var e=c(t);return e&&e.status},l=function(t){var e=c(t);return e&&e.meta&&e.meta.code};e.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case o.c:return a(a({},t),{},{status:"LOADING"});case o.a:return a(a({},t),{},{status:"SUCCESSFUL",coords:e.payload.coords});case o.b:return a(a({},t),{},{status:"FAILURE",meta:e.meta});default:return t}}},oUmF:function(t,e,n){(function(e){var n="[object GeneratorFunction]",r=/^\[object .+?Constructor\]$/,o="object"==typeof e&&e&&e.Object===Object&&e,i="object"==typeof self&&self&&self.Object===Object&&self,a=o||i||Function("return this")();function c(t,e){return!!(t?t.length:0)&&function(t,e,n){if(e!==e)return function(t,e,n,r){var o=t.length,i=n+(r?1:-1);for(;r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,s,n);var r=n-1,o=t.length;for(;++r<o;)if(t[r]===e)return r;return-1}(t,e,0)>-1}function u(t,e,n){for(var r=-1,o=t?t.length:0;++r<o;)if(n(e,t[r]))return!0;return!1}function s(t){return t!==t}function l(t,e){return t.has(e)}function f(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var p=Array.prototype,d=Function.prototype,h=Object.prototype,b=a["__core-js_shared__"],y=function(){var t=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),g=d.toString,m=h.hasOwnProperty,v=h.toString,O=RegExp("^"+g.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=p.splice,w=L(a,"Map"),_=L(a,"Set"),E=L(Object,"create");function P(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function k(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function T(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function C(t){var e=-1,n=t?t.length:0;for(this.__data__=new T;++e<n;)this.add(t[e])}function S(t,e){for(var n,r,o=t.length;o--;)if((n=t[o][0])===(r=e)||n!==n&&r!==r)return o;return-1}function x(t){return!(!D(t)||(e=t,y&&y in e))&&(function(t){var e=D(t)?v.call(t):"";return"[object Function]"==e||e==n}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}(t)?O:r).test(function(t){if(null!=t){try{return g.call(t)}catch(e){}try{return t+""}catch(e){}}return""}(t));var e}P.prototype.clear=function(){this.__data__=E?E(null):{}},P.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},P.prototype.get=function(t){var e=this.__data__;if(E){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return m.call(e,t)?e[t]:void 0},P.prototype.has=function(t){var e=this.__data__;return E?void 0!==e[t]:m.call(e,t)},P.prototype.set=function(t,e){return this.__data__[t]=E&&void 0===e?"__lodash_hash_undefined__":e,this},k.prototype.clear=function(){this.__data__=[]},k.prototype.delete=function(t){var e=this.__data__,n=S(e,t);return!(n<0)&&(n==e.length-1?e.pop():j.call(e,n,1),!0)},k.prototype.get=function(t){var e=this.__data__,n=S(e,t);return n<0?void 0:e[n][1]},k.prototype.has=function(t){return S(this.__data__,t)>-1},k.prototype.set=function(t,e){var n=this.__data__,r=S(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},T.prototype.clear=function(){this.__data__={hash:new P,map:new(w||k),string:new P}},T.prototype.delete=function(t){return A(this,t).delete(t)},T.prototype.get=function(t){return A(this,t).get(t)},T.prototype.has=function(t){return A(this,t).has(t)},T.prototype.set=function(t,e){return A(this,t).set(t,e),this},C.prototype.add=C.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},C.prototype.has=function(t){return this.__data__.has(t)};var I=_&&1/f(new _([,-0]))[1]==1/0?function(t){return new _(t)}:function(){};function A(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function L(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return x(n)?n:void 0}function D(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=function(t){return t&&t.length?function(t,e,n){var r=-1,o=c,i=t.length,a=!0,s=[],p=s;if(n)a=!1,o=u;else if(i>=200){var d=e?null:I(t);if(d)return f(d);a=!1,o=l,p=new C}else p=e?[]:s;t:for(;++r<i;){var h=t[r],b=e?e(h):h;if(h=n||0!==h?h:0,a&&b===b){for(var y=p.length;y--;)if(p[y]===b)continue t;e&&p.push(b),s.push(h)}else o(p,b,n)||(p!==s&&p.push(b),s.push(h))}return s}(t):[]}}).call(this,n("lpmq"))},pu3o:function(t,e,n){"use strict";var r=n("SYP+"),o=n("w7lK"),i=n("cYYr");t.exports={formats:i,parse:o,stringify:r}},pvoB:function(t,e,n){"use strict";var r,o,i=Object.prototype,a=i.hasOwnProperty,c=i.toString;"function"===typeof Symbol&&(r=Symbol.prototype.valueOf),"function"===typeof BigInt&&(o=BigInt.prototype.valueOf);var u=function(t){return t!==t},s={boolean:1,number:1,string:1,undefined:1},l=/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$/,f=/^[A-Fa-f0-9]+$/,p={};p.a=p.type=function(t,e){return typeof t===e},p.defined=function(t){return"undefined"!==typeof t},p.empty=function(t){var e,n=c.call(t);if("[object Array]"===n||"[object Arguments]"===n||"[object String]"===n)return 0===t.length;if("[object Object]"===n){for(e in t)if(a.call(t,e))return!1;return!0}return!t},p.equal=function(t,e){if(t===e)return!0;var n,r=c.call(t);if(r!==c.call(e))return!1;if("[object Object]"===r){for(n in t)if(!p.equal(t[n],e[n])||!(n in e))return!1;for(n in e)if(!p.equal(t[n],e[n])||!(n in t))return!1;return!0}if("[object Array]"===r){if((n=t.length)!==e.length)return!1;for(;n--;)if(!p.equal(t[n],e[n]))return!1;return!0}return"[object Function]"===r?t.prototype===e.prototype:"[object Date]"===r&&t.getTime()===e.getTime()},p.hosted=function(t,e){var n=typeof e[t];return"object"===n?!!e[t]:!s[n]},p.instance=p.instanceof=function(t,e){return t instanceof e},p.nil=p.null=function(t){return null===t},p.undef=p.undefined=function(t){return"undefined"===typeof t},p.args=p.arguments=function(t){var e="[object Arguments]"===c.call(t),n=!p.array(t)&&p.arraylike(t)&&p.object(t)&&p.fn(t.callee);return e||n},p.array=Array.isArray||function(t){return"[object Array]"===c.call(t)},p.args.empty=function(t){return p.args(t)&&0===t.length},p.array.empty=function(t){return p.array(t)&&0===t.length},p.arraylike=function(t){return!!t&&!p.bool(t)&&a.call(t,"length")&&isFinite(t.length)&&p.number(t.length)&&t.length>=0},p.bool=p.boolean=function(t){return"[object Boolean]"===c.call(t)},p.false=function(t){return p.bool(t)&&!1===Boolean(Number(t))},p.true=function(t){return p.bool(t)&&!0===Boolean(Number(t))},p.date=function(t){return"[object Date]"===c.call(t)},p.date.valid=function(t){return p.date(t)&&!isNaN(Number(t))},p.element=function(t){return void 0!==t&&"undefined"!==typeof HTMLElement&&t instanceof HTMLElement&&1===t.nodeType},p.error=function(t){return"[object Error]"===c.call(t)},p.fn=p.function=function(t){if("undefined"!==typeof window&&t===window.alert)return!0;var e=c.call(t);return"[object Function]"===e||"[object GeneratorFunction]"===e||"[object AsyncFunction]"===e},p.number=function(t){return"[object Number]"===c.call(t)},p.infinite=function(t){return t===1/0||t===-1/0},p.decimal=function(t){return p.number(t)&&!u(t)&&!p.infinite(t)&&t%1!==0},p.divisibleBy=function(t,e){var n=p.infinite(t),r=p.infinite(e),o=p.number(t)&&!u(t)&&p.number(e)&&!u(e)&&0!==e;return n||r||o&&t%e===0},p.integer=p.int=function(t){return p.number(t)&&!u(t)&&t%1===0},p.maximum=function(t,e){if(u(t))throw new TypeError("NaN is not a valid value");if(!p.arraylike(e))throw new TypeError("second argument must be array-like");for(var n=e.length;--n>=0;)if(t<e[n])return!1;return!0},p.minimum=function(t,e){if(u(t))throw new TypeError("NaN is not a valid value");if(!p.arraylike(e))throw new TypeError("second argument must be array-like");for(var n=e.length;--n>=0;)if(t>e[n])return!1;return!0},p.nan=function(t){return!p.number(t)||t!==t},p.even=function(t){return p.infinite(t)||p.number(t)&&t===t&&t%2===0},p.odd=function(t){return p.infinite(t)||p.number(t)&&t===t&&t%2!==0},p.ge=function(t,e){if(u(t)||u(e))throw new TypeError("NaN is not a valid value");return!p.infinite(t)&&!p.infinite(e)&&t>=e},p.gt=function(t,e){if(u(t)||u(e))throw new TypeError("NaN is not a valid value");return!p.infinite(t)&&!p.infinite(e)&&t>e},p.le=function(t,e){if(u(t)||u(e))throw new TypeError("NaN is not a valid value");return!p.infinite(t)&&!p.infinite(e)&&t<=e},p.lt=function(t,e){if(u(t)||u(e))throw new TypeError("NaN is not a valid value");return!p.infinite(t)&&!p.infinite(e)&&t<e},p.within=function(t,e,n){if(u(t)||u(e)||u(n))throw new TypeError("NaN is not a valid value");if(!p.number(t)||!p.number(e)||!p.number(n))throw new TypeError("all arguments must be numbers");return p.infinite(t)||p.infinite(e)||p.infinite(n)||t>=e&&t<=n},p.object=function(t){return"[object Object]"===c.call(t)},p.primitive=function(t){return!t||!("object"===typeof t||p.object(t)||p.fn(t)||p.array(t))},p.hash=function(t){return p.object(t)&&t.constructor===Object&&!t.nodeType&&!t.setInterval},p.regexp=function(t){return"[object RegExp]"===c.call(t)},p.string=function(t){return"[object String]"===c.call(t)},p.base64=function(t){return p.string(t)&&(!t.length||l.test(t))},p.hex=function(t){return p.string(t)&&(!t.length||f.test(t))},p.symbol=function(t){return"function"===typeof Symbol&&"[object Symbol]"===c.call(t)&&"symbol"===typeof r.call(t)},p.bigint=function(t){return"function"===typeof BigInt&&"[object BigInt]"===c.call(t)&&"bigint"===typeof o.call(t)},t.exports=p},qXKH:function(t,e,n){"use strict";e.a=function(t){if("undefined"===typeof t)return{};var e=t.luogo.slug;return{id:t.id,title:t.titolo,supertitle:"",thumbnail:{url:t.media[0]&&t.media[0].url||"https://fai-website.imgix.net/static/placeholder_2.png"},link:"/luoghi/".concat(e),subtitle:t.luogo.localita_web,content:t.payoff}}},r3iB:function(t,e,n){"use strict";
1t.exports=function(t,e){if(-1===e._supportedMethods.indexOf(t.toLowerCase()))throw new Error("Unsupported method; supported methods are: "+e._supportedMethods.join(", "));return!0}},rVun:function(t,e,n){"use strict";t.exports=function(t,e){var n={};return n[t]=e,n}},sxWj:function(t,e,n){var r;"undefined"!==typeof window?r=window:"undefined"!==typeof self?r=self:(console.warn("Using browser-only version of superagent in non-browser environment"),r=this);var o=n("dMso"),i=n("Fu1L"),a=n("4FEf"),c=n("Q2tY"),u=n("8vpR");function s(){}var l=e=t.exports=function(t,n){return"function"==typeof n?new e.Request("GET",t).end(n):1==arguments.length?new e.Request("GET",t):new e.Request(t,n)};e.Request=g,l.getXHR=function(){if(!(!r.XMLHttpRequest||r.location&&"file:"==r.location.protocol&&r.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw Error("Browser-only version of superagent could not find XHR")};var f="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function p(t){if(!a(t))return t;var e=[];for(var n in t)d(e,n,t[n]);return e.join("&")}function d(t,e,n){if(null!=n)if(Array.isArray(n))n.forEach((function(n){d(t,e,n)}));else if(a(n))for(var r in n)d(t,e+"["+r+"]",n[r]);else t.push(encodeURIComponent(e)+"="+encodeURIComponent(n));else null===n&&t.push(encodeURIComponent(e))}function h(t){for(var e,n,r={},o=t.split("&"),i=0,a=o.length;i<a;++i)-1==(n=(e=o[i]).indexOf("="))?r[decodeURIComponent(e)]="":r[decodeURIComponent(e.slice(0,n))]=decodeURIComponent(e.slice(n+1));return r}function b(t){return/[\/+]json($|[^-\w])/.test(t)}function y(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!=this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||"undefined"===typeof this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.header=this.headers=function(t){for(var e,n,r,o,i=t.split(/\r?\n/),a={},c=0,u=i.length;c<u;++c)-1!==(e=(n=i[c]).indexOf(":"))&&(r=n.slice(0,e).toLowerCase(),o=f(n.slice(e+1)),a[r]=o);return a}(this.xhr.getAllResponseHeaders()),this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"!=this.req.method?this._parseBody(this.text?this.text:this.xhr.response):null}function g(t,e){var n=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",(function(){var t,e=null,r=null;try{r=new y(n)}catch(o){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=o,n.xhr?(e.rawResponse="undefined"==typeof n.xhr.responseType?n.xhr.responseText:n.xhr.response,e.status=n.xhr.status?n.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),n.callback(e)}n.emit("response",r);try{n._isResponseOK(r)||(t=new Error(r.statusText||"Unsuccessful HTTP response"))}catch(i){t=i}t?(t.original=e,t.response=r,t.status=r.status,n.callback(t,r)):n.callback(null,r)}))}function m(t,e,n){var r=l("DELETE",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}l.serializeObject=p,l.parseString=h,l.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},l.serialize={"application/x-www-form-urlencoded":p,"application/json":JSON.stringify},l.parse={"application/x-www-form-urlencoded":h,"application/json":JSON.parse},c(y.prototype),y.prototype._parseBody=function(t){var e=l.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&b(this.type)&&(e=l.parse["application/json"]),e&&t&&(t.length||t instanceof Object)?e(t):null)},y.prototype.toError=function(){var t=this.req,e=t.method,n=t.url,r="cannot "+e+" "+n+" ("+this.status+")",o=new Error(r);return o.status=this.status,o.method=e,o.url=n,o},l.Response=y,o(g.prototype),i(g.prototype),g.prototype.type=function(t){return this.set("Content-Type",l.types[t]||t),this},g.prototype.accept=function(t){return this.set("Accept",l.types[t]||t),this},g.prototype.auth=function(t,e,n){1===arguments.length&&(e=""),"object"===typeof e&&null!==e&&(n=e,e=""),n||(n={type:"function"===typeof btoa?"basic":"auto"});var r=function(t){if("function"===typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(t,e,n,r)},g.prototype.query=function(t){return"string"!=typeof t&&(t=p(t)),t&&this._query.push(t),this},g.prototype.attach=function(t,e,n){if(e){if(this._data)throw Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,n||e.name)}return this},g.prototype._getFormData=function(){return this._formData||(this._formData=new r.FormData),this._formData},g.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();var n=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit
1("error",t)),n(t,e)},g.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},g.prototype.buffer=g.prototype.ca=g.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},g.prototype.pipe=g.prototype.write=function(){throw Error("Streaming is not supported in browser version of superagent")},g.prototype._isHost=function(t){return t&&"object"===typeof t&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},g.prototype.end=function(t){return this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||s,this._finalizeQueryString(),this._end()},g.prototype._end=function(){var t=this,e=this.xhr=l.getXHR(),n=this._formData||this._data;this._setTimeouts(),e.onreadystatechange=function(){var n=e.readyState;if(n>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4==n){var r;try{r=e.status}catch(o){r=0}if(!r){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};
1var r=function(e,n){n.total>0&&(n.percent=n.loaded/n.total*100),n.direction=e,t.emit("progress",n)};if(this.hasListeners("progress"))try{e.onprogress=r.bind(null,"download"),e.upload&&(e.upload.onprogress=r.bind(null,"upload"))}catch(c){}try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(u){return this.callback(u)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||l.serialize[o?o.split(";")[0]:""];!i&&b(o)&&(i=l.serialize["application/json"]),i&&(n=i(n))}for(var a in this.header)null!=this.header[a]&&this.header.hasOwnProperty(a)&&e.setRequestHeader(a,this.header[a]);return this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send("undefined"!==typeof n?n:null),this},l.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(t){u.prototype[t.toLowerCase()]=function(e,n){var r=new l.Request(t,e);return this._setDefaults(r),n&&r.end(n),r}})),u.prototype.del=u.prototype.delete,l.get=function(t,e,n){var r=l("GET",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},l.head=function(t,e,n){var r=l("HEAD",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},l.options=function(t,e,n){var r=l("OPTIONS",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},l.del=m,l.delete=m,l.patch=function(t,e,n){var r=l("PATCH",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},l.post=function(t,e,n){var r=l("POST",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},l.put=function(t,e,n){var r=l("PUT",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}},umxl:function(t,e,n){"use strict";var r=n("f8sa"),o=n("Zqdi").build,i=n("kAk6").generate,a=n("wGKE"),c=n("P3Rk"),u=n("b4Fh");t.exports=function(t,e,n){var s=["head","get","patch","put","post","delete"];n&&Array.isArray(n.methods)?s=n.methods.map((function(t){return t.trim().toLowerCase()})):n&&"string"===typeof n.methods&&(s=[n.methods.trim().toLowerCase()]),-1!==s.indexOf("get")&&-1===s.indexOf("head")?s.push("head"):-1!==s.indexOf("head")&&-1===s.indexOf("get")&&s.push("get");var l={};l[t.replace(/^[\s/]*/,"/").replace(/[\s/]*$/,"/")+e.replace(/^[\s/]*/,"")]={namespace:t,methods:s};var f=o(l),p=i(f)[t],d=p[Object.keys(p)[0]].Ctor;function h(t){return t=r(t=t||{},this&&this._options),new d(t)}return n&&n.params&&n.params.forEach((function(t){"string"===typeof t&&("object"!==typeof u[t]?c(d.prototype,t,a(t)):Object.keys(u[t]).forEach((function(e){c(d.prototype,e,u[t][e])})))})),n&&"object"===typeof n.mixins&&Object.keys(n.mixins).forEach((function(t){c(d.prototype,t,n.mixins[t])})),h.Ctor=d,h}},vqKY:function(t,e,n){"use strict";t.exports={create:function(t){var e=t.level,n=t.names[0],r=t.methods||[],o=t.children?Object.keys(t.children).map((function(e){return t.children[e]})).filter((function(t){return!0===t.namedGroup})):[],i=1===o.length&&o[0],a=i&&i.level;return t.namedGroup?function(t){return this.setPathPart(e,t),r.length&&(this._supportedMethods=r),this}:function(t){return this.setPathPart(e,n),void 0!==t&&a&&this.setPathPart(a,t),this}}}},w7lK:function(t,e,n){"use strict";var r=n("V/Lb"),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(t,e,n){if(t){var r=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(r),c=a?r.slice(0,a.index):r,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var s=0;null!==(a=i.exec(r))&&s<n.depth;){if(s+=1,!n.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+r.slice(a.index)+"]"),function(t,e,n){for(var r=e,o=t.length-1;o>=0;--o){var i,a=t[o];if("[]"===a&&n.parseArrays)i=[].concat(r);else{i=n.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&a!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(i=[])[u]=r:"__proto__"!==c&&(i[c]=r):i={0:r}}r=i}return r}(u,e,n)}};t.exports=function(t,e){var n=e?r.assign({},e):{};if(null!==n.decoder&&void 0!==n.decoder&&"function"!==typeof n.decoder)throw new TypeError("Decoder has to be a function.");
1if(n.ignoreQueryPrefix=!0===n.ignoreQueryPrefix,n.delimiter="string"===typeof n.delimiter||r.isRegExp(n.delimiter)?n.delimiter:i.delimiter,n.depth="number"===typeof n.depth?n.depth:i.depth,n.arrayLimit="number"===typeof n.arrayLimit?n.arrayLimit:i.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"===typeof n.decoder?n.decoder:i.decoder,n.allowDots="boolean"===typeof n.allowDots?n.allowDots:i.allowDots,n.plainObjects="boolean"===typeof n.plainObjects?n.plainObjects:i.plainObjects,n.allowPrototypes="boolean"===typeof n.allowPrototypes?n.allowPrototypes:i.allowPrototypes,n.parameterLimit="number"===typeof n.parameterLimit?n.parameterLimit:i.parameterLimit,n.strictNullHandling="boolean"===typeof n.strictNullHandling?n.strictNullHandling:i.strictNullHandling,""===t||null===t||"undefined"===typeof t)return n.plainObjects?Object.create(null):{};for(var c="string"===typeof t?function(t,e){for(var n={},r=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=e.parameterLimit===1/0?void 0:e.parameterLimit,c=r.split(e.delimiter,a),u=0;u<c.length;++u){var s,l,f=c[u],p=f.indexOf("]="),d=-1===p?f.indexOf("="):p+1;-1===d?(s=e.decoder(f,i.decoder),l=e.strictNullHandling?null:""):(s=e.decoder(f.slice(0,d),i.decoder),l=e.decoder(f.slice(d+1),i.decoder)),o.call(n,s)?n[s]=[].concat(n[s]).concat(l):n[s]=l}return n}(t,n):t,u=n.plainObjects?Object.create(null):{},s=Object.keys(c),l=0;l<s.length;++l){var f=s[l],p=a(f,c[f],n);u=r.merge(u,p,n)}return r.compact(u)}},wGKE:function(t,e,n){"use strict";t.exports=function(t){return function(e){return this.param(t,e)}}},wSS7:function(t,e,n){"use strict";var r={}.hasOwnProperty,o=Function.prototype.call;t.exports=o.bind?o.bind(r):function(t,e){return o.call(r,t,e)}},xSgY:function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var r=function(t){var e;return"undefined"===typeof t||null===t?{}:{id:t.id,supertitle:t.titolo,title:(null===(e=t.luogo)||void 0===e?void 0:e.localita_web)||"",link:"/luoghi/rete-fai/".concat(t.slug)}};e.a=function(t){var e=t||"#",n=e.slug,r=e.titolo;return null===t?{}:{id:t.id,title:r,supertitle:"",link:"/luoghi/rete-fai/".concat(n)}}},ynZC:function(t,e,n){"use strict";var r=n("r4FT"),o=n("0D0S"),i=n.n(o)()().publicRuntimeConfig.LARAVEL;e.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return r.a.get("".concat(i,"/nonce").concat(t?"/".concat(t):"")).then((function(t){return t.data}))}}},[["Y2eU",1,0,5,7,3,2,6,4,8,9,10,11,13,12,15,14,16,17,18,19,20,21,22,23,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.