@riverbankcms/sdk 0.158.0 → 0.160.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/README.md +25 -6
- package/dist/_dts/{BlocksIslandsHydrator-BgNBtEai.d.ts → BlocksIslandsHydrator-CoqeotCL.d.ts} +1 -1
- package/dist/_dts/{Page-DpCo8zXD.d.ts → Page-C0ENVLCF.d.ts} +13 -6
- package/dist/_dts/{SdkPreviewMode-Bv2TMscG.d.ts → SdkPreviewMode-jZK0A49V.d.ts} +54 -126
- package/dist/_dts/{client-B960v2gW.d.ts → client-uMMuPq9V.d.ts} +23 -1
- package/dist/_dts/{content-types-CN0Wy8V6.d.ts → content-types-D6nXGqdQ.d.ts} +18 -18
- package/dist/_dts/{contracts-BFUrby76.d.ts → contracts-Bnmj1nxu.d.ts} +6 -5
- package/dist/_dts/{footerPageOutline-CmoqleLS.d.ts → footerPageOutline-CeLjFX8b.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-Dkvivc3R.d.ts → generatePageMetadata-nyU8q02J.d.ts} +5 -2
- package/dist/_dts/{index-DPfI2t5A.d.ts → index-BaaGBY1v.d.ts} +2 -2
- package/dist/_dts/{index-DCNu_8it.d.ts → index-Bg64CkV-.d.ts} +4 -4
- package/dist/_dts/index-Blwl7yl6.d.ts +13 -0
- package/dist/_dts/{index-DaS_z6ir.d.ts → index-C5xslEBn.d.ts} +2 -2
- package/dist/_dts/{index-DpgkhY-a.d.ts → index-CEaKil7G.d.ts} +2 -2
- package/dist/_dts/{index-Ba6RmuxX.d.ts → index-DahMwisK.d.ts} +3 -3
- package/dist/_dts/index-lkpjIg5i.d.ts +66 -0
- package/dist/_dts/{index-DfkFWUxt.d.ts → index-nVoi_74l.d.ts} +2 -2
- package/dist/_dts/{loadContent-DvvKF4nB.d.ts → loadContent-CYLmzvLq.d.ts} +16 -7
- package/dist/_dts/{resolvePageContent-D0lGwVD6.d.ts → resolvePageContent-DqnxChOs.d.ts} +2 -2
- package/dist/_dts/{constants-DkcKHMX-.d.ts → runtime-BY8DQBbT.d.ts} +10 -16
- package/dist/_dts/{hosted-booking-appearance-BIbit60h.d.ts → schema-D0bNcPWK.d.ts} +6921 -6768
- 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 +12 -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 +6 -6
- package/dist/_dts/sdk/src/metadata/index.d.ts +8 -2
- 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 +10 -28
- 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/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/{types-BJrRUaY7.d.ts → types-CFrYuXYP.d.ts} +2 -2
- package/dist/_dts/{navigation-n-eTVTIQ.d.ts → types-D8czmbQF.d.ts} +15430 -16836
- package/dist/_dts/{types-BY7PgnDi.d.ts → types-DSgmJ15W.d.ts} +7 -7
- package/dist/_dts/{types-maEnXL6Z.d.ts → types-Dm-KW7nj.d.ts} +10 -13
- package/dist/_dts/{validation-BjuVrMrs.d.ts → validation-Bmb4WnHg.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-WRLS96Ev.mjs → BlocksIslandsHydrator-DZRKi6tT.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-eovghMPa.mjs → BookingMailingListNote-C00sLLdL.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-CIcMQRc1.mjs → CalendarNavigationChevron-CHSi9b3E.mjs} +6 -6
- package/dist/client/{CheckboxChoice-BF9eCNno.mjs → CheckboxChoice-Bhm6RAUL.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-CdnFgDyQ.mjs → DemoBookingPortalAccess-CaN-7ui7.mjs} +6 -6
- package/dist/client/{DemoPortalSignInLink-DHxYgkT6.mjs → DemoPortalSignInLink-ClxN5_xZ.mjs} +1 -1
- package/dist/client/{EventCalendar.client-Dc-ZLxKo.mjs → EventCalendar.client-BncvSa1n.mjs} +10 -9
- package/dist/client/{EventCombined.client-C93XqRIv.mjs → EventCombined.client-DluBxVVu.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-B3XUyNY9.mjs → EventEmbeddedCheckoutStep-BiJrMtfp.mjs} +1 -1
- package/dist/client/{EventItem-DnCTygqk.mjs → EventItem-CXhnT9pF.mjs} +11 -6
- package/dist/client/{EventListWeekNavigation-9h97heuQ.mjs → EventListWeekNavigation-V-dtoDlD.mjs} +1 -1
- package/dist/client/{EventListing.client-DFKlQvvs.mjs → EventListing.client-DPO6SZbx.mjs} +3 -3
- package/dist/client/{EventListing.view-pAuTDyrP.mjs → EventListing.view-B-Yi5JZS.mjs} +7 -7
- package/dist/client/{EventRegistrationPayment-rgKlBvhP.mjs → EventRegistrationPayment-Dc3Fnlnw.mjs} +189 -176
- package/dist/client/{LeafletStaticMap-3XiWSgy0.mjs → LeafletStaticMap-ClZCCzAm.mjs} +1 -1
- package/dist/client/{Page-BmpeAwID.mjs → Page-7PkzO04N.mjs} +1949 -2074
- package/dist/client/{StepIndicator-qEq6X5zP.mjs → StepIndicator-DiD6euZ8.mjs} +3 -3
- package/dist/client/{TabBarFragment-DvzIV75f.mjs → TabBarFragment-BHd8GN8y.mjs} +1 -1
- package/dist/client/{ThemedButton-DVBC_pS9.mjs → ThemedButton-C22C9cCF.mjs} +174 -93
- package/dist/client/{accordion-DeObOasQ.mjs → accordion-2m27DsIk.mjs} +1 -1
- package/dist/client/{booking-form.client-DfWeF0lj.mjs → booking-form.client-BddWV5w1.mjs} +12 -12
- package/dist/client/{bookingForm-TnzIBHx2.mjs → bookingForm-bcdXQjmw.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{carousel-kkFnbr5Z.mjs → carousel-D7nj9I0y.mjs} +2 -2
- package/dist/client/{carousel.client-BJGoJVtg.mjs → carousel.client-AffDJo_s.mjs} +1 -1
- package/dist/client/{cart-BAXNbFux.mjs → cart-PN6yCw1H.mjs} +3 -3
- package/dist/client/{cart.client-BczxUF70.mjs → cart.client-D4t1f0cJ.mjs} +1 -1
- package/dist/client/{checkout-C5NRhPeP.mjs → checkout-CsTwXVSb.mjs} +3 -3
- package/dist/client/{checkout.client-BuDk3Td9.mjs → checkout.client-BhQE3zY7.mjs} +1 -1
- package/dist/client/client.mjs +25 -13
- package/dist/client/{context-CVsgML69.mjs → context-BLAvalAa.mjs} +1 -1
- package/dist/client/{cta-BWnUuJce.mjs → cta-CUXhX_D7.mjs} +2 -1
- package/dist/client/dateFormatting-BHIHxNuo.mjs +61 -0
- package/dist/client/{demoPortalMagicLink-CUlwvmxf.mjs → demoPortalMagicLink-R-awbk_0.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-Cw8nnFj-.mjs → enhanceHeaderSection-9Q93uvTo.mjs} +3 -3
- package/dist/client/{event-details.client-Bl0E_6Vi.mjs → event-details.client-BS1WtG-a.mjs} +2 -2
- package/dist/client/{event-registration.client-DmfLg_LC.mjs → event-registration.client-BXndwsET.mjs} +35 -21
- package/dist/client/{eventCalendar-D1Dwb9VA.mjs → eventCalendar-HyoOt1Qz.mjs} +4 -4
- package/dist/client/{eventCombined-DfsqY1qR.mjs → eventCombined-sdG5oEaH.mjs} +4 -4
- package/dist/client/{eventDetails-BmugDVoa.mjs → eventDetails-FFAknE4w.mjs} +2 -2
- package/dist/client/{eventListing-BPAGJi3C.mjs → eventListing-CGK6urk3.mjs} +4 -4
- package/dist/client/{eventRegistration-DBlz_x6u.mjs → eventRegistration-VhrvCs4l.mjs} +4 -4
- package/dist/client/{form-DVu3ZMjx.mjs → form-C-B5O_ko.mjs} +3 -3
- package/dist/client/{form.client-QZUyABIY.mjs → form.client-DoZVcl8d.mjs} +5 -5
- package/dist/client/{form.parts-Bs0F3v08.mjs → form.parts-mttKpgif.mjs} +3 -3
- package/dist/client/{formatDate-BD9D3dgo.mjs → formatDate-xUSCknEO.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-BQwWW4Yy.mjs → headerSection-BHUEXsaI.mjs} +2 -2
- package/dist/client/{location-map.client-upKuwABk.mjs → location-map.client-Cylb_MHw.mjs} +2 -2
- package/dist/client/{location-map.view-RuBCD10O.mjs → location-map.view-Cx4Bl7ij.mjs} +69 -6
- package/dist/client/{locationMap-1sCbsk0V.mjs → locationMap-QnKJi-nZ.mjs} +2 -2
- package/dist/client/{newsletter-form.client-DBTU3oNv.mjs → newsletter-form.client-D_n0rftg.mjs} +8 -8
- package/dist/client/{newsletter-form.parts-C9I9JBhe.mjs → newsletter-form.parts-DKHye4IE.mjs} +2 -2
- package/dist/client/{newsletterForm-DTPtTxxG.mjs → newsletterForm-tEaYelzx.mjs} +3 -3
- package/dist/client/{noop-DMFt3KdC.mjs → noop-B610YKEx.mjs} +12 -5
- package/dist/client/portal/client.mjs +4562 -174
- package/dist/client/{product-detail.client-BX7M5o6p.mjs → product-detail.client-DUf5x5Jt.mjs} +1 -1
- package/dist/client/{product-list.client-i32QNY4c.mjs → product-list.client-Cqp1BPTV.mjs} +1 -1
- package/dist/client/{productDetail-DWjE9zm7.mjs → productDetail-B8bBiogP.mjs} +3 -3
- package/dist/client/{productList-DZH9_brv.mjs → productList-BKN4D-1z.mjs} +3 -3
- package/dist/client/{propsDecoder-CTzHkEkh.mjs → propsDecoder-2nNZh2Oe.mjs} +3 -3
- package/dist/client/{registry.server-vJ5FlscU.mjs → registry.server-BAm4RPNJ.mjs} +856 -872
- package/dist/client/rendering/client.mjs +27 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +47 -28
- package/dist/client/{richText-coerce-DXAmC72p.mjs → richText-coerce-Cv-qomNB.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CmC7ygin.mjs → routeIslandApiConfig-C5u8MbAA.mjs} +1 -1
- package/dist/client/{shop-C7eL3B37.mjs → shop-DZNC0VKk.mjs} +3 -3
- package/dist/client/{shop-commerce-D8oRN0QJ.mjs → shop-commerce-DdX4LSa3.mjs} +12 -12
- package/dist/client/{shop-commerce-store-CRnQ4M18.mjs → shop-commerce-store-BJtrZov9.mjs} +1 -1
- package/dist/client/{shop.client-X6d6KVmA.mjs → shop.client-DmDd-igg.mjs} +16 -15
- package/dist/client/{shop.interactive-DBMeM8VD.mjs → shop.interactive-5SnnDHz3.mjs} +402 -35
- package/dist/client/{shopShared-Y182kN_s.mjs → shopShared-CPqUlAh9.mjs} +2 -2
- package/dist/client/{src-7cXhT0G_.mjs → src-VIsPY-kw.mjs} +6 -1
- package/dist/client/timetableModel-C19rcHEw.mjs +960 -0
- package/dist/client/{useAvailableSlots-BDV6MHgJ.mjs → useAvailableSlots-BjbJXotk.mjs} +3 -3
- package/dist/client/{useBookingNowIso-DgJEv3ZY.mjs → useBookingNowIso-CMgfL7YJ.mjs} +1 -1
- package/dist/client/{useDiscountApply-BTu9EeT7.mjs → useDiscountApply-KG8jB7WC.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-BfZxdxI-.mjs → useDiscountCodeUi-DK2w_i0a.mjs} +1 -1
- package/dist/client/{useEventPagination-pnvdHGeQ.mjs → useEventPagination-DW6MCirb.mjs} +11 -10
- package/dist/client/uuid-BETKW8rS.mjs +12 -0
- package/dist/client/{view-hJr_L4QC2.mjs → view-CkUn3Y0Y.mjs} +4 -4
- package/dist/client/{view-BPEa6Okm.mjs → view-CseyBW07.mjs} +15 -70
- package/dist/client/{wizardSteps-HdyGoIG3.mjs → wizardSteps-zgq10lN1.mjs} +262 -65
- package/dist/preview-next/before-render.mjs +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-BFlBqSu4.mjs → EventEmbeddedCheckoutStep-lUHBrzHv.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-CXRUbqMp.mjs → PreviewEditorSidebar-DWyUGCAG.mjs} +1217 -107
- package/dist/preview-next/client/{PreviewEditorUI-CxjEV0Fm.mjs → PreviewEditorUI-Wq0b3Daw.mjs} +52 -79
- package/dist/preview-next/client/{SdkPreviewModeRuntime-XdQSGGj_.mjs → SdkPreviewModeRuntime-BtZPcwYV.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BxI12BBS.mjs → SdkPreviewModeRuntime-wSI_R361.mjs} +720 -2035
- package/dist/preview-next/client/{SiteChromeCustomizeContext-CfRQRwpH.mjs → SiteChromeCustomizeContext-Hc4pYnNe.mjs} +14365 -8155
- package/dist/preview-next/client/{ThemedButton-BEOPss9H.mjs → ThemedButton-DzeycIlD.mjs} +204 -93
- package/dist/preview-next/client/{previewChromeSurface-CH7hd5n7.mjs → previewChromeSurface-Corq4AG7.mjs} +3 -8
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-C6xEU1LI.mjs → sdk-runtime-CWymRWhK.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +1359 -0
- package/dist/preview-next/client/{spinner-BTf1CZmy.mjs → spinner-C4If5Y-O.mjs} +1 -1
- package/dist/preview-next/editor-base.css +62 -0
- package/dist/preview-next/editor-chrome.css +85 -0
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DM22uOXM.mjs → route-contract-8csADeIT.mjs} +149 -112
- package/dist/server/{Block.shared-DLoilC2J.mjs → Block.shared-D1_gonwM.mjs} +6 -6
- package/dist/server/{bindings-C7DKLVx_.mjs → bindings-CFmJg5lm.mjs} +2 -2
- package/dist/server/{client-CU4wlMLE.mjs → client-DPsi0Dai.mjs} +9 -7
- package/dist/server/config-template-validation.mjs +50 -10
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{generatePageMetadata-CPvssVOp.mjs → generatePageMetadata-DB_lbrZ7.mjs} +28 -2
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-DmQ4BiiQ.mjs → loadContent-RMCcuVU_.mjs} +33 -20
- package/dist/server/loadPage-DUPP51C-.mjs +2 -0
- package/dist/server/{loadPage-BBkDQA57.mjs → loadPage-DhDGzj7t.mjs} +8 -5
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/metadata.mjs +2 -2
- package/dist/server/next.mjs +13 -12
- package/dist/server/{overrideResolution-ByeAbLSO.mjs → overrideResolution-OxY5FMuy.mjs} +1 -1
- package/dist/server/{overrides-BcA6ZPWf.mjs → overrides-Bz_A6sB9.mjs} +586 -518
- package/dist/server/page-converter.mjs +8 -10
- package/dist/server/{prebuild-8T-m7XjB.mjs → prebuild-B_1vrSru.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Bjya-X9t.mjs → prefetchBlockData-B7ukYXXR.mjs} +841 -887
- package/dist/server/{publicProducts-C3meXS2o.mjs → publicProducts-Djbpc81A.mjs} +166 -129
- package/dist/server/{blocks-jlIm0PWc.mjs → registry-eFjKtEhF.mjs} +2349 -1716
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-D0ow8PRJ.mjs → resolveBlockData-DYvEa9c5.mjs} +6 -3
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-Bs735S27.mjs → schema-C3dJ5UkL.mjs} +148 -88
- package/dist/server/server.mjs +3 -3
- package/dist/server/{siteChromeOverlayClearance-BangtD8A.mjs → siteChromeOverlayClearance-DALIAMwo.mjs} +108 -11
- package/dist/server/{src-B935_bzN.mjs → src-C5Mu-z0F.mjs} +268 -189
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-D2-BnmDO.mjs → themeAdmission-ruoyXb_0.mjs} +9 -7
- package/dist/server/{three-pass-converter-CmmchOFC.mjs → three-pass-converter-Chnb1XD-.mjs} +2 -58
- package/dist/server/{validation-Cm41pDUB.mjs → validation-B-Xar8QS.mjs} +22 -63
- package/dist/server/{version-Bo9C3McI.mjs → version-Bg7VHK3i.mjs} +1 -1
- package/dist/styles/index.css +78 -0
- package/package.json +8 -3
- package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
- package/dist/_dts/index-cnymEAZY.d.ts +0 -1
- package/dist/client/timetableModel-D7PwpaBY.mjs +0 -480
- package/dist/preview-next/client/siteStyleAccess-CRXaC2oL.mjs +0 -1326
- package/dist/server/loadPage-ZrcfjG3X.mjs +0 -2
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
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
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { C as clsx, Nr as formatCurrencyAmount, Wt as cardRoleSchema, g as ExternalLinkIcon, i as ThemedButtonLink, n as ThemedAuthoredButton, on as assertNever, wn as toNonEmptyReadonlyArray } from "./ThemedButton-C22C9cCF.mjs";
|
|
5
|
+
import { c as assertNever$1 } from "./src-VIsPY-kw.mjs";
|
|
6
|
+
import { Ar as defineProgressiveBlockRuntime, Bi as parseNewsletterListId, Bt as registrationDisplaySchema, Cr as createInteractiveIslandCodec, Dr as resolveEventRegistrationScopedEvents, Fi as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, Fr as lookListPresentationSchemaShape, Gi as publicEventPricingDisplay, H as findPreSelectedEvent, Hi as formatEventPricing, Ht as shownVenue, It as toRegistrationEvents, Jt as MediaPlaceholder, Kt as RichText, Li as parseBrevoListId, Lt as toWholeSeriesRegistrationEvent, Mi as resolveWholeSeriesRunLifecycle, Mr as listItemPresentation, Ni as parseMailingListRuntimeContext, Nn as groupPublicEventsByRun, Or as createZodCodec, Pr as listLookSlot, Qt as renderVideo, Ri as parseMailchimpAudienceId, Rt as toWholeSeriesRegistrationEvents, Sr as buildInteractiveIslandProps, Tn as formatRemainingPlaces, Tr as eventRegistrationPageSurfaceSubjectSchema, Tt as withOccurrenceTitle, Ut as browserReadAuthoritySchema, Vi as formatBookingPriceDisplay, Vt as resolveRegistrationDisplay, W as resolveEventRequiresPayment, Xt as mediaImageHostProps, Yt as computeMediaTransformStyle, Zt as renderAudio, _t as formatRegistrationSchedule, c as registrationStepLabelContext, cn as eventDateOptions, cr as columnOptionSchema, dr as eventCalendarDisplayModeSchema, fr as eventLayoutSchema, gr as weekStartSchema, hr as registrationButtonVariantSchema, jn as selectEventCapacitySource, jr as isDecodeSuccess, ki as nextLiveRunSessionStartMs, kr as defineClientOwnedBlockRuntime, lr as eventButtonVariantSchema, mr as previewStageSchema, n as getEventSelectionMode, nn as resolveMediaNodeResponsiveImage, o as registrationRoute, on as eventCalendarWeekStart, or as bookingNowSchema, p as isRegistrationLocked, pn as formatEventCompactDateRail, pr as filterAutoShowSchema, pt as formatBookingWhen, qr as resolveModeArrangement, qt as ImagePresets, s as registrationStepLabel, sn as eventDateLocale, sr as calendarTabViewsSchema, t as REGISTRATION_STEP_LABELS, ur as eventCalendarDefaultViewSchema, vr as blockButtonRoleSchema, wr as defineInteractiveIslandMetaKeys, xn as resolveRuntimeEventDestination, xr as resolveDateRuntimeContext, zi as parseMailchimpInterestId, zt as placesLeftLabel } from "./wizardSteps-zgq10lN1.mjs";
|
|
7
|
+
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, V as publicEventDestinationSchema, at as formatTime, bt as resolveBookingTimeZoneId, ht as getLocalScheduleDate, j as eventSurfaceScopeValues, k as resolveEventCalendarReadPlan, n as blockSiteTermsSchema, nt as formatDateRange, p as calendarWindowPageSchema, st as inferSiteDateLocale, ut as buildBookingUtcDateWindow, vt as parseUtcIsoDateTimeString, w as eventListArrangementValues, y as eventCalendarListGroupingDecision, yt as resolveBookingBusinessTimeZone, z as normalizeEventVenueId } from "./noop-B610YKEx.mjs";
|
|
7
8
|
import { n as getCurrentResolveImageUrlContext } from "./mediaContext-DThoeEBU.mjs";
|
|
8
9
|
import { n as getCreditProductCreditUnit, t as deriveCreditProductLabels } from "./creditProducts-BOWi1QLp.mjs";
|
|
9
10
|
import "react";
|
|
@@ -1207,7 +1208,11 @@ function normalizeCsvString(value) {
|
|
|
1207
1208
|
//#endregion
|
|
1208
1209
|
//#region ../blocks/src/system/runtime/nodes/events/shared/listOptions.ts
|
|
1209
1210
|
const eventPageSizeValues = [
|
|
1211
|
+
1,
|
|
1212
|
+
2,
|
|
1210
1213
|
3,
|
|
1214
|
+
4,
|
|
1215
|
+
5,
|
|
1211
1216
|
6,
|
|
1212
1217
|
10,
|
|
1213
1218
|
12,
|
|
@@ -1216,7 +1221,11 @@ const eventPageSizeValues = [
|
|
|
1216
1221
|
30
|
|
1217
1222
|
];
|
|
1218
1223
|
const eventPageSizeSchema = z.union([
|
|
1224
|
+
z.literal(1),
|
|
1225
|
+
z.literal(2),
|
|
1219
1226
|
z.literal(3),
|
|
1227
|
+
z.literal(4),
|
|
1228
|
+
z.literal(5),
|
|
1220
1229
|
z.literal(6),
|
|
1221
1230
|
z.literal(10),
|
|
1222
1231
|
z.literal(12),
|
|
@@ -1232,15 +1241,20 @@ function resolveEventPageSize(value, fallback = 12) {
|
|
|
1232
1241
|
function resolveEventCalendarListPageSize(input) {
|
|
1233
1242
|
return resolveEventPageSize(input.eventsPerPage);
|
|
1234
1243
|
}
|
|
1235
|
-
const eventListPaginationActionSchema = z.discriminatedUnion("kind", [
|
|
1236
|
-
kind: z.literal("
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1244
|
+
const eventListPaginationActionSchema = z.discriminatedUnion("kind", [
|
|
1245
|
+
z.object({ kind: z.literal("none") }),
|
|
1246
|
+
z.object({
|
|
1247
|
+
kind: z.literal("loadMore"),
|
|
1248
|
+
label: z.string()
|
|
1249
|
+
}),
|
|
1250
|
+
z.object({
|
|
1251
|
+
kind: z.literal("seeAllLink"),
|
|
1252
|
+
label: z.string(),
|
|
1253
|
+
href: z.string()
|
|
1254
|
+
})
|
|
1255
|
+
]);
|
|
1243
1256
|
function resolveEventListPaginationAction(input) {
|
|
1257
|
+
if (input.paginationMode === "none") return { kind: "none" };
|
|
1244
1258
|
const label = input.loadMoreText?.trim() || input.defaultLabel || "Load more events";
|
|
1245
1259
|
const href = input.seeAllUrl?.trim();
|
|
1246
1260
|
if (input.paginationMode === "seeAllLink" && href) return {
|
|
@@ -1317,7 +1331,11 @@ const eventCollectionSourceSchemaShape = {
|
|
|
1317
1331
|
listLayout: eventLayoutSchema.optional(),
|
|
1318
1332
|
listColumns: columnOptionSchema.optional(),
|
|
1319
1333
|
eventsPerPage: z.string().optional(),
|
|
1320
|
-
paginationMode: z.enum([
|
|
1334
|
+
paginationMode: z.enum([
|
|
1335
|
+
"loadMore",
|
|
1336
|
+
"seeAllLink",
|
|
1337
|
+
"none"
|
|
1338
|
+
]).optional(),
|
|
1321
1339
|
seeAllUrl: z.string().optional(),
|
|
1322
1340
|
loadMoreText: z.string().optional(),
|
|
1323
1341
|
startOfWeek: weekStartSchema.optional(),
|
|
@@ -1327,6 +1345,7 @@ const eventCollectionSourceSchemaShape = {
|
|
|
1327
1345
|
showVenue: z.boolean().nullable().optional(),
|
|
1328
1346
|
showMap: z.boolean().nullable().optional(),
|
|
1329
1347
|
showCapacity: z.boolean().nullable().optional(),
|
|
1348
|
+
showPhotos: z.boolean().nullable().optional(),
|
|
1330
1349
|
cardRole: cardRoleSchema.optional(),
|
|
1331
1350
|
buttonVariant: eventButtonVariantSchema.optional(),
|
|
1332
1351
|
buttonText: z.string().optional(),
|
|
@@ -1359,6 +1378,7 @@ const eventCollectionDisplaySchemaShape = {
|
|
|
1359
1378
|
showVenue: z.boolean(),
|
|
1360
1379
|
showMap: z.boolean(),
|
|
1361
1380
|
showCapacity: z.boolean(),
|
|
1381
|
+
showPhotos: z.boolean().optional(),
|
|
1362
1382
|
cardRole: cardRoleSchema,
|
|
1363
1383
|
buttonVariant: eventButtonVariantSchema,
|
|
1364
1384
|
buttonText: z.string(),
|
|
@@ -1383,7 +1403,7 @@ const eventCollectionHydrationSchema = z.object({
|
|
|
1383
1403
|
function buildEventCollectionDisplay(source) {
|
|
1384
1404
|
return {
|
|
1385
1405
|
...buildEventCollectionFilterDisplay(source),
|
|
1386
|
-
|
|
1406
|
+
...buildEventCollectionListDisplay(source),
|
|
1387
1407
|
panelHeading: source.panelHeading,
|
|
1388
1408
|
lookSlots: source.lookSlots,
|
|
1389
1409
|
itemActionStyle: source.itemActionStyle,
|
|
@@ -1391,18 +1411,27 @@ function buildEventCollectionDisplay(source) {
|
|
|
1391
1411
|
roleSurfaces: source.roleSurfaces,
|
|
1392
1412
|
itemSurfaces: source.itemSurfaces,
|
|
1393
1413
|
...buildEventCollectionPresentationDisplay(source),
|
|
1414
|
+
startOfWeek: eventCalendarWeekStart(resolveBookingBusinessTimeZone(source.bookingTimeZone ?? source.calendarWindow?.scope.timeZone), source.startOfWeek),
|
|
1415
|
+
calendarTabViews: source.calendarTabViews ?? "both",
|
|
1416
|
+
defaultCalendarView: source.defaultCalendarView ?? "month"
|
|
1417
|
+
};
|
|
1418
|
+
}
|
|
1419
|
+
function buildEventCollectionListDisplay(source) {
|
|
1420
|
+
const paginationAction = resolveEventListPaginationAction({
|
|
1421
|
+
paginationMode: source.paginationMode,
|
|
1422
|
+
seeAllUrl: source.seeAllUrl,
|
|
1423
|
+
loadMoreText: source.loadMoreText
|
|
1424
|
+
});
|
|
1425
|
+
return {
|
|
1394
1426
|
events: Array.isArray(source.events) ? [...source.events] : [],
|
|
1395
1427
|
listLayout: source.listLayout ?? "stack",
|
|
1396
1428
|
listColumns: source.listColumns ?? "3",
|
|
1397
1429
|
eventsPerPage: source.lookSlots !== void 0 && source.listLayout === "compact" ? 3 : resolveEventCalendarListPageSize({ eventsPerPage: source.eventsPerPage }),
|
|
1398
|
-
paginationAction
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
}
|
|
1403
|
-
startOfWeek: eventCalendarWeekStart(resolveBookingBusinessTimeZone(source.bookingTimeZone ?? source.calendarWindow?.scope.timeZone), source.startOfWeek),
|
|
1404
|
-
calendarTabViews: source.calendarTabViews ?? "both",
|
|
1405
|
-
defaultCalendarView: source.defaultCalendarView ?? "month"
|
|
1430
|
+
paginationAction,
|
|
1431
|
+
sectionAction: paginationAction.kind === "seeAllLink" ? {
|
|
1432
|
+
href: paginationAction.href,
|
|
1433
|
+
label: paginationAction.label
|
|
1434
|
+
} : void 0
|
|
1406
1435
|
};
|
|
1407
1436
|
}
|
|
1408
1437
|
function buildEventCollectionFilterDisplay(source) {
|
|
@@ -1436,6 +1465,7 @@ function buildEventCollectionPresentationDisplay(source) {
|
|
|
1436
1465
|
showVenue: source.showVenue ?? true,
|
|
1437
1466
|
showMap: source.showMap ?? true,
|
|
1438
1467
|
showCapacity: source.showCapacity ?? true,
|
|
1468
|
+
showPhotos: source.showPhotos ?? true,
|
|
1439
1469
|
cardRole: source.cardRole ?? "default",
|
|
1440
1470
|
buttonVariant: source.buttonVariant ?? "primary",
|
|
1441
1471
|
buttonText: source.buttonText ?? "Book",
|
|
@@ -1481,18 +1511,11 @@ function buildEventCollectionListingDisplay(display, prefetchedEvents, className
|
|
|
1481
1511
|
showVenue: display.showVenue,
|
|
1482
1512
|
showMap: display.showMap,
|
|
1483
1513
|
showCapacity: display.showCapacity,
|
|
1514
|
+
showPhotos: display.showPhotos,
|
|
1484
1515
|
orientation: getCardOrientation(display.listLayout),
|
|
1485
1516
|
events: initialEvents
|
|
1486
1517
|
};
|
|
1487
1518
|
}
|
|
1488
|
-
/** Existing pagination fields also supply the optional arrangement section action. */
|
|
1489
|
-
function eventSectionAction(source) {
|
|
1490
|
-
const href = source.seeAllUrl?.trim();
|
|
1491
|
-
return (source.lookSlots || source.paginationMode === "seeAllLink") && href ? {
|
|
1492
|
-
href,
|
|
1493
|
-
label: source.loadMoreText?.trim() || "See the full timetable"
|
|
1494
|
-
} : void 0;
|
|
1495
|
-
}
|
|
1496
1519
|
//#endregion
|
|
1497
1520
|
//#region ../blocks/src/system/runtime/nodes/events/EventListing.interactive.ts
|
|
1498
1521
|
const cardOrientationSchema = z.enum(["vertical", "horizontal"]);
|
|
@@ -1507,7 +1530,11 @@ const eventListingSourceSchema = z.object({
|
|
|
1507
1530
|
layout: z.enum(eventListArrangementValues).optional(),
|
|
1508
1531
|
columns: columnOptionSchema.optional(),
|
|
1509
1532
|
eventsPerPage: z.string().optional(),
|
|
1510
|
-
paginationMode: z.enum([
|
|
1533
|
+
paginationMode: z.enum([
|
|
1534
|
+
"loadMore",
|
|
1535
|
+
"seeAllLink",
|
|
1536
|
+
"none"
|
|
1537
|
+
]).optional(),
|
|
1511
1538
|
seeAllUrl: z.string().optional(),
|
|
1512
1539
|
loadMoreText: z.string().optional(),
|
|
1513
1540
|
cardRole: cardRoleSchema.optional(),
|
|
@@ -1539,6 +1566,7 @@ const eventListingDisplaySchema = z.object({
|
|
|
1539
1566
|
showVenue: z.boolean(),
|
|
1540
1567
|
showMap: z.boolean(),
|
|
1541
1568
|
showCapacity: z.boolean(),
|
|
1569
|
+
showPhotos: z.boolean().optional(),
|
|
1542
1570
|
orientation: cardOrientationSchema,
|
|
1543
1571
|
events: z.array(publicEventSchema)
|
|
1544
1572
|
});
|
|
@@ -1649,9 +1677,296 @@ function buildEventListingInteractiveIslandProps(props) {
|
|
|
1649
1677
|
});
|
|
1650
1678
|
}
|
|
1651
1679
|
//#endregion
|
|
1680
|
+
//#region ../blocks/src/system/blocks/events/recurring-schedule-projection.ts
|
|
1681
|
+
const weekdayOrder = [
|
|
1682
|
+
"Monday",
|
|
1683
|
+
"Tuesday",
|
|
1684
|
+
"Wednesday",
|
|
1685
|
+
"Thursday",
|
|
1686
|
+
"Friday",
|
|
1687
|
+
"Saturday",
|
|
1688
|
+
"Sunday"
|
|
1689
|
+
];
|
|
1690
|
+
const weekdayCodeOrder = [
|
|
1691
|
+
"MO",
|
|
1692
|
+
"TU",
|
|
1693
|
+
"WE",
|
|
1694
|
+
"TH",
|
|
1695
|
+
"FR",
|
|
1696
|
+
"SA",
|
|
1697
|
+
"SU"
|
|
1698
|
+
];
|
|
1699
|
+
const recurringScheduleWeekdaySchema = z.enum(weekdayOrder);
|
|
1700
|
+
const recurringScheduleSeriesIdSchema = z.string().transform((value, context) => {
|
|
1701
|
+
const parsed = parseEventSeriesId(value);
|
|
1702
|
+
if (parsed.ok) return parsed.value;
|
|
1703
|
+
context.addIssue({
|
|
1704
|
+
code: "custom",
|
|
1705
|
+
message: "Expected a valid event series ID"
|
|
1706
|
+
});
|
|
1707
|
+
return z.NEVER;
|
|
1708
|
+
});
|
|
1709
|
+
const recurringScheduleProjectionSchema = z.object({
|
|
1710
|
+
items: z.array(z.object({
|
|
1711
|
+
seriesId: recurringScheduleSeriesIdSchema,
|
|
1712
|
+
title: z.string(),
|
|
1713
|
+
venueName: z.string().nullable(),
|
|
1714
|
+
cadence: z.object({
|
|
1715
|
+
kind: z.literal("weekly"),
|
|
1716
|
+
weekday: recurringScheduleWeekdaySchema,
|
|
1717
|
+
weekdays: z.array(recurringScheduleWeekdaySchema).min(1).readonly().optional(),
|
|
1718
|
+
weekdayIndex: z.number().int().min(0).max(6),
|
|
1719
|
+
startTime: z.string(),
|
|
1720
|
+
endTime: z.string(),
|
|
1721
|
+
timeZone: z.string()
|
|
1722
|
+
}).readonly(),
|
|
1723
|
+
booking: z.discriminatedUnion("kind", [z.object({
|
|
1724
|
+
kind: z.literal("available"),
|
|
1725
|
+
destination: publicEventDestinationSchema
|
|
1726
|
+
}).readonly(), z.object({
|
|
1727
|
+
kind: z.literal("unavailable"),
|
|
1728
|
+
reason: z.literal("missing_destination")
|
|
1729
|
+
}).readonly()])
|
|
1730
|
+
}).readonly()).readonly(),
|
|
1731
|
+
diagnostics: z.array(z.object({
|
|
1732
|
+
seriesId: z.string(),
|
|
1733
|
+
reason: z.enum([
|
|
1734
|
+
"invalid_series_id",
|
|
1735
|
+
"insufficient_evidence",
|
|
1736
|
+
"inconsistent_weekday",
|
|
1737
|
+
"inconsistent_local_time",
|
|
1738
|
+
"inconsistent_weekly_interval",
|
|
1739
|
+
"inconsistent_recurrence",
|
|
1740
|
+
"unsupported_weekly_cadence",
|
|
1741
|
+
"inconsistent_timezone"
|
|
1742
|
+
])
|
|
1743
|
+
}).readonly()).readonly()
|
|
1744
|
+
}).readonly();
|
|
1745
|
+
const weekdayFormatterCache = /* @__PURE__ */ new Map();
|
|
1746
|
+
const timeFormatterCache = /* @__PURE__ */ new Map();
|
|
1747
|
+
const dateFormatterCache = /* @__PURE__ */ new Map();
|
|
1748
|
+
function weekdayFormatter(timeZone) {
|
|
1749
|
+
const cached = weekdayFormatterCache.get(timeZone);
|
|
1750
|
+
if (cached) return cached;
|
|
1751
|
+
const formatter = new Intl.DateTimeFormat("en-GB", {
|
|
1752
|
+
timeZone,
|
|
1753
|
+
weekday: "long"
|
|
1754
|
+
});
|
|
1755
|
+
weekdayFormatterCache.set(timeZone, formatter);
|
|
1756
|
+
return formatter;
|
|
1757
|
+
}
|
|
1758
|
+
function timeFormatter(timeZone) {
|
|
1759
|
+
const cached = timeFormatterCache.get(timeZone);
|
|
1760
|
+
if (cached) return cached;
|
|
1761
|
+
const formatter = new Intl.DateTimeFormat("en-GB", {
|
|
1762
|
+
timeZone,
|
|
1763
|
+
hour: "2-digit",
|
|
1764
|
+
minute: "2-digit",
|
|
1765
|
+
hourCycle: "h23"
|
|
1766
|
+
});
|
|
1767
|
+
timeFormatterCache.set(timeZone, formatter);
|
|
1768
|
+
return formatter;
|
|
1769
|
+
}
|
|
1770
|
+
function dateFormatter(timeZone) {
|
|
1771
|
+
const cached = dateFormatterCache.get(timeZone);
|
|
1772
|
+
if (cached) return cached;
|
|
1773
|
+
const formatter = new Intl.DateTimeFormat("en-GB", {
|
|
1774
|
+
timeZone,
|
|
1775
|
+
year: "numeric",
|
|
1776
|
+
month: "2-digit",
|
|
1777
|
+
day: "2-digit"
|
|
1778
|
+
});
|
|
1779
|
+
dateFormatterCache.set(timeZone, formatter);
|
|
1780
|
+
return formatter;
|
|
1781
|
+
}
|
|
1782
|
+
function localCalendarDay(value, timeZone) {
|
|
1783
|
+
const parts = dateFormatter(timeZone).formatToParts(value);
|
|
1784
|
+
const year = Number(parts.find((part) => part.type === "year")?.value);
|
|
1785
|
+
const month = Number(parts.find((part) => part.type === "month")?.value);
|
|
1786
|
+
const day = Number(parts.find((part) => part.type === "day")?.value);
|
|
1787
|
+
if (![
|
|
1788
|
+
year,
|
|
1789
|
+
month,
|
|
1790
|
+
day
|
|
1791
|
+
].every(Number.isInteger)) return null;
|
|
1792
|
+
return Math.floor(Date.UTC(year, month - 1, day) / 864e5);
|
|
1793
|
+
}
|
|
1794
|
+
function parseWeekday(value) {
|
|
1795
|
+
return weekdayOrder.find((weekday) => weekday === value) ?? null;
|
|
1796
|
+
}
|
|
1797
|
+
function localScheduleForEvent(event) {
|
|
1798
|
+
if (!event.timeZone) return null;
|
|
1799
|
+
try {
|
|
1800
|
+
const startsAt = new Date(event.startsAt);
|
|
1801
|
+
const weekday = parseWeekday(weekdayFormatter(event.timeZone).format(startsAt));
|
|
1802
|
+
const calendarDay = localCalendarDay(startsAt, event.timeZone);
|
|
1803
|
+
if (!weekday || calendarDay === null) return null;
|
|
1804
|
+
return {
|
|
1805
|
+
weekday,
|
|
1806
|
+
weekdayIndex: weekdayOrder.indexOf(weekday),
|
|
1807
|
+
startTime: timeFormatter(event.timeZone).format(startsAt),
|
|
1808
|
+
endTime: timeFormatter(event.timeZone).format(new Date(event.endsAt)),
|
|
1809
|
+
localCalendarDay: calendarDay,
|
|
1810
|
+
timeZone: event.timeZone
|
|
1811
|
+
};
|
|
1812
|
+
} catch {
|
|
1813
|
+
return null;
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
function bookingForEvent(event) {
|
|
1817
|
+
const destination = event.destination;
|
|
1818
|
+
return (destination.kind === "external" ? destination.url.trim().length > 0 : destination.path.trim().length > 0) ? {
|
|
1819
|
+
kind: "available",
|
|
1820
|
+
destination
|
|
1821
|
+
} : {
|
|
1822
|
+
kind: "unavailable",
|
|
1823
|
+
reason: "missing_destination"
|
|
1824
|
+
};
|
|
1825
|
+
}
|
|
1826
|
+
function bookingForEvents(events) {
|
|
1827
|
+
for (const event of events) {
|
|
1828
|
+
const booking = bookingForEvent(event);
|
|
1829
|
+
if (booking.kind === "available") return booking;
|
|
1830
|
+
}
|
|
1831
|
+
return {
|
|
1832
|
+
kind: "unavailable",
|
|
1833
|
+
reason: "missing_destination"
|
|
1834
|
+
};
|
|
1835
|
+
}
|
|
1836
|
+
function compareEvents(left, right) {
|
|
1837
|
+
const timeDifference = Date.parse(left.startsAt) - Date.parse(right.startsAt);
|
|
1838
|
+
return timeDifference !== 0 ? timeDifference : left.occurrenceId.localeCompare(right.occurrenceId);
|
|
1839
|
+
}
|
|
1840
|
+
function recurrenceKey(event) {
|
|
1841
|
+
const recurrence = event.recurrence;
|
|
1842
|
+
if (!recurrence) return "none";
|
|
1843
|
+
return recurrence.kind === "other" ? recurrence.kind : `${recurrence.kind}:${recurrence.interval}:${recurrence.weekdays.join(",")}`;
|
|
1844
|
+
}
|
|
1845
|
+
function recurrenceRuleEvidence(seriesId, events, schedule) {
|
|
1846
|
+
if (new Set(events.map(recurrenceKey)).size > 1) return {
|
|
1847
|
+
seriesId,
|
|
1848
|
+
reason: "inconsistent_recurrence"
|
|
1849
|
+
};
|
|
1850
|
+
const recurrence = events[0]?.recurrence;
|
|
1851
|
+
if (!recurrence) return null;
|
|
1852
|
+
if (recurrence.kind !== "weekly" || recurrence.interval !== 1) return {
|
|
1853
|
+
seriesId,
|
|
1854
|
+
reason: "unsupported_weekly_cadence"
|
|
1855
|
+
};
|
|
1856
|
+
const weekdayCode = weekdayCodeOrder[schedule.weekdayIndex];
|
|
1857
|
+
if (recurrence.weekdays.length > 0 && !recurrence.weekdays.some((day) => day === weekdayCode)) return {
|
|
1858
|
+
seriesId,
|
|
1859
|
+
reason: "inconsistent_recurrence"
|
|
1860
|
+
};
|
|
1861
|
+
return true;
|
|
1862
|
+
}
|
|
1863
|
+
function seriesWeekdays(events, first) {
|
|
1864
|
+
const recurrence = events[0]?.recurrence;
|
|
1865
|
+
return recurrence?.kind === "weekly" && recurrence.weekdays.length > 0 ? weekdayOrder.filter((_, index) => recurrence.weekdays.some((day) => day === weekdayCodeOrder[index])) : [first.weekday];
|
|
1866
|
+
}
|
|
1867
|
+
function inconsistentSchedule(schedules, first, weekdays) {
|
|
1868
|
+
if (schedules.some((schedule) => !schedule || schedule.timeZone !== first.timeZone)) return "inconsistent_timezone";
|
|
1869
|
+
if (schedules.some((schedule) => schedule && !weekdays.includes(schedule.weekday))) return "inconsistent_weekday";
|
|
1870
|
+
return schedules.some((schedule) => schedule && (schedule.startTime !== first.startTime || schedule.endTime !== first.endTime)) ? "inconsistent_local_time" : null;
|
|
1871
|
+
}
|
|
1872
|
+
function projectSeries(seriesIdValue, events) {
|
|
1873
|
+
const parsedSeriesId = parseEventSeriesId(seriesIdValue);
|
|
1874
|
+
if (!parsedSeriesId.ok) return {
|
|
1875
|
+
seriesId: seriesIdValue,
|
|
1876
|
+
reason: "invalid_series_id"
|
|
1877
|
+
};
|
|
1878
|
+
const sortedEvents = [...events].sort(compareEvents);
|
|
1879
|
+
const first = sortedEvents[0];
|
|
1880
|
+
if (!first) return {
|
|
1881
|
+
seriesId: seriesIdValue,
|
|
1882
|
+
reason: "insufficient_evidence"
|
|
1883
|
+
};
|
|
1884
|
+
const schedules = sortedEvents.map(localScheduleForEvent);
|
|
1885
|
+
const firstSchedule = schedules[0];
|
|
1886
|
+
if (!firstSchedule) return {
|
|
1887
|
+
seriesId: seriesIdValue,
|
|
1888
|
+
reason: "inconsistent_timezone"
|
|
1889
|
+
};
|
|
1890
|
+
const ruleEvidence = recurrenceRuleEvidence(seriesIdValue, sortedEvents, firstSchedule);
|
|
1891
|
+
if (ruleEvidence !== null && ruleEvidence !== true) return ruleEvidence;
|
|
1892
|
+
if (ruleEvidence === null && sortedEvents.length < 2) return {
|
|
1893
|
+
seriesId: seriesIdValue,
|
|
1894
|
+
reason: "insufficient_evidence"
|
|
1895
|
+
};
|
|
1896
|
+
const weekdays = seriesWeekdays(sortedEvents, firstSchedule);
|
|
1897
|
+
const inconsistency = inconsistentSchedule(schedules, firstSchedule, weekdays);
|
|
1898
|
+
if (inconsistency) return {
|
|
1899
|
+
seriesId: seriesIdValue,
|
|
1900
|
+
reason: inconsistency
|
|
1901
|
+
};
|
|
1902
|
+
if (ruleEvidence === null) {
|
|
1903
|
+
const localDayIntervals = schedules.slice(1).map((schedule, index) => (schedule?.localCalendarDay ?? NaN) - (schedules[index]?.localCalendarDay ?? NaN));
|
|
1904
|
+
if (!localDayIntervals.includes(7) || localDayIntervals.some((days) => !Number.isInteger(days) || days <= 0 || days % 7 !== 0)) return {
|
|
1905
|
+
seriesId: seriesIdValue,
|
|
1906
|
+
reason: "inconsistent_weekly_interval"
|
|
1907
|
+
};
|
|
1908
|
+
}
|
|
1909
|
+
return {
|
|
1910
|
+
seriesId: parsedSeriesId.value,
|
|
1911
|
+
title: first.title,
|
|
1912
|
+
venueName: first.venue?.name ?? null,
|
|
1913
|
+
cadence: {
|
|
1914
|
+
kind: "weekly",
|
|
1915
|
+
weekday: weekdays[0] ?? firstSchedule.weekday,
|
|
1916
|
+
weekdayIndex: weekdayOrder.indexOf(weekdays[0] ?? firstSchedule.weekday),
|
|
1917
|
+
...weekdays.length > 1 ? { weekdays } : {},
|
|
1918
|
+
startTime: firstSchedule.startTime,
|
|
1919
|
+
endTime: firstSchedule.endTime,
|
|
1920
|
+
timeZone: firstSchedule.timeZone
|
|
1921
|
+
},
|
|
1922
|
+
booking: bookingForEvents(sortedEvents)
|
|
1923
|
+
};
|
|
1924
|
+
}
|
|
1925
|
+
function isDiagnostic(value) {
|
|
1926
|
+
return "reason" in value;
|
|
1927
|
+
}
|
|
1928
|
+
function projectRecurringSchedule(events) {
|
|
1929
|
+
const bySeries = /* @__PURE__ */ new Map();
|
|
1930
|
+
for (const event of events) {
|
|
1931
|
+
const current = bySeries.get(event.seriesId) ?? [];
|
|
1932
|
+
current.push(event);
|
|
1933
|
+
bySeries.set(event.seriesId, current);
|
|
1934
|
+
}
|
|
1935
|
+
const items = [];
|
|
1936
|
+
const diagnostics = [];
|
|
1937
|
+
for (const [seriesId, seriesEvents] of bySeries) {
|
|
1938
|
+
const projected = projectSeries(seriesId, seriesEvents);
|
|
1939
|
+
if (isDiagnostic(projected)) diagnostics.push(projected);
|
|
1940
|
+
else items.push(projected);
|
|
1941
|
+
}
|
|
1942
|
+
items.sort((left, right) => {
|
|
1943
|
+
const weekdayDifference = left.cadence.weekdayIndex - right.cadence.weekdayIndex;
|
|
1944
|
+
if (weekdayDifference !== 0) return weekdayDifference;
|
|
1945
|
+
const timeDifference = left.cadence.startTime.localeCompare(right.cadence.startTime);
|
|
1946
|
+
if (timeDifference !== 0) return timeDifference;
|
|
1947
|
+
const titleDifference = left.title.localeCompare(right.title);
|
|
1948
|
+
return titleDifference !== 0 ? titleDifference : left.seriesId.localeCompare(right.seriesId);
|
|
1949
|
+
});
|
|
1950
|
+
diagnostics.sort((left, right) => {
|
|
1951
|
+
const seriesDifference = left.seriesId.localeCompare(right.seriesId);
|
|
1952
|
+
return seriesDifference !== 0 ? seriesDifference : left.reason.localeCompare(right.reason);
|
|
1953
|
+
});
|
|
1954
|
+
return {
|
|
1955
|
+
items,
|
|
1956
|
+
diagnostics
|
|
1957
|
+
};
|
|
1958
|
+
}
|
|
1959
|
+
//#endregion
|
|
1652
1960
|
//#region ../blocks/src/system/runtime/nodes/events/EventCalendar.interactive.ts
|
|
1961
|
+
const eventCalendarDateContextSchema = z.object({
|
|
1962
|
+
locale: z.string(),
|
|
1963
|
+
timeZone: z.string().transform(resolveBookingBusinessTimeZone)
|
|
1964
|
+
});
|
|
1653
1965
|
const eventCalendarSourceSchema = z.object({
|
|
1654
1966
|
...eventCollectionSourceSchemaShape,
|
|
1967
|
+
dateContext: eventCalendarDateContextSchema.optional(),
|
|
1968
|
+
schedule: recurringScheduleProjectionSchema.nullable().optional(),
|
|
1969
|
+
seeAllButtonVariant: eventButtonVariantSchema.nullable().optional(),
|
|
1655
1970
|
effectiveListArrangementKey: z.enum(eventListArrangementValues).nullable().optional(),
|
|
1656
1971
|
listBy: z.enum(["upcoming", "week"]).optional(),
|
|
1657
1972
|
monthArrangement: z.enum(["month-grid", "month-day"]).optional(),
|
|
@@ -1665,6 +1980,9 @@ const eventCalendarSourceSchema = z.object({
|
|
|
1665
1980
|
banded: z.boolean().nullable().optional()
|
|
1666
1981
|
});
|
|
1667
1982
|
const eventCalendarDisplaySchema = z.object({
|
|
1983
|
+
dateContext: eventCalendarDateContextSchema.optional(),
|
|
1984
|
+
schedule: recurringScheduleProjectionSchema.optional(),
|
|
1985
|
+
seeAllButtonVariant: eventButtonVariantSchema,
|
|
1668
1986
|
listBy: z.literal("week").optional(),
|
|
1669
1987
|
monthArrangement: z.enum(["month-grid", "month-day"]).optional(),
|
|
1670
1988
|
kind: z.literal("event-calendar"),
|
|
@@ -1710,6 +2028,7 @@ function buildEventCalendarDisplay(source, effectiveListArrangementKey = source.
|
|
|
1710
2028
|
}),
|
|
1711
2029
|
...source.monthArrangement === void 0 ? {} : { monthArrangement: source.monthArrangement },
|
|
1712
2030
|
...calendarListGrouping(source),
|
|
2031
|
+
...calendarRecurringWeekPresentation(source),
|
|
1713
2032
|
kind: "event-calendar",
|
|
1714
2033
|
displayMode: resolveEventCalendarReadPlan(source).mode,
|
|
1715
2034
|
className: source.className ?? null,
|
|
@@ -1811,6 +2130,14 @@ function calendarListGrouping(source) {
|
|
|
1811
2130
|
arrangementLooks: source.lookSlots !== void 0
|
|
1812
2131
|
}).grouping === "week" ? { listBy: "week" } : {};
|
|
1813
2132
|
}
|
|
2133
|
+
/** The week presentation owns the series projection and its independent header action. */
|
|
2134
|
+
function calendarRecurringWeekPresentation(source) {
|
|
2135
|
+
return {
|
|
2136
|
+
...source.dateContext ? { dateContext: source.dateContext } : {},
|
|
2137
|
+
schedule: source.schedule ?? void 0,
|
|
2138
|
+
seeAllButtonVariant: source.seeAllButtonVariant ?? "secondary"
|
|
2139
|
+
};
|
|
2140
|
+
}
|
|
1814
2141
|
//#endregion
|
|
1815
2142
|
//#region ../blocks/src/system/runtime/nodes/events/EventCombined.interactive.ts
|
|
1816
2143
|
const eventCombinedSourceSchema = z.object({ ...eventCollectionSourceSchemaShape });
|
|
@@ -1893,6 +2220,29 @@ const occurrenceContextSchema = z.object({
|
|
|
1893
2220
|
capacityOverride: z.number().nullable().optional(),
|
|
1894
2221
|
overrides: z.record(z.string(), z.unknown()).nullable().optional()
|
|
1895
2222
|
}).nullable();
|
|
2223
|
+
//#endregion
|
|
2224
|
+
//#region ../blocks/src/system/runtime/nodes/events/shared/eventScheduleSummary.ts
|
|
2225
|
+
function bookingDateLocale(siteTimeZone) {
|
|
2226
|
+
return inferSiteDateLocale(resolveBookingBusinessTimeZone(siteTimeZone));
|
|
2227
|
+
}
|
|
2228
|
+
/** A stored local clock has no date or DST offset; UTC preserves its digits. */
|
|
2229
|
+
function formatBookingSchedulePresentation(event) {
|
|
2230
|
+
const summary = event.scheduleSummary;
|
|
2231
|
+
if (!summary) return null;
|
|
2232
|
+
const start = summary.startTime ? parseUtcIsoDateTimeString(`1970-01-01T${summary.startTime}:00Z`) : null;
|
|
2233
|
+
const time = start?.ok ? formatTime(start.value, {
|
|
2234
|
+
timeZone: resolveBookingTimeZoneId("UTC"),
|
|
2235
|
+
locale: bookingDateLocale(event.siteTimeZone)
|
|
2236
|
+
}, { zone: "omit" }) : null;
|
|
2237
|
+
return {
|
|
2238
|
+
text: [summary.recurrenceDescription, time].filter(Boolean).join(", "),
|
|
2239
|
+
clock: time
|
|
2240
|
+
};
|
|
2241
|
+
}
|
|
2242
|
+
/** Text-only consumers delegate to the same authored-clock presentation. */
|
|
2243
|
+
function formatBookingScheduleSummary(event) {
|
|
2244
|
+
return formatBookingSchedulePresentation(event)?.text ?? null;
|
|
2245
|
+
}
|
|
1896
2246
|
const DEFAULT_BOOKING_BUTTON_TEXT = "Book your place";
|
|
1897
2247
|
/** Browse the page's dates on close while keeping the draft's resume action. */
|
|
1898
2248
|
function bookingCardEntry(input) {
|
|
@@ -3738,8 +4088,9 @@ function deriveCommerceCheckoutState(state) {
|
|
|
3738
4088
|
items: state.items
|
|
3739
4089
|
};
|
|
3740
4090
|
}
|
|
3741
|
-
function resolveSelectedProduct(products,
|
|
3742
|
-
const
|
|
4091
|
+
function resolveSelectedProduct(products, selection) {
|
|
4092
|
+
const contentEntry = selection.template.kind === "product" ? selection.contentEntry : null;
|
|
4093
|
+
const explicitSlug = selection.productSlug?.trim() || null;
|
|
3743
4094
|
if (contentEntry?.id) {
|
|
3744
4095
|
const byEntryId = products.find((product) => product.contentEntryId === contentEntry.id);
|
|
3745
4096
|
if (byEntryId) return byEntryId;
|
|
@@ -3752,7 +4103,7 @@ function resolveSelectedProduct(products, contentEntry, productSlug) {
|
|
|
3752
4103
|
const byEntrySlug = products.find((product) => product.slug === contentEntry.slug);
|
|
3753
4104
|
if (byEntrySlug) return byEntrySlug;
|
|
3754
4105
|
}
|
|
3755
|
-
return
|
|
4106
|
+
return null;
|
|
3756
4107
|
}
|
|
3757
4108
|
//#endregion
|
|
3758
4109
|
//#region ../blocks/src/system/runtime/nodes/commerce/shared/display.ts
|
|
@@ -4042,7 +4393,12 @@ const contentEntrySchema = z.object({
|
|
|
4042
4393
|
id: z.string().nullable().optional(),
|
|
4043
4394
|
slug: z.string().nullable().optional()
|
|
4044
4395
|
}).nullable();
|
|
4396
|
+
const shopDateContextSchema = z.object({
|
|
4397
|
+
locale: z.string(),
|
|
4398
|
+
timeZone: z.string().transform(resolveBookingBusinessTimeZone)
|
|
4399
|
+
});
|
|
4045
4400
|
const shopSourceSchema = z.object({
|
|
4401
|
+
dateContext: shopDateContextSchema.optional(),
|
|
4046
4402
|
...cardListPresentationSchemaShape,
|
|
4047
4403
|
featured: z.string().nullable().optional(),
|
|
4048
4404
|
className: z.string().nullable().optional(),
|
|
@@ -4074,6 +4430,7 @@ const shopSourceSchema = z.object({
|
|
|
4074
4430
|
checkoutButtonText: z.string().optional(),
|
|
4075
4431
|
clearButtonText: z.string().optional(),
|
|
4076
4432
|
submitButtonText: z.string().optional(),
|
|
4433
|
+
template: z.discriminatedUnion("kind", [z.object({ kind: z.literal("product") }), z.object({ kind: z.literal("page") })]).optional(),
|
|
4077
4434
|
contentEntry: contentEntrySchema.optional(),
|
|
4078
4435
|
passes: z.array(publicPassProductSchema).nullable().optional(),
|
|
4079
4436
|
memberships: z.array(publicMembershipProductSchema).nullable().optional(),
|
|
@@ -4207,6 +4564,7 @@ const checkoutDisplaySchema = z.object({
|
|
|
4207
4564
|
submitButtonText: z.string()
|
|
4208
4565
|
});
|
|
4209
4566
|
const passesMembershipsHydrationSchema = z.object({
|
|
4567
|
+
dateContext: shopDateContextSchema,
|
|
4210
4568
|
presentation: z.object(cardListPresentationSchemaShape).optional(),
|
|
4211
4569
|
featured: z.string().optional(),
|
|
4212
4570
|
memberships: z.array(publicMembershipProductSchema),
|
|
@@ -4287,6 +4645,7 @@ const shopBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
4287
4645
|
const passPurchaseMode = source.passPurchaseMode ?? "add_to_cart";
|
|
4288
4646
|
const subscribeButtonText = source.subscribeButtonText ?? "Subscribe";
|
|
4289
4647
|
const products = shopDisplayedProducts(source);
|
|
4648
|
+
const dateContext = source.dateContext ?? resolveDateRuntimeContext(void 0);
|
|
4290
4649
|
return {
|
|
4291
4650
|
display: buildPassesMembershipsDisplay({
|
|
4292
4651
|
cardList: source.lookSlots !== void 0,
|
|
@@ -4307,6 +4666,10 @@ const shopBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
4307
4666
|
hydration: {
|
|
4308
4667
|
...source.lookSlots ? { presentation: shopCardListPresentation(source) } : {},
|
|
4309
4668
|
...shopFeaturedProduct(source, products),
|
|
4669
|
+
dateContext: {
|
|
4670
|
+
locale: dateContext.locale,
|
|
4671
|
+
timeZone: dateContext.timeZone
|
|
4672
|
+
},
|
|
4310
4673
|
memberships: products.memberships,
|
|
4311
4674
|
passPurchaseMode,
|
|
4312
4675
|
buttonVariant: source.buttonVariant ?? "primary",
|
|
@@ -4348,7 +4711,11 @@ const productDetailBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
4348
4711
|
render: createZodCodec(productDetailRenderSchema)
|
|
4349
4712
|
},
|
|
4350
4713
|
buildRender: (source) => {
|
|
4351
|
-
const product = resolveSelectedProduct(source.products ?? [],
|
|
4714
|
+
const product = resolveSelectedProduct(source.products ?? [], {
|
|
4715
|
+
template: source.template ?? { kind: "page" },
|
|
4716
|
+
contentEntry: source.contentEntry ?? null,
|
|
4717
|
+
productSlug: source.productSlug ?? null
|
|
4718
|
+
});
|
|
4352
4719
|
return {
|
|
4353
4720
|
display: buildProductDetailDisplay(product, {
|
|
4354
4721
|
heading: source.heading,
|
|
@@ -4571,4 +4938,4 @@ function shopProductPresentation(hydration, productId, index, count) {
|
|
|
4571
4938
|
};
|
|
4572
4939
|
}
|
|
4573
4940
|
//#endregion
|
|
4574
|
-
export { OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as $,
|
|
4941
|
+
export { OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as $, resolveEventSelection as $t, parseStoredCommerceCartState as A, recurringScheduleProjectionSchema as At, giftingBlockRuntime as B, listingEventCardProps as Bt, membershipCardListContent as C, eventCombinedInteractiveIslandPropsCodec as Ct, buildPassCartItem as D, eventCalendarBlockRuntime as Dt, EMPTY_COMMERCE_CART_STATE as E, buildEventCalendarListingRender as Et, buildNewsletterFormInteractiveIslandProps as F, getEventRuntimeFiltersKey as Ft, formInteractiveIslandPropsCodec as G, MediaNodeServer as Gt, publicGiftingOffersResponseSchema as H, CardListLeadDate as Ht, newsletterBlockSubmissionMessage as I, normalizeCsvIds as It, displayButtonText as J, Grid as Jt, buildEventRegistrationDisplayFromScopedEvents as K, getCardOrientation as Kt, newsletterFormBlockRuntime as L, normalizeCsvString as Lt, reduceCommerceCart as M, eventListingBlockRuntime as Mt, publicProductsResponseSchema as N, eventListingInteractiveIslandPropsCodec as Nt, buildProductCartItem as O, eventCalendarInteractiveIslandPropsCodec as Ot, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as P, buildEventRuntimeFilters as Pt, OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS as Q, formatEventPriceDisplay as Qt, newsletterFormInteractiveIslandPropsCodec as R, normalizeOptionalId as Rt, formatInterval as S, eventCombinedBlockRuntime as St, passCardListContent as T, buildEventCalendarListingDisplay as Tt, buildFormInteractiveIslandProps as U, resolveCardListSchedule as Ut, giftingInteractiveIslandPropsCodec as V, CardListContentPart as Vt, formBlockRuntime as W, selectCardListPresentation as Wt, eventRegistrationInteractiveIslandPropsCodec as X, formatEventPrice as Xt, eventRegistrationBlockRuntime as Y, buildEventListWeek as Yt, offeringNounForEvent as Z, formatEventPriceAmount as Zt, shopProductPresentation as _, bookingPanelHeading as _t, buildShopInteractiveIslandProps as a, planSiteChromePlacement as an, normalizeOfferingsPreviewContentForWrite as at, buildProductDetailDisplay as b, buildEventCombinedInteractiveIslandProps as bt, checkoutBlockRuntime as c, publicPassProductCollectionSchema as cn, resolveOfferingsPreviewGroupCta as ct, productDetailBlockRuntime as d, parseMailingListPlacementTargeting as dn, resolveOfferingsRenderInput as dt, headerChromeRuntimeContractSchema as en, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as et, productDetailInteractiveIslandPropsCodec as f, parseMailingListVisitorSelection as fn, DEFAULT_BOOKING_BUTTON_TEXT as ft, shopInteractiveIslandPropsCodec as g, bookingEntryProgress as gt, shopBlockRuntime as h, parseWeeklyOpeningHours as hn, bookingEntry as ht, buildProductListInteractiveIslandProps as i, parseHeaderPositioning as in, isOfferingsPreviewSourceKey as it, productItemKey as j, buildEventListingInteractiveIslandProps as jt, deriveCommerceCheckoutState as k, projectRecurringSchedule as kt, checkoutInteractiveIslandPropsCodec as l, buildMailingListSignupBlockSourceRef as ln, resolveOfferingsPreviewGroups as lt, productListInteractiveIslandPropsCodec as m, sameMailingListPlacementTargeting as mn, bookingCardEntry as mt, buildCheckoutInteractiveIslandProps as n, resolveHeaderChromeRuntimeContract as nn, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as nt, cartBlockRuntime as o, splitSiteChromePlacementClasses as on, normalizeOfferingsPreviewItemLimit as ot, productListBlockRuntime as p, DEFAULT_MAILING_LIST_TARGETING as pn, bookingBarPlacement as pt, buildEventRegistrationInteractiveIslandProps as q, getContainerClass as qt, buildProductDetailInteractiveIslandProps as r, staticHeaderChromeRuntime as rn, buildOfferingsPreviewListing as rt, cartInteractiveIslandPropsCodec as s, publicMembershipProductCollectionSchema as sn, offeringsListingFor as st, buildCartInteractiveIslandProps as t, isHeaderScrollRuntimeEnabled as tn, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as tt, getShopDisplayForItems as u, assessMailingListTargeting as un, resolveOfferingsPreviewRunPath as ut, buildCartDisplay as v, formatBookingSchedulePresentation as vt, membershipClassesLabel as w, buildEventCalendarInteractiveIslandProps as wt, formatCommercePrice as x, buildEventCombinedListingDisplay as xt, buildProductCardDisplay as y, occurrenceContextSchema as yt, buildGiftingInteractiveIslandProps as z, catalogueEventCardProps as zt };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-BLAvalAa.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-C5u8MbAA.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/rendering/islands/enhancers/shopShared.tsx
|