@riverbankcms/sdk 0.160.0 → 0.162.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-CoqeotCL.d.ts → BlocksIslandsHydrator-PZUoA872.d.ts} +1 -1
- package/dist/_dts/{Page-C0ENVLCF.d.ts → Page-CdQS6C7i.d.ts} +211 -9
- package/dist/_dts/{SdkPreviewMode-jZK0A49V.d.ts → SdkPreviewMode-CNGO-5f1.d.ts} +59 -92
- package/dist/_dts/{auth-contract-FPg0-2MC.d.ts → auth-contract-CgJ5nMaH.d.ts} +2 -0
- package/dist/_dts/{client-uMMuPq9V.d.ts → client-DGa53rjL.d.ts} +11 -3
- package/dist/_dts/{content-types-D6nXGqdQ.d.ts → content-types-K9R7P-KF.d.ts} +2 -2
- package/dist/_dts/{contracts-Bnmj1nxu.d.ts → contracts-CyBaPaIq.d.ts} +17 -5
- package/dist/_dts/{footerPageOutline-CeLjFX8b.d.ts → footerPageOutline-B6jmKmon.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-nyU8q02J.d.ts → generatePageMetadata-iemoR3AN.d.ts} +2 -2
- package/dist/_dts/{index-BaaGBY1v.d.ts → index-8CN0Nd-Z.d.ts} +2 -2
- package/dist/_dts/{index-nVoi_74l.d.ts → index-BtnsA14K.d.ts} +10 -20
- package/dist/_dts/{index-lkpjIg5i.d.ts → index-C39F9KaB.d.ts} +13 -2
- package/dist/_dts/{index-C5xslEBn.d.ts → index-DEu85xBt.d.ts} +1 -1
- package/dist/_dts/{schema-D0bNcPWK.d.ts → index-DI2yaSPY.d.ts} +22873 -19918
- package/dist/_dts/{types-D8czmbQF.d.ts → index-Dbd0Sn0G.d.ts} +4356 -1827
- package/dist/_dts/{index-CEaKil7G.d.ts → index-Du1IRglc.d.ts} +2 -2
- package/dist/_dts/{index-DahMwisK.d.ts → index-Jlcq6w69.d.ts} +3 -3
- package/dist/_dts/{index-Bg64CkV-.d.ts → index-Wm62sXf2.d.ts} +4 -4
- package/dist/_dts/{loadContent-CYLmzvLq.d.ts → loadContent-BPfAAZDW.d.ts} +13 -10
- package/dist/_dts/{resolvePageContent-DqnxChOs.d.ts → resolvePageContent-DWbrtKf8.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/keep-alive.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/session.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{session-Ba2CsnK5.d.ts → session-C_gtSFyZ.d.ts} +2 -1
- package/dist/_dts/{types-DSgmJ15W.d.ts → types-CVv2H4AT.d.ts} +7 -7
- package/dist/_dts/{types-CFrYuXYP.d.ts → types-CfNG5koF.d.ts} +4 -2
- package/dist/_dts/{types-Dm-KW7nj.d.ts → types-ClZ-BQL_.d.ts} +3 -3
- package/dist/_dts/{validation-Bmb4WnHg.d.ts → validation-BJ6Lf_Dr.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DZRKi6tT.mjs → BlocksIslandsHydrator-COqlgWYU.mjs} +23 -21
- package/dist/client/{BookingMailingListNote-C00sLLdL.mjs → BookingMailingListNote-CFYPDEHH.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-CHSi9b3E.mjs → CalendarNavigationChevron-COBVxgHb.mjs} +6 -6
- package/dist/client/{CheckboxChoice-Bhm6RAUL.mjs → CheckboxChoice-C7X9dJ8A.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-CaN-7ui7.mjs → DemoBookingPortalAccess-CvT0E9AR.mjs} +26 -10
- package/dist/client/{DemoPortalSignInLink-ClxN5_xZ.mjs → DemoPortalSignInLink-EBOBN5dT.mjs} +1 -1
- package/dist/client/{EventCalendar.client-BncvSa1n.mjs → EventCalendar.client-U6pKcntV.mjs} +16 -17
- package/dist/client/{EventCombined.client-DluBxVVu.mjs → EventCombined.client-CNzwEHws.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-BiJrMtfp.mjs → EventEmbeddedCheckoutStep-B9yAWV_k.mjs} +1 -1
- package/dist/client/{EventItem-CXhnT9pF.mjs → EventItem-M5rpaHxi.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-V-dtoDlD.mjs → EventListWeekNavigation-D4ieBLDY.mjs} +1 -1
- package/dist/client/{EventListing.client-DPO6SZbx.mjs → EventListing.client-B8F40Rmn.mjs} +3 -3
- package/dist/client/{EventListing.view-B-Yi5JZS.mjs → EventListing.view-k4lhuCn5.mjs} +15 -6
- package/dist/client/{EventRegistrationPayment-Dc3Fnlnw.mjs → EventRegistrationPayment-C3g8_Hqb.mjs} +25 -13
- package/dist/client/LocationMapActions-CAjt7qVo.mjs +62 -0
- package/dist/client/MapDrawingSvg-_aIK2ojv.mjs +200 -0
- package/dist/client/{Page-7PkzO04N.mjs → Page-DJBIQBOw.mjs} +2555 -536
- package/dist/client/{StepIndicator-DiD6euZ8.mjs → StepIndicator-CFacB1z6.mjs} +2 -2
- package/dist/client/{TabBarFragment-BHd8GN8y.mjs → TabBarFragment-BLsfQskO.mjs} +1 -1
- package/dist/client/ThemedButton-BWsDgjMC.mjs +2243 -0
- package/dist/client/{accordion-2m27DsIk.mjs → accordion-CtO2XF7M.mjs} +1 -1
- package/dist/client/{booking-form.client-BddWV5w1.mjs → booking-form.client-RICCQ0h2.mjs} +137 -60
- package/dist/client/{bookingForm-bcdXQjmw.mjs → bookingForm-SvjLPx8i.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-D7nj9I0y.mjs → carousel-BR-zCD3O.mjs} +2 -2
- package/dist/client/{carousel.client-AffDJo_s.mjs → carousel.client-CEWtoZd3.mjs} +1 -1
- package/dist/client/{cart-PN6yCw1H.mjs → cart-C6YpKbZZ.mjs} +3 -3
- package/dist/client/{cart.client-D4t1f0cJ.mjs → cart.client-dC938WrX.mjs} +1 -1
- package/dist/client/{checkout-CsTwXVSb.mjs → checkout-Dy9RlREI.mjs} +3 -3
- package/dist/client/{checkout.client-BhQE3zY7.mjs → checkout.client-CefG0d2F.mjs} +1 -1
- package/dist/client/client.mjs +37 -71
- package/dist/client/{context-BLAvalAa.mjs → context-BFwxgZpB.mjs} +28 -1
- package/dist/client/{cta-CUXhX_D7.mjs → cta-DtA42Xio.mjs} +1 -1
- package/dist/client/{dateFormatting-BHIHxNuo.mjs → dateFormatting-yP1B7F0O.mjs} +39 -2
- package/dist/client/{demoPortalMagicLink-R-awbk_0.mjs → demoPortalMagicLink-WOiT5Ryi.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-9Q93uvTo.mjs → enhanceHeaderSection-Dh8c_Lq-.mjs} +3 -3
- package/dist/client/{event-details.client-BS1WtG-a.mjs → event-details.client-BFgsLqTj.mjs} +3 -17
- package/dist/client/{event-registration.client-BXndwsET.mjs → event-registration.client-BaXZ1-Ky.mjs} +16 -16
- package/dist/client/{eventCalendar-HyoOt1Qz.mjs → eventCalendar-COLwF80U.mjs} +4 -4
- package/dist/client/{eventCombined-sdG5oEaH.mjs → eventCombined-D3Ltwu03.mjs} +4 -4
- package/dist/client/{eventDetails-FFAknE4w.mjs → eventDetails-CBrkimXu.mjs} +2 -2
- package/dist/client/{eventListing-CGK6urk3.mjs → eventListing-CedKVA1S.mjs} +4 -4
- package/dist/client/{eventRegistration-VhrvCs4l.mjs → eventRegistration-DkQQfR1b.mjs} +4 -4
- package/dist/client/{form-C-B5O_ko.mjs → form-XFy9uXSJ.mjs} +3 -3
- package/dist/client/{form.client-DoZVcl8d.mjs → form.client-B0iancFK.mjs} +4 -4
- package/dist/client/{form.parts-mttKpgif.mjs → form.parts-DMbolu9Y.mjs} +3 -3
- package/dist/client/{formatDate-xUSCknEO.mjs → formatDate-Jm5MQOCA.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-BHUEXsaI.mjs → headerSection-WjlECjtV.mjs} +2 -2
- package/dist/client/{mediaAssets-BOj-Co0B.mjs → mediaAssets-BkoW_PEn.mjs} +1 -1
- package/dist/client/{mediaContext-DThoeEBU.mjs → mediaContext-CNzWmoA4.mjs} +1 -1
- package/dist/client/{newsletter-form.client-D_n0rftg.mjs → newsletter-form.client-D-XwJTjN.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DKHye4IE.mjs → newsletter-form.parts-H92f30y0.mjs} +2 -2
- package/dist/client/{newsletterForm-tEaYelzx.mjs → newsletterForm-DMuxzu6I.mjs} +3 -3
- package/dist/client/{noop-B610YKEx.mjs → noop-B3RNPVrt.mjs} +313 -3
- package/dist/client/portal/client.mjs +1116 -85
- package/dist/client/{product-detail.client-DUf5x5Jt.mjs → product-detail.client-B3HuuykE.mjs} +1 -1
- package/dist/client/{product-list.client-Cqp1BPTV.mjs → product-list.client-CzsDrHQO.mjs} +1 -1
- package/dist/client/{productDetail-B8bBiogP.mjs → productDetail-CbBUVWgd.mjs} +3 -3
- package/dist/client/{productList-BKN4D-1z.mjs → productList-vqOKH2mh.mjs} +3 -3
- package/dist/client/{propsDecoder-2nNZh2Oe.mjs → propsDecoder-CkSUep5a.mjs} +4 -28
- package/dist/client/{registry.server-BAm4RPNJ.mjs → registry.server-cZ24QwtW.mjs} +607 -210
- package/dist/client/rendering/client.mjs +28 -28
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +18 -9
- package/dist/client/{richText-coerce-Cv-qomNB.mjs → richText-coerce-DDcCKvBJ.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-C5u8MbAA.mjs → routeIslandApiConfig-DYBioANh.mjs} +1 -1
- package/dist/client/{ThemedButton-C22C9cCF.mjs → schema-DNHLlze-.mjs} +7307 -8363
- package/dist/client/{shop-DZNC0VKk.mjs → shop-CF0dhnfH.mjs} +3 -3
- package/dist/client/{shop-commerce-DdX4LSa3.mjs → shop-commerce-DQznNBEo.mjs} +11 -11
- package/dist/client/{shop-commerce-store-BJtrZov9.mjs → shop-commerce-store-Ba8zPlIg.mjs} +1 -1
- package/dist/client/{shop.client-DmDd-igg.mjs → shop.client-DqfYoqWH.mjs} +12 -12
- package/dist/client/{shop.interactive-5SnnDHz3.mjs → shop.interactive-CreQ0I7i.mjs} +38 -183
- package/dist/client/{shopShared-CPqUlAh9.mjs → shopShared-D-yh-P7g.mjs} +2 -2
- package/dist/client/site-styles-B9HgmY07.mjs +11619 -0
- package/dist/client/{timetableModel-C19rcHEw.mjs → timetableModel-DCdVErTJ.mjs} +149 -8
- package/dist/client/{useAvailableSlots-BjbJXotk.mjs → useAvailableSlots-Cvgdp2DH.mjs} +8 -11
- package/dist/client/{useBookingNowIso-CMgfL7YJ.mjs → useBookingNowIso-DrTnGNzD.mjs} +1 -1
- package/dist/client/{useDiscountApply-KG8jB7WC.mjs → useDiscountApply-CULjnXGl.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-DK2w_i0a.mjs → useDiscountCodeUi-Gn_m7e0o.mjs} +1 -1
- package/dist/client/{useEventPagination-DW6MCirb.mjs → useEventPagination-CsysCF22.mjs} +8 -21
- package/dist/client/{view-CseyBW07.mjs → view-BpBjo9Te.mjs} +71 -59
- package/dist/client/{view-CkUn3Y0Y.mjs → view-DMyTchi7.mjs} +4 -4
- package/dist/client/wizardSteps-BO2OmMO9.mjs +6604 -0
- package/dist/preview-next/before-render.mjs +7 -6
- package/dist/preview-next/chrome.css +2 -0
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-lUHBrzHv.mjs → EventEmbeddedCheckoutStep-DLsSmZbO.mjs} +2 -1
- package/dist/preview-next/client/LocationPickerEnvironment-QtSG2Bl-.mjs +138 -0
- package/dist/preview-next/client/MapLibreEditMap-B-rohNcG.mjs +488 -0
- package/dist/preview-next/client/{PreviewEditorSidebar-DWyUGCAG.mjs → PreviewEditorSidebar-ChrW9VEo.mjs} +269 -1100
- package/dist/preview-next/client/{PreviewEditorUI-Wq0b3Daw.mjs → PreviewEditorUI-VaHvYtrA.mjs} +10 -190
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BtZPcwYV.mjs → SdkPreviewModeRuntime-Bz7jR6nl.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-wSI_R361.mjs → SdkPreviewModeRuntime-DWwktlWs.mjs} +639 -536
- package/dist/preview-next/client/{ThemedButton-DzeycIlD.mjs → ThemedButton-CHKOWXxl.mjs} +1706 -692
- package/dist/preview-next/client/lucide-react-CA9cpo0P.mjs +51984 -0
- package/dist/preview-next/client/maplibre-gl-DykfOYYn.mjs +34208 -0
- package/dist/preview-next/client/{SiteChromeCustomizeContext-Hc4pYnNe.mjs → previewAuthStore-C0VUwEHz.mjs} +81363 -136296
- package/dist/preview-next/client/{previewChromeSurface-Corq4AG7.mjs → previewChromeSurface-Dhyx2YrS.mjs} +1 -1
- package/dist/preview-next/client/result-BjJUoxUF.mjs +16 -0
- package/dist/preview-next/client/rolldown-runtime-CE6sIgz8.mjs +34 -0
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CWymRWhK.mjs → sdk-runtime-C2GWOCyj.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-DHyzUpv4.mjs +12833 -0
- package/dist/preview-next/client/{spinner-C4If5Y-O.mjs → spinner-BeR2S8oG.mjs} +2 -1
- package/dist/preview-next/{constants-D8Ya7bO4.mjs → constants-Bf-vqdKH.mjs} +2 -1
- package/dist/preview-next/editor-base.css +2 -2
- package/dist/preview-next/keepAlive.mjs +3 -3
- package/dist/preview-next/middleware.mjs +7 -3
- package/dist/preview-next/{refresh-contract-CvmNqZ1Q.mjs → refresh-contract-uQ6BXgLJ.mjs} +5 -0
- package/dist/preview-next/{route-contract-8csADeIT.mjs → route-contract-CkrFDMrl.mjs} +434 -203
- package/dist/preview-next/{session-BgkrPqu0.mjs → session-P1R_ajT7.mjs} +12 -2
- package/dist/preview-next/session.mjs +1 -1
- package/dist/server/{Block.shared-D1_gonwM.mjs → Block.shared-DxvNGDig.mjs} +4 -4
- package/dist/server/{bindings-CFmJg5lm.mjs → bindings-BuhKvYkE.mjs} +2 -1
- package/dist/server/{client-DPsi0Dai.mjs → client-BobW6DOz.mjs} +39 -72
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{siteChromeOverlayClearance-DALIAMwo.mjs → effectiveNavLinkStyle-B-MKSt0p.mjs} +2060 -1680
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-RMCcuVU_.mjs → loadContent-CCG_3mbY.mjs} +14 -5
- package/dist/server/loadPage-Bk9HDh9K.mjs +2 -0
- package/dist/server/{loadPage-DhDGzj7t.mjs → loadPage-jntGoMrf.mjs} +3 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-OxY5FMuy.mjs → overrideResolution-BBOlgn4Z.mjs} +1 -1
- package/dist/server/{overrides-Bz_A6sB9.mjs → overrides-DByQwIyW.mjs} +803 -412
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-B_1vrSru.mjs → prebuild-DrwcTk2t.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-B7ukYXXR.mjs → prefetchBlockData-LfgxSJYE.mjs} +156 -89
- package/dist/server/{publicProducts-Djbpc81A.mjs → publicProducts-8A3T5v4M.mjs} +685 -166
- package/dist/server/{registry-eFjKtEhF.mjs → registry-Digv02oV.mjs} +780 -1052
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-DYvEa9c5.mjs → resolveBlockData-C23t8-77.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-C3dJ5UkL.mjs → schema-BiqpDRwB.mjs} +4805 -3561
- package/dist/server/server.mjs +3 -3
- package/dist/server/site-styles-DrkprQPL.mjs +755 -0
- package/dist/server/siteChromeOverlayClearance-BmKKkkbh.mjs +750 -0
- package/dist/server/{src-C5Mu-z0F.mjs → src-08GY1njw.mjs} +1060 -44
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-ruoyXb_0.mjs → themeAdmission-CSd_Vusz.mjs} +151 -53
- package/dist/server/{validation-B-Xar8QS.mjs → validation-DdUTkBOZ.mjs} +2 -2
- package/dist/server/{version-Bg7VHK3i.mjs → version-DdIOqIDe.mjs} +1 -1
- package/dist/styles/index.css +1029 -41
- package/package.json +1 -1
- package/dist/_dts/index-Blwl7yl6.d.ts +0 -13
- package/dist/client/LeafletStaticMap-ClZCCzAm.mjs +0 -135
- package/dist/client/location-map.client-Cylb_MHw.mjs +0 -28
- package/dist/client/location-map.view-Cx4Bl7ij.mjs +0 -345
- package/dist/client/locationMap-QnKJi-nZ.mjs +0 -15
- package/dist/client/renderableMediaAssetAdmission-DGjBr_e-.mjs +0 -152
- package/dist/client/wizardSteps-zgq10lN1.mjs +0 -17181
- package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +0 -1359
- package/dist/server/loadPage-DUPP51C-.mjs +0 -2
- package/dist/server/media-CcHwZkdJ.mjs +0 -243
|
@@ -1,16 +1,61 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { d as formatDateKey, f as getDayOfWeek, i as buildTimetableModel$1, v as isToday } from "./src-1PJxc8KO.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { cn as textColorStyle, j as parseThemeButtonVariantId } from "./schema-DNHLlze-.mjs";
|
|
4
|
+
import { C as clsx, i as ThemedButtonLink, n as ThemedAuthoredButton, r as ThemedButton } from "./ThemedButton-BWsDgjMC.mjs";
|
|
4
5
|
import { c as assertNever } from "./src-VIsPY-kw.mjs";
|
|
5
|
-
import { An as isEventFull, Kt as RichText, Mr as listItemPresentation, On as getEventAvailabilityStatus, Pr as listLookSlot, _n as formatEventTimeRange, bn as resolveEventTimeZone, cn as eventDateOptions, fn as formatEventClockLabel, vn as formatTime, wn as formatEventRemainingPlaces, xr as resolveDateRuntimeContext, yn as groupEventsByDate } from "./wizardSteps-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
6
|
+
import { An as isEventFull, Kt as RichText, Mr as listItemPresentation, On as getEventAvailabilityStatus, Pr as listLookSlot, _n as formatEventTimeRange, bn as resolveEventTimeZone, cn as eventDateOptions, fn as formatEventClockLabel, vn as formatTime, wn as formatEventRemainingPlaces, xr as resolveDateRuntimeContext, yn as groupEventsByDate } from "./wizardSteps-BO2OmMO9.mjs";
|
|
7
|
+
import { Dt as parseLocalScheduleTime, Et as parseBookingLocalDate, Mt as toScheduledBookingDateTime, St as formatBookingCompactEnglishTime, ut as formatDate } from "./noop-B3RNPVrt.mjs";
|
|
8
|
+
import { t as LocationMapActions } from "./LocationMapActions-CAjt7qVo.mjs";
|
|
9
|
+
import { n as resolveEventLinkProps } from "./cta-DtA42Xio.mjs";
|
|
10
|
+
import { a as buildMonthDay, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-COBVxgHb.mjs";
|
|
11
|
+
import { i as formatEventTeacherLine, r as EventItem } from "./EventItem-M5rpaHxi.mjs";
|
|
12
|
+
import { r as readableMapDrawing, t as AdmittedMapDrawingSvg } from "./MapDrawingSvg-_aIK2ojv.mjs";
|
|
13
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-DDcCKvBJ.mjs";
|
|
11
14
|
import "react";
|
|
12
15
|
import { z } from "zod";
|
|
13
16
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
+
//#region ../core/src/opening-hours.ts
|
|
18
|
+
const openingHoursWeekdayLabels = {
|
|
19
|
+
monday: "Monday",
|
|
20
|
+
tuesday: "Tuesday",
|
|
21
|
+
wednesday: "Wednesday",
|
|
22
|
+
thursday: "Thursday",
|
|
23
|
+
friday: "Friday",
|
|
24
|
+
saturday: "Saturday",
|
|
25
|
+
sunday: "Sunday"
|
|
26
|
+
};
|
|
27
|
+
function formatOpeningHoursTime(value) {
|
|
28
|
+
const time = parseLocalScheduleTime(value);
|
|
29
|
+
return formatBookingCompactEnglishTime(toScheduledBookingDateTime({
|
|
30
|
+
startsAt: new Date(Date.UTC(2e3, 0, 1, time.hour, time.minute)).toISOString(),
|
|
31
|
+
timeZone: "UTC",
|
|
32
|
+
locale: "en-GB"
|
|
33
|
+
}));
|
|
34
|
+
}
|
|
35
|
+
function formatDayHours(day) {
|
|
36
|
+
return day.kind === "closed" ? "Closed" : day.intervals.map((interval) => `${formatOpeningHoursTime(interval.opensAt)} to ${formatOpeningHoursTime(interval.closesAt)}`).join(", ");
|
|
37
|
+
}
|
|
38
|
+
function weekdayRangeLabel(weekdays) {
|
|
39
|
+
const first = weekdays[0];
|
|
40
|
+
const last = weekdays[weekdays.length - 1];
|
|
41
|
+
if (!first || !last) return "";
|
|
42
|
+
return first === last ? openingHoursWeekdayLabels[first] : `${openingHoursWeekdayLabels[first]} to ${openingHoursWeekdayLabels[last]}`;
|
|
43
|
+
}
|
|
44
|
+
/** Monday-first table rows; only adjacent days with identical ranges are grouped. */
|
|
45
|
+
function formatOpeningHoursRows(hours) {
|
|
46
|
+
return (hours?.days ?? []).reduce((rows, day) => {
|
|
47
|
+
const text = formatDayHours(day);
|
|
48
|
+
const previous = rows[rows.length - 1];
|
|
49
|
+
const weekdays = previous?.kind === day.kind && previous.hours === text ? [...previous.weekdays, day.weekday] : [day.weekday];
|
|
50
|
+
const row = {
|
|
51
|
+
kind: day.kind,
|
|
52
|
+
weekdays,
|
|
53
|
+
label: weekdayRangeLabel(weekdays),
|
|
54
|
+
hours: text
|
|
55
|
+
};
|
|
56
|
+
return weekdays.length > 1 ? [...rows.slice(0, -1), row] : [...rows, row];
|
|
57
|
+
}, []);
|
|
58
|
+
}
|
|
14
59
|
const inlineTextMarkSchema = z.discriminatedUnion("kind", [
|
|
15
60
|
z.object({ kind: z.literal("strong") }),
|
|
16
61
|
z.object({ kind: z.literal("emphasis") }),
|
|
@@ -252,6 +297,102 @@ function renderMark(mark, key, child) {
|
|
|
252
297
|
}
|
|
253
298
|
}
|
|
254
299
|
//#endregion
|
|
300
|
+
//#region ../blocks/src/system/runtime/nodes/location-map.view.tsx
|
|
301
|
+
function OpeningHoursTable({ hours, lookLayout }) {
|
|
302
|
+
if (!hours) return null;
|
|
303
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
304
|
+
className: "rb-location-map-hours",
|
|
305
|
+
"data-slot": lookLayout ? "schedule" : void 0,
|
|
306
|
+
children: [/* @__PURE__ */ jsxs("table", { children: [/* @__PURE__ */ jsx("caption", { children: "Opening hours" }), /* @__PURE__ */ jsx("tbody", { children: formatOpeningHoursRows(hours).map((row) => /* @__PURE__ */ jsxs("tr", {
|
|
307
|
+
"data-slot": lookLayout ? "row" : void 0,
|
|
308
|
+
"data-closed": row.kind === "closed" ? true : void 0,
|
|
309
|
+
children: [/* @__PURE__ */ jsx("th", {
|
|
310
|
+
scope: "row",
|
|
311
|
+
"data-slot": lookLayout ? "fact-label" : void 0,
|
|
312
|
+
children: row.label
|
|
313
|
+
}), /* @__PURE__ */ jsx("td", {
|
|
314
|
+
"data-slot": lookLayout ? "fact-value" : void 0,
|
|
315
|
+
children: row.hours
|
|
316
|
+
})]
|
|
317
|
+
}, row.label)) })] }), hours.note ? /* @__PURE__ */ jsx("p", { children: hours.note }) : null]
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
function LocationMapView(props) {
|
|
321
|
+
const { addressText, location } = props;
|
|
322
|
+
const hours = props.showOpeningHours === false ? null : props.openingHours ?? null;
|
|
323
|
+
if (![
|
|
324
|
+
location,
|
|
325
|
+
addressText,
|
|
326
|
+
hours
|
|
327
|
+
].some(Boolean)) return /* @__PURE__ */ jsx("p", {
|
|
328
|
+
className: "rb-caption",
|
|
329
|
+
style: textColorStyle("mutedText"),
|
|
330
|
+
children: props.unresolvedMessage ?? "Location details coming soon."
|
|
331
|
+
});
|
|
332
|
+
return /* @__PURE__ */ jsx(LocationMapDetails, {
|
|
333
|
+
...props,
|
|
334
|
+
openingHours: hours
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
/** The entrance-photo Look leaves the drawing out; Look layouts treat the authored height as a minimum. */
|
|
338
|
+
function LocationMapDrawing(props) {
|
|
339
|
+
return /* @__PURE__ */ jsx(AdmittedMapDrawingSvg, {
|
|
340
|
+
drawing: props.drawing,
|
|
341
|
+
wider: props.wider,
|
|
342
|
+
label: props.addressText ?? void 0,
|
|
343
|
+
height: props.heightPx,
|
|
344
|
+
heightAs: props.lookLayout ? "minimum" : "fixed"
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* `data-map="none"` marks details shown without a drawing (none yet, or the entrance photo
|
|
349
|
+
* takes its place), so map Looks lay the details out on their own instead of beside an empty space.
|
|
350
|
+
*/
|
|
351
|
+
function LocationMapDetails(props) {
|
|
352
|
+
const drawing = props.showMap === false ? null : readableMapDrawing(props.drawing);
|
|
353
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
354
|
+
className: "rb-location-map",
|
|
355
|
+
"data-map": drawing ? "drawing" : "none",
|
|
356
|
+
children: [drawing ? /* @__PURE__ */ jsx(LocationMapDrawing, {
|
|
357
|
+
...props,
|
|
358
|
+
drawing
|
|
359
|
+
}) : null, /* @__PURE__ */ jsxs("div", {
|
|
360
|
+
className: "rb-location-map-details",
|
|
361
|
+
...props.detailsSlot,
|
|
362
|
+
children: [/* @__PURE__ */ jsx(LocationMapPlace, { ...props }), /* @__PURE__ */ jsx(OpeningHoursTable, {
|
|
363
|
+
lookLayout: props.lookLayout,
|
|
364
|
+
hours: props.openingHours ?? null
|
|
365
|
+
})]
|
|
366
|
+
})]
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
/** Address, door note and the directions actions. */
|
|
370
|
+
function LocationMapPlace(props) {
|
|
371
|
+
const address = props.showAddressText && props.addressText ? props.addressText : null;
|
|
372
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
373
|
+
className: "rb-location-map-place",
|
|
374
|
+
"data-slot": props.lookLayout ? "copy" : void 0,
|
|
375
|
+
children: [
|
|
376
|
+
address ? /* @__PURE__ */ jsx("p", {
|
|
377
|
+
className: "rb-location-map-address",
|
|
378
|
+
"data-slot": props.lookLayout ? "headline" : void 0,
|
|
379
|
+
children: address
|
|
380
|
+
}) : null,
|
|
381
|
+
props.doorNote ? /* @__PURE__ */ jsx("p", {
|
|
382
|
+
className: "rb-location-map-door",
|
|
383
|
+
children: props.doorNote
|
|
384
|
+
}) : null,
|
|
385
|
+
props.showDirections ? /* @__PURE__ */ jsx(LocationMapActions, {
|
|
386
|
+
layout: "block",
|
|
387
|
+
location: props.location,
|
|
388
|
+
addressText: props.addressText,
|
|
389
|
+
directionsLabel: props.directionsLabel,
|
|
390
|
+
googleMapsLabel: props.googleMapsLabel
|
|
391
|
+
}) : null
|
|
392
|
+
]
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
//#endregion
|
|
255
396
|
//#region ../blocks/src/system/runtime/nodes/basic.tsx
|
|
256
397
|
const TextNode = ({ value, children, blockContent, inlineTextFallbackPath, ...rest }) => {
|
|
257
398
|
const inlineText = parseInlineTextFromUnknown(value);
|
|
@@ -957,4 +1098,4 @@ function formatDayLabel(date, timeZone, options) {
|
|
|
957
1098
|
}), options);
|
|
958
1099
|
}
|
|
959
1100
|
//#endregion
|
|
960
|
-
export { MonthLookView as a, ButtonNode as c, TextNode as d,
|
|
1101
|
+
export { plainTextToInlineText as _, MonthLookView as a, ButtonNode as c, TextNode as d, LocationMapView as f, parseInlineTextFromUnknown as g, inlineTextToPlainText as h, buildWeekBoardViewProps as i, LinkNode as l, coerceInlineTextWithFallback as m, WeekBoardView as n, CalendarRecurringWeek as o, Text as p, buildWeekBoardNavigationState as r, RecurringSchedule as s, buildTimetableModel as t, RichTextNode as u };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { mr as unsafeAsAppointmentResourceId } from "./schema-DNHLlze-.mjs";
|
|
3
3
|
import { t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { n as useBlockApi } from "./context-
|
|
4
|
+
import { At as resolveBookingTimeZoneId, Ct as formatLocalScheduleDate, Et as parseBookingLocalDate, Ot as parseUtcIsoDateTimeString, Tt as getLocalScheduleDate, mt as formatTime$1, ut as formatDate$1, yt as addLocalScheduleDays } from "./noop-B3RNPVrt.mjs";
|
|
5
|
+
import { n as useBlockApi } from "./context-BFwxgZpB.mjs";
|
|
6
6
|
import { useCallback, useEffect, useReducer, useRef } from "react";
|
|
7
7
|
//#region ../blocks/src/utils/date-formatting.ts
|
|
8
8
|
/**
|
|
@@ -275,17 +275,14 @@ function useAvailableDates({ serviceId, resourceId, timezone, initialDays = 30 }
|
|
|
275
275
|
dispatch({ type: "query-cleared" });
|
|
276
276
|
return;
|
|
277
277
|
}
|
|
278
|
-
const
|
|
279
|
-
const
|
|
280
|
-
|
|
281
|
-
month: now.getMonth() + 1,
|
|
282
|
-
day: now.getDate()
|
|
283
|
-
});
|
|
284
|
-
fetchDates(today, formatLocalScheduleDate(addLocalScheduleDays(parseBookingLocalDate(today), initialDays)), false);
|
|
278
|
+
const today = getLocalScheduleDate(/* @__PURE__ */ new Date(), timezone);
|
|
279
|
+
const endDate = formatLocalScheduleDate(addLocalScheduleDays(today, initialDays));
|
|
280
|
+
fetchDates(formatLocalScheduleDate(today), endDate, false);
|
|
285
281
|
}, [
|
|
286
282
|
serviceId,
|
|
287
283
|
fetchDates,
|
|
288
|
-
initialDays
|
|
284
|
+
initialDays,
|
|
285
|
+
timezone
|
|
289
286
|
]);
|
|
290
287
|
useVisibleTabPolling({
|
|
291
288
|
enabled: Boolean(serviceId && loadedRange),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Nt as toUtcIsoDateTimeString } from "./noop-B3RNPVrt.mjs";
|
|
3
3
|
import { useCallback, useEffect, useState } from "react";
|
|
4
4
|
//#region ../blocks/src/system/runtime/hooks/useBookingNowIso.ts
|
|
5
5
|
const ANCHOR_CLOCK = { kind: "anchor" };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Cr as err, wr as ok } from "./schema-DNHLlze-.mjs";
|
|
3
3
|
import { t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
4
|
-
import { c as discountAvailabilityAllowsManualEntry, l as discountAvailabilityHasDiscounts, u as getAutoAppliedDiscountPreview } from "./DemoBookingPortalAccess-
|
|
4
|
+
import { c as discountAvailabilityAllowsManualEntry, l as discountAvailabilityHasDiscounts, u as getAutoAppliedDiscountPreview } from "./DemoBookingPortalAccess-CvT0E9AR.mjs";
|
|
5
5
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
6
6
|
import * as React$1 from "react";
|
|
7
7
|
import { useCallback } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { c as discountAvailabilityAllowsManualEntry, l as discountAvailabilityHasDiscounts, u as getAutoAppliedDiscountPreview } from "./DemoBookingPortalAccess-
|
|
2
|
+
import { c as discountAvailabilityAllowsManualEntry, l as discountAvailabilityHasDiscounts, u as getAutoAppliedDiscountPreview } from "./DemoBookingPortalAccess-CvT0E9AR.mjs";
|
|
3
3
|
import { useEffect, useReducer, useRef } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/shared/components/StateIcon.tsx
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-
|
|
2
|
+
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-BWsDgjMC.mjs";
|
|
3
3
|
import { t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
4
|
-
import { Gt as getBlockApiReadStage, Mr as listItemPresentation, Pr as listLookSlot } from "./wizardSteps-
|
|
5
|
-
import { Ft as
|
|
6
|
-
import { r as EventItem } from "./EventItem-
|
|
7
|
-
import { i as EventCard, n as EmptyState, r as EventCompactRow, t as EventListingFrameView } from "./EventListing.view-
|
|
8
|
-
import { n as useBlockApi } from "./context-
|
|
9
|
-
import { t as LeafletStaticMap } from "./LeafletStaticMap-ClZCCzAm.mjs";
|
|
4
|
+
import { Gt as getBlockApiReadStage, Mr as listItemPresentation, Pr as listLookSlot } from "./wizardSteps-BO2OmMO9.mjs";
|
|
5
|
+
import { Ft as normalizeCsvIds, It as normalizeCsvString, Lt as normalizeOptionalId, Pt as getEventRuntimeFiltersKey } from "./shop.interactive-CreQ0I7i.mjs";
|
|
6
|
+
import { r as EventItem } from "./EventItem-M5rpaHxi.mjs";
|
|
7
|
+
import { i as EventCard, n as EmptyState, r as EventCompactRow, t as EventListingFrameView } from "./EventListing.view-k4lhuCn5.mjs";
|
|
8
|
+
import { n as useBlockApi } from "./context-BFwxgZpB.mjs";
|
|
10
9
|
import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
|
|
11
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
11
|
//#region ../blocks/src/system/runtime/hooks/loadStateError.ts
|
|
@@ -404,20 +403,8 @@ function useEventCollectionFilters(source) {
|
|
|
404
403
|
}
|
|
405
404
|
//#endregion
|
|
406
405
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventCard.client.tsx
|
|
407
|
-
function EventCardClient(
|
|
408
|
-
|
|
409
|
-
const mapSlot = Boolean(showMap && allowMap && location) && location ? /* @__PURE__ */ jsx(LeafletStaticMap, {
|
|
410
|
-
location,
|
|
411
|
-
label: event.venue?.name,
|
|
412
|
-
height: 150
|
|
413
|
-
}) : null;
|
|
414
|
-
return /* @__PURE__ */ jsx(EventCard, {
|
|
415
|
-
...cardProps,
|
|
416
|
-
event,
|
|
417
|
-
showMap,
|
|
418
|
-
allowMap,
|
|
419
|
-
mapSlot
|
|
420
|
-
});
|
|
406
|
+
function EventCardClient(props) {
|
|
407
|
+
return /* @__PURE__ */ jsx(EventCard, { ...props });
|
|
421
408
|
}
|
|
422
409
|
//#endregion
|
|
423
410
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventPaginatedListView.client.tsx
|
|
@@ -1,14 +1,60 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { U as formatCurrencyAmount } from "./ThemedButton-BWsDgjMC.mjs";
|
|
3
3
|
import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
|
|
4
4
|
import { c as assertNever } from "./src-VIsPY-kw.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { $r as formatBookingPriceDisplay, Br as CANCELLED_SESSION_STATUS, Dr as resolveEventRegistrationScopedEvents, En as formatTotalCapacity, Hr as orderedLiveRunSessions, On as getEventAvailabilityStatus, Pr as listLookSlot, Ur as resolveWholeSeriesBookingPhase, ai as publicEventPricingType, cn as eventDateOptions, mn as formatEventDateParts, ni as publicEventPricingCurrency, pn as formatEventCompactDateRail, ri as publicEventPricingDisplay, ti as isPublicEventPricingOptionDisplayable, wn as formatEventRemainingPlaces } from "./wizardSteps-BO2OmMO9.mjs";
|
|
6
|
+
import { Mt as toScheduledBookingDateTime, Nt as toUtcIsoDateTimeString, Tt as getLocalScheduleDate, dt as formatDateRange, jt as toBookingTimeZone, kt as resolveBookingBusinessTimeZone, pt as formatDateTimeRange, ut as formatDate, wt as getBookingLocalDateKey, xt as compareLocalScheduleDates } from "./noop-B3RNPVrt.mjs";
|
|
7
|
+
import { t as LocationMapActions } from "./LocationMapActions-CAjt7qVo.mjs";
|
|
8
|
+
import { Bt as CardListContentPart, Xt as formatEventPriceAmount, Yt as formatEventPrice, Zt as formatEventPriceDisplay, _t as formatBookingSchedulePresentation } from "./shop.interactive-CreQ0I7i.mjs";
|
|
9
|
+
import { n as resolveEventLinkProps, t as resolveEventCta } from "./cta-DtA42Xio.mjs";
|
|
10
|
+
import { n as MapDrawingSvg } from "./MapDrawingSvg-_aIK2ojv.mjs";
|
|
9
11
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
10
12
|
import "react";
|
|
11
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
//#region ../blocks/src/system/blocks/events/shared/detailsSelection.ts
|
|
15
|
+
function isFutureOrNow(iso, nowIso) {
|
|
16
|
+
const ts = Date.parse(iso);
|
|
17
|
+
const now = Date.parse(nowIso);
|
|
18
|
+
if (!Number.isFinite(ts) || !Number.isFinite(now)) return false;
|
|
19
|
+
return ts >= now;
|
|
20
|
+
}
|
|
21
|
+
const localDateKey = (startsAt, timeZone) => getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
22
|
+
startsAt,
|
|
23
|
+
timeZone
|
|
24
|
+
}));
|
|
25
|
+
function selectRequested(events, requested) {
|
|
26
|
+
if (!requested) return null;
|
|
27
|
+
const byId = events.find((event) => event.occurrenceId === requested.id || event.id === requested.id);
|
|
28
|
+
if (byId) return byId;
|
|
29
|
+
if (!requested.startsAt || !requested.timeZone) return null;
|
|
30
|
+
const requestedDate = localDateKey(requested.startsAt, requested.timeZone);
|
|
31
|
+
return events.find((event) => localDateKey(event.startsAt, event.timeZone) === requestedDate) ?? null;
|
|
32
|
+
}
|
|
33
|
+
function selectNextUpcoming(events, nowIso) {
|
|
34
|
+
return [...events].filter((event) => isFutureOrNow(event.startsAt, nowIso)).sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt))[0] ?? null;
|
|
35
|
+
}
|
|
36
|
+
function selectCompletedWholeSeries(events) {
|
|
37
|
+
if (events.length === 0 || !events.every((event) => event.bookingScope === "whole_series")) return null;
|
|
38
|
+
return [...events].sort((left, right) => Date.parse(right.startsAt) - Date.parse(left.startsAt))[0] ?? null;
|
|
39
|
+
}
|
|
40
|
+
function selectEventDetailsCandidate(events, requested, nowIso) {
|
|
41
|
+
const selected = selectRequested(events, requested);
|
|
42
|
+
if (selected) return {
|
|
43
|
+
event: selected,
|
|
44
|
+
mode: "selected"
|
|
45
|
+
};
|
|
46
|
+
const upcoming = selectNextUpcoming(events, nowIso);
|
|
47
|
+
if (upcoming) return {
|
|
48
|
+
event: upcoming,
|
|
49
|
+
mode: "next"
|
|
50
|
+
};
|
|
51
|
+
const completed = selectCompletedWholeSeries(events);
|
|
52
|
+
return completed ? {
|
|
53
|
+
event: completed,
|
|
54
|
+
mode: "completed"
|
|
55
|
+
} : null;
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
12
58
|
//#region ../blocks/src/system/runtime/nodes/events/shared/DateTimeTile.tsx
|
|
13
59
|
/**
|
|
14
60
|
* Shared tile content for displaying date and time range.
|
|
@@ -90,12 +136,6 @@ function parseLimit(value, fallback) {
|
|
|
90
136
|
const n = typeof value === "string" ? parseInt(value, 10) : typeof value === "number" ? value : NaN;
|
|
91
137
|
return Number.isFinite(n) && n > 0 ? n : fallback;
|
|
92
138
|
}
|
|
93
|
-
function isFutureOrNow(iso, nowIso) {
|
|
94
|
-
const ts = Date.parse(iso);
|
|
95
|
-
const now = Date.parse(nowIso);
|
|
96
|
-
if (!Number.isFinite(ts) || !Number.isFinite(now)) return false;
|
|
97
|
-
return ts >= now;
|
|
98
|
-
}
|
|
99
139
|
function uniqByOccurrenceId(events) {
|
|
100
140
|
const seen = /* @__PURE__ */ new Set();
|
|
101
141
|
const out = [];
|
|
@@ -107,43 +147,6 @@ function uniqByOccurrenceId(events) {
|
|
|
107
147
|
}
|
|
108
148
|
return out;
|
|
109
149
|
}
|
|
110
|
-
function selectFromOccurrenceContext(events, occurrenceContext) {
|
|
111
|
-
if (!occurrenceContext) return null;
|
|
112
|
-
const byId = events.find((event) => event.occurrenceId === occurrenceContext.id || event.id === occurrenceContext.id);
|
|
113
|
-
if (byId) return byId;
|
|
114
|
-
const contextDate = getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
115
|
-
startsAt: occurrenceContext.startsAt,
|
|
116
|
-
timeZone: occurrenceContext.timeZone
|
|
117
|
-
}));
|
|
118
|
-
return events.find((event) => getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
119
|
-
startsAt: event.startsAt,
|
|
120
|
-
timeZone: event.timeZone
|
|
121
|
-
})) === contextDate) ?? null;
|
|
122
|
-
}
|
|
123
|
-
function selectNextUpcoming(events, nowIso) {
|
|
124
|
-
return [...events].filter((event) => isFutureOrNow(event.startsAt, nowIso)).sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt))[0] ?? null;
|
|
125
|
-
}
|
|
126
|
-
function selectCompletedWholeSeries(events) {
|
|
127
|
-
if (events.length === 0 || !events.every((event) => event.bookingScope === "whole_series")) return null;
|
|
128
|
-
return [...events].sort((left, right) => Date.parse(right.startsAt) - Date.parse(left.startsAt))[0] ?? null;
|
|
129
|
-
}
|
|
130
|
-
function selectEventCandidate(events, occurrenceContext, nowIso) {
|
|
131
|
-
const selected = selectFromOccurrenceContext(events, occurrenceContext);
|
|
132
|
-
if (selected) return {
|
|
133
|
-
event: selected,
|
|
134
|
-
mode: "selected"
|
|
135
|
-
};
|
|
136
|
-
const upcoming = selectNextUpcoming(events, nowIso);
|
|
137
|
-
if (upcoming) return {
|
|
138
|
-
event: upcoming,
|
|
139
|
-
mode: "next"
|
|
140
|
-
};
|
|
141
|
-
const completed = selectCompletedWholeSeries(events);
|
|
142
|
-
return completed ? {
|
|
143
|
-
event: completed,
|
|
144
|
-
mode: "completed"
|
|
145
|
-
} : null;
|
|
146
|
-
}
|
|
147
150
|
function isWholeSeriesEvent(event) {
|
|
148
151
|
return event.bookingScope === "whole_series";
|
|
149
152
|
}
|
|
@@ -177,7 +180,7 @@ function selectEventDetails(args) {
|
|
|
177
180
|
}));
|
|
178
181
|
const occurrenceContext = args.occurrenceContext ?? null;
|
|
179
182
|
const otherLimit = parseLimit(args.otherDatesLimit, 5);
|
|
180
|
-
const candidate =
|
|
183
|
+
const candidate = selectEventDetailsCandidate(all, occurrenceContext, args.nowIso);
|
|
181
184
|
const timeZone = toBookingTimeZone(candidate?.event.timeZone ?? all[0]?.timeZone ?? null);
|
|
182
185
|
if (!candidate) return emptySelection(timeZone);
|
|
183
186
|
const { event: selected, mode } = candidate;
|
|
@@ -241,6 +244,10 @@ function resolveEligibility(input, selected) {
|
|
|
241
244
|
applicableMemberships: filterMembershipsForEvent(input.siteMemberships?.memberships ?? null, selected)
|
|
242
245
|
};
|
|
243
246
|
}
|
|
247
|
+
/** The response's one drawing belongs to the selected event only when it is for that event's venue. */
|
|
248
|
+
function resolveSelectedVenueDrawing(venueDrawing, selected) {
|
|
249
|
+
return venueDrawing && selected?.venue?.id === venueDrawing.venueId ? venueDrawing.drawing : null;
|
|
250
|
+
}
|
|
244
251
|
function resolveEventDetailsPresentation(input) {
|
|
245
252
|
const selection = resolveSelection(input);
|
|
246
253
|
const selected = selection.kind === "empty" ? null : selection.selected;
|
|
@@ -254,7 +261,8 @@ function resolveEventDetailsPresentation(input) {
|
|
|
254
261
|
panelHeading: input.panelHeading,
|
|
255
262
|
...resolveDisplaySettings(input),
|
|
256
263
|
...resolveEligibility(input, selected),
|
|
257
|
-
autoApplyDiscount: input.autoApplyDiscount ?? null
|
|
264
|
+
autoApplyDiscount: input.autoApplyDiscount ?? null,
|
|
265
|
+
selectedVenueDrawing: resolveSelectedVenueDrawing(input.venueDrawing, selected)
|
|
258
266
|
};
|
|
259
267
|
}
|
|
260
268
|
//#endregion
|
|
@@ -678,7 +686,11 @@ function EventVenueFact({ venue }) {
|
|
|
678
686
|
venue.address ? /* @__PURE__ */ jsx("p", {
|
|
679
687
|
className: "rb-caption",
|
|
680
688
|
children: venue.address
|
|
681
|
-
}) : null
|
|
689
|
+
}) : null,
|
|
690
|
+
/* @__PURE__ */ jsx(LocationMapActions, {
|
|
691
|
+
location: venue.location,
|
|
692
|
+
addressText: venue.address
|
|
693
|
+
})
|
|
682
694
|
]
|
|
683
695
|
}) : null;
|
|
684
696
|
}
|
|
@@ -817,11 +829,11 @@ function acceptedProductNames(props) {
|
|
|
817
829
|
const memberships = props.showAcceptedMemberships !== false ? (props.applicableMemberships ?? []).map(({ name }) => name) : [];
|
|
818
830
|
return [...passes, ...memberships];
|
|
819
831
|
}
|
|
820
|
-
function EventVenueMap({ venue, showMap, mapHeight, mapClassName
|
|
821
|
-
if (!showMap || !
|
|
822
|
-
return
|
|
823
|
-
|
|
824
|
-
|
|
832
|
+
function EventVenueMap({ venue, drawing, showMap, mapHeight, mapClassName }) {
|
|
833
|
+
if (!showMap || !venue || !drawing) return null;
|
|
834
|
+
return /* @__PURE__ */ jsx(MapDrawingSvg, {
|
|
835
|
+
drawing,
|
|
836
|
+
label: venue.name,
|
|
825
837
|
className: mapClassName,
|
|
826
838
|
height: mapHeight
|
|
827
839
|
});
|
|
@@ -840,7 +852,7 @@ function selectedEventPricing(event, showCost) {
|
|
|
840
852
|
};
|
|
841
853
|
}
|
|
842
854
|
function SelectedEventDetailsView(props) {
|
|
843
|
-
const { selection, showVenue, showMap, showOtherDates, showTitle, showDescription, showCapacity, mapHeight, mapClassName,
|
|
855
|
+
const { selection, showVenue, showMap, showOtherDates, showTitle, showDescription, showCapacity, mapHeight, mapClassName, acceptedItems } = props;
|
|
844
856
|
const selected = selection.selected;
|
|
845
857
|
const venue = showVenue ? selected.venue : void 0;
|
|
846
858
|
const pricing = selectedEventPricing(selected, props.showCost);
|
|
@@ -872,7 +884,7 @@ function SelectedEventDetailsView(props) {
|
|
|
872
884
|
showMap,
|
|
873
885
|
mapHeight,
|
|
874
886
|
mapClassName,
|
|
875
|
-
|
|
887
|
+
drawing: props.selectedVenueDrawing
|
|
876
888
|
})]
|
|
877
889
|
}),
|
|
878
890
|
showOtherDates ? /* @__PURE__ */ jsx(OtherEventDates, { selection }) : null
|
|
@@ -895,9 +907,9 @@ function LegacyEventDetailsView(props) {
|
|
|
895
907
|
showDescription: props.showDescription ?? false,
|
|
896
908
|
showCapacity: props.showCapacity ?? false,
|
|
897
909
|
autoApplyDiscount: props.autoApplyDiscount ?? null,
|
|
910
|
+
selectedVenueDrawing: props.selectedVenueDrawing,
|
|
898
911
|
mapHeight: props.mapHeight ?? 200,
|
|
899
912
|
mapClassName: props.mapClassName ?? "event-details-map",
|
|
900
|
-
renderVenueMap: props.renderVenueMap,
|
|
901
913
|
acceptedItems: acceptedProductNames(props)
|
|
902
914
|
});
|
|
903
915
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as ThemedButton } from "./ThemedButton-
|
|
3
|
-
import { Pr as listLookSlot } from "./wizardSteps-
|
|
4
|
-
import { C as membershipCardListContent, T as passCardListContent, w as membershipClassesLabel } from "./shop.interactive-
|
|
5
|
-
import { r as EventItem, t as CardListCollection } from "./EventItem-
|
|
2
|
+
import { r as ThemedButton } from "./ThemedButton-BWsDgjMC.mjs";
|
|
3
|
+
import { Pr as listLookSlot } from "./wizardSteps-BO2OmMO9.mjs";
|
|
4
|
+
import { C as membershipCardListContent, T as passCardListContent, w as membershipClassesLabel } from "./shop.interactive-CreQ0I7i.mjs";
|
|
5
|
+
import { r as EventItem, t as CardListCollection } from "./EventItem-M5rpaHxi.mjs";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region ../blocks/src/system/runtime/nodes/commerce/shared/view.tsx
|