riverbankcms 0.30.0 → 0.30.1

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.
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
- import { $ as cardStylesOverrideSchema, $n as headingDecorationColorTokenValues, $t as managementMediaLibraryUploadLimitForMimeType, An as paletteModeSchema, Ar as createVenueRef, At as runtimeMediaSchema, Bn as asHeaderStyleId, Bt as parseMediaIdentifier, C as stableStringify, Cn as PALETTE_TOKEN_NAMES, Cr as createEventCategoryRef, Ct as getDirectImageUrlForRelativePath, D as mapEventCommandContent, Dn as paletteColorEntries, Dr as createNavigationRef, Dt as imageMediaSchema, E as resolveEventSeriesWaitlistMapping, En as normalizePaletteHex, Er as createFormRef, Et as isSiteScopedDirectImageStoragePath, F as pageIdentifierForBlockCommand, Fn as gradientPresetIdValues, G as headerPreferencesSchema, Gn as pageDesignEditorBackgroundOverrideOwner, H as bookingPaymentTermsSchema, I as pageIdentifierForCommand, In as parseGradientPresetId, It as mediaTypeDiscriminants, J as defaultHeaderPreferences, K as parseSiteChromeBackgroundColorToken, Kn as parseBookingPageLookId, Kt as getMimeType, L as pagePathForCommand, Lt as mediaIdentifierSchema, M as blockIdentifierForCommand, Mn as parseColorTokenParts, Mt as buildRenderableMediaAssetIndex, N as blockOrderIdentifiersForCommand, Nn as parseThemeColorToken, Nr as __commonJSMin, Nt as resolveManagedMediaReference, On as paletteColorsFromEntries, Or as createPageRef, Ot as mediaSchema, P as entryIdentifierForCommand, Pn as ICON_PICKER_PRESETS, Pr as __toESM, Pt as PUBLIC_FILE_FIELD_KINDS, Qn as eyebrowTreatmentValues, Qt as classifyKnownMimeType, R as hasConfiguredBookingVertical, Rn as asFooterLookId, Rt as buildMediaIdentifierFromFilename, S as sortRecord, Sn as parseOpaqueButtonColourToken, Sr as createContentEntryRef, St as resolveMediaTransformForAspect, Tn as hexColorSchema, Tr as createFooterRef, Tt as getImageUrl, U as defaultFooterPreferences, Ut as deriveVideoSlotPolicy, V as bookingPaymentCollectionOptionSchema, Vn as bookingPageLookIdValues, W as footerPreferencesSchema, Wt as resolveVideoSelectionIntentForMediaField, X as defaultHeaderBrandPresentation, Xn as arrangementModes, Xt as FILE_SIZE_LIMITS, Y as defaultHeaderNavPreferences, Yn as VARIANT_ROLES, Yt as parseRelativeStoragePath, Z as defaultHeaderBrandPreferences, Zn as eventListTreatmentValues, _ as pageLinkSchema$1, _n as buttonPressOffsetSchema, _t as looksLikeUuid, an as cardVariantRoleValues, ar as asBlockOrderIndex, at as headerVariantValues, bn as buttonVisualStatesSchema, br as createBlocksRef, bt as isExplicitRectCrop, c as customLinkSchema$1, cn as surfaceCardRoleValues, ct as blockCustomCssRuleSchema, d as internalLinkSchema, dn as editorialLinkParametersSchema, dr as asLayoutVariantKey, dt as boxBackgroundSchema, en as parseSafeDownloadFilename, er as isArrangementMode, et as containerStylesOverrideSchema, f as internalResolvedLinkSchema, fn as flatInkHoverTreatmentSchema, fr as asPageFlowPresetId, ft as runtimeBoxBackgroundSchema, gn as buttonEffectApplicationSchema, gt as deleteEnvSpecificKeys, h as linkSchema, hn as squareOutlineParametersSchema, hr as changeBookingQuestionsInputSchema, ht as walkAndCollectImageAttrs, i as sdkEventUpsertOptionalFieldSchemas, in as cardRoleValues, ir as asBlockContentVersionId, it as skinBookingBarSchema, j as eventManagementTiming, jn as paletteTokenNameSchema, jr as refSlug, jt as videoMediaSchema, kn as paletteColorsSchema, kt as persistableMediaSchema, l as entryLinkSchema$1, ln as BUTTON_STYLE_IDS, lr as asDesignPageId, lt as customCssRuleSchema, m as isResolvedInternalLinkEntityType, mn as quietArrowParametersSchema, mr as makeBoundaryId, mt as summarizePortableMediaReferences, nn as boxlessCardVariantValue, nr as visibleHeadingDecorationFamilyValues, nt as sectionStylesOverrideSchema, o as classifySdkEventBookingOffer, on as itemRoleValues, or as asBoundaryOptionId, ot as headerInteractionPaletteValues, p as internalRouteOnlyLinkSchema, pn as flatInkParametersSchema, pr as asSiteStyleId, pt as collectPortableMediaReferencesFromContent, q as backgroundAppearanceColorTokenNames, qn as siteChromeBackgroundOverrideOwner, qt as asRecord, rn as cardRoleSchema, rr as asAppearancePresetId, rt as themeSchema, s as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, sn as openCardRoleValue, sr as asDesignBlockId, st as headerInteractionQuietPalette, t as classifySdkEventTiming, tn as getFontWidthRange, tr as tileTreatmentValues, tt as headerPositioningValues, u as externalLinkSchema$1, un as buttonStyleSelectionSchema, ur as asDesignSystemTemplateId, ut as boxBackgroundOverlaySchema, vn as buttonSystemSchema, vr as ianaTimezoneSchema, vt as rotateNormalizedPoint, wn as blockColorTokenNames, wr as createEventSeriesRef, wt as getDirectImageUrlForSiteScopedPath, x as venueManagementFields, xn as opaqueButtonColourTokenSchema, xr as createCommandRef, xt as parseAspectRatioValue, y as isEventVisibility, yn as buttonVariantIdSchema, yr as createBlockRef, yt as normalizeWidthCandidates, z as eventCommandScheduleSchema, zn as asHeaderLayoutId, zt as parseCanonicalMediaIdentifier } from "../sdk-event-upsert-mPJpEQ2x.mjs";
3
- import { $ as locationMapLinks, $t as isPublicEventPricingOptionDisplayable, A as parseMailingListContentVersionId, At as resolveBookingTimeZoneId, C as resolveWholeSeriesBookingPhase, Ct as getBookingLocalDateKey, D as parseManagementKey, Dt as parseBookingLocalDate, E as exposeSecret, G as formatOpeningHoursRows, H as DEFAULT_MAILING_LIST_TARGETING, I as DEFAULT_MAILING_LIST_PRIVACY_NOTE, In as unsafeAsMediaAssetId, L as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, M as parseMailingListRuntimeContext, N as assessMailingListTargeting, Nt as parseUtcIsoDateTimeString, O as slugify, Ot as parseLocalScheduleTime, Pt as toUtcIsoDateTimeString, Qn as parseUserId, Qt as formatEventPricing, Rn as unsafeAsPositiveByteCount, S as orderedLiveRunSessions, St as formatLocalScheduleTime, T as createSecret, Tn as parseSiteTermsVersionId, Tt as getLocalScheduleTime, U as planMailingListChoicePresentation, Ut as getBookingInstalmentPlanIntervalCount, V as parseMailingListPlacementTargeting, W as isCanonicalRichTextDoc, Xn as parseApiKeyId, Xt as parseEventPageSurfaceSubject, Yt as deriveTotalTicketQuantity, Z as decideLocationSave, Zn as parseSiteId, Zt as formatBookingPriceDisplay, _ as WHOLE_SERIES_EVENT_PRESET_VALUES, _t as resolveBookingDisplayContext, an as resolvePricingOptionsPriceDisplay, at as toLocationCoordinates, b as CANCELLED_SESSION_STATUS, bt as compareLocalScheduleDates, cn as mapReadonlyNonEmptyArray, cr as err, ct as mapDrawingSchema, dt as formatDateRange, en as publicEventPricingCurrency, et as locationValueSchema, f as resolveSiteVerticalBookingConfig, ft as formatDateTime, gn as formatCurrencyAmount, gt as inferSiteDateLocale, ht as formatTimeRange, i as authoredValuesEqual, in as resolveExactOrFreePriceDisplay, it as publicLocationSchema$1, j as parseMailingListSignedSourceToken, jt as toBookingTimeZone, k as parseMailingListBlockId, kt as resolveBookingBusinessTimeZone, lr as ok, lt as selectCategoryView, m as EVENT_PRESET_VALUES, mt as formatTime$1, nn as publicEventPricingOptions, nt as parseLocationValue, o as EVENT_PRESET_VOCABULARY, pt as formatDateTimeRange, q as parseWeeklyOpeningHours, r as isRecord$26, rn as publicEventPricingType, rt as projectPublicLocation, s as NAVIGATION_LOCATIONS, st as trimmedStringOrNull, tn as publicEventPricingDisplay, tr as parseEventSeriesId, tt as normalizeLocationAddressText, ur as blockInteractionContextSchema, ut as formatDate, vn as assertNever, vt as toScheduledBookingDateTime, w as resolveWholeSeriesRunLifecycle, wt as getLocalScheduleDate, x as nextLiveRunSessionStartMs, xn as unsafeAsDemoCapability, xt as formatLocalScheduleDate, yn as formatDurationUnitLabel, yt as buildBookingUtcDateWindow, z as parseFooterCompositionV1 } from "../src-DOwrYdTk.mjs";
4
- import { $ as normalizeMediaValueToIdentifierOnly, $n as parseRepeaterGridInteger, $t as bindRequestTimeout, A as formatDiffDetail, An as transportSuggestion, Ar as eventCalendarListLayoutValues, At as navigationIdentity, B as buildFieldChanges, Bn as cardListFamilyBlocks, Br as calendarSourceCursorSchema, Bt as ACCOUNT_SITE_LIST_LIMIT_MIN, C as reportFromOutcomes, Cn as parseEnvironmentSelection, Cr as repriceBookingCollectionOptions, Ct as fileExists, D as normalizeRemoteHomepageReference, Dn as withRiverbankEnv, Dr as eventCalendarDefaultViewValues, Dt as writeJsonFileAtomic, E as createEmptySyncResult, En as requireEnvironmentWriteAuthorization, Er as getBookingLaterInstalments, Et as writeJsonFile, F as calculatePullDiff, Fn as isLocalConfigured, Fr as purchasablePublicMembershipProductSchema, Ft as AccountApiMalformedResponseError, G as syncLocalMediaForPull, Gn as bindingSchema, Gr as normalizeCalendarFilterId, Gt as applyPushConfigPlan, H as formatFieldPath, Hn as lookKnobBlocks, Hr as eventSurfacePresetValues, Ht as ACCOUNT_SITE_TITLE_MAX_LENGTH, I as buildJsonDiff, In as isRemoteConfigured, Ir as purchasablePublicPassProductSchema, It as createBearerAccountApi, J as admitBinaryWriteDestination, Jn as blockContentSourceSchema, Jr as unwrapResponse, Jt as preparePushConfigTarget, K as applyLocalMediaPush, Kn as DEFAULT_MEDIA_FIELD_KINDS, Kr as publicEventLoaderQuerySchemaShape, Kt as createPushConfigCommand, L as hasPageOperations, Ln as loadSdkEnvironment, Lr as CALENDAR_SSR_PAGE_SIZE, Lt as ACCOUNT_SITE_CURSOR_MAX_LENGTH, M as hasPendingChanges, Mr as publicMembershipProductSchema, Mt as convertPulledFooterToLocal, N as findChangedFieldsWithValues, Nn as getEnvPrefix, Nr as publicPassProductSchema, Nt as convertPulledNavigationToLocal, O as calculateDiff, On as ErrorCodes, Or as eventCalendarDisplayModeValues, Ot as isMediaValue, P as formatHumanDiff, Pn as getEnvironmentDebugInfo, Pr as publicProductSchema, Pt as convertPulledPagesToLocal, Q as normalizeMediaIdentifierInput, Qn as isAcceptedRepeaterGridSpan, Qt as mapEnvironmentExecutionOutcomesJson, R as pageMetadataForUpsert, Rn as createManagementClient, Rr as calendarMonthDate, Rt as ACCOUNT_SITE_LIST_LIMIT_DEFAULT, S as planCliCommandBatchForBindings, Sn as executeEnvironmentPlan, Sr as isBookingCollectionEquivalentToUpfront, St as ensureDir, T as executeResidualSettingsSyncPlan, Tn as planEnvironmentWriteAuthorization, Tr as resolveBookingCollectionOptionFacts, Tt as readJsonFile, U as revalidateLocalMediaPushPlan, Un as NodeSchema, Ur as eventSurfaceScopeValues, Ut as navigationCommandItemToManagementInput, V as formatFieldChange, Vn as cardListKnobBlocks, Vr as eventScheduleScopeValues, Vt as ACCOUNT_SITE_SEARCH_MAX_LENGTH, Wn as NodeTreeSchema, Wr as monthNumber, Wt as normalizeNavigationConfigItemForCommand, X as writeBinaryFileAtomic, Xn as fieldSchema$1, Xt as createBearerAPIClient, Y as readStableBinaryFile, Yn as blockRequiredFeatureSchema, Yt as revalidatePushConfigPlan, Z as sha256, Zn as MAX_REPEATER_GRID_COLUMNS, Zt as deriveCmsApiUrlFromDashboardUrl, _ as commandExecutionToReport, _n as runWithInvocation, _r as checkoutStatusArms, _t as metadataFilePath, a as executeEntryCommandPlanAsReport, an as createOutputForCommand, ar as extractApiErrorMessage, at as readEntries, b as executeCompiledCliCommandPlanAsReport, bn as withErrorHandling, br as planCheckoutPaymentFlow, bt as writeMetadataFile, c as titleFromEntryData, cn as getOutputContext, cr as ApiRequestError, ct as readEventsMeta, d as unsafeAsCliEntryIdentifier, dn as managementClientConfigFor, dr as linkPayloadSchema, dt as readNavigationMeta, en as confirmAction, er as resolveRepeaterGridColumnFieldId, et as walkLocalContentMedia, f as unsafeAsCliFormSlug, fn as mapEntryForOutput, fr as portablePageDesignSchema, ft as readPagesMeta, g as commandCompileFailureToReport, gn as resolveCommandPath, gr as API_ENDPOINTS, gt as ensureMetadataDir, h as mutationCounterForEffect, hn as parsePaginationOptions, hr as sdkConfiguredBookingVerticalConfigSchema, ht as writeMediaManifest, i as entrySiteCommandTypes, in as createListCommand, ir as ManagementApiError, it as findLegacyEntryFiles, j as formatDiffSummary, jn as CliExit, jr as publicVenueMapLocationSchema, jt as navigationIdentityMap, k as calculateFooterDiff, kn as formatError, kr as eventCalendarListLayoutCompatibleDisplayModeValues, kt as duplicateNavigationIdentityMessage, l as unsafeAsCliBlockIdentifier, ln as getOutputOnlyContext, lr as sdkEventScheduleSchema, lt as readFooterMeta, m as commandReportToSyncResult, mn as parseJsonData, mr as pageDesignIntentSchemaVersion, mt as readVenuesMeta, n as entryCommandCompileErrorToReport, nn as createCommandContext, nr as resolveRepeaterGridSpanFieldId, nt as downloadMedia, o as executeEntryCommandPlanAsSyncResult, on as currentInvocationEnvelope, or as normalizeApiError, ot as readAllMeta, p as unsafeAsCliPageIdentifier, pn as parseJsonArray, pr as pageDesignDecisionsV2Schema, pt as readSettingsMeta, q as prepareLocalMediaForPush, qn as blockCategoryEnum, qr as ApiEnvelopeError, qt as loadPushConfigTarget, r as entryCommandReportToSyncResult, rn as createGetCommand, rr as visibilityLevels, rt as extractMediaIdentifiers, s as syncResultForEntryCommandCompileError, sn as formatDateShort, sr as isRecord$2, st as readEventCategoriesMeta, t as compileEntryPushCommands, tn as createClientForEnv, tr as resolveRepeaterGridRowFieldId, tt as buildStorageUrl, u as unsafeAsCliContentTypeKey, un as handleCommandError, ur as sdkSettingsUpdateSchema, ut as readFormsMeta, v as commandReportHasFailures, vn as withCommandContext, vr as checkoutCopy, vt as metadataTargetFromEnvironment, w as mergeManySyncResults, wn as planEnvironmentExecution, wr as resolveAvailableBookingCollectionOptions, wt as listFiles, x as formatManagementError, xn as withOutputOnlyErrorHandling, xr as planFlexibleBalanceCreditFirst, xt as writeMetadataRecordMap, y as executeCliCommandPlan, yn as withConfirmation, yr as getStripeMinimumChargeRequirement, yt as readMetadataFile, zn as cardListBlockParts, zr as calendarMonthWindowSchema, zt as ACCOUNT_SITE_LIST_LIMIT_MAX } from "../entryCommands-DqqGit0l.mjs";
5
- import { r as CLI_VERSION, t as loadConfigFile } from "../load-config-Dgw0C6y3.mjs";
6
- import { a as RichTextDocSchema, i as findUnfilledSentinels, n as buildEntryScaffold, o as isRichTextDoc, r as validateEntryInstance, s as sanitizeHref, t as eventUpsertInputSchema } from "../eventUpsertInputSchema-EGy8zFUx.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-cE7TKMc1.mjs";
2
+ import { $ as boxBackgroundOverlaySchema, $n as asDesignSystemTemplateId, $t as buttonStyleSelectionSchema, A as bookingPaymentCollectionOptionSchema, An as bookingPageLookIdValues, Ar as createFormRef, B as defaultHeaderBrandPreferences, Bn as eventListTreatmentValues, C as entryIdentifierForCommand, Cn as ICON_PICKER_PRESETS, Cr as createBlockRef, Ct as PUBLIC_FILE_FIELD_KINDS, D as hasConfiguredBookingVertical, Dn as asFooterLookId, Dr as createEventCategoryRef, Dt as buildMediaIdentifierFromFilename, E as pagePathForCommand, Er as createContentEntryRef, Et as mediaIdentifierSchema, F as parseSiteChromeBackgroundColorToken, Fn as parseBookingPageLookId, Fr as refSlug, Ft as getMimeType, G as sectionStylesOverrideSchema, Gn as visibleHeadingDecorationFamilyValues, Gt as boxlessCardVariantValue, H as cardStylesOverrideSchema, Hn as headingDecorationColorTokenValues, Ht as managementMediaLibraryUploadLimitForMimeType, I as backgroundAppearanceColorTokenNames, In as siteChromeBackgroundOverrideOwner, It as asRecord, J as headerVariantValues, Jn as asBlockOrderIndex, Jt as cardVariantRoleValues, K as themeSchema, Kn as asAppearancePresetId, Kt as cardRoleSchema, L as defaultHeaderPreferences, Lr as __commonJSMin, M as defaultFooterPreferences, Mr as createPageRef, Mt as deriveVideoSlotPolicy, N as footerPreferencesSchema, Nt as resolveVideoSelectionIntentForMediaField, O as eventCommandScheduleSchema, On as asHeaderLayoutId, Or as createEventSeriesRef, Ot as parseCanonicalMediaIdentifier, P as headerPreferencesSchema, Pn as pageDesignEditorBackgroundOverrideOwner, Pr as createVenueRef, Q as customCssRuleSchema, Qn as asDesignPageId, Qt as BUTTON_STYLE_IDS, R as defaultHeaderNavPreferences, Rn as VARIANT_ROLES, Rr as __toESM, Rt as parseRelativeStoragePath, S as blockOrderIdentifiersForCommand, Sn as parseThemeColorToken, Sr as ianaTimezoneSchema, St as resolveManagedMediaReference, T as pageIdentifierForCommand, Tn as parseGradientPresetId, Tr as createCommandRef, Tt as mediaTypeDiscriminants, U as containerStylesOverrideSchema, Un as isArrangementMode, Ut as parseSafeDownloadFilename, Vn as eyebrowTreatmentValues, Vt as classifyKnownMimeType, W as headerPositioningValues, Wn as tileTreatmentValues, Wt as getFontWidthRange, X as headerInteractionQuietPalette, Xn as asDesignBlockId, Xt as openCardRoleValue, Y as headerInteractionPaletteValues, Yn as asBoundaryOptionId, Yt as itemRoleValues, Z as blockCustomCssRuleSchema, Zt as surfaceCardRoleValues, _n as paletteColorsFromEntries, _r as linkSchema, _t as mediaSchema, an as buttonEffectApplicationSchema, ar as RichTextDocSchema, at as deleteEnvSpecificKeys, b as eventManagementTiming, bn as paletteTokenNameSchema, bt as videoMediaSchema, c as isEventVisibility, cn as buttonVariantIdSchema, cr as sanitizeHref, ct as normalizeWidthCandidates, d as sortRecord, dn as parseOpaqueButtonColourToken, dr as entryLinkSchema$1, dt as resolveMediaTransformForAspect, en as editorialLinkParametersSchema, er as asLayoutVariantKey, et as boxBackgroundSchema, f as stableStringify, fn as PALETTE_TOKEN_NAMES, fr as externalLinkSchema$1, ft as getDirectImageUrlForRelativePath, g as mapEventCommandContent, gn as paletteColorEntries, gr as isResolvedInternalLinkEntityType, gt as imageMediaSchema, h as resolveEventSeriesWaitlistMapping, hn as normalizePaletteHex, hr as internalRouteOnlyLinkSchema, ht as isSiteScopedDirectImageStoragePath, i as sdkEventUpsertOptionalFieldSchemas, in as squareOutlineParametersSchema, ir as changeBookingQuestionsInputSchema, it as walkAndCollectImageAttrs, j as bookingPaymentTermsSchema, jr as createNavigationRef, kn as asHeaderStyleId, kr as createFooterRef, kt as parseMediaIdentifier, ln as buttonVisualStatesSchema, lr as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, lt as isExplicitRectCrop, mn as hexColorSchema, mr as internalResolvedLinkSchema, mt as getImageUrl, nn as flatInkParametersSchema, nr as asSiteStyleId, nt as collectPortableMediaReferencesFromContent, o as classifySdkEventBookingOffer, on as buttonPressOffsetSchema, ot as looksLikeUuid, pn as blockColorTokenNames, pr as internalLinkSchema, pt as getDirectImageUrlForSiteScopedPath, q as skinBookingBarSchema, qn as asBlockContentVersionId, qt as cardRoleValues, rn as quietArrowParametersSchema, rr as makeBoundaryId, rt as summarizePortableMediaReferences, sn as buttonSystemSchema, sr as isRichTextDoc, st as rotateNormalizedPoint, t as classifySdkEventTiming, tn as flatInkHoverTreatmentSchema, tr as asPageFlowPresetId, tt as runtimeBoxBackgroundSchema, u as venueManagementFields, un as opaqueButtonColourTokenSchema, ur as customLinkSchema$1, ut as parseAspectRatioValue, vn as paletteColorsSchema, vt as persistableMediaSchema, w as pageIdentifierForBlockCommand, wn as gradientPresetIdValues, wr as createBlocksRef, x as blockIdentifierForCommand, xn as parseColorTokenParts, xt as buildRenderableMediaAssetIndex, yn as paletteModeSchema, yr as pageLinkSchema$1, yt as runtimeMediaSchema, z as defaultHeaderBrandPresentation, zn as arrangementModes, zt as FILE_SIZE_LIMITS } from "../sdk-event-upsert-RMUvPiD5.mjs";
3
+ import { $ as locationMapLinks, $t as isPublicEventPricingOptionDisplayable, A as parseMailingListContentVersionId, At as resolveBookingTimeZoneId, C as resolveWholeSeriesBookingPhase, Ct as getBookingLocalDateKey, D as parseManagementKey, Dt as parseBookingLocalDate, E as exposeSecret, G as formatOpeningHoursRows, H as DEFAULT_MAILING_LIST_TARGETING, I as DEFAULT_MAILING_LIST_PRIVACY_NOTE, In as unsafeAsMediaAssetId, L as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, M as parseMailingListRuntimeContext, N as assessMailingListTargeting, Nt as parseUtcIsoDateTimeString, O as slugify, Ot as parseLocalScheduleTime, Pt as toUtcIsoDateTimeString, Qn as parseUserId, Qt as formatEventPricing, Rn as unsafeAsPositiveByteCount, S as orderedLiveRunSessions, St as formatLocalScheduleTime, T as createSecret, Tn as parseSiteTermsVersionId, Tt as getLocalScheduleTime, U as planMailingListChoicePresentation, Ut as getBookingInstalmentPlanIntervalCount, V as parseMailingListPlacementTargeting, W as isCanonicalRichTextDoc, Xn as parseApiKeyId, Xt as parseEventPageSurfaceSubject, Yt as deriveTotalTicketQuantity, Z as decideLocationSave, Zn as parseSiteId, Zt as formatBookingPriceDisplay, _ as WHOLE_SERIES_EVENT_PRESET_VALUES, _t as resolveBookingDisplayContext, an as resolvePricingOptionsPriceDisplay, at as toLocationCoordinates, b as CANCELLED_SESSION_STATUS, bt as compareLocalScheduleDates, cn as mapReadonlyNonEmptyArray, cr as err, ct as mapDrawingSchema, dt as formatDateRange, en as publicEventPricingCurrency, et as locationValueSchema, f as resolveSiteVerticalBookingConfig, ft as formatDateTime, gn as formatCurrencyAmount, gt as inferSiteDateLocale, ht as formatTimeRange, i as authoredValuesEqual, in as resolveExactOrFreePriceDisplay, it as publicLocationSchema$1, j as parseMailingListSignedSourceToken, jt as toBookingTimeZone, k as parseMailingListBlockId, kt as resolveBookingBusinessTimeZone, lr as ok, lt as selectCategoryView, m as EVENT_PRESET_VALUES, mt as formatTime$1, nn as publicEventPricingOptions, nt as parseLocationValue, o as EVENT_PRESET_VOCABULARY, pt as formatDateTimeRange, q as parseWeeklyOpeningHours, r as isRecord$26, rn as publicEventPricingType, rt as projectPublicLocation, s as NAVIGATION_LOCATIONS, st as trimmedStringOrNull, tn as publicEventPricingDisplay, tr as parseEventSeriesId, tt as normalizeLocationAddressText, ur as blockInteractionContextSchema, ut as formatDate, vn as assertNever, vt as toScheduledBookingDateTime, w as resolveWholeSeriesRunLifecycle, wt as getLocalScheduleDate, x as nextLiveRunSessionStartMs, xn as unsafeAsDemoCapability, xt as formatLocalScheduleDate, yn as formatDurationUnitLabel, yt as buildBookingUtcDateWindow, z as parseFooterCompositionV1 } from "../src-BntuEwG8.mjs";
4
+ import { $ as normalizeMediaValueToIdentifierOnly, $n as parseRepeaterGridInteger, $t as bindRequestTimeout, A as formatDiffDetail, An as transportSuggestion, Ar as eventCalendarListLayoutValues, At as navigationIdentity, B as buildFieldChanges, Bn as cardListFamilyBlocks, Br as calendarSourceCursorSchema, Bt as ACCOUNT_SITE_LIST_LIMIT_MIN, C as reportFromOutcomes, Cn as parseEnvironmentSelection, Cr as repriceBookingCollectionOptions, Ct as fileExists, D as normalizeRemoteHomepageReference, Dn as withRiverbankEnv, Dr as eventCalendarDefaultViewValues, Dt as writeJsonFileAtomic, E as createEmptySyncResult, En as requireEnvironmentWriteAuthorization, Er as getBookingLaterInstalments, Et as writeJsonFile, F as calculatePullDiff, Fn as isLocalConfigured, Fr as purchasablePublicMembershipProductSchema, Ft as AccountApiMalformedResponseError, G as syncLocalMediaForPull, Gn as bindingSchema, Gr as normalizeCalendarFilterId, Gt as applyPushConfigPlan, H as formatFieldPath, Hn as lookKnobBlocks, Hr as eventSurfacePresetValues, Ht as ACCOUNT_SITE_TITLE_MAX_LENGTH, I as buildJsonDiff, In as isRemoteConfigured, Ir as purchasablePublicPassProductSchema, It as createBearerAccountApi, J as admitBinaryWriteDestination, Jn as blockContentSourceSchema, Jr as unwrapResponse, Jt as preparePushConfigTarget, K as applyLocalMediaPush, Kn as DEFAULT_MEDIA_FIELD_KINDS, Kr as publicEventLoaderQuerySchemaShape, Kt as createPushConfigCommand, L as hasPageOperations, Ln as loadSdkEnvironment, Lr as CALENDAR_SSR_PAGE_SIZE, Lt as ACCOUNT_SITE_CURSOR_MAX_LENGTH, M as hasPendingChanges, Mr as publicMembershipProductSchema, Mt as convertPulledFooterToLocal, N as findChangedFieldsWithValues, Nn as getEnvPrefix, Nr as publicPassProductSchema, Nt as convertPulledNavigationToLocal, O as calculateDiff, On as ErrorCodes, Or as eventCalendarDisplayModeValues, Ot as isMediaValue, P as formatHumanDiff, Pn as getEnvironmentDebugInfo, Pr as publicProductSchema, Pt as convertPulledPagesToLocal, Q as normalizeMediaIdentifierInput, Qn as isAcceptedRepeaterGridSpan, Qt as mapEnvironmentExecutionOutcomesJson, R as pageMetadataForUpsert, Rn as createManagementClient, Rr as calendarMonthDate, Rt as ACCOUNT_SITE_LIST_LIMIT_DEFAULT, S as planCliCommandBatchForBindings, Sn as executeEnvironmentPlan, Sr as isBookingCollectionEquivalentToUpfront, St as ensureDir, T as executeResidualSettingsSyncPlan, Tn as planEnvironmentWriteAuthorization, Tr as resolveBookingCollectionOptionFacts, Tt as readJsonFile, U as revalidateLocalMediaPushPlan, Un as NodeSchema, Ur as eventSurfaceScopeValues, Ut as navigationCommandItemToManagementInput, V as formatFieldChange, Vn as cardListKnobBlocks, Vr as eventScheduleScopeValues, Vt as ACCOUNT_SITE_SEARCH_MAX_LENGTH, Wn as NodeTreeSchema, Wr as monthNumber, Wt as normalizeNavigationConfigItemForCommand, X as writeBinaryFileAtomic, Xn as fieldSchema$1, Xt as createBearerAPIClient, Y as readStableBinaryFile, Yn as blockRequiredFeatureSchema, Yt as revalidatePushConfigPlan, Z as sha256, Zn as MAX_REPEATER_GRID_COLUMNS, Zt as deriveCmsApiUrlFromDashboardUrl, _ as commandExecutionToReport, _n as runWithInvocation, _r as checkoutStatusArms, _t as metadataFilePath, a as executeEntryCommandPlanAsReport, an as createOutputForCommand, ar as extractApiErrorMessage, at as readEntries, b as executeCompiledCliCommandPlanAsReport, bn as withErrorHandling, br as planCheckoutPaymentFlow, bt as writeMetadataFile, c as titleFromEntryData, cn as getOutputContext, cr as ApiRequestError, ct as readEventsMeta, d as unsafeAsCliEntryIdentifier, dn as managementClientConfigFor, dr as linkPayloadSchema, dt as readNavigationMeta, en as confirmAction, er as resolveRepeaterGridColumnFieldId, et as walkLocalContentMedia, f as unsafeAsCliFormSlug, fn as mapEntryForOutput, fr as portablePageDesignSchema, ft as readPagesMeta, g as commandCompileFailureToReport, gn as resolveCommandPath, gr as API_ENDPOINTS, gt as ensureMetadataDir, h as mutationCounterForEffect, hn as parsePaginationOptions, hr as sdkConfiguredBookingVerticalConfigSchema, ht as writeMediaManifest, i as entrySiteCommandTypes, in as createListCommand, ir as ManagementApiError, it as findLegacyEntryFiles, j as formatDiffSummary, jn as CliExit, jr as publicVenueMapLocationSchema, jt as navigationIdentityMap, k as calculateFooterDiff, kn as formatError, kr as eventCalendarListLayoutCompatibleDisplayModeValues, kt as duplicateNavigationIdentityMessage, l as unsafeAsCliBlockIdentifier, ln as getOutputOnlyContext, lr as sdkEventScheduleSchema, lt as readFooterMeta, m as commandReportToSyncResult, mn as parseJsonData, mr as pageDesignIntentSchemaVersion, mt as readVenuesMeta, n as entryCommandCompileErrorToReport, nn as createCommandContext, nr as resolveRepeaterGridSpanFieldId, nt as downloadMedia, o as executeEntryCommandPlanAsSyncResult, on as currentInvocationEnvelope, or as normalizeApiError, ot as readAllMeta, p as unsafeAsCliPageIdentifier, pn as parseJsonArray, pr as pageDesignDecisionsV2Schema, pt as readSettingsMeta, q as prepareLocalMediaForPush, qn as blockCategoryEnum, qr as ApiEnvelopeError, qt as loadPushConfigTarget, r as entryCommandReportToSyncResult, rn as createGetCommand, rr as visibilityLevels, rt as extractMediaIdentifiers, s as syncResultForEntryCommandCompileError, sn as formatDateShort, sr as isRecord$2, st as readEventCategoriesMeta, t as compileEntryPushCommands, tn as createClientForEnv, tr as resolveRepeaterGridRowFieldId, tt as buildStorageUrl, u as unsafeAsCliContentTypeKey, un as handleCommandError, ur as sdkSettingsUpdateSchema, ut as readFormsMeta, v as commandReportHasFailures, vn as withCommandContext, vr as checkoutCopy, vt as metadataTargetFromEnvironment, w as mergeManySyncResults, wn as planEnvironmentExecution, wr as resolveAvailableBookingCollectionOptions, wt as listFiles, x as formatManagementError, xn as withOutputOnlyErrorHandling, xr as planFlexibleBalanceCreditFirst, xt as writeMetadataRecordMap, y as executeCliCommandPlan, yn as withConfirmation, yr as getStripeMinimumChargeRequirement, yt as readMetadataFile, zn as cardListBlockParts, zr as calendarMonthWindowSchema, zt as ACCOUNT_SITE_LIST_LIMIT_MAX } from "../entryCommands-BdWO_ZfG.mjs";
5
+ import { r as CLI_VERSION, t as loadConfigFile } from "../load-config-C4powIPE.mjs";
6
+ import { i as findUnfilledSentinels, n as buildEntryScaffold, r as validateEntryInstance, t as eventUpsertInputSchema } from "../eventUpsertInputSchema-u-IyFUEF.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-AJDYca86.mjs";
8
8
  import { config } from "dotenv";
