@riverbankcms/sdk 0.169.1 → 0.171.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/CHANGELOG.md +37 -0
- package/dist/_dts/{BlocksIslandsHydrator-DEhlJEwj.d.ts → BlocksIslandsHydrator-xuFmD41p.d.ts} +1 -1
- package/dist/_dts/{Page-BhCfStX1.d.ts → Page-4fzXy8H9.d.ts} +13 -11
- package/dist/_dts/{SdkPreviewMode-DSYdsdmJ.d.ts → SdkPreviewMode-BlHgMsc8.d.ts} +4 -3
- package/dist/_dts/{client-BZMn4Y99.d.ts → client-BPoU758C.d.ts} +32 -1
- package/dist/_dts/{content-types-EMK-E_r9.d.ts → content-types-TnkhoSls.d.ts} +3 -3
- package/dist/_dts/{contracts-DjYsGY3B.d.ts → contracts-7wrMA79U.d.ts} +5 -3
- package/dist/_dts/{footerPageOutline-BtYUi-m0.d.ts → footerPageOutline-DaOsPQ_Q.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-D_fNTi5r.d.ts → generatePageMetadata-D9aDEzKK.d.ts} +2 -2
- package/dist/_dts/{index-NaRauKDR.d.ts → index-585vn6qb.d.ts} +72 -36
- package/dist/_dts/{index-BR0i0c3G.d.ts → index-CZKSUcDs.d.ts} +4 -4
- package/dist/_dts/{index-BV-qVnt7.d.ts → index-Cbw0IiY7.d.ts} +2 -2
- package/dist/_dts/{index-DgEwZ5WQ.d.ts → index-ChNbrcgD.d.ts} +1 -1
- package/dist/_dts/{index-QIbYMeI7.d.ts → index-DDKJfaLY.d.ts} +2 -2
- package/dist/_dts/{index-BzguBJzR.d.ts → index-DNCDENic.d.ts} +1 -1
- package/dist/_dts/{index-BYYhTQ_b.d.ts → index-W9R3Bnf2.d.ts} +3 -3
- package/dist/_dts/{loadContent-BmGH6NKl.d.ts → loadContent-DPyNAJym.d.ts} +7 -7
- package/dist/_dts/{request-DssgRQSm.d.ts → request-jXTRN1Y4.d.ts} +45927 -42247
- package/dist/_dts/{resolveBlockData-5BqNxwL8.d.ts → resolveBlockData-BbvE-gsZ.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-DIuwuFA7.d.ts → resolvePageContent-BBgih00D.d.ts} +2 -2
- package/dist/_dts/{runtime-BY8DQBbT.d.ts → runtime-BEoNgYbd.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/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +7 -7
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +4 -4
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- 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 +3 -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 +4740 -3
- package/dist/_dts/{types-cObpvZGF.d.ts → types-BXuVxDYo.d.ts} +2 -2
- package/dist/_dts/{types-DrAWDtqR.d.ts → types-DEAKoDNi.d.ts} +3 -3
- package/dist/_dts/{types-Z388-GR1.d.ts → types-kWvBwYK6.d.ts} +7 -7
- package/dist/_dts/{validation-hLr8zVrc.d.ts → validation-BAO0_ntM.d.ts} +17 -17
- package/dist/client/{BlocksIslandsHydrator-CN2GyuuA.mjs → BlocksIslandsHydrator-DfMsMIej.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-Br1VyHkP.mjs → BookingMailingListNote-aaSicywS.mjs} +7 -7
- package/dist/client/{StepIndicator-BK0GEDoP.mjs → BookingPanelArrangement-OgftZ9QC.mjs} +16 -4
- package/dist/client/{BookingQuestionFields-LLGCWjvU.mjs → BookingQuestionFields-BlaCItmH.mjs} +5 -5
- package/dist/client/{CalendarNavigationChevron-DSnSBNeq.mjs → CalendarNavigationChevron-iMWrY6Hz.mjs} +7 -7
- package/dist/client/{CheckboxChoice-W_uiRgDK.mjs → CheckboxChoice-B65wFjqx.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-Cilv5zdS.mjs → DemoBookingPortalAccess-BCumOTLY.mjs} +7 -7
- package/dist/client/{EventCalendar.client-ucgdMS35.mjs → EventCalendar.client-kh7mkYnW.mjs} +9 -9
- package/dist/client/{EventCombined.client-BEdfJGpx.mjs → EventCombined.client-DXD5i0Ar.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-Cf-HRHtb.mjs → EventEmbeddedCheckoutStep-DKKRCuta.mjs} +1 -1
- package/dist/client/{EventItem-OpLehMpT.mjs → EventItem-BnwcoFQN.mjs} +13 -9
- package/dist/client/{EventListWeekNavigation-DTsVU6gc.mjs → EventListWeekNavigation-DuG6z02f.mjs} +2 -1
- package/dist/client/{EventListing.client-8MFGI9BA.mjs → EventListing.client-18yfHrcr.mjs} +3 -3
- package/dist/client/{EventListing.view-BCvRqU86.mjs → EventListing.view-BM7rTVSL.mjs} +42 -397
- package/dist/client/{EventRegistrationPayment-CqH3hE-k.mjs → EventRegistrationPayment-D5J3DR0x.mjs} +13 -13
- package/dist/client/{LocationMapActions-BFp2uQQQ.mjs → LocationMapActions-QahdLtdE.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-DDWfmgpA.mjs → MapDrawingSvg-Dy6UMuIw.mjs} +1 -1
- package/dist/client/Page-DH2sm4Cf.mjs +30247 -0
- package/dist/client/{ProtectedSubmitButton-C3H26pN9.mjs → ProtectedSubmitButton-AOUzjDK9.mjs} +1 -1
- package/dist/client/StepIndicator-CsRlU46Y.mjs +894 -0
- package/dist/client/{TabBarFragment-DkVKtK5a.mjs → TabBarFragment-CsAufYwT.mjs} +1 -1
- package/dist/client/{ThemedButton-BdnEwA38.mjs → ThemedButton-BMDHwnM6.mjs} +1 -1
- package/dist/client/{accessibleSurfaces-_7jkuinl.mjs → accessibleSurfaces-Bbn1-jJ8.mjs} +52 -2
- package/dist/client/{accordion-DMItWylU.mjs → accordion-DT4MD3Np.mjs} +1 -1
- package/dist/client/{booking-form.client-wd71DG19.mjs → booking-form.client-DdqNQNCa.mjs} +79 -42
- package/dist/client/{bookingForm-Cyr2qeS1.mjs → bookingForm-CLN396HU.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/boxStyleClassNames-iLF_3KX9.mjs +369 -0
- package/dist/client/{carousel-B5-Hzzif.mjs → carousel-DFLomCGm.mjs} +2 -2
- package/dist/client/{carousel.client-eSSr1oYA.mjs → carousel.client-YF4mUK5t.mjs} +1 -1
- package/dist/client/{cart-B-M5l__W.mjs → cart-BozMM5NK.mjs} +3 -3
- package/dist/client/{cart.client-COAP4CEy.mjs → cart.client-CqOOxPbW.mjs} +1 -1
- package/dist/client/{checkout-ZHc8GfaG.mjs → checkout-CTWF5nbB.mjs} +3 -3
- package/dist/client/{checkout.client-DRralR3e.mjs → checkout.client-CpqxN8e0.mjs} +1 -1
- package/dist/client/{checkoutUrls-CY8qywXl.mjs → checkoutUrls-Ccg6yfjq.mjs} +1 -1
- package/dist/client/client.mjs +640 -226
- package/dist/client/{context-Xhf81Q-c.mjs → context-Dzjv2CpA.mjs} +10 -1
- package/dist/client/{creditProducts-CMOmhWm2.mjs → creditProducts-BTRX4edc.mjs} +54 -23
- package/dist/client/{cta-CfuyGqXL.mjs → cta-pzQkBLgS.mjs} +2 -2
- package/dist/client/{dateFormatting-Bv6kjUW3.mjs → dateFormatting-BfurxGwg.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-DQtwf_s2.mjs → demoPortalMagicLink-D0dcPsRE.mjs} +1 -1
- package/dist/client/{display-DDNmyb0z.mjs → display-Cl6mgSJa.mjs} +3186 -81
- package/dist/client/{enhanceHeaderSection-D7gRy-pL.mjs → enhanceHeaderSection-CJCl0HJC.mjs} +4 -4
- package/dist/client/{event-details.client-DZZaoCUc.mjs → event-details.client-Pn9Kxh3I.mjs} +3 -2
- package/dist/client/{event-registration.client-CLBdHUfd.mjs → event-registration.client-BAmBdWXE.mjs} +48 -34
- package/dist/client/{eventCalendar-BY3AfYkK.mjs → eventCalendar-C5Bh2L8L.mjs} +4 -4
- package/dist/client/{eventCombined-86P2vQCb.mjs → eventCombined-dELKxxIe.mjs} +4 -4
- package/dist/client/{eventDetails-DIJYMzVg.mjs → eventDetails-Do9D_fJ_.mjs} +2 -2
- package/dist/client/{eventListing-8jS0qGGC.mjs → eventListing-B2HTUWLq.mjs} +4 -4
- package/dist/client/{eventRegistration-DyseP_sY.mjs → eventRegistration-ByOJnqGc.mjs} +4 -4
- package/dist/client/form-DX70QG-J.mjs +27 -0
- package/dist/client/{form.client-D3_RF29v.mjs → form.client-CJoqBrS6.mjs} +5 -5
- package/dist/client/{form.parts-DWLf_3PF.mjs → form.parts-DTof9pL3.mjs} +3 -3
- package/dist/client/formSnapshot-Cy4abc0T.mjs +73 -0
- package/dist/client/{formatDate-BGlhrmhF.mjs → formatDate-Cjouxh4Y.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-CyNGt23J.mjs → headerSection-CJuPX_1K.mjs} +2 -2
- package/dist/client/{newsletter-form.client-IfLup4o0.mjs → newsletter-form.client-CqzNjOft.mjs} +6 -6
- package/dist/client/{newsletter-form.parts-DDD-LRyW.mjs → newsletter-form.parts-DjJsFms2.mjs} +2 -2
- package/dist/client/{newsletterForm-o5wFBVHv.mjs → newsletterForm-D1MHoPbh.mjs} +5 -26
- package/dist/client/{noop-B_f7RqLD.mjs → noop-poI1m2yW.mjs} +69 -2
- package/dist/client/portal/client.mjs +294 -48
- package/dist/client/{product-detail.client-5hNA8aKU.mjs → product-detail.client-DOQ7El1d.mjs} +1 -1
- package/dist/client/{product-list.client-c-777ohj.mjs → product-list.client-CmxOZbzL.mjs} +1 -1
- package/dist/client/{productDetail-hXttfQhE.mjs → productDetail-BN3zv5sa.mjs} +3 -3
- package/dist/client/{productList-BPsYP_jA.mjs → productList-GN_Id4bF.mjs} +3 -3
- package/dist/client/{propsDecoder-Dc8j5i79.mjs → propsDecoder-BdmzM3D5.mjs} +8 -4
- package/dist/client/{registry.server-CMrdUGGv.mjs → registry.server-BOyra8CA.mjs} +1032 -925
- package/dist/client/rendering/client.mjs +57 -32
- package/dist/client/rendering/islandDelivery.flight.mjs +43 -10
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +1956 -191
- package/dist/client/{richText-coerce-BTurYEao.mjs → richText-coerce-CtoGLZ_e.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DFjRKvzM.mjs → routeIslandApiConfig-DnaJ8PQc.mjs} +1 -1
- package/dist/client/{runtimeResponse-D2LT--Gj.mjs → runtimeResponse-B1-cyLXt.mjs} +1 -1
- package/dist/client/{runtimeResponse-BGU8sMZY.mjs → runtimeResponse-BN8PoIVp.mjs} +1 -1
- package/dist/client/{shop-Ds47onRS.mjs → shop-LjBLDBqF.mjs} +3 -3
- package/dist/client/{shop-commerce-B3PyRHaN.mjs → shop-commerce-B8aZTdRJ.mjs} +13 -13
- package/dist/client/{shop-commerce-store-D9CHihQv.mjs → shop-commerce-store-C1FtHYl7.mjs} +1 -1
- package/dist/client/{shop.client-RljK0qPB.mjs → shop.client-D0qZ3KZp.mjs} +13 -13
- package/dist/client/{shop.interactive-BH0xDlMF.mjs → shop.interactive-DAKyWK1B.mjs} +89 -19
- package/dist/client/{shopShared-BEfD0e4m.mjs → shopShared-CztcSe9i.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{timetableModel-BG7Ejxdr.mjs → timetableModel-D1jDTbms.mjs} +11 -11
- package/dist/client/{types-5fOsPIpL.mjs → types-B0hJldSt.mjs} +2 -0
- package/dist/client/{useAvailableSlots-GP8tnAVW.mjs → useAvailableSlots-ByHedoBi.mjs} +4 -8
- package/dist/client/{useDiscountApply-Cq07nTyG.mjs → useDiscountApply-CHGYDxdM.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-CD82QX5i.mjs → useDiscountCodeUi-Dew9UAEy.mjs} +1 -1
- package/dist/client/{useEventPagination-spj7sGQP.mjs → useEventPagination-BpC7-ksE.mjs} +7 -7
- package/dist/client/{view-oToSpu1N.mjs → view-BxeiAL3c.mjs} +121 -28
- package/dist/client/{view-aAP2WbCR.mjs → view-ShYH3WXh.mjs} +3 -3
- package/dist/preview-next/before-render.mjs +33 -13
- package/dist/preview-next/chrome.css +4 -0
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-8-qtHjpb.mjs → EventEmbeddedCheckoutStep-CKe4cjZ4.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-CwxRbAs2.mjs → LocationPickerEnvironment-lW2aLGWd.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-CKjYUp_E.mjs → MapLibreEditMap-C9InQJpd.mjs} +2 -2
- package/dist/preview-next/client/{ArrangementLookControls-CoWdilcI.mjs → PageSectionToolbar-DsSqwrMS.mjs} +397 -23
- package/dist/preview-next/client/{PreviewEditorSidebar-BNCrO6PQ.mjs → PreviewEditorSidebar-BEEWzXnU.mjs} +3266 -3215
- package/dist/preview-next/client/{PreviewEditorUI-inVZkLCd.mjs → PreviewEditorUI-C86Out4V.mjs} +6 -39
- package/dist/preview-next/client/{PreviewShell-CFQlAHTe.mjs → PreviewShell-CBWYjBvQ.mjs} +50 -41
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Dgl7ktO4.mjs → SdkPreviewModeRuntime-o-mVqWLx.mjs} +88 -394
- package/dist/preview-next/client/{SiteChromeCustomizeButton-DgDYHwkG.mjs → SiteChromeCustomizeButton-H_ciMNHA.mjs} +1249 -22697
- package/dist/preview-next/client/{ThemedButton-BQU45t-E.mjs → ThemedButton-CKYjeU_M.mjs} +2 -0
- package/dist/preview-next/client/{lucide-react-DbC1o6_9.mjs → lucide-react-DygTyy7K.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-DRDu7Ndv.mjs → previewAssistantSlot-CuOcsG_N.mjs} +3481 -2113
- package/dist/preview-next/client/{previewChromeSurface-K6Q5uEMC.mjs → previewChromeRoot-DPeV7KaP.mjs} +52 -14
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-AGypzhcO.mjs → sdk-runtime-zTTFZ4MM.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus-B2mn_l6c.mjs → useAutosaveStatus-DNA1Q4L1.mjs} +2 -2
- package/dist/preview-next/client/{useBlockCustomizeControls-CBXHo6ph.mjs → useOpenBlockForSetup-BdnMlHC6.mjs} +40 -21
- package/dist/preview-next/container-responsive.css +3093 -0
- package/dist/preview-next/editor-base.css +90 -178
- package/dist/preview-next/editor-chrome.css +25 -8
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-jc2Bug-h.mjs → route-contract-CtSgU8UZ.mjs} +547 -196
- package/dist/server/{Block.shared-BHgQjX16.mjs → Block.shared-ifgaBglp.mjs} +4 -4
- package/dist/server/ThemeScopeCore-DGDOH6OU.mjs +1983 -0
- package/dist/server/{accessibleSurfaces-D0q5tLSW.mjs → accessibleSurfaces-BuPNCWAK.mjs} +52 -2
- package/dist/server/bindings-CiYpie1M.mjs +1802 -0
- package/dist/server/{block-kinds-CdI7NvAW.mjs → block-kinds-DkzOr19P.mjs} +2 -0
- package/dist/server/{client-C-asG6Cf.mjs → client-ngWuFsmN.mjs} +638 -224
- package/dist/server/config-template-validation.mjs +30 -4
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +3 -34
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/loadContent-DeLQeJAZ.mjs +2310 -0
- package/dist/server/{loadPage-XgtQR90Z.mjs → loadPage-D4J747FQ.mjs} +2 -2
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/next.mjs +8 -6
- package/dist/server/{opaqueSurface-Yltv_u7r.mjs → opaqueSurface-ukEz1BaM.mjs} +2 -2
- package/dist/server/{overrideResolution-Z5pwH-kz.mjs → overrideResolution-DSuVkpqm.mjs} +3 -2
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/pageRegions-BaeEF2MU.mjs +30 -0
- package/dist/server/{pageRenderPlan-DQAo35og.mjs → pageRenderPlan-DFv3h4Ib.mjs} +309 -289
- package/dist/server/{pageRuntimeSupport-g-K-FCHa.mjs → pageRuntimeSupport-yHaRNWMj.mjs} +48 -35
- package/dist/server/{pageShared-7mPhqqXX.mjs → pageShared-CAZD0LcY.mjs} +875 -328
- package/dist/server/parseThemeForPersistence-Dl7LIBJq.mjs +52 -0
- package/dist/server/{prebuild-C0m4KOT9.mjs → prebuild-BKOCND3b.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-DcLKHfHG.mjs → prefetchBlockData-GIoExi8A.mjs} +4 -3
- package/dist/server/{registry-7_0_lUrh.mjs → registry-BogXzcOD.mjs} +4015 -2009
- 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-q3WnpvyZ.mjs → resolveBlockData-CT4YSBve.mjs} +4 -3
- package/dist/server/{resolveButtonColourStates-Cn6j8Ee0.mjs → resolveButtonColourStates-DVISOQD9.mjs} +2 -0
- package/dist/server/rich-text-CRcONdyM.mjs +33 -0
- package/dist/server/{richTextSchema-DQ2NBP0n.mjs → richTextSchema-QLaQrbII.mjs} +31 -2
- package/dist/server/{parseThemeForPersistence-BebSeE17.mjs → schema-C92Q8y0-.mjs} +463 -53
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -2
- package/dist/server/theme.mjs +2 -1
- package/dist/server/{three-pass-converter-CQWdnfjV.mjs → three-pass-converter-Bsfdy_ZV.mjs} +11 -8
- package/dist/server/{validation-CSMS6XmP.mjs → validation-vSBCWU3w.mjs} +9 -9
- package/dist/server/{version-DWeqmTXc.mjs → version-Cw5vFmUY.mjs} +1 -1
- package/dist/styles/index.css +521 -59
- package/package.json +1 -1
- package/dist/client/Page-Bu5TJU3L.mjs +0 -52239
- package/dist/client/StepIndicator-CR7_0yu4.mjs +0 -432
- package/dist/client/form-RTqunrpz.mjs +0 -85
- package/dist/preview-next/client/useOpenBlockForSetup-BpZnBznt.mjs +0 -28
- package/dist/server/ThemeScopeCore-Ck0dhZA6.mjs +0 -24236
- package/dist/server/bindings-CAbTvrCZ.mjs +0 -257
- package/dist/server/headerVariant-8O5MvxIU.mjs +0 -464
- package/dist/server/loadContent-DKerbSnI.mjs +0 -578
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { $ as SURFACE_INK_CSS_VARS, A as expandPalette, Et as parseThemeColorToken, W as hexToRgb, _ as unsafeAsOpaqueButtonColourToken, ct as backgroundColorStyle, d as DEFAULT_VARIANT_ALIAS_ID, dt as mergeStyles, ft as rgbColorValue, h as createStandardButtonSurfacePolicy, ht as textColorValue, i as formatButtonColourContractError, it as surfaceForegroundValue, l as FONT_SIZE_MAP, m as buttonSizeNameSchema, mt as textColorStyle, n as compileButtonColourStates, nt as surfaceForegroundInputFromResolved, o as BORDER_WIDTH_MAP, ot as surfaceInkDeclarations, r as BUTTON_CONTRAST_POLICY, s as DEFAULT_BUTTON_SIZES, st as surfaceInkStyle, tt as surfaceForegroundDeclarations, u as generateShadowValue$1, ut as cssVarValue } from "./resolveButtonColourStates-
|
|
2
|
-
import { A as
|
|
3
|
-
import { $ as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as parseThemeForPersistence } from "./parseThemeForPersistence-BebSeE17.mjs";
|
|
1
|
+
import { $ as SURFACE_INK_CSS_VARS, A as expandPalette, Et as parseThemeColorToken, W as hexToRgb, _ as unsafeAsOpaqueButtonColourToken, ct as backgroundColorStyle, d as DEFAULT_VARIANT_ALIAS_ID, dt as mergeStyles, ft as rgbColorValue, h as createStandardButtonSurfacePolicy, ht as textColorValue, i as formatButtonColourContractError, it as surfaceForegroundValue, l as FONT_SIZE_MAP, m as buttonSizeNameSchema, mt as textColorStyle, n as compileButtonColourStates, nt as surfaceForegroundInputFromResolved, o as BORDER_WIDTH_MAP, ot as surfaceInkDeclarations, r as BUTTON_CONTRAST_POLICY, s as DEFAULT_BUTTON_SIZES, st as surfaceInkStyle, tt as surfaceForegroundDeclarations, u as generateShadowValue$1, ut as cssVarValue } from "./resolveButtonColourStates-DVISOQD9.mjs";
|
|
2
|
+
import { A as createEditorPresentationPageReader, B as resolveMonthSelectedDay, C as EventHeader, D as derivePreviewRunSchedule, E as deriveEventScheduleSummary, F as EventItem, G as resolveEventLinkProps, H as formatEventDuration, I as eventCategoryBadge, K as parseStoredVariant, L as CalendarIcon, M as EmptyState, N as CardListCollection, O as MonthLookView, P as CardListItems, R as MapPinIcon, T as eventCardListContent, U as resolveEventCardBooking, V as formatEventTeacherLine, W as resolveEventCta, X as defaultThemeTokens, Y as buildThemeTokens, _ as publicAppointmentPricingSchema, a as joinSlotKey, b as resolvePageRouteTarget, c as buildLinkedContentEditTarget, f as defaultTransforms, g as publicAppointmentLocationSchema, h as formatAppointmentPrice, i as composePageJoins, j as createPresentationPageReader, k as EventListingFrameView, m as formatAppointmentLocation, n as createPageRenderPlanReader, o as renderedJoinLayout, p as formatAppointmentDuration, s as retargetJoinsAcrossOmissions, u as resolveLinkedEntryInlineFieldEligibility, w as EVENT_REGISTRATION_ANCHOR_ID, x as resolveRouteTarget, y as resolveEntryRouteTarget, z as buildMonthDay } from "./pageRenderPlan-DFv3h4Ib.mjs";
|
|
3
|
+
import { $ as MediaNodeServer, $i as effectiveHeaderNavLinkStyle, $t as formatEventClockLabel, A as publicRouteCandidatesSchema, Aa as generateNavLinkCSS, Ai as MinusIcon, An as pageNavigationSchema, As as TokenResolver, At as normalizeOfferingsPreviewItemLimit, B as buildEventCollectionDisplay, Bn as resolveFeatureCardGeneratedIconSizePx, Bo as CANCELLED_SESSION_STATUS, Br as formEmbedFragment, Bt as SpinnerNode, C as buildProductListInteractiveIslandProps, Ci as CircleMinusIcon, Cn as canJoinEventWaitlistOnAnyMode, Cr as itemRole, Ct as normalizeEventRegistrationPageSurfaceSubject, D as membershipClassesLabel, Da as generateDefaultCardSystem, Di as FileAudioIcon, Dn as getEventAvailabilityStatus, E as membershipCardListContent, Ea as resolveCardRole, Ei as FileArchiveIcon, En as getEventAvailability, Er as clsx, F as buildEventCalendarListingDisplay, Fn as blockBookingPaymentTermsSchema, Fo as loadedReadinessFact, Fr as cardFragment, Ft as ThemedAuthoredButton, G as eventCollectionSourceSchemaShape, Gi as parseThemeButtonVariantId, Gn as markEditableSurfaceForwarding, Go as buildMailingListSignupBlockSourceRef, Gr as heroCtaRowFragment, Gt as formatEventPriceAmount, H as buildEventCollectionListingDisplay, Ho as nextLiveRunSessionStartMs, Hr as testimonialsCarouselFragment, Ht as eventListWeekDays, Ia as headerNeedsPhotoShade, In as blockBookingConsentSchema, Io as pageTemplateFromEntry, Ir as faqAccordionFragment, It as ThemedButton, J as listingEventCardProps, Jn as parseTeamMemberSpecialties, Jo as parseMailingListPlacementTargeting, Jr as heroCopyFragment, Ki as themeButtonSelector, Kn as splitPositioningClasses, Ko as parseMailingListRuntimeContext, Kr as ctaRowFragment, Kt as formatEventPriceDisplay, La as headerRootPaint, Ln as bookingConsentCarrierSchema, Lo as unavailableReadinessFact, Lr as faqHeadingFragment, Lt as ThemedButtonLink, M as offeringsCatalogueShape, Ma as generateInteractiveChildInheritanceCSS, Mi as inlineTextToPlainText, Mn as bookingPageKindSchema, Mt as resolveOfferingsPreviewGroupCta, N as eventCalendarBlockDefinition, Ni as isInlineTextEmpty, Nn as groupPublicEventsByRun, No as chosenString, Nr as richTextFragment, Nt as resolveOfferingsPreviewGroups, O as passCardListContent, Oa as generateFooterCss, Oi as FileSpreadsheetIcon, On as isEventFull, Ot as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, P as buildEventCalendarInteractiveIslandProps, Pi as parseInlineTextFromUnknown, Pn as publicEventsArraySchema, Po as admitReadinessFacts, Pr as headingFragment, Pt as resolveOfferingsRenderInput, Qn as resolveDateRuntimeContext, Qo as normalizeLocationAddressText, Qr as resolveCardRoleForBoxStyles, Qt as formatDate, R as eventListingBlockDefinition, Ri as parseFieldDefinitions, Rn as beforeBookingQuestionsPresentationSchema, Rr as blogFeaturedPostFragment, Rt as ThemedDownloadLink, S as buildProductDetailInteractiveIslandProps, Si as ChevronDownIcon, Sn as browserReadAuthoritySchema, Sr as resolvedItemSurfaceProps, T as shopProductPresentation, Ti as ClockIcon, Tn as formatTotalCapacity, Tr as Grid, U as eventCollectionDisplaySchemaShape, Ua as boundaryRuntimeMetricsForDecorativeTransition, Ui as isObjectRecord, Uo as orderedLiveRunSessions, Ur as testimonialsHeadingFragment, V as buildEventCollectionHydration, Vi as PUBLIC_DOWNLOAD_MEDIA_TYPES, Vn as shouldReserveFeatureCardIconZone, Vo as firstLiveRunSessionStartMs, Vr as formCopyFragment, Vt as buildEventListWeek, W as eventCollectionHydrationSchema, Wi as isRecord$4, Wn as composeHeaderSectionWrapperClassName, Wo as resolveWholeSeriesBookingPhase, Wr as ctaCopyFragment, Wt as formatEventPrice, Xa as anglePolygonCss, Xi as selectItemSurfacePresentation, Xn as teamMemberCardBiography, Xo as decideLocationSourcePermission, Xr as boxStyleClassNames, Yn as teamMemberBiography, Yo as sameMailingListPlacementTargeting, Yt as eventDateOptions, Za as transitionCatalogueEntries, Zn as readRuntimeNow, Zr as normalizeBoxStylesBorder, Zt as formatCalendarTitle, _ as productDetailBlockDefinition, _i as sanitizeHref, _n as isSameCalendarDay, _r as defineProgressiveBlockRuntime, _s as formatBookingPriceDisplay, _t as resolveEventRegistrationEventSource, a as normalizeLocationMapProps, ai as ctaButton, an as formatEventTimeRange, b as buildCartInteractiveIslandProps, ba as requireCuratedSiteStyle, bi as resolveBlockIconRenderValue, br as listLookSlot, bs as publicEventPricingDisplay, c as newsletterSignupBlockDefinition, ca as arrangementManifestFromVariants, ci as when, cn as resolveEventTimeZone, cs as toScheduledBookingDateTime, ct as buildResolveImageUrlContext, d as buildNewsletterFormInteractiveIslandProps, dn as addDays, do as featureCardCompositionTreatmentValues, dr as buildFormInteractiveIslandProps, dt as EventQuickFacts, ea as readOpeningToneProjection, en as formatEventCompactDateRail, et as RichText, f as newsletterBlockSubmissionMessage, fn as formatDateKey, fo as introCompositionTreatmentValues, fr as buildInteractiveIslandProps, ft as getCardOrientation, g as cartBlockDefinition, gi as defineFragment, gn as getWeekCalendarDays, go as testimonialsCompositionTreatmentValues, gr as defineClientOwnedBlockRuntime, gs as toUtcIsoDateTimeString, gt as buildEventRegistrationInteractiveIslandProps, h as checkoutBlockDefinition, hi as runTransforms, hn as getWeekCalendarDayTuple, hr as createZodCodec, hs as toBookingTimeZone, ht as eventRegistrationBlockDefinition, ii as resolveBackgroundColorValue, j as buildOfferingsCatalogueListing, ja as generateEffectsCSS, ji as PlusIcon, jn as closedRunCopy, jt as offeringsListingFor, k as offeringsPreviewBlockDefinition, ka as buildTextContrastShadow, ki as FileTextIcon, kn as blockSiteTermsSchema, kt as buildOfferingsPreviewListing, ln as getLocalDateKey, lt as getCurrentResolveImageUrlContext, m as buildGiftingInteractiveIslandProps, mn as getOrderedDayNames, mr as defineInteractiveIslandMetaKeys, ms as resolveBookingBusinessTimeZone, na as arrangementLookHooks, nn as formatEventHourLabel, ns as mapDrawingSchema, nt as MediaPlaceholder, o as normalizeLocationMapSource, oi as bodyCopyFragment, on as formatTime, p as giftingBlockDefinition, pn as getDayOfWeek, po as offeringsPreviewCompositionTreatmentValues, pr as createInteractiveIslandCodec, ps as parseLocalScheduleTime, pt as getContainerClass, q as catalogueEventCardProps, qi as AFFORDANCE_SUPPRESS_CLASS, qr as isBlockButtonRole, qt as buildCalendarViewport, r as normalizeBlockContent, rn as formatEventNextDateFact, rr as staticHeaderChromeRuntime, rs as formatDate$1, s as resolveLocationMapLocation, si as el, sn as groupEventsByDate, ss as formatBookingCompactEnglishTime, st as resolvePublicMediaUrl, t as getBlockDefinition, tn as formatEventDateParts, tt as ImagePresets, u as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, ua as resolveEffectiveArrangement, un as getLocalMinuteOfDay, ur as formBlockDefinition, us as getBookingLocalDateKey, ut as setContextResolveImageUrlContext, v as productListBlockDefinition, vi as buildGeneratedBlockIconRenderAssetLookupFromUnknown, vn as isToday, vr as listItemPresentation, vs as isPublicEventPricingOptionDisplayable, vt as bookingNowSchema, w as buildShopInteractiveIslandProps, wi as CirclePlusIcon, wn as formatEventRemainingPlaces, ws as formatCurrencyAmount, wt as resolveEventRegistrationScopedEvents, x as buildCheckoutInteractiveIslandProps, xi as ArrowDownIcon, xn as bookingPresentation, xo as bindingSchema, xr as lookListPresentationSchemaShape, xs as publicEventPricingType, y as shopBlockDefinition, yi as parseBlockIconValue, yn as resolveRuntimeEventDestination, yr as listLookControl, ys as publicEventPricingCurrency, yt as previewStageSchema, z as buildEventListingInteractiveIslandProps, zn as FEATURE_CARD_ICON_TREATMENTS, zr as singleButtonFragment, zt as getIconComponent } from "./registry-BogXzcOD.mjs";
|
|
4
|
+
import { B as certifyPaint, C as materializeRuntimeButtonAppearance, F as resolveSurfaceForeground, G as resolveOpaqueSurfaceHex, H as inkReference, L as surfaceInkPublication, N as freezeOwnedThemeValue, O as mapButtonVisualAppearances, P as ownedThemeSnapshot, S as buttonTypographyDeclarations, V as contrastThresholdByPolicy, W as resolveConcreteColorHex, 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, z as HOVER_TEXT_THRESHOLD } from "./accessibleSurfaces-BuPNCWAK.mjs";
|
|
5
|
+
import { h as surfaceCardRoleValues, s as boxBackgroundSchema, x as siteChromeBackgroundOverrideOwner } from "./schema-C92Q8y0-.mjs";
|
|
7
6
|
import { l as renderableMediaAssetSchema, o as runtimeMediaSchema } from "./media-Brn9FW5s.mjs";
|
|
8
7
|
import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
|
|
9
|
-
import {
|
|
10
|
-
import { n as RichTextDocSchema } from "./richTextSchema-
|
|
11
|
-
import { n as opaqueSurfaceDeclarations, t as opaqueSurfaceContextFromTheme } from "./opaqueSurface-
|
|
12
|
-
import { A as
|
|
8
|
+
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-yHaRNWMj.mjs";
|
|
9
|
+
import { n as RichTextDocSchema } from "./richTextSchema-QLaQrbII.mjs";
|
|
10
|
+
import { n as opaqueSurfaceDeclarations, t as opaqueSurfaceContextFromTheme } from "./opaqueSurface-ukEz1BaM.mjs";
|
|
11
|
+
import { A as cardDecorationPseudoRules, C as generateOpaquePanelCss, D as generateShadowCssVars, E as resolvedButtonFocusDeclarations, O as renderCssDeclarations, S as generateCheckableCss, T as resolvedButtonColourDeclarations, _ 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, k as cardBorderDeclarations, 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 RESOLVED_BUTTON_DISABLED_DECLARATIONS, x as generateInputGroupCss, y as INPUT_GROUP_FOCUS_SELECTOR } from "./ThemeScopeCore-DGDOH6OU.mjs";
|
|
12
|
+
import { c as readHeaderNavFontSizePreference, s as mergeHeaderNavTypographyPreference } from "./bindings-CiYpie1M.mjs";
|
|
13
|
+
import { t as parseThemeForPersistence } from "./parseThemeForPersistence-Dl7LIBJq.mjs";
|
|
14
|
+
import { n as mapOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
|
|
13
15
|
import { t as getAtPath } from "./src-Cxucn-1P.mjs";
|
|
14
16
|
import * as React$1 from "react";
|
|
15
17
|
import React, { forwardRef } from "react";
|
|
@@ -368,33 +370,6 @@ function resolveContentPadding(variant) {
|
|
|
368
370
|
return typeof spacing === "string" ? paddingFor(spacing) : `${paddingFor(spacing.block)} ${paddingFor(spacing.inline)}`;
|
|
369
371
|
}
|
|
370
372
|
//#endregion
|
|
371
|
-
//#region ../theme-core/src/site-styles/siteChromeNavPreferences.ts
|
|
372
|
-
/**
|
|
373
|
-
* Applies the user's nav font-role/size overrides on top of a style-resolved
|
|
374
|
-
* nav link style. This is where the precedence contract lands:
|
|
375
|
-
*
|
|
376
|
-
* - The nav typography TREATMENT (case/tracking identity: plain / heading /
|
|
377
|
-
* quiet-caps / brand-caps) is ALWAYS owned by the active header style and is
|
|
378
|
-
* baked into `style` before this call (see `applyNavTypography` in
|
|
379
|
-
* headerLayoutStyles.ts).
|
|
380
|
-
* - Each treatment resolves through a DEFAULT font role: `heading` resolves
|
|
381
|
-
* through the heading role; `plain` / `quiet-caps` / `brand-caps` resolve
|
|
382
|
-
* through the body role.
|
|
383
|
-
* - The user's `navFontRole` (surfaced here as `preferences.typography`) only
|
|
384
|
-
* overrides which font ROLE the treatment resolves through. It never changes
|
|
385
|
-
* the treatment. `'inherit'` keeps the treatment's default role.
|
|
386
|
-
*/
|
|
387
|
-
function mergeHeaderNavTypographyPreference(style, preferences) {
|
|
388
|
-
return preferences.typography === "inherit" && preferences.fontSize === "inherit" ? style : {
|
|
389
|
-
...style,
|
|
390
|
-
...preferences.typography === "inherit" ? {} : { typography: preferences.typography },
|
|
391
|
-
...preferences.fontSize === "inherit" ? {} : { textSize: preferences.fontSize }
|
|
392
|
-
};
|
|
393
|
-
}
|
|
394
|
-
function readHeaderNavFontSizePreference(value) {
|
|
395
|
-
return value === "sm" || value === "base" || value === "lg" || value === "xl" ? value : "inherit";
|
|
396
|
-
}
|
|
397
|
-
//#endregion
|
|
398
373
|
//#region ../theme-core/src/styles/skinTokens.ts
|
|
399
374
|
function skinTokenCssVars(tokens) {
|
|
400
375
|
return Object.fromEntries(Object.entries(tokens ?? {}).map(([name, value]) => [`--rb-skin-${name}`, value]));
|
|
@@ -3914,6 +3889,192 @@ function selectEventDetailsCandidate(events, requested, nowIso) {
|
|
|
3914
3889
|
} : null;
|
|
3915
3890
|
}
|
|
3916
3891
|
//#endregion
|
|
3892
|
+
//#region ../blocks/src/system/blocks/events/shared/pageSelection.ts
|
|
3893
|
+
/**
|
|
3894
|
+
* What a system-managed Event URL actually selected.
|
|
3895
|
+
*
|
|
3896
|
+
* The resolver used to assume that one returned `PublicEvent` meant one
|
|
3897
|
+
* occurrence. A whole-series Event breaks that assumption in two directions: a
|
|
3898
|
+
* parent Event path selects nothing concrete until a run is chosen, and a run
|
|
3899
|
+
* path selects a run whose identity spans every one of its sessions. This
|
|
3900
|
+
* module parses those cases once, so the renderer switches over a closed set of
|
|
3901
|
+
* page states instead of probing booking scopes at render time.
|
|
3902
|
+
*
|
|
3903
|
+
* Everything here is pure. Loading events and resolving run slugs is the
|
|
3904
|
+
* resolver's job; deciding what the page is and which runs the chooser
|
|
3905
|
+
* advertises happens here. When a run is open to join, and where it sits in its
|
|
3906
|
+
* own life, come from `@riverbankcms/core`: the same authority the
|
|
3907
|
+
* public read projection and the write-side run-facts loader use, so a run
|
|
3908
|
+
* cannot report itself open on the storefront and closed at the point of
|
|
3909
|
+
* booking.
|
|
3910
|
+
*/
|
|
3911
|
+
function planWholeSeriesParentBooking(eligibleRuns) {
|
|
3912
|
+
const [first, ...rest] = eligibleRuns;
|
|
3913
|
+
return rest.length === 0 ? {
|
|
3914
|
+
kind: "single",
|
|
3915
|
+
run: first
|
|
3916
|
+
} : {
|
|
3917
|
+
kind: "choice",
|
|
3918
|
+
runs: eligibleRuns
|
|
3919
|
+
};
|
|
3920
|
+
}
|
|
3921
|
+
function isOrdinaryPublicEvent(event) {
|
|
3922
|
+
return event.bookingScope === "single_occurrence";
|
|
3923
|
+
}
|
|
3924
|
+
/**
|
|
3925
|
+
* Whether a parent Event page advertises this run.
|
|
3926
|
+
*
|
|
3927
|
+
* Visibility admission belongs to the scoped public read. Active, still-open
|
|
3928
|
+
* admitted runs are advertised, and a run that has started,
|
|
3929
|
+
* finished or been cancelled is informational wherever it appears.
|
|
3930
|
+
*
|
|
3931
|
+
* Capacity is deliberately not consulted (decision A24/A30): a full date is
|
|
3932
|
+
* still one of the dates on offer, and its own page shows the full or waitlist
|
|
3933
|
+
* state that the registration engine decides. Hiding it here would leave a
|
|
3934
|
+
* visitor unable to see that the date exists at all.
|
|
3935
|
+
*/
|
|
3936
|
+
function resolveWholeSeriesChooserEligibility(group, now) {
|
|
3937
|
+
const status = group.representative.status;
|
|
3938
|
+
if (status !== void 0 && status !== "active") return {
|
|
3939
|
+
kind: "excluded",
|
|
3940
|
+
reason: "series-not-active"
|
|
3941
|
+
};
|
|
3942
|
+
const phase = resolveWholeSeriesBookingPhase(group.run, now);
|
|
3943
|
+
return phase.kind === "open" ? { kind: "eligible" } : {
|
|
3944
|
+
kind: "excluded",
|
|
3945
|
+
reason: phase.reason
|
|
3946
|
+
};
|
|
3947
|
+
}
|
|
3948
|
+
/**
|
|
3949
|
+
* Runs in the order a visitor reads them: soonest first session first.
|
|
3950
|
+
*
|
|
3951
|
+
* A run with no session left to attend has no place in the sequence, so it
|
|
3952
|
+
* sorts last rather than being given an arbitrary date.
|
|
3953
|
+
*/
|
|
3954
|
+
function orderRunsBySchedule(groups) {
|
|
3955
|
+
return [...groups].sort((left, right) => {
|
|
3956
|
+
const leftStart = firstLiveRunSessionStartMs(left.run.sessions);
|
|
3957
|
+
const rightStart = firstLiveRunSessionStartMs(right.run.sessions);
|
|
3958
|
+
if (leftStart === null) return rightStart === null ? 0 : 1;
|
|
3959
|
+
if (rightStart === null) return -1;
|
|
3960
|
+
return leftStart - rightStart;
|
|
3961
|
+
});
|
|
3962
|
+
}
|
|
3963
|
+
function asNonEmpty(groups) {
|
|
3964
|
+
const [first, ...rest] = groups;
|
|
3965
|
+
return first ? [first, ...rest] : null;
|
|
3966
|
+
}
|
|
3967
|
+
/**
|
|
3968
|
+
* What a parent Event path selects.
|
|
3969
|
+
*
|
|
3970
|
+
* The scoped read admits public and unlisted runs for the offering's own page.
|
|
3971
|
+
* The chooser lists the ones still open; when none is, the most recent
|
|
3972
|
+
* admitted run supplies the page's name and copy. Runs from another offering
|
|
3973
|
+
* cannot speak for this page.
|
|
3974
|
+
*/
|
|
3975
|
+
function planWholeSeriesParentSelection(input) {
|
|
3976
|
+
const offeringRuns = orderRunsBySchedule(groupPublicEventsByRun(input.events).filter((group) => group.run.eventOfferingId === input.offeringId));
|
|
3977
|
+
const eligibleRuns = asNonEmpty(offeringRuns.filter((group) => resolveWholeSeriesChooserEligibility(group, input.now).kind === "eligible"));
|
|
3978
|
+
if (eligibleRuns) return {
|
|
3979
|
+
kind: "wholeSeriesParent",
|
|
3980
|
+
admittedRuns: offeringRuns,
|
|
3981
|
+
offeringId: input.offeringId,
|
|
3982
|
+
eligibleRuns
|
|
3983
|
+
};
|
|
3984
|
+
const informationalRun = offeringRuns.at(-1);
|
|
3985
|
+
return informationalRun ? {
|
|
3986
|
+
kind: "wholeSeriesParentUnavailable",
|
|
3987
|
+
admittedRuns: offeringRuns,
|
|
3988
|
+
offeringId: input.offeringId,
|
|
3989
|
+
informationalRun,
|
|
3990
|
+
bookingClosedDetail: resolveParentBookingClosedDetail(offeringRuns, input.now)
|
|
3991
|
+
} : null;
|
|
3992
|
+
}
|
|
3993
|
+
/**
|
|
3994
|
+
* What a course page says when none of its runs is bookable.
|
|
3995
|
+
*
|
|
3996
|
+
* A run whose page is up without bookings carries its own reason, so the course
|
|
3997
|
+
* speaks for the runs it has: if any of them was live and has been taken
|
|
3998
|
+
* offline the course is closed for now, and otherwise it is waiting to open. A
|
|
3999
|
+
* course whose runs are simply cancelled, under way or finished carries no
|
|
4000
|
+
* reason at all, and the page keeps the words it already has for that.
|
|
4001
|
+
*
|
|
4002
|
+
* Only a run with a session still to come counts. A run that was paused a year
|
|
4003
|
+
* ago and whose dates have all passed says nothing about the course now, and
|
|
4004
|
+
* letting it speak would tell a visitor that a newly announced run is closed.
|
|
4005
|
+
*/
|
|
4006
|
+
function resolveParentBookingClosedDetail(runs, now) {
|
|
4007
|
+
const details = runs.flatMap((group) => {
|
|
4008
|
+
const detail = group.representative.bookingClosedDetail;
|
|
4009
|
+
return detail && hasSessionAhead(group, now) ? [detail] : [];
|
|
4010
|
+
});
|
|
4011
|
+
if (details.length === 0) return null;
|
|
4012
|
+
return details.some((detail) => detail.kind === "paused") ? { kind: "paused" } : { kind: "opensSoon" };
|
|
4013
|
+
}
|
|
4014
|
+
/** Whether the run still has a session a visitor could attend. */
|
|
4015
|
+
function hasSessionAhead(group, now) {
|
|
4016
|
+
return orderedLiveRunSessions(group.run.sessions).some((session) => Date.parse(session.startsAt) > now.getTime());
|
|
4017
|
+
}
|
|
4018
|
+
/** What a targeted run path selects, when the named run projected any data. */
|
|
4019
|
+
function planWholeSeriesRunSelection(input) {
|
|
4020
|
+
const group = groupPublicEventsByRun(input.events).find((candidate) => candidate.eventSeriesId === input.eventSeriesId);
|
|
4021
|
+
if (!group) return null;
|
|
4022
|
+
return {
|
|
4023
|
+
kind: "wholeSeriesRun",
|
|
4024
|
+
offeringId: group.run.eventOfferingId,
|
|
4025
|
+
run: group
|
|
4026
|
+
};
|
|
4027
|
+
}
|
|
4028
|
+
/**
|
|
4029
|
+
* The Event record that speaks for a selection.
|
|
4030
|
+
*
|
|
4031
|
+
* Page metadata, the destination mode and the shared presentation all need one
|
|
4032
|
+
* record; every variant has one, so callers never re-derive it.
|
|
4033
|
+
*/
|
|
4034
|
+
function selectionRepresentativeEvent(selection) {
|
|
4035
|
+
switch (selection.kind) {
|
|
4036
|
+
case "occurrence": return selection.event;
|
|
4037
|
+
case "wholeSeriesParent": return selection.eligibleRuns[0].representative;
|
|
4038
|
+
case "wholeSeriesParentUnavailable": return selection.informationalRun.representative;
|
|
4039
|
+
case "wholeSeriesRun": return selection.run.representative;
|
|
4040
|
+
}
|
|
4041
|
+
}
|
|
4042
|
+
/**
|
|
4043
|
+
* Why this page is not taking bookings, when its own state says so.
|
|
4044
|
+
*
|
|
4045
|
+
* A parent course page answers for its runs; everything else answers for the
|
|
4046
|
+
* record the page is about. `null` leaves the booking column exactly as it was.
|
|
4047
|
+
*/
|
|
4048
|
+
function resolveSelectionBookingClosedDetail(selection) {
|
|
4049
|
+
switch (selection.kind) {
|
|
4050
|
+
case "occurrence": return selection.event.bookingClosedDetail ?? null;
|
|
4051
|
+
case "wholeSeriesRun": return selection.run.representative.bookingClosedDetail ?? null;
|
|
4052
|
+
case "wholeSeriesParent": return null;
|
|
4053
|
+
case "wholeSeriesParentUnavailable": return selection.bookingClosedDetail;
|
|
4054
|
+
}
|
|
4055
|
+
}
|
|
4056
|
+
function planDropInPanel(selection) {
|
|
4057
|
+
const detail = resolveSelectionBookingClosedDetail(selection);
|
|
4058
|
+
if (detail === null) return { kind: "comeAlong" };
|
|
4059
|
+
switch (detail.kind) {
|
|
4060
|
+
case "opensSoon":
|
|
4061
|
+
case "paused": return { kind: "notRunning" };
|
|
4062
|
+
}
|
|
4063
|
+
}
|
|
4064
|
+
function getPublicEventCanonicalPath(event) {
|
|
4065
|
+
if (event.path) return event.path;
|
|
4066
|
+
return event.destination.kind === "native" ? event.destination.path : null;
|
|
4067
|
+
}
|
|
4068
|
+
function eventOccurrenceContext(event) {
|
|
4069
|
+
return {
|
|
4070
|
+
id: event.occurrenceId,
|
|
4071
|
+
seriesId: event.seriesId,
|
|
4072
|
+
startsAt: event.startsAt,
|
|
4073
|
+
endsAt: event.endsAt,
|
|
4074
|
+
timeZone: event.timeZone
|
|
4075
|
+
};
|
|
4076
|
+
}
|
|
4077
|
+
//#endregion
|
|
3917
4078
|
//#region ../blocks/src/system/runtime/nodes/events/domain/bookability.ts
|
|
3918
4079
|
/**
|
|
3919
4080
|
* Whether a public event has a registration path a visitor can take.
|
|
@@ -4490,7 +4651,7 @@ function FeedbackMessage({ tone, treatment = "panel", children, className, id, t
|
|
|
4490
4651
|
function slotClasses(slot, classPrefix, emitSharedClasses) {
|
|
4491
4652
|
return [emitSharedClasses ? `rb-${slot}` : null, classPrefix ? `${classPrefix}-${slot}` : null].filter((name) => name !== null).join(" ");
|
|
4492
4653
|
}
|
|
4493
|
-
function StepIndicator$1({ currentStep, totalSteps, stepLabels, classPrefix, emitSharedClasses }) {
|
|
4654
|
+
function StepIndicator$1({ currentStep, totalSteps, stepLabels, classPrefix, emitSharedClasses, labelAs: Label = "span" }) {
|
|
4494
4655
|
const slot = (name) => slotClasses(name, classPrefix, emitSharedClasses);
|
|
4495
4656
|
const current = Math.min(Math.max(currentStep, 1), Math.max(totalSteps, 1));
|
|
4496
4657
|
const label = stepLabels?.[current - 1];
|
|
@@ -4500,7 +4661,7 @@ function StepIndicator$1({ currentStep, totalSteps, stepLabels, classPrefix, emi
|
|
|
4500
4661
|
className: slot("progress"),
|
|
4501
4662
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
4502
4663
|
className: slot("progress__head"),
|
|
4503
|
-
children: [label ? /* @__PURE__ */ jsx(
|
|
4664
|
+
children: [label ? /* @__PURE__ */ jsx(Label, {
|
|
4504
4665
|
className: slot("progress__label"),
|
|
4505
4666
|
"aria-current": "step",
|
|
4506
4667
|
children: label
|
|
@@ -4857,6 +5018,10 @@ function EventCardContent(props) {
|
|
|
4857
5018
|
children: props.title
|
|
4858
5019
|
})
|
|
4859
5020
|
}),
|
|
5021
|
+
/* @__PURE__ */ jsx(EventQuickFacts, {
|
|
5022
|
+
facts: event.facts,
|
|
5023
|
+
context: "card"
|
|
5024
|
+
}),
|
|
4860
5025
|
/* @__PURE__ */ jsx("div", {
|
|
4861
5026
|
...listLookSlot(props, "item-meta"),
|
|
4862
5027
|
className: "rb-mb-2 rb-caption",
|
|
@@ -5046,7 +5211,6 @@ const EventCompactRow = (props) => props.lookSlots === void 0 ? /* @__PURE__ */
|
|
|
5046
5211
|
as: "article"
|
|
5047
5212
|
});
|
|
5048
5213
|
const LegacyEventCompactRow = ({ event, buttonVariant = "primary", buttonText, showVenue = true }) => {
|
|
5049
|
-
event.timeZone;
|
|
5050
5214
|
const dateRail = formatEventCompactDateRail(event.startsAt, eventDateOptions(event));
|
|
5051
5215
|
const formattedTime = formatEventTimeRange(event, eventDateOptions(event));
|
|
5052
5216
|
const price = formatEventPrice(event);
|
|
@@ -5076,30 +5240,37 @@ const LegacyEventCompactRow = ({ event, buttonVariant = "primary", buttonText, s
|
|
|
5076
5240
|
className: "event-compact-row-body",
|
|
5077
5241
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
5078
5242
|
className: "event-compact-row-content",
|
|
5079
|
-
children: [
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
5087
|
-
className: "event-compact-row-meta",
|
|
5088
|
-
children: [
|
|
5089
|
-
showVenue && event.venue && /* @__PURE__ */ jsxs("span", {
|
|
5090
|
-
className: "event-compact-row-venue",
|
|
5091
|
-
children: [/* @__PURE__ */ jsx(MapPinIcon, { className: "rb-shrink-0" }), event.venue.name]
|
|
5092
|
-
}),
|
|
5093
|
-
teacherLine && /* @__PURE__ */ jsx("span", {
|
|
5094
|
-
className: "event-compact-row-teacher",
|
|
5095
|
-
children: teacherLine
|
|
5096
|
-
}),
|
|
5097
|
-
/* @__PURE__ */ jsx("span", {
|
|
5098
|
-
className: "event-compact-row-price",
|
|
5099
|
-
children: price
|
|
5243
|
+
children: [
|
|
5244
|
+
/* @__PURE__ */ jsx("h3", {
|
|
5245
|
+
className: "event-compact-row-title",
|
|
5246
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
5247
|
+
className: "event-title-link",
|
|
5248
|
+
...resolveEventLinkProps(event),
|
|
5249
|
+
children: event.title
|
|
5100
5250
|
})
|
|
5101
|
-
|
|
5102
|
-
|
|
5251
|
+
}),
|
|
5252
|
+
/* @__PURE__ */ jsx(EventQuickFacts, {
|
|
5253
|
+
facts: event.facts,
|
|
5254
|
+
context: "card"
|
|
5255
|
+
}),
|
|
5256
|
+
/* @__PURE__ */ jsxs("div", {
|
|
5257
|
+
className: "event-compact-row-meta",
|
|
5258
|
+
children: [
|
|
5259
|
+
showVenue && event.venue && /* @__PURE__ */ jsxs("span", {
|
|
5260
|
+
className: "event-compact-row-venue",
|
|
5261
|
+
children: [/* @__PURE__ */ jsx(MapPinIcon, { className: "rb-shrink-0" }), event.venue.name]
|
|
5262
|
+
}),
|
|
5263
|
+
teacherLine && /* @__PURE__ */ jsx("span", {
|
|
5264
|
+
className: "event-compact-row-teacher",
|
|
5265
|
+
children: teacherLine
|
|
5266
|
+
}),
|
|
5267
|
+
/* @__PURE__ */ jsx("span", {
|
|
5268
|
+
className: "event-compact-row-price",
|
|
5269
|
+
children: price
|
|
5270
|
+
})
|
|
5271
|
+
]
|
|
5272
|
+
})
|
|
5273
|
+
]
|
|
5103
5274
|
}), /* @__PURE__ */ jsxs("div", {
|
|
5104
5275
|
className: "event-compact-row-action",
|
|
5105
5276
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
@@ -5329,7 +5500,7 @@ function loaderFact(input, id, key, schema) {
|
|
|
5329
5500
|
const prefetched = input.prefetched;
|
|
5330
5501
|
if (!prefetched) return unavailableReadinessFact;
|
|
5331
5502
|
if (!prefetched.loaderSnapshot.blocks[id]?.requests[key] || prefetched.loaderFailures[id]?.[key]) return unavailableReadinessFact;
|
|
5332
|
-
const parsed =
|
|
5503
|
+
const parsed = z.safeParse(schema, prefetched.resolvedData[id]?.[key]);
|
|
5333
5504
|
return parsed.success ? loadedReadinessFact(parsed.data) : unavailableReadinessFact;
|
|
5334
5505
|
}
|
|
5335
5506
|
function mapFact(fact, project) {
|
|
@@ -5498,8 +5669,10 @@ const GridNode = (props) => /* @__PURE__ */ jsx(Grid, { ...props });
|
|
|
5498
5669
|
const DivNode = (props) => /* @__PURE__ */ jsx("div", { ...props });
|
|
5499
5670
|
const FigureNode = (props) => /* @__PURE__ */ jsx("figure", { ...props });
|
|
5500
5671
|
const OrderedListNode = (props) => /* @__PURE__ */ jsx("ol", { ...props });
|
|
5672
|
+
const UnorderedListNode = (props) => /* @__PURE__ */ jsx("ul", { ...props });
|
|
5501
5673
|
const ListItemNode = (props) => /* @__PURE__ */ jsx("li", { ...props });
|
|
5502
5674
|
const FigcaptionNode = (props) => /* @__PURE__ */ jsx("figcaption", { ...props });
|
|
5675
|
+
const DescriptionListNode = (props) => /* @__PURE__ */ jsx("dl", { ...props });
|
|
5503
5676
|
//#endregion
|
|
5504
5677
|
//#region ../blocks/src/primitives/content/components/Text.tsx
|
|
5505
5678
|
function Text({ as: Comp = "span", children, className = "", path, style, "data-slot": dataSlot, "data-surface": dataSurface, maxLength: _maxLength }) {
|
|
@@ -6800,40 +6973,6 @@ function ListGroup({ presentation, title, intro, Heading, sectionProps, children
|
|
|
6800
6973
|
}
|
|
6801
6974
|
//#endregion
|
|
6802
6975
|
//#region ../blocks/src/system/runtime/nodes/appointment-services.tsx
|
|
6803
|
-
const publicVenueSchema = z.object({
|
|
6804
|
-
name: z.string(),
|
|
6805
|
-
area: z.string().nullable()
|
|
6806
|
-
});
|
|
6807
|
-
const publicLocationSchema = z.discriminatedUnion("mode", [
|
|
6808
|
-
z.object({ mode: z.literal("online") }),
|
|
6809
|
-
z.object({
|
|
6810
|
-
mode: z.literal("in_person"),
|
|
6811
|
-
venue: publicVenueSchema.nullable()
|
|
6812
|
-
}),
|
|
6813
|
-
z.object({
|
|
6814
|
-
mode: z.literal("either"),
|
|
6815
|
-
venue: publicVenueSchema.nullable()
|
|
6816
|
-
})
|
|
6817
|
-
]);
|
|
6818
|
-
const publicPricingOptionSchema = z.object({
|
|
6819
|
-
priceAmount: z.number().finite(),
|
|
6820
|
-
isActive: z.boolean(),
|
|
6821
|
-
saleStartsAt: z.string().nullable(),
|
|
6822
|
-
saleEndsAt: z.string().nullable()
|
|
6823
|
-
});
|
|
6824
|
-
const publicPricingSchema = z.object({
|
|
6825
|
-
pricingStrategy: z.enum([
|
|
6826
|
-
"free",
|
|
6827
|
-
"single",
|
|
6828
|
-
"tiered",
|
|
6829
|
-
"sliding_scale"
|
|
6830
|
-
]),
|
|
6831
|
-
currency: z.string().min(1),
|
|
6832
|
-
singlePriceAmount: z.number().nullable(),
|
|
6833
|
-
slidingMinAmount: z.number().nullable(),
|
|
6834
|
-
slidingMaxAmount: z.number().nullable(),
|
|
6835
|
-
options: z.array(publicPricingOptionSchema).readonly()
|
|
6836
|
-
});
|
|
6837
6976
|
const publicAppointmentServiceSchema = z.object({
|
|
6838
6977
|
id: z.string().min(1),
|
|
6839
6978
|
image: runtimeMediaSchema.nullable().optional(),
|
|
@@ -6841,11 +6980,11 @@ const publicAppointmentServiceSchema = z.object({
|
|
|
6841
6980
|
title: z.string(),
|
|
6842
6981
|
description: z.string().nullable().optional(),
|
|
6843
6982
|
durationMinutes: z.number().int().positive(),
|
|
6844
|
-
pricing:
|
|
6983
|
+
pricing: publicAppointmentPricingSchema.optional(),
|
|
6845
6984
|
priceAmount: z.number().nullable(),
|
|
6846
6985
|
priceCurrency: z.string().nullable(),
|
|
6847
6986
|
onlinePaymentMode: z.enum(["session_or_package", "package_only"]).optional(),
|
|
6848
|
-
location:
|
|
6987
|
+
location: publicAppointmentLocationSchema,
|
|
6849
6988
|
categoryId: z.string().nullable().optional().transform((value) => value ?? null)
|
|
6850
6989
|
});
|
|
6851
6990
|
const publicServiceCategorySchema = z.object({
|
|
@@ -6882,65 +7021,6 @@ function readCategoryFilter(value) {
|
|
|
6882
7021
|
const trimmed = value.trim();
|
|
6883
7022
|
return trimmed.length > 0 ? trimmed : null;
|
|
6884
7023
|
}
|
|
6885
|
-
function formatAppointmentDuration(durationMinutes) {
|
|
6886
|
-
return `${durationMinutes} min`;
|
|
6887
|
-
}
|
|
6888
|
-
function formatAppointmentLocation(location) {
|
|
6889
|
-
switch (location.mode) {
|
|
6890
|
-
case "online": return "Online";
|
|
6891
|
-
case "in_person": return formatVenue(location.venue);
|
|
6892
|
-
case "either": {
|
|
6893
|
-
const venue = formatVenue(location.venue);
|
|
6894
|
-
return venue ? `${venue} or online` : "In person or online";
|
|
6895
|
-
}
|
|
6896
|
-
default: return assertNever$1(location);
|
|
6897
|
-
}
|
|
6898
|
-
}
|
|
6899
|
-
function formatVenue(venue) {
|
|
6900
|
-
if (!venue) return null;
|
|
6901
|
-
return venue.area ? `${venue.name}, ${venue.area}` : venue.name;
|
|
6902
|
-
}
|
|
6903
|
-
function formatAppointmentPrice(service) {
|
|
6904
|
-
if (service.onlinePaymentMode === "package_only") return "Book with a package";
|
|
6905
|
-
const pricing = service.pricing;
|
|
6906
|
-
if (pricing) {
|
|
6907
|
-
const display = (() => {
|
|
6908
|
-
switch (pricing.pricingStrategy) {
|
|
6909
|
-
case "free": return {
|
|
6910
|
-
kind: "free",
|
|
6911
|
-
currency: pricing.currency
|
|
6912
|
-
};
|
|
6913
|
-
case "single": return resolveExactOrFreePriceDisplay(pricing.singlePriceAmount, pricing.currency);
|
|
6914
|
-
case "tiered": return resolvePricingOptionsPriceDisplay({
|
|
6915
|
-
options: pricing.options,
|
|
6916
|
-
currency: pricing.currency,
|
|
6917
|
-
purpose: "available_now"
|
|
6918
|
-
});
|
|
6919
|
-
case "sliding_scale": return pricing.slidingMinAmount === null || pricing.slidingMaxAmount === null ? {
|
|
6920
|
-
kind: "unavailable",
|
|
6921
|
-
currency: pricing.currency
|
|
6922
|
-
} : {
|
|
6923
|
-
kind: "range",
|
|
6924
|
-
minAmount: pricing.slidingMinAmount,
|
|
6925
|
-
maxAmount: pricing.slidingMaxAmount,
|
|
6926
|
-
currency: pricing.currency
|
|
6927
|
-
};
|
|
6928
|
-
default: return assertNever$1(pricing.pricingStrategy);
|
|
6929
|
-
}
|
|
6930
|
-
})();
|
|
6931
|
-
return display.kind === "unavailable" ? null : formatBookingPriceDisplay(display, { decimals: "auto" });
|
|
6932
|
-
}
|
|
6933
|
-
return formatAmountOrFree(service.priceAmount, service.priceCurrency);
|
|
6934
|
-
}
|
|
6935
|
-
function formatAmountOrFree(amount, currency) {
|
|
6936
|
-
if (amount === null || currency === null) return null;
|
|
6937
|
-
if (amount === 0) return "Free";
|
|
6938
|
-
return formatBookingPriceDisplay({
|
|
6939
|
-
kind: "exact",
|
|
6940
|
-
amount,
|
|
6941
|
-
currency
|
|
6942
|
-
}, { decimals: "auto" });
|
|
6943
|
-
}
|
|
6944
7024
|
function buildRows(services, pathname, servicePathPrefix) {
|
|
6945
7025
|
return services.map((service) => ({
|
|
6946
7026
|
id: service.id,
|
|
@@ -7091,7 +7171,7 @@ function AppointmentServiceGroups({ groups, hasSectionHeading, idPrefix }) {
|
|
|
7091
7171
|
function appointmentSectionHeading(value) {
|
|
7092
7172
|
return typeof value === "string" ? value : void 0;
|
|
7093
7173
|
}
|
|
7094
|
-
function AppointmentServicesNode({ Carousel, preparedView, sectionHeading, categoryId, services, pathname, servicePathPrefix, blockId, className, ...presentation }) {
|
|
7174
|
+
function AppointmentServicesNode({ Carousel, preparedView, sectionHeading, categoryId, services, pathname, servicePathPrefix, blockId, className, children, ...presentation }) {
|
|
7095
7175
|
const view = preparedView ?? buildAppointmentServicesView({
|
|
7096
7176
|
...appointmentReadInput({
|
|
7097
7177
|
services,
|
|
@@ -7102,14 +7182,28 @@ function AppointmentServicesNode({ Carousel, preparedView, sectionHeading, categ
|
|
|
7102
7182
|
arrangement: presentation.cardArrangement
|
|
7103
7183
|
});
|
|
7104
7184
|
const hasSectionHeading = Boolean(sectionHeading);
|
|
7105
|
-
|
|
7185
|
+
const body = presentation.lookSlots && (view.kind === "items" || view.kind === "groups") ? /* @__PURE__ */ jsx(AppointmentCardLists, {
|
|
7106
7186
|
sectionHeading: appointmentSectionHeading(sectionHeading),
|
|
7107
7187
|
categoryChosen: readCategoryFilter(categoryId) !== null,
|
|
7108
7188
|
Carousel,
|
|
7109
7189
|
view,
|
|
7110
7190
|
presentation,
|
|
7111
7191
|
hasSectionHeading
|
|
7192
|
+
}) : /* @__PURE__ */ jsx(AppointmentServicesFallback, {
|
|
7193
|
+
view,
|
|
7194
|
+
className,
|
|
7195
|
+
hasSectionHeading,
|
|
7196
|
+
idPrefix: `appointment-services-${blockId ?? "block"}`
|
|
7112
7197
|
});
|
|
7198
|
+
return presentation.lookSlots ? /* @__PURE__ */ jsxs("div", {
|
|
7199
|
+
...listLookSlot(presentation, "layout"),
|
|
7200
|
+
children: [/* @__PURE__ */ jsx("header", {
|
|
7201
|
+
...listLookSlot(presentation, "head"),
|
|
7202
|
+
children
|
|
7203
|
+
}), /* @__PURE__ */ jsx("div", { children: body })]
|
|
7204
|
+
}) : /* @__PURE__ */ jsxs(Fragment, { children: [children, body] });
|
|
7205
|
+
}
|
|
7206
|
+
function AppointmentServicesFallback({ view, className, hasSectionHeading, idPrefix }) {
|
|
7113
7207
|
const rootClassName = `appointment-services ${className ?? ""}`.trim();
|
|
7114
7208
|
const populated = view.kind === "items" || view.kind === "groups";
|
|
7115
7209
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -7118,7 +7212,7 @@ function AppointmentServicesNode({ Carousel, preparedView, sectionHeading, categ
|
|
|
7118
7212
|
children: /* @__PURE__ */ jsx(AppointmentServicesContent, {
|
|
7119
7213
|
view,
|
|
7120
7214
|
hasSectionHeading,
|
|
7121
|
-
idPrefix
|
|
7215
|
+
idPrefix
|
|
7122
7216
|
})
|
|
7123
7217
|
});
|
|
7124
7218
|
}
|
|
@@ -7334,6 +7428,16 @@ function TeamMembersNode(props) {
|
|
|
7334
7428
|
});
|
|
7335
7429
|
}
|
|
7336
7430
|
//#endregion
|
|
7431
|
+
//#region ../blocks/src/system/runtime/shared/BookingPanelArrangement.tsx
|
|
7432
|
+
/** The `[data-arrangement]` ancestor skin card rules need around an in-place booking panel. */
|
|
7433
|
+
function BookingPanelArrangement({ pageKind, children }) {
|
|
7434
|
+
const attributes = bookingPresentation(pageKind).arrangementAttributes;
|
|
7435
|
+
return attributes ? /* @__PURE__ */ jsx("div", {
|
|
7436
|
+
...attributes,
|
|
7437
|
+
children
|
|
7438
|
+
}) : /* @__PURE__ */ jsx(Fragment, { children });
|
|
7439
|
+
}
|
|
7440
|
+
//#endregion
|
|
7337
7441
|
//#region ../blocks/src/system/runtime/nodes/booking-form.state.ts
|
|
7338
7442
|
function toTrimmedString(value) {
|
|
7339
7443
|
const trimmed = value?.trim();
|
|
@@ -7608,6 +7712,7 @@ const bookingDateContextSchema = z.object({
|
|
|
7608
7712
|
timeZone: z.string().transform(resolveBookingBusinessTimeZone)
|
|
7609
7713
|
});
|
|
7610
7714
|
const bookingSourceSchema = z.object({
|
|
7715
|
+
pageKind: bookingPageKindSchema.optional(),
|
|
7611
7716
|
dateContext: bookingDateContextSchema,
|
|
7612
7717
|
now: bookingNowSchema,
|
|
7613
7718
|
demoEmailSuppressed: z.boolean().optional(),
|
|
@@ -7644,6 +7749,7 @@ const bookingDisplaySchema = z.object({
|
|
|
7644
7749
|
});
|
|
7645
7750
|
const bookingHydrationSchema = z.object({
|
|
7646
7751
|
now: bookingNowSchema,
|
|
7752
|
+
pageKind: bookingPageKindSchema.optional(),
|
|
7647
7753
|
dateContext: bookingDateContextSchema,
|
|
7648
7754
|
demoEmailSuppressed: z.boolean().optional(),
|
|
7649
7755
|
mailingList: bookingMailingListContextSchema.optional(),
|
|
@@ -7696,6 +7802,7 @@ const bookingFormBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
7696
7802
|
return {
|
|
7697
7803
|
display: buildBookingFormDisplay(source, form),
|
|
7698
7804
|
hydration: {
|
|
7805
|
+
pageKind: source.pageKind,
|
|
7699
7806
|
now: source.now,
|
|
7700
7807
|
dateContext: source.dateContext,
|
|
7701
7808
|
demoEmailSuppressed: source.demoEmailSuppressed,
|
|
@@ -7773,48 +7880,53 @@ function BookingFormSSR({ blockId, children, ...sourceProps }) {
|
|
|
7773
7880
|
id: blockId,
|
|
7774
7881
|
attributes: { "data-block": "appointment-booking" },
|
|
7775
7882
|
value: islandProps,
|
|
7776
|
-
children: [
|
|
7777
|
-
|
|
7778
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
children: /* @__PURE__ */ jsx("
|
|
7782
|
-
className: "
|
|
7783
|
-
|
|
7883
|
+
children: [/* @__PURE__ */ jsx(BookingPanelArrangement, {
|
|
7884
|
+
pageKind: sourceProps.pageKind,
|
|
7885
|
+
children: display.state === "missing" ? /* @__PURE__ */ jsx("div", {
|
|
7886
|
+
...bookingPresentation(sourceProps.pageKind).panelAttributes,
|
|
7887
|
+
className: `rb-reg-surface booking-form-ssr ${sourceProps.className ?? ""}`.trim(),
|
|
7888
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
7889
|
+
className: "alert alert-error",
|
|
7890
|
+
role: "alert",
|
|
7891
|
+
children: /* @__PURE__ */ jsx("p", {
|
|
7892
|
+
className: "ab-text",
|
|
7893
|
+
children: display.message
|
|
7894
|
+
})
|
|
7784
7895
|
})
|
|
7785
|
-
})
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7896
|
+
}) : /* @__PURE__ */ jsxs("div", {
|
|
7897
|
+
...bookingPresentation(sourceProps.pageKind).panelAttributes,
|
|
7898
|
+
className: `rb-reg-surface booking-form-ssr ab-shell ${sourceProps.className ?? ""}`.trim(),
|
|
7899
|
+
"aria-busy": true,
|
|
7900
|
+
"aria-label": "Loading booking form",
|
|
7901
|
+
role: "status",
|
|
7902
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
7903
|
+
className: "rb-sr-only",
|
|
7904
|
+
children: "Loading booking form..."
|
|
7905
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
7906
|
+
className: "rb-reg-stack",
|
|
7907
|
+
"aria-hidden": "true",
|
|
7908
|
+
children: [
|
|
7909
|
+
bookingPresentation(sourceProps.pageKind).showShellHeading ? /* @__PURE__ */ jsx("div", {
|
|
7910
|
+
className: "rb-reg-summary",
|
|
7911
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
7912
|
+
className: "rb-reg-stack rb-reg-stack--sm",
|
|
7913
|
+
children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--md" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--sm" })]
|
|
7914
|
+
})
|
|
7915
|
+
}) : null,
|
|
7916
|
+
/* @__PURE__ */ jsxs("div", {
|
|
7801
7917
|
className: "rb-reg-stack rb-reg-stack--sm",
|
|
7802
|
-
children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--
|
|
7803
|
-
})
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
|
|
7808
|
-
|
|
7809
|
-
|
|
7810
|
-
className: "rb-wizard-actions",
|
|
7811
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
7812
|
-
className: "ab-shell-button",
|
|
7813
|
-
children: display.submitLabel
|
|
7918
|
+
children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--lg" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--xs" })]
|
|
7919
|
+
}),
|
|
7920
|
+
/* @__PURE__ */ jsx("div", {
|
|
7921
|
+
className: "rb-wizard-actions",
|
|
7922
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
7923
|
+
className: "ab-shell-button",
|
|
7924
|
+
children: display.submitLabel
|
|
7925
|
+
})
|
|
7814
7926
|
})
|
|
7815
|
-
|
|
7816
|
-
]
|
|
7817
|
-
})
|
|
7927
|
+
]
|
|
7928
|
+
})]
|
|
7929
|
+
})
|
|
7818
7930
|
}), children]
|
|
7819
7931
|
});
|
|
7820
7932
|
}
|
|
@@ -7966,7 +8078,7 @@ function resolveSelection(input) {
|
|
|
7966
8078
|
events: input.events ?? null,
|
|
7967
8079
|
occurrenceContext: input.occurrenceContext ?? null,
|
|
7968
8080
|
subject: input.subject,
|
|
7969
|
-
nowIso: input.
|
|
8081
|
+
nowIso: input.now,
|
|
7970
8082
|
otherDatesLimit: input.otherDatesLimit
|
|
7971
8083
|
});
|
|
7972
8084
|
}
|
|
@@ -7999,6 +8111,7 @@ function resolveEventDetailsPresentation(input) {
|
|
|
7999
8111
|
return {
|
|
8000
8112
|
selection,
|
|
8001
8113
|
arrangement: input.arrangement,
|
|
8114
|
+
quickFacts: input.quickFacts,
|
|
8002
8115
|
entryTitle: input.entryTitle,
|
|
8003
8116
|
actionSize: input.actionSize,
|
|
8004
8117
|
lookSlots: input.lookSlots,
|
|
@@ -8054,8 +8167,12 @@ function lookPartShown(blockKind, field, arrangement) {
|
|
|
8054
8167
|
}
|
|
8055
8168
|
//#endregion
|
|
8056
8169
|
//#region ../blocks/src/system/runtime/nodes/event-details/WholeSeriesPricingDisplay.tsx
|
|
8170
|
+
/** A course lists every active option, whether or not its sale window is open. */
|
|
8171
|
+
function wholeSeriesPriceOptions(pricing) {
|
|
8172
|
+
return pricing.kind === "tiered" ? pricing.options.filter((option) => option.isActive) : [];
|
|
8173
|
+
}
|
|
8057
8174
|
function WholeSeriesPricingDisplay({ pricing, acceptedItems }) {
|
|
8058
|
-
const options = pricing
|
|
8175
|
+
const options = wholeSeriesPriceOptions(pricing);
|
|
8059
8176
|
return /* @__PURE__ */ jsxs("div", {
|
|
8060
8177
|
className: "rb-mt-6",
|
|
8061
8178
|
children: [
|
|
@@ -8074,7 +8191,7 @@ function WholeSeriesPricingDisplay({ pricing, acceptedItems }) {
|
|
|
8074
8191
|
className: "rb-caption status-muted",
|
|
8075
8192
|
children: option.description
|
|
8076
8193
|
}) : null] }, option.id))
|
|
8077
|
-
}) : /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: formatBookingPriceDisplay(publicEventPricingDisplay(pricing)) }) }),
|
|
8194
|
+
}) : /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: formatBookingPriceDisplay(publicEventPricingDisplay(pricing), { decimals: "auto" }) }) }),
|
|
8078
8195
|
acceptedItems.length > 0 ? /* @__PURE__ */ jsxs("p", {
|
|
8079
8196
|
className: "rb-caption rb-mt-1",
|
|
8080
8197
|
children: ["You can also attend with: ", acceptedItems.join(", ")]
|
|
@@ -8142,7 +8259,7 @@ function EventPricingDetails({ isDropIn, wholeSeriesPricingDisplay, acceptedItem
|
|
|
8142
8259
|
className: "rb-caption rb-mt-1",
|
|
8143
8260
|
children: formatAutoApplyDiscountLine(autoApplyDiscount, eventPricingCurrency)
|
|
8144
8261
|
}) : null,
|
|
8145
|
-
eventPricingCurrency ? /* @__PURE__ */ jsx(TicketTypePriceList, {
|
|
8262
|
+
eventPricingCurrency && ticketTypes.length > 1 ? /* @__PURE__ */ jsx(TicketTypePriceList, {
|
|
8146
8263
|
ticketTypes,
|
|
8147
8264
|
currency: eventPricingCurrency
|
|
8148
8265
|
}) : null,
|
|
@@ -8453,10 +8570,10 @@ function EventDetailsView(input) {
|
|
|
8453
8570
|
});
|
|
8454
8571
|
if (props.selection.kind === "empty") return /* @__PURE__ */ jsxs("div", {
|
|
8455
8572
|
...listLookSlot(props, "layout"),
|
|
8456
|
-
children: [props.entryTitle ? /* @__PURE__ */ jsx("h1", {
|
|
8573
|
+
children: [props.entryTitle ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("h1", {
|
|
8457
8574
|
...listLookSlot(props, "headline"),
|
|
8458
8575
|
children: props.entryTitle
|
|
8459
|
-
}) : null, /* @__PURE__ */ jsx(LegacyEventDetailsView, { ...props })]
|
|
8576
|
+
}), /* @__PURE__ */ jsx(EventQuickFacts, { facts: props.quickFacts })] }) : null, /* @__PURE__ */ jsx(LegacyEventDetailsView, { ...props })]
|
|
8460
8577
|
});
|
|
8461
8578
|
return /* @__PURE__ */ jsxs("div", {
|
|
8462
8579
|
...listLookSlot(props, "layout"),
|
|
@@ -8465,16 +8582,79 @@ function EventDetailsView(input) {
|
|
|
8465
8582
|
presentation: props,
|
|
8466
8583
|
showCost: props.showCost ?? true,
|
|
8467
8584
|
showCapacity: props.showCapacity ?? false
|
|
8468
|
-
}), /* @__PURE__ */ jsx(
|
|
8469
|
-
...
|
|
8470
|
-
|
|
8471
|
-
...props,
|
|
8472
|
-
showCost: props.showCost,
|
|
8473
|
-
showCapacity: false
|
|
8474
|
-
})
|
|
8585
|
+
}), /* @__PURE__ */ jsx(EventHeaderPanel, {
|
|
8586
|
+
...props,
|
|
8587
|
+
selection: props.selection
|
|
8475
8588
|
})]
|
|
8476
8589
|
});
|
|
8477
8590
|
}
|
|
8591
|
+
function EventHeaderPanel(props) {
|
|
8592
|
+
const content = headerPanelContent(props);
|
|
8593
|
+
if (!content.hasFacts && !content.hasMap && !content.hasDates) return null;
|
|
8594
|
+
return /* @__PURE__ */ jsx("div", {
|
|
8595
|
+
...listLookSlot(props, "panel"),
|
|
8596
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
8597
|
+
className: "rb-flex rb-flex-col rb-gap-6 rb-text-left",
|
|
8598
|
+
children: [content.hasFacts || content.hasMap ? /* @__PURE__ */ jsxs("div", {
|
|
8599
|
+
className: "rb-grid rb-grid-cols-1 rb-gap-6 rb-items-start rb-sm-grid-cols-2",
|
|
8600
|
+
children: [content.hasFacts ? /* @__PURE__ */ jsx(HeaderPanelFacts, { ...content }) : null, /* @__PURE__ */ jsx(EventVenueMap, {
|
|
8601
|
+
venue: content.venue,
|
|
8602
|
+
showMap: props.showMap,
|
|
8603
|
+
drawing: props.selectedVenueDrawing,
|
|
8604
|
+
mapHeight: props.mapHeight ?? 200,
|
|
8605
|
+
mapClassName: props.mapClassName ?? "event-details-map"
|
|
8606
|
+
})]
|
|
8607
|
+
}) : null, content.hasDates ? /* @__PURE__ */ jsx(OtherEventDates, { selection: props.selection }) : null]
|
|
8608
|
+
})
|
|
8609
|
+
});
|
|
8610
|
+
}
|
|
8611
|
+
function HeaderPanelFacts({ venue, teamMembers, pricing }) {
|
|
8612
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
8613
|
+
className: "rb-flex rb-flex-col rb-gap-4",
|
|
8614
|
+
children: [
|
|
8615
|
+
/* @__PURE__ */ jsx(EventVenueFact, { venue }),
|
|
8616
|
+
/* @__PURE__ */ jsx(EventTeacherFacts, { teamMembers }),
|
|
8617
|
+
pricing ? /* @__PURE__ */ jsx(EventPricingDetails, { ...pricing }) : null
|
|
8618
|
+
]
|
|
8619
|
+
});
|
|
8620
|
+
}
|
|
8621
|
+
/** What the panel has to add to the header, decided once. */
|
|
8622
|
+
function headerPanelContent(props) {
|
|
8623
|
+
const { selection } = props;
|
|
8624
|
+
const venue = props.showVenue ? selection.selected.venue : void 0;
|
|
8625
|
+
const teamMembers = selection.selected.teamMembers ?? [];
|
|
8626
|
+
const pricing = headerPanelPricing(props, selection.selected);
|
|
8627
|
+
const scheduled = selection.kind === "wholeSeries" ? selection.sessions.length : selection.otherDates.length;
|
|
8628
|
+
return {
|
|
8629
|
+
venue,
|
|
8630
|
+
teamMembers,
|
|
8631
|
+
pricing,
|
|
8632
|
+
hasMap: Boolean(props.showMap && venue && props.selectedVenueDrawing),
|
|
8633
|
+
hasFacts: Boolean(venue) || teamMembers.length > 0 || pricing !== null,
|
|
8634
|
+
hasDates: props.showOtherDates && scheduled > 0
|
|
8635
|
+
};
|
|
8636
|
+
}
|
|
8637
|
+
/**
|
|
8638
|
+
* Price detail beyond the header's one Price line: several options, a
|
|
8639
|
+
* discount, or passes that also admit. Decided from the same projection
|
|
8640
|
+
* `EventPricingDetails` renders, so a panel is only drawn when it will show something.
|
|
8641
|
+
*/
|
|
8642
|
+
function headerPanelPricing(props, event) {
|
|
8643
|
+
const pricing = selectedEventPricing(event, props.showCost ?? true);
|
|
8644
|
+
if (pricing.isDropIn) return null;
|
|
8645
|
+
const detail = {
|
|
8646
|
+
...pricing,
|
|
8647
|
+
acceptedItems: acceptedProductNames(props),
|
|
8648
|
+
autoApplyDiscount: props.autoApplyDiscount ?? null
|
|
8649
|
+
};
|
|
8650
|
+
return pricingAddsDetail(detail) ? detail : null;
|
|
8651
|
+
}
|
|
8652
|
+
/** True when `EventPricingDetails` would show more than the header's one price. */
|
|
8653
|
+
function pricingAddsDetail(pricing) {
|
|
8654
|
+
const priced = Boolean(pricing.eventCostLabel && pricing.eventPricingCurrency);
|
|
8655
|
+
const courseOptions = pricing.wholeSeriesPricingDisplay ? wholeSeriesPriceOptions(pricing.wholeSeriesPricingDisplay).length : 0;
|
|
8656
|
+
return pricing.acceptedItems.length > 0 || courseOptions > 1 || priced && (pricing.ticketTypes.length > 1 || pricing.autoApplyDiscount !== null);
|
|
8657
|
+
}
|
|
8478
8658
|
/** Turns off the toggles the arrangement leaves out, as `lookParts` declares them. */
|
|
8479
8659
|
function withLookParts(props, arrangement) {
|
|
8480
8660
|
const shown = (field) => lookPartShown("block.event-details", field, arrangement);
|
|
@@ -8486,7 +8666,7 @@ function withLookParts(props, arrangement) {
|
|
|
8486
8666
|
}
|
|
8487
8667
|
//#endregion
|
|
8488
8668
|
//#region ../blocks/src/system/runtime/nodes/event-details.server.tsx
|
|
8489
|
-
function eventDetailsIslandValue({ props, presentation, scopedEvents, subject
|
|
8669
|
+
function eventDetailsIslandValue({ props, presentation, scopedEvents, subject }) {
|
|
8490
8670
|
return {
|
|
8491
8671
|
...props.arrangement ? {
|
|
8492
8672
|
arrangement: props.arrangement,
|
|
@@ -8496,6 +8676,7 @@ function eventDetailsIslandValue({ props, presentation, scopedEvents, subject, n
|
|
|
8496
8676
|
surfacePresentation: props.surfacePresentation,
|
|
8497
8677
|
panelHeading: props.panelHeading
|
|
8498
8678
|
} : {},
|
|
8679
|
+
quickFacts: props.quickFacts,
|
|
8499
8680
|
occurrenceContext: props.occurrenceContext ?? null,
|
|
8500
8681
|
subject,
|
|
8501
8682
|
events: scopedEvents,
|
|
@@ -8514,12 +8695,11 @@ function eventDetailsIslandValue({ props, presentation, scopedEvents, subject, n
|
|
|
8514
8695
|
siteMemberships: props.siteMemberships,
|
|
8515
8696
|
autoApplyDiscount: presentation.autoApplyDiscount,
|
|
8516
8697
|
className: props.className,
|
|
8517
|
-
|
|
8698
|
+
now: props.now
|
|
8518
8699
|
};
|
|
8519
8700
|
}
|
|
8520
8701
|
function EventDetailsSSR(props) {
|
|
8521
8702
|
const { blockId, occurrenceContext = null, subject, events = null, className, children } = props;
|
|
8522
|
-
const nowIso = props.now;
|
|
8523
8703
|
const normalizedSubject = normalizeEventRegistrationPageSurfaceSubject(subject);
|
|
8524
8704
|
const scopedEvents = events === null ? null : resolveEventRegistrationScopedEvents(events, {
|
|
8525
8705
|
occurrenceContext,
|
|
@@ -8529,8 +8709,7 @@ function EventDetailsSSR(props) {
|
|
|
8529
8709
|
...props,
|
|
8530
8710
|
events: scopedEvents,
|
|
8531
8711
|
occurrenceContext,
|
|
8532
|
-
subject: normalizedSubject
|
|
8533
|
-
nowIso
|
|
8712
|
+
subject: normalizedSubject
|
|
8534
8713
|
});
|
|
8535
8714
|
return /* @__PURE__ */ jsxs(IslandRoot, {
|
|
8536
8715
|
kind: "event-details",
|
|
@@ -8543,8 +8722,7 @@ function EventDetailsSSR(props) {
|
|
|
8543
8722
|
props,
|
|
8544
8723
|
presentation,
|
|
8545
8724
|
scopedEvents,
|
|
8546
|
-
subject: normalizedSubject
|
|
8547
|
-
nowIso
|
|
8725
|
+
subject: normalizedSubject
|
|
8548
8726
|
}),
|
|
8549
8727
|
children: [/* @__PURE__ */ jsx(EventDetailsView, {
|
|
8550
8728
|
...presentation,
|
|
@@ -8866,7 +9044,7 @@ function OfferingsCatalogue(props) {
|
|
|
8866
9044
|
events: props.catalogueEvents
|
|
8867
9045
|
});
|
|
8868
9046
|
const shape = offeringsCatalogueShape(state, {
|
|
8869
|
-
listDates: props
|
|
9047
|
+
listDates: cardsListDates(props),
|
|
8870
9048
|
oneOfferingRequested: props.oneOffering === true
|
|
8871
9049
|
});
|
|
8872
9050
|
switch (state.kind) {
|
|
@@ -8913,13 +9091,17 @@ function OfferingsCatalogue(props) {
|
|
|
8913
9091
|
function catalogueShapeHook(shape) {
|
|
8914
9092
|
return shape === "single" ? { "data-has-one-offering": "true" } : {};
|
|
8915
9093
|
}
|
|
9094
|
+
/** Date rows exist only on Look cards set to list their next dates. */
|
|
9095
|
+
function cardsListDates(props) {
|
|
9096
|
+
return props.lookSlots !== void 0 && props.datesMode === "next-dates";
|
|
9097
|
+
}
|
|
8916
9098
|
/** One offering has room for a Book link on each date; several keep plain rows. */
|
|
8917
9099
|
function catalogueDateBooking(shape, pathname) {
|
|
8918
9100
|
return shape === "single" ? (event, dateLabel) => eventDateBookingLink(event, pathname ?? "/", dateLabel) : void 0;
|
|
8919
9101
|
}
|
|
8920
9102
|
function renderOfferingsCatalogueGroups({ props, groups, shape }) {
|
|
8921
9103
|
const enabledSeriesIds = new Set(groups.flatMap((load) => load.kind === "items" ? load.items.map((item) => item.kind === "event" ? item.event.seriesId : item.run.eventSeriesId) : []));
|
|
8922
|
-
const quickDateEvents =
|
|
9104
|
+
const quickDateEvents = cardsListDates(props) ? [] : selectQuickDateEvents((props.quickDateEvents ?? []).filter((event) => enabledSeriesIds.has(event.seriesId)));
|
|
8923
9105
|
const populated = groups.flatMap(catalogueGroupItems);
|
|
8924
9106
|
const frames = listGroupFrames(props);
|
|
8925
9107
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -9200,27 +9382,34 @@ function FeaturedOfferingSummary({ item }) {
|
|
|
9200
9382
|
if (!details) return null;
|
|
9201
9383
|
return /* @__PURE__ */ jsxs("article", {
|
|
9202
9384
|
className: "offerings-preview-summary rb-flex rb-flex-1 rb-flex-col",
|
|
9203
|
-
children: [
|
|
9204
|
-
|
|
9205
|
-
|
|
9206
|
-
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
children:
|
|
9211
|
-
|
|
9212
|
-
|
|
9213
|
-
|
|
9214
|
-
|
|
9215
|
-
|
|
9216
|
-
|
|
9217
|
-
|
|
9218
|
-
|
|
9219
|
-
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
|
|
9223
|
-
|
|
9385
|
+
children: [
|
|
9386
|
+
/* @__PURE__ */ jsx(EventQuickFacts, {
|
|
9387
|
+
facts: item.kind === "event" ? item.event.facts : item.run.representative.facts,
|
|
9388
|
+
context: "card"
|
|
9389
|
+
}),
|
|
9390
|
+
/* @__PURE__ */ jsxs("p", {
|
|
9391
|
+
className: "offerings-preview-summary-date",
|
|
9392
|
+
children: [/* @__PURE__ */ jsx("time", {
|
|
9393
|
+
dateTime: details.startDateTime,
|
|
9394
|
+
children: details.startDate
|
|
9395
|
+
}), details.endDate ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
|
|
9396
|
+
"aria-hidden": "true",
|
|
9397
|
+
children: " – "
|
|
9398
|
+
}), /* @__PURE__ */ jsx("time", {
|
|
9399
|
+
dateTime: details.endDateTime,
|
|
9400
|
+
children: details.endDate
|
|
9401
|
+
})] }) : null]
|
|
9402
|
+
}),
|
|
9403
|
+
/* @__PURE__ */ jsxs("dl", {
|
|
9404
|
+
className: "offerings-preview-summary-facts",
|
|
9405
|
+
children: [
|
|
9406
|
+
details.recurrence ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Repeats" }), /* @__PURE__ */ jsx("dd", { children: details.recurrence })] }) : null,
|
|
9407
|
+
details.sessionCount ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Sessions" }), /* @__PURE__ */ jsx("dd", { children: details.sessionCount })] }) : null,
|
|
9408
|
+
details.timeRange ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Time" }), /* @__PURE__ */ jsx("dd", { children: details.timeRange })] }) : null,
|
|
9409
|
+
details.venue ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Venue" }), /* @__PURE__ */ jsx("dd", { children: details.venue })] }) : null
|
|
9410
|
+
]
|
|
9411
|
+
})
|
|
9412
|
+
]
|
|
9224
9413
|
});
|
|
9225
9414
|
}
|
|
9226
9415
|
function featuredSummaryDetails(item) {
|
|
@@ -9384,31 +9573,38 @@ function WholeSeriesRunCompactRow({ group, path, now }) {
|
|
|
9384
9573
|
}),
|
|
9385
9574
|
/* @__PURE__ */ jsxs("div", {
|
|
9386
9575
|
className: "event-compact-row-content",
|
|
9387
|
-
children: [
|
|
9388
|
-
|
|
9389
|
-
|
|
9390
|
-
|
|
9391
|
-
|
|
9392
|
-
|
|
9393
|
-
|
|
9394
|
-
group.representative.
|
|
9395
|
-
|
|
9396
|
-
|
|
9397
|
-
|
|
9398
|
-
|
|
9399
|
-
|
|
9400
|
-
|
|
9401
|
-
|
|
9402
|
-
|
|
9403
|
-
|
|
9404
|
-
|
|
9405
|
-
|
|
9406
|
-
|
|
9407
|
-
|
|
9408
|
-
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
|
|
9576
|
+
children: [
|
|
9577
|
+
/* @__PURE__ */ jsx(OfferingTitle, {
|
|
9578
|
+
className: "event-compact-row-title",
|
|
9579
|
+
path,
|
|
9580
|
+
title: group.representative.title
|
|
9581
|
+
}),
|
|
9582
|
+
/* @__PURE__ */ jsx(EventQuickFacts, {
|
|
9583
|
+
facts: group.representative.facts,
|
|
9584
|
+
context: "card"
|
|
9585
|
+
}),
|
|
9586
|
+
/* @__PURE__ */ jsxs("div", {
|
|
9587
|
+
className: "event-compact-row-meta",
|
|
9588
|
+
children: [
|
|
9589
|
+
group.representative.venue ? /* @__PURE__ */ jsx("span", {
|
|
9590
|
+
className: "event-compact-row-venue",
|
|
9591
|
+
children: group.representative.venue.name
|
|
9592
|
+
}) : null,
|
|
9593
|
+
/* @__PURE__ */ jsx("span", {
|
|
9594
|
+
className: "event-compact-row-price",
|
|
9595
|
+
children: price
|
|
9596
|
+
}),
|
|
9597
|
+
/* @__PURE__ */ jsxs("span", {
|
|
9598
|
+
className: "event-compact-row-price",
|
|
9599
|
+
children: [
|
|
9600
|
+
sessionsCount,
|
|
9601
|
+
" session",
|
|
9602
|
+
sessionsCount === 1 ? "" : "s"
|
|
9603
|
+
]
|
|
9604
|
+
})
|
|
9605
|
+
]
|
|
9606
|
+
})
|
|
9607
|
+
]
|
|
9412
9608
|
}),
|
|
9413
9609
|
/* @__PURE__ */ jsxs("div", {
|
|
9414
9610
|
className: "event-compact-row-action",
|
|
@@ -9457,6 +9653,10 @@ function WholeSeriesRunFeatureCard({ group, now, path, buttonVariant, buttonText
|
|
|
9457
9653
|
path,
|
|
9458
9654
|
title: group.representative.title
|
|
9459
9655
|
}),
|
|
9656
|
+
/* @__PURE__ */ jsx(EventQuickFacts, {
|
|
9657
|
+
facts: group.representative.facts,
|
|
9658
|
+
context: "card"
|
|
9659
|
+
}),
|
|
9460
9660
|
/* @__PURE__ */ jsxs("div", {
|
|
9461
9661
|
className: "rb-mb-2 rb-caption",
|
|
9462
9662
|
children: [/* @__PURE__ */ jsx("time", { children: formattedDate }), /* @__PURE__ */ jsx("p", { children: timeRange })]
|
|
@@ -9551,6 +9751,10 @@ function RunWithoutLiveDates({ group, path }) {
|
|
|
9551
9751
|
path,
|
|
9552
9752
|
title: group.representative.title
|
|
9553
9753
|
}),
|
|
9754
|
+
/* @__PURE__ */ jsx(EventQuickFacts, {
|
|
9755
|
+
facts: group.representative.facts,
|
|
9756
|
+
context: "card"
|
|
9757
|
+
}),
|
|
9554
9758
|
/* @__PURE__ */ jsx("p", { children: "No dates available." }),
|
|
9555
9759
|
/* @__PURE__ */ jsx("span", {
|
|
9556
9760
|
className: "event-compact-row-status",
|
|
@@ -10495,6 +10699,7 @@ function CalendarRecurringWeek({ display }) {
|
|
|
10495
10699
|
function EventListWeekNavigation(props) {
|
|
10496
10700
|
return /* @__PURE__ */ jsxs("nav", {
|
|
10497
10701
|
...listLookSlot(props, "navigation"),
|
|
10702
|
+
"data-event-week-nav": true,
|
|
10498
10703
|
"aria-label": "Event weeks",
|
|
10499
10704
|
children: [
|
|
10500
10705
|
/* @__PURE__ */ jsx("button", {
|
|
@@ -11538,6 +11743,279 @@ const EventListingSSR = (props) => {
|
|
|
11538
11743
|
});
|
|
11539
11744
|
};
|
|
11540
11745
|
//#endregion
|
|
11746
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/BookingPanel.tsx
|
|
11747
|
+
function EventBookingPanelView({ panel, pageKind, children }) {
|
|
11748
|
+
const body = /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(EventBookingPanelBody, { panel }), children] });
|
|
11749
|
+
return bookingPresentation(pageKind).wrapInCard ? /* @__PURE__ */ jsx(BookingPanelArrangement, {
|
|
11750
|
+
pageKind,
|
|
11751
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
11752
|
+
...bookingPresentation(pageKind).panelAttributes,
|
|
11753
|
+
className: boxStyleClassNames({}, {
|
|
11754
|
+
cardRoleFallback: "default",
|
|
11755
|
+
includeSpacing: false
|
|
11756
|
+
}),
|
|
11757
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
11758
|
+
className: "card-content",
|
|
11759
|
+
children: body
|
|
11760
|
+
})
|
|
11761
|
+
})
|
|
11762
|
+
}) : body;
|
|
11763
|
+
}
|
|
11764
|
+
function EventBookingPanelBody({ panel }) {
|
|
11765
|
+
switch (panel.kind) {
|
|
11766
|
+
case "registration": return null;
|
|
11767
|
+
case "dropIn": return /* @__PURE__ */ jsx(DropInPanel, { panel: panel.panel });
|
|
11768
|
+
case "bookingClosed": return /* @__PURE__ */ jsx(BookingClosedPanel, { detail: panel.detail });
|
|
11769
|
+
case "closedRun": return /* @__PURE__ */ jsx(ClosedRunPanel, { reason: panel.reason });
|
|
11770
|
+
case "single": return /* @__PURE__ */ jsx(SingleDateBooking, { run: panel.run });
|
|
11771
|
+
case "choice": return /* @__PURE__ */ jsx(RunChooser, { runs: panel.runs });
|
|
11772
|
+
case "unavailable": return /* @__PURE__ */ jsxs("div", {
|
|
11773
|
+
className: "event-booking-panel__unavailable",
|
|
11774
|
+
children: [/* @__PURE__ */ jsx("h2", {
|
|
11775
|
+
className: "card-title rb-mb-3",
|
|
11776
|
+
children: "No dates open right now"
|
|
11777
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
11778
|
+
className: "status-muted rb-text-base rb-leading-relaxed",
|
|
11779
|
+
children: "There is nothing to book at the moment. Please check back later for the next set of dates."
|
|
11780
|
+
})]
|
|
11781
|
+
});
|
|
11782
|
+
}
|
|
11783
|
+
}
|
|
11784
|
+
function SingleDateBooking({ run }) {
|
|
11785
|
+
const href = getPublicEventCanonicalPath(run.representative);
|
|
11786
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
11787
|
+
className: "event-booking-panel__single-date",
|
|
11788
|
+
children: [
|
|
11789
|
+
/* @__PURE__ */ jsx("h2", {
|
|
11790
|
+
className: "card-title rb-mb-3",
|
|
11791
|
+
children: "Book your place"
|
|
11792
|
+
}),
|
|
11793
|
+
/* @__PURE__ */ jsx("p", {
|
|
11794
|
+
className: "event-booking-panel__run-dates status-muted rb-mb-4 rb-text-base rb-leading-relaxed",
|
|
11795
|
+
children: describeRun(run)
|
|
11796
|
+
}),
|
|
11797
|
+
href ? /* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
11798
|
+
variant: "primary",
|
|
11799
|
+
size: "md",
|
|
11800
|
+
extraClassName: "event-booking-panel__book-link rb-block rb-w-full rb-text-center",
|
|
11801
|
+
href,
|
|
11802
|
+
label: "Book now"
|
|
11803
|
+
}) : null
|
|
11804
|
+
]
|
|
11805
|
+
});
|
|
11806
|
+
}
|
|
11807
|
+
/** What a drop-in event's column says: come along, or not right now. */
|
|
11808
|
+
function DropInPanel({ panel }) {
|
|
11809
|
+
switch (panel.kind) {
|
|
11810
|
+
case "comeAlong": return /* @__PURE__ */ jsxs("div", {
|
|
11811
|
+
className: "event-booking-panel__drop-in",
|
|
11812
|
+
children: [/* @__PURE__ */ jsx("h2", {
|
|
11813
|
+
className: "card-title rb-mb-3",
|
|
11814
|
+
children: "No booking needed"
|
|
11815
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
11816
|
+
className: "status-muted rb-text-base rb-leading-relaxed",
|
|
11817
|
+
children: "You can come along without reserving a place."
|
|
11818
|
+
})]
|
|
11819
|
+
});
|
|
11820
|
+
case "notRunning": return /* @__PURE__ */ jsx("div", {
|
|
11821
|
+
className: "event-booking-panel__drop-in",
|
|
11822
|
+
children: /* @__PURE__ */ jsx("p", {
|
|
11823
|
+
className: "status-muted rb-text-base rb-leading-relaxed",
|
|
11824
|
+
children: "This isn’t running at the moment."
|
|
11825
|
+
})
|
|
11826
|
+
});
|
|
11827
|
+
}
|
|
11828
|
+
}
|
|
11829
|
+
/** The page is up, but bookings are not open. One line, and why. */
|
|
11830
|
+
function BookingClosedPanel({ detail }) {
|
|
11831
|
+
return /* @__PURE__ */ jsx("div", {
|
|
11832
|
+
className: "event-booking-panel__booking-closed",
|
|
11833
|
+
children: /* @__PURE__ */ jsx("h2", {
|
|
11834
|
+
className: "card-title",
|
|
11835
|
+
children: detail.kind === "opensSoon" ? "Bookings open soon." : "Bookings are closed for now."
|
|
11836
|
+
})
|
|
11837
|
+
});
|
|
11838
|
+
}
|
|
11839
|
+
/** Dates that cannot be booked keep their details and say why. */
|
|
11840
|
+
function ClosedRunPanel({ reason }) {
|
|
11841
|
+
const copy = closedRunCopy(reason);
|
|
11842
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
11843
|
+
className: "event-booking-panel__closed-run",
|
|
11844
|
+
children: [/* @__PURE__ */ jsx("h2", {
|
|
11845
|
+
className: "card-title rb-mb-3",
|
|
11846
|
+
children: copy.titleText
|
|
11847
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
11848
|
+
className: "status-muted rb-text-base rb-leading-relaxed",
|
|
11849
|
+
children: copy.bodyText
|
|
11850
|
+
})]
|
|
11851
|
+
});
|
|
11852
|
+
}
|
|
11853
|
+
/**
|
|
11854
|
+
* Server-rendered run links.
|
|
11855
|
+
*
|
|
11856
|
+
* Choosing a run is a navigation, not client state: each entry is a plain link
|
|
11857
|
+
* to that run's canonical page, so the chooser works before hydration and the
|
|
11858
|
+
* chosen run gets a shareable URL.
|
|
11859
|
+
*/
|
|
11860
|
+
function RunChooser({ runs }) {
|
|
11861
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
11862
|
+
className: "event-booking-panel__run-chooser",
|
|
11863
|
+
children: [/* @__PURE__ */ jsx("h2", {
|
|
11864
|
+
className: "card-title rb-mb-4",
|
|
11865
|
+
children: "Choose your dates"
|
|
11866
|
+
}), /* @__PURE__ */ jsx("ul", {
|
|
11867
|
+
className: "rb-flex rb-flex-col rb-gap-3",
|
|
11868
|
+
children: runs.map((run) => {
|
|
11869
|
+
const href = getPublicEventCanonicalPath(run.representative);
|
|
11870
|
+
const label = describeRun(run);
|
|
11871
|
+
return /* @__PURE__ */ jsx("li", { children: href ? /* @__PURE__ */ jsxs("a", {
|
|
11872
|
+
className: "event-booking-panel__run-link rb-block rb-w-full",
|
|
11873
|
+
href,
|
|
11874
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
11875
|
+
className: "event-booking-panel__run-name",
|
|
11876
|
+
children: run.representative.title
|
|
11877
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
11878
|
+
className: "event-booking-panel__run-dates status-muted rb-block rb-text-sm",
|
|
11879
|
+
children: label
|
|
11880
|
+
})]
|
|
11881
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
11882
|
+
className: "event-booking-panel__run-name",
|
|
11883
|
+
children: run.representative.title
|
|
11884
|
+
}) }, run.eventSeriesId);
|
|
11885
|
+
})
|
|
11886
|
+
})]
|
|
11887
|
+
});
|
|
11888
|
+
}
|
|
11889
|
+
/** "12 sessions from 5 March" — enough to tell two runs apart in a list. */
|
|
11890
|
+
function describeRun(run) {
|
|
11891
|
+
const sessionCount = run.run.sessions.length;
|
|
11892
|
+
const sessionLabel = sessionCount === 1 ? "1 session" : `${sessionCount} sessions`;
|
|
11893
|
+
const first = orderedLiveRunSessions(run.run.sessions)[0];
|
|
11894
|
+
if (!first) return sessionLabel;
|
|
11895
|
+
return `${sessionLabel} from ${formatDate$1({
|
|
11896
|
+
kind: "instant",
|
|
11897
|
+
value: toUtcIsoDateTimeString(first.startsAt)
|
|
11898
|
+
}, eventDateOptions({
|
|
11899
|
+
...run.representative,
|
|
11900
|
+
timeZone: first.timeZone
|
|
11901
|
+
}), {
|
|
11902
|
+
date: "long",
|
|
11903
|
+
weekday: "long"
|
|
11904
|
+
})}`;
|
|
11905
|
+
}
|
|
11906
|
+
//#endregion
|
|
11907
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/bookingPanelSelection.ts
|
|
11908
|
+
/** Adapt a loaded page surface to the existing page planners. Catalogues keep their picker. */
|
|
11909
|
+
function resolveBookingPanelSelection(source) {
|
|
11910
|
+
const eventSource = resolveEventRegistrationEventSource({
|
|
11911
|
+
events: source.events,
|
|
11912
|
+
wholeSeriesRunEvents: source.wholeSeriesRunEvents,
|
|
11913
|
+
failures: source.eventLoaderFailures
|
|
11914
|
+
});
|
|
11915
|
+
if (eventSource.kind !== "loaded") return null;
|
|
11916
|
+
const subject = normalizeEventRegistrationPageSurfaceSubject(source.subject);
|
|
11917
|
+
const events = resolveEventRegistrationScopedEvents(eventSource.events, {
|
|
11918
|
+
occurrenceContext: source.occurrenceContext,
|
|
11919
|
+
subject
|
|
11920
|
+
});
|
|
11921
|
+
const selection = selectPagePanel({
|
|
11922
|
+
...source,
|
|
11923
|
+
subject
|
|
11924
|
+
}, events);
|
|
11925
|
+
return selection ? {
|
|
11926
|
+
selection,
|
|
11927
|
+
subject
|
|
11928
|
+
} : null;
|
|
11929
|
+
}
|
|
11930
|
+
function selectPagePanel(source, events) {
|
|
11931
|
+
if (source.subject?.kind === "eventOffering" && source.subject.bookingScope === "whole_series") {
|
|
11932
|
+
if (source.pageKind !== "bookingPage") return null;
|
|
11933
|
+
return planWholeSeriesParentSelection({
|
|
11934
|
+
offeringId: source.subject.eventOfferingId,
|
|
11935
|
+
events,
|
|
11936
|
+
now: new Date(source.now)
|
|
11937
|
+
});
|
|
11938
|
+
}
|
|
11939
|
+
if (source.subject?.kind === "eventSeries" && source.subject.bookingScope === "whole_series") return planWholeSeriesRunSelection({
|
|
11940
|
+
eventSeriesId: source.subject.eventSeriesId,
|
|
11941
|
+
events
|
|
11942
|
+
});
|
|
11943
|
+
return selectOccurrenceForPanel(events, source.occurrenceContext?.id);
|
|
11944
|
+
}
|
|
11945
|
+
/** The decided target is also retained for recovery when fresh booking is closed. */
|
|
11946
|
+
function registrationSourceForPanel(source, panel) {
|
|
11947
|
+
if (!panel.registration) return null;
|
|
11948
|
+
return {
|
|
11949
|
+
...source,
|
|
11950
|
+
...panel.registration,
|
|
11951
|
+
wholeSeriesRunEvents: null,
|
|
11952
|
+
admission: panel.kind === "registration" ? "newBookings" : "recoveryOnly"
|
|
11953
|
+
};
|
|
11954
|
+
}
|
|
11955
|
+
function selectOccurrenceForPanel(events, occurrenceId) {
|
|
11956
|
+
const event = occurrenceId ? events.find((candidate) => candidate.occurrenceId === occurrenceId) : null;
|
|
11957
|
+
return event && isOrdinaryPublicEvent(event) ? {
|
|
11958
|
+
kind: "occurrence",
|
|
11959
|
+
event
|
|
11960
|
+
} : null;
|
|
11961
|
+
}
|
|
11962
|
+
function planEventBookingPanel({ selection, subject }, now) {
|
|
11963
|
+
const nonBookingPanel = planNonBookingPanel(selection);
|
|
11964
|
+
switch (selection.kind) {
|
|
11965
|
+
case "occurrence":
|
|
11966
|
+
case "wholeSeriesRun": {
|
|
11967
|
+
const registration = selectionRegistrationTarget(selection, subject);
|
|
11968
|
+
if (nonBookingPanel) return {
|
|
11969
|
+
...nonBookingPanel,
|
|
11970
|
+
registration
|
|
11971
|
+
};
|
|
11972
|
+
const phase = selection.kind === "wholeSeriesRun" ? resolveWholeSeriesBookingPhase(selection.run.run, now) : null;
|
|
11973
|
+
return phase?.kind === "closed" ? {
|
|
11974
|
+
kind: "closedRun",
|
|
11975
|
+
reason: phase.reason,
|
|
11976
|
+
registration
|
|
11977
|
+
} : {
|
|
11978
|
+
kind: "registration",
|
|
11979
|
+
registration
|
|
11980
|
+
};
|
|
11981
|
+
}
|
|
11982
|
+
case "wholeSeriesParent": return {
|
|
11983
|
+
...nonBookingPanel ?? planWholeSeriesParentBooking(selection.eligibleRuns),
|
|
11984
|
+
registration: null
|
|
11985
|
+
};
|
|
11986
|
+
case "wholeSeriesParentUnavailable": return {
|
|
11987
|
+
...nonBookingPanel ?? { kind: "unavailable" },
|
|
11988
|
+
registration: null
|
|
11989
|
+
};
|
|
11990
|
+
}
|
|
11991
|
+
}
|
|
11992
|
+
/** Drop-in and page-level closure take precedence over fresh booking and run selection. */
|
|
11993
|
+
function planNonBookingPanel(selection) {
|
|
11994
|
+
if (!selectionRepresentativeEvent(selection).requiresRegistration) return {
|
|
11995
|
+
kind: "dropIn",
|
|
11996
|
+
panel: planDropInPanel(selection)
|
|
11997
|
+
};
|
|
11998
|
+
const detail = resolveSelectionBookingClosedDetail(selection);
|
|
11999
|
+
return detail ? {
|
|
12000
|
+
kind: "bookingClosed",
|
|
12001
|
+
detail
|
|
12002
|
+
} : null;
|
|
12003
|
+
}
|
|
12004
|
+
function selectionRegistrationTarget(selection, subject) {
|
|
12005
|
+
switch (selection.kind) {
|
|
12006
|
+
case "occurrence": return {
|
|
12007
|
+
events: [selection.event],
|
|
12008
|
+
occurrenceContext: eventOccurrenceContext(selection.event),
|
|
12009
|
+
subject
|
|
12010
|
+
};
|
|
12011
|
+
case "wholeSeriesRun": return {
|
|
12012
|
+
events: [selection.run.representative],
|
|
12013
|
+
occurrenceContext: null,
|
|
12014
|
+
subject
|
|
12015
|
+
};
|
|
12016
|
+
}
|
|
12017
|
+
}
|
|
12018
|
+
//#endregion
|
|
11541
12019
|
//#region ../blocks/src/system/runtime/nodes/event-registration/RegistrationClosedState.tsx
|
|
11542
12020
|
function RegistrationClosedState({ title, body }) {
|
|
11543
12021
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -11781,35 +12259,76 @@ function StepIndicator(props) {
|
|
|
11781
12259
|
* Server-safe placeholder for event registration.
|
|
11782
12260
|
* Provides a static container for island hydration without importing client hooks.
|
|
11783
12261
|
*/
|
|
11784
|
-
function EventRegistrationSSR({
|
|
12262
|
+
function EventRegistrationSSR({ subject, loaderFailures, ...props }) {
|
|
12263
|
+
const selection = resolveBookingPanelSelection({
|
|
12264
|
+
...props,
|
|
12265
|
+
subject,
|
|
12266
|
+
eventLoaderFailures: props.blockId ? loaderFailures?.[props.blockId] : void 0
|
|
12267
|
+
});
|
|
12268
|
+
if (!selection) return /* @__PURE__ */ jsx(BookingPanelArrangement, {
|
|
12269
|
+
pageKind: props.pageKind,
|
|
12270
|
+
children: /* @__PURE__ */ jsx(EventRegistrationIsland, {
|
|
12271
|
+
...props,
|
|
12272
|
+
subject: normalizeEventRegistrationPageSurfaceSubject(subject),
|
|
12273
|
+
loaderFailures
|
|
12274
|
+
})
|
|
12275
|
+
});
|
|
12276
|
+
return /* @__PURE__ */ jsx(SelectedEventRegistration, {
|
|
12277
|
+
selection,
|
|
12278
|
+
island: {
|
|
12279
|
+
...props,
|
|
12280
|
+
subject: selection.subject,
|
|
12281
|
+
loaderFailures
|
|
12282
|
+
}
|
|
12283
|
+
});
|
|
12284
|
+
}
|
|
12285
|
+
/** Once admitted, render the decided target without re-parsing its subject. */
|
|
12286
|
+
function SelectedEventRegistration({ selection, island }) {
|
|
12287
|
+
const panel = planEventBookingPanel(selection, new Date(island.now));
|
|
12288
|
+
const registration = registrationSourceForPanel(island, panel);
|
|
12289
|
+
return /* @__PURE__ */ jsx(EventBookingPanelView, {
|
|
12290
|
+
panel,
|
|
12291
|
+
pageKind: island.pageKind ?? "fullPage",
|
|
12292
|
+
children: registration ? /* @__PURE__ */ jsx(EventRegistrationIsland, {
|
|
12293
|
+
...island,
|
|
12294
|
+
...registration,
|
|
12295
|
+
insidePanel: true
|
|
12296
|
+
}) : null
|
|
12297
|
+
});
|
|
12298
|
+
}
|
|
12299
|
+
function EventRegistrationIsland({ blockId, subject, loaderFailures, children, insidePanel, ...sourceProps }) {
|
|
11785
12300
|
const islandProps = buildEventRegistrationInteractiveIslandProps({
|
|
11786
12301
|
...sourceProps,
|
|
11787
12302
|
eventLoaderFailures: blockId ? loaderFailures?.[blockId] : void 0,
|
|
11788
|
-
subject
|
|
12303
|
+
subject
|
|
11789
12304
|
});
|
|
11790
12305
|
const display = islandProps.render.display;
|
|
11791
|
-
const className =
|
|
12306
|
+
const className = display.className;
|
|
11792
12307
|
return /* @__PURE__ */ jsxs(IslandRoot, {
|
|
11793
12308
|
kind: "event-registration",
|
|
11794
12309
|
id: blockId,
|
|
11795
12310
|
attributes: {
|
|
11796
12311
|
className: `event-registration ${className ?? ""}`.trim(),
|
|
11797
12312
|
"data-block": "event-registration",
|
|
12313
|
+
...insidePanel ? void 0 : bookingPresentation(sourceProps.pageKind).panelAttributes,
|
|
11798
12314
|
"data-rb-island-required": "true",
|
|
11799
12315
|
"data-rb-island-error-message": "We couldn’t load the booking options for this event. Please refresh this page and try again. If this keeps happening, contact the organiser for help.",
|
|
11800
12316
|
"data-rb-island-error-class": "event-registration__hydration-error"
|
|
11801
12317
|
},
|
|
11802
12318
|
value: islandProps,
|
|
11803
|
-
children: [display.state === "booking-card" ? /* @__PURE__ */ jsx("div", {
|
|
12319
|
+
children: [islandProps.render.hydration.admission === "recoveryOnly" ? null : display.state === "booking-card" ? /* @__PURE__ */ jsx("div", {
|
|
11804
12320
|
id: EVENT_REGISTRATION_ANCHOR_ID,
|
|
11805
12321
|
children: /* @__PURE__ */ jsx(BookingEntryCard, {
|
|
11806
12322
|
entry: display.entry,
|
|
11807
12323
|
buttonVariant: display.buttonVariant ?? "primary"
|
|
11808
12324
|
})
|
|
11809
|
-
}) : /* @__PURE__ */ jsx(EventRegistrationShell, {
|
|
12325
|
+
}) : /* @__PURE__ */ jsx(EventRegistrationShell, {
|
|
12326
|
+
display,
|
|
12327
|
+
showHeading: bookingPresentation(sourceProps.pageKind).showShellHeading
|
|
12328
|
+
}), children]
|
|
11810
12329
|
});
|
|
11811
12330
|
}
|
|
11812
|
-
function EventRegistrationShell({ display }) {
|
|
12331
|
+
function EventRegistrationShell({ display, showHeading }) {
|
|
11813
12332
|
if (display.state === "registration-closed") return /* @__PURE__ */ jsx(RegistrationClosedState, {
|
|
11814
12333
|
title: display.titleText,
|
|
11815
12334
|
body: display.bodyText
|
|
@@ -11831,32 +12350,9 @@ function EventRegistrationShell({ display }) {
|
|
|
11831
12350
|
totalSteps: display.stepLabels.length,
|
|
11832
12351
|
stepLabels: [...display.stepLabels]
|
|
11833
12352
|
})
|
|
11834
|
-
}), /* @__PURE__ */
|
|
11835
|
-
|
|
11836
|
-
|
|
11837
|
-
/* @__PURE__ */ jsx("p", {
|
|
11838
|
-
className: "er-registration-shell__eyebrow",
|
|
11839
|
-
children: "Registration"
|
|
11840
|
-
}),
|
|
11841
|
-
/* @__PURE__ */ jsx("h3", {
|
|
11842
|
-
className: "er-title er-registration-shell__title",
|
|
11843
|
-
children: display.titleText
|
|
11844
|
-
}),
|
|
11845
|
-
/* @__PURE__ */ jsx("p", {
|
|
11846
|
-
className: "er-text er-text--muted er-registration-shell__copy",
|
|
11847
|
-
children: display.bodyText
|
|
11848
|
-
})
|
|
11849
|
-
] }), /* @__PURE__ */ jsxs("div", {
|
|
11850
|
-
className: "er-event-grid er-registration-shell__cards",
|
|
11851
|
-
"aria-hidden": "true",
|
|
11852
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
11853
|
-
className: "er-event-card er-registration-shell__card",
|
|
11854
|
-
children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--lg er-registration-shell__line er-registration-shell__line--lg" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--sm er-registration-shell__line er-registration-shell__line--sm" })]
|
|
11855
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
11856
|
-
className: "er-event-card er-registration-shell__card",
|
|
11857
|
-
children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--md er-registration-shell__line er-registration-shell__line--md" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--xs er-registration-shell__line er-registration-shell__line--xs" })]
|
|
11858
|
-
})]
|
|
11859
|
-
})]
|
|
12353
|
+
}), /* @__PURE__ */ jsx(RegistrationShellBody, {
|
|
12354
|
+
display,
|
|
12355
|
+
showHeading
|
|
11860
12356
|
})]
|
|
11861
12357
|
}), /* @__PURE__ */ jsx("div", {
|
|
11862
12358
|
className: "er-payment-layout-footer",
|
|
@@ -11875,6 +12371,32 @@ function EventRegistrationShell({ display }) {
|
|
|
11875
12371
|
})
|
|
11876
12372
|
});
|
|
11877
12373
|
}
|
|
12374
|
+
/** Copy and skeleton cards for the first step, before its island is ready. */
|
|
12375
|
+
function RegistrationShellBody({ display, showHeading }) {
|
|
12376
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
12377
|
+
className: "rb-reg-stack er-stack",
|
|
12378
|
+
children: [/* @__PURE__ */ jsxs("div", { children: [showHeading ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("p", {
|
|
12379
|
+
className: "er-registration-shell__eyebrow",
|
|
12380
|
+
children: "Registration"
|
|
12381
|
+
}), /* @__PURE__ */ jsx("h3", {
|
|
12382
|
+
className: "er-title er-registration-shell__title",
|
|
12383
|
+
children: display.titleText
|
|
12384
|
+
})] }) : null, /* @__PURE__ */ jsx("p", {
|
|
12385
|
+
className: "er-text er-text--muted er-registration-shell__copy",
|
|
12386
|
+
children: display.bodyText
|
|
12387
|
+
})] }), /* @__PURE__ */ jsxs("div", {
|
|
12388
|
+
className: "er-event-grid er-registration-shell__cards",
|
|
12389
|
+
"aria-hidden": "true",
|
|
12390
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
12391
|
+
className: "er-event-card er-registration-shell__card",
|
|
12392
|
+
children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--lg er-registration-shell__line er-registration-shell__line--lg" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--sm er-registration-shell__line er-registration-shell__line--sm" })]
|
|
12393
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
12394
|
+
className: "er-event-card er-registration-shell__card",
|
|
12395
|
+
children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--md er-registration-shell__line er-registration-shell__line--md" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--xs er-registration-shell__line er-registration-shell__line--xs" })]
|
|
12396
|
+
})]
|
|
12397
|
+
})]
|
|
12398
|
+
});
|
|
12399
|
+
}
|
|
11878
12400
|
//#endregion
|
|
11879
12401
|
//#region ../blocks/src/system/runtime/shared/components/ProtectedSubmitButton.tsx
|
|
11880
12402
|
/** Verification readiness is decided here, never recomputed by individual forms. */
|
|
@@ -12550,9 +13072,11 @@ typedObjectKeys(runtimeBackedBlockServerEntries);
|
|
|
12550
13072
|
//#region ../blocks/src/system/runtime/components/registry.server.ts
|
|
12551
13073
|
const serverComponentRegistry = {
|
|
12552
13074
|
div: DivNode,
|
|
13075
|
+
dl: DescriptionListNode,
|
|
12553
13076
|
figure: FigureNode,
|
|
12554
13077
|
figcaption: FigcaptionNode,
|
|
12555
13078
|
ol: OrderedListNode,
|
|
13079
|
+
ul: UnorderedListNode,
|
|
12556
13080
|
li: ListItemNode,
|
|
12557
13081
|
svg: SvgNode,
|
|
12558
13082
|
section: SectionNode,
|
|
@@ -14443,7 +14967,7 @@ function hydrateResolvedBookingConsentValue(value, context) {
|
|
|
14443
14967
|
return hydratedEntries.every(([key, entry]) => entry === value[key]) ? value : Object.fromEntries(hydratedEntries);
|
|
14444
14968
|
}
|
|
14445
14969
|
function isBookingConsentCarrier(value) {
|
|
14446
|
-
return
|
|
14970
|
+
return z.safeParse(bookingConsentCarrierSchema, value).success;
|
|
14447
14971
|
}
|
|
14448
14972
|
function hydrateValue(value, context) {
|
|
14449
14973
|
try {
|
|
@@ -14571,16 +15095,30 @@ function preparePageRenderEntries(input, previous = null) {
|
|
|
14571
15095
|
const entries = prepared.map(([, value]) => value);
|
|
14572
15096
|
const constructionFailures = entries.filter((candidate) => candidate.prepared.kind === "render-threw").map((candidate) => candidate.entry);
|
|
14573
15097
|
const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw" && candidate.prepared.kind !== "unresolved-location");
|
|
15098
|
+
const surviving = new Set(survivors);
|
|
15099
|
+
const survivingByEntry = new Map(prepared.filter(([, candidate]) => surviving.has(candidate)));
|
|
15100
|
+
const regions = {
|
|
15101
|
+
main: survivingPreparedRegion(input.plan.regions.main, survivingByEntry),
|
|
15102
|
+
aside: survivingPreparedRegion(input.plan.regions.aside, survivingByEntry)
|
|
15103
|
+
};
|
|
14574
15104
|
return {
|
|
14575
15105
|
input,
|
|
14576
15106
|
byEntry: new Map(prepared),
|
|
14577
15107
|
preparation: {
|
|
15108
|
+
regions,
|
|
14578
15109
|
entries: survivors,
|
|
14579
15110
|
constructionFailures,
|
|
14580
|
-
joins: composeSurvivorJoins(input.plan,
|
|
15111
|
+
joins: composeSurvivorJoins(input.plan, regions.main, input.themeResources)
|
|
14581
15112
|
}
|
|
14582
15113
|
};
|
|
14583
15114
|
}
|
|
15115
|
+
/** Placement comes from the plan; preparation only removes entries that cannot render. */
|
|
15116
|
+
function survivingPreparedRegion(entries, survivors) {
|
|
15117
|
+
return entries.flatMap((entry) => {
|
|
15118
|
+
const prepared = survivors.get(entry);
|
|
15119
|
+
return prepared ? [prepared] : [];
|
|
15120
|
+
});
|
|
15121
|
+
}
|
|
14584
15122
|
/** Admission always sees current loader provenance, even when block preparation can be reused. */
|
|
14585
15123
|
function preparationAdmission(input) {
|
|
14586
15124
|
const facts = readinessFactsFromLoaders("published", {
|
|
@@ -14644,7 +15182,7 @@ function composeSurvivorJoins(plan, survivors, themeResources) {
|
|
|
14644
15182
|
return composePageJoins({
|
|
14645
15183
|
joins: retargetJoinsAcrossOmissions({
|
|
14646
15184
|
joins: plan.runtimeJoins,
|
|
14647
|
-
originalBlocks: plan.
|
|
15185
|
+
originalBlocks: plan.regions.main.map((planned) => planned.block),
|
|
14648
15186
|
survivingBlocks: new Set(survivors.map((survivor) => survivor.entry.block))
|
|
14649
15187
|
}),
|
|
14650
15188
|
survivors: survivors.map(({ entry }) => ({
|
|
@@ -14767,12 +15305,13 @@ function blockSessionProps(dataContext) {
|
|
|
14767
15305
|
}
|
|
14768
15306
|
/** What this render is *about* — the entry, occurrence or surface in scope. */
|
|
14769
15307
|
function blockSubjectProps(dataContext) {
|
|
15308
|
+
const { occurrenceContext = null, entrySubrouteContext = null, contentEntry = null, pageSurface = null, subject = null } = dataContext ?? {};
|
|
14770
15309
|
return {
|
|
14771
|
-
occurrenceContext
|
|
14772
|
-
entrySubrouteContext
|
|
14773
|
-
contentEntry
|
|
14774
|
-
pageSurface
|
|
14775
|
-
subject
|
|
15310
|
+
occurrenceContext,
|
|
15311
|
+
entrySubrouteContext,
|
|
15312
|
+
contentEntry,
|
|
15313
|
+
pageSurface,
|
|
15314
|
+
subject
|
|
14776
15315
|
};
|
|
14777
15316
|
}
|
|
14778
15317
|
function arrangementResolvedData(kind, content, data) {
|
|
@@ -14988,18 +15527,33 @@ function PageRendererCore(props) {
|
|
|
14988
15527
|
function renderPreparedPage(props, preparation, themeResources, imageResolveContext) {
|
|
14989
15528
|
const resolvedRegistry = props.registry ?? getDefaultComponentRegistry();
|
|
14990
15529
|
const joinSlots = joinSlotsByPair(preparation.joins);
|
|
14991
|
-
|
|
15530
|
+
const renderRegion = (entries, joins) => entries.map((entry, index) => renderGuardedPlanEntry({
|
|
14992
15531
|
entry,
|
|
14993
15532
|
index,
|
|
14994
|
-
entries
|
|
15533
|
+
entries,
|
|
14995
15534
|
props,
|
|
14996
15535
|
themeResources,
|
|
14997
15536
|
imageResolveContext,
|
|
14998
15537
|
resolvedRegistry,
|
|
14999
|
-
joinSlots,
|
|
15538
|
+
joinSlots: joins,
|
|
15000
15539
|
wrapBlock: props.wrapBlock,
|
|
15001
15540
|
renderJoin: props.renderJoin
|
|
15002
|
-
}))
|
|
15541
|
+
}));
|
|
15542
|
+
const { main, aside } = preparation.regions;
|
|
15543
|
+
if (aside.length === 0) return /* @__PURE__ */ jsx("div", { children: renderRegion(main, joinSlots) });
|
|
15544
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
15545
|
+
className: "rb-page-layout",
|
|
15546
|
+
"data-page-layout": "main-aside",
|
|
15547
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
15548
|
+
className: "rb-page-layout__main",
|
|
15549
|
+
"data-page-region": "main",
|
|
15550
|
+
children: renderRegion(main, joinSlots)
|
|
15551
|
+
}), /* @__PURE__ */ jsx("aside", {
|
|
15552
|
+
className: "rb-page-layout__aside rb-sticky-below-site-chrome",
|
|
15553
|
+
"data-page-region": "aside",
|
|
15554
|
+
children: renderRegion(aside, /* @__PURE__ */ new Map())
|
|
15555
|
+
})]
|
|
15556
|
+
});
|
|
15003
15557
|
}
|
|
15004
15558
|
/**
|
|
15005
15559
|
* The render pass's effects, kept out of both memos and run in the order the
|
|
@@ -15442,19 +15996,15 @@ function ThemeScope$1({ theme, children, themeId = "theme-default", responsiveMo
|
|
|
15442
15996
|
*/
|
|
15443
15997
|
function ResponsiveScope({ children, responsiveMode = DEFAULT_THEME_RESPONSIVE_MODE, className }) {
|
|
15444
15998
|
const responsiveScope = getResponsiveScopeSpec(responsiveMode);
|
|
15445
|
-
const
|
|
15446
|
-
const wrapperStyle = isContainerResponsive ? {
|
|
15999
|
+
const wrapperStyle = responsiveScope.kind === "container" ? {
|
|
15447
16000
|
containerType: "inline-size",
|
|
15448
16001
|
containerName: responsiveScope.containerName
|
|
15449
16002
|
} : {};
|
|
15450
|
-
return /* @__PURE__ */
|
|
16003
|
+
return /* @__PURE__ */ jsx("div", {
|
|
15451
16004
|
className: className ? `theme-scope ${className}` : "theme-scope",
|
|
15452
16005
|
style: wrapperStyle,
|
|
15453
16006
|
"data-rb-responsive-mode": responsiveScope.kind,
|
|
15454
|
-
children
|
|
15455
|
-
"data-container-responsive-overrides": true,
|
|
15456
|
-
dangerouslySetInnerHTML: { __html: escapeStyleContent(containerResponsiveThemeCss) }
|
|
15457
|
-
}), children]
|
|
16007
|
+
children
|
|
15458
16008
|
});
|
|
15459
16009
|
}
|
|
15460
16010
|
//#endregion
|
|
@@ -15586,13 +16136,10 @@ function PageRenderer(props) {
|
|
|
15586
16136
|
function EditorPageRenderer(props) {
|
|
15587
16137
|
const commonBlocksProps = toBlocksCommonProps({
|
|
15588
16138
|
...props,
|
|
15589
|
-
page: props.page && {
|
|
15590
|
-
...
|
|
15591
|
-
|
|
15592
|
-
|
|
15593
|
-
publishedPlacement: props.dataContext.previewStage === "preview" ? readSdkPreviewPublishedPlacement(block, block.kind) : null
|
|
15594
|
-
}))
|
|
15595
|
-
}
|
|
16139
|
+
page: props.page && mapOutlineBlocks(props.page, (block) => ({
|
|
16140
|
+
...block,
|
|
16141
|
+
publishedPlacement: props.dataContext.previewStage === "preview" ? readSdkPreviewPublishedPlacement(block, block.kind) : null
|
|
16142
|
+
}))
|
|
15596
16143
|
});
|
|
15597
16144
|
const blocksProps = isOverrideOnlyEditorPageRenderer(props) ? {
|
|
15598
16145
|
...commonBlocksProps,
|
|
@@ -15760,7 +16307,7 @@ function PageContent(props) {
|
|
|
15760
16307
|
function buildPageRendererProps(props) {
|
|
15761
16308
|
return {
|
|
15762
16309
|
page: props.page,
|
|
15763
|
-
runtimeJoins: props.runtimeJoins,
|
|
16310
|
+
runtimeJoins: props.runtimeJoins ?? props.page.runtimeJoins,
|
|
15764
16311
|
dataContext: buildPageDataContext(props),
|
|
15765
16312
|
routeMap: props.routeMap,
|
|
15766
16313
|
wrapBlock: props.wrapBlock,
|