@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,15 +1,15 @@
|
|
|
1
1
|
import { Dt as parseThemeColorToken, Et as parseColorTokenParts, G as hexToRgb, R as contrastRatio, a as formatButtonColourContractError, at as surfaceForegroundValue, c as DEFAULT_BUTTON_SIZES, ct as surfaceInkStyle, d as generateShadowValue$1, et as SURFACE_INK_CSS_VARS, f as DEFAULT_VARIANT_ALIAS_ID, ft as cssVarValue, g as createStandardButtonSurfacePolicy, gt as textColorValue, h as buttonSizeNameSchema, ht as textColorStyle, i as BUTTON_CONTRAST_POLICY, j as expandPalette, mt as rgbColorValue, n as compileButtonColourStates, nt as surfaceForegroundDeclarations, pt as mergeStyles, r as resolveSolidButtonColour, rt as surfaceForegroundInputFromResolved, s as BORDER_WIDTH_MAP, st as surfaceInkDeclarations, u as FONT_SIZE_MAP, ut as backgroundColorStyle, v as unsafeAsOpaqueButtonColourToken } from "./resolveButtonColourStates--6yJp9Tq.mjs";
|
|
2
|
-
import { $ as resolveEventLinkProps, A as deriveEventScheduleSummary, B as MapPinIcon, C as EventHeader, D as OfferingCourseCards, E as EventListingFrameView, F as CardListCollection, G as buildMonthDay, H as eventDisplayTitleText, I as CardListItems, J as selectQuickDateEvents, K as resolveMonthSelectedDay, L as EventItem, M as createEditorPresentationPageReader, N as createPresentationPageReader, O as eventCardListContent, P as EmptyState, Q as resolveEventCta, R as eventCategoryBadge, S as lookPartShown, T as MonthLookView, U as formatCourseDatesAfter, V as eventDisplayTitle, W as formatCourseSessions, X as formatEventDuration, Y as formatEventTeacherLine, Z as resolveEventCardBooking, _ as publicAppointmentPricingSchema, a as joinSlotKey, at as defaultThemeTokens, b as resolvePageRouteTarget, c as buildLinkedContentEditTarget, et as parseStoredVariant, f as defaultTransforms, g as publicAppointmentLocationSchema, h as formatAppointmentPrice, i as composePageJoins, it as buildThemeTokens, j as derivePreviewRunSchedule, k as offeringDatesBySeries, m as formatAppointmentLocation, n as createPageRenderPlanReader, o as renderedJoinLayout, p as formatAppointmentDuration, q as formatEventQuickDate, s as retargetJoinsAcrossOmissions, u as resolveLinkedEntryInlineFieldEligibility, w as EVENT_REGISTRATION_ANCHOR_ID, x as resolveRouteTarget, y as resolveEntryRouteTarget, z as CalendarIcon } from "./pageRenderPlan-
|
|
3
|
-
import { $
|
|
2
|
+
import { $ as resolveEventLinkProps, A as deriveEventScheduleSummary, B as MapPinIcon, C as EventHeader, D as OfferingCourseCards, E as EventListingFrameView, F as CardListCollection, G as buildMonthDay, H as eventDisplayTitleText, I as CardListItems, J as selectQuickDateEvents, K as resolveMonthSelectedDay, L as EventItem, M as createEditorPresentationPageReader, N as createPresentationPageReader, O as eventCardListContent, P as EmptyState, Q as resolveEventCta, R as eventCategoryBadge, S as lookPartShown, T as MonthLookView, U as formatCourseDatesAfter, V as eventDisplayTitle, W as formatCourseSessions, X as formatEventDuration, Y as formatEventTeacherLine, Z as resolveEventCardBooking, _ as publicAppointmentPricingSchema, a as joinSlotKey, at as defaultThemeTokens, b as resolvePageRouteTarget, c as buildLinkedContentEditTarget, et as parseStoredVariant, f as defaultTransforms, g as publicAppointmentLocationSchema, h as formatAppointmentPrice, i as composePageJoins, it as buildThemeTokens, j as derivePreviewRunSchedule, k as offeringDatesBySeries, m as formatAppointmentLocation, n as createPageRenderPlanReader, o as renderedJoinLayout, p as formatAppointmentDuration, q as formatEventQuickDate, s as retargetJoinsAcrossOmissions, u as resolveLinkedEntryInlineFieldEligibility, w as EVENT_REGISTRATION_ANCHOR_ID, x as resolveRouteTarget, y as resolveEntryRouteTarget, z as CalendarIcon } from "./pageRenderPlan-GmPXForc.mjs";
|
|
3
|
+
import { $n as markEditableSurfaceForwarding, $o as getLocalMinuteOfDay, $r as formEmbedFragment, $s as publicEventPricingCurrency, $t as eventOnlinePlace, A as membershipClassesLabel, Aa as headerRootPaint, Ai as when, An as isOrdinaryPublicEvent, Ar as clsx, As as parseMailingListRuntimeContext, At as groupOfferingRunsByCourse, B as eventListingBlockDefinition, Ba as arrangementManifestFromVariants, Bi as FileAudioIcon, Bo as bindingSchema, Br as formatEventPrice, Bs as formatBookingCompactEnglishTime, Bt as ThemedButtonLink, C as buildCartInteractiveIslandProps, Cn as groupEventsByDate, Cr as listItemPresentation, Ct as normalizeEventRegistrationPageSurfaceSubject, D as buildShopInteractiveIslandProps, Dn as hasCancelledRegistrationDate, Dr as resolvedItemSurfaceProps, Ds as orderedLiveRunSessions, E as buildProductListInteractiveIslandProps, Ea as readOpeningToneProjection, En as cancelledDateCopy, Er as lookListPresentationSchemaShape, F as offeringsCatalogueShape, Fi as ChevronDownIcon, Fn as planWholeSeriesRunSelection, Fs as EVENT_ADDRESS_AFTER_BOOKING_LABEL, Ft as resolveOfferingsPreviewGroupCta, G as eventCollectionDisplaySchemaShape, Gi as inlineTextToPlainText, Gn as isEventFull, Gt as eventListWeekDays, H as buildEventCollectionDisplay, Ha as resolveEffectiveArrangement, Hi as FileTextIcon, Hn as formatTotalCapacity, Ht as getIconComponent, I as eventCalendarBlockDefinition, Ii as CircleMinusIcon, In as resolveSelectionBookingClosedDetail, Is as formatDate$1, It as resolveOfferingsPreviewGroups, J as catalogueEventCardProps, Jn as resolveFeatureCardGeneratedIconSizePx, Jr as cardFragment, Js as resolveBookingBusinessTimeZone, K as eventCollectionHydrationSchema, Ki as isInlineTextEmpty, Kn as groupPublicEventsByRun, Kr as richTextFragment, Ks as parseLocalScheduleTime, Kt as eventWeekGroupingContext, L as buildEventCalendarInteractiveIslandProps, Li as CirclePlusIcon, Ln as selectionRepresentativeEvent, Lt as resolveOfferingsRenderInput, M as offeringsPreviewBlockDefinition, Ma as arrangementLookHooks, Mi as parseBlockIconValue, Mn as planOrdinarySeriesSelection, Ms as parseMailingListPlacementTargeting, Mt as offeringRunLifecycle, N as publicRouteCandidatesSchema, Ni as resolveBlockIconRenderValue, Nn as planWholeSeriesParentBooking, Ns as sameMailingListPlacementTargeting, Nt as offeringsListingFor, O as shopProductPresentation, Oa as headerNeedsPhotoShade, Oi as runTransforms, On as eventOccurrenceContext, Oo as anglePolygonCss, Or as itemRole, Os as resolveWholeSeriesBookingPhase, Ot as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, P as buildOfferingsCatalogueListing, Pi as ArrowDownIcon, Pn as planWholeSeriesParentSelection, Pt as readOfferingsGrouping, Q as cardListPresentationSchemaShape, Qa as requireCuratedSiteStyle, Qi as PUBLIC_DOWNLOAD_MEDIA_TYPES, Qn as composeHeaderSectionWrapperClassName, Qo as getLocalDateKey, Qr as singleButtonFragment, Qs as isPublicEventPricingOptionDisplayable, Qt as browserReadAuthoritySchema, R as buildEventCalendarListingDisplay, Ri as ClockIcon, Rr as formatCoursePrice, Rt as ThemedAuthoredButton, S as shopBlockDefinition, Sa as selectItemSurfacePresentation, Sn as formatTime, Sr as defineProgressiveBlockRuntime, Ss as unavailableReadinessFact, St as previewStageSchema, T as buildProductDetailInteractiveIslandProps, Ta as effectiveHeaderNavLinkStyle, Tn as bookingPageKindSchema, Tr as listLookSlot, Ts as CANCELLED_SESSION_STATUS, U as buildEventCollectionHydration, Ui as MinusIcon, Us as getBookingLocalDateKey, Ut as SpinnerNode, V as buildEventListingInteractiveIslandProps, Vi as FileSpreadsheetIcon, Vn as formatEventRemainingPlaces, Vr as formatEventPriceAmount, Vs as toScheduledBookingDateTime, Vt as ThemedDownloadLink, W as buildEventCollectionListingDisplay, Wi as PlusIcon, Wn as getEventAvailabilityStatus, Wt as buildEventListWeek, X as CardListContentPart, Xr as faqHeadingFragment, Y as listingEventCardProps, Yn as shouldReserveFeatureCardIconZone, Yr as faqAccordionFragment, Ys as toBookingTimeZone, Yt as resolveRuntimeEventDestination, Zi as parseFieldDefinitions, Zr as blogFeaturedPostFragment, Zs as formatBookingPriceDisplay, Zt as bookingPresentation, _ as buildGiftingInteractiveIslandProps, _a as themeButtonSelector, _i as resolveBackgroundColorValue, _n as formatEventHourLabel, _r as buildInteractiveIslandProps, _t as getContainerClass, a as LOCATION_MAP_LOADER_KEYS, ai as ctaRowFragment, an as closedDatesCopy, ao as generateDefaultCardSystem, ar as readRuntimeNow, as as getWeekCalendarDays, b as productDetailBlockDefinition, bi as bodyCopyFragment, bn as formatEventTimeRange, br as createZodCodec, bs as loadedReadinessFact, bt as resolveEventRegistrationEventSource, c as normalizeLocationMapSource, cn as buildCalendarViewport, co as generateNavLinkCSS, d as newsletterSignupBlockDefinition, di as resolveCardRoleForBoxStyles, do as resolveEffectPaint, dr as staticHeaderChromeRuntime, ds as blockBookingConsentSchema, ea as isObjectRecord, ec as publicEventPricingDisplay, ei as formCopyFragment, en as eventPlaceName, er as splitPositioningClasses, es as addDays, fn as formatCalendarTitle, fo as generateInteractiveChildInheritanceCSS, fs as bookingConsentCarrierSchema, ft as buildResolveImageUrlContext, g as giftingBlockDefinition, ga as parseThemeButtonVariantId, gn as formatEventDateParts, gr as buildFormInteractiveIslandProps, gt as getCardOrientation, h as newsletterBlockSubmissionMessage, hn as formatEventCompactDateRail, hr as formBlockDefinition, ht as EventQuickFacts, ia as eventReadinessLoaderKey, ic as formatCurrencyAmount, ii as heroCtaRowFragment, in as pageNavigationSchema, io as resolveCardRole, ir as teamMemberCardBiography, is as getWeekCalendarDayTuple, it as MediaPlaceholder, j as passCardListContent, ji as buildGeneratedBlockIconRenderAssetLookupFromUnknown, jn as planDropInPanel, jt as normalizeOfferingsPreviewItemLimit, k as membershipCardListContent, ka as headerRootIsTransparent, ki as el, kn as getPublicEventCanonicalPath, ko as transitionCatalogueEntries, kr as Grid, ks as buildMailingListSignupBlockSourceRef, kt as buildOfferingsPreviewListing, l as parseLocationMapLoaderResult, li as boxStyleClassNames, lo as generateEffectsCSS, ls as publicEventsArraySchema, lt as resolvePublicMediaUrl, m as buildNewsletterFormInteractiveIslandProps, mn as formatEventClockLabel, ms as sanitizeHref, mt as setContextResolveImageUrlContext, na as chosenString, nc as resolveExactOrFreePriceDisplay, ni as testimonialsHeadingFragment, nn as formatEventLocation, nr as parseTeamMemberSpecialties, ns as getDayOfWeek, nt as RichText, o as describeUnresolvedLocationMapLocation, oi as isBlockButtonRole, on as closedRunCopy, oo as generateFooterCss, or as resolveDateRuntimeContext, os as isSameCalendarDay, p as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, pn as formatDate, ps as beforeBookingQuestionsPresentationSchema, pt as getCurrentResolveImageUrlContext, q as eventCollectionSourceSchemaShape, qi as parseInlineTextFromUnknown, qn as FEATURE_CARD_ICON_TREATMENTS, qr as headingFragment, qs as toUtcIsoDateTimeString, r as normalizeBlockContent, ri as ctaCopyFragment, rn as blockSiteTermsSchema, rr as teamMemberBiography, rs as getOrderedDayNames, rt as ImagePresets, s as normalizeLocationMapProps, sa as eventReadinessResultSchema, si as heroCopyFragment, sn as closedDateCopy, so as buildTextContrastShadow, ss as isToday, t as getBlockDefinition, ta as isRecord$4, tc as publicEventPricingType, ti as testimonialsCarouselFragment, tn as eventVenuePlace, ts as formatDateKey, tt as MediaNodeServer, u as resolveLocationMapLocation, uc as TokenResolver, ui as normalizeBoxStylesBorder, un as eventDateOptions, uo as resolveEffectApplications, us as blockBookingPaymentTermsSchema, v as checkoutBlockDefinition, va as AFFORDANCE_SUPPRESS_CLASS, vi as ctaButton, vn as formatEventNextDateFact, vr as createInteractiveIslandCodec, vs as admitReadinessFacts, vt as eventRegistrationBlockDefinition, w as buildCheckoutInteractiveIslandProps, wa as authoredHeaderLinkForeground, wn as resolveEventTimeZone, wr as listLookControl, wt as resolveEventRegistrationScopedEvents, x as productListBlockDefinition, xi as defineFragment, xo as boundaryRuntimeMetricsForDecorativeTransition, xr as defineClientOwnedBlockRuntime, xs as pageTemplateFromEntry, xt as bookingNowSchema, y as cartBlockDefinition, ya as resolveHeaderRootForeground, yr as defineInteractiveIslandMetaKeys, ys as hiddenFromVisitors, yt as buildEventRegistrationInteractiveIslandProps, zi as FileArchiveIcon, zn as isBookableEvent, zr as formatEventDepositNote, zt as ThemedButton } from "./registry-D12XF_h1.mjs";
|
|
4
4
|
import { B as HOVER_TEXT_THRESHOLD, C as materializeRuntimeButtonAppearance, F as resolveSurfaceForeground, G as resolveConcreteColorHex, H as contrastThresholdByPolicy, K as resolveOpaqueSurfaceHex, L as surfaceInkPublication, N as freezeOwnedThemeValue, O as mapButtonVisualAppearances, P as ownedThemeSnapshot, S as buttonTypographyDeclarations, U as inkReference, V as certifyPaint, b as buttonShadow, f as compositeHex, g as actionVariableFallback, n as parseSurfaceTree, o as resolveSurface, s as serializeSurfaceTree, v as buttonBorder, w as paddingDeclarations, x as buttonStateAppearanceDeclarations, y as buttonRadius } from "./accessibleSurfaces-CM3QANtw.mjs";
|
|
5
5
|
import { b as siteChromeBackgroundOverrideOwner, m as surfaceCardRoleValues, s as boxBackgroundSchema } from "./schema-BpsqaSSU.mjs";
|
|
6
6
|
import { l as renderableMediaAssetSchema, o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
7
|
-
import { a as normalizeLocationAddressText, d as mapDrawingSchema } from "./mapLocation-BM5WX7FY.mjs";
|
|
7
|
+
import { a as normalizeLocationAddressText, c as publicLocationSchema, d as mapDrawingSchema } from "./mapLocation-BM5WX7FY.mjs";
|
|
8
8
|
import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
|
|
9
|
-
import { A as MQ_TABLET_ONLY, D as MQ_MD_UP, E as MQ_MD_DOWN, O as MQ_SM_DOWN, T as MQ_LG_UP, c as readSdkPreviewPublishedPlacement, g as validateManifestDraft, k as MQ_SM_UP, m as compileManifestContentContract } from "./pageRuntimeSupport-
|
|
9
|
+
import { A as MQ_TABLET_ONLY, D as MQ_MD_UP, E as MQ_MD_DOWN, O as MQ_SM_DOWN, T as MQ_LG_UP, c as readSdkPreviewPublishedPlacement, g as validateManifestDraft, k as MQ_SM_UP, m as compileManifestContentContract } from "./pageRuntimeSupport-Dd8LFzfa.mjs";
|
|
10
10
|
import { n as RichTextDocSchema } from "./richTextSchema-QLaQrbII.mjs";
|
|
11
11
|
import { M as opaqueSurfaceDeclarations, T as testimonialsCompositionTreatmentValues, j as opaqueSurfaceContextFromTheme, v as featureCardCompositionTreatmentValues, x as offeringsPreviewCompositionTreatmentValues, y as introCompositionTreatmentValues } from "./lookMediaFrame-CaH018pK.mjs";
|
|
12
|
-
import { c as mergeHeaderNavTypographyPreference, l as readHeaderNavFontSizePreference } from "./bindings-
|
|
12
|
+
import { c as mergeHeaderNavTypographyPreference, l as readHeaderNavFontSizePreference } from "./bindings-DrbJuftt.mjs";
|
|
13
13
|
import { A as generateShadowCssVars, C as INPUT_ERROR_BORDER_COLOR_VAR, D as RESOLVED_BUTTON_DISABLED_DECLARATIONS, E as generateOpaquePanelCss, M as cardBorderDeclarations, N as cardDecorationPseudoRules, O as resolvedButtonColourDeclarations, S as INPUT_EDGE_COLOR_VAR, T as generateCheckableCss, _ as getResponsiveScopeSpec, a as prefixSelector, b as INPUT_GROUP_SELECTOR, c as parseCustomCssRules, d as THEME_RADIUS_CSS_VARS, f as generateTypographyCss, g as THEME_RESPONSIVE_CONTAINER_NAME, h as DEFAULT_THEME_RESPONSIVE_MODE, i as escapeStyleContent, j as renderCssDeclarations, k as resolvedButtonFocusDeclarations, l as generateAllBlockVarsCss, m as generateStatusCss, n as compileBlockCustomCssRules, o as toKebabCase, p as generateProgressCss, r as compileCustomCssRules, s as parseBlockCustomCssRules, t as ThemeScopeCore, u as generateBlockCustomVarsCss, v as INPUT_GROUP_ERROR_SELECTOR, w as inputEdgeColorValue, x as generateInputGroupCss, y as INPUT_GROUP_FOCUS_SELECTOR } from "./ThemeScopeCore-DFEM1a85.mjs";
|
|
14
14
|
import { t as parseThemeForPersistence } from "./parseThemeForPersistence-DOsfofCy.mjs";
|
|
15
15
|
import { n as mapOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
|
|
@@ -5416,8 +5416,8 @@ function EventQuickDates({ events, pathname, buttonVariant = "primary", dateStyl
|
|
|
5416
5416
|
* Null when the date has no registration path (closed, paused, not open yet,
|
|
5417
5417
|
* no registration, or full with no waitlist), so no caller repeats that gate.
|
|
5418
5418
|
*/
|
|
5419
|
-
function eventDateBookingLink(event, pathname, dateLabel) {
|
|
5420
|
-
if (!isBookableEvent(event)) return null;
|
|
5419
|
+
function eventDateBookingLink(event, pathname, dateLabel, now) {
|
|
5420
|
+
if (!isBookableEvent(event, now)) return null;
|
|
5421
5421
|
const cta = resolveEventCta(event);
|
|
5422
5422
|
return {
|
|
5423
5423
|
href: resolveRuntimeEventDestination(event).kind === "external" ? cta.href : resolveDedicatedBookingHref(pathname, {
|
|
@@ -8531,6 +8531,7 @@ function bookingClosedReason(reason) {
|
|
|
8531
8531
|
case "cancelled": return "These dates have been cancelled.";
|
|
8532
8532
|
case "in-progress": return "Bookings closed when the first session began.";
|
|
8533
8533
|
case "completed": return "These dates have finished.";
|
|
8534
|
+
case "bookings-closed":
|
|
8534
8535
|
case "enrolment-closed": return "Bookings for these dates have closed.";
|
|
8535
8536
|
case "no-sessions": return "No dates are currently scheduled.";
|
|
8536
8537
|
}
|
|
@@ -9215,12 +9216,12 @@ function cardsListDates(props) {
|
|
|
9215
9216
|
return props.lookSlots !== void 0 && props.datesMode === "next-dates";
|
|
9216
9217
|
}
|
|
9217
9218
|
/** One offering has room for a Book link on each date; several keep plain rows. */
|
|
9218
|
-
function catalogueDateBooking(shape, pathname) {
|
|
9219
|
-
return shape === "single" ? (event, dateLabel) => eventDateBookingLink(event, pathname ?? "/", dateLabel) : void 0;
|
|
9219
|
+
function catalogueDateBooking(shape, pathname, now) {
|
|
9220
|
+
return shape === "single" ? (event, dateLabel) => eventDateBookingLink(event, pathname ?? "/", dateLabel, now) : void 0;
|
|
9220
9221
|
}
|
|
9221
9222
|
function renderOfferingsCatalogueGroups({ props, groups, shape }) {
|
|
9222
9223
|
const enabledSeriesIds = new Set(groups.flatMap((load) => load.kind === "items" ? load.items.map((item) => item.kind === "event" ? item.event.seriesId : item.run.eventSeriesId) : []));
|
|
9223
|
-
const quickDateEvents = cardsListDates(props) ? [] : selectQuickDateEvents((props.quickDateEvents ?? []).filter((event) => enabledSeriesIds.has(event.seriesId)));
|
|
9224
|
+
const quickDateEvents = cardsListDates(props) ? [] : selectQuickDateEvents((props.quickDateEvents ?? []).filter((event) => enabledSeriesIds.has(event.seriesId)), props.now);
|
|
9224
9225
|
const populated = groups.flatMap(catalogueGroupItems);
|
|
9225
9226
|
const frames = listGroupFrames(props);
|
|
9226
9227
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -9283,7 +9284,7 @@ function renderCatalogueItems({ props, items, shape, groupTitle }) {
|
|
|
9283
9284
|
}
|
|
9284
9285
|
/** Dates are a display sample; the series card never infers availability from them. */
|
|
9285
9286
|
function catalogueDates(events, now, shape, pathname) {
|
|
9286
|
-
return offeringDatesBySeries(events, now, catalogueDateBooking(shape, pathname));
|
|
9287
|
+
return offeringDatesBySeries(events, now, catalogueDateBooking(shape, pathname, now));
|
|
9287
9288
|
}
|
|
9288
9289
|
function catalogueCardContent(item, now, dates, typeLabel) {
|
|
9289
9290
|
const event = item.kind === "event" ? item.event : item.run.representative;
|
|
@@ -12035,7 +12036,11 @@ function EventBookingPanelBody({ panel }) {
|
|
|
12035
12036
|
});
|
|
12036
12037
|
case "dropIn": return /* @__PURE__ */ jsx(DropInPanel, { panel: panel.panel });
|
|
12037
12038
|
case "bookingClosed": return /* @__PURE__ */ jsx(BookingClosedPanel, { detail: panel.detail });
|
|
12038
|
-
case "closedRun": return /* @__PURE__ */ jsx(ClosedRunPanel, {
|
|
12039
|
+
case "closedRun": return /* @__PURE__ */ jsx(ClosedRunPanel, { copy: closedRunCopy(panel.reason, panel.run) });
|
|
12040
|
+
case "closedDate": return /* @__PURE__ */ jsx(ClosedRunPanel, {
|
|
12041
|
+
copy: panel.copy,
|
|
12042
|
+
otherDatesHref: panel.copy.otherDatesHref
|
|
12043
|
+
});
|
|
12039
12044
|
case "single": return /* @__PURE__ */ jsx(SingleDateBooking, { run: panel.run });
|
|
12040
12045
|
case "choice": return /* @__PURE__ */ jsx(RunChooser, { runs: panel.runs });
|
|
12041
12046
|
case "unavailable": return /* @__PURE__ */ jsxs("div", {
|
|
@@ -12107,17 +12112,27 @@ function BookingClosedPanel({ detail }) {
|
|
|
12107
12112
|
});
|
|
12108
12113
|
}
|
|
12109
12114
|
/** Dates that cannot be booked keep their details and say why. */
|
|
12110
|
-
function ClosedRunPanel({
|
|
12111
|
-
const copy = closedRunCopy(reason);
|
|
12115
|
+
function ClosedRunPanel({ copy, otherDatesHref }) {
|
|
12112
12116
|
return /* @__PURE__ */ jsxs("div", {
|
|
12113
12117
|
className: "event-booking-panel__closed-run",
|
|
12114
|
-
children: [
|
|
12115
|
-
|
|
12116
|
-
|
|
12117
|
-
|
|
12118
|
-
|
|
12119
|
-
|
|
12120
|
-
|
|
12118
|
+
children: [
|
|
12119
|
+
/* @__PURE__ */ jsx("h2", {
|
|
12120
|
+
className: "card-title rb-mb-3",
|
|
12121
|
+
children: copy.titleText
|
|
12122
|
+
}),
|
|
12123
|
+
/* @__PURE__ */ jsx("p", {
|
|
12124
|
+
className: "status-muted rb-text-base rb-leading-relaxed",
|
|
12125
|
+
children: copy.bodyText
|
|
12126
|
+
}),
|
|
12127
|
+
otherDatesHref ? /* @__PURE__ */ jsx("p", {
|
|
12128
|
+
className: "rb-mt-4 rb-text-base",
|
|
12129
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
12130
|
+
className: "rb-underline",
|
|
12131
|
+
href: otherDatesHref,
|
|
12132
|
+
children: "See the other dates"
|
|
12133
|
+
})
|
|
12134
|
+
}) : null
|
|
12135
|
+
]
|
|
12121
12136
|
});
|
|
12122
12137
|
}
|
|
12123
12138
|
/**
|
|
@@ -12251,40 +12266,53 @@ function planEventBookingPanel({ selection, subject }, now) {
|
|
|
12251
12266
|
...nonBookingPanel,
|
|
12252
12267
|
registration
|
|
12253
12268
|
};
|
|
12254
|
-
|
|
12255
|
-
|
|
12256
|
-
kind: "closedRun",
|
|
12257
|
-
reason: phase.reason,
|
|
12258
|
-
registration
|
|
12259
|
-
} : {
|
|
12260
|
-
kind: "registration",
|
|
12269
|
+
return {
|
|
12270
|
+
...closedDatePanel(selection, now) ?? closedRunPanel(selection, now) ?? { kind: "registration" },
|
|
12261
12271
|
registration
|
|
12262
12272
|
};
|
|
12263
12273
|
}
|
|
12264
12274
|
case "wholeSeriesParent": {
|
|
12275
|
+
const registration = parentRegistrationTarget(selection, subject);
|
|
12265
12276
|
if (nonBookingPanel) return {
|
|
12266
12277
|
...nonBookingPanel,
|
|
12267
|
-
registration
|
|
12278
|
+
registration
|
|
12268
12279
|
};
|
|
12269
12280
|
const panel = planWholeSeriesParentBooking(selection.eligibleRuns);
|
|
12270
12281
|
return panel.kind === "bookTogether" ? {
|
|
12271
12282
|
kind: "registration",
|
|
12272
|
-
registration
|
|
12273
|
-
events: panel.runs.map((run) => run.representative),
|
|
12274
|
-
subject,
|
|
12275
|
-
occurrenceContext: null
|
|
12276
|
-
}
|
|
12283
|
+
registration
|
|
12277
12284
|
} : {
|
|
12278
12285
|
...panel,
|
|
12279
|
-
registration
|
|
12286
|
+
registration
|
|
12280
12287
|
};
|
|
12281
12288
|
}
|
|
12282
12289
|
case "wholeSeriesParentUnavailable": return {
|
|
12283
12290
|
...nonBookingPanel ?? { kind: "unavailable" },
|
|
12284
|
-
registration:
|
|
12291
|
+
registration: parentRegistrationTarget(selection, subject)
|
|
12285
12292
|
};
|
|
12286
12293
|
}
|
|
12287
12294
|
}
|
|
12295
|
+
/**
|
|
12296
|
+
* A date past its cut-off, however old the page's data is. A list of dates only
|
|
12297
|
+
* closes when every date has: until then the closed ones just leave the list.
|
|
12298
|
+
*/
|
|
12299
|
+
function closedRunPanel(selection, now) {
|
|
12300
|
+
if (selection.kind !== "wholeSeriesRun") return null;
|
|
12301
|
+
const phase = resolveWholeSeriesBookingPhase(selection.run.run, now);
|
|
12302
|
+
return phase.kind === "closed" ? {
|
|
12303
|
+
kind: "closedRun",
|
|
12304
|
+
reason: phase.reason,
|
|
12305
|
+
run: selection.run.run
|
|
12306
|
+
} : null;
|
|
12307
|
+
}
|
|
12308
|
+
function closedDatePanel(selection, now) {
|
|
12309
|
+
if (selection.kind === "wholeSeriesRun") return null;
|
|
12310
|
+
const copy = selection.kind === "occurrence" ? closedDateCopy(selection.event, now) : closedDatesCopy(selection.dates, now);
|
|
12311
|
+
return copy ? {
|
|
12312
|
+
kind: "closedDate",
|
|
12313
|
+
copy
|
|
12314
|
+
} : null;
|
|
12315
|
+
}
|
|
12288
12316
|
/** Drop-in and page-level closure take precedence over fresh booking and run selection. */
|
|
12289
12317
|
function planNonBookingPanel(selection) {
|
|
12290
12318
|
if (!selectionRepresentativeEvent(selection).requiresRegistration) return {
|
|
@@ -12316,13 +12344,25 @@ function selectionRegistrationTarget(selection, subject) {
|
|
|
12316
12344
|
};
|
|
12317
12345
|
}
|
|
12318
12346
|
}
|
|
12347
|
+
/**
|
|
12348
|
+
* Every run the course page admits, not just those still taking bookings. An
|
|
12349
|
+
* invitation emailed for a run links here, and stays good after that run closes.
|
|
12350
|
+
* The wizard narrows these to the runs it offers for a new booking.
|
|
12351
|
+
*/
|
|
12352
|
+
function parentRegistrationTarget(selection, subject) {
|
|
12353
|
+
return {
|
|
12354
|
+
events: selection.admittedRuns.map((run) => run.representative),
|
|
12355
|
+
occurrenceContext: null,
|
|
12356
|
+
subject
|
|
12357
|
+
};
|
|
12358
|
+
}
|
|
12319
12359
|
/** Cancelled dates have no new-booking or recovery form, including old direct links. */
|
|
12320
12360
|
function isCancelledDateSelection(selection) {
|
|
12321
12361
|
return selection.kind === "occurrence" && hasCancelledRegistrationDate([selection.event]);
|
|
12322
12362
|
}
|
|
12323
12363
|
//#endregion
|
|
12324
12364
|
//#region ../blocks/src/system/runtime/nodes/event-registration/RegistrationClosedState.tsx
|
|
12325
|
-
function RegistrationClosedState({ title, body }) {
|
|
12365
|
+
function RegistrationClosedState({ title, body, otherDatesHref }) {
|
|
12326
12366
|
return /* @__PURE__ */ jsx("div", {
|
|
12327
12367
|
id: EVENT_REGISTRATION_ANCHOR_ID,
|
|
12328
12368
|
className: "rb-reg-surface er-container er-registration-closed",
|
|
@@ -12341,7 +12381,15 @@ function RegistrationClosedState({ title, body }) {
|
|
|
12341
12381
|
/* @__PURE__ */ jsx("p", {
|
|
12342
12382
|
className: "er-text er-text--muted",
|
|
12343
12383
|
children: body
|
|
12344
|
-
})
|
|
12384
|
+
}),
|
|
12385
|
+
otherDatesHref ? /* @__PURE__ */ jsx("p", {
|
|
12386
|
+
className: "er-text",
|
|
12387
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
12388
|
+
className: "rb-underline",
|
|
12389
|
+
href: otherDatesHref,
|
|
12390
|
+
children: "See the other dates"
|
|
12391
|
+
})
|
|
12392
|
+
}) : null
|
|
12345
12393
|
] })
|
|
12346
12394
|
})
|
|
12347
12395
|
});
|
|
@@ -15763,7 +15811,16 @@ function prepareEntry(entry, input) {
|
|
|
15763
15811
|
*/
|
|
15764
15812
|
function previewableEditorContent(entry) {
|
|
15765
15813
|
if (entry.block.presentationAdmission.kind !== "editor") return entry.renderableContent;
|
|
15766
|
-
return validateManifestDraft(compileManifestContentContract(entry.definition.manifest), entry
|
|
15814
|
+
return validateManifestDraft(compileManifestContentContract(entry.definition.manifest), withoutRenderOnlyLocation(entry)).kind === "previewable" ? entry.renderableContent : null;
|
|
15815
|
+
}
|
|
15816
|
+
/**
|
|
15817
|
+
* The editor gives a custom map its public projection to draw (authoringLocationMaps).
|
|
15818
|
+
* The draft contract rightly refuses that shape, because it mustn't be saved, and
|
|
15819
|
+
* the owner's stored location was admitted before it was projected.
|
|
15820
|
+
*/
|
|
15821
|
+
function withoutRenderOnlyLocation(entry) {
|
|
15822
|
+
const { location, ...content } = entry.ownerEditableContent;
|
|
15823
|
+
return entry.block.kind === "block.location-map" && publicLocationSchema.safeParse(location).success ? content : entry.ownerEditableContent;
|
|
15767
15824
|
}
|
|
15768
15825
|
function buildPreparedContent(entry, content, input) {
|
|
15769
15826
|
const { dataContext } = input;
|