@riverbankcms/sdk 0.181.0 → 0.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +79 -0
- package/README.md +49 -3
- package/dist/_dts/{BlocksIslandsHydrator-CVCasDPz.d.ts → BlocksIslandsHydrator-X1_G96iN.d.ts} +1 -1
- package/dist/_dts/{Page-Dtj2Ui3S.d.ts → Page-CEqZJZEE.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-D1f_60WW.d.ts → SdkPreviewMode-DQejfbXL.d.ts} +2 -2
- package/dist/_dts/{client-Chr9pNVW.d.ts → client-B_B_amKD.d.ts} +2 -3
- package/dist/_dts/{content-types-kjccgopX.d.ts → content-types-Dhx5Ocvx.d.ts} +9 -16
- package/dist/_dts/{contracts-BodaiS00.d.ts → contracts-FeOnfoa1.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-BS6kaJFp.d.ts → generatePageMetadata-m70J6tit.d.ts} +2 -2
- package/dist/_dts/{index-Brl6_I2j.d.ts → index-BOpUh8kO.d.ts} +1 -1
- package/dist/_dts/{index-CJkefwYh.d.ts → index-Bizdaxji.d.ts} +2 -2
- package/dist/_dts/{index-Diqt0PvG.d.ts → index-BxCmCit0.d.ts} +1 -1
- package/dist/_dts/{index-DG0OvBs0.d.ts → index-CjAkEWAp.d.ts} +4 -4
- package/dist/_dts/{index-D1WpKwQe.d.ts → index-iuFrbIjt.d.ts} +1 -1
- package/dist/_dts/{index-Dy50xUMK.d.ts → index-liuhlOX7.d.ts} +2 -2
- package/dist/_dts/{loadContent-BgxshKrA.d.ts → loadContent-D4wrTIIw.d.ts} +7 -7
- package/dist/_dts/{request-CA0izds5.d.ts → request-Gn0O1blj.d.ts} +25042 -23761
- package/dist/_dts/{resolveBlockData-ChQmwEd3.d.ts → resolveBlockData-D5duwuqS.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BvGyvblj.d.ts → resolvePageContent-xzJ3c9Na.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 +7 -7
- 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 -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 +7 -7
- 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 +1 -1
- package/dist/_dts/sdk/src/portal/index.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +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 +91 -2
- package/dist/_dts/{serviceBookingOutline-BgFbJQhU.d.ts → serviceBookingOutline-B1gyJon_.d.ts} +7 -7
- package/dist/_dts/{types-CgS3xLk8.d.ts → types-BoITy0rA.d.ts} +41 -4
- package/dist/_dts/{types-CQrsP1x_.d.ts → types-DBNuMtSk.d.ts} +16 -5
- package/dist/_dts/{types-R65DKjPn.d.ts → types-DHMcuoeQ.d.ts} +7 -7
- package/dist/_dts/{validation-6LTIbuBA.d.ts → validation-BIPO-XlE.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DqZPz6oW.mjs → BlocksIslandsHydrator-Ct8slgRk.mjs} +22 -18
- package/dist/client/{BookingMailingListNote-uWfR2kaG.mjs → BookingMailingListNote-qqTxGGS4.mjs} +7 -7
- package/dist/client/{BookingQuestionFields-CyNIKw6k.mjs → BookingQuestionFields-DCh9MUIF.mjs} +2 -2
- package/dist/client/{CalendarAction-D_Glwvz2.mjs → CalendarAction-RcdaStG7.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-BGCX3zwG.mjs → CalendarNavigationChevron-D7Wt-Oaa.mjs} +27 -10
- package/dist/client/{CheckboxChoice-C8i4NraK.mjs → CheckboxChoice-BdGxZWeg.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-DFLPyuqe.mjs → DemoBookingPortalAccess-HFVkoOac.mjs} +5 -5
- package/dist/client/{EventCalendar.client-zDL4-t-B.mjs → EventCalendar.client-BtkJW8bA.mjs} +10 -10
- package/dist/client/{EventCombined.client-uciDKLID.mjs → EventCombined.client-DxaGjFFS.mjs} +9 -9
- package/dist/client/{EventEmbeddedCheckoutStep-BGkbUhuw.mjs → EventEmbeddedCheckoutStep-B2c5dR49.mjs} +1 -1
- package/dist/client/{EventItem-CwzrjcRw.mjs → EventItem-Fr2qi2C2.mjs} +33 -186
- package/dist/client/{EventListWeekNavigation-ChvcnPma.mjs → EventListWeekNavigation-BRMaq0ky.mjs} +1 -1
- package/dist/client/{EventListing.client-DA57Qoyx.mjs → EventListing.client-BhGxfbjt.mjs} +3 -3
- package/dist/client/{EventListing.view-DZ0qMFF4.mjs → EventListing.view-COuEJzbO.mjs} +8 -8
- package/dist/client/{EventRegistrationPayment-DSqCJL8E.mjs → EventRegistrationPayment-BTLYhVxD.mjs} +41 -195
- package/dist/client/{Page-C7mygH_f.mjs → Page-CgbQZP5g.mjs} +2947 -1018
- package/dist/client/{ProtectedSubmitButton-BNnKuir8.mjs → ProtectedSubmitButton-BG7my0Qf.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-B4z-e4Wq.mjs → SiteTermsAgreementField-DQNkfNLA.mjs} +3 -3
- package/dist/client/{StepIndicator-Dn_DY4oY.mjs → StepIndicator-DvPekKeM.mjs} +1 -1
- package/dist/client/{StepIndicator-atfDU82W.mjs → StepIndicator-DyXoI3ob.mjs} +221 -20
- package/dist/client/{ThemedButton-PFOhXktM.mjs → ThemedButton-Bc9DBbVp.mjs} +42 -9
- package/dist/client/{accessibleSurfaces-n6kS6Hct.mjs → accessibleSurfaces-wj4Rloo5.mjs} +1214 -724
- package/dist/client/{accordion-CsW8U3ff.mjs → accordion-BVXfjnh-.mjs} +1 -1
- package/dist/client/{booking-form.client-cBWM392H.mjs → booking-form.client-DycPGtke.mjs} +191 -71
- package/dist/client/{bookingForm-DgySpp6C.mjs → bookingForm-DrWSUqL3.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-BpGVdLFD.mjs → boxStyleClassNames-CduDRcIk.mjs} +2 -2
- package/dist/client/buttonParts-CJEtVOUy.mjs +1511 -0
- package/dist/client/{carousel-DJoleFV3.mjs → carousel-DyCLMP8s.mjs} +2 -2
- package/dist/client/{carousel.client-BtLwHefX.mjs → carousel.client-DffP_Nv0.mjs} +1 -1
- package/dist/client/{cart-EO5o6uPH.mjs → cart-BuEp_cj4.mjs} +3 -3
- package/dist/client/{cart.client-D_gPw45z.mjs → cart.client-CAO39uDG.mjs} +1 -1
- package/dist/client/{checkout-NVfZW0kR.mjs → checkout-BoxzT64s.mjs} +3 -3
- package/dist/client/{checkout.client-DD3JuqOy.mjs → checkout.client-IGUy7XOx.mjs} +1 -1
- package/dist/client/{checkoutUrls-z2gXvlGw.mjs → checkoutUrls-D0UsiFmm.mjs} +1 -1
- package/dist/client/client.mjs +466 -94
- package/dist/client/{constants-CoOkvw__.mjs → constants-C_8AxMdm.mjs} +1 -1
- package/dist/client/{context-CRhn9qzS.mjs → context-D1L0pe__.mjs} +23 -5
- package/dist/client/{dateFormatting-BnWB4L1s.mjs → dateFormatting-HvfmS_cH.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CWDGSTBu.mjs → demoPortalMagicLink-BunFTnIq.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-tdP_-Z9o.mjs → enhanceHeaderSection-CtLAG651.mjs} +4 -4
- package/dist/client/{event-registration.client-D7YYKySQ.mjs → event-registration.client-DiSxkBUP.mjs} +15 -15
- package/dist/client/{eventCalendar-CsAfu5d0.mjs → eventCalendar-DUnhwZ1o.mjs} +4 -4
- package/dist/client/{eventCombined-VXJB5CoS.mjs → eventCombined-BvBQo0nF.mjs} +4 -4
- package/dist/client/{eventListing-B3KIZNfY.mjs → eventListing-aTLifOX7.mjs} +4 -4
- package/dist/client/{eventRegistration-BP-dEk1c.mjs → eventRegistration-DFd7pr09.mjs} +4 -4
- package/dist/client/{form-DM8Zbxbv.mjs → form-Dikmc2AO.mjs} +3 -3
- package/dist/client/{form.client-e2z_Tlgk.mjs → form.client-zHaQK5I9.mjs} +5 -5
- package/dist/client/{form.parts-Ctljy1a3.mjs → form.parts-BLl9n8TH.mjs} +3 -3
- package/dist/client/gifting/client.mjs +16 -9
- package/dist/client/{gifting-DWIsqQru.mjs → gifting-CufPM38H.mjs} +4 -4
- package/dist/client/{gifting.client-QsSWF0uA.mjs → gifting.client--N1GaSY8.mjs} +155 -84
- package/dist/client/gifting.interactive-D9MK4HkV.mjs +157 -0
- package/dist/client/gifting.parts-CRtiRzo-.mjs +119 -0
- package/dist/client/{headerSection-DAkRkwb-.mjs → headerSection-BIaBpmk3.mjs} +2 -2
- package/dist/client/{noop-Dl4mZ-rr.mjs → islands-DJDLGQEm.mjs} +16008 -8676
- package/dist/client/{newsletter-form.client-WYja9-WN.mjs → newsletter-form.client-wg_JHTxm.mjs} +6 -6
- package/dist/client/{newsletter-form.interactive-RuM86VAv.mjs → newsletter-form.interactive-hzpkW9NQ.mjs} +384 -326
- package/dist/client/{newsletter-form.parts-2petDnWv.mjs → newsletter-form.parts-CgzpSv9p.mjs} +2 -2
- package/dist/client/{newsletterForm-BUbXdA_e.mjs → newsletterForm-CvxLiEBT.mjs} +3 -3
- package/dist/client/portal/client.mjs +291 -101
- package/dist/client/{portalOrders-COGn4BKG.mjs → portalOrders-tCxS04g0.mjs} +3 -2
- package/dist/client/{portalRoutes-D72yvtDh.mjs → portalRoutes-DTHlWg_F.mjs} +33 -7
- package/dist/client/{product-detail.client-pOAryevt.mjs → product-detail.client-22Q7zgjN.mjs} +1 -1
- package/dist/client/{product-list.client-CcUpUiud.mjs → product-list.client-DFWYvK8z.mjs} +1 -1
- package/dist/client/{productDetail-BZJCfqat.mjs → productDetail-DhZAwo60.mjs} +3 -3
- package/dist/client/{productList-CiRs3mNb.mjs → productList-BiVpbZK2.mjs} +3 -3
- package/dist/client/{propsDecoder--uHW4tFM.mjs → propsDecoder-DFYqKnLy.mjs} +4 -2
- package/dist/client/{registry.server-CDNNd8wC.mjs → registry.server-C3OBRg7x.mjs} +2305 -873
- package/dist/client/rendering/client.mjs +29 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-CQGE_wHV.mjs → richText-coerce-ms477Z08.mjs} +2 -2
- package/dist/client/{routeIslandApiConfig-BtCg87-N.mjs → routeIslandApiConfig-B6nQeqvH.mjs} +1 -1
- package/dist/client/{runtimeResponse-Ds9cmBUf.mjs → runtimeResponse-BYqsV1Kb.mjs} +1 -1
- package/dist/client/runtimeResponse-CUX_lldL.mjs +3 -0
- package/dist/client/{shop-commerce-D8evQnMT.mjs → shop-commerce-DVsIcPaI.mjs} +16 -15
- package/dist/client/{shop-commerce-store-C9PcsSTj.mjs → shop-commerce-store-7mO6KY7_.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-D5CtGfJI.mjs → shop-discount-apply.state-L1Vge8tG.mjs} +2 -2
- package/dist/client/{shop-Rx_gEMK8.mjs → shop-xt4dQ3HH.mjs} +3 -3
- package/dist/client/{shop.client-D4lzQ9oY.mjs → shop.client-DNJfD3VQ.mjs} +28 -17
- package/dist/client/{shopShared-BVbq7Nm-.mjs → shopShared-DS8t6749.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{src-ZSqRK3dD.mjs → src-Do_s2lqH.mjs} +16 -19
- package/dist/client/{timetableModel-BQJrSK0K.mjs → timetableModel-Dy3nNfTG.mjs} +13 -17
- package/dist/client/{useAvailableSlots-Dm3lKJKR.mjs → useAvailableSlots-DcjtDpUu.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-klgfGn7f.mjs → useDiscountCodeUi-DvdFFWOT.mjs} +1 -1
- package/dist/client/{useEventPagination-Jnjt7_ly.mjs → useEventPagination-Cq-7sU5_.mjs} +8 -8
- package/dist/client/{view-CC_yQLSA.mjs → view-4gnPcpWJ.mjs} +24 -9
- package/dist/client/{wizardSteps-BliJOzEX.mjs → wizardSteps-DDvL3iza.mjs} +375 -186
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-aRJjq4x8.mjs → EventEmbeddedCheckoutStep-CLqSRUpt.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-BW3dRFIv.mjs → LocationPickerEnvironment-CIdAg-Tm.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-Db9BHyXh.mjs → MapLibreEditMap-Bm85jX35.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-BhL0uADo.mjs → PageSectionToolbar-D8srnz9R.mjs} +445 -18
- package/dist/preview-next/client/{PreviewEditorSidebar-Ct8eIm0i.mjs → PreviewEditorSidebar-DVpk5cqp.mjs} +3871 -1947
- package/dist/preview-next/client/{PreviewEditorUI-BS32G4V9.mjs → PreviewEditorUI-XoTtHSFH.mjs} +11 -36
- package/dist/preview-next/client/{PreviewShell-RL0WfZXD.mjs → PreviewShell-VQHsRg2u.mjs} +40 -35
- package/dist/preview-next/client/{SdkPreviewModeRuntime-MK_gHeGy.mjs → SdkPreviewModeRuntime-CLdF9f6o.mjs} +51 -20
- package/dist/preview-next/client/{ThemedButton-CVYz7h68.mjs → ThemedButton-ORNN4x-3.mjs} +782 -16
- package/dist/preview-next/client/{lucide-react-00FF_oar.mjs → lucide-react-eAi3tDAr.mjs} +11 -1
- package/dist/preview-next/client/{previewAssistantSlot-CQyS8pcq.mjs → previewAssistantSlot-CqH91EwA.mjs} +20687 -8562
- package/dist/preview-next/client/{previewChromeRoot-BSxp3Mfu.mjs → previewChromeRoot-B3ySEu6p.mjs} +3 -90
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DKnTzy74.mjs → sdk-runtime-CdpSupcr.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BlmbvbLN.mjs → siteStyleAccess-C6eOP6QW.mjs} +35 -6
- package/dist/preview-next/client/{useAutosaveStatus-D-7GwZOQ.mjs → useAutosaveStatus-BhPg4e-r.mjs} +49 -3
- package/dist/preview-next/client/{useOpenBlockForSetup-BNZtGM5g.mjs → useOpenBlockForSetup-BaWUF9D7.mjs} +2007 -448
- package/dist/preview-next/container-responsive.css +320 -0
- package/dist/preview-next/editor-chrome.css +23 -2
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-R3PcMmax.mjs → route-contract-Ch0X99vE.mjs} +183 -18
- package/dist/server/{Block.shared-CniF9tSu.mjs → Block.shared-B2FmczLO.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-BQWsnGT6.mjs → ThemeScopeCore-DtAyv9qA.mjs} +51 -29
- package/dist/server/{accessibleSurfaces-WPzUAHp4.mjs → accessibleSurfaces-BtPqb76u.mjs} +509 -389
- package/dist/server/{accordions-By_0Ykks.mjs → accordions-vzdZ2Wt1.mjs} +1 -1
- package/dist/server/{bindings-DxojjtK3.mjs → bindings-B_9JuU66.mjs} +7 -7
- package/dist/server/{client-CDndhbYO.mjs → client-DC7cjiSw.mjs} +489 -93
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-VyF5nEhL.mjs → constants-d6nPNJpe.mjs} +33 -6
- package/dist/server/{customCss-C9kgPHvr.mjs → customCss-rtIfEYwQ.mjs} +1 -18
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{resolveButtonColourStates-B0O1IM16.mjs → expandPalette-DxPrNOAB.mjs} +950 -316
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-BKstMBmX.mjs → loadContent-hb27HYic.mjs} +11 -10
- package/dist/server/{loadPage-IgNnZaqr.mjs → loadPage-JToD8wDD.mjs} +3 -3
- package/dist/server/{lookMediaFrame-TFjgNG61.mjs → lookMediaFrame-CTsycLLK.mjs} +94 -39
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{navigation-quBYlSKD.mjs → navigation-B2WhGofA.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +8 -8
- package/dist/server/{overrideResolution-CCaAPpIa.mjs → overrideResolution-vD5KTClL.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-B7iULvKe.mjs → pageRenderPlan-CdqJ1NQZ.mjs} +242 -336
- package/dist/server/{pageRuntimeSupport-BytMroxn.mjs → pageRuntimeSupport-CAhr4oOf.mjs} +3 -3
- package/dist/server/{pageShared-Dcs_XTIO.mjs → pageShared-m80Xu2pd.mjs} +1292 -877
- package/dist/server/{parseThemeForPersistence-Bihl4W5K.mjs → parseThemeForPersistence-CRwOZfpa.mjs} +3 -3
- package/dist/server/{portal-CMW_b9mG.mjs → portal-B2wCQno_.mjs} +1 -1
- package/dist/server/portal.mjs +2 -2
- package/dist/server/{prebuild-agaH-vZV.mjs → prebuild-BWIkFaXq.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-DwpRjqw4.mjs → prefetchBlockData-D1PHU-K9.mjs} +3 -3
- package/dist/server/{registry-DM9dHfDC.mjs → registry-KtsOsAzY.mjs} +21703 -10936
- 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 +9 -9
- package/dist/server/{resolveBlockData-CinHGf8l.mjs → resolveBlockData-sjIDJYl7.mjs} +1 -1
- package/dist/server/{schema-CwfxQjc4.mjs → schema-BBEqquBM.mjs} +44 -28
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-BBBhOtdE.mjs → servicePageContent-ChEZDRwU.mjs} +38 -15
- package/dist/server/theme-bridge.mjs +34 -9
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-DPaUPTfl.mjs → three-pass-converter-DKCIBeb1.mjs} +2 -2
- package/dist/server/{titleSourceSchema-NhK6azFS.mjs → titleSourceSchema-DybHErxH.mjs} +4 -4
- package/dist/server/{typeGuards-CTW_9AXq.mjs → typeGuards-DZOaGTEv.mjs} +126 -126
- package/dist/server/{types-BKaBZFjD.mjs → types-vyz09w64.mjs} +479 -8
- package/dist/server/{validation-DG5jX3jH.mjs → validation-Cvi-1TZZ.mjs} +13 -9
- package/dist/server/{version-CipbxPHL.mjs → version-B-icAIV1.mjs} +1 -1
- package/dist/server/{video-Cdr3wh-q.mjs → video-DBaeSawZ.mjs} +1 -1
- package/dist/styles/index.css +2568 -154
- package/package.json +1 -1
- package/dist/client/gifting.parts-CedLgwa_.mjs +0 -86
- package/dist/client/runtimeResponse-DL_ARBpa.mjs +0 -3
- package/dist/client/types-BEaKfam_.mjs +0 -778
package/dist/client/{EventRegistrationPayment-DSqCJL8E.mjs → EventRegistrationPayment-BTLYhVxD.mjs}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { m as ok, p as err } from "./renderableMediaAssetAdmission-BsOWd9lf.mjs";
|
|
3
|
-
import { An as formatCurrencyAmount, St as roomChoicesSchema, dn as inferSiteDateLocale, t as assertNever, wn as resolveBookingBusinessTimeZone, xt as reviewedRoomsSchema } from "./src-
|
|
4
|
-
import { $
|
|
5
|
-
import { i as portalPath } from "./portalRoutes-
|
|
3
|
+
import { An as formatCurrencyAmount, St as roomChoicesSchema, dn as inferSiteDateLocale, t as assertNever, wn as resolveBookingBusinessTimeZone, xt as reviewedRoomsSchema } from "./src-Do_s2lqH.mjs";
|
|
4
|
+
import { $n as serverPricedTotalCents, $s as orderedLiveRunSessions, $t as toWholeSeriesRegistrationEvents, A as ownCoverPaysEveryDate, Ar as normalizeTicketSelectionLines, At as resolveEventRequiresPayment, Bs as eventRegistrationErrors, Bt as defaultTicketOptions, C as currentSelectionFundingLookup, Ca as toBookingQuestionsPaymentSnapshot, Cn as primarySelectionItem, Cr as withRegistrationAvailability, Ct as beginWaitlistInvitation, D as fundingOptionPick, Dt as buildRegistrationSelectionRequest, E as fundingOptionKey, Ea as formatPrice, Et as withOfferedEvent, F as selectionFundingRequest, Ft as validateFormData, G as planRegistrationDetailsContinuation, Gn as combinationHintCopy, Gt as selectRoomOffer, H as getTicketSelectionPurpose, Hn as severalRunsChoiceMessage, Hs as parseEventRegistrationErrorReason, Ht as presentRoomChooser, I as buildEventRegistrationPaymentOptionsViewModel, J as resolveRegistrationAdmission, Jn as combinationWorking, Kt as isSameWaitlistClaim, L as buildSelectionCollectionOptions, Ls as decideSelectionAttendance, Lt as bookingLines, M as selectionFundingBasis, Mt as resolveRouteRequiresPayment, N as selectionFundingFetchWanted, Ni as groupPublicEventsByRun, Nn as selectionIncludes, Nt as toRegistrationRequestSubject, O as initialSelectionFundingLookup, P as selectionFundingReducer, Pn as selectionItemPrice, Pt as registrationQuestionsMessage, Q as visitorHoldsOwnPlace, Qn as selectionPreviewLines, R as decideEventRegistrationPayment, Rt as dayOptionsOf, S as chosenFundingOption, Sn as planSelectionPrice, Sr as shouldLoadRegistrationOptions, St as entryStart, T as fundingMoneyDates, Tr as getSingleSelectedPricingOptionId, Tt as invitationBooking, Un as summariseSelectionPayment, Us as planCheckoutPaymentFlow, Ut as roomChoiceMessage, Vn as severalItemsOf, Vs as eventRegistrationRefusalMessage, Vt as isRoomChoiceRefusal, W as planRegistrationDetailsCheck, Wn as toggleSelectionItem, Wr as appliedDiscountHint, Wt as roomSubmission, X as resolveRegistrationTicketContinuation, Xn as selectionCombinationHint, Xt as getRegistrationStartAt, Yn as paymentCaption, Zr as formatCommercePrice, Zt as toRegistrationEvents, _ as pickCollections, _r as getSlidingScaleForEvent, _t as bookingOccurrenceContext, a as registrationPresentation, an as buildSelectionRequirementsSubmission, ao as leavePage, b as selectionPaysNothing, ba as needsBookingQuestionsRefresh, bi as resolveEventRegistrationScopedEvents, bn as effectiveSelection, br as parseCurrencyInputToCents, bt as entryPageEvent, cn as deriveRunRequirements, cr as getPortalSubjectEmail, ct as calculateEventRegistrationPreviewTotal, d as decideEventChoice, dn as runsKeepingAnswers, dt as paymentChoiceDetails, ec as resolveWholeSeriesBookingPhase, en as EVENT_SIGN_IN_FORM_ID, er as findSelectedTicketType, f as isRegistrationLocked, fi as closedDatesCopy, fn as toRunRequirementsSnapshots, fr as transformRegistrationOptionsResponse, ft as paymentChoicePrice, g as paymentOptionFor, gr as getRegistrationOccurrenceId, gt as createBookingBrowserDraftStore, h as moneyCollections, hi as closedDateCopy, hn as ATTENDANCE_CHOICE_MESSAGE, hr as getCurrentTicketSelection, ht as restorableBrowserDraftCode, i as registrationPaymentRoute, ic as resolveBookingSignupOffer, in as toEventSignInDraft, j as selectionDatesQuote, jt as resolveRegistrationTarget, k as lookupChosenOption, kr as hasValidPricingOptionSelection, kt as resolveDiscountContext, ln as nextRunToRead, m as collectionsOf, ma as bookingQuestionsOwnerOf, mn as paymentReturnRestoration, mt as registrationBrowserDraftSchema, nn as eventSignInEnds, nt as resolveEventRegistrationSubmitPlan, o as registrationRoute, on as checkRunRequirements, p as registrationFlowReducer, pi as closedRunCopy, pn as withoutKeptAnswers, pt as registrationBrowserDraft, q as resolveGuestNextStepCheck, qn as combinationOffersOf, qs as getStripeMinimumChargeRequirement, qt as toWaitlistClaimResolveFailure, rn as eventSignInRestoration, ro as PAGE_NAVIGATION, sn as decideSelectionRequirementsLayout, so as requestSignIn, sr as getImplicitSingleTicketType, tn as eventSignInDraftStore, tr as formatBookingWhen, u as createInitialRegistrationFlowState, un as runFieldErrors, ur as getVisibleTicketTypes, v as runsSelectionPaymentRequest, va as deriveBookingQuestions, vc as publicEventPricingCurrency, vn as attendanceChoicePending, vr as getSlidingScaleSelectionMessage, vt as decideRegistrationEntry, w as fundingChoice, wn as quoteReductions, wt as invitationSubmission, x as cardStepServesDates, xn as incompleteRunChoiceMessage, xr as resolveHeldTicketPlaces, xt as entrySelectionMode, y as selectionItemLabels, ya as isBookingQuestionsOwner, yi as resolveEventRegistrationChoices, yn as canToggleSelectionItem, yr as getTicketSelectionRemainingPlaces, yt as entryChoosesEvent, zn as selectionTicketInputs, zs as eventRegistrationErrorEndsCommand, zt as decideRoomStay } from "./wizardSteps-DDvL3iza.mjs";
|
|
5
|
+
import { i as portalPath } from "./portalRoutes-DTHlWg_F.mjs";
|
|
6
6
|
import { c as checkBookingQuestionsAnswered } from "./bookingCalendar--aWnqFDn.mjs";
|
|
7
|
-
import { i as useSiteTermsAgreement, r as siteTermsFailureKind } from "./SiteTermsAgreementField-
|
|
7
|
+
import { i as useSiteTermsAgreement, r as siteTermsFailureKind } from "./SiteTermsAgreementField-DQNkfNLA.mjs";
|
|
8
8
|
import { t as generateUuidV4 } from "./uuid-BETKW8rS.mjs";
|
|
9
|
-
import { s as indefiniteArticle } from "./BookingQuestionFields-
|
|
10
|
-
import { i as BlockApiError, n as useBlockApi } from "./context-
|
|
11
|
-
import { n as EVENT_REGISTRATION_CHECKOUT_ATTEMPT_PARAM, r as paidInFullNote, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-
|
|
9
|
+
import { s as indefiniteArticle } from "./BookingQuestionFields-DCh9MUIF.mjs";
|
|
10
|
+
import { i as BlockApiError, n as useBlockApi } from "./context-D1L0pe__.mjs";
|
|
11
|
+
import { n as EVENT_REGISTRATION_CHECKOUT_ATTEMPT_PARAM, r as paidInFullNote, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-C_8AxMdm.mjs";
|
|
12
12
|
import { t as resolveDedicatedBookingHref } from "./bookingRoute-D6DlxYx6.mjs";
|
|
13
|
-
import { i as discountEmailProblem } from "./DemoBookingPortalAccess-
|
|
14
|
-
import { c as parseBookingSubmissionFailure, d as useSignInReturn, f as useBookingQuestionsRefresh, l as useBookingNowIso, s as usePolling, u as portalSessionIdentity } from "./BookingMailingListNote-
|
|
15
|
-
import { t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
16
|
-
import { s as storeDemoBookingPass } from "./demoPortalMagicLink-
|
|
13
|
+
import { i as discountEmailProblem } from "./DemoBookingPortalAccess-HFVkoOac.mjs";
|
|
14
|
+
import { c as parseBookingSubmissionFailure, d as useSignInReturn, f as useBookingQuestionsRefresh, l as useBookingNowIso, s as usePolling, u as portalSessionIdentity } from "./BookingMailingListNote-qqTxGGS4.mjs";
|
|
15
|
+
import { t as useDiscountCodeUi } from "./useDiscountCodeUi-DvdFFWOT.mjs";
|
|
16
|
+
import { s as storeDemoBookingPass } from "./demoPortalMagicLink-BunFTnIq.mjs";
|
|
17
17
|
import { Suspense, lazy, useCallback, useEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
18
18
|
import { jsx } from "react/jsx-runtime";
|
|
19
19
|
import { z } from "zod";
|
|
@@ -453,38 +453,12 @@ function receiveHandOff(outcome, receive) {
|
|
|
453
453
|
}
|
|
454
454
|
//#endregion
|
|
455
455
|
//#region ../blocks/src/system/runtime/nodes/event-registration/sessionStorage.ts
|
|
456
|
-
const STORAGE_PREFIX
|
|
456
|
+
const STORAGE_PREFIX = "riverbank:event-registration:";
|
|
457
457
|
const STALE_THRESHOLD_MS = 1440 * 60 * 1e3;
|
|
458
|
-
const
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
});
|
|
463
|
-
/** This tab's unfinished form is scoped to the site and booking surface, not a checkout attempt. */
|
|
464
|
-
function saveRegistrationBrowserDraft(scope, draft) {
|
|
465
|
-
try {
|
|
466
|
-
const entry = browserDraftEntry.parse({
|
|
467
|
-
version: 1,
|
|
468
|
-
timestamp: Date.now(),
|
|
469
|
-
draft
|
|
470
|
-
});
|
|
471
|
-
sessionStorage.setItem(`riverbank:event-draft:${scope}`, JSON.stringify(entry));
|
|
472
|
-
} catch {}
|
|
473
|
-
}
|
|
474
|
-
function getRegistrationBrowserDraft(scope) {
|
|
475
|
-
try {
|
|
476
|
-
const stored = sessionStorage.getItem(`riverbank:event-draft:${scope}`);
|
|
477
|
-
const entry = browserDraftEntry.safeParse(stored ? JSON.parse(stored) : null);
|
|
478
|
-
if (entry.success && Date.now() - entry.data.timestamp <= 108e5) return entry.data.draft;
|
|
479
|
-
clearRegistrationBrowserDraft(scope);
|
|
480
|
-
} catch {}
|
|
481
|
-
return null;
|
|
482
|
-
}
|
|
483
|
-
function clearRegistrationBrowserDraft(scope) {
|
|
484
|
-
try {
|
|
485
|
-
sessionStorage.removeItem(`riverbank:event-draft:${scope}`);
|
|
486
|
-
} catch {}
|
|
487
|
-
}
|
|
458
|
+
const browserDraftStore = createBookingBrowserDraftStore("riverbank:event-draft:", registrationBrowserDraftSchema);
|
|
459
|
+
const saveRegistrationBrowserDraft = browserDraftStore.save;
|
|
460
|
+
const getRegistrationBrowserDraft = browserDraftStore.read;
|
|
461
|
+
const clearRegistrationBrowserDraft = browserDraftStore.clear;
|
|
488
462
|
const paymentSelection = z.discriminatedUnion("method", [
|
|
489
463
|
z.object({ method: z.literal("free") }),
|
|
490
464
|
z.object({
|
|
@@ -561,7 +535,7 @@ const version6Schema = z.object({
|
|
|
561
535
|
}));
|
|
562
536
|
const schema = z.union([currentSchema, version6Schema]);
|
|
563
537
|
function key(siteId, submissionId) {
|
|
564
|
-
return `${STORAGE_PREFIX
|
|
538
|
+
return `${STORAGE_PREFIX}${siteId}:${submissionId}`;
|
|
565
539
|
}
|
|
566
540
|
function savePendingRegistration(siteId, submissionId, data) {
|
|
567
541
|
try {
|
|
@@ -595,7 +569,7 @@ function clearPendingRegistration(siteId, submissionId) {
|
|
|
595
569
|
}
|
|
596
570
|
function cleanupStaleRegistrations() {
|
|
597
571
|
try {
|
|
598
|
-
Array.from({ length: sessionStorage.length }, (_, index) => sessionStorage.key(index)).filter((item) => item !== null && item.startsWith(STORAGE_PREFIX
|
|
572
|
+
Array.from({ length: sessionStorage.length }, (_, index) => sessionStorage.key(index)).filter((item) => item !== null && item.startsWith(STORAGE_PREFIX)).forEach((item) => {
|
|
599
573
|
try {
|
|
600
574
|
const parsed = z.safeParse(schema, JSON.parse(sessionStorage.getItem(item) ?? "null"));
|
|
601
575
|
if (!parsed.success || Date.now() - parsed.data.timestamp > STALE_THRESHOLD_MS) sessionStorage.removeItem(item);
|
|
@@ -648,7 +622,12 @@ function useRegistrationBrowserDraft(input) {
|
|
|
648
622
|
/** Called once the code is known, which is later in the wizard than the restore above. */
|
|
649
623
|
function useSaveRegistrationBrowserDraft(input) {
|
|
650
624
|
const { ready } = input;
|
|
625
|
+
const owner = useRef(bookingQuestionsOwnerOf(input.identity));
|
|
651
626
|
useEffect(() => {
|
|
627
|
+
if (!isBookingQuestionsOwner(owner.current, input.identity)) {
|
|
628
|
+
clearRegistrationBrowserDraft(input.scope);
|
|
629
|
+
return;
|
|
630
|
+
}
|
|
652
631
|
if (!ready) return;
|
|
653
632
|
if (input.flow.step === "success" || input.flow.step === "payment") {
|
|
654
633
|
clearRegistrationBrowserDraft(input.scope);
|
|
@@ -1495,69 +1474,6 @@ function useEventRegistrationStripeReturn(options) {
|
|
|
1495
1474
|
}, [options]);
|
|
1496
1475
|
}
|
|
1497
1476
|
//#endregion
|
|
1498
|
-
//#region ../blocks/src/system/runtime/nodes/event-registration/pendingCheckouts.ts
|
|
1499
|
-
const STORAGE_PREFIX = "riverbank:event-pending-checkouts:";
|
|
1500
|
-
const storedSchema = z.object({
|
|
1501
|
-
version: z.literal(1),
|
|
1502
|
-
checkouts: z.array(z.object({
|
|
1503
|
-
id: z.string().min(1),
|
|
1504
|
-
expiresAt: z.number().finite()
|
|
1505
|
-
}))
|
|
1506
|
-
});
|
|
1507
|
-
/** Pure: the checkouts still held at `now`, newest first, cut to what a request may name. */
|
|
1508
|
-
function currentPendingCheckouts(checkouts, now) {
|
|
1509
|
-
return checkouts.filter((checkout) => checkout.expiresAt > now).slice(0, 3);
|
|
1510
|
-
}
|
|
1511
|
-
/** Pure: the list with this checkout newest, holding its places for the hold window from `now`. */
|
|
1512
|
-
function withPendingCheckout(checkouts, commandId, now) {
|
|
1513
|
-
return currentPendingCheckouts([{
|
|
1514
|
-
id: commandId,
|
|
1515
|
-
expiresAt: now + EVENT_CHECKOUT_HOLD_DURATION_MS
|
|
1516
|
-
}, ...checkouts.filter((checkout) => checkout.id !== commandId)], now);
|
|
1517
|
-
}
|
|
1518
|
-
/**
|
|
1519
|
-
* The store over one browser storage. `storage` is read on every use and may throw, as may anything
|
|
1520
|
-
* it returns; every access is wrapped, so a failure reads as an empty list and a write is dropped.
|
|
1521
|
-
*/
|
|
1522
|
-
function createPendingCheckoutStore(storage, clock = Date.now) {
|
|
1523
|
-
const key = (siteId) => `${STORAGE_PREFIX}${siteId}`;
|
|
1524
|
-
const read = (siteId) => {
|
|
1525
|
-
try {
|
|
1526
|
-
const stored = storage().getItem(key(siteId));
|
|
1527
|
-
const parsed = storedSchema.safeParse(stored ? JSON.parse(stored) : null);
|
|
1528
|
-
return parsed.success ? parsed.data.checkouts : [];
|
|
1529
|
-
} catch {
|
|
1530
|
-
return [];
|
|
1531
|
-
}
|
|
1532
|
-
};
|
|
1533
|
-
const write = (siteId, checkouts) => {
|
|
1534
|
-
try {
|
|
1535
|
-
if (checkouts.length === 0) storage().removeItem(key(siteId));
|
|
1536
|
-
else storage().setItem(key(siteId), JSON.stringify({
|
|
1537
|
-
version: 1,
|
|
1538
|
-
checkouts
|
|
1539
|
-
}));
|
|
1540
|
-
} catch {}
|
|
1541
|
-
};
|
|
1542
|
-
return {
|
|
1543
|
-
remember: (siteId, commandId) => {
|
|
1544
|
-
if (siteId) write(siteId, withPendingCheckout(read(siteId), commandId, clock()));
|
|
1545
|
-
},
|
|
1546
|
-
forget: (siteId, commandId) => {
|
|
1547
|
-
if (siteId) write(siteId, currentPendingCheckouts(read(siteId).filter((checkout) => checkout.id !== commandId), clock()));
|
|
1548
|
-
},
|
|
1549
|
-
ids: (siteId) => {
|
|
1550
|
-
if (!siteId) return [];
|
|
1551
|
-
const stored = read(siteId);
|
|
1552
|
-
const current = currentPendingCheckouts(stored, clock());
|
|
1553
|
-
if (current.length !== stored.length) write(siteId, current);
|
|
1554
|
-
return current.map((checkout) => checkout.id);
|
|
1555
|
-
}
|
|
1556
|
-
};
|
|
1557
|
-
}
|
|
1558
|
-
/** This browser's list, shared by every tab on the site's origin. */
|
|
1559
|
-
const browserPendingCheckouts = createPendingCheckoutStore(() => window.localStorage);
|
|
1560
|
-
//#endregion
|
|
1561
1477
|
//#region ../blocks/src/system/runtime/nodes/event-registration/paymentLocation.ts
|
|
1562
1478
|
function eventPaymentReturnUrl(submissionId) {
|
|
1563
1479
|
const url = new URL(window.location.href);
|
|
@@ -1567,26 +1483,17 @@ function eventPaymentReturnUrl(submissionId) {
|
|
|
1567
1483
|
url.hash = EVENT_REGISTRATION_ANCHOR_ID;
|
|
1568
1484
|
return url.toString();
|
|
1569
1485
|
}
|
|
1570
|
-
/**
|
|
1571
|
-
|
|
1572
|
-
* bank finds it, and the browser's list carries it too, so a booking made in another tab can name it.
|
|
1573
|
-
*/
|
|
1574
|
-
function rememberEventPayment(siteId, submissionId, sessionId) {
|
|
1486
|
+
/** Keep payment in the tab address for reloads and returns from the bank. */
|
|
1487
|
+
function rememberEventPayment(submissionId, sessionId) {
|
|
1575
1488
|
const url = new URL(eventPaymentReturnUrl(submissionId));
|
|
1576
1489
|
url.searchParams.set("session_id", sessionId);
|
|
1577
1490
|
window.history.replaceState(window.history.state, "", url);
|
|
1578
|
-
browserPendingCheckouts.remember(siteId, submissionId);
|
|
1579
1491
|
}
|
|
1580
|
-
/**
|
|
1581
|
-
|
|
1582
|
-
* abandoned or its places released, so the browser's list drops it; `held` when its places still
|
|
1583
|
-
* stand and the visitor is booking again, so another tab can still take it over.
|
|
1584
|
-
*/
|
|
1585
|
-
function clearEventPayment(siteId, place) {
|
|
1492
|
+
/** Clear this tab’s payment address and saved registration details. */
|
|
1493
|
+
function clearEventPayment(siteId) {
|
|
1586
1494
|
const url = new URL(window.location.href);
|
|
1587
1495
|
const submissionId = url.searchParams.get(EVENT_REGISTRATION_CHECKOUT_ATTEMPT_PARAM);
|
|
1588
1496
|
if (siteId && submissionId) clearPendingRegistration(siteId, submissionId);
|
|
1589
|
-
if (submissionId && place === "finished") browserPendingCheckouts.forget(siteId, submissionId);
|
|
1590
1497
|
url.searchParams.delete("registration");
|
|
1591
1498
|
url.searchParams.delete(EVENT_REGISTRATION_CHECKOUT_ATTEMPT_PARAM);
|
|
1592
1499
|
url.searchParams.delete("session_id");
|
|
@@ -1674,64 +1581,23 @@ function toEventRunPayment(choice) {
|
|
|
1674
1581
|
function wantsMailingListSignup(options) {
|
|
1675
1582
|
return options.mailingListSignup !== null && options.formData.mailingListOptIn === true;
|
|
1676
1583
|
}
|
|
1677
|
-
/**
|
|
1678
|
-
* The earlier bookings from this browser that a submission may take over from. The server replaces an
|
|
1679
|
-
* unpaid booking only for the browser that can name it, and accepts any one of these that matches.
|
|
1680
|
-
* This is the one place the list is built, from three sources:
|
|
1681
|
-
*
|
|
1682
|
-
* - the booking whose payment the visitor came back from in this tab (`heldPlace`);
|
|
1683
|
-
* - the command a changed form left behind, and whatever that command named;
|
|
1684
|
-
* - the checkouts this browser took to payment in any tab (`browserCheckouts`, newest first), which
|
|
1685
|
-
* is how a new tab names a booking whose own tab was closed.
|
|
1686
|
-
*
|
|
1687
|
-
* It's a list because the form can't tell which of them holds the place. A refused command reserved
|
|
1688
|
-
* nothing, so the booking it was to replace still stands; a command whose response was lost may have
|
|
1689
|
-
* reserved. Every id is derived here, so nothing has to be remembered or forgotten as attempts fail.
|
|
1690
|
-
*
|
|
1691
|
-
* The order decides what survives the cut to what the server accepts. The held place leads, since the
|
|
1692
|
-
* server has said it stands. The command just left behind comes next, as the only one that may hold a
|
|
1693
|
-
* place nobody was told about. Then the browser's checkouts, which did reach payment, and last the
|
|
1694
|
-
* older guesses. An identical retry sends what it sent before.
|
|
1695
|
-
*/
|
|
1696
|
-
function replacedCommandIds(previous, intentChanged, heldPlace, browserCheckouts) {
|
|
1697
|
-
const held = heldPlace ? [heldPlace.submissionId] : [];
|
|
1698
|
-
const earlier = previous === null ? browserCheckouts : intentChanged ? [
|
|
1699
|
-
previous.id,
|
|
1700
|
-
...browserCheckouts,
|
|
1701
|
-
...previous.replaces
|
|
1702
|
-
] : [...previous.replaces, ...browserCheckouts];
|
|
1703
|
-
return [.../* @__PURE__ */ new Set([...held, ...earlier])].slice(0, 3);
|
|
1704
|
-
}
|
|
1705
|
-
/**
|
|
1706
|
-
* The earlier bookings this browser can name before it submits, the command it last sent among them, as
|
|
1707
|
-
* a changed submission would name them. The guest details check sends these, so the answer it gets
|
|
1708
|
-
* (go on to pay, or an earlier booking stands) is the one submitting would give.
|
|
1709
|
-
*/
|
|
1710
|
-
function earlierBookingsToName(previous, heldPlace, browserCheckouts) {
|
|
1711
|
-
return replacedCommandIds(previous, true, heldPlace, browserCheckouts);
|
|
1712
|
-
}
|
|
1713
1584
|
/** The command this submission runs under: the same one for an identical retry, a new one once the details change. */
|
|
1714
|
-
function nextCommand(previous, submitted,
|
|
1715
|
-
const intentChanged = previous !== null && previous.intentKey !== submitted.intentKey;
|
|
1716
|
-
const id = intentChanged ? createId() : submitted.id;
|
|
1585
|
+
function nextCommand(previous, submitted, createId) {
|
|
1717
1586
|
return {
|
|
1718
|
-
id,
|
|
1719
|
-
intentKey: submitted.intentKey
|
|
1720
|
-
replaces: replacedCommandIds(previous, intentChanged, earlier.heldPlace, earlier.browserCheckouts).filter((named) => named !== id)
|
|
1587
|
+
id: previous !== null && previous.intentKey !== submitted.intentKey ? createId() : submitted.id,
|
|
1588
|
+
intentKey: submitted.intentKey
|
|
1721
1589
|
};
|
|
1722
1590
|
}
|
|
1723
|
-
/** The request under its command
|
|
1591
|
+
/** The request under its retryable command. */
|
|
1724
1592
|
function commandRequest(request, command) {
|
|
1725
1593
|
return {
|
|
1726
1594
|
...request,
|
|
1727
|
-
registrationCommandId: command.id
|
|
1728
|
-
...command.replaces.length > 0 ? { replacesRegistrationCommandIds: command.replaces } : {}
|
|
1595
|
+
registrationCommandId: command.id
|
|
1729
1596
|
};
|
|
1730
1597
|
}
|
|
1731
1598
|
const eventRegistrationSubmitDeps = {
|
|
1732
1599
|
savePendingRegistration,
|
|
1733
|
-
createClientCommandId: generateUuidV4
|
|
1734
|
-
pendingCheckouts: browserPendingCheckouts
|
|
1600
|
+
createClientCommandId: generateUuidV4
|
|
1735
1601
|
};
|
|
1736
1602
|
function useEventRegistrationSubmit(options) {
|
|
1737
1603
|
return useEventRegistrationSubmitWithDeps(options, eventRegistrationSubmitDeps);
|
|
@@ -1794,9 +1660,6 @@ function useEventRegistrationSubmitWithDeps(options, deps) {
|
|
|
1794
1660
|
const command = nextCommand(commandRef.current, {
|
|
1795
1661
|
id: registrationCommandId,
|
|
1796
1662
|
intentKey
|
|
1797
|
-
}, {
|
|
1798
|
-
heldPlace: options.heldPlace,
|
|
1799
|
-
browserCheckouts: deps.pendingCheckouts.ids(options.api.config.siteId)
|
|
1800
1663
|
}, deps.createClientCommandId);
|
|
1801
1664
|
const prepared = {
|
|
1802
1665
|
...initialPrepared,
|
|
@@ -1834,7 +1697,6 @@ async function completeRegistrationSubmission(options, deps, prepared, result) {
|
|
|
1834
1697
|
outcome: { kind: "payment_status" }
|
|
1835
1698
|
};
|
|
1836
1699
|
case "checkoutRequired":
|
|
1837
|
-
forgetReplacedBooking(options, deps);
|
|
1838
1700
|
savePendingCheckout(options, deps, prepared, result.submissionId, result.mailingListSignupNote);
|
|
1839
1701
|
const subject = result.reference.scope === "occurrence" ? {
|
|
1840
1702
|
scope: "occurrence",
|
|
@@ -1873,7 +1735,6 @@ async function completeRegistrationSubmission(options, deps, prepared, result) {
|
|
|
1873
1735
|
message: result.message
|
|
1874
1736
|
};
|
|
1875
1737
|
case "bookingComplete":
|
|
1876
|
-
forgetReplacedBooking(options, deps);
|
|
1877
1738
|
options.complete(confirmedRegistration(result));
|
|
1878
1739
|
break;
|
|
1879
1740
|
default: return assertNever(result);
|
|
@@ -1885,14 +1746,6 @@ async function completeRegistrationSubmission(options, deps, prepared, result) {
|
|
|
1885
1746
|
};
|
|
1886
1747
|
}
|
|
1887
1748
|
/**
|
|
1888
|
-
* The server took this booking, so the one the visitor came back from has been replaced and the
|
|
1889
|
-
* browser's list drops it. An id the list supplied from another tab stays until its hold runs out:
|
|
1890
|
-
* it may belong to a different event, and the response doesn't say which bookings were replaced.
|
|
1891
|
-
*/
|
|
1892
|
-
function forgetReplacedBooking(options, deps) {
|
|
1893
|
-
if (options.heldPlace) deps.pendingCheckouts.forget(options.api.config.siteId, options.heldPlace.submissionId);
|
|
1894
|
-
}
|
|
1895
|
-
/**
|
|
1896
1749
|
* A completed booking as the finished screen reads it. One booking says its pass balance in the
|
|
1897
1750
|
* summary's message; several list it with how each date was paid, so the message would repeat it.
|
|
1898
1751
|
*/
|
|
@@ -3052,8 +2905,7 @@ function fundingPaymentStepState(base, lookup, view, priced) {
|
|
|
3052
2905
|
//#region ../blocks/src/system/runtime/nodes/event-registration/useGuestDetailsCheck.ts
|
|
3053
2906
|
/** When a guest completes details on a full event with a waitlist, asks the
|
|
3054
2907
|
* server whether their email has an unfinished booking to pay for instead.
|
|
3055
|
-
*
|
|
3056
|
-
* sends the same names a submission would. The answer is navigation only;
|
|
2908
|
+
* The answer is navigation only;
|
|
3057
2909
|
* submission still owns the booking. */
|
|
3058
2910
|
function useGuestDetailsCheck(input) {
|
|
3059
2911
|
const [checkingNextStep, setCheckingNextStep] = useState(false);
|
|
@@ -3088,7 +2940,6 @@ async function checkGuestNextStep(input, request, setCheckingNextStep) {
|
|
|
3088
2940
|
function guestNextStepRequest(input) {
|
|
3089
2941
|
const buyer = parseParticipantEmail(input.formData.email);
|
|
3090
2942
|
if (!input.registrationTarget) return null;
|
|
3091
|
-
const earlier = input.earlierBookings();
|
|
3092
2943
|
return {
|
|
3093
2944
|
subject: toRegistrationRequestSubject(input.registrationTarget.subject, input.selectedAttendanceMode),
|
|
3094
2945
|
selections: input.ticketSelections,
|
|
@@ -3098,8 +2949,7 @@ function guestNextStepRequest(input) {
|
|
|
3098
2949
|
kind: "email",
|
|
3099
2950
|
email: buyer.value
|
|
3100
2951
|
} : { kind: "unknown" },
|
|
3101
|
-
purchaseTarget: "eventTickets"
|
|
3102
|
-
...earlier.length > 0 ? { replacesRegistrationCommandIds: earlier } : {}
|
|
2952
|
+
purchaseTarget: "eventTickets"
|
|
3103
2953
|
};
|
|
3104
2954
|
}
|
|
3105
2955
|
//#endregion
|
|
@@ -3271,7 +3121,7 @@ function usePaymentTransitions(options, runtime) {
|
|
|
3271
3121
|
const { setState, note, generation, operation } = runtime;
|
|
3272
3122
|
const openPayment = useCallback((checkout, subject, mailingListSignupNote) => {
|
|
3273
3123
|
if (mailingListSignupNote) note.current = mailingListSignupNote;
|
|
3274
|
-
rememberEventPayment(
|
|
3124
|
+
rememberEventPayment(subject.submissionId, checkout.sessionId);
|
|
3275
3125
|
setState({
|
|
3276
3126
|
kind: "payment",
|
|
3277
3127
|
checkout,
|
|
@@ -3300,7 +3150,7 @@ function usePaymentTransitions(options, runtime) {
|
|
|
3300
3150
|
setState
|
|
3301
3151
|
]);
|
|
3302
3152
|
const restartFrom = useCallback((step, heldPlaceRetry) => {
|
|
3303
|
-
clearEventPayment(options.api.config.siteId
|
|
3153
|
+
clearEventPayment(options.api.config.siteId);
|
|
3304
3154
|
runtime.setHeldTicketSelection(snapshotHeldTicketSelection(heldPlaceRetry, options.ticketSelection));
|
|
3305
3155
|
setState({
|
|
3306
3156
|
kind: "idle",
|
|
@@ -3322,7 +3172,7 @@ function usePaymentTransitions(options, runtime) {
|
|
|
3322
3172
|
...transition.outcomes ? { outcomes: transition.outcomes } : {},
|
|
3323
3173
|
mailingListSignupNote: note.current
|
|
3324
3174
|
});
|
|
3325
|
-
clearEventPayment(options.api.config.siteId
|
|
3175
|
+
clearEventPayment(options.api.config.siteId);
|
|
3326
3176
|
setState({
|
|
3327
3177
|
kind: "idle",
|
|
3328
3178
|
heldPlaceRetry: null
|
|
@@ -3570,9 +3420,7 @@ function usePaymentStatusRecovery(options) {
|
|
|
3570
3420
|
if (recovery?.kind === "retryAvailable") transitions.resetBooking(heldPlaceRetry(recovery));
|
|
3571
3421
|
},
|
|
3572
3422
|
/** True while this tab books again on a place the server said is still its own. */
|
|
3573
|
-
retryingHeldPlace: state.kind === "idle" && state.heldPlaceRetry !== null
|
|
3574
|
-
/** That booking, which the next submission names so the server lets it take the place over. */
|
|
3575
|
-
heldPlace: state.kind === "idle" ? state.heldPlaceRetry : null
|
|
3423
|
+
retryingHeldPlace: state.kind === "idle" && state.heldPlaceRetry !== null
|
|
3576
3424
|
};
|
|
3577
3425
|
}
|
|
3578
3426
|
function heldPlaceRetry(recovery) {
|
|
@@ -4230,8 +4078,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
4230
4078
|
registrationTarget,
|
|
4231
4079
|
selectedAttendanceMode,
|
|
4232
4080
|
ticketSelections,
|
|
4233
|
-
selectedSlidingAmount
|
|
4234
|
-
earlierBookings: () => earlierBookingsToName(commandRef.current, paymentController.heldPlace, browserPendingCheckouts.ids(api.config.siteId))
|
|
4081
|
+
selectedSlidingAmount
|
|
4235
4082
|
});
|
|
4236
4083
|
const blockDetailsCompletion = (blocker, action = "places") => {
|
|
4237
4084
|
if (blocker.kind === "unavailable") {
|
|
@@ -4543,7 +4390,6 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
4543
4390
|
const handleSubmit = deps.useEventRegistrationSubmit({
|
|
4544
4391
|
openPayment: paymentController.openPayment,
|
|
4545
4392
|
commandRef,
|
|
4546
|
-
heldPlace: paymentController.heldPlace,
|
|
4547
4393
|
setSubmissionFailure: (failure) => {
|
|
4548
4394
|
if (failure.answersNeeded) requirements.keepRefused();
|
|
4549
4395
|
dispatchFlow({
|
|
@@ -5381,7 +5227,7 @@ function availableCreditCents(state, currency) {
|
|
|
5381
5227
|
}
|
|
5382
5228
|
//#endregion
|
|
5383
5229
|
//#region ../blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.tsx
|
|
5384
|
-
const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-
|
|
5230
|
+
const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-B2c5dR49.mjs"));
|
|
5385
5231
|
/** The one Stripe mount, shared by the standard wizard and headless arrangements. */
|
|
5386
5232
|
function EventPaymentMount({ state, onComplete, onRetry, onBack, buttonVariant }) {
|
|
5387
5233
|
if (state.kind === "abandoning") return /* @__PURE__ */ jsx("p", {
|