@riverbankcms/sdk 0.155.0 → 0.156.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PreviewEditorSidebar-CbSbqmz3.mjs → PreviewEditorSidebar-B4ESNPzL.mjs} +3 -3
- package/dist/{PreviewEditorUI-CKKnAw11.mjs → PreviewEditorUI-BdUVaGOh.mjs} +3 -3
- package/dist/{SdkPreviewModeRuntime-wLkXrWy9.mjs → SdkPreviewModeRuntime-C4V3BvxK.mjs} +1122 -1079
- package/dist/{SiteChromeCustomizeContext-BQ8vvKb-.mjs → SiteChromeCustomizeContext-3gmd26Mn.mjs} +1019 -517
- package/dist/_dts/ai/src/contracts/proposals.d.ts +624 -624
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +856 -856
- package/dist/_dts/api/src/accountApi.d.ts +5 -5
- package/dist/_dts/api/src/aiPlayground.d.ts +2 -2
- package/dist/_dts/api/src/bookingRecords.d.ts +2 -22
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +1 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +5 -2
- package/dist/_dts/api/src/footerCompositionContracts.d.ts +1 -1
- package/dist/_dts/api/src/navigation/linkValue.d.ts +1 -1
- package/dist/_dts/api/src/navigation/types.d.ts +1 -1
- package/dist/_dts/api/src/public/types.d.ts +2 -1
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +1 -1
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +3 -3
- package/dist/_dts/api/src/publicExperience/siteEndpoints.d.ts +1 -1
- package/dist/_dts/api/src/sdkBlockContentAdmission.d.ts +1 -1
- package/dist/_dts/api/src/sdkConfig/contracts.d.ts +2 -1
- package/dist/_dts/api/src/sdkContracts.d.ts +2 -1
- package/dist/_dts/api/src/sdkPageDesign.d.ts +9 -9
- package/dist/_dts/api/src/sdkThemeWire.d.ts +182 -182
- package/dist/_dts/api/src/siteOnboarding.d.ts +1 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +3 -1
- package/dist/_dts/api/src/siteSettings.d.ts +2 -2
- package/dist/_dts/api/src/teamMembers.d.ts +1 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useLayoutGridMoveAnimation.d.ts +13 -0
- package/dist/_dts/blocks/src/client/portal.d.ts +5 -0
- package/dist/_dts/blocks/src/contracts/event-registration.d.ts +141 -0
- package/dist/_dts/blocks/src/contracts/events.d.ts +21 -0
- package/dist/_dts/blocks/src/contracts/footer.d.ts +130 -0
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/site-chrome.d.ts +10 -0
- package/dist/_dts/blocks/src/customer-portal/client.d.ts +62 -0
- package/dist/_dts/blocks/src/customer-portal/components/PortalLoginForm.d.ts +16 -0
- package/dist/_dts/blocks/src/customer-portal/components/badge.d.ts +6 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/AppointmentBeforeYouComeTask.d.ts +29 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/BookingsSection.d.ts +22 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/BookingsTable.d.ts +9 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/EventRow.d.ts +9 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/EventSeriesRegistrationRow.d.ts +8 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/EventSeriesRegistrationTableRow.d.ts +22 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/PortalAppointmentRescheduleFlow.d.ts +7 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/ScalarQuestionInput.d.ts +11 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/WaitlistCard.d.ts +8 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/WaitlistsSection.d.ts +19 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/bookingsTypes.d.ts +11 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/eventGuestDrafts.d.ts +6 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/eventSeriesRegistrationPresentation.d.ts +8 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/usePortalCancelFlow.d.ts +36 -0
- package/dist/_dts/blocks/src/customer-portal/components/bookings/usePortalCancelFlow.state.d.ts +43 -0
- package/dist/_dts/blocks/src/customer-portal/components/orders/OrdersSection.d.ts +8 -0
- package/dist/_dts/blocks/src/customer-portal/components/orders/orderInteraction.d.ts +63 -0
- package/dist/_dts/blocks/src/customer-portal/components/portal-modal.d.ts +8 -0
- package/dist/_dts/blocks/src/customer-portal/components/portalDeepLink.d.ts +19 -0
- package/dist/_dts/blocks/src/customer-portal/components/useMembershipCancelFlow.d.ts +13 -0
- package/dist/_dts/blocks/src/customer-portal/components/useMembershipCancelFlow.state.d.ts +32 -0
- package/dist/_dts/blocks/src/customer-portal/pages/AccessState.d.ts +11 -0
- package/dist/_dts/blocks/src/customer-portal/pages/DigitalProductView.d.ts +4 -0
- package/dist/_dts/blocks/src/customer-portal/pages/PageChrome.d.ts +9 -0
- package/dist/_dts/blocks/src/customer-portal/pages/PrintButton.d.ts +1 -0
- package/dist/_dts/blocks/src/customer-portal/pages/TicketCode.d.ts +3 -0
- package/dist/_dts/blocks/src/customer-portal/pages/TicketView.d.ts +4 -0
- package/dist/_dts/blocks/src/customer-portal/route-client.d.ts +9 -0
- package/dist/_dts/blocks/src/customer-portal/shared/bookingRoute.d.ts +9 -0
- package/dist/_dts/blocks/src/customer-portal/shared/checkoutUrls.d.ts +4 -0
- package/dist/_dts/blocks/src/customer-portal/shared/signedUrlUpload.d.ts +1 -0
- package/dist/_dts/blocks/src/customer-portal/shared/urlParams.d.ts +30 -0
- package/dist/_dts/blocks/src/customer-portal/state.d.ts +196 -0
- package/dist/_dts/blocks/src/customer-portal/tabs.d.ts +17 -0
- package/dist/_dts/blocks/src/portal/dateFormatting.d.ts +13 -0
- package/dist/_dts/blocks/src/portal/types.d.ts +7 -14
- package/dist/_dts/blocks/src/system/blocks/event-details.d.ts +1 -25
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +1 -141
- package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +135 -135
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +3 -129
- package/dist/_dts/blocks/src/system/blocks/site-footer.d.ts +2 -5
- package/dist/_dts/blocks/src/system/blocks/site-header.d.ts +2 -5
- package/dist/_dts/blocks/src/system/constants/events.d.ts +1 -1
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +2 -2
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +82 -82
- package/dist/_dts/blocks/src/system/node/fragments/lookSlot.d.ts +2 -2
- package/dist/_dts/blocks/src/system/node/schema.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +21 -2
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +87 -3
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/schemas/events.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +16 -27
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +6 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableDates.d.ts +2 -5
- package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableSlots.d.ts +2 -5
- package/dist/_dts/blocks/src/system/runtime/lookSurfaces.d.ts +9 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/lookPresentation.d.ts +9 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +18 -18
- package/dist/_dts/blocks/src/system/runtime/nodes/form.interactive.d.ts +2 -10
- package/dist/_dts/blocks/src/system/runtime/nodes/form.types.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/shared/AppointmentRescheduleSlotOptions.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/shared/useAppointmentRescheduleFlow.d.ts +73 -0
- package/dist/_dts/blocks/src/system/runtime/shared/useAppointmentRescheduleFlow.state.d.ts +62 -0
- package/dist/_dts/blocks/src/system/runtime/shared/utils/demoPortalMagicLink.d.ts +1 -4
- package/dist/_dts/commerce/src/moneyDateUtils.d.ts +7 -0
- package/dist/_dts/core/src/booking-date-time.d.ts +5 -1
- package/dist/_dts/core/src/date-display.d.ts +4 -0
- package/dist/_dts/core/src/navigation-portal-labels.d.ts +1 -1
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +13 -0
- package/dist/_dts/db/src/schemas/forms.d.ts +4 -4
- package/dist/_dts/preview-next/src/client/preview/PreviewEditingModeProvider.d.ts +7 -0
- package/dist/_dts/sdk/src/bookings/types.d.ts +0 -1
- package/dist/_dts/sdk/src/next/index.d.ts +1 -0
- package/dist/_dts/sdk/src/next/portal.d.ts +41 -0
- package/dist/_dts/sdk/src/next/resolveTheme.d.ts +4 -9
- package/dist/_dts/sdk/src/next/types.d.ts +8 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -0
- package/dist/_dts/sdk/src/portal/index.d.ts +4 -36
- package/dist/_dts/sdk/src/portal/token.d.ts +4 -20
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +4 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +1 -28
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +4 -4
- package/dist/_dts/theme-core/src/buttons/types.d.ts +41 -41
- package/dist/_dts/theme-core/src/buttons/typography.d.ts +2 -2
- package/dist/_dts/theme-core/src/cards/types.d.ts +34 -34
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/containerSchema.d.ts +2 -2
- package/dist/_dts/theme-core/src/hosted-booking-appearance.d.ts +1 -1
- package/dist/_dts/theme-core/src/inputs/types.d.ts +4 -4
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +255 -255
- package/dist/_dts/theme-core/src/navigation/types.d.ts +6 -6
- package/dist/_dts/theme-core/src/palette/colors.d.ts +1 -1
- package/dist/_dts/theme-core/src/palette/curated/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/schema.d.ts +294 -294
- package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/compileFooterAgainstRow.d.ts +7 -7
- package/dist/_dts/theme-core/src/site-styles/headerPreferencesPersistence.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +12 -12
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +2 -2
- package/dist/_dts/theme-core/src/typography/schema.d.ts +27 -27
- package/dist/_dts/ui/src/button.d.ts +1 -1
- package/dist/_dts/ui/src/surface.d.ts +2 -2
- package/dist/_dts/ui/src/toggle.d.ts +2 -2
- package/dist/client/{BookingMailingListNote-CiW1dsz7.mjs → BookingMailingListNote-B9mP3Io9.mjs} +2 -2
- package/dist/client/{CardListItem-DVYTlYpS.mjs → CardListItem-D5rL2wPv.mjs} +3 -3
- package/dist/client/{CheckboxChoice-CUnPrBlC.mjs → CheckboxChoice-Bz6wLaBl.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-DEsn5F2C.mjs → DemoBookingPortalAccess-7BPVzfLU.mjs} +6 -10
- package/dist/client/{EventCombined.client-BdctbwnV.mjs → EventCombined.client-DZH5qHJl.mjs} +5 -5
- package/dist/client/{EventEmbeddedCheckoutStep-DAhQs6Jb.mjs → EventEmbeddedCheckoutStep-CV31Qvn2.mjs} +2 -2
- package/dist/client/{EventListing.client-BviZXfAE.mjs → EventListing.client-C19sjRGF.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-BLTECfjU.mjs → LeafletStaticMap-DjUjYdzQ.mjs} +1 -1
- package/dist/client/{RichText-D3oE1_pw.mjs → RichText-DkKcVZwr.mjs} +2 -2
- package/dist/client/{ThemedButton-Ckj0Rfr_.mjs → ThemedButton-CTgpAXfL.mjs} +1 -1
- package/dist/client/{accordion-yBx6d4O2.mjs → accordion-R2-q5wo-.mjs} +1 -1
- package/dist/client/{bookingForm-CPDEsQci.mjs → bookingForm-VSU8nIdO.mjs} +12 -16
- package/dist/client/bookings.mjs +352 -64
- package/dist/client/{carousel-DCqjwd2s.mjs → carousel-BjPlY4ee.mjs} +2 -2
- package/dist/client/{carousel.client-Bx7XMF8-.mjs → carousel.client-Tnwvm0l1.mjs} +1 -1
- package/dist/client/{cart-DWJXrQxs.mjs → cart-DAPYTOP7.mjs} +3 -3
- package/dist/client/{checkout-CH4ypSLS.mjs → checkout-DGJTx4vB.mjs} +3 -3
- package/dist/client/client.mjs +61275 -61217
- package/dist/client/{context-BOs0m_iw.mjs → context-ByZBoKdq.mjs} +92 -209
- package/dist/client/{eventCalendar-CRylMllc.mjs → eventCalendar-CP5Z7iME.mjs} +8 -8
- package/dist/client/{eventCombined-DohTS3kp.mjs → eventCombined-D8nbUyxu.mjs} +4 -4
- package/dist/client/{eventDetails-qf-u9zcF.mjs → eventDetails-Bknq8k7E.mjs} +46 -44
- package/dist/client/{eventListing-Cg__X2vy.mjs → eventListing-BwMnPteX.mjs} +4 -4
- package/dist/client/{eventRegistration-CybWxswy.mjs → eventRegistration-COFk1mjw.mjs} +11 -11
- package/dist/client/{form-C-SGk6nq.mjs → form-BiWLd_me.mjs} +5 -5
- package/dist/client/{headerSection-BdzPaHqo.mjs → headerSection-BptDP4xF.mjs} +3 -3
- package/dist/client/hooks.mjs +22850 -22861
- package/dist/client/{locationMap-CEwIKmMb.mjs → locationMap-B-kPoqcK.mjs} +3 -3
- package/dist/client/{media-V_ShXXru.mjs → media-FjqQK4qS.mjs} +68 -1
- package/dist/client/{newsletterForm-CmwTltoS.mjs → newsletterForm-s_B8fCtT.mjs} +4 -4
- package/dist/client/portal/client.mjs +17419 -0
- package/dist/client/{productDetail-DjIzUwg3.mjs → productDetail-CS3GZMPi.mjs} +3 -3
- package/dist/client/{productList-D6JGFnMF.mjs → productList-Csc3WJDs.mjs} +3 -3
- package/dist/client/{propsDecoder-BRKz13eg.mjs → propsDecoder-Dn68GoQZ.mjs} +502 -2705
- package/dist/client/rendering/client.mjs +3303 -3612
- package/dist/client/rendering/islands.mjs +17 -17
- package/dist/client/rendering.mjs +46273 -46220
- package/dist/client/{routeIslandApiConfig-slAAILQ5.mjs → routeIslandApiConfig-DeBuevOO.mjs} +1 -1
- package/dist/client/{shop-C45K96_0.mjs → shop-B5EQbeUX.mjs} +7 -7
- package/dist/client/{shop-commerce-oGBiKT5d.mjs → shop-commerce-DYs7PdNL.mjs} +8 -8
- package/dist/client/{shop-commerce-store-H_HFPFZ8.mjs → shop-commerce-store-B2-DIPbg.mjs} +1 -1
- package/dist/client/{shopShared-D54T_LAV.mjs → shopShared-CE302Pfy.mjs} +4 -4
- package/dist/client/{useDiscountCodeUi-Dm2EUa03.mjs → useDiscountCodeUi-BZ02FBrV.mjs} +1 -1
- package/dist/client/{useEventPagination-0l_A8CxG.mjs → useEventPagination-VudQWKtG.mjs} +116 -6
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/{sdk-runtime-CjTM32Ah.mjs → sdk-runtime-C8Qh6r51.mjs} +1 -1
- package/dist/server/components.mjs +927 -262
- package/dist/server/config-template-validation.mjs +5 -3
- package/dist/server/config-validation.mjs +35200 -35211
- package/dist/server/config.mjs +35200 -35211
- package/dist/server/data.mjs +32783 -32794
- package/dist/server/date-time.mjs +14 -7
- package/dist/server/index.mjs +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +71470 -70677
- package/dist/server/page-converter.mjs +202 -213
- package/dist/server/portal.mjs +5 -51
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +1180 -722
- package/dist/server/rendering.mjs +922 -262
- package/dist/server/routing.mjs +39382 -41704
- package/dist/server/server.mjs +203 -214
- package/dist/server/theme-bridge.mjs +262 -2
- package/dist/{spinner-KVVZh8jd.mjs → spinner-Bi68Z_0o.mjs} +1 -1
- package/dist/styles/index.css +258 -2
- package/package.json +9 -1
- package/dist/_dts/sdk/src/portal/config.d.ts +0 -67
|
@@ -7005,6 +7005,13 @@ function getDateTimeFormatter(locale, timeZone, format) {
|
|
|
7005
7005
|
dateTimeFormatterCache.set(key, formatter);
|
|
7006
7006
|
return formatter;
|
|
7007
7007
|
}
|
|
7008
|
+
function formatIntlRange(formatter, start, end) {
|
|
7009
|
+
const nativeFormatRange = Reflect.get(formatter, "formatRange");
|
|
7010
|
+
if (typeof nativeFormatRange !== "function") throw new Error("Intl.DateTimeFormat.formatRange is required");
|
|
7011
|
+
const output = Reflect.apply(nativeFormatRange, formatter, [start, end]);
|
|
7012
|
+
if (typeof output !== "string") throw new Error("Intl.DateTimeFormat.formatRange returned a non-string value");
|
|
7013
|
+
return output;
|
|
7014
|
+
}
|
|
7008
7015
|
//#endregion
|
|
7009
7016
|
//#region ../core/src/booking-time-zone.ts
|
|
7010
7017
|
const TIME_ZONE_VALIDITY_CACHE_LIMIT = 100;
|
|
@@ -7093,6 +7100,11 @@ function resolveBookingTimeZoneId(...candidates) {
|
|
|
7093
7100
|
}
|
|
7094
7101
|
return FALLBACK_TIMEZONE;
|
|
7095
7102
|
}
|
|
7103
|
+
/** Canonical business-zone admission, shared by server and public wire boundaries. */
|
|
7104
|
+
const DEFAULT_BOOKING_BUSINESS_TIME_ZONE = "Europe/London";
|
|
7105
|
+
function resolveBookingBusinessTimeZone(value) {
|
|
7106
|
+
return resolveBookingTimeZoneId(value, DEFAULT_BOOKING_BUSINESS_TIME_ZONE);
|
|
7107
|
+
}
|
|
7096
7108
|
function parseUtcIsoDateTimeString(value) {
|
|
7097
7109
|
const normalized = value.trim();
|
|
7098
7110
|
const hasUtcSuffix = normalized.endsWith("Z");
|
|
@@ -7200,6 +7212,34 @@ function formatBookingTime(input, format = {
|
|
|
7200
7212
|
format
|
|
7201
7213
|
});
|
|
7202
7214
|
}
|
|
7215
|
+
/**
|
|
7216
|
+
* Formats the compact English event-time presentation used by public surfaces.
|
|
7217
|
+
*
|
|
7218
|
+
* This intentionally owns the lowercase day-period token and zero-minute
|
|
7219
|
+
* omission instead of depending on locale-specific spacing or punctuation.
|
|
7220
|
+
* Callers must only use it for an English presentation contract.
|
|
7221
|
+
*/
|
|
7222
|
+
function formatBookingCompactEnglishTime(input, options = {}) {
|
|
7223
|
+
const date = new Date(input.startsAt);
|
|
7224
|
+
if (Number.isNaN(date.getTime())) return input.startsAt;
|
|
7225
|
+
return compactEnglishClock(formatToPartsLookup(date, input.locale ?? "en-GB", input.timeZone, {
|
|
7226
|
+
hour: "numeric",
|
|
7227
|
+
minute: "2-digit",
|
|
7228
|
+
hourCycle: "h12",
|
|
7229
|
+
...options.seconds === "include" ? { second: "2-digit" } : {}
|
|
7230
|
+
}), options.seconds) ?? input.startsAt;
|
|
7231
|
+
}
|
|
7232
|
+
/** Precision and zero-minute omission are one decision for all compact clocks. */
|
|
7233
|
+
function compactEnglishClock(parts, seconds) {
|
|
7234
|
+
const hour = parts.get("hour");
|
|
7235
|
+
const minute = parts.get("minute");
|
|
7236
|
+
const dayPeriod = parts.get("dayPeriod");
|
|
7237
|
+
const second = parts.get("second");
|
|
7238
|
+
if (hour === void 0 || minute === void 0 || dayPeriod === void 0) return null;
|
|
7239
|
+
const token = dayPeriod.toLowerCase();
|
|
7240
|
+
if (seconds === "include") return second === void 0 ? null : `${hour}:${minute}:${second}${token}`;
|
|
7241
|
+
return `${minute === "00" ? hour : `${hour}:${minute}`}${token}`;
|
|
7242
|
+
}
|
|
7203
7243
|
function formatBookingDateParts(input, options) {
|
|
7204
7244
|
return {
|
|
7205
7245
|
date: formatBookingDate(input, options?.dateFormat ?? {
|
|
@@ -7325,6 +7365,173 @@ function inferSiteDateLocale(siteTimeZone) {
|
|
|
7325
7365
|
if (siteTimeZone === "Pacific/Auckland" || siteTimeZone === "Pacific/Chatham") return "en-NZ";
|
|
7326
7366
|
return "en-US";
|
|
7327
7367
|
}
|
|
7368
|
+
function formatDate$5(value, context, options = {}) {
|
|
7369
|
+
return presentDate(value, context, displayProfile(options, "omit"));
|
|
7370
|
+
}
|
|
7371
|
+
function formatDateRange(start, endInclusive, context, options = {}) {
|
|
7372
|
+
const first = {
|
|
7373
|
+
kind: "civil",
|
|
7374
|
+
value: projectDate(start, context)
|
|
7375
|
+
};
|
|
7376
|
+
const last = {
|
|
7377
|
+
kind: "civil",
|
|
7378
|
+
value: projectDate(endInclusive, context)
|
|
7379
|
+
};
|
|
7380
|
+
const preserveOrder = options.order === "session" && compareLocalScheduleDates(first.value, last.value) > 0;
|
|
7381
|
+
const profile = displayProfile(preserveOrder ? {
|
|
7382
|
+
...options,
|
|
7383
|
+
year: "numeric"
|
|
7384
|
+
} : options, "omit");
|
|
7385
|
+
return preserveOrder ? `${presentDate(first, context, profile)} – ${presentDate(last, context, profile)}` : presentDateRange(first, last, context, profile);
|
|
7386
|
+
}
|
|
7387
|
+
function formatDateTimeRange(span, context, options) {
|
|
7388
|
+
return presentDateTimeRange(span, context, displayProfile(options, options.zone, options.seconds));
|
|
7389
|
+
}
|
|
7390
|
+
/** Sole date projection/typography owner, used by display and scheduled adapters. */
|
|
7391
|
+
function presentDate(value, context, profile) {
|
|
7392
|
+
const date = dateCarrier(value);
|
|
7393
|
+
const zone = value.kind === "civil" ? "UTC" : context.timeZone;
|
|
7394
|
+
const output = getDateTimeFormatter(context.locale, zone, profile.dateFormat).format(date);
|
|
7395
|
+
if (profile.kind === "sdk") return output;
|
|
7396
|
+
const normalized = normalizeDisplay(output);
|
|
7397
|
+
return profile.dateFormat.weekday && new Intl.Locale(context.locale).language === "en" ? normalized.replace(/^([^,]+), /u, "$1 ") : normalized;
|
|
7398
|
+
}
|
|
7399
|
+
function presentDateRange(start, end, context, profile) {
|
|
7400
|
+
if (dateCarrier(end).getTime() < dateCarrier(start).getTime()) throw new RangeError("Date range end must be on or after its start");
|
|
7401
|
+
if (profile.kind === "display" && compareLocalScheduleDates(projectDate(start, context), projectDate(end, context)) === 0) return presentDate(start, context, profile);
|
|
7402
|
+
const output = formatIntlRange(getDateTimeFormatter(context.locale, start.kind === "civil" ? "UTC" : context.timeZone, profile.dateFormat), dateCarrier(start), dateCarrier(end));
|
|
7403
|
+
if (profile.kind === "sdk") return output;
|
|
7404
|
+
const startDate = projectDate(start, context);
|
|
7405
|
+
const endDate = projectDate(end, context);
|
|
7406
|
+
const separator = startDate.month === endDate.month && startDate.year === endDate.year ? "–" : " – ";
|
|
7407
|
+
return normalizeDisplay(output).replace(/\s*–\s*/gu, separator);
|
|
7408
|
+
}
|
|
7409
|
+
function presentTime(value, context, profile) {
|
|
7410
|
+
const clock = presentClock(value, context, profile.clock);
|
|
7411
|
+
return profile.zone === "always" ? `${clock} ${zoneLabel(value, context)}` : clock;
|
|
7412
|
+
}
|
|
7413
|
+
function presentTimeRange(span, context, profile) {
|
|
7414
|
+
assertOrdered(span.start, span.end);
|
|
7415
|
+
if (profile.clock.kind === "intl") return presentNativeRange(span, context, profile.clock.format);
|
|
7416
|
+
const startClock = presentClock(span.start, context, profile.clock);
|
|
7417
|
+
const endClock = presentClock(span.end, context, profile.clock);
|
|
7418
|
+
const clocks = (profile.kind === "sdk" ? startClock === endClock : span.start === span.end) ? startClock : `${startClock}–${endClock}`;
|
|
7419
|
+
const labels = decideRangeLabels(span, context, profile);
|
|
7420
|
+
switch (labels.kind) {
|
|
7421
|
+
case "omit": return clocks;
|
|
7422
|
+
case "shared": return `${clocks} ${labels.label}`;
|
|
7423
|
+
case "endpoints": return `${startClock} ${labels.start} – ${endClock} ${labels.end}`;
|
|
7424
|
+
}
|
|
7425
|
+
}
|
|
7426
|
+
function presentDateTimeRange(span, context, profile) {
|
|
7427
|
+
assertOrdered(span.start, span.end);
|
|
7428
|
+
if (profile.clock.kind === "intl") return presentNativeRange(span, context, combinedFormat(profile.dateFormat, profile.clock));
|
|
7429
|
+
const startDate = getLocalScheduleDate(new Date(span.start), context.timeZone);
|
|
7430
|
+
const endDate = getLocalScheduleDate(new Date(span.end), context.timeZone);
|
|
7431
|
+
if (compareLocalScheduleDates(startDate, endDate) === 0) return `${presentDate({
|
|
7432
|
+
kind: "instant",
|
|
7433
|
+
value: span.start
|
|
7434
|
+
}, context, profile)}, ${presentTimeRange(span, context, profile)}`;
|
|
7435
|
+
const labels = decideRangeLabels(span, context, profile);
|
|
7436
|
+
const startProfile = profile.kind === "display" && startDate.year === endDate.year ? {
|
|
7437
|
+
...profile,
|
|
7438
|
+
dateFormat: {
|
|
7439
|
+
...profile.dateFormat,
|
|
7440
|
+
year: void 0
|
|
7441
|
+
}
|
|
7442
|
+
} : profile;
|
|
7443
|
+
const start = presentRangeEndpoint(span.start, context, startProfile, labels.kind === "endpoints" ? labels.start : void 0);
|
|
7444
|
+
const end = presentRangeEndpoint(span.end, context, profile, labels.kind === "endpoints" ? labels.end : void 0);
|
|
7445
|
+
const separator = profile.kind === "sdk" ? "–" : " – ";
|
|
7446
|
+
return profile.kind === "sdk" && start === end ? start : `${start}${separator}${end}`;
|
|
7447
|
+
}
|
|
7448
|
+
/** Offset changes override ordinary venue omission for the approved display profile. */
|
|
7449
|
+
function decideRangeLabels(span, context, profile) {
|
|
7450
|
+
if (profile.kind === "sdk") return { kind: "omit" };
|
|
7451
|
+
const offsetsDiffer = offsetToken(span.start, context) !== offsetToken(span.end, context);
|
|
7452
|
+
if (!offsetsDiffer && profile.zone === "omit") return { kind: "omit" };
|
|
7453
|
+
const start = zoneLabel(span.start, context);
|
|
7454
|
+
const end = zoneLabel(span.end, context);
|
|
7455
|
+
return offsetsDiffer || start !== end ? {
|
|
7456
|
+
kind: "endpoints",
|
|
7457
|
+
start,
|
|
7458
|
+
end
|
|
7459
|
+
} : {
|
|
7460
|
+
kind: "shared",
|
|
7461
|
+
label: start
|
|
7462
|
+
};
|
|
7463
|
+
}
|
|
7464
|
+
function presentRangeEndpoint(value, context, profile, label) {
|
|
7465
|
+
return `${presentDate({
|
|
7466
|
+
kind: "instant",
|
|
7467
|
+
value
|
|
7468
|
+
}, context, profile)}, ${label === void 0 ? presentTime(value, context, profile) : `${presentClock(value, context, profile.clock)} ${label}`}`;
|
|
7469
|
+
}
|
|
7470
|
+
function presentNativeRange(span, context, format) {
|
|
7471
|
+
return formatIntlRange(getDateTimeFormatter(context.locale, context.timeZone, format), new Date(span.start), new Date(span.end));
|
|
7472
|
+
}
|
|
7473
|
+
function combinedFormat(date, clock) {
|
|
7474
|
+
return {
|
|
7475
|
+
...date,
|
|
7476
|
+
...clock.format
|
|
7477
|
+
};
|
|
7478
|
+
}
|
|
7479
|
+
function displayProfile(options, zone, seconds) {
|
|
7480
|
+
return {
|
|
7481
|
+
kind: "display",
|
|
7482
|
+
dateFormat: dateFormat(options),
|
|
7483
|
+
clock: {
|
|
7484
|
+
kind: "compact",
|
|
7485
|
+
localeSource: "product",
|
|
7486
|
+
seconds
|
|
7487
|
+
},
|
|
7488
|
+
zone
|
|
7489
|
+
};
|
|
7490
|
+
}
|
|
7491
|
+
function dateCarrier(value) {
|
|
7492
|
+
return value.kind === "civil" ? civilCarrier(value.value) : new Date(value.value);
|
|
7493
|
+
}
|
|
7494
|
+
function presentClock(value, context, clock) {
|
|
7495
|
+
return clock.kind === "compact" ? formatBookingCompactEnglishTime({
|
|
7496
|
+
startsAt: value,
|
|
7497
|
+
timeZone: context.timeZone,
|
|
7498
|
+
locale: clock.localeSource === "product" ? "en-GB" : context.locale
|
|
7499
|
+
}, { seconds: clock.seconds }) : getDateTimeFormatter(context.locale, context.timeZone, clock.format).format(new Date(value));
|
|
7500
|
+
}
|
|
7501
|
+
function offsetToken(value, context) {
|
|
7502
|
+
return getDateTimeFormatter("en-GB", context.timeZone, { timeZoneName: "longOffset" }).formatToParts(new Date(value)).find((part) => part.type === "timeZoneName")?.value ?? "";
|
|
7503
|
+
}
|
|
7504
|
+
function dateFormat(options) {
|
|
7505
|
+
const style = options.date ?? "long";
|
|
7506
|
+
return {
|
|
7507
|
+
day: style === "omit" || options.day === "omit" ? void 0 : style === "numeric" ? "2-digit" : "numeric",
|
|
7508
|
+
month: style === "omit" ? void 0 : style === "numeric" ? "2-digit" : style,
|
|
7509
|
+
...options.year === "omit" ? {} : { year: "numeric" },
|
|
7510
|
+
...options.weekday ? { weekday: options.weekday } : {}
|
|
7511
|
+
};
|
|
7512
|
+
}
|
|
7513
|
+
function civilCarrier(value) {
|
|
7514
|
+
return new Date(Date.UTC(value.year, value.month - 1, value.day, 12));
|
|
7515
|
+
}
|
|
7516
|
+
function projectDate(value, context) {
|
|
7517
|
+
return value.kind === "civil" ? value.value : getLocalScheduleDate(new Date(value.value), context.timeZone);
|
|
7518
|
+
}
|
|
7519
|
+
function normalizeDisplay(value) {
|
|
7520
|
+
return value.replace(/[\u00a0\u202f]/gu, " ");
|
|
7521
|
+
}
|
|
7522
|
+
function zoneToken(value, context, locale) {
|
|
7523
|
+
return getDateTimeFormatter(locale, context.timeZone, { timeZoneName: "short" }).formatToParts(new Date(value)).find((part) => part.type === "timeZoneName")?.value ?? "";
|
|
7524
|
+
}
|
|
7525
|
+
function zoneLabel(value, context) {
|
|
7526
|
+
return [zoneToken(value, context, "en-GB"), zoneToken(value, context, "en-US")].find((token) => /^[A-Z]{2,6}$/u.test(token)) ?? formatTimeZoneCityLabel(context.timeZone);
|
|
7527
|
+
}
|
|
7528
|
+
function assertOrdered(start, end) {
|
|
7529
|
+
if (new Date(end).getTime() < new Date(start).getTime()) throw new RangeError("Date/time range end must be on or after its start");
|
|
7530
|
+
}
|
|
7531
|
+
/** Same city vocabulary as clock-label fallback, for explanatory timezone copy. */
|
|
7532
|
+
function formatTimeZoneCityLabel(timeZone) {
|
|
7533
|
+
return timeZone.startsWith("Etc/") ? "local time" : `${timeZone.split("/").slice(-1)[0]?.replace(/_/gu, " ") ?? timeZone} time`;
|
|
7534
|
+
}
|
|
7328
7535
|
//#endregion
|
|
7329
7536
|
//#region ../core/src/appointment-service-categories.ts
|
|
7330
7537
|
/**
|
|
@@ -8520,7 +8727,7 @@ function resolveSiteVerticalBookingConfig(rawConfig) {
|
|
|
8520
8727
|
*/
|
|
8521
8728
|
const PORTAL_NAV_DEFAULT_LABELS = {
|
|
8522
8729
|
loggedOut: "Login",
|
|
8523
|
-
loggedIn: "My
|
|
8730
|
+
loggedIn: "My account"
|
|
8524
8731
|
};
|
|
8525
8732
|
//#endregion
|
|
8526
8733
|
//#region ../core/src/event-preset-vocabulary.ts
|
|
@@ -44307,7 +44514,7 @@ const moneyFields = {
|
|
|
44307
44514
|
amountPaidCents: z$1.number().int().nonnegative().transform(toNonNegativeCents),
|
|
44308
44515
|
currency: currencySchema
|
|
44309
44516
|
};
|
|
44310
|
-
z$1.discriminatedUnion("kind", [
|
|
44517
|
+
const confirmationPaymentSchema = z$1.discriminatedUnion("kind", [
|
|
44311
44518
|
z$1.strictObject({
|
|
44312
44519
|
kind: z$1.literal("free"),
|
|
44313
44520
|
balance: settledBalanceSchema
|
|
@@ -45295,9 +45502,13 @@ function cardProjectionBase(event, buttonText, offering) {
|
|
|
45295
45502
|
function offeringLeadDate(event, startMs) {
|
|
45296
45503
|
if (startMs === null || !Number.isFinite(startMs)) return null;
|
|
45297
45504
|
const startsAt = new Date(startMs).toISOString();
|
|
45505
|
+
const timeZone = resolveBookingBusinessTimeZone(event.bookingScope === "whole_series" ? orderedLiveRunSessions(event.run.sessions).find((session) => Date.parse(session.startsAt) === startMs)?.timeZone ?? event.timeZone : event.timeZone);
|
|
45298
45506
|
return {
|
|
45299
45507
|
startsAt,
|
|
45300
|
-
...formatEventCompactDateRail(startsAt,
|
|
45508
|
+
...formatEventCompactDateRail(startsAt, {
|
|
45509
|
+
...eventDateOptions(event),
|
|
45510
|
+
timeZone
|
|
45511
|
+
}, "as-written")
|
|
45301
45512
|
};
|
|
45302
45513
|
}
|
|
45303
45514
|
function offeringSchedule(event, now) {
|
|
@@ -45317,49 +45528,47 @@ function offeringSchedule(event, now) {
|
|
|
45317
45528
|
}
|
|
45318
45529
|
function scheduleLine(summary, event, now) {
|
|
45319
45530
|
const options = eventDateOptions(event);
|
|
45320
|
-
const
|
|
45321
|
-
const
|
|
45322
|
-
|
|
45323
|
-
|
|
45324
|
-
|
|
45325
|
-
|
|
45326
|
-
|
|
45327
|
-
|
|
45328
|
-
|
|
45329
|
-
|
|
45330
|
-
|
|
45331
|
-
|
|
45531
|
+
const first = "occurrence" in summary ? summary.occurrence : summary.first;
|
|
45532
|
+
const last = "occurrence" in summary ? summary.occurrence : summary.last;
|
|
45533
|
+
const context = {
|
|
45534
|
+
locale: options.locale,
|
|
45535
|
+
timeZone: resolveBookingBusinessTimeZone(first.timeZone)
|
|
45536
|
+
};
|
|
45537
|
+
const zone = event.deliveryMode === "online" || context.timeZone !== resolveBookingBusinessTimeZone(event.siteTimeZone ?? event.timeZone) ? "always" : "omit";
|
|
45538
|
+
const endpoint = (value) => ({
|
|
45539
|
+
kind: "instant",
|
|
45540
|
+
value: toUtcIsoDateTimeString(value)
|
|
45541
|
+
});
|
|
45542
|
+
const year = (value, timeZone = context.timeZone) => now && getLocalScheduleDate(new Date(value), timeZone).year === getLocalScheduleDate(now, timeZone).year ? "omit" : "numeric";
|
|
45543
|
+
const date = (value) => formatDate$5(endpoint(value), context, {
|
|
45544
|
+
date: "short",
|
|
45545
|
+
year: now ? year(value) : "omit"
|
|
45546
|
+
});
|
|
45547
|
+
const dates = (startsAt, endsAt) => formatDateRange({
|
|
45548
|
+
kind: "civil",
|
|
45549
|
+
value: getLocalScheduleDate(new Date(startsAt), context.timeZone)
|
|
45550
|
+
}, {
|
|
45551
|
+
kind: "civil",
|
|
45552
|
+
value: getLocalScheduleDate(new Date(endsAt), resolveBookingBusinessTimeZone(last.timeZone))
|
|
45553
|
+
}, context, {
|
|
45554
|
+
date: "short",
|
|
45555
|
+
year: now && year(startsAt) === "omit" && year(endsAt, resolveBookingBusinessTimeZone(last.timeZone)) === "omit" ? "omit" : now ? "numeric" : "omit"
|
|
45556
|
+
});
|
|
45332
45557
|
switch (summary.kind) {
|
|
45333
|
-
case "single-occurrence": return now ?
|
|
45334
|
-
|
|
45335
|
-
|
|
45336
|
-
|
|
45558
|
+
case "single-occurrence": return now ? formatDateTimeRange({
|
|
45559
|
+
start: endpoint(summary.occurrence.startsAt).value,
|
|
45560
|
+
end: endpoint(summary.occurrence.endsAt).value
|
|
45561
|
+
}, context, {
|
|
45562
|
+
date: "short",
|
|
45563
|
+
weekday: "short",
|
|
45564
|
+
year: year(summary.occurrence.startsAt),
|
|
45565
|
+
zone
|
|
45566
|
+
}) : date(summary.occurrence.startsAt);
|
|
45567
|
+
case "multi-day-span": return dates(summary.occurrence.startsAt, summary.occurrence.endsAt);
|
|
45568
|
+
case "fixed-recurring-run": return `${dates(summary.first.startsAt, summary.last.startsAt)} · ${summary.recurrenceLabel}`;
|
|
45569
|
+
case "irregular-multi-session-run": return `${dates(summary.first.startsAt, summary.last.startsAt)} · ${summary.sessionCount} dates`;
|
|
45337
45570
|
}
|
|
45338
45571
|
}
|
|
45339
|
-
function compactTimeRange(startsAt, endsAt, timeZone) {
|
|
45340
|
-
const time = (value) => formatTime$1(value, {
|
|
45341
|
-
timeZone,
|
|
45342
|
-
locale: "en-US"
|
|
45343
|
-
}).replace(/:00/, "").replace(/\s/g, "").toLowerCase();
|
|
45344
|
-
const start = time(startsAt);
|
|
45345
|
-
const end = time(endsAt);
|
|
45346
|
-
return `${start.endsWith("am") === end.endsWith("am") ? start.replace(/(am|pm)$/, "") : start}–${end}`;
|
|
45347
|
-
}
|
|
45348
|
-
function compactDateSpan(startsAt, endsAt, locale, timeZone, now) {
|
|
45349
|
-
const start = new Date(startsAt);
|
|
45350
|
-
const end = new Date(endsAt);
|
|
45351
|
-
const parts = (value) => new Intl.DateTimeFormat(locale, {
|
|
45352
|
-
timeZone,
|
|
45353
|
-
day: "numeric",
|
|
45354
|
-
month: "short",
|
|
45355
|
-
year: "numeric"
|
|
45356
|
-
}).formatToParts(value);
|
|
45357
|
-
const part = (value, type) => parts(value).find((entry) => entry.type === type)?.value.replace(/^Sept$/, "Sep") ?? "";
|
|
45358
|
-
const sameMonth = part(start, "month") === part(end, "month") && part(start, "year") === part(end, "year");
|
|
45359
|
-
const year = (value) => part(value, "year") === part(now, "year") ? "" : ` ${part(value, "year")}`;
|
|
45360
|
-
const date = (value) => `${part(value, "day")} ${part(value, "month")}${year(value)}`;
|
|
45361
|
-
return sameMonth ? `${part(start, "day")}–${date(end)}` : `${date(start)} – ${date(end)}`;
|
|
45362
|
-
}
|
|
45363
45572
|
function offeringAvailability(event) {
|
|
45364
45573
|
const label = formatEventRemainingPlaces(event, { full: "Sold out" });
|
|
45365
45574
|
const availability = getEventAvailabilityStatus(event);
|
|
@@ -58082,7 +58291,7 @@ const FormNodeSSR = ({ blockId, lookSlots, value, submitLabel, successMessage, c
|
|
|
58082
58291
|
/* @__PURE__ */ jsx("input", {
|
|
58083
58292
|
type: "text",
|
|
58084
58293
|
name: "company",
|
|
58085
|
-
className: "hidden",
|
|
58294
|
+
className: "rb-hidden",
|
|
58086
58295
|
tabIndex: -1,
|
|
58087
58296
|
autoComplete: "off"
|
|
58088
58297
|
}),
|
|
@@ -58303,7 +58512,7 @@ function NewsletterFormSSR(props) {
|
|
|
58303
58512
|
/* @__PURE__ */ jsx("input", {
|
|
58304
58513
|
type: "text",
|
|
58305
58514
|
name: "website",
|
|
58306
|
-
className: "hidden",
|
|
58515
|
+
className: "rb-hidden",
|
|
58307
58516
|
tabIndex: -1,
|
|
58308
58517
|
autoComplete: "off",
|
|
58309
58518
|
"aria-hidden": "true"
|
|
@@ -68848,218 +69057,212 @@ const weeklySlotAvailabilityBlockDefinition = {
|
|
|
68848
69057
|
} }
|
|
68849
69058
|
};
|
|
68850
69059
|
//#endregion
|
|
68851
|
-
//#region ../blocks/src/system/
|
|
68852
|
-
|
|
68853
|
-
|
|
68854
|
-
|
|
68855
|
-
|
|
68856
|
-
|
|
68857
|
-
|
|
68858
|
-
|
|
68859
|
-
|
|
68860
|
-
|
|
68861
|
-
|
|
68862
|
-
|
|
68863
|
-
|
|
68864
|
-
|
|
68865
|
-
|
|
68866
|
-
|
|
68867
|
-
|
|
68868
|
-
|
|
68869
|
-
|
|
68870
|
-
|
|
68871
|
-
|
|
68872
|
-
|
|
68873
|
-
|
|
68874
|
-
|
|
68875
|
-
|
|
68876
|
-
|
|
68877
|
-
|
|
68878
|
-
|
|
68879
|
-
|
|
68880
|
-
|
|
68881
|
-
|
|
68882
|
-
|
|
68883
|
-
|
|
68884
|
-
|
|
68885
|
-
|
|
68886
|
-
|
|
68887
|
-
|
|
68888
|
-
|
|
68889
|
-
|
|
68890
|
-
|
|
68891
|
-
|
|
68892
|
-
|
|
68893
|
-
|
|
68894
|
-
|
|
68895
|
-
|
|
68896
|
-
|
|
68897
|
-
|
|
68898
|
-
|
|
68899
|
-
|
|
68900
|
-
|
|
68901
|
-
|
|
68902
|
-
|
|
68903
|
-
|
|
68904
|
-
|
|
68905
|
-
|
|
68906
|
-
|
|
68907
|
-
|
|
68908
|
-
|
|
68909
|
-
|
|
68910
|
-
|
|
68911
|
-
|
|
68912
|
-
|
|
68913
|
-
|
|
68914
|
-
|
|
68915
|
-
|
|
68916
|
-
|
|
68917
|
-
|
|
68918
|
-
|
|
68919
|
-
|
|
68920
|
-
|
|
68921
|
-
|
|
68922
|
-
|
|
68923
|
-
|
|
68924
|
-
|
|
68925
|
-
|
|
68926
|
-
|
|
68927
|
-
|
|
68928
|
-
|
|
68929
|
-
|
|
68930
|
-
|
|
68931
|
-
|
|
68932
|
-
|
|
68933
|
-
|
|
68934
|
-
|
|
68935
|
-
|
|
68936
|
-
|
|
68937
|
-
|
|
68938
|
-
|
|
68939
|
-
|
|
68940
|
-
|
|
68941
|
-
|
|
68942
|
-
|
|
68943
|
-
|
|
68944
|
-
|
|
68945
|
-
|
|
68946
|
-
|
|
68947
|
-
|
|
68948
|
-
|
|
68949
|
-
|
|
68950
|
-
|
|
68951
|
-
|
|
68952
|
-
|
|
68953
|
-
|
|
68954
|
-
|
|
68955
|
-
|
|
68956
|
-
|
|
68957
|
-
|
|
68958
|
-
|
|
68959
|
-
|
|
68960
|
-
|
|
68961
|
-
|
|
68962
|
-
|
|
68963
|
-
|
|
68964
|
-
|
|
68965
|
-
|
|
68966
|
-
|
|
68967
|
-
|
|
68968
|
-
|
|
68969
|
-
|
|
68970
|
-
|
|
68971
|
-
|
|
68972
|
-
|
|
68973
|
-
|
|
68974
|
-
|
|
68975
|
-
|
|
68976
|
-
|
|
68977
|
-
|
|
68978
|
-
|
|
68979
|
-
|
|
68980
|
-
|
|
68981
|
-
|
|
68982
|
-
|
|
68983
|
-
|
|
68984
|
-
|
|
68985
|
-
|
|
68986
|
-
|
|
68987
|
-
|
|
68988
|
-
|
|
68989
|
-
|
|
68990
|
-
|
|
68991
|
-
|
|
68992
|
-
|
|
68993
|
-
|
|
68994
|
-
|
|
68995
|
-
|
|
68996
|
-
|
|
68997
|
-
|
|
68998
|
-
id: "showAcceptedMemberships",
|
|
68999
|
-
type: "boolean",
|
|
69000
|
-
label: "Show accepted memberships",
|
|
69001
|
-
description: "Display memberships that grant access to this event",
|
|
69002
|
-
required: false,
|
|
69003
|
-
defaultValue: true,
|
|
69004
|
-
ui: { intent: "display" }
|
|
69005
|
-
}
|
|
69006
|
-
],
|
|
69007
|
-
layout: [styledSection({
|
|
69008
|
-
baseClass: "",
|
|
69009
|
-
spacing: "spacious",
|
|
69010
|
-
children: sectionContainer([text({ as: "h2" }, bind("content.heading"), when("content.heading")), el("event-details", {
|
|
69011
|
-
entryTitle: { $bind: {
|
|
69012
|
-
from: "$root.contentEntry.title",
|
|
69013
|
-
fallback: null
|
|
69014
|
-
} },
|
|
69015
|
-
arrangement: { $bind: { from: "content._effectiveLook.look.structure.byMode.default" } },
|
|
69016
|
-
actionSize: { $bind: { from: "content._effectiveLook.look.structure.actionSize" } },
|
|
69017
|
-
lookSlots: { $bind: { from: "content._lookSlots" } },
|
|
69018
|
-
itemSurfaces: { $bind: { from: "content._effectiveLook.itemSurfaces" } },
|
|
69019
|
-
panelHeading: { $bind: { from: "content._lookPanelHeading" } },
|
|
69020
|
-
occurrenceContext: { $bind: {
|
|
69021
|
-
from: "$root.occurrenceContext",
|
|
69022
|
-
fallback: null
|
|
69023
|
-
} },
|
|
69024
|
-
subject: { $bind: {
|
|
69025
|
-
from: "$root.subject",
|
|
69026
|
-
fallback: null
|
|
69027
|
-
} },
|
|
69028
|
-
events: { $bind: { from: "data.eventDetailsData.events" } },
|
|
69029
|
-
showVenue: { $bind: { from: "content.showVenue" } },
|
|
69030
|
-
showTitle: { $bind: { from: "content.showTitle" } },
|
|
69031
|
-
showDescription: { $bind: { from: "content.showDescription" } },
|
|
69032
|
-
showMap: { $bind: { from: "content.showMap" } },
|
|
69033
|
-
showOtherDates: { $bind: { from: "content.showOtherDates" } },
|
|
69034
|
-
otherDatesLimit: { $bind: {
|
|
69035
|
-
from: "content.otherDatesLimit",
|
|
69036
|
-
fallback: "5"
|
|
69037
|
-
} },
|
|
69038
|
-
showCost: { $bind: {
|
|
69039
|
-
from: "content.showCost",
|
|
69040
|
-
fallback: true
|
|
69041
|
-
} },
|
|
69042
|
-
showCapacity: { $bind: {
|
|
69043
|
-
from: "content.showCapacity",
|
|
69044
|
-
fallback: false
|
|
69045
|
-
} },
|
|
69046
|
-
showAcceptedPasses: { $bind: {
|
|
69047
|
-
from: "content.showAcceptedPasses",
|
|
69048
|
-
fallback: true
|
|
69049
|
-
} },
|
|
69050
|
-
showAcceptedMemberships: { $bind: {
|
|
69051
|
-
from: "content.showAcceptedMemberships",
|
|
69052
|
-
fallback: true
|
|
69053
|
-
} },
|
|
69054
|
-
sitePasses: { $bind: { from: "data.eventDetailsData.sitePasses" } },
|
|
69055
|
-
siteMemberships: { $bind: { from: "data.eventDetailsData.siteMemberships" } },
|
|
69056
|
-
autoApplyDiscount: { $bind: {
|
|
69057
|
-
from: "data.eventDetailsData.autoApplyDiscount",
|
|
69058
|
-
fallback: null
|
|
69059
|
-
} }
|
|
69060
|
-
})], { gap: "lg" })
|
|
69061
|
-
})]
|
|
69060
|
+
//#region ../blocks/src/system/runtime/api/schemas/events.ts
|
|
69061
|
+
const uuid = z$1.string().uuid();
|
|
69062
|
+
const eventRegistrationStatusReferenceSchema = z$1.discriminatedUnion("scope", [z$1.object({
|
|
69063
|
+
scope: z$1.literal("occurrence"),
|
|
69064
|
+
attendeeId: uuid
|
|
69065
|
+
}).strict(), z$1.object({
|
|
69066
|
+
scope: z$1.literal("wholeSeries"),
|
|
69067
|
+
registrationId: uuid
|
|
69068
|
+
}).strict()]);
|
|
69069
|
+
const eventRegistrationPaymentSubjectSchema = z$1.discriminatedUnion("scope", [z$1.object({
|
|
69070
|
+
scope: z$1.literal("occurrence"),
|
|
69071
|
+
submissionId: uuid,
|
|
69072
|
+
attendeeId: uuid
|
|
69073
|
+
}).strict(), z$1.object({
|
|
69074
|
+
scope: z$1.literal("wholeSeries"),
|
|
69075
|
+
submissionId: uuid
|
|
69076
|
+
}).strict()]);
|
|
69077
|
+
const identityFields = {
|
|
69078
|
+
submissionId: uuid,
|
|
69079
|
+
seriesId: uuid,
|
|
69080
|
+
attendanceMode: z$1.enum(["in_person", "online"])
|
|
69081
|
+
};
|
|
69082
|
+
const confirmedBookingIdentitySchema = z$1.discriminatedUnion("scope", [z$1.object({
|
|
69083
|
+
scope: z$1.literal("occurrence"),
|
|
69084
|
+
attendeeId: uuid,
|
|
69085
|
+
occurrenceId: uuid,
|
|
69086
|
+
...identityFields
|
|
69087
|
+
}).strict(), z$1.object({
|
|
69088
|
+
scope: z$1.literal("wholeSeries"),
|
|
69089
|
+
registrationId: uuid,
|
|
69090
|
+
...identityFields
|
|
69091
|
+
}).strict()]);
|
|
69092
|
+
const bookedTicketLineSchema = z$1.object({
|
|
69093
|
+
label: z$1.string().min(1),
|
|
69094
|
+
quantity: z$1.number().int().positive()
|
|
69095
|
+
}).strict();
|
|
69096
|
+
const eventBookingOutcomeSchema = z$1.discriminatedUnion("kind", [z$1.object({
|
|
69097
|
+
kind: z$1.literal("detailsAvailable"),
|
|
69098
|
+
identity: confirmedBookingIdentitySchema,
|
|
69099
|
+
ticketLines: z$1.tuple([bookedTicketLineSchema]).rest(bookedTicketLineSchema).readonly(),
|
|
69100
|
+
payment: confirmationPaymentSchema
|
|
69101
|
+
}).strict(), z$1.object({
|
|
69102
|
+
kind: z$1.literal("detailsUnavailable"),
|
|
69103
|
+
identity: confirmedBookingIdentitySchema
|
|
69104
|
+
}).strict()]);
|
|
69105
|
+
const eventEmbeddedCheckoutSchema = z$1.object({
|
|
69106
|
+
kind: z$1.literal("embedded"),
|
|
69107
|
+
sessionId: z$1.string().min(1),
|
|
69108
|
+
clientSecret: z$1.string().min(1),
|
|
69109
|
+
livemode: z$1.boolean(),
|
|
69110
|
+
expiresAt: z$1.string().datetime({ offset: true }),
|
|
69111
|
+
browser: z$1.discriminatedUnion("kind", [z$1.object({
|
|
69112
|
+
kind: z$1.literal("connect"),
|
|
69113
|
+
publishableKey: z$1.string().min(1),
|
|
69114
|
+
accountId: z$1.string().min(1)
|
|
69115
|
+
}).strict(), z$1.object({
|
|
69116
|
+
kind: z$1.literal("direct"),
|
|
69117
|
+
publishableKey: z$1.string().min(1)
|
|
69118
|
+
}).strict()])
|
|
69119
|
+
}).strict();
|
|
69120
|
+
const decorations = {
|
|
69121
|
+
mailingListSignupNote: z$1.enum(["confirmation_required", "not_confirmed"]).optional(),
|
|
69122
|
+
demoBookingPass: z$1.string().optional()
|
|
69123
|
+
};
|
|
69124
|
+
const eventRegistrationSummarySchema = z$1.object({
|
|
69125
|
+
message: z$1.string(),
|
|
69126
|
+
passCreditsRemaining: z$1.number().int().nonnegative().optional()
|
|
69127
|
+
}).strict();
|
|
69128
|
+
z$1.discriminatedUnion("kind", [
|
|
69129
|
+
z$1.object({
|
|
69130
|
+
kind: z$1.literal("bookingComplete"),
|
|
69131
|
+
outcome: eventBookingOutcomeSchema,
|
|
69132
|
+
summary: eventRegistrationSummarySchema,
|
|
69133
|
+
...decorations
|
|
69134
|
+
}).strict(),
|
|
69135
|
+
z$1.object({
|
|
69136
|
+
kind: z$1.literal("checkoutRequired"),
|
|
69137
|
+
reference: eventRegistrationStatusReferenceSchema,
|
|
69138
|
+
checkout: eventEmbeddedCheckoutSchema,
|
|
69139
|
+
submissionId: uuid,
|
|
69140
|
+
...decorations
|
|
69141
|
+
}).strict(),
|
|
69142
|
+
z$1.object({
|
|
69143
|
+
kind: z$1.literal("paymentStatusRequired"),
|
|
69144
|
+
subject: eventRegistrationPaymentSubjectSchema,
|
|
69145
|
+
...decorations
|
|
69146
|
+
}).strict(),
|
|
69147
|
+
z$1.object({
|
|
69148
|
+
kind: z$1.literal("waitlisted"),
|
|
69149
|
+
waitlist: z$1.object({
|
|
69150
|
+
reference: z$1.union([z$1.object({
|
|
69151
|
+
scope: z$1.literal("occurrence"),
|
|
69152
|
+
attendeeId: uuid
|
|
69153
|
+
}).strict(), z$1.object({
|
|
69154
|
+
scope: z$1.enum(["occurrence", "wholeSeries"]),
|
|
69155
|
+
waitlistEntryId: uuid
|
|
69156
|
+
}).strict()]),
|
|
69157
|
+
position: z$1.number().int().nonnegative().nullable(),
|
|
69158
|
+
message: z$1.string(),
|
|
69159
|
+
emailFollowupMessage: z$1.string().optional()
|
|
69160
|
+
}).strict(),
|
|
69161
|
+
...decorations
|
|
69162
|
+
}).strict()
|
|
69163
|
+
]);
|
|
69164
|
+
const checkoutStatusArms = [
|
|
69165
|
+
z$1.object({
|
|
69166
|
+
kind: z$1.literal("resolved"),
|
|
69167
|
+
outcome: eventBookingOutcomeSchema
|
|
69168
|
+
}).strict(),
|
|
69169
|
+
z$1.object({ kind: z$1.literal("abandoned") }).strict(),
|
|
69170
|
+
z$1.object({ kind: z$1.literal("reconciliationRequired") }).strict(),
|
|
69171
|
+
z$1.object({
|
|
69172
|
+
kind: z$1.literal("paymentProcessing"),
|
|
69173
|
+
recoverableUntil: z$1.string().optional()
|
|
69174
|
+
}).strict(),
|
|
69175
|
+
z$1.object({
|
|
69176
|
+
kind: z$1.literal("paymentAvailable"),
|
|
69177
|
+
checkout: eventEmbeddedCheckoutSchema,
|
|
69178
|
+
recoverableUntil: z$1.string().optional()
|
|
69179
|
+
}).strict(),
|
|
69180
|
+
z$1.object({
|
|
69181
|
+
kind: z$1.literal("paymentRetryAvailable"),
|
|
69182
|
+
place: z$1.enum(["held", "released"])
|
|
69183
|
+
}).strict(),
|
|
69184
|
+
z$1.object({
|
|
69185
|
+
kind: z$1.literal("paymentCheckUnavailable"),
|
|
69186
|
+
recoverableUntil: z$1.string().optional()
|
|
69187
|
+
}).strict(),
|
|
69188
|
+
z$1.object({ kind: z$1.literal("paymentAssistanceRequired") }).strict()
|
|
69189
|
+
];
|
|
69190
|
+
z$1.discriminatedUnion("kind", [...checkoutStatusArms, z$1.object({ kind: z$1.literal("notFound") }).strict()]);
|
|
69191
|
+
z$1.discriminatedUnion("kind", [
|
|
69192
|
+
z$1.object({
|
|
69193
|
+
kind: z$1.literal("checkout"),
|
|
69194
|
+
subject: eventRegistrationPaymentSubjectSchema,
|
|
69195
|
+
outcome: z$1.discriminatedUnion("kind", checkoutStatusArms)
|
|
69196
|
+
}).strict(),
|
|
69197
|
+
z$1.object({ kind: z$1.literal("notFound") }).strict(),
|
|
69198
|
+
z$1.object({ kind: z$1.literal("reconciliationRequired") }).strict()
|
|
69199
|
+
]).superRefine((response, ctx) => {
|
|
69200
|
+
if (response.kind !== "checkout" || response.outcome.kind !== "resolved") return;
|
|
69201
|
+
const identity = response.outcome.outcome.identity;
|
|
69202
|
+
if (identity.scope !== response.subject.scope || identity.submissionId !== response.subject.submissionId || identity.scope === "occurrence" && response.subject.scope === "occurrence" && identity.attendeeId !== response.subject.attendeeId) ctx.addIssue({
|
|
69203
|
+
code: "custom",
|
|
69204
|
+
message: "Confirmed booking does not match checkout subject",
|
|
69205
|
+
path: ["outcome"]
|
|
69206
|
+
});
|
|
69062
69207
|
});
|
|
69208
|
+
const checkoutDecorations = { mailingListSignupNote: decorations.mailingListSignupNote };
|
|
69209
|
+
z$1.union([
|
|
69210
|
+
z$1.object({
|
|
69211
|
+
kind: z$1.literal("completed"),
|
|
69212
|
+
scope: z$1.literal("occurrence"),
|
|
69213
|
+
outcome: eventBookingOutcomeSchema,
|
|
69214
|
+
...checkoutDecorations
|
|
69215
|
+
}).strict(),
|
|
69216
|
+
z$1.object({
|
|
69217
|
+
kind: z$1.literal("completed"),
|
|
69218
|
+
scope: z$1.literal("wholeSeries"),
|
|
69219
|
+
outcome: eventBookingOutcomeSchema,
|
|
69220
|
+
...checkoutDecorations
|
|
69221
|
+
}).strict(),
|
|
69222
|
+
z$1.object({
|
|
69223
|
+
kind: z$1.literal("checkoutRequired"),
|
|
69224
|
+
scope: z$1.literal("occurrence"),
|
|
69225
|
+
attendeeId: uuid,
|
|
69226
|
+
checkout: eventEmbeddedCheckoutSchema,
|
|
69227
|
+
...checkoutDecorations
|
|
69228
|
+
}).strict(),
|
|
69229
|
+
z$1.object({
|
|
69230
|
+
kind: z$1.literal("checkoutRequired"),
|
|
69231
|
+
scope: z$1.literal("wholeSeries"),
|
|
69232
|
+
registrationId: uuid,
|
|
69233
|
+
checkoutAttemptId: uuid,
|
|
69234
|
+
checkout: eventEmbeddedCheckoutSchema,
|
|
69235
|
+
recoverableUntil: z$1.string().optional(),
|
|
69236
|
+
...checkoutDecorations
|
|
69237
|
+
}).strict(),
|
|
69238
|
+
z$1.object({
|
|
69239
|
+
scope: z$1.literal("wholeSeries"),
|
|
69240
|
+
status: z$1.literal("paymentStatusRequired"),
|
|
69241
|
+
checkoutAttemptId: uuid,
|
|
69242
|
+
recoverableUntil: z$1.string().optional(),
|
|
69243
|
+
...checkoutDecorations
|
|
69244
|
+
}).strict(),
|
|
69245
|
+
z$1.object({
|
|
69246
|
+
scope: z$1.literal("wholeSeries"),
|
|
69247
|
+
status: z$1.literal("waitlist"),
|
|
69248
|
+
waitlistEntryId: uuid,
|
|
69249
|
+
waitlistPosition: z$1.number().int().nonnegative().nullable(),
|
|
69250
|
+
alreadyRegistered: z$1.boolean().optional(),
|
|
69251
|
+
...checkoutDecorations
|
|
69252
|
+
}).strict()
|
|
69253
|
+
]).superRefine((response, ctx) => {
|
|
69254
|
+
if ("kind" in response && response.kind === "completed" && response.scope !== response.outcome.identity.scope) ctx.addIssue({
|
|
69255
|
+
code: "custom",
|
|
69256
|
+
message: "Confirmed booking scope mismatch",
|
|
69257
|
+
path: [
|
|
69258
|
+
"outcome",
|
|
69259
|
+
"identity",
|
|
69260
|
+
"scope"
|
|
69261
|
+
]
|
|
69262
|
+
});
|
|
69263
|
+
});
|
|
69264
|
+
//#endregion
|
|
69265
|
+
//#region ../blocks/src/contracts/events.ts
|
|
69063
69266
|
const eventAutoApplyDiscountPreviewBaseSchema = z$1.object({
|
|
69064
69267
|
id: z$1.string(),
|
|
69065
69268
|
publicLabel: z$1.string(),
|
|
@@ -69076,7 +69279,207 @@ const eventAutoApplyDiscountPreviewSchema = z$1.discriminatedUnion("discountType
|
|
|
69076
69279
|
discountAmountCents: z$1.number()
|
|
69077
69280
|
})]);
|
|
69078
69281
|
const eventDetailsBlockDefinition = {
|
|
69079
|
-
manifest:
|
|
69282
|
+
manifest: createBlockManifest({
|
|
69283
|
+
variantMeaning: {
|
|
69284
|
+
kind: "arrangement",
|
|
69285
|
+
lookOnlyKeys: ["event-header", "details-panel"]
|
|
69286
|
+
},
|
|
69287
|
+
id: "block.event-details",
|
|
69288
|
+
version: "1.0.0",
|
|
69289
|
+
title: "Event Details",
|
|
69290
|
+
titleSource: "heading",
|
|
69291
|
+
description: "Date/time, venue, map, and other dates for an event",
|
|
69292
|
+
category: "content",
|
|
69293
|
+
contentSource: { kind: "entries" },
|
|
69294
|
+
tags: [
|
|
69295
|
+
"events",
|
|
69296
|
+
"venue",
|
|
69297
|
+
"map",
|
|
69298
|
+
"schedule",
|
|
69299
|
+
"dates"
|
|
69300
|
+
],
|
|
69301
|
+
icon: "MapPin",
|
|
69302
|
+
styleTokens: {
|
|
69303
|
+
background: "surface",
|
|
69304
|
+
typography: "body",
|
|
69305
|
+
spacing: "md"
|
|
69306
|
+
},
|
|
69307
|
+
behaviours: {
|
|
69308
|
+
supportsThemeSwitching: true,
|
|
69309
|
+
inlineEditing: false,
|
|
69310
|
+
animation: false,
|
|
69311
|
+
paletteHidden: false
|
|
69312
|
+
},
|
|
69313
|
+
additionalFields: [
|
|
69314
|
+
{
|
|
69315
|
+
id: "heading",
|
|
69316
|
+
type: "text",
|
|
69317
|
+
label: "Heading",
|
|
69318
|
+
description: "Optional heading shown above event details",
|
|
69319
|
+
required: false,
|
|
69320
|
+
multiline: false,
|
|
69321
|
+
defaultValue: "Event details"
|
|
69322
|
+
},
|
|
69323
|
+
{
|
|
69324
|
+
id: "showVenue",
|
|
69325
|
+
type: "boolean",
|
|
69326
|
+
label: "Show venue",
|
|
69327
|
+
required: false,
|
|
69328
|
+
defaultValue: true,
|
|
69329
|
+
ui: { intent: "display" }
|
|
69330
|
+
},
|
|
69331
|
+
{
|
|
69332
|
+
id: "showTitle",
|
|
69333
|
+
type: "boolean",
|
|
69334
|
+
label: "Show event title",
|
|
69335
|
+
required: false,
|
|
69336
|
+
defaultValue: false,
|
|
69337
|
+
ui: { intent: "display" }
|
|
69338
|
+
},
|
|
69339
|
+
{
|
|
69340
|
+
id: "showDescription",
|
|
69341
|
+
type: "boolean",
|
|
69342
|
+
label: "Show event description",
|
|
69343
|
+
required: false,
|
|
69344
|
+
defaultValue: false,
|
|
69345
|
+
ui: { intent: "display" }
|
|
69346
|
+
},
|
|
69347
|
+
{
|
|
69348
|
+
id: "showMap",
|
|
69349
|
+
type: "boolean",
|
|
69350
|
+
label: "Show map",
|
|
69351
|
+
description: "Embed a map when the venue has coordinates",
|
|
69352
|
+
required: false,
|
|
69353
|
+
defaultValue: true,
|
|
69354
|
+
ui: { intent: "display" }
|
|
69355
|
+
},
|
|
69356
|
+
{
|
|
69357
|
+
id: "showOtherDates",
|
|
69358
|
+
type: "boolean",
|
|
69359
|
+
label: "Show other dates",
|
|
69360
|
+
required: false,
|
|
69361
|
+
defaultValue: true,
|
|
69362
|
+
ui: { intent: "display" }
|
|
69363
|
+
},
|
|
69364
|
+
{
|
|
69365
|
+
id: "otherDatesLimit",
|
|
69366
|
+
type: "select",
|
|
69367
|
+
label: "Other dates limit",
|
|
69368
|
+
required: false,
|
|
69369
|
+
multiple: false,
|
|
69370
|
+
defaultValue: "5",
|
|
69371
|
+
options: [
|
|
69372
|
+
{
|
|
69373
|
+
value: "3",
|
|
69374
|
+
label: "3 dates"
|
|
69375
|
+
},
|
|
69376
|
+
{
|
|
69377
|
+
value: "5",
|
|
69378
|
+
label: "5 dates"
|
|
69379
|
+
},
|
|
69380
|
+
{
|
|
69381
|
+
value: "10",
|
|
69382
|
+
label: "10 dates"
|
|
69383
|
+
},
|
|
69384
|
+
{
|
|
69385
|
+
value: "all",
|
|
69386
|
+
label: "All dates"
|
|
69387
|
+
}
|
|
69388
|
+
],
|
|
69389
|
+
ui: { intent: "display" }
|
|
69390
|
+
},
|
|
69391
|
+
{
|
|
69392
|
+
id: "showCapacity",
|
|
69393
|
+
type: "boolean",
|
|
69394
|
+
label: "Show capacity",
|
|
69395
|
+
required: false,
|
|
69396
|
+
defaultValue: false,
|
|
69397
|
+
ui: { intent: "display" }
|
|
69398
|
+
},
|
|
69399
|
+
{
|
|
69400
|
+
id: "showCost",
|
|
69401
|
+
type: "boolean",
|
|
69402
|
+
label: "Show cost",
|
|
69403
|
+
description: "Display ticket price for paid events",
|
|
69404
|
+
required: false,
|
|
69405
|
+
defaultValue: true,
|
|
69406
|
+
ui: { intent: "display" }
|
|
69407
|
+
},
|
|
69408
|
+
{
|
|
69409
|
+
id: "showAcceptedPasses",
|
|
69410
|
+
type: "boolean",
|
|
69411
|
+
label: "Show accepted passes",
|
|
69412
|
+
description: "Display passes that can be used for this event",
|
|
69413
|
+
required: false,
|
|
69414
|
+
defaultValue: true,
|
|
69415
|
+
ui: { intent: "display" }
|
|
69416
|
+
},
|
|
69417
|
+
{
|
|
69418
|
+
id: "showAcceptedMemberships",
|
|
69419
|
+
type: "boolean",
|
|
69420
|
+
label: "Show accepted memberships",
|
|
69421
|
+
description: "Display memberships that grant access to this event",
|
|
69422
|
+
required: false,
|
|
69423
|
+
defaultValue: true,
|
|
69424
|
+
ui: { intent: "display" }
|
|
69425
|
+
}
|
|
69426
|
+
],
|
|
69427
|
+
layout: [styledSection({
|
|
69428
|
+
baseClass: "",
|
|
69429
|
+
spacing: "spacious",
|
|
69430
|
+
children: sectionContainer([text({ as: "h2" }, bind("content.heading"), when("content.heading")), el("event-details", {
|
|
69431
|
+
entryTitle: { $bind: {
|
|
69432
|
+
from: "$root.contentEntry.title",
|
|
69433
|
+
fallback: null
|
|
69434
|
+
} },
|
|
69435
|
+
arrangement: { $bind: { from: "content._effectiveLook.look.structure.byMode.default" } },
|
|
69436
|
+
actionSize: { $bind: { from: "content._effectiveLook.look.structure.actionSize" } },
|
|
69437
|
+
lookSlots: { $bind: { from: "content._lookSlots" } },
|
|
69438
|
+
itemSurfaces: { $bind: { from: "content._effectiveLook.itemSurfaces" } },
|
|
69439
|
+
panelHeading: { $bind: { from: "content._lookPanelHeading" } },
|
|
69440
|
+
occurrenceContext: { $bind: {
|
|
69441
|
+
from: "$root.occurrenceContext",
|
|
69442
|
+
fallback: null
|
|
69443
|
+
} },
|
|
69444
|
+
subject: { $bind: {
|
|
69445
|
+
from: "$root.subject",
|
|
69446
|
+
fallback: null
|
|
69447
|
+
} },
|
|
69448
|
+
events: { $bind: { from: "data.eventDetailsData.events" } },
|
|
69449
|
+
showVenue: { $bind: { from: "content.showVenue" } },
|
|
69450
|
+
showTitle: { $bind: { from: "content.showTitle" } },
|
|
69451
|
+
showDescription: { $bind: { from: "content.showDescription" } },
|
|
69452
|
+
showMap: { $bind: { from: "content.showMap" } },
|
|
69453
|
+
showOtherDates: { $bind: { from: "content.showOtherDates" } },
|
|
69454
|
+
otherDatesLimit: { $bind: {
|
|
69455
|
+
from: "content.otherDatesLimit",
|
|
69456
|
+
fallback: "5"
|
|
69457
|
+
} },
|
|
69458
|
+
showCost: { $bind: {
|
|
69459
|
+
from: "content.showCost",
|
|
69460
|
+
fallback: true
|
|
69461
|
+
} },
|
|
69462
|
+
showCapacity: { $bind: {
|
|
69463
|
+
from: "content.showCapacity",
|
|
69464
|
+
fallback: false
|
|
69465
|
+
} },
|
|
69466
|
+
showAcceptedPasses: { $bind: {
|
|
69467
|
+
from: "content.showAcceptedPasses",
|
|
69468
|
+
fallback: true
|
|
69469
|
+
} },
|
|
69470
|
+
showAcceptedMemberships: { $bind: {
|
|
69471
|
+
from: "content.showAcceptedMemberships",
|
|
69472
|
+
fallback: true
|
|
69473
|
+
} },
|
|
69474
|
+
sitePasses: { $bind: { from: "data.eventDetailsData.sitePasses" } },
|
|
69475
|
+
siteMemberships: { $bind: { from: "data.eventDetailsData.siteMemberships" } },
|
|
69476
|
+
autoApplyDiscount: { $bind: {
|
|
69477
|
+
from: "data.eventDetailsData.autoApplyDiscount",
|
|
69478
|
+
fallback: null
|
|
69479
|
+
} }
|
|
69480
|
+
})], { gap: "lg" })
|
|
69481
|
+
})]
|
|
69482
|
+
}),
|
|
69080
69483
|
dataSchemas: {
|
|
69081
69484
|
eventDetailsData: z$1.object({
|
|
69082
69485
|
events: publicEventsArraySchema,
|
|
@@ -85843,6 +86246,256 @@ const containerResponsiveThemeCss = `/*
|
|
|
85843
86246
|
/* Styles for SSR placeholder */
|
|
85844
86247
|
}
|
|
85845
86248
|
|
|
86249
|
+
/* Reserved portal ticket and digital-product pages.
|
|
86250
|
+
* These render without site chrome, so the page itself sits on the site
|
|
86251
|
+
* background (from the surrounding theme scope) and the card mirrors .cp-login. */
|
|
86252
|
+
:where(.theme-scope) :where([data-block="customer-portal"]).cp-page {
|
|
86253
|
+
box-sizing: border-box;
|
|
86254
|
+
min-height: 100vh;
|
|
86255
|
+
padding: 2.5rem 1rem;
|
|
86256
|
+
color: var(--cp-text);
|
|
86257
|
+
font-family: var(--font-body);
|
|
86258
|
+
font-size: var(--fs-body);
|
|
86259
|
+
}
|
|
86260
|
+
|
|
86261
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-card {
|
|
86262
|
+
box-sizing: border-box;
|
|
86263
|
+
width: 100%;
|
|
86264
|
+
max-width: 42rem;
|
|
86265
|
+
margin-inline: auto;
|
|
86266
|
+
padding: 2rem;
|
|
86267
|
+
border: 1px solid var(--cp-card-border);
|
|
86268
|
+
border-radius: var(--cp-card-radius);
|
|
86269
|
+
background: var(--cp-card-bg);
|
|
86270
|
+
color: var(--cp-text);
|
|
86271
|
+
--rb-surface-text-color: var(--cp-text);
|
|
86272
|
+
--rb-surface-heading-color: var(--cp-text);
|
|
86273
|
+
--rb-surface-link-color: var(--cp-primary);
|
|
86274
|
+
--rb-surface-link-hover-color: var(--rb-prose-link-hover-color, var(--cp-primary));
|
|
86275
|
+
--rb-surface-supporting-color: var(--cp-muted);
|
|
86276
|
+
}
|
|
86277
|
+
|
|
86278
|
+
:where(.theme-scope)
|
|
86279
|
+
:where([data-block="customer-portal"])
|
|
86280
|
+
.cp-page-card--compact {
|
|
86281
|
+
max-width: 480px;
|
|
86282
|
+
}
|
|
86283
|
+
|
|
86284
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket {
|
|
86285
|
+
max-width: 40rem;
|
|
86286
|
+
}
|
|
86287
|
+
|
|
86288
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-title {
|
|
86289
|
+
margin: 0;
|
|
86290
|
+
font-size: var(--fs-h3, 1.5rem);
|
|
86291
|
+
line-height: 1.2;
|
|
86292
|
+
}
|
|
86293
|
+
|
|
86294
|
+
/* The sign-in card's title is the page heading here, so it is an h1 sized like
|
|
86295
|
+
* the main portal's sign-in heading. */
|
|
86296
|
+
:where(.theme-scope)
|
|
86297
|
+
:where([data-block="customer-portal"]).cp-page
|
|
86298
|
+
.cp-login__title {
|
|
86299
|
+
font-size: var(--fs-h2, 2rem);
|
|
86300
|
+
line-height: 1.15;
|
|
86301
|
+
}
|
|
86302
|
+
|
|
86303
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-subtitle {
|
|
86304
|
+
margin: 0;
|
|
86305
|
+
font-size: 1.25rem;
|
|
86306
|
+
line-height: 1.3;
|
|
86307
|
+
}
|
|
86308
|
+
|
|
86309
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-copy {
|
|
86310
|
+
margin-top: 0.75rem;
|
|
86311
|
+
}
|
|
86312
|
+
|
|
86313
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-copy p {
|
|
86314
|
+
margin: 0;
|
|
86315
|
+
}
|
|
86316
|
+
|
|
86317
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-hint {
|
|
86318
|
+
margin: 0.25rem 0 0;
|
|
86319
|
+
color: var(--cp-muted);
|
|
86320
|
+
font-size: 0.875rem;
|
|
86321
|
+
}
|
|
86322
|
+
|
|
86323
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-stack,
|
|
86324
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-files,
|
|
86325
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-details {
|
|
86326
|
+
display: grid;
|
|
86327
|
+
gap: 0.75rem;
|
|
86328
|
+
}
|
|
86329
|
+
|
|
86330
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-details {
|
|
86331
|
+
gap: 0.25rem;
|
|
86332
|
+
font-size: 0.9375rem;
|
|
86333
|
+
}
|
|
86334
|
+
|
|
86335
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-emphasis {
|
|
86336
|
+
margin: 0;
|
|
86337
|
+
font-family: inherit;
|
|
86338
|
+
font-size: inherit;
|
|
86339
|
+
font-style: normal;
|
|
86340
|
+
font-weight: 600;
|
|
86341
|
+
letter-spacing: normal;
|
|
86342
|
+
text-transform: none;
|
|
86343
|
+
}
|
|
86344
|
+
|
|
86345
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket__heading,
|
|
86346
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-file {
|
|
86347
|
+
display: flex;
|
|
86348
|
+
align-items: flex-start;
|
|
86349
|
+
justify-content: space-between;
|
|
86350
|
+
gap: 1rem;
|
|
86351
|
+
}
|
|
86352
|
+
|
|
86353
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket__body {
|
|
86354
|
+
display: grid;
|
|
86355
|
+
gap: 1.5rem;
|
|
86356
|
+
margin-top: 1.5rem;
|
|
86357
|
+
}
|
|
86358
|
+
|
|
86359
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket__qr {
|
|
86360
|
+
align-self: start;
|
|
86361
|
+
padding: 1rem;
|
|
86362
|
+
border: 1px solid var(--cp-card-border);
|
|
86363
|
+
border-radius: var(--cp-control-radius);
|
|
86364
|
+
background: var(--cp-card-bg);
|
|
86365
|
+
}
|
|
86366
|
+
|
|
86367
|
+
:where(.theme-scope)
|
|
86368
|
+
:where([data-block="customer-portal"])
|
|
86369
|
+
.cp-ticket__qr-image {
|
|
86370
|
+
display: block;
|
|
86371
|
+
width: 176px;
|
|
86372
|
+
height: 176px;
|
|
86373
|
+
max-width: 100%;
|
|
86374
|
+
}
|
|
86375
|
+
|
|
86376
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket__code-row {
|
|
86377
|
+
display: flex;
|
|
86378
|
+
flex-wrap: wrap;
|
|
86379
|
+
align-items: center;
|
|
86380
|
+
gap: 0.5rem;
|
|
86381
|
+
}
|
|
86382
|
+
|
|
86383
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket__code {
|
|
86384
|
+
flex: 1 1 12rem;
|
|
86385
|
+
min-width: 0;
|
|
86386
|
+
padding: 0.5rem 0.75rem;
|
|
86387
|
+
border: 1px solid var(--cp-card-border);
|
|
86388
|
+
border-radius: var(--cp-control-radius);
|
|
86389
|
+
background: rgb(var(--tb-background));
|
|
86390
|
+
overflow-wrap: anywhere;
|
|
86391
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
86392
|
+
font-size: 0.75rem;
|
|
86393
|
+
}
|
|
86394
|
+
|
|
86395
|
+
/* Copy sits beside the code rather than under it: some site styles draw the
|
|
86396
|
+
* secondary button as text with inline padding, which would otherwise leave
|
|
86397
|
+
* its label visibly indented from the code box's left edge. */
|
|
86398
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket__copy {
|
|
86399
|
+
flex: none;
|
|
86400
|
+
}
|
|
86401
|
+
|
|
86402
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-code {
|
|
86403
|
+
margin-top: 0.5rem;
|
|
86404
|
+
}
|
|
86405
|
+
|
|
86406
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-file {
|
|
86407
|
+
align-items: center;
|
|
86408
|
+
padding: 0.75rem 1rem;
|
|
86409
|
+
border: 1px solid var(--cp-card-border);
|
|
86410
|
+
border-radius: var(--cp-control-radius);
|
|
86411
|
+
color: var(--cp-text);
|
|
86412
|
+
text-decoration: none;
|
|
86413
|
+
transition: border-color 0.15s ease;
|
|
86414
|
+
}
|
|
86415
|
+
|
|
86416
|
+
:where(.theme-scope)
|
|
86417
|
+
:where([data-block="customer-portal"])
|
|
86418
|
+
.cp-page-file:hover {
|
|
86419
|
+
border-color: var(--cp-primary);
|
|
86420
|
+
}
|
|
86421
|
+
|
|
86422
|
+
:where(.theme-scope)
|
|
86423
|
+
:where([data-block="customer-portal"])
|
|
86424
|
+
.cp-page-file:focus-visible {
|
|
86425
|
+
outline: 2px solid var(--cp-primary);
|
|
86426
|
+
outline-offset: 2px;
|
|
86427
|
+
}
|
|
86428
|
+
|
|
86429
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-file .cp-page-hint {
|
|
86430
|
+
margin: 0;
|
|
86431
|
+
overflow-wrap: anywhere;
|
|
86432
|
+
text-align: right;
|
|
86433
|
+
}
|
|
86434
|
+
|
|
86435
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-link {
|
|
86436
|
+
color: var(--cp-primary);
|
|
86437
|
+
text-decoration: underline;
|
|
86438
|
+
text-underline-offset: 0.15em;
|
|
86439
|
+
}
|
|
86440
|
+
|
|
86441
|
+
@container rb-site (max-width: 640px) {
|
|
86442
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
86443
|
+
:where(.theme-scope:is(*, :scope)) :where([data-block="customer-portal"]).cp-page {
|
|
86444
|
+
padding: 1.5rem 1rem;
|
|
86445
|
+
}
|
|
86446
|
+
|
|
86447
|
+
:where(.theme-scope:is(*, :scope)) :where([data-block="customer-portal"]) .cp-page-card {
|
|
86448
|
+
padding: 1.5rem;
|
|
86449
|
+
}
|
|
86450
|
+
|
|
86451
|
+
:where(.theme-scope:is(*, :scope)) :where([data-block="customer-portal"]) .cp-page-file {
|
|
86452
|
+
flex-direction: column;
|
|
86453
|
+
align-items: flex-start;
|
|
86454
|
+
gap: 0.25rem;
|
|
86455
|
+
}
|
|
86456
|
+
|
|
86457
|
+
:where(.theme-scope:is(*, :scope))
|
|
86458
|
+
:where([data-block="customer-portal"])
|
|
86459
|
+
.cp-page-file
|
|
86460
|
+
.cp-page-hint {
|
|
86461
|
+
text-align: left;
|
|
86462
|
+
}
|
|
86463
|
+
}
|
|
86464
|
+
}
|
|
86465
|
+
|
|
86466
|
+
@container rb-site (min-width: 48rem) {
|
|
86467
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
86468
|
+
:where(.theme-scope:is(*, :scope)) :where([data-block="customer-portal"]) .cp-ticket__body {
|
|
86469
|
+
grid-template-columns: 210px 1fr;
|
|
86470
|
+
}
|
|
86471
|
+
}
|
|
86472
|
+
}
|
|
86473
|
+
|
|
86474
|
+
@media print {
|
|
86475
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-print-hidden {
|
|
86476
|
+
display: none;
|
|
86477
|
+
}
|
|
86478
|
+
|
|
86479
|
+
:where(.theme-scope) :where([data-block="customer-portal"]).cp-page {
|
|
86480
|
+
min-height: 0;
|
|
86481
|
+
padding: 0;
|
|
86482
|
+
}
|
|
86483
|
+
|
|
86484
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket,
|
|
86485
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket__qr {
|
|
86486
|
+
max-width: none;
|
|
86487
|
+
padding: 0;
|
|
86488
|
+
border: 0;
|
|
86489
|
+
border-radius: 0;
|
|
86490
|
+
box-shadow: none;
|
|
86491
|
+
}
|
|
86492
|
+
}
|
|
86493
|
+
|
|
86494
|
+
/* Preserve line breaks in the before-you-come instructions. */
|
|
86495
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-before-you-come__body {
|
|
86496
|
+
white-space: pre-wrap;
|
|
86497
|
+
}
|
|
86498
|
+
|
|
85846
86499
|
/* =============================================================================
|
|
85847
86500
|
* Runtime: Header Navigation Dropdown (Tailwind-free)
|
|
85848
86501
|
*
|
|
@@ -87533,9 +88186,18 @@ const containerResponsiveThemeCss = `/*
|
|
|
87533
88186
|
border-radius: 9999px;
|
|
87534
88187
|
}
|
|
87535
88188
|
|
|
88189
|
+
/*
|
|
88190
|
+
* Statement, copy and media: at tablet widths the statement takes the whole
|
|
88191
|
+
* first row and copy sits beside the media underneath; at desktop all three
|
|
88192
|
+
* share one row. The grid item is the title itself, or the heading-decoration
|
|
88193
|
+
* wrapper around it when the site style decorates headings, so both are
|
|
88194
|
+
* targeted. Without the wrapper case the title took a column of its own and
|
|
88195
|
+
* the media dropped to a lonely third row.
|
|
88196
|
+
*/
|
|
87536
88197
|
@container rb-site (min-width: 768px) {
|
|
87537
88198
|
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
87538
|
-
:where(.theme-scope:is(*, :scope)) [data-block="intro"][data-block-variant="statement-media"] .rb-intro-statement-media-title
|
|
88199
|
+
:where(.theme-scope:is(*, :scope)) [data-block="intro"][data-block-variant="statement-media"] .rb-intro-statement-media > .rb-intro-statement-media-title,
|
|
88200
|
+
:where(.theme-scope:is(*, :scope)) [data-block="intro"][data-block-variant="statement-media"] .rb-intro-statement-media > :has(> .rb-intro-statement-media-title) {
|
|
87539
88201
|
grid-column: 1 / -1;
|
|
87540
88202
|
}
|
|
87541
88203
|
}
|
|
@@ -87543,7 +88205,8 @@ const containerResponsiveThemeCss = `/*
|
|
|
87543
88205
|
|
|
87544
88206
|
@container rb-site (min-width: 1024px) {
|
|
87545
88207
|
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
87546
|
-
:where(.theme-scope:is(*, :scope)) [data-block="intro"][data-block-variant="statement-media"] .rb-intro-statement-media-title
|
|
88208
|
+
:where(.theme-scope:is(*, :scope)) [data-block="intro"][data-block-variant="statement-media"] .rb-intro-statement-media > .rb-intro-statement-media-title,
|
|
88209
|
+
:where(.theme-scope:is(*, :scope)) [data-block="intro"][data-block-variant="statement-media"] .rb-intro-statement-media > :has(> .rb-intro-statement-media-title) {
|
|
87547
88210
|
grid-column: auto;
|
|
87548
88211
|
}
|
|
87549
88212
|
}
|
|
@@ -101978,13 +102641,14 @@ const FIELD_TYPE_CLASSIFICATION = {
|
|
|
101978
102641
|
repeater: "whole",
|
|
101979
102642
|
presetOrCustom: "opaque",
|
|
101980
102643
|
contentTypeSelect: "opaque",
|
|
101981
|
-
entryPicker: "
|
|
102644
|
+
entryPicker: "leaf",
|
|
101982
102645
|
time: "opaque"
|
|
101983
102646
|
};
|
|
101984
102647
|
function classify(type) {
|
|
101985
102648
|
return FIELD_TYPE_CLASSIFICATION[type] ?? "unknown";
|
|
101986
102649
|
}
|
|
101987
102650
|
function leafToBlockFieldType(type) {
|
|
102651
|
+
if (type === "entryPicker") return "reference";
|
|
101988
102652
|
return classify(type) === "leaf" ? type : null;
|
|
101989
102653
|
}
|
|
101990
102654
|
/**
|
|
@@ -101996,10 +102660,11 @@ function collectLeaves(fields, prefix, out) {
|
|
|
101996
102660
|
for (const field of fields) {
|
|
101997
102661
|
const id = prefix ? `${prefix}.${field.id}` : field.id;
|
|
101998
102662
|
const cls = classify(field.type);
|
|
101999
|
-
|
|
102663
|
+
const leafType = leafToBlockFieldType(field.type);
|
|
102664
|
+
if (leafType) {
|
|
102000
102665
|
out.push({
|
|
102001
102666
|
id,
|
|
102002
|
-
type:
|
|
102667
|
+
type: leafType,
|
|
102003
102668
|
required: Boolean(field.required)
|
|
102004
102669
|
});
|
|
102005
102670
|
continue;
|