1(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[20],{"Ci+5":function(n,t,o){"use strict";o.d(t,"a",(function(){return g})),o.d(t,"e",(function(){return p})),o.d(t,"j",(function(){return h})),o.d(t,"i",(function(){return b})),o.d(t,"k",(function(){return v})),o.d(t,"f",(function(){return _})),o.d(t,"h",(function(){return w})),o.d(t,"b",(function(){return y})),o.d(t,"l",(function(){return I})),o.d(t,"c",(function(){return O})),o.d(t,"g",(function(){return k})),o.d(t,"d",(function(){return j}));var e=o("zygG"),i=o("fGyu"),r=o("HbGN"),a=o("10AO"),c=o.n(a),u=o("UxPf"),l=o("0D0S"),s=["search","comune","regione","provincia","lat","lng","nearby","ids","sconto","nazione"],d=o.n(l)()().publicRuntimeConfig.APP_DOMAIN,f=function(n){return n.reduce((function(n,t){return n.concat(Array.isArray(t)?f(t):t)}),[])},g="/sostienici/vantaggi-per-gli-iscritti/fai-per-me/cerca-convenzioni",m=function(n){if(!n||0===n.length||void 0===n)return"https://fai-website.imgix.net/static/placeholder_2.png";var t=n.find((function(n){return"TOP"===n.pivot.position}));if(void 0!==t)return t.url;var o=n.find((function(n){return"GALLERY"===n.pivot.position}));return void 0!==o?o.url:n[0].url},p=function(n){var t=n.titolo,o=n.media,e=n.sottocategorie,i=n.background_type,r=n.perc_sconto,a=n.slug,c=n.luogo,u=n.id,l=c||{},s=l.localita_web,d=l.slug,f=l.nome;return{id:u,title:t,address:s,link:"/luoghi/".concat(d,"?fxm=").concat(a),fxm:a,slug:d,categories:e,discount_perc:null!==r?"-".concat(r,"%"):"",backgroundType:i,place:f,backgroundSrc:o&&o.length>0&&(void 0!==o.find((function(n){return"TOP"===n.pivot.position}))&&o.find((function(n){return"TOP"===n.pivot.position})).url||o[0].url),thumbnail:{url:m(o)}}},h=function(n){var t=n.search,o=n.comune,e=n.provincia,i=n.regione,r=n.lat,a=n.lng,c=n.nearby,u=n.ids,l=n.sconto,s=n.nazione,d=[];return c&&r&&a&&(d.push("radius[coords]=".concat(parseFloat(r).toFixed(2),",").concat(parseFloat(a).toFixed(2))),d.push("radius[distance]=100")),f([t&&t.length>=3&&"search=".concat(t),o&&"luogo.comune.nome=".concat(o),e&&"luogo.provincia.nome=".concat(e),i&&"luogo.regione.nome=".concat(i),u&&u.map((function(n){return"sottocategorie.id[]=".concat(n)})),l&&l.map((function(n){return"id_sconto[]=".concat(n)})),s&&s.map((function(n){return"luogo.nazione.id[]=".concat(n)})),d]).filter((function(n){return n})).join("&")},b=function(n){return{"comune.nome":n.comune,"provincia.nome":n.provincia,"regione.nome":n.regione,"faixme.sottocategorie.id":n.ids,"faixme.id_sconto":n.sconto,"nazione.id":n.nazione}},v=function(n){var t=n.title,o=n.title_og,e=n.metadescription,i=n.description,r=n.luogo,a=n.titolo;return{title:t||o||a||"??????",description:e||i||"Resta informato su ".concat("??????"),url:"".concat(d,"/luoghi/").concat(r.slug),ogImage:Object(u.a)(n)}},_=function(n){return{title:"Vuoi saperne di pi\xf9 su questo luogo?",cta:["vai alla scheda","/luoghi/".concat(n.slug)]}},w=function(n){return{title:n&&n.titolo,subtitle:n&&n.luogo&&n&&n.luogo.localita_web,backgroundImage:n&&n.media&&n.media.length>0&&n.media.find((function(n){return"TOP"===n.pivot.position})),breadCrumbs:[["/","Home"],["/luoghi ","Luoghi"],["/faixme ",n&&n.titolo||""]],seo:{title:n.title||"??????",description:n.metadescription||"Resta informato su ??????",url:"".concat(d,"/luoghi/").concat(n&&n.luogo&&n.luogo.slug),ogImage:n.image_og||n.media&&n.media[0]&&n.media[0].url},social:!0,height:"small"}},y=function(n){var t=n.search,o=n.selectedOptions,e=n.comune,i=n.provincia,r=n.regione,a=n.showMap,u=o&&o.filter((function(n){return"string"===typeof n&&n.includes("sconto-")})).map((function(n){return n&&n.substr("sconto-".length)})),l=o&&o.filter((function(n){return"string"===typeof n&&n.includes("nazione-")})).map((function(n){return n&&n.substr("nazione-".length)})),s=o&&o.filter((function(n){return"number"===typeof n&&n>0}));return c()({search:t,comune:e,provincia:i,regione:r,ids:s,sconto:u,nazione:l,showMap:a},(function(n){return!!n}))},I=function(n){var t=n.search,o=n.comune,a=n.regione,c=n.provincia,u=(n.lat,n.lng,n.nearby),l=n.ids,d=n.sconto,f=n.nazione,g=Object(r.a)(n,s);return{search:t,comune:o,provincia:c,regione:a,selectedOptions:[].concat(Object(i.a)(u?["geolocation"]:[]),Ob
1ject(i.a)(Object.entries(g).map((function(n){var t=Object(e.a)(n,2),o=t[0];t[1];return o})).filter((function(n){return n}))),Object(i.a)(l?l.map((function(n){return parseInt(n,10)})):[]),Object(i.a)(d?d.map((function(n){return"sconto-".concat(n)})):[]),Object(i.a)(f?f.map((function(n){return"nazione-".concat(n)})):[]))}},O=function(n){var t=n.comune,o=n.provincia,e=n.regione;return t?"nel comune di ".concat(t):o?"in provincia di ".concat(o):e?"in ".concat(e):"per parola chiave o localit\xe0"},k=function(n){var t=n.media&&n.media.length>0&&n.media.filter((function(n){return"GALLERY"===n.pivot.position}));return t&&t.map((function(n){return{image:{url:n.url,alt:n.alt,title:n.title,caption:n.credit}}}))},j=function(n){return 0===Object.keys(n).length&&n.constructor===Object}},UxPf:function(n,t,o){"use strict";o.d(t,"f",(function(){return e})),o.d(t,"d",(function(){return i})),o.d(t,"a",(function(){return r})),o.d(t,"e",(function(){return c})),o.d(t,"c",(function(){return u})),o.d(t,"b",(function(){return l})),o.d(t,"g",(function(){return s})),o.d(t,"i",(function(){return d})),o.d(t,"h",(function(){return f})),o.d(t,"j",(function(){return g}));var e=function(n){return!(void 0===n||"undefined"===typeof n||!n||""==n||" "==n||!1===n||null===n||0===n||NaN===n)},i=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TOP";return e(n.media)&&void 0!==n.media.find((function(n){return n.pivot.position===t}))&&n.media.find((function(n){return n.pivot.position===t})).url||"https://fai-website.imgix.net/static/placeholder_2.png"},r=function(n){var t=e(n.image_og)&&n.image_og||e(n.media)&&e(n.media[0].url)&&n.media[0].url||i(n);return"".concat(t,"?w=1200&h=630&fit=crop")},a=[{dd:"lun",nice:"Luned\xec"},{dd:"mar",nice:"Marted\xec"},{dd:"mer",nice:"Mercoled\xec"},{dd:"gio",nice:"Gioved\xec"},{dd:"ven",nice:"Venerd\xec"},{dd:"sab",nice:"Sabato"},{dd:"dom",nice:"Domenica"}],c=function(n){if(e(n)){var t=n.match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i);return e(t)&&t[1]?t[1]:n}},u=function(n){var t=n.url,o=n.label,i=n.target,r=n.classses;if(e(t)){var a=o||(-1!==t.search("mailto:")?t.replace("mailto:",""):c(t)),u=e(i)?i:"_blank";return'<a class="'.concat(e(r)&&r,'" href="').concat(t,'" target="').concat(u,'">').concat(a,"</a>")}},l=function(n){return a.map((function(t){var o,e=t.dd,i=t.nice,r=n["orario_".concat(e,"con")],a=n["orario_".concat(e,"mat")],c=n["orario_".concat(e,"pom")],u=n["nota_".concat(e)];return o=r||"".concat(a||"").concat(a&&c?" / ":"").concat(c||""),r||a||c?'\n <p class="RichText__content-strongPrimary">\n <strong>'.concat(i,": </strong>\n ").concat(o,"\n ","<br/>".concat(u||""),"\n </p>\n "):null})).join("")},s=function(n){var t=n.comune||{},o=n.provincia||{},e=[n.indirizzo||"",t.nome,o.sigla].filter((function(n){return n})).join(", ");return{title:"Indirizzo",icon:"position",content:'<a href="https://www.google.com/maps/search/'.concat(e,'" target="_blank" rel="noopener noreferrer nofollow">\n ').concat(e,"\n </a>")}},d=function(n){return{title:"Orario",content:l(n)}},f=function(n){return{title:"Durata visita",content:n.button_url}},g=function(n){if(e(n)){var t=n.button1_label,o=n.button1_url,i=n.button1_target,r=n.button2_label,a=n.button2_url,c=n.button2_target,u=n.button3_label,l=n.button3_url,s=n.button3_target;return{title:n.titolo,subtitle:n.sottotitolo,buttons:[{label:t,url:o,target:i,subscribe:!1},{label:r,url:a,target:c,subscribe:!1},{label:u,url:l,target:s,subscribe:!0}]}}}},bAhH:function(n,t,o){"use strict";var e=o("9fIP"),i=o("MMYH"),r=o("K/z8"),a=o("sRHE"),c=o("8K1b"),u=o("zjfJ"),l=o("ERkP"),s=o.n(l),d=o("QtE3"),f=o("j/s1"),g=o("ezIv"),m=s.a.createElement;function p(n,t,o){return t=Object(a.a)(t),Object(r.a)(n,function(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(n){}return function(){return!!n}()}()?Reflect.construct(t,o||[],Object(a.a)(n).constructor):t.apply(n,o))}var h=function(n){function t(){var n;return Object(e.a)(this,t),n=p(this,t),Object(u.a)(n,"showThankYou",(function(){n.setState({showThankYou:!0}),setTimeout((function(){return n.setState({showThankYou:!1})}),7e3)})),n.state={showThankYou:!1},n}return Object(c.a)(t,n),Object(i.a)(t,[{key:"render",value:function(){var n=this,t=this.props,o=t.user,e=t.progress,i=t.status,r=t.errorMessage,a=t.friends,c=t.showShareOverlay,u=t.tokenId,l=t.requestVote,f=t.resendEmail,p=t.voteUser,h=this.state.showThankYou;return Object(g.i)()?m(s.a.Fragment,null,o&&o.id&&m(s.a.Fragment,null,"VOTED"!==i&&a&&a.length>0&&m(b,null,m(v,null,m("strong",null,a.length)," ","".concat(1===a.length?"am
1ico ha":"amici hanno"," votato")),m(_,null,a.slice(0,3).map((function(n,t){return m(w,{url:n.picture,title:n.name,alt:n.name,first:0===t,last:2===t})})))),"VOTED"===i&&(h?m(j,null,"Grazie per aver votato!"):m(d.Button,{onClick:c},m("span",null,"condividi")))),(!o||!o.id)&&p&&p.email&&"VOTED"===i&&(h?m(j,null,"Grazie per aver votato!"):m(d.Button,{onClick:c},m("span",null,"condividi"))),(!o||!o.id)&&p&&p.email&&"VOTE_PENDING"===i&&m("div",null,m(x,null,"Controlla la tua email per confermare il voto"),m(T,null,m("a",{onClick:function(){return f()}},"reinvia email"))),(!i||"FAILED"===i)&&m(d.Button,{onClick:function(){n.showThankYou(),l({tokenId:u})}},m("span",null,"Vota con 1 clic")),"LOADING"===i&&m(d.Button,{disabled:!0},m("span",null,"loading")),"FAILED"===i&&r&&m(z,{dangerouslySetInnerHTML:{__html:"\n ".concat(r,"\n ")}}),"FAILED"===i&&!r&&m(z,null,"Salvataggio fallito. Riprova pi\xf9 tardi")):m(s.a.Fragment,null,"VOTED"!==i&&a&&a.length>0&&m(b,null,m(v,null,m("strong",null,a.length)," ","".concat(1===a.length?"amico ha":"amici hanno"," votato")),m(_,null,a.slice(0,3).map((function(n,t){return m(w,{url:n.picture,title:n.name,alt:n.name,first:0===t,last:2===t})})))),o&&o.id&&"VOTED"===i&&e&&m(y,null,m(I,null,m(O,null,"Scheda luogo completata al"," ",m("strong",null,e,"%")),m(k,{progress:e}))))}}])}(s.a.Component),b=f.d.div.withConfig({displayName:"VoteUI__Socials",componentId:"sc-15bs0d9-0"})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;height:3.5rem;"]),v=f.d.div.withConfig({displayName:"VoteUI__SocialsText",componentId:"sc-15bs0d9-1"})(["color:",";font-size:0.8rem;"],(function(n){return n.theme.colors.darkGrey})),_=f.d.div.withConfig({displayName:"VoteUI__SocialFaces",componentId:"sc-15bs0d9-2"})(["display:flex;"]),w=f.d.div.withConfig({displayName:"VoteUI__Face",componentId:"sc-15bs0d9-3"})(["height:40px;width:40px;position:relative;border-radius:50%;border:2px solid #fff;overflow:hidden;",";",";background-image:url(","),url(https://fai-website.imgix.net/static/generic_user_icon.svg);background-position:center center;background-size:cover;"],(function(n){return n.first&&"transform: translate(25%,0)"}),(function(n){return n.last&&"transform: translate(-25%,0)"}),(function(n){return n.url})),y=f.d.div.withConfig({displayName:"VoteUI__Progress",componentId:"sc-15bs0d9-4"})(["margin-bottom:1rem;height:3.5rem;display:flex;align-items:center;width:100%;"]),I=f.d.div.withConfig({displayName:"VoteUI__ProgressInner",componentId:"sc-15bs0d9-5"})(["width:100%;"]),O=f.d.div.withConfig({displayName:"VoteUI__ProgressText",componentId:"sc-15bs0d9-6"})(["color:",";font-size:0.8rem;text-align:left;margin-bottom:0.5rem;"],(function(n){return n.theme.colors.darkGrey})),k=f.d.div.withConfig({displayName:"VoteUI__ProgressBar",componentId:"sc-15bs0d9-7"})(["position:relative;height:0.25rem;background-color:",';&:before{content:"";position:absolute;left:0;width:',"%;height:100%;background-color:#e74f30;}"],(function(n){return n.theme.colors.lightGrey}),(function(n){return n.progress})),j=f.d.span.withConfig({displayName:"VoteUI__Message",componentId:"sc-15bs0d9-8"})(["font-weight:600;color:",";display:block;padding:0.875rem 0;letter-spacing:0.07em;"],(function(n){return n.theme.colors.orange})),z=f.d.div.withConfig({displayName:"VoteUI__Failed",componentId:"sc-15bs0d9-9"})(["margin-top:0.5rem;color:red;font-size:0.75rem;letter-spacing:0.075em;"]),x=f.d.span.withConfig({displayName:"VoteUI__EmailPendingMessage",componentId:"sc-15bs0d9-10"})(["font-weight:600;color:",";display:block;padding:0.875rem 0 0.3rem 0;letter-spacing:0.07em;"],(function(n){return n.theme.colors.orange})),T=f.d.small.withConfig({displayName:"VoteUI__EmailPendingResendLink",componentId:"sc-15bs0d9-11"})(["color:",";display:block;padding:0;text-decoration:underline;cursor:pointer;"],(function(n){return n.theme.colors.orange}));t.a=h}}]);
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.