riverbankcms 0.32.0 → 0.32.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.
- package/dist/acceptance/matrix.mjs +3 -3
- package/dist/cli/index.mjs +824 -570
- package/dist/{entryCommands-BJFkJn_e.mjs → entryCommands-KmqgJ44o.mjs} +24 -3
- package/dist/{eventUpsertInputSchema-BD_RuhcK.mjs → eventUpsertInputSchema-DQd8P8BZ.mjs} +2 -2
- package/dist/load-config-CTqBfOO9.mjs +4 -0
- package/dist/{load-config-CfL4ZWC8.mjs → load-config-C_QmGbxS.mjs} +2 -2
- package/dist/{plan-CbzdsZp3.mjs → plan-BKUvYkD2.mjs} +1 -1
- package/dist/scaffold/index.mjs +2 -2
- package/dist/{sdk-event-upsert-SodZay6g.mjs → sdk-event-upsert-D6oZBDR5.mjs} +7 -1
- package/dist/{src-CVyy-M-N.mjs → src-gbODrFjm.mjs} +12 -1
- package/dist/testing.mjs +4 -4
- package/package.json +1 -1
- package/dist/load-config-CODn5_ki.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 createEventCategoryRef, At as getMimeType, B as sectionStylesOverrideSchema, Bn as isResolvedInternalLinkEntityType, Br as __commonJSMin, Bt as footerPreferencesSchema, C as blockOrderIdentifiersForCommand, Cn as bookingPaymentCollectionOptionSchema, Cr as makeBoundaryId, Ct as parseCanonicalMediaIdentifier, D as pagePathForCommand, Dn as RichTextDocSchema, Dr as createBlocksRef, Dt as deriveVideoSlotPolicy, E as pageIdentifierForCommand, Er as createBlockRef, F as defaultHeaderBrandPreferences, Fn as entryLinkSchema$1, Fr as createPageRef, G as headerInteractionQuietPalette, Gn as parseGradientPresetId, Gt as cardVariantRoleValues, H as skinBookingBarSchema, Hn as pageLinkSchema$1, Ht as boxlessCardVariantValue, In as externalLinkSchema$1, It as classifyKnownMimeType, J as boxBackgroundOverlaySchema, Jn as asHeaderLayoutId, Jt as surfaceCardRoleValues, K as blockCustomCssRuleSchema, Kt as itemRoleValues, L as cardStylesOverrideSchema, Ln as internalLinkSchema, Lr as createVenueRef, Lt as managementMediaLibraryUploadLimitForMimeType, M as defaultHeaderPreferences, Mn as findUnfilledSentinels, Mr as createFooterRef, N as defaultHeaderNavPreferences, Nn as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Nr as createFormRef, Nt as parseRelativeStoragePath, O as hasConfiguredBookingVertical, On as isRichTextDoc, Or as createCommandRef, Ot as resolveVideoSelectionIntentForMediaField, P as defaultHeaderBrandPresentation, Pn as customLinkSchema$1, Pr as createNavigationRef, Pt as FILE_SIZE_LIMITS, Q as summarizePortableMediaReferences, Qt as flatInkHoverTreatmentSchema, R as containerStylesOverrideSchema, Rn as internalResolvedLinkSchema, Rr as refSlug, Rt as parseSafeDownloadFilename, S as blockIdentifierForCommand, Sr as asSiteStyleId, St as buildMediaIdentifierFromFilename, T as pageIdentifierForBlockCommand, Tn as eventCommandScheduleSchema, Tr as ianaTimezoneSchema, U as headerVariantValues, Un as ICON_PICKER_PRESETS, Ut as cardRoleSchema, V as themeSchema, Vn as linkSchema, Vr as __toESM, 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 createEventSeriesRef, jt as asRecord, k as headerPreferencesSchema, kn as sanitizeHref, kr as createContentEntryRef, 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, zt as defaultFooterPreferences } from "../sdk-event-upsert-
|
|
3
|
-
import { $ as formatOpeningHoursRows, A as resolveWholeSeriesBookingPhase, At as formatLocalScheduleDate, B as assessMailingListTargeting, Bt as toBookingTimeZone, Cn as toNonNegativeCents, Cr as blockInteractionContextSchema, Ct as formatTimeRange, D as firstLiveRunSessionStartMs, Dt as buildBookingUtcDateWindow, E as CANCELLED_SESSION_STATUS, En as formatCurrencyAmount, Et as toScheduledBookingDateTime, F as slugify, Fn as parseSiteTermsVersionId, Ht as parseUtcIsoDateTimeString, I as parseMailingListBlockId, It as parseBookingLocalDate, J as parseMailingListPlacementTargeting, Jn as unsafeAsPositiveByteCount, K as parseFooterCompositionV1, Kn as unsafeAsMediaAssetId, L as parseMailingListContentVersionId, Lt as parseLocalScheduleTime, M as createSecret, Mt as getBookingLocalDateKey, N as exposeSecret, Nt as getLocalScheduleDate, O as nextLiveRunSessionStartMs, On as assertNever, P as parseManagementKey, Pt as getLocalScheduleTime, Q as richTextHasText, R as parseMailingListSignedSourceToken, Rt as resolveBookingBusinessTimeZone, Sr as ok, St as formatTime$1, Tt as resolveBookingDisplayContext, U as DEFAULT_MAILING_LIST_PRIVACY_NOTE, Ut as toUtcIsoDateTimeString, W as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, X as planMailingListChoicePresentation, Xt as getBookingInstalmentPlanIntervalCount, Y as DEFAULT_MAILING_LIST_TARGETING, Z as isCanonicalRichTextDoc, _ as EVENT_PRESET_VALUES, _t as selectCategoryView, a as authoredValuesEqual, an as EVENT_PRESET_VOCABULARY, at as decideLocationSave, b as WHOLE_SERIES_EVENT_PRESET_VALUES, bt as formatDateTime, cn as isPublicEventPricingOptionDisplayable, cr as parseApiKeyId, ct as locationValueSchema, dn as publicEventPricingOptions, dt as projectPublicLocation, fn as publicEventPricingStrategy, ft as publicLocationSchema, gt as mapDrawingSchema, h as resolveSiteVerticalBookingConfig, hn as resolvePricingOptionsPriceDisplay, ht as trimmedStringOrNull, i as isRecord$27, in as parsePageSurfaceSubject, j as resolveWholeSeriesRunLifecycle, jn as unsafeAsDemoCapability, jt as formatLocalScheduleTime, k as orderedLiveRunSessions, kn as formatDurationUnitLabel, kt as compareLocalScheduleDates, ln as publicEventPricingCurrency, lr as parseSiteId, lt as normalizeLocationAddressText, mn as resolveExactOrFreePriceDisplay, o as creditProductUnitNoun, on as formatBookingPriceDisplay, ot as stableJsonStringify, pn as publicEventPricingType, pr as parseEventSeriesId, pt as toLocationCoordinates, q as footerLayoutForLookId, rn as deriveTotalTicketQuantity, s as formatCreditProductUnits, sn as formatEventPricing, st as locationMapLinks, tt as parseWeeklyOpeningHours, u as NAVIGATION_LOCATIONS, un as publicEventPricingDisplay, ur as parseUserId, ut as parseLocationValue, vn as mapReadonlyNonEmptyArray, vt as formatDate, wt as inferSiteDateLocale, xr as err, xt as formatDateTimeRange, yt as formatDateRange, z as parseMailingListRuntimeContext, zt as resolveBookingTimeZoneId } from "../src-
|
|
4
|
-
import { $ as normalizeMediaValueToIdentifierOnly, $n as resolveRepeaterGridSpanFieldId, $r as ApiEnvelopeError, $t as bindRequestTimeout, A as formatDiffDetail, An as getEnvPrefix, Ar as getStripeMinimumChargeRequirement, At as navigationIdentity, B as buildFieldChanges, Bn as NodeSchema, Br as publicProductSchema, Bt as ACCOUNT_SITE_LIST_LIMIT_MIN, C as reportFromOutcomes, Cn as requireEnvironmentWriteAuthorization, Cr as unsafeAsPositiveCheckoutQuantity, Ct as fileExists, D as normalizeRemoteHomepageReference, Dn as transportSuggestion, Dr as repriceBookingCollectionOptions, Dt as writeJsonFileAtomic, E as createEmptySyncResult, En as formatError, Er as isBookingCollectionEquivalentToUpfront, Et as writeJsonFile, F as calculatePullDiff, Fn as createManagementClient, Fr as eventCalendarListLayoutCompatibleDisplayModeValues, Ft as AccountApiMalformedResponseError, G as syncLocalMediaForPull, Gn as blockContentSourceSchema, Gr as calendarMonthWindowSchema, Gt as applyPushConfigPlan, H as formatFieldPath, Hn as bindingSchema, Hr as purchasablePublicPassProductSchema, Ht as ACCOUNT_SITE_TITLE_MAX_LENGTH, I as buildJsonDiff, In as cardListBlockParts, Ir as eventCalendarListLayoutValues, It as createBearerAccountApi, J as admitBinaryWriteDestination, Jn as MAX_REPEATER_GRID_COLUMNS, Jr as eventSurfacePresetValues, Jt as preparePushConfigTarget, K as applyLocalMediaPush, Kn as blockRequiredFeatureSchema, Kr as calendarSourceCursorSchema, Kt as createPushConfigCommand, L as hasPageOperations, Ln as cardListFamilyBlocks, Lr as publicVenueMapLocationSchema, Lt as ACCOUNT_SITE_CURSOR_MAX_LENGTH, M as hasPendingChanges, Mn as isLocalConfigured, Mr as MAX_EVENT_BOOKING_SELECTION_ITEMS, Mt as convertPulledFooterToLocal, N as findChangedFieldsWithValues, Nn as isRemoteConfigured, Nr as eventCalendarDefaultViewValues, Nt as convertPulledNavigationToLocal, O as calculateDiff, On as CliExit, Or as resolveAvailableBookingCollectionOptions, Ot as isMediaValue, P as formatHumanDiff, Pn as loadSdkEnvironment, Pr as eventCalendarDisplayModeValues, Pt as convertPulledPagesToLocal, Q as normalizeMediaIdentifierInput, Qn as resolveRepeaterGridRowFieldId, Qr as publicEventLoaderQuerySchemaShape, Qt as mapEnvironmentExecutionOutcomesJson, R as pageMetadataForUpsert, Rn as cardListKnobBlocks, Rr as publicMembershipProductSchema, Rt as ACCOUNT_SITE_LIST_LIMIT_DEFAULT, S as planCliCommandBatchForBindings, Sn as planEnvironmentWriteAuthorization, Sr as checkoutCopy, St as ensureDir, T as executeResidualSettingsSyncPlan, Tn as ErrorCodes, Tr as planFlexibleBalanceCreditFirst, Tt as readJsonFile, U as revalidateLocalMediaPushPlan, Un as DEFAULT_MEDIA_FIELD_KINDS, Ur as CALENDAR_SSR_PAGE_SIZE, Ut as navigationCommandItemToManagementInput, V as formatFieldChange, Vn as NodeTreeSchema, Vr as purchasablePublicMembershipProductSchema, Vt as ACCOUNT_SITE_SEARCH_MAX_LENGTH, Wn as blockCategoryEnum, Wr as calendarMonthDate, Wt as normalizeNavigationConfigItemForCommand, X as writeBinaryFileAtomic, Xn as parseRepeaterGridInteger, Xr as monthNumber, Xt as createBearerAPIClient, Y as readStableBinaryFile, Yn as isAcceptedRepeaterGridSpan, Yr as eventSurfaceScopeValues, Yt as revalidatePushConfigPlan, Z as sha256, Zn as resolveRepeaterGridColumnFieldId, Zr as normalizeCalendarFilterId, Zt as deriveCmsApiUrlFromDashboardUrl, _ as commandExecutionToReport, _n as withErrorHandling, _r as decideSelectionAttendance, _t as metadataFilePath, a as executeEntryCommandPlanAsReport, an as getOutputContext, ar as ApiRequestError, at as readEntries, b as executeCompiledCliCommandPlanAsReport, bn as parseEnvironmentSelection, br as nextCombinationHint, bt as writeMetadataFile, c as titleFromEntryData, cn as managementClientConfigFor, cr as linkPayloadSchema, ct as readEventsMeta, d as unsafeAsCliEntryIdentifier, dn as parseJsonData, dr as pageDesignIntentSchemaVersion, dt as readNavigationMeta, ei as unwrapResponse, en as confirmAction, er as visibilityLevels, et as walkLocalContentMedia, f as unsafeAsCliFormSlug, fn as parsePaginationOptions, fr as sdkConfiguredBookingVerticalConfigSchema, ft as readPagesMeta, g as commandCompileFailureToReport, gn as withConfirmation, gr as INCOMPATIBLE_ATTENDANCE_MESSAGE, gt as ensureMetadataDir, h as mutationCounterForEffect, hn as withCommandContext, hr as eventBookingConsentContentKey, ht as writeMediaManifest, i as entrySiteCommandTypes, in as formatDateShort, ir as isRecord$2, it as findLegacyEntryFiles, j as formatDiffSummary, jn as getEnvironmentDebugInfo, jr as getBookingLaterInstalments, jt as navigationIdentityMap, k as calculateFooterDiff, kr as resolveBookingCollectionOptionFacts, kt as duplicateNavigationIdentityMessage, l as unsafeAsCliBlockIdentifier, ln as mapEntryForOutput, lr as portablePageDesignSchema, lt as readFooterMeta, m as commandReportToSyncResult, mn as runWithInvocation, mr as areEventBookingRequirementsIdentical, mt as readVenuesMeta, n as entryCommandCompileErrorToReport, nn as createOutputForCommand, nr as extractApiErrorMessage, nt as downloadMedia, o as executeEntryCommandPlanAsSyncResult, on as getOutputOnlyContext, or as sdkEventScheduleSchema, ot as readAllMeta, p as unsafeAsCliPageIdentifier, pn as resolveCommandPath, pr as API_ENDPOINTS, pt as readSettingsMeta, q as prepareLocalMediaForPush, qn as fieldSchema$1, qr as eventScheduleScopeValues, qt as loadPushConfigTarget, r as entryCommandReportToSyncResult, rn as currentInvocationEnvelope, rr as normalizeApiError, rt as extractMediaIdentifiers, s as syncResultForEntryCommandCompileError, sn as handleCommandError, sr as sdkSettingsUpdateSchema, st as readEventCategoriesMeta, t as compileEntryPushCommands, tn as createCommandContext, tr as ManagementApiError, tt as buildStorageUrl, u as unsafeAsCliContentTypeKey, un as parseJsonArray, ur as pageDesignDecisionsV2Schema, ut as readFormsMeta, v as commandReportHasFailures, vn as withOutputOnlyErrorHandling, vr as resolveSelectionAttendanceMode, vt as metadataTargetFromEnvironment, w as mergeManySyncResults, wn as withRiverbankEnv, wr as planCheckoutPaymentFlow, wt as listFiles, x as formatManagementError, xn as planEnvironmentExecution, xr as planSelectionCombinationPrices, xt as writeMetadataRecordMap, y as executeCliCommandPlan, yn as executeEnvironmentPlan, yr as checkoutStatusArms, yt as readMetadataFile, zn as lookKnobBlocks, zr as publicPassProductSchema, zt as ACCOUNT_SITE_LIST_LIMIT_MAX } 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 createEventCategoryRef, At as getMimeType, B as sectionStylesOverrideSchema, Bn as isResolvedInternalLinkEntityType, Br as __commonJSMin, Bt as footerPreferencesSchema, C as blockOrderIdentifiersForCommand, Cn as bookingPaymentCollectionOptionSchema, Cr as makeBoundaryId, Ct as parseCanonicalMediaIdentifier, D as pagePathForCommand, Dn as RichTextDocSchema, Dr as createBlocksRef, Dt as deriveVideoSlotPolicy, E as pageIdentifierForCommand, Er as createBlockRef, F as defaultHeaderBrandPreferences, Fn as entryLinkSchema$1, Fr as createPageRef, G as headerInteractionQuietPalette, Gn as parseGradientPresetId, Gt as cardVariantRoleValues, H as skinBookingBarSchema, Hn as pageLinkSchema$1, Ht as boxlessCardVariantValue, In as externalLinkSchema$1, It as classifyKnownMimeType, J as boxBackgroundOverlaySchema, Jn as asHeaderLayoutId, Jt as surfaceCardRoleValues, K as blockCustomCssRuleSchema, Kt as itemRoleValues, L as cardStylesOverrideSchema, Ln as internalLinkSchema, Lr as createVenueRef, Lt as managementMediaLibraryUploadLimitForMimeType, M as defaultHeaderPreferences, Mn as findUnfilledSentinels, Mr as createFooterRef, N as defaultHeaderNavPreferences, Nn as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Nr as createFormRef, Nt as parseRelativeStoragePath, O as hasConfiguredBookingVertical, On as isRichTextDoc, Or as createCommandRef, Ot as resolveVideoSelectionIntentForMediaField, P as defaultHeaderBrandPresentation, Pn as customLinkSchema$1, Pr as createNavigationRef, Pt as FILE_SIZE_LIMITS, Q as summarizePortableMediaReferences, Qt as flatInkHoverTreatmentSchema, R as containerStylesOverrideSchema, Rn as internalResolvedLinkSchema, Rr as refSlug, Rt as parseSafeDownloadFilename, S as blockIdentifierForCommand, Sr as asSiteStyleId, St as buildMediaIdentifierFromFilename, T as pageIdentifierForBlockCommand, Tn as eventCommandScheduleSchema, Tr as ianaTimezoneSchema, U as headerVariantValues, Un as ICON_PICKER_PRESETS, Ut as cardRoleSchema, V as themeSchema, Vn as linkSchema, Vr as __toESM, 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 createEventSeriesRef, jt as asRecord, k as headerPreferencesSchema, kn as sanitizeHref, kr as createContentEntryRef, 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, zt as defaultFooterPreferences } from "../sdk-event-upsert-D6oZBDR5.mjs";
|
|
3
|
+
import { $ as formatOpeningHoursRows, A as resolveWholeSeriesBookingPhase, At as formatLocalScheduleDate, B as assessMailingListTargeting, Bt as toBookingTimeZone, Cn as toNonNegativeCents, Cr as blockInteractionContextSchema, Ct as formatTimeRange, D as firstLiveRunSessionStartMs, Dt as buildBookingUtcDateWindow, E as CANCELLED_SESSION_STATUS, En as formatCurrencyAmount, Et as toScheduledBookingDateTime, F as slugify, Fn as parseSiteTermsVersionId, Ht as parseUtcIsoDateTimeString, I as parseMailingListBlockId, It as parseBookingLocalDate, J as parseMailingListPlacementTargeting, Jn as unsafeAsPositiveByteCount, K as parseFooterCompositionV1, Kn as unsafeAsMediaAssetId, L as parseMailingListContentVersionId, Lt as parseLocalScheduleTime, M as createSecret, Mt as getBookingLocalDateKey, N as exposeSecret, Nt as getLocalScheduleDate, O as nextLiveRunSessionStartMs, On as assertNever, P as parseManagementKey, Pt as getLocalScheduleTime, Q as richTextHasText, R as parseMailingListSignedSourceToken, Rt as resolveBookingBusinessTimeZone, Sr as ok, St as formatTime$1, Tt as resolveBookingDisplayContext, U as DEFAULT_MAILING_LIST_PRIVACY_NOTE, Ut as toUtcIsoDateTimeString, W as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, X as planMailingListChoicePresentation, Xt as getBookingInstalmentPlanIntervalCount, Y as DEFAULT_MAILING_LIST_TARGETING, Z as isCanonicalRichTextDoc, _ as EVENT_PRESET_VALUES, _t as selectCategoryView, a as authoredValuesEqual, an as EVENT_PRESET_VOCABULARY, at as decideLocationSave, b as WHOLE_SERIES_EVENT_PRESET_VALUES, bt as formatDateTime, cn as isPublicEventPricingOptionDisplayable, cr as parseApiKeyId, ct as locationValueSchema, dn as publicEventPricingOptions, dt as projectPublicLocation, fn as publicEventPricingStrategy, ft as publicLocationSchema, gt as mapDrawingSchema, h as resolveSiteVerticalBookingConfig, hn as resolvePricingOptionsPriceDisplay, ht as trimmedStringOrNull, i as isRecord$27, in as parsePageSurfaceSubject, j as resolveWholeSeriesRunLifecycle, jn as unsafeAsDemoCapability, jt as formatLocalScheduleTime, k as orderedLiveRunSessions, kn as formatDurationUnitLabel, kt as compareLocalScheduleDates, ln as publicEventPricingCurrency, lr as parseSiteId, lt as normalizeLocationAddressText, mn as resolveExactOrFreePriceDisplay, o as creditProductUnitNoun, on as formatBookingPriceDisplay, ot as stableJsonStringify, pn as publicEventPricingType, pr as parseEventSeriesId, pt as toLocationCoordinates, q as footerLayoutForLookId, rn as deriveTotalTicketQuantity, s as formatCreditProductUnits, sn as formatEventPricing, st as locationMapLinks, tt as parseWeeklyOpeningHours, u as NAVIGATION_LOCATIONS, un as publicEventPricingDisplay, ur as parseUserId, ut as parseLocationValue, vn as mapReadonlyNonEmptyArray, vt as formatDate, wt as inferSiteDateLocale, xr as err, xt as formatDateTimeRange, yt as formatDateRange, z as parseMailingListRuntimeContext, zt as resolveBookingTimeZoneId } from "../src-gbODrFjm.mjs";
|
|
4
|
+
import { $ as normalizeMediaValueToIdentifierOnly, $n as resolveRepeaterGridSpanFieldId, $r as ApiEnvelopeError, $t as bindRequestTimeout, A as formatDiffDetail, An as getEnvPrefix, Ar as getStripeMinimumChargeRequirement, At as navigationIdentity, B as buildFieldChanges, Bn as NodeSchema, Br as publicProductSchema, Bt as ACCOUNT_SITE_LIST_LIMIT_MIN, C as reportFromOutcomes, Cn as requireEnvironmentWriteAuthorization, Cr as unsafeAsPositiveCheckoutQuantity, Ct as fileExists, D as normalizeRemoteHomepageReference, Dn as transportSuggestion, Dr as repriceBookingCollectionOptions, Dt as writeJsonFileAtomic, E as createEmptySyncResult, En as formatError, Er as isBookingCollectionEquivalentToUpfront, Et as writeJsonFile, F as calculatePullDiff, Fn as createManagementClient, Fr as eventCalendarListLayoutCompatibleDisplayModeValues, Ft as AccountApiMalformedResponseError, G as syncLocalMediaForPull, Gn as blockContentSourceSchema, Gr as calendarMonthWindowSchema, Gt as applyPushConfigPlan, H as formatFieldPath, Hn as bindingSchema, Hr as purchasablePublicPassProductSchema, Ht as ACCOUNT_SITE_TITLE_MAX_LENGTH, I as buildJsonDiff, In as cardListBlockParts, Ir as eventCalendarListLayoutValues, It as createBearerAccountApi, J as admitBinaryWriteDestination, Jn as MAX_REPEATER_GRID_COLUMNS, Jr as eventSurfacePresetValues, Jt as preparePushConfigTarget, K as applyLocalMediaPush, Kn as blockRequiredFeatureSchema, Kr as calendarSourceCursorSchema, Kt as createPushConfigCommand, L as hasPageOperations, Ln as cardListFamilyBlocks, Lr as publicVenueMapLocationSchema, Lt as ACCOUNT_SITE_CURSOR_MAX_LENGTH, M as hasPendingChanges, Mn as isLocalConfigured, Mr as MAX_EVENT_BOOKING_SELECTION_ITEMS, Mt as convertPulledFooterToLocal, N as findChangedFieldsWithValues, Nn as isRemoteConfigured, Nr as eventCalendarDefaultViewValues, Nt as convertPulledNavigationToLocal, O as calculateDiff, On as CliExit, Or as resolveAvailableBookingCollectionOptions, Ot as isMediaValue, P as formatHumanDiff, Pn as loadSdkEnvironment, Pr as eventCalendarDisplayModeValues, Pt as convertPulledPagesToLocal, Q as normalizeMediaIdentifierInput, Qn as resolveRepeaterGridRowFieldId, Qr as publicEventLoaderQuerySchemaShape, Qt as mapEnvironmentExecutionOutcomesJson, R as pageMetadataForUpsert, Rn as cardListKnobBlocks, Rr as publicMembershipProductSchema, Rt as ACCOUNT_SITE_LIST_LIMIT_DEFAULT, S as planCliCommandBatchForBindings, Sn as planEnvironmentWriteAuthorization, Sr as checkoutCopy, St as ensureDir, T as executeResidualSettingsSyncPlan, Tn as ErrorCodes, Tr as planFlexibleBalanceCreditFirst, Tt as readJsonFile, U as revalidateLocalMediaPushPlan, Un as DEFAULT_MEDIA_FIELD_KINDS, Ur as CALENDAR_SSR_PAGE_SIZE, Ut as navigationCommandItemToManagementInput, V as formatFieldChange, Vn as NodeTreeSchema, Vr as purchasablePublicMembershipProductSchema, Vt as ACCOUNT_SITE_SEARCH_MAX_LENGTH, Wn as blockCategoryEnum, Wr as calendarMonthDate, Wt as normalizeNavigationConfigItemForCommand, X as writeBinaryFileAtomic, Xn as parseRepeaterGridInteger, Xr as monthNumber, Xt as createBearerAPIClient, Y as readStableBinaryFile, Yn as isAcceptedRepeaterGridSpan, Yr as eventSurfaceScopeValues, Yt as revalidatePushConfigPlan, Z as sha256, Zn as resolveRepeaterGridColumnFieldId, Zr as normalizeCalendarFilterId, Zt as deriveCmsApiUrlFromDashboardUrl, _ as commandExecutionToReport, _n as withErrorHandling, _r as decideSelectionAttendance, _t as metadataFilePath, a as executeEntryCommandPlanAsReport, an as getOutputContext, ar as ApiRequestError, at as readEntries, b as executeCompiledCliCommandPlanAsReport, bn as parseEnvironmentSelection, br as nextCombinationHint, bt as writeMetadataFile, c as titleFromEntryData, cn as managementClientConfigFor, cr as linkPayloadSchema, ct as readEventsMeta, d as unsafeAsCliEntryIdentifier, dn as parseJsonData, dr as pageDesignIntentSchemaVersion, dt as readNavigationMeta, ei as unwrapResponse, en as confirmAction, er as visibilityLevels, et as walkLocalContentMedia, f as unsafeAsCliFormSlug, fn as parsePaginationOptions, fr as sdkConfiguredBookingVerticalConfigSchema, ft as readPagesMeta, g as commandCompileFailureToReport, gn as withConfirmation, gr as INCOMPATIBLE_ATTENDANCE_MESSAGE, gt as ensureMetadataDir, h as mutationCounterForEffect, hn as withCommandContext, hr as eventBookingConsentContentKey, ht as writeMediaManifest, i as entrySiteCommandTypes, in as formatDateShort, ir as isRecord$2, it as findLegacyEntryFiles, j as formatDiffSummary, jn as getEnvironmentDebugInfo, jr as getBookingLaterInstalments, jt as navigationIdentityMap, k as calculateFooterDiff, kr as resolveBookingCollectionOptionFacts, kt as duplicateNavigationIdentityMessage, l as unsafeAsCliBlockIdentifier, ln as mapEntryForOutput, lr as portablePageDesignSchema, lt as readFooterMeta, m as commandReportToSyncResult, mn as runWithInvocation, mr as areEventBookingRequirementsIdentical, mt as readVenuesMeta, n as entryCommandCompileErrorToReport, nn as createOutputForCommand, nr as extractApiErrorMessage, nt as downloadMedia, o as executeEntryCommandPlanAsSyncResult, on as getOutputOnlyContext, or as sdkEventScheduleSchema, ot as readAllMeta, p as unsafeAsCliPageIdentifier, pn as resolveCommandPath, pr as API_ENDPOINTS, pt as readSettingsMeta, q as prepareLocalMediaForPush, qn as fieldSchema$1, qr as eventScheduleScopeValues, qt as loadPushConfigTarget, r as entryCommandReportToSyncResult, rn as currentInvocationEnvelope, rr as normalizeApiError, rt as extractMediaIdentifiers, s as syncResultForEntryCommandCompileError, sn as handleCommandError, sr as sdkSettingsUpdateSchema, st as readEventCategoriesMeta, t as compileEntryPushCommands, tn as createCommandContext, tr as ManagementApiError, tt as buildStorageUrl, u as unsafeAsCliContentTypeKey, un as parseJsonArray, ur as pageDesignDecisionsV2Schema, ut as readFormsMeta, v as commandReportHasFailures, vn as withOutputOnlyErrorHandling, vr as resolveSelectionAttendanceMode, vt as metadataTargetFromEnvironment, w as mergeManySyncResults, wn as withRiverbankEnv, wr as planCheckoutPaymentFlow, wt as listFiles, x as formatManagementError, xn as planEnvironmentExecution, xr as planSelectionCombinationPrices, xt as writeMetadataRecordMap, y as executeCliCommandPlan, yn as executeEnvironmentPlan, yr as checkoutStatusArms, yt as readMetadataFile, zn as lookKnobBlocks, zr as publicPassProductSchema, zt as ACCOUNT_SITE_LIST_LIMIT_MAX } from "../entryCommands-KmqgJ44o.mjs";
|
|
5
|
+
import { r as CLI_VERSION, t as loadConfigFile } from "../load-config-C_QmGbxS.mjs";
|
|
6
|
+
import { t as eventUpsertInputSchema } from "../eventUpsertInputSchema-DQd8P8BZ.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-BKUvYkD2.mjs";
|
|
8
8
|
import { config } from "dotenv";
|
|
9
9
|
import { Argument, Command, CommanderError, Option } from "commander";
|
|
10
10
|
import { z } from "zod";
|
|
@@ -138,7 +138,10 @@ async function confirmCommand(decision, message, runtime) {
|
|
|
138
138
|
}
|
|
139
139
|
function renderCommandResult(output, result, json) {
|
|
140
140
|
if (json) output.result(result.ok, result.message, result.data);
|
|
141
|
-
else {
|
|
141
|
+
else if (result.presentation === "info") {
|
|
142
|
+
if (result.table) output.table(result.table.headers, result.table.rows);
|
|
143
|
+
output.info(result.message);
|
|
144
|
+
} else {
|
|
142
145
|
output.result(result.ok, result.message);
|
|
143
146
|
if (result.table) output.table(result.table.headers, result.table.rows);
|
|
144
147
|
}
|
|
@@ -12551,6 +12554,80 @@ function blockDesignPlanFromAppearancePreset(preset, input) {
|
|
|
12551
12554
|
* for a card role; the style owns its paint. Arrangement Looks own structure
|
|
12552
12555
|
* and never a section background. Removing an entry retires its pins to auto.
|
|
12553
12556
|
*/
|
|
12557
|
+
/** Shape knobs override the skin's ordinary photo frame. Corner choices keep its ratio. */
|
|
12558
|
+
const photoShapeFrames = [{
|
|
12559
|
+
knob: "imageShape",
|
|
12560
|
+
values: {
|
|
12561
|
+
circle: {
|
|
12562
|
+
kind: "fixed",
|
|
12563
|
+
aspectRatio: "1/1",
|
|
12564
|
+
borderRadius: "50%"
|
|
12565
|
+
},
|
|
12566
|
+
arch: {
|
|
12567
|
+
kind: "fixed",
|
|
12568
|
+
aspectRatio: "4/5",
|
|
12569
|
+
borderRadius: "9999px 9999px 0.125rem 0.125rem"
|
|
12570
|
+
}
|
|
12571
|
+
}
|
|
12572
|
+
}];
|
|
12573
|
+
const naturalPhotoFrame = {
|
|
12574
|
+
kind: "variable",
|
|
12575
|
+
because: "The photo keeps its own proportions.",
|
|
12576
|
+
aspectRatio: "auto"
|
|
12577
|
+
};
|
|
12578
|
+
const introPhotoFrames = {
|
|
12579
|
+
default: naturalPhotoFrame,
|
|
12580
|
+
bySkin: {
|
|
12581
|
+
haven: {
|
|
12582
|
+
kind: "fixed",
|
|
12583
|
+
aspectRatio: "1/1"
|
|
12584
|
+
},
|
|
12585
|
+
brook: {
|
|
12586
|
+
kind: "fixed",
|
|
12587
|
+
aspectRatio: "4/3"
|
|
12588
|
+
},
|
|
12589
|
+
orbit: {
|
|
12590
|
+
kind: "fixed",
|
|
12591
|
+
aspectRatio: "1/1",
|
|
12592
|
+
borderRadius: "50%"
|
|
12593
|
+
}
|
|
12594
|
+
},
|
|
12595
|
+
byKnob: photoShapeFrames
|
|
12596
|
+
};
|
|
12597
|
+
const mediaTextPhotoFrames = {
|
|
12598
|
+
default: naturalPhotoFrame,
|
|
12599
|
+
bySkin: {
|
|
12600
|
+
poster: {
|
|
12601
|
+
kind: "fixed",
|
|
12602
|
+
aspectRatio: "4/3"
|
|
12603
|
+
},
|
|
12604
|
+
poise: {
|
|
12605
|
+
kind: "fixed",
|
|
12606
|
+
aspectRatio: "4/5"
|
|
12607
|
+
},
|
|
12608
|
+
haven: {
|
|
12609
|
+
kind: "fixed",
|
|
12610
|
+
aspectRatio: "5/4"
|
|
12611
|
+
},
|
|
12612
|
+
loom: {
|
|
12613
|
+
kind: "fixed",
|
|
12614
|
+
aspectRatio: "3/2"
|
|
12615
|
+
},
|
|
12616
|
+
folio: {
|
|
12617
|
+
kind: "fixed",
|
|
12618
|
+
aspectRatio: "4/5"
|
|
12619
|
+
},
|
|
12620
|
+
brook: {
|
|
12621
|
+
kind: "fixed",
|
|
12622
|
+
aspectRatio: "4/3"
|
|
12623
|
+
},
|
|
12624
|
+
orbit: {
|
|
12625
|
+
kind: "fixed",
|
|
12626
|
+
aspectRatio: "4/3"
|
|
12627
|
+
}
|
|
12628
|
+
},
|
|
12629
|
+
byKnob: photoShapeFrames
|
|
12630
|
+
};
|
|
12554
12631
|
const brandScrimOptionGroups = [{
|
|
12555
12632
|
id: "image-surface-treatment",
|
|
12556
12633
|
label: "Photo tint",
|
|
@@ -13575,6 +13652,11 @@ const blockAppearancePresets = [
|
|
|
13575
13652
|
styleFallback: [id$1("image-gallery-square-tiles")]
|
|
13576
13653
|
}),
|
|
13577
13654
|
defineArrangementLook("media-text-circle-beside-text", "media-text", "Circle beside the text", "circle-beside", ["imagePosition"], {
|
|
13655
|
+
mediaFrame: { default: {
|
|
13656
|
+
kind: "fixed",
|
|
13657
|
+
aspectRatio: "1/1",
|
|
13658
|
+
borderRadius: "50%"
|
|
13659
|
+
} },
|
|
13578
13660
|
thumbnail: sketch.page([sketch.middle([sketch.photo("medium", "circle")], [sketch.title(.8), sketch.text(3)])]),
|
|
13579
13661
|
forcedKnobs: {
|
|
13580
13662
|
imageShape: "circle",
|
|
@@ -14010,6 +14092,7 @@ const blockAppearancePresets = [
|
|
|
14010
14092
|
styleFallback: [id$1("intro-photo-beside-text")]
|
|
14011
14093
|
}),
|
|
14012
14094
|
defineArrangementLook("intro-photo-beside-text", "intro", "Small photo beside the text", "media-copy", ["imagePosition", "imageShape"], {
|
|
14095
|
+
mediaFrame: introPhotoFrames,
|
|
14013
14096
|
thumbnail: sketch.page([sketch.middle(sketch.weight(1, [sketch.photo("medium")]), sketch.weight(2, [sketch.title(.7), sketch.text(3)]))]),
|
|
14014
14097
|
whenMissing: [{
|
|
14015
14098
|
fact: "photo",
|
|
@@ -14017,6 +14100,7 @@ const blockAppearancePresets = [
|
|
|
14017
14100
|
}]
|
|
14018
14101
|
}),
|
|
14019
14102
|
defineArrangementLook("intro-large-photo-beside-text", "intro", "Large photo beside the text", "media-copy", ["imagePosition"], {
|
|
14103
|
+
mediaFrame: { default: naturalPhotoFrame },
|
|
14020
14104
|
thumbnail: sketch.page([sketch.row(sketch.weight(1, [sketch.photo("tall")]), sketch.weight(1, [sketch.title(.7), sketch.text(5)]))]),
|
|
14021
14105
|
whenMissing: [{
|
|
14022
14106
|
fact: "photo",
|
|
@@ -14024,12 +14108,20 @@ const blockAppearancePresets = [
|
|
|
14024
14108
|
}],
|
|
14025
14109
|
styleFallback: [id$1("intro-photo-beside-text")]
|
|
14026
14110
|
}),
|
|
14027
|
-
defineArrangementLook("media-text-photo-beside-text", "media-text", "Photo beside the text", "default", ["imagePosition", "imageShape"], {
|
|
14028
|
-
|
|
14029
|
-
sketch.
|
|
14030
|
-
|
|
14031
|
-
|
|
14111
|
+
defineArrangementLook("media-text-photo-beside-text", "media-text", "Photo beside the text", "default", ["imagePosition", "imageShape"], {
|
|
14112
|
+
mediaFrame: mediaTextPhotoFrames,
|
|
14113
|
+
thumbnail: sketch.page([sketch.middle([sketch.photo("tall")], [
|
|
14114
|
+
sketch.rule,
|
|
14115
|
+
sketch.title(.8),
|
|
14116
|
+
sketch.text(3)
|
|
14117
|
+
])])
|
|
14118
|
+
}),
|
|
14032
14119
|
defineArrangementLook("media-text-photo-to-edge", "media-text", "Photo to the edge", "default", ["imagePosition"], {
|
|
14120
|
+
mediaFrame: { default: {
|
|
14121
|
+
kind: "variable",
|
|
14122
|
+
because: "The photo fills the section height, which depends on the text and viewport.",
|
|
14123
|
+
aspectRatio: "auto"
|
|
14124
|
+
} },
|
|
14033
14125
|
thumbnail: sketch.page([sketch.row(sketch.weight(1, [
|
|
14034
14126
|
sketch.rule,
|
|
14035
14127
|
sketch.title(.8),
|
|
@@ -32665,6 +32757,26 @@ function defineHeaderCuration(input) {
|
|
|
32665
32757
|
const [first, ...remaining] = input;
|
|
32666
32758
|
return [toEntry(first), ...remaining.map(toEntry)];
|
|
32667
32759
|
}
|
|
32760
|
+
/** A brand-coloured bar in the style's own type: its navigation keeps sentence case rather than the catalogue's capitals. */
|
|
32761
|
+
const sentenceCaseBrandBar = {
|
|
32762
|
+
tone: "brand",
|
|
32763
|
+
dropdown: brandHeaderDropdown,
|
|
32764
|
+
background: {
|
|
32765
|
+
kind: "token",
|
|
32766
|
+
token: "primary"
|
|
32767
|
+
},
|
|
32768
|
+
nav: {
|
|
32769
|
+
kind: "minimal",
|
|
32770
|
+
hoverColorToken: "secondary"
|
|
32771
|
+
},
|
|
32772
|
+
navWeight: "semibold",
|
|
32773
|
+
navLinkWeight: "medium",
|
|
32774
|
+
navTypography: "plain",
|
|
32775
|
+
border: "none",
|
|
32776
|
+
shadow: { kind: "absent" },
|
|
32777
|
+
frame: { kind: "none" },
|
|
32778
|
+
cta: { treatment: "inverted" }
|
|
32779
|
+
};
|
|
32668
32780
|
const headerCurationBySiteStyle = {
|
|
32669
32781
|
"site-style:loom": defineHeaderCuration([{
|
|
32670
32782
|
layoutId: "classic",
|
|
@@ -32716,6 +32828,7 @@ const headerCurationBySiteStyle = {
|
|
|
32716
32828
|
"site-style:fulcrum": defineHeaderCuration([{
|
|
32717
32829
|
layoutId: "classic",
|
|
32718
32830
|
styleIds: [
|
|
32831
|
+
"brand-bar",
|
|
32719
32832
|
"fine-line",
|
|
32720
32833
|
"minimal",
|
|
32721
32834
|
"serif-line",
|
|
@@ -32783,7 +32896,11 @@ const headerCurationBySiteStyle = {
|
|
|
32783
32896
|
]),
|
|
32784
32897
|
"site-style:measure": defineHeaderCuration([{
|
|
32785
32898
|
layoutId: "classic",
|
|
32786
|
-
styleIds: [
|
|
32899
|
+
styleIds: [
|
|
32900
|
+
"brand-bar",
|
|
32901
|
+
"fine-line",
|
|
32902
|
+
"minimal"
|
|
32903
|
+
]
|
|
32787
32904
|
}])
|
|
32788
32905
|
};
|
|
32789
32906
|
/** Optional authored overrides remain absent when the catalogue did not supply them. */
|
|
@@ -37704,6 +37821,7 @@ const curatedSiteStyles = [
|
|
|
37704
37821
|
},
|
|
37705
37822
|
testimonialQuote: serifDisplayQuote
|
|
37706
37823
|
},
|
|
37824
|
+
headerStyleRecipes: { "brand-bar": sentenceCaseBrandBar },
|
|
37707
37825
|
...fulcrumFooter,
|
|
37708
37826
|
buttonStyleChoices: [
|
|
37709
37827
|
buttonChoice("fulcrum"),
|
|
@@ -37830,6 +37948,7 @@ const curatedSiteStyles = [
|
|
|
37830
37948
|
accordions: editorialDividedAccordionSystem,
|
|
37831
37949
|
testimonialQuote: serifDisplayQuote
|
|
37832
37950
|
},
|
|
37951
|
+
headerStyleRecipes: { "brand-bar": sentenceCaseBrandBar },
|
|
37833
37952
|
...measureFooter,
|
|
37834
37953
|
buttonStyleChoices: [
|
|
37835
37954
|
buttonChoice("flat-ink", undefined, { corners: "square" }),
|
|
@@ -45393,8 +45512,13 @@ function isCanonicalObject(value) {
|
|
|
45393
45512
|
|
|
45394
45513
|
//#endregion
|
|
45395
45514
|
//#region ../theme-core/src/site-styles/lookMediaFrame.ts
|
|
45396
|
-
function resolveLookMediaFrame(frames, skin) {
|
|
45397
|
-
|
|
45515
|
+
function resolveLookMediaFrame(frames, skin, knobs = {}) {
|
|
45516
|
+
if (!frames) return undefined;
|
|
45517
|
+
const base = (skin ? frames.bySkin?.[skin] : undefined) ?? frames.default;
|
|
45518
|
+
return (frames.byKnob ?? []).reduce((frame, rule$2) => {
|
|
45519
|
+
const value = knobs[rule$2.knob];
|
|
45520
|
+
return (typeof value === "string" ? rule$2.values[value] : undefined) ?? frame;
|
|
45521
|
+
}, base);
|
|
45398
45522
|
}
|
|
45399
45523
|
function frameVars(frame) {
|
|
45400
45524
|
return [
|
|
@@ -45412,7 +45536,11 @@ function generateLookMediaFrameCss(themeId) {
|
|
|
45412
45536
|
if (!frames) return [];
|
|
45413
45537
|
const scope = `:where([data-theme-scope="${themeId}"])`;
|
|
45414
45538
|
const selector = `[data-look="${look$1.id}"]`;
|
|
45415
|
-
return [
|
|
45539
|
+
return [
|
|
45540
|
+
`${scope} ${selector} { ${frameVars(frames.default)} }`,
|
|
45541
|
+
...Object.entries(frames.bySkin ?? {}).map(([skin, frame]) => `${scope} :is([data-skin="${skin}"], [data-skin="${skin}"] *)${selector} { ${frameVars(frame)} }`),
|
|
45542
|
+
...(frames.byKnob ?? []).flatMap((rule$2) => Object.entries(rule$2.values).map(([value, frame]) => `${scope} ${selector}[data-knob-${rule$2.knob.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`)}="${value}"] { ${frameVars(frame)} }`))
|
|
45543
|
+
];
|
|
45416
45544
|
}).join("\n");
|
|
45417
45545
|
}
|
|
45418
45546
|
|
|
@@ -67878,7 +68006,7 @@ const publicMembershipProductCollectionSchema = z.object({ memberships: z.array(
|
|
|
67878
68006
|
//#region ../blocks/src/system/runtime/nodes/events/domain/pricing.ts
|
|
67879
68007
|
/**
|
|
67880
68008
|
* Format event price for display.
|
|
67881
|
-
* @returns "Free", "£25", "£12–£25", "Free
|
|
68009
|
+
* @returns "Free", "£25", "£12–£25", "Free or £12–£25", "£220 for the course", etc.
|
|
67882
68010
|
*
|
|
67883
68011
|
* Events render compact amounts (no trailing ".00"); the actual ADT→string
|
|
67884
68012
|
* mapping lives in `formatBookingPriceDisplay` in @riverbankcms/core so all
|
|
@@ -69213,10 +69341,13 @@ const introMedia = media({
|
|
|
69213
69341
|
}],
|
|
69214
69342
|
fallback: "rb-intro-media rb-w-full rb-h-auto rb-object-cover"
|
|
69215
69343
|
} },
|
|
69216
|
-
style: {
|
|
69217
|
-
from: "content.
|
|
69218
|
-
|
|
69219
|
-
|
|
69344
|
+
style: {
|
|
69345
|
+
borderRadius: { $bind: { from: "content._lookMediaFrame.borderRadius" } },
|
|
69346
|
+
aspectRatio: { $bind: {
|
|
69347
|
+
from: "content.aspectRatio",
|
|
69348
|
+
fallback: "1/1"
|
|
69349
|
+
} }
|
|
69350
|
+
}
|
|
69220
69351
|
}, bind("content.media"), when("content.media"));
|
|
69221
69352
|
const centeredCopyLayout = styledSection({
|
|
69222
69353
|
children: styledContainer({
|
|
@@ -73081,7 +73212,11 @@ const centeredLayout = stack({
|
|
|
73081
73212
|
transforms: pipe(tx("layout.maxWidthClass", { base: `rb-header-layout header-desktop-bar ${desktopOnlyDisplay("flex")} rb-w-full rb-flex-col rb-items-center rb-gap-5 rb-text-center` })),
|
|
73082
73213
|
fallback: `rb-container rb-header-layout header-desktop-bar ${desktopOnlyDisplay("flex")} rb-w-full rb-flex-col rb-items-center rb-gap-5 rb-text-center`
|
|
73083
73214
|
})
|
|
73084
|
-
}, [centeredLogoRow,
|
|
73215
|
+
}, [centeredLogoRow, inline({
|
|
73216
|
+
className: `${desktopOnlyDisplay("flex")} rb-flex-wrap rb-items-center rb-justify-center rb-gap-y-3`,
|
|
73217
|
+
align: "center",
|
|
73218
|
+
justify: "center"
|
|
73219
|
+
}, [createNavRow(`${desktopOnlyDisplay("flex")} rb-flex-wrap rb-justify-center rb-gap-x-6 rb-gap-y-3`, "center"), headerCta])], when("$root.theme.header.variant", { equals: "centered" }));
|
|
73085
73220
|
const floatingLayout = inline({
|
|
73086
73221
|
[SITE_CHROME_VISIBLE_HEADER_ATTR]: "true",
|
|
73087
73222
|
className: bindProp("$root.theme.header.maxWidth", {
|
|
@@ -75173,7 +75308,10 @@ const mediaTextManifest = createBlockManifest({
|
|
|
75173
75308
|
}],
|
|
75174
75309
|
fallback: "rb-w-full rb-h-auto rb-object-cover"
|
|
75175
75310
|
} },
|
|
75176
|
-
style: {
|
|
75311
|
+
style: {
|
|
75312
|
+
borderRadius: { $bind: { from: "content._lookMediaFrame.borderRadius" } },
|
|
75313
|
+
aspectRatio: { $bind: { from: "content.aspectRatio" } }
|
|
75314
|
+
}
|
|
75177
75315
|
};
|
|
75178
75316
|
const defaultSingleImage = media(defaultImageCommonProps, bind("content.images[0].image"), when("content.images[0].image"));
|
|
75179
75317
|
const defaultCarouselImages = carousel({
|
|
@@ -76802,7 +76940,7 @@ const copy = {
|
|
|
76802
76940
|
},
|
|
76803
76941
|
completed: {
|
|
76804
76942
|
titleText: "These dates have finished",
|
|
76805
|
-
bodyText: "
|
|
76943
|
+
bodyText: "The details are kept here for reference."
|
|
76806
76944
|
},
|
|
76807
76945
|
"enrolment-closed": {
|
|
76808
76946
|
titleText: "Booking closed",
|
|
@@ -76893,7 +77031,7 @@ function shownVenue(event, display) {
|
|
|
76893
77031
|
}
|
|
76894
77032
|
/** Full/waitlist explanations remain visible even when optional counts are hidden. */
|
|
76895
77033
|
function placesLeftLabel(source, display, wording = {}) {
|
|
76896
|
-
if ("kind" in source) return ticketPlacesLabel(source
|
|
77034
|
+
if ("kind" in source) return ticketPlacesLabel(source, display);
|
|
76897
77035
|
if (source.deliveryMode === "hybrid" && source.attendanceModes?.length) {
|
|
76898
77036
|
return hybridPlacesLabel(source, display, wording);
|
|
76899
77037
|
}
|
|
@@ -76918,7 +77056,9 @@ function hybridPlacesLabel(event, display, wording) {
|
|
|
76918
77056
|
});
|
|
76919
77057
|
return labels.join(" · ") || null;
|
|
76920
77058
|
}
|
|
76921
|
-
function ticketPlacesLabel(
|
|
77059
|
+
function ticketPlacesLabel(source, display) {
|
|
77060
|
+
const { remaining, dateRemaining } = source;
|
|
77061
|
+
if (remaining !== null && dateRemaining !== null && remaining >= dateRemaining) return null;
|
|
76922
77062
|
if (remaining !== null && remaining > 0 && display.placesLeft === "hidden") return null;
|
|
76923
77063
|
return formatTicketTypeRemaining(remaining);
|
|
76924
77064
|
}
|
|
@@ -82943,40 +83083,76 @@ function selectionPreviewKey(code, lines) {
|
|
|
82943
83083
|
if (code !== null && !trimmed || !lines) return null;
|
|
82944
83084
|
return JSON.stringify([trimmed, lines]);
|
|
82945
83085
|
}
|
|
83086
|
+
/**
|
|
83087
|
+
* The lines' sum, shown as "Subtotal" only when something comes off it;
|
|
83088
|
+
* otherwise the lines lead straight to the total.
|
|
83089
|
+
*/
|
|
83090
|
+
function paymentSubtotal(subtotalCents, reductions) {
|
|
83091
|
+
return reductions.length > 0 ? subtotalCents : null;
|
|
83092
|
+
}
|
|
83093
|
+
/** "4 dates, 1 place on each", above the list. */
|
|
83094
|
+
function paymentCaption(several, items$1, places) {
|
|
83095
|
+
const noun = several === "runs" ? "run" : "date";
|
|
83096
|
+
return `${plural(items$1, noun)}, ${plural(places, "place")} on each`;
|
|
83097
|
+
}
|
|
83098
|
+
/** The multiplier for a line, when its amount splits evenly into a price per place. */
|
|
83099
|
+
function paymentLine(input) {
|
|
83100
|
+
const { key, label: label$1, amountCents, places, unitPriceCents } = input;
|
|
83101
|
+
const multiplier = places > 1 && unitPriceCents !== null && unitPriceCents * places === amountCents ? {
|
|
83102
|
+
places,
|
|
83103
|
+
unitPriceCents
|
|
83104
|
+
} : null;
|
|
83105
|
+
return {
|
|
83106
|
+
key,
|
|
83107
|
+
label: label$1,
|
|
83108
|
+
amountCents,
|
|
83109
|
+
multiplier
|
|
83110
|
+
};
|
|
83111
|
+
}
|
|
82946
83112
|
const USUAL_PRICE = "At the usual price";
|
|
82947
|
-
function plannedGroups(plan) {
|
|
83113
|
+
function plannedGroups(plan, unitPrices) {
|
|
82948
83114
|
const label$1 = (lineId) => plan.lines.find((row$1) => row$1.line.lineId === lineId)?.line.label ?? "";
|
|
82949
83115
|
const combined = plan.applications.map((app, index) => ({
|
|
82950
83116
|
key: `combination-${index}`,
|
|
82951
83117
|
heading: app.offer.label,
|
|
82952
|
-
lines: app.allocations.map((row$1) => ({
|
|
83118
|
+
lines: app.allocations.map((row$1) => paymentLine({
|
|
82953
83119
|
key: row$1.lineId,
|
|
82954
83120
|
label: label$1(row$1.lineId),
|
|
82955
|
-
amountCents: row$1.totalCents
|
|
83121
|
+
amountCents: row$1.totalCents,
|
|
83122
|
+
places: plan.places,
|
|
83123
|
+
unitPriceCents: null
|
|
82956
83124
|
}))
|
|
82957
83125
|
}));
|
|
82958
|
-
const usual = plan.lines.filter((row$1) => !row$1.combined).map((row$1) => (
|
|
82959
|
-
key: row$1.line.lineId,
|
|
82960
|
-
label: row$1.line.label,
|
|
82961
|
-
amountCents: row$1.listCents
|
|
82962
|
-
}));
|
|
83126
|
+
const usual = plan.lines.filter((row$1) => !row$1.combined).map((row$1) => planLine(plan, unitPrices, row$1.line.lineId, row$1.line.label, row$1.listCents));
|
|
82963
83127
|
return [...combined, ...usual.length > 0 ? [{
|
|
82964
83128
|
key: "usual",
|
|
82965
83129
|
heading: USUAL_PRICE,
|
|
82966
83130
|
lines: usual
|
|
82967
83131
|
}] : []];
|
|
82968
83132
|
}
|
|
82969
|
-
function usualGroups(plan) {
|
|
83133
|
+
function usualGroups(plan, unitPrices) {
|
|
82970
83134
|
return [{
|
|
82971
83135
|
key: "usual",
|
|
82972
83136
|
heading: null,
|
|
82973
|
-
lines: plan.lines.map((row$1) => (
|
|
82974
|
-
key: row$1.line.lineId,
|
|
82975
|
-
label: row$1.line.label,
|
|
82976
|
-
amountCents: row$1.listCents
|
|
82977
|
-
}))
|
|
83137
|
+
lines: plan.lines.map((row$1) => planLine(plan, unitPrices, row$1.line.lineId, row$1.line.label, row$1.listCents))
|
|
82978
83138
|
}];
|
|
82979
83139
|
}
|
|
83140
|
+
function selectionUnitPrices(selection, unitPriceOf) {
|
|
83141
|
+
return new Map(selection.flatMap((event) => {
|
|
83142
|
+
const unitPriceCents = unitPriceOf(event);
|
|
83143
|
+
return unitPriceCents === null ? [] : [[lineIdOf(event), unitPriceCents]];
|
|
83144
|
+
}));
|
|
83145
|
+
}
|
|
83146
|
+
/** An item at its usual price, with its known price per place. */
|
|
83147
|
+
function planLine(plan, unitPrices, key, label$1, amountCents) {
|
|
83148
|
+
return paymentLine({
|
|
83149
|
+
key,
|
|
83150
|
+
label: label$1,
|
|
83151
|
+
amountCents,
|
|
83152
|
+
places: plan.places,
|
|
83153
|
+
unitPriceCents: unitPrices.get(key) ?? null
|
|
83154
|
+
});
|
|
83155
|
+
}
|
|
82980
83156
|
function sumKind(reductions, kind) {
|
|
82981
83157
|
return reductions.filter((row$1) => row$1.kind === kind).reduce((sum, row$1) => sum + row$1.amountCents, 0);
|
|
82982
83158
|
}
|
|
@@ -82998,8 +83174,8 @@ function codeNote(plan, several) {
|
|
|
82998
83174
|
const noun = several === "dates" ? "date" : "run";
|
|
82999
83175
|
return `This code can’t be used with the “${label$1}” price, so it’s been taken off your other ${others === 1 ? noun : `${noun}s`}.`;
|
|
83000
83176
|
}
|
|
83001
|
-
function
|
|
83002
|
-
return
|
|
83177
|
+
function planCaption(plan, several) {
|
|
83178
|
+
return paymentCaption(several, plan.lines.length, plan.places);
|
|
83003
83179
|
}
|
|
83004
83180
|
/**
|
|
83005
83181
|
* The payment step's list when combinations apply: each combination's items
|
|
@@ -83018,9 +83194,9 @@ function summariseCombinedPayment(input) {
|
|
|
83018
83194
|
if (!planCombines(plan)) return null;
|
|
83019
83195
|
return {
|
|
83020
83196
|
kind: "combined",
|
|
83021
|
-
|
|
83022
|
-
groups: plannedGroups(plan),
|
|
83023
|
-
subtotalCents:
|
|
83197
|
+
caption: planCaption(plan, input.several),
|
|
83198
|
+
groups: plannedGroups(plan, input.unitPrices),
|
|
83199
|
+
subtotalCents: null,
|
|
83024
83200
|
reductions: [],
|
|
83025
83201
|
note: null,
|
|
83026
83202
|
totalCents: plan.totalCents,
|
|
@@ -83057,7 +83233,7 @@ function previewedPayment(input) {
|
|
|
83057
83233
|
const codeRows = code.amountCents > 0 ? [code] : [];
|
|
83058
83234
|
const base = {
|
|
83059
83235
|
kind: "combined",
|
|
83060
|
-
|
|
83236
|
+
caption: planCaption(plan, input.several),
|
|
83061
83237
|
note: null,
|
|
83062
83238
|
totalCents: preview.totalAfterDiscountCents,
|
|
83063
83239
|
savingCents: savingFrom(plan, preview.totalAfterDiscountCents)
|
|
@@ -83067,16 +83243,16 @@ function previewedPayment(input) {
|
|
|
83067
83243
|
const limited = quote.source === "typed" && preview.type === "applied" && preview.codeCombinesWithCombinationPrices === false && code.amountCents > 0;
|
|
83068
83244
|
return {
|
|
83069
83245
|
...base,
|
|
83070
|
-
groups: plannedGroups(plan),
|
|
83071
|
-
subtotalCents: plan.totalCents,
|
|
83246
|
+
groups: plannedGroups(plan, input.unitPrices),
|
|
83247
|
+
subtotalCents: paymentSubtotal(plan.totalCents, codeRows),
|
|
83072
83248
|
reductions: codeRows,
|
|
83073
83249
|
note: limited ? codeNote(plan, input.several) : null
|
|
83074
83250
|
};
|
|
83075
83251
|
}
|
|
83076
83252
|
case "usual": return {
|
|
83077
83253
|
...base,
|
|
83078
|
-
groups: usualGroups(plan),
|
|
83079
|
-
subtotalCents: plan.listTotalCents,
|
|
83254
|
+
groups: usualGroups(plan, input.unitPrices),
|
|
83255
|
+
subtotalCents: paymentSubtotal(plan.listTotalCents, codeRows),
|
|
83080
83256
|
reductions: codeRows
|
|
83081
83257
|
};
|
|
83082
83258
|
case "server": {
|
|
@@ -83088,8 +83264,8 @@ function previewedPayment(input) {
|
|
|
83088
83264
|
const sameBasket = preview.subtotalCents === plan.listTotalCents;
|
|
83089
83265
|
return {
|
|
83090
83266
|
...base,
|
|
83091
|
-
groups: sameBasket ? usualGroups(plan) : [],
|
|
83092
|
-
subtotalCents: preview.subtotalCents,
|
|
83267
|
+
groups: sameBasket ? usualGroups(plan, input.unitPrices) : [],
|
|
83268
|
+
subtotalCents: paymentSubtotal(preview.subtotalCents, rows),
|
|
83093
83269
|
reductions: rows
|
|
83094
83270
|
};
|
|
83095
83271
|
}
|
|
@@ -83431,10 +83607,15 @@ function summariseSelectionPayment(input) {
|
|
|
83431
83607
|
const { several, quote } = input;
|
|
83432
83608
|
if (several === null || input.ready === false) return null;
|
|
83433
83609
|
const combination = input.price.combination;
|
|
83610
|
+
const unitPrices = selectionUnitPrices(input.selection, (event) => itemPriceCents({
|
|
83611
|
+
...input,
|
|
83612
|
+
several
|
|
83613
|
+
}, event)?.unitPriceCents ?? null);
|
|
83434
83614
|
const combined = combination ? summariseCombinedPayment({
|
|
83435
83615
|
plan: combination,
|
|
83436
83616
|
several,
|
|
83437
|
-
quote
|
|
83617
|
+
quote,
|
|
83618
|
+
unitPrices
|
|
83438
83619
|
}) : null;
|
|
83439
83620
|
return combined ?? plainSelectionPayment({
|
|
83440
83621
|
...input,
|
|
@@ -83442,7 +83623,7 @@ function summariseSelectionPayment(input) {
|
|
|
83442
83623
|
listTotalCents
|
|
83443
83624
|
});
|
|
83444
83625
|
}
|
|
83445
|
-
/** Several items without combination prices: each at its price
|
|
83626
|
+
/** Several items without combination prices: each at its price for all places, any automatic code, the total. */
|
|
83446
83627
|
function plainSelectionPayment(input) {
|
|
83447
83628
|
const { several, quote, listTotalCents } = input;
|
|
83448
83629
|
const lines = input.selection.map((event) => ({
|
|
@@ -83450,19 +83631,22 @@ function plainSelectionPayment(input) {
|
|
|
83450
83631
|
label: selectionItemName(event, input.selection),
|
|
83451
83632
|
price: itemPriceCents(input, event)
|
|
83452
83633
|
}));
|
|
83453
|
-
const priced = lines.flatMap((line) => line.price === null ? [] : [{
|
|
83634
|
+
const priced = lines.flatMap((line) => line.price === null ? [] : [paymentLine({
|
|
83454
83635
|
key: line.key,
|
|
83455
|
-
label: line.
|
|
83456
|
-
amountCents: line.price.
|
|
83457
|
-
|
|
83636
|
+
label: line.label,
|
|
83637
|
+
amountCents: line.price.subtotalCents,
|
|
83638
|
+
places: input.places,
|
|
83639
|
+
unitPriceCents: line.price.unitPriceCents
|
|
83640
|
+
})]);
|
|
83458
83641
|
const totalCents = quote ? quote.preview.totalAfterDiscountCents : input.price.totalCents;
|
|
83459
83642
|
if (priced.length !== lines.length || listTotalCents === null || totalCents === null) return null;
|
|
83643
|
+
const reductions = quoteReductions(quote);
|
|
83460
83644
|
return {
|
|
83461
83645
|
kind: "plain",
|
|
83646
|
+
caption: paymentCaption(several, priced.length, input.places),
|
|
83462
83647
|
lines: priced,
|
|
83463
|
-
|
|
83464
|
-
|
|
83465
|
-
reductions: quoteReductions(quote),
|
|
83648
|
+
subtotalCents: paymentSubtotal(listTotalCents, reductions),
|
|
83649
|
+
reductions,
|
|
83466
83650
|
totalCents
|
|
83467
83651
|
};
|
|
83468
83652
|
}
|
|
@@ -89242,6 +89426,16 @@ function resolveEventRegistrationScopedEvents(events, context) {
|
|
|
89242
89426
|
case "unscoped": return [...events];
|
|
89243
89427
|
}
|
|
89244
89428
|
}
|
|
89429
|
+
/** Keep dated detail/recovery targets, but only invite bookings for future choices. */
|
|
89430
|
+
function resolveEventRegistrationChoices(events, context, now) {
|
|
89431
|
+
const scoped = resolveEventRegistrationScopedEvents(events, context);
|
|
89432
|
+
const runs = groupPublicEventsByRun(scoped);
|
|
89433
|
+
if (context.occurrenceContext || context.subject?.kind === "eventSeries" && context.subject.bookingScope === "whole_series" || runs.length === 1 && scoped.every((event) => event.bookingScope === "whole_series")) {
|
|
89434
|
+
return scoped;
|
|
89435
|
+
}
|
|
89436
|
+
const eligibleRunIds = new Set(runs.filter((group) => resolveWholeSeriesChooserEligibility(group, now).kind === "eligible").map((group) => group.eventSeriesId));
|
|
89437
|
+
return scoped.filter((event) => event.bookingScope === "whole_series" ? eligibleRunIds.has(event.seriesId) : Date.parse(event.startsAt) > now.getTime());
|
|
89438
|
+
}
|
|
89245
89439
|
|
|
89246
89440
|
//#endregion
|
|
89247
89441
|
//#region ../blocks/src/system/constants/events.ts
|
|
@@ -89614,9 +89808,10 @@ function buildEventRegistrationDisplayFromScopedEvents(source, scopedSourceEvent
|
|
|
89614
89808
|
...closedRunCopy(phase.reason)
|
|
89615
89809
|
};
|
|
89616
89810
|
}
|
|
89617
|
-
const
|
|
89811
|
+
const choices = resolveEventRegistrationChoices(scopedSourceEvents, source, new Date(source.now));
|
|
89812
|
+
const card = bookingCardDisplay(source, choices, display);
|
|
89618
89813
|
if (card) return card;
|
|
89619
|
-
const stepLabels = buildEventRegistrationShellStepLabels(source,
|
|
89814
|
+
const stepLabels = buildEventRegistrationShellStepLabels(source, choices);
|
|
89620
89815
|
return {
|
|
89621
89816
|
kind: "event-registration",
|
|
89622
89817
|
state: "generic-shell",
|
|
@@ -89792,6 +89987,8 @@ function buildEventRegistrationInteractiveIslandProps(props$1) {
|
|
|
89792
89987
|
* - When on event template without occurrence, shows occurrence picker
|
|
89793
89988
|
* - When standalone, shows full event + occurrence picker
|
|
89794
89989
|
*/
|
|
89990
|
+
/** The block's own heading; theme-core's event-registration.css hides it beside a closed panel. */
|
|
89991
|
+
const EVENT_REGISTRATION_HEADING_CLASS = "event-registration__heading";
|
|
89795
89992
|
const eventRegistrationManifest = createBlockManifest({
|
|
89796
89993
|
variantMeaning: { kind: "arrangement" },
|
|
89797
89994
|
id: "block.event-registration",
|
|
@@ -89932,7 +90129,10 @@ const eventRegistrationManifest = createBlockManifest({
|
|
|
89932
90129
|
baseClass: "",
|
|
89933
90130
|
spacing: "spacious",
|
|
89934
90131
|
children: sectionContainer([
|
|
89935
|
-
text({
|
|
90132
|
+
text({
|
|
90133
|
+
as: "h2",
|
|
90134
|
+
className: EVENT_REGISTRATION_HEADING_CLASS
|
|
90135
|
+
}, bind("content.heading"), when("content.heading")),
|
|
89936
90136
|
richText({ className: "rb-prose rb-max-w-none" }, bind("content.description"), when("content.description")),
|
|
89937
90137
|
eventRegistration(withApiBindings({
|
|
89938
90138
|
demoEmailSuppressed: { $bind: {
|
|
@@ -91533,6 +91733,442 @@ function getMediaAssetIndex(context) {
|
|
|
91533
91733
|
return context?.mediaAssetIndex ?? getMediaContext().mediaAssetIndex;
|
|
91534
91734
|
}
|
|
91535
91735
|
|
|
91736
|
+
//#endregion
|
|
91737
|
+
//#region ../blocks/src/system/customize/facets.ts
|
|
91738
|
+
function defineCustomizeFacet(definition$1) {
|
|
91739
|
+
return definition$1;
|
|
91740
|
+
}
|
|
91741
|
+
const eventCalendarListLayoutFacet = defineCustomizeFacet({
|
|
91742
|
+
blockKind: "block.event-calendar",
|
|
91743
|
+
id: "eventCalendar.listLayout",
|
|
91744
|
+
label: "List style",
|
|
91745
|
+
legacyOnly: true,
|
|
91746
|
+
values: eventCalendarListLayoutOptions.map((option) => ({
|
|
91747
|
+
value: option.id,
|
|
91748
|
+
label: option.label
|
|
91749
|
+
})),
|
|
91750
|
+
defaultValue: "stack",
|
|
91751
|
+
target: { kind: "event-calendar-list-layout-content" },
|
|
91752
|
+
appliesToLayoutVariants: eventCalendarListLayoutCompatibleDisplayModeValues
|
|
91753
|
+
});
|
|
91754
|
+
const fixedKnob = (blockKind, id$2, label$1, values, defaultValue, ordered = false, boolean = false) => ({
|
|
91755
|
+
blockKind,
|
|
91756
|
+
id: id$2,
|
|
91757
|
+
label: label$1,
|
|
91758
|
+
values,
|
|
91759
|
+
defaultValue,
|
|
91760
|
+
knob: {
|
|
91761
|
+
kind: "fixed",
|
|
91762
|
+
ordered
|
|
91763
|
+
},
|
|
91764
|
+
target: {
|
|
91765
|
+
kind: "content-field",
|
|
91766
|
+
field: id$2,
|
|
91767
|
+
...boolean ? { boolean: true } : {}
|
|
91768
|
+
}
|
|
91769
|
+
});
|
|
91770
|
+
const textKnob = (id$2, label$1, maxLength) => ({
|
|
91771
|
+
blockKind: "block.hero",
|
|
91772
|
+
id: id$2,
|
|
91773
|
+
label: label$1,
|
|
91774
|
+
values: [],
|
|
91775
|
+
defaultValue: "",
|
|
91776
|
+
knob: {
|
|
91777
|
+
kind: "text",
|
|
91778
|
+
maxLength
|
|
91779
|
+
},
|
|
91780
|
+
target: {
|
|
91781
|
+
kind: "content-field",
|
|
91782
|
+
field: id$2
|
|
91783
|
+
}
|
|
91784
|
+
});
|
|
91785
|
+
const onOff = [{
|
|
91786
|
+
value: "true",
|
|
91787
|
+
label: "On"
|
|
91788
|
+
}, {
|
|
91789
|
+
value: "false",
|
|
91790
|
+
label: "Off"
|
|
91791
|
+
}];
|
|
91792
|
+
const columnCounts = [
|
|
91793
|
+
{
|
|
91794
|
+
value: "2",
|
|
91795
|
+
label: "2"
|
|
91796
|
+
},
|
|
91797
|
+
{
|
|
91798
|
+
value: "3",
|
|
91799
|
+
label: "3"
|
|
91800
|
+
},
|
|
91801
|
+
{
|
|
91802
|
+
value: "4",
|
|
91803
|
+
label: "4"
|
|
91804
|
+
}
|
|
91805
|
+
];
|
|
91806
|
+
const systemCustomizeFacetDefinitions = [
|
|
91807
|
+
eventCalendarListLayoutFacet,
|
|
91808
|
+
fixedKnob("block.offerings-preview", "grouping", "Grouping", [{
|
|
91809
|
+
value: "by-kind",
|
|
91810
|
+
label: "Grouped by kind"
|
|
91811
|
+
}, {
|
|
91812
|
+
value: "one-list",
|
|
91813
|
+
label: "One list"
|
|
91814
|
+
}], "by-kind"),
|
|
91815
|
+
fixedKnob("block.offerings-preview", "dates", "Dates", [{
|
|
91816
|
+
value: "summary",
|
|
91817
|
+
label: "Summary"
|
|
91818
|
+
}, {
|
|
91819
|
+
value: "next-dates",
|
|
91820
|
+
label: "Next dates"
|
|
91821
|
+
}], "summary"),
|
|
91822
|
+
{
|
|
91823
|
+
...fixedKnob("block.feature-cards", "actionStyle", "Item actions", [{
|
|
91824
|
+
value: "button",
|
|
91825
|
+
label: "Button"
|
|
91826
|
+
}, {
|
|
91827
|
+
value: "link",
|
|
91828
|
+
label: "Link"
|
|
91829
|
+
}], "button"),
|
|
91830
|
+
blockKinds: cardListKnobBlocks
|
|
91831
|
+
},
|
|
91832
|
+
fixedKnob("block.testimonials", "quoteCount", "How many quotes", [
|
|
91833
|
+
{
|
|
91834
|
+
value: "1",
|
|
91835
|
+
label: "1"
|
|
91836
|
+
},
|
|
91837
|
+
{
|
|
91838
|
+
value: "2",
|
|
91839
|
+
label: "2"
|
|
91840
|
+
},
|
|
91841
|
+
{
|
|
91842
|
+
value: "3",
|
|
91843
|
+
label: "3"
|
|
91844
|
+
},
|
|
91845
|
+
{
|
|
91846
|
+
value: "all",
|
|
91847
|
+
label: "All"
|
|
91848
|
+
}
|
|
91849
|
+
], "3", true),
|
|
91850
|
+
{
|
|
91851
|
+
...fixedKnob("block.testimonials", "autoAdvance", "Moves on by itself", onOff, "false", false, true),
|
|
91852
|
+
description: "Moves to the next quote every few seconds, and stops while someone's reading."
|
|
91853
|
+
},
|
|
91854
|
+
fixedKnob("block.testimonials", "tilt", "Tilt the small cards", onOff, "true", false, true),
|
|
91855
|
+
{
|
|
91856
|
+
...fixedKnob("block.testimonials", "archFrame", "Arch frame", onOff, "true", false, true),
|
|
91857
|
+
blockKinds: [
|
|
91858
|
+
"block.testimonials",
|
|
91859
|
+
"block.newsletter-signup",
|
|
91860
|
+
"block.form"
|
|
91861
|
+
]
|
|
91862
|
+
},
|
|
91863
|
+
fixedKnob("block.hero", "photoTint", "Photo tint", [{
|
|
91864
|
+
value: "dark",
|
|
91865
|
+
label: "Dark"
|
|
91866
|
+
}, {
|
|
91867
|
+
value: "brand",
|
|
91868
|
+
label: "Brand colour"
|
|
91869
|
+
}], "dark"),
|
|
91870
|
+
fixedKnob("block.hero", "candleGlow", "Candle glow", onOff, "true", false, true),
|
|
91871
|
+
fixedKnob("block.hero", "columnGuides", "Column guides", onOff, "true", false, true),
|
|
91872
|
+
fixedKnob("block.hero", "titleSize", "Headline size", heroTitleSizeOptions, "auto", true),
|
|
91873
|
+
fixedKnob("block.hero", "imagePosition", "Photo side", [{
|
|
91874
|
+
value: "left",
|
|
91875
|
+
label: "Left"
|
|
91876
|
+
}, {
|
|
91877
|
+
value: "right",
|
|
91878
|
+
label: "Right"
|
|
91879
|
+
}], "right"),
|
|
91880
|
+
fixedKnob("block.intro", "imageShape", "Media shape", standardImageShapeOptions, "default"),
|
|
91881
|
+
fixedKnob("block.intro", "imagePosition", "Photo side", [{
|
|
91882
|
+
value: "left",
|
|
91883
|
+
label: "Left"
|
|
91884
|
+
}, {
|
|
91885
|
+
value: "right",
|
|
91886
|
+
label: "Right"
|
|
91887
|
+
}], "left"),
|
|
91888
|
+
fixedKnob("block.media-text", "imagePosition", "Photo side", [{
|
|
91889
|
+
value: "left",
|
|
91890
|
+
label: "Left"
|
|
91891
|
+
}, {
|
|
91892
|
+
value: "right",
|
|
91893
|
+
label: "Right"
|
|
91894
|
+
}], "left"),
|
|
91895
|
+
fixedKnob("block.media-text", "imageShape", "Media shape", standardImageShapeOptions, "default"),
|
|
91896
|
+
fixedKnob("block.media-text", "aspectRatio", "Media aspect ratio", standardAspectRatioOptions, "auto"),
|
|
91897
|
+
textKnob("stickerLine", "Sticker line", 32),
|
|
91898
|
+
textKnob("smallCaption", "Small caption", 24),
|
|
91899
|
+
{
|
|
91900
|
+
...fixedKnob("block.feature-cards", "showPhotos", "Show photos", onOff, "true", false, true),
|
|
91901
|
+
blockKinds: cardListFamilyBlocks
|
|
91902
|
+
},
|
|
91903
|
+
fixedKnob("block.feature-cards", "columns", "Columns", columnCounts, "3", true),
|
|
91904
|
+
fixedKnob("block.image-gallery", "blackAndWhite", "Black and white", onOff, "false", false, true),
|
|
91905
|
+
fixedKnob("block.event-calendar", "listColumns", "Columns", columnCounts, "3", true),
|
|
91906
|
+
fixedKnob("block.event-calendar", "showPhotos", "Photos", [{
|
|
91907
|
+
value: "true",
|
|
91908
|
+
label: "Show"
|
|
91909
|
+
}, {
|
|
91910
|
+
value: "false",
|
|
91911
|
+
label: "Hide"
|
|
91912
|
+
}], "true", false, true),
|
|
91913
|
+
{
|
|
91914
|
+
...fixedKnob("block.feature-cards", "cardMarker", "Item markers", [
|
|
91915
|
+
{
|
|
91916
|
+
value: "icons",
|
|
91917
|
+
label: "Icons"
|
|
91918
|
+
},
|
|
91919
|
+
{
|
|
91920
|
+
value: "numbers",
|
|
91921
|
+
label: "Numbers"
|
|
91922
|
+
},
|
|
91923
|
+
{
|
|
91924
|
+
value: "none",
|
|
91925
|
+
label: "None"
|
|
91926
|
+
}
|
|
91927
|
+
], "icons"),
|
|
91928
|
+
blockKinds: cardListFamilyBlocks
|
|
91929
|
+
},
|
|
91930
|
+
fixedKnob("block.body-text", "alignment", "Text alignment", [{
|
|
91931
|
+
value: "left",
|
|
91932
|
+
label: "Left"
|
|
91933
|
+
}, {
|
|
91934
|
+
value: "center",
|
|
91935
|
+
label: "Centre"
|
|
91936
|
+
}], "left"),
|
|
91937
|
+
{
|
|
91938
|
+
...fixedKnob("block.event-calendar", "showCapacity", "Places left", onOff, "true", false, true),
|
|
91939
|
+
description: "Show how many places are left on each event"
|
|
91940
|
+
}
|
|
91941
|
+
];
|
|
91942
|
+
const facetRegistryCoversVocabulary = true;
|
|
91943
|
+
void facetRegistryCoversVocabulary;
|
|
91944
|
+
const systemCustomizeFacetIds = systemCustomizeFacetDefinitions.map((definition$1) => definition$1.id);
|
|
91945
|
+
const systemCustomizeFacetValues = Array.from(new Set(systemCustomizeFacetDefinitions.flatMap((definition$1) => definition$1.values.map((option) => option.value))));
|
|
91946
|
+
function isSystemCustomizeFacetId(value) {
|
|
91947
|
+
return typeof value === "string" && systemCustomizeFacetDefinitions.some((definition$1) => definition$1.id === value);
|
|
91948
|
+
}
|
|
91949
|
+
function parseSystemCustomizeFacetSelection(facetId, value) {
|
|
91950
|
+
if (!isSystemCustomizeFacetId(facetId)) {
|
|
91951
|
+
return {
|
|
91952
|
+
success: false,
|
|
91953
|
+
error: {
|
|
91954
|
+
kind: "unknown-facet",
|
|
91955
|
+
facetId
|
|
91956
|
+
}
|
|
91957
|
+
};
|
|
91958
|
+
}
|
|
91959
|
+
const definition$1 = systemCustomizeFacetDefinitionForId(facetId);
|
|
91960
|
+
if (!isSystemCustomizeFacetStoredValue(definition$1, value)) {
|
|
91961
|
+
return {
|
|
91962
|
+
success: false,
|
|
91963
|
+
error: {
|
|
91964
|
+
kind: "invalid-value",
|
|
91965
|
+
facetId,
|
|
91966
|
+
value,
|
|
91967
|
+
definition: definition$1
|
|
91968
|
+
}
|
|
91969
|
+
};
|
|
91970
|
+
}
|
|
91971
|
+
return {
|
|
91972
|
+
success: true,
|
|
91973
|
+
data: {
|
|
91974
|
+
facetId,
|
|
91975
|
+
value
|
|
91976
|
+
},
|
|
91977
|
+
definition: definition$1
|
|
91978
|
+
};
|
|
91979
|
+
}
|
|
91980
|
+
function systemCustomizeFacetDefinitionForId(facetId) {
|
|
91981
|
+
const definition$1 = systemCustomizeFacetDefinitions.find((candidate$1) => candidate$1.id === facetId);
|
|
91982
|
+
if (!definition$1) {
|
|
91983
|
+
throw new Error(`Unknown system customize facet: ${facetId}`);
|
|
91984
|
+
}
|
|
91985
|
+
return definition$1;
|
|
91986
|
+
}
|
|
91987
|
+
function systemCustomizeFacetDefinitionForBlock(blockKind, facetId) {
|
|
91988
|
+
return systemCustomizeFacetDefinitions.find((definition$1) => definition$1.id === facetId && (definition$1.blockKind === blockKind || "blockKinds" in definition$1 && definition$1.blockKinds?.some((kind) => kind === blockKind))) ?? null;
|
|
91989
|
+
}
|
|
91990
|
+
function systemCustomizeFacetDefinitionsForBlock(blockKind) {
|
|
91991
|
+
return systemCustomizeFacetDefinitions.filter((definition$1) => definition$1.blockKind === blockKind || "blockKinds" in definition$1 && definition$1.blockKinds?.some((kind) => kind === blockKind));
|
|
91992
|
+
}
|
|
91993
|
+
function isSystemCustomizeFacetValue(definition$1, value) {
|
|
91994
|
+
return typeof value === "string" && (definition$1.knob?.kind === "text" ? value.length <= definition$1.knob.maxLength : definition$1.values.some((option) => option.value === value));
|
|
91995
|
+
}
|
|
91996
|
+
/** Only a knob's own content field can be unset; other facets always hold a value. */
|
|
91997
|
+
function isSystemCustomizeFacetStoredValue(definition$1, value) {
|
|
91998
|
+
return value === null ? definition$1.knob !== undefined && definition$1.target.kind === "content-field" : isSystemCustomizeFacetValue(definition$1, value);
|
|
91999
|
+
}
|
|
92000
|
+
/** The value as stored, or null when a knob's field was never set. */
|
|
92001
|
+
function systemCustomizeFacetStoredValue(definition$1, content) {
|
|
92002
|
+
const unset = definition$1.knob !== undefined && definition$1.target.kind === "content-field" && content[definition$1.target.field] === undefined;
|
|
92003
|
+
return unset ? null : systemCustomizeFacetCurrentValue(definition$1, content);
|
|
92004
|
+
}
|
|
92005
|
+
function systemCustomizeFacetLabelForValue(definition$1, value) {
|
|
92006
|
+
return definition$1.values.find((option) => option.value === value)?.label ?? value;
|
|
92007
|
+
}
|
|
92008
|
+
function systemCustomizeFacetAppliesToLayoutVariant(definition$1, layoutVariantKey, lookKind = "legacy") {
|
|
92009
|
+
if (definition$1.legacyOnly && lookKind !== "legacy") return false;
|
|
92010
|
+
if (definition$1.knob && lookKind === "legacy") return false;
|
|
92011
|
+
if (!definition$1.appliesToLayoutVariants) return true;
|
|
92012
|
+
return typeof layoutVariantKey === "string" && definition$1.appliesToLayoutVariants.includes(layoutVariantKey);
|
|
92013
|
+
}
|
|
92014
|
+
function systemCustomizeFacetCurrentValue(definition$1, content) {
|
|
92015
|
+
switch (definition$1.target.kind) {
|
|
92016
|
+
case "content-field": {
|
|
92017
|
+
const stored = content[definition$1.target.field];
|
|
92018
|
+
const value = typeof stored === "boolean" ? String(stored) : stored;
|
|
92019
|
+
return isSystemCustomizeFacetValue(definition$1, value) ? value : definition$1.defaultValue;
|
|
92020
|
+
}
|
|
92021
|
+
case "event-calendar-list-layout-content": {
|
|
92022
|
+
if (isSystemCustomizeFacetValue(definition$1, content.listLayout)) {
|
|
92023
|
+
return content.listLayout;
|
|
92024
|
+
}
|
|
92025
|
+
if (isSystemCustomizeFacetValue(definition$1, content.layout)) {
|
|
92026
|
+
return content.layout;
|
|
92027
|
+
}
|
|
92028
|
+
return definition$1.defaultValue;
|
|
92029
|
+
}
|
|
92030
|
+
}
|
|
92031
|
+
}
|
|
92032
|
+
function systemCustomizeFacetNextValue(definition$1, currentValue, direction) {
|
|
92033
|
+
const values = definition$1.values.map((option) => option.value);
|
|
92034
|
+
const currentIndex = values.indexOf(currentValue);
|
|
92035
|
+
if (currentIndex === -1) return null;
|
|
92036
|
+
const nextIndex = direction === "next" ? (currentIndex + 1) % values.length : currentIndex === 0 ? values.length - 1 : currentIndex - 1;
|
|
92037
|
+
return values[nextIndex] ?? null;
|
|
92038
|
+
}
|
|
92039
|
+
function systemCustomizeFacetApplyContentPatch(definition$1, content, value) {
|
|
92040
|
+
if (!isSystemCustomizeFacetStoredValue(definition$1, value)) throw new Error(`Invalid value for facet ${definition$1.id}`);
|
|
92041
|
+
switch (definition$1.target.kind) {
|
|
92042
|
+
case "content-field":
|
|
92043
|
+
if (value === null) return omitRecordKey(content, definition$1.target.field);
|
|
92044
|
+
return {
|
|
92045
|
+
...content,
|
|
92046
|
+
[definition$1.target.field]: definition$1.target.boolean ? value === "true" : value
|
|
92047
|
+
};
|
|
92048
|
+
case "event-calendar-list-layout-content": {
|
|
92049
|
+
return {
|
|
92050
|
+
...omitRecordKey(content, "layout"),
|
|
92051
|
+
listLayout: value ?? definition$1.defaultValue
|
|
92052
|
+
};
|
|
92053
|
+
}
|
|
92054
|
+
}
|
|
92055
|
+
}
|
|
92056
|
+
function systemCustomizeFacetRollbackContentPatch(definition$1, currentContent, previousContent) {
|
|
92057
|
+
switch (definition$1.target.kind) {
|
|
92058
|
+
case "content-field": return restoreRecordKey(currentContent, previousContent, definition$1.target.field);
|
|
92059
|
+
case "event-calendar-list-layout-content": {
|
|
92060
|
+
return restoreRecordKey(restoreRecordKey(currentContent, previousContent, "listLayout"), previousContent, "layout");
|
|
92061
|
+
}
|
|
92062
|
+
}
|
|
92063
|
+
}
|
|
92064
|
+
function restoreRecordKey(content, previousContent, key) {
|
|
92065
|
+
if (Object.prototype.hasOwnProperty.call(previousContent, key)) {
|
|
92066
|
+
return {
|
|
92067
|
+
...content,
|
|
92068
|
+
[key]: previousContent[key]
|
|
92069
|
+
};
|
|
92070
|
+
}
|
|
92071
|
+
return omitRecordKey(content, key);
|
|
92072
|
+
}
|
|
92073
|
+
function omitRecordKey(content, key) {
|
|
92074
|
+
return Object.fromEntries(Object.entries(content).filter(([entryKey]) => entryKey !== key));
|
|
92075
|
+
}
|
|
92076
|
+
|
|
92077
|
+
//#endregion
|
|
92078
|
+
//#region ../blocks/src/system/customize/arrangementKnobs.ts
|
|
92079
|
+
/**
|
|
92080
|
+
* Content stage for knobs, shared by the renderer and the editor so what the
|
|
92081
|
+
* options show and what renders can't disagree. Knob buffets are the block's
|
|
92082
|
+
* customise facets; the Look exposes, forces or narrows them and the style's
|
|
92083
|
+
* offer can only remove or narrow further.
|
|
92084
|
+
*/
|
|
92085
|
+
function resolveArrangementKnobs(input) {
|
|
92086
|
+
const length = input.blockKind === "block.hero" ? resolveHeroTitleLength({ ...input.content }, "look") : null;
|
|
92087
|
+
const exposure = arrangementKnobExposure(input.blockKind, input.look, length, storedSplitPhotoSide(input.blockKind, input.content));
|
|
92088
|
+
const knobs = resolveEffectiveKnobs({
|
|
92089
|
+
exposure,
|
|
92090
|
+
content: normalizedHeadlinePreference(input.content)
|
|
92091
|
+
});
|
|
92092
|
+
return {
|
|
92093
|
+
length,
|
|
92094
|
+
exposure,
|
|
92095
|
+
knobs
|
|
92096
|
+
};
|
|
92097
|
+
}
|
|
92098
|
+
/** The values an owner can choose for an exposed knob, before any length cap. */
|
|
92099
|
+
function arrangementKnobChoices(exposure) {
|
|
92100
|
+
return exposure.definition.values.filter((value) => (exposure.lookValues?.includes(value) ?? true) && (exposure.styleValues?.includes(value) ?? true));
|
|
92101
|
+
}
|
|
92102
|
+
function arrangementKnobExposure(blockKind, look$1, length, splitPhotoSide) {
|
|
92103
|
+
return systemCustomizeFacetDefinitionsForBlock(blockKind).flatMap((facet) => {
|
|
92104
|
+
if (facet.knob === undefined || facet.target.kind !== "content-field") return [];
|
|
92105
|
+
const id$2 = facet.target.field;
|
|
92106
|
+
const defaults = look$1.look.structure.knobDefaults ?? {};
|
|
92107
|
+
const storedDefault = id$2 === "imagePosition" ? splitPhotoSide : null;
|
|
92108
|
+
return [{
|
|
92109
|
+
definition: {
|
|
92110
|
+
id: id$2,
|
|
92111
|
+
defaultValue: defaults[id$2] ?? storedDefault ?? facet.defaultValue,
|
|
92112
|
+
values: facet.values.map((value) => value.value),
|
|
92113
|
+
...knobKindMetadata(facet.knob)
|
|
92114
|
+
},
|
|
92115
|
+
exposed: exposedKnobIds(look$1).includes(id$2),
|
|
92116
|
+
forced: look$1.look.structure.forcedKnobs?.[id$2],
|
|
92117
|
+
lookValues: look$1.look.structure.knobValues?.[id$2],
|
|
92118
|
+
styleValues: look$1.knobValues[id$2],
|
|
92119
|
+
lengthValues: id$2 === "titleSize" ? headlineAllowedValues(length) : undefined
|
|
92120
|
+
}];
|
|
92121
|
+
});
|
|
92122
|
+
}
|
|
92123
|
+
/**
|
|
92124
|
+
* A hero stored as "Split, photo on the left" or "Split, photo on the right"
|
|
92125
|
+
* already says which side its photo is on. Under a Look that side is the Photo
|
|
92126
|
+
* side default, so the photo stays where it was until the owner picks a side.
|
|
92127
|
+
*/
|
|
92128
|
+
function storedSplitPhotoSide(blockKind, content) {
|
|
92129
|
+
if (blockKind !== "block.hero") return null;
|
|
92130
|
+
switch (content.variant) {
|
|
92131
|
+
case "split": return "left";
|
|
92132
|
+
case "splitReverse": return "right";
|
|
92133
|
+
default: return null;
|
|
92134
|
+
}
|
|
92135
|
+
}
|
|
92136
|
+
function knobKindMetadata(knob) {
|
|
92137
|
+
return knob.kind === "fixed" ? { ordered: knob.ordered } : {
|
|
92138
|
+
ordered: false,
|
|
92139
|
+
textMaxLength: knob.maxLength
|
|
92140
|
+
};
|
|
92141
|
+
}
|
|
92142
|
+
function headlineAllowedValues(length) {
|
|
92143
|
+
switch (length) {
|
|
92144
|
+
case "long": return ["quiet"];
|
|
92145
|
+
case "medium": return ["quiet", "auto"];
|
|
92146
|
+
case "short": return [
|
|
92147
|
+
"quiet",
|
|
92148
|
+
"auto",
|
|
92149
|
+
"display"
|
|
92150
|
+
];
|
|
92151
|
+
case null: return undefined;
|
|
92152
|
+
}
|
|
92153
|
+
}
|
|
92154
|
+
/** `titleSize` keeps its five stored values; under a Look they read as three steps. */
|
|
92155
|
+
function normalizedHeadlinePreference(content) {
|
|
92156
|
+
switch (content.titleSize) {
|
|
92157
|
+
case "editorial": return {
|
|
92158
|
+
...content,
|
|
92159
|
+
titleSize: "auto"
|
|
92160
|
+
};
|
|
92161
|
+
case "poster": return {
|
|
92162
|
+
...content,
|
|
92163
|
+
titleSize: "display"
|
|
92164
|
+
};
|
|
92165
|
+
default: return content;
|
|
92166
|
+
}
|
|
92167
|
+
}
|
|
92168
|
+
function exposedKnobIds(look$1) {
|
|
92169
|
+
return [...look$1.look.structure.knobs, ...look$1.addKnobs ?? []].filter((id$2) => !look$1.removeKnobs.some((removed) => removed === id$2));
|
|
92170
|
+
}
|
|
92171
|
+
|
|
91536
92172
|
//#endregion
|
|
91537
92173
|
//#region ../blocks/src/system/media/slotContracts.ts
|
|
91538
92174
|
const DEFAULT_MIN_SOURCE_WIDTH = 1200;
|
|
@@ -92017,19 +92653,53 @@ function resolveStrategyDelivery(blockKind, fieldPath, slotPath, values) {
|
|
|
92017
92653
|
}
|
|
92018
92654
|
return undefined;
|
|
92019
92655
|
}
|
|
92020
|
-
|
|
92021
|
-
|
|
92022
|
-
|
|
92023
|
-
|
|
92656
|
+
function isLookPhotoSlot(blockKind, path$3) {
|
|
92657
|
+
switch (blockKind) {
|
|
92658
|
+
case "block.image-gallery":
|
|
92659
|
+
case "block.media-text": return /^images\.\d+\.image$/.test(path$3);
|
|
92660
|
+
case "block.intro": return path$3 === "media";
|
|
92661
|
+
default: return false;
|
|
92662
|
+
}
|
|
92663
|
+
}
|
|
92664
|
+
/** Resolve live editor preferences through the same knob owner as the page planner. */
|
|
92665
|
+
function mediaKnobValues(blockKind, mediaLook, values) {
|
|
92666
|
+
const { knobs } = resolveArrangementKnobs({
|
|
92667
|
+
blockKind,
|
|
92668
|
+
look: mediaLook,
|
|
92669
|
+
content: values
|
|
92670
|
+
});
|
|
92671
|
+
return Object.fromEntries(Object.entries(knobs).flatMap(([key, knob]) => knob.kind === "kept" ? [] : [[key, knob.value]]));
|
|
92672
|
+
}
|
|
92673
|
+
/** Delivery receives content whose knob choices have already been resolved by the page planner. */
|
|
92674
|
+
function renderedLookMediaFrame(values) {
|
|
92675
|
+
const effective = asRecord(values._effectiveLook);
|
|
92024
92676
|
const look$1 = blockAppearancePresets.find((candidate$1) => candidate$1.id === effectiveLookId(values));
|
|
92025
|
-
|
|
92026
|
-
return
|
|
92677
|
+
if (look$1?.structure.kind !== "arrangement") return undefined;
|
|
92678
|
+
return resolveLookMediaFrame(look$1.structure.mediaFrame, asString(effective?.skin), {
|
|
92679
|
+
...values,
|
|
92680
|
+
...look$1.structure.forcedKnobs
|
|
92681
|
+
});
|
|
92682
|
+
}
|
|
92683
|
+
function editorLookMediaFrame(blockKind, mediaLook, values) {
|
|
92684
|
+
return resolveLookMediaFrame(mediaLook.look.structure.mediaFrame, mediaLook.skin, mediaKnobValues(blockKind, mediaLook, values));
|
|
92027
92685
|
}
|
|
92028
|
-
/**
|
|
92029
|
-
function
|
|
92686
|
+
/** Backgrounds and other photos keep their own contract. */
|
|
92687
|
+
function slotLookMediaFrame(blockKind, path$3, input) {
|
|
92688
|
+
if (!blockKind || !isLookPhotoSlot(blockKind, path$3)) return undefined;
|
|
92689
|
+
if (input.lookMediaFrame) return input.lookMediaFrame;
|
|
92690
|
+
const values = input.values ?? {};
|
|
92691
|
+
return input.mediaLook ? editorLookMediaFrame(blockKind, input.mediaLook, values) : renderedLookMediaFrame(values);
|
|
92692
|
+
}
|
|
92693
|
+
/** The contract and its decided frame, shared by editor presentation and delivery. */
|
|
92694
|
+
function resolveMediaSlot({ blockKind, fieldPath, values, fieldAspectRatio, fieldUi, lookMediaFrame, mediaLook }) {
|
|
92030
92695
|
const slotPath = normalizeSlotPath(fieldPath);
|
|
92031
92696
|
const variant = asString(values?.variant);
|
|
92032
|
-
const
|
|
92697
|
+
const declared = slotLookMediaFrame(blockKind, fieldPath, {
|
|
92698
|
+
lookMediaFrame,
|
|
92699
|
+
mediaLook,
|
|
92700
|
+
values
|
|
92701
|
+
});
|
|
92702
|
+
const frame = declared?.kind === "fixed" ? declared : undefined;
|
|
92033
92703
|
const edit = frame ? {
|
|
92034
92704
|
mode: "fixed-aspect",
|
|
92035
92705
|
aspectRatio: frame.aspectRatio,
|
|
@@ -92042,7 +92712,7 @@ function resolveMediaSlot({ blockKind, fieldPath, values, fieldAspectRatio, fiel
|
|
|
92042
92712
|
const merged = mergeDelivery(mergedField, strategyDelivery);
|
|
92043
92713
|
return {
|
|
92044
92714
|
contract: buildContract(edit, merged),
|
|
92045
|
-
|
|
92715
|
+
mediaFrame: frame
|
|
92046
92716
|
};
|
|
92047
92717
|
}
|
|
92048
92718
|
function resolveMediaSlotContract(input) {
|
|
@@ -92341,7 +93011,7 @@ function resolveMediaNodeAspectRatios(size, style, slotContract) {
|
|
|
92341
93011
|
const slotAspect = slotContract?.edit.mode === "fixed-aspect" ? slotContract.edit.aspectRatio : undefined;
|
|
92342
93012
|
return {
|
|
92343
93013
|
targetAspectRatio: parseAspectRatioValue(slotAspect),
|
|
92344
|
-
transformAspectRatio: resolveStyleAspectRatio(style) ??
|
|
93014
|
+
transformAspectRatio: slotAspect ?? resolveStyleAspectRatio(style) ?? resolveTargetAspectRatio(size)
|
|
92345
93015
|
};
|
|
92346
93016
|
}
|
|
92347
93017
|
function resolveMediaNodeResponsiveImage(value, size, style, slot, context) {
|
|
@@ -104434,442 +105104,6 @@ function clearBlockDefinitions() {
|
|
|
104434
105104
|
resetSystemBlockDefinitionRegistration();
|
|
104435
105105
|
}
|
|
104436
105106
|
|
|
104437
|
-
//#endregion
|
|
104438
|
-
//#region ../blocks/src/system/customize/arrangementKnobs.ts
|
|
104439
|
-
/**
|
|
104440
|
-
* Content stage for knobs, shared by the renderer and the editor so what the
|
|
104441
|
-
* options show and what renders can't disagree. Knob buffets are the block's
|
|
104442
|
-
* customise facets; the Look exposes, forces or narrows them and the style's
|
|
104443
|
-
* offer can only remove or narrow further.
|
|
104444
|
-
*/
|
|
104445
|
-
function resolveArrangementKnobs(input) {
|
|
104446
|
-
const length = input.blockKind === "block.hero" ? resolveHeroTitleLength({ ...input.content }, "look") : null;
|
|
104447
|
-
const exposure = arrangementKnobExposure(input.blockKind, input.look, length, storedSplitPhotoSide(input.blockKind, input.content));
|
|
104448
|
-
const knobs = resolveEffectiveKnobs({
|
|
104449
|
-
exposure,
|
|
104450
|
-
content: normalizedHeadlinePreference(input.content)
|
|
104451
|
-
});
|
|
104452
|
-
return {
|
|
104453
|
-
length,
|
|
104454
|
-
exposure,
|
|
104455
|
-
knobs
|
|
104456
|
-
};
|
|
104457
|
-
}
|
|
104458
|
-
/** The values an owner can choose for an exposed knob, before any length cap. */
|
|
104459
|
-
function arrangementKnobChoices(exposure) {
|
|
104460
|
-
return exposure.definition.values.filter((value) => (exposure.lookValues?.includes(value) ?? true) && (exposure.styleValues?.includes(value) ?? true));
|
|
104461
|
-
}
|
|
104462
|
-
function arrangementKnobExposure(blockKind, look$1, length, splitPhotoSide) {
|
|
104463
|
-
return systemCustomizeFacetDefinitionsForBlock(blockKind).flatMap((facet) => {
|
|
104464
|
-
if (facet.knob === undefined || facet.target.kind !== "content-field") return [];
|
|
104465
|
-
const id$2 = facet.target.field;
|
|
104466
|
-
const defaults = look$1.look.structure.knobDefaults ?? {};
|
|
104467
|
-
const storedDefault = id$2 === "imagePosition" ? splitPhotoSide : null;
|
|
104468
|
-
return [{
|
|
104469
|
-
definition: {
|
|
104470
|
-
id: id$2,
|
|
104471
|
-
defaultValue: defaults[id$2] ?? storedDefault ?? facet.defaultValue,
|
|
104472
|
-
values: facet.values.map((value) => value.value),
|
|
104473
|
-
...knobKindMetadata(facet.knob)
|
|
104474
|
-
},
|
|
104475
|
-
exposed: exposedKnobIds(look$1).includes(id$2),
|
|
104476
|
-
forced: look$1.look.structure.forcedKnobs?.[id$2],
|
|
104477
|
-
lookValues: look$1.look.structure.knobValues?.[id$2],
|
|
104478
|
-
styleValues: look$1.knobValues[id$2],
|
|
104479
|
-
lengthValues: id$2 === "titleSize" ? headlineAllowedValues(length) : undefined
|
|
104480
|
-
}];
|
|
104481
|
-
});
|
|
104482
|
-
}
|
|
104483
|
-
/**
|
|
104484
|
-
* A hero stored as "Split, photo on the left" or "Split, photo on the right"
|
|
104485
|
-
* already says which side its photo is on. Under a Look that side is the Photo
|
|
104486
|
-
* side default, so the photo stays where it was until the owner picks a side.
|
|
104487
|
-
*/
|
|
104488
|
-
function storedSplitPhotoSide(blockKind, content) {
|
|
104489
|
-
if (blockKind !== "block.hero") return null;
|
|
104490
|
-
switch (content.variant) {
|
|
104491
|
-
case "split": return "left";
|
|
104492
|
-
case "splitReverse": return "right";
|
|
104493
|
-
default: return null;
|
|
104494
|
-
}
|
|
104495
|
-
}
|
|
104496
|
-
function knobKindMetadata(knob) {
|
|
104497
|
-
return knob.kind === "fixed" ? { ordered: knob.ordered } : {
|
|
104498
|
-
ordered: false,
|
|
104499
|
-
textMaxLength: knob.maxLength
|
|
104500
|
-
};
|
|
104501
|
-
}
|
|
104502
|
-
function headlineAllowedValues(length) {
|
|
104503
|
-
switch (length) {
|
|
104504
|
-
case "long": return ["quiet"];
|
|
104505
|
-
case "medium": return ["quiet", "auto"];
|
|
104506
|
-
case "short": return [
|
|
104507
|
-
"quiet",
|
|
104508
|
-
"auto",
|
|
104509
|
-
"display"
|
|
104510
|
-
];
|
|
104511
|
-
case null: return undefined;
|
|
104512
|
-
}
|
|
104513
|
-
}
|
|
104514
|
-
/** `titleSize` keeps its five stored values; under a Look they read as three steps. */
|
|
104515
|
-
function normalizedHeadlinePreference(content) {
|
|
104516
|
-
switch (content.titleSize) {
|
|
104517
|
-
case "editorial": return {
|
|
104518
|
-
...content,
|
|
104519
|
-
titleSize: "auto"
|
|
104520
|
-
};
|
|
104521
|
-
case "poster": return {
|
|
104522
|
-
...content,
|
|
104523
|
-
titleSize: "display"
|
|
104524
|
-
};
|
|
104525
|
-
default: return content;
|
|
104526
|
-
}
|
|
104527
|
-
}
|
|
104528
|
-
function exposedKnobIds(look$1) {
|
|
104529
|
-
return [...look$1.look.structure.knobs, ...look$1.addKnobs ?? []].filter((id$2) => !look$1.removeKnobs.some((removed) => removed === id$2));
|
|
104530
|
-
}
|
|
104531
|
-
|
|
104532
|
-
//#endregion
|
|
104533
|
-
//#region ../blocks/src/system/customize/facets.ts
|
|
104534
|
-
function defineCustomizeFacet(definition$1) {
|
|
104535
|
-
return definition$1;
|
|
104536
|
-
}
|
|
104537
|
-
const eventCalendarListLayoutFacet = defineCustomizeFacet({
|
|
104538
|
-
blockKind: "block.event-calendar",
|
|
104539
|
-
id: "eventCalendar.listLayout",
|
|
104540
|
-
label: "List style",
|
|
104541
|
-
legacyOnly: true,
|
|
104542
|
-
values: eventCalendarListLayoutOptions.map((option) => ({
|
|
104543
|
-
value: option.id,
|
|
104544
|
-
label: option.label
|
|
104545
|
-
})),
|
|
104546
|
-
defaultValue: "stack",
|
|
104547
|
-
target: { kind: "event-calendar-list-layout-content" },
|
|
104548
|
-
appliesToLayoutVariants: eventCalendarListLayoutCompatibleDisplayModeValues
|
|
104549
|
-
});
|
|
104550
|
-
const fixedKnob = (blockKind, id$2, label$1, values, defaultValue, ordered = false, boolean = false) => ({
|
|
104551
|
-
blockKind,
|
|
104552
|
-
id: id$2,
|
|
104553
|
-
label: label$1,
|
|
104554
|
-
values,
|
|
104555
|
-
defaultValue,
|
|
104556
|
-
knob: {
|
|
104557
|
-
kind: "fixed",
|
|
104558
|
-
ordered
|
|
104559
|
-
},
|
|
104560
|
-
target: {
|
|
104561
|
-
kind: "content-field",
|
|
104562
|
-
field: id$2,
|
|
104563
|
-
...boolean ? { boolean: true } : {}
|
|
104564
|
-
}
|
|
104565
|
-
});
|
|
104566
|
-
const textKnob = (id$2, label$1, maxLength) => ({
|
|
104567
|
-
blockKind: "block.hero",
|
|
104568
|
-
id: id$2,
|
|
104569
|
-
label: label$1,
|
|
104570
|
-
values: [],
|
|
104571
|
-
defaultValue: "",
|
|
104572
|
-
knob: {
|
|
104573
|
-
kind: "text",
|
|
104574
|
-
maxLength
|
|
104575
|
-
},
|
|
104576
|
-
target: {
|
|
104577
|
-
kind: "content-field",
|
|
104578
|
-
field: id$2
|
|
104579
|
-
}
|
|
104580
|
-
});
|
|
104581
|
-
const onOff = [{
|
|
104582
|
-
value: "true",
|
|
104583
|
-
label: "On"
|
|
104584
|
-
}, {
|
|
104585
|
-
value: "false",
|
|
104586
|
-
label: "Off"
|
|
104587
|
-
}];
|
|
104588
|
-
const columnCounts = [
|
|
104589
|
-
{
|
|
104590
|
-
value: "2",
|
|
104591
|
-
label: "2"
|
|
104592
|
-
},
|
|
104593
|
-
{
|
|
104594
|
-
value: "3",
|
|
104595
|
-
label: "3"
|
|
104596
|
-
},
|
|
104597
|
-
{
|
|
104598
|
-
value: "4",
|
|
104599
|
-
label: "4"
|
|
104600
|
-
}
|
|
104601
|
-
];
|
|
104602
|
-
const systemCustomizeFacetDefinitions = [
|
|
104603
|
-
eventCalendarListLayoutFacet,
|
|
104604
|
-
fixedKnob("block.offerings-preview", "grouping", "Grouping", [{
|
|
104605
|
-
value: "by-kind",
|
|
104606
|
-
label: "Grouped by kind"
|
|
104607
|
-
}, {
|
|
104608
|
-
value: "one-list",
|
|
104609
|
-
label: "One list"
|
|
104610
|
-
}], "by-kind"),
|
|
104611
|
-
fixedKnob("block.offerings-preview", "dates", "Dates", [{
|
|
104612
|
-
value: "summary",
|
|
104613
|
-
label: "Summary"
|
|
104614
|
-
}, {
|
|
104615
|
-
value: "next-dates",
|
|
104616
|
-
label: "Next dates"
|
|
104617
|
-
}], "summary"),
|
|
104618
|
-
{
|
|
104619
|
-
...fixedKnob("block.feature-cards", "actionStyle", "Item actions", [{
|
|
104620
|
-
value: "button",
|
|
104621
|
-
label: "Button"
|
|
104622
|
-
}, {
|
|
104623
|
-
value: "link",
|
|
104624
|
-
label: "Link"
|
|
104625
|
-
}], "button"),
|
|
104626
|
-
blockKinds: cardListKnobBlocks
|
|
104627
|
-
},
|
|
104628
|
-
fixedKnob("block.testimonials", "quoteCount", "How many quotes", [
|
|
104629
|
-
{
|
|
104630
|
-
value: "1",
|
|
104631
|
-
label: "1"
|
|
104632
|
-
},
|
|
104633
|
-
{
|
|
104634
|
-
value: "2",
|
|
104635
|
-
label: "2"
|
|
104636
|
-
},
|
|
104637
|
-
{
|
|
104638
|
-
value: "3",
|
|
104639
|
-
label: "3"
|
|
104640
|
-
},
|
|
104641
|
-
{
|
|
104642
|
-
value: "all",
|
|
104643
|
-
label: "All"
|
|
104644
|
-
}
|
|
104645
|
-
], "3", true),
|
|
104646
|
-
{
|
|
104647
|
-
...fixedKnob("block.testimonials", "autoAdvance", "Moves on by itself", onOff, "false", false, true),
|
|
104648
|
-
description: "Moves to the next quote every few seconds, and stops while someone's reading."
|
|
104649
|
-
},
|
|
104650
|
-
fixedKnob("block.testimonials", "tilt", "Tilt the small cards", onOff, "true", false, true),
|
|
104651
|
-
{
|
|
104652
|
-
...fixedKnob("block.testimonials", "archFrame", "Arch frame", onOff, "true", false, true),
|
|
104653
|
-
blockKinds: [
|
|
104654
|
-
"block.testimonials",
|
|
104655
|
-
"block.newsletter-signup",
|
|
104656
|
-
"block.form"
|
|
104657
|
-
]
|
|
104658
|
-
},
|
|
104659
|
-
fixedKnob("block.hero", "photoTint", "Photo tint", [{
|
|
104660
|
-
value: "dark",
|
|
104661
|
-
label: "Dark"
|
|
104662
|
-
}, {
|
|
104663
|
-
value: "brand",
|
|
104664
|
-
label: "Brand colour"
|
|
104665
|
-
}], "dark"),
|
|
104666
|
-
fixedKnob("block.hero", "candleGlow", "Candle glow", onOff, "true", false, true),
|
|
104667
|
-
fixedKnob("block.hero", "columnGuides", "Column guides", onOff, "true", false, true),
|
|
104668
|
-
fixedKnob("block.hero", "titleSize", "Headline size", heroTitleSizeOptions, "auto", true),
|
|
104669
|
-
fixedKnob("block.hero", "imagePosition", "Photo side", [{
|
|
104670
|
-
value: "left",
|
|
104671
|
-
label: "Left"
|
|
104672
|
-
}, {
|
|
104673
|
-
value: "right",
|
|
104674
|
-
label: "Right"
|
|
104675
|
-
}], "right"),
|
|
104676
|
-
fixedKnob("block.intro", "imageShape", "Media shape", standardImageShapeOptions, "default"),
|
|
104677
|
-
fixedKnob("block.intro", "imagePosition", "Photo side", [{
|
|
104678
|
-
value: "left",
|
|
104679
|
-
label: "Left"
|
|
104680
|
-
}, {
|
|
104681
|
-
value: "right",
|
|
104682
|
-
label: "Right"
|
|
104683
|
-
}], "left"),
|
|
104684
|
-
fixedKnob("block.media-text", "imagePosition", "Photo side", [{
|
|
104685
|
-
value: "left",
|
|
104686
|
-
label: "Left"
|
|
104687
|
-
}, {
|
|
104688
|
-
value: "right",
|
|
104689
|
-
label: "Right"
|
|
104690
|
-
}], "left"),
|
|
104691
|
-
fixedKnob("block.media-text", "imageShape", "Media shape", standardImageShapeOptions, "default"),
|
|
104692
|
-
fixedKnob("block.media-text", "aspectRatio", "Media aspect ratio", standardAspectRatioOptions, "auto"),
|
|
104693
|
-
textKnob("stickerLine", "Sticker line", 32),
|
|
104694
|
-
textKnob("smallCaption", "Small caption", 24),
|
|
104695
|
-
{
|
|
104696
|
-
...fixedKnob("block.feature-cards", "showPhotos", "Show photos", onOff, "true", false, true),
|
|
104697
|
-
blockKinds: cardListFamilyBlocks
|
|
104698
|
-
},
|
|
104699
|
-
fixedKnob("block.feature-cards", "columns", "Columns", columnCounts, "3", true),
|
|
104700
|
-
fixedKnob("block.image-gallery", "blackAndWhite", "Black and white", onOff, "false", false, true),
|
|
104701
|
-
fixedKnob("block.event-calendar", "listColumns", "Columns", columnCounts, "3", true),
|
|
104702
|
-
fixedKnob("block.event-calendar", "showPhotos", "Photos", [{
|
|
104703
|
-
value: "true",
|
|
104704
|
-
label: "Show"
|
|
104705
|
-
}, {
|
|
104706
|
-
value: "false",
|
|
104707
|
-
label: "Hide"
|
|
104708
|
-
}], "true", false, true),
|
|
104709
|
-
{
|
|
104710
|
-
...fixedKnob("block.feature-cards", "cardMarker", "Item markers", [
|
|
104711
|
-
{
|
|
104712
|
-
value: "icons",
|
|
104713
|
-
label: "Icons"
|
|
104714
|
-
},
|
|
104715
|
-
{
|
|
104716
|
-
value: "numbers",
|
|
104717
|
-
label: "Numbers"
|
|
104718
|
-
},
|
|
104719
|
-
{
|
|
104720
|
-
value: "none",
|
|
104721
|
-
label: "None"
|
|
104722
|
-
}
|
|
104723
|
-
], "icons"),
|
|
104724
|
-
blockKinds: cardListFamilyBlocks
|
|
104725
|
-
},
|
|
104726
|
-
fixedKnob("block.body-text", "alignment", "Text alignment", [{
|
|
104727
|
-
value: "left",
|
|
104728
|
-
label: "Left"
|
|
104729
|
-
}, {
|
|
104730
|
-
value: "center",
|
|
104731
|
-
label: "Centre"
|
|
104732
|
-
}], "left"),
|
|
104733
|
-
{
|
|
104734
|
-
...fixedKnob("block.event-calendar", "showCapacity", "Places left", onOff, "true", false, true),
|
|
104735
|
-
description: "Show how many places are left on each event"
|
|
104736
|
-
}
|
|
104737
|
-
];
|
|
104738
|
-
const facetRegistryCoversVocabulary = true;
|
|
104739
|
-
void facetRegistryCoversVocabulary;
|
|
104740
|
-
const systemCustomizeFacetIds = systemCustomizeFacetDefinitions.map((definition$1) => definition$1.id);
|
|
104741
|
-
const systemCustomizeFacetValues = Array.from(new Set(systemCustomizeFacetDefinitions.flatMap((definition$1) => definition$1.values.map((option) => option.value))));
|
|
104742
|
-
function isSystemCustomizeFacetId(value) {
|
|
104743
|
-
return typeof value === "string" && systemCustomizeFacetDefinitions.some((definition$1) => definition$1.id === value);
|
|
104744
|
-
}
|
|
104745
|
-
function parseSystemCustomizeFacetSelection(facetId, value) {
|
|
104746
|
-
if (!isSystemCustomizeFacetId(facetId)) {
|
|
104747
|
-
return {
|
|
104748
|
-
success: false,
|
|
104749
|
-
error: {
|
|
104750
|
-
kind: "unknown-facet",
|
|
104751
|
-
facetId
|
|
104752
|
-
}
|
|
104753
|
-
};
|
|
104754
|
-
}
|
|
104755
|
-
const definition$1 = systemCustomizeFacetDefinitionForId(facetId);
|
|
104756
|
-
if (!isSystemCustomizeFacetStoredValue(definition$1, value)) {
|
|
104757
|
-
return {
|
|
104758
|
-
success: false,
|
|
104759
|
-
error: {
|
|
104760
|
-
kind: "invalid-value",
|
|
104761
|
-
facetId,
|
|
104762
|
-
value,
|
|
104763
|
-
definition: definition$1
|
|
104764
|
-
}
|
|
104765
|
-
};
|
|
104766
|
-
}
|
|
104767
|
-
return {
|
|
104768
|
-
success: true,
|
|
104769
|
-
data: {
|
|
104770
|
-
facetId,
|
|
104771
|
-
value
|
|
104772
|
-
},
|
|
104773
|
-
definition: definition$1
|
|
104774
|
-
};
|
|
104775
|
-
}
|
|
104776
|
-
function systemCustomizeFacetDefinitionForId(facetId) {
|
|
104777
|
-
const definition$1 = systemCustomizeFacetDefinitions.find((candidate$1) => candidate$1.id === facetId);
|
|
104778
|
-
if (!definition$1) {
|
|
104779
|
-
throw new Error(`Unknown system customize facet: ${facetId}`);
|
|
104780
|
-
}
|
|
104781
|
-
return definition$1;
|
|
104782
|
-
}
|
|
104783
|
-
function systemCustomizeFacetDefinitionForBlock(blockKind, facetId) {
|
|
104784
|
-
return systemCustomizeFacetDefinitions.find((definition$1) => definition$1.id === facetId && (definition$1.blockKind === blockKind || "blockKinds" in definition$1 && definition$1.blockKinds?.some((kind) => kind === blockKind))) ?? null;
|
|
104785
|
-
}
|
|
104786
|
-
function systemCustomizeFacetDefinitionsForBlock(blockKind) {
|
|
104787
|
-
return systemCustomizeFacetDefinitions.filter((definition$1) => definition$1.blockKind === blockKind || "blockKinds" in definition$1 && definition$1.blockKinds?.some((kind) => kind === blockKind));
|
|
104788
|
-
}
|
|
104789
|
-
function isSystemCustomizeFacetValue(definition$1, value) {
|
|
104790
|
-
return typeof value === "string" && (definition$1.knob?.kind === "text" ? value.length <= definition$1.knob.maxLength : definition$1.values.some((option) => option.value === value));
|
|
104791
|
-
}
|
|
104792
|
-
/** Only a knob's own content field can be unset; other facets always hold a value. */
|
|
104793
|
-
function isSystemCustomizeFacetStoredValue(definition$1, value) {
|
|
104794
|
-
return value === null ? definition$1.knob !== undefined && definition$1.target.kind === "content-field" : isSystemCustomizeFacetValue(definition$1, value);
|
|
104795
|
-
}
|
|
104796
|
-
/** The value as stored, or null when a knob's field was never set. */
|
|
104797
|
-
function systemCustomizeFacetStoredValue(definition$1, content) {
|
|
104798
|
-
const unset = definition$1.knob !== undefined && definition$1.target.kind === "content-field" && content[definition$1.target.field] === undefined;
|
|
104799
|
-
return unset ? null : systemCustomizeFacetCurrentValue(definition$1, content);
|
|
104800
|
-
}
|
|
104801
|
-
function systemCustomizeFacetLabelForValue(definition$1, value) {
|
|
104802
|
-
return definition$1.values.find((option) => option.value === value)?.label ?? value;
|
|
104803
|
-
}
|
|
104804
|
-
function systemCustomizeFacetAppliesToLayoutVariant(definition$1, layoutVariantKey, lookKind = "legacy") {
|
|
104805
|
-
if (definition$1.legacyOnly && lookKind !== "legacy") return false;
|
|
104806
|
-
if (definition$1.knob && lookKind === "legacy") return false;
|
|
104807
|
-
if (!definition$1.appliesToLayoutVariants) return true;
|
|
104808
|
-
return typeof layoutVariantKey === "string" && definition$1.appliesToLayoutVariants.includes(layoutVariantKey);
|
|
104809
|
-
}
|
|
104810
|
-
function systemCustomizeFacetCurrentValue(definition$1, content) {
|
|
104811
|
-
switch (definition$1.target.kind) {
|
|
104812
|
-
case "content-field": {
|
|
104813
|
-
const stored = content[definition$1.target.field];
|
|
104814
|
-
const value = typeof stored === "boolean" ? String(stored) : stored;
|
|
104815
|
-
return isSystemCustomizeFacetValue(definition$1, value) ? value : definition$1.defaultValue;
|
|
104816
|
-
}
|
|
104817
|
-
case "event-calendar-list-layout-content": {
|
|
104818
|
-
if (isSystemCustomizeFacetValue(definition$1, content.listLayout)) {
|
|
104819
|
-
return content.listLayout;
|
|
104820
|
-
}
|
|
104821
|
-
if (isSystemCustomizeFacetValue(definition$1, content.layout)) {
|
|
104822
|
-
return content.layout;
|
|
104823
|
-
}
|
|
104824
|
-
return definition$1.defaultValue;
|
|
104825
|
-
}
|
|
104826
|
-
}
|
|
104827
|
-
}
|
|
104828
|
-
function systemCustomizeFacetNextValue(definition$1, currentValue, direction) {
|
|
104829
|
-
const values = definition$1.values.map((option) => option.value);
|
|
104830
|
-
const currentIndex = values.indexOf(currentValue);
|
|
104831
|
-
if (currentIndex === -1) return null;
|
|
104832
|
-
const nextIndex = direction === "next" ? (currentIndex + 1) % values.length : currentIndex === 0 ? values.length - 1 : currentIndex - 1;
|
|
104833
|
-
return values[nextIndex] ?? null;
|
|
104834
|
-
}
|
|
104835
|
-
function systemCustomizeFacetApplyContentPatch(definition$1, content, value) {
|
|
104836
|
-
if (!isSystemCustomizeFacetStoredValue(definition$1, value)) throw new Error(`Invalid value for facet ${definition$1.id}`);
|
|
104837
|
-
switch (definition$1.target.kind) {
|
|
104838
|
-
case "content-field":
|
|
104839
|
-
if (value === null) return omitRecordKey(content, definition$1.target.field);
|
|
104840
|
-
return {
|
|
104841
|
-
...content,
|
|
104842
|
-
[definition$1.target.field]: definition$1.target.boolean ? value === "true" : value
|
|
104843
|
-
};
|
|
104844
|
-
case "event-calendar-list-layout-content": {
|
|
104845
|
-
return {
|
|
104846
|
-
...omitRecordKey(content, "layout"),
|
|
104847
|
-
listLayout: value ?? definition$1.defaultValue
|
|
104848
|
-
};
|
|
104849
|
-
}
|
|
104850
|
-
}
|
|
104851
|
-
}
|
|
104852
|
-
function systemCustomizeFacetRollbackContentPatch(definition$1, currentContent, previousContent) {
|
|
104853
|
-
switch (definition$1.target.kind) {
|
|
104854
|
-
case "content-field": return restoreRecordKey(currentContent, previousContent, definition$1.target.field);
|
|
104855
|
-
case "event-calendar-list-layout-content": {
|
|
104856
|
-
return restoreRecordKey(restoreRecordKey(currentContent, previousContent, "listLayout"), previousContent, "layout");
|
|
104857
|
-
}
|
|
104858
|
-
}
|
|
104859
|
-
}
|
|
104860
|
-
function restoreRecordKey(content, previousContent, key) {
|
|
104861
|
-
if (Object.prototype.hasOwnProperty.call(previousContent, key)) {
|
|
104862
|
-
return {
|
|
104863
|
-
...content,
|
|
104864
|
-
[key]: previousContent[key]
|
|
104865
|
-
};
|
|
104866
|
-
}
|
|
104867
|
-
return omitRecordKey(content, key);
|
|
104868
|
-
}
|
|
104869
|
-
function omitRecordKey(content, key) {
|
|
104870
|
-
return Object.fromEntries(Object.entries(content).filter(([entryKey]) => entryKey !== key));
|
|
104871
|
-
}
|
|
104872
|
-
|
|
104873
105107
|
//#endregion
|
|
104874
105108
|
//#region ../blocks/src/system/customize/fieldOwnership.ts
|
|
104875
105109
|
/**
|
|
@@ -111567,7 +111801,7 @@ function TeamMemberName({ name, profilePath }) {
|
|
|
111567
111801
|
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: name });
|
|
111568
111802
|
}
|
|
111569
111803
|
function formatTicketTypePrice(ticketType, currency) {
|
|
111570
|
-
return
|
|
111804
|
+
return formatBookingPriceDisplay(resolveExactOrFreePriceDisplay(ticketType.priceAmount, currency), { decimals: "auto" });
|
|
111571
111805
|
}
|
|
111572
111806
|
function getDisplayablePricingOptions(event) {
|
|
111573
111807
|
return event.pricing.kind === "tiered" ? event.pricing.options.filter(isPublicEventPricingOptionDisplayable).sort((left, right) => left.sortOrder - right.sortOrder) : [];
|
|
@@ -119086,7 +119320,7 @@ function planArrangementContent(blockKind, manifest, authored, audience) {
|
|
|
119086
119320
|
...mode !== null ? { variant: mode } : {},
|
|
119087
119321
|
...effectiveContent,
|
|
119088
119322
|
...photoContent,
|
|
119089
|
-
...
|
|
119323
|
+
...arrangementMediaFrameContent(blockKind, effective, values, authored),
|
|
119090
119324
|
...arrangementPanelContent(activeContent, effective, mode),
|
|
119091
119325
|
...arrangementQuoteContent(blockKind, effective, values),
|
|
119092
119326
|
_arrangementLooks: runtime,
|
|
@@ -119138,11 +119372,15 @@ function arrangementPhotoTreatmentContent(content, look$1, palette, tint$1) {
|
|
|
119138
119372
|
function arrangementContentSlots(blockKind) {
|
|
119139
119373
|
return Object.fromEntries(arrangementSlotNames.filter((slot) => (!slot.startsWith("price-") || blockKind === "block.shop") && slot !== "schedule-section" && slot !== "shop-section" && (slot !== "background" || blockKind === "block.hero")).map((slot) => [slot, slot]));
|
|
119140
119374
|
}
|
|
119141
|
-
/**
|
|
119142
|
-
function
|
|
119143
|
-
|
|
119144
|
-
|
|
119145
|
-
|
|
119375
|
+
/** One frame declaration owns shape crops and keeps authored ratios for variable layouts. */
|
|
119376
|
+
function arrangementMediaFrameContent(blockKind, look$1, knobs, authored) {
|
|
119377
|
+
if (blockKind !== "block.intro" && blockKind !== "block.media-text") return {};
|
|
119378
|
+
const frame = resolveLookMediaFrame(look$1.look.structure.mediaFrame, look$1.skin, knobs);
|
|
119379
|
+
if (!frame) return {};
|
|
119380
|
+
return frame.kind === "fixed" ? {
|
|
119381
|
+
aspectRatio: frame.aspectRatio,
|
|
119382
|
+
_lookMediaFrame: frame
|
|
119383
|
+
} : { aspectRatio: typeof authored.aspectRatio === "string" ? authored.aspectRatio : frame.aspectRatio };
|
|
119146
119384
|
}
|
|
119147
119385
|
function arrangementQuoteContent(blockKind, effective, values) {
|
|
119148
119386
|
if (blockKind !== "block.testimonials") return {};
|
|
@@ -128849,7 +129087,7 @@ Note: Remote delete operations require --yes flag for safety.
|
|
|
128849
129087
|
}
|
|
128850
129088
|
|
|
128851
129089
|
//#endregion
|
|
128852
|
-
//#region src/
|
|
129090
|
+
//#region src/commands/drafts.ts
|
|
128853
129091
|
/**
|
|
128854
129092
|
* Drafts Command (Phase 7.3)
|
|
128855
129093
|
*
|
|
@@ -128887,7 +129125,10 @@ const DRAFTS_TABLE_HEADERS = [
|
|
|
128887
129125
|
"Status",
|
|
128888
129126
|
"Unpublished"
|
|
128889
129127
|
];
|
|
128890
|
-
const createDraftsCommand = () =>
|
|
129128
|
+
const createDraftsCommand = () => defineCommand({
|
|
129129
|
+
name: "drafts",
|
|
129130
|
+
description: "Cross-type overview of pages and entries with pending (unpublished) changes",
|
|
129131
|
+
help: `
|
|
128891
129132
|
This is the correct, server-filtered replacement for \`entry list --status draft\`
|
|
128892
129133
|
(which only filters the returned page). Every pending page and entry is
|
|
128893
129134
|
enumerated server-side.
|
|
@@ -128896,19 +129137,26 @@ Examples:
|
|
|
128896
129137
|
$ riverbankcms drafts # Table of everything with pending changes
|
|
128897
129138
|
$ riverbankcms drafts --json # One JSON envelope for agents
|
|
128898
129139
|
$ riverbankcms drafts --env=remote # Drafts on the remote site
|
|
128899
|
-
|
|
128900
|
-
|
|
128901
|
-
|
|
128902
|
-
|
|
128903
|
-
|
|
128904
|
-
}
|
|
128905
|
-
|
|
128906
|
-
|
|
128907
|
-
return
|
|
129140
|
+
`,
|
|
129141
|
+
args: [],
|
|
129142
|
+
options: {},
|
|
129143
|
+
context: commandContexts.management,
|
|
129144
|
+
confirmation: "none",
|
|
129145
|
+
run: async ({ ctx }) => {
|
|
129146
|
+
const drafts = await ctx.client.pull.drafts();
|
|
129147
|
+
const rows = draftsToTableRows(drafts);
|
|
129148
|
+
return {
|
|
129149
|
+
ok: true,
|
|
129150
|
+
presentation: "info",
|
|
129151
|
+
data: drafts,
|
|
129152
|
+
message: rows.length === 0 ? "No pending changes — everything is published." : `${drafts.summary.pageCount} page(s) and ${drafts.summary.entryCount} entry(ies) with pending changes.`,
|
|
129153
|
+
...rows.length > 0 && { table: {
|
|
129154
|
+
headers: DRAFTS_TABLE_HEADERS,
|
|
129155
|
+
rows
|
|
129156
|
+
} }
|
|
129157
|
+
};
|
|
128908
129158
|
}
|
|
128909
|
-
|
|
128910
|
-
return output.info(`${drafts.summary.pageCount} page(s) and ${drafts.summary.entryCount} entry(ies) with pending changes.`);
|
|
128911
|
-
}));
|
|
129159
|
+
});
|
|
128912
129160
|
|
|
128913
129161
|
//#endregion
|
|
128914
129162
|
//#region src/init-docs/constants.ts
|
|
@@ -130265,7 +130513,7 @@ async function loadConfig(configPath, output) {
|
|
|
130265
130513
|
return { errorMessage: "No config path provided." };
|
|
130266
130514
|
}
|
|
130267
130515
|
try {
|
|
130268
|
-
const { loadConfigFile: loadConfigFile$1 } = await import("../load-config-
|
|
130516
|
+
const { loadConfigFile: loadConfigFile$1 } = await import("../load-config-CTqBfOO9.mjs");
|
|
130269
130517
|
const rawConfig = await loadConfigFile$1(configPath);
|
|
130270
130518
|
const parsed = z.safeParse(riverbankSiteConfigSchema, rawConfig);
|
|
130271
130519
|
if (!parsed.success) {
|
|
@@ -130758,49 +131006,55 @@ Notes:
|
|
|
130758
131006
|
});
|
|
130759
131007
|
|
|
130760
131008
|
//#endregion
|
|
130761
|
-
//#region src/
|
|
130762
|
-
/**
|
|
130763
|
-
* Content Type Command
|
|
130764
|
-
*
|
|
130765
|
-
* Inspect content types on target site via CLI.
|
|
130766
|
-
*
|
|
130767
|
-
* Usage:
|
|
130768
|
-
* riverbankcms content-type list [--env=remote]
|
|
130769
|
-
*/
|
|
131009
|
+
//#region src/commands/content-type.ts
|
|
131010
|
+
/** Inspect content types on the target site. */
|
|
130770
131011
|
function createListCommand$1() {
|
|
130771
|
-
return
|
|
130772
|
-
|
|
130773
|
-
|
|
130774
|
-
|
|
130775
|
-
|
|
130776
|
-
|
|
130777
|
-
|
|
130778
|
-
|
|
131012
|
+
return defineCommand({
|
|
131013
|
+
name: "list",
|
|
131014
|
+
description: "List content types on target site",
|
|
131015
|
+
args: [],
|
|
131016
|
+
options: {},
|
|
131017
|
+
context: commandContexts.management,
|
|
131018
|
+
confirmation: "none",
|
|
131019
|
+
run: async ({ ctx }) => {
|
|
131020
|
+
const { contentTypes } = await ctx.client.pull.contentTypes();
|
|
131021
|
+
return {
|
|
131022
|
+
ok: true,
|
|
131023
|
+
presentation: "info",
|
|
131024
|
+
data: { contentTypes },
|
|
131025
|
+
message: contentTypes.length === 0 ? "No content types found" : `${contentTypes.length} content types on ${ctx.targetEnv} site`,
|
|
131026
|
+
...contentTypes.length > 0 && { table: {
|
|
131027
|
+
headers: [
|
|
131028
|
+
"Key",
|
|
131029
|
+
"Name",
|
|
131030
|
+
"Has Pages",
|
|
131031
|
+
"Singleton",
|
|
131032
|
+
"Route Pattern"
|
|
131033
|
+
],
|
|
131034
|
+
rows: contentTypes.map((ct) => [
|
|
131035
|
+
ct.key,
|
|
131036
|
+
ct.name,
|
|
131037
|
+
ct.hasPages ? "Yes" : "No",
|
|
131038
|
+
ct.isSingleton ? "Yes" : "No",
|
|
131039
|
+
ct.routePattern ?? "-"
|
|
131040
|
+
])
|
|
131041
|
+
} }
|
|
131042
|
+
};
|
|
130779
131043
|
}
|
|
130780
|
-
|
|
130781
|
-
"Key",
|
|
130782
|
-
"Name",
|
|
130783
|
-
"Has Pages",
|
|
130784
|
-
"Singleton",
|
|
130785
|
-
"Route Pattern"
|
|
130786
|
-
], result.contentTypes.map((ct) => [
|
|
130787
|
-
ct.key,
|
|
130788
|
-
ct.name,
|
|
130789
|
-
ct.hasPages ? "Yes" : "No",
|
|
130790
|
-
ct.isSingleton ? "Yes" : "No",
|
|
130791
|
-
ct.routePattern ?? "-"
|
|
130792
|
-
]));
|
|
130793
|
-
const target = targetEnv;
|
|
130794
|
-
return output.info(`${result.contentTypes.length} content types on ${target} site`);
|
|
130795
|
-
}));
|
|
131044
|
+
});
|
|
130796
131045
|
}
|
|
130797
131046
|
function createContentTypeCommand() {
|
|
130798
|
-
return
|
|
131047
|
+
return defineCommandGroup({
|
|
131048
|
+
name: "content-type",
|
|
131049
|
+
description: "Inspect content types",
|
|
131050
|
+
help: `
|
|
130799
131051
|
Examples:
|
|
130800
131052
|
$ riverbankcms content-type list # List content types on local site
|
|
130801
131053
|
$ riverbankcms content-type list --env=remote # List content types on remote site
|
|
130802
131054
|
$ riverbankcms content-type list --json # Output as JSON
|
|
130803
|
-
|
|
131055
|
+
`,
|
|
131056
|
+
commands: [createListCommand$1()]
|
|
131057
|
+
});
|
|
130804
131058
|
}
|
|
130805
131059
|
|
|
130806
131060
|
//#endregion
|
|
@@ -148436,10 +148690,10 @@ function createProgram(dependencies = {}) {
|
|
|
148436
148690
|
program.addCommand(createNavigationCommand());
|
|
148437
148691
|
registerCommand(program, createDeleteCommand());
|
|
148438
148692
|
program.addCommand(createContentCommand());
|
|
148439
|
-
program
|
|
148693
|
+
registerCommand(program, createDraftsCommand());
|
|
148440
148694
|
program.addCommand(createInitDocsCommand());
|
|
148441
148695
|
program.addCommand(createDeployCommand());
|
|
148442
|
-
program
|
|
148696
|
+
registerCommand(program, createContentTypeCommand());
|
|
148443
148697
|
program.addCommand(createVerifyCommand());
|
|
148444
148698
|
program.addCommand(createPublishAllCommand());
|
|
148445
148699
|
program.addCommand(createAuditCommand());
|