@riverbankcms/sdk 0.180.0 → 0.182.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-DC_AvZwy.d.ts → BlocksIslandsHydrator-Bvw2bUif.d.ts} +1 -1
- package/dist/_dts/{Page-DQOxVtp3.d.ts → Page-B2EAT-bE.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DrLgY9_f.d.ts → SdkPreviewMode-D0vww6rh.d.ts} +2 -2
- package/dist/_dts/{client-BP7VBRvs.d.ts → client-D6T430bk.d.ts} +56 -70
- package/dist/_dts/{content-types-1-K2qi__.d.ts → content-types-wZVWccC6.d.ts} +2 -2
- package/dist/_dts/{contracts-Dfqz0Tcu.d.ts → contracts-B-vtOcr8.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-CSfAqmry.d.ts → generatePageMetadata-CxfwHE6z.d.ts} +2 -2
- package/dist/_dts/{index-BeM5Ylwf.d.ts → index-CEyYMhLJ.d.ts} +1 -2
- package/dist/_dts/{index-DQr358-m.d.ts → index-CQrb3Ccc.d.ts} +8 -8
- package/dist/_dts/{index-DCcxLa8p.d.ts → index-CciRW_w1.d.ts} +2 -2
- package/dist/_dts/{index-Blrw2oVk.d.ts → index-Cqxis-nv.d.ts} +1 -1
- package/dist/_dts/{index-CB5Csefo.d.ts → index-DIU-wL1M.d.ts} +2 -2
- package/dist/_dts/{index-DQBGwBPx.d.ts → index-DqPKdeTk.d.ts} +1 -1
- package/dist/_dts/{loadContent-BG2tLGXj.d.ts → loadContent-D0wrxiSp.d.ts} +7 -7
- package/dist/_dts/{request-P08l6mkr.d.ts → request-DEwxUSw8.d.ts} +2375 -883
- package/dist/_dts/{resolveBlockData-BDHc8lFs.d.ts → resolveBlockData-VaG_MYbN.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-Y3IZBbtL.d.ts → resolvePageContent-DTwklC_v.d.ts} +1 -1
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -2
- package/dist/_dts/sdk/src/index.d.ts +104 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +83 -52
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +43 -56
- package/dist/_dts/sdk/src/portal/index.d.ts +3 -18
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{serviceBookingOutline-BvtNagjw.d.ts → serviceBookingOutline-DtQuFlID.d.ts} +6 -6
- package/dist/_dts/{types-DpEAnP4F.d.ts → types-B3RjeBLV.d.ts} +2 -2
- package/dist/_dts/{types-HAy1-Jjo.d.ts → types-BvUSGQrw.d.ts} +3 -3
- package/dist/_dts/{types-BrK6SS5c.d.ts → types-CkRFtBqd.d.ts} +7 -7
- package/dist/_dts/{validation-D6q3tOBA.d.ts → validation-BZA3DhcV.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DJSmdNUJ.mjs → BlocksIslandsHydrator-CQMf0HdN.mjs} +19 -19
- package/dist/client/{BookingMailingListNote-CGxg37zx.mjs → BookingMailingListNote-7kdvuPow.mjs} +93 -18
- package/dist/client/{BookingQuestionFields-DXegGSnS.mjs → BookingQuestionFields-BJI7mZuV.mjs} +7 -87
- package/dist/client/CalendarAction-D_Glwvz2.mjs +105 -0
- package/dist/client/{CalendarNavigationChevron-VfP50sYm.mjs → CalendarNavigationChevron-DPUD6wjy.mjs} +8 -8
- package/dist/client/{CheckboxChoice-BZPLCgTU.mjs → CheckboxChoice-C8i4NraK.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-0Ua44F1j.mjs → DemoBookingPortalAccess-8kwNF9HN.mjs} +9 -6
- package/dist/client/{EventCalendar.client-CrpiyDSP.mjs → EventCalendar.client-Dhb14bcC.mjs} +10 -10
- package/dist/client/{EventCombined.client-D0me9wnz.mjs → EventCombined.client-C1jEZBN9.mjs} +60 -10
- package/dist/client/{EventEmbeddedCheckoutStep-BDnicDM6.mjs → EventEmbeddedCheckoutStep-BGkbUhuw.mjs} +1 -1
- package/dist/client/{EventItem-CJITrGkF.mjs → EventItem-Bb0ppG2N.mjs} +9 -177
- package/dist/client/{EventListWeekNavigation-BlEm_xjq.mjs → EventListWeekNavigation-DMryCaNV.mjs} +1 -1
- package/dist/client/{EventListing.client-BNM_HuS0.mjs → EventListing.client-BuH5kKA3.mjs} +3 -3
- package/dist/client/{EventListing.view-CXfb7RRy.mjs → EventListing.view-DsqvuulZ.mjs} +8 -8
- package/dist/client/{EventRegistrationPayment-DiD9uYs6.mjs → EventRegistrationPayment-D4FvQSFF.mjs} +555 -502
- package/dist/client/{Page-bX7iy_MK.mjs → Page-sV6BJkXX.mjs} +550 -339
- package/dist/client/{ProtectedSubmitButton-De6AzhE6.mjs → ProtectedSubmitButton-BNnKuir8.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-BAdW5DvE.mjs → SiteTermsAgreementField-VfSd6JU-.mjs} +7 -11
- package/dist/client/{StepIndicator-DCfdcb7s.mjs → StepIndicator-B6o5B7g3.mjs} +1 -1
- package/dist/client/{StepIndicator-DCqorVne.mjs → StepIndicator-BTqO7cJl.mjs} +235 -26
- package/dist/client/{ThemedButton-CnSa7o-I.mjs → ThemedButton-PFOhXktM.mjs} +1 -33
- package/dist/client/{accessibleSurfaces-Wl8-_OVJ.mjs → accessibleSurfaces-BogaGutk.mjs} +983 -634
- package/dist/client/{accordion-wofJY8xY.mjs → accordion-6cuswD_s.mjs} +1 -1
- package/dist/client/{booking-form.client-CYl9NrqS.mjs → booking-form.client-BOMe_SKi.mjs} +52 -29
- package/dist/client/bookingCalendar--aWnqFDn.mjs +180 -0
- package/dist/client/{bookingForm-kgVWtuMe.mjs → bookingForm-DSCH-VHo.mjs} +4 -4
- package/dist/client/bookings.mjs +17 -11
- package/dist/client/{boxStyleClassNames-CQHWz5gJ.mjs → boxStyleClassNames-BFuqZCfz.mjs} +2 -2
- package/dist/client/{carousel-BE1dEFsD.mjs → carousel-CGyQVV1M.mjs} +2 -2
- package/dist/client/{carousel.client-DMtGYTTM.mjs → carousel.client-BtLwHefX.mjs} +1 -1
- package/dist/client/{cart-BsjsdGZE.mjs → cart-BYOe7MCh.mjs} +3 -3
- package/dist/client/{cart.client-DylGUWXY.mjs → cart.client-BKFkaXdV.mjs} +1 -1
- package/dist/client/{checkout-B5KxEUDr.mjs → checkout-Dwd7Di77.mjs} +3 -3
- package/dist/client/{checkout.client-C98fhch3.mjs → checkout.client-C25hpi-z.mjs} +1 -1
- package/dist/client/{checkoutUrls-BMLYTf38.mjs → checkoutUrls-tG788sw0.mjs} +1 -1
- package/dist/client/client.mjs +106 -43
- package/dist/client/{constants-PfYJsEZF.mjs → constants-DdxFG3Ic.mjs} +1 -2
- package/dist/client/{context-DtKdUdkO.mjs → context-Hi1RuYEM.mjs} +753 -373
- package/dist/client/{dateFormatting-BaGPvQS3.mjs → dateFormatting-C8vBCHuo.mjs} +15 -25
- package/dist/client/{demoPortalMagicLink-B8eDjhuG.mjs → demoPortalMagicLink-BAL5UIDG.mjs} +2 -3
- package/dist/client/{enhanceHeaderSection-DvhD-8eE.mjs → enhanceHeaderSection-Dv1Lr9kJ.mjs} +4 -5
- package/dist/client/{event-registration.client-Du9a_xAN.mjs → event-registration.client-dB_Z7bb-.mjs} +191 -210
- package/dist/client/{eventCalendar-Di9wDfzl.mjs → eventCalendar-CQnRA4Ww.mjs} +4 -4
- package/dist/client/{eventCombined-CNW6nBsB.mjs → eventCombined-BDOG1hVp.mjs} +4 -4
- package/dist/client/{eventListing-CQMxQ8By.mjs → eventListing-DSVmhy9n.mjs} +4 -4
- package/dist/client/{eventRegistration-CprS9k1D.mjs → eventRegistration-CD5mRtEH.mjs} +4 -4
- package/dist/client/{form-Zl1_8RJ6.mjs → form-DWnlEVSK.mjs} +3 -3
- package/dist/client/{form.client-TaMUys6I.mjs → form.client-D7zmeqNI.mjs} +5 -5
- package/dist/client/{form.parts-CpNPbPPM.mjs → form.parts-C-G6N_MK.mjs} +3 -3
- package/dist/client/gifting/client.mjs +32 -29
- package/dist/client/{gifting-DNVa7-Wj.mjs → gifting-Cn0jidP5.mjs} +4 -4
- package/dist/client/{gifting.client-CFUq3GVx.mjs → gifting.client-DVo1YFLs.mjs} +5 -5
- package/dist/client/{gifting.parts-CDQvxA4A.mjs → gifting.parts-Bak93gD2.mjs} +2 -2
- package/dist/client/{headerSection-Cg6083rn.mjs → headerSection-DjQuj_6v.mjs} +2 -2
- package/dist/client/{mediaAssets-B99AP7ai.mjs → mediaAssets-COfQolI3.mjs} +1 -1
- package/dist/client/{mediaContext-Fusweriw.mjs → mediaContext-DzvnjYXm.mjs} +1 -1
- package/dist/client/{newsletter-form.client-VuL9I96G.mjs → newsletter-form.client-rIYPziZC.mjs} +7 -7
- package/dist/client/{newsletter-form.interactive-7Of3eYn0.mjs → newsletter-form.interactive-DVt3enLr.mjs} +181 -155
- package/dist/client/{newsletter-form.parts-OBqsfT24.mjs → newsletter-form.parts-CH6dGfdn.mjs} +2 -2
- package/dist/client/{newsletterForm-BkJe_RTv.mjs → newsletterForm-Cg8cBDHd.mjs} +3 -3
- package/dist/client/{lookSurfaces-gJ3OqPf9.mjs → noop-jesvJXEE.mjs} +403 -275
- package/dist/client/portal/client.mjs +12202 -7166
- package/dist/client/portalOrders-oEoTvzkW.mjs +596 -0
- package/dist/client/portalRoutes-ByyVZfVq.mjs +873 -0
- package/dist/client/{product-detail.client-B2hdxqJN.mjs → product-detail.client-5aHq-vuu.mjs} +1 -1
- package/dist/client/{product-list.client-CCEgu9rx.mjs → product-list.client-CyAk5rnC.mjs} +1 -1
- package/dist/client/{productDetail-CRX_ZRfS.mjs → productDetail-B8aZ2mqY.mjs} +3 -3
- package/dist/client/{productList-BAdJ6z5S.mjs → productList-BuLemmod.mjs} +3 -3
- package/dist/client/{propsDecoder-BLKAmX0S.mjs → propsDecoder-0Unsqn3R.mjs} +2 -2
- package/dist/client/{registry.server-Bj9cmHHF.mjs → registry.server-DzvtVVD0.mjs} +664 -434
- package/dist/client/{renderableMediaAssetAdmission-BlfqYLJW.mjs → renderableMediaAssetAdmission-BsOWd9lf.mjs} +1 -1
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +16 -8
- package/dist/client/{richText-coerce-Z45OLLEX.mjs → richText-coerce-Bnng7JFA.mjs} +2 -1
- package/dist/client/{routeIslandApiConfig-DHpTTK77.mjs → routeIslandApiConfig-BGfcc9sk.mjs} +1 -1
- package/dist/client/{runtimeResponse-DtWSfWSZ.mjs → runtimeResponse-DAPVRToN.mjs} +1 -1
- package/dist/client/{runtimeResponse-D2j2-mOk.mjs → runtimeResponse-nXT8VAMl.mjs} +1 -1
- package/dist/client/{shop-BKsgxm_-.mjs → shop-GuMqnDL-.mjs} +3 -3
- package/dist/client/{shop-commerce-Cbtk_kUW.mjs → shop-commerce-D5bDY1o1.mjs} +53 -16
- package/dist/client/{shop-commerce-store-B-rv2p5h.mjs → shop-commerce-store-B7sHnLwI.mjs} +22 -5
- package/dist/client/{shop-discount-apply.state-CiCDLNh7.mjs → shop-discount-apply.state-Dos2zdC2.mjs} +2 -2
- package/dist/client/{shop.client-Rnqa74Tk.mjs → shop.client-uvj5GDZb.mjs} +17 -39
- package/dist/client/{shopShared-BaBfhjCq.mjs → shopShared-3giNWE3H.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/src-Al4ooTl_.mjs +164 -0
- package/dist/client/{src-o7WEvbK1.mjs → src-CmXh3JWs.mjs} +233 -91
- package/dist/client/{timetableModel-BOff1Kk5.mjs → timetableModel-GA-hn1qM.mjs} +11 -87
- package/dist/client/{shop-add-feedback-DvC2kP1K.mjs → urlParams-C2QHo1Pa.mjs} +1 -42
- package/dist/client/{useAvailableSlots-DQJNh10g.mjs → useAvailableSlots-CBneCxbG.mjs} +2 -3
- package/dist/client/{useDiscountCodeUi-BcFQRI_7.mjs → useDiscountCodeUi-D0kGF0C7.mjs} +1 -1
- package/dist/client/{useEventPagination-BvdcexDC.mjs → useEventPagination-xX8n_Tuu.mjs} +8 -8
- package/dist/client/{view-CTBwSpKv.mjs → view-DOyZc-DF.mjs} +4 -4
- package/dist/client/{wizardSteps-CWIQyRIw.mjs → wizardSteps-B952ify5.mjs} +1241 -295
- package/dist/preview-next/client/{PageSectionToolbar-CG6KwITA.mjs → PageSectionToolbar-BI3UCdpu.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-BGBqrC9m.mjs → PreviewEditorSidebar-jkfLVOgY.mjs} +12 -9
- package/dist/preview-next/client/{PreviewEditorUI-Bwkyx28x.mjs → PreviewEditorUI-DwJQs4hM.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-DB1l6JNU.mjs → PreviewShell-BAxAkuz8.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Bs6Cwzr3.mjs → SdkPreviewModeRuntime-0UVB-39f.mjs} +68 -17
- package/dist/preview-next/client/{previewAssistantSlot-T-oDD_Dd.mjs → previewAssistantSlot-BgiYk3PB.mjs} +7347 -3516
- package/dist/preview-next/client/{previewChromeRoot-BeukcDRy.mjs → previewChromeRoot-tieNdF3E.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-ceDW_9q2.mjs → sdk-runtime-DXb_Evl0.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-CCB9bScO.mjs → siteStyleAccess-BlN0jt2c.mjs} +3 -3
- package/dist/preview-next/client/{useAutosaveStatus-D4o0CKq7.mjs → useAutosaveStatus-BUEPA4oL.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-Seccrvwu.mjs → useOpenBlockForSetup-BVfr5P--.mjs} +1 -1
- package/dist/preview-next/container-responsive.css +203 -174
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-FwFj8zGL.mjs → route-contract-BHTBA48n.mjs} +90 -37
- package/dist/server/{Block.shared-D6WrRCxX.mjs → Block.shared-hGoyEdjJ.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-BQzjDQ2q.mjs → ThemeScopeCore-BfUCTOwj.mjs} +160 -142
- package/dist/server/{accessibleSurfaces-CM3QANtw.mjs → accessibleSurfaces-Dskni4Xj.mjs} +94 -330
- package/dist/server/accordions-By_0Ykks.mjs +111 -0
- package/dist/server/{bindings-CS6ih1Yc.mjs → bindings-DMJH4bvo.mjs} +7 -7
- package/dist/server/{client-m0ylCj_f.mjs → client-DrwlRNAH.mjs} +105 -42
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/constants-CeMywaiD.mjs +1485 -0
- package/dist/server/{customCss-BZ8YSrQg.mjs → customCss-C9kgPHvr.mjs} +41 -5
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{resolveButtonColourStates--6yJp9Tq.mjs → expandPalette-ehuW8r2g.mjs} +745 -1229
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-vgWMz1uD.mjs → loadContent-D0prFflT.mjs} +5 -4
- package/dist/server/{loadPage-CIOL3-9t.mjs → loadPage-CBLke9pJ.mjs} +3 -3
- package/dist/server/{lookMediaFrame-m-91jGGn.mjs → lookMediaFrame-H0fi4bJk.mjs} +38 -18
- package/dist/server/manifest.mjs +36 -25
- package/dist/server/{mapLocation-BM5WX7FY.mjs → mapLocation-MDDSubTp.mjs} +1 -1
- package/dist/server/media-BRmYrnzb.mjs +31 -0
- package/dist/server/{media-luf7RF22.mjs → media-gvfIw3z8.mjs} +2 -31
- package/dist/server/{navigation-BcNfYYuu.mjs → navigation-wrcuWmgp.mjs} +2 -2
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +134 -81
- package/dist/server/{overrideResolution-BiHmsvTZ.mjs → overrideResolution-DUgCEH8z.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-DJo_obpi.mjs → pageRenderPlan-BHrmogsW.mjs} +165 -247
- package/dist/server/{pageRuntimeSupport-BnSuoHON.mjs → pageRuntimeSupport-D2-YMRei.mjs} +5 -5
- package/dist/server/{pageShared-BJuOzxzn.mjs → pageShared-CG8O31Eo.mjs} +3402 -3249
- package/dist/server/{parseThemeForPersistence-DOsfofCy.mjs → parseThemeForPersistence-CrPlbJEN.mjs} +3 -2
- package/dist/server/{portal-B4JVkdjc.mjs → portal-pG_uhsI2.mjs} +62 -46
- package/dist/server/portal.mjs +3 -3
- package/dist/server/portalQuestions-oUyohgL9.mjs +225 -0
- package/dist/server/{prebuild-Cr8p8T7V.mjs → prebuild-C8Amvzce.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BZh57-ua.mjs → prefetchBlockData-BxUETRIZ.mjs} +4 -3
- package/dist/server/{registry-CvhFwbXJ.mjs → registry-Cc88-23f.mjs} +1514 -1190
- 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 +4 -4
- package/dist/server/rendering.mjs +10 -9
- package/dist/server/{resolveBlockData-Cv_W1LVB.mjs → resolveBlockData-OG3KOkig.mjs} +2 -2
- package/dist/server/{responseMedia-KRKguBC5.mjs → responseMedia-IfH65QAH.mjs} +1 -1
- package/dist/server/{schema-BpsqaSSU.mjs → schema-CwfxQjc4.mjs} +10 -113
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-CRKbTm_7.mjs → servicePageContent-BcFuhhD7.mjs} +22 -21
- package/dist/server/theme-bridge.mjs +34 -8
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-39SXCCnh.mjs → three-pass-converter-DPaUPTfl.mjs} +34 -16
- package/dist/server/titleSourceSchema-NhK6azFS.mjs +2018 -0
- package/dist/server/typeGuards-CTW_9AXq.mjs +413 -0
- package/dist/server/types-BKaBZFjD.mjs +1085 -0
- package/dist/server/{validation-DCl-FCk_.mjs → validation-BovmbS8N.mjs} +70 -17
- package/dist/server/{version-DT_R5JAR.mjs → version-hws4hgyX.mjs} +1 -1
- package/dist/server/video-Cdr3wh-q.mjs +272 -0
- package/dist/styles/index.css +1098 -1885
- package/package.json +2 -1
- package/dist/_dts/index-B0_2-65A.d.ts +0 -101
- package/dist/client/TabBarFragment-DlKQRhP4.mjs +0 -56
- package/dist/client/checkoutRoute-DKlZRNZD.mjs +0 -22
- package/dist/client/creditProducts-BQ1t1erI.mjs +0 -266
- package/dist/client/formatDate-hhI1-tzt.mjs +0 -26
- package/dist/server/constants-Cj7hfbrA.mjs +0 -41
- package/dist/server/richTextSchema-QLaQrbII.mjs +0 -212
- package/dist/server/titleSourceSchema-Cu-3PRvv.mjs +0 -122
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { A as bookingPanelHeading, D as bookingCardEntry, E as bookingBarPlacement, M as cancelledDateCopy, N as hasCancelledRegistrationDate, O as bookingEntry,
|
|
3
|
-
import {
|
|
4
|
-
import { Tn as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
2
|
+
import { A as bookingPanelHeading, D as bookingCardEntry, E as bookingBarPlacement, M as cancelledDateCopy, N as hasCancelledRegistrationDate, O as bookingEntry, T as DEFAULT_BOOKING_BUTTON_TEXT, b as displayButtonText, j as courseTitleOf, k as bookingEntryProgress, v as buildEventRegistrationDisplayFromScopedEvents, w as offeringNounForEvent, wn as formatEventPriceDisplay, y as buildEventRegistrationInteractiveIslandProps } from "./newsletter-form.interactive-DVt3enLr.mjs";
|
|
3
|
+
import { An as formatCurrencyAmount, t as assertNever } from "./src-CmXh3JWs.mjs";
|
|
4
|
+
import { An as selectionConfirmationHint, Ao as isEventFull, B as closedAdmissionLabel, Bn as severalConfirmationSentence, Br as placesLeftLabel, Co as canJoinEventWaitlistOnAnyMode, Dn as runPricingChoice, Do as getEventAvailability, Dr as getTicketSelectionTotal, En as runNeedsPricingChoice, Er as getTicketLineQuantity, Fn as selectionItemsLabel, Fs as INCOMPATIBLE_ATTENDANCE_MESSAGE, In as selectionPlacesLabel, It as ADD_A_PLACE, Jt as confirmationPaymentRows, K as registrationStopsHere, Kn as combinationOfferLine, Ln as selectionPlacesNote, Ls as setRoomChoicePeople, Mn as selectionEntitlementNote, Mo as selectMostOpenCapacitySource, Nn as selectionIncludes, On as runUnitPriceCents, Or as getTicketTypeLineMax, Rn as selectionRowAvailability, So as canJoinEventWaitlist, Tn as runChoiceUsable, U as placeCountCeiling, Ur as shownVenue, V as fullyBookedLabel, Vi as getRegistrationSuccessCopy, Y as resolveRegistrationAvailabilityBlocker, Yt as resolveFinishedPresentation, Z as settledRemainingPlaces, Zn as selectionItemName, _c as publicEventPricingCurrency, _n as SEVERAL_BOOKINGS_ACCOUNT_NOTE, ar as formatRunScheduleLines, ba as formatPrice, bc as publicEventPricingType, bi as resolveEventRegistrationScopedEvents, c as registrationStepLabelContext, dr as occurrenceTitleOverride, dt as paymentChoiceDetails, et as isEventRegistrationAvailable, ft as paymentChoicePrice, gn as SELECTION_LIMIT_NOTE, ir as formatRegistrationSchedule, jn as selectionConsentLabel, jo as selectEventCapacitySource, jr as setTicketLineQuantity, kn as selectionAtLimit, ko as getRemainingPlaces, l as areEventRegistrationPaymentSelectionsEqual, lo as bookingPresentation, lr as getTicketTypeAvailabilityLabel, n as getEventSelectionMode, nr as formatDate, or as formatTime, pr as withOccurrenceTitle, qn as combinationOffersOf, r as panelShouldOpen, rr as formatEventDateTime, s as registrationStepLabel, tr as formatBookingWhen, tt as normalizeEventRegistrationMaxTickets, ur as getVisibleTicketTypes, wr as canRequestTicketOption, ya as formatCentsAsCurrencyInput, yc as publicEventPricingStrategy, yn as canToggleSelectionItem, yt as entryChoosesEvent, z as shouldPromptForLogin } from "./wizardSteps-B952ify5.mjs";
|
|
5
|
+
import { i as portalPath } from "./portalRoutes-ByyVZfVq.mjs";
|
|
6
|
+
import { n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-VfSd6JU-.mjs";
|
|
7
|
+
import { a as ONE_DATE_FUNDING_LOAD_FAILED, c as planEventRegistrationSurface, i as summaryExplainsMoreThanTheOption, l as registrationAdmissionSurface, o as SELECTION_FUNDING_LOAD_FAILED, r as useEventRegistrationWizard, s as useEventRegistrationRecoveryRequest, t as EventPaymentMount, u as resolveEventRegistrationClientSurface } from "./EventRegistrationPayment-D4FvQSFF.mjs";
|
|
8
|
+
import { n as useBlockApi } from "./context-Hi1RuYEM.mjs";
|
|
9
|
+
import { b as SpinnerNode, n as ThemedButton } from "./ThemedButton-PFOhXktM.mjs";
|
|
10
|
+
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-DdxFG3Ic.mjs";
|
|
11
|
+
import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, n as BookingEntryBar, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-BTqO7cJl.mjs";
|
|
12
|
+
import { m as DiscountCodeDisclosure, p as NavigationHandOffPanel, t as BookingConfirmation } from "./DemoBookingPortalAccess-8kwNF9HN.mjs";
|
|
11
13
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
12
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
14
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-C8i4NraK.mjs";
|
|
13
15
|
import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
|
|
14
16
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
15
17
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
16
|
-
import { n as
|
|
18
|
+
import { a as MagicLinkForm, n as OrganiserContactLine, o as BookingConsentAgreement, p as PaymentChoiceRows, r as BookingQuestionSections, t as BookingMailingListNote } from "./BookingMailingListNote-7kdvuPow.mjs";
|
|
19
|
+
import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-D0kGF0C7.mjs";
|
|
17
20
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
18
|
-
import { a as MagicLinkForm, d as PaymentChoiceRows, n as OrganiserContactLine, o as BookingConsentAgreement, r as BookingQuestionSections, t as BookingMailingListNote } from "./BookingMailingListNote-CGxg37zx.mjs";
|
|
19
|
-
import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, n as BookingEntryBar, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-DCqorVne.mjs";
|
|
20
21
|
import { t as createLucideIcon } from "./createLucideIcon-BrXgHVKN.mjs";
|
|
22
|
+
import { t as CalendarAction } from "./CalendarAction-D_Glwvz2.mjs";
|
|
21
23
|
import React, { useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
22
24
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
23
25
|
import { createPortal } from "react-dom";
|
|
@@ -1242,7 +1244,7 @@ const ErrorStep = ({ message, onRetry, action = "retry", canJoinWaitlist = false
|
|
|
1242
1244
|
children: offerWaitlist ? "Sorry, this event is now full. You can join the waiting list, and we’ll email you if a place becomes available." : message
|
|
1243
1245
|
}),
|
|
1244
1246
|
actions: action === "none" ? void 0 : action === "portal" ? /* @__PURE__ */ jsx("a", {
|
|
1245
|
-
href: "
|
|
1247
|
+
href: portalPath({ page: "bookings" }),
|
|
1246
1248
|
className: "er-retry-btn",
|
|
1247
1249
|
children: labels[action]
|
|
1248
1250
|
}) : /* @__PURE__ */ jsx("button", {
|
|
@@ -1679,7 +1681,7 @@ function SelectTicketsActions(props) {
|
|
|
1679
1681
|
return /* @__PURE__ */ jsxs("div", {
|
|
1680
1682
|
className: "rb-wizard-actions er-actions",
|
|
1681
1683
|
children: [
|
|
1682
|
-
|
|
1684
|
+
entryChoosesEvent(wizard.entry) && /* @__PURE__ */ jsx("button", {
|
|
1683
1685
|
type: "button",
|
|
1684
1686
|
onClick: () => wizard.setStep("select-event"),
|
|
1685
1687
|
className: "er-back-btn",
|
|
@@ -1885,7 +1887,10 @@ function renderRegistrationAvailabilityBlocker(admission) {
|
|
|
1885
1887
|
heading: blocker.heading,
|
|
1886
1888
|
message: blocker.message
|
|
1887
1889
|
});
|
|
1888
|
-
case "closed": return /* @__PURE__ */ jsx(ClosedPaymentPanel, {
|
|
1890
|
+
case "closed": return /* @__PURE__ */ jsx(ClosedPaymentPanel, {
|
|
1891
|
+
message: blocker.message,
|
|
1892
|
+
contact: admission.kind === "closed" ? admission.contact : void 0
|
|
1893
|
+
});
|
|
1889
1894
|
}
|
|
1890
1895
|
}
|
|
1891
1896
|
function PaymentBlockingPanel(props) {
|
|
@@ -1935,7 +1940,7 @@ function AlreadyWaitlistedPaymentPanel() {
|
|
|
1935
1940
|
className: "er-text er-text--muted",
|
|
1936
1941
|
children: "You're already on the waitlist for this event."
|
|
1937
1942
|
}), /* @__PURE__ */ jsx("a", {
|
|
1938
|
-
href: "
|
|
1943
|
+
href: portalPath({ page: "bookings" }),
|
|
1939
1944
|
className: "er-retry-btn",
|
|
1940
1945
|
children: "View my bookings"
|
|
1941
1946
|
})]
|
|
@@ -1964,15 +1969,16 @@ function FreePaymentSummary({ ticketsCount }) {
|
|
|
1964
1969
|
})]
|
|
1965
1970
|
});
|
|
1966
1971
|
}
|
|
1967
|
-
|
|
1972
|
+
/** Why this can't be paid for here, and who to contact when the business can take the booking directly. */
|
|
1973
|
+
function ClosedPaymentPanel({ message, contact }) {
|
|
1968
1974
|
return /* @__PURE__ */ jsx("div", {
|
|
1969
1975
|
className: "rb-reg-stack er-stack",
|
|
1970
|
-
children: /* @__PURE__ */
|
|
1976
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
1971
1977
|
className: "er-center",
|
|
1972
|
-
children: /* @__PURE__ */ jsx("p", {
|
|
1978
|
+
children: [/* @__PURE__ */ jsx("p", {
|
|
1973
1979
|
className: "er-text er-error",
|
|
1974
1980
|
children: message
|
|
1975
|
-
})
|
|
1981
|
+
}), contact ? /* @__PURE__ */ jsx(OrganiserContactLine, { contact }) : null]
|
|
1976
1982
|
})
|
|
1977
1983
|
});
|
|
1978
1984
|
}
|
|
@@ -1981,19 +1987,18 @@ function ClosedPaymentPanel({ message }) {
|
|
|
1981
1987
|
function places(count) {
|
|
1982
1988
|
return count === 1 ? "1 place" : `${count} places`;
|
|
1983
1989
|
}
|
|
1984
|
-
/**
|
|
1990
|
+
/** Only confirmed bookings come back for a date; waitlist places have their own notice. */
|
|
1985
1991
|
function summariseExistingBookings(registrations) {
|
|
1986
|
-
const
|
|
1987
|
-
const [only] = confirmed;
|
|
1992
|
+
const [only] = registrations;
|
|
1988
1993
|
if (!only) return { kind: "none" };
|
|
1989
|
-
if (
|
|
1994
|
+
if (registrations.length === 1) return {
|
|
1990
1995
|
kind: "booked",
|
|
1991
1996
|
detail: only.ticketBreakdown ?? places(only.ticketsCount)
|
|
1992
1997
|
};
|
|
1993
|
-
const placeCount =
|
|
1998
|
+
const placeCount = registrations.reduce((total, registration) => total + registration.ticketsCount, 0);
|
|
1994
1999
|
return {
|
|
1995
2000
|
kind: "booked",
|
|
1996
|
-
detail: `${
|
|
2001
|
+
detail: `${registrations.length} bookings · ${places(placeCount)}`
|
|
1997
2002
|
};
|
|
1998
2003
|
}
|
|
1999
2004
|
//#endregion
|
|
@@ -2419,10 +2424,7 @@ function LoadedFundingStep(props) {
|
|
|
2419
2424
|
props.signInPrompt,
|
|
2420
2425
|
layout.options ? /* @__PURE__ */ jsxs("div", {
|
|
2421
2426
|
className: "rb-reg-stack er-stack er-funding-options",
|
|
2422
|
-
children: [/* @__PURE__ */ jsx(StepHeading, {
|
|
2423
|
-
title: PAY_HEADING,
|
|
2424
|
-
changeDates: layout.changeDatesOn === "options" ? changeDates : void 0
|
|
2425
|
-
}), /* @__PURE__ */ jsx(PaymentChoiceRows, {
|
|
2427
|
+
children: [/* @__PURE__ */ jsx(StepHeading, { title: PAY_HEADING }), /* @__PURE__ */ jsx(PaymentChoiceRows, {
|
|
2426
2428
|
label: PAY_HEADING,
|
|
2427
2429
|
rows: view.rows.map((row) => ({
|
|
2428
2430
|
id: row.key,
|
|
@@ -2475,7 +2477,7 @@ function fundingStepLayout(view, oneDate, hasCardSummary) {
|
|
|
2475
2477
|
return {
|
|
2476
2478
|
options,
|
|
2477
2479
|
breakdown,
|
|
2478
|
-
changeDatesOn:
|
|
2480
|
+
changeDatesOn: breakdown ? "breakdown" : "alone"
|
|
2479
2481
|
};
|
|
2480
2482
|
}
|
|
2481
2483
|
function showsPaymentOptions(view) {
|
|
@@ -2617,14 +2619,23 @@ function DateSelectionList(props) {
|
|
|
2617
2619
|
*/
|
|
2618
2620
|
const EventSelectionStep = (props) => {
|
|
2619
2621
|
const { events, selectedEvent, onSelect, onChoose, display } = props;
|
|
2620
|
-
if ("selection" in props)
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2622
|
+
if ("selection" in props) {
|
|
2623
|
+
const rows = {
|
|
2624
|
+
selection: props.selection,
|
|
2625
|
+
display,
|
|
2626
|
+
onToggle: props.onToggle,
|
|
2627
|
+
onJoinWaitlist: props.onJoinWaitlist
|
|
2628
|
+
};
|
|
2629
|
+
return props.pageDate ? /* @__PURE__ */ jsx(PageDateFirstSelection, {
|
|
2630
|
+
pageDate: props.pageDate,
|
|
2631
|
+
events,
|
|
2632
|
+
rows
|
|
2633
|
+
}) : /* @__PURE__ */ jsx(SeveralSelection, {
|
|
2634
|
+
items: props.mode.items,
|
|
2635
|
+
events,
|
|
2636
|
+
rows
|
|
2637
|
+
});
|
|
2638
|
+
}
|
|
2628
2639
|
if (getEventSelectionMode(events) === "date") return /* @__PURE__ */ jsxs("div", {
|
|
2629
2640
|
className: "rb-reg-stack er-stack",
|
|
2630
2641
|
children: [
|
|
@@ -2736,19 +2747,51 @@ const SEVERAL_HEADINGS = {
|
|
|
2736
2747
|
label: "What to book"
|
|
2737
2748
|
}
|
|
2738
2749
|
};
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
*/
|
|
2743
|
-
function
|
|
2744
|
-
const
|
|
2745
|
-
const sorted = [...props.events].sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt));
|
|
2750
|
+
function byStart(left, right) {
|
|
2751
|
+
return Date.parse(left.startsAt) - Date.parse(right.startsAt);
|
|
2752
|
+
}
|
|
2753
|
+
/** One checkbox row per item, under month labels when dates span more than one month. */
|
|
2754
|
+
function SeveralOptionList(props) {
|
|
2755
|
+
const sorted = [...props.events].sort(byStart);
|
|
2746
2756
|
const groups = props.items === "dates" ? groupByMonth(sorted) : [{
|
|
2747
2757
|
key: "runs",
|
|
2748
2758
|
label: "",
|
|
2749
2759
|
events: sorted
|
|
2750
2760
|
}];
|
|
2751
2761
|
const showMonths = groups.length > 1;
|
|
2762
|
+
const { rows } = props;
|
|
2763
|
+
return /* @__PURE__ */ jsx("div", {
|
|
2764
|
+
className: "er-date-list",
|
|
2765
|
+
role: "group",
|
|
2766
|
+
"aria-label": props.label,
|
|
2767
|
+
children: groups.map((group) => /* @__PURE__ */ jsxs(React.Fragment, { children: [showMonths ? /* @__PURE__ */ jsx("p", {
|
|
2768
|
+
className: "er-date-list__month",
|
|
2769
|
+
"aria-hidden": "true",
|
|
2770
|
+
children: group.label
|
|
2771
|
+
}) : null, group.events.map((event) => /* @__PURE__ */ jsx(SeveralOption, {
|
|
2772
|
+
items: props.items,
|
|
2773
|
+
event,
|
|
2774
|
+
checked: selectionIncludes(rows.selection, event),
|
|
2775
|
+
canToggle: canToggleSelectionItem(rows.selection, event),
|
|
2776
|
+
display: rows.display,
|
|
2777
|
+
onToggle: rows.onToggle,
|
|
2778
|
+
onJoinWaitlist: rows.onJoinWaitlist
|
|
2779
|
+
}, event.selectionId))] }, group.key))
|
|
2780
|
+
});
|
|
2781
|
+
}
|
|
2782
|
+
function SelectionLimitNote({ selection }) {
|
|
2783
|
+
return selectionAtLimit(selection) ? /* @__PURE__ */ jsx("p", {
|
|
2784
|
+
className: "er-text er-text--muted",
|
|
2785
|
+
role: "status",
|
|
2786
|
+
children: SELECTION_LIMIT_NOTE
|
|
2787
|
+
}) : null;
|
|
2788
|
+
}
|
|
2789
|
+
/**
|
|
2790
|
+
* Booking several (issue 1725): one checkbox row per date or run. A full row
|
|
2791
|
+
* can't be ticked; when it has a waitlist, its link books that one item.
|
|
2792
|
+
*/
|
|
2793
|
+
function SeveralSelection(props) {
|
|
2794
|
+
const heading = SEVERAL_HEADINGS[props.items];
|
|
2752
2795
|
return /* @__PURE__ */ jsxs("div", {
|
|
2753
2796
|
className: "rb-reg-stack er-stack",
|
|
2754
2797
|
children: [
|
|
@@ -2763,29 +2806,53 @@ function SeveralSelection(props) {
|
|
|
2763
2806
|
}),
|
|
2764
2807
|
/* @__PURE__ */ jsx(BookingCloseLine, { events: props.events }),
|
|
2765
2808
|
/* @__PURE__ */ jsx(CombinationOfferLine, { parts: combinationOfferLine(combinationOffersOf(props.events)) }),
|
|
2766
|
-
/* @__PURE__ */ jsx(
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
className: "er-date-list__month",
|
|
2772
|
-
"aria-hidden": "true",
|
|
2773
|
-
children: group.label
|
|
2774
|
-
}) : null, group.events.map((event) => /* @__PURE__ */ jsx(SeveralOption, {
|
|
2775
|
-
items: props.items,
|
|
2776
|
-
event,
|
|
2777
|
-
checked: selectionIncludes(props.selection, event),
|
|
2778
|
-
canToggle: canToggleSelectionItem(props.selection, event),
|
|
2779
|
-
display: props.display,
|
|
2780
|
-
onToggle: props.onToggle,
|
|
2781
|
-
onJoinWaitlist: props.onJoinWaitlist
|
|
2782
|
-
}, event.selectionId))] }, group.key))
|
|
2809
|
+
/* @__PURE__ */ jsx(SeveralOptionList, {
|
|
2810
|
+
items: props.items,
|
|
2811
|
+
events: props.events,
|
|
2812
|
+
label: heading.label,
|
|
2813
|
+
rows: props.rows
|
|
2783
2814
|
}),
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2815
|
+
/* @__PURE__ */ jsx(SelectionLimitNote, { selection: props.rows.selection })
|
|
2816
|
+
]
|
|
2817
|
+
});
|
|
2818
|
+
}
|
|
2819
|
+
/**
|
|
2820
|
+
* A date's own page: its date comes first, ticked to start with, and the
|
|
2821
|
+
* class's other dates follow as the class's own page lists them.
|
|
2822
|
+
*/
|
|
2823
|
+
function PageDateFirstSelection(props) {
|
|
2824
|
+
const others = props.events.filter((event) => event.selectionId !== props.pageDate.selectionId);
|
|
2825
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
2826
|
+
className: "rb-reg-stack er-stack",
|
|
2827
|
+
children: [
|
|
2828
|
+
/* @__PURE__ */ jsx("h3", {
|
|
2829
|
+
tabIndex: -1,
|
|
2830
|
+
className: "er-title",
|
|
2831
|
+
children: "Your date"
|
|
2832
|
+
}),
|
|
2833
|
+
/* @__PURE__ */ jsx(SeveralOptionList, {
|
|
2834
|
+
items: "dates",
|
|
2835
|
+
events: [props.pageDate],
|
|
2836
|
+
label: "Your date",
|
|
2837
|
+
rows: props.rows
|
|
2838
|
+
}),
|
|
2839
|
+
/* @__PURE__ */ jsx("h3", {
|
|
2840
|
+
className: "er-title er-title--sub",
|
|
2841
|
+
children: "Add more dates"
|
|
2842
|
+
}),
|
|
2843
|
+
/* @__PURE__ */ jsx("p", {
|
|
2844
|
+
className: "er-text er-text--muted er-selection-lede",
|
|
2845
|
+
children: "Tick any others you’d like to book at the same time."
|
|
2846
|
+
}),
|
|
2847
|
+
/* @__PURE__ */ jsx(BookingCloseLine, { events: props.events }),
|
|
2848
|
+
/* @__PURE__ */ jsx(CombinationOfferLine, { parts: combinationOfferLine(combinationOffersOf(props.events)) }),
|
|
2849
|
+
/* @__PURE__ */ jsx(SeveralOptionList, {
|
|
2850
|
+
items: "dates",
|
|
2851
|
+
events: others,
|
|
2852
|
+
label: "More dates",
|
|
2853
|
+
rows: props.rows
|
|
2854
|
+
}),
|
|
2855
|
+
/* @__PURE__ */ jsx(SelectionLimitNote, { selection: props.rows.selection })
|
|
2789
2856
|
]
|
|
2790
2857
|
});
|
|
2791
2858
|
}
|
|
@@ -2800,17 +2867,17 @@ function CombinationOfferLine(props) {
|
|
|
2800
2867
|
function runPriceLabel(event) {
|
|
2801
2868
|
return publicEventPricingCurrency(event.pricing) === null ? null : formatEventPriceDisplay(event.pricing).trim() || null;
|
|
2802
2869
|
}
|
|
2803
|
-
/** The words on a row: a date and time for dates
|
|
2870
|
+
/** The words on a row: a date and its time for dates; a title, schedule lines, venue and price for runs. */
|
|
2804
2871
|
function severalOptionText(items, event, display) {
|
|
2805
2872
|
if (items === "dates") return {
|
|
2806
2873
|
title: formatBookingWhen(event, "dayLong"),
|
|
2807
|
-
|
|
2874
|
+
lines: [formatBookingWhen(event, "timeRange")],
|
|
2808
2875
|
price: null
|
|
2809
2876
|
};
|
|
2810
|
-
const
|
|
2877
|
+
const venue = shownVenue(event, display);
|
|
2811
2878
|
return {
|
|
2812
2879
|
title: event.title,
|
|
2813
|
-
|
|
2880
|
+
lines: [...formatRunScheduleLines(event), ...venue ? [venue] : []],
|
|
2814
2881
|
price: runPriceLabel(event)
|
|
2815
2882
|
};
|
|
2816
2883
|
}
|
|
@@ -2843,6 +2910,10 @@ function SeveralOptionStatus(props) {
|
|
|
2843
2910
|
}
|
|
2844
2911
|
}
|
|
2845
2912
|
}
|
|
2913
|
+
/**
|
|
2914
|
+
* One row in the list: the checkbox level with the title, the details under
|
|
2915
|
+
* it, and places or price to the side (under the details on a phone).
|
|
2916
|
+
*/
|
|
2846
2917
|
function SeveralOption(props) {
|
|
2847
2918
|
const { event } = props;
|
|
2848
2919
|
const availability = selectionRowAvailability(event);
|
|
@@ -2850,10 +2921,13 @@ function SeveralOption(props) {
|
|
|
2850
2921
|
const className = [
|
|
2851
2922
|
"er-event-card",
|
|
2852
2923
|
"er-date-option",
|
|
2924
|
+
"er-date-option--grid",
|
|
2925
|
+
props.items === "dates" && "er-date-option--dates",
|
|
2926
|
+
props.items === "runs" && "er-date-option--run",
|
|
2853
2927
|
props.checked && "er-event-card--selected",
|
|
2854
2928
|
!open && "er-date-option--full"
|
|
2855
2929
|
].filter(Boolean).join(" ");
|
|
2856
|
-
const { title,
|
|
2930
|
+
const { title, lines, price } = severalOptionText(props.items, event, props.display);
|
|
2857
2931
|
const Row = availability === "waitlist" ? "div" : "label";
|
|
2858
2932
|
return /* @__PURE__ */ jsxs(Row, {
|
|
2859
2933
|
className,
|
|
@@ -2864,27 +2938,30 @@ function SeveralOption(props) {
|
|
|
2864
2938
|
value: event.selectionId,
|
|
2865
2939
|
checked: props.checked,
|
|
2866
2940
|
disabled: !props.canToggle,
|
|
2867
|
-
"aria-label": Row === "div" ? [title,
|
|
2941
|
+
"aria-label": Row === "div" ? [title, ...lines].join(", ") : void 0,
|
|
2868
2942
|
onChange: () => props.onToggle(event)
|
|
2869
2943
|
}),
|
|
2944
|
+
/* @__PURE__ */ jsx("span", {
|
|
2945
|
+
className: "er-date-option__date",
|
|
2946
|
+
children: title
|
|
2947
|
+
}),
|
|
2870
2948
|
/* @__PURE__ */ jsxs("span", {
|
|
2871
|
-
className: "er-date-
|
|
2872
|
-
children: [/* @__PURE__ */ jsx(
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2949
|
+
className: "er-date-option__aside",
|
|
2950
|
+
children: [/* @__PURE__ */ jsx(SeveralOptionStatus, {
|
|
2951
|
+
event,
|
|
2952
|
+
display: props.display,
|
|
2953
|
+
onJoinWaitlist: props.onJoinWaitlist
|
|
2954
|
+
}), price && open ? /* @__PURE__ */ jsx("span", {
|
|
2955
|
+
className: "er-date-option__price",
|
|
2956
|
+
children: price
|
|
2878
2957
|
}) : null]
|
|
2879
2958
|
}),
|
|
2880
|
-
/* @__PURE__ */ jsx(
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
className: "er-date-option__price",
|
|
2887
|
-
children: price
|
|
2959
|
+
lines.length > 0 ? /* @__PURE__ */ jsx("span", {
|
|
2960
|
+
className: "er-date-option__body",
|
|
2961
|
+
children: lines.map((line) => /* @__PURE__ */ jsx("span", {
|
|
2962
|
+
className: "er-date-option__time",
|
|
2963
|
+
children: line
|
|
2964
|
+
}, line))
|
|
2888
2965
|
}) : null
|
|
2889
2966
|
]
|
|
2890
2967
|
});
|
|
@@ -3491,106 +3568,6 @@ function UnavailableEntitlementNotes({ eligibility }) {
|
|
|
3491
3568
|
}, note)) });
|
|
3492
3569
|
}
|
|
3493
3570
|
//#endregion
|
|
3494
|
-
//#region ../blocks/src/system/runtime/nodes/event-registration/CalendarAction.tsx
|
|
3495
|
-
/** Download effects happen only after a click, including in editor preview. */
|
|
3496
|
-
async function downloadCalendar(calendar) {
|
|
3497
|
-
const { renderCalendarFeedIcs } = await import("./src-DqMbCjI1.mjs");
|
|
3498
|
-
const url = URL.createObjectURL(new Blob([renderCalendarFeedIcs(calendar.feed)], { type: "text/calendar;charset=utf-8" }));
|
|
3499
|
-
const link = document.createElement("a");
|
|
3500
|
-
link.href = url;
|
|
3501
|
-
link.download = calendar.fileName;
|
|
3502
|
-
document.body.append(link);
|
|
3503
|
-
link.click();
|
|
3504
|
-
link.remove();
|
|
3505
|
-
setTimeout(() => URL.revokeObjectURL(url), 0);
|
|
3506
|
-
}
|
|
3507
|
-
function CalendarAction({ calendar }) {
|
|
3508
|
-
const [open, setOpen] = useState(false);
|
|
3509
|
-
const [downloadFailed, setDownloadFailed] = useState(false);
|
|
3510
|
-
const id = useId();
|
|
3511
|
-
const choicesRef = useRef(null);
|
|
3512
|
-
useEffect(() => {
|
|
3513
|
-
if (open) choicesRef.current?.scrollIntoView({ block: "nearest" });
|
|
3514
|
-
}, [open]);
|
|
3515
|
-
const close = () => setOpen(false);
|
|
3516
|
-
const download = async (value) => {
|
|
3517
|
-
setDownloadFailed(false);
|
|
3518
|
-
try {
|
|
3519
|
-
await downloadCalendar(value);
|
|
3520
|
-
close();
|
|
3521
|
-
} catch {
|
|
3522
|
-
setDownloadFailed(true);
|
|
3523
|
-
}
|
|
3524
|
-
};
|
|
3525
|
-
if (!calendar) return null;
|
|
3526
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
3527
|
-
className: "er-calendar-action",
|
|
3528
|
-
onBlur: (event) => {
|
|
3529
|
-
if (!event.currentTarget.contains(event.relatedTarget)) close();
|
|
3530
|
-
},
|
|
3531
|
-
onKeyDown: (event) => {
|
|
3532
|
-
if (event.key === "Escape" && open) {
|
|
3533
|
-
event.stopPropagation();
|
|
3534
|
-
close();
|
|
3535
|
-
event.currentTarget.querySelector("button")?.focus();
|
|
3536
|
-
}
|
|
3537
|
-
},
|
|
3538
|
-
children: [calendar.kind === "sessions" ? /* @__PURE__ */ jsx(ThemedButton, {
|
|
3539
|
-
type: "button",
|
|
3540
|
-
variant: "outline",
|
|
3541
|
-
size: "md",
|
|
3542
|
-
extraClassName: "er-calendar-action__trigger",
|
|
3543
|
-
label: calendar.sessionCount === 2 ? "Add both sessions to your calendar" : `Add all ${calendar.sessionCount} sessions to your calendar`,
|
|
3544
|
-
onClick: () => {
|
|
3545
|
-
download(calendar);
|
|
3546
|
-
}
|
|
3547
|
-
}) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ThemedButton, {
|
|
3548
|
-
type: "button",
|
|
3549
|
-
variant: "outline",
|
|
3550
|
-
size: "md",
|
|
3551
|
-
extraClassName: "er-calendar-action__trigger er-calendar-action__trigger--disclosure",
|
|
3552
|
-
label: "Add to calendar",
|
|
3553
|
-
"aria-expanded": open,
|
|
3554
|
-
"aria-controls": id,
|
|
3555
|
-
onClick: () => setOpen(!open)
|
|
3556
|
-
}), open ? /* @__PURE__ */ jsxs("div", {
|
|
3557
|
-
id,
|
|
3558
|
-
ref: choicesRef,
|
|
3559
|
-
className: "er-calendar-action__choices",
|
|
3560
|
-
children: [
|
|
3561
|
-
/* @__PURE__ */ jsx("a", {
|
|
3562
|
-
className: "er-calendar-action__choice",
|
|
3563
|
-
href: calendar.googleUrl,
|
|
3564
|
-
target: "_blank",
|
|
3565
|
-
rel: "noopener noreferrer",
|
|
3566
|
-
onClick: close,
|
|
3567
|
-
children: "Google Calendar"
|
|
3568
|
-
}),
|
|
3569
|
-
/* @__PURE__ */ jsx("a", {
|
|
3570
|
-
className: "er-calendar-action__choice",
|
|
3571
|
-
href: calendar.outlookUrl,
|
|
3572
|
-
target: "_blank",
|
|
3573
|
-
rel: "noopener noreferrer",
|
|
3574
|
-
onClick: close,
|
|
3575
|
-
children: "Outlook.com"
|
|
3576
|
-
}),
|
|
3577
|
-
/* @__PURE__ */ jsx("button", {
|
|
3578
|
-
type: "button",
|
|
3579
|
-
className: "er-calendar-action__choice",
|
|
3580
|
-
onClick: () => {
|
|
3581
|
-
download(calendar);
|
|
3582
|
-
},
|
|
3583
|
-
children: "Apple Calendar or other (.ics file)"
|
|
3584
|
-
})
|
|
3585
|
-
]
|
|
3586
|
-
}) : null] }), downloadFailed ? /* @__PURE__ */ jsx("p", {
|
|
3587
|
-
role: "alert",
|
|
3588
|
-
className: "er-calendar-action__error",
|
|
3589
|
-
children: "We couldn't create the calendar file. Please try again."
|
|
3590
|
-
}) : null]
|
|
3591
|
-
});
|
|
3592
|
-
}
|
|
3593
|
-
//#endregion
|
|
3594
3571
|
//#region ../blocks/src/system/runtime/nodes/event-registration/SuccessStep.tsx
|
|
3595
3572
|
function ConfirmationSummary({ rows }) {
|
|
3596
3573
|
if (!rows || rows.length === 0) return null;
|
|
@@ -3828,7 +3805,7 @@ function ExistingRegistrationNotice(props) {
|
|
|
3828
3805
|
body: isBooked ? props.detail : "Sign out to book for someone else.",
|
|
3829
3806
|
secondaryBody: isBooked ? "Need more tickets? You can book them below. They'll come as a new booking with its own confirmation email, and your first booking won't change." : void 0,
|
|
3830
3807
|
actions: isBooked ? /* @__PURE__ */ jsx("a", {
|
|
3831
|
-
href: "
|
|
3808
|
+
href: portalPath({ page: "bookings" }),
|
|
3832
3809
|
className: "er-existing-registration-link",
|
|
3833
3810
|
children: "View my bookings"
|
|
3834
3811
|
}) : /* @__PURE__ */ jsx("button", {
|
|
@@ -3913,8 +3890,8 @@ function AttendeeDetailsContent(props) {
|
|
|
3913
3890
|
}
|
|
3914
3891
|
function EventDiscountCodeDisclosure(props) {
|
|
3915
3892
|
const { wizard } = props;
|
|
3916
|
-
|
|
3917
|
-
const preview =
|
|
3893
|
+
if (wizard.discountAccess === "notOffered") return null;
|
|
3894
|
+
const preview = wizard.combinationCodeField;
|
|
3918
3895
|
if (preview?.failed) return /* @__PURE__ */ jsxs("div", {
|
|
3919
3896
|
role: "alert",
|
|
3920
3897
|
children: [/* @__PURE__ */ jsx("p", { children: "We couldn’t check your price. Try again." }), /* @__PURE__ */ jsx("button", {
|
|
@@ -3923,17 +3900,16 @@ function EventDiscountCodeDisclosure(props) {
|
|
|
3923
3900
|
children: "Try again"
|
|
3924
3901
|
})]
|
|
3925
3902
|
});
|
|
3926
|
-
if (
|
|
3903
|
+
if (wizard.discountsAvailableLoading || !wizard.shouldShowDiscountToggle) return null;
|
|
3927
3904
|
return /* @__PURE__ */ jsx(EventDiscountField, {
|
|
3928
3905
|
wizard,
|
|
3929
|
-
coverSelected,
|
|
3930
3906
|
preview
|
|
3931
3907
|
});
|
|
3932
3908
|
}
|
|
3933
|
-
function EventDiscountField({ wizard,
|
|
3909
|
+
function EventDiscountField({ wizard, preview }) {
|
|
3934
3910
|
return /* @__PURE__ */ jsx(DiscountCodeDisclosure, {
|
|
3935
3911
|
surface: "event-registration",
|
|
3936
|
-
isOpen:
|
|
3912
|
+
isOpen: wizard.discountUiOpen,
|
|
3937
3913
|
code: wizard.discountCode,
|
|
3938
3914
|
onOpen: () => wizard.setDiscountUiOpen(true),
|
|
3939
3915
|
onChange: wizard.setDiscountCode,
|
|
@@ -3943,8 +3919,6 @@ function EventDiscountField({ wizard, coverSelected, preview }) {
|
|
|
3943
3919
|
},
|
|
3944
3920
|
applied: preview?.feedback?.tone === "success",
|
|
3945
3921
|
id: "er-discount-code",
|
|
3946
|
-
disabled: coverSelected,
|
|
3947
|
-
hint: coverSelected ? "Codes apply to card payments. Choose Pay by card to use one." : void 0,
|
|
3948
3922
|
...preview ? {
|
|
3949
3923
|
onApply: () => void preview.apply(),
|
|
3950
3924
|
isApplying: preview.applying,
|
|
@@ -3967,8 +3941,8 @@ function PaymentSelectionContent(props) {
|
|
|
3967
3941
|
if (subtotalCents === null) return /* @__PURE__ */ jsx(PaymentBlockingPanel, {
|
|
3968
3942
|
eligibility: wizard.eligibility,
|
|
3969
3943
|
admission: wizard.admission,
|
|
3970
|
-
eligibilityLoading: wizard.
|
|
3971
|
-
eligibilityError: wizard.
|
|
3944
|
+
eligibilityLoading: wizard.paymentOptionsLoading,
|
|
3945
|
+
eligibilityError: wizard.paymentOptionsError,
|
|
3972
3946
|
paysNothing: wizard.paymentDecision.paysNothing,
|
|
3973
3947
|
email: wizard.formData.email,
|
|
3974
3948
|
ticketsCount: wizard.ticketsCount,
|
|
@@ -3986,8 +3960,8 @@ function PaymentSelectionContent(props) {
|
|
|
3986
3960
|
onSelectionChange: wizard.handlePaymentSelectionChange,
|
|
3987
3961
|
eligibility: wizard.eligibility,
|
|
3988
3962
|
admission: wizard.admission,
|
|
3989
|
-
eligibilityLoading: wizard.
|
|
3990
|
-
eligibilityError: wizard.
|
|
3963
|
+
eligibilityLoading: wizard.paymentOptionsLoading,
|
|
3964
|
+
eligibilityError: wizard.paymentOptionsError,
|
|
3991
3965
|
onRequestLogin: () => wizard.setShowMagicLinkModal(true),
|
|
3992
3966
|
decision: wizard.paymentDecision
|
|
3993
3967
|
}),
|
|
@@ -3997,12 +3971,12 @@ function PaymentSelectionContent(props) {
|
|
|
3997
3971
|
] });
|
|
3998
3972
|
}
|
|
3999
3973
|
/**
|
|
4000
|
-
* The note under the ways to pay, in both payment layouts. Several
|
|
4001
|
-
*
|
|
4002
|
-
* come with its ways to pay). One booking: why it's paid in full.
|
|
3974
|
+
* The note under the ways to pay, in both payment layouts. Several runs: that
|
|
3975
|
+
* passes and memberships are for one run at a time (a date's pass and membership
|
|
3976
|
+
* notes come with its ways to pay). One booking: why it's paid in full.
|
|
4003
3977
|
*/
|
|
4004
3978
|
function PaymentStepNote({ wizard }) {
|
|
4005
|
-
const note = wizard.severalItems === null ? wizard.paymentInFullNote : selectionEntitlementNote(wizard.severalItems
|
|
3979
|
+
const note = wizard.severalItems === null ? wizard.paymentInFullNote : selectionEntitlementNote(wizard.severalItems);
|
|
4006
3980
|
return note ? /* @__PURE__ */ jsx("p", {
|
|
4007
3981
|
className: "er-entitlement-note",
|
|
4008
3982
|
children: note
|
|
@@ -4054,6 +4028,11 @@ function TicketSelectionContent({ wizard, display }) {
|
|
|
4054
4028
|
kind: "waitlisted",
|
|
4055
4029
|
onBookForSomeoneElse: wizard.handleBookForSomeoneElse
|
|
4056
4030
|
}),
|
|
4031
|
+
wizard.portalAuthState === "authenticated" && wizard.existingRegistrationState.tag === "failed" && !isWaitlisted && /* @__PURE__ */ jsx("p", {
|
|
4032
|
+
role: "status",
|
|
4033
|
+
className: "er-text",
|
|
4034
|
+
children: "We couldn’t check whether you’ve already booked this date. If you have, this will be a separate booking."
|
|
4035
|
+
}),
|
|
4057
4036
|
/* @__PURE__ */ jsx(ClosedAdmissionNotice, { wizard }),
|
|
4058
4037
|
/* @__PURE__ */ jsx(TicketStepBookingCloseLine, { wizard }),
|
|
4059
4038
|
/* @__PURE__ */ jsx(TicketChooser, {
|
|
@@ -4068,6 +4047,7 @@ function TicketSelectionContent({ wizard, display }) {
|
|
|
4068
4047
|
* or another room or run might not need one.
|
|
4069
4048
|
*/
|
|
4070
4049
|
function selectionCouldChangePrice(wizard) {
|
|
4050
|
+
if (wizard.admission.kind === "closed" && wizard.admission.reason === "bookingsClosed") return false;
|
|
4071
4051
|
return wizard.selectedEventSlidingScale != null || wizard.visibleTicketTypes.length > 1 || wizard.roomChooser != null || wizard.severalItems === "runs";
|
|
4072
4052
|
}
|
|
4073
4053
|
/**
|
|
@@ -4138,6 +4118,7 @@ function EventRegistrationWizardContent(props) {
|
|
|
4138
4118
|
...wizard.selectionMode.kind === "several" ? {
|
|
4139
4119
|
mode: wizard.selectionMode,
|
|
4140
4120
|
selection: wizard.selection,
|
|
4121
|
+
pageDate: wizard.entry.kind === "pageDateAndMore" ? wizard.entry.event : null,
|
|
4141
4122
|
onToggle: wizard.handleSelectionToggle,
|
|
4142
4123
|
onJoinWaitlist: wizard.handleWaitlistChoose
|
|
4143
4124
|
} : { mode: wizard.selectionMode },
|
|
@@ -4187,7 +4168,7 @@ function SelectionFundingPayment(props) {
|
|
|
4187
4168
|
creditPreview: wizard.paymentDecision.preview,
|
|
4188
4169
|
signInPrompt: props.signInPrompt,
|
|
4189
4170
|
afterOptions: /* @__PURE__ */ jsx(EventDiscountCodeDisclosure, { wizard }),
|
|
4190
|
-
onChangeDates: wizard.
|
|
4171
|
+
onChangeDates: entryChoosesEvent(wizard.entry) ? wizard.handleChangeDates : void 0
|
|
4191
4172
|
}),
|
|
4192
4173
|
/* @__PURE__ */ jsx(PaymentStepNote, { wizard }),
|
|
4193
4174
|
/* @__PURE__ */ jsx(BundleSiteTerms, { wizard })
|
|
@@ -4439,7 +4420,6 @@ function EventRegistrationStepLayout(props) {
|
|
|
4439
4420
|
});
|
|
4440
4421
|
return /* @__PURE__ */ jsxs("div", {
|
|
4441
4422
|
className: "er-payment-layout er-payment-layout--no-sidebar",
|
|
4442
|
-
"data-room-chooser": wizard.roomChooser ? "" : void 0,
|
|
4443
4423
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
4444
4424
|
className: "er-payment-layout-main",
|
|
4445
4425
|
children: [
|
|
@@ -4730,7 +4710,8 @@ function useConfiguredEventRegistrationWizard(props) {
|
|
|
4730
4710
|
siteTerms: props.siteTerms,
|
|
4731
4711
|
pageNavigation: props.pageNavigation,
|
|
4732
4712
|
offeringNoun: props.offeringNoun,
|
|
4733
|
-
siteName: props.siteName
|
|
4713
|
+
siteName: props.siteName,
|
|
4714
|
+
datePageOffer: "addMoreDates"
|
|
4734
4715
|
});
|
|
4735
4716
|
}
|
|
4736
4717
|
function EventRegistrationWizard(props) {
|