riverbankcms 0.40.0 → 0.40.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 +1 -1
- package/dist/cli/index.mjs +568 -80
- package/dist/{entryCommands-DC808i9P.mjs → entryCommands-X7gsvEhS.mjs} +20 -202
- package/dist/{eventUpsertInputSchema-DkVayfO1.mjs → eventUpsertInputSchema-DzMuFAid.mjs} +2 -2
- package/dist/load-config-C9iXzX97.mjs +2 -0
- package/dist/{load-config-BHD3Ugbc.mjs → load-config-DHwkmd3-.mjs} +1 -1
- package/dist/{plan-DPzqAUzU.mjs → plan-C5yEQouF.mjs} +1 -1
- package/dist/scaffold/index.mjs +1 -1
- package/dist/{sdk-event-upsert-Ch_VUpkB.mjs → sdk-event-upsert-Bl8Z95H0.mjs} +175 -95
- package/dist/{src-C5150tVc.mjs → src-oeP1NG4L.mjs} +29 -6
- package/dist/testing.mjs +1 -1
- package/package.json +1 -1
- package/dist/load-config-DZyvZVAv.mjs +0 -2
package/dist/cli/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $r as __toESM, $t as BUTTON_STYLE_IDS, A as parseSiteChromeBackgroundColorToken, An as changeBookingQuestionsInputSchema, Ar as asDesignSystemTemplateId, Bn as sanitizeHref, Br as createCommandRef,
|
|
3
|
-
import { $ as walkLocalContentMedia, $r as eventCalendarListLayoutCompatibleDisplayModeValues, $t as bindRequestTimeout, A as formatDiffSummary, Ar as roomOccupancySchema, At as navigationIdentityMap, B as formatFieldChange, Bn as blockRequiredFeatureSchema, Br as unsafeAsPositiveCheckoutQuantity, Bt as createPushConfigCommand, C as reportFromOutcomes, Cn as getEnvPrefix, Ct as listFiles, D as calculateDiff, Dn as loadSdkEnvironment, Dt as isMediaValue, E as createEmptySyncResult, En as isRemoteConfigured, Et as writeJsonFileAtomic, F as buildJsonDiff, Fn as mergeBlockEditing, Ft as createBearerAccountApi, G as applyLocalMediaPush, Gn as resolveRepeaterGridRowFieldId, Gt as deriveCmsApiUrlFromDashboardUrl, H as revalidateLocalMediaPushPlan, Hn as isAcceptedRepeaterGridSpan, Ht as preparePushConfigTarget, I as hasPageOperations, J as readStableBinaryFile, Jn as cardListBlockParts, Jt as commandContexts, K as prepareLocalMediaForPush, Kn as resolveRepeaterGridSpanFieldId, Kt as mapEnvironmentExecutionOutcomesJson, L as pageMetadataForUpsert, Ln as DEFAULT_MEDIA_FIELD_KINDS, Lt as navigationCommandItemToManagementInput, M as findChangedFieldsWithValues, Mn as blockEditingSchema, Mr as sharedRoomArrangementSchema, Mt as convertPulledNavigationToLocal, N as formatHumanDiff, Nt as convertPulledPagesToLocal, O as calculateFooterDiff, On as NodeSchema, Or as reviewedRoomsSchema, Ot as duplicateNavigationIdentityMessage, P as calculatePullDiff, Pt as AccountApiMalformedResponseError, Q as normalizeMediaValueToIdentifierOnly, Qn as photoShapeKnobBlocks, Qr as eventCalendarDisplayModeValues, Qt as renderedByOwner, Rn as blockCategoryEnum, Rt as normalizeNavigationConfigItemForCommand, S as planCliCommandBatchForBindings, St as fileExists, T as executeResidualSettingsSyncPlan, Tn as isLocalConfigured, Tt as writeJsonFile, Un as parseRepeaterGridInteger, Ut as revalidatePushConfigPlan, V as formatFieldPath$1, Vn as fieldSchema, Vt as loadPushConfigTarget, W as syncLocalMediaForPull, Wn as resolveRepeaterGridColumnFieldId, Wt as createBearerAPIClient, X as sha256, Xn as cardListKnobBlocks, Xt as defineCommandGroup, Y as writeBinaryFileAtomic, Yn as cardListFamilyBlocks, Yt as defineCommand, Z as normalizeMediaIdentifierInput, Zn as lookKnobBlocks, Zr as eventCalendarDefaultViewValues, Zt as registerCommand, _ as commandExecutionToReport, _i as ApiEnvelopeError, _n as withRiverbankEnv, _r as bookingQuestionsAnswerValueSchema, _t as metadataTargetFromEnvironment, a as executeEntryCommandPlanAsReport, ai as publicProductSchema, an as loadManagementTarget, ar as sdkEventScheduleSchema, at as readAllMeta, b as executeCompiledCliCommandPlanAsReport, bn as transportSuggestion, br as checkoutStatusArms, bt as writeMetadataRecordMap, c as titleFromEntryData, cn as parseJsonArray, cr as portablePageDesignSchema, ct as readFooterMeta, d as unsafeAsCliEntryIdentifier, di as eventScheduleScopeValues, dn as runWithInvocation, dt as readPagesMeta, ei as eventCalendarListLayoutValues, en as confirmAction, er as ManagementApiError, et as buildStorageUrl, f as unsafeAsCliFormSlug, fi as eventSurfacePresetValues, fn as executeEnvironmentPlan, ft as readSettingsMeta, g as commandCompileFailureToReport, gi as publicEventLoaderQuerySchemaShape, gn as requireEnvironmentWriteAuthorization, gt as metadataFilePath, h as mutationCounterForEffect, hn as planEnvironmentWriteAuthorization, ht as ensureMetadataDir, i as entrySiteCommandTypes, ii as publicPassProductSchema, in as handleCommandError, ir as ApiRequestError, it as readEntries, j as hasPendingChanges, jr as roomSetupSchema, jt as convertPulledFooterToLocal, k as formatDiffDetail, kn as NodeTreeSchema, kr as roomChoicesSchema, kt as navigationIdentity, l as unsafeAsCliBlockIdentifier, li as calendarMonthWindowSchema, ln as parseJsonData, lr as pageDesignDecisionsV2Schema, lt as readFormsMeta, m as commandReportToSyncResult, mn as planEnvironmentExecution, mt as writeMediaManifest, n as entryCommandCompileErrorToReport, ni as publicVenueMapLocationSchema, nn as currentInvocationEnvelope, nt as extractMediaIdentifiers, oi as purchasablePublicMembershipProductSchema, on as managementClientFor, or as sdkSettingsUpdateSchema, ot as readEventCategoriesMeta, p as unsafeAsCliPageIdentifier, pi as eventSurfaceScopeValues, pn as parseEnvironmentSelection, pt as readVenuesMeta, q as admitBinaryWriteDestination, qn as visibilityLevels, qt as CommandFailure, r as entryCommandReportToSyncResult, ri as publicMembershipProductSchema, rn as formatDateShort, rr as isRecord$30, rt as findLegacyEntryFiles, si as purchasablePublicPassProductSchema, sn as mapEntryForOutput, sr as linkPayloadSchema, st as readEventsMeta, t as compileEntryPushCommands, ti as publicMapLocationResultSchema, tn as createOutputForCommand, tt as downloadMedia, u as unsafeAsCliContentTypeKey, ui as calendarSourceCursorSchema, un as resolveCommandPath, ur as sdkConfiguredBookingVerticalConfigSchema, ut as readNavigationMeta, v as commandReportHasFailures, vn as ErrorCodes, vr as bookingQuestionsAnswersSchema, w as mergeManySyncResults, wn as getEnvironmentDebugInfo, wt as readJsonFile, x as formatManagementError, xn as CliExit, xt as ensureDir$1, y as executeCliCommandPlan, yn as formatError, yr as bookingQuestionsSectionSchema, yt as writeMetadataFile, z as buildFieldChanges, zn as blockContentSourceSchema, zt as applyPushConfigPlan } from "../entryCommands-
|
|
4
|
-
import { $ as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, $t as inferSiteDateLocale, An as resolvePricingOptionsPriceDisplay, D as WHOLE_SERIES_EVENT_PRESET_VALUES, Dt as buildBookingUtcDateWindow, F as firstLiveRunSessionStartMs, Fr as
|
|
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 { $r as __toESM, $t as BUTTON_STYLE_IDS, A as parseSiteChromeBackgroundColorToken, An as changeBookingQuestionsInputSchema, Ar as asDesignSystemTemplateId, Bn as sanitizeHref, Br as createCommandRef, C as blockOrderIdentifiersForCommand, Cr as asAppearancePresetId, Ct as buildMediaIdentifierFromFilename, D as pagePathForCommand, Dr as asDesignBlockId, E as pageIdentifierForCommand, En as paletteModeSchema, Er as asBoundaryOptionId, Fn as eventCommandScheduleSchema, Ft as FILE_SIZE_LIMITS, Gr as createFormRef, Gt as accordionIconSchema, H as themeSchema, Hn as validateEntryInstance, Hr as createEventCategoryRef, Ht as sectionTreatmentSchema, Jt as cardRoleValues, K as headerInteractionQuietPalette, Kr as createNavigationRef, Kt as boxlessCardVariantValue, Ln as RichTextDocSchema, Lr as ianaTimezoneSchema, Mr as asPageFlowPresetId, Mt as asRecord$1, Nr as asSiteStyleId, O as hasConfiguredBookingVertical, On as parseColorTokenParts, Pn as bookingPaymentTermsSchema, Pt as parseRelativeStoragePath, Qn as linkSchema, Qr as __commonJSMin, Rn as isRichTextDoc, Rr as createBlockRef, Rt as managementMediaLibraryUploadLimitForMimeType, S as blockIdentifierForCommand, Sn as normalizePaletteHex, Sr as visibleHeadingDecorationFamilyValues, St as mediaIdentifierSchema, T as pageIdentifierForBlockCommand, Tn as paletteColorsSchema, Tr as asBlockOrderIndex, Tt as parseMediaIdentifier, Un as findUnfilledSentinels, Ur as createEventSeriesRef, V as sectionStylesOverrideSchema, Vn as buildEntryScaffold, Vr as createContentEntryRef, W as headerVariantValues, Wn as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Wr as createFooterRef, X as boxBackgroundSchema, Xr as refSlug, Xt as itemRoleValues, Y as boxBackgroundOverlaySchema, Yr as createVenueRef, Yt as cardVariantRoleValues, Z as runtimeBoxBackgroundSchema, Zt as openCardRoleValue, _ as mapEventCommandContent, _n as PALETTE_TOKEN_NAMES, _r as eventListTreatmentValues, an as squareOutlineParametersSchema, ar as asHeaderLayoutId, at as isExplicitRectCrop, bn as hexColorSchema, br as isArrangementMode, c as isEventVisibility, cn as buttonSystemSchema, ct as getDirectImageUrlForRelativePath, d as venueManagementFields, dn as opaqueButtonColourTokenSchema, dt as isSiteScopedDirectImageStoragePath, en as buttonStyleSelectionSchema, et as walkAndCollectImageAttrs, f as sortRecord, fn as parseOpaqueButtonColourToken, fr as parseBookingPageLookId, g as resolveEventSeriesWaitlistMapping, gr as arrangementModes, hr as VARIANT_ROLES, ht as runtimeMediaSchema, i as sdkEventUpsertOptionalFieldSchemas, in as quietArrowParametersSchema, ir as asFooterLookId, it as normalizeWidthCandidates, j as backgroundAppearanceColorTokenNames, jr as asLayoutVariantKey, jt as getMimeType, kn as parseThemeColorToken, kr as asDesignPageId, ln as buttonVariantIdSchema, lt as getDirectImageUrlForSiteScopedPath, mn as buttonKeyframesSchema, nr as parseGradientPresetId, nt as looksLikeUuid$1, o as classifySdkEventBookingOffer, on as buttonEffectApplicationSchema, or as asHeaderStyleId, ot as parseAspectRatioValue, p as stableStringify, pt as mediaSchema, qr as createPageRef, qt as cardRoleSchema, rn as flatInkParametersSchema, rt as rotateNormalizedPoint, sr as bookingPageLookIdValues, st as resolveMediaTransformForAspect, t as classifySdkEventTiming, tn as editorialLinkParametersSchema, tr as gradientPresetIdValues, tt as deleteEnvSpecificKeys, u as eventCategoryManagementFields, un as buttonVisualStatesSchema, ut as getImageUrl, vn as absoluteInkColors, vr as eyebrowTreatmentValues, vt as resolveManagedMediaReference, w as entryIdentifierForCommand, wn as paletteColorsFromEntries, wr as asBlockContentVersionId, wt as parseCanonicalMediaIdentifier, x as eventManagementTiming, xn as isThemeColorToken, xr as tileTreatmentValues, yn as blockColorTokenNames, yr as headingDecorationColorTokenValues, yt as PUBLIC_FILE_FIELD_KINDS, zr as createBlocksRef, zt as parseSafeDownloadFilename } from "../sdk-event-upsert-Bl8Z95H0.mjs";
|
|
3
|
+
import { $ as walkLocalContentMedia, $r as eventCalendarListLayoutCompatibleDisplayModeValues, $t as bindRequestTimeout, A as formatDiffSummary, Ar as roomOccupancySchema, At as navigationIdentityMap, B as formatFieldChange, Bn as blockRequiredFeatureSchema, Br as unsafeAsPositiveCheckoutQuantity, Bt as createPushConfigCommand, C as reportFromOutcomes, Cn as getEnvPrefix, Ct as listFiles, D as calculateDiff, Dn as loadSdkEnvironment, Dt as isMediaValue, E as createEmptySyncResult, En as isRemoteConfigured, Et as writeJsonFileAtomic, F as buildJsonDiff, Fn as mergeBlockEditing, Ft as createBearerAccountApi, G as applyLocalMediaPush, Gn as resolveRepeaterGridRowFieldId, Gt as deriveCmsApiUrlFromDashboardUrl, H as revalidateLocalMediaPushPlan, Hn as isAcceptedRepeaterGridSpan, Ht as preparePushConfigTarget, I as hasPageOperations, J as readStableBinaryFile, Jn as cardListBlockParts, Jt as commandContexts, K as prepareLocalMediaForPush, Kn as resolveRepeaterGridSpanFieldId, Kt as mapEnvironmentExecutionOutcomesJson, L as pageMetadataForUpsert, Ln as DEFAULT_MEDIA_FIELD_KINDS, Lt as navigationCommandItemToManagementInput, M as findChangedFieldsWithValues, Mn as blockEditingSchema, Mr as sharedRoomArrangementSchema, Mt as convertPulledNavigationToLocal, N as formatHumanDiff, Nt as convertPulledPagesToLocal, O as calculateFooterDiff, On as NodeSchema, Or as reviewedRoomsSchema, Ot as duplicateNavigationIdentityMessage, P as calculatePullDiff, Pt as AccountApiMalformedResponseError, Q as normalizeMediaValueToIdentifierOnly, Qn as photoShapeKnobBlocks, Qr as eventCalendarDisplayModeValues, Qt as renderedByOwner, Rn as blockCategoryEnum, Rt as normalizeNavigationConfigItemForCommand, S as planCliCommandBatchForBindings, St as fileExists, T as executeResidualSettingsSyncPlan, Tn as isLocalConfigured, Tt as writeJsonFile, Un as parseRepeaterGridInteger, Ut as revalidatePushConfigPlan, V as formatFieldPath$1, Vn as fieldSchema, Vt as loadPushConfigTarget, W as syncLocalMediaForPull, Wn as resolveRepeaterGridColumnFieldId, Wt as createBearerAPIClient, X as sha256, Xn as cardListKnobBlocks, Xt as defineCommandGroup, Y as writeBinaryFileAtomic, Yn as cardListFamilyBlocks, Yt as defineCommand, Z as normalizeMediaIdentifierInput, Zn as lookKnobBlocks, Zr as eventCalendarDefaultViewValues, Zt as registerCommand, _ as commandExecutionToReport, _i as ApiEnvelopeError, _n as withRiverbankEnv, _r as bookingQuestionsAnswerValueSchema, _t as metadataTargetFromEnvironment, a as executeEntryCommandPlanAsReport, ai as publicProductSchema, an as loadManagementTarget, ar as sdkEventScheduleSchema, at as readAllMeta, b as executeCompiledCliCommandPlanAsReport, bn as transportSuggestion, br as checkoutStatusArms, bt as writeMetadataRecordMap, c as titleFromEntryData, cn as parseJsonArray, cr as portablePageDesignSchema, ct as readFooterMeta, d as unsafeAsCliEntryIdentifier, di as eventScheduleScopeValues, dn as runWithInvocation, dt as readPagesMeta, ei as eventCalendarListLayoutValues, en as confirmAction, er as ManagementApiError, et as buildStorageUrl, f as unsafeAsCliFormSlug, fi as eventSurfacePresetValues, fn as executeEnvironmentPlan, ft as readSettingsMeta, g as commandCompileFailureToReport, gi as publicEventLoaderQuerySchemaShape, gn as requireEnvironmentWriteAuthorization, gt as metadataFilePath, h as mutationCounterForEffect, hn as planEnvironmentWriteAuthorization, ht as ensureMetadataDir, i as entrySiteCommandTypes, ii as publicPassProductSchema, in as handleCommandError, ir as ApiRequestError, it as readEntries, j as hasPendingChanges, jr as roomSetupSchema, jt as convertPulledFooterToLocal, k as formatDiffDetail, kn as NodeTreeSchema, kr as roomChoicesSchema, kt as navigationIdentity, l as unsafeAsCliBlockIdentifier, li as calendarMonthWindowSchema, ln as parseJsonData, lr as pageDesignDecisionsV2Schema, lt as readFormsMeta, m as commandReportToSyncResult, mn as planEnvironmentExecution, mt as writeMediaManifest, n as entryCommandCompileErrorToReport, ni as publicVenueMapLocationSchema, nn as currentInvocationEnvelope, nt as extractMediaIdentifiers, oi as purchasablePublicMembershipProductSchema, on as managementClientFor, or as sdkSettingsUpdateSchema, ot as readEventCategoriesMeta, p as unsafeAsCliPageIdentifier, pi as eventSurfaceScopeValues, pn as parseEnvironmentSelection, pt as readVenuesMeta, q as admitBinaryWriteDestination, qn as visibilityLevels, qt as CommandFailure, r as entryCommandReportToSyncResult, ri as publicMembershipProductSchema, rn as formatDateShort, rr as isRecord$30, rt as findLegacyEntryFiles, si as purchasablePublicPassProductSchema, sn as mapEntryForOutput, sr as linkPayloadSchema, st as readEventsMeta, t as compileEntryPushCommands, ti as publicMapLocationResultSchema, tn as createOutputForCommand, tt as downloadMedia, u as unsafeAsCliContentTypeKey, ui as calendarSourceCursorSchema, un as resolveCommandPath, ur as sdkConfiguredBookingVerticalConfigSchema, ut as readNavigationMeta, v as commandReportHasFailures, vn as ErrorCodes, vr as bookingQuestionsAnswersSchema, w as mergeManySyncResults, wn as getEnvironmentDebugInfo, wt as readJsonFile, x as formatManagementError, xn as CliExit, xt as ensureDir$1, y as executeCliCommandPlan, yn as formatError, yr as bookingQuestionsSectionSchema, yt as writeMetadataFile, z as buildFieldChanges, zn as blockContentSourceSchema, zt as applyPushConfigPlan } from "../entryCommands-X7gsvEhS.mjs";
|
|
4
|
+
import { $ as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, $t as inferSiteDateLocale, An as resolvePricingOptionsPriceDisplay, Br as parseEventSeriesId, D as WHOLE_SERIES_EVENT_PRESET_VALUES, Dt as buildBookingUtcDateWindow, F as firstLiveRunSessionStartMs, Fr as parseSiteId, G as parseMailingListBlockId, Gt as formatBookingCutOffHours, H as exposeSecret, Ir as parseUserId, J as parseMailingListRuntimeContext, Jr as err$2, Jt as formatDateRange, K as parseMailingListContentVersionId, Kt as hasBookingClosed, L as orderedLiveRunSessions, Nn as mapReadonlyNonEmptyArray, On as publicEventPricingType, Pr as parseApiKeyId, Q as DEFAULT_MAILING_LIST_PRIVACY_NOTE, Qt as formatTimeRange, R as resolveWholeSeriesBookingPhase, Rn as toNonNegativeCents, S as resolveSiteVerticalBookingConfig, Sn as formatEventPricing, St as toLocationCoordinates, Tn as publicEventPricingDisplay, Tt as mapDrawingSchema, U as parseManagementKey, Un as assertNever$13, Ut as bookingCutOffHoursBetween, V as createSecret, Vn as formatCurrencyAmount, Wn as formatDurationUnitLabel, Wt as formatBookingClosedTime, Xr as blockInteractionContextSchema, Xt as formatDateTimeRange, Y as assessMailingListTargeting, Yr as ok$1, Yt as formatDateTime, Zt as formatTime$2, _ as NAVIGATION_LOCATIONS, _r as unsafeAsPositiveByteCount, _t as locationValueSchema, a as isRecord$31, an as formatLocalScheduleTime, at as planMailingListChoicePresentation, bt as projectPublicLocation, cn as getLocalScheduleTime, d as creditProductUnitNoun, dn as parseLocalScheduleTime, en as resolveBookingDisplayContext, er as parseSiteTermsVersionId, fn as parseUtcIsoDateTimeString, gn as toBookingTimeZone, gt as EVENT_ADDRESS_AFTER_BOOKING_LABEL, hn as resolveBookingTimeZoneId, hr as unsafeAsMediaAssetId, in as formatLocalScheduleDate, it as DEFAULT_MAILING_LIST_TARGETING, kn as resolveExactOrFreePriceDisplay, mn as resolveBookingBusinessTimeZone, mt as stableJsonStringify, on as getBookingLocalDateKey, ot as isCanonicalRichTextDoc, p as formatCreditProductUnits, pn as toUtcIsoDateTimeString, pt as decideLocationSave, q as parseMailingListSignedSourceToken, qt as formatDate$3, rn as compareLocalScheduleDates, rt as parseMailingListPlacementTargeting, sn as getLocalScheduleDate, st as richTextHasText, tn as toScheduledBookingDateTime, tt as parseFooterCompositionV1, un as parseBookingLocalDate, ut as parseWeeklyOpeningHours, vn as parsePageSurfaceSubject, vt as normalizeLocationAddressText, w as EVENT_PRESET_VALUES, wt as trimmedStringOrNull, xn as formatBookingPriceDisplay, xt as publicLocationSchema, yn as EVENT_PRESET_VOCABULARY, yt as parseLocationValue } from "../src-oeP1NG4L.mjs";
|
|
5
|
+
import { r as CLI_VERSION, t as loadConfigFile } from "../load-config-DHwkmd3-.mjs";
|
|
6
|
+
import { t as eventUpsertInputSchema } from "../eventUpsertInputSchema-DzMuFAid.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-C5yEQouF.mjs";
|
|
8
8
|
import { config } from "dotenv";
|
|
9
9
|
import { z as z$1 } from "zod";
|
|
10
10
|
import { Command, CommanderError } from "commander";
|
|
@@ -7423,6 +7423,19 @@ const outsideQuotedStrings = (value) => value.replace(QUOTED_STRING, "");
|
|
|
7423
7423
|
function staysInsideDeclaration(value) {
|
|
7424
7424
|
return !TAG_BRACKET.test(value) && !DECLARATION_BREAK.test(outsideQuotedStrings(value));
|
|
7425
7425
|
}
|
|
7426
|
+
/** `url(` and `image-set(` (which `-webkit-image-set(` ends in), the two every browser fetches through. */
|
|
7427
|
+
const LOADING_FUNCTION_CALL = /(?:url|image-set)\(/i;
|
|
7428
|
+
/**
|
|
7429
|
+
* True when `value` calls `url()` or `image-set()`, in any letter case.
|
|
7430
|
+
*
|
|
7431
|
+
* Only meaningful for a value that `staysInsideDeclaration`: that rule refuses
|
|
7432
|
+
* backslashes, so the name cannot be spelled with CSS escapes. A name split
|
|
7433
|
+
* from its bracket by a space or a comment is not a function call to a browser
|
|
7434
|
+
* either, so it fetches nothing.
|
|
7435
|
+
*/
|
|
7436
|
+
function callsCssLoadingFunction(value) {
|
|
7437
|
+
return LOADING_FUNCTION_CALL.test(outsideQuotedStrings(value));
|
|
7438
|
+
}
|
|
7426
7439
|
// ../theme-core/src/utils/colorStyles.ts
|
|
7427
7440
|
const COLOR_VAR_PREFIX = "--tb-";
|
|
7428
7441
|
function parseToken(source) {
|
|
@@ -10305,6 +10318,18 @@ function mapSurfaceTreeChildren(value, map) {
|
|
|
10305
10318
|
if (value instanceof Date) return value;
|
|
10306
10319
|
return isSurfaceTreeRecord(value) ? Object.fromEntries(Object.entries(value).map(([key, item]) => [key, map(item)])) : value;
|
|
10307
10320
|
}
|
|
10321
|
+
/** Section grounds and slot tints share the same all-samples ink certificate. */
|
|
10322
|
+
function certifyFinishedGround(finish, foreground, context) {
|
|
10323
|
+
const certified = certifySampledForeground(foreground, finish.samples, context);
|
|
10324
|
+
return certified ? {
|
|
10325
|
+
kind: "certified",
|
|
10326
|
+
finish,
|
|
10327
|
+
foreground: certified
|
|
10328
|
+
} : {
|
|
10329
|
+
kind: "dropped",
|
|
10330
|
+
reason: "unreadable-finish"
|
|
10331
|
+
};
|
|
10332
|
+
}
|
|
10308
10333
|
function nonemptySamples(samples) {
|
|
10309
10334
|
const [first, ...rest] = samples ?? [];
|
|
10310
10335
|
return first === void 0 ? void 0 : [first, ...rest];
|
|
@@ -13374,16 +13399,145 @@ z$1.object({
|
|
|
13374
13399
|
value: z$1.string().min(1).transform(asBoundaryOptionId)
|
|
13375
13400
|
}).strict();
|
|
13376
13401
|
pageDesignDecisionsV2Schema.safeExtend({ siteStyleId: z$1.string().min(1).startsWith("site-style:", { error: "SiteStyleId must start with \"site-style:\"." }).transform(asSiteStyleId) });
|
|
13377
|
-
[
|
|
13402
|
+
const textureInkSrgb = [
|
|
13378
13403
|
.5,
|
|
13379
13404
|
.45,
|
|
13380
13405
|
.4
|
|
13381
13406
|
].map(linearToSrgb);
|
|
13407
|
+
/**
|
|
13408
|
+
* Bound the actual tile colour with its CSS blend and opacity. Alpha spans [0, 1], so the
|
|
13409
|
+
* untinted ground and full-alpha tile bound every noise pixel at every raster scale.
|
|
13410
|
+
* Sampling black and white would invent colours this matrix cannot draw.
|
|
13411
|
+
*/
|
|
13412
|
+
function groundTextureSamples(colour, texture) {
|
|
13413
|
+
const { r, g, b } = hexToRgb(colour);
|
|
13414
|
+
const base = [
|
|
13415
|
+
r,
|
|
13416
|
+
g,
|
|
13417
|
+
b
|
|
13418
|
+
];
|
|
13419
|
+
const sample = (alpha) => base.map((channel, index) => {
|
|
13420
|
+
const ink = textureInkSrgb[index] ?? 0;
|
|
13421
|
+
return channel + ((texture.blend === "multiply" ? channel * ink / 255 : 255 - (255 - channel) * (255 - ink) / 255) - channel) * texture.strength * alpha;
|
|
13422
|
+
});
|
|
13423
|
+
return [colour, ...[.5, 1].map((alpha) => {
|
|
13424
|
+
const [red = r, green = g, blue = b] = sample(alpha);
|
|
13425
|
+
return rgbToHex(red, green, blue);
|
|
13426
|
+
})];
|
|
13427
|
+
}
|
|
13382
13428
|
// ../theme-core/src/site-styles/groundPaint.ts
|
|
13383
13429
|
/** Covers every currently admitted edge, including owner pins; stage 4 can narrow it per style. */
|
|
13384
13430
|
const groundFlatZone = `max(${[...new Set(transitionCatalogueEntries.map((entry) => boundaryRuntimeMetricsForDecorativeTransition(entry.intent).heightCss))].join(", ")})`;
|
|
13385
|
-
|
|
13386
|
-
|
|
13431
|
+
const groundRampStops = `0 min(50%, ${groundFlatZone}),`;
|
|
13432
|
+
const groundRampEnd = `max(50%, calc(100% - ${groundFlatZone})) 100%`;
|
|
13433
|
+
const capped = (strength, cap) => Number.isFinite(strength) ? Math.max(0, Math.min(cap, strength ?? 0)) : 0;
|
|
13434
|
+
/** Palette mixing chooses the stops; CSS interpolation between those stops is sRGB. */
|
|
13435
|
+
function mixGroundColour(from, to, amount) {
|
|
13436
|
+
const a = hexToRgb(from);
|
|
13437
|
+
const b = hexToRgb(to);
|
|
13438
|
+
const x = srgbToOklab(a.r, a.g, a.b);
|
|
13439
|
+
const y = srgbToOklab(b.r, b.g, b.b);
|
|
13440
|
+
const mix = (start, end) => start + (end - start) * amount;
|
|
13441
|
+
const rgb = oklabToSrgb(mix(x.L, y.L), mix(x.a, y.a), mix(x.b, y.b));
|
|
13442
|
+
return rgbToHex(rgb.r, rgb.g, rgb.b);
|
|
13443
|
+
}
|
|
13444
|
+
/** Admit the style's vocabulary and strength; this never reads owner storage. */
|
|
13445
|
+
function resolveGroundPaint(paint, offers, palette) {
|
|
13446
|
+
const base = resolveConcreteColorHex(paint.base, palette);
|
|
13447
|
+
if (!base) return null;
|
|
13448
|
+
const { tone, strength } = offeredGroundTone(paint.tone, offers);
|
|
13449
|
+
const texture = resolveGroundTexture(paint.texture, offers, base);
|
|
13450
|
+
const resolved = resolveTone(base, tone, strength, palette);
|
|
13451
|
+
if (!resolved) return null;
|
|
13452
|
+
const painted = texture ? resolved.samples.flatMap((colour) => groundTextureSamples(colour, texture)) : resolved.samples;
|
|
13453
|
+
const samples = [.../* @__PURE__ */ new Set([...painted, ...continuousPaintBounds(painted)])];
|
|
13454
|
+
return {
|
|
13455
|
+
...resolved,
|
|
13456
|
+
samples,
|
|
13457
|
+
paint: {
|
|
13458
|
+
base: paint.base,
|
|
13459
|
+
...tone ? { tone } : {},
|
|
13460
|
+
...texture ? { texture: texture.kind } : {}
|
|
13461
|
+
},
|
|
13462
|
+
...texture ? { texture } : {}
|
|
13463
|
+
};
|
|
13464
|
+
}
|
|
13465
|
+
function resolveTone(base, tone, strength, palette) {
|
|
13466
|
+
if (!tone) return {
|
|
13467
|
+
topPaint: base,
|
|
13468
|
+
footPaint: base,
|
|
13469
|
+
samples: [base],
|
|
13470
|
+
background: base
|
|
13471
|
+
};
|
|
13472
|
+
if (tone.kind === "shading") {
|
|
13473
|
+
const lighter = tone.direction === "lighter-from-top";
|
|
13474
|
+
return linearTone(lighter ? mixGroundColour(base, "#ffffff", strength) : base, lighter ? base : mixGroundColour(base, "#000000", strength));
|
|
13475
|
+
}
|
|
13476
|
+
const second = resolveConcreteColorHex(tone.colour, palette);
|
|
13477
|
+
if (!second) return null;
|
|
13478
|
+
const end = mixGroundColour(base, second, strength);
|
|
13479
|
+
if (tone.kind === "gradient") return linearTone(base, end);
|
|
13480
|
+
const position = tone.position === "side" ? "farthest-side at 0% 50%" : "closest-side at 50% 50%";
|
|
13481
|
+
return {
|
|
13482
|
+
topPaint: base,
|
|
13483
|
+
footPaint: base,
|
|
13484
|
+
glowColour: end,
|
|
13485
|
+
samples: [
|
|
13486
|
+
base,
|
|
13487
|
+
mixSrgbColour(base, end),
|
|
13488
|
+
end
|
|
13489
|
+
],
|
|
13490
|
+
background: `radial-gradient(${position}, ${end}, ${base}) 0 min(50%, ${groundFlatZone}) / 100% max(0px, calc(100% - 2 * ${groundFlatZone})) no-repeat, ${base}`
|
|
13491
|
+
};
|
|
13492
|
+
}
|
|
13493
|
+
function linearTone(topPaint, footPaint) {
|
|
13494
|
+
return {
|
|
13495
|
+
topPaint,
|
|
13496
|
+
footPaint,
|
|
13497
|
+
samples: [
|
|
13498
|
+
topPaint,
|
|
13499
|
+
mixSrgbColour(topPaint, footPaint),
|
|
13500
|
+
footPaint
|
|
13501
|
+
],
|
|
13502
|
+
background: `linear-gradient(to bottom, ${topPaint} ${groundRampStops} ${footPaint} ${groundRampEnd})`
|
|
13503
|
+
};
|
|
13504
|
+
}
|
|
13505
|
+
/** One blend decision for section and edge texture delivery. */
|
|
13506
|
+
function resolveGroundTexture(kind, offers, base) {
|
|
13507
|
+
if (!kind) return void 0;
|
|
13508
|
+
const strength = capped(offers.textures[kind], .5);
|
|
13509
|
+
if (strength === 0) return void 0;
|
|
13510
|
+
return {
|
|
13511
|
+
kind,
|
|
13512
|
+
strength,
|
|
13513
|
+
blend: hexLuminance(base) > .179 ? "multiply" : "screen"
|
|
13514
|
+
};
|
|
13515
|
+
}
|
|
13516
|
+
/** Only the offered tone and its bounded strength reach paint generation. */
|
|
13517
|
+
function offeredGroundTone(tone, offers) {
|
|
13518
|
+
if (!tone) return { strength: 0 };
|
|
13519
|
+
const strength = capped(offers.tones[tone.kind], tone.kind === "gradient" ? 1 : .3);
|
|
13520
|
+
return strength > 0 ? {
|
|
13521
|
+
tone,
|
|
13522
|
+
strength
|
|
13523
|
+
} : { strength: 0 };
|
|
13524
|
+
}
|
|
13525
|
+
/** Match the default CSS interpolation; the middle is useful evidence, not the range proof. */
|
|
13526
|
+
function mixSrgbColour(from, to) {
|
|
13527
|
+
const a = hexToRgb(from);
|
|
13528
|
+
const b = hexToRgb(to);
|
|
13529
|
+
return rgbToHex((a.r + b.r) / 2, (a.g + b.g) / 2, (a.b + b.b) / 2);
|
|
13530
|
+
}
|
|
13531
|
+
/**
|
|
13532
|
+
* sRGB stops are component-wise linear. Multiply/screen with one tile ink is bilinear in
|
|
13533
|
+
* stop position and tile alpha, so all channel extrema occur at sampled corners. These
|
|
13534
|
+
* enclosing colours conservatively bound luminance over the entire tone-plus-texture field.
|
|
13535
|
+
*/
|
|
13536
|
+
function continuousPaintBounds(samples) {
|
|
13537
|
+
const colours = samples.map(hexToRgb);
|
|
13538
|
+
const channel = (key, bound) => bound(...colours.map((colour) => colour[key]));
|
|
13539
|
+
return [Math.min, Math.max].map((bound) => rgbToHex(channel("r", bound), channel("g", bound), channel("b", bound)));
|
|
13540
|
+
}
|
|
13387
13541
|
// ../theme-core/src/site-styles/rawStyleFields.ts
|
|
13388
13542
|
const themeV2RuntimeStyleFieldNames = [
|
|
13389
13543
|
"_frameStyles",
|
|
@@ -13403,6 +13557,18 @@ const themeV2NormalEditorRawStyleFieldNames = [
|
|
|
13403
13557
|
];
|
|
13404
13558
|
new Set(themeV2NormalEditorRawStyleFieldNames);
|
|
13405
13559
|
const themeV2CompilerOwnedFieldNames = [...themeV2RuntimeStyleFieldNames, ...themeV2BlockSpecificRawStyleFieldNames];
|
|
13560
|
+
[...[
|
|
13561
|
+
165,
|
|
13562
|
+
150,
|
|
13563
|
+
135,
|
|
13564
|
+
120,
|
|
13565
|
+
105,
|
|
13566
|
+
90,
|
|
13567
|
+
75,
|
|
13568
|
+
60,
|
|
13569
|
+
45,
|
|
13570
|
+
30
|
|
13571
|
+
].flatMap((o) => [o, -o])];
|
|
13406
13572
|
const policiesById = {
|
|
13407
13573
|
"darken-background": "other",
|
|
13408
13574
|
"lighten-background": "other",
|
|
@@ -13895,6 +14061,14 @@ const bookingLookGroundLimits = {
|
|
|
13895
14061
|
"site-style:poise": {
|
|
13896
14062
|
lightness: [.88, 1],
|
|
13897
14063
|
maxChroma: .04
|
|
14064
|
+
},
|
|
14065
|
+
"site-style:press": {
|
|
14066
|
+
lightness: [.88, 1],
|
|
14067
|
+
maxChroma: .04
|
|
14068
|
+
},
|
|
14069
|
+
"site-style:vista": {
|
|
14070
|
+
lightness: [.88, 1],
|
|
14071
|
+
maxChroma: .03
|
|
13898
14072
|
}
|
|
13899
14073
|
};
|
|
13900
14074
|
const contrast = (against, ratio = 3) => ({
|
|
@@ -14667,6 +14841,200 @@ const poiseBrand = {
|
|
|
14667
14841
|
roles: ["primary"],
|
|
14668
14842
|
name: "the colour panels and buttons"
|
|
14669
14843
|
};
|
|
14844
|
+
const poise = {
|
|
14845
|
+
buttonSlot: poiseBrand,
|
|
14846
|
+
roles: {
|
|
14847
|
+
...lightGrounds(poiseLimits, {
|
|
14848
|
+
page: .01,
|
|
14849
|
+
band: .03,
|
|
14850
|
+
bandL: [.9, .945]
|
|
14851
|
+
}),
|
|
14852
|
+
surfaceAlt: {
|
|
14853
|
+
l: [.9, .945],
|
|
14854
|
+
c: [0, .03],
|
|
14855
|
+
chromaShare: .3,
|
|
14856
|
+
target: .925,
|
|
14857
|
+
name: "the band",
|
|
14858
|
+
needs: [distinct("background", .03)]
|
|
14859
|
+
},
|
|
14860
|
+
muted: {
|
|
14861
|
+
l: [.93, .965],
|
|
14862
|
+
c: [0, .03],
|
|
14863
|
+
chromaShare: .25,
|
|
14864
|
+
target: .948,
|
|
14865
|
+
name: "the quieter panels",
|
|
14866
|
+
needs: [distinct("background", .015)]
|
|
14867
|
+
},
|
|
14868
|
+
primary: {
|
|
14869
|
+
l: [.66, .93],
|
|
14870
|
+
c: [.03, .2],
|
|
14871
|
+
target: .8,
|
|
14872
|
+
name: "the colour panels and buttons",
|
|
14873
|
+
mention: true,
|
|
14874
|
+
needs: buttonSeparation(lightReading)
|
|
14875
|
+
},
|
|
14876
|
+
secondary: {
|
|
14877
|
+
l: [.18, .4],
|
|
14878
|
+
c: [.01, .08],
|
|
14879
|
+
target: .28,
|
|
14880
|
+
name: "the quiet details"
|
|
14881
|
+
},
|
|
14882
|
+
accent: {
|
|
14883
|
+
l: [.2, .66],
|
|
14884
|
+
c: [.05, .17],
|
|
14885
|
+
target: .42,
|
|
14886
|
+
name: "the small marks",
|
|
14887
|
+
mention: true,
|
|
14888
|
+
analogous: true,
|
|
14889
|
+
needs: [
|
|
14890
|
+
contrast("background"),
|
|
14891
|
+
contrast("surface"),
|
|
14892
|
+
contrast("surfaceAlt"),
|
|
14893
|
+
contrast("primary")
|
|
14894
|
+
]
|
|
14895
|
+
}
|
|
14896
|
+
},
|
|
14897
|
+
slots: [poiseBrand, {
|
|
14898
|
+
roles: ["accent"],
|
|
14899
|
+
name: "the small marks"
|
|
14900
|
+
}],
|
|
14901
|
+
order: [
|
|
14902
|
+
"background",
|
|
14903
|
+
"surface",
|
|
14904
|
+
"surfaceAlt",
|
|
14905
|
+
"muted",
|
|
14906
|
+
"border",
|
|
14907
|
+
"primary",
|
|
14908
|
+
"secondary",
|
|
14909
|
+
"accent"
|
|
14910
|
+
],
|
|
14911
|
+
neutrals: {
|
|
14912
|
+
dark: [.22, .015],
|
|
14913
|
+
light: [.99, .006]
|
|
14914
|
+
},
|
|
14915
|
+
reading: lightReading,
|
|
14916
|
+
groundLimit: poiseLimits.maxChroma,
|
|
14917
|
+
contrast: [{
|
|
14918
|
+
label: "the complement on the small marks",
|
|
14919
|
+
hue: "complement",
|
|
14920
|
+
second: "accent",
|
|
14921
|
+
lead: "primary",
|
|
14922
|
+
l: .42,
|
|
14923
|
+
c: [.08, .14]
|
|
14924
|
+
}, {
|
|
14925
|
+
label: "a warm colour on the small marks",
|
|
14926
|
+
hue: "split-warm",
|
|
14927
|
+
second: "accent",
|
|
14928
|
+
lead: "primary",
|
|
14929
|
+
l: .42,
|
|
14930
|
+
c: [.08, .14]
|
|
14931
|
+
}]
|
|
14932
|
+
};
|
|
14933
|
+
/**
|
|
14934
|
+
* Press: two inks on paper. The first ink prints the buttons and keylines, the
|
|
14935
|
+
* second slips behind the headlines and draws the marks, and a spot colour
|
|
14936
|
+
* decorates the opening. Its curated palettes keep muted as an ink, but nothing the
|
|
14937
|
+
* booking page paints uses it, so own colours keep it a quiet light ground.
|
|
14938
|
+
*/
|
|
14939
|
+
const pressLimits = bookingLookGroundLimits["site-style:press"];
|
|
14940
|
+
const pressInk = {
|
|
14941
|
+
roles: ["primary"],
|
|
14942
|
+
name: "the buttons and outlines"
|
|
14943
|
+
};
|
|
14944
|
+
const press = {
|
|
14945
|
+
buttonSlot: pressInk,
|
|
14946
|
+
roles: {
|
|
14947
|
+
...lightGrounds(pressLimits, {
|
|
14948
|
+
page: .018,
|
|
14949
|
+
band: .03,
|
|
14950
|
+
bandL: [.9, .945]
|
|
14951
|
+
}),
|
|
14952
|
+
surfaceAlt: {
|
|
14953
|
+
l: [.9, .945],
|
|
14954
|
+
c: [0, .03],
|
|
14955
|
+
chromaShare: .3,
|
|
14956
|
+
target: .92,
|
|
14957
|
+
name: "the band",
|
|
14958
|
+
needs: [distinct("background", .03)]
|
|
14959
|
+
},
|
|
14960
|
+
muted: {
|
|
14961
|
+
l: [.93, .965],
|
|
14962
|
+
c: [0, .03],
|
|
14963
|
+
chromaShare: .25,
|
|
14964
|
+
target: .948,
|
|
14965
|
+
name: "the quieter panels",
|
|
14966
|
+
needs: [distinct("background", .015)]
|
|
14967
|
+
},
|
|
14968
|
+
primary: {
|
|
14969
|
+
l: [.28, .55],
|
|
14970
|
+
c: [.04, .17],
|
|
14971
|
+
target: .42,
|
|
14972
|
+
name: "the buttons and outlines",
|
|
14973
|
+
mention: true,
|
|
14974
|
+
needs: buttonSeparation(lightReading)
|
|
14975
|
+
},
|
|
14976
|
+
secondary: {
|
|
14977
|
+
l: [.68, .9],
|
|
14978
|
+
c: [.05, .17],
|
|
14979
|
+
target: .8,
|
|
14980
|
+
name: "the spot colour",
|
|
14981
|
+
needs: [distinct("primary", .1), distinct("background", .12)]
|
|
14982
|
+
},
|
|
14983
|
+
accent: {
|
|
14984
|
+
l: [.5, .74],
|
|
14985
|
+
c: [.08, .22],
|
|
14986
|
+
target: .66,
|
|
14987
|
+
name: "the second ink",
|
|
14988
|
+
mention: true,
|
|
14989
|
+
analogous: true,
|
|
14990
|
+
needs: [distinct("primary", .1), distinct("background", .1)]
|
|
14991
|
+
}
|
|
14992
|
+
},
|
|
14993
|
+
slots: [pressInk, {
|
|
14994
|
+
roles: ["accent"],
|
|
14995
|
+
name: "the second ink"
|
|
14996
|
+
}],
|
|
14997
|
+
order: [
|
|
14998
|
+
"background",
|
|
14999
|
+
"surface",
|
|
15000
|
+
"surfaceAlt",
|
|
15001
|
+
"muted",
|
|
15002
|
+
"border",
|
|
15003
|
+
"primary",
|
|
15004
|
+
"accent",
|
|
15005
|
+
"secondary"
|
|
15006
|
+
],
|
|
15007
|
+
neutrals: {
|
|
15008
|
+
dark: [.24, .03],
|
|
15009
|
+
light: [.985, .01]
|
|
15010
|
+
},
|
|
15011
|
+
reading: lightReading,
|
|
15012
|
+
groundLimit: pressLimits.maxChroma,
|
|
15013
|
+
contrast: [{
|
|
15014
|
+
label: "the complement as the second ink",
|
|
15015
|
+
hue: "complement",
|
|
15016
|
+
second: "accent",
|
|
15017
|
+
lead: "primary",
|
|
15018
|
+
l: .66,
|
|
15019
|
+
c: [.1, .18]
|
|
15020
|
+
}, {
|
|
15021
|
+
label: "a warm colour on the buttons",
|
|
15022
|
+
hue: "split-warm",
|
|
15023
|
+
second: "primary",
|
|
15024
|
+
lead: "accent",
|
|
15025
|
+
l: .45,
|
|
15026
|
+
c: [.08, .14]
|
|
15027
|
+
}]
|
|
15028
|
+
};
|
|
15029
|
+
/**
|
|
15030
|
+
* Vista: the photos carry the colour. A quiet page, buttons in the primary,
|
|
15031
|
+
* small ticks in the accent and a deep ground under the footer on the secondary.
|
|
15032
|
+
*/
|
|
15033
|
+
const vistaLimits = bookingLookGroundLimits["site-style:vista"];
|
|
15034
|
+
const vistaButtons = {
|
|
15035
|
+
roles: ["primary"],
|
|
15036
|
+
name: "the buttons"
|
|
15037
|
+
};
|
|
14670
15038
|
/** Keyed by the offered looks, so a booking look without a colour spec doesn't compile. */
|
|
14671
15039
|
const bookingLookColourSpecs = {
|
|
14672
15040
|
"site-style:fulcrum": fulcrum,
|
|
@@ -14676,48 +15044,51 @@ const bookingLookColourSpecs = {
|
|
|
14676
15044
|
"site-style:poster": poster,
|
|
14677
15045
|
"site-style:loom": loom,
|
|
14678
15046
|
"site-style:brook": brook,
|
|
14679
|
-
"site-style:poise":
|
|
14680
|
-
|
|
15047
|
+
"site-style:poise": poise,
|
|
15048
|
+
"site-style:press": press,
|
|
15049
|
+
"site-style:vista": {
|
|
15050
|
+
buttonSlot: vistaButtons,
|
|
14681
15051
|
roles: {
|
|
14682
|
-
...lightGrounds(
|
|
14683
|
-
page: .
|
|
14684
|
-
band: .
|
|
15052
|
+
...lightGrounds(vistaLimits, {
|
|
15053
|
+
page: .012,
|
|
15054
|
+
band: .022,
|
|
14685
15055
|
bandL: [.9, .945]
|
|
14686
15056
|
}),
|
|
14687
15057
|
surfaceAlt: {
|
|
14688
15058
|
l: [.9, .945],
|
|
14689
|
-
c: [0, .
|
|
15059
|
+
c: [0, .022],
|
|
14690
15060
|
chromaShare: .3,
|
|
14691
|
-
target: .
|
|
15061
|
+
target: .92,
|
|
14692
15062
|
name: "the band",
|
|
14693
15063
|
needs: [distinct("background", .03)]
|
|
14694
15064
|
},
|
|
14695
15065
|
muted: {
|
|
14696
15066
|
l: [.93, .965],
|
|
14697
|
-
c: [0, .
|
|
15067
|
+
c: [0, .022],
|
|
14698
15068
|
chromaShare: .25,
|
|
14699
15069
|
target: .948,
|
|
14700
15070
|
name: "the quieter panels",
|
|
14701
15071
|
needs: [distinct("background", .015)]
|
|
14702
15072
|
},
|
|
14703
15073
|
primary: {
|
|
14704
|
-
l: [.
|
|
14705
|
-
c: [.
|
|
14706
|
-
target: .
|
|
14707
|
-
name: "the
|
|
15074
|
+
l: [.28, .58],
|
|
15075
|
+
c: [.02, .14],
|
|
15076
|
+
target: .4,
|
|
15077
|
+
name: "the buttons",
|
|
14708
15078
|
mention: true,
|
|
14709
15079
|
needs: buttonSeparation(lightReading)
|
|
14710
15080
|
},
|
|
14711
15081
|
secondary: {
|
|
14712
|
-
l: [.
|
|
14713
|
-
c: [.
|
|
14714
|
-
target: .
|
|
14715
|
-
name: "the
|
|
15082
|
+
l: [.14, .3],
|
|
15083
|
+
c: [.005, .05],
|
|
15084
|
+
target: .24,
|
|
15085
|
+
name: "the deep ground",
|
|
15086
|
+
needs: [contrast("surface")]
|
|
14716
15087
|
},
|
|
14717
15088
|
accent: {
|
|
14718
|
-
l: [.
|
|
14719
|
-
c: [.05, .
|
|
14720
|
-
target: .
|
|
15089
|
+
l: [.38, .62],
|
|
15090
|
+
c: [.05, .15],
|
|
15091
|
+
target: .52,
|
|
14721
15092
|
name: "the small marks",
|
|
14722
15093
|
mention: true,
|
|
14723
15094
|
analogous: true,
|
|
@@ -14725,11 +15096,11 @@ const bookingLookColourSpecs = {
|
|
|
14725
15096
|
contrast("background"),
|
|
14726
15097
|
contrast("surface"),
|
|
14727
15098
|
contrast("surfaceAlt"),
|
|
14728
|
-
|
|
15099
|
+
distinct("primary", .1)
|
|
14729
15100
|
]
|
|
14730
15101
|
}
|
|
14731
15102
|
},
|
|
14732
|
-
slots: [
|
|
15103
|
+
slots: [vistaButtons, {
|
|
14733
15104
|
roles: ["accent"],
|
|
14734
15105
|
name: "the small marks"
|
|
14735
15106
|
}],
|
|
@@ -14745,24 +15116,24 @@ const bookingLookColourSpecs = {
|
|
|
14745
15116
|
],
|
|
14746
15117
|
neutrals: {
|
|
14747
15118
|
dark: [.22, .015],
|
|
14748
|
-
light: [.
|
|
15119
|
+
light: [.985, .008]
|
|
14749
15120
|
},
|
|
14750
15121
|
reading: lightReading,
|
|
14751
|
-
groundLimit:
|
|
15122
|
+
groundLimit: vistaLimits.maxChroma,
|
|
14752
15123
|
contrast: [{
|
|
14753
15124
|
label: "the complement on the small marks",
|
|
14754
15125
|
hue: "complement",
|
|
14755
15126
|
second: "accent",
|
|
14756
15127
|
lead: "primary",
|
|
14757
|
-
l: .
|
|
14758
|
-
c: [.08, .
|
|
15128
|
+
l: .52,
|
|
15129
|
+
c: [.08, .13]
|
|
14759
15130
|
}, {
|
|
14760
|
-
label: "a warm colour on the
|
|
15131
|
+
label: "a warm colour on the buttons",
|
|
14761
15132
|
hue: "split-warm",
|
|
14762
|
-
second: "
|
|
14763
|
-
lead: "
|
|
15133
|
+
second: "primary",
|
|
15134
|
+
lead: "accent",
|
|
14764
15135
|
l: .42,
|
|
14765
|
-
c: [.
|
|
15136
|
+
c: [.06, .12]
|
|
14766
15137
|
}]
|
|
14767
15138
|
}
|
|
14768
15139
|
};
|
|
@@ -18997,7 +19368,7 @@ const ticketStubRecipe = defineStaticButtonStyleRecipe({
|
|
|
18997
19368
|
* shift would not show on the flipped grounds, where the fill does not move. The second button is the same block in outline, whose edge
|
|
18998
19369
|
* doubles on hover; the link is the label over a heavy line that grows.
|
|
18999
19370
|
*/
|
|
19000
|
-
const STEP
|
|
19371
|
+
const STEP = "transform 140ms cubic-bezier(0.3, 0.7, 0.2, 1)";
|
|
19001
19372
|
const fontSizes$10 = {
|
|
19002
19373
|
sm: "text-base",
|
|
19003
19374
|
md: "text-lg",
|
|
@@ -19044,7 +19415,7 @@ const lettering$5 = {
|
|
|
19044
19415
|
};
|
|
19045
19416
|
const self$6 = {
|
|
19046
19417
|
...lettering$5,
|
|
19047
|
-
transition: `${STEP
|
|
19418
|
+
transition: `${STEP}, box-shadow 120ms linear`
|
|
19048
19419
|
};
|
|
19049
19420
|
const ring$2 = (width) => ({
|
|
19050
19421
|
inset: true,
|
|
@@ -19065,7 +19436,7 @@ const gap = (width) => ({
|
|
|
19065
19436
|
});
|
|
19066
19437
|
const arrow$3 = {
|
|
19067
19438
|
...trailingShape("ArrowRight", "1em", "0.6em"),
|
|
19068
|
-
transition: STEP
|
|
19439
|
+
transition: STEP
|
|
19069
19440
|
};
|
|
19070
19441
|
/** The main block: the fill, the label and the arrow. */
|
|
19071
19442
|
function filled$7(token) {
|
|
@@ -19162,7 +19533,7 @@ const bar$3 = (paint, size) => ({
|
|
|
19162
19533
|
});
|
|
19163
19534
|
const linkSelf$7 = {
|
|
19164
19535
|
...lettering$5,
|
|
19165
|
-
transition: STEP
|
|
19536
|
+
transition: STEP
|
|
19166
19537
|
};
|
|
19167
19538
|
const linkRest$9 = {
|
|
19168
19539
|
...visual$12,
|
|
@@ -31738,14 +32109,36 @@ const bookingPageNoPhotoHeroLookIds = {
|
|
|
31738
32109
|
"site-style:poster": "hero-page-head",
|
|
31739
32110
|
"site-style:loom": "hero-page-head",
|
|
31740
32111
|
"site-style:brook": "hero-page-head",
|
|
31741
|
-
"site-style:poise": "hero-page-head"
|
|
32112
|
+
"site-style:poise": "hero-page-head",
|
|
32113
|
+
"site-style:press": "hero-page-head",
|
|
32114
|
+
"site-style:vista": "hero-page-head"
|
|
32115
|
+
};
|
|
32116
|
+
/**
|
|
32117
|
+
* People expect a cover photo to run across the page, so these styles open with
|
|
32118
|
+
* it. The others are built around the shape that holds the photo, and keep it.
|
|
32119
|
+
* Only booking pages take this: a website's hero stays the style's automatic one.
|
|
32120
|
+
*/
|
|
32121
|
+
const bookingPageCoverHeroLookIds = {
|
|
32122
|
+
"site-style:fulcrum": "hero-photo-behind-text",
|
|
32123
|
+
"site-style:folio": "hero-photo-behind-text",
|
|
32124
|
+
"site-style:measure": null,
|
|
32125
|
+
"site-style:lantern": null,
|
|
32126
|
+
"site-style:poster": null,
|
|
32127
|
+
"site-style:loom": null,
|
|
32128
|
+
"site-style:brook": "hero-text-over-photo",
|
|
32129
|
+
"site-style:poise": "hero-photo-behind-text",
|
|
32130
|
+
"site-style:press": null,
|
|
32131
|
+
"site-style:vista": "hero-photo-behind-text"
|
|
31742
32132
|
};
|
|
31743
32133
|
function bookingPageOfferingFor(siteStyleId) {
|
|
31744
32134
|
const lookId = bookingPageLookIdValues.find((id) => id === siteStyleId);
|
|
31745
|
-
|
|
32135
|
+
if (!lookId) return void 0;
|
|
32136
|
+
const coverHeroLookId = bookingPageCoverHeroLookIds[lookId];
|
|
32137
|
+
return {
|
|
31746
32138
|
noPhotoHeroLookId: asAppearancePresetId(bookingPageNoPhotoHeroLookIds[lookId]),
|
|
32139
|
+
coverHeroLookId: coverHeroLookId === null ? null : asAppearancePresetId(coverHeroLookId),
|
|
31747
32140
|
colourSpec: bookingLookColourSpecs[lookId]
|
|
31748
|
-
}
|
|
32141
|
+
};
|
|
31749
32142
|
}
|
|
31750
32143
|
function clientStyleMatchesSite(siteSlugs, target) {
|
|
31751
32144
|
if (target.audience !== "site-picker" && target.audience !== "local-demo") return false;
|
|
@@ -39041,18 +39434,6 @@ function collectBlockSequenceIssues(snapshots) {
|
|
|
39041
39434
|
];
|
|
39042
39435
|
});
|
|
39043
39436
|
}
|
|
39044
|
-
[...[
|
|
39045
|
-
165,
|
|
39046
|
-
150,
|
|
39047
|
-
135,
|
|
39048
|
-
120,
|
|
39049
|
-
105,
|
|
39050
|
-
90,
|
|
39051
|
-
75,
|
|
39052
|
-
60,
|
|
39053
|
-
45,
|
|
39054
|
-
30
|
|
39055
|
-
].flatMap((o) => [o, -o])];
|
|
39056
39437
|
// ../theme-core/src/site-styles/edgePath.ts
|
|
39057
39438
|
const waveMaskSvgPaths = {
|
|
39058
39439
|
classic: "M0 72V46C130 55 260 24 420 30C590 36 690 62 860 42C1035 21 1160 47 1305 36C1365 31 1415 33 1440 38V72H0Z",
|
|
@@ -39465,12 +39846,36 @@ function footerMainPaint(footer) {
|
|
|
39465
39846
|
function footerSideBandPaint(footer, band) {
|
|
39466
39847
|
return footer?.bands?.[band] ?? null;
|
|
39467
39848
|
}
|
|
39468
|
-
/**
|
|
39469
|
-
|
|
39470
|
-
|
|
39849
|
+
/**
|
|
39850
|
+
* The main ground, its inks and any texture or colour change on it. As on a
|
|
39851
|
+
* section, a finish that would make the text hard to read isn't painted.
|
|
39852
|
+
*/
|
|
39853
|
+
function resolveFooterMainSurface(footer, palette, proseHoverCandidate) {
|
|
39854
|
+
const paint = footerMainPaint(footer);
|
|
39855
|
+
const foreground = resolveSurfaceForeground({
|
|
39471
39856
|
type: "color",
|
|
39472
|
-
color:
|
|
39857
|
+
color: paint.ground
|
|
39473
39858
|
}, palette, footerForegroundCandidates(footer, proseHoverCandidate), { compositeBase: "background" });
|
|
39859
|
+
const finish = paint.finish ? resolveGroundPaint({
|
|
39860
|
+
base: paint.ground,
|
|
39861
|
+
...paint.finish.paint
|
|
39862
|
+
}, paint.finish.offers, palette) : null;
|
|
39863
|
+
if (!finish) return {
|
|
39864
|
+
foreground,
|
|
39865
|
+
finish: null
|
|
39866
|
+
};
|
|
39867
|
+
const certified = certifyFinishedGround(finish, foreground, { palette });
|
|
39868
|
+
return certified.kind === "certified" ? {
|
|
39869
|
+
foreground: certified.foreground,
|
|
39870
|
+
finish: certified.finish
|
|
39871
|
+
} : {
|
|
39872
|
+
foreground,
|
|
39873
|
+
finish: null
|
|
39874
|
+
};
|
|
39875
|
+
}
|
|
39876
|
+
/** The footer's main ground and the foreground contract certified on it. */
|
|
39877
|
+
function resolveFooterRootForeground(footer, palette, proseHoverCandidate) {
|
|
39878
|
+
return resolveFooterMainSurface(footer, palette, proseHoverCandidate).foreground;
|
|
39474
39879
|
}
|
|
39475
39880
|
/**
|
|
39476
39881
|
* A painted side area's own foreground contract, composited over the main
|
|
@@ -39608,6 +40013,18 @@ function resolveHeaderLogoSurfaceTone(header, palette, surface) {
|
|
|
39608
40013
|
const foreground = resolveHeaderRootForeground(header, palette, headerRootIsTransparent(header));
|
|
39609
40014
|
return surfaceToneFromForegroundToken(palette, foreground.kind === "known" ? foreground.roles.text : headerLeafTextColor(header));
|
|
39610
40015
|
}
|
|
40016
|
+
// ../theme-core/src/site-styles/footerEdgeGeometry.ts
|
|
40017
|
+
function footerEdgeGeometry(theme) {
|
|
40018
|
+
const edge = theme.footer?.edge;
|
|
40019
|
+
if (!edge) return null;
|
|
40020
|
+
const family = transitionCatalogueEntryForIntent(edge).family;
|
|
40021
|
+
return boundaryGeometryStyle(edge, "footer", "previous", theme.siteStyleId ? siteStyleEdges(asSiteStyleId(theme.siteStyleId)).supported.find((support) => support.family === family)?.tuning : void 0);
|
|
40022
|
+
}
|
|
40023
|
+
const geometryEntries = (theme, inStylesheet) => Object.entries(footerEdgeGeometry(theme) ?? {}).filter(([, value]) => callsCssLoadingFunction(value) === inStylesheet);
|
|
40024
|
+
/** The edge's measurements, which the footer's markup carries. */
|
|
40025
|
+
function footerEdgeInlineStyle(theme) {
|
|
40026
|
+
return theme.footer?.edge ? Object.fromEntries(geometryEntries(theme, false)) : void 0;
|
|
40027
|
+
}
|
|
39611
40028
|
// ../theme-core/src/site-styles/groundPaintCss.ts
|
|
39612
40029
|
function groundTextureStyle(texture) {
|
|
39613
40030
|
return {
|
|
@@ -39624,6 +40041,22 @@ function finishedGroundStyle(finish) {
|
|
|
39624
40041
|
...finish.texture ? groundTextureStyle(finish.texture) : {}
|
|
39625
40042
|
};
|
|
39626
40043
|
}
|
|
40044
|
+
/**
|
|
40045
|
+
* A finish across the whole of a short surface. A section keeps its top and foot
|
|
40046
|
+
* flat for the edges beside it, which on a footer would leave a hard line or no glow.
|
|
40047
|
+
*/
|
|
40048
|
+
function fullHeightGroundStyle(finish) {
|
|
40049
|
+
return {
|
|
40050
|
+
...finishedGroundStyle(finish),
|
|
40051
|
+
background: fullHeightBackground(finish)
|
|
40052
|
+
};
|
|
40053
|
+
}
|
|
40054
|
+
function fullHeightBackground(finish) {
|
|
40055
|
+
const tone = finish.paint.tone;
|
|
40056
|
+
if (!tone) return finish.background;
|
|
40057
|
+
if (tone.kind !== "glow") return `linear-gradient(to bottom, ${finish.topPaint}, ${finish.footPaint})`;
|
|
40058
|
+
return `radial-gradient(${tone.position === "side" ? "farthest-side at 0% 50%" : "closest-side at 50% 50%"}, ${finish.glowColour ?? finish.topPaint}, ${finish.topPaint})`;
|
|
40059
|
+
}
|
|
39627
40060
|
// ../theme-core/src/blocks/vars/event-registration.ts
|
|
39628
40061
|
/**
|
|
39629
40062
|
* Generate CSS variables for the event-registration block.
|
|
@@ -48033,6 +48466,28 @@ function resolveRuntimeSectionSurface(value, context, options) {
|
|
|
48033
48466
|
solvedInks: transformSolvedInks(context)
|
|
48034
48467
|
});
|
|
48035
48468
|
}
|
|
48469
|
+
/**
|
|
48470
|
+
* Buttons standing directly on a solid chrome ground, decided by the same owner
|
|
48471
|
+
* as a section's. `foreground` is the ink already certified on that ground, so
|
|
48472
|
+
* outline and ghost buttons agree with the text around them.
|
|
48473
|
+
*/
|
|
48474
|
+
function solidGroundButtonStyles(input, context) {
|
|
48475
|
+
return resolveSurface({
|
|
48476
|
+
kind: "section",
|
|
48477
|
+
background: {
|
|
48478
|
+
type: "color",
|
|
48479
|
+
color: input.ground
|
|
48480
|
+
}
|
|
48481
|
+
}, {
|
|
48482
|
+
palette: context.theme.palette,
|
|
48483
|
+
buttonSystem: context.theme.buttons,
|
|
48484
|
+
linkHoverToken: context.proseHoverCandidate,
|
|
48485
|
+
compositeBase: input.compositeBase,
|
|
48486
|
+
foreground: input.foreground.kind === "known" ? input.foreground.roles : void 0,
|
|
48487
|
+
...input.backdropSamples ? { backdropSamples: input.backdropSamples } : {},
|
|
48488
|
+
solvedInks: transformSolvedInks(context)
|
|
48489
|
+
}).buttonStyles;
|
|
48490
|
+
}
|
|
48036
48491
|
/** Line and mark are drawn by arrangements only; muted comes with the other foreground roles. */
|
|
48037
48492
|
function arrangementDecorations(foreground, context) {
|
|
48038
48493
|
if (context.data?._lookSlots === void 0) return {};
|
|
@@ -56855,7 +57310,8 @@ function headerSectionBackground(header) {
|
|
|
56855
57310
|
return header?.background?.type === "color" && !visuals.isTransparent && !visuals.backgroundToken.includes("/") ? visuals.backgroundToken : "background";
|
|
56856
57311
|
}
|
|
56857
57312
|
/**
|
|
56858
|
-
* What one footer area looks like: its ground,
|
|
57313
|
+
* What one footer area looks like: its ground, the inks certified on it and the
|
|
57314
|
+
* buttons standing on it.
|
|
56859
57315
|
* The main ground is the footer's own, painted on the root so the edge and every
|
|
56860
57316
|
* unpainted area share it. A painted side area sets its ground variable (read by
|
|
56861
57317
|
* site-footer.css) and its own inks; an unpainted one adds nothing and sits on
|
|
@@ -56864,13 +57320,26 @@ function headerSectionBackground(header) {
|
|
|
56864
57320
|
function footerAreaPaintStyle(footer, area, context) {
|
|
56865
57321
|
const palette = context.theme.palette;
|
|
56866
57322
|
if (area === "main") {
|
|
56867
|
-
const foreground =
|
|
56868
|
-
|
|
57323
|
+
const { foreground, finish } = resolveFooterMainSurface(footer, palette, context.proseHoverCandidate);
|
|
57324
|
+
const ground = footerMainPaint(footer).ground;
|
|
57325
|
+
return mergeStyles(finish ? fullHeightGroundStyle(finish) : backgroundColorStyle(ground), finish?.texture ? {
|
|
57326
|
+
position: "relative",
|
|
57327
|
+
isolation: "isolate"
|
|
57328
|
+
} : void 0, resolvedForegroundStyle(foreground), solvedInkStyle(foreground, context), surfaceDecorationStyles(foreground, palette), solidGroundButtonStyles({
|
|
57329
|
+
ground,
|
|
57330
|
+
foreground,
|
|
57331
|
+
compositeBase: "background",
|
|
57332
|
+
backdropSamples: finish?.samples
|
|
57333
|
+
}, context));
|
|
56869
57334
|
}
|
|
56870
57335
|
const paint = footerSideBandPaint(footer, area);
|
|
56871
57336
|
const foreground = resolveFooterSideBandForeground(footer, area, palette, context.proseHoverCandidate);
|
|
56872
57337
|
if (!paint || !foreground) return void 0;
|
|
56873
|
-
return mergeStyles({ [`--rb-footer-${area}-bg`]: rgbColorValue(paint.ground) }, resolvedForegroundStyle(foreground), solvedInkStyle(foreground, context), surfaceDecorationStyles(foreground, palette)
|
|
57338
|
+
return mergeStyles({ [`--rb-footer-${area}-bg`]: rgbColorValue(paint.ground) }, resolvedForegroundStyle(foreground), solvedInkStyle(foreground, context), surfaceDecorationStyles(foreground, palette), solidGroundButtonStyles({
|
|
57339
|
+
ground: paint.ground,
|
|
57340
|
+
foreground,
|
|
57341
|
+
compositeBase: footerMainPaint(footer).ground
|
|
57342
|
+
}, context));
|
|
56874
57343
|
}
|
|
56875
57344
|
const footerAreaValues = [
|
|
56876
57345
|
"band",
|
|
@@ -56888,11 +57357,11 @@ const footerEdgeStyleTransform = {
|
|
|
56888
57357
|
kind: "formatter",
|
|
56889
57358
|
summary: "Resolve footer boundary geometry through the shared edge builder",
|
|
56890
57359
|
run: (value, _options, context) => {
|
|
56891
|
-
const footer = asPartialObject(value);
|
|
56892
|
-
if (!footer?.edge) return void 0;
|
|
56893
57360
|
const root = asPartialObject(context.viewModel?.$root);
|
|
56894
|
-
|
|
56895
|
-
|
|
57361
|
+
return footerEdgeInlineStyle({
|
|
57362
|
+
footer: asPartialObject(value),
|
|
57363
|
+
siteStyleId: root?.theme?.siteStyleId
|
|
57364
|
+
});
|
|
56896
57365
|
}
|
|
56897
57366
|
};
|
|
56898
57367
|
const footerRootStyleTransform = {
|
|
@@ -56901,7 +57370,7 @@ const footerRootStyleTransform = {
|
|
|
56901
57370
|
summary: "Paint the footer root with the main ground and its inks",
|
|
56902
57371
|
run: (value, _options, context) => {
|
|
56903
57372
|
const footer = asPartialObject(value);
|
|
56904
|
-
return mergeStyles(footerAreaPaintStyle(footer, "main", context), borderColorStyle("border"), footerEdgeGrounds(footer));
|
|
57373
|
+
return mergeStyles(footerAreaPaintStyle(footer, "main", context), borderColorStyle("border"), footerEdgeGrounds(footer, context));
|
|
56905
57374
|
}
|
|
56906
57375
|
};
|
|
56907
57376
|
/**
|
|
@@ -56909,16 +57378,19 @@ const footerRootStyleTransform = {
|
|
|
56909
57378
|
* the edge with the first rendered area, and a skin that insets its band points it back at the main
|
|
56910
57379
|
* ground with --rb-footer-edge-paint.
|
|
56911
57380
|
*/
|
|
56912
|
-
function footerEdgeGrounds(footer) {
|
|
57381
|
+
function footerEdgeGrounds(footer, context) {
|
|
57382
|
+
const finish = footerMainPaint(footer).finish ? resolveFooterMainSurface(footer, context.theme.palette, context.proseHoverCandidate).finish : null;
|
|
56913
57383
|
return {
|
|
56914
|
-
"--rb-footer-ground": rgbColorValue(footerMainPaint(footer).ground),
|
|
57384
|
+
"--rb-footer-ground": finish?.topPaint ?? rgbColorValue(footerMainPaint(footer).ground),
|
|
56915
57385
|
...Object.fromEntries([
|
|
56916
57386
|
"band",
|
|
56917
57387
|
"strip",
|
|
56918
57388
|
"base"
|
|
56919
57389
|
].flatMap((area) => {
|
|
56920
57390
|
const paint = footerSideBandPaint(footer, area);
|
|
56921
|
-
|
|
57391
|
+
if (!paint) return [];
|
|
57392
|
+
const ground = [`--rb-footer-${area}-ground`, rgbColorValue(paint.ground)];
|
|
57393
|
+
return finish?.texture ? [ground, [`--rb-footer-${area}-edge-texture`, "none"]] : [ground];
|
|
56922
57394
|
}))
|
|
56923
57395
|
};
|
|
56924
57396
|
}
|
|
@@ -57787,9 +58259,12 @@ const footerRegion = el("div", {
|
|
|
57787
58259
|
authoredCopy("intro", "supporting-text"),
|
|
57788
58260
|
authoredCopy("caption", "legal")
|
|
57789
58261
|
], repeat("group.modules", "module"))], repeat("region.groups", "group"))])], repeat("content.footerRuntime.regions", "region"));
|
|
58262
|
+
/** Only a textured main area adds this, so every other footer keeps the plain shape. */
|
|
58263
|
+
const footerEdgeTexturePath = "$root.theme.footer.bands.main.finish.paint.texture";
|
|
57790
58264
|
/**
|
|
57791
58265
|
* The shape the footer draws up into the last page section. It's the page's
|
|
57792
58266
|
* boundary element, placed at the top of the footer, so it uses the same CSS.
|
|
58267
|
+
* With a texture, the shape is painted by the same plane a textured section uses.
|
|
57793
58268
|
*/
|
|
57794
58269
|
const footerEdge = el("div", {
|
|
57795
58270
|
"aria-hidden": "true",
|
|
@@ -57801,8 +58276,12 @@ const footerEdge = el("div", {
|
|
|
57801
58276
|
transforms: [{ id: "layout.footerEdgeStyle" }]
|
|
57802
58277
|
} },
|
|
57803
58278
|
"data-boundary-treatment": { $bind: { from: "$root.theme.footer.edge" } },
|
|
57804
|
-
"data-boundary-placement": "previous"
|
|
57805
|
-
|
|
58279
|
+
"data-boundary-placement": "previous",
|
|
58280
|
+
"data-boundary-section-owned": { $bind: { from: footerEdgeTexturePath } }
|
|
58281
|
+
}, [el("div", {
|
|
58282
|
+
"aria-hidden": "true",
|
|
58283
|
+
"data-section-edge-paint": "front"
|
|
58284
|
+
}, null, when(footerEdgeTexturePath))], when("$root.theme.footer.edge"));
|
|
57806
58285
|
const siteFooterBlockDefinition = { manifest: createBlockManifest({
|
|
57807
58286
|
variantMeaning: { kind: "arrangement" },
|
|
57808
58287
|
id: "block.site-footer",
|
|
@@ -64512,7 +64991,7 @@ const eventRegistrationPageSurfaceSubjectSchema = z$1.unknown().transform((value
|
|
|
64512
64991
|
const unsupported = z$1.safeParse(unsupportedEventRegistrationPageSurfaceSubjectSchema, value);
|
|
64513
64992
|
if (unsupported.success) return unsupported.data;
|
|
64514
64993
|
const parsed = parsePageSurfaceSubject(value);
|
|
64515
|
-
if (parsed.ok) return parsed.value.kind === "appointmentService" ? {
|
|
64994
|
+
if (parsed.ok) return parsed.value.kind === "appointmentService" || parsed.value.kind === "teamMember" ? {
|
|
64516
64995
|
kind: "unsupported",
|
|
64517
64996
|
reason: "unsupportedSubject"
|
|
64518
64997
|
} : parsed.value;
|
|
@@ -64525,7 +65004,7 @@ const eventRegistrationPageSurfaceSubjectSchema = z$1.unknown().transform((value
|
|
|
64525
65004
|
function parseEventRegistrationPageSurfaceSubject(value) {
|
|
64526
65005
|
const parsed = parsePageSurfaceSubject(value);
|
|
64527
65006
|
if (!parsed.ok) return parsed;
|
|
64528
|
-
return parsed.value.kind === "appointmentService" ? err$2({
|
|
65007
|
+
return parsed.value.kind === "appointmentService" || parsed.value.kind === "teamMember" ? err$2({
|
|
64529
65008
|
kind: "unsupportedSubject",
|
|
64530
65009
|
subjectKind: parsed.value.kind
|
|
64531
65010
|
}) : ok$1(parsed.value);
|
|
@@ -64539,6 +65018,10 @@ function normalizeEventRegistrationPageSurfaceSubject(value) {
|
|
|
64539
65018
|
kind: "unsupported",
|
|
64540
65019
|
reason: "invalidAppointmentServiceId"
|
|
64541
65020
|
};
|
|
65021
|
+
case "invalidStaffMemberId": return {
|
|
65022
|
+
kind: "unsupported",
|
|
65023
|
+
reason: "unsupportedSubject"
|
|
65024
|
+
};
|
|
64542
65025
|
case "unsupportedSubject": return {
|
|
64543
65026
|
kind: "unsupported",
|
|
64544
65027
|
reason: "unsupportedSubject"
|
|
@@ -80847,6 +81330,11 @@ function appointmentPricingDisplay(pricing) {
|
|
|
80847
81330
|
default: return assertNever$13(pricing.pricingStrategy);
|
|
80848
81331
|
}
|
|
80849
81332
|
}
|
|
81333
|
+
/** What a service's length and price are called, on its own page and on the cards that list it. */
|
|
81334
|
+
const APPOINTMENT_FACT_LABELS = {
|
|
81335
|
+
duration: "How long",
|
|
81336
|
+
price: "Price"
|
|
81337
|
+
};
|
|
80850
81338
|
// ../blocks/src/system/blocks/appointments/serviceDetailsFacts.ts
|
|
80851
81339
|
/** Only the facts the details view uses, read from the public service payload. */
|
|
80852
81340
|
const serviceDetailsSourceSchema = z$1.object({
|
|
@@ -80887,11 +81375,11 @@ function serviceDetailsFacts(service) {
|
|
|
80887
81375
|
value: "You ask for a time, and it’s booked once it’s accepted."
|
|
80888
81376
|
}] : [],
|
|
80889
81377
|
{
|
|
80890
|
-
label:
|
|
81378
|
+
label: APPOINTMENT_FACT_LABELS.duration,
|
|
80891
81379
|
value: formatAppointmentDuration(service.durationMinutes)
|
|
80892
81380
|
},
|
|
80893
81381
|
...price ? [{
|
|
80894
|
-
label:
|
|
81382
|
+
label: APPOINTMENT_FACT_LABELS.price,
|
|
80895
81383
|
value: price
|
|
80896
81384
|
}] : [],
|
|
80897
81385
|
...location ? [{
|
|
@@ -94532,7 +95020,7 @@ async function initDocs(options) {
|
|
|
94532
95020
|
async function loadConfig(configPath, output) {
|
|
94533
95021
|
if (!configPath) return { errorMessage: "No config path provided." };
|
|
94534
95022
|
try {
|
|
94535
|
-
const { loadConfigFile } = await import("../load-config-
|
|
95023
|
+
const { loadConfigFile } = await import("../load-config-C9iXzX97.mjs");
|
|
94536
95024
|
const rawConfig = await loadConfigFile(configPath);
|
|
94537
95025
|
const parsed = z$1.safeParse(riverbankSiteConfigSchema, rawConfig);
|
|
94538
95026
|
if (!parsed.success) return { errorMessage: `Config validation failed: ${parsed.error.message}` };
|