@riverbankcms/sdk 0.174.0 → 0.175.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-GqVX3I8E.d.ts → BlocksIslandsHydrator-hb2IWD8K.d.ts} +1 -1
- package/dist/_dts/{Page-BhUH31M-.d.ts → Page-BlY68ZF-.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DBn2x0UL.d.ts → SdkPreviewMode-CA8hU7hW.d.ts} +2 -2
- package/dist/_dts/{client-Cr-sOeSl.d.ts → client-B6tCvmG4.d.ts} +487 -11
- package/dist/_dts/{content-types-DKw1yJdN.d.ts → content-types-B9qryk4R.d.ts} +2 -2
- package/dist/_dts/{contracts-CJ2O03nB.d.ts → contracts-DWoaRxj1.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DoGHHKr_.d.ts → footerPageOutline-Djdrhp5s.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-CJGu4hoa.d.ts → generatePageMetadata-CFi0vxov.d.ts} +2 -2
- package/dist/_dts/{index--39uLjrr.d.ts → index-Bl5_pjmq.d.ts} +1 -1
- package/dist/_dts/{index-DQZ5L0Gb.d.ts → index-Btp5nIoz.d.ts} +2 -2
- package/dist/_dts/{index-Bq-488M7.d.ts → index-CQUzwOxO.d.ts} +1 -1
- package/dist/_dts/{index-DYlfdT1O.d.ts → index-DmhFb6R1.d.ts} +1 -1
- package/dist/_dts/{index-3GzargmS.d.ts → index-OtazQE3U.d.ts} +2 -2
- package/dist/_dts/{index-DYsP4k6S.d.ts → index-YRQulWB4.d.ts} +3 -3
- package/dist/_dts/{index-DdEi2iXd.d.ts → index-_pXaCO12.d.ts} +4 -4
- package/dist/_dts/{loadContent-BVPagYmy.d.ts → loadContent-Hcuvs4pz.d.ts} +7 -7
- package/dist/_dts/{request-Be1E-H-V.d.ts → request-BT8i_vH-.d.ts} +2070 -503
- package/dist/_dts/{resolveBlockData-D1pL25bD.d.ts → resolveBlockData-B-dJrunl.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-B4sbTf96.d.ts → resolvePageContent-CVLYWcoI.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/gifting/client.d.ts +13 -1
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +3 -2
- 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 +2 -1
- package/dist/_dts/{types-Bm5_3VEd.d.ts → types-C0XZnjXz.d.ts} +3 -3
- package/dist/_dts/{types-5MeDI1w8.d.ts → types-CXL1QJSY.d.ts} +7 -7
- package/dist/_dts/{types-CVoCc_Ia.d.ts → types-OKzbqRBx.d.ts} +2 -2
- package/dist/_dts/{validation-lEtYD-Rh.d.ts → validation-Bxi66FtQ.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DkflFLGQ.mjs → BlocksIslandsHydrator-2xzlERTG.mjs} +17 -16
- package/dist/client/{BookingMailingListNote-CAyoiAGD.mjs → BookingMailingListNote-qsohSEdQ.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-C7yiJrxm.mjs → BookingPanelArrangement-DrdtON0q.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-DZMrGvBh.mjs → BookingQuestionFields-CUFxBaTM.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-BPQU5Snc.mjs → CalendarNavigationChevron-Ch0w0Utn.mjs} +34 -9
- package/dist/client/DemoBookingPortalAccess-DGgsjqXK.mjs +545 -0
- package/dist/client/{EventCalendar.client-BiWQc28-.mjs → EventCalendar.client-Dg4PHFJJ.mjs} +15 -25
- package/dist/client/{EventCombined.client-B_ytWQtn.mjs → EventCombined.client-tky8JcnQ.mjs} +25 -17
- package/dist/client/{EventItem-C-mxXpX_.mjs → EventItem-BybMSKNL.mjs} +4 -3
- package/dist/client/{EventListWeekNavigation-Bm3Ap1Rd.mjs → EventListWeekNavigation-uvWRE5wi.mjs} +1 -1
- package/dist/client/{EventListing.client-Bs_8im5_.mjs → EventListing.client-DQx9dohz.mjs} +3 -3
- package/dist/client/{EventListing.view-CN7BjGgC.mjs → EventListing.view-r31k8Icz.mjs} +8 -7
- package/dist/client/{EventRegistrationPayment-DPkRcSdw.mjs → EventRegistrationPayment-BMmPDmSf.mjs} +664 -362
- package/dist/client/{LocationMapActions-BJT7MqP2.mjs → LocationMapActions-BecH-qhI.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-DCIwlON6.mjs → MapDrawingSvg-BJzmFdcn.mjs} +18 -3
- package/dist/client/{Page--xJ23nA5.mjs → Page-CWN_8cLZ.mjs} +736 -1667
- package/dist/client/{DemoBookingPortalAccess-BnEgvJas.mjs → SiteTermsAgreementField-Dr5lj4oY.mjs} +4 -301
- package/dist/client/{StepIndicator-D391QRNc.mjs → StepIndicator-C7RJBOW3.mjs} +37 -249
- package/dist/client/{accordion-BQtTkDN8.mjs → accordion-uUi_N6mZ.mjs} +1 -1
- package/dist/client/{booking-form.client-D9M7TKGV.mjs → booking-form.client-CKHgxvsh.mjs} +229 -42
- package/dist/client/{bookingForm-BsOS0sl9.mjs → bookingForm-Bi74dmiS.mjs} +4 -4
- package/dist/client/bookings.mjs +22 -15
- package/dist/client/{boxStyleClassNames-CNDLpT06.mjs → boxStyleClassNames-C-gFwhnO.mjs} +3 -29
- package/dist/client/{carousel-CPsW-FPh.mjs → carousel-C0_BqMA0.mjs} +1 -1
- package/dist/client/{cart-CwElmocm.mjs → cart-BOHuppVu.mjs} +3 -3
- package/dist/client/{cart.client-RpqI56w8.mjs → cart.client-IfJE1zAp.mjs} +1 -1
- package/dist/client/{checkout-CfMgqY8H.mjs → checkout-C3Aj-aNa.mjs} +3 -3
- package/dist/client/{checkout.client-BpuPyOuJ.mjs → checkout.client-Tg9lfeYf.mjs} +1 -1
- package/dist/client/{checkoutUrls-VeHY6WYj.mjs → checkoutUrls-OLqQdAXD.mjs} +1 -1
- package/dist/client/client.mjs +113 -21
- package/dist/client/{context-CNlesLfF.mjs → context-D8TpQXjX.mjs} +76 -58
- package/dist/client/{course-q1sA4Cj-.mjs → course-DHmeQAvq.mjs} +2 -2
- package/dist/client/{creditProducts-KYMVIH3J.mjs → creditProducts-BQ1t1erI.mjs} +14 -61
- package/dist/client/{dateFormatting-B73Ll0s4.mjs → dateFormatting-ABCZWkpT.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BVbLD4pi.mjs → demoPortalMagicLink-BdcuW_pa.mjs} +1 -1
- package/dist/client/display-DMqotaGU.mjs +11797 -0
- package/dist/client/{enhanceHeaderSection-BzjY6AiY.mjs → enhanceHeaderSection-Ciuhsk0E.mjs} +3 -3
- package/dist/client/{event-details.client-CseTWUFC.mjs → event-details.client-CJapNbTv.mjs} +1 -1
- package/dist/client/{event-registration.client-b5TLxntR.mjs → event-registration.client-CAdcpnLc.mjs} +295 -188
- package/dist/client/{eventCalendar-C-kJNIc9.mjs → eventCalendar-BlsD5R8M.mjs} +4 -4
- package/dist/client/{eventCombined-BgHJGhwE.mjs → eventCombined-B9Ly3024.mjs} +4 -4
- package/dist/client/{eventDetails-CAwbreD0.mjs → eventDetails-CbEGI4jO.mjs} +2 -2
- package/dist/client/{eventListing-_14atrj8.mjs → eventListing-ZSmvhWII.mjs} +4 -4
- package/dist/client/{eventRegistration-BOqSdstJ.mjs → eventRegistration-D-yUcIyO.mjs} +4 -4
- package/dist/client/{form-DfAB-llc.mjs → form-DG_YZSNn.mjs} +3 -3
- package/dist/client/{form.client-DN-I9_qC.mjs → form.client-BU6dM0-C.mjs} +4 -4
- package/dist/client/{form.parts-t2Q1neM6.mjs → form.parts-Db0Iq7nx.mjs} +1 -1
- package/dist/client/{formatDate-Dp7POa9Y.mjs → formatDate-DFfWHpQB.mjs} +1 -1
- package/dist/client/gifting/client.mjs +5 -3
- package/dist/client/gifting-DMrsN4B4.mjs +28 -0
- package/dist/client/gifting.client-BVa2XYJB.mjs +404 -0
- package/dist/client/gifting.parts-C2u4Y-pf.mjs +86 -0
- package/dist/client/{headerSection-Dces54pb.mjs → headerSection-D91EzlOR.mjs} +2 -2
- package/dist/client/{display-D8MW2b0e.mjs → lookSurfaces-BDZLALxj.mjs} +3084 -12938
- package/dist/client/{newsletter-form.client-D_YFUlR2.mjs → newsletter-form.client-BMGRiRpo.mjs} +7 -5
- package/dist/client/{newsletter-form.parts-URO5Mn_I.mjs → newsletter-form.parts-D5UfUaD3.mjs} +3 -3
- package/dist/client/{newsletterForm-_c9fKIzS.mjs → newsletterForm-B_67sNwa.mjs} +3 -3
- package/dist/client/{noop-D5mFWXtN.mjs → noop-DF8_EiFt.mjs} +93 -28
- package/dist/client/portal/client.mjs +313 -148
- package/dist/client/{product-detail.client-CVW1UIxJ.mjs → product-detail.client-D-XNir0m.mjs} +1 -1
- package/dist/client/{product-list.client-CF9hO23G.mjs → product-list.client-BLfYQ-qi.mjs} +1 -1
- package/dist/client/{productDetail-C_qbmUuP.mjs → productDetail-W0_0lDGe.mjs} +3 -3
- package/dist/client/{productList-Df5qDD0z.mjs → productList-ayAtPJdb.mjs} +3 -3
- package/dist/client/{propsDecoder-BiEyK2ii.mjs → propsDecoder-ChYKWjLA.mjs} +4 -3
- package/dist/client/{registry.server-ClcfWpvM.mjs → registry.server-B1EEZkcr.mjs} +311 -262
- package/dist/client/rendering/client.mjs +25 -491
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +7 -7
- package/dist/client/{richText-coerce-C32cRQ03.mjs → richText-coerce-CDAfpMQU.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DAypPzSo.mjs → routeIslandApiConfig-CcGWvyht.mjs} +1 -1
- package/dist/client/{shop-gteEpeO5.mjs → shop-DbUUoHFJ.mjs} +3 -3
- package/dist/client/{shop-discount-apply.state-DidgH7ow.mjs → shop-add-feedback-DvC2kP1K.mjs} +1 -78
- package/dist/client/{shop-commerce-Bw4_BXQg.mjs → shop-commerce-aQqcDmyZ.mjs} +64 -32
- package/dist/client/{shop-commerce-store-Da6Ah-_4.mjs → shop-commerce-store-Cd7USpuY.mjs} +1 -1
- package/dist/client/shop-discount-apply.state-DGvPBmVP.mjs +83 -0
- package/dist/client/{shop.client-CbbdjWWd.mjs → shop.client-BNZ9M8cG.mjs} +56 -19
- package/dist/client/{shop.interactive-CKFORzux.mjs → shop.interactive-CJAINJr3.mjs} +118 -39
- package/dist/client/{shopShared-C7QjoywZ.mjs → shopShared-DwVAuGsx.mjs} +2 -2
- package/dist/client/{timetableModel-CtZiIj9q.mjs → timetableModel-DBTIFWTb.mjs} +11 -148
- package/dist/client/{useAvailableSlots-CUVRD1nx.mjs → useAvailableSlots-BomyyKeo.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-BuLgof7O.mjs → useDiscountCodeUi-CCxHMWlU.mjs} +32 -17
- package/dist/client/{useEventPagination-B4VPtSEF.mjs → useEventPagination-Bjin_qaN.mjs} +7 -6
- package/dist/client/{view-CvlTplao.mjs → view-BTk470k0.mjs} +3 -2
- package/dist/client/{view-CxUpgcM6.mjs → view-Cw4EmEPv.mjs} +100 -32
- package/dist/preview-next/client/{PageSectionToolbar-BFbSrDbi.mjs → PageSectionToolbar-bq7gbKvn.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-BtpzqQ-i.mjs → PreviewEditorSidebar-DVsPNcos.mjs} +32 -29
- package/dist/preview-next/client/{PreviewEditorUI-z22h-CCY.mjs → PreviewEditorUI-B-pq3aZc.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-BW3Qpoa_.mjs → PreviewShell-ChyjB96e.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BvVeK1hR.mjs → SdkPreviewModeRuntime-D_czeC0l.mjs} +84 -101
- package/dist/preview-next/client/{previewAssistantSlot-BUqAh1FL.mjs → previewAssistantSlot-B61mZd81.mjs} +4981 -3275
- package/dist/preview-next/client/{previewChromeRoot-NCy5zHO8.mjs → previewChromeRoot-dwOn9XtM.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CxmKDVGZ.mjs → sdk-runtime-DZDfOxoW.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-B_UaDyJO.mjs → siteStyleAccess-BZDIC-fA.mjs} +529 -238
- package/dist/preview-next/client/{useAutosaveStatus-BqmWvPLY.mjs → useAutosaveStatus-BbzLMf-l.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-LAllV0rU.mjs → useOpenBlockForSetup-BEXcWQeI.mjs} +25 -5
- package/dist/preview-next/container-responsive.css +51 -3
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DV6SeCNv.mjs → route-contract-0gSlK9S0.mjs} +87 -12
- package/dist/server/{Block.shared-Ch2FKAvU.mjs → Block.shared-DeXXycg8.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-DFvjDVzi.mjs → ThemeScopeCore-DFEM1a85.mjs} +16 -2
- package/dist/server/{bindings-CQg2lzZn.mjs → bindings-7L3pC5Os.mjs} +13 -34
- package/dist/server/{client-aYRTVneD.mjs → client-CgghATBm.mjs} +112 -20
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{customCss-BGB8gMVb.mjs → customCss-BZ8YSrQg.mjs} +1 -0
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-Cgpfr44e.mjs → loadContent-D7M5Vcug.mjs} +5 -5
- package/dist/server/{loadPage-RDk10NMP.mjs → loadPage-CiTId05y.mjs} +2 -2
- package/dist/server/{lookMediaFrame-CQtkvlDn.mjs → lookMediaFrame-CaH018pK.mjs} +129 -12
- package/dist/server/next.mjs +35 -9
- package/dist/server/{overrideResolution-VhhN94d8.mjs → overrideResolution-CJ3MRI5Q.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-CkFTsxkd.mjs → pageRenderPlan-Cuos4Xcd.mjs} +105 -357
- package/dist/server/{pageRuntimeSupport-CpAtzNxD.mjs → pageRuntimeSupport-CuVj3bkd.mjs} +4 -3
- package/dist/server/{pageShared-B8yLPjs0.mjs → pageShared-JxlV8_Bo.mjs} +1707 -1811
- package/dist/server/{parseThemeForPersistence-Cwqb5pZx.mjs → parseThemeForPersistence-DOsfofCy.mjs} +1 -1
- package/dist/server/{prebuild-DOu6QceG.mjs → prebuild-BDhlJbAx.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CfOXFKYG.mjs → prefetchBlockData-kERh_c0v.mjs} +2 -2
- package/dist/server/{registry-34rkAfaU.mjs → registry-cQ9N5W-n.mjs} +21091 -20209
- 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 +7 -7
- package/dist/server/{resolveBlockData-D7VeoWgr.mjs → resolveBlockData-CN4UmmTK.mjs} +1 -1
- package/dist/server/{schema-CUDHMirj.mjs → schema-BpsqaSSU.mjs} +2 -2
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{validation-CLVKoJrX.mjs → validation-3puM5SM8.mjs} +3 -3
- package/dist/server/{version-HVfdvBJ0.mjs → version-B8g-Wx57.mjs} +1 -1
- package/dist/styles/index.css +361 -57
- package/package.json +1 -1
- package/dist/client/bookability-CE637yDE.mjs +0 -17
- package/dist/client/useDiscountApply-BZU5DWZQ.mjs +0 -199
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { L as offeringNounForEvent, M as buildEventRegistrationInteractiveIslandProps, N as displayButtonText,
|
|
3
|
-
import { $
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { n as useBlockApi } from "./context-
|
|
8
|
-
import { a as getWaitlistClaimEntryIdFromUrl, i as eventRegistrationCheckoutReturnRequest, o as getWaitlistClaimTokenFromUrl, r as useEventRegistrationWizard, t as EventPaymentMount } from "./EventRegistrationPayment-DPkRcSdw.mjs";
|
|
2
|
+
import { L as offeringNounForEvent, M as buildEventRegistrationInteractiveIslandProps, N as displayButtonText, at as bookingEntryProgress, dt as cancelledDateCopy, ft as hasCancelledRegistrationDate, it as bookingEntry, j as buildEventRegistrationDisplayFromScopedEvents, ln as formatEventPriceDisplay, nt as bookingBarPlacement, ot as bookingPanelHeading, rt as bookingCardEntry, st as courseTitleOf, tt as DEFAULT_BOOKING_BUTTON_TEXT } from "./shop.interactive-CJAINJr3.mjs";
|
|
3
|
+
import { $o as publicEventPricingCurrency, A as areEventRegistrationPaymentSelectionsEqual, Bi as formatPrice, C as getEventSelectionMode, Ci as getRegistrationSuccessCopy, Cn as combinationOfferLine, Cr as shownVenue, Dn as selectionItemName, Dt as resolveFinishedPresentation, Et as confirmationPaymentRows, Fn as formatDate, Hn as getTicketTypeAvailabilityLabel, In as formatEventDateTime, J as settledRemainingPlaces, Ja as resolveEventRegistrationScopedEvents, Jt as SEVERAL_BOOKINGS_ACCOUNT_NOTE, K as resolveRegistrationAvailabilityBlocker, Kn as withOccurrenceTitle, Ln as formatPassCreditUsageLabel, Mn as areEntitlementsDisabledForTicketCount, O as registrationStepLabel, Oo as INCOMPATIBLE_ATTENDANCE_MESSAGE, Pn as formatBookingWhen, Q as normalizeEventRegistrationMaxTickets, R as shouldPromptForLogin, Rn as formatRegistrationSchedule, Un as getVisibleTicketTypes, V as placeCountCeiling, Wn as occurrenceTitleOverride, Yt as canToggleSelectionItem, Z as isEventRegistrationAvailable, _n as severalConfirmationSentence, _o as groupPublicEventsByRun, an as runUnitPriceCents, ar as getTicketLineQuantity, br as placesLeftLabel, cn as selectionConsentLabel, ct as paymentChoicePrice, do as getEventAvailability, fn as selectionItemsLabel, go as selectMostOpenCapacitySource, hn as selectionRowAvailability, ho as selectEventCapacitySource, in as runPricingChoice, jn as ENTITLEMENT_SINGLE_TICKET_TOOLTIP, k as registrationStepLabelContext, ln as selectionEntitlementNote, mn as selectionPlacesNote, mo as isEventFull, nn as runChoiceUsable, ns as publicEventPricingType, on as selectionAtLimit, oo as canJoinEventWaitlist, or as getTicketSelectionTotal, pn as selectionPlacesLabel, po as getRemainingPlaces, qt as SELECTION_LIMIT_NOTE, rn as runNeedsPricingChoice, rr as canRequestTicketOption, sn as selectionConfirmationHint, so as canJoinEventWaitlistOnAnyMode, sr as getTicketTypeLineMax, st as paymentChoiceDetails, t as appliedDiscountHint, ts as publicEventPricingStrategy, un as selectionIncludes, ur as setTicketLineQuantity, w as panelShouldOpen, wn as combinationOffersOf, yr as bookingPresentation, z as fullyBookedLabel, zi as formatCentsAsCurrencyInput, zn as formatTime } from "./display-DMqotaGU.mjs";
|
|
4
|
+
import { n as assertNever, xn as formatCurrencyAmount } from "./noop-DF8_EiFt.mjs";
|
|
5
|
+
import { g as formatCreditProductUnits } from "./creditProducts-BQ1t1erI.mjs";
|
|
6
|
+
import { a as eventSiteTermsSurface, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-Dr5lj4oY.mjs";
|
|
7
|
+
import { n as useBlockApi } from "./context-D8TpQXjX.mjs";
|
|
9
8
|
import { l as SpinnerNode, r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
|
|
10
|
-
import {
|
|
9
|
+
import { f as NavigationHandOffPanel, p as DiscountCodeDisclosure, t as BookingConfirmation } from "./DemoBookingPortalAccess-DGgsjqXK.mjs";
|
|
10
|
+
import { a as getWaitlistClaimEntryIdFromUrl, i as eventRegistrationCheckoutReturnRequest, o as getWaitlistClaimTokenFromUrl, r as useEventRegistrationWizard, t as EventPaymentMount } from "./EventRegistrationPayment-BMmPDmSf.mjs";
|
|
11
11
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
12
12
|
import { t as CheckboxChoice } from "./CheckboxChoice-b-PJLEXe.mjs";
|
|
13
13
|
import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
|
|
14
14
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
15
15
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
16
|
-
import { i as useBookingNowIso } from "./BookingQuestionFields-
|
|
17
|
-
import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-
|
|
16
|
+
import { i as useBookingNowIso } from "./BookingQuestionFields-CUFxBaTM.mjs";
|
|
17
|
+
import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-CCxHMWlU.mjs";
|
|
18
18
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
19
|
-
import { i as BookingConsentAgreement, l as PaymentChoiceRows, n as BookingQuestionSections, r as MagicLinkForm, t as BookingMailingListNote } from "./BookingMailingListNote-
|
|
19
|
+
import { i as BookingConsentAgreement, l as PaymentChoiceRows, n as BookingQuestionSections, r as MagicLinkForm, t as BookingMailingListNote } from "./BookingMailingListNote-qsohSEdQ.mjs";
|
|
20
20
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
21
|
+
import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, n as BookingEntryBar, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-C7RJBOW3.mjs";
|
|
21
22
|
import { t as createLucideIcon } from "./createLucideIcon-BrXgHVKN.mjs";
|
|
22
23
|
import React, { useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
23
24
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -520,10 +521,10 @@ function CombinationPricing(props) {
|
|
|
520
521
|
className: "er-summary-bar-pricing",
|
|
521
522
|
children: [/* @__PURE__ */ jsx("span", {
|
|
522
523
|
className: "er-summary-bar-price er-summary-bar-price--struck",
|
|
523
|
-
children: formatPrice
|
|
524
|
+
children: formatPrice(props.listCents, props.currency)
|
|
524
525
|
}), /* @__PURE__ */ jsx("span", {
|
|
525
526
|
className: "er-summary-bar-price",
|
|
526
|
-
children: formatPrice
|
|
527
|
+
children: formatPrice(props.totalCents, props.currency)
|
|
527
528
|
})]
|
|
528
529
|
});
|
|
529
530
|
}
|
|
@@ -646,16 +647,55 @@ function EntitlementSummaryRow(props) {
|
|
|
646
647
|
productInterval && /* @__PURE__ */ jsx("div", {
|
|
647
648
|
className: "er-summary-bar-product-detail",
|
|
648
649
|
children: productInterval
|
|
650
|
+
}),
|
|
651
|
+
/* @__PURE__ */ jsx(MembershipFirstPayment, {
|
|
652
|
+
firstPaymentCents: props.wizard.membershipFirstPaymentCents,
|
|
653
|
+
priceCents: productPrice,
|
|
654
|
+
currency: productCurrency,
|
|
655
|
+
interval: productInterval
|
|
649
656
|
})
|
|
650
657
|
] }), /* @__PURE__ */ jsx("div", {
|
|
651
658
|
className: "er-summary-bar-product-price",
|
|
652
659
|
children: props.copy.productPrice ? /* @__PURE__ */ jsx("span", {
|
|
653
660
|
className: "er-summary-bar-included",
|
|
654
661
|
children: props.copy.productPrice
|
|
655
|
-
}) : productPrice && productCurrency ?
|
|
662
|
+
}) : productPrice && productCurrency ? /* @__PURE__ */ jsx(ProductPrice, {
|
|
663
|
+
cents: productPrice,
|
|
664
|
+
afterCodeCents: props.wizard.passPriceAfterCodeCents,
|
|
665
|
+
currency: productCurrency
|
|
666
|
+
}) : null
|
|
656
667
|
})]
|
|
657
668
|
});
|
|
658
669
|
}
|
|
670
|
+
/** A membership's discount comes off once, and it renews at the regular price. */
|
|
671
|
+
function MembershipFirstPayment(props) {
|
|
672
|
+
const { firstPaymentCents, priceCents, currency, interval } = props;
|
|
673
|
+
if (firstPaymentCents === null || !priceCents || !currency || interval !== "month" && interval !== "year") return null;
|
|
674
|
+
return /* @__PURE__ */ jsx("div", {
|
|
675
|
+
className: "er-summary-bar-product-detail",
|
|
676
|
+
children: appliedDiscountHint({
|
|
677
|
+
totalAfterDiscountCents: firstPaymentCents,
|
|
678
|
+
currency,
|
|
679
|
+
membership: {
|
|
680
|
+
priceCents,
|
|
681
|
+
billingInterval: interval
|
|
682
|
+
}
|
|
683
|
+
})
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
/** The price, struck through once a code has taken something off a pass. */
|
|
687
|
+
function ProductPrice(props) {
|
|
688
|
+
const { cents, afterCodeCents, currency } = props;
|
|
689
|
+
if (afterCodeCents === null || afterCodeCents >= cents) return /* @__PURE__ */ jsx(Fragment, { children: formatPrice(cents, currency) });
|
|
690
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
691
|
+
/* @__PURE__ */ jsx("span", {
|
|
692
|
+
className: "er-summary-bar-price er-summary-bar-price--struck",
|
|
693
|
+
children: formatPrice(cents, currency)
|
|
694
|
+
}),
|
|
695
|
+
" ",
|
|
696
|
+
formatPrice(afterCodeCents, currency)
|
|
697
|
+
] });
|
|
698
|
+
}
|
|
659
699
|
/** The pass the customer turned down, with the way back to it. */
|
|
660
700
|
function DeclinedPassRow(props) {
|
|
661
701
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -699,9 +739,24 @@ function PaymentProductRow(props) {
|
|
|
699
739
|
function summaryCountLabel(wizard, summaryEvent) {
|
|
700
740
|
if (wizard.severalItems !== null) return selectionPlacesLabel(wizard.severalItems, wizard.selection, wizard.ticketsCount);
|
|
701
741
|
if (wizard.ticketsCount <= 0) return null;
|
|
702
|
-
const
|
|
742
|
+
const tiered = summaryEvent !== null && summaryEvent !== void 0 && publicEventPricingStrategy(summaryEvent.pricing) === "tiered";
|
|
743
|
+
if (tiered) {
|
|
744
|
+
const byType = ticketTypeCountLabel(wizard.selectedTicketLines, wizard.visibleTicketTypes);
|
|
745
|
+
if (byType) return byType;
|
|
746
|
+
}
|
|
747
|
+
const unit = tiered ? "ticket" : "place";
|
|
703
748
|
return `${wizard.ticketsCount} ${unit}${wizard.ticketsCount === 1 ? "" : "s"}`;
|
|
704
749
|
}
|
|
750
|
+
/** "1 Standard, 1 Concession" when tickets of more than one type are chosen; otherwise null. */
|
|
751
|
+
function ticketTypeCountLabel(lines, ticketTypes) {
|
|
752
|
+
const chosen = lines.filter((line) => line.quantity > 0);
|
|
753
|
+
if (chosen.length < 2) return null;
|
|
754
|
+
const parts = chosen.map((line) => {
|
|
755
|
+
const name = ticketTypes.find((type) => type.pricingOptionId === line.pricingOptionId)?.name;
|
|
756
|
+
return name ? `${line.quantity} ${name}` : null;
|
|
757
|
+
});
|
|
758
|
+
return parts.every((part) => part !== null) ? parts.join(", ") : null;
|
|
759
|
+
}
|
|
705
760
|
/**
|
|
706
761
|
* The footer's one line (issue 1581): how many, the discount's name, then
|
|
707
762
|
* when. Ticket types are tickets; a single price, or a course, is places.
|
|
@@ -768,14 +823,6 @@ function DateStepSummary({ event }) {
|
|
|
768
823
|
});
|
|
769
824
|
}
|
|
770
825
|
/**
|
|
771
|
-
* A typed code replaces the automatic one. The automatic code is previewed
|
|
772
|
-
* against the first item only, so several items show none until checkout.
|
|
773
|
-
*/
|
|
774
|
-
function previewedAutoDiscount(wizard) {
|
|
775
|
-
if (wizard.discountCode.trim().length > 0 || wizard.severalItems !== null) return null;
|
|
776
|
-
return wizard.autoAppliedDiscount;
|
|
777
|
-
}
|
|
778
|
-
/**
|
|
779
826
|
* Booking several (issue 1725): how many are ticked and their total. With
|
|
780
827
|
* combination prices the usual total is struck through above the planned
|
|
781
828
|
* one, with the working underneath and the next saving under the bar.
|
|
@@ -809,7 +856,7 @@ function SeveralStepSummary({ wizard }) {
|
|
|
809
856
|
className: "er-summary-bar-pricing",
|
|
810
857
|
children: /* @__PURE__ */ jsx("span", {
|
|
811
858
|
className: "er-summary-bar-price",
|
|
812
|
-
children: formatPrice
|
|
859
|
+
children: formatPrice(total, currency)
|
|
813
860
|
})
|
|
814
861
|
}) : null,
|
|
815
862
|
/* @__PURE__ */ jsx(CombinationDetail, { working })
|
|
@@ -876,7 +923,7 @@ function EventRegistrationSummaryBar(props) {
|
|
|
876
923
|
const teamMemberNames = (summaryEvent?.teamMembers ?? []).map((teamMember) => teamMember.name).filter(Boolean);
|
|
877
924
|
const subtotalCents = wizard.ticketSelectionSubtotalCents;
|
|
878
925
|
if (!summaryTitle || !summaryCurrency || subtotalCents === null) return null;
|
|
879
|
-
const autoAppliedDiscount =
|
|
926
|
+
const autoAppliedDiscount = wizard.autoAppliedDiscount;
|
|
880
927
|
const autoAppliedDiscountCents = Math.max(0, autoAppliedDiscount?.computedAmountCents ?? 0);
|
|
881
928
|
const discountedTotalCents = Math.max(0, subtotalCents - autoAppliedDiscountCents);
|
|
882
929
|
const flexibleBalanceSummary = getFlexibleBalanceSummary(getSelectedDirectPaymentOption(wizard));
|
|
@@ -906,7 +953,7 @@ function EventRegistrationSummaryBar(props) {
|
|
|
906
953
|
/* @__PURE__ */ jsx(SummaryMeta, { facts: meta }),
|
|
907
954
|
teamMemberNames.length > 0 && /* @__PURE__ */ jsxs("div", {
|
|
908
955
|
className: "er-summary-bar-meta",
|
|
909
|
-
children: ["
|
|
956
|
+
children: ["With ", teamMemberNames.join(", ")]
|
|
910
957
|
})
|
|
911
958
|
]
|
|
912
959
|
}),
|
|
@@ -918,21 +965,21 @@ function EventRegistrationSummaryBar(props) {
|
|
|
918
965
|
className: "er-summary-bar-pricing",
|
|
919
966
|
children: productMethod ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
|
|
920
967
|
className: "er-summary-bar-price er-summary-bar-price--struck",
|
|
921
|
-
children: formatPrice
|
|
968
|
+
children: formatPrice(subtotalCents, summaryCurrency)
|
|
922
969
|
}), /* @__PURE__ */ jsx("div", {
|
|
923
970
|
className: "er-summary-bar-included",
|
|
924
971
|
children: entitlementCopy.pricingNote
|
|
925
972
|
})] }) : flexibleBalanceSummary ? /* @__PURE__ */ jsx(FlexibleBalancePricing, {
|
|
926
973
|
summary: flexibleBalanceSummary,
|
|
927
|
-
fallbackDueToday: formatPrice
|
|
974
|
+
fallbackDueToday: formatPrice(discountedTotalCents, summaryCurrency)
|
|
928
975
|
}) : autoAppliedDiscount && autoAppliedDiscountCents > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
929
976
|
/* @__PURE__ */ jsx("span", {
|
|
930
977
|
className: "er-summary-bar-price er-summary-bar-price--struck",
|
|
931
|
-
children: formatPrice
|
|
978
|
+
children: formatPrice(subtotalCents, summaryCurrency)
|
|
932
979
|
}),
|
|
933
980
|
/* @__PURE__ */ jsx("span", {
|
|
934
981
|
className: "er-summary-bar-price",
|
|
935
|
-
children: formatPrice
|
|
982
|
+
children: formatPrice(discountedTotalCents, summaryCurrency)
|
|
936
983
|
}),
|
|
937
984
|
autoAppliedDiscount.description ? /* @__PURE__ */ jsx("div", {
|
|
938
985
|
className: "er-summary-bar-product-detail er-summary-bar-discount-detail",
|
|
@@ -940,7 +987,7 @@ function EventRegistrationSummaryBar(props) {
|
|
|
940
987
|
}) : null
|
|
941
988
|
] }) : /* @__PURE__ */ jsx("span", {
|
|
942
989
|
className: "er-summary-bar-price",
|
|
943
|
-
children: formatPrice
|
|
990
|
+
children: formatPrice(subtotalCents, summaryCurrency)
|
|
944
991
|
})
|
|
945
992
|
}),
|
|
946
993
|
/* @__PURE__ */ jsx(CombinationDetail, { working })
|
|
@@ -1048,7 +1095,10 @@ function EnterDetailsActions(props) {
|
|
|
1048
1095
|
function SelectPaymentActions(props) {
|
|
1049
1096
|
const { wizard } = props;
|
|
1050
1097
|
const { status, canContinue, buttonText } = wizard.paymentStepState;
|
|
1051
|
-
return /* @__PURE__ */ jsxs("
|
|
1098
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [status === "ready" && wizard.paymentHeldForCode ? /* @__PURE__ */ jsx("p", {
|
|
1099
|
+
className: "er-discount__hint",
|
|
1100
|
+
children: "Press Apply to use your discount code, or remove it to carry on without it."
|
|
1101
|
+
}) : null, /* @__PURE__ */ jsxs("div", {
|
|
1052
1102
|
className: "rb-wizard-actions er-actions",
|
|
1053
1103
|
children: [/* @__PURE__ */ jsx("button", {
|
|
1054
1104
|
type: "button",
|
|
@@ -1063,7 +1113,7 @@ function SelectPaymentActions(props) {
|
|
|
1063
1113
|
size: "md",
|
|
1064
1114
|
label: buttonText
|
|
1065
1115
|
})]
|
|
1066
|
-
});
|
|
1116
|
+
})] });
|
|
1067
1117
|
}
|
|
1068
1118
|
/** Stripe owns the Pay button, so the payment footer offers only the way back. */
|
|
1069
1119
|
function PaymentActions(props) {
|
|
@@ -1071,7 +1121,7 @@ function PaymentActions(props) {
|
|
|
1071
1121
|
className: "rb-wizard-actions rb-wizard-actions--back-only er-actions",
|
|
1072
1122
|
children: /* @__PURE__ */ jsx("button", {
|
|
1073
1123
|
type: "button",
|
|
1074
|
-
onClick:
|
|
1124
|
+
onClick: props.wizard.paymentController.check,
|
|
1075
1125
|
className: "er-back-btn",
|
|
1076
1126
|
children: "← Back"
|
|
1077
1127
|
})
|
|
@@ -1426,9 +1476,9 @@ function BookingQuantityPrompt(props) {
|
|
|
1426
1476
|
}
|
|
1427
1477
|
function SlidingScaleAmountField(props) {
|
|
1428
1478
|
const id = props.id ?? "er-sliding-amount";
|
|
1429
|
-
const minLabel = formatPrice
|
|
1430
|
-
const maxLabel = formatPrice
|
|
1431
|
-
const suggestedLabel = props.slidingScale.suggestedAmount !== null ? formatPrice
|
|
1479
|
+
const minLabel = formatPrice(props.slidingScale.minAmount, props.currency);
|
|
1480
|
+
const maxLabel = formatPrice(props.slidingScale.maxAmount, props.currency);
|
|
1481
|
+
const suggestedLabel = props.slidingScale.suggestedAmount !== null ? formatPrice(props.slidingScale.suggestedAmount, props.currency) : null;
|
|
1432
1482
|
return /* @__PURE__ */ jsxs("div", {
|
|
1433
1483
|
className: "er-field",
|
|
1434
1484
|
children: [
|
|
@@ -1482,9 +1532,10 @@ function TicketTypeQuantityRows(props) {
|
|
|
1482
1532
|
const availabilityLabel = getTicketTypeAvailabilityLabel(ticketType);
|
|
1483
1533
|
const ticketTypeRemainingLabel = placesLeftLabel({
|
|
1484
1534
|
kind: "ticketType",
|
|
1485
|
-
remaining: ticketType.availability.remainingPlaces
|
|
1535
|
+
remaining: ticketType.availability.remainingPlaces,
|
|
1536
|
+
dateRemaining: props.availableSpots ?? null
|
|
1486
1537
|
}, props.display);
|
|
1487
|
-
const priceLabel = ticketType.priceAmount > 0 ? formatPrice
|
|
1538
|
+
const priceLabel = ticketType.priceAmount > 0 ? formatPrice(ticketType.priceAmount, props.currency) : "Free";
|
|
1488
1539
|
const maxAllowed = getTicketTypeLineMax({
|
|
1489
1540
|
currentQuantity: quantity,
|
|
1490
1541
|
totalSelectedQuantity,
|
|
@@ -1611,10 +1662,14 @@ function resolveTicketSelectionPricing(event) {
|
|
|
1611
1662
|
currency: event ? publicEventPricingCurrency(event.pricing) : null
|
|
1612
1663
|
};
|
|
1613
1664
|
}
|
|
1614
|
-
|
|
1665
|
+
/** Someone with an invitation is claiming a place, not joining the list. */
|
|
1666
|
+
function waitlistIsOpenTo(source, invitation) {
|
|
1667
|
+
return source && !invitation ? canJoinEventWaitlist(source) : false;
|
|
1668
|
+
}
|
|
1669
|
+
function getTicketSelectionCapacity(event, attendanceMode, display, invitation = null) {
|
|
1615
1670
|
const source = event ? selectEventCapacitySource(event, attendanceMode) : null;
|
|
1616
1671
|
const availability = source ? getEventAvailability(source) : null;
|
|
1617
|
-
const canJoinWaitlist = source
|
|
1672
|
+
const canJoinWaitlist = waitlistIsOpenTo(source, invitation);
|
|
1618
1673
|
return {
|
|
1619
1674
|
availableSpots: availability?.available,
|
|
1620
1675
|
isSoldOut: availability?.isFull ?? false,
|
|
@@ -1661,11 +1716,11 @@ function SelectionNote({ text }) {
|
|
|
1661
1716
|
*
|
|
1662
1717
|
* Can use either a full PublicEvent or just occurrence context (when on event page).
|
|
1663
1718
|
*/
|
|
1664
|
-
const TicketSelectionStep = ({ purpose, event, display, occurrenceContext: _occurrenceContext, selectedAttendanceMode = null, onAttendanceModeChange, ticketsCount, maxTickets, placesCeiling, visibleTicketTypes: visibleTicketTypesOverride, overallRemainingPlaces, heldPlacesBySelection, ticketSelections = [], onTicketSelectionsChange, slidingScale = null, selectedSlidingAmountInput = "", slidingScaleSelectionMessage = null, onSlidingAmountChange, onTicketsChange, bookingUnit = { kind: "ticket" }, selectionNote }) => {
|
|
1719
|
+
const TicketSelectionStep = ({ purpose, event, display, occurrenceContext: _occurrenceContext, selectedAttendanceMode = null, onAttendanceModeChange, ticketsCount, maxTickets, placesCeiling, visibleTicketTypes: visibleTicketTypesOverride, overallRemainingPlaces, heldPlacesBySelection, ticketSelections = [], onTicketSelectionsChange, slidingScale = null, selectedSlidingAmountInput = "", slidingScaleSelectionMessage = null, onSlidingAmountChange, onTicketsChange, bookingUnit = { kind: "ticket" }, selectionNote, invitation = null }) => {
|
|
1665
1720
|
const unit = bookingUnit.kind;
|
|
1666
1721
|
const deliveryMode = event?.deliveryMode ?? "in_person";
|
|
1667
1722
|
const attendanceModes = event?.attendanceModes ?? [];
|
|
1668
|
-
const { availableSpots, isSoldOut, canJoinWaitlist, eventAvailabilityLabel } = getTicketSelectionCapacity(event, selectedAttendanceMode, display);
|
|
1723
|
+
const { availableSpots, isSoldOut, canJoinWaitlist, eventAvailabilityLabel } = getTicketSelectionCapacity(event, selectedAttendanceMode, display, invitation);
|
|
1669
1724
|
const { mode: eventPricingMode, currency: eventPricingCurrency } = resolveTicketSelectionPricing(event);
|
|
1670
1725
|
const usesTicketTypes = eventPricingMode === "tiered";
|
|
1671
1726
|
const visibleTicketTypes = usesTicketTypes ? visibleTicketTypesOverride ?? getVisibleTicketTypes({
|
|
@@ -1758,17 +1813,36 @@ const TicketSelectionStep = ({ purpose, event, display, occurrenceContext: _occu
|
|
|
1758
1813
|
})
|
|
1759
1814
|
] }),
|
|
1760
1815
|
/* @__PURE__ */ jsx(SelectionNote, { text: selectionNote }),
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
}) })
|
|
1816
|
+
/* @__PURE__ */ jsx(PlacesNote, {
|
|
1817
|
+
invitation,
|
|
1818
|
+
isSoldOut,
|
|
1819
|
+
canJoinWaitlist,
|
|
1820
|
+
ticketsCount,
|
|
1821
|
+
event
|
|
1822
|
+
})
|
|
1769
1823
|
]
|
|
1770
1824
|
});
|
|
1771
1825
|
};
|
|
1826
|
+
function PlacesNote({ invitation, isSoldOut, canJoinWaitlist, ticketsCount, event }) {
|
|
1827
|
+
if (invitation?.kind === "held") return /* @__PURE__ */ jsx("p", {
|
|
1828
|
+
className: "er-text",
|
|
1829
|
+
children: heldPlaceText(ticketsCount, invitation.expiresAt, event)
|
|
1830
|
+
});
|
|
1831
|
+
if (invitation) return null;
|
|
1832
|
+
if (canJoinWaitlist) return /* @__PURE__ */ jsx("p", {
|
|
1833
|
+
className: "er-text er-text--muted",
|
|
1834
|
+
children: "This event is currently full. Continue to join the waitlist if a place opens up."
|
|
1835
|
+
});
|
|
1836
|
+
return isSoldOut ? /* @__PURE__ */ jsx("p", {
|
|
1837
|
+
className: "er-text er-text--muted",
|
|
1838
|
+
children: "This event is fully booked."
|
|
1839
|
+
}) : null;
|
|
1840
|
+
}
|
|
1841
|
+
/** How long the invitation holds their place, in the event's own time zone. */
|
|
1842
|
+
function heldPlaceText(places, expiresAt, event) {
|
|
1843
|
+
const held = places === 1 ? "We’re holding a place for you" : `We’re holding ${places} places for you`;
|
|
1844
|
+
return event ? `${held} until ${formatTime(expiresAt, event)} on ${formatDate(expiresAt, event)}. Continue to book before then.` : `${held}. Continue to book.`;
|
|
1845
|
+
}
|
|
1772
1846
|
function resolveRemainingPlacesOverride(override, cached) {
|
|
1773
1847
|
return override === void 0 ? cached : override;
|
|
1774
1848
|
}
|
|
@@ -1792,7 +1866,7 @@ function RunTicketTypeChoice({ run, name, choice, facts, onChange }) {
|
|
|
1792
1866
|
id: option.id,
|
|
1793
1867
|
label: option.name,
|
|
1794
1868
|
details: option.description ? [option.description] : [],
|
|
1795
|
-
price: option.priceAmount > 0 ? formatPrice
|
|
1869
|
+
price: option.priceAmount > 0 ? formatPrice(option.priceAmount, currency) : "Free",
|
|
1796
1870
|
selected: choice.pricingOptionId === option.id,
|
|
1797
1871
|
disabled: !usable,
|
|
1798
1872
|
disabledReason: usable ? void 0 : "Not available",
|
|
@@ -1929,110 +2003,98 @@ function SeveralRunsTicketStep(props) {
|
|
|
1929
2003
|
}
|
|
1930
2004
|
//#endregion
|
|
1931
2005
|
//#region ../blocks/src/system/runtime/nodes/event-registration/SelectionPaymentSummary.tsx
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
const money =
|
|
1950
|
-
return /* @__PURE__ */ jsxs(
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
label: summary.placesLabel,
|
|
1969
|
-
value: money(summary.subtotalCents)
|
|
1970
|
-
},
|
|
1971
|
-
...summary.reductions.map((row) => ({
|
|
1972
|
-
key: row.key,
|
|
1973
|
-
label: row.label,
|
|
1974
|
-
value: `−${money(row.amountCents)}`
|
|
1975
|
-
})),
|
|
1976
|
-
{
|
|
1977
|
-
key: "total",
|
|
1978
|
-
label: "Total",
|
|
1979
|
-
value: money(summary.totalCents)
|
|
1980
|
-
}
|
|
1981
|
-
] })
|
|
1982
|
-
})]
|
|
1983
|
-
}),
|
|
1984
|
-
summary.note ? /* @__PURE__ */ jsx("p", {
|
|
1985
|
-
className: "er-combination-note",
|
|
1986
|
-
role: "status",
|
|
1987
|
-
children: summary.note
|
|
1988
|
-
}) : null,
|
|
1989
|
-
summary.savingCents !== null ? /* @__PURE__ */ jsxs("p", {
|
|
1990
|
-
className: "er-combination-saving",
|
|
1991
|
-
children: ["You save ", money(summary.savingCents)]
|
|
1992
|
-
}) : null
|
|
1993
|
-
] });
|
|
2006
|
+
function Lines(props) {
|
|
2007
|
+
return /* @__PURE__ */ jsx("dl", {
|
|
2008
|
+
className: "er-selection-payment__lines",
|
|
2009
|
+
children: props.lines.map((line) => /* @__PURE__ */ jsxs("div", {
|
|
2010
|
+
className: "er-confirmation-summary__row",
|
|
2011
|
+
children: [/* @__PURE__ */ jsxs("dt", { children: [line.label, line.multiplier ? /* @__PURE__ */ jsxs("span", {
|
|
2012
|
+
className: "er-selection-payment__multiplier",
|
|
2013
|
+
children: [
|
|
2014
|
+
line.multiplier.places,
|
|
2015
|
+
" × ",
|
|
2016
|
+
props.money(line.multiplier.unitPriceCents)
|
|
2017
|
+
]
|
|
2018
|
+
}) : null] }), /* @__PURE__ */ jsx("dd", { children: props.money(line.amountCents) })]
|
|
2019
|
+
}, line.key))
|
|
2020
|
+
});
|
|
2021
|
+
}
|
|
2022
|
+
function Totals(props) {
|
|
2023
|
+
const { money } = props;
|
|
2024
|
+
return /* @__PURE__ */ jsxs("dl", {
|
|
2025
|
+
className: "er-selection-payment__lines er-selection-payment__totals",
|
|
2026
|
+
children: [[...props.subtotalCents === null ? [] : [{
|
|
2027
|
+
key: "subtotal",
|
|
2028
|
+
label: "Subtotal",
|
|
2029
|
+
value: money(props.subtotalCents)
|
|
2030
|
+
}], ...props.reductions.map((row) => ({
|
|
2031
|
+
key: row.key,
|
|
2032
|
+
label: row.label,
|
|
2033
|
+
value: `−${money(row.amountCents)}`
|
|
2034
|
+
}))].map((row) => /* @__PURE__ */ jsxs("div", {
|
|
2035
|
+
className: "er-confirmation-summary__row",
|
|
2036
|
+
children: [/* @__PURE__ */ jsx("dt", { children: row.label }), /* @__PURE__ */ jsx("dd", { children: row.value })]
|
|
2037
|
+
}, row.key)), /* @__PURE__ */ jsxs("div", {
|
|
2038
|
+
className: "er-confirmation-summary__row er-selection-payment__total",
|
|
2039
|
+
children: [/* @__PURE__ */ jsx("dt", { children: "Total" }), /* @__PURE__ */ jsx("dd", { children: money(props.totalCents) })]
|
|
2040
|
+
})]
|
|
2041
|
+
});
|
|
1994
2042
|
}
|
|
1995
2043
|
/**
|
|
1996
|
-
* What several items cost, above the payment choice (issue 1725):
|
|
1997
|
-
*
|
|
1998
|
-
*
|
|
2044
|
+
* What several items cost, above the payment choice (issue 1725): the items
|
|
2045
|
+
* and places as a caption, each item at what all its places cost, then the
|
|
2046
|
+
* total (after a subtotal and any code when something comes off). With
|
|
2047
|
+
* combination prices the items are grouped by combination, with the note
|
|
2048
|
+
* and saving under the list.
|
|
1999
2049
|
*/
|
|
2000
2050
|
function SelectionPaymentSummary(props) {
|
|
2001
2051
|
const { summary, currency } = props;
|
|
2052
|
+
const money = (cents) => formatCurrencyAmount(cents, currency);
|
|
2053
|
+
const groups = summary.kind === "combined" ? summary.groups : [{
|
|
2054
|
+
key: "items",
|
|
2055
|
+
heading: null,
|
|
2056
|
+
lines: summary.lines
|
|
2057
|
+
}];
|
|
2002
2058
|
return /* @__PURE__ */ jsxs("div", {
|
|
2003
2059
|
className: "rb-reg-stack er-stack er-selection-payment-summary",
|
|
2004
|
-
children: [
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2060
|
+
children: [
|
|
2061
|
+
/* @__PURE__ */ jsx("h3", {
|
|
2062
|
+
tabIndex: -1,
|
|
2063
|
+
className: "er-title",
|
|
2064
|
+
children: "Your booking"
|
|
2065
|
+
}),
|
|
2066
|
+
/* @__PURE__ */ jsxs("div", {
|
|
2067
|
+
className: "er-confirmation-summary er-selection-payment",
|
|
2068
|
+
children: [
|
|
2069
|
+
/* @__PURE__ */ jsx("p", {
|
|
2070
|
+
className: "er-selection-payment__caption",
|
|
2071
|
+
children: summary.caption
|
|
2072
|
+
}),
|
|
2073
|
+
groups.map((group) => /* @__PURE__ */ jsxs(React.Fragment, { children: [group.heading ? /* @__PURE__ */ jsx("p", {
|
|
2074
|
+
className: "er-selection-payment__group",
|
|
2075
|
+
children: group.heading
|
|
2076
|
+
}) : null, /* @__PURE__ */ jsx(Lines, {
|
|
2077
|
+
lines: group.lines,
|
|
2078
|
+
money
|
|
2079
|
+
})] }, group.key)),
|
|
2080
|
+
/* @__PURE__ */ jsx(Totals, {
|
|
2081
|
+
subtotalCents: summary.subtotalCents,
|
|
2082
|
+
reductions: summary.reductions,
|
|
2083
|
+
totalCents: summary.totalCents,
|
|
2084
|
+
money
|
|
2085
|
+
})
|
|
2086
|
+
]
|
|
2087
|
+
}),
|
|
2088
|
+
summary.kind === "combined" && summary.note ? /* @__PURE__ */ jsx("p", {
|
|
2089
|
+
className: "er-combination-note",
|
|
2090
|
+
role: "status",
|
|
2091
|
+
children: summary.note
|
|
2092
|
+
}) : null,
|
|
2093
|
+
summary.kind === "combined" && summary.savingCents !== null ? /* @__PURE__ */ jsxs("p", {
|
|
2094
|
+
className: "er-combination-saving",
|
|
2095
|
+
children: ["You save ", money(summary.savingCents)]
|
|
2096
|
+
}) : null
|
|
2097
|
+
]
|
|
2036
2098
|
});
|
|
2037
2099
|
}
|
|
2038
2100
|
//#endregion
|
|
@@ -2928,7 +2990,7 @@ function SiteCreditPreviewPanel(props) {
|
|
|
2928
2990
|
children: [
|
|
2929
2991
|
"You have",
|
|
2930
2992
|
" ",
|
|
2931
|
-
formatPrice
|
|
2993
|
+
formatPrice(preview.availableCreditCents, preview.creditCurrency),
|
|
2932
2994
|
" ",
|
|
2933
2995
|
"in site credit, but it can't be used for this",
|
|
2934
2996
|
" ",
|
|
@@ -2947,18 +3009,18 @@ function SiteCreditPreviewPanel(props) {
|
|
|
2947
3009
|
}),
|
|
2948
3010
|
/* @__PURE__ */ jsxs("p", {
|
|
2949
3011
|
className: "er-text",
|
|
2950
|
-
children: ["Available: ", formatPrice
|
|
3012
|
+
children: ["Available: ", formatPrice(preview.availableCreditCents, props.currency)]
|
|
2951
3013
|
}),
|
|
2952
3014
|
/* @__PURE__ */ jsx("p", {
|
|
2953
3015
|
className: "er-text",
|
|
2954
|
-
children: preview.outcome === "credit_only" ? `Your credit covers this registration. ${formatPrice
|
|
3016
|
+
children: preview.outcome === "credit_only" ? `Your credit covers this registration. ${formatPrice(preview.appliedCreditCents, props.currency)} will be used and no card payment is needed.` : preview.cardDueNowCents === 0 ? `${formatPrice(preview.appliedCreditCents, props.currency)} will be applied automatically. No card payment is needed today.` : `${formatPrice(preview.appliedCreditCents, props.currency)} will be applied automatically. ${formatPrice(preview.cardDueNowCents, props.currency)} is due by card today.`
|
|
2955
3017
|
}),
|
|
2956
3018
|
preview.laterBalanceCents > 0 && /* @__PURE__ */ jsxs("p", {
|
|
2957
3019
|
className: "er-text er-text--muted",
|
|
2958
3020
|
children: [
|
|
2959
3021
|
"Remaining balance after today:",
|
|
2960
3022
|
" ",
|
|
2961
|
-
formatPrice
|
|
3023
|
+
formatPrice(preview.laterBalanceCents, props.currency)
|
|
2962
3024
|
]
|
|
2963
3025
|
}),
|
|
2964
3026
|
preview.remainingCreditCents > 0 && /* @__PURE__ */ jsxs("p", {
|
|
@@ -2966,7 +3028,7 @@ function SiteCreditPreviewPanel(props) {
|
|
|
2966
3028
|
children: [
|
|
2967
3029
|
"Credit left afterwards:",
|
|
2968
3030
|
" ",
|
|
2969
|
-
formatPrice
|
|
3031
|
+
formatPrice(preview.remainingCreditCents, props.currency)
|
|
2970
3032
|
]
|
|
2971
3033
|
}),
|
|
2972
3034
|
preview.manualDiscountPending && /* @__PURE__ */ jsx("p", {
|
|
@@ -3076,8 +3138,8 @@ function purchasablePassChoices(eligibility) {
|
|
|
3076
3138
|
productCurrency: pass.currency
|
|
3077
3139
|
},
|
|
3078
3140
|
label: pass.name,
|
|
3079
|
-
details: [
|
|
3080
|
-
price: formatPrice
|
|
3141
|
+
details: [formatCreditProductUnits("event_pass", pass.creditsTotal), ...pass.description ? [pass.description] : []],
|
|
3142
|
+
price: formatPrice(pass.price, pass.currency)
|
|
3081
3143
|
}));
|
|
3082
3144
|
}
|
|
3083
3145
|
function purchasableMembershipChoices(eligibility) {
|
|
@@ -3093,7 +3155,7 @@ function purchasableMembershipChoices(eligibility) {
|
|
|
3093
3155
|
},
|
|
3094
3156
|
label: membership.name,
|
|
3095
3157
|
details: membership.description ? [membership.description] : [],
|
|
3096
|
-
price: `${formatPrice
|
|
3158
|
+
price: `${formatPrice(membership.price, membership.currency)}/${membership.interval}`
|
|
3097
3159
|
}));
|
|
3098
3160
|
}
|
|
3099
3161
|
/** Passes and memberships, when the selection can use them (one item, issue 1725). */
|
|
@@ -3477,39 +3539,61 @@ function selectionConsent(wizard) {
|
|
|
3477
3539
|
checkboxLabel: selectionConsentLabel(wizard.severalItems, wizard.selection.length, consent.checkboxLabel)
|
|
3478
3540
|
};
|
|
3479
3541
|
}
|
|
3542
|
+
/**
|
|
3543
|
+
* A reminder before payment, without stopping them: people book for friends.
|
|
3544
|
+
* Signed-in clients only, whose bookings are theirs to see. A typed-in address
|
|
3545
|
+
* is never looked up, so a visitor can't learn who has booked.
|
|
3546
|
+
*/
|
|
3547
|
+
function AlreadyBookedNote({ wizard }) {
|
|
3548
|
+
const existing = summariseExistingBookings(wizard.existingRegistrations);
|
|
3549
|
+
if (wizard.portalAuthState !== "authenticated" || existing.kind !== "booked") return null;
|
|
3550
|
+
return /* @__PURE__ */ jsxs("p", {
|
|
3551
|
+
role: "status",
|
|
3552
|
+
className: "er-text",
|
|
3553
|
+
children: [
|
|
3554
|
+
"You’re already booked for this date (",
|
|
3555
|
+
existing.detail,
|
|
3556
|
+
"). You can still book again, for a friend say. It’ll be a separate booking."
|
|
3557
|
+
]
|
|
3558
|
+
});
|
|
3559
|
+
}
|
|
3480
3560
|
function AttendeeDetailsContent(props) {
|
|
3481
3561
|
const { wizard } = props;
|
|
3482
3562
|
const membership = heroMembership(wizard);
|
|
3483
3563
|
const perRun = wizard.requirementsLayout.kind === "per_run";
|
|
3484
3564
|
const consent = perRun ? null : selectionConsent(wizard);
|
|
3485
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3565
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3566
|
+
membership && /* @__PURE__ */ jsx(MembershipHero, { membershipName: membership.membershipName }),
|
|
3567
|
+
/* @__PURE__ */ jsx(AlreadyBookedNote, { wizard }),
|
|
3568
|
+
/* @__PURE__ */ jsx(AttendeeDetailsStep, {
|
|
3569
|
+
formData: wizard.formData,
|
|
3570
|
+
onChange: wizard.setFormData,
|
|
3571
|
+
errors: wizard.errors,
|
|
3572
|
+
emailLocked: wizard.portalAuthState === "authenticated",
|
|
3573
|
+
onLogout: wizard.portalAuthState === "authenticated" ? wizard.handleLogout : void 0,
|
|
3574
|
+
ticketsCount: wizard.ticketsCount,
|
|
3575
|
+
requireGuestDetails: wizard.requireGuestDetails,
|
|
3576
|
+
guests: wizard.guests,
|
|
3577
|
+
onGuestsChange: wizard.setGuests,
|
|
3578
|
+
guestErrors: wizard.guestErrors,
|
|
3579
|
+
guestSectionShake: wizard.guestSectionShake,
|
|
3580
|
+
onGuestShakeEnd: wizard.handleGuestShakeEnd,
|
|
3581
|
+
consent,
|
|
3582
|
+
confirmationHint: selectionConfirmationHint(wizard.severalItems),
|
|
3583
|
+
mailingListSignup: wizard.mailingListSignup,
|
|
3584
|
+
bookingQuestions: perRun ? null : wizard.bookingQuestions,
|
|
3585
|
+
runRequirements: perRun ? wizard.runRequirementSections : null,
|
|
3586
|
+
questionsMessage: wizard.questionsMessage,
|
|
3587
|
+
siteTerms: /* @__PURE__ */ jsx(SiteTermsAgreementField, {
|
|
3588
|
+
agreement: wizard.siteTerms.view,
|
|
3589
|
+
onChange: wizard.siteTerms.onChange,
|
|
3590
|
+
error: wizard.siteTerms.error,
|
|
3591
|
+
disabled: wizard.siteTerms.disabled,
|
|
3592
|
+
requiredMark: "none"
|
|
3593
|
+
}),
|
|
3594
|
+
siteTermsNotice: /* @__PURE__ */ jsx(SiteTermsChangedNotice, { message: wizard.siteTerms.notice })
|
|
3595
|
+
})
|
|
3596
|
+
] });
|
|
3513
3597
|
}
|
|
3514
3598
|
function EventDiscountCodeDisclosure(props) {
|
|
3515
3599
|
const { wizard } = props;
|
|
@@ -3533,6 +3617,7 @@ function EventDiscountCodeDisclosure(props) {
|
|
|
3533
3617
|
wizard.setDiscountCode("");
|
|
3534
3618
|
wizard.setDiscountUiOpen(false);
|
|
3535
3619
|
},
|
|
3620
|
+
applied: preview?.feedback?.tone === "success",
|
|
3536
3621
|
id: "er-discount-code",
|
|
3537
3622
|
...preview ? {
|
|
3538
3623
|
onApply: () => void preview.apply(),
|
|
@@ -3610,6 +3695,13 @@ function ClosedAdmissionNotice({ wizard }) {
|
|
|
3610
3695
|
children: admission.message
|
|
3611
3696
|
}) : null;
|
|
3612
3697
|
}
|
|
3698
|
+
function ticketStepInvitation(claim) {
|
|
3699
|
+
if (claim.kind === "none") return null;
|
|
3700
|
+
return claim.kind === "ready" ? {
|
|
3701
|
+
kind: "held",
|
|
3702
|
+
expiresAt: claim.claim.expiresAt
|
|
3703
|
+
} : { kind: "pending" };
|
|
3704
|
+
}
|
|
3613
3705
|
function TicketSelectionContent({ wizard, display }) {
|
|
3614
3706
|
if (!wizard.selectedEvent && !wizard.occurrenceContext) return null;
|
|
3615
3707
|
const isWaitlisted = wizard.admission.kind === "closed" && wizard.admission.reason === "alreadyWaitlisted";
|
|
@@ -3630,6 +3722,7 @@ function TicketSelectionContent({ wizard, display }) {
|
|
|
3630
3722
|
}) : /* @__PURE__ */ jsx(TicketSelectionStep, {
|
|
3631
3723
|
purpose: wizard.ticketSelectionPurpose,
|
|
3632
3724
|
display,
|
|
3725
|
+
invitation: ticketStepInvitation(wizard.waitlistClaim),
|
|
3633
3726
|
event: wizard.selectedEvent,
|
|
3634
3727
|
occurrenceContext: wizard.occurrenceContext,
|
|
3635
3728
|
selectedAttendanceMode: wizard.selectedAttendanceMode,
|
|
@@ -3727,8 +3820,8 @@ function presentation(state) {
|
|
|
3727
3820
|
action: { label: "Check payment status" }
|
|
3728
3821
|
};
|
|
3729
3822
|
case "paymentAvailable": return {
|
|
3730
|
-
title: "Your
|
|
3731
|
-
message: "
|
|
3823
|
+
title: "Your booking isn’t finished yet",
|
|
3824
|
+
message: "We’re holding your place. Continue to payment to finish your booking.",
|
|
3732
3825
|
action: { label: "Continue to payment" }
|
|
3733
3826
|
};
|
|
3734
3827
|
case "retryAvailable": return {
|
|
@@ -3837,6 +3930,10 @@ function EventRegistrationMagicLinkModal(props) {
|
|
|
3837
3930
|
title: "Sign in with email",
|
|
3838
3931
|
titleId: "event-registration-sign-in-title",
|
|
3839
3932
|
onClose: () => wizard.setShowMagicLinkModal(false),
|
|
3933
|
+
portal: props.portalRoot != null,
|
|
3934
|
+
portalRoot: props.portalRoot,
|
|
3935
|
+
portalWrapperClassName: props.registrationRootClassName,
|
|
3936
|
+
portalWrapperProps: { "data-block": "event-registration" },
|
|
3840
3937
|
overlayClassName: "er-modal-overlay",
|
|
3841
3938
|
modalClassName: "er-modal",
|
|
3842
3939
|
titleClassName: "er-modal-title",
|
|
@@ -4033,7 +4130,11 @@ function EventRegistrationSurface(props) {
|
|
|
4033
4130
|
demoEmailSuppressed: props.demoEmailSuppressed
|
|
4034
4131
|
})
|
|
4035
4132
|
}), /* @__PURE__ */ jsx(WholeScreenFooter, { action: wholeScreenAction(presentation, props) })]
|
|
4036
|
-
}), /* @__PURE__ */ jsx(EventRegistrationMagicLinkModal, {
|
|
4133
|
+
}), /* @__PURE__ */ jsx(EventRegistrationMagicLinkModal, {
|
|
4134
|
+
wizard,
|
|
4135
|
+
portalRoot: props.variant === "inPlace" ? props.floatingPortalRoot : null,
|
|
4136
|
+
registrationRootClassName: props.registrationRootClassName
|
|
4137
|
+
})]
|
|
4037
4138
|
});
|
|
4038
4139
|
}
|
|
4039
4140
|
function RegistrationProcessing({ selection }) {
|
|
@@ -4262,6 +4363,8 @@ function EventRegistrationWizardView(viewProps) {
|
|
|
4262
4363
|
});
|
|
4263
4364
|
const renderRegistrationSurface = (variant) => /* @__PURE__ */ jsx(EventRegistrationSurface, {
|
|
4264
4365
|
variant,
|
|
4366
|
+
floatingPortalRoot,
|
|
4367
|
+
registrationRootClassName,
|
|
4265
4368
|
wizard,
|
|
4266
4369
|
presentation,
|
|
4267
4370
|
stepLabelContext,
|
|
@@ -4523,6 +4626,10 @@ const EventRegistrationClient = (clientProps) => {
|
|
|
4523
4626
|
nextBoundary: startsAt ?? null
|
|
4524
4627
|
})) ? startsAt ?? null : null
|
|
4525
4628
|
});
|
|
4629
|
+
if (hasCancelledRegistrationDate(clientProps.events ?? [], clientProps.occurrenceContext?.id)) return /* @__PURE__ */ jsx(RegistrationClosedState, {
|
|
4630
|
+
title: cancelledDateCopy.titleText,
|
|
4631
|
+
body: cancelledDateCopy.bodyText
|
|
4632
|
+
});
|
|
4526
4633
|
switch (presentation.kind) {
|
|
4527
4634
|
case "wizard": return /* @__PURE__ */ jsx(EventRegistrationWizard, { ...clientProps });
|
|
4528
4635
|
case "unavailable": return /* @__PURE__ */ jsx("div", {
|