@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { n as useOptionalPreviewLayout } from "./PreviewLayoutContext-Dy0LwcHc.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { At as stableJsonStringify, Bt as toLocationCoordinates, Ft as locationValueSchema, Gt as err$1, Ht as capitalize$1, It as normalizeLocationAddressText, Kt as ok$2, Lt as parseLocationValue, Rt as projectPublicLocation, T as Minus, Tt as decideLocationSave, Ut as trimmedStringOrNull, Wt as mapDrawingSchema, at as CirclePlus, bt as ArrowDown, dt as ChevronLeft, ft as ChevronDown, n as X, ot as CircleMinus, u as Sparkles, ut as ChevronRight, v as Plus, zt as publicLocationSchema } from "./lucide-react-McYZeSMb.mjs";
|
|
4
4
|
import { $ as ICON_PICKER_PRESETS, A as buttonSizeNameSchema, B as blockColorTokenNames, C as MinusIcon, D as AFFORDANCE_SUPPRESS_CLASS, E as themeButtonSelector, F as buttonSystemSchema, G as paletteColorsFromEntries, H as isThemeColorToken, I as buttonVisualStatesSchema, K as paletteColorsSchema, L as opaqueButtonColourTokenSchema, M as unsafeAsOpaqueButtonColourToken, N as buttonEffectApplicationSchema, O as DEFAULT_VARIANT_ALIAS_ID, P as buttonPressOffsetSchema, Q as themeColorTokenSchema, R as parseOpaqueButtonColourToken, S as FileTextIcon, T as parseThemeButtonVariantId, U as normalizePaletteHex, V as hexColorSchema, W as paletteColorEntries, X as parseThemeColorToken, Y as parseColorTokenParts, Z as themeColorShadeSteps, _ as ClockIcon$1, a as ThemedDownloadLink, b as FileAudioIcon, d as SEMANTIC_ICON_DEFINITIONS, et as SYSTEM_BLOCK_KINDS, f as isSemanticIconId, g as CirclePlusIcon, h as CircleMinusIcon, j as createStandardButtonSurfacePolicy, k as STANDARD_BUTTON_SURFACE_POLICY, m as ChevronDownIcon, n as ThemedButton, nt as SpinnerNode, o as getIconComponent, p as ArrowDownIcon, q as paletteModeSchema, r as ThemedButtonLink, rt as clsx, t as ThemedAuthoredButton, tt as VARIANT_ROLES, v as ExternalLinkIcon, w as PlusIcon, x as FileSpreadsheetIcon, y as FileArchiveIcon, z as PALETTE_TOKEN_NAMES } from "./ThemedButton-CVYz7h68.mjs";
|
|
5
|
-
import { a as buildTimetableModel$1, b as shiftCalendarAnchorDate, c as addDays, f as formatDateKey$1, g as getWeekCalendarDayTuple, h as getOrderedDayNames, i as groupItemsByDate, l as addMonths, p as getDayOfWeek, r as calendarLinks, u as buildCalendarViewport$1, v as isSameCalendarDay, y as isToday } from "./src-
|
|
5
|
+
import { a as buildTimetableModel$1, b as shiftCalendarAnchorDate, c as addDays, f as formatDateKey$1, g as getWeekCalendarDayTuple, h as getOrderedDayNames, i as groupItemsByDate, l as addMonths, p as getDayOfWeek, r as calendarLinks, u as buildCalendarViewport$1, v as isSameCalendarDay, y as isToday } from "./src-lX6heoDA.mjs";
|
|
6
6
|
import * as React$1 from "react";
|
|
7
7
|
import React, { Suspense, createContext, createElement, forwardRef, lazy, startTransition, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore, useTransition } from "react";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -570,128 +570,6 @@ function servicePageDestination(value) {
|
|
|
570
570
|
return mode === "cms-managed" || mode === "system-managed" ? { serviceDestinationMode: mode } : {};
|
|
571
571
|
}
|
|
572
572
|
//#endregion
|
|
573
|
-
//#region ../core/src/ticket-quantity.ts
|
|
574
|
-
function toPositiveTicketQuantity(value) {
|
|
575
|
-
if (!Number.isFinite(value) || !Number.isInteger(value) || value <= 0) return err$1("invalid_quantity");
|
|
576
|
-
return ok$2(value);
|
|
577
|
-
}
|
|
578
|
-
/**
|
|
579
|
-
* The places a booking holds: the sum of its ticket lines' quantities. The one
|
|
580
|
-
* derivation for selections, persisted lines and a booking outcome's lines;
|
|
581
|
-
* null when the total is not a positive whole number.
|
|
582
|
-
*/
|
|
583
|
-
function deriveTotalTicketQuantity(lines) {
|
|
584
|
-
const parsed = toPositiveTicketQuantity(lines.reduce((sum, line) => sum + line.quantity, 0));
|
|
585
|
-
return parsed.ok ? parsed.value : null;
|
|
586
|
-
}
|
|
587
|
-
//#endregion
|
|
588
|
-
//#region ../core/src/booking-flexible-balance.ts
|
|
589
|
-
function clampFlexibleBalanceConfiguredAmount(amountCents, totalAmountCents) {
|
|
590
|
-
return Math.max(0, Math.min(amountCents, totalAmountCents));
|
|
591
|
-
}
|
|
592
|
-
function resolveFlexibleBalanceInitialPaymentCents(input) {
|
|
593
|
-
return clampFlexibleBalanceConfiguredAmount(input.config.upfrontAmountCents, input.totalAmountCents);
|
|
594
|
-
}
|
|
595
|
-
//#endregion
|
|
596
|
-
//#region ../core/src/booking-instalments.ts
|
|
597
|
-
function isDepositBearingBookingInstalmentPlan(plan) {
|
|
598
|
-
switch (plan.kind) {
|
|
599
|
-
case "deposit_plus_one_remainder":
|
|
600
|
-
case "deposit_plus_scheduled_instalments": return true;
|
|
601
|
-
case "equal_scheduled_instalments": return false;
|
|
602
|
-
default: return assertNever$8(plan);
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
function getBookingInstalmentDepositRefundability(plan) {
|
|
606
|
-
return isDepositBearingBookingInstalmentPlan(plan) ? plan.depositRefundability : null;
|
|
607
|
-
}
|
|
608
|
-
function getBookingInstalmentProtectedDepositAmountCents(plan) {
|
|
609
|
-
return isDepositBearingBookingInstalmentPlan(plan) ? plan.depositAmountCents : null;
|
|
610
|
-
}
|
|
611
|
-
function clampConfiguredAmount(amountCents, totalAmountCents) {
|
|
612
|
-
return Math.max(0, Math.min(amountCents, totalAmountCents));
|
|
613
|
-
}
|
|
614
|
-
function splitAmountWithRemainderInFirst(totalAmountCents, partCount) {
|
|
615
|
-
if (partCount <= 0) return [];
|
|
616
|
-
const baseAmountCents = Math.floor(totalAmountCents / partCount);
|
|
617
|
-
const remainderCents = totalAmountCents - baseAmountCents * partCount;
|
|
618
|
-
return Array.from({ length: partCount }, (_, index) => index === 0 ? baseAmountCents + remainderCents : baseAmountCents);
|
|
619
|
-
}
|
|
620
|
-
function addIntervalPreservingMonthAnchor(isoString, intervalCount, intervalUnit) {
|
|
621
|
-
const date = new Date(isoString);
|
|
622
|
-
if (!Number.isFinite(date.getTime())) return isoString;
|
|
623
|
-
switch (intervalUnit) {
|
|
624
|
-
case "day":
|
|
625
|
-
date.setUTCDate(date.getUTCDate() + intervalCount);
|
|
626
|
-
return date.toISOString();
|
|
627
|
-
case "week":
|
|
628
|
-
date.setUTCDate(date.getUTCDate() + intervalCount * 7);
|
|
629
|
-
return date.toISOString();
|
|
630
|
-
case "month": return addMonthsPreservingAnchorDay(date, intervalCount).toISOString();
|
|
631
|
-
default: return assertNever$8(intervalUnit);
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
function getBookingInstalmentPlanIntervalCount(plan) {
|
|
635
|
-
switch (plan.kind) {
|
|
636
|
-
case "deposit_plus_one_remainder": return plan.remainderDueCount;
|
|
637
|
-
case "deposit_plus_scheduled_instalments":
|
|
638
|
-
case "equal_scheduled_instalments": return plan.intervalCount;
|
|
639
|
-
default: return assertNever$8(plan);
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
function omitZeroAmountFutureRows(rows) {
|
|
643
|
-
if (rows.length <= 1) return rows;
|
|
644
|
-
const firstRow = rows[0];
|
|
645
|
-
if (firstRow === void 0) return [];
|
|
646
|
-
return [firstRow, ...rows.slice(1).filter((row) => row.amountCents > 0)];
|
|
647
|
-
}
|
|
648
|
-
function addMonthsPreservingAnchorDay(date, intervalCount) {
|
|
649
|
-
const anchorDay = date.getUTCDate();
|
|
650
|
-
const nextMonth = new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth() + intervalCount, 1, date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds()));
|
|
651
|
-
const lastDayOfTargetMonth = new Date(Date.UTC(nextMonth.getUTCFullYear(), nextMonth.getUTCMonth() + 1, 0)).getUTCDate();
|
|
652
|
-
nextMonth.setUTCDate(Math.min(anchorDay, lastDayOfTargetMonth));
|
|
653
|
-
return nextMonth;
|
|
654
|
-
}
|
|
655
|
-
function assertNever$8(value) {
|
|
656
|
-
throw new Error(`Unexpected value: ${String(value)}`);
|
|
657
|
-
}
|
|
658
|
-
//#endregion
|
|
659
|
-
//#region ../core/src/booking-payment-options.ts
|
|
660
|
-
/**
|
|
661
|
-
* One way a customer may pay for a booking. This is the single definition of
|
|
662
|
-
* the option type; `booking-payment-schemas.typetest.ts` keeps it equal to the
|
|
663
|
-
* schema's output in both directions.
|
|
664
|
-
*/
|
|
665
|
-
/** When a course's instalments must all be paid by: before its first or its last live session. */
|
|
666
|
-
const BOOKING_COURSE_INSTALMENT_DEADLINES = ["first_session", "last_session"];
|
|
667
|
-
/** Automatic instalments and a flexible balance cannot share one booking offer. */
|
|
668
|
-
function validateBookingPaymentOptionKinds(kinds) {
|
|
669
|
-
if (kinds.length === 0) return err$1("no_options");
|
|
670
|
-
const uniqueKinds = new Set(kinds);
|
|
671
|
-
if (uniqueKinds.size !== kinds.length) return err$1("duplicate_kind");
|
|
672
|
-
if (uniqueKinds.has("instalment_plan") && uniqueKinds.has("flexible_balance")) return err$1("incompatible_collection_options");
|
|
673
|
-
return ok$2(void 0);
|
|
674
|
-
}
|
|
675
|
-
//#endregion
|
|
676
|
-
//#region ../core/src/booking-date-time/instant.ts
|
|
677
|
-
function parseUtcIsoDateTimeString(value) {
|
|
678
|
-
const normalized = value.trim();
|
|
679
|
-
const hasUtcSuffix = normalized.endsWith("Z");
|
|
680
|
-
const hasExplicitOffset = /[+-]\d{2}:\d{2}$/u.test(normalized);
|
|
681
|
-
if (!hasUtcSuffix && !hasExplicitOffset) return err$1("missing-timezone-offset");
|
|
682
|
-
const date = new Date(normalized);
|
|
683
|
-
if (Number.isNaN(date.getTime())) return err$1("invalid-date-time");
|
|
684
|
-
return ok$2(date.toISOString());
|
|
685
|
-
}
|
|
686
|
-
function toUtcIsoDateTimeString(value) {
|
|
687
|
-
const parsed = parseUtcIsoDateTimeString(value);
|
|
688
|
-
if (!parsed.ok) {
|
|
689
|
-
const message = parsed.error === "missing-timezone-offset" ? `Expected an offset-aware ISO datetime, received "${value}"` : `Expected a valid ISO datetime, received "${value}"`;
|
|
690
|
-
throw new Error(message);
|
|
691
|
-
}
|
|
692
|
-
return parsed.value;
|
|
693
|
-
}
|
|
694
|
-
//#endregion
|
|
695
573
|
//#region ../core/src/date-time-formatter.ts
|
|
696
574
|
/** Shared Intl engine, internal to core's date presentation owners. */
|
|
697
575
|
const FORMATTER_CACHE_LIMIT = 100;
|
|
@@ -777,6 +655,25 @@ function resolveBookingBusinessTimeZone(value) {
|
|
|
777
655
|
return resolveBookingTimeZoneId(value, DEFAULT_BOOKING_BUSINESS_TIME_ZONE);
|
|
778
656
|
}
|
|
779
657
|
//#endregion
|
|
658
|
+
//#region ../core/src/booking-date-time/instant.ts
|
|
659
|
+
function parseUtcIsoDateTimeString(value) {
|
|
660
|
+
const normalized = value.trim();
|
|
661
|
+
const hasUtcSuffix = normalized.endsWith("Z");
|
|
662
|
+
const hasExplicitOffset = /[+-]\d{2}:\d{2}$/u.test(normalized);
|
|
663
|
+
if (!hasUtcSuffix && !hasExplicitOffset) return err$1("missing-timezone-offset");
|
|
664
|
+
const date = new Date(normalized);
|
|
665
|
+
if (Number.isNaN(date.getTime())) return err$1("invalid-date-time");
|
|
666
|
+
return ok$2(date.toISOString());
|
|
667
|
+
}
|
|
668
|
+
function toUtcIsoDateTimeString(value) {
|
|
669
|
+
const parsed = parseUtcIsoDateTimeString(value);
|
|
670
|
+
if (!parsed.ok) {
|
|
671
|
+
const message = parsed.error === "missing-timezone-offset" ? `Expected an offset-aware ISO datetime, received "${value}"` : `Expected a valid ISO datetime, received "${value}"`;
|
|
672
|
+
throw new Error(message);
|
|
673
|
+
}
|
|
674
|
+
return parsed.value;
|
|
675
|
+
}
|
|
676
|
+
//#endregion
|
|
780
677
|
//#region ../core/src/booking-date-time/local.ts
|
|
781
678
|
const LOCAL_DATE_PATTERN = /^(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})$/u;
|
|
782
679
|
function getZonedDateTimeParts(date, timeZone) {
|
|
@@ -865,59 +762,6 @@ function resolveLocalInstant(targetLocalMs, timeZone, guess, seen) {
|
|
|
865
762
|
return resolveLocalInstant(targetLocalMs, timeZone, nextGuess, [...seen, guess]);
|
|
866
763
|
}
|
|
867
764
|
//#endregion
|
|
868
|
-
//#region ../core/src/booking-date-time/window.ts
|
|
869
|
-
const START_OF_DAY = {
|
|
870
|
-
hour: 0,
|
|
871
|
-
minute: 0,
|
|
872
|
-
second: 0
|
|
873
|
-
};
|
|
874
|
-
function parseWindowDate(value, field) {
|
|
875
|
-
try {
|
|
876
|
-
return {
|
|
877
|
-
ok: true,
|
|
878
|
-
value: parseBookingLocalDate(value)
|
|
879
|
-
};
|
|
880
|
-
} catch {
|
|
881
|
-
return {
|
|
882
|
-
ok: false,
|
|
883
|
-
field,
|
|
884
|
-
reason: "invalid_date_format",
|
|
885
|
-
value
|
|
886
|
-
};
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
function parseBookingUtcDateWindow(input) {
|
|
890
|
-
const timeZone = resolveBookingTimeZoneId(input.timeZone);
|
|
891
|
-
const start = parseWindowDate(input.startDate, "startDate");
|
|
892
|
-
if (!start.ok) return start;
|
|
893
|
-
const end = parseWindowDate(input.endDate, "endDate");
|
|
894
|
-
if (!end.ok) return end;
|
|
895
|
-
const startLocalDate = start.value;
|
|
896
|
-
const endLocalDate = end.value;
|
|
897
|
-
if (compareLocalScheduleDates(startLocalDate, endLocalDate) > 0) return {
|
|
898
|
-
ok: false,
|
|
899
|
-
field: "endDate",
|
|
900
|
-
reason: "invalid_date_range",
|
|
901
|
-
value: input.endDate
|
|
902
|
-
};
|
|
903
|
-
return {
|
|
904
|
-
ok: true,
|
|
905
|
-
value: {
|
|
906
|
-
timeZone,
|
|
907
|
-
startLocalDate,
|
|
908
|
-
endLocalDate,
|
|
909
|
-
startAt: localScheduleDateTimeToUtcDate(startLocalDate, START_OF_DAY, timeZone),
|
|
910
|
-
endExclusive: localScheduleDateTimeToUtcDate(addLocalScheduleDays(endLocalDate, 1), START_OF_DAY, timeZone)
|
|
911
|
-
}
|
|
912
|
-
};
|
|
913
|
-
}
|
|
914
|
-
function buildBookingUtcDateWindow(input) {
|
|
915
|
-
const result = parseBookingUtcDateWindow(input);
|
|
916
|
-
if (result.ok) return result.value;
|
|
917
|
-
if (result.reason === "invalid_date_range") throw new Error(`Invalid booking date range: startDate "${input.startDate}" must be on or before endDate "${input.endDate}"`);
|
|
918
|
-
throw new Error(`Invalid booking date format: "${result.value}" (expected YYYY-MM-DD)`);
|
|
919
|
-
}
|
|
920
|
-
//#endregion
|
|
921
765
|
//#region ../core/src/booking-date-time/scheduled.ts
|
|
922
766
|
function parseStrictBookingTimeZone(timeZone) {
|
|
923
767
|
const parsed = parseBookingTimeZone(timeZone);
|
|
@@ -1020,6 +864,31 @@ function resolveBookingDisplayContext(input) {
|
|
|
1020
864
|
zone: input.surface !== "dashboard" && input.isOnline || input.sessionTimeZone !== input.siteTimeZone ? "always" : "omit"
|
|
1021
865
|
};
|
|
1022
866
|
}
|
|
867
|
+
/** Dashboard and assistant site dates read in British English, whatever the site's own language. */
|
|
868
|
+
const SITE_DISPLAY_LOCALE = "en-GB";
|
|
869
|
+
/** The site display policy: `en-GB` in the given zone, falling back to the business zone the server uses. */
|
|
870
|
+
function siteDisplayContext(timeZone) {
|
|
871
|
+
return {
|
|
872
|
+
locale: SITE_DISPLAY_LOCALE,
|
|
873
|
+
timeZone: resolveBookingBusinessTimeZone(timeZone)
|
|
874
|
+
};
|
|
875
|
+
}
|
|
876
|
+
/** A stored instant as a site date, `22 Sept 2026` by default; an unparseable value is shown as it came. */
|
|
877
|
+
function formatSiteInstantDate(iso, timeZone, options = {}) {
|
|
878
|
+
const parsed = parseUtcIsoDateTimeString(iso);
|
|
879
|
+
return parsed.ok ? formatDate$4({
|
|
880
|
+
kind: "instant",
|
|
881
|
+
value: parsed.value
|
|
882
|
+
}, siteDisplayContext(timeZone), {
|
|
883
|
+
date: "short",
|
|
884
|
+
...options
|
|
885
|
+
}) : iso;
|
|
886
|
+
}
|
|
887
|
+
/** A stored instant as a site time, `2:05pm` without a zone label by default; an unparseable value is shown as it came. */
|
|
888
|
+
function formatSiteInstantTime(iso, timeZone, options = { zone: "omit" }) {
|
|
889
|
+
const parsed = parseUtcIsoDateTimeString(iso);
|
|
890
|
+
return parsed.ok ? formatTime$3(parsed.value, siteDisplayContext(timeZone), options) : iso;
|
|
891
|
+
}
|
|
1023
892
|
function formatDate$4(value, context, options = {}) {
|
|
1024
893
|
return presentDate(value, context, displayProfile(options, "omit"));
|
|
1025
894
|
}
|
|
@@ -1224,6 +1093,199 @@ function assertOrdered(start, end) {
|
|
|
1224
1093
|
function formatTimeZoneCityLabel(timeZone) {
|
|
1225
1094
|
return timeZone.startsWith("Etc/") ? "local time" : `${timeZone.split("/").slice(-1)[0]?.replace(/_/gu, " ") ?? timeZone} time`;
|
|
1226
1095
|
}
|
|
1096
|
+
const MS_PER_HOUR = 36e5;
|
|
1097
|
+
const MS_PER_WEEK = 168 * MS_PER_HOUR;
|
|
1098
|
+
/** The instant bookings stop for something starting at `startsAt`. */
|
|
1099
|
+
function bookingClosesAt(startsAt, cutOffHours) {
|
|
1100
|
+
return (/* @__PURE__ */ new Date(Date.parse(startsAt) - cutOffHours * MS_PER_HOUR)).toISOString();
|
|
1101
|
+
}
|
|
1102
|
+
/** Closing is inclusive, matching the gate: at the exact instant it has closed. */
|
|
1103
|
+
function hasBookingClosed(closesAt, now) {
|
|
1104
|
+
return Date.parse(closesAt) <= now.getTime();
|
|
1105
|
+
}
|
|
1106
|
+
/** The whole hours between closing and the start, for "2 hours before the start". */
|
|
1107
|
+
function bookingCutOffHoursBetween(startsAt, closesAt) {
|
|
1108
|
+
return Math.round((Date.parse(startsAt) - Date.parse(closesAt)) / MS_PER_HOUR);
|
|
1109
|
+
}
|
|
1110
|
+
/**
|
|
1111
|
+
* When bookings closed, in the event's own time zone: "5pm" on the day it starts,
|
|
1112
|
+
* "7pm on Tuesday" earlier in the week, and with the date if it's further back
|
|
1113
|
+
* than that, when a weekday alone could mean the wrong one.
|
|
1114
|
+
*/
|
|
1115
|
+
function formatBookingClosedTime(closesAt, startsAt, timeZone) {
|
|
1116
|
+
const time = formatSiteInstantTime(closesAt, timeZone);
|
|
1117
|
+
const dayOf = (iso) => formatSiteInstantDate(iso, timeZone);
|
|
1118
|
+
if (dayOf(closesAt) === dayOf(startsAt)) return time;
|
|
1119
|
+
return `${time} on ${formatSiteInstantDate(closesAt, timeZone, Date.parse(startsAt) - Date.parse(closesAt) >= MS_PER_WEEK ? {
|
|
1120
|
+
date: "long",
|
|
1121
|
+
weekday: "long",
|
|
1122
|
+
year: "omit"
|
|
1123
|
+
} : {
|
|
1124
|
+
date: "omit",
|
|
1125
|
+
weekday: "long",
|
|
1126
|
+
year: "omit"
|
|
1127
|
+
})}`;
|
|
1128
|
+
}
|
|
1129
|
+
/** "1 hour" or "24 hours". */
|
|
1130
|
+
function formatBookingCutOffHours(hours) {
|
|
1131
|
+
return hours === 1 ? "1 hour" : `${hours} hours`;
|
|
1132
|
+
}
|
|
1133
|
+
//#endregion
|
|
1134
|
+
//#region ../core/src/ticket-quantity.ts
|
|
1135
|
+
function toPositiveTicketQuantity(value) {
|
|
1136
|
+
if (!Number.isFinite(value) || !Number.isInteger(value) || value <= 0) return err$1("invalid_quantity");
|
|
1137
|
+
return ok$2(value);
|
|
1138
|
+
}
|
|
1139
|
+
/**
|
|
1140
|
+
* The places a booking holds: the sum of its ticket lines' quantities. The one
|
|
1141
|
+
* derivation for selections, persisted lines and a booking outcome's lines;
|
|
1142
|
+
* null when the total is not a positive whole number.
|
|
1143
|
+
*/
|
|
1144
|
+
function deriveTotalTicketQuantity(lines) {
|
|
1145
|
+
const parsed = toPositiveTicketQuantity(lines.reduce((sum, line) => sum + line.quantity, 0));
|
|
1146
|
+
return parsed.ok ? parsed.value : null;
|
|
1147
|
+
}
|
|
1148
|
+
//#endregion
|
|
1149
|
+
//#region ../core/src/booking-flexible-balance.ts
|
|
1150
|
+
function clampFlexibleBalanceConfiguredAmount(amountCents, totalAmountCents) {
|
|
1151
|
+
return Math.max(0, Math.min(amountCents, totalAmountCents));
|
|
1152
|
+
}
|
|
1153
|
+
function resolveFlexibleBalanceInitialPaymentCents(input) {
|
|
1154
|
+
return clampFlexibleBalanceConfiguredAmount(input.config.upfrontAmountCents, input.totalAmountCents);
|
|
1155
|
+
}
|
|
1156
|
+
//#endregion
|
|
1157
|
+
//#region ../core/src/booking-instalments.ts
|
|
1158
|
+
function isDepositBearingBookingInstalmentPlan(plan) {
|
|
1159
|
+
switch (plan.kind) {
|
|
1160
|
+
case "deposit_plus_one_remainder":
|
|
1161
|
+
case "deposit_plus_scheduled_instalments": return true;
|
|
1162
|
+
case "equal_scheduled_instalments": return false;
|
|
1163
|
+
default: return assertNever$8(plan);
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
function getBookingInstalmentDepositRefundability(plan) {
|
|
1167
|
+
return isDepositBearingBookingInstalmentPlan(plan) ? plan.depositRefundability : null;
|
|
1168
|
+
}
|
|
1169
|
+
function getBookingInstalmentProtectedDepositAmountCents(plan) {
|
|
1170
|
+
return isDepositBearingBookingInstalmentPlan(plan) ? plan.depositAmountCents : null;
|
|
1171
|
+
}
|
|
1172
|
+
function clampConfiguredAmount(amountCents, totalAmountCents) {
|
|
1173
|
+
return Math.max(0, Math.min(amountCents, totalAmountCents));
|
|
1174
|
+
}
|
|
1175
|
+
function splitAmountWithRemainderInFirst(totalAmountCents, partCount) {
|
|
1176
|
+
if (partCount <= 0) return [];
|
|
1177
|
+
const baseAmountCents = Math.floor(totalAmountCents / partCount);
|
|
1178
|
+
const remainderCents = totalAmountCents - baseAmountCents * partCount;
|
|
1179
|
+
return Array.from({ length: partCount }, (_, index) => index === 0 ? baseAmountCents + remainderCents : baseAmountCents);
|
|
1180
|
+
}
|
|
1181
|
+
function addIntervalPreservingMonthAnchor(isoString, intervalCount, intervalUnit) {
|
|
1182
|
+
const date = new Date(isoString);
|
|
1183
|
+
if (!Number.isFinite(date.getTime())) return isoString;
|
|
1184
|
+
switch (intervalUnit) {
|
|
1185
|
+
case "day":
|
|
1186
|
+
date.setUTCDate(date.getUTCDate() + intervalCount);
|
|
1187
|
+
return date.toISOString();
|
|
1188
|
+
case "week":
|
|
1189
|
+
date.setUTCDate(date.getUTCDate() + intervalCount * 7);
|
|
1190
|
+
return date.toISOString();
|
|
1191
|
+
case "month": return addMonthsPreservingAnchorDay(date, intervalCount).toISOString();
|
|
1192
|
+
default: return assertNever$8(intervalUnit);
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
function getBookingInstalmentPlanIntervalCount(plan) {
|
|
1196
|
+
switch (plan.kind) {
|
|
1197
|
+
case "deposit_plus_one_remainder": return plan.remainderDueCount;
|
|
1198
|
+
case "deposit_plus_scheduled_instalments":
|
|
1199
|
+
case "equal_scheduled_instalments": return plan.intervalCount;
|
|
1200
|
+
default: return assertNever$8(plan);
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
function omitZeroAmountFutureRows(rows) {
|
|
1204
|
+
if (rows.length <= 1) return rows;
|
|
1205
|
+
const firstRow = rows[0];
|
|
1206
|
+
if (firstRow === void 0) return [];
|
|
1207
|
+
return [firstRow, ...rows.slice(1).filter((row) => row.amountCents > 0)];
|
|
1208
|
+
}
|
|
1209
|
+
function addMonthsPreservingAnchorDay(date, intervalCount) {
|
|
1210
|
+
const anchorDay = date.getUTCDate();
|
|
1211
|
+
const nextMonth = new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth() + intervalCount, 1, date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds()));
|
|
1212
|
+
const lastDayOfTargetMonth = new Date(Date.UTC(nextMonth.getUTCFullYear(), nextMonth.getUTCMonth() + 1, 0)).getUTCDate();
|
|
1213
|
+
nextMonth.setUTCDate(Math.min(anchorDay, lastDayOfTargetMonth));
|
|
1214
|
+
return nextMonth;
|
|
1215
|
+
}
|
|
1216
|
+
function assertNever$8(value) {
|
|
1217
|
+
throw new Error(`Unexpected value: ${String(value)}`);
|
|
1218
|
+
}
|
|
1219
|
+
//#endregion
|
|
1220
|
+
//#region ../core/src/booking-payment-options.ts
|
|
1221
|
+
/**
|
|
1222
|
+
* One way a customer may pay for a booking. This is the single definition of
|
|
1223
|
+
* the option type; `booking-payment-schemas.typetest.ts` keeps it equal to the
|
|
1224
|
+
* schema's output in both directions.
|
|
1225
|
+
*/
|
|
1226
|
+
/** When a course's instalments must all be paid by: before its first or its last live session. */
|
|
1227
|
+
const BOOKING_COURSE_INSTALMENT_DEADLINES = ["first_session", "last_session"];
|
|
1228
|
+
/** Automatic instalments and a flexible balance cannot share one booking offer. */
|
|
1229
|
+
function validateBookingPaymentOptionKinds(kinds) {
|
|
1230
|
+
if (kinds.length === 0) return err$1("no_options");
|
|
1231
|
+
const uniqueKinds = new Set(kinds);
|
|
1232
|
+
if (uniqueKinds.size !== kinds.length) return err$1("duplicate_kind");
|
|
1233
|
+
if (uniqueKinds.has("instalment_plan") && uniqueKinds.has("flexible_balance")) return err$1("incompatible_collection_options");
|
|
1234
|
+
return ok$2(void 0);
|
|
1235
|
+
}
|
|
1236
|
+
//#endregion
|
|
1237
|
+
//#region ../core/src/booking-date-time/window.ts
|
|
1238
|
+
const START_OF_DAY = {
|
|
1239
|
+
hour: 0,
|
|
1240
|
+
minute: 0,
|
|
1241
|
+
second: 0
|
|
1242
|
+
};
|
|
1243
|
+
function parseWindowDate(value, field) {
|
|
1244
|
+
try {
|
|
1245
|
+
return {
|
|
1246
|
+
ok: true,
|
|
1247
|
+
value: parseBookingLocalDate(value)
|
|
1248
|
+
};
|
|
1249
|
+
} catch {
|
|
1250
|
+
return {
|
|
1251
|
+
ok: false,
|
|
1252
|
+
field,
|
|
1253
|
+
reason: "invalid_date_format",
|
|
1254
|
+
value
|
|
1255
|
+
};
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
function parseBookingUtcDateWindow(input) {
|
|
1259
|
+
const timeZone = resolveBookingTimeZoneId(input.timeZone);
|
|
1260
|
+
const start = parseWindowDate(input.startDate, "startDate");
|
|
1261
|
+
if (!start.ok) return start;
|
|
1262
|
+
const end = parseWindowDate(input.endDate, "endDate");
|
|
1263
|
+
if (!end.ok) return end;
|
|
1264
|
+
const startLocalDate = start.value;
|
|
1265
|
+
const endLocalDate = end.value;
|
|
1266
|
+
if (compareLocalScheduleDates(startLocalDate, endLocalDate) > 0) return {
|
|
1267
|
+
ok: false,
|
|
1268
|
+
field: "endDate",
|
|
1269
|
+
reason: "invalid_date_range",
|
|
1270
|
+
value: input.endDate
|
|
1271
|
+
};
|
|
1272
|
+
return {
|
|
1273
|
+
ok: true,
|
|
1274
|
+
value: {
|
|
1275
|
+
timeZone,
|
|
1276
|
+
startLocalDate,
|
|
1277
|
+
endLocalDate,
|
|
1278
|
+
startAt: localScheduleDateTimeToUtcDate(startLocalDate, START_OF_DAY, timeZone),
|
|
1279
|
+
endExclusive: localScheduleDateTimeToUtcDate(addLocalScheduleDays(endLocalDate, 1), START_OF_DAY, timeZone)
|
|
1280
|
+
}
|
|
1281
|
+
};
|
|
1282
|
+
}
|
|
1283
|
+
function buildBookingUtcDateWindow(input) {
|
|
1284
|
+
const result = parseBookingUtcDateWindow(input);
|
|
1285
|
+
if (result.ok) return result.value;
|
|
1286
|
+
if (result.reason === "invalid_date_range") throw new Error(`Invalid booking date range: startDate "${input.startDate}" must be on or before endDate "${input.endDate}"`);
|
|
1287
|
+
throw new Error(`Invalid booking date format: "${result.value}" (expected YYYY-MM-DD)`);
|
|
1288
|
+
}
|
|
1227
1289
|
//#endregion
|
|
1228
1290
|
//#region ../core/src/site-terms.ts
|
|
1229
1291
|
function siteTermsApplies(operation, items) {
|
|
@@ -3415,16 +3477,17 @@ function nextLiveRunSessionStartMs(sessions, now) {
|
|
|
3415
3477
|
return next === void 0 ? null : sessionStartMs(next);
|
|
3416
3478
|
}
|
|
3417
3479
|
/**
|
|
3418
|
-
* Booking stays open until the run's
|
|
3480
|
+
* Booking stays open until the run's cut-off, counted from its first surviving
|
|
3481
|
+
* session. A cut-off of zero closes it as that session starts.
|
|
3419
3482
|
*
|
|
3420
3483
|
* There has to be something left to sell: a run with no schedule at all, or one
|
|
3421
3484
|
* whose every session has been cancelled, is closed rather than open. Adding a
|
|
3422
3485
|
* future session opens it again, subject to the usual status, visibility and
|
|
3423
3486
|
* admission rules.
|
|
3424
3487
|
*/
|
|
3425
|
-
function isWholeSeriesRegistrationOpen(sessions, now) {
|
|
3426
|
-
const
|
|
3427
|
-
return
|
|
3488
|
+
function isWholeSeriesRegistrationOpen(sessions, now, cutOffHours) {
|
|
3489
|
+
const first = orderedLiveRunSessions(sessions)[0];
|
|
3490
|
+
return first !== void 0 && !hasBookingClosed(bookingClosesAt(first.startsAt, cutOffHours), now);
|
|
3428
3491
|
}
|
|
3429
3492
|
/**
|
|
3430
3493
|
* Where the run sits in its own life, independent of any one session.
|
|
@@ -3449,8 +3512,8 @@ function resolveWholeSeriesRunLifecycle(input, now) {
|
|
|
3449
3512
|
* Whether a prepared run is still inviting bookings at render time.
|
|
3450
3513
|
*
|
|
3451
3514
|
* `lifecycle` and `enrollmentOpen` come from the projection; the first session
|
|
3452
|
-
* start
|
|
3453
|
-
* cached page can cross while it sits in front of a visitor.
|
|
3515
|
+
* start and the cut-off are the facts re-read against `now`, because those are
|
|
3516
|
+
* the boundaries a cached page can cross while it sits in front of a visitor.
|
|
3454
3517
|
*/
|
|
3455
3518
|
function resolveWholeSeriesBookingPhase(run, now) {
|
|
3456
3519
|
switch (run.lifecycle) {
|
|
@@ -3471,10 +3534,14 @@ function resolveWholeSeriesBookingPhase(run, now) {
|
|
|
3471
3534
|
kind: "closed",
|
|
3472
3535
|
reason: "no-sessions"
|
|
3473
3536
|
};
|
|
3474
|
-
if (!isWholeSeriesRegistrationOpen(run.sessions, now)) return {
|
|
3537
|
+
if (!isWholeSeriesRegistrationOpen(run.sessions, now, 0)) return {
|
|
3475
3538
|
kind: "closed",
|
|
3476
3539
|
reason: "in-progress"
|
|
3477
3540
|
};
|
|
3541
|
+
if (run.bookingClosesAt !== void 0 && hasBookingClosed(run.bookingClosesAt, now)) return {
|
|
3542
|
+
kind: "closed",
|
|
3543
|
+
reason: "bookings-closed"
|
|
3544
|
+
};
|
|
3478
3545
|
return run.enrollmentOpen ? { kind: "open" } : {
|
|
3479
3546
|
kind: "closed",
|
|
3480
3547
|
reason: "enrolment-closed"
|
|
@@ -29693,6 +29760,59 @@ function DialogDescription({ className, ...props }) {
|
|
|
29693
29760
|
});
|
|
29694
29761
|
}
|
|
29695
29762
|
//#endregion
|
|
29763
|
+
//#region ../ui/src/spinner.tsx
|
|
29764
|
+
/** Heavier when small, so the arc survives being drawn to so few pixels. */
|
|
29765
|
+
const RING_STROKE = {
|
|
29766
|
+
12: 3.5,
|
|
29767
|
+
14: 3.5,
|
|
29768
|
+
16: 3.5,
|
|
29769
|
+
24: 3,
|
|
29770
|
+
48: 2.4
|
|
29771
|
+
};
|
|
29772
|
+
/**
|
|
29773
|
+
* The ring: a faint full circle with a short heavy arc, in the text colour
|
|
29774
|
+
* around it. It carries no brand, so it's the one loader any package can use.
|
|
29775
|
+
* Under reduced motion it stays still.
|
|
29776
|
+
*/
|
|
29777
|
+
function Spinner({ size = 16, srLabel, className, ...props }) {
|
|
29778
|
+
const accessibilityProps = srLabel ? {
|
|
29779
|
+
role: "status",
|
|
29780
|
+
"aria-live": "polite"
|
|
29781
|
+
} : { "aria-hidden": true };
|
|
29782
|
+
const strokeWidth = RING_STROKE[size];
|
|
29783
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
29784
|
+
...accessibilityProps,
|
|
29785
|
+
className: cn("inline-flex items-center justify-center text-current", className),
|
|
29786
|
+
...props,
|
|
29787
|
+
children: [/* @__PURE__ */ jsxs("svg", {
|
|
29788
|
+
"aria-hidden": "true",
|
|
29789
|
+
viewBox: "0 0 24 24",
|
|
29790
|
+
fill: "none",
|
|
29791
|
+
style: {
|
|
29792
|
+
width: size,
|
|
29793
|
+
height: size
|
|
29794
|
+
},
|
|
29795
|
+
className: "animate-spin motion-reduce:animate-none",
|
|
29796
|
+
children: [/* @__PURE__ */ jsx("circle", {
|
|
29797
|
+
cx: "12",
|
|
29798
|
+
cy: "12",
|
|
29799
|
+
r: "9.5",
|
|
29800
|
+
stroke: "currentColor",
|
|
29801
|
+
strokeWidth,
|
|
29802
|
+
opacity: .25
|
|
29803
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
29804
|
+
d: "M12 2.5A9.5 9.5 0 0 1 20.93 15.25",
|
|
29805
|
+
stroke: "currentColor",
|
|
29806
|
+
strokeWidth,
|
|
29807
|
+
strokeLinecap: "round"
|
|
29808
|
+
})]
|
|
29809
|
+
}), srLabel ? /* @__PURE__ */ jsx("span", {
|
|
29810
|
+
className: "sr-only",
|
|
29811
|
+
children: srLabel
|
|
29812
|
+
}) : null]
|
|
29813
|
+
});
|
|
29814
|
+
}
|
|
29815
|
+
//#endregion
|
|
29696
29816
|
//#region ../ui/src/callout.tsx
|
|
29697
29817
|
const calloutVariants = cva("w-full", {
|
|
29698
29818
|
variants: {
|
|
@@ -32895,8 +33015,10 @@ const arrangementEndRequestSchema = z.object({
|
|
|
32895
33015
|
...recordedReturn,
|
|
32896
33016
|
lastDate: localDate
|
|
32897
33017
|
}).strict();
|
|
32898
|
-
|
|
33018
|
+
/** `expectedUpdatedAt` is the version the dialog was showing, so a save can't overwrite a newer change. */
|
|
33019
|
+
const arrangementEditSchema = z.object({
|
|
32899
33020
|
...operation,
|
|
33021
|
+
expectedUpdatedAt: z.string().min(1),
|
|
32900
33022
|
serviceId: z.string().uuid(),
|
|
32901
33023
|
holdsTime: z.boolean(),
|
|
32902
33024
|
payment: arrangementPaymentSchema
|
|
@@ -32930,6 +33052,11 @@ z.discriminatedUnion("kind", [
|
|
|
32930
33052
|
kind: z.literal("end"),
|
|
32931
33053
|
arrangementId: z.string().uuid(),
|
|
32932
33054
|
request: arrangementEndRequestSchema
|
|
33055
|
+
}).strict(),
|
|
33056
|
+
z.object({
|
|
33057
|
+
kind: z.literal("edit"),
|
|
33058
|
+
arrangementId: z.string().uuid(),
|
|
33059
|
+
request: arrangementEditSchema
|
|
32933
33060
|
}).strict()
|
|
32934
33061
|
]);
|
|
32935
33062
|
const arrangementTimeOffChoiceSchema = z.discriminatedUnion("kind", [
|
|
@@ -33040,7 +33167,8 @@ z.intersection(z.object({ occurrenceDate: localDate }), z.union([
|
|
|
33040
33167
|
]) }),
|
|
33041
33168
|
z.object({
|
|
33042
33169
|
code: z.literal("clash"),
|
|
33043
|
-
customerFirstName: z.string().nullable()
|
|
33170
|
+
customerFirstName: z.string().nullable(),
|
|
33171
|
+
clashKind: z.enum(["appointment", "arrangement_hold"]).optional()
|
|
33044
33172
|
}),
|
|
33045
33173
|
z.object({
|
|
33046
33174
|
code: z.literal("command_failed"),
|
|
@@ -33629,6 +33757,20 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
33629
33757
|
auth: "user",
|
|
33630
33758
|
responseKind: "json"
|
|
33631
33759
|
},
|
|
33760
|
+
listStaffServiceOnlineDetails: {
|
|
33761
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/services/online-details",
|
|
33762
|
+
method: "GET",
|
|
33763
|
+
auth: "user",
|
|
33764
|
+
responseKind: "json",
|
|
33765
|
+
errors: []
|
|
33766
|
+
},
|
|
33767
|
+
setStaffServiceOnlineDetails: {
|
|
33768
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/services/online-details",
|
|
33769
|
+
method: "PUT",
|
|
33770
|
+
auth: "user",
|
|
33771
|
+
responseKind: "json",
|
|
33772
|
+
errors: []
|
|
33773
|
+
},
|
|
33632
33774
|
getServiceResources: {
|
|
33633
33775
|
path: "/sites/{siteId}/bookings/services/{serviceId}/resources",
|
|
33634
33776
|
method: "GET",
|
|
@@ -34026,6 +34168,18 @@ const EVENT_SERIES_REGISTRATION_ENDPOINT_DEFINITIONS = defineEndpointDefinitions
|
|
|
34026
34168
|
"server:internal_error"
|
|
34027
34169
|
]
|
|
34028
34170
|
},
|
|
34171
|
+
setEventAttendeesNoShow: {
|
|
34172
|
+
path: "/sites/{siteId}/bookings/attendees/no-show",
|
|
34173
|
+
method: "POST",
|
|
34174
|
+
auth: "user",
|
|
34175
|
+
responseKind: "json",
|
|
34176
|
+
errors: [
|
|
34177
|
+
"validation:invalid_input",
|
|
34178
|
+
"auth:forbidden",
|
|
34179
|
+
"resource:conflict",
|
|
34180
|
+
"server:internal_error"
|
|
34181
|
+
]
|
|
34182
|
+
},
|
|
34029
34183
|
listEventOfferingCombinationPrices: {
|
|
34030
34184
|
path: "/sites/{siteId}/bookings/event-offerings/{eventOfferingId}/combination-prices",
|
|
34031
34185
|
method: "GET",
|
|
@@ -36223,7 +36377,7 @@ const PUBLIC_READ_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
36223
36377
|
path: "/public/content/{siteId}/{type}/{slug}/preview",
|
|
36224
36378
|
method: "GET",
|
|
36225
36379
|
revalidate: publicReadFreshnessSeconds("getPublishedEntryPreview"),
|
|
36226
|
-
tags: [
|
|
36380
|
+
tags: [TAG_TEMPLATES.siteRoutableContent],
|
|
36227
36381
|
auth: "public",
|
|
36228
36382
|
responseKind: "json"
|
|
36229
36383
|
},
|
|
@@ -36231,7 +36385,7 @@ const PUBLIC_READ_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
36231
36385
|
path: "/public/content/{siteId}/{type}/entries",
|
|
36232
36386
|
method: "GET",
|
|
36233
36387
|
revalidate: publicReadFreshnessSeconds("listPublishedEntries"),
|
|
36234
|
-
tags: [
|
|
36388
|
+
tags: [TAG_TEMPLATES.siteRoutableContent],
|
|
36235
36389
|
auth: "public",
|
|
36236
36390
|
responseKind: "json"
|
|
36237
36391
|
},
|
|
@@ -40361,6 +40515,18 @@ const API_ENDPOINTS = {
|
|
|
40361
40515
|
auth: "admin",
|
|
40362
40516
|
responseKind: "json"
|
|
40363
40517
|
},
|
|
40518
|
+
adminSyncPriceOverride: {
|
|
40519
|
+
path: "/admin/billing/price-override",
|
|
40520
|
+
method: "PUT",
|
|
40521
|
+
tags: [
|
|
40522
|
+
"admin",
|
|
40523
|
+
"billing",
|
|
40524
|
+
"price-override"
|
|
40525
|
+
],
|
|
40526
|
+
auth: "admin",
|
|
40527
|
+
responseKind: "json",
|
|
40528
|
+
errors: []
|
|
40529
|
+
},
|
|
40364
40530
|
...EVENT_MANAGEMENT_ENDPOINT_DEFINITIONS,
|
|
40365
40531
|
getEventSeries: {
|
|
40366
40532
|
path: "/sites/{siteId}/bookings/events/{eventId}/schedules/{seriesId}",
|
|
@@ -42520,6 +42686,27 @@ const API_ENDPOINTS = {
|
|
|
42520
42686
|
responseKind: "json",
|
|
42521
42687
|
errors: []
|
|
42522
42688
|
},
|
|
42689
|
+
portalEntryPreview: {
|
|
42690
|
+
path: "/portal/auth/entry/preview",
|
|
42691
|
+
method: "POST",
|
|
42692
|
+
auth: "public",
|
|
42693
|
+
responseKind: "json",
|
|
42694
|
+
errors: []
|
|
42695
|
+
},
|
|
42696
|
+
portalEntryRedeem: {
|
|
42697
|
+
path: "/portal/auth/entry/redeem",
|
|
42698
|
+
method: "POST",
|
|
42699
|
+
auth: "public",
|
|
42700
|
+
responseKind: "json",
|
|
42701
|
+
errors: []
|
|
42702
|
+
},
|
|
42703
|
+
portalEntryResend: {
|
|
42704
|
+
path: "/portal/auth/entry/resend",
|
|
42705
|
+
method: "POST",
|
|
42706
|
+
auth: "public",
|
|
42707
|
+
responseKind: "json",
|
|
42708
|
+
errors: []
|
|
42709
|
+
},
|
|
42523
42710
|
portalLogout: {
|
|
42524
42711
|
path: "/portal/auth/logout",
|
|
42525
42712
|
method: "POST",
|
|
@@ -80503,6 +80690,8 @@ const publicWholeSeriesRunSchema = z.object({
|
|
|
80503
80690
|
eventSeriesId: z.string(),
|
|
80504
80691
|
eventOfferingId: z.string(),
|
|
80505
80692
|
enrollmentOpen: z.boolean(),
|
|
80693
|
+
/** Present when bookings stop before the first session. Older sites ignore it. */
|
|
80694
|
+
bookingClosesAt: z.string().optional(),
|
|
80506
80695
|
visibility: z.enum(["public", "unlisted"]),
|
|
80507
80696
|
lifecycle: z.enum([
|
|
80508
80697
|
"upcoming",
|
|
@@ -80550,6 +80739,11 @@ const publicEventBaseSchema = z.object({
|
|
|
80550
80739
|
requiresRegistration: z.boolean(),
|
|
80551
80740
|
bookingAvailability: publicEventBookingAvailabilitySchema,
|
|
80552
80741
|
bookingClosedDetail: publicEventBookingClosedDetailSchema.optional(),
|
|
80742
|
+
/**
|
|
80743
|
+
* Present when bookings stop before this date starts. It's what says "closed
|
|
80744
|
+
* early": the closed reasons stay as they are, so older sites keep working.
|
|
80745
|
+
*/
|
|
80746
|
+
bookingClosesAt: z.string().optional(),
|
|
80553
80747
|
deliveryMode: z.enum([
|
|
80554
80748
|
"in_person",
|
|
80555
80749
|
"online",
|
|
@@ -89542,11 +89736,19 @@ function rowFor(rows, mode) {
|
|
|
89542
89736
|
* capacity comes from the shared event-domain helpers so uncapped, fallback,
|
|
89543
89737
|
* and hybrid attendance-mode cases agree with the registration runtime.
|
|
89544
89738
|
*/
|
|
89545
|
-
function isBookableEvent(event) {
|
|
89739
|
+
function isBookableEvent(event, now) {
|
|
89546
89740
|
if (!event.requiresRegistration) return false;
|
|
89547
89741
|
if (event.bookingAvailability.kind !== "open") return false;
|
|
89742
|
+
if (now && hasEventBookingClosedEarly(event, now)) return false;
|
|
89548
89743
|
return !isEventFull(event) || canJoinEventWaitlistOnAnyMode(event);
|
|
89549
89744
|
}
|
|
89745
|
+
/**
|
|
89746
|
+
* Whether a date has passed its cut-off by this clock. The projected availability
|
|
89747
|
+
* can be older than the page it's on, and a cut-off makes that gap matter more.
|
|
89748
|
+
*/
|
|
89749
|
+
function hasEventBookingClosedEarly(event, now) {
|
|
89750
|
+
return event.bookingClosesAt !== void 0 && hasBookingClosed(event.bookingClosesAt, now);
|
|
89751
|
+
}
|
|
89550
89752
|
//#endregion
|
|
89551
89753
|
//#region ../blocks/src/system/blocks/events/shared/pageSelection.ts
|
|
89552
89754
|
/**
|
|
@@ -89606,7 +89808,7 @@ function planOrdinarySeriesSelection(events) {
|
|
|
89606
89808
|
const ordinary = events.filter(isOrdinaryPublicEvent);
|
|
89607
89809
|
const firstSeriesId = ordinary[0]?.seriesId;
|
|
89608
89810
|
if (!firstSeriesId || ordinary.some((event) => event.seriesId !== firstSeriesId)) return null;
|
|
89609
|
-
const [first, second] = ordinary.filter(isBookableEvent);
|
|
89811
|
+
const [first, second] = ordinary.filter((event) => isBookableEvent(event));
|
|
89610
89812
|
if (first && second) {
|
|
89611
89813
|
const [a, b, ...rest] = [...ordinary].filter(isOpenForBooking).sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt));
|
|
89612
89814
|
if (a && b) return {
|
|
@@ -89817,6 +90019,243 @@ function isCancelledOrdinaryDate(event) {
|
|
|
89817
90019
|
//#region ../blocks/src/system/blocks/shared/bookingPageKind.ts
|
|
89818
90020
|
const bookingPageKindSchema = z.enum(["fullPage", "bookingPage"]);
|
|
89819
90021
|
//#endregion
|
|
90022
|
+
//#region ../blocks/src/system/runtime/nodes/events/domain/dates.ts
|
|
90023
|
+
/** Event presentation adapters; core owns projection, clocks and ranges. */
|
|
90024
|
+
function eventDateLocale(siteTimeZone) {
|
|
90025
|
+
return inferSiteDateLocale(siteTimeZone);
|
|
90026
|
+
}
|
|
90027
|
+
function eventCalendarWeekStart(timeZone, override) {
|
|
90028
|
+
return override ?? (inferSiteDateLocale(resolveBookingBusinessTimeZone(timeZone)) === "en-US" ? "sunday" : "monday");
|
|
90029
|
+
}
|
|
90030
|
+
/** Admit older wire zones once; the booking business fallback remains London. */
|
|
90031
|
+
function eventDateOptions(place) {
|
|
90032
|
+
const siteTimeZone = resolveBookingBusinessTimeZone(place.siteTimeZone);
|
|
90033
|
+
const resolved = resolveBookingDisplayContext({
|
|
90034
|
+
sessionTimeZone: resolveBookingTimeZoneId(place.timeZone, siteTimeZone),
|
|
90035
|
+
siteTimeZone,
|
|
90036
|
+
locale: inferSiteDateLocale(siteTimeZone),
|
|
90037
|
+
isOnline: place.isOnline === true || place.deliveryMode === "online" || place.deliveryMode === "hybrid",
|
|
90038
|
+
surface: "public"
|
|
90039
|
+
});
|
|
90040
|
+
return {
|
|
90041
|
+
...resolved.context,
|
|
90042
|
+
zone: resolved.zone
|
|
90043
|
+
};
|
|
90044
|
+
}
|
|
90045
|
+
/** Overnight spans keep their end day; folds retain both distinct offsets. */
|
|
90046
|
+
function formatEventTimeRange(times, options) {
|
|
90047
|
+
const start = toUtcIsoDateTimeString(times.startsAt);
|
|
90048
|
+
const end = toUtcIsoDateTimeString(times.endsAt);
|
|
90049
|
+
const startDay = getLocalScheduleDate(new Date(start), options.timeZone);
|
|
90050
|
+
const endDay = getLocalScheduleDate(new Date(end), options.timeZone);
|
|
90051
|
+
return startDay.year === endDay.year && startDay.month === endDay.month && startDay.day === endDay.day ? formatTimeRange(start, end, options, { zone: options.zone }) : formatDateTimeRange({
|
|
90052
|
+
start,
|
|
90053
|
+
end
|
|
90054
|
+
}, options, {
|
|
90055
|
+
date: "short",
|
|
90056
|
+
zone: options.zone
|
|
90057
|
+
});
|
|
90058
|
+
}
|
|
90059
|
+
function resolveEventTimeZone(event, calendarTimeZone) {
|
|
90060
|
+
return resolveBookingTimeZoneId(event.timeZone, resolveBookingBusinessTimeZone(calendarTimeZone));
|
|
90061
|
+
}
|
|
90062
|
+
function formatDate$2(isoTimestamp, options) {
|
|
90063
|
+
return formatDate$4({
|
|
90064
|
+
kind: "instant",
|
|
90065
|
+
value: toUtcIsoDateTimeString(isoTimestamp)
|
|
90066
|
+
}, options, {
|
|
90067
|
+
date: "short",
|
|
90068
|
+
weekday: "long"
|
|
90069
|
+
});
|
|
90070
|
+
}
|
|
90071
|
+
function formatTime$2(isoTimestamp, options) {
|
|
90072
|
+
return formatTime$3(toUtcIsoDateTimeString(isoTimestamp), options, { zone: options.zone });
|
|
90073
|
+
}
|
|
90074
|
+
function formatEventDateParts(args) {
|
|
90075
|
+
return {
|
|
90076
|
+
date: formatDate$2(args.startsAt, args),
|
|
90077
|
+
timeRange: formatEventTimeRange(args, args)
|
|
90078
|
+
};
|
|
90079
|
+
}
|
|
90080
|
+
/** A course run's first to last session date, such as `8–22 Sept 2026`. */
|
|
90081
|
+
function formatEventRunDates(first, last, options) {
|
|
90082
|
+
return formatDateRange({
|
|
90083
|
+
kind: "instant",
|
|
90084
|
+
value: toUtcIsoDateTimeString(first.startsAt)
|
|
90085
|
+
}, {
|
|
90086
|
+
kind: "instant",
|
|
90087
|
+
value: toUtcIsoDateTimeString(last.startsAt)
|
|
90088
|
+
}, options, {
|
|
90089
|
+
date: "short",
|
|
90090
|
+
order: "session"
|
|
90091
|
+
});
|
|
90092
|
+
}
|
|
90093
|
+
/** Civil calendar headings never acquire an instant's timezone shift. */
|
|
90094
|
+
function formatCalendarTitle(viewDate, view, days, timeZone) {
|
|
90095
|
+
const context = eventDateOptions({
|
|
90096
|
+
siteTimeZone: timeZone,
|
|
90097
|
+
timeZone
|
|
90098
|
+
});
|
|
90099
|
+
const first = days[0];
|
|
90100
|
+
const last = days[6];
|
|
90101
|
+
return view === "week" && first && last ? formatDateRange({
|
|
90102
|
+
kind: "civil",
|
|
90103
|
+
value: first
|
|
90104
|
+
}, {
|
|
90105
|
+
kind: "civil",
|
|
90106
|
+
value: last
|
|
90107
|
+
}, context, { date: "short" }) : formatDate$4({
|
|
90108
|
+
kind: "civil",
|
|
90109
|
+
value: viewDate
|
|
90110
|
+
}, context, {
|
|
90111
|
+
date: "long",
|
|
90112
|
+
day: "omit"
|
|
90113
|
+
});
|
|
90114
|
+
}
|
|
90115
|
+
function buildCalendarViewport(input) {
|
|
90116
|
+
const viewport = buildCalendarViewport$1(input);
|
|
90117
|
+
return {
|
|
90118
|
+
...viewport,
|
|
90119
|
+
title: formatCalendarTitle(input.anchorDate, input.view, viewport.days, input.timeZone)
|
|
90120
|
+
};
|
|
90121
|
+
}
|
|
90122
|
+
/** Tick digits are civil clock values, not session instants. */
|
|
90123
|
+
function formatEventHourLabel(hour, timeZone) {
|
|
90124
|
+
return formatEventClockLabel(`${String(hour % 24).padStart(2, "0")}:00`, eventDateLocale(timeZone));
|
|
90125
|
+
}
|
|
90126
|
+
/** Weekly cadence and tick clocks are civil values; UTC only carries their components. */
|
|
90127
|
+
function formatEventClockLabel(value, locale) {
|
|
90128
|
+
const clock = parseLocalScheduleTime(value);
|
|
90129
|
+
return formatTime$3(toUtcIsoDateTimeString(new Date(Date.UTC(2e3, 0, 1, clock.hour, clock.minute)).toISOString()), {
|
|
90130
|
+
locale,
|
|
90131
|
+
timeZone: resolveBookingBusinessTimeZone("UTC")
|
|
90132
|
+
}, { zone: "omit" });
|
|
90133
|
+
}
|
|
90134
|
+
function formatEventCompactDateRail(isoTimestamp, options, letterCase = "capitals") {
|
|
90135
|
+
const instant = {
|
|
90136
|
+
kind: "instant",
|
|
90137
|
+
value: toUtcIsoDateTimeString(isoTimestamp)
|
|
90138
|
+
};
|
|
90139
|
+
const cased = (value) => letterCase === "capitals" ? value.toLocaleUpperCase(options.locale) : value;
|
|
90140
|
+
return {
|
|
90141
|
+
weekday: cased(formatDate$4(instant, options, {
|
|
90142
|
+
date: "omit",
|
|
90143
|
+
weekday: "short",
|
|
90144
|
+
year: "omit"
|
|
90145
|
+
})),
|
|
90146
|
+
fullWeekday: formatDate$4(instant, options, {
|
|
90147
|
+
date: "omit",
|
|
90148
|
+
weekday: "long",
|
|
90149
|
+
year: "omit"
|
|
90150
|
+
}),
|
|
90151
|
+
day: formatDate$4(instant, options, {
|
|
90152
|
+
date: "omit",
|
|
90153
|
+
day: "numeric",
|
|
90154
|
+
year: "omit"
|
|
90155
|
+
}),
|
|
90156
|
+
month: cased(formatDate$4(instant, options, {
|
|
90157
|
+
date: "short",
|
|
90158
|
+
day: "omit",
|
|
90159
|
+
year: "omit"
|
|
90160
|
+
}).slice(0, 3)),
|
|
90161
|
+
label: formatDate$4(instant, options, {
|
|
90162
|
+
date: "long",
|
|
90163
|
+
weekday: "long"
|
|
90164
|
+
})
|
|
90165
|
+
};
|
|
90166
|
+
}
|
|
90167
|
+
/**
|
|
90168
|
+
* Format the next occurrence for the image-free catalogue card treatment.
|
|
90169
|
+
*
|
|
90170
|
+
* The compact rail already owns this short, booking-local date vocabulary;
|
|
90171
|
+
* keep the fact panel on the same date and timezone rules as event rows.
|
|
90172
|
+
*/
|
|
90173
|
+
function formatEventNextDateFact(event) {
|
|
90174
|
+
const rail = formatEventCompactDateRail(event.startsAt, eventDateOptions(event));
|
|
90175
|
+
return {
|
|
90176
|
+
dateTime: event.startsAt,
|
|
90177
|
+
value: `${rail.weekday} ${rail.day} ${rail.month}`,
|
|
90178
|
+
label: rail.label
|
|
90179
|
+
};
|
|
90180
|
+
}
|
|
90181
|
+
/**
|
|
90182
|
+
* Group events by their local date (YYYY-MM-DD key in each event's own
|
|
90183
|
+
* timezone). Thin domain wrapper over `groupItemsByDate` from the calendar
|
|
90184
|
+
* package; preserves the historical `Map<string, PublicEvent[]>` shape.
|
|
90185
|
+
*/
|
|
90186
|
+
function groupEventsByDate(events, calendarTimeZone) {
|
|
90187
|
+
const grouped = groupItemsByDate(events, {
|
|
90188
|
+
getStartsAt: (event) => event.startsAt,
|
|
90189
|
+
getTimeZone: () => calendarTimeZone
|
|
90190
|
+
});
|
|
90191
|
+
return new Map([...grouped].map(([dateKey, bucket]) => [dateKey, [...bucket]]));
|
|
90192
|
+
}
|
|
90193
|
+
/** Stable local-day identity shared by ledger continuations and day groups. */
|
|
90194
|
+
function eventLocalDateKey(event) {
|
|
90195
|
+
return getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
90196
|
+
startsAt: event.startsAt,
|
|
90197
|
+
timeZone: resolveBookingBusinessTimeZone(event.timeZone),
|
|
90198
|
+
locale: "en-GB"
|
|
90199
|
+
}));
|
|
90200
|
+
}
|
|
90201
|
+
/** Full weekday and the existing zone-aware time range for a weekly running list. */
|
|
90202
|
+
function formatEventWeekdayTime(event) {
|
|
90203
|
+
const options = eventDateOptions(event);
|
|
90204
|
+
return `${formatDate$4({
|
|
90205
|
+
kind: "instant",
|
|
90206
|
+
value: toUtcIsoDateTimeString(event.startsAt)
|
|
90207
|
+
}, options, {
|
|
90208
|
+
date: "omit",
|
|
90209
|
+
weekday: "long",
|
|
90210
|
+
year: "omit"
|
|
90211
|
+
})} · ${formatEventTimeRange(event, options)}`;
|
|
90212
|
+
}
|
|
90213
|
+
//#endregion
|
|
90214
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/closedEarlyCopy.ts
|
|
90215
|
+
const isWeekly$1 = (event) => event.scheduleScope === "recurring";
|
|
90216
|
+
function eventTimeZone(event) {
|
|
90217
|
+
return eventDateOptions(event).timeZone;
|
|
90218
|
+
}
|
|
90219
|
+
/** On a date's own read both `path` and the destination name that date; its event's page is one level up. */
|
|
90220
|
+
function eventOwnPagePath(event) {
|
|
90221
|
+
const path = getPublicEventCanonicalPath(event);
|
|
90222
|
+
const dateSegment = `/${event.occurrenceId}`;
|
|
90223
|
+
return path?.endsWith(dateSegment) ? path.slice(0, -dateSegment.length) || "/" : path;
|
|
90224
|
+
}
|
|
90225
|
+
/** "Bookings close 2 hours before the start.", while they're still open. */
|
|
90226
|
+
function openBookingLine(event) {
|
|
90227
|
+
if (!event.bookingClosesAt) return null;
|
|
90228
|
+
const before = formatBookingCutOffHours(bookingCutOffHoursBetween(event.startsAt, event.bookingClosesAt));
|
|
90229
|
+
return isWeekly$1(event) ? `Bookings for each date close ${before} before the start.` : `Bookings close ${before} before the start.`;
|
|
90230
|
+
}
|
|
90231
|
+
/** The course's open line, counted from its first session still running. */
|
|
90232
|
+
function openRunBookingLine(run) {
|
|
90233
|
+
const first = orderedLiveRunSessions(run.sessions)[0];
|
|
90234
|
+
if (!run.bookingClosesAt || !first) return null;
|
|
90235
|
+
return `Bookings close ${formatBookingCutOffHours(bookingCutOffHoursBetween(first.startsAt, run.bookingClosesAt))} before the first session.`;
|
|
90236
|
+
}
|
|
90237
|
+
/** One date between its cut-off and its start, or null. */
|
|
90238
|
+
function closedDateCopy(event, now) {
|
|
90239
|
+
const closesAt = event.bookingClosesAt;
|
|
90240
|
+
if (!closesAt || !hasBookingClosed(closesAt, now) || Date.parse(event.startsAt) <= now.getTime()) return null;
|
|
90241
|
+
const zone = eventTimeZone(event);
|
|
90242
|
+
const closed = formatBookingClosedTime(closesAt, event.startsAt, zone);
|
|
90243
|
+
const start = formatBookingClosedTime(event.startsAt, event.startsAt, zone);
|
|
90244
|
+
const before = formatBookingCutOffHours(bookingCutOffHoursBetween(event.startsAt, closesAt));
|
|
90245
|
+
const weekly = isWeekly$1(event);
|
|
90246
|
+
return {
|
|
90247
|
+
titleText: weekly ? "Bookings for this date have closed" : "Bookings for this event have closed",
|
|
90248
|
+
bodyText: `Bookings closed at ${closed}, ${before} before the ${start} start. The organiser may still be able to help if you’d like to come.`,
|
|
90249
|
+
otherDatesHref: weekly ? eventOwnPagePath(event) : null
|
|
90250
|
+
};
|
|
90251
|
+
}
|
|
90252
|
+
/** The body of a course past its cut-off, or null if the run doesn't say when. */
|
|
90253
|
+
function closedRunBody(run) {
|
|
90254
|
+
const first = orderedLiveRunSessions(run.sessions)[0];
|
|
90255
|
+
if (!run.bookingClosesAt || !first) return null;
|
|
90256
|
+
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.`;
|
|
90257
|
+
}
|
|
90258
|
+
//#endregion
|
|
89820
90259
|
//#region ../blocks/src/system/runtime/nodes/event-registration/closedRunCopy.ts
|
|
89821
90260
|
const copy = {
|
|
89822
90261
|
cancelled: {
|
|
@@ -89831,6 +90270,10 @@ const copy = {
|
|
|
89831
90270
|
titleText: "These dates have finished",
|
|
89832
90271
|
bodyText: "The details are kept here for reference."
|
|
89833
90272
|
},
|
|
90273
|
+
"bookings-closed": {
|
|
90274
|
+
titleText: "Bookings for these dates have closed",
|
|
90275
|
+
bodyText: "Bookings for these dates have closed. The organiser may still be able to help if you’d like to join."
|
|
90276
|
+
},
|
|
89834
90277
|
"enrolment-closed": {
|
|
89835
90278
|
titleText: "Booking closed",
|
|
89836
90279
|
bodyText: "Bookings are no longer being taken for these dates."
|
|
@@ -89840,8 +90283,27 @@ const copy = {
|
|
|
89840
90283
|
bodyText: "There are no dates to book at the moment. The organiser may add more, and anything already booked still stands."
|
|
89841
90284
|
}
|
|
89842
90285
|
};
|
|
89843
|
-
|
|
89844
|
-
|
|
90286
|
+
/** A run past its cut-off says when it closed, if it can. */
|
|
90287
|
+
function closedRunCopy(reason, run) {
|
|
90288
|
+
const body = reason === "bookings-closed" && run ? closedRunBody(run) : null;
|
|
90289
|
+
return body ? {
|
|
90290
|
+
...copy[reason],
|
|
90291
|
+
bodyText: body
|
|
90292
|
+
} : copy[reason];
|
|
90293
|
+
}
|
|
90294
|
+
/**
|
|
90295
|
+
* A list of dates closes once none is left to book and at least one stopped at
|
|
90296
|
+
* its cut-off. Until then the closed ones just leave the list. There's nothing
|
|
90297
|
+
* further to point at, so the copy offers no other dates.
|
|
90298
|
+
*/
|
|
90299
|
+
function closedDatesCopy(dates, now) {
|
|
90300
|
+
if (dates.some((date) => Date.parse(date.startsAt) > now.getTime() && !(date.bookingClosesAt && hasBookingClosed(date.bookingClosesAt, now)))) return null;
|
|
90301
|
+
const [firstClosed] = dates.flatMap((date) => closedDateCopy(date, now) ?? []);
|
|
90302
|
+
if (!firstClosed) return null;
|
|
90303
|
+
return {
|
|
90304
|
+
...dates.length > 1 ? copy["bookings-closed"] : firstClosed,
|
|
90305
|
+
otherDatesHref: null
|
|
90306
|
+
};
|
|
89845
90307
|
}
|
|
89846
90308
|
//#endregion
|
|
89847
90309
|
//#region ../blocks/src/system/runtime/shared/navigation/pageNavigation.ts
|
|
@@ -90214,9 +90676,15 @@ function occurrenceCardAvailability(event, count) {
|
|
|
90214
90676
|
status: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available"
|
|
90215
90677
|
} : null;
|
|
90216
90678
|
}
|
|
90217
|
-
/** Preserve projected closure reasons; only an open native
|
|
90679
|
+
/** Preserve projected closure reasons; only an open native booking needs its clock rechecked. */
|
|
90218
90680
|
function renderClockClosedCta(event, now) {
|
|
90219
|
-
if (!now || event.
|
|
90681
|
+
if (!now || event.destination.kind !== "native") return null;
|
|
90682
|
+
if (event.bookingScope !== "whole_series") return hasEventBookingClosedEarly(event, now) ? {
|
|
90683
|
+
label: "Registration closed",
|
|
90684
|
+
href: resolveEventHref(event),
|
|
90685
|
+
external: false,
|
|
90686
|
+
hidden: true
|
|
90687
|
+
} : null;
|
|
90220
90688
|
const phase = resolveWholeSeriesBookingPhase(event.run, now);
|
|
90221
90689
|
if (phase.kind === "open") return null;
|
|
90222
90690
|
return {
|
|
@@ -90225,6 +90693,7 @@ function renderClockClosedCta(event, now) {
|
|
|
90225
90693
|
case "cancelled": return "Cancelled";
|
|
90226
90694
|
case "completed": return "Completed";
|
|
90227
90695
|
case "in-progress":
|
|
90696
|
+
case "bookings-closed":
|
|
90228
90697
|
case "enrolment-closed":
|
|
90229
90698
|
case "no-sessions": return "Registration closed";
|
|
90230
90699
|
default: return assertNever$9(phase.reason);
|
|
@@ -90232,201 +90701,9 @@ function renderClockClosedCta(event, now) {
|
|
|
90232
90701
|
})(),
|
|
90233
90702
|
href: resolveEventHref(event),
|
|
90234
90703
|
external: false,
|
|
90235
|
-
hidden: phase.reason !== "enrolment-closed"
|
|
90236
|
-
};
|
|
90237
|
-
}
|
|
90238
|
-
//#endregion
|
|
90239
|
-
//#region ../blocks/src/system/runtime/nodes/events/domain/dates.ts
|
|
90240
|
-
/** Event presentation adapters; core owns projection, clocks and ranges. */
|
|
90241
|
-
function eventDateLocale(siteTimeZone) {
|
|
90242
|
-
return inferSiteDateLocale(siteTimeZone);
|
|
90243
|
-
}
|
|
90244
|
-
function eventCalendarWeekStart(timeZone, override) {
|
|
90245
|
-
return override ?? (inferSiteDateLocale(resolveBookingBusinessTimeZone(timeZone)) === "en-US" ? "sunday" : "monday");
|
|
90246
|
-
}
|
|
90247
|
-
/** Admit older wire zones once; the booking business fallback remains London. */
|
|
90248
|
-
function eventDateOptions(place) {
|
|
90249
|
-
const siteTimeZone = resolveBookingBusinessTimeZone(place.siteTimeZone);
|
|
90250
|
-
const resolved = resolveBookingDisplayContext({
|
|
90251
|
-
sessionTimeZone: resolveBookingTimeZoneId(place.timeZone, siteTimeZone),
|
|
90252
|
-
siteTimeZone,
|
|
90253
|
-
locale: inferSiteDateLocale(siteTimeZone),
|
|
90254
|
-
isOnline: place.isOnline === true || place.deliveryMode === "online" || place.deliveryMode === "hybrid",
|
|
90255
|
-
surface: "public"
|
|
90256
|
-
});
|
|
90257
|
-
return {
|
|
90258
|
-
...resolved.context,
|
|
90259
|
-
zone: resolved.zone
|
|
90260
|
-
};
|
|
90261
|
-
}
|
|
90262
|
-
/** Overnight spans keep their end day; folds retain both distinct offsets. */
|
|
90263
|
-
function formatEventTimeRange(times, options) {
|
|
90264
|
-
const start = toUtcIsoDateTimeString(times.startsAt);
|
|
90265
|
-
const end = toUtcIsoDateTimeString(times.endsAt);
|
|
90266
|
-
const startDay = getLocalScheduleDate(new Date(start), options.timeZone);
|
|
90267
|
-
const endDay = getLocalScheduleDate(new Date(end), options.timeZone);
|
|
90268
|
-
return startDay.year === endDay.year && startDay.month === endDay.month && startDay.day === endDay.day ? formatTimeRange(start, end, options, { zone: options.zone }) : formatDateTimeRange({
|
|
90269
|
-
start,
|
|
90270
|
-
end
|
|
90271
|
-
}, options, {
|
|
90272
|
-
date: "short",
|
|
90273
|
-
zone: options.zone
|
|
90274
|
-
});
|
|
90275
|
-
}
|
|
90276
|
-
function resolveEventTimeZone(event, calendarTimeZone) {
|
|
90277
|
-
return resolveBookingTimeZoneId(event.timeZone, resolveBookingBusinessTimeZone(calendarTimeZone));
|
|
90278
|
-
}
|
|
90279
|
-
function formatDate$2(isoTimestamp, options) {
|
|
90280
|
-
return formatDate$4({
|
|
90281
|
-
kind: "instant",
|
|
90282
|
-
value: toUtcIsoDateTimeString(isoTimestamp)
|
|
90283
|
-
}, options, {
|
|
90284
|
-
date: "short",
|
|
90285
|
-
weekday: "long"
|
|
90286
|
-
});
|
|
90287
|
-
}
|
|
90288
|
-
function formatTime$2(isoTimestamp, options) {
|
|
90289
|
-
return formatTime$3(toUtcIsoDateTimeString(isoTimestamp), options, { zone: options.zone });
|
|
90290
|
-
}
|
|
90291
|
-
function formatEventDateParts(args) {
|
|
90292
|
-
return {
|
|
90293
|
-
date: formatDate$2(args.startsAt, args),
|
|
90294
|
-
timeRange: formatEventTimeRange(args, args)
|
|
90295
|
-
};
|
|
90296
|
-
}
|
|
90297
|
-
/** A course run's first to last session date, such as `8–22 Sept 2026`. */
|
|
90298
|
-
function formatEventRunDates(first, last, options) {
|
|
90299
|
-
return formatDateRange({
|
|
90300
|
-
kind: "instant",
|
|
90301
|
-
value: toUtcIsoDateTimeString(first.startsAt)
|
|
90302
|
-
}, {
|
|
90303
|
-
kind: "instant",
|
|
90304
|
-
value: toUtcIsoDateTimeString(last.startsAt)
|
|
90305
|
-
}, options, {
|
|
90306
|
-
date: "short",
|
|
90307
|
-
order: "session"
|
|
90308
|
-
});
|
|
90309
|
-
}
|
|
90310
|
-
/** Civil calendar headings never acquire an instant's timezone shift. */
|
|
90311
|
-
function formatCalendarTitle(viewDate, view, days, timeZone) {
|
|
90312
|
-
const context = eventDateOptions({
|
|
90313
|
-
siteTimeZone: timeZone,
|
|
90314
|
-
timeZone
|
|
90315
|
-
});
|
|
90316
|
-
const first = days[0];
|
|
90317
|
-
const last = days[6];
|
|
90318
|
-
return view === "week" && first && last ? formatDateRange({
|
|
90319
|
-
kind: "civil",
|
|
90320
|
-
value: first
|
|
90321
|
-
}, {
|
|
90322
|
-
kind: "civil",
|
|
90323
|
-
value: last
|
|
90324
|
-
}, context, { date: "short" }) : formatDate$4({
|
|
90325
|
-
kind: "civil",
|
|
90326
|
-
value: viewDate
|
|
90327
|
-
}, context, {
|
|
90328
|
-
date: "long",
|
|
90329
|
-
day: "omit"
|
|
90330
|
-
});
|
|
90331
|
-
}
|
|
90332
|
-
function buildCalendarViewport(input) {
|
|
90333
|
-
const viewport = buildCalendarViewport$1(input);
|
|
90334
|
-
return {
|
|
90335
|
-
...viewport,
|
|
90336
|
-
title: formatCalendarTitle(input.anchorDate, input.view, viewport.days, input.timeZone)
|
|
90337
|
-
};
|
|
90338
|
-
}
|
|
90339
|
-
/** Tick digits are civil clock values, not session instants. */
|
|
90340
|
-
function formatEventHourLabel(hour, timeZone) {
|
|
90341
|
-
return formatEventClockLabel(`${String(hour % 24).padStart(2, "0")}:00`, eventDateLocale(timeZone));
|
|
90342
|
-
}
|
|
90343
|
-
/** Weekly cadence and tick clocks are civil values; UTC only carries their components. */
|
|
90344
|
-
function formatEventClockLabel(value, locale) {
|
|
90345
|
-
const clock = parseLocalScheduleTime(value);
|
|
90346
|
-
return formatTime$3(toUtcIsoDateTimeString(new Date(Date.UTC(2e3, 0, 1, clock.hour, clock.minute)).toISOString()), {
|
|
90347
|
-
locale,
|
|
90348
|
-
timeZone: resolveBookingBusinessTimeZone("UTC")
|
|
90349
|
-
}, { zone: "omit" });
|
|
90350
|
-
}
|
|
90351
|
-
function formatEventCompactDateRail(isoTimestamp, options, letterCase = "capitals") {
|
|
90352
|
-
const instant = {
|
|
90353
|
-
kind: "instant",
|
|
90354
|
-
value: toUtcIsoDateTimeString(isoTimestamp)
|
|
90355
|
-
};
|
|
90356
|
-
const cased = (value) => letterCase === "capitals" ? value.toLocaleUpperCase(options.locale) : value;
|
|
90357
|
-
return {
|
|
90358
|
-
weekday: cased(formatDate$4(instant, options, {
|
|
90359
|
-
date: "omit",
|
|
90360
|
-
weekday: "short",
|
|
90361
|
-
year: "omit"
|
|
90362
|
-
})),
|
|
90363
|
-
fullWeekday: formatDate$4(instant, options, {
|
|
90364
|
-
date: "omit",
|
|
90365
|
-
weekday: "long",
|
|
90366
|
-
year: "omit"
|
|
90367
|
-
}),
|
|
90368
|
-
day: formatDate$4(instant, options, {
|
|
90369
|
-
date: "omit",
|
|
90370
|
-
day: "numeric",
|
|
90371
|
-
year: "omit"
|
|
90372
|
-
}),
|
|
90373
|
-
month: cased(formatDate$4(instant, options, {
|
|
90374
|
-
date: "short",
|
|
90375
|
-
day: "omit",
|
|
90376
|
-
year: "omit"
|
|
90377
|
-
}).slice(0, 3)),
|
|
90378
|
-
label: formatDate$4(instant, options, {
|
|
90379
|
-
date: "long",
|
|
90380
|
-
weekday: "long"
|
|
90381
|
-
})
|
|
90382
|
-
};
|
|
90383
|
-
}
|
|
90384
|
-
/**
|
|
90385
|
-
* Format the next occurrence for the image-free catalogue card treatment.
|
|
90386
|
-
*
|
|
90387
|
-
* The compact rail already owns this short, booking-local date vocabulary;
|
|
90388
|
-
* keep the fact panel on the same date and timezone rules as event rows.
|
|
90389
|
-
*/
|
|
90390
|
-
function formatEventNextDateFact(event) {
|
|
90391
|
-
const rail = formatEventCompactDateRail(event.startsAt, eventDateOptions(event));
|
|
90392
|
-
return {
|
|
90393
|
-
dateTime: event.startsAt,
|
|
90394
|
-
value: `${rail.weekday} ${rail.day} ${rail.month}`,
|
|
90395
|
-
label: rail.label
|
|
90704
|
+
hidden: phase.reason !== "enrolment-closed" && phase.reason !== "bookings-closed"
|
|
90396
90705
|
};
|
|
90397
90706
|
}
|
|
90398
|
-
/**
|
|
90399
|
-
* Group events by their local date (YYYY-MM-DD key in each event's own
|
|
90400
|
-
* timezone). Thin domain wrapper over `groupItemsByDate` from the calendar
|
|
90401
|
-
* package; preserves the historical `Map<string, PublicEvent[]>` shape.
|
|
90402
|
-
*/
|
|
90403
|
-
function groupEventsByDate(events, calendarTimeZone) {
|
|
90404
|
-
const grouped = groupItemsByDate(events, {
|
|
90405
|
-
getStartsAt: (event) => event.startsAt,
|
|
90406
|
-
getTimeZone: () => calendarTimeZone
|
|
90407
|
-
});
|
|
90408
|
-
return new Map([...grouped].map(([dateKey, bucket]) => [dateKey, [...bucket]]));
|
|
90409
|
-
}
|
|
90410
|
-
/** Stable local-day identity shared by ledger continuations and day groups. */
|
|
90411
|
-
function eventLocalDateKey(event) {
|
|
90412
|
-
return getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
90413
|
-
startsAt: event.startsAt,
|
|
90414
|
-
timeZone: resolveBookingBusinessTimeZone(event.timeZone),
|
|
90415
|
-
locale: "en-GB"
|
|
90416
|
-
}));
|
|
90417
|
-
}
|
|
90418
|
-
/** Full weekday and the existing zone-aware time range for a weekly running list. */
|
|
90419
|
-
function formatEventWeekdayTime(event) {
|
|
90420
|
-
const options = eventDateOptions(event);
|
|
90421
|
-
return `${formatDate$4({
|
|
90422
|
-
kind: "instant",
|
|
90423
|
-
value: toUtcIsoDateTimeString(event.startsAt)
|
|
90424
|
-
}, options, {
|
|
90425
|
-
date: "omit",
|
|
90426
|
-
weekday: "long",
|
|
90427
|
-
year: "omit"
|
|
90428
|
-
})} · ${formatEventTimeRange(event, options)}`;
|
|
90429
|
-
}
|
|
90430
90707
|
//#endregion
|
|
90431
90708
|
//#region ../blocks/src/system/runtime/nodes/events/domain/duration.ts
|
|
90432
90709
|
function formatEventDuration(event, style = "legacy") {
|
|
@@ -90469,8 +90746,8 @@ function formatEventTeacherLine(event) {
|
|
|
90469
90746
|
* Sorting before deduplication means a duplicate occurrence keeps its earliest
|
|
90470
90747
|
* deterministic representation.
|
|
90471
90748
|
*/
|
|
90472
|
-
function selectQuickDateEvents(events) {
|
|
90473
|
-
return orderedUniqueEventOccurrences(events.filter((event) => event.bookingScope !== "whole_series" && isBookableEvent(event))).slice(0, 4);
|
|
90749
|
+
function selectQuickDateEvents(events, now) {
|
|
90750
|
+
return orderedUniqueEventOccurrences(events.filter((event) => event.bookingScope !== "whole_series" && isBookableEvent(event, now))).slice(0, 4);
|
|
90474
90751
|
}
|
|
90475
90752
|
/** Shared ordering and identity selection, independent of booking capacity. */
|
|
90476
90753
|
function orderedUniqueEventOccurrences(events) {
|
|
@@ -94102,6 +94379,7 @@ function bookingCalendar(event, outcome) {
|
|
|
94102
94379
|
function toRegistrationEvent(event) {
|
|
94103
94380
|
return {
|
|
94104
94381
|
...event,
|
|
94382
|
+
...bookingCloseLine(openBookingLine(event)),
|
|
94105
94383
|
selectionId: event.id,
|
|
94106
94384
|
registrationSubject: {
|
|
94107
94385
|
kind: "occurrence",
|
|
@@ -94109,6 +94387,9 @@ function toRegistrationEvent(event) {
|
|
|
94109
94387
|
}
|
|
94110
94388
|
};
|
|
94111
94389
|
}
|
|
94390
|
+
function bookingCloseLine(line) {
|
|
94391
|
+
return line ? { bookingCloseLine: line } : {};
|
|
94392
|
+
}
|
|
94112
94393
|
function toRegistrationEvents(events) {
|
|
94113
94394
|
return events.filter((event) => event.bookingScope === "single_occurrence").map(toRegistrationEvent);
|
|
94114
94395
|
}
|
|
@@ -94127,6 +94408,7 @@ function toWholeSeriesRegistrationEvent(group) {
|
|
|
94127
94408
|
const lastSession = sessions[sessions.length - 1] ?? firstSession;
|
|
94128
94409
|
return {
|
|
94129
94410
|
...representative,
|
|
94411
|
+
...bookingCloseLine(openRunBookingLine(run)),
|
|
94130
94412
|
selectionId: run.eventSeriesId,
|
|
94131
94413
|
registrationSubject: {
|
|
94132
94414
|
kind: "wholeSeries",
|
|
@@ -94796,6 +95078,11 @@ function resolveWaitlistClaimRestoration(input) {
|
|
|
94796
95078
|
message: "This waiting list invitation is for a different event. Please open the link in your invitation email."
|
|
94797
95079
|
};
|
|
94798
95080
|
}
|
|
95081
|
+
/** A place held on a run or date that's closed is still theirs, so it stays on the list they see. */
|
|
95082
|
+
function withOfferedEvent(choices, invitation) {
|
|
95083
|
+
const offered = invitation.kind === "ready" ? invitation.restoration.event : null;
|
|
95084
|
+
return offered && !choices.some((event) => event.selectionId === offered.selectionId) ? [offered, ...choices] : choices;
|
|
95085
|
+
}
|
|
94799
95086
|
//#endregion
|
|
94800
95087
|
//#region ../blocks/src/system/runtime/nodes/event-registration/registrationBrowserDraft.ts
|
|
94801
95088
|
const browserDraftSteps = [
|
|
@@ -97402,7 +97689,7 @@ function resolveEventRegistrationChoices(events, context, now) {
|
|
|
97402
97689
|
const runs = groupPublicEventsByRun(scoped);
|
|
97403
97690
|
if (context.occurrenceContext || context.subject?.kind === "eventSeries" && context.subject.bookingScope === "whole_series" || runs.length === 1 && scoped.every((event) => event.bookingScope === "whole_series")) return scoped;
|
|
97404
97691
|
const eligibleRunIds = new Set(runs.filter((group) => resolveWholeSeriesChooserEligibility(group, now).kind === "eligible").map((group) => group.eventSeriesId));
|
|
97405
|
-
return scoped.filter((event) => event.bookingScope === "whole_series" ? eligibleRunIds.has(event.seriesId) : Date.parse(event.startsAt) > now.getTime());
|
|
97692
|
+
return scoped.filter((event) => event.bookingScope === "whole_series" ? eligibleRunIds.has(event.seriesId) : Date.parse(event.startsAt) > now.getTime() && !hasEventBookingClosedEarly(event, now));
|
|
97406
97693
|
}
|
|
97407
97694
|
//#endregion
|
|
97408
97695
|
//#region ../blocks/src/system/runtime/nodes/shared/contract-schemas.ts
|
|
@@ -97607,7 +97894,7 @@ function closedRegistrationCopy(source, events) {
|
|
|
97607
97894
|
if (hasCancelledRegistrationDate(events, source.occurrenceContext?.id)) return cancelledDateCopy;
|
|
97608
97895
|
const selectedRun = resolveSelectedWholeSeriesRun(events);
|
|
97609
97896
|
const phase = selectedRun ? resolveWholeSeriesBookingPhase(selectedRun.run, new Date(source.now)) : null;
|
|
97610
|
-
return phase?.kind === "closed" ? closedRunCopy(phase.reason) : null;
|
|
97897
|
+
return phase?.kind === "closed" ? closedRunCopy(phase.reason, selectedRun?.run) : null;
|
|
97611
97898
|
}
|
|
97612
97899
|
function buildEventRegistrationShellStepLabels(source, scopedSourceEvents) {
|
|
97613
97900
|
const selectedRun = resolveSelectedWholeSeriesRun(scopedSourceEvents);
|
|
@@ -101860,8 +102147,8 @@ function EventQuickDates({ events, pathname, buttonVariant = "primary", dateStyl
|
|
|
101860
102147
|
* Null when the date has no registration path (closed, paused, not open yet,
|
|
101861
102148
|
* no registration, or full with no waitlist), so no caller repeats that gate.
|
|
101862
102149
|
*/
|
|
101863
|
-
function eventDateBookingLink(event, pathname, dateLabel) {
|
|
101864
|
-
if (!isBookableEvent(event)) return null;
|
|
102150
|
+
function eventDateBookingLink(event, pathname, dateLabel, now) {
|
|
102151
|
+
if (!isBookableEvent(event, now)) return null;
|
|
101865
102152
|
const cta = resolveEventCta(event);
|
|
101866
102153
|
return {
|
|
101867
102154
|
href: resolveRuntimeEventDestination(event).kind === "external" ? cta.href : resolveDedicatedBookingHref(pathname, {
|
|
@@ -117359,6 +117646,7 @@ function bookingClosedReason(reason) {
|
|
|
117359
117646
|
case "cancelled": return "These dates have been cancelled.";
|
|
117360
117647
|
case "in-progress": return "Bookings closed when the first session began.";
|
|
117361
117648
|
case "completed": return "These dates have finished.";
|
|
117649
|
+
case "bookings-closed":
|
|
117362
117650
|
case "enrolment-closed": return "Bookings for these dates have closed.";
|
|
117363
117651
|
case "no-sessions": return "No dates are currently scheduled.";
|
|
117364
117652
|
}
|
|
@@ -118030,12 +118318,12 @@ function cardsListDates(props) {
|
|
|
118030
118318
|
return props.lookSlots !== void 0 && props.datesMode === "next-dates";
|
|
118031
118319
|
}
|
|
118032
118320
|
/** One offering has room for a Book link on each date; several keep plain rows. */
|
|
118033
|
-
function catalogueDateBooking(shape, pathname) {
|
|
118034
|
-
return shape === "single" ? (event, dateLabel) => eventDateBookingLink(event, pathname ?? "/", dateLabel) : void 0;
|
|
118321
|
+
function catalogueDateBooking(shape, pathname, now) {
|
|
118322
|
+
return shape === "single" ? (event, dateLabel) => eventDateBookingLink(event, pathname ?? "/", dateLabel, now) : void 0;
|
|
118035
118323
|
}
|
|
118036
118324
|
function renderOfferingsCatalogueGroups({ props, groups, shape }) {
|
|
118037
118325
|
const enabledSeriesIds = new Set(groups.flatMap((load) => load.kind === "items" ? load.items.map((item) => item.kind === "event" ? item.event.seriesId : item.run.eventSeriesId) : []));
|
|
118038
|
-
const quickDateEvents = cardsListDates(props) ? [] : selectQuickDateEvents((props.quickDateEvents ?? []).filter((event) => enabledSeriesIds.has(event.seriesId)));
|
|
118326
|
+
const quickDateEvents = cardsListDates(props) ? [] : selectQuickDateEvents((props.quickDateEvents ?? []).filter((event) => enabledSeriesIds.has(event.seriesId)), props.now);
|
|
118039
118327
|
const populated = groups.flatMap(catalogueGroupItems);
|
|
118040
118328
|
const frames = listGroupFrames(props);
|
|
118041
118329
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -118098,7 +118386,7 @@ function renderCatalogueItems({ props, items, shape, groupTitle }) {
|
|
|
118098
118386
|
}
|
|
118099
118387
|
/** Dates are a display sample; the series card never infers availability from them. */
|
|
118100
118388
|
function catalogueDates(events, now, shape, pathname) {
|
|
118101
|
-
return offeringDatesBySeries(events, now, catalogueDateBooking(shape, pathname));
|
|
118389
|
+
return offeringDatesBySeries(events, now, catalogueDateBooking(shape, pathname, now));
|
|
118102
118390
|
}
|
|
118103
118391
|
function catalogueCardContent(item, now, dates, typeLabel) {
|
|
118104
118392
|
const event = item.kind === "event" ? item.event : item.run.representative;
|
|
@@ -120873,7 +121161,11 @@ function EventBookingPanelBody({ panel }) {
|
|
|
120873
121161
|
});
|
|
120874
121162
|
case "dropIn": return /* @__PURE__ */ jsx(DropInPanel, { panel: panel.panel });
|
|
120875
121163
|
case "bookingClosed": return /* @__PURE__ */ jsx(BookingClosedPanel, { detail: panel.detail });
|
|
120876
|
-
case "closedRun": return /* @__PURE__ */ jsx(ClosedRunPanel, {
|
|
121164
|
+
case "closedRun": return /* @__PURE__ */ jsx(ClosedRunPanel, { copy: closedRunCopy(panel.reason, panel.run) });
|
|
121165
|
+
case "closedDate": return /* @__PURE__ */ jsx(ClosedRunPanel, {
|
|
121166
|
+
copy: panel.copy,
|
|
121167
|
+
otherDatesHref: panel.copy.otherDatesHref
|
|
121168
|
+
});
|
|
120877
121169
|
case "single": return /* @__PURE__ */ jsx(SingleDateBooking, { run: panel.run });
|
|
120878
121170
|
case "choice": return /* @__PURE__ */ jsx(RunChooser, { runs: panel.runs });
|
|
120879
121171
|
case "unavailable": return /* @__PURE__ */ jsxs("div", {
|
|
@@ -120945,17 +121237,27 @@ function BookingClosedPanel({ detail }) {
|
|
|
120945
121237
|
});
|
|
120946
121238
|
}
|
|
120947
121239
|
/** Dates that cannot be booked keep their details and say why. */
|
|
120948
|
-
function ClosedRunPanel({
|
|
120949
|
-
const copy = closedRunCopy(reason);
|
|
121240
|
+
function ClosedRunPanel({ copy, otherDatesHref }) {
|
|
120950
121241
|
return /* @__PURE__ */ jsxs("div", {
|
|
120951
121242
|
className: "event-booking-panel__closed-run",
|
|
120952
|
-
children: [
|
|
120953
|
-
|
|
120954
|
-
|
|
120955
|
-
|
|
120956
|
-
|
|
120957
|
-
|
|
120958
|
-
|
|
121243
|
+
children: [
|
|
121244
|
+
/* @__PURE__ */ jsx("h2", {
|
|
121245
|
+
className: "card-title rb-mb-3",
|
|
121246
|
+
children: copy.titleText
|
|
121247
|
+
}),
|
|
121248
|
+
/* @__PURE__ */ jsx("p", {
|
|
121249
|
+
className: "status-muted rb-text-base rb-leading-relaxed",
|
|
121250
|
+
children: copy.bodyText
|
|
121251
|
+
}),
|
|
121252
|
+
otherDatesHref ? /* @__PURE__ */ jsx("p", {
|
|
121253
|
+
className: "rb-mt-4 rb-text-base",
|
|
121254
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
121255
|
+
className: "rb-underline",
|
|
121256
|
+
href: otherDatesHref,
|
|
121257
|
+
children: "See the other dates"
|
|
121258
|
+
})
|
|
121259
|
+
}) : null
|
|
121260
|
+
]
|
|
120959
121261
|
});
|
|
120960
121262
|
}
|
|
120961
121263
|
/**
|
|
@@ -121089,40 +121391,53 @@ function planEventBookingPanel({ selection, subject }, now) {
|
|
|
121089
121391
|
...nonBookingPanel,
|
|
121090
121392
|
registration
|
|
121091
121393
|
};
|
|
121092
|
-
|
|
121093
|
-
|
|
121094
|
-
kind: "closedRun",
|
|
121095
|
-
reason: phase.reason,
|
|
121096
|
-
registration
|
|
121097
|
-
} : {
|
|
121098
|
-
kind: "registration",
|
|
121394
|
+
return {
|
|
121395
|
+
...closedDatePanel(selection, now) ?? closedRunPanel(selection, now) ?? { kind: "registration" },
|
|
121099
121396
|
registration
|
|
121100
121397
|
};
|
|
121101
121398
|
}
|
|
121102
121399
|
case "wholeSeriesParent": {
|
|
121400
|
+
const registration = parentRegistrationTarget(selection, subject);
|
|
121103
121401
|
if (nonBookingPanel) return {
|
|
121104
121402
|
...nonBookingPanel,
|
|
121105
|
-
registration
|
|
121403
|
+
registration
|
|
121106
121404
|
};
|
|
121107
121405
|
const panel = planWholeSeriesParentBooking(selection.eligibleRuns);
|
|
121108
121406
|
return panel.kind === "bookTogether" ? {
|
|
121109
121407
|
kind: "registration",
|
|
121110
|
-
registration
|
|
121111
|
-
events: panel.runs.map((run) => run.representative),
|
|
121112
|
-
subject,
|
|
121113
|
-
occurrenceContext: null
|
|
121114
|
-
}
|
|
121408
|
+
registration
|
|
121115
121409
|
} : {
|
|
121116
121410
|
...panel,
|
|
121117
|
-
registration
|
|
121411
|
+
registration
|
|
121118
121412
|
};
|
|
121119
121413
|
}
|
|
121120
121414
|
case "wholeSeriesParentUnavailable": return {
|
|
121121
121415
|
...nonBookingPanel ?? { kind: "unavailable" },
|
|
121122
|
-
registration:
|
|
121416
|
+
registration: parentRegistrationTarget(selection, subject)
|
|
121123
121417
|
};
|
|
121124
121418
|
}
|
|
121125
121419
|
}
|
|
121420
|
+
/**
|
|
121421
|
+
* A date past its cut-off, however old the page's data is. A list of dates only
|
|
121422
|
+
* closes when every date has: until then the closed ones just leave the list.
|
|
121423
|
+
*/
|
|
121424
|
+
function closedRunPanel(selection, now) {
|
|
121425
|
+
if (selection.kind !== "wholeSeriesRun") return null;
|
|
121426
|
+
const phase = resolveWholeSeriesBookingPhase(selection.run.run, now);
|
|
121427
|
+
return phase.kind === "closed" ? {
|
|
121428
|
+
kind: "closedRun",
|
|
121429
|
+
reason: phase.reason,
|
|
121430
|
+
run: selection.run.run
|
|
121431
|
+
} : null;
|
|
121432
|
+
}
|
|
121433
|
+
function closedDatePanel(selection, now) {
|
|
121434
|
+
if (selection.kind === "wholeSeriesRun") return null;
|
|
121435
|
+
const copy = selection.kind === "occurrence" ? closedDateCopy(selection.event, now) : closedDatesCopy(selection.dates, now);
|
|
121436
|
+
return copy ? {
|
|
121437
|
+
kind: "closedDate",
|
|
121438
|
+
copy
|
|
121439
|
+
} : null;
|
|
121440
|
+
}
|
|
121126
121441
|
/** Drop-in and page-level closure take precedence over fresh booking and run selection. */
|
|
121127
121442
|
function planNonBookingPanel(selection) {
|
|
121128
121443
|
if (!selectionRepresentativeEvent(selection).requiresRegistration) return {
|
|
@@ -121154,13 +121469,25 @@ function selectionRegistrationTarget(selection, subject) {
|
|
|
121154
121469
|
};
|
|
121155
121470
|
}
|
|
121156
121471
|
}
|
|
121472
|
+
/**
|
|
121473
|
+
* Every run the course page admits, not just those still taking bookings. An
|
|
121474
|
+
* invitation emailed for a run links here, and stays good after that run closes.
|
|
121475
|
+
* The wizard narrows these to the runs it offers for a new booking.
|
|
121476
|
+
*/
|
|
121477
|
+
function parentRegistrationTarget(selection, subject) {
|
|
121478
|
+
return {
|
|
121479
|
+
events: selection.admittedRuns.map((run) => run.representative),
|
|
121480
|
+
occurrenceContext: null,
|
|
121481
|
+
subject
|
|
121482
|
+
};
|
|
121483
|
+
}
|
|
121157
121484
|
/** Cancelled dates have no new-booking or recovery form, including old direct links. */
|
|
121158
121485
|
function isCancelledDateSelection(selection) {
|
|
121159
121486
|
return selection.kind === "occurrence" && hasCancelledRegistrationDate([selection.event]);
|
|
121160
121487
|
}
|
|
121161
121488
|
//#endregion
|
|
121162
121489
|
//#region ../blocks/src/system/runtime/nodes/event-registration/RegistrationClosedState.tsx
|
|
121163
|
-
function RegistrationClosedState({ title, body }) {
|
|
121490
|
+
function RegistrationClosedState({ title, body, otherDatesHref }) {
|
|
121164
121491
|
return /* @__PURE__ */ jsx("div", {
|
|
121165
121492
|
id: EVENT_REGISTRATION_ANCHOR_ID,
|
|
121166
121493
|
className: "rb-reg-surface er-container er-registration-closed",
|
|
@@ -121179,7 +121506,15 @@ function RegistrationClosedState({ title, body }) {
|
|
|
121179
121506
|
/* @__PURE__ */ jsx("p", {
|
|
121180
121507
|
className: "er-text er-text--muted",
|
|
121181
121508
|
children: body
|
|
121182
|
-
})
|
|
121509
|
+
}),
|
|
121510
|
+
otherDatesHref ? /* @__PURE__ */ jsx("p", {
|
|
121511
|
+
className: "er-text",
|
|
121512
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
121513
|
+
className: "rb-underline",
|
|
121514
|
+
href: otherDatesHref,
|
|
121515
|
+
children: "See the other dates"
|
|
121516
|
+
})
|
|
121517
|
+
}) : null
|
|
121183
121518
|
] })
|
|
121184
121519
|
})
|
|
121185
121520
|
});
|
|
@@ -130315,7 +130650,8 @@ function viewModeButton(variant) {
|
|
|
130315
130650
|
case "lost-with-unsaved": return DISCARD_AND_VIEW;
|
|
130316
130651
|
case "your-other-tab":
|
|
130317
130652
|
case "another-user":
|
|
130318
|
-
case "unreachable":
|
|
130653
|
+
case "unreachable":
|
|
130654
|
+
case "refused": return KEEP_VIEWING;
|
|
130319
130655
|
}
|
|
130320
130656
|
}
|
|
130321
130657
|
function sentenceStart(text) {
|
|
@@ -130346,8 +130682,38 @@ function heldElsewhereNotice(holder, thing, unsaved) {
|
|
|
130346
130682
|
}]
|
|
130347
130683
|
};
|
|
130348
130684
|
}
|
|
130685
|
+
function refusalCopy(refusal, thing) {
|
|
130686
|
+
switch (refusal) {
|
|
130687
|
+
case "forbidden": return {
|
|
130688
|
+
title: `You can't edit ${thing}`,
|
|
130689
|
+
body: "Your access to this site might have changed. Reload the page to check, and if you still can't edit, ask the site's owner or contact support."
|
|
130690
|
+
};
|
|
130691
|
+
case "not-found": return {
|
|
130692
|
+
title: `We can't open ${thing} for editing`,
|
|
130693
|
+
body: "It might have been deleted, or something might be wrong with how it's set up. Reload the page to check, and if it's still there, contact support."
|
|
130694
|
+
};
|
|
130695
|
+
case "invalid":
|
|
130696
|
+
case "required": return {
|
|
130697
|
+
title: `We can't open ${thing} for editing right now`,
|
|
130698
|
+
body: "Reload the page, and if it keeps happening, contact support."
|
|
130699
|
+
};
|
|
130700
|
+
}
|
|
130701
|
+
}
|
|
130702
|
+
function refusedNotice(refusal, thing, unsaved) {
|
|
130703
|
+
const { title, body } = refusalCopy(refusal, thing);
|
|
130704
|
+
return {
|
|
130705
|
+
variant: "refused",
|
|
130706
|
+
title,
|
|
130707
|
+
body: unsaved ? `${body} Anything you haven't saved yet might be lost.` : body,
|
|
130708
|
+
buttons: [{
|
|
130709
|
+
action: "reload",
|
|
130710
|
+
label: "Reload"
|
|
130711
|
+
}]
|
|
130712
|
+
};
|
|
130713
|
+
}
|
|
130349
130714
|
function readOnlyNotice(editability, thing, unsaved) {
|
|
130350
130715
|
if (editability.reason === "held-elsewhere") return heldElsewhereNotice(editability.holder, thing, unsaved);
|
|
130716
|
+
if (editability.reason === "refused") return refusedNotice(editability.refusal, thing, unsaved);
|
|
130351
130717
|
return {
|
|
130352
130718
|
variant: "unreachable",
|
|
130353
130719
|
title: "Editing is temporarily unavailable",
|
|
@@ -139565,8 +139931,9 @@ function BookingMailingListChoice({ booking }) {
|
|
|
139565
139931
|
//#endregion
|
|
139566
139932
|
//#region ../blocks/src/system/runtime/shared/utils/demoPortalMagicLink.ts
|
|
139567
139933
|
const CUSTOMER_PORTAL_PATH = "/portal";
|
|
139568
|
-
|
|
139569
|
-
|
|
139934
|
+
const PORTAL_CALLBACK_PATH = "/api/portal/callback";
|
|
139935
|
+
function buildPortalCallbackUrl(origin, redirectTo) {
|
|
139936
|
+
const url = new URL(PORTAL_CALLBACK_PATH, origin);
|
|
139570
139937
|
url.searchParams.set("redirect_to", redirectTo);
|
|
139571
139938
|
return url.toString();
|
|
139572
139939
|
}
|
|
@@ -141521,20 +141888,128 @@ function registrationAdmissionSurface(input) {
|
|
|
141521
141888
|
default: return assertNever$3(input.availability);
|
|
141522
141889
|
}
|
|
141523
141890
|
}
|
|
141524
|
-
/** Resolve the host guard once
|
|
141891
|
+
/** Resolve the host guard once. Bookings closing is the wizard's to decide: it owns the step. */
|
|
141525
141892
|
function resolveEventRegistrationClientSurface(input) {
|
|
141526
|
-
if (input.recoveryRequest !== "none") return
|
|
141893
|
+
if (input.recoveryRequest !== "none") return "wizard";
|
|
141527
141894
|
switch (input.plan.kind) {
|
|
141528
|
-
case "wholeSeries":
|
|
141895
|
+
case "wholeSeries":
|
|
141896
|
+
case "occurrence": return "wizard";
|
|
141529
141897
|
case "unavailableWholeSeries":
|
|
141530
|
-
case "mixedBookingScopes": return
|
|
141531
|
-
case "occurrence": return input.pastStartsAt ? {
|
|
141532
|
-
kind: "past",
|
|
141533
|
-
startsAt: input.pastStartsAt
|
|
141534
|
-
} : { kind: "wizard" };
|
|
141898
|
+
case "mixedBookingScopes": return "unavailable";
|
|
141535
141899
|
default: return assertNever$3(input.plan);
|
|
141536
141900
|
}
|
|
141537
141901
|
}
|
|
141902
|
+
function isPastOccurrence(startsAt, now) {
|
|
141903
|
+
if (!startsAt) return false;
|
|
141904
|
+
const startsAtTime = Date.parse(startsAt);
|
|
141905
|
+
if (!Number.isFinite(startsAtTime)) return false;
|
|
141906
|
+
return startsAtTime <= Date.parse(now);
|
|
141907
|
+
}
|
|
141908
|
+
/** Whether someone on this step hasn't been admitted yet, so closing stops them. */
|
|
141909
|
+
function stepStartsNewBooking(step) {
|
|
141910
|
+
switch (step) {
|
|
141911
|
+
case "select-event":
|
|
141912
|
+
case "select-tickets":
|
|
141913
|
+
case "enter-details":
|
|
141914
|
+
case "select-payment": return true;
|
|
141915
|
+
case "submitting":
|
|
141916
|
+
case "payment":
|
|
141917
|
+
case "verifying-payment":
|
|
141918
|
+
case "verifying-timeout":
|
|
141919
|
+
case "payment-status":
|
|
141920
|
+
case "payment-failed":
|
|
141921
|
+
case "error":
|
|
141922
|
+
case "success": return false;
|
|
141923
|
+
default: return assertNever$3(step);
|
|
141924
|
+
}
|
|
141925
|
+
}
|
|
141926
|
+
const FRESH_BOOKING_OPEN = { kind: "open" };
|
|
141927
|
+
/**
|
|
141928
|
+
* Whether this page has stopped taking new bookings, by the clock: a date's page
|
|
141929
|
+
* when that date closes or starts, a course run's when the run closes, and a page
|
|
141930
|
+
* with several to choose from when none of them is left.
|
|
141931
|
+
*
|
|
141932
|
+
* Closing only stops someone starting: a person with a checkout under way, a
|
|
141933
|
+
* confirmation on screen, a place held for them or a payment to come back to
|
|
141934
|
+
* keeps it, whenever the date closes or starts around them.
|
|
141935
|
+
*/
|
|
141936
|
+
function resolveFreshBookingClosure(input) {
|
|
141937
|
+
if (input.holdsPlace || input.recoveryRequest !== "none" || !stepStartsNewBooking(input.step)) return { kind: "underway" };
|
|
141938
|
+
const { events, occurrenceContext, subject } = input;
|
|
141939
|
+
const plan = planEventRegistrationSurface({
|
|
141940
|
+
events,
|
|
141941
|
+
occurrenceContext,
|
|
141942
|
+
subject
|
|
141943
|
+
});
|
|
141944
|
+
switch (plan.kind) {
|
|
141945
|
+
case "wholeSeries": return closedRunsClosure(plan.runs, new Date(input.now));
|
|
141946
|
+
case "occurrence": return occurrenceContext ? datePageClosure(events, occurrenceContext, input.now) : closedEarlyClosure(closedDatesCopy(plan.events, new Date(input.now)));
|
|
141947
|
+
case "unavailableWholeSeries":
|
|
141948
|
+
case "mixedBookingScopes": return FRESH_BOOKING_OPEN;
|
|
141949
|
+
default: return assertNever$3(plan);
|
|
141950
|
+
}
|
|
141951
|
+
}
|
|
141952
|
+
function closedEarlyClosure(copy) {
|
|
141953
|
+
return copy ? {
|
|
141954
|
+
kind: "closedEarly",
|
|
141955
|
+
copy
|
|
141956
|
+
} : FRESH_BOOKING_OPEN;
|
|
141957
|
+
}
|
|
141958
|
+
function datePageClosure(events, occurrenceContext, now) {
|
|
141959
|
+
const date = events.find((event) => event.occurrenceId === occurrenceContext.id);
|
|
141960
|
+
const copy = date ? closedDateCopy(date, new Date(now)) : null;
|
|
141961
|
+
if (copy) return {
|
|
141962
|
+
kind: "closedEarly",
|
|
141963
|
+
copy
|
|
141964
|
+
};
|
|
141965
|
+
return isPastOccurrence(occurrenceContext.startsAt, now) ? {
|
|
141966
|
+
kind: "started",
|
|
141967
|
+
startsAt: occurrenceContext.startsAt
|
|
141968
|
+
} : FRESH_BOOKING_OPEN;
|
|
141969
|
+
}
|
|
141970
|
+
/** One run speaks for itself; several say so together, since each closed at its own time. */
|
|
141971
|
+
function closedRunsClosure(runs, now) {
|
|
141972
|
+
const closed = runs.flatMap(({ run }) => {
|
|
141973
|
+
const phase = resolveWholeSeriesBookingPhase(run, now);
|
|
141974
|
+
return phase.kind === "closed" ? [{
|
|
141975
|
+
run,
|
|
141976
|
+
reason: phase.reason
|
|
141977
|
+
}] : [];
|
|
141978
|
+
});
|
|
141979
|
+
const [first] = closed;
|
|
141980
|
+
if (!first || closed.length < runs.length) return FRESH_BOOKING_OPEN;
|
|
141981
|
+
return {
|
|
141982
|
+
kind: "closedEarly",
|
|
141983
|
+
copy: {
|
|
141984
|
+
...closed.length === 1 ? closedRunCopy(first.reason, first.run) : closedRunCopy("bookings-closed"),
|
|
141985
|
+
otherDatesHref: null
|
|
141986
|
+
}
|
|
141987
|
+
};
|
|
141988
|
+
}
|
|
141989
|
+
/**
|
|
141990
|
+
* The moment that decision next changes while the page stays open. With several
|
|
141991
|
+
* to choose from that's when the last of them closes: the chooser's own clock
|
|
141992
|
+
* takes each one off the list before then.
|
|
141993
|
+
*/
|
|
141994
|
+
function nextFreshBookingBoundary(events, occurrenceContext, subject) {
|
|
141995
|
+
const plan = planEventRegistrationSurface({
|
|
141996
|
+
events,
|
|
141997
|
+
occurrenceContext,
|
|
141998
|
+
subject
|
|
141999
|
+
});
|
|
142000
|
+
switch (plan.kind) {
|
|
142001
|
+
case "wholeSeries": return latestInstant(plan.runs.map(({ run }) => run.bookingClosesAt ?? orderedLiveRunSessions(run.sessions)[0]?.startsAt));
|
|
142002
|
+
case "occurrence":
|
|
142003
|
+
if (!occurrenceContext) return latestInstant(plan.events.map((date) => date.bookingClosesAt ?? date.startsAt));
|
|
142004
|
+
return events.find((event) => event.occurrenceId === occurrenceContext.id)?.bookingClosesAt ?? occurrenceContext.startsAt;
|
|
142005
|
+
case "unavailableWholeSeries":
|
|
142006
|
+
case "mixedBookingScopes": return null;
|
|
142007
|
+
default: return assertNever$3(plan);
|
|
142008
|
+
}
|
|
142009
|
+
}
|
|
142010
|
+
function latestInstant(instants) {
|
|
142011
|
+
return instants.reduce((latest, instant) => instant && (latest === null || Date.parse(instant) > Date.parse(latest)) ? instant : latest, null);
|
|
142012
|
+
}
|
|
141538
142013
|
/**
|
|
141539
142014
|
* Whether a run agrees with the offering whose page it arrived on.
|
|
141540
142015
|
*
|
|
@@ -142564,7 +143039,8 @@ function eligibilityRequest(params) {
|
|
|
142564
143039
|
pricingOptionId,
|
|
142565
143040
|
quantity
|
|
142566
143041
|
})),
|
|
142567
|
-
selectedSlidingAmount: params.selectedSlidingAmount ?? void 0
|
|
143042
|
+
selectedSlidingAmount: params.selectedSlidingAmount ?? void 0,
|
|
143043
|
+
...params.waitlistClaim ? { waitlistClaim: params.waitlistClaim } : {}
|
|
142568
143044
|
};
|
|
142569
143045
|
}
|
|
142570
143046
|
/** One effective union owns readiness, including the pre-fetch debounce window. */
|
|
@@ -143492,6 +143968,17 @@ function useSelectionCombinationPricing(input) {
|
|
|
143492
143968
|
};
|
|
143493
143969
|
}
|
|
143494
143970
|
//#endregion
|
|
143971
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/useEventRegistrationRecoveryRequest.ts
|
|
143972
|
+
/** Retain arrival intent while the payment controller cleans up the return URL. */
|
|
143973
|
+
function useEventRegistrationRecoveryRequest() {
|
|
143974
|
+
const [arrival] = useState(() => {
|
|
143975
|
+
if (typeof window === "undefined") return "none";
|
|
143976
|
+
if (eventRegistrationCheckoutReturnRequest(new URLSearchParams(window.location.search))) return "paymentReturn";
|
|
143977
|
+
return getWaitlistClaimTokenFromUrl() || getWaitlistClaimEntryIdFromUrl() ? "waitlistInvitation" : "none";
|
|
143978
|
+
});
|
|
143979
|
+
return arrival;
|
|
143980
|
+
}
|
|
143981
|
+
//#endregion
|
|
143495
143982
|
//#region ../blocks/src/system/runtime/nodes/event-registration/useSettledCommerceView.ts
|
|
143496
143983
|
function buildCandidate(input) {
|
|
143497
143984
|
if (!input.eligibilityIsSettled || !input.eligibility || !input.currentEvent) return null;
|
|
@@ -144109,16 +144596,54 @@ function useEventRegistrationWizard(options) {
|
|
|
144109
144596
|
return useEventRegistrationWizardWithDeps(options, eventRegistrationWizardDeps);
|
|
144110
144597
|
}
|
|
144111
144598
|
const CHOOSER_CLOCK = { kind: "relative" };
|
|
144599
|
+
/** The wizard owns the step, so it owns whether the clock has stopped this visitor starting a booking. */
|
|
144600
|
+
function useFreshBookingClosure(deps, options, events, step, visitorHoldsPlace) {
|
|
144601
|
+
const recoveryRequest = useEventRegistrationRecoveryRequest();
|
|
144602
|
+
const nextBoundary = useMemo(() => nextFreshBookingBoundary(events, options.occurrenceContext, options.subject), [
|
|
144603
|
+
events,
|
|
144604
|
+
options.occurrenceContext,
|
|
144605
|
+
options.subject
|
|
144606
|
+
]);
|
|
144607
|
+
const now = deps.useBookingNowIso(options.now, {
|
|
144608
|
+
kind: "presentation",
|
|
144609
|
+
nextBoundary
|
|
144610
|
+
});
|
|
144611
|
+
return resolveFreshBookingClosure({
|
|
144612
|
+
step,
|
|
144613
|
+
holdsPlace: visitorHoldsPlace,
|
|
144614
|
+
recoveryRequest,
|
|
144615
|
+
events,
|
|
144616
|
+
occurrenceContext: options.occurrenceContext,
|
|
144617
|
+
subject: options.subject,
|
|
144618
|
+
now
|
|
144619
|
+
});
|
|
144620
|
+
}
|
|
144621
|
+
function holdsPlace(claim, payment) {
|
|
144622
|
+
return claim.kind !== "none" || payment.retryingHeldPlace;
|
|
144623
|
+
}
|
|
144624
|
+
/** A date that has closed has nothing to quote for a new booking. */
|
|
144625
|
+
function bookingClosureAllowsQuote(closure, wanted) {
|
|
144626
|
+
return closure.kind !== "closedEarly" && closure.kind !== "started" && wanted;
|
|
144627
|
+
}
|
|
144628
|
+
function waitlistClaimCredential(claim) {
|
|
144629
|
+
return claim.kind === "none" ? null : claim.request.credential;
|
|
144630
|
+
}
|
|
144112
144631
|
/**
|
|
144113
144632
|
* Preserve source availability through event adaptation and page scoping.
|
|
144114
144633
|
*
|
|
144115
144634
|
* `choiceNowIso` is the chooser's clock: it starts at the server snapshot so hydration matches, then
|
|
144116
144635
|
* follows the browser, so a date that starts while the page is open leaves the chooser.
|
|
144117
|
-
* `registrationEvents` stays the full set, so payment recovery still finds a date that has started
|
|
144636
|
+
* `registrationEvents` stays the full set, so payment recovery still finds a date that has started,
|
|
144637
|
+
* and `recoveryEvents` is that set within this page, so an invitation finds a run that has closed.
|
|
144118
144638
|
*/
|
|
144119
144639
|
function useRegistrationEventSource(options, choiceNowIso) {
|
|
144120
144640
|
const events = options.eventSource.kind === "ready" ? options.eventSource.events : NO_EVENTS;
|
|
144121
144641
|
const registrationEvents = useMemo(() => [...toRegistrationEvents(events), ...toWholeSeriesRegistrationEvents(events)], [events]);
|
|
144642
|
+
const scopeOfPage = [
|
|
144643
|
+
options.occurrenceContext?.seriesId,
|
|
144644
|
+
options.subject?.kind,
|
|
144645
|
+
options.subject?.kind === "eventSeries" ? options.subject.eventSeriesId : options.subject?.kind === "eventOffering" ? `${options.subject.eventOfferingId}:${options.subject.catalogueEventSeriesIds.join(",")}` : options.subject?.reason
|
|
144646
|
+
].join("|");
|
|
144122
144647
|
const choiceKey = useMemo(() => {
|
|
144123
144648
|
const choices = resolveEventRegistrationChoices(events, {
|
|
144124
144649
|
occurrenceContext: options.occurrenceContext,
|
|
@@ -144128,22 +144653,25 @@ function useRegistrationEventSource(options, choiceNowIso) {
|
|
|
144128
144653
|
}, [
|
|
144129
144654
|
events,
|
|
144130
144655
|
choiceNowIso,
|
|
144131
|
-
|
|
144132
|
-
options.subject?.kind,
|
|
144133
|
-
options.subject?.kind === "eventSeries" ? options.subject.eventSeriesId : options.subject?.kind === "eventOffering" ? `${options.subject.eventOfferingId}:${options.subject.catalogueEventSeriesIds.join(",")}` : options.subject?.reason
|
|
144656
|
+
scopeOfPage
|
|
144134
144657
|
]);
|
|
144135
144658
|
const scopedEvents = useMemo(() => {
|
|
144136
144659
|
const choiceIds = new Set(choiceKey.split("\n"));
|
|
144137
144660
|
return registrationEvents.filter((event) => choiceIds.has(event.selectionId));
|
|
144138
144661
|
}, [registrationEvents, choiceKey]);
|
|
144662
|
+
const recoveryEvents = useMemo(() => resolveEventRegistrationScopedEvents(registrationEvents, {
|
|
144663
|
+
occurrenceContext: options.occurrenceContext,
|
|
144664
|
+
subject: options.subject
|
|
144665
|
+
}), [registrationEvents, scopeOfPage]);
|
|
144139
144666
|
return {
|
|
144140
144667
|
events,
|
|
144141
144668
|
registrationEvents,
|
|
144669
|
+
recoveryEvents,
|
|
144142
144670
|
scopedEvents,
|
|
144143
|
-
|
|
144671
|
+
claimEventSource: useMemo(() => options.eventSource.kind === "ready" ? {
|
|
144144
144672
|
kind: "ready",
|
|
144145
|
-
events:
|
|
144146
|
-
} : options.eventSource, [options.eventSource,
|
|
144673
|
+
events: recoveryEvents
|
|
144674
|
+
} : options.eventSource, [options.eventSource, recoveryEvents])
|
|
144147
144675
|
};
|
|
144148
144676
|
}
|
|
144149
144677
|
/** A signed-in booker's email is their verified identity, never a draft copy. */
|
|
@@ -144158,7 +144686,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
144158
144686
|
const api = useBlockApi();
|
|
144159
144687
|
const arrivalCredential = deps.useWaitlistClaimCredential();
|
|
144160
144688
|
const nowIso = deps.useBookingNowIso(options.now);
|
|
144161
|
-
const { events, registrationEvents, scopedEvents,
|
|
144689
|
+
const { events, registrationEvents, recoveryEvents, scopedEvents, claimEventSource } = useRegistrationEventSource(options, deps.useBookingNowIso(options.now, CHOOSER_CLOCK));
|
|
144162
144690
|
const preSelectedEvent = useMemo(() => findPreSelectedEvent({
|
|
144163
144691
|
scopedEvents,
|
|
144164
144692
|
occurrenceContext: options.occurrenceContext
|
|
@@ -144269,12 +144797,12 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
144269
144797
|
if (claimLookup) dispatchFlow({
|
|
144270
144798
|
type: "claim-updated",
|
|
144271
144799
|
lookup: claimLookup,
|
|
144272
|
-
events:
|
|
144800
|
+
events: claimEventSource,
|
|
144273
144801
|
occurrenceContextId: options.occurrenceContext?.id
|
|
144274
144802
|
});
|
|
144275
144803
|
}, [
|
|
144276
144804
|
claimLookup,
|
|
144277
|
-
|
|
144805
|
+
claimEventSource,
|
|
144278
144806
|
options.occurrenceContext?.id
|
|
144279
144807
|
]);
|
|
144280
144808
|
const errorMessage = waitlistClaim.kind === "error" ? waitlistClaim.message : submissionErrorMessage;
|
|
@@ -144347,14 +144875,16 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
144347
144875
|
detailsInPage: () => Object.keys(validateFormData(formData)).length === 0
|
|
144348
144876
|
});
|
|
144349
144877
|
const { recovery: paymentStatusRecovery, showRecovery: setPaymentStatusRecovery, check: handleCheckPaymentStatus, continuePayment: handleContinueExistingPayment, returnToPayment: handleReturnToPayment, returnToBooking: handleReturnToBooking } = paymentController;
|
|
144878
|
+
const bookingClosure = useFreshBookingClosure(deps, options, events, step, holdsPlace(waitlistClaim, paymentController));
|
|
144350
144879
|
const eligibilityResult = deps.useEligibility({
|
|
144351
144880
|
refreshKey: optionsRefreshKey,
|
|
144352
|
-
enabled: shouldRefreshAfterRegistrationError(step, errorAction, shouldLoadRegistrationOptions(portalAuthState, step)),
|
|
144881
|
+
enabled: bookingClosureAllowsQuote(bookingClosure, shouldRefreshAfterRegistrationError(step, errorAction, shouldLoadRegistrationOptions(portalAuthState, step))),
|
|
144353
144882
|
subject: registrationTarget?.subject ?? null,
|
|
144354
144883
|
attendanceMode: selectedAttendanceMode,
|
|
144355
144884
|
ticketSelections,
|
|
144356
144885
|
selectedSlidingAmount: parseCurrencyInputToCents(selectedSlidingAmountInput),
|
|
144357
|
-
subjectEmail: getPortalSubjectEmail(portalProfile)
|
|
144886
|
+
subjectEmail: getPortalSubjectEmail(portalProfile),
|
|
144887
|
+
waitlistClaim: waitlistClaimCredential(waitlistClaim)
|
|
144358
144888
|
});
|
|
144359
144889
|
const existingRegistrationResult = deps.useExistingEventRegistration({
|
|
144360
144890
|
isAuthenticated: portalAuthState === "authenticated",
|
|
@@ -144976,6 +145506,8 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
144976
145506
|
...registrationNavigation.presentation,
|
|
144977
145507
|
api,
|
|
144978
145508
|
nowIso,
|
|
145509
|
+
/** Whether the clock has stopped this visitor starting a booking on this page. */
|
|
145510
|
+
bookingClosure,
|
|
144979
145511
|
directPaymentOptions,
|
|
144980
145512
|
paymentDecision,
|
|
144981
145513
|
anchorId: options.anchorId,
|
|
@@ -144984,7 +145516,10 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
144984
145516
|
subject: options.subject,
|
|
144985
145517
|
events,
|
|
144986
145518
|
maxTicketsNum: waitlistClaim.kind === "ready" ? waitlistClaim.restoration.ticketsCount : options.maxTicketsNum,
|
|
144987
|
-
|
|
145519
|
+
/** The new-booking choices, plus the run or date an invitation holds a place on. */
|
|
145520
|
+
scopedEvents: withOfferedEvent(scopedEvents, waitlistClaim),
|
|
145521
|
+
/** Everything on this page a booking could be for, whether or not it's still a choice. */
|
|
145522
|
+
recoveryEvents,
|
|
144988
145523
|
preSelectedEvent: preSelectedDisplayEvent(preSelectedEvent, currentEvent, displayEvent),
|
|
144989
145524
|
hasPreSelectedContext,
|
|
144990
145525
|
presentation,
|
|
@@ -147413,16 +147948,20 @@ const EventSelectionStep = (props) => {
|
|
|
147413
147948
|
});
|
|
147414
147949
|
if (getEventSelectionMode(events) === "date") return /* @__PURE__ */ jsxs("div", {
|
|
147415
147950
|
className: "rb-reg-stack er-stack",
|
|
147416
|
-
children: [
|
|
147417
|
-
|
|
147418
|
-
|
|
147419
|
-
|
|
147420
|
-
|
|
147421
|
-
|
|
147422
|
-
|
|
147423
|
-
|
|
147424
|
-
|
|
147425
|
-
|
|
147951
|
+
children: [
|
|
147952
|
+
/* @__PURE__ */ jsx("h3", {
|
|
147953
|
+
tabIndex: -1,
|
|
147954
|
+
className: "er-title",
|
|
147955
|
+
children: "Choose a date"
|
|
147956
|
+
}),
|
|
147957
|
+
/* @__PURE__ */ jsx(BookingCloseLine, { events }),
|
|
147958
|
+
/* @__PURE__ */ jsx(DateSelectionList, {
|
|
147959
|
+
events: [...events].sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt)),
|
|
147960
|
+
selectedEvent,
|
|
147961
|
+
display,
|
|
147962
|
+
onChoose
|
|
147963
|
+
})
|
|
147964
|
+
]
|
|
147426
147965
|
});
|
|
147427
147966
|
return /* @__PURE__ */ jsx(EventList, {
|
|
147428
147967
|
events,
|
|
@@ -147498,6 +148037,14 @@ function EventListCard({ event, selected, onSelect, display }) {
|
|
|
147498
148037
|
})
|
|
147499
148038
|
});
|
|
147500
148039
|
}
|
|
148040
|
+
/** When bookings close, inside the booking card, if the cut-off is earlier than the start. */
|
|
148041
|
+
function BookingCloseLine({ events }) {
|
|
148042
|
+
const line = events.find((event) => event.bookingCloseLine)?.bookingCloseLine;
|
|
148043
|
+
return line ? /* @__PURE__ */ jsx("p", {
|
|
148044
|
+
className: "er-text er-text--muted",
|
|
148045
|
+
children: line
|
|
148046
|
+
}) : null;
|
|
148047
|
+
}
|
|
147501
148048
|
const SEVERAL_HEADINGS = {
|
|
147502
148049
|
dates: {
|
|
147503
148050
|
title: "Choose dates",
|
|
@@ -147535,6 +148082,7 @@ function SeveralSelection(props) {
|
|
|
147535
148082
|
className: "er-text er-text--muted er-selection-lede",
|
|
147536
148083
|
children: heading.lede
|
|
147537
148084
|
}),
|
|
148085
|
+
/* @__PURE__ */ jsx(BookingCloseLine, { events: props.events }),
|
|
147538
148086
|
/* @__PURE__ */ jsx(CombinationOfferLine, { parts: combinationOfferLine(combinationOffersOf(props.events)) }),
|
|
147539
148087
|
/* @__PURE__ */ jsx("div", {
|
|
147540
148088
|
className: "er-date-list",
|
|
@@ -148370,7 +148918,7 @@ function entitlementRows(props) {
|
|
|
148370
148918
|
//#region ../blocks/src/system/runtime/nodes/event-registration/CalendarAction.tsx
|
|
148371
148919
|
/** Download effects happen only after a click, including in editor preview. */
|
|
148372
148920
|
async function downloadCalendar(calendar) {
|
|
148373
|
-
const { renderCalendarFeedIcs } = await import("./src-
|
|
148921
|
+
const { renderCalendarFeedIcs } = await import("./src-EO5QoRlU.mjs");
|
|
148374
148922
|
const url = URL.createObjectURL(new Blob([renderCalendarFeedIcs(calendar.feed)], { type: "text/calendar;charset=utf-8" }));
|
|
148375
148923
|
const link = document.createElement("a");
|
|
148376
148924
|
link.href = url;
|
|
@@ -148891,6 +149439,11 @@ function ticketStepInvitation(claim) {
|
|
|
148891
149439
|
expiresAt: claim.claim.expiresAt
|
|
148892
149440
|
} : { kind: "pending" };
|
|
148893
149441
|
}
|
|
149442
|
+
/** With a date to pick, the choosing step has already said it. */
|
|
149443
|
+
function TicketStepBookingCloseLine({ wizard }) {
|
|
149444
|
+
if (wizard.scopedEvents.length > 1 || wizard.waitlistClaim.kind !== "none") return null;
|
|
149445
|
+
return /* @__PURE__ */ jsx(BookingCloseLine, { events: wizard.scopedEvents });
|
|
149446
|
+
}
|
|
148894
149447
|
function TicketSelectionContent({ wizard, display }) {
|
|
148895
149448
|
if (!wizard.selectedEvent && !wizard.occurrenceContext) return null;
|
|
148896
149449
|
const isWaitlisted = wizard.admission.kind === "closed" && wizard.admission.reason === "alreadyWaitlisted";
|
|
@@ -148905,6 +149458,7 @@ function TicketSelectionContent({ wizard, display }) {
|
|
|
148905
149458
|
onBookForSomeoneElse: wizard.handleBookForSomeoneElse
|
|
148906
149459
|
}),
|
|
148907
149460
|
/* @__PURE__ */ jsx(ClosedAdmissionNotice, { wizard }),
|
|
149461
|
+
/* @__PURE__ */ jsx(TicketStepBookingCloseLine, { wizard }),
|
|
148908
149462
|
wizard.severalItems === "runs" ? /* @__PURE__ */ jsx(SeveralRunsTicketStep, {
|
|
148909
149463
|
wizard,
|
|
148910
149464
|
display
|
|
@@ -149398,6 +149952,46 @@ function signInBenefitsTitle(benefits) {
|
|
|
149398
149952
|
return benefits.credit ? "Have credit on your account?" : null;
|
|
149399
149953
|
}
|
|
149400
149954
|
//#endregion
|
|
149955
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/PastOccurrenceNotice.tsx
|
|
149956
|
+
function getParentPathname(pathname) {
|
|
149957
|
+
const segments = pathname.split("/").filter(Boolean);
|
|
149958
|
+
if (segments.length < 2) return null;
|
|
149959
|
+
return `/${segments.slice(0, -1).join("/")}`;
|
|
149960
|
+
}
|
|
149961
|
+
function PastOccurrenceNotice(props) {
|
|
149962
|
+
const [parentPathname, setParentPathname] = useState(null);
|
|
149963
|
+
useEffect(() => {
|
|
149964
|
+
setParentPathname(getParentPathname(window.location.pathname));
|
|
149965
|
+
}, []);
|
|
149966
|
+
return /* @__PURE__ */ jsx("div", {
|
|
149967
|
+
id: props.anchorId,
|
|
149968
|
+
className: `event-registration ${props.className || ""}`,
|
|
149969
|
+
"data-block": "event-registration",
|
|
149970
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
149971
|
+
className: "er-empty",
|
|
149972
|
+
children: [/* @__PURE__ */ jsxs("p", {
|
|
149973
|
+
className: "er-empty__text",
|
|
149974
|
+
children: [
|
|
149975
|
+
"This event date (",
|
|
149976
|
+
formatEventDateTime(props.startsAt, {
|
|
149977
|
+
timeZone: props.timeZone,
|
|
149978
|
+
siteTimeZone: props.siteTimeZone,
|
|
149979
|
+
deliveryMode: props.deliveryMode
|
|
149980
|
+
}, "long"),
|
|
149981
|
+
") has already started. Registration is closed."
|
|
149982
|
+
]
|
|
149983
|
+
}), parentPathname && /* @__PURE__ */ jsx("p", {
|
|
149984
|
+
className: "er-empty__text",
|
|
149985
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
149986
|
+
href: parentPathname,
|
|
149987
|
+
className: "er-link",
|
|
149988
|
+
children: "View other dates for this event"
|
|
149989
|
+
})
|
|
149990
|
+
})]
|
|
149991
|
+
})
|
|
149992
|
+
});
|
|
149993
|
+
}
|
|
149994
|
+
//#endregion
|
|
149401
149995
|
//#region ../blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizard.tsx
|
|
149402
149996
|
const EVENT_PORTAL_AUTH_COPY = {
|
|
149403
149997
|
membership: {
|
|
@@ -149473,11 +150067,26 @@ function useConfiguredEventRegistrationWizard(props) {
|
|
|
149473
150067
|
}
|
|
149474
150068
|
function EventRegistrationWizard(props) {
|
|
149475
150069
|
const wizard = useConfiguredEventRegistrationWizard(props);
|
|
149476
|
-
return /* @__PURE__ */ jsx(
|
|
150070
|
+
return /* @__PURE__ */ jsx(EventRegistrationWizardSurface, {
|
|
149477
150071
|
...props,
|
|
149478
150072
|
wizard
|
|
149479
150073
|
});
|
|
149480
150074
|
}
|
|
150075
|
+
/** Closing swaps out the booking steps only for someone who hadn't started: the hook decides who that is. */
|
|
150076
|
+
function EventRegistrationWizardSurface(props) {
|
|
150077
|
+
const closure = props.wizard.bookingClosure;
|
|
150078
|
+
switch (closure.kind) {
|
|
150079
|
+
case "open":
|
|
150080
|
+
case "underway": return /* @__PURE__ */ jsx(EventRegistrationWizardView, { ...props });
|
|
150081
|
+
case "closedEarly": return /* @__PURE__ */ jsx(RegistrationClosedState, {
|
|
150082
|
+
title: closure.copy.titleText,
|
|
150083
|
+
body: closure.copy.bodyText,
|
|
150084
|
+
otherDatesHref: closure.copy.otherDatesHref
|
|
150085
|
+
});
|
|
150086
|
+
case "started": return /* @__PURE__ */ jsx(PastOccurrenceNotice, { ...pastOccurrenceNoticeProps(props, closure.startsAt) });
|
|
150087
|
+
default: return assertNever$3(closure);
|
|
150088
|
+
}
|
|
150089
|
+
}
|
|
149481
150090
|
/** The panel header's pinned progress, while the panel shows a step (issue 1581). */
|
|
149482
150091
|
function overlayProgress(presentation, stepLabelContext) {
|
|
149483
150092
|
if (presentation.layout !== "steps" || !presentation.progress) return null;
|
|
@@ -149493,6 +150102,18 @@ function overlayProgress(presentation, stepLabelContext) {
|
|
|
149493
150102
|
function ticketStepOffersSignIn(wizard, pricingType) {
|
|
149494
150103
|
return wizard.step === "select-tickets" && wizard.severalItems === null && wizard.portalAuthState !== "authenticated" && wizard.portalAuthState !== "checking" && pricingType !== "free";
|
|
149495
150104
|
}
|
|
150105
|
+
/** Older sources can omit session facts; admission keeps the notice render-safe. */
|
|
150106
|
+
function pastOccurrenceNoticeProps(props, startsAt) {
|
|
150107
|
+
const event = props.events?.find((candidate) => candidate.occurrenceId === props.occurrenceContext?.id);
|
|
150108
|
+
return {
|
|
150109
|
+
anchorId: EVENT_REGISTRATION_ANCHOR_ID,
|
|
150110
|
+
className: props.className,
|
|
150111
|
+
startsAt,
|
|
150112
|
+
timeZone: props.occurrenceContext?.timeZone ?? null,
|
|
150113
|
+
siteTimeZone: event?.siteTimeZone ?? null,
|
|
150114
|
+
deliveryMode: event?.deliveryMode ?? null
|
|
150115
|
+
};
|
|
150116
|
+
}
|
|
149496
150117
|
function EventRegistrationWizardView(viewProps) {
|
|
149497
150118
|
const { wizard, ...props } = viewProps;
|
|
149498
150119
|
const { display, successMessage, buttonText = DEFAULT_BOOKING_BUTTON_TEXT, buttonVariant = "primary", className, supportEmail } = props;
|
|
@@ -149544,7 +150165,7 @@ function EventRegistrationWizardView(viewProps) {
|
|
|
149544
150165
|
}));
|
|
149545
150166
|
const showPortalAuthPrompt = waitlistClaimRequiresPortalLogin || ticketStepOffersSignIn(wizard, summaryEventPricingType) && portalAuthCopy.title !== "";
|
|
149546
150167
|
const presentation = resolveFinishedPresentation(wizard.presentation, {
|
|
149547
|
-
events: wizard.
|
|
150168
|
+
events: wizard.recoveryEvents,
|
|
149548
150169
|
completedOutcomes: wizard.flow.completedOutcomes,
|
|
149549
150170
|
draftEvent: summaryEvent ?? null,
|
|
149550
150171
|
occurrenceContext: wizard.occurrenceContext,
|
|
@@ -149632,63 +150253,6 @@ function EventRegistrationWizardView(viewProps) {
|
|
|
149632
150253
|
});
|
|
149633
150254
|
}
|
|
149634
150255
|
//#endregion
|
|
149635
|
-
//#region ../blocks/src/system/runtime/nodes/event-registration/useEventRegistrationRecoveryRequest.ts
|
|
149636
|
-
/** Retain arrival intent while the payment controller cleans up the return URL. */
|
|
149637
|
-
function useEventRegistrationRecoveryRequest() {
|
|
149638
|
-
const [arrival] = useState(() => {
|
|
149639
|
-
if (typeof window === "undefined") return "none";
|
|
149640
|
-
if (eventRegistrationCheckoutReturnRequest(new URLSearchParams(window.location.search))) return "paymentReturn";
|
|
149641
|
-
return getWaitlistClaimTokenFromUrl() || getWaitlistClaimEntryIdFromUrl() ? "waitlistInvitation" : "none";
|
|
149642
|
-
});
|
|
149643
|
-
return arrival;
|
|
149644
|
-
}
|
|
149645
|
-
//#endregion
|
|
149646
|
-
//#region ../blocks/src/system/runtime/nodes/event-registration/PastOccurrenceNotice.tsx
|
|
149647
|
-
function isPastOccurrence(startsAt, now) {
|
|
149648
|
-
if (!startsAt) return false;
|
|
149649
|
-
const startsAtTime = Date.parse(startsAt);
|
|
149650
|
-
if (!Number.isFinite(startsAtTime)) return false;
|
|
149651
|
-
return startsAtTime <= Date.parse(now);
|
|
149652
|
-
}
|
|
149653
|
-
function getParentPathname(pathname) {
|
|
149654
|
-
const segments = pathname.split("/").filter(Boolean);
|
|
149655
|
-
if (segments.length < 2) return null;
|
|
149656
|
-
return `/${segments.slice(0, -1).join("/")}`;
|
|
149657
|
-
}
|
|
149658
|
-
function PastOccurrenceNotice(props) {
|
|
149659
|
-
const [parentPathname, setParentPathname] = useState(null);
|
|
149660
|
-
useEffect(() => {
|
|
149661
|
-
setParentPathname(getParentPathname(window.location.pathname));
|
|
149662
|
-
}, []);
|
|
149663
|
-
return /* @__PURE__ */ jsx("div", {
|
|
149664
|
-
id: props.anchorId,
|
|
149665
|
-
className: `event-registration ${props.className || ""}`,
|
|
149666
|
-
"data-block": "event-registration",
|
|
149667
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
149668
|
-
className: "er-empty",
|
|
149669
|
-
children: [/* @__PURE__ */ jsxs("p", {
|
|
149670
|
-
className: "er-empty__text",
|
|
149671
|
-
children: [
|
|
149672
|
-
"This event date (",
|
|
149673
|
-
formatEventDateTime(props.startsAt, {
|
|
149674
|
-
timeZone: props.timeZone,
|
|
149675
|
-
siteTimeZone: props.siteTimeZone,
|
|
149676
|
-
deliveryMode: props.deliveryMode
|
|
149677
|
-
}, "long"),
|
|
149678
|
-
") has already started. Registration is closed."
|
|
149679
|
-
]
|
|
149680
|
-
}), parentPathname && /* @__PURE__ */ jsx("p", {
|
|
149681
|
-
className: "er-empty__text",
|
|
149682
|
-
children: /* @__PURE__ */ jsx("a", {
|
|
149683
|
-
href: parentPathname,
|
|
149684
|
-
className: "er-link",
|
|
149685
|
-
children: "View other dates for this event"
|
|
149686
|
-
})
|
|
149687
|
-
})]
|
|
149688
|
-
})
|
|
149689
|
-
});
|
|
149690
|
-
}
|
|
149691
|
-
//#endregion
|
|
149692
150256
|
//#region ../blocks/src/system/runtime/nodes/event-registration/useEventSourceRecovery.ts
|
|
149693
150257
|
const RECOVERY_DELAYS_MS = [
|
|
149694
150258
|
0,
|
|
@@ -149787,47 +150351,27 @@ function toEventRegistrationClientProps(props, display) {
|
|
|
149787
150351
|
className: display.className ?? void 0
|
|
149788
150352
|
};
|
|
149789
150353
|
}
|
|
149790
|
-
/** Older sources can omit session facts; admission keeps the notice render-safe. */
|
|
149791
|
-
function pastOccurrenceNoticeProps(clientProps, startsAt) {
|
|
149792
|
-
const event = clientProps.events?.find((event) => event.occurrenceId === clientProps.occurrenceContext?.id);
|
|
149793
|
-
return {
|
|
149794
|
-
anchorId: EVENT_REGISTRATION_ANCHOR_ID,
|
|
149795
|
-
className: clientProps.className,
|
|
149796
|
-
startsAt,
|
|
149797
|
-
timeZone: clientProps.occurrenceContext?.timeZone ?? null,
|
|
149798
|
-
siteTimeZone: event?.siteTimeZone ?? null,
|
|
149799
|
-
deliveryMode: event?.deliveryMode ?? null
|
|
149800
|
-
};
|
|
149801
|
-
}
|
|
149802
150354
|
const EventRegistrationClient = (clientProps) => {
|
|
149803
|
-
const
|
|
149804
|
-
|
|
149805
|
-
|
|
149806
|
-
|
|
149807
|
-
|
|
149808
|
-
|
|
149809
|
-
|
|
149810
|
-
const presentation = resolveEventRegistrationClientSurface({
|
|
149811
|
-
plan: surface,
|
|
149812
|
-
recoveryRequest,
|
|
149813
|
-
pastStartsAt: isPastOccurrence(startsAt, useBookingNowIso(clientProps.now, {
|
|
149814
|
-
kind: "presentation",
|
|
149815
|
-
nextBoundary: startsAt ?? null
|
|
149816
|
-
})) ? startsAt ?? null : null
|
|
150355
|
+
const surface = resolveEventRegistrationClientSurface({
|
|
150356
|
+
recoveryRequest: useEventRegistrationRecoveryRequest(),
|
|
150357
|
+
plan: planEventRegistrationSurface({
|
|
150358
|
+
events: clientProps.events ?? [],
|
|
150359
|
+
occurrenceContext: clientProps.occurrenceContext,
|
|
150360
|
+
subject: clientProps.subject
|
|
150361
|
+
})
|
|
149817
150362
|
});
|
|
149818
150363
|
if (hasCancelledRegistrationDate(clientProps.events ?? [], clientProps.occurrenceContext?.id)) return /* @__PURE__ */ jsx(RegistrationClosedState, {
|
|
149819
150364
|
title: cancelledDateCopy.titleText,
|
|
149820
150365
|
body: cancelledDateCopy.bodyText
|
|
149821
150366
|
});
|
|
149822
|
-
switch (
|
|
150367
|
+
switch (surface) {
|
|
149823
150368
|
case "wizard": return /* @__PURE__ */ jsx(EventRegistrationWizard, { ...clientProps });
|
|
149824
150369
|
case "unavailable": return /* @__PURE__ */ jsx("div", {
|
|
149825
150370
|
className: clientProps.className,
|
|
149826
150371
|
role: "status",
|
|
149827
150372
|
children: "Registration is temporarily unavailable. Please refresh the page or try again shortly."
|
|
149828
150373
|
});
|
|
149829
|
-
|
|
149830
|
-
default: return assertNever$3(presentation);
|
|
150374
|
+
default: return assertNever$3(surface);
|
|
149831
150375
|
}
|
|
149832
150376
|
};
|
|
149833
150377
|
const EventRegistrationIslandClient = (props) => {
|
|
@@ -157090,6 +157634,63 @@ async function dispatchJournalEffect(request, owners) {
|
|
|
157090
157634
|
};
|
|
157091
157635
|
}
|
|
157092
157636
|
//#endregion
|
|
157637
|
+
//#region ../content-editor/src/session-journal/grouping.ts
|
|
157638
|
+
/** A journal group has one target; keep its first inverse and last forward value. */
|
|
157639
|
+
function groupedJournalChange(first, last) {
|
|
157640
|
+
return {
|
|
157641
|
+
...first,
|
|
157642
|
+
after: last.after
|
|
157643
|
+
};
|
|
157644
|
+
}
|
|
157645
|
+
/** Keep the accepted identity and label while adopting only the owner's canonical inverse. */
|
|
157646
|
+
function replaceJournalInverse(change, inverse) {
|
|
157647
|
+
return {
|
|
157648
|
+
...change,
|
|
157649
|
+
before: inverse.before,
|
|
157650
|
+
after: inverse.after
|
|
157651
|
+
};
|
|
157652
|
+
}
|
|
157653
|
+
/**
|
|
157654
|
+
* The edits one send stands for become one undo step, because the server never saw the values between
|
|
157655
|
+
* them. Undo then lands on what the send's receipt says was stored, and a run that nets to nothing
|
|
157656
|
+
* cancels whole, the same as a typing group. Pending edits sit below the cursor, so it can't split one.
|
|
157657
|
+
*/
|
|
157658
|
+
function mergeJournalGroups(state, operationIds) {
|
|
157659
|
+
const merged = state.entries.filter((entry) => operationIds.includes(entry.edit.operationId));
|
|
157660
|
+
const group = merged[0]?.group;
|
|
157661
|
+
const groups = new Set(merged.map((entry) => entry.group));
|
|
157662
|
+
if (group === void 0 || groups.size < 2) return state;
|
|
157663
|
+
return {
|
|
157664
|
+
...state,
|
|
157665
|
+
entries: state.entries.map((entry) => groups.has(entry.group) ? {
|
|
157666
|
+
...entry,
|
|
157667
|
+
group
|
|
157668
|
+
} : entry),
|
|
157669
|
+
grouping: state.grouping && groups.has(state.grouping.group) ? {
|
|
157670
|
+
...state.grouping,
|
|
157671
|
+
group
|
|
157672
|
+
} : state.grouping
|
|
157673
|
+
};
|
|
157674
|
+
}
|
|
157675
|
+
/** A successful manual save closes its captured interaction, even if typing continued during the request. */
|
|
157676
|
+
function closeSavedManualGroup(state, captured) {
|
|
157677
|
+
const last = captured.at(-1);
|
|
157678
|
+
if (!last || typeof last.edit.textKey !== "object" || last.edit.textKey?.kind !== "manual") return state;
|
|
157679
|
+
const following = state.entries.filter((entry) => entry.group === last.group && entry.order > last.order);
|
|
157680
|
+
const nextGroup = following[0]?.order;
|
|
157681
|
+
return {
|
|
157682
|
+
...state,
|
|
157683
|
+
entries: state.entries.map((entry) => nextGroup !== void 0 && following.includes(entry) ? {
|
|
157684
|
+
...entry,
|
|
157685
|
+
group: nextGroup
|
|
157686
|
+
} : entry),
|
|
157687
|
+
grouping: state.grouping?.group === last.group ? nextGroup === void 0 ? null : {
|
|
157688
|
+
...state.grouping,
|
|
157689
|
+
group: nextGroup
|
|
157690
|
+
} : state.grouping
|
|
157691
|
+
};
|
|
157692
|
+
}
|
|
157693
|
+
//#endregion
|
|
157093
157694
|
//#region ../content-editor/src/session-journal/editorCapture.ts
|
|
157094
157695
|
const textKey = (command) => {
|
|
157095
157696
|
switch (command.type) {
|
|
@@ -157405,41 +158006,6 @@ function rebaseValueCheckpoint(before, next, checkpoint) {
|
|
|
157405
158006
|
};
|
|
157406
158007
|
}
|
|
157407
158008
|
//#endregion
|
|
157408
|
-
//#region ../content-editor/src/session-journal/grouping.ts
|
|
157409
|
-
/** A journal group has one target; keep its first inverse and last forward value. */
|
|
157410
|
-
function groupedJournalChange(first, last) {
|
|
157411
|
-
return {
|
|
157412
|
-
...first,
|
|
157413
|
-
after: last.after
|
|
157414
|
-
};
|
|
157415
|
-
}
|
|
157416
|
-
/** Keep the accepted identity and label while adopting only the owner's canonical inverse. */
|
|
157417
|
-
function replaceJournalInverse(change, inverse) {
|
|
157418
|
-
return {
|
|
157419
|
-
...change,
|
|
157420
|
-
before: inverse.before,
|
|
157421
|
-
after: inverse.after
|
|
157422
|
-
};
|
|
157423
|
-
}
|
|
157424
|
-
/** A successful manual save closes its captured interaction, even if typing continued during the request. */
|
|
157425
|
-
function closeSavedManualGroup(state, captured) {
|
|
157426
|
-
const last = captured.at(-1);
|
|
157427
|
-
if (!last || typeof last.edit.textKey !== "object" || last.edit.textKey?.kind !== "manual") return state;
|
|
157428
|
-
const following = state.entries.filter((entry) => entry.group === last.group && entry.order > last.order);
|
|
157429
|
-
const nextGroup = following[0]?.order;
|
|
157430
|
-
return {
|
|
157431
|
-
...state,
|
|
157432
|
-
entries: state.entries.map((entry) => nextGroup !== void 0 && following.includes(entry) ? {
|
|
157433
|
-
...entry,
|
|
157434
|
-
group: nextGroup
|
|
157435
|
-
} : entry),
|
|
157436
|
-
grouping: state.grouping?.group === last.group ? nextGroup === void 0 ? null : {
|
|
157437
|
-
...state.grouping,
|
|
157438
|
-
group: nextGroup
|
|
157439
|
-
} : state.grouping
|
|
157440
|
-
};
|
|
157441
|
-
}
|
|
157442
|
-
//#endregion
|
|
157443
158009
|
//#region ../content-editor/src/session-journal/replay.ts
|
|
157444
158010
|
/** Selection never searches for an older usable entry. Focus and the current view are irrelevant. */
|
|
157445
158011
|
function planJournalReplay(state, direction, operationId) {
|
|
@@ -157562,6 +158128,7 @@ function foldSettledPair(first, last) {
|
|
|
157562
158128
|
const receipt = first.settlement.receipt === last.settlement.receipt ? first.settlement.receipt : composeJournalCommitReceipts([first.settlement.receipt, last.settlement.receipt], journalTargetKey);
|
|
157563
158129
|
return receipt ? {
|
|
157564
158130
|
...first,
|
|
158131
|
+
order: last.order,
|
|
157565
158132
|
edit: groupedJournalChange(first.edit, last.edit),
|
|
157566
158133
|
settlement: {
|
|
157567
158134
|
kind: "settled",
|
|
@@ -157723,6 +158290,7 @@ function journalTransition(state, event) {
|
|
|
157723
158290
|
cause: event.cause
|
|
157724
158291
|
}
|
|
157725
158292
|
};
|
|
158293
|
+
case "run-formed": return mergeJournalGroups(state, event.operationIds);
|
|
157726
158294
|
case "conflicted": return adoptConflict(state, event.operationId, event.authoritative);
|
|
157727
158295
|
case "root-observed": return noteRootRevision(state, event.root, event.revision);
|
|
157728
158296
|
case "root-write-started": return beginRootWrite(state, event.root, event.operationId);
|
|
@@ -158581,7 +159149,7 @@ async function settlePendingReplay(operationIds, direction, effects, dispatch) {
|
|
|
158581
159149
|
}
|
|
158582
159150
|
function replaySelectionMatches(before, after, direction) {
|
|
158583
159151
|
const selected = (state) => state.entries[direction === "undo" ? state.cursor - 1 : state.cursor]?.order;
|
|
158584
|
-
return
|
|
159152
|
+
return selected(before) === selected(after);
|
|
158585
159153
|
}
|
|
158586
159154
|
/** A failed settlement may have committed; timeout ends this replay, never parks it for later. */
|
|
158587
159155
|
function boundedJournalSettlement(settlement) {
|
|
@@ -158956,19 +159524,25 @@ function fail(state, reason) {
|
|
|
158956
159524
|
},
|
|
158957
159525
|
effects: releaseOwned(state.phase)
|
|
158958
159526
|
};
|
|
158959
|
-
|
|
159527
|
+
if (reason === "unavailable") return {
|
|
159528
|
+
state: {
|
|
159529
|
+
...state,
|
|
159530
|
+
phase: { kind: "unavailable" }
|
|
159531
|
+
},
|
|
159532
|
+
effects: releaseOwned(state.phase)
|
|
159533
|
+
};
|
|
158960
159534
|
return {
|
|
158961
159535
|
state: {
|
|
158962
159536
|
...state,
|
|
158963
|
-
phase:
|
|
159537
|
+
phase: {
|
|
158964
159538
|
kind: "fault",
|
|
158965
159539
|
reason
|
|
158966
|
-
}
|
|
159540
|
+
}
|
|
158967
159541
|
},
|
|
158968
|
-
effects: [...releaseOwned(state.phase),
|
|
159542
|
+
effects: [...releaseOwned(state.phase), {
|
|
158969
159543
|
kind: "fault",
|
|
158970
159544
|
reason
|
|
158971
|
-
}]
|
|
159545
|
+
}]
|
|
158972
159546
|
};
|
|
158973
159547
|
}
|
|
158974
159548
|
function onGrant(state, event) {
|
|
@@ -159198,8 +159772,12 @@ function leaseEditability(state) {
|
|
|
159198
159772
|
} : state.phase.showing ?? { kind: "acquiring" };
|
|
159199
159773
|
case "requesting":
|
|
159200
159774
|
case "idle":
|
|
159201
|
-
case "suspended":
|
|
159202
|
-
case "fault": return {
|
|
159775
|
+
case "suspended": return { kind: "acquiring" };
|
|
159776
|
+
case "fault": return {
|
|
159777
|
+
kind: "read-only",
|
|
159778
|
+
reason: "refused",
|
|
159779
|
+
refusal: state.phase.reason
|
|
159780
|
+
};
|
|
159203
159781
|
case "closed": return null;
|
|
159204
159782
|
}
|
|
159205
159783
|
}
|
|
@@ -159336,12 +159914,15 @@ async function release(runtime, token) {
|
|
|
159336
159914
|
});
|
|
159337
159915
|
} catch {}
|
|
159338
159916
|
}
|
|
159917
|
+
/** The store's editability already explains a refusal; a host may be able to show something better. */
|
|
159339
159918
|
function reportFault(runtime, reason) {
|
|
159340
|
-
|
|
159341
|
-
|
|
159342
|
-
|
|
159343
|
-
|
|
159344
|
-
|
|
159919
|
+
logger.warn("editLease.refused", {
|
|
159920
|
+
reason,
|
|
159921
|
+
siteId: runtime.scope.siteId,
|
|
159922
|
+
nodeType: runtime.scope.nodeType,
|
|
159923
|
+
nodeId: runtime.scope.nodeId
|
|
159924
|
+
});
|
|
159925
|
+
if (reason === "not-found" || reason === "forbidden") runtime.onAccessChanged.current?.();
|
|
159345
159926
|
}
|
|
159346
159927
|
async function runLeaseEffect(runtime, effect, dispatch, current) {
|
|
159347
159928
|
switch (effect.kind) {
|
|
@@ -159563,6 +160144,9 @@ function useEditLeaseActions() {
|
|
|
159563
160144
|
}
|
|
159564
160145
|
//#endregion
|
|
159565
160146
|
//#region ../content-editor/src/controller/EditorWriteGate.tsx
|
|
160147
|
+
function reloadPage() {
|
|
160148
|
+
window.location.reload();
|
|
160149
|
+
}
|
|
159566
160150
|
/** Makes a mount's editing surface inert while the tab is waiting for, or denied, the lease. */
|
|
159567
160151
|
function EditorWriteSurface({ children }) {
|
|
159568
160152
|
const blocked = useEditorUiStore((state) => blocksEditingSurface(state.editability) || state.authoringHold() !== null);
|
|
@@ -159619,6 +160203,7 @@ function EditLeaseModal({ thing, onKeepViewing }) {
|
|
|
159619
160203
|
handlers: {
|
|
159620
160204
|
"take-over": () => actions.takeOver(),
|
|
159621
160205
|
retry: () => actions.retry(),
|
|
160206
|
+
reload: reloadPage,
|
|
159622
160207
|
discard: () => actions.discardLocal(),
|
|
159623
160208
|
"keep-viewing": keepViewing,
|
|
159624
160209
|
"discard-and-view": () => {
|
|
@@ -161246,9 +161831,31 @@ function captureCheckpoint(state, request) {
|
|
|
161246
161831
|
};
|
|
161247
161832
|
}
|
|
161248
161833
|
/**
|
|
161249
|
-
*
|
|
161834
|
+
* The operations one send stands for: the first queued group, plus every queued operation straight
|
|
161835
|
+
* after it that owes only the same value on the same target. They become one undo step and settle
|
|
161836
|
+
* together from the one receipt. Anything else queued, reserved or settled in between ends the run,
|
|
161837
|
+
* so a value never overtakes a write to something else.
|
|
161838
|
+
*/
|
|
161839
|
+
function sendRun(state, entries, first, order, deferred) {
|
|
161840
|
+
const group = entries.filter((entry) => entry.order < order && entry.group === first.group && state.operations.has(entry.edit.operationId));
|
|
161841
|
+
const key = soleKey(state, group, first.edit);
|
|
161842
|
+
const later = key ? entries.filter((entry) => entry.order > (group[group.length - 1]?.order ?? first.order) && entry.order < order) : [];
|
|
161843
|
+
const end = later.findIndex((entry) => deferred.has(entry.edit.operationId) || !key || !owesOnly(state, entry, first.edit, key));
|
|
161844
|
+
return [...group, ...end < 0 ? later : later.slice(0, end)].map((entry) => entry.edit.operationId);
|
|
161845
|
+
}
|
|
161846
|
+
/** The one value a whole group owes and may share a send for, if there is one. */
|
|
161847
|
+
function soleKey(state, group, target) {
|
|
161848
|
+
const owed = state.operations.get(target.operationId)?.keys.values().next().value;
|
|
161849
|
+
return owed && group.every((entry) => owesOnly(state, entry, target, owed.checkpoint.key)) ? owed.checkpoint.key : null;
|
|
161850
|
+
}
|
|
161851
|
+
function owesOnly(state, entry, target, key) {
|
|
161852
|
+
const operation = state.operations.get(entry.edit.operationId);
|
|
161853
|
+
return operation?.keys.size === 1 && operation.keys.get(valueKeyId(key))?.kind === "queued" && journalTargetKey(entry.edit) === journalTargetKey(target);
|
|
161854
|
+
}
|
|
161855
|
+
/**
|
|
161856
|
+
* A run sends once: the latest queued values of each key its operations still owe.
|
|
161250
161857
|
*
|
|
161251
|
-
* Every operation in a
|
|
161858
|
+
* Every operation in a run of more than one owes the same single key. Grouping needs a text key,
|
|
161252
161859
|
* and a text key names one block or field, so a grouped command can't change two values. Only a
|
|
161253
161860
|
* lone operation owes several keys. A group mixing a one-key and a two-key operation can't be
|
|
161254
161861
|
* built today and isn't designed for: if text keys ever span values, work out how such a group's
|
|
@@ -161333,7 +161940,11 @@ async function runBefore(state, drain, deferred = /* @__PURE__ */ new Set()) {
|
|
|
161333
161940
|
const first = entries.find((entry) => entry.order < order && !deferred.has(entry.edit.operationId) && state.operations.has(entry.edit.operationId));
|
|
161334
161941
|
if (!first) return [];
|
|
161335
161942
|
if (entries.some((entry) => entry.order < first.order && isUnqueuedImmediate(state, entry))) return [];
|
|
161336
|
-
const group =
|
|
161943
|
+
const group = sendRun(state, entries, first, order, deferred);
|
|
161944
|
+
state.journal.dispatch({
|
|
161945
|
+
kind: "run-formed",
|
|
161946
|
+
operationIds: group
|
|
161947
|
+
});
|
|
161337
161948
|
const results = await runGroup(state, group, drain.request);
|
|
161338
161949
|
return results.some(stopsDrain) ? results : [...results, ...await runBefore(state, drain, /* @__PURE__ */ new Set([...deferred, ...group]))];
|
|
161339
161950
|
}
|
|
@@ -172179,4 +172790,4 @@ function usePreviewAssistantSlot() {
|
|
|
172179
172790
|
return useContext(PreviewAssistantSlotContext);
|
|
172180
172791
|
}
|
|
172181
172792
|
//#endregion
|
|
172182
|
-
export { useFooterComposerState as $, richTextVariantCapabilities as $a, composeEventHandlers as $c, themeRuntimeScopeProps as $i, indexRenderableMediaAssets as $l, readSliderFieldUiConfig as $n, gradientToCss as $o, selectBlockContent as $r, DialogClose as $s, listEntryPageContentSlots as $t, unsafeAsEditorBlockId as $u, usePreviewJoinOutcome as A, faqHeadingFragment as Aa, __spreadArrays as Ac, resolveMediaSlotContract as Ai, parseThemeForPersistence as Al, lifecycleOutcomeMessage as An, backgroundImagePromotedFieldPath as Ao, LocationMapView as Ar, resolveBlockTitle as As, toRoutableLinkPayload as At, parseMailchimpAudienceId as Au, initPreviewAuth as B, BLOCK_BUTTON_ROLE_OPTIONS as Ba, Root2$1 as Bc, setContextResolveImageUrlContext as Bi, defaultThemeTokens as Bl, withoutServerVersions as Bn, concretePaletteFromTheme as Bo, defaultTransforms as Br, publicMapLocationParamsSchema as Bs, derivePromotedFieldPlan as Bt, readPublishedBlockPlacement as Bu, pageDesignLookTiles as C, pageTemplateFromEntry as Ca, __assign as Cc, getRichTextImageSize as Ci, buttonStyleHoverPreferenceValue as Cl, recoveryConflictCopy as Cn, buildThemeRuntime as Co, arrangementHooksFromContent as Cr, flowRepeaterGridItems as Cs, EditorWriteSurface as Ct, unsafeAsFooterModuleId as Cu, ObservedJoin as D, headingFragment as Da, __read as Dc, resolveMediaStorageUrl as Di, updateButtonStyleHoverPreference as Dl, parseStoredSidebarWidth as Dn, getResponsiveScopeSpec as Do, buildLoadedOfferingsPreviewListing as Dr, resolveRepeaterGridAcceptedSpans as Ds, sendPageCommand as Dt, mailingListTargetingChoiceIds as Du, selectedImageFromRenderableAsset as E, richTextFragment as Ea, __generator as Ec, resolveImageUrlWithContext as Ei, resolveButtonStyleSelection as El, SIDEBAR_WIDTH as En, DEFAULT_THEME_RESPONSIVE_MODE as Eo, getDefaultComponentRegistry as Er, planRepeaterGridStartNewRow as Es, getEditorClientId as Et, DEFAULT_MAILING_LIST_TARGETING as Eu, lookTilePosition as F, testimonialsCarouselFragment as Fa, Presence as Fc, systemCustomizeFacetDefinitionForBlock as Fi, textColorStyle as Fl, renderSourceFor as Fn, resolveEditorArrangementLook as Fo, siblingPath as Fr, editorAdmissionNotice as Fs, NewsletterFormClient as Ft, parsePublicProfile as Fu, renderSiteChromeBlock as G, defineFragment as Ga, useFocusGuards as Gc, isOfferingsPreviewSourceKey as Gi, parseAspectRatioValue as Gl, createManifestFormAdapter as Gn, componentRuntimeRulesForTheme as Go, createEditorPresentationPageReader as Gr, selectedCanvasBlockId as Gs, hasVisibilityConditions as Gt, pristineValueSync as Gu, renewPreviewSession as H, heroCopyFragment as Ha, useSize as Hc, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as Hi, isRotationDimensionSwap as Hl, unsafeAsLinkedContentEntryId as Hn, lookDefinitionForId as Ho, resolvePageRouteTarget as Hr, ApiEnvelopeError as Hs, evaluateVisibility as Ht, parseEditLeaseScope as Hu, lookTilesFor as I, testimonialsHeadingFragment as Ia, Portal as Ic, systemCustomizeFacetDefinitionsForBlock as Ii, mapDrawingStyle as Il, renderedFieldChanges as In, restoreCompiledRuntimeFieldsFromContent as Io, withValueAtPath as Ir, editorAdmissionSession as Is, ImageResolveContextProvider as It, publicProfileWeekdays as Iu, footerLayoutSelection as J, validateManifestDraft as Ja, useDirection as Jc, planOfferingPreviewCardSelection as Ji, getImageUrl as Jl, getFieldDefault as Jn, headerStyleRecipeForTheme as Jo, mapOutlineRegions as Jr, VISUALLY_HIDDEN_STYLES as Js, createBlock as Jt, createEditorInsertBlockCommand as Ju, siteChromeHeaderLogoMayBeHardToSee as K, runTransforms as Ka, DismissableLayer as Kc, normalizeOfferingsPreviewGroupOrder as Ki, resolveMediaTransformForAspect as Kl, createManifestValidation as Kn, designRuntimeRulesForTheme as Ko, allOutlineBlocks as Kr, sidebarReturnView as Ks, isNonEmptyValue as Kt, syncStateOf as Ku, nextLookTilePin as L, ctaCopyFragment as La, Anchor as Lc, systemCustomizeFacetStoredValue as Li, parseSurfaceTree as Ll, resolveRenderedValues as Ln, formatSiteChromeBackgroundTokenLabel as Lo, LINKED_CONTENT_ENTRY_META_KEY as Lr, observeEditorAdmission as Ls, useImageResolveContextOptional as Lt, publishedContactDetails as Lu, usePreviewRenderReadiness as M, singleButtonFragment as Ma, Item$1 as Mc, resolveArrangementKnobs as Mi, surfaceForegroundStyle as Ml, activeLinkedSaveHandover as Mn, sectionPhotoPresence as Mo, logger as Mr, isObjectRecord$1 as Ms, updateFooterComposition as Mt, parseNewsletterListId as Mu, STYLE_DEFAULT_LOOK_KEY as N, formEmbedFragment as Na, Root$2 as Nc, isSystemCustomizeFacetId as Ni, surfaceForegroundValue as Nl, planLinkedSaveHandoverRetention as Nn, applyCompiledRuntimeFieldsToContent as No, Text as Nr, isRecord$23 as Ns, footerCreditLine as Nt, knownSocialPlatformLabels as Nu, PreviewRenderObservationsProvider as O, cardFragment as Oa, __rest as Oc, SECTION_BACKGROUND_MIN_SOURCE_WIDTH as Oi, updateButtonStyleSelectionChoice as Ol, selectAutosaveStatus as On, resolveVisiblePromotedFieldPathsForEditorBlock as Oo, resolveEventDetailsPresentation as Or, resolveRepeaterGridBreakpointForWidth as Os, missingReceiptError as Ot, sameMailingListPlacementTargeting as Ou, lookPositionLabel as P, formCopyFragment as Pa, createRovingFocusGroupScope as Pc, systemCustomizeFacetAppliesToLayoutVariant as Pi, rgbColorValue as Pl, remoteDraftValues as Pn, compileEditorModelRuntime as Po, getAtPath as Pr, editorAdmissionIsOpen as Ps, clientComponentRegistry as Pt, knownSocialPlatforms as Pu, useFooterAuthoringOptional as Q, isRichTextDoc as Qa, createContextScope as Qc, readThemeScopeContext as Qi, renderableMediaAssetSchema as Ql, readNumberFieldUiConfig as Qn, surfaceResolutionContextFromTheme as Qo, readinessFactsFromLoaders as Qr, Dialog as Qs, isSurfaceSlotBlockTarget as Qt, editorBlockCollectionOwnersEqual as Qu, selectedLookTile as R, heroCtaRowFragment as Ra, Arrow as Rc, buildResolveImageUrlContext as Ri, resolveSurfaceForeground as Rl, useStore as Rn, getHeaderLayout as Ro, coerceLinkedContentEntriesPayload as Rr, OPERATION_ID_HEADER as Rs, FormNodeClient as Rt, NO_BLOCK_VERSIONS as Ru, pageDesignLookPosition as S, hiddenFromVisitors as Sa, ReactRemoveScroll as Sc, RichText as Si, siteOptionSources as Sl, useSidebarView as Sn, parseFieldDefinition as So, resolveDefaultBlockTree as Sr, findFirstAvailableRepeaterGridPlacement as Ss, EditLeaseModal as St, setFooterSectionSelected as Su, selectedImageFromMediaValue as T, bookingConsentCarrierSchema as Ta, __extends as Tc, resolveImageSourceSetWithContext as Ti, findButtonStyleRecipe as Tl, unfinishedBlockCopy as Tn, mergeContentWithBlockStyleOverrides as To, readBlockComposition as Tr, normalizeRepeaterGridSpan as Ts, LeaseNoticeButtons as Tt, parseMailingListPlacementTargeting as Tu, usePreviewAuth as U, ctaButton as Ua, useId$1 as Uc, groupOfferingRunsByCourse as Ui, normalizeRightAngle as Ul, editorAuthoredBlockDocument as Un, readStoredMode as Uo, resolveRouteTarget as Ur, extractApiEnvelopeErrorDetails as Us, getFieldIntent as Ut, displayedValues as Uu, registerPreviewRenewalFetcher as V, isBlockButtonRole as Va, createPopperScope as Vc, normalizeEventRegistrationPageSurfaceSubject as Vi, expandPalette as Vl, deriveEditorValuePublicationState as Vn, concretePaletteToTheme as Vo, resolveEntryRouteTarget as Vr, calendarWindowQuerySchema as Vs, collectVisibleWhenWatchPaths as Vt, selectedContentVersionId as Vu, usePreviewToken as W, bodyCopyFragment as Wa, FocusScope as Wc, inferLegacyOfferingsPreviewGroupOrder as Wi, formatAspectRatioToken as Wl, initialBlockDraftValues as Wn, defaultPolicyPageFlowPresetId as Wo, fieldsNotShownIn as Wr, unwrapResponse as Ws, getWidgetKey as Wt, knownRevision as Wu, resolveFooterEngagementPreview as X, deriveFieldValidationPlan as Xa, useControllableState as Xc, resolveOfferingsPreviewGroupOrderEntries as Xi, runtimeMediaSchema as Xl, normalizeFieldForCanonicalValidation as Xn, palettesForSiteStyle as Xo, publishReadinessWarning as Xr, CalloutDescription as Xs, deleteBlock as Xt, createEditorReorderBlocksCommand as Xu, resolveFooterEngagementAuthoringState as Y, admitLayoutGridForPlan as Ya, createCollection as Yc, readOfferingsGrouping as Yi, mediaSchema as Yl, getRepeaterItemDefault as Yn, offeredSiteStyles as Yo, PUBLISH_READINESS_COPY as Yr, Callout as Ys, createSlotBlock as Yt, createEditorRemoveBlockCommand as Yu, FooterComposerProvider as Z, RichTextDocSchema as Za, useLayoutEffect2 as Zc, buildThemeDataAttrs as Zi, buildRenderableMediaAssetIndex as Zl, getGroupChildFields as Zn, compiledRuntimeStyleFieldNames as Zo, readinessFactsFromPayload as Zr, CalloutTitle as Zs, deleteSlotBlock as Zt, editorBlockCollectionOwnerKey as Zu, PreviewFooterProvider as _, resolveDateRuntimeContext as _a, Trigger as _c, chooseScheduleScope as _i, bindingSchema as _l, resolveContentTitle as _n, parseInlineTextFromUnknown as _o, createCustomBlockRegistry as _r, isInternalResolvedLinkValue as _s, savedContentReceipt as _t, deriveFooterEditorOverview as _u, PreviewPageDesignEditorStateProvider as a, suggestSemanticIconForFeatureCard as aa, DialogTrigger as ac, resolveBookingTimeZoneId as ad, LOCATION_MAP_LOADER_KEYS as ai, cva as al, getDashboardBaseUrl as an, parseGeneratedIconSetId as ao, parseBackgroundColorToken as ar, getSiteFontsStorageUrl as as, readFooterEngagementDraft as at, isBodyFontFamily as au, buildPageDesignEditorReadModelForBlocks as b, eventCalendarListGroupingDecision as ba, PortalContainerProvider as bc, writeEventSelectionChips as bi, resolveRepeaterGridRowFieldId as bl, useEditorUiStoreInstance as bn, replaceInlineTextRange as bo, makeDefaultBlockComponent as br, planRepeaterGridSpanChange as bs, VIEWING_PARTICIPATION as bt, parseFooterModuleId as bu, usePreviewShownTheme as c, SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR as ca, DialogClose$1 as cc, assertNever$9 as cd, parseLocationMapLoaderResult as ci, composeRefs as cl, SURFACE_DOCUMENT_DATA_ATTRIBUTE as cn, coerceInlineTextWithFallback as co, planBackgroundTransition as cr, sectionTransitionFamilies as cs, EntryControllerProvider as ct, asLayoutVariantKey as cu, cycleSiteChromeSelectionId as d, measureSiteStickyChromeHeightPx as da, DialogOverlay$1 as dc, unsafeAsPositiveByteCount as dd, offeringsPreviewBlockDefinition as di, useShallow as dl, PREVIEW_CHROME_Z_INDEX as dn, inlineTextEqual as do, createPageRenderPlanReader as dr, resolveCompiledSectionContextFromContent as ds, DONE as dt, generateUuidV4 as du, FEATURE_CARD_GENERATED_ICON_SIZE_PX as ea, DialogContent as ec, unsafeAsEditorBlockValues as ed, fieldPathsOwnedBy as ei, Primitive as el, listPageSurfaceContentSlots as en, sanitizeHref as eo, backgroundColorTokens as er, GRADIENT_PRESETS as es, useFooterPanelOwnsNotice as et, resolveManagedMediaReference as eu, PreviewThemeJournalProvider as f, measureSiteTopChromeBottomPx as fa, DialogPortal$1 as fc, unsafeAsPositiveSeconds as fd, publicRouteCandidatesSchema as fi, baselineRevisionOf as fl, createRoutingHelpers as fn, inlineTextHighlightTones as fo, planArrangementContent as fr, isThemeV2NormalEditorRawStyleFieldName as fs, runHeldLifecycle as ft, slugify as fu, previewThemeBase as g, readRuntimeNow as ga, Root$1 as gc, chooseAllEvents as gi, canEditorWrite as gl, resolvePageRouteSlug as gn, normalizeInlineTextMarks as go, retargetJoinsAcrossOmissions as gr, assertNever$5 as gs, createEditorApiClientFactory as gt, mailingListProviderName as gu, composePreviewTheme as h, EDITABLE_SURFACE_FORWARDING_PROP as ha, Content as hc, EVENT_SELECTION_TYPE_OPTIONS as hi, readLinkedEntryLease as hl, deriveRouteMetadataPresentation as hn, normalizeInlineText as ho, renderedJoinLayout as hr, lookModes as hs, useSessionJournalHistory as ht, resolveMailingListDefaultDestination as hu, usePreviewSidebarNavigation as i, resolveFeatureCardGeneratedIconSizePx as ia, DialogTitle as ic, resolveBookingBusinessTimeZone as id, normalizeBlockContent as ii, useControlReadiness as il, blocksKeys as in, parseGeneratedIconAssetId as io, imagePoolForOverride as ir, generateFontFaceCss as is, footerPartKey as it, getFontWidthRange as iu, usePreviewRenderBackgrounds as j, blogFeaturedPostFragment as ja, hideOthers as jc, arrangementKnobChoices as ji, surfaceForegroundInputFromResolved as jl, canDiscardDraft as jn, decideSectionPhoto as jo, renderInlineText as jr, augmentManifestWithStyleGroups as js, publishContentEntry as jt, parseMailchimpInterestId as ju, PreviewRenderPlanProjection as k, faqAccordionFragment as ka, __spreadArray as kc, resolveMediaSlot as ki, buttonStyleSelectionKey as kl, selectEditorWriteState as kn, heroPhotoPaintsGround as ko, buildAppointmentServicesView as kr, resolveRepeaterGridColumnsForBreakpoint as ks, footerMenuNavigationFacts as kt, parseBrevoListId as ku, SiteChromeCustomizeProvider as l, SITE_STICKY_CHROME_HEIGHT_CSS_VAR as la, DialogContent$1 as lc, parseMediaAssetId as ld, resolveLocationMapLocation as li, useComposedRefs as ll, resolveSurfaceDocumentAttributes as ln, deriveInlineTextFieldChanges as lo, rankBackgroundImagePoolItems as lr, sectionTransitionFamilyForBoundaryOptionId as ls, useEntryController as lt, asSiteStyleId as lu, usePreviewThemeSourceOptional as m, siteTopChromeMeasurementTargets as ma, DialogTrigger$1 as mc, expectParsedBrandedId as md, EVENT_SELECTION_SCOPE_OPTIONS as mi, canWriteLinkedEntry as ml, routeLifecycleContext as mn, isInlineTextEmpty as mo, joinSlotKey as mr, appearancePresets as ms, useSessionJournal as mt, assessMailingListTargeting as mu, usePreviewAssistantSlot as n, getFeatureCardIconCompletion as na, DialogFooter as nc, formatDateTime as nd, getBlockDefinition as ni, Button as nl, reorderSlotBlocks as nn, getGeneratedBlockIconStyleState as no, defaultBackgroundOverrideForMode as nr, buildFontPreviewUrl as ns, footerHeaderStatus as nt, mediaIdentifierSchema as nu, usePreviewPageDesignEditorState as o, toFeatureCardIconSuggestionInputs as oa, overlayScrimClass as oc, parseUtcIsoDateTimeString as od, describeUnresolvedLocationMapLocation as oi, createSlot as ol, getDashboardUrl as on, parseSiteIconStyleGuideVersionId as oo, parseBackgroundOverrideFromContent as or, findCuratedPalette as os, footerEngagementEventFields as ot, asAppearancePresetId as ou, usePreviewThemeSource as p, planSiteOverlayHeaderClearance as pa, DialogTitle$1 as pc, parseSiteId as pd, eventCalendarPagingFields as pi, isEdited as pl, createSnapshotFromPageRecord as pn, inlineTextToPlainText as po, composePageJoins as pr, isThemeV2NormalEditorRawStylePath as ps, useServerRefresh as pt, buildMailingListSignupBlockSourceRef as pu, buildFooterRuntimeViewModel as q, compileManifestContentContract as qa, useCallbackRef$1 as qc, offeringsListingFor as qi, getDirectImageUrlForMediaAsset as ql, manifestFieldSectionOptions as qn, getCuratedSiteStyle as qo, mapOutlineBlocks as qr, Root as qs, partitionFieldsByIntent as qt, valueStatus as qu, PreviewSidebarBootstrap as r, parseFeatureCardGeneratedIconSizePx as ra, DialogHeader as rc, parseBookingLocalDate as rd, listBlockDescriptors as ri, buttonVariants as rl, withSlotCompositionHash as rn, parseBlockIconValue as ro, enabledBackgroundModes as rr, buildGoogleFontFamilyQuery as rs, footerEngagementStarted as rt, asRecord as ru, usePreviewPageDesignRenderState as s, SITE_CHROME_VISIBLE_HEADER_SELECTOR as sa, Dialog$1 as sc, toUtcIsoDateTimeString as sd, normalizeLocationMapSource as si, createSlottable as sl, DEFAULT_SURFACE_ID as sn, applyInlineTextMarkToRange as so, parseCanonicalSectionBackground as sr, defaultSectionTransitionVariantForFamily as ss, parseFooterEngagementDraft as st, asDesignBlockId as su, PreviewAssistantSlotProvider as t, createFeatureCardIconKey as ta, DialogDescription as tc, formatDate$4 as td, resolveFieldOwnership as ti, dispatchDiscreteCustomEvent as tl, reorderBlocks as tn, getBlockIconSemanticId as to, canCycleBackgroundOverrideValue as tr, getGradientPreset as ts, SessionJournalHost as tt, PUBLIC_FILE_FIELD_KINDS as tu, useSiteChromeCustomizeOptional as u, SITE_STICKY_CHROME_HEIGHT_FALLBACK as ua, DialogDescription$1 as uc, unsafeAsMediaAssetId as ud, buildNewsletterFormInteractiveIslandProps as ui, cn as ul, ApiRequestError as un, inlineTextAccentTones as uo, resolveBackgroundCapability as ur, sectionTransitionVariantForBoundaryOptionId as us, useEntryEditorController as ut, authoredValuesEqual as uu, useLiveFooterRuntime as v, planSiteChromePlacement as va, menuItemInteractionClassName as vc, readEventSelectionChips as vi, isAcceptedRepeaterGridSpan as vl, planLeaseNotice as vn, plainTextToInlineText as vo, mergeBlockDescriptorsWithRegistry as vr, planLayoutGridColumnEdit as vs, savedPageSurfaceMetadataReceipt as vt, normalizeLegacyFooterContentToV1 as vu, setPageDesignBlockBackground as w, publicEventsArraySchema as wa, __awaiter as wc, computeMediaTransformStyle as wi, buttonStyleSelectionParameterValue as wl, shouldRevealAllBlockFieldValidation as wn, escapeStyleContent as wo, blockLookFromContent as wr, isRepeaterGridLayoutInvalid as ws, LeaseDiscardedNoticeView as wt, planFooterLayout as wu, cyclePageDesignBlockLook as x, projectRecurringSchedule as xa, usePortalContainer as xc, cardListPresentationSchemaShape as xi, resolveRepeaterGridSpanFieldId as xl, useOptionalEditorUiStoreInstance as xn, truncateInlineText as xo, resolveBlockVariantKey as xr, projectRepeaterGridLayout as xs, EditLeaseDiscardedNotice as xt, resolveFooterSections as xu, applyBindingsToContent as y, buildFormInteractiveIslandProps as ya, menuTriggerInteractionClassName as yc, toggleEventType as yi, resolveRepeaterGridColumnFieldId as yl, useEditorUiStore as yn, removeInlineTextMarkFromRange as yo, mergeManifestWithSdkOptions as yr, buildRepeaterGridDropTargets as ys, useRetentionTicks as yt, parseFooterCompositionV1 as yu, createGuardedPreviewApiClient as z, ctaRowFragment as za, Content$1 as zc, getCurrentResolveImageUrlContext as zi, paletteValueKey as zl, toEditorBlockItem as zn, getHeaderStyle as zo, getLinkedContentEntryMeta as zr, API_ENDPOINTS as zs, BlockApiProvider as zt, readEditorBlockVersionsFromPlacement as zu };
|
|
172793
|
+
export { useFooterComposerState as $, isRichTextDoc as $a, useLayoutEffect2 as $c, readThemeScopeContext as $i, buildRenderableMediaAssetIndex as $l, readNumberFieldUiConfig as $n, surfaceResolutionContextFromTheme as $o, readinessFactsFromLoaders as $r, Spinner as $s, isSurfaceSlotBlockTarget as $t, editorBlockCollectionOwnerKey as $u, usePreviewJoinOutcome as A, faqAccordionFragment as Aa, __rest as Ac, resolveMediaSlot as Ai, updateButtonStyleSelectionChoice as Al, selectEditorWriteState as An, heroPhotoPaintsGround as Ao, buildAppointmentServicesView as Ar, resolveRepeaterGridColumnsForBreakpoint as As, footerMenuNavigationFacts as At, sameMailingListPlacementTargeting as Au, initPreviewAuth as B, ctaRowFragment as Ba, Arrow as Bc, getCurrentResolveImageUrlContext as Bi, resolveSurfaceForeground as Bl, toEditorBlockItem as Bn, getHeaderStyle as Bo, getLinkedContentEntryMeta as Br, API_ENDPOINTS as Bs, BlockApiProvider as Bt, NO_BLOCK_VERSIONS as Bu, pageDesignLookTiles as C, hiddenFromVisitors as Ca, usePortalContainer as Cc, RichText as Ci, resolveRepeaterGridSpanFieldId as Cl, useSidebarView as Cn, parseFieldDefinition as Co, resolveDefaultBlockTree as Cr, findFirstAvailableRepeaterGridPlacement as Cs, EditorWriteSurface as Ct, resolveFooterSections as Cu, ObservedJoin as D, richTextFragment as Da, __extends as Dc, resolveImageUrlWithContext as Di, findButtonStyleRecipe as Dl, SIDEBAR_WIDTH as Dn, DEFAULT_THEME_RESPONSIVE_MODE as Do, getDefaultComponentRegistry as Dr, planRepeaterGridStartNewRow as Ds, getEditorClientId as Dt, parseMailingListPlacementTargeting as Du, selectedImageFromRenderableAsset as E, bookingConsentCarrierSchema as Ea, __awaiter as Ec, resolveImageSourceSetWithContext as Ei, buttonStyleSelectionParameterValue as El, unfinishedBlockCopy as En, mergeContentWithBlockStyleOverrides as Eo, readBlockComposition as Er, normalizeRepeaterGridSpan as Es, reloadPage as Et, planFooterLayout as Eu, lookTilePosition as F, formCopyFragment as Fa, Root$2 as Fc, systemCustomizeFacetAppliesToLayoutVariant as Fi, surfaceForegroundValue as Fl, remoteDraftValues as Fn, compileEditorModelRuntime as Fo, getAtPath as Fr, editorAdmissionIsOpen as Fs, clientComponentRegistry as Ft, knownSocialPlatformLabels as Fu, renderSiteChromeBlock as G, bodyCopyFragment as Ga, useId$1 as Gc, inferLegacyOfferingsPreviewGroupOrder as Gi, normalizeRightAngle as Gl, initialBlockDraftValues as Gn, defaultPolicyPageFlowPresetId as Go, fieldsNotShownIn as Gr, unwrapResponse as Gs, getWidgetKey as Gt, displayedValues as Gu, renewPreviewSession as H, isBlockButtonRole as Ha, Root2$1 as Hc, normalizeEventRegistrationPageSurfaceSubject as Hi, defaultThemeTokens as Hl, deriveEditorValuePublicationState as Hn, concretePaletteToTheme as Ho, resolveEntryRouteTarget as Hr, calendarWindowQuerySchema as Hs, collectVisibleWhenWatchPaths as Ht, readPublishedBlockPlacement as Hu, lookTilesFor as I, testimonialsCarouselFragment as Ia, createRovingFocusGroupScope as Ic, systemCustomizeFacetDefinitionForBlock as Ii, rgbColorValue as Il, renderSourceFor as In, resolveEditorArrangementLook as Io, siblingPath as Ir, editorAdmissionNotice as Is, NewsletterFormClient as It, knownSocialPlatforms as Iu, footerLayoutSelection as J, compileManifestContentContract as Ja, DismissableLayer as Jc, offeringsListingFor as Ji, resolveMediaTransformForAspect as Jl, manifestFieldSectionOptions as Jn, getCuratedSiteStyle as Jo, mapOutlineBlocks as Jr, Root as Js, partitionFieldsByIntent as Jt, syncStateOf as Ju, siteChromeHeaderLogoMayBeHardToSee as K, defineFragment as Ka, FocusScope as Kc, isOfferingsPreviewSourceKey as Ki, formatAspectRatioToken as Kl, createManifestFormAdapter as Kn, componentRuntimeRulesForTheme as Ko, createEditorPresentationPageReader as Kr, selectedCanvasBlockId as Ks, hasVisibilityConditions as Kt, knownRevision as Ku, nextLookTilePin as L, testimonialsHeadingFragment as La, Presence as Lc, systemCustomizeFacetDefinitionsForBlock as Li, textColorStyle as Ll, renderedFieldChanges as Ln, restoreCompiledRuntimeFieldsFromContent as Lo, withValueAtPath as Lr, editorAdmissionSession as Ls, ImageResolveContextProvider as Lt, parsePublicProfile as Lu, usePreviewRenderReadiness as M, blogFeaturedPostFragment as Ma, __spreadArrays as Mc, arrangementKnobChoices as Mi, parseThemeForPersistence as Ml, canDiscardDraft as Mn, decideSectionPhoto as Mo, renderInlineText as Mr, augmentManifestWithStyleGroups as Ms, publishContentEntry as Mt, parseMailchimpAudienceId as Mu, STYLE_DEFAULT_LOOK_KEY as N, singleButtonFragment as Na, hideOthers as Nc, resolveArrangementKnobs as Ni, surfaceForegroundInputFromResolved as Nl, activeLinkedSaveHandover as Nn, sectionPhotoPresence as No, logger as Nr, isObjectRecord$1 as Ns, updateFooterComposition as Nt, parseMailchimpInterestId as Nu, PreviewRenderObservationsProvider as O, headingFragment as Oa, __generator as Oc, resolveMediaStorageUrl as Oi, resolveButtonStyleSelection as Ol, parseStoredSidebarWidth as On, getResponsiveScopeSpec as Oo, buildLoadedOfferingsPreviewListing as Or, resolveRepeaterGridAcceptedSpans as Os, sendPageCommand as Ot, DEFAULT_MAILING_LIST_TARGETING as Ou, lookPositionLabel as P, formEmbedFragment as Pa, Item$1 as Pc, isSystemCustomizeFacetId as Pi, surfaceForegroundStyle as Pl, planLinkedSaveHandoverRetention as Pn, applyCompiledRuntimeFieldsToContent as Po, Text as Pr, isRecord$23 as Ps, footerCreditLine as Pt, parseNewsletterListId as Pu, useFooterAuthoringOptional as Q, RichTextDocSchema as Qa, useControllableState as Qc, buildThemeDataAttrs as Qi, runtimeMediaSchema as Ql, getGroupChildFields as Qn, compiledRuntimeStyleFieldNames as Qo, readinessFactsFromPayload as Qr, CalloutTitle as Qs, deleteSlotBlock as Qt, createEditorReorderBlocksCommand as Qu, selectedLookTile as R, ctaCopyFragment as Ra, Portal as Rc, systemCustomizeFacetStoredValue as Ri, mapDrawingStyle as Rl, resolveRenderedValues as Rn, formatSiteChromeBackgroundTokenLabel as Ro, LINKED_CONTENT_ENTRY_META_KEY as Rr, observeEditorAdmission as Rs, useImageResolveContextOptional as Rt, publicProfileWeekdays as Ru, pageDesignLookPosition as S, projectRecurringSchedule as Sa, PortalContainerProvider as Sc, cardListPresentationSchemaShape as Si, resolveRepeaterGridRowFieldId as Sl, useOptionalEditorUiStoreInstance as Sn, truncateInlineText as So, resolveBlockVariantKey as Sr, projectRepeaterGridLayout as Ss, EditLeaseModal as St, parseFooterModuleId as Su, selectedImageFromMediaValue as T, publicEventsArraySchema as Ta, __assign as Tc, computeMediaTransformStyle as Ti, buttonStyleHoverPreferenceValue as Tl, shouldRevealAllBlockFieldValidation as Tn, escapeStyleContent as To, blockLookFromContent as Tr, isRepeaterGridLayoutInvalid as Ts, LeaseNoticeButtons as Tt, unsafeAsFooterModuleId as Tu, usePreviewAuth as U, heroCopyFragment as Ua, createPopperScope as Uc, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as Ui, expandPalette as Ul, unsafeAsLinkedContentEntryId as Un, lookDefinitionForId as Uo, resolvePageRouteTarget as Ur, ApiEnvelopeError as Us, evaluateVisibility as Ut, selectedContentVersionId as Uu, registerPreviewRenewalFetcher as V, BLOCK_BUTTON_ROLE_OPTIONS as Va, Content$1 as Vc, setContextResolveImageUrlContext as Vi, paletteValueKey as Vl, withoutServerVersions as Vn, concretePaletteFromTheme as Vo, defaultTransforms as Vr, publicMapLocationParamsSchema as Vs, derivePromotedFieldPlan as Vt, readEditorBlockVersionsFromPlacement as Vu, usePreviewToken as W, ctaButton as Wa, useSize as Wc, groupOfferingRunsByCourse as Wi, isRotationDimensionSwap as Wl, editorAuthoredBlockDocument as Wn, readStoredMode as Wo, resolveRouteTarget as Wr, extractApiEnvelopeErrorDetails as Ws, getFieldIntent as Wt, parseEditLeaseScope as Wu, resolveFooterEngagementPreview as X, admitLayoutGridForPlan as Xa, useDirection as Xc, readOfferingsGrouping as Xi, getImageUrl as Xl, getRepeaterItemDefault as Xn, offeredSiteStyles as Xo, PUBLISH_READINESS_COPY as Xr, Callout as Xs, createSlotBlock as Xt, createEditorInsertBlockCommand as Xu, resolveFooterEngagementAuthoringState as Y, validateManifestDraft as Ya, useCallbackRef$1 as Yc, planOfferingPreviewCardSelection as Yi, getDirectImageUrlForMediaAsset as Yl, getFieldDefault as Yn, headerStyleRecipeForTheme as Yo, mapOutlineRegions as Yr, VISUALLY_HIDDEN_STYLES as Ys, createBlock as Yt, valueStatus as Yu, FooterComposerProvider as Z, deriveFieldValidationPlan as Za, createCollection as Zc, resolveOfferingsPreviewGroupOrderEntries as Zi, mediaSchema as Zl, normalizeFieldForCanonicalValidation as Zn, palettesForSiteStyle as Zo, publishReadinessWarning as Zr, CalloutDescription as Zs, deleteBlock as Zt, createEditorRemoveBlockCommand as Zu, PreviewFooterProvider as _, readRuntimeNow as _a, Content as _c, chooseAllEvents as _i, readLinkedEntryLease as _l, resolvePageRouteSlug as _n, normalizeInlineTextMarks as _o, retargetJoinsAcrossOmissions as _r, assertNever$5 as _s, savedContentReceipt as _t, resolveMailingListDefaultDestination as _u, PreviewPageDesignEditorStateProvider as a, resolveFeatureCardGeneratedIconSizePx as aa, DialogHeader as ac, parseBookingLocalDate as ad, normalizeBlockContent as ai, buttonVariants as al, blocksKeys as an, parseGeneratedIconAssetId as ao, imagePoolForOverride as ar, generateFontFaceCss as as, readFooterEngagementDraft as at, asRecord as au, buildPageDesignEditorReadModelForBlocks as b, buildFormInteractiveIslandProps as ba, menuItemInteractionClassName as bc, toggleEventType as bi, isAcceptedRepeaterGridSpan as bl, useEditorUiStore as bn, removeInlineTextMarkFromRange as bo, mergeManifestWithSdkOptions as br, buildRepeaterGridDropTargets as bs, VIEWING_PARTICIPATION as bt, normalizeLegacyFooterContentToV1 as bu, usePreviewShownTheme as c, SITE_CHROME_VISIBLE_HEADER_SELECTOR as ca, overlayScrimClass as cc, resolveBookingBusinessTimeZone as cd, normalizeLocationMapSource as ci, createSlot as cl, DEFAULT_SURFACE_ID as cn, applyInlineTextMarkToRange as co, parseCanonicalSectionBackground as cr, defaultSectionTransitionVariantForFamily as cs, EntryControllerProvider as ct, asAppearancePresetId as cu, cycleSiteChromeSelectionId as d, SITE_STICKY_CHROME_HEIGHT_FALLBACK as da, DialogContent$1 as dc, parseMediaAssetId as dd, buildNewsletterFormInteractiveIslandProps as di, useComposedRefs as dl, ApiRequestError as dn, inlineTextAccentTones as do, resolveBackgroundCapability as dr, sectionTransitionVariantForBoundaryOptionId as ds, DONE as dt, asSiteStyleId as du, themeRuntimeScopeProps as ea, Dialog as ec, editorBlockCollectionOwnersEqual as ed, selectBlockContent as ei, createContextScope as el, listEntryPageContentSlots as en, richTextVariantCapabilities as eo, readSliderFieldUiConfig as er, gradientToCss as es, useFooterPanelOwnsNotice as et, renderableMediaAssetSchema as eu, PreviewThemeJournalProvider as f, measureSiteStickyChromeHeightPx as fa, DialogDescription$1 as fc, unsafeAsMediaAssetId as fd, offeringsPreviewBlockDefinition as fi, cn as fl, PREVIEW_CHROME_Z_INDEX as fn, inlineTextEqual as fo, createPageRenderPlanReader as fr, resolveCompiledSectionContextFromContent as fs, runHeldLifecycle as ft, authoredValuesEqual as fu, previewThemeBase as g, EDITABLE_SURFACE_FORWARDING_PROP as ga, DialogTrigger$1 as gc, expectParsedBrandedId as gd, EVENT_SELECTION_TYPE_OPTIONS as gi, canWriteLinkedEntry as gl, deriveRouteMetadataPresentation as gn, normalizeInlineText as go, renderedJoinLayout as gr, lookModes as gs, createEditorApiClientFactory as gt, assessMailingListTargeting as gu, composePreviewTheme as h, siteTopChromeMeasurementTargets as ha, DialogTitle$1 as hc, parseSiteId as hd, EVENT_SELECTION_SCOPE_OPTIONS as hi, isEdited as hl, routeLifecycleContext as hn, isInlineTextEmpty as ho, joinSlotKey as hr, appearancePresets as hs, useSessionJournalHistory as ht, buildMailingListSignupBlockSourceRef as hu, usePreviewSidebarNavigation as i, parseFeatureCardGeneratedIconSizePx as ia, DialogFooter as ic, formatDateTime as id, listBlockDescriptors as ii, Button as il, withSlotCompositionHash as in, parseBlockIconValue as io, enabledBackgroundModes as ir, buildGoogleFontFamilyQuery as is, footerPartKey as it, mediaIdentifierSchema as iu, usePreviewRenderBackgrounds as j, faqHeadingFragment as ja, __spreadArray as jc, resolveMediaSlotContract as ji, buttonStyleSelectionKey as jl, lifecycleOutcomeMessage as jn, backgroundImagePromotedFieldPath as jo, LocationMapView as jr, resolveBlockTitle as js, toRoutableLinkPayload as jt, parseBrevoListId as ju, PreviewRenderPlanProjection as k, cardFragment as ka, __read as kc, SECTION_BACKGROUND_MIN_SOURCE_WIDTH as ki, updateButtonStyleHoverPreference as kl, selectAutosaveStatus as kn, resolveVisiblePromotedFieldPathsForEditorBlock as ko, resolveEventDetailsPresentation as kr, resolveRepeaterGridBreakpointForWidth as ks, missingReceiptError as kt, mailingListTargetingChoiceIds as ku, SiteChromeCustomizeProvider as l, SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR as la, Dialog$1 as lc, resolveBookingTimeZoneId as ld, parseLocationMapLoaderResult as li, createSlottable as ll, SURFACE_DOCUMENT_DATA_ATTRIBUTE as ln, coerceInlineTextWithFallback as lo, planBackgroundTransition as lr, sectionTransitionFamilies as ls, useEntryController as lt, asDesignBlockId as lu, usePreviewThemeSourceOptional as m, planSiteOverlayHeaderClearance as ma, DialogPortal$1 as mc, unsafeAsPositiveSeconds as md, eventCalendarPagingFields as mi, baselineRevisionOf as ml, createSnapshotFromPageRecord as mn, inlineTextToPlainText as mo, composePageJoins as mr, isThemeV2NormalEditorRawStylePath as ms, useSessionJournal as mt, slugify as mu, usePreviewAssistantSlot as n, createFeatureCardIconKey as na, DialogContent as nc, unsafeAsEditorBlockValues as nd, resolveFieldOwnership as ni, Primitive as nl, reorderBlocks as nn, getBlockIconSemanticId as no, canCycleBackgroundOverrideValue as nr, getGradientPreset as ns, footerHeaderStatus as nt, resolveManagedMediaReference as nu, usePreviewPageDesignEditorState as o, suggestSemanticIconForFeatureCard as oa, DialogTitle as oc, parseUtcIsoDateTimeString as od, LOCATION_MAP_LOADER_KEYS as oi, useControlReadiness as ol, getDashboardBaseUrl as on, parseGeneratedIconSetId as oo, parseBackgroundColorToken as or, getSiteFontsStorageUrl as os, footerEngagementEventFields as ot, getFontWidthRange as ou, usePreviewThemeSource as p, measureSiteTopChromeBottomPx as pa, DialogOverlay$1 as pc, unsafeAsPositiveByteCount as pd, publicRouteCandidatesSchema as pi, useShallow as pl, createRoutingHelpers as pn, inlineTextHighlightTones as po, planArrangementContent as pr, isThemeV2NormalEditorRawStyleFieldName as ps, useServerRefresh as pt, generateUuidV4 as pu, buildFooterRuntimeViewModel as q, runTransforms as qa, useFocusGuards as qc, normalizeOfferingsPreviewGroupOrder as qi, parseAspectRatioValue as ql, createManifestValidation as qn, designRuntimeRulesForTheme as qo, allOutlineBlocks as qr, sidebarReturnView as qs, isNonEmptyValue as qt, pristineValueSync as qu, PreviewSidebarBootstrap as r, getFeatureCardIconCompletion as ra, DialogDescription as rc, formatDate$4 as rd, getBlockDefinition as ri, dispatchDiscreteCustomEvent as rl, reorderSlotBlocks as rn, getGeneratedBlockIconStyleState as ro, defaultBackgroundOverrideForMode as rr, buildFontPreviewUrl as rs, footerEngagementStarted as rt, PUBLIC_FILE_FIELD_KINDS as ru, usePreviewPageDesignRenderState as s, toFeatureCardIconSuggestionInputs as sa, DialogTrigger as sc, toUtcIsoDateTimeString as sd, describeUnresolvedLocationMapLocation as si, cva as sl, getDashboardUrl as sn, parseSiteIconStyleGuideVersionId as so, parseBackgroundOverrideFromContent as sr, findCuratedPalette as ss, parseFooterEngagementDraft as st, isBodyFontFamily as su, PreviewAssistantSlotProvider as t, FEATURE_CARD_GENERATED_ICON_SIZE_PX as ta, DialogClose as tc, unsafeAsEditorBlockId as td, fieldPathsOwnedBy as ti, composeEventHandlers as tl, listPageSurfaceContentSlots as tn, sanitizeHref as to, backgroundColorTokens as tr, GRADIENT_PRESETS as ts, SessionJournalHost as tt, indexRenderableMediaAssets as tu, useSiteChromeCustomizeOptional as u, SITE_STICKY_CHROME_HEIGHT_CSS_VAR as ua, DialogClose$1 as uc, assertNever$9 as ud, resolveLocationMapLocation as ui, composeRefs as ul, resolveSurfaceDocumentAttributes as un, deriveInlineTextFieldChanges as uo, rankBackgroundImagePoolItems as ur, sectionTransitionFamilyForBoundaryOptionId as us, useEntryEditorController as ut, asLayoutVariantKey as uu, useLiveFooterRuntime as v, resolveDateRuntimeContext as va, Root$1 as vc, chooseScheduleScope as vi, canEditorWrite as vl, resolveContentTitle as vn, parseInlineTextFromUnknown as vo, createCustomBlockRegistry as vr, isInternalResolvedLinkValue as vs, savedPageSurfaceMetadataReceipt as vt, mailingListProviderName as vu, setPageDesignBlockBackground as w, pageTemplateFromEntry as wa, ReactRemoveScroll as wc, getRichTextImageSize as wi, siteOptionSources as wl, recoveryConflictCopy as wn, buildThemeRuntime as wo, arrangementHooksFromContent as wr, flowRepeaterGridItems as ws, LeaseDiscardedNoticeView as wt, setFooterSectionSelected as wu, cyclePageDesignBlockLook as x, eventCalendarListGroupingDecision as xa, menuTriggerInteractionClassName as xc, writeEventSelectionChips as xi, resolveRepeaterGridColumnFieldId as xl, useEditorUiStoreInstance as xn, replaceInlineTextRange as xo, makeDefaultBlockComponent as xr, planRepeaterGridSpanChange as xs, EditLeaseDiscardedNotice as xt, parseFooterCompositionV1 as xu, applyBindingsToContent as y, planSiteChromePlacement as ya, Trigger as yc, readEventSelectionChips as yi, bindingSchema as yl, planLeaseNotice as yn, plainTextToInlineText as yo, mergeBlockDescriptorsWithRegistry as yr, planLayoutGridColumnEdit as ys, useRetentionTicks as yt, deriveFooterEditorOverview as yu, createGuardedPreviewApiClient as z, heroCtaRowFragment as za, Anchor as zc, buildResolveImageUrlContext as zi, parseSurfaceTree as zl, useStore as zn, getHeaderLayout as zo, coerceLinkedContentEntriesPayload as zr, OPERATION_ID_HEADER as zs, FormNodeClient as zt, publishedContactDetails as zu };
|