PageSourceSearch

https://www.thursday.com/assets/index-BSSUYjjb.js

js thursday.com collected 2026-09-26 03:36:12 UTC 179,528 bytes, 3 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/NotFoundPage-QFhww24I.js","assets/NotFoundPage-Bz7iFo4F.js","assets/vendor-react-BcaCwv8w.js","assets/rolldown-runtime-Dw2cE7zH.js","assets/vendor-c15t-Cw135jc_.js","assets/vendor-react-DTrdcAJq.css","assets/NotFoundPage-BL8zIiTG.css","assets/HomePage-C3cjL3Pk.js","assets/SponsoredBanner-DyoX3doB.js","assets/api-BBcwoJ_-.js","assets/src-D-E6WfbP.js","assets/uuid-CUncsbtL.js","assets/SponsoredBanner-DIpAarR8.css","assets/Footer-NsfQrkxt.js","assets/authStore-DME3z2kK.js","assets/vendor-state-CQ-Jp0tB.js","assets/featureFlagsStore-DKsRgc5G.js","assets/meta-capi-client-B5t174AT.js","assets/meta-pixel-DtkR22YS.js","assets/authStore-v4d1Ztpn.css","assets/cdn-C-ABIyEX.js","assets/seo-UmFxgoLx.js","assets/HomeRedesignPreviewPage-MZMqlmuT.js","assets/create-scroller-Dvp_oCfU.js","assets/site-ui-CIsvfhuX.js","assets/site-ui-B_3wOVa2.css","assets/citiesStore-CiHhf9du.js","assets/cityRegions-D7j1Kw6n.js","assets/event-fallback-image-DaXjhjr3.js","assets/HomeRedesignPreviewPage-DxPY3mpf.css","assets/AboutPage-BHrZfbca.js","assets/AboutPage-y023w5nq.css","assets/FaqsPage-CrxnL0fe.js","assets/FaqsPage-D6hAeGnB.css","assets/EventsPage-CA_7WnZ_.js","assets/ShareEventModal-C6gGSwrW.js","assets/browser-CL2tFUVl.js","assets/sanitize-html-BMgDjPGR.js","assets/ShareEventModal-CMLNhBzU.css","assets/EventReferralShareButton-0BR_jDmg.js","assets/useReferralShareSnippetText-BSkq06Y8.js","assets/useReferralState-D5Jgg0Lx.js","assets/referral-session-BT9KWLaO.js","assets/currency-1S0GCYIR.js","assets/EventsPage-8__A9OdD.css","assets/BlogPage-DYIbI6pO.js","assets/NewsPage-BzaLEAL7.js","assets/HostPage-BDhBP4T9.js","assets/HostApplicationPage-Dg7DPxz3.js","assets/HostApplicationPage-0_az52h2.css","assets/DinnersPage-D0UHZnRQ.js","assets/PartnerPage-Bo5Toju6.js","assets/PartnerPage-DUHjaNix.css","assets/TermsPage-DYyj_BfR.js","assets/PolicyMarkdown-BX7S8eum.js","assets/policies-L1vGEjqv.js","assets/TripsTermsPage-B_xkCBv0.js","assets/PrivacyPage-BP_QI4Cj.js","assets/GamePage-4XzWHpt-.js","assets/GamePage-C9V-g9fq.css","assets/MiniGamesTermsPage-o2yuVTfs.js","assets/VenuePartnerTermsPage-CItzeOwN.js","assets/CookiePolicyPage-DXQXi2Hc.js","assets/RefundPolicyPage-BAWmAtdJ.js","assets/IssueAtEventPage-C1PhGpwF.js","assets/CodeOfConductPage-DAwYxUuu.js","assets/ExternalTripsDetailPage-BU-y243X.js","assets/BookACallButton-BRw0zV8F.js","assets/BookACallButton-_cyMw4A7.css","assets/TripAccommodations-CiIO_OMR.js","assets/phone-countries-C-U0cY7-.js","assets/trips-pixel-DE56W5Hv.js","assets/ExternalTripsDetailPage-DGWu0kez.css","assets/ExternalTripsWellnessPage-BBzg3vfD.js","assets/ExternalTripsWellnessPage-Bxib9z0z.css","assets/ExternalTripsWellnessPageDoc-D2ZgF1ty.js","assets/ExternalTripsWellnessPageDoc-m7gXhitL.css","assets/JoinCommunityPage-Bvj0GkDp.js","assets/JoinCommunityPage-CvcXtXCo.css","assets/Trips-Cin9QW0t.css","assets/TripsHomePage-ByV88-q8.js","assets/VoteSuccessOverlay-BN55WqiE.js","assets/VoteSuccessOverlay-DuUl0b35.css","assets/currencyStore-JhNtXojA.js","assets/TripsHomePage-BG7nmRJR.css","assets/TripsDetailPage-ChD_n6eE.js","assets/klaviyo-trips-1jFsTLoo.js","assets/TripsDetailPage-DI66lWCr.css","assets/TripBookingPage-DjqVyq0y.js","assets/vendor-stripe-DqwZMxIG.js","assets/PaymentForm-B0uYFIs5.js","assets/cartStore-DHa2Mhed.js","assets/PaymentForm-CHBynXhI.css","assets/CurrencySelector-Biq2gYS4.js","assets/CurrencySelector-CZ6B4EyW.css","assets/preferences-CzDRe1Nm.js","assets/useCountdown-DJSxdNDB.js","assets/TripBookingPage-DUP1T3pZ.css","assets/TripInviteClaimPage-DMofUs9j.js","assets/admin-QXyS_KkD.css","assets/MyTripsPage-BRv6G48G.js","assets/MyTicketsPage-DtNLLEmJ.css","assets/ManageTripPage-CeI6F7mJ.js","assets/ManageTripPage-ZtCh8mst.css","assets/TripPaymentPage-DiwEV0es.js","assets/TripPaymentPage-CmeC9aKw.css","assets/AuthPage-C3bseCIp.js","assets/OpenInBrowserNotice-7uzi0YoI.js","assets/OpenInBrowserNotice-DXvqluO5.css","assets/validate-full-name-CfHM9rvU.js","assets/ForgotPasswordPage-BhcmYzK2.js","assets/ResetPasswordPage-DVVF-k4H.js","assets/MagicLinkPage-CO3wMBGC.js","assets/PasswordlessAuth-BfKV_XcL.js","assets/PasswordlessAuth-m6C5dG1f.css","assets/MagicLinkPage-lEJgTYQu.css","assets/RepInvitePage-BrP2AaEP.js","assets/RepInvitePage-BwPgPKYA.css","assets/ScanInvitePage-u9_wAoxg.js","assets/ScanInvitePage-DDX5eqFp.css","assets/AcceptInvitePage-DOeoMaCY.js","assets/AcceptInvitePage-P7Q2d9yU.css","assets/VenueLandingPage-D9xEAzwM.js","assets/VenueSignupForm-DPWR_QEU.js","assets/SearchableSelectCombobox-CcRuXrrX.js","assets/SearchableSelectCombobox-Qx1IIRNL.css","assets/venue-landing-B8rdNVuk.css","assets/VenueInvitePage-K0cl0OCN.js","assets/VenueCompletePage-CcxPi9Dt.js","assets/VenueCompletePage-CZD77Zej.css","assets/VenueFeedbackPage-DzIgAfMf.js","assets/VenueFeedbackPage-Cy1dNkx-.css","assets/VenueFeeBankTransferPage-6BYGvxq1.js","assets/VenueFeeBankTransferPage-ByGZ-H4u.css","assets/ThursdayVenueFeesPage-DOGqeKJq.js","assets/ThursdayVenueFeesPage-BwWQHsUx.css","assets/EventDetailPage-BL3cI6_0.js","assets/realtime-marketing-optin-B2Bq8YpO.js","assets/LockScreenPhone-DW6TuFs3.js","assets/AppPromptArt-DvuMdTpQ.js","assets/LockScreenPhone-B5uTjgnQ.css","assets/challenge-optin-intent-DxCydzSd.js","assets/realtime-marketing-optin-D0ZbbavP.css","assets/tiktok-events-client-DqxbHcWO.js","assets/ProfileFieldsForm-DiLBro5C.js","assets/ProfileFieldsForm-BKNdJUgI.css","assets/date-BxndHAVV.js","assets/EventDetailPage-CUOEXWIt.css","assets/PostDetailPage-KQqVOQHN.js","assets/PostDetailPage-
1DV69Si23.css","assets/AccountPage-CrIs-3mb.js","assets/avatar-url-1x8EB6lS.js","assets/AccountPage-C3em3Kmq.css","assets/MyTicketsPage-CUp0Wxgv.js","assets/account-tickets-shared-2bcqdT8k.js","assets/number-CZFWoqkU.js","assets/NotificationsPage-CL8U-WE8.js","assets/notificationsStore-CGWLV5X_.js","assets/notification-display-CIhlu_oj.js","assets/NotificationsPage-DDGIZFGM.css","assets/NotificationDetailPage-CZe3Ap8Q.js","assets/NotificationDetailPage-C2PwEHqq.css","assets/ChallengesPage-Dzefykyi.js","assets/ChallengesPage-Dqn0NRZZ.css","assets/ChallengeOptInPage-DuywQgef.js","assets/ChallengeOptInPage-DwrDOawo.css","assets/PartnerPortalPage-BHSNZGJD.js","assets/PartnerPortalPage-CGqBOuw-.css","assets/MyProfilePage-BMz1uqvM.js","assets/SimpleSelectCombobox-CBDm9780.js","assets/SimpleSelectCombobox-C_KpBW6c.css","assets/MyProfilePage-BmcKcA65.css","assets/studio-CYf9tJd4.css","assets/StudioCataloguePage-UbfVv_Ea.js","assets/UploadDesignModal-CnvhqCE7.js","assets/useStudioData-DwVlpqGm.js","assets/UploadDesignModal-DEDP7470.css","assets/StudioCataloguePage-A_xO2-ZB.css","assets/StudioDesignPage-CLZOcWxk.js","assets/StudioDesignPage-Ce4XutJz.css","assets/StudioDesignPreviewPage-BersXD9A.js","assets/StudioDesignPreviewPage-D5P4-KFy.css","assets/CartPage-CvFF0-OF.js","assets/AuthModal-gZ2VTn7i.js","assets/AuthModal-Co6eMBGj.css","assets/CartPage-D7W104xM.css","assets/CartConfirmationPage-m1SZB8V7.js","assets/ChallengeAppPrompt-O60vrWQ8.js","assets/ChallengeAppPrompt-UEYJOpMI.css","assets/ConfirmationReferralBanner-nRsq1r5Y.js","assets/useChallengeOptInFlush-CWwQWUDu.js","assets/CartConfirmationPage-B_8uWbyg.css","assets/BookingConfirmationPage-v9T0Gjw3.js","assets/BookingConfirmationPage-C0wbXpL0.css","assets/TicketDetailPage-JVIU_IZ_.js","assets/TicketDetailPage-BwKP7crx.css","assets/QuizPage-C4fPc_JE.js","assets/QuizPage-DfqW6d34.css","assets/ReferralsPage-D6ENMuoK.js","assets/ReferralsPage-BD2ixea_.css","assets/ReferralsDashboardPage-B8ufsXAv.js","assets/usePermissions-LBa5Rht0.js","assets/SchemeCard-BW_evPaU.js","assets/SchemeCard-BU9BxFuM.css","assets/thursdayCitiesStore-DX7ROcq6.js","assets/ReferralsDashboardPage-BPsFI6eb.css","assets/MiniGamesAdminPage-DU3Y1qFv.js","assets/MiniGamesAdminPage-B2SoLgbO.css","assets/BannersPage-BwTZ4n9x.js","assets/BannersPage-B1ePoeTU.css","assets/EventAdsPage-PEQHJ5ve.js","assets/EventAdsBoard-B7uCe2Nj.js","assets/CityListPage-CbSTWaX-.js","assets/PagesPage-CaBhCkGI.js","assets/admin-nav-J6oqU3Wv.js","assets/useCities-9q13eQeI.js","assets/adminUpload-DuBHl257.js","assets/city-event-admin-href-DIXFtlff.js","assets/eventBadges-CWO7NMAH.js","assets/PagesPage-C8fAzPN3.css","assets/useCapability-D9oCf-O0.js","assets/CityListPage-BmwV6c4m.css","assets/ManageHostsPage-CjflbWnv.js","assets/ManageHostsPage-BLTvpOtQ.css","assets/CityRefundRequestsPage-BLA17ZSc.js","assets/CityReferralsPage-HqKVBouM.js","assets/CityReferralsPage-C4yPxBld.css","assets/CityPastEventsPage-D9RiDQ0i.js","assets/CityPostFormPage-qH0UsK9x.js","assets/CityPostFormPage-BwuKEKd-.css","assets/PostFormPage-BUJhhCnI.js","assets/ConfirmModal-BOkICP0q.js","assets/EventLayout-CCXyfJO6.js","assets/EventLayout-Bm0BBMoS.css","assets/EventEmptyState-CAYYlEsW.js","assets/EventEmptyState-CLrO5Fqs.css","assets/RichTextEditor-B3dYI5Kv.js","assets/vendor-tiptap-CtGDxrwy.js","assets/PostFormPage-Bq3TQk7v.css","assets/CityNetworkPage-wF1rgEJI.js","assets/EventDashboardPage-Bs0QBpBg.js","assets/admin-experience-detail-GIoTOPEN.js","assets/EventDashboardPage-BmtaDi6S.css","assets/EventDashboardPage-CqU32t9r.css","assets/EventFormPage-DCjGLpty.css","assets/EventSetupPage-Dyz42IRD.js","assets/EventEditPage-CtGssdG_.js","assets/AgentTagsNotice-BUPurD84.js","assets/EventMessagingPage-CY1-u9aE.js","assets/EventMessagingPage-BRi99BNh.css","assets/EventChallengesPage-Df_ZWmt_.js","assets/ConfirmSendModal-0zX80-yD.js","assets/ConfirmSendModal-cJaDt66W.css","assets/EventChallengesPage-DbXgdmDH.css","assets/EventFollowersPage-BdnTQq_C.js","assets/EventRepsPage-gPt9-ehE.js","assets/EventRepsPage-DFBScin0.css","assets/EventCoPromotersPage-C6kL1cU-.js","assets/EventIntegrationsPage-BLb1hwhF.js","assets/EventCustomersPage-BiqqhsHa.js","assets/EventAnalyticsPage-C560uRNK.js","assets/EventCheckInPage-CEFbEmqp.js","assets/EventStatusPage-Dgu24Ikn.js","assets/EventMetricsPage-8jUIA6A
1K.js","assets/CartesianChart-BGJLeBSu.js","assets/vendor-reduxjs-HSbhZtrF.js","assets/BarChart-V4ie3QqU.js","assets/CartesianGrid-DfassD07.js","assets/EventMetricsPage-5kqISl6a.css","assets/EventHistoryPage-CDS-WXwP.js","assets/EventHistoryPage-DU8hJaz7.css","assets/EventHostSplitsPage-RoNQ_dZm.js","assets/EventAdvertisingPage-jnkd3bLs.js","assets/EventCrossSellPage-VMHOQkZW.js","assets/EventScannerStaffPage-itgfRBRk.js","assets/ScannerRetirementBanner-DktqMj8I.js","assets/EventScannerStaffPage-DQYS1A0I.css","assets/EventPromoRepsPage-DOw9DIhn.js","assets/EventCheckInActivityPage-DmmzPczp.js","assets/xlsx-R_oawpm7.js","assets/EventCheckInActivityPage-BWUlc31C.css","assets/EventOrdersPage-kl8pYc3j.js","assets/EventExportBarcodesPage-Dv1AjU6E.js","assets/PromoCodesStubPage-d6ggiERF.js","assets/PromoCodesStubPage-BCKTZcBL.css","assets/CheckInScannerStubPage-D8fWAWM1.js","assets/EmailLogPage-DDOXS4ue.js","assets/EmailLogPage-dcVOWLT7.css","assets/EventVenueFeesPage-eURUjnZe.js","assets/EmailPreview-CTut7QSt.js","assets/EventVenueFeesPage-DGPycUqv.css","assets/EventPartnerPage-JHcrOiyO.js","assets/EventPartnerPage-n6soyToz.css","assets/OrderDetailPage-Cb8usNes.js","assets/OrderDetailPage-C66wMe8Y.css","assets/RefundDetailPage-BgXElmVM.js","assets/OrdersPage-DwBAG3ah.css","assets/AdminsPage-BtO1CvG_.js","assets/SettingsAnalyticsPage-XL1UFF62.js","assets/getRadiusAndStrokeWidthFromDot-DjMUFeY8.js","assets/Legend-xRy_nz_D.js","assets/SettingsAnalyticsPage-DgstdB9l.css","assets/MonitoringPage-DRlXuRLb.css","assets/SettingsCatalogueFeedPage-BKLphcSn.js","assets/SettingsCatalogueFeedPage-B5ywLYKI.css","assets/ConsentAdminPage-lThwr7De.js","assets/ConsentAdminPage-prrJl5CA.css","assets/GrowthFeatureFlagsPage-CDtmyRkp.js","assets/AdminPageHeader-BAr1k0jQ.js","assets/GrowthFeatureFlagsPage-C89JpnKm.css","assets/EventTagsPage-B9i4xF6-.js","assets/AdminPagination-3cq5BwxQ.js","assets/EventTagsPage-ClYZI8DH.css","assets/PartnersPage-3a-yfx_R.js","assets/PartnersPage-MR1G0xD1.css","assets/TradedoublerSettingsPage-CspRsoPr.js","assets/PartnerDetailPage-
1DPMLVme1.js","assets/PartnerDetailPage-BPKiHMNu.css","assets/ApiAccessPage-o5g3Z2EH.js","assets/ApiAccessPage-CAn9shlc.css","assets/ActivityLogPage-CvUqToMG.js","assets/ActivityLogPage-Bv2DQF9F.css","assets/UserActivityPage-COyivIwa.js","assets/UserActivityPage-CkY8ZUeV.css","assets/AllApiRequestsPage-60KMZvsq.js","assets/AllApiRequestsPage-CE1q8qx1.css","assets/OverviewPage-CHuL0I9A.js","assets/OverviewPage-BrbxAvhk.css","assets/TasksPage-BEbtT5Ej.js","assets/FieldHelp-CeDR0Gbp.js","assets/FieldHelp-DRCCdreS.css","assets/TasksPage-B7hvTdlE.css","assets/TaskDetailPage-Bd_Qclc0.js","assets/TaskDetailPage-BD7lct_p.css","assets/ActionsPage-BPtpZFr4.js","assets/ActionsPage-By_4Nh8H.css","assets/CostPage-BCDlesfF.js","assets/CostPage-Zal3YYfN.css","assets/SettingsPage-CDsVe52n.js","assets/SettingsPage-UqRQNeIY.css","assets/McpAccessPage-9bUE6niH.js","assets/McpAccessPage-ElznV8Oz.css","assets/McpUsagePage-5gAZo-0w.js","assets/McpUsagePage-BZpwbE7Q.css","assets/meta-capi-client-giHG7q7Y.js"])))=>i.map(i=>d[i]);
2import{r as e}from"./rolldown-runtime-Dw2cE7zH.js";import{$I as t,GI as n,HI as r,JI as i,KI as a,Q as o,QI as s,Tg as c,UI as l,VI as u,WI as d,XI as f,YI as p,aL as m,ed as h,iL as g,nL as _,qI as v,rL as y,sL as b}from"./vendor-react-BcaCwv8w.js";import{C as x,S,T as ee,c as C,f as te,g as w,h as T,l as E,n as D,p as O,t as k,u as ne,w as re,x as ie}from"./authStore-DME3z2kK.js";import{Dt as A,Fn as j,Ht as ae,Ot as oe,Tn as M,Vt as se,_n as N,bn as ce,ct as le,gn as P,kn as ue,mn as de,vn as fe,wn as F,xn as pe,yn as me}from"./src-D-E6WfbP.js";import{t as I}from"./cdn-C-ABIyEX.js";import{_ as he,b as L,c as R,o as z,p as ge,s as _e}from"./api-BBcwoJ_-.js";import{t as ve}from"./uuid-CUncsbtL.js";import{t as B}from"./featureFlagsStore-DKsRgc5G.js";import{n as ye}from"./vendor-state-CQ-Jp0tB.js";import{t as be}from"./cartStore-DHa2Mhed.js";import{n as xe,t as Se}from"./avatar-url-1x8EB6lS.js";import{t as V}from"./notificationsStore-CGWLV5X_.js";import{n as Ce,r as we}from"./notification-display-CIhlu_oj.js";import{a as Te,i as Ee,n as De,t as Oe}from"./ProfileFieldsForm-DiLBro5C.js";import{t as ke}from"./tiktok-events-client-DqxbHcWO.js";import{t as Ae}from"./AuthModal-gZ2VTn7i.js";import{r as je}from"./site-ui-CIsvfhuX.js";import{t as Me}from"./Footer-NsfQrkxt.js";import{t as Ne}from"./RequireGrant-2dIGJ1yj.js";import{a as Pe}from"./useStudioData-DwVlpqGm.js";import{t as Fe}from"./Toast-CoD28NCE.js";import{n as H,r as Ie,t as Le}from"./routes-CvqUFC4v.js";import{i as Re,r as ze,t as Be}from"./admin-nav-J6oqU3Wv.js";import{t as Ve}from"./usePermissions-LBa5Rht0.js";/* empty css              */import{t as He}from"./EventLayout-CCXyfJO6.js";import{t as Ue}from"./useChallengeOptInFlush-CWwQWUDu.js";import{t as We}from"./useReferralState-D5Jgg0Lx.js";import{n as Ge}from"./referral-session-BT9KWLaO.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Ke=e(m(),1),U=e(b(),1),qe=[350,900],Je=e=>new Promise(t=>setTimeout(t,e));async function Ye(e,t={}){let n=t.delaysMs??qe,r=t.sleep??Je,i=t.isPreload??re,a=t.onPreloadExhausted??(()=>ee(`error-boundary`)),o;for(let t=0;t<=n.length;t++)try{return await e()}catch(e){o=e,t<n.length&&await r(n[t])}if(i(o)&&a())return new Promise(()=>{});throw o}function W(e){return(0,U.lazy)(()=>Ye(e))}var G=u(),Xe=6;function Ze(e){return e>99?`99+`:String(e)}function Qe(){return(0,G.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,G.jsx)(`path`,{d:`M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9`}),(0,G.jsx)(`path`,{d:`M13.73 21a2 2 0 0 1-3.46 0`})]})}function $e({notification:e,onSelect:t}){let n=oe(e),r=we(e),i=!!A(e.data),a=!!e.challengeCompletedAt;return(0,G.jsxs)(`button`,{type:`button`,className:`notif-bell-row notif-bell-row--${n}`,onClick:()=>t(e),role:`menuitem`,children:[(0,G.jsx)(`span`,{className:`notif-bell-row-bar`,"aria-hidden":`true`}),(0,G.jsxs)(`span`,{className:`notif-bell-row-body`,children:[(0,G.jsx)(`span`,{className:`notif-bell-row-title`,children:e.title}),r&&(0,G.jsx)(`span`,{className:`notif-bell-row-context`,children:r}),(0,G.jsx)(`span`,{className:`notif-bell-row-text`,children:e.body}),(0,G.jsxs)(`span`,{className:`notif-bell-row-footer`,children:[(0,G.jsx)(`span`,{className:`notif-bell-row-time`,children:Ce(e.deliveredAt)}),i&&(0,G.jsx)(`span`,{className:`notif-bell-chip notif-bell-chip--${a?`done`:`todo`}`,children:a?`Completed`:`Not completed`}),e.requiresAck&&!e.ackAt&&(0,G.jsx)(`span`,{className:`notif-bell-chip notif-bell-chip--todo`,children:`Needs confirming`})]})]})]})}function et({className:e=``}){let[n,r]=(0,U.useState)(!1),i=(0,U.useRef)(null),a=(0,U.useRef)(null),o=t(),s=V(e=>e.pending),c=V(e=>e.pendingCount),l=V(e=>e.pendingLoading),u=V(e=>e.pendingLoaded),f=V(e=>e.loadPending),p=V(e=>e.refreshPendingCount),m=(0,U.useCallback)(()=>{r(!1),a.current?.focus()},[]),h=(0,U.useCallback)(()=>{r(e=>{let t=!e;return t&&(f(),p()),t})},[f,p]);(0,U.useEffect)(()=>
2{if(!n)return;let e=e=>{let t=e.target;i.current&&t&&i.current.contains(t)||r(!1)};return document.addEventListener(`click`,e),()=>document.removeEventListener(`click`,e)},[n]),(0,U.useEffect)(()=>{if(!n)return;let e=e=>{e.key===`Escape`&&m()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[n,m]);let g=e=>{r(!1),o(`/notifications/${e.id}`)},_=s.slice(0,Xe),v=l&&!u;return(0,G.jsxs)(`div`,{ref:i,className:`notif-bell${n?` is-open`:``}${e?` ${e}`:``}`,children:[(0,G.jsxs)(`button`,{ref:a,type:`button`,className:`notif-bell-trigger`,"aria-haspopup":`true`,"aria-expanded":n,"aria-label":c>0?`Notifications (${c} to do)`:`Notifications`,onClick:e=>{e.stopPropagation(),h()},children:[(0,G.jsx)(Qe,{}),c>0&&(0,G.jsx)(`span`,{className:`notif-bell-badge`,"aria-hidden":`true`,children:Ze(c)})]}),(0,G.jsxs)(`div`,{className:`notif-bell-panel`,role:`menu`,"aria-label":`Notifications`,children:[(0,G.jsxs)(`div`,{className:`notif-bell-panel-header`,children:[(0,G.jsx)(`span`,{className:`notif-bell-panel-title`,children:`Notifications`}),c>0&&(0,G.jsxs)(`span`,{className:`notif-bell-panel-count`,children:[c,` to do`]})]}),(0,G.jsx)(`div`,{className:`notif-bell-panel-body`,children:v?(0,G.jsx)(`p`,{className:`notif-bell-empty`,children:`Loading…`}):_.length===0?(0,G.jsxs)(`p`,{className:`notif-bell-empty`,children:[`You're all caught up.`,(0,G.jsx)(`span`,{className:`notif-bell-empty-hint`,children:`Past notifications are under See all.`})]}):_.map(e=>(0,G.jsx)($e,{notification:e,onSelect:g},e.id))}),(0,G.jsx)(d,{to:`/notifications`,className:`notif-bell-see-all`,role:`menuitem`,onClick:()=>r(!1),children:`See all notifications`})]})]})}var tt={thursdayCity:`My Thursday City`,genderAndBirthday:`Gender and birthday`,interestedIn:`Who you're interested in`};function nt(e){return{gender:e?.gender??``,dateOfBirth:e?.dateOfBirth??``,thursdayCityId:e?.thursdayCityId??``,preferredGender:Te(e?.preferredGender)}}function rt({onClose:e}){let n=k(e=>e.user),r=k(e=>e.verify),i=t(),[a,o]=(0,U.useState)(`checklist`),[s,c]=(0,U.useState)(()=>nt(n?.profile)),[l,u]=(0,U.useState)([]),d=n?.marketingOptIn??!1,[f,p]=(0,U.useState)(d),[m,h]=(0,U.useState)(!1),[g,_]=(0,U.useState)(``),v={dateOfBirth:n?.profile?.dateOfBirth??null,gender:n?.profile?.gender??null,preferredGender:n?.profile?.preferredGender??null,thursdayCityId:n?.profile?.thursdayCityId??null},y=ae(v),b=se(v);(0,U.useEffect)(()=>{a!==`form`||l.length>0||z(`/thursday-cities/list`).then(e=>{e?.data&&u(e.data.map(e=>({id:e.id,label:e.displayName})))}).catch(()=>{})},[a,l.length]);let x=async()=>{_(``),h(!0);try{await _e(`/users/me`,{dateOfBirth:s.dateOfBirth}),await _e(`/users/me/preferences`,{gender:s.gender,preferredGender:s.preferredGender.join(`,`),thursdayCityId:s.thursdayCityId}),await R(`/auth/accept-terms`,f===d?{}:{marketingOptIn:f}),await r(),o(`done`)}catch(e){_(e instanceof Error?e.message:`Could not save your details`)}finally{h(!1)}};return(0,G.jsx)(`div`,{className:`pcm-backdrop`,onClick:t=>{t.target.classList.contains(`pcm-backdrop`)&&e()},children:(0,G.jsxs)(`div`,{className:`pcm-modal`,role:`dialog`,"aria-modal":`true`,"aria-label":`Update account`,children:[(0,G.jsxs)(`div`,{className:`pcm-head`,children:[a===`form`&&(0,G.jsx)(`button`,{type:`button`,className:`pcm-back`,"aria-label":`Back`,onClick:()=>o(`checklist`),children:`‹`}),(0,G.jsx)(`span`,{className:`pcm-head-title`,children:`Update account`}),(0,G.jsx)(`button`,{type:`button`,className:`pcm-close`,"aria-label":`Close`,onClick:e,children:`✕`})]}),a===`checklist`?(0,G.jsxs)(`div`,{className:`pcm-body`,children:[(0,G.jsx)(`div`,{className:`pcm-ring-wrap`,children:(0,G.jsx)(it,{percent:b})}),(0,G.jsxs)(`div`,{className:`pcm-intro`,children:[(0,G.jsx)(`h2`,{className:`pcm-title`,children:`Complete your profile`}),(0,G.jsx)(`p`,{className:`pcm-sub`,children:`Finish up so we can line you up with the right events.`})]}),(0,G.jsxs)(`div`,{className:`pcm-col`,children:[(0,G.jsx)(`ul`,{className:`pcm-list`,children:y.map(e=>(0,G.jsxs)(`li`,{className:`pcm-row${e.done?` pcm-row--done`:``}`,children:[(0,G.jsx)(`span`,{className:`pcm-tick${e.done?` pcm-tick--done`:``}`,"aria-hidden":`true`,children:e.done&&(0,G.jsx)(`svg`,{width:`11`,height:`11`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`3.5`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,G.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}),(0,G.jsx)(`span`,{className:`pcm-row-label`,children:tt[e.key]}),(0,G.jsx)(`span`,{className:`pcm-sr`,children:e.done?`done`:`n
2ot done`})]},e.key))}),(0,G.jsx)(`button`,{type:`button`,className:`pcm-cta`,onClick:()=>o(`form`),children:`Finish setting up`})]})]}):a===`form`?(0,G.jsxs)(`div`,{className:`pcm-body`,children:[(0,G.jsxs)(`div`,{className:`pcm-intro`,children:[(0,G.jsx)(`h2`,{className:`pcm-title`,children:`Your details`}),(0,G.jsxs)(`p`,{className:`pcm-sub`,children:[`Just the last few and your profile`,`’`,`s complete.`]}),(0,G.jsx)(De,{})]}),(0,G.jsxs)(`div`,{className:`pcm-col`,children:[(0,G.jsxs)(`div`,{className:`pcm-field`,children:[(0,G.jsx)(`span`,{className:`pcm-field-label`,children:`Email`}),(0,G.jsx)(`div`,{className:`pcm-readonly`,children:n?.email})]}),(0,G.jsx)(Oe,{value:s,onChange:c,cityOptions:l}),(0,G.jsxs)(`label`,{className:`pcm-check`,children:[(0,G.jsx)(`input`,{type:`checkbox`,checked:f,onChange:e=>p(e.target.checked)}),(0,G.jsx)(`span`,{children:`Email me about new events, Thursday news & updates. Unsubscribe anytime.`})]}),g&&(0,G.jsx)(`p`,{className:`pcm-error`,children:g}),(0,G.jsx)(`button`,{type:`button`,className:`pcm-cta`,disabled:m||!Ee(s),onClick:()=>void x(),children:m?`Saving…`:`Save`})]})]}):(0,G.jsxs)(`div`,{className:`pcm-body`,children:[(0,G.jsxs)(`div`,{className:`pcm-intro`,children:[(0,G.jsx)(`span`,{className:`pcm-done-icon`,"aria-hidden":`true`,children:(0,G.jsx)(`svg`,{width:`34`,height:`34`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,G.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}),(0,G.jsx)(`h2`,{className:`pcm-title`,children:`Profile complete`}),(0,G.jsxs)(`p`,{className:`pcm-sub`,children:[`Your account`,`’`,`s up to date `,`—`,` you`,`’`,`re all set to keep booking and meeting people IRL.`]})]}),(0,G.jsxs)(`div`,{className:`pcm-col`,children:[(0,G.jsx)(`div`,{className:`pcm-status`,children:[`Account up to date`,`Profile complete`].map(e=>(0,G.jsxs)(`div`,{className:`pcm-status-row`,children:[(0,G.jsx)(`span`,{className:`pcm-status-tick`,"aria-hidden":`true`,children:(0,G.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`3.5`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,G.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}),e]},e))}),(0,G.jsx)(`button`,{type:`button`,className:`pcm-cta`,onClick:e,children:`Browse events`}),(0,G.jsx)(`button`,{type:`button`,className:`pcm-link`,onClick:()=>{e(),i(`/my-profile`)},children:`View my profile`})]})]})]})})}function it({percent:e}){let t=2*Math.PI*52;return(0,G.jsxs)(`div`,{className:`pcm-ring`,children:[(0,G.jsxs)(`svg`,{width:`118`,height:`118`,viewBox:`0 0 118 118`,"aria-hidden":`true`,children:[(0,G.jsx)(`circle`,{className:`pcm-ring-track`,cx:`59`,cy:`59`,r:52,strokeWidth:`8`}),(0,G.jsx)(`circle`,{className:`pcm-ring-fill`,cx:`59`,cy:`59`,r:52,strokeWidth:`8`,strokeDasharray:t,strokeDashoffset:t*(1-e/100)})]}),(0,G.jsxs)(`div`,{className:`pcm-ring-text`,children:[(0,G.jsxs)(`span`,{className:`pcm-ring-percent`,children:[e,`%`]}),(0,G.jsx)(`span`,{className:`pcm-ring-caption`,children:`Complete`})]})]})}var at=6e4,ot=1e4;function st(e){let t=V(e=>e.refreshPendingCount),n=V(e=>e.reset),r=(0,U.useRef)(0);(0,U.useEffect)(()=>{if(!e){n();return}let i=()=>{let e=Date.now();e-r.current<ot||(r.current=e,t())};r.current=0,i();let a=setInterval(()=>{document.visibilityState===`visible`&&i()},at),o=()=>{document.visibilityState===`visible`&&i()};return document.addEventListener(`visibilitychange`,o),window.addEventListener(`focus`,o),()=>{clearInterval(a),document.removeEventListener(`visibilitychange`,o),window.removeEventListener(`focus`,o)}},[e,t,n])}var ct=I(`icons/logo-white-alt.svg`),lt=new Set([`live`,`coming_soon`]),ut=new Set([`published`,`coming_soon`]),dt={internal:`live`,external:`published`};function ft(e,t){return!e.startDate&&!t.startDate?0:e.startDate?t.startDate?new Date(e.startDate).getTime()-new Date(t.startDate).getTime():-1:1}function pt(e,t){return{key:`${t}:${e.id}`,label:e.dropdownTitle||e.title,href:t===`internal`?`/thursday-trips/${e.slug}`:`/trips/${e.slug}`,startDate:e.startDate,open:e.status===dt[t]}}var mt=`/events`,ht=[{name:`Become a Host`,href:`/become-a-host`,internal:!0},{name:`Become a Social Butterfly`,href:`https://social-butterfly.thursday.com/`,internal:!1},{name:`Careers`,href:`https://forms.monday.com/forms/88b5b764675b1f3b3e4b2ed4a62d0746?r=euc1`,internal:!1}];function gt(e){let t=e.startsWith(`/become-a-host`);return{events:e.startsWith(`/events`),hostCity:t,host:t,home:e===`/`,cart:e.startsWith(`/cart`),trips:e.startsWith(`/trips`),venue:e.startsWith(`/venue-signup`),myProfile:e.startsWith(`/my-profile`),accountHub:e===`/account`||e.startsWith(`/account/`),myTickets:e===`/my-tickets`||e.startsWith(`/my-tickets/`)||e.startsWith(`/tickets/`),notifications:e===`/notifications`||e.startsWith(`/notifications/`),referrals:e===`/referrals`||e.startsWith(`/referrals/`),auth:e.startsWith(`/auth`)||e===`/forgot-password`||e===`/reset-password`}}var K=(e,t)=>e?` ${t}`:``;function _t(){return(0,G.jsx)(`svg`,{className:`events-nav-chev`,width:11,height:11,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2.5,"aria-hidden":`true`,children:(0,G.jsx)(`polyline`,{points:`6 9 12 15 18 9`})})}function vt({className:e=``}){return(0,G.jsx)(`button`,{type:`button`,className:`events-nav-chat${e?` ${e}`:``}`,onClick:()=>E(),"aria-label":`Messages`,title:`Chat with us`,children:(0,G.jsx)(`svg`,{viewB
2ox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{d:`M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z`})})})}function yt(e){let t=e.updatedAt??null,n=xe(e.avatarFileName??null,null,t);if(n)return n;let r=e.avatarUrl?.trim();return r?Se(r,t):null}function bt(e){let t=e.name?.trim();if(t)return t.split(/\s+/)[0]??t;let n=e.email?.trim();return n?n.split(`@`)[0]??n:`there`}function xt({percent:e,user:t}){let n=2*Math.PI*21,r=yt(t);return(0,G.jsxs)(`span`,{className:`events-nav-ring`,"aria-hidden":`true`,children:[(0,G.jsxs)(`svg`,{width:`52`,height:`52`,viewBox:`0 0 52 52`,children:[(0,G.jsx)(`circle`,{className:`events-nav-ring-track`,cx:`26`,cy:`26`,r:21,strokeWidth:`3`}),(0,G.jsx)(`circle`,{className:`events-nav-ring-fill`,cx:`26`,cy:`26`,r:21,strokeWidth:`3`,strokeDasharray:n,strokeDashoffset:n*(1-e/100),strokeLinecap:`round`,transform:`rotate(-90 26 26)`})]}),(0,G.jsx)(`span`,{className:`events-nav-ring-inner`,children:r?(0,G.jsx)(`img`,{src:r,alt:``,className:`events-nav-ring-img`}):(t.name?.trim()||t.email||`?`).charAt(0).toUpperCase()}),(0,G.jsxs)(`span`,{className:`events-nav-ring-badge`,children:[e,`%`]})]})}function St(){let[e,t]=(0,U.useState)(!1),[n,r]=(0,U.useState)(!1),[i,a]=(0,U.useState)(!1),[o,c]=(0,U.useState)(null),[l,u]=(0,U.useState)([]),[f,p]=(0,U.useState)(!1),[m,h]=(0,U.useState)(!1),{pathname:g}=s(),{user:_,impersonating:v,originalAdminId:y,verify:b,logout:x}=k(),S=be(e=>e.lines).reduce((e,t)=>e+t.quantity,0),{cartInPlatform:ee,referralsNavEnabled:C,notificationBellEnabled:te}=B(),w=gt(g),T=_?yt(_):null,E=_?.profile?se({dateOfBirth:_.profile.dateOfBirth??null,gender:_.profile.gender??null,preferredGender:_.profile.preferredGender??null,thursdayCityId:_.profile.thursdayCityId??null}):100,D=_!=null&&P(_.role,v,y),O=ee&&_!=null,ne=te&&_!=null,re=(0,U.useRef)(null),ie=(0,U.useRef)(null),A=(0,U.useRef)(null),j=(0,U.useRef)(null),ae=(0,U.useRef)(null),oe=(0,U.useRef)(null),M=(0,U.useRef)(!1);(0,U.useEffect)(()=>{b()},[b]),st(ne),(0,U.useEffect)(()=>{Promise.all([z(`/external-trips/public`),z(`/trips`)]).then(([e,t])=>{let n=(e.data??[]).filter(e=>ut.has(e.status)&&e.slug).map(e=>pt(e,`external`)),r=(t.data??[]).filter(e=>lt.has(e.status)&&e.slug).map(e=>pt(e,`internal`));u([...n,...r].sort(ft))}).catch(e=>void 0)},[]);let N=(0,U.useCallback)(()=>{t(!1),r(!1),a(!1),document.body.classList.remove(`events-nav-menu-open`),setTimeout(()=>j.current?.focus(),0)},[]),ce=(0,U.useCallback)(()=>{t(!0),document.body.classList.add(`events-nav-menu-open`),setTimeout(()=>ae.current?.focus(),100)},[]),le=(0,U.useCallback)(()=>{c(null)},[]),ue=(0,U.useCallback)(e=>{c(t=>t===e?null:e)},[]),de=async()=>{await x(),N(),le()};(0,U.useEffect)(()=>{N(),le()},[g,N,le]),(0,U.useEffect)(()=>{let t,n=()=>{clearTimeout(t),t=setTimeout(()=>{window.innerWidth>860&&e&&N()},100)};return window.addEventListener(`resize`,n),()=>{clearTimeout(t),window.removeEventListener(`resize`,n)}},[e,N]),(0,U.useEffect)(()=>{let e=()=>
2{M.current=!0},t=()=>{setTimeout(()=>{M.current=!1},0)};return document.addEventListener(`pointerdown`,e,!0),document.addEventListener(`pointerup`,t,!0),()=>{document.removeEventListener(`pointerdown`,e,!0),document.removeEventListener(`pointerup`,t,!0)}},[]),(0,U.useEffect)(()=>{if(o==null)return;let e=e=>{let t=e.target,n={trips:re,work:ie,account:A}[o].current;n&&t&&n.contains(t)||c(null)};return document.addEventListener(`click`,e),()=>document.removeEventListener(`click`,e)},[o]),(0,U.useEffect)(()=>{let t=t=>{t.key===`Escape`&&(e?N():o&&c(null))};return document.addEventListener(`keydown`,t),()=>document.removeEventListener(`keydown`,t)},[e,o,N]),(0,U.useEffect)(()=>{if(!e)return;let t=oe.current;if(!t)return;let n=e=>{if(e.key!==`Tab`)return;let n=Array.from(t.querySelectorAll(`a[href], button:not([disabled])`)).filter(e=>e.offsetParent!==null);if(n.length===0)return;let r=n[0],i=n[n.length-1];e.shiftKey&&document.activeElement===r?(e.preventDefault(),i?.focus()):!e.shiftKey&&document.activeElement===i&&(e.preventDefault(),r?.focus())};return t.addEventListener(`keydown`,n),()=>t.removeEventListener(`keydown`,n)},[e]);let fe=e=>()=>{M.current||c(e)},F=(e,t)=>n=>{let r=n.relatedTarget,i=t.current;i&&r&&i.contains(r)||c(t=>t===e?null:t)},pe=e=>t=>{t.stopPropagation(),ue(e)};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`nav`,{className:`events-nav`,"aria-label":`Events site`,children:[(0,G.jsx)(d,{to:`/`,className:`events-nav-logo`,onClick:N,children:(0,G.jsx)(`img`,{src:ct,alt:`Thursday`})}),(0,G.jsxs)(`div`,{className:`events-nav-links events-nav-links--desktop`,children:[(0,G.jsx)(`div`,{className:`events-nav-item`,children:(0,G.jsx)(d,{to:mt,className:`events-nav-link${K(w.events,`events-nav-link--active`)}`,"aria-current":w.events?`page`:void 0,children:`Events`})}),(0,G.jsxs)(`div`,{ref:re,className:`events-nav-dropdown${o===`trips`?` is-open`:``}`,onFocus:fe(`trips`),onBlur:F(`trips`,re),children:[(0,G.jsxs)(`button`,{type:`button`,className:`events-nav-link${K(w.trips,`events-nav-link--active`)}`,"aria-haspopup":`true`,"aria-expanded":o===`trips`,onClick:pe(`trips`),children:[`Trips`,(0,G.jsx)(_t,{})]}),(0,G.jsxs)(`div`,{className:`events-nav-dropdown-panel`,role:`menu`,"aria-label":`Trip destinations`,children:[l.map(e=>(0,G.jsxs)(d,{to:e.href,className:`events-nav-dropdown-item`,role:`menuitem`,children:[(0,G.jsx)(`span`,{children:e.label}),(0,G.jsx)(`span`,{className:e.open?`events-nav-open-pill`:`events-nav-open-pill is-prereg`,children:e.open?`Book now`:`Pre-register now`})]},e.key)),(0,G.jsx)(d,{to:`/trips`,className:`events-nav-dropdown-item events-nav-dropdown-item--tertiary`,role:`menuitem`,children:`See all trips`})]})]}),(0,G.jsxs)(`div`,{ref:ie,className:`events-nav-dropdown${o===`work`?` is-open`:``}`,onFocus:fe(`work`),onBlur:F(`work`,ie),children:[(0,G.jsxs)(`button`,{type:`button`,className:`events-nav-link${K(w.host,`events-nav-link--active`)}`,"aria-haspopup":`true`,"aria-expanded":o===`work`,onClick:pe(`work`),children:[`Work at Thursday`,(0,G.jsx)(_t,{})]}),(0,G.jsx)(`div`,{className:`events-nav-dropdown-panel`,role:`menu`,"aria-label":`Work at Thursday`,children:ht.map(e=>e.internal?(0,G.jsx)(d,{to:e.href,className:`events-nav-dropdown-item`,role:`menuitem`,children:e.name},e.href):(0,G.jsx)(`a`,{href:e.href,target:`_blank`,rel:`noreferrer`,className:`events-nav-dropdown-item`,role:`menuitem`,children:e.name},e.href))})]}),(0,G.jsx)(`div`,{className:`events-nav-item`,children:(0,G.jsx)(d,{to:`/venue-signup`,className:`events-nav-link${K(w.venue,`events-nav-link--active`)}`,"aria-current":w.venue?`page`:void 0,children:`List your venue`})}),O&&(0,G.jsx)(`div`,{className:`events-nav-item`,children:(0,G.jsxs)(d,{to:`/cart`,className:`events-nav-link${K(w.cart,`events-nav-link--active`)}`,"aria-current":w.cart?`page`:void 0,children:[`Cart`,S>0?` (${S})`:``]})}),(0,G.jsx)(vt,{className:`events-nav-chat--desktop`}),ne&&(0,G.jsx)(et,{className:`notif-bell--desktop`}),_?(0,G.jsxs)(`div`,{ref:A,className:`events-nav-dropdown events-nav-dropdown--account${o===`account`?` is-open`:``}`,onFocus:fe(`account`),onBlur:F(`account`,A),children:[(0,G.jsxs)(`span`,{className:`events-nav-account-trigger-wrap`,children:[(0,G.jsx)(`button`,{type:`button`,className:`events-nav-account-trigger`,"aria-haspopup":`true`,"aria-expanded":o===`account`,"aria-label":E<100?`Account menu, profile incomplete`:`Account menu`,onClick:pe(`account`),children:T?(0,G.jsx)(`img`,{src:T,alt:``,className:`events-nav-account-trigger-img`}):(0,G.jsx)(`span`,{className:`events-nav-account-trigger-initial`,"aria-hidden":!0,
2children:(_.name?.trim()||_.email||`?`).charAt(0).toUpperCase()})}),E<100&&(0,G.jsx)(`span`,{className:`events-nav-account-dot`,"aria-hidden":`true`})]}),(0,G.jsxs)(`div`,{className:`events-nav-dropdown-panel`,role:`menu`,"aria-label":`Account`,children:[E<100?(0,G.jsxs)(`button`,{type:`button`,className:`events-nav-account-header events-nav-account-header--nudge`,role:`menuitem`,onClick:()=>{c(null),p(!0)},children:[(0,G.jsx)(xt,{percent:E,user:_}),(0,G.jsxs)(`span`,{className:`events-nav-account-header-text`,children:[(0,G.jsxs)(`span`,{className:`events-nav-account-header-name`,children:[`Hey `,bt(_),` 👋`]}),(0,G.jsxs)(`span`,{className:`events-nav-account-header-progress`,children:[`Profile `,E,`% complete`]}),_.email&&(0,G.jsx)(`span`,{className:`events-nav-account-header-email`,children:_.email})]})]}):(0,G.jsxs)(d,{to:`/my-profile`,className:`events-nav-account-header`,role:`menuitem`,"aria-label":`View my profile`,children:[(0,G.jsxs)(`span`,{className:`events-nav-account-header-name`,children:[`Hey `,bt(_),` 👋`]}),_.email&&(0,G.jsx)(`span`,{className:`events-nav-account-header-email`,children:_.email})]}),(0,G.jsx)(`div`,{className:`events-nav-account-divider`}),D&&(0,G.jsx)(d,{to:`/admin/dashboard`,className:`events-nav-dropdown-item`,role:`menuitem`,children:`My Dashboard`}),(0,G.jsx)(d,{to:`/my-profile`,className:`events-nav-dropdown-item${K(w.myProfile,`events-nav-dropdown-item--current`)}`,role:`menuitem`,"aria-current":w.myProfile?`page`:void 0,children:`My profile`}),(0,G.jsx)(d,{to:`/my-tickets`,className:`events-nav-dropdown-item${K(w.myTickets,`events-nav-dropdown-item--current`)}`,role:`menuitem`,"aria-current":w.myTickets?`page`:void 0,children:`My tickets`}),(0,G.jsx)(d,{to:`/my-trips`,className:`events-nav-dropdown-item`,role:`menuitem`,children:`My trips`}),C&&(0,G.jsx)(d,{to:`/referrals`,className:`events-nav-dropdown-item${K(w.referrals,`events-nav-dropdown-item--current`)}`,role:`menuitem`,"aria-current":w.referrals?`page`:void 0,children:`Referrals`}),(0,G.jsx)(`button`,{type:`button`,className:`events-nav-dropdown-item events-nav-dropdown-item--signout`,role:`menuitem`,onClick:()=>void de(),children:`Sign out`})]})]}):(0,G.jsx)(`button`,{type:`button`,className:`events-nav-sign-in`,onClick:()=>h(!0),children:`Sign in`})]}),(0,G.jsx)(vt,{className:`events-nav-chat--mobile`}),ne&&(0,G.jsx)(et,{className:`notif-bell--mobile`}),(0,G.jsx)(`button`,{ref:j,type:`button`,className:`events-nav-burger`,onClick:ce,"aria-expanded":e,"aria-controls":`events-nav-drawer`,"aria-label":`Open menu`,children:(0,G.jsxs)(`svg`,{width:20,height:20,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,"aria-hidden":`true`,children:[(0,G.jsx)(`line`,{x1:`4`,y1:`7`,x2:`20`,y2:`7`}),(0,G.jsx)(`line`,{x1:`4`,y1:`12`,x2:`20`,y2:`12`}),(0,G.jsx)(`line`,{x1:`4`,y1:`17`,x2:`20`,y2:`17`})]})})]}),(0,G.jsx)(`div`,{className:`events-nav-overlay-backdrop${e?` open`:``}`,onClick:N,"aria-hidden":`true`}),(0,G.jsxs)(`aside`,{ref:oe,id:`events-nav-drawer`,className:`events-nav-drawer${e?` open`:``}`,"aria-hidden":!e,"aria-label":`Main menu`,children:[(0,G.jsxs)(`div`,{className:`events-nav-drawer-header`,children:[(0,G.jsx)(d,{to:`/`,className:`events-nav-drawer-logo`,onClick:N,children:(0,G.jsx)(`img`,{src:ct,alt:`Thursday`})}),(0,G.jsx)(`button`,{ref:ae,type:`button`,className:`events-nav-drawer-close`,onClick:N,"aria-label":`Close menu`,children:(0,G.jsxs)(`svg`,{width:18,height:18,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2.2,strokeLinecap:`round`,"aria-hidden":`true`,children:[(0,G.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`}),(0,G.jsx)(`line`,{x1:`6`,y1:`18`,x2:`18`,y2:`6`})]})})]}),(0,G.jsxs)(`div`,{className:`events-nav-drawer-body`,children:[_&&(0,G.jsxs)(G.Fragment,{children:[E<100?(0,G.jsxs)(`button`,{type:`button`,className:`events-nav-drawer-greeting events-nav-drawer-greeting--nudge`,onClick:()=>{N(),p(!0)},children:[(0,G.jsx)(xt,{percent:E,user:_}),(0,G.jsxs)(`span`,{className:`events-nav-drawer-greeting-text`,children:[(0,G.jsxs)(`span`,{className:`events-nav-drawer-greeting-name`,children:[`Hey `,bt(_),` 👋`]}),(0,G.jsxs)(`span`,{className:`events-nav-account-header-progress`,children:[`Profile `,E,`% complete`]}),_.email&&(0,G.jsx)(`span`,{className:`events-nav-drawer-greeting-email`,children:_.email})]})]}):(0,G.jsxs)(d,{to:`/my-profile`,className:`events-nav-drawer-greeting`,onClick:N,"aria-label":`View my profile`,children:[(0,G.jsxs)(`span`,{className:`events-nav-drawer-greeting-name`,children:[`Hey `,bt(_),` 👋`]}),_.email&&(0,G.jsx)(`span`,{className:`events-nav-drawer-greeting-email`,children:_.email})]}),(0,G.jsx)(`div`,{className:`events-nav-drawer-greeting-divider`})]}),(0,G.jsxs)(`div`,{className:`events-nav-drawer-section`,children:[(0,G.jsx)(d,{to:mt,className:`events-nav-drawer-link${K(w.events,`is-current`)}`,onClick:N,children:(0,G.jsx)(`span`,{children:`Events`})}),(0,G.jsxs)(`button`,{type:`button`,className:`events-nav-drawer-link`,"aria-expanded":n,onClick:()=>r(e=>!e),children:[(0,G.jsx)(`span`,{children:`Trips`}),(0,G.jsx)(`svg`,{className:`events-nav-drawer-chev`,width:14,height:14,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2.5,strokeLinecap:`round`,"aria-hidden":`true`,children:(0,G.jsx)(`polyline`,{points:`6 9 12 15 18 9`})})]}),(0,G.jsx)(`div`,{className:`events-nav-drawer-submenu`,children:(0,G.jsx)(`div`,{children:(0,G.jsxs)(`div`,{className:`events-nav-drawer-submenu-inner`,children:[l.map(e=>(0,G.jsxs)(d,{to:e.href,className:`events-nav-drawer-subitem`,onClick:N,children:[(0,G.jsx)(`span`,{children:e.label}),(0,G.jsx)(`span`,{className:e.open?`events-nav-open-pill`:`events-nav-open-pill is-prereg`,children:e.open?`Book now`:`Pre-register now`})]},e.key)),(0,G.jsx)(d,{to:`/trips`,className:`events-nav-drawer-subitem is-tertiary`,onClick:N,children:`See all trips`})]})})}),(0,G.jsxs)(`button`,{type:`button`,className:`events-nav-drawer-link`,"aria-expanded":i,onClick:()=>a(e=>!e),children:[(0,G.jsx)(`span`,{children:`Work at Thursday`}),(0,G.jsx)(`svg`,{className:`events-nav-drawer-chev`,width:14,height:14,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2.5,strokeLinecap:`round`,"aria-hidden":`true`,children:(0,G.jsx)(`polyline`,{points:`6 9 12 15 18 9`})})]}),(0,G.jsx)(`div`,{className:`events-nav-drawer-submenu`,children:(0,G.jsx)(`div`,{children:(0,G.jsx)(`div`,{className:`events-nav-drawer-submenu-inner`,children:ht.map(e=>e.internal?(0,G.jsx)(d,{to:e.href,className:`events-nav-drawer-subitem`,onClick:N,children:(0,G.jsx)(`span`,{children:e.name})},e.href):(0,G.jsx)(`a`,{href:e.href,target:`_blank`,rel:`noreferrer`,className:`events-nav-drawer-subitem`,onClick:N,children:(0,G.jsx)(`span`,{children:e.name})},e.href))})})}),(0,G.jsx)(d,{to:`/venue-signup`,className:`events-nav-drawer-link${K(w.venue,`is-current`)}`,"aria-current":w.venue?`page`:void 0,onClick:N,children:(0,G.jsx)(`span`,{children:`List your venue`})}),O&&(0,G.jsx)(d,{to:`/cart`,className:`events-nav-drawer-link${K(w.cart,`is-current`)}`,"aria-current":w.cart?`page`:void 0,onClick:N,children:(0,G.jsxs)(`span`,{children:[`Cart`,S>0?` (${S})`:``]})})]}),_?(0,G.jsxs)(`div`,{className:`events-nav-drawer-section`,children:[D&&(0,G.jsx)(d,{to:`/admin/dashboard`,className:`events-nav-drawer-link`,onClick:N,children:(0,G.jsx)(`span`,{children:`My Dashboard`})}),(0,G.jsx)(d,{to:`/my-profile`,className:`events-nav-drawer-link${K(w.myProfile,`is-current`)}`,"aria-current":w.myProfile?`page`:void 0,onClick:N,children:(0,G.jsx)(`span`,{children:`My profile`})}),(0,G.jsx)(d,{to:`/my-tickets`,className:`events-nav-drawer-link${K(w.myTickets,`is-current`)}`,"aria-current":w.myTickets?`page`:void 0,onClick:N,children:(0,G.jsx)(`span`,{children:`My tickets`})}),(0,G.jsx)(d,{to:`/my-trips`,className:`events-nav-drawer-link`,onClick:N,children:`My trips`}),C&&(0,G.jsx)(d,{to:`/referrals`,className:`events-nav-drawer-link${K(w.referrals,`is-current`)}`,"aria-current":w.referrals?`page`:void 0,onClick:N,children:(0,G.jsx)(`span`,{children:`Referrals`})}),(0,G.jsx)(`button`,{type:`button`,className:`events-nav-drawer-sign-out`,onClick:()=>void de(),children:`Sign out`})]}):(0,G.jsx)(`div`,{className:`events-nav-drawer-section`,children:(0,G.jsx)(`button`,{type:`button`,className:`events-nav-drawer-sign-in`,onClick:()=>{N(),h(!0)},children:`Sign in`})})]})]}),f&&_&&(0,G.jsx)(rt,{onClose:()=>p(!1)}),m&&!_&&(0,G.jsx)(Ae,{onClose:()=>h(!1),redirectTo:g})]})}var Ct=`data-hero-intro`,wt=4300;function Tt(){return typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function Et({enabled:e,force:t=!1,onComplete:n,durationMs:r=wt}){let[i,a]=(0,U.useState)(()=>t?!0:!e||Tt()?!1:typeof window>`u`||(window.scrollY||0)<=4),o=(0,U.useRef)(n);return o.current=n,(0,U.useLayoutEffect)(()=>
2{if(!i)return;let e=document.documentElement;e.setAttribute(Ct,``);let t=document.querySelector(`.sc-nav-logo`)?.getBoundingClientRect();return t&&t.width>0&&t.height>0&&(e.style.setProperty(`--nav-cx`,`${t.left+t.width/2}px`),e.style.setProperty(`--nav-cy`,`${t.top+t.height/2}px`)),()=>{e.removeAttribute(Ct),e.style.removeProperty(`--nav-cx`),e.style.removeProperty(`--nav-cy`)}},[i]),(0,U.useEffect)(()=>{if(!i)return;let e=setTimeout(()=>{a(!1),o.current?.()},r);return()=>clearTimeout(e)},[i,r]),i?(0,G.jsx)(`div`,{className:`hr-intro-veil`,"data-testid":`hero-intro`,"aria-hidden":`true`}):null}var Dt=new Set([`live`,`coming_soon`]),Ot=new Set([`published`,`coming_soon`]),kt={internal:`live`,external:`published`};function At(e,t){let n=e.status===kt[t];return{label:e.dropdownTitle||e.title,href:t===`internal`?`/thursday-trips/${e.slug}`:`/trips/${e.slug}`,badge:n?`Book now`:`Pre-register now`,variant:`trip`,startDate:e.startDate}}function jt(e,t){return!e.startDate&&!t.startDate?0:e.startDate?t.startDate?new Date(e.startDate).getTime()-new Date(t.startDate).getTime():-1:1}function Mt(){let[e,t]=(0,U.useState)([]);return(0,U.useEffect)(()=>{let e=!1;return Promise.all([z(`/external-trips/public`),z(`/trips`)]).then(([n,r])=>{if(e)return;let i=(n.data??[]).filter(e=>Ot.has(e.status)&&e.slug).map(e=>At(e,`external`)),a=(r.data??[]).filter(e=>Dt.has(e.status)&&e.slug).map(e=>At(e,`internal`));t([...i,...a].sort(jt).map(({startDate:e,...t})=>t))}).catch(()=>void 0),()=>{e=!0}},[]),e}function Nt(){window.Intercom?.(`show`)}function Pt(){let e=k(e=>e.user),t=k(e=>e.impersonating),n=k(e=>e.originalAdminId),r=k(e=>e.logout),i=s(),a=Mt(),[o,c]=(0,U.useState)(!1),[l,u]=(0,U.useState)(!1),d=(0,U.useMemo)(()=>{if(!e)return null;let t=e.profile?se({dateOfBirth:e.profile.dateOfBirth??null,gender:e.profile.gender??null,preferredGender:e.profile.preferredGender??null,thursdayCityId:e.profile.thursdayCityId??null}):100;return{name:e.name,email:e.email,avatarUrl:e.avatarUrl??void 0,completionPercent:t}},[e]),f=e?P(e.role,t,n):!1,p=(0,U.useCallback)(()=>c(!0),[]),m=(0,U.useCallback)(()=>{r()},[r]),h=(0,U.useCallback)(()=>u(!0),[]),g=(0,U.useCallback)(()=>Nt(),[]),_=(0,U.useCallback)(()=>{},[]),v=o&&!e?(0,G.jsx)(Ae,{onClose:()=>c(!1),redirectTo:i.pathname}):l&&e?(0,G.jsx)(rt,{onClose:()=>u(!1)}):null;return{user:d,showDashboard:f,cityLabel:`Select your city`,tripItems:a,activePath:i.pathname,onPickCity:_,onSignIn:p,onSignOut:m,onOpenProfileCompletion:h,onOpenChat:g,overlays:v}}var Ft=[{label:`Events`,scrollTo:`events`},{label:`Trips`,dropdown:`trips`},{label:`Work for us`,dropdown:`work`},{label:`List your venue`,href:`/venue-signup`}],It=[{label:`Become a Host`,href:`/become-a-host`},{label:`Become a Social Butterfly`,href:`https://social-butterfly.thursday.com/`,external:!0},{label:`Careers`,href:`https://forms.monday.com/forms/88b5b764675b1f3b3e4b2ed4a62d0746?r=euc1`,external:!0}],Lt=[{label:`See all trips`,href:`/trips`,variant:`tertiary`}],Rt={label:`My Dashboard`,href:`/admin/dashboard`},zt=[{label:`My profile`,href:`/my-profile`},{label:`My tickets`,href:`/my-tickets`},{label:`My trips`,href:`/my-trips`}],Bt=[{heading:`Explore`,links:[{label:`Events`,scrollTo:`events`},{label:`Trips`,href:`/trips`},{label:`Blog`,href:`/blog`},{label:`Partner with us`,href:`/partner-with-us`}]},{heading:`Company`,links:[{label:`Press`,href:`https://wkf.ms/4uivO5m`,external:!0},{label:`Careers`,href:`https://forms.monday.com/forms/88b5b764675b1f3b3e4b2ed4a62d0746?r=euc1`,external:!0},{label:`Help Center`,href:`https://intercom.help/thursday-e89e4f5bac12/en`,external:!0}]}],Vt=[{label:`Terms`,href:`/terms-of-use`},{label:`Issue at an Event`,href:`https://wkf.ms/4dxH9az`,external:!0},{label:`Privacy`,href:`/privacy-policy`},{label:`Refunds`,href:`/refund-policy`},{label:`Cookies`,href:`/cookie-policy`},{label:`Code of Conduct`,href:`/code-of-conduct`}],Ht=[{label:`Instagram`,href:`https://www.instagram.com/thursday`,icon:`instagram`},{label:`TikTok`,href:`https://www.tiktok.com/@thursdaydating`,icon:`tiktok`},{label:`X`,href:`https://x.com/thursdaydating?lang=en`,icon:`x`},{label:`LinkedIn`,href:`https://www.linkedin.com/company/thursdaydating/`,icon:`linkedin`}];function Ut(e){return e.trim().split(/\s+/)[0]||e}function Wt(e){let t=document.getElementById(e);if(!t)return;let n=window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1;t.scrollIntoView({behavior:n?`auto`:`smooth`,block:`start`})}function Gt({percent:e,name:t,avatarUrl:n}){let r=2*Math.PI*21,i=(t.trim().charAt(0)||`?`).toUpperCase();return(0,G.jsxs)(`span`,{className:`sc-profile-ring`,"aria-hidden":`true`,children:[(0,G.jsxs)(`svg`,{width:`52`,height:`52`,viewBox:`0 0 52 52`,children:[(0,G.jsx)(`circle`,{className:`sc-profile-ring-track`,cx:`26`,cy:`26`,r:21,strokeWidth:`3`}),(0,G.jsx)(`circle`,{className:`sc-profile-ring-fill`,cx:`26`,cy:`26`,r:21,strokeWidth:`3`,strokeDasharray:r,strokeDashoffset:r*(1-e/100),strokeLinecap:`round`,transform:`rotate(-90 26 26)`})]}),(0,G.jsx)(`span`,{className:`sc-profile-ring-face`,children:n?(0,G.jsx)(`img`,{src:n,alt:``,className:`sc-profile-ring-img`}):i}),(0,G.jsxs)(`span`,{className:`sc-profile-ring-badge`,children:[e,`%`]})]})}function Kt({item:e,active:t,onNavigate:n,sub:r}){let i=[`sc-drawer-link`,r?`sc-drawer-link--sub`:``,e.variant?`sc-drawer-link--${e.variant}
2`:``,t?`sc-drawer-link--active`:``].filter(Boolean).join(` `),a=(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{children:e.label}),e.badge&&(0,G.jsx)(`span`,{className:`sc-open-pill`,children:e.badge})]});return e.external?(0,G.jsx)(`a`,{className:i,href:e.href,target:`_blank`,rel:`noopener noreferrer`,onClick:n,children:a}):(0,G.jsx)(d,{className:i,to:e.href,"aria-current":t?`page`:void 0,onClick:n,children:a})}function qt({label:e,items:t,onNavigate:n}){let[r,i]=(0,U.useState)(!1);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`button`,{type:`button`,className:`sc-drawer-disclosure`,"aria-expanded":r,onClick:()=>i(e=>!e),children:[(0,G.jsx)(`span`,{children:e}),(0,G.jsx)(`svg`,{className:`sc-drawer-chev${r?` is-open`:``}`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,"aria-hidden":`true`,children:(0,G.jsx)(`polyline`,{points:`6 9 12 15 18 9`})})]}),r&&(0,G.jsx)(`div`,{className:`sc-drawer-submenu`,children:t.map(e=>(0,G.jsx)(Kt,{item:e,onNavigate:n,sub:!0},e.label))})]})}function Jt({open:e,onClose:t,activePath:n,homeHref:r=`/`,user:i=null,showDashboard:a=!1,tripItems:o=[],onSignIn:s,onSignOut:c,onOpenProfileCompletion:l}){let u=(0,U.useRef)(null);return(0,U.useEffect)(()=>{if(!e)return;let n=document.body.style.overflow;document.body.style.overflow=`hidden`,u.current?.focus();let r=e=>{if(e.key===`Escape`){t();return}if(e.key!==`Tab`)return;let n=u.current;if(!n)return;let r=n.querySelectorAll(`a[href], button:not([disabled]), [tabindex]:not([tabindex="-1"])`);if(r.length===0)return;let i=r[0],a=r[r.length-1];e.shiftKey&&document.activeElement===i?(e.preventDefault(),a.focus()):!e.shiftKey&&document.activeElement===a&&(e.preventDefault(),i.focus())};return document.addEventListener(`keydown`,r),()=>{document.body.style.overflow=n,document.removeEventListener(`keydown`,r)}},[e,t]),e?(0,G.jsxs)(`div`,{className:`sc-drawer-root site-ui`,children:[(0,G.jsx)(`div`,{className:`sc-drawer-scrim`,"data-testid":`sc-drawer-scrim`,onClick:t}),(0,G.jsxs)(`div`,{className:`sc-drawer`,role:`dialog`,"aria-modal":`true`,"aria-label":`Menu`,ref:u,tabIndex:-1,children:[(0,G.jsx)(`button`,{type:`button`,className:`sc-drawer-close`,"aria-label":`Close menu`,onClick:t,children:(0,G.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.2`,strokeLinecap:`round`,"aria-hidden":`true`,children:[(0,G.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`}),(0,G.jsx)(`line`,{x1:`6`,y1:`18`,x2:`18`,y2:`6`})]})}),i&&((i.completionPercent??100)<100?(0,G.jsxs)(`button`,{type:`button`,className:`sc-drawer-greeting sc-drawer-greeting--nudge`,onClick:()=>{t(),l?.()},children:[(0,G.jsx)(Gt,{percent:i.completionPercent??100,name:i.name}),(0,G.jsxs)(`span`,{className:`sc-drawer-greeting-text`,children:[(0,G.jsxs)(`span`,{className:`sc-drawer-greeting-name`,children:[`Hey `,Ut(i.name),` 👋`]}),(0,G.jsxs)(`span`,{className:`sc-drawer-greeting-progress`,children:[`Profile `,i.completionPercent,`% complete`]}),i.email&&(0,G.jsx)(`span`,{className:`sc-drawer-greeting-email`,children:i.email})]})]}):(0,G.jsxs)(`div`,{className:`sc-drawer-greeting`,children:[(0,G.jsxs)(`span`,{className:`sc-drawer-greeting-name`,children:[`Hey `,Ut(i.name),` 👋`]}),i.email&&(0,G.jsx)(`span`,{className:`sc-drawer-greeting-email`,children:i.email})]})),(0,G.jsx)(`nav`,{className:`sc-drawer-links`,"aria-label":`Primary`,children:Ft.map(e=>{if(e.dropdown){let n=e.dropdown===`trips`?[...o,...Lt]:It;return(0,G.jsx)(qt,{label:e.label,items:n,onNavigate:t},e.label)}if(e.scrollTo){let i=e.scrollTo,a=n===r;return(0,G.jsx)(d,{className:[`sc-drawer-link`,a?`sc-drawer-link--active`:``].filter(Boolean).join(` `),to:r,state:{scrollTo:i},"aria-current":a?`page`:void 0,onClick:e=>{t(),a&&(e.preventDefault(),requestAnimationFrame(()=>Wt(i)))},children:e.label},e.label)}return(0,G.jsx)(Kt,{item:{label:e.label,href:e.href??`#`,external:e.external},active:e.href===n,onNavigate:t},e.label)})}),i?(0,G.jsxs)(`div`,{className:`sc-drawer-account`,children:[(a?[Rt,...zt]:zt).map(e=>(0,G.jsx)(Kt,{item:e,onNavigate:t},e.label)),(0,G.jsx)(`button`,{type:`button`,className:`sc-drawer-signout`,onClick:()=>{t(),c?.()},children:`Sign out`})]}):(0,G.jsx)(`div`,{className:`sc-drawer-actions`,children:(0,G.jsx)(je,{variant:`pink`,onClick:()=>{t(),s?.()},children:`SIGN UP`})})]})]}):null}function Yt({label:e,trigger:t,triggerClassName:n,triggerAriaLabel:r,items:i,align:a=`left`,header:o,footer:s}){let[c,l]=(0,U.useState)(!1),u=(0,U.useRef)(null),f=(0,U.useRef)(null),p=(0,U.useId)();(0,U.useEffect)(()=>
2{if(!c)return;let e=e=>{u.current&&!u.current.contains(e.target)&&l(!1)},t=e=>{e.key===`Escape`&&(l(!1),f.current?.focus())};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[c]);let m=()=>l(!1);return(0,G.jsxs)(`div`,{className:`sc-nav-item`,ref:u,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),onBlur:e=>{u.current?.contains(e.relatedTarget)||l(!1)},children:[(0,G.jsx)(`button`,{type:`button`,className:n??`sc-nav-trigger`,"aria-expanded":c,"aria-controls":p,"aria-label":r,ref:f,onClick:()=>l(e=>!e),children:t??(0,G.jsxs)(G.Fragment,{children:[e,(0,G.jsx)(`svg`,{className:`sc-chev`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,"aria-hidden":`true`,children:(0,G.jsx)(`polyline`,{points:`6 9 12 15 18 9`})})]})}),(0,G.jsxs)(`div`,{className:[`sc-nav-dropdown`,a===`right`?`sc-nav-dropdown--right`:``,c?`is-open`:``].filter(Boolean).join(` `),id:p,children:[typeof o==`function`?o(m):o,i.map(e=>{let t=e.variant?`sc-nav-dropdown-item sc-nav-dropdown-item--${e.variant}`:`sc-nav-dropdown-item`;return e.external?(0,G.jsxs)(`a`,{className:t,href:e.href,target:`_blank`,rel:`noopener noreferrer`,onClick:m,children:[(0,G.jsx)(`span`,{children:e.label}),e.badge&&(0,G.jsx)(`span`,{className:`sc-open-pill`,children:e.badge})]},e.label):(0,G.jsxs)(d,{className:t,to:e.href,onClick:m,children:[(0,G.jsx)(`span`,{children:e.label}),e.badge&&(0,G.jsx)(`span`,{className:`sc-open-pill`,children:e.badge})]},e.label)}),s]})]})}function Xt({solidAfter:e=64}={}){let[t,n]=(0,U.useState)(()=>({mode:`over-hero`,hidden:!1})),r=(0,U.useRef)(0),i=(0,U.useRef)(!1);return(0,U.useEffect)(()=>{let t=typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,a=()=>{let i=window.scrollY,a=i<e?`over-hero`:`solid`,o=t?!1:i>r.current&&i>e;r.current=i,n(e=>e.mode===a&&e.hidden===o?e:{mode:a,hidden:o})},o=()=>{i.current||(i.current=!0,window.requestAnimationFrame(()=>{i.current=!1,a()}))};return a(),window.addEventListener(`scroll`,o,{passive:!0}),()=>window.removeEventListener(`scroll`,o)},[e]),t}function Zt({item:e,active:t,homeHref:n}){let r=t?`sc-nav-link sc-nav-link--active`:`sc-nav-link`,i=s();if(e.external)return(0,G.jsx)(`a`,{className:r,href:e.href,target:`_blank`,rel:`noopener noreferrer`,children:e.label});if(e.scrollTo){let a=e.scrollTo,o=i.pathname===n;return(0,G.jsx)(d,{className:r,to:n,state:{scrollTo:a},"aria-current":t?`page`:void 0,onClick:e=>{o&&(e.preventDefault(),Wt(a))},children:e.label})}return(0,G.jsx)(d,{className:r,to:e.href??`#`,"aria-current":t?`page`:void 0,children:e.label})}function Qt(){return(0,G.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{d:`M21 11.5a8.5 8.5 0 0 1-12.3 7.6L3 21l1.9-5.7A8.5 8.5 0 1 1 21 11.5Z`})})}function $t(){return(0,G.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,"aria-hidden":`true`,children:[(0,G.jsx)(`line`,{x1:`4`,y1:`7`,x2:`20`,y2:`7`}),(0,G.jsx)(`line`,{x1:`4`,y1:`12`,x2:`20`,y2:`12`}),(0,G.jsx)(`line`,{x1:`4`,y1:`17`,x2:`20`,y2:`17`})]})}function en({mode:e,hidden:t,activePath:n,homeHref:r=`/`,user:i=null,showDashboard:a=!1,tripItems:o=[],onSignIn:s,onSignOut:c,onOpenProfileCompletion:l,onOpenChat:u,onOpenMenu:f}){let p=Xt(),m=e??p.mode,h=t??p.hidden;return(0,G.jsxs)(`header`,{className:[`site-ui`,`sc-nav`,m===`solid`?`sc-nav--solid`:`sc-nav--over-hero`,h?`sc-nav--hidden`:``].filter(Boolean).join(` `),role:`banner`,children:[(0,G.jsx)(d,{to:r,className:`sc-nav-logo`,"aria-label":`Thursday, home`,children:(0,G.jsx)(`img`,{src:I(`icons/logo-white.svg`),alt:`Thursday`})}),(0,G.jsx)(`nav`,{className:`sc-nav-links`,"aria-label":`Primary`,children:Ft.map(e=>e.dropdown===`trips`?(0,G.jsx)(Yt,{label:e.label,items:[...o,...Lt]},e.label):e.dropdown===`work`?(0,G.jsx)(Yt,{label:e.label,items:It},e.label):(0,G.jsx)(Zt,{item:e,active:e.scrollTo?n===r:e.href===n,homeHref:r},e.label))}),(0,G.jsxs)(`div`,{className:`sc-nav-right`,children:[(0,G.jsx)(`button`,{type:`button`,className:`sc-nav-chat`,"aria-label":`Chat`,onClick:u,children:(0,G.jsx)(Qt,{})}),i?(()=>{let e=i.completionPercent??100,t=e<100,n=Ut(i.name);return(0,G.jsx)(Yt,{align:`right`,triggerClassName:`sc-nav-avatar`,triggerAriaLabel:t?`Account: ${i.name}, profile incomplete`:`Account: ${i.name}`,trigger:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{className:`sc-nav-avatar-face`,children:i.avatarUrl?(0,G.jsx)(`img`,{src:i.avatarUrl,alt:``}):(0,G.jsx)(`span`,{"aria-hidden":`true`,children:i.name.charAt(0).toUpperCase()})}),t&&(0,G.jsx)(`span`,{className:`sc-nav-avatar-dot`,"aria-hidden":`true`})]}),header:t?(t=>(0,G.jsxs)(`button`,{type:`button`,className:`sc-account-header sc-account-header--nudge`,onClick:()=>{t(),l?.()},children:[(0,G.jsx)(Gt,{percent:e,name:i.name,avatarUrl:i.avatarUrl}),(0,G.jsxs)(`span`,{className:`sc-account-header-text`,children:[(0,G.jsxs)(`span`,{className:`sc-account-name`,children:[`Hey `,n,` 👋`]}),(0,G.jsxs)(`span`,{className:`sc-account-progress`,children:[`Profile `,e,`% complete`]}),i.email&&(0,G.jsx)(`span`,{className:`sc-account-email`,children:i.email})]})]})):(0,G.jsxs)(`div`,{className:`sc-account-header`,children:[(0,G.jsxs)(`span`,{className:`sc-account-name`,children:[`Hey `,n,` 👋`]}),i.email&&(0,G.jsx)(`span`,{className:`sc-account-email`,children:i.email})]}),items:a?[Rt,...zt]:zt,footer:(0,G.jsx)(`button`,{type:`button`,className:`sc-nav-dropdown-item`,onClick:c,children:(0,G.jsx)(`span`,{children:`Sign out`})})})})():(0,G.jsx)(je,{variant:`pink`,onClick:s,children:`SIGN UP`}),(0,G.jsx)(`button`,{type:`button`,className:`sc-nav-burger`,"aria-label":`Menu`,onClick:f,children:(0,G.jsx)($t,{})})]})]})}var tn=new Set([`/`,`/home-preview`]);function nn(e){let t=document.getElementById(`main-content`);
2t&&(e.preventDefault(),t.setAttribute(`tabindex`,`-1`),t.focus(),t.addEventListener(`blur`,()=>t.removeAttribute(`tabindex`),{once:!0}))}function rn({pathname:e,redesign:t,showChrome:n=!0,eventsNav:r=null}){let i=Pt(),[a,o]=(0,U.useState)(!1);if(!n)return null;if(!t)return(0,G.jsx)(G.Fragment,{children:r});let s=e===`/home-preview`?`/home-preview`:`/`;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`a`,{className:`sc-skip-link`,href:`#main-content`,onClick:nn,children:`Skip to content`}),(0,G.jsx)(Et,{enabled:tn.has(e)}),(0,G.jsx)(en,{activePath:e,homeHref:s,user:i.user,showDashboard:i.showDashboard,tripItems:i.tripItems,onSignIn:i.onSignIn,onSignOut:i.onSignOut,onOpenProfileCompletion:i.onOpenProfileCompletion,onOpenChat:i.onOpenChat,onOpenMenu:()=>o(!0)}),(0,G.jsx)(Jt,{open:a,onClose:()=>o(!1),activePath:e,homeHref:s,user:i.user,showDashboard:i.showDashboard,tripItems:i.tripItems,onSignIn:i.onSignIn,onSignOut:i.onSignOut,onOpenProfileCompletion:i.onOpenProfileCompletion}),i.overlays]})}function an(){return typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function on(){let e=(0,U.useRef)(null);return(0,U.useEffect)(()=>{let t=e.current;if(!t||an()||typeof IntersectionObserver>`u`)return;t.classList.add(`boot-held`);let n=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(t.classList.remove(`boot-held`),t.classList.add(`boot-run`),n.disconnect())},{threshold:.25});return n.observe(t),()=>n.disconnect()},[]),(0,G.jsx)(`div`,{className:`sc-foot-wordmark`,ref:e,children:(0,G.jsx)(`img`,{src:I(`icons/logo-white.svg`),alt:`Thursday`,loading:`lazy`})})}function sn({link:e,homeHref:t,onHome:n}){if(e.scrollTo){let r=e.scrollTo;return(0,G.jsx)(d,{to:t,state:{scrollTo:r},onClick:e=>{n&&(e.preventDefault(),Wt(r))},children:e.label})}return e.external?(0,G.jsx)(`a`,{href:e.href,target:`_blank`,rel:`noopener noreferrer`,children:e.label}):(0,G.jsx)(d,{to:e.href??`#`,children:e.label})}function cn({icon:e}){switch(e){case`instagram`:return(0,G.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.7`,"aria-hidden":`true`,children:[(0,G.jsx)(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`5`}),(0,G.jsx)(`circle`,{cx:`12`,cy:`12`,r:`4`}),(0,G.jsx)(`circle`,{cx:`17.5`,cy:`6.5`,r:`1.2`,fill:`currentColor`})]});case`tiktok`:return(0,G.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{d:`M16.5 3c.3 2.1 1.5 3.4 3.5 3.6v2.4c-1.2.1-2.3-.2-3.5-.9v5.6c0 3.3-2.4 5.3-5.2 5.3-2.6 0-4.6-1.9-4.6-4.5 0-2.7 2.1-4.6 4.9-4.4v2.5c-.4-.1-.9-.2-1.3-.1-1 .2-1.7 1-1.6 2.1.1 1 .9 1.7 1.9 1.7 1.1 0 1.9-.8 1.9-2.1V3h3.5Z`})});case`x`:return(0,G.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{d:`M18 2h3l-7.5 8.6L22 22h-6.8l-4.7-6.2L5 22H2l8-9.1L2 2h6.9l4.3 5.7L18 2Zm-1.2 18h1.7L7.3 3.8H5.5L16.8 20Z`})});case`linkedin`:return(0,G.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{d:`M4.98 3.5A2.5 2.5 0 1 0 5 8.5 2.5 2.5 0 0 0 4.98 3.5ZM3 9h4v12H3V9Zm6 0h3.8v1.7h.05C13.4 9.4 15 8.7 17 8.7c4 0 4.7 2.6 4.7 6V21h-4v-5.4c0-1.3 0-3-1.8-3s-2.1 1.4-2.1 2.9V21H9V9Z`})})}}function ln({onOpenPrivacyChoices:e,theme:t=`dark`}){let n=new Date().getFullYear(),{pathname:r}=s(),i=r===`/home-preview`?`/home-preview`:`/`,a=r===i;return(0,G.jsx)(`footer`,{className:`site-ui sc-foot sc-foot--${t}`,children:(0,G.jsxs)(`div`,{className:`sc-foot-inner`,children:[(0,G.jsx)(`div`,{className:`sc-foot-top`,children:(0,G.jsx)(`div`,{className:`sc-foot-cols`,children:Bt.map(e=>(0,G.jsxs)(`div`,{className:`sc-foot-col`,children:[(0,G.jsx)(`h4`,{children:e.heading}),e.links.map(e=>(0,G.jsx)(sn,{link:e,homeHref:i,onHome:a},e.label))]},e.heading))})}),(0,G.jsx)(on,{}),(0,G.jsx)(`hr`,{className:`sc-foot-divider`}),(0,G.jsxs)(`div`,{className:`sc-foot-bottom`,children:[(0,G.jsxs)(`p`,{className:`sc-foot-cc`,children:[`Honeypot Dating Ltd `,n,` · All rights reserved.`]}),(0,G.jsxs)(`div`,{className:`sc-foot-legal`,children:[Vt.map(e=>(0,G.jsx)(sn,{link:e,homeHref:i,onHome:a},e.label)),e&&(0,G.jsx)(`button`,{type:`button`,onClick:e,children:`Your Privacy Choices`})]}),(0,G.jsx)(`div`,{className:`sc-foot-social`,children:Ht.map(e=>(0,G.jsx)(`a`,{href:e.href,target:`_blank`,rel:`noopener noreferrer`,"aria-label":e.label,children:(0,G.jsx)(cn,{icon:e.icon})},e.icon))})]})]})})}var un=new Set([`/auth`,`/forgot-password`,`/reset-password`]);function dn(){let[e,t]=(0,U.useState)(!1),n=s();return n.pathname.startsWith(`/admin`)||un.has(n.pathname),null}var fn=new Set([`getthursday.com`,`www.getthursday.com`,`app.thursday.com`]);function pn(){if(typeof window>`u`)return!0;let e=window.location.hostname;return!!(fn.has(e)||e.endsWith(`.getthursday.com`))}function q(e){if(typeof window>`u`||pn())return e;try{let t=new URL(e);return`${window.location.origin}${t.pathname}${t.search}${t.hash}`}catch{return e}}var J=e=>e?` header-nav-item--active`:``;function mn(e){return{cart:e.startsWith(`/cart`),myTickets:e.startsWith(`/my-tickets`)||e.startsWith(`/tickets/`),referrals:e.startsWith(`/referrals`),auth:e.startsWith(`/auth`)||e===`/forgot-password`||e===`/reset-password`}}var hn=[{name:`THAILAND`,slug:`/thursday-trips/thailand`,status:`Open`},{name:`YACHT WEEK`,slug:`/thursday-trips/yachtweek`,status:`Open`}],gn=()=>{let[e,n]=(0,U.useState)(!1),{pathname:r}=s(),{user:i,verify:a,logout:o}=k(),c=t(),l=be(e=>e.lines).reduce((e,t)=>
2e+t.quantity,0),{cartInPlatform:u,tripsInPlatform:f}=B(),p=mn(r);(0,U.useEffect)(()=>{a()},[a]);let m=async()=>{await o(),n(!1),c(`/`)};return(0,G.jsxs)(`div`,{className:`navbar-7${e?` navbar-7--mobile-menu-open`:``}`,children:[(0,G.jsx)(`div`,{"data-animation":`default`,"data-collapse":`small`,"data-duration":`800`,role:`banner`,className:`navbar-content-6 w-nav`,children:(0,G.jsxs)(`div`,{className:`container-28 w-container`,children:[(0,G.jsx)(d,{to:`/`,className:`brand-logo w-nav-brand`,children:(0,G.jsx)(`img`,{width:140.7,height:41,alt:`Thursday`,src:I(`icons/logo-white-alt.svg`),loading:`lazy`,className:`vectors-wrapper-24`})}),(0,G.jsxs)(`nav`,{role:`navigation`,className:`nav-menu-3 w-nav-menu`,children:[(0,G.jsxs)(`div`,{className:`div-block-23`,children:[(0,G.jsx)(`a`,{href:q(`https://events.getthursday.com/`),className:`navbar-link-2 w-nav-link`,children:`EVENTS`}),(0,G.jsx)(d,{to:`/dinners`,className:`navbar-link-2 w-nav-link`,children:`DINNERS`}),(0,G.jsxs)(`div`,{className:`language-dropdown w-dropdown`,children:[(0,G.jsxs)(`div`,{className:`language-toggle w-dropdown-toggle`,children:[(0,G.jsx)(`div`,{className:`icon-4 w-icon-dropdown-toggle`}),f?(0,G.jsx)(d,{to:`/homepage-trips`,className:`text-block-17`,children:`TRIPS`}):(0,G.jsx)(`a`,{href:q(`https://www.getthursday.com/homepage-trips`),className:`text-block-17`,children:`TRIPS`})]}),(0,G.jsxs)(`nav`,{className:`language-list-2 w-dropdown-list`,children:[(0,G.jsx)(`div`,{className:`collection-list-wrapper-12 w-dyn-list`,children:(0,G.jsx)(`div`,{role:`list`,className:`collection-list-15 w-dyn-items`,children:hn.map(e=>(0,G.jsx)(`div`,{role:`listitem`,className:`collection-item-11 w-dyn-item`,children:(0,G.jsxs)(d,{to:e.slug,className:`frame-36869 w-inline-block`,children:[(0,G.jsx)(`div`,{className:`text-block-18 navbar-link`,children:e.name}),(0,G.jsxs)(`div`,{className:`frame-36868`,children:[(0,G.jsx)(`div`,{className:`text-101`,children:e.status}),(0,G.jsx)(`div`,{className:`graph`,children:(0,G.jsx)(`img`,{width:12,height:12,alt:``,src:I(`icons/open-indicator.svg`),loading:`lazy`,className:`vectors-wrapper-50`})})]})]})},e.slug))})}),f?(0,G.jsx)(d,{to:`/homepage-trips`,className:`frame-36869 w-inline-block`,children:(0,G.jsx)(`div`,{className:`text-block-18 navbar-link`,children:`SEE ALL TRIPS HERE `})}):(0,G.jsx)(`a`,{href:q(`https://www.getthursday.com/homepage-trips`),className:`frame-36869 w-inline-block`,children:(0,G.jsx)(`div`,{className:`text-block-18 navbar-link`,children:`SEE ALL TRIPS HERE `})})]})]}),(0,G.jsx)(`a`,{href:`https://wkf.ms/4nlXPGw`,target:`_blank`,rel:`noopener noreferrer`,className:`text-block-17-copy${J(p.host)}`,children:`BECOME A HOST`})]}),u&&(0,G.jsxs)(d,{to:`/cart`,className:`navbar-link-2 w-nav-link${J(p.cart)}`,"aria-current":p.cart?`page`:void 0,children:[`CART`,l>0?` (${l})`:``]}),i?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(d,{to:`/my-tickets`,className:`navbar-link-2 w-nav-link${J(p.myTickets)}`,"aria-current":p.myTickets?`page`:void 0,children:`MY TICKETS`}),(0,G.jsx)(d,{to:`/referrals`,className:`navbar-link-2 w-nav-link${J(p.referrals)}`,"aria-current":p.referrals?`page`:void 0,children:`REFER A FRIEND`}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>void m(),className:`navbar-sign-out navbar-link-2 w-nav-link`,children:`SIGN OUT`})]}):(0,G.jsx)(d,{to:`/auth?redirect=${encodeURIComponent(r)}`,className:`navbar-link-2 w-nav-link${J(p.auth)}`,"aria-current":p.auth?`page`:void 0,children:`LOG IN`}),(0,G.jsx)(`a`,{href:q(`https://events.getthursday.com/`),className:`navbar-cta-2 w-nav-link`,children:`BROWSE EVENTS`})]}),e?(0,G.jsx)(`button`,{type:`button`,className:`mobile-nav-close menu-button-2 w-nav-button`,onClick:()=>n(!1),"aria-label":`Close menu`,children:(0,G.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:28,height:28,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{d:`M18 6 6 18M6 6l12 12`})})}):(0,G.jsx)(`div`,{className:`menu-button-2 w-nav-button`,onClick:()=>n(!0),role:`button`,tabIndex:0,"aria-expanded":!1,"aria-label":`Open menu`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n(!0))},children:(0,G.jsxs)(`div`,{style:{width:28,height:20,display:`flex`,flexDirection:`column`,justifyContent:`space-between`,cursor:`pointer`},children:[(0,G.jsx)(`span`,{style:{display:`block`,width:`100%`,height:2,background:`#fff`}}),(0,G.jsx)(`span`,{style:{display:`block`,width:`100%`,height:2,background:`#fff`}}),(0,G.jsx)(`span`,{style:{display:`block`,width:`100%`,height:2,background:`#fff`}})]})})]})}),e&&(0,G.jsx)(`div`,{className:`mobile-nav-overlay`,role:`navigation`,"aria-label":`Main menu`,children:(0,G.jsxs)(`div`,{className:`mobile-nav-overlay__links`,children:[(0,G.jsx)(`a`,{href:q(`https://events.getthursday.com/`),onClick:()=>n(!1),children:`EVENTS`}),(0,G.jsx)(d,{to:`/dinners`,onClick:()=>n(!1),children:`DINNERS`}),f?(0,G.jsx)(d,{to:`/homepage-trips`,onClick:()=>n(!1),children:`TRIPS`}):(0,G.jsx)(`a`,{href:q(`https://www.getthursday.com/homepage-trips`),onClick:()=>n(!1),children:`TRIPS`}),(0,G.jsx)(`a`,{href:`https://wkf.ms/4nlXPGw`,target:`_blank`,rel:`noopener noreferrer`,children:`BECOME A HOST`}),u&&(0,G.jsxs)(d,{to:`/cart`,className:J(p.cart).trim()||void 0,"aria-current":p.cart?`page`:void 0,onClick:()=>n(!1),children:[`CART`,l>0?` (${l})`:``]}),i?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(d,{to:`/my-tickets`,className:J(p.myTickets).trim()||void 0,"aria-current":p.myTickets?`page`:void 0,onClick:()=>n(!1),children:`MY TICKETS`}),(0,G.jsx)(d,{to:`/referrals`,className:J(p.referrals).trim()||void 0,"aria-current":p.referrals?`page`:void 0,onClick:()=>n(!1),children:`REFER A FRIEND`}),(0,G.jsx)(`button`,{type:`button`,className:`mobile-nav-sign-out`,onClick:()=>{n(!1),m()},children:`SIGN OUT`})]}):(0,G.jsx)(d,{to:`/auth?redirect=${encodeURIComponent(r)}`,className:J(p.auth).trim()||void 0,"aria-current":p.auth?`page`:void 0,onClick:()=>n(!1),children:`LOG IN`}),(0,G.jsx)(`a`,{href:q(`https://events.getthursday.com/`),className:`mobile-nav-cta`,onClick:()=>n(!1),children:`BROWSE EVENTS`})]})})]})};function _n(){return(0,G.jsxs)(`div`,{className:`landingpage`,children:[(0,G.jsx)(gn,{}),(0,G.jsx)(`section`,{className:`admin-page`,style:{minHeight:`60vh`,paddingTop:`2rem`,paddingBottom:`4rem`},children:(0,G.jsxs)(`div`,{style:{maxWidth:`640px`,margin:`0 auto`,textAlign:`center`},children:[(0,G.jsx)(`p`,{style:{fontSize:`0.875rem`,letterSpacing:`0.2em`,textTransform:`uppercase`,color:`var(--color-text-muted, #64748b)`,marginBottom:`1rem`},children:`Maintenance mode`}),(0,G.jsx)(`h1`,{className:`admin-page-title`,style:{marginBottom:`1rem`},children:`We're currently in maintenance mode`}),(0,G.jsx)(`p`,{className:`admin-card-description`,style:{margin:`0 auto 2rem`},children:`We're making a few improvements behind the scenes. Please check back in an hour. Thanks for your patience. ❤️`})]})}),(0,G.jsx)(Me,{})]})}var vn=`hammer_preview_auth_date`,yn=`access-code`,bn=`gate-pass`;function xn(){let e=localStorage.getItem(vn);if(!e)return null;try{let t=JSON.parse(e);if(t&&typeof t.date==`string`){let e=t.mode===`bypass`?`bypass`:`code`,n=typeof t.token==`string`?t.token:void 0;return{date:t.date,mode:e,token:n}}}catch{}return{date:e,mode:`code`}}function Sn(e){localStorage.setItem(vn,JSON.stringify(e))}function Cn(e,t){if(t)return!0;let n=e??``;return n===`ADMIN`||n===`SUPER_ADMIN`||n===`REPS`||n===`HOST`}function wn({children:e}){let[t,n]=y(),[r,i]=(0,U.useState)(!1),[a,o]=(0,U.useState)(``),[s,c]=(0,U.useState)(``),[l,u]=(0,U.useState)(!0),[d,f]=(0,U.useState)(!1),[p,m]=(0,U.useState)(!1),h=(0,U.useRef)(!1),[g,_]=(0,U.useState)(!1),[v,b]=(0,U.useState)(!1),[x,S]=(0,U.useState)(!1);return(0,U.useEffect)(()=>{let e=t.get(yn);e?.trim()&&(h.current=!0,o(e.trim()),n(e=>{let t=new URLSearchParams(e);return t.delete(yn),t},{replace:!0}))},[t,n]),(0,U.useEffect)(()=>{(async()=>{try{let e=t.get(bn);if(e?.trim())try{let t=await R(`/access/verify-bypass`,{token:e.trim()});t.success&&t.date&&Sn({date:t.date,mode:`bypass`,token:e.trim()})}catch{}finally{n(e=>{let t=new URLSearchParams(e);return t.delete(bn),t},{replace:!0})}let[r,a,o,s]=await Promise.all([k.getState().verify().catch(()=>!1),z(`/settings/maintenance`).catch(()=>null),z(`/settings/preview`).catch(()=>null),Promise.resolve(xn())]),c=k.getState(),l=r?{data:{valid:!0,user:c.user?{role:c.user.role}:void 0,originalAdminId:c.originalAdminId}}:null,d=!1;if(l){let e=l?.data;e?.valid&&Cn(e.user?.role,e.originalAdminId??void 0)&&(d=!0,b(!0))}let p=!1;
2if(a&&(p=!!a.maintenanceModeEnabled,_(p)),p&&!d){S(!0),u(!1);return}if(!o){f(!1),i(!0),S(!0),u(!1);return}if(f(!!o.previewModeEnabled),!o.previewModeEnabled){i(!0),S(!0),u(!1);return}let m=s;if(!m){S(!0),u(!1);return}try{let e=new URLSearchParams({date:m.date,mode:m.mode});m.mode===`bypass`&&m.token&&e.set(`token`,m.token),(await z(`/access/status?${e.toString()}`)).valid?i(!0):localStorage.removeItem(vn)}catch{}S(!0),u(!1)}catch{f(!1),i(!0),S(!0),u(!1)}})()},[]),(0,U.useEffect)(()=>{let e=!1,t=async()=>{let t=await z(`/settings/maintenance`).catch(()=>null);!e&&t&&_(!!t.maintenanceModeEnabled)},n=window.setInterval(()=>void t(),3e4),r=()=>{document.visibilityState===`visible`&&t()};return document.addEventListener(`visibilitychange`,r),window.addEventListener(`focus`,r),()=>{e=!0,window.clearInterval(n),document.removeEventListener(`visibilitychange`,r),window.removeEventListener(`focus`,r)}},[]),(0,U.useEffect)(()=>{!l&&x&&d&&!r&&a.trim()&&h.current&&(h.current=!1,(async()=>{c(``);try{let e=await R(`/access/verify`,{code:a.trim()});e.success&&e.date?(Sn({date:e.date,mode:`code`}),i(!0)):(c(`Invalid access code`),o(``))}catch{c(`Something went wrong. Please try again.`)}})())},[l,x,d,r,a]),l?(0,G.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,minHeight:`100vh`,fontFamily:`system-ui, -apple-system, sans-serif`},children:(0,G.jsx)(`div`,{children:`Loading...`})}):g&&!v?(0,G.jsx)(_n,{}):!d||r?(0,G.jsx)(G.Fragment,{children:e}):(0,G.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,minHeight:`100vh`,padding:`1.5rem`,background:`linear-gradient(160deg, #0f172a 0%, #1e293b 45%, #334155 100%)`,fontFamily:`system-ui, -apple-system, sans-serif`},children:(0,G.jsxs)(`div`,{style:{background:`white`,padding:`2.25rem 2rem`,borderRadius:`1rem`,boxShadow:`0 25px 50px -12px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.04)`,maxWidth:`380px`,width:`100%`},children:[(0,G.jsx)(`div`,{style:{marginBottom:`1.5rem`},children:(0,G.jsx)(`h1`,{style:{margin:0,fontSize:`1.5rem`,color:`#0f172a`,fontWeight:`600`,letterSpacing:`-0.02em`},children:`Enter access code to continue`})}),(0,G.jsxs)(`form`,{onSubmit:async e=>{e.preventDefault(),c(``);try{let e=await R(`/access/verify`,{code:a});e.success&&e.date?(Sn({date:e.date,mode:`code`}),i(!0)):(c(`Invalid access code`),o(``))}catch{c(`Something went wrong. Please try again.`)}},children:[(0,G.jsx)(`input`,{type:`text`,value:a,onChange:e=>{o(e.target.value),c(``)}
2,placeholder:`Paste or type the code`,autoFocus:!0,autoComplete:`one-time-code`,"aria-invalid":!!s,"aria-describedby":s?`access-error`:void 0,style:{width:`100%`,padding:`0.75rem 1rem`,fontSize:`1rem`,border:s?`2px solid #ef4444`:`1px solid ${p?`#94a3b8`:`#e2e8f0`}`,borderRadius:`0.5rem`,outline:`none`,transition:`border-color 0.15s, box-shadow 0.15s`,boxSizing:`border-box`,boxShadow:p&&!s?`0 0 0 3px rgba(15,23,42,0.08)`:s?`0 0 0 3px rgba(239,68,68,0.15)`:`none`},onFocus:()=>m(!0),onBlur:()=>m(!1)}),s&&(0,G.jsx)(`p`,{id:`access-error`,role:`alert`,style:{margin:`0.5rem 0 0 0`,color:`#dc2626`,fontSize:`0.875rem`},children:s}),(0,G.jsx)(`button`,{type:`submit`,disabled:!a.trim(),style:{width:`100%`,marginTop:`1rem`,padding:`0.75rem 1rem`,fontSize:`0.9375rem`,fontWeight:`600`,color:`white`,background:a.trim()?`#0f172a`:`#cbd5e1`,border:`none`,borderRadius:`0.5rem`,cursor:a.trim()?`pointer`:`not-allowed`,transition:`background 0.15s`},children:`Continue`})]})]})})}function Tn({children:e}){let t=s(),n=k(e=>e.user),r=k(e=>e.impersonating),i=k(e=>e.originalAdminId),o=t.pathname.startsWith(`/admin`),c=n!=null&&!P(n.role,r,i);return o&&c?(0,G.jsx)(a,{to:(n?.role??``).toLowerCase()===`partner`?`/partner`:`/`,replace:!0}):(0,G.jsx)(G.Fragment,{children:e})}function Y({children:e}){let t=s(),{user:n,verify:r}=k(),[i,o]=(0,U.useState)(!0);return(0,U.useEffect)(()=>{let e=!1;return r().then(()=>{e||o(!1)}),()=>{e=!0}},[r]),i?(0,G.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,minHeight:`50vh`,fontFamily:`system-ui`},children:(0,G.jsx)(`div`,{children:`Loading…`})}):n?(0,G.jsx)(G.Fragment,{children:e}):(0,G.jsx)(a,{to:`/auth?redirect=${encodeURIComponent(t.pathname+t.search)}`,replace:!0})}function En({children:e}){let t=(k(e=>e.user)?.role??``).toLowerCase();return t!==`partner`&&t!==`super_admin`?(0,G.jsx)(a,{to:`/`,replace:!0}):(0,G.jsx)(G.Fragment,{children:e})}function X({children:e}){let t=s(),{user:n,verify:r}=k(),[i,o]=(0,U.useState)(!0);return(0,U.useEffect)(()=>{let e=!1;return r().then(()=>{e||o(!1)}),()=>{e=!0}},[r]),i?(0,G.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,minHeight:`50vh`,fontFamily:`system-ui`},children:(0,G.jsx)(`div`,{children:`Loading…`})}):n?!ce(n.role,null)&&!j(n.allowedPages,t.pathname)?(0,G.jsx)(a,{to:`/admin/dashboard`,replace:!0}):(0,G.jsx)(G.Fragment,{children:e}):(0,G.jsx)(a,{to:`/auth?redirect=${encodeURIComponent(t.pathname+t.search)}`,replace:!0})}function Dn({children:e}){let t=s(),{user:n,verify:r}=k(),[i,o]=(0,U.useState)(!0);return(0,U.useEffect)(()=>{let e=!1;return r().then(()=>{e||o(!1)}),()=>{e=!0}},[r]),i?(0,G.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,minHeight:`50vh`,fontFamily:`system-ui`},children:(0,G.jsx)(`div`,{children:`Loading…`})}):n?F(n.role)?(0,G.jsx)(G.Fragment,{children:e}):(0,G.jsx)(a,{to:`/admin/dashboard`,replace:!0}):(0,G.jsx)(a,{to:`/auth?redirect=${encodeURIComponent(t.pathname+t.search)}`,replace:!0})}function On({children:e}){let t=s(),{user:n}=k(),{me:r,loading:i}=Pe();return n?i?null:r?.canEnter?(0,G.jsx)(G.Fragment,{children:e}):(0,G.jsx)(a,{to:`/`,replace:!0}):(0,G.jsx)(a,{to:`/auth?redirect=${encodeURIComponent(t.pathname+t.search)}`,replace:!0})}function kn(){let{impersonating:e,user:t,impersonatorName:n,stopImpersonating:r}=k(),[i,a]=(0,U.useState)(!1),[o,s]=(0,U.useState)(null);return!e||!t?null:(0,G.jsxs)(`div`,{className:`impersonation-banner`,role:`status`,style:{background:`linear-gradient(90deg, #7c3aed 0%, #5b21b6 100%)`,color:`#f5f3ff`,padding:`0.5rem 1rem`,fontSize:`0.875rem`,display:`flex`,alignItems:`center`,justifyContent:`center`,gap:`0.75rem`,flexWrap:`wrap`,fontFamily:`system-ui, sans-serif`,zIndex:9999},children:[(0,G.jsxs)(`span`,{children:[n?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`strong`,{children:n}),` viewing as`,` `]}):`Viewing as `,(0,G.jsx)(`strong`,{children:t.name||t.email}),` (`,t.role,`)`]}),(0,G.jsx)(`button`,{type:`button`,disabled:i,onClick:()=>{s(null),a(!0),r().catch(e=>{s(e instanceof Error?e.message:`Could not stop`),a(!1)})},style:{background:`#fff`,color:`#5b21b6`,border:`none`,borderRadius:`6px`,padding:`0.35rem 0.75rem`,fontWeight:600,cursor:i?`wait`:`pointer`},children:i?`Stopping…`:`Stop impersonating`}),o&&(0,G.jsx)(`span`,{style:{color:`#fecaca`},children:o})]})}var An={BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_API_URL:`https://api.thursday.com`,VITE_CDN_BASE_URL:`https://api.thursday.com`,VITE_HELP_CENTER_URL:`/host-help/en`,VITE_KLAVIYO_PUBLIC_KEY:``,VITE_STRIPE_PUBLISHABLE_KEY:`pk_live_51KGMDfLVDjf8WeA7J7IyQ0CxA4INCuESQS75GPd01RA7GPbsUa4RDvGsi6MFICv9aNJYBSOvK40ibgQHt6urjGEV00J3G006qQ`},jn=An.VITE_TRIPS_EXTERNAL_URL?.replace(/\/$/,``)||`https://www.getthursday.com`,Mn=An.VITE_CART_EXTERNAL_URL?.replace(/\/$/,``)||`https://www.getthursday.com/cart`;function Nn(e){return e===`/trips`||e===`/homepage-trips`?`${jn}/homepage-trips`:e.startsWith(`/thursday-trips/`)?`${jn}${e}`:`${jn}/homepage-trips`}function Pn(e){return`${Mn}${e===`/cart/confirmation`?`/confirmation`:``}`}function Fn({mode:e,children:t}){let n=s(),{loaded:r,tripsInPlatform:i,cartInPlatform:a}=B(),o=r&&(e===`trips`?!i:!a),c=e===`trips`?Nn(n.pathname):Pn(n.pathname);return(0,U.useEffect)(()=>{o&&c&&(window.location.href=c)},[o,c]),o?(0,G.jsx)(`div`,{className:`loading-spinner`,children:(0,G.jsx)(`div`,{className:`spinner`})}):(0,G.jsx)(G.Fragment,{children:t})}function In(){let e=_()[`*`]??``,{search:t,hash:n}=s();return(0,G.jsx)(a,{to:`${e?`/admin/thursday-city/${e}`:`/admin/thursday-city`}${t}${n}`,replace:!0})}var Ln=r()(ye(e=>({sidebarOpen:!1,setSidebarOpen:t=>e({sidebarOpen:t}),toggleSidebar:()=>e(e=>({sidebarOpen:!e.sidebarOpen}
2)),sidebarMode:`auto`,setSidebarMode:t=>e(e=>({sidebarMode:t,sidebarOpen:t===`expanded`?!0:t===`collapsed`?!1:e.sidebarOpen}))}),{name:`hammer-navigation`,partialize:e=>({sidebarMode:e.sidebarMode})})),Rn={SUPER_ADMIN:`Super admin`,ADMIN:`Admin`,HOST:`Host`,REPS:`Rep`,PARTNER:`Partner`,USER:`User`};function zn(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`line`,{x1:`4`,y1:`6`,x2:`20`,y2:`6`}),(0,G.jsx)(`line`,{x1:`4`,y1:`12`,x2:`20`,y2:`12`}),(0,G.jsx)(`line`,{x1:`4`,y1:`18`,x2:`20`,y2:`18`})]})}function Bn(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`26`,height:`26`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75m0 3h.008v.008H12v-.008Z`}),(0,G.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`})]})}function Vn({userEmail:e,userName:t,userRole:n,avatarDisplayUrl:r,onLogout:i}){let a=(t?.trim()||e).charAt(0).toUpperCase(),o=t?.trim().split(/\s+/)[0]||`there`,c=Rn[n?.toUpperCase()]??n,{sidebarOpen:l,toggleSidebar:u}=Ln(),{pathname:f}=s(),p=f.startsWith(`/my-profile`);return(0,G.jsx)(`header`,{className:`admin-navbar`,role:`banner`,children:(0,G.jsxs)(`div`,{className:`admin-navbar__inner`,children:[(0,G.jsxs)(`div`,{className:`admin-navbar__start`,children:[(0,G.jsx)(`button`,{type:`button`,className:`admin-mobile-menu-btn`,onClick:u,"aria-label":`Toggle menu`,"aria-expanded":l,children:(0,G.jsx)(zn,{})}),(0,G.jsx)(d,{to:`/admin`,className:`admin-navbar__brand`,"aria-label":`Thursday Admin home`,children:`Thursday Admin`})]}),(0,G.jsxs)(`div`,{className:`admin-navbar__user`,children:[(0,G.jsx)(d,{to:`/admin/host/help-center`,className:`admin-navbar__help-link`,title:`Help Center`,"aria-label":`Help Center`,children:(0,G.jsx)(Bn,{})}),(0,G.jsxs)(`div`,{className:`language-dropdown w-dropdown admin-navbar__account-dropdown`,children:[(0,G.jsx)(`div`,{className:`language-toggle w-dropdown-toggle`,children:(0,G.jsx)(`button`,{type:`button`,className:`admin-navbar__account-trigger${p?` admin-navbar__account-trigger--active`:``}`,"aria-haspopup":`menu`,"aria-label":`Account menu`,title:e,children:r?(0,G.jsx)(`img`,{src:r,alt:``,className:`admin-navbar__account-trigger-img`}):(0,G.jsx)(`span`,{className:`admin-navbar__account-trigger-initial`,"aria-hidden":!0,children:a})})}),(0,G.jsxs)(`nav`,{className:`language-list-2 w-dropdown-list`,"aria-label":`Account`,children:[(0,G.jsxs)(`div`,{className:`acct-menu-header`,children:[(0,G.jsxs)(`div`,{className:`acct-menu-greet`,children:[(0,G.jsxs)(`span`,{className:`acct-menu-name`,children:[`Hey `,o,` 👋`]}),c?(0,G.jsx)(`span`,{className:`acct-menu-role`,children:c}):null]}),(0,G.jsx)(`div`,{className:`acct-menu-email`,children:e})]}),(0,G.jsx)(`div`,{className:`acct-menu-sep`}),(0,G.jsx)(d,{to:`/my-profile`,className:`dropdown-link-2 w-dropdown-link acct-menu-item${p?` admin-navbar__account-menu-item--active`:``}`,"aria-current":p?`page`:void 0,children:`My profile`}),(0,G.jsx)(d,{to:`/my-tickets`,className:`dropdown-link-2 w-dropdown-link acct-menu-item`,children:`My tickets`}),(0,G.jsx)(d,{to:`/admin/host/help-center`,className:`dropdown-link-2 w-dropdown-link acct-menu-item`,children:`Help Centre`}),(0,G.jsx)(`div`,{className:`acct-menu-sep`}),(0,G.jsx)(`button`,{type:`button`,className:`dropdown-link-2 w-dropdown-link admin-navbar__menu-sign-out acct-menu-item`,onClick:()=>void i(),children:`Sign out`})]})]})]})]})})}function Hn({children:e}){let n=t(),r=s(),{user:i,verify:a,logout:o,impersonating:c,originalAdminId:l}=k(),[u,d]=(0,U.useState)(!0);if((0,U.useEffect)(()=>{let e=!1;return a().then(()=>{e||d(!1)}),()=>{e=!0}},[a]),(0,U.useEffect)(()=>{!u&&i&&!P(i.role,c,l)&&n(`/`,{replace:!0})},[u,i,c,l,n]),u)return(0,G.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,minHeight:`100vh`,fontFamily:`system-ui`,background:`#0f172a`,color:`#94a3b8`},children:(0,G.jsx)(`div`,{children:`Loading…`})});if(!i)return n(`/auth?redirect=${encodeURIComponent(r.pathname+r.search)}`,{replace:!0}),null;if(!P(i.role,c,l))return null;let f=async()=>{await o(),n(`/auth`,{replace:!0})},p=i.updatedAt??null,m=xe(i.avatarFileName??null,null,p)??(i.avatarUrl?.trim()?Se(i.avatarUrl.trim(),p):null);return(0,G.jsxs)(`div`,{className:`admin-gate-children`,children:[(0,G.jsx)(Vn,{userEmail:i.email,userName:i.name,userRole:i.role,avatarDisplayUrl:m,onLogout:f}),e]})}function Un({allowedRoles:e,children:t,fallback:n}){let{user:r}=k(),i=r?.role?.toLowerCase()??``;return i===`super_admin`||e.map(e=>e.toLowerCase()).includes(i)?(0,G.jsx)(G.Fragment,{children:t}):(0,G.jsx)(G.Fragment,{children:n??(0,G.jsxs)(`div`,{style:{padding:`2rem`,textAlign:`center`,color:`#94a3b8`},children:[(0,G.jsx)(`h2`,{style:{marginBottom:`0.5rem`},children:`Access required`}),(0,G.jsx)(`p`,{children:`You don't have permission to view this page.`})]})})}function Wn(e){he({eventName:`admin.theme_set`,flowName:`admin_ui`,stepName:`theme_change`,stepIndex:0,properties:{theme:e}})}var Gn=r()(ye(e=>({theme:`dark`,setTheme:t=>{e({theme:t}),Wn(t)},toggleTheme:()=>e(e=>{let t=e.theme===`dark`?`light`:`dark`;return Wn(t),{theme:t}})}),{name:`hammer-admin-theme`,partialize:e=>({theme:e.theme})})),Kn=r()(ye(e=>({favorites:[],toggle:t=>e(e=>({favorites:e.favorites.includes(t)?e.favorites.filter(e=>e!==t):[...e.favorites,t]}))}),{name:`hammer-admin-favorites`,partialize:e=>({favorites:e.favorites})}));function qn(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,
2width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M18 21a8 8 0 0 0-16 0`}),(0,G.jsx)(`circle`,{cx:`10`,cy:`8`,r:`5`}),(0,G.jsx)(`path`,{d:`M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3`})]})}function Jn(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z`}),(0,G.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3`})]})}function Yn(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`18`,rx:`2`,ry:`2`}),(0,G.jsx)(`line`,{x1:`16`,y1:`2`,x2:`16`,y2:`6`}),(0,G.jsx)(`line`,{x1:`8`,y1:`2`,x2:`8`,y2:`6`}),(0,G.jsx)(`line`,{x1:`3`,y1:`10`,x2:`21`,y2:`10`})]})}function Xn(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z`}),(0,G.jsx)(`circle`,{cx:`12`,cy:`10`,r:`3`})]})}function Zn(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`circle`,{cx:`12`,cy:`10`,r:`3`}),(0,G.jsx)(`path`,{d:`M12 21.7C17.3 17 20 13 20 10a8 8 0 1 0-16 0c0 3 2.7 6.9 8 11.7z`})]})}function Qn(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`}),(0,G.jsx)(`polyline`,{points:`9 22 9 12 15 12 15 22`})]})}function $n(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`}),(0,G.jsx)(`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`})]})}function er(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`}),(0,G.jsx)(`polyline`,{points:`15 3 21 3 21 9`}),(0,G.jsx)(`line`,{x1:`10`,y1:`14`,x2:`21`,y2:`3`})]})}function tr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M3 3v18h18`}),(0,G.jsx)(`path`,{d:`M18 9l-5-5-4 4-3-3`})]})}function nr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,G.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`12`}),(0,G.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12.01`,y2:`16`})]})}function rr(){return(0,G.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,
2width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:(0,G.jsx)(`path`,{d:`M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z`})})}function ir(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`}),(0,G.jsx)(`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`}),(0,G.jsx)(`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`}),(0,G.jsx)(`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`}),(0,G.jsx)(`path`,{d:`M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z`})]})}function ar(){return(0,G.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:(0,G.jsx)(`path`,{d:`M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z`})})}function or(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`rect`,{x:`3`,y:`3`,width:`7`,height:`7`,rx:`1`}),(0,G.jsx)(`rect`,{x:`14`,y:`3`,width:`7`,height:`7`,rx:`1`}),(0,G.jsx)(`rect`,{x:`3`,y:`14`,width:`7`,height:`7`,rx:`1`}),(0,G.jsx)(`rect`,{x:`14`,y:`14`,width:`7`,height:`7`,rx:`1`})]})}function sr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M3 3v18h18`}),(0,G.jsx)(`path`,{d:`M18 17V9`}),(0,G.jsx)(`path`,{d:`M13 17V5`}),(0,G.jsx)(`path`,{d:`M8 17v-3`})]})}function cr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`rect`,{width:`5`,height:`5`,x:`3`,y:`3`,rx:`1`}),(0,G.jsx)(`rect`,{width:`5`,height:`5`,x:`16`,y:`3`,rx:`1`}),(0,G.jsx)(`rect`,{width:`5`,height:`5`,x:`3`,y:`16`,rx:`1`}),(0,G.jsx)(`path`,{d:`M21 16h-3a2 2 0 0 0-2 2v3`}),(0,G.jsx)(`path`,{d:`M21 21v.01`}),(0,G.jsx)(`path`,{d:`M12 7v3a2 2 0 0 1-2 2H7`}),(0,G.jsx)(`path`,{d:`M3 12h.01`})]})}function lr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M12 2H2v10l9.29 9.29c.94.94 2.48.94 3.42 0l6.58-6.58c.94-.94.94-2.48 0-3.42L12 2Z`}),(0,G.jsx)(`path`,{d:`M7 7h.01`})]})}function ur(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`polygon`,{points:`12 2 2 7 12 12 22 7 12 2`}),(0,G.jsx)(`polyline`,{points:`2 17 12 22 22 17`}),(0,G.jsx)(`polyline`,{points:`2 12 12 17 22 12`})]})}function dr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`}),(0,G.jsx)(`path`,{d:`M21 3v5h-5`}),(0,G.jsx)(`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`}),(0,G.jsx)(`path`,{d:`M8 16H3v5`})]})}function fr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,
2children:[(0,G.jsx)(`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`}),(0,G.jsx)(`path`,{d:`M3 3v5h5`}),(0,G.jsx)(`path`,{d:`M12 7v5l4 2`})]})}function pr(){return(0,G.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:(0,G.jsx)(`path`,{d:`M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z`})})}function mr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M4 19.5A2.5 2.5 0 0 1 6.5 17H20`}),(0,G.jsx)(`path`,{d:`M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z`}),(0,G.jsx)(`path`,{d:`M12 6h6`}),(0,G.jsx)(`path`,{d:`M12 10h6`}),(0,G.jsx)(`path`,{d:`M12 14h4`})]})}function hr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`}),(0,G.jsx)(`rect`,{x:`8`,y:`2`,width:`8`,height:`4`,rx:`1`,ry:`1`}),(0,G.jsx)(`path`,{d:`M9 14h6`}),(0,G.jsx)(`path`,{d:`M9 10h6`}),(0,G.jsx)(`path`,{d:`M9 18h4`})]})}function gr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`circle`,{cx:`9`,cy:`21`,r:`1`}),(0,G.jsx)(`circle`,{cx:`20`,cy:`21`,r:`1`}),(0,G.jsx)(`path`,{d:`M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 1.94-1.51L23 6H6`})]})}function _r(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2`}),(0,G.jsx)(`circle`,{cx:`12`,cy:`7`,r:`4`})]})}function vr(){return(0,G.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:(0,G.jsx)(`polyline`,{points:`6 9 12 15 18 9`})})}function yr(){return(0,G.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:(0,G.jsx)(`path`,{d:`M22 12h-4l-3 9L9 3l-3 9H2`})})}function br(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6`}),(0,G.jsx)(`path`,{d:`M18.09 10.37A6 6 0 1 1 10.34 18`}),(0,G.jsx)(`path`,{d:`M7 6h1v4`}),(0,G.jsx)(`path`,{d:`m16.71 13.88.7.71-2.82 2.82`})]})}function xr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z`}),(0,G.jsx)(`path`,{d:`M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8`}),(0,G.jsx)(`path`,{d:`M12 17.5v-11`})]})}function Sr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`line`,{x1:`19`,y1:`5`,x2:`5`,y2:`19`}),(0,G.jsx)(`circle`,{cx:`6.5`,cy:`6.5`,r:`2.5`}),(0,G.jsx)(`circle`,{cx:`17.5`,cy:`17.5`,r:`2.5`})]})}function Cr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,
2width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M12 22v-5`}),(0,G.jsx)(`path`,{d:`M9 8V2`}),(0,G.jsx)(`path`,{d:`M15 8V2`}),(0,G.jsx)(`path`,{d:`M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z`})]})}function wr(){return(0,G.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:(0,G.jsx)(`path`,{d:`M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3M1 14h6M9 8h6M17 16h6`})})}function Tr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z`}),(0,G.jsx)(`path`,{d:`M18.5 16.5l.7 1.8 1.8.7-1.8.7-.7 1.8-.7-1.8-1.8-.7 1.8-.7z`})]})}function Er(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M3 21h18M5 21V5a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v16M15 21V11h2a2 2 0 0 1 2 2v8`}),(0,G.jsx)(`path`,{d:`M9 7h2M9 11h2M9 15h2`})]})}function Dr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`circle`,{cx:`7.5`,cy:`15.5`,r:`4.5`}),(0,G.jsx)(`path`,{d:`m10.7 12.3 8.8-8.8M17 6l3 3M14 9l3 3`})]})}function Or(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`rect`,{width:`18`,height:`7`,x:`3`,y:`3`,rx:`2`}),(0,G.jsx)(`rect`,{width:`18`,height:`7`,x:`3`,y:`14`,rx:`2`}),(0,G.jsx)(`path`,{d:`M7 6.5h.01M7 17.5h.01`})]})}function kr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z`}),(0,G.jsx)(`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`}),(0,G.jsx)(`path`,{d:`M8 18v-2M12 18v-4M16 18v-6`})]})}function Ar(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`circle`,{cx:`11`,cy:`11`,r:`7`}),(0,G.jsx)(`path`,{d:`m21 21-4.35-4.35`})]})}function jr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`}),(0,G.jsx)(`circle`,{cx:`12`,cy:`10`,r:`3`})]})}function Mr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M8 2v4M16 2v4`}),(0,G.jsx)(`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`}),(0,G.jsx)(`path`,{d:`M3 10h18`})]})}function Nr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`}),(0,G.jsx)(`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`}),(0,G.jsx)(`path`,{d:`M8 11h8M8 15h5`})]})}function Pr(){return(0,G.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,
2width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:(0,G.jsx)(`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`})})}function Fr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`line`,{x1:`12`,x2:`12`,y1:`20`,y2:`10`}),(0,G.jsx)(`line`,{x1:`18`,x2:`18`,y1:`20`,y2:`4`}),(0,G.jsx)(`line`,{x1:`6`,x2:`6`,y1:`20`,y2:`16`})]})}function Ir(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`}),(0,G.jsx)(`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`})]})}function Lr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`}),(0,G.jsx)(`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`})]})}function Rr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`}),(0,G.jsx)(`path`,{d:`M2 12.18a1 1 0 0 0 .6.91l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 .58-.92`}),(0,G.jsx)(`path`,{d:`M2 17.18a1 1 0 0 0 .6.91l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 .58-.92`})]})}function zr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M4 22V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v18`}),(0,G.jsx)(`path`,{d:`M20 22H6a2 2 0 0 1 0-4h14`}),(0,G.jsx)(`path`,{d:`M8 7h8M8 11h5`})]})}function Br(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`}),(0,G.jsx)(`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`}),(0,G.jsx)(`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`}),(0,G.jsx)(`path`,{d:`M14 14h3M20 14v3M14 20h3M20 20v1`})]})}function Vr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M21 21H5a2 2 0 0 1-2-2V4a1 1 0 0 0-1-1`}),(0,G.jsx)(`path`,{d:`M7 15.2l3.5-4 3 2.5L18 8`})]})}function Hr(){return(0,G.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:(0,G.jsx)(`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`})})}function Ur(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`path`,{d:`M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2`}),(0,G.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3`})]})}function Wr(){return(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,
2width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:[(0,G.jsx)(`circle`,{cx:`12`,cy:`8`,r:`5`}),(0,G.jsx)(`path`,{d:`M20 21a8 8 0 0 0-16 0`})]})}function Gr(){return(0,G.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:(0,G.jsx)(`path`,{d:`M22 17a2 2 0 0 1-2 2H6l-4 4V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`})})}var Kr={pendingCount:0,loading:!1,refetch:()=>Promise.resolve()},qr=(0,U.createContext)(void 0),Jr=6e4;function Yr({enabled:e,children:t}){let[n,r]=(0,U.useState)(0),[i,a]=(0,U.useState)(e),o=(0,U.useCallback)(async()=>{if(!e){r(0),a(!1);return}try{a(!0),r((await z(`/admin/company-updates/pending-count`)).count??0)}catch{r(0)}finally{a(!1)}},[e]);return(0,U.useEffect)(()=>{if(!e){r(0),a(!1);return}o();let t=()=>void o();window.addEventListener(`company-updates:changed`,t);let n=window.setInterval(()=>void o(),Jr);return()=>{window.removeEventListener(`company-updates:changed`,t),window.clearInterval(n)}},[e,o]),(0,G.jsx)(qr.Provider,{value:{pendingCount:n,loading:i,refetch:o},children:t})}function Xr(){return(0,U.useContext)(qr)??Kr}var Zr=`/admin/host/company-updates`,Qr={users:qn,settings:Jn,events:Yn,trips:Xn,tracking:tr,errorLog:nr,feedback:rr,studio:ir,auditHistory:fr,policies:ar,health:pr,geography:Zn,venues:Qn,email:$n,checkin:cr,dashboard:or,sales:sr,refund:dr,ticketTemplate:ur,promo:lr,bookings:hr,purchases:gr,enquiries:yr,blog:mr,orders:hr,monitoring:tr,profile:_r,coins:br,receipt:xr,percent:Sr,plug:Cr,sliders:wr,sparkle:Tr,building:Er,key:Dr,server:Or,filechart:kr,chart:Vr,message:Gr,pin:jr,calendar:Mr,layers:Rr,tag:Ir,clipboard:Nr,activity:Pr,bars:Fr,home:Lr,book:zr,qr:Br,user:Wr,gear:Ur,shield:Hr};function $r(e){let t=e.icon?Qr[e.icon]:null;return t?(0,G.jsx)(t,{}):null}var ei=[`hostOps`,`myThings`,`operations`,`catalog`,`reports`,`finance`,`people`,`system`];function ti({navItems:e,level:t}){let r=s(),{sidebarOpen:i,setSidebarOpen:a,sidebarMode:o,setSidebarMode:c}=Ln(),{pendingCount:l}=Xr(),u=Kn(e=>e.favorites),d=Kn(e=>e.toggle),f=o===`expanded`?!0:o===`collapsed`?!1:i,[p,m]=(0,U.useState)(new Set),[h,g]=(0,U.useState)(``),_=h.trim().toLowerCase();(0,U.useEffect)(()=>{window.innerWidth<=768&&o===`auto`&&a(!1)},[r.pathname,a,o]),(0,U.useEffect)(()=>{let e=()=>{window.innerWidth<=768&&Ln.getState().sidebarMode!==`auto`&&c(`auto`)};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[c]);let v=()=>a(!1),y=e=>{let[t,n=``]=e.split(`?`);return{path:t,search:new URLSearchParams(n)}},b=e=>
2{for(let[t,n]of e)if(r.search===``||new URLSearchParams(r.search).get(t)!==n)return!1;return!0},x=e=>{let{path:t,search:n}=y(e);return t===r.pathname||r.pathname.startsWith(t+`/`)?b(n):!1},S=e=>{let{path:t,search:n}=y(e);return r.pathname===t&&b(n)},ee=(0,U.useMemo)(()=>{let t=null,n=-1;for(let r of e){if(r.heading)continue;let e=[r.path,...(r.subItems??[]).map(e=>e.path),...r.matchPaths??[]];for(let i of e){if(!x(i))continue;let{path:e}=y(i);e.length>n&&(n=e.length,t=r.path)}}return t},[e,r.pathname,r.search]),C=(0,U.useMemo)(()=>{let t=null,n=-1;for(let r of e){if(r.heading||!r.subItems?.length)continue;let e=[r.path,...r.subItems.map(e=>e.path),...r.matchPaths??[]];for(let i of e){if(!x(i))continue;let{path:e}=y(i);e.length>n&&(n=e.length,t=r.path)}}return t},[e,r.pathname,r.search]);(0,U.useEffect)(()=>{C&&m(e=>{if(e.has(C))return e;let t=new Set(e);return t.add(C),t})},[C]);let te=e=>{m(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},w=(0,U.useMemo)(()=>{if(t!==`main`)return null;let n=[];for(let t of ei){let r=e.filter(e=>(e.section??`system`)===t);r.some(e=>!e.heading)&&n.push({section:t,items:r})}return n},[e,t]),T=(0,U.useMemo)(()=>{let t=new Map;for(let n of e)if(!n.heading)if(n.subItems?.length)for(let e of n.subItems)t.set(e.path,e);else t.set(n.path,n);return t},[e]),E=(0,U.useMemo)(()=>u.filter(e=>T.has(e)),[u,T]),D=e=>e.heading?!1:e.label.toLowerCase().includes(_)?!0:(e.subItems??[]).some(e=>e.label.toLowerCase().includes(_)),O=e=>{let t=u.includes(e);return(0,G.jsx)(`span`,{className:`nav-fav-star`,role:`button`,tabIndex:0,"data-fav":t,"aria-label":t?`Remove from favourites`:`Add to favourites`,title:t?`Remove from favourites`:`Add to favourites`,onClick:t=>{t.preventDefault(),t.stopPropagation(),d(e)},onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),t.stopPropagation(),d(e))},children:(0,G.jsx)(`svg`,{width:`15`,height:`15`,viewBox:`0 0 24 24`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,fill:t?`currentColor`:`none`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{d:`M11.48 3.5a.56.56 0 0 1 1.04 0l2.13 4.72 5.15.53a.56.56 0 0 1 .32.98l-3.86 3.44 1.1 5.05a.56.56 0 0 1-.83.6L12 16.68l-4.53 2.64a.56.56 0 0 1-.83-.6l1.1-5.05-3.8
26-3.44a.56.56 0 0 1 .32-.98l5.15-.53z`})})})};function k(e){if(e.heading)return(0,G.jsx)(`div`,{className:`nav-subsection-heading`,role:`presentation`,children:e.heading},e.path);let t=e.subItems&&e.subItems.length>0,r=p.has(e.path),i=t?ee===e.path:x(e.path);if(t)return(0,G.jsxs)(`div`,{className:`nav-item-group`,children:[(0,G.jsxs)(`button`,{className:`nav-item nav-item-group-header ${i?`active`:``}`,onClick:()=>te(e.path),"aria-expanded":r,title:e.label,children:[(0,G.jsx)(`span`,{className:`nav-item-icon`,children:$r(e)}),(0,G.jsx)(`span`,{className:`nav-item-text`,children:e.label}),(0,G.jsx)(`span`,{className:`nav-item-chevron ${r?`expanded`:``}`,children:(0,G.jsx)(vr,{})})]}),(0,G.jsx)(`div`,{className:`nav-item-children ${r?`expanded`:``}`,children:e.subItems.map((t,r)=>{let i=r>0?e.subItems[r-1].group:void 0;return(0,G.jsxs)(U.Fragment,{children:[t.group!==void 0&&t.group!==i&&(0,G.jsx)(`div`,{className:`nav-item-sub-group-label`,children:t.group}),(0,G.jsxs)(n,{to:t.path,className:()=>`nav-item nav-item-sub ${S(t.path)?`active`:``}`,title:t.label,end:!0,children:[(0,G.jsx)(`span`,{className:`nav-item-text`,children:t.label}),O(t.path)]})]},t.path)})})]},e.path);let a=e.path===Zr&&l>0;return(0,G.jsxs)(n,{to:e.path,className:()=>`nav-item ${S(e.path)||(e.matchPaths?.some(x)??!1)?`active`:``}`,title:e.label,end:e.path===`/admin/dashboard`||e.path.endsWith(`/dashboard`),children:[(0,G.jsx)(`span`,{className:`nav-item-icon`,children:$r(e)}),(0,G.jsx)(`span`,{className:`nav-item-text`,children:e.label}),a&&(0,G.jsx)(`span`,{className:`nav-item-badge`,"aria-label":`${l} to review`,title:`${l} to review`,style:{marginLeft:`auto`,marginRight:`1.125rem`,minWidth:18,height:18,padding:`0 5px`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,borderRadius:9,fontSize:11,fontWeight:700,lineHeight:1,color:`#fff`,background:`var(--object--accent-1, #e8a0a8)`},children:l}),O(e.path)]},e.path)}return(0,G.jsxs)(`aside`,{id:`main-navigation`,className:`sidebar ${f?`open`:``} sidebar-mode-${o}`,"data-sidebar-mode":o,tabIndex:-1,children:[(0,G.jsxs)(`header`,{className:`sidebar-header`,children:[(0,G.jsx)(n,{to:`/admin`,className:`sidebar-header-link`,children:(0,G.jsx)(`span`,{className:`sidebar-header-title`,children:`Thursday Admin`})}),(0,G.jsx)(`button`,{type:`button`,className:`sidebar-mobile-close`,onClick:v,"aria-label":`Close menu`,title:`Close menu`,children:(0,G.jsx)(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{d:`M18 6 6 18M6 6l12 12`})})})]}),(0,G.jsxs)(`nav`,{className:`sidebar-nav`,children:[t===`main`&&(0,G.jsxs)(`div`,{className:`hn-search-wrap`,children:[(0,G.jsxs)(`div`,{className:`hn-search`,"data-active":_?`true`:`false`,children:[(0,G.jsx)(`span`,{className:`hn-search-ico`,children:(0,G.jsx)(Ar,{})}),(0,G.jsx)(`input`,{className:`hn-search-input`,type:`text`,placeholder:`Filter menu…`,value:h,onChange:e=>g(e.target.value),"aria-label":`Filter navigation`,autoComplete:`off`,spellCheck:!1}),h&&(0,G.jsx)(`button`,{type:`button`,className:`hn-search-clear`,onClick:()=>g(``),"aria-label":`Clear filter`,title:`Clear filter`,children:(0,G.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{d:`M18 6 6 18M6 6l12 12`})})})]}),(0,G.jsx)(`button`,{type:`button`,className:`sidebar-pin-btn`,"data-pinned":o===`expanded`,onClick:()=>c(o===`expanded`?`auto`:`expanded`),"aria-pressed":o===`expanded`,"aria-label":o===`expanded`?`Unpin sidebar`:`Pin sidebar open`,title:o===`expanded`?`Unpin sidebar`:`Pin sidebar open`,children:(0,G.jsxs)(`svg`,{width:`17`,height:`17`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,G.jsx)(`path`,{d:`M12 17v5`}),(0,G.jsx)(`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7
2a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`})]})})]}),t===`main`&&!_&&E.length>0&&(0,G.jsxs)(`div`,{className:`sidebar-nav-group`,role:`group`,"aria-label":`Favourites`,children:[(0,G.jsx)(`div`,{className:`sidebar-nav-section-title`,children:`Favourites`}),E.map(e=>{let t=T.get(e);return(0,G.jsxs)(n,{to:e,className:()=>`nav-item ${S(e)||(t.matchPaths?.some(x)??!1)?`active`:``}`,title:t.label,end:e===`/admin/dashboard`||e.endsWith(`/dashboard`),children:[(0,G.jsx)(`span`,{className:`nav-item-icon`,children:$r(t)}),(0,G.jsx)(`span`,{className:`nav-item-text`,children:t.label}),O(e)]},`fav-${e}`)})]}),_?e.filter(D).map(e=>k(e)):w?w.map(({section:e,items:t})=>{let n=t.length===1&&(t[0].subItems?.length??0)>0;return(0,G.jsxs)(`div`,{className:`sidebar-nav-group`,role:`group`,"aria-label":Le[e],children:[!n&&(0,G.jsx)(`div`,{className:`sidebar-nav-section-title`,id:`sidebar-section-${e}`,children:Le[e]}),t.map(e=>k(e))]},e)}):e.map(e=>k(e)),(0,G.jsx)(`div`,{className:`sidebar-nav-divider`,"aria-hidden":!0}),(0,G.jsx)(ni,{}),(0,G.jsxs)(`a`,{href:`/`,className:`nav-item`,title:`View site`,target:`_blank`,rel:`noopener noreferrer`,children:[(0,G.jsx)(`span`,{className:`nav-item-icon`,children:(0,G.jsx)(er,{})}),(0,G.jsx)(`span`,{className:`nav-item-text`,children:`View site`})]})]})]})}function ni(){let{theme:e,toggleTheme:t}=Gn(),n=e===`dark`;return(0,G.jsxs)(`button`,{type:`button`,className:`nav-item`,title:n?`Switch to light mode`:`Switch to dark mode`,onClick:t,children:[(0,G.jsx)(`span`,{className:`nav-item-icon`,children:n?(0,G.jsxs)(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,G.jsx)(`circle`,{cx:`12`,cy:`12`,r:`5`}),(0,G.jsx)(`line`,{x1:`12`,y1:`1`,x2:`12`,y2:`3`}),(0,G.jsx)(`line`,{x1:`12`,y1:`21`,x2:`12`,y2:`23`}),(0,G.jsx)(`line`,{x1:`4.22`,y1:`4.22`,x2:`5.64`,y2:`5.64`}),(0,G.jsx)(`line`,{x1:`18.36`,y1:`18.36`,x2:`19.78`,y2:`19.78`}),(0,G.jsx)(`line`,{x1:`1`,y1:`12`,x2:`3`,y2:`12`}),(0,G.jsx)(`line`,{x1:`21`,y1:`12`,x2:`23`,y2:`12`}),(0,G.jsx)(`line`,{x1:`4.22`,y1:`19.78`,x2:`5.64`,y2:`18.36`}),(0,G.jsx)(`line`,{x1:`18.36`,y1:`5.64`,x2:`19.78`,y2:`4.22`})]}):(0,G.jsx)(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,G.jsx)(`path`,{d:`M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z`})})}),(0,G.jsx)(`span`,{className:`nav-item-text`,children:n?`Light mode`:`Dark mode`})]})}function ri(e){return e.filter(e=>!e.heading)}function ii(){let{sidebarOpen:e,setSidebarOpen:t,sidebarMode:n}=Ln(),[r,i]=(0,U.useState)(!1),a=n===`expanded`?!0:n===`collapsed`?!1:e;return(0,U.useEffect)(()=>{let e=()=>i(window.innerWidth<=768);return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),r?(0,G.jsx)(`div`,{className:`sidebar-overlay ${a?`open`:``}`,onClick:()=>{t(!1)},"aria-hidden":`true`}):null}var ai=new Set([`add`,`past`,`refund-requests`]);function oi(e,t){if(t&&!ai.has(t))return t;let n=e.match(/\/admin\/pages\/[^/]+\/events\/([^/]+)/)?.[1];if(n&&!ai.has(n))return n}function si(){let e=s(),t=_(),n=e.pathname;return(0,U.useMemo)(()=>{let e=n.match(/\/admin\/pages\/([^/]+)/),r=t.cityId??e?.[1],i=oi(n,t.eventId),a=[];return r&&(a.push({label:`Pages`,path:`/admin/thursday-city`}),a.push({label:`City`,path:`/admin/thursday-city/${encodeURIComponent(r)}`})),r&&i&&a.push({label:`Event`,path:`/admin/thursday-city/${encodeURIComponent(r)}/events/${i}`}),{level:`main`,cityId:r,eventId:i,menuItems:ze,breadcrumbs:a}},[n,t.cityId,t.eventId])}function ci(){return k(e=>e.user?.newHostExperience===!0)}function li({open:e,onClose:n,navItems:r}){let i=t(),[a,o]=(0,U.useState)(``),[s,c]=(0,U.useState)(0),l=(0,U.useRef)(null),u=(0,U.useMemo)(()=>{let e=a.trim().toLowerCase();return e?r.filter(t=>t.label.toLowerCase().includes(e)||t.path.toLowerCase().includes(e)):r},[r,a]);(0,U.useEffect)(()=>{if(e){o(``),c(0),requestAnimationFrame(()=>l.current?.focus());let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e}}},[e]),(0,U.useEffect)(()=>{c(e=>u.length===0?0:Math.min(e,u.length-1))},[u.length,a]);let d=(0,U.useCallback)(e=>{i(e.path),n()},[i,n]);return(0,U.useEffect)(()=>
2{if(!e)return;let t=e=>{if(e.key===`Escape`){e.preventDefault(),n();return}e.key===`ArrowDown`&&(e.preventDefault(),c(e=>u.length===0?0:(e+1)%u.length)),e.key===`ArrowUp`&&(e.preventDefault(),c(e=>u.length===0?0:(e-1+u.length)%u.length)),e.key===`Enter`&&u[s]&&(e.preventDefault(),d(u[s]))};return document.addEventListener(`keydown`,t),()=>document.removeEventListener(`keydown`,t)},[e,u,s,d,n]),e?(0,G.jsx)(`div`,{className:`admin-command-palette-backdrop`,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`admin-command-palette-title`,onMouseDown:e=>{e.target===e.currentTarget&&n()},children:(0,G.jsxs)(`div`,{className:`admin-command-palette`,onMouseDown:e=>e.stopPropagation(),children:[(0,G.jsx)(`p`,{id:`admin-command-palette-title`,className:`admin-command-palette-label`,children:`Go to page`}),(0,G.jsx)(`input`,{ref:l,type:`search`,className:`admin-command-palette-input`,placeholder:`Search navigation…`,value:a,onChange:e=>o(e.target.value),autoComplete:`off`,autoCorrect:`off`,spellCheck:!1}),(0,G.jsx)(`ul`,{className:`admin-command-palette-list`,role:`listbox`,children:u.length===0?(0,G.jsx)(`li`,{className:`admin-command-palette-empty`,children:`No matches`}):u.map((e,t)=>(0,G.jsx)(`li`,{role:`option`,"aria-selected":t===s,children:(0,G.jsxs)(`button`,{type:`button`,className:`admin-command-palette-item${t===s?` is-active`:``}`,onMouseEnter:()=>c(t),onClick:()=>d(e),children:[(0,G.jsx)(`span`,{className:`admin-command-palette-item-label`,children:e.label}),(0,G.jsx)(`span`,{className:`admin-command-palette-item-path`,children:e.path})]})},e.path))}),(0,G.jsxs)(`p`,{className:`admin-command-palette-hint`,children:[(0,G.jsx)(`kbd`,{className:`admin-kbd`,children:`↑`}),(0,G.jsx)(`kbd`,{className:`admin-kbd`,children:`↓`}),` to move · `,(0,G.jsx)(`kbd`,{className:`admin-kbd`,children:`Enter`}),` to open · `,(0,G.jsx)(`kbd`,{className:`admin-kbd`,children:`Esc`}),` to close`]})]})}):null}var ui=5e3,Z=20;function di(){let{isSuperAdmin:e}=Ve(),t=s(),n=(0,U.useId)(),r=(0,U.useId)(),[i,a]=(0,U.useState)(!1),[o,c]=(0,U.useState)(``),[l,u]=(0,U.useState)(!1),[d,f]=(0,U.useState)(!1),[p,m]=(0,U.useState)(null),h=`${t.pathname}${t.search}`||`/`,g=typeof window<`u`?window.location.href:h;if((0,U.useEffect)(()=>{if(!i)return;let e=e=>{e.key===`Escape`&&!l&&a(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[i,l]),(0,U.useEffect)(()=>{i||(c(``),m(null),f(!1))},[i]),!e)return null;let _=o.trim(),v=_.length>=Z;return(0,G.jsxs)(`div`,{className:`admin-bug-report`,children:[i&&(0,G.jsxs)(`section`,{className:`admin-bug-report__panel`,role:`dialog`,"aria-modal":`false`,"aria-labelledby":n,"aria-describedby":r,children:[(0,G.jsx)(`div`,{className:`admin-bug-report__panel-header`,children:(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`h2`,{id:n,className:`admin-bug-report__panel-title`,children:`Report an issue`}),(0,G.jsx)(`p`,{id:r,className:`admin-bug-report__panel-lede`,children:`Describe any bugs, confusing behavior, or broken flows. Include steps, what you expected, and what happened instead. The current page URL is attached automatically.`})]})}),(0,G.jsx)(`div`,{className:`admin-bug-report__panel-body`,children:d?(0,G.jsx)(`p`,{className:`admin-bug-report__success`,children:`Thanks — your report was saved.`}):(0,G.jsxs)(`form`,{onSubmit:async e=>{if(e.preventDefault(),!v){m(`Please add at least ${Z} characters so we can reproduce the issue.`);return}m(null),u(!0);try{let e=[`[Admin bug / issue report]`,`Full URL: ${g}`,``,_].join(`
3`);await R(`/feedback`,{page:h.slice(0,512),rating:``,text:e.slice(0,ui)}),f(!0),setTimeout(()=>{a(!1)},1600)}catch(e){m(e instanceof Error?e.message:`Failed to send report`)}finally{u(!1)}},children:[(0,G.jsxs)(`div`,{className:`admin-bug-report__url-block`,children:[(0,G.jsx)(`label`,{htmlFor:`admin-bug-report-page`,children:`Page`}),(0,G.jsx)(`p`,{id:`admin-bug-report-page`,className:`admin-bug-report__url-value`,children:g})]}),(0,G.jsxs)(`div`,{className:`admin-bug-report__desc`,children:[(0,G.jsx)(`label`,{htmlFor:`admin-bug-report-desc`,children:`What went wrong?`}),(0,G.jsx)(`textarea`,{id:`admin-bug-report-desc`,className:`admin-bug-report__textarea`,value:o,onChange:e=>c(e.target.value.slice(0,ui)),maxLength:ui,rows:6,placeholder:`Be as specific as you can: which screen, what you clicked, error messages, browser, and anything else that would help us fix it.`,disabled:l}),(0,G.jsxs)(`div`,{className:`admin-bug-report__char-count`,children:[o.length,`/`,ui,_.length>0&&_.length<Z&&(0,G.jsxs)(G.Fragment,{children:[` · at least `,Z,` characters`]})]})]}),p&&(0,G.jsx)(`p`,{className:`admin-bug-report__error`,role:`alert`,children:p}),(0,G.jsxs)(`div`,{className:`admin-bug-report__actions`,children:[(0,G.jsx)(`button`,{type:`button`,className:`admin-bug-report__btn admin-bug-report__btn--secondary`,onClick:()=>!l&&a(!1),disabled:l,children:`Cancel`}),(0,G.jsx)(`button`,{type:`submit`,className:`admin-bug-report__btn admin-bug-report__btn--primary`,disabled:l||!v,children:l?`Sending…`:`Send report`})]})]})})]}),(0,G.jsx)(`button`,{type:`button`,className:`admin-bug-report__fab ${i?`admin-bug-report__fab--open`:``}`,onClick:()=>a(e=>!e),"aria-label":i?`Close bug report`:`Report an admin bug or issue`,"aria-expanded":i,title:i?`Close`:`Report issue`,children:i?(0,G.jsx)(`span`,{"aria-hidden":!0,
3children:`×`}):(0,G.jsx)(`span`,{"aria-hidden":!0,children:`🐛`})})]})}var fi=`/admin/host/company-updates`;function pi({enabled:e}){let{pendingCount:n}=Xr(),r=t();return!e||n<1?null:(0,G.jsxs)(`div`,{className:`cu-review-banner`,role:`status`,children:[(0,G.jsxs)(`span`,{className:`cu-review-banner__message`,children:[(0,G.jsx)(c,{className:`cu-review-banner__icon`,size:18,"aria-hidden":`true`}),(0,G.jsxs)(`span`,{children:[`You have `,(0,G.jsx)(`strong`,{children:n}),` `,n===1?`company update`:`company updates`,` to review and acknowledge.`]})]}),(0,G.jsx)(`button`,{type:`button`,className:`cu-review-banner__action`,onClick:()=>void r(fi),children:`Review`})]})}var mi=`admin-route`;function hi(){let[e,n]=(0,U.useState)(!1),r=k(e=>e.user),i=t(),a=s(),o=si(),{trackingLinksEnabled:c,announceEnabled:l,cityReferralsAdminEnabled:u,eventsLibraryEnabled:d,hostAdSpendEnabled:f,eventTagsEnabled:p}=B(),m=ci(),{me:h,loading:g}=Pe(),_=r?.allowedPages??null,y=(0,U.useMemo)(()=>{let e=o.menuItems,t=me(r?.role,null);t||(e=e.filter(e=>!e.platformOnly||j(_,e.path))),M(r?.role)&&!t&&(e=e.filter(e=>e.path===`/studio`||N(e.path)||j(_,e.path))),!t&&!M(r?.role)&&(e=e.filter(e=>e.path===`/studio`||fe(r?.role,e.path,_))),M(r?.role)&&!t&&!m&&(e=e.filter(e=>!e.requiresNewHostExperience)),Be(r?.role,r?.hostLinked)||(e=e.filter(e=>!e.hostOnly)),t||(e=e.map(e=>{if(!e.subItems)return e;let t=e.subItems.filter(e=>!e.platformOnly);return t.length===e.subItems.length?e:{...e,subItems:t}})),M(r?.role)&&!t&&(e=e.map(e=>{if(!e.subItems)return e;let t=e.subItems.filter(e=>N(e.path)||j(_,e.path));return t.length===e.subItems.length?e:{...e,subItems:t}})),ce(r?.role,null)||(e=e.map(e=>{if(!e.superAdminOnly||!e.subItems)return e;let t=e.subItems.filter(e=>j(_,e.path)||!ue(e.path));return t.length===e.subItems.length?e:{...e,subItems:t}}).filter(e=>!e.superAdminOnly||j(_,e.path)?!0:(e.subItems?.length??0)>0));let n=pe(r?.role,r?.allowedTypes);if(n.length<de.length&&(e=e.filter(e=>e.requiredTypes?e.requiredTypes.some(e=>n.includes(e)):!0)),c||(e=e.map(e=>{if(!e.subItems)return e;let t=e.subItems.filter(e=>!e.path.endsWith(`/advertising-links`));return t.length===e.subItems.length?e:{...e,subItems:t}})),l||(e=e.filter(e=>!e.path.endsWith(`/messaging`)||e.label!==`Announce`)),u||(e=e.filter(e=>!(e.path.includes(`/thursday-city/`)&&e.path.endsWith(`/referrals`)))),f||(e=e.filter(e=>e.path!==`/admin/finance/my-ad-spend`)),d||(e=e.filter(e=>e.path!==`/admin/events-library`)),!p){let t=new Set([`/admin/growth/event-tags`]);e=e.map(e=>{if(!e.subItems)return e;let n=e.subItems.filter(e=>!t.has(e.path));return n.length===e.subItems.length?e:{...e,subItems:n}})}return M(r?.role)&&!me(r?.role,null)&&o.level===`main`&&(e=m?Re(e):ri(e)),!g&&h&&h.canEnter||(e=e.filter(e=>e.path!==`/studio`)),e},[r?.role,r?.allowedTypes,_,null,o.menuItems,o.level,c,l,u,d,f,p,m,h,g]);(0,U.useEffect)(()=>{if(!r?.role)return;let e=a.pathname,t=Be(r.role,r.hostLinked)&&N(e);if(F(r.role)&&!ce(r.role,null)&&ue(e)&&!t&&!j(r.allowedPages,e)){i(`/admin/dashboard`,{replace:!0});return}if(!me(r.role,null)){if(!M(r.role)){if(t||j(r.allowedPages,e))return;i(`/`,{replace:!0});return}if(!(e===`/studio`||e.startsWith(`/studio/`))){if(e===`/admin`){i(`/admin/dashboard`,{replace:!0});return}!N(e)&&!j(r.allowedPages,e)&&i(`/admin/thursday-city`,{replace:!0})}}},[r?.role,r?.allowedPages,null,a.pathname,i]);let b=Gn(e=>e.theme);(0,U.useEffect)(()=>(document.documentElement.classList.add(mi),document.body.classList.add(mi),document.documentElement.setAttribute(`data-theme`,b),()=>{document.documentElement.classList.remove(mi),document.body.classList.remove(mi),document.documentElement.removeAttribute(`data-theme`)}),[b]),(0,U.useEffect)(()=>{let e=`hammer_admin_theme_applied_session`;try{if(sessionStorage.getItem(e))return;sessionStorage.setItem(e,`1`)}catch{}he({eventName:`admin.theme_applied`,flowName:`admin_ui`,stepName:`session_start`,stepIndex:0,properties:{theme:Gn.getState().theme}})},[]),(0,U.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`k`&&(e.preventDefault(),n(e=>!e))};
3return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[]);let x=M(r?.role)&&!me(r?.role,null);return(0,G.jsx)(Yr,{enabled:x,children:(0,G.jsxs)(`div`,{className:`app-layout admin-app`,children:[(0,G.jsx)(li,{open:e,onClose:()=>n(!1),navItems:y}),(0,G.jsx)(ii,{}),(0,G.jsx)(ti,{navItems:y,level:o.level}),(0,G.jsxs)(`main`,{id:`main-content`,className:`main-content`,children:[(0,G.jsx)(pi,{enabled:x}),(0,G.jsx)(`div`,{className:`admin-page-inner`,children:(0,G.jsx)(v,{})})]}),(0,G.jsx)(di,{})]})})}var gi=[{re:/^\/admin\/host-expenses\/([\w-]+)/,label:`Host expense detail`,entityType:`host-expense`},{re:/^\/admin\/users\/([\w-]+)/,label:`User detail`,entityType:`user`},{re:/^\/admin\/event\/([\w-]+)/,label:`Event detail`,entityType:`experience`},{re:/^\/admin\/events\/([\w-]+)/,label:`Event detail`,entityType:`experience`},{re:/^\/admin\/bookings\/([\w-]+)/,label:`Booking detail`,entityType:`booking`},{re:/^\/admin\/pay-runs\/([\w-]+)/,label:`Pay run detail`,entityType:`pay-run`}];function _i(e){for(let t of gi){let n=t.re.exec(e);if(n)return{routeLabel:t.label,entityType:t.entityType,entityId:n[1]??null}}return{routeLabel:null,entityType:null,entityId:null}}var vi=class{entries=[];lastPath=null;constructor(e=()=>Date.now()){this.now=e}record(e,t){let n=e.split(`?`)[0];if(this.lastPath===n)return;let r=this.now(),i=this.entries[this.entries.length-1];i&&i.durationMs==null&&(i.durationMs=Math.max(0,r-new Date(i.viewedAt).getTime())),this.lastPath=n;let a=_i(n);this.entries.push({path:n,routeLabel:a.routeLabel,entityType:a.entityType,entityId:a.entityId,sessionId:t??null,durationMs:null,viewedAt:new Date(r).toISOString()})}drain(){let e=this.entries;return this.entries=[],e}size(){return this.entries.length}},yi=`activity_session_id`;function bi(){try{let e=sessionStorage.getItem(yi);return e||(e=ve(),sessionStorage.setItem(yi,e)),e}catch{return`nosession`}}function xi(e,t=!1){if(e.length===0)return;let n=`${L}/activity/views`,r=JSON.stringify({views:e});if(t)try{if(navigator.sendBeacon?.(n,new Blob([r],{type:`application/json`})))return}catch{}fetch(n,{method:`POST`,body:r,headers:{"Content-Type":`application/json`},keepalive:!0,credentials:`include`}).catch(()=>void 0)}function Si(e){let t=`${L}/activity/heartbeat`,n=JSON.stringify({path:e});try{if(navigator.sendBeacon?.(t,new Blob([n],{type:`application/json`})))return}catch{}fetch(t,{method:`POST`,body:n,headers:{"Content-Type":`application/json`},keepalive:!0,credentials:`include`}).catch(()=>void 0)}var Ci=1e4,wi=6e4;function Ti(){let e=s(),t=k(e=>e.user?.id??null),n=(0,U.useRef)(null);n.current||=new vi,(0,U.useEffect)(()=>{t&&n.current.record(e.pathname,bi())},[e.pathname,t]),(0,U.useEffect)(()=>{if(!t)return;let e=n.current,r=(t=!1)=>xi(e.drain(),t),i=window.setInterval(()=>r(!1),Ci),a=()=>{document.visibilityState===`hidden`&&r(!0)},o=()=>r(!0);return document.addEventListener(`visibilitychange`,a),window.addEventListener(`pagehide`,o),()=>{window.clearInterval(i),document.removeEventListener(`visibilitychange`,a),window.removeEventListener(`pagehide`,o),r(!1)}},[t]),(0,U.useEffect)(()=>{if(!t)return;let n=window.setInterval(()=>{document.hasFocus()&&e.pathname.startsWith(`/admin`)&&Si(e.pathname)},wi);return()=>window.clearInterval(n)},[t,e.pathname])}var Ei=300*1e3;function Di(e){let t=(0,U.useRef)(null),n=s(),r=async()=>{try{let n=await fetch(`/version.json?t=${Date.now()}`,{cache:`no-store`});if(!n.ok)return;let r=await n.json();if(t.current===null){t.current=r.buildHash;return}r.buildHash!==t.current&&e()}catch{}};(0,U.useEffect)(()=>{r();let e=setInterval(()=>void r(),Ei);return()=>clearInterval(e)},[]),(0,U.useEffect)(()=>{r()},[n.pathname])}function Oi(){let[e,t]=(0,U.useState)(!1);return Di(()=>t(!0)),e?(0,G.jsxs)(`div`,{className:`update-banner`,role:`alert`,children:[(0,G.jsxs)(`div`,{className:`update-banner__message`,children:[(0,G.jsx)(h,{className:`update-banner__icon`,size:16,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:`A new version is available.`})]}),(0,G.jsxs)(`div`,{className:`update-banner__actions`,children:[(0,G.jsx)(`button`,{type:`button`,className:`update-banner__refresh`,onClick:()=>window.location.reload(),children:`Refresh`}),(0,G.jsx)(`button`,{type:`button`,className:`update-banner__dismiss`,onClick:()=>t(!1),"aria-label":`Dismiss`,children:(0,G.jsx)(o,{size:18,"aria-hidden":`true`})})]})]}):null}function ki(){let{search:e}=s(),t=D(e=>e.captureRef),n=k(e=>e.user?.id??null),{loading:r,variant:i,capturedRefCode:a}=We(),o=(0,U.useRef)(null);(0,U.useEffect)(()=>{let n=new URLSearchParams(e).get(`ref`);n&&(t(n),Ge())},[e,t]),(0,U.useEffect)(()=>
3{if(!n||r||i!==`friend`||!a)return;let e=`${n}:${a}`;o.current!==e&&(o.current=e,R(`/referrals/attribute`,{code:a}).catch(()=>{o.current=null}))},[n,r,i,a])}var Ai=W(()=>g(()=>import(`./NotFoundPage-QFhww24I.js`).then(e=>({default:e.NotFoundPage})),__vite__mapDeps([0,1,2,3,4,5,6]))),ji=W(()=>g(()=>import(`./HomePage-C3cjL3Pk.js`).then(e=>({default:e.HomePage})),__vite__mapDeps([7,3,2,4,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))),Mi=W(()=>g(()=>import(`./HomeRedesignPreviewPage-MZMqlmuT.js`).then(e=>({default:e.HomeRedesignPreviewPage})),__vite__mapDeps([22,3,2,4,5,10,14,15,9,11,16,17,18,19,8,12,23,24,25,20,26,27,28,29]))),Ni=W(()=>g(()=>import(`./AboutPage-BHrZfbca.js`).then(e=>({default:e.AboutPage})),__vite__mapDeps([30,2,3,4,5,13,14,10,15,9,11,16,17,18,19,20,21,31]))),Pi=W(()=>g(()=>import(`./FaqsPage-CrxnL0fe.js`).then(e=>({default:e.FaqsPage})),__vite__mapDeps([32,3,2,4,5,13,14,10,15,9,11,16,17,18,19,20,21,33]))),Fi=W(()=>g(()=>import(`./EventsPage-CA_7WnZ_.js`).then(e=>({default:e.EventsPage})),__vite__mapDeps([34,3,2,4,5,10,14,15,9,11,16,17,18,19,35,36,37,38,8,12,13,20,39,40,41,42,1,6,26,27,43,28,21,44]))),Ii=W(()=>g(()=>import(`./BlogPage-DYIbI6pO.js`).then(e=>({default:e.BlogPage})),__vite__mapDeps([45,3,2,4,5,13,14,10,15,9,11,16,17,18,19,20,1,6,37,21]))),Li=W(()=>g(()=>import(`./NewsPage-BzaLEAL7.js`).then(e=>({default:e.NewsPage})),__vite__mapDeps([46,3,2,4,5,13,14,10,15,9,11,16,17,18,19,20,37,21]))),Ri=W(()=>g(()=>import(`./HostPage-BDhBP4T9.js`).then(e=>({default:e.HostPage})),__vite__mapDeps([47,3,2,4,5,13,14,10,15,9,11,16,17,18,19,20,21]))),zi=W(()=>g(()=>import(`./HostApplicationPage-Dg7DPxz3.js`).then(e=>({default:e.HostApplicationPage})),__vite__mapDeps([48,3,2,4,5,13,14,10,15,9,11,16,17,18,19,20,21,49]))),Bi=W(()=>g(()=>import(`./DinnersPage-D0UHZnRQ.js`).then(e=>({default:e.DinnersPage})),__vite__mapDeps([50,3,2,4,5]))),Vi=W(()=>g(()=>import(`./PartnerPage-Bo5Toju6.js`).then(e=>({default:e.PartnerPage})),__vite__mapDeps([51,3,2,4,5,13,14,10,15,9,11,16,17,18,19,20,21,52]))),Hi=W(()=>g(()=>import(`./TermsPage-DYyj_BfR.js`).then(e=>({default:e.TermsPage})),__vite__mapDeps([53,2,3,4,5,54,13,14,10,15,9,11,16,17,18,19,20,55,21]))),Ui=W(()=>g(()=>import(`./TripsTermsPage-B_xkCBv0.js`).then(e=>({default:e.TripsTermsPage})),__vite__mapDeps([56,2,3,4,5,54,13,14,10,15,9,11,16,17,18,19,20,55,21]))),Wi=W(()=>g(()=>import(`./PrivacyPage-BP_QI4Cj.js`).then(e=>({default:e.PrivacyPage})),__vite__mapDeps([57,2,3,4,5,14,10,15,9,11,16,17,18,19,54,13,20,55,21]))),Gi=W(()=>g(()=>import(`./GamePage-4XzWHpt-.js`).then(e=>({default:e.GamePage})),__vite__mapDeps([58,3,2,4,5,9,10,11,20,21,59]))),Ki=W(()=>g(()=>import(`./MiniGamesTermsPage-o2yuVTfs.js`).then(e=>({default:e.MiniGamesTermsPage})),__vite__mapDeps([60,2,3,4,5,54,13,14,10,15,9,11,16,17,18,19,20,21]))),qi=W(()=>g(()=>import(`./VenuePartnerTermsPage-CItzeOwN.js`).then(e=>({default:e.VenuePartnerTermsPage})),__vite__mapDeps([61,2,3,4,5,13,14,10,15,9,11,16,17,18,19,20,21]))),Ji=W(()=>g(()=>import(`./CookiePolicyPage-DXQXi2Hc.js`).then(e=>({default:e.CookiePolicyPage})),__vite__mapDeps([62,2,3,4,5,14,10,15,9,11,16,17,18,19,54,13,20,55,21]))),Yi=W(()=>g(()=>import(`./RefundPolicyPage-BAWmAtdJ.js`).then(e=>({default:e.RefundPolicyPage})),__vite__mapDeps([63,2,3,4,5,54,13,14,10,15,9,11,16,17,18,19,20,55,21]))),Xi=W(()=>g(()=>import(`./IssueAtEventPage-C1PhGpwF.js`).then(e=>({default:e.IssueAtEventPage})),__vite__mapDeps([64,2,3,4,5,54,13,14,10,15,9,11,16,17,18,19,20,55,21]))),Zi=W(()=>g(()=>import(`./CodeOfConductPage-DAwYxUuu.js`).then(e=>({default:e.CodeOfConductPage})),__vite__mapDeps([65,2,3,4,5,54,13,14,10,15,9,11,16,17,18,19,20,55,21]))),Qi=W(()=>g(()=>import(`./ExternalTripsDetailPage-BU-y243X.js`).then(e=>({default:e.ExternalTripsDetailPage})),__vite__mapDeps([66,3,2,4,5,14,10,15,9,11,16,17,18,19,13,20,67,68,69,1,6,70,21,71,72]))),$i=W(()=>g(()=>import(`./ExternalTripsWellnessPage-BBzg3vfD.js`).then(e=>({default:e.ExternalTripsWellnessPage})),__vite__mapDeps([73,3,2,4,5,9,10,11,70,74]))),ea=W(()=>g(()=>import(`./ExternalTripsWellnessPageDoc-D2ZgF1ty.js`).then(e=>({default:e.ExternalTripsWellnessPageDoc}
3)),__vite__mapDeps([75,3,2,4,5,76]))),ta=W(()=>g(()=>import(`./JoinCommunityPage-Bvj0GkDp.js`).then(e=>({default:e.JoinCommunityPage})),__vite__mapDeps([77,3,2,4,5,10,14,15,9,11,16,17,18,19,13,20,21,78,79]))),na=W(()=>g(()=>import(`./TripsHomePage-ByV88-q8.js`).then(e=>({default:e.TripsHomePage})),__vite__mapDeps([80,3,2,4,5,10,14,15,9,11,16,17,18,19,13,20,67,68,81,82,83,84,79]))),ra=W(()=>g(()=>import(`./TripsDetailPage-ChD_n6eE.js`).then(e=>({default:e.TripsDetailPage})),__vite__mapDeps([85,3,2,4,5,10,14,15,9,11,16,17,18,19,13,20,67,68,81,82,69,70,83,86,71,87,79]))),ia=W(()=>g(()=>import(`./TripBookingPage-DjqVyq0y.js`).then(e=>({default:e.TripBookingPage})),__vite__mapDeps([88,3,2,4,5,89,10,14,15,9,11,16,17,18,19,90,91,92,93,83,94,95,96,86,71,97,79]))),aa=W(()=>g(()=>import(`./TripInviteClaimPage-DMofUs9j.js`).then(e=>({default:e.TripInviteClaimPage})),__vite__mapDeps([98,3,2,4,5,14,10,15,9,11,16,17,18,19,99]))),oa=W(()=>g(()=>import(`./MyTripsPage-BRv6G48G.js`).then(e=>({default:e.MyTripsPage})),__vite__mapDeps([100,3,2,4,5,10,13,14,15,9,11,16,17,18,19,20,67,68,83,101]))),sa=W(()=>g(()=>import(`./ManageTripPage-CeI6F7mJ.js`).then(e=>({default:e.ManageTripPage})),__vite__mapDeps([102,3,2,4,5,89,10,14,15,9,11,16,17,18,19,90,91,92,13,20,67,68,95,103,79]))),ca=W(()=>g(()=>import(`./TripPaymentPage-DiwEV0es.js`).then(e=>({default:e.TripPaymentPage})),__vite__mapDeps([104,3,2,4,5,89,10,14,15,9,11,16,17,18,19,90,91,92,93,83,94,71,105]))),la=W(()=>g(()=>import(`./AuthPage-C3bseCIp.js`).then(e=>({default:e.AuthPage})),__vite__mapDeps([106,3,2,4,5,14,10,15,9,11,16,17,18,19,107,108,21,109,99]))),ua=W(()=>g(()=>import(`./ForgotPasswordPage-BhcmYzK2.js`).then(e=>({default:e.ForgotPasswordPage})),__vite__mapDeps([110,3,2,4,5,9,10,11,99]))),da=W(()=>g(()=>import(`./ResetPasswordPage-DVVF-k4H.js`).then(e=>({default:e.ResetPasswordPage})),__vite__mapDeps([111,3,2,4,5,9,10,11,99]))),fa=W(()=>g(()=>import(`./MagicLinkPage-CO3wMBGC.js`).then(e=>({default:e.MagicLinkPage})),__vite__mapDeps([112,3,2,4,5,10,14,15,9,11,16,17,18,19,113,109,114,115]))),pa=W(()=>g(()=>import(`./RepInvitePage-BrP2AaEP.js`).then(e=>({default:e.RepInvitePage})),__vite__mapDeps([116,3,2,4,5,9,10,11,117]))),ma=W(()=>g(()=>import(`./ScanInvitePage-u9_wAoxg.js`).then(e=>({default:e.ScanInvitePage})),__vite__mapDeps([118,2,3,4,5,10,119]))),ha=W(()=>g(()=>import(`./AcceptInvitePage-DOeoMaCY.js`).then(e=>({default:e.AcceptInvitePage})),__vite__mapDeps([120,3,2,4,5,14,10,15,9,11,16,17,18,19,107,108,20,121]))),ga=W(()=>g(()=>import(`./VenueLandingPage-D9xEAzwM.js`).then(e=>({default:e.VenueLandingPage})),__vite__mapDeps([122,3,2,4,5,123,124,125,9,10,11,126]))),_a=W(()=>g(()=>import(`./VenueInvitePage-K0cl0OCN.js`).then(e=>({default:e.VenueInvitePage})),__vite__mapDeps([127,3,2,4,5,123,124,125,9,10,11,126]))),va=W(()=>g(()=>import(`./VenueCompletePage-CcxPi9Dt.js`).then(e=>({default:e.VenueCompletePage})),__vite__mapDeps([128,3,2,4,5,9,10,11,123,124,125,129,126]))),ya=W(()=>g(()=>import(`./VenueFeedbackPage-DzIgAfMf.js`).then(e=>({default:e.VenueFeedbackPage})),__vite__mapDeps([130,3,2,4,5,9,10,11,131]))),ba=W(()=>g(()=>import(`./VenueFeeBankTransferPage-6BYGvxq1.js`).then(e=>({default:e.VenueFeeBankTransferPage})),__vite__mapDeps([132,3,2,4,5,9,10,11,133,126]))),xa=W(()=>g(()=>import(`./ThursdayVenueFeesPage-DOGqeKJq.js`).then(e=>({default:e.ThursdayVenueFeesPage})),__vite__mapDeps([134,3,2,4,5,10,14,15,9,11,16,17,18,19,21,135]))),Sa=W(()=>g(()=>import(`./EventDetailPage-BL3cI6_0.js`).then(e=>({default:e.EventDetailPage})),__vite__mapDeps([136,3,2,4,5,89,10,14,15,9,11,16,17,18,19,90,91,92,137,35,36,37,38,138,139,140,96,40,41,70,141,142,107,108,143,113,109,114,144,124,125,95,145,13,20,39,42,43,146,28,21,147]))),Ca=W(()=>g(()=>import(`./PostDetailPage-KQqVOQHN.js`).then(e=>({default:e.PostDetailPage})),__vite__mapDeps([148,3,2,4,5,10,9,11,1,6,43,146,28,21,149]))),wa=W(()=>g(()=>import(`./AccountPage-CrIs-3mb.js`).then(e=>({default:e.AccountPage})),__vite__mapDeps([150,3,2,4,5,14,10,15,9,11,16,17,18,19,151,20,152]))),Ta=W(()=>g(()=>import(`./MyTicketsPage-CUp0Wxgv.js`).then(e=>({default:e.MyTicketsPage})),__vite__mapDeps([153,3,2,4,5,14,10,15,9,11,16,17,18,19,13,20,154,28,155,101]))),Ea=W(()=>g(()=>import(`./NotificationsPage-CL8U-WE8.js`).then(e=>({default:e.NotificationsPage})),__vite__mapDeps([156,3,2,4,5,10,157,9,11,158,159]))),Da=W(()=>g(()=>import(`./NotificationDetailPage-CZe3Ap8Q.js`).then(e=>({default:e.NotificationDetailPage})),__vite__mapDeps([160,3,2,4,5,10,9,11,157,158,161,159]))),Oa=W(()=>g(()=>import(`./ChallengesPage-Dzefykyi.js`).then(e=>({default:e.ChallengesPage})),__vite__mapDeps([162,3,2,4,5,10,9,11,157,158,163]))),ka=W(()=>g(()=>import(`./ChallengeOptInPage-DuywQgef.js`).then(e=>({default:e.ChallengeOptInPage})),__vite__mapDeps([164,3,2,4,5,9,10,11,165,163]))),Aa=W(()=>g(()=>import(`./PartnerPortalPage-BHSNZGJD.js`).then(e=>({default:e.PartnerPortalPage})),__vite__mapDeps([166,3,2,4,5,9,10,11,167]))),ja=W(()=>g(()=>import(`./MyProfilePage-BMz1uqvM.js`).then(e=>({default:e.MyProfilePage})),__vite__mapDeps([168,3,2,4,5,10,14,15,9,11,16,17,18,19,124,125,169,170,144,95,145,151,20,109,171,172]))
3),Ma=W(()=>g(()=>import(`./StudioCataloguePage-UbfVv_Ea.js`).then(e=>({default:e.StudioCataloguePage})),__vite__mapDeps([173,3,2,4,5,10,174,175,14,15,9,11,16,17,18,19,176,177,172]))),Na=W(()=>g(()=>import(`./StudioDesignPage-CLZOcWxk.js`).then(e=>({default:e.StudioDesignPage})),__vite__mapDeps([178,3,2,4,5,10,14,15,9,11,16,17,18,19,174,175,176,151,20,179,172]))),Pa=W(()=>g(()=>import(`./StudioDesignPreviewPage-BersXD9A.js`).then(e=>({default:e.StudioDesignPreviewPage})),__vite__mapDeps([180,3,2,4,5,10,175,14,15,9,11,16,17,18,19,181]))),Fa=W(()=>g(()=>import(`./CartPage-CvFF0-OF.js`).then(e=>({default:e.CartPage})),__vite__mapDeps([182,3,2,4,5,89,10,14,15,9,11,16,17,18,19,90,91,92,137,35,36,37,38,138,139,140,96,40,41,70,141,142,183,113,109,114,107,108,143,184,43,28,155,185]))),Ia=W(()=>g(()=>import(`./CartConfirmationPage-m1SZB8V7.js`).then(e=>({default:e.CartConfirmationPage})),__vite__mapDeps([186,3,2,4,5,10,187,139,138,140,188,189,35,36,9,11,16,37,38,40,41,14,15,17,18,19,190,141,43,28,191]))),La=W(()=>g(()=>import(`./BookingConfirmationPage-v9T0Gjw3.js`).then(e=>({default:e.BookingConfirmationPage})),__vite__mapDeps([192,3,2,4,5,10,14,15,9,11,16,17,18,19,187,139,138,140,188,189,35,36,37,38,40,41,190,141,146,28,193]))),Ra=W(()=>g(()=>import(`./TicketDetailPage-JVIU_IZ_.js`).then(e=>({default:e.TicketDetailPage})),__vite__mapDeps([194,3,2,4,5,36,10,13,14,15,9,11,16,17,18,19,20,189,35,37,38,40,41,154,21,195]))),za=W(()=>g(()=>import(`./QuizPage-C4fPc_JE.js`).then(e=>({default:e.QuizPage})),__vite__mapDeps([196,3,2,4,5,13,14,10,15,9,11,16,17,18,19,20,197]))),Ba=W(()=>g(()=>import(`./ReferralsPage-D6ENMuoK.js`).then(e=>({default:e.ReferralsPage})),__vite__mapDeps([198,3,2,4,5,35,36,9,10,11,16,37,38,41,14,15,17,18,19,199]))),Va=W(()=>g(()=>import(`./ReferralsDashboardPage-B8ufsXAv.js`).then(e=>({default:e.ReferralsDashboardPage})),__vite__mapDeps([200,3,2,4,5,10,124,125,9,11,201,14,15,16,17,18,19,202,203,204,205]))),Ha=W(()=>g(()=>import(`./MiniGamesAdminPage-DU3Y1qFv.js`).then(e=>({default:e.MiniGamesAdminPage})),__vite__mapDeps([206,3,2,4,5,9,10,11,207]))),Ua=W(()=>g(()=>import(`./BannersPage-BwTZ4n9x.js`).then(e=>({default:e.BannersPage})),__vite__mapDeps([208,3,2,4,5,9,10,11,209]))),Wa=W(()=>g(()=>import(`./EventAdsPage-PEQHJ5ve.js`).then(e=>({default:e.EventAdsPage})),__vite__mapDeps([210,2,3,4,5,211,9,10,11]))),Ga=W(()=>g(()=>import(`./CityListPage-CbSTWaX-.js`).then(e=>({default:e.CityListPage})),__vite__mapDeps([212,3,2,4,5,10,213,124,125,214,9,11,215,201,14,15,16,17,18,19,26,216,217,146,218,155,219,99,220,221]))),Ka=W(()=>g(()=>import(`./ManageHostsPage-CjflbWnv.js`).then(e=>({default:e.ManageHostsPage})),__vite__mapDeps([222,3,2,4,5,9,10,11,223]))),qa=W(()=>g(()=>import(`./CityRefundRequestsPage-BLA17ZSc.js`).then(e=>({default:e.CityRefundRequestsPage})),__vite__mapDeps([224,3,2,4,5,9,10,11]))),Ja=W(()=>g(()=>import(`./CityReferralsPage-HqKVBouM.js`).then(e=>({default:e.CityReferralsPage})),__vite__mapDeps([225,3,2,4,5,9,10,11,201,14,15,16,17,18,19,202,203,204,226]))),Ya=W(()=>g(()=>import(`./CityPastEventsPage-D9RiDQ0i.js`).then(e=>({default:e.CityPastEventsPage})),__vite__mapDeps([227,3,2,4,5,9,10,11,218,155]))),Xa=W(()=>g(()=>import(`./CityPostFormPage-qH0UsK9x.js`).then(e=>({default:e.CityPostFormPage})),__vite__mapDeps([228,3,2,4,5,10,9,11,43,146,229]))),Za=W(()=>g(()=>import(`./PostFormPage-BUJhhCnI.js`).then(e=>({default:e.PostFormPage})),__vite__mapDeps([230,3,2,4,5,231,232,36,10,9,11,201,14,15,16,17,18,19,233,234,235,236,237,155,37,238]))),Qa=W(()=>g(()=>import(`./CityNetworkPage-wF1rgEJI.js`).then(e=>({default:e.CityNetworkPage})),__vite__mapDeps([239,2,3,4,5]))),$a=W(()=>g(()=>import(`./EventDashboardPage-Bs0QBpBg.js`).then(e=>({default:e.EventDashboardPage})),__vite__mapDeps([240,3,2,4,5,10,14,15,9,11,16,17,18,19,232,36,231,201,233,241,43,155,242,243,244]))),eo=W(()=>g(()=>import(`./EventSetupPage-Dyz42IRD.js`).then(e=>({default:e.EventSetupPage})),__vite__mapDeps([245,3,2,4,5,9,10,11]))),to=W(()=>g(()=>import(`./EventEditPage-CtGssdG_.js`).then(e=>({default:e.EventEditPage})),__vite__mapDeps([246,3,2,4,5,10,231,9,11,247,16,241,155,37,244]))),no=W(()=>g(()=>import(`./EventMessagingPage-CY1-u9aE.js`).then(e=>({default:e.EventMessagingPage})),__vite__mapDeps([248,3,2,4,5,231,9,10,11,16,249]))),ro=W(()=>g(()=>import(`./EventChallengesPage-Df_ZWmt_.js`).then(e=>({default:e.EventChallengesPage})),__vite__mapDeps([250,3,2,4,5,36,10,232,231,9,11,201,14,15,16,17,18,19,233,251,252,139,158,253,161,159,238]))),io=W(()=>g(()=>import(`./EventFollowersPage-BdnTQq_C.js`).then(e=>({default:e.EventFollowersPage})),__vite__mapDeps([254,2,3,4,5]))),ao=W(()=>g(()=>import(`./EventRepsPage-gPt9-ehE.js`).then(e=>({default:e.EventRepsPage})),__vite__mapDeps([255,3,2,4,5,10,14,15,9,11,16,17,18,19,231,256]))),oo=W(()=>g(()=>import(`./EventCoPromotersPage-C6kL1cU-.js`).then(e=>
3({default:e.EventCoPromotersPage})),__vite__mapDeps([257,2,3,4,5]))),so=W(()=>g(()=>import(`./EventIntegrationsPage-BLb1hwhF.js`).then(e=>({default:e.EventIntegrationsPage})),__vite__mapDeps([258,3,2,4,5]))),co=W(()=>g(()=>import(`./EventCustomersPage-BiqqhsHa.js`).then(e=>({default:e.EventCustomersPage})),__vite__mapDeps([259,3,2,4,5,234,235,9,10,11]))),lo=W(()=>g(()=>import(`./EventAnalyticsPage-C560uRNK.js`).then(e=>({default:e.EventAnalyticsPage})),__vite__mapDeps([260,3,2,4,5,9,10,11]))),Q=W(()=>g(()=>import(`./EventCheckInPage-CEFbEmqp.js`).then(e=>({default:e.EventCheckInPage})),__vite__mapDeps([261,2,3,4,5]))),uo=W(()=>g(()=>import(`./EventStatusPage-Dgu24Ikn.js`).then(e=>({default:e.EventStatusPage})),__vite__mapDeps([262,3,2,4,5,10,169,170,231,9,11,16]))),fo=W(()=>g(()=>import(`./EventMetricsPage-8jUIA6AK.js`).then(e=>({default:e.EventMetricsPage})),__vite__mapDeps([263,3,2,4,5,264,265,266,267,232,36,10,231,9,11,201,14,15,16,17,18,19,233,155,243,268]))),po=W(()=>g(()=>import(`./EventHistoryPage-CDS-WXwP.js`).then(e=>({default:e.EventHistoryPage})),__vite__mapDeps([269,3,2,4,5,9,10,11,270]))),mo=W(()=>g(()=>import(`./EventHostSplitsPage-RoNQ_dZm.js`).then(e=>({default:e.EventHostSplitsPage})),__vite__mapDeps([271,3,2,4,5,10,9,11,201,14,15,16,17,18,19,99]))),ho=W(()=>g(()=>import(`./EventAdvertisingPage-jnkd3bLs.js`).then(e=>({default:e.EventAdvertisingPage})),__vite__mapDeps([272,3,2,4,5,10,9,11]))),go=W(()=>g(()=>import(`./EventCrossSellPage-VMHOQkZW.js`).then(e=>({default:e.EventCrossSellPage})),__vite__mapDeps([273,2,3,4,5]))),_o=W(()=>g(()=>import(`./EventScannerStaffPage-itgfRBRk.js`).then(e=>({default:e.EventScannerStaffPage})),__vite__mapDeps([274,3,2,4,5,10,275,9,11,16,276]))),vo=W(()=>g(()=>import(`./EventPromoRepsPage-DOw9DIhn.js`).then(e=>({default:e.EventPromoRepsPage})),__vite__mapDeps([277,3,2,4,5,10,231,234,235,9,11,43,155,243]))),yo=W(()=>g(()=>import(`./EventCheckInActivityPage-DmmzPczp.js`).then(e=>({default:e.EventCheckInActivityPage})),__vite__mapDeps([278,3,2,4,5,36,279,14,10,15,9,11,16,17,18,19,232,231,201,233,234,235,280]))),bo=W(()=>g(()=>import(`./EventOrdersPage-kl8pYc3j.js`).then(e=>({default:e.EventOrdersPage})),__vite__mapDeps([281,3,2,4,5,9,10,11,155]))),xo=W(()=>g(()=>import(`./EventExportBarcodesPage-Dv1AjU6E.js`).then(e=>({default:e.EventExportBarcodesPage})),__vite__mapDeps([282,3,2,4,5,234,235,9,10,11]))),So=W(()=>g(()=>import(`./PromoCodesStubPage-d6ggiERF.js`).then(e=>({default:e.PromoCodesStubPage})),__vite__mapDeps([283,3,2,4,5,232,36,10,231,9,11,201,14,15,16,17,18,19,233,234,235,146,284]))),Co=W(()=>g(()=>import(`./CheckInScannerStubPage-D8fWAWM1.js`).then(e=>({default:e.CheckInScannerStubPage})),__vite__mapDeps([285,3,2,4,5,10,14,15,9,11,16,17,18,19,232,36,231,201,233,275]))),$=W(()=>g(()=>import(`./EmailLogPage-DDOXS4ue.js`).then(e=>({default:e.EmailLogPage})),__vite__mapDeps([286,3,2,4,5,232,36,10,231,9,11,201,14,15,16,17,18,19,233,287,243]))),wo=W(()=>g(()=>import(`./EventVenueFeesPage-eURUjnZe.js`).then(e=>({default:e.EventVenueFeesPage})),__vite__mapDeps([288,3,2,4,5,232,36,10,231,9,11,201,14,15,16,17,18,19,233,289,290]))),To=W(()=>g(()=>import(`./EventPartnerPage-JHcrOiyO.js`).then(e=>({default:e.EventPartnerPage})),__vite__mapDeps([291,3,2,4,5,9,10,11,201,14,15,16,17,18,19,292]))),Eo=W(()=>g(()=>import(`./OrderDetailPage-Cb8usNes.js`).then(e=>({default:e.OrderDetailPage})),__vite__mapDeps([293,3,2,4,5,10,9,11,201,14,15,16,17,18,19,146,294]))),Do=W(()=>g(()=>import(`./RefundDetailPage-BgXElmVM.js`).then(e=>({default:e.RefundDetailPage})),__vite__mapDeps([295,3,2,4,5,10,14,15,9,11,16,17,18,19,231,146,296,99]))),Oo=W(()=>g(()=>import(`./AdminsPage-BtO1CvG_.js`).then(e=>({default:e.AdminsPage})),__vite__mapDeps([297,2,3,4,5]))),ko=W(()=>g(()=>import(`./SettingsAnalyticsPage-XL1UFF62.js`).then(e=>({default:e.SettingsAnalyticsPage})),__vite__mapDeps([298,3,2,4,5,265,264,266,267,299,300,9,10,11,155,301,302]))),Ao=W(()=>g(()=>import(`./SettingsCatalogueFeedPage-BKLphcSn.js`).then(e=>({default:e.SettingsCatalogueFeedPage})),__vite__mapDeps([303,3,2,4,5,9,10,11,211,304]))),jo=W(()=>g(()=>import(`./ConsentAdminPage-lThwr7De.js`).then(e=>({default:e.ConsentAdminPage})),__vite__mapDeps([305,3,2,4,5,10,14,15,9,11,16,17,18,19,201,306]))),Mo=W(()=>g(()=>import(`./GrowthFeatureFlagsPage-CDtmyRkp.js`).then(e=>({default:e.GrowthFeatureFlagsPage})),__vite__mapDeps([307,3,2,4,5,10,14,15,9,11,16,17,18,19,308,309,99]))
3),No=W(()=>g(()=>import(`./EventTagsPage-B9i4xF6-.js`).then(e=>({default:e.EventTagsPage})),__vite__mapDeps([310,3,2,4,5,10,308,311,155,9,11,16,312,99]))),Po=W(()=>g(()=>import(`./PartnersPage-3a-yfx_R.js`).then(e=>({default:e.PartnersPage})),__vite__mapDeps([313,3,2,4,5,9,10,11,314]))),Fo=W(()=>g(()=>import(`./TradedoublerSettingsPage-CspRsoPr.js`).then(e=>({default:e.TradedoublerSettingsPage})),__vite__mapDeps([315,3,2,4,5,9,10,11]))),Io=W(()=>g(()=>import(`./PartnerDetailPage-DPMLVme1.js`).then(e=>({default:e.PartnerDetailPage})),__vite__mapDeps([316,3,2,4,5,9,10,11,317]))),Lo=W(()=>g(()=>import(`./ApiAccessPage-o5g3Z2EH.js`).then(e=>({default:e.ApiAccessPage})),__vite__mapDeps([318,3,2,4,5,9,10,11,319]))),Ro=W(()=>g(()=>import(`./ActivityLogPage-CvUqToMG.js`).then(e=>({default:e.ActivityLogPage})),__vite__mapDeps([320,3,2,4,5,9,10,11,321]))),zo=W(()=>g(()=>import(`./UserActivityPage-COyivIwa.js`).then(e=>({default:e.UserActivityPage})),__vite__mapDeps([322,3,2,4,5,264,265,266,9,10,11,323]))),Bo=W(()=>g(()=>import(`./AllApiRequestsPage-60KMZvsq.js`).then(e=>({default:e.AllApiRequestsPage})),__vite__mapDeps([324,3,2,4,5,9,10,11,325]))),Vo=W(()=>g(()=>import(`./OverviewPage-CHuL0I9A.js`).then(e=>({default:e.AutopilotOverviewPage})),__vite__mapDeps([326,3,2,4,5,9,10,11,327]))),Ho=W(()=>g(()=>import(`./TasksPage-BEbtT5Ej.js`).then(e=>({default:e.AutopilotTasksPage})),__vite__mapDeps([328,3,2,4,5,9,10,11,329,330,331]))),Uo=W(()=>g(()=>import(`./TaskDetailPage-Bd_Qclc0.js`).then(e=>({default:e.AutopilotTaskDetailPage})),__vite__mapDeps([332,3,2,4,5,9,10,11,333]))),Wo=W(()=>g(()=>import(`./ActionsPage-BPtpZFr4.js`).then(e=>({default:e.AutopilotActionsPage})),__vite__mapDeps([334,3,2,4,5,9,10,11,329,330,335]))),Go=W(()=>g(()=>import(`./CostPage-BCDlesfF.js`).then(e=>({default:e.AutopilotCostPage})),__vite__mapDeps([336,3,2,4,5,9,10,11,337]))),Ko=W(()=>g(()=>import(`./SettingsPage-CDsVe52n.js`).then(e=>({default:e.AutopilotSettingsPage})),__vite__mapDeps([338,3,2,4,5,9,10,11,329,330,339]))),qo=W(()=>g(()=>import(`./McpAccessPage-9bUE6niH.js`).then(e=>({default:e.AutopilotMcpAccessPage})),__vite__mapDeps([340,3,2,4,5,9,10,11,341]))),Jo=W(()=>g(()=>import(`./McpUsagePage-5gAZo-0w.js`).then(e=>({default:e.AutopilotMcpUsagePage})),__vite__mapDeps([342,3,2,4,5,9,10,11,343]))),Yo=()=>(0,G.jsx)(`div`,{className:`loading-spinner`,children:(0,G.jsx)(`div`,{className:`spinner`})});function Xo(e){return!(e.startsWith(`/admin`)||e.startsWith(`/studio`)||e.startsWith(`/auth`)||e===`/forgot-password`||e===`/reset-password`||e===`/accept-invite`||e.startsWith(`/trips/invite/`)||e===`/partner-with-us`||e===`/how-hosts-earn`||e===`/host-venue-fees-explainer`)}function Zo(e){return e===`/trips`||/^\/thursday-trips\/[^/]+$/.test(e)?!0:/^\/trips\/[^/]+$/.test(e)&&e!==`/trips/community`}function Qo(){let{slug:e=``}=_();return(0,G.jsx)(a,{to:`/blog/${e}`,replace:!0})}var $o=new Set([`/admin/host/my-details`,`/admin/host/my-onboarding`,`/admin/host/my-stats`,`/admin/host/my-milestones`,`/admin/host/company-updates`,`/admin/host/help-center`,`/admin/finance/my-expenses`,`/admin/finance/my-commission-statements`]);function es({children:e}){let t=ci();return M(k(e=>e.user?.role))&&!t?(0,G.jsx)(a,{to:`/admin`,replace:!0}):(0,G.jsx)(G.Fragment,{children:e})}var ts=()=>{let e=s(),t=e.pathname.startsWith(`/admin`);O(t);let n=te(),r=Xo(e.pathname),o=e.pathname===`/home-preview`,c=B(e=>e.siteChromeRedesignEnabled)||o,{openPreferences:l}=w(),u=e.pathname===`/`||o||Zo(e.pathname),d=r?c?u?``:` app-layout--has-site-nav`:` app-layout--has-events-nav`:``,f=(0,U.useRef)(null);return Ti(),Ue(),(0,U.useEffect)(()=>{window.scrollTo(0,0)},[e.pathname]),(0,U.useEffect)(()=>{g(async()=>{let{ensureFbcPersisted:e,ensureAnonymousId:t}=await import(`./meta-pixel-DtkR22YS.js`).then(e=>e.i);return{ensureFbcPersisted:e,ensureAnonymousId:t}},__vite__mapDeps([18,3,11])).then(({ensureFbcPersisted:e,ensureAnonymousId:t})=>{try{e(),t()}catch(e){console.warn(`[App] meta-pixel bootstrap inner error:`,e)}}).catch(e=>{console.warn(`[App] meta-pixel dynamic import failed:`,e)})},[e.pathname,e.search]),(0,U.useEffect)(()=>
3{if(e.pathname.startsWith(`/admin`)||f.current===e.pathname)return;f.current=e.pathname;let t=k.getState().user?.id;if(he({eventName:`page.viewed`,flowName:`navigation`,stepName:`page_view`,stepIndex:0,properties:{pagePath:e.pathname+e.search},...t&&{userId:t}}),!e.pathname.startsWith(`/auth`)){let n=e.pathname+e.search;Promise.all([g(()=>import(`./meta-pixel-DtkR22YS.js`).then(e=>e.i),__vite__mapDeps([18,3,11])),g(()=>import(`./meta-capi-client-giHG7q7Y.js`),__vite__mapDeps([344,17,10,9,11,16,2,3,4,5,18]))]).then(([{trackPageView:r},{sendMetaCAPIEvent:i}])=>{try{i({eventName:`PageView`,eventId:r({pagePath:n,...t&&{userId:t}}),customData:{contentCategory:e.pathname}})}catch(e){console.warn(`[App] meta PageView fire inner error:`,e)}}).catch(e=>{console.warn(`[App] meta PageView dynamic import failed:`,e)})}},[e.pathname,e.search]),(0,U.useEffect)(()=>{B.getState().fetch()},[]),(0,U.useEffect)(()=>{k.getState().verify()},[]),(0,U.useEffect)(()=>{ge(window.location.search)},[]),ki(),(0,G.jsx)(Fe,{children:(0,G.jsx)(wn,{children:(0,G.jsx)(Tn,{children:(0,G.jsx)(ie,{children:(0,G.jsxs)(`div`,{className:`app-layout${d}`,children:[(0,G.jsx)(kn,{}),(0,G.jsx)(Oi,{}),(0,G.jsx)(rn,{pathname:e.pathname,redesign:c,showChrome:r,eventsNav:r?(0,G.jsx)(St,{}):null}),(0,G.jsx)(U.Suspense,{fallback:(0,G.jsx)(Yo,{}),children:(0,G.jsx)(S,{children:(0,G.jsxs)(p,{children:[(0,G.jsx)(i,{path:`/`,element:c?(0,G.jsx)(Mi,{}):(0,G.jsx)(ji,{})}),(0,G.jsx)(i,{path:`/home-preview`,element:(0,G.jsx)(Mi,{})}),(0,G.jsx)(i,{path:`/about`,element:(0,G.jsx)(Ni,{})}),(0,G.jsx)(i,{path:`/faqs`,element:(0,G.jsx)(Pi,{})}),(0,G.jsx)(i,{path:`/events/:city/:id`,element:(0,G.jsx)(Sa,{})}),(0,G.jsx)(i,{path:`/events`,element:(0,G.jsx)(Fi,{})}),(0,G.jsx)(i,{path:`/events/:city`,element:(0,G.jsx)(Fi,{})}),(0,G.jsx)(i,{path:`/posts/:citySlug/:postSlug`,element:(0,G.jsx)(Ca,{})}),(0,G.jsx)(i,{path:`/dinners`,element:(0,G.jsx)(Bi,{})}),(0,G.jsx)(i,{path:`/trips`,element:(0,G.jsx)(na,{})}),(0,G.jsx)(i,{path:`/trips/community`,element:(0,G.jsx)(ta,{})}),(0,G.jsx)(i,{path:`/trips/:slug`,element:(0,G.jsx)(Qi,{})}),(0,G.jsx)(i,{path:`/thursday-trips/pay`,element:(0,G.jsx)(Y,{children:(0,G.jsx)(ca,{})})}),(0,G.jsx)(i,{path:`/thursday-trips/:slug`,element:(0,G.jsx)(ra,{})}),(0,G.jsx)(i,{path:`/thursday-trips/:slug/book`,element:(0,G.jsx)(ia,{})}),(0,G.jsx)(i,{path:`/become-a-host`,element:(0,G.jsx)(Ri,{})}),(0,G.jsx)(i,{path:`/become-a-host/apply`,element:(0,G.jsx)(zi,{})}),(0,G.jsx)(i,{path:`/partner-with-us`,element:(0,G.jsx)(Vi,{})}),(0,G.jsx)(i,{path:`/venue-signup`,element:(0,G.jsx)(ga,{})}),(0,G.jsx)(i,{path:`/venue-invite`,element:(0,G.jsx)(_a,{})}),(0,G.jsx)(i,{path:`/venue-complete/:token`,element:(0,G.jsx)(va,{})}),(0,G.jsx)(i,{path:`/venue-feedback/:experienceId`,element:(0,G.jsx)(ya,{})}),(0,G.jsx)(i,{path:`/venue-fee/bank-transfer/:experienceId`,element:(0,G.jsx)(ba,{})}),(0,G.jsx)(i,{path:`/how-hosts-earn`,element:(0,G.jsx)(xa,{})}),(0,G.jsx)(i,{path:`/host-venue-fees-explainer`,element:(0,G.jsx)(a,{to:`/how-hosts-earn`,replace:!0})}),(0,G.jsx)(i,{path:`/trips/luxury-wellness/apply`,element:(0,G.jsx)($i,{})}),(0,G.jsx)(i,{path:`/trips/luxury-wellness/info`,element:(0,G.jsx)(ea,{})}),(0,G.jsx)(i,{path:`/blog`,element:(0,G.jsx)(Ii,{})}),(0,G.jsx)(i,{path:`/blog/:slug`,element:(0,G.jsx)(Ii,{})}),(0,G.jsx)(i,{path:`/blogs`,element:(0,G.jsx)(a,{to:`/blog`,replace:!0})}),(0,G.jsx)(i,{path:`/blogs/:slug`,element:(0,G.jsx)(Qo,{})}),(0,G.jsx)(i,{path:`/homepage-blog`,element:(0,G.jsx)(Ii,{})}),(0,G.jsx)(i,{path:`/news`,element:(0,G.jsx)(Li,{})}),(0,G.jsx)(i,{path:`/news/:slug`,element:(0,G.jsx)(Li,{})}),(0,G.jsx)(i,{path:`/:citySlug/news`,element:(0,G.jsx)(Li,{})}),(0,G.jsx)(i,{path:`/:citySlug/news/:slug`,element:(0,G.jsx)(Li,{})}),(0,G.jsx)(i,{path:`/terms-of-use`,element:(0,G.jsx)(Hi,{})}),(0,G.jsx)(i,{path:`/trips-terms-and-conditions`,element:(0,G.jsx)(Ui,{})}),(0,G.jsx)(i,{path:`/privacy-policy`,element:(0,G.jsx)(Wi,{})}),(0,G.jsx)(i,{path:`/game`,element:(0,G.jsx)(Gi,{})}),(0,G.jsx)(i,{path:`/game/mini-games-terms`,element:(0,G.jsx)(Ki,{})}),(0,G.jsx)(i,{path:`/game/terms-of-use`,element:(0,G.jsx)(Hi,{})}),(0,G.jsx)(i,{path:`/game/privacy-policy`,element:(0,G.jsx)(Wi,{})}),(0,G.jsx)(i,{path:`/venue-partner-terms`,element:(0,G.jsx)(qi,{})}),(0,G.jsx)(i,{path:`/cookie-policy`,element:(0,G.jsx)(Ji,{})}),(0,G.jsx)(i,{path:`/refund-policy`,element:(0,G.jsx)(Yi,{})}),(0,G.jsx)(i,{path:`/issue-at-an-event`,element:(0,G.jsx)(Xi,{})}),(0,G.jsx)(i,{path:`/code-of-conduct`,element:(0,G.jsx)(Zi,{})}),(0,G.jsx)(i,{path:`/quiz`,element:(0,G.jsx)(za,{})}),(0,G.jsx)(i,{path:`/auth`,element:(0,G.jsx)(la,{})}),(0,G.jsx)(i,{path:`/forgot-password`,element:(0,G.jsx)(ua,{})}),(0,G.jsx)(i,{path:`/reset-password`,element:(0,G.jsx)(da,{})}),(0,G.jsx)(i,{path:`/auth/magic-link`,element:(0,G.jsx)(fa,{})}),(0,G.jsx)(i,{path:`/rep-invite/:token`,element:(0,G.jsx)(pa,{})}),(0,G.jsx)(i,{path:`/scan/invite/:token`,element:(0,G.jsx)(ma,{})}),(0,G.jsx)(i,{path:`/accept-invite`,element:(0,G.jsx)(ha,{})}),(0,G.jsx)(i,{path:`/partner`,element:(0,G.jsx)(Y,{children:(0,G.jsx)(En,{children:(0,G.jsx)(Aa,{})})})}),(0,G.jsx)(i,{path:`/account`,element:(0,G.jsx)(Y,{children:(0,G.jsx)(wa,{})})}),(0,G.jsx)(i,{path:`/my-tickets`,element:(0,G.jsx)(Y,{children:(0,G.jsx)(Ta,{})})}),(0,G.jsx)(i,{path:`/notifications`,element:(0,G.jsx)(Y,{children:(0,G.jsx)(Ea,{})})}),(0,G.jsx)(i,{path:`/notifications/:id`,element:(0,G.jsx)(Y,{children:(0,G.jsx)(Da,{})})}),(0,G.jsx)(i,{path:`/challenges/:type/:ownerId`,element:(0,G.jsx)(Y,{children:(0,G.jsx)(Oa,{})})}),(0,G.jsx)(i,{path:`/challenges/event/:experienceId/opt-in`,element:(0,G.jsx)(Y,{children:(0,G.jsx)(ka,{})})}),(0,G.jsx)(i,{path:`/trips/invite/:token`,element:(0,G.jsx)(aa,{})}),(0,G.jsx)(i,{path:`/my-trips`,element:(0,G.jsx)(Y,{children:(0,G.jsx)(oa,{})})}),(0,G.jsx)(i,{path:`/my-trips/:slug`,element:(0,G.jsx)(Y,{children:(0,G.jsx)(sa,{})})}),(0,G.jsxs)(i,{path:`/studio`,element:(0,G.jsx)(Hn,{children:(0,G.jsx)(hi,{})}),children:[(0,G.jsx)(i,{index:!0,element:(0,G.jsx)(On,{children:(0,G.jsx)(Ma,{})})}),(0,G.jsx)(i,{path:`:slug`,element:(0,G.jsx)(On,{children:(0,G.jsx)(Na,{})})})]}),(0,G.jsx)(i,{path:`/studio/preview/:slug`,element:(0,G.jsx)(On,{children:(0,G.jsx)(Pa,{})})}),(0,G.jsx)(i,{path:`/referrals`,element:(0,G.jsx)(Y,{children:(0,G.jsx)(Ba,{})})}),(0,G.jsx)(i,{path:`/my-profile`,element:(0,G.jsx)(Y,{children:(0,G.jsx)(ja,{})})}),(0,G.jsx)(i,{path:`/my-profile/edit`,element:(0,G.jsx)(a,{to:`/my-profile`,replace:!0})}),(0,G.jsx)(i,{path:`/tickets/:id`,element:(0,G.jsx)(Y,{children:(0,G.jsx)(Ra,{})})}),(0,G.jsx)(i,{path:`/cart`,element:(0,G.jsx)(Fn,{mode:`cart`,children:(0,G.jsx)(Fa,{})})}),(0,G.jsx)(i,{path:`/cart/confirmation`,element:(0,G.jsx)(Fn,{mode:`cart`,children:(0,G.jsx)(Ia,{})})}),(0,G.jsx)(i,{path:`/booking/confirmation`,element:(0,G.jsx)(Y,{children:(0,G.jsx)(La,{})})}),(0,G.jsxs)(i,{path:`/admin`,element:(0,G.jsx)(Hn,{children:(0,G.jsx)(hi,{})}),children:[(0,G.jsx)(i,{index:!0,element:(0,G.jsx)(a,{to:`/admin/dashboard`,replace:!0})}),(0,G.jsx)(i,{path:`dashboard`,element:(0,G.jsx)(H.DashboardPage,{})}),(0,G.jsx)(i,{path:`events`,element:(0,G.jsx)(H.EventsPage,{})}),(0,G.jsx)(i,{path:`banners`,element:(0,G.jsx)(Ua,{})}),(0,G.jsx)(i,{path:`catalogue/event-ads`,element:(0,G.jsx)(Wa,{})}),(0,G.jsx)(i,{path:`thursday-city`,element:(0,G.jsx)(Ga,{})}),(0,G.jsx)(i,{path:`pages/*`,element:(0,G.jsx)(In,{})}),(0,G.jsxs)(i,{path:`thursday-city/:cityId`,children:[(0,G.jsxs)(i,{element:(0,G.jsx)(H.PagesPage,{}),children:[(0,G.jsx)(i,{index:!0,element:(0,G.jsx)(H.ThursdayCityDashboardPanel,{})}),(0,G.jsx)(i,{path:`events`,element:(0,G.jsx)(H.ThursdayCityDashboardPanel,{})}),(0,G.jsx)(i,{path:`events/past`,element:(0,G.jsx)(H.ThursdayCityDashboardPanel,{})}),(0,G.jsx)(i,{path:`events/refund-requests`,element:(0,G.jsx)(qa,{})}),(0,G.jsx)(i,{path:`referrals`,element:(0,G.jsx)(Ja,{})}),(0,G.jsx)(i,{path:`edit`,element:(0,G.jsx)(H.ThursdayCityEditPanel,{})}),(0,G.jsx)(i,{path:`managers`,element:(0,G.jsx)(H.ThursdayCityManagersPanel,{})}),(0,G.jsx)(i,{path:`network/*`,element:(0,G.jsx)(Qa,{})}),(0,G.jsx)(i,{path:`hosts`,element:(0,G.jsx)(Ka,{})}),(0,G.jsx)(i,{path:`analytics/ga4`,element:(0,G.jsx)(H.ThursdayCityAnalyticsGa4Panel,{})}),(0,G.jsx)(i,{path:`analytics/facebook-pixel`,element:(0,G.jsx)(H.ThursdayCityAnalyticsFacebookPanel,{})}),(0,G.jsx)(i,{path:`analytics/snapchat-pixel`,element:(0,G.jsx)(H.ThursdayCityAnalyticsSnapchatPanel,{})}),(0,G.jsx)(i,{path:`analytics/tiktok-pixel`,element:(0,G.jsx)(H.ThursdayCityAnalyticsTiktokPanel,{})}),(0,G.jsx)(i,{path:`orders`,element:(0,G.jsx)(H.ThursdayCityOrdersPanel,{})})]}),(0,G.jsx)(i,{path:`events/add`,element:(0,G.jsx)(H.EventFormPage,{})}),(0,G.jsx)(i,{path:`events/:id/edit`,element:(0,G.jsx)(H.EventFormPage,{})}),(0,G.jsx)(i,{path:`events/past`,element:(0,G.jsx)(Ya,{})}),(0,G.jsx)(i,{path:`events/refund-requests`,element:(0,G.jsx)(qa,{})}),(0,G.jsxs)(i,{path:`events/:eventId`,element:(0,G.jsx)(He,{}),children:[(0,G.jsx)(i,{index:!0,element:(0,G.jsx)($a,{})}),(0,G.jsx)(i,{path:`setup`,element:(0,G.jsx)(eo,{})}),(0,G.jsx)(i,{path:`advertising-links`,element:(0,G.jsx)(ho,{})}),(0,G.jsx)(i,{path:`cross-sell`,element:(0,G.jsx)(go,{})}),(0,G.jsx)(i,{path:`edit/:section`,element:(0,G.jsx)(to,{})}),(0,G.jsx)(i,{path:`messaging/*`,element:(0,G.jsx)(no,{})}),(0,G.jsx)(i,{path:`followers/*`,element:(0,G.jsx)(io,{})}),(0,G.jsx)(i,{path:`reps/*`,element:(0,G.jsx)(ao,{})}),(0,G.jsx)(i,{path:`co-promoters/*`,element:(0,G.jsx)(oo,{})}),(0,G.jsx)(i,{path:`integrations/*`,element:(0,G.jsx)(so,{})}),(0,G.jsx)(i,{path:`customers/*`,element:(0,G.jsx)(co,{})}),(0,G.jsx)(i,{path:`analytics/*`,element:(0,G.jsx)(lo,{})}),(0,G.jsx)(i,{path:`on-the-day`,element:(0,G.jsx)(Q,{})}),(0,G.jsx)(i,{path:`scanner-staff`,element:(0,G.jsx)(_o,{})}),(0,G.jsx)(i,{path:`promo-reps`,element:(0,G.jsx)(vo,{})}),(0,G.jsx)(i,{path:`check-in-activity`,element:(0,G.jsx)(yo,{})}),(0,G.jsx)(i,{path:`orders`,element:(0,G.jsx)(bo,{})}),(0,G.jsx)(i,{path:`on-the-day/iphone-scanner`,element:(0,G.jsx)(Q,{})}),(0,G.jsx)(i,{path:`on-the-day/android-scanner`,element:(0,G.jsx)(Q,{})}),(0,G.jsx)(i,{path:`on-the-day/export-barcodes`,element:(0,G.jsx)(xo,{})}),(0,G.jsx)(i,{path:`status/*`,element:(0,G.jsx)(uo,{})}),(0,G.jsx)(i,{path:`metrics`,element:(0,G.jsx)(fo,{})}),(0,G.jsx)(i,{path:`history`,element:(0,G.jsx)(po,{})}),(0,G.jsx)(i,{path:`host-splits`,element:(0,G.jsx)(mo,{})}),(0,G.jsx)(i,{path:`posts/create`,element:(0,G.jsx)(Za,{})}),(0,G.jsx)(i,{path:`promo-codes`,element:(0,G.jsx)(So,{})}),(0,G.jsx)(i,{path:`check-in-scanner`,element:(0,G.jsx)(Co,{})}),(0,G.jsx)(i,{path:`email-log`,element:(0,G.jsx)($,{})}),(0,G.jsx)(i,{path:`manage-posts`,element:(0,G.jsx)($,{})}),(0,G.jsx)(i,{path:`challenges`,element:(0,G.jsx)(ro,{})}),(0,G.jsx)(i,{path:`venue-fees`,element:(0,G.jsx)(wo,{})}),(0,G.jsx)(i,{path:`partner`,element:(0,G.jsx)(To,{})})]}),(0,G.jsx)(i,{path:`posts/add`,element:(0,G.jsx)(Xa,{})}),(0,G.jsx)(i,{path:`posts/:postId/edit`,element:(0,G.jsx)(Xa,{})})]}),(0,G.jsx)(i,{path:`orders`,element:(0,G.jsx)(H.OrdersPage,{})}),(0,G.jsx)(i,{path:`orders/:bookingId`,element:(0,G.jsx)(Eo,{})}),(0,G.jsx)(i,{path:`orders/:bookingId/refund`,element:(0,G.jsx)(Do,{})}),(0,G.jsx)(i,{path:`api-keys`,element:(0,G.jsx)(Un,{allowedRoles:[],children:(0,G.jsx)(H.ApiKeysPage,{})})}
3),(0,G.jsx)(i,{path:`autopilot`,element:(0,G.jsx)(Vo,{})}),(0,G.jsx)(i,{path:`autopilot/tasks`,element:(0,G.jsx)(Ho,{})}),(0,G.jsx)(i,{path:`autopilot/tasks/:id`,element:(0,G.jsx)(Uo,{})}),(0,G.jsx)(i,{path:`autopilot/actions`,element:(0,G.jsx)(Wo,{})}),(0,G.jsx)(i,{path:`autopilot/cost`,element:(0,G.jsx)(Go,{})}),(0,G.jsx)(i,{path:`autopilot/settings`,element:(0,G.jsx)(Ko,{})}),(0,G.jsx)(i,{path:`autopilot/mcp`,element:(0,G.jsx)(qo,{})}),(0,G.jsx)(i,{path:`autopilot/mcp-usage`,element:(0,G.jsx)(Jo,{})}),(0,G.jsx)(i,{path:`settings`,element:(0,G.jsx)(H.SettingsPage,{})}),(0,G.jsx)(i,{path:`settings/admins`,element:(0,G.jsx)(Oo,{})}),(0,G.jsx)(i,{path:`settings/analytics`,element:(0,G.jsx)(ko,{})}),(0,G.jsx)(i,{path:`settings/catalogue-feed`,element:(0,G.jsx)(Ao,{})}),(0,G.jsx)(i,{path:`settings/partners`,element:(0,G.jsx)(Po,{})}),(0,G.jsx)(i,{path:`settings/partners/:partnerId`,element:(0,G.jsx)(Io,{})}),(0,G.jsx)(i,{path:`settings/api-access`,element:(0,G.jsx)(Lo,{})}),(0,G.jsx)(i,{path:`settings/tradedoubler`,element:(0,G.jsx)(Fo,{})}),(0,G.jsx)(i,{path:`settings/api-access/all-requests`,element:(0,G.jsx)(X,{children:(0,G.jsx)(Bo,{})})}),(0,G.jsx)(i,{path:`consent`,element:(0,G.jsx)(X,{children:(0,G.jsx)(jo,{})})}),(0,G.jsx)(i,{path:`growth/feature-flags`,element:(0,G.jsx)(X,{children:(0,G.jsx)(Mo,{})})}),(0,G.jsx)(i,{path:`growth/event-tags`,element:(0,G.jsx)(X,{children:(0,G.jsx)(No,{})})}),(0,G.jsx)(i,{path:`growth/inference-logs`,element:(0,G.jsx)(a,{to:`/admin/growth/event-tags?tab=inference-logs`,replace:!0})}),(0,G.jsx)(i,{path:`activity/log`,element:(0,G.jsx)(X,{children:(0,G.jsx)(Ro,{})})}),(0,G.jsx)(i,{path:`activity/users`,element:(0,G.jsx)(X,{children:(0,G.jsx)(zo,{})})}),(0,G.jsx)(i,{path:`users/roles`,element:(0,G.jsx)(Dn,{children:(0,G.jsx)(H.RoleManagementPage,{})})}),(0,G.jsx)(i,{path:`settings/departments`,element:(0,G.jsx)(Ne,{area:`/admin/grant-management`,children:(0,G.jsx)(H.DepartmentsPage,{})})}),(0,G.jsx)(i,{path:`referrals`,element:(0,G.jsx)(Va,{})}),(0,G.jsx)(i,{path:`game`,element:(0,G.jsx)(Ha,{})}),(0,G.jsx)(i,{path:`events/metrics`,element:(0,G.jsx)(H.AllEventsMetricsPage,{})}),(0,G.jsx)(i,{path:`events/add`,element:(0,G.jsx)(H.EventFormPage,{})}),(0,G.jsx)(i,{path:`events/:id/edit`,element:(0,G.jsx)(H.EventFormPage,{})}),(0,G.jsxs)(i,{path:`events/:eventId`,element:(0,G.jsx)(He,{}),children:[(0,G.jsx)(i,{index:!0,element:(0,G.jsx)($a,{})}),(0,G.jsx)(i,{path:`setup`,element:(0,G.jsx)(eo,{})}),(0,G.jsx)(i,{path:`advertising-links`,element:(0,G.jsx)(ho,{})}),(0,G.jsx)(i,{path:`cross-sell`,element:(0,G.jsx)(go,{})}),(0,G.jsx)(i,{path:`edit/:section`,element:(0,G.jsx)(to,{})}),(0,G.jsx)(i,{path:`messaging/*`,element:(0,G.jsx)(no,{})}),(0,G.jsx)(i,{path:`followers/*`,element:(0,G.jsx)(io,{})}),(0,G.jsx)(i,{path:`reps/*`,element:(0,G.jsx)(ao,{})}),(0,G.jsx)(i,{path:`co-promoters/*`,element:(0,G.jsx)(oo,{})}),(0,G.jsx)(i,{path:`integrations/*`,element:(0,G.jsx)(so,{})}),(0,G.jsx)(i,{path:`customers/*`,element:(0,G.jsx)(co,{})}),(0,G.jsx)(i,{path:`analytics/*`,element:(0,G.jsx)(lo,{})}),(0,G.jsx)(i,{path:`on-the-day`,element:(0,G.jsx)(Q,{})}),(0,G.jsx)(i,{path:`scanner-staff`,element:(0,G.jsx)(_o,{})}),(0,G.jsx)(i,{path:`promo-reps`,element:(0,G.jsx)(vo,{})}),(0,G.jsx)(i,{path:`check-in-activity`,element:(0,G.jsx)(yo,{})}),(0,G.jsx)(i,{path:`orders`,element:(0,G.jsx)(bo,{})}),(0,G.jsx)(i,{path:`on-the-day/iphone-scanner`,element:(0,G.jsx)(Q,{})}),(0,G.jsx)(i,{path:`on-the-day/android-scanner`,element:(0,G.jsx)(Q,{})}),(0,G.jsx)(i,{path:`on-the-day/export-barcodes`,element:(0,G.jsx)(xo,{})}),(0,G.jsx)(i,{path:`status/*`,element:(0,G.jsx)(uo,{})}),(0,G.jsx)(i,{path:`metrics`,element:(0,G.jsx)(fo,{})}),(0,G.jsx)(i,{path:`history`,element:(0,G.jsx)(po,{})}),(0,G.jsx)(i,{path:`host-splits`,element:(0,G.jsx)(mo,{})}),(0,G.jsx)(i,{path:`posts/create`,element:(0,G.jsx)(Za,{})}),(0,G.jsx)(i,{path:`promo-codes`,element:(0,G.jsx)(So,{})}),(0,G.jsx)(i,{path:`check-in-scanner`,element:(0,G.jsx)(Co,{})}),(0,G.jsx)(i,{path:`email-log`,element:(0,G.jsx)($,{})}),(0,G.jsx)(i,{path:`manage-posts`,element:(0,G.jsx)($,{})}),(0,G.jsx)(i,{path:`challenges`,element:(0,G.jsx)(ro,{})}),(0,G.jsx)(i,{path:`venue-fees`,element:(0,G.jsx)(wo,{})}),(0,G.jsx)(i,{path:`partner`,element:(0,G.jsx)(To,{})})]}),(0,G.jsx)(i,{path:`hosts`,element:(0,G.jsx)(a,{to:`/admin/host-onboarding`,replace:!0})}),Ie.filter(e=>!e.path.startsWith(`/admin/dashboard`)&&!e.path.startsWith(`/admin/orders`)&&!e.path.startsWith(`/admin/settings`)&&e.path!==`/admin/events`&&e.path!==`/admin/events/metrics`&&e.path!==`/admin/events/add`&&e.path!==`/admin/events/:id`&&e.path!==`/admin/events/:id/edit`&&e.path!==`/admin/events/:id/waitlist`&&e.path!==`/admin/hosts`).map(e=>{let t=H[e.component];if(!t)return null;let n=$o.has(e.path)?(0,G.jsx)(es,{children:(0,G.jsx)(t,{})}):(0,G.jsx)(t,{});return(0,G.jsx)(i,{path:e.path.replace(`/admin/`,``),element:n},e.path)})]}),(0,G.jsx)(i,{path:`*`,element:(0,G.jsx)(Ai,{})})]})},e.pathname.split(`/`).slice(0,4).join(`/`))}),c&&r&&(0,G.jsx)(ln,{theme:`dark`,onOpenPrivacyChoices:l}),t?n&&le(n)?(0,G.jsx)(C,{variant:`admin`},`admin`):null:(0,G.jsx)(C,{variant:`user`},`user`),(0,G.jsx)(ne,{}),(0,G.jsx)(dn,{})]})})})})})},ns=5,rs=new Set,is=0;function as(){is=0}function os(e){let t=e.target;if(!(t instanceof HTMLImageElement))return;let n=t.src;if(!n||n===``||n.startsWith(`data:`)||rs.has(n)||is>=ns)return;rs.add(n),is++;let r={url:n,pageUrl:window.location.pathname};try{fetch(`${L}/client-errors`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(r),credentials:`omit`}).catch(()=>{})}catch{}}function ss(){document.addEventListener(`error`,os,!0),window.addEventListener(`popstate`,as);let e=history.pushState.bind(history);history.pushState=(...t)=>{e(...t),as()};let t=history.replaceState.bind(history);history.replaceState=(...e)=>{t(...e),as()}}var cs=5,ls=!1,us=!1;function ds(e,t){let n=t;for(let t=0;n&&t<=cs;t++){if(n.parentNode===e)return n;n=n.parentNode}return null}function fs(){if(typeof document>`u`)return`unknown`;let e=document.documentElement.className;return e.includes(`translated-ltr`)||e.includes(`translated-rtl`)?`google`:document.querySelector(`[_msttexthash]`)?`microsoft`:document.querySelector(`font:not([face]):not([size]):not([color])`)?`font-wrapper`:`none`}function ps(e){if(!ls){ls=!0;try{let t=[`translator=${fs()}`,`documentLang=${document.documentElement.lang||`unset`}`,`navigatorLang=${typeof navigator>`u`?`unknown`:navigator.language}`].join(` `);fetch(`${L}/client-errors`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({kind:`runtime`,boundary:`translation-dom-guard`,message:`translation-dom-guard: repaired ${e} (${t})`,pageUrl:window.location.href}),credentials:`omit`,keepalive:!0}
3).catch(()=>void 0)}catch{}}}function ms(){if(typeof Node>`u`||us)return()=>void 0;us=!0;let e=Node.prototype.insertBefore,t=Node.prototype.removeChild;return Node.prototype.insertBefore=function(t,n){if(n&&n.parentNode!==this){ps(`insertBefore`);let r=ds(this,n);return r?e.call(this,t,r):e.call(this,t,null)}return e.call(this,t,n)},Node.prototype.removeChild=function(e){if(e.parentNode!==this){ps(`removeChild`);let n=ds(this,e);return n&&t.call(this,n),e}return t.call(this,e)},()=>{Node.prototype.insertBefore=e,Node.prototype.removeChild=t,us=!1,ls=!1}}ms(),x(),ss(),ke();var hs=document.querySelector(`#root`);if(!hs)throw Error(`Failed to find the root element`);var gs=`/`,_s=gs===`/`?``:gs.replace(/\/$/,``),vs=f([{path:`*`,element:(0,G.jsx)(ts,{})}],{basename:_s});Ke.createRoot(hs).render((0,G.jsx)(U.StrictMode,{children:(0,G.jsx)(T,{children:(0,G.jsx)(l,{router:vs})})}));

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.