@riverbankcms/sdk 0.158.0 → 0.160.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -6
- package/dist/_dts/{BlocksIslandsHydrator-BgNBtEai.d.ts → BlocksIslandsHydrator-CoqeotCL.d.ts} +1 -1
- package/dist/_dts/{Page-DpCo8zXD.d.ts → Page-C0ENVLCF.d.ts} +13 -6
- package/dist/_dts/{SdkPreviewMode-Bv2TMscG.d.ts → SdkPreviewMode-jZK0A49V.d.ts} +54 -126
- package/dist/_dts/{client-B960v2gW.d.ts → client-uMMuPq9V.d.ts} +23 -1
- package/dist/_dts/{content-types-CN0Wy8V6.d.ts → content-types-D6nXGqdQ.d.ts} +18 -18
- package/dist/_dts/{contracts-BFUrby76.d.ts → contracts-Bnmj1nxu.d.ts} +6 -5
- package/dist/_dts/{footerPageOutline-CmoqleLS.d.ts → footerPageOutline-CeLjFX8b.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-Dkvivc3R.d.ts → generatePageMetadata-nyU8q02J.d.ts} +5 -2
- package/dist/_dts/{index-DPfI2t5A.d.ts → index-BaaGBY1v.d.ts} +2 -2
- package/dist/_dts/{index-DCNu_8it.d.ts → index-Bg64CkV-.d.ts} +4 -4
- package/dist/_dts/index-Blwl7yl6.d.ts +13 -0
- package/dist/_dts/{index-DaS_z6ir.d.ts → index-C5xslEBn.d.ts} +2 -2
- package/dist/_dts/{index-DpgkhY-a.d.ts → index-CEaKil7G.d.ts} +2 -2
- package/dist/_dts/{index-Ba6RmuxX.d.ts → index-DahMwisK.d.ts} +3 -3
- package/dist/_dts/index-lkpjIg5i.d.ts +66 -0
- package/dist/_dts/{index-DfkFWUxt.d.ts → index-nVoi_74l.d.ts} +2 -2
- package/dist/_dts/{loadContent-DvvKF4nB.d.ts → loadContent-CYLmzvLq.d.ts} +16 -7
- package/dist/_dts/{resolvePageContent-D0lGwVD6.d.ts → resolvePageContent-DqnxChOs.d.ts} +2 -2
- package/dist/_dts/{constants-DkcKHMX-.d.ts → runtime-BY8DQBbT.d.ts} +10 -16
- package/dist/_dts/{hosted-booking-appearance-BIbit60h.d.ts → schema-D0bNcPWK.d.ts} +6921 -6768
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +12 -6
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +6 -6
- package/dist/_dts/sdk/src/metadata/index.d.ts +8 -2
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +10 -28
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-BJrRUaY7.d.ts → types-CFrYuXYP.d.ts} +2 -2
- package/dist/_dts/{navigation-n-eTVTIQ.d.ts → types-D8czmbQF.d.ts} +15430 -16836
- package/dist/_dts/{types-BY7PgnDi.d.ts → types-DSgmJ15W.d.ts} +7 -7
- package/dist/_dts/{types-maEnXL6Z.d.ts → types-Dm-KW7nj.d.ts} +10 -13
- package/dist/_dts/{validation-BjuVrMrs.d.ts → validation-Bmb4WnHg.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-WRLS96Ev.mjs → BlocksIslandsHydrator-DZRKi6tT.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-eovghMPa.mjs → BookingMailingListNote-C00sLLdL.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-CIcMQRc1.mjs → CalendarNavigationChevron-CHSi9b3E.mjs} +6 -6
- package/dist/client/{CheckboxChoice-BF9eCNno.mjs → CheckboxChoice-Bhm6RAUL.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-CdnFgDyQ.mjs → DemoBookingPortalAccess-CaN-7ui7.mjs} +6 -6
- package/dist/client/{DemoPortalSignInLink-DHxYgkT6.mjs → DemoPortalSignInLink-ClxN5_xZ.mjs} +1 -1
- package/dist/client/{EventCalendar.client-Dc-ZLxKo.mjs → EventCalendar.client-BncvSa1n.mjs} +10 -9
- package/dist/client/{EventCombined.client-C93XqRIv.mjs → EventCombined.client-DluBxVVu.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-B3XUyNY9.mjs → EventEmbeddedCheckoutStep-BiJrMtfp.mjs} +1 -1
- package/dist/client/{EventItem-DnCTygqk.mjs → EventItem-CXhnT9pF.mjs} +11 -6
- package/dist/client/{EventListWeekNavigation-9h97heuQ.mjs → EventListWeekNavigation-V-dtoDlD.mjs} +1 -1
- package/dist/client/{EventListing.client-DFKlQvvs.mjs → EventListing.client-DPO6SZbx.mjs} +3 -3
- package/dist/client/{EventListing.view-pAuTDyrP.mjs → EventListing.view-B-Yi5JZS.mjs} +7 -7
- package/dist/client/{EventRegistrationPayment-rgKlBvhP.mjs → EventRegistrationPayment-Dc3Fnlnw.mjs} +189 -176
- package/dist/client/{LeafletStaticMap-3XiWSgy0.mjs → LeafletStaticMap-ClZCCzAm.mjs} +1 -1
- package/dist/client/{Page-BmpeAwID.mjs → Page-7PkzO04N.mjs} +1949 -2074
- package/dist/client/{StepIndicator-qEq6X5zP.mjs → StepIndicator-DiD6euZ8.mjs} +3 -3
- package/dist/client/{TabBarFragment-DvzIV75f.mjs → TabBarFragment-BHd8GN8y.mjs} +1 -1
- package/dist/client/{ThemedButton-DVBC_pS9.mjs → ThemedButton-C22C9cCF.mjs} +174 -93
- package/dist/client/{accordion-DeObOasQ.mjs → accordion-2m27DsIk.mjs} +1 -1
- package/dist/client/{booking-form.client-DfWeF0lj.mjs → booking-form.client-BddWV5w1.mjs} +12 -12
- package/dist/client/{bookingForm-TnzIBHx2.mjs → bookingForm-bcdXQjmw.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{carousel-kkFnbr5Z.mjs → carousel-D7nj9I0y.mjs} +2 -2
- package/dist/client/{carousel.client-BJGoJVtg.mjs → carousel.client-AffDJo_s.mjs} +1 -1
- package/dist/client/{cart-BAXNbFux.mjs → cart-PN6yCw1H.mjs} +3 -3
- package/dist/client/{cart.client-BczxUF70.mjs → cart.client-D4t1f0cJ.mjs} +1 -1
- package/dist/client/{checkout-C5NRhPeP.mjs → checkout-CsTwXVSb.mjs} +3 -3
- package/dist/client/{checkout.client-BuDk3Td9.mjs → checkout.client-BhQE3zY7.mjs} +1 -1
- package/dist/client/client.mjs +25 -13
- package/dist/client/{context-CVsgML69.mjs → context-BLAvalAa.mjs} +1 -1
- package/dist/client/{cta-BWnUuJce.mjs → cta-CUXhX_D7.mjs} +2 -1
- package/dist/client/dateFormatting-BHIHxNuo.mjs +61 -0
- package/dist/client/{demoPortalMagicLink-CUlwvmxf.mjs → demoPortalMagicLink-R-awbk_0.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-Cw8nnFj-.mjs → enhanceHeaderSection-9Q93uvTo.mjs} +3 -3
- package/dist/client/{event-details.client-Bl0E_6Vi.mjs → event-details.client-BS1WtG-a.mjs} +2 -2
- package/dist/client/{event-registration.client-DmfLg_LC.mjs → event-registration.client-BXndwsET.mjs} +35 -21
- package/dist/client/{eventCalendar-D1Dwb9VA.mjs → eventCalendar-HyoOt1Qz.mjs} +4 -4
- package/dist/client/{eventCombined-DfsqY1qR.mjs → eventCombined-sdG5oEaH.mjs} +4 -4
- package/dist/client/{eventDetails-BmugDVoa.mjs → eventDetails-FFAknE4w.mjs} +2 -2
- package/dist/client/{eventListing-BPAGJi3C.mjs → eventListing-CGK6urk3.mjs} +4 -4
- package/dist/client/{eventRegistration-DBlz_x6u.mjs → eventRegistration-VhrvCs4l.mjs} +4 -4
- package/dist/client/{form-DVu3ZMjx.mjs → form-C-B5O_ko.mjs} +3 -3
- package/dist/client/{form.client-QZUyABIY.mjs → form.client-DoZVcl8d.mjs} +5 -5
- package/dist/client/{form.parts-Bs0F3v08.mjs → form.parts-mttKpgif.mjs} +3 -3
- package/dist/client/{formatDate-BD9D3dgo.mjs → formatDate-xUSCknEO.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-BQwWW4Yy.mjs → headerSection-BHUEXsaI.mjs} +2 -2
- package/dist/client/{location-map.client-upKuwABk.mjs → location-map.client-Cylb_MHw.mjs} +2 -2
- package/dist/client/{location-map.view-RuBCD10O.mjs → location-map.view-Cx4Bl7ij.mjs} +69 -6
- package/dist/client/{locationMap-1sCbsk0V.mjs → locationMap-QnKJi-nZ.mjs} +2 -2
- package/dist/client/{newsletter-form.client-DBTU3oNv.mjs → newsletter-form.client-D_n0rftg.mjs} +8 -8
- package/dist/client/{newsletter-form.parts-C9I9JBhe.mjs → newsletter-form.parts-DKHye4IE.mjs} +2 -2
- package/dist/client/{newsletterForm-DTPtTxxG.mjs → newsletterForm-tEaYelzx.mjs} +3 -3
- package/dist/client/{noop-DMFt3KdC.mjs → noop-B610YKEx.mjs} +12 -5
- package/dist/client/portal/client.mjs +4562 -174
- package/dist/client/{product-detail.client-BX7M5o6p.mjs → product-detail.client-DUf5x5Jt.mjs} +1 -1
- package/dist/client/{product-list.client-i32QNY4c.mjs → product-list.client-Cqp1BPTV.mjs} +1 -1
- package/dist/client/{productDetail-DWjE9zm7.mjs → productDetail-B8bBiogP.mjs} +3 -3
- package/dist/client/{productList-DZH9_brv.mjs → productList-BKN4D-1z.mjs} +3 -3
- package/dist/client/{propsDecoder-CTzHkEkh.mjs → propsDecoder-2nNZh2Oe.mjs} +3 -3
- package/dist/client/{registry.server-vJ5FlscU.mjs → registry.server-BAm4RPNJ.mjs} +856 -872
- package/dist/client/rendering/client.mjs +27 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +47 -28
- package/dist/client/{richText-coerce-DXAmC72p.mjs → richText-coerce-Cv-qomNB.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CmC7ygin.mjs → routeIslandApiConfig-C5u8MbAA.mjs} +1 -1
- package/dist/client/{shop-C7eL3B37.mjs → shop-DZNC0VKk.mjs} +3 -3
- package/dist/client/{shop-commerce-D8oRN0QJ.mjs → shop-commerce-DdX4LSa3.mjs} +12 -12
- package/dist/client/{shop-commerce-store-CRnQ4M18.mjs → shop-commerce-store-BJtrZov9.mjs} +1 -1
- package/dist/client/{shop.client-X6d6KVmA.mjs → shop.client-DmDd-igg.mjs} +16 -15
- package/dist/client/{shop.interactive-DBMeM8VD.mjs → shop.interactive-5SnnDHz3.mjs} +402 -35
- package/dist/client/{shopShared-Y182kN_s.mjs → shopShared-CPqUlAh9.mjs} +2 -2
- package/dist/client/{src-7cXhT0G_.mjs → src-VIsPY-kw.mjs} +6 -1
- package/dist/client/timetableModel-C19rcHEw.mjs +960 -0
- package/dist/client/{useAvailableSlots-BDV6MHgJ.mjs → useAvailableSlots-BjbJXotk.mjs} +3 -3
- package/dist/client/{useBookingNowIso-DgJEv3ZY.mjs → useBookingNowIso-CMgfL7YJ.mjs} +1 -1
- package/dist/client/{useDiscountApply-BTu9EeT7.mjs → useDiscountApply-KG8jB7WC.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-BfZxdxI-.mjs → useDiscountCodeUi-DK2w_i0a.mjs} +1 -1
- package/dist/client/{useEventPagination-pnvdHGeQ.mjs → useEventPagination-DW6MCirb.mjs} +11 -10
- package/dist/client/uuid-BETKW8rS.mjs +12 -0
- package/dist/client/{view-hJr_L4QC2.mjs → view-CkUn3Y0Y.mjs} +4 -4
- package/dist/client/{view-BPEa6Okm.mjs → view-CseyBW07.mjs} +15 -70
- package/dist/client/{wizardSteps-HdyGoIG3.mjs → wizardSteps-zgq10lN1.mjs} +262 -65
- package/dist/preview-next/before-render.mjs +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-BFlBqSu4.mjs → EventEmbeddedCheckoutStep-lUHBrzHv.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-CXRUbqMp.mjs → PreviewEditorSidebar-DWyUGCAG.mjs} +1217 -107
- package/dist/preview-next/client/{PreviewEditorUI-CxjEV0Fm.mjs → PreviewEditorUI-Wq0b3Daw.mjs} +52 -79
- package/dist/preview-next/client/{SdkPreviewModeRuntime-XdQSGGj_.mjs → SdkPreviewModeRuntime-BtZPcwYV.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BxI12BBS.mjs → SdkPreviewModeRuntime-wSI_R361.mjs} +720 -2035
- package/dist/preview-next/client/{SiteChromeCustomizeContext-CfRQRwpH.mjs → SiteChromeCustomizeContext-Hc4pYnNe.mjs} +14365 -8155
- package/dist/preview-next/client/{ThemedButton-BEOPss9H.mjs → ThemedButton-DzeycIlD.mjs} +204 -93
- package/dist/preview-next/client/{previewChromeSurface-CH7hd5n7.mjs → previewChromeSurface-Corq4AG7.mjs} +3 -8
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-C6xEU1LI.mjs → sdk-runtime-CWymRWhK.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +1359 -0
- package/dist/preview-next/client/{spinner-BTf1CZmy.mjs → spinner-C4If5Y-O.mjs} +1 -1
- package/dist/preview-next/editor-base.css +62 -0
- package/dist/preview-next/editor-chrome.css +85 -0
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DM22uOXM.mjs → route-contract-8csADeIT.mjs} +149 -112
- package/dist/server/{Block.shared-DLoilC2J.mjs → Block.shared-D1_gonwM.mjs} +6 -6
- package/dist/server/{bindings-C7DKLVx_.mjs → bindings-CFmJg5lm.mjs} +2 -2
- package/dist/server/{client-CU4wlMLE.mjs → client-DPsi0Dai.mjs} +9 -7
- package/dist/server/config-template-validation.mjs +50 -10
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{generatePageMetadata-CPvssVOp.mjs → generatePageMetadata-DB_lbrZ7.mjs} +28 -2
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-DmQ4BiiQ.mjs → loadContent-RMCcuVU_.mjs} +33 -20
- package/dist/server/loadPage-DUPP51C-.mjs +2 -0
- package/dist/server/{loadPage-BBkDQA57.mjs → loadPage-DhDGzj7t.mjs} +8 -5
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/metadata.mjs +2 -2
- package/dist/server/next.mjs +13 -12
- package/dist/server/{overrideResolution-ByeAbLSO.mjs → overrideResolution-OxY5FMuy.mjs} +1 -1
- package/dist/server/{overrides-BcA6ZPWf.mjs → overrides-Bz_A6sB9.mjs} +586 -518
- package/dist/server/page-converter.mjs +8 -10
- package/dist/server/{prebuild-8T-m7XjB.mjs → prebuild-B_1vrSru.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Bjya-X9t.mjs → prefetchBlockData-B7ukYXXR.mjs} +841 -887
- package/dist/server/{publicProducts-C3meXS2o.mjs → publicProducts-Djbpc81A.mjs} +166 -129
- package/dist/server/{blocks-jlIm0PWc.mjs → registry-eFjKtEhF.mjs} +2349 -1716
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-D0ow8PRJ.mjs → resolveBlockData-DYvEa9c5.mjs} +6 -3
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-Bs735S27.mjs → schema-C3dJ5UkL.mjs} +148 -88
- package/dist/server/server.mjs +3 -3
- package/dist/server/{siteChromeOverlayClearance-BangtD8A.mjs → siteChromeOverlayClearance-DALIAMwo.mjs} +108 -11
- package/dist/server/{src-B935_bzN.mjs → src-C5Mu-z0F.mjs} +268 -189
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-D2-BnmDO.mjs → themeAdmission-ruoyXb_0.mjs} +9 -7
- package/dist/server/{three-pass-converter-CmmchOFC.mjs → three-pass-converter-Chnb1XD-.mjs} +2 -58
- package/dist/server/{validation-Cm41pDUB.mjs → validation-B-Xar8QS.mjs} +22 -63
- package/dist/server/{version-Bo9C3McI.mjs → version-Bg7VHK3i.mjs} +1 -1
- package/dist/styles/index.css +78 -0
- package/package.json +8 -3
- package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
- package/dist/_dts/index-cnymEAZY.d.ts +0 -1
- package/dist/client/timetableModel-D7PwpaBY.mjs +0 -480
- package/dist/preview-next/client/siteStyleAccess-CRXaC2oL.mjs +0 -1326
- package/dist/server/loadPage-ZrcfjG3X.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { C as clsx } from "./ThemedButton-C22C9cCF.mjs";
|
|
3
3
|
import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, o as carouselStatus, r as carouselContents, u as resolveSlidesToShowMobile } from "./carousel.shared-DBnWEJzo.mjs";
|
|
4
4
|
import { t as createLucideIcon } from "./createLucideIcon-CIbxe9em.mjs";
|
|
5
5
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as CartClient } from "./cart.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-2nNZh2Oe.mjs";
|
|
3
|
+
import { t as CartClient } from "./cart.client-D4t1f0cJ.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-CPqUlAh9.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/cart.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("cart");
|
|
7
7
|
const enhance = (root, props) => mountShopBlockIsland(root, props, CartClient, "cart");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as CartController } from "./shop-commerce-
|
|
2
|
+
import { t as CartController } from "./shop-commerce-DdX4LSa3.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/cart.client.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as CheckoutClient } from "./checkout.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-2nNZh2Oe.mjs";
|
|
3
|
+
import { t as CheckoutClient } from "./checkout.client-BhQE3zY7.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-CPqUlAh9.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/checkout.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("checkout");
|
|
7
7
|
const enhance = (root, props) => mountShopBlockIsland(root, props, CheckoutClient, "checkout");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as CheckoutController } from "./shop-commerce-
|
|
2
|
+
import { n as CheckoutController } from "./shop-commerce-DdX4LSa3.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/checkout.client.tsx
|
package/dist/client/client.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as isPublicReadEndpoint, E as
|
|
2
|
+
import { $ as isPublicReadEndpoint, E as prefetchBlockDataWithFailures, G as setSdkVersion, H as ApiRequestError, K as isSupportedLoaderEndpoint, Q as getPublicReadCachePolicy, S as resolveSiteCustomBlocks, T as requireSdkTheme, U as createBearerAPIClient, V as encodePublicProductCategorySelector, W as createInternalAPIClient, X as isApiError, Y as ApiEnvelopeError, Z as unwrapResponse, et as publicReadFreshnessSeconds, g as collectMediaAssetSidecar, m as buildRenderablePageOutline, t as Page, v as projectRenderablePageOutline } from "./Page-7PkzO04N.mjs";
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
4
|
//#region src/rendering/hooks/usePage.ts
|
|
5
5
|
/**
|
|
@@ -21,7 +21,7 @@ async function loadUsePageSuccess(input) {
|
|
|
21
21
|
previewStage,
|
|
22
22
|
customBlocks: resolveSiteCustomBlocks(site)
|
|
23
23
|
});
|
|
24
|
-
const
|
|
24
|
+
const prefetched = await prefetchBlockDataWithFailures(projectRenderablePageOutline(pageOutline), {
|
|
25
25
|
siteId,
|
|
26
26
|
pageId: pageId ?? pageData.id,
|
|
27
27
|
previewStage
|
|
@@ -33,8 +33,13 @@ async function loadUsePageSuccess(input) {
|
|
|
33
33
|
runtimeJoins: pageData.runtimeJoins,
|
|
34
34
|
theme: requireSdkTheme(site.theme, siteId),
|
|
35
35
|
siteId,
|
|
36
|
-
resolvedData,
|
|
37
|
-
dataContext: {
|
|
36
|
+
resolvedData: prefetched.resolvedData,
|
|
37
|
+
dataContext: {
|
|
38
|
+
previewStage,
|
|
39
|
+
prefetchedBlockData: prefetched,
|
|
40
|
+
loaderSnapshot: prefetched.loaderSnapshot,
|
|
41
|
+
loaderFailures: prefetched.loaderFailures
|
|
42
|
+
},
|
|
38
43
|
openingHours: site.businessDetails?.openingHours ?? null,
|
|
39
44
|
mailingList: site.mailingList,
|
|
40
45
|
sdkConfig: site.sdkConfig ?? null,
|
|
@@ -221,7 +226,7 @@ async function loadPageSuccess(input) {
|
|
|
221
226
|
previewStage,
|
|
222
227
|
customBlocks: resolveSiteCustomBlocks(site)
|
|
223
228
|
});
|
|
224
|
-
const
|
|
229
|
+
const prefetched = await prefetchBlockDataWithFailures(projectRenderablePageOutline(pageOutline), {
|
|
225
230
|
siteId,
|
|
226
231
|
pageId: pageData.id,
|
|
227
232
|
previewStage
|
|
@@ -235,8 +240,13 @@ async function loadPageSuccess(input) {
|
|
|
235
240
|
entry: null,
|
|
236
241
|
theme: site.theme,
|
|
237
242
|
siteId,
|
|
238
|
-
resolvedData,
|
|
239
|
-
dataContext: {
|
|
243
|
+
resolvedData: prefetched.resolvedData,
|
|
244
|
+
dataContext: {
|
|
245
|
+
previewStage,
|
|
246
|
+
prefetchedBlockData: prefetched,
|
|
247
|
+
loaderSnapshot: prefetched.loaderSnapshot,
|
|
248
|
+
loaderFailures: prefetched.loaderFailures
|
|
249
|
+
},
|
|
240
250
|
supabaseUrl: site.supabaseUrl,
|
|
241
251
|
...mediaAssets ? { mediaAssets } : {}
|
|
242
252
|
};
|
|
@@ -513,7 +523,7 @@ var SimpleCache = class {
|
|
|
513
523
|
* 1. This constant
|
|
514
524
|
* 2. The "version" field in package.json
|
|
515
525
|
*/
|
|
516
|
-
const SDK_VERSION = "0.
|
|
526
|
+
const SDK_VERSION = "0.160.0";
|
|
517
527
|
//#endregion
|
|
518
528
|
//#region src/client/error.ts
|
|
519
529
|
let _Symbol$for;
|
|
@@ -1776,9 +1786,8 @@ function normalizeEntryIdentifierRefs(identifiers) {
|
|
|
1776
1786
|
refs
|
|
1777
1787
|
};
|
|
1778
1788
|
}
|
|
1779
|
-
function
|
|
1780
|
-
|
|
1781
|
-
return { form: {
|
|
1789
|
+
function normalizePublicForm(form) {
|
|
1790
|
+
return {
|
|
1782
1791
|
id: form.id,
|
|
1783
1792
|
slug: form.slug,
|
|
1784
1793
|
name: form.name,
|
|
@@ -1790,7 +1799,10 @@ function normalizePublicFormResponse(response) {
|
|
|
1790
1799
|
updatedAt: form.updatedAt ?? null,
|
|
1791
1800
|
...form.siteId ? { siteId: form.siteId } : {},
|
|
1792
1801
|
...form.userId ? { userId: form.userId } : {}
|
|
1793
|
-
}
|
|
1802
|
+
};
|
|
1803
|
+
}
|
|
1804
|
+
function normalizePublicFormResponse(response) {
|
|
1805
|
+
return { form: response.form ? normalizePublicForm(response.form) : null };
|
|
1794
1806
|
}
|
|
1795
1807
|
function normalizePublicFormResult(result) {
|
|
1796
1808
|
if (isApiError(result)) return result;
|
|
@@ -1800,7 +1812,7 @@ function normalizePublicFormResult(result) {
|
|
|
1800
1812
|
};
|
|
1801
1813
|
}
|
|
1802
1814
|
function normalizePublicFormsResponse(response) {
|
|
1803
|
-
return { forms: response.forms.map((form) =>
|
|
1815
|
+
return { forms: response.forms.map((form) => normalizePublicForm(form)) };
|
|
1804
1816
|
}
|
|
1805
1817
|
function normalizePublicFormsResult(result) {
|
|
1806
1818
|
if (isApiError(result)) return result;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as eventCheckoutReturnResponseSchema, i as eventCheckoutResponseSchema, n as blockSiteTermsSchema, o as eventRegisterResponseSchema, p as calendarWindowPageSchema } from "./noop-
|
|
2
|
+
import { a as eventCheckoutReturnResponseSchema, i as eventCheckoutResponseSchema, n as blockSiteTermsSchema, o as eventRegisterResponseSchema, p as calendarWindowPageSchema } from "./noop-B610YKEx.mjs";
|
|
3
3
|
import { createContext, useContext, useMemo } from "react";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { c as assertNever } from "./src-VIsPY-kw.mjs";
|
|
3
|
+
import { An as isEventFull, Cn as canJoinEventWaitlistOnAnyMode, xn as resolveRuntimeEventDestination } from "./wizardSteps-zgq10lN1.mjs";
|
|
3
4
|
//#region ../blocks/src/system/runtime/nodes/events/domain/cta.ts
|
|
4
5
|
/**
|
|
5
6
|
* Booking call-to-action resolution for events: where an event links to and
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Ct as toUtcIsoDateTimeString, bt as resolveBookingTimeZoneId, ct as resolveBookingDisplayContext, it as formatDateTimeRange, rt as formatDateTime$1, tt as formatDate$1, vt as parseUtcIsoDateTimeString } from "./noop-B610YKEx.mjs";
|
|
3
|
+
//#region ../blocks/src/portal/dateFormatting.ts
|
|
4
|
+
/** Optional API timestamps enter the display model here; invalid values never render a Date. */
|
|
5
|
+
function readInstant(value) {
|
|
6
|
+
const result = value ? parseUtcIsoDateTimeString(value) : null;
|
|
7
|
+
return result?.ok ? result.value : null;
|
|
8
|
+
}
|
|
9
|
+
function formatDate(value, context, style = "short") {
|
|
10
|
+
const instant = readInstant(value);
|
|
11
|
+
return instant ? formatDate$1({
|
|
12
|
+
kind: "instant",
|
|
13
|
+
value: instant
|
|
14
|
+
}, context, { date: style }) : "—";
|
|
15
|
+
}
|
|
16
|
+
function formatEntitlementEnd(value, context, style = "short") {
|
|
17
|
+
const instant = readInstant(value);
|
|
18
|
+
const lastValid = instant ? /* @__PURE__ */ new Date(Date.parse(instant) - 1) : null;
|
|
19
|
+
return lastValid && Number.isFinite(lastValid.getTime()) ? formatDate$1({
|
|
20
|
+
kind: "instant",
|
|
21
|
+
value: toUtcIsoDateTimeString(lastValid.toISOString())
|
|
22
|
+
}, context, { date: style }) : "—";
|
|
23
|
+
}
|
|
24
|
+
function formatDateTime(value, context, style = "short", zone = "omit") {
|
|
25
|
+
const instant = readInstant(value);
|
|
26
|
+
return instant ? formatDateTime$1(instant, context, {
|
|
27
|
+
date: style,
|
|
28
|
+
zone
|
|
29
|
+
}) : "—";
|
|
30
|
+
}
|
|
31
|
+
function portalSessionDisplay(facts, site) {
|
|
32
|
+
return resolveBookingDisplayContext({
|
|
33
|
+
sessionTimeZone: resolveBookingTimeZoneId(facts.timeZone, site.timeZone),
|
|
34
|
+
siteTimeZone: site.timeZone,
|
|
35
|
+
locale: site.locale,
|
|
36
|
+
isOnline: facts.isOnline ?? false,
|
|
37
|
+
surface: "public"
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function formatPortalSession(start, end, facts, site) {
|
|
41
|
+
const { context, zone } = portalSessionDisplay(facts, site);
|
|
42
|
+
const startsAt = readInstant(start);
|
|
43
|
+
const endsAt = readInstant(end);
|
|
44
|
+
if (!startsAt) return "—";
|
|
45
|
+
return endsAt && Date.parse(endsAt) >= Date.parse(startsAt) ? formatDateTimeRange({
|
|
46
|
+
start: startsAt,
|
|
47
|
+
end: endsAt
|
|
48
|
+
}, context, {
|
|
49
|
+
date: "short",
|
|
50
|
+
zone
|
|
51
|
+
}) : formatDateTime$1(startsAt, context, {
|
|
52
|
+
date: "short",
|
|
53
|
+
zone
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function isPast(value, now) {
|
|
57
|
+
const instant = readInstant(value);
|
|
58
|
+
return instant !== null && Date.parse(instant) < Date.parse(now);
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
export { isPast as a, formatPortalSession as i, formatDateTime as n, portalSessionDisplay as o, formatEntitlementEnd as r, formatDate as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as BlockApiError } from "./context-
|
|
2
|
+
import { r as BlockApiError } from "./context-BLAvalAa.mjs";
|
|
3
3
|
//#region ../blocks/src/system/runtime/shared/utils/demoBookingPassStorage.ts
|
|
4
4
|
const STORAGE_KEY = "riverbank:demo-booking-passes:v1";
|
|
5
5
|
const CHECKOUT_RETURN_EMAIL_KEY = "riverbank:demo-booking-checkout-email:v1";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-
|
|
3
|
-
import {
|
|
2
|
+
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-C22C9cCF.mjs";
|
|
3
|
+
import { rn as staticHeaderChromeRuntime, v as buildCartDisplay } from "./shop.interactive-5SnnDHz3.mjs";
|
|
4
4
|
import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-DKlZRNZD.mjs";
|
|
5
5
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
6
6
|
import { n as NAV_DROPDOWN_SHIFT_PROPERTY } from "./navDropdownSizing-CUjDrcIt.mjs";
|
|
7
|
-
import { n as useCommerceCart } from "./shop-commerce-store-
|
|
7
|
+
import { n as useCommerceCart } from "./shop-commerce-store-BJtrZov9.mjs";
|
|
8
8
|
import * as React$1 from "react";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { createPortal } from "react-dom";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as resolveEventDetailsPresentation, t as EventDetailsView } from "./view-
|
|
3
|
-
import { t as LeafletStaticMap } from "./LeafletStaticMap-
|
|
2
|
+
import { a as resolveEventDetailsPresentation, t as EventDetailsView } from "./view-CseyBW07.mjs";
|
|
3
|
+
import { t as LeafletStaticMap } from "./LeafletStaticMap-ClZCCzAm.mjs";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region ../blocks/src/system/runtime/nodes/event-details.client.tsx
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
2
|
+
import { r as ThemedButton, u as SpinnerNode } from "./ThemedButton-C22C9cCF.mjs";
|
|
3
|
+
import { t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
4
|
+
import { A as isEventRegistrationAvailable, An as isEventFull, At as getTicketSelectionTotal, B as paymentChoiceDetails, Cn as canJoinEventWaitlistOnAnyMode, Ct as occurrenceTitleOverride, D as settledRemainingPlaces, Dn as getEventAvailability, Dr as resolveEventRegistrationScopedEvents, Dt as canRequestTicketOption, Et as formatPrice, Ht as shownVenue, Ki as publicEventPricingStrategy, Mn as selectMostOpenCapacitySource, Nn as groupPublicEventsByRun, Pt as setTicketLineQuantity, Sn as canJoinEventWaitlist, St as getVisibleTicketTypes, T as resolveRegistrationAvailabilityBlocker, Tt as withOccurrenceTitle, Un as getRegistrationSuccessCopy, V as paymentChoicePrice, Wi as publicEventPricingCurrency, _ as shouldPromptForLogin, _t as formatRegistrationSchedule, b as placeCountCeiling, c as registrationStepLabelContext, ct as confirmationPaymentRows, dt as areEntitlementsDisabledForTicketCount, gt as formatPassCreditUsageLabel, ht as formatEventDateTime, j as normalizeEventRegistrationMaxTickets, jn as selectEventCapacitySource, jt as getTicketTypeLineMax, kn as getRemainingPlaces, kt as getTicketLineQuantity, l as areEventRegistrationPaymentSelectionsEqual, lt as resolveFinishedPresentation, mt as formatDate, n as getEventSelectionMode, pt as formatBookingWhen, qi as publicEventPricingType, r as panelShouldOpen, s as registrationStepLabel, ut as ENTITLEMENT_SINGLE_TICKET_TOOLTIP, v as fullyBookedLabel, vt as formatTime, xt as getTicketTypeAvailabilityLabel, zt as placesLeftLabel } from "./wizardSteps-zgq10lN1.mjs";
|
|
5
|
+
import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, r as SiteTermsAgreementField, s as eventSiteTermsSurface, t as BookingConfirmation } from "./DemoBookingPortalAccess-CaN-7ui7.mjs";
|
|
6
|
+
import { J as displayButtonText, K as buildEventRegistrationDisplayFromScopedEvents, Qt as formatEventPriceDisplay, Z as offeringNounForEvent, _t as bookingPanelHeading, ft as DEFAULT_BOOKING_BUTTON_TEXT, gt as bookingEntryProgress, ht as bookingEntry, mt as bookingCardEntry, pt as bookingBarPlacement } from "./shop.interactive-5SnnDHz3.mjs";
|
|
7
|
+
import { a as getWaitlistClaimEntryIdFromUrl, i as eventRegistrationCheckoutReturnRequest, o as getWaitlistClaimTokenFromUrl, r as useEventRegistrationWizard, t as EventPaymentMount } from "./EventRegistrationPayment-Dc3Fnlnw.mjs";
|
|
8
8
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
9
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
9
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-Bhm6RAUL.mjs";
|
|
10
10
|
import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
|
|
11
11
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
12
12
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
13
|
-
import { t as DemoPortalSignInLink } from "./DemoPortalSignInLink-
|
|
14
|
-
import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-
|
|
13
|
+
import { t as DemoPortalSignInLink } from "./DemoPortalSignInLink-ClxN5_xZ.mjs";
|
|
14
|
+
import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-DK2w_i0a.mjs";
|
|
15
15
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
16
|
-
import { i as PaymentChoiceRows, n as BookingConsentAgreement, t as BookingMailingListNote } from "./BookingMailingListNote-
|
|
16
|
+
import { i as PaymentChoiceRows, n as BookingConsentAgreement, t as BookingMailingListNote } from "./BookingMailingListNote-C00sLLdL.mjs";
|
|
17
17
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
18
|
-
import { i as RegistrationClosedState, n as BookingEntryBar, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-
|
|
19
|
-
import { n as useBlockApi, r as BlockApiError } from "./context-
|
|
18
|
+
import { i as RegistrationClosedState, n as BookingEntryBar, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-DiD6euZ8.mjs";
|
|
19
|
+
import { n as useBlockApi, r as BlockApiError } from "./context-BLAvalAa.mjs";
|
|
20
20
|
import { i as AltchaWidget, r as isSpamProtectionEnabled, t as getChallengeUrl } from "./src-BNZzXgWu.mjs";
|
|
21
|
-
import { t as useBookingNowIso } from "./useBookingNowIso-
|
|
22
|
-
import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-
|
|
21
|
+
import { t as useBookingNowIso } from "./useBookingNowIso-CMgfL7YJ.mjs";
|
|
22
|
+
import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-R-awbk_0.mjs";
|
|
23
23
|
import { t as createLucideIcon } from "./createLucideIcon-CIbxe9em.mjs";
|
|
24
24
|
import React, { useCallback, useEffect, useId, useLayoutEffect, useReducer, useRef, useState } from "react";
|
|
25
25
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1653,17 +1653,22 @@ function TicketTypeQuantityRows(props) {
|
|
|
1653
1653
|
"aria-label": props.bookingUnit === "place" ? "Places" : "Tickets",
|
|
1654
1654
|
children: props.ticketTypes.map((ticketType) => {
|
|
1655
1655
|
const quantity = getTicketLineQuantity(props.ticketSelections, ticketType.pricingOptionId);
|
|
1656
|
-
const disabled = !canRequestTicketOption(ticketType.availability);
|
|
1656
|
+
const disabled = !canRequestTicketOption(ticketType.availability, props.purpose);
|
|
1657
1657
|
const availabilityLabel = getTicketTypeAvailabilityLabel(ticketType);
|
|
1658
1658
|
const ticketTypeRemainingLabel = placesLeftLabel({
|
|
1659
1659
|
kind: "ticketType",
|
|
1660
1660
|
remaining: ticketType.availability.remainingPlaces
|
|
1661
1661
|
}, props.display);
|
|
1662
1662
|
const priceLabel = ticketType.priceAmount > 0 ? formatPrice(ticketType.priceAmount, props.currency) : "Free";
|
|
1663
|
-
const maxAllowed =
|
|
1663
|
+
const maxAllowed = getTicketTypeLineMax({
|
|
1664
1664
|
currentQuantity: quantity,
|
|
1665
1665
|
totalSelectedQuantity,
|
|
1666
|
-
maxTickets: props.maxTickets
|
|
1666
|
+
maxTickets: props.maxTickets,
|
|
1667
|
+
purpose: props.purpose,
|
|
1668
|
+
pricingOptionId: ticketType.pricingOptionId,
|
|
1669
|
+
availability: ticketType.availability,
|
|
1670
|
+
heldPlacesBySelection: props.heldPlacesBySelection,
|
|
1671
|
+
overallRemainingPlaces: props.availableSpots ?? null
|
|
1667
1672
|
});
|
|
1668
1673
|
return /* @__PURE__ */ jsxs("div", {
|
|
1669
1674
|
className: `er-ticket-line${disabled ? " er-ticket-line--disabled" : ""}`,
|
|
@@ -1817,7 +1822,7 @@ function PlaceCounter(props) {
|
|
|
1817
1822
|
*
|
|
1818
1823
|
* Can use either a full PublicEvent or just occurrence context (when on event page).
|
|
1819
1824
|
*/
|
|
1820
|
-
const TicketSelectionStep = ({ event, display, occurrenceContext: _occurrenceContext, selectedAttendanceMode = null, onAttendanceModeChange, ticketsCount, maxTickets, placesCeiling, visibleTicketTypes: visibleTicketTypesOverride, ticketSelections = [], onTicketSelectionsChange, slidingScale = null, selectedSlidingAmountInput = "", slidingScaleSelectionMessage = null, onSlidingAmountChange, onTicketsChange, bookingUnit = { kind: "ticket" } }) => {
|
|
1825
|
+
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" } }) => {
|
|
1821
1826
|
const unit = bookingUnit.kind;
|
|
1822
1827
|
const deliveryMode = event?.deliveryMode ?? "in_person";
|
|
1823
1828
|
const attendanceModes = event?.attendanceModes ?? [];
|
|
@@ -1827,10 +1832,11 @@ const TicketSelectionStep = ({ event, display, occurrenceContext: _occurrenceCon
|
|
|
1827
1832
|
const visibleTicketTypes = usesTicketTypes ? visibleTicketTypesOverride ?? getVisibleTicketTypes({
|
|
1828
1833
|
event,
|
|
1829
1834
|
eligibility: null,
|
|
1830
|
-
selectedAttendanceMode
|
|
1835
|
+
selectedAttendanceMode,
|
|
1836
|
+
ticketSelections
|
|
1831
1837
|
}) : [];
|
|
1832
1838
|
const noVisibleTicketTypes = usesTicketTypes && visibleTicketTypes.length === 0;
|
|
1833
|
-
const hasAvailableTicketTypes = usesTicketTypes && visibleTicketTypes.some((ticketType) => canRequestTicketOption(ticketType.availability));
|
|
1839
|
+
const hasAvailableTicketTypes = usesTicketTypes && visibleTicketTypes.some((ticketType) => canRequestTicketOption(ticketType.availability, purpose));
|
|
1834
1840
|
const maxAllowed = maxTickets;
|
|
1835
1841
|
if (deliveryMode === "hybrid" && !selectedAttendanceMode) return /* @__PURE__ */ jsxs("div", {
|
|
1836
1842
|
className: "rb-reg-stack er-stack",
|
|
@@ -1883,11 +1889,13 @@ const TicketSelectionStep = ({ event, display, occurrenceContext: _occurrenceCon
|
|
|
1883
1889
|
}),
|
|
1884
1890
|
/* @__PURE__ */ jsx(BookingUnitSessionHint, { bookingUnit }),
|
|
1885
1891
|
/* @__PURE__ */ jsx(TicketTypeQuantityRows, {
|
|
1892
|
+
purpose,
|
|
1886
1893
|
display,
|
|
1887
1894
|
ticketTypes: visibleTicketTypes,
|
|
1888
1895
|
ticketSelections,
|
|
1889
1896
|
maxTickets,
|
|
1890
|
-
|
|
1897
|
+
heldPlacesBySelection,
|
|
1898
|
+
availableSpots: resolveRemainingPlacesOverride(overallRemainingPlaces, availableSpots),
|
|
1891
1899
|
availabilityLabel: eventAvailabilityLabel,
|
|
1892
1900
|
currency: eventPricingCurrency,
|
|
1893
1901
|
hasAvailableTicketTypes,
|
|
@@ -1923,6 +1931,9 @@ const TicketSelectionStep = ({ event, display, occurrenceContext: _occurrenceCon
|
|
|
1923
1931
|
]
|
|
1924
1932
|
});
|
|
1925
1933
|
};
|
|
1934
|
+
function resolveRemainingPlacesOverride(override, cached) {
|
|
1935
|
+
return override === void 0 ? cached : override;
|
|
1936
|
+
}
|
|
1926
1937
|
//#endregion
|
|
1927
1938
|
//#region ../blocks/src/system/runtime/nodes/event-registration/GuestDetailsSection.tsx
|
|
1928
1939
|
/** Default error message shown when guest validation fails */
|
|
@@ -3026,6 +3037,7 @@ function TicketSelectionContent({ wizard, display }) {
|
|
|
3026
3037
|
}),
|
|
3027
3038
|
/* @__PURE__ */ jsx(ClosedAdmissionNotice, { wizard }),
|
|
3028
3039
|
/* @__PURE__ */ jsx(TicketSelectionStep, {
|
|
3040
|
+
purpose: wizard.ticketSelectionPurpose,
|
|
3029
3041
|
display,
|
|
3030
3042
|
event: wizard.selectedEvent,
|
|
3031
3043
|
occurrenceContext: wizard.occurrenceContext,
|
|
@@ -3039,6 +3051,8 @@ function TicketSelectionContent({ wizard, display }) {
|
|
|
3039
3051
|
settledRemaining: settledRemainingPlaces(wizard.eligibility)
|
|
3040
3052
|
}),
|
|
3041
3053
|
visibleTicketTypes: wizard.visibleTicketTypes,
|
|
3054
|
+
overallRemainingPlaces: wizard.overallRemainingPlaces,
|
|
3055
|
+
heldPlacesBySelection: wizard.heldPlacesBySelection,
|
|
3042
3056
|
ticketSelections: wizard.selectedTicketLines,
|
|
3043
3057
|
onTicketSelectionsChange: wizard.setSelectedTicketLines,
|
|
3044
3058
|
slidingScale: wizard.selectedEventSlidingScale,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as BlockApiProvider } from "./context-
|
|
4
|
-
import { t as EventCalendarClient } from "./EventCalendar.client-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-2nNZh2Oe.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-BLAvalAa.mjs";
|
|
4
|
+
import { t as EventCalendarClient } from "./EventCalendar.client-BncvSa1n.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-C5u8MbAA.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 defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as BlockApiProvider } from "./context-
|
|
4
|
-
import { n as EventCombinedIslandClient } from "./EventCombined.client-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-2nNZh2Oe.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-BLAvalAa.mjs";
|
|
4
|
+
import { n as EventCombinedIslandClient } from "./EventCombined.client-DluBxVVu.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-C5u8MbAA.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-2nNZh2Oe.mjs";
|
|
3
|
+
import { t as EventDetailsIslandClient } from "./event-details.client-BS1WtG-a.mjs";
|
|
4
4
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.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 defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as BlockApiProvider } from "./context-
|
|
4
|
-
import { t as EventListingClient } from "./EventListing.client-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-2nNZh2Oe.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-BLAvalAa.mjs";
|
|
4
|
+
import { t as EventListingClient } from "./EventListing.client-DPO6SZbx.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-C5u8MbAA.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 { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as EventRegistrationIslandClient } from "./event-registration.client-
|
|
4
|
-
import { t as BlockApiProvider } from "./context-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-2nNZh2Oe.mjs";
|
|
3
|
+
import { t as EventRegistrationIslandClient } from "./event-registration.client-BXndwsET.mjs";
|
|
4
|
+
import { t as BlockApiProvider } from "./context-BLAvalAa.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-C5u8MbAA.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 defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as BlockApiProvider } from "./context-
|
|
4
|
-
import { t as FormNodeClient } from "./form.client-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-2nNZh2Oe.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-BLAvalAa.mjs";
|
|
4
|
+
import { t as FormNodeClient } from "./form.client-DoZVcl8d.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { C as clsx } from "./ThemedButton-C22C9cCF.mjs";
|
|
3
|
+
import { n as err, r as ok, t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
4
|
+
import { Pr as listLookSlot } from "./wizardSteps-zgq10lN1.mjs";
|
|
5
5
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
6
|
-
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-
|
|
7
|
-
import { n as useBlockApi } from "./context-
|
|
6
|
+
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-mttKpgif.mjs";
|
|
7
|
+
import { n as useBlockApi } from "./context-BLAvalAa.mjs";
|
|
8
8
|
import { i as AltchaWidget, r as isSpamProtectionEnabled, t as getChallengeUrl } from "./src-BNZzXgWu.mjs";
|
|
9
9
|
import { useReducer, useRef, useState } from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as ThemedButton } from "./ThemedButton-
|
|
3
|
-
import {
|
|
4
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
2
|
+
import { r as ThemedButton } from "./ThemedButton-C22C9cCF.mjs";
|
|
3
|
+
import { Nr as listLookControl, Pr as listLookSlot } from "./wizardSteps-zgq10lN1.mjs";
|
|
4
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-Bhm6RAUL.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region ../blocks/src/system/runtime/nodes/form.fields.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { gt as parseBookingLocalDate, rt as formatDateTime, tt as formatDate$1, vt as parseUtcIsoDateTimeString } from "./noop-
|
|
2
|
+
import { gt as parseBookingLocalDate, rt as formatDateTime, tt as formatDate$1, vt as parseUtcIsoDateTimeString } from "./noop-B610YKEx.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,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import {
|
|
4
|
-
import { Ct as toUtcIsoDateTimeString, bt as resolveBookingTimeZoneId, t as logger, tt as formatDate } from "../noop-
|
|
3
|
+
import { Pr as formatGiftCardAmountLabel, i as ThemedButtonLink, r as ThemedButton } from "../ThemedButton-C22C9cCF.mjs";
|
|
4
|
+
import { Ct as toUtcIsoDateTimeString, bt as resolveBookingTimeZoneId, t as logger, tt as formatDate } from "../noop-B610YKEx.mjs";
|
|
5
5
|
import { t as CheckIcon } from "../CheckIcon-CVcKteXH.mjs";
|
|
6
|
-
import { n as useBlockApi, r as BlockApiError, t as BlockApiProvider } from "../context-
|
|
6
|
+
import { n as useBlockApi, r as BlockApiError, t as BlockApiProvider } from "../context-BLAvalAa.mjs";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { useRouter } from "next/navigation.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as mountHeaderChromeRuntime } from "./enhanceHeaderSection-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-2nNZh2Oe.mjs";
|
|
3
|
+
import { t as mountHeaderChromeRuntime } from "./enhanceHeaderSection-9Q93uvTo.mjs";
|
|
4
4
|
//#region src/rendering/islands/enhancers/headerSection.ts
|
|
5
5
|
const decode = defineIslandPropsDecoder("headerSection");
|
|
6
6
|
const enhance = (root, props) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as normalizeLocationMapProps, t as LocationMapView } from "./location-map.view-
|
|
3
|
-
import { t as LeafletStaticMap } from "./LeafletStaticMap-
|
|
2
|
+
import { i as normalizeLocationMapProps, t as LocationMapView } from "./location-map.view-Cx4Bl7ij.mjs";
|
|
3
|
+
import { t as LeafletStaticMap } from "./LeafletStaticMap-ClZCCzAm.mjs";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region ../blocks/src/system/runtime/nodes/location-map.client.tsx
|