9
9
  import { Command, CommanderError } from "commander";
10
10
  import { z } from "zod";
@@ -18461,6 +18461,10 @@ const bookingLookGroundLimits = {
18461
18461
  "site-style:brook": {
18462
18462
  lightness: [.88, 1],
18463
18463
  maxChroma: .04
18464
+ },
18465
+ "site-style:poise": {
18466
+ lightness: [.88, 1],
18467
+ maxChroma: .04
18464
18468
  }
18465
18469
  };
18466
18470
  const contrast = (against, ratio$1 = 3) => ({
@@ -19222,6 +19226,108 @@ const brook = {
19222
19226
  c: [.08, .13]
19223
19227
  }]
19224
19228
  };
19229
+ /**
19230
+ * Poise: the brand colour is the one loud area, filling the opening and the
19231
+ * team section, and it fills the buttons everywhere else (on the brand field
19232
+ * they turn ink). The rest is a quiet page, white cards and a band on
19233
+ * surfaceAlt. The only other colour it draws is the small marks, in the
19234
+ * accent wherever that reaches 3:1, so a dark owner colour or a second colour
19235
+ * goes there. Secondary is never drawn.
19236
+ */
19237
+ const poiseLimits = bookingLookGroundLimits["site-style:poise"];
19238
+ const poiseBrand = {
19239
+ roles: ["primary"],
19240
+ name: "the colour panels and buttons"
19241
+ };
19242
+ const poise = {
19243
+ buttonSlot: poiseBrand,
19244
+ roles: {
19245
+ ...lightGrounds(poiseLimits, {
19246
+ page: .01,
19247
+ band: .03,
19248
+ bandL: [.9, .945]
19249
+ }),
19250
+ surfaceAlt: {
19251
+ l: [.9, .945],
19252
+ c: [0, .03],
19253
+ chromaShare: .3,
19254
+ target: .925,
19255
+ name: "the band",
19256
+ needs: [distinct("background", .03)]
19257
+ },
19258
+ muted: {
19259
+ l: [.93, .965],
19260
+ c: [0, .03],
19261
+ chromaShare: .25,
19262
+ target: .948,
19263
+ name: "the quieter panels",
19264
+ needs: [distinct("background", .015)]
19265
+ },
19266
+ primary: {
19267
+ l: [.66, .93],
19268
+ c: [.03, .2],
19269
+ target: .8,
19270
+ name: "the colour panels and buttons",
19271
+ mention: true,
19272
+ needs: buttonSeparation(lightReading)
19273
+ },
19274
+ secondary: {
19275
+ l: [.18, .4],
19276
+ c: [.01, .08],
19277
+ target: .28,
19278
+ name: "the quiet details"
19279
+ },
19280
+ accent: {
19281
+ l: [.2, .66],
19282
+ c: [.05, .17],
19283
+ target: .42,
19284
+ name: "the small marks",
19285
+ mention: true,
19286
+ analogous: true,
19287
+ needs: [
19288
+ contrast("background"),
19289
+ contrast("surface"),
19290
+ contrast("surfaceAlt"),
19291
+ contrast("primary")
19292
+ ]
19293
+ }
19294
+ },
19295
+ slots: [poiseBrand, {
19296
+ roles: ["accent"],
19297
+ name: "the small marks"
19298
+ }],
19299
+ order: [
19300
+ "background",
19301
+ "surface",
19302
+ "surfaceAlt",
19303
+ "muted",
19304
+ "border",
19305
+ "primary",
19306
+ "secondary",
19307
+ "accent"
19308
+ ],
19309
+ neutrals: {
19310
+ dark: [.22, .015],
19311
+ light: [.99, .006]
19312
+ },
19313
+ reading: lightReading,
19314
+ groundLimit: poiseLimits.maxChroma,
19315
+ contrast: [{
19316
+ label: "the complement on the small marks",
19317
+ hue: "complement",
19318
+ second: "accent",
19319
+ lead: "primary",
19320
+ l: .42,
19321
+ c: [.08, .14]
19322
+ }, {
19323
+ label: "a warm colour on the small marks",
19324
+ hue: "split-warm",
19325
+ second: "accent",
19326
+ lead: "primary",
19327
+ l: .42,
19328
+ c: [.08, .14]
19329
+ }]
19330
+ };
19225
19331
  /** Keyed by the offered looks, so a booking look without a colour spec doesn't compile. */
