@riverbankcms/sdk 0.178.0 → 0.180.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -8
- package/dist/_dts/{BlocksIslandsHydrator-CrKsXtpD.d.ts → BlocksIslandsHydrator-DC_AvZwy.d.ts} +1 -1
- package/dist/_dts/{Page-C9i27wZA.d.ts → Page-DQOxVtp3.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DzGSR3jh.d.ts → SdkPreviewMode-DrLgY9_f.d.ts} +3 -2
- package/dist/_dts/{client-BnYN6XsH.d.ts → client-BP7VBRvs.d.ts} +281 -72
- package/dist/_dts/{content-types-CXj6lp3d.d.ts → content-types-1-K2qi__.d.ts} +2 -2
- package/dist/_dts/{contracts-BZLwkTwL.d.ts → contracts-Dfqz0Tcu.d.ts} +6 -116
- package/dist/_dts/{generatePageMetadata-ByEWwe9j.d.ts → generatePageMetadata-CSfAqmry.d.ts} +2 -2
- package/dist/_dts/{index-BE9dWIsr.d.ts → index-B0_2-65A.d.ts} +3 -3
- package/dist/_dts/{index-0HFgCnGz.d.ts → index-BeM5Ylwf.d.ts} +5 -3
- package/dist/_dts/{index-D9-N1d9v.d.ts → index-Blrw2oVk.d.ts} +1 -1
- package/dist/_dts/{index-cTpvQg_Q.d.ts → index-CB5Csefo.d.ts} +2 -2
- package/dist/_dts/{index-nnEdgc3Z.d.ts → index-DCcxLa8p.d.ts} +4 -2
- package/dist/_dts/{index-DCa-8TEY.d.ts → index-DQBGwBPx.d.ts} +1 -1
- package/dist/_dts/{index-CKDRr54L.d.ts → index-DQr358-m.d.ts} +4 -4
- package/dist/_dts/{loadContent-DYkVV6w4.d.ts → loadContent-BG2tLGXj.d.ts} +15 -13
- package/dist/_dts/{request-B20VRWHH.d.ts → request-P08l6mkr.d.ts} +3641 -994
- package/dist/_dts/{resolveBlockData-C_aK5GIS.d.ts → resolveBlockData-BDHc8lFs.d.ts} +8 -5
- package/dist/_dts/resolvePageContent-Y3IZBbtL.d.ts +61 -0
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +3 -3
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +7 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +16 -8
- 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 +3 -3
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +7 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +19 -6
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/serviceBookingOutline-BvtNagjw.d.ts +583 -0
- package/dist/_dts/{types-CYcd15BQ.d.ts → types-BrK6SS5c.d.ts} +9 -7
- package/dist/_dts/{types-CMZ5mkpv.d.ts → types-DpEAnP4F.d.ts} +10 -39
- package/dist/_dts/{types-rm2M4LGx.d.ts → types-HAy1-Jjo.d.ts} +3 -3
- package/dist/_dts/{validation-BSxnRhyy.d.ts → validation-D6q3tOBA.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-D1n09bu-.mjs → BlocksIslandsHydrator-DJSmdNUJ.mjs} +17 -18
- package/dist/client/{BookingMailingListNote-DSD4gS96.mjs → BookingMailingListNote-CGxg37zx.mjs} +92 -60
- package/dist/client/{BookingQuestionFields-B57oGPcj.mjs → BookingQuestionFields-DXegGSnS.mjs} +26 -5
- package/dist/client/{CalendarNavigationChevron-qXvsFYOg.mjs → CalendarNavigationChevron-VfP50sYm.mjs} +42 -9
- package/dist/client/{CheckboxChoice-b-PJLEXe.mjs → CheckboxChoice-BZPLCgTU.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-Olvrwi3Z.mjs → DemoBookingPortalAccess-0Ua44F1j.mjs} +13 -8
- package/dist/client/{EventCalendar.client-DwFNFb-0.mjs → EventCalendar.client-CrpiyDSP.mjs} +10 -10
- package/dist/client/{EventCombined.client-Ffu-aVOb.mjs → EventCombined.client-D0me9wnz.mjs} +10 -10
- package/dist/client/{EventEmbeddedCheckoutStep-B18VbNS_.mjs → EventEmbeddedCheckoutStep-BDnicDM6.mjs} +1 -1
- package/dist/client/{EventItem-b8tVkNHA.mjs → EventItem-CJITrGkF.mjs} +249 -8
- package/dist/client/{EventListWeekNavigation-BxnJW_Gf.mjs → EventListWeekNavigation-BlEm_xjq.mjs} +1 -1
- package/dist/client/{EventListing.client-ViCnrNg4.mjs → EventListing.client-BNM_HuS0.mjs} +3 -3
- package/dist/client/{EventListing.view-CdjiepMf.mjs → EventListing.view-CXfb7RRy.mjs} +7 -16
- package/dist/client/{EventRegistrationPayment-BVd70XkH.mjs → EventRegistrationPayment-DiD9uYs6.mjs} +1439 -293
- package/dist/client/{Page-DqETUt-U.mjs → Page-bX7iy_MK.mjs} +24299 -20103
- package/dist/client/{ProtectedSubmitButton-C-ql101B.mjs → ProtectedSubmitButton-De6AzhE6.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-DkFnbzf_.mjs → SiteTermsAgreementField-BAdW5DvE.mjs} +23 -16
- package/dist/client/{BookingPanelArrangement--EkA1ZQd.mjs → StepIndicator-DCfdcb7s.mjs} +12 -12
- package/dist/client/{StepIndicator-JO2PS03n.mjs → StepIndicator-DCqorVne.mjs} +7 -7
- package/dist/client/{TabBarFragment-BqfRLojo.mjs → TabBarFragment-DlKQRhP4.mjs} +1 -1
- package/dist/client/{ThemedButton-DuaYtnvG.mjs → ThemedButton-CnSa7o-I.mjs} +66 -66
- package/dist/client/{accessibleSurfaces-DN8it_Cx.mjs → accessibleSurfaces-Wl8-_OVJ.mjs} +1 -1
- package/dist/client/{accordion-XgNxl0Wg.mjs → accordion-wofJY8xY.mjs} +1 -1
- package/dist/client/{booking-form.client-ljJoDwuI.mjs → booking-form.client-CYl9NrqS.mjs} +412 -79
- package/dist/client/{bookingForm-DtEHwY4W.mjs → bookingForm-kgVWtuMe.mjs} +4 -4
- package/dist/client/bookings.mjs +40 -10
- package/dist/client/{boxStyleClassNames-BHoMAcun.mjs → boxStyleClassNames-CQHWz5gJ.mjs} +19 -19
- package/dist/client/{carousel-B3UhbFu7.mjs → carousel-BE1dEFsD.mjs} +2 -2
- package/dist/client/{carousel.client-h65clfUO.mjs → carousel.client-DMtGYTTM.mjs} +1 -1
- package/dist/client/{cart-DzOJfYOR.mjs → cart-BsjsdGZE.mjs} +3 -3
- package/dist/client/{cart.client-DBG77v-5.mjs → cart.client-DylGUWXY.mjs} +1 -1
- package/dist/client/{checkout-LmePoEgM.mjs → checkout-B5KxEUDr.mjs} +3 -3
- package/dist/client/{checkout.client-DmgZuLBT.mjs → checkout.client-C98fhch3.mjs} +1 -1
- package/dist/client/{checkoutUrls-CMZI8o_V.mjs → checkoutUrls-BMLYTf38.mjs} +1 -1
- package/dist/client/client.mjs +502 -341
- package/dist/client/constants-PfYJsEZF.mjs +101 -0
- package/dist/client/{context-CJIz4FdL.mjs → context-DtKdUdkO.mjs} +200 -27
- package/dist/client/{dateFormatting-UoXqBh10.mjs → dateFormatting-BaGPvQS3.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-6CgFZNvu.mjs → demoPortalMagicLink-B8eDjhuG.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-DaMo6len.mjs → enhanceHeaderSection-DvhD-8eE.mjs} +4 -4
- package/dist/client/{event-registration.client-b6APrFQe.mjs → event-registration.client-Du9a_xAN.mjs} +1982 -1519
- package/dist/client/{eventCalendar-DJYz7yZf.mjs → eventCalendar-Di9wDfzl.mjs} +4 -4
- package/dist/client/{eventCombined-j9VCVgMW.mjs → eventCombined-CNW6nBsB.mjs} +4 -4
- package/dist/client/{eventListing-DWgpGuFM.mjs → eventListing-CQMxQ8By.mjs} +4 -4
- package/dist/client/{eventRegistration-DCinRot3.mjs → eventRegistration-CprS9k1D.mjs} +4 -4
- package/dist/client/events-9LPvwbWp.mjs +28 -0
- package/dist/client/{form-BBBtRwvy.mjs → form-Zl1_8RJ6.mjs} +3 -3
- package/dist/client/{form.client-CZeRQLGF.mjs → form.client-TaMUys6I.mjs} +5 -5
- package/dist/client/{form.parts-DhGGv4_L.mjs → form.parts-CpNPbPPM.mjs} +3 -3
- package/dist/client/{formatDate-DVFVDcDW.mjs → formatDate-hhI1-tzt.mjs} +1 -1
- package/dist/client/gifting/client.mjs +6 -6
- package/dist/client/{gifting-Di9-SpwW.mjs → gifting-DNVa7-Wj.mjs} +4 -4
- package/dist/client/{gifting.client-CjT5PrAZ.mjs → gifting.client-CFUq3GVx.mjs} +5 -5
- package/dist/client/{gifting.parts-ffP6mjMd.mjs → gifting.parts-CDQvxA4A.mjs} +2 -2
- package/dist/client/{headerSection-jjAvtSZk.mjs → headerSection-Cg6083rn.mjs} +2 -2
- package/dist/client/{lookSurfaces-C2VzJfyG.mjs → lookSurfaces-gJ3OqPf9.mjs} +258 -86
- package/dist/client/{newsletter-form.client-D45frHoa.mjs → newsletter-form.client-VuL9I96G.mjs} +6 -6
- package/dist/client/{shop.interactive-D7wky1GL.mjs → newsletter-form.interactive-7Of3eYn0.mjs} +4023 -4029
- package/dist/client/{newsletter-form.parts-CHdg82ct.mjs → newsletter-form.parts-OBqsfT24.mjs} +2 -2
- package/dist/client/{newsletterForm-tS465_vl.mjs → newsletterForm-BkJe_RTv.mjs} +3 -3
- package/dist/client/portal/client.mjs +301 -117
- package/dist/client/{product-detail.client-DIWSeW7P.mjs → product-detail.client-B2hdxqJN.mjs} +1 -1
- package/dist/client/{product-list.client-BRf14h_e.mjs → product-list.client-CCEgu9rx.mjs} +1 -1
- package/dist/client/{productDetail-gxF5whea.mjs → productDetail-CRX_ZRfS.mjs} +3 -3
- package/dist/client/{productList-B9t0XJrN.mjs → productList-BAdJ6z5S.mjs} +3 -3
- package/dist/client/{propsDecoder-Db8wAmgr.mjs → propsDecoder-BLKAmX0S.mjs} +2 -48
- package/dist/client/{registry.server-Bn0gE0uP.mjs → registry.server-Bj9cmHHF.mjs} +10464 -9113
- package/dist/client/rendering/client.mjs +41 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +23 -2836
- package/dist/client/{richText-coerce-COnKrLO7.mjs → richText-coerce-Z45OLLEX.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-Bok1Oy50.mjs → routeIslandApiConfig-DHpTTK77.mjs} +1 -1
- package/dist/client/runtimeResponse-D2j2-mOk.mjs +3 -0
- package/dist/client/{runtimeResponse-9v8q2NBc.mjs → runtimeResponse-DtWSfWSZ.mjs} +1 -1
- package/dist/client/{shop-D1oTPDxm.mjs → shop-BKsgxm_-.mjs} +3 -3
- package/dist/client/{shop-commerce-DyMZLC0a.mjs → shop-commerce-Cbtk_kUW.mjs} +14 -14
- package/dist/client/{shop-commerce-store-FODNS63D.mjs → shop-commerce-store-B-rv2p5h.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-C4xcmFzZ.mjs → shop-discount-apply.state-CiCDLNh7.mjs} +2 -2
- package/dist/client/{shop.client-CRgRulfI.mjs → shop.client-Rnqa74Tk.mjs} +14 -14
- package/dist/client/{shopShared-Bd_hy9ZO.mjs → shopShared-BaBfhjCq.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{noop-D11X-B6n.mjs → src-o7WEvbK1.mjs} +398 -308
- package/dist/client/{timetableModel-UlWfP1gh.mjs → timetableModel-BOff1Kk5.mjs} +259 -11
- package/dist/client/{types-DjWUR_O6.mjs → types-BEaKfam_.mjs} +65 -65
- package/dist/client/{useAvailableSlots-D-qoooLy.mjs → useAvailableSlots-DQJNh10g.mjs} +3 -23
- package/dist/client/useDiscountCodeUi-BcFQRI_7.mjs +196 -0
- package/dist/client/{useEventPagination-CQH2e9sQ.mjs → useEventPagination-BvdcexDC.mjs} +8 -8
- package/dist/client/{view-bGU1ws-m.mjs → view-CTBwSpKv.mjs} +4 -4
- package/dist/client/{display-D1oVR5Eh.mjs → wizardSteps-CWIQyRIw.mjs} +10263 -9078
- package/dist/preview-next/before-render.mjs +5 -3
- 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-D-Le7O3o.mjs → PageSectionToolbar-CG6KwITA.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-DNy5j_ce.mjs → PreviewEditorSidebar-BGBqrC9m.mjs} +8 -7
- package/dist/preview-next/client/{PreviewEditorUI-CzJvgbqt.mjs → PreviewEditorUI-Bwkyx28x.mjs} +5 -5
- package/dist/preview-next/client/{PreviewShell-xhJ6ca1i.mjs → PreviewShell-DB1l6JNU.mjs} +7 -7
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BmYO1TdT.mjs → SdkPreviewModeRuntime-Bs6Cwzr3.mjs} +15 -7
- package/dist/preview-next/client/{lucide-react-McYZeSMb.mjs → lucide-react-00FF_oar.mjs} +13 -1
- package/dist/preview-next/client/{previewAssistantSlot-BN93X9o1.mjs → previewAssistantSlot-T-oDD_Dd.mjs} +6252 -2461
- package/dist/preview-next/client/{previewChromeRoot-C51RQseo.mjs → previewChromeRoot-BeukcDRy.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-oeGquJM-.mjs → sdk-runtime-ceDW_9q2.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BGTAcPud.mjs → siteStyleAccess-CCB9bScO.mjs} +35 -23
- package/dist/preview-next/client/{useAutosaveStatus-BMGXjGZq.mjs → useAutosaveStatus-D4o0CKq7.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-CTDoR_gQ.mjs → useOpenBlockForSetup-Seccrvwu.mjs} +2 -2
- package/dist/preview-next/container-responsive.css +103 -10
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BtdzkSUg.mjs → route-contract-FwFj8zGL.mjs} +71 -10
- package/dist/server/{Block.shared-Bp3OlOjj.mjs → Block.shared-D6WrRCxX.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-DFEM1a85.mjs → ThemeScopeCore-BQzjDQ2q.mjs} +8 -1
- package/dist/server/{bindings-DrbJuftt.mjs → bindings-CS6ih1Yc.mjs} +37 -6
- package/dist/server/{client-Bf06n9oj.mjs → client-m0ylCj_f.mjs} +436 -526
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/contentTypeResolver-B9vy8BrF.mjs +19 -0
- package/dist/server/data/dataLoaderContext.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{dataLoaderContext-B3fXA54R.mjs → dataLoaderContext-lMRTfG5Z.mjs} +1 -0
- package/dist/server/error-f4g44bKx.mjs +387 -0
- package/dist/server/index.mjs +3 -2
- package/dist/server/loadContent-vgWMz1uD.mjs +694 -0
- package/dist/server/{loadPage-5iZefzDd.mjs → loadPage-CIOL3-9t.mjs} +22 -4
- package/dist/server/{lookMediaFrame-CaH018pK.mjs → lookMediaFrame-m-91jGGn.mjs} +36 -0
- package/dist/server/next.mjs +67 -94
- package/dist/server/{overrideResolution-CUHtm7tW.mjs → overrideResolution-BiHmsvTZ.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-GmPXForc.mjs → pageRenderPlan-DJo_obpi.mjs} +15 -8
- package/dist/server/{pageRuntimeSupport-Dd8LFzfa.mjs → pageRuntimeSupport-BnSuoHON.mjs} +54 -2
- package/dist/server/{pageShared-tz-GVWft.mjs → pageShared-BJuOzxzn.mjs} +554 -304
- package/dist/server/{prebuild-JmsuYCIH.mjs → prebuild-Cr8p8T7V.mjs} +5 -4
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Ce9DDwON.mjs → prefetchBlockData-BZh57-ua.mjs} +5 -3
- package/dist/server/{registry-D12XF_h1.mjs → registry-CvhFwbXJ.mjs} +358 -95
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +5 -4
- package/dist/server/rendering.mjs +9 -8
- package/dist/server/{resolveBlockData-D9yZIN3V.mjs → resolveBlockData-Cv_W1LVB.mjs} +61 -34
- package/dist/server/resolvePageContent-BWKUZUIn.mjs +89 -0
- package/dist/server/{responseMedia-F-ElH2Rd.mjs → responseMedia-KRKguBC5.mjs} +56 -1
- package/dist/server/routing.mjs +271 -57
- package/dist/server/server.mjs +3 -3
- package/dist/server/{loadContent-eaTY7RPg.mjs → servicePageContent-CRKbTm_7.mjs} +719 -459
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/{validation-CLq5cw6M.mjs → validation-DCl-FCk_.mjs} +4 -4
- package/dist/server/{version-oPbhAx8E.mjs → version-DT_R5JAR.mjs} +1 -1
- package/dist/styles/index.css +504 -27
- package/package.json +1 -1
- package/dist/_dts/footerPageOutline-D_XbQW_o.d.ts +0 -256
- package/dist/_dts/resolvePageContent-YT6ndha1.d.ts +0 -162
- package/dist/client/LocationMapActions-CiMtl1Ha.mjs +0 -62
- package/dist/client/MapDrawingSvg-BCZa3dpf.mjs +0 -200
- package/dist/client/constants-4o4_hl34.mjs +0 -6
- package/dist/client/course-DBEU9IA9.mjs +0 -244
- package/dist/client/duration-Q6_QNgiv.mjs +0 -37
- package/dist/client/event-details.client-BwASwKIq.mjs +0 -53
- package/dist/client/eventDetails-BzGOVDI-.mjs +0 -13
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +0 -3
- package/dist/client/useDiscountCodeUi-B9DODAkj.mjs +0 -237
- package/dist/client/view-DNX59QwM.mjs +0 -1372
- package/dist/server/resolvePageContent-CAELMBEJ.mjs +0 -438
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as EventRegistrationPaymentMethod, An as BookingSubmitOptions, Ar as EventRegistrationPaymentSubject, At as StateUpdate, Bn as getBookingServiceSlidingScale, Bt as AutoAppliedDiscountPreview, Cn as BookingFlowStep, Ct as RegistrationSelectionMode, Dn as BookingSlotSelection, Dr as CustomerEventRegistration, Dt as SeveralItemsKind, En as BookingResourceView, Et as SelectionPaymentSummary, F as BookingFormInteractiveIslandProps, Ft as EventSourceRecovery, G as PortalCreditState, Gn as BlockApiConfig, H as BookingQuestionsModel, Hi as AppointmentBookingReview, It as BookingPageKind, J as ExistingRegistrationLookupState, K as PortalProfile, Ki as NonNegativeCents, Kn as BrowserReadAuthority, L as EventRegistrationDirectPaymentOption, Li as BookingConsent, Ln as BookingAdmission, Mt as SelectionRequirementsLayout, Nn as LoadState, Nr as PublicEvent, Nt as TicketSelectionPurpose, On as BookingSlotView, Or as DirectCheckoutCollectionOptionKind, Ot as CombinationWorking, Q as EventRegistrationClientProps, R as EventRegistrationDirectPaymentSelectionState, Ri as DisplayContext, Rn as BookingFieldValue, Rt as BlockApiClient, Sn as BookingFlowStatus, St as RegistrationSelection, Tn as BookingFlowView, Tt as SelectionPayment, U as RegistrationFlowState, V as BookingPaymentSelectionViewModel, Vi as UtcIsoDateTimeString, Vn as ProtectedSubmission, Vt as DiscountApplyLine, W as PortalAuthState, X as EligibilityData, Y as SelectableEventTicketType, Z as EventPaymentState, _t as EventRegistrationPageSurfaceSubject, aa as BlockButtonRole, an as BookingFormService, at as PaymentStepState, bn as BookingFlowActionResult, bt as RegistrationTicketContinuation, ci as RoomChoice, cn as BookingFormField$1, ct as RegistrationResult, di as EventRegistrationErrorAction, dn as BookingPaymentChoice, dt as ThemedButtonProps, et as EventTicketSelectionLine, fi as PriceReductionSummary, fn as BookingPurchasablePackagesModel, ft as FormData, gn as BookingAppointmentPackagesModel, hi as EventSelectionFundingPick, in as BookingFormData$1, it as PaymentStatusRecoveryState, ji as MailingListRuntimeContext, jt as WaitlistInvitation, kn as BookingSubmitActionResult, kr as EventCheckoutReturnRequest, kt as CopyPart, li as RoomOptionChoice, lt as RegistrationStep, mi as EventSelectionFundingOption, nn as EventTicketLineSummary, nt as GuestErrors, oi as BookingQuestionsSubmissionFailure, on as BookingSelectedCollectionOptionKind, ot as RegistrationAttendanceMode, pi as CurrencyCode, pt as OccurrenceContext, q as EligibilityLookupState, qi as PositiveCents, qn as BlockSiteTerms, rn as BookingFormConfig$1, rt as PaymentSelection, si as EventRegistrationPricingOption, sn as BookingFormServiceCategory, st as RegistrationEvent, tn as EventEmbeddedCheckout, tt as Guest, ui as CombinationPricePlan, un as BookingPaymentAvailability, ut as RegistrationSubject, vt as RegistrationPresentation, wn as BookingFlowStepId, wr as SelectionAttendance, wt as RunPricingChoices, xn as BookingFlowFeedback, xt as BookingSelection, yn as BookingFieldView, yt as RegistrationAdmission, z as EventRegistrationSiteCreditPreview, zi as ZoneLabel, zn as BookingQuestionsPaymentSnapshot, zt as BoundBlockApiClient } from "./request-P08l6mkr.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. */
|
|
@@ -255,7 +262,8 @@ type BookingFlowActions = Readonly<{
|
|
|
255
262
|
submit: (options?: BookingSubmitOptions) => Promise<BookingSubmitActionResult>; /** Deliberately accept the specific review displayed by this consumer. Stale reviews are rejected. */
|
|
256
263
|
acceptReview: (review: AppointmentBookingReview, options?: BookingSubmitOptions) => Promise<BookingSubmitActionResult>;
|
|
257
264
|
reset: () => void;
|
|
258
|
-
clearFeedback: () => void;
|
|
265
|
+
clearFeedback: () => void; /** Reads the client's own packages again, after the read failed. */
|
|
266
|
+
retryPackages: () => void;
|
|
259
267
|
}>;
|
|
260
268
|
type HeadlessBookingFlow = Readonly<{
|
|
261
269
|
dateContext: DisplayContext;
|
|
@@ -275,7 +283,8 @@ type HeadlessBookingFlow = Readonly<{
|
|
|
275
283
|
resources: BookingResourcesModel;
|
|
276
284
|
availability: BookingAvailabilityModel;
|
|
277
285
|
fields: BookingFieldsModel;
|
|
278
|
-
payment: BookingPaymentModel;
|
|
286
|
+
payment: BookingPaymentModel; /** Whether the selected service can be booked online at all, with how to reach the business when it can't. */
|
|
287
|
+
admission: BookingAdmission;
|
|
279
288
|
discount: BookingDiscountModel; /** During-booking questions for the selected service, kept apart from `fields`. */
|
|
280
289
|
questions: BookingQuestionsModel;
|
|
281
290
|
questionFieldErrors: BookingQuestionsSubmissionFailure['questionFieldErrors'];
|
|
@@ -294,6 +303,31 @@ type HeadlessBookingPaymentSelectionStepProps = Readonly<{
|
|
|
294
303
|
presentation?: BookingPresentation;
|
|
295
304
|
}>;
|
|
296
305
|
//#endregion
|
|
306
|
+
//#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/registrationRooms.state.d.ts
|
|
307
|
+
type RoomOptionView = Readonly<{
|
|
308
|
+
key: string;
|
|
309
|
+
choice: RoomOptionChoice;
|
|
310
|
+
title: string;
|
|
311
|
+
detail: string | null;
|
|
312
|
+
priceCents: number;
|
|
313
|
+
each: boolean;
|
|
314
|
+
people: number;
|
|
315
|
+
maxPeople: number;
|
|
316
|
+
placesLeft: string | null; /** They've chosen this, and it's no longer there to have. */
|
|
317
|
+
gone: boolean;
|
|
318
|
+
}>;
|
|
319
|
+
type RoomKindView = Readonly<{
|
|
320
|
+
kindId: string;
|
|
321
|
+
name: string;
|
|
322
|
+
description: string;
|
|
323
|
+
photos: readonly Readonly<{
|
|
324
|
+
src: string;
|
|
325
|
+
alt: string;
|
|
326
|
+
}>[];
|
|
327
|
+
options: readonly RoomOptionView[];
|
|
328
|
+
fullyBooked: boolean;
|
|
329
|
+
}>;
|
|
330
|
+
//#endregion
|
|
297
331
|
//#region .cache/declarations/sdk/src/bookings/types.d.ts
|
|
298
332
|
/**
|
|
299
333
|
* A bookable service (e.g., "30-minute consultation", "Hair cut")
|
|
@@ -350,7 +384,10 @@ type BookingFormData<TCustomFieldId extends string = never> = BookingFormData$1<
|
|
|
350
384
|
* Data submitted to create a booking
|
|
351
385
|
*/
|
|
352
386
|
interface BookingSubmissionData {
|
|
353
|
-
|
|
387
|
+
purchase?: Readonly<{
|
|
388
|
+
kind: 'pass';
|
|
389
|
+
productId: string;
|
|
390
|
+
}>;
|
|
354
391
|
formId: string;
|
|
355
392
|
serviceId: string;
|
|
356
393
|
resourceId?: string;
|
|
@@ -426,7 +463,7 @@ type EventRegistrationSubmitResult = Readonly<{
|
|
|
426
463
|
ok: false;
|
|
427
464
|
reason: 'submission-failed';
|
|
428
465
|
}> & BookingQuestionsSubmissionFailure);
|
|
429
|
-
type EventRegistrationSubmit = (method:
|
|
466
|
+
type EventRegistrationSubmit = (method: EventRegistrationPaymentMethod, membershipId?: string, selection?: PaymentSelection) => Promise<EventRegistrationSubmitResult>;
|
|
430
467
|
//#endregion
|
|
431
468
|
//#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/closedEarlyCopy.d.ts
|
|
432
469
|
type ClosedEarlyCopy = Readonly<{
|
|
@@ -448,6 +485,45 @@ type FreshBookingClosure = Readonly<{
|
|
|
448
485
|
startsAt: string;
|
|
449
486
|
}>;
|
|
450
487
|
//#endregion
|
|
488
|
+
//#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/selectionFundingView.d.ts
|
|
489
|
+
type FundingOptionRow = Readonly<{
|
|
490
|
+
key: string;
|
|
491
|
+
pick: EventSelectionFundingPick; /** The card option a money row chooses as well, when the visitor picks between several. */
|
|
492
|
+
card: DirectCheckoutCollectionOptionKind | null;
|
|
493
|
+
label: string;
|
|
494
|
+
details: readonly string[];
|
|
495
|
+
price: string | null;
|
|
496
|
+
selected: boolean;
|
|
497
|
+
}>;
|
|
498
|
+
type FundingSummaryLine = Readonly<{
|
|
499
|
+
key: string;
|
|
500
|
+
label: string;
|
|
501
|
+
note: string | null;
|
|
502
|
+
value: string;
|
|
503
|
+
}>;
|
|
504
|
+
type FundingSummaryTotal = Readonly<{
|
|
505
|
+
key: string;
|
|
506
|
+
label: string;
|
|
507
|
+
value: string;
|
|
508
|
+
total: boolean;
|
|
509
|
+
}>;
|
|
510
|
+
/** "Your booking" for a pass or membership option. The money option keeps the several-items summary. */
|
|
511
|
+
type FundedSummary = Readonly<{
|
|
512
|
+
caption: string;
|
|
513
|
+
lines: readonly FundingSummaryLine[];
|
|
514
|
+
totals: readonly FundingSummaryTotal[];
|
|
515
|
+
}>;
|
|
516
|
+
type SelectionFundingView = Readonly<{
|
|
517
|
+
option: EventSelectionFundingOption;
|
|
518
|
+
rows: readonly FundingOptionRow[]; /** Null for the money option, which keeps the several-items summary and its own button. */
|
|
519
|
+
summary: FundedSummary | null;
|
|
520
|
+
buttonText: string | null; /** The whole card charge for a pass or membership option; null for the money option. */
|
|
521
|
+
cardCents: number | null; /** Whether submitting goes on to take a payment, for the processing screen. */
|
|
522
|
+
takesPayment: boolean; /** Buying a pass or membership agrees to the business's terms of sale. */
|
|
523
|
+
termsSurface: 'primary' | 'commerce'; /** Why only money options show. */
|
|
524
|
+
note: string | null;
|
|
525
|
+
}>;
|
|
526
|
+
//#endregion
|
|
451
527
|
//#region .cache/declarations/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts
|
|
452
528
|
type EventRegistrationDetailsCompleteResult = Readonly<{
|
|
453
529
|
ok: true;
|
|
@@ -479,7 +555,31 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
479
555
|
}>;
|
|
480
556
|
dismissHandOff?: () => void;
|
|
481
557
|
handOffBusinessName?: string;
|
|
482
|
-
handOffOfferingLabel?: string;
|
|
558
|
+
handOffOfferingLabel?: string; /** The rooms step, on an event with rooms; null otherwise. */
|
|
559
|
+
roomChooser: {
|
|
560
|
+
view: Readonly<{
|
|
561
|
+
intro: string;
|
|
562
|
+
kinds: readonly RoomKindView[];
|
|
563
|
+
stayLines: readonly string[];
|
|
564
|
+
note: string | null;
|
|
565
|
+
splitWarning: string | null;
|
|
566
|
+
notice: string | null;
|
|
567
|
+
noticeStay: readonly string[];
|
|
568
|
+
takeOff: Readonly<{
|
|
569
|
+
label: string;
|
|
570
|
+
choices: readonly RoomChoice[];
|
|
571
|
+
}> | null;
|
|
572
|
+
people: number;
|
|
573
|
+
totalCents: number | null;
|
|
574
|
+
totalNote: string | null;
|
|
575
|
+
priceNote: string | null;
|
|
576
|
+
}>;
|
|
577
|
+
choices: readonly RoomChoice[]; /** The places without a room. */
|
|
578
|
+
dayOptions: readonly EventRegistrationPricingOption[];
|
|
579
|
+
setRoomChoices: (choices: readonly RoomChoice[]) => void;
|
|
580
|
+
setDayLines: (lines: readonly EventTicketSelectionLine[]) => void;
|
|
581
|
+
} | null; /** What can be listed as a ticket: an event's room prices can only be chosen through its rooms. */
|
|
582
|
+
listableTicketTypes: readonly EventRegistrationPricingOption[];
|
|
483
583
|
api: BoundBlockApiClient;
|
|
484
584
|
nowIso: UtcIsoDateTimeString; /** Whether the clock has stopped this visitor starting a booking on this page. */
|
|
485
585
|
bookingClosure: FreshBookingClosure;
|
|
@@ -495,7 +595,8 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
495
595
|
paysNothing: boolean;
|
|
496
596
|
offersEntitlements: boolean;
|
|
497
597
|
paysInFullBecauseSeveral: boolean;
|
|
498
|
-
};
|
|
598
|
+
}; /** Why one booking's card payment is the whole price although its terms offer a deposit; null otherwise. */
|
|
599
|
+
paymentInFullNote: string | null;
|
|
499
600
|
anchorId: string;
|
|
500
601
|
occurrenceContext: {
|
|
501
602
|
id: string;
|
|
@@ -555,7 +656,21 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
555
656
|
}> | null;
|
|
556
657
|
hint: string;
|
|
557
658
|
} | null;
|
|
558
|
-
combinationAwaitingVisitor: boolean;
|
|
659
|
+
combinationAwaitingVisitor: boolean;
|
|
660
|
+
/**
|
|
661
|
+
* The dates' ways to pay from the server and the visitor's pick; null for anything else, and
|
|
662
|
+
* for one date the card alone pays for, which keeps the card step.
|
|
663
|
+
*/
|
|
664
|
+
selectionFunding: Readonly<{
|
|
665
|
+
status: 'loading' | 'failed' | 'loaded';
|
|
666
|
+
view: SelectionFundingView | null;
|
|
667
|
+
dateCount: number;
|
|
668
|
+
notice: string | null;
|
|
669
|
+
choose: (row: Pick<FundingOptionRow, 'pick' | 'card'>) => void;
|
|
670
|
+
retry: () => void;
|
|
671
|
+
}> | null;
|
|
672
|
+
handleChangeDates: () => void;
|
|
673
|
+
paymentTermsSurface: "commerce" | "primary"; /** The payment step's list of what several items cost; null for one item. */
|
|
559
674
|
selectionPaymentSummary: SelectionPaymentSummary | null;
|
|
560
675
|
runChoices: Readonly<Record<string, Readonly<{
|
|
561
676
|
pricingOptionId: string | null;
|
|
@@ -588,13 +703,7 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
588
703
|
}> | null;
|
|
589
704
|
slidingScaleSelectionMessage: string | null;
|
|
590
705
|
selectedTicketType: EventRegistrationPricingOption | null;
|
|
591
|
-
ticketSelectionSummaryLines:
|
|
592
|
-
pricingOptionId: string | null;
|
|
593
|
-
label: string;
|
|
594
|
-
quantity: number;
|
|
595
|
-
unitPriceCents: number;
|
|
596
|
-
subtotalCents: number;
|
|
597
|
-
}[];
|
|
706
|
+
ticketSelectionSummaryLines: EventTicketLineSummary[];
|
|
598
707
|
ticketSelectionSubtotalCents: number | null;
|
|
599
708
|
visibleTicketTypes: EventRegistrationPricingOption[];
|
|
600
709
|
overallRemainingPlaces: number | null;
|
|
@@ -650,24 +759,17 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
650
759
|
setShowMagicLinkModal: (show: boolean) => void;
|
|
651
760
|
handleLogout: () => void;
|
|
652
761
|
paymentStepState: PaymentStepState; /** Pay is off only because a typed code hasn't been applied yet, which the customer needs telling. */
|
|
653
|
-
paymentHeldForCode: boolean;
|
|
654
|
-
passPriceAfterCodeCents: number | null; /** A membership's first payment after its discount; it renews at the regular price. */
|
|
655
|
-
membershipFirstPaymentCents: number | null;
|
|
762
|
+
paymentHeldForCode: boolean;
|
|
656
763
|
handlePaymentSelectionChange: (value: Parameters<(selection: PaymentSelection) => void>[0]) => void;
|
|
657
764
|
paymentSelection: PaymentSelection;
|
|
658
|
-
declinedPass: Readonly<{
|
|
659
|
-
method: 'pass';
|
|
660
|
-
passId: string;
|
|
661
|
-
productName?: string;
|
|
662
|
-
}> | null;
|
|
663
|
-
isMembershipFastTrack: boolean;
|
|
664
765
|
waitlistClaim: Readonly<{
|
|
665
766
|
kind: 'none';
|
|
666
767
|
}> | WaitlistInvitation;
|
|
667
768
|
eligibility: EligibilityData | null;
|
|
668
769
|
registrationOptionsState: EligibilityLookupState;
|
|
669
770
|
eligibilityLoading: boolean;
|
|
670
|
-
eligibilityError: string | null;
|
|
771
|
+
eligibilityError: string | null; /** Asks for the booking options again, after they failed to load. */
|
|
772
|
+
reloadOptions: () => void;
|
|
671
773
|
existingRegistrations: CustomerEventRegistration[];
|
|
672
774
|
existingRegistrationLoading: boolean;
|
|
673
775
|
existingRegistrationState: ExistingRegistrationLookupState;
|
|
@@ -680,8 +782,6 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
680
782
|
}> | Readonly<{
|
|
681
783
|
kind: 'waitlisted';
|
|
682
784
|
}>;
|
|
683
|
-
hasEligibility: boolean;
|
|
684
|
-
hasMembershipEligibility: boolean;
|
|
685
785
|
requireGuestDetails: boolean;
|
|
686
786
|
discountCode: string;
|
|
687
787
|
setDiscountCode: (value: string) => void;
|
|
@@ -691,8 +791,30 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
691
791
|
manualCodeEntryAllowed: boolean;
|
|
692
792
|
autoAppliedDiscount: AutoAppliedDiscountPreview | null;
|
|
693
793
|
discountsAvailableLoading: boolean;
|
|
694
|
-
discountContext:
|
|
794
|
+
discountContext: {
|
|
795
|
+
type: 'whole_series';
|
|
796
|
+
eventSeriesId: string;
|
|
797
|
+
} | {
|
|
798
|
+
type: "event";
|
|
799
|
+
eventSeriesId: string;
|
|
800
|
+
eventCategoryId: string | null;
|
|
801
|
+
ticketsCount?: number;
|
|
802
|
+
} | {
|
|
803
|
+
type: "appointment";
|
|
804
|
+
serviceId: string;
|
|
805
|
+
} | {
|
|
806
|
+
type: "pass";
|
|
807
|
+
passId: string;
|
|
808
|
+
} | {
|
|
809
|
+
type: "membership";
|
|
810
|
+
membershipId: string;
|
|
811
|
+
} | {
|
|
812
|
+
type: "product";
|
|
813
|
+
productId: string;
|
|
814
|
+
productCategoryId: string | null;
|
|
815
|
+
} | null;
|
|
695
816
|
shouldShowDiscountToggle: boolean;
|
|
817
|
+
discountCardOnly: boolean;
|
|
696
818
|
verification: {
|
|
697
819
|
status: 'idle' | 'polling' | 'completed' | 'failed' | 'timeout';
|
|
698
820
|
result: {
|
|
@@ -707,6 +829,16 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
707
829
|
};
|
|
708
830
|
outcome: {
|
|
709
831
|
kind: "resolved";
|
|
832
|
+
submissionPayment?: {
|
|
833
|
+
amountPaidCents: NonNegativeCents;
|
|
834
|
+
creditCents: NonNegativeCents;
|
|
835
|
+
currency: CurrencyCode;
|
|
836
|
+
purchasedItems: readonly {
|
|
837
|
+
kind: "membership" | "pass";
|
|
838
|
+
name: string;
|
|
839
|
+
priceCents: NonNegativeCents;
|
|
840
|
+
}[];
|
|
841
|
+
} | null | undefined;
|
|
710
842
|
outcome: {
|
|
711
843
|
arrivalVenues?: Record<string, string> | undefined;
|
|
712
844
|
kind: "detailsAvailable";
|
|
@@ -1181,6 +1313,16 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1181
1313
|
};
|
|
1182
1314
|
outcome: {
|
|
1183
1315
|
kind: "resolved";
|
|
1316
|
+
submissionPayment?: {
|
|
1317
|
+
amountPaidCents: NonNegativeCents;
|
|
1318
|
+
creditCents: NonNegativeCents;
|
|
1319
|
+
currency: CurrencyCode;
|
|
1320
|
+
purchasedItems: readonly {
|
|
1321
|
+
kind: "membership" | "pass";
|
|
1322
|
+
name: string;
|
|
1323
|
+
priceCents: NonNegativeCents;
|
|
1324
|
+
}[];
|
|
1325
|
+
} | null | undefined;
|
|
1184
1326
|
outcome: {
|
|
1185
1327
|
arrivalVenues?: Record<string, string> | undefined;
|
|
1186
1328
|
kind: "detailsAvailable";
|
|
@@ -1662,9 +1804,7 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1662
1804
|
handleReturnToBooking: () => void;
|
|
1663
1805
|
checkingNextStep: boolean;
|
|
1664
1806
|
handleDetailsComplete: () => Promise<EventRegistrationDetailsCompleteResult>;
|
|
1665
|
-
handlePaymentSelect: () => Promise<
|
|
1666
|
-
handleUseCardInsteadOfPass: () => void;
|
|
1667
|
-
handleUsePassInstead: () => void;
|
|
1807
|
+
handlePaymentSelect: () => Promise<EventRegistrationSubmitResult>;
|
|
1668
1808
|
handleBookForSomeoneElse: () => void;
|
|
1669
1809
|
handleBookAnother: () => void;
|
|
1670
1810
|
handleSubmit: (...args: Parameters<EventRegistrationSubmit>) => ReturnType<EventRegistrationSubmit>;
|
|
@@ -1682,7 +1822,31 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1682
1822
|
}>;
|
|
1683
1823
|
dismissHandOff?: () => void;
|
|
1684
1824
|
handOffBusinessName?: string;
|
|
1685
|
-
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[];
|
|
1686
1850
|
api: BoundBlockApiClient;
|
|
1687
1851
|
nowIso: UtcIsoDateTimeString; /** Whether the clock has stopped this visitor starting a booking on this page. */
|
|
1688
1852
|
bookingClosure: FreshBookingClosure;
|
|
@@ -1698,7 +1862,8 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1698
1862
|
paysNothing: boolean;
|
|
1699
1863
|
offersEntitlements: boolean;
|
|
1700
1864
|
paysInFullBecauseSeveral: boolean;
|
|
1701
|
-
};
|
|
1865
|
+
}; /** Why one booking's card payment is the whole price although its terms offer a deposit; null otherwise. */
|
|
1866
|
+
paymentInFullNote: string | null;
|
|
1702
1867
|
anchorId: string;
|
|
1703
1868
|
occurrenceContext: {
|
|
1704
1869
|
id: string;
|
|
@@ -1758,7 +1923,21 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1758
1923
|
}> | null;
|
|
1759
1924
|
hint: string;
|
|
1760
1925
|
} | null;
|
|
1761
|
-
combinationAwaitingVisitor: boolean;
|
|
1926
|
+
combinationAwaitingVisitor: boolean;
|
|
1927
|
+
/**
|
|
1928
|
+
* The dates' ways to pay from the server and the visitor's pick; null for anything else, and
|
|
1929
|
+
* for one date the card alone pays for, which keeps the card step.
|
|
1930
|
+
*/
|
|
1931
|
+
selectionFunding: Readonly<{
|
|
1932
|
+
status: 'loading' | 'failed' | 'loaded';
|
|
1933
|
+
view: SelectionFundingView | null;
|
|
1934
|
+
dateCount: number;
|
|
1935
|
+
notice: string | null;
|
|
1936
|
+
choose: (row: Pick<FundingOptionRow, 'pick' | 'card'>) => void;
|
|
1937
|
+
retry: () => void;
|
|
1938
|
+
}> | null;
|
|
1939
|
+
handleChangeDates: () => void;
|
|
1940
|
+
paymentTermsSurface: "commerce" | "primary"; /** The payment step's list of what several items cost; null for one item. */
|
|
1762
1941
|
selectionPaymentSummary: SelectionPaymentSummary | null;
|
|
1763
1942
|
runChoices: Readonly<Record<string, Readonly<{
|
|
1764
1943
|
pricingOptionId: string | null;
|
|
@@ -1791,13 +1970,7 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1791
1970
|
}> | null;
|
|
1792
1971
|
slidingScaleSelectionMessage: string | null;
|
|
1793
1972
|
selectedTicketType: EventRegistrationPricingOption | null;
|
|
1794
|
-
ticketSelectionSummaryLines:
|
|
1795
|
-
pricingOptionId: string | null;
|
|
1796
|
-
label: string;
|
|
1797
|
-
quantity: number;
|
|
1798
|
-
unitPriceCents: number;
|
|
1799
|
-
subtotalCents: number;
|
|
1800
|
-
}[];
|
|
1973
|
+
ticketSelectionSummaryLines: EventTicketLineSummary[];
|
|
1801
1974
|
ticketSelectionSubtotalCents: number | null;
|
|
1802
1975
|
visibleTicketTypes: EventRegistrationPricingOption[];
|
|
1803
1976
|
overallRemainingPlaces: number | null;
|
|
@@ -1853,24 +2026,17 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1853
2026
|
setShowMagicLinkModal: (show: boolean) => void;
|
|
1854
2027
|
handleLogout: () => void;
|
|
1855
2028
|
paymentStepState: PaymentStepState; /** Pay is off only because a typed code hasn't been applied yet, which the customer needs telling. */
|
|
1856
|
-
paymentHeldForCode: boolean;
|
|
1857
|
-
passPriceAfterCodeCents: number | null; /** A membership's first payment after its discount; it renews at the regular price. */
|
|
1858
|
-
membershipFirstPaymentCents: number | null;
|
|
2029
|
+
paymentHeldForCode: boolean;
|
|
1859
2030
|
handlePaymentSelectionChange: (value: Parameters<(selection: PaymentSelection) => void>[0]) => void;
|
|
1860
2031
|
paymentSelection: PaymentSelection;
|
|
1861
|
-
declinedPass: Readonly<{
|
|
1862
|
-
method: 'pass';
|
|
1863
|
-
passId: string;
|
|
1864
|
-
productName?: string;
|
|
1865
|
-
}> | null;
|
|
1866
|
-
isMembershipFastTrack: boolean;
|
|
1867
2032
|
waitlistClaim: Readonly<{
|
|
1868
2033
|
kind: 'none';
|
|
1869
2034
|
}> | WaitlistInvitation;
|
|
1870
2035
|
eligibility: EligibilityData | null;
|
|
1871
2036
|
registrationOptionsState: EligibilityLookupState;
|
|
1872
2037
|
eligibilityLoading: boolean;
|
|
1873
|
-
eligibilityError: string | null;
|
|
2038
|
+
eligibilityError: string | null; /** Asks for the booking options again, after they failed to load. */
|
|
2039
|
+
reloadOptions: () => void;
|
|
1874
2040
|
existingRegistrations: CustomerEventRegistration[];
|
|
1875
2041
|
existingRegistrationLoading: boolean;
|
|
1876
2042
|
existingRegistrationState: ExistingRegistrationLookupState;
|
|
@@ -1883,8 +2049,6 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1883
2049
|
}> | Readonly<{
|
|
1884
2050
|
kind: 'waitlisted';
|
|
1885
2051
|
}>;
|
|
1886
|
-
hasEligibility: boolean;
|
|
1887
|
-
hasMembershipEligibility: boolean;
|
|
1888
2052
|
requireGuestDetails: boolean;
|
|
1889
2053
|
discountCode: string;
|
|
1890
2054
|
setDiscountCode: (value: string) => void;
|
|
@@ -1894,8 +2058,30 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1894
2058
|
manualCodeEntryAllowed: boolean;
|
|
1895
2059
|
autoAppliedDiscount: AutoAppliedDiscountPreview | null;
|
|
1896
2060
|
discountsAvailableLoading: boolean;
|
|
1897
|
-
discountContext:
|
|
2061
|
+
discountContext: {
|
|
2062
|
+
type: 'whole_series';
|
|
2063
|
+
eventSeriesId: string;
|
|
2064
|
+
} | {
|
|
2065
|
+
type: "event";
|
|
2066
|
+
eventSeriesId: string;
|
|
2067
|
+
eventCategoryId: string | null;
|
|
2068
|
+
ticketsCount?: number;
|
|
2069
|
+
} | {
|
|
2070
|
+
type: "appointment";
|
|
2071
|
+
serviceId: string;
|
|
2072
|
+
} | {
|
|
2073
|
+
type: "pass";
|
|
2074
|
+
passId: string;
|
|
2075
|
+
} | {
|
|
2076
|
+
type: "membership";
|
|
2077
|
+
membershipId: string;
|
|
2078
|
+
} | {
|
|
2079
|
+
type: "product";
|
|
2080
|
+
productId: string;
|
|
2081
|
+
productCategoryId: string | null;
|
|
2082
|
+
} | null;
|
|
1898
2083
|
shouldShowDiscountToggle: boolean;
|
|
2084
|
+
discountCardOnly: boolean;
|
|
1899
2085
|
verification: {
|
|
1900
2086
|
status: 'idle' | 'polling' | 'completed' | 'failed' | 'timeout';
|
|
1901
2087
|
result: {
|
|
@@ -1910,6 +2096,16 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
1910
2096
|
};
|
|
1911
2097
|
outcome: {
|
|
1912
2098
|
kind: "resolved";
|
|
2099
|
+
submissionPayment?: {
|
|
2100
|
+
amountPaidCents: NonNegativeCents;
|
|
2101
|
+
creditCents: NonNegativeCents;
|
|
2102
|
+
currency: CurrencyCode;
|
|
2103
|
+
purchasedItems: readonly {
|
|
2104
|
+
kind: "membership" | "pass";
|
|
2105
|
+
name: string;
|
|
2106
|
+
priceCents: NonNegativeCents;
|
|
2107
|
+
}[];
|
|
2108
|
+
} | null | undefined;
|
|
1913
2109
|
outcome: {
|
|
1914
2110
|
arrivalVenues?: Record<string, string> | undefined;
|
|
1915
2111
|
kind: "detailsAvailable";
|
|
@@ -2384,6 +2580,16 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
2384
2580
|
};
|
|
2385
2581
|
outcome: {
|
|
2386
2582
|
kind: "resolved";
|
|
2583
|
+
submissionPayment?: {
|
|
2584
|
+
amountPaidCents: NonNegativeCents;
|
|
2585
|
+
creditCents: NonNegativeCents;
|
|
2586
|
+
currency: CurrencyCode;
|
|
2587
|
+
purchasedItems: readonly {
|
|
2588
|
+
kind: "membership" | "pass";
|
|
2589
|
+
name: string;
|
|
2590
|
+
priceCents: NonNegativeCents;
|
|
2591
|
+
}[];
|
|
2592
|
+
} | null | undefined;
|
|
2387
2593
|
outcome: {
|
|
2388
2594
|
arrivalVenues?: Record<string, string> | undefined;
|
|
2389
2595
|
kind: "detailsAvailable";
|
|
@@ -2865,9 +3071,7 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
|
|
|
2865
3071
|
handleReturnToBooking: () => void;
|
|
2866
3072
|
checkingNextStep: boolean;
|
|
2867
3073
|
handleDetailsComplete: () => Promise<EventRegistrationDetailsCompleteResult>;
|
|
2868
|
-
handlePaymentSelect: () => Promise<
|
|
2869
|
-
handleUseCardInsteadOfPass: () => void;
|
|
2870
|
-
handleUsePassInstead: () => void;
|
|
3074
|
+
handlePaymentSelect: () => Promise<EventRegistrationSubmitResult>;
|
|
2871
3075
|
handleBookForSomeoneElse: () => void;
|
|
2872
3076
|
handleBookAnother: () => void;
|
|
2873
3077
|
handleSubmit: (...args: Parameters<EventRegistrationSubmit>) => ReturnType<EventRegistrationSubmit>;
|
|
@@ -2997,22 +3201,23 @@ type EventRegistrationPaymentSelection = Readonly<{
|
|
|
2997
3201
|
}> | Readonly<{
|
|
2998
3202
|
method: 'stripe';
|
|
2999
3203
|
collectionOptionKind: DirectCheckoutCollectionOptionKind;
|
|
3000
|
-
}> | Readonly<{
|
|
3001
|
-
method: 'pass';
|
|
3002
|
-
passId: string;
|
|
3003
|
-
productName?: string;
|
|
3004
|
-
}> | Readonly<{
|
|
3204
|
+
}> /** A run's membership. Dates choose a pass or membership through `funding`. */ | Readonly<{
|
|
3005
3205
|
method: 'membership';
|
|
3006
3206
|
membershipId: string;
|
|
3007
3207
|
productName?: string;
|
|
3008
|
-
}
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3208
|
+
}>;
|
|
3209
|
+
/**
|
|
3210
|
+
* How the dates being booked can be paid (issue 1767): the server's options as rows to
|
|
3211
|
+
* pick with `chooseFunding(row.key)`, "Your booking" for a pass or membership, and the
|
|
3212
|
+
* button. Null when the card options alone pay, as for a run or a date without passes.
|
|
3213
|
+
*/
|
|
3214
|
+
type EventRegistrationFundingModel = Readonly<{
|
|
3215
|
+
status: 'loading' | 'failed' | 'loaded';
|
|
3216
|
+
rows: readonly FundingOptionRow[];
|
|
3217
|
+
summary: FundedSummary | null; /** The payment button's words; null leaves them to the card step's `stepState`. */
|
|
3218
|
+
buttonText: string | null; /** Why passes and memberships aren't offered, such as several places. */
|
|
3219
|
+
note: string | null; /** Why the options changed after a refused booking. */
|
|
3220
|
+
notice: string | null;
|
|
3016
3221
|
}>;
|
|
3017
3222
|
type EventRegistrationPaymentModel = Readonly<{
|
|
3018
3223
|
kind: 'hidden';
|
|
@@ -3021,6 +3226,7 @@ type EventRegistrationPaymentModel = Readonly<{
|
|
|
3021
3226
|
directPaymentSelectionState: EventRegistrationDirectPaymentSelectionState;
|
|
3022
3227
|
checkout: EventPaymentState;
|
|
3023
3228
|
stepState: PaymentStepState;
|
|
3229
|
+
funding: EventRegistrationFundingModel | null;
|
|
3024
3230
|
}> | Readonly<{
|
|
3025
3231
|
kind: 'loading' | 'error' | 'not-eligible' | 'ready';
|
|
3026
3232
|
selection: EventRegistrationPaymentSelection;
|
|
@@ -3030,6 +3236,7 @@ type EventRegistrationPaymentModel = Readonly<{
|
|
|
3030
3236
|
stepState: PaymentStepState;
|
|
3031
3237
|
eligibility: EligibilityData | null;
|
|
3032
3238
|
eligibilityError: string | null | undefined;
|
|
3239
|
+
funding: EventRegistrationFundingModel | null;
|
|
3033
3240
|
}>;
|
|
3034
3241
|
type EventRegistrationDiscountModel = Readonly<{
|
|
3035
3242
|
code: string;
|
|
@@ -3065,7 +3272,9 @@ type EventRegistrationFlowActions = Readonly<{
|
|
|
3065
3272
|
setTicketsCount: (count: number) => void;
|
|
3066
3273
|
updateAttendee: (values: FormData) => void;
|
|
3067
3274
|
updateGuests: (guests: Guest[]) => void;
|
|
3068
|
-
selectPayment: (selection: EventRegistrationPaymentSelection) => void;
|
|
3275
|
+
selectPayment: (selection: EventRegistrationPaymentSelection) => void; /** Picks one of `payment.funding.rows` by its key. */
|
|
3276
|
+
chooseFunding: (key: string) => void; /** Asks for the ways to pay again after they failed to load. */
|
|
3277
|
+
retryFunding: () => void;
|
|
3069
3278
|
setDiscountCode: (code: string) => void;
|
|
3070
3279
|
setDiscountOpen: (isOpen: boolean) => void; /** Checks a typed code with the server; checkout waits until it's accepted or removed. */
|
|
3071
3280
|
applyDiscountCode: () => Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as BindingTransformName } from "./index-
|
|
1
|
+
import { Ut as NavigationAuthoringLinkInput, Wt as NavigationConfigItemInput } from "./request-P08l6mkr.js";
|
|
2
|
+
import { u as BindingTransformName } from "./index-BeM5Ylwf.js";
|
|
3
3
|
|
|
4
4
|
//#region .cache/declarations/sdk/src/types/block-kinds.d.ts
|
|
5
5
|
/**
|