@riverbankcms/sdk 0.179.0 → 0.181.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/_dts/{BlocksIslandsHydrator-DKwgs95u.d.ts → BlocksIslandsHydrator-CVCasDPz.d.ts} +1 -1
- package/dist/_dts/{Page-lWenra5i.d.ts → Page-Dtj2Ui3S.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-BRxhRw4I.d.ts → SdkPreviewMode-D1f_60WW.d.ts} +3 -2
- package/dist/_dts/{client-qWn7xAwJ.d.ts → client-Chr9pNVW.d.ts} +288 -121
- package/dist/_dts/{content-types-DL6GIvTm.d.ts → content-types-kjccgopX.d.ts} +2 -2
- package/dist/_dts/{contracts-CzWyAiJj.d.ts → contracts-BodaiS00.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-CBKd0cJ4.d.ts → generatePageMetadata-BS6kaJFp.d.ts} +2 -2
- package/dist/_dts/{index-DCiSHd-C.d.ts → index-Brl6_I2j.d.ts} +5 -4
- package/dist/_dts/{index-CaCum9mM.d.ts → index-CJkefwYh.d.ts} +2 -2
- package/dist/_dts/{index-7CDBZGb-.d.ts → index-D1WpKwQe.d.ts} +1 -1
- package/dist/_dts/{index-BU9uAkHB.d.ts → index-DG0OvBs0.d.ts} +8 -8
- package/dist/_dts/{index-BYnG_vF5.d.ts → index-Diqt0PvG.d.ts} +1 -1
- package/dist/_dts/{index-CZgJrhzT.d.ts → index-Dy50xUMK.d.ts} +2 -2
- package/dist/_dts/{loadContent-CPKbFQyq.d.ts → loadContent-BgxshKrA.d.ts} +7 -7
- package/dist/_dts/{request-BjKBCS7t.d.ts → request-CA0izds5.d.ts} +4561 -1390
- package/dist/_dts/{resolveBlockData-DupbMCup.d.ts → resolveBlockData-ChQmwEd3.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BqNyCHi8.d.ts → resolvePageContent-BvGyvblj.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 +84 -53
- 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-YcsIjvn1.d.ts → serviceBookingOutline-BgFbJQhU.d.ts} +8 -7
- package/dist/_dts/{types-B7e6Lmo5.d.ts → types-CQrsP1x_.d.ts} +3 -3
- package/dist/_dts/{types-CT-KOxl_.d.ts → types-CgS3xLk8.d.ts} +7 -2
- package/dist/_dts/{types-BOxSq-Bq.d.ts → types-R65DKjPn.d.ts} +9 -8
- package/dist/_dts/{validation-Dz6qccue.d.ts → validation-6LTIbuBA.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-1XifJg6V.mjs → BlocksIslandsHydrator-DqZPz6oW.mjs} +19 -19
- package/dist/client/{BookingMailingListNote-BsbEgagJ.mjs → BookingMailingListNote-uWfR2kaG.mjs} +177 -70
- package/dist/client/{BookingQuestionFields-C8IbeLHj.mjs → BookingQuestionFields-CyNIKw6k.mjs} +23 -82
- package/dist/client/CalendarAction-D_Glwvz2.mjs +105 -0
- package/dist/client/{CalendarNavigationChevron-Bbqij1XQ.mjs → CalendarNavigationChevron-BGCX3zwG.mjs} +6 -6
- package/dist/client/{CheckboxChoice-BZPLCgTU.mjs → CheckboxChoice-C8i4NraK.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-uA9H8LIL.mjs → DemoBookingPortalAccess-DFLPyuqe.mjs} +18 -10
- package/dist/client/{EventCalendar.client-yoSI77ov.mjs → EventCalendar.client-zDL4-t-B.mjs} +10 -10
- package/dist/client/{EventCombined.client-HeCNlliq.mjs → EventCombined.client-uciDKLID.mjs} +60 -10
- package/dist/client/{EventEmbeddedCheckoutStep-BDnicDM6.mjs → EventEmbeddedCheckoutStep-BGkbUhuw.mjs} +1 -1
- package/dist/client/{EventItem-Duhk1vnF.mjs → EventItem-CwzrjcRw.mjs} +8 -7
- package/dist/client/{EventListWeekNavigation-BiutEqPK.mjs → EventListWeekNavigation-ChvcnPma.mjs} +1 -1
- package/dist/client/{EventListing.client-B5ln77jG.mjs → EventListing.client-DA57Qoyx.mjs} +3 -3
- package/dist/client/{EventListing.view-hUDhNtMv.mjs → EventListing.view-DZ0qMFF4.mjs} +8 -211
- package/dist/client/{EventRegistrationPayment-DqtX1vB2.mjs → EventRegistrationPayment-DSqCJL8E.mjs} +1657 -403
- package/dist/client/{Page-ChJ2TGVk.mjs → Page-C7mygH_f.mjs} +536 -287
- package/dist/client/{ProtectedSubmitButton-De6AzhE6.mjs → ProtectedSubmitButton-BNnKuir8.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-CDBU31xW.mjs → SiteTermsAgreementField-B4z-e4Wq.mjs} +27 -24
- package/dist/client/{StepIndicator-JQA-VuEH.mjs → StepIndicator-Dn_DY4oY.mjs} +1 -1
- package/dist/client/{StepIndicator-2Dl9zon2.mjs → StepIndicator-atfDU82W.mjs} +21 -13
- package/dist/client/{ThemedButton-CnSa7o-I.mjs → ThemedButton-PFOhXktM.mjs} +1 -33
- package/dist/client/{accessibleSurfaces-Wl8-_OVJ.mjs → accessibleSurfaces-n6kS6Hct.mjs} +77 -1
- package/dist/client/{accordion-B6SqU49k.mjs → accordion-CsW8U3ff.mjs} +1 -1
- package/dist/client/{booking-form.client-DrEOjQ3N.mjs → booking-form.client-cBWM392H.mjs} +442 -86
- package/dist/client/bookingCalendar--aWnqFDn.mjs +180 -0
- package/dist/client/{bookingForm-drZBwEZW.mjs → bookingForm-DgySpp6C.mjs} +4 -4
- package/dist/client/bookings.mjs +51 -15
- package/dist/client/{boxStyleClassNames-DEh45w16.mjs → boxStyleClassNames-BpGVdLFD.mjs} +2 -2
- package/dist/client/{carousel-C-YJliD-.mjs → carousel-DJoleFV3.mjs} +2 -2
- package/dist/client/{carousel.client-DMtGYTTM.mjs → carousel.client-BtLwHefX.mjs} +1 -1
- package/dist/client/{cart-acGFWK9R.mjs → cart-EO5o6uPH.mjs} +3 -3
- package/dist/client/{cart.client-BzlOGP2j.mjs → cart.client-D_gPw45z.mjs} +1 -1
- package/dist/client/{checkout-SEontwhy.mjs → checkout-NVfZW0kR.mjs} +3 -3
- package/dist/client/{checkout.client-C0Qvh-d4.mjs → checkout.client-DD3JuqOy.mjs} +1 -1
- package/dist/client/{checkoutUrls-yUKeq1N9.mjs → checkoutUrls-z2gXvlGw.mjs} +1 -1
- package/dist/client/client.mjs +306 -196
- package/dist/client/constants-CoOkvw__.mjs +100 -0
- package/dist/client/{context-DTrwaQtg.mjs → context-CRhn9qzS.mjs} +922 -388
- package/dist/client/{dateFormatting-Cg8E1r9l.mjs → dateFormatting-BnWB4L1s.mjs} +15 -25
- package/dist/client/{demoPortalMagicLink-D0kOJYOX.mjs → demoPortalMagicLink-CWDGSTBu.mjs} +2 -3
- package/dist/client/{enhanceHeaderSection-DyrpZ7ks.mjs → enhanceHeaderSection-tdP_-Z9o.mjs} +4 -5
- package/dist/client/{event-registration.client-RLZQWi2V.mjs → event-registration.client-D7YYKySQ.mjs} +2084 -1640
- package/dist/client/{eventCalendar-CphYnImh.mjs → eventCalendar-CsAfu5d0.mjs} +4 -4
- package/dist/client/{eventCombined-BvqjASB_.mjs → eventCombined-VXJB5CoS.mjs} +4 -4
- package/dist/client/{eventListing-BaNAoC_M.mjs → eventListing-B3KIZNfY.mjs} +4 -4
- package/dist/client/{eventRegistration-COMHoRl6.mjs → eventRegistration-BP-dEk1c.mjs} +4 -4
- package/dist/client/{form-DyH2juYT.mjs → form-DM8Zbxbv.mjs} +3 -3
- package/dist/client/{form.client-DBwzkB0M.mjs → form.client-e2z_Tlgk.mjs} +5 -5
- package/dist/client/{form.parts-CY4kX3mh.mjs → form.parts-Ctljy1a3.mjs} +3 -3
- package/dist/client/gifting/client.mjs +32 -29
- package/dist/client/{gifting-CIx4V378.mjs → gifting-DWIsqQru.mjs} +4 -4
- package/dist/client/{gifting.client-BEVPpzJM.mjs → gifting.client-QsSWF0uA.mjs} +5 -5
- package/dist/client/{gifting.parts-VnORjnZK.mjs → gifting.parts-CedLgwa_.mjs} +2 -2
- package/dist/client/{headerSection-DGcJfRS8.mjs → headerSection-DAkRkwb-.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-BvEDkjiD.mjs → newsletter-form.client-WYja9-WN.mjs} +7 -7
- package/dist/client/{newsletter-form.interactive-DCO1lErD.mjs → newsletter-form.interactive-RuM86VAv.mjs} +37 -44
- package/dist/client/{newsletter-form.parts-BIy4IUT3.mjs → newsletter-form.parts-2petDnWv.mjs} +2 -2
- package/dist/client/{newsletterForm-CoTXDNFS.mjs → newsletterForm-BUbXdA_e.mjs} +3 -3
- package/dist/client/{lookSurfaces-IqT_SVnX.mjs → noop-Dl4mZ-rr.mjs} +257 -49
- package/dist/client/portal/client.mjs +11779 -6745
- package/dist/client/portalOrders-COGn4BKG.mjs +596 -0
- package/dist/client/portalRoutes-D72yvtDh.mjs +862 -0
- package/dist/client/{product-detail.client-YHQ2aKX1.mjs → product-detail.client-pOAryevt.mjs} +1 -1
- package/dist/client/{product-list.client-DxoZw1vF.mjs → product-list.client-CcUpUiud.mjs} +1 -1
- package/dist/client/{productDetail-DjuFvkey.mjs → productDetail-BZJCfqat.mjs} +3 -3
- package/dist/client/{productList-DE9GEFoZ.mjs → productList-CiRs3mNb.mjs} +3 -3
- package/dist/client/{propsDecoder-Cyag_HOs.mjs → propsDecoder--uHW4tFM.mjs} +2 -2
- package/dist/client/{registry.server-BPwV-0Pp.mjs → registry.server-CDNNd8wC.mjs} +318 -235
- 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-NrRqDeOg.mjs → richText-coerce-CQGE_wHV.mjs} +2 -1
- package/dist/client/{routeIslandApiConfig-BWq5gKFK.mjs → routeIslandApiConfig-BtCg87-N.mjs} +1 -1
- package/dist/client/{runtimeResponse-D2j2-mOk.mjs → runtimeResponse-DL_ARBpa.mjs} +1 -1
- package/dist/client/{runtimeResponse-DtWSfWSZ.mjs → runtimeResponse-Ds9cmBUf.mjs} +1 -1
- package/dist/client/{shop-C3wM0Hr4.mjs → shop-Rx_gEMK8.mjs} +3 -3
- package/dist/client/{shop-commerce-34YvcpbX.mjs → shop-commerce-D8evQnMT.mjs} +53 -16
- package/dist/client/{shop-commerce-store-B7xHksOs.mjs → shop-commerce-store-C9PcsSTj.mjs} +22 -5
- package/dist/client/{shop-discount-apply.state-BiBnozfO.mjs → shop-discount-apply.state-D5CtGfJI.mjs} +2 -2
- package/dist/client/{shop.client-C0v88nLd.mjs → shop.client-D4lzQ9oY.mjs} +17 -39
- package/dist/client/{shopShared-Ct-BRNez.mjs → shopShared-BVbq7Nm-.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/src-Al4ooTl_.mjs +164 -0
- package/dist/client/{src-CCtanNlD.mjs → src-ZSqRK3dD.mjs} +345 -92
- package/dist/client/{timetableModel-lhE29TNT.mjs → timetableModel-BQJrSK0K.mjs} +205 -80
- package/dist/client/{shop-add-feedback-DvC2kP1K.mjs → urlParams-C2QHo1Pa.mjs} +1 -42
- package/dist/client/{useAvailableSlots-BelJviOT.mjs → useAvailableSlots-Dm3lKJKR.mjs} +3 -24
- package/dist/client/{useDiscountCodeUi-rQRE1-Ho.mjs → useDiscountCodeUi-klgfGn7f.mjs} +1 -1
- package/dist/client/{useEventPagination-C4rS2Xxl.mjs → useEventPagination-Jnjt7_ly.mjs} +8 -8
- package/dist/client/{view-LJVHVqsy.mjs → view-CC_yQLSA.mjs} +4 -4
- package/dist/client/{wizardSteps-CNDsxeJH.mjs → wizardSteps-BliJOzEX.mjs} +2512 -675
- package/dist/preview-next/before-render.mjs +1 -0
- package/dist/preview-next/client/{LocationPickerEnvironment-BHAT81Wx.mjs → LocationPickerEnvironment-BW3dRFIv.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-B52hkdIZ.mjs → MapLibreEditMap-Db9BHyXh.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-C4TtBPN-.mjs → PageSectionToolbar-BhL0uADo.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-D6fkE59-.mjs → PreviewEditorSidebar-Ct8eIm0i.mjs} +8 -7
- package/dist/preview-next/client/{PreviewEditorUI-amcDlj0O.mjs → PreviewEditorUI-BS32G4V9.mjs} +5 -5
- package/dist/preview-next/client/{PreviewShell-DeQjx4zk.mjs → PreviewShell-RL0WfZXD.mjs} +7 -7
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Cx0SXnoX.mjs → SdkPreviewModeRuntime-MK_gHeGy.mjs} +39 -7
- package/dist/preview-next/client/{lucide-react-McYZeSMb.mjs → lucide-react-00FF_oar.mjs} +13 -1
- package/dist/preview-next/client/{previewAssistantSlot-aqpU34WI.mjs → previewAssistantSlot-CQyS8pcq.mjs} +10318 -3719
- package/dist/preview-next/client/{previewChromeRoot-D3Gy_Rs0.mjs → previewChromeRoot-BSxp3Mfu.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-Dzx_RrN7.mjs → sdk-runtime-DKnTzy74.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-LHedw83e.mjs → siteStyleAccess-BlmbvbLN.mjs} +37 -25
- package/dist/preview-next/client/{useAutosaveStatus-DpSd9aVk.mjs → useAutosaveStatus-D-7GwZOQ.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-BGZn5AT1.mjs → useOpenBlockForSetup-BNZtGM5g.mjs} +2 -2
- package/dist/preview-next/container-responsive.css +292 -170
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DnL-FgSV.mjs → route-contract-R3PcMmax.mjs} +114 -37
- package/dist/server/{Block.shared-BEbq6EwO.mjs → Block.shared-CniF9tSu.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-DFEM1a85.mjs → ThemeScopeCore-BQWsnGT6.mjs} +133 -120
- package/dist/server/{accessibleSurfaces-CM3QANtw.mjs → accessibleSurfaces-WPzUAHp4.mjs} +33 -2
- package/dist/server/accordions-By_0Ykks.mjs +111 -0
- package/dist/server/{bindings-Bly0dRs7.mjs → bindings-DxojjtK3.mjs} +7 -7
- package/dist/server/{client-CGJ2ztYp.mjs → client-CDndhbYO.mjs} +1412 -1307
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/constants-VyF5nEhL.mjs +1474 -0
- package/dist/server/{customCss-BZ8YSrQg.mjs → customCss-C9kgPHvr.mjs} +41 -5
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-BkK1w3QQ.mjs → loadContent-BKstMBmX.mjs} +7 -4
- package/dist/server/{loadPage-DTLe0FEs.mjs → loadPage-IgNnZaqr.mjs} +3 -3
- package/dist/server/{lookMediaFrame-CaH018pK.mjs → lookMediaFrame-TFjgNG61.mjs} +74 -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-quBYlSKD.mjs} +2 -2
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +170 -104
- package/dist/server/{overrideResolution-Uy9Zp2Ks.mjs → overrideResolution-CCaAPpIa.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-JzxBnqfV.mjs → pageRenderPlan-B7iULvKe.mjs} +15 -12
- package/dist/server/{pageRuntimeSupport-DyNSd2Yj.mjs → pageRuntimeSupport-BytMroxn.mjs} +9 -5
- package/dist/server/{pageShared-DU4ETFPS.mjs → pageShared-Dcs_XTIO.mjs} +836 -624
- package/dist/server/{parseThemeForPersistence-DOsfofCy.mjs → parseThemeForPersistence-Bihl4W5K.mjs} +3 -2
- package/dist/server/{portal-B4JVkdjc.mjs → portal-CMW_b9mG.mjs} +62 -46
- package/dist/server/portal.mjs +3 -3
- package/dist/server/portalQuestions-oUyohgL9.mjs +225 -0
- package/dist/server/{prebuild-8jNtDXmS.mjs → prebuild-agaH-vZV.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-xeMG42aw.mjs → prefetchBlockData-DwpRjqw4.mjs} +5 -3
- package/dist/server/{registry-DH1VrsCl.mjs → registry-DM9dHfDC.mjs} +582 -526
- 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-BN8tweTx.mjs → resolveBlockData-CinHGf8l.mjs} +39 -31
- package/dist/server/{resolveButtonColourStates--6yJp9Tq.mjs → resolveButtonColourStates-B0O1IM16.mjs} +2 -1028
- package/dist/server/{resolvePageContent-DnM16_f9.mjs → resolvePageContent-BWKUZUIn.mjs} +1 -1
- package/dist/server/{responseMedia-F-ElH2Rd.mjs → responseMedia-IfH65QAH.mjs} +57 -2
- package/dist/server/routing.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-B-FezJmH.mjs → servicePageContent-BBBhOtdE.mjs} +31 -26
- package/dist/server/theme-bridge.mjs +3 -2
- 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-3jOzYdPL.mjs → validation-DG5jX3jH.mjs} +70 -17
- package/dist/server/{version-8t0o6_jd.mjs → version-CipbxPHL.mjs} +1 -1
- package/dist/server/video-Cdr3wh-q.mjs +272 -0
- package/dist/styles/index.css +3446 -3796
- package/package.json +2 -1
- package/dist/_dts/index-DVSipdrT.d.ts +0 -101
- package/dist/client/TabBarFragment-DlKQRhP4.mjs +0 -56
- package/dist/client/checkoutRoute-DKlZRNZD.mjs +0 -22
- package/dist/client/constants-4o4_hl34.mjs +0 -6
- package/dist/client/creditProducts-BQ1t1erI.mjs +0 -266
- package/dist/client/formatDate-CTEN7gxW.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,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as EventPaymentState, $i as NonNegativeCents, An as BookingSlotView, At as SelectionRequirementsLayout, Bn as BookingFieldValue, Br as PublicEvent, Bt as BoundBlockApiClient, Cn as BookingFlowFeedback, Ct as RunPricingChoices, Dn as BookingFlowView, Dt as CopyPart, En as BookingFlowStepId, Er as SelectionAttendance, Et as CombinationWorking, F as BookingFormInteractiveIslandProps, Fn as LoadState, Fr as DirectCheckoutCollectionOptionKind, G as RegistrationEntry, Gi as DisplayContext, H as BookingQuestionsModel, Hn as getBookingServiceSlidingScale, Ht as DiscountApplyLine, Ir as EventCheckoutReturnRequest, It as EventSourceRecovery, J as PortalProfile, Ji as UtcIsoDateTimeString, Jn as BrowserReadAuthority, K as PortalAuthState, Ki as ZoneLabel, L as EventRegistrationDirectPaymentOption, Lr as EventRegistrationPaymentSubject, Lt as BookingPageKind, Mn as BookingSubmitOptions, Mt as RegistrationAdmission, Nt as RegistrationTicketContinuation, On as BookingResourceView, Ot as StateUpdate, Pt as TicketSelectionPurpose, Q as EligibilityData, R as EventRegistrationDirectPaymentSelectionState, Ri as MailingListRuntimeContext, Si as EventSelectionFundingPick, Sn as BookingFlowActionResult, St as RegistrationSelectionMode, Tn as BookingFlowStep, Tt as SeveralItemsKind, U as RegistrationFlowState, Un as ProtectedSubmission, Ut as DiscountContext, V as BookingPaymentSelectionViewModel, Vn as BookingQuestionsPaymentSnapshot, Vt as AutoAppliedDiscountPreview, W as DatePageOffer, Wi as BookingConsent, X as ExistingRegistrationLookupState, Y as EligibilityLookupState, Yi as AppointmentBookingReview, Yn as BlockSiteTerms, Z as SelectableEventTicketType, _i as CombinationPricePlan, an as BookingFormConfig$1, at as PaymentSelection, bi as CurrencyCode, bt as BookingSelection, cn as BookingSelectedCollectionOptionKind, ct as RegistrationAttendanceMode, dt as RegistrationStep, ea as PositiveCents, et as EventRegistrationClientProps, fa as BlockButtonRole, fn as BookingPaymentAvailability, ft as RegistrationSubject, gi as RoomOptionChoice, hi as RoomChoice, ht as OccurrenceContext, in as EventTicketLineSummary, it as GuestErrors, jn as BookingSubmitActionResult, jt as RegistrationPresentation, kn as BookingSlotSelection, kt as WaitlistInvitation, ln as BookingFormServiceCategory, lt as RegistrationEvent, mi as EventRegistrationPricingOption, mn as BookingPurchasablePackagesModel, mt as FormData, nt as EventTicketSelectionLine, on as BookingFormData$1, ot as PaymentStatusRecoveryState, pi as BookingQuestionsSubmissionFailure, pn as BookingPaymentChoice, pt as ThemedButtonProps, q as PortalCreditState, qn as BlockApiConfig, rn as EventEmbeddedCheckout, rt as Guest, sn as BookingFormService, st as PaymentStepState, tt as EventRegistrationPaymentMethod, un as BookingFormField$1, ut as RegistrationResult, vi as EventRegistrationErrorAction, vn as BookingAppointmentPackagesModel, wn as BookingFlowStatus, wt as SelectionPaymentSummary, xi as EventSelectionFundingOption, xn as BookingFieldView, xt as RegistrationSelection, yi as PriceReductionSummary, yt as EventRegistrationPageSurfaceSubject, z as EventRegistrationSiteCreditPreview, zn as BookingAdmission, zt as BlockApiClient } from "./request-CA0izds5.js";
|
|
2
2
|
import { z as z$1 } from "zod";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import React, { ReactNode } from "react";
|
|
@@ -91,12 +91,19 @@ declare function useSiteTermsAgreement(options: Readonly<{
|
|
|
91
91
|
};
|
|
92
92
|
//#endregion
|
|
93
93
|
//#region .cache/declarations/blocks/src/system/runtime/nodes/booking-form.payment-confirmation.d.ts
|
|
94
|
-
type
|
|
94
|
+
type BookingConfirmationService = Readonly<{
|
|
95
95
|
serviceTitle: string;
|
|
96
96
|
durationMinutes: number;
|
|
97
97
|
priceAmount: number;
|
|
98
98
|
priceCurrency: string;
|
|
99
99
|
}>;
|
|
100
|
+
/** What the last step shows when pressing the button leads to card payment. */
|
|
101
|
+
type BookingPaymentConfirmationSummary = (BookingConfirmationService & Readonly<{
|
|
102
|
+
kind: 'per_session';
|
|
103
|
+
}>) | (BookingConfirmationService & Readonly<{
|
|
104
|
+
kind: 'buy_package';
|
|
105
|
+
packageName: string;
|
|
106
|
+
}>);
|
|
100
107
|
//#endregion
|
|
101
108
|
//#region .cache/declarations/blocks/src/system/runtime/hooks/useManualDiscountPreview.d.ts
|
|
102
109
|
/** A preview belongs to the exact code, email and basket; late responses cannot price a newer draft. */
|
|
@@ -194,7 +201,8 @@ type BookingFieldsModel = Readonly<{
|
|
|
194
201
|
type BookingPackagePaymentModel = Readonly<{
|
|
195
202
|
choice: BookingPaymentChoice;
|
|
196
203
|
purchasablePackages: BookingPurchasablePackagesModel;
|
|
197
|
-
availability: BookingPaymentAvailability;
|
|
204
|
+
availability: BookingPaymentAvailability; /** Signed out, the service takes packages: the date and payment steps offer sign-in so a package can pay. */
|
|
205
|
+
packageSignInOffered: boolean;
|
|
198
206
|
}>;
|
|
199
207
|
type BookingPaymentModel = BookingPackagePaymentModel & (Readonly<{
|
|
200
208
|
kind: "unsupported";
|
|
@@ -255,7 +263,8 @@ type BookingFlowActions = Readonly<{
|
|
|
255
263
|
submit: (options?: BookingSubmitOptions) => Promise<BookingSubmitActionResult>; /** Deliberately accept the specific review displayed by this consumer. Stale reviews are rejected. */
|
|
256
264
|
acceptReview: (review: AppointmentBookingReview, options?: BookingSubmitOptions) => Promise<BookingSubmitActionResult>;
|
|
257
265
|
reset: () => void;
|
|
258
|
-
clearFeedback: () => void;
|
|
266
|
+
clearFeedback: () => void; /** Reads the client's own packages again, after the read failed. */
|
|
267
|
+
retryPackages: () => void;
|
|
259
268
|
}>;
|
|
260
269
|
type HeadlessBookingFlow = Readonly<{
|
|
261
270
|
dateContext: DisplayContext;
|
|
@@ -275,7 +284,8 @@ type HeadlessBookingFlow = Readonly<{
|
|
|
275
284
|
resources: BookingResourcesModel;
|
|
276
285
|
availability: BookingAvailabilityModel;
|
|
277
286
|
fields: BookingFieldsModel;
|
|
278
|
-
payment: BookingPaymentModel;
|
|
287
|
+
payment: BookingPaymentModel; /** Whether the selected service can be booked online at all, with how to reach the business when it can't. */
|
|
288
|
+
admission: BookingAdmission;
|
|
279
289
|
discount: BookingDiscountModel; /** During-booking questions for the selected service, kept apart from `fields`. */
|
|
280
290
|
questions: BookingQuestionsModel;
|
|
281
291
|
questionFieldErrors: BookingQuestionsSubmissionFailure['questionFieldErrors'];
|
|
@@ -294,6 +304,31 @@ type HeadlessBookingPaymentSelectionStepProps = Readonly<{
|
|
|
294
304
|
presentation?: BookingPresentation;
|
|
295
305
|
}>;
|
|
296
306
|
//#endregion
|
|
307
|
+
//#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/registrationRooms.state.d.ts
|
|
308
|
+
type RoomOptionView = Readonly<{
|
|
309
|
+
key: string;
|
|
310
|
+
choice: RoomOptionChoice;
|
|
311
|
+
title: string;
|
|
312
|
+
detail: string | null;
|
|
313
|
+
priceCents: number;
|
|
314
|
+
each: boolean;
|
|
315
|
+
people: number;
|
|
316
|
+
maxPeople: number;
|
|
317
|
+
placesLeft: string | null; /** They've chosen this, and it's no longer there to have. */
|
|
318
|
+
gone: boolean;
|
|
319
|
+
}>;
|
|
320
|
+
type RoomKindView = Readonly<{
|
|
321
|
+
kindId: string;
|
|
322
|
+
name: string;
|
|
323
|
+
description: string;
|
|
324
|
+
photos: readonly Readonly<{
|
|
325
|
+
src: string;
|
|
326
|
+
alt: string;
|
|
327
|
+
}>[];
|
|
328
|
+
options: readonly RoomOptionView[];
|
|
329
|
+
fullyBooked: boolean;
|
|
330
|
+
}>;
|
|
331
|
+
//#endregion
|
|
297
332
|
//#region .cache/declarations/sdk/src/bookings/types.d.ts
|
|
298
333
|
/**
|
|
299
334
|
* A bookable service (e.g., "30-minute consultation", "Hair cut")
|
|
@@ -350,7 +385,10 @@ type BookingFormData<TCustomFieldId extends string = never> = BookingFormData$1<
|
|
|
350
385
|
* Data submitted to create a booking
|
|
351
386
|
*/
|
|
352
387
|
interface BookingSubmissionData {
|
|
353
|
-
|
|
388
|
+
purchase?: Readonly<{
|
|
389
|
+
kind: 'pass';
|
|
390
|
+
productId: string;
|
|
391
|
+
}>;
|
|
354
392
|
formId: string;
|
|
355
393
|
serviceId: string;
|
|
356
394
|
resourceId?: string;
|
|
@@ -400,6 +438,14 @@ type EventRegistrationQuestionsModel = BookingQuestionsModel & Readonly<{
|
|
|
400
438
|
/** The answers this checkout sends, kept so a payment return can put them back for the same person. */paymentSnapshot: BookingQuestionsPaymentSnapshot | undefined;
|
|
401
439
|
}>;
|
|
402
440
|
//#endregion
|
|
441
|
+
//#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/registrationDiscountView.state.d.ts
|
|
442
|
+
/**
|
|
443
|
+
* Whether the payment step offers a code for the way the visitor is paying. Codes take money off a
|
|
444
|
+
* card payment only, so there's no code field while a pass or membership is chosen, whether it's
|
|
445
|
+
* already owned or bought with the booking. Choosing Pay by card brings the field back.
|
|
446
|
+
*/
|
|
447
|
+
type RegistrationDiscountAccess = 'card' | 'notOffered';
|
|
448
|
+
//#endregion
|
|
403
449
|
//#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts
|
|
404
450
|
type EventRegistrationSubmitResult = Readonly<{
|
|
405
451
|
ok: true;
|
|
@@ -426,7 +472,7 @@ type EventRegistrationSubmitResult = Readonly<{
|
|
|
426
472
|
ok: false;
|
|
427
473
|
reason: 'submission-failed';
|
|
428
474
|
}> & BookingQuestionsSubmissionFailure);
|
|
429
|
-
type EventRegistrationSubmit = (method:
|
|
475
|
+
type EventRegistrationSubmit = (method: EventRegistrationPaymentMethod, membershipId?: string, selection?: PaymentSelection) => Promise<EventRegistrationSubmitResult>;
|
|
430
476
|
//#endregion
|
|
431
477
|
//#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/closedEarlyCopy.d.ts
|
|
432
478
|
type ClosedEarlyCopy = Readonly<{
|
|
@@ -448,6 +494,50 @@ type FreshBookingClosure = Readonly<{
|
|
|
448
494
|
startsAt: string;
|
|
449
495
|
}>;
|
|
450
496
|
//#endregion
|
|
497
|
+
//#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/selectionFundingView.d.ts
|
|
498
|
+
type FundingOptionRow = Readonly<{
|
|
499
|
+
key: string;
|
|
500
|
+
pick: EventSelectionFundingPick; /** The card option a money row chooses as well, when the visitor picks between several. */
|
|
501
|
+
card: DirectCheckoutCollectionOptionKind | null;
|
|
502
|
+
label: string;
|
|
503
|
+
details: readonly string[];
|
|
504
|
+
price: string | null;
|
|
505
|
+
selected: boolean;
|
|
506
|
+
}>;
|
|
507
|
+
type FundingSummaryLine = Readonly<{
|
|
508
|
+
key: string;
|
|
509
|
+
label: string;
|
|
510
|
+
note: string | null;
|
|
511
|
+
value: string;
|
|
512
|
+
}>;
|
|
513
|
+
type FundingSummaryTotal = Readonly<{
|
|
514
|
+
key: string;
|
|
515
|
+
label: string;
|
|
516
|
+
value: string;
|
|
517
|
+
total: boolean;
|
|
518
|
+
}>;
|
|
519
|
+
/** "Your booking" for a pass or membership option. The money option keeps the several-items summary. */
|
|
520
|
+
type FundedSummary = Readonly<{
|
|
521
|
+
caption: string;
|
|
522
|
+
lines: readonly FundingSummaryLine[];
|
|
523
|
+
totals: readonly FundingSummaryTotal[];
|
|
524
|
+
}>;
|
|
525
|
+
type SelectionFundingView = Readonly<{
|
|
526
|
+
option: EventSelectionFundingOption;
|
|
527
|
+
rows: readonly FundingOptionRow[]; /** Null for the money option, which keeps the several-items summary and its own button. */
|
|
528
|
+
summary: FundedSummary | null;
|
|
529
|
+
buttonText: string | null; /** The whole card charge for a pass or membership option; null for the money option. */
|
|
530
|
+
cardCents: number | null; /** Whether submitting goes on to take a payment, for the processing screen. */
|
|
531
|
+
takesPayment: boolean; /** Buying a pass or membership agrees to the business's terms of sale. */
|
|
532
|
+
termsSurface: 'primary' | 'commerce'; /** Why only money options show. */
|
|
533
|
+
note: string | null;
|
|
534
|
+
/**
|
|
535
|
+
* How a pass or membership option's money is collected, as submit sends it;
|
|
536
|
+
* null for the money option, whose card step decides, and when nothing is collected.
|
|
537
|
+
*/
|
|
538
|
+
collection: DirectCheckoutCollectionOptionKind | null;
|
|
539
|
+
}>;
|
|
540
|
+
//#endregion
|
|
451
541
|
//#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts
|
|
452
542
|
type EventRegistrationDetailsCompleteResult = Readonly<{
|
|
453
543
|
ok: true;
|
|
@@ -468,7 +558,8 @@ type UseEventRegistrationWizardOptions = Readonly<{
|
|
|
468
558
|
siteTerms?: BlockSiteTerms;
|
|
469
559
|
offeringNoun?: EventRegistrationClientProps['offeringNoun'];
|
|
470
560
|
pageNavigation?: EventRegistrationClientProps['pageNavigation'];
|
|
471
|
-
siteName?: string;
|
|
561
|
+
siteName?: string; /** Whether a date's own page lists the class's other dates after its own. */
|
|
562
|
+
datePageOffer: DatePageOffer;
|
|
472
563
|
}>;
|
|
473
564
|
declare function useEventRegistrationWizard(options: UseEventRegistrationWizardOptions): {
|
|
474
565
|
handOff?: Readonly<{
|
|
@@ -479,7 +570,31 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
479
570
|
}>;
|
|
480
571
|
dismissHandOff?: () => void;
|
|
481
572
|
handOffBusinessName?: string;
|
|
482
|
-
handOffOfferingLabel?: string;
|
|
573
|
+
handOffOfferingLabel?: string; /** The rooms step, on an event with rooms; null otherwise. */
|
|
574
|
+
roomChooser: {
|
|
575
|
+
view: Readonly<{
|
|
576
|
+
intro: string;
|
|
577
|
+
kinds: readonly RoomKindView[];
|
|
578
|
+
stayLines: readonly string[];
|
|
579
|
+
note: string | null;
|
|
580
|
+
splitWarning: string | null;
|
|
581
|
+
notice: string | null;
|
|
582
|
+
noticeStay: readonly string[];
|
|
583
|
+
takeOff: Readonly<{
|
|
584
|
+
label: string;
|
|
585
|
+
choices: readonly RoomChoice[];
|
|
586
|
+
}> | null;
|
|
587
|
+
people: number;
|
|
588
|
+
totalCents: number | null;
|
|
589
|
+
totalNote: string | null;
|
|
590
|
+
priceNote: string | null;
|
|
591
|
+
}>;
|
|
592
|
+
choices: readonly RoomChoice[]; /** The places without a room. */
|
|
593
|
+
dayOptions: readonly EventRegistrationPricingOption[];
|
|
594
|
+
setRoomChoices: (choices: readonly RoomChoice[]) => void;
|
|
595
|
+
setDayLines: (lines: readonly EventTicketSelectionLine[]) => void;
|
|
596
|
+
} | null; /** What can be listed as a ticket: an event's room prices can only be chosen through its rooms. */
|
|
597
|
+
listableTicketTypes: readonly EventRegistrationPricingOption[];
|
|
483
598
|
api: BoundBlockApiClient;
|
|
484
599
|
nowIso: UtcIsoDateTimeString; /** Whether the clock has stopped this visitor starting a booking on this page. */
|
|
485
600
|
bookingClosure: FreshBookingClosure;
|
|
@@ -494,9 +609,9 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
494
609
|
canShowDirectPaymentOptions: boolean;
|
|
495
610
|
paysNothing: boolean;
|
|
496
611
|
offersEntitlements: boolean;
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
anchorId: string;
|
|
612
|
+
}; /** Why one booking's card payment is the whole price although its terms offer a deposit; null otherwise. */
|
|
613
|
+
paymentInFullNote: string | null;
|
|
614
|
+
anchorId: string; /** The page's occurrence while the booking is for the page's date, otherwise null. */
|
|
500
615
|
occurrenceContext: {
|
|
501
616
|
id: string;
|
|
502
617
|
seriesId: string;
|
|
@@ -505,7 +620,7 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
505
620
|
timeZone: string;
|
|
506
621
|
capacityOverride?: number | null | undefined;
|
|
507
622
|
overrides?: Record<string, unknown> | null | undefined;
|
|
508
|
-
} | null
|
|
623
|
+
} | null;
|
|
509
624
|
registrationTarget: Readonly<{
|
|
510
625
|
subject: RegistrationSubject;
|
|
511
626
|
selectedEventIds: readonly string[];
|
|
@@ -515,10 +630,10 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
515
630
|
subject: EventRegistrationPageSurfaceSubject | null | undefined;
|
|
516
631
|
events: readonly PublicEvent[];
|
|
517
632
|
maxTicketsNum: number; /** The new-booking choices, plus the run or date an invitation holds a place on. */
|
|
518
|
-
scopedEvents: RegistrationEvent[]; /** Everything on this page a booking could be for, whether or not it's still a choice. */
|
|
633
|
+
scopedEvents: readonly RegistrationEvent[]; /** Everything on this page a booking could be for, whether or not it's still a choice. */
|
|
519
634
|
recoveryEvents: RegistrationEvent[];
|
|
520
|
-
preSelectedEvent: RegistrationEvent | null;
|
|
521
|
-
|
|
635
|
+
preSelectedEvent: RegistrationEvent | null; /** Where booking starts on this page, and what it chooses from. */
|
|
636
|
+
entry: RegistrationEntry;
|
|
522
637
|
presentation: RegistrationPresentation;
|
|
523
638
|
flow: RegistrationFlowState;
|
|
524
639
|
setStep: (next: Exclude<RegistrationStep, 'success'>) => void;
|
|
@@ -529,8 +644,7 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
529
644
|
selection: RegistrationSelection;
|
|
530
645
|
selectionMode: RegistrationSelectionMode; /** The kind of several items chosen, or null for a selection of one. */
|
|
531
646
|
severalItems: SeveralItemsKind | null; /** One way of attending for every chosen item. */
|
|
532
|
-
attendance: SelectionAttendance; /**
|
|
533
|
-
selectionPayment: SelectionPayment; /** What each run's ticket choice is checked against when booking several runs. */
|
|
647
|
+
attendance: SelectionAttendance; /** What each run's ticket choice is checked against when booking several runs. */
|
|
534
648
|
runChoiceFacts: Readonly<{
|
|
535
649
|
places: number;
|
|
536
650
|
maxTickets: number;
|
|
@@ -555,7 +669,21 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
555
669
|
}> | null;
|
|
556
670
|
hint: string;
|
|
557
671
|
} | null;
|
|
558
|
-
combinationAwaitingVisitor: boolean;
|
|
672
|
+
combinationAwaitingVisitor: boolean;
|
|
673
|
+
/**
|
|
674
|
+
* The dates' ways to pay from the server and the visitor's pick; null for anything else, and
|
|
675
|
+
* for one date the card alone pays for, which keeps the card step.
|
|
676
|
+
*/
|
|
677
|
+
selectionFunding: Readonly<{
|
|
678
|
+
status: 'loading' | 'failed' | 'loaded';
|
|
679
|
+
view: SelectionFundingView | null;
|
|
680
|
+
dateCount: number;
|
|
681
|
+
notice: string | null;
|
|
682
|
+
choose: (row: Pick<FundingOptionRow, 'pick' | 'card'>) => void;
|
|
683
|
+
retry: () => void;
|
|
684
|
+
}> | null;
|
|
685
|
+
handleChangeDates: () => void;
|
|
686
|
+
paymentTermsSurface: "commerce" | "primary"; /** The payment step's list of what several items cost; null for one item. */
|
|
559
687
|
selectionPaymentSummary: SelectionPaymentSummary | null;
|
|
560
688
|
runChoices: Readonly<Record<string, Readonly<{
|
|
561
689
|
pricingOptionId: string | null;
|
|
@@ -644,25 +772,25 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
644
772
|
setShowMagicLinkModal: (show: boolean) => void;
|
|
645
773
|
handleLogout: () => void;
|
|
646
774
|
paymentStepState: PaymentStepState; /** Pay is off only because a typed code hasn't been applied yet, which the customer needs telling. */
|
|
647
|
-
paymentHeldForCode: boolean;
|
|
648
|
-
passPriceAfterCodeCents: number | null; /** A membership's first payment after its discount; it renews at the regular price. */
|
|
649
|
-
membershipFirstPaymentCents: number | null;
|
|
775
|
+
paymentHeldForCode: boolean;
|
|
650
776
|
handlePaymentSelectionChange: (value: Parameters<(selection: PaymentSelection) => void>[0]) => void;
|
|
651
777
|
paymentSelection: PaymentSelection;
|
|
652
|
-
declinedPass: Readonly<{
|
|
653
|
-
method: 'pass';
|
|
654
|
-
passId: string;
|
|
655
|
-
productName?: string;
|
|
656
|
-
}> | null;
|
|
657
|
-
isMembershipFastTrack: boolean;
|
|
658
778
|
waitlistClaim: Readonly<{
|
|
659
779
|
kind: 'none';
|
|
660
780
|
}> | WaitlistInvitation;
|
|
661
781
|
eligibility: EligibilityData | null;
|
|
662
782
|
registrationOptionsState: EligibilityLookupState;
|
|
663
783
|
eligibilityLoading: boolean;
|
|
664
|
-
eligibilityError: string | null;
|
|
665
|
-
|
|
784
|
+
eligibilityError: string | null; /** The payment step's own wait: the booking options, and several runs' ways to pay. */
|
|
785
|
+
paymentOptionsLoading: boolean; /** Why the payment step can't show ways to pay, when the booking options or several runs' ways to pay didn't load. */
|
|
786
|
+
paymentOptionsError: string | null; /** Asks for the booking options again, after they failed to load. */
|
|
787
|
+
reloadOptions: () => void;
|
|
788
|
+
existingRegistrations: Readonly<{
|
|
789
|
+
id: string;
|
|
790
|
+
occurrenceId: string;
|
|
791
|
+
ticketsCount: number;
|
|
792
|
+
ticketBreakdown: string | null;
|
|
793
|
+
}>[];
|
|
666
794
|
existingRegistrationLoading: boolean;
|
|
667
795
|
existingRegistrationState: ExistingRegistrationLookupState;
|
|
668
796
|
registrationState: Readonly<{
|
|
@@ -674,8 +802,6 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
674
802
|
}> | Readonly<{
|
|
675
803
|
kind: 'waitlisted';
|
|
676
804
|
}>;
|
|
677
|
-
hasEligibility: boolean;
|
|
678
|
-
hasMembershipEligibility: boolean;
|
|
679
805
|
requireGuestDetails: boolean;
|
|
680
806
|
discountCode: string;
|
|
681
807
|
setDiscountCode: (value: string) => void;
|
|
@@ -685,29 +811,9 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
685
811
|
manualCodeEntryAllowed: boolean;
|
|
686
812
|
autoAppliedDiscount: AutoAppliedDiscountPreview | null;
|
|
687
813
|
discountsAvailableLoading: boolean;
|
|
688
|
-
discountContext:
|
|
689
|
-
type: 'whole_series';
|
|
690
|
-
eventSeriesId: string;
|
|
691
|
-
} | {
|
|
692
|
-
type: "event";
|
|
693
|
-
eventSeriesId: string;
|
|
694
|
-
eventCategoryId: string | null;
|
|
695
|
-
ticketsCount?: number;
|
|
696
|
-
} | {
|
|
697
|
-
type: "appointment";
|
|
698
|
-
serviceId: string;
|
|
699
|
-
} | {
|
|
700
|
-
type: "pass";
|
|
701
|
-
passId: string;
|
|
702
|
-
} | {
|
|
703
|
-
type: "membership";
|
|
704
|
-
membershipId: string;
|
|
705
|
-
} | {
|
|
706
|
-
type: "product";
|
|
707
|
-
productId: string;
|
|
708
|
-
productCategoryId: string | null;
|
|
709
|
-
} | null;
|
|
814
|
+
discountContext: DiscountContext | null;
|
|
710
815
|
shouldShowDiscountToggle: boolean;
|
|
816
|
+
discountAccess: RegistrationDiscountAccess;
|
|
711
817
|
verification: {
|
|
712
818
|
status: 'idle' | 'polling' | 'completed' | 'failed' | 'timeout';
|
|
713
819
|
result: {
|
|
@@ -722,6 +828,16 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
722
828
|
};
|
|
723
829
|
outcome: {
|
|
724
830
|
kind: "resolved";
|
|
831
|
+
submissionPayment?: {
|
|
832
|
+
amountPaidCents: NonNegativeCents;
|
|
833
|
+
creditCents: NonNegativeCents;
|
|
834
|
+
currency: CurrencyCode;
|
|
835
|
+
purchasedItems: readonly {
|
|
836
|
+
kind: "membership" | "pass";
|
|
837
|
+
name: string;
|
|
838
|
+
priceCents: NonNegativeCents;
|
|
839
|
+
}[];
|
|
840
|
+
} | null | undefined;
|
|
725
841
|
outcome: {
|
|
726
842
|
arrivalVenues?: Record<string, string> | undefined;
|
|
727
843
|
kind: "detailsAvailable";
|
|
@@ -1196,6 +1312,16 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1196
1312
|
};
|
|
1197
1313
|
outcome: {
|
|
1198
1314
|
kind: "resolved";
|
|
1315
|
+
submissionPayment?: {
|
|
1316
|
+
amountPaidCents: NonNegativeCents;
|
|
1317
|
+
creditCents: NonNegativeCents;
|
|
1318
|
+
currency: CurrencyCode;
|
|
1319
|
+
purchasedItems: readonly {
|
|
1320
|
+
kind: "membership" | "pass";
|
|
1321
|
+
name: string;
|
|
1322
|
+
priceCents: NonNegativeCents;
|
|
1323
|
+
}[];
|
|
1324
|
+
} | null | undefined;
|
|
1199
1325
|
outcome: {
|
|
1200
1326
|
arrivalVenues?: Record<string, string> | undefined;
|
|
1201
1327
|
kind: "detailsAvailable";
|
|
@@ -1669,6 +1795,7 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1669
1795
|
returnToPayment: () => void;
|
|
1670
1796
|
returnToBooking: () => void;
|
|
1671
1797
|
retryingHeldPlace: boolean;
|
|
1798
|
+
heldPlace: EventRegistrationPaymentSubject | null;
|
|
1672
1799
|
};
|
|
1673
1800
|
paymentStatusRecovery: PaymentStatusRecoveryState | null;
|
|
1674
1801
|
handleCheckPaymentStatus: () => void;
|
|
@@ -1677,9 +1804,7 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1677
1804
|
handleReturnToBooking: () => void;
|
|
1678
1805
|
checkingNextStep: boolean;
|
|
1679
1806
|
handleDetailsComplete: () => Promise<EventRegistrationDetailsCompleteResult>;
|
|
1680
|
-
handlePaymentSelect: () => Promise<
|
|
1681
|
-
handleUseCardInsteadOfPass: () => void;
|
|
1682
|
-
handleUsePassInstead: () => void;
|
|
1807
|
+
handlePaymentSelect: () => Promise<EventRegistrationSubmitResult>;
|
|
1683
1808
|
handleBookForSomeoneElse: () => void;
|
|
1684
1809
|
handleBookAnother: () => void;
|
|
1685
1810
|
handleSubmit: (...args: Parameters<EventRegistrationSubmit>) => ReturnType<EventRegistrationSubmit>;
|
|
@@ -1697,7 +1822,31 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1697
1822
|
}>;
|
|
1698
1823
|
dismissHandOff?: () => void;
|
|
1699
1824
|
handOffBusinessName?: string;
|
|
1700
|
-
handOffOfferingLabel?: string;
|
|
1825
|
+
handOffOfferingLabel?: string; /** The rooms step, on an event with rooms; null otherwise. */
|
|
1826
|
+
roomChooser: {
|
|
1827
|
+
view: Readonly<{
|
|
1828
|
+
intro: string;
|
|
1829
|
+
kinds: readonly RoomKindView[];
|
|
1830
|
+
stayLines: readonly string[];
|
|
1831
|
+
note: string | null;
|
|
1832
|
+
splitWarning: string | null;
|
|
1833
|
+
notice: string | null;
|
|
1834
|
+
noticeStay: readonly string[];
|
|
1835
|
+
takeOff: Readonly<{
|
|
1836
|
+
label: string;
|
|
1837
|
+
choices: readonly RoomChoice[];
|
|
1838
|
+
}> | null;
|
|
1839
|
+
people: number;
|
|
1840
|
+
totalCents: number | null;
|
|
1841
|
+
totalNote: string | null;
|
|
1842
|
+
priceNote: string | null;
|
|
1843
|
+
}>;
|
|
1844
|
+
choices: readonly RoomChoice[]; /** The places without a room. */
|
|
1845
|
+
dayOptions: readonly EventRegistrationPricingOption[];
|
|
1846
|
+
setRoomChoices: (choices: readonly RoomChoice[]) => void;
|
|
1847
|
+
setDayLines: (lines: readonly EventTicketSelectionLine[]) => void;
|
|
1848
|
+
} | null; /** What can be listed as a ticket: an event's room prices can only be chosen through its rooms. */
|
|
1849
|
+
listableTicketTypes: readonly EventRegistrationPricingOption[];
|
|
1701
1850
|
api: BoundBlockApiClient;
|
|
1702
1851
|
nowIso: UtcIsoDateTimeString; /** Whether the clock has stopped this visitor starting a booking on this page. */
|
|
1703
1852
|
bookingClosure: FreshBookingClosure;
|
|
@@ -1712,9 +1861,9 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1712
1861
|
canShowDirectPaymentOptions: boolean;
|
|
1713
1862
|
paysNothing: boolean;
|
|
1714
1863
|
offersEntitlements: boolean;
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
anchorId: string;
|
|
1864
|
+
}; /** Why one booking's card payment is the whole price although its terms offer a deposit; null otherwise. */
|
|
1865
|
+
paymentInFullNote: string | null;
|
|
1866
|
+
anchorId: string; /** The page's occurrence while the booking is for the page's date, otherwise null. */
|
|
1718
1867
|
occurrenceContext: {
|
|
1719
1868
|
id: string;
|
|
1720
1869
|
seriesId: string;
|
|
@@ -1723,7 +1872,7 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1723
1872
|
timeZone: string;
|
|
1724
1873
|
capacityOverride?: number | null | undefined;
|
|
1725
1874
|
overrides?: Record<string, unknown> | null | undefined;
|
|
1726
|
-
} | null
|
|
1875
|
+
} | null;
|
|
1727
1876
|
registrationTarget: Readonly<{
|
|
1728
1877
|
subject: RegistrationSubject;
|
|
1729
1878
|
selectedEventIds: readonly string[];
|
|
@@ -1733,10 +1882,10 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1733
1882
|
subject: EventRegistrationPageSurfaceSubject | null | undefined;
|
|
1734
1883
|
events: readonly PublicEvent[];
|
|
1735
1884
|
maxTicketsNum: number; /** The new-booking choices, plus the run or date an invitation holds a place on. */
|
|
1736
|
-
scopedEvents: RegistrationEvent[]; /** Everything on this page a booking could be for, whether or not it's still a choice. */
|
|
1885
|
+
scopedEvents: readonly RegistrationEvent[]; /** Everything on this page a booking could be for, whether or not it's still a choice. */
|
|
1737
1886
|
recoveryEvents: RegistrationEvent[];
|
|
1738
|
-
preSelectedEvent: RegistrationEvent | null;
|
|
1739
|
-
|
|
1887
|
+
preSelectedEvent: RegistrationEvent | null; /** Where booking starts on this page, and what it chooses from. */
|
|
1888
|
+
entry: RegistrationEntry;
|
|
1740
1889
|
presentation: RegistrationPresentation;
|
|
1741
1890
|
flow: RegistrationFlowState;
|
|
1742
1891
|
setStep: (next: Exclude<RegistrationStep, 'success'>) => void;
|
|
@@ -1747,8 +1896,7 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1747
1896
|
selection: RegistrationSelection;
|
|
1748
1897
|
selectionMode: RegistrationSelectionMode; /** The kind of several items chosen, or null for a selection of one. */
|
|
1749
1898
|
severalItems: SeveralItemsKind | null; /** One way of attending for every chosen item. */
|
|
1750
|
-
attendance: SelectionAttendance; /**
|
|
1751
|
-
selectionPayment: SelectionPayment; /** What each run's ticket choice is checked against when booking several runs. */
|
|
1899
|
+
attendance: SelectionAttendance; /** What each run's ticket choice is checked against when booking several runs. */
|
|
1752
1900
|
runChoiceFacts: Readonly<{
|
|
1753
1901
|
places: number;
|
|
1754
1902
|
maxTickets: number;
|
|
@@ -1773,7 +1921,21 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1773
1921
|
}> | null;
|
|
1774
1922
|
hint: string;
|
|
1775
1923
|
} | null;
|
|
1776
|
-
combinationAwaitingVisitor: boolean;
|
|
1924
|
+
combinationAwaitingVisitor: boolean;
|
|
1925
|
+
/**
|
|
1926
|
+
* The dates' ways to pay from the server and the visitor's pick; null for anything else, and
|
|
1927
|
+
* for one date the card alone pays for, which keeps the card step.
|
|
1928
|
+
*/
|
|
1929
|
+
selectionFunding: Readonly<{
|
|
1930
|
+
status: 'loading' | 'failed' | 'loaded';
|
|
1931
|
+
view: SelectionFundingView | null;
|
|
1932
|
+
dateCount: number;
|
|
1933
|
+
notice: string | null;
|
|
1934
|
+
choose: (row: Pick<FundingOptionRow, 'pick' | 'card'>) => void;
|
|
1935
|
+
retry: () => void;
|
|
1936
|
+
}> | null;
|
|
1937
|
+
handleChangeDates: () => void;
|
|
1938
|
+
paymentTermsSurface: "commerce" | "primary"; /** The payment step's list of what several items cost; null for one item. */
|
|
1777
1939
|
selectionPaymentSummary: SelectionPaymentSummary | null;
|
|
1778
1940
|
runChoices: Readonly<Record<string, Readonly<{
|
|
1779
1941
|
pricingOptionId: string | null;
|
|
@@ -1862,25 +2024,25 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1862
2024
|
setShowMagicLinkModal: (show: boolean) => void;
|
|
1863
2025
|
handleLogout: () => void;
|
|
1864
2026
|
paymentStepState: PaymentStepState; /** Pay is off only because a typed code hasn't been applied yet, which the customer needs telling. */
|
|
1865
|
-
paymentHeldForCode: boolean;
|
|
1866
|
-
passPriceAfterCodeCents: number | null; /** A membership's first payment after its discount; it renews at the regular price. */
|
|
1867
|
-
membershipFirstPaymentCents: number | null;
|
|
2027
|
+
paymentHeldForCode: boolean;
|
|
1868
2028
|
handlePaymentSelectionChange: (value: Parameters<(selection: PaymentSelection) => void>[0]) => void;
|
|
1869
2029
|
paymentSelection: PaymentSelection;
|
|
1870
|
-
declinedPass: Readonly<{
|
|
1871
|
-
method: 'pass';
|
|
1872
|
-
passId: string;
|
|
1873
|
-
productName?: string;
|
|
1874
|
-
}> | null;
|
|
1875
|
-
isMembershipFastTrack: boolean;
|
|
1876
2030
|
waitlistClaim: Readonly<{
|
|
1877
2031
|
kind: 'none';
|
|
1878
2032
|
}> | WaitlistInvitation;
|
|
1879
2033
|
eligibility: EligibilityData | null;
|
|
1880
2034
|
registrationOptionsState: EligibilityLookupState;
|
|
1881
2035
|
eligibilityLoading: boolean;
|
|
1882
|
-
eligibilityError: string | null;
|
|
1883
|
-
|
|
2036
|
+
eligibilityError: string | null; /** The payment step's own wait: the booking options, and several runs' ways to pay. */
|
|
2037
|
+
paymentOptionsLoading: boolean; /** Why the payment step can't show ways to pay, when the booking options or several runs' ways to pay didn't load. */
|
|
2038
|
+
paymentOptionsError: string | null; /** Asks for the booking options again, after they failed to load. */
|
|
2039
|
+
reloadOptions: () => void;
|
|
2040
|
+
existingRegistrations: Readonly<{
|
|
2041
|
+
id: string;
|
|
2042
|
+
occurrenceId: string;
|
|
2043
|
+
ticketsCount: number;
|
|
2044
|
+
ticketBreakdown: string | null;
|
|
2045
|
+
}>[];
|
|
1884
2046
|
existingRegistrationLoading: boolean;
|
|
1885
2047
|
existingRegistrationState: ExistingRegistrationLookupState;
|
|
1886
2048
|
registrationState: Readonly<{
|
|
@@ -1892,8 +2054,6 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1892
2054
|
}> | Readonly<{
|
|
1893
2055
|
kind: 'waitlisted';
|
|
1894
2056
|
}>;
|
|
1895
|
-
hasEligibility: boolean;
|
|
1896
|
-
hasMembershipEligibility: boolean;
|
|
1897
2057
|
requireGuestDetails: boolean;
|
|
1898
2058
|
discountCode: string;
|
|
1899
2059
|
setDiscountCode: (value: string) => void;
|
|
@@ -1903,29 +2063,9 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1903
2063
|
manualCodeEntryAllowed: boolean;
|
|
1904
2064
|
autoAppliedDiscount: AutoAppliedDiscountPreview | null;
|
|
1905
2065
|
discountsAvailableLoading: boolean;
|
|
1906
|
-
discountContext:
|
|
1907
|
-
type: 'whole_series';
|
|
1908
|
-
eventSeriesId: string;
|
|
1909
|
-
} | {
|
|
1910
|
-
type: "event";
|
|
1911
|
-
eventSeriesId: string;
|
|
1912
|
-
eventCategoryId: string | null;
|
|
1913
|
-
ticketsCount?: number;
|
|
1914
|
-
} | {
|
|
1915
|
-
type: "appointment";
|
|
1916
|
-
serviceId: string;
|
|
1917
|
-
} | {
|
|
1918
|
-
type: "pass";
|
|
1919
|
-
passId: string;
|
|
1920
|
-
} | {
|
|
1921
|
-
type: "membership";
|
|
1922
|
-
membershipId: string;
|
|
1923
|
-
} | {
|
|
1924
|
-
type: "product";
|
|
1925
|
-
productId: string;
|
|
1926
|
-
productCategoryId: string | null;
|
|
1927
|
-
} | null;
|
|
2066
|
+
discountContext: DiscountContext | null;
|
|
1928
2067
|
shouldShowDiscountToggle: boolean;
|
|
2068
|
+
discountAccess: RegistrationDiscountAccess;
|
|
1929
2069
|
verification: {
|
|
1930
2070
|
status: 'idle' | 'polling' | 'completed' | 'failed' | 'timeout';
|
|
1931
2071
|
result: {
|
|
@@ -1940,6 +2080,16 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1940
2080
|
};
|
|
1941
2081
|
outcome: {
|
|
1942
2082
|
kind: "resolved";
|
|
2083
|
+
submissionPayment?: {
|
|
2084
|
+
amountPaidCents: NonNegativeCents;
|
|
2085
|
+
creditCents: NonNegativeCents;
|
|
2086
|
+
currency: CurrencyCode;
|
|
2087
|
+
purchasedItems: readonly {
|
|
2088
|
+
kind: "membership" | "pass";
|
|
2089
|
+
name: string;
|
|
2090
|
+
priceCents: NonNegativeCents;
|
|
2091
|
+
}[];
|
|
2092
|
+
} | null | undefined;
|
|
1943
2093
|
outcome: {
|
|
1944
2094
|
arrivalVenues?: Record<string, string> | undefined;
|
|
1945
2095
|
kind: "detailsAvailable";
|
|
@@ -2414,6 +2564,16 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
2414
2564
|
};
|
|
2415
2565
|
outcome: {
|
|
2416
2566
|
kind: "resolved";
|
|
2567
|
+
submissionPayment?: {
|
|
2568
|
+
amountPaidCents: NonNegativeCents;
|
|
2569
|
+
creditCents: NonNegativeCents;
|
|
2570
|
+
currency: CurrencyCode;
|
|
2571
|
+
purchasedItems: readonly {
|
|
2572
|
+
kind: "membership" | "pass";
|
|
2573
|
+
name: string;
|
|
2574
|
+
priceCents: NonNegativeCents;
|
|
2575
|
+
}[];
|
|
2576
|
+
} | null | undefined;
|
|
2417
2577
|
outcome: {
|
|
2418
2578
|
arrivalVenues?: Record<string, string> | undefined;
|
|
2419
2579
|
kind: "detailsAvailable";
|
|
@@ -2887,6 +3047,7 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
2887
3047
|
returnToPayment: () => void;
|
|
2888
3048
|
returnToBooking: () => void;
|
|
2889
3049
|
retryingHeldPlace: boolean;
|
|
3050
|
+
heldPlace: EventRegistrationPaymentSubject | null;
|
|
2890
3051
|
};
|
|
2891
3052
|
paymentStatusRecovery: PaymentStatusRecoveryState | null;
|
|
2892
3053
|
handleCheckPaymentStatus: () => void;
|
|
@@ -2895,9 +3056,7 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
2895
3056
|
handleReturnToBooking: () => void;
|
|
2896
3057
|
checkingNextStep: boolean;
|
|
2897
3058
|
handleDetailsComplete: () => Promise<EventRegistrationDetailsCompleteResult>;
|
|
2898
|
-
handlePaymentSelect: () => Promise<
|
|
2899
|
-
handleUseCardInsteadOfPass: () => void;
|
|
2900
|
-
handleUsePassInstead: () => void;
|
|
3059
|
+
handlePaymentSelect: () => Promise<EventRegistrationSubmitResult>;
|
|
2901
3060
|
handleBookForSomeoneElse: () => void;
|
|
2902
3061
|
handleBookAnother: () => void;
|
|
2903
3062
|
handleSubmit: (...args: Parameters<EventRegistrationSubmit>) => ReturnType<EventRegistrationSubmit>;
|
|
@@ -3027,22 +3186,23 @@ type EventRegistrationPaymentSelection = Readonly<{
|
|
|
3027
3186
|
}> | Readonly<{
|
|
3028
3187
|
method: 'stripe';
|
|
3029
3188
|
collectionOptionKind: DirectCheckoutCollectionOptionKind;
|
|
3030
|
-
}> | Readonly<{
|
|
3031
|
-
method: 'pass';
|
|
3032
|
-
passId: string;
|
|
3033
|
-
productName?: string;
|
|
3034
|
-
}> | Readonly<{
|
|
3189
|
+
}> /** A run's membership. Dates choose a pass or membership through `funding`. */ | Readonly<{
|
|
3035
3190
|
method: 'membership';
|
|
3036
3191
|
membershipId: string;
|
|
3037
3192
|
productName?: string;
|
|
3038
|
-
}
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3193
|
+
}>;
|
|
3194
|
+
/**
|
|
3195
|
+
* How the dates being booked can be paid (issue 1767): the server's options as rows to
|
|
3196
|
+
* pick with `chooseFunding(row.key)`, "Your booking" for a pass or membership, and the
|
|
3197
|
+
* button. Null when the card options alone pay, as for a run or a date without passes.
|
|
3198
|
+
*/
|
|
3199
|
+
type EventRegistrationFundingModel = Readonly<{
|
|
3200
|
+
status: 'loading' | 'failed' | 'loaded';
|
|
3201
|
+
rows: readonly FundingOptionRow[];
|
|
3202
|
+
summary: FundedSummary | null; /** The payment button's words; null leaves them to the card step's `stepState`. */
|
|
3203
|
+
buttonText: string | null; /** Why passes and memberships aren't offered, such as several places. */
|
|
3204
|
+
note: string | null; /** Why the options changed after a refused booking. */
|
|
3205
|
+
notice: string | null;
|
|
3046
3206
|
}>;
|
|
3047
3207
|
type EventRegistrationPaymentModel = Readonly<{
|
|
3048
3208
|
kind: 'hidden';
|
|
@@ -3051,6 +3211,7 @@ type EventRegistrationPaymentModel = Readonly<{
|
|
|
3051
3211
|
directPaymentSelectionState: EventRegistrationDirectPaymentSelectionState;
|
|
3052
3212
|
checkout: EventPaymentState;
|
|
3053
3213
|
stepState: PaymentStepState;
|
|
3214
|
+
funding: EventRegistrationFundingModel | null;
|
|
3054
3215
|
}> | Readonly<{
|
|
3055
3216
|
kind: 'loading' | 'error' | 'not-eligible' | 'ready';
|
|
3056
3217
|
selection: EventRegistrationPaymentSelection;
|
|
@@ -3060,6 +3221,7 @@ type EventRegistrationPaymentModel = Readonly<{
|
|
|
3060
3221
|
stepState: PaymentStepState;
|
|
3061
3222
|
eligibility: EligibilityData | null;
|
|
3062
3223
|
eligibilityError: string | null | undefined;
|
|
3224
|
+
funding: EventRegistrationFundingModel | null;
|
|
3063
3225
|
}>;
|
|
3064
3226
|
type EventRegistrationDiscountModel = Readonly<{
|
|
3065
3227
|
code: string;
|
|
@@ -3095,7 +3257,9 @@ type EventRegistrationFlowActions = Readonly<{
|
|
|
3095
3257
|
setTicketsCount: (count: number) => void;
|
|
3096
3258
|
updateAttendee: (values: FormData) => void;
|
|
3097
3259
|
updateGuests: (guests: Guest[]) => void;
|
|
3098
|
-
selectPayment: (selection: EventRegistrationPaymentSelection) => void;
|
|
3260
|
+
selectPayment: (selection: EventRegistrationPaymentSelection) => void; /** Picks one of `payment.funding.rows` by its key. */
|
|
3261
|
+
chooseFunding: (key: string) => void; /** Asks for the ways to pay again after they failed to load. */
|
|
3262
|
+
retryFunding: () => void;
|
|
3099
3263
|
setDiscountCode: (code: string) => void;
|
|
3100
3264
|
setDiscountOpen: (isOpen: boolean) => void; /** Checks a typed code with the server; checkout waits until it's accepted or removed. */
|
|
3101
3265
|
applyDiscountCode: () => Promise<void>;
|
|
@@ -3127,7 +3291,10 @@ type HeadlessEventRegistrationFlow = Readonly<{
|
|
|
3127
3291
|
discount: EventRegistrationDiscountModel;
|
|
3128
3292
|
portalAuth: EventRegistrationPortalAuthModel;
|
|
3129
3293
|
existingRegistrations: Readonly<{
|
|
3130
|
-
state: EventRegistrationLoadState<UseEventRegistrationWizardResult['existingRegistrations']
|
|
3294
|
+
/** `failed`: the customer's bookings for this date couldn't be checked, which isn't the same as having none. */state: EventRegistrationLoadState<UseEventRegistrationWizardResult['existingRegistrations']> | Readonly<{
|
|
3295
|
+
tag: 'failed';
|
|
3296
|
+
value: null;
|
|
3297
|
+
}>;
|
|
3131
3298
|
registrations: UseEventRegistrationWizardResult['existingRegistrations'];
|
|
3132
3299
|
}>;
|
|
3133
3300
|
waitlistClaim: WaitlistInvitation;
|