@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
package/dist/{SiteChromeCustomizeContext-BQ8vvKb-.mjs → SiteChromeCustomizeContext-3gmd26Mn.mjs}
RENAMED
|
@@ -368,6 +368,13 @@ function getDateTimeFormatter(locale, timeZone, format) {
|
|
|
368
368
|
dateTimeFormatterCache.set(key, formatter);
|
|
369
369
|
return formatter;
|
|
370
370
|
}
|
|
371
|
+
function formatIntlRange(formatter, start, end) {
|
|
372
|
+
const nativeFormatRange = Reflect.get(formatter, "formatRange");
|
|
373
|
+
if (typeof nativeFormatRange !== "function") throw new Error("Intl.DateTimeFormat.formatRange is required");
|
|
374
|
+
const output = Reflect.apply(nativeFormatRange, formatter, [start, end]);
|
|
375
|
+
if (typeof output !== "string") throw new Error("Intl.DateTimeFormat.formatRange returned a non-string value");
|
|
376
|
+
return output;
|
|
377
|
+
}
|
|
371
378
|
//#endregion
|
|
372
379
|
//#region ../core/src/booking-time-zone.ts
|
|
373
380
|
const TIME_ZONE_VALIDITY_CACHE_LIMIT = 100;
|
|
@@ -456,6 +463,11 @@ function resolveBookingTimeZoneId(...candidates) {
|
|
|
456
463
|
}
|
|
457
464
|
return FALLBACK_TIMEZONE;
|
|
458
465
|
}
|
|
466
|
+
/** Canonical business-zone admission, shared by server and public wire boundaries. */
|
|
467
|
+
const DEFAULT_BOOKING_BUSINESS_TIME_ZONE = "Europe/London";
|
|
468
|
+
function resolveBookingBusinessTimeZone(value) {
|
|
469
|
+
return resolveBookingTimeZoneId(value, DEFAULT_BOOKING_BUSINESS_TIME_ZONE);
|
|
470
|
+
}
|
|
459
471
|
function parseUtcIsoDateTimeString(value) {
|
|
460
472
|
const normalized = value.trim();
|
|
461
473
|
const hasUtcSuffix = normalized.endsWith("Z");
|
|
@@ -570,19 +582,26 @@ function formatBookingTime(input, format = {
|
|
|
570
582
|
* omission instead of depending on locale-specific spacing or punctuation.
|
|
571
583
|
* Callers must only use it for an English presentation contract.
|
|
572
584
|
*/
|
|
573
|
-
function formatBookingCompactEnglishTime(input) {
|
|
585
|
+
function formatBookingCompactEnglishTime(input, options = {}) {
|
|
574
586
|
const date = new Date(input.startsAt);
|
|
575
587
|
if (Number.isNaN(date.getTime())) return input.startsAt;
|
|
576
|
-
|
|
588
|
+
return compactEnglishClock(formatToPartsLookup(date, input.locale ?? "en-GB", input.timeZone, {
|
|
577
589
|
hour: "numeric",
|
|
578
590
|
minute: "2-digit",
|
|
579
|
-
hourCycle: "h12"
|
|
580
|
-
|
|
591
|
+
hourCycle: "h12",
|
|
592
|
+
...options.seconds === "include" ? { second: "2-digit" } : {}
|
|
593
|
+
}), options.seconds) ?? input.startsAt;
|
|
594
|
+
}
|
|
595
|
+
/** Precision and zero-minute omission are one decision for all compact clocks. */
|
|
596
|
+
function compactEnglishClock(parts, seconds) {
|
|
581
597
|
const hour = parts.get("hour");
|
|
582
598
|
const minute = parts.get("minute");
|
|
583
599
|
const dayPeriod = parts.get("dayPeriod");
|
|
584
|
-
|
|
585
|
-
|
|
600
|
+
const second = parts.get("second");
|
|
601
|
+
if (hour === void 0 || minute === void 0 || dayPeriod === void 0) return null;
|
|
602
|
+
const token = dayPeriod.toLowerCase();
|
|
603
|
+
if (seconds === "include") return second === void 0 ? null : `${hour}:${minute}:${second}${token}`;
|
|
604
|
+
return `${minute === "00" ? hour : `${hour}:${minute}`}${token}`;
|
|
586
605
|
}
|
|
587
606
|
function formatBookingDateParts(input, options) {
|
|
588
607
|
return {
|
|
@@ -712,11 +731,33 @@ function inferSiteDateLocale(siteTimeZone) {
|
|
|
712
731
|
if (siteTimeZone === "Pacific/Auckland" || siteTimeZone === "Pacific/Chatham") return "en-NZ";
|
|
713
732
|
return "en-US";
|
|
714
733
|
}
|
|
734
|
+
function formatDate$3(value, context, options = {}) {
|
|
735
|
+
return presentDate(value, context, displayProfile(options, "omit"));
|
|
736
|
+
}
|
|
737
|
+
function formatDateRange(start, endInclusive, context, options = {}) {
|
|
738
|
+
const first = {
|
|
739
|
+
kind: "civil",
|
|
740
|
+
value: projectDate(start, context)
|
|
741
|
+
};
|
|
742
|
+
const last = {
|
|
743
|
+
kind: "civil",
|
|
744
|
+
value: projectDate(endInclusive, context)
|
|
745
|
+
};
|
|
746
|
+
const preserveOrder = options.order === "session" && compareLocalScheduleDates(first.value, last.value) > 0;
|
|
747
|
+
const profile = displayProfile(preserveOrder ? {
|
|
748
|
+
...options,
|
|
749
|
+
year: "numeric"
|
|
750
|
+
} : options, "omit");
|
|
751
|
+
return preserveOrder ? `${presentDate(first, context, profile)} – ${presentDate(last, context, profile)}` : presentDateRange(first, last, context, profile);
|
|
752
|
+
}
|
|
715
753
|
function formatDateTime(value, context, options) {
|
|
716
|
-
return presentDateTime(value, context, displayProfile(options, options.zone));
|
|
754
|
+
return presentDateTime(value, context, displayProfile(options, options.zone, options.seconds));
|
|
755
|
+
}
|
|
756
|
+
function formatDateTimeRange(span, context, options) {
|
|
757
|
+
return presentDateTimeRange(span, context, displayProfile(options, options.zone, options.seconds));
|
|
717
758
|
}
|
|
718
759
|
function formatTime$3(value, context, options) {
|
|
719
|
-
return presentTime(value, context, displayProfile({}, options.zone));
|
|
760
|
+
return presentTime(value, context, displayProfile({}, options.zone, options.seconds));
|
|
720
761
|
}
|
|
721
762
|
/** Sole date projection/typography owner, used by display and scheduled adapters. */
|
|
722
763
|
function presentDate(value, context, profile) {
|
|
@@ -727,6 +768,16 @@ function presentDate(value, context, profile) {
|
|
|
727
768
|
const normalized = normalizeDisplay(output);
|
|
728
769
|
return profile.dateFormat.weekday && new Intl.Locale(context.locale).language === "en" ? normalized.replace(/^([^,]+), /u, "$1 ") : normalized;
|
|
729
770
|
}
|
|
771
|
+
function presentDateRange(start, end, context, profile) {
|
|
772
|
+
if (dateCarrier(end).getTime() < dateCarrier(start).getTime()) throw new RangeError("Date range end must be on or after its start");
|
|
773
|
+
if (profile.kind === "display" && compareLocalScheduleDates(projectDate(start, context), projectDate(end, context)) === 0) return presentDate(start, context, profile);
|
|
774
|
+
const output = formatIntlRange(getDateTimeFormatter(context.locale, start.kind === "civil" ? "UTC" : context.timeZone, profile.dateFormat), dateCarrier(start), dateCarrier(end));
|
|
775
|
+
if (profile.kind === "sdk") return output;
|
|
776
|
+
const startDate = projectDate(start, context);
|
|
777
|
+
const endDate = projectDate(end, context);
|
|
778
|
+
const separator = startDate.month === endDate.month && startDate.year === endDate.year ? "–" : " – ";
|
|
779
|
+
return normalizeDisplay(output).replace(/\s*–\s*/gu, separator);
|
|
780
|
+
}
|
|
730
781
|
function presentTime(value, context, profile) {
|
|
731
782
|
const clock = presentClock(value, context, profile.clock);
|
|
732
783
|
return profile.zone === "always" ? `${clock} ${zoneLabel(value, context)}` : clock;
|
|
@@ -738,19 +789,80 @@ function presentDateTime(value, context, profile) {
|
|
|
738
789
|
value
|
|
739
790
|
}, context, profile)}, ${presentTime(value, context, profile)}`;
|
|
740
791
|
}
|
|
792
|
+
function presentTimeRange(span, context, profile) {
|
|
793
|
+
assertOrdered(span.start, span.end);
|
|
794
|
+
if (profile.clock.kind === "intl") return presentNativeRange(span, context, profile.clock.format);
|
|
795
|
+
const startClock = presentClock(span.start, context, profile.clock);
|
|
796
|
+
const endClock = presentClock(span.end, context, profile.clock);
|
|
797
|
+
const clocks = (profile.kind === "sdk" ? startClock === endClock : span.start === span.end) ? startClock : `${startClock}–${endClock}`;
|
|
798
|
+
const labels = decideRangeLabels(span, context, profile);
|
|
799
|
+
switch (labels.kind) {
|
|
800
|
+
case "omit": return clocks;
|
|
801
|
+
case "shared": return `${clocks} ${labels.label}`;
|
|
802
|
+
case "endpoints": return `${startClock} ${labels.start} – ${endClock} ${labels.end}`;
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
function presentDateTimeRange(span, context, profile) {
|
|
806
|
+
assertOrdered(span.start, span.end);
|
|
807
|
+
if (profile.clock.kind === "intl") return presentNativeRange(span, context, combinedFormat(profile.dateFormat, profile.clock));
|
|
808
|
+
const startDate = getLocalScheduleDate(new Date(span.start), context.timeZone);
|
|
809
|
+
const endDate = getLocalScheduleDate(new Date(span.end), context.timeZone);
|
|
810
|
+
if (compareLocalScheduleDates(startDate, endDate) === 0) return `${presentDate({
|
|
811
|
+
kind: "instant",
|
|
812
|
+
value: span.start
|
|
813
|
+
}, context, profile)}, ${presentTimeRange(span, context, profile)}`;
|
|
814
|
+
const labels = decideRangeLabels(span, context, profile);
|
|
815
|
+
const startProfile = profile.kind === "display" && startDate.year === endDate.year ? {
|
|
816
|
+
...profile,
|
|
817
|
+
dateFormat: {
|
|
818
|
+
...profile.dateFormat,
|
|
819
|
+
year: void 0
|
|
820
|
+
}
|
|
821
|
+
} : profile;
|
|
822
|
+
const start = presentRangeEndpoint(span.start, context, startProfile, labels.kind === "endpoints" ? labels.start : void 0);
|
|
823
|
+
const end = presentRangeEndpoint(span.end, context, profile, labels.kind === "endpoints" ? labels.end : void 0);
|
|
824
|
+
const separator = profile.kind === "sdk" ? "–" : " – ";
|
|
825
|
+
return profile.kind === "sdk" && start === end ? start : `${start}${separator}${end}`;
|
|
826
|
+
}
|
|
827
|
+
/** Offset changes override ordinary venue omission for the approved display profile. */
|
|
828
|
+
function decideRangeLabels(span, context, profile) {
|
|
829
|
+
if (profile.kind === "sdk") return { kind: "omit" };
|
|
830
|
+
const offsetsDiffer = offsetToken(span.start, context) !== offsetToken(span.end, context);
|
|
831
|
+
if (!offsetsDiffer && profile.zone === "omit") return { kind: "omit" };
|
|
832
|
+
const start = zoneLabel(span.start, context);
|
|
833
|
+
const end = zoneLabel(span.end, context);
|
|
834
|
+
return offsetsDiffer || start !== end ? {
|
|
835
|
+
kind: "endpoints",
|
|
836
|
+
start,
|
|
837
|
+
end
|
|
838
|
+
} : {
|
|
839
|
+
kind: "shared",
|
|
840
|
+
label: start
|
|
841
|
+
};
|
|
842
|
+
}
|
|
843
|
+
function presentRangeEndpoint(value, context, profile, label) {
|
|
844
|
+
return `${presentDate({
|
|
845
|
+
kind: "instant",
|
|
846
|
+
value
|
|
847
|
+
}, context, profile)}, ${label === void 0 ? presentTime(value, context, profile) : `${presentClock(value, context, profile.clock)} ${label}`}`;
|
|
848
|
+
}
|
|
849
|
+
function presentNativeRange(span, context, format) {
|
|
850
|
+
return formatIntlRange(getDateTimeFormatter(context.locale, context.timeZone, format), new Date(span.start), new Date(span.end));
|
|
851
|
+
}
|
|
741
852
|
function combinedFormat(date, clock) {
|
|
742
853
|
return {
|
|
743
854
|
...date,
|
|
744
855
|
...clock.format
|
|
745
856
|
};
|
|
746
857
|
}
|
|
747
|
-
function displayProfile(options, zone) {
|
|
858
|
+
function displayProfile(options, zone, seconds) {
|
|
748
859
|
return {
|
|
749
860
|
kind: "display",
|
|
750
861
|
dateFormat: dateFormat(options),
|
|
751
862
|
clock: {
|
|
752
863
|
kind: "compact",
|
|
753
|
-
localeSource: "product"
|
|
864
|
+
localeSource: "product",
|
|
865
|
+
seconds
|
|
754
866
|
},
|
|
755
867
|
zone
|
|
756
868
|
};
|
|
@@ -763,12 +875,15 @@ function presentClock(value, context, clock) {
|
|
|
763
875
|
startsAt: value,
|
|
764
876
|
timeZone: context.timeZone,
|
|
765
877
|
locale: clock.localeSource === "product" ? "en-GB" : context.locale
|
|
766
|
-
}) : getDateTimeFormatter(context.locale, context.timeZone, clock.format).format(new Date(value));
|
|
878
|
+
}, { seconds: clock.seconds }) : getDateTimeFormatter(context.locale, context.timeZone, clock.format).format(new Date(value));
|
|
879
|
+
}
|
|
880
|
+
function offsetToken(value, context) {
|
|
881
|
+
return getDateTimeFormatter("en-GB", context.timeZone, { timeZoneName: "longOffset" }).formatToParts(new Date(value)).find((part) => part.type === "timeZoneName")?.value ?? "";
|
|
767
882
|
}
|
|
768
883
|
function dateFormat(options) {
|
|
769
884
|
const style = options.date ?? "long";
|
|
770
885
|
return {
|
|
771
|
-
day: style === "omit" ? void 0 : style === "numeric" ? "2-digit" : "numeric",
|
|
886
|
+
day: style === "omit" || options.day === "omit" ? void 0 : style === "numeric" ? "2-digit" : "numeric",
|
|
772
887
|
month: style === "omit" ? void 0 : style === "numeric" ? "2-digit" : style,
|
|
773
888
|
...options.year === "omit" ? {} : { year: "numeric" },
|
|
774
889
|
...options.weekday ? { weekday: options.weekday } : {}
|
|
@@ -777,6 +892,9 @@ function dateFormat(options) {
|
|
|
777
892
|
function civilCarrier(value) {
|
|
778
893
|
return new Date(Date.UTC(value.year, value.month - 1, value.day, 12));
|
|
779
894
|
}
|
|
895
|
+
function projectDate(value, context) {
|
|
896
|
+
return value.kind === "civil" ? value.value : getLocalScheduleDate(new Date(value.value), context.timeZone);
|
|
897
|
+
}
|
|
780
898
|
function normalizeDisplay(value) {
|
|
781
899
|
return value.replace(/[\u00a0\u202f]/gu, " ");
|
|
782
900
|
}
|
|
@@ -786,6 +904,9 @@ function zoneToken(value, context, locale) {
|
|
|
786
904
|
function zoneLabel(value, context) {
|
|
787
905
|
return [zoneToken(value, context, "en-GB"), zoneToken(value, context, "en-US")].find((token) => /^[A-Z]{2,6}$/u.test(token)) ?? formatTimeZoneCityLabel(context.timeZone);
|
|
788
906
|
}
|
|
907
|
+
function assertOrdered(start, end) {
|
|
908
|
+
if (new Date(end).getTime() < new Date(start).getTime()) throw new RangeError("Date/time range end must be on or after its start");
|
|
909
|
+
}
|
|
789
910
|
/** Same city vocabulary as clock-label fallback, for explanatory timezone copy. */
|
|
790
911
|
function formatTimeZoneCityLabel(timeZone) {
|
|
791
912
|
return timeZone.startsWith("Etc/") ? "local time" : `${timeZone.split("/").slice(-1)[0]?.replace(/_/gu, " ") ?? timeZone} time`;
|
|
@@ -107157,9 +107278,13 @@ function cardProjectionBase(event, buttonText, offering) {
|
|
|
107157
107278
|
function offeringLeadDate(event, startMs) {
|
|
107158
107279
|
if (startMs === null || !Number.isFinite(startMs)) return null;
|
|
107159
107280
|
const startsAt = new Date(startMs).toISOString();
|
|
107281
|
+
const timeZone = resolveBookingBusinessTimeZone(event.bookingScope === "whole_series" ? orderedLiveRunSessions(event.run.sessions).find((session) => Date.parse(session.startsAt) === startMs)?.timeZone ?? event.timeZone : event.timeZone);
|
|
107160
107282
|
return {
|
|
107161
107283
|
startsAt,
|
|
107162
|
-
...formatEventCompactDateRail(startsAt,
|
|
107284
|
+
...formatEventCompactDateRail(startsAt, {
|
|
107285
|
+
...eventDateOptions(event),
|
|
107286
|
+
timeZone
|
|
107287
|
+
}, "as-written")
|
|
107163
107288
|
};
|
|
107164
107289
|
}
|
|
107165
107290
|
function offeringSchedule(event, now) {
|
|
@@ -107179,49 +107304,47 @@ function offeringSchedule(event, now) {
|
|
|
107179
107304
|
}
|
|
107180
107305
|
function scheduleLine(summary, event, now) {
|
|
107181
107306
|
const options = eventDateOptions(event);
|
|
107182
|
-
const
|
|
107183
|
-
const
|
|
107184
|
-
|
|
107185
|
-
|
|
107186
|
-
|
|
107187
|
-
|
|
107188
|
-
|
|
107189
|
-
|
|
107190
|
-
|
|
107191
|
-
|
|
107192
|
-
|
|
107193
|
-
|
|
107307
|
+
const first = "occurrence" in summary ? summary.occurrence : summary.first;
|
|
107308
|
+
const last = "occurrence" in summary ? summary.occurrence : summary.last;
|
|
107309
|
+
const context = {
|
|
107310
|
+
locale: options.locale,
|
|
107311
|
+
timeZone: resolveBookingBusinessTimeZone(first.timeZone)
|
|
107312
|
+
};
|
|
107313
|
+
const zone = event.deliveryMode === "online" || context.timeZone !== resolveBookingBusinessTimeZone(event.siteTimeZone ?? event.timeZone) ? "always" : "omit";
|
|
107314
|
+
const endpoint = (value) => ({
|
|
107315
|
+
kind: "instant",
|
|
107316
|
+
value: toUtcIsoDateTimeString(value)
|
|
107317
|
+
});
|
|
107318
|
+
const year = (value, timeZone = context.timeZone) => now && getLocalScheduleDate(new Date(value), timeZone).year === getLocalScheduleDate(now, timeZone).year ? "omit" : "numeric";
|
|
107319
|
+
const date = (value) => formatDate$3(endpoint(value), context, {
|
|
107320
|
+
date: "short",
|
|
107321
|
+
year: now ? year(value) : "omit"
|
|
107322
|
+
});
|
|
107323
|
+
const dates = (startsAt, endsAt) => formatDateRange({
|
|
107324
|
+
kind: "civil",
|
|
107325
|
+
value: getLocalScheduleDate(new Date(startsAt), context.timeZone)
|
|
107326
|
+
}, {
|
|
107327
|
+
kind: "civil",
|
|
107328
|
+
value: getLocalScheduleDate(new Date(endsAt), resolveBookingBusinessTimeZone(last.timeZone))
|
|
107329
|
+
}, context, {
|
|
107330
|
+
date: "short",
|
|
107331
|
+
year: now && year(startsAt) === "omit" && year(endsAt, resolveBookingBusinessTimeZone(last.timeZone)) === "omit" ? "omit" : now ? "numeric" : "omit"
|
|
107332
|
+
});
|
|
107194
107333
|
switch (summary.kind) {
|
|
107195
|
-
case "single-occurrence": return now ?
|
|
107196
|
-
|
|
107197
|
-
|
|
107198
|
-
|
|
107334
|
+
case "single-occurrence": return now ? formatDateTimeRange({
|
|
107335
|
+
start: endpoint(summary.occurrence.startsAt).value,
|
|
107336
|
+
end: endpoint(summary.occurrence.endsAt).value
|
|
107337
|
+
}, context, {
|
|
107338
|
+
date: "short",
|
|
107339
|
+
weekday: "short",
|
|
107340
|
+
year: year(summary.occurrence.startsAt),
|
|
107341
|
+
zone
|
|
107342
|
+
}) : date(summary.occurrence.startsAt);
|
|
107343
|
+
case "multi-day-span": return dates(summary.occurrence.startsAt, summary.occurrence.endsAt);
|
|
107344
|
+
case "fixed-recurring-run": return `${dates(summary.first.startsAt, summary.last.startsAt)} · ${summary.recurrenceLabel}`;
|
|
107345
|
+
case "irregular-multi-session-run": return `${dates(summary.first.startsAt, summary.last.startsAt)} · ${summary.sessionCount} dates`;
|
|
107199
107346
|
}
|
|
107200
107347
|
}
|
|
107201
|
-
function compactTimeRange(startsAt, endsAt, timeZone) {
|
|
107202
|
-
const time = (value) => formatTime$2(value, {
|
|
107203
|
-
timeZone,
|
|
107204
|
-
locale: "en-US"
|
|
107205
|
-
}).replace(/:00/, "").replace(/\s/g, "").toLowerCase();
|
|
107206
|
-
const start = time(startsAt);
|
|
107207
|
-
const end = time(endsAt);
|
|
107208
|
-
return `${start.endsWith("am") === end.endsWith("am") ? start.replace(/(am|pm)$/, "") : start}–${end}`;
|
|
107209
|
-
}
|
|
107210
|
-
function compactDateSpan(startsAt, endsAt, locale, timeZone, now) {
|
|
107211
|
-
const start = new Date(startsAt);
|
|
107212
|
-
const end = new Date(endsAt);
|
|
107213
|
-
const parts = (value) => new Intl.DateTimeFormat(locale, {
|
|
107214
|
-
timeZone,
|
|
107215
|
-
day: "numeric",
|
|
107216
|
-
month: "short",
|
|
107217
|
-
year: "numeric"
|
|
107218
|
-
}).formatToParts(value);
|
|
107219
|
-
const part = (value, type) => parts(value).find((entry) => entry.type === type)?.value.replace(/^Sept$/, "Sep") ?? "";
|
|
107220
|
-
const sameMonth = part(start, "month") === part(end, "month") && part(start, "year") === part(end, "year");
|
|
107221
|
-
const year = (value) => part(value, "year") === part(now, "year") ? "" : ` ${part(value, "year")}`;
|
|
107222
|
-
const date = (value) => `${part(value, "day")} ${part(value, "month")}${year(value)}`;
|
|
107223
|
-
return sameMonth ? `${part(start, "day")}–${date(end)}` : `${date(start)} – ${date(end)}`;
|
|
107224
|
-
}
|
|
107225
107348
|
function offeringAvailability(event) {
|
|
107226
107349
|
const label = formatEventRemainingPlaces(event, { full: "Sold out" });
|
|
107227
107350
|
const availability = getEventAvailabilityStatus(event);
|
|
@@ -122379,7 +122502,7 @@ const FormNodeSSR = ({ blockId, lookSlots, value, submitLabel, successMessage, c
|
|
|
122379
122502
|
/* @__PURE__ */ jsx("input", {
|
|
122380
122503
|
type: "text",
|
|
122381
122504
|
name: "company",
|
|
122382
|
-
className: "hidden",
|
|
122505
|
+
className: "rb-hidden",
|
|
122383
122506
|
tabIndex: -1,
|
|
122384
122507
|
autoComplete: "off"
|
|
122385
122508
|
}),
|
|
@@ -122621,7 +122744,7 @@ function NewsletterFormSSR(props) {
|
|
|
122621
122744
|
/* @__PURE__ */ jsx("input", {
|
|
122622
122745
|
type: "text",
|
|
122623
122746
|
name: "website",
|
|
122624
|
-
className: "hidden",
|
|
122747
|
+
className: "rb-hidden",
|
|
122625
122748
|
tabIndex: -1,
|
|
122626
122749
|
autoComplete: "off",
|
|
122627
122750
|
"aria-hidden": "true"
|
|
@@ -132970,218 +133093,212 @@ const weeklySlotAvailabilityBlockDefinition = {
|
|
|
132970
133093
|
} }
|
|
132971
133094
|
};
|
|
132972
133095
|
//#endregion
|
|
132973
|
-
//#region ../blocks/src/system/
|
|
132974
|
-
|
|
132975
|
-
|
|
132976
|
-
|
|
132977
|
-
|
|
132978
|
-
|
|
132979
|
-
|
|
132980
|
-
|
|
132981
|
-
|
|
132982
|
-
|
|
132983
|
-
|
|
132984
|
-
|
|
132985
|
-
|
|
132986
|
-
|
|
132987
|
-
|
|
132988
|
-
|
|
132989
|
-
|
|
132990
|
-
|
|
132991
|
-
|
|
132992
|
-
|
|
132993
|
-
|
|
132994
|
-
|
|
132995
|
-
|
|
132996
|
-
|
|
132997
|
-
|
|
132998
|
-
|
|
132999
|
-
|
|
133000
|
-
|
|
133001
|
-
|
|
133002
|
-
|
|
133003
|
-
|
|
133004
|
-
|
|
133005
|
-
|
|
133006
|
-
|
|
133007
|
-
|
|
133008
|
-
|
|
133009
|
-
|
|
133010
|
-
|
|
133011
|
-
|
|
133012
|
-
|
|
133013
|
-
|
|
133014
|
-
|
|
133015
|
-
|
|
133016
|
-
|
|
133017
|
-
|
|
133018
|
-
|
|
133019
|
-
|
|
133020
|
-
|
|
133021
|
-
|
|
133022
|
-
|
|
133023
|
-
|
|
133024
|
-
|
|
133025
|
-
|
|
133026
|
-
|
|
133027
|
-
|
|
133028
|
-
|
|
133029
|
-
|
|
133030
|
-
|
|
133031
|
-
|
|
133032
|
-
|
|
133033
|
-
|
|
133034
|
-
|
|
133035
|
-
|
|
133036
|
-
|
|
133037
|
-
|
|
133038
|
-
|
|
133039
|
-
|
|
133040
|
-
|
|
133041
|
-
|
|
133042
|
-
|
|
133043
|
-
|
|
133044
|
-
|
|
133045
|
-
|
|
133046
|
-
|
|
133047
|
-
|
|
133048
|
-
|
|
133049
|
-
|
|
133050
|
-
|
|
133051
|
-
|
|
133052
|
-
|
|
133053
|
-
|
|
133054
|
-
|
|
133055
|
-
|
|
133056
|
-
|
|
133057
|
-
|
|
133058
|
-
|
|
133059
|
-
|
|
133060
|
-
|
|
133061
|
-
|
|
133062
|
-
|
|
133063
|
-
|
|
133064
|
-
|
|
133065
|
-
|
|
133066
|
-
|
|
133067
|
-
|
|
133068
|
-
|
|
133069
|
-
|
|
133070
|
-
|
|
133071
|
-
|
|
133072
|
-
|
|
133073
|
-
|
|
133074
|
-
|
|
133075
|
-
|
|
133076
|
-
|
|
133077
|
-
|
|
133078
|
-
|
|
133079
|
-
|
|
133080
|
-
|
|
133081
|
-
|
|
133082
|
-
|
|
133083
|
-
|
|
133084
|
-
|
|
133085
|
-
|
|
133086
|
-
|
|
133087
|
-
|
|
133088
|
-
|
|
133089
|
-
|
|
133090
|
-
|
|
133091
|
-
|
|
133092
|
-
|
|
133093
|
-
|
|
133094
|
-
|
|
133095
|
-
|
|
133096
|
-
|
|
133097
|
-
|
|
133098
|
-
|
|
133099
|
-
|
|
133100
|
-
|
|
133101
|
-
|
|
133102
|
-
|
|
133103
|
-
|
|
133104
|
-
|
|
133105
|
-
|
|
133106
|
-
|
|
133107
|
-
|
|
133108
|
-
|
|
133109
|
-
|
|
133110
|
-
|
|
133111
|
-
|
|
133112
|
-
|
|
133113
|
-
|
|
133114
|
-
|
|
133115
|
-
|
|
133116
|
-
|
|
133117
|
-
|
|
133118
|
-
|
|
133119
|
-
|
|
133120
|
-
|
|
133121
|
-
|
|
133122
|
-
|
|
133123
|
-
|
|
133124
|
-
|
|
133125
|
-
|
|
133126
|
-
|
|
133127
|
-
|
|
133128
|
-
|
|
133129
|
-
|
|
133130
|
-
|
|
133131
|
-
|
|
133132
|
-
|
|
133133
|
-
|
|
133134
|
-
|
|
133135
|
-
|
|
133136
|
-
|
|
133137
|
-
|
|
133138
|
-
|
|
133139
|
-
|
|
133140
|
-
|
|
133141
|
-
|
|
133142
|
-
|
|
133143
|
-
|
|
133144
|
-
|
|
133145
|
-
|
|
133146
|
-
|
|
133147
|
-
|
|
133148
|
-
|
|
133149
|
-
|
|
133150
|
-
|
|
133151
|
-
|
|
133152
|
-
|
|
133153
|
-
|
|
133154
|
-
|
|
133155
|
-
|
|
133156
|
-
|
|
133157
|
-
|
|
133158
|
-
|
|
133159
|
-
|
|
133160
|
-
|
|
133161
|
-
|
|
133162
|
-
|
|
133163
|
-
|
|
133164
|
-
|
|
133165
|
-
|
|
133166
|
-
|
|
133167
|
-
|
|
133168
|
-
|
|
133169
|
-
|
|
133170
|
-
|
|
133171
|
-
|
|
133172
|
-
|
|
133173
|
-
|
|
133174
|
-
|
|
133175
|
-
|
|
133176
|
-
sitePasses: { $bind: { from: "data.eventDetailsData.sitePasses" } },
|
|
133177
|
-
siteMemberships: { $bind: { from: "data.eventDetailsData.siteMemberships" } },
|
|
133178
|
-
autoApplyDiscount: { $bind: {
|
|
133179
|
-
from: "data.eventDetailsData.autoApplyDiscount",
|
|
133180
|
-
fallback: null
|
|
133181
|
-
} }
|
|
133182
|
-
})], { gap: "lg" })
|
|
133183
|
-
})]
|
|
133096
|
+
//#region ../blocks/src/system/runtime/api/schemas/events.ts
|
|
133097
|
+
const uuid = z.string().uuid();
|
|
133098
|
+
const eventRegistrationStatusReferenceSchema = z.discriminatedUnion("scope", [z.object({
|
|
133099
|
+
scope: z.literal("occurrence"),
|
|
133100
|
+
attendeeId: uuid
|
|
133101
|
+
}).strict(), z.object({
|
|
133102
|
+
scope: z.literal("wholeSeries"),
|
|
133103
|
+
registrationId: uuid
|
|
133104
|
+
}).strict()]);
|
|
133105
|
+
const eventRegistrationPaymentSubjectSchema = z.discriminatedUnion("scope", [z.object({
|
|
133106
|
+
scope: z.literal("occurrence"),
|
|
133107
|
+
submissionId: uuid,
|
|
133108
|
+
attendeeId: uuid
|
|
133109
|
+
}).strict(), z.object({
|
|
133110
|
+
scope: z.literal("wholeSeries"),
|
|
133111
|
+
submissionId: uuid
|
|
133112
|
+
}).strict()]);
|
|
133113
|
+
const identityFields = {
|
|
133114
|
+
submissionId: uuid,
|
|
133115
|
+
seriesId: uuid,
|
|
133116
|
+
attendanceMode: z.enum(["in_person", "online"])
|
|
133117
|
+
};
|
|
133118
|
+
const confirmedBookingIdentitySchema = z.discriminatedUnion("scope", [z.object({
|
|
133119
|
+
scope: z.literal("occurrence"),
|
|
133120
|
+
attendeeId: uuid,
|
|
133121
|
+
occurrenceId: uuid,
|
|
133122
|
+
...identityFields
|
|
133123
|
+
}).strict(), z.object({
|
|
133124
|
+
scope: z.literal("wholeSeries"),
|
|
133125
|
+
registrationId: uuid,
|
|
133126
|
+
...identityFields
|
|
133127
|
+
}).strict()]);
|
|
133128
|
+
const bookedTicketLineSchema = z.object({
|
|
133129
|
+
label: z.string().min(1),
|
|
133130
|
+
quantity: z.number().int().positive()
|
|
133131
|
+
}).strict();
|
|
133132
|
+
const eventBookingOutcomeSchema = z.discriminatedUnion("kind", [z.object({
|
|
133133
|
+
kind: z.literal("detailsAvailable"),
|
|
133134
|
+
identity: confirmedBookingIdentitySchema,
|
|
133135
|
+
ticketLines: z.tuple([bookedTicketLineSchema]).rest(bookedTicketLineSchema).readonly(),
|
|
133136
|
+
payment: confirmationPaymentSchema
|
|
133137
|
+
}).strict(), z.object({
|
|
133138
|
+
kind: z.literal("detailsUnavailable"),
|
|
133139
|
+
identity: confirmedBookingIdentitySchema
|
|
133140
|
+
}).strict()]);
|
|
133141
|
+
const eventEmbeddedCheckoutSchema = z.object({
|
|
133142
|
+
kind: z.literal("embedded"),
|
|
133143
|
+
sessionId: z.string().min(1),
|
|
133144
|
+
clientSecret: z.string().min(1),
|
|
133145
|
+
livemode: z.boolean(),
|
|
133146
|
+
expiresAt: z.string().datetime({ offset: true }),
|
|
133147
|
+
browser: z.discriminatedUnion("kind", [z.object({
|
|
133148
|
+
kind: z.literal("connect"),
|
|
133149
|
+
publishableKey: z.string().min(1),
|
|
133150
|
+
accountId: z.string().min(1)
|
|
133151
|
+
}).strict(), z.object({
|
|
133152
|
+
kind: z.literal("direct"),
|
|
133153
|
+
publishableKey: z.string().min(1)
|
|
133154
|
+
}).strict()])
|
|
133155
|
+
}).strict();
|
|
133156
|
+
const decorations = {
|
|
133157
|
+
mailingListSignupNote: z.enum(["confirmation_required", "not_confirmed"]).optional(),
|
|
133158
|
+
demoBookingPass: z.string().optional()
|
|
133159
|
+
};
|
|
133160
|
+
const eventRegistrationSummarySchema = z.object({
|
|
133161
|
+
message: z.string(),
|
|
133162
|
+
passCreditsRemaining: z.number().int().nonnegative().optional()
|
|
133163
|
+
}).strict();
|
|
133164
|
+
const eventRegisterResponseSchema = z.discriminatedUnion("kind", [
|
|
133165
|
+
z.object({
|
|
133166
|
+
kind: z.literal("bookingComplete"),
|
|
133167
|
+
outcome: eventBookingOutcomeSchema,
|
|
133168
|
+
summary: eventRegistrationSummarySchema,
|
|
133169
|
+
...decorations
|
|
133170
|
+
}).strict(),
|
|
133171
|
+
z.object({
|
|
133172
|
+
kind: z.literal("checkoutRequired"),
|
|
133173
|
+
reference: eventRegistrationStatusReferenceSchema,
|
|
133174
|
+
checkout: eventEmbeddedCheckoutSchema,
|
|
133175
|
+
submissionId: uuid,
|
|
133176
|
+
...decorations
|
|
133177
|
+
}).strict(),
|
|
133178
|
+
z.object({
|
|
133179
|
+
kind: z.literal("paymentStatusRequired"),
|
|
133180
|
+
subject: eventRegistrationPaymentSubjectSchema,
|
|
133181
|
+
...decorations
|
|
133182
|
+
}).strict(),
|
|
133183
|
+
z.object({
|
|
133184
|
+
kind: z.literal("waitlisted"),
|
|
133185
|
+
waitlist: z.object({
|
|
133186
|
+
reference: z.union([z.object({
|
|
133187
|
+
scope: z.literal("occurrence"),
|
|
133188
|
+
attendeeId: uuid
|
|
133189
|
+
}).strict(), z.object({
|
|
133190
|
+
scope: z.enum(["occurrence", "wholeSeries"]),
|
|
133191
|
+
waitlistEntryId: uuid
|
|
133192
|
+
}).strict()]),
|
|
133193
|
+
position: z.number().int().nonnegative().nullable(),
|
|
133194
|
+
message: z.string(),
|
|
133195
|
+
emailFollowupMessage: z.string().optional()
|
|
133196
|
+
}).strict(),
|
|
133197
|
+
...decorations
|
|
133198
|
+
}).strict()
|
|
133199
|
+
]);
|
|
133200
|
+
const checkoutStatusArms = [
|
|
133201
|
+
z.object({
|
|
133202
|
+
kind: z.literal("resolved"),
|
|
133203
|
+
outcome: eventBookingOutcomeSchema
|
|
133204
|
+
}).strict(),
|
|
133205
|
+
z.object({ kind: z.literal("abandoned") }).strict(),
|
|
133206
|
+
z.object({ kind: z.literal("reconciliationRequired") }).strict(),
|
|
133207
|
+
z.object({
|
|
133208
|
+
kind: z.literal("paymentProcessing"),
|
|
133209
|
+
recoverableUntil: z.string().optional()
|
|
133210
|
+
}).strict(),
|
|
133211
|
+
z.object({
|
|
133212
|
+
kind: z.literal("paymentAvailable"),
|
|
133213
|
+
checkout: eventEmbeddedCheckoutSchema,
|
|
133214
|
+
recoverableUntil: z.string().optional()
|
|
133215
|
+
}).strict(),
|
|
133216
|
+
z.object({
|
|
133217
|
+
kind: z.literal("paymentRetryAvailable"),
|
|
133218
|
+
place: z.enum(["held", "released"])
|
|
133219
|
+
}).strict(),
|
|
133220
|
+
z.object({
|
|
133221
|
+
kind: z.literal("paymentCheckUnavailable"),
|
|
133222
|
+
recoverableUntil: z.string().optional()
|
|
133223
|
+
}).strict(),
|
|
133224
|
+
z.object({ kind: z.literal("paymentAssistanceRequired") }).strict()
|
|
133225
|
+
];
|
|
133226
|
+
z.discriminatedUnion("kind", [...checkoutStatusArms, z.object({ kind: z.literal("notFound") }).strict()]);
|
|
133227
|
+
const eventCheckoutReturnResponseSchema = z.discriminatedUnion("kind", [
|
|
133228
|
+
z.object({
|
|
133229
|
+
kind: z.literal("checkout"),
|
|
133230
|
+
subject: eventRegistrationPaymentSubjectSchema,
|
|
133231
|
+
outcome: z.discriminatedUnion("kind", checkoutStatusArms)
|
|
133232
|
+
}).strict(),
|
|
133233
|
+
z.object({ kind: z.literal("notFound") }).strict(),
|
|
133234
|
+
z.object({ kind: z.literal("reconciliationRequired") }).strict()
|
|
133235
|
+
]).superRefine((response, ctx) => {
|
|
133236
|
+
if (response.kind !== "checkout" || response.outcome.kind !== "resolved") return;
|
|
133237
|
+
const identity = response.outcome.outcome.identity;
|
|
133238
|
+
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({
|
|
133239
|
+
code: "custom",
|
|
133240
|
+
message: "Confirmed booking does not match checkout subject",
|
|
133241
|
+
path: ["outcome"]
|
|
133242
|
+
});
|
|
133243
|
+
});
|
|
133244
|
+
const checkoutDecorations = { mailingListSignupNote: decorations.mailingListSignupNote };
|
|
133245
|
+
const eventCheckoutResponseSchema = z.union([
|
|
133246
|
+
z.object({
|
|
133247
|
+
kind: z.literal("completed"),
|
|
133248
|
+
scope: z.literal("occurrence"),
|
|
133249
|
+
outcome: eventBookingOutcomeSchema,
|
|
133250
|
+
...checkoutDecorations
|
|
133251
|
+
}).strict(),
|
|
133252
|
+
z.object({
|
|
133253
|
+
kind: z.literal("completed"),
|
|
133254
|
+
scope: z.literal("wholeSeries"),
|
|
133255
|
+
outcome: eventBookingOutcomeSchema,
|
|
133256
|
+
...checkoutDecorations
|
|
133257
|
+
}).strict(),
|
|
133258
|
+
z.object({
|
|
133259
|
+
kind: z.literal("checkoutRequired"),
|
|
133260
|
+
scope: z.literal("occurrence"),
|
|
133261
|
+
attendeeId: uuid,
|
|
133262
|
+
checkout: eventEmbeddedCheckoutSchema,
|
|
133263
|
+
...checkoutDecorations
|
|
133264
|
+
}).strict(),
|
|
133265
|
+
z.object({
|
|
133266
|
+
kind: z.literal("checkoutRequired"),
|
|
133267
|
+
scope: z.literal("wholeSeries"),
|
|
133268
|
+
registrationId: uuid,
|
|
133269
|
+
checkoutAttemptId: uuid,
|
|
133270
|
+
checkout: eventEmbeddedCheckoutSchema,
|
|
133271
|
+
recoverableUntil: z.string().optional(),
|
|
133272
|
+
...checkoutDecorations
|
|
133273
|
+
}).strict(),
|
|
133274
|
+
z.object({
|
|
133275
|
+
scope: z.literal("wholeSeries"),
|
|
133276
|
+
status: z.literal("paymentStatusRequired"),
|
|
133277
|
+
checkoutAttemptId: uuid,
|
|
133278
|
+
recoverableUntil: z.string().optional(),
|
|
133279
|
+
...checkoutDecorations
|
|
133280
|
+
}).strict(),
|
|
133281
|
+
z.object({
|
|
133282
|
+
scope: z.literal("wholeSeries"),
|
|
133283
|
+
status: z.literal("waitlist"),
|
|
133284
|
+
waitlistEntryId: uuid,
|
|
133285
|
+
waitlistPosition: z.number().int().nonnegative().nullable(),
|
|
133286
|
+
alreadyRegistered: z.boolean().optional(),
|
|
133287
|
+
...checkoutDecorations
|
|
133288
|
+
}).strict()
|
|
133289
|
+
]).superRefine((response, ctx) => {
|
|
133290
|
+
if ("kind" in response && response.kind === "completed" && response.scope !== response.outcome.identity.scope) ctx.addIssue({
|
|
133291
|
+
code: "custom",
|
|
133292
|
+
message: "Confirmed booking scope mismatch",
|
|
133293
|
+
path: [
|
|
133294
|
+
"outcome",
|
|
133295
|
+
"identity",
|
|
133296
|
+
"scope"
|
|
133297
|
+
]
|
|
133298
|
+
});
|
|
133184
133299
|
});
|
|
133300
|
+
//#endregion
|
|
133301
|
+
//#region ../blocks/src/contracts/events.ts
|
|
133185
133302
|
const eventAutoApplyDiscountPreviewBaseSchema = z.object({
|
|
133186
133303
|
id: z.string(),
|
|
133187
133304
|
publicLabel: z.string(),
|
|
@@ -133198,7 +133315,207 @@ const eventAutoApplyDiscountPreviewSchema = z.discriminatedUnion("discountType",
|
|
|
133198
133315
|
discountAmountCents: z.number()
|
|
133199
133316
|
})]);
|
|
133200
133317
|
const eventDetailsBlockDefinition = {
|
|
133201
|
-
manifest:
|
|
133318
|
+
manifest: createBlockManifest({
|
|
133319
|
+
variantMeaning: {
|
|
133320
|
+
kind: "arrangement",
|
|
133321
|
+
lookOnlyKeys: ["event-header", "details-panel"]
|
|
133322
|
+
},
|
|
133323
|
+
id: "block.event-details",
|
|
133324
|
+
version: "1.0.0",
|
|
133325
|
+
title: "Event Details",
|
|
133326
|
+
titleSource: "heading",
|
|
133327
|
+
description: "Date/time, venue, map, and other dates for an event",
|
|
133328
|
+
category: "content",
|
|
133329
|
+
contentSource: { kind: "entries" },
|
|
133330
|
+
tags: [
|
|
133331
|
+
"events",
|
|
133332
|
+
"venue",
|
|
133333
|
+
"map",
|
|
133334
|
+
"schedule",
|
|
133335
|
+
"dates"
|
|
133336
|
+
],
|
|
133337
|
+
icon: "MapPin",
|
|
133338
|
+
styleTokens: {
|
|
133339
|
+
background: "surface",
|
|
133340
|
+
typography: "body",
|
|
133341
|
+
spacing: "md"
|
|
133342
|
+
},
|
|
133343
|
+
behaviours: {
|
|
133344
|
+
supportsThemeSwitching: true,
|
|
133345
|
+
inlineEditing: false,
|
|
133346
|
+
animation: false,
|
|
133347
|
+
paletteHidden: false
|
|
133348
|
+
},
|
|
133349
|
+
additionalFields: [
|
|
133350
|
+
{
|
|
133351
|
+
id: "heading",
|
|
133352
|
+
type: "text",
|
|
133353
|
+
label: "Heading",
|
|
133354
|
+
description: "Optional heading shown above event details",
|
|
133355
|
+
required: false,
|
|
133356
|
+
multiline: false,
|
|
133357
|
+
defaultValue: "Event details"
|
|
133358
|
+
},
|
|
133359
|
+
{
|
|
133360
|
+
id: "showVenue",
|
|
133361
|
+
type: "boolean",
|
|
133362
|
+
label: "Show venue",
|
|
133363
|
+
required: false,
|
|
133364
|
+
defaultValue: true,
|
|
133365
|
+
ui: { intent: "display" }
|
|
133366
|
+
},
|
|
133367
|
+
{
|
|
133368
|
+
id: "showTitle",
|
|
133369
|
+
type: "boolean",
|
|
133370
|
+
label: "Show event title",
|
|
133371
|
+
required: false,
|
|
133372
|
+
defaultValue: false,
|
|
133373
|
+
ui: { intent: "display" }
|
|
133374
|
+
},
|
|
133375
|
+
{
|
|
133376
|
+
id: "showDescription",
|
|
133377
|
+
type: "boolean",
|
|
133378
|
+
label: "Show event description",
|
|
133379
|
+
required: false,
|
|
133380
|
+
defaultValue: false,
|
|
133381
|
+
ui: { intent: "display" }
|
|
133382
|
+
},
|
|
133383
|
+
{
|
|
133384
|
+
id: "showMap",
|
|
133385
|
+
type: "boolean",
|
|
133386
|
+
label: "Show map",
|
|
133387
|
+
description: "Embed a map when the venue has coordinates",
|
|
133388
|
+
required: false,
|
|
133389
|
+
defaultValue: true,
|
|
133390
|
+
ui: { intent: "display" }
|
|
133391
|
+
},
|
|
133392
|
+
{
|
|
133393
|
+
id: "showOtherDates",
|
|
133394
|
+
type: "boolean",
|
|
133395
|
+
label: "Show other dates",
|
|
133396
|
+
required: false,
|
|
133397
|
+
defaultValue: true,
|
|
133398
|
+
ui: { intent: "display" }
|
|
133399
|
+
},
|
|
133400
|
+
{
|
|
133401
|
+
id: "otherDatesLimit",
|
|
133402
|
+
type: "select",
|
|
133403
|
+
label: "Other dates limit",
|
|
133404
|
+
required: false,
|
|
133405
|
+
multiple: false,
|
|
133406
|
+
defaultValue: "5",
|
|
133407
|
+
options: [
|
|
133408
|
+
{
|
|
133409
|
+
value: "3",
|
|
133410
|
+
label: "3 dates"
|
|
133411
|
+
},
|
|
133412
|
+
{
|
|
133413
|
+
value: "5",
|
|
133414
|
+
label: "5 dates"
|
|
133415
|
+
},
|
|
133416
|
+
{
|
|
133417
|
+
value: "10",
|
|
133418
|
+
label: "10 dates"
|
|
133419
|
+
},
|
|
133420
|
+
{
|
|
133421
|
+
value: "all",
|
|
133422
|
+
label: "All dates"
|
|
133423
|
+
}
|
|
133424
|
+
],
|
|
133425
|
+
ui: { intent: "display" }
|
|
133426
|
+
},
|
|
133427
|
+
{
|
|
133428
|
+
id: "showCapacity",
|
|
133429
|
+
type: "boolean",
|
|
133430
|
+
label: "Show capacity",
|
|
133431
|
+
required: false,
|
|
133432
|
+
defaultValue: false,
|
|
133433
|
+
ui: { intent: "display" }
|
|
133434
|
+
},
|
|
133435
|
+
{
|
|
133436
|
+
id: "showCost",
|
|
133437
|
+
type: "boolean",
|
|
133438
|
+
label: "Show cost",
|
|
133439
|
+
description: "Display ticket price for paid events",
|
|
133440
|
+
required: false,
|
|
133441
|
+
defaultValue: true,
|
|
133442
|
+
ui: { intent: "display" }
|
|
133443
|
+
},
|
|
133444
|
+
{
|
|
133445
|
+
id: "showAcceptedPasses",
|
|
133446
|
+
type: "boolean",
|
|
133447
|
+
label: "Show accepted passes",
|
|
133448
|
+
description: "Display passes that can be used for this event",
|
|
133449
|
+
required: false,
|
|
133450
|
+
defaultValue: true,
|
|
133451
|
+
ui: { intent: "display" }
|
|
133452
|
+
},
|
|
133453
|
+
{
|
|
133454
|
+
id: "showAcceptedMemberships",
|
|
133455
|
+
type: "boolean",
|
|
133456
|
+
label: "Show accepted memberships",
|
|
133457
|
+
description: "Display memberships that grant access to this event",
|
|
133458
|
+
required: false,
|
|
133459
|
+
defaultValue: true,
|
|
133460
|
+
ui: { intent: "display" }
|
|
133461
|
+
}
|
|
133462
|
+
],
|
|
133463
|
+
layout: [styledSection({
|
|
133464
|
+
baseClass: "",
|
|
133465
|
+
spacing: "spacious",
|
|
133466
|
+
children: sectionContainer([text({ as: "h2" }, bind$1("content.heading"), when("content.heading")), el("event-details", {
|
|
133467
|
+
entryTitle: { $bind: {
|
|
133468
|
+
from: "$root.contentEntry.title",
|
|
133469
|
+
fallback: null
|
|
133470
|
+
} },
|
|
133471
|
+
arrangement: { $bind: { from: "content._effectiveLook.look.structure.byMode.default" } },
|
|
133472
|
+
actionSize: { $bind: { from: "content._effectiveLook.look.structure.actionSize" } },
|
|
133473
|
+
lookSlots: { $bind: { from: "content._lookSlots" } },
|
|
133474
|
+
itemSurfaces: { $bind: { from: "content._effectiveLook.itemSurfaces" } },
|
|
133475
|
+
panelHeading: { $bind: { from: "content._lookPanelHeading" } },
|
|
133476
|
+
occurrenceContext: { $bind: {
|
|
133477
|
+
from: "$root.occurrenceContext",
|
|
133478
|
+
fallback: null
|
|
133479
|
+
} },
|
|
133480
|
+
subject: { $bind: {
|
|
133481
|
+
from: "$root.subject",
|
|
133482
|
+
fallback: null
|
|
133483
|
+
} },
|
|
133484
|
+
events: { $bind: { from: "data.eventDetailsData.events" } },
|
|
133485
|
+
showVenue: { $bind: { from: "content.showVenue" } },
|
|
133486
|
+
showTitle: { $bind: { from: "content.showTitle" } },
|
|
133487
|
+
showDescription: { $bind: { from: "content.showDescription" } },
|
|
133488
|
+
showMap: { $bind: { from: "content.showMap" } },
|
|
133489
|
+
showOtherDates: { $bind: { from: "content.showOtherDates" } },
|
|
133490
|
+
otherDatesLimit: { $bind: {
|
|
133491
|
+
from: "content.otherDatesLimit",
|
|
133492
|
+
fallback: "5"
|
|
133493
|
+
} },
|
|
133494
|
+
showCost: { $bind: {
|
|
133495
|
+
from: "content.showCost",
|
|
133496
|
+
fallback: true
|
|
133497
|
+
} },
|
|
133498
|
+
showCapacity: { $bind: {
|
|
133499
|
+
from: "content.showCapacity",
|
|
133500
|
+
fallback: false
|
|
133501
|
+
} },
|
|
133502
|
+
showAcceptedPasses: { $bind: {
|
|
133503
|
+
from: "content.showAcceptedPasses",
|
|
133504
|
+
fallback: true
|
|
133505
|
+
} },
|
|
133506
|
+
showAcceptedMemberships: { $bind: {
|
|
133507
|
+
from: "content.showAcceptedMemberships",
|
|
133508
|
+
fallback: true
|
|
133509
|
+
} },
|
|
133510
|
+
sitePasses: { $bind: { from: "data.eventDetailsData.sitePasses" } },
|
|
133511
|
+
siteMemberships: { $bind: { from: "data.eventDetailsData.siteMemberships" } },
|
|
133512
|
+
autoApplyDiscount: { $bind: {
|
|
133513
|
+
from: "data.eventDetailsData.autoApplyDiscount",
|
|
133514
|
+
fallback: null
|
|
133515
|
+
} }
|
|
133516
|
+
})], { gap: "lg" })
|
|
133517
|
+
})]
|
|
133518
|
+
}),
|
|
133202
133519
|
dataSchemas: {
|
|
133203
133520
|
eventDetailsData: z.object({
|
|
133204
133521
|
events: publicEventsArraySchema,
|
|
@@ -149854,6 +150171,256 @@ const containerResponsiveThemeCss = `/*
|
|
|
149854
150171
|
/* Styles for SSR placeholder */
|
|
149855
150172
|
}
|
|
149856
150173
|
|
|
150174
|
+
/* Reserved portal ticket and digital-product pages.
|
|
150175
|
+
* These render without site chrome, so the page itself sits on the site
|
|
150176
|
+
* background (from the surrounding theme scope) and the card mirrors .cp-login. */
|
|
150177
|
+
:where(.theme-scope) :where([data-block="customer-portal"]).cp-page {
|
|
150178
|
+
box-sizing: border-box;
|
|
150179
|
+
min-height: 100vh;
|
|
150180
|
+
padding: 2.5rem 1rem;
|
|
150181
|
+
color: var(--cp-text);
|
|
150182
|
+
font-family: var(--font-body);
|
|
150183
|
+
font-size: var(--fs-body);
|
|
150184
|
+
}
|
|
150185
|
+
|
|
150186
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-card {
|
|
150187
|
+
box-sizing: border-box;
|
|
150188
|
+
width: 100%;
|
|
150189
|
+
max-width: 42rem;
|
|
150190
|
+
margin-inline: auto;
|
|
150191
|
+
padding: 2rem;
|
|
150192
|
+
border: 1px solid var(--cp-card-border);
|
|
150193
|
+
border-radius: var(--cp-card-radius);
|
|
150194
|
+
background: var(--cp-card-bg);
|
|
150195
|
+
color: var(--cp-text);
|
|
150196
|
+
--rb-surface-text-color: var(--cp-text);
|
|
150197
|
+
--rb-surface-heading-color: var(--cp-text);
|
|
150198
|
+
--rb-surface-link-color: var(--cp-primary);
|
|
150199
|
+
--rb-surface-link-hover-color: var(--rb-prose-link-hover-color, var(--cp-primary));
|
|
150200
|
+
--rb-surface-supporting-color: var(--cp-muted);
|
|
150201
|
+
}
|
|
150202
|
+
|
|
150203
|
+
:where(.theme-scope)
|
|
150204
|
+
:where([data-block="customer-portal"])
|
|
150205
|
+
.cp-page-card--compact {
|
|
150206
|
+
max-width: 480px;
|
|
150207
|
+
}
|
|
150208
|
+
|
|
150209
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket {
|
|
150210
|
+
max-width: 40rem;
|
|
150211
|
+
}
|
|
150212
|
+
|
|
150213
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-title {
|
|
150214
|
+
margin: 0;
|
|
150215
|
+
font-size: var(--fs-h3, 1.5rem);
|
|
150216
|
+
line-height: 1.2;
|
|
150217
|
+
}
|
|
150218
|
+
|
|
150219
|
+
/* The sign-in card's title is the page heading here, so it is an h1 sized like
|
|
150220
|
+
* the main portal's sign-in heading. */
|
|
150221
|
+
:where(.theme-scope)
|
|
150222
|
+
:where([data-block="customer-portal"]).cp-page
|
|
150223
|
+
.cp-login__title {
|
|
150224
|
+
font-size: var(--fs-h2, 2rem);
|
|
150225
|
+
line-height: 1.15;
|
|
150226
|
+
}
|
|
150227
|
+
|
|
150228
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-subtitle {
|
|
150229
|
+
margin: 0;
|
|
150230
|
+
font-size: 1.25rem;
|
|
150231
|
+
line-height: 1.3;
|
|
150232
|
+
}
|
|
150233
|
+
|
|
150234
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-copy {
|
|
150235
|
+
margin-top: 0.75rem;
|
|
150236
|
+
}
|
|
150237
|
+
|
|
150238
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-copy p {
|
|
150239
|
+
margin: 0;
|
|
150240
|
+
}
|
|
150241
|
+
|
|
150242
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-hint {
|
|
150243
|
+
margin: 0.25rem 0 0;
|
|
150244
|
+
color: var(--cp-muted);
|
|
150245
|
+
font-size: 0.875rem;
|
|
150246
|
+
}
|
|
150247
|
+
|
|
150248
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-stack,
|
|
150249
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-files,
|
|
150250
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-details {
|
|
150251
|
+
display: grid;
|
|
150252
|
+
gap: 0.75rem;
|
|
150253
|
+
}
|
|
150254
|
+
|
|
150255
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-details {
|
|
150256
|
+
gap: 0.25rem;
|
|
150257
|
+
font-size: 0.9375rem;
|
|
150258
|
+
}
|
|
150259
|
+
|
|
150260
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-emphasis {
|
|
150261
|
+
margin: 0;
|
|
150262
|
+
font-family: inherit;
|
|
150263
|
+
font-size: inherit;
|
|
150264
|
+
font-style: normal;
|
|
150265
|
+
font-weight: 600;
|
|
150266
|
+
letter-spacing: normal;
|
|
150267
|
+
text-transform: none;
|
|
150268
|
+
}
|
|
150269
|
+
|
|
150270
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket__heading,
|
|
150271
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-file {
|
|
150272
|
+
display: flex;
|
|
150273
|
+
align-items: flex-start;
|
|
150274
|
+
justify-content: space-between;
|
|
150275
|
+
gap: 1rem;
|
|
150276
|
+
}
|
|
150277
|
+
|
|
150278
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket__body {
|
|
150279
|
+
display: grid;
|
|
150280
|
+
gap: 1.5rem;
|
|
150281
|
+
margin-top: 1.5rem;
|
|
150282
|
+
}
|
|
150283
|
+
|
|
150284
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket__qr {
|
|
150285
|
+
align-self: start;
|
|
150286
|
+
padding: 1rem;
|
|
150287
|
+
border: 1px solid var(--cp-card-border);
|
|
150288
|
+
border-radius: var(--cp-control-radius);
|
|
150289
|
+
background: var(--cp-card-bg);
|
|
150290
|
+
}
|
|
150291
|
+
|
|
150292
|
+
:where(.theme-scope)
|
|
150293
|
+
:where([data-block="customer-portal"])
|
|
150294
|
+
.cp-ticket__qr-image {
|
|
150295
|
+
display: block;
|
|
150296
|
+
width: 176px;
|
|
150297
|
+
height: 176px;
|
|
150298
|
+
max-width: 100%;
|
|
150299
|
+
}
|
|
150300
|
+
|
|
150301
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket__code-row {
|
|
150302
|
+
display: flex;
|
|
150303
|
+
flex-wrap: wrap;
|
|
150304
|
+
align-items: center;
|
|
150305
|
+
gap: 0.5rem;
|
|
150306
|
+
}
|
|
150307
|
+
|
|
150308
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket__code {
|
|
150309
|
+
flex: 1 1 12rem;
|
|
150310
|
+
min-width: 0;
|
|
150311
|
+
padding: 0.5rem 0.75rem;
|
|
150312
|
+
border: 1px solid var(--cp-card-border);
|
|
150313
|
+
border-radius: var(--cp-control-radius);
|
|
150314
|
+
background: rgb(var(--tb-background));
|
|
150315
|
+
overflow-wrap: anywhere;
|
|
150316
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
150317
|
+
font-size: 0.75rem;
|
|
150318
|
+
}
|
|
150319
|
+
|
|
150320
|
+
/* Copy sits beside the code rather than under it: some site styles draw the
|
|
150321
|
+
* secondary button as text with inline padding, which would otherwise leave
|
|
150322
|
+
* its label visibly indented from the code box's left edge. */
|
|
150323
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket__copy {
|
|
150324
|
+
flex: none;
|
|
150325
|
+
}
|
|
150326
|
+
|
|
150327
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-code {
|
|
150328
|
+
margin-top: 0.5rem;
|
|
150329
|
+
}
|
|
150330
|
+
|
|
150331
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-file {
|
|
150332
|
+
align-items: center;
|
|
150333
|
+
padding: 0.75rem 1rem;
|
|
150334
|
+
border: 1px solid var(--cp-card-border);
|
|
150335
|
+
border-radius: var(--cp-control-radius);
|
|
150336
|
+
color: var(--cp-text);
|
|
150337
|
+
text-decoration: none;
|
|
150338
|
+
transition: border-color 0.15s ease;
|
|
150339
|
+
}
|
|
150340
|
+
|
|
150341
|
+
:where(.theme-scope)
|
|
150342
|
+
:where([data-block="customer-portal"])
|
|
150343
|
+
.cp-page-file:hover {
|
|
150344
|
+
border-color: var(--cp-primary);
|
|
150345
|
+
}
|
|
150346
|
+
|
|
150347
|
+
:where(.theme-scope)
|
|
150348
|
+
:where([data-block="customer-portal"])
|
|
150349
|
+
.cp-page-file:focus-visible {
|
|
150350
|
+
outline: 2px solid var(--cp-primary);
|
|
150351
|
+
outline-offset: 2px;
|
|
150352
|
+
}
|
|
150353
|
+
|
|
150354
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-file .cp-page-hint {
|
|
150355
|
+
margin: 0;
|
|
150356
|
+
overflow-wrap: anywhere;
|
|
150357
|
+
text-align: right;
|
|
150358
|
+
}
|
|
150359
|
+
|
|
150360
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-page-link {
|
|
150361
|
+
color: var(--cp-primary);
|
|
150362
|
+
text-decoration: underline;
|
|
150363
|
+
text-underline-offset: 0.15em;
|
|
150364
|
+
}
|
|
150365
|
+
|
|
150366
|
+
@container rb-site (max-width: 640px) {
|
|
150367
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
150368
|
+
:where(.theme-scope:is(*, :scope)) :where([data-block="customer-portal"]).cp-page {
|
|
150369
|
+
padding: 1.5rem 1rem;
|
|
150370
|
+
}
|
|
150371
|
+
|
|
150372
|
+
:where(.theme-scope:is(*, :scope)) :where([data-block="customer-portal"]) .cp-page-card {
|
|
150373
|
+
padding: 1.5rem;
|
|
150374
|
+
}
|
|
150375
|
+
|
|
150376
|
+
:where(.theme-scope:is(*, :scope)) :where([data-block="customer-portal"]) .cp-page-file {
|
|
150377
|
+
flex-direction: column;
|
|
150378
|
+
align-items: flex-start;
|
|
150379
|
+
gap: 0.25rem;
|
|
150380
|
+
}
|
|
150381
|
+
|
|
150382
|
+
:where(.theme-scope:is(*, :scope))
|
|
150383
|
+
:where([data-block="customer-portal"])
|
|
150384
|
+
.cp-page-file
|
|
150385
|
+
.cp-page-hint {
|
|
150386
|
+
text-align: left;
|
|
150387
|
+
}
|
|
150388
|
+
}
|
|
150389
|
+
}
|
|
150390
|
+
|
|
150391
|
+
@container rb-site (min-width: 48rem) {
|
|
150392
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
150393
|
+
:where(.theme-scope:is(*, :scope)) :where([data-block="customer-portal"]) .cp-ticket__body {
|
|
150394
|
+
grid-template-columns: 210px 1fr;
|
|
150395
|
+
}
|
|
150396
|
+
}
|
|
150397
|
+
}
|
|
150398
|
+
|
|
150399
|
+
@media print {
|
|
150400
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-print-hidden {
|
|
150401
|
+
display: none;
|
|
150402
|
+
}
|
|
150403
|
+
|
|
150404
|
+
:where(.theme-scope) :where([data-block="customer-portal"]).cp-page {
|
|
150405
|
+
min-height: 0;
|
|
150406
|
+
padding: 0;
|
|
150407
|
+
}
|
|
150408
|
+
|
|
150409
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket,
|
|
150410
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-ticket__qr {
|
|
150411
|
+
max-width: none;
|
|
150412
|
+
padding: 0;
|
|
150413
|
+
border: 0;
|
|
150414
|
+
border-radius: 0;
|
|
150415
|
+
box-shadow: none;
|
|
150416
|
+
}
|
|
150417
|
+
}
|
|
150418
|
+
|
|
150419
|
+
/* Preserve line breaks in the before-you-come instructions. */
|
|
150420
|
+
:where(.theme-scope) :where([data-block="customer-portal"]) .cp-before-you-come__body {
|
|
150421
|
+
white-space: pre-wrap;
|
|
150422
|
+
}
|
|
150423
|
+
|
|
149857
150424
|
/* =============================================================================
|
|
149858
150425
|
* Runtime: Header Navigation Dropdown (Tailwind-free)
|
|
149859
150426
|
*
|
|
@@ -151544,9 +152111,18 @@ const containerResponsiveThemeCss = `/*
|
|
|
151544
152111
|
border-radius: 9999px;
|
|
151545
152112
|
}
|
|
151546
152113
|
|
|
152114
|
+
/*
|
|
152115
|
+
* Statement, copy and media: at tablet widths the statement takes the whole
|
|
152116
|
+
* first row and copy sits beside the media underneath; at desktop all three
|
|
152117
|
+
* share one row. The grid item is the title itself, or the heading-decoration
|
|
152118
|
+
* wrapper around it when the site style decorates headings, so both are
|
|
152119
|
+
* targeted. Without the wrapper case the title took a column of its own and
|
|
152120
|
+
* the media dropped to a lonely third row.
|
|
152121
|
+
*/
|
|
151547
152122
|
@container rb-site (min-width: 768px) {
|
|
151548
152123
|
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
151549
|
-
:where(.theme-scope:is(*, :scope)) [data-block="intro"][data-block-variant="statement-media"] .rb-intro-statement-media-title
|
|
152124
|
+
:where(.theme-scope:is(*, :scope)) [data-block="intro"][data-block-variant="statement-media"] .rb-intro-statement-media > .rb-intro-statement-media-title,
|
|
152125
|
+
:where(.theme-scope:is(*, :scope)) [data-block="intro"][data-block-variant="statement-media"] .rb-intro-statement-media > :has(> .rb-intro-statement-media-title) {
|
|
151550
152126
|
grid-column: 1 / -1;
|
|
151551
152127
|
}
|
|
151552
152128
|
}
|
|
@@ -151554,7 +152130,8 @@ const containerResponsiveThemeCss = `/*
|
|
|
151554
152130
|
|
|
151555
152131
|
@container rb-site (min-width: 1024px) {
|
|
151556
152132
|
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
151557
|
-
:where(.theme-scope:is(*, :scope)) [data-block="intro"][data-block-variant="statement-media"] .rb-intro-statement-media-title
|
|
152133
|
+
:where(.theme-scope:is(*, :scope)) [data-block="intro"][data-block-variant="statement-media"] .rb-intro-statement-media > .rb-intro-statement-media-title,
|
|
152134
|
+
:where(.theme-scope:is(*, :scope)) [data-block="intro"][data-block-variant="statement-media"] .rb-intro-statement-media > :has(> .rb-intro-statement-media-title) {
|
|
151558
152135
|
grid-column: auto;
|
|
151559
152136
|
}
|
|
151560
152137
|
}
|
|
@@ -156605,27 +157182,6 @@ function ThemeScope({ theme, children, themeId = "theme-default", responsiveMode
|
|
|
156605
157182
|
});
|
|
156606
157183
|
}
|
|
156607
157184
|
//#endregion
|
|
156608
|
-
//#region ../blocks/src/system/data/loaderEndpoints.ts
|
|
156609
|
-
const SUPPORTED_LOADER_ENDPOINTS = [
|
|
156610
|
-
"listPublishedEntries",
|
|
156611
|
-
"getPublishedEntryPreview",
|
|
156612
|
-
"listPublicEvents",
|
|
156613
|
-
"listPublicEventCalendarWindow",
|
|
156614
|
-
"listPublicRecurringSchedule",
|
|
156615
|
-
"getPublicEventDetails",
|
|
156616
|
-
"listPublicRouteCandidates",
|
|
156617
|
-
"listPublicTeamMembers",
|
|
156618
|
-
"listPublicProducts",
|
|
156619
|
-
"listPublicPasses",
|
|
156620
|
-
"listPublicMemberships",
|
|
156621
|
-
"getPublicFormById",
|
|
156622
|
-
"getPublicBookingServices",
|
|
156623
|
-
"getPublicWeeklySlotAvailability"
|
|
156624
|
-
];
|
|
156625
|
-
function isSupportedLoaderEndpoint(endpoint) {
|
|
156626
|
-
return SUPPORTED_LOADER_ENDPOINTS.includes(endpoint);
|
|
156627
|
-
}
|
|
156628
|
-
//#endregion
|
|
156629
157185
|
//#region ../content-editor/src/linkedEntries/domain.ts
|
|
156630
157186
|
function unsafeAsLinkedContentEntryId(value) {
|
|
156631
157187
|
return value;
|
|
@@ -179430,211 +179986,6 @@ const waitlistClaimResponseSchema = z.object({
|
|
|
179430
179986
|
}).strict()
|
|
179431
179987
|
}).strict();
|
|
179432
179988
|
//#endregion
|
|
179433
|
-
//#region ../blocks/src/system/runtime/api/schemas/events.ts
|
|
179434
|
-
const uuid = z.string().uuid();
|
|
179435
|
-
const eventRegistrationStatusReferenceSchema = z.discriminatedUnion("scope", [z.object({
|
|
179436
|
-
scope: z.literal("occurrence"),
|
|
179437
|
-
attendeeId: uuid
|
|
179438
|
-
}).strict(), z.object({
|
|
179439
|
-
scope: z.literal("wholeSeries"),
|
|
179440
|
-
registrationId: uuid
|
|
179441
|
-
}).strict()]);
|
|
179442
|
-
const eventRegistrationPaymentSubjectSchema = z.discriminatedUnion("scope", [z.object({
|
|
179443
|
-
scope: z.literal("occurrence"),
|
|
179444
|
-
submissionId: uuid,
|
|
179445
|
-
attendeeId: uuid
|
|
179446
|
-
}).strict(), z.object({
|
|
179447
|
-
scope: z.literal("wholeSeries"),
|
|
179448
|
-
submissionId: uuid
|
|
179449
|
-
}).strict()]);
|
|
179450
|
-
const identityFields = {
|
|
179451
|
-
submissionId: uuid,
|
|
179452
|
-
seriesId: uuid,
|
|
179453
|
-
attendanceMode: z.enum(["in_person", "online"])
|
|
179454
|
-
};
|
|
179455
|
-
const confirmedBookingIdentitySchema = z.discriminatedUnion("scope", [z.object({
|
|
179456
|
-
scope: z.literal("occurrence"),
|
|
179457
|
-
attendeeId: uuid,
|
|
179458
|
-
occurrenceId: uuid,
|
|
179459
|
-
...identityFields
|
|
179460
|
-
}).strict(), z.object({
|
|
179461
|
-
scope: z.literal("wholeSeries"),
|
|
179462
|
-
registrationId: uuid,
|
|
179463
|
-
...identityFields
|
|
179464
|
-
}).strict()]);
|
|
179465
|
-
const bookedTicketLineSchema = z.object({
|
|
179466
|
-
label: z.string().min(1),
|
|
179467
|
-
quantity: z.number().int().positive()
|
|
179468
|
-
}).strict();
|
|
179469
|
-
const eventBookingOutcomeSchema = z.discriminatedUnion("kind", [z.object({
|
|
179470
|
-
kind: z.literal("detailsAvailable"),
|
|
179471
|
-
identity: confirmedBookingIdentitySchema,
|
|
179472
|
-
ticketLines: z.tuple([bookedTicketLineSchema]).rest(bookedTicketLineSchema).readonly(),
|
|
179473
|
-
payment: confirmationPaymentSchema
|
|
179474
|
-
}).strict(), z.object({
|
|
179475
|
-
kind: z.literal("detailsUnavailable"),
|
|
179476
|
-
identity: confirmedBookingIdentitySchema
|
|
179477
|
-
}).strict()]);
|
|
179478
|
-
const eventEmbeddedCheckoutSchema = z.object({
|
|
179479
|
-
kind: z.literal("embedded"),
|
|
179480
|
-
sessionId: z.string().min(1),
|
|
179481
|
-
clientSecret: z.string().min(1),
|
|
179482
|
-
livemode: z.boolean(),
|
|
179483
|
-
expiresAt: z.string().datetime({ offset: true }),
|
|
179484
|
-
browser: z.discriminatedUnion("kind", [z.object({
|
|
179485
|
-
kind: z.literal("connect"),
|
|
179486
|
-
publishableKey: z.string().min(1),
|
|
179487
|
-
accountId: z.string().min(1)
|
|
179488
|
-
}).strict(), z.object({
|
|
179489
|
-
kind: z.literal("direct"),
|
|
179490
|
-
publishableKey: z.string().min(1)
|
|
179491
|
-
}).strict()])
|
|
179492
|
-
}).strict();
|
|
179493
|
-
const decorations = {
|
|
179494
|
-
mailingListSignupNote: z.enum(["confirmation_required", "not_confirmed"]).optional(),
|
|
179495
|
-
demoBookingPass: z.string().optional()
|
|
179496
|
-
};
|
|
179497
|
-
const eventRegistrationSummarySchema = z.object({
|
|
179498
|
-
message: z.string(),
|
|
179499
|
-
passCreditsRemaining: z.number().int().nonnegative().optional()
|
|
179500
|
-
}).strict();
|
|
179501
|
-
const eventRegisterResponseSchema = z.discriminatedUnion("kind", [
|
|
179502
|
-
z.object({
|
|
179503
|
-
kind: z.literal("bookingComplete"),
|
|
179504
|
-
outcome: eventBookingOutcomeSchema,
|
|
179505
|
-
summary: eventRegistrationSummarySchema,
|
|
179506
|
-
...decorations
|
|
179507
|
-
}).strict(),
|
|
179508
|
-
z.object({
|
|
179509
|
-
kind: z.literal("checkoutRequired"),
|
|
179510
|
-
reference: eventRegistrationStatusReferenceSchema,
|
|
179511
|
-
checkout: eventEmbeddedCheckoutSchema,
|
|
179512
|
-
submissionId: uuid,
|
|
179513
|
-
...decorations
|
|
179514
|
-
}).strict(),
|
|
179515
|
-
z.object({
|
|
179516
|
-
kind: z.literal("paymentStatusRequired"),
|
|
179517
|
-
subject: eventRegistrationPaymentSubjectSchema,
|
|
179518
|
-
...decorations
|
|
179519
|
-
}).strict(),
|
|
179520
|
-
z.object({
|
|
179521
|
-
kind: z.literal("waitlisted"),
|
|
179522
|
-
waitlist: z.object({
|
|
179523
|
-
reference: z.union([z.object({
|
|
179524
|
-
scope: z.literal("occurrence"),
|
|
179525
|
-
attendeeId: uuid
|
|
179526
|
-
}).strict(), z.object({
|
|
179527
|
-
scope: z.enum(["occurrence", "wholeSeries"]),
|
|
179528
|
-
waitlistEntryId: uuid
|
|
179529
|
-
}).strict()]),
|
|
179530
|
-
position: z.number().int().nonnegative().nullable(),
|
|
179531
|
-
message: z.string(),
|
|
179532
|
-
emailFollowupMessage: z.string().optional()
|
|
179533
|
-
}).strict(),
|
|
179534
|
-
...decorations
|
|
179535
|
-
}).strict()
|
|
179536
|
-
]);
|
|
179537
|
-
const checkoutStatusArms = [
|
|
179538
|
-
z.object({
|
|
179539
|
-
kind: z.literal("resolved"),
|
|
179540
|
-
outcome: eventBookingOutcomeSchema
|
|
179541
|
-
}).strict(),
|
|
179542
|
-
z.object({ kind: z.literal("abandoned") }).strict(),
|
|
179543
|
-
z.object({ kind: z.literal("reconciliationRequired") }).strict(),
|
|
179544
|
-
z.object({
|
|
179545
|
-
kind: z.literal("paymentProcessing"),
|
|
179546
|
-
recoverableUntil: z.string().optional()
|
|
179547
|
-
}).strict(),
|
|
179548
|
-
z.object({
|
|
179549
|
-
kind: z.literal("paymentAvailable"),
|
|
179550
|
-
checkout: eventEmbeddedCheckoutSchema,
|
|
179551
|
-
recoverableUntil: z.string().optional()
|
|
179552
|
-
}).strict(),
|
|
179553
|
-
z.object({
|
|
179554
|
-
kind: z.literal("paymentRetryAvailable"),
|
|
179555
|
-
place: z.enum(["held", "released"])
|
|
179556
|
-
}).strict(),
|
|
179557
|
-
z.object({
|
|
179558
|
-
kind: z.literal("paymentCheckUnavailable"),
|
|
179559
|
-
recoverableUntil: z.string().optional()
|
|
179560
|
-
}).strict(),
|
|
179561
|
-
z.object({ kind: z.literal("paymentAssistanceRequired") }).strict()
|
|
179562
|
-
];
|
|
179563
|
-
z.discriminatedUnion("kind", [...checkoutStatusArms, z.object({ kind: z.literal("notFound") }).strict()]);
|
|
179564
|
-
const eventCheckoutReturnResponseSchema = z.discriminatedUnion("kind", [
|
|
179565
|
-
z.object({
|
|
179566
|
-
kind: z.literal("checkout"),
|
|
179567
|
-
subject: eventRegistrationPaymentSubjectSchema,
|
|
179568
|
-
outcome: z.discriminatedUnion("kind", checkoutStatusArms)
|
|
179569
|
-
}).strict(),
|
|
179570
|
-
z.object({ kind: z.literal("notFound") }).strict(),
|
|
179571
|
-
z.object({ kind: z.literal("reconciliationRequired") }).strict()
|
|
179572
|
-
]).superRefine((response, ctx) => {
|
|
179573
|
-
if (response.kind !== "checkout" || response.outcome.kind !== "resolved") return;
|
|
179574
|
-
const identity = response.outcome.outcome.identity;
|
|
179575
|
-
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({
|
|
179576
|
-
code: "custom",
|
|
179577
|
-
message: "Confirmed booking does not match checkout subject",
|
|
179578
|
-
path: ["outcome"]
|
|
179579
|
-
});
|
|
179580
|
-
});
|
|
179581
|
-
const checkoutDecorations = { mailingListSignupNote: decorations.mailingListSignupNote };
|
|
179582
|
-
const eventCheckoutResponseSchema = z.union([
|
|
179583
|
-
z.object({
|
|
179584
|
-
kind: z.literal("completed"),
|
|
179585
|
-
scope: z.literal("occurrence"),
|
|
179586
|
-
outcome: eventBookingOutcomeSchema,
|
|
179587
|
-
...checkoutDecorations
|
|
179588
|
-
}).strict(),
|
|
179589
|
-
z.object({
|
|
179590
|
-
kind: z.literal("completed"),
|
|
179591
|
-
scope: z.literal("wholeSeries"),
|
|
179592
|
-
outcome: eventBookingOutcomeSchema,
|
|
179593
|
-
...checkoutDecorations
|
|
179594
|
-
}).strict(),
|
|
179595
|
-
z.object({
|
|
179596
|
-
kind: z.literal("checkoutRequired"),
|
|
179597
|
-
scope: z.literal("occurrence"),
|
|
179598
|
-
attendeeId: uuid,
|
|
179599
|
-
checkout: eventEmbeddedCheckoutSchema,
|
|
179600
|
-
...checkoutDecorations
|
|
179601
|
-
}).strict(),
|
|
179602
|
-
z.object({
|
|
179603
|
-
kind: z.literal("checkoutRequired"),
|
|
179604
|
-
scope: z.literal("wholeSeries"),
|
|
179605
|
-
registrationId: uuid,
|
|
179606
|
-
checkoutAttemptId: uuid,
|
|
179607
|
-
checkout: eventEmbeddedCheckoutSchema,
|
|
179608
|
-
recoverableUntil: z.string().optional(),
|
|
179609
|
-
...checkoutDecorations
|
|
179610
|
-
}).strict(),
|
|
179611
|
-
z.object({
|
|
179612
|
-
scope: z.literal("wholeSeries"),
|
|
179613
|
-
status: z.literal("paymentStatusRequired"),
|
|
179614
|
-
checkoutAttemptId: uuid,
|
|
179615
|
-
recoverableUntil: z.string().optional(),
|
|
179616
|
-
...checkoutDecorations
|
|
179617
|
-
}).strict(),
|
|
179618
|
-
z.object({
|
|
179619
|
-
scope: z.literal("wholeSeries"),
|
|
179620
|
-
status: z.literal("waitlist"),
|
|
179621
|
-
waitlistEntryId: uuid,
|
|
179622
|
-
waitlistPosition: z.number().int().nonnegative().nullable(),
|
|
179623
|
-
alreadyRegistered: z.boolean().optional(),
|
|
179624
|
-
...checkoutDecorations
|
|
179625
|
-
}).strict()
|
|
179626
|
-
]).superRefine((response, ctx) => {
|
|
179627
|
-
if ("kind" in response && response.kind === "completed" && response.scope !== response.outcome.identity.scope) ctx.addIssue({
|
|
179628
|
-
code: "custom",
|
|
179629
|
-
message: "Confirmed booking scope mismatch",
|
|
179630
|
-
path: [
|
|
179631
|
-
"outcome",
|
|
179632
|
-
"identity",
|
|
179633
|
-
"scope"
|
|
179634
|
-
]
|
|
179635
|
-
});
|
|
179636
|
-
});
|
|
179637
|
-
//#endregion
|
|
179638
179989
|
//#region ../blocks/src/system/runtime/api/deduplication.ts
|
|
179639
179990
|
/**
|
|
179640
179991
|
* Create a request deduplication cache.
|
|
@@ -179883,6 +180234,48 @@ const NEWSLETTER = { subscribe: {
|
|
|
179883
180234
|
method: "POST"
|
|
179884
180235
|
} };
|
|
179885
180236
|
const PORTAL = {
|
|
180237
|
+
createAppointmentBookingQuestionsUploadUrl: {
|
|
180238
|
+
path: "/portal/appointments/{appointmentId}/booking-questions/upload-url",
|
|
180239
|
+
method: "POST",
|
|
180240
|
+
authScope: "portal",
|
|
180241
|
+
skipPreviewStage: true
|
|
180242
|
+
},
|
|
180243
|
+
finalizeAppointmentBookingQuestionsUpload: {
|
|
180244
|
+
path: "/portal/appointments/{appointmentId}/booking-questions/upload",
|
|
180245
|
+
method: "POST",
|
|
180246
|
+
authScope: "portal",
|
|
180247
|
+
skipPreviewStage: true
|
|
180248
|
+
},
|
|
180249
|
+
createEventBookingQuestionsUploadUrl: {
|
|
180250
|
+
path: "/portal/events/{registrationId}/booking-questions/upload-url",
|
|
180251
|
+
method: "POST",
|
|
180252
|
+
authScope: "portal",
|
|
180253
|
+
skipPreviewStage: true
|
|
180254
|
+
},
|
|
180255
|
+
finalizeEventBookingQuestionsUpload: {
|
|
180256
|
+
path: "/portal/events/{registrationId}/booking-questions/upload",
|
|
180257
|
+
method: "POST",
|
|
180258
|
+
authScope: "portal",
|
|
180259
|
+
skipPreviewStage: true
|
|
180260
|
+
},
|
|
180261
|
+
createWholeSeriesBookingQuestionsUploadUrl: {
|
|
180262
|
+
path: "/portal/dated-offerings/whole-series/{registrationId}/booking-questions/upload-url",
|
|
180263
|
+
method: "POST",
|
|
180264
|
+
authScope: "portal",
|
|
180265
|
+
skipPreviewStage: true
|
|
180266
|
+
},
|
|
180267
|
+
finalizeWholeSeriesBookingQuestionsUpload: {
|
|
180268
|
+
path: "/portal/dated-offerings/whole-series/{registrationId}/booking-questions/upload",
|
|
180269
|
+
method: "POST",
|
|
180270
|
+
authScope: "portal",
|
|
180271
|
+
skipPreviewStage: true
|
|
180272
|
+
},
|
|
180273
|
+
cancelWaitlist: {
|
|
180274
|
+
path: "/portal/waitlists/{entryId}/cancel",
|
|
180275
|
+
method: "POST",
|
|
180276
|
+
authScope: "portal",
|
|
180277
|
+
skipPreviewStage: true
|
|
180278
|
+
},
|
|
179886
180279
|
getProfile: {
|
|
179887
180280
|
path: "/portal/me",
|
|
179888
180281
|
method: "GET",
|
|
@@ -180060,7 +180453,7 @@ const PORTAL = {
|
|
|
180060
180453
|
sendMagicLink: {
|
|
180061
180454
|
path: "/portal/auth/send-magic-link",
|
|
180062
180455
|
method: "POST",
|
|
180063
|
-
authScope: "
|
|
180456
|
+
authScope: "public",
|
|
180064
180457
|
skipPreviewStage: true
|
|
180065
180458
|
},
|
|
180066
180459
|
logout: {
|
|
@@ -180271,6 +180664,7 @@ function createBlockApi(config) {
|
|
|
180271
180664
|
return endpoint.skipPreviewStage === true;
|
|
180272
180665
|
}
|
|
180273
180666
|
function selectAuth(endpoint) {
|
|
180667
|
+
if (endpoint.authScope === "public") return { type: "none" };
|
|
180274
180668
|
if (endpoint.authScope === "portal" && authOverrides?.portal) return authOverrides.portal;
|
|
180275
180669
|
if (readAuthority && !endpoint.previewRead) return { type: "none" };
|
|
180276
180670
|
return auth;
|
|
@@ -180634,8 +181028,53 @@ function createBlockApi(config) {
|
|
|
180634
181028
|
async getPortalMemberships() {
|
|
180635
181029
|
return (await request(PORTAL.getMemberships)).memberships;
|
|
180636
181030
|
},
|
|
180637
|
-
|
|
180638
|
-
return
|
|
181031
|
+
getPortalEvents(params) {
|
|
181032
|
+
return request(PORTAL.getEvents, { query: params });
|
|
181033
|
+
},
|
|
181034
|
+
async cancelPortalWaitlist(entryId) {
|
|
181035
|
+
try {
|
|
181036
|
+
return await request(PORTAL.cancelWaitlist, { path: buildPath(PORTAL.cancelWaitlist.path, { entryId }) });
|
|
181037
|
+
} catch (error) {
|
|
181038
|
+
if (error instanceof BlockApiError && error.status === 409) return { outcome: "alreadyClosed" };
|
|
181039
|
+
if (error instanceof BlockApiError && error.status === 404) return { outcome: "notFound" };
|
|
181040
|
+
throw error;
|
|
181041
|
+
}
|
|
181042
|
+
},
|
|
181043
|
+
createPortalAppointmentBookingQuestionsUploadUrl(appointmentId, data) {
|
|
181044
|
+
return request(PORTAL.createAppointmentBookingQuestionsUploadUrl, {
|
|
181045
|
+
path: buildPath(PORTAL.createAppointmentBookingQuestionsUploadUrl.path, { appointmentId }),
|
|
181046
|
+
body: data
|
|
181047
|
+
});
|
|
181048
|
+
},
|
|
181049
|
+
async finalizePortalAppointmentBookingQuestionsUpload(appointmentId, data) {
|
|
181050
|
+
return (await request(PORTAL.finalizeAppointmentBookingQuestionsUpload, {
|
|
181051
|
+
path: buildPath(PORTAL.finalizeAppointmentBookingQuestionsUpload.path, { appointmentId }),
|
|
181052
|
+
body: data
|
|
181053
|
+
})).answer;
|
|
181054
|
+
},
|
|
181055
|
+
createPortalEventBookingQuestionsUploadUrl(registrationId, data) {
|
|
181056
|
+
return request(PORTAL.createEventBookingQuestionsUploadUrl, {
|
|
181057
|
+
path: buildPath(PORTAL.createEventBookingQuestionsUploadUrl.path, { registrationId }),
|
|
181058
|
+
body: data
|
|
181059
|
+
});
|
|
181060
|
+
},
|
|
181061
|
+
async finalizePortalEventBookingQuestionsUpload(registrationId, data) {
|
|
181062
|
+
return (await request(PORTAL.finalizeEventBookingQuestionsUpload, {
|
|
181063
|
+
path: buildPath(PORTAL.finalizeEventBookingQuestionsUpload.path, { registrationId }),
|
|
181064
|
+
body: data
|
|
181065
|
+
})).answer;
|
|
181066
|
+
},
|
|
181067
|
+
createPortalWholeSeriesBookingQuestionsUploadUrl(registrationId, data) {
|
|
181068
|
+
return request(PORTAL.createWholeSeriesBookingQuestionsUploadUrl, {
|
|
181069
|
+
path: buildPath(PORTAL.createWholeSeriesBookingQuestionsUploadUrl.path, { registrationId }),
|
|
181070
|
+
body: data
|
|
181071
|
+
});
|
|
181072
|
+
},
|
|
181073
|
+
async finalizePortalWholeSeriesBookingQuestionsUpload(registrationId, data) {
|
|
181074
|
+
return (await request(PORTAL.finalizeWholeSeriesBookingQuestionsUpload, {
|
|
181075
|
+
path: buildPath(PORTAL.finalizeWholeSeriesBookingQuestionsUpload.path, { registrationId }),
|
|
181076
|
+
body: data
|
|
181077
|
+
})).answer;
|
|
180639
181078
|
},
|
|
180640
181079
|
async getPortalEventTicket(registrationId) {
|
|
180641
181080
|
const path = buildPath(PORTAL.getEventTicket.path, { registrationId });
|
|
@@ -181502,9 +181941,8 @@ const AVAILABILITY_REFRESH_JITTER_MS$1 = 5e3;
|
|
|
181502
181941
|
*
|
|
181503
181942
|
* @example
|
|
181504
181943
|
* ```tsx
|
|
181505
|
-
* function DatePicker({
|
|
181944
|
+
* function DatePicker({ serviceId }) {
|
|
181506
181945
|
* const { availableDates, hasMore, loadMore, isLoading } = useAvailableDates({
|
|
181507
|
-
* siteId,
|
|
181508
181946
|
* serviceId,
|
|
181509
181947
|
* timezone: 'America/New_York',
|
|
181510
181948
|
* initialDays: 30,
|
|
@@ -181515,7 +181953,7 @@ const AVAILABILITY_REFRESH_JITTER_MS$1 = 5e3;
|
|
|
181515
181953
|
* }
|
|
181516
181954
|
* ```
|
|
181517
181955
|
*/
|
|
181518
|
-
function useAvailableDates({
|
|
181956
|
+
function useAvailableDates({ serviceId, resourceId, timezone, initialDays = 30 }) {
|
|
181519
181957
|
const api = useBlockApi();
|
|
181520
181958
|
const [state, dispatch] = useReducer(availableDatesReducer, createInitialAvailableDatesState());
|
|
181521
181959
|
const requestIdRef = useRef(0);
|
|
@@ -181679,9 +182117,8 @@ const AVAILABILITY_REFRESH_JITTER_MS = 5e3;
|
|
|
181679
182117
|
*
|
|
181680
182118
|
* @example
|
|
181681
182119
|
* ```tsx
|
|
181682
|
-
* function SlotSelector({
|
|
182120
|
+
* function SlotSelector({ serviceId }) {
|
|
181683
182121
|
* const { slots, isLoading, error } = useAvailableSlots({
|
|
181684
|
-
* siteId,
|
|
181685
182122
|
* serviceId,
|
|
181686
182123
|
* resourceId: selectedResource,
|
|
181687
182124
|
* selectedDate: '2024-01-15',
|
|
@@ -181690,7 +182127,7 @@ const AVAILABILITY_REFRESH_JITTER_MS = 5e3;
|
|
|
181690
182127
|
* }
|
|
181691
182128
|
* ```
|
|
181692
182129
|
*/
|
|
181693
|
-
function useAvailableSlots({
|
|
182130
|
+
function useAvailableSlots({ serviceId, resourceId, selectedDate, timezone }) {
|
|
181694
182131
|
const api = useBlockApi();
|
|
181695
182132
|
const [state, dispatch] = useReducer(availableSlotsReducer, initialAvailableSlotsState);
|
|
181696
182133
|
const requestIdRef = useRef(0);
|
|
@@ -183495,14 +183932,12 @@ function useHeadlessBookingFlow(options) {
|
|
|
183495
183932
|
state.currentStepId
|
|
183496
183933
|
]);
|
|
183497
183934
|
const { availableDates, isLoading: isLoadingDates, error: datesError, hasMore, loadMore, loadedRange: availableDatesLoadedRange } = useAvailableDates({
|
|
183498
|
-
siteId: options.siteId,
|
|
183499
183935
|
serviceId: availabilityDatesQuery.ok ? availabilityDatesQuery.serviceId : void 0,
|
|
183500
183936
|
resourceId: availabilityDatesQuery.ok ? availabilityDatesQuery.resourceId : void 0,
|
|
183501
183937
|
timezone: viewerTimeZone,
|
|
183502
183938
|
initialDays: 14
|
|
183503
183939
|
});
|
|
183504
183940
|
const { slots, isLoading: isLoadingSlots, hasLoaded: hasLoadedSlots, error: slotsError } = useAvailableSlots({
|
|
183505
|
-
siteId: options.siteId,
|
|
183506
183941
|
serviceId: availabilitySlotsQuery.ok ? availabilitySlotsQuery.serviceId : void 0,
|
|
183507
183942
|
resourceId: availabilitySlotsQuery.ok ? availabilitySlotsQuery.resourceId : void 0,
|
|
183508
183943
|
selectedDate: availabilitySlotsQuery.ok ? availabilitySlotsQuery.selectedDate ?? "" : "",
|
|
@@ -185228,8 +185663,8 @@ function DefaultBookingErrorSummary({ errors, id }) {
|
|
|
185228
185663
|
//#endregion
|
|
185229
185664
|
//#region ../blocks/src/system/runtime/shared/utils/demoPortalMagicLink.ts
|
|
185230
185665
|
const CUSTOMER_PORTAL_PATH = "/portal";
|
|
185231
|
-
function buildPortalCallbackUrl(origin, redirectTo) {
|
|
185232
|
-
const url = new URL(
|
|
185666
|
+
function buildPortalCallbackUrl(origin, redirectTo, callbackPath = "/api/portal/callback") {
|
|
185667
|
+
const url = new URL(callbackPath, origin);
|
|
185233
185668
|
url.searchParams.set("redirect_to", redirectTo);
|
|
185234
185669
|
return url.toString();
|
|
185235
185670
|
}
|
|
@@ -185243,10 +185678,6 @@ async function requestDemoPortalMagicLink(input) {
|
|
|
185243
185678
|
};
|
|
185244
185679
|
try {
|
|
185245
185680
|
const response = await input.send(request);
|
|
185246
|
-
if ("kind" in response) return {
|
|
185247
|
-
kind: "refused",
|
|
185248
|
-
message: response.message
|
|
185249
|
-
};
|
|
185250
185681
|
return "demoSignInUrl" in response ? {
|
|
185251
185682
|
kind: "demo_sign_in",
|
|
185252
185683
|
url: response.demoSignInUrl
|
|
@@ -186120,7 +186551,7 @@ function useExistingEventRegistrationWithDeps({ isAuthenticated, occurrenceId },
|
|
|
186120
186551
|
requestIdRef.current = requestId;
|
|
186121
186552
|
dispatch({ type: "loading-started" });
|
|
186122
186553
|
try {
|
|
186123
|
-
const events = await api.getPortalEvents({ occurrenceId });
|
|
186554
|
+
const { registrations: events } = await api.getPortalEvents({ occurrenceId });
|
|
186124
186555
|
if (cancelled || requestIdRef.current !== requestId) return;
|
|
186125
186556
|
dispatch({
|
|
186126
186557
|
type: "resolved",
|
|
@@ -199886,7 +200317,7 @@ const FormNodeClient = ({ render }) => {
|
|
|
199886
200317
|
/* @__PURE__ */ jsx("input", {
|
|
199887
200318
|
type: "text",
|
|
199888
200319
|
name: "company",
|
|
199889
|
-
className: "hidden",
|
|
200320
|
+
className: "rb-hidden",
|
|
199890
200321
|
tabIndex: -1,
|
|
199891
200322
|
autoComplete: "off"
|
|
199892
200323
|
}),
|
|
@@ -200261,7 +200692,7 @@ function NewsletterFormClient({ render }) {
|
|
|
200261
200692
|
/* @__PURE__ */ jsx("input", {
|
|
200262
200693
|
type: "text",
|
|
200263
200694
|
name: "website",
|
|
200264
|
-
className: "hidden",
|
|
200695
|
+
className: "rb-hidden",
|
|
200265
200696
|
tabIndex: -1,
|
|
200266
200697
|
autoComplete: "off",
|
|
200267
200698
|
"aria-hidden": "true"
|
|
@@ -209269,6 +209700,27 @@ const navigationLinkInputSchemaOptions = [
|
|
|
209269
209700
|
];
|
|
209270
209701
|
z.discriminatedUnion("kind", navigationLinkInputSchemaOptions);
|
|
209271
209702
|
//#endregion
|
|
209703
|
+
//#region ../blocks/src/system/data/loaderEndpoints.ts
|
|
209704
|
+
const SUPPORTED_LOADER_ENDPOINTS = [
|
|
209705
|
+
"listPublishedEntries",
|
|
209706
|
+
"getPublishedEntryPreview",
|
|
209707
|
+
"listPublicEvents",
|
|
209708
|
+
"listPublicEventCalendarWindow",
|
|
209709
|
+
"listPublicRecurringSchedule",
|
|
209710
|
+
"getPublicEventDetails",
|
|
209711
|
+
"listPublicRouteCandidates",
|
|
209712
|
+
"listPublicTeamMembers",
|
|
209713
|
+
"listPublicProducts",
|
|
209714
|
+
"listPublicPasses",
|
|
209715
|
+
"listPublicMemberships",
|
|
209716
|
+
"getPublicFormById",
|
|
209717
|
+
"getPublicBookingServices",
|
|
209718
|
+
"getPublicWeeklySlotAvailability"
|
|
209719
|
+
];
|
|
209720
|
+
function isSupportedLoaderEndpoint(endpoint) {
|
|
209721
|
+
return SUPPORTED_LOADER_ENDPOINTS.includes(endpoint);
|
|
209722
|
+
}
|
|
209723
|
+
//#endregion
|
|
209272
209724
|
//#region ../api/src/sdkConfig/contracts.ts
|
|
209273
209725
|
/**
|
|
209274
209726
|
* Canonical SDK config Zod contracts.
|
|
@@ -211466,6 +211918,51 @@ function RepeaterList({ config, backend, basePath, items, minItems, maxItems, on
|
|
|
211466
211918
|
});
|
|
211467
211919
|
}
|
|
211468
211920
|
//#endregion
|
|
211921
|
+
//#region ../block-form/src/widgets/RepeaterField/hooks/useLayoutGridMoveAnimation.ts
|
|
211922
|
+
function getLayoutGridMoveKeyframes(before, after) {
|
|
211923
|
+
const x = before.left - after.left;
|
|
211924
|
+
const y = before.top - after.top;
|
|
211925
|
+
return x === 0 && y === 0 ? null : [{ transform: `translate(${x}px, ${y}px)` }, { transform: "translate(0px, 0px)" }];
|
|
211926
|
+
}
|
|
211927
|
+
/** Animate committed grid moves on the outer cells, separately from pointer dragging. */
|
|
211928
|
+
function useLayoutGridMoveAnimation(placements) {
|
|
211929
|
+
const nodes = useRef(/* @__PURE__ */ new Map());
|
|
211930
|
+
const animations = useRef(/* @__PURE__ */ new Map());
|
|
211931
|
+
const positions = useRef(null);
|
|
211932
|
+
const cancelAnimations = useCallback(() => {
|
|
211933
|
+
animations.current.forEach((animation) => animation.cancel());
|
|
211934
|
+
animations.current.clear();
|
|
211935
|
+
}, []);
|
|
211936
|
+
const registerCell = useCallback((id, node) => {
|
|
211937
|
+
if (node) nodes.current.set(id, node);
|
|
211938
|
+
else nodes.current.delete(id);
|
|
211939
|
+
}, []);
|
|
211940
|
+
const capturePositions = useCallback(() => {
|
|
211941
|
+
positions.current = window.matchMedia("(prefers-reduced-motion: reduce)").matches ? null : new Map(Array.from(nodes.current, ([id, node]) => [id, node.getBoundingClientRect()]));
|
|
211942
|
+
cancelAnimations();
|
|
211943
|
+
}, [cancelAnimations]);
|
|
211944
|
+
useLayoutEffect(() => {
|
|
211945
|
+
const before = positions.current;
|
|
211946
|
+
positions.current = null;
|
|
211947
|
+
if (!before || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
|
|
211948
|
+
nodes.current.forEach((node, id) => {
|
|
211949
|
+
const previous = before.get(id);
|
|
211950
|
+
const keyframes = previous ? getLayoutGridMoveKeyframes(previous, node.getBoundingClientRect()) : null;
|
|
211951
|
+
if (!keyframes || typeof node.animate !== "function") return;
|
|
211952
|
+
animations.current.set(id, node.animate(keyframes, {
|
|
211953
|
+
duration: 220,
|
|
211954
|
+
easing: "cubic-bezier(0.2, 0, 0, 1)"
|
|
211955
|
+
}));
|
|
211956
|
+
});
|
|
211957
|
+
}, [placements]);
|
|
211958
|
+
useLayoutEffect(() => cancelAnimations, [cancelAnimations]);
|
|
211959
|
+
return {
|
|
211960
|
+
registerCell,
|
|
211961
|
+
capturePositions,
|
|
211962
|
+
cancelAnimations
|
|
211963
|
+
};
|
|
211964
|
+
}
|
|
211965
|
+
//#endregion
|
|
211469
211966
|
//#region ../block-form/src/widgets/RepeaterField/components/RepeaterDragHandle.tsx
|
|
211470
211967
|
const RepeaterDragHandle = forwardRef(function RepeaterDragHandle({ placement = "overlay", tone = placement === "overlay" ? "dark" : "subtle", className, icon, type = "button", "aria-label": ariaLabel = "Drag item", title = "Drag item", ...props }, ref) {
|
|
211471
211968
|
const placementClassName = placement === "overlay" ? "absolute left-2 top-2 z-20" : "shrink-0";
|
|
@@ -212168,6 +212665,7 @@ function RepeaterLayoutGrid({ config, backend, basePath, items, minItems, onMove
|
|
|
212168
212665
|
activeColumns,
|
|
212169
212666
|
activeMaxRows
|
|
212170
212667
|
]);
|
|
212668
|
+
const { registerCell, capturePositions, cancelAnimations } = useLayoutGridMoveAnimation(layout.placements);
|
|
212171
212669
|
useEffect(() => {
|
|
212172
212670
|
onCapacityContextChange?.({
|
|
212173
212671
|
items: layoutItems,
|
|
@@ -212211,6 +212709,7 @@ function RepeaterLayoutGrid({ config, backend, basePath, items, minItems, onMove
|
|
|
212211
212709
|
const sensors = useSensors(useSensor(PointerSensor, { activationConstraint: { distance: 6 } }));
|
|
212212
212710
|
const handleDragStart = (event) => {
|
|
212213
212711
|
if (!canDrag) return;
|
|
212712
|
+
cancelAnimations();
|
|
212214
212713
|
setDragState(createDraggingLayoutGridDragState(String(event.active.id)));
|
|
212215
212714
|
};
|
|
212216
212715
|
const handleDragCancel = (_event) => {
|
|
@@ -212225,6 +212724,7 @@ function RepeaterLayoutGrid({ config, backend, basePath, items, minItems, onMove
|
|
|
212225
212724
|
}];
|
|
212226
212725
|
});
|
|
212227
212726
|
if (writes.length !== move.updates.length) return;
|
|
212727
|
+
capturePositions();
|
|
212228
212728
|
writes.forEach(({ update, index }) => {
|
|
212229
212729
|
backend.setValue(`${basePath}.${index}.${presentation.rowField}`, update.row);
|
|
212230
212730
|
backend.setValue(`${basePath}.${index}.${presentation.columnField}`, update.colStart);
|
|
@@ -212234,7 +212734,8 @@ function RepeaterLayoutGrid({ config, backend, basePath, items, minItems, onMove
|
|
|
212234
212734
|
basePath,
|
|
212235
212735
|
itemIndexById,
|
|
212236
212736
|
presentation.columnField,
|
|
212237
|
-
presentation.rowField
|
|
212737
|
+
presentation.rowField,
|
|
212738
|
+
capturePositions
|
|
212238
212739
|
]);
|
|
212239
212740
|
const handleDragEnd = (event) => {
|
|
212240
212741
|
const moveIntent = resolveLayoutGridMoveIntent({
|
|
@@ -212309,6 +212810,7 @@ function RepeaterLayoutGrid({ config, backend, basePath, items, minItems, onMove
|
|
|
212309
212810
|
if (index == null) return null;
|
|
212310
212811
|
const moveAvailability = visualMoveAvailabilityById.get(placement.id);
|
|
212311
212812
|
return /* @__PURE__ */ jsx("div", {
|
|
212813
|
+
ref: (node) => registerCell(placement.id, node),
|
|
212312
212814
|
style: {
|
|
212313
212815
|
gridColumn: `${placement.colStart} / span ${placement.span}`,
|
|
212314
212816
|
gridRowStart: placement.row
|
|
@@ -254567,4 +255069,4 @@ function useSiteChromeCustomizeOptional() {
|
|
|
254567
255069
|
return useContext(SiteChromeCustomizeContext);
|
|
254568
255070
|
}
|
|
254569
255071
|
//#endregion
|
|
254570
|
-
export { canCycleBackgroundOverrideValue as $, Popover as $a, bindingSchema as $i, createRoutingHelpers as $n, isEdited as $o, EDITABLE_SURFACE_FORWARDING_PROP as $r, FileField as $t, previewHeaderStyle as A, defaultFooterPreferences as Aa, getCurrentResolveImageUrlContext as Ai, mapOptionValueForSelect as An, Smartphone as Ao, publicRouteCandidatesSchema as Ar, createEditorApiClientFactory as At, arrangementBlockControlsFor as B, parseCanonicalRuntimeBackground as Ba, formCopyFragment as Bi, createManifestFormAdapter as Bn, Info as Bo, systemCustomizeFacetAppliesToLayoutVariant as Br, SiteOptionPickerField as Bt, openRow as C, getHeaderLayout as Ca, plainTextToInlineText as Ci, clientComponentRegistry as Cn, Primitive as Co, containerResponsiveThemeCss as Cr, useUISelector as Ct, previewCuratedPalette as D, resolveItemSurface as Da, resolveImageUrlWithContext as Di, useSdkConfig as Dn, TriangleAlert as Do, getBlockDefinition as Dr, useEntryEditorController as Dt, previewButtonStyle as E, arrangementSlotNames as Ea, getLinkedContentEntryMeta as Ei, SdkConfigProvider as En, Undo2 as Eo, makeDefaultBlockComponent as Er, useEntryController as Et, syncStyleConfiguratorState as F, defaultSectionTransitionVariantForFamily as Fa, faqAccordionFragment as Fi, prepareBlockEditorManifest as Fn, PenLine as Fo, visibleHeaderClearancePx as Fr, EditLeaseDiscardedNotice as Ft, usePreviewPageDesignEditorState as G, Select$1 as Ga, ctaRowFragment as Gi, getBlockManifestFromSdkConfig as Gn, ChevronRight as Go, buildThemeRuntime as Gr, loadMailingListAuthoringContext as Gt, arrangementVisibilityValues as H, Tooltip as Ha, testimonialsHeadingFragment as Hi, listEntryPageContentSlots as Hn, GripVertical as Ho, systemCustomizeFacetDefinitionsForBlock as Hr, OfferingsPreviewGroupOrderField as Ht, toggleRow as I, sectionTransitionFamilies as Ia, faqHeadingFragment as Ii, stripTopLevelRoutingUi as In, Palette as Io, parseStoredVariant as Ir, EditLeaseModal as It, previewDesignHistoryDomainForCommand as J, SelectTrigger as Ja, getResponsiveScopeSpec as Ji, DEFAULT_SURFACE_ID as Jn, Check as Jo, getDefaultComponentRegistry as Jr, IconPickerField as Jt, PreviewDesignHistoryOrderProvider as K, SelectContent as Ka, heroCopyFragment as Ki, ApiRequestError as Kn, ChevronLeft as Ko, escapeStyleContent as Kr, MailingListTargetingProvider as Kt, createOptimisticActionRunner as L, sectionTransitionFamilyForBoundaryOptionId as La, blogFeaturedPostFragment as Li, evaluateVisibility as Ln, Monitor as Lo, compileManifestContentContract as Lr, EditorWriteSurface as Lt, restageSelectionChanges as M, boundaryLayout as Ma, richTextFragment as Mi, FieldFrame as Mn, RotateCcw as Mo, SITE_CHROME_VISIBLE_HEADER_SELECTOR as Mr, useRetentionTicks as Mt, setPaletteColors as N, composeBoundary as Na, headingFragment as Ni, useField as Nn, Redo2 as No, SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR as Nr, VIEWING_PARTICIPATION as Nt, previewFooterLook as O, resolveLookSlotSurfaces as Oa, SECTION_BACKGROUND_MIN_SOURCE_WIDTH as Oi, hasEmptyOption as On, Tablet as Oo, normalizeBlockContent as Or, classifyHistoryShortcut as Ot, styleConfiguratorHistoryEntryForPersistedSelection as P, sectionFactsForContent as Pa, cardFragment as Pi, hideThemeV2RawStyleFields as Pn, Pencil as Po, planSiteOverlayHeaderClearance as Pr, LinkedEntryLeaseBanner as Pt, backgroundColorTokens as Q, SearchInput as Qa, defineFragment as Qi, API_ENDPOINTS as Qn, baselineRevisionOf as Qo, offeringsListingFor as Qr, ButtonWidgetProvider as Qt, resolveStyleConfiguratorInitialSnapshot as R, sectionTransitionVariantForBoundaryOptionId as Ra, singleButtonFragment as Ri, getFieldIntent as Rn, Maximize2 as Ro, validateManifestDraft as Rr, createSiteOptionApiLoader as Rt, markApplySaving as S, findFooterLook as Sa, isInlineTextEmpty as Si, useApiMediaUploader as Sn, DropdownMenuTrigger as So, ThemeScope as Sr, ContentFieldsForm as St, planStyleSwitch as T, defaultHeaderLogoContext as Ta, coerceLinkedContentEntriesPayload as Ti, BlockApiProvider as Tn, Upload as To, createCustomBlockRegistry as Tr, EntryControllerProvider as Tt, nextArrangementLookPin as U, TooltipContent as Ua, ctaCopyFragment as Ui, listPageSurfaceContentSlots as Un, Eye as Uo, systemCustomizeFacetLabelForValue as Ur, OfferingsPreviewWidgetProvider as Ut, arrangementOwnedFieldIds as V, resolveSectionBackground as Va, testimonialsCarouselFragment as Vi, createManifestValidation as Vn, Image as Vo, systemCustomizeFacetCurrentValue as Vr, SiteOptionWidgetProvider as Vt, PreviewPageDesignEditorStateProvider as W, TooltipTrigger as Wa, heroCtaRowFragment as Wi, blocksKeys as Wn, EllipsisVertical as Wo, systemCustomizeFacetNextValue as Wr, MailingListTargetingField as Wt, PREVIEW_DESIGN_SAVE_ERROR_MESSAGE as X, Callout as Xa, bodyCopyFragment as Xi, SURFACE_IDS as Xn, cva as Xo, buildAppointmentServicesView as Xr, EntryPickerWidgetProvider as Xt, selectPreviewDesignHistoryDomain as Y, SelectValue as Ya, ctaButton as Yi, SURFACE_DOCUMENT_DATA_ATTRIBUTE as Yn, Button$1 as Yo, buildLoadedOfferingsPreviewListing as Yr, EntryPickerField as Yt, reportPreviewDesignError as Z, CalloutDescription as Za, runTransforms as Zi, resolveSurfaceDocumentAttributes as Zn, cn$2 as Zo, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as Zr, ButtonVariantField as Zt, deriveStyleConfiguratorCapabilities as _, surfaceResolutionContextFromTheme as _a, isObjectRecord$1 as _i, decodePublicProductCategorySelectorQuery as _n, DropdownMenu as _o, renderedFieldChanges as _r, resolveFooterLayoutHints as _t, selectionSnapshotFromApplySiteStyleSelectionResponse as a, compileReplacementSiteThemeFromSelections as aa, Text$2 as ai, RichTextWidgetProvider as an, TabsList as ao, deriveRouteMetadataPresentation as ar, sameMailingListPlacementTargeting as as, planBackgroundTransition as at, markApplyFailed as b, getGradientPreset as ba, coerceInlineTextWithFallback as bi, MediaEditorContextProvider as bn, DropdownMenuLabel as bo, unsafeAsLinkedContentEntryId as br, PreviewTextEditor as bt, PreviewThemeOverlayProvider as c, readStoredMode as ca, siblingPath$1 as ci, LinkField as cn, DialogContent as co, unwrapResponse as cr, selectedContentVersionId as cs, resolvePreviewSidebarTab as ct, cycleSiteChromeSelectionId as d, resolvePublishedLook as da, publicEventsArraySchema as di, PaletteProvider as dn, DialogHeader as do, useOptionalEditorUiStoreInstance as dr, syncStateOf as ds, registerPreviewRenewalFetcher as dt, arrangementHooksFromContent as ea, parseBlockIconValue as ei, MediaField as en, PopoverContent as eo, createSnapshotFromPageRecord as er, canWriteLinkedEntry as es, defaultBackgroundOverrideForMode as et, planSiteChromeSelection as f, componentRuntimeRulesForTheme as fa, bookingConsentCarrierSchema as fi, usePalette as fn, DialogTitle as fo, canDiscardDraft as fr, valueStatus as fs, renewPreviewSession as ft, createStyleConfiguratorState as g, palettesForSiteStyle as ga, resolveRouteTarget as gi, MediaEditor as gn, Surface as go, renderSourceFor as gr, renderSiteChromeBlock as gt, cancelPreview as h, offeredSiteStyles as ha, resolvePageRouteTarget as hi, createStoreBackend as hn, CollapsibleTrigger as ho, remoteDraftValues as hr, FooterComposerPanel as ht, buildApplySiteStyleSelectionBody as i, compileEditorModelRuntime as ia, logger$1 as ii, RichTextField as in, TabsContent as io, parseReferenceKind as ir, parseMailingListPlacementTargeting as is, planBackgroundOverride as it, resetTypographyToSaved as j, formatSiteChromeBackgroundTokenLabel as ja, setContextResolveImageUrlContext as ji, unmapValueFromSelect as jn, SlidersHorizontal as jo, projectRecurringSchedule as jr, createPageSurfaceEditorServices as jt, previewHeaderLayout as k, replaceSiteStyleCompilationPlan as ka, buildResolveImageUrlContext as ki, mapCurrentValueForSelect as kn, Sparkles as ko, offeringsPreviewBlockDefinition as kr, useAutosaveStatus as kt, usePreviewThemeOverlay as l, resolveEffectiveArrangement as la, defaultTransforms as li, LinkWidgetProvider as ln, DialogDescription as lo, useEditorUiStore as lr, parseEditLeaseScope as ls, createGuardedPreviewApiClient as lt, applyTypographyDraftPatch as m, getCuratedSiteStyle as ma, resolveEntryRouteTarget as mi, FormRenderer as mn, CollapsibleContent as mo, planLinkedSaveHandoverRetention as mr, assertNever$7 as ms, usePreviewToken as mt, useSiteChromeCustomizeOptional as n, readBlockComposition as na, parseGeneratedIconSetId as ni, ReferenceWidgetProvider as nn, Input as no, BUILT_IN_REFERENCE_KINDS as nr, buildMailingListSignupBlockSourceRef as ns, imagePoolForOverride as nt, PreviewDesignCoordinatorProvider as o, compileUpdatedSiteThemeFromSelections as oa, RichText as oi, EditorProvider as on, TabsTrigger as oo, resolvePageRouteSlug as or, NO_BLOCK_VERSIONS as os, rankBackgroundImagePoolItems as ot, applyResolvedSelections as p, designRuntimeRulesForTheme as pa, isRichTextDoc as pi, ManifestForm as pn, Collapsible as po, activeLinkedSaveHandover as pr, unsafeAsEditorBlockId as ps, usePreviewAuth as pt, usePreviewDesignHistoryOrder as q, SelectItem as qa, DEFAULT_THEME_RESPONSIVE_MODE as qi, getDashboardUrl as qn, ChevronDown as qo, mergeContentWithBlockStyleOverrides as qr, InlineTextField as qt, StyleSwitchSummary as r, applyCompiledRuntimeFieldsToContent as ra, renderInlineText as ri, useRichTextImagePicker as rn, Tabs as ro, isAdapterReferenceKind as rr, parseFooterModuleId as rs, parseBackgroundOverrideFromContent as rt, usePreviewDesignCoordinator as s, arrangementManifestFromVariants as sa, getAtPath as si, useEditor$1 as sn, Dialog as so, resolveContentTitle as sr, readEditorBlockVersionsFromPlacement as ss, resolveBackgroundCapability as st, SiteChromeCustomizeProvider as t, blockLookFromContent as ta, parseGeneratedIconAssetId as ti, ReferenceField as tn, PopoverTrigger as to, routeLifecycleContext as tr, canEditorWrite as ts, enabledBackgroundModes as tt, buildSiteChromeSelectionModels as u, resolveModeArrangement as ua, calendarWindowQuerySchema as ui, BlockEditor as un, DialogFooter as uo, useEditorUiStoreInstance as ur, displayedValues as us, initPreviewAuth as ut, dismissWarnings as v, gradientToCss as va, isRecord$24 as vi, DEFAULT_LAUNCH_READINESS_INPUT as vn, DropdownMenuContent as vo, resolveRenderedValues as vr, PreviewRichTextEditor as vt, palettePreviewProjection as w, getHeaderStyle as wa, LINKED_CONTENT_ENTRY_META_KEY as wi, ImageResolveContextProvider as wn, X as wo, resolveSdkFooterMode as wr, EditableBlockProvider as wt, markApplySaved as x, deriveSiteStyleBlockPolicy as xa, inlineTextToPlainText as xi, useMediaEditorOptional as xn, DropdownMenuSeparator as xo, isSupportedLoaderEndpoint as xr, PREVIEW_EDITABLE_OUTLINE as xt, isPreviewingChange as y, GRADIENT_PRESETS as ya, planSiteChromePlacement as yi, deriveLaunchReadiness as yn, DropdownMenuItem as yo, toEditorBlockItem as yr, PreviewInlineTextEditor as yt, arrangementBackgroundControlFor as z, deriveSectionGround as za, formEmbedFragment as zi, isHeaderField as zn, LoaderCircle as zo, resolveArrangementKnobs as zr, createSiteOptionWidgetAdapters as zt };
|
|
255072
|
+
export { canCycleBackgroundOverrideValue as $, Popover as $a, bindingSchema as $i, API_ENDPOINTS as $n, isEdited as $o, EDITABLE_SURFACE_FORWARDING_PROP as $r, FileField as $t, previewHeaderStyle as A, defaultFooterPreferences as Aa, getCurrentResolveImageUrlContext as Ai, mapCurrentValueForSelect as An, Smartphone as Ao, publicRouteCandidatesSchema as Ar, createEditorApiClientFactory as At, arrangementBlockControlsFor as B, parseCanonicalRuntimeBackground as Ba, formCopyFragment as Bi, isHeaderField as Bn, Info as Bo, systemCustomizeFacetAppliesToLayoutVariant as Br, SiteOptionPickerField as Bt, openRow as C, getHeaderLayout as Ca, plainTextToInlineText as Ci, useApiMediaUploader as Cn, Primitive as Co, containerResponsiveThemeCss as Cr, useUISelector as Ct, previewCuratedPalette as D, resolveItemSurface as Da, resolveImageUrlWithContext as Di, SdkConfigProvider as Dn, TriangleAlert as Do, getBlockDefinition as Dr, useEntryEditorController as Dt, previewButtonStyle as E, arrangementSlotNames as Ea, getLinkedContentEntryMeta as Ei, BlockApiProvider as En, Undo2 as Eo, makeDefaultBlockComponent as Er, useEntryController as Et, syncStyleConfiguratorState as F, defaultSectionTransitionVariantForFamily as Fa, faqAccordionFragment as Fi, hideThemeV2RawStyleFields as Fn, PenLine as Fo, visibleHeaderClearancePx as Fr, EditLeaseDiscardedNotice as Ft, usePreviewPageDesignEditorState as G, Select$1 as Ga, ctaRowFragment as Gi, blocksKeys as Gn, ChevronRight as Go, buildThemeRuntime as Gr, loadMailingListAuthoringContext as Gt, arrangementVisibilityValues as H, Tooltip as Ha, testimonialsHeadingFragment as Hi, createManifestValidation as Hn, GripVertical as Ho, systemCustomizeFacetDefinitionsForBlock as Hr, OfferingsPreviewGroupOrderField as Ht, toggleRow as I, sectionTransitionFamilies as Ia, faqHeadingFragment as Ii, prepareBlockEditorManifest as In, Palette as Io, parseStoredVariant as Ir, EditLeaseModal as It, previewDesignHistoryDomainForCommand as J, SelectTrigger as Ja, getResponsiveScopeSpec as Ji, getDashboardUrl as Jn, Check as Jo, getDefaultComponentRegistry as Jr, IconPickerField as Jt, PreviewDesignHistoryOrderProvider as K, SelectContent as Ka, heroCopyFragment as Ki, getBlockManifestFromSdkConfig as Kn, ChevronLeft as Ko, escapeStyleContent as Kr, MailingListTargetingProvider as Kt, createOptimisticActionRunner as L, sectionTransitionFamilyForBoundaryOptionId as La, blogFeaturedPostFragment as Li, stripTopLevelRoutingUi as Ln, Monitor as Lo, compileManifestContentContract as Lr, EditorWriteSurface as Lt, restageSelectionChanges as M, boundaryLayout as Ma, richTextFragment as Mi, unmapValueFromSelect as Mn, RotateCcw as Mo, SITE_CHROME_VISIBLE_HEADER_SELECTOR as Mr, useRetentionTicks as Mt, setPaletteColors as N, composeBoundary as Na, headingFragment as Ni, FieldFrame as Nn, Redo2 as No, SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR as Nr, VIEWING_PARTICIPATION as Nt, previewFooterLook as O, resolveLookSlotSurfaces as Oa, SECTION_BACKGROUND_MIN_SOURCE_WIDTH as Oi, useSdkConfig as On, Tablet as Oo, normalizeBlockContent as Or, classifyHistoryShortcut as Ot, styleConfiguratorHistoryEntryForPersistedSelection as P, sectionFactsForContent as Pa, cardFragment as Pi, useField as Pn, Pencil as Po, planSiteOverlayHeaderClearance as Pr, LinkedEntryLeaseBanner as Pt, backgroundColorTokens as Q, SearchInput as Qa, defineFragment as Qi, resolveSurfaceDocumentAttributes as Qn, baselineRevisionOf as Qo, offeringsListingFor as Qr, ButtonWidgetProvider as Qt, resolveStyleConfiguratorInitialSnapshot as R, sectionTransitionVariantForBoundaryOptionId as Ra, singleButtonFragment as Ri, evaluateVisibility as Rn, Maximize2 as Ro, validateManifestDraft as Rr, createSiteOptionApiLoader as Rt, markApplySaving as S, findFooterLook as Sa, isInlineTextEmpty as Si, useMediaEditorOptional as Sn, DropdownMenuTrigger as So, ThemeScope as Sr, ContentFieldsForm as St, planStyleSwitch as T, defaultHeaderLogoContext as Ta, coerceLinkedContentEntriesPayload as Ti, ImageResolveContextProvider as Tn, Upload as To, createCustomBlockRegistry as Tr, EntryControllerProvider as Tt, nextArrangementLookPin as U, TooltipContent as Ua, ctaCopyFragment as Ui, listEntryPageContentSlots as Un, Eye as Uo, systemCustomizeFacetLabelForValue as Ur, OfferingsPreviewWidgetProvider as Ut, arrangementOwnedFieldIds as V, resolveSectionBackground as Va, testimonialsCarouselFragment as Vi, createManifestFormAdapter as Vn, Image as Vo, systemCustomizeFacetCurrentValue as Vr, SiteOptionWidgetProvider as Vt, PreviewPageDesignEditorStateProvider as W, TooltipTrigger as Wa, heroCtaRowFragment as Wi, listPageSurfaceContentSlots as Wn, EllipsisVertical as Wo, systemCustomizeFacetNextValue as Wr, MailingListTargetingField as Wt, PREVIEW_DESIGN_SAVE_ERROR_MESSAGE as X, Callout as Xa, bodyCopyFragment as Xi, SURFACE_DOCUMENT_DATA_ATTRIBUTE as Xn, cva as Xo, buildAppointmentServicesView as Xr, EntryPickerWidgetProvider as Xt, selectPreviewDesignHistoryDomain as Y, SelectValue as Ya, ctaButton as Yi, DEFAULT_SURFACE_ID as Yn, Button$1 as Yo, buildLoadedOfferingsPreviewListing as Yr, EntryPickerField as Yt, reportPreviewDesignError as Z, CalloutDescription as Za, runTransforms as Zi, SURFACE_IDS as Zn, cn$2 as Zo, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as Zr, ButtonVariantField as Zt, deriveStyleConfiguratorCapabilities as _, surfaceResolutionContextFromTheme as _a, isObjectRecord$1 as _i, decodePublicProductCategorySelectorQuery as _n, DropdownMenu as _o, renderSourceFor as _r, resolveFooterLayoutHints as _t, selectionSnapshotFromApplySiteStyleSelectionResponse as a, compileReplacementSiteThemeFromSelections as aa, Text$2 as ai, RichTextWidgetProvider as an, TabsList as ao, parseReferenceKind as ar, sameMailingListPlacementTargeting as as, planBackgroundTransition as at, markApplyFailed as b, getGradientPreset as ba, coerceInlineTextWithFallback as bi, isSupportedLoaderEndpoint as bn, DropdownMenuLabel as bo, toEditorBlockItem as br, PreviewTextEditor as bt, PreviewThemeOverlayProvider as c, readStoredMode as ca, siblingPath$1 as ci, LinkField as cn, DialogContent as co, resolveContentTitle as cr, selectedContentVersionId as cs, resolvePreviewSidebarTab as ct, cycleSiteChromeSelectionId as d, resolvePublishedLook as da, publicEventsArraySchema as di, PaletteProvider as dn, DialogHeader as do, useEditorUiStoreInstance as dr, syncStateOf as ds, registerPreviewRenewalFetcher as dt, arrangementHooksFromContent as ea, parseBlockIconValue as ei, MediaField as en, PopoverContent as eo, createRoutingHelpers as er, canWriteLinkedEntry as es, defaultBackgroundOverrideForMode as et, planSiteChromeSelection as f, componentRuntimeRulesForTheme as fa, bookingConsentCarrierSchema as fi, usePalette as fn, DialogTitle as fo, useOptionalEditorUiStoreInstance as fr, valueStatus as fs, renewPreviewSession as ft, createStyleConfiguratorState as g, palettesForSiteStyle as ga, resolveRouteTarget as gi, MediaEditor as gn, Surface as go, remoteDraftValues as gr, renderSiteChromeBlock as gt, cancelPreview as h, offeredSiteStyles as ha, resolvePageRouteTarget as hi, createStoreBackend as hn, CollapsibleTrigger as ho, planLinkedSaveHandoverRetention as hr, FooterComposerPanel as ht, buildApplySiteStyleSelectionBody as i, compileEditorModelRuntime as ia, logger$1 as ii, RichTextField as in, TabsContent as io, isAdapterReferenceKind as ir, parseMailingListPlacementTargeting as is, planBackgroundOverride as it, resetTypographyToSaved as j, formatSiteChromeBackgroundTokenLabel as ja, setContextResolveImageUrlContext as ji, mapOptionValueForSelect as jn, SlidersHorizontal as jo, projectRecurringSchedule as jr, createPageSurfaceEditorServices as jt, previewHeaderLayout as k, replaceSiteStyleCompilationPlan as ka, buildResolveImageUrlContext as ki, hasEmptyOption as kn, Sparkles as ko, offeringsPreviewBlockDefinition as kr, useAutosaveStatus as kt, usePreviewThemeOverlay as l, resolveEffectiveArrangement as la, defaultTransforms as li, LinkWidgetProvider as ln, DialogDescription as lo, unwrapResponse as lr, parseEditLeaseScope as ls, createGuardedPreviewApiClient as lt, applyTypographyDraftPatch as m, getCuratedSiteStyle as ma, resolveEntryRouteTarget as mi, FormRenderer as mn, CollapsibleContent as mo, activeLinkedSaveHandover as mr, assertNever$7 as ms, usePreviewToken as mt, useSiteChromeCustomizeOptional as n, readBlockComposition as na, parseGeneratedIconSetId as ni, ReferenceWidgetProvider as nn, Input as no, routeLifecycleContext as nr, buildMailingListSignupBlockSourceRef as ns, imagePoolForOverride as nt, PreviewDesignCoordinatorProvider as o, compileUpdatedSiteThemeFromSelections as oa, RichText as oi, EditorProvider as on, TabsTrigger as oo, deriveRouteMetadataPresentation as or, NO_BLOCK_VERSIONS as os, rankBackgroundImagePoolItems as ot, applyResolvedSelections as p, designRuntimeRulesForTheme as pa, isRichTextDoc as pi, ManifestForm as pn, Collapsible as po, canDiscardDraft as pr, unsafeAsEditorBlockId as ps, usePreviewAuth as pt, usePreviewDesignHistoryOrder as q, SelectItem as qa, DEFAULT_THEME_RESPONSIVE_MODE as qi, ApiRequestError as qn, ChevronDown as qo, mergeContentWithBlockStyleOverrides as qr, InlineTextField as qt, StyleSwitchSummary as r, applyCompiledRuntimeFieldsToContent as ra, renderInlineText as ri, useRichTextImagePicker as rn, Tabs as ro, BUILT_IN_REFERENCE_KINDS as rr, parseFooterModuleId as rs, parseBackgroundOverrideFromContent as rt, usePreviewDesignCoordinator as s, arrangementManifestFromVariants as sa, getAtPath as si, useEditor$1 as sn, Dialog as so, resolvePageRouteSlug as sr, readEditorBlockVersionsFromPlacement as ss, resolveBackgroundCapability as st, SiteChromeCustomizeProvider as t, blockLookFromContent as ta, parseGeneratedIconAssetId as ti, ReferenceField as tn, PopoverTrigger as to, createSnapshotFromPageRecord as tr, canEditorWrite as ts, enabledBackgroundModes as tt, buildSiteChromeSelectionModels as u, resolveModeArrangement as ua, calendarWindowQuerySchema as ui, BlockEditor as un, DialogFooter as uo, useEditorUiStore as ur, displayedValues as us, initPreviewAuth as ut, dismissWarnings as v, gradientToCss as va, isRecord$24 as vi, DEFAULT_LAUNCH_READINESS_INPUT as vn, DropdownMenuContent as vo, renderedFieldChanges as vr, PreviewRichTextEditor as vt, palettePreviewProjection as w, getHeaderStyle as wa, LINKED_CONTENT_ENTRY_META_KEY as wi, clientComponentRegistry as wn, X as wo, resolveSdkFooterMode as wr, EditableBlockProvider as wt, markApplySaved as x, deriveSiteStyleBlockPolicy as xa, inlineTextToPlainText as xi, MediaEditorContextProvider as xn, DropdownMenuSeparator as xo, unsafeAsLinkedContentEntryId as xr, PREVIEW_EDITABLE_OUTLINE as xt, isPreviewingChange as y, GRADIENT_PRESETS as ya, planSiteChromePlacement as yi, deriveLaunchReadiness as yn, DropdownMenuItem as yo, resolveRenderedValues as yr, PreviewInlineTextEditor as yt, arrangementBackgroundControlFor as z, deriveSectionGround as za, formEmbedFragment as zi, getFieldIntent as zn, LoaderCircle as zo, resolveArrangementKnobs as zr, createSiteOptionWidgetAdapters as zt };
|