riverbankcms 0.34.0 → 0.35.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/acceptance/matrix.mjs +3 -3
- package/dist/cli/index.mjs +419 -247
- package/dist/cli/init-docs/content/getting-started.md +4 -4
- package/dist/{entryCommands-DoJE41hf.mjs → entryCommands-D-1ldejM.mjs} +64 -4
- package/dist/{eventUpsertInputSchema-o-ntZyOs.mjs → eventUpsertInputSchema-D1CXYu1M.mjs} +3 -2
- package/dist/{load-config-FQqihBPt.mjs → load-config-DB_S_gdr.mjs} +2 -2
- package/dist/load-config-DSGN-x3K.mjs +4 -0
- package/dist/{plan-DQbhrxOI.mjs → plan-CMMvs6Nr.mjs} +2 -1
- package/dist/scaffold/index.mjs +2 -2
- package/dist/{sdk-event-upsert-DNjdjBVm.mjs → sdk-event-upsert-DoazwQVt.mjs} +3 -1
- package/dist/{src-B3ufN6kf.mjs → src-CysOxz1U.mjs} +864 -769
- package/dist/testing.mjs +4 -4
- package/package.json +1 -1
- package/dist/load-config-CwqwHzX8.mjs +0 -4
package/dist/cli/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as walkAndCollectImageAttrs, $t as flatInkParametersSchema, A as parseSiteChromeBackgroundColorToken, An as buildEntryScaffold, Ar as createContentEntryRef, At as getMimeType, B as sectionStylesOverrideSchema, Bn as isResolvedInternalLinkEntityType, Bt as footerPreferencesSchema, C as blockOrderIdentifiersForCommand, Cn as bookingPaymentCollectionOptionSchema, Cr as makeBoundaryId, Ct as parseCanonicalMediaIdentifier, D as pagePathForCommand, Dn as RichTextDocSchema, Dr as createBlockRef, Dt as deriveVideoSlotPolicy, E as pageIdentifierForCommand, Er as ianaTimezoneSchema, F as defaultHeaderBrandPreferences, Fn as entryLinkSchema$1, Fr as createNavigationRef, G as headerInteractionQuietPalette, Gn as parseGradientPresetId, Gt as cardVariantRoleValues, H as skinBookingBarSchema, Hn as pageLinkSchema$1, Hr as __toESM, Ht as boxlessCardVariantValue, In as externalLinkSchema$1, Ir as createPageRef, It as classifyKnownMimeType, J as boxBackgroundOverlaySchema, Jn as asHeaderLayoutId, Jt as surfaceCardRoleValues, K as blockCustomCssRuleSchema, Kt as itemRoleValues, L as cardStylesOverrideSchema, Ln as internalLinkSchema, Lt as managementMediaLibraryUploadLimitForMimeType, M as defaultHeaderPreferences, Mn as findUnfilledSentinels, Mr as createEventSeriesRef, N as defaultHeaderNavPreferences, Nn as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Nr as createFooterRef, Nt as parseRelativeStoragePath, O as hasConfiguredBookingVertical, On as isRichTextDoc, Or as createBlocksRef, Ot as resolveVideoSelectionIntentForMediaField, P as defaultHeaderBrandPresentation, Pn as customLinkSchema$1, Pr as createFormRef, Pt as FILE_SIZE_LIMITS, Q as summarizePortableMediaReferences, Qt as flatInkHoverTreatmentSchema, R as containerStylesOverrideSchema, Rn as internalResolvedLinkSchema, Rr as createVenueRef, Rt as parseSafeDownloadFilename, S as blockIdentifierForCommand, Sr as asSiteStyleId, St as buildMediaIdentifierFromFilename, T as pageIdentifierForBlockCommand, Tn as eventCommandScheduleSchema, U as headerVariantValues, Un as ICON_PICKER_PRESETS, Ut as cardRoleSchema, V as themeSchema, Vn as linkSchema, Vr as __commonJSMin, Vt as getFontWidthRange, W as headerInteractionPaletteValues, Wn as gradientPresetIdValues, Wt as cardRoleValues, X as runtimeBoxBackgroundSchema, Xn as bookingPageLookIdValues, Xt as buttonStyleSelectionSchema, Y as boxBackgroundSchema, Yn as asHeaderStyleId, Yt as BUTTON_STYLE_IDS, Z as collectPortableMediaReferencesFromContent, Zt as editorialLinkParametersSchema, _ as mapEventCommandContent, _n as paletteTokenNameSchema, _t as resolveManagedMediaReference, an as buttonVariantIdSchema, ar as arrangementModes, at as parseAspectRatioValue, bn as changeBookingQuestionsInputSchema, br as asLayoutVariantKey, bt as mediaTypeDiscriminants, c as isEventVisibility, cn as parseOpaqueButtonColourToken, cr as headingDecorationColorTokenValues, ct as getDirectImageUrlForSiteScopedPath, d as venueManagementFields, dn as hexColorSchema, dr as visibleHeadingDecorationFamilyValues, dt as imageMediaSchema, en as quietArrowParametersSchema, er as pageDesignEditorBackgroundOverrideOwner, et as deleteEnvSpecificKeys, f as sortRecord, fn as normalizePaletteHex, fr as asAppearancePresetId, ft as mediaSchema, g as resolveEventSeriesWaitlistMapping, gn as paletteModeSchema, gr as asDesignBlockId, gt as buildRenderableMediaAssetIndex, hn as paletteColorsSchema, hr as asBoundaryOptionId, ht as videoMediaSchema, i as sdkEventUpsertOptionalFieldSchemas, in as buttonSystemSchema, ir as VARIANT_ROLES, it as isExplicitRectCrop, j as backgroundAppearanceColorTokenNames, jn as validateEntryInstance, jr as createEventCategoryRef, jt as asRecord, k as headerPreferencesSchema, kn as sanitizeHref, kr as createCommandRef, ln as PALETTE_TOKEN_NAMES, lr as isArrangementMode, lt as getImageUrl, mn as paletteColorsFromEntries, mr as asBlockOrderIndex, mt as runtimeMediaSchema, nn as buttonEffectApplicationSchema, nr as siteChromeBackgroundOverrideOwner, nt as rotateNormalizedPoint, o as classifySdkEventBookingOffer, on as buttonVisualStatesSchema, or as eventListTreatmentValues, ot as resolveMediaTransformForAspect, p as stableStringify, pn as paletteColorEntries, pr as asBlockContentVersionId, pt as persistableMediaSchema, q as customCssRuleSchema, qn as asFooterLookId, qt as openCardRoleValue, rn as buttonPressOffsetSchema, rt as normalizeWidthCandidates, sn as opaqueButtonColourTokenSchema, sr as eyebrowTreatmentValues, st as getDirectImageUrlForRelativePath, t as classifySdkEventTiming, tn as squareOutlineParametersSchema, tr as parseBookingPageLookId, tt as looksLikeUuid, u as eventCategoryManagementFields, un as blockColorTokenNames, ur as tileTreatmentValues, ut as isSiteScopedDirectImageStoragePath, vn as parseColorTokenParts, vr as asDesignPageId, vt as PUBLIC_FILE_FIELD_KINDS, w as entryIdentifierForCommand, wn as bookingPaymentTermsSchema, wt as parseMediaIdentifier, x as eventManagementTiming, xr as asPageFlowPresetId, xt as mediaIdentifierSchema, yn as parseThemeColorToken, yr as asDesignSystemTemplateId, z as headerPositioningValues, zn as internalRouteOnlyLinkSchema, zr as refSlug, zt as defaultFooterPreferences } from "../sdk-event-upsert-
|
|
3
|
-
import { $ as footerLayoutForLookId,
|
|
4
|
-
import { $ as walkLocalContentMedia, $n as extractApiErrorMessage, $r as ApiEnvelopeError, $t as commandContexts, A as formatDiffSummary, An as isLocalConfigured, Ar as getBookingLaterInstalments, At as navigationIdentityMap, B as formatFieldChange, Bn as DEFAULT_MEDIA_FIELD_KINDS, Br as publicProductSchema, Bt as ACCOUNT_SITE_SEARCH_MAX_LENGTH, C as reportFromOutcomes, Cn as ErrorCodes, Cr as planFlexibleBalanceCreditFirst, Ct as listFiles, D as calculateDiff, Dr as resolveAvailableBookingCollectionOptions, Dt as isMediaValue, E as createEmptySyncResult, En as CliExit, Er as repriceBookingCollectionOptions, Et as writeJsonFileAtomic, F as buildJsonDiff, Fn as cardListKnobBlocks, Fr as eventCalendarListLayoutValues, Ft as createBearerAccountApi, G as applyLocalMediaPush, Gn as MAX_REPEATER_GRID_COLUMNS, Gr as calendarMonthWindowSchema, Gt as createPushConfigCommand, H as revalidateLocalMediaPushPlan, Hn as blockContentSourceSchema, Hr as purchasablePublicPassProductSchema, Ht as navigationCommandItemToManagementInput, I as hasPageOperations, In as lookKnobBlocks, Ir as publicMapLocationResultSchema, It as ACCOUNT_SITE_CURSOR_MAX_LENGTH, J as readStableBinaryFile, Jn as resolveRepeaterGridColumnFieldId, Jr as eventSurfacePresetValues, Jt as revalidatePushConfigPlan, K as prepareLocalMediaForPush, Kn as isAcceptedRepeaterGridSpan, Kr as calendarSourceCursorSchema, Kt as loadPushConfigTarget, L as pageMetadataForUpsert, Ln as NodeSchema, Lr as publicVenueMapLocationSchema, Lt as ACCOUNT_SITE_LIST_LIMIT_DEFAULT, M as findChangedFieldsWithValues, Mn as loadSdkEnvironment, Mr as eventCalendarDefaultViewValues, Mt as convertPulledNavigationToLocal, N as formatHumanDiff, Nn as cardListBlockParts, Nr as eventCalendarDisplayModeValues, Nt as convertPulledPagesToLocal, O as calculateFooterDiff, On as getEnvPrefix, Or as resolveBookingCollectionOptionFacts, Ot as duplicateNavigationIdentityMessage, P as calculatePullDiff, Pn as cardListFamilyBlocks, Pr as eventCalendarListLayoutCompatibleDisplayModeValues, Pt as AccountApiMalformedResponseError, Q as normalizeMediaValueToIdentifierOnly, Qn as ManagementApiError, Qr as publicEventLoaderQuerySchemaShape, Qt as CommandFailure, Rn as NodeTreeSchema, Rr as publicMembershipProductSchema, Rt as ACCOUNT_SITE_LIST_LIMIT_MAX, S as planCliCommandBatchForBindings, Sn as withRiverbankEnv, Sr as planCheckoutPaymentFlow, St as fileExists, T as executeResidualSettingsSyncPlan, Tn as transportSuggestion, Tr as isBookingCollectionEquivalentToUpfront, Tt as writeJsonFile, Un as blockRequiredFeatureSchema, Ur as CALENDAR_SSR_PAGE_SIZE, Ut as normalizeNavigationConfigItemForCommand, V as formatFieldPath, Vn as blockCategoryEnum, Vr as purchasablePublicMembershipProductSchema, Vt as ACCOUNT_SITE_TITLE_MAX_LENGTH, W as syncLocalMediaForPull, Wn as fieldSchema$1, Wr as calendarMonthDate, Wt as applyPushConfigPlan, X as sha256, Xn as resolveRepeaterGridSpanFieldId, Xr as monthNumber, Xt as deriveCmsApiUrlFromDashboardUrl, Y as writeBinaryFileAtomic, Yn as resolveRepeaterGridRowFieldId, Yr as eventSurfaceScopeValues, Yt as createBearerAPIClient, Z as normalizeMediaIdentifierInput, Zn as visibilityLevels, Zr as normalizeCalendarFilterId, Zt as mapEnvironmentExecutionOutcomesJson, _ as commandExecutionToReport, _n as executeEnvironmentPlan, _r as nextCombinationHint, _t as metadataTargetFromEnvironment, a as executeEntryCommandPlanAsReport, an as confirmAction, ar as linkPayloadSchema, at as readAllMeta, b as executeCompiledCliCommandPlanAsReport, bn as planEnvironmentWriteAuthorization, br as checkoutCopy, bt as writeMetadataRecordMap, c as titleFromEntryData, cn as formatDateShort, cr as pageDesignIntentSchemaVersion, ct as readFooterMeta, d as unsafeAsCliEntryIdentifier, dn as managementClientFor, dr as areEventBookingRequirementsIdentical, dt as readPagesMeta, ei as unwrapResponse, en as defineCommand, er as normalizeApiError, et as buildStorageUrl, f as unsafeAsCliFormSlug, fn as mapEntryForOutput, fr as eventBookingConsentContentKey, ft as readSettingsMeta, g as commandCompileFailureToReport, gn as runWithInvocation, gr as checkoutStatusArms, gt as metadataFilePath, h as mutationCounterForEffect, hn as resolveCommandPath, hr as resolveSelectionAttendanceMode, ht as ensureMetadataDir, i as entrySiteCommandTypes, in as bindRequestTimeout, ir as sdkSettingsUpdateSchema, it as readEntries, j as hasPendingChanges, jn as isRemoteConfigured, jr as MAX_EVENT_BOOKING_SELECTION_ITEMS, jt as convertPulledFooterToLocal, k as formatDiffDetail, kn as getEnvironmentDebugInfo, kr as getStripeMinimumChargeRequirement, kt as navigationIdentity, l as unsafeAsCliBlockIdentifier, ln as handleCommandError, lr as sdkConfiguredBookingVerticalConfigSchema, lt as readFormsMeta, m as commandReportToSyncResult, mn as parseJsonData, mr as decideSelectionAttendance, mt as writeMediaManifest, n as entryCommandCompileErrorToReport, nn as registerCommand, nr as ApiRequestError, nt as extractMediaIdentifiers, o as executeEntryCommandPlanAsSyncResult, on as createOutputForCommand, or as portablePageDesignSchema, ot as readEventCategoriesMeta, p as unsafeAsCliPageIdentifier, pn as parseJsonArray, pr as INCOMPATIBLE_ATTENDANCE_MESSAGE, pt as readVenuesMeta, q as admitBinaryWriteDestination, qn as parseRepeaterGridInteger, qr as eventScheduleScopeValues, qt as preparePushConfigTarget, r as entryCommandReportToSyncResult, rn as renderedByOwner, rr as sdkEventScheduleSchema, rt as findLegacyEntryFiles, s as syncResultForEntryCommandCompileError, sn as currentInvocationEnvelope, sr as pageDesignDecisionsV2Schema, st as readEventsMeta, t as compileEntryPushCommands, tn as defineCommandGroup, tr as isRecord$2, tt as downloadMedia, u as unsafeAsCliContentTypeKey, un as loadManagementTarget, ur as API_ENDPOINTS, ut as readNavigationMeta, v as commandReportHasFailures, vn as parseEnvironmentSelection, vr as planSelectionCombinationPrices, vt as readMetadataFile, w as mergeManySyncResults, wn as formatError, wr as flexibleBalanceDueDay, wt as readJsonFile, x as formatManagementError, xn as requireEnvironmentWriteAuthorization, xr as unsafeAsPositiveCheckoutQuantity, xt as ensureDir, y as executeCliCommandPlan, yn as planEnvironmentExecution, yr as eventRegistrationErrors, yt as writeMetadataFile, z as buildFieldChanges, zn as bindingSchema, zr as publicPassProductSchema, zt as ACCOUNT_SITE_LIST_LIMIT_MIN } from "../entryCommands-
|
|
5
|
-
import { r as CLI_VERSION, t as loadConfigFile } from "../load-config-
|
|
6
|
-
import { t as eventUpsertInputSchema } from "../eventUpsertInputSchema-
|
|
7
|
-
import { a as prepareScaffoldExecution, c as LOCAL_PACKAGE_VENDOR_DIR, d as loadGeneratedPackageRanges, i as preflightScaffoldTargets, n as createScaffoldCompletion, s as deriveScaffoldLocalManifest, t as deriveScaffoldPlan } from "../plan-
|
|
2
|
+
import { $ as walkAndCollectImageAttrs, $t as flatInkParametersSchema, A as parseSiteChromeBackgroundColorToken, An as buildEntryScaffold, Ar as createContentEntryRef, At as getMimeType, B as sectionStylesOverrideSchema, Bn as isResolvedInternalLinkEntityType, Bt as footerPreferencesSchema, C as blockOrderIdentifiersForCommand, Cn as bookingPaymentCollectionOptionSchema, Cr as makeBoundaryId, Ct as parseCanonicalMediaIdentifier, D as pagePathForCommand, Dn as RichTextDocSchema, Dr as createBlockRef, Dt as deriveVideoSlotPolicy, E as pageIdentifierForCommand, Er as ianaTimezoneSchema, F as defaultHeaderBrandPreferences, Fn as entryLinkSchema$1, Fr as createNavigationRef, G as headerInteractionQuietPalette, Gn as parseGradientPresetId, Gt as cardVariantRoleValues, H as skinBookingBarSchema, Hn as pageLinkSchema$1, Hr as __toESM, Ht as boxlessCardVariantValue, In as externalLinkSchema$1, Ir as createPageRef, It as classifyKnownMimeType, J as boxBackgroundOverlaySchema, Jn as asHeaderLayoutId, Jt as surfaceCardRoleValues, K as blockCustomCssRuleSchema, Kt as itemRoleValues, L as cardStylesOverrideSchema, Ln as internalLinkSchema, Lt as managementMediaLibraryUploadLimitForMimeType, M as defaultHeaderPreferences, Mn as findUnfilledSentinels, Mr as createEventSeriesRef, N as defaultHeaderNavPreferences, Nn as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Nr as createFooterRef, Nt as parseRelativeStoragePath, O as hasConfiguredBookingVertical, On as isRichTextDoc, Or as createBlocksRef, Ot as resolveVideoSelectionIntentForMediaField, P as defaultHeaderBrandPresentation, Pn as customLinkSchema$1, Pr as createFormRef, Pt as FILE_SIZE_LIMITS, Q as summarizePortableMediaReferences, Qt as flatInkHoverTreatmentSchema, R as containerStylesOverrideSchema, Rn as internalResolvedLinkSchema, Rr as createVenueRef, Rt as parseSafeDownloadFilename, S as blockIdentifierForCommand, Sr as asSiteStyleId, St as buildMediaIdentifierFromFilename, T as pageIdentifierForBlockCommand, Tn as eventCommandScheduleSchema, U as headerVariantValues, Un as ICON_PICKER_PRESETS, Ut as cardRoleSchema, V as themeSchema, Vn as linkSchema, Vr as __commonJSMin, Vt as getFontWidthRange, W as headerInteractionPaletteValues, Wn as gradientPresetIdValues, Wt as cardRoleValues, X as runtimeBoxBackgroundSchema, Xn as bookingPageLookIdValues, Xt as buttonStyleSelectionSchema, Y as boxBackgroundSchema, Yn as asHeaderStyleId, Yt as BUTTON_STYLE_IDS, Z as collectPortableMediaReferencesFromContent, Zt as editorialLinkParametersSchema, _ as mapEventCommandContent, _n as paletteTokenNameSchema, _t as resolveManagedMediaReference, an as buttonVariantIdSchema, ar as arrangementModes, at as parseAspectRatioValue, bn as changeBookingQuestionsInputSchema, br as asLayoutVariantKey, bt as mediaTypeDiscriminants, c as isEventVisibility, cn as parseOpaqueButtonColourToken, cr as headingDecorationColorTokenValues, ct as getDirectImageUrlForSiteScopedPath, d as venueManagementFields, dn as hexColorSchema, dr as visibleHeadingDecorationFamilyValues, dt as imageMediaSchema, en as quietArrowParametersSchema, er as pageDesignEditorBackgroundOverrideOwner, et as deleteEnvSpecificKeys, f as sortRecord, fn as normalizePaletteHex, fr as asAppearancePresetId, ft as mediaSchema, g as resolveEventSeriesWaitlistMapping, gn as paletteModeSchema, gr as asDesignBlockId, gt as buildRenderableMediaAssetIndex, hn as paletteColorsSchema, hr as asBoundaryOptionId, ht as videoMediaSchema, i as sdkEventUpsertOptionalFieldSchemas, in as buttonSystemSchema, ir as VARIANT_ROLES, it as isExplicitRectCrop, j as backgroundAppearanceColorTokenNames, jn as validateEntryInstance, jr as createEventCategoryRef, jt as asRecord, k as headerPreferencesSchema, kn as sanitizeHref, kr as createCommandRef, ln as PALETTE_TOKEN_NAMES, lr as isArrangementMode, lt as getImageUrl, mn as paletteColorsFromEntries, mr as asBlockOrderIndex, mt as runtimeMediaSchema, nn as buttonEffectApplicationSchema, nr as siteChromeBackgroundOverrideOwner, nt as rotateNormalizedPoint, o as classifySdkEventBookingOffer, on as buttonVisualStatesSchema, or as eventListTreatmentValues, ot as resolveMediaTransformForAspect, p as stableStringify, pn as paletteColorEntries, pr as asBlockContentVersionId, pt as persistableMediaSchema, q as customCssRuleSchema, qn as asFooterLookId, qt as openCardRoleValue, rn as buttonPressOffsetSchema, rt as normalizeWidthCandidates, sn as opaqueButtonColourTokenSchema, sr as eyebrowTreatmentValues, st as getDirectImageUrlForRelativePath, t as classifySdkEventTiming, tn as squareOutlineParametersSchema, tr as parseBookingPageLookId, tt as looksLikeUuid, u as eventCategoryManagementFields, un as blockColorTokenNames, ur as tileTreatmentValues, ut as isSiteScopedDirectImageStoragePath, vn as parseColorTokenParts, vr as asDesignPageId, vt as PUBLIC_FILE_FIELD_KINDS, w as entryIdentifierForCommand, wn as bookingPaymentTermsSchema, wt as parseMediaIdentifier, x as eventManagementTiming, xr as asPageFlowPresetId, xt as mediaIdentifierSchema, yn as parseThemeColorToken, yr as asDesignSystemTemplateId, z as headerPositioningValues, zn as internalRouteOnlyLinkSchema, zr as refSlug, zt as defaultFooterPreferences } from "../sdk-event-upsert-DoazwQVt.mjs";
|
|
3
|
+
import { $ as footerLayoutForLookId, $t as resolveBookingDisplayContext, B as parseManagementKey, Bt as deriveTotalTicketQuantity, Cn as publicEventPricingDisplay, Ct as mapDrawingSchema, Dn as resolveExactOrFreePriceDisplay, En as publicEventPricingType, F as orderedLiveRunSessions, Fr as blockInteractionContextSchema, G as parseMailingListRuntimeContext, Gt as hasBookingClosed, H as parseMailingListBlockId, Hn as formatDurationUnitLabel, Ht as bookingCutOffHoursBetween, I as resolveWholeSeriesBookingPhase, In as toNonNegativeCents, Jn as parseSiteTermsVersionId, Jt as formatDateTime, K as assessMailingListTargeting, Kt as formatDate, L as resolveWholeSeriesRunLifecycle, M as CANCELLED_SESSION_STATUS, Mt as getBookingInstalmentPlanIntervalCount, N as firstLiveRunSessionStartMs, Nr as err, Nt as getBookingInstalmentProtectedDepositAmountCents, On as resolvePricingOptionsPriceDisplay, P as nextLiveRunSessionStartMs, Pr as ok, Q as parseFooterCompositionV1, Qt as inferSiteDateLocale, R as createSecret, S as EVENT_PRESET_VALUES, Sn as publicEventPricingCurrency, Sr as parseUserId, St as trimmedStringOrNull, T as WHOLE_SERIES_EVENT_PRESET_VALUES, Tn as publicEventPricingStrategy, Tr as parseEventSeriesId, Tt as buildBookingUtcDateWindow, U as parseMailingListContentVersionId, Ut as formatBookingClosedTime, V as slugify, Vn as assertNever, W as parseMailingListSignedSourceToken, Wn as unsafeAsDemoCapability, Wt as formatBookingCutOffHours, X as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, Xt as formatTime$1, Y as DEFAULT_MAILING_LIST_PRIVACY_NOTE, Yt as formatDateTimeRange, Zt as formatTimeRange, _n as parsePageSurfaceSubject, _t as parseLocationValue, a as authoredValuesEqual, an as getBookingLocalDateKey, ar as unsafeAsMediaAssetId, at as formatOpeningHoursRows, b as resolveSiteVerticalBookingConfig, bn as formatEventPricing, br as parseApiKeyId, bt as toLocationCoordinates, d as formatCreditProductUnits, dn as parseUtcIsoDateTimeString, dt as decideLocationSave, en as toScheduledBookingDateTime, et as parseMailingListPlacementTargeting, fn as toUtcIsoDateTimeString, ft as stableJsonStringify, gt as normalizeLocationAddressText, h as NAVIGATION_LOCATIONS, hn as toBookingTimeZone, ht as locationValueSchema, i as isRecord$27, in as formatLocalScheduleTime, it as richTextHasText, jn as mapReadonlyNonEmptyArray, l as creditProductUnitNoun, ln as parseBookingLocalDate, mn as resolveBookingTimeZoneId, mt as EVENT_ADDRESS_AFTER_BOOKING_LABEL, nn as compareLocalScheduleDates, nt as planMailingListChoicePresentation, on as getLocalScheduleDate, pn as resolveBookingBusinessTimeZone, pt as locationMapLinks, qt as formatDateRange, rn as formatLocalScheduleDate, rt as isCanonicalRichTextDoc, sn as getLocalScheduleTime, sr as unsafeAsPositiveByteCount, st as parseWeeklyOpeningHours, tt as DEFAULT_MAILING_LIST_TARGETING, u as formatCreditProductPayment, un as parseLocalScheduleTime, vn as EVENT_PRESET_VOCABULARY, vt as projectPublicLocation, wn as publicEventPricingOptions, wt as selectCategoryView, xn as isPublicEventPricingOptionDisplayable, xr as parseSiteId, yn as formatBookingPriceDisplay, yt as publicLocationSchema, z as exposeSecret, zn as formatCurrencyAmount } from "../src-CysOxz1U.mjs";
|
|
4
|
+
import { $ as walkLocalContentMedia, $n as extractApiErrorMessage, $r as ApiEnvelopeError, $t as commandContexts, A as formatDiffSummary, An as isLocalConfigured, Ar as getBookingLaterInstalments, At as navigationIdentityMap, B as formatFieldChange, Bn as DEFAULT_MEDIA_FIELD_KINDS, Br as publicProductSchema, Bt as ACCOUNT_SITE_SEARCH_MAX_LENGTH, C as reportFromOutcomes, Cn as ErrorCodes, Cr as planFlexibleBalanceCreditFirst, Ct as listFiles, D as calculateDiff, Dr as resolveAvailableBookingCollectionOptions, Dt as isMediaValue, E as createEmptySyncResult, En as CliExit, Er as repriceBookingCollectionOptions, Et as writeJsonFileAtomic, F as buildJsonDiff, Fn as cardListKnobBlocks, Fr as eventCalendarListLayoutValues, Ft as createBearerAccountApi, G as applyLocalMediaPush, Gn as MAX_REPEATER_GRID_COLUMNS, Gr as calendarMonthWindowSchema, Gt as createPushConfigCommand, H as revalidateLocalMediaPushPlan, Hn as blockContentSourceSchema, Hr as purchasablePublicPassProductSchema, Ht as navigationCommandItemToManagementInput, I as hasPageOperations, In as lookKnobBlocks, Ir as publicMapLocationResultSchema, It as ACCOUNT_SITE_CURSOR_MAX_LENGTH, J as readStableBinaryFile, Jn as resolveRepeaterGridColumnFieldId, Jr as eventSurfacePresetValues, Jt as revalidatePushConfigPlan, K as prepareLocalMediaForPush, Kn as isAcceptedRepeaterGridSpan, Kr as calendarSourceCursorSchema, Kt as loadPushConfigTarget, L as pageMetadataForUpsert, Ln as NodeSchema, Lr as publicVenueMapLocationSchema, Lt as ACCOUNT_SITE_LIST_LIMIT_DEFAULT, M as findChangedFieldsWithValues, Mn as loadSdkEnvironment, Mr as eventCalendarDefaultViewValues, Mt as convertPulledNavigationToLocal, N as formatHumanDiff, Nn as cardListBlockParts, Nr as eventCalendarDisplayModeValues, Nt as convertPulledPagesToLocal, O as calculateFooterDiff, On as getEnvPrefix, Or as resolveBookingCollectionOptionFacts, Ot as duplicateNavigationIdentityMessage, P as calculatePullDiff, Pn as cardListFamilyBlocks, Pr as eventCalendarListLayoutCompatibleDisplayModeValues, Pt as AccountApiMalformedResponseError, Q as normalizeMediaValueToIdentifierOnly, Qn as ManagementApiError, Qr as publicEventLoaderQuerySchemaShape, Qt as CommandFailure, Rn as NodeTreeSchema, Rr as publicMembershipProductSchema, Rt as ACCOUNT_SITE_LIST_LIMIT_MAX, S as planCliCommandBatchForBindings, Sn as withRiverbankEnv, Sr as planCheckoutPaymentFlow, St as fileExists, T as executeResidualSettingsSyncPlan, Tn as transportSuggestion, Tr as isBookingCollectionEquivalentToUpfront, Tt as writeJsonFile, Un as blockRequiredFeatureSchema, Ur as CALENDAR_SSR_PAGE_SIZE, Ut as normalizeNavigationConfigItemForCommand, V as formatFieldPath, Vn as blockCategoryEnum, Vr as purchasablePublicMembershipProductSchema, Vt as ACCOUNT_SITE_TITLE_MAX_LENGTH, W as syncLocalMediaForPull, Wn as fieldSchema$1, Wr as calendarMonthDate, Wt as applyPushConfigPlan, X as sha256, Xn as resolveRepeaterGridSpanFieldId, Xr as monthNumber, Xt as deriveCmsApiUrlFromDashboardUrl, Y as writeBinaryFileAtomic, Yn as resolveRepeaterGridRowFieldId, Yr as eventSurfaceScopeValues, Yt as createBearerAPIClient, Z as normalizeMediaIdentifierInput, Zn as visibilityLevels, Zr as normalizeCalendarFilterId, Zt as mapEnvironmentExecutionOutcomesJson, _ as commandExecutionToReport, _n as executeEnvironmentPlan, _r as nextCombinationHint, _t as metadataTargetFromEnvironment, a as executeEntryCommandPlanAsReport, an as confirmAction, ar as linkPayloadSchema, at as readAllMeta, b as executeCompiledCliCommandPlanAsReport, bn as planEnvironmentWriteAuthorization, br as checkoutCopy, bt as writeMetadataRecordMap, c as titleFromEntryData, cn as formatDateShort, cr as pageDesignIntentSchemaVersion, ct as readFooterMeta, d as unsafeAsCliEntryIdentifier, dn as managementClientFor, dr as areEventBookingRequirementsIdentical, dt as readPagesMeta, ei as unwrapResponse, en as defineCommand, er as normalizeApiError, et as buildStorageUrl, f as unsafeAsCliFormSlug, fn as mapEntryForOutput, fr as eventBookingConsentContentKey, ft as readSettingsMeta, g as commandCompileFailureToReport, gn as runWithInvocation, gr as checkoutStatusArms, gt as metadataFilePath, h as mutationCounterForEffect, hn as resolveCommandPath, hr as resolveSelectionAttendanceMode, ht as ensureMetadataDir, i as entrySiteCommandTypes, in as bindRequestTimeout, ir as sdkSettingsUpdateSchema, it as readEntries, j as hasPendingChanges, jn as isRemoteConfigured, jr as MAX_EVENT_BOOKING_SELECTION_ITEMS, jt as convertPulledFooterToLocal, k as formatDiffDetail, kn as getEnvironmentDebugInfo, kr as getStripeMinimumChargeRequirement, kt as navigationIdentity, l as unsafeAsCliBlockIdentifier, ln as handleCommandError, lr as sdkConfiguredBookingVerticalConfigSchema, lt as readFormsMeta, m as commandReportToSyncResult, mn as parseJsonData, mr as decideSelectionAttendance, mt as writeMediaManifest, n as entryCommandCompileErrorToReport, nn as registerCommand, nr as ApiRequestError, nt as extractMediaIdentifiers, o as executeEntryCommandPlanAsSyncResult, on as createOutputForCommand, or as portablePageDesignSchema, ot as readEventCategoriesMeta, p as unsafeAsCliPageIdentifier, pn as parseJsonArray, pr as INCOMPATIBLE_ATTENDANCE_MESSAGE, pt as readVenuesMeta, q as admitBinaryWriteDestination, qn as parseRepeaterGridInteger, qr as eventScheduleScopeValues, qt as preparePushConfigTarget, r as entryCommandReportToSyncResult, rn as renderedByOwner, rr as sdkEventScheduleSchema, rt as findLegacyEntryFiles, s as syncResultForEntryCommandCompileError, sn as currentInvocationEnvelope, sr as pageDesignDecisionsV2Schema, st as readEventsMeta, t as compileEntryPushCommands, tn as defineCommandGroup, tr as isRecord$2, tt as downloadMedia, u as unsafeAsCliContentTypeKey, un as loadManagementTarget, ur as API_ENDPOINTS, ut as readNavigationMeta, v as commandReportHasFailures, vn as parseEnvironmentSelection, vr as planSelectionCombinationPrices, vt as readMetadataFile, w as mergeManySyncResults, wn as formatError, wr as flexibleBalanceDueDay, wt as readJsonFile, x as formatManagementError, xn as requireEnvironmentWriteAuthorization, xr as unsafeAsPositiveCheckoutQuantity, xt as ensureDir, y as executeCliCommandPlan, yn as planEnvironmentExecution, yr as eventRegistrationErrors, yt as writeMetadataFile, z as buildFieldChanges, zn as bindingSchema, zr as publicPassProductSchema, zt as ACCOUNT_SITE_LIST_LIMIT_MIN } from "../entryCommands-D-1ldejM.mjs";
|
|
5
|
+
import { r as CLI_VERSION, t as loadConfigFile } from "../load-config-DB_S_gdr.mjs";
|
|
6
|
+
import { t as eventUpsertInputSchema } from "../eventUpsertInputSchema-D1CXYu1M.mjs";
|
|
7
|
+
import { a as prepareScaffoldExecution, c as LOCAL_PACKAGE_VENDOR_DIR, d as loadGeneratedPackageRanges, i as preflightScaffoldTargets, n as createScaffoldCompletion, s as deriveScaffoldLocalManifest, t as deriveScaffoldPlan } from "../plan-CMMvs6Nr.mjs";
|
|
8
8
|
import { config } from "dotenv";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
import { Command, CommanderError } from "commander";
|
|
@@ -1399,6 +1399,9 @@ function parseLocalEventRun(raw, filePath) {
|
|
|
1399
1399
|
if (!sdkEventUpsertOptionalFieldSchemas.waitlistMode.safeParse(fields$1.waitlistMode).success) {
|
|
1400
1400
|
throw new InvalidLocalEventScheduleIdentityError(filePath, "waitlistMode must be inherit, off or on");
|
|
1401
1401
|
}
|
|
1402
|
+
if (!sdkEventUpsertOptionalFieldSchemas.bookingCutOffHours.safeParse(fields$1.bookingCutOffHours).success) {
|
|
1403
|
+
throw new InvalidLocalEventScheduleIdentityError(filePath, "bookingCutOffHours must be a whole number of hours from 0 to 720, or null");
|
|
1404
|
+
}
|
|
1402
1405
|
if ("categoryRef" in fields$1) {
|
|
1403
1406
|
throw new InvalidLocalEventScheduleIdentityError(filePath, "Move categoryRef to the parent Event file");
|
|
1404
1407
|
}
|
|
@@ -2310,6 +2313,7 @@ function mapEventRunToComparable(run) {
|
|
|
2310
2313
|
occurrences: run.occurrences,
|
|
2311
2314
|
capacity: run.capacity,
|
|
2312
2315
|
waitlistMode: run.waitlistMode,
|
|
2316
|
+
bookingCutOffHours: run.bookingCutOffHours,
|
|
2313
2317
|
bookingOffer: run.bookingOffer,
|
|
2314
2318
|
venueRef: run.venueRef,
|
|
2315
2319
|
settings: run.settings,
|
|
@@ -4273,6 +4277,7 @@ function normalizeRemoteRun(run) {
|
|
|
4273
4277
|
occurrences: [...run.occurrences],
|
|
4274
4278
|
capacity: run.capacity,
|
|
4275
4279
|
waitlistMode: nullishToNull(run.waitlistMode),
|
|
4280
|
+
bookingCutOffHours: nullishToNull(run.bookingCutOffHours),
|
|
4276
4281
|
bookingOffer: normalizeCanonicalBookingOffer(run.bookingOffer),
|
|
4277
4282
|
venueRef: run.venueRef,
|
|
4278
4283
|
settings: run.settings,
|
|
@@ -4294,6 +4299,7 @@ function normalizeLocalRun(local, remote) {
|
|
|
4294
4299
|
occurrences: [...local.occurrences],
|
|
4295
4300
|
capacity: overrideWhenDefined(local.capacity, base.capacity, (value) => typeof value === "number" ? value : null),
|
|
4296
4301
|
waitlistMode: local.waitlistMode === undefined ? base.waitlistMode : local.waitlistMode,
|
|
4302
|
+
bookingCutOffHours: local.bookingCutOffHours === undefined ? base.bookingCutOffHours : local.bookingCutOffHours,
|
|
4297
4303
|
bookingOffer: overrideWhenDefined(local.bookingOffer, base.bookingOffer, normalizeCanonicalBookingOffer),
|
|
4298
4304
|
venueRef: overrideWhenDefined(local.venueRef, base.venueRef, normalizeNullableString),
|
|
4299
4305
|
settings: overrideWhenDefined(local.settings, base.settings, (value) => isRecord$29(value) ? value : {}),
|
|
@@ -4332,6 +4338,7 @@ function normalizeNewLocalRun(run) {
|
|
|
4332
4338
|
occurrences: [...run.occurrences],
|
|
4333
4339
|
capacity: run.capacity ?? null,
|
|
4334
4340
|
waitlistMode: nullishToNull(run.waitlistMode),
|
|
4341
|
+
bookingCutOffHours: nullishToNull(run.bookingCutOffHours),
|
|
4335
4342
|
bookingOffer: normalizeCanonicalBookingOffer(run.bookingOffer),
|
|
4336
4343
|
venueRef: run.venueRef ?? null,
|
|
4337
4344
|
settings: run.settings ?? {},
|
|
@@ -68015,6 +68022,7 @@ const publicWholeSeriesRunSchema = z.object({
|
|
|
68015
68022
|
eventSeriesId: z.string(),
|
|
68016
68023
|
eventOfferingId: z.string(),
|
|
68017
68024
|
enrollmentOpen: z.boolean(),
|
|
68025
|
+
bookingClosesAt: z.string().optional(),
|
|
68018
68026
|
visibility: z.enum(["public", "unlisted"]),
|
|
68019
68027
|
lifecycle: z.enum([
|
|
68020
68028
|
"upcoming",
|
|
@@ -68060,6 +68068,7 @@ const publicEventBaseSchema = z.object({
|
|
|
68060
68068
|
requiresRegistration: z.boolean(),
|
|
68061
68069
|
bookingAvailability: publicEventBookingAvailabilitySchema,
|
|
68062
68070
|
bookingClosedDetail: publicEventBookingClosedDetailSchema.optional(),
|
|
68071
|
+
bookingClosesAt: z.string().optional(),
|
|
68063
68072
|
deliveryMode: z.enum([
|
|
68064
68073
|
"in_person",
|
|
68065
68074
|
"online",
|
|
@@ -72564,11 +72573,12 @@ function renderCalendarFeedIcs(feed, timezoneGenerator) {
|
|
|
72564
72573
|
language: "EN"
|
|
72565
72574
|
},
|
|
72566
72575
|
timezone: feed.timezone === "UTC" ? null : {
|
|
72567
|
-
name:
|
|
72576
|
+
name: null,
|
|
72568
72577
|
generator: timezoneGenerator
|
|
72569
72578
|
},
|
|
72570
72579
|
url: feed.url ?? null
|
|
72571
72580
|
});
|
|
72581
|
+
if (feed.timezone !== "UTC") calendar.x("X-WR-TIMEZONE", feed.timezone);
|
|
72572
72582
|
const generatedAt = new Date();
|
|
72573
72583
|
feed.entries.forEach((entry) => calendar.createEvent(calendarEvent(entry, generatedAt)));
|
|
72574
72584
|
return calendar.toString();
|
|
@@ -79773,11 +79783,19 @@ function rowFor(rows, mode) {
|
|
|
79773
79783
|
* capacity comes from the shared event-domain helpers so uncapped, fallback,
|
|
79774
79784
|
* and hybrid attendance-mode cases agree with the registration runtime.
|
|
79775
79785
|
*/
|
|
79776
|
-
function isBookableEvent(event) {
|
|
79786
|
+
function isBookableEvent(event, now) {
|
|
79777
79787
|
if (!event.requiresRegistration) return false;
|
|
79778
79788
|
if (event.bookingAvailability.kind !== "open") return false;
|
|
79789
|
+
if (now && hasEventBookingClosedEarly(event, now)) return false;
|
|
79779
79790
|
return !isEventFull(event) || canJoinEventWaitlistOnAnyMode(event);
|
|
79780
79791
|
}
|
|
79792
|
+
/**
|
|
79793
|
+
* Whether a date has passed its cut-off by this clock. The projected availability
|
|
79794
|
+
* can be older than the page it's on, and a cut-off makes that gap matter more.
|
|
79795
|
+
*/
|
|
79796
|
+
function hasEventBookingClosedEarly(event, now) {
|
|
79797
|
+
return event.bookingClosesAt !== undefined && hasBookingClosed(event.bookingClosesAt, now);
|
|
79798
|
+
}
|
|
79781
79799
|
|
|
79782
79800
|
//#endregion
|
|
79783
79801
|
//#region ../blocks/src/system/blocks/events/shared/pageSelection.ts
|
|
@@ -79838,7 +79856,7 @@ function planOrdinarySeriesSelection(events) {
|
|
|
79838
79856
|
const ordinary = events.filter(isOrdinaryPublicEvent);
|
|
79839
79857
|
const firstSeriesId = ordinary[0]?.seriesId;
|
|
79840
79858
|
if (!firstSeriesId || ordinary.some((event$1) => event$1.seriesId !== firstSeriesId)) return null;
|
|
79841
|
-
const bookable = ordinary.filter(isBookableEvent);
|
|
79859
|
+
const bookable = ordinary.filter((event$1) => isBookableEvent(event$1));
|
|
79842
79860
|
const [first, second] = bookable;
|
|
79843
79861
|
if (first && second) {
|
|
79844
79862
|
const [a$1, b$1, ...rest] = [...ordinary].filter(isOpenForBooking).sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt));
|
|
@@ -80096,6 +80114,248 @@ function isCancelledOrdinaryDate(event) {
|
|
|
80096
80114
|
//#region ../blocks/src/system/blocks/shared/bookingPageKind.ts
|
|
80097
80115
|
const bookingPageKindSchema = z.enum(["fullPage", "bookingPage"]);
|
|
80098
80116
|
|
|
80117
|
+
//#endregion
|
|
80118
|
+
//#region ../blocks/src/system/runtime/nodes/events/domain/dates.ts
|
|
80119
|
+
/** Event presentation adapters; core owns projection, clocks and ranges. */
|
|
80120
|
+
function eventDateLocale(siteTimeZone) {
|
|
80121
|
+
return inferSiteDateLocale(siteTimeZone);
|
|
80122
|
+
}
|
|
80123
|
+
function eventCalendarWeekStart(timeZone, override) {
|
|
80124
|
+
return override ?? (inferSiteDateLocale(resolveBookingBusinessTimeZone(timeZone)) === "en-US" ? "sunday" : "monday");
|
|
80125
|
+
}
|
|
80126
|
+
/** Admit older wire zones once; the booking business fallback remains London. */
|
|
80127
|
+
function eventDateOptions(place) {
|
|
80128
|
+
const siteTimeZone = resolveBookingBusinessTimeZone(place.siteTimeZone);
|
|
80129
|
+
const resolved = resolveBookingDisplayContext({
|
|
80130
|
+
sessionTimeZone: resolveBookingTimeZoneId(place.timeZone, siteTimeZone),
|
|
80131
|
+
siteTimeZone,
|
|
80132
|
+
locale: inferSiteDateLocale(siteTimeZone),
|
|
80133
|
+
isOnline: place.isOnline === true || place.deliveryMode === "online" || place.deliveryMode === "hybrid",
|
|
80134
|
+
surface: "public"
|
|
80135
|
+
});
|
|
80136
|
+
return {
|
|
80137
|
+
...resolved.context,
|
|
80138
|
+
zone: resolved.zone
|
|
80139
|
+
};
|
|
80140
|
+
}
|
|
80141
|
+
/** Overnight spans keep their end day; folds retain both distinct offsets. */
|
|
80142
|
+
function formatEventTimeRange(times, options) {
|
|
80143
|
+
const start = toUtcIsoDateTimeString(times.startsAt);
|
|
80144
|
+
const end = toUtcIsoDateTimeString(times.endsAt);
|
|
80145
|
+
const startDay = getLocalScheduleDate(new Date(start), options.timeZone);
|
|
80146
|
+
const endDay = getLocalScheduleDate(new Date(end), options.timeZone);
|
|
80147
|
+
return startDay.year === endDay.year && startDay.month === endDay.month && startDay.day === endDay.day ? formatTimeRange(start, end, options, { zone: options.zone }) : formatDateTimeRange({
|
|
80148
|
+
start,
|
|
80149
|
+
end
|
|
80150
|
+
}, options, {
|
|
80151
|
+
date: "short",
|
|
80152
|
+
zone: options.zone
|
|
80153
|
+
});
|
|
80154
|
+
}
|
|
80155
|
+
function resolveEventTimeZone(event, calendarTimeZone) {
|
|
80156
|
+
return resolveBookingTimeZoneId(event.timeZone, resolveBookingBusinessTimeZone(calendarTimeZone));
|
|
80157
|
+
}
|
|
80158
|
+
function formatDate$1(isoTimestamp, options) {
|
|
80159
|
+
return formatDate({
|
|
80160
|
+
kind: "instant",
|
|
80161
|
+
value: toUtcIsoDateTimeString(isoTimestamp)
|
|
80162
|
+
}, options, {
|
|
80163
|
+
date: "short",
|
|
80164
|
+
weekday: "long"
|
|
80165
|
+
});
|
|
80166
|
+
}
|
|
80167
|
+
function formatTime(isoTimestamp, options) {
|
|
80168
|
+
return formatTime$1(toUtcIsoDateTimeString(isoTimestamp), options, { zone: options.zone });
|
|
80169
|
+
}
|
|
80170
|
+
function formatEventDateParts(args) {
|
|
80171
|
+
return {
|
|
80172
|
+
date: formatDate$1(args.startsAt, args),
|
|
80173
|
+
timeRange: formatEventTimeRange(args, args)
|
|
80174
|
+
};
|
|
80175
|
+
}
|
|
80176
|
+
/** A course run's first to last session date, such as `8–22 Sept 2026`. */
|
|
80177
|
+
function formatEventRunDates(first, last, options) {
|
|
80178
|
+
return formatDateRange({
|
|
80179
|
+
kind: "instant",
|
|
80180
|
+
value: toUtcIsoDateTimeString(first.startsAt)
|
|
80181
|
+
}, {
|
|
80182
|
+
kind: "instant",
|
|
80183
|
+
value: toUtcIsoDateTimeString(last.startsAt)
|
|
80184
|
+
}, options, {
|
|
80185
|
+
date: "short",
|
|
80186
|
+
order: "session"
|
|
80187
|
+
});
|
|
80188
|
+
}
|
|
80189
|
+
/** Civil calendar headings never acquire an instant's timezone shift. */
|
|
80190
|
+
function formatCalendarTitle(viewDate, view, days, timeZone) {
|
|
80191
|
+
const context = eventDateOptions({
|
|
80192
|
+
siteTimeZone: timeZone,
|
|
80193
|
+
timeZone
|
|
80194
|
+
});
|
|
80195
|
+
const first = days[0];
|
|
80196
|
+
const last = days[6];
|
|
80197
|
+
return view === "week" && first && last ? formatDateRange({
|
|
80198
|
+
kind: "civil",
|
|
80199
|
+
value: first
|
|
80200
|
+
}, {
|
|
80201
|
+
kind: "civil",
|
|
80202
|
+
value: last
|
|
80203
|
+
}, context, { date: "short" }) : formatDate({
|
|
80204
|
+
kind: "civil",
|
|
80205
|
+
value: viewDate
|
|
80206
|
+
}, context, {
|
|
80207
|
+
date: "long",
|
|
80208
|
+
day: "omit"
|
|
80209
|
+
});
|
|
80210
|
+
}
|
|
80211
|
+
function buildCalendarViewport(input) {
|
|
80212
|
+
const viewport = buildCalendarViewport$1(input);
|
|
80213
|
+
return {
|
|
80214
|
+
...viewport,
|
|
80215
|
+
title: formatCalendarTitle(input.anchorDate, input.view, viewport.days, input.timeZone)
|
|
80216
|
+
};
|
|
80217
|
+
}
|
|
80218
|
+
/** Tick digits are civil clock values, not session instants. */
|
|
80219
|
+
function formatEventHourLabel(hour, timeZone) {
|
|
80220
|
+
return formatEventClockLabel(`${String(hour % 24).padStart(2, "0")}:00`, eventDateLocale(timeZone));
|
|
80221
|
+
}
|
|
80222
|
+
/** Weekly cadence and tick clocks are civil values; UTC only carries their components. */
|
|
80223
|
+
function formatEventClockLabel(value, locale) {
|
|
80224
|
+
const clock = parseLocalScheduleTime(value);
|
|
80225
|
+
return formatTime$1(toUtcIsoDateTimeString(new Date(Date.UTC(2e3, 0, 1, clock.hour, clock.minute)).toISOString()), {
|
|
80226
|
+
locale,
|
|
80227
|
+
timeZone: resolveBookingBusinessTimeZone("UTC")
|
|
80228
|
+
}, { zone: "omit" });
|
|
80229
|
+
}
|
|
80230
|
+
function formatEventCompactDateRail(isoTimestamp, options, letterCase = "capitals") {
|
|
80231
|
+
const instant = {
|
|
80232
|
+
kind: "instant",
|
|
80233
|
+
value: toUtcIsoDateTimeString(isoTimestamp)
|
|
80234
|
+
};
|
|
80235
|
+
const cased = (value) => letterCase === "capitals" ? value.toLocaleUpperCase(options.locale) : value;
|
|
80236
|
+
return {
|
|
80237
|
+
weekday: cased(formatDate(instant, options, {
|
|
80238
|
+
date: "omit",
|
|
80239
|
+
weekday: "short",
|
|
80240
|
+
year: "omit"
|
|
80241
|
+
})),
|
|
80242
|
+
fullWeekday: formatDate(instant, options, {
|
|
80243
|
+
date: "omit",
|
|
80244
|
+
weekday: "long",
|
|
80245
|
+
year: "omit"
|
|
80246
|
+
}),
|
|
80247
|
+
day: formatDate(instant, options, {
|
|
80248
|
+
date: "omit",
|
|
80249
|
+
day: "numeric",
|
|
80250
|
+
year: "omit"
|
|
80251
|
+
}),
|
|
80252
|
+
month: cased(formatDate(instant, options, {
|
|
80253
|
+
date: "short",
|
|
80254
|
+
day: "omit",
|
|
80255
|
+
year: "omit"
|
|
80256
|
+
}).slice(0, 3)),
|
|
80257
|
+
label: formatDate(instant, options, {
|
|
80258
|
+
date: "long",
|
|
80259
|
+
weekday: "long"
|
|
80260
|
+
})
|
|
80261
|
+
};
|
|
80262
|
+
}
|
|
80263
|
+
/**
|
|
80264
|
+
* Format the next occurrence for the image-free catalogue card treatment.
|
|
80265
|
+
*
|
|
80266
|
+
* The compact rail already owns this short, booking-local date vocabulary;
|
|
80267
|
+
* keep the fact panel on the same date and timezone rules as event rows.
|
|
80268
|
+
*/
|
|
80269
|
+
function formatEventNextDateFact(event) {
|
|
80270
|
+
const rail = formatEventCompactDateRail(event.startsAt, eventDateOptions(event));
|
|
80271
|
+
return {
|
|
80272
|
+
dateTime: event.startsAt,
|
|
80273
|
+
value: `${rail.weekday} ${rail.day} ${rail.month}`,
|
|
80274
|
+
label: rail.label
|
|
80275
|
+
};
|
|
80276
|
+
}
|
|
80277
|
+
/**
|
|
80278
|
+
* Group events by their local date (YYYY-MM-DD key in each event's own
|
|
80279
|
+
* timezone). Thin domain wrapper over `groupItemsByDate` from the calendar
|
|
80280
|
+
* package; preserves the historical `Map<string, PublicEvent[]>` shape.
|
|
80281
|
+
*/
|
|
80282
|
+
function groupEventsByDate(events, calendarTimeZone) {
|
|
80283
|
+
const grouped = groupItemsByDate(events, {
|
|
80284
|
+
getStartsAt: (event) => event.startsAt,
|
|
80285
|
+
getTimeZone: () => calendarTimeZone
|
|
80286
|
+
});
|
|
80287
|
+
return new Map([...grouped].map(([dateKey, bucket]) => [dateKey, [...bucket]]));
|
|
80288
|
+
}
|
|
80289
|
+
/** Stable local-day identity shared by ledger continuations and day groups. */
|
|
80290
|
+
function eventLocalDateKey(event) {
|
|
80291
|
+
return getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
80292
|
+
startsAt: event.startsAt,
|
|
80293
|
+
timeZone: resolveBookingBusinessTimeZone(event.timeZone),
|
|
80294
|
+
locale: "en-GB"
|
|
80295
|
+
}));
|
|
80296
|
+
}
|
|
80297
|
+
/** Full weekday and the existing zone-aware time range for a weekly running list. */
|
|
80298
|
+
function formatEventWeekdayTime(event) {
|
|
80299
|
+
const options = eventDateOptions(event);
|
|
80300
|
+
const weekday = formatDate({
|
|
80301
|
+
kind: "instant",
|
|
80302
|
+
value: toUtcIsoDateTimeString(event.startsAt)
|
|
80303
|
+
}, options, {
|
|
80304
|
+
date: "omit",
|
|
80305
|
+
weekday: "long",
|
|
80306
|
+
year: "omit"
|
|
80307
|
+
});
|
|
80308
|
+
return `${weekday} · ${formatEventTimeRange(event, options)}`;
|
|
80309
|
+
}
|
|
80310
|
+
|
|
80311
|
+
//#endregion
|
|
80312
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/closedEarlyCopy.ts
|
|
80313
|
+
const isWeekly$1 = (event) => event.scheduleScope === "recurring";
|
|
80314
|
+
function eventTimeZone(event) {
|
|
80315
|
+
return eventDateOptions(event).timeZone;
|
|
80316
|
+
}
|
|
80317
|
+
/** On a date's own read both `path` and the destination name that date; its event's page is one level up. */
|
|
80318
|
+
function eventOwnPagePath(event) {
|
|
80319
|
+
const path$3 = getPublicEventCanonicalPath(event);
|
|
80320
|
+
const dateSegment = `/${event.occurrenceId}`;
|
|
80321
|
+
return path$3?.endsWith(dateSegment) ? path$3.slice(0, -dateSegment.length) || "/" : path$3;
|
|
80322
|
+
}
|
|
80323
|
+
/** "Bookings close 2 hours before the start.", while they're still open. */
|
|
80324
|
+
function openBookingLine(event) {
|
|
80325
|
+
if (!event.bookingClosesAt) return null;
|
|
80326
|
+
const before = formatBookingCutOffHours(bookingCutOffHoursBetween(event.startsAt, event.bookingClosesAt));
|
|
80327
|
+
return isWeekly$1(event) ? `Bookings for each date close ${before} before the start.` : `Bookings close ${before} before the start.`;
|
|
80328
|
+
}
|
|
80329
|
+
/** The course's open line, counted from its first session still running. */
|
|
80330
|
+
function openRunBookingLine(run) {
|
|
80331
|
+
const first = orderedLiveRunSessions(run.sessions)[0];
|
|
80332
|
+
if (!run.bookingClosesAt || !first) return null;
|
|
80333
|
+
return `Bookings close ${formatBookingCutOffHours(bookingCutOffHoursBetween(first.startsAt, run.bookingClosesAt))} before the first session.`;
|
|
80334
|
+
}
|
|
80335
|
+
/** One date between its cut-off and its start, or null. */
|
|
80336
|
+
function closedDateCopy(event, now) {
|
|
80337
|
+
const closesAt = event.bookingClosesAt;
|
|
80338
|
+
if (!closesAt || !hasBookingClosed(closesAt, now) || Date.parse(event.startsAt) <= now.getTime()) return null;
|
|
80339
|
+
const zone = eventTimeZone(event);
|
|
80340
|
+
const closed = formatBookingClosedTime(closesAt, event.startsAt, zone);
|
|
80341
|
+
const start = formatBookingClosedTime(event.startsAt, event.startsAt, zone);
|
|
80342
|
+
const before = formatBookingCutOffHours(bookingCutOffHoursBetween(event.startsAt, closesAt));
|
|
80343
|
+
const weekly = isWeekly$1(event);
|
|
80344
|
+
return {
|
|
80345
|
+
titleText: weekly ? "Bookings for this date have closed" : "Bookings for this event have closed",
|
|
80346
|
+
bodyText: `Bookings closed at ${closed}, ${before} before the ${start} start. The organiser may still be able to help if you’d like to come.`,
|
|
80347
|
+
otherDatesHref: weekly ? eventOwnPagePath(event) : null
|
|
80348
|
+
};
|
|
80349
|
+
}
|
|
80350
|
+
/** The body of a course past its cut-off, or null if the run doesn't say when. */
|
|
80351
|
+
function closedRunBody(run) {
|
|
80352
|
+
const first = orderedLiveRunSessions(run.sessions)[0];
|
|
80353
|
+
if (!run.bookingClosesAt || !first) return null;
|
|
80354
|
+
const closed = formatBookingClosedTime(run.bookingClosesAt, first.startsAt, first.timeZone);
|
|
80355
|
+
const before = formatBookingCutOffHours(bookingCutOffHoursBetween(first.startsAt, run.bookingClosesAt));
|
|
80356
|
+
return `Bookings closed at ${closed}, ${before} before the first session. The organiser may still be able to help if you’d like to join.`;
|
|
80357
|
+
}
|
|
80358
|
+
|
|
80099
80359
|
//#endregion
|
|
80100
80360
|
//#region ../blocks/src/system/runtime/nodes/event-registration/closedRunCopy.ts
|
|
80101
80361
|
const copy = {
|
|
@@ -80111,6 +80371,10 @@ const copy = {
|
|
|
80111
80371
|
titleText: "These dates have finished",
|
|
80112
80372
|
bodyText: "The details are kept here for reference."
|
|
80113
80373
|
},
|
|
80374
|
+
"bookings-closed": {
|
|
80375
|
+
titleText: "Bookings for these dates have closed",
|
|
80376
|
+
bodyText: "Bookings for these dates have closed. The organiser may still be able to help if you’d like to join."
|
|
80377
|
+
},
|
|
80114
80378
|
"enrolment-closed": {
|
|
80115
80379
|
titleText: "Booking closed",
|
|
80116
80380
|
bodyText: "Bookings are no longer being taken for these dates."
|
|
@@ -80120,8 +80384,28 @@ const copy = {
|
|
|
80120
80384
|
bodyText: "There are no dates to book at the moment. The organiser may add more, and anything already booked still stands."
|
|
80121
80385
|
}
|
|
80122
80386
|
};
|
|
80123
|
-
|
|
80124
|
-
|
|
80387
|
+
/** A run past its cut-off says when it closed, if it can. */
|
|
80388
|
+
function closedRunCopy(reason, run) {
|
|
80389
|
+
const body = reason === "bookings-closed" && run ? closedRunBody(run) : null;
|
|
80390
|
+
return body ? {
|
|
80391
|
+
...copy[reason],
|
|
80392
|
+
bodyText: body
|
|
80393
|
+
} : copy[reason];
|
|
80394
|
+
}
|
|
80395
|
+
/**
|
|
80396
|
+
* A list of dates closes once none is left to book and at least one stopped at
|
|
80397
|
+
* its cut-off. Until then the closed ones just leave the list. There's nothing
|
|
80398
|
+
* further to point at, so the copy offers no other dates.
|
|
80399
|
+
*/
|
|
80400
|
+
function closedDatesCopy(dates, now) {
|
|
80401
|
+
const stillOpen = dates.some((date) => Date.parse(date.startsAt) > now.getTime() && !(date.bookingClosesAt && hasBookingClosed(date.bookingClosesAt, now)));
|
|
80402
|
+
if (stillOpen) return null;
|
|
80403
|
+
const [firstClosed] = dates.flatMap((date) => closedDateCopy(date, now) ?? []);
|
|
80404
|
+
if (!firstClosed) return null;
|
|
80405
|
+
return {
|
|
80406
|
+
...dates.length > 1 ? copy["bookings-closed"] : firstClosed,
|
|
80407
|
+
otherDatesHref: null
|
|
80408
|
+
};
|
|
80125
80409
|
}
|
|
80126
80410
|
|
|
80127
80411
|
//#endregion
|
|
@@ -80531,9 +80815,17 @@ function occurrenceCardAvailability(event, count) {
|
|
|
80531
80815
|
status: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available"
|
|
80532
80816
|
} : null;
|
|
80533
80817
|
}
|
|
80534
|
-
/** Preserve projected closure reasons; only an open native
|
|
80818
|
+
/** Preserve projected closure reasons; only an open native booking needs its clock rechecked. */
|
|
80535
80819
|
function renderClockClosedCta(event, now) {
|
|
80536
|
-
if (!now || event.
|
|
80820
|
+
if (!now || event.destination.kind !== "native") return null;
|
|
80821
|
+
if (event.bookingScope !== "whole_series") {
|
|
80822
|
+
return hasEventBookingClosedEarly(event, now) ? {
|
|
80823
|
+
label: "Registration closed",
|
|
80824
|
+
href: resolveEventHref(event),
|
|
80825
|
+
external: false,
|
|
80826
|
+
hidden: true
|
|
80827
|
+
} : null;
|
|
80828
|
+
}
|
|
80537
80829
|
const phase = resolveWholeSeriesBookingPhase(event.run, now);
|
|
80538
80830
|
if (phase.kind === "open") return null;
|
|
80539
80831
|
const label$1 = (() => {
|
|
@@ -80541,6 +80833,7 @@ function renderClockClosedCta(event, now) {
|
|
|
80541
80833
|
case "cancelled": return "Cancelled";
|
|
80542
80834
|
case "completed": return "Completed";
|
|
80543
80835
|
case "in-progress":
|
|
80836
|
+
case "bookings-closed":
|
|
80544
80837
|
case "enrolment-closed":
|
|
80545
80838
|
case "no-sessions": return "Registration closed";
|
|
80546
80839
|
default: return assertNever(phase.reason);
|
|
@@ -80550,203 +80843,9 @@ function renderClockClosedCta(event, now) {
|
|
|
80550
80843
|
label: label$1,
|
|
80551
80844
|
href: resolveEventHref(event),
|
|
80552
80845
|
external: false,
|
|
80553
|
-
hidden: phase.reason !== "enrolment-closed"
|
|
80554
|
-
};
|
|
80555
|
-
}
|
|
80556
|
-
|
|
80557
|
-
//#endregion
|
|
80558
|
-
//#region ../blocks/src/system/runtime/nodes/events/domain/dates.ts
|
|
80559
|
-
/** Event presentation adapters; core owns projection, clocks and ranges. */
|
|
80560
|
-
function eventDateLocale(siteTimeZone) {
|
|
80561
|
-
return inferSiteDateLocale(siteTimeZone);
|
|
80562
|
-
}
|
|
80563
|
-
function eventCalendarWeekStart(timeZone, override) {
|
|
80564
|
-
return override ?? (inferSiteDateLocale(resolveBookingBusinessTimeZone(timeZone)) === "en-US" ? "sunday" : "monday");
|
|
80565
|
-
}
|
|
80566
|
-
/** Admit older wire zones once; the booking business fallback remains London. */
|
|
80567
|
-
function eventDateOptions(place) {
|
|
80568
|
-
const siteTimeZone = resolveBookingBusinessTimeZone(place.siteTimeZone);
|
|
80569
|
-
const resolved = resolveBookingDisplayContext({
|
|
80570
|
-
sessionTimeZone: resolveBookingTimeZoneId(place.timeZone, siteTimeZone),
|
|
80571
|
-
siteTimeZone,
|
|
80572
|
-
locale: inferSiteDateLocale(siteTimeZone),
|
|
80573
|
-
isOnline: place.isOnline === true || place.deliveryMode === "online" || place.deliveryMode === "hybrid",
|
|
80574
|
-
surface: "public"
|
|
80575
|
-
});
|
|
80576
|
-
return {
|
|
80577
|
-
...resolved.context,
|
|
80578
|
-
zone: resolved.zone
|
|
80579
|
-
};
|
|
80580
|
-
}
|
|
80581
|
-
/** Overnight spans keep their end day; folds retain both distinct offsets. */
|
|
80582
|
-
function formatEventTimeRange(times, options) {
|
|
80583
|
-
const start = toUtcIsoDateTimeString(times.startsAt);
|
|
80584
|
-
const end = toUtcIsoDateTimeString(times.endsAt);
|
|
80585
|
-
const startDay = getLocalScheduleDate(new Date(start), options.timeZone);
|
|
80586
|
-
const endDay = getLocalScheduleDate(new Date(end), options.timeZone);
|
|
80587
|
-
return startDay.year === endDay.year && startDay.month === endDay.month && startDay.day === endDay.day ? formatTimeRange(start, end, options, { zone: options.zone }) : formatDateTimeRange({
|
|
80588
|
-
start,
|
|
80589
|
-
end
|
|
80590
|
-
}, options, {
|
|
80591
|
-
date: "short",
|
|
80592
|
-
zone: options.zone
|
|
80593
|
-
});
|
|
80594
|
-
}
|
|
80595
|
-
function resolveEventTimeZone(event, calendarTimeZone) {
|
|
80596
|
-
return resolveBookingTimeZoneId(event.timeZone, resolveBookingBusinessTimeZone(calendarTimeZone));
|
|
80597
|
-
}
|
|
80598
|
-
function formatDate$1(isoTimestamp, options) {
|
|
80599
|
-
return formatDate({
|
|
80600
|
-
kind: "instant",
|
|
80601
|
-
value: toUtcIsoDateTimeString(isoTimestamp)
|
|
80602
|
-
}, options, {
|
|
80603
|
-
date: "short",
|
|
80604
|
-
weekday: "long"
|
|
80605
|
-
});
|
|
80606
|
-
}
|
|
80607
|
-
function formatTime(isoTimestamp, options) {
|
|
80608
|
-
return formatTime$1(toUtcIsoDateTimeString(isoTimestamp), options, { zone: options.zone });
|
|
80609
|
-
}
|
|
80610
|
-
function formatEventDateParts(args) {
|
|
80611
|
-
return {
|
|
80612
|
-
date: formatDate$1(args.startsAt, args),
|
|
80613
|
-
timeRange: formatEventTimeRange(args, args)
|
|
80614
|
-
};
|
|
80615
|
-
}
|
|
80616
|
-
/** A course run's first to last session date, such as `8–22 Sept 2026`. */
|
|
80617
|
-
function formatEventRunDates(first, last, options) {
|
|
80618
|
-
return formatDateRange({
|
|
80619
|
-
kind: "instant",
|
|
80620
|
-
value: toUtcIsoDateTimeString(first.startsAt)
|
|
80621
|
-
}, {
|
|
80622
|
-
kind: "instant",
|
|
80623
|
-
value: toUtcIsoDateTimeString(last.startsAt)
|
|
80624
|
-
}, options, {
|
|
80625
|
-
date: "short",
|
|
80626
|
-
order: "session"
|
|
80627
|
-
});
|
|
80628
|
-
}
|
|
80629
|
-
/** Civil calendar headings never acquire an instant's timezone shift. */
|
|
80630
|
-
function formatCalendarTitle(viewDate, view, days, timeZone) {
|
|
80631
|
-
const context = eventDateOptions({
|
|
80632
|
-
siteTimeZone: timeZone,
|
|
80633
|
-
timeZone
|
|
80634
|
-
});
|
|
80635
|
-
const first = days[0];
|
|
80636
|
-
const last = days[6];
|
|
80637
|
-
return view === "week" && first && last ? formatDateRange({
|
|
80638
|
-
kind: "civil",
|
|
80639
|
-
value: first
|
|
80640
|
-
}, {
|
|
80641
|
-
kind: "civil",
|
|
80642
|
-
value: last
|
|
80643
|
-
}, context, { date: "short" }) : formatDate({
|
|
80644
|
-
kind: "civil",
|
|
80645
|
-
value: viewDate
|
|
80646
|
-
}, context, {
|
|
80647
|
-
date: "long",
|
|
80648
|
-
day: "omit"
|
|
80649
|
-
});
|
|
80650
|
-
}
|
|
80651
|
-
function buildCalendarViewport(input) {
|
|
80652
|
-
const viewport = buildCalendarViewport$1(input);
|
|
80653
|
-
return {
|
|
80654
|
-
...viewport,
|
|
80655
|
-
title: formatCalendarTitle(input.anchorDate, input.view, viewport.days, input.timeZone)
|
|
80656
|
-
};
|
|
80657
|
-
}
|
|
80658
|
-
/** Tick digits are civil clock values, not session instants. */
|
|
80659
|
-
function formatEventHourLabel(hour, timeZone) {
|
|
80660
|
-
return formatEventClockLabel(`${String(hour % 24).padStart(2, "0")}:00`, eventDateLocale(timeZone));
|
|
80661
|
-
}
|
|
80662
|
-
/** Weekly cadence and tick clocks are civil values; UTC only carries their components. */
|
|
80663
|
-
function formatEventClockLabel(value, locale) {
|
|
80664
|
-
const clock = parseLocalScheduleTime(value);
|
|
80665
|
-
return formatTime$1(toUtcIsoDateTimeString(new Date(Date.UTC(2e3, 0, 1, clock.hour, clock.minute)).toISOString()), {
|
|
80666
|
-
locale,
|
|
80667
|
-
timeZone: resolveBookingBusinessTimeZone("UTC")
|
|
80668
|
-
}, { zone: "omit" });
|
|
80669
|
-
}
|
|
80670
|
-
function formatEventCompactDateRail(isoTimestamp, options, letterCase = "capitals") {
|
|
80671
|
-
const instant = {
|
|
80672
|
-
kind: "instant",
|
|
80673
|
-
value: toUtcIsoDateTimeString(isoTimestamp)
|
|
80674
|
-
};
|
|
80675
|
-
const cased = (value) => letterCase === "capitals" ? value.toLocaleUpperCase(options.locale) : value;
|
|
80676
|
-
return {
|
|
80677
|
-
weekday: cased(formatDate(instant, options, {
|
|
80678
|
-
date: "omit",
|
|
80679
|
-
weekday: "short",
|
|
80680
|
-
year: "omit"
|
|
80681
|
-
})),
|
|
80682
|
-
fullWeekday: formatDate(instant, options, {
|
|
80683
|
-
date: "omit",
|
|
80684
|
-
weekday: "long",
|
|
80685
|
-
year: "omit"
|
|
80686
|
-
}),
|
|
80687
|
-
day: formatDate(instant, options, {
|
|
80688
|
-
date: "omit",
|
|
80689
|
-
day: "numeric",
|
|
80690
|
-
year: "omit"
|
|
80691
|
-
}),
|
|
80692
|
-
month: cased(formatDate(instant, options, {
|
|
80693
|
-
date: "short",
|
|
80694
|
-
day: "omit",
|
|
80695
|
-
year: "omit"
|
|
80696
|
-
}).slice(0, 3)),
|
|
80697
|
-
label: formatDate(instant, options, {
|
|
80698
|
-
date: "long",
|
|
80699
|
-
weekday: "long"
|
|
80700
|
-
})
|
|
80701
|
-
};
|
|
80702
|
-
}
|
|
80703
|
-
/**
|
|
80704
|
-
* Format the next occurrence for the image-free catalogue card treatment.
|
|
80705
|
-
*
|
|
80706
|
-
* The compact rail already owns this short, booking-local date vocabulary;
|
|
80707
|
-
* keep the fact panel on the same date and timezone rules as event rows.
|
|
80708
|
-
*/
|
|
80709
|
-
function formatEventNextDateFact(event) {
|
|
80710
|
-
const rail = formatEventCompactDateRail(event.startsAt, eventDateOptions(event));
|
|
80711
|
-
return {
|
|
80712
|
-
dateTime: event.startsAt,
|
|
80713
|
-
value: `${rail.weekday} ${rail.day} ${rail.month}`,
|
|
80714
|
-
label: rail.label
|
|
80846
|
+
hidden: phase.reason !== "enrolment-closed" && phase.reason !== "bookings-closed"
|
|
80715
80847
|
};
|
|
80716
80848
|
}
|
|
80717
|
-
/**
|
|
80718
|
-
* Group events by their local date (YYYY-MM-DD key in each event's own
|
|
80719
|
-
* timezone). Thin domain wrapper over `groupItemsByDate` from the calendar
|
|
80720
|
-
* package; preserves the historical `Map<string, PublicEvent[]>` shape.
|
|
80721
|
-
*/
|
|
80722
|
-
function groupEventsByDate(events, calendarTimeZone) {
|
|
80723
|
-
const grouped = groupItemsByDate(events, {
|
|
80724
|
-
getStartsAt: (event) => event.startsAt,
|
|
80725
|
-
getTimeZone: () => calendarTimeZone
|
|
80726
|
-
});
|
|
80727
|
-
return new Map([...grouped].map(([dateKey, bucket]) => [dateKey, [...bucket]]));
|
|
80728
|
-
}
|
|
80729
|
-
/** Stable local-day identity shared by ledger continuations and day groups. */
|
|
80730
|
-
function eventLocalDateKey(event) {
|
|
80731
|
-
return getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
80732
|
-
startsAt: event.startsAt,
|
|
80733
|
-
timeZone: resolveBookingBusinessTimeZone(event.timeZone),
|
|
80734
|
-
locale: "en-GB"
|
|
80735
|
-
}));
|
|
80736
|
-
}
|
|
80737
|
-
/** Full weekday and the existing zone-aware time range for a weekly running list. */
|
|
80738
|
-
function formatEventWeekdayTime(event) {
|
|
80739
|
-
const options = eventDateOptions(event);
|
|
80740
|
-
const weekday = formatDate({
|
|
80741
|
-
kind: "instant",
|
|
80742
|
-
value: toUtcIsoDateTimeString(event.startsAt)
|
|
80743
|
-
}, options, {
|
|
80744
|
-
date: "omit",
|
|
80745
|
-
weekday: "long",
|
|
80746
|
-
year: "omit"
|
|
80747
|
-
});
|
|
80748
|
-
return `${weekday} · ${formatEventTimeRange(event, options)}`;
|
|
80749
|
-
}
|
|
80750
80849
|
|
|
80751
80850
|
//#endregion
|
|
80752
80851
|
//#region ../blocks/src/system/runtime/nodes/events/domain/duration.ts
|
|
@@ -80800,8 +80899,8 @@ const QUICK_EVENT_DATE_LIMIT = 4;
|
|
|
80800
80899
|
* Sorting before deduplication means a duplicate occurrence keeps its earliest
|
|
80801
80900
|
* deterministic representation.
|
|
80802
80901
|
*/
|
|
80803
|
-
function selectQuickDateEvents(events) {
|
|
80804
|
-
return orderedUniqueEventOccurrences(events.filter((event) => event.bookingScope !== "whole_series" && isBookableEvent(event))).slice(0, QUICK_EVENT_DATE_LIMIT);
|
|
80902
|
+
function selectQuickDateEvents(events, now) {
|
|
80903
|
+
return orderedUniqueEventOccurrences(events.filter((event) => event.bookingScope !== "whole_series" && isBookableEvent(event, now))).slice(0, QUICK_EVENT_DATE_LIMIT);
|
|
80805
80904
|
}
|
|
80806
80905
|
/** Shared ordering and identity selection, independent of booking capacity. */
|
|
80807
80906
|
function orderedUniqueEventOccurrences(events) {
|
|
@@ -85558,6 +85657,7 @@ function bookingCalendar(event, outcome) {
|
|
|
85558
85657
|
function toRegistrationEvent(event) {
|
|
85559
85658
|
return {
|
|
85560
85659
|
...event,
|
|
85660
|
+
...bookingCloseLine(openBookingLine(event)),
|
|
85561
85661
|
selectionId: event.id,
|
|
85562
85662
|
registrationSubject: {
|
|
85563
85663
|
kind: "occurrence",
|
|
@@ -85565,6 +85665,9 @@ function toRegistrationEvent(event) {
|
|
|
85565
85665
|
}
|
|
85566
85666
|
};
|
|
85567
85667
|
}
|
|
85668
|
+
function bookingCloseLine(line) {
|
|
85669
|
+
return line ? { bookingCloseLine: line } : {};
|
|
85670
|
+
}
|
|
85568
85671
|
function toRegistrationEvents(events) {
|
|
85569
85672
|
return events.filter((event) => event.bookingScope === "single_occurrence").map(toRegistrationEvent);
|
|
85570
85673
|
}
|
|
@@ -85583,6 +85686,7 @@ function toWholeSeriesRegistrationEvent(group) {
|
|
|
85583
85686
|
const lastSession = sessions[sessions.length - 1] ?? firstSession;
|
|
85584
85687
|
return {
|
|
85585
85688
|
...representative,
|
|
85689
|
+
...bookingCloseLine(openRunBookingLine(run)),
|
|
85586
85690
|
selectionId: run.eventSeriesId,
|
|
85587
85691
|
registrationSubject: {
|
|
85588
85692
|
kind: "wholeSeries",
|
|
@@ -88042,6 +88146,11 @@ function resolveWaitlistClaimRestoration(input) {
|
|
|
88042
88146
|
message: "This waiting list invitation is for a different event. Please open the link in your invitation email."
|
|
88043
88147
|
};
|
|
88044
88148
|
}
|
|
88149
|
+
/** A place held on a run or date that's closed is still theirs, so it stays on the list they see. */
|
|
88150
|
+
function withOfferedEvent(choices, invitation) {
|
|
88151
|
+
const offered$1 = invitation.kind === "ready" ? invitation.restoration.event : null;
|
|
88152
|
+
return offered$1 && !choices.some((event) => event.selectionId === offered$1.selectionId) ? [offered$1, ...choices] : choices;
|
|
88153
|
+
}
|
|
88045
88154
|
|
|
88046
88155
|
//#endregion
|
|
88047
88156
|
//#region ../blocks/src/system/runtime/nodes/event-registration/registrationBrowserDraft.ts
|
|
@@ -88615,7 +88724,21 @@ function resolveHeadlessEventRegistrationStatus(wizard) {
|
|
|
88615
88724
|
default: return assertNever$4(wizard.flow);
|
|
88616
88725
|
}
|
|
88617
88726
|
}
|
|
88727
|
+
const BOOKING_CLOSED_MESSAGE = "Booking is currently closed for this event. Please contact the organiser if you’d like to find out more.";
|
|
88618
88728
|
function registrationSurfaceUnavailable(wizard) {
|
|
88729
|
+
if (wizard.bookingClosure.kind === "underway") return null;
|
|
88730
|
+
if (wizard.bookingClosure.kind === "closedEarly") {
|
|
88731
|
+
return {
|
|
88732
|
+
kind: "unavailable",
|
|
88733
|
+
message: wizard.bookingClosure.copy.bodyText
|
|
88734
|
+
};
|
|
88735
|
+
}
|
|
88736
|
+
if (wizard.bookingClosure.kind === "started") {
|
|
88737
|
+
return {
|
|
88738
|
+
kind: "unavailable",
|
|
88739
|
+
message: BOOKING_CLOSED_MESSAGE
|
|
88740
|
+
};
|
|
88741
|
+
}
|
|
88619
88742
|
if (wizard.scopedEvents.length === 0 && !wizard.occurrenceContext) {
|
|
88620
88743
|
return {
|
|
88621
88744
|
kind: "empty",
|
|
@@ -88626,7 +88749,7 @@ function registrationSurfaceUnavailable(wizard) {
|
|
|
88626
88749
|
if (!hasRegistrableEvents && !wizard.occurrenceContext) {
|
|
88627
88750
|
return {
|
|
88628
88751
|
kind: "unavailable",
|
|
88629
|
-
message:
|
|
88752
|
+
message: BOOKING_CLOSED_MESSAGE
|
|
88630
88753
|
};
|
|
88631
88754
|
}
|
|
88632
88755
|
return null;
|
|
@@ -90922,7 +91045,7 @@ function resolveEventRegistrationChoices(events, context, now) {
|
|
|
90922
91045
|
return scoped;
|
|
90923
91046
|
}
|
|
90924
91047
|
const eligibleRunIds = new Set(runs.filter((group) => resolveWholeSeriesChooserEligibility(group, now).kind === "eligible").map((group) => group.eventSeriesId));
|
|
90925
|
-
return scoped.filter((event) => event.bookingScope === "whole_series" ? eligibleRunIds.has(event.seriesId) : Date.parse(event.startsAt) > now.getTime());
|
|
91048
|
+
return scoped.filter((event) => event.bookingScope === "whole_series" ? eligibleRunIds.has(event.seriesId) : Date.parse(event.startsAt) > now.getTime() && !hasEventBookingClosedEarly(event, now));
|
|
90926
91049
|
}
|
|
90927
91050
|
|
|
90928
91051
|
//#endregion
|
|
@@ -91135,7 +91258,7 @@ function closedRegistrationCopy(source, events) {
|
|
|
91135
91258
|
if (hasCancelledRegistrationDate(events, source.occurrenceContext?.id)) return cancelledDateCopy;
|
|
91136
91259
|
const selectedRun = resolveSelectedWholeSeriesRun(events);
|
|
91137
91260
|
const phase = selectedRun ? resolveWholeSeriesBookingPhase(selectedRun.run, new Date(source.now)) : null;
|
|
91138
|
-
return phase?.kind === "closed" ? closedRunCopy(phase.reason) : null;
|
|
91261
|
+
return phase?.kind === "closed" ? closedRunCopy(phase.reason, selectedRun?.run) : null;
|
|
91139
91262
|
}
|
|
91140
91263
|
function buildEventRegistrationShellStepLabels(source, scopedSourceEvents) {
|
|
91141
91264
|
const selectedRun = resolveSelectedWholeSeriesRun(scopedSourceEvents);
|
|
@@ -95810,8 +95933,8 @@ function EventQuickDates({ events, pathname, buttonVariant = "primary", dateStyl
|
|
|
95810
95933
|
* Null when the date has no registration path (closed, paused, not open yet,
|
|
95811
95934
|
* no registration, or full with no waitlist), so no caller repeats that gate.
|
|
95812
95935
|
*/
|
|
95813
|
-
function eventDateBookingLink(event, pathname, dateLabel$1) {
|
|
95814
|
-
if (!isBookableEvent(event)) return null;
|
|
95936
|
+
function eventDateBookingLink(event, pathname, dateLabel$1, now) {
|
|
95937
|
+
if (!isBookableEvent(event, now)) return null;
|
|
95815
95938
|
const cta = resolveEventCta(event);
|
|
95816
95939
|
const destination = resolveRuntimeEventDestination(event);
|
|
95817
95940
|
const href = destination.kind === "external" ? cta.href : resolveDedicatedBookingHref(pathname, {
|
|
@@ -112810,6 +112933,7 @@ function bookingClosedReason(reason) {
|
|
|
112810
112933
|
case "cancelled": return "These dates have been cancelled.";
|
|
112811
112934
|
case "in-progress": return "Bookings closed when the first session began.";
|
|
112812
112935
|
case "completed": return "These dates have finished.";
|
|
112936
|
+
case "bookings-closed":
|
|
112813
112937
|
case "enrolment-closed": return "Bookings for these dates have closed.";
|
|
112814
112938
|
case "no-sessions": return "No dates are currently scheduled.";
|
|
112815
112939
|
}
|
|
@@ -113515,12 +113639,12 @@ function cardsListDates(props$1) {
|
|
|
113515
113639
|
return props$1.lookSlots !== undefined && props$1.datesMode === "next-dates";
|
|
113516
113640
|
}
|
|
113517
113641
|
/** One offering has room for a Book link on each date; several keep plain rows. */
|
|
113518
|
-
function catalogueDateBooking(shape, pathname) {
|
|
113519
|
-
return shape === "single" ? (event, dateLabel$1) => eventDateBookingLink(event, pathname ?? "/", dateLabel$1) : undefined;
|
|
113642
|
+
function catalogueDateBooking(shape, pathname, now) {
|
|
113643
|
+
return shape === "single" ? (event, dateLabel$1) => eventDateBookingLink(event, pathname ?? "/", dateLabel$1, now) : undefined;
|
|
113520
113644
|
}
|
|
113521
113645
|
function renderOfferingsCatalogueGroups({ props: props$1, groups, shape }) {
|
|
113522
113646
|
const enabledSeriesIds = new Set(groups.flatMap((load) => load.kind === "items" ? load.items.map((item) => item.kind === "event" ? item.event.seriesId : item.run.eventSeriesId) : []));
|
|
113523
|
-
const quickDateEvents = cardsListDates(props$1) ? [] : selectQuickDateEvents((props$1.quickDateEvents ?? []).filter((event) => enabledSeriesIds.has(event.seriesId)));
|
|
113647
|
+
const quickDateEvents = cardsListDates(props$1) ? [] : selectQuickDateEvents((props$1.quickDateEvents ?? []).filter((event) => enabledSeriesIds.has(event.seriesId)), props$1.now);
|
|
113524
113648
|
const populated = groups.flatMap(catalogueGroupItems);
|
|
113525
113649
|
const frames = listGroupFrames(props$1);
|
|
113526
113650
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -113585,7 +113709,7 @@ function renderCatalogueItems({ props: props$1, items: items$1, shape, groupTitl
|
|
|
113585
113709
|
}
|
|
113586
113710
|
/** Dates are a display sample; the series card never infers availability from them. */
|
|
113587
113711
|
function catalogueDates(events, now, shape, pathname) {
|
|
113588
|
-
return offeringDatesBySeries(events, now, catalogueDateBooking(shape, pathname));
|
|
113712
|
+
return offeringDatesBySeries(events, now, catalogueDateBooking(shape, pathname, now));
|
|
113589
113713
|
}
|
|
113590
113714
|
function catalogueCardContent(item, now, dates, typeLabel) {
|
|
113591
113715
|
const event = item.kind === "event" ? item.event : item.run.representative;
|
|
@@ -116419,7 +116543,11 @@ function EventBookingPanelBody({ panel }) {
|
|
|
116419
116543
|
});
|
|
116420
116544
|
case "dropIn": return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropInPanel, { panel: panel.panel });
|
|
116421
116545
|
case "bookingClosed": return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BookingClosedPanel, { detail: panel.detail });
|
|
116422
|
-
case "closedRun": return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ClosedRunPanel, {
|
|
116546
|
+
case "closedRun": return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ClosedRunPanel, { copy: closedRunCopy(panel.reason, panel.run) });
|
|
116547
|
+
case "closedDate": return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ClosedRunPanel, {
|
|
116548
|
+
copy: panel.copy,
|
|
116549
|
+
otherDatesHref: panel.copy.otherDatesHref
|
|
116550
|
+
});
|
|
116423
116551
|
case "single": return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SingleDateBooking, { run: panel.run });
|
|
116424
116552
|
case "choice": return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RunChooser, { runs: panel.runs });
|
|
116425
116553
|
case "unavailable": return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -116491,17 +116619,27 @@ function BookingClosedPanel({ detail }) {
|
|
|
116491
116619
|
});
|
|
116492
116620
|
}
|
|
116493
116621
|
/** Dates that cannot be booked keep their details and say why. */
|
|
116494
|
-
function ClosedRunPanel({
|
|
116495
|
-
const copy$1 = closedRunCopy(reason);
|
|
116622
|
+
function ClosedRunPanel({ copy: copy$1, otherDatesHref }) {
|
|
116496
116623
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
116497
116624
|
className: "event-booking-panel__closed-run",
|
|
116498
|
-
children: [
|
|
116499
|
-
|
|
116500
|
-
|
|
116501
|
-
|
|
116502
|
-
|
|
116503
|
-
|
|
116504
|
-
|
|
116625
|
+
children: [
|
|
116626
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", {
|
|
116627
|
+
className: "card-title rb-mb-3",
|
|
116628
|
+
children: copy$1.titleText
|
|
116629
|
+
}),
|
|
116630
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
116631
|
+
className: "status-muted rb-text-base rb-leading-relaxed",
|
|
116632
|
+
children: copy$1.bodyText
|
|
116633
|
+
}),
|
|
116634
|
+
otherDatesHref ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
116635
|
+
className: "rb-mt-4 rb-text-base",
|
|
116636
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", {
|
|
116637
|
+
className: "rb-underline",
|
|
116638
|
+
href: otherDatesHref,
|
|
116639
|
+
children: "See the other dates"
|
|
116640
|
+
})
|
|
116641
|
+
}) : null
|
|
116642
|
+
]
|
|
116505
116643
|
});
|
|
116506
116644
|
}
|
|
116507
116645
|
/**
|
|
@@ -116641,40 +116779,53 @@ function planEventBookingPanel({ selection, subject }, now) {
|
|
|
116641
116779
|
...nonBookingPanel,
|
|
116642
116780
|
registration
|
|
116643
116781
|
};
|
|
116644
|
-
|
|
116645
|
-
|
|
116646
|
-
kind: "closedRun",
|
|
116647
|
-
reason: phase.reason,
|
|
116648
|
-
registration
|
|
116649
|
-
} : {
|
|
116650
|
-
kind: "registration",
|
|
116782
|
+
return {
|
|
116783
|
+
...closedDatePanel(selection, now) ?? closedRunPanel(selection, now) ?? { kind: "registration" },
|
|
116651
116784
|
registration
|
|
116652
116785
|
};
|
|
116653
116786
|
}
|
|
116654
116787
|
case "wholeSeriesParent": {
|
|
116788
|
+
const registration = parentRegistrationTarget(selection, subject);
|
|
116655
116789
|
if (nonBookingPanel) return {
|
|
116656
116790
|
...nonBookingPanel,
|
|
116657
|
-
registration
|
|
116791
|
+
registration
|
|
116658
116792
|
};
|
|
116659
116793
|
const panel = planWholeSeriesParentBooking(selection.eligibleRuns);
|
|
116660
116794
|
return panel.kind === "bookTogether" ? {
|
|
116661
116795
|
kind: "registration",
|
|
116662
|
-
registration
|
|
116663
|
-
events: panel.runs.map((run) => run.representative),
|
|
116664
|
-
subject,
|
|
116665
|
-
occurrenceContext: null
|
|
116666
|
-
}
|
|
116796
|
+
registration
|
|
116667
116797
|
} : {
|
|
116668
116798
|
...panel,
|
|
116669
|
-
registration
|
|
116799
|
+
registration
|
|
116670
116800
|
};
|
|
116671
116801
|
}
|
|
116672
116802
|
case "wholeSeriesParentUnavailable": return {
|
|
116673
116803
|
...nonBookingPanel ?? { kind: "unavailable" },
|
|
116674
|
-
registration:
|
|
116804
|
+
registration: parentRegistrationTarget(selection, subject)
|
|
116675
116805
|
};
|
|
116676
116806
|
}
|
|
116677
116807
|
}
|
|
116808
|
+
/**
|
|
116809
|
+
* A date past its cut-off, however old the page's data is. A list of dates only
|
|
116810
|
+
* closes when every date has: until then the closed ones just leave the list.
|
|
116811
|
+
*/
|
|
116812
|
+
function closedRunPanel(selection, now) {
|
|
116813
|
+
if (selection.kind !== "wholeSeriesRun") return null;
|
|
116814
|
+
const phase = resolveWholeSeriesBookingPhase(selection.run.run, now);
|
|
116815
|
+
return phase.kind === "closed" ? {
|
|
116816
|
+
kind: "closedRun",
|
|
116817
|
+
reason: phase.reason,
|
|
116818
|
+
run: selection.run.run
|
|
116819
|
+
} : null;
|
|
116820
|
+
}
|
|
116821
|
+
function closedDatePanel(selection, now) {
|
|
116822
|
+
if (selection.kind === "wholeSeriesRun") return null;
|
|
116823
|
+
const copy$1 = selection.kind === "occurrence" ? closedDateCopy(selection.event, now) : closedDatesCopy(selection.dates, now);
|
|
116824
|
+
return copy$1 ? {
|
|
116825
|
+
kind: "closedDate",
|
|
116826
|
+
copy: copy$1
|
|
116827
|
+
} : null;
|
|
116828
|
+
}
|
|
116678
116829
|
/** Drop-in and page-level closure take precedence over fresh booking and run selection. */
|
|
116679
116830
|
function planNonBookingPanel(selection) {
|
|
116680
116831
|
if (!selectionRepresentativeEvent(selection).requiresRegistration) {
|
|
@@ -116708,6 +116859,18 @@ function selectionRegistrationTarget(selection, subject) {
|
|
|
116708
116859
|
};
|
|
116709
116860
|
}
|
|
116710
116861
|
}
|
|
116862
|
+
/**
|
|
116863
|
+
* Every run the course page admits, not just those still taking bookings. An
|
|
116864
|
+
* invitation emailed for a run links here, and stays good after that run closes.
|
|
116865
|
+
* The wizard narrows these to the runs it offers for a new booking.
|
|
116866
|
+
*/
|
|
116867
|
+
function parentRegistrationTarget(selection, subject) {
|
|
116868
|
+
return {
|
|
116869
|
+
events: selection.admittedRuns.map((run) => run.representative),
|
|
116870
|
+
occurrenceContext: null,
|
|
116871
|
+
subject
|
|
116872
|
+
};
|
|
116873
|
+
}
|
|
116711
116874
|
/** Cancelled dates have no new-booking or recovery form, including old direct links. */
|
|
116712
116875
|
function isCancelledDateSelection(selection) {
|
|
116713
116876
|
return selection.kind === "occurrence" && hasCancelledRegistrationDate([selection.event]);
|
|
@@ -116715,7 +116878,7 @@ function isCancelledDateSelection(selection) {
|
|
|
116715
116878
|
|
|
116716
116879
|
//#endregion
|
|
116717
116880
|
//#region ../blocks/src/system/runtime/nodes/event-registration/RegistrationClosedState.tsx
|
|
116718
|
-
function RegistrationClosedState({ title, body }) {
|
|
116881
|
+
function RegistrationClosedState({ title, body, otherDatesHref }) {
|
|
116719
116882
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
116720
116883
|
id: EVENT_REGISTRATION_ANCHOR_ID,
|
|
116721
116884
|
className: "rb-reg-surface er-container er-registration-closed",
|
|
@@ -116734,7 +116897,15 @@ function RegistrationClosedState({ title, body }) {
|
|
|
116734
116897
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
116735
116898
|
className: "er-text er-text--muted",
|
|
116736
116899
|
children: body
|
|
116737
|
-
})
|
|
116900
|
+
}),
|
|
116901
|
+
otherDatesHref ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
116902
|
+
className: "er-text",
|
|
116903
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", {
|
|
116904
|
+
className: "rb-underline",
|
|
116905
|
+
href: otherDatesHref,
|
|
116906
|
+
children: "See the other dates"
|
|
116907
|
+
})
|
|
116908
|
+
}) : null
|
|
116738
116909
|
] })
|
|
116739
116910
|
})
|
|
116740
116911
|
});
|
|
@@ -131740,7 +131911,7 @@ async function loadConfig(configPath, output) {
|
|
|
131740
131911
|
return { errorMessage: "No config path provided." };
|
|
131741
131912
|
}
|
|
131742
131913
|
try {
|
|
131743
|
-
const { loadConfigFile: loadConfigFile$1 } = await import("../load-config-
|
|
131914
|
+
const { loadConfigFile: loadConfigFile$1 } = await import("../load-config-DSGN-x3K.mjs");
|
|
131744
131915
|
const rawConfig = await loadConfigFile$1(configPath);
|
|
131745
131916
|
const parsed = z.safeParse(riverbankSiteConfigSchema, rawConfig);
|
|
131746
131917
|
if (!parsed.success) {
|
|
@@ -134902,6 +135073,7 @@ function cancelledRunInput(run) {
|
|
|
134902
135073
|
visibility: run.visibility,
|
|
134903
135074
|
capacity: run.capacity,
|
|
134904
135075
|
waitlistMode: run.waitlistMode,
|
|
135076
|
+
bookingCutOffHours: run.bookingCutOffHours,
|
|
134905
135077
|
bookingOffer: run.bookingOffer,
|
|
134906
135078
|
venueRef: run.venueRef,
|
|
134907
135079
|
settings: run.settings,
|