@riverbankcms/sdk 0.176.0 → 0.178.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 +12 -4
- package/dist/_dts/{BlocksIslandsHydrator-DvoTk7Py.d.ts → BlocksIslandsHydrator-CrKsXtpD.d.ts} +1 -1
- package/dist/_dts/{Page-D-l374tU.d.ts → Page-C9i27wZA.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-22DdQAj5.d.ts → SdkPreviewMode-DzGSR3jh.d.ts} +2 -2
- package/dist/_dts/{client-D4p0J1lK.d.ts → client-BnYN6XsH.d.ts} +31 -7
- package/dist/_dts/{content-types-0WWR6dC4.d.ts → content-types-CXj6lp3d.d.ts} +4 -8
- package/dist/_dts/{contracts-f_ZG_SwY.d.ts → contracts-BZLwkTwL.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DSeZvOaj.d.ts → footerPageOutline-D_XbQW_o.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BlitPA2D.d.ts → generatePageMetadata-ByEWwe9j.d.ts} +2 -2
- package/dist/_dts/{index-ZKEDvLuN.d.ts → index-0HFgCnGz.d.ts} +1 -1
- package/dist/_dts/{index-tcPtGdag.d.ts → index-BE9dWIsr.d.ts} +3 -3
- package/dist/_dts/{index-D-ai8IQd.d.ts → index-CKDRr54L.d.ts} +4 -4
- package/dist/_dts/{index-CoLcwjqJ.d.ts → index-D9-N1d9v.d.ts} +1 -1
- package/dist/_dts/{index-CKkkCgb6.d.ts → index-DCa-8TEY.d.ts} +1 -1
- package/dist/_dts/{index-DDsfmM4d.d.ts → index-cTpvQg_Q.d.ts} +2 -2
- package/dist/_dts/{index-EJMo-KSo.d.ts → index-nnEdgc3Z.d.ts} +2 -15
- package/dist/_dts/{loadContent-Ci932ORy.d.ts → loadContent-DYkVV6w4.d.ts} +7 -7
- package/dist/_dts/{request-B8jVdvgI.d.ts → request-B20VRWHH.d.ts} +55384 -55036
- package/dist/_dts/{resolveBlockData-DrSMuD76.d.ts → resolveBlockData-C_aK5GIS.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-Be4iL6-F.d.ts → resolvePageContent-YT6ndha1.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -2
- 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 +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +24 -12
- 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 +56 -4
- package/dist/_dts/sdk/src/portal/index.d.ts +95 -13
- 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/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- 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/rendering/themeAdmission.d.ts +1 -1
- 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/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-lwSgCWZ4.d.ts → types-CMZ5mkpv.d.ts} +11 -3
- package/dist/_dts/{types-BXMX4z2j.d.ts → types-CYcd15BQ.d.ts} +7 -7
- package/dist/_dts/{types-DXY64Xh4.d.ts → types-rm2M4LGx.d.ts} +4 -4
- package/dist/_dts/{validation-C5xp--Fu.d.ts → validation-BSxnRhyy.d.ts} +4 -6
- package/dist/client/{BlocksIslandsHydrator-CeYQQQs7.mjs → BlocksIslandsHydrator-D1n09bu-.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-CDDWrY_W.mjs → BookingMailingListNote-DSD4gS96.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-BShQSial.mjs → BookingPanelArrangement--EkA1ZQd.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-MbvIo2jS.mjs → BookingQuestionFields-B57oGPcj.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-C6CSVfEB.mjs → CalendarNavigationChevron-qXvsFYOg.mjs} +7 -7
- package/dist/client/{DemoBookingPortalAccess-C9Ggcfx3.mjs → DemoBookingPortalAccess-Olvrwi3Z.mjs} +3 -3
- package/dist/client/{EventCalendar.client-BSMuSqg0.mjs → EventCalendar.client-DwFNFb-0.mjs} +10 -10
- package/dist/client/{EventCombined.client-BTrmSyUB.mjs → EventCombined.client-Ffu-aVOb.mjs} +9 -9
- package/dist/client/{EventItem-B0WjGXsH.mjs → EventItem-b8tVkNHA.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-8Ij7vuxY.mjs → EventListWeekNavigation-BxnJW_Gf.mjs} +1 -1
- package/dist/client/{EventListing.client-CWk2NEwd.mjs → EventListing.client-ViCnrNg4.mjs} +3 -3
- package/dist/client/{EventListing.view-BEH4UbSL.mjs → EventListing.view-CdjiepMf.mjs} +7 -7
- package/dist/client/{EventRegistrationPayment-B2EikR3f.mjs → EventRegistrationPayment-BVd70XkH.mjs} +262 -24
- package/dist/client/{LocationMapActions-myIQIvQL.mjs → LocationMapActions-CiMtl1Ha.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-BfsVyPvB.mjs → MapDrawingSvg-BCZa3dpf.mjs} +1 -1
- package/dist/client/{Page-F3lhDvw1.mjs → Page-DqETUt-U.mjs} +22 -13
- package/dist/client/{SiteTermsAgreementField-BYACYP0T.mjs → SiteTermsAgreementField-DkFnbzf_.mjs} +2 -2
- package/dist/client/{StepIndicator-Bb7rPtSq.mjs → StepIndicator-JO2PS03n.mjs} +79 -32
- package/dist/client/{accordion-BfsOiweL.mjs → accordion-XgNxl0Wg.mjs} +1 -1
- package/dist/client/{booking-form.client-B8ohIj13.mjs → booking-form.client-ljJoDwuI.mjs} +13 -13
- package/dist/client/{bookingForm-CXsck2oH.mjs → bookingForm-DtEHwY4W.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-B_hcuT06.mjs → boxStyleClassNames-BHoMAcun.mjs} +2 -2
- package/dist/client/{carousel-Cz5Ddbsx.mjs → carousel-B3UhbFu7.mjs} +1 -1
- package/dist/client/{cart-CTC2oS3p.mjs → cart-DzOJfYOR.mjs} +3 -3
- package/dist/client/{cart.client-c1YkTC-Q.mjs → cart.client-DBG77v-5.mjs} +1 -1
- package/dist/client/{checkout-BeW1ufaH.mjs → checkout-LmePoEgM.mjs} +3 -3
- package/dist/client/{checkout.client-BeU32khQ.mjs → checkout.client-DmgZuLBT.mjs} +1 -1
- package/dist/client/{checkoutUrls-DVfSUSKp.mjs → checkoutUrls-CMZI8o_V.mjs} +1 -1
- package/dist/client/client.mjs +93 -12
- package/dist/client/{context-R9p5c8IH.mjs → context-CJIz4FdL.mjs} +1 -1
- package/dist/client/{course-CUFVJEAc.mjs → course-DBEU9IA9.mjs} +11 -4
- package/dist/client/{dateFormatting-CF6FWCoo.mjs → dateFormatting-UoXqBh10.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-tZxIm3RL.mjs → demoPortalMagicLink-6CgFZNvu.mjs} +5 -4
- package/dist/client/{display-4HYOb-AK.mjs → display-D1oVR5Eh.mjs} +180 -15
- package/dist/client/{enhanceHeaderSection-DEYDI54E.mjs → enhanceHeaderSection-DaMo6len.mjs} +3 -3
- package/dist/client/{event-details.client-BwjBJP-f.mjs → event-details.client-BwASwKIq.mjs} +1 -1
- package/dist/client/{event-registration.client-DWvSODTI.mjs → event-registration.client-b6APrFQe.mjs} +118 -180
- package/dist/client/{eventCalendar-C9Pn9eeZ.mjs → eventCalendar-DJYz7yZf.mjs} +4 -4
- package/dist/client/{eventCombined-Bdhk0fp0.mjs → eventCombined-j9VCVgMW.mjs} +4 -4
- package/dist/client/{eventDetails-C2LfNW_o.mjs → eventDetails-BzGOVDI-.mjs} +2 -2
- package/dist/client/{eventListing-B-bJOQUk.mjs → eventListing-DWgpGuFM.mjs} +4 -4
- package/dist/client/{eventRegistration-CbdmUiDT.mjs → eventRegistration-DCinRot3.mjs} +4 -4
- package/dist/client/{form-BbUUt784.mjs → form-BBBtRwvy.mjs} +3 -3
- package/dist/client/{form.client-BVlz-9_t.mjs → form.client-CZeRQLGF.mjs} +4 -4
- package/dist/client/{form.parts-TB4UIrML.mjs → form.parts-DhGGv4_L.mjs} +1 -1
- package/dist/client/{formatDate-TDHhFjFN.mjs → formatDate-DVFVDcDW.mjs} +1 -1
- package/dist/client/gifting/client.mjs +6 -5
- package/dist/client/{gifting-CbNSrp7C.mjs → gifting-Di9-SpwW.mjs} +4 -4
- package/dist/client/{gifting.client-B__bGhFc.mjs → gifting.client-CjT5PrAZ.mjs} +4 -4
- package/dist/client/{gifting.parts-CTA1sDW6.mjs → gifting.parts-ffP6mjMd.mjs} +2 -2
- package/dist/client/{headerSection-5Wn9nUW_.mjs → headerSection-jjAvtSZk.mjs} +2 -2
- package/dist/client/{lookSurfaces-BwiNdgMU.mjs → lookSurfaces-C2VzJfyG.mjs} +1 -1
- package/dist/client/{newsletter-form.client-B17WYHxZ.mjs → newsletter-form.client-D45frHoa.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DN9wD1ZG.mjs → newsletter-form.parts-CHdg82ct.mjs} +1 -1
- package/dist/client/{newsletterForm-DLMlxInp.mjs → newsletterForm-tS465_vl.mjs} +3 -3
- package/dist/client/{noop-CaQxI-Js.mjs → noop-D11X-B6n.mjs} +123 -91
- package/dist/client/portal/client.mjs +384 -38
- package/dist/client/{product-detail.client-Di_anRGR.mjs → product-detail.client-DIWSeW7P.mjs} +1 -1
- package/dist/client/{product-list.client-Duhl6rtL.mjs → product-list.client-BRf14h_e.mjs} +1 -1
- package/dist/client/{productDetail-BgKmCwA8.mjs → productDetail-gxF5whea.mjs} +3 -3
- package/dist/client/{productList-C_wMKsYS.mjs → productList-B9t0XJrN.mjs} +3 -3
- package/dist/client/{propsDecoder-y3LvxaiG.mjs → propsDecoder-Db8wAmgr.mjs} +4 -4
- package/dist/client/{registry.server-CIWYKz1V.mjs → registry.server-Bn0gE0uP.mjs} +27 -27
- package/dist/client/rendering/client.mjs +23 -23
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +7 -7
- package/dist/client/{richText-coerce-DkPBFb_a.mjs → richText-coerce-COnKrLO7.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-BgO0rZce.mjs → routeIslandApiConfig-Bok1Oy50.mjs} +1 -1
- package/dist/client/{shop-CFbWlv_W.mjs → shop-D1oTPDxm.mjs} +3 -3
- package/dist/client/{shop-commerce-C-I29eaA.mjs → shop-commerce-DyMZLC0a.mjs} +12 -12
- package/dist/client/{shop-commerce-store-DGcc7twO.mjs → shop-commerce-store-FODNS63D.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-DOm7vx0X.mjs → shop-discount-apply.state-C4xcmFzZ.mjs} +2 -2
- package/dist/client/{shop.client-GHTWUKD6.mjs → shop.client-CRgRulfI.mjs} +12 -12
- package/dist/client/{shop.interactive-CxDJ8P2r.mjs → shop.interactive-D7wky1GL.mjs} +6 -33
- package/dist/client/{shopShared-Be9QJJpT.mjs → shopShared-Bd_hy9ZO.mjs} +2 -2
- package/dist/client/src-DqMbCjI1.mjs +3 -0
- package/dist/client/{src-xrjaKaCj.mjs → src-uwCpbHXG.mjs} +2 -1
- package/dist/client/{timetableModel--R0zVzZO.mjs → timetableModel-UlWfP1gh.mjs} +9 -9
- package/dist/client/{useAvailableSlots-BGu_2F50.mjs → useAvailableSlots-D-qoooLy.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-I_mXI9Yd.mjs → useDiscountCodeUi-B9DODAkj.mjs} +1 -1
- package/dist/client/{useEventPagination-DxIJ--JZ.mjs → useEventPagination-CQH2e9sQ.mjs} +7 -7
- package/dist/client/{view-BbzH5MQb.mjs → view-DNX59QwM.mjs} +10 -9
- package/dist/client/{view-3foOzGWR.mjs → view-bGU1ws-m.mjs} +3 -3
- package/dist/preview-next/client/{LocationPickerEnvironment-8iKKoYZr.mjs → LocationPickerEnvironment-BHAT81Wx.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-AIUPN1Zx.mjs → MapLibreEditMap-B52hkdIZ.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-0xyUPWUB.mjs → PageSectionToolbar-D-Le7O3o.mjs} +52 -8
- package/dist/preview-next/client/{PreviewEditorSidebar-D8vUzXtI.mjs → PreviewEditorSidebar-DNy5j_ce.mjs} +34 -39
- package/dist/preview-next/client/{PreviewEditorUI-CRjS4gAu.mjs → PreviewEditorUI-CzJvgbqt.mjs} +10 -10
- package/dist/preview-next/client/{PreviewShell-BvdBdeH_.mjs → PreviewShell-xhJ6ca1i.mjs} +9 -8
- package/dist/preview-next/client/{SdkPreviewModeRuntime-DWTyKbFj.mjs → SdkPreviewModeRuntime-BmYO1TdT.mjs} +16 -7
- package/dist/preview-next/client/{lucide-react-Dfgl3Vtq.mjs → lucide-react-McYZeSMb.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-BqY2TTcZ.mjs → previewAssistantSlot-BN93X9o1.mjs} +1211 -600
- package/dist/preview-next/client/{previewChromeRoot-BuRYe2iL.mjs → previewChromeRoot-C51RQseo.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-BnK5kH9f.mjs → sdk-runtime-oeGquJM-.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-DbKozRSn.mjs → siteStyleAccess-BGTAcPud.mjs} +27 -17
- package/dist/preview-next/client/src-EO5QoRlU.mjs +3 -0
- package/dist/preview-next/client/{src-DzXUmsyK.mjs → src-lX6heoDA.mjs} +2 -1
- package/dist/preview-next/client/{useAutosaveStatus-D9s6dyMW.mjs → useAutosaveStatus-BMGXjGZq.mjs} +3 -30
- package/dist/preview-next/client/{useOpenBlockForSetup-Ce4WCxpT.mjs → useOpenBlockForSetup-CTDoR_gQ.mjs} +2 -2
- package/dist/preview-next/container-responsive.css +3 -0
- package/dist/preview-next/editor-chrome.css +4 -2
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BYezcMx5.mjs → route-contract-BtdzkSUg.mjs} +71 -4
- package/dist/server/{Block.shared-Cn7gg13_.mjs → Block.shared-Bp3OlOjj.mjs} +5 -5
- package/dist/server/{bindings-VGgS6UvF.mjs → bindings-DrbJuftt.mjs} +3 -3
- package/dist/server/{client-Bvag5OtW.mjs → client-Bf06n9oj.mjs} +90 -9
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/constants-Cj7hfbrA.mjs +41 -0
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-CxASA3PE.mjs → loadContent-eaTY7RPg.mjs} +4 -4
- package/dist/server/{loadPage-CQgde5DN.mjs → loadPage-5iZefzDd.mjs} +2 -2
- package/dist/server/{navigation-iC_hXjJI.mjs → navigation-BcNfYYuu.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next/revalidate.mjs +15 -8
- package/dist/server/next.mjs +56 -13
- package/dist/server/{overrideResolution-BqVLO4gX.mjs → overrideResolution-CUHtm7tW.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-CfSnAkCO.mjs → pageRenderPlan-GmPXForc.mjs} +13 -6
- package/dist/server/{pageRuntimeSupport-uz4gzBOo.mjs → pageRuntimeSupport-Dd8LFzfa.mjs} +1 -1
- package/dist/server/{pageShared-D23o5QgC.mjs → pageShared-tz-GVWft.mjs} +96 -39
- package/dist/server/portal-B4JVkdjc.mjs +783 -0
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-BuoXWT9y.mjs → prebuild-JmsuYCIH.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CCiYV8_s.mjs → prefetchBlockData-Ce9DDwON.mjs} +2 -2
- package/dist/server/{registry-CXRXsFSx.mjs → registry-D12XF_h1.mjs} +466 -311
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-yfe8WLEA.mjs → resolveBlockData-D9yZIN3V.mjs} +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/{validation-CozQ7wE0.mjs → validation-CLq5cw6M.mjs} +3 -5
- package/dist/server/{version-CgCWRFEY.mjs → version-oPbhAx8E.mjs} +1 -1
- package/dist/styles/index.css +27 -1
- package/package.json +1 -1
- package/dist/client/src-BozhJ43Z.mjs +0 -3
- package/dist/preview-next/client/src-LUhVXBEQ.mjs +0 -3
- package/dist/server/constants-hl17xz6x.mjs +0 -22
- package/dist/server/portal-BjVHMAUC.mjs +0 -371
|
@@ -785,58 +785,6 @@ function servicePageDestination(value) {
|
|
|
785
785
|
return mode === "cms-managed" || mode === "system-managed" ? { serviceDestinationMode: mode } : {};
|
|
786
786
|
}
|
|
787
787
|
//#endregion
|
|
788
|
-
//#region ../core/src/booking-instalments.ts
|
|
789
|
-
function isDepositBearingBookingInstalmentPlan(plan) {
|
|
790
|
-
switch (plan.kind) {
|
|
791
|
-
case "deposit_plus_one_remainder":
|
|
792
|
-
case "deposit_plus_scheduled_instalments": return true;
|
|
793
|
-
case "equal_scheduled_instalments": return false;
|
|
794
|
-
default: return assertNever(plan);
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
function getBookingInstalmentProtectedDepositAmountCents(plan) {
|
|
798
|
-
return isDepositBearingBookingInstalmentPlan(plan) ? plan.depositAmountCents : null;
|
|
799
|
-
}
|
|
800
|
-
function assertNever(value) {
|
|
801
|
-
throw new Error(`Unexpected value: ${String(value)}`);
|
|
802
|
-
}
|
|
803
|
-
//#endregion
|
|
804
|
-
//#region ../core/src/booking-payment-options.ts
|
|
805
|
-
/**
|
|
806
|
-
* One way a customer may pay for a booking. This is the single definition of
|
|
807
|
-
* the option type; `booking-payment-schemas.typetest.ts` keeps it equal to the
|
|
808
|
-
* schema's output in both directions.
|
|
809
|
-
*/
|
|
810
|
-
/** When a course's instalments must all be paid by: before its first or its last live session. */
|
|
811
|
-
const BOOKING_COURSE_INSTALMENT_DEADLINES = ["first_session", "last_session"];
|
|
812
|
-
/** Automatic instalments and a flexible balance cannot share one booking offer. */
|
|
813
|
-
function validateBookingPaymentOptionKinds(kinds) {
|
|
814
|
-
if (kinds.length === 0) return err("no_options");
|
|
815
|
-
const uniqueKinds = new Set(kinds);
|
|
816
|
-
if (uniqueKinds.size !== kinds.length) return err("duplicate_kind");
|
|
817
|
-
if (uniqueKinds.has("instalment_plan") && uniqueKinds.has("flexible_balance")) return err("incompatible_collection_options");
|
|
818
|
-
return ok$1(void 0);
|
|
819
|
-
}
|
|
820
|
-
//#endregion
|
|
821
|
-
//#region ../core/src/booking-date-time/instant.ts
|
|
822
|
-
function parseUtcIsoDateTimeString(value) {
|
|
823
|
-
const normalized = value.trim();
|
|
824
|
-
const hasUtcSuffix = normalized.endsWith("Z");
|
|
825
|
-
const hasExplicitOffset = /[+-]\d{2}:\d{2}$/u.test(normalized);
|
|
826
|
-
if (!hasUtcSuffix && !hasExplicitOffset) return err("missing-timezone-offset");
|
|
827
|
-
const date = new Date(normalized);
|
|
828
|
-
if (Number.isNaN(date.getTime())) return err("invalid-date-time");
|
|
829
|
-
return ok$1(date.toISOString());
|
|
830
|
-
}
|
|
831
|
-
function toUtcIsoDateTimeString(value) {
|
|
832
|
-
const parsed = parseUtcIsoDateTimeString(value);
|
|
833
|
-
if (!parsed.ok) {
|
|
834
|
-
const message = parsed.error === "missing-timezone-offset" ? `Expected an offset-aware ISO datetime, received "${value}"` : `Expected a valid ISO datetime, received "${value}"`;
|
|
835
|
-
throw new Error(message);
|
|
836
|
-
}
|
|
837
|
-
return parsed.value;
|
|
838
|
-
}
|
|
839
|
-
//#endregion
|
|
840
788
|
//#region ../core/src/date-time-formatter.ts
|
|
841
789
|
/** Shared Intl engine, internal to core's date presentation owners. */
|
|
842
790
|
const FORMATTER_CACHE_LIMIT = 100;
|
|
@@ -922,6 +870,25 @@ function resolveBookingBusinessTimeZone(value) {
|
|
|
922
870
|
return resolveBookingTimeZoneId(value, DEFAULT_BOOKING_BUSINESS_TIME_ZONE);
|
|
923
871
|
}
|
|
924
872
|
//#endregion
|
|
873
|
+
//#region ../core/src/booking-date-time/instant.ts
|
|
874
|
+
function parseUtcIsoDateTimeString(value) {
|
|
875
|
+
const normalized = value.trim();
|
|
876
|
+
const hasUtcSuffix = normalized.endsWith("Z");
|
|
877
|
+
const hasExplicitOffset = /[+-]\d{2}:\d{2}$/u.test(normalized);
|
|
878
|
+
if (!hasUtcSuffix && !hasExplicitOffset) return err("missing-timezone-offset");
|
|
879
|
+
const date = new Date(normalized);
|
|
880
|
+
if (Number.isNaN(date.getTime())) return err("invalid-date-time");
|
|
881
|
+
return ok$1(date.toISOString());
|
|
882
|
+
}
|
|
883
|
+
function toUtcIsoDateTimeString(value) {
|
|
884
|
+
const parsed = parseUtcIsoDateTimeString(value);
|
|
885
|
+
if (!parsed.ok) {
|
|
886
|
+
const message = parsed.error === "missing-timezone-offset" ? `Expected an offset-aware ISO datetime, received "${value}"` : `Expected a valid ISO datetime, received "${value}"`;
|
|
887
|
+
throw new Error(message);
|
|
888
|
+
}
|
|
889
|
+
return parsed.value;
|
|
890
|
+
}
|
|
891
|
+
//#endregion
|
|
925
892
|
//#region ../core/src/booking-date-time/local.ts
|
|
926
893
|
const LOCAL_DATE_PATTERN = /^(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})$/u;
|
|
927
894
|
function getZonedDateTimeParts(date, timeZone) {
|
|
@@ -1010,59 +977,6 @@ function resolveLocalInstant(targetLocalMs, timeZone, guess, seen) {
|
|
|
1010
977
|
return resolveLocalInstant(targetLocalMs, timeZone, nextGuess, [...seen, guess]);
|
|
1011
978
|
}
|
|
1012
979
|
//#endregion
|
|
1013
|
-
//#region ../core/src/booking-date-time/window.ts
|
|
1014
|
-
const START_OF_DAY = {
|
|
1015
|
-
hour: 0,
|
|
1016
|
-
minute: 0,
|
|
1017
|
-
second: 0
|
|
1018
|
-
};
|
|
1019
|
-
function parseWindowDate(value, field) {
|
|
1020
|
-
try {
|
|
1021
|
-
return {
|
|
1022
|
-
ok: true,
|
|
1023
|
-
value: parseBookingLocalDate(value)
|
|
1024
|
-
};
|
|
1025
|
-
} catch {
|
|
1026
|
-
return {
|
|
1027
|
-
ok: false,
|
|
1028
|
-
field,
|
|
1029
|
-
reason: "invalid_date_format",
|
|
1030
|
-
value
|
|
1031
|
-
};
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
function parseBookingUtcDateWindow(input) {
|
|
1035
|
-
const timeZone = resolveBookingTimeZoneId(input.timeZone);
|
|
1036
|
-
const start = parseWindowDate(input.startDate, "startDate");
|
|
1037
|
-
if (!start.ok) return start;
|
|
1038
|
-
const end = parseWindowDate(input.endDate, "endDate");
|
|
1039
|
-
if (!end.ok) return end;
|
|
1040
|
-
const startLocalDate = start.value;
|
|
1041
|
-
const endLocalDate = end.value;
|
|
1042
|
-
if (compareLocalScheduleDates(startLocalDate, endLocalDate) > 0) return {
|
|
1043
|
-
ok: false,
|
|
1044
|
-
field: "endDate",
|
|
1045
|
-
reason: "invalid_date_range",
|
|
1046
|
-
value: input.endDate
|
|
1047
|
-
};
|
|
1048
|
-
return {
|
|
1049
|
-
ok: true,
|
|
1050
|
-
value: {
|
|
1051
|
-
timeZone,
|
|
1052
|
-
startLocalDate,
|
|
1053
|
-
endLocalDate,
|
|
1054
|
-
startAt: localScheduleDateTimeToUtcDate(startLocalDate, START_OF_DAY, timeZone),
|
|
1055
|
-
endExclusive: localScheduleDateTimeToUtcDate(addLocalScheduleDays(endLocalDate, 1), START_OF_DAY, timeZone)
|
|
1056
|
-
}
|
|
1057
|
-
};
|
|
1058
|
-
}
|
|
1059
|
-
function buildBookingUtcDateWindow(input) {
|
|
1060
|
-
const result = parseBookingUtcDateWindow(input);
|
|
1061
|
-
if (result.ok) return result.value;
|
|
1062
|
-
if (result.reason === "invalid_date_range") throw new Error(`Invalid booking date range: startDate "${input.startDate}" must be on or before endDate "${input.endDate}"`);
|
|
1063
|
-
throw new Error(`Invalid booking date format: "${result.value}" (expected YYYY-MM-DD)`);
|
|
1064
|
-
}
|
|
1065
|
-
//#endregion
|
|
1066
980
|
//#region ../core/src/booking-date-time/scheduled.ts
|
|
1067
981
|
function parseStrictBookingTimeZone(timeZone) {
|
|
1068
982
|
const parsed = parseBookingTimeZone(timeZone);
|
|
@@ -1165,6 +1079,31 @@ function resolveBookingDisplayContext(input) {
|
|
|
1165
1079
|
zone: input.surface !== "dashboard" && input.isOnline || input.sessionTimeZone !== input.siteTimeZone ? "always" : "omit"
|
|
1166
1080
|
};
|
|
1167
1081
|
}
|
|
1082
|
+
/** Dashboard and assistant site dates read in British English, whatever the site's own language. */
|
|
1083
|
+
const SITE_DISPLAY_LOCALE = "en-GB";
|
|
1084
|
+
/** The site display policy: `en-GB` in the given zone, falling back to the business zone the server uses. */
|
|
1085
|
+
function siteDisplayContext(timeZone) {
|
|
1086
|
+
return {
|
|
1087
|
+
locale: SITE_DISPLAY_LOCALE,
|
|
1088
|
+
timeZone: resolveBookingBusinessTimeZone(timeZone)
|
|
1089
|
+
};
|
|
1090
|
+
}
|
|
1091
|
+
/** A stored instant as a site date, `22 Sept 2026` by default; an unparseable value is shown as it came. */
|
|
1092
|
+
function formatSiteInstantDate(iso, timeZone, options = {}) {
|
|
1093
|
+
const parsed = parseUtcIsoDateTimeString(iso);
|
|
1094
|
+
return parsed.ok ? formatDate$2({
|
|
1095
|
+
kind: "instant",
|
|
1096
|
+
value: parsed.value
|
|
1097
|
+
}, siteDisplayContext(timeZone), {
|
|
1098
|
+
date: "short",
|
|
1099
|
+
...options
|
|
1100
|
+
}) : iso;
|
|
1101
|
+
}
|
|
1102
|
+
/** A stored instant as a site time, `2:05pm` without a zone label by default; an unparseable value is shown as it came. */
|
|
1103
|
+
function formatSiteInstantTime(iso, timeZone, options = { zone: "omit" }) {
|
|
1104
|
+
const parsed = parseUtcIsoDateTimeString(iso);
|
|
1105
|
+
return parsed.ok ? formatTime$1(parsed.value, siteDisplayContext(timeZone), options) : iso;
|
|
1106
|
+
}
|
|
1168
1107
|
function formatDate$2(value, context, options = {}) {
|
|
1169
1108
|
return presentDate(value, context, displayProfile(options, "omit"));
|
|
1170
1109
|
}
|
|
@@ -1369,6 +1308,129 @@ function assertOrdered(start, end) {
|
|
|
1369
1308
|
function formatTimeZoneCityLabel(timeZone) {
|
|
1370
1309
|
return timeZone.startsWith("Etc/") ? "local time" : `${timeZone.split("/").slice(-1)[0]?.replace(/_/gu, " ") ?? timeZone} time`;
|
|
1371
1310
|
}
|
|
1311
|
+
const MS_PER_HOUR = 36e5;
|
|
1312
|
+
const MS_PER_WEEK = 168 * MS_PER_HOUR;
|
|
1313
|
+
/** The instant bookings stop for something starting at `startsAt`. */
|
|
1314
|
+
function bookingClosesAt(startsAt, cutOffHours) {
|
|
1315
|
+
return (/* @__PURE__ */ new Date(Date.parse(startsAt) - cutOffHours * MS_PER_HOUR)).toISOString();
|
|
1316
|
+
}
|
|
1317
|
+
/** Closing is inclusive, matching the gate: at the exact instant it has closed. */
|
|
1318
|
+
function hasBookingClosed(closesAt, now) {
|
|
1319
|
+
return Date.parse(closesAt) <= now.getTime();
|
|
1320
|
+
}
|
|
1321
|
+
/** The whole hours between closing and the start, for "2 hours before the start". */
|
|
1322
|
+
function bookingCutOffHoursBetween(startsAt, closesAt) {
|
|
1323
|
+
return Math.round((Date.parse(startsAt) - Date.parse(closesAt)) / MS_PER_HOUR);
|
|
1324
|
+
}
|
|
1325
|
+
/**
|
|
1326
|
+
* When bookings closed, in the event's own time zone: "5pm" on the day it starts,
|
|
1327
|
+
* "7pm on Tuesday" earlier in the week, and with the date if it's further back
|
|
1328
|
+
* than that, when a weekday alone could mean the wrong one.
|
|
1329
|
+
*/
|
|
1330
|
+
function formatBookingClosedTime(closesAt, startsAt, timeZone) {
|
|
1331
|
+
const time = formatSiteInstantTime(closesAt, timeZone);
|
|
1332
|
+
const dayOf = (iso) => formatSiteInstantDate(iso, timeZone);
|
|
1333
|
+
if (dayOf(closesAt) === dayOf(startsAt)) return time;
|
|
1334
|
+
return `${time} on ${formatSiteInstantDate(closesAt, timeZone, Date.parse(startsAt) - Date.parse(closesAt) >= MS_PER_WEEK ? {
|
|
1335
|
+
date: "long",
|
|
1336
|
+
weekday: "long",
|
|
1337
|
+
year: "omit"
|
|
1338
|
+
} : {
|
|
1339
|
+
date: "omit",
|
|
1340
|
+
weekday: "long",
|
|
1341
|
+
year: "omit"
|
|
1342
|
+
})}`;
|
|
1343
|
+
}
|
|
1344
|
+
/** "1 hour" or "24 hours". */
|
|
1345
|
+
function formatBookingCutOffHours(hours) {
|
|
1346
|
+
return hours === 1 ? "1 hour" : `${hours} hours`;
|
|
1347
|
+
}
|
|
1348
|
+
//#endregion
|
|
1349
|
+
//#region ../core/src/booking-instalments.ts
|
|
1350
|
+
function isDepositBearingBookingInstalmentPlan(plan) {
|
|
1351
|
+
switch (plan.kind) {
|
|
1352
|
+
case "deposit_plus_one_remainder":
|
|
1353
|
+
case "deposit_plus_scheduled_instalments": return true;
|
|
1354
|
+
case "equal_scheduled_instalments": return false;
|
|
1355
|
+
default: return assertNever(plan);
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
function getBookingInstalmentProtectedDepositAmountCents(plan) {
|
|
1359
|
+
return isDepositBearingBookingInstalmentPlan(plan) ? plan.depositAmountCents : null;
|
|
1360
|
+
}
|
|
1361
|
+
function assertNever(value) {
|
|
1362
|
+
throw new Error(`Unexpected value: ${String(value)}`);
|
|
1363
|
+
}
|
|
1364
|
+
//#endregion
|
|
1365
|
+
//#region ../core/src/booking-payment-options.ts
|
|
1366
|
+
/**
|
|
1367
|
+
* One way a customer may pay for a booking. This is the single definition of
|
|
1368
|
+
* the option type; `booking-payment-schemas.typetest.ts` keeps it equal to the
|
|
1369
|
+
* schema's output in both directions.
|
|
1370
|
+
*/
|
|
1371
|
+
/** When a course's instalments must all be paid by: before its first or its last live session. */
|
|
1372
|
+
const BOOKING_COURSE_INSTALMENT_DEADLINES = ["first_session", "last_session"];
|
|
1373
|
+
/** Automatic instalments and a flexible balance cannot share one booking offer. */
|
|
1374
|
+
function validateBookingPaymentOptionKinds(kinds) {
|
|
1375
|
+
if (kinds.length === 0) return err("no_options");
|
|
1376
|
+
const uniqueKinds = new Set(kinds);
|
|
1377
|
+
if (uniqueKinds.size !== kinds.length) return err("duplicate_kind");
|
|
1378
|
+
if (uniqueKinds.has("instalment_plan") && uniqueKinds.has("flexible_balance")) return err("incompatible_collection_options");
|
|
1379
|
+
return ok$1(void 0);
|
|
1380
|
+
}
|
|
1381
|
+
//#endregion
|
|
1382
|
+
//#region ../core/src/booking-date-time/window.ts
|
|
1383
|
+
const START_OF_DAY = {
|
|
1384
|
+
hour: 0,
|
|
1385
|
+
minute: 0,
|
|
1386
|
+
second: 0
|
|
1387
|
+
};
|
|
1388
|
+
function parseWindowDate(value, field) {
|
|
1389
|
+
try {
|
|
1390
|
+
return {
|
|
1391
|
+
ok: true,
|
|
1392
|
+
value: parseBookingLocalDate(value)
|
|
1393
|
+
};
|
|
1394
|
+
} catch {
|
|
1395
|
+
return {
|
|
1396
|
+
ok: false,
|
|
1397
|
+
field,
|
|
1398
|
+
reason: "invalid_date_format",
|
|
1399
|
+
value
|
|
1400
|
+
};
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
function parseBookingUtcDateWindow(input) {
|
|
1404
|
+
const timeZone = resolveBookingTimeZoneId(input.timeZone);
|
|
1405
|
+
const start = parseWindowDate(input.startDate, "startDate");
|
|
1406
|
+
if (!start.ok) return start;
|
|
1407
|
+
const end = parseWindowDate(input.endDate, "endDate");
|
|
1408
|
+
if (!end.ok) return end;
|
|
1409
|
+
const startLocalDate = start.value;
|
|
1410
|
+
const endLocalDate = end.value;
|
|
1411
|
+
if (compareLocalScheduleDates(startLocalDate, endLocalDate) > 0) return {
|
|
1412
|
+
ok: false,
|
|
1413
|
+
field: "endDate",
|
|
1414
|
+
reason: "invalid_date_range",
|
|
1415
|
+
value: input.endDate
|
|
1416
|
+
};
|
|
1417
|
+
return {
|
|
1418
|
+
ok: true,
|
|
1419
|
+
value: {
|
|
1420
|
+
timeZone,
|
|
1421
|
+
startLocalDate,
|
|
1422
|
+
endLocalDate,
|
|
1423
|
+
startAt: localScheduleDateTimeToUtcDate(startLocalDate, START_OF_DAY, timeZone),
|
|
1424
|
+
endExclusive: localScheduleDateTimeToUtcDate(addLocalScheduleDays(endLocalDate, 1), START_OF_DAY, timeZone)
|
|
1425
|
+
}
|
|
1426
|
+
};
|
|
1427
|
+
}
|
|
1428
|
+
function buildBookingUtcDateWindow(input) {
|
|
1429
|
+
const result = parseBookingUtcDateWindow(input);
|
|
1430
|
+
if (result.ok) return result.value;
|
|
1431
|
+
if (result.reason === "invalid_date_range") throw new Error(`Invalid booking date range: startDate "${input.startDate}" must be on or before endDate "${input.endDate}"`);
|
|
1432
|
+
throw new Error(`Invalid booking date format: "${result.value}" (expected YYYY-MM-DD)`);
|
|
1433
|
+
}
|
|
1372
1434
|
//#endregion
|
|
1373
1435
|
//#region ../core/src/venue-location.ts
|
|
1374
1436
|
/** The owner's option and what visitors read are the same words, so the option says what you'll see. */
|
|
@@ -2167,16 +2229,17 @@ function nextLiveRunSessionStartMs(sessions, now) {
|
|
|
2167
2229
|
return next === void 0 ? null : sessionStartMs(next);
|
|
2168
2230
|
}
|
|
2169
2231
|
/**
|
|
2170
|
-
* Booking stays open until the run's
|
|
2232
|
+
* Booking stays open until the run's cut-off, counted from its first surviving
|
|
2233
|
+
* session. A cut-off of zero closes it as that session starts.
|
|
2171
2234
|
*
|
|
2172
2235
|
* There has to be something left to sell: a run with no schedule at all, or one
|
|
2173
2236
|
* whose every session has been cancelled, is closed rather than open. Adding a
|
|
2174
2237
|
* future session opens it again, subject to the usual status, visibility and
|
|
2175
2238
|
* admission rules.
|
|
2176
2239
|
*/
|
|
2177
|
-
function isWholeSeriesRegistrationOpen(sessions, now) {
|
|
2178
|
-
const
|
|
2179
|
-
return
|
|
2240
|
+
function isWholeSeriesRegistrationOpen(sessions, now, cutOffHours) {
|
|
2241
|
+
const first = orderedLiveRunSessions(sessions)[0];
|
|
2242
|
+
return first !== void 0 && !hasBookingClosed(bookingClosesAt(first.startsAt, cutOffHours), now);
|
|
2180
2243
|
}
|
|
2181
2244
|
/**
|
|
2182
2245
|
* Where the run sits in its own life, independent of any one session.
|
|
@@ -2201,8 +2264,8 @@ function resolveWholeSeriesRunLifecycle(input, now) {
|
|
|
2201
2264
|
* Whether a prepared run is still inviting bookings at render time.
|
|
2202
2265
|
*
|
|
2203
2266
|
* `lifecycle` and `enrollmentOpen` come from the projection; the first session
|
|
2204
|
-
* start
|
|
2205
|
-
* cached page can cross while it sits in front of a visitor.
|
|
2267
|
+
* start and the cut-off are the facts re-read against `now`, because those are
|
|
2268
|
+
* the boundaries a cached page can cross while it sits in front of a visitor.
|
|
2206
2269
|
*/
|
|
2207
2270
|
function resolveWholeSeriesBookingPhase(run, now) {
|
|
2208
2271
|
switch (run.lifecycle) {
|
|
@@ -2223,10 +2286,14 @@ function resolveWholeSeriesBookingPhase(run, now) {
|
|
|
2223
2286
|
kind: "closed",
|
|
2224
2287
|
reason: "no-sessions"
|
|
2225
2288
|
};
|
|
2226
|
-
if (!isWholeSeriesRegistrationOpen(run.sessions, now)) return {
|
|
2289
|
+
if (!isWholeSeriesRegistrationOpen(run.sessions, now, 0)) return {
|
|
2227
2290
|
kind: "closed",
|
|
2228
2291
|
reason: "in-progress"
|
|
2229
2292
|
};
|
|
2293
|
+
if (run.bookingClosesAt !== void 0 && hasBookingClosed(run.bookingClosesAt, now)) return {
|
|
2294
|
+
kind: "closed",
|
|
2295
|
+
reason: "bookings-closed"
|
|
2296
|
+
};
|
|
2230
2297
|
return run.enrollmentOpen ? { kind: "open" } : {
|
|
2231
2298
|
kind: "closed",
|
|
2232
2299
|
reason: "enrolment-closed"
|
|
@@ -3424,6 +3491,8 @@ const publicWholeSeriesRunSchema = z.object({
|
|
|
3424
3491
|
eventSeriesId: z.string(),
|
|
3425
3492
|
eventOfferingId: z.string(),
|
|
3426
3493
|
enrollmentOpen: z.boolean(),
|
|
3494
|
+
/** Present when bookings stop before the first session. Older sites ignore it. */
|
|
3495
|
+
bookingClosesAt: z.string().optional(),
|
|
3427
3496
|
visibility: z.enum(["public", "unlisted"]),
|
|
3428
3497
|
lifecycle: z.enum([
|
|
3429
3498
|
"upcoming",
|
|
@@ -3471,6 +3540,11 @@ const publicEventBaseSchema = z.object({
|
|
|
3471
3540
|
requiresRegistration: z.boolean(),
|
|
3472
3541
|
bookingAvailability: publicEventBookingAvailabilitySchema,
|
|
3473
3542
|
bookingClosedDetail: publicEventBookingClosedDetailSchema.optional(),
|
|
3543
|
+
/**
|
|
3544
|
+
* Present when bookings stop before this date starts. It's what says "closed
|
|
3545
|
+
* early": the closed reasons stay as they are, so older sites keep working.
|
|
3546
|
+
*/
|
|
3547
|
+
bookingClosesAt: z.string().optional(),
|
|
3474
3548
|
deliveryMode: z.enum([
|
|
3475
3549
|
"in_person",
|
|
3476
3550
|
"online",
|
|
@@ -41913,11 +41987,19 @@ function rowFor(rows, mode) {
|
|
|
41913
41987
|
* capacity comes from the shared event-domain helpers so uncapped, fallback,
|
|
41914
41988
|
* and hybrid attendance-mode cases agree with the registration runtime.
|
|
41915
41989
|
*/
|
|
41916
|
-
function isBookableEvent(event) {
|
|
41990
|
+
function isBookableEvent(event, now) {
|
|
41917
41991
|
if (!event.requiresRegistration) return false;
|
|
41918
41992
|
if (event.bookingAvailability.kind !== "open") return false;
|
|
41993
|
+
if (now && hasEventBookingClosedEarly(event, now)) return false;
|
|
41919
41994
|
return !isEventFull(event) || canJoinEventWaitlistOnAnyMode(event);
|
|
41920
41995
|
}
|
|
41996
|
+
/**
|
|
41997
|
+
* Whether a date has passed its cut-off by this clock. The projected availability
|
|
41998
|
+
* can be older than the page it's on, and a cut-off makes that gap matter more.
|
|
41999
|
+
*/
|
|
42000
|
+
function hasEventBookingClosedEarly(event, now) {
|
|
42001
|
+
return event.bookingClosesAt !== void 0 && hasBookingClosed(event.bookingClosesAt, now);
|
|
42002
|
+
}
|
|
41921
42003
|
//#endregion
|
|
41922
42004
|
//#region ../blocks/src/system/blocks/events/shared/pageSelection.ts
|
|
41923
42005
|
/**
|
|
@@ -41977,7 +42059,7 @@ function planOrdinarySeriesSelection(events) {
|
|
|
41977
42059
|
const ordinary = events.filter(isOrdinaryPublicEvent);
|
|
41978
42060
|
const firstSeriesId = ordinary[0]?.seriesId;
|
|
41979
42061
|
if (!firstSeriesId || ordinary.some((event) => event.seriesId !== firstSeriesId)) return null;
|
|
41980
|
-
const [first, second] = ordinary.filter(isBookableEvent);
|
|
42062
|
+
const [first, second] = ordinary.filter((event) => isBookableEvent(event));
|
|
41981
42063
|
if (first && second) {
|
|
41982
42064
|
const [a, b, ...rest] = [...ordinary].filter(isOpenForBooking).sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt));
|
|
41983
42065
|
if (a && b) return {
|
|
@@ -42188,6 +42270,243 @@ function isCancelledOrdinaryDate(event) {
|
|
|
42188
42270
|
//#region ../blocks/src/system/blocks/shared/bookingPageKind.ts
|
|
42189
42271
|
const bookingPageKindSchema = z.enum(["fullPage", "bookingPage"]);
|
|
42190
42272
|
//#endregion
|
|
42273
|
+
//#region ../blocks/src/system/runtime/nodes/events/domain/dates.ts
|
|
42274
|
+
/** Event presentation adapters; core owns projection, clocks and ranges. */
|
|
42275
|
+
function eventDateLocale(siteTimeZone) {
|
|
42276
|
+
return inferSiteDateLocale(siteTimeZone);
|
|
42277
|
+
}
|
|
42278
|
+
function eventCalendarWeekStart(timeZone, override) {
|
|
42279
|
+
return override ?? (inferSiteDateLocale(resolveBookingBusinessTimeZone(timeZone)) === "en-US" ? "sunday" : "monday");
|
|
42280
|
+
}
|
|
42281
|
+
/** Admit older wire zones once; the booking business fallback remains London. */
|
|
42282
|
+
function eventDateOptions(place) {
|
|
42283
|
+
const siteTimeZone = resolveBookingBusinessTimeZone(place.siteTimeZone);
|
|
42284
|
+
const resolved = resolveBookingDisplayContext({
|
|
42285
|
+
sessionTimeZone: resolveBookingTimeZoneId(place.timeZone, siteTimeZone),
|
|
42286
|
+
siteTimeZone,
|
|
42287
|
+
locale: inferSiteDateLocale(siteTimeZone),
|
|
42288
|
+
isOnline: place.isOnline === true || place.deliveryMode === "online" || place.deliveryMode === "hybrid",
|
|
42289
|
+
surface: "public"
|
|
42290
|
+
});
|
|
42291
|
+
return {
|
|
42292
|
+
...resolved.context,
|
|
42293
|
+
zone: resolved.zone
|
|
42294
|
+
};
|
|
42295
|
+
}
|
|
42296
|
+
/** Overnight spans keep their end day; folds retain both distinct offsets. */
|
|
42297
|
+
function formatEventTimeRange(times, options) {
|
|
42298
|
+
const start = toUtcIsoDateTimeString(times.startsAt);
|
|
42299
|
+
const end = toUtcIsoDateTimeString(times.endsAt);
|
|
42300
|
+
const startDay = getLocalScheduleDate(new Date(start), options.timeZone);
|
|
42301
|
+
const endDay = getLocalScheduleDate(new Date(end), options.timeZone);
|
|
42302
|
+
return startDay.year === endDay.year && startDay.month === endDay.month && startDay.day === endDay.day ? formatTimeRange(start, end, options, { zone: options.zone }) : formatDateTimeRange({
|
|
42303
|
+
start,
|
|
42304
|
+
end
|
|
42305
|
+
}, options, {
|
|
42306
|
+
date: "short",
|
|
42307
|
+
zone: options.zone
|
|
42308
|
+
});
|
|
42309
|
+
}
|
|
42310
|
+
function resolveEventTimeZone(event, calendarTimeZone) {
|
|
42311
|
+
return resolveBookingTimeZoneId(event.timeZone, resolveBookingBusinessTimeZone(calendarTimeZone));
|
|
42312
|
+
}
|
|
42313
|
+
function formatDate(isoTimestamp, options) {
|
|
42314
|
+
return formatDate$2({
|
|
42315
|
+
kind: "instant",
|
|
42316
|
+
value: toUtcIsoDateTimeString(isoTimestamp)
|
|
42317
|
+
}, options, {
|
|
42318
|
+
date: "short",
|
|
42319
|
+
weekday: "long"
|
|
42320
|
+
});
|
|
42321
|
+
}
|
|
42322
|
+
function formatTime(isoTimestamp, options) {
|
|
42323
|
+
return formatTime$1(toUtcIsoDateTimeString(isoTimestamp), options, { zone: options.zone });
|
|
42324
|
+
}
|
|
42325
|
+
function formatEventDateParts(args) {
|
|
42326
|
+
return {
|
|
42327
|
+
date: formatDate(args.startsAt, args),
|
|
42328
|
+
timeRange: formatEventTimeRange(args, args)
|
|
42329
|
+
};
|
|
42330
|
+
}
|
|
42331
|
+
/** A course run's first to last session date, such as `8–22 Sept 2026`. */
|
|
42332
|
+
function formatEventRunDates(first, last, options) {
|
|
42333
|
+
return formatDateRange({
|
|
42334
|
+
kind: "instant",
|
|
42335
|
+
value: toUtcIsoDateTimeString(first.startsAt)
|
|
42336
|
+
}, {
|
|
42337
|
+
kind: "instant",
|
|
42338
|
+
value: toUtcIsoDateTimeString(last.startsAt)
|
|
42339
|
+
}, options, {
|
|
42340
|
+
date: "short",
|
|
42341
|
+
order: "session"
|
|
42342
|
+
});
|
|
42343
|
+
}
|
|
42344
|
+
/** Civil calendar headings never acquire an instant's timezone shift. */
|
|
42345
|
+
function formatCalendarTitle(viewDate, view, days, timeZone) {
|
|
42346
|
+
const context = eventDateOptions({
|
|
42347
|
+
siteTimeZone: timeZone,
|
|
42348
|
+
timeZone
|
|
42349
|
+
});
|
|
42350
|
+
const first = days[0];
|
|
42351
|
+
const last = days[6];
|
|
42352
|
+
return view === "week" && first && last ? formatDateRange({
|
|
42353
|
+
kind: "civil",
|
|
42354
|
+
value: first
|
|
42355
|
+
}, {
|
|
42356
|
+
kind: "civil",
|
|
42357
|
+
value: last
|
|
42358
|
+
}, context, { date: "short" }) : formatDate$2({
|
|
42359
|
+
kind: "civil",
|
|
42360
|
+
value: viewDate
|
|
42361
|
+
}, context, {
|
|
42362
|
+
date: "long",
|
|
42363
|
+
day: "omit"
|
|
42364
|
+
});
|
|
42365
|
+
}
|
|
42366
|
+
function buildCalendarViewport(input) {
|
|
42367
|
+
const viewport = buildCalendarViewport$1(input);
|
|
42368
|
+
return {
|
|
42369
|
+
...viewport,
|
|
42370
|
+
title: formatCalendarTitle(input.anchorDate, input.view, viewport.days, input.timeZone)
|
|
42371
|
+
};
|
|
42372
|
+
}
|
|
42373
|
+
/** Tick digits are civil clock values, not session instants. */
|
|
42374
|
+
function formatEventHourLabel(hour, timeZone) {
|
|
42375
|
+
return formatEventClockLabel(`${String(hour % 24).padStart(2, "0")}:00`, eventDateLocale(timeZone));
|
|
42376
|
+
}
|
|
42377
|
+
/** Weekly cadence and tick clocks are civil values; UTC only carries their components. */
|
|
42378
|
+
function formatEventClockLabel(value, locale) {
|
|
42379
|
+
const clock = parseLocalScheduleTime(value);
|
|
42380
|
+
return formatTime$1(toUtcIsoDateTimeString(new Date(Date.UTC(2e3, 0, 1, clock.hour, clock.minute)).toISOString()), {
|
|
42381
|
+
locale,
|
|
42382
|
+
timeZone: resolveBookingBusinessTimeZone("UTC")
|
|
42383
|
+
}, { zone: "omit" });
|
|
42384
|
+
}
|
|
42385
|
+
function formatEventCompactDateRail(isoTimestamp, options, letterCase = "capitals") {
|
|
42386
|
+
const instant = {
|
|
42387
|
+
kind: "instant",
|
|
42388
|
+
value: toUtcIsoDateTimeString(isoTimestamp)
|
|
42389
|
+
};
|
|
42390
|
+
const cased = (value) => letterCase === "capitals" ? value.toLocaleUpperCase(options.locale) : value;
|
|
42391
|
+
return {
|
|
42392
|
+
weekday: cased(formatDate$2(instant, options, {
|
|
42393
|
+
date: "omit",
|
|
42394
|
+
weekday: "short",
|
|
42395
|
+
year: "omit"
|
|
42396
|
+
})),
|
|
42397
|
+
fullWeekday: formatDate$2(instant, options, {
|
|
42398
|
+
date: "omit",
|
|
42399
|
+
weekday: "long",
|
|
42400
|
+
year: "omit"
|
|
42401
|
+
}),
|
|
42402
|
+
day: formatDate$2(instant, options, {
|
|
42403
|
+
date: "omit",
|
|
42404
|
+
day: "numeric",
|
|
42405
|
+
year: "omit"
|
|
42406
|
+
}),
|
|
42407
|
+
month: cased(formatDate$2(instant, options, {
|
|
42408
|
+
date: "short",
|
|
42409
|
+
day: "omit",
|
|
42410
|
+
year: "omit"
|
|
42411
|
+
}).slice(0, 3)),
|
|
42412
|
+
label: formatDate$2(instant, options, {
|
|
42413
|
+
date: "long",
|
|
42414
|
+
weekday: "long"
|
|
42415
|
+
})
|
|
42416
|
+
};
|
|
42417
|
+
}
|
|
42418
|
+
/**
|
|
42419
|
+
* Format the next occurrence for the image-free catalogue card treatment.
|
|
42420
|
+
*
|
|
42421
|
+
* The compact rail already owns this short, booking-local date vocabulary;
|
|
42422
|
+
* keep the fact panel on the same date and timezone rules as event rows.
|
|
42423
|
+
*/
|
|
42424
|
+
function formatEventNextDateFact(event) {
|
|
42425
|
+
const rail = formatEventCompactDateRail(event.startsAt, eventDateOptions(event));
|
|
42426
|
+
return {
|
|
42427
|
+
dateTime: event.startsAt,
|
|
42428
|
+
value: `${rail.weekday} ${rail.day} ${rail.month}`,
|
|
42429
|
+
label: rail.label
|
|
42430
|
+
};
|
|
42431
|
+
}
|
|
42432
|
+
/**
|
|
42433
|
+
* Group events by their local date (YYYY-MM-DD key in each event's own
|
|
42434
|
+
* timezone). Thin domain wrapper over `groupItemsByDate` from the calendar
|
|
42435
|
+
* package; preserves the historical `Map<string, PublicEvent[]>` shape.
|
|
42436
|
+
*/
|
|
42437
|
+
function groupEventsByDate(events, calendarTimeZone) {
|
|
42438
|
+
const grouped = groupItemsByDate(events, {
|
|
42439
|
+
getStartsAt: (event) => event.startsAt,
|
|
42440
|
+
getTimeZone: () => calendarTimeZone
|
|
42441
|
+
});
|
|
42442
|
+
return new Map([...grouped].map(([dateKey, bucket]) => [dateKey, [...bucket]]));
|
|
42443
|
+
}
|
|
42444
|
+
/** Stable local-day identity shared by ledger continuations and day groups. */
|
|
42445
|
+
function eventLocalDateKey(event) {
|
|
42446
|
+
return getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
42447
|
+
startsAt: event.startsAt,
|
|
42448
|
+
timeZone: resolveBookingBusinessTimeZone(event.timeZone),
|
|
42449
|
+
locale: "en-GB"
|
|
42450
|
+
}));
|
|
42451
|
+
}
|
|
42452
|
+
/** Full weekday and the existing zone-aware time range for a weekly running list. */
|
|
42453
|
+
function formatEventWeekdayTime(event) {
|
|
42454
|
+
const options = eventDateOptions(event);
|
|
42455
|
+
return `${formatDate$2({
|
|
42456
|
+
kind: "instant",
|
|
42457
|
+
value: toUtcIsoDateTimeString(event.startsAt)
|
|
42458
|
+
}, options, {
|
|
42459
|
+
date: "omit",
|
|
42460
|
+
weekday: "long",
|
|
42461
|
+
year: "omit"
|
|
42462
|
+
})} · ${formatEventTimeRange(event, options)}`;
|
|
42463
|
+
}
|
|
42464
|
+
//#endregion
|
|
42465
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/closedEarlyCopy.ts
|
|
42466
|
+
const isWeekly = (event) => event.scheduleScope === "recurring";
|
|
42467
|
+
function eventTimeZone(event) {
|
|
42468
|
+
return eventDateOptions(event).timeZone;
|
|
42469
|
+
}
|
|
42470
|
+
/** On a date's own read both `path` and the destination name that date; its event's page is one level up. */
|
|
42471
|
+
function eventOwnPagePath(event) {
|
|
42472
|
+
const path = getPublicEventCanonicalPath(event);
|
|
42473
|
+
const dateSegment = `/${event.occurrenceId}`;
|
|
42474
|
+
return path?.endsWith(dateSegment) ? path.slice(0, -dateSegment.length) || "/" : path;
|
|
42475
|
+
}
|
|
42476
|
+
/** "Bookings close 2 hours before the start.", while they're still open. */
|
|
42477
|
+
function openBookingLine(event) {
|
|
42478
|
+
if (!event.bookingClosesAt) return null;
|
|
42479
|
+
const before = formatBookingCutOffHours(bookingCutOffHoursBetween(event.startsAt, event.bookingClosesAt));
|
|
42480
|
+
return isWeekly(event) ? `Bookings for each date close ${before} before the start.` : `Bookings close ${before} before the start.`;
|
|
42481
|
+
}
|
|
42482
|
+
/** The course's open line, counted from its first session still running. */
|
|
42483
|
+
function openRunBookingLine(run) {
|
|
42484
|
+
const first = orderedLiveRunSessions(run.sessions)[0];
|
|
42485
|
+
if (!run.bookingClosesAt || !first) return null;
|
|
42486
|
+
return `Bookings close ${formatBookingCutOffHours(bookingCutOffHoursBetween(first.startsAt, run.bookingClosesAt))} before the first session.`;
|
|
42487
|
+
}
|
|
42488
|
+
/** One date between its cut-off and its start, or null. */
|
|
42489
|
+
function closedDateCopy(event, now) {
|
|
42490
|
+
const closesAt = event.bookingClosesAt;
|
|
42491
|
+
if (!closesAt || !hasBookingClosed(closesAt, now) || Date.parse(event.startsAt) <= now.getTime()) return null;
|
|
42492
|
+
const zone = eventTimeZone(event);
|
|
42493
|
+
const closed = formatBookingClosedTime(closesAt, event.startsAt, zone);
|
|
42494
|
+
const start = formatBookingClosedTime(event.startsAt, event.startsAt, zone);
|
|
42495
|
+
const before = formatBookingCutOffHours(bookingCutOffHoursBetween(event.startsAt, closesAt));
|
|
42496
|
+
const weekly = isWeekly(event);
|
|
42497
|
+
return {
|
|
42498
|
+
titleText: weekly ? "Bookings for this date have closed" : "Bookings for this event have closed",
|
|
42499
|
+
bodyText: `Bookings closed at ${closed}, ${before} before the ${start} start. The organiser may still be able to help if you’d like to come.`,
|
|
42500
|
+
otherDatesHref: weekly ? eventOwnPagePath(event) : null
|
|
42501
|
+
};
|
|
42502
|
+
}
|
|
42503
|
+
/** The body of a course past its cut-off, or null if the run doesn't say when. */
|
|
42504
|
+
function closedRunBody(run) {
|
|
42505
|
+
const first = orderedLiveRunSessions(run.sessions)[0];
|
|
42506
|
+
if (!run.bookingClosesAt || !first) return null;
|
|
42507
|
+
return `Bookings closed at ${formatBookingClosedTime(run.bookingClosesAt, first.startsAt, first.timeZone)}, ${formatBookingCutOffHours(bookingCutOffHoursBetween(first.startsAt, run.bookingClosesAt))} before the first session. The organiser may still be able to help if you’d like to join.`;
|
|
42508
|
+
}
|
|
42509
|
+
//#endregion
|
|
42191
42510
|
//#region ../blocks/src/system/runtime/nodes/event-registration/closedRunCopy.ts
|
|
42192
42511
|
const copy = {
|
|
42193
42512
|
cancelled: {
|
|
@@ -42202,6 +42521,10 @@ const copy = {
|
|
|
42202
42521
|
titleText: "These dates have finished",
|
|
42203
42522
|
bodyText: "The details are kept here for reference."
|
|
42204
42523
|
},
|
|
42524
|
+
"bookings-closed": {
|
|
42525
|
+
titleText: "Bookings for these dates have closed",
|
|
42526
|
+
bodyText: "Bookings for these dates have closed. The organiser may still be able to help if you’d like to join."
|
|
42527
|
+
},
|
|
42205
42528
|
"enrolment-closed": {
|
|
42206
42529
|
titleText: "Booking closed",
|
|
42207
42530
|
bodyText: "Bookings are no longer being taken for these dates."
|
|
@@ -42211,8 +42534,27 @@ const copy = {
|
|
|
42211
42534
|
bodyText: "There are no dates to book at the moment. The organiser may add more, and anything already booked still stands."
|
|
42212
42535
|
}
|
|
42213
42536
|
};
|
|
42214
|
-
|
|
42215
|
-
|
|
42537
|
+
/** A run past its cut-off says when it closed, if it can. */
|
|
42538
|
+
function closedRunCopy(reason, run) {
|
|
42539
|
+
const body = reason === "bookings-closed" && run ? closedRunBody(run) : null;
|
|
42540
|
+
return body ? {
|
|
42541
|
+
...copy[reason],
|
|
42542
|
+
bodyText: body
|
|
42543
|
+
} : copy[reason];
|
|
42544
|
+
}
|
|
42545
|
+
/**
|
|
42546
|
+
* A list of dates closes once none is left to book and at least one stopped at
|
|
42547
|
+
* its cut-off. Until then the closed ones just leave the list. There's nothing
|
|
42548
|
+
* further to point at, so the copy offers no other dates.
|
|
42549
|
+
*/
|
|
42550
|
+
function closedDatesCopy(dates, now) {
|
|
42551
|
+
if (dates.some((date) => Date.parse(date.startsAt) > now.getTime() && !(date.bookingClosesAt && hasBookingClosed(date.bookingClosesAt, now)))) return null;
|
|
42552
|
+
const [firstClosed] = dates.flatMap((date) => closedDateCopy(date, now) ?? []);
|
|
42553
|
+
if (!firstClosed) return null;
|
|
42554
|
+
return {
|
|
42555
|
+
...dates.length > 1 ? copy["bookings-closed"] : firstClosed,
|
|
42556
|
+
otherDatesHref: null
|
|
42557
|
+
};
|
|
42216
42558
|
}
|
|
42217
42559
|
//#endregion
|
|
42218
42560
|
//#region ../blocks/src/system/runtime/shared/navigation/pageNavigation.ts
|
|
@@ -42419,198 +42761,6 @@ function resolveRuntimeEventDestination(event) {
|
|
|
42419
42761
|
};
|
|
42420
42762
|
}
|
|
42421
42763
|
//#endregion
|
|
42422
|
-
//#region ../blocks/src/system/runtime/nodes/events/domain/dates.ts
|
|
42423
|
-
/** Event presentation adapters; core owns projection, clocks and ranges. */
|
|
42424
|
-
function eventDateLocale(siteTimeZone) {
|
|
42425
|
-
return inferSiteDateLocale(siteTimeZone);
|
|
42426
|
-
}
|
|
42427
|
-
function eventCalendarWeekStart(timeZone, override) {
|
|
42428
|
-
return override ?? (inferSiteDateLocale(resolveBookingBusinessTimeZone(timeZone)) === "en-US" ? "sunday" : "monday");
|
|
42429
|
-
}
|
|
42430
|
-
/** Admit older wire zones once; the booking business fallback remains London. */
|
|
42431
|
-
function eventDateOptions(place) {
|
|
42432
|
-
const siteTimeZone = resolveBookingBusinessTimeZone(place.siteTimeZone);
|
|
42433
|
-
const resolved = resolveBookingDisplayContext({
|
|
42434
|
-
sessionTimeZone: resolveBookingTimeZoneId(place.timeZone, siteTimeZone),
|
|
42435
|
-
siteTimeZone,
|
|
42436
|
-
locale: inferSiteDateLocale(siteTimeZone),
|
|
42437
|
-
isOnline: place.isOnline === true || place.deliveryMode === "online" || place.deliveryMode === "hybrid",
|
|
42438
|
-
surface: "public"
|
|
42439
|
-
});
|
|
42440
|
-
return {
|
|
42441
|
-
...resolved.context,
|
|
42442
|
-
zone: resolved.zone
|
|
42443
|
-
};
|
|
42444
|
-
}
|
|
42445
|
-
/** Overnight spans keep their end day; folds retain both distinct offsets. */
|
|
42446
|
-
function formatEventTimeRange(times, options) {
|
|
42447
|
-
const start = toUtcIsoDateTimeString(times.startsAt);
|
|
42448
|
-
const end = toUtcIsoDateTimeString(times.endsAt);
|
|
42449
|
-
const startDay = getLocalScheduleDate(new Date(start), options.timeZone);
|
|
42450
|
-
const endDay = getLocalScheduleDate(new Date(end), options.timeZone);
|
|
42451
|
-
return startDay.year === endDay.year && startDay.month === endDay.month && startDay.day === endDay.day ? formatTimeRange(start, end, options, { zone: options.zone }) : formatDateTimeRange({
|
|
42452
|
-
start,
|
|
42453
|
-
end
|
|
42454
|
-
}, options, {
|
|
42455
|
-
date: "short",
|
|
42456
|
-
zone: options.zone
|
|
42457
|
-
});
|
|
42458
|
-
}
|
|
42459
|
-
function resolveEventTimeZone(event, calendarTimeZone) {
|
|
42460
|
-
return resolveBookingTimeZoneId(event.timeZone, resolveBookingBusinessTimeZone(calendarTimeZone));
|
|
42461
|
-
}
|
|
42462
|
-
function formatDate(isoTimestamp, options) {
|
|
42463
|
-
return formatDate$2({
|
|
42464
|
-
kind: "instant",
|
|
42465
|
-
value: toUtcIsoDateTimeString(isoTimestamp)
|
|
42466
|
-
}, options, {
|
|
42467
|
-
date: "short",
|
|
42468
|
-
weekday: "long"
|
|
42469
|
-
});
|
|
42470
|
-
}
|
|
42471
|
-
function formatTime(isoTimestamp, options) {
|
|
42472
|
-
return formatTime$1(toUtcIsoDateTimeString(isoTimestamp), options, { zone: options.zone });
|
|
42473
|
-
}
|
|
42474
|
-
function formatEventDateParts(args) {
|
|
42475
|
-
return {
|
|
42476
|
-
date: formatDate(args.startsAt, args),
|
|
42477
|
-
timeRange: formatEventTimeRange(args, args)
|
|
42478
|
-
};
|
|
42479
|
-
}
|
|
42480
|
-
/** A course run's first to last session date, such as `8–22 Sept 2026`. */
|
|
42481
|
-
function formatEventRunDates(first, last, options) {
|
|
42482
|
-
return formatDateRange({
|
|
42483
|
-
kind: "instant",
|
|
42484
|
-
value: toUtcIsoDateTimeString(first.startsAt)
|
|
42485
|
-
}, {
|
|
42486
|
-
kind: "instant",
|
|
42487
|
-
value: toUtcIsoDateTimeString(last.startsAt)
|
|
42488
|
-
}, options, {
|
|
42489
|
-
date: "short",
|
|
42490
|
-
order: "session"
|
|
42491
|
-
});
|
|
42492
|
-
}
|
|
42493
|
-
/** Civil calendar headings never acquire an instant's timezone shift. */
|
|
42494
|
-
function formatCalendarTitle(viewDate, view, days, timeZone) {
|
|
42495
|
-
const context = eventDateOptions({
|
|
42496
|
-
siteTimeZone: timeZone,
|
|
42497
|
-
timeZone
|
|
42498
|
-
});
|
|
42499
|
-
const first = days[0];
|
|
42500
|
-
const last = days[6];
|
|
42501
|
-
return view === "week" && first && last ? formatDateRange({
|
|
42502
|
-
kind: "civil",
|
|
42503
|
-
value: first
|
|
42504
|
-
}, {
|
|
42505
|
-
kind: "civil",
|
|
42506
|
-
value: last
|
|
42507
|
-
}, context, { date: "short" }) : formatDate$2({
|
|
42508
|
-
kind: "civil",
|
|
42509
|
-
value: viewDate
|
|
42510
|
-
}, context, {
|
|
42511
|
-
date: "long",
|
|
42512
|
-
day: "omit"
|
|
42513
|
-
});
|
|
42514
|
-
}
|
|
42515
|
-
function buildCalendarViewport(input) {
|
|
42516
|
-
const viewport = buildCalendarViewport$1(input);
|
|
42517
|
-
return {
|
|
42518
|
-
...viewport,
|
|
42519
|
-
title: formatCalendarTitle(input.anchorDate, input.view, viewport.days, input.timeZone)
|
|
42520
|
-
};
|
|
42521
|
-
}
|
|
42522
|
-
/** Tick digits are civil clock values, not session instants. */
|
|
42523
|
-
function formatEventHourLabel(hour, timeZone) {
|
|
42524
|
-
return formatEventClockLabel(`${String(hour % 24).padStart(2, "0")}:00`, eventDateLocale(timeZone));
|
|
42525
|
-
}
|
|
42526
|
-
/** Weekly cadence and tick clocks are civil values; UTC only carries their components. */
|
|
42527
|
-
function formatEventClockLabel(value, locale) {
|
|
42528
|
-
const clock = parseLocalScheduleTime(value);
|
|
42529
|
-
return formatTime$1(toUtcIsoDateTimeString(new Date(Date.UTC(2e3, 0, 1, clock.hour, clock.minute)).toISOString()), {
|
|
42530
|
-
locale,
|
|
42531
|
-
timeZone: resolveBookingBusinessTimeZone("UTC")
|
|
42532
|
-
}, { zone: "omit" });
|
|
42533
|
-
}
|
|
42534
|
-
function formatEventCompactDateRail(isoTimestamp, options, letterCase = "capitals") {
|
|
42535
|
-
const instant = {
|
|
42536
|
-
kind: "instant",
|
|
42537
|
-
value: toUtcIsoDateTimeString(isoTimestamp)
|
|
42538
|
-
};
|
|
42539
|
-
const cased = (value) => letterCase === "capitals" ? value.toLocaleUpperCase(options.locale) : value;
|
|
42540
|
-
return {
|
|
42541
|
-
weekday: cased(formatDate$2(instant, options, {
|
|
42542
|
-
date: "omit",
|
|
42543
|
-
weekday: "short",
|
|
42544
|
-
year: "omit"
|
|
42545
|
-
})),
|
|
42546
|
-
fullWeekday: formatDate$2(instant, options, {
|
|
42547
|
-
date: "omit",
|
|
42548
|
-
weekday: "long",
|
|
42549
|
-
year: "omit"
|
|
42550
|
-
}),
|
|
42551
|
-
day: formatDate$2(instant, options, {
|
|
42552
|
-
date: "omit",
|
|
42553
|
-
day: "numeric",
|
|
42554
|
-
year: "omit"
|
|
42555
|
-
}),
|
|
42556
|
-
month: cased(formatDate$2(instant, options, {
|
|
42557
|
-
date: "short",
|
|
42558
|
-
day: "omit",
|
|
42559
|
-
year: "omit"
|
|
42560
|
-
}).slice(0, 3)),
|
|
42561
|
-
label: formatDate$2(instant, options, {
|
|
42562
|
-
date: "long",
|
|
42563
|
-
weekday: "long"
|
|
42564
|
-
})
|
|
42565
|
-
};
|
|
42566
|
-
}
|
|
42567
|
-
/**
|
|
42568
|
-
* Format the next occurrence for the image-free catalogue card treatment.
|
|
42569
|
-
*
|
|
42570
|
-
* The compact rail already owns this short, booking-local date vocabulary;
|
|
42571
|
-
* keep the fact panel on the same date and timezone rules as event rows.
|
|
42572
|
-
*/
|
|
42573
|
-
function formatEventNextDateFact(event) {
|
|
42574
|
-
const rail = formatEventCompactDateRail(event.startsAt, eventDateOptions(event));
|
|
42575
|
-
return {
|
|
42576
|
-
dateTime: event.startsAt,
|
|
42577
|
-
value: `${rail.weekday} ${rail.day} ${rail.month}`,
|
|
42578
|
-
label: rail.label
|
|
42579
|
-
};
|
|
42580
|
-
}
|
|
42581
|
-
/**
|
|
42582
|
-
* Group events by their local date (YYYY-MM-DD key in each event's own
|
|
42583
|
-
* timezone). Thin domain wrapper over `groupItemsByDate` from the calendar
|
|
42584
|
-
* package; preserves the historical `Map<string, PublicEvent[]>` shape.
|
|
42585
|
-
*/
|
|
42586
|
-
function groupEventsByDate(events, calendarTimeZone) {
|
|
42587
|
-
const grouped = groupItemsByDate(events, {
|
|
42588
|
-
getStartsAt: (event) => event.startsAt,
|
|
42589
|
-
getTimeZone: () => calendarTimeZone
|
|
42590
|
-
});
|
|
42591
|
-
return new Map([...grouped].map(([dateKey, bucket]) => [dateKey, [...bucket]]));
|
|
42592
|
-
}
|
|
42593
|
-
/** Stable local-day identity shared by ledger continuations and day groups. */
|
|
42594
|
-
function eventLocalDateKey(event) {
|
|
42595
|
-
return getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
42596
|
-
startsAt: event.startsAt,
|
|
42597
|
-
timeZone: resolveBookingBusinessTimeZone(event.timeZone),
|
|
42598
|
-
locale: "en-GB"
|
|
42599
|
-
}));
|
|
42600
|
-
}
|
|
42601
|
-
/** Full weekday and the existing zone-aware time range for a weekly running list. */
|
|
42602
|
-
function formatEventWeekdayTime(event) {
|
|
42603
|
-
const options = eventDateOptions(event);
|
|
42604
|
-
return `${formatDate$2({
|
|
42605
|
-
kind: "instant",
|
|
42606
|
-
value: toUtcIsoDateTimeString(event.startsAt)
|
|
42607
|
-
}, options, {
|
|
42608
|
-
date: "omit",
|
|
42609
|
-
weekday: "long",
|
|
42610
|
-
year: "omit"
|
|
42611
|
-
})} · ${formatEventTimeRange(event, options)}`;
|
|
42612
|
-
}
|
|
42613
|
-
//#endregion
|
|
42614
42764
|
//#region ../blocks/src/system/runtime/nodes/events/domain/listWeek.ts
|
|
42615
42765
|
/** Civil weeks use the site zone, including weeks containing a clock change. */
|
|
42616
42766
|
function buildEventListWeek(anchor, startOfWeek, timeZone) {
|
|
@@ -43220,6 +43370,7 @@ function scheduleInput(event, occurrence) {
|
|
|
43220
43370
|
function toRegistrationEvent(event) {
|
|
43221
43371
|
return {
|
|
43222
43372
|
...event,
|
|
43373
|
+
...bookingCloseLine(openBookingLine(event)),
|
|
43223
43374
|
selectionId: event.id,
|
|
43224
43375
|
registrationSubject: {
|
|
43225
43376
|
kind: "occurrence",
|
|
@@ -43227,6 +43378,9 @@ function toRegistrationEvent(event) {
|
|
|
43227
43378
|
}
|
|
43228
43379
|
};
|
|
43229
43380
|
}
|
|
43381
|
+
function bookingCloseLine(line) {
|
|
43382
|
+
return line ? { bookingCloseLine: line } : {};
|
|
43383
|
+
}
|
|
43230
43384
|
function toRegistrationEvents(events) {
|
|
43231
43385
|
return events.filter((event) => event.bookingScope === "single_occurrence").map(toRegistrationEvent);
|
|
43232
43386
|
}
|
|
@@ -43245,6 +43399,7 @@ function toWholeSeriesRegistrationEvent(group) {
|
|
|
43245
43399
|
const lastSession = sessions[sessions.length - 1] ?? firstSession;
|
|
43246
43400
|
return {
|
|
43247
43401
|
...representative,
|
|
43402
|
+
...bookingCloseLine(openRunBookingLine(run)),
|
|
43248
43403
|
selectionId: run.eventSeriesId,
|
|
43249
43404
|
registrationSubject: {
|
|
43250
43405
|
kind: "wholeSeries",
|
|
@@ -44125,7 +44280,7 @@ function resolveEventRegistrationChoices(events, context, now) {
|
|
|
44125
44280
|
const runs = groupPublicEventsByRun(scoped);
|
|
44126
44281
|
if (context.occurrenceContext || context.subject?.kind === "eventSeries" && context.subject.bookingScope === "whole_series" || runs.length === 1 && scoped.every((event) => event.bookingScope === "whole_series")) return scoped;
|
|
44127
44282
|
const eligibleRunIds = new Set(runs.filter((group) => resolveWholeSeriesChooserEligibility(group, now).kind === "eligible").map((group) => group.eventSeriesId));
|
|
44128
|
-
return scoped.filter((event) => event.bookingScope === "whole_series" ? eligibleRunIds.has(event.seriesId) : Date.parse(event.startsAt) > now.getTime());
|
|
44283
|
+
return scoped.filter((event) => event.bookingScope === "whole_series" ? eligibleRunIds.has(event.seriesId) : Date.parse(event.startsAt) > now.getTime() && !hasEventBookingClosedEarly(event, now));
|
|
44129
44284
|
}
|
|
44130
44285
|
//#endregion
|
|
44131
44286
|
//#region ../blocks/src/system/runtime/nodes/shared/contract-schemas.ts
|
|
@@ -44323,7 +44478,7 @@ function closedRegistrationCopy(source, events) {
|
|
|
44323
44478
|
if (hasCancelledRegistrationDate(events, source.occurrenceContext?.id)) return cancelledDateCopy;
|
|
44324
44479
|
const selectedRun = resolveSelectedWholeSeriesRun(events);
|
|
44325
44480
|
const phase = selectedRun ? resolveWholeSeriesBookingPhase(selectedRun.run, new Date(source.now)) : null;
|
|
44326
|
-
return phase?.kind === "closed" ? closedRunCopy(phase.reason) : null;
|
|
44481
|
+
return phase?.kind === "closed" ? closedRunCopy(phase.reason, selectedRun?.run) : null;
|
|
44327
44482
|
}
|
|
44328
44483
|
function buildEventRegistrationShellStepLabels(source, scopedSourceEvents) {
|
|
44329
44484
|
const selectedRun = resolveSelectedWholeSeriesRun(scopedSourceEvents);
|
|
@@ -56327,4 +56482,4 @@ function listBlockDescriptors() {
|
|
|
56327
56482
|
}));
|
|
56328
56483
|
}
|
|
56329
56484
|
//#endregion
|
|
56330
|
-
export { resolveCardListSchedule as $, gradientToCss as $a, chosenString as $i, parseTeamMemberSpecialties as $n, getDayOfWeek as $o, testimonialsHeadingFragment as $r, resolveExactOrFreePriceDisplay as $s, formatCalendarTitle as $t, membershipClassesLabel as A, arrangementStyleAvailability as Aa, resolveBlockIconRenderValue as Ai, planOrdinarySeriesSelection as An, resolveSectionBackground as Ao, blockDesignCapabilityMapFromDefinitions as Ar, sameMailingListPlacementTargeting as As, groupOfferingRunsByCourse as At, eventListingBlockDefinition as B, resolveModeArrangement as Ba, MinusIcon as Bi, getEventAvailability as Bn, blockSectionDeclarationShape as Bo, formatEventStartingPrice as Br, getBookingLocalDateKey as Bs, ThemedButtonLink as Bt, buildCartInteractiveIslandProps as C, readOpeningToneProjection as Ca, asPartialObject as Ci, bookingPageKindSchema as Cn, spaciousBoundaryOption as Co, lookListPresentationSchemaShape as Cr, nextLiveRunSessionStartMs as Cs, normalizeEventRegistrationPageSurfaceSubject as Ct, buildShopInteractiveIslandProps as D, headerRootPaint as Da, when as Di, getPublicEventCanonicalPath as Dn, applyLookPhotoTreatment as Do, clsx as Dr, parseMailingListRuntimeContext as Ds, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as Dt, buildProductListInteractiveIslandProps as E, headerRootIsTransparent as Ea, el as Ei, eventOccurrenceContext as En, transitionCatalogueEntries as Eo, Grid as Er, buildMailingListSignupBlockSourceRef as Es, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as Et, offeringsCatalogueShape as F, resolveLookForBlock as Fa, ClockIcon as Fi, selectionRepresentativeEvent as Fn, appearancePresets as Fo, formatCoursePrice as Fr, formatDateTimeRange as Fs, resolveOfferingsPreviewGroupCta as Ft, eventCollectionDisplaySchemaShape as G, filterLookIdsForPolicy as Ga, plainTextToInlineText as Gi, resolveFeatureCardGeneratedIconSizePx as Gn, parseRepeaterGridInteger as Go, cardFragment as Gr, toBookingTimeZone as Gs, eventListWeekDays as Gt, buildEventCollectionDisplay as H, buildInitialPolicyPageDesignIntent as Ha, inlineTextToPlainText as Hi, isEventFull as Hn, fieldSchema as Ho, getAnchorClasses as Hr, parseBookingLocalDate as Hs, getIconComponent as Ht, eventCalendarBlockDefinition as I, styleSectionBackgroundForColour as Ia, FileArchiveIcon as Ii, isBookableEvent as In, NodeSchema as Io, formatEventDepositNote as Ir, inferSiteDateLocale as Is, resolveOfferingsPreviewGroups as It, catalogueEventCardProps as J, getCuratedSiteStyle as Ja, parseFieldDefinitions as Ji, siteHeaderManifest as Jn, resolveRepeaterGridSpanFieldId as Jo, blogFeaturedPostFragment as Jr, formatBookingPriceDisplay as Js, weekColumnDays as Jt, eventCollectionHydrationSchema as K, componentRuntimeRulesForSiteStyle as Ka, normalizeSelectSource as Ki, shouldReserveFeatureCardIconZone as Kn, resolveRepeaterGridColumnFieldId as Ko, faqAccordionFragment as Kr, toUtcIsoDateTimeString as Ks, eventWeekGroupingContext as Kt, buildEventCalendarInteractiveIslandProps as L, arrangementManifestFromVariants as La, FileAudioIcon as Li, canJoinEventWaitlistOnAnyMode as Ln, bindingSchema as Lo, formatEventPrice as Lr, formatBookingCompactEnglishTime as Ls, resolveOfferingsRenderInput as Lt, offeringsPreviewBlockDefinition as M, compileArrangementLookRuntime as Ma, ChevronDownIcon as Mi, planWholeSeriesParentSelection as Mn, defaultHeroImageSurfaceTreatment as Mo, classPricesCopySchema as Mr, EVENT_ADDRESS_AFTER_BOOKING_LABEL as Ms, offeringRunLifecycle as Mt, publicRouteCandidatesSchema as N, getCompatibleBlockAppearancePresets as Na, CircleMinusIcon as Ni, planWholeSeriesRunSelection as Nn, stripStaleTransitionStyleGroup as No, classPricesDataSchema as Nr, formatDate$2 as Ns, offeringsListingFor as Nt, shopProductPresentation as O, arrangementAppearancePresets as Oa, buildGeneratedBlockIconRenderAssetLookupFromUnknown as Oi, isOrdinaryPublicEvent as On, deriveSectionGround as Oo, heroMorePhotoCount as Or, parseMailingListProviderScope as Os, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as Ot, buildOfferingsCatalogueListing as P, resolveArrangementLookForBlock as Pa, CirclePlusIcon as Pi, resolveSelectionBookingClosedDetail as Pn, themeV2CompilerOwnedFieldNames as Po, resolveClassPriceItems as Pr, formatDateRange as Ps, readOfferingsGrouping as Pt, cardListPresentationSchemaShape as Q, surfaceResolutionContextFromTheme as Qa, isRecord$5 as Qi, contentTransforms as Qn, formatDateKey as Qo, testimonialsCarouselFragment as Qr, publicEventPricingType as Qs, eventLocalDateKey as Qt, buildEventCalendarListingDisplay as R, readStoredMode as Ra, FileSpreadsheetIcon as Ri, formatEventRemainingPlaces as Rn, DEFAULT_MEDIA_FIELD_KINDS as Ro, formatEventPriceAmount as Rr, toScheduledBookingDateTime as Rs, ThemedAuthoredButton as Rt, shopBlockDefinition as S, effectiveHeaderNavLinkStyle as Sa, lookSkinSlotTransform as Si, closedRunCopy as Sn, softBoundaryOption as So, listLookSlot as Sr, CANCELLED_SESSION_STATUS as Ss, previewStageSchema as St, buildProductDetailInteractiveIslandProps as T, headerNeedsPhotoShade as Ta, runTransforms as Ti, hasCancelledRegistrationDate as Tn, anglePolygonCss as To, itemRole as Tr, resolveWholeSeriesBookingPhase as Ts, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as Tt, buildEventCollectionHydration as U, deriveSiteStyleBlockPolicy as Ua, isInlineTextEmpty as Ui, groupPublicEventsByRun as Un, validateManifestLookField as Uo, richTextFragment as Ur, parseLocalScheduleTime as Us, SpinnerNode as Ut, buildEventListingInteractiveIslandProps as V, resolvePublishedLook as Va, PlusIcon as Vi, getEventAvailabilityStatus as Vn, builtInBlockKindsSchema as Vo, BACKGROUND_POSITION_PRESET_VALUES as Vr, getLocalScheduleDate as Vs, ThemedDownloadLink as Vt, buildEventCollectionListingDisplay as W, filterLayoutProfilesForPolicy as Wa, parseInlineTextFromUnknown as Wi, FEATURE_CARD_ICON_TREATMENTS as Wn, isAcceptedRepeaterGridSpan as Wo, headingFragment as Wr, resolveBookingBusinessTimeZone as Ws, buildEventListWeek as Wt, CardListContentPart as X, compilePageRuntimeFields as Xa, augmentManifest as Xi, markEditableSurfaceForwarding as Xn, getLocalMinuteOfDay as Xo, formEmbedFragment as Xr, publicEventPricingCurrency as Xs, eventCalendarWeekStart as Xt, listingEventCardProps as Y, requireCuratedSiteStyle as Ya, PUBLIC_DOWNLOAD_MEDIA_TYPES as Yi, composeHeaderSectionWrapperClassName as Yn, getLocalDateKey as Yo, singleButtonFragment as Yr, isPublicEventPricingOptionDisplayable as Ys, buildCalendarViewport as Yt, CardListLeadDate as Z, stripCompiledRuntimeStyleFields as Za, isObjectRecord$1 as Zi, splitPositioningClasses as Zn, addDays as Zo, formCopyFragment as Zr, publicEventPricingDisplay as Zs, eventDateOptions as Zt, buildGiftingInteractiveIslandProps as _, lookPresentationOnPalette as _a, bodyCopyFragment as _i, eventPlaceName as _n, boundaryOptions as _o, createZodCodec as _r, loadedReadinessFact as _s, getContainerClass as _t, LOCATION_MAP_LOADER_KEYS as a, eventDiscoveryFilterKeys as aa, parseGradientPresetId as ac, boxStylesTransforms as ai, formatEventNextDateFact as an, generateNavLinkCSS as ao, headerRuntimeTransforms as ar, projectRecurringSchedule as as, computeMediaTransformStyle as at, productDetailBlockDefinition as b, parseListLook as ba, lookLeadSlotTransform as bi, blockSiteTermsSchema as bn, isDecorativeTransitionIntent as bo, listItemPresentation as br, isRecord$6 as bs, resolveEventRegistrationEventSource as bt, normalizeLocationMapSource as c, eventScopeQueryKeys as ca, resolveCardRoleForBoxStyles as ci, formatEventWeekdayTime as cn, resolveEffectPaint as co, staticHeaderChromeRuntime as cr, blockBookingConsentSchema as cs, resolveImageUrlWithContext as ct, newsletterSignupBlockDefinition as d, eventCalendarListGroupingDecision as da, parseRuntimeBackgroundContent as di, resolveEventTimeZone as dn, resolvePageDesignBlockLookChoice as do, formatDate$1 as dr, sanitizeHref as ds, systemCustomizeFacetDefinitionsForBlock as dt, blockChecksForEvents as ea, resolvePricingOptionsPriceDisplay as ec, ctaCopyFragment as ei, formatDate as en, getGradientPreset as eo, teamMemberBiography as er, getOrderedDayNames as es, selectCardListPresentation as et, sanitizeNewsletterSignupPublicContent as f, resolveEventCalendarReadPlan as fa, resolveSectionSurfaceForeground as fi, resolveRuntimeEventDestination as fn, resolvePageDesignBoundaryChoice as fo, formBlockDefinition as fr, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as fs, buildResolveImageUrlContext as ft, giftingBlockDefinition as g, resolveHeaderRootForeground as ga, isSemanticSpacing as gi, eventOnlinePlace as gn, boundaryOptionForTransitionIntent as go, defineInteractiveIslandMetaKeys as gr, hiddenFromVisitors as gs, getCardOrientation as gt, newsletterBlockSubmissionMessage as h, AFFORDANCE_SUPPRESS_CLASS as ha, ctaButton as hi, browserReadAuthoritySchema as hn, sectionShapeHook as ho, createInteractiveIslandCodec as hr, admitReadinessFacts as hs, EventQuickFacts as ht, systemBlockDefinitions as i, eventReadinessResultSchema as ia, unsafeAsEventCategoryId$1 as ic, heroCopyFragment as ii, formatEventHourLabel as in, buildTextContrastShadow as io, mediaTransforms as ir, isToday as is, MediaPlaceholder as it, passCardListContent as j, automaticArrangementLook as ja, ArrowDownIcon as ji, planWholeSeriesParentBooking as jn, sectionSurfaceBase as jo, resolveDeclaredBlockDesignCapability as jr, isCanonicalRichTextDoc as js, normalizeOfferingsPreviewItemLimit as jt, membershipCardListContent as k, arrangementLookHooks as ka, parseBlockIconValue as ki, planDropInPanel as kn, parseCanonicalRuntimeBackground as ko, morePhotosField as kr, parseMailingListPlacementTargeting as ks, buildOfferingsPreviewListing as kt, parseLocationMapLoaderResult as l, resolveEventScope as la, parseBackgroundContent as li, formatTime as ln, generateInteractiveChildInheritanceCSS as lo, uiTransforms as lr, bookingConsentCarrierSchema as ls, resolvePublicMediaUrl as lt, buildNewsletterFormInteractiveIslandProps as m, themeButtonSelector as ma, resolveBackgroundColorValue as mi, bookingPresentation as mn, sectionShapeFromContent as mo, buildInteractiveIslandProps as mr, calendarWindowQuerySchema as ms, setContextResolveImageUrlContext as mt, listBlockDescriptors as n, eventReadinessQuery as na, parseContentVersionId as nc, ctaRowFragment as ni, formatEventCompactDateRail as nn, generateDefaultCardSystem as no, readRuntimeNow as nr, getWeekCalendarDays as ns, RichText as nt, describeUnresolvedLocationMapLocation as o, eventScopeLoaderParam as oa, arrangementSlotNames as oc, boxStyleClassNames as oi, formatEventRunDates as on, generateEffectsCSS as oo, chromeLogoTransforms as or, publicEventsArraySchema as os, resolveImageSourceSetWithContext as ot, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as p, parseThemeButtonVariantId as pa, resolveSurfaceForegroundStyles as pi, formatBookingSchedulePresentation as pn, sectionShapeForGround as po, buildFormInteractiveIslandProps as pr, linkSchema as ps, getCurrentResolveImageUrlContext as pt, eventCollectionSourceSchemaShape as q, designRuntimeRulesForSiteStyle as qa, parseFieldDefinition as qi, siteFooterManifest as qn, resolveRepeaterGridRowFieldId as qo, faqHeadingFragment as qr, offeringLabelForPageSurfaceSubject as qs, groupEventsByWeek as qt, normalizeBlockContent as r, eventReadinessQueryKeys as ra, unsafeAsContentEntryId as rc, isBlockButtonRole as ri, formatEventDateParts as rn, generateFooterCss as ro, resolveDateRuntimeContext as rr, isSameCalendarDay as rs, ImagePresets as rt, normalizeLocationMapProps as s, eventScopeQuery as sa, TokenResolver as sc, normalizeBoxStylesBorder as si, formatEventTimeRange as sn, resolveEffectApplications as so, layoutTransforms as sr, blockBookingPaymentTermsSchema as ss, resolveImageUrl as st, getBlockDefinition as t, eventReadinessLoaderKey as ta, formatCurrencyAmount as tc, heroCtaRowFragment as ti, formatEventClockLabel as tn, resolveCardRole as to, teamMemberCardBiography as tr, getWeekCalendarDayTuple as ts, MediaNodeServer as tt, resolveLocationMapLocation as u, resolveCalendarReadProfile as ua, parseBackgroundOverlay as ui, groupEventsByDate as un, parsePageDesignIntent as uo, formattingTransforms as ur, beforeBookingQuestionsPresentationSchema as us, resolveArrangementKnobs as ut, checkoutBlockDefinition as v, resolveLookSurfacePresentation as va, defineFragment as vi, eventVenuePlace as vn, boundaryRuntimeMetricsForDecorativeTransition as vo, defineClientOwnedBlockRuntime as vr, pageTemplateFromEntry as vs, eventRegistrationBlockDefinition as vt, buildCheckoutInteractiveIslandProps as w, heroPhotoPaintsGround as wa, createTransformRegistry as wi, cancelledDateCopy as wn, transitionIntentForTreatment as wo, resolvedItemSurfaceProps as wr, orderedLiveRunSessions as ws, resolveEventRegistrationScopedEvents as wt, productListBlockDefinition as x, authoredHeaderLinkForeground as xa, lookQuoteLimitTransform as xi, pageNavigationSchema as xn, noneBoundaryOption as xo, listLookControl as xr, EVENT_PRESET_VALUES as xs, bookingNowSchema as xt, cartBlockDefinition as y, selectItemSurfacePresentation as ya, lookCarouselRegionTransform as yi, formatEventLocation as yn, boundaryTreatmentForBoundaryOptionId as yo, defineProgressiveBlockRuntime as yr, unavailableReadinessFact as ys, buildEventRegistrationInteractiveIslandProps as yt, combinedLookSchema as z, resolveEffectiveArrangement as za, FileTextIcon as zi, formatTotalCapacity as zn, blockCategoryEnum as zo, formatEventPriceDisplay as zr, compareLocalScheduleDates as zs, ThemedButton as zt };
|
|
56485
|
+
export { resolveCardListSchedule as $, compilePageRuntimeFields as $a, augmentManifest as $i, markEditableSurfaceForwarding as $n, getLocalMinuteOfDay as $o, formEmbedFragment as $r, publicEventPricingCurrency as $s, eventOnlinePlace as $t, membershipClassesLabel as A, headerRootPaint as Aa, when as Ai, isOrdinaryPublicEvent as An, applyLookPhotoTreatment as Ao, clsx as Ar, parseMailingListRuntimeContext as As, groupOfferingRunsByCourse as At, eventListingBlockDefinition as B, arrangementManifestFromVariants as Ba, FileAudioIcon as Bi, canJoinEventWaitlistOnAnyMode as Bn, bindingSchema as Bo, formatEventPrice as Br, formatBookingCompactEnglishTime as Bs, ThemedButtonLink as Bt, buildCartInteractiveIslandProps as C, parseListLook as Ca, lookLeadSlotTransform as Ci, groupEventsByDate as Cn, isDecorativeTransitionIntent as Co, listItemPresentation as Cr, isRecord$6 as Cs, normalizeEventRegistrationPageSurfaceSubject as Ct, buildShopInteractiveIslandProps as D, heroPhotoPaintsGround as Da, createTransformRegistry as Di, hasCancelledRegistrationDate as Dn, transitionIntentForTreatment as Do, resolvedItemSurfaceProps as Dr, orderedLiveRunSessions as Ds, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as Dt, buildProductListInteractiveIslandProps as E, readOpeningToneProjection as Ea, asPartialObject as Ei, cancelledDateCopy as En, spaciousBoundaryOption as Eo, lookListPresentationSchemaShape as Er, nextLiveRunSessionStartMs as Es, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as Et, offeringsCatalogueShape as F, compileArrangementLookRuntime as Fa, ChevronDownIcon as Fi, planWholeSeriesRunSelection as Fn, defaultHeroImageSurfaceTreatment as Fo, classPricesCopySchema as Fr, EVENT_ADDRESS_AFTER_BOOKING_LABEL as Fs, resolveOfferingsPreviewGroupCta as Ft, eventCollectionDisplaySchemaShape as G, buildInitialPolicyPageDesignIntent as Ga, inlineTextToPlainText as Gi, isEventFull as Gn, fieldSchema as Go, getAnchorClasses as Gr, parseBookingLocalDate as Gs, eventListWeekDays as Gt, buildEventCollectionDisplay as H, resolveEffectiveArrangement as Ha, FileTextIcon as Hi, formatTotalCapacity as Hn, blockCategoryEnum as Ho, formatEventPriceDisplay as Hr, compareLocalScheduleDates as Hs, getIconComponent as Ht, eventCalendarBlockDefinition as I, getCompatibleBlockAppearancePresets as Ia, CircleMinusIcon as Ii, resolveSelectionBookingClosedDetail as In, stripStaleTransitionStyleGroup as Io, classPricesDataSchema as Ir, formatDate$2 as Is, resolveOfferingsPreviewGroups as It, catalogueEventCardProps as J, filterLookIdsForPolicy as Ja, plainTextToInlineText as Ji, resolveFeatureCardGeneratedIconSizePx as Jn, parseRepeaterGridInteger as Jo, cardFragment as Jr, resolveBookingBusinessTimeZone as Js, weekColumnDays as Jt, eventCollectionHydrationSchema as K, deriveSiteStyleBlockPolicy as Ka, isInlineTextEmpty as Ki, groupPublicEventsByRun as Kn, validateManifestLookField as Ko, richTextFragment as Kr, parseLocalScheduleTime as Ks, eventWeekGroupingContext as Kt, buildEventCalendarInteractiveIslandProps as L, resolveArrangementLookForBlock as La, CirclePlusIcon as Li, selectionRepresentativeEvent as Ln, themeV2CompilerOwnedFieldNames as Lo, resolveClassPriceItems as Lr, formatDateRange as Ls, resolveOfferingsRenderInput as Lt, offeringsPreviewBlockDefinition as M, arrangementLookHooks as Ma, parseBlockIconValue as Mi, planOrdinarySeriesSelection as Mn, parseCanonicalRuntimeBackground as Mo, morePhotosField as Mr, parseMailingListPlacementTargeting as Ms, offeringRunLifecycle as Mt, publicRouteCandidatesSchema as N, arrangementStyleAvailability as Na, resolveBlockIconRenderValue as Ni, planWholeSeriesParentBooking as Nn, resolveSectionBackground as No, blockDesignCapabilityMapFromDefinitions as Nr, sameMailingListPlacementTargeting as Ns, offeringsListingFor as Nt, shopProductPresentation as O, headerNeedsPhotoShade as Oa, runTransforms as Oi, eventOccurrenceContext as On, anglePolygonCss as Oo, itemRole as Or, resolveWholeSeriesBookingPhase as Os, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as Ot, buildOfferingsCatalogueListing as P, automaticArrangementLook as Pa, ArrowDownIcon as Pi, planWholeSeriesParentSelection as Pn, sectionSurfaceBase as Po, resolveDeclaredBlockDesignCapability as Pr, isCanonicalRichTextDoc as Ps, readOfferingsGrouping as Pt, cardListPresentationSchemaShape as Q, requireCuratedSiteStyle as Qa, PUBLIC_DOWNLOAD_MEDIA_TYPES as Qi, composeHeaderSectionWrapperClassName as Qn, getLocalDateKey as Qo, singleButtonFragment as Qr, isPublicEventPricingOptionDisplayable as Qs, browserReadAuthoritySchema as Qt, buildEventCalendarListingDisplay as R, resolveLookForBlock as Ra, ClockIcon as Ri, hasEventBookingClosedEarly as Rn, appearancePresets as Ro, formatCoursePrice as Rr, formatDateTimeRange as Rs, ThemedAuthoredButton as Rt, shopBlockDefinition as S, selectItemSurfacePresentation as Sa, lookCarouselRegionTransform as Si, formatTime as Sn, boundaryTreatmentForBoundaryOptionId as So, defineProgressiveBlockRuntime as Sr, unavailableReadinessFact as Ss, previewStageSchema as St, buildProductDetailInteractiveIslandProps as T, effectiveHeaderNavLinkStyle as Ta, lookSkinSlotTransform as Ti, bookingPageKindSchema as Tn, softBoundaryOption as To, listLookSlot as Tr, CANCELLED_SESSION_STATUS as Ts, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as Tt, buildEventCollectionHydration as U, resolveModeArrangement as Ua, MinusIcon as Ui, getEventAvailability as Un, blockSectionDeclarationShape as Uo, formatEventStartingPrice as Ur, getBookingLocalDateKey as Us, SpinnerNode as Ut, buildEventListingInteractiveIslandProps as V, readStoredMode as Va, FileSpreadsheetIcon as Vi, formatEventRemainingPlaces as Vn, DEFAULT_MEDIA_FIELD_KINDS as Vo, formatEventPriceAmount as Vr, toScheduledBookingDateTime as Vs, ThemedDownloadLink as Vt, buildEventCollectionListingDisplay as W, resolvePublishedLook as Wa, PlusIcon as Wi, getEventAvailabilityStatus as Wn, builtInBlockKindsSchema as Wo, BACKGROUND_POSITION_PRESET_VALUES as Wr, getLocalScheduleDate as Ws, buildEventListWeek as Wt, CardListContentPart as X, designRuntimeRulesForSiteStyle as Xa, parseFieldDefinition as Xi, siteFooterManifest as Xn, resolveRepeaterGridRowFieldId as Xo, faqHeadingFragment as Xr, offeringLabelForPageSurfaceSubject as Xs, formatBookingSchedulePresentation as Xt, listingEventCardProps as Y, componentRuntimeRulesForSiteStyle as Ya, normalizeSelectSource as Yi, shouldReserveFeatureCardIconZone as Yn, resolveRepeaterGridColumnFieldId as Yo, faqAccordionFragment as Yr, toBookingTimeZone as Ys, resolveRuntimeEventDestination as Yt, CardListLeadDate as Z, getCuratedSiteStyle as Za, parseFieldDefinitions as Zi, siteHeaderManifest as Zn, resolveRepeaterGridSpanFieldId as Zo, blogFeaturedPostFragment as Zr, formatBookingPriceDisplay as Zs, bookingPresentation as Zt, buildGiftingInteractiveIslandProps as _, themeButtonSelector as _a, resolveBackgroundColorValue as _i, formatEventHourLabel as _n, sectionShapeFromContent as _o, buildInteractiveIslandProps as _r, calendarWindowQuerySchema as _s, getContainerClass as _t, LOCATION_MAP_LOADER_KEYS as a, eventReadinessQuery as aa, parseContentVersionId as ac, ctaRowFragment as ai, closedDatesCopy as an, generateDefaultCardSystem as ao, readRuntimeNow as ar, getWeekCalendarDays as as, computeMediaTransformStyle as at, productDetailBlockDefinition as b, lookPresentationOnPalette as ba, bodyCopyFragment as bi, formatEventTimeRange as bn, boundaryOptions as bo, createZodCodec as br, loadedReadinessFact as bs, resolveEventRegistrationEventSource as bt, normalizeLocationMapSource as c, eventDiscoveryFilterKeys as ca, parseGradientPresetId as cc, boxStylesTransforms as ci, buildCalendarViewport as cn, generateNavLinkCSS as co, headerRuntimeTransforms as cr, projectRecurringSchedule as cs, resolveImageUrlWithContext as ct, newsletterSignupBlockDefinition as d, eventScopeQueryKeys as da, resolveCardRoleForBoxStyles as di, eventLocalDateKey as dn, resolveEffectPaint as do, staticHeaderChromeRuntime as dr, blockBookingConsentSchema as ds, systemCustomizeFacetDefinitionsForBlock as dt, isObjectRecord$1 as ea, publicEventPricingDisplay as ec, formCopyFragment as ei, eventPlaceName as en, stripCompiledRuntimeStyleFields as eo, splitPositioningClasses as er, addDays as es, selectCardListPresentation as et, sanitizeNewsletterSignupPublicContent as f, resolveEventScope as fa, parseBackgroundContent as fi, formatCalendarTitle as fn, generateInteractiveChildInheritanceCSS as fo, uiTransforms as fr, bookingConsentCarrierSchema as fs, buildResolveImageUrlContext as ft, giftingBlockDefinition as g, parseThemeButtonVariantId as ga, resolveSurfaceForegroundStyles as gi, formatEventDateParts as gn, sectionShapeForGround as go, buildFormInteractiveIslandProps as gr, linkSchema as gs, getCardOrientation as gt, newsletterBlockSubmissionMessage as h, resolveEventCalendarReadPlan as ha, resolveSectionSurfaceForeground as hi, formatEventCompactDateRail as hn, resolvePageDesignBoundaryChoice as ho, formBlockDefinition as hr, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as hs, EventQuickFacts as ht, systemBlockDefinitions as i, eventReadinessLoaderKey as ia, formatCurrencyAmount as ic, heroCtaRowFragment as ii, pageNavigationSchema as in, resolveCardRole as io, teamMemberCardBiography as ir, getWeekCalendarDayTuple as is, MediaPlaceholder as it, passCardListContent as j, arrangementAppearancePresets as ja, buildGeneratedBlockIconRenderAssetLookupFromUnknown as ji, planDropInPanel as jn, deriveSectionGround as jo, heroMorePhotoCount as jr, parseMailingListProviderScope as js, normalizeOfferingsPreviewItemLimit as jt, membershipCardListContent as k, headerRootIsTransparent as ka, el as ki, getPublicEventCanonicalPath as kn, transitionCatalogueEntries as ko, Grid as kr, buildMailingListSignupBlockSourceRef as ks, buildOfferingsPreviewListing as kt, parseLocationMapLoaderResult as l, eventScopeLoaderParam as la, arrangementSlotNames as lc, boxStyleClassNames as li, eventCalendarWeekStart as ln, generateEffectsCSS as lo, chromeLogoTransforms as lr, publicEventsArraySchema as ls, resolvePublicMediaUrl as lt, buildNewsletterFormInteractiveIslandProps as m, eventCalendarListGroupingDecision as ma, parseRuntimeBackgroundContent as mi, formatEventClockLabel as mn, resolvePageDesignBlockLookChoice as mo, formatDate$1 as mr, sanitizeHref as ms, setContextResolveImageUrlContext as mt, listBlockDescriptors as n, chosenString as na, resolveExactOrFreePriceDisplay as nc, testimonialsHeadingFragment as ni, formatEventLocation as nn, gradientToCss as no, parseTeamMemberSpecialties as nr, getDayOfWeek as ns, RichText as nt, describeUnresolvedLocationMapLocation as o, eventReadinessQueryKeys as oa, unsafeAsContentEntryId as oc, isBlockButtonRole as oi, closedRunCopy as on, generateFooterCss as oo, resolveDateRuntimeContext as or, isSameCalendarDay as os, resolveImageSourceSetWithContext as ot, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as p, resolveCalendarReadProfile as pa, parseBackgroundOverlay as pi, formatDate as pn, parsePageDesignIntent as po, formattingTransforms as pr, beforeBookingQuestionsPresentationSchema as ps, getCurrentResolveImageUrlContext as pt, eventCollectionSourceSchemaShape as q, filterLayoutProfilesForPolicy as qa, parseInlineTextFromUnknown as qi, FEATURE_CARD_ICON_TREATMENTS as qn, isAcceptedRepeaterGridSpan as qo, headingFragment as qr, toUtcIsoDateTimeString as qs, groupEventsByWeek as qt, normalizeBlockContent as r, blockChecksForEvents as ra, resolvePricingOptionsPriceDisplay as rc, ctaCopyFragment as ri, blockSiteTermsSchema as rn, getGradientPreset as ro, teamMemberBiography as rr, getOrderedDayNames as rs, ImagePresets as rt, normalizeLocationMapProps as s, eventReadinessResultSchema as sa, unsafeAsEventCategoryId$1 as sc, heroCopyFragment as si, closedDateCopy as sn, buildTextContrastShadow as so, mediaTransforms as sr, isToday as ss, resolveImageUrl as st, getBlockDefinition as t, isRecord$5 as ta, publicEventPricingType as tc, testimonialsCarouselFragment as ti, eventVenuePlace as tn, surfaceResolutionContextFromTheme as to, contentTransforms as tr, formatDateKey as ts, MediaNodeServer as tt, resolveLocationMapLocation as u, eventScopeQuery as ua, TokenResolver as uc, normalizeBoxStylesBorder as ui, eventDateOptions as un, resolveEffectApplications as uo, layoutTransforms as ur, blockBookingPaymentTermsSchema as us, resolveArrangementKnobs as ut, checkoutBlockDefinition as v, AFFORDANCE_SUPPRESS_CLASS as va, ctaButton as vi, formatEventNextDateFact as vn, sectionShapeHook as vo, createInteractiveIslandCodec as vr, admitReadinessFacts as vs, eventRegistrationBlockDefinition as vt, buildCheckoutInteractiveIslandProps as w, authoredHeaderLinkForeground as wa, lookQuoteLimitTransform as wi, resolveEventTimeZone as wn, noneBoundaryOption as wo, listLookControl as wr, EVENT_PRESET_VALUES as ws, resolveEventRegistrationScopedEvents as wt, productListBlockDefinition as x, resolveLookSurfacePresentation as xa, defineFragment as xi, formatEventWeekdayTime as xn, boundaryRuntimeMetricsForDecorativeTransition as xo, defineClientOwnedBlockRuntime as xr, pageTemplateFromEntry as xs, bookingNowSchema as xt, cartBlockDefinition as y, resolveHeaderRootForeground as ya, isSemanticSpacing as yi, formatEventRunDates as yn, boundaryOptionForTransitionIntent as yo, defineInteractiveIslandMetaKeys as yr, hiddenFromVisitors as ys, buildEventRegistrationInteractiveIslandProps as yt, combinedLookSchema as z, styleSectionBackgroundForColour as za, FileArchiveIcon as zi, isBookableEvent as zn, NodeSchema as zo, formatEventDepositNote as zr, inferSiteDateLocale as zs, ThemedButton as zt };
|