@riverbankcms/sdk 0.170.0 → 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-B2i5CY_X.d.ts → BlocksIslandsHydrator-xuFmD41p.d.ts} +1 -1
- package/dist/_dts/{Page-BSZjbeRK.d.ts → Page-4fzXy8H9.d.ts} +13 -11
- package/dist/_dts/{SdkPreviewMode-BZpPBMcu.d.ts → SdkPreviewMode-BlHgMsc8.d.ts} +4 -3
- package/dist/_dts/{client-x82SZgwK.d.ts → client-BPoU758C.d.ts} +32 -1
- package/dist/_dts/{content-types-CODkxsZy.d.ts → content-types-TnkhoSls.d.ts} +3 -3
- package/dist/_dts/{contracts-Lyfhmbjf.d.ts → contracts-7wrMA79U.d.ts} +5 -3
- package/dist/_dts/{footerPageOutline-BShG2GAV.d.ts → footerPageOutline-DaOsPQ_Q.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-DLhUW3xK.d.ts → generatePageMetadata-D9aDEzKK.d.ts} +2 -2
- package/dist/_dts/{index-BisbMZTW.d.ts → index-585vn6qb.d.ts} +72 -36
- package/dist/_dts/{index-B7Mq5M6P.d.ts → index-CZKSUcDs.d.ts} +4 -4
- package/dist/_dts/{index-B82pqQAC.d.ts → index-Cbw0IiY7.d.ts} +2 -2
- package/dist/_dts/{index-DXc_ewhR.d.ts → index-ChNbrcgD.d.ts} +1 -1
- package/dist/_dts/{index-C3rMEJ5a.d.ts → index-DDKJfaLY.d.ts} +2 -2
- package/dist/_dts/{index-CCugONHM.d.ts → index-DNCDENic.d.ts} +1 -1
- package/dist/_dts/{index-CstY6ZMa.d.ts → index-W9R3Bnf2.d.ts} +3 -3
- package/dist/_dts/{loadContent-BoqtbbhP.d.ts → loadContent-DPyNAJym.d.ts} +7 -7
- package/dist/_dts/{request-CJ_ClHLv.d.ts → request-jXTRN1Y4.d.ts} +3554 -1370
- package/dist/_dts/{resolveBlockData-DFExYkJ4.d.ts → resolveBlockData-BbvE-gsZ.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-D-WvpC_d.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-CbjK5ZLy.d.ts → types-BXuVxDYo.d.ts} +2 -2
- package/dist/_dts/{types-CpuxuS40.d.ts → types-DEAKoDNi.d.ts} +3 -3
- package/dist/_dts/{types-990t4t99.d.ts → types-kWvBwYK6.d.ts} +7 -7
- package/dist/_dts/{validation-BN95LiS0.d.ts → validation-BAO0_ntM.d.ts} +17 -17
- package/dist/client/{BlocksIslandsHydrator-B1Tkg-ZW.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-CH7z2m47.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-LXUHJEi7.mjs → EventCalendar.client-kh7mkYnW.mjs} +9 -9
- package/dist/client/{EventCombined.client-DpugEJLB.mjs → EventCombined.client-DXD5i0Ar.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-Cf-HRHtb.mjs → EventEmbeddedCheckoutStep-DKKRCuta.mjs} +1 -1
- package/dist/client/{EventItem-gFuZn-dE.mjs → EventItem-BnwcoFQN.mjs} +10 -7
- package/dist/client/{EventListWeekNavigation-D-kLg1jQ.mjs → EventListWeekNavigation-DuG6z02f.mjs} +1 -1
- package/dist/client/{EventListing.client-BNACUaxV.mjs → EventListing.client-18yfHrcr.mjs} +3 -3
- package/dist/client/{EventListing.view-CtVfe3VG.mjs → EventListing.view-BM7rTVSL.mjs} +42 -396
- 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-PW4Ojv9r.mjs → Page-DH2sm4Cf.mjs} +2696 -2426
- 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-wlRXnOjO.mjs → cart-BozMM5NK.mjs} +3 -3
- package/dist/client/{cart.client-CfpnxTUZ.mjs → cart.client-CqOOxPbW.mjs} +1 -1
- package/dist/client/{checkout-Dnu9W8IA.mjs → checkout-CTWF5nbB.mjs} +3 -3
- package/dist/client/{checkout.client-ovtyXyn0.mjs → checkout.client-CpqxN8e0.mjs} +1 -1
- package/dist/client/{checkoutUrls-CY8qywXl.mjs → checkoutUrls-Ccg6yfjq.mjs} +1 -1
- package/dist/client/client.mjs +640 -218
- 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-B4VbblGN.mjs → eventCalendar-C5Bh2L8L.mjs} +4 -4
- package/dist/client/{eventCombined-e2AvbA0u.mjs → eventCombined-dELKxxIe.mjs} +4 -4
- package/dist/client/{eventDetails-DIJYMzVg.mjs → eventDetails-Do9D_fJ_.mjs} +2 -2
- package/dist/client/{eventListing-C0bpAR1t.mjs → eventListing-B2HTUWLq.mjs} +4 -4
- package/dist/client/{eventRegistration-DyseP_sY.mjs → eventRegistration-ByOJnqGc.mjs} +4 -4
- package/dist/client/{form-Cfl8d6qc.mjs → form-DX70QG-J.mjs} +3 -3
- 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/{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-Bn7HVbuq.mjs → newsletterForm-D1MHoPbh.mjs} +3 -3
- 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-BXeLqkCE.mjs → product-detail.client-DOQ7El1d.mjs} +1 -1
- package/dist/client/{product-list.client-C627X8DQ.mjs → product-list.client-CmxOZbzL.mjs} +1 -1
- package/dist/client/{productDetail-B-K_hd7Y.mjs → productDetail-BN3zv5sa.mjs} +3 -3
- package/dist/client/{productList-BNZAsfaP.mjs → productList-GN_Id4bF.mjs} +3 -3
- package/dist/client/{propsDecoder-Dc8j5i79.mjs → propsDecoder-BdmzM3D5.mjs} +8 -4
- package/dist/client/{registry.server-CBg2M6Uj.mjs → registry.server-BOyra8CA.mjs} +1015 -926
- package/dist/client/rendering/client.mjs +57 -32
- 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-PgmiVKSV.mjs → shop-LjBLDBqF.mjs} +3 -3
- package/dist/client/{shop-commerce-DkgvZAQS.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-DDFRt6OU.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-GsDrJxxw.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-DGl4Jeuz.mjs → useEventPagination-BpC7-ksE.mjs} +7 -7
- package/dist/client/{view-oToSpu1N.mjs → view-BxeiAL3c.mjs} +121 -28
- package/dist/client/{view-CgComegl.mjs → view-ShYH3WXh.mjs} +3 -3
- package/dist/preview-next/before-render.mjs +33 -13
- 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-DJQrgD5f.mjs → PageSectionToolbar-DsSqwrMS.mjs} +392 -11
- package/dist/preview-next/client/{PreviewEditorSidebar-DWU6X6Y-.mjs → PreviewEditorSidebar-BEEWzXnU.mjs} +3264 -3199
- package/dist/preview-next/client/{PreviewEditorUI-C-X0ptC3.mjs → PreviewEditorUI-C86Out4V.mjs} +5 -6
- package/dist/preview-next/client/{PreviewShell-C1WUNsj9.mjs → PreviewShell-CBWYjBvQ.mjs} +20 -10
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Cs2QFT7k.mjs → SdkPreviewModeRuntime-o-mVqWLx.mjs} +88 -394
- package/dist/preview-next/client/{SiteChromeCustomizeButton-CcZ_ERvZ.mjs → SiteChromeCustomizeButton-H_ciMNHA.mjs} +1155 -330
- 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-CSs9S8wr.mjs → previewAssistantSlot-CuOcsG_N.mjs} +3558 -2230
- package/dist/preview-next/client/{previewChromeRoot-B2OTurZH.mjs → previewChromeRoot-DPeV7KaP.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CBIwYDyi.mjs → sdk-runtime-zTTFZ4MM.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus-DoWvGNPA.mjs → useAutosaveStatus-DNA1Q4L1.mjs} +2 -2
- package/dist/preview-next/client/{useBlockCustomizeControls-WOs8Atje.mjs → useOpenBlockForSetup-BdnMlHC6.mjs} +28 -3
- package/dist/preview-next/container-responsive.css +43 -0
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BLYaenrK.mjs → route-contract-CtSgU8UZ.mjs} +547 -188
- package/dist/server/{Block.shared-Dx4j9CJT.mjs → Block.shared-ifgaBglp.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-B0IfeNNZ.mjs → ThemeScopeCore-DGDOH6OU.mjs} +3 -3
- 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-Djjv-NuA.mjs → client-ngWuFsmN.mjs} +638 -216
- 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-QXSdPSYY.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-CMNx5tQg.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-Bv6NbFeM.mjs → pageRenderPlan-DFv3h4Ib.mjs} +306 -287
- package/dist/server/{pageRuntimeSupport-B2laBtff.mjs → pageRuntimeSupport-yHaRNWMj.mjs} +48 -35
- package/dist/server/{pageShared-CE9EBNSH.mjs → pageShared-CAZD0LcY.mjs} +848 -315
- package/dist/server/parseThemeForPersistence-Dl7LIBJq.mjs +52 -0
- package/dist/server/{prebuild-FBA6Y1K7.mjs → prebuild-BKOCND3b.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-yL2hB2l_.mjs → prefetchBlockData-GIoExi8A.mjs} +4 -3
- package/dist/server/{registry-Djrj9gWy.mjs → registry-BogXzcOD.mjs} +4000 -1989
- 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-CyeIjmqx.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-Dh8htd6l.mjs → validation-vSBCWU3w.mjs} +9 -9
- package/dist/server/{version-LMwnoksN.mjs → version-Cw5vFmUY.mjs} +1 -1
- package/dist/styles/index.css +408 -10
- package/package.json +1 -1
- package/dist/client/StepIndicator-CR7_0yu4.mjs +0 -432
- package/dist/preview-next/client/useOpenBlockForSetup-CipKCK2O.mjs +0 -28
- package/dist/server/bindings-C1-MNwwS.mjs +0 -257
- package/dist/server/headerVariant-8O5MvxIU.mjs +0 -464
- package/dist/server/loadContent-DhraQ_Fi.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 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-
|
|
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",
|
|
@@ -5075,30 +5240,37 @@ const LegacyEventCompactRow = ({ event, buttonVariant = "primary", buttonText, s
|
|
|
5075
5240
|
className: "event-compact-row-body",
|
|
5076
5241
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
5077
5242
|
className: "event-compact-row-content",
|
|
5078
|
-
children: [
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
5086
|
-
className: "event-compact-row-meta",
|
|
5087
|
-
children: [
|
|
5088
|
-
showVenue && event.venue && /* @__PURE__ */ jsxs("span", {
|
|
5089
|
-
className: "event-compact-row-venue",
|
|
5090
|
-
children: [/* @__PURE__ */ jsx(MapPinIcon, { className: "rb-shrink-0" }), event.venue.name]
|
|
5091
|
-
}),
|
|
5092
|
-
teacherLine && /* @__PURE__ */ jsx("span", {
|
|
5093
|
-
className: "event-compact-row-teacher",
|
|
5094
|
-
children: teacherLine
|
|
5095
|
-
}),
|
|
5096
|
-
/* @__PURE__ */ jsx("span", {
|
|
5097
|
-
className: "event-compact-row-price",
|
|
5098
|
-
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
|
|
5099
5250
|
})
|
|
5100
|
-
|
|
5101
|
-
|
|
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
|
+
]
|
|
5102
5274
|
}), /* @__PURE__ */ jsxs("div", {
|
|
5103
5275
|
className: "event-compact-row-action",
|
|
5104
5276
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
@@ -5328,7 +5500,7 @@ function loaderFact(input, id, key, schema) {
|
|
|
5328
5500
|
const prefetched = input.prefetched;
|
|
5329
5501
|
if (!prefetched) return unavailableReadinessFact;
|
|
5330
5502
|
if (!prefetched.loaderSnapshot.blocks[id]?.requests[key] || prefetched.loaderFailures[id]?.[key]) return unavailableReadinessFact;
|
|
5331
|
-
const parsed =
|
|
5503
|
+
const parsed = z.safeParse(schema, prefetched.resolvedData[id]?.[key]);
|
|
5332
5504
|
return parsed.success ? loadedReadinessFact(parsed.data) : unavailableReadinessFact;
|
|
5333
5505
|
}
|
|
5334
5506
|
function mapFact(fact, project) {
|
|
@@ -5497,8 +5669,10 @@ const GridNode = (props) => /* @__PURE__ */ jsx(Grid, { ...props });
|
|
|
5497
5669
|
const DivNode = (props) => /* @__PURE__ */ jsx("div", { ...props });
|
|
5498
5670
|
const FigureNode = (props) => /* @__PURE__ */ jsx("figure", { ...props });
|
|
5499
5671
|
const OrderedListNode = (props) => /* @__PURE__ */ jsx("ol", { ...props });
|
|
5672
|
+
const UnorderedListNode = (props) => /* @__PURE__ */ jsx("ul", { ...props });
|
|
5500
5673
|
const ListItemNode = (props) => /* @__PURE__ */ jsx("li", { ...props });
|
|
5501
5674
|
const FigcaptionNode = (props) => /* @__PURE__ */ jsx("figcaption", { ...props });
|
|
5675
|
+
const DescriptionListNode = (props) => /* @__PURE__ */ jsx("dl", { ...props });
|
|
5502
5676
|
//#endregion
|
|
5503
5677
|
//#region ../blocks/src/primitives/content/components/Text.tsx
|
|
5504
5678
|
function Text({ as: Comp = "span", children, className = "", path, style, "data-slot": dataSlot, "data-surface": dataSurface, maxLength: _maxLength }) {
|
|
@@ -6799,40 +6973,6 @@ function ListGroup({ presentation, title, intro, Heading, sectionProps, children
|
|
|
6799
6973
|
}
|
|
6800
6974
|
//#endregion
|
|
6801
6975
|
//#region ../blocks/src/system/runtime/nodes/appointment-services.tsx
|
|
6802
|
-
const publicVenueSchema = z.object({
|
|
6803
|
-
name: z.string(),
|
|
6804
|
-
area: z.string().nullable()
|
|
6805
|
-
});
|
|
6806
|
-
const publicLocationSchema = z.discriminatedUnion("mode", [
|
|
6807
|
-
z.object({ mode: z.literal("online") }),
|
|
6808
|
-
z.object({
|
|
6809
|
-
mode: z.literal("in_person"),
|
|
6810
|
-
venue: publicVenueSchema.nullable()
|
|
6811
|
-
}),
|
|
6812
|
-
z.object({
|
|
6813
|
-
mode: z.literal("either"),
|
|
6814
|
-
venue: publicVenueSchema.nullable()
|
|
6815
|
-
})
|
|
6816
|
-
]);
|
|
6817
|
-
const publicPricingOptionSchema = z.object({
|
|
6818
|
-
priceAmount: z.number().finite(),
|
|
6819
|
-
isActive: z.boolean(),
|
|
6820
|
-
saleStartsAt: z.string().nullable(),
|
|
6821
|
-
saleEndsAt: z.string().nullable()
|
|
6822
|
-
});
|
|
6823
|
-
const publicPricingSchema = z.object({
|
|
6824
|
-
pricingStrategy: z.enum([
|
|
6825
|
-
"free",
|
|
6826
|
-
"single",
|
|
6827
|
-
"tiered",
|
|
6828
|
-
"sliding_scale"
|
|
6829
|
-
]),
|
|
6830
|
-
currency: z.string().min(1),
|
|
6831
|
-
singlePriceAmount: z.number().nullable(),
|
|
6832
|
-
slidingMinAmount: z.number().nullable(),
|
|
6833
|
-
slidingMaxAmount: z.number().nullable(),
|
|
6834
|
-
options: z.array(publicPricingOptionSchema).readonly()
|
|
6835
|
-
});
|
|
6836
6976
|
const publicAppointmentServiceSchema = z.object({
|
|
6837
6977
|
id: z.string().min(1),
|
|
6838
6978
|
image: runtimeMediaSchema.nullable().optional(),
|
|
@@ -6840,11 +6980,11 @@ const publicAppointmentServiceSchema = z.object({
|
|
|
6840
6980
|
title: z.string(),
|
|
6841
6981
|
description: z.string().nullable().optional(),
|
|
6842
6982
|
durationMinutes: z.number().int().positive(),
|
|
6843
|
-
pricing:
|
|
6983
|
+
pricing: publicAppointmentPricingSchema.optional(),
|
|
6844
6984
|
priceAmount: z.number().nullable(),
|
|
6845
6985
|
priceCurrency: z.string().nullable(),
|
|
6846
6986
|
onlinePaymentMode: z.enum(["session_or_package", "package_only"]).optional(),
|
|
6847
|
-
location:
|
|
6987
|
+
location: publicAppointmentLocationSchema,
|
|
6848
6988
|
categoryId: z.string().nullable().optional().transform((value) => value ?? null)
|
|
6849
6989
|
});
|
|
6850
6990
|
const publicServiceCategorySchema = z.object({
|
|
@@ -6881,65 +7021,6 @@ function readCategoryFilter(value) {
|
|
|
6881
7021
|
const trimmed = value.trim();
|
|
6882
7022
|
return trimmed.length > 0 ? trimmed : null;
|
|
6883
7023
|
}
|
|
6884
|
-
function formatAppointmentDuration(durationMinutes) {
|
|
6885
|
-
return `${durationMinutes} min`;
|
|
6886
|
-
}
|
|
6887
|
-
function formatAppointmentLocation(location) {
|
|
6888
|
-
switch (location.mode) {
|
|
6889
|
-
case "online": return "Online";
|
|
6890
|
-
case "in_person": return formatVenue(location.venue);
|
|
6891
|
-
case "either": {
|
|
6892
|
-
const venue = formatVenue(location.venue);
|
|
6893
|
-
return venue ? `${venue} or online` : "In person or online";
|
|
6894
|
-
}
|
|
6895
|
-
default: return assertNever$1(location);
|
|
6896
|
-
}
|
|
6897
|
-
}
|
|
6898
|
-
function formatVenue(venue) {
|
|
6899
|
-
if (!venue) return null;
|
|
6900
|
-
return venue.area ? `${venue.name}, ${venue.area}` : venue.name;
|
|
6901
|
-
}
|
|
6902
|
-
function formatAppointmentPrice(service) {
|
|
6903
|
-
if (service.onlinePaymentMode === "package_only") return "Book with a package";
|
|
6904
|
-
const pricing = service.pricing;
|
|
6905
|
-
if (pricing) {
|
|
6906
|
-
const display = (() => {
|
|
6907
|
-
switch (pricing.pricingStrategy) {
|
|
6908
|
-
case "free": return {
|
|
6909
|
-
kind: "free",
|
|
6910
|
-
currency: pricing.currency
|
|
6911
|
-
};
|
|
6912
|
-
case "single": return resolveExactOrFreePriceDisplay(pricing.singlePriceAmount, pricing.currency);
|
|
6913
|
-
case "tiered": return resolvePricingOptionsPriceDisplay({
|
|
6914
|
-
options: pricing.options,
|
|
6915
|
-
currency: pricing.currency,
|
|
6916
|
-
purpose: "available_now"
|
|
6917
|
-
});
|
|
6918
|
-
case "sliding_scale": return pricing.slidingMinAmount === null || pricing.slidingMaxAmount === null ? {
|
|
6919
|
-
kind: "unavailable",
|
|
6920
|
-
currency: pricing.currency
|
|
6921
|
-
} : {
|
|
6922
|
-
kind: "range",
|
|
6923
|
-
minAmount: pricing.slidingMinAmount,
|
|
6924
|
-
maxAmount: pricing.slidingMaxAmount,
|
|
6925
|
-
currency: pricing.currency
|
|
6926
|
-
};
|
|
6927
|
-
default: return assertNever$1(pricing.pricingStrategy);
|
|
6928
|
-
}
|
|
6929
|
-
})();
|
|
6930
|
-
return display.kind === "unavailable" ? null : formatBookingPriceDisplay(display, { decimals: "auto" });
|
|
6931
|
-
}
|
|
6932
|
-
return formatAmountOrFree(service.priceAmount, service.priceCurrency);
|
|
6933
|
-
}
|
|
6934
|
-
function formatAmountOrFree(amount, currency) {
|
|
6935
|
-
if (amount === null || currency === null) return null;
|
|
6936
|
-
if (amount === 0) return "Free";
|
|
6937
|
-
return formatBookingPriceDisplay({
|
|
6938
|
-
kind: "exact",
|
|
6939
|
-
amount,
|
|
6940
|
-
currency
|
|
6941
|
-
}, { decimals: "auto" });
|
|
6942
|
-
}
|
|
6943
7024
|
function buildRows(services, pathname, servicePathPrefix) {
|
|
6944
7025
|
return services.map((service) => ({
|
|
6945
7026
|
id: service.id,
|
|
@@ -7347,6 +7428,16 @@ function TeamMembersNode(props) {
|
|
|
7347
7428
|
});
|
|
7348
7429
|
}
|
|
7349
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
|
|
7350
7441
|
//#region ../blocks/src/system/runtime/nodes/booking-form.state.ts
|
|
7351
7442
|
function toTrimmedString(value) {
|
|
7352
7443
|
const trimmed = value?.trim();
|
|
@@ -7621,6 +7712,7 @@ const bookingDateContextSchema = z.object({
|
|
|
7621
7712
|
timeZone: z.string().transform(resolveBookingBusinessTimeZone)
|
|
7622
7713
|
});
|
|
7623
7714
|
const bookingSourceSchema = z.object({
|
|
7715
|
+
pageKind: bookingPageKindSchema.optional(),
|
|
7624
7716
|
dateContext: bookingDateContextSchema,
|
|
7625
7717
|
now: bookingNowSchema,
|
|
7626
7718
|
demoEmailSuppressed: z.boolean().optional(),
|
|
@@ -7657,6 +7749,7 @@ const bookingDisplaySchema = z.object({
|
|
|
7657
7749
|
});
|
|
7658
7750
|
const bookingHydrationSchema = z.object({
|
|
7659
7751
|
now: bookingNowSchema,
|
|
7752
|
+
pageKind: bookingPageKindSchema.optional(),
|
|
7660
7753
|
dateContext: bookingDateContextSchema,
|
|
7661
7754
|
demoEmailSuppressed: z.boolean().optional(),
|
|
7662
7755
|
mailingList: bookingMailingListContextSchema.optional(),
|
|
@@ -7709,6 +7802,7 @@ const bookingFormBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
7709
7802
|
return {
|
|
7710
7803
|
display: buildBookingFormDisplay(source, form),
|
|
7711
7804
|
hydration: {
|
|
7805
|
+
pageKind: source.pageKind,
|
|
7712
7806
|
now: source.now,
|
|
7713
7807
|
dateContext: source.dateContext,
|
|
7714
7808
|
demoEmailSuppressed: source.demoEmailSuppressed,
|
|
@@ -7786,48 +7880,53 @@ function BookingFormSSR({ blockId, children, ...sourceProps }) {
|
|
|
7786
7880
|
id: blockId,
|
|
7787
7881
|
attributes: { "data-block": "appointment-booking" },
|
|
7788
7882
|
value: islandProps,
|
|
7789
|
-
children: [
|
|
7790
|
-
|
|
7791
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
children: /* @__PURE__ */ jsx("
|
|
7795
|
-
className: "
|
|
7796
|
-
|
|
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
|
+
})
|
|
7797
7895
|
})
|
|
7798
|
-
})
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
|
|
7808
|
-
|
|
7809
|
-
|
|
7810
|
-
|
|
7811
|
-
|
|
7812
|
-
|
|
7813
|
-
|
|
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", {
|
|
7814
7917
|
className: "rb-reg-stack rb-reg-stack--sm",
|
|
7815
|
-
children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--
|
|
7816
|
-
})
|
|
7817
|
-
|
|
7818
|
-
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
|
|
7823
|
-
className: "rb-wizard-actions",
|
|
7824
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
7825
|
-
className: "ab-shell-button",
|
|
7826
|
-
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
|
+
})
|
|
7827
7926
|
})
|
|
7828
|
-
|
|
7829
|
-
]
|
|
7830
|
-
})
|
|
7927
|
+
]
|
|
7928
|
+
})]
|
|
7929
|
+
})
|
|
7831
7930
|
}), children]
|
|
7832
7931
|
});
|
|
7833
7932
|
}
|
|
@@ -7979,7 +8078,7 @@ function resolveSelection(input) {
|
|
|
7979
8078
|
events: input.events ?? null,
|
|
7980
8079
|
occurrenceContext: input.occurrenceContext ?? null,
|
|
7981
8080
|
subject: input.subject,
|
|
7982
|
-
nowIso: input.
|
|
8081
|
+
nowIso: input.now,
|
|
7983
8082
|
otherDatesLimit: input.otherDatesLimit
|
|
7984
8083
|
});
|
|
7985
8084
|
}
|
|
@@ -8012,6 +8111,7 @@ function resolveEventDetailsPresentation(input) {
|
|
|
8012
8111
|
return {
|
|
8013
8112
|
selection,
|
|
8014
8113
|
arrangement: input.arrangement,
|
|
8114
|
+
quickFacts: input.quickFacts,
|
|
8015
8115
|
entryTitle: input.entryTitle,
|
|
8016
8116
|
actionSize: input.actionSize,
|
|
8017
8117
|
lookSlots: input.lookSlots,
|
|
@@ -8067,8 +8167,12 @@ function lookPartShown(blockKind, field, arrangement) {
|
|
|
8067
8167
|
}
|
|
8068
8168
|
//#endregion
|
|
8069
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
|
+
}
|
|
8070
8174
|
function WholeSeriesPricingDisplay({ pricing, acceptedItems }) {
|
|
8071
|
-
const options = pricing
|
|
8175
|
+
const options = wholeSeriesPriceOptions(pricing);
|
|
8072
8176
|
return /* @__PURE__ */ jsxs("div", {
|
|
8073
8177
|
className: "rb-mt-6",
|
|
8074
8178
|
children: [
|
|
@@ -8087,7 +8191,7 @@ function WholeSeriesPricingDisplay({ pricing, acceptedItems }) {
|
|
|
8087
8191
|
className: "rb-caption status-muted",
|
|
8088
8192
|
children: option.description
|
|
8089
8193
|
}) : null] }, option.id))
|
|
8090
|
-
}) : /* @__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" }) }) }),
|
|
8091
8195
|
acceptedItems.length > 0 ? /* @__PURE__ */ jsxs("p", {
|
|
8092
8196
|
className: "rb-caption rb-mt-1",
|
|
8093
8197
|
children: ["You can also attend with: ", acceptedItems.join(", ")]
|
|
@@ -8155,7 +8259,7 @@ function EventPricingDetails({ isDropIn, wholeSeriesPricingDisplay, acceptedItem
|
|
|
8155
8259
|
className: "rb-caption rb-mt-1",
|
|
8156
8260
|
children: formatAutoApplyDiscountLine(autoApplyDiscount, eventPricingCurrency)
|
|
8157
8261
|
}) : null,
|
|
8158
|
-
eventPricingCurrency ? /* @__PURE__ */ jsx(TicketTypePriceList, {
|
|
8262
|
+
eventPricingCurrency && ticketTypes.length > 1 ? /* @__PURE__ */ jsx(TicketTypePriceList, {
|
|
8159
8263
|
ticketTypes,
|
|
8160
8264
|
currency: eventPricingCurrency
|
|
8161
8265
|
}) : null,
|
|
@@ -8466,10 +8570,10 @@ function EventDetailsView(input) {
|
|
|
8466
8570
|
});
|
|
8467
8571
|
if (props.selection.kind === "empty") return /* @__PURE__ */ jsxs("div", {
|
|
8468
8572
|
...listLookSlot(props, "layout"),
|
|
8469
|
-
children: [props.entryTitle ? /* @__PURE__ */ jsx("h1", {
|
|
8573
|
+
children: [props.entryTitle ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("h1", {
|
|
8470
8574
|
...listLookSlot(props, "headline"),
|
|
8471
8575
|
children: props.entryTitle
|
|
8472
|
-
}) : null, /* @__PURE__ */ jsx(LegacyEventDetailsView, { ...props })]
|
|
8576
|
+
}), /* @__PURE__ */ jsx(EventQuickFacts, { facts: props.quickFacts })] }) : null, /* @__PURE__ */ jsx(LegacyEventDetailsView, { ...props })]
|
|
8473
8577
|
});
|
|
8474
8578
|
return /* @__PURE__ */ jsxs("div", {
|
|
8475
8579
|
...listLookSlot(props, "layout"),
|
|
@@ -8478,16 +8582,79 @@ function EventDetailsView(input) {
|
|
|
8478
8582
|
presentation: props,
|
|
8479
8583
|
showCost: props.showCost ?? true,
|
|
8480
8584
|
showCapacity: props.showCapacity ?? false
|
|
8481
|
-
}), /* @__PURE__ */ jsx(
|
|
8482
|
-
...
|
|
8483
|
-
|
|
8484
|
-
...props,
|
|
8485
|
-
showCost: props.showCost,
|
|
8486
|
-
showCapacity: false
|
|
8487
|
-
})
|
|
8585
|
+
}), /* @__PURE__ */ jsx(EventHeaderPanel, {
|
|
8586
|
+
...props,
|
|
8587
|
+
selection: props.selection
|
|
8488
8588
|
})]
|
|
8489
8589
|
});
|
|
8490
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
|
+
}
|
|
8491
8658
|
/** Turns off the toggles the arrangement leaves out, as `lookParts` declares them. */
|
|
8492
8659
|
function withLookParts(props, arrangement) {
|
|
8493
8660
|
const shown = (field) => lookPartShown("block.event-details", field, arrangement);
|
|
@@ -8499,7 +8666,7 @@ function withLookParts(props, arrangement) {
|
|
|
8499
8666
|
}
|
|
8500
8667
|
//#endregion
|
|
8501
8668
|
//#region ../blocks/src/system/runtime/nodes/event-details.server.tsx
|
|
8502
|
-
function eventDetailsIslandValue({ props, presentation, scopedEvents, subject
|
|
8669
|
+
function eventDetailsIslandValue({ props, presentation, scopedEvents, subject }) {
|
|
8503
8670
|
return {
|
|
8504
8671
|
...props.arrangement ? {
|
|
8505
8672
|
arrangement: props.arrangement,
|
|
@@ -8509,6 +8676,7 @@ function eventDetailsIslandValue({ props, presentation, scopedEvents, subject, n
|
|
|
8509
8676
|
surfacePresentation: props.surfacePresentation,
|
|
8510
8677
|
panelHeading: props.panelHeading
|
|
8511
8678
|
} : {},
|
|
8679
|
+
quickFacts: props.quickFacts,
|
|
8512
8680
|
occurrenceContext: props.occurrenceContext ?? null,
|
|
8513
8681
|
subject,
|
|
8514
8682
|
events: scopedEvents,
|
|
@@ -8527,12 +8695,11 @@ function eventDetailsIslandValue({ props, presentation, scopedEvents, subject, n
|
|
|
8527
8695
|
siteMemberships: props.siteMemberships,
|
|
8528
8696
|
autoApplyDiscount: presentation.autoApplyDiscount,
|
|
8529
8697
|
className: props.className,
|
|
8530
|
-
|
|
8698
|
+
now: props.now
|
|
8531
8699
|
};
|
|
8532
8700
|
}
|
|
8533
8701
|
function EventDetailsSSR(props) {
|
|
8534
8702
|
const { blockId, occurrenceContext = null, subject, events = null, className, children } = props;
|
|
8535
|
-
const nowIso = props.now;
|
|
8536
8703
|
const normalizedSubject = normalizeEventRegistrationPageSurfaceSubject(subject);
|
|
8537
8704
|
const scopedEvents = events === null ? null : resolveEventRegistrationScopedEvents(events, {
|
|
8538
8705
|
occurrenceContext,
|
|
@@ -8542,8 +8709,7 @@ function EventDetailsSSR(props) {
|
|
|
8542
8709
|
...props,
|
|
8543
8710
|
events: scopedEvents,
|
|
8544
8711
|
occurrenceContext,
|
|
8545
|
-
subject: normalizedSubject
|
|
8546
|
-
nowIso
|
|
8712
|
+
subject: normalizedSubject
|
|
8547
8713
|
});
|
|
8548
8714
|
return /* @__PURE__ */ jsxs(IslandRoot, {
|
|
8549
8715
|
kind: "event-details",
|
|
@@ -8556,8 +8722,7 @@ function EventDetailsSSR(props) {
|
|
|
8556
8722
|
props,
|
|
8557
8723
|
presentation,
|
|
8558
8724
|
scopedEvents,
|
|
8559
|
-
subject: normalizedSubject
|
|
8560
|
-
nowIso
|
|
8725
|
+
subject: normalizedSubject
|
|
8561
8726
|
}),
|
|
8562
8727
|
children: [/* @__PURE__ */ jsx(EventDetailsView, {
|
|
8563
8728
|
...presentation,
|
|
@@ -9217,27 +9382,34 @@ function FeaturedOfferingSummary({ item }) {
|
|
|
9217
9382
|
if (!details) return null;
|
|
9218
9383
|
return /* @__PURE__ */ jsxs("article", {
|
|
9219
9384
|
className: "offerings-preview-summary rb-flex rb-flex-1 rb-flex-col",
|
|
9220
|
-
children: [
|
|
9221
|
-
|
|
9222
|
-
|
|
9223
|
-
|
|
9224
|
-
|
|
9225
|
-
|
|
9226
|
-
|
|
9227
|
-
children:
|
|
9228
|
-
|
|
9229
|
-
|
|
9230
|
-
|
|
9231
|
-
|
|
9232
|
-
|
|
9233
|
-
|
|
9234
|
-
|
|
9235
|
-
|
|
9236
|
-
|
|
9237
|
-
|
|
9238
|
-
|
|
9239
|
-
|
|
9240
|
-
|
|
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
|
+
]
|
|
9241
9413
|
});
|
|
9242
9414
|
}
|
|
9243
9415
|
function featuredSummaryDetails(item) {
|
|
@@ -9401,31 +9573,38 @@ function WholeSeriesRunCompactRow({ group, path, now }) {
|
|
|
9401
9573
|
}),
|
|
9402
9574
|
/* @__PURE__ */ jsxs("div", {
|
|
9403
9575
|
className: "event-compact-row-content",
|
|
9404
|
-
children: [
|
|
9405
|
-
|
|
9406
|
-
|
|
9407
|
-
|
|
9408
|
-
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
group.representative.
|
|
9412
|
-
|
|
9413
|
-
|
|
9414
|
-
|
|
9415
|
-
|
|
9416
|
-
|
|
9417
|
-
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
|
|
9426
|
-
|
|
9427
|
-
|
|
9428
|
-
|
|
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
|
+
]
|
|
9429
9608
|
}),
|
|
9430
9609
|
/* @__PURE__ */ jsxs("div", {
|
|
9431
9610
|
className: "event-compact-row-action",
|
|
@@ -9474,6 +9653,10 @@ function WholeSeriesRunFeatureCard({ group, now, path, buttonVariant, buttonText
|
|
|
9474
9653
|
path,
|
|
9475
9654
|
title: group.representative.title
|
|
9476
9655
|
}),
|
|
9656
|
+
/* @__PURE__ */ jsx(EventQuickFacts, {
|
|
9657
|
+
facts: group.representative.facts,
|
|
9658
|
+
context: "card"
|
|
9659
|
+
}),
|
|
9477
9660
|
/* @__PURE__ */ jsxs("div", {
|
|
9478
9661
|
className: "rb-mb-2 rb-caption",
|
|
9479
9662
|
children: [/* @__PURE__ */ jsx("time", { children: formattedDate }), /* @__PURE__ */ jsx("p", { children: timeRange })]
|
|
@@ -9568,6 +9751,10 @@ function RunWithoutLiveDates({ group, path }) {
|
|
|
9568
9751
|
path,
|
|
9569
9752
|
title: group.representative.title
|
|
9570
9753
|
}),
|
|
9754
|
+
/* @__PURE__ */ jsx(EventQuickFacts, {
|
|
9755
|
+
facts: group.representative.facts,
|
|
9756
|
+
context: "card"
|
|
9757
|
+
}),
|
|
9571
9758
|
/* @__PURE__ */ jsx("p", { children: "No dates available." }),
|
|
9572
9759
|
/* @__PURE__ */ jsx("span", {
|
|
9573
9760
|
className: "event-compact-row-status",
|
|
@@ -11556,6 +11743,279 @@ const EventListingSSR = (props) => {
|
|
|
11556
11743
|
});
|
|
11557
11744
|
};
|
|
11558
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
|
|
11559
12019
|
//#region ../blocks/src/system/runtime/nodes/event-registration/RegistrationClosedState.tsx
|
|
11560
12020
|
function RegistrationClosedState({ title, body }) {
|
|
11561
12021
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -11799,35 +12259,76 @@ function StepIndicator(props) {
|
|
|
11799
12259
|
* Server-safe placeholder for event registration.
|
|
11800
12260
|
* Provides a static container for island hydration without importing client hooks.
|
|
11801
12261
|
*/
|
|
11802
|
-
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 }) {
|
|
11803
12300
|
const islandProps = buildEventRegistrationInteractiveIslandProps({
|
|
11804
12301
|
...sourceProps,
|
|
11805
12302
|
eventLoaderFailures: blockId ? loaderFailures?.[blockId] : void 0,
|
|
11806
|
-
subject
|
|
12303
|
+
subject
|
|
11807
12304
|
});
|
|
11808
12305
|
const display = islandProps.render.display;
|
|
11809
|
-
const className =
|
|
12306
|
+
const className = display.className;
|
|
11810
12307
|
return /* @__PURE__ */ jsxs(IslandRoot, {
|
|
11811
12308
|
kind: "event-registration",
|
|
11812
12309
|
id: blockId,
|
|
11813
12310
|
attributes: {
|
|
11814
12311
|
className: `event-registration ${className ?? ""}`.trim(),
|
|
11815
12312
|
"data-block": "event-registration",
|
|
12313
|
+
...insidePanel ? void 0 : bookingPresentation(sourceProps.pageKind).panelAttributes,
|
|
11816
12314
|
"data-rb-island-required": "true",
|
|
11817
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.",
|
|
11818
12316
|
"data-rb-island-error-class": "event-registration__hydration-error"
|
|
11819
12317
|
},
|
|
11820
12318
|
value: islandProps,
|
|
11821
|
-
children: [display.state === "booking-card" ? /* @__PURE__ */ jsx("div", {
|
|
12319
|
+
children: [islandProps.render.hydration.admission === "recoveryOnly" ? null : display.state === "booking-card" ? /* @__PURE__ */ jsx("div", {
|
|
11822
12320
|
id: EVENT_REGISTRATION_ANCHOR_ID,
|
|
11823
12321
|
children: /* @__PURE__ */ jsx(BookingEntryCard, {
|
|
11824
12322
|
entry: display.entry,
|
|
11825
12323
|
buttonVariant: display.buttonVariant ?? "primary"
|
|
11826
12324
|
})
|
|
11827
|
-
}) : /* @__PURE__ */ jsx(EventRegistrationShell, {
|
|
12325
|
+
}) : /* @__PURE__ */ jsx(EventRegistrationShell, {
|
|
12326
|
+
display,
|
|
12327
|
+
showHeading: bookingPresentation(sourceProps.pageKind).showShellHeading
|
|
12328
|
+
}), children]
|
|
11828
12329
|
});
|
|
11829
12330
|
}
|
|
11830
|
-
function EventRegistrationShell({ display }) {
|
|
12331
|
+
function EventRegistrationShell({ display, showHeading }) {
|
|
11831
12332
|
if (display.state === "registration-closed") return /* @__PURE__ */ jsx(RegistrationClosedState, {
|
|
11832
12333
|
title: display.titleText,
|
|
11833
12334
|
body: display.bodyText
|
|
@@ -11849,32 +12350,9 @@ function EventRegistrationShell({ display }) {
|
|
|
11849
12350
|
totalSteps: display.stepLabels.length,
|
|
11850
12351
|
stepLabels: [...display.stepLabels]
|
|
11851
12352
|
})
|
|
11852
|
-
}), /* @__PURE__ */
|
|
11853
|
-
|
|
11854
|
-
|
|
11855
|
-
/* @__PURE__ */ jsx("p", {
|
|
11856
|
-
className: "er-registration-shell__eyebrow",
|
|
11857
|
-
children: "Registration"
|
|
11858
|
-
}),
|
|
11859
|
-
/* @__PURE__ */ jsx("h3", {
|
|
11860
|
-
className: "er-title er-registration-shell__title",
|
|
11861
|
-
children: display.titleText
|
|
11862
|
-
}),
|
|
11863
|
-
/* @__PURE__ */ jsx("p", {
|
|
11864
|
-
className: "er-text er-text--muted er-registration-shell__copy",
|
|
11865
|
-
children: display.bodyText
|
|
11866
|
-
})
|
|
11867
|
-
] }), /* @__PURE__ */ jsxs("div", {
|
|
11868
|
-
className: "er-event-grid er-registration-shell__cards",
|
|
11869
|
-
"aria-hidden": "true",
|
|
11870
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
11871
|
-
className: "er-event-card er-registration-shell__card",
|
|
11872
|
-
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" })]
|
|
11873
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
11874
|
-
className: "er-event-card er-registration-shell__card",
|
|
11875
|
-
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" })]
|
|
11876
|
-
})]
|
|
11877
|
-
})]
|
|
12353
|
+
}), /* @__PURE__ */ jsx(RegistrationShellBody, {
|
|
12354
|
+
display,
|
|
12355
|
+
showHeading
|
|
11878
12356
|
})]
|
|
11879
12357
|
}), /* @__PURE__ */ jsx("div", {
|
|
11880
12358
|
className: "er-payment-layout-footer",
|
|
@@ -11893,6 +12371,32 @@ function EventRegistrationShell({ display }) {
|
|
|
11893
12371
|
})
|
|
11894
12372
|
});
|
|
11895
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
|
+
}
|
|
11896
12400
|
//#endregion
|
|
11897
12401
|
//#region ../blocks/src/system/runtime/shared/components/ProtectedSubmitButton.tsx
|
|
11898
12402
|
/** Verification readiness is decided here, never recomputed by individual forms. */
|
|
@@ -12568,9 +13072,11 @@ typedObjectKeys(runtimeBackedBlockServerEntries);
|
|
|
12568
13072
|
//#region ../blocks/src/system/runtime/components/registry.server.ts
|
|
12569
13073
|
const serverComponentRegistry = {
|
|
12570
13074
|
div: DivNode,
|
|
13075
|
+
dl: DescriptionListNode,
|
|
12571
13076
|
figure: FigureNode,
|
|
12572
13077
|
figcaption: FigcaptionNode,
|
|
12573
13078
|
ol: OrderedListNode,
|
|
13079
|
+
ul: UnorderedListNode,
|
|
12574
13080
|
li: ListItemNode,
|
|
12575
13081
|
svg: SvgNode,
|
|
12576
13082
|
section: SectionNode,
|
|
@@ -14461,7 +14967,7 @@ function hydrateResolvedBookingConsentValue(value, context) {
|
|
|
14461
14967
|
return hydratedEntries.every(([key, entry]) => entry === value[key]) ? value : Object.fromEntries(hydratedEntries);
|
|
14462
14968
|
}
|
|
14463
14969
|
function isBookingConsentCarrier(value) {
|
|
14464
|
-
return
|
|
14970
|
+
return z.safeParse(bookingConsentCarrierSchema, value).success;
|
|
14465
14971
|
}
|
|
14466
14972
|
function hydrateValue(value, context) {
|
|
14467
14973
|
try {
|
|
@@ -14589,16 +15095,30 @@ function preparePageRenderEntries(input, previous = null) {
|
|
|
14589
15095
|
const entries = prepared.map(([, value]) => value);
|
|
14590
15096
|
const constructionFailures = entries.filter((candidate) => candidate.prepared.kind === "render-threw").map((candidate) => candidate.entry);
|
|
14591
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
|
+
};
|
|
14592
15104
|
return {
|
|
14593
15105
|
input,
|
|
14594
15106
|
byEntry: new Map(prepared),
|
|
14595
15107
|
preparation: {
|
|
15108
|
+
regions,
|
|
14596
15109
|
entries: survivors,
|
|
14597
15110
|
constructionFailures,
|
|
14598
|
-
joins: composeSurvivorJoins(input.plan,
|
|
15111
|
+
joins: composeSurvivorJoins(input.plan, regions.main, input.themeResources)
|
|
14599
15112
|
}
|
|
14600
15113
|
};
|
|
14601
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
|
+
}
|
|
14602
15122
|
/** Admission always sees current loader provenance, even when block preparation can be reused. */
|
|
14603
15123
|
function preparationAdmission(input) {
|
|
14604
15124
|
const facts = readinessFactsFromLoaders("published", {
|
|
@@ -14662,7 +15182,7 @@ function composeSurvivorJoins(plan, survivors, themeResources) {
|
|
|
14662
15182
|
return composePageJoins({
|
|
14663
15183
|
joins: retargetJoinsAcrossOmissions({
|
|
14664
15184
|
joins: plan.runtimeJoins,
|
|
14665
|
-
originalBlocks: plan.
|
|
15185
|
+
originalBlocks: plan.regions.main.map((planned) => planned.block),
|
|
14666
15186
|
survivingBlocks: new Set(survivors.map((survivor) => survivor.entry.block))
|
|
14667
15187
|
}),
|
|
14668
15188
|
survivors: survivors.map(({ entry }) => ({
|
|
@@ -14785,12 +15305,13 @@ function blockSessionProps(dataContext) {
|
|
|
14785
15305
|
}
|
|
14786
15306
|
/** What this render is *about* — the entry, occurrence or surface in scope. */
|
|
14787
15307
|
function blockSubjectProps(dataContext) {
|
|
15308
|
+
const { occurrenceContext = null, entrySubrouteContext = null, contentEntry = null, pageSurface = null, subject = null } = dataContext ?? {};
|
|
14788
15309
|
return {
|
|
14789
|
-
occurrenceContext
|
|
14790
|
-
entrySubrouteContext
|
|
14791
|
-
contentEntry
|
|
14792
|
-
pageSurface
|
|
14793
|
-
subject
|
|
15310
|
+
occurrenceContext,
|
|
15311
|
+
entrySubrouteContext,
|
|
15312
|
+
contentEntry,
|
|
15313
|
+
pageSurface,
|
|
15314
|
+
subject
|
|
14794
15315
|
};
|
|
14795
15316
|
}
|
|
14796
15317
|
function arrangementResolvedData(kind, content, data) {
|
|
@@ -15006,18 +15527,33 @@ function PageRendererCore(props) {
|
|
|
15006
15527
|
function renderPreparedPage(props, preparation, themeResources, imageResolveContext) {
|
|
15007
15528
|
const resolvedRegistry = props.registry ?? getDefaultComponentRegistry();
|
|
15008
15529
|
const joinSlots = joinSlotsByPair(preparation.joins);
|
|
15009
|
-
|
|
15530
|
+
const renderRegion = (entries, joins) => entries.map((entry, index) => renderGuardedPlanEntry({
|
|
15010
15531
|
entry,
|
|
15011
15532
|
index,
|
|
15012
|
-
entries
|
|
15533
|
+
entries,
|
|
15013
15534
|
props,
|
|
15014
15535
|
themeResources,
|
|
15015
15536
|
imageResolveContext,
|
|
15016
15537
|
resolvedRegistry,
|
|
15017
|
-
joinSlots,
|
|
15538
|
+
joinSlots: joins,
|
|
15018
15539
|
wrapBlock: props.wrapBlock,
|
|
15019
15540
|
renderJoin: props.renderJoin
|
|
15020
|
-
}))
|
|
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
|
+
});
|
|
15021
15557
|
}
|
|
15022
15558
|
/**
|
|
15023
15559
|
* The render pass's effects, kept out of both memos and run in the order the
|
|
@@ -15600,13 +16136,10 @@ function PageRenderer(props) {
|
|
|
15600
16136
|
function EditorPageRenderer(props) {
|
|
15601
16137
|
const commonBlocksProps = toBlocksCommonProps({
|
|
15602
16138
|
...props,
|
|
15603
|
-
page: props.page && {
|
|
15604
|
-
...
|
|
15605
|
-
|
|
15606
|
-
|
|
15607
|
-
publishedPlacement: props.dataContext.previewStage === "preview" ? readSdkPreviewPublishedPlacement(block, block.kind) : null
|
|
15608
|
-
}))
|
|
15609
|
-
}
|
|
16139
|
+
page: props.page && mapOutlineBlocks(props.page, (block) => ({
|
|
16140
|
+
...block,
|
|
16141
|
+
publishedPlacement: props.dataContext.previewStage === "preview" ? readSdkPreviewPublishedPlacement(block, block.kind) : null
|
|
16142
|
+
}))
|
|
15610
16143
|
});
|
|
15611
16144
|
const blocksProps = isOverrideOnlyEditorPageRenderer(props) ? {
|
|
15612
16145
|
...commonBlocksProps,
|
|
@@ -15774,7 +16307,7 @@ function PageContent(props) {
|
|
|
15774
16307
|
function buildPageRendererProps(props) {
|
|
15775
16308
|
return {
|
|
15776
16309
|
page: props.page,
|
|
15777
|
-
runtimeJoins: props.runtimeJoins,
|
|
16310
|
+
runtimeJoins: props.runtimeJoins ?? props.page.runtimeJoins,
|
|
15778
16311
|
dataContext: buildPageDataContext(props),
|
|
15779
16312
|
routeMap: props.routeMap,
|
|
15780
16313
|
wrapBlock: props.wrapBlock,
|