19226
19332
  const bookingLookColourSpecs = {
19227
19333
  "site-style:fulcrum": fulcrum,
@@ -19230,7 +19336,8 @@ const bookingLookColourSpecs = {
19230
19336
  "site-style:lantern": lantern,
19231
19337
  "site-style:poster": poster,
19232
19338
  "site-style:loom": loom,
19233
- "site-style:brook": brook
19339
+ "site-style:brook": brook,
19340
+ "site-style:poise": poise
19234
19341
  };
19235
19342
 
19236
19343
  //#endregion
@@ -26971,6 +27078,71 @@ const poiseNight = defineCuratedPalette({
26971
27078
  }
26972
27079
  ]
26973
27080
  });
27081
+ const poiseMono = defineCuratedPalette({
27082
+ authoringKey: "poise-mono",
27083
+ name: "Poise — Mono",
27084
+ description: "Black, white and light grey, with black buttons and a dark band for the footer.",
27085
+ tags: {
27086
+ tone: "bold",
27087
+ energy: "calm",
27088
+ era: "modern"
27089
+ },
27090
+ mode: "light",
27091
+ colors: [
27092
+ {
27093
+ name: "primary",
27094
+ hex: "#111111"
27095
+ },
27096
+ {
27097
+ name: "secondary",
27098
+ hex: "#3a3a3a"
27099
+ },
27100
+ {
27101
+ name: "accent",
27102
+ hex: "#5c5c5c"
27103
+ },
27104
+ {
27105
+ name: "success",
27106
+ hex: "#1e7a4c"
27107
+ },
27108
+ {
27109
+ name: "warning",
27110
+ hex: "#b06f10"
27111
+ },
27112
+ {
27113
+ name: "destructive",
27114
+ hex: "#c8352a"
27115
+ },
27116
+ {
27117
+ name: "background",
27118
+ hex: "#ffffff"
27119
+ },
27120
+ {
27121
+ name: "surface",
27122
+ hex: "#ffffff"
27123
+ },
27124
+ {
27125
+ name: "surfaceAlt",
27126
+ hex: "#f0f0f0"
27127
+ },
27128
+ {
27129
+ name: "muted",
27130
+ hex: "#575757"
27131
+ },
27132
+ {
27133
+ name: "text",
27134
+ hex: "#111111"
27135
+ },
27136
+ {
27137
+ name: "primaryForeground",
27138
+ hex: "#ffffff"
27139
+ },
27140
+ {
27141
+ name: "border",
27142
+ hex: "#d9d9d9"
27143
+ }
27144
+ ]
27145
+ });
26974
27146
  const havenBlush = defineCuratedPalette({
26975
27147
  authoringKey: "haven-blush",
26976
27148
  name: "Haven — Blush",
@@ -27416,6 +27588,10 @@ const styleSuggestedPalettes = [
27416
27588
  ...admitCuratedPaletteDefinition(poiseNight),
27417
27589
  ownerStyleId: "site-style:poise"
27418
27590
  },
27591
+ {
27592
+ ...admitCuratedPaletteDefinition(poiseMono),
27593
+ ownerStyleId: "site-style:poise"
27594
+ },
27419
27595
  {
27420
27596
  ...admitCuratedPaletteDefinition(havenBlush),
27421
27597
  ownerStyleId: "site-style:haven"
@@ -31154,6 +31330,21 @@ const brookFontPairings = [
31154
31330
  }
31155
31331
  }
31156
31332
  ];
31333
+ const poiseFontPairings = [{
31334
+ id: "poise-schibsted",
31335
+ heading: poiseTypography.headings.default.family,
31336
+ body: poiseTypography.body.family
31337
+ }, {
31338
+ id: "poise-anton",
31339
+ heading: "Anton, \"Arial Narrow\", sans-serif",
31340
+ body: "Inter, system-ui, sans-serif",
31341
+ headingTreatment: {
31342
+ weight: "regular",
31343
+ letterSpacing: "normal",
31344
+ lineHeight: "tight",
31345
+ case: "uppercase"
31346
+ }
31347
+ }];
31157
31348
  const fulcrumFontPairings = [{
31158
31349
  id: "fulcrum-source",
31159
31350
  heading: "\"Source Serif 4\", Georgia, serif",
@@ -32608,7 +32799,8 @@ const bookingPageNoPhotoHeroLookIds = {
32608
32799
  "site-style:lantern": "hero-framed-title",
32609
32800
  "site-style:poster": "hero-page-head",
32610
32801
  "site-style:loom": "hero-page-head",
32611
- "site-style:brook": "hero-page-head"
32802
+ "site-style:brook": "hero-page-head",
32803
+ "site-style:poise": "hero-page-head"
32612
32804
  };
32613
32805
  function bookingPageOfferingFor(siteStyleId) {
32614
32806
  const lookId = bookingPageLookIdValues.find((id$2) => id$2 === siteStyleId);
@@ -37671,6 +37863,7 @@ const curatedSiteStyles = [
37671
37863
  },
37672
37864
  compositionBudget: balancedBudget,
37673
37865
  typography: poiseTypography,
37866
+ fontPairings: poiseFontPairings,
37674
37867
  looks: poiseLooks,
37675
37868
  contentTemplateDefaults: { event: "event-header" },
37676
37869
  themeOverrides: {
@@ -37742,7 +37935,8 @@ const curatedSiteStyles = [
37742
37935
  paletteRecommendations: [
37743
37936
  paletteRecommendation("poise-butter"),
37744
37937
  paletteRecommendation("poise-ember"),
37745
- paletteRecommendation("poise-night")
37938
+ paletteRecommendation("poise-night"),
37939
+ paletteRecommendation("poise-mono")
37746
37940
  ]
37747
37941
  }),
37748
37942
  defineCuratedSiteStyle({
@@ -44659,7 +44853,8 @@ const bookingLookProminentButtonSurfaces = {
44659
44853
  "site-style:lantern": ["base", "band"],
44660
44854
  "site-style:poster": ["brand", "sheet"],
44661
44855
  "site-style:loom": ["base", "sheet"],
44662
- "site-style:brook": ["base", "sheet"]
44856
+ "site-style:brook": ["base", "sheet"],
44857
+ "site-style:poise": ["brand", "sheet"]
44663
44858
  };
44664
44859
  function keptPrimary(context) {
44665
44860
  if (context.kind !== "resolved") return false;
@@ -44840,6 +45035,7 @@ function pairingHeadings(value, heading) {
44840
45035
  const current = value.typography.headings;
44841
45036
  if (heading === current.default.family || !style?.fontPairings.some((pairing) => pairing.headingTreatment)) return current;
44842
45037
  const treatment = style.fontPairings.find((pairing) => pairing.heading === heading && pairing.headingTreatment)?.headingTreatment ?? {};
45038
+ const { case: _case, ...levelTreatment } = treatment;
44843
45039
  const authored = style.typography.headings;
44844
45040
  const levels = [
44845
45041
  "h1",
@@ -44855,7 +45051,7 @@ function pairingHeadings(value, heading) {
44855
45051
  weight: own.weight,
44856
45052
  letterSpacing: own.letterSpacing,
44857
45053
  lineHeight: own.lineHeight,
44858
- ...treatment
45054
+ ...levelTreatment
44859
45055
  }]] : [];
44860
45056
  });
44861
45057
  return {
@@ -44871,7 +45067,8 @@ function pairingDefaultHeading(current, authored, treatment) {
44871
45067
  ...current,
44872
45068
  weight: treatment.weight ?? authored.weight,
44873
45069
  letterSpacing: treatment.letterSpacing ?? authored.letterSpacing,
44874
- lineHeight: displayLeading ? "normal" : treatment.lineHeight ?? authored.lineHeight
45070
+ lineHeight: displayLeading ? "normal" : treatment.lineHeight ?? authored.lineHeight,
45071
+ case: treatment.case ?? authored.case
44875
45072
  };
44876
45073
  }
44877
45074
  function applyFontFamilies(value, heading, body) {
@@ -57921,6 +58118,20 @@ function compileManifestContentContract(manifestOrFields, options = {}) {
57921
58118
  })
57922
58119
  });
57923
58120
  }
58121
+ const registeredManifestContracts = new WeakMap();
58122
+ /**
58123
+ * The content contract of a registered block manifest, compiled once per
58124
+ * manifest. Registered manifests are module constants that nothing mutates, so
58125
+ * per-block admission on a render path need not rebuild its Zod schemas. Ad hoc
58126
+ * field lists and option variants still go through `compileManifestContentContract`.
58127
+ */
58128
+ function registeredManifestContentContract(manifest) {
58129
+ const cached = registeredManifestContracts.get(manifest);
58130
+ if (cached) return cached;
58131
+ const contract = compileManifestContentContract(manifest);
58132
+ registeredManifestContracts.set(manifest, contract);
58133
+ return contract;
58134
+ }
57924
58135
  function unknownManifestFieldPaths(plans, value, parent = [], discriminator) {
57925
58136
  if (!isPlainRecord$1(value)) return [];
57926
58137
  const known = new Set([...plans.map((plan) => plan.fieldId), ...discriminator ? [discriminator] : []]);
@@ -72122,6 +72333,7 @@ const bookingWizard = bookingForm(withApiBindings({
72122
72333
  from: "$root.demoEmailSuppressed",
72123
72334
  fallback: false
72124
72335
  } },
72336
+ pageNavigation: { $bind: { from: "$root.pageNavigation" } },
72125
72337
  portalToken: { $bind: {
72126
72338
  from: "$root.portalToken",
72127
72339
  fallback: null
@@ -73334,6 +73546,38 @@ const occurrenceContextSchema = z.object({
73334
73546
  overrides: z.record(z.string(), z.unknown()).nullable().optional()
73335
73547
  }).nullable();
73336
73548
 
73549
+ //#endregion
73550
+ //#region ../blocks/src/system/runtime/shared/navigation/pageNavigation.ts
73551
+ const pageNavigationSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("page") }), z.object({
73552
+ kind: z.literal("embed"),
73553
+ canonicalOrigin: z.string().url()
73554
+ })]);
73555
+ const PAGE_NAVIGATION = { kind: "page" };
73556
+ /** Page mode preserves the caller's URL; embeds leave through the public surface. */
73557
+ function canonicalUrl(path$3, navigation$1 = PAGE_NAVIGATION) {
73558
+ if (navigation$1.kind === "page") return path$3;
73559
+ const url = new URL(path$3, navigation$1.canonicalOrigin);
73560
+ url.pathname = url.pathname.replace(/^\/embed(?=\/|$)/, "") || "/";
73561
+ return url.toString();
73562
+ }
73563
+ /** The callback retains each page caller's exact navigation effect. */
73564
+ function leavePage(target, navigation$1 = PAGE_NAVIGATION, navigate = (target$1) => window.location.assign(target$1)) {
73565
+ if (navigation$1.kind === "embed") return {
73566
+ kind: "handOff",
73567
+ url: canonicalUrl(target, navigation$1)
73568
+ };
73569
+ navigate(target);
73570
+ return { kind: "navigated" };
73571
+ }
73572
+ function requestSignIn(returnPath, openModal, navigation$1 = PAGE_NAVIGATION) {
73573
+ if (navigation$1.kind === "embed") return {
73574
+ kind: "handOff",
73575
+ url: canonicalUrl(returnPath, navigation$1)
73576
+ };
73577
+ openModal();
73578
+ return { kind: "navigated" };
73579
+ }
73580
+
73337
73581
  //#endregion
73338
73582
  //#region ../blocks/src/system/blocks/shared/siteTerms.ts
73339
73583
  const versionId = z.string().uuid().transform((value, ctx) => {
@@ -74213,7 +74457,8 @@ const DEFAULT_BOUNDS = {
74213
74457
  maxEndHour: 23,
74214
74458
  defaultStartHour: 6,
74215
74459
  defaultEndHour: 21,
74216
- minHeightPercent: 2.5
74460
+ minHeightPercent: 2.5,
74461
+ marginMinutes: 0
74217
74462
  };
74218
74463
  function buildTimetableModel$1(input) {
74219
74464
  const bounds = resolveBounds(input.bounds);
@@ -74415,11 +74660,8 @@ function buildCell(entry, lane, rangeStartMinutes, rangeMinutes, minHeightPercen
74415
74660
  }
74416
74661
  function resolveBounds(bounds) {
74417
74662
  return {
74418
- minStartHour: bounds?.minStartHour ?? DEFAULT_BOUNDS.minStartHour,
74419
- maxEndHour: bounds?.maxEndHour ?? DEFAULT_BOUNDS.maxEndHour,
74420
- defaultStartHour: bounds?.defaultStartHour ?? DEFAULT_BOUNDS.defaultStartHour,
74421
- defaultEndHour: bounds?.defaultEndHour ?? DEFAULT_BOUNDS.defaultEndHour,
74422
- minHeightPercent: bounds?.minHeightPercent ?? DEFAULT_BOUNDS.minHeightPercent
74663
+ ...DEFAULT_BOUNDS,
74664
+ ...bounds
74423
74665
  };
74424
74666
  }
74425
74667
  function resolveHourRange(segments, bounds) {
@@ -74431,8 +74673,8 @@ function resolveHourRange(segments, bounds) {
74431
74673
  }
74432
74674
  const earliestStart = Math.min(...segments.map((segment) => segment.startsAtMinutes));
74433
74675
  const latestEnd = Math.max(...segments.map((segment) => segment.endsAtMinutes));
74434
- const startHour = Math.max(bounds.minStartHour, Math.floor(earliestStart / 60));
74435
- const endHour = Math.min(bounds.maxEndHour, Math.ceil(latestEnd / 60));
74676
+ const startHour = Math.max(bounds.minStartHour, Math.floor((earliestStart - bounds.marginMinutes) / 60));
74677
+ const endHour = Math.min(bounds.maxEndHour, Math.ceil((latestEnd + bounds.marginMinutes) / 60));
74436
74678
  return {
74437
74679
  startHour,
74438
74680
  endHour: Math.max(startHour + 1, endHour)
@@ -77228,8 +77470,8 @@ const DEFAULT_CURRENCY = "GBP";
77228
77470
  * @param anchorId - Block anchor ID for the return URL hash fragment.
77229
77471
  * @returns Object with success and cancel URLs
77230
77472
  */
77231
- function buildCheckoutReturnUrls(paramName, anchorId, returnParams = {}) {
77232
- const currentUrl = new URL(window.location.href);
77473
+ function buildCheckoutReturnUrls(paramName, anchorId, returnParams = {}, navigation$1) {
77474
+ const currentUrl = new URL(canonicalUrl(window.location.href, navigation$1));
77233
77475
  const hash = `#${anchorId}`;
77234
77476
  const successParams = new URLSearchParams(currentUrl.search);
77235
77477
  successParams.set(paramName, "success");
@@ -77255,9 +77497,11 @@ const BOOK_TARGET_PARAMS = {
77255
77497
  service: "service",
77256
77498
  resource: "resource",
77257
77499
  occurrence: "occurrence",
77258
- event: "event"
77500
+ event: "event",
77501
+ category: "category"
77259
77502
  };
77260
77503
  function resolveDedicatedBookingTarget(pathname) {
77504
+ if (pathname === "/embed" || pathname.startsWith("/embed/")) return { kind: "embed" };
77261
77505
  const internalPublishedMatch = pathname.match(/^\/internal-sites\/([^/]+)\/([^/]+)\/published(?:\/.*)?$/);
77262
77506
  if (internalPublishedMatch) {
77263
77507
  const hostKey = internalPublishedMatch[1];
@@ -77277,7 +77521,7 @@ function resolveDedicatedBookingPath(pathname) {
77277
77521
  if (target.kind === "internal_published_preview") {
77278
77522
  return `/internal-sites/${target.hostKey}/${target.siteIdentifier}/published/book`;
77279
77523
  }
77280
- return "/book";
77524
+ return target.kind === "embed" ? "/embed/book" : "/book";
77281
77525
  }
77282
77526
  function resolveDedicatedBookingHref(pathname, bookingTarget = { kind: "chooser" }) {
77283
77527
  const bookingPath = resolveDedicatedBookingPath(pathname);
@@ -77301,6 +77545,34 @@ function resolveDedicatedBookingHref(pathname, bookingTarget = { kind: "chooser"
77301
77545
  const queryString = params.toString();
77302
77546
  return queryString ? `${bookingPath}?${queryString}` : bookingPath;
77303
77547
  }
77548
+ /** The booking root redirect stays on the current render surface. */
77549
+ function resolveBookingRootPath(pathname) {
77550
+ return resolveDedicatedBookingPath(pathname).replace(/\/book$/, "") || "/";
77551
+ }
77552
+ /** Shared by the dashboard snippet and server consumers; chooser means the whole page. */
77553
+ function resolveBookingEmbedPath(target) {
77554
+ if (target.kind === "chooser") return "/embed";
77555
+ if (target.kind === "event_category") {
77556
+ return `/embed/book?${new URLSearchParams({ [BOOK_TARGET_PARAMS.category]: target.categoryId })}`;
77557
+ }
77558
+ return resolveDedicatedBookingHref("/embed", target);
77559
+ }
77560
+ const EMBED_SEGMENT = "[a-z0-9][a-z0-9-]*";
77561
+ const EMBEDDABLE_DETAIL_PATH = new RegExp(`^/(?:events/${EMBED_SEGMENT}(?:/${EMBED_SEGMENT})?|services/${EMBED_SEGMENT})$`, "i");
77562
+ /**
77563
+ * The one rule for which logical paths the embed surface serves: the booking
77564
+ * root, /book, an event (optionally one occurrence) and a service. The proxy
77565
+ * and the click owner both use it; embed.js mirrors it in its own regex.
77566
+ */
77567
+ function isEmbeddableLogicalPath(logical) {
77568
+ return logical === "/" || logical === "/book" || EMBEDDABLE_DETAIL_PATH.test(logical);
77569
+ }
77570
+ /** The document click owner and booking links share the embed surface prefix. */
77571
+ function resolveEmbedDocumentPath(pathname) {
77572
+ const logical = pathname.replace(/^\/embed(?=\/|$)/, "") || "/";
77573
+ if (!isEmbeddableLogicalPath(logical)) return null;
77574
+ return logical === "/" ? resolveBookingRootPath("/embed") : `${resolveBookingRootPath("/embed")}${logical}`;
77575
+ }
77304
77576
 
77305
77577
  //#endregion
77306
77578
  //#region ../blocks/src/system/runtime/shared/utils/checkoutRoute.ts
@@ -81496,6 +81768,28 @@ function getTicketSelectionRemainingPlaces(input) {
81496
81768
  if (availability && "remainingPlaces" in availability) return availability.remainingPlaces ?? null;
81497
81769
  return input.event ? getEventAvailability(selectEventCapacitySource(input.event, input.attendanceMode)).available : null;
81498
81770
  }
81771
+ /** Keep the card and ticket step on the same fresh capacity as admission. */
81772
+ function withRegistrationAvailability(event, eligibility, attendanceMode) {
81773
+ const availability = eligibility?.availability;
81774
+ if (!event || !availability || !("remainingPlaces" in availability)) return event;
81775
+ const mode = attendanceMode ?? (event.deliveryMode === "hybrid" ? null : event.deliveryMode ?? "in_person");
81776
+ if (!mode) return event;
81777
+ const source = selectEventCapacitySource(event, mode);
81778
+ const remaining = availability.remainingPlaces ?? null;
81779
+ const refreshed = {
81780
+ capacity: remaining === null ? null : source.capacity ?? remaining,
81781
+ availableSpots: remaining,
81782
+ waitlistEnabled: availability.waitlistEnabled
81783
+ };
81784
+ return {
81785
+ ...event,
81786
+ ...event.deliveryMode === "hybrid" ? {} : refreshed,
81787
+ attendanceModes: event.attendanceModes?.map((row$1) => row$1.mode === mode ? {
81788
+ ...row$1,
81789
+ ...refreshed
81790
+ } : row$1)
81791
+ };
81792
+ }
81499
81793
  function resolveHeldTicketPlaces(current, invitation, paymentHold) {
81500
81794
  const held = invitation.kind === "ready" ? {
81501
81795
  selectionId: invitation.restoration.event?.selectionId ?? current.selectionId,
@@ -84567,6 +84861,7 @@ const eventRegistrationCommonSchemaShape = {
84567
84861
  return parsed.ok ? parsed.value : undefined;
84568
84862
  }),
84569
84863
  siteTerms: blockSiteTermsSchema.optional(),
84864
+ pageNavigation: pageNavigationSchema.optional(),
84570
84865
  siteName: z.string().optional()
84571
84866
  };
84572
84867
  const eventRegistrationEventSourceSchema = z.discriminatedUnion("kind", [z.object({
@@ -84762,6 +85057,7 @@ const eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
84762
85057
  siteMemberships: source.siteMemberships ?? null,
84763
85058
  mailingList: source.mailingList,
84764
85059
  siteTerms: source.siteTerms,
85060
+ pageNavigation: source.pageNavigation,
84765
85061
  siteName: source.siteName,
84766
85062
  offeringNoun: resolveOfferingNoun(source, scopedSourceEvents)
84767
85063
  }
@@ -84962,6 +85258,7 @@ const eventRegistrationManifest = createBlockManifest({
84962
85258
  readAuthority: { $bind: { from: "$root.readAuthority" } },
84963
85259
  occurrenceContext: { $bind: { from: "$root.occurrenceContext" } },
84964
85260
  subject: { $bind: { from: "$root.subject" } },
85261
+ pageNavigation: { $bind: { from: "$root.pageNavigation" } },
84965
85262
  portalToken: { $bind: {
84966
85263
  from: "$root.portalToken",
84967
85264
  fallback: null
@@ -94573,6 +94870,10 @@ const storedPassCartItemSchema = z.object({
94573
94870
  kind: z.literal("pass"),
94574
94871
  passId: z.string().min(1),
94575
94872
  title: z.string().min(1),
94873
+ teamMember: z.object({
94874
+ id: z.string().min(1),
94875
+ name: z.string().min(1)
94876
+ }).optional(),
94576
94877
  quantity: z.number().finite().optional(),
94577
94878
  unitPriceCents: z.number().finite(),
94578
94879
  currency: z.string().min(1)
@@ -94583,8 +94884,8 @@ function toPositiveInteger(value) {
94583
94884
  function productItemKey(productId, variantId) {
94584
94885
  return `product:${productId}:${variantId ?? "base"}`;
94585
94886
  }
94586
- function passItemKey(passId) {
94587
- return `pass:${passId}`;
94887
+ function passItemKey(passId, teamMemberId) {
94888
+ return teamMemberId ? `pass:${passId}:${teamMemberId}` : `pass:${passId}`;
94588
94889
  }
94589
94890
  function parseStoredCartItem(value) {
94590
94891
  const productResult = storedProductCartItemSchema.safeParse(value);
@@ -94609,10 +94910,11 @@ function parseStoredCartItem(value) {
94609
94910
  if (passResult.success) {
94610
94911
  const item = passResult.data;
94611
94912
  return {
94612
- key: passItemKey(item.passId),
94913
+ key: passItemKey(item.passId, item.teamMember?.id),
94613
94914
  kind: "pass",
94614
94915
  passId: item.passId,
94615
94916
  title: item.title,
94917
+ ...item.teamMember ? { teamMember: item.teamMember } : {},
94616
94918
  quantity: 1,
94617
94919
  unitPriceCents: Math.max(0, Math.round(item.unitPriceCents)),
94618
94920
  currency: item.currency
@@ -94652,10 +94954,11 @@ function buildProductCartItem(input) {
94652
94954
  }
94653
94955
  function buildPassCartItem(input) {
94654
94956
  return {
94655
- key: passItemKey(input.passId),
94957
+ key: passItemKey(input.passId, input.teamMember?.id),
94656
94958
  kind: "pass",
94657
94959
  passId: input.passId,
94658
94960
  title: input.title,
94961
+ ...input.teamMember ? { teamMember: input.teamMember } : {},
94659
94962
  quantity: 1,
94660
94963
  unitPriceCents: Math.max(0, Math.round(input.unitPriceCents)),
94661
94964
  currency: input.currency
@@ -94876,6 +95179,10 @@ function buildPassesMembershipsDisplay(options) {
94876
95179
  memberships
94877
95180
  };
94878
95181
  }
95182
+ function cartLineTitle(item) {
95183
+ if (item.kind === "product") return item.variantTitle ? `${item.title} – ${item.variantTitle}` : item.title;
95184
+ return item.teamMember ? `${item.title} with ${item.teamMember.name}` : item.title;
95185
+ }
94879
95186
  function buildCartDisplay(items, options) {
94880
95187
  if (items.length === 0) {
94881
95188
  return {
@@ -94893,7 +95200,7 @@ function buildCartDisplay(items, options) {
94893
95200
  }
94894
95201
  const itemsDisplay = items.map((item) => ({
94895
95202
  key: item.key,
94896
- title: item.kind === "product" && item.variantTitle ? `${item.title} – ${item.variantTitle}` : item.title,
95203
+ title: cartLineTitle(item),
94897
95204
  priceLabel: `${formatCommercePrice(item.unitPriceCents, item.currency)} each`,
94898
95205
  quantity: item.quantity,
94899
95206
  quantityEditable: item.kind === "product"
@@ -103347,6 +103654,7 @@ const publicAppointmentServiceSchema = z.object({
103347
103654
  pricing: publicPricingSchema.optional(),
103348
103655
  priceAmount: z.number().nullable(),
103349
103656
  priceCurrency: z.string().nullable(),
103657
+ onlinePaymentMode: z.enum(["session_or_package", "package_only"]).optional(),
103350
103658
  location: publicLocationSchema,
103351
103659
  categoryId: z.string().nullable().optional().transform((value) => value ?? null)
103352
103660
  });
@@ -103412,6 +103720,7 @@ function formatVenue(venue) {
103412
103720
  return venue.area ? `${venue.name}, ${venue.area}` : venue.name;
103413
103721
  }
103414
103722
  function formatAppointmentPrice(service) {
103723
+ if (service.onlinePaymentMode === "package_only") return "Book with a package";
103415
103724
  const pricing = service.pricing;
103416
103725
  if (pricing) {
103417
103726
  const display = (() => {
@@ -103852,6 +104161,145 @@ function TeamMembersNode(props$1) {
103852
104161
  });
103853
104162
  }
103854
104163
 
104164
+ //#endregion
104165
+ //#region ../blocks/src/system/runtime/nodes/booking-form.service-pricing.ts
104166
+ function getBookingServiceSlidingScale(service) {
104167
+ const pricing = service?.pricing;
104168
+ if (!pricing || pricing.pricingStrategy !== "sliding_scale" || pricing.slidingMinAmount === null || pricing.slidingMinAmount === undefined || pricing.slidingMaxAmount === null || pricing.slidingMaxAmount === undefined) {
104169
+ return null;
104170
+ }
104171
+ return {
104172
+ minAmount: pricing.slidingMinAmount,
104173
+ maxAmount: pricing.slidingMaxAmount,
104174
+ suggestedAmount: pricing.slidingSuggestedAmount ?? null,
104175
+ currency: pricing.currency
104176
+ };
104177
+ }
104178
+
104179
+ //#endregion
104180
+ //#region ../blocks/src/system/runtime/nodes/booking-form.package-purchase.ts
104181
+ function bookingRequiresResourceSelection(service, configured = false) {
104182
+ return configured || service?.onlinePaymentChoices?.anyAvailable === false;
104183
+ }
104184
+ function toBookingPurchasablePackages(products) {
104185
+ return products.filter((product) => product.productUseCase === "appointment_package" && product.purchaseAvailability === "purchasable").map(({ id: id$2, name, price: price$1, currency, creditsTotal, validDays, heldWithTeamMember }) => ({
104186
+ id: id$2,
104187
+ name,
104188
+ price: price$1,
104189
+ currency,
104190
+ creditsTotal,
104191
+ validDays,
104192
+ heldWithTeamMember: heldWithTeamMember ?? null
104193
+ }));
104194
+ }
104195
+ function resolveBookingPurchasablePackages(enabled, state) {
104196
+ if (!enabled) return { kind: "disabled" };
104197
+ switch (state.tag) {
104198
+ case "idle":
104199
+ case "loading": return { kind: "loading" };
104200
+ case "error": return {
104201
+ kind: "error",
104202
+ message: state.message
104203
+ };
104204
+ case "loaded": return {
104205
+ kind: "ready",
104206
+ items: state.value
104207
+ };
104208
+ }
104209
+ }
104210
+ function resolveBookingPaymentAvailability(perSession, held, purchase) {
104211
+ if (perSession || held.items.length > 0 || purchase.kind === "ready" && purchase.items.length > 0) return { kind: "available" };
104212
+ if (held.kind === "loading" || held.kind === "idle" || purchase.kind === "loading") return { kind: "loading" };
104213
+ if (held.kind === "error" || purchase.kind === "error") return { kind: "load_error" };
104214
+ return { kind: "no_choices" };
104215
+ }
104216
+ /** Disclose the package's purchase price; server settlement may require a review for discounts or credit. */
104217
+ function bookingPackagePurchaseTerms(product, promisedDiscountId) {
104218
+ return {
104219
+ currency: product.currency,
104220
+ totalCents: product.price,
104221
+ dueNowCents: product.price,
104222
+ laterPaymentAmountsCents: [],
104223
+ paymentOption: { kind: product.price > 0 ? "upfront" : "not_required" },
104224
+ promisedDiscountId
104225
+ };
104226
+ }
104227
+ function reconcileBookingPackagePurchase(selection, packages) {
104228
+ if (selection.kind === "none") return selection;
104229
+ const product = packages.find((product$1) => product$1.id === selection.package.id);
104230
+ if (!product) return { kind: "none" };
104231
+ return JSON.stringify(product) === JSON.stringify(selection.package) ? selection : {
104232
+ kind: "selected",
104233
+ package: product
104234
+ };
104235
+ }
104236
+ function resolveBookingPaymentChoice(purchase, heldId, option) {
104237
+ if (purchase.kind === "selected") return {
104238
+ kind: "buy_package",
104239
+ package: purchase.package
104240
+ };
104241
+ if (heldId) return {
104242
+ kind: "held_package",
104243
+ customerPassId: heldId
104244
+ };
104245
+ return option ? {
104246
+ kind: "per_session",
104247
+ option
104248
+ } : { kind: "unselected" };
104249
+ }
104250
+ function bookingHasPackagePaymentChoices(service) {
104251
+ return service?.onlinePaymentChoices?.buyPackage === true || service?.onlinePaymentChoices?.heldPackage !== false && service?.onlinePaymentChoices?.perSession === false;
104252
+ }
104253
+ function resolveBookingPackageSources(service, enabled, bearerAuth) {
104254
+ const packageOnly = service?.onlinePaymentChoices?.perSession === false;
104255
+ return {
104256
+ packageOnly,
104257
+ held: resolveHeldPackageSource(service, service?.onlinePaymentChoices?.heldPackage !== false && (enabled || packageOnly), bearerAuth),
104258
+ canBuy: service?.onlinePaymentChoices?.buyPackage === true
104259
+ };
104260
+ }
104261
+ function resolveHeldPackageSource(service, enabled, bearerAuth) {
104262
+ if (!enabled) return "disabled";
104263
+ if (!heldPackageServiceEligible(service)) return "missing-priced-service";
104264
+ return bearerAuth ? "enabled" : "missing-portal-auth";
104265
+ }
104266
+ function heldPackageServiceEligible(service) {
104267
+ if (!service) return false;
104268
+ return service.onlinePaymentChoices?.perSession === false || !getBookingServiceSlidingScale(service) && (service.priceAmount ?? 0) > 0;
104269
+ }
104270
+ function resolveBookingPackagePaymentSelection(data, service) {
104271
+ if (data.selectedAppointmentPackageId || data.packagePurchase?.kind === "selected") return "selected";
104272
+ return service?.onlinePaymentChoices?.perSession === false ? "required" : "per_session";
104273
+ }
104274
+ function bookingPackageRequestKey(enabled, serviceId, resourceId) {
104275
+ return enabled && serviceId ? `${serviceId}:${resourceId ?? "any"}` : null;
104276
+ }
104277
+ /** Resolve form admission and existing holdings before any payment/resource consumer sees service offers. */
104278
+ function applyBookingPaymentAdmission(services, requiresApproval, unrestrictedHeldServiceId) {
104279
+ return services.map((service) => {
104280
+ const choices = service.onlinePaymentChoices;
104281
+ if (requiresApproval) return {
104282
+ ...service,
104283
+ onlinePaymentChoices: {
104284
+ perSession: choices?.perSession ?? true,
104285
+ heldPackage: false,
104286
+ buyPackage: false,
104287
+ anyAvailable: true
104288
+ }
104289
+ };
104290
+ return choices && service.id === unrestrictedHeldServiceId ? {
104291
+ ...service,
104292
+ onlinePaymentChoices: {
104293
+ ...choices,
104294
+ anyAvailable: true
104295
+ }
104296
+ } : service;
104297
+ });
104298
+ }
104299
+ function resolveBookingPaymentMode(service, payment) {
104300
+ return bookingHasPackagePaymentChoices(service) || payment.kind === "unavailable" ? "choice_required" : payment.mode;
104301
+ }
104302
+
103855
104303
  //#endregion
103856
104304
  //#region ../blocks/src/system/runtime/nodes/booking-form.reserved-fields.ts
103857
104305
  const APPOINTMENT_BOOKING_BLOCK_ID = "block.appointment-booking";
@@ -103864,6 +104312,7 @@ const BOOKING_FORM_DATA_RESERVED_KEY_VALUES = [
103864
104312
  "selectedSlidingAmountInput",
103865
104313
  "selectedCollectionOptionKind",
103866
104314
  "selectedAppointmentPackageId",
104315
+ "packagePurchase",
103867
104316
  "mailingListOptIn"
103868
104317
  ];
103869
104318
  const BOOKING_FORM_DATA_RESERVED_KEYS = new Set(BOOKING_FORM_DATA_RESERVED_KEY_VALUES);
@@ -104222,18 +104671,6 @@ function readOptionalString(value) {
104222
104671
  function readOptionalNumber(value) {
104223
104672
  return typeof value === "number" && Number.isFinite(value) ? value : undefined;
104224
104673
  }
104225
- function getBookingServiceSlidingScale(service) {
104226
- const pricing = service?.pricing;
104227
- if (!pricing || pricing.pricingStrategy !== "sliding_scale" || pricing.slidingMinAmount === null || pricing.slidingMinAmount === undefined || pricing.slidingMaxAmount === null || pricing.slidingMaxAmount === undefined) {
104228
- return null;
104229
- }
104230
- return {
104231
- minAmount: pricing.slidingMinAmount,
104232
- maxAmount: pricing.slidingMaxAmount,
104233
- suggestedAmount: pricing.slidingSuggestedAmount ?? null,
104234
- currency: pricing.currency
104235
- };
104236
- }
104237
104674
  function parseBookingCurrencyInputToCents(value) {
104238
104675
  const trimmed = value?.trim() ?? "";
104239
104676
  if (!trimmed) return null;
@@ -104276,15 +104713,11 @@ function resolveBookingSelectedService(input) {
104276
104713
  /** One resolved choice set drives step visibility, selection and submission. */
104277
104714
  function resolveBookingPaymentStep(input) {
104278
104715
  const service = resolveBookingSelectedService(input);
104279
- if (!service) return input.services.length === 0 || resolveRequestedBookingServiceId(input) ? {
104280
- kind: "unavailable",
104281
- mode: "unsupported",
104282
- service: null,
104283
- errorMessage: "Payment options are unavailable for the selected service right now."
104284
- } : {
104285
- kind: "unselected",
104716
+ if (!service) return resolveMissingBookingPaymentStep(input);
104717
+ if (service.onlinePaymentChoices?.perSession === false) return {
104718
+ kind: "not_required",
104286
104719
  mode: "hidden",
104287
- service: null
104720
+ service
104288
104721
  };
104289
104722
  const totalCents = resolveBookingServiceTotalCents(service, input.data);
104290
104723
  if (totalCents <= 0) return {
@@ -104348,6 +104781,16 @@ function prepareBookingSubmission(input) {
104348
104781
  customerPassId
104349
104782
  }
104350
104783
  };
104784
+ if (input.data.packagePurchase?.kind === "selected") return {
104785
+ ok: true,
104786
+ value: {
104787
+ ...common,
104788
+ kind: "package_purchase",
104789
+ purchasePassId: input.data.packagePurchase.package.id,
104790
+ discountCode: toTrimmedString(input.data.discountCode),
104791
+ shownTerms: input.shownTerms ?? bookingPackagePurchaseTerms(input.data.packagePurchase.package, input.promisedDiscountId)
104792
+ }
104793
+ };
104351
104794
  const payment = prepareStandardBookingPayment(input, service);
104352
104795
  return payment.ok ? {
104353
104796
  ok: true,
@@ -104403,6 +104846,14 @@ function buildBookingSubmissionCommon(input, service, startAt) {
104403
104846
  };
104404
104847
  }
104405
104848
  function prepareStandardBookingPayment(input, service) {
104849
+ if (service.onlinePaymentChoices?.perSession === false) return {
104850
+ ok: false,
104851
+ error: {
104852
+ tag: "payment-option-required",
104853
+ serviceId: service.id,
104854
+ serviceTitle: service.title
104855
+ }
104856
+ };
104406
104857
  const amount = validateBookingSlidingSelection(service, input.data);
104407
104858
  if (!amount.ok) return amount;
104408
104859
  const payment = resolveBookingPaymentStep(input);
@@ -104558,6 +105009,18 @@ function snapshotBookingShownTerms(payment, promisedDiscountId) {
104558
105009
  promisedDiscountId
104559
105010
  };
104560
105011
  }
105012
+ function resolveMissingBookingPaymentStep(input) {
105013
+ return input.services.length === 0 || resolveRequestedBookingServiceId(input) ? {
105014
+ kind: "unavailable",
105015
+ mode: "unsupported",
105016
+ service: null,
105017
+ errorMessage: "Payment options are unavailable for the selected service right now."
105018
+ } : {
105019
+ kind: "unselected",
105020
+ mode: "hidden",
105021
+ service: null
105022
+ };
105023
+ }
104561
105024
 
104562
105025
  //#endregion
104563
105026
  //#region ../blocks/src/system/runtime/nodes/booking-form.service-categories.ts
@@ -104864,6 +105327,7 @@ const bookingSourceSchema = z.object({
104864
105327
  demoEmailSuppressed: z.boolean().optional(),
104865
105328
  mailingList: bookingMailingListContextSchema.optional(),
104866
105329
  siteTerms: blockSiteTermsSchema.optional(),
105330
+ pageNavigation: pageNavigationSchema.optional(),
104867
105331
  siteName: z.string().optional(),
104868
105332
  siteId: z.string().optional(),
104869
105333
  apiBaseUrl: z.string().optional(),
@@ -104898,6 +105362,7 @@ const bookingHydrationSchema = z.object({
104898
105362
  demoEmailSuppressed: z.boolean().optional(),
104899
105363
  mailingList: bookingMailingListContextSchema.optional(),
104900
105364
  siteTerms: blockSiteTermsSchema.optional(),
105365
+ pageNavigation: pageNavigationSchema.optional(),
104901
105366
  siteName: z.string().optional(),
104902
105367
  formId: z.string().nullable(),
104903
105368
  serviceId: z.string().nullable(),
@@ -104950,6 +105415,7 @@ const bookingFormBlockRuntime = defineClientOwnedBlockRuntime({
104950
105415
  demoEmailSuppressed: source.demoEmailSuppressed,
104951
105416
  mailingList: source.mailingList,
104952
105417
  siteTerms: source.siteTerms,
105418
+ pageNavigation: source.pageNavigation,
104953
105419
  siteName: source.siteName,
104954
105420
  formId: form$1?.id ?? source.formId ?? null,
104955
105421
  serviceId: source.serviceId ?? form$1?.settings?.serviceId ?? null,
@@ -123339,7 +123805,7 @@ async function loadConfig(configPath, output) {
123339
123805
  return { errorMessage: "No config path provided." };
123340
123806
  }
123341
123807
  try {
123342
- const { loadConfigFile: loadConfigFile$1 } = await import("../load-config-3e2Npz2O.mjs");
123808
+ const { loadConfigFile: loadConfigFile$1 } = await import("../load-config-BqyywgbJ.mjs");
123343
123809
  const rawConfig = await loadConfigFile$1(configPath);
123344
123810
  const parsed = riverbankSiteConfigSchema.safeParse(rawConfig);
123345
123811
  if (!parsed.success) {