PageSourceSearch

https://ilborghista.it/_next/static/chunks/9bd6452fc8aec728.js

js ilborghista.it collected 2026-10-02 13:35:20 UTC 97,744 bytes, 12 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,555436,e=>{"use strict";let t=(0,e.i(475254).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",()=>t],555436)},283086,e=>{"use strict";let t=(0,e.i(475254).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",()=>t],283086)},107233,e=>{"use strict";let t=(0,e.i(475254).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",()=>t],107233)},531278,e=>{"use strict";let t=(0,e.i(475254).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",()=>t],531278)},37727,e=>{"use strict";let t=(0,e.i(475254).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",()=>t],37727)},463059,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",()=>t],463059)},234098,e=>{"use strict";let t=(0,e.i(475254).default)("route",[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]);e.s(["Route",()=>t],234098)},870273,e=>{"use strict";let t=(0,e.i(475254).default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["Star",()=>t],870273)},207670,e=>{"use strict";function t(){for(var e,t,i=0,a="",r=arguments.length;i<r;i++)(e=arguments[i])&&(t=function e(t){var i,a,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var n=t.length;for(i=0;i<n;i++)t[i]&&(a=e(t[i]))&&(r&&(r+=" "),r+=a)}else for(a in t)t[a]&&(r&&(r+=" "),r+=a);return r}(e))&&(a&&(a+=" "),a+=t);return a}e.s(["clsx",()=>t])},747229,e=>{"use strict";let t="ilborghista:open-install-prompt",i="ilborghista_pwa_installed_v1",a=null,r=!1,n=new Set,s=new Set;function o(){let e=window.matchMedia?.("(display-mode: standalone)");return!!e?.matches||!0===navigator.standalone}function l(){try{return"1"===localStorage.getItem(i)}catch{return!1}}function c(){return o()?(m(),!0):l()}function u(){if("undefined"==typeof navigator)return!1;let e=navigator.userAgent||"";return!!/iPad|iPhone|iPod/i.test(e)||"MacIntel"===navigator.platform&&(navigator.maxTouchPoints||0)>1}function d(){return!a&&(u()||function(){if("undefined"==typeof navigator)return!1;let e=navigator.userAgent||"";return!/CriOS|FxiOS|EdgiOS|Chrome\/|Chromium|Edg\//i.test(e)&&/Safari/i.test(e)}())}function m(){try{localStorage.setItem(i,"1")}catch{}a=null}function p(){return a}function g(e){return n.add(e),a&&e(a),()=>{n.delete(e)}}function h(e){return s.add(e),()=>{s.delete(e)}}async function f(){if("serviceWorker"in navigator){try{let e=await navigator.serviceWorker.getRegistrations();await Promise.all(e.map(async e=>{(e.active?.scriptURL||e.installing?.scriptURL||e.waiting?.scriptURL||"").endsWith("/sw.js")&&await e.unregister().catch(()=>void 0)}))}catch{}try{await navigator.serviceWorker.register("/OneSignalSDKWorker.js",{scope:"/"})}catch{}}}function y(){try{return!!navigator.serviceWorker?.controller}catch{return!1}}async function v(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8e3;if(!("serviceWorker"in navigator))return!1;if(y())return!0;await f();try{await navigator.serviceWorker.ready}catch{}return!!y()||new Promise(t=>{let i=!1,a=e=>{i||(i=!0,window.clearTimeout(n),navigator.serviceWorker.removeEventListener("controllerchange",r),t(e))},r=()=>a(y()),n=window.setTimeout(()=>a(y()),e);navigator.serviceWorker.addEventListener("controllerchange",r)})}let x="ilborghista_sw_claim_reload_v1";
1async function b(){if(!("serviceWorker"in navigator))return!1;if(await f(),await v(6e3))return!0;try{if("1"===sessionStorage.getItem(x))return!1;sessionStorage.setItem(x,"1")}catch{return!1}return window.location.reload(),!1}function k(){r||(r=!0,f(),window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),a=e,n.forEach(t=>t(e))}),window.addEventListener("appinstalled",()=>{m(),s.forEach(e=>e())}))}async function w(){if(o()||l())return!1;k();let e=a;if(!e)return!1;try{let t=e.prompt();a=null,await t;let i=await e.userChoice;if("accepted"===i.outcome)return m(),!0;return!1}catch{return a=null,!1}}async function j(){return!(o()||l())&&((k(),a)?w():(d()&&window.dispatchEvent(new CustomEvent(t)),!1))}k(),e.s(["OPEN_INSTALL_EVENT",0,t,"ensureInstallPromptCapture",()=>k,"ensureIosPushServiceWorkerReady",()=>b,"ensurePushCompatibleServiceWorker",()=>f,"getDeferredInstallPrompt",()=>p,"hasServiceWorkerController",()=>y,"isAppleMobileDevice",()=>u,"isPwaAlreadyInstalled",()=>c,"isStandaloneDisplayMode",()=>o,"needsManualInstallGuide",()=>d,"requestInstallAppPrompt",()=>j,"subscribeAppInstalled",()=>h,"subscribeInstallPrompt",()=>g,"triggerNativeInstall",()=>w,"waitForServiceWorkerControl",()=>v])},221079,e=>{"use strict";var t=e.i(843476),i=e.i(3303),a=e.i(618566),r=e.i(271645),n=e.i(78100),s=e.i(455223),o=e.i(747229);let l="259818635880333";function c(){return"function"==typeof window.fbq}function u(){return!!(0,n.readConsent)()?.marketing}function d(e,t){if(c()&&u())try{t?window.fbq("track",e,t):window.fbq("track",e)}catch{}}function m(e,t){if(c()&&u())try{t?window.fbq("trackCustom",e,t):window.fbq("trackCustom",e)}catch{}}function p(e){d("ViewContent",{content_ids:[e.contentId],content_type:"product",...e.contentName?{content_name:e.contentName}:{},...e.contentCategory?{content_category:e.contentCategory}:{},...e.city?{city:e.city}:{}})}function g(e,t){let i=e.trim();i&&d("Search",{search_string:i,...t?{city:t}:{}})}function h(){d("FindLocation")}function f(){d("CompleteRegistration")}function y(){m("EventUpload")}function v(){let e=(0,s.useConsentCategory)("marketing"),n=(0,a.usePathname)(),[u,p]=(0,r.useState)(!1),g=(0,r.useRef)(!1),h=(0,r.useRef)(!0),f=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{if(e&&!f.current)return f.current=!0,(0,o.subscribeAppInstalled)(()=>{m("PWAInstall")})},[e]),(0,r.useEffect)(()=>{if(u&&c())if(e){try{window.fbq("consent","grant")}catch{}g.current||(g.current=!0,h.current=!0,d("PageView"))}else{g.current=!1;try{window.fbq("consent","revoke")}catch{}}},[e,u]),(0,r.useEffect)(()=>{if(u&&e&&g.current){if(h.current){h.current=!1;return}d("PageView")}},[n,e,u]),(0,t.jsx)(i.default,{id:"meta-pixel",strategy:"afterInteractive",onReady:()=>p(!0),children:`
2        !function(f,b,e,v,n,t,s)
3        {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
4        n.callMethod.apply(n,arguments):n.queue.push(arguments)};
5        if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
6        n.queue=[];t=b.createElement(e);t.async=!0;
7        t.src=v;s=b.getElementsByTagName(e)[0];
8        s.parentNode.insertBefore(t,s)}(window, document,'script',
9        'https://connect.facebook.net/en_US/fbevents.js');
10        fbq('init', '${l}');
11        fbq('consent', 'revoke');
12      `})}e.s(["FB_DOMAIN_VERIFICATION",0,"ti77emv4fu67yqcs6cc2wjf66aacyt","FB_PIXEL_ID",0,l,"MetaPixel",()=>v,"default",0,v,"trackMeta",()=>d,"trackMetaCompleteRegistration",()=>f,"trackMetaCustom",()=>m,"trackMetaEventUpload",()=>y,"trackMetaFindLocation",()=>h,"trackMetaSearch",()=>g,"trackMetaViewContent",()=>p])},567163,261527,e=>{"use strict";var t=e.i(843476),i=e.i(271645);let a="ilborghista_selected_municipality_id";function r(){try{return localStorage.getItem(a)}catch{return null}}function n(e){try{e?localStorage.setItem(a,e):localStorage.removeItem(a)}catch{}}function s(e){let t=new URLSearchParams;e.status&&"all"!==e.status&&t.set("status",e.status),e.municipalityId?t.set("municipalityId",e.municipalityId):null!=e.lat&&null!=e.lng&&Number.isFinite(e.lat)&&Number.isFinite(e.lng)&&(t.set("lat",String(e.lat)),t.set("lng",String(e.lng))),null!=e.radius&&Number.isFinite(e.radiu
12s)&&t.set("radius",String(e.radius)),e.dateFrom&&t.set("dateFrom",e.dateFrom),e.dateTo&&t.set("dateTo",e.dateTo);let i=t.toString();return i?`/eventi-hub?${i}`:"/eventi-hub"}e.s(["buildEventiHubHref",()=>s,"getPersistedMunicipalityId",()=>r,"setPersistedMunicipalityId",()=>n],261527);var o=e.i(221079);let l=[10,25,50,100],c="geo_personalization_active",u="geo_personalization_coords",d="geo_personalization_radius_km";function m(e){if(!e)return null;try{let t=JSON.parse(e),i=Number(t?.lat),a=Number(t?.lng);if(!Number.isFinite(i)||!Number.isFinite(a))return null;return{lat:i,lng:a}}catch{return null}}function p(){try{if("true"!==localStorage.getItem(c))return!1;return null!=m(localStorage.getItem(u))}catch{return!1}}function g(e,t){try{let i=window;"function"==typeof i.gtag&&i.gtag("event",e,t)}catch{}}let h=(0,i.createContext)({coords:null,geoActive:!1,radiusKm:25,isRequestingLocation:!1,locationError:!1,locationDenied:!1,activateGeo:async()=>!1,deactivateGeo:()=>{},setRadiusKm:()=>{}});function f(e){let{children:a}=e,[r,s]=(0,i.useState)(null),[p,f]=(0,i.useState)(!1),[y,v]=(0,i.useState)(25),[x,b]=(0,i.useState)(!1),[k,w]=(0,i.useState)(!1),[j,S]=(0,i.useState)(!1);(0,i.useEffect)(()=>{try{var e;let t;v((e=localStorage.getItem(d),t=null!=e?Number(e):NaN,l.includes(t)?t:25));let i="true"===localStorage.getItem(c),a=m(localStorage.getItem(u));if(i&&a){if(s(a),f(!0),"geolocation"in navigator){let e=()=>{navigator.geolocation.getCurrentPosition(e=>{let{coords:{latitude:t,longitude:i}}=e,a={lat:t,lng:i};s(a);try{localStorage.setItem(u,JSON.stringify(a))}catch{}},()=>{},{enableHighAccuracy:!0,maximumAge:6e4,timeout:12e3})};navigator.permissions?.query?navigator.permissions.query({name:"geolocation"}).then(t=>{"granted"===t.state&&e()}).catch(e):e()}}else i&&(localStorage.removeItem(c),localStorage.removeItem(u))}catch{}},[]);let N=(0,i.useCallback)(e=>{v(e);try{localStorage.setItem(d,String(e))}catch{}},[]),_=(0,i.useCallback)(()=>"geolocation"in navigator?(b(!0),w(!1),S(!1),new Promise(e=>{navigator.geolocation.getCurrentPosition(t=>{let{coords:{latitude:i,longitude:a}}=t,r={lat:i,lng:a};s(r),f(!0),b(!1),n(null);try{localStorage.setItem(c,"true"),localStorage.setItem(u,JSON.stringify(r))}catch{}g("geo_permission",{result:"granted"}),g("geo_pill_toggle",{state:"on"}),(0,o.trackMetaFindLocation)(),e(!0)},t=>{b(!1),w(!0),S(t.code===t.PERMISSION_DENIED),g("geo_permission",{result:t.code===t.PERMISSION_DENIED?"denied":"error"}),e(!1)},{enableHighAccuracy:!0,timeout:15e3,maximumAge:0})})):(w(!0),S(!1),g("geo_permission",{result:"unsupported"}),Promise.resolve(!1)),[]),C=(0,i.useCallback)(()=>{f(!1),s(null),w(!1),S(!1);try{localStorage.removeItem(c),localStorage.removeItem(u)}catch{}g("geo_pill_toggle",{state:"off"})},[]);return(0,t.jsx)(h.Provider,{value:{coords:r,geoActive:p,radiusKm:y,isRequestingLocation:x,locationError:k,locationDenied:j,activateGeo:_,deactivateGeo:C,setRadiusKm:N},children:a})}function y(){return(0,i.useContext)(h).coords}function v(){return(0,i.useContext)(h)}function x(e,t,i,a){let r=(i-e)*Math.PI/180,n=(a-t)*Math.PI/180,s=Math.sin(r/2)*Math.sin(r/2)+Math.cos(e*Math.PI/180)*Math.cos(i*Math.PI/180)*Math.sin(n/2)*Math.sin(n/2);return 12742*Math.atan2(Math.sqrt(s),Math.sqrt(1-s))}e.s(["GEO_RADIUS_TIERS",0,l,"GeolocationProvider",()=>f,"calcDistanceKm",()=>x,"isPersistedGeoActive",()=>p,"useGeoContext",()=>v,"useUserCoords",()=>y],567163)},5865,190302,e=>{"use strict";var t=e.i(149268);e.i(247167);var i=e.i(50929),a=e.i(697872);let r=null,n=null,s=!1,o=null,l=null;function c(){return s||!o?null:{message:o,allowedOrigin:l,isDomainMismatch:!!l}}function u(){return s}function d(){return!!r}async function m(e){if(!s||n!==e){if(r&&n===e)return r;if(s){n=e;try{await t.default.User?.setLanguage?.(e)}catch{}return}return n=e,o=null,l=null,r=(async()=>{try{let r;await t.default.init((r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){if("undefined"==typeof document)return"it";let e=document.cookie.match(/(?:^|;\s*)NEXT_LOCALE=([^;]+)/),t=e?.[1];return"en"===t||"it"===t?t:"en"===document.documentElement.lang?.slice(0,2)?"en":"it"}();
12return("en"===e?i.default:a.default).common.onesignal}(e),{appId:"4432b0a2-fa0a-4ab6-9481-3d06cfadf260",allowLocalhostAsSecureOrigin:!0,serviceWorkerPath:"OneSignalSDKWorker.js",serviceWorkerParam:{scope:"/"},notifyButton:{enable:!1},promptOptions:{slidedown:{enabled:!0,autoPrompt:!1,prompts:[{type:"push",text:{actionMessage:r.actionMessage,acceptButton:r.acceptButton,cancelButton:r.cancelButton}}]}},welcomeNotification:{title:r.welcomeTitle,message:r.welcomeMessage}}))}catch(t){let e;if((e=String(t?.message||t||"").toLowerCase()).includes("already initialized")||e.includes("sdk already initialized"));else throw t}s=!0,o=null,l=null;try{await t.default.User?.setLanguage?.(e)}catch{}})().catch(e=>{let t,i=(t=String(e?.message||e||"").match(/Can only be used on:\s*(\S+)/i),t?.[1]?.replace(/[.,;]+$/g,"")??null);throw i?console.warn(`[OneSignal] Domain mismatch — SDK only allows ${i} (current: ${window.location.origin})`):console.error("OneSignal initialization failed:",e),r=null,n=null,s=!1,o=String(e?.message||e||"init_failed"),l=i,e})}}async function p(e,t,i){let a;try{return await Promise.race([e,new Promise(e=>{a=setTimeout(()=>{Promise.resolve(i()).then(e)},t)})])}finally{void 0!==a&&clearTimeout(a)}}function g(e){let t=e.userAgent||"";return!!/iPad|iPhone|iPod/i.test(t)||"MacIntel"===e.platform&&e.maxTouchPoints>1}function h(e){return e.displayModeStandalone||e.navigatorStandalone}function f(e){return!!e.optedIn||"string"==typeof e.id&&!!(e.id.length>0)||"string"==typeof e.token&&!!(e.token.length>0)}function y(){if("undefined"==typeof navigator)return null;let e=window.matchMedia?.("(display-mode: standalone)");return{userAgent:navigator.userAgent||"",platform:navigator.platform||"",maxTouchPoints:navigator.maxTouchPoints||0,displayModeStandalone:!!e?.matches,navigatorStandalone:!0===navigator.standalone}}e.s(["ensureOneSignalInit",()=>m,"getOneSignalInitFailure",()=>c,"hasOneSignalInitInFlight",()=>d,"isOneSignalInitSucceeded",()=>u],190302);var v=e.i(747229);function x(){let e=y();return!!e&&g(e)&&!h(e)}function b(){let e=y();return!!e&&g(e)&&h(e)}let k="ilborghista:open-push-permission",w="ilborghista:push-enabled";function j(){return"undefined"!=typeof Notification&&"granted"===Notification.permission}function S(){return"undefined"!=typeof Notification&&"denied"===Notification.permission}function N(){try{return{optedIn:!!t.default.User?.PushSubscription?.optedIn,id:t.default.User?.PushSubscription?.id??null,token:t.default.User?.PushSubscription?.token??null,browserPermission:"undefined"!=typeof Notification?Notification.permission:"default",sdkPermission:!!t.default.Notifications?.permission}}catch{return{optedIn:!1,id:null,token:null,browserPermission:"default",sdkPermission:!1}}}function _(){return f(N())}function C(){try{let e=N();if("granted"!==e.browserPermission&&!e.sdkPermission)return!1;return f(e)}catch{return!1}}async function M(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5e3,t=Date.now();for(;Date.now()-t<e;){if(_())return!0;await new Promise(e=>setTimeout(e,200))}return _()}async function P(e){try{return await p(m(e||("undefined"!=typeof document&&document.documentElement.lang?.startsWith("en")?"en":"it")),12e3,()=>{throw Error("onesignal_init_timeout")}),s}catch{return s}}function I(){try{window.dispatchEvent(new CustomEvent(w))}catch{}}async function E(e){x()||(b()?await (0,v.ensureIosPushServiceWorkerReady)():((0,v.ensurePushCompatibleServiceWorker)(),(0,v.waitForServiceWorkerControl)(4e3)),P(e))}function z(){return!(!s||b()&&!(0,v.hasServiceWorkerController)())}function T(){var e;let t=c();return(e={iosUnavailable:x(),sdkReady:s,permission:"undefined"!=typeof Notification?Notification.permission:"default",domainMismatch:!!t?.isDomainMismatch,initFailed:!!t&&!t.isDomainMismatch}).iosUnavailable?"unavailable":e.domainMismatch?"domain":e.initFailed?"setup_failed":e.sdkReady?"denied"===e.permission?"blocked":"granted"===e.permission?"setup_failed":"dismissed":"not_ready"}async function F(e){if(S()||x()||!s&&!await P(e)||!(0,v.hasServiceWorkerController)()&&!await (0,v.waitForServiceWorkerControl)(1200))return!1;try{if(!await p(Promise.resolve(t.default.Notifications.requestPermission()).then(e=>!!e),12e3,()=>!1)&&!j())return!1}catch{if(!j())return!1}if(!_())try{await p(t.default.User.PushSubscription.optIn(),12e3,()=>void 0)}catch{}let i=await M(5e3);return i&&I(),i}async function A(e){if(await P(e))try{await p(t.default.User.PushSubscription.optOut(),12e3,()=>void 0)}catch{}}function R(e,i){let a,r=!1,n=()=>{try{e(C())}catch{e(!1)}},s=()=>
12{if(!r&&!a)try{let e=t.default.User?.PushSubscription;if(!e?.addEventListener)return;let i=()=>n();e.addEventListener("change",i),a=()=>e.removeEventListener?.("change",i)}catch{}};s(),P(i).then(()=>{r||(s(),n())}).catch(()=>void 0);let o=()=>{"visible"===document.visibilityState&&n()},l=()=>n();return document.addEventListener("visibilitychange",o),window.addEventListener(w,l),()=>{r=!0,a?.(),document.removeEventListener("visibilitychange",o),window.removeEventListener(w,l)}}let O="ilborghista_push_prompted_after_install_v1",L=null;function D(){try{localStorage.setItem(O,"1")}catch{}}async function q(e){if(!function(){try{return"1"===localStorage.getItem(O)}catch{return!1}}()&&!x())return L||(L=(async()=>{try{if(S())return void D();if(E(e),!await P(e))return void $();if(_()){D(),I();return}$()}catch{$()}finally{L=null}})())}function $(){window.dispatchEvent(new CustomEvent(k))}function B(){D()}function W(){var e;return!(e={iosStandaloneCapable:b(),permission:"undefined"!=typeof Notification?Notification.permission:"default",reallySubscribed:_()}).iosStandaloneCapable||"denied"===e.permission||"default"!==e.permission&&e.reallySubscribed}function U(){let e,i=N(),a=y(),r=null;try{r=navigator.serviceWorker?.controller?.scriptURL??null}catch{r=null}let n=null;try{n=!!t.default.Notifications?.isPushSupported?.()}catch{n=null}return{standalone:!!(e=y())&&(e.displayModeStandalone||e.navigatorStandalone),iosPushUnavailable:x(),iosStandaloneCapable:b(),sdkReady:s,browserPermission:i.browserPermission,sdkPermission:i.sdkPermission,optedIn:i.optedIn,subscriptionId:i.id,hasToken:!!i.token,tokenPreview:i.token?`${String(i.token).slice(0,48)}…`:null,reallySubscribed:f(i),pushEnabled:C(),swController:r,hasSwController:(0,v.hasServiceWorkerController)(),isPushSupported:n,platform:a}}e.s(["OPEN_PUSH_PERMISSION_EVENT",0,k,"PUSH_BUSY_SAFETY_MS",0,27e3,"PUSH_ENABLED_EVENT",0,w,"canSafelyLoginOneSignalUser",()=>W,"classifyPushEnableFailure",()=>T,"disablePush",()=>A,"enablePush",()=>F,"isIosPushUnavailable",()=>x,"isPushStackReady",()=>z,"markPushPermissionPromptHandled",()=>B,"maybeEnablePushAfterInstall",()=>q,"readPushDebugSnapshot",()=>U,"readPushEnabled",()=>C,"subscribePushChange",()=>R,"warmPushStack",()=>E],5865)},223945,e=>{"use strict";let t=(0,e.i(475254).default)("store",[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]]);e.s(["Store",()=>t],223945)},423609,e=>{"use strict";let t=(0,e.i(475254).default)("landmark",[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.12 2.198a2 2 0 0 1 1.76.006l7.866 3.847c.476.233.31.949-.22.949H3.474c-.53 0-.695-.716-.22-.949z",key:"1m329m"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]]);e.s(["Landmark",()=>t],423609)},87316,e=>{"use strict";let t=(0,e.i(475254).default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);e.s(["Calendar",()=>t],87316)},972520,e=>{"use strict";let t=(0,e.i(475254).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",()=>t],972520)},292457,e=>{"use strict";let t=(0,e.i(475254).default)("utensils",[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]]);e.s(["Utensils",()=>
12t],292457)},297387,e=>{"use strict";let t=(0,e.i(475254).default)("wine",[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M12 15v7",key:"t2xh3l"}],["path",{d:"M12 15a5 5 0 0 0 5-5c0-2-.5-4-2-8H9c-1.5 4-2 6-2 8a5 5 0 0 0 5 5Z",key:"10ffi3"}]]);e.s(["Wine",()=>t],297387)},213160,930731,732858,585883,664030,96772,163351,419851,688187,e=>{"use strict";var t=e.i(475254);let i=(0,t.default)("party-popper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]);e.s(["PartyPopper",()=>i],930731);let a=(0,t.default)("ferris-wheel",[["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m6.8 15-3.5 2",key:"hjy98k"}],["path",{d:"m20.7 7-3.5 2",key:"f08gto"}],["path",{d:"M6.8 9 3.3 7",key:"1aevh4"}],["path",{d:"m20.7 17-3.5-2",key:"1liqo3"}],["path",{d:"m9 22 3-8 3 8",key:"wees03"}],["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M18 18.7a9 9 0 1 0-12 0",key:"dhzg4g"}]]);e.s(["FerrisWheel",()=>a],732858);var r=e.i(653339);let n=(0,t.default)("drama",[["path",{d:"M10 11h.01",key:"d2at3l"}],["path",{d:"M14 6h.01",key:"k028ub"}],["path",{d:"M18 6h.01",key:"1v4wsw"}],["path",{d:"M6.5 13.1h.01",key:"1748ia"}],["path",{d:"M22 5c0 9-4 12-6 12s-6-3-6-12c0-2 2-3 6-3s6 1 6 3",key:"172yzv"}],["path",{d:"M17.4 9.9c-.8.8-2 .8-2.8 0",key:"1obv0w"}],["path",{d:"M10.1 7.1C9 7.2 7.7 7.7 6 8.6c-3.5 2-4.7 3.9-3.7 5.6 4.5 7.8 9.5 8.4 11.2 7.4.9-.5 1.9-2.1 1.9-4.7",key:"rqjl8i"}],["path",{d:"M9.1 16.5c.3-1.1 1.4-1.7 2.4-1.4",key:"1mr6wy"}]]);e.s(["Drama",()=>n],585883);var s=e.i(473708);let o=(0,t.default)("trophy",[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]]);e.s(["Trophy",()=>o],664030);let l=(0,t.default)("church",[["path",{d:"M10 9h4",key:"u4k05v"}],["path",{d:"M12 7v5",key:"ma6bk"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"m18 9 3.52 2.147a1 1 0 0 1 .48.854V19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-6.999a1 1 0 0 1 .48-.854L6 9",key:"flvdwo"}],["path",{d:"M6 21V7a1 1 0 0 1 .376-.782l5-3.999a1 1 0 0 1 1.249.001l5 4A1 1 0 0 1 18 7v14",key:"a5i0n2"}]]);e.s(["Church",()=>l],96772);var c=e.i(423609),u=e.i(966270),d=e.i(751975);let m=(0,t.default)("martini",[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M12 11v11",key:"ur9y6a"}],["path",{d:"m19 3-7 8-7-8Z",key:"1sgpiw"}]]);e.s(["Martini",()=>m],163351);var p=e.i(292457),g=e.i(297387);let h=(0,t.default)("disc-3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M6 12c0-1.7.7-3.2 1.8-4.2",key:"oqkarx"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M18 12c0 1.7-.7 3.2-1.8 4.2",key:"1eah9h"}]]);e.s(["Disc3",()=>h],419851);let f=(0,t.default)("croissant",[["path",{d:"M10.2 18H4.774a1.5 1.5 0 0 1-1.352-.97 11 11 0 0 1 .132-6.487",key:"14kkz9"}],["path",{d:"M18 10.2V4.774a1.5 1.5 0 0 0-.97-1.352 11 11 0 0 0-6.486.132",key:"1g7v07"}],["path",{d:"M18 5a4 3 0 0 1 4 3 2 2 0 0 1-2 2 10 10 0 0 0-5.139 1.42",key:"ratg6b"}],["path",{d:"M5 18a3 4 0 0 0 3 4 2 2 0 0 0 2-2 10 10 0 0 1 1.42-5.14",key:"4454f0"}],["path",{d:"M8.709 2.554a10 10 0 0 0-6.155 6.155 1.5 1.5 0 0 0 .676 1.626l9.807 5.42a2 2 0 0 0 2.718-2.718l-5.42-9.807a1.5 1.5 0 0 0-1.626-.676",key:"qmemie"}]]);e.s(["Croissant",()=>f],688187);var y=e.i(223945),v=e.i(522562);let x={sagra:i,mercato:y.Store,fiera:a,concerto:r.Music,teatro:n,mostra:s.Image,sport:o,escursione:v.Footprints,religioso:l,culturale:c.Landmark,enogastronomico:u.UtensilsCrossed,aperitivo:m,"cena spettacolo":p.Utensils,"degustazione / enogastronomia":g.Wine,"musica live":r.Music,"serata dj / discoteca":h,"festa a tema":i,"visione partita":o,brunch:f,altro:d.Tag},b=[[/concert|music|musica|\bdj\b|disco/,r.Music],[/teatro|theat|spettacol|drama/,n],[/mostra|expo|exhibit|\bart\b|gallery/,s.Image],[/escursion|trekking|walk|cammin|hiking|hike/,v.Footprints],[/sport|partita|gara|race|bike|run/,o],[/religios|church|sacr|processione/,l],[/cultur|museo|landmark|storic|historic/,c.Landmark],[/aperitiv|cocktail|drink/,m],[/brunch/,f],[/wine|vino|eno|degustazion|tasting/,g.Wine],[/food|gastronom|cibo|sagra|cena|street food|tipic/,u.UtensilsCrossed],[/mercato|market|prodotti|products|fair/,y.Store],[/fiera|luna ?park/,a],[/festa|festival|party|celebra/,i]];function k(e){if(!e)return d.Tag;let t=String(e).trim().toLowerCase();if(x[t])return x[t];for(let[e,i]of b)if(e.test(t))return i;return d.Tag}e.s(["getEventCategoryIcon",()=>k],213160)},923426,e=>{"use strict";let t=(0,e.i(475254).default)("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}
12],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);e.s(["UserRound",()=>t],923426)},484698,e=>{"use strict";var t=e.i(122550);let i={"1 hour":"1 ora","2 hours":"2 ore","3 hours":"3 ore","half day":"Mezza giornata","half-day":"Mezza giornata",half_day:"Mezza giornata","mezza giornata":"Mezza giornata","full day":"Giornata intera","full-day":"Giornata intera","giornata intera":"Giornata intera","1 day":"1 giorno","one day":"1 giorno","1-day":"1 giorno","1 giorno":"1 giorno","2-3 days":"2-3 giorni","2-3-days":"2-3 giorni","2-3 giorni":"2-3 giorni","2-3day":"2-3 giorni",weekend:"Weekend","fine settimana":"Weekend",week:"Una settimana","1 week":"Una settimana","una settimana":"Una settimana"},a={easy:"Facile",facile:"Facile",medium:"Media",average:"Media",moderate:"Media",media:"Media",hard:"Difficile",challenging:"Difficile",difficult:"Difficile",difficile:"Difficile",expert:"Esperto",tourist:"Turistico",hiking:"Escursionistico","expert hiking":"Escursionisti Esperti"},r={easy:"Easy",facile:"Easy",medium:"Medium",average:"Medium",moderate:"Medium",media:"Medium",hard:"Hard",challenging:"Challenging",difficult:"Hard",difficile:"Hard",expert:"Expert",tourist:"Tourist",hiking:"Hiking"};function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"it";if(!e)return"";let a=String(e).trim().replace(/\b(giorno|giornata|giorni)\s+giorni\b/gi,"$1").trim(),r=a.toLowerCase(),n=r.replace(/_/g," ").replace(/-/g," ");if("it"===t){if(i[r])return i[r];if(i[n])return i[n];let e=n.match(/^(\d+(?:[.,]\d+)?)\s*(?:hours?|hrs?|h|ore|ora)$/i);if(e){let t=e[1].replace(".",",");return`${t} ${"1"===e[1]?"ora":"ore"}`}let t=n.match(/^(\d+)\s*(minutes?|mins?|min|minuti|minuto)$/i);if(t)return/^mins?$/i.test(t[2])?`${t[1]} min`:`${t[1]} ${"1"===t[1]?"minuto":"minuti"}`;let a=n.match(/^(\d+)\s*(?:days?|giorni|giorno)$/i);if(a)return`${a[1]} ${"1"===a[1]?"giorno":"giorni"}`}else{let e=n.match(/^(\d+(?:[.,]\d+)?)\s*(?:hours?|hrs?|h|ore|ora)$/i);if(e)return`${e[1]} ${"1"===e[1]?"hour":"hours"}`;let t=n.match(/^(\d+)\s*(?:minutes?|mins?|min|minuti|minuto)$/i);if(t)return`${t[1]} ${"1"===t[1]?"minute":"minutes"}`;let i=n.match(/^(\d+)\s*(?:days?|giorni|giorno)$/i);if(i)return`${i[1]} ${"1"===i[1]?"day":"days"}`}return a}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"it";if(!e)return"";let i=String(e).trim(),n=i.toLowerCase(),s=n.replace(/_/g," ").replace(/-/g," "),o="it"===t?a:r;return o[n]||o[s]||i}let o={"educational activities":"Attività educative","educational activity":"Attività educative",educational:"Attività educative",education:"Educazione","outdoor activities":"Attività all'aperto",outdoor:"Outdoor","outdoor activity":"Attività all'aperto",adventure:"Avventura","adventure tours":"Tour avventura",nature:"Natura","nature & wildlife":"Natura e fauna","nature and wildlife":"Natura e fauna",wildlife:"Fauna selvatica",culture:"Cultura",cultural:"Cultura","culture & history":"Cultura e storia","culture and history":"Cultura e storia",history:"Storia",sightseeing:"Visite turistiche","sightseeing tours":"Tour turistici","food & drink":"Cibo e bevande","food and drink":"Cibo e bevande","food & drinks":"Cibo e bevande","food and drinks":"Cibo e bevande","food tours":"Tour enogastronomici","food tour":"Tour enogastronomico","cooking classes":"Corsi di cucina","cooking class":"Corso di cucina",cooking:"Cucina","dining experiences":"Esperienze gastronomiche","dining experience":"Esperienza gastronomica","wine tasting":"Degustazione vini","wine tastings":"Degustazione vini","wine tasting & winery tours":"Degustazioni e cantine","wine tasting and winery tours":"Degustazioni e cantine","wine tours":"Tour del vino","wine tour":"Tour del vino","winery tours":"Tour delle cantine","winery tour":"Tour delle cantine","street food":"Street food","street food tours":"Tour dello street food","street food tour":"Tour dello street food","oil tasting":"Degustazione olio","cheese tasting":"Degustazione formaggi",gastronomy:"Gastronomia","workshops & classes":"Laboratori e corsi","workshops and classes":"Laboratori e corsi",workshops:"Laboratori",workshop:"Laboratorio",classes:"Corsi",class:"Corso","water activities":"Attività acquatiche","water sports":"Sport acquatici","day trips":"Escursioni di un giorno","day trip":"Escursione di un giorno",transfers:"Trasferimenti",transfer:"Trasferimento","walking tours":"Tour a piedi","walking tour":"Tour a piedi","bike tours":"Tour in bici","bike tour":"Tour in bici","bike rental":"Noleggio bici","bike rentals":"Noleggio bici","e-bike rental":"Noleggio e-bike","e-bike rentals":"Noleggio e-bike","vespa & scooter tours":"Tour in Vespa e scooter","vespa tours":"Tour in Vespa",cycling:"Ciclismo",hiking:"Trekking","hiking & trekking":"Trekking ed escursioni","hiking and trekking":"Trekking ed escursioni",trekking:"Trekking",climbing:"Arrampicata","rock climbing":"Arrampicata",caving:"Speleologia",canyoning:"Canyoning",rafting:"Rafting",kayaking:"Kayak",kayak:"Kayak",canoeing:"Canoa","kayak & canoeing":"Kayak e canoa","kayak and canoeing":"Kayak e canoa",paddleboarding:"SUP",snorkeling:"Snorkeling","scuba diving":"Immersioni subacquee",diving:"Immersioni",sailing:"Vela","sailing tours":"Tour in barca a vela","boat rental":"Noleggio barche","boat rentals":"Noleggio barche",fishing:"Pesca","fishing trips":"Battute di pesca","horse riding":"Equitazione","horseback riding":"Passeggiate a cavallo","horse riding tours":"Passeggiate a cavallo","quad & atv tours":"Tour in quad","quad & buggies":"Quad e buggy","atv tours":"Tour in quad","4wd & off-road tours":"Tour in 4x4","4wd and off-road tours":"Tour in 4x4",safari:"Safari","hot air balloon rides":"Voli in mongolfiera","hot air balloon":"Mongolfiera","helicopter tours":"Tour in elicottero",paragliding:"Parapendio",skydiving:"Paracadutismo",zipline:"Zipline","theme parks":"Parchi a tema","theme park":"Parco a tema","water parks":"Parchi acquatici","water park":"Parco acquatico","amusement parks":"Parchi divertimento","amusement park":"Parco divertimento",attractions:"Attrazioni","attraction tickets":"Biglietti per attrazioni","monuments & memorials":"Monumenti","monuments and memorials":"Monumenti","castles & palaces":"Castelli e palazzi","castles and palaces":"Castelli e palazzi","religious sites":"Siti religiosi","churches & cathedrals":"Chiese e cattedrali","churches and cathedrals":"Chiese e cattedrali","national parks":"Parchi nazionali","parks & gardens":"Parchi e gi
12ardini","parks and gardens":"Parchi e giardini","botanical gardens":"Giardini botanici",museums:"Musei",museum:"Museo","shows & performances":"Spettacoli","shows and performances":"Spettacoli","theater & musicals":"Teatro e musical",opera:"Opera",festivals:"Festival","festivals & events":"Festival ed eventi","festivals and events":"Festival ed eventi",sports:"Sport",sport:"Sport","outdoor sports":"Sport all'aperto","winter sports":"Sport invernali","skiing & snowboarding":"Sci e snowboard","skiing and snowboarding":"Sci e snowboard",snowshoeing:"Ciaspolate","spa & wellness":"Spa e benessere","spa and wellness":"Spa e benessere","wellness & spa":"Benessere e spa",wellness:"Benessere","thermal baths":"Terme","hot springs":"Terme naturali",massages:"Massaggi",yoga:"Yoga","yoga & meditation":"Yoga e meditazione","yoga and meditation":"Yoga e meditazione","multi-day tours":"Tour di più giorni","multi day tours":"Tour di più giorni","air & helicopter tours":"Tour aerei","air and helicopter tours":"Tour aerei","cruises & boat tours":"Crociere e tour in barca","cruises and boat tours":"Crociere e tour in barca","boat tours":"Tour in barca","boat tour":"Tour in barca","boat trips":"Gite in barca","private boat tour":"Tour in barca privato","private and luxury":"Privati e luxury","private & luxury":"Privati e luxury","seasonal & special occasions":"Stagionali e occasioni speciali","seasonal and special occasions":"Stagionali e occasioni speciali","tickets & passes":"Biglietti e pass","tickets and passes":"Biglietti e pass","entry tickets":"Biglietti d'ingresso","skip the line":"Salta la coda","skip-the-line":"Salta la coda","skip the line tours":"Tour salta la coda","city tours":"Tour della città","city tour":"Tour della città","guided tours":"Tour guidati","guided tour":"Tour guidato","
12self-guided tours":"Tour autoguidati","self-guided tour":"Tour autoguidato","self guided tours":"Tour autoguidati","self guided tour":"Tour autoguidato","audio guides":"Audio guide","audio guide":"Audio guida","historical tours":"Tour storici","historical tour":"Tour storico","heritage tours":"Tour culturali e storici","archaeological tours":"Tour archeologici","architecture tours":"Tour di architettura","art & culture":"Arte e cultura","art and culture":"Arte e cultura","art tours":"Tour d'arte","art tour":"Tour d'arte","family friendly":"Per famiglie","family-friendly":"Per famiglie","kids & family":"Bambini e famiglie","kids and family":"Bambini e famiglie","family activities":"Attività per famiglie","family activity":"Attività per famiglie","romantic tours":"Tour romantici",photography:"Fotografia","photo shoots":"Servizi fotografici","photography tours":"Tour fotografici",nightlife:"Vita notturna",shopping:"Shopping","shopping tours":"Tour dello shopping","artisan workshops":"Botteghe artigiane","craft workshops":"Laboratori artigianali",crafts:"Artigianato",craft:"Artigianato",transportation:"Trasporti",transport:"Trasporti","airport transfers":"Transfer aeroporto","private transfers":"Trasferimenti privati","private transfer":"Trasferimento privato","custom tours":"Tour personalizzati","custom tour":"Tour personalizzato",experiences:"Esperienze",experience:"Esperienza",tours:"Tour",tour:"Tour",activities:"Attività",activity:"Attività","private tours":"Tour privati","private tour":"Tour privato",caves:"Grotte"};function l(e){return"en"===e||e.startsWith("en-")?"en":"it"}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"it";if(!e)return"";let i=String(e).trim();return i?"it"!==l(t)?i:o[i.toLowerCase()]||i:""}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"it";return e?.length?e.map(e=>c(e,t)).filter(Boolean):[]}function d(e){if("string"!=typeof e)return null;let t=e.trim();if(!t.startsWith("{")||!t.endsWith("}"))return null;try{let e=JSON.parse(t);return e&&"object"==typeof e?e:null}catch{return null}}function m(e,i){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!e)return a;let r=(e.title&&"object"==typeof e.title?e.title:d(e.title))||(e.name&&"object"==typeof e.name?e.name:d(e.name));if(r&&"object"==typeof r){let e=(0,t.getLocalizedLabel)(r,i,"");if(e&&e.trim())return e.trim();for(let e of Object.values(r))if("string"==typeof e&&e.trim())return e.trim()}if("string"==typeof e.title&&e.title.trim())return e.title.trim();if("string"==typeof e.name&&e.name.trim())return e.name.trim();let n="string"==typeof e.titleIt&&e.titleIt.trim()||"string"==typeof e["title.it"]&&e["title.it"].trim()||"string"==typeof e.title_it&&e.title_it.trim()||"string"==typeof e.nameIt&&e.nameIt.trim()||"string"==typeof e["name.it"]&&e["name.it"].trim()||"string"==typeof e.name_it&&e.name_it.trim()||"",s="string"==typeof e.titleEn&&e.titleEn.trim()||"string"==typeof e["title.en"]&&e["title.en"].trim()||"string"==typeof e.title_en&&e.title_en.trim()||"string"==typeof e.nameEn&&e.nameEn.trim()||"string"==typeof e["name.en"]&&e["name.en"].trim()||"string"==typeof e.name_en&&e.name_en.trim()||"",o="en"===l(i)?s||n:n||s;if(o&&o.trim())return o.trim();let c="string"==typeof e.seoTitle&&e.seoTitle.trim()||"string"==typeof e.metaTitle&&e.metaTitle.trim()||"string"==typeof e.headline&&e.headline.trim()||"string"==typeof e.label&&e.label.trim()||"";if(c)return c;let u=e.enrichedSeoMeta;if(u&&"object"==typeof u){let e="en"===l(i)?u.en?.title||u.it?.title:u.it?.title||u.en?.title;if("string"==typeof e&&e.trim())return e.trim()}let m="string"==typeof e.slug?e.slug.trim():"";if(m&&!/^experience-[0-9a-f-]+$/i.test(m)&&!/^exp-[0-9]+$/i.test(m)&&!/^[0-9]+$/.test(m)){let e=m.replace(/[-_]+/g," ").trim().replace(/\b\w/g,e=>e.toUpperCase());if(e)return e}return a}e.s(["localizeDifficulty",()=>s,"localizeDuration",()=>n,"localizeExperienceCategories",()=>u,"localizeExperienceCategory",()=>c,"pickExperienceTitle",()=>m])},178583,e=>{"use strict";let t=(0,e.i(475254).default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["FileText",()=>t],178583)},734858,e=>{"use strict";let t=(0,e.i(475254).default)("navigation",[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]]);e.s(["Navigation",()=>t],734858)},511201,e=>{"use strict";var t=e.i(271645),i=e.i(775786);let a="ilb_recent_views";function r(){try{let e=localStorage.getItem(a);return e?JSON.parse(e):[]}catch{return[]}}function n(){let[e,n]=(0,t.useState)([]),{token:s}=(0,i.useAppSelector)(e=>e.user),o=(0,t.useCallback)(()=>{n(r())},[]);return(0,t.useEffect)(()=>{o();let e=()=>{o()};return window.addEventListener("storage",e),window.addEventListener("ilb_recent_views_updated",e),window.addEventListener("focus",e),()=>{window.removeEventListener("storage",e),window.removeEventListener("ilb_recent_views_updated",e),window.removeEventListener("focus",e)}},[o]),{recentViews:e,addRecentView:(0,t.useCallback)(async e=>{if(!e.id||!e.name)return;let t={...e,visitedAt:Date.now()},i=[t,...r().filter(t=>(t.id!==e.id||t.type!==e.type)&&!(t.url&&e.url&&t.url===e.url))].slice(0,12);try{localStorage.setItem(a,JSON.stringify(i)),window.dispatchEvent(new CustomEvent("ilb_recent_views_updated"))}catch{}n(i),s&&fetch("/api/v1/users/me/recent-views",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${s}`},body:JSON.stringify(t)}
12).catch(()=>{})},[s]),refresh:o}}e.s(["useRecentViews",()=>n])},503116,e=>{"use strict";let t=(0,e.i(475254).default)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Clock",()=>t],503116)},383157,e=>{"use strict";let t=(0,e.i(475254).default)("facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);e.s(["Facebook",()=>t],383157)},263488,e=>{"use strict";let t=(0,e.i(475254).default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["Mail",()=>t],263488)},923102,e=>{"use strict";let t=(0,e.i(475254).default)("instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);e.s(["Instagram",()=>t],923102)},73526,e=>{"use strict";let t=(0,e.i(475254).default)("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);e.s(["Map",()=>t],73526)},900190,e=>{"use strict";let t=[{id:1,name:"Abruzzo",icon:"/regions/abruzzo.svg",slug:"abruzzo",image:"https://cdn.tur
12istipercaso.it/media?src=/uploads/2022/09/borghi-da-visitare-in-abruzzo_496574026.jpg&sharpen&save-as=webp&aspect-ratio=16:9&crop-to-fit&w=1040&h=585&q=90",tagline:"Montagne selvagge, borghi di pietra e sapori antichi."},{id:2,name:"Basilicata",icon:"/regions/basilicata.svg",slug:"basilicata",image:"https://www.cuorebasilicata.it/wp-content/uploads/2019/01/viggiano.jpg",tagline:"Rocce, silenzi e borghi sospesi tra cielo e vallate."},{id:3,name:"Calabria",icon:"/regions/calabria.svg",slug:"calabria",image:"https://cdn.turistipercaso.it/media?src=/uploads/2025/06/rocca-imperiale.jpg&sharpen&save-as=webp&aspect-ratio=16:9&crop-to-fit&w=1040&h=585&q=90",tagline:"Tra mare cristallino e borghi di tradizione millenaria."},{id:4,name:"Campania",icon:"/regions/campania.svg",slug:"campania",image:"https://www.campania.info/wp-content/uploads/sites/111/santagata-dei-goti-panorama.jpg",tagline:"Storia, gastronomia e borghi panoramici affacciati sul mare."},{id:5,name:"Emilia-Romagna",icon:"/regions/emilia-romagna.svg",slug:"emilia-romagna",image:"https://www.vivigreen.eu/wp-content/uploads/2025/12/bagnacavallo-RA.jpg",tagline:"Cultura, cucina e borghi medievali nel cuore d'Italia."},{id:6,name:"Friuli Venezia Giulia",icon:"/regions/friuli-venezia-giulia.svg",slug:"friuli-venezia-giulia",image:"https://moveo.telepass.com/wp-content/uploads/2023/07/borghi-friuli-polcenigo.jpeg",tagline:"Borghi alpini, vigneti e crocevia di culture."},{id:7,name:"Lazio",icon:"/regions/lazio.svg",slug:"lazio",image:"https://www.ilborghista.it/images/main/borghi-antichi-italia-corinaldo.webp",tagline:"Storia eterna, borghi nascosti e paesaggi di bellezza senza tempo."},{id:8,name:"Liguria",icon:"/regions/liguria.svg",slug:"liguria",image:"https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?q=80&w=1200&auto=format&fit=crop",tagline:"Borghi colorati arroccati tra montagna e mare."},{id:9,name:"Lombardia",icon:"/regions/lombardia.svg",slug:"lombardia",image:"https://www.ilborghista.it/images/main/borghi-antichi-italia-corinaldo.webp",tagline:"Laghi, valli e borghi affascinanti dal carattere alpino."},{id:10,name:"Marche",icon:"/regions/marche.svg",slug:"marche",image:"https://www.ilborghista.it/images/main/borghi-antichi-italia-corinaldo.webp",tagline:"Colline rinascimentali, borghi storici e vita rurale autentica."},{id:11,name:"Molise",icon:"/regions/molise.svg",slug:"molise",image:"https://www.ilborghista.it/images/main/borghi-antichi-italia-corinaldo.webp",tagline:"Il segreto d'Italia: natura incontaminata e tradizioni antiche."},{id:12,name:"Piemonte",icon:"/regions/piemonte.svg",slug:"piemonte",image:"https://www.ilborghista.it/images/main/borghi-antichi-italia-corinaldo.webp",tagline:"Vigneti, castelli e borghi incoronati dalle Alpi."},{id:13,name:"Puglia",icon:"/regions/puglia.svg",slug:"puglia",image:"https://www.ilborghista.it/images/main/borghi-antichi-italia-corinaldo.webp",tagline:"Borghi bianchi, uliveti e il calore del sud."},{id:14,name:"Sardegna",icon:"/regions/sardegna.svg",slug:"sardegna",image:"https://images.unsplash.com/photo-1500375592092-40eb2168fd21?q=80&w=1200&auto=format&fit=crop",tagline:"Acque cristalline, nuraghi antichi e tradizioni pastorali senza tempo."},{id:15,name:"Sicilia",icon:"/regions/sicilia.svg",slug:"sicilia",image:"https://www.ilborghista.it/images/main/borghi-antichi-italia-corinaldo.webp",tagline:"Un mosaico di culture, sapori e paesaggi mozzafiato."},{id:16,name:"Toscana",icon:"/regions/toscana.svg",slug:"toscana",image:"https://glnbdtlftdlvofuhqmjo.supabase.co/storage/v1/object/public/il-borghista-backend/regions/21733dc7-2855-4760-a808-b368e74d0db7.jpg",tagline:"Colline di cipressi, torri medievali e arte di fama mondiale."},{id:17,name:"Trentino-Alto Adige",icon:"/regions/trentino-alto-adige.svg",slug:"trentino-alto-adige",image:"https://www.ilborghista.it/images/main/borghi-antichi-italia-corinaldo.webp",tagline:"Vette dolomitiche, masi alpini e borghi da cartolina."},{id:18,name:"Umbria",icon:"/regions/umbria.svg",slug:"umbria",image:"https://www.ilborghista.it/images/main/borghi-antichi-italia-corinaldo.webp",tagline:"Il cuore verde d'Italia: borghi mistici e uliveti collinari."},{id:19,name:"Valle d'Aosta",icon:"/regions/valle-d-aosta.svg",slug:"valle-d-aosta",image:"https://images.unsplash.com/photo-1519681393784-d120267933ba?q=80&w=1200&auto=format&fit=crop",tagline:"Montagne maestose, castelli e la regi
12one più piccola con il cuore più grande."},{id:20,name:"Veneto",icon:"/regions/veneto.svg",slug:"veneto",image:"https://images.unsplash.com/photo-1501785888041-af3ef285b470?q=80&w=1200&auto=format&fit=crop",tagline:"Da Venezia alle Dolomiti, borghi d'arte e di natura."}];e.s(["REGIONS",0,t,"getRegionBySlug",0,e=>t.find(t=>t.slug===e)])},961057,e=>{"use strict";var t=e.i(900190);function i(e){if(!e||"string"!=typeof e)return!1;let t=e.trim();return!(!t||/streetviewpixels-pa\.googleapis\.com/i.test(t)&&!/[?&]panoid=[^&\s]+/.test(t))}function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(let e of t){if("string"==typeof e&&i(e))return e.trim();if(e&&"object"==typeof e&&"url"in e){let t=e.url;if(i(t))return t.trim()}if(Array.isArray(e))for(let t of e){let e=a(t);if(e)return e}}}function r(e){return a(e.coverImage,e.gallery,e.mediaGallery,e.galleryImages)}function n(e){let t="string"==typeof e.coverImage?e.coverImage.trim():"",i=!!t&&/googleusercontent\.com|ggpht\.com|streetviewpixels-pa\.googleapis\.com/i.test(t),r=!!t&&/streetviewpixels-pa\.googleapis\.com/i.test(t)&&!/[?&]panoid=[^&\s]+/.test(t),n=(e.roomTypes||[]).flatMap(e=>e.photos||[]),s=(e.menuDishes||[]).map(e=>e.photo),o=(e.artisanProducts||[]).map(e=>e.photo),l=(e.bottegaProducts||[]).map(e=>e.photo),c=(e.menuFiles||[]).filter(e=>"string"==typeof e&&/\.(jpe?g|png|webp|gif)(\?|$)/i.test(e)),u=a(e.mediaGallery,e.image,e.media?.coverHero,e.media?.logo,...n,...s,...o,...l,...c);return u&&(!t||i||r)?u:t&&!r?t:u}function s(e){return a(e.coverImage,e.image,e.mediaGallery,e.gallery)}function o(e){return a(e.image,e.coverImage,e.mediaGallery)}function l(e){return a(e.coverImage,e.mediaGallery,e.gallery)}function c(e){return a(e.coverImage,e.image)}function u(e,i){switch(e){case"regions":return{...i,coverImage:a(i.coverImage)||(0,t.getRegionBySlug)(i.slug)?.image};case"municipalities":return{...i,coverImage:r(i),regionId:i.regionId||("string"==typeof i.region?i.region:i.region?.id)||null,regionName:i.regionName||null,province:i.province??null,tagline:i.tagline??null,awards:Array.isArray(i.awards)?i.awards:[],isVerified:i.isVerified??!1};case"businesses":return{...i,coverImage:n(i)};case"events":return{...i,coverImage:s(i)};case"experiences":return{...i,coverImage:o(i)};case"itineraries":return{...i,coverImage:l(i)};case"cammini":return{...i,coverImage:a(i.coverImage,i.gallery,i.image)};case"blogPosts":case"blog":return{...i,coverImage:a("string"==typeof i.coverImage?i.coverImage:i.coverImage?.url,i.image)};case"pois":{let e=i.municipality?.name||i.municipalityName||null,t=i.municipality?.province||i.province||i.municipalityProvince||null;return{...i,coverImage:c(i),municipalityName:e,province:t,municipality:e?{..."object"==typeof i.municipality&&i.municipality?i.municipality:{},name:e,province:t||void 0}:i.municipality}}case"products":case"typical_products":return{...i,image:i.image||i.coverImage||null,coverImage:i.coverImage||i.image||null,producer:i.producer||i.brand||null,location:i.location||i.municipalityName||i.municipality?.name||null};default:return i}}e.s(["normalizeSearchHit",()=>u,"resolveBusinessSearchImage",()=>n,"resolveEventSearchImage",()=>s,"resolveExperienceSearchImage",()=>o,"resolveItinerarySearchImage",()=>l,"resolveMunicipalitySearchImage",()=>r,"resolvePoiSearchImage",()=>c])},267331,e=>{"use strict";let t=(0,e.i(475254).default)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["HelpCircle",()=>t],267331)},723616,e=>{"use strict";let t=(0,e.i(475254).default)("youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]);e.s(["Youtube",()=>t],723616)},607486,e=>{"use strict";let t=(0,e.i(475254).default)("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}
12],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]);e.s(["Building2",()=>t],607486)},976154,e=>{"use strict";let t="event_form_restore_v1:";function i(e,t){let i=new URLSearchParams;return i.set("restoreKey",e),t&&i.set("municipalityId",t),`/create-event?${i.toString()}`}function a(e){let i=`${Date.now()}_${Math.random().toString(36).slice(2,10)}`;try{return localStorage.setItem(t+i,JSON.stringify(e)),i}catch{return null}}function r(e){try{let i=localStorage.getItem(t+e);if(!i)return null;return JSON.parse(i)}catch{return null}}function n(e){try{localStorage.removeItem(t+e)}catch{}}function s(){if("undefined"==typeof localStorage)return null;let e=null;try{for(let i=0;i<localStorage.length;i++){let a=localStorage.key(i);if(!a?.startsWith(t))continue;let n=a.slice(t.length),s=r(n);if(!s)continue;let o=Number(String(n).split("_")[0])||0,l=!!s.pendingPublish;(!e||o>e.ts||o===e.ts&&l&&!e.pending)&&(e={key:n,payload:s,ts:o,pending:l})}}catch{return null}if(!e)return null;let a="string"==typeof e.payload.formData?.municipalityId?e.payload.formData.municipalityId:null;return{key:e.key,payload:e.payload,path:i(e.key,a)}}e.s(["buildEventFormReturnPath",()=>i,"clearEventFormRestore",()=>n,"findLatestEventFormRestore",()=>s,"loadEventFormRestore",()=>r,"saveEventFormRestore",()=>a])},940141,e=>{"use strict";var t=e.i(271645),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=t.default.createContext&&t.default.createContext(i),r=["attr","size","title"];function n(){return(n=Object.assign.bind()).apply(this,arguments)}function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,a)}return i}function o(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?s(Object(i),!0).forEach(function(t){var a,r,n;a=e,r=t,n=i[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var a=i.call(e,t||"default");if("object"!=typeof a)return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r))in a?Object.defineProperty(a,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):a[r]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function l(e){return i=>t.default.createElement(c,n({attr:o({},e.attr)},i),function e(i){return i&&i.map((i,a)=>t.default.createElement(i.tag,o({key:a},i.attr),e(i.child)))}(e.child))}function c(e){var s=i=>{var a,{attr:s,size:l,title:c}=e,u=function(e,t){if(null==e)return{};var i,a,r=function(e,t){if(null==e)return{};var i={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;i[a]=e[a]}return i}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}(e,r),d=l||i.size||"1em";return i.className&&(a=i.className),e.className&&(a=(a?a+" ":"")+e.className),t.default.createElement("svg",n({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},i.attr,s,u,{className:a,style:o(o({color:e.color||i.color},i.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),c&&t.default.createElement("title",null,c),e.children)};return void 0!==a?t.default.createElement(a.Consumer,null,e=>s(e)):s(i)}e.s(["GenIcon",()=>l],940141)},20656,e=>{"use strict";var t=e.i(843476),i=e.i(271645),a=e.i(174080),r=e.i(346897),n=e.i(531278),s=e.i(37727),o=e.i(734858),l=e.i(555436),c=e.i(948148),u=e.i(567163),d=e.i(53219),m=e.i(477202);function p(e){let{variant:p="default",className:g="",radiusUsedKm:h=null,onExplorePlace:f}=e,y=(0,c.useTranslations)("geoPill"),{geoActive:v,coords:x,radiusKm:b,isRequestingLocation:k,activateGeo:w,deactivateGeo:j,setRadiusKm:S}=(0,u.useGeoContext)(),N=function(e){let t=(0,m.default)(),{data:a}=(0,d.useGetSimpleMunicipalitiesQuery)(void 0,{skip:!e}),r=a?.items||[];return(0,i.useMemo)(()=>
12{if(!e||!r.length)return null;let i=1/0,a=null;for(let n of r){let r=null!=n.latitude?Number(n.latitude):NaN,s=null!=n.longitude?Number(n.longitude):NaN;if(!Number.isFinite(r)||!Number.isFinite(s))continue;let o=(r-e.lat)**2+(s-e.lng)**2;o<i&&(i=o,a=t(n.name)||null)}return a},[e,r,t])}(v?x:null),[_,C]=(0,i.useState)(!1),M=(0,i.useRef)(null),P=null!=h&&Number.isFinite(h)?Math.round(h):b;(0,i.useEffect)(()=>{if(!_)return;let e=e=>{"Escape"===e.key&&C(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[_]);let I=async()=>{k||C(e=>!e)},E=e=>{e.stopPropagation(),C(!1),j()},z=v?N?y("nearMeOn",{place:N,km:P}):y("nearMeOnFallback",{km:P}):y("nearMe");return(0,t.jsxs)("div",{className:`relative inline-flex ${g}`,children:[(0,t.jsxs)("button",{type:"button",onClick:I,disabled:k,"aria-pressed":v,"aria-expanded":_,className:`inline-flex max-w-full items-center gap-1.5 rounded-full border px-3 py-1.5 text-[13px] font-semibold transition-all active:scale-[0.98] disabled:opacity-70 ${v?"bg-primary text-white border-primary shadow-sm":"hero"===p?"bg-white text-primary-dark border-white shadow-md":"overlay"===p?"bg-white text-primary border-primary/40":"bg-white text-primary border-primary/50"}`,children:[k?(0,t.jsx)(n.Loader2,{size:13,className:"shrink-0 animate-spin"}):(0,t.jsx)(r.MapPin,{size:13,className:"shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:k?y("gettingLocation"):z}),v&&(0,t.jsx)("span",{role:"button",tabIndex:0,"aria-label":y("turnOff"),onClick:E,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),E(e))},className:"ml-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded-full bg-white/20 hover:bg-white/30",children:(0,t.jsx)(s.X,{size:11,strokeWidth:2.5})})]}),_&&"undefined"!=typeof document&&(0,a.createPortal)((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[100000] backdrop-blur-[2px]",style:{backgroundColor:"rgba(0, 0, 0, 0.35)"},"aria-hidden":!0,onClick:()=>C(!1)}),(0,t.jsxs)("div",{ref:M,className:"fixed left-1/2 top-1/2 z-[100001] -translate-x-1/2 -translate-y-1/2 overflow-hidden rounded-3xl bg-white shadow-[0_20px_50px_rgba(107,39,26,0.18)]",style:{width:"min(420px, calc(100vw - 32px))"},role:"dialog","aria-label":y("sheetTitle"),children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3 border-b border-stone-100 px-5 pb-3 pt-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[15px] font-black tracking-tight text-primary-dark",children:y("sheetTitle")}),(0,t.jsx)("p",{className:"mt-0.5 text-[12px] font-semibold text-stone-400",children:y(v?"radius":"sheetHint")})]}),(0,t.jsx)("button",{type:"button",onClick:()=>C(!1),className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-stone-400 transition-colors hover:bg-stone-100 hover:text-primary-dark","aria-label":y("close"),children:(0,t.jsx)(s.X,{size:16,strokeWidth:2.25})})]}),(0,t.jsxs)("div",{className:"p-4",children:[v?(0,t.jsx)("div",{className:"grid grid-cols-4 gap-2",children:u.GEO_RADIUS_TIERS.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>{S(e),C(!1)},className:`rounded-2xl px-2 py-3 text-[13px] font-black transition-colors ${b===e?"bg-primary text-white shadow-sm":"bg-[#FBF5EA] text-primary-dark hover:bg-[#F3E6D4]"}`,children:[e," km"]},e))}):(0,t.jsxs)("button",{type:"button",onClick:async()=>{await w()&&C(!1)},disabled:k,className:"flex w-full items-center gap-3 rounded-2xl bg-primary px-3.5 py-3 text-left text-white shadow-sm transition-opacity disabled:opacity-70",children:[(0,t.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-white/15",children:k?(0,t.jsx)(n.Loader2,{size:16,className:"animate-spin"}):(0,t.jsx)(o.Navigation,{size:16})}),(0,t.jsx)("span",{className:"min-w-0 text-[14px] font-black leading-tight",children:y(k?"gettingLocation":"useMyLocation")})]}),f&&(0,t.jsxs)("button",{type:"button",onClick:()=>{C(!1),f()},className:"mt-2 flex w-full items-center gap-3 rounded-2xl bg-[#FBF5EA] px-3.5 py-3 text-left transition-colors hover:bg-[#F3E6D4]",children:[(0,t.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-white text-primary",children:(0,t.jsx)(l.Search,{size:16})}),(0,t.jsx)("span",{className:"min-w-0 text-[14px] font-black leading-tight text-primary-dark",children:y(v?"changeMunicipality":"searchVillage")})]}),v&&(0,t.jsx)("button",{type:"button",onClick:()=>{C(!1),j()},className:"mt-1 w-full rounded-xl px-3 py-2.5 text-center text-[12px] font-bold text-stone-400 hover:text-primary",children:y("turnOff")})]})]})]}),document.body)]})}e.s(["default",()=>p],20656)},516015,(e,t,i)=>{},898547,(e,t,i)=>{var a=e.i(247167);e.r(516015);var r=e.r(271645),n=r&&"object"==typeof r&&"default"in r?r:{default:r},s=void 0!==a.default&&a.default.env&&!0,o=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,i=t.name,a=void 0===i?"stylesheet":i,r=t.optimizeForSpeed,n=void 0===r?s:r;c(o(a),"`name` must be a string"),this._name=a,this._deletedRulePlaceholder="#"+a+"-deleted-rule____{}",c("boolean"==typeof n,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=n,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t,i=e.prototype;return i.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},i.isOptimizeForSpeed=function(){return this._optimizeForSpeed},i.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.get
12Sheet(),this._optimizeForSpeed||(s||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,i){return"number"==typeof i?e._serverSheet.cssRules[i]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),i},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},i.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},i.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},i.insertRule=function(e,t){if(c(o(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var i=this.getSheet();"number"!=typeof t&&(t=i.cssRules.length);try{i.insertRule(e,t)}catch(t){return s||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var a=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,a))}return this._rulesCount++},i.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var i="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!i.cssRules[e])return e;i.deleteRule(e);try{i.insertRule(t,e)}catch(a){s||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),i.insertRule(this._deletedRulePlaceholder,e)}}else{var a=this._tags[e];c(a,"old rule at index `"+e+"` not found"),a.textContent=t}return e},i.deleteRule=function(e){if("undefined"==typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},i.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEac
12h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},i.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,i){return i?t=t.concat(Array.prototype.map.call(e.getSheetForTag(i).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},i.makeStyleTag=function(e,t,i){t&&c(o(t),"makeStyleTag accepts only strings as second parameter");var a=document.createElement("style");this._nonce&&a.setAttribute("nonce",this._nonce),a.type="text/css",a.setAttribute("data-"+e,""),t&&a.appendChild(document.createTextNode(t));var r=document.head||document.getElementsByTagName("head")[0];return i?r.insertBefore(a,i):r.appendChild(a),a},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}(e.prototype,t),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var u=function(e){for(var t=5381,i=e.length;i;)t=33*t^e.charCodeAt(--i);return t>>>0},d={};function m(e,t){if(!t)return"jsx-"+e;var i=String(t),a=e+i;return d[a]||(d[a]="jsx-"+u(e+"-"+i)),d[a]}function p(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var i=e+t;return d[i]||(d[i]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[i]}var g=function(){function e(e){var t=void 0===e?{}:e,i=t.styleSheet,a=void 0===i?null:i,r=t.optimizeForSpeed,n=void 0!==r&&r;this._sheet=a||new l({name:"styled-jsx",optimizeForSpeed:n}),this._sheet.inject(),a&&"boolean"==typeof n&&(this._sheet.setOptimizeForSpeed(n),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var i=this.getIdAndRules(e),a=i.styleId,r=i.rules;if(a in this._instancesCounts){this._instancesCounts[a]+=1;return}var n=r.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[a]=n,this._instancesCounts[a]=1},t.remove=function(e){var t=this,i=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(i in this._instancesCounts,"styleId: `"+i+"` not found"),this._instancesCounts[i]-=1,this._instancesCounts[i]<1){var a=this._fromServer&&this._fromServer[i];a?(a.parentNode.removeChild(a),delete this._fromServer[i]):(this._indices[i].forEac
12h(function(e){return t._sheet.deleteRule(e)}),delete this._indices[i]),delete this._instancesCounts[i]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],i=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return i[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,i;return t=this.cssRules(),void 0===(i=e)&&(i={}),t.map(function(e){var t=e[0],a=e[1];return n.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:i.nonce?i.nonce:void 0,dangerouslySetInnerHTML:{__html:a}})})},t.getIdAndRules=function(e){var t=e.children,i=e.dynamic,a=e.id;if(i){var r=m(a,i);return{styleId:r,rules:Array.isArray(t)?t.map(function(e){return p(r,e)}):[p(r,t)]}}return{styleId:m(a),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),h=r.createContext(null);function f(){return new g}function y(){return r.useContext(h)}h.displayName="StyleSheetContext";var v=n.default.useInsertionEffect||n.default.useLayoutEffect,x="undefined"!=typeof window?f():void 0;function b(e){var t=x||y();return t&&("undefined"==typeof window?t.add(e):v(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}b.dynamic=function(e){return e.map(function(e){return m(e[0],e[1])}).join(" ")},i.StyleRegistry=function(e){var t=e.registry,i=e.children,a=r.useContext(h),s=r.useState(function(){return a||t||f()})[0];return n.default.createElement(h.Provider,{value:s},i)},i.createStyleRegistry=f,i.style=b,i.useStyleRegistry=y},437902,(e,t,i)=>{t.exports=e.r(898547).style},697196,e=>{"use strict";e.i(597671),e.s([])},826707,e=>{"use strict";let t=(0,e.i(475254).default)("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);e.s(["Smartphone",()=>t],826707)},919313,e=>{"use strict";var t=e.i(846696),i=e.i(190302);function a(e,a){if("domain"===a){let a=(0,i.getOneSignalInitFailure)(),r=a?.allowedOrigin||"—",n=window.location.origin;t.toast.error(e("toastPushDomainMismatch",{allowed:r,current:n}),{duration:1e4});return}"blocked"===a?t.toast.error(e("toastPushBlocked"),{duration:8e3}):"setup_failed"===a?t.toast.error(e("toastPushSetupFailed"),{duration:6e3}):"not_ready"===a?t.toast.error(e("toastPushNotReady"),{duration:5e3}):"unavailable"===a?t.toast.error(e("toastPushNeedsHomeScreen"),{duration:8e3}):t.toast.error(e("toastPushDenied"),{duration:5e3})}e.s(["toastPushEnableFailure",()=>a])},500860,e=>{"use strict";function t(e){let{pathname:t,municipality:i}=e,a=i?.latitude!=null?Number(i.latitude):NaN,r=i?.longitude!=null?Number(i.longitude):NaN;if(!Number.isNaN(a)&&!Number.isNaN(r)&&0!==a&&0!==r)return`/map?lat=${a.toFixed(6)}&lng=${r.toFixed(6)}&zoom=16`;if(t.startsWith("/today"))try{let e=JSON.parse(sessionStorage.getItem("todayMapLocation")||"{}");if(e.lat&&e.lng)return`/map?lat=${Number(e.lat).toFixed(6)}&lng=${Number(e.lng).toFixed(6)}&zoom=16`}catch{}try{let e=sessionStorage.getItem("mapFromSearch");if(e){sessionStorage.removeItem("mapFromSearch");let t=JSON.parse(e);if(t?.lat&&t?.lng)return`/map?lat=${Number(t.lat).toFixed(6)}&lng=${Number(t.lng).toFixed(6)}&zoom=13`}}catch{}return"/map"}function i(e){return e.match(/^\/municipality\/([^/]+)/)?.[1]??null}e.s(["buildMapUrl",()=>t,"municipalityIdFromPath",()=>i])},394908,e=>{"use strict";let t=(0,e.i(475254).default)("compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Compass",()=>t],394908)},492161,e=>{"use strict";let t=(0,e.i(475254).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);e.s(["Menu",()=>t],492161)},798937,e=>{"use strict";var t=e.i(843476),i=e.i(861745),a=e.i(948148),r=e.i(618566),n=e.i(271645),s=e.i(6
1257688);function o(e){let{variant:o="badge",className:l=""}=e,c=(0,i.useLocale)(),u=(0,a.useTranslations)("frontend.userDrawer"),d=(0,r.useRouter)(),[m,p]=(0,n.useTransition)(),g=()=>{document.cookie=`NEXT_LOCALE=${"it"===c?"en":"it"}; path=/; max-age=31536000; SameSite=Lax`,p(()=>{d.refresh()})},h="it"===c,f=u(h?"languageEnglish":"languageItalian");return"row"===o?(0,t.jsxs)("button",{type:"button",onClick:g,disabled:m,"aria-label":u("switchLanguage"),className:`flex items-center gap-2 px-3 py-2.5 rounded-xl hover:bg-stone-50 transition-colors w-full text-left ${m?"opacity-50 cursor-not-allowed":""} ${l}`,children:[(0,t.jsx)(s.default,{src:h?"https://flagcdn.com/w40/gb.png":"https://flagcdn.com/w40/it.png",alt:h?"English":"Italiano",width:22,height:16,loading:"lazy",className:"object-cover rounded-sm shrink-0"}),(0,t.jsx)("span",{className:"text-[14px] font-bold",style:{color:"var(--primary)"},children:f})]}):(0,t.jsx)("button",{onClick:g,disabled:m,"aria-label":u("switchLanguage"),className:`inline-flex items-center justify-center w-9 h-9 rounded-full border border-stone-200 bg-white overflow-hidden transition-all hover:bg-stone-50 active:scale-95 ${m?"opacity-50 cursor-not-allowed":""} ${l}`,children:(0,t.jsx)(s.default,{src:h?"https://flagcdn.com/w40/it.png":"https://flagcdn.com/w40/gb.png",alt:h?"Italiano":"English",width:28,height:20,loading:"lazy",className:"object-cover rounded-sm"})})}e.s(["default",()=>o])},292270,e=>{"use strict";let t=(0,e.i(475254).default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);e.s(["LogOut",()=>t],292270)},14436,e=>{"use strict";var t=e.i(843476),i=e.i(271645),a=e.i(292270),r=e.i(948148);function n(e){let{isOpen:n,onClose:s,onConfirm:o}=e,[l,c]=(0,i.useState)(!1),[u,d]=(0,i.useState)(n),m=(0,r.useTranslations)("frontend.logout");return((0,i.useEffect)(()=>{if(n){d(!0);let e=setTimeout(()=>c(!0),10);return()=>clearTimeout(e)}{c(!1);let e=setTimeout(()=>d(!1),300);return()=>clearTimeout(e)}},[n]),u)?(0,t.jsxs)("div",{className:`fixed inset-0 z-[10000] flex items-center justify-center p-4 transition-all duration-300 ${l?"opacity-100":"opacity-0"}`,children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm",onClick:s}),(0,t.jsxs)("div",{className:`relative bg-white w-full max-w-[513px] h-auto min-h-[397px] rounded-[24px] shadow-2xl flex flex-col items-center justify-center p-[40px] text-center transition-all duration-300 transform ${l?"scale-100":"scale-0"}`,children:[(0,t.jsx)("div",{className:"w-[72px] h-[72px] bg-[rgba(237,18,18,0.1)] rounded-full flex items-center justify-center mb-[32px]",children:(0,t.jsx)(a.LogOut,{size:32,className:"text-primary"})}),(0,t.jsx)("h2",{className:"font-bold text-[32px] leading-[40px] text-[#222222] mb-[20px] tracking-tight",children:m("title")}),(0,t.jsx)("p",{className:"text-[21px] leading-[35px] text-[#222222] opacity-60 mb-[40px] max-w-[385px] tracking-tight",children:m("message")}),(0,t.jsxs)("div",{className:"flex items-center w-full justify-center gap-6",children:[(0,t.jsx)("button",{onClick:s,style:{width:"min(163px, calc((100% - 24px) / 2))",height:"56px"},className:"border-[1.5px] border-[#1A1A1A] rounded-[12px] font-medium text-[18px] leading-[21px] text-[#1A1A1A] hover:bg-gray-50 transition-colors opacity-80 shrink-0",children:m("cancel")}),(0,t.jsx)("button",{onClick:o,style:{width:"min(163px, calc((100% - 24px) / 2))",height:"56px"},className:"bg-primary rounded-[12px] font-medium text-[18px] leading-[21px] text-white hover:bg-[#D11010] transition-colors shrink-0",children:m("confirm")})]})]})]}):null}e.s(["default",()=>n])},488844,e=>{"use strict";let t=(0,e.i(475254).default)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);e.s(["Package",()=>t],488844)},551804,e=>{"use strict";let t=(0,e.i(475254).default)("calendar-check",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]]);e.s(["CalendarCheck",()=>t],551804)},434499,103120,e=>{"use strict";var t=e.i(843476),i=e.i(437902),a=e.i(271645),r=e.i(522016),n=e.i(618566),s=e.i(948148),o=e.i(861745),l=e.i(555436),c=e.i(37727),u=e.i(607486),d=e.i(87316),m=e.i(346897),p=e.i(394908),g=e.i(283086),h=e.i(178583),f=e.i(234098),y=e.i(73526),v=e.i(531278),x=e.i(972520),b=e.i(463059),k=e.i(503116),w=e.i(551804),j=e.i(489853);let S=(0,e.i(475254).default)("timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);var N=e.i(923426),_=e.i(488844),C=e.i(380045),M=e.i(433056),P=e.i(947635),I=e.i(809493),E=e.i(511201),z=e.i(20656),T=e.i(213160),F=e.i(122550),A=e.i(597671),R=e.i(484698),O=e.i(961057),L=e.i(921252),D=e.i(634790),q=e.i(288750),$=e.i(689191);let B=e=>(0,F.fixEncoding)(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[-–—_/.,;:!?'"“”‘’()[\]{}]+/g," ").replace(/\s+/g," ").trim(),W=(e,t)=>{let i=B(e),a=B(t);if(!i||!a)return 0;if(i===a)return 3;if(i.startsWith(a))return 2;if(i.includes(a))return 1;let r=a.split(" ").filter(e=>e.length>1);return r.length>=2&&r.every(e=>i.includes(e))?1:0};
12e.s(["getSuggestionMatchRank",0,W],103120);let U={regions:{labelKey:"regions",icon:y.Map,color:"text-primary-dark",bgColor:"bg-primary-dark/5",linkPrefix:"/region/",nameKey:"name"},municipalities:{labelKey:"municipalities",icon:u.Building2,color:"text-[#1A1A1A]",bgColor:"bg-[#1A1A1A]/5",linkPrefix:"/municipality/",nameKey:"name"},businesses:{labelKey:"businesses",icon:m.MapPin,color:"text-primary-dark",bgColor:"bg-primary-dark/5",linkPrefix:"/business/",nameKey:"businessName"},events:{labelKey:"events",icon:d.Calendar,color:"text-[#FF9500]",bgColor:"bg-[#FF9500]/5",linkPrefix:"/events/",nameKey:"title"},experiences:{labelKey:"experiences",icon:g.Sparkles,color:"text-[#289053]",bgColor:"bg-[#289053]/5",linkPrefix:"/experience/",nameKey:"title"},products:{labelKey:"typical_products",icon:_.Package,color:"text-[#92400E]",bgColor:"bg-[#92400E]/5",linkPrefix:"/product/",nameKey:"name"},pois:{labelKey:"pois",icon:p.Compass,color:"text-[#A33EFF]",bgColor:"bg-[#A33EFF]/5",linkPrefix:"/poi/",nameKey:"name"},itineraries:{labelKey:"itineraries",icon:f.Route,color:"text-[#2196F3]",bgColor:"bg-[#2196F3]/5",linkPrefix:"/itineraries/",nameKey:"title"},cammini:{labelKey:"cammini",icon:f.Route,color:"text-primary-dark",bgColor:"bg-primary-dark/5",linkPrefix:"/cammini/",nameKey:"title"},blogPosts:{labelKey:"blog",icon:h.FileText,color:"text-[#E91E63]",bgColor:"bg-[#E91E63]/5",linkPrefix:"/blog/",nameKey:"title"}},H={regions:0,municipalities:1,experiences:2,products:3,businesses:4,events:5,pois:6,cammini:7,itineraries:8,blogPosts:9},V=(e,t,i,a)=>{let r=e[t];return"object"==typeof r&&null!==r?(0,F.getLocalizedText)(r,i,a):"string"==typeof r&&(0,F.fixEncoding)(r).trim()||a},K=(e,t)=>{let i=e.venue||e.address||e.municipality?.name||e.municipalityName||"",a="object"==typeof i&&null!==i?(0,F.getLocalizedText)(i,t,""):"string"==typeof i?(0,F.fixEncoding)(i).trim():"";return a?e.venue||e.address?a:(0,L.formatMunicipalityWithProvince)(a,e.municipality?.province||e.province||e.municipalityProvince):""};function G(e){let{isOpen:h,onClose:f}=e,[y,_]=(0,a.useState)(""),[B,{data:G,isFetching:J}]=(0,C.useLazyGlobalSearchQuery)(),{recentViews:Y,refresh:X}=(0,E.useRecentViews)(),Q=(0,o.useLocale)();(0,a.useEffect)(()=>{h&&X()},[h,X]);let{windowStart:Z,windowEnd:ee}=(0,a.useMemo)(()=>{let e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),i=new Date(t),a=(7-e.getDay())%7;return i.setDate(t.getDate()+a),i.setHours(23,59,59,999),{windowStart:t,windowEnd:i}},[]),{data:et}=(0,M.useGetEventsQuery)({limit:100},{skip:!h}),{data:ei}=(0,I.useGetItinerariesQuery)({limit:50},{skip:!h}),ea=(0,a.useMemo)(()=>(ei?.items||[]).filter(e=>e.activationDate).map(e=>({id:e.id,_isItinerary:!0,title:e.title,coverImage:e.coverImage,startDate:e.activationDate,endDate:e.activationDate,startTime:e.activationTime,municipality:e.municipality,subCategory:e.categories?.[1],priceInfo:e.isPaidGuidedTour?e.priceRange||"Paid":"Free",venue:[e.createdBy?.firstName,e.createdBy?.lastName].filter(Boolean).join(" ")||void 0})),[ei]),er=e=>(0,D.resolveEventPeriodsFromEvent)((0,D.toEventDateInput)(e))[0]?.start.getTime()??1/0,en=(0,a.useMemo)(()=>[...et?.items||[],...ea].filter(e=>(0,D.resolveEventPeriodsFromEvent)((0,D.toEventDateInput)(e)).some(e=>e.end>=Z&&e.start<=ee)).sort((e,t)=>er(e)-er(t)||!!t._isItinerary-!!e._isItinerary).slice(0,8),[et,ea,Z,ee]),{data:es}=(0,P.useGetExperiencesQuery)({limit:12},{skip:!h}),eo=(0,a.useMemo)(()=>{let e=es?.items||[],t=(ei?.items||[]).map(e=>({id:e.id,title:e.title,coverImage:e.coverImage,subCategory:"itinerary",duration:e.duration,municipality:e.municipality,createdBy:e.createdBy,isPaidGuidedTour:e.isPaidGuidedTour,priceRange:e.priceRange,isFeatured:e.isFeatured})),i=[...e,...t].filter(e=>e.isFeatured),a=e.filter(e=>!e.isFeatured),r=t.filter(e=>!e.isFeatured),n=[];for(let e=0;e<Math.max(a.length,r.length);e++)a[e]&&n.push(a[e]),r[e]&&n.push(r[e]);return[...i,...n].slice(0,8)},[es,ei]),el=(0,a.useRef)(null),ec=(0,a.useRef)(null),eu=(0,n.useRouter)(),ed=(0,s.useTranslations)("frontend.pages.search"),em=(0,s.useTranslations)("frontend.header.suggestions"),ep=(0,s.useTranslations)("searchOverlay"),eg=(0,s.useTranslations)("searchPage.tabs");(0,a.useEffect)(()=>
12{if(!y.trim()||y.trim().length<2)return;let e=setTimeout(()=>{B({query:y.trim(),limit:6})},300);return()=>clearTimeout(e)},[y,B]),(0,a.useEffect)(()=>{h?setTimeout(()=>el.current?.focus(),100):_("")},[h]),(0,a.useEffect)(()=>{let e=e=>{"Escape"===e.key&&f()};return h&&(document.addEventListener("keydown",e),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",e),document.body.style.overflow=""}},[h,f]);let eh=(0,a.useCallback)(e=>{ec.current&&!ec.current.contains(e.target)&&f()},[f]),ef=()=>{y.trim()&&(eu.push(`/search?q=${encodeURIComponent(y)}`),f())},ey=(0,a.useCallback)(e=>(0,F.getLocalizedText)(e,Q),[Q]),ev=(0,a.useCallback)(e=>{if(!e)return"";try{return new Intl.DateTimeFormat("en"===Q?"en-GB":"it-IT",{day:"numeric",month:"long",year:"numeric"}).format(new Date(e))}catch{return""}},[Q]),ex=(0,a.useCallback)(e=>{let t=(ey(e)||"").trim(),i=t.toLowerCase();return t&&"free"!==i&&"gratuito"!==i?t.startsWith("€")?t:/^\d/.test(t)?`€${t}`:t:ep("free")},[ey,ep]),eb=(0,a.useCallback)(e=>{let t=e.price||e.priceFrom||e.priceInfo;if(!t||"0"===t||0===t)return e.externalSource?null:ep("free");let i=t.toString().trim();if("free"===i.toLowerCase())return ep("free");let a="number"==typeof t?t:parseFloat(i.replace(/[^0-9.]/g,""));if(isNaN(a))return i;let r=e.priceFrom?`${ep("from")} `:"";return`${r}€${a%1==0?a.toFixed(0):a.toFixed(2)}`},[ep]),ek=G?Object.keys(U).reduce((e,t)=>e+(G[t]?.estimatedTotalHits||0),0):0,ew=y.trim().length>=2,ej=e=>{let t=U[e];return(G?.[e]?.hits||[]).filter(e=>W(V(e,t.nameKey,Q,""),y)>0)},eS=!!G&&Object.keys(U).some(e=>ej(e).length>0);return h?(0,t.jsxs)("div",{onClick:eh,className:"jsx-621cdc3c32a7de1 fixed inset-0 z-[99999] flex items-start justify-center",children:[(0,t.jsx)("div",{className:"jsx-621cdc3c32a7de1 absolute inset-0 bg-black/40 backdrop-blur-sm animate-fade-in"}),(0,t.jsxs)("div",{ref:ec,className:"jsx-621cdc3c32a7de1 relative w-full max-w-3xl h-full sm:h-auto sm:max-h-[85vh] sm:mx-4 sm:mt-[6vh] bg-white sm:rounded-xl shadow-2xl overflow-hidden flex flex-col animate-slide-down",children:[(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 p-4 sm:p-6 border-b border-stone-100 flex items-center gap-3 bg-white",children:[(0,t.jsx)("input",{ref:el,type:"text",value:y,onChange:e=>_(e.target.value),onKeyDown:e=>{"Enter"===e.key&&ef()},placeholder:ep("placeholder"),autoComplete:"off",className:"jsx-621cdc3c32a7de1 flex-1 min-w-0 text-lg sm:text-xl outline-none bg-transparent text-stone-900 font-bold placeholder:text-stone-300"}),y&&(0,t.jsx)("button",{type:"button",onClick:()=>_(""),"aria-label":ep("clearSearch"),className:"jsx-621cdc3c32a7de1 text-stone-300 hover:text-stone-500 transition-colors",children:(0,t.jsx)(c.X,{size:20})}),(0,t.jsx)("button",{type:"button",onClick:ef,"aria-label":ep("search"),className:"jsx-621cdc3c32a7de1 h-11 w-11 shrink-0 rounded-2xl bg-primary text-white flex items-center justify-center shadow-[0_16px_50px_rgba(213,78,48,0.26)] hover:brightness-110 active:scale-[0.99] transition",children:(0,t.jsx)(l.Search,{size:18})}),(0,t.jsx)("button",{type:"button",onClick:f,"aria-label":ep("close"),className:"jsx-621cdc3c32a7de1 p-3 shrink-0 bg-stone-50 rounded-full text-stone-400 hover:text-stone-600 active:scale-90 transition-transform",children:(0,t.jsx)(c.X,{size:22})})]}),(0,t.jsx)("div",{className:"jsx-621cdc3c32a7de1 flex items-center px-6 py-3 border-b border-stone-100",children:(0,t.jsx)(z.default,{variant:"overlay"})}),(0,t.jsx)("div",{"data-lenis-prevent":!0,className:"jsx-621cdc3c32a7de1 flex-1 overflow-y-auto hide-scrollbar",children:ew?(0,t.jsx)("div",{className:"jsx-621cdc3c32a7de1 max-w-2xl mx-auto",children:J?(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 py-12 flex flex-col items-center gap-3",children:[(0,t.jsx)(v.Loader2,{className:"w-8 h-8 animate-spin text-primary/30"}),(0,t.jsx)("span",{className:"jsx-621cdc3c32a7de1 text-[12px] font-bold uppercase tracking-[0.15em] text-black/20",children:ed("searching")})]}):eS?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"jsx-621cdc3c32a7de1 py-2",children:Object.keys(U).sort((e,t)=>
12{let i=G?.[e]?.estimatedTotalHits||0,a=G?.[t]?.estimatedTotalHits||0,r=e=>ej(e).reduce((t,i)=>Math.max(t,W(V(i,U[e].nameKey,Q,""),y)),0),n=r(e),s=r(t);if(n!==s)return s-n;let o=H[e]-H[t];return 0!==o?o:a-i}).map(e=>{let i=U[e],a=G?.[e],n=ej(e);if(0===n.length)return null;let s=i.icon,o=a?.estimatedTotalHits||0;return(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 px-3 py-1.5",children:[(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 flex items-center justify-between px-3 py-2",children:[(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 flex items-center gap-2",children:[(0,t.jsx)("div",{className:`jsx-621cdc3c32a7de1 w-6 h-6 rounded-md ${i.bgColor} flex items-center justify-center`,children:(0,t.jsx)(s,{size:14,className:"jsx-621cdc3c32a7de1 "+(i.color||"")})}),(0,t.jsx)("span",{className:"jsx-621cdc3c32a7de1 text-[11px] font-bold uppercase tracking-[0.12em] text-black/30",children:eg(i.labelKey)})]}),o>3&&(0,t.jsxs)(r.default,{href:`/search?q=${encodeURIComponent(y)}&type=${"products"===e?"typical_products":"blogPosts"===e?"blog":e}`,onClick:f,className:"text-[11px] font-semibold text-primary/60 hover:text-primary transition-colors flex items-center gap-0.5",children:[ep("seeAll",{count:o}),(0,t.jsx)(b.ChevronRight,{size:12})]})]}),n.map(a=>{let n="blogPosts"===e?"blog":"products"===e?"typical_products":e,o=(0,O.normalizeSearchHit)(n,a);return(0,t.jsxs)(r.default,{href:(0,A.getSearchHitHref)(n,o),onClick:()=>{if(f(),"municipalities"===e){let e=a._geo?.lat??a.latitude,t=a._geo?.lng??a.longitude;if(e&&t)try{sessionStorage.setItem("mapFromSearch",JSON.stringify({lat:e,lng:t}))}catch{}}},className:"flex items-center gap-3 px-3 py-2.5 rounded-xl hover:bg-background transition-colors group",children:[o.coverImage||o.image?(0,t.jsx)("div",{className:"jsx-621cdc3c32a7de1 w-10 h-10 rounded-lg overflow-hidden flex-shrink-0 bg-gray-100",children:(0,t.jsx)(q.ViewportImage,{src:o.coverImage||o.image,alt:"",width:40,height:40,className:"w-full h-full object-cover",containerClassName:"h-full w-full"})}):(0,t.jsx)("div",{className:`jsx-621cdc3c32a7de1 w-10 h-10 rounded-lg ${i.bgColor} flex items-center justify-center flex-shrink-0`,children:(0,t.jsx)(s,{size:18,className:`${i.color} opacity-40`})}),(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 flex-1 min-w-0",children:[(0,t.jsx)("p",{className:"jsx-621cdc3c32a7de1 text-sm font-semibold text-[#1A1A1A] group-hover:text-primary transition-colors",children:"municipalities"===e&&(0,L.formatMunicipalityWithProvince)(V(a,i.nameKey,Q,ep("untitled")),a.province)||V(a,i.nameKey,Q,ep("untitled"))}),(0,t.jsx)("div",{className:"jsx-621cdc3c32a7de1 flex items-center gap-1.5 mt-0.5",children:"municipalities"!==e&&K(a,Q)&&(0,t.jsx)("p",{className:"jsx-621cdc3c32a7de1 text-[12px] text-black/30 truncate",children:K(a,Q)})})]}),(0,t.jsx)(x.ArrowRight,{size:14,className:"text-black/10 group-hover:text-primary/40 transition-colors flex-shrink-0"})]},a.id)})]},e)})}),(0,t.jsx)("div",{className:"jsx-621cdc3c32a7de1 px-3 py-3 border-t border-black/5 bg-white",children:(0,t.jsxs)("button",{onClick:ef,className:"jsx-621cdc3c32a7de1 w-full flex items-center justify-center gap-2 py-3 rounded-xl bg-background hover:bg-[#F5EDD0] text-primary-dark text-sm font-bold transition-all",children:[(0,t.jsx)(l.Search,{size:16}),em("seeAllResults",{count:ek})]})})]}):(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 py-12 text-center",children:[(0,t.jsx)("p",{className:"jsx-621cdc3c32a7de1 text-black/30 text-sm font-medium",children:em("noResults",{query:y})}),(0,t.jsx)("p",{className:"jsx-621cdc3c32a7de1 text-black/15 text-xs mt-1",children:em("tryDifferent")})]})}):(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 animate-in fade-in duration-300",children:[Y.length>0&&(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 px-5 pt-4 pb-5",children:[(0,t.jsxs)("h4",{className:"jsx-621cdc3c32a7de1 text-[10px] font-black uppercase tracking-widest text-stone-400 mb-3 flex items-center gap-2",children:[(0,t.jsx)(k.Clock,{size:11,className:"text-primary"}),ep("recentlyVisited")]}),(0,t.jsx)("div",{className:"jsx-621cdc3c32a7de1 flex gap-3 overflow-x-auto hide-scrollbar pb-1 -mx-1 px-1",children:Y.map(e=>(0,t.jsx)(r.default,{href:e.url,onClick:f,className:"min-w-[110px] max-w-[110px] shrink-0 active:scale-95 transition-transform",children:(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 w-full h-[90px] rounded-2xl overflow-hidden relative bg-primary-dark",children:[(0,t.jsx)($.CardImage,{src:e.image,alt:e.name,containerClassName:"absolute inset-0"}),(0,t.jsx)("div",{className:"jsx-621cdc3c32a7de1 absolute inset-0 bg-gradient-to-t from-black/70 via-black/20 to-transparent"}),(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 absolute bottom-0 left-0 right-0 p-2",children:[(0,t.jsx)("p",{className:"jsx-621cdc3c32a7de1 text-[12px] font-black text-white leading-tight truncate",children:e.name}),e.subtitle&&(0,t.jsx)("p",{className:"jsx-621cdc3c32a7de1 text-[9px] text-white/70 uppercase tracking-wide font-bold truncate",children:e.subt
12itle})]})]})},`${e.type}-${e.id}`))})]}),en.length>0&&(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 bg-background px-5 pt-5 pb-5 border-t border-b border-[rgba(107,39,26,0.06)]",children:[(0,t.jsxs)("h4",{className:"jsx-621cdc3c32a7de1 text-[10px] font-black uppercase tracking-widest text-stone-400 mb-3 flex items-center gap-2",children:[(0,t.jsx)(w.CalendarCheck,{size:11,className:"text-primary"}),ep("weekendTitle")]}),(0,t.jsx)("div",{className:"jsx-621cdc3c32a7de1 flex gap-3 overflow-x-auto hide-scrollbar pb-1 -mx-1 px-1",children:en.map(e=>{let i=ey(e.title)||ep("untitled"),a=e.subCategory||e.subcategory,n=("string"==typeof a?a.replaceAll("_"," "):"")||ey(e.mainCategory)||ey(e.categories?.[0])||ep("events"),s=(0,T.getEventCategoryIcon)(ey(e.mainCategory)||ey(e.categories?.[0])||("string"==typeof a?a:"")||n),o=e.municipality?.name||e.address||"",l="object"==typeof o&&o?(0,F.getLocalizedText)(o,Q,""):String(o||""),c=e.municipality?.province||e.province||"",u=(0,L.formatMunicipalityWithProvince)(l,c)||l,d=new Date,p=e.startDate?new Date(e.startDate):null,g=e.endDate?new Date(e.endDate):p;return(0,t.jsxs)(r.default,{href:(0,A.getSearchHitHref)(e._isItinerary?"itineraries":"events",e),onClick:f,className:"min-w-[195px] max-w-[195px] rounded-2xl bg-white border border-stone-100 overflow-hidden shrink-0 active:scale-95 transition-transform shadow-sm",children:[(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 h-[115px] relative bg-stone-100",children:[(0,t.jsx)($.CardImage,{src:e.coverImage,alt:i,containerClassName:"absolute inset-0"}),(0,t.jsx)("div",{className:"jsx-621cdc3c32a7de1 absolute inset-0 bg-black/40"}),(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 absolute top-2.5 left-2.5 flex items-center gap-1 bg-stone-900/80 backdrop-blur-sm rounded-lg px-2 py-1",children:[(0,t.jsx)(s,{size:9,className:"jsx-621cdc3c32a7de1 text-white"}),(0,t.jsx)("span",{className:"jsx-621cdc3c32a7de1 text-[9px] font-black text-white uppercase tracking-wide truncate max-w-[120px]",children:n})]}),!!p&&p<=d&&(!g||g>=d)&&(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 absolute bottom-2.5 left-2.5 flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-emerald-600 text-white border border-white/20 shadow-[0_0_10px_rgba(5,150,105,0.4)]",children:[(0,t.jsx)("span",{className:"jsx-621cdc3c32a7de1 w-1.5 h-1.5 rounded-full bg-white animate-pulse"}),(0,t.jsx)("span",{className:"jsx-621cdc3c32a7de1 text-[9px] font-black uppercase tracking-wide",children:ep("ongoing")})]})]}),(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 p-2.5",children:[e.venue&&(0,t.jsx)("p",{className:"jsx-621cdc3c32a7de1 text-[10px] text-stone-400 font-bold truncate",children:e.venue}),(0,t.jsx)("p",{className:"jsx-621cdc3c32a7de1 text-[13px] font-black text-primary-dark leading-tight mt-0.5 line-clamp-2",children:i}),u&&(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 flex items-center gap-1 mt-1.5",children:[(0,t.jsx)(m.MapPin,{size:10,className:"text-stone-400 shrink-0"}),(0,t.jsx)("span",{className:"jsx-621cdc3c32a7de1 text-[10px] text-stone-400 truncate",children:u})]}),(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 flex items-center justify-between mt-1 gap-2",children:[(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 flex items-center gap-1 min-w-0",children:[(0,t.jsx)(j.CalendarDays,{size:10,className:"text-stone-400 shrink-0"}),(0,t.jsx)("span",{className:"jsx-621cdc3c32a7de1 text-[10px] text-stone-400 truncate",children:ev(e.startDate)})]}),(0,t.jsx)("span",{className:"jsx-621cdc3c32a7de1 text-[11px] font-black text-primary shrink-0",children:ex(e.priceInfo)})]})]})]},e.id)})})]}),eo.length>0&&(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 px-5 pt-5 pb-8",children:[(0,t.jsxs)("h4",{className:"jsx-621cdc3c32a7de1 text-[10px] font-black uppercase tracking-widest text-stone-400 mb-3 flex items-center gap-2",children:[(0,t.jsx)(g.Sparkles,{size:11,className:"text-primary"}),ep("experiencesTitle")]}),(0,t.jsx)("div",{className:"jsx-621cdc3c32a7de1 flex gap-3 overflow-x-auto hide-scrollbar pb-1 -mx-1 px-1",children:eo.map(e=>{let i=(0,R.pickExperienceTitle)(e,Q,"")||ep("untitled"),a=(0,F.getLocalizedText)(e.municipality?.name,Q)||("string"==typeof e.location?e.location:"")||(0,F.getLocalizedText)(e.municipalityName,Q)||e.venue||"",n=(0,L.formatMunicipalityWithProvince)(a,e.municipality?.province||e.province),s=e.subCategory||e.subcategory||e.categories?.[0],o=(0,R.localizeExperienceCategory)("str
12ing"==typeof s?s.replaceAll("_"," "):"",Q)||ep("experienceBadge"),l=(0,R.localizeDuration)(e.duration,"en"===Q||Q.startsWith("en-")?"en":"it"),c=e.guide?.name||e.author?.name||(e.createdBy?`${e.createdBy.firstName??""} ${e.createdBy.lastName??""}`.trim():""),u=eb(e),d=(0,A.getExperienceCardHref)(e),p=e.image||e.coverImage;return(0,t.jsxs)(r.default,{href:d,onClick:f,className:"min-w-[195px] max-w-[195px] rounded-2xl bg-white border border-stone-100 overflow-hidden shrink-0 active:scale-95 transition-transform shadow-sm",children:[(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 h-[115px] relative bg-stone-100",children:[(0,t.jsx)($.CardImage,{src:p,alt:i,containerClassName:"absolute inset-0"}),(0,t.jsx)("div",{className:"jsx-621cdc3c32a7de1 absolute inset-0 bg-black/40"}),(0,t.jsx)("div",{className:"jsx-621cdc3c32a7de1 absolute top-2.5 left-2.5 bg-stone-900/80 backdrop-blur-sm rounded-lg px-2 py-1",children:(0,t.jsx)("span",{className:"jsx-621cdc3c32a7de1 text-[9px] font-black text-white uppercase tracking-wide truncate max-w-[140px] inline-block",children:o})})]}),(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 p-2.5",children:[(0,t.jsx)("p",{className:"jsx-621cdc3c32a7de1 text-[13px] font-black text-stone-800 leading-tight line-clamp-2",children:i}),n&&(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 flex items-center gap-1 mt-1.5",children:[(0,t.jsx)(m.MapPin,{size:10,className:"text-stone-400 shrink-0"}),(0,t.jsx)("span",{className:"jsx-621cdc3c32a7de1 text-[10px] text-stone-400 truncate",children:n})]}),(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 flex items-center justify-between mt-0.5 gap-2",children:[(0,t.jsx)("div",{className:"jsx-621cdc3c32a7de1 flex items-center gap-1 min-w-0",children:l&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(S,{size:10,className:"text-stone-400 shrink-0"}),(0,t.jsx)("span",{className:"jsx-621cdc3c32a7de1 text-[10px] text-stone-400 truncate",children:l})]})}),u&&(0,t.jsx)("span",{className:"jsx-621cdc3c32a7de1 text-[12px] font-black text-primary shrink-0",children:u})]}),c&&(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 flex items-center gap-1.5 mt-1.5 pt-1.5 border-t border-stone-100",children:[(0,t.jsx)("div",{className:"jsx-621cdc3c32a7de1 w-5 h-5 rounded-full bg-[#FAF1E0] border border-[#E7D3B0] flex items-center justify-center shrink-0",children:(0,t.jsx)(N.UserRound,{size:11,className:"text-primary-dark"})}),(0,t.jsxs)("span",{className:"jsx-621cdc3c32a7de1 text-[11px] text-stone-500 truncate",children:[ep("with")," ",c]})]})]})]},e.id)})})]}),(0,t.jsxs)("div",{className:"jsx-621cdc3c32a7de1 px-5 pt-4 pb-6 border-t border-stone-100",children:[(0,t.jsx)("h4",{className:"jsx-621cdc3c32a7de1 text-[10px] font-black uppercase tracking-widest text-stone-400 mb-3",children:ep("quickLinks")}),(0,t.jsx)("div",{className:"jsx-621cdc3c32a7de1 flex flex-wrap gap-2",children:[{label:ep("events"),href:"/search?type=events",icon:d.Calendar},{label:ep("businesses"),href:"/search?type=businesses",icon:m.MapPin},{label:ep("map"),href:"/map",icon:p.Compass},{label:ep("villages"),href:"/municipality",icon:u.Building2}].map(e=>(0,t.jsxs)(r.default,{href:e.href,onClick:f,className:"flex items-center gap-2 px-4 py-2 rounded-full bg-[#FAF1E0] border border-[#E7D3B0] text-primary-dark text-[13px] font-bold hover:brightness-[0.98] active:scale-95 transition",children:[(0,t.jsx)(e.icon,{size:14,className:"text-primary"}),e.label]},e.label))})]})]})})]}),(0,t.jsx)(i.default,{id:"621cdc3c32a7de1",children:"@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes slide-down{0%{opacity:0;transform:translateY(-16px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.animate-fade-in.jsx-621cdc3c32a7de1{animation:.2s ease-out forwards fade-in}.animate-slide-down.jsx-621cdc3c32a7de1{animation:.25s ease-out forwards slide-down}"})]}):null}e.s(["default",()=>G],434499)},896723,e=>{e.v(t=>Promise.all(["static/chunks/54c53da843c42328.js"].map(t=>e.l(t))).then(()=>t(837806)))}]);

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.