@riverbankcms/sdk 0.157.0 → 0.158.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-B3AHhvIn.d.ts → BlocksIslandsHydrator-BgNBtEai.d.ts} +1 -1
- package/dist/_dts/{Page-BMaOSVCP.d.ts → Page-DpCo8zXD.d.ts} +9 -6
- package/dist/_dts/{SdkPreviewMode-CEwDDqfK.d.ts → SdkPreviewMode-Bv2TMscG.d.ts} +2 -2
- package/dist/_dts/{client-BRFVhGUB.d.ts → client-B960v2gW.d.ts} +1 -1
- package/dist/_dts/{content-types-tEy1rtQ5.d.ts → content-types-CN0Wy8V6.d.ts} +26 -3
- package/dist/_dts/{contracts-BwDSOVGj.d.ts → contracts-BFUrby76.d.ts} +5 -4
- package/dist/_dts/{footerPageOutline-BVp5EPJj.d.ts → footerPageOutline-CmoqleLS.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BQb1mvpc.d.ts → generatePageMetadata-Dkvivc3R.d.ts} +2 -2
- package/dist/_dts/{hosted-booking-appearance-BN2Zu93B.d.ts → hosted-booking-appearance-BIbit60h.d.ts} +8976 -47
- package/dist/_dts/{index-Ca3oD2id.d.ts → index-Ba6RmuxX.d.ts} +3 -3
- package/dist/_dts/{index-Br1TNJlL.d.ts → index-DCNu_8it.d.ts} +4 -4
- package/dist/_dts/{index-CSLkIKs3.d.ts → index-DPfI2t5A.d.ts} +2 -2
- package/dist/_dts/{index-B0wsEbm3.d.ts → index-DaS_z6ir.d.ts} +1 -1
- package/dist/_dts/{index-B0DzVcrB.d.ts → index-DfkFWUxt.d.ts} +4 -1
- package/dist/_dts/{index-BF3hkKvt.d.ts → index-DpgkhY-a.d.ts} +2 -2
- package/dist/_dts/{loadContent-Dz9fOZMZ.d.ts → loadContent-DvvKF4nB.d.ts} +10 -7
- package/dist/_dts/{navigation-DOZwagCE.d.ts → navigation-n-eTVTIQ.d.ts} +75 -4
- package/dist/_dts/{resolvePageContent-oHZ8cfaF.d.ts → resolvePageContent-D0lGwVD6.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 +6 -6
- 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 +10 -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 +11 -4
- 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/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/index.d.ts +45 -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/{types-Dy1DNdIV.d.ts → types-BJrRUaY7.d.ts} +2 -2
- package/dist/_dts/{types-6q1MDqxg.d.ts → types-BY7PgnDi.d.ts} +7 -7
- package/dist/_dts/{types-BuWOkyqw.d.ts → types-maEnXL6Z.d.ts} +3 -3
- package/dist/_dts/{validation-BumblAOO.d.ts → validation-BjuVrMrs.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-Cid8be1G.mjs → BlocksIslandsHydrator-WRLS96Ev.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-BpzJTCZw.mjs → BookingMailingListNote-eovghMPa.mjs} +3 -56
- package/dist/client/{CalendarNavigationChevron-CBKHlGjE.mjs → CalendarNavigationChevron-CIcMQRc1.mjs} +5 -5
- package/dist/client/{DemoBookingPortalAccess-DpfgDMQ-.mjs → DemoBookingPortalAccess-CdnFgDyQ.mjs} +3 -3
- package/dist/client/{EventCalendar.client-DE5JHf4s.mjs → EventCalendar.client-Dc-ZLxKo.mjs} +8 -8
- package/dist/client/{EventCombined.client-DQLU3EAc.mjs → EventCombined.client-C93XqRIv.mjs} +6 -6
- package/dist/client/{EventItem-C9QTFafI.mjs → EventItem-DnCTygqk.mjs} +3 -3
- package/dist/client/{EventListWeekNavigation-6oYGdpNS.mjs → EventListWeekNavigation-9h97heuQ.mjs} +1 -1
- package/dist/client/{EventListing.client-D0N4Wj_4.mjs → EventListing.client-DFKlQvvs.mjs} +3 -3
- package/dist/client/{EventListing.view-Bish8-si.mjs → EventListing.view-pAuTDyrP.mjs} +4 -4
- package/dist/client/{EventRegistrationPayment-DLPYU2VU.mjs → EventRegistrationPayment-rgKlBvhP.mjs} +8 -7
- package/dist/client/{LeafletStaticMap-BmgEmEUS.mjs → LeafletStaticMap-3XiWSgy0.mjs} +1 -1
- package/dist/client/{Page-C-W_6VPx.mjs → Page-BmpeAwID.mjs} +750 -169
- package/dist/client/{StepIndicator-D8fvzhlS.mjs → StepIndicator-qEq6X5zP.mjs} +2 -2
- package/dist/client/{accordion-B5jBBoBC.mjs → accordion-DeObOasQ.mjs} +1 -1
- package/dist/client/{booking-form.client-xypjcfob.mjs → booking-form.client-DfWeF0lj.mjs} +36 -32
- package/dist/client/{bookingForm-CSE7NT54.mjs → bookingForm-TnzIBHx2.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-BrrLdGgn.mjs → carousel-kkFnbr5Z.mjs} +1 -1
- package/dist/client/{cart-QFgSKqia.mjs → cart-BAXNbFux.mjs} +3 -3
- package/dist/client/{cart.client-C6iA9v8X.mjs → cart.client-BczxUF70.mjs} +1 -1
- package/dist/client/{checkout-BAuLgA6Q.mjs → checkout-C5NRhPeP.mjs} +3 -3
- package/dist/client/{checkout.client-hbvBPpZR.mjs → checkout.client-BuDk3Td9.mjs} +1 -1
- package/dist/client/client.mjs +3 -2
- package/dist/client/{context-psG_Bwfs.mjs → context-CVsgML69.mjs} +1 -1
- package/dist/client/{cta-DrX2pzK9.mjs → cta-BWnUuJce.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CClf0SHq.mjs → demoPortalMagicLink-CUlwvmxf.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-CqN7ig-2.mjs → enhanceHeaderSection-Cw8nnFj-.mjs} +2 -2
- package/dist/client/{event-details.client-CcYX4URD.mjs → event-details.client-Bl0E_6Vi.mjs} +2 -2
- package/dist/client/{event-registration.client-B8wVfnJ8.mjs → event-registration.client-DmfLg_LC.mjs} +15 -14
- package/dist/client/{eventCalendar-CRYN9-Vv.mjs → eventCalendar-D1Dwb9VA.mjs} +4 -4
- package/dist/client/{eventCombined-gGuj2_Vh.mjs → eventCombined-DfsqY1qR.mjs} +4 -4
- package/dist/client/{eventDetails-D1U7WEsJ.mjs → eventDetails-BmugDVoa.mjs} +2 -2
- package/dist/client/{eventListing-BY20rsvl.mjs → eventListing-BPAGJi3C.mjs} +4 -4
- package/dist/client/{eventRegistration-DnOZYpqh.mjs → eventRegistration-DBlz_x6u.mjs} +4 -4
- package/dist/client/{form-_q17Emh7.mjs → form-DVu3ZMjx.mjs} +3 -3
- package/dist/client/{form.client-BVaTf4FG.mjs → form.client-QZUyABIY.mjs} +3 -3
- package/dist/client/{form.parts-C9EmjE7U.mjs → form.parts-Bs0F3v08.mjs} +1 -1
- package/dist/client/formatDate-BD9D3dgo.mjs +26 -0
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-CZ3unSkX.mjs → headerSection-BQwWW4Yy.mjs} +2 -2
- package/dist/client/{location-map.client-C_udm2_y.mjs → location-map.client-upKuwABk.mjs} +3 -10
- package/dist/client/{location-map.view-Bkd9gu_S.mjs → location-map.view-RuBCD10O.mjs} +87 -13
- package/dist/client/{locationMap-CunBAPoo.mjs → locationMap-1sCbsk0V.mjs} +2 -2
- package/dist/client/{newsletter-form.client-BkHhqPBi.mjs → newsletter-form.client-DBTU3oNv.mjs} +4 -4
- package/dist/client/{newsletter-form.parts-VGjM-NDG.mjs → newsletter-form.parts-C9I9JBhe.mjs} +1 -1
- package/dist/client/{newsletterForm-DGc1-NVR.mjs → newsletterForm-DTPtTxxG.mjs} +3 -3
- package/dist/client/{noop-D3wctocR.mjs → noop-DMFt3KdC.mjs} +19 -132
- package/dist/client/portal/client.mjs +589 -482
- package/dist/client/{product-detail.client-C_8N4OxU.mjs → product-detail.client-BX7M5o6p.mjs} +1 -1
- package/dist/client/{product-list.client-79qoSlLs.mjs → product-list.client-i32QNY4c.mjs} +1 -1
- package/dist/client/{productDetail-QGBXBpWb.mjs → productDetail-DWjE9zm7.mjs} +3 -3
- package/dist/client/{productList-Bdno11g6.mjs → productList-DZH9_brv.mjs} +3 -3
- package/dist/client/{propsDecoder-BpKsRqjG.mjs → propsDecoder-CTzHkEkh.mjs} +14 -3
- package/dist/client/{registry.server-D9GvC4EZ.mjs → registry.server-vJ5FlscU.mjs} +589 -246
- package/dist/client/rendering/client.mjs +23 -23
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +26 -4
- package/dist/client/{richText-coerce-Nln8Bw2P.mjs → richText-coerce-DXAmC72p.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-B4E30DaZ.mjs → routeIslandApiConfig-CmC7ygin.mjs} +1 -1
- package/dist/client/{shop-653-Nn74.mjs → shop-C7eL3B37.mjs} +3 -3
- package/dist/client/{shop-commerce-CfbvhT6h.mjs → shop-commerce-D8oRN0QJ.mjs} +9 -9
- package/dist/client/{shop-commerce-store-CfB26IXt.mjs → shop-commerce-store-CRnQ4M18.mjs} +1 -1
- package/dist/client/{shop.client-Bn7jUQOB.mjs → shop.client-X6d6KVmA.mjs} +9 -9
- package/dist/client/{shop.interactive-acMnyBZU.mjs → shop.interactive-DBMeM8VD.mjs} +155 -3
- package/dist/client/{shopShared-Du4efbgL.mjs → shopShared-Y182kN_s.mjs} +2 -2
- package/dist/client/{timetableModel-Duwk6gXe.mjs → timetableModel-D7PwpaBY.mjs} +5 -5
- package/dist/client/{useAvailableSlots-CbaAFr8M.mjs → useAvailableSlots-BDV6MHgJ.mjs} +2 -2
- package/dist/client/useBookingNowIso-DgJEv3ZY.mjs +58 -0
- package/dist/client/{useDiscountApply-DAl-GX21.mjs → useDiscountApply-BTu9EeT7.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-BUf9LuI6.mjs → useDiscountCodeUi-BfZxdxI-.mjs} +1 -1
- package/dist/client/{useEventPagination-hJDAEg-T.mjs → useEventPagination-pnvdHGeQ.mjs} +6 -6
- package/dist/client/{view-CFSMNvdC.mjs → view-BPEa6Okm.mjs} +8 -7
- package/dist/client/{view-4sSIJ6Ny.mjs → view-hJr_L4QC2.mjs} +3 -3
- package/dist/client/{wizardSteps-B3tRF3_2.mjs → wizardSteps-HdyGoIG3.mjs} +218 -47
- package/dist/preview-next/before-render.mjs +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-BX5F0a_h.mjs → EventEmbeddedCheckoutStep-BFlBqSu4.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-DLzGdmTw.mjs → PreviewEditorSidebar-CXRUbqMp.mjs} +42 -26
- package/dist/preview-next/client/{PreviewEditorUI-Dru5AxOd.mjs → PreviewEditorUI-CxjEV0Fm.mjs} +31 -22
- package/dist/preview-next/client/{SdkPreviewModeRuntime-QVfwY0HY.mjs → SdkPreviewModeRuntime-BxI12BBS.mjs} +1310 -1226
- package/dist/preview-next/client/{SdkPreviewModeRuntime-V3absa-c.mjs → SdkPreviewModeRuntime-XdQSGGj_.mjs} +1 -1
- package/dist/preview-next/client/{SiteChromeCustomizeContext-RSPyKO_K.mjs → SiteChromeCustomizeContext-CfRQRwpH.mjs} +133891 -131593
- package/dist/preview-next/client/{ThemedButton-ADHirm0A.mjs → ThemedButton-BEOPss9H.mjs} +30 -4
- package/dist/preview-next/client/{previewChromeSurface-Cc4b9nBZ.mjs → previewChromeSurface-CH7hd5n7.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CTLm99t6.mjs → sdk-runtime-C6xEU1LI.mjs} +1 -1
- package/dist/preview-next/client/{siteStyleAccess-YpHSMBBC.mjs → siteStyleAccess-CRXaC2oL.mjs} +2 -2
- package/dist/preview-next/client/{spinner-CsiSmy1g.mjs → spinner-BTf1CZmy.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-dR_Jzpo5.mjs → route-contract-DM22uOXM.mjs} +41 -0
- package/dist/server/{Block.shared-BNrmEY1p.mjs → Block.shared-DLoilC2J.mjs} +4 -4
- package/dist/server/{bindings-C9zgT9uX.mjs → bindings-C7DKLVx_.mjs} +1 -1
- package/dist/server/{blocks-BLm-OxTv.mjs → blocks-jlIm0PWc.mjs} +953 -324
- package/dist/server/{client-CaQ1ElR3.mjs → client-CU4wlMLE.mjs} +2 -2
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-BFyU8YxS.mjs → loadContent-DmQ4BiiQ.mjs} +6 -4
- package/dist/server/{loadPage-DeQipVdO.mjs → loadPage-BBkDQA57.mjs} +3 -2
- package/dist/server/loadPage-ZrcfjG3X.mjs +2 -0
- package/dist/server/next.mjs +24 -12
- package/dist/server/{overrideResolution-D5nmZUYe.mjs → overrideResolution-ByeAbLSO.mjs} +1 -1
- package/dist/server/{overrides-BI13bIb7.mjs → overrides-BcA6ZPWf.mjs} +94 -30
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-UgDhSzy2.mjs → prebuild-8T-m7XjB.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CLF-Y7h-.mjs → prefetchBlockData-Bjya-X9t.mjs} +6 -5
- package/dist/server/{publicProducts-vPbNQJsO.mjs → publicProducts-C3meXS2o.mjs} +41 -0
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +26 -8
- package/dist/server/{resolveBlockData-C7J-pixy.mjs → resolveBlockData-D0ow8PRJ.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/{siteChromeOverlayClearance-DLROm32h.mjs → siteChromeOverlayClearance-BangtD8A.mjs} +126 -1
- package/dist/server/{src-BZb5L4Fa.mjs → src-B935_bzN.mjs} +300 -2
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/{themeAdmission-x3uhdOWx.mjs → themeAdmission-D2-BnmDO.mjs} +314 -125
- package/dist/server/{validation-Ban_hxJG.mjs → validation-Cm41pDUB.mjs} +2 -2
- package/dist/server/{version-bkGVuskm.mjs → version-Bo9C3McI.mjs} +1 -1
- package/dist/styles/index.css +282 -0
- package/package.json +1 -1
- package/dist/server/loadPage-CvyKRtXK.mjs +0 -2
|
@@ -2,34 +2,34 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import { r as indexRenderableMediaAssets } from "../renderableMediaAssetAdmission-DGjBr_e-.mjs";
|
|
4
4
|
import { Mr as formatCurrencyAmount, S as clsx, st as ICON_CONFIG } from "../ThemedButton-DVBC_pS9.mjs";
|
|
5
|
-
import { $t as resolveMediaNodeResponsiveImage, Gt as MediaPlaceholder, Jt as renderAudio, Kt as computeMediaTransformStyle, Ut as RichText, Wt as ImagePresets, Yt as renderVideo, qt as mediaImageHostProps } from "../wizardSteps-
|
|
6
|
-
import { i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "../DemoBookingPortalAccess-
|
|
7
|
-
import { en as staticHeaderChromeRuntime } from "../shop.interactive-
|
|
5
|
+
import { $t as resolveMediaNodeResponsiveImage, Gt as MediaPlaceholder, Jt as renderAudio, Kt as computeMediaTransformStyle, Ut as RichText, Wt as ImagePresets, Yt as renderVideo, qt as mediaImageHostProps } from "../wizardSteps-HdyGoIG3.mjs";
|
|
6
|
+
import { i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "../DemoBookingPortalAccess-CdnFgDyQ.mjs";
|
|
7
|
+
import { en as staticHeaderChromeRuntime } from "../shop.interactive-DBMeM8VD.mjs";
|
|
8
8
|
import { t as assertNever } from "../src-7cXhT0G_.mjs";
|
|
9
|
-
import { F as splitPositioningClasses, N as composeHeaderSectionWrapperClassName, P as markEditableSurfaceForwarding, c as accordionItemPartSlots, d as resolveAccordionIconStyle, f as Text, i as WeeklySlotAvailabilityView, l as accordionLookAttributes, n as runtimeBackedBlockModes, r as runtimeBackedBlockServerEntries, s as HeaderSectionFrame, t as serverComponentRegistry, u as accordionIconColorStyle } from "../registry.server-
|
|
10
|
-
import { t as EventRegistrationIslandClient } from "../event-registration.client-
|
|
11
|
-
import { t as ShopClient } from "../shop.client-
|
|
9
|
+
import { F as splitPositioningClasses, N as composeHeaderSectionWrapperClassName, P as markEditableSurfaceForwarding, c as accordionItemPartSlots, d as resolveAccordionIconStyle, f as Text, i as WeeklySlotAvailabilityView, l as accordionLookAttributes, n as runtimeBackedBlockModes, r as runtimeBackedBlockServerEntries, s as HeaderSectionFrame, t as serverComponentRegistry, u as accordionIconColorStyle } from "../registry.server-vJ5FlscU.mjs";
|
|
10
|
+
import { t as EventRegistrationIslandClient } from "../event-registration.client-DmfLg_LC.mjs";
|
|
11
|
+
import { t as ShopClient } from "../shop.client-X6d6KVmA.mjs";
|
|
12
12
|
import { t as FeedbackMessage } from "../FeedbackMessage-CSJrAuXH.mjs";
|
|
13
13
|
import { t as CarouselSlideContent } from "../carousel.shared-DBnWEJzo.mjs";
|
|
14
|
-
import { t as coerceRichTextDoc } from "../richText-coerce-
|
|
15
|
-
import { n as useBlockApi, t as BlockApiProvider$1 } from "../context-
|
|
16
|
-
import { n as BookingFormNodeClient } from "../booking-form.client-
|
|
17
|
-
import { o as getRuntimeTimeZone } from "../useAvailableSlots-
|
|
14
|
+
import { t as coerceRichTextDoc } from "../richText-coerce-DXAmC72p.mjs";
|
|
15
|
+
import { n as useBlockApi, t as BlockApiProvider$1 } from "../context-CVsgML69.mjs";
|
|
16
|
+
import { n as BookingFormNodeClient } from "../booking-form.client-DfWeF0lj.mjs";
|
|
17
|
+
import { o as getRuntimeTimeZone } from "../useAvailableSlots-BDV6MHgJ.mjs";
|
|
18
18
|
import { t as createLucideIcon } from "../createLucideIcon-CIbxe9em.mjs";
|
|
19
19
|
import { t as CarouselNodeClient } from "../carousel.client-BJGoJVtg.mjs";
|
|
20
|
-
import { t as EventDetailsIslandClient } from "../event-details.client-
|
|
21
|
-
import { t as LocationMapIslandClient } from "../location-map.client-
|
|
22
|
-
import { t as ProductListClient } from "../product-list.client-
|
|
23
|
-
import { t as ProductDetailClient } from "../product-detail.client-
|
|
24
|
-
import { t as CartClient } from "../cart.client-
|
|
25
|
-
import { t as CheckoutClient } from "../checkout.client-
|
|
26
|
-
import { t as mountHeaderChromeRuntime } from "../enhanceHeaderSection-
|
|
27
|
-
import { t as EventListingClient } from "../EventListing.client-
|
|
28
|
-
import { n as EventCombinedIslandClient } from "../EventCombined.client-
|
|
29
|
-
import { t as EventCalendarClient } from "../EventCalendar.client-
|
|
30
|
-
import { t as FormNodeClient } from "../form.client-
|
|
31
|
-
import { t as NewsletterFormClient } from "../newsletter-form.client-
|
|
32
|
-
import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-
|
|
20
|
+
import { t as EventDetailsIslandClient } from "../event-details.client-Bl0E_6Vi.mjs";
|
|
21
|
+
import { t as LocationMapIslandClient } from "../location-map.client-upKuwABk.mjs";
|
|
22
|
+
import { t as ProductListClient } from "../product-list.client-i32QNY4c.mjs";
|
|
23
|
+
import { t as ProductDetailClient } from "../product-detail.client-BX7M5o6p.mjs";
|
|
24
|
+
import { t as CartClient } from "../cart.client-BczxUF70.mjs";
|
|
25
|
+
import { t as CheckoutClient } from "../checkout.client-BuDk3Td9.mjs";
|
|
26
|
+
import { t as mountHeaderChromeRuntime } from "../enhanceHeaderSection-Cw8nnFj-.mjs";
|
|
27
|
+
import { t as EventListingClient } from "../EventListing.client-DFKlQvvs.mjs";
|
|
28
|
+
import { n as EventCombinedIslandClient } from "../EventCombined.client-C93XqRIv.mjs";
|
|
29
|
+
import { t as EventCalendarClient } from "../EventCalendar.client-Dc-ZLxKo.mjs";
|
|
30
|
+
import { t as FormNodeClient } from "../form.client-QZUyABIY.mjs";
|
|
31
|
+
import { t as NewsletterFormClient } from "../newsletter-form.client-DBTU3oNv.mjs";
|
|
32
|
+
import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-WRLS96Ev.mjs";
|
|
33
33
|
import * as React$1 from "react";
|
|
34
34
|
import React, { createContext, createElement, startTransition, useContext, useEffect, useMemo, useReducer, useRef } from "react";
|
|
35
35
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { a as mediaIdentifierSchema, i as resolveManagedMediaReference, n as renderableMediaAssetSchema, o as parseCanonicalMediaIdentifier, s as parseMediaIdentifier, t as buildRenderableMediaAssetIndex } from "./renderableMediaAssetAdmission-DGjBr_e-.mjs";
|
|
3
3
|
import { Er as runtimeMediaSchema, Tr as persistableMediaSchema, wr as mediaSchema } from "./ThemedButton-DVBC_pS9.mjs";
|
|
4
|
-
import { Kt as computeMediaTransformStyle, Qt as resolveImageUrlWithContext$1, Ut as RichText$2, Xt as resolveImageSourceSetWithContext$1, Zt as resolveImageUrl$1, _r as resolveDateRuntimeContext, gr as readRuntimeNow, tn as sanitizeHref } from "./wizardSteps-
|
|
5
|
-
import { $ as isRecord,
|
|
6
|
-
import {
|
|
4
|
+
import { Kt as computeMediaTransformStyle, Qt as resolveImageUrlWithContext$1, Ut as RichText$2, Xt as resolveImageSourceSetWithContext$1, Zt as resolveImageUrl$1, _r as resolveDateRuntimeContext, gr as readRuntimeNow, tn as sanitizeHref } from "./wizardSteps-HdyGoIG3.mjs";
|
|
5
|
+
import { $ as isRecord, Ct as toUtcIsoDateTimeString } from "./noop-DMFt3KdC.mjs";
|
|
6
|
+
import { A as resolveAuthoredLinkHref, B as deriveFieldValidationPlan, C as MISSING_SDK_THEME_ERROR_CODE, D as makeDefaultBlockComponent, E as prefetchBlockData, F as siteFooterManifest, I as siteHeaderManifest, J as resolveSdkFooterMode, L as admitTransportedRenderableManifestContent, M as normalizeRenderStage, N as resolveRouteHrefForStage, O as renderBlock, P as getBlockDefinition, R as compileManifestContentContract, S as resolveSiteCustomBlocks, T as requireSdkTheme, _ as invalidRenderableBlock, a as ThemeScope, b as resolveSdkBlockManifest, c as PageRenderer, d as parseBlocksTheme, f as applyBindingsToContent, g as collectMediaAssetSidecar, h as buildSiteRenderSupport, i as renderWithSdkThemeRuntime, j as isRouteVisibleInStage, k as getDefaultComponentRegistry, l as toBlocksPageRendererDataContext, m as buildRenderablePageOutline, n as planLayoutThemeRuntime, o as EditorPageRenderer, p as BINDING_TRANSFORM_VALUES$1, q as resolveFooterRenderPlan, r as renderWithOverrideOnlyRuntime, s as MissingBlockOverrideError, t as Page, tt as readPublishedBlockPlacement, u as buildThemeRuntime, v as projectRenderablePageOutline, w as MissingSdkThemeError, x as sanitizeSdkRuntimeBlockContent, y as readInvalidBlockAdmission, z as admitLayoutGridForPlan } from "./Page-BmpeAwID.mjs";
|
|
7
|
+
import { Kt as projectRepeaterGridLayout$1, Vt as parseFieldDefinition, qt as projectRepeaterGridLayoutForRendering$1 } from "./registry.server-vJ5FlscU.mjs";
|
|
7
8
|
import { o as setContextResolveImageUrlContext, t as buildResolveImageUrlContext } from "./mediaContext-DThoeEBU.mjs";
|
|
8
9
|
import { n as toBlocksMediaAssets, t as toBlocksImageResolveContextInput } from "./mediaAssets-BOj-Co0B.mjs";
|
|
9
10
|
import "react";
|
|
@@ -1583,6 +1584,7 @@ async function loadPageWithDeps(deps, params) {
|
|
|
1583
1584
|
},
|
|
1584
1585
|
resolvedData,
|
|
1585
1586
|
bookingOfferingPresets: support.bookingOfferingPresets,
|
|
1587
|
+
openingHours: support.openingHours,
|
|
1586
1588
|
siteTerms: support.siteTerms,
|
|
1587
1589
|
mailingList: support.mailingList,
|
|
1588
1590
|
bookingTimeZone: support.bookingTimeZone,
|
|
@@ -1820,6 +1822,7 @@ function getRejectedReason(result) {
|
|
|
1820
1822
|
function toTemplateContentRenderSupport(support, siteId) {
|
|
1821
1823
|
return {
|
|
1822
1824
|
bookingOfferingPresets: support.bookingOfferingPresets,
|
|
1825
|
+
openingHours: support.openingHours,
|
|
1823
1826
|
siteTerms: support.siteTerms,
|
|
1824
1827
|
mailingList: support.mailingList,
|
|
1825
1828
|
bookingTimeZone: support.bookingTimeZone,
|
|
@@ -2097,6 +2100,7 @@ async function loadContentFromContentResponseWithDeps(deps, params) {
|
|
|
2097
2100
|
resolvedData,
|
|
2098
2101
|
dataContext: { previewStage },
|
|
2099
2102
|
bookingOfferingPresets: support.bookingOfferingPresets,
|
|
2103
|
+
openingHours: support.openingHours,
|
|
2100
2104
|
siteTerms: support.siteTerms,
|
|
2101
2105
|
mailingList: support.mailingList,
|
|
2102
2106
|
bookingTimeZone: support.bookingTimeZone,
|
|
@@ -2224,4 +2228,22 @@ function resolveLinkHref(link, context = {}) {
|
|
|
2224
2228
|
return sanitizeHref(resolveAuthoredLinkHref(link, context)) ?? null;
|
|
2225
2229
|
}
|
|
2226
2230
|
//#endregion
|
|
2227
|
-
|
|
2231
|
+
//#region src/rendering/repeater-grid.ts
|
|
2232
|
+
/** Derive every authoring rule from the field, then return a display-only layout. */
|
|
2233
|
+
function buildRepeaterGridLayoutForRendering(input) {
|
|
2234
|
+
const plan = deriveFieldValidationPlan(parseFieldDefinition(input.field));
|
|
2235
|
+
if (plan.kind !== "repeater") throw new Error("Expected a repeater field");
|
|
2236
|
+
const layout = admitLayoutGridForPlan(plan, input.items, input.rootValues);
|
|
2237
|
+
if (!layout) throw new Error("Expected a layoutGrid repeater field");
|
|
2238
|
+
return projectRepeaterGridLayoutForRendering$1(layout, input.columns ?? layout.columns);
|
|
2239
|
+
}
|
|
2240
|
+
/** Valid authored layouts retain their desktop positions; narrow widths are display-only. */
|
|
2241
|
+
function projectRepeaterGridLayout(layout, columns) {
|
|
2242
|
+
return projectRepeaterGridLayout$1(layout, columns);
|
|
2243
|
+
}
|
|
2244
|
+
/** Invalid layouts use saved array order and auto-placement, without an authoring capacity limit. */
|
|
2245
|
+
function projectRepeaterGridLayoutForRendering(layout, columns = layout.columns) {
|
|
2246
|
+
return projectRepeaterGridLayoutForRendering$1(layout, columns);
|
|
2247
|
+
}
|
|
2248
|
+
//#endregion
|
|
2249
|
+
export { Block, EditorPageRenderer, ImagePresets, Layout, MISSING_SDK_THEME_ERROR_CODE, MissingBlockOverrideError, MissingSdkThemeError, Page, PageRenderer, RichText, ThemeScope, UnsupportedOverrideOnlyLayoutChromeError, buildFooterRenderablePageOutline, buildRenderableMediaAssetIndex, buildRepeaterGridLayoutForRendering, buildThemeRuntime, defineBlockOverrideRegistrations, defineBlockOverrides, defineLazyBlockOverride, isEntryContent, isPageContent, isPageSurfaceContent, loadContent, loadPage, mediaIdentifierSchema, mediaSchema, parseCanonicalMediaIdentifier, parseMediaIdentifier, persistableMediaSchema, projectRepeaterGridLayout, projectRepeaterGridLayoutForRendering, renderableMediaAssetSchema, resolveImageRenderProps, resolveImageSourceSetWithContext, resolveImageUrl, resolveImageUrlWithContext, resolveLinkHref, resolveManagedMediaReference, runtimeMediaSchema, toBlocksImageResolveContextInput, toBlocksMediaAssets, toBlocksPageRendererDataContext };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { X as RichTextDocSchema, t as logger } from "./noop-
|
|
2
|
+
import { X as RichTextDocSchema, t as logger } from "./noop-DMFt3KdC.mjs";
|
|
3
3
|
//#region ../blocks/src/system/runtime/nodes/richText-coerce.ts
|
|
4
4
|
function parseRichTextDoc(value) {
|
|
5
5
|
const parsed = RichTextDocSchema.safeParse(value);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Vt as createHostedBlockApiConfig } from "./wizardSteps-
|
|
2
|
+
import { Vt as createHostedBlockApiConfig } from "./wizardSteps-HdyGoIG3.mjs";
|
|
3
3
|
//#region src/rendering/islands/enhancers/routeIslandApiConfig.ts
|
|
4
4
|
function buildRouteIslandApiConfig({ apiBaseUrl, portalToken, previewToken, siteId, stage, readAuthority }) {
|
|
5
5
|
if (readAuthority) return createHostedBlockApiConfig({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as ShopClient } from "./shop.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-CTzHkEkh.mjs";
|
|
3
|
+
import { t as ShopClient } from "./shop.client-X6d6KVmA.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-Y182kN_s.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/shop.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("shop");
|
|
7
7
|
const enhance = (root, props) => {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-DVBC_pS9.mjs";
|
|
3
|
-
import { Ut as RichText } from "./wizardSteps-
|
|
4
|
-
import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, n as DemoBookingPortalAccess, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "./DemoBookingPortalAccess-
|
|
5
|
-
import { O as buildProductCartItem, b as buildProductDetailDisplay, j as productItemKey, k as deriveCommerceCheckoutState, u as getShopDisplayForItems, x as formatCommercePrice, y as buildProductCardDisplay } from "./shop.interactive-
|
|
3
|
+
import { Ut as RichText } from "./wizardSteps-HdyGoIG3.mjs";
|
|
4
|
+
import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, n as DemoBookingPortalAccess, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "./DemoBookingPortalAccess-CdnFgDyQ.mjs";
|
|
5
|
+
import { O as buildProductCartItem, b as buildProductDetailDisplay, j as productItemKey, k as deriveCommerceCheckoutState, u as getShopDisplayForItems, x as formatCommercePrice, y as buildProductCardDisplay } from "./shop.interactive-DBMeM8VD.mjs";
|
|
6
6
|
import { a as clearWorkflowFeedback, o as reportWorkflowError, t as assertNever } from "./src-7cXhT0G_.mjs";
|
|
7
7
|
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-CYj06rX1.mjs";
|
|
8
8
|
import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-DKlZRNZD.mjs";
|
|
9
|
-
import { a as initialDiscountApplyState, c as checkoutFormForDiscountUiState, d as planUnifiedCheckoutRequest, f as ShopAddFeedback, i as getDiscountApplyFeedback, l as planCartDiscountAvailabilityRequests, m as consumeSearchParam, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, s as aggregateCartDiscountUiState, t as useDiscountApply } from "./useDiscountApply-
|
|
9
|
+
import { a as initialDiscountApplyState, c as checkoutFormForDiscountUiState, d as planUnifiedCheckoutRequest, f as ShopAddFeedback, i as getDiscountApplyFeedback, l as planCartDiscountAvailabilityRequests, m as consumeSearchParam, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, s as aggregateCartDiscountUiState, t as useDiscountApply } from "./useDiscountApply-BTu9EeT7.mjs";
|
|
10
10
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
11
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-
|
|
12
|
-
import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-
|
|
13
|
-
import { n as useBlockApi } from "./context-
|
|
14
|
-
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-
|
|
11
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-DXAmC72p.mjs";
|
|
12
|
+
import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-hJr_L4QC2.mjs";
|
|
13
|
+
import { n as useBlockApi } from "./context-CVsgML69.mjs";
|
|
14
|
+
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-CUlwvmxf.mjs";
|
|
15
15
|
import { t as CarouselNodeClient } from "./carousel.client-BJGoJVtg.mjs";
|
|
16
|
-
import { n as useCommerceCart } from "./shop-commerce-store-
|
|
16
|
+
import { n as useCommerceCart } from "./shop-commerce-store-CRnQ4M18.mjs";
|
|
17
17
|
import * as React$1 from "react";
|
|
18
18
|
import { useEffect, useState } from "react";
|
|
19
19
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { A as parseStoredCommerceCartState, D as buildPassCartItem, E as EMPTY_COMMERCE_CART_STATE, M as reduceCommerceCart } from "./shop.interactive-
|
|
2
|
+
import { A as parseStoredCommerceCartState, D as buildPassCartItem, E as EMPTY_COMMERCE_CART_STATE, M as reduceCommerceCart } from "./shop.interactive-DBMeM8VD.mjs";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
//#region ../blocks/src/system/runtime/nodes/shop-commerce-store.ts
|
|
5
5
|
const EMPTY_STATE = EMPTY_COMMERCE_CART_STATE;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { r as ThemedButton } from "./ThemedButton-DVBC_pS9.mjs";
|
|
3
|
-
import { Bn as getShopSuccessCopy,
|
|
4
|
-
import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-
|
|
5
|
-
import { S as formatInterval, _ as shopProductPresentation, x as formatCommercePrice } from "./shop.interactive-
|
|
3
|
+
import { Bn as getShopSuccessCopy, Ki as assertNever } from "./wizardSteps-HdyGoIG3.mjs";
|
|
4
|
+
import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-CdnFgDyQ.mjs";
|
|
5
|
+
import { S as formatInterval, _ as shopProductPresentation, x as formatCommercePrice } from "./shop.interactive-DBMeM8VD.mjs";
|
|
6
6
|
import { t as assertNever$1 } from "./src-7cXhT0G_.mjs";
|
|
7
7
|
import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
|
|
8
8
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
9
|
-
import { a as initialDiscountApplyState, f as ShopAddFeedback, h as consumeSearchParams, i as getDiscountApplyFeedback, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, t as useDiscountApply, u as planDirectShopCheckoutRequest } from "./useDiscountApply-
|
|
9
|
+
import { a as initialDiscountApplyState, f as ShopAddFeedback, h as consumeSearchParams, i as getDiscountApplyFeedback, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, t as useDiscountApply, u as planDirectShopCheckoutRequest } from "./useDiscountApply-BTu9EeT7.mjs";
|
|
10
10
|
import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
|
|
11
11
|
import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
|
|
12
12
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
13
|
-
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
13
|
+
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-BfZxdxI-.mjs";
|
|
14
14
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
15
|
-
import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, r as MembershipCardView } from "./view-
|
|
16
|
-
import { n as useBlockApi } from "./context-
|
|
17
|
-
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-
|
|
15
|
+
import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, r as MembershipCardView } from "./view-hJr_L4QC2.mjs";
|
|
16
|
+
import { n as useBlockApi } from "./context-CVsgML69.mjs";
|
|
17
|
+
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-CUlwvmxf.mjs";
|
|
18
18
|
import { t as CarouselNodeClient } from "./carousel.client-BJGoJVtg.mjs";
|
|
19
|
-
import { t as addPassToCommerceCart } from "./shop-commerce-store-
|
|
19
|
+
import { t as addPassToCommerceCart } from "./shop-commerce-store-CRnQ4M18.mjs";
|
|
20
20
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
21
21
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
22
22
|
//#region ../blocks/src/system/runtime/shared/components/ActionRow.tsx
|
|
@@ -2,13 +2,165 @@
|
|
|
2
2
|
import { d as formatDateKey, l as buildCalendarViewport } from "./src-1PJxc8KO.mjs";
|
|
3
3
|
import { T as ok, d as parseEventSeriesId, l as parseContentVersionId, w as err } from "./renderableMediaAssetAdmission-DGjBr_e-.mjs";
|
|
4
4
|
import { Cn as toNonEmptyReadonlyArray, Mr as formatCurrencyAmount, S as clsx, Ut as cardRoleSchema, an as assertNever, h as ExternalLinkIcon, i as ThemedButtonLink, n as ThemedAuthoredButton } from "./ThemedButton-DVBC_pS9.mjs";
|
|
5
|
-
import { $t as resolveMediaNodeResponsiveImage, Ar as listLookSlot, Bt as browserReadAuthoritySchema,
|
|
6
|
-
import { A as eventScheduleScopeValues, B as normalizeIdList, C as eventCalendarVariantMeaning, D as isEventCalendarListLayout, F as normalizeEventStaffMemberId, H as publicEventLoaderQuerySchemaShape, L as normalizeEventSurfacePresetsCsv, N as normalizeEventCategoryIdsCsv, P as normalizeEventScheduleScope, R as normalizeEventSurfaceScope, U as publicEventSchema,
|
|
5
|
+
import { $t as resolveMediaNodeResponsiveImage, Ar as listLookSlot, Bt as browserReadAuthoritySchema, Cr as resolveEventRegistrationScopedEvents, Dn as selectEventCapacitySource, Dr as isDecodeSuccess, Er as defineProgressiveBlockRuntime, Fi as parseMailchimpInterestId, Ft as toWholeSeriesRegistrationEvents, Gt as MediaPlaceholder, Ii as parseNewsletterListId, It as placesLeftLabel, Jt as renderAudio, Ki as assertNever$1, Kt as computeMediaTransformStyle, Li as formatBookingPriceDisplay, Lt as registrationDisplaySchema, Ni as parseBrevoListId, Nt as toRegistrationEvents, Oi as resolveWholeSeriesRunLifecycle, Or as listItemPresentation, Pi as parseMailchimpAudienceId, Pt as toWholeSeriesRegistrationEvent, Ri as formatEventPricing, Rt as resolveRegistrationDisplay, St as withOccurrenceTitle, Ti as nextLiveRunSessionStartMs, Tr as defineClientOwnedBlockRuntime, U as resolveEventRequiresPayment, Ur as resolveModeArrangement, Ut as RichText, V as findPreSelectedEvent, Vi as publicEventPricingDisplay, Wt as ImagePresets, Yt as renderVideo, _n as resolveRuntimeEventDestination, an as eventDateOptions, ar as eventButtonVariantSchema, br as defineInteractiveIslandMetaKeys, c as registrationStepLabelContext, cr as eventLayoutSchema, dr as registrationButtonVariantSchema, fr as weekStartSchema, in as eventDateLocale, ir as columnOptionSchema, ji as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, jr as lookListPresentationSchemaShape, ki as parseMailingListRuntimeContext, kn as groupPublicEventsByRun, ln as formatEventCompactDateRail, lr as filterAutoShowSchema, lt as formatBookingScheduleSummary, mr as blockButtonRoleSchema, mt as formatRegistrationSchedule, n as getEventSelectionMode, nr as bookingNowSchema, o as registrationRoute, or as eventCalendarDefaultViewSchema, p as isRegistrationLocked, qt as mediaImageHostProps, rn as eventCalendarWeekStart, rr as calendarTabViewsSchema, s as registrationStepLabel, sr as eventCalendarDisplayModeSchema, t as REGISTRATION_STEP_LABELS, ur as previewStageSchema, ut as formatBookingWhen, vr as buildInteractiveIslandProps, wr as createZodCodec, xn as formatRemainingPlaces, xr as eventRegistrationPageSurfaceSubjectSchema, yr as createInteractiveIslandCodec, zt as shownVenue } from "./wizardSteps-HdyGoIG3.mjs";
|
|
6
|
+
import { A as eventScheduleScopeValues, B as normalizeIdList, C as eventCalendarVariantMeaning, Ct as toUtcIsoDateTimeString, D as isEventCalendarListLayout, F as normalizeEventStaffMemberId, H as publicEventLoaderQuerySchemaShape, L as normalizeEventSurfacePresetsCsv, N as normalizeEventCategoryIdsCsv, P as normalizeEventScheduleScope, R as normalizeEventSurfaceScope, U as publicEventSchema, ht as getLocalScheduleDate, j as eventSurfaceScopeValues, k as resolveEventCalendarReadPlan, n as blockSiteTermsSchema, nt as formatDateRange, p as calendarWindowPageSchema, ut as buildBookingUtcDateWindow, w as eventListArrangementValues, y as eventCalendarListGroupingDecision, yt as resolveBookingBusinessTimeZone, z as normalizeEventVenueId } from "./noop-DMFt3KdC.mjs";
|
|
7
7
|
import { n as getCurrentResolveImageUrlContext } from "./mediaContext-DThoeEBU.mjs";
|
|
8
8
|
import { n as getCreditProductCreditUnit, t as deriveCreditProductLabels } from "./creditProducts-BOWi1QLp.mjs";
|
|
9
9
|
import "react";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
//#region ../core/src/public-profile.ts
|
|
13
|
+
const publicProfileWeekdays = [
|
|
14
|
+
"monday",
|
|
15
|
+
"tuesday",
|
|
16
|
+
"wednesday",
|
|
17
|
+
"thursday",
|
|
18
|
+
"friday",
|
|
19
|
+
"saturday",
|
|
20
|
+
"sunday"
|
|
21
|
+
];
|
|
22
|
+
function isRecord$3(value) {
|
|
23
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
24
|
+
}
|
|
25
|
+
function trimmedOptionalString(value) {
|
|
26
|
+
if (value === null || value === void 0) return null;
|
|
27
|
+
if (typeof value !== "string") return void 0;
|
|
28
|
+
const trimmed = value.trim();
|
|
29
|
+
return trimmed.length > 0 ? trimmed : null;
|
|
30
|
+
}
|
|
31
|
+
function parsePublicProfileTimeZone(value) {
|
|
32
|
+
const timeZone = trimmedOptionalString(value);
|
|
33
|
+
if (timeZone === null || timeZone === void 0) return err({
|
|
34
|
+
code: "invalid_timezone",
|
|
35
|
+
path: "openingHours.timeZone",
|
|
36
|
+
message: "Choose a timezone."
|
|
37
|
+
});
|
|
38
|
+
try {
|
|
39
|
+
new Intl.DateTimeFormat("en-GB", { timeZone }).format(/* @__PURE__ */ new Date(0));
|
|
40
|
+
return ok(timeZone);
|
|
41
|
+
} catch {
|
|
42
|
+
return err({
|
|
43
|
+
code: "invalid_timezone",
|
|
44
|
+
path: "openingHours.timeZone",
|
|
45
|
+
message: "Choose a valid IANA timezone."
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function parseOpeningHoursTime(value, path) {
|
|
50
|
+
if (typeof value !== "string" || !/^(?:[01]\d|2[0-3]):[0-5]\d$/u.test(value)) return err({
|
|
51
|
+
code: "invalid_time",
|
|
52
|
+
path,
|
|
53
|
+
message: "Use a 24-hour time such as 09:00."
|
|
54
|
+
});
|
|
55
|
+
return ok(value);
|
|
56
|
+
}
|
|
57
|
+
function minutesSinceMidnight(value) {
|
|
58
|
+
const [hours = "0", minutes = "0"] = value.split(":");
|
|
59
|
+
return Number(hours) * 60 + Number(minutes);
|
|
60
|
+
}
|
|
61
|
+
function parseOpeningHoursDay(value, expectedWeekday, index) {
|
|
62
|
+
const path = `openingHours.days.${index}`;
|
|
63
|
+
if (!isRecord$3(value) || value.weekday !== expectedWeekday) return err({
|
|
64
|
+
code: "invalid_weekdays",
|
|
65
|
+
path,
|
|
66
|
+
message: `Expected ${expectedWeekday} in calendar order.`
|
|
67
|
+
});
|
|
68
|
+
if (value.kind === "closed") return ok({
|
|
69
|
+
kind: "closed",
|
|
70
|
+
weekday: expectedWeekday
|
|
71
|
+
});
|
|
72
|
+
if (value.kind !== "open" || !Array.isArray(value.intervals) || value.intervals.length === 0) return err({
|
|
73
|
+
code: "invalid_interval",
|
|
74
|
+
path: `${path}.intervals`,
|
|
75
|
+
message: "Open days need at least one opening interval."
|
|
76
|
+
});
|
|
77
|
+
const intervals = [];
|
|
78
|
+
for (const [intervalIndex, rawInterval] of value.intervals.entries()) {
|
|
79
|
+
const intervalPath = `${path}.intervals.${intervalIndex}`;
|
|
80
|
+
if (!isRecord$3(rawInterval)) return err({
|
|
81
|
+
code: "invalid_interval",
|
|
82
|
+
path: intervalPath,
|
|
83
|
+
message: "Opening interval is invalid."
|
|
84
|
+
});
|
|
85
|
+
const opensAt = parseOpeningHoursTime(rawInterval.opensAt, `${intervalPath}.opensAt`);
|
|
86
|
+
if (!opensAt.ok) return opensAt;
|
|
87
|
+
const closesAt = parseOpeningHoursTime(rawInterval.closesAt, `${intervalPath}.closesAt`);
|
|
88
|
+
if (!closesAt.ok) return closesAt;
|
|
89
|
+
if (minutesSinceMidnight(opensAt.value) >= minutesSinceMidnight(closesAt.value)) return err({
|
|
90
|
+
code: "invalid_interval",
|
|
91
|
+
path: intervalPath,
|
|
92
|
+
message: "Closing time must be later than opening time on the same day."
|
|
93
|
+
});
|
|
94
|
+
intervals.push({
|
|
95
|
+
opensAt: opensAt.value,
|
|
96
|
+
closesAt: closesAt.value
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
intervals.sort((left, right) => minutesSinceMidnight(left.opensAt) - minutesSinceMidnight(right.opensAt));
|
|
100
|
+
for (let intervalIndex = 1; intervalIndex < intervals.length; intervalIndex += 1) {
|
|
101
|
+
const previous = intervals[intervalIndex - 1];
|
|
102
|
+
const current = intervals[intervalIndex];
|
|
103
|
+
if (previous !== void 0 && current !== void 0 && minutesSinceMidnight(current.opensAt) < minutesSinceMidnight(previous.closesAt)) return err({
|
|
104
|
+
code: "overlapping_intervals",
|
|
105
|
+
path: `${path}.intervals.${intervalIndex}`,
|
|
106
|
+
message: "Opening intervals cannot overlap."
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
const [first, ...rest] = intervals;
|
|
110
|
+
if (first === void 0) return err({
|
|
111
|
+
code: "invalid_interval",
|
|
112
|
+
path,
|
|
113
|
+
message: "Open days need an opening interval."
|
|
114
|
+
});
|
|
115
|
+
return ok({
|
|
116
|
+
kind: "open",
|
|
117
|
+
weekday: expectedWeekday,
|
|
118
|
+
intervals: [first, ...rest]
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
function parseOpeningHoursWeek(rawDays) {
|
|
122
|
+
const parsedDays = publicProfileWeekdays.map((weekday, index) => parseOpeningHoursDay(rawDays[index], weekday, index));
|
|
123
|
+
const failed = parsedDays.find((day) => !day.ok);
|
|
124
|
+
if (failed !== void 0) return failed;
|
|
125
|
+
const [monday, tuesday, wednesday, thursday, friday, saturday, sunday] = parsedDays.flatMap((day) => day.ok ? [day.value] : []);
|
|
126
|
+
if (monday === void 0 || tuesday === void 0 || wednesday === void 0 || thursday === void 0 || friday === void 0 || saturday === void 0 || sunday === void 0) return err({
|
|
127
|
+
code: "invalid_weekdays",
|
|
128
|
+
path: "openingHours.days",
|
|
129
|
+
message: "Opening hours are incomplete."
|
|
130
|
+
});
|
|
131
|
+
return ok([
|
|
132
|
+
monday,
|
|
133
|
+
tuesday,
|
|
134
|
+
wednesday,
|
|
135
|
+
thursday,
|
|
136
|
+
friday,
|
|
137
|
+
saturday,
|
|
138
|
+
sunday
|
|
139
|
+
]);
|
|
140
|
+
}
|
|
141
|
+
function parseWeeklyOpeningHours(value) {
|
|
142
|
+
if (!isRecord$3(value) || !Array.isArray(value.days) || value.days.length !== publicProfileWeekdays.length) return err({
|
|
143
|
+
code: "invalid_weekdays",
|
|
144
|
+
path: "openingHours.days",
|
|
145
|
+
message: "Opening hours must include all seven weekdays."
|
|
146
|
+
});
|
|
147
|
+
const timeZone = parsePublicProfileTimeZone(value.timeZone);
|
|
148
|
+
if (!timeZone.ok) return timeZone;
|
|
149
|
+
const note = value.note === void 0 || value.note === null ? null : trimmedOptionalString(value.note);
|
|
150
|
+
if (note === void 0) return err({
|
|
151
|
+
code: "invalid_shape",
|
|
152
|
+
path: "openingHours.note",
|
|
153
|
+
message: "The opening hours note must be text."
|
|
154
|
+
});
|
|
155
|
+
const days = parseOpeningHoursWeek(value.days);
|
|
156
|
+
if (!days.ok) return days;
|
|
157
|
+
return ok({
|
|
158
|
+
timeZone: timeZone.value,
|
|
159
|
+
...note !== null ? { note } : {},
|
|
160
|
+
days: days.value
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
//#endregion
|
|
12
164
|
//#region ../core/src/mailing-list-targeting.ts
|
|
13
165
|
const DEFAULT_MAILING_LIST_TARGETING = { mode: "default" };
|
|
14
166
|
function sameMailingListPlacementTargeting(left, right) {
|
|
@@ -4419,4 +4571,4 @@ function shopProductPresentation(hydration, productId, index, count) {
|
|
|
4419
4571
|
};
|
|
4420
4572
|
}
|
|
4421
4573
|
//#endregion
|
|
4422
|
-
export { OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as $, resolveHeaderChromeRuntimeContract as $t, parseStoredCommerceCartState as A, eventListingInteractiveIslandPropsCodec as At, giftingBlockRuntime as B, resolveCardListSchedule as Bt, membershipCardListContent as C, buildEventCalendarInteractiveIslandProps as Ct, buildPassCartItem as D, eventCalendarInteractiveIslandPropsCodec as Dt, EMPTY_COMMERCE_CART_STATE as E, eventCalendarBlockRuntime as Et, buildNewsletterFormInteractiveIslandProps as F, normalizeOptionalId as Ft, formInteractiveIslandPropsCodec as G, Grid as Gt, publicGiftingOffersResponseSchema as H, MediaNodeServer as Ht, newsletterBlockSubmissionMessage as I, catalogueEventCardProps as It, displayButtonText as J, formatEventPriceAmount as Jt, buildEventRegistrationDisplayFromScopedEvents as K, buildEventListWeek as Kt, newsletterFormBlockRuntime as L, listingEventCardProps as Lt, reduceCommerceCart as M, getEventRuntimeFiltersKey as Mt, publicProductsResponseSchema as N, normalizeCsvIds as Nt, buildProductCartItem as O, buildEventListingInteractiveIslandProps as Ot, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as P, normalizeCsvString as Pt, OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS as Q, isHeaderScrollRuntimeEnabled as Qt, newsletterFormInteractiveIslandPropsCodec as R, CardListContentPart as Rt, formatInterval as S, eventCombinedInteractiveIslandPropsCodec as St, passCardListContent as T, buildEventCalendarListingRender as Tt, buildFormInteractiveIslandProps as U, getCardOrientation as Ut, giftingInteractiveIslandPropsCodec as V, selectCardListPresentation as Vt, formBlockRuntime as W, getContainerClass as Wt, eventRegistrationInteractiveIslandPropsCodec as X, resolveEventSelection as Xt, eventRegistrationBlockRuntime as Y, formatEventPriceDisplay as Yt, offeringNounForEvent as Z, headerChromeRuntimeContractSchema as Zt, shopProductPresentation as _, bookingPanelHeading as _t, buildShopInteractiveIslandProps as a, publicPassProductCollectionSchema as an, normalizeOfferingsPreviewContentForWrite as at, buildProductDetailDisplay as b, buildEventCombinedListingDisplay as bt, checkoutBlockRuntime as c, parseMailingListVisitorSelection as cn, resolveOfferingsPreviewGroupCta as ct, productDetailBlockRuntime as d, resolveOfferingsRenderInput as dt, staticHeaderChromeRuntime as en, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as et, productDetailInteractiveIslandPropsCodec as f, DEFAULT_BOOKING_BUTTON_TEXT as ft, shopInteractiveIslandPropsCodec as g, bookingEntryProgress as gt, shopBlockRuntime as h, bookingEntry as ht, buildProductListInteractiveIslandProps as i, publicMembershipProductCollectionSchema as in, isOfferingsPreviewSourceKey as it, productItemKey as j, buildEventRuntimeFilters as jt, deriveCommerceCheckoutState as k, eventListingBlockRuntime as kt, checkoutInteractiveIslandPropsCodec as l, DEFAULT_MAILING_LIST_TARGETING as ln, resolveOfferingsPreviewGroups as lt, productListInteractiveIslandPropsCodec as m, bookingCardEntry as mt, buildCheckoutInteractiveIslandProps as n, planSiteChromePlacement as nn, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as nt, cartBlockRuntime as o, buildMailingListSignupBlockSourceRef as on, normalizeOfferingsPreviewItemLimit as ot, productListBlockRuntime as p, bookingBarPlacement as pt, buildEventRegistrationInteractiveIslandProps as q, formatEventPrice as qt, buildProductDetailInteractiveIslandProps as r, splitSiteChromePlacementClasses as rn, buildOfferingsPreviewListing as rt, cartInteractiveIslandPropsCodec as s, parseMailingListPlacementTargeting as sn, offeringsListingFor as st, buildCartInteractiveIslandProps as t, parseHeaderPositioning as tn, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as tt, getShopDisplayForItems as u, sameMailingListPlacementTargeting as un, resolveOfferingsPreviewRunPath as ut, buildCartDisplay as v, occurrenceContextSchema as vt, membershipClassesLabel as w, buildEventCalendarListingDisplay as wt, formatCommercePrice as x, eventCombinedBlockRuntime as xt, buildProductCardDisplay as y, buildEventCombinedInteractiveIslandProps as yt, buildGiftingInteractiveIslandProps as z, CardListLeadDate as zt };
|
|
4574
|
+
export { OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as $, resolveHeaderChromeRuntimeContract as $t, parseStoredCommerceCartState as A, eventListingInteractiveIslandPropsCodec as At, giftingBlockRuntime as B, resolveCardListSchedule as Bt, membershipCardListContent as C, buildEventCalendarInteractiveIslandProps as Ct, buildPassCartItem as D, eventCalendarInteractiveIslandPropsCodec as Dt, EMPTY_COMMERCE_CART_STATE as E, eventCalendarBlockRuntime as Et, buildNewsletterFormInteractiveIslandProps as F, normalizeOptionalId as Ft, formInteractiveIslandPropsCodec as G, Grid as Gt, publicGiftingOffersResponseSchema as H, MediaNodeServer as Ht, newsletterBlockSubmissionMessage as I, catalogueEventCardProps as It, displayButtonText as J, formatEventPriceAmount as Jt, buildEventRegistrationDisplayFromScopedEvents as K, buildEventListWeek as Kt, newsletterFormBlockRuntime as L, listingEventCardProps as Lt, reduceCommerceCart as M, getEventRuntimeFiltersKey as Mt, publicProductsResponseSchema as N, normalizeCsvIds as Nt, buildProductCartItem as O, buildEventListingInteractiveIslandProps as Ot, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as P, normalizeCsvString as Pt, OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS as Q, isHeaderScrollRuntimeEnabled as Qt, newsletterFormInteractiveIslandPropsCodec as R, CardListContentPart as Rt, formatInterval as S, eventCombinedInteractiveIslandPropsCodec as St, passCardListContent as T, buildEventCalendarListingRender as Tt, buildFormInteractiveIslandProps as U, getCardOrientation as Ut, giftingInteractiveIslandPropsCodec as V, selectCardListPresentation as Vt, formBlockRuntime as W, getContainerClass as Wt, eventRegistrationInteractiveIslandPropsCodec as X, resolveEventSelection as Xt, eventRegistrationBlockRuntime as Y, formatEventPriceDisplay as Yt, offeringNounForEvent as Z, headerChromeRuntimeContractSchema as Zt, shopProductPresentation as _, bookingPanelHeading as _t, buildShopInteractiveIslandProps as a, publicPassProductCollectionSchema as an, normalizeOfferingsPreviewContentForWrite as at, buildProductDetailDisplay as b, buildEventCombinedListingDisplay as bt, checkoutBlockRuntime as c, parseMailingListVisitorSelection as cn, resolveOfferingsPreviewGroupCta as ct, productDetailBlockRuntime as d, parseWeeklyOpeningHours as dn, resolveOfferingsRenderInput as dt, staticHeaderChromeRuntime as en, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as et, productDetailInteractiveIslandPropsCodec as f, DEFAULT_BOOKING_BUTTON_TEXT as ft, shopInteractiveIslandPropsCodec as g, bookingEntryProgress as gt, shopBlockRuntime as h, bookingEntry as ht, buildProductListInteractiveIslandProps as i, publicMembershipProductCollectionSchema as in, isOfferingsPreviewSourceKey as it, productItemKey as j, buildEventRuntimeFilters as jt, deriveCommerceCheckoutState as k, eventListingBlockRuntime as kt, checkoutInteractiveIslandPropsCodec as l, DEFAULT_MAILING_LIST_TARGETING as ln, resolveOfferingsPreviewGroups as lt, productListInteractiveIslandPropsCodec as m, bookingCardEntry as mt, buildCheckoutInteractiveIslandProps as n, planSiteChromePlacement as nn, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as nt, cartBlockRuntime as o, buildMailingListSignupBlockSourceRef as on, normalizeOfferingsPreviewItemLimit as ot, productListBlockRuntime as p, bookingBarPlacement as pt, buildEventRegistrationInteractiveIslandProps as q, formatEventPrice as qt, buildProductDetailInteractiveIslandProps as r, splitSiteChromePlacementClasses as rn, buildOfferingsPreviewListing as rt, cartInteractiveIslandPropsCodec as s, parseMailingListPlacementTargeting as sn, offeringsListingFor as st, buildCartInteractiveIslandProps as t, parseHeaderPositioning as tn, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as tt, getShopDisplayForItems as u, sameMailingListPlacementTargeting as un, resolveOfferingsPreviewRunPath as ut, buildCartDisplay as v, occurrenceContextSchema as vt, membershipClassesLabel as w, buildEventCalendarListingDisplay as wt, formatCommercePrice as x, eventCombinedBlockRuntime as xt, buildProductCardDisplay as y, buildEventCombinedInteractiveIslandProps as yt, buildGiftingInteractiveIslandProps as z, CardListLeadDate as zt };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-CVsgML69.mjs";
|
|
3
3
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
4
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
4
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CmC7ygin.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/rendering/islands/enhancers/shopShared.tsx
|
|
@@ -1,11 +1,11 @@
|
|
|
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
3
|
import { S as clsx, i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-DVBC_pS9.mjs";
|
|
4
|
-
import { Ar as listLookSlot, En as isEventFull, Or as listItemPresentation, an as eventDateOptions, bn as formatEventRemainingPlaces, gn as resolveEventTimeZone, hn as groupEventsByDate, mn as formatTime, pn as formatEventTimeRange, wn as getEventAvailabilityStatus } from "./wizardSteps-
|
|
5
|
-
import {
|
|
6
|
-
import { n as resolveEventLinkProps } from "./cta-
|
|
7
|
-
import { a as buildMonthDay, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-
|
|
8
|
-
import { i as formatEventTeacherLine, r as EventItem } from "./EventItem-
|
|
4
|
+
import { Ar as listLookSlot, En as isEventFull, Or as listItemPresentation, an as eventDateOptions, bn as formatEventRemainingPlaces, gn as resolveEventTimeZone, hn as groupEventsByDate, mn as formatTime, pn as formatEventTimeRange, wn as getEventAvailabilityStatus } from "./wizardSteps-HdyGoIG3.mjs";
|
|
5
|
+
import { gt as parseBookingLocalDate, tt as formatDate } from "./noop-DMFt3KdC.mjs";
|
|
6
|
+
import { n as resolveEventLinkProps } from "./cta-BWnUuJce.mjs";
|
|
7
|
+
import { a as buildMonthDay, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-CIcMQRc1.mjs";
|
|
8
|
+
import { i as formatEventTeacherLine, r as EventItem } from "./EventItem-DnCTygqk.mjs";
|
|
9
9
|
import "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
//#region ../blocks/src/system/runtime/nodes/events/shared/MonthLookView.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { h as unsafeAsAppointmentResourceId } from "./renderableMediaAssetAdmission-DGjBr_e-.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { at as formatTime$1, bt as resolveBookingTimeZoneId, gt as parseBookingLocalDate, lt as addLocalScheduleDays, pt as formatLocalScheduleDate, tt as formatDate$1, vt as parseUtcIsoDateTimeString } from "./noop-DMFt3KdC.mjs";
|
|
4
4
|
import { t as assertNever } from "./src-7cXhT0G_.mjs";
|
|
5
|
-
import { n as useBlockApi } from "./context-
|
|
5
|
+
import { n as useBlockApi } from "./context-CVsgML69.mjs";
|
|
6
6
|
import { useCallback, useEffect, useReducer, useRef } from "react";
|
|
7
7
|
//#region ../blocks/src/utils/date-formatting.ts
|
|
8
8
|
/**
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Ct as toUtcIsoDateTimeString } from "./noop-DMFt3KdC.mjs";
|
|
3
|
+
import { useCallback, useEffect, useState } from "react";
|
|
4
|
+
//#region ../blocks/src/system/runtime/hooks/useBookingNowIso.ts
|
|
5
|
+
const ANCHOR_CLOCK = { kind: "anchor" };
|
|
6
|
+
const MAX_TIMER_DELAY_MS = 2147483647;
|
|
7
|
+
const browserClock = () => toUtcIsoDateTimeString((/* @__PURE__ */ new Date()).toISOString());
|
|
8
|
+
/** The effect owns one timer, including long-delay and early-timer retries. */
|
|
9
|
+
function scheduleBookingClockBoundary(boundary, refresh, clock) {
|
|
10
|
+
const timer = {};
|
|
11
|
+
const schedule = () => {
|
|
12
|
+
const delay = Date.parse(boundary) - Date.parse(clock());
|
|
13
|
+
if (!Number.isFinite(delay) || delay <= 0) return;
|
|
14
|
+
timer.current = setTimeout(() => {
|
|
15
|
+
refresh();
|
|
16
|
+
schedule();
|
|
17
|
+
}, Math.min(delay, MAX_TIMER_DELAY_MS));
|
|
18
|
+
};
|
|
19
|
+
schedule();
|
|
20
|
+
return () => {
|
|
21
|
+
if (timer.current !== void 0) clearTimeout(timer.current);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The supplied server clock snapshot for this booking or registration flow.
|
|
26
|
+
*
|
|
27
|
+
* Payment previews take this as their "now" so the pure view-model builders
|
|
28
|
+
* never read the clock themselves. The anchor stays fixed per mount. Lifecycle
|
|
29
|
+
* presentation starts with the same snapshot, then reconciles in effects.
|
|
30
|
+
*/
|
|
31
|
+
function useBookingNowIso(snapshot, policy = ANCHOR_CLOCK, clock = browserClock) {
|
|
32
|
+
const [nowIso, setNowIso] = useState(snapshot);
|
|
33
|
+
const refresh = useCallback(() => setNowIso(clock()), [clock]);
|
|
34
|
+
const nextBoundary = policy.kind === "presentation" ? policy.nextBoundary : null;
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
if (policy.kind === "anchor") return;
|
|
37
|
+
refresh();
|
|
38
|
+
const interval = policy.kind === "relative" ? setInterval(refresh, 6e4) : null;
|
|
39
|
+
window.addEventListener("focus", refresh);
|
|
40
|
+
document.addEventListener("visibilitychange", refresh);
|
|
41
|
+
return () => {
|
|
42
|
+
if (interval !== null) clearInterval(interval);
|
|
43
|
+
window.removeEventListener("focus", refresh);
|
|
44
|
+
document.removeEventListener("visibilitychange", refresh);
|
|
45
|
+
};
|
|
46
|
+
}, [policy.kind, refresh]);
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
if (!nextBoundary) return;
|
|
49
|
+
return scheduleBookingClockBoundary(nextBoundary, refresh, clock);
|
|
50
|
+
}, [
|
|
51
|
+
nextBoundary,
|
|
52
|
+
clock,
|
|
53
|
+
refresh
|
|
54
|
+
]);
|
|
55
|
+
return nowIso;
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
export { useBookingNowIso as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { T as ok, w as err } from "./renderableMediaAssetAdmission-DGjBr_e-.mjs";
|
|
3
|
-
import { c as discountAvailabilityAllowsManualEntry, l as discountAvailabilityHasDiscounts, u as getAutoAppliedDiscountPreview } from "./DemoBookingPortalAccess-
|
|
3
|
+
import { c as discountAvailabilityAllowsManualEntry, l as discountAvailabilityHasDiscounts, u as getAutoAppliedDiscountPreview } from "./DemoBookingPortalAccess-CdnFgDyQ.mjs";
|
|
4
4
|
import { t as assertNever } from "./src-7cXhT0G_.mjs";
|
|
5
5
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
6
6
|
import * as React$1 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-CdnFgDyQ.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,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-DVBC_pS9.mjs";
|
|
3
|
-
import { Ar as listLookSlot, Ht as getBlockApiReadStage, Or as listItemPresentation } from "./wizardSteps-
|
|
4
|
-
import { Ft as normalizeOptionalId, Mt as getEventRuntimeFiltersKey, Nt as normalizeCsvIds, Pt as normalizeCsvString } from "./shop.interactive-
|
|
3
|
+
import { Ar as listLookSlot, Ht as getBlockApiReadStage, Or as listItemPresentation } from "./wizardSteps-HdyGoIG3.mjs";
|
|
4
|
+
import { Ft as normalizeOptionalId, Mt as getEventRuntimeFiltersKey, Nt as normalizeCsvIds, Pt as normalizeCsvString } from "./shop.interactive-DBMeM8VD.mjs";
|
|
5
5
|
import { t as assertNever } from "./src-7cXhT0G_.mjs";
|
|
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-
|
|
6
|
+
import { r as EventItem } from "./EventItem-DnCTygqk.mjs";
|
|
7
|
+
import { i as EventCard, n as EmptyState, r as EventCompactRow, t as EventListingFrameView } from "./EventListing.view-pAuTDyrP.mjs";
|
|
8
|
+
import { n as useBlockApi } from "./context-CVsgML69.mjs";
|
|
9
|
+
import { t as LeafletStaticMap } from "./LeafletStaticMap-3XiWSgy0.mjs";
|
|
10
10
|
import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
|
|
11
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
//#region ../blocks/src/system/runtime/hooks/loadStateError.ts
|