@riverbankcms/sdk 0.174.1 → 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-YRmc-Yxz.d.ts → BlocksIslandsHydrator-hb2IWD8K.d.ts} +1 -1
- package/dist/_dts/{Page-Du0zX1B-.d.ts → Page-BlY68ZF-.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-4L8v3FkY.d.ts → SdkPreviewMode-CA8hU7hW.d.ts} +2 -2
- package/dist/_dts/{client-B1J6Akyf.d.ts → client-B6tCvmG4.d.ts} +487 -11
- package/dist/_dts/{content-types-CGGYI0u_.d.ts → content-types-B9qryk4R.d.ts} +2 -2
- package/dist/_dts/{contracts-CHMlw9hT.d.ts → contracts-DWoaRxj1.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DIHSU1Vr.d.ts → footerPageOutline-Djdrhp5s.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-JITXD6BU.d.ts → generatePageMetadata-CFi0vxov.d.ts} +2 -2
- package/dist/_dts/{index-yWDbUojb.d.ts → index-Bl5_pjmq.d.ts} +1 -1
- package/dist/_dts/{index-CF62FntA.d.ts → index-Btp5nIoz.d.ts} +2 -2
- package/dist/_dts/{index-BLEKFHt1.d.ts → index-CQUzwOxO.d.ts} +1 -1
- package/dist/_dts/{index-D9ZYmGAJ.d.ts → index-DmhFb6R1.d.ts} +1 -1
- package/dist/_dts/{index-CXZSy_9M.d.ts → index-OtazQE3U.d.ts} +2 -2
- package/dist/_dts/{index-BgOr1Xyz.d.ts → index-YRQulWB4.d.ts} +3 -3
- package/dist/_dts/{index-DpJm0NpL.d.ts → index-_pXaCO12.d.ts} +4 -4
- package/dist/_dts/{loadContent-M-s0p0rq.d.ts → loadContent-Hcuvs4pz.d.ts} +7 -7
- package/dist/_dts/{request-BK-pHf0P.d.ts → request-BT8i_vH-.d.ts} +1621 -385
- package/dist/_dts/{resolveBlockData-DZAlnhwt.d.ts → resolveBlockData-B-dJrunl.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-DXUCWJ3y.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-DjVNADXR.d.ts → types-C0XZnjXz.d.ts} +3 -3
- package/dist/_dts/{types-CwmB2NHU.d.ts → types-CXL1QJSY.d.ts} +7 -7
- package/dist/_dts/{types-Dmow_FI6.d.ts → types-OKzbqRBx.d.ts} +2 -2
- package/dist/_dts/{validation-h8t1HLlL.d.ts → validation-Bxi66FtQ.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DRVx_XLi.mjs → BlocksIslandsHydrator-2xzlERTG.mjs} +17 -16
- package/dist/client/{BookingMailingListNote-CwrMzj-k.mjs → BookingMailingListNote-qsohSEdQ.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-C2_hFT6K.mjs → BookingPanelArrangement-DrdtON0q.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-DZMrGvBh.mjs → BookingQuestionFields-CUFxBaTM.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-Az1-TIEI.mjs → CalendarNavigationChevron-Ch0w0Utn.mjs} +34 -9
- package/dist/client/DemoBookingPortalAccess-DGgsjqXK.mjs +545 -0
- package/dist/client/{EventCalendar.client-CDkkP-Lv.mjs → EventCalendar.client-Dg4PHFJJ.mjs} +15 -25
- package/dist/client/{EventCombined.client-DK3aaz62.mjs → EventCombined.client-tky8JcnQ.mjs} +25 -17
- package/dist/client/{EventItem-WeUipfIP.mjs → EventItem-BybMSKNL.mjs} +4 -3
- package/dist/client/{EventListWeekNavigation-D3sbAeDo.mjs → EventListWeekNavigation-uvWRE5wi.mjs} +1 -1
- package/dist/client/{EventListing.client-DL3gGGmF.mjs → EventListing.client-DQx9dohz.mjs} +3 -3
- package/dist/client/{EventListing.view-DKFImKOx.mjs → EventListing.view-r31k8Icz.mjs} +8 -7
- package/dist/client/{EventRegistrationPayment-Dn9TpWyL.mjs → EventRegistrationPayment-BMmPDmSf.mjs} +635 -359
- 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-BpeP9xdt.mjs → Page-CWN_8cLZ.mjs} +601 -579
- package/dist/client/{DemoBookingPortalAccess-1p-pJ1lg.mjs → SiteTermsAgreementField-Dr5lj4oY.mjs} +4 -301
- package/dist/client/{StepIndicator-CP6zrwkl.mjs → StepIndicator-C7RJBOW3.mjs} +37 -12
- package/dist/client/{accordion-nR7D4m1a.mjs → accordion-uUi_N6mZ.mjs} +1 -1
- package/dist/client/{booking-form.client-Ce-mQZ7W.mjs → booking-form.client-CKHgxvsh.mjs} +229 -42
- package/dist/client/{bookingForm-B-qT_AQB.mjs → bookingForm-Bi74dmiS.mjs} +4 -4
- package/dist/client/bookings.mjs +22 -15
- package/dist/client/{boxStyleClassNames-CrE3TDpW.mjs → boxStyleClassNames-C-gFwhnO.mjs} +2 -1
- package/dist/client/{carousel-CVUOatsY.mjs → carousel-C0_BqMA0.mjs} +1 -1
- package/dist/client/{cart-DE0K6E0R.mjs → cart-BOHuppVu.mjs} +3 -3
- package/dist/client/{cart.client-C23E6WQ5.mjs → cart.client-IfJE1zAp.mjs} +1 -1
- package/dist/client/{checkout-76cdHyPL.mjs → checkout-C3Aj-aNa.mjs} +3 -3
- package/dist/client/{checkout.client-DJOzqb26.mjs → checkout.client-Tg9lfeYf.mjs} +1 -1
- package/dist/client/{checkoutUrls-CvIP5DCO.mjs → checkoutUrls-OLqQdAXD.mjs} +1 -1
- package/dist/client/client.mjs +112 -21
- package/dist/client/{context-CNlesLfF.mjs → context-D8TpQXjX.mjs} +76 -58
- package/dist/client/{course-DHIrXqNT.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-5GD5o4Mt.mjs → enhanceHeaderSection-Ciuhsk0E.mjs} +3 -3
- package/dist/client/{event-details.client-D7Oz1q2L.mjs → event-details.client-CJapNbTv.mjs} +1 -1
- package/dist/client/{event-registration.client-zbuX36aA.mjs → event-registration.client-CAdcpnLc.mjs} +176 -75
- package/dist/client/{eventCalendar-uZrksODt.mjs → eventCalendar-BlsD5R8M.mjs} +4 -4
- package/dist/client/{eventCombined-DxhvNAx8.mjs → eventCombined-B9Ly3024.mjs} +4 -4
- package/dist/client/{eventDetails-DCIH4BYG.mjs → eventDetails-CbEGI4jO.mjs} +2 -2
- package/dist/client/{eventListing-B9KrnPvc.mjs → eventListing-ZSmvhWII.mjs} +4 -4
- package/dist/client/{eventRegistration-TjnURMKl.mjs → eventRegistration-D-yUcIyO.mjs} +4 -4
- package/dist/client/{form-CfqIAhfN.mjs → form-DG_YZSNn.mjs} +3 -3
- package/dist/client/{form.client-CL6fF0cW.mjs → form.client-BU6dM0-C.mjs} +4 -4
- package/dist/client/{form.parts-Bf-L66Gg.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-WVXtOcuW.mjs → headerSection-D91EzlOR.mjs} +2 -2
- package/dist/client/{display-Cf_j5stk.mjs → lookSurfaces-BDZLALxj.mjs} +2951 -14395
- package/dist/client/{newsletter-form.client-Bb7GAZpO.mjs → newsletter-form.client-BMGRiRpo.mjs} +7 -5
- package/dist/client/{newsletter-form.parts-BqOVRdIc.mjs → newsletter-form.parts-D5UfUaD3.mjs} +3 -3
- package/dist/client/{newsletterForm-DOVe-qY3.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-CNzeFnFf.mjs → product-detail.client-D-XNir0m.mjs} +1 -1
- package/dist/client/{product-list.client-LKpzC7pj.mjs → product-list.client-BLfYQ-qi.mjs} +1 -1
- package/dist/client/{productDetail-D2JNeEgx.mjs → productDetail-W0_0lDGe.mjs} +3 -3
- package/dist/client/{productList-DTgZXOEq.mjs → productList-ayAtPJdb.mjs} +3 -3
- package/dist/client/{propsDecoder-mpBQt2AT.mjs → propsDecoder-ChYKWjLA.mjs} +4 -3
- package/dist/client/{registry.server-DdTJyar2.mjs → registry.server-B1EEZkcr.mjs} +307 -240
- package/dist/client/rendering/client.mjs +25 -491
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +7 -6
- package/dist/client/{richText-coerce-C32cRQ03.mjs → richText-coerce-CDAfpMQU.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-8cfSgT0E.mjs → routeIslandApiConfig-CcGWvyht.mjs} +1 -1
- package/dist/client/{shop-5LBhftWx.mjs → shop-DbUUoHFJ.mjs} +3 -3
- package/dist/client/{shop-discount-apply.state-D0ifS6KX.mjs → shop-add-feedback-DvC2kP1K.mjs} +1 -78
- package/dist/client/{shop-commerce-DkValjZj.mjs → shop-commerce-aQqcDmyZ.mjs} +64 -32
- package/dist/client/{shop-commerce-store-BOmXFmk_.mjs → shop-commerce-store-Cd7USpuY.mjs} +1 -1
- package/dist/client/shop-discount-apply.state-DGvPBmVP.mjs +83 -0
- package/dist/client/{shop.client-BTtZqNmv.mjs → shop.client-BNZ9M8cG.mjs} +56 -19
- package/dist/client/{shop.interactive-DNRqG4aX.mjs → shop.interactive-CJAINJr3.mjs} +113 -35
- package/dist/client/{shopShared-Nky6kPYr.mjs → shopShared-DwVAuGsx.mjs} +2 -2
- package/dist/client/{timetableModel-DZArznD_.mjs → timetableModel-DBTIFWTb.mjs} +10 -10
- package/dist/client/{useAvailableSlots-CUVRD1nx.mjs → useAvailableSlots-BomyyKeo.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-d7viY_mu.mjs → useDiscountCodeUi-CCxHMWlU.mjs} +32 -17
- package/dist/client/{useEventPagination-Da2JqxGC.mjs → useEventPagination-Bjin_qaN.mjs} +7 -6
- package/dist/client/{view-BvuYmQJ5.mjs → view-BTk470k0.mjs} +3 -2
- package/dist/client/{view-D9ObkFtz.mjs → view-Cw4EmEPv.mjs} +99 -30
- package/dist/preview-next/client/{PageSectionToolbar-DwxHT-2k.mjs → PageSectionToolbar-bq7gbKvn.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-D4SBxGU6.mjs → PreviewEditorSidebar-DVsPNcos.mjs} +28 -25
- package/dist/preview-next/client/{PreviewEditorUI-D8mUct32.mjs → PreviewEditorUI-B-pq3aZc.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-L2AEdNUQ.mjs → PreviewShell-ChyjB96e.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-bhVAU2D2.mjs → SdkPreviewModeRuntime-D_czeC0l.mjs} +84 -101
- package/dist/preview-next/client/{previewAssistantSlot-Jpj_HDra.mjs → previewAssistantSlot-B61mZd81.mjs} +4141 -2677
- package/dist/preview-next/client/{previewChromeRoot-CYTDvx4u.mjs → previewChromeRoot-dwOn9XtM.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CZHX6J_4.mjs → sdk-runtime-DZDfOxoW.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-DmGIG9Hk.mjs → siteStyleAccess-BZDIC-fA.mjs} +527 -236
- package/dist/preview-next/client/{useAutosaveStatus-DQCyswQ-.mjs → useAutosaveStatus-BbzLMf-l.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-LwE5yXvL.mjs → useOpenBlockForSetup-BEXcWQeI.mjs} +13 -4
- 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-BOuNcOcN.mjs → route-contract-0gSlK9S0.mjs} +86 -12
- package/dist/server/{Block.shared-wfJfhs08.mjs → Block.shared-DeXXycg8.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-BtrJNHTB.mjs → ThemeScopeCore-DFEM1a85.mjs} +16 -2
- package/dist/server/{bindings-P1CF2Gm6.mjs → bindings-7L3pC5Os.mjs} +13 -34
- package/dist/server/{client-CGtU5fHI.mjs → client-CgghATBm.mjs} +111 -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-ChnkJSay.mjs → loadContent-D7M5Vcug.mjs} +5 -5
- package/dist/server/{loadPage-DesHhgxj.mjs → loadPage-CiTId05y.mjs} +2 -2
- package/dist/server/{lookMediaFrame-BBr0mkze.mjs → lookMediaFrame-CaH018pK.mjs} +24 -5
- package/dist/server/next.mjs +35 -9
- package/dist/server/{overrideResolution-DHEkHcZs.mjs → overrideResolution-CJ3MRI5Q.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-0jvm0RBk.mjs → pageRenderPlan-Cuos4Xcd.mjs} +97 -39
- package/dist/server/{pageRuntimeSupport-8-f1Zr9e.mjs → pageRuntimeSupport-CuVj3bkd.mjs} +4 -3
- package/dist/server/{pageShared-CuVFoV4z.mjs → pageShared-JxlV8_Bo.mjs} +1261 -1129
- package/dist/server/{parseThemeForPersistence-Cwqb5pZx.mjs → parseThemeForPersistence-DOsfofCy.mjs} +1 -1
- package/dist/server/{prebuild-Bms_Y7wQ.mjs → prebuild-BDhlJbAx.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-5oC5kyHe.mjs → prefetchBlockData-kERh_c0v.mjs} +2 -2
- package/dist/server/{registry-DmqxC8th.mjs → registry-cQ9N5W-n.mjs} +20432 -20165
- 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-EYogtwQc.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-Bt_8IL1g.mjs → validation-3puM5SM8.mjs} +3 -3
- package/dist/server/{version-DT_efohp.mjs → version-B8g-Wx57.mjs} +1 -1
- package/dist/styles/index.css +295 -37
- package/package.json +1 -1
- package/dist/client/useDiscountApply-BBnStWXU.mjs +0 -199
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { xn as staticHeaderChromeRuntime } from "./shop.interactive-CJAINJr3.mjs";
|
|
3
|
+
import { n as buildCartDisplay } from "./display-DMqotaGU.mjs";
|
|
4
4
|
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
|
|
5
5
|
import { n as NAV_DROPDOWN_SHIFT_PROPERTY } from "./navDropdownSizing-CUjDrcIt.mjs";
|
|
6
6
|
import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-DKlZRNZD.mjs";
|
|
7
7
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
8
|
-
import { n as useCommerceCart } from "./shop-commerce-store-
|
|
8
|
+
import { n as useCommerceCart } from "./shop-commerce-store-Cd7USpuY.mjs";
|
|
9
9
|
import * as React$1 from "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { createPortal } from "react-dom";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as resolveEventDetailsPresentation, t as EventDetailsView } from "./view-
|
|
2
|
+
import { n as resolveEventDetailsPresentation, t as EventDetailsView } from "./view-Cw4EmEPv.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/event-details.client.tsx
|
|
@@ -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-Dn9TpWyL.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";
|
|
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";
|
|
10
11
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
11
12
|
import { t as CheckboxChoice } from "./CheckboxChoice-b-PJLEXe.mjs";
|
|
12
13
|
import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
|
|
13
14
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
14
15
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
15
|
-
import { i as useBookingNowIso } from "./BookingQuestionFields-
|
|
16
|
-
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";
|
|
17
18
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
18
|
-
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";
|
|
19
20
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
20
|
-
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-
|
|
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";
|
|
@@ -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", {
|
|
@@ -711,13 +751,11 @@ function summaryCountLabel(wizard, summaryEvent) {
|
|
|
711
751
|
function ticketTypeCountLabel(lines, ticketTypes) {
|
|
712
752
|
const chosen = lines.filter((line) => line.quantity > 0);
|
|
713
753
|
if (chosen.length < 2) return null;
|
|
714
|
-
const parts =
|
|
715
|
-
for (const line of chosen) {
|
|
754
|
+
const parts = chosen.map((line) => {
|
|
716
755
|
const name = ticketTypes.find((type) => type.pricingOptionId === line.pricingOptionId)?.name;
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
return parts.join(", ");
|
|
756
|
+
return name ? `${line.quantity} ${name}` : null;
|
|
757
|
+
});
|
|
758
|
+
return parts.every((part) => part !== null) ? parts.join(", ") : null;
|
|
721
759
|
}
|
|
722
760
|
/**
|
|
723
761
|
* The footer's one line (issue 1581): how many, the discount's name, then
|
|
@@ -785,14 +823,6 @@ function DateStepSummary({ event }) {
|
|
|
785
823
|
});
|
|
786
824
|
}
|
|
787
825
|
/**
|
|
788
|
-
* A typed code replaces the automatic one. The automatic code is previewed
|
|
789
|
-
* against the first item only, so several items show none until checkout.
|
|
790
|
-
*/
|
|
791
|
-
function previewedAutoDiscount(wizard) {
|
|
792
|
-
if (wizard.discountCode.trim().length > 0 || wizard.severalItems !== null) return null;
|
|
793
|
-
return wizard.autoAppliedDiscount;
|
|
794
|
-
}
|
|
795
|
-
/**
|
|
796
826
|
* Booking several (issue 1725): how many are ticked and their total. With
|
|
797
827
|
* combination prices the usual total is struck through above the planned
|
|
798
828
|
* one, with the working underneath and the next saving under the bar.
|
|
@@ -893,7 +923,7 @@ function EventRegistrationSummaryBar(props) {
|
|
|
893
923
|
const teamMemberNames = (summaryEvent?.teamMembers ?? []).map((teamMember) => teamMember.name).filter(Boolean);
|
|
894
924
|
const subtotalCents = wizard.ticketSelectionSubtotalCents;
|
|
895
925
|
if (!summaryTitle || !summaryCurrency || subtotalCents === null) return null;
|
|
896
|
-
const autoAppliedDiscount =
|
|
926
|
+
const autoAppliedDiscount = wizard.autoAppliedDiscount;
|
|
897
927
|
const autoAppliedDiscountCents = Math.max(0, autoAppliedDiscount?.computedAmountCents ?? 0);
|
|
898
928
|
const discountedTotalCents = Math.max(0, subtotalCents - autoAppliedDiscountCents);
|
|
899
929
|
const flexibleBalanceSummary = getFlexibleBalanceSummary(getSelectedDirectPaymentOption(wizard));
|
|
@@ -923,7 +953,7 @@ function EventRegistrationSummaryBar(props) {
|
|
|
923
953
|
/* @__PURE__ */ jsx(SummaryMeta, { facts: meta }),
|
|
924
954
|
teamMemberNames.length > 0 && /* @__PURE__ */ jsxs("div", {
|
|
925
955
|
className: "er-summary-bar-meta",
|
|
926
|
-
children: ["
|
|
956
|
+
children: ["With ", teamMemberNames.join(", ")]
|
|
927
957
|
})
|
|
928
958
|
]
|
|
929
959
|
}),
|
|
@@ -1065,7 +1095,10 @@ function EnterDetailsActions(props) {
|
|
|
1065
1095
|
function SelectPaymentActions(props) {
|
|
1066
1096
|
const { wizard } = props;
|
|
1067
1097
|
const { status, canContinue, buttonText } = wizard.paymentStepState;
|
|
1068
|
-
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", {
|
|
1069
1102
|
className: "rb-wizard-actions er-actions",
|
|
1070
1103
|
children: [/* @__PURE__ */ jsx("button", {
|
|
1071
1104
|
type: "button",
|
|
@@ -1080,7 +1113,7 @@ function SelectPaymentActions(props) {
|
|
|
1080
1113
|
size: "md",
|
|
1081
1114
|
label: buttonText
|
|
1082
1115
|
})]
|
|
1083
|
-
});
|
|
1116
|
+
})] });
|
|
1084
1117
|
}
|
|
1085
1118
|
/** Stripe owns the Pay button, so the payment footer offers only the way back. */
|
|
1086
1119
|
function PaymentActions(props) {
|
|
@@ -1088,7 +1121,7 @@ function PaymentActions(props) {
|
|
|
1088
1121
|
className: "rb-wizard-actions rb-wizard-actions--back-only er-actions",
|
|
1089
1122
|
children: /* @__PURE__ */ jsx("button", {
|
|
1090
1123
|
type: "button",
|
|
1091
|
-
onClick:
|
|
1124
|
+
onClick: props.wizard.paymentController.check,
|
|
1092
1125
|
className: "er-back-btn",
|
|
1093
1126
|
children: "← Back"
|
|
1094
1127
|
})
|
|
@@ -1629,10 +1662,14 @@ function resolveTicketSelectionPricing(event) {
|
|
|
1629
1662
|
currency: event ? publicEventPricingCurrency(event.pricing) : null
|
|
1630
1663
|
};
|
|
1631
1664
|
}
|
|
1632
|
-
|
|
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) {
|
|
1633
1670
|
const source = event ? selectEventCapacitySource(event, attendanceMode) : null;
|
|
1634
1671
|
const availability = source ? getEventAvailability(source) : null;
|
|
1635
|
-
const canJoinWaitlist = source
|
|
1672
|
+
const canJoinWaitlist = waitlistIsOpenTo(source, invitation);
|
|
1636
1673
|
return {
|
|
1637
1674
|
availableSpots: availability?.available,
|
|
1638
1675
|
isSoldOut: availability?.isFull ?? false,
|
|
@@ -1679,11 +1716,11 @@ function SelectionNote({ text }) {
|
|
|
1679
1716
|
*
|
|
1680
1717
|
* Can use either a full PublicEvent or just occurrence context (when on event page).
|
|
1681
1718
|
*/
|
|
1682
|
-
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 }) => {
|
|
1683
1720
|
const unit = bookingUnit.kind;
|
|
1684
1721
|
const deliveryMode = event?.deliveryMode ?? "in_person";
|
|
1685
1722
|
const attendanceModes = event?.attendanceModes ?? [];
|
|
1686
|
-
const { availableSpots, isSoldOut, canJoinWaitlist, eventAvailabilityLabel } = getTicketSelectionCapacity(event, selectedAttendanceMode, display);
|
|
1723
|
+
const { availableSpots, isSoldOut, canJoinWaitlist, eventAvailabilityLabel } = getTicketSelectionCapacity(event, selectedAttendanceMode, display, invitation);
|
|
1687
1724
|
const { mode: eventPricingMode, currency: eventPricingCurrency } = resolveTicketSelectionPricing(event);
|
|
1688
1725
|
const usesTicketTypes = eventPricingMode === "tiered";
|
|
1689
1726
|
const visibleTicketTypes = usesTicketTypes ? visibleTicketTypesOverride ?? getVisibleTicketTypes({
|
|
@@ -1776,17 +1813,36 @@ const TicketSelectionStep = ({ purpose, event, display, occurrenceContext: _occu
|
|
|
1776
1813
|
})
|
|
1777
1814
|
] }),
|
|
1778
1815
|
/* @__PURE__ */ jsx(SelectionNote, { text: selectionNote }),
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
}) })
|
|
1816
|
+
/* @__PURE__ */ jsx(PlacesNote, {
|
|
1817
|
+
invitation,
|
|
1818
|
+
isSoldOut,
|
|
1819
|
+
canJoinWaitlist,
|
|
1820
|
+
ticketsCount,
|
|
1821
|
+
event
|
|
1822
|
+
})
|
|
1787
1823
|
]
|
|
1788
1824
|
});
|
|
1789
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
|
+
}
|
|
1790
1846
|
function resolveRemainingPlacesOverride(override, cached) {
|
|
1791
1847
|
return override === void 0 ? cached : override;
|
|
1792
1848
|
}
|
|
@@ -3082,7 +3138,7 @@ function purchasablePassChoices(eligibility) {
|
|
|
3082
3138
|
productCurrency: pass.currency
|
|
3083
3139
|
},
|
|
3084
3140
|
label: pass.name,
|
|
3085
|
-
details: [
|
|
3141
|
+
details: [formatCreditProductUnits("event_pass", pass.creditsTotal), ...pass.description ? [pass.description] : []],
|
|
3086
3142
|
price: formatPrice(pass.price, pass.currency)
|
|
3087
3143
|
}));
|
|
3088
3144
|
}
|
|
@@ -3483,39 +3539,61 @@ function selectionConsent(wizard) {
|
|
|
3483
3539
|
checkboxLabel: selectionConsentLabel(wizard.severalItems, wizard.selection.length, consent.checkboxLabel)
|
|
3484
3540
|
};
|
|
3485
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
|
+
}
|
|
3486
3560
|
function AttendeeDetailsContent(props) {
|
|
3487
3561
|
const { wizard } = props;
|
|
3488
3562
|
const membership = heroMembership(wizard);
|
|
3489
3563
|
const perRun = wizard.requirementsLayout.kind === "per_run";
|
|
3490
3564
|
const consent = perRun ? null : selectionConsent(wizard);
|
|
3491
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
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
|
+
] });
|
|
3519
3597
|
}
|
|
3520
3598
|
function EventDiscountCodeDisclosure(props) {
|
|
3521
3599
|
const { wizard } = props;
|
|
@@ -3539,6 +3617,7 @@ function EventDiscountCodeDisclosure(props) {
|
|
|
3539
3617
|
wizard.setDiscountCode("");
|
|
3540
3618
|
wizard.setDiscountUiOpen(false);
|
|
3541
3619
|
},
|
|
3620
|
+
applied: preview?.feedback?.tone === "success",
|
|
3542
3621
|
id: "er-discount-code",
|
|
3543
3622
|
...preview ? {
|
|
3544
3623
|
onApply: () => void preview.apply(),
|
|
@@ -3616,6 +3695,13 @@ function ClosedAdmissionNotice({ wizard }) {
|
|
|
3616
3695
|
children: admission.message
|
|
3617
3696
|
}) : null;
|
|
3618
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
|
+
}
|
|
3619
3705
|
function TicketSelectionContent({ wizard, display }) {
|
|
3620
3706
|
if (!wizard.selectedEvent && !wizard.occurrenceContext) return null;
|
|
3621
3707
|
const isWaitlisted = wizard.admission.kind === "closed" && wizard.admission.reason === "alreadyWaitlisted";
|
|
@@ -3636,6 +3722,7 @@ function TicketSelectionContent({ wizard, display }) {
|
|
|
3636
3722
|
}) : /* @__PURE__ */ jsx(TicketSelectionStep, {
|
|
3637
3723
|
purpose: wizard.ticketSelectionPurpose,
|
|
3638
3724
|
display,
|
|
3725
|
+
invitation: ticketStepInvitation(wizard.waitlistClaim),
|
|
3639
3726
|
event: wizard.selectedEvent,
|
|
3640
3727
|
occurrenceContext: wizard.occurrenceContext,
|
|
3641
3728
|
selectedAttendanceMode: wizard.selectedAttendanceMode,
|
|
@@ -3733,8 +3820,8 @@ function presentation(state) {
|
|
|
3733
3820
|
action: { label: "Check payment status" }
|
|
3734
3821
|
};
|
|
3735
3822
|
case "paymentAvailable": return {
|
|
3736
|
-
title: "Your
|
|
3737
|
-
message: "
|
|
3823
|
+
title: "Your booking isn’t finished yet",
|
|
3824
|
+
message: "We’re holding your place. Continue to payment to finish your booking.",
|
|
3738
3825
|
action: { label: "Continue to payment" }
|
|
3739
3826
|
};
|
|
3740
3827
|
case "retryAvailable": return {
|
|
@@ -3843,6 +3930,10 @@ function EventRegistrationMagicLinkModal(props) {
|
|
|
3843
3930
|
title: "Sign in with email",
|
|
3844
3931
|
titleId: "event-registration-sign-in-title",
|
|
3845
3932
|
onClose: () => wizard.setShowMagicLinkModal(false),
|
|
3933
|
+
portal: props.portalRoot != null,
|
|
3934
|
+
portalRoot: props.portalRoot,
|
|
3935
|
+
portalWrapperClassName: props.registrationRootClassName,
|
|
3936
|
+
portalWrapperProps: { "data-block": "event-registration" },
|
|
3846
3937
|
overlayClassName: "er-modal-overlay",
|
|
3847
3938
|
modalClassName: "er-modal",
|
|
3848
3939
|
titleClassName: "er-modal-title",
|
|
@@ -4039,7 +4130,11 @@ function EventRegistrationSurface(props) {
|
|
|
4039
4130
|
demoEmailSuppressed: props.demoEmailSuppressed
|
|
4040
4131
|
})
|
|
4041
4132
|
}), /* @__PURE__ */ jsx(WholeScreenFooter, { action: wholeScreenAction(presentation, props) })]
|
|
4042
|
-
}), /* @__PURE__ */ jsx(EventRegistrationMagicLinkModal, {
|
|
4133
|
+
}), /* @__PURE__ */ jsx(EventRegistrationMagicLinkModal, {
|
|
4134
|
+
wizard,
|
|
4135
|
+
portalRoot: props.variant === "inPlace" ? props.floatingPortalRoot : null,
|
|
4136
|
+
registrationRootClassName: props.registrationRootClassName
|
|
4137
|
+
})]
|
|
4043
4138
|
});
|
|
4044
4139
|
}
|
|
4045
4140
|
function RegistrationProcessing({ selection }) {
|
|
@@ -4268,6 +4363,8 @@ function EventRegistrationWizardView(viewProps) {
|
|
|
4268
4363
|
});
|
|
4269
4364
|
const renderRegistrationSurface = (variant) => /* @__PURE__ */ jsx(EventRegistrationSurface, {
|
|
4270
4365
|
variant,
|
|
4366
|
+
floatingPortalRoot,
|
|
4367
|
+
registrationRootClassName,
|
|
4271
4368
|
wizard,
|
|
4272
4369
|
presentation,
|
|
4273
4370
|
stepLabelContext,
|
|
@@ -4529,6 +4626,10 @@ const EventRegistrationClient = (clientProps) => {
|
|
|
4529
4626
|
nextBoundary: startsAt ?? null
|
|
4530
4627
|
})) ? startsAt ?? null : null
|
|
4531
4628
|
});
|
|
4629
|
+
if (hasCancelledRegistrationDate(clientProps.events ?? [], clientProps.occurrenceContext?.id)) return /* @__PURE__ */ jsx(RegistrationClosedState, {
|
|
4630
|
+
title: cancelledDateCopy.titleText,
|
|
4631
|
+
body: cancelledDateCopy.bodyText
|
|
4632
|
+
});
|
|
4532
4633
|
switch (presentation.kind) {
|
|
4533
4634
|
case "wizard": return /* @__PURE__ */ jsx(EventRegistrationWizard, { ...clientProps });
|
|
4534
4635
|
case "unavailable": return /* @__PURE__ */ jsx("div", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
4
|
-
import { t as EventCalendarClient } from "./EventCalendar.client-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-D8TpQXjX.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-ChYKWjLA.mjs";
|
|
4
|
+
import { t as EventCalendarClient } from "./EventCalendar.client-Dg4PHFJJ.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CcGWvyht.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/eventCalendar.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
4
|
-
import { n as EventCombinedIslandClient } from "./EventCombined.client-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-D8TpQXjX.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-ChYKWjLA.mjs";
|
|
4
|
+
import { n as EventCombinedIslandClient } from "./EventCombined.client-tky8JcnQ.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CcGWvyht.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/eventCombined.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as EventDetailsIslandClient } from "./event-details.client-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-ChYKWjLA.mjs";
|
|
3
|
+
import { t as EventDetailsIslandClient } from "./event-details.client-CJapNbTv.mjs";
|
|
4
4
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
4
|
-
import { t as EventListingClient } from "./EventListing.client-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-D8TpQXjX.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-ChYKWjLA.mjs";
|
|
4
|
+
import { t as EventListingClient } from "./EventListing.client-DQx9dohz.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CcGWvyht.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/eventListing.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as EventRegistrationIslandClient } from "./event-registration.client-
|
|
3
|
-
import { t as BlockApiProvider } from "./context-
|
|
4
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { n as EventRegistrationIslandClient } from "./event-registration.client-CAdcpnLc.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-D8TpQXjX.mjs";
|
|
4
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-ChYKWjLA.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CcGWvyht.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/eventRegistration.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
4
|
-
import { t as FormNodeClient } from "./form.client-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-D8TpQXjX.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-ChYKWjLA.mjs";
|
|
4
|
+
import { t as FormNodeClient } from "./form.client-BU6dM0-C.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
6
|
import { n as snapshotForm, t as restoreForm } from "./formSnapshot-Cy4abc0T.mjs";
|
|
7
7
|
import "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { i as ok, n as assertNever, r as err } from "./noop-DF8_EiFt.mjs";
|
|
3
|
+
import { n as useBlockApi } from "./context-D8TpQXjX.mjs";
|
|
4
|
+
import { r as listLookSlot } from "./lookSurfaces-BDZLALxj.mjs";
|
|
5
5
|
import { S as clsx } from "./ThemedButton-DuaYtnvG.mjs";
|
|
6
6
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
7
|
-
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-
|
|
7
|
+
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-Db0Iq7nx.mjs";
|
|
8
8
|
import { t as SpamProtectionWidget } from "./SpamProtectionWidget-CCF6YLUX.mjs";
|
|
9
9
|
import { t as useAltchaProtection } from "./altchaProtection-DjIV9A5n.mjs";
|
|
10
10
|
import { useReducer, useRef } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { n as listLookControl, r as listLookSlot } from "./lookSurfaces-BDZLALxj.mjs";
|
|
3
3
|
import { t as CheckboxChoice } from "./CheckboxChoice-b-PJLEXe.mjs";
|
|
4
4
|
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-C-ql101B.mjs";
|
|
5
5
|
import "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Yt as formatDateTime, hn as parseUtcIsoDateTimeString, qt as formatDate$1, un as parseBookingLocalDate } from "./noop-DF8_EiFt.mjs";
|
|
3
3
|
//#region ../blocks/src/bindings/formatDate.ts
|
|
4
4
|
/** Admit stored civil dates or offset-aware instants before core projection. */
|
|
5
5
|
function formatDate(value, context, options) {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import {
|
|
4
|
-
import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-
|
|
3
|
+
import { Sn as formatGiftCardAmountLabel, gn as toUtcIsoDateTimeString, pn as resolveBookingTimeZoneId, qt as formatDate, t as logger } from "../noop-DF8_EiFt.mjs";
|
|
4
|
+
import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-D8TpQXjX.mjs";
|
|
5
5
|
import { i as ThemedButtonLink, r as ThemedButton } from "../ThemedButton-DuaYtnvG.mjs";
|
|
6
6
|
import { t as CheckIcon } from "../CheckIcon-CVcKteXH.mjs";
|
|
7
|
+
import { s as readChosenGiftAmounts } from "../gifting.parts-C2u4Y-pf.mjs";
|
|
8
|
+
import { t as GiftingClient } from "../gifting.client-BVa2XYJB.mjs";
|
|
7
9
|
import React from "react";
|
|
8
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
11
|
import { useRouter } from "next/navigation";
|
|
@@ -476,4 +478,4 @@ function RedeemGiftCardRouteClient(props) {
|
|
|
476
478
|
});
|
|
477
479
|
}
|
|
478
480
|
//#endregion
|
|
479
|
-
export { RedeemGiftCard, RedeemGiftCardRouteClient };
|
|
481
|
+
export { BlockApiProvider, GiftingClient, RedeemGiftCard, RedeemGiftCardRouteClient, readChosenGiftAmounts };
|