@riverbankcms/sdk 0.168.0 → 0.169.1
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-CiD_VVGM.d.ts → BlocksIslandsHydrator-DEhlJEwj.d.ts} +1 -1
- package/dist/_dts/{Page-Bj6VJRS5.d.ts → Page-BhCfStX1.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-ChpsnwDX.d.ts → SdkPreviewMode-DSYdsdmJ.d.ts} +2 -2
- package/dist/_dts/{client-C8mfUxrJ.d.ts → client-BZMn4Y99.d.ts} +39 -397
- package/dist/_dts/{content-types-_vXZyR4H.d.ts → content-types-EMK-E_r9.d.ts} +2 -2
- package/dist/_dts/{contracts-CJFfrVKU.d.ts → contracts-DjYsGY3B.d.ts} +4 -3
- package/dist/_dts/{footerPageOutline-CMegb23G.d.ts → footerPageOutline-BtYUi-m0.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-D9YdAIMh.d.ts → generatePageMetadata-D_fNTi5r.d.ts} +2 -2
- package/dist/_dts/{index-BQXaZ7aY.d.ts → index-BR0i0c3G.d.ts} +4 -4
- package/dist/_dts/{index-Bpr-wT5k.d.ts → index-BV-qVnt7.d.ts} +2 -2
- package/dist/_dts/{index-C7_Rz8EY.d.ts → index-BYYhTQ_b.d.ts} +3 -3
- package/dist/_dts/{index-Vh8B9FSa.d.ts → index-BzguBJzR.d.ts} +1 -1
- package/dist/_dts/{index-Dgz6yhsy.d.ts → index-DgEwZ5WQ.d.ts} +1 -1
- package/dist/_dts/{index-Cx2BQlHL.d.ts → index-NaRauKDR.d.ts} +1 -1
- package/dist/_dts/{index-vR3p9Bu-.d.ts → index-QIbYMeI7.d.ts} +2 -2
- package/dist/_dts/{loadContent-dhWSgLeS.d.ts → loadContent-BmGH6NKl.d.ts} +7 -7
- package/dist/_dts/{request-BrYhNV9Z.d.ts → request-DssgRQSm.d.ts} +9558 -7863
- package/dist/_dts/{resolveBlockData-BfSHm8Ms.d.ts → resolveBlockData-5BqNxwL8.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-gZJ4i1wN.d.ts → resolvePageContent-DIuwuFA7.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 -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 +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-BB33-Spd.d.ts → types-DrAWDtqR.d.ts} +3 -3
- package/dist/_dts/{types-BVFXYtRg.d.ts → types-Z388-GR1.d.ts} +7 -7
- package/dist/_dts/{types-FOsJ-KYb.d.ts → types-cObpvZGF.d.ts} +2 -2
- package/dist/_dts/{validation-DckTc6TQ.d.ts → validation-hLr8zVrc.d.ts} +4 -4
- package/dist/client/BlocksIslandsHydrator-CN2GyuuA.mjs +410 -0
- package/dist/client/{BookingMailingListNote-Dsugoe-n.mjs → BookingMailingListNote-Br1VyHkP.mjs} +17 -6
- package/dist/client/{BookingQuestionFields-Bhh0cvsl.mjs → BookingQuestionFields-LLGCWjvU.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-CNe3ZjdC.mjs → CalendarNavigationChevron-DSnSBNeq.mjs} +7 -7
- package/dist/client/{DemoBookingPortalAccess-BeiZxEUJ.mjs → DemoBookingPortalAccess-Cilv5zdS.mjs} +65 -9
- package/dist/client/{EventCalendar.client-BL943-tl.mjs → EventCalendar.client-ucgdMS35.mjs} +9 -9
- package/dist/client/{EventCombined.client-BFVxECTp.mjs → EventCombined.client-BEdfJGpx.mjs} +7 -7
- package/dist/client/{EventItem-BIc4gjiD.mjs → EventItem-OpLehMpT.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-a0QEIEf0.mjs → EventListWeekNavigation-DTsVU6gc.mjs} +1 -1
- package/dist/client/{EventListing.client-CEFTC3jH.mjs → EventListing.client-8MFGI9BA.mjs} +3 -3
- package/dist/client/{EventListing.view-Bt2sBBms.mjs → EventListing.view-BCvRqU86.mjs} +6 -6
- package/dist/client/{EventRegistrationPayment-D9YBNb_E.mjs → EventRegistrationPayment-CqH3hE-k.mjs} +132 -62
- package/dist/client/{LocationMapActions-gqzt5gkW.mjs → LocationMapActions-BFp2uQQQ.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-13JQI7_z.mjs → MapDrawingSvg-DDWfmgpA.mjs} +1 -1
- package/dist/client/{Page-D_M2Vxz3.mjs → Page-Bu5TJU3L.mjs} +53 -22
- package/dist/client/{StepIndicator-CaN8snZ8.mjs → StepIndicator-CR7_0yu4.mjs} +5 -4
- package/dist/client/{accessibleSurfaces-chpD4C2c.mjs → accessibleSurfaces-_7jkuinl.mjs} +56 -8
- package/dist/client/{accordion-DE7OG--d.mjs → accordion-DMItWylU.mjs} +6 -1
- package/dist/client/{booking-form.client-CS1PPjw7.mjs → booking-form.client-wd71DG19.mjs} +505 -217
- package/dist/client/{bookingForm-DE2CwIU9.mjs → bookingForm-Cyr2qeS1.mjs} +17 -17
- package/dist/client/{bookingRoute-Bqlyu5Vb.mjs → bookingRoute-D6DlxYx6.mjs} +6 -2
- package/dist/client/bookings.mjs +16 -13
- package/dist/client/{carousel-DZyUdnFh.mjs → carousel-B5-Hzzif.mjs} +7 -9
- package/dist/client/{carousel.client-BD4DXMtI.mjs → carousel.client-eSSr1oYA.mjs} +2 -2
- package/dist/client/{cart-D7HkkNwe.mjs → cart-B-M5l__W.mjs} +3 -3
- package/dist/client/{cart.client-H4sv2TpD.mjs → cart.client-COAP4CEy.mjs} +1 -1
- package/dist/client/{checkout-2qVyG-Sh.mjs → checkout-ZHc8GfaG.mjs} +3 -3
- package/dist/client/{checkout.client-DAjrBZ74.mjs → checkout.client-DRralR3e.mjs} +1 -1
- package/dist/client/{checkoutUrls-CYj06rX1.mjs → checkoutUrls-CY8qywXl.mjs} +3 -2
- package/dist/client/client.mjs +87 -4
- package/dist/client/{context-DXmIbXCK.mjs → context-Xhf81Q-c.mjs} +25 -3
- package/dist/client/{createLucideIcon-CIbxe9em.mjs → createLucideIcon-BrXgHVKN.mjs} +9 -9
- package/dist/client/{bookingQuestionValues-BjcyCru5.mjs → creditProducts-CMOmhWm2.mjs} +71 -11
- package/dist/client/{cta-DP_IBnq3.mjs → cta-CfuyGqXL.mjs} +2 -2
- package/dist/client/{dateFormatting-CwrkFZTr.mjs → dateFormatting-Bv6kjUW3.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-DQXK-Fh6.mjs → demoPortalMagicLink-DQtwf_s2.mjs} +1 -1
- package/dist/client/{wizardSteps-CFulHWnT.mjs → display-DDNmyb0z.mjs} +920 -870
- package/dist/client/{enhanceHeaderSection-DheQj7rg.mjs → enhanceHeaderSection-D7gRy-pL.mjs} +3 -2
- package/dist/client/{event-details.client-C5UufcRp.mjs → event-details.client-DZZaoCUc.mjs} +1 -1
- package/dist/client/{event-registration.client-CMGg63IU.mjs → event-registration.client-CLBdHUfd.mjs} +59 -18
- package/dist/client/{eventCalendar-DlD0GCEy.mjs → eventCalendar-BY3AfYkK.mjs} +14 -17
- package/dist/client/eventCombined-86P2vQCb.mjs +25 -0
- package/dist/client/{eventDetails-DzuQYgmO.mjs → eventDetails-DIJYMzVg.mjs} +4 -6
- package/dist/client/eventListing-8jS0qGGC.mjs +26 -0
- package/dist/client/{eventRegistration-CjS3Zpjp.mjs → eventRegistration-DyseP_sY.mjs} +19 -19
- package/dist/client/flightRegistrations-DjYm0Wz6.mjs +45 -0
- package/dist/client/{form-DgQqm7T2.mjs → form-RTqunrpz.mjs} +9 -14
- package/dist/client/{form.client-BI9Dcsq5.mjs → form.client-D3_RF29v.mjs} +4 -4
- package/dist/client/{form.parts-DevF0L_A.mjs → form.parts-DWLf_3PF.mjs} +1 -1
- package/dist/client/{formatDate-DDyURjoe.mjs → formatDate-BGlhrmhF.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-DYIG6Pwb.mjs → headerSection-CyNGt23J.mjs} +2 -2
- package/dist/client/{newsletter-form.client-BWp7Y1e1.mjs → newsletter-form.client-IfLup4o0.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-Dg8s9NwJ.mjs → newsletter-form.parts-DDD-LRyW.mjs} +1 -1
- package/dist/client/{newsletterForm-DnPraMzx.mjs → newsletterForm-o5wFBVHv.mjs} +10 -15
- package/dist/client/{noop-ByFRHYQ2.mjs → noop-B_f7RqLD.mjs} +111 -2
- package/dist/client/portal/client.mjs +21 -13
- package/dist/client/{product-detail.client-BFAgHrdg.mjs → product-detail.client-5hNA8aKU.mjs} +1 -1
- package/dist/client/{product-list.client-DVrs_DyY.mjs → product-list.client-c-777ohj.mjs} +1 -1
- package/dist/client/{productDetail-D4rvl6Xg.mjs → productDetail-hXttfQhE.mjs} +3 -3
- package/dist/client/{productList-B8o5AOMX.mjs → productList-BPsYP_jA.mjs} +3 -3
- package/dist/client/{propsDecoder-hhotPP6P.mjs → propsDecoder-Dc8j5i79.mjs} +3 -3
- package/dist/client/reactMount-DFQy3CmO.mjs +51 -0
- package/dist/client/{registry.server-Ch3EpupA.mjs → registry.server-CMrdUGGv.mjs} +338 -289
- package/dist/client/rendering/client.mjs +39 -39
- package/dist/client/rendering/islandDelivery.flight.mjs +99 -0
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-C3LabQ1O.mjs → richText-coerce-BTurYEao.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CQGlxId8.mjs → routeIslandApiConfig-DFjRKvzM.mjs} +1 -1
- package/dist/client/{runtimeResponse-Dg4XFsuM.mjs → runtimeResponse-BGU8sMZY.mjs} +1 -1
- package/dist/client/runtimeResponse-D2LT--Gj.mjs +3 -0
- package/dist/client/{shop-rRXplPGZ.mjs → shop-Ds47onRS.mjs} +3 -3
- package/dist/client/{shop-commerce-VDbVaKY-.mjs → shop-commerce-B3PyRHaN.mjs} +12 -12
- package/dist/client/{shop-commerce-store-DqdgJ8Zw.mjs → shop-commerce-store-D9CHihQv.mjs} +1 -1
- package/dist/client/{shop.client-DdwvMvaK.mjs → shop.client-RljK0qPB.mjs} +110 -31
- package/dist/client/{shop.interactive-C8OvFY06.mjs → shop.interactive-BH0xDlMF.mjs} +42 -533
- package/dist/client/{shopShared-BeuJiGPU.mjs → shopShared-BEfD0e4m.mjs} +12 -15
- package/dist/client/src-BozhJ43Z.mjs +3 -0
- package/dist/client/{src-1PJxc8KO.mjs → src-xrjaKaCj.mjs} +6 -8
- package/dist/client/{timetableModel-Cko9LRKy.mjs → timetableModel-BG7Ejxdr.mjs} +12 -12
- package/dist/client/{useAvailableSlots-M6QIEiWf.mjs → useAvailableSlots-GP8tnAVW.mjs} +3 -3
- package/dist/client/{useDiscountApply-BJSnyO0f.mjs → useDiscountApply-Cq07nTyG.mjs} +5 -3
- package/dist/client/{useDiscountCodeUi-D3XnOSCi.mjs → useDiscountCodeUi-CD82QX5i.mjs} +1 -1
- package/dist/client/{useEventPagination-PhTIoFVX.mjs → useEventPagination-spj7sGQP.mjs} +6 -6
- package/dist/client/{view-L_mkgtnk.mjs → view-aAP2WbCR.mjs} +2 -3
- package/dist/client/{view-448wvvEY.mjs → view-oToSpu1N.mjs} +7 -7
- package/dist/preview-next/client/{ArrangementLookControls-BpvnOGlN.mjs → ArrangementLookControls-CoWdilcI.mjs} +7 -7
- package/dist/preview-next/client/{LocationPickerEnvironment-CZQ4vkRe.mjs → LocationPickerEnvironment-CwxRbAs2.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-CP4w7T_0.mjs → MapLibreEditMap-CKjYUp_E.mjs} +2 -2
- package/dist/preview-next/client/{PreviewEditorSidebar-C0OtdWu_.mjs → PreviewEditorSidebar-BNCrO6PQ.mjs} +201 -151
- package/dist/preview-next/client/{PreviewEditorUI-Csc5vH5k.mjs → PreviewEditorUI-inVZkLCd.mjs} +6 -6
- package/dist/preview-next/client/{PreviewShell-BOLH_pm-.mjs → PreviewShell-CFQlAHTe.mjs} +10 -15
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CKodLReY.mjs → SdkPreviewModeRuntime-Dgl7ktO4.mjs} +12 -9
- package/dist/preview-next/client/{SiteChromeCustomizeButton-BeEZpeKn.mjs → SiteChromeCustomizeButton-DgDYHwkG.mjs} +1418 -598
- package/dist/preview-next/client/{lucide-react-DkZ8fO-G.mjs → lucide-react-DbC1o6_9.mjs} +11 -11
- package/dist/preview-next/client/{previewAssistantSlot-BBdN5kfY.mjs → previewAssistantSlot-DRDu7Ndv.mjs} +684 -930
- package/dist/preview-next/client/{previewChromeSurface-VZtGwPuH.mjs → previewChromeSurface-K6Q5uEMC.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-kiZkMcuR.mjs → sdk-runtime-AGypzhcO.mjs} +2 -2
- package/dist/preview-next/client/{src-DY8JCJdE.mjs → src-DzXUmsyK.mjs} +6 -8
- package/dist/preview-next/client/src-LUhVXBEQ.mjs +3 -0
- package/dist/preview-next/client/{useAutosaveStatus-BiIHEeE0.mjs → useAutosaveStatus-B2mn_l6c.mjs} +3 -3
- package/dist/preview-next/client/{useBlockCustomizeControls-BuFLIpmX.mjs → useBlockCustomizeControls-CBXHo6ph.mjs} +5 -5
- package/dist/preview-next/client/{useOpenBlockForSetup-DlxYgmh_.mjs → useOpenBlockForSetup-BpZnBznt.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +3 -4
- package/dist/preview-next/{route-contract-C0sCvCYL.mjs → route-contract-jc2Bug-h.mjs} +83 -0
- package/dist/server/{Block.shared-Dnhc0Wu5.mjs → Block.shared-BHgQjX16.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-NAQ_zsFu.mjs → ThemeScopeCore-Ck0dhZA6.mjs} +31 -5
- package/dist/server/{accessibleSurfaces-108nxyGc.mjs → accessibleSurfaces-D0q5tLSW.mjs} +56 -8
- package/dist/server/{bindings-DLoZYUxG.mjs → bindings-CAbTvrCZ.mjs} +1 -1
- package/dist/server/{booking-form.reserved-fields-BWRF7509.mjs → booking-form.reserved-fields-Cqp13TKc.mjs} +1 -0
- package/dist/server/{client-Bc8jI8zN.mjs → client-C-asG6Cf.mjs} +85 -2
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{headerVariant-BwR9NV4b.mjs → headerVariant-8O5MvxIU.mjs} +2 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-D61gpqHB.mjs → loadContent-DKerbSnI.mjs} +4 -4
- package/dist/server/{loadPage-B4ZYpIcd.mjs → loadPage-XgtQR90Z.mjs} +2 -2
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-BawlEAd_.mjs → opaqueSurface-Yltv_u7r.mjs} +1 -1
- package/dist/server/{overrideResolution-CDReKy2P.mjs → overrideResolution-Z5pwH-kz.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-ByVTA7-4.mjs → pageRenderPlan-DQAo35og.mjs} +9 -8
- package/dist/server/{pageRuntimeSupport-Dzz_Dze6.mjs → pageRuntimeSupport-g-K-FCHa.mjs} +2 -2
- package/dist/server/{pageShared-Dk5Ku6hs.mjs → pageShared-7mPhqqXX.mjs} +345 -289
- package/dist/server/{parseThemeForPersistence-pJPGfMrf.mjs → parseThemeForPersistence-BebSeE17.mjs} +1 -1
- package/dist/server/{prebuild-CW4M0WEZ.mjs → prebuild-C0m4KOT9.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Bvx0SiIM.mjs → prefetchBlockData-DcLKHfHG.mjs} +2 -2
- package/dist/server/{registry-Bh0Y25zH.mjs → registry-7_0_lUrh.mjs} +305 -844
- 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/islandDelivery.script.mjs +19 -0
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-CnHHst9r.mjs → resolveBlockData-q3WnpvyZ.mjs} +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -2
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{validation-D2bHWSxJ.mjs → validation-CSMS6XmP.mjs} +4 -4
- package/dist/server/{version-DkM1eAxG.mjs → version-DWeqmTXc.mjs} +1 -1
- package/dist/styles/index.css +15 -3
- package/package.json +10 -6
- package/dist/client/BlocksIslandsHydrator-DcwEaliO.mjs +0 -296
- package/dist/client/creditProducts-BOWi1QLp.mjs +0 -62
- package/dist/client/eventCombined-DoSi8p_l.mjs +0 -28
- package/dist/client/eventListing-CkiMjl0g.mjs +0 -29
- package/dist/client/reactMount-BGJVsHRb.mjs +0 -28
- package/dist/client/runtimeResponse-BP-L6exS.mjs +0 -3
- package/dist/client/src-CdRISvQp.mjs +0 -3
- package/dist/preview-next/client/src-BP8771hw.mjs +0 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { I as resolveTokenOrCssColorValue, N as isCssColorLiteral, P as resolveOnColorForThemeToken, nt as getTextColorForBackground } from "./accessibleSurfaces-
|
|
2
|
+
import { Ft as CardListContentPart, It as CardListLeadDate, Kt as formatEventPrice, Lt as resolveCardListSchedule, Rt as selectCardListPresentation } from "./shop.interactive-BH0xDlMF.mjs";
|
|
3
|
+
import { Gi as listLookSlot, Rn as eventDateOptions, Ui as listItemPresentation, Un as formatEventCompactDateRail, er as formatEventRemainingPlaces, ir as getEventAvailabilityStatus, qn as formatEventTimeRange } from "./display-DDNmyb0z.mjs";
|
|
4
|
+
import { I as resolveTokenOrCssColorValue, N as isCssColorLiteral, P as resolveOnColorForThemeToken, nt as getTextColorForBackground } from "./accessibleSurfaces-_7jkuinl.mjs";
|
|
5
5
|
import { i as ThemedButtonLink, m as ClockIcon } from "./ThemedButton-BdnEwA38.mjs";
|
|
6
|
-
import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-
|
|
6
|
+
import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-CfuyGqXL.mjs";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region ../blocks/src/system/runtime/nodes/events/domain/people.ts
|
package/dist/client/{EventListWeekNavigation-a0QEIEf0.mjs → EventListWeekNavigation-DTsVU6gc.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Gi as listLookSlot } from "./display-DDNmyb0z.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventListWeekNavigation.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-
|
|
4
|
-
import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-
|
|
2
|
+
import { Ot as buildEventRuntimeFilters } from "./shop.interactive-BH0xDlMF.mjs";
|
|
3
|
+
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-DTsVU6gc.mjs";
|
|
4
|
+
import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-spj7sGQP.mjs";
|
|
5
5
|
import { useMemo } from "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region ../blocks/src/system/runtime/nodes/events/EventListing.client.tsx
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Gt as weekColumnDays, Kt as formatEventPrice, zt as MediaNodeServer } from "./shop.interactive-BH0xDlMF.mjs";
|
|
3
|
+
import { $a as runtimeBoxBackgroundSchema, Gi as listLookSlot, Kn as formatEventNextDateFact, Qa as boxBackgroundSchema, Rn as eventDateOptions, Ui as listItemPresentation, Un as formatEventCompactDateRail, Vn as formatDate, Za as boxBackgroundOverlaySchema, ao as itemRoleValues, io as cardVariantRoleValues, oo as openCardRoleValue, qn as formatEventTimeRange, to as boxlessCardVariantValue, wn as ImagePresets, zn as eventLocalDateKey } from "./display-DDNmyb0z.mjs";
|
|
4
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-
|
|
6
|
-
import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-
|
|
7
|
-
import { c as MapPinIcon, l as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-
|
|
5
|
+
import { n as resolveEventCta, r as resolveEventLinkProps, t as resolveEventCardBooking } from "./cta-CfuyGqXL.mjs";
|
|
6
|
+
import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-DDWfmgpA.mjs";
|
|
7
|
+
import { c as MapPinIcon, l as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-OpLehMpT.mjs";
|
|
8
8
|
import "react";
|
|
9
|
-
import { z } from "zod";
|
|
10
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { z } from "zod";
|
|
11
11
|
z.enum(itemRoleValues);
|
|
12
12
|
z.enum(cardVariantRoleValues);
|
|
13
13
|
function isCardVariantRole(value) {
|
package/dist/client/{EventRegistrationPayment-D9YBNb_E.mjs → EventRegistrationPayment-CqH3hE-k.mjs}
RENAMED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { a as siteTermsFailureKind, o as useSiteTermsAgreement, s as eventSiteTermsSurface } from "./DemoBookingPortalAccess-
|
|
2
|
+
import { A as createInitialRegistrationFlowState, Ai as leavePage, Ct as getTicketSelectionRemainingPlaces, Dt as withRegistrationAvailability, E as registrationRoute, Et as shouldLoadRegistrationOptions, F as buildEventRegistrationPaymentOptionsViewModel, H as planRegistrationDetailsContinuation, Hr as decideBookingQuestionsRestoration, Ht as getPortalSubjectEmail, I as decideEventRegistrationPayment, J as visitorHoldsOwnPlace, K as resolveRegistrationTicketContinuation, Kt as transformRegistrationOptionsResponse, M as getDeclinedPass, Mi as requestSignIn, N as isRegistrationLocked, Oi as PAGE_NAVIGATION, Ot as registrationQuestionsMessage, P as registrationFlowReducer, Po as publicEventPricingStrategy, Pt as findSelectedTicketType, Q as resolveEventRegistrationSubmitPlan, Qt as getTicketSelectionTotal, Ri as resolveEventRegistrationScopedEvents, So as resolveBookingSignupOffer, St as getSlidingScaleSelectionMessage, T as registrationPresentation, Tt as resolveHeldTicketPlaces, U as resolveGuestNextStepCheck, Ur as deriveBookingQuestions, V as planRegistrationDetailsCheck, Vr as bookingQuestionsPaymentSnapshotSchema, Vt as getImplicitSingleTicketType, W as resolveRegistrationAdmission, Wr as needsBookingQuestionsRefresh, Wt as getVisibleTicketTypes, Xt as getSingleSelectedPricingOptionId, _t as formatCentsAsCurrencyInput, bt as getRegistrationOccurrenceId, cn as eventSignInDraftStore, ct as findPreSelectedEvent, dn as toEventSignInDraft, dt as resolveRegistrationTarget, en as hasValidPricingOptionSelection, ft as resolveRouteRequiresPayment, gt as invitationSubmission, ht as createRegistrationDraftData, in as toRegistrationEvents, j as decideEventChoice, kt as validateFormData, ln as eventSignInEnds, lt as resolveDiscountContext, mt as beginWaitlistInvitation, on as toWholeSeriesRegistrationEvents, pt as toRegistrationRequestSubject, qr as toBookingQuestionsPaymentSnapshot, rn as getRegistrationStartAt, rt as calculateEventRegistrationPreviewTotal, sn as EVENT_SIGN_IN_FORM_ID, tn as normalizeTicketSelectionLines, un as eventSignInRestoration, ut as resolveEventRequiresPayment, vt as getCurrentTicketSelection, w as registrationPaymentRoute, wt as parseCurrencyInputToCents, xt as getSlidingScaleForEvent, yt as getEligibilityFlowFlags, z as getTicketSelectionPurpose } from "./display-DDNmyb0z.mjs";
|
|
3
|
+
import { Zt as resolveBookingBusinessTimeZone, zt as inferSiteDateLocale } from "./noop-B_f7RqLD.mjs";
|
|
4
|
+
import { c as checkBookingQuestionsAnswered, h as assertNever } from "./creditProducts-CMOmhWm2.mjs";
|
|
5
|
+
import { a as siteTermsFailureKind, o as useSiteTermsAgreement, s as eventSiteTermsSurface } from "./DemoBookingPortalAccess-Cilv5zdS.mjs";
|
|
6
6
|
import { t as generateUuidV4 } from "./uuid-BETKW8rS.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { i as BlockApiError, n as useBlockApi } from "./context-Xhf81Q-c.mjs";
|
|
8
|
+
import { t as resolveDedicatedBookingHref } from "./bookingRoute-D6DlxYx6.mjs";
|
|
9
|
+
import { i as useBookingNowIso, r as parseBookingSubmissionFailure } from "./BookingQuestionFields-LLGCWjvU.mjs";
|
|
10
|
+
import { t as useDiscountCodeUi } from "./useDiscountCodeUi-CD82QX5i.mjs";
|
|
11
|
+
import { a as usePolling, c as useBookingQuestionsRefresh, o as portalSessionIdentity, s as useSignInReturn } from "./BookingMailingListNote-Br1VyHkP.mjs";
|
|
11
12
|
import { n as EVENT_REGISTRATION_CHECKOUT_ATTEMPT_PARAM, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
12
|
-
import { o as storeDemoBookingPass, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-
|
|
13
|
+
import { o as storeDemoBookingPass, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-DQtwf_s2.mjs";
|
|
13
14
|
import { Suspense, lazy, useCallback, useEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
14
|
-
import { z } from "zod";
|
|
15
15
|
import { jsx } from "react/jsx-runtime";
|
|
16
|
+
import { z } from "zod";
|
|
16
17
|
//#region ../commerce/src/purchase/event-registration-errors.ts
|
|
17
18
|
const eventRegistrationErrors = {
|
|
18
19
|
invalidAnswers: {
|
|
@@ -145,32 +146,6 @@ function logoutPortal(anchorId) {
|
|
|
145
146
|
form.submit();
|
|
146
147
|
}
|
|
147
148
|
//#endregion
|
|
148
|
-
//#region ../blocks/src/system/runtime/nodes/event-registration/useRegistrationAdmission.ts
|
|
149
|
-
/** Owns admission and its navigation commands; renderers receive decisions. */
|
|
150
|
-
function useRegistrationAdmission(input) {
|
|
151
|
-
const { admission, isAuthenticated, dispatchFlow } = input;
|
|
152
|
-
const ticketContinuation = resolveRegistrationTicketContinuation({
|
|
153
|
-
admission,
|
|
154
|
-
ticketSelectionRequired: input.ticketSelectionRequired,
|
|
155
|
-
hasValidTicketSelection: input.hasValidTicketSelection,
|
|
156
|
-
isCheckingExistingRegistration: isAuthenticated && input.existingRegistrationLoading
|
|
157
|
-
});
|
|
158
|
-
const handleTicketsComplete = () => {
|
|
159
|
-
if (ticketContinuation.kind === "blocked") return {
|
|
160
|
-
ok: false,
|
|
161
|
-
reason: "blocked",
|
|
162
|
-
message: ticketContinuation.message
|
|
163
|
-
};
|
|
164
|
-
dispatchFlow({ type: "tickets-completed" });
|
|
165
|
-
return { ok: true };
|
|
166
|
-
};
|
|
167
|
-
return {
|
|
168
|
-
admission,
|
|
169
|
-
ticketContinuation,
|
|
170
|
-
handleTicketsComplete
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
//#endregion
|
|
174
149
|
//#region ../blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.ts
|
|
175
150
|
function resolveRegistrationRecoveryAction(step, action) {
|
|
176
151
|
if (step === "payment-failed") return "payment-options";
|
|
@@ -193,36 +168,113 @@ function resetRegistrationAfterExpiry(input) {
|
|
|
193
168
|
input.setErrorMessage("");
|
|
194
169
|
}
|
|
195
170
|
/** Retry the retained submission in place; explicit payment uncertainty stays status-only. */
|
|
196
|
-
function recoverRegistrationError(action, handlers) {
|
|
171
|
+
function recoverRegistrationError(action, handlers, navigation) {
|
|
197
172
|
switch (action) {
|
|
198
|
-
case "none": return;
|
|
199
|
-
case "portal":
|
|
200
|
-
|
|
201
|
-
return;
|
|
202
|
-
case "event":
|
|
203
|
-
window.location.assign(window.location.pathname);
|
|
204
|
-
return;
|
|
173
|
+
case "none": return { kind: "navigated" };
|
|
174
|
+
case "portal": return leavePage(CUSTOMER_PORTAL_PATH, navigation);
|
|
175
|
+
case "event": return leavePage(window.location.pathname, navigation);
|
|
205
176
|
case "retry":
|
|
206
177
|
handlers.clearError();
|
|
207
178
|
handlers.setStep("select-payment");
|
|
208
|
-
return;
|
|
179
|
+
return { kind: "navigated" };
|
|
209
180
|
case "details":
|
|
210
181
|
handlers.clearError();
|
|
211
182
|
handlers.setStep("enter-details");
|
|
212
|
-
return;
|
|
183
|
+
return { kind: "navigated" };
|
|
213
184
|
case "payment-options":
|
|
214
185
|
case "places":
|
|
215
186
|
handlers.refreshOptions();
|
|
216
187
|
handlers.clearError();
|
|
217
188
|
handlers.setStep(action === "places" ? handlers.canJoinWaitlist ? "enter-details" : "select-tickets" : "select-payment");
|
|
218
|
-
return;
|
|
189
|
+
return { kind: "navigated" };
|
|
219
190
|
case "start":
|
|
220
191
|
handlers.refreshOptions();
|
|
221
192
|
handlers.reset();
|
|
222
|
-
return;
|
|
193
|
+
return { kind: "navigated" };
|
|
223
194
|
}
|
|
224
195
|
}
|
|
225
196
|
//#endregion
|
|
197
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/useRegistrationNavigation.ts
|
|
198
|
+
function signInBookingPath(target) {
|
|
199
|
+
const subject = target?.subject;
|
|
200
|
+
return resolveDedicatedBookingHref("/", subject?.kind === "wholeSeries" ? {
|
|
201
|
+
kind: "event_series",
|
|
202
|
+
eventId: subject.eventSeriesId
|
|
203
|
+
} : subject ? {
|
|
204
|
+
kind: "event_occurrence",
|
|
205
|
+
occurrenceId: subject.occurrenceId
|
|
206
|
+
} : { kind: "chooser" });
|
|
207
|
+
}
|
|
208
|
+
/** Presentation state for leaving the frame stays outside registration's state machine. */
|
|
209
|
+
function useRegistrationNavigation(input) {
|
|
210
|
+
const navigation = input.pageNavigation ?? PAGE_NAVIGATION;
|
|
211
|
+
const [showMagicLinkModal, openMagicLinkModal] = useState(false);
|
|
212
|
+
const [handOff, setHandOff] = useState(null);
|
|
213
|
+
const returnPath = signInBookingPath(input.target);
|
|
214
|
+
const changeSignInVisibility = useCallback((show) => {
|
|
215
|
+
if (!show) {
|
|
216
|
+
openMagicLinkModal(false);
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
const outcome = requestSignIn(returnPath, () => openMagicLinkModal(true), navigation);
|
|
220
|
+
if (outcome.kind === "handOff") setHandOff({
|
|
221
|
+
...outcome,
|
|
222
|
+
purpose: "signIn"
|
|
223
|
+
});
|
|
224
|
+
}, [navigation, returnPath]);
|
|
225
|
+
const recover = (action, handlers) => {
|
|
226
|
+
receiveHandOff(recoverRegistrationError(action, handlers, navigation), setHandOff);
|
|
227
|
+
};
|
|
228
|
+
return {
|
|
229
|
+
showMagicLinkModal,
|
|
230
|
+
changeSignInVisibility,
|
|
231
|
+
recover,
|
|
232
|
+
interceptPaymentSelection: useCallback((selection) => {
|
|
233
|
+
if (navigation.kind === "page" || selection.method === null || selection.method === "stripe" || selection.method === "free") return false;
|
|
234
|
+
changeSignInVisibility(true);
|
|
235
|
+
return true;
|
|
236
|
+
}, [navigation, changeSignInVisibility]),
|
|
237
|
+
presentation: handOff ? {
|
|
238
|
+
handOff,
|
|
239
|
+
dismissHandOff: () => setHandOff(null),
|
|
240
|
+
handOffBusinessName: input.businessName,
|
|
241
|
+
handOffOfferingLabel: input.offeringNoun?.label
|
|
242
|
+
} : {}
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
function receiveHandOff(outcome, receive) {
|
|
246
|
+
if (outcome.kind === "handOff") receive({
|
|
247
|
+
...outcome,
|
|
248
|
+
purpose: "navigation"
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
//#endregion
|
|
252
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/useRegistrationAdmission.ts
|
|
253
|
+
/** Owns admission and its navigation commands; renderers receive decisions. */
|
|
254
|
+
function useRegistrationAdmission(input) {
|
|
255
|
+
const { admission, isAuthenticated, dispatchFlow } = input;
|
|
256
|
+
const ticketContinuation = resolveRegistrationTicketContinuation({
|
|
257
|
+
admission,
|
|
258
|
+
ticketSelectionRequired: input.ticketSelectionRequired,
|
|
259
|
+
hasValidTicketSelection: input.hasValidTicketSelection,
|
|
260
|
+
isCheckingExistingRegistration: isAuthenticated && input.existingRegistrationLoading
|
|
261
|
+
});
|
|
262
|
+
const handleTicketsComplete = () => {
|
|
263
|
+
if (ticketContinuation.kind === "blocked") return {
|
|
264
|
+
ok: false,
|
|
265
|
+
reason: "blocked",
|
|
266
|
+
message: ticketContinuation.message
|
|
267
|
+
};
|
|
268
|
+
dispatchFlow({ type: "tickets-completed" });
|
|
269
|
+
return { ok: true };
|
|
270
|
+
};
|
|
271
|
+
return {
|
|
272
|
+
admission,
|
|
273
|
+
ticketContinuation,
|
|
274
|
+
handleTicketsComplete
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
//#endregion
|
|
226
278
|
//#region ../blocks/src/system/runtime/nodes/event-registration/useEventRegistrationQuestions.ts
|
|
227
279
|
/** The event series is the booking target: its question set applies to every date. */
|
|
228
280
|
function eventTarget(event) {
|
|
@@ -417,18 +469,18 @@ function eligibilityLookupReducer(state, action) {
|
|
|
417
469
|
}
|
|
418
470
|
const initialExistingRegistrationLookupState = {
|
|
419
471
|
tag: "idle",
|
|
420
|
-
|
|
472
|
+
registrations: []
|
|
421
473
|
};
|
|
422
474
|
function existingRegistrationLookupReducer(state, action) {
|
|
423
475
|
switch (action.type) {
|
|
424
476
|
case "reset": return initialExistingRegistrationLookupState;
|
|
425
477
|
case "loading-started": return {
|
|
426
478
|
tag: "loading",
|
|
427
|
-
|
|
479
|
+
registrations: state.registrations
|
|
428
480
|
};
|
|
429
481
|
case "resolved": return {
|
|
430
482
|
tag: "resolved",
|
|
431
|
-
|
|
483
|
+
registrations: action.registrations
|
|
432
484
|
};
|
|
433
485
|
default: return assertNever(action);
|
|
434
486
|
}
|
|
@@ -622,13 +674,13 @@ function useExistingEventRegistrationWithDeps({ isAuthenticated, occurrenceId },
|
|
|
622
674
|
if (cancelled || requestIdRef.current !== requestId) return;
|
|
623
675
|
dispatch({
|
|
624
676
|
type: "resolved",
|
|
625
|
-
|
|
677
|
+
registrations: events.filter((event) => event.occurrenceId === occurrenceId && event.status !== "cancelled" && event.transferState !== "transferred_out")
|
|
626
678
|
});
|
|
627
679
|
} catch {
|
|
628
680
|
if (cancelled || requestIdRef.current !== requestId) return;
|
|
629
681
|
dispatch({
|
|
630
682
|
type: "resolved",
|
|
631
|
-
|
|
683
|
+
registrations: []
|
|
632
684
|
});
|
|
633
685
|
}
|
|
634
686
|
}
|
|
@@ -643,7 +695,7 @@ function useExistingEventRegistrationWithDeps({ isAuthenticated, occurrenceId },
|
|
|
643
695
|
]);
|
|
644
696
|
return {
|
|
645
697
|
state,
|
|
646
|
-
|
|
698
|
+
registrations: state.registrations,
|
|
647
699
|
isLoading: state.tag === "loading"
|
|
648
700
|
};
|
|
649
701
|
}
|
|
@@ -1897,6 +1949,14 @@ function useRegistrationEventSource(options) {
|
|
|
1897
1949
|
} : options.eventSource, [options.eventSource, scopedEvents])
|
|
1898
1950
|
};
|
|
1899
1951
|
}
|
|
1952
|
+
/** A signed-in booker's email is their verified identity, never a draft copy. */
|
|
1953
|
+
function useVerifiedFormData(draft, authState, profile) {
|
|
1954
|
+
const verifiedEmail = authState === "authenticated" ? profile?.email ?? null : null;
|
|
1955
|
+
return useMemo(() => verifiedEmail === null ? draft : {
|
|
1956
|
+
...draft,
|
|
1957
|
+
email: verifiedEmail
|
|
1958
|
+
}, [draft, verifiedEmail]);
|
|
1959
|
+
}
|
|
1900
1960
|
function useEventRegistrationWizardWithDeps(options, deps) {
|
|
1901
1961
|
const api = useBlockApi();
|
|
1902
1962
|
const arrivalCredential = deps.useWaitlistClaimCredential();
|
|
@@ -1914,7 +1974,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
1914
1974
|
}));
|
|
1915
1975
|
const step = flowState.step;
|
|
1916
1976
|
const paymentIntent = flowState.paymentSelection;
|
|
1917
|
-
const { selectedEvent, formData, guests, selectedAttendanceMode, selectedTicketLines, selectedSlidingAmountInput } = flowState.draft;
|
|
1977
|
+
const { selectedEvent, formData: draftFormData, guests, selectedAttendanceMode, selectedTicketLines, selectedSlidingAmountInput } = flowState.draft;
|
|
1918
1978
|
const setSelectedEvent = useCallback((value) => dispatchFlow({
|
|
1919
1979
|
type: "draft-edited",
|
|
1920
1980
|
edit: {
|
|
@@ -1972,6 +2032,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
1972
2032
|
const [submissionErrorAction, setErrorAction] = useState("retry");
|
|
1973
2033
|
const [optionsRefreshKey, setOptionsRefreshKey] = useState(0);
|
|
1974
2034
|
const { authState: portalAuthState, profile: portalProfile } = deps.usePortalAuth();
|
|
2035
|
+
const formData = useVerifiedFormData(draftFormData, portalAuthState, portalProfile);
|
|
1975
2036
|
const portalIdentity = portalSessionIdentity(api.config);
|
|
1976
2037
|
const waitlistClaim = flowState.invitation;
|
|
1977
2038
|
const claimLookup = deps.useWaitlistClaim(waitlistClaim.kind === "none" ? null : waitlistClaim.request);
|
|
@@ -1995,13 +2056,11 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
1995
2056
|
]);
|
|
1996
2057
|
const errorMessage = waitlistClaim.kind === "error" ? waitlistClaim.message : submissionErrorMessage;
|
|
1997
2058
|
const errorAction = waitlistClaim.kind === "error" ? waitlistClaim.action : submissionErrorAction;
|
|
1998
|
-
const [showMagicLinkModal, setShowMagicLinkModal] = useState(false);
|
|
1999
2059
|
const selectionLocked = isRegistrationLocked(step);
|
|
2000
2060
|
useEffect(() => {
|
|
2001
2061
|
if (selectionLocked || portalAuthState !== "authenticated" || !portalProfile) return;
|
|
2002
2062
|
setFormData((prev) => ({
|
|
2003
2063
|
...prev,
|
|
2004
|
-
email: portalProfile.email,
|
|
2005
2064
|
name: prev.name || portalProfile.name,
|
|
2006
2065
|
phone: prev.phone || portalProfile.phone || ""
|
|
2007
2066
|
}));
|
|
@@ -2012,6 +2071,13 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
2012
2071
|
selectedEvent
|
|
2013
2072
|
}), [options.occurrenceContext, selectedEvent]);
|
|
2014
2073
|
const registrationOccurrenceId = getRegistrationOccurrenceId(registrationTarget);
|
|
2074
|
+
const registrationNavigation = useRegistrationNavigation({
|
|
2075
|
+
pageNavigation: options.pageNavigation,
|
|
2076
|
+
target: registrationTarget,
|
|
2077
|
+
businessName: options.siteName,
|
|
2078
|
+
offeringNoun: options.offeringNoun
|
|
2079
|
+
});
|
|
2080
|
+
const { showMagicLinkModal, changeSignInVisibility: setShowMagicLinkModal, interceptPaymentSelection } = registrationNavigation;
|
|
2015
2081
|
const currentEvent = selectedEvent ?? preSelectedEvent;
|
|
2016
2082
|
const commandRef = useRef(null);
|
|
2017
2083
|
const setStep = useCallback((nextStep) => {
|
|
@@ -2067,6 +2133,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
2067
2133
|
isAuthenticated: portalAuthState === "authenticated",
|
|
2068
2134
|
occurrenceId: registrationOccurrenceId
|
|
2069
2135
|
});
|
|
2136
|
+
const existingRegistrations = useMemo(() => existingRegistrationResult.registrations.filter((registration) => registration.occurrenceId === registrationOccurrenceId), [existingRegistrationResult.registrations, registrationOccurrenceId]);
|
|
2070
2137
|
const eligibility = eligibilityResult.eligibility;
|
|
2071
2138
|
const eligibilityLoading = eligibilityResult.isLoading;
|
|
2072
2139
|
const eligibilityError = eligibilityResult.error;
|
|
@@ -2488,7 +2555,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
2488
2555
|
commandRef.current = null;
|
|
2489
2556
|
setOptionsRefreshKey((value) => value + 1);
|
|
2490
2557
|
};
|
|
2491
|
-
const handleRetry = () =>
|
|
2558
|
+
const handleRetry = () => registrationNavigation.recover(resolveRegistrationRecoveryAction(step, errorAction), {
|
|
2492
2559
|
canJoinWaitlist: admission.kind === "waitlist",
|
|
2493
2560
|
refreshOptions: () => setOptionsRefreshKey((value) => value + 1),
|
|
2494
2561
|
clearError: () => setErrorMessage(""),
|
|
@@ -2507,11 +2574,12 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
2507
2574
|
}
|
|
2508
2575
|
});
|
|
2509
2576
|
const handlePaymentSelectionChange = useCallback((selection) => {
|
|
2577
|
+
if (interceptPaymentSelection(selection)) return;
|
|
2510
2578
|
dispatchFlow({
|
|
2511
2579
|
type: "set-manual-payment-selection",
|
|
2512
2580
|
selection
|
|
2513
2581
|
});
|
|
2514
|
-
}, []);
|
|
2582
|
+
}, [interceptPaymentSelection]);
|
|
2515
2583
|
const presentation = presentWizardStep({
|
|
2516
2584
|
step,
|
|
2517
2585
|
flow: flowState,
|
|
@@ -2530,7 +2598,9 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
2530
2598
|
ticketsCount,
|
|
2531
2599
|
paymentMethod: paymentSelection.method
|
|
2532
2600
|
});
|
|
2601
|
+
const displayEvent = withRegistrationAvailability(currentEvent, eligibilityLoading ? null : eligibility, selectedAttendanceMode);
|
|
2533
2602
|
return {
|
|
2603
|
+
...registrationNavigation.presentation,
|
|
2534
2604
|
api,
|
|
2535
2605
|
nowIso,
|
|
2536
2606
|
directPaymentOptions,
|
|
@@ -2542,7 +2612,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
2542
2612
|
events,
|
|
2543
2613
|
maxTicketsNum: waitlistClaim.kind === "ready" ? waitlistClaim.restoration.ticketsCount : options.maxTicketsNum,
|
|
2544
2614
|
scopedEvents,
|
|
2545
|
-
preSelectedEvent,
|
|
2615
|
+
preSelectedEvent: preSelectedEvent?.selectionId === currentEvent?.selectionId ? displayEvent : preSelectedEvent,
|
|
2546
2616
|
hasPreSelectedContext,
|
|
2547
2617
|
presentation,
|
|
2548
2618
|
flow: flowState,
|
|
@@ -2553,7 +2623,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
2553
2623
|
admission,
|
|
2554
2624
|
ticketContinuation,
|
|
2555
2625
|
handleTicketsComplete,
|
|
2556
|
-
selectedEvent,
|
|
2626
|
+
selectedEvent: selectedEvent ? displayEvent : null,
|
|
2557
2627
|
setSelectedEvent: (value) => {
|
|
2558
2628
|
if (!selectionLocked) setSelectedEvent(value);
|
|
2559
2629
|
},
|
|
@@ -2628,7 +2698,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
2628
2698
|
registrationOptionsState: eligibilityResult.state,
|
|
2629
2699
|
eligibilityLoading: eligibilityLoading || checkingNextStep,
|
|
2630
2700
|
eligibilityError,
|
|
2631
|
-
|
|
2701
|
+
existingRegistrations,
|
|
2632
2702
|
existingRegistrationLoading: existingRegistrationResult.isLoading || portalAuthState === "authenticated" && eligibilityLoading,
|
|
2633
2703
|
existingRegistrationState: existingRegistrationResult.state,
|
|
2634
2704
|
registrationState,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Tt as normalizeLocationAddressText } from "./noop-B_f7RqLD.mjs";
|
|
3
3
|
import { i as ThemedButtonLink } from "./ThemedButton-BdnEwA38.mjs";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { jt as mapDrawingSchema } from "./noop-B_f7RqLD.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
|