@riverbankcms/sdk 0.158.0 → 0.160.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -6
- package/dist/_dts/{BlocksIslandsHydrator-BgNBtEai.d.ts → BlocksIslandsHydrator-CoqeotCL.d.ts} +1 -1
- package/dist/_dts/{Page-DpCo8zXD.d.ts → Page-C0ENVLCF.d.ts} +13 -6
- package/dist/_dts/{SdkPreviewMode-Bv2TMscG.d.ts → SdkPreviewMode-jZK0A49V.d.ts} +54 -126
- package/dist/_dts/{client-B960v2gW.d.ts → client-uMMuPq9V.d.ts} +23 -1
- package/dist/_dts/{content-types-CN0Wy8V6.d.ts → content-types-D6nXGqdQ.d.ts} +18 -18
- package/dist/_dts/{contracts-BFUrby76.d.ts → contracts-Bnmj1nxu.d.ts} +6 -5
- package/dist/_dts/{footerPageOutline-CmoqleLS.d.ts → footerPageOutline-CeLjFX8b.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-Dkvivc3R.d.ts → generatePageMetadata-nyU8q02J.d.ts} +5 -2
- package/dist/_dts/{index-DPfI2t5A.d.ts → index-BaaGBY1v.d.ts} +2 -2
- package/dist/_dts/{index-DCNu_8it.d.ts → index-Bg64CkV-.d.ts} +4 -4
- package/dist/_dts/index-Blwl7yl6.d.ts +13 -0
- package/dist/_dts/{index-DaS_z6ir.d.ts → index-C5xslEBn.d.ts} +2 -2
- package/dist/_dts/{index-DpgkhY-a.d.ts → index-CEaKil7G.d.ts} +2 -2
- package/dist/_dts/{index-Ba6RmuxX.d.ts → index-DahMwisK.d.ts} +3 -3
- package/dist/_dts/index-lkpjIg5i.d.ts +66 -0
- package/dist/_dts/{index-DfkFWUxt.d.ts → index-nVoi_74l.d.ts} +2 -2
- package/dist/_dts/{loadContent-DvvKF4nB.d.ts → loadContent-CYLmzvLq.d.ts} +16 -7
- package/dist/_dts/{resolvePageContent-D0lGwVD6.d.ts → resolvePageContent-DqnxChOs.d.ts} +2 -2
- package/dist/_dts/{constants-DkcKHMX-.d.ts → runtime-BY8DQBbT.d.ts} +10 -16
- package/dist/_dts/{hosted-booking-appearance-BIbit60h.d.ts → schema-D0bNcPWK.d.ts} +6921 -6768
- 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 +12 -6
- 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/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +6 -6
- package/dist/_dts/sdk/src/metadata/index.d.ts +8 -2
- 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 +10 -28
- 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/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/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-BJrRUaY7.d.ts → types-CFrYuXYP.d.ts} +2 -2
- package/dist/_dts/{navigation-n-eTVTIQ.d.ts → types-D8czmbQF.d.ts} +15430 -16836
- package/dist/_dts/{types-BY7PgnDi.d.ts → types-DSgmJ15W.d.ts} +7 -7
- package/dist/_dts/{types-maEnXL6Z.d.ts → types-Dm-KW7nj.d.ts} +10 -13
- package/dist/_dts/{validation-BjuVrMrs.d.ts → validation-Bmb4WnHg.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-WRLS96Ev.mjs → BlocksIslandsHydrator-DZRKi6tT.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-eovghMPa.mjs → BookingMailingListNote-C00sLLdL.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-CIcMQRc1.mjs → CalendarNavigationChevron-CHSi9b3E.mjs} +6 -6
- package/dist/client/{CheckboxChoice-BF9eCNno.mjs → CheckboxChoice-Bhm6RAUL.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-CdnFgDyQ.mjs → DemoBookingPortalAccess-CaN-7ui7.mjs} +6 -6
- package/dist/client/{DemoPortalSignInLink-DHxYgkT6.mjs → DemoPortalSignInLink-ClxN5_xZ.mjs} +1 -1
- package/dist/client/{EventCalendar.client-Dc-ZLxKo.mjs → EventCalendar.client-BncvSa1n.mjs} +10 -9
- package/dist/client/{EventCombined.client-C93XqRIv.mjs → EventCombined.client-DluBxVVu.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-B3XUyNY9.mjs → EventEmbeddedCheckoutStep-BiJrMtfp.mjs} +1 -1
- package/dist/client/{EventItem-DnCTygqk.mjs → EventItem-CXhnT9pF.mjs} +11 -6
- package/dist/client/{EventListWeekNavigation-9h97heuQ.mjs → EventListWeekNavigation-V-dtoDlD.mjs} +1 -1
- package/dist/client/{EventListing.client-DFKlQvvs.mjs → EventListing.client-DPO6SZbx.mjs} +3 -3
- package/dist/client/{EventListing.view-pAuTDyrP.mjs → EventListing.view-B-Yi5JZS.mjs} +7 -7
- package/dist/client/{EventRegistrationPayment-rgKlBvhP.mjs → EventRegistrationPayment-Dc3Fnlnw.mjs} +189 -176
- package/dist/client/{LeafletStaticMap-3XiWSgy0.mjs → LeafletStaticMap-ClZCCzAm.mjs} +1 -1
- package/dist/client/{Page-BmpeAwID.mjs → Page-7PkzO04N.mjs} +1949 -2074
- package/dist/client/{StepIndicator-qEq6X5zP.mjs → StepIndicator-DiD6euZ8.mjs} +3 -3
- package/dist/client/{TabBarFragment-DvzIV75f.mjs → TabBarFragment-BHd8GN8y.mjs} +1 -1
- package/dist/client/{ThemedButton-DVBC_pS9.mjs → ThemedButton-C22C9cCF.mjs} +174 -93
- package/dist/client/{accordion-DeObOasQ.mjs → accordion-2m27DsIk.mjs} +1 -1
- package/dist/client/{booking-form.client-DfWeF0lj.mjs → booking-form.client-BddWV5w1.mjs} +12 -12
- package/dist/client/{bookingForm-TnzIBHx2.mjs → bookingForm-bcdXQjmw.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{carousel-kkFnbr5Z.mjs → carousel-D7nj9I0y.mjs} +2 -2
- package/dist/client/{carousel.client-BJGoJVtg.mjs → carousel.client-AffDJo_s.mjs} +1 -1
- package/dist/client/{cart-BAXNbFux.mjs → cart-PN6yCw1H.mjs} +3 -3
- package/dist/client/{cart.client-BczxUF70.mjs → cart.client-D4t1f0cJ.mjs} +1 -1
- package/dist/client/{checkout-C5NRhPeP.mjs → checkout-CsTwXVSb.mjs} +3 -3
- package/dist/client/{checkout.client-BuDk3Td9.mjs → checkout.client-BhQE3zY7.mjs} +1 -1
- package/dist/client/client.mjs +25 -13
- package/dist/client/{context-CVsgML69.mjs → context-BLAvalAa.mjs} +1 -1
- package/dist/client/{cta-BWnUuJce.mjs → cta-CUXhX_D7.mjs} +2 -1
- package/dist/client/dateFormatting-BHIHxNuo.mjs +61 -0
- package/dist/client/{demoPortalMagicLink-CUlwvmxf.mjs → demoPortalMagicLink-R-awbk_0.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-Cw8nnFj-.mjs → enhanceHeaderSection-9Q93uvTo.mjs} +3 -3
- package/dist/client/{event-details.client-Bl0E_6Vi.mjs → event-details.client-BS1WtG-a.mjs} +2 -2
- package/dist/client/{event-registration.client-DmfLg_LC.mjs → event-registration.client-BXndwsET.mjs} +35 -21
- package/dist/client/{eventCalendar-D1Dwb9VA.mjs → eventCalendar-HyoOt1Qz.mjs} +4 -4
- package/dist/client/{eventCombined-DfsqY1qR.mjs → eventCombined-sdG5oEaH.mjs} +4 -4
- package/dist/client/{eventDetails-BmugDVoa.mjs → eventDetails-FFAknE4w.mjs} +2 -2
- package/dist/client/{eventListing-BPAGJi3C.mjs → eventListing-CGK6urk3.mjs} +4 -4
- package/dist/client/{eventRegistration-DBlz_x6u.mjs → eventRegistration-VhrvCs4l.mjs} +4 -4
- package/dist/client/{form-DVu3ZMjx.mjs → form-C-B5O_ko.mjs} +3 -3
- package/dist/client/{form.client-QZUyABIY.mjs → form.client-DoZVcl8d.mjs} +5 -5
- package/dist/client/{form.parts-Bs0F3v08.mjs → form.parts-mttKpgif.mjs} +3 -3
- package/dist/client/{formatDate-BD9D3dgo.mjs → formatDate-xUSCknEO.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-BQwWW4Yy.mjs → headerSection-BHUEXsaI.mjs} +2 -2
- package/dist/client/{location-map.client-upKuwABk.mjs → location-map.client-Cylb_MHw.mjs} +2 -2
- package/dist/client/{location-map.view-RuBCD10O.mjs → location-map.view-Cx4Bl7ij.mjs} +69 -6
- package/dist/client/{locationMap-1sCbsk0V.mjs → locationMap-QnKJi-nZ.mjs} +2 -2
- package/dist/client/{newsletter-form.client-DBTU3oNv.mjs → newsletter-form.client-D_n0rftg.mjs} +8 -8
- package/dist/client/{newsletter-form.parts-C9I9JBhe.mjs → newsletter-form.parts-DKHye4IE.mjs} +2 -2
- package/dist/client/{newsletterForm-DTPtTxxG.mjs → newsletterForm-tEaYelzx.mjs} +3 -3
- package/dist/client/{noop-DMFt3KdC.mjs → noop-B610YKEx.mjs} +12 -5
- package/dist/client/portal/client.mjs +4562 -174
- package/dist/client/{product-detail.client-BX7M5o6p.mjs → product-detail.client-DUf5x5Jt.mjs} +1 -1
- package/dist/client/{product-list.client-i32QNY4c.mjs → product-list.client-Cqp1BPTV.mjs} +1 -1
- package/dist/client/{productDetail-DWjE9zm7.mjs → productDetail-B8bBiogP.mjs} +3 -3
- package/dist/client/{productList-DZH9_brv.mjs → productList-BKN4D-1z.mjs} +3 -3
- package/dist/client/{propsDecoder-CTzHkEkh.mjs → propsDecoder-2nNZh2Oe.mjs} +3 -3
- package/dist/client/{registry.server-vJ5FlscU.mjs → registry.server-BAm4RPNJ.mjs} +856 -872
- package/dist/client/rendering/client.mjs +27 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +47 -28
- package/dist/client/{richText-coerce-DXAmC72p.mjs → richText-coerce-Cv-qomNB.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CmC7ygin.mjs → routeIslandApiConfig-C5u8MbAA.mjs} +1 -1
- package/dist/client/{shop-C7eL3B37.mjs → shop-DZNC0VKk.mjs} +3 -3
- package/dist/client/{shop-commerce-D8oRN0QJ.mjs → shop-commerce-DdX4LSa3.mjs} +12 -12
- package/dist/client/{shop-commerce-store-CRnQ4M18.mjs → shop-commerce-store-BJtrZov9.mjs} +1 -1
- package/dist/client/{shop.client-X6d6KVmA.mjs → shop.client-DmDd-igg.mjs} +16 -15
- package/dist/client/{shop.interactive-DBMeM8VD.mjs → shop.interactive-5SnnDHz3.mjs} +402 -35
- package/dist/client/{shopShared-Y182kN_s.mjs → shopShared-CPqUlAh9.mjs} +2 -2
- package/dist/client/{src-7cXhT0G_.mjs → src-VIsPY-kw.mjs} +6 -1
- package/dist/client/timetableModel-C19rcHEw.mjs +960 -0
- package/dist/client/{useAvailableSlots-BDV6MHgJ.mjs → useAvailableSlots-BjbJXotk.mjs} +3 -3
- package/dist/client/{useBookingNowIso-DgJEv3ZY.mjs → useBookingNowIso-CMgfL7YJ.mjs} +1 -1
- package/dist/client/{useDiscountApply-BTu9EeT7.mjs → useDiscountApply-KG8jB7WC.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-BfZxdxI-.mjs → useDiscountCodeUi-DK2w_i0a.mjs} +1 -1
- package/dist/client/{useEventPagination-pnvdHGeQ.mjs → useEventPagination-DW6MCirb.mjs} +11 -10
- package/dist/client/uuid-BETKW8rS.mjs +12 -0
- package/dist/client/{view-hJr_L4QC2.mjs → view-CkUn3Y0Y.mjs} +4 -4
- package/dist/client/{view-BPEa6Okm.mjs → view-CseyBW07.mjs} +15 -70
- package/dist/client/{wizardSteps-HdyGoIG3.mjs → wizardSteps-zgq10lN1.mjs} +262 -65
- package/dist/preview-next/before-render.mjs +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-BFlBqSu4.mjs → EventEmbeddedCheckoutStep-lUHBrzHv.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-CXRUbqMp.mjs → PreviewEditorSidebar-DWyUGCAG.mjs} +1217 -107
- package/dist/preview-next/client/{PreviewEditorUI-CxjEV0Fm.mjs → PreviewEditorUI-Wq0b3Daw.mjs} +52 -79
- package/dist/preview-next/client/{SdkPreviewModeRuntime-XdQSGGj_.mjs → SdkPreviewModeRuntime-BtZPcwYV.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BxI12BBS.mjs → SdkPreviewModeRuntime-wSI_R361.mjs} +720 -2035
- package/dist/preview-next/client/{SiteChromeCustomizeContext-CfRQRwpH.mjs → SiteChromeCustomizeContext-Hc4pYnNe.mjs} +14365 -8155
- package/dist/preview-next/client/{ThemedButton-BEOPss9H.mjs → ThemedButton-DzeycIlD.mjs} +204 -93
- package/dist/preview-next/client/{previewChromeSurface-CH7hd5n7.mjs → previewChromeSurface-Corq4AG7.mjs} +3 -8
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-C6xEU1LI.mjs → sdk-runtime-CWymRWhK.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +1359 -0
- package/dist/preview-next/client/{spinner-BTf1CZmy.mjs → spinner-C4If5Y-O.mjs} +1 -1
- package/dist/preview-next/editor-base.css +62 -0
- package/dist/preview-next/editor-chrome.css +85 -0
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DM22uOXM.mjs → route-contract-8csADeIT.mjs} +149 -112
- package/dist/server/{Block.shared-DLoilC2J.mjs → Block.shared-D1_gonwM.mjs} +6 -6
- package/dist/server/{bindings-C7DKLVx_.mjs → bindings-CFmJg5lm.mjs} +2 -2
- package/dist/server/{client-CU4wlMLE.mjs → client-DPsi0Dai.mjs} +9 -7
- package/dist/server/config-template-validation.mjs +50 -10
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{generatePageMetadata-CPvssVOp.mjs → generatePageMetadata-DB_lbrZ7.mjs} +28 -2
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-DmQ4BiiQ.mjs → loadContent-RMCcuVU_.mjs} +33 -20
- package/dist/server/loadPage-DUPP51C-.mjs +2 -0
- package/dist/server/{loadPage-BBkDQA57.mjs → loadPage-DhDGzj7t.mjs} +8 -5
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/metadata.mjs +2 -2
- package/dist/server/next.mjs +13 -12
- package/dist/server/{overrideResolution-ByeAbLSO.mjs → overrideResolution-OxY5FMuy.mjs} +1 -1
- package/dist/server/{overrides-BcA6ZPWf.mjs → overrides-Bz_A6sB9.mjs} +586 -518
- package/dist/server/page-converter.mjs +8 -10
- package/dist/server/{prebuild-8T-m7XjB.mjs → prebuild-B_1vrSru.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Bjya-X9t.mjs → prefetchBlockData-B7ukYXXR.mjs} +841 -887
- package/dist/server/{publicProducts-C3meXS2o.mjs → publicProducts-Djbpc81A.mjs} +166 -129
- package/dist/server/{blocks-jlIm0PWc.mjs → registry-eFjKtEhF.mjs} +2349 -1716
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-D0ow8PRJ.mjs → resolveBlockData-DYvEa9c5.mjs} +6 -3
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-Bs735S27.mjs → schema-C3dJ5UkL.mjs} +148 -88
- package/dist/server/server.mjs +3 -3
- package/dist/server/{siteChromeOverlayClearance-BangtD8A.mjs → siteChromeOverlayClearance-DALIAMwo.mjs} +108 -11
- package/dist/server/{src-B935_bzN.mjs → src-C5Mu-z0F.mjs} +268 -189
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-D2-BnmDO.mjs → themeAdmission-ruoyXb_0.mjs} +9 -7
- package/dist/server/{three-pass-converter-CmmchOFC.mjs → three-pass-converter-Chnb1XD-.mjs} +2 -58
- package/dist/server/{validation-Cm41pDUB.mjs → validation-B-Xar8QS.mjs} +22 -63
- package/dist/server/{version-Bo9C3McI.mjs → version-Bg7VHK3i.mjs} +1 -1
- package/dist/styles/index.css +78 -0
- package/package.json +8 -3
- package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
- package/dist/_dts/index-cnymEAZY.d.ts +0 -1
- package/dist/client/timetableModel-D7PwpaBY.mjs +0 -480
- package/dist/preview-next/client/siteStyleAccess-CRXaC2oL.mjs +0 -1326
- package/dist/server/loadPage-ZrcfjG3X.mjs +0 -2
package/dist/client/{EventRegistrationPayment-rgKlBvhP.mjs → EventRegistrationPayment-Dc3Fnlnw.mjs}
RENAMED
|
@@ -1,28 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { st as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
2
|
+
import { E as parseEventRegistrationErrorReason, T as eventRegistrationErrors } from "./ThemedButton-C22C9cCF.mjs";
|
|
3
|
+
import { t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
4
|
+
import { $ as getEligibilityFlowFlags, At as getTicketSelectionTotal, C as resolveGuestNextStepCheck, Dr as resolveEventRegistrationScopedEvents, E as resolveRegistrationTicketContinuation, Ft as getRegistrationStartAt, G as resolveRegistrationTarget, H as findPreSelectedEvent, It as toRegistrationEvents, J as beginWaitlistInvitation, K as resolveRouteRequiresPayment, Ki as publicEventPricingStrategy, L as calculateEventRegistrationPreviewTotal, M as resolveEventRegistrationSubmitPlan, Mt as hasValidPricingOptionSelection, Nt as normalizeTicketSelectionLines, O as visitorHoldsOwnPlace, Ot as getSingleSelectedPricingOptionId, Pi as resolveBookingSignupOffer, Q as getCurrentTicketSelection, Rt as toWholeSeriesRegistrationEvents, S as planRegistrationDetailsContinuation, St as getVisibleTicketTypes, U as resolveDiscountContext, W as resolveEventRequiresPayment, X as invitationSubmission, Y as createRegistrationDraftData, Z as formatCentsAsCurrencyInput, a as registrationPresentation, at as resolveHeldTicketPlaces, bt as getPortalSubjectEmail, d as decideEventChoice, et as getRegistrationOccurrenceId, f as getDeclinedPass, ft as findSelectedTicketType, g as decideEventRegistrationPayment, h as buildEventRegistrationPaymentOptionsViewModel, i as registrationPaymentRoute, it as parseCurrencyInputToCents, m as registrationFlowReducer, nt as getSlidingScaleSelectionMessage, o as registrationRoute, ot as shouldLoadRegistrationOptions, p as isRegistrationLocked, q as toRegistrationRequestSubject, rt as getTicketSelectionRemainingPlaces, st as validateFormData, tt as getSlidingScaleForEvent, u as createInitialRegistrationFlowState, w as resolveRegistrationAdmission, wt as transformRegistrationOptionsResponse, x as planRegistrationDetailsCheck, y as getTicketSelectionPurpose, yt as getImplicitSingleTicketType } from "./wizardSteps-zgq10lN1.mjs";
|
|
5
|
+
import { st as inferSiteDateLocale, yt as resolveBookingBusinessTimeZone } from "./noop-B610YKEx.mjs";
|
|
6
|
+
import { a as siteTermsFailureKind, o as useSiteTermsAgreement, s as eventSiteTermsSurface } from "./DemoBookingPortalAccess-CaN-7ui7.mjs";
|
|
7
|
+
import { t as generateUuidV4 } from "./uuid-BETKW8rS.mjs";
|
|
8
|
+
import { t as useDiscountCodeUi } from "./useDiscountCodeUi-DK2w_i0a.mjs";
|
|
9
|
+
import { r as usePolling } from "./BookingMailingListNote-C00sLLdL.mjs";
|
|
9
10
|
import { n as EVENT_REGISTRATION_CHECKOUT_ATTEMPT_PARAM, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
10
|
-
import { n as useBlockApi, r as BlockApiError } from "./context-
|
|
11
|
-
import { t as useBookingNowIso } from "./useBookingNowIso-
|
|
12
|
-
import { o as storeDemoBookingPass, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-
|
|
11
|
+
import { n as useBlockApi, r as BlockApiError } from "./context-BLAvalAa.mjs";
|
|
12
|
+
import { t as useBookingNowIso } from "./useBookingNowIso-CMgfL7YJ.mjs";
|
|
13
|
+
import { o as storeDemoBookingPass, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-R-awbk_0.mjs";
|
|
13
14
|
import { Suspense, lazy, useCallback, useEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
14
15
|
import { z } from "zod";
|
|
15
16
|
import { jsx } from "react/jsx-runtime";
|
|
16
|
-
//#region ../core/src/uuid.ts
|
|
17
|
-
function generateUuidV4(cryptoSource = globalThis.crypto) {
|
|
18
|
-
if (typeof cryptoSource.randomUUID === "function") return cryptoSource.randomUUID();
|
|
19
|
-
const bytes = cryptoSource.getRandomValues(/* @__PURE__ */ new Uint8Array(16));
|
|
20
|
-
bytes[6] = (bytes[6] ?? 0) & 15 | 64;
|
|
21
|
-
bytes[8] = (bytes[8] ?? 0) & 63 | 128;
|
|
22
|
-
const hex = Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0"));
|
|
23
|
-
return `${hex.slice(0, 4).join("")}-${hex.slice(4, 6).join("")}-${hex.slice(6, 8).join("")}-${hex.slice(8, 10).join("")}-${hex.slice(10).join("")}`;
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
17
|
//#region ../blocks/src/system/runtime/shared/utils/portalLogout.ts
|
|
27
18
|
/**
|
|
28
19
|
* Portal Logout Utility
|
|
@@ -51,20 +42,7 @@ function logoutPortal(anchorId) {
|
|
|
51
42
|
//#region ../blocks/src/system/runtime/nodes/event-registration/useRegistrationAdmission.ts
|
|
52
43
|
/** Owns admission and its navigation commands; renderers receive decisions. */
|
|
53
44
|
function useRegistrationAdmission(input) {
|
|
54
|
-
const {
|
|
55
|
-
const admission = useMemo(() => resolveRegistrationAdmission({
|
|
56
|
-
eligibility,
|
|
57
|
-
eligibilityError,
|
|
58
|
-
eligibilityLoading,
|
|
59
|
-
holdsOwnPlace,
|
|
60
|
-
isAuthenticated
|
|
61
|
-
}), [
|
|
62
|
-
eligibility,
|
|
63
|
-
eligibilityError,
|
|
64
|
-
eligibilityLoading,
|
|
65
|
-
holdsOwnPlace,
|
|
66
|
-
isAuthenticated
|
|
67
|
-
]);
|
|
45
|
+
const { admission, isAuthenticated, dispatchFlow } = input;
|
|
68
46
|
const ticketContinuation = resolveRegistrationTicketContinuation({
|
|
69
47
|
admission,
|
|
70
48
|
ticketSelectionRequired: input.ticketSelectionRequired,
|
|
@@ -139,6 +117,32 @@ function recoverRegistrationError(action, handlers) {
|
|
|
139
117
|
}
|
|
140
118
|
}
|
|
141
119
|
//#endregion
|
|
120
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/useTicketSelectionInitialization.ts
|
|
121
|
+
/** Pick the single default once; removing or refreshing a line never picks it again. */
|
|
122
|
+
function useTicketSelectionInitialization(input) {
|
|
123
|
+
const initializedSelection = useRef(null);
|
|
124
|
+
useEffect(() => {
|
|
125
|
+
if (input.locked) return;
|
|
126
|
+
if (!input.usesTicketTypes) {
|
|
127
|
+
if (input.lines.length > 0) input.setLines([]);
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
const key = `${input.selectionId ?? ""}:${input.attendanceMode ?? ""}`;
|
|
131
|
+
if (initializedSelection.current === key) return;
|
|
132
|
+
if (input.lines.length > 0) {
|
|
133
|
+
initializedSelection.current = key;
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
const implicitOption = getImplicitSingleTicketType(input.visibleOptions, input.purpose);
|
|
137
|
+
if (!implicitOption) return;
|
|
138
|
+
initializedSelection.current = key;
|
|
139
|
+
input.setLines([{
|
|
140
|
+
pricingOptionId: implicitOption.pricingOptionId,
|
|
141
|
+
quantity: 1
|
|
142
|
+
}]);
|
|
143
|
+
}, [input]);
|
|
144
|
+
}
|
|
145
|
+
//#endregion
|
|
142
146
|
//#region ../blocks/src/system/runtime/nodes/event-registration/hooks.state.ts
|
|
143
147
|
const initialEligibilityLookupState = {
|
|
144
148
|
tag: "idle",
|
|
@@ -151,7 +155,8 @@ function eligibilityLookupReducer(state, action) {
|
|
|
151
155
|
case "reset": return initialEligibilityLookupState;
|
|
152
156
|
case "loading-started": return {
|
|
153
157
|
tag: "loading",
|
|
154
|
-
eligibility:
|
|
158
|
+
eligibility: null,
|
|
159
|
+
previousEligibility: state.tag === "loading" ? state.previousEligibility : state.eligibility,
|
|
155
160
|
settledRequestKey: state.settledRequestKey,
|
|
156
161
|
error: null
|
|
157
162
|
};
|
|
@@ -164,7 +169,7 @@ function eligibilityLookupReducer(state, action) {
|
|
|
164
169
|
case "failed": return {
|
|
165
170
|
tag: "failed",
|
|
166
171
|
eligibility: null,
|
|
167
|
-
settledRequestKey:
|
|
172
|
+
settledRequestKey: action.requestKey,
|
|
168
173
|
error: action.message
|
|
169
174
|
};
|
|
170
175
|
default: return assertNever(action);
|
|
@@ -259,90 +264,79 @@ function usePortalAuthWithDeps(deps) {
|
|
|
259
264
|
function useEligibility(params) {
|
|
260
265
|
return useEligibilityWithDeps(params, eventRegistrationHooksDeps);
|
|
261
266
|
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
267
|
+
/** One request for the current selection; disabled/incomplete selections do not fetch. */
|
|
268
|
+
function eligibilityRequest(params) {
|
|
269
|
+
const selections = normalizeTicketSelectionLines(params.ticketSelections);
|
|
270
|
+
if (!params.enabled || !params.subject || selections.length === 0) return null;
|
|
271
|
+
return {
|
|
272
|
+
subject: toRegistrationRequestSubject(params.subject, params.attendanceMode),
|
|
273
|
+
selections: selections.map(({ pricingOptionId, quantity }) => ({
|
|
274
|
+
pricingOptionId,
|
|
275
|
+
quantity
|
|
276
|
+
})),
|
|
277
|
+
selectedSlidingAmount: params.selectedSlidingAmount ?? void 0
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
/** One effective union owns readiness, including the pre-fetch debounce window. */
|
|
281
|
+
function effectiveEligibilityState(state, requestKey, active) {
|
|
282
|
+
if (!active) return initialEligibilityLookupState;
|
|
283
|
+
if (state.tag === "loading" || state.settledRequestKey === requestKey) return state;
|
|
284
|
+
return eligibilityLookupReducer(state, { type: "loading-started" });
|
|
285
|
+
}
|
|
286
|
+
/** Fetches a quote; a disposed request can never settle the next selection. */
|
|
287
|
+
async function loadEligibility(input) {
|
|
288
|
+
input.dispatch({ type: "loading-started" });
|
|
289
|
+
try {
|
|
290
|
+
const result = await input.api.getRegistrationOptions(input.request);
|
|
291
|
+
if (!input.isCurrent()) return;
|
|
292
|
+
input.dispatch({
|
|
293
|
+
type: "resolved",
|
|
294
|
+
eligibility: transformRegistrationOptionsResponse(result),
|
|
295
|
+
requestKey: input.requestKey
|
|
296
|
+
});
|
|
297
|
+
} catch {
|
|
298
|
+
if (!input.isCurrent()) return;
|
|
299
|
+
input.dispatch({
|
|
300
|
+
type: "failed",
|
|
301
|
+
requestKey: input.requestKey,
|
|
302
|
+
message: "We couldn’t load the booking options for this event. Please refresh this page and try again. If this keeps happening, contact the organiser for help."
|
|
303
|
+
});
|
|
304
|
+
}
|
|
271
305
|
}
|
|
272
306
|
function useEligibilityWithDeps(params, deps) {
|
|
273
307
|
const api = deps.useBlockApi();
|
|
274
|
-
const
|
|
275
|
-
const requestKey =
|
|
276
|
-
|
|
277
|
-
|
|
308
|
+
const request = eligibilityRequest(params);
|
|
309
|
+
const requestKey = JSON.stringify({
|
|
310
|
+
refreshKey: params.refreshKey ?? 0,
|
|
311
|
+
request
|
|
278
312
|
});
|
|
279
313
|
const [state, dispatch] = useReducer(eligibilityLookupReducer, initialEligibilityLookupState);
|
|
280
|
-
const requestIdRef = useRef(0);
|
|
281
314
|
useEffect(() => {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
if (!
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
return;
|
|
294
|
-
}
|
|
295
|
-
const requestId = requestIdRef.current + 1;
|
|
296
|
-
requestIdRef.current = requestId;
|
|
297
|
-
dispatch({ type: "loading-started" });
|
|
298
|
-
try {
|
|
299
|
-
const subject = toRegistrationRequestSubject(params.subject, params.attendanceMode);
|
|
300
|
-
const result = await api.getRegistrationOptions({
|
|
301
|
-
subject,
|
|
302
|
-
selections: ticketSelections.map((selection) => ({
|
|
303
|
-
pricingOptionId: selection.pricingOptionId,
|
|
304
|
-
quantity: selection.quantity
|
|
305
|
-
})),
|
|
306
|
-
selectedSlidingAmount: params.selectedSlidingAmount ?? void 0
|
|
307
|
-
});
|
|
308
|
-
if (cancelled || requestIdRef.current !== requestId) return;
|
|
309
|
-
dispatch({
|
|
310
|
-
type: "resolved",
|
|
311
|
-
eligibility: transformRegistrationOptionsResponse(result),
|
|
312
|
-
requestKey
|
|
313
|
-
});
|
|
314
|
-
} catch {
|
|
315
|
-
if (cancelled || requestIdRef.current !== requestId) return;
|
|
316
|
-
dispatch({
|
|
317
|
-
type: "failed",
|
|
318
|
-
message: "We couldn’t load the booking options for this event. Please refresh this page and try again. If this keeps happening, contact the organiser for help."
|
|
319
|
-
});
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
const timeoutId = window.setTimeout(() => void fetchEligibility(), REGISTRATION_OPTIONS_DEBOUNCE_MS);
|
|
315
|
+
const lifetime = { current: true };
|
|
316
|
+
const timeoutId = window.setTimeout(() => {
|
|
317
|
+
if (!request) return dispatch({ type: "reset" });
|
|
318
|
+
loadEligibility({
|
|
319
|
+
api,
|
|
320
|
+
request,
|
|
321
|
+
requestKey,
|
|
322
|
+
dispatch,
|
|
323
|
+
isCurrent: () => lifetime.current
|
|
324
|
+
});
|
|
325
|
+
}, REGISTRATION_OPTIONS_DEBOUNCE_MS);
|
|
323
326
|
return () => {
|
|
324
|
-
|
|
327
|
+
lifetime.current = false;
|
|
325
328
|
window.clearTimeout(timeoutId);
|
|
326
329
|
};
|
|
327
|
-
}, [
|
|
328
|
-
|
|
329
|
-
params.enabled,
|
|
330
|
-
params.refreshKey,
|
|
331
|
-
params.subject?.kind,
|
|
332
|
-
params.subject?.kind === "occurrence" ? params.subject.occurrenceId : params.subject?.eventSeriesId,
|
|
333
|
-
params.attendanceMode,
|
|
334
|
-
ticketSelectionsKey,
|
|
335
|
-
params.selectedSlidingAmount
|
|
336
|
-
]);
|
|
337
|
-
const creditState = registrationOptionsCreditState(state, params.subjectEmail);
|
|
330
|
+
}, [api, requestKey]);
|
|
331
|
+
const effectiveState = effectiveEligibilityState(state, requestKey, request !== null);
|
|
338
332
|
return {
|
|
339
|
-
state,
|
|
340
|
-
eligibility:
|
|
341
|
-
settledRequestKey:
|
|
333
|
+
state: effectiveState,
|
|
334
|
+
eligibility: effectiveState.tag === "loading" ? effectiveState.previousEligibility : effectiveState.eligibility,
|
|
335
|
+
settledRequestKey: effectiveState.settledRequestKey,
|
|
342
336
|
requestKey,
|
|
343
|
-
isLoading:
|
|
344
|
-
error:
|
|
345
|
-
creditState
|
|
337
|
+
isLoading: effectiveState.tag === "loading",
|
|
338
|
+
error: effectiveState.error,
|
|
339
|
+
creditState: registrationOptionsCreditState(effectiveState, params.subjectEmail)
|
|
346
340
|
};
|
|
347
341
|
}
|
|
348
342
|
function registrationOptionsCreditState(state, subjectEmail) {
|
|
@@ -1223,6 +1217,7 @@ function usePaymentRuntime() {
|
|
|
1223
1217
|
kind: "idle",
|
|
1224
1218
|
heldPlaceRetry: null
|
|
1225
1219
|
});
|
|
1220
|
+
const [heldTicketSelection, setHeldTicketSelection] = useState(null);
|
|
1226
1221
|
const note = useRef(void 0);
|
|
1227
1222
|
const operation = useRef(null);
|
|
1228
1223
|
const generation = useRef(0);
|
|
@@ -1235,6 +1230,8 @@ function usePaymentRuntime() {
|
|
|
1235
1230
|
return {
|
|
1236
1231
|
state,
|
|
1237
1232
|
setState,
|
|
1233
|
+
heldTicketSelection,
|
|
1234
|
+
setHeldTicketSelection,
|
|
1238
1235
|
note,
|
|
1239
1236
|
operation,
|
|
1240
1237
|
generation,
|
|
@@ -1275,6 +1272,7 @@ function usePaymentTransitions(options, runtime) {
|
|
|
1275
1272
|
]);
|
|
1276
1273
|
const restartFrom = useCallback((step, heldPlaceRetry) => {
|
|
1277
1274
|
clearEventPayment(options.api.config.siteId);
|
|
1275
|
+
runtime.setHeldTicketSelection(snapshotHeldTicketSelection(heldPlaceRetry, options.ticketSelection));
|
|
1278
1276
|
setState({
|
|
1279
1277
|
kind: "idle",
|
|
1280
1278
|
heldPlaceRetry
|
|
@@ -1504,24 +1502,26 @@ function usePaymentStatusRecovery(options) {
|
|
|
1504
1502
|
const { state, setState, generation, note } = runtime;
|
|
1505
1503
|
usePaymentRefresh(state, backgroundCheck);
|
|
1506
1504
|
const recovery = state.kind === "recovery" ? state.state : null;
|
|
1505
|
+
const showRecovery = useCallback((next) => {
|
|
1506
|
+
generation.current += 1;
|
|
1507
|
+
note.current = next?.mailingListSignupNote;
|
|
1508
|
+
setState(next ? {
|
|
1509
|
+
kind: "recovery",
|
|
1510
|
+
state: next
|
|
1511
|
+
} : {
|
|
1512
|
+
kind: "idle",
|
|
1513
|
+
heldPlaceRetry: null
|
|
1514
|
+
});
|
|
1515
|
+
}, [
|
|
1516
|
+
generation,
|
|
1517
|
+
note,
|
|
1518
|
+
setState
|
|
1519
|
+
]);
|
|
1507
1520
|
return {
|
|
1508
1521
|
state,
|
|
1522
|
+
heldTicketSelection: currentHeldTicketSelection(state, runtime.heldTicketSelection),
|
|
1509
1523
|
recovery,
|
|
1510
|
-
showRecovery
|
|
1511
|
-
generation.current += 1;
|
|
1512
|
-
note.current = next?.mailingListSignupNote;
|
|
1513
|
-
setState(next ? {
|
|
1514
|
-
kind: "recovery",
|
|
1515
|
-
state: next
|
|
1516
|
-
} : {
|
|
1517
|
-
kind: "idle",
|
|
1518
|
-
heldPlaceRetry: null
|
|
1519
|
-
});
|
|
1520
|
-
}, [
|
|
1521
|
-
generation,
|
|
1522
|
-
note,
|
|
1523
|
-
setState
|
|
1524
|
-
]),
|
|
1524
|
+
showRecovery,
|
|
1525
1525
|
restoreMailingListNote: (value) => {
|
|
1526
1526
|
note.current = value;
|
|
1527
1527
|
},
|
|
@@ -1545,6 +1545,15 @@ function usePaymentStatusRecovery(options) {
|
|
|
1545
1545
|
function heldPlaceRetry(recovery) {
|
|
1546
1546
|
return recovery.place === "held" ? recovery.subject : null;
|
|
1547
1547
|
}
|
|
1548
|
+
function snapshotHeldTicketSelection(subject, selection) {
|
|
1549
|
+
return subject ? {
|
|
1550
|
+
...selection,
|
|
1551
|
+
lines: selection.lines.map((line) => ({ ...line }))
|
|
1552
|
+
} : null;
|
|
1553
|
+
}
|
|
1554
|
+
function currentHeldTicketSelection(state, held) {
|
|
1555
|
+
return state.kind === "idle" && state.heldPlaceRetry !== null ? held : null;
|
|
1556
|
+
}
|
|
1548
1557
|
//#endregion
|
|
1549
1558
|
//#region ../blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.ts
|
|
1550
1559
|
function resolveAvailableAttendanceMode(event, selected) {
|
|
@@ -1734,24 +1743,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
1734
1743
|
step: nextStep
|
|
1735
1744
|
});
|
|
1736
1745
|
}, []);
|
|
1737
|
-
const paymentController = usePaymentStatusRecovery({
|
|
1738
|
-
api,
|
|
1739
|
-
beginNewSubmission: () => {
|
|
1740
|
-
commandRef.current = null;
|
|
1741
|
-
dispatchFlow({ type: "refresh-invitation" });
|
|
1742
|
-
},
|
|
1743
|
-
complete,
|
|
1744
|
-
setOptionsRefreshKey,
|
|
1745
|
-
setStep,
|
|
1746
|
-
detailsInPage: () => Object.keys(validateFormData(formData)).length === 0
|
|
1747
|
-
});
|
|
1748
|
-
const { recovery: paymentStatusRecovery, showRecovery: setPaymentStatusRecovery, check: handleCheckPaymentStatus, continuePayment: handleContinueExistingPayment, returnToPayment: handleReturnToPayment, returnToBooking: handleReturnToBooking } = paymentController;
|
|
1749
1746
|
const usesTicketTypeSelections = usesTieredPricing(currentEvent);
|
|
1750
|
-
const eventTicketTypesForSelection = useMemo(() => getVisibleTicketTypes({
|
|
1751
|
-
event: currentEvent,
|
|
1752
|
-
eligibility: null,
|
|
1753
|
-
selectedAttendanceMode
|
|
1754
|
-
}), [currentEvent, selectedAttendanceMode]);
|
|
1755
1747
|
const normalizedSelectedTicketLines = useMemo(() => normalizeTicketSelectionLines(selectedTicketLines), [selectedTicketLines]);
|
|
1756
1748
|
const ticketTypeSelectionTotal = useMemo(() => getTicketSelectionTotal(normalizedSelectedTicketLines), [normalizedSelectedTicketLines]);
|
|
1757
1749
|
const ticketsCount = usesTicketTypeSelections ? ticketTypeSelectionTotal : flowState.ticketsCount;
|
|
@@ -1764,6 +1756,20 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
1764
1756
|
normalizedSelectedTicketLines,
|
|
1765
1757
|
ticketsCount
|
|
1766
1758
|
]);
|
|
1759
|
+
const currentTicketSelection = getCurrentTicketSelection(currentEvent, selectedAttendanceMode, ticketSelections);
|
|
1760
|
+
const paymentController = usePaymentStatusRecovery({
|
|
1761
|
+
api,
|
|
1762
|
+
ticketSelection: currentTicketSelection,
|
|
1763
|
+
beginNewSubmission: () => {
|
|
1764
|
+
commandRef.current = null;
|
|
1765
|
+
dispatchFlow({ type: "refresh-invitation" });
|
|
1766
|
+
},
|
|
1767
|
+
complete,
|
|
1768
|
+
setOptionsRefreshKey,
|
|
1769
|
+
setStep,
|
|
1770
|
+
detailsInPage: () => Object.keys(validateFormData(formData)).length === 0
|
|
1771
|
+
});
|
|
1772
|
+
const { recovery: paymentStatusRecovery, showRecovery: setPaymentStatusRecovery, check: handleCheckPaymentStatus, continuePayment: handleContinueExistingPayment, returnToPayment: handleReturnToPayment, returnToBooking: handleReturnToBooking } = paymentController;
|
|
1767
1773
|
useEffect(() => {
|
|
1768
1774
|
if (flowState.ticketsCount === ticketsCount) return;
|
|
1769
1775
|
dispatchFlow({
|
|
@@ -1850,11 +1856,13 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
1850
1856
|
const visibleTicketTypes = useMemo(() => getVisibleTicketTypes({
|
|
1851
1857
|
event: currentEvent,
|
|
1852
1858
|
eligibility,
|
|
1853
|
-
selectedAttendanceMode
|
|
1859
|
+
selectedAttendanceMode,
|
|
1860
|
+
ticketSelections: normalizedSelectedTicketLines
|
|
1854
1861
|
}), [
|
|
1855
1862
|
currentEvent,
|
|
1856
1863
|
selectedAttendanceMode,
|
|
1857
|
-
eligibility
|
|
1864
|
+
eligibility,
|
|
1865
|
+
normalizedSelectedTicketLines
|
|
1858
1866
|
]);
|
|
1859
1867
|
const singleSelectedPricingOptionId = getSingleSelectedPricingOptionId(normalizedSelectedTicketLines);
|
|
1860
1868
|
const selectedTicketType = useMemo(() => findSelectedTicketType({
|
|
@@ -1880,34 +1888,42 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
1880
1888
|
if ((event.deliveryMode ?? "in_person") === "hybrid" && !selectedAttendanceMode) return false;
|
|
1881
1889
|
return true;
|
|
1882
1890
|
}, [currentEvent, selectedAttendanceMode]);
|
|
1891
|
+
const admission = resolveRegistrationAdmission({
|
|
1892
|
+
eligibility,
|
|
1893
|
+
eligibilityError,
|
|
1894
|
+
eligibilityLoading,
|
|
1895
|
+
holdsOwnPlace: visitorHoldsOwnPlace({
|
|
1896
|
+
hasWaitlistClaim: waitlistClaim.kind === "ready",
|
|
1897
|
+
retryingHeldPlace: paymentController.retryingHeldPlace
|
|
1898
|
+
}),
|
|
1899
|
+
isAuthenticated: portalAuthState === "authenticated"
|
|
1900
|
+
});
|
|
1901
|
+
const ticketSelectionPurpose = getTicketSelectionPurpose(admission);
|
|
1902
|
+
const overallRemainingPlaces = getTicketSelectionRemainingPlaces({
|
|
1903
|
+
event: currentEvent,
|
|
1904
|
+
eligibility,
|
|
1905
|
+
attendanceMode: selectedAttendanceMode
|
|
1906
|
+
});
|
|
1907
|
+
const heldPlacesBySelection = resolveHeldTicketPlaces(currentTicketSelection, waitlistClaim, paymentController.heldTicketSelection);
|
|
1883
1908
|
const hasValidTicketSelection = hasValidPricingOptionSelection({
|
|
1884
1909
|
selectionRequired: ticketTypeSelectionRequired,
|
|
1910
|
+
purpose: ticketSelectionPurpose,
|
|
1885
1911
|
lines: normalizedSelectedTicketLines,
|
|
1886
|
-
visibleOptions: visibleTicketTypes
|
|
1912
|
+
visibleOptions: visibleTicketTypes,
|
|
1913
|
+
maxTickets: options.maxTicketsNum,
|
|
1914
|
+
overallRemainingPlaces,
|
|
1915
|
+
heldPlacesBySelection
|
|
1916
|
+
});
|
|
1917
|
+
useTicketSelectionInitialization({
|
|
1918
|
+
selectionId: currentTicketSelection.selectionId,
|
|
1919
|
+
attendanceMode: selectedAttendanceMode,
|
|
1920
|
+
locked: selectionLocked,
|
|
1921
|
+
usesTicketTypes: usesTicketTypeSelections,
|
|
1922
|
+
lines: normalizedSelectedTicketLines,
|
|
1923
|
+
visibleOptions: visibleTicketTypes,
|
|
1924
|
+
purpose: ticketSelectionPurpose,
|
|
1925
|
+
setLines: setSelectedTicketLines
|
|
1887
1926
|
});
|
|
1888
|
-
useEffect(() => {
|
|
1889
|
-
if (selectionLocked) return;
|
|
1890
|
-
if (!usesTicketTypeSelections) {
|
|
1891
|
-
if (selectedTicketLines.length > 0) setSelectedTicketLines([]);
|
|
1892
|
-
return;
|
|
1893
|
-
}
|
|
1894
|
-
const availableTicketTypes = eventTicketTypesForSelection.filter((ticketType) => canRequestTicketOption(ticketType.availability));
|
|
1895
|
-
const implicitTicketType = getImplicitSingleTicketType(eventTicketTypesForSelection);
|
|
1896
|
-
if (implicitTicketType && normalizedSelectedTicketLines.length === 0) {
|
|
1897
|
-
setSelectedTicketLines([{
|
|
1898
|
-
pricingOptionId: implicitTicketType.pricingOptionId,
|
|
1899
|
-
quantity: 1
|
|
1900
|
-
}]);
|
|
1901
|
-
return;
|
|
1902
|
-
}
|
|
1903
|
-
const filteredLines = normalizedSelectedTicketLines.filter((line) => line.pricingOptionId && availableTicketTypes.some((ticketType) => ticketType.pricingOptionId === line.pricingOptionId));
|
|
1904
|
-
if (filteredLines.length !== normalizedSelectedTicketLines.length) setSelectedTicketLines(filteredLines);
|
|
1905
|
-
}, [
|
|
1906
|
-
eventTicketTypesForSelection,
|
|
1907
|
-
normalizedSelectedTicketLines,
|
|
1908
|
-
selectedTicketLines.length,
|
|
1909
|
-
usesTicketTypeSelections
|
|
1910
|
-
]);
|
|
1911
1927
|
useEffect(() => {
|
|
1912
1928
|
if (selectionLocked) return;
|
|
1913
1929
|
if (!requireGuestDetails) {
|
|
@@ -1947,14 +1963,8 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
1947
1963
|
selectedEventSlidingScale,
|
|
1948
1964
|
selectedSlidingAmount
|
|
1949
1965
|
]);
|
|
1950
|
-
const {
|
|
1951
|
-
|
|
1952
|
-
eligibilityError,
|
|
1953
|
-
eligibilityLoading,
|
|
1954
|
-
holdsOwnPlace: visitorHoldsOwnPlace({
|
|
1955
|
-
hasWaitlistClaim: waitlistClaim.kind === "ready",
|
|
1956
|
-
retryingHeldPlace: paymentController.retryingHeldPlace
|
|
1957
|
-
}),
|
|
1966
|
+
const { ticketContinuation, handleTicketsComplete } = useRegistrationAdmission({
|
|
1967
|
+
admission,
|
|
1958
1968
|
isAuthenticated: portalAuthState === "authenticated",
|
|
1959
1969
|
existingRegistrationLoading: existingRegistrationResult.isLoading,
|
|
1960
1970
|
ticketSelectionRequired: ticketTypeSelectionRequired,
|
|
@@ -2257,6 +2267,9 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
2257
2267
|
ticketSelectionSummaryLines,
|
|
2258
2268
|
ticketSelectionSubtotalCents,
|
|
2259
2269
|
visibleTicketTypes,
|
|
2270
|
+
overallRemainingPlaces,
|
|
2271
|
+
heldPlacesBySelection,
|
|
2272
|
+
ticketSelectionPurpose,
|
|
2260
2273
|
ticketTypeSelectionRequired,
|
|
2261
2274
|
hasValidTicketSelection,
|
|
2262
2275
|
eventRequiresPayment,
|
|
@@ -2404,7 +2417,7 @@ function resolveWizardPaymentView(input) {
|
|
|
2404
2417
|
}
|
|
2405
2418
|
//#endregion
|
|
2406
2419
|
//#region ../blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.tsx
|
|
2407
|
-
const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-
|
|
2420
|
+
const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-BiJrMtfp.mjs"));
|
|
2408
2421
|
/** The one Stripe mount, shared by the standard wizard and headless arrangements. */
|
|
2409
2422
|
function EventPaymentMount({ state, onComplete, onRetry, onBack, buttonVariant }) {
|
|
2410
2423
|
if (state.kind === "abandoning") return /* @__PURE__ */ jsx("p", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as isRecord } from "./noop-
|
|
2
|
+
import { $ as isRecord } from "./noop-B610YKEx.mjs";
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/shared/LeafletStaticMap.tsx
|