@riverbankcms/sdk 0.177.0 → 0.179.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 +15 -8
- package/dist/_dts/{BlocksIslandsHydrator-sYraeqm9.d.ts → BlocksIslandsHydrator-DKwgs95u.d.ts} +1 -1
- package/dist/_dts/{Page-Bp7hTDTy.d.ts → Page-lWenra5i.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-CxkCCyKw.d.ts → SdkPreviewMode-BRxhRw4I.d.ts} +2 -2
- package/dist/_dts/{client-K6UhbL3t.d.ts → client-qWn7xAwJ.d.ts} +77 -23
- package/dist/_dts/{content-types-BLAdIMyr.d.ts → content-types-DL6GIvTm.d.ts} +2 -2
- package/dist/_dts/{contracts-BG7yTZ6t.d.ts → contracts-CzWyAiJj.d.ts} +6 -116
- package/dist/_dts/{generatePageMetadata-X_WpGzZZ.d.ts → generatePageMetadata-CBKd0cJ4.d.ts} +2 -2
- package/dist/_dts/{index--n-wV8Xd.d.ts → index-7CDBZGb-.d.ts} +1 -1
- package/dist/_dts/{index-Bygd2RCg.d.ts → index-BU9uAkHB.d.ts} +4 -4
- package/dist/_dts/{index-BMGif2r3.d.ts → index-BYnG_vF5.d.ts} +1 -1
- package/dist/_dts/{index-CBRbZJ6u.d.ts → index-CZgJrhzT.d.ts} +4 -2
- package/dist/_dts/{index-BLseXObg.d.ts → index-CaCum9mM.d.ts} +2 -2
- package/dist/_dts/{index-BpAW9AKB.d.ts → index-DCiSHd-C.d.ts} +1 -1
- package/dist/_dts/{index-CX9bp60k.d.ts → index-DVSipdrT.d.ts} +3 -3
- package/dist/_dts/{loadContent-uhUThWaq.d.ts → loadContent-CPKbFQyq.d.ts} +15 -13
- package/dist/_dts/{request-Bf9YImJw.d.ts → request-BjKBCS7t.d.ts} +1687 -373
- package/dist/_dts/{resolveBlockData-D6M5NMZB.d.ts → resolveBlockData-DupbMCup.d.ts} +8 -5
- package/dist/_dts/resolvePageContent-BqNyCHi8.d.ts +61 -0
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +3 -3
- 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 +7 -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 +32 -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 +7 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +19 -6
- 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/serviceBookingOutline-YcsIjvn1.d.ts +582 -0
- package/dist/_dts/{types-C1l2Sm2h.d.ts → types-B7e6Lmo5.d.ts} +3 -3
- package/dist/_dts/{types-DgV8P2mz.d.ts → types-BOxSq-Bq.d.ts} +8 -7
- package/dist/_dts/{types-BdZ5pJSk.d.ts → types-CT-KOxl_.d.ts} +5 -39
- package/dist/_dts/{validation-BtbZIT5f.d.ts → validation-Dz6qccue.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-CeYQQQs7.mjs → BlocksIslandsHydrator-1XifJg6V.mjs} +17 -18
- package/dist/client/{BookingMailingListNote-CDDWrY_W.mjs → BookingMailingListNote-BsbEgagJ.mjs} +7 -7
- package/dist/client/{BookingQuestionFields-MbvIo2jS.mjs → BookingQuestionFields-C8IbeLHj.mjs} +4 -4
- package/dist/client/{CalendarNavigationChevron-C6CSVfEB.mjs → CalendarNavigationChevron-Bbqij1XQ.mjs} +43 -10
- package/dist/client/{CheckboxChoice-b-PJLEXe.mjs → CheckboxChoice-BZPLCgTU.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-C9Ggcfx3.mjs → DemoBookingPortalAccess-uA9H8LIL.mjs} +4 -4
- package/dist/client/{EventCalendar.client-BSMuSqg0.mjs → EventCalendar.client-yoSI77ov.mjs} +11 -11
- package/dist/client/{EventCombined.client-BTrmSyUB.mjs → EventCombined.client-HeCNlliq.mjs} +11 -11
- package/dist/client/{EventEmbeddedCheckoutStep-B18VbNS_.mjs → EventEmbeddedCheckoutStep-BDnicDM6.mjs} +1 -1
- package/dist/client/{EventItem-B0WjGXsH.mjs → EventItem-Duhk1vnF.mjs} +247 -7
- package/dist/client/{EventListWeekNavigation-8Ij7vuxY.mjs → EventListWeekNavigation-BiutEqPK.mjs} +1 -1
- package/dist/client/{EventListing.client-CWk2NEwd.mjs → EventListing.client-B5ln77jG.mjs} +3 -3
- package/dist/client/{EventListing.view-BEH4UbSL.mjs → EventListing.view-hUDhNtMv.mjs} +203 -9
- package/dist/client/{EventRegistrationPayment-B2EikR3f.mjs → EventRegistrationPayment-DqtX1vB2.mjs} +439 -123
- package/dist/client/{Page-C03rc6jw.mjs → Page-ChJ2TGVk.mjs} +24314 -20226
- package/dist/client/{ProtectedSubmitButton-C-ql101B.mjs → ProtectedSubmitButton-De6AzhE6.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-BYACYP0T.mjs → SiteTermsAgreementField-CDBU31xW.mjs} +3 -3
- package/dist/client/{StepIndicator-Bb7rPtSq.mjs → StepIndicator-2Dl9zon2.mjs} +80 -33
- package/dist/client/{BookingPanelArrangement-BShQSial.mjs → StepIndicator-JQA-VuEH.mjs} +12 -12
- package/dist/client/{TabBarFragment-BqfRLojo.mjs → TabBarFragment-DlKQRhP4.mjs} +1 -1
- package/dist/client/{ThemedButton-DuaYtnvG.mjs → ThemedButton-CnSa7o-I.mjs} +66 -66
- package/dist/client/{accessibleSurfaces-DN8it_Cx.mjs → accessibleSurfaces-Wl8-_OVJ.mjs} +1 -1
- package/dist/client/{accordion-BfsOiweL.mjs → accordion-B6SqU49k.mjs} +1 -1
- package/dist/client/{booking-form.client-B8ohIj13.mjs → booking-form.client-DrEOjQ3N.mjs} +15 -15
- package/dist/client/{bookingForm-CXsck2oH.mjs → bookingForm-drZBwEZW.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-B_hcuT06.mjs → boxStyleClassNames-DEh45w16.mjs} +19 -19
- package/dist/client/{carousel-Cz5Ddbsx.mjs → carousel-C-YJliD-.mjs} +2 -2
- package/dist/client/{carousel.client-h65clfUO.mjs → carousel.client-DMtGYTTM.mjs} +1 -1
- package/dist/client/{cart-CTC2oS3p.mjs → cart-acGFWK9R.mjs} +3 -3
- package/dist/client/{cart.client-c1YkTC-Q.mjs → cart.client-BzlOGP2j.mjs} +1 -1
- package/dist/client/{checkout-BeW1ufaH.mjs → checkout-SEontwhy.mjs} +3 -3
- package/dist/client/{checkout.client-BeU32khQ.mjs → checkout.client-C0Qvh-d4.mjs} +1 -1
- package/dist/client/{checkoutUrls-DVfSUSKp.mjs → checkoutUrls-yUKeq1N9.mjs} +1 -1
- package/dist/client/client.mjs +469 -320
- package/dist/client/{context-R9p5c8IH.mjs → context-DTrwaQtg.mjs} +2 -1
- package/dist/client/{dateFormatting-CF6FWCoo.mjs → dateFormatting-Cg8E1r9l.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-tZxIm3RL.mjs → demoPortalMagicLink-D0kOJYOX.mjs} +5 -4
- package/dist/client/{enhanceHeaderSection-DEYDI54E.mjs → enhanceHeaderSection-DyrpZ7ks.mjs} +4 -4
- package/dist/client/{event-registration.client-DWvSODTI.mjs → event-registration.client-RLZQWi2V.mjs} +121 -183
- package/dist/client/{eventCalendar-C9Pn9eeZ.mjs → eventCalendar-CphYnImh.mjs} +4 -4
- package/dist/client/{eventCombined-Bdhk0fp0.mjs → eventCombined-BvqjASB_.mjs} +4 -4
- package/dist/client/{eventListing-B-bJOQUk.mjs → eventListing-BaNAoC_M.mjs} +4 -4
- package/dist/client/{eventRegistration-CbdmUiDT.mjs → eventRegistration-COMHoRl6.mjs} +4 -4
- package/dist/client/events-9LPvwbWp.mjs +28 -0
- package/dist/client/{form-BbUUt784.mjs → form-DyH2juYT.mjs} +3 -3
- package/dist/client/{form.client-BVlz-9_t.mjs → form.client-DBwzkB0M.mjs} +5 -5
- package/dist/client/{form.parts-TB4UIrML.mjs → form.parts-CY4kX3mh.mjs} +3 -3
- package/dist/client/{formatDate-TDHhFjFN.mjs → formatDate-CTEN7gxW.mjs} +1 -1
- package/dist/client/gifting/client.mjs +7 -6
- package/dist/client/{gifting-CbNSrp7C.mjs → gifting-CIx4V378.mjs} +4 -4
- package/dist/client/{gifting.client-B__bGhFc.mjs → gifting.client-BEVPpzJM.mjs} +5 -5
- package/dist/client/{gifting.parts-CTA1sDW6.mjs → gifting.parts-VnORjnZK.mjs} +2 -2
- package/dist/client/{headerSection-5Wn9nUW_.mjs → headerSection-DGcJfRS8.mjs} +2 -2
- package/dist/client/{lookSurfaces-BwiNdgMU.mjs → lookSurfaces-IqT_SVnX.mjs} +167 -85
- package/dist/client/{newsletter-form.client-B17WYHxZ.mjs → newsletter-form.client-BvEDkjiD.mjs} +6 -6
- package/dist/client/{shop.interactive-CxDJ8P2r.mjs → newsletter-form.interactive-DCO1lErD.mjs} +3970 -3997
- package/dist/client/{newsletter-form.parts-DN9wD1ZG.mjs → newsletter-form.parts-BIy4IUT3.mjs} +2 -2
- package/dist/client/{newsletterForm-DLMlxInp.mjs → newsletterForm-CoTXDNFS.mjs} +3 -3
- package/dist/client/portal/client.mjs +346 -21
- package/dist/client/{product-detail.client-Di_anRGR.mjs → product-detail.client-YHQ2aKX1.mjs} +1 -1
- package/dist/client/{product-list.client-Duhl6rtL.mjs → product-list.client-DxoZw1vF.mjs} +1 -1
- package/dist/client/{productDetail-BgKmCwA8.mjs → productDetail-DjuFvkey.mjs} +3 -3
- package/dist/client/{productList-C_wMKsYS.mjs → productList-DE9GEFoZ.mjs} +3 -3
- package/dist/client/{propsDecoder-y3LvxaiG.mjs → propsDecoder-Cyag_HOs.mjs} +2 -48
- package/dist/client/{registry.server-CIWYKz1V.mjs → registry.server-BPwV-0Pp.mjs} +10426 -9114
- package/dist/client/rendering/client.mjs +41 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +23 -2836
- package/dist/client/{richText-coerce-DkPBFb_a.mjs → richText-coerce-NrRqDeOg.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-BgO0rZce.mjs → routeIslandApiConfig-BWq5gKFK.mjs} +1 -1
- package/dist/client/runtimeResponse-D2j2-mOk.mjs +3 -0
- package/dist/client/{runtimeResponse-9v8q2NBc.mjs → runtimeResponse-DtWSfWSZ.mjs} +1 -1
- package/dist/client/{shop-CFbWlv_W.mjs → shop-C3wM0Hr4.mjs} +3 -3
- package/dist/client/{shop-commerce-C-I29eaA.mjs → shop-commerce-34YvcpbX.mjs} +14 -14
- package/dist/client/{shop-commerce-store-DGcc7twO.mjs → shop-commerce-store-B7xHksOs.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-DOm7vx0X.mjs → shop-discount-apply.state-BiBnozfO.mjs} +2 -2
- package/dist/client/{shop.client-GHTWUKD6.mjs → shop.client-C0v88nLd.mjs} +14 -14
- package/dist/client/{shopShared-Be9QJJpT.mjs → shopShared-Ct-BRNez.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{noop-CaQxI-Js.mjs → src-CCtanNlD.mjs} +462 -455
- 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-lhE29TNT.mjs} +66 -12
- package/dist/client/{types-DjWUR_O6.mjs → types-BEaKfam_.mjs} +65 -65
- package/dist/client/{useAvailableSlots-BGu_2F50.mjs → useAvailableSlots-BelJviOT.mjs} +2 -2
- package/dist/client/useDiscountCodeUi-rQRE1-Ho.mjs +196 -0
- package/dist/client/{useEventPagination-DxIJ--JZ.mjs → useEventPagination-C4rS2Xxl.mjs} +8 -8
- package/dist/client/{view-3foOzGWR.mjs → view-LJVHVqsy.mjs} +4 -4
- package/dist/client/{display-4HYOb-AK.mjs → wizardSteps-CNDsxeJH.mjs} +9168 -8981
- package/dist/preview-next/before-render.mjs +4 -3
- package/dist/preview-next/client/{PageSectionToolbar-D6-jojqh.mjs → PageSectionToolbar-C4TtBPN-.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-BUVFKZ4k.mjs → PreviewEditorSidebar-D6fkE59-.mjs} +15 -13
- package/dist/preview-next/client/{PreviewEditorUI-292pOiSt.mjs → PreviewEditorUI-amcDlj0O.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-CW0Yzj3h.mjs → PreviewShell-DeQjx4zk.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Dba7zoZK.mjs → SdkPreviewModeRuntime-Cx0SXnoX.mjs} +5 -5
- package/dist/preview-next/client/{previewAssistantSlot-B-utyhbS.mjs → previewAssistantSlot-aqpU34WI.mjs} +1764 -1090
- package/dist/preview-next/client/{previewChromeRoot-CCoGydUD.mjs → previewChromeRoot-D3Gy_Rs0.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DCpXVcA0.mjs → sdk-runtime-Dzx_RrN7.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-sjOvRAHY.mjs → siteStyleAccess-LHedw83e.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-DpSd9aVk.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-BS7CANPv.mjs → useOpenBlockForSetup-BGZn5AT1.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-DnL-FgSV.mjs} +83 -11
- package/dist/server/{Block.shared-Dc3DX7Cf.mjs → Block.shared-BEbq6EwO.mjs} +5 -5
- package/dist/server/{bindings-VGgS6UvF.mjs → bindings-Bly0dRs7.mjs} +36 -5
- package/dist/server/{client-BPLLL22F.mjs → client-CGJ2ztYp.mjs} +1021 -1118
- 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/contentTypeResolver-B9vy8BrF.mjs +19 -0
- package/dist/server/data/dataLoaderContext.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{dataLoaderContext-B3fXA54R.mjs → dataLoaderContext-lMRTfG5Z.mjs} +1 -0
- package/dist/server/error-f4g44bKx.mjs +387 -0
- package/dist/server/index.mjs +3 -2
- package/dist/server/loadContent-BkK1w3QQ.mjs +692 -0
- package/dist/server/{loadPage-CQgde5DN.mjs → loadPage-DTLe0FEs.mjs} +22 -4
- package/dist/server/{navigation-iC_hXjJI.mjs → navigation-BcNfYYuu.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +103 -100
- package/dist/server/{overrideResolution-CkpwAHvW.mjs → overrideResolution-Uy9Zp2Ks.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-CfSnAkCO.mjs → pageRenderPlan-JzxBnqfV.mjs} +19 -7
- package/dist/server/{pageRuntimeSupport-uz4gzBOo.mjs → pageRuntimeSupport-DyNSd2Yj.mjs} +50 -2
- package/dist/server/{pageShared-6z6JBU41.mjs → pageShared-DU4ETFPS.mjs} +89 -83
- package/dist/server/portal-B4JVkdjc.mjs +783 -0
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-B4_Llisx.mjs → prebuild-8jNtDXmS.mjs} +5 -4
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CCiYV8_s.mjs → prefetchBlockData-xeMG42aw.mjs} +3 -2
- package/dist/server/{registry-CXRXsFSx.mjs → registry-DH1VrsCl.mjs} +587 -329
- 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 +5 -4
- package/dist/server/rendering.mjs +9 -8
- package/dist/server/{resolveBlockData-yfe8WLEA.mjs → resolveBlockData-BN8tweTx.mjs} +24 -5
- package/dist/server/resolvePageContent-DnM16_f9.mjs +89 -0
- package/dist/server/routing.mjs +271 -57
- package/dist/server/server.mjs +3 -3
- package/dist/server/{loadContent-CxASA3PE.mjs → servicePageContent-B-FezJmH.mjs} +709 -453
- package/dist/server/{validation-BvHio6QI.mjs → validation-3jOzYdPL.mjs} +3 -3
- package/dist/server/{version-SuFlio6n.mjs → version-8t0o6_jd.mjs} +1 -1
- package/dist/styles/index.css +19 -0
- package/package.json +1 -1
- package/dist/_dts/footerPageOutline-DwMHeYmQ.d.ts +0 -256
- package/dist/_dts/resolvePageContent-DkzWvFbG.d.ts +0 -162
- package/dist/client/LocationMapActions-myIQIvQL.mjs +0 -62
- package/dist/client/MapDrawingSvg-BfsVyPvB.mjs +0 -200
- package/dist/client/course-CUFVJEAc.mjs +0 -237
- package/dist/client/duration-Q6_QNgiv.mjs +0 -37
- package/dist/client/event-details.client-BwjBJP-f.mjs +0 -53
- package/dist/client/eventDetails-C2LfNW_o.mjs +0 -13
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +0 -3
- package/dist/client/src-BozhJ43Z.mjs +0 -3
- package/dist/client/useDiscountCodeUi-I_mXI9Yd.mjs +0 -237
- package/dist/client/view-BbzH5MQb.mjs +0 -1371
- 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/resolvePageContent-CAELMBEJ.mjs +0 -438
|
@@ -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
|
|
3
|
-
import { $i as
|
|
2
|
+
import { $ as formatEventDuration, A as OfferingCourseCards, B as EventItem, C as resolvePageRouteTarget, D as EVENT_REGISTRATION_ANCHOR_ID, E as EventHeader, F as createEditorPresentationPageReader, G as eventDisplayTitleText, H as CalendarIcon, I as createPresentationPageReader, J as buildMonthDay, K as formatCourseDatesAfter, L as EmptyState, M as offeringDatesBySeries, N as deriveEventScheduleSummary, O as MonthLookView, P as derivePreviewRunSchedule, Q as formatEventTeacherLine, R as CardListCollection, S as resolveEntryRouteTarget, T as lookPartShown, U as MapPinIcon, V as eventCategoryBadge, W as eventDisplayTitle, X as formatEventQuickDate, Y as resolveMonthSelectedDay, Z as selectQuickDateEvents, _ as publicAppointmentLocationSchema, a as joinSlotKey, ct as buildThemeTokens, d as resolveLinkedEntryInlineFieldEligibility, et as resolveEventCardBooking, g as formatAppointmentPrice, h as formatAppointmentLocation, i as composePageJoins, j as eventCardListContent, k as EventListingFrameView, l as buildLinkedContentEditTarget, lt as defaultThemeTokens, m as formatAppointmentDuration, n as createPageRenderPlanReader, nt as resolveEventLinkProps, o as renderedJoinLayout, p as defaultTransforms, q as formatCourseSessions, rt as parseStoredVariant, s as retargetJoinsAcrossOmissions, tt as resolveEventCta, v as publicAppointmentPricingSchema, w as resolveRouteTarget, z as CardListItems } from "./pageRenderPlan-JzxBnqfV.mjs";
|
|
3
|
+
import { $i as PUBLIC_DOWNLOAD_MEDIA_TYPES, $n as composeHeaderSectionWrapperClassName, $r as singleButtonFragment, $s as parseLocalScheduleTime, $t as eventOnlinePlace, A as membershipClassesLabel, Aa as headerRootIsTransparent, Ai as el, An as isOrdinaryPublicEvent, Ar as Grid, At as groupOfferingRunsByCourse, B as eventListingBlockDefinition, Bi as FileArchiveIcon, Bn as isBookableEvent, Br as formatEventDepositNote, Bs as sameMailingListPlacementTargeting, Bt as ThemedButtonLink, C as buildCartInteractiveIslandProps, Ca as selectItemSurfacePresentation, Cn as groupEventsByDate, Cr as defineProgressiveBlockRuntime, Ct as normalizeEventRegistrationPageSurfaceSubject, D as buildShopInteractiveIslandProps, Da as readOpeningToneProjection, Dn as hasCancelledRegistrationDate, Dr as lookListPresentationSchemaShape, Ds as loadedReadinessFact, E as buildProductListInteractiveIslandProps, Ea as effectiveHeaderNavLinkStyle, En as cancelledDateCopy, Er as listLookSlot, Es as hiddenFromVisitors, F as offeringsCatalogueShape, Fi as ArrowDownIcon, Fn as planWholeSeriesRunSelection, Fo as anglePolygonCss, Fs as resolveWholeSeriesBookingPhase, Ft as resolveOfferingsPreviewGroupCta, G as eventCollectionDisplaySchemaShape, Gi as PlusIcon, Gn as getEventAvailabilityStatus, Gt as eventListWeekDays, H as buildEventCollectionDisplay, Hi as FileSpreadsheetIcon, Hn as formatEventRemainingPlaces, Hr as formatEventPriceAmount, Hs as EVENT_ADDRESS_AFTER_BOOKING_LABEL, Ht as getIconComponent, I as eventCalendarBlockDefinition, Ii as ChevronDownIcon, Io as transitionCatalogueEntries, Is as buildMailingListSignupBlockSourceRef, It as resolveOfferingsPreviewGroups, J as catalogueEventCardProps, Ji as parseInlineTextFromUnknown, Jn as FEATURE_CARD_ICON_TREATMENTS, Jr as headingFragment, Js as toScheduledBookingDateTime, K as eventCollectionHydrationSchema, Ki as inlineTextToPlainText, Kn as isEventFull, Kt as eventWeekGroupingContext, L as buildEventCalendarInteractiveIslandProps, Li as CircleMinusIcon, Ln as resolveSelectionBookingClosedDetail, Ls as parseMailingListRuntimeContext, Lt as resolveOfferingsRenderInput, M as offeringsPreviewBlockDefinition, Mi as buildGeneratedBlockIconRenderAssetLookupFromUnknown, Mn as planOrdinarySeriesSelection, Ms as CANCELLED_SESSION_STATUS, Mt as offeringRunLifecycle, N as publicRouteCandidatesSchema, Na as arrangementLookHooks, Ni as parseBlockIconValue, Nn as planWholeSeriesParentBooking, Nt as offeringsListingFor, O as shopProductPresentation, On as eventOccurrenceContext, Oo as boundaryRuntimeMetricsForDecorativeTransition, Or as resolvedItemSurfaceProps, Os as pageTemplateFromEntry, Ot as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, P as buildOfferingsCatalogueListing, Pi as resolveBlockIconRenderValue, Pn as planWholeSeriesParentSelection, Ps as orderedLiveRunSessions, Pt as readOfferingsGrouping, Q as cardListPresentationSchemaShape, Qi as parseFieldDefinitions, Qr as blogFeaturedPostFragment, Qt as browserReadAuthoritySchema, R as buildEventCalendarListingDisplay, Ri as CirclePlusIcon, Rn as selectionRepresentativeEvent, Rt as ThemedAuthoredButton, S as shopBlockDefinition, Si as defineFragment, Sn as formatTime, Sr as defineClientOwnedBlockRuntime, St as previewStageSchema, T as buildProductDetailInteractiveIslandProps, Ta as authoredHeaderLinkForeground, Tn as bookingPageKindSchema, Tr as listLookControl, Ts as admitReadinessFacts, U as buildEventCollectionHydration, Ua as resolveEffectiveArrangement, Ui as FileTextIcon, Un as formatTotalCapacity, Us as formatDate$1, Ut as SpinnerNode, V as buildEventListingInteractiveIslandProps, Va as arrangementManifestFromVariants, Vi as FileAudioIcon, Vr as formatEventPrice, Vt as ThemedDownloadLink, W as buildEventCollectionListingDisplay, Wi as MinusIcon, Wt as buildEventListWeek, X as CardListContentPart, Xn as shouldReserveFeatureCardIconZone, Xr as faqAccordionFragment, Xs as getBookingLocalDateKey, Y as listingEventCardProps, Yn as resolveFeatureCardGeneratedIconSizePx, Yr as cardFragment, Yt as resolveRuntimeEventDestination, Zr as faqHeadingFragment, Zt as bookingPresentation, _ as buildGiftingInteractiveIslandProps, _a as parseThemeButtonVariantId, _c as TokenResolver, _n as formatEventHourLabel, _o as generateInteractiveChildInheritanceCSS, _r as buildFormInteractiveIslandProps, _s as blockBookingPaymentTermsSchema, _t as getContainerClass, a as LOCATION_MAP_LOADER_KEYS, aa as eventReadinessLoaderKey, ac as isPublicEventPricingOptionDisplayable, ai as heroCtaRowFragment, an as closedDatesCopy, ar as teamMemberCardBiography, as as getLocalDateKey, b as productDetailBlockDefinition, ba as resolveHeaderRootForeground, bn as formatEventTimeRange, br as defineInteractiveIslandMetaKeys, bs as beforeBookingQuestionsPresentationSchema, bt as resolveEventRegistrationEventSource, c as normalizeLocationMapSource, ca as eventReadinessResultSchema, cc as publicEventPricingType, ci as heroCopyFragment, cn as buildCalendarViewport, cs as formatDateKey, d as newsletterSignupBlockDefinition, dc as formatCurrencyAmount, di as normalizeBoxStylesBorder, do as generateFooterCss, ds as getWeekCalendarDayTuple, ec as toUtcIsoDateTimeString, ei as formEmbedFragment, en as eventPlaceName, er as markEditableSurfaceForwarding, fi as resolveCardRoleForBoxStyles, fn as formatCalendarTitle, fo as buildTextContrastShadow, fr as staticHeaderChromeRuntime, fs as getWeekCalendarDays, ft as buildResolveImageUrlContext, g as giftingBlockDefinition, gn as formatEventDateParts, go as resolveEffectPaint, gr as formBlockDefinition, gs as publicEventsArraySchema, gt as getCardOrientation, h as newsletterBlockSubmissionMessage, hn as formatEventCompactDateRail, ho as resolveEffectApplications, ht as EventQuickFacts, ic as formatBookingPriceDisplay, ii as ctaCopyFragment, in as pageNavigationSchema, ir as teamMemberBiography, it as MediaPlaceholder, j as passCardListContent, ja as headerRootPaint, ji as when, jn as planDropInPanel, jr as clsx, jt as normalizeOfferingsPreviewItemLimit, k as membershipCardListContent, ka as headerNeedsPhotoShade, ki as runTransforms, kn as getPublicEventCanonicalPath, kr as itemRole, ks as unavailableReadinessFact, kt as buildOfferingsPreviewListing, l as parseLocationMapLoaderResult, lc as resolveExactOrFreePriceDisplay, lo as resolveCardRole, ls as getDayOfWeek, lt as resolvePublicMediaUrl, m as buildNewsletterFormInteractiveIslandProps, mn as formatEventClockLabel, mo as generateEffectsCSS, ms as isToday, mt as setContextResolveImageUrlContext, na as isRecord$4, nc as toBookingTimeZone, ni as testimonialsCarouselFragment, nn as formatEventLocation, nt as RichText, o as describeUnresolvedLocationMapLocation, oc as publicEventPricingCurrency, oi as ctaRowFragment, on as closedRunCopy, or as readRuntimeNow, os as getLocalMinuteOfDay, p as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, pn as formatDate, po as generateNavLinkCSS, ps as isSameCalendarDay, pt as getCurrentResolveImageUrlContext, q as eventCollectionSourceSchemaShape, qi as isInlineTextEmpty, qn as groupPublicEventsByRun, qo as bindingSchema, qr as richTextFragment, qs as formatBookingCompactEnglishTime, r as normalizeBlockContent, ra as chosenString, ri as testimonialsHeadingFragment, rn as blockSiteTermsSchema, ro as requireCuratedSiteStyle, rr as parseTeamMemberSpecialties, rt as ImagePresets, s as normalizeLocationMapProps, sc as publicEventPricingDisplay, si as isBlockButtonRole, sn as closedDateCopy, sr as resolveDateRuntimeContext, ss as addDays, t as getBlockDefinition, ta as isObjectRecord, tc as resolveBookingBusinessTimeZone, ti as formCopyFragment, tn as eventVenuePlace, tr as splitPositioningClasses, tt as MediaNodeServer, u as resolveLocationMapLocation, ui as boxStyleClassNames, un as eventDateOptions, uo as generateDefaultCardSystem, us as getOrderedDayNames, v as checkoutBlockDefinition, va as themeButtonSelector, vi as resolveBackgroundColorValue, vn as formatEventNextDateFact, vr as buildInteractiveIslandProps, vs as blockBookingConsentSchema, vt as eventRegistrationBlockDefinition, w as buildCheckoutInteractiveIslandProps, wn as resolveEventTimeZone, wr as listItemPresentation, wt as resolveEventRegistrationScopedEvents, x as productListBlockDefinition, xi as bodyCopyFragment, xr as createZodCodec, xs as sanitizeHref, xt as bookingNowSchema, y as cartBlockDefinition, ya as AFFORDANCE_SUPPRESS_CLASS, yi as ctaButton, yr as createInteractiveIslandCodec, ys as bookingConsentCarrierSchema, yt as buildEventRegistrationInteractiveIslandProps, zi as ClockIcon, zr as formatCoursePrice, zs as parseMailingListPlacementTargeting, zt as ThemedButton } from "./registry-DH1VrsCl.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
|
|
9
|
+
import { A as MQ_MD_UP, M as MQ_SM_UP, N as MQ_TABLET_ONLY, O as MQ_LG_UP, c as readSdkPreviewPublishedPlacement, h as compileManifestContentContract, j as MQ_SM_DOWN, k as MQ_MD_DOWN, y as validateManifestDraft } from "./pageRuntimeSupport-DyNSd2Yj.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 {
|
|
12
|
+
import { l as mergeHeaderNavTypographyPreference, u as readHeaderNavFontSizePreference } from "./bindings-Bly0dRs7.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
|
}
|
|
@@ -8817,40 +8818,8 @@ function withLookParts(props, arrangement) {
|
|
|
8817
8818
|
}
|
|
8818
8819
|
//#endregion
|
|
8819
8820
|
//#region ../blocks/src/system/runtime/nodes/event-details.server.tsx
|
|
8820
|
-
function eventDetailsIslandValue({ props, presentation, scopedEvents, subject }) {
|
|
8821
|
-
return {
|
|
8822
|
-
...props.arrangement ? {
|
|
8823
|
-
arrangement: props.arrangement,
|
|
8824
|
-
entryTitle: props.entryTitle,
|
|
8825
|
-
actionSize: props.actionSize,
|
|
8826
|
-
lookSlots: props.lookSlots,
|
|
8827
|
-
surfacePresentation: props.surfacePresentation,
|
|
8828
|
-
panelHeading: props.panelHeading
|
|
8829
|
-
} : {},
|
|
8830
|
-
quickFacts: props.quickFacts,
|
|
8831
|
-
occurrenceContext: props.occurrenceContext ?? null,
|
|
8832
|
-
subject,
|
|
8833
|
-
events: scopedEvents,
|
|
8834
|
-
venueDrawing: props.venueDrawing ?? null,
|
|
8835
|
-
showVenue: presentation.showVenue,
|
|
8836
|
-
showMap: presentation.showMap,
|
|
8837
|
-
showOtherDates: presentation.showOtherDates,
|
|
8838
|
-
otherDatesLimit: props.otherDatesLimit,
|
|
8839
|
-
showCost: presentation.showCost,
|
|
8840
|
-
showTitle: presentation.showTitle,
|
|
8841
|
-
showDescription: presentation.showDescription,
|
|
8842
|
-
showCapacity: presentation.showCapacity,
|
|
8843
|
-
showAcceptedPasses: presentation.showAcceptedPasses,
|
|
8844
|
-
showAcceptedMemberships: presentation.showAcceptedMemberships,
|
|
8845
|
-
sitePasses: props.sitePasses,
|
|
8846
|
-
siteMemberships: props.siteMemberships,
|
|
8847
|
-
autoApplyDiscount: presentation.autoApplyDiscount,
|
|
8848
|
-
className: props.className,
|
|
8849
|
-
now: props.now
|
|
8850
|
-
};
|
|
8851
|
-
}
|
|
8852
8821
|
function EventDetailsSSR(props) {
|
|
8853
|
-
const {
|
|
8822
|
+
const { occurrenceContext = null, subject, events = null, className, children } = props;
|
|
8854
8823
|
const normalizedSubject = normalizeEventRegistrationPageSurfaceSubject(subject);
|
|
8855
8824
|
const scopedEvents = events === null ? null : resolveEventRegistrationScopedEvents(events, {
|
|
8856
8825
|
occurrenceContext,
|
|
@@ -8862,19 +8831,9 @@ function EventDetailsSSR(props) {
|
|
|
8862
8831
|
occurrenceContext,
|
|
8863
8832
|
subject: normalizedSubject
|
|
8864
8833
|
});
|
|
8865
|
-
return /* @__PURE__ */ jsxs(
|
|
8866
|
-
|
|
8867
|
-
|
|
8868
|
-
attributes: {
|
|
8869
|
-
className: `event-details ${className ?? ""}`.trim(),
|
|
8870
|
-
"data-block": "event-details"
|
|
8871
|
-
},
|
|
8872
|
-
value: eventDetailsIslandValue({
|
|
8873
|
-
props,
|
|
8874
|
-
presentation,
|
|
8875
|
-
scopedEvents,
|
|
8876
|
-
subject: normalizedSubject
|
|
8877
|
-
}),
|
|
8834
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
8835
|
+
className: `event-details ${className ?? ""}`.trim(),
|
|
8836
|
+
"data-block": "event-details",
|
|
8878
8837
|
children: [/* @__PURE__ */ jsx(EventDetailsView, {
|
|
8879
8838
|
...presentation,
|
|
8880
8839
|
mapClassName: "venue-map event-details-map"
|
|
@@ -9215,12 +9174,12 @@ function cardsListDates(props) {
|
|
|
9215
9174
|
return props.lookSlots !== void 0 && props.datesMode === "next-dates";
|
|
9216
9175
|
}
|
|
9217
9176
|
/** 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;
|
|
9177
|
+
function catalogueDateBooking(shape, pathname, now) {
|
|
9178
|
+
return shape === "single" ? (event, dateLabel) => eventDateBookingLink(event, pathname ?? "/", dateLabel, now) : void 0;
|
|
9220
9179
|
}
|
|
9221
9180
|
function renderOfferingsCatalogueGroups({ props, groups, shape }) {
|
|
9222
9181
|
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)));
|
|
9182
|
+
const quickDateEvents = cardsListDates(props) ? [] : selectQuickDateEvents((props.quickDateEvents ?? []).filter((event) => enabledSeriesIds.has(event.seriesId)), props.now);
|
|
9224
9183
|
const populated = groups.flatMap(catalogueGroupItems);
|
|
9225
9184
|
const frames = listGroupFrames(props);
|
|
9226
9185
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -9283,7 +9242,7 @@ function renderCatalogueItems({ props, items, shape, groupTitle }) {
|
|
|
9283
9242
|
}
|
|
9284
9243
|
/** Dates are a display sample; the series card never infers availability from them. */
|
|
9285
9244
|
function catalogueDates(events, now, shape, pathname) {
|
|
9286
|
-
return offeringDatesBySeries(events, now, catalogueDateBooking(shape, pathname));
|
|
9245
|
+
return offeringDatesBySeries(events, now, catalogueDateBooking(shape, pathname, now));
|
|
9287
9246
|
}
|
|
9288
9247
|
function catalogueCardContent(item, now, dates, typeLabel) {
|
|
9289
9248
|
const event = item.kind === "event" ? item.event : item.run.representative;
|
|
@@ -12035,7 +11994,11 @@ function EventBookingPanelBody({ panel }) {
|
|
|
12035
11994
|
});
|
|
12036
11995
|
case "dropIn": return /* @__PURE__ */ jsx(DropInPanel, { panel: panel.panel });
|
|
12037
11996
|
case "bookingClosed": return /* @__PURE__ */ jsx(BookingClosedPanel, { detail: panel.detail });
|
|
12038
|
-
case "closedRun": return /* @__PURE__ */ jsx(ClosedRunPanel, {
|
|
11997
|
+
case "closedRun": return /* @__PURE__ */ jsx(ClosedRunPanel, { copy: closedRunCopy(panel.reason, panel.run) });
|
|
11998
|
+
case "closedDate": return /* @__PURE__ */ jsx(ClosedRunPanel, {
|
|
11999
|
+
copy: panel.copy,
|
|
12000
|
+
otherDatesHref: panel.copy.otherDatesHref
|
|
12001
|
+
});
|
|
12039
12002
|
case "single": return /* @__PURE__ */ jsx(SingleDateBooking, { run: panel.run });
|
|
12040
12003
|
case "choice": return /* @__PURE__ */ jsx(RunChooser, { runs: panel.runs });
|
|
12041
12004
|
case "unavailable": return /* @__PURE__ */ jsxs("div", {
|
|
@@ -12107,17 +12070,27 @@ function BookingClosedPanel({ detail }) {
|
|
|
12107
12070
|
});
|
|
12108
12071
|
}
|
|
12109
12072
|
/** Dates that cannot be booked keep their details and say why. */
|
|
12110
|
-
function ClosedRunPanel({
|
|
12111
|
-
const copy = closedRunCopy(reason);
|
|
12073
|
+
function ClosedRunPanel({ copy, otherDatesHref }) {
|
|
12112
12074
|
return /* @__PURE__ */ jsxs("div", {
|
|
12113
12075
|
className: "event-booking-panel__closed-run",
|
|
12114
|
-
children: [
|
|
12115
|
-
|
|
12116
|
-
|
|
12117
|
-
|
|
12118
|
-
|
|
12119
|
-
|
|
12120
|
-
|
|
12076
|
+
children: [
|
|
12077
|
+
/* @__PURE__ */ jsx("h2", {
|
|
12078
|
+
className: "card-title rb-mb-3",
|
|
12079
|
+
children: copy.titleText
|
|
12080
|
+
}),
|
|
12081
|
+
/* @__PURE__ */ jsx("p", {
|
|
12082
|
+
className: "status-muted rb-text-base rb-leading-relaxed",
|
|
12083
|
+
children: copy.bodyText
|
|
12084
|
+
}),
|
|
12085
|
+
otherDatesHref ? /* @__PURE__ */ jsx("p", {
|
|
12086
|
+
className: "rb-mt-4 rb-text-base",
|
|
12087
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
12088
|
+
className: "rb-underline",
|
|
12089
|
+
href: otherDatesHref,
|
|
12090
|
+
children: "See the other dates"
|
|
12091
|
+
})
|
|
12092
|
+
}) : null
|
|
12093
|
+
]
|
|
12121
12094
|
});
|
|
12122
12095
|
}
|
|
12123
12096
|
/**
|
|
@@ -12251,40 +12224,53 @@ function planEventBookingPanel({ selection, subject }, now) {
|
|
|
12251
12224
|
...nonBookingPanel,
|
|
12252
12225
|
registration
|
|
12253
12226
|
};
|
|
12254
|
-
|
|
12255
|
-
|
|
12256
|
-
kind: "closedRun",
|
|
12257
|
-
reason: phase.reason,
|
|
12258
|
-
registration
|
|
12259
|
-
} : {
|
|
12260
|
-
kind: "registration",
|
|
12227
|
+
return {
|
|
12228
|
+
...closedDatePanel(selection, now) ?? closedRunPanel(selection, now) ?? { kind: "registration" },
|
|
12261
12229
|
registration
|
|
12262
12230
|
};
|
|
12263
12231
|
}
|
|
12264
12232
|
case "wholeSeriesParent": {
|
|
12233
|
+
const registration = parentRegistrationTarget(selection, subject);
|
|
12265
12234
|
if (nonBookingPanel) return {
|
|
12266
12235
|
...nonBookingPanel,
|
|
12267
|
-
registration
|
|
12236
|
+
registration
|
|
12268
12237
|
};
|
|
12269
12238
|
const panel = planWholeSeriesParentBooking(selection.eligibleRuns);
|
|
12270
12239
|
return panel.kind === "bookTogether" ? {
|
|
12271
12240
|
kind: "registration",
|
|
12272
|
-
registration
|
|
12273
|
-
events: panel.runs.map((run) => run.representative),
|
|
12274
|
-
subject,
|
|
12275
|
-
occurrenceContext: null
|
|
12276
|
-
}
|
|
12241
|
+
registration
|
|
12277
12242
|
} : {
|
|
12278
12243
|
...panel,
|
|
12279
|
-
registration
|
|
12244
|
+
registration
|
|
12280
12245
|
};
|
|
12281
12246
|
}
|
|
12282
12247
|
case "wholeSeriesParentUnavailable": return {
|
|
12283
12248
|
...nonBookingPanel ?? { kind: "unavailable" },
|
|
12284
|
-
registration:
|
|
12249
|
+
registration: parentRegistrationTarget(selection, subject)
|
|
12285
12250
|
};
|
|
12286
12251
|
}
|
|
12287
12252
|
}
|
|
12253
|
+
/**
|
|
12254
|
+
* A date past its cut-off, however old the page's data is. A list of dates only
|
|
12255
|
+
* closes when every date has: until then the closed ones just leave the list.
|
|
12256
|
+
*/
|
|
12257
|
+
function closedRunPanel(selection, now) {
|
|
12258
|
+
if (selection.kind !== "wholeSeriesRun") return null;
|
|
12259
|
+
const phase = resolveWholeSeriesBookingPhase(selection.run.run, now);
|
|
12260
|
+
return phase.kind === "closed" ? {
|
|
12261
|
+
kind: "closedRun",
|
|
12262
|
+
reason: phase.reason,
|
|
12263
|
+
run: selection.run.run
|
|
12264
|
+
} : null;
|
|
12265
|
+
}
|
|
12266
|
+
function closedDatePanel(selection, now) {
|
|
12267
|
+
if (selection.kind === "wholeSeriesRun") return null;
|
|
12268
|
+
const copy = selection.kind === "occurrence" ? closedDateCopy(selection.event, now) : closedDatesCopy(selection.dates, now);
|
|
12269
|
+
return copy ? {
|
|
12270
|
+
kind: "closedDate",
|
|
12271
|
+
copy
|
|
12272
|
+
} : null;
|
|
12273
|
+
}
|
|
12288
12274
|
/** Drop-in and page-level closure take precedence over fresh booking and run selection. */
|
|
12289
12275
|
function planNonBookingPanel(selection) {
|
|
12290
12276
|
if (!selectionRepresentativeEvent(selection).requiresRegistration) return {
|
|
@@ -12316,13 +12302,25 @@ function selectionRegistrationTarget(selection, subject) {
|
|
|
12316
12302
|
};
|
|
12317
12303
|
}
|
|
12318
12304
|
}
|
|
12305
|
+
/**
|
|
12306
|
+
* Every run the course page admits, not just those still taking bookings. An
|
|
12307
|
+
* invitation emailed for a run links here, and stays good after that run closes.
|
|
12308
|
+
* The wizard narrows these to the runs it offers for a new booking.
|
|
12309
|
+
*/
|
|
12310
|
+
function parentRegistrationTarget(selection, subject) {
|
|
12311
|
+
return {
|
|
12312
|
+
events: selection.admittedRuns.map((run) => run.representative),
|
|
12313
|
+
occurrenceContext: null,
|
|
12314
|
+
subject
|
|
12315
|
+
};
|
|
12316
|
+
}
|
|
12319
12317
|
/** Cancelled dates have no new-booking or recovery form, including old direct links. */
|
|
12320
12318
|
function isCancelledDateSelection(selection) {
|
|
12321
12319
|
return selection.kind === "occurrence" && hasCancelledRegistrationDate([selection.event]);
|
|
12322
12320
|
}
|
|
12323
12321
|
//#endregion
|
|
12324
12322
|
//#region ../blocks/src/system/runtime/nodes/event-registration/RegistrationClosedState.tsx
|
|
12325
|
-
function RegistrationClosedState({ title, body }) {
|
|
12323
|
+
function RegistrationClosedState({ title, body, otherDatesHref }) {
|
|
12326
12324
|
return /* @__PURE__ */ jsx("div", {
|
|
12327
12325
|
id: EVENT_REGISTRATION_ANCHOR_ID,
|
|
12328
12326
|
className: "rb-reg-surface er-container er-registration-closed",
|
|
@@ -12341,7 +12339,15 @@ function RegistrationClosedState({ title, body }) {
|
|
|
12341
12339
|
/* @__PURE__ */ jsx("p", {
|
|
12342
12340
|
className: "er-text er-text--muted",
|
|
12343
12341
|
children: body
|
|
12344
|
-
})
|
|
12342
|
+
}),
|
|
12343
|
+
otherDatesHref ? /* @__PURE__ */ jsx("p", {
|
|
12344
|
+
className: "er-text",
|
|
12345
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
12346
|
+
className: "rb-underline",
|
|
12347
|
+
href: otherDatesHref,
|
|
12348
|
+
children: "See the other dates"
|
|
12349
|
+
})
|
|
12350
|
+
}) : null
|
|
12345
12351
|
] })
|
|
12346
12352
|
})
|
|
12347
12353
|
});
|