@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;
|
|
@@ -7205,6 +7212,34 @@ function formatBookingTime(input, format = {
|
|
|
7205
7212
|
format
|
|
7206
7213
|
});
|
|
7207
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
|
+
}
|
|
7208
7243
|
function formatBookingDateParts(input, options) {
|
|
7209
7244
|
return {
|
|
7210
7245
|
date: formatBookingDate(input, options?.dateFormat ?? {
|
|
@@ -7330,6 +7365,173 @@ function inferSiteDateLocale(siteTimeZone) {
|
|
|
7330
7365
|
if (siteTimeZone === "Pacific/Auckland" || siteTimeZone === "Pacific/Chatham") return "en-NZ";
|
|
7331
7366
|
return "en-US";
|
|
7332
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
|
+
}
|
|
7333
7535
|
//#endregion
|
|
7334
7536
|
//#region ../core/src/appointment-service-categories.ts
|
|
7335
7537
|
/**
|
|
@@ -8525,7 +8727,7 @@ function resolveSiteVerticalBookingConfig(rawConfig) {
|
|
|
8525
8727
|
*/
|
|
8526
8728
|
const PORTAL_NAV_DEFAULT_LABELS = {
|
|
8527
8729
|
loggedOut: "Login",
|
|
8528
|
-
loggedIn: "My
|
|
8730
|
+
loggedIn: "My account"
|
|
8529
8731
|
};
|
|
8530
8732
|
//#endregion
|
|
8531
8733
|
//#region ../core/src/event-preset-vocabulary.ts
|
|
@@ -44313,7 +44515,7 @@ const moneyFields = {
|
|
|
44313
44515
|
amountPaidCents: z$1.number().int().nonnegative().transform(toNonNegativeCents),
|
|
44314
44516
|
currency: currencySchema
|
|
44315
44517
|
};
|
|
44316
|
-
z$1.discriminatedUnion("kind", [
|
|
44518
|
+
const confirmationPaymentSchema = z$1.discriminatedUnion("kind", [
|
|
44317
44519
|
z$1.strictObject({
|
|
44318
44520
|
kind: z$1.literal("free"),
|
|
44319
44521
|
balance: settledBalanceSchema
|
|
@@ -45301,9 +45503,13 @@ function cardProjectionBase(event, buttonText, offering) {
|
|
|
45301
45503
|
function offeringLeadDate(event, startMs) {
|
|
45302
45504
|
if (startMs === null || !Number.isFinite(startMs)) return null;
|
|
45303
45505
|
const startsAt = new Date(startMs).toISOString();
|
|
45506
|
+
const timeZone = resolveBookingBusinessTimeZone(event.bookingScope === "whole_series" ? orderedLiveRunSessions(event.run.sessions).find((session) => Date.parse(session.startsAt) === startMs)?.timeZone ?? event.timeZone : event.timeZone);
|
|
45304
45507
|
return {
|
|
45305
45508
|
startsAt,
|
|
45306
|
-
...formatEventCompactDateRail(startsAt,
|
|
45509
|
+
...formatEventCompactDateRail(startsAt, {
|
|
45510
|
+
...eventDateOptions(event),
|
|
45511
|
+
timeZone
|
|
45512
|
+
}, "as-written")
|
|
45307
45513
|
};
|
|
45308
45514
|
}
|
|
45309
45515
|
function offeringSchedule(event, now) {
|
|
@@ -45323,49 +45529,47 @@ function offeringSchedule(event, now) {
|
|
|
45323
45529
|
}
|
|
45324
45530
|
function scheduleLine(summary, event, now) {
|
|
45325
45531
|
const options = eventDateOptions(event);
|
|
45326
|
-
const
|
|
45327
|
-
const
|
|
45328
|
-
|
|
45329
|
-
|
|
45330
|
-
|
|
45331
|
-
|
|
45332
|
-
|
|
45333
|
-
|
|
45334
|
-
|
|
45335
|
-
|
|
45336
|
-
|
|
45337
|
-
|
|
45532
|
+
const first = "occurrence" in summary ? summary.occurrence : summary.first;
|
|
45533
|
+
const last = "occurrence" in summary ? summary.occurrence : summary.last;
|
|
45534
|
+
const context = {
|
|
45535
|
+
locale: options.locale,
|
|
45536
|
+
timeZone: resolveBookingBusinessTimeZone(first.timeZone)
|
|
45537
|
+
};
|
|
45538
|
+
const zone = event.deliveryMode === "online" || context.timeZone !== resolveBookingBusinessTimeZone(event.siteTimeZone ?? event.timeZone) ? "always" : "omit";
|
|
45539
|
+
const endpoint = (value) => ({
|
|
45540
|
+
kind: "instant",
|
|
45541
|
+
value: toUtcIsoDateTimeString(value)
|
|
45542
|
+
});
|
|
45543
|
+
const year = (value, timeZone = context.timeZone) => now && getLocalScheduleDate(new Date(value), timeZone).year === getLocalScheduleDate(now, timeZone).year ? "omit" : "numeric";
|
|
45544
|
+
const date = (value) => formatDate$5(endpoint(value), context, {
|
|
45545
|
+
date: "short",
|
|
45546
|
+
year: now ? year(value) : "omit"
|
|
45547
|
+
});
|
|
45548
|
+
const dates = (startsAt, endsAt) => formatDateRange({
|
|
45549
|
+
kind: "civil",
|
|
45550
|
+
value: getLocalScheduleDate(new Date(startsAt), context.timeZone)
|
|
45551
|
+
}, {
|
|
45552
|
+
kind: "civil",
|
|
45553
|
+
value: getLocalScheduleDate(new Date(endsAt), resolveBookingBusinessTimeZone(last.timeZone))
|
|
45554
|
+
}, context, {
|
|
45555
|
+
date: "short",
|
|
45556
|
+
year: now && year(startsAt) === "omit" && year(endsAt, resolveBookingBusinessTimeZone(last.timeZone)) === "omit" ? "omit" : now ? "numeric" : "omit"
|
|
45557
|
+
});
|
|
45338
45558
|
switch (summary.kind) {
|
|
45339
|
-
case "single-occurrence": return now ?
|
|
45340
|
-
|
|
45341
|
-
|
|
45342
|
-
|
|
45559
|
+
case "single-occurrence": return now ? formatDateTimeRange({
|
|
45560
|
+
start: endpoint(summary.occurrence.startsAt).value,
|
|
45561
|
+
end: endpoint(summary.occurrence.endsAt).value
|
|
45562
|
+
}, context, {
|
|
45563
|
+
date: "short",
|
|
45564
|
+
weekday: "short",
|
|
45565
|
+
year: year(summary.occurrence.startsAt),
|
|
45566
|
+
zone
|
|
45567
|
+
}) : date(summary.occurrence.startsAt);
|
|
45568
|
+
case "multi-day-span": return dates(summary.occurrence.startsAt, summary.occurrence.endsAt);
|
|
45569
|
+
case "fixed-recurring-run": return `${dates(summary.first.startsAt, summary.last.startsAt)} · ${summary.recurrenceLabel}`;
|
|
45570
|
+
case "irregular-multi-session-run": return `${dates(summary.first.startsAt, summary.last.startsAt)} · ${summary.sessionCount} dates`;
|
|
45343
45571
|
}
|
|
45344
45572
|
}
|
|
45345
|
-
function compactTimeRange(startsAt, endsAt, timeZone) {
|
|
45346
|
-
const time = (value) => formatTime$1(value, {
|
|
45347
|
-
timeZone,
|
|
45348
|
-
locale: "en-US"
|
|
45349
|
-
}).replace(/:00/, "").replace(/\s/g, "").toLowerCase();
|
|
45350
|
-
const start = time(startsAt);
|
|
45351
|
-
const end = time(endsAt);
|
|
45352
|
-
return `${start.endsWith("am") === end.endsWith("am") ? start.replace(/(am|pm)$/, "") : start}–${end}`;
|
|
45353
|
-
}
|
|
45354
|
-
function compactDateSpan(startsAt, endsAt, locale, timeZone, now) {
|
|
45355
|
-
const start = new Date(startsAt);
|
|
45356
|
-
const end = new Date(endsAt);
|
|
45357
|
-
const parts = (value) => new Intl.DateTimeFormat(locale, {
|
|
45358
|
-
timeZone,
|
|
45359
|
-
day: "numeric",
|
|
45360
|
-
month: "short",
|
|
45361
|
-
year: "numeric"
|
|
45362
|
-
}).formatToParts(value);
|
|
45363
|
-
const part = (value, type) => parts(value).find((entry) => entry.type === type)?.value.replace(/^Sept$/, "Sep") ?? "";
|
|
45364
|
-
const sameMonth = part(start, "month") === part(end, "month") && part(start, "year") === part(end, "year");
|
|
45365
|
-
const year = (value) => part(value, "year") === part(now, "year") ? "" : ` ${part(value, "year")}`;
|
|
45366
|
-
const date = (value) => `${part(value, "day")} ${part(value, "month")}${year(value)}`;
|
|
45367
|
-
return sameMonth ? `${part(start, "day")}–${date(end)}` : `${date(start)} – ${date(end)}`;
|
|
45368
|
-
}
|
|
45369
45573
|
function offeringAvailability(event) {
|
|
45370
45574
|
const label = formatEventRemainingPlaces(event, { full: "Sold out" });
|
|
45371
45575
|
const availability = getEventAvailabilityStatus(event);
|
|
@@ -58088,7 +58292,7 @@ const FormNodeSSR = ({ blockId, lookSlots, value, submitLabel, successMessage, c
|
|
|
58088
58292
|
/* @__PURE__ */ jsx("input", {
|
|
58089
58293
|
type: "text",
|
|
58090
58294
|
name: "company",
|
|
58091
|
-
className: "hidden",
|
|
58295
|
+
className: "rb-hidden",
|
|
58092
58296
|
tabIndex: -1,
|
|
58093
58297
|
autoComplete: "off"
|
|
58094
58298
|
}),
|
|
@@ -58309,7 +58513,7 @@ function NewsletterFormSSR(props) {
|
|
|
58309
58513
|
/* @__PURE__ */ jsx("input", {
|
|
58310
58514
|
type: "text",
|
|
58311
58515
|
name: "website",
|
|
58312
|
-
className: "hidden",
|
|
58516
|
+
className: "rb-hidden",
|
|
58313
58517
|
tabIndex: -1,
|
|
58314
58518
|
autoComplete: "off",
|
|
58315
58519
|
"aria-hidden": "true"
|
|
@@ -68865,218 +69069,212 @@ const weeklySlotAvailabilityBlockDefinition = {
|
|
|
68865
69069
|
} }
|
|
68866
69070
|
};
|
|
68867
69071
|
//#endregion
|
|
68868
|
-
//#region ../blocks/src/system/
|
|
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
|
-
|
|
68999
|
-
|
|
69000
|
-
|
|
69001
|
-
|
|
69002
|
-
|
|
69003
|
-
|
|
69004
|
-
|
|
69005
|
-
|
|
69006
|
-
|
|
69007
|
-
|
|
69008
|
-
|
|
69009
|
-
|
|
69010
|
-
|
|
69011
|
-
|
|
69012
|
-
|
|
69013
|
-
|
|
69014
|
-
|
|
69015
|
-
id: "showAcceptedMemberships",
|
|
69016
|
-
type: "boolean",
|
|
69017
|
-
label: "Show accepted memberships",
|
|
69018
|
-
description: "Display memberships that grant access to this event",
|
|
69019
|
-
required: false,
|
|
69020
|
-
defaultValue: true,
|
|
69021
|
-
ui: { intent: "display" }
|
|
69022
|
-
}
|
|
69023
|
-
],
|
|
69024
|
-
layout: [styledSection({
|
|
69025
|
-
baseClass: "",
|
|
69026
|
-
spacing: "spacious",
|
|
69027
|
-
children: sectionContainer([text({ as: "h2" }, bind("content.heading"), when("content.heading")), el("event-details", {
|
|
69028
|
-
entryTitle: { $bind: {
|
|
69029
|
-
from: "$root.contentEntry.title",
|
|
69030
|
-
fallback: null
|
|
69031
|
-
} },
|
|
69032
|
-
arrangement: { $bind: { from: "content._effectiveLook.look.structure.byMode.default" } },
|
|
69033
|
-
actionSize: { $bind: { from: "content._effectiveLook.look.structure.actionSize" } },
|
|
69034
|
-
lookSlots: { $bind: { from: "content._lookSlots" } },
|
|
69035
|
-
itemSurfaces: { $bind: { from: "content._effectiveLook.itemSurfaces" } },
|
|
69036
|
-
panelHeading: { $bind: { from: "content._lookPanelHeading" } },
|
|
69037
|
-
occurrenceContext: { $bind: {
|
|
69038
|
-
from: "$root.occurrenceContext",
|
|
69039
|
-
fallback: null
|
|
69040
|
-
} },
|
|
69041
|
-
subject: { $bind: {
|
|
69042
|
-
from: "$root.subject",
|
|
69043
|
-
fallback: null
|
|
69044
|
-
} },
|
|
69045
|
-
events: { $bind: { from: "data.eventDetailsData.events" } },
|
|
69046
|
-
showVenue: { $bind: { from: "content.showVenue" } },
|
|
69047
|
-
showTitle: { $bind: { from: "content.showTitle" } },
|
|
69048
|
-
showDescription: { $bind: { from: "content.showDescription" } },
|
|
69049
|
-
showMap: { $bind: { from: "content.showMap" } },
|
|
69050
|
-
showOtherDates: { $bind: { from: "content.showOtherDates" } },
|
|
69051
|
-
otherDatesLimit: { $bind: {
|
|
69052
|
-
from: "content.otherDatesLimit",
|
|
69053
|
-
fallback: "5"
|
|
69054
|
-
} },
|
|
69055
|
-
showCost: { $bind: {
|
|
69056
|
-
from: "content.showCost",
|
|
69057
|
-
fallback: true
|
|
69058
|
-
} },
|
|
69059
|
-
showCapacity: { $bind: {
|
|
69060
|
-
from: "content.showCapacity",
|
|
69061
|
-
fallback: false
|
|
69062
|
-
} },
|
|
69063
|
-
showAcceptedPasses: { $bind: {
|
|
69064
|
-
from: "content.showAcceptedPasses",
|
|
69065
|
-
fallback: true
|
|
69066
|
-
} },
|
|
69067
|
-
showAcceptedMemberships: { $bind: {
|
|
69068
|
-
from: "content.showAcceptedMemberships",
|
|
69069
|
-
fallback: true
|
|
69070
|
-
} },
|
|
69071
|
-
sitePasses: { $bind: { from: "data.eventDetailsData.sitePasses" } },
|
|
69072
|
-
siteMemberships: { $bind: { from: "data.eventDetailsData.siteMemberships" } },
|
|
69073
|
-
autoApplyDiscount: { $bind: {
|
|
69074
|
-
from: "data.eventDetailsData.autoApplyDiscount",
|
|
69075
|
-
fallback: null
|
|
69076
|
-
} }
|
|
69077
|
-
})], { gap: "lg" })
|
|
69078
|
-
})]
|
|
69072
|
+
//#region ../blocks/src/system/runtime/api/schemas/events.ts
|
|
69073
|
+
const uuid = z$1.string().uuid();
|
|
69074
|
+
const eventRegistrationStatusReferenceSchema = z$1.discriminatedUnion("scope", [z$1.object({
|
|
69075
|
+
scope: z$1.literal("occurrence"),
|
|
69076
|
+
attendeeId: uuid
|
|
69077
|
+
}).strict(), z$1.object({
|
|
69078
|
+
scope: z$1.literal("wholeSeries"),
|
|
69079
|
+
registrationId: uuid
|
|
69080
|
+
}).strict()]);
|
|
69081
|
+
const eventRegistrationPaymentSubjectSchema = z$1.discriminatedUnion("scope", [z$1.object({
|
|
69082
|
+
scope: z$1.literal("occurrence"),
|
|
69083
|
+
submissionId: uuid,
|
|
69084
|
+
attendeeId: uuid
|
|
69085
|
+
}).strict(), z$1.object({
|
|
69086
|
+
scope: z$1.literal("wholeSeries"),
|
|
69087
|
+
submissionId: uuid
|
|
69088
|
+
}).strict()]);
|
|
69089
|
+
const identityFields = {
|
|
69090
|
+
submissionId: uuid,
|
|
69091
|
+
seriesId: uuid,
|
|
69092
|
+
attendanceMode: z$1.enum(["in_person", "online"])
|
|
69093
|
+
};
|
|
69094
|
+
const confirmedBookingIdentitySchema = z$1.discriminatedUnion("scope", [z$1.object({
|
|
69095
|
+
scope: z$1.literal("occurrence"),
|
|
69096
|
+
attendeeId: uuid,
|
|
69097
|
+
occurrenceId: uuid,
|
|
69098
|
+
...identityFields
|
|
69099
|
+
}).strict(), z$1.object({
|
|
69100
|
+
scope: z$1.literal("wholeSeries"),
|
|
69101
|
+
registrationId: uuid,
|
|
69102
|
+
...identityFields
|
|
69103
|
+
}).strict()]);
|
|
69104
|
+
const bookedTicketLineSchema = z$1.object({
|
|
69105
|
+
label: z$1.string().min(1),
|
|
69106
|
+
quantity: z$1.number().int().positive()
|
|
69107
|
+
}).strict();
|
|
69108
|
+
const eventBookingOutcomeSchema = z$1.discriminatedUnion("kind", [z$1.object({
|
|
69109
|
+
kind: z$1.literal("detailsAvailable"),
|
|
69110
|
+
identity: confirmedBookingIdentitySchema,
|
|
69111
|
+
ticketLines: z$1.tuple([bookedTicketLineSchema]).rest(bookedTicketLineSchema).readonly(),
|
|
69112
|
+
payment: confirmationPaymentSchema
|
|
69113
|
+
}).strict(), z$1.object({
|
|
69114
|
+
kind: z$1.literal("detailsUnavailable"),
|
|
69115
|
+
identity: confirmedBookingIdentitySchema
|
|
69116
|
+
}).strict()]);
|
|
69117
|
+
const eventEmbeddedCheckoutSchema = z$1.object({
|
|
69118
|
+
kind: z$1.literal("embedded"),
|
|
69119
|
+
sessionId: z$1.string().min(1),
|
|
69120
|
+
clientSecret: z$1.string().min(1),
|
|
69121
|
+
livemode: z$1.boolean(),
|
|
69122
|
+
expiresAt: z$1.string().datetime({ offset: true }),
|
|
69123
|
+
browser: z$1.discriminatedUnion("kind", [z$1.object({
|
|
69124
|
+
kind: z$1.literal("connect"),
|
|
69125
|
+
publishableKey: z$1.string().min(1),
|
|
69126
|
+
accountId: z$1.string().min(1)
|
|
69127
|
+
}).strict(), z$1.object({
|
|
69128
|
+
kind: z$1.literal("direct"),
|
|
69129
|
+
publishableKey: z$1.string().min(1)
|
|
69130
|
+
}).strict()])
|
|
69131
|
+
}).strict();
|
|
69132
|
+
const decorations = {
|
|
69133
|
+
mailingListSignupNote: z$1.enum(["confirmation_required", "not_confirmed"]).optional(),
|
|
69134
|
+
demoBookingPass: z$1.string().optional()
|
|
69135
|
+
};
|
|
69136
|
+
const eventRegistrationSummarySchema = z$1.object({
|
|
69137
|
+
message: z$1.string(),
|
|
69138
|
+
passCreditsRemaining: z$1.number().int().nonnegative().optional()
|
|
69139
|
+
}).strict();
|
|
69140
|
+
z$1.discriminatedUnion("kind", [
|
|
69141
|
+
z$1.object({
|
|
69142
|
+
kind: z$1.literal("bookingComplete"),
|
|
69143
|
+
outcome: eventBookingOutcomeSchema,
|
|
69144
|
+
summary: eventRegistrationSummarySchema,
|
|
69145
|
+
...decorations
|
|
69146
|
+
}).strict(),
|
|
69147
|
+
z$1.object({
|
|
69148
|
+
kind: z$1.literal("checkoutRequired"),
|
|
69149
|
+
reference: eventRegistrationStatusReferenceSchema,
|
|
69150
|
+
checkout: eventEmbeddedCheckoutSchema,
|
|
69151
|
+
submissionId: uuid,
|
|
69152
|
+
...decorations
|
|
69153
|
+
}).strict(),
|
|
69154
|
+
z$1.object({
|
|
69155
|
+
kind: z$1.literal("paymentStatusRequired"),
|
|
69156
|
+
subject: eventRegistrationPaymentSubjectSchema,
|
|
69157
|
+
...decorations
|
|
69158
|
+
}).strict(),
|
|
69159
|
+
z$1.object({
|
|
69160
|
+
kind: z$1.literal("waitlisted"),
|
|
69161
|
+
waitlist: z$1.object({
|
|
69162
|
+
reference: z$1.union([z$1.object({
|
|
69163
|
+
scope: z$1.literal("occurrence"),
|
|
69164
|
+
attendeeId: uuid
|
|
69165
|
+
}).strict(), z$1.object({
|
|
69166
|
+
scope: z$1.enum(["occurrence", "wholeSeries"]),
|
|
69167
|
+
waitlistEntryId: uuid
|
|
69168
|
+
}).strict()]),
|
|
69169
|
+
position: z$1.number().int().nonnegative().nullable(),
|
|
69170
|
+
message: z$1.string(),
|
|
69171
|
+
emailFollowupMessage: z$1.string().optional()
|
|
69172
|
+
}).strict(),
|
|
69173
|
+
...decorations
|
|
69174
|
+
}).strict()
|
|
69175
|
+
]);
|
|
69176
|
+
const checkoutStatusArms = [
|
|
69177
|
+
z$1.object({
|
|
69178
|
+
kind: z$1.literal("resolved"),
|
|
69179
|
+
outcome: eventBookingOutcomeSchema
|
|
69180
|
+
}).strict(),
|
|
69181
|
+
z$1.object({ kind: z$1.literal("abandoned") }).strict(),
|
|
69182
|
+
z$1.object({ kind: z$1.literal("reconciliationRequired") }).strict(),
|
|
69183
|
+
z$1.object({
|
|
69184
|
+
kind: z$1.literal("paymentProcessing"),
|
|
69185
|
+
recoverableUntil: z$1.string().optional()
|
|
69186
|
+
}).strict(),
|
|
69187
|
+
z$1.object({
|
|
69188
|
+
kind: z$1.literal("paymentAvailable"),
|
|
69189
|
+
checkout: eventEmbeddedCheckoutSchema,
|
|
69190
|
+
recoverableUntil: z$1.string().optional()
|
|
69191
|
+
}).strict(),
|
|
69192
|
+
z$1.object({
|
|
69193
|
+
kind: z$1.literal("paymentRetryAvailable"),
|
|
69194
|
+
place: z$1.enum(["held", "released"])
|
|
69195
|
+
}).strict(),
|
|
69196
|
+
z$1.object({
|
|
69197
|
+
kind: z$1.literal("paymentCheckUnavailable"),
|
|
69198
|
+
recoverableUntil: z$1.string().optional()
|
|
69199
|
+
}).strict(),
|
|
69200
|
+
z$1.object({ kind: z$1.literal("paymentAssistanceRequired") }).strict()
|
|
69201
|
+
];
|
|
69202
|
+
z$1.discriminatedUnion("kind", [...checkoutStatusArms, z$1.object({ kind: z$1.literal("notFound") }).strict()]);
|
|
69203
|
+
z$1.discriminatedUnion("kind", [
|
|
69204
|
+
z$1.object({
|
|
69205
|
+
kind: z$1.literal("checkout"),
|
|
69206
|
+
subject: eventRegistrationPaymentSubjectSchema,
|
|
69207
|
+
outcome: z$1.discriminatedUnion("kind", checkoutStatusArms)
|
|
69208
|
+
}).strict(),
|
|
69209
|
+
z$1.object({ kind: z$1.literal("notFound") }).strict(),
|
|
69210
|
+
z$1.object({ kind: z$1.literal("reconciliationRequired") }).strict()
|
|
69211
|
+
]).superRefine((response, ctx) => {
|
|
69212
|
+
if (response.kind !== "checkout" || response.outcome.kind !== "resolved") return;
|
|
69213
|
+
const identity = response.outcome.outcome.identity;
|
|
69214
|
+
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({
|
|
69215
|
+
code: "custom",
|
|
69216
|
+
message: "Confirmed booking does not match checkout subject",
|
|
69217
|
+
path: ["outcome"]
|
|
69218
|
+
});
|
|
69079
69219
|
});
|
|
69220
|
+
const checkoutDecorations = { mailingListSignupNote: decorations.mailingListSignupNote };
|
|
69221
|
+
z$1.union([
|
|
69222
|
+
z$1.object({
|
|
69223
|
+
kind: z$1.literal("completed"),
|
|
69224
|
+
scope: z$1.literal("occurrence"),
|
|
69225
|
+
outcome: eventBookingOutcomeSchema,
|
|
69226
|
+
...checkoutDecorations
|
|
69227
|
+
}).strict(),
|
|
69228
|
+
z$1.object({
|
|
69229
|
+
kind: z$1.literal("completed"),
|
|
69230
|
+
scope: z$1.literal("wholeSeries"),
|
|
69231
|
+
outcome: eventBookingOutcomeSchema,
|
|
69232
|
+
...checkoutDecorations
|
|
69233
|
+
}).strict(),
|
|
69234
|
+
z$1.object({
|
|
69235
|
+
kind: z$1.literal("checkoutRequired"),
|
|
69236
|
+
scope: z$1.literal("occurrence"),
|
|
69237
|
+
attendeeId: uuid,
|
|
69238
|
+
checkout: eventEmbeddedCheckoutSchema,
|
|
69239
|
+
...checkoutDecorations
|
|
69240
|
+
}).strict(),
|
|
69241
|
+
z$1.object({
|
|
69242
|
+
kind: z$1.literal("checkoutRequired"),
|
|
69243
|
+
scope: z$1.literal("wholeSeries"),
|
|
69244
|
+
registrationId: uuid,
|
|
69245
|
+
checkoutAttemptId: uuid,
|
|
69246
|
+
checkout: eventEmbeddedCheckoutSchema,
|
|
69247
|
+
recoverableUntil: z$1.string().optional(),
|
|
69248
|
+
...checkoutDecorations
|
|
69249
|
+
}).strict(),
|
|
69250
|
+
z$1.object({
|
|
69251
|
+
scope: z$1.literal("wholeSeries"),
|
|
69252
|
+
status: z$1.literal("paymentStatusRequired"),
|
|
69253
|
+
checkoutAttemptId: uuid,
|
|
69254
|
+
recoverableUntil: z$1.string().optional(),
|
|
69255
|
+
...checkoutDecorations
|
|
69256
|
+
}).strict(),
|
|
69257
|
+
z$1.object({
|
|
69258
|
+
scope: z$1.literal("wholeSeries"),
|
|
69259
|
+
status: z$1.literal("waitlist"),
|
|
69260
|
+
waitlistEntryId: uuid,
|
|
69261
|
+
waitlistPosition: z$1.number().int().nonnegative().nullable(),
|
|
69262
|
+
alreadyRegistered: z$1.boolean().optional(),
|
|
69263
|
+
...checkoutDecorations
|
|
69264
|
+
}).strict()
|
|
69265
|
+
]).superRefine((response, ctx) => {
|
|
69266
|
+
if ("kind" in response && response.kind === "completed" && response.scope !== response.outcome.identity.scope) ctx.addIssue({
|
|
69267
|
+
code: "custom",
|
|
69268
|
+
message: "Confirmed booking scope mismatch",
|
|
69269
|
+
path: [
|
|
69270
|
+
"outcome",
|
|
69271
|
+
"identity",
|
|
69272
|
+
"scope"
|
|
69273
|
+
]
|
|
69274
|
+
});
|
|
69275
|
+
});
|
|
69276
|
+
//#endregion
|
|
69277
|
+
//#region ../blocks/src/contracts/events.ts
|
|
69080
69278
|
const eventAutoApplyDiscountPreviewBaseSchema = z$1.object({
|
|
69081
69279
|
id: z$1.string(),
|
|
69082
69280
|
publicLabel: z$1.string(),
|
|
@@ -69093,7 +69291,207 @@ const eventAutoApplyDiscountPreviewSchema = z$1.discriminatedUnion("discountType
|
|
|
69093
69291
|
discountAmountCents: z$1.number()
|
|
69094
69292
|
})]);
|
|
69095
69293
|
const eventDetailsBlockDefinition = {
|
|
69096
|
-
manifest:
|
|
69294
|
+
manifest: createBlockManifest({
|
|
69295
|
+
variantMeaning: {
|
|
69296
|
+
kind: "arrangement",
|
|
69297
|
+
lookOnlyKeys: ["event-header", "details-panel"]
|
|
69298
|
+
},
|
|
69299
|
+
id: "block.event-details",
|
|
69300
|
+
version: "1.0.0",
|
|
69301
|
+
title: "Event Details",
|
|
69302
|
+
titleSource: "heading",
|
|
69303
|
+
description: "Date/time, venue, map, and other dates for an event",
|
|
69304
|
+
category: "content",
|
|
69305
|
+
contentSource: { kind: "entries" },
|
|
69306
|
+
tags: [
|
|
69307
|
+
"events",
|
|
69308
|
+
"venue",
|
|
69309
|
+
"map",
|
|
69310
|
+
"schedule",
|
|
69311
|
+
"dates"
|
|
69312
|
+
],
|
|
69313
|
+
icon: "MapPin",
|
|
69314
|
+
styleTokens: {
|
|
69315
|
+
background: "surface",
|
|
69316
|
+
typography: "body",
|
|
69317
|
+
spacing: "md"
|
|
69318
|
+
},
|
|
69319
|
+
behaviours: {
|
|
69320
|
+
supportsThemeSwitching: true,
|
|
69321
|
+
inlineEditing: false,
|
|
69322
|
+
animation: false,
|
|
69323
|
+
paletteHidden: false
|
|
69324
|
+
},
|
|
69325
|
+
additionalFields: [
|
|
69326
|
+
{
|
|
69327
|
+
id: "heading",
|
|
69328
|
+
type: "text",
|
|
69329
|
+
label: "Heading",
|
|
69330
|
+
description: "Optional heading shown above event details",
|
|
69331
|
+
required: false,
|
|
69332
|
+
multiline: false,
|
|
69333
|
+
defaultValue: "Event details"
|
|
69334
|
+
},
|
|
69335
|
+
{
|
|
69336
|
+
id: "showVenue",
|
|
69337
|
+
type: "boolean",
|
|
69338
|
+
label: "Show venue",
|
|
69339
|
+
required: false,
|
|
69340
|
+
defaultValue: true,
|
|
69341
|
+
ui: { intent: "display" }
|
|
69342
|
+
},
|
|
69343
|
+
{
|
|
69344
|
+
id: "showTitle",
|
|
69345
|
+
type: "boolean",
|
|
69346
|
+
label: "Show event title",
|
|
69347
|
+
required: false,
|
|
69348
|
+
defaultValue: false,
|
|
69349
|
+
ui: { intent: "display" }
|
|
69350
|
+
},
|
|
69351
|
+
{
|
|
69352
|
+
id: "showDescription",
|
|
69353
|
+
type: "boolean",
|
|
69354
|
+
label: "Show event description",
|
|
69355
|
+
required: false,
|
|
69356
|
+
defaultValue: false,
|
|
69357
|
+
ui: { intent: "display" }
|
|
69358
|
+
},
|
|
69359
|
+
{
|
|
69360
|
+
id: "showMap",
|
|
69361
|
+
type: "boolean",
|
|
69362
|
+
label: "Show map",
|
|
69363
|
+
description: "Embed a map when the venue has coordinates",
|
|
69364
|
+
required: false,
|
|
69365
|
+
defaultValue: true,
|
|
69366
|
+
ui: { intent: "display" }
|
|
69367
|
+
},
|
|
69368
|
+
{
|
|
69369
|
+
id: "showOtherDates",
|
|
69370
|
+
type: "boolean",
|
|
69371
|
+
label: "Show other dates",
|
|
69372
|
+
required: false,
|
|
69373
|
+
defaultValue: true,
|
|
69374
|
+
ui: { intent: "display" }
|
|
69375
|
+
},
|
|
69376
|
+
{
|
|
69377
|
+
id: "otherDatesLimit",
|
|
69378
|
+
type: "select",
|
|
69379
|
+
label: "Other dates limit",
|
|
69380
|
+
required: false,
|
|
69381
|
+
multiple: false,
|
|
69382
|
+
defaultValue: "5",
|
|
69383
|
+
options: [
|
|
69384
|
+
{
|
|
69385
|
+
value: "3",
|
|
69386
|
+
label: "3 dates"
|
|
69387
|
+
},
|
|
69388
|
+
{
|
|
69389
|
+
value: "5",
|
|
69390
|
+
label: "5 dates"
|
|
69391
|
+
},
|
|
69392
|
+
{
|
|
69393
|
+
value: "10",
|
|
69394
|
+
label: "10 dates"
|
|
69395
|
+
},
|
|
69396
|
+
{
|
|
69397
|
+
value: "all",
|
|
69398
|
+
label: "All dates"
|
|
69399
|
+
}
|
|
69400
|
+
],
|
|
69401
|
+
ui: { intent: "display" }
|
|
69402
|
+
},
|
|
69403
|
+
{
|
|
69404
|
+
id: "showCapacity",
|
|
69405
|
+
type: "boolean",
|
|
69406
|
+
label: "Show capacity",
|
|
69407
|
+
required: false,
|
|
69408
|
+
defaultValue: false,
|
|
69409
|
+
ui: { intent: "display" }
|
|
69410
|
+
},
|
|
69411
|
+
{
|
|
69412
|
+
id: "showCost",
|
|
69413
|
+
type: "boolean",
|
|
69414
|
+
label: "Show cost",
|
|
69415
|
+
description: "Display ticket price for paid events",
|
|
69416
|
+
required: false,
|
|
69417
|
+
defaultValue: true,
|
|
69418
|
+
ui: { intent: "display" }
|
|
69419
|
+
},
|
|
69420
|
+
{
|
|
69421
|
+
id: "showAcceptedPasses",
|
|
69422
|
+
type: "boolean",
|
|
69423
|
+
label: "Show accepted passes",
|
|
69424
|
+
description: "Display passes that can be used for this event",
|
|
69425
|
+
required: false,
|
|
69426
|
+
defaultValue: true,
|
|
69427
|
+
ui: { intent: "display" }
|
|
69428
|
+
},
|
|
69429
|
+
{
|
|
69430
|
+
id: "showAcceptedMemberships",
|
|
69431
|
+
type: "boolean",
|
|
69432
|
+
label: "Show accepted memberships",
|
|
69433
|
+
description: "Display memberships that grant access to this event",
|
|
69434
|
+
required: false,
|
|
69435
|
+
defaultValue: true,
|
|
69436
|
+
ui: { intent: "display" }
|
|
69437
|
+
}
|
|
69438
|
+
],
|
|
69439
|
+
layout: [styledSection({
|
|
69440
|
+
baseClass: "",
|
|
69441
|
+
spacing: "spacious",
|
|
69442
|
+
children: sectionContainer([text({ as: "h2" }, bind("content.heading"), when("content.heading")), el("event-details", {
|
|
69443
|
+
entryTitle: { $bind: {
|
|
69444
|
+
from: "$root.contentEntry.title",
|
|
69445
|
+
fallback: null
|
|
69446
|
+
} },
|
|
69447
|
+
arrangement: { $bind: { from: "content._effectiveLook.look.structure.byMode.default" } },
|
|
69448
|
+
actionSize: { $bind: { from: "content._effectiveLook.look.structure.actionSize" } },
|
|
69449
|
+
lookSlots: { $bind: { from: "content._lookSlots" } },
|
|
69450
|
+
itemSurfaces: { $bind: { from: "content._effectiveLook.itemSurfaces" } },
|
|
69451
|
+
panelHeading: { $bind: { from: "content._lookPanelHeading" } },
|
|
69452
|
+
occurrenceContext: { $bind: {
|
|
69453
|
+
from: "$root.occurrenceContext",
|
|
69454
|
+
fallback: null
|
|
69455
|
+
} },
|
|
69456
|
+
subject: { $bind: {
|
|
69457
|
+
from: "$root.subject",
|
|
69458
|
+
fallback: null
|
|
69459
|
+
} },
|
|
69460
|
+
events: { $bind: { from: "data.eventDetailsData.events" } },
|
|
69461
|
+
showVenue: { $bind: { from: "content.showVenue" } },
|
|
69462
|
+
showTitle: { $bind: { from: "content.showTitle" } },
|
|
69463
|
+
showDescription: { $bind: { from: "content.showDescription" } },
|
|
69464
|
+
showMap: { $bind: { from: "content.showMap" } },
|
|
69465
|
+
showOtherDates: { $bind: { from: "content.showOtherDates" } },
|
|
69466
|
+
otherDatesLimit: { $bind: {
|
|
69467
|
+
from: "content.otherDatesLimit",
|
|
69468
|
+
fallback: "5"
|
|
69469
|
+
} },
|
|
69470
|
+
showCost: { $bind: {
|
|
69471
|
+
from: "content.showCost",
|
|
69472
|
+
fallback: true
|
|
69473
|
+
} },
|
|
69474
|
+
showCapacity: { $bind: {
|
|
69475
|
+
from: "content.showCapacity",
|
|
69476
|
+
fallback: false
|
|
69477
|
+
} },
|
|
69478
|
+
showAcceptedPasses: { $bind: {
|
|
69479
|
+
from: "content.showAcceptedPasses",
|
|
69480
|
+
fallback: true
|
|
69481
|
+
} },
|
|
69482
|
+
showAcceptedMemberships: { $bind: {
|
|
69483
|
+
from: "content.showAcceptedMemberships",
|
|
69484
|
+
fallback: true
|
|
69485
|
+
} },
|
|
69486
|
+
sitePasses: { $bind: { from: "data.eventDetailsData.sitePasses" } },
|
|
69487
|
+
siteMemberships: { $bind: { from: "data.eventDetailsData.siteMemberships" } },
|
|
69488
|
+
autoApplyDiscount: { $bind: {
|
|
69489
|
+
from: "data.eventDetailsData.autoApplyDiscount",
|
|
69490
|
+
fallback: null
|
|
69491
|
+
} }
|
|
69492
|
+
})], { gap: "lg" })
|
|
69493
|
+
})]
|
|
69494
|
+
}),
|
|
69097
69495
|
dataSchemas: {
|
|
69098
69496
|
eventDetailsData: z$1.object({
|
|
69099
69497
|
events: publicEventsArraySchema,
|
|
@@ -86092,6 +86490,256 @@ const containerResponsiveThemeCss = `/*
|
|
|
86092
86490
|
/* Styles for SSR placeholder */
|
|
86093
86491
|
}
|
|
86094
86492
|
|
|
86493
|
+
/* Reserved portal ticket and digital-product pages.
|
|
86494
|
+
* These render without site chrome, so the page itself sits on the site
|
|
86495
|
+
* background (from the surrounding theme scope) and the card mirrors .cp-login. */
|
|
86496
|
+
:where(.theme-scope) :where([data-block="customer-portal"]).cp-page {
|
|
86497
|
+
box-sizing: border-box;
|
|
86498
|
+
min-height: 100vh;
|
|
86499
|
+
padding: 2.5rem 1rem;
|
|
86500
|
+
color: var(--cp-text);
|
|
86501
|
+
font-family: var(--font-body);
|
|
86502
|
+
font-size: var(--fs-body);
|
|
86503
|
+
}
|
|
86504
|
+
|
|
86505
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-card {
|
|
86506
|
+
box-sizing: border-box;
|
|
86507
|
+
width: 100%;
|
|
86508
|
+
max-width: 42rem;
|
|
86509
|
+
margin-inline: auto;
|
|
86510
|
+
padding: 2rem;
|
|
86511
|
+
border: 1px solid var(--cp-card-border);
|
|
86512
|
+
border-radius: var(--cp-card-radius);
|
|
86513
|
+
background: var(--cp-card-bg);
|
|
86514
|
+
color: var(--cp-text);
|
|
86515
|
+
--rb-surface-text-color: var(--cp-text);
|
|
86516
|
+
--rb-surface-heading-color: var(--cp-text);
|
|
86517
|
+
--rb-surface-link-color: var(--cp-primary);
|
|
86518
|
+
--rb-surface-link-hover-color: var(--rb-prose-link-hover-color, var(--cp-primary));
|
|
86519
|
+
--rb-surface-supporting-color: var(--cp-muted);
|
|
86520
|
+
}
|
|
86521
|
+
|
|
86522
|
+
:where(.theme-scope)
|
|
86523
|
+
:where([data-block="customer-portal"])
|
|
86524
|
+
.cp-page-card--compact {
|
|
86525
|
+
max-width: 480px;
|
|
86526
|
+
}
|
|
86527
|
+
|
|
86528
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket {
|
|
86529
|
+
max-width: 40rem;
|
|
86530
|
+
}
|
|
86531
|
+
|
|
86532
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-title {
|
|
86533
|
+
margin: 0;
|
|
86534
|
+
font-size: var(--fs-h3, 1.5rem);
|
|
86535
|
+
line-height: 1.2;
|
|
86536
|
+
}
|
|
86537
|
+
|
|
86538
|
+
/* The sign-in card's title is the page heading here, so it is an h1 sized like
|
|
86539
|
+
* the main portal's sign-in heading. */
|
|
86540
|
+
:where(.theme-scope)
|
|
86541
|
+
:where([data-block="customer-portal"]).cp-page
|
|
86542
|
+
.cp-login__title {
|
|
86543
|
+
font-size: var(--fs-h2, 2rem);
|
|
86544
|
+
line-height: 1.15;
|
|
86545
|
+
}
|
|
86546
|
+
|
|
86547
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-subtitle {
|
|
86548
|
+
margin: 0;
|
|
86549
|
+
font-size: 1.25rem;
|
|
86550
|
+
line-height: 1.3;
|
|
86551
|
+
}
|
|
86552
|
+
|
|
86553
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-copy {
|
|
86554
|
+
margin-top: 0.75rem;
|
|
86555
|
+
}
|
|
86556
|
+
|
|
86557
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-copy p {
|
|
86558
|
+
margin: 0;
|
|
86559
|
+
}
|
|
86560
|
+
|
|
86561
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-hint {
|
|
86562
|
+
margin: 0.25rem 0 0;
|
|
86563
|
+
color: var(--cp-muted);
|
|
86564
|
+
font-size: 0.875rem;
|
|
86565
|
+
}
|
|
86566
|
+
|
|
86567
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-stack,
|
|
86568
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-files,
|
|
86569
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-details {
|
|
86570
|
+
display: grid;
|
|
86571
|
+
gap: 0.75rem;
|
|
86572
|
+
}
|
|
86573
|
+
|
|
86574
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-details {
|
|
86575
|
+
gap: 0.25rem;
|
|
86576
|
+
font-size: 0.9375rem;
|
|
86577
|
+
}
|
|
86578
|
+
|
|
86579
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-emphasis {
|
|
86580
|
+
margin: 0;
|
|
86581
|
+
font-family: inherit;
|
|
86582
|
+
font-size: inherit;
|
|
86583
|
+
font-style: normal;
|
|
86584
|
+
font-weight: 600;
|
|
86585
|
+
letter-spacing: normal;
|
|
86586
|
+
text-transform: none;
|
|
86587
|
+
}
|
|
86588
|
+
|
|
86589
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket__heading,
|
|
86590
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-file {
|
|
86591
|
+
display: flex;
|
|
86592
|
+
align-items: flex-start;
|
|
86593
|
+
justify-content: space-between;
|
|
86594
|
+
gap: 1rem;
|
|
86595
|
+
}
|
|
86596
|
+
|
|
86597
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket__body {
|
|
86598
|
+
display: grid;
|
|
86599
|
+
gap: 1.5rem;
|
|
86600
|
+
margin-top: 1.5rem;
|
|
86601
|
+
}
|
|
86602
|
+
|
|
86603
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket__qr {
|
|
86604
|
+
align-self: start;
|
|
86605
|
+
padding: 1rem;
|
|
86606
|
+
border: 1px solid var(--cp-card-border);
|
|
86607
|
+
border-radius: var(--cp-control-radius);
|
|
86608
|
+
background: var(--cp-card-bg);
|
|
86609
|
+
}
|
|
86610
|
+
|
|
86611
|
+
:where(.theme-scope)
|
|
86612
|
+
:where([data-block="customer-portal"])
|
|
86613
|
+
.cp-ticket__qr-image {
|
|
86614
|
+
display: block;
|
|
86615
|
+
width: 176px;
|
|
86616
|
+
height: 176px;
|
|
86617
|
+
max-width: 100%;
|
|
86618
|
+
}
|
|
86619
|
+
|
|
86620
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket__code-row {
|
|
86621
|
+
display: flex;
|
|
86622
|
+
flex-wrap: wrap;
|
|
86623
|
+
align-items: center;
|
|
86624
|
+
gap: 0.5rem;
|
|
86625
|
+
}
|
|
86626
|
+
|
|
86627
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket__code {
|
|
86628
|
+
flex: 1 1 12rem;
|
|
86629
|
+
min-width: 0;
|
|
86630
|
+
padding: 0.5rem 0.75rem;
|
|
86631
|
+
border: 1px solid var(--cp-card-border);
|
|
86632
|
+
border-radius: var(--cp-control-radius);
|
|
86633
|
+
background: rgb(var(--tb-background));
|
|
86634
|
+
overflow-wrap: anywhere;
|
|
86635
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
86636
|
+
font-size: 0.75rem;
|
|
86637
|
+
}
|
|
86638
|
+
|
|
86639
|
+
/* Copy sits beside the code rather than under it: some site styles draw the
|
|
86640
|
+
* secondary button as text with inline padding, which would otherwise leave
|
|
86641
|
+
* its label visibly indented from the code box's left edge. */
|
|
86642
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket__copy {
|
|
86643
|
+
flex: none;
|
|
86644
|
+
}
|
|
86645
|
+
|
|
86646
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-code {
|
|
86647
|
+
margin-top: 0.5rem;
|
|
86648
|
+
}
|
|
86649
|
+
|
|
86650
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-file {
|
|
86651
|
+
align-items: center;
|
|
86652
|
+
padding: 0.75rem 1rem;
|
|
86653
|
+
border: 1px solid var(--cp-card-border);
|
|
86654
|
+
border-radius: var(--cp-control-radius);
|
|
86655
|
+
color: var(--cp-text);
|
|
86656
|
+
text-decoration: none;
|
|
86657
|
+
transition: border-color 0.15s ease;
|
|
86658
|
+
}
|
|
86659
|
+
|
|
86660
|
+
:where(.theme-scope)
|
|
86661
|
+
:where([data-block="customer-portal"])
|
|
86662
|
+
.cp-page-file:hover {
|
|
86663
|
+
border-color: var(--cp-primary);
|
|
86664
|
+
}
|
|
86665
|
+
|
|
86666
|
+
:where(.theme-scope)
|
|
86667
|
+
:where([data-block="customer-portal"])
|
|
86668
|
+
.cp-page-file:focus-visible {
|
|
86669
|
+
outline: 2px solid var(--cp-primary);
|
|
86670
|
+
outline-offset: 2px;
|
|
86671
|
+
}
|
|
86672
|
+
|
|
86673
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-file .cp-page-hint {
|
|
86674
|
+
margin: 0;
|
|
86675
|
+
overflow-wrap: anywhere;
|
|
86676
|
+
text-align: right;
|
|
86677
|
+
}
|
|
86678
|
+
|
|
86679
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-link {
|
|
86680
|
+
color: var(--cp-primary);
|
|
86681
|
+
text-decoration: underline;
|
|
86682
|
+
text-underline-offset: 0.15em;
|
|
86683
|
+
}
|
|
86684
|
+
|
|
86685
|
+
@container rb-site (max-width: 640px) {
|
|
86686
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
86687
|
+
:where(.theme-scope:is(*, :scope)) :where([data-block="customer-portal"]).cp-page {
|
|
86688
|
+
padding: 1.5rem 1rem;
|
|
86689
|
+
}
|
|
86690
|
+
|
|
86691
|
+
:where(.theme-scope:is(*, :scope)) :where([data-block="customer-portal"]) .cp-page-card {
|
|
86692
|
+
padding: 1.5rem;
|
|
86693
|
+
}
|
|
86694
|
+
|
|
86695
|
+
:where(.theme-scope:is(*, :scope)) :where([data-block="customer-portal"]) .cp-page-file {
|
|
86696
|
+
flex-direction: column;
|
|
86697
|
+
align-items: flex-start;
|
|
86698
|
+
gap: 0.25rem;
|
|
86699
|
+
}
|
|
86700
|
+
|
|
86701
|
+
:where(.theme-scope:is(*, :scope))
|
|
86702
|
+
:where([data-block="customer-portal"])
|
|
86703
|
+
.cp-page-file
|
|
86704
|
+
.cp-page-hint {
|
|
86705
|
+
text-align: left;
|
|
86706
|
+
}
|
|
86707
|
+
}
|
|
86708
|
+
}
|
|
86709
|
+
|
|
86710
|
+
@container rb-site (min-width: 48rem) {
|
|
86711
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
86712
|
+
:where(.theme-scope:is(*, :scope)) :where([data-block="customer-portal"]) .cp-ticket__body {
|
|
86713
|
+
grid-template-columns: 210px 1fr;
|
|
86714
|
+
}
|
|
86715
|
+
}
|
|
86716
|
+
}
|
|
86717
|
+
|
|
86718
|
+
@media print {
|
|
86719
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-print-hidden {
|
|
86720
|
+
display: none;
|
|
86721
|
+
}
|
|
86722
|
+
|
|
86723
|
+
:where(.theme-scope) :where([data-block="customer-portal"]).cp-page {
|
|
86724
|
+
min-height: 0;
|
|
86725
|
+
padding: 0;
|
|
86726
|
+
}
|
|
86727
|
+
|
|
86728
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket,
|
|
86729
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket__qr {
|
|
86730
|
+
max-width: none;
|
|
86731
|
+
padding: 0;
|
|
86732
|
+
border: 0;
|
|
86733
|
+
border-radius: 0;
|
|
86734
|
+
box-shadow: none;
|
|
86735
|
+
}
|
|
86736
|
+
}
|
|
86737
|
+
|
|
86738
|
+
/* Preserve line breaks in the before-you-come instructions. */
|
|
86739
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-before-you-come__body {
|
|
86740
|
+
white-space: pre-wrap;
|
|
86741
|
+
}
|
|
86742
|
+
|
|
86095
86743
|
/* =============================================================================
|
|
86096
86744
|
* Runtime: Header Navigation Dropdown (Tailwind-free)
|
|
86097
86745
|
*
|
|
@@ -87782,9 +88430,18 @@ const containerResponsiveThemeCss = `/*
|
|
|
87782
88430
|
border-radius: 9999px;
|
|
87783
88431
|
}
|
|
87784
88432
|
|
|
88433
|
+
/*
|
|
88434
|
+
* Statement, copy and media: at tablet widths the statement takes the whole
|
|
88435
|
+
* first row and copy sits beside the media underneath; at desktop all three
|
|
88436
|
+
* share one row. The grid item is the title itself, or the heading-decoration
|
|
88437
|
+
* wrapper around it when the site style decorates headings, so both are
|
|
88438
|
+
* targeted. Without the wrapper case the title took a column of its own and
|
|
88439
|
+
* the media dropped to a lonely third row.
|
|
88440
|
+
*/
|
|
87785
88441
|
@container rb-site (min-width: 768px) {
|
|
87786
88442
|
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
87787
|
-
:where(.theme-scope:is(*, :scope)) [data-block="intro"][data-block-variant="statement-media"] .rb-intro-statement-media-title
|
|
88443
|
+
:where(.theme-scope:is(*, :scope)) [data-block="intro"][data-block-variant="statement-media"] .rb-intro-statement-media > .rb-intro-statement-media-title,
|
|
88444
|
+
:where(.theme-scope:is(*, :scope)) [data-block="intro"][data-block-variant="statement-media"] .rb-intro-statement-media > :has(> .rb-intro-statement-media-title) {
|
|
87788
88445
|
grid-column: 1 / -1;
|
|
87789
88446
|
}
|
|
87790
88447
|
}
|
|
@@ -87792,7 +88449,8 @@ const containerResponsiveThemeCss = `/*
|
|
|
87792
88449
|
|
|
87793
88450
|
@container rb-site (min-width: 1024px) {
|
|
87794
88451
|
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
87795
|
-
:where(.theme-scope:is(*, :scope)) [data-block="intro"][data-block-variant="statement-media"] .rb-intro-statement-media-title
|
|
88452
|
+
:where(.theme-scope:is(*, :scope)) [data-block="intro"][data-block-variant="statement-media"] .rb-intro-statement-media > .rb-intro-statement-media-title,
|
|
88453
|
+
:where(.theme-scope:is(*, :scope)) [data-block="intro"][data-block-variant="statement-media"] .rb-intro-statement-media > :has(> .rb-intro-statement-media-title) {
|
|
87796
88454
|
grid-column: auto;
|
|
87797
88455
|
}
|
|
87798
88456
|
}
|
|
@@ -103705,13 +104363,14 @@ const FIELD_TYPE_CLASSIFICATION = {
|
|
|
103705
104363
|
repeater: "whole",
|
|
103706
104364
|
presetOrCustom: "opaque",
|
|
103707
104365
|
contentTypeSelect: "opaque",
|
|
103708
|
-
entryPicker: "
|
|
104366
|
+
entryPicker: "leaf",
|
|
103709
104367
|
time: "opaque"
|
|
103710
104368
|
};
|
|
103711
104369
|
function classify(type) {
|
|
103712
104370
|
return FIELD_TYPE_CLASSIFICATION[type] ?? "unknown";
|
|
103713
104371
|
}
|
|
103714
104372
|
function leafToBlockFieldType(type) {
|
|
104373
|
+
if (type === "entryPicker") return "reference";
|
|
103715
104374
|
return classify(type) === "leaf" ? type : null;
|
|
103716
104375
|
}
|
|
103717
104376
|
/**
|
|
@@ -103723,10 +104382,11 @@ function collectLeaves(fields, prefix, out) {
|
|
|
103723
104382
|
for (const field of fields) {
|
|
103724
104383
|
const id = prefix ? `${prefix}.${field.id}` : field.id;
|
|
103725
104384
|
const cls = classify(field.type);
|
|
103726
|
-
|
|
104385
|
+
const leafType = leafToBlockFieldType(field.type);
|
|
104386
|
+
if (leafType) {
|
|
103727
104387
|
out.push({
|
|
103728
104388
|
id,
|
|
103729
|
-
type:
|
|
104389
|
+
type: leafType,
|
|
103730
104390
|
required: Boolean(field.required)
|
|
103731
104391
|
});
|
|
103732
104392
|
continue;
|