@riverbankcms/sdk 0.177.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/dist/_dts/{BlocksIslandsHydrator-sYraeqm9.d.ts → BlocksIslandsHydrator-CrKsXtpD.d.ts} +1 -1
- package/dist/_dts/{Page-Bp7hTDTy.d.ts → Page-C9i27wZA.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-CxkCCyKw.d.ts → SdkPreviewMode-DzGSR3jh.d.ts} +2 -2
- package/dist/_dts/{client-K6UhbL3t.d.ts → client-BnYN6XsH.d.ts} +31 -7
- package/dist/_dts/{content-types-BLAdIMyr.d.ts → content-types-CXj6lp3d.d.ts} +2 -2
- package/dist/_dts/{contracts-BG7yTZ6t.d.ts → contracts-BZLwkTwL.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DwMHeYmQ.d.ts → footerPageOutline-D_XbQW_o.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-X_WpGzZZ.d.ts → generatePageMetadata-ByEWwe9j.d.ts} +2 -2
- package/dist/_dts/{index-BpAW9AKB.d.ts → index-0HFgCnGz.d.ts} +1 -1
- package/dist/_dts/{index-CX9bp60k.d.ts → index-BE9dWIsr.d.ts} +3 -3
- package/dist/_dts/{index-Bygd2RCg.d.ts → index-CKDRr54L.d.ts} +4 -4
- package/dist/_dts/{index-BMGif2r3.d.ts → index-D9-N1d9v.d.ts} +1 -1
- package/dist/_dts/{index--n-wV8Xd.d.ts → index-DCa-8TEY.d.ts} +1 -1
- package/dist/_dts/{index-BLseXObg.d.ts → index-cTpvQg_Q.d.ts} +2 -2
- package/dist/_dts/{index-CBRbZJ6u.d.ts → index-nnEdgc3Z.d.ts} +2 -2
- package/dist/_dts/{loadContent-uhUThWaq.d.ts → loadContent-DYkVV6w4.d.ts} +7 -7
- package/dist/_dts/{request-Bf9YImJw.d.ts → request-B20VRWHH.d.ts} +491 -43
- package/dist/_dts/{resolveBlockData-D6M5NMZB.d.ts → resolveBlockData-C_aK5GIS.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-DkzWvFbG.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-BdZ5pJSk.d.ts → types-CMZ5mkpv.d.ts} +2 -2
- package/dist/_dts/{types-DgV8P2mz.d.ts → types-CYcd15BQ.d.ts} +7 -7
- package/dist/_dts/{types-C1l2Sm2h.d.ts → types-rm2M4LGx.d.ts} +3 -3
- package/dist/_dts/{validation-BtbZIT5f.d.ts → validation-BSxnRhyy.d.ts} +4 -4
- 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-C03rc6jw.mjs → Page-DqETUt-U.mjs} +12 -12
- 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 +59 -5
- 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 +344 -19
- 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/{PageSectionToolbar-D6-jojqh.mjs → PageSectionToolbar-D-Le7O3o.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-BUVFKZ4k.mjs → PreviewEditorSidebar-DNy5j_ce.mjs} +15 -13
- package/dist/preview-next/client/{PreviewEditorUI-292pOiSt.mjs → PreviewEditorUI-CzJvgbqt.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-CW0Yzj3h.mjs → PreviewShell-xhJ6ca1i.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Dba7zoZK.mjs → SdkPreviewModeRuntime-BmYO1TdT.mjs} +5 -5
- package/dist/preview-next/client/{previewAssistantSlot-B-utyhbS.mjs → previewAssistantSlot-BN93X9o1.mjs} +1141 -596
- package/dist/preview-next/client/{previewChromeRoot-CCoGydUD.mjs → previewChromeRoot-C51RQseo.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DCpXVcA0.mjs → sdk-runtime-oeGquJM-.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-sjOvRAHY.mjs → siteStyleAccess-BGTAcPud.mjs} +1 -1
- 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-R1rZ9-IZ.mjs → useAutosaveStatus-BMGXjGZq.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-BS7CANPv.mjs → useOpenBlockForSetup-CTDoR_gQ.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BSSbtz6A.mjs → route-contract-BtdzkSUg.mjs} +55 -1
- package/dist/server/{Block.shared-Dc3DX7Cf.mjs → Block.shared-Bp3OlOjj.mjs} +5 -5
- package/dist/server/{bindings-VGgS6UvF.mjs → bindings-DrbJuftt.mjs} +3 -3
- package/dist/server/{client-BPLLL22F.mjs → client-Bf06n9oj.mjs} +56 -2
- 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.mjs +56 -13
- package/dist/server/{overrideResolution-CkpwAHvW.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-6z6JBU41.mjs → pageShared-tz-GVWft.mjs} +85 -37
- package/dist/server/portal-B4JVkdjc.mjs +783 -0
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-B4_Llisx.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-BvHio6QI.mjs → validation-CLq5cw6M.mjs} +3 -3
- package/dist/server/{version-SuFlio6n.mjs → version-oPbhAx8E.mjs} +1 -1
- package/dist/styles/index.css +19 -0
- 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
package/dist/server/next.mjs
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as defaultLayoutThemeRuntime, l as ThemeScope, n as toPageHydrationBootstrapConfig, r as defaultCatchAllThemeRuntime } from "./pageShared-
|
|
3
|
-
import { _ as createBearerAPIClient, h as RiverbankApiError, m as CircuitOpenError, p as sdkRequestOptions, t as createRiverbankClient, v as ApiRequestError, y as unwrapResponse } from "./client-
|
|
4
|
-
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-
|
|
1
|
+
import { Js as resolveBookingBusinessTimeZone, qs as toUtcIsoDateTimeString, zs as inferSiteDateLocale } from "./registry-D12XF_h1.mjs";
|
|
2
|
+
import { i as defaultLayoutThemeRuntime, l as ThemeScope, n as toPageHydrationBootstrapConfig, r as defaultCatchAllThemeRuntime } from "./pageShared-tz-GVWft.mjs";
|
|
3
|
+
import { _ as createBearerAPIClient, h as RiverbankApiError, m as CircuitOpenError, p as sdkRequestOptions, t as createRiverbankClient, v as ApiRequestError, y as unwrapResponse } from "./client-Bf06n9oj.mjs";
|
|
4
|
+
import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-eaTY7RPg.mjs";
|
|
5
5
|
import { n as MissingSdkThemeError, r as requireSdkTheme, t as MISSING_SDK_THEME_ERROR_CODE } from "./themeAdmission-DGSAlFUK.mjs";
|
|
6
6
|
import { r as normalizeDataLoaderSearchParams } from "./dataLoaderContext-B3fXA54R.mjs";
|
|
7
7
|
import { l as isPreviewMode, o as normalizeSdkRenderingMode, s as themeRuntimeForRendering } from "./overrides-CD4d-1w7.mjs";
|
|
8
|
+
import { c as PORTAL_ENTRY_COOKIE } from "./constants-Cj7hfbrA.mjs";
|
|
8
9
|
import { n as generatePreviewMetadata, r as applyPageSurfaceIndexing, t as generatePageMetadata } from "./generatePageMetadata-DB_lbrZ7.mjs";
|
|
9
|
-
import { t as getPortalToken } from "./portal-
|
|
10
|
+
import { c as parsePortalEntryArrival, f as previewPortalEntryToken, l as planPortalEntryPage, s as decodePortalEntryCookieValue, t as getPortalToken, u as portalEntryFingerprint } from "./portal-B4JVkdjc.mjs";
|
|
10
11
|
import { _ as toRoutingInfo, a as resolvePageContent, i as contentNotFound, n as contentFound, o as defaultShouldAttemptEntrySubroute, t as RiverbankContentLoadError } from "./resolvePageContent-CAELMBEJ.mjs";
|
|
11
|
-
import { t as SDK_VERSION } from "./version-
|
|
12
|
+
import { t as SDK_VERSION } from "./version-oPbhAx8E.mjs";
|
|
12
13
|
import { t as appendSearchToRedirectDestination } from "./redirect-destination-Bee5ZEon.mjs";
|
|
13
|
-
import { i as Page, r as resolveBlockOverridesForPage } from "./overrideResolution-
|
|
14
|
+
import { i as Page, r as resolveBlockOverridesForPage } from "./overrideResolution-CUHtm7tW.mjs";
|
|
14
15
|
import { cache } from "react";
|
|
15
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
17
|
import { BlocksIslandsHydrator } from "#sdk-rendering-client";
|
|
17
18
|
import { notFound, permanentRedirect, redirect } from "next/navigation";
|
|
18
19
|
import { cookies } from "next/headers";
|
|
19
|
-
import { CustomerPortal, PortalAccessState, PortalDigitalProductView, PortalTicketView } from "#sdk-portal-client";
|
|
20
|
+
import { CustomerPortal, PortalAccessState, PortalDigitalProductView, PortalEntryContent, PortalTicketView } from "#sdk-portal-client";
|
|
20
21
|
import { RedeemGiftCardRouteClient } from "#sdk-gifting-client";
|
|
21
22
|
//#region src/next/requestReadMemo.ts
|
|
22
23
|
/**
|
|
@@ -1142,7 +1143,6 @@ function accessPage(context, kind, state, redirectTo) {
|
|
|
1142
1143
|
return /* @__PURE__ */ jsx(PortalAccessState, {
|
|
1143
1144
|
siteId: context.siteId,
|
|
1144
1145
|
apiBaseUrl: context.apiBaseUrl,
|
|
1145
|
-
callbackPath: context.callbackPath,
|
|
1146
1146
|
demoEmailSuppressed: context.demoEmailSuppressed,
|
|
1147
1147
|
kind,
|
|
1148
1148
|
state,
|
|
@@ -1186,6 +1186,33 @@ async function renderPortalDigitalProductFilePage(context, entitlementId, assetI
|
|
|
1186
1186
|
if (result.kind === "loaded") redirect(result.value.signedUrl);
|
|
1187
1187
|
return accessPage(context, "file", result.kind, `/portal/digital-products/${entitlementId}/files/${assetId}`);
|
|
1188
1188
|
}
|
|
1189
|
+
/**
|
|
1190
|
+
* The Continue page's content, on the site's own layout. Reading this page authenticates nobody and
|
|
1191
|
+
* consumes nothing: its form POSTs to the callback.
|
|
1192
|
+
*/
|
|
1193
|
+
async function renderPortalEntryContent(context, searchParams) {
|
|
1194
|
+
const entry = decodePortalEntryCookieValue((await cookies()).get(PORTAL_ENTRY_COOKIE)?.value);
|
|
1195
|
+
const plan = planPortalEntryPage({
|
|
1196
|
+
arrival: parsePortalEntryArrival(searchParams),
|
|
1197
|
+
pending: entry ? {
|
|
1198
|
+
entry,
|
|
1199
|
+
fingerprint: await portalEntryFingerprint(entry),
|
|
1200
|
+
preview: await previewPortalEntryToken({
|
|
1201
|
+
apiBaseUrl: context.apiBaseUrl,
|
|
1202
|
+
siteId: context.siteId,
|
|
1203
|
+
token: entry.token,
|
|
1204
|
+
sessionToken: context.portalToken
|
|
1205
|
+
})
|
|
1206
|
+
} : null
|
|
1207
|
+
});
|
|
1208
|
+
if (plan.kind === "redirect") redirect(plan.destination);
|
|
1209
|
+
return /* @__PURE__ */ jsx(PortalEntryContent, {
|
|
1210
|
+
view: plan.view,
|
|
1211
|
+
siteId: context.siteId,
|
|
1212
|
+
siteTitle: context.siteTitle,
|
|
1213
|
+
contactEmail: context.contactEmail
|
|
1214
|
+
});
|
|
1215
|
+
}
|
|
1189
1216
|
async function loadPortalPageHost(options, path, searchParams) {
|
|
1190
1217
|
const client = await options.getClient();
|
|
1191
1218
|
const site = await client.getSite({ id: options.config.siteId });
|
|
@@ -1228,7 +1255,6 @@ async function loadPortalPageHost(options, path, searchParams) {
|
|
|
1228
1255
|
siteId: options.config.siteId,
|
|
1229
1256
|
apiBaseUrl: client.getBaseUrl(),
|
|
1230
1257
|
portalToken: getPortalToken(await cookies()),
|
|
1231
|
-
callbackPath: options.portal?.callbackPath,
|
|
1232
1258
|
demoEmailSuppressed: site.demoEmailSuppressed === true,
|
|
1233
1259
|
siteTitle: site.site.title,
|
|
1234
1260
|
businessPerson: site.bookingPerson ?? null
|
|
@@ -1236,7 +1262,7 @@ async function loadPortalPageHost(options, path, searchParams) {
|
|
|
1236
1262
|
};
|
|
1237
1263
|
}
|
|
1238
1264
|
function createPortalPage(options) {
|
|
1239
|
-
return async function PortalPage({ searchParams }
|
|
1265
|
+
return async function PortalPage({ searchParams }) {
|
|
1240
1266
|
const host = await loadPortalPageHost(options, "/portal", await searchParams ?? {});
|
|
1241
1267
|
return /* @__PURE__ */ jsx(ThemeScope, {
|
|
1242
1268
|
theme: host.theme,
|
|
@@ -1247,6 +1273,23 @@ function createPortalPage(options) {
|
|
|
1247
1273
|
});
|
|
1248
1274
|
};
|
|
1249
1275
|
}
|
|
1276
|
+
/** Add at /portal/continue in a layout of your own that has the site's header. */
|
|
1277
|
+
function createPortalContinuePage(options) {
|
|
1278
|
+
return async function PortalContinuePage({ searchParams }) {
|
|
1279
|
+
const params = await searchParams ?? {};
|
|
1280
|
+
const host = await loadPortalPageHost(options, "/portal/continue", params);
|
|
1281
|
+
return /* @__PURE__ */ jsx(ThemeScope, {
|
|
1282
|
+
theme: host.theme,
|
|
1283
|
+
children: await renderPortalEntryContent({
|
|
1284
|
+
siteId: host.context.siteId,
|
|
1285
|
+
apiBaseUrl: host.context.apiBaseUrl,
|
|
1286
|
+
portalToken: host.context.portalToken,
|
|
1287
|
+
siteTitle: host.site.site.title,
|
|
1288
|
+
contactEmail: host.site.businessDetails?.contact?.email ?? null
|
|
1289
|
+
}, params)
|
|
1290
|
+
});
|
|
1291
|
+
};
|
|
1292
|
+
}
|
|
1250
1293
|
function createPortalTicketPage(options) {
|
|
1251
1294
|
return async function PortalTicketPage({ params, searchParams }) {
|
|
1252
1295
|
const { registrationId } = await params;
|
|
@@ -1284,7 +1327,7 @@ function firstParam(value) {
|
|
|
1284
1327
|
}
|
|
1285
1328
|
/** Reserved redeem route. Configure Referrer-Policy: no-referrer for /redeem in the host. */
|
|
1286
1329
|
function createRedeemPage(options) {
|
|
1287
|
-
return async function RedeemPage({ searchParams }
|
|
1330
|
+
return async function RedeemPage({ searchParams }) {
|
|
1288
1331
|
const query = await searchParams ?? {};
|
|
1289
1332
|
const host = await loadPortalPageHost(options, "/redeem", query);
|
|
1290
1333
|
return /* @__PURE__ */ jsx(ThemeScope, {
|
|
@@ -1368,4 +1411,4 @@ function getISRConfig() {
|
|
|
1368
1411
|
};
|
|
1369
1412
|
}
|
|
1370
1413
|
//#endregion
|
|
1371
|
-
export { ISR_REVALIDATE_SECONDS, InvalidCatchAllRenderingOptionsError, MISSING_SDK_THEME_ERROR_CODE, MissingSdkThemeError, RiverbankContentLoadError, SdkContentLoadError, classifyContentLoadError, createCatchAllPage, createGenerateStaticParams, createPortalDigitalProductFilePage, createPortalDigitalProductPage, createPortalPage, createPortalTicketPage, createRedeemPage, createRobots, createSitemap, generateAllStaticParams, getISRConfig, isSdkContentLoadError, normalizeStaticRoutePath, pathToSlugArray, renderPortalDigitalProductFilePage, renderPortalDigitalProductPage, renderPortalTicketPage, routesToStaticParams, toContentLoadFailureLogFields, validateStaticParamsEnv };
|
|
1414
|
+
export { ISR_REVALIDATE_SECONDS, InvalidCatchAllRenderingOptionsError, MISSING_SDK_THEME_ERROR_CODE, MissingSdkThemeError, RiverbankContentLoadError, SdkContentLoadError, classifyContentLoadError, createCatchAllPage, createGenerateStaticParams, createPortalContinuePage, createPortalDigitalProductFilePage, createPortalDigitalProductPage, createPortalPage, createPortalTicketPage, createRedeemPage, createRobots, createSitemap, generateAllStaticParams, getISRConfig, isSdkContentLoadError, normalizeStaticRoutePath, pathToSlugArray, renderPortalDigitalProductFilePage, renderPortalDigitalProductPage, renderPortalEntryContent, renderPortalTicketPage, routesToStaticParams, toContentLoadFailureLogFields, validateStaticParamsEnv };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PageContent } from "./pageShared-
|
|
1
|
+
import { t as PageContent } from "./pageShared-tz-GVWft.mjs";
|
|
2
2
|
import { t as allOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
|
|
3
3
|
import { i as lazyBlockOverrideSymbol } from "./overrides-CD4d-1w7.mjs";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fi as parseBackgroundContent, n as listBlockDescriptors } from "./registry-D12XF_h1.mjs";
|
|
2
2
|
import { i as createRichTextDoc } from "./richTextSchema-QLaQrbII.mjs";
|
|
3
3
|
import { t as getFlattenedRepeaterFields } from "./repeaterFields-MIz7r1ez.mjs";
|
|
4
4
|
import { r as createDebugWriter } from "./debug-DXUyrE0T.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dt as parseThemeColorToken, G as hexToRgb, J as oklchToHexGamut, K as oklabToOklch, P as getTextColorForBackground, R as contrastRatio, X as rgbToHex, Z as srgbToOklab, q as oklabToSrgb } from "./resolveButtonColourStates--6yJp9Tq.mjs";
|
|
2
|
-
import { $ as resolveCardListSchedule, $
|
|
2
|
+
import { $ as resolveCardListSchedule, $i as augmentManifest, Ao as applyLookPhotoTreatment, At as groupOfferingRunsByCourse, Ba as arrangementManifestFromVariants, Bn as canJoinEventWaitlistOnAnyMode, Br as formatEventPrice, Bt as ThemedButtonLink, Ci as lookLeadSlotTransform, Cn as groupEventsByDate, Cr as listItemPresentation, Da as heroPhotoPaintsGround, Di as createTransformRegistry, Ds as orderedLiveRunSessions, Ei as asPartialObject, Es as nextLiveRunSessionStartMs, Fr as classPricesCopySchema, Gn as isEventFull, Gr as getAnchorClasses, Gs as parseBookingLocalDate, Ha as resolveEffectiveArrangement, Hn as formatTotalCapacity, Hr as formatEventPriceDisplay, Hs as compareLocalScheduleDates, Io as stripStaleTransitionStyleGroup, Ir as classPricesDataSchema, Is as formatDate, Js as resolveBookingBusinessTimeZone, Jt as weekColumnDays, Ka as deriveSiteStyleBlockPolicy, Lo as themeV2CompilerOwnedFieldNames, Lr as resolveClassPriceItems, Ls as formatDateRange, Mo as parseCanonicalRuntimeBackground, No as resolveSectionBackground, Os as resolveWholeSeriesBookingPhase, Po as sectionSurfaceBase, Ri as ClockIcon, Rn as hasEventBookingClosedEarly, Rr as formatCoursePrice, Rs as formatDateTimeRange, Si as lookCarouselRegionTransform, Sn as formatTime, Ti as lookSkinSlotTransform, Tr as listLookSlot, Ua as resolveModeArrangement, Un as getEventAvailability, Ur as formatEventStartingPrice, Va as readStoredMode, Vn as formatEventRemainingPlaces, Wa as resolvePublishedLook, Wn as getEventAvailabilityStatus, Wr as BACKGROUND_POSITION_PRESET_VALUES, Ws as getLocalScheduleDate, Wt as buildEventListWeek, X as CardListContentPart, Xt as formatBookingSchedulePresentation, Yt as resolveRuntimeEventDestination, Z as CardListLeadDate, Zs as formatBookingPriceDisplay, _i as resolveBackgroundColorValue, _o as sectionShapeFromContent, aa as eventReadinessQuery, ar as readRuntimeNow, at as computeMediaTransformStyle, ba as lookPresentationOnPalette, bn as formatEventTimeRange, ca as eventDiscoveryFilterKeys, cc as parseGradientPresetId, ci as boxStylesTransforms, cr as headerRuntimeTransforms, da as eventScopeQueryKeys, dn as eventLocalDateKey, dt as systemCustomizeFacetDefinitionsForBlock, ea as isObjectRecord, et as selectCardListPresentation, fa as resolveEventScope, fi as parseBackgroundContent, fr as uiTransforms, gi as resolveSurfaceForegroundStyles, gn as formatEventDateParts, go as sectionShapeForGround, ha as resolveEventCalendarReadPlan, hi as resolveSectionSurfaceForeground, hn as formatEventCompactDateRail, ht as EventQuickFacts, ia as eventReadinessLoaderKey, ja as arrangementAppearancePresets, jo as deriveSectionGround, jr as heroMorePhotoCount, la as eventScopeLoaderParam, lc as arrangementSlotNames, ln as eventCalendarWeekStart, lr as chromeLogoTransforms, ma as eventCalendarListGroupingDecision, mi as parseRuntimeBackgroundContent, nc as resolveExactOrFreePriceDisplay, nn as formatEventLocation, no as gradientToCss, oa as eventReadinessQueryKeys, on as closedRunCopy, pa as resolveCalendarReadProfile, pi as parseBackgroundOverlay, pr as formattingTransforms, qs as toUtcIsoDateTimeString, qt as groupEventsByWeek, ra as blockChecksForEvents, rc as resolvePricingOptionsPriceDisplay, ro as getGradientPreset, rt as ImagePresets, sr as mediaTransforms, ss as isToday, t as getBlockDefinition, tr as contentTransforms, ts as formatDateKey, tt as MediaNodeServer, ua as eventScopeQuery, un as eventDateOptions, ur as layoutTransforms, ut as resolveArrangementKnobs, vo as sectionShapeHook, wi as lookQuoteLimitTransform, wn as resolveEventTimeZone, xa as resolveLookSurfacePresentation, xn as formatEventWeekdayTime, xo as boundaryRuntimeMetricsForDecorativeTransition, yi as isSemanticSpacing, yn as formatEventRunDates, z as combinedLookSchema, za as styleSectionBackgroundForColour, zn as isBookableEvent, zr as formatEventDepositNote } from "./registry-D12XF_h1.mjs";
|
|
3
3
|
import { A as resolveOnColorForThemeToken, G as resolveConcreteColorHex, M as resolveTokenOrCssColorValue, k as isCssColorLiteral, n as parseSurfaceTree } from "./accessibleSurfaces-CM3QANtw.mjs";
|
|
4
4
|
import { D as asSiteStyleId, O as makeBoundaryId, S as asDesignBlockId, T as asLayoutVariantKey } from "./customCss-BZ8YSrQg.mjs";
|
|
5
5
|
import { o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
@@ -945,9 +945,15 @@ function occurrenceCardAvailability(event, count) {
|
|
|
945
945
|
status: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available"
|
|
946
946
|
} : null;
|
|
947
947
|
}
|
|
948
|
-
/** Preserve projected closure reasons; only an open native
|
|
948
|
+
/** Preserve projected closure reasons; only an open native booking needs its clock rechecked. */
|
|
949
949
|
function renderClockClosedCta(event, now) {
|
|
950
|
-
if (!now || event.
|
|
950
|
+
if (!now || event.destination.kind !== "native") return null;
|
|
951
|
+
if (event.bookingScope !== "whole_series") return hasEventBookingClosedEarly(event, now) ? {
|
|
952
|
+
label: "Registration closed",
|
|
953
|
+
href: resolveEventHref(event),
|
|
954
|
+
external: false,
|
|
955
|
+
hidden: true
|
|
956
|
+
} : null;
|
|
951
957
|
const phase = resolveWholeSeriesBookingPhase(event.run, now);
|
|
952
958
|
if (phase.kind === "open") return null;
|
|
953
959
|
return {
|
|
@@ -956,6 +962,7 @@ function renderClockClosedCta(event, now) {
|
|
|
956
962
|
case "cancelled": return "Cancelled";
|
|
957
963
|
case "completed": return "Completed";
|
|
958
964
|
case "in-progress":
|
|
965
|
+
case "bookings-closed":
|
|
959
966
|
case "enrolment-closed":
|
|
960
967
|
case "no-sessions": return "Registration closed";
|
|
961
968
|
default: return assertNever(phase.reason);
|
|
@@ -963,7 +970,7 @@ function renderClockClosedCta(event, now) {
|
|
|
963
970
|
})(),
|
|
964
971
|
href: resolveEventHref(event),
|
|
965
972
|
external: false,
|
|
966
|
-
hidden: phase.reason !== "enrolment-closed"
|
|
973
|
+
hidden: phase.reason !== "enrolment-closed" && phase.reason !== "bookings-closed"
|
|
967
974
|
};
|
|
968
975
|
}
|
|
969
976
|
//#endregion
|
|
@@ -1008,8 +1015,8 @@ function formatEventTeacherLine(event) {
|
|
|
1008
1015
|
* Sorting before deduplication means a duplicate occurrence keeps its earliest
|
|
1009
1016
|
* deterministic representation.
|
|
1010
1017
|
*/
|
|
1011
|
-
function selectQuickDateEvents(events) {
|
|
1012
|
-
return orderedUniqueEventOccurrences(events.filter((event) => event.bookingScope !== "whole_series" && isBookableEvent(event))).slice(0, 4);
|
|
1018
|
+
function selectQuickDateEvents(events, now) {
|
|
1019
|
+
return orderedUniqueEventOccurrences(events.filter((event) => event.bookingScope !== "whole_series" && isBookableEvent(event, now))).slice(0, 4);
|
|
1013
1020
|
}
|
|
1014
1021
|
/** Shared ordering and identity selection, independent of booking capacity. */
|
|
1015
1022
|
function orderedUniqueEventOccurrences(events) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Cs as isRecord$1, Gi as inlineTextToPlainText, Ji as plainTextToInlineText, Jo as parseRepeaterGridInteger, Js as resolveBookingBusinessTimeZone, Mi as parseBlockIconValue, Vo as DEFAULT_MEDIA_FIELD_KINDS, Xo as resolveRepeaterGridRowFieldId, Yi as normalizeSelectSource, Yo as resolveRepeaterGridColumnFieldId, Zi as parseFieldDefinitions, Zo as resolveRepeaterGridSpanFieldId, ac as parseContentVersionId, f as sanitizeNewsletterSignupPublicContent, gs as linkSchema, qi as parseInlineTextFromUnknown, qo as isAcceptedRepeaterGridSpan, qs as toUtcIsoDateTimeString, t as getBlockDefinition } from "./registry-D12XF_h1.mjs";
|
|
2
2
|
import { c as runtimeBoxBackgroundSchema, s as boxBackgroundSchema } from "./schema-BpsqaSSU.mjs";
|
|
3
3
|
import { f as PUBLIC_FILE_FIELD_KINDS, h as mediaIdentifierSchema, i as mediaSchema, o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
4
4
|
import { c as publicLocationSchema, i as locationValueSchema, s as projectPublicLocation, u as trimmedStringOrNull } from "./mapLocation-BM5WX7FY.mjs";
|
|
@@ -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
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
|
});
|