@riverbankcms/sdk 0.158.0 → 0.159.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 +21 -2
- package/dist/_dts/{BlocksIslandsHydrator-BgNBtEai.d.ts → BlocksIslandsHydrator-Cj1i1Yhh.d.ts} +1 -1
- package/dist/_dts/{Page-DpCo8zXD.d.ts → Page-Cgzbv22M.d.ts} +6 -6
- package/dist/_dts/{SdkPreviewMode-Bv2TMscG.d.ts → SdkPreviewMode-BC_FGc6b.d.ts} +2 -2
- package/dist/_dts/{client-B960v2gW.d.ts → client-BOK-YHVJ.d.ts} +23 -1
- package/dist/_dts/{content-types-CN0Wy8V6.d.ts → content-types-CsrYWxq_.d.ts} +2 -2
- package/dist/_dts/{contracts-BFUrby76.d.ts → contracts-ClgMD-9g.d.ts} +4 -4
- package/dist/_dts/{footerPageOutline-CmoqleLS.d.ts → footerPageOutline-C_IDuELl.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-Dkvivc3R.d.ts → generatePageMetadata-B7bhYSWx.d.ts} +5 -2
- package/dist/_dts/{hosted-booking-appearance-BIbit60h.d.ts → hosted-booking-appearance-ChGCQYdQ.d.ts} +15 -7
- package/dist/_dts/{index-Ba6RmuxX.d.ts → index-BZ4fb2zz.d.ts} +3 -3
- package/dist/_dts/{index-DCNu_8it.d.ts → index-CcaG6O13.d.ts} +4 -4
- package/dist/_dts/{index-DfkFWUxt.d.ts → index-Ci1PEk82.d.ts} +1 -1
- package/dist/_dts/{index-DaS_z6ir.d.ts → index-DMOfW1A7.d.ts} +1 -1
- package/dist/_dts/{index-DpgkhY-a.d.ts → index-Dt3XSGzY.d.ts} +2 -2
- package/dist/_dts/{index-DPfI2t5A.d.ts → index-DzUdUaJ-.d.ts} +2 -2
- package/dist/_dts/{loadContent-DvvKF4nB.d.ts → loadContent-C1JI2pG0.d.ts} +7 -7
- package/dist/_dts/{navigation-n-eTVTIQ.d.ts → navigation-BnV_hOZy.d.ts} +20 -19
- package/dist/_dts/{resolvePageContent-D0lGwVD6.d.ts → resolvePageContent-BtRUtrJa.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 +6 -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 +3 -3
- 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 +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/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-BY7PgnDi.d.ts → types--oWXIfyz.d.ts} +7 -7
- package/dist/_dts/{types-BJrRUaY7.d.ts → types-CI9dYWJ8.d.ts} +2 -2
- package/dist/_dts/{types-maEnXL6Z.d.ts → types-CMFIZGUI.d.ts} +3 -3
- package/dist/_dts/{validation-BjuVrMrs.d.ts → validation-Ct-GL0eA.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-WRLS96Ev.mjs → BlocksIslandsHydrator-DKS8Ba30.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-eovghMPa.mjs → BookingMailingListNote-Cg9v6d7Y.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-CIcMQRc1.mjs → CalendarNavigationChevron-BoVCTUXy.mjs} +5 -5
- package/dist/client/{DemoBookingPortalAccess-CdnFgDyQ.mjs → DemoBookingPortalAccess-BxRVCJG3.mjs} +3 -3
- package/dist/client/{EventCalendar.client-Dc-ZLxKo.mjs → EventCalendar.client-BI-kvwXf.mjs} +8 -8
- package/dist/client/{EventCombined.client-C93XqRIv.mjs → EventCombined.client-DIvnoN5l.mjs} +6 -6
- package/dist/client/{EventItem-DnCTygqk.mjs → EventItem-BRMtEaa6.mjs} +3 -3
- package/dist/client/{EventListWeekNavigation-9h97heuQ.mjs → EventListWeekNavigation-B8DzAUDa.mjs} +1 -1
- package/dist/client/{EventListing.client-DFKlQvvs.mjs → EventListing.client-Bo4qzQi0.mjs} +3 -3
- package/dist/client/{EventListing.view-pAuTDyrP.mjs → EventListing.view-D2vemnCx.mjs} +4 -4
- package/dist/client/{EventRegistrationPayment-rgKlBvhP.mjs → EventRegistrationPayment-e5XWtygG.mjs} +120 -88
- package/dist/client/{LeafletStaticMap-3XiWSgy0.mjs → LeafletStaticMap-dlapZ6mi.mjs} +1 -1
- package/dist/client/{Page-BmpeAwID.mjs → Page-Dqpv9Ggi.mjs} +16 -13
- package/dist/client/{StepIndicator-qEq6X5zP.mjs → StepIndicator-BrvKa_8H.mjs} +2 -2
- package/dist/client/{accordion-DeObOasQ.mjs → accordion-ByLpb4Dz.mjs} +1 -1
- package/dist/client/{booking-form.client-DfWeF0lj.mjs → booking-form.client-BLndwxpx.mjs} +9 -9
- package/dist/client/{bookingForm-TnzIBHx2.mjs → bookingForm-CTxTEgHX.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-kkFnbr5Z.mjs → carousel-C8ef0vnT.mjs} +1 -1
- package/dist/client/{cart-BAXNbFux.mjs → cart-BpH6jkUO.mjs} +3 -3
- package/dist/client/{cart.client-BczxUF70.mjs → cart.client-DV78Td13.mjs} +1 -1
- package/dist/client/{checkout-C5NRhPeP.mjs → checkout-BJVb2RpL.mjs} +3 -3
- package/dist/client/{checkout.client-BuDk3Td9.mjs → checkout.client-CqGPXPSm.mjs} +1 -1
- package/dist/client/client.mjs +2 -2
- package/dist/client/{context-CVsgML69.mjs → context-BRgBWthI.mjs} +1 -1
- package/dist/client/{cta-BWnUuJce.mjs → cta-D8ucLsvX.mjs} +1 -1
- package/dist/client/dateFormatting-LeKNQ-iX.mjs +61 -0
- package/dist/client/{demoPortalMagicLink-CUlwvmxf.mjs → demoPortalMagicLink-CjstiFPh.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-Cw8nnFj-.mjs → enhanceHeaderSection-BaQJyI9x.mjs} +2 -2
- package/dist/client/{event-details.client-Bl0E_6Vi.mjs → event-details.client-CYNQYOsP.mjs} +2 -2
- package/dist/client/{event-registration.client-DmfLg_LC.mjs → event-registration.client-DDqSpN36.mjs} +31 -17
- package/dist/client/{eventCalendar-D1Dwb9VA.mjs → eventCalendar-3vQtuC9X.mjs} +4 -4
- package/dist/client/{eventCombined-DfsqY1qR.mjs → eventCombined-CEJFMjqV.mjs} +4 -4
- package/dist/client/{eventDetails-BmugDVoa.mjs → eventDetails-nGh47jef.mjs} +2 -2
- package/dist/client/{eventListing-BPAGJi3C.mjs → eventListing-BL3Ptb83.mjs} +4 -4
- package/dist/client/{eventRegistration-DBlz_x6u.mjs → eventRegistration-DDSO6KB2.mjs} +4 -4
- package/dist/client/{form-DVu3ZMjx.mjs → form-DjNLfy2Z.mjs} +3 -3
- package/dist/client/{form.client-QZUyABIY.mjs → form.client-Cj0By6ot.mjs} +3 -3
- package/dist/client/{form.parts-Bs0F3v08.mjs → form.parts-DyA9C5Hy.mjs} +1 -1
- package/dist/client/{formatDate-BD9D3dgo.mjs → formatDate-CZo0MPTA.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-BQwWW4Yy.mjs → headerSection-JjSq6Mzp.mjs} +2 -2
- package/dist/client/{location-map.client-upKuwABk.mjs → location-map.client-DRN1JePj.mjs} +2 -2
- package/dist/client/{location-map.view-RuBCD10O.mjs → location-map.view-CuCvQdvp.mjs} +2 -2
- package/dist/client/{locationMap-1sCbsk0V.mjs → locationMap-B9srHHzZ.mjs} +2 -2
- package/dist/client/{newsletter-form.client-DBTU3oNv.mjs → newsletter-form.client-C2EgEBP1.mjs} +4 -4
- package/dist/client/{newsletter-form.parts-C9I9JBhe.mjs → newsletter-form.parts-CaldoFmi.mjs} +1 -1
- package/dist/client/{newsletterForm-DTPtTxxG.mjs → newsletterForm-hm7L17LM.mjs} +3 -3
- package/dist/client/{noop-DMFt3KdC.mjs → noop-M8FTSgm2.mjs} +2 -2
- package/dist/client/portal/client.mjs +10 -67
- package/dist/client/{product-detail.client-BX7M5o6p.mjs → product-detail.client-y86uwzEI.mjs} +1 -1
- package/dist/client/{product-list.client-i32QNY4c.mjs → product-list.client-_JBndYZT.mjs} +1 -1
- package/dist/client/{productDetail-DWjE9zm7.mjs → productDetail-D-9fb2cW.mjs} +3 -3
- package/dist/client/{productList-DZH9_brv.mjs → productList-BSRlnwBW.mjs} +3 -3
- package/dist/client/{propsDecoder-CTzHkEkh.mjs → propsDecoder-DhbGL302.mjs} +3 -3
- package/dist/client/{registry.server-vJ5FlscU.mjs → registry.server-BaX0hxf5.mjs} +83 -63
- package/dist/client/rendering/client.mjs +23 -23
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +4 -4
- package/dist/client/{richText-coerce-DXAmC72p.mjs → richText-coerce-Cny2Ukb6.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CmC7ygin.mjs → routeIslandApiConfig-96er7pIx.mjs} +1 -1
- package/dist/client/{shop-C7eL3B37.mjs → shop-CnIJfdZA.mjs} +3 -3
- package/dist/client/{shop-commerce-D8oRN0QJ.mjs → shop-commerce-CsLwzq5O.mjs} +9 -9
- package/dist/client/{shop-commerce-store-CRnQ4M18.mjs → shop-commerce-store--O8GRBwr.mjs} +1 -1
- package/dist/client/{shop.client-X6d6KVmA.mjs → shop.client-BcaJ-acA.mjs} +11 -10
- package/dist/client/{shop.interactive-DBMeM8VD.mjs → shop.interactive-BxL_bshW.mjs} +37 -3
- package/dist/client/{shopShared-Y182kN_s.mjs → shopShared-VZjPOfCX.mjs} +2 -2
- package/dist/client/{timetableModel-D7PwpaBY.mjs → timetableModel-D09jPdue.mjs} +5 -5
- package/dist/client/{useAvailableSlots-BDV6MHgJ.mjs → useAvailableSlots-pTXuY3jV.mjs} +2 -2
- package/dist/client/{useBookingNowIso-DgJEv3ZY.mjs → useBookingNowIso-D14J-EhJ.mjs} +1 -1
- package/dist/client/{useDiscountApply-BTu9EeT7.mjs → useDiscountApply-o5sIVZ2u.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-BfZxdxI-.mjs → useDiscountCodeUi-DJhFP_rg.mjs} +1 -1
- package/dist/client/{useEventPagination-pnvdHGeQ.mjs → useEventPagination-DMmNf2FP.mjs} +6 -6
- package/dist/client/{view-hJr_L4QC2.mjs → view-BgPql2yH2.mjs} +3 -3
- package/dist/client/{view-BPEa6Okm.mjs → view-D1R3Lk05.mjs} +13 -69
- package/dist/client/{wizardSteps-HdyGoIG3.mjs → wizardSteps-C0TsNqJc.mjs} +102 -37
- package/dist/preview-next/client/{PreviewEditorSidebar-CXRUbqMp.mjs → PreviewEditorSidebar-DADCj_ET.mjs} +67 -67
- package/dist/preview-next/client/{PreviewEditorUI-CxjEV0Fm.mjs → PreviewEditorUI-La40Dmmh.mjs} +3 -3
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BxI12BBS.mjs → SdkPreviewModeRuntime-406Hw9zY.mjs} +130 -130
- package/dist/preview-next/client/{SdkPreviewModeRuntime-XdQSGGj_.mjs → SdkPreviewModeRuntime-CWN44I_B.mjs} +1 -1
- package/dist/preview-next/client/{SiteChromeCustomizeContext-CfRQRwpH.mjs → SiteChromeCustomizeContext-BdwEZoo9.mjs} +111593 -111244
- package/dist/preview-next/client/{previewChromeSurface-CH7hd5n7.mjs → previewChromeSurface-BVUKIYG0.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-C6xEU1LI.mjs → sdk-runtime-Cy9AKPy5.mjs} +1 -1
- package/dist/preview-next/client/{siteStyleAccess-CRXaC2oL.mjs → siteStyleAccess-CFMmoMZb.mjs} +1 -1
- package/dist/preview-next/client/{spinner-BTf1CZmy.mjs → spinner-Bhpzz2vO.mjs} +1 -1
- package/dist/server/{Block.shared-DLoilC2J.mjs → Block.shared-DB6fb1pR.mjs} +4 -4
- package/dist/server/{bindings-C7DKLVx_.mjs → bindings-z2daXp-2.mjs} +1 -1
- package/dist/server/{blocks-jlIm0PWc.mjs → blocks-BaG8Qpaa.mjs} +64 -29
- package/dist/server/{client-CU4wlMLE.mjs → client-Cv-osXoU.mjs} +1 -1
- 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-BNMDYCm8.mjs} +4 -4
- package/dist/server/{loadPage-BBkDQA57.mjs → loadPage-CjA_F_AF.mjs} +2 -2
- package/dist/server/loadPage-jade28Xh.mjs +2 -0
- package/dist/server/metadata.mjs +2 -2
- package/dist/server/next.mjs +12 -11
- package/dist/server/{overrideResolution-ByeAbLSO.mjs → overrideResolution-CGodrtqi.mjs} +1 -1
- package/dist/server/{overrides-BcA6ZPWf.mjs → overrides-DxRC724a.mjs} +73 -114
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-8T-m7XjB.mjs → prebuild-C6bhjRKT.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Bjya-X9t.mjs → prefetchBlockData-DZ5Fq_-r.mjs} +1 -1
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-D0ow8PRJ.mjs → resolveBlockData-CbGDakvp.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/{themeAdmission-D2-BnmDO.mjs → themeAdmission-DK2YBNqy.mjs} +8 -6
- package/dist/server/{validation-Cm41pDUB.mjs → validation-BtHE2S_D.mjs} +2 -2
- package/dist/server/{version-Bo9C3McI.mjs → version-CNCdL6id.mjs} +1 -1
- package/package.json +1 -1
- package/dist/server/loadPage-ZrcfjG3X.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { An as isEventFull, Cn as canJoinEventWaitlistOnAnyMode, Xi as assertNever, xn as resolveRuntimeEventDestination } from "./wizardSteps-C0TsNqJc.mjs";
|
|
3
3
|
//#region ../blocks/src/system/runtime/nodes/events/domain/cta.ts
|
|
4
4
|
/**
|
|
5
5
|
* 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-M8FTSgm2.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-BRgBWthI.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
2
|
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-DVBC_pS9.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { tn as staticHeaderChromeRuntime, v as buildCartDisplay } from "./shop.interactive-BxL_bshW.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--O8GRBwr.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-D1R3Lk05.mjs";
|
|
3
|
+
import { t as LeafletStaticMap } from "./LeafletStaticMap-dlapZ6mi.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,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { l as SpinnerNode, r as ThemedButton } from "./ThemedButton-DVBC_pS9.mjs";
|
|
3
|
-
import { A as
|
|
4
|
-
import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, r as SiteTermsAgreementField, s as eventSiteTermsSurface, t as BookingConfirmation } from "./DemoBookingPortalAccess-
|
|
5
|
-
import { J as displayButtonText, K as buildEventRegistrationDisplayFromScopedEvents,
|
|
6
|
-
import { a as getWaitlistClaimEntryIdFromUrl, i as eventRegistrationCheckoutReturnRequest, o as getWaitlistClaimTokenFromUrl, r as useEventRegistrationWizard, t as EventPaymentMount } from "./EventRegistrationPayment-
|
|
3
|
+
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-C0TsNqJc.mjs";
|
|
4
|
+
import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, r as SiteTermsAgreementField, s as eventSiteTermsSurface, t as BookingConfirmation } from "./DemoBookingPortalAccess-BxRVCJG3.mjs";
|
|
5
|
+
import { J as displayButtonText, K as buildEventRegistrationDisplayFromScopedEvents, Xt 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-BxL_bshW.mjs";
|
|
6
|
+
import { a as getWaitlistClaimEntryIdFromUrl, i as eventRegistrationCheckoutReturnRequest, o as getWaitlistClaimTokenFromUrl, r as useEventRegistrationWizard, t as EventPaymentMount } from "./EventRegistrationPayment-e5XWtygG.mjs";
|
|
7
7
|
import { t as assertNever } from "./src-7cXhT0G_.mjs";
|
|
8
8
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
9
9
|
import { t as CheckboxChoice } from "./CheckboxChoice-BF9eCNno.mjs";
|
|
@@ -11,15 +11,15 @@ 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
13
|
import { t as DemoPortalSignInLink } from "./DemoPortalSignInLink-DHxYgkT6.mjs";
|
|
14
|
-
import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-
|
|
14
|
+
import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-DJhFP_rg.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-Cg9v6d7Y.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-BrvKa_8H.mjs";
|
|
19
|
+
import { n as useBlockApi, r as BlockApiError } from "./context-BRgBWthI.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-D14J-EhJ.mjs";
|
|
22
|
+
import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-CjstiFPh.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-DhbGL302.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-BRgBWthI.mjs";
|
|
4
|
+
import { t as EventCalendarClient } from "./EventCalendar.client-BI-kvwXf.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-96er7pIx.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-DhbGL302.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-BRgBWthI.mjs";
|
|
4
|
+
import { n as EventCombinedIslandClient } from "./EventCombined.client-DIvnoN5l.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-96er7pIx.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-DhbGL302.mjs";
|
|
3
|
+
import { t as EventDetailsIslandClient } from "./event-details.client-CYNQYOsP.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-DhbGL302.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-BRgBWthI.mjs";
|
|
4
|
+
import { t as EventListingClient } from "./EventListing.client-Bo4qzQi0.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-96er7pIx.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-DhbGL302.mjs";
|
|
3
|
+
import { t as EventRegistrationIslandClient } from "./event-registration.client-DDqSpN36.mjs";
|
|
4
|
+
import { t as BlockApiProvider } from "./context-BRgBWthI.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-96er7pIx.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-DhbGL302.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-BRgBWthI.mjs";
|
|
4
|
+
import { t as FormNodeClient } from "./form.client-Cj0By6ot.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
2
|
import { S as clsx } from "./ThemedButton-DVBC_pS9.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { Pr as listLookSlot } from "./wizardSteps-C0TsNqJc.mjs";
|
|
4
4
|
import { n as err, r as ok, t as assertNever } from "./src-7cXhT0G_.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-DyA9C5Hy.mjs";
|
|
7
|
+
import { n as useBlockApi } from "./context-BRgBWthI.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,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { r as ThemedButton } from "./ThemedButton-DVBC_pS9.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { Nr as listLookControl, Pr as listLookSlot } from "./wizardSteps-C0TsNqJc.mjs";
|
|
4
4
|
import { t as CheckboxChoice } from "./CheckboxChoice-BF9eCNno.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -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-M8FTSgm2.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
3
|
import { Nr as formatGiftCardAmountLabel, i as ThemedButtonLink, r as ThemedButton } from "../ThemedButton-DVBC_pS9.mjs";
|
|
4
|
-
import { Ct as toUtcIsoDateTimeString, bt as resolveBookingTimeZoneId, t as logger, tt as formatDate } from "../noop-
|
|
4
|
+
import { Ct as toUtcIsoDateTimeString, bt as resolveBookingTimeZoneId, t as logger, tt as formatDate } from "../noop-M8FTSgm2.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-BRgBWthI.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-DhbGL302.mjs";
|
|
3
|
+
import { t as mountHeaderChromeRuntime } from "./enhanceHeaderSection-BaQJyI9x.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-CuCvQdvp.mjs";
|
|
3
|
+
import { t as LeafletStaticMap } from "./LeafletStaticMap-dlapZ6mi.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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { i as ThemedButtonLink, rr as textColorStyle } from "./ThemedButton-DVBC_pS9.mjs";
|
|
3
|
-
import { St as toScheduledBookingDateTime, _t as parseLocalScheduleTime, ft as formatBookingCompactEnglishTime } from "./noop-
|
|
4
|
-
import {
|
|
3
|
+
import { St as toScheduledBookingDateTime, _t as parseLocalScheduleTime, ft as formatBookingCompactEnglishTime } from "./noop-M8FTSgm2.mjs";
|
|
4
|
+
import { fn as parseWeeklyOpeningHours } from "./shop.interactive-BxL_bshW.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region ../core/src/location.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as LocationMapIslandClient } from "./location-map.client-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-DhbGL302.mjs";
|
|
3
|
+
import { t as LocationMapIslandClient } from "./location-map.client-DRN1JePj.mjs";
|
|
4
4
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
package/dist/client/{newsletter-form.client-DBTU3oNv.mjs → newsletter-form.client-C2EgEBP1.mjs}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { S as clsx } from "./ThemedButton-DVBC_pS9.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { I as newsletterBlockSubmissionMessage, P as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE,
|
|
3
|
+
import { Pr as listLookSlot, Xi as assertNever } from "./wizardSteps-C0TsNqJc.mjs";
|
|
4
|
+
import { I as newsletterBlockSubmissionMessage, P as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, ln as parseMailingListVisitorSelection } from "./shop.interactive-BxL_bshW.mjs";
|
|
5
5
|
import { t as assertNever$1 } from "./src-7cXhT0G_.mjs";
|
|
6
6
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
7
|
-
import { a as partitionNewsletterFields, i as TOPIC_CHOICE_FIELD_ID, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-
|
|
8
|
-
import { n as useBlockApi, r as BlockApiError } from "./context-
|
|
7
|
+
import { a as partitionNewsletterFields, i as TOPIC_CHOICE_FIELD_ID, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-CaldoFmi.mjs";
|
|
8
|
+
import { n as useBlockApi, r as BlockApiError } from "./context-BRgBWthI.mjs";
|
|
9
9
|
import { i as AltchaWidget, r as isSpamProtectionEnabled, t as getChallengeUrl } from "./src-BNZzXgWu.mjs";
|
|
10
10
|
import { t as MAILING_LIST_CONFIRMATION_MESSAGE } from "./mailingListSignupCopy-CX4sDozG.mjs";
|
|
11
11
|
import { useEffect, useReducer, useRef, useState } from "react";
|
package/dist/client/{newsletter-form.parts-C9I9JBhe.mjs → newsletter-form.parts-CaldoFmi.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { r as ThemedButton } from "./ThemedButton-DVBC_pS9.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { Pr as listLookSlot } from "./wizardSteps-C0TsNqJc.mjs";
|
|
4
4
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -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 NewsletterFormClient } from "./newsletter-form.client-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-DhbGL302.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-BRgBWthI.mjs";
|
|
4
|
+
import { t as NewsletterFormClient } from "./newsletter-form.client-C2EgEBP1.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -898,7 +898,7 @@ const publicEventAttendanceModeSchema = z.enum(["in_person", "online"]);
|
|
|
898
898
|
const publicEventAttendanceModeAvailabilitySchema = z.object({
|
|
899
899
|
mode: publicEventAttendanceModeSchema,
|
|
900
900
|
capacity: z.number().nullable(),
|
|
901
|
-
registeredCount: z.number(),
|
|
901
|
+
registeredCount: z.number().nullable(),
|
|
902
902
|
availableSpots: z.number().nullable(),
|
|
903
903
|
waitlistEnabled: z.boolean()
|
|
904
904
|
});
|
|
@@ -1057,7 +1057,7 @@ const publicEventBaseSchema = z.object({
|
|
|
1057
1057
|
startsAt: z.string(),
|
|
1058
1058
|
endsAt: z.string(),
|
|
1059
1059
|
capacity: z.number().nullable(),
|
|
1060
|
-
registeredCount: z.number(),
|
|
1060
|
+
registeredCount: z.number().nullable(),
|
|
1061
1061
|
availableSpots: z.number().nullable(),
|
|
1062
1062
|
waitlistEnabled: z.boolean(),
|
|
1063
1063
|
venue: eventVenueSchema.nullable(),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import { h as unsafeAsAppointmentResourceId } from "../renderableMediaAssetAdmission-DGjBr_e-.mjs";
|
|
4
4
|
import { Ar as resolveFlexibleBalancePaymentEligibility, Mr as formatCurrencyAmount, Or as formatOrderInstalmentStatusLabel$1, i as ThemedButtonLink, jr as parsePositiveMoneyInputToCents, l as SpinnerNode, r as ThemedButton, t as ThemedActionsButton } from "../ThemedButton-DVBC_pS9.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { t as logger } from "../noop-M8FTSgm2.mjs";
|
|
6
6
|
import { t as assertNever } from "../src-7cXhT0G_.mjs";
|
|
7
7
|
import { t as resolveDedicatedBookingHref } from "../bookingRoute-Bqlyu5Vb.mjs";
|
|
8
8
|
import { t as CheckboxChoice } from "../CheckboxChoice-BF9eCNno.mjs";
|
|
@@ -10,11 +10,12 @@ import { t as DemoPortalSignInLink } from "../DemoPortalSignInLink-DHxYgkT6.mjs"
|
|
|
10
10
|
import { t as ModalShell } from "../ModalShell-B_fHWK71.mjs";
|
|
11
11
|
import { t as TabBarFragment } from "../TabBarFragment-DvzIV75f.mjs";
|
|
12
12
|
import { i as getPortalCreditProductCreditNoun, r as getCreditProductTypeLabel, t as deriveCreditProductLabels } from "../creditProducts-BOWi1QLp.mjs";
|
|
13
|
-
import { t as formatDate
|
|
14
|
-
import { i as createBlockApi, n as useBlockApi, t as BlockApiProvider } from "../context-
|
|
15
|
-
import { n as useAvailableDates, t as useAvailableSlots } from "../useAvailableSlots-
|
|
16
|
-
import { t as useBookingNowIso } from "../useBookingNowIso-
|
|
17
|
-
import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "../demoPortalMagicLink-
|
|
13
|
+
import { t as formatDate } from "../formatDate-CZo0MPTA.mjs";
|
|
14
|
+
import { i as createBlockApi, n as useBlockApi, t as BlockApiProvider } from "../context-BRgBWthI.mjs";
|
|
15
|
+
import { n as useAvailableDates, t as useAvailableSlots } from "../useAvailableSlots-pTXuY3jV.mjs";
|
|
16
|
+
import { t as useBookingNowIso } from "../useBookingNowIso-D14J-EhJ.mjs";
|
|
17
|
+
import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "../demoPortalMagicLink-CjstiFPh.mjs";
|
|
18
|
+
import { a as isPast, i as formatPortalSession, n as formatDateTime, o as portalSessionDisplay, r as formatEntitlementEnd, t as formatDate$1 } from "../dateFormatting-LeKNQ-iX.mjs";
|
|
18
19
|
import * as React$1 from "react";
|
|
19
20
|
import React, { createContext, useCallback, useContext, useEffect, useMemo, useReducer, useState } from "react";
|
|
20
21
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -31,64 +32,6 @@ function appointmentStatusLabel(status) {
|
|
|
31
32
|
return appointmentStatusLabels[status];
|
|
32
33
|
}
|
|
33
34
|
//#endregion
|
|
34
|
-
//#region ../blocks/src/portal/dateFormatting.ts
|
|
35
|
-
/** Optional API timestamps enter the display model here; invalid values never render a Date. */
|
|
36
|
-
function readInstant(value) {
|
|
37
|
-
const result = value ? parseUtcIsoDateTimeString(value) : null;
|
|
38
|
-
return result?.ok ? result.value : null;
|
|
39
|
-
}
|
|
40
|
-
function formatDate(value, context, style = "short") {
|
|
41
|
-
const instant = readInstant(value);
|
|
42
|
-
return instant ? formatDate$1({
|
|
43
|
-
kind: "instant",
|
|
44
|
-
value: instant
|
|
45
|
-
}, context, { date: style }) : "—";
|
|
46
|
-
}
|
|
47
|
-
function formatEntitlementEnd(value, context, style = "short") {
|
|
48
|
-
const instant = readInstant(value);
|
|
49
|
-
const lastValid = instant ? /* @__PURE__ */ new Date(Date.parse(instant) - 1) : null;
|
|
50
|
-
return lastValid && Number.isFinite(lastValid.getTime()) ? formatDate$1({
|
|
51
|
-
kind: "instant",
|
|
52
|
-
value: toUtcIsoDateTimeString(lastValid.toISOString())
|
|
53
|
-
}, context, { date: style }) : "—";
|
|
54
|
-
}
|
|
55
|
-
function formatDateTime(value, context, style = "short", zone = "omit") {
|
|
56
|
-
const instant = readInstant(value);
|
|
57
|
-
return instant ? formatDateTime$1(instant, context, {
|
|
58
|
-
date: style,
|
|
59
|
-
zone
|
|
60
|
-
}) : "—";
|
|
61
|
-
}
|
|
62
|
-
function portalSessionDisplay(facts, site) {
|
|
63
|
-
return resolveBookingDisplayContext({
|
|
64
|
-
sessionTimeZone: resolveBookingTimeZoneId(facts.timeZone, site.timeZone),
|
|
65
|
-
siteTimeZone: site.timeZone,
|
|
66
|
-
locale: site.locale,
|
|
67
|
-
isOnline: facts.isOnline ?? false,
|
|
68
|
-
surface: "public"
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
function formatPortalSession(start, end, facts, site) {
|
|
72
|
-
const { context, zone } = portalSessionDisplay(facts, site);
|
|
73
|
-
const startsAt = readInstant(start);
|
|
74
|
-
const endsAt = readInstant(end);
|
|
75
|
-
if (!startsAt) return "—";
|
|
76
|
-
return endsAt && Date.parse(endsAt) >= Date.parse(startsAt) ? formatDateTimeRange({
|
|
77
|
-
start: startsAt,
|
|
78
|
-
end: endsAt
|
|
79
|
-
}, context, {
|
|
80
|
-
date: "short",
|
|
81
|
-
zone
|
|
82
|
-
}) : formatDateTime$1(startsAt, context, {
|
|
83
|
-
date: "short",
|
|
84
|
-
zone
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
function isPast(value, now) {
|
|
88
|
-
const instant = readInstant(value);
|
|
89
|
-
return instant !== null && Date.parse(instant) < Date.parse(now);
|
|
90
|
-
}
|
|
91
|
-
//#endregion
|
|
92
35
|
//#region ../blocks/src/customer-portal/dateDisplay.tsx
|
|
93
36
|
const PortalDateContext = createContext(null);
|
|
94
37
|
/** Hosts supply business context and one SSR snapshot; the existing clock owns reconciliation. */
|
|
@@ -112,7 +55,7 @@ function usePortalDateFormatting() {
|
|
|
112
55
|
return {
|
|
113
56
|
context,
|
|
114
57
|
now,
|
|
115
|
-
formatDate: (value, style = "short") => formatDate(value, context, style),
|
|
58
|
+
formatDate: (value, style = "short") => formatDate$1(value, context, style),
|
|
116
59
|
formatDateTime: (value, style = "short") => formatDateTime(value, context, style),
|
|
117
60
|
formatEntitlementEnd: (value, style = "short") => formatEntitlementEnd(value, context, style),
|
|
118
61
|
isPast: (value) => isPast(value, now)
|
|
@@ -3098,7 +3041,7 @@ function PortalAppointmentRescheduleFlow({ appointment, onClose, onSuccess }) {
|
|
|
3098
3041
|
children: "Choose a date…"
|
|
3099
3042
|
}), sortedDates.map((date) => /* @__PURE__ */ jsx("option", {
|
|
3100
3043
|
value: date,
|
|
3101
|
-
children: formatDate
|
|
3044
|
+
children: formatDate(date, context, { date: "short" }) ?? "—"
|
|
3102
3045
|
}, date))]
|
|
3103
3046
|
}),
|
|
3104
3047
|
hasMore ? /* @__PURE__ */ jsx(ThemedButton, {
|
|
@@ -4758,7 +4701,7 @@ function PassDates({ pass }) {
|
|
|
4758
4701
|
}
|
|
4759
4702
|
function formatCustomerPassCreditHistoryEntry(entry, productUseCase, context) {
|
|
4760
4703
|
const creditNoun = getPortalCreditProductCreditNoun(productUseCase, entry.credits);
|
|
4761
|
-
return `${entry.kind === "restoration" ? "Restored" : "Used"} ${entry.credits} ${creditNoun} on ${formatDate(entry.occurredAt, context, "long")}`;
|
|
4704
|
+
return `${entry.kind === "restoration" ? "Restored" : "Used"} ${entry.credits} ${creditNoun} on ${formatDate$1(entry.occurredAt, context, "long")}`;
|
|
4762
4705
|
}
|
|
4763
4706
|
function MembershipsCards({ memberships, onRefresh }) {
|
|
4764
4707
|
const cancelFlow = useMembershipCancelFlow({
|
package/dist/client/{product-detail.client-BX7M5o6p.mjs → product-detail.client-y86uwzEI.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as ProductDetailController } from "./shop-commerce-
|
|
2
|
+
import { r as ProductDetailController } from "./shop-commerce-CsLwzq5O.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/product-detail.client.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as ProductListController } from "./shop-commerce-
|
|
2
|
+
import { i as ProductListController } from "./shop-commerce-CsLwzq5O.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/product-list.client.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as ProductDetailClient } from "./product-detail.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-DhbGL302.mjs";
|
|
3
|
+
import { t as ProductDetailClient } from "./product-detail.client-y86uwzEI.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-VZjPOfCX.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/productDetail.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("product-detail");
|
|
7
7
|
const enhance = (root, props) => mountShopBlockIsland(root, props, ProductDetailClient, "product-detail");
|