@riverbankcms/sdk 0.167.0 → 0.168.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-Dgb-ptph.d.ts → BlocksIslandsHydrator-CiD_VVGM.d.ts} +1 -1
- package/dist/_dts/{Page-Bs3WxFgr.d.ts → Page-Bj6VJRS5.d.ts} +7 -6
- package/dist/_dts/{SdkPreviewMode-DtUCsaHY.d.ts → SdkPreviewMode-ChpsnwDX.d.ts} +2 -2
- package/dist/_dts/{client-CwsI23pj.d.ts → client-C8mfUxrJ.d.ts} +65 -35
- package/dist/_dts/{content-types-CAeP_-cV.d.ts → content-types-_vXZyR4H.d.ts} +2 -2
- package/dist/_dts/{contracts-BXHCiF-b.d.ts → contracts-CJFfrVKU.d.ts} +5 -4
- package/dist/_dts/{footerPageOutline-Bb2gbppW.d.ts → footerPageOutline-CMegb23G.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-DaBBDx7M.d.ts → generatePageMetadata-D9YdAIMh.d.ts} +2 -2
- package/dist/_dts/{index-CS6b1B-c.d.ts → index-BQXaZ7aY.d.ts} +4 -4
- package/dist/_dts/{index-5_jf52sZ.d.ts → index-Bpr-wT5k.d.ts} +2 -2
- package/dist/_dts/{index-DeHDwMfu.d.ts → index-C7_Rz8EY.d.ts} +3 -3
- package/dist/_dts/{index-D7EbliE3.d.ts → index-Cx2BQlHL.d.ts} +3 -3
- package/dist/_dts/{index-C20yUyob.d.ts → index-Dgz6yhsy.d.ts} +1 -1
- package/dist/_dts/index-Vh8B9FSa.d.ts +14 -0
- package/dist/_dts/{index-bDln38Hm.d.ts → index-vR3p9Bu-.d.ts} +2 -2
- package/dist/_dts/{loadContent-CTqcL7CS.d.ts → loadContent-dhWSgLeS.d.ts} +7 -7
- package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +1 -0
- package/dist/_dts/{index-ChpjHK0U.d.ts → request-BrYhNV9Z.d.ts} +80718 -47665
- package/dist/_dts/{resolveBlockData-C3s9WMPs.d.ts → resolveBlockData-BfSHm8Ms.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-JPwgRxwh.d.ts → resolvePageContent-gZJ4i1wN.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -5
- 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 +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-CwtTcaQP.d.ts → types-BB33-Spd.d.ts} +3 -3
- package/dist/_dts/{types-D-WElMCy.d.ts → types-BVFXYtRg.d.ts} +7 -7
- package/dist/_dts/{types-BlaCuPLr.d.ts → types-FOsJ-KYb.d.ts} +4 -2
- package/dist/_dts/{validation-Y5wD9fGK.d.ts → validation-DckTc6TQ.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DFqkx158.mjs → BlocksIslandsHydrator-DcwEaliO.mjs} +21 -21
- package/dist/client/BookingMailingListNote-Dsugoe-n.mjs +946 -0
- package/dist/client/BookingQuestionFields-Bhh0cvsl.mjs +359 -0
- package/dist/client/{CalendarNavigationChevron-DQwJ7BPx.mjs → CalendarNavigationChevron-CNe3ZjdC.mjs} +7 -7
- package/dist/client/{CheckboxChoice-CZ-anOqV.mjs → CheckboxChoice-W_uiRgDK.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-DdkY86qI.mjs → DemoBookingPortalAccess-BeiZxEUJ.mjs} +7 -7
- package/dist/client/{EventCalendar.client-DAeQPV76.mjs → EventCalendar.client-BL943-tl.mjs} +9 -9
- package/dist/client/{EventCombined.client-Bus9R0bj.mjs → EventCombined.client-BFVxECTp.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-D_14yqAU.mjs → EventEmbeddedCheckoutStep-Cf-HRHtb.mjs} +1 -1
- package/dist/client/{EventItem-DPBLjGwj.mjs → EventItem-BIc4gjiD.mjs} +37 -15
- package/dist/client/{EventListWeekNavigation-D6cwU82_.mjs → EventListWeekNavigation-a0QEIEf0.mjs} +1 -1
- package/dist/client/{EventListing.client-Bogi_SnJ.mjs → EventListing.client-CEFTC3jH.mjs} +3 -3
- package/dist/client/{EventListing.view-CEumpN7i.mjs → EventListing.view-Bt2sBBms.mjs} +34 -16
- package/dist/client/{EventRegistrationPayment-CIQw6vNy.mjs → EventRegistrationPayment-D9YBNb_E.mjs} +250 -40
- package/dist/client/{LocationMapActions-BVO-qx4q.mjs → LocationMapActions-gqzt5gkW.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-CcGaFawl.mjs → MapDrawingSvg-13JQI7_z.mjs} +1 -1
- package/dist/client/{Page-D4_H_u9V.mjs → Page-D_M2Vxz3.mjs} +4471 -1601
- package/dist/client/{ProtectedSubmitButton-8DuDw2ag.mjs → ProtectedSubmitButton-C3H26pN9.mjs} +1 -1
- package/dist/client/{StepIndicator-Dptantmg.mjs → StepIndicator-CaN8snZ8.mjs} +3 -3
- package/dist/client/{TabBarFragment-BxEGsKUx.mjs → TabBarFragment-DkVKtK5a.mjs} +1 -1
- package/dist/client/{ThemedButton-8jUc02mZ.mjs → ThemedButton-BdnEwA38.mjs} +2 -5
- package/dist/client/accessibleSurfaces-chpD4C2c.mjs +4278 -0
- package/dist/client/{accordion--EUHmEGa.mjs → accordion-DE7OG--d.mjs} +1 -1
- package/dist/client/{booking-form.client-BCXwOnhc.mjs → booking-form.client-CS1PPjw7.mjs} +842 -374
- package/dist/client/{bookingForm-sHHcdism.mjs → bookingForm-DE2CwIU9.mjs} +5 -4
- package/dist/client/{src-DjnxOjXG.mjs → bookingQuestionValues-BjcyCru5.mjs} +88 -1
- package/dist/client/bookingQuestions-BHq83mzS.mjs +13 -0
- package/dist/client/bookings.mjs +18 -13
- package/dist/client/{carousel-Cp9xPBFZ.mjs → carousel-DZyUdnFh.mjs} +3 -3
- package/dist/client/{carousel.client-BO7sCEpH.mjs → carousel.client-BD4DXMtI.mjs} +62 -16
- package/dist/client/{carousel.shared-DBnWEJzo.mjs → carousel.shared-BFQ3kBEw.mjs} +6 -3
- package/dist/client/{cart-CCZZC-Lq.mjs → cart-D7HkkNwe.mjs} +3 -3
- package/dist/client/{cart.client-B7JfA19I.mjs → cart.client-H4sv2TpD.mjs} +1 -1
- package/dist/client/{checkout-CipmYL4A.mjs → checkout-2qVyG-Sh.mjs} +3 -3
- package/dist/client/{checkout.client-DraalWdH.mjs → checkout.client-DAjrBZ74.mjs} +1 -1
- package/dist/client/client.mjs +240 -63
- package/dist/client/{context-Cv3QHjAF.mjs → context-DXmIbXCK.mjs} +297 -3
- package/dist/client/{cta-P2vJVTEn.mjs → cta-DP_IBnq3.mjs} +2 -2
- package/dist/client/{dateFormatting-D8D47VT4.mjs → dateFormatting-CwrkFZTr.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CXWZoV-d.mjs → demoPortalMagicLink-DQXK-Fh6.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-BkAro1DJ.mjs → enhanceHeaderSection-DheQj7rg.mjs} +3 -3
- package/dist/client/{event-details.client-dLmyuPap.mjs → event-details.client-C5UufcRp.mjs} +1 -1
- package/dist/client/{event-registration.client-BEhC2_-Y.mjs → event-registration.client-CMGg63IU.mjs} +72 -235
- package/dist/client/{eventCalendar-FBMS2Cpb.mjs → eventCalendar-DlD0GCEy.mjs} +4 -4
- package/dist/client/{eventCombined-BrBhUvGe.mjs → eventCombined-DoSi8p_l.mjs} +4 -4
- package/dist/client/{eventDetails-C7WUrbZ2.mjs → eventDetails-DzuQYgmO.mjs} +2 -2
- package/dist/client/{eventListing-Bih-BgQM.mjs → eventListing-CkiMjl0g.mjs} +4 -4
- package/dist/client/{eventRegistration-DfTlqGbl.mjs → eventRegistration-CjS3Zpjp.mjs} +4 -4
- package/dist/client/{form-Bw1uuiUs.mjs → form-DgQqm7T2.mjs} +3 -3
- package/dist/client/{form.client-pZ-9gN33.mjs → form.client-BI9Dcsq5.mjs} +5 -5
- package/dist/client/{form.parts-PXlu6XQO.mjs → form.parts-DevF0L_A.mjs} +3 -3
- package/dist/client/{formatDate-DI3DP48e.mjs → formatDate-DDyURjoe.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-BpJYUMd6.mjs → headerSection-DYIG6Pwb.mjs} +2 -2
- package/dist/client/{mediaAssets-DpPauppt.mjs → mediaAssets-B99AP7ai.mjs} +1 -1
- package/dist/client/{mediaContext-BLo4NtjP.mjs → mediaContext-Fusweriw.mjs} +1 -1
- package/dist/client/{newsletter-form.client-CSoP0cGR.mjs → newsletter-form.client-BWp7Y1e1.mjs} +6 -6
- package/dist/client/{newsletter-form.parts-DDbX_Sj0.mjs → newsletter-form.parts-Dg8s9NwJ.mjs} +2 -2
- package/dist/client/{newsletterForm-vCxYRar_.mjs → newsletterForm-DnPraMzx.mjs} +3 -3
- package/dist/client/{noop-ByVtIWf4.mjs → noop-ByFRHYQ2.mjs} +437 -496
- package/dist/client/portal/client.mjs +76 -229
- package/dist/client/{product-detail.client-7Pi6avM-.mjs → product-detail.client-BFAgHrdg.mjs} +1 -1
- package/dist/client/{product-list.client-DEad-Pma.mjs → product-list.client-DVrs_DyY.mjs} +1 -1
- package/dist/client/{productDetail-G1SMXG13.mjs → productDetail-D4rvl6Xg.mjs} +3 -3
- package/dist/client/{productList-B21TGdpT.mjs → productList-B8o5AOMX.mjs} +3 -3
- package/dist/client/{propsDecoder-B3vIBkex.mjs → propsDecoder-hhotPP6P.mjs} +5 -4
- package/dist/client/{registry.server-B8aQhJpO.mjs → registry.server-Ch3EpupA.mjs} +2213 -2433
- package/dist/client/{surfaceTransportMarker-BXepAVF6.mjs → renderableMediaAssetAdmission-BlfqYLJW.mjs} +1 -18
- package/dist/client/rendering/client.mjs +30 -30
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +10 -9
- package/dist/client/{richText-coerce-DHkBtO0G.mjs → richText-coerce-C3LabQ1O.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DbHX4JOS.mjs → routeIslandApiConfig-CQGlxId8.mjs} +1 -1
- package/dist/client/runtimeResponse-BP-L6exS.mjs +3 -0
- package/dist/client/runtimeResponse-Dg4XFsuM.mjs +9 -0
- package/dist/client/{shop-commerce-B2UmrQg_.mjs → shop-commerce-VDbVaKY-.mjs} +12 -12
- package/dist/client/{shop-commerce-store-B7n-Z7nY.mjs → shop-commerce-store-DqdgJ8Zw.mjs} +1 -1
- package/dist/client/{shop-mqyoOvOK.mjs → shop-rRXplPGZ.mjs} +3 -3
- package/dist/client/{shop.client-BH-BBnA9.mjs → shop.client-DdwvMvaK.mjs} +13 -13
- package/dist/client/{shop.interactive-mdM3UMWG.mjs → shop.interactive-C8OvFY06.mjs} +141 -66
- package/dist/client/{shopShared-CXF5wxdg.mjs → shopShared-BeuJiGPU.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/surfaceTransportMarker-BuwkYxsI.mjs +19 -0
- package/dist/client/{timetableModel-CrC80EOG.mjs → timetableModel-Cko9LRKy.mjs} +11 -11
- package/dist/client/{types-sF-IrGQr.mjs → types-5fOsPIpL.mjs} +248 -111
- package/dist/client/{useAvailableSlots-C4LOaI_Z.mjs → useAvailableSlots-M6QIEiWf.mjs} +3 -3
- package/dist/client/{useDiscountApply-6Q0nToVA.mjs → useDiscountApply-BJSnyO0f.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-CM-DTX5X.mjs → useDiscountCodeUi-D3XnOSCi.mjs} +1 -1
- package/dist/client/{useEventPagination-Bcs89BR5.mjs → useEventPagination-PhTIoFVX.mjs} +7 -7
- package/dist/client/{view-BN-fxyfq.mjs → view-448wvvEY.mjs} +11 -7
- package/dist/client/{view-Dh2tGoS0.mjs → view-L_mkgtnk.mjs} +4 -4
- package/dist/client/{site-styles-D56hT2u1.mjs → wizardSteps-CFulHWnT.mjs} +19660 -18565
- package/dist/preview-next/client/{ArrangementLookControls-D4VjPs-r.mjs → ArrangementLookControls-BpvnOGlN.mjs} +26 -17
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-C_h1cMYm.mjs → EventEmbeddedCheckoutStep-8-qtHjpb.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-D56RD3e_.mjs → LocationPickerEnvironment-CZQ4vkRe.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-DFnyCckr.mjs → MapLibreEditMap-CP4w7T_0.mjs} +2 -2
- package/dist/preview-next/client/{PreviewEditorSidebar-Ckr2zk_L.mjs → PreviewEditorSidebar-C0OtdWu_.mjs} +128 -21
- package/dist/preview-next/client/{PreviewEditorUI-KOZgw_gS.mjs → PreviewEditorUI-Csc5vH5k.mjs} +6 -6
- package/dist/preview-next/client/{PreviewShell-CyO2V4kB.mjs → PreviewShell-BOLH_pm-.mjs} +199 -155
- package/dist/preview-next/client/{SdkPreviewModeRuntime-DW3uKvNF.mjs → SdkPreviewModeRuntime-CKodLReY.mjs} +31 -32
- package/dist/preview-next/client/{SiteChromeCustomizeButton-CU9VD-7O.mjs → SiteChromeCustomizeButton-BeEZpeKn.mjs} +3780 -3436
- package/dist/preview-next/client/{ThemedButton-C0dgGJ5k.mjs → ThemedButton-BQU45t-E.mjs} +260 -121
- package/dist/preview-next/client/{lucide-react-CPBCf6QT.mjs → lucide-react-DkZ8fO-G.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-DBi-WybM.mjs → previewAssistantSlot-BBdN5kfY.mjs} +18697 -15557
- package/dist/preview-next/client/{previewChromeSurface-BhkUJst9.mjs → previewChromeSurface-VZtGwPuH.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-BjCb6lOn.mjs → sdk-runtime-kiZkMcuR.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus-CKxTaC3j.mjs → useAutosaveStatus-BiIHEeE0.mjs} +2 -2
- package/dist/preview-next/client/{useBlockCustomizeControls-B7MLTjBX.mjs → useBlockCustomizeControls-BuFLIpmX.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-BTUc0g9X.mjs → useOpenBlockForSetup-DlxYgmh_.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-Bv3nkdpV.mjs → route-contract-C0sCvCYL.mjs} +165 -0
- package/dist/server/{Block.shared-4fMqzltx.mjs → Block.shared-Dnhc0Wu5.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-C72VC_lR.mjs → ThemeScopeCore-NAQ_zsFu.mjs} +461 -128
- package/dist/server/{accessibleSurfaces-B_Y_dA20.mjs → accessibleSurfaces-108nxyGc.mjs} +319 -131
- package/dist/server/{bindings-ConMYJ2U.mjs → bindings-DLoZYUxG.mjs} +2 -2
- package/dist/server/{client-Cot-H5fQ.mjs → client-Bc8jI8zN.mjs} +261 -61
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +1 -1
- package/dist/server/{validation-CDd6m8Ry.mjs → customCss-QymcmOZ-.mjs} +12 -55
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/headerVariant-BwR9NV4b.mjs +463 -0
- package/dist/server/{identity-Bn9OQiT1.mjs → identity-20XHqyuO.mjs} +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-BkaWYEwt.mjs → loadContent-D61gpqHB.mjs} +4 -5
- package/dist/server/{loadPage-kviUdH8c.mjs → loadPage-B4ZYpIcd.mjs} +2 -2
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/{media-DnlczCMA.mjs → media-Brn9FW5s.mjs} +15 -1
- package/dist/server/{mode-Cv_TG9gP.mjs → mode-bkFS8glh.mjs} +4 -2
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-BTnS09GS.mjs → opaqueSurface-BawlEAd_.mjs} +6 -6
- package/dist/server/{overrideResolution-itXZCXs7.mjs → overrideResolution-CDReKy2P.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-CDyn7iLy.mjs → pageRenderPlan-ByVTA7-4.mjs} +255 -158
- package/dist/server/{pageRuntimeSupport-DZ6cLxrM.mjs → pageRuntimeSupport-Dzz_Dze6.mjs} +291 -5
- package/dist/server/{pageShared-Q_Vij87H.mjs → pageShared-Dk5Ku6hs.mjs} +1285 -897
- package/dist/server/{schema-DEizlyi4.mjs → parseThemeForPersistence-pJPGfMrf.mjs} +593 -1592
- package/dist/server/{prebuild-DOG4MkOy.mjs → prebuild-CW4M0WEZ.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-DlprLLsc.mjs → prefetchBlockData-Bvx0SiIM.mjs} +5 -4
- package/dist/server/{registry-BPFcpn6k.mjs → registry-Bh0Y25zH.mjs} +4399 -4065
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-BHvfGD4y.mjs → resolveBlockData-CnHHst9r.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-OXFRGn5M.mjs → resolveButtonColourStates-Cn6j8Ee0.mjs} +399 -518
- package/dist/server/{responseMedia-D8J3VAFs.mjs → responseMedia-t6gs0cB7.mjs} +2 -2
- package/dist/server/{richTextSchema-Euhuj-7V.mjs → richTextSchema-DQ2NBP0n.mjs} +5 -16
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -3
- package/dist/server/theme.mjs +1 -2
- package/dist/server/{three-pass-converter-_j2UE2tR.mjs → three-pass-converter-CQWdnfjV.mjs} +1 -1
- package/dist/server/{validation-bl6WcAi_.mjs → validation-D2bHWSxJ.mjs} +57 -8
- package/dist/server/{version-BLXZ31S-.mjs → version-DkM1eAxG.mjs} +1 -1
- package/dist/styles/index.css +340 -68
- package/package.json +4 -3
- package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
- package/dist/_dts/index-RugyUnqR.d.ts +0 -31535
- package/dist/client/BookingMailingListNote-CCVXX1LN.mjs +0 -331
- package/dist/client/DemoPortalSignInLink-B9YrzZt2.mjs +0 -19
- package/dist/client/site-styles-CMCUxsIM.mjs +0 -3
- package/dist/client/useBookingNowIso-BDmWkYUW.mjs +0 -58
- package/dist/client/wizardSteps-DtkhwKXK.mjs +0 -6933
- package/dist/server/parseThemeForPersistence-CDrF51tJ.mjs +0 -52
|
@@ -1,13 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $t as MediaNodeServer, an as weekColumnDays, on as formatEventPrice } from "./shop.interactive-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { c as MapPinIcon, l as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-DPBLjGwj.mjs";
|
|
2
|
+
import { $t as MediaNodeServer, an as weekColumnDays, on as formatEventPrice } from "./shop.interactive-C8OvFY06.mjs";
|
|
3
|
+
import { En as formatEventTimeRange, Sn as formatEventCompactDateRail, Tn as formatEventNextDateFact, _n as eventDateOptions, ba as itemRoleValues, bn as formatDate, fa as boxBackgroundOverlaySchema, ga as boxlessCardVariantValue, ii as listItemPresentation, ma as runtimeBoxBackgroundSchema, oi as listLookSlot, pa as boxBackgroundSchema, rn as ImagePresets, vn as eventLocalDateKey, xa as openCardRoleValue, ya as cardVariantRoleValues } from "./wizardSteps-CFulHWnT.mjs";
|
|
4
|
+
import { i as ThemedButtonLink, m as ClockIcon } from "./ThemedButton-BdnEwA38.mjs";
|
|
5
|
+
import { n as resolveEventCta, r as resolveEventLinkProps, t as resolveEventCardBooking } from "./cta-DP_IBnq3.mjs";
|
|
6
|
+
import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-13JQI7_z.mjs";
|
|
7
|
+
import { c as MapPinIcon, l as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-BIc4gjiD.mjs";
|
|
9
8
|
import "react";
|
|
9
|
+
import { z } from "zod";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
z.enum(itemRoleValues);
|
|
12
|
+
z.enum(cardVariantRoleValues);
|
|
13
|
+
function isCardVariantRole(value) {
|
|
14
|
+
return typeof value === "string" && cardVariantRoleValues.includes(value);
|
|
15
|
+
}
|
|
16
|
+
function normalizeCardVariantRole(value) {
|
|
17
|
+
return isCardVariantRole(value) ? value : null;
|
|
18
|
+
}
|
|
19
|
+
/** The one untrusted-input boundary for the closed role vocabulary. */
|
|
20
|
+
function normalizeCardRole(value) {
|
|
21
|
+
if (value === "none") return boxlessCardVariantValue;
|
|
22
|
+
if (value === "open") return openCardRoleValue;
|
|
23
|
+
return normalizeCardVariantRole(value);
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
11
26
|
//#region ../blocks/src/system/transforms/registry/core.ts
|
|
12
27
|
/**
|
|
13
28
|
* Safely narrows unknown values to partial object shapes used by transforms.
|
|
@@ -847,15 +862,18 @@ function EventListBody({ display, renderEventCard, footer }) {
|
|
|
847
862
|
}, eventLocalDateKey(first));
|
|
848
863
|
})
|
|
849
864
|
});
|
|
850
|
-
if (display.listLayout === "ledger"
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
...
|
|
854
|
-
event,
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
865
|
+
if (display.listLayout === "ledger" || display.listLayout === "timetable-rows") {
|
|
866
|
+
const arrangement = display.listLayout;
|
|
867
|
+
return /* @__PURE__ */ jsx("ol", {
|
|
868
|
+
...listLookSlot(display, "list"),
|
|
869
|
+
children: display.events.map((event, index, events) => /* @__PURE__ */ jsx(EventItem, {
|
|
870
|
+
...listItemPresentation(display, index, events.length),
|
|
871
|
+
event,
|
|
872
|
+
arrangement,
|
|
873
|
+
continued: index > 0 && eventLocalDateKey(event) === eventLocalDateKey(events[index - 1] ?? event)
|
|
874
|
+
}, event.occurrenceId || event.id))
|
|
875
|
+
});
|
|
876
|
+
}
|
|
859
877
|
if (display.listLayout === "compact") return /* @__PURE__ */ jsxs("aside", {
|
|
860
878
|
...listLookSlot(display, "panel"),
|
|
861
879
|
className: display.containerClass,
|
package/dist/client/{EventRegistrationPayment-CIQw6vNy.mjs → EventRegistrationPayment-D9YBNb_E.mjs}
RENAMED
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as getEligibilityFlowFlags,
|
|
3
|
-
import { Mt as
|
|
4
|
-
import {
|
|
5
|
-
import { a as siteTermsFailureKind, o as useSiteTermsAgreement, s as eventSiteTermsSurface } from "./DemoBookingPortalAccess-
|
|
2
|
+
import { $ as getEligibilityFlowFlags, $r as resolveEventRegistrationScopedEvents, Bt as EVENT_SIGN_IN_FORM_ID, C as resolveGuestNextStepCheck, Cr as needsBookingQuestionsRefresh, Ct as getVisibleTicketTypes, E as resolveRegistrationTicketContinuation, Er as toBookingQuestionsPaymentSnapshot, G as resolveRegistrationTarget, H as findPreSelectedEvent, Ht as eventSignInEnds, It as getRegistrationStartAt, J as beginWaitlistInvitation, K as resolveRouteRequiresPayment, L as calculateEventRegistrationPreviewTotal, La as resolveBookingSignupOffer, Lt as toRegistrationEvents, M as resolveEventRegistrationSubmitPlan, Nt as hasValidPricingOptionSelection, O as visitorHoldsOwnPlace, Pt as normalizeTicketSelectionLines, Q as getCurrentTicketSelection, S as planRegistrationDetailsContinuation, Sr as deriveBookingQuestions, Tt as transformRegistrationOptionsResponse, U as resolveDiscountContext, Ut as eventSignInRestoration, Vt as eventSignInDraftStore, W as resolveEventRequiresPayment, Wt as toEventSignInDraft, X as invitationSubmission, Y as createRegistrationDraftData, Ya as publicEventPricingStrategy, Z as formatCentsAsCurrencyInput, a as registrationPresentation, at as resolveHeldTicketPlaces, br as bookingQuestionsPaymentSnapshotSchema, bt as getImplicitSingleTicketType, ct as validateFormData, d as decideEventChoice, et as getRegistrationOccurrenceId, f as getDeclinedPass, g as decideEventRegistrationPayment, h as buildEventRegistrationPaymentOptionsViewModel, i as registrationPaymentRoute, it as parseCurrencyInputToCents, jt as getTicketSelectionTotal, kt as getSingleSelectedPricingOptionId, m as registrationFlowReducer, nt as getSlidingScaleSelectionMessage, o as registrationRoute, ot as shouldLoadRegistrationOptions, p as isRegistrationLocked, pt as findSelectedTicketType, q as toRegistrationRequestSubject, rt as getTicketSelectionRemainingPlaces, st as registrationQuestionsMessage, tt as getSlidingScaleForEvent, u as createInitialRegistrationFlowState, w as resolveRegistrationAdmission, x as planRegistrationDetailsCheck, xr as decideBookingQuestionsRestoration, xt as getPortalSubjectEmail, y as getTicketSelectionPurpose, zt as toWholeSeriesRegistrationEvents } from "./wizardSteps-CFulHWnT.mjs";
|
|
3
|
+
import { Mt as inferSiteDateLocale, Wt as resolveBookingBusinessTimeZone } from "./noop-ByFRHYQ2.mjs";
|
|
4
|
+
import { d as assertNever, i as checkBookingQuestionsAnswered } from "./bookingQuestionValues-BjcyCru5.mjs";
|
|
5
|
+
import { a as siteTermsFailureKind, o as useSiteTermsAgreement, s as eventSiteTermsSurface } from "./DemoBookingPortalAccess-BeiZxEUJ.mjs";
|
|
6
6
|
import { t as generateUuidV4 } from "./uuid-BETKW8rS.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import { r as
|
|
7
|
+
import { n as useBlockApi, r as BlockApiError } from "./context-DXmIbXCK.mjs";
|
|
8
|
+
import { i as useBookingNowIso, r as parseBookingSubmissionFailure } from "./BookingQuestionFields-Bhh0cvsl.mjs";
|
|
9
|
+
import { t as useDiscountCodeUi } from "./useDiscountCodeUi-D3XnOSCi.mjs";
|
|
10
|
+
import { a as usePolling, c as useBookingQuestionsRefresh, o as portalSessionIdentity, s as useSignInReturn } from "./BookingMailingListNote-Dsugoe-n.mjs";
|
|
9
11
|
import { n as EVENT_REGISTRATION_CHECKOUT_ATTEMPT_PARAM, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import { t as useBookingNowIso } from "./useBookingNowIso-BDmWkYUW.mjs";
|
|
12
|
-
import { o as storeDemoBookingPass, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-CXWZoV-d.mjs";
|
|
12
|
+
import { o as storeDemoBookingPass, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-DQXK-Fh6.mjs";
|
|
13
13
|
import { Suspense, lazy, useCallback, useEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
14
14
|
import { z } from "zod";
|
|
15
15
|
import { jsx } from "react/jsx-runtime";
|
|
16
16
|
//#region ../commerce/src/purchase/event-registration-errors.ts
|
|
17
17
|
const eventRegistrationErrors = {
|
|
18
|
+
invalidAnswers: {
|
|
19
|
+
endsCommand: false,
|
|
20
|
+
message: "Some questions still need an answer.",
|
|
21
|
+
action: "details"
|
|
22
|
+
},
|
|
18
23
|
wholeCourseOnly: {
|
|
19
24
|
endsCommand: false,
|
|
20
25
|
message: "This course is booked as a whole course, so single dates can’t be booked on their own. Please go back to the event and book the full course.",
|
|
@@ -218,6 +223,140 @@ function recoverRegistrationError(action, handlers) {
|
|
|
218
223
|
}
|
|
219
224
|
}
|
|
220
225
|
//#endregion
|
|
226
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/useEventRegistrationQuestions.ts
|
|
227
|
+
/** The event series is the booking target: its question set applies to every date. */
|
|
228
|
+
function eventTarget(event) {
|
|
229
|
+
return event ? {
|
|
230
|
+
targetKey: event.seriesId,
|
|
231
|
+
publicPresentation: event.bookingQuestions
|
|
232
|
+
} : null;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Event registration's during-booking questions: what to show, the
|
|
236
|
+
* authenticated refresh, and keeping progress across a sign-in link. The
|
|
237
|
+
* answer state and both lifecycles are the ones the appointment form uses.
|
|
238
|
+
*/
|
|
239
|
+
function useEventRegistrationQuestions(input) {
|
|
240
|
+
const { api, flow, dispatch, event, identity } = input;
|
|
241
|
+
const answers = flow.draft.bookingQuestions;
|
|
242
|
+
const target = useMemo(() => eventTarget(event), [event]);
|
|
243
|
+
const view = useMemo(() => deriveBookingQuestions(answers, target, identity), [
|
|
244
|
+
answers,
|
|
245
|
+
target,
|
|
246
|
+
identity
|
|
247
|
+
]);
|
|
248
|
+
const dispatchAnswer = useCallback((answerEvent) => dispatch({
|
|
249
|
+
type: "booking-questions",
|
|
250
|
+
event: answerEvent
|
|
251
|
+
}), [dispatch]);
|
|
252
|
+
const refreshKey = needsBookingQuestionsRefresh({
|
|
253
|
+
target,
|
|
254
|
+
identity,
|
|
255
|
+
refreshed: answers.refreshed
|
|
256
|
+
}) ? target?.targetKey ?? null : null;
|
|
257
|
+
useBookingQuestionsRefresh({
|
|
258
|
+
api,
|
|
259
|
+
target: refreshKey ? {
|
|
260
|
+
kind: "event_series",
|
|
261
|
+
eventSeriesId: refreshKey
|
|
262
|
+
} : null,
|
|
263
|
+
targetKey: refreshKey,
|
|
264
|
+
identity,
|
|
265
|
+
dispatch: dispatchAnswer
|
|
266
|
+
});
|
|
267
|
+
const signIn = useEventSignInReturn(input);
|
|
268
|
+
const { scope } = view;
|
|
269
|
+
const answer = useCallback((fieldId, value) => dispatchAnswer({
|
|
270
|
+
type: "booking-question-answered",
|
|
271
|
+
scope,
|
|
272
|
+
fieldId,
|
|
273
|
+
value
|
|
274
|
+
}), [dispatchAnswer, scope]);
|
|
275
|
+
const chooseAnswerMode = useCallback((mode) => dispatchAnswer({
|
|
276
|
+
type: "booking-questions-answer-mode-set",
|
|
277
|
+
scope,
|
|
278
|
+
mode
|
|
279
|
+
}), [dispatchAnswer, scope]);
|
|
280
|
+
const keepRefused = useCallback(() => dispatchAnswer({
|
|
281
|
+
type: "booking-questions-keep-refused",
|
|
282
|
+
scope
|
|
283
|
+
}), [dispatchAnswer, scope]);
|
|
284
|
+
return {
|
|
285
|
+
presentation: view.presentation,
|
|
286
|
+
values: view.values,
|
|
287
|
+
answerMode: view.answerMode,
|
|
288
|
+
submission: view.submission,
|
|
289
|
+
fieldErrors: flow.questionFieldErrors,
|
|
290
|
+
answer,
|
|
291
|
+
chooseAnswerMode,
|
|
292
|
+
keepRefused,
|
|
293
|
+
paymentSnapshot: toBookingQuestionsPaymentSnapshot(view),
|
|
294
|
+
...signIn
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* The shared sign-in owner, with event registration's draft. A returned draft
|
|
299
|
+
* waits for the page's events as well as the session check, so its event can
|
|
300
|
+
* be found again.
|
|
301
|
+
*/
|
|
302
|
+
function useEventSignInReturn(input) {
|
|
303
|
+
const { flow, discountCode, dispatch, setDiscountCode } = input;
|
|
304
|
+
const events = input.eventSource.kind === "ready" ? input.registrationEvents : null;
|
|
305
|
+
const source = useMemo(() => ({
|
|
306
|
+
flow,
|
|
307
|
+
discountCode
|
|
308
|
+
}), [flow, discountCode]);
|
|
309
|
+
const restore = useCallback((draft, verifiedIdentity) => {
|
|
310
|
+
const restoration = eventSignInRestoration(draft, events ?? [], verifiedIdentity);
|
|
311
|
+
dispatch({
|
|
312
|
+
type: "sign-in-draft-restored",
|
|
313
|
+
restoration
|
|
314
|
+
});
|
|
315
|
+
if (restoration.selectionFound) setDiscountCode(draft.discountCode);
|
|
316
|
+
}, [
|
|
317
|
+
dispatch,
|
|
318
|
+
events,
|
|
319
|
+
setDiscountCode
|
|
320
|
+
]);
|
|
321
|
+
return useSignInReturn({
|
|
322
|
+
siteId: input.siteId ?? "",
|
|
323
|
+
formId: EVENT_SIGN_IN_FORM_ID,
|
|
324
|
+
state: source,
|
|
325
|
+
store: eventSignInDraftStore,
|
|
326
|
+
toDraft: toEventSignInDraft,
|
|
327
|
+
ends: eventSignInEnds,
|
|
328
|
+
session: {
|
|
329
|
+
api: input.api,
|
|
330
|
+
identity: input.identity
|
|
331
|
+
},
|
|
332
|
+
ready: events !== null,
|
|
333
|
+
restore
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
//#endregion
|
|
337
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/registrationPaymentReturn.ts
|
|
338
|
+
/**
|
|
339
|
+
* How a saved checkout lands once the page's events are ready. Its answers
|
|
340
|
+
* come back only for the session (or signed-out visitor) that started it.
|
|
341
|
+
*/
|
|
342
|
+
function paymentReturnRestoration(pending, events, currentIdentity) {
|
|
343
|
+
return {
|
|
344
|
+
event: events.find((event) => event.selectionId === pending.selectedEventId) ?? null,
|
|
345
|
+
ticketLines: pending.ticketSelections,
|
|
346
|
+
ticketsCount: getTicketSelectionTotal(pending.ticketSelections),
|
|
347
|
+
formData: pending.formData,
|
|
348
|
+
guests: pending.guests,
|
|
349
|
+
slidingAmountInput: pending.selectedSlidingAmount === null ? "" : formatCentsAsCurrencyInput(pending.selectedSlidingAmount),
|
|
350
|
+
attendanceMode: pending.selectedAttendanceMode ?? null,
|
|
351
|
+
paymentSelection: pending.paymentSelection,
|
|
352
|
+
questions: pending.bookingQuestions ? decideBookingQuestionsRestoration({
|
|
353
|
+
kind: "payment_snapshot",
|
|
354
|
+
snapshot: pending.bookingQuestions,
|
|
355
|
+
currentIdentity
|
|
356
|
+
}) : null
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
//#endregion
|
|
221
360
|
//#region ../blocks/src/system/runtime/nodes/event-registration/useTicketSelectionInitialization.ts
|
|
222
361
|
/** Pick the single default once; removing or refreshing a line never picks it again. */
|
|
223
362
|
function useTicketSelectionInitialization(input) {
|
|
@@ -701,6 +840,7 @@ const schema = z.object({
|
|
|
701
840
|
selectedSlidingAmount: z.number().nullable(),
|
|
702
841
|
discountCode: z.string(),
|
|
703
842
|
mailingListSignupNote: z.enum(["confirmation_required", "not_confirmed"]).optional(),
|
|
843
|
+
bookingQuestions: bookingQuestionsPaymentSnapshotSchema.optional(),
|
|
704
844
|
timestamp: z.number().finite()
|
|
705
845
|
});
|
|
706
846
|
function key(siteId, submissionId) {
|
|
@@ -798,8 +938,20 @@ function clearEventPayment(siteId) {
|
|
|
798
938
|
}
|
|
799
939
|
//#endregion
|
|
800
940
|
//#region ../blocks/src/system/runtime/nodes/event-registration/registrationErrorPresentation.ts
|
|
801
|
-
function
|
|
802
|
-
|
|
941
|
+
function parseEventRegistrationFailure(error) {
|
|
942
|
+
return {
|
|
943
|
+
...parseBookingSubmissionFailure(error, "Something went wrong. Please try again."),
|
|
944
|
+
reason: error instanceof BlockApiError ? parseEventRegistrationErrorReason(error.tag) : null,
|
|
945
|
+
siteTermsFailure: siteTermsFailureKind(error),
|
|
946
|
+
isClientError: error instanceof BlockApiError && error.status < 500 && error.code !== "invalid_booking_response"
|
|
947
|
+
};
|
|
948
|
+
}
|
|
949
|
+
function registrationErrorPresentation(failure) {
|
|
950
|
+
if (failure.reason === "invalidAnswers" || failure.answersNeeded || Object.keys(failure.questionFieldErrors).length > 0) return {
|
|
951
|
+
message: failure.message,
|
|
952
|
+
action: "details"
|
|
953
|
+
};
|
|
954
|
+
const reason = failure.reason;
|
|
803
955
|
if (reason) {
|
|
804
956
|
const { message, action } = eventRegistrationErrors[reason];
|
|
805
957
|
return {
|
|
@@ -807,7 +959,7 @@ function registrationErrorPresentation(error) {
|
|
|
807
959
|
action
|
|
808
960
|
};
|
|
809
961
|
}
|
|
810
|
-
if (
|
|
962
|
+
if (failure.isClientError) {
|
|
811
963
|
const { message, action } = eventRegistrationErrors.invalidCommitInput;
|
|
812
964
|
return {
|
|
813
965
|
message,
|
|
@@ -893,15 +1045,7 @@ function useEventRegistrationSubmitWithDeps(options, deps) {
|
|
|
893
1045
|
}));
|
|
894
1046
|
} catch (error) {
|
|
895
1047
|
if (error instanceof BlockApiError && eventRegistrationErrorEndsCommand(error.tag)) commandRef.current = null;
|
|
896
|
-
|
|
897
|
-
options.setErrorAction?.(action);
|
|
898
|
-
options.setErrorMessage(message);
|
|
899
|
-
options.setStep(failedRegistrationStep(error, method));
|
|
900
|
-
return {
|
|
901
|
-
ok: false,
|
|
902
|
-
reason: "submission-failed",
|
|
903
|
-
message
|
|
904
|
-
};
|
|
1048
|
+
return reportFailedRegistration(options, error, method);
|
|
905
1049
|
}
|
|
906
1050
|
};
|
|
907
1051
|
return (...args) => {
|
|
@@ -1032,7 +1176,8 @@ function savePendingCheckout(options, deps, prepared, checkoutAttemptId, referen
|
|
|
1032
1176
|
guests: options.guests,
|
|
1033
1177
|
selectedSlidingAmount: options.selectedSlidingAmount,
|
|
1034
1178
|
discountCode: options.discountCode,
|
|
1035
|
-
mailingListSignupNote
|
|
1179
|
+
mailingListSignupNote,
|
|
1180
|
+
...options.bookingQuestionsSnapshot ? { bookingQuestions: options.bookingQuestionsSnapshot } : {}
|
|
1036
1181
|
});
|
|
1037
1182
|
}
|
|
1038
1183
|
function registrationRequestIntentKey(request) {
|
|
@@ -1061,6 +1206,7 @@ function buildRegistrationRequest(options, prepared, invitation, method, passId,
|
|
|
1061
1206
|
phone: options.formData.phone.trim() || void 0,
|
|
1062
1207
|
notes: options.formData.notes.trim() || void 0,
|
|
1063
1208
|
consentAccepted: options.formData.consentAccepted,
|
|
1209
|
+
bookingQuestions: options.bookingQuestions,
|
|
1064
1210
|
mailingListOptIn: wantsMailingListSignup(options),
|
|
1065
1211
|
paymentMethod: method,
|
|
1066
1212
|
customerPassId: method === "pass" ? passId : void 0,
|
|
@@ -1078,10 +1224,30 @@ function invitationRequestCredential(credential) {
|
|
|
1078
1224
|
}
|
|
1079
1225
|
}
|
|
1080
1226
|
/** Legal rejection returns to the intact draft, before any payment effect. */
|
|
1081
|
-
function failedRegistrationStep(
|
|
1082
|
-
if (
|
|
1227
|
+
function failedRegistrationStep(failure, method) {
|
|
1228
|
+
if (failure.reason === "invalidAnswers") return "enter-details";
|
|
1229
|
+
if (!failure.siteTermsFailure) return "error";
|
|
1083
1230
|
return method === "pass_bundle" || method === "membership_bundle" ? "select-payment" : "enter-details";
|
|
1084
1231
|
}
|
|
1232
|
+
/** Keep feedback, field errors and navigation together when a submission fails. */
|
|
1233
|
+
function reportFailedRegistration(options, error, method) {
|
|
1234
|
+
const parsed = parseEventRegistrationFailure(error);
|
|
1235
|
+
const { message, action } = registrationErrorPresentation(parsed);
|
|
1236
|
+
const failure = {
|
|
1237
|
+
message,
|
|
1238
|
+
questionFieldErrors: parsed.questionFieldErrors,
|
|
1239
|
+
answersNeeded: parsed.answersNeeded
|
|
1240
|
+
};
|
|
1241
|
+
options.setErrorAction?.(action);
|
|
1242
|
+
options.setErrorMessage(message);
|
|
1243
|
+
options.setSubmissionFailure(failure);
|
|
1244
|
+
options.setStep(failedRegistrationStep(parsed, method));
|
|
1245
|
+
return {
|
|
1246
|
+
ok: false,
|
|
1247
|
+
reason: "submission-failed",
|
|
1248
|
+
...failure
|
|
1249
|
+
};
|
|
1250
|
+
}
|
|
1085
1251
|
//#endregion
|
|
1086
1252
|
//#region ../blocks/src/system/runtime/nodes/event-registration/useSettledCommerceView.ts
|
|
1087
1253
|
function buildCandidate(input) {
|
|
@@ -1806,6 +1972,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
1806
1972
|
const [submissionErrorAction, setErrorAction] = useState("retry");
|
|
1807
1973
|
const [optionsRefreshKey, setOptionsRefreshKey] = useState(0);
|
|
1808
1974
|
const { authState: portalAuthState, profile: portalProfile } = deps.usePortalAuth();
|
|
1975
|
+
const portalIdentity = portalSessionIdentity(api.config);
|
|
1809
1976
|
const waitlistClaim = flowState.invitation;
|
|
1810
1977
|
const claimLookup = deps.useWaitlistClaim(waitlistClaim.kind === "none" ? null : waitlistClaim.request);
|
|
1811
1978
|
useEffect(() => {
|
|
@@ -1940,26 +2107,29 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
1940
2107
|
});
|
|
1941
2108
|
}, [eligibility]);
|
|
1942
2109
|
const verification = paymentController.verification;
|
|
2110
|
+
const [paymentReturn, setPaymentReturn] = useState(null);
|
|
1943
2111
|
deps.useEventRegistrationStripeReturn({
|
|
1944
2112
|
siteId: api.config.siteId,
|
|
1945
2113
|
verify: paymentController.verify,
|
|
1946
2114
|
restore: (pending) => {
|
|
1947
2115
|
paymentController.restoreMailingListNote(pending.mailingListSignupNote);
|
|
1948
|
-
setFormData(pending.formData);
|
|
1949
|
-
setSelectedTicketLines(pending.ticketSelections);
|
|
1950
|
-
setTicketsCount(getTicketSelectionTotal(pending.ticketSelections));
|
|
1951
|
-
setGuests(pending.guests);
|
|
1952
2116
|
discountUi.setDiscountCode(pending.discountCode);
|
|
1953
|
-
|
|
1954
|
-
setSelectedAttendanceMode(pending.selectedAttendanceMode ?? null);
|
|
1955
|
-
const event = registrationEvents.find((item) => item.selectionId === pending.selectedEventId);
|
|
1956
|
-
if (event) setSelectedEvent(event);
|
|
1957
|
-
dispatchFlow({
|
|
1958
|
-
type: "set-manual-payment-selection",
|
|
1959
|
-
selection: pending.paymentSelection
|
|
1960
|
-
});
|
|
2117
|
+
setPaymentReturn(pending);
|
|
1961
2118
|
}
|
|
1962
2119
|
});
|
|
2120
|
+
useEffect(() => {
|
|
2121
|
+
if (!paymentReturn || options.eventSource.kind !== "ready") return;
|
|
2122
|
+
setPaymentReturn(null);
|
|
2123
|
+
dispatchFlow({
|
|
2124
|
+
type: "payment-return-restored",
|
|
2125
|
+
restoration: paymentReturnRestoration(paymentReturn, registrationEvents, portalIdentity)
|
|
2126
|
+
});
|
|
2127
|
+
}, [
|
|
2128
|
+
options.eventSource.kind,
|
|
2129
|
+
paymentReturn,
|
|
2130
|
+
portalIdentity,
|
|
2131
|
+
registrationEvents
|
|
2132
|
+
]);
|
|
1963
2133
|
const requireGuestDetails = useMemo(() => {
|
|
1964
2134
|
return (selectedEvent ?? preSelectedEvent)?.requireGuestDetails === true;
|
|
1965
2135
|
}, [selectedEvent, preSelectedEvent]);
|
|
@@ -2115,14 +2285,27 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
2115
2285
|
formData,
|
|
2116
2286
|
requiresConsent: Boolean(currentEvent?.consent),
|
|
2117
2287
|
requireGuestDetails,
|
|
2118
|
-
guests
|
|
2288
|
+
guests,
|
|
2289
|
+
questions: checkBookingQuestionsAnswered(questions)
|
|
2119
2290
|
});
|
|
2120
2291
|
if (check.kind === "blocked") return blockDetailsCompletion(check.blocker);
|
|
2121
2292
|
setErrors(check.errors);
|
|
2122
2293
|
setGuestErrors(check.guestErrors);
|
|
2294
|
+
dispatchFlow({
|
|
2295
|
+
type: "question-errors-set",
|
|
2296
|
+
fieldErrors: check.questionFieldErrors
|
|
2297
|
+
});
|
|
2123
2298
|
const siteTermsAgreed = siteTerms.requireAgreement();
|
|
2124
|
-
if (check.kind === "invalid")
|
|
2125
|
-
|
|
2299
|
+
if (check.kind === "invalid") {
|
|
2300
|
+
setGuestSectionShake(true);
|
|
2301
|
+
setErrorMessage(check.message);
|
|
2302
|
+
return {
|
|
2303
|
+
ok: false,
|
|
2304
|
+
reason: "validation-failed",
|
|
2305
|
+
message: check.message
|
|
2306
|
+
};
|
|
2307
|
+
}
|
|
2308
|
+
if (!siteTermsAgreed) return {
|
|
2126
2309
|
ok: false,
|
|
2127
2310
|
reason: "validation-failed",
|
|
2128
2311
|
message: "Check the highlighted fields and try again."
|
|
@@ -2227,9 +2410,28 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
2227
2410
|
});
|
|
2228
2411
|
const selectionMethod = paymentSelection.method;
|
|
2229
2412
|
const shouldShowDiscountToggle = discountContext !== null && discountUi.manualCodeEntryAllowed && (selectionMethod === "stripe" || selectionMethod === "pass_bundle" || selectionMethod === "membership_bundle");
|
|
2413
|
+
const questions = useEventRegistrationQuestions({
|
|
2414
|
+
api,
|
|
2415
|
+
siteId: api.config.siteId,
|
|
2416
|
+
flow: flowState,
|
|
2417
|
+
dispatch: dispatchFlow,
|
|
2418
|
+
event: currentEvent,
|
|
2419
|
+
identity: portalIdentity,
|
|
2420
|
+
eventSource: options.eventSource,
|
|
2421
|
+
registrationEvents,
|
|
2422
|
+
discountCode: discountUi.discountCode,
|
|
2423
|
+
setDiscountCode: discountUi.setDiscountCode
|
|
2424
|
+
});
|
|
2230
2425
|
const handleSubmit = deps.useEventRegistrationSubmit({
|
|
2231
2426
|
openPayment: paymentController.openPayment,
|
|
2232
2427
|
commandRef,
|
|
2428
|
+
setSubmissionFailure: (failure) => {
|
|
2429
|
+
if (failure.answersNeeded) questions.keepRefused();
|
|
2430
|
+
dispatchFlow({
|
|
2431
|
+
type: "submission-failed",
|
|
2432
|
+
failure
|
|
2433
|
+
});
|
|
2434
|
+
},
|
|
2233
2435
|
setErrorAction,
|
|
2234
2436
|
api: siteTerms.api,
|
|
2235
2437
|
registrationTarget,
|
|
@@ -2237,6 +2439,8 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
2237
2439
|
ticketSelections,
|
|
2238
2440
|
selectedSlidingAmount,
|
|
2239
2441
|
formData,
|
|
2442
|
+
bookingQuestions: questions.submission,
|
|
2443
|
+
bookingQuestionsSnapshot: questions.paymentSnapshot,
|
|
2240
2444
|
mailingListSignup,
|
|
2241
2445
|
requireGuestDetails,
|
|
2242
2446
|
guests,
|
|
@@ -2399,6 +2603,12 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
2399
2603
|
guestSectionShake,
|
|
2400
2604
|
handleGuestShakeEnd,
|
|
2401
2605
|
errorMessage,
|
|
2606
|
+
questionFieldErrors: flowState.questionFieldErrors,
|
|
2607
|
+
bookingQuestions: questions,
|
|
2608
|
+
/** Where a sign-in link brings the booker back to, keeping this booking for that attempt. */
|
|
2609
|
+
signInReturnPath: questions.signInReturnPath,
|
|
2610
|
+
/** The message under the details form while questions there need attention. */
|
|
2611
|
+
questionsMessage: registrationQuestionsMessage(flowState.questionFieldErrors, errorMessage),
|
|
2402
2612
|
errorAction,
|
|
2403
2613
|
portalAuthState,
|
|
2404
2614
|
portalProfile,
|
|
@@ -2527,7 +2737,7 @@ function resolveWizardPaymentView(input) {
|
|
|
2527
2737
|
}
|
|
2528
2738
|
//#endregion
|
|
2529
2739
|
//#region ../blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.tsx
|
|
2530
|
-
const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-
|
|
2740
|
+
const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-Cf-HRHtb.mjs"));
|
|
2531
2741
|
/** The one Stripe mount, shared by the standard wizard and headless arrangements. */
|
|
2532
2742
|
function EventPaymentMount({ state, onComplete, onRetry, onBack, buttonVariant }) {
|
|
2533
2743
|
if (state.kind === "abandoning") return /* @__PURE__ */ jsx("p", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { i as ThemedButtonLink } from "./ThemedButton-
|
|
2
|
+
import { vt as normalizeLocationAddressText } from "./noop-ByFRHYQ2.mjs";
|
|
3
|
+
import { i as ThemedButtonLink } from "./ThemedButton-BdnEwA38.mjs";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region ../core/src/locationLinks.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { wt as mapDrawingSchema } from "./noop-ByFRHYQ2.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/events/domain/location.ts
|