1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[55],{"+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"},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 g(t,e,n){return e=Object(u.a)(e),Object(c.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(u.a)(t).constructor):e.apply(t,n))}var b={items:[],page:1,nextPage:null,total:0,working:!1},m=function(t){function e(){var t;return Object(i.a)(this,e),(t=g(this,e)).state=b,t.loadMore=t.loadMore.bind(t),t}return 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=m},NAJH:function(t,e,n){"use strict";var r=n("Z2Hg");n.d(e,"a",(function(){return r.a}));var o=n("w2w1");n.d(e,"b",(function(){return o.a}));n("Gae8");var i=n("Zee3");n.d(e,"c",(function(){return i.a}));var a=n("KZWD");n.d(e,"d",(function(){return a.a}));n("pxt2");var c=n("KtlO");n.d(e,"e",(function(){return c.a}));n("u2PW"),n("xQZi")},NbfL:function(t,e,n){"use strict";var r=n("cxan"),o=n("9fIP"),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"),g=n("0D0S"),b=n.n(g)()().publicRuntimeConfig.WP_API,m=function(t){return h.a.get("".concat(b,"mrr/v1/menus/").concat(t)).then((function(t){return t.data}
1)).catch((function(){return[]}))},v=n("aWzz"),y=n.n(v);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:y.a.string};var w=j,S=l.a.createElement;function k(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=k(this,n)).state={tabs:[]},t.child=l.a.createRef(),t}return Object(u.a)(n,e),Object(i.a)(n,[{key:"componentDidMount",value:function(){this.props.data&&this.getData(this.props.data)}},{key:"componentWillReceiveProps",value:function(t){t.data&&this.getData(t.data)}},{key:"getData",value:function(t){var e=this;m(t[0]).then((function(t){e.setState({tabs:t.map((function(t){return{id:t.id,href:t.permalink,label:t.text}}))},(function(){return"function"===typeof e.child.current.maybeCenter&&e.child.current.maybeCenter()}))}))}},{key:"render",value:function(){return S(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 S(w,null,(function(t){var r=e.find((function(e){return e.href===t})),o=r&&r.id;return S(d.TabsNavigation,{tabs:e,selectedId:o,isMenu:!0,ref:n})}))}))},TGUm:function(t,e,n){"use strict";var r=n("zygG"),o=n("HbGN"),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"),g=n.n(h),b=["ids"];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(i.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 y(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=y(this,e,[t])).state=v(v({},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;g()(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,b);
1if(i)e=v(v({},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:v(v({},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},XZqI:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/faixme/listOfConvenzioni",function(){return n("aH+p")}])},ZaFK:function(t,e,n){"use strict";n.d(e,"d",(function(){return a})),n.d(e,"g",(function(){return c})),n.d(e,"j",(function(){return u})),n.d(e,"h",(function(){return s})),n.d(e,"a",(function(){return l})),n.d(e,"i",(function(){return f})),n.d(e,"c",(function(){return p})),n.d(e,"b",(function(){return d})),n.d(e,"f",(function(){return h})),n.d(e,"e",(function(){return g}));var r=n("r4FT"),o=n("0D0S"),i=n.n(o)()().publicRuntimeConfig.PLATFORM,a=function(t){return r.a.get("".concat(i,"/").concat("luoghi/faixme/?with=luogo,media,categorie,sottocategorie&limit=100").concat(t)).then((function(t){return t.data.data}))},c=function(t){var e=t.page,n=t.query;return r.a.get("".concat(i,"/luoghi/faixme/?with=luogo,media,categorie,sottocategorie&has=sottocategorie&limit=24&slug=null|NOT&page=").concat(e,"&").concat(n||"")).then((function(t){return t.data}))},u=function(){return r.a.get("".concat(i,"/luoghi/faixme/categorie?with=sottocategorie")).then((function(t){return t.data.data})).catch((function(t){return[]}))},s=function(t){return r.a.get("".concat(i,"/province?nome=*").concat(t,"*|LIKE")).then((function(t){return t.data.data}))},l=function(t){return r.a.get("".concat(i,"/comuni?nome=*").concat(t,"*|LIKE&limit=999")).then((function(t){return t.data.data}))},f=function(t){return r.a.get("".concat(i,"/regioni?nome=*").concat(t,"*|LIKE")).then((function(t){return t.data.data}))},p=function(t){var e=t.id,n=t.luogo.id;return r.a.get("".concat(i,"/luoghi/faixme?id=").concat(e,"|NOT&id_luogo=").concat(n,"&with=luogo,media,categorie&limit=4")).then((function(t){return t.data.data}))},d=function(t){var e=t.id,n=t.sottocategorie,o=t.luogo.regione;return!(!n||!n.length)&&r.a.get("".concat(i,"/luoghi/faixme?id=").concat(e,"|NOT&sottocategorie.id=").concat(n[0].id,"&luogo.regione.id=").concat(o.id,"&with=luogo,media,sottocategorie&has=sottocategorie&limit=4")).then((function(t){return t.data.data}))},h=function(){return r.a.get("".concat(i,"/verticals/?id=FXM")).then((function(t){return t.data.data[0]}))},g=function(t){var e="";if(null!==t&&void 0!==t&&t.length){var n=t.filter((function(t){return 0!==t}));null!==n&&void 0!==n&&n.length&&(e="&searchrel.id_selezione=".concat(n[0]))}var o="luoghi/faixme/?with=luogo,media,categorie,sottocategorie,searchrel".concat(e,"&limit=112");return r.a.get("".concat(i,"/").concat(o)).then((function(t){return t.data.data}))}},"aH+p":function(t,e,n){"use strict";n.r(e);var r=n("QsI/"),o=n("cxan"),i=n("9fIP"),a=n("MMYH"),c=n("K/z8"),u=n("sRHE"),s=n("8K1b"),l=n("ERkP"),f=n.n(l),p=n("j/s1"),d=n("uPMs"),h=n("HbGN"),g=n("zjfJ"),b=n("QtE3"),m=n("Ci+5"),v=n("ZaFK"),y=f.a.createElement;function O(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 j=function(t){function e(t){var n;return Object(i.a)(this,e),(n=O(this,e,[t])).state={comuni:[],province:[],regioni:[]},n.update=n.update.bind(n),n}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentDidMount",value:function(){this.props.search&&this.update()}},{key:"componentDidUpdate",value:function(t){t.search!==this.props.search&&this.update()}},{key:"update",value:function(){var t=this,e=this.props.search;Object(v.a)(e).then((function(e){return t.setState({comuni:e})})),Object(v.h)(e).then((function(e){return t.setState({province:e})})),Object(v.i)(e).then((function(e){return t.setState({regioni:e})}))}},{key:"render",value:function(){var t=this.props,e=t.search,n=t.comune,r=t.provincia,o=t.regione,i=t.onClick,a=this.state,c=a.comuni,u=a.province,s=a.regioni;if(e&&0===e.length||""===e||void 0===e||n||r||o||!(c&&c.length>0||u&&u.length>0||s&&s.length>0))return null;var l,p=(l="nome",function(t,e){return t.map((function(t){return[t[l],Object(g.a)({},e,t[l])]}))}),d=[c&&c.length>0&&{title:"Comuni",tags:p(c,"comune"),showMore:!0,limit:15},u&&u.length>0&&{title:"Province",tags:p(u,"provincia")}
1,s&&s.length>0&&{title:"Regioni",tags:p(s,"regione")}].filter((function(t){return t}));return y(f.a.Fragment,null,y(b.Wrapper,{size:"big"},y(b.Tags,{tagsGroups:d,onClick:i})))}}])}(f.a.Component),w=n("6qMH"),S=n("6780"),k=n("MJc2"),C=n.n(k),x=n("fN3Q"),P=n.n(x),I=["comune","provincia","regione"],E=f.a.createElement;function _(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_(Object(n),!0).forEach((function(e){Object(g.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function M(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=n("tTwn"),q=function(t){return E(b.CardConvenzione,Object(o.a)({LinkComponent:C.a},t))},L=function(t){var e=t.handleSearch,n=t.search,r=t.comune,o=t.provincia,i=t.regione,a=t.selectedOptions,c=t.tipologie,u=t.checkIfShowError,s=t.meta,l=t.handleShowMap,f=t.showMap,p={type:"dropdown",name:"Voglio usare la convenzione per",groups:c.map((function(t){var e=t.categoria,n=t.sottocategorie;return{name:e,options:n&&n.length>0?n.map((function(t){var e=t.id;return{macrotipologia:t.id_cat,name:t.sottocategoria,id:e}})):[]}})),id:P()()},d={type:"group",options:[{name:"Vicino a me",id:"geolocation",icon:!1,disabled:!!(r||o||i||f)}],id:P()()},h={id:P()(),type:"dropdown",name:"Sconto",groups:[{options:[{name:"Omaggio",id:"sconto-1"},{name:"Oltre il 50%",id:"sconto-2"},{name:"Dal 20% al 50%",id:"sconto-3"},{name:"Fino al 20%",id:"sconto-4"}]}]},g={id:P()(),type:"dropdown",name:"Nazione",groups:[{options:[{name:"Italia",id:"nazione-IT"},{name:"Francia",id:"nazione-FR"},{name:"San Marino",id:"nazione-SM"},{name:"Svizzera",id:"nazione-CH"}]}]};return E(b.Background,{color:"white"},E(H,null,E(Q,null,E(A,null,E(K,{active:!f,onClick:function(t){return l(!1)}},"Lista"),E(K,{active:f,onClick:function(t){return l(!0)}},"Mappa"))),E(B,null,E(b.FiltersBar,{searchPlaceholder:"Cerca ".concat(Object(m.c)({comune:r,provincia:o,regione:i})),onChange:e,searchValue:n,selectedOptions:a,model:[d,g,h,p],checkIfShowError:u,error:s&&s.queryError,disabled:f}))))},F=function(t){var e=t.total,n=t.search,r=t.comune,o=t.provincia,i=t.regione,a=t.nearby,c=(r||o||i)&&'<h1 style="text-align:center; margin-bottom: .5rem;">\n Convenzioni '.concat(Object(m.c)({comune:r,provincia:o,regione:i}),"\n </h1>\n "),u='<p><a href="'.concat(m.a,'">Resetta la ricerca</a></p>'),s=[c&&c,n&&'<h1 style="text-align:center; margin-bottom: .5rem;">Hai cercato <strong>"'.concat(R(n),'"</strong></h1>'),a&&'<h2 style="text-align:center; margin-bottom: .5rem;">Stai cercando nel raggio di 100 km dalla tua posizione attuale</h2>',u&&u].filter((function(t){return t})).join("");return E(f.a.Fragment,null,E(b.FiltersResults,{total:e,message:s}))},T=function(t){function e(t){var n;return Object(i.a)(this,e),(n=M(this,e,[t])).state={meta:{queryError:null},showResult:!Object(m.d)(t.queryObject)},n.handleSearch=n.handleSearch.bind(n),n.handleShowMap=n.handleShowMap.bind(n),n.checkIfShowError=n.checkIfShowError.bind(n),n.handleLocation=n.handleLocation.bind(n),n}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentDidUpdate",value:function(t,e){var n=this.props.coords;!t.coords&&n&&this.handleLocation()}},{key:"checkIfShowError",value:function(t){return t&&t.length<3?(this.setState({meta:{queryError:"Devi scrivere almeno 3 caratteri"}}),!0):(this.setState({meta:{queryError:null}}),!1)}},{key:"handleSearch",value:function(t){var e=this.props,n=e.setQueryString,r=e.queryObject,o=r.comune,i=r.provincia,a=r.regione,c=r.showMap,u=e.requestLocation,s=e.coords,l=t.selectedOptions,f=t.search;if(this.checkIfShowError(f))return!1;var p=l&&l.length&&"geolocation"===l.find((function(t){return"geolocation"===t}));if(p&&!s)return"function"===typeof u&&u();var d=Object(m.b)(z(z({},t),{},{comune:o,provincia:i,regione:a,showMap:c}));n(z(z({},d),p?z(z({},s),{},{nearby:!0}):{}),!0),this.setState({showResult:!0})}},{key:"handleLocation",value:function(){var t=this.props,e=t.coords;(0,t.setQueryString)(z(z({},e),{},{nearby:!0}))}},{key:"handleShowMap",value:function(t){var e=this.props,n=e.setQueryString,r=e.queryObject;r.comune,r.provincia,r.regione;n(z(z({},Object(h.a)(r,I)),{},{showMap:t}),!0)}},{key:"render",value:function(){if(!this.props.listOfConvenzioni)return null;var t=this.props,e=t.canLoadMore,r=t.loading,i=t.loadMore,a=t.listOfConvenzioni,c=(t.originUrl,t.queryObject),u=t.tipologie,s=t.total,l=t.
1setQueryString,p=this.state,d=p.meta,h=p.showResult,g=c.comune,v=c.provincia,y=c.regione,O=c.showMap;return E(b.Background,{color:"grey"},E(L,Object(o.a)({},Object(m.l)(c),{tipologie:u,handleSearch:this.handleSearch,checkIfShowError:this.checkIfShowError,meta:d,handleShowMap:this.handleShowMap,showMap:O})),O?E(w.a,{getPage:n.e(27).then(n.bind(null,"sAQc")),api:"faixme",selectedOptions:Object(m.i)(c)}):E(f.a.Fragment,null,r?E(b.Loading,{text:"<h4>Caricamento in corso</h4>"}):!h&&E(f.a.Fragment,null,E(N,null,E(D,null,"Convenzioni per gli iscritti FAI"),E(G,null,"Regalati un anno di arte e cultura da vivere grazie alle opportunit\xe0 esclusive a te riservate. Non sei ancora iscritto?"," ",E("a",{href:"https://fondoambiente.it/sostienici/iscriviti-al-fai/"},"Clicca qui")," ","per iscriverti subito."))),(h||g||v||y)&&E(F,Object(o.a)({total:s},c)),E(j,Object(o.a)({},this.props,c,{onClick:function(t){return l(z({},t),!0)}})),!r&&a&&0===a.length?E(b.Padder,{size:"small"},E("div",{style:{textAlign:"center"}},E(b.FiltersResults,{total:"0"}))):E(S.a,{getPage:n.e(27).then(n.bind(null,"sAQc"))},(function(t){var e=t.handleCardClick;return E(U,null,E(b.ListOfCards,{wrap:"big",cards:a.map(m.e),CardComponent:function(t){return E(q,Object(o.a)({},t,{onClick:function(){return e({slug:t.slug,fxm:t.fxm})}}))},vertical:!0}))})),e&&!r&&E(b.Padder,{size:"medium"},E(b.Button,{onClick:i,children:r?"Carico...":"Mostra altre",centered:!0}))))}}])}(f.a.Component),N=p.d.div.withConfig({displayName:"ListOfConvenzioni__InfoSection",componentId:"sc-bmnf6h-0"})(["font-family:",";font-weight:425;color:",";text-align:center;margin:3rem auto;max-width:50rem;"],(function(t){return t.theme.fonts.sansSerif}),(function(t){return t.theme.colors.darkGrey})),D=p.d.div.withConfig({displayName:"ListOfConvenzioni__InfoTitle",componentId:"sc-bmnf6h-1"})(["font-size:28px;margin-bottom:1rem;"]),G=p.d.div.withConfig({displayName:"ListOfConvenzioni__InfoText",componentId:"sc-bmnf6h-2"})(["font-size:20px;line-height:28px;"]),H=p.d.div.withConfig({displayName:"ListOfConvenzioni__FlexContainer",componentId:"sc-bmnf6h-3"})(["display:flex;flex-flow:row wrap;background:white;max-width:1440px;margin:auto;min-height:68px;"]),Q=p.d.div.withConfig({displayName:"ListOfConvenzioni__FlexChildBtn",componentId:"sc-bmnf6h-4"})(["flex:200px 0 0;"]),B=p.d.div.withConfig({displayName:"ListOfConvenzioni__FlexChild",componentId:"sc-bmnf6h-5"})(["flex-grow:0;@media screen and (min-width:1024px){flex-grow:1;}"]),A=p.d.div.withConfig({displayName:"ListOfConvenzioni__FlexButtonsContainer",componentId:"sc-bmnf6h-6"})(['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})),K=p.d.div.withConfig({displayName:"ListOfConvenzioni__FlexButton",componentId:"sc-bmnf6h-7"})(['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})),U=p.d.div.withConfig({displayName:"ListOfConvenzioni__WrapCardConvenzione",componentId:"sc-bmnf6h-8"})(["margin-bottom:6rem;"]),W=T,X=n("NbfL"),Z=(n("qkzg"),n("cXXW")),J=n("FAGI"),V=n("TGUm"),Y=n("D/vV"),$=n("Lm5w"),tt=n("0D0S"),et=n.n(tt),nt=f.a.createElement;function rt(){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&&
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]())):(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]"})),(rt=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 it(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 at=et()().publicRuntimeConfig.APP_DOMAIN,ct=function(t){var e=t.page,n=t.queryObject;return Object(v.g)({page:e,query:Object(m.j)(n)}).then((function(t){return{items:t.data,nextPage:t.next_page_url,total:t.total}}))},ut=function(t){function e(){return Object(i.a)(this,e),it(this,e,arguments)}return Object(s.a)(e,t),Object(a.a)(e,[{key:"render",value:function(){var t=this,e=this.props.seo;return nt(d.a,{seo:e},nt(st,null),nt(X.a,{data:["fxm"]}),nt(Z.a,null,(function(e){var n=e.requestLocation,r=e.coords;return nt(Y.a,null,(function(e){return nt(V.a,{queryString:e},(function(e){var i=e.getQueryObject,a=e.setQueryString;return nt(J.a,{apiRequest:ct,queryObject:i()},(function(e){var c=e.items,u=e.loadMore,s=e.nextPage,l=e.total,f=e.working;return nt(W,Object(o.a)({},t.props,{setQueryString:a,total:l,queryObject:i(),listOfConvenzioni:c,canLoadMore:s,loadMore:u,loading:f,requestLocation:n,coords:r}))}))}))}))})),nt(b.FasciaNewsletterApp,null),nt(b.FasciaSupporto,null))}}],[{key:"getInitialProps",value:function(){var t=Object(r.a)(rt().m((function t(e){var n,r,o,i;return rt().w((function(t){for(;;)switch(t.n){case 0:return n=e.req,t.n=1,Object(v.j)();case 1:return r=t.v,o={title:"FAI per me: oltre 2.000 opportunit\xe0 riservate agli iscritti FAI",description:"Scopri oltre 2.000 opportunit\xe0 per vivere l'arte e la cultura di tutta Italia con la tua tessera FAI",url:"".concat(at).concat(m.a),ogImage:"https://fai-website.imgix.net/uploads/2022/04/28140557/Fai-per-me-vantaggi.jpeg?w=1200&h=630&fit=crop"},i=n?"https://"+n.get("host")+n.originalUrl:window.location.href,t.a(2,{seo:o,originUrl:i,tipologie:r})}}),t)})));return function(e){return t.apply(this,arguments)}}()}])}(f.a.Component),st=p.d.div.withConfig({displayName:"ListOfConvenzioni__SpazioSottoHeader",componentId:"sc-s7d013-0"})(["height:104px;"]),lt=Object($.a)({header:{alwaysFixed:!0,hasCustomHeader:!0,headerType:"fxm"}})(ut);e.default=lt},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})}))},j46Z:function(t,e,n){"use strict";n.r(e),n.d(e,"requestLocation",(function(){return o}
1)),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}}}},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)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var c=function(t){return t.location?t.location:null},u=function(t){var e=c(t);return e&&e.coords},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}}},qkzg: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("aWzz"),f=n.n(l);function p(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 d=function(t){function e(){return Object(r.a)(this,e),p(this,e,arguments)}return Object(c.a)(e,t),Object(o.a)(e,[{key:"render",value:function(){return this.props.children(this.context.measures)}}])}(s.a.Component);d.contextTypes={measures:f.a.object},e.a=d}},[["XZqI",1,0,5,7,3,2,6,4,8,9,10,11,13,12,15,14,16,17,18,19,20,21,22,24]]]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.