@riverbankcms/sdk 0.157.0 → 0.158.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-B3AHhvIn.d.ts → BlocksIslandsHydrator-BgNBtEai.d.ts} +1 -1
- package/dist/_dts/{Page-BMaOSVCP.d.ts → Page-DpCo8zXD.d.ts} +9 -6
- package/dist/_dts/{SdkPreviewMode-CEwDDqfK.d.ts → SdkPreviewMode-Bv2TMscG.d.ts} +2 -2
- package/dist/_dts/{client-BRFVhGUB.d.ts → client-B960v2gW.d.ts} +1 -1
- package/dist/_dts/{content-types-tEy1rtQ5.d.ts → content-types-CN0Wy8V6.d.ts} +26 -3
- package/dist/_dts/{contracts-BwDSOVGj.d.ts → contracts-BFUrby76.d.ts} +5 -4
- package/dist/_dts/{footerPageOutline-BVp5EPJj.d.ts → footerPageOutline-CmoqleLS.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BQb1mvpc.d.ts → generatePageMetadata-Dkvivc3R.d.ts} +2 -2
- package/dist/_dts/{hosted-booking-appearance-BN2Zu93B.d.ts → hosted-booking-appearance-BIbit60h.d.ts} +8976 -47
- package/dist/_dts/{index-Ca3oD2id.d.ts → index-Ba6RmuxX.d.ts} +3 -3
- package/dist/_dts/{index-Br1TNJlL.d.ts → index-DCNu_8it.d.ts} +4 -4
- package/dist/_dts/{index-CSLkIKs3.d.ts → index-DPfI2t5A.d.ts} +2 -2
- package/dist/_dts/{index-B0wsEbm3.d.ts → index-DaS_z6ir.d.ts} +1 -1
- package/dist/_dts/{index-B0DzVcrB.d.ts → index-DfkFWUxt.d.ts} +4 -1
- package/dist/_dts/{index-BF3hkKvt.d.ts → index-DpgkhY-a.d.ts} +2 -2
- package/dist/_dts/{loadContent-Dz9fOZMZ.d.ts → loadContent-DvvKF4nB.d.ts} +10 -7
- package/dist/_dts/{navigation-DOZwagCE.d.ts → navigation-n-eTVTIQ.d.ts} +75 -4
- package/dist/_dts/{resolvePageContent-oHZ8cfaF.d.ts → resolvePageContent-D0lGwVD6.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +6 -6
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +10 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +11 -4
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/index.d.ts +45 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-Dy1DNdIV.d.ts → types-BJrRUaY7.d.ts} +2 -2
- package/dist/_dts/{types-6q1MDqxg.d.ts → types-BY7PgnDi.d.ts} +7 -7
- package/dist/_dts/{types-BuWOkyqw.d.ts → types-maEnXL6Z.d.ts} +3 -3
- package/dist/_dts/{validation-BumblAOO.d.ts → validation-BjuVrMrs.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-Cid8be1G.mjs → BlocksIslandsHydrator-WRLS96Ev.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-BpzJTCZw.mjs → BookingMailingListNote-eovghMPa.mjs} +3 -56
- package/dist/client/{CalendarNavigationChevron-CBKHlGjE.mjs → CalendarNavigationChevron-CIcMQRc1.mjs} +5 -5
- package/dist/client/{DemoBookingPortalAccess-DpfgDMQ-.mjs → DemoBookingPortalAccess-CdnFgDyQ.mjs} +3 -3
- package/dist/client/{EventCalendar.client-DE5JHf4s.mjs → EventCalendar.client-Dc-ZLxKo.mjs} +8 -8
- package/dist/client/{EventCombined.client-DQLU3EAc.mjs → EventCombined.client-C93XqRIv.mjs} +6 -6
- package/dist/client/{EventItem-C9QTFafI.mjs → EventItem-DnCTygqk.mjs} +3 -3
- package/dist/client/{EventListWeekNavigation-6oYGdpNS.mjs → EventListWeekNavigation-9h97heuQ.mjs} +1 -1
- package/dist/client/{EventListing.client-D0N4Wj_4.mjs → EventListing.client-DFKlQvvs.mjs} +3 -3
- package/dist/client/{EventListing.view-Bish8-si.mjs → EventListing.view-pAuTDyrP.mjs} +4 -4
- package/dist/client/{EventRegistrationPayment-DLPYU2VU.mjs → EventRegistrationPayment-rgKlBvhP.mjs} +8 -7
- package/dist/client/{LeafletStaticMap-BmgEmEUS.mjs → LeafletStaticMap-3XiWSgy0.mjs} +1 -1
- package/dist/client/{Page-C-W_6VPx.mjs → Page-BmpeAwID.mjs} +750 -169
- package/dist/client/{StepIndicator-D8fvzhlS.mjs → StepIndicator-qEq6X5zP.mjs} +2 -2
- package/dist/client/{accordion-B5jBBoBC.mjs → accordion-DeObOasQ.mjs} +1 -1
- package/dist/client/{booking-form.client-xypjcfob.mjs → booking-form.client-DfWeF0lj.mjs} +36 -32
- package/dist/client/{bookingForm-CSE7NT54.mjs → bookingForm-TnzIBHx2.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-BrrLdGgn.mjs → carousel-kkFnbr5Z.mjs} +1 -1
- package/dist/client/{cart-QFgSKqia.mjs → cart-BAXNbFux.mjs} +3 -3
- package/dist/client/{cart.client-C6iA9v8X.mjs → cart.client-BczxUF70.mjs} +1 -1
- package/dist/client/{checkout-BAuLgA6Q.mjs → checkout-C5NRhPeP.mjs} +3 -3
- package/dist/client/{checkout.client-hbvBPpZR.mjs → checkout.client-BuDk3Td9.mjs} +1 -1
- package/dist/client/client.mjs +3 -2
- package/dist/client/{context-psG_Bwfs.mjs → context-CVsgML69.mjs} +1 -1
- package/dist/client/{cta-DrX2pzK9.mjs → cta-BWnUuJce.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CClf0SHq.mjs → demoPortalMagicLink-CUlwvmxf.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-CqN7ig-2.mjs → enhanceHeaderSection-Cw8nnFj-.mjs} +2 -2
- package/dist/client/{event-details.client-CcYX4URD.mjs → event-details.client-Bl0E_6Vi.mjs} +2 -2
- package/dist/client/{event-registration.client-B8wVfnJ8.mjs → event-registration.client-DmfLg_LC.mjs} +15 -14
- package/dist/client/{eventCalendar-CRYN9-Vv.mjs → eventCalendar-D1Dwb9VA.mjs} +4 -4
- package/dist/client/{eventCombined-gGuj2_Vh.mjs → eventCombined-DfsqY1qR.mjs} +4 -4
- package/dist/client/{eventDetails-D1U7WEsJ.mjs → eventDetails-BmugDVoa.mjs} +2 -2
- package/dist/client/{eventListing-BY20rsvl.mjs → eventListing-BPAGJi3C.mjs} +4 -4
- package/dist/client/{eventRegistration-DnOZYpqh.mjs → eventRegistration-DBlz_x6u.mjs} +4 -4
- package/dist/client/{form-_q17Emh7.mjs → form-DVu3ZMjx.mjs} +3 -3
- package/dist/client/{form.client-BVaTf4FG.mjs → form.client-QZUyABIY.mjs} +3 -3
- package/dist/client/{form.parts-C9EmjE7U.mjs → form.parts-Bs0F3v08.mjs} +1 -1
- package/dist/client/formatDate-BD9D3dgo.mjs +26 -0
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-CZ3unSkX.mjs → headerSection-BQwWW4Yy.mjs} +2 -2
- package/dist/client/{location-map.client-C_udm2_y.mjs → location-map.client-upKuwABk.mjs} +3 -10
- package/dist/client/{location-map.view-Bkd9gu_S.mjs → location-map.view-RuBCD10O.mjs} +87 -13
- package/dist/client/{locationMap-CunBAPoo.mjs → locationMap-1sCbsk0V.mjs} +2 -2
- package/dist/client/{newsletter-form.client-BkHhqPBi.mjs → newsletter-form.client-DBTU3oNv.mjs} +4 -4
- package/dist/client/{newsletter-form.parts-VGjM-NDG.mjs → newsletter-form.parts-C9I9JBhe.mjs} +1 -1
- package/dist/client/{newsletterForm-DGc1-NVR.mjs → newsletterForm-DTPtTxxG.mjs} +3 -3
- package/dist/client/{noop-D3wctocR.mjs → noop-DMFt3KdC.mjs} +19 -132
- package/dist/client/portal/client.mjs +589 -482
- package/dist/client/{product-detail.client-C_8N4OxU.mjs → product-detail.client-BX7M5o6p.mjs} +1 -1
- package/dist/client/{product-list.client-79qoSlLs.mjs → product-list.client-i32QNY4c.mjs} +1 -1
- package/dist/client/{productDetail-QGBXBpWb.mjs → productDetail-DWjE9zm7.mjs} +3 -3
- package/dist/client/{productList-Bdno11g6.mjs → productList-DZH9_brv.mjs} +3 -3
- package/dist/client/{propsDecoder-BpKsRqjG.mjs → propsDecoder-CTzHkEkh.mjs} +14 -3
- package/dist/client/{registry.server-D9GvC4EZ.mjs → registry.server-vJ5FlscU.mjs} +589 -246
- package/dist/client/rendering/client.mjs +23 -23
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +26 -4
- package/dist/client/{richText-coerce-Nln8Bw2P.mjs → richText-coerce-DXAmC72p.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-B4E30DaZ.mjs → routeIslandApiConfig-CmC7ygin.mjs} +1 -1
- package/dist/client/{shop-653-Nn74.mjs → shop-C7eL3B37.mjs} +3 -3
- package/dist/client/{shop-commerce-CfbvhT6h.mjs → shop-commerce-D8oRN0QJ.mjs} +9 -9
- package/dist/client/{shop-commerce-store-CfB26IXt.mjs → shop-commerce-store-CRnQ4M18.mjs} +1 -1
- package/dist/client/{shop.client-Bn7jUQOB.mjs → shop.client-X6d6KVmA.mjs} +9 -9
- package/dist/client/{shop.interactive-acMnyBZU.mjs → shop.interactive-DBMeM8VD.mjs} +155 -3
- package/dist/client/{shopShared-Du4efbgL.mjs → shopShared-Y182kN_s.mjs} +2 -2
- package/dist/client/{timetableModel-Duwk6gXe.mjs → timetableModel-D7PwpaBY.mjs} +5 -5
- package/dist/client/{useAvailableSlots-CbaAFr8M.mjs → useAvailableSlots-BDV6MHgJ.mjs} +2 -2
- package/dist/client/useBookingNowIso-DgJEv3ZY.mjs +58 -0
- package/dist/client/{useDiscountApply-DAl-GX21.mjs → useDiscountApply-BTu9EeT7.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-BUf9LuI6.mjs → useDiscountCodeUi-BfZxdxI-.mjs} +1 -1
- package/dist/client/{useEventPagination-hJDAEg-T.mjs → useEventPagination-pnvdHGeQ.mjs} +6 -6
- package/dist/client/{view-CFSMNvdC.mjs → view-BPEa6Okm.mjs} +8 -7
- package/dist/client/{view-4sSIJ6Ny.mjs → view-hJr_L4QC2.mjs} +3 -3
- package/dist/client/{wizardSteps-B3tRF3_2.mjs → wizardSteps-HdyGoIG3.mjs} +218 -47
- package/dist/preview-next/before-render.mjs +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-BX5F0a_h.mjs → EventEmbeddedCheckoutStep-BFlBqSu4.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-DLzGdmTw.mjs → PreviewEditorSidebar-CXRUbqMp.mjs} +42 -26
- package/dist/preview-next/client/{PreviewEditorUI-Dru5AxOd.mjs → PreviewEditorUI-CxjEV0Fm.mjs} +31 -22
- package/dist/preview-next/client/{SdkPreviewModeRuntime-QVfwY0HY.mjs → SdkPreviewModeRuntime-BxI12BBS.mjs} +1310 -1226
- package/dist/preview-next/client/{SdkPreviewModeRuntime-V3absa-c.mjs → SdkPreviewModeRuntime-XdQSGGj_.mjs} +1 -1
- package/dist/preview-next/client/{SiteChromeCustomizeContext-RSPyKO_K.mjs → SiteChromeCustomizeContext-CfRQRwpH.mjs} +133891 -131593
- package/dist/preview-next/client/{ThemedButton-ADHirm0A.mjs → ThemedButton-BEOPss9H.mjs} +30 -4
- package/dist/preview-next/client/{previewChromeSurface-Cc4b9nBZ.mjs → previewChromeSurface-CH7hd5n7.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CTLm99t6.mjs → sdk-runtime-C6xEU1LI.mjs} +1 -1
- package/dist/preview-next/client/{siteStyleAccess-YpHSMBBC.mjs → siteStyleAccess-CRXaC2oL.mjs} +2 -2
- package/dist/preview-next/client/{spinner-CsiSmy1g.mjs → spinner-BTf1CZmy.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-dR_Jzpo5.mjs → route-contract-DM22uOXM.mjs} +41 -0
- package/dist/server/{Block.shared-BNrmEY1p.mjs → Block.shared-DLoilC2J.mjs} +4 -4
- package/dist/server/{bindings-C9zgT9uX.mjs → bindings-C7DKLVx_.mjs} +1 -1
- package/dist/server/{blocks-BLm-OxTv.mjs → blocks-jlIm0PWc.mjs} +953 -324
- package/dist/server/{client-CaQ1ElR3.mjs → client-CU4wlMLE.mjs} +2 -2
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-BFyU8YxS.mjs → loadContent-DmQ4BiiQ.mjs} +6 -4
- package/dist/server/{loadPage-DeQipVdO.mjs → loadPage-BBkDQA57.mjs} +3 -2
- package/dist/server/loadPage-ZrcfjG3X.mjs +2 -0
- package/dist/server/next.mjs +24 -12
- package/dist/server/{overrideResolution-D5nmZUYe.mjs → overrideResolution-ByeAbLSO.mjs} +1 -1
- package/dist/server/{overrides-BI13bIb7.mjs → overrides-BcA6ZPWf.mjs} +94 -30
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-UgDhSzy2.mjs → prebuild-8T-m7XjB.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CLF-Y7h-.mjs → prefetchBlockData-Bjya-X9t.mjs} +6 -5
- package/dist/server/{publicProducts-vPbNQJsO.mjs → publicProducts-C3meXS2o.mjs} +41 -0
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +26 -8
- package/dist/server/{resolveBlockData-C7J-pixy.mjs → resolveBlockData-D0ow8PRJ.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/{siteChromeOverlayClearance-DLROm32h.mjs → siteChromeOverlayClearance-BangtD8A.mjs} +126 -1
- package/dist/server/{src-BZb5L4Fa.mjs → src-B935_bzN.mjs} +300 -2
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/{themeAdmission-x3uhdOWx.mjs → themeAdmission-D2-BnmDO.mjs} +314 -125
- package/dist/server/{validation-Ban_hxJG.mjs → validation-Cm41pDUB.mjs} +2 -2
- package/dist/server/{version-bkGVuskm.mjs → version-Bo9C3McI.mjs} +1 -1
- package/dist/styles/index.css +282 -0
- package/package.json +1 -1
- package/dist/server/loadPage-CvyKRtXK.mjs +0 -2
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { T as ok, a as mediaIdentifierSchema, c as parseApiKeyId, d as parseEventSeriesId, f as parseSiteId, i as resolveManagedMediaReference, l as parseContentVersionId, m as parseUserId, n as renderableMediaAssetSchema, p as parseSiteTermsVersionId, r as indexRenderableMediaAssets, w as err } from "./renderableMediaAssetAdmission-DGjBr_e-.mjs";
|
|
3
3
|
import { $ as FONT_WEIGHT_MAP, $n as borderColorStyle, B as generateMobileOverlayBackdropFilterFix, Bn as expandPalette, Bt as generateCardCss, Cr as mediaPosterSchema, Dn as opaqueSurfaceContextFromTheme, En as surfaceDecorationColors, Er as runtimeMediaSchema, Ft as runtimeBoxBackgroundSchema, G as MQ_SM_DOWN, Gt as cardVariantRoleValues, H as renderHeaderPaintTargetRules, Ht as generateShadowValue, I as corners, In as selectLogoVariant, J as headerVariantValues, K as MQ_SM_UP, Kn as paletteColorsSchema, Ln as surfaceToneFromForegroundToken, Lt as siteChromeBackgroundOverrideOwner, Nn as generateShadowValue$1, On as opaqueSurfaceDeclarations, Pt as boxBackgroundSchema, Q as parseCustomCssRules, Qn as backgroundColorStyle, R as themeSchema, Rn as resolveSurfaceForeground, Rt as stripStaleTransitionStyleGroup, Sn as tileTreatmentValues, Sr as surfaceForegroundValueWithOpacity, Tn as resolveSurface, U as MQ_LG_UP, V as getHeaderPaintTargets, Vt as renderCssDeclarations, W as MQ_MD_DOWN, Wn as resolveOpaqueSurfaceHex, X as getComponentShadowVar, Y as getComponentBorderWidthPx, Z as parseBlockCustomCssRules, Zn as TokenResolver, Zt as asDesignBlockId, _n as offeringsPreviewCompositionTreatmentValues, _r as SURFACE_FOREGROUND_CSS_VARS, ar as parseThemeColorToken, at as ACCORDION_TRIGGER_FONT_SCALE, br as surfaceForegroundStyle, cn as defineFrameCapability, cr as buildThemeTokens, ct as ICON_SIZE_PX, dn as featureCardCompositionTreatmentValues, dt as generateDefaultButtonSystem, er as cssVarValue, et as INPUT_FONT_SIZE_MAP, gr as DEFAULT_SURFACE_TEXT_COLOR, hn as makeBoundaryId, in as asSiteStyleId, ir as textColorValue, it as ACCORDION_SPACING_MAP, ln as eventListTreatmentValues, lr as defaultThemeTokens, lt as generateButtonActionLayoutCss, mn as introCompositionTreatmentValues, mr as hexToRgb, mt as skinTokenCssVars, nn as asLayoutVariantKey, nr as rgbColorValue, nt as LABEL_FONT_SIZE_MAP, on as defineBlockDesignCapability, ot as ACCORDION_TRIGGER_LETTER_SPACING, pn as headingDecorationColorTokenValues, pt as parseThemeForPersistence, q as MQ_TABLET_ONLY, qn as paletteModeSchema, rr as textColorStyle, rt as ACCORDION_OPEN_ACCENT_THICKNESS, sr as parseBlockColorToken, st as ICON_CONFIG, tr as mergeStyles, tt as INPUT_SPACING_MAP, un as eyebrowTreatmentValues, ur as parseColorTokenParts, ut as generateButtonCss, vr as surfaceForegroundDeclarations, wn as visibleHeadingDecorationFamilyValues, wr as mediaSchema, xn as testimonialsCompositionTreatmentValues, xr as surfaceForegroundValue, yr as surfaceForegroundInputFromResolved, z as generateHeaderScrollTreatmentStyles, zn as safeTokenOr } from "./ThemedButton-DVBC_pS9.mjs";
|
|
4
|
-
import { $r as buildTextContrastShadow,
|
|
5
|
-
import { $ as isRecord$10, K as bookingConsentCarrierSchema, Q as isObjectRecord, V as publicEventDestinationSchema, W as publicEventsArraySchema, X as RichTextDocSchema, Z as isRichTextDoc,
|
|
6
|
-
import { a as normalizeLocationMapSource, i as normalizeLocationMapProps, n as LOCATION_MAP_DEFAULTS, r as LOCATION_MAP_LIMITS } from "./location-map.view-
|
|
7
|
-
import { $ as OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT, $t as resolveHeaderChromeRuntimeContract, Kt as buildEventListWeek, Q as OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS, Qt as isHeaderScrollRuntimeEnabled, Xt as resolveEventSelection, an as publicPassProductCollectionSchema, at as normalizeOfferingsPreviewContentForWrite, et as OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE, in as publicMembershipProductCollectionSchema, it as isOfferingsPreviewSourceKey, nn as planSiteChromePlacement, nt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, on as buildMailingListSignupBlockSourceRef, sn as parseMailingListPlacementTargeting, st as offeringsListingFor, tn as parseHeaderPositioning, un as sameMailingListPlacementTargeting, vt as occurrenceContextSchema } from "./shop.interactive-
|
|
4
|
+
import { $r as buildTextContrastShadow, Br as arrangementManifestFromVariants, Ci as isRecord$9, Fr as headerLeafTextColor, Gr as requireCuratedSiteStyle, Gt as MediaPlaceholder, Hr as resolveEffectiveArrangement, Ir as transparentHeaderForegroundInput, Jr as getGradientPreset, Ki as assertNever$1, Kt as computeMediaTransformStyle, Lr as readOpeningForegroundProjection, Mi as parseMailingListProviderScope, Mr as resolvedItemSurfaceProps, Nr as effectiveHeaderNavLinkStyle, Pr as headerForegroundCandidates, Qr as footerForegroundCandidates, Rr as mergeHeaderNavTypographyPreference, Ur as resolveModeArrangement, Vr as readStoredMode, Wr as resolvePublishedLook, Xr as deriveSiteStyleBlockPolicy, Yr as parseGradientPresetId, Zr as generateFooterCss, _i as defineBlockDesignMetadata, _r as resolveDateRuntimeContext, ai as headerRootPaint, bi as cardListKnobBlocks, ci as sectionFactsForContent, di as transitionCatalogueEntries, ei as generateNavLinkCSS, fi as deriveSectionGround, gi as sectionForegroundBackground, gr as readRuntimeNow, hi as resolveSectionBackground, hr as isBlockButtonRole, ii as resolveLookSlotSurfaces, li as boundaryRuntimeMetricsForDecorativeTransition, mi as parseCanonicalRuntimeBackground, ni as arrangementSlotNames, oi as boundaryLayout, pi as heroPhotoPaintsGround, qr as gradientToCss, ri as resolveItemSurface, rn as eventCalendarWeekStart, si as composeBoundary, ti as arrangementLookHooks, ui as anglePolygonCss, vi as resolveEffectiveKnobs, xi as itemRole, yi as cardListFamilyBlocks, zr as readHeaderNavFontSizePreference } from "./wizardSteps-HdyGoIG3.mjs";
|
|
5
|
+
import { $ as isRecord$10, Ct as toUtcIsoDateTimeString, K as bookingConsentCarrierSchema, Q as isObjectRecord, V as publicEventDestinationSchema, W as publicEventsArraySchema, X as RichTextDocSchema, Z as isRichTextDoc, b as eventCalendarListLayoutCompatibleDisplayModeValues, et as WHOLE_SERIES_EVENT_PRESET_VALUES, g as resolveCalendarReadProfile, ht as getLocalScheduleDate, k as resolveEventCalendarReadPlan, m as calendarWindowQuerySchema, t as logger, tt as formatDate, x as eventCalendarListLayoutOptions, y as eventCalendarListGroupingDecision, yt as resolveBookingBusinessTimeZone } from "./noop-DMFt3KdC.mjs";
|
|
6
|
+
import { a as normalizeLocationMapSource, i as normalizeLocationMapProps, n as LOCATION_MAP_DEFAULTS, r as LOCATION_MAP_LIMITS } from "./location-map.view-RuBCD10O.mjs";
|
|
7
|
+
import { $ as OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT, $t as resolveHeaderChromeRuntimeContract, Kt as buildEventListWeek, Q as OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS, Qt as isHeaderScrollRuntimeEnabled, Xt as resolveEventSelection, an as publicPassProductCollectionSchema, at as normalizeOfferingsPreviewContentForWrite, et as OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE, in as publicMembershipProductCollectionSchema, it as isOfferingsPreviewSourceKey, nn as planSiteChromePlacement, nt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, on as buildMailingListSignupBlockSourceRef, sn as parseMailingListPlacementTargeting, st as offeringsListingFor, tn as parseHeaderPositioning, un as sameMailingListPlacementTargeting, vt as occurrenceContextSchema } from "./shop.interactive-DBMeM8VD.mjs";
|
|
8
8
|
import { t as eventAutoApplyDiscountPreviewSchema } from "./events-BmqPeeQm.mjs";
|
|
9
|
-
import { $ as sectionContainer, $t as
|
|
9
|
+
import { $ as sectionContainer, $t as bindingSchema, A as cardListPresentationBindings, At as coerceInlineTextWithFallback, B as formDataSchema, Bt as normalizeSelectSource, C as eventListingBlockDefinition, Ct as lookLeadSlotTransform, D as cardListSectionAction, Dt as parseBlockIconValue, E as FEATURE_CARD_ICON_TREATMENTS, Et as lookSlot, Ft as PUBLIC_FILE_FIELD_KINDS, G as buildFragmentDataLoaders, Gt as parseRepeaterGridInteger, H as formEmbedFragment, Ht as parseFieldDefinitions, I as desktopOnlyDisplay, It as blockCategoryEnum, J as sectionHeaderFields, Jt as resolveRepeaterGridColumnFieldId, K as composeFragments, L as mobileOnlyDisplay, Lt as createSdkSelectField, M as normalizeCardListContent, Mt as parseInlineTextFromUnknown, Nt as plainTextToInlineText, O as cardListKnobFields, Ot as PUBLIC_DOWNLOAD_MEDIA_TYPES, Pt as DEFAULT_MEDIA_FIELD_KINDS, Q as styledContainer, Qt as NodeSchema, R as normalizeMailingListBlockContent, Rt as createSiteOptionSelectField, S as eventCalendarBlockDefinition, St as lookCarouselRegionTransform, T as FEATURE_CARD_GENERATED_ICON_SIZE_PX, Tt as lookSkinSlotTransform, U as withApiBindings, Ut as previewCustomizeManifestCurationSchema, V as createBlockManifest, Vt as parseFieldDefinition, W as formCopyFragment, Wt as buildRepeaterGridLayout, X as resolveBackgroundColorValue, Xt as resolveRepeaterGridRowFieldId, Y as sectionHeaderLayoutNodes, Yt as resolveRepeaterGridColumnsForBreakpoint, Z as styledSection, Zt as resolveRepeaterGridSpanFieldId, _ as checkoutBlockDefinition, _t as section, a as buildLoadedOfferingsPreviewListing, an as eventDisplayFields, at as carousel, b as productListBlockDefinition, bt as videoEmbed, cn as containerStylesField, ct as form, dn as getAnchorClasses, dt as inline, en as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, et as backgroundFrame, fn as createButtonGroup, ft as link, g as giftingBlockDefinition, gt as richText, h as sanitizeNewsletterSignupPublicContent, ht as repeat, in as emptyStateField, it as button, j as cardListSectionActionFields, jt as inlineTextToPlainText, k as cardListPhotoNumberFields, kt as augmentManifest, ln as sectionStylesField, lt as headerSection, m as newsletterSignupBlockDefinition, mt as props, nn as cardStylingFields, nt as bind, o as buildAppointmentServicesView, on as layoutField, ot as el, p as SectionNode, pn as createButtonVariantField, pt as media, q as defineFragment, qt as projectRepeaterGridLayoutForRendering, rn as columnsField, rt as bookingForm, sn as cardStylesField, st as fileDownload, t as serverComponentRegistry, tn as linkSchema, tt as accordionList, un as BACKGROUND_POSITION_PRESET_VALUES, ut as icon, v as cartBlockDefinition, vt as stack, w as eventRegistrationBlockDefinition, wt as lookQuoteLimitTransform, x as shopBlockDefinition, xt as when, y as productDetailBlockDefinition, yt as text, z as formBlockDefinition, zt as fieldSchema } from "./registry.server-vJ5FlscU.mjs";
|
|
10
10
|
import { n as getCurrentResolveImageUrlContext, o as setContextResolveImageUrlContext, t as buildResolveImageUrlContext } from "./mediaContext-DThoeEBU.mjs";
|
|
11
|
-
import { C as createTransformRegistry, S as asPartialObject, _ as SEMANTIC_SPACING_VALUES, a as RAISED_SHADOW_CLASS, b as resolveSectionMinHeight, c as fixedFrameScopeClass, d as resolveCardRoleForBoxStyles, f as resolveItemCardRole, h as parseRuntimeBackgroundContent, l as hasFixedFrameBackgroundMotion, m as parseBackgroundOverlay, o as ROUNDED_CLASSES, p as parseBackgroundContent, s as boxStyleClassNames, u as normalizeBoxStylesBorder, v as isSectionMinHeight, w as runTransforms, x as resolveSpacing, y as isSemanticSpacing } from "./EventListing.view-
|
|
11
|
+
import { C as createTransformRegistry, S as asPartialObject, _ as SEMANTIC_SPACING_VALUES, a as RAISED_SHADOW_CLASS, b as resolveSectionMinHeight, c as fixedFrameScopeClass, d as resolveCardRoleForBoxStyles, f as resolveItemCardRole, h as parseRuntimeBackgroundContent, l as hasFixedFrameBackgroundMotion, m as parseBackgroundOverlay, o as ROUNDED_CLASSES, p as parseBackgroundContent, s as boxStyleClassNames, u as normalizeBoxStylesBorder, v as isSectionMinHeight, w as runTransforms, x as resolveSpacing, y as isSemanticSpacing } from "./EventListing.view-pAuTDyrP.mjs";
|
|
12
12
|
import { r as themeRuntimeScopeProps, t as buildThemeDataAttrs } from "./themeScopeUtils-BAOw_fNA.mjs";
|
|
13
13
|
import { t as NAV_DROPDOWN_CONTAINER_RAIL_CSS_RULES } from "./navDropdownSizing-CUjDrcIt.mjs";
|
|
14
|
+
import { t as formatDate$1 } from "./formatDate-BD9D3dgo.mjs";
|
|
14
15
|
import { s as declarativeCarouselSlides } from "./carousel.shared-DBnWEJzo.mjs";
|
|
15
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-
|
|
16
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-DXAmC72p.mjs";
|
|
16
17
|
import { n as toBlocksMediaAssets, t as toBlocksImageResolveContextInput } from "./mediaAssets-BOj-Co0B.mjs";
|
|
17
18
|
import * as React$1 from "react";
|
|
18
19
|
import React from "react";
|
|
@@ -2226,6 +2227,46 @@ const SDK_EVENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
2226
2227
|
}
|
|
2227
2228
|
});
|
|
2228
2229
|
//#endregion
|
|
2230
|
+
//#region ../api/src/sdkAppointmentServiceEndpointDefinitions.ts
|
|
2231
|
+
const SDK_APPOINTMENT_SERVICE_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
2232
|
+
sdkListAppointmentServices: {
|
|
2233
|
+
path: "/sdk/{siteId}/appointment-services",
|
|
2234
|
+
method: "GET",
|
|
2235
|
+
auth: "service",
|
|
2236
|
+
responseKind: "json",
|
|
2237
|
+
errors: ["server:internal_error"]
|
|
2238
|
+
},
|
|
2239
|
+
sdkCreateAppointmentService: {
|
|
2240
|
+
path: "/sdk/{siteId}/appointment-services",
|
|
2241
|
+
method: "POST",
|
|
2242
|
+
auth: "service",
|
|
2243
|
+
responseKind: "json",
|
|
2244
|
+
errors: [
|
|
2245
|
+
"validation:invalid_input",
|
|
2246
|
+
"resource:not_found",
|
|
2247
|
+
"server:internal_error"
|
|
2248
|
+
]
|
|
2249
|
+
},
|
|
2250
|
+
sdkGetAppointmentService: {
|
|
2251
|
+
path: "/sdk/{siteId}/appointment-services/{serviceId}",
|
|
2252
|
+
method: "GET",
|
|
2253
|
+
auth: "service",
|
|
2254
|
+
responseKind: "json",
|
|
2255
|
+
errors: ["resource:not_found", "server:internal_error"]
|
|
2256
|
+
},
|
|
2257
|
+
sdkUpdateAppointmentService: {
|
|
2258
|
+
path: "/sdk/{siteId}/appointment-services/{serviceId}",
|
|
2259
|
+
method: "PATCH",
|
|
2260
|
+
auth: "service",
|
|
2261
|
+
responseKind: "json",
|
|
2262
|
+
errors: [
|
|
2263
|
+
"validation:invalid_input",
|
|
2264
|
+
"resource:not_found",
|
|
2265
|
+
"server:internal_error"
|
|
2266
|
+
]
|
|
2267
|
+
}
|
|
2268
|
+
});
|
|
2269
|
+
//#endregion
|
|
2229
2270
|
//#region ../api/src/sdkPageDesignEndpointDefinitions.ts
|
|
2230
2271
|
/**
|
|
2231
2272
|
* SDK management endpoints for a page's draft design (issue 1497), spread into
|
|
@@ -8258,6 +8299,7 @@ const API_ENDPOINTS = {
|
|
|
8258
8299
|
auth: "service",
|
|
8259
8300
|
responseKind: "json"
|
|
8260
8301
|
},
|
|
8302
|
+
...SDK_APPOINTMENT_SERVICE_ENDPOINT_DEFINITIONS,
|
|
8261
8303
|
sdkUpsertEventCategory: {
|
|
8262
8304
|
path: "/sdk/{siteId}/event-categories",
|
|
8263
8305
|
method: "POST",
|
|
@@ -11763,6 +11805,79 @@ function isUnknownArray$3(value) {
|
|
|
11763
11805
|
return Array.isArray(value);
|
|
11764
11806
|
}
|
|
11765
11807
|
//#endregion
|
|
11808
|
+
//#region ../blocks/src/system/manifest/fieldValidation/layoutGrid.ts
|
|
11809
|
+
function layoutGridRecord(value) {
|
|
11810
|
+
return value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
11811
|
+
}
|
|
11812
|
+
function resolveLayoutGridItemPlans(plan, item) {
|
|
11813
|
+
return plan.repeatedItemVariants?.find((variant) => variant.typeId === item._type)?.fields ?? plan.repeatedItemPlan ?? [];
|
|
11814
|
+
}
|
|
11815
|
+
function layoutGridCoordinateFieldIds(plan) {
|
|
11816
|
+
const grid = plan.layoutGrid;
|
|
11817
|
+
return grid ? [
|
|
11818
|
+
grid.spanField,
|
|
11819
|
+
grid.rowField,
|
|
11820
|
+
grid.columnField
|
|
11821
|
+
] : [];
|
|
11822
|
+
}
|
|
11823
|
+
function acceptedSpans(plans, spanField) {
|
|
11824
|
+
const span = plans.find((field) => field.fieldId === spanField);
|
|
11825
|
+
if (span?.kind !== "select") return void 0;
|
|
11826
|
+
const constraint = span.constraints.find((entry) => entry.kind === "selectOption");
|
|
11827
|
+
return constraint?.kind === "selectOption" && constraint.source.kind === "static" ? constraint.source.values.map(Number) : [];
|
|
11828
|
+
}
|
|
11829
|
+
function gridIssue(plan, path, message) {
|
|
11830
|
+
return {
|
|
11831
|
+
kind: "invalidLayoutGrid",
|
|
11832
|
+
fieldId: plan.fieldId,
|
|
11833
|
+
label: plan.label,
|
|
11834
|
+
path,
|
|
11835
|
+
message
|
|
11836
|
+
};
|
|
11837
|
+
}
|
|
11838
|
+
function buildLayoutGridForPlan(plan, value, values, ids) {
|
|
11839
|
+
const grid = plan.layoutGrid;
|
|
11840
|
+
if (!grid) return null;
|
|
11841
|
+
const columns = grid.columns ?? (grid.columnsFields ? resolveRepeaterGridColumnsForBreakpoint(values, grid.columnsFields, "lg") : 1);
|
|
11842
|
+
return buildRepeaterGridLayout({
|
|
11843
|
+
items: value.flatMap((item, index) => {
|
|
11844
|
+
const row = layoutGridRecord(item);
|
|
11845
|
+
return row ? [{
|
|
11846
|
+
id: ids?.[index] ?? String(index),
|
|
11847
|
+
startNewRow: grid.startNewRowField ? row[grid.startNewRowField] === true : false,
|
|
11848
|
+
span: parseRepeaterGridInteger(row[grid.spanField]) ?? NaN,
|
|
11849
|
+
row: parseRepeaterGridInteger(row[grid.rowField]) ?? NaN,
|
|
11850
|
+
colStart: parseRepeaterGridInteger(row[grid.columnField]) ?? NaN,
|
|
11851
|
+
acceptedSpans: acceptedSpans(resolveLayoutGridItemPlans(plan, row), grid.spanField)
|
|
11852
|
+
}] : [];
|
|
11853
|
+
}),
|
|
11854
|
+
columns,
|
|
11855
|
+
maxRows: grid.maxRows,
|
|
11856
|
+
placementPolicy: grid.columns === void 0 ? "free" : "flow"
|
|
11857
|
+
});
|
|
11858
|
+
}
|
|
11859
|
+
function validateGrid(plan, value, values, path) {
|
|
11860
|
+
const layout = buildLayoutGridForPlan(plan, value, values);
|
|
11861
|
+
if (!layout) return [];
|
|
11862
|
+
if (layout.hasCollisions || layout.overCapacity) return [gridIssue(plan, path, "Some items overlap or do not fit in this layout. Adjust their widths or positions before saving.")];
|
|
11863
|
+
return layout.hasInvalidItems ? [gridIssue(plan, path, "Choose an available width and a valid position for each item before saving.")] : [];
|
|
11864
|
+
}
|
|
11865
|
+
/** Root values resolve the same column bindings as the editor; recurse without changing any content. */
|
|
11866
|
+
function validateLayoutGridPlans(plans, value, rootValues = layoutGridRecord(value) ?? {}, parent = []) {
|
|
11867
|
+
const values = layoutGridRecord(value);
|
|
11868
|
+
if (!values) return [];
|
|
11869
|
+
return plans.flatMap((plan) => {
|
|
11870
|
+
const fieldValue = values[plan.fieldId];
|
|
11871
|
+
const path = [...parent, plan.fieldId];
|
|
11872
|
+
if (plan.kind === "group") return validateLayoutGridPlans(allGroupChildPlans(plan), fieldValue, rootValues, path);
|
|
11873
|
+
if (plan.kind !== "repeater" || !Array.isArray(fieldValue)) return [];
|
|
11874
|
+
return [...validateGrid(plan, fieldValue, rootValues, path), ...fieldValue.flatMap((item, index) => {
|
|
11875
|
+
const row = layoutGridRecord(item);
|
|
11876
|
+
return row ? validateLayoutGridPlans(resolveLayoutGridItemPlans(plan, row), row, rootValues, [...path, index]) : [];
|
|
11877
|
+
})];
|
|
11878
|
+
});
|
|
11879
|
+
}
|
|
11880
|
+
//#endregion
|
|
11766
11881
|
//#region ../blocks/src/system/manifest/fieldValidation/index.ts
|
|
11767
11882
|
const TEL_RE = /^[+()0-9\s-]{3,}$/;
|
|
11768
11883
|
const SLUG_PATTERN = /^(?:[a-z0-9]+(?:-[a-z0-9]+)*)(?:\/(?:[a-z0-9]+(?:-[a-z0-9]+)*))*$/;
|
|
@@ -11777,7 +11892,7 @@ function validationContext(options = {}) {
|
|
|
11777
11892
|
const isDraft = options.mode === "draft";
|
|
11778
11893
|
return {
|
|
11779
11894
|
allowNull: options.allowNull ?? true,
|
|
11780
|
-
allowIncomplete: isDraft || (options.allowIncomplete ?? false),
|
|
11895
|
+
allowIncomplete: options.mode === "storable" ? false : isDraft || (options.allowIncomplete ?? false),
|
|
11781
11896
|
mode: options.mode ?? "strict"
|
|
11782
11897
|
};
|
|
11783
11898
|
}
|
|
@@ -11800,18 +11915,20 @@ function parseFieldPathKey(key) {
|
|
|
11800
11915
|
return Number.isInteger(numeric) && String(numeric) === segment ? numeric : segment;
|
|
11801
11916
|
});
|
|
11802
11917
|
}
|
|
11918
|
+
const simpleIssueMessages = {
|
|
11919
|
+
required: "This field is required",
|
|
11920
|
+
invalidEmail: "Enter a valid email address",
|
|
11921
|
+
invalidPhone: "Enter a valid phone number",
|
|
11922
|
+
invalidPattern: "Check the format and try again",
|
|
11923
|
+
invalidUrl: "Enter a valid web address",
|
|
11924
|
+
invalidDate: "Choose a valid date",
|
|
11925
|
+
invalidTime: "Choose a valid time",
|
|
11926
|
+
invalidDateTime: "Choose a valid date and time"
|
|
11927
|
+
};
|
|
11803
11928
|
function fieldIssueToMessage(issue) {
|
|
11804
11929
|
switch (issue.kind) {
|
|
11805
|
-
case "required": return "This field is required";
|
|
11806
11930
|
case "wrongType": return `${issue.label} needs ${issue.expected}`;
|
|
11807
11931
|
case "tooLong": return `Use ${issue.maximum} characters or fewer`;
|
|
11808
|
-
case "invalidEmail": return "Enter a valid email address";
|
|
11809
|
-
case "invalidPhone": return "Enter a valid phone number";
|
|
11810
|
-
case "invalidPattern": return "Check the format and try again";
|
|
11811
|
-
case "invalidUrl": return "Enter a valid web address";
|
|
11812
|
-
case "invalidDate": return "Choose a valid date";
|
|
11813
|
-
case "invalidTime": return "Choose a valid time";
|
|
11814
|
-
case "invalidDateTime": return "Choose a valid date and time";
|
|
11815
11932
|
case "invalidNumber": return `${issue.label} needs a number`;
|
|
11816
11933
|
case "tooSmall": return `${issue.label} must be ${issue.minimum} or more`;
|
|
11817
11934
|
case "tooLarge": return `${issue.label} must be ${issue.maximum} or less`;
|
|
@@ -11824,7 +11941,16 @@ function fieldIssueToMessage(issue) {
|
|
|
11824
11941
|
case "invalidMedia": return `${issue.label} must be a media object with an identifier`;
|
|
11825
11942
|
case "invalidBoxBackground": return `${issue.label} must use a valid background type and matching fields`;
|
|
11826
11943
|
case "invalidLink": return `${issue.label} must be a valid link`;
|
|
11944
|
+
case "invalidLayoutGrid": return issue.message;
|
|
11827
11945
|
case "invalidReference": return `${issue.label} must reference a valid item`;
|
|
11946
|
+
case "required":
|
|
11947
|
+
case "invalidDate":
|
|
11948
|
+
case "invalidDateTime":
|
|
11949
|
+
case "invalidEmail":
|
|
11950
|
+
case "invalidPattern":
|
|
11951
|
+
case "invalidPhone":
|
|
11952
|
+
case "invalidTime":
|
|
11953
|
+
case "invalidUrl": return simpleIssueMessages[issue.kind];
|
|
11828
11954
|
default: return assertNever(issue);
|
|
11829
11955
|
}
|
|
11830
11956
|
}
|
|
@@ -11934,11 +12060,7 @@ function deriveFieldValidationPlan(field, path = [field.id]) {
|
|
|
11934
12060
|
};
|
|
11935
12061
|
case "link": return makePlan("link", "object", field, path, required, commonConstraints(required, { kind: "linkObject" }));
|
|
11936
12062
|
case "boolean": return makePlan("boolean", "boolean", field, path, required, requiredConstraints(required));
|
|
11937
|
-
case "repeater": return
|
|
11938
|
-
...makePlan("repeater", "array", field, path, required, commonConstraints(required, { kind: "arrayType" })),
|
|
11939
|
-
...field.polymorphic && field.itemTypes ? { repeatedItemVariants: deriveRepeatedItemVariants(field, [...path, 0]) } : { repeatedItemPlan: deriveNestedFieldPlans(getRepeaterFields(field), [...path, 0]) },
|
|
11940
|
-
constraints: withRepeaterItemConstraints(field, commonConstraints(required, { kind: "arrayType" }))
|
|
11941
|
-
};
|
|
12063
|
+
case "repeater": return deriveRepeaterFieldValidationPlan(field, path);
|
|
11942
12064
|
case "group":
|
|
11943
12065
|
case "modal": return {
|
|
11944
12066
|
...makePlan("group", "object", field, path, required, requiredConstraints(required)),
|
|
@@ -11955,6 +12077,27 @@ function deriveFieldValidationPlan(field, path = [field.id]) {
|
|
|
11955
12077
|
default: return assertNever(field);
|
|
11956
12078
|
}
|
|
11957
12079
|
}
|
|
12080
|
+
function deriveRepeaterFieldValidationPlan(field, path) {
|
|
12081
|
+
const required = Boolean(field.required);
|
|
12082
|
+
const constraints = commonConstraints(required, { kind: "arrayType" });
|
|
12083
|
+
return {
|
|
12084
|
+
...makePlan("repeater", "array", field, path, required, constraints),
|
|
12085
|
+
...field.ui?.repeaterPreset === "layoutGrid" ? { layoutGrid: {
|
|
12086
|
+
startNewRowField: field.ui.layoutGridStartNewRowField,
|
|
12087
|
+
columns: field.ui.layoutGridColumns,
|
|
12088
|
+
columnsFields: field.ui.layoutGridColumnsFields,
|
|
12089
|
+
spanField: resolveRepeaterGridSpanFieldId({ id: field.ui.layoutGridSpanField }),
|
|
12090
|
+
rowField: resolveRepeaterGridRowFieldId({ id: field.ui.layoutGridRowField }),
|
|
12091
|
+
columnField: resolveRepeaterGridColumnFieldId({ id: field.ui.layoutGridColumnField }),
|
|
12092
|
+
maxRows: field.ui.layoutGridMaxRows
|
|
12093
|
+
} } : {},
|
|
12094
|
+
...field.polymorphic && field.itemTypes ? { repeatedItemVariants: deriveRepeatedItemVariants(field, [...path, 0]) } : {
|
|
12095
|
+
repeatedItemPlan: deriveNestedFieldPlans(getRepeaterFields(field), [...path, 0]),
|
|
12096
|
+
flattenedGroupIds: getFlattenedGroupIds(field.schema?.fields ?? [])
|
|
12097
|
+
},
|
|
12098
|
+
constraints: withRepeaterItemConstraints(field, constraints)
|
|
12099
|
+
};
|
|
12100
|
+
}
|
|
11958
12101
|
function deriveFieldValidationPlans(fields, parentPath = []) {
|
|
11959
12102
|
return fields.map((field) => deriveFieldValidationPlan(field, [...parentPath, field.id]));
|
|
11960
12103
|
}
|
|
@@ -12000,7 +12143,8 @@ function withRepeaterItemConstraints(field, constraints) {
|
|
|
12000
12143
|
function deriveRepeatedItemVariants(field, parentPath) {
|
|
12001
12144
|
return Object.entries(field.itemTypes ?? {}).map(([typeId, itemType]) => ({
|
|
12002
12145
|
typeId,
|
|
12003
|
-
fields: deriveNestedFieldPlans(getFlattenedRepeaterFields(itemType.fields), parentPath)
|
|
12146
|
+
fields: deriveNestedFieldPlans(getFlattenedRepeaterFields(itemType.fields), parentPath),
|
|
12147
|
+
flattenedGroupIds: getFlattenedGroupIds(itemType.fields)
|
|
12004
12148
|
}));
|
|
12005
12149
|
}
|
|
12006
12150
|
function deriveNestedFieldPlans(fields, parentPath) {
|
|
@@ -12009,6 +12153,11 @@ function deriveNestedFieldPlans(fields, parentPath) {
|
|
|
12009
12153
|
function getRepeaterFields(field) {
|
|
12010
12154
|
return getFlattenedRepeaterFields(field.polymorphic && field.itemTypes ? Object.values(field.itemTypes).flatMap((itemType) => itemType.fields) : field.schema?.fields ?? []);
|
|
12011
12155
|
}
|
|
12156
|
+
/** Only group ids absent from the actual data fields are forbidden containers. */
|
|
12157
|
+
function getFlattenedGroupIds(fields) {
|
|
12158
|
+
const dataIds = new Set(getFlattenedRepeaterFields(fields).map((field) => field.id));
|
|
12159
|
+
return fields.flatMap((field) => field.type === "group" && field.ui?.flattenInRepeater && !dataIds.has(field.id) ? [field.id] : []);
|
|
12160
|
+
}
|
|
12012
12161
|
function getFlattenedRepeaterFields(fields) {
|
|
12013
12162
|
return fields.flatMap((child) => {
|
|
12014
12163
|
if (child.type === "group" && child.ui?.flattenInRepeater) return child.schema?.fields ?? [];
|
|
@@ -12080,7 +12229,8 @@ function normalizeStoredRepeaterItems(plan, value, ctx) {
|
|
|
12080
12229
|
return value.map((item) => {
|
|
12081
12230
|
if (!item || typeof item !== "object" || Array.isArray(item)) return item;
|
|
12082
12231
|
const itemRecord = item;
|
|
12083
|
-
const
|
|
12232
|
+
const selection = selectRepeaterItemPlan(plan, itemRecord);
|
|
12233
|
+
const fields = selection.kind === "fields" ? selection.fields : void 0;
|
|
12084
12234
|
if (!fields) return item;
|
|
12085
12235
|
return normalizeStoredObjectChildren(fields, itemRecord, ctx);
|
|
12086
12236
|
});
|
|
@@ -12128,7 +12278,8 @@ function normalizeRepeaterItems(plan, value, ctx) {
|
|
|
12128
12278
|
return value.map((item) => {
|
|
12129
12279
|
if (!item || typeof item !== "object" || Array.isArray(item)) return item;
|
|
12130
12280
|
const itemRecord = item;
|
|
12131
|
-
const
|
|
12281
|
+
const selection = selectRepeaterItemPlan(plan, itemRecord);
|
|
12282
|
+
const fields = selection.kind === "fields" ? selection.fields : void 0;
|
|
12132
12283
|
if (!fields) return item;
|
|
12133
12284
|
return normalizeObjectChildren(fields, itemRecord, ctx);
|
|
12134
12285
|
});
|
|
@@ -12143,11 +12294,11 @@ function acceptsOptionalBlankAsMissing(plan, value) {
|
|
|
12143
12294
|
return plan.constraints.some((constraint) => constraint.kind === "urlFormat" || constraint.kind === "slugFormat" || constraint.kind === "emailFormat" || constraint.kind === "phoneFormat" || constraint.kind === "patternFormat");
|
|
12144
12295
|
}
|
|
12145
12296
|
function validateNormalizedFieldValue(plan, value, ctx) {
|
|
12146
|
-
if (value === null && (ctx
|
|
12147
|
-
if (isMissingForPlan(plan, value)) return shouldRequireValue(plan, value, ctx) ? [requiredIssue(plan, value)] : [];
|
|
12297
|
+
if (value === null && acceptsNullValue(plan, ctx)) return [];
|
|
12298
|
+
if (isMissingForPlan(plan, value, ctx.mode)) return shouldRequireValue(plan, value, ctx) ? [requiredIssue(plan, value)] : [];
|
|
12148
12299
|
switch (plan.kind) {
|
|
12149
12300
|
case "string": return validateStringPlan(plan, value, ctx);
|
|
12150
|
-
case "number": return validateNumberPlan(plan, value);
|
|
12301
|
+
case "number": return validateNumberPlan(plan, value, ctx);
|
|
12151
12302
|
case "boolean": return typeof value === "boolean" ? [] : [issue(plan, "wrongType", { expected: "a true/false value" })];
|
|
12152
12303
|
case "select": return validateSelectPlan(plan, value);
|
|
12153
12304
|
case "richText": return isValidRichTextDoc(value) ? [] : [issue(plan, "invalidRichText")];
|
|
@@ -12171,14 +12322,18 @@ function validateMediaPlan(plan, value, ctx) {
|
|
|
12171
12322
|
}
|
|
12172
12323
|
function shouldRequireValue(plan, value, ctx) {
|
|
12173
12324
|
if (!plan.required || ctx.allowIncomplete) return false;
|
|
12174
|
-
if (value === null && ctx.allowNull) return false;
|
|
12325
|
+
if (value === null && ctx.allowNull && ctx.mode !== "storable") return false;
|
|
12175
12326
|
return true;
|
|
12176
12327
|
}
|
|
12328
|
+
function acceptsNullValue(plan, ctx) {
|
|
12329
|
+
return ctx.mode === "storable" ? !plan.required : ctx.allowNull || acceptsOptionalNullValue(plan);
|
|
12330
|
+
}
|
|
12177
12331
|
function acceptsOptionalNullValue(plan) {
|
|
12178
12332
|
return !plan.required && (plan.kind === "media" || plan.kind === "number");
|
|
12179
12333
|
}
|
|
12180
|
-
function isMissingForPlan(plan, value) {
|
|
12334
|
+
function isMissingForPlan(plan, value, mode) {
|
|
12181
12335
|
if (value === void 0) return true;
|
|
12336
|
+
if (mode === "storable") return value === null || value === "";
|
|
12182
12337
|
if (value === null) return plan.required;
|
|
12183
12338
|
if (typeof value === "string" && value.trim() === "") return true;
|
|
12184
12339
|
if (Array.isArray(value) && value.length === 0) return true;
|
|
@@ -12193,7 +12348,7 @@ function validateStringConstraint(plan, constraint, value, ctx) {
|
|
|
12193
12348
|
if (constraint.kind === "required") return [];
|
|
12194
12349
|
if (constraint.kind === "blockIconValue") return isValidIconPickerValue(value) ? [] : [issue(plan, "wrongType", { expected: "text or icon" })];
|
|
12195
12350
|
if (typeof value !== "string") return [issue(plan, "wrongType", { expected: "text" })];
|
|
12196
|
-
if (constraint.kind === "textType" || constraint.kind === "referenceText") return [];
|
|
12351
|
+
if (constraint.kind === "textType" || constraint.kind === "referenceText" || ctx.mode === "storable") return [];
|
|
12197
12352
|
return constraint.kind === "maxLength" ? validateAuthoredTextLength(plan, value, constraint.maximum, ctx) : validateStringFormat(plan, constraint, value);
|
|
12198
12353
|
}
|
|
12199
12354
|
const SIMPLE_STRING_FORMATS = {
|
|
@@ -12233,7 +12388,7 @@ function validateStringFormat(plan, constraint, value) {
|
|
|
12233
12388
|
}
|
|
12234
12389
|
/** Authoring limits govern stored block copy; resolved entry text has its own owner. */
|
|
12235
12390
|
function validateAuthoredTextLength(plan, text, maximum, ctx) {
|
|
12236
|
-
return ctx.mode !== "render" && maximum !== void 0 && text.length > maximum ? [issue(plan, "tooLong", { maximum })] : [];
|
|
12391
|
+
return ctx.mode !== "render" && ctx.mode !== "storable" && maximum !== void 0 && text.length > maximum ? [issue(plan, "tooLong", { maximum })] : [];
|
|
12237
12392
|
}
|
|
12238
12393
|
function isValidIconPickerValue(value) {
|
|
12239
12394
|
if (typeof value === "string") return true;
|
|
@@ -12241,8 +12396,9 @@ function isValidIconPickerValue(value) {
|
|
|
12241
12396
|
if (value.kind === "none") return true;
|
|
12242
12397
|
return parseBlockIconValue(value).kind !== "none";
|
|
12243
12398
|
}
|
|
12244
|
-
function validateNumberPlan(plan, value) {
|
|
12399
|
+
function validateNumberPlan(plan, value, ctx) {
|
|
12245
12400
|
if (!isValidNumber(value)) return [issue(plan, "invalidNumber")];
|
|
12401
|
+
if (ctx.mode === "storable") return [];
|
|
12246
12402
|
return plan.constraints.flatMap((constraint) => validateNumberConstraint(plan, constraint, Number(value)));
|
|
12247
12403
|
}
|
|
12248
12404
|
function validateNumberConstraint(plan, constraint, value) {
|
|
@@ -12261,7 +12417,7 @@ function validateSelectPlan(plan, value) {
|
|
|
12261
12417
|
}
|
|
12262
12418
|
function validateRepeaterPlan(plan, value, ctx) {
|
|
12263
12419
|
if (!Array.isArray(value)) return [issue(plan, "wrongType", { expected: "a list" })];
|
|
12264
|
-
return [...plan.constraints.flatMap((constraint) => {
|
|
12420
|
+
return [...ctx.mode === "storable" ? [] : plan.constraints.flatMap((constraint) => {
|
|
12265
12421
|
switch (constraint.kind) {
|
|
12266
12422
|
case "required":
|
|
12267
12423
|
case "arrayType": return [];
|
|
@@ -12277,6 +12433,22 @@ function validateRepeaterPlan(plan, value, ctx) {
|
|
|
12277
12433
|
}
|
|
12278
12434
|
}), ...value.flatMap((item, index) => validateRepeaterItem(plan, item, index, ctx))];
|
|
12279
12435
|
}
|
|
12436
|
+
/** Selects both the value fields and forbidden presentation containers together. */
|
|
12437
|
+
function selectRepeaterItemPlan(plan, item) {
|
|
12438
|
+
if (plan.repeatedItemVariants) {
|
|
12439
|
+
const variant = plan.repeatedItemVariants.find((candidate) => candidate.typeId === item._type);
|
|
12440
|
+
return variant ? {
|
|
12441
|
+
kind: "fields",
|
|
12442
|
+
fields: variant.fields,
|
|
12443
|
+
flattenedGroupIds: variant.flattenedGroupIds ?? []
|
|
12444
|
+
} : { kind: "invalidType" };
|
|
12445
|
+
}
|
|
12446
|
+
return plan.repeatedItemPlan ? {
|
|
12447
|
+
kind: "fields",
|
|
12448
|
+
fields: plan.repeatedItemPlan,
|
|
12449
|
+
flattenedGroupIds: plan.flattenedGroupIds ?? []
|
|
12450
|
+
} : { kind: "untyped" };
|
|
12451
|
+
}
|
|
12280
12452
|
function validateRepeaterItem(plan, item, index, ctx) {
|
|
12281
12453
|
if (!isPlainObject$3(item)) return [{
|
|
12282
12454
|
kind: "wrongType",
|
|
@@ -12285,9 +12457,8 @@ function validateRepeaterItem(plan, item, index, ctx) {
|
|
|
12285
12457
|
label: plan.label,
|
|
12286
12458
|
expected: "an object"
|
|
12287
12459
|
}];
|
|
12288
|
-
const
|
|
12289
|
-
|
|
12290
|
-
if (plan.repeatedItemVariants && !variant) return [{
|
|
12460
|
+
const selection = selectRepeaterItemPlan(plan, item);
|
|
12461
|
+
if (selection.kind === "invalidType") return [{
|
|
12291
12462
|
kind: "invalidOption",
|
|
12292
12463
|
path: [
|
|
12293
12464
|
...plan.path,
|
|
@@ -12297,11 +12468,25 @@ function validateRepeaterItem(plan, item, index, ctx) {
|
|
|
12297
12468
|
fieldId: "_type",
|
|
12298
12469
|
label: `${plan.label} item type`
|
|
12299
12470
|
}];
|
|
12300
|
-
|
|
12301
|
-
|
|
12302
|
-
|
|
12471
|
+
if (selection.kind === "untyped") return [];
|
|
12472
|
+
return [...validateFlattenedGroupContainers(selection.flattenedGroupIds, item, plan, index, ctx), ...selection.fields.flatMap((childPlan) => {
|
|
12473
|
+
if (ctx.layoutGridCoordinates === "projected" && layoutGridCoordinateFieldIds(plan).includes(childPlan.fieldId)) return [];
|
|
12303
12474
|
return validateNormalizedFieldValue(materializeRepeaterItemPlan(childPlan, plan.path, index), item[childPlan.fieldId], ctx);
|
|
12304
|
-
});
|
|
12475
|
+
})];
|
|
12476
|
+
}
|
|
12477
|
+
function validateFlattenedGroupContainers(groupIds, item, plan, index, ctx) {
|
|
12478
|
+
if (ctx.mode === "render") return [];
|
|
12479
|
+
return groupIds.flatMap((fieldId) => Object.prototype.hasOwnProperty.call(item, fieldId) ? [{
|
|
12480
|
+
kind: "wrongType",
|
|
12481
|
+
path: [
|
|
12482
|
+
...plan.path,
|
|
12483
|
+
index,
|
|
12484
|
+
fieldId
|
|
12485
|
+
],
|
|
12486
|
+
fieldId,
|
|
12487
|
+
label: plan.label,
|
|
12488
|
+
expected: "valid settings"
|
|
12489
|
+
}] : []);
|
|
12305
12490
|
}
|
|
12306
12491
|
function validateGroupPlan(plan, value, ctx) {
|
|
12307
12492
|
if (!isPlainObject$3(value)) return [issue(plan, "wrongType", { expected: "an object" })];
|
|
@@ -12396,17 +12581,22 @@ function requiredIssue(plan, value) {
|
|
|
12396
12581
|
if (Array.isArray(value)) return issue(plan, "required", { emptyOrigin: "array" });
|
|
12397
12582
|
return issue(plan, "required");
|
|
12398
12583
|
}
|
|
12399
|
-
function fieldPlanToZod(plan, options = {}) {
|
|
12400
|
-
const ctx =
|
|
12584
|
+
function fieldPlanToZod(plan, options = {}, layoutGridCoordinates = "validate") {
|
|
12585
|
+
const ctx = {
|
|
12586
|
+
...validationContext(options),
|
|
12587
|
+
layoutGridCoordinates
|
|
12588
|
+
};
|
|
12401
12589
|
return z.any().transform((value) => normalizeFieldValue(plan, value, ctx)).superRefine((value, zodCtx) => {
|
|
12402
|
-
|
|
12590
|
+
validateNormalizedFieldValue(plan, value, ctx).forEach((validationIssue) => {
|
|
12591
|
+
addFieldIssueToZodContext(zodCtx, validationIssue, plan.path);
|
|
12592
|
+
});
|
|
12403
12593
|
});
|
|
12404
12594
|
}
|
|
12405
12595
|
function fieldPresenceForPlan(plan) {
|
|
12406
12596
|
return plan.required ? { kind: "required" } : { kind: "optional" };
|
|
12407
12597
|
}
|
|
12408
|
-
function fieldPlanToObjectPropertyZod(plan, options = {}) {
|
|
12409
|
-
const schema = fieldPlanToZod(plan, options);
|
|
12598
|
+
function fieldPlanToObjectPropertyZod(plan, options = {}, layoutGridCoordinates = "validate") {
|
|
12599
|
+
const schema = fieldPlanToZod(plan, options, layoutGridCoordinates);
|
|
12410
12600
|
const presence = fieldPresenceForPlan(plan);
|
|
12411
12601
|
switch (presence.kind) {
|
|
12412
12602
|
case "required": return schema;
|
|
@@ -12415,11 +12605,14 @@ function fieldPlanToObjectPropertyZod(plan, options = {}) {
|
|
|
12415
12605
|
}
|
|
12416
12606
|
}
|
|
12417
12607
|
/** Validate stored or runtime fields without applying editor/write normalization. */
|
|
12418
|
-
function fieldPlanToStrictObjectPropertyZod(plan, mode = "strict") {
|
|
12419
|
-
const ctx =
|
|
12420
|
-
|
|
12421
|
-
|
|
12422
|
-
|
|
12608
|
+
function fieldPlanToStrictObjectPropertyZod(plan, mode = "strict", layoutGridCoordinates = "validate") {
|
|
12609
|
+
const ctx = {
|
|
12610
|
+
...strictValidationContext({
|
|
12611
|
+
allowNull: false,
|
|
12612
|
+
mode
|
|
12613
|
+
}),
|
|
12614
|
+
layoutGridCoordinates
|
|
12615
|
+
};
|
|
12423
12616
|
const schema = z.any().superRefine((value, zodCtx) => {
|
|
12424
12617
|
validateNormalizedFieldValue(plan, value, ctx).forEach((validationIssue) => {
|
|
12425
12618
|
addFieldIssueToZodContext(zodCtx, validationIssue, plan.path);
|
|
@@ -12427,76 +12620,35 @@ function fieldPlanToStrictObjectPropertyZod(plan, mode = "strict") {
|
|
|
12427
12620
|
});
|
|
12428
12621
|
return plan.required ? schema : schema.optional();
|
|
12429
12622
|
}
|
|
12430
|
-
function
|
|
12431
|
-
|
|
12432
|
-
|
|
12433
|
-
|
|
12434
|
-
|
|
12435
|
-
|
|
12436
|
-
|
|
12437
|
-
|
|
12438
|
-
|
|
12439
|
-
|
|
12440
|
-
|
|
12441
|
-
|
|
12442
|
-
|
|
12443
|
-
|
|
12444
|
-
|
|
12445
|
-
|
|
12446
|
-
|
|
12447
|
-
|
|
12448
|
-
|
|
12449
|
-
|
|
12450
|
-
|
|
12451
|
-
|
|
12452
|
-
|
|
12453
|
-
|
|
12454
|
-
|
|
12455
|
-
|
|
12456
|
-
|
|
12457
|
-
|
|
12458
|
-
|
|
12459
|
-
maximum: validationIssue.maximum,
|
|
12460
|
-
inclusive: true,
|
|
12461
|
-
message
|
|
12462
|
-
});
|
|
12463
|
-
return;
|
|
12464
|
-
case "invalidOption":
|
|
12465
|
-
zodCtx.addIssue({
|
|
12466
|
-
...issuePath,
|
|
12467
|
-
code: "invalid_value",
|
|
12468
|
-
values: [],
|
|
12469
|
-
message
|
|
12470
|
-
});
|
|
12471
|
-
return;
|
|
12472
|
-
case "wrongType":
|
|
12473
|
-
case "invalidEmail":
|
|
12474
|
-
case "invalidPhone":
|
|
12475
|
-
case "invalidPattern":
|
|
12476
|
-
case "invalidUrl":
|
|
12477
|
-
case "invalidDate":
|
|
12478
|
-
case "invalidTime":
|
|
12479
|
-
case "invalidDateTime":
|
|
12480
|
-
case "invalidNumber":
|
|
12481
|
-
case "tooSmall":
|
|
12482
|
-
case "tooLarge":
|
|
12483
|
-
case "invalidSlug":
|
|
12484
|
-
case "tooFewItems":
|
|
12485
|
-
case "tooManyItems":
|
|
12486
|
-
case "invalidRichText":
|
|
12487
|
-
case "invalidInlineText":
|
|
12488
|
-
case "invalidMedia":
|
|
12489
|
-
case "invalidBoxBackground":
|
|
12490
|
-
case "invalidLink":
|
|
12491
|
-
case "invalidReference":
|
|
12492
|
-
zodCtx.addIssue({
|
|
12493
|
-
...issuePath,
|
|
12494
|
-
code: "custom",
|
|
12495
|
-
message
|
|
12496
|
-
});
|
|
12497
|
-
return;
|
|
12498
|
-
default: assertNever(validationIssue);
|
|
12499
|
-
}
|
|
12623
|
+
function fieldIssueToZodDetail(issue) {
|
|
12624
|
+
if (issue.kind === "required") return issue.emptyOrigin ? {
|
|
12625
|
+
code: "too_small",
|
|
12626
|
+
origin: issue.emptyOrigin,
|
|
12627
|
+
minimum: 1,
|
|
12628
|
+
inclusive: true
|
|
12629
|
+
} : {
|
|
12630
|
+
code: "invalid_type",
|
|
12631
|
+
expected: "nonoptional"
|
|
12632
|
+
};
|
|
12633
|
+
if (issue.kind === "tooLong") return {
|
|
12634
|
+
code: "too_big",
|
|
12635
|
+
origin: "string",
|
|
12636
|
+
maximum: issue.maximum,
|
|
12637
|
+
inclusive: true
|
|
12638
|
+
};
|
|
12639
|
+
if (issue.kind === "invalidOption") return {
|
|
12640
|
+
code: "invalid_value",
|
|
12641
|
+
values: []
|
|
12642
|
+
};
|
|
12643
|
+
return { code: "custom" };
|
|
12644
|
+
}
|
|
12645
|
+
function addFieldIssueToZodContext(zodCtx, issue, rootPath) {
|
|
12646
|
+
const detail = fieldIssueToZodDetail(issue);
|
|
12647
|
+
zodCtx.addIssue({
|
|
12648
|
+
...detail,
|
|
12649
|
+
path: toZodIssuePath(relativeZodIssuePath(issue.path, rootPath)),
|
|
12650
|
+
message: fieldIssueToMessage(issue)
|
|
12651
|
+
});
|
|
12500
12652
|
}
|
|
12501
12653
|
function relativeZodIssuePath(path, rootPath) {
|
|
12502
12654
|
return startsWithFieldPath(path, rootPath) ? path.slice(rootPath.length) : path;
|
|
@@ -12607,6 +12759,59 @@ function registerManifest(manifest) {
|
|
|
12607
12759
|
return manifest;
|
|
12608
12760
|
}
|
|
12609
12761
|
//#endregion
|
|
12762
|
+
//#region ../blocks/src/system/manifest/fieldValidation/layoutGridRendering.ts
|
|
12763
|
+
function hasInvalidCoordinateValues(plan, items) {
|
|
12764
|
+
const ids = layoutGridCoordinateFieldIds(plan);
|
|
12765
|
+
return items.some((item) => {
|
|
12766
|
+
const row = layoutGridRecord(item);
|
|
12767
|
+
return row !== null && resolveLayoutGridItemPlans(plan, row).some((field) => ids.includes(field.fieldId) && !fieldPlanToStrictObjectPropertyZod(field).safeParse(row[field.fieldId]).success);
|
|
12768
|
+
});
|
|
12769
|
+
}
|
|
12770
|
+
/** Shared raw-coordinate admission for editor and public rendering; retains diagnostics. */
|
|
12771
|
+
function admitLayoutGridForPlan(plan, value, rootValues, ids) {
|
|
12772
|
+
const layout = buildLayoutGridForPlan(plan, value, rootValues, ids);
|
|
12773
|
+
return layout && !layout.hasInvalidItems && hasInvalidCoordinateValues(plan, value) ? {
|
|
12774
|
+
...layout,
|
|
12775
|
+
hasInvalidItems: true
|
|
12776
|
+
} : layout;
|
|
12777
|
+
}
|
|
12778
|
+
function projectGrid(plan, value, rootValues) {
|
|
12779
|
+
const grid = plan.layoutGrid;
|
|
12780
|
+
const layout = admitLayoutGridForPlan(plan, value, rootValues);
|
|
12781
|
+
if (!grid || !layout) return value;
|
|
12782
|
+
const authored = layout;
|
|
12783
|
+
const projected = projectRepeaterGridLayoutForRendering(authored);
|
|
12784
|
+
if (projected === authored) return value;
|
|
12785
|
+
return value.map((item, index) => {
|
|
12786
|
+
const row = layoutGridRecord(item);
|
|
12787
|
+
const placement = projected.byId[String(index)];
|
|
12788
|
+
if (!row || !placement) return item;
|
|
12789
|
+
const spanPlan = resolveLayoutGridItemPlans(plan, row).find((field) => field.fieldId === grid.spanField);
|
|
12790
|
+
return {
|
|
12791
|
+
...row,
|
|
12792
|
+
[grid.spanField]: spanPlan?.kind === "number" ? placement.span : String(placement.span),
|
|
12793
|
+
[grid.rowField]: placement.row,
|
|
12794
|
+
[grid.columnField]: placement.colStart
|
|
12795
|
+
};
|
|
12796
|
+
});
|
|
12797
|
+
}
|
|
12798
|
+
/** Only layout coordinates are projected. Array order, item data and media references remain intact. */
|
|
12799
|
+
function projectLayoutGridPlansForRendering(plans, value, rootValues = layoutGridRecord(value) ?? {}) {
|
|
12800
|
+
const values = layoutGridRecord(value);
|
|
12801
|
+
if (!values) return value;
|
|
12802
|
+
return plans.reduce((projected, plan) => {
|
|
12803
|
+
const fieldValue = projected[plan.fieldId];
|
|
12804
|
+
const next = plan.kind === "group" ? projectLayoutGridPlansForRendering(allGroupChildPlans(plan), fieldValue, rootValues) : plan.kind === "repeater" && Array.isArray(fieldValue) ? projectGrid(plan, fieldValue, rootValues).map((item) => {
|
|
12805
|
+
const row = layoutGridRecord(item);
|
|
12806
|
+
return row ? projectLayoutGridPlansForRendering(resolveLayoutGridItemPlans(plan, row), row, rootValues) : item;
|
|
12807
|
+
}) : fieldValue;
|
|
12808
|
+
return next === fieldValue ? projected : {
|
|
12809
|
+
...projected,
|
|
12810
|
+
[plan.fieldId]: next
|
|
12811
|
+
};
|
|
12812
|
+
}, values);
|
|
12813
|
+
}
|
|
12814
|
+
//#endregion
|
|
12610
12815
|
//#region ../blocks/src/system/manifest/validation.ts
|
|
12611
12816
|
const compiledManifestContentContract = Symbol("compiledManifestContentContract");
|
|
12612
12817
|
/**
|
|
@@ -12630,6 +12835,7 @@ function compileManifestContentContract(manifestOrFields, options = {}) {
|
|
|
12630
12835
|
return Object.freeze({ [compiledManifestContentContract]: Object.freeze({
|
|
12631
12836
|
plans,
|
|
12632
12837
|
strictStoredSchema,
|
|
12838
|
+
renderSourceSchema: deriveStrictContentZodFromPlans(plans, "render-source"),
|
|
12633
12839
|
writeSchema: deriveNormalizedContentZodFromPlans(plans, strictOptions, normalizeManifestContentForWrite).superRefine((value, ctx) => {
|
|
12634
12840
|
if (options.unknownFields !== "reject") return;
|
|
12635
12841
|
unknownManifestFieldPaths(plans, value).forEach((path) => {
|
|
@@ -12645,6 +12851,11 @@ function compileManifestContentContract(manifestOrFields, options = {}) {
|
|
|
12645
12851
|
allowIncomplete: true,
|
|
12646
12852
|
mode: "draft"
|
|
12647
12853
|
}, normalizeStoredContentValues),
|
|
12854
|
+
renderDraftSchema: deriveNormalizedContentZodFromPlans(plans, {
|
|
12855
|
+
allowNull: true,
|
|
12856
|
+
allowIncomplete: true,
|
|
12857
|
+
mode: "draft"
|
|
12858
|
+
}, normalizeStoredContentValues, false),
|
|
12648
12859
|
renderSchema: deriveStrictContentZodFromPlans(plans, "render"),
|
|
12649
12860
|
findNonPortableMediaPaths: (content) => findNonPortableMediaPaths(plans, content)
|
|
12650
12861
|
}) });
|
|
@@ -12687,29 +12898,48 @@ function validateManifestDraft(contract, data) {
|
|
|
12687
12898
|
* grants a stored proof, so hydrated media cannot flow back to persistence.
|
|
12688
12899
|
*/
|
|
12689
12900
|
function admitTransportedRenderableManifestContent(contract, content) {
|
|
12690
|
-
const
|
|
12901
|
+
const state = contract[compiledManifestContentContract];
|
|
12902
|
+
const projected = projectLayoutGridPlansForRendering(state.plans, content);
|
|
12903
|
+
const parsed = state.renderSchema.safeParse(projected);
|
|
12691
12904
|
return parsed.success ? {
|
|
12692
12905
|
ok: true,
|
|
12693
|
-
value:
|
|
12906
|
+
value: projected
|
|
12694
12907
|
} : {
|
|
12695
12908
|
ok: false,
|
|
12696
12909
|
error: zodAdmissionError(parsed.error)
|
|
12697
12910
|
};
|
|
12698
12911
|
}
|
|
12699
|
-
function deriveNormalizedContentZodFromPlans(plans, options, normalize) {
|
|
12912
|
+
function deriveNormalizedContentZodFromPlans(plans, options, normalize, validateLayoutGrids = true) {
|
|
12700
12913
|
const isDraft = options.mode === "draft";
|
|
12701
|
-
const baseSchema = deriveContentZodFromPlans(plans, options);
|
|
12914
|
+
const baseSchema = deriveContentZodFromPlans(plans, options, validateLayoutGrids);
|
|
12702
12915
|
if (isDraft) return z.preprocess((content) => preprocessEmptyValues(normalize(plans, content, options)), baseSchema);
|
|
12703
12916
|
return z.preprocess((content) => normalize(plans, content, options), baseSchema);
|
|
12704
12917
|
}
|
|
12705
|
-
function deriveContentZodFromPlans(plans, options) {
|
|
12706
|
-
const shape =
|
|
12707
|
-
|
|
12708
|
-
|
|
12918
|
+
function deriveContentZodFromPlans(plans, options, validateLayoutGrids = true) {
|
|
12919
|
+
const shape = Object.fromEntries(plans.map((plan) => [plan.fieldId, fieldPlanToObjectPropertyZod(plan, options, validateLayoutGrids ? "validate" : "projected")]));
|
|
12920
|
+
return z.object(shape).catchall(z.unknown()).passthrough().superRefine((values, ctx) => {
|
|
12921
|
+
if (!validateLayoutGrids) return;
|
|
12922
|
+
validateLayoutGridPlans(plans, values).forEach((issue) => {
|
|
12923
|
+
ctx.addIssue({
|
|
12924
|
+
code: "custom",
|
|
12925
|
+
path: [...issue.path],
|
|
12926
|
+
message: issue.message
|
|
12927
|
+
});
|
|
12928
|
+
});
|
|
12929
|
+
});
|
|
12709
12930
|
}
|
|
12710
12931
|
function deriveStrictContentZodFromPlans(plans, mode = "strict") {
|
|
12711
|
-
const shape = Object.fromEntries(plans.map((plan) => [plan.fieldId, fieldPlanToStrictObjectPropertyZod(plan, mode)]));
|
|
12712
|
-
return z.object(shape).catchall(z.unknown()).passthrough()
|
|
12932
|
+
const shape = Object.fromEntries(plans.map((plan) => [plan.fieldId, fieldPlanToStrictObjectPropertyZod(plan, mode === "render" ? "render" : "strict", mode === "strict" ? "validate" : "projected")]));
|
|
12933
|
+
return z.object(shape).catchall(z.unknown()).passthrough().superRefine((values, ctx) => {
|
|
12934
|
+
if (mode !== "strict") return;
|
|
12935
|
+
validateLayoutGridPlans(plans, values).forEach((issue) => {
|
|
12936
|
+
ctx.addIssue({
|
|
12937
|
+
code: "custom",
|
|
12938
|
+
path: [...issue.path],
|
|
12939
|
+
message: issue.message
|
|
12940
|
+
});
|
|
12941
|
+
});
|
|
12942
|
+
});
|
|
12713
12943
|
}
|
|
12714
12944
|
function derivePlansFromManifestOrFields(manifestOrFields) {
|
|
12715
12945
|
return deriveFieldValidationPlans(Array.isArray(manifestOrFields) ? manifestOrFields : manifestOrFields.fields ?? []);
|
|
@@ -13986,7 +14216,7 @@ function resolveSurfaceForegroundStyles(value, context, options) {
|
|
|
13986
14216
|
const key = JSON.stringify([
|
|
13987
14217
|
value,
|
|
13988
14218
|
context.proseHoverCandidate,
|
|
13989
|
-
options
|
|
14219
|
+
options,
|
|
13990
14220
|
context.data?._lookSlots !== void 0
|
|
13991
14221
|
]);
|
|
13992
14222
|
const cache = sectionSurfaceCache.get(context.theme) ?? /* @__PURE__ */ new Map();
|
|
@@ -14005,7 +14235,10 @@ function resolveSurfaceForegroundStyles(value, context, options) {
|
|
|
14005
14235
|
function resolveRuntimeSectionSurface(value, context, options) {
|
|
14006
14236
|
return resolveSurface({
|
|
14007
14237
|
kind: "section",
|
|
14008
|
-
background:
|
|
14238
|
+
background: sectionForegroundBackground(resolveSectionBackground(parseCanonicalRuntimeBackground({ _sectionStyles: { background: value } }), null, void 0, {
|
|
14239
|
+
paintsGround: options?.photoPaintsGround !== false,
|
|
14240
|
+
fallbackToken: options?.fallbackToken
|
|
14241
|
+
}), context.theme.palette)
|
|
14009
14242
|
}, {
|
|
14010
14243
|
palette: context.theme.palette,
|
|
14011
14244
|
buttonSystem: context.theme.buttons,
|
|
@@ -16789,7 +17022,7 @@ function splitLayoutWith(children) {
|
|
|
16789
17022
|
children
|
|
16790
17023
|
}
|
|
16791
17024
|
}),
|
|
16792
|
-
renderBackgroundImage:
|
|
17025
|
+
renderBackgroundImage: heroPhotoPaintsGround("split"),
|
|
16793
17026
|
baseClass: ""
|
|
16794
17027
|
});
|
|
16795
17028
|
}
|
|
@@ -16805,7 +17038,7 @@ const lookPhoto = el("figure", lookSlot("media"), [media({
|
|
|
16805
17038
|
const lookCopy = el("div", lookSlot("copy"), heroContentNodes);
|
|
16806
17039
|
const heroLookLayout = (children) => styledSection({
|
|
16807
17040
|
baseClass: "",
|
|
16808
|
-
renderBackgroundImage:
|
|
17041
|
+
renderBackgroundImage: heroPhotoPaintsGround("headline-row"),
|
|
16809
17042
|
children: styledContainer({ children: el("div", lookSlot("frame"), children) })
|
|
16810
17043
|
});
|
|
16811
17044
|
const headlineRowLayout = heroLookLayout([
|
|
@@ -17685,8 +17918,24 @@ const blogListingBlockDefinition = {
|
|
|
17685
17918
|
//#endregion
|
|
17686
17919
|
//#region ../blocks/src/system/blocks/cta-full.ts
|
|
17687
17920
|
const ctaComposition = composeFragments([{ fragment: ctaCopyFragment }, { fragment: ctaRowFragment }]);
|
|
17921
|
+
const figureLayout = styledSection({
|
|
17922
|
+
children: sectionContainer([el("div", lookSlot("layout"), [el("div", lookSlot("figure"), [text({
|
|
17923
|
+
as: "p",
|
|
17924
|
+
...lookSlot("figure-value")
|
|
17925
|
+
}, when("content.figure"), bind("content.figure")), text({
|
|
17926
|
+
as: "p",
|
|
17927
|
+
...lookSlot("figure-label")
|
|
17928
|
+
}, when("content.figureNote"), bind("content.figureNote"))], when("content.figure")), el("div", lookSlot("copy"), [...ctaComposition.layout])])], {
|
|
17929
|
+
gap: "md",
|
|
17930
|
+
className: "rb-relative"
|
|
17931
|
+
}),
|
|
17932
|
+
baseClass: ""
|
|
17933
|
+
});
|
|
17688
17934
|
const ctaFullBlockDefinition = { manifest: createBlockManifest({
|
|
17689
|
-
variantMeaning: {
|
|
17935
|
+
variantMeaning: {
|
|
17936
|
+
kind: "arrangement",
|
|
17937
|
+
lookOnlyKeys: ["figure"]
|
|
17938
|
+
},
|
|
17690
17939
|
id: "block.cta-full",
|
|
17691
17940
|
title: "Full-width CTA",
|
|
17692
17941
|
category: "marketing",
|
|
@@ -17698,6 +17947,21 @@ const ctaFullBlockDefinition = { manifest: createBlockManifest({
|
|
|
17698
17947
|
fragment: ctaRowFragment,
|
|
17699
17948
|
fieldPriority: 2
|
|
17700
17949
|
}],
|
|
17950
|
+
additionalFields: [parseFieldDefinition({
|
|
17951
|
+
id: "figure",
|
|
17952
|
+
type: "text",
|
|
17953
|
+
label: "Big figure",
|
|
17954
|
+
help: "A short number or price, like £12 or 6 weeks.",
|
|
17955
|
+
required: false,
|
|
17956
|
+
defaultValue: ""
|
|
17957
|
+
}), parseFieldDefinition({
|
|
17958
|
+
id: "figureNote",
|
|
17959
|
+
type: "text",
|
|
17960
|
+
label: "Under the figure",
|
|
17961
|
+
help: "A few words under it, like 'your first class'.",
|
|
17962
|
+
required: false,
|
|
17963
|
+
defaultValue: ""
|
|
17964
|
+
})],
|
|
17701
17965
|
layout: styledSection({
|
|
17702
17966
|
children: props(lookSlot("copy"))(sectionContainer(ctaComposition.layout, {
|
|
17703
17967
|
gap: "md",
|
|
@@ -17705,6 +17969,7 @@ const ctaFullBlockDefinition = { manifest: createBlockManifest({
|
|
|
17705
17969
|
})),
|
|
17706
17970
|
baseClass: ""
|
|
17707
17971
|
}),
|
|
17972
|
+
variants: { figure: figureLayout },
|
|
17708
17973
|
description: "Centered call to action with optional background image.",
|
|
17709
17974
|
tags: [
|
|
17710
17975
|
"cta",
|
|
@@ -17974,6 +18239,21 @@ const splitHeadingColumnsLayout = styledSection({
|
|
|
17974
18239
|
}),
|
|
17975
18240
|
baseClass: ""
|
|
17976
18241
|
});
|
|
18242
|
+
const openAnswer = el("div", lookSlot("item"), [text({
|
|
18243
|
+
as: "h3",
|
|
18244
|
+
...lookSlot("item-title")
|
|
18245
|
+
}, bind("faqItem.question")), richText({ ...lookSlot("item-text") }, when("faqItem.answer"), bind("faqItem.answer"))], repeat("content.items", "faqItem", { indexName: "faqIndex" }));
|
|
18246
|
+
const openLayout = styledSection({
|
|
18247
|
+
children: styledContainer({
|
|
18248
|
+
baseClassName: "rb-relative rb-isolate",
|
|
18249
|
+
children: stack({
|
|
18250
|
+
gap: "lg",
|
|
18251
|
+
className: "rb-w-full",
|
|
18252
|
+
...lookSlot("layout")
|
|
18253
|
+
}, [headingLayout, el("div", lookSlot("items"), [openAnswer])])
|
|
18254
|
+
}),
|
|
18255
|
+
baseClass: ""
|
|
18256
|
+
});
|
|
17977
18257
|
const faqBlockDefinition = { manifest: createBlockManifest({
|
|
17978
18258
|
id: "block.faq",
|
|
17979
18259
|
title: "FAQ",
|
|
@@ -17997,9 +18277,13 @@ const faqBlockDefinition = { manifest: createBlockManifest({
|
|
|
17997
18277
|
default: defaultLayout,
|
|
17998
18278
|
"two-column": twoColumnLayout,
|
|
17999
18279
|
"question-columns": questionColumnsLayout,
|
|
18000
|
-
"split-heading-columns": splitHeadingColumnsLayout
|
|
18280
|
+
"split-heading-columns": splitHeadingColumnsLayout,
|
|
18281
|
+
open: openLayout
|
|
18282
|
+
},
|
|
18283
|
+
variantMeaning: {
|
|
18284
|
+
kind: "arrangement",
|
|
18285
|
+
lookOnlyKeys: ["open"]
|
|
18001
18286
|
},
|
|
18002
|
-
variantMeaning: { kind: "arrangement" },
|
|
18003
18287
|
defaultVariant: "default",
|
|
18004
18288
|
variantOptions: {
|
|
18005
18289
|
default: {
|
|
@@ -18032,29 +18316,6 @@ const faqBlockDefinition = { manifest: createBlockManifest({
|
|
|
18032
18316
|
icon: "HelpCircle"
|
|
18033
18317
|
}) };
|
|
18034
18318
|
//#endregion
|
|
18035
|
-
//#region ../blocks/src/bindings/formatDate.ts
|
|
18036
|
-
/** Admit stored civil dates or offset-aware instants before core projection. */
|
|
18037
|
-
function formatDate(value, context, options) {
|
|
18038
|
-
if (typeof value !== "string" || !value) return null;
|
|
18039
|
-
if (/^\d{4}-\d{2}-\d{2}$/u.test(value)) try {
|
|
18040
|
-
return formatDate$1({
|
|
18041
|
-
kind: "civil",
|
|
18042
|
-
value: parseBookingLocalDate(value)
|
|
18043
|
-
}, context, options);
|
|
18044
|
-
} catch {
|
|
18045
|
-
return null;
|
|
18046
|
-
}
|
|
18047
|
-
const instant = parseUtcIsoDateTimeString(value);
|
|
18048
|
-
if (!instant.ok) return null;
|
|
18049
|
-
return options.includeTime ? formatDateTime(instant.value, context, {
|
|
18050
|
-
date: options.date,
|
|
18051
|
-
zone: "omit"
|
|
18052
|
-
}) : formatDate$1({
|
|
18053
|
-
kind: "instant",
|
|
18054
|
-
value: instant.value
|
|
18055
|
-
}, context, options);
|
|
18056
|
-
}
|
|
18057
|
-
//#endregion
|
|
18058
18319
|
//#region ../blocks/src/system/transforms/registry/formatting.ts
|
|
18059
18320
|
const uppercaseTransform = {
|
|
18060
18321
|
id: "string.uppercase",
|
|
@@ -18073,7 +18334,7 @@ const dateFormatShort = {
|
|
|
18073
18334
|
id: "date.formatShort",
|
|
18074
18335
|
kind: "formatter",
|
|
18075
18336
|
summary: "Format ISO date string into short human-readable label",
|
|
18076
|
-
run: (value, _options, context) => formatDate(value, context.dateContext, { date: "short" })
|
|
18337
|
+
run: (value, _options, context) => formatDate$1(value, context.dateContext, { date: "short" })
|
|
18077
18338
|
};
|
|
18078
18339
|
const arrayLengthTransform = {
|
|
18079
18340
|
id: "array.length",
|
|
@@ -18700,7 +18961,7 @@ function visitRichTextNode(node, allowedTokens, tokenValues) {
|
|
|
18700
18961
|
function interpolateRichTextTokens(value, options, context) {
|
|
18701
18962
|
if (!isRecord$10(value)) return value;
|
|
18702
18963
|
return visitRichTextNode(value, new Set(options.tokens), {
|
|
18703
|
-
year: () => formatDate
|
|
18964
|
+
year: () => formatDate({
|
|
18704
18965
|
kind: "instant",
|
|
18705
18966
|
value: readRuntimeNow(context.now)
|
|
18706
18967
|
}, context.dateContext, {
|
|
@@ -21665,6 +21926,7 @@ const eventDetailsBlockDefinition = {
|
|
|
21665
21926
|
} },
|
|
21666
21927
|
limit: "100",
|
|
21667
21928
|
readProfile: "details",
|
|
21929
|
+
detailAdmission: { $bind: { from: "$root.subject.detailAdmission" } },
|
|
21668
21930
|
seriesId: { $bind: { from: "$root.subject.eventSeriesId" } },
|
|
21669
21931
|
seriesIds: { $bind: {
|
|
21670
21932
|
from: "$root.subject.catalogueEventSeriesIds",
|
|
@@ -24778,6 +25040,7 @@ function normalizeLocationMapContent(content) {
|
|
|
24778
25040
|
heading: typeof record.heading === "string" ? record.heading : void 0,
|
|
24779
25041
|
locationSource,
|
|
24780
25042
|
...authoredLocationMapSourceFields(locationSource, venueId, normalized.locationValue),
|
|
25043
|
+
showOpeningHours: record.showOpeningHours !== false,
|
|
24781
25044
|
showAddressText: normalized.showAddressText,
|
|
24782
25045
|
showDirections: normalized.showDirections,
|
|
24783
25046
|
directionsLabel: normalized.directionsLabel,
|
|
@@ -24912,6 +25175,13 @@ const locationMapBlockDefinition = {
|
|
|
24912
25175
|
}
|
|
24913
25176
|
] }
|
|
24914
25177
|
}),
|
|
25178
|
+
parseFieldDefinition({
|
|
25179
|
+
id: "showOpeningHours",
|
|
25180
|
+
type: "boolean",
|
|
25181
|
+
label: "Show opening hours",
|
|
25182
|
+
defaultValue: true,
|
|
25183
|
+
ui: { intent: "display" }
|
|
25184
|
+
}),
|
|
24915
25185
|
parseFieldDefinition({
|
|
24916
25186
|
id: "showAddressText",
|
|
24917
25187
|
type: "boolean",
|
|
@@ -24973,6 +25243,14 @@ const locationMapBlockDefinition = {
|
|
|
24973
25243
|
baseClass: "",
|
|
24974
25244
|
spacing: "comfortable",
|
|
24975
25245
|
children: sectionContainer([text({ as: "h2" }, bind("content.heading"), when("content.heading")), el("location-map", {
|
|
25246
|
+
openingHours: { $bind: {
|
|
25247
|
+
from: "$root.openingHours",
|
|
25248
|
+
fallback: null
|
|
25249
|
+
} },
|
|
25250
|
+
showOpeningHours: { $bind: {
|
|
25251
|
+
from: "content.showOpeningHours",
|
|
25252
|
+
fallback: true
|
|
25253
|
+
} },
|
|
24976
25254
|
location: { $bind: {
|
|
24977
25255
|
from: "content.location",
|
|
24978
25256
|
fallback: null
|
|
@@ -25023,6 +25301,7 @@ const locationMapBlockDefinition = {
|
|
|
25023
25301
|
"venueId",
|
|
25024
25302
|
"location",
|
|
25025
25303
|
"showAddressText",
|
|
25304
|
+
"showOpeningHours",
|
|
25026
25305
|
"showDirections",
|
|
25027
25306
|
"directionsLabel",
|
|
25028
25307
|
"zoom",
|
|
@@ -28626,7 +28905,8 @@ function arrangementContentFacts(content) {
|
|
|
28626
28905
|
photo: photoCount > 0,
|
|
28627
28906
|
facts: Array.isArray(content.facts) && content.facts.length > 0,
|
|
28628
28907
|
featured,
|
|
28629
|
-
outcome: typeof content.outcome === "string" && content.outcome.length > 0
|
|
28908
|
+
outcome: typeof content.outcome === "string" && content.outcome.length > 0,
|
|
28909
|
+
figure: typeof content.figure === "string" && content.figure.trim().length > 0
|
|
28630
28910
|
}
|
|
28631
28911
|
};
|
|
28632
28912
|
}
|
|
@@ -28783,7 +29063,7 @@ function resolveArrangementRoleSurfaces(look, runtime, background) {
|
|
|
28783
29063
|
}
|
|
28784
29064
|
/** The arrangement key is resolved once by planBlock, including pinned Looks. */
|
|
28785
29065
|
function heroPhotoGround(entry) {
|
|
28786
|
-
return entry.kind === "renderable" && entry.block.kind === "block.hero" ? { paintsGround: entry.effectiveArrangementKey
|
|
29066
|
+
return entry.kind === "renderable" && entry.block.kind === "block.hero" ? { paintsGround: heroPhotoPaintsGround(entry.effectiveArrangementKey ?? void 0) } : void 0;
|
|
28787
29067
|
}
|
|
28788
29068
|
//#endregion
|
|
28789
29069
|
//#region ../blocks/src/system/data/utils.ts
|
|
@@ -32729,7 +33009,7 @@ function pageBlockPosition(index, blockCount) {
|
|
|
32729
33009
|
//#endregion
|
|
32730
33010
|
//#region ../blocks/src/pageRendererContracts.ts
|
|
32731
33011
|
function buildPageRendererRootRuntime(dataContext) {
|
|
32732
|
-
const { siteId = null, siteName, pageId = null, pathname = null, bookingTimeZone, previewStage = "published", apiBaseUrl = null, portalToken = null, readAuthority, bookingOfferingPresets = [], appointmentServicePathPrefix = null, siteTerms, mailingList = { tag: "not_configured" }, loaderFailures = {} } = dataContext ?? {};
|
|
33012
|
+
const { siteId = null, siteName, pageId = null, pathname = null, bookingTimeZone, previewStage = "published", apiBaseUrl = null, portalToken = null, readAuthority, bookingOfferingPresets = [], appointmentServicePathPrefix = null, openingHours, siteTerms, mailingList = { tag: "not_configured" }, loaderFailures = {} } = dataContext ?? {};
|
|
32733
33013
|
return {
|
|
32734
33014
|
siteId,
|
|
32735
33015
|
demoEmailSuppressed: resolveDemoEmailSuppression(dataContext),
|
|
@@ -32744,6 +33024,7 @@ function buildPageRendererRootRuntime(dataContext) {
|
|
|
32744
33024
|
readAuthority,
|
|
32745
33025
|
bookingOfferingPresets,
|
|
32746
33026
|
appointmentServicePathPrefix,
|
|
33027
|
+
openingHours,
|
|
32747
33028
|
siteTerms,
|
|
32748
33029
|
mailingList,
|
|
32749
33030
|
loaderFailures
|
|
@@ -48875,6 +49156,100 @@ const containerResponsiveThemeCss = `/*
|
|
|
48875
49156
|
.theme-scope [data-arrangement]:is([data-look="shop-price-cards"], [data-look="shop-price-cards-featured"], [data-look="shop-ruled-prices"]) [data-slot="group"] + [data-slot="group"] { margin-top: clamp(3rem, 6cqi, 4.5rem); }
|
|
48876
49157
|
.theme-scope [data-arrangement]:is([data-look="shop-price-cards"], [data-look="shop-price-cards-featured"], [data-look="shop-ruled-prices"]) [data-slot="group-label"] { margin: 0; font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.2; }
|
|
48877
49158
|
|
|
49159
|
+
/* ---------------------------------------------------- Photos on top (demo round 4) */
|
|
49160
|
+
/* Photos on top, three across: an open column per item, a 4:5 photo over the title, text and facts.
|
|
49161
|
+
* Two across on tablets and one on phones. Items keep the section ground; skins dress the photo
|
|
49162
|
+
* from [data-card-list-item] down, which wins on source order. */
|
|
49163
|
+
.theme-scope [data-arrangement][data-look="card-list-photos-on-top"] [data-card-list] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 5cqi, 3.5rem) var(--rb-skin-gutter, 1.75rem); align-items: start; }
|
|
49164
|
+
.theme-scope [data-arrangement][data-look="card-list-photos-on-top"] [data-slot="item-media"] { position: relative; min-width: 0; margin: 0; }
|
|
49165
|
+
.theme-scope [data-arrangement][data-look="card-list-photos-on-top"] [data-slot="photo"] { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
|
|
49166
|
+
.theme-scope [data-arrangement][data-look="card-list-photos-on-top"] [data-card-list-item] [data-slot="item-body"] { gap: 0.625rem; padding: 1.375rem 0 0; }
|
|
49167
|
+
.theme-scope [data-arrangement][data-look="card-list-photos-on-top"] [data-card-list-item]:not(:has([data-slot="item-media"])) [data-slot="item-body"] { padding-top: 0; }
|
|
49168
|
+
.theme-scope [data-arrangement][data-look="card-list-photos-on-top"] :is([data-slot="item-title"], [data-slot="item-text"], [data-slot="facts"], [data-slot="schedule"], [data-slot="figure"]) { margin: 0; }
|
|
49169
|
+
.theme-scope [data-arrangement][data-look="card-list-photos-on-top"] [data-slot="item-title"] { text-wrap: balance; }
|
|
49170
|
+
.theme-scope [data-arrangement][data-look="card-list-photos-on-top"] [data-slot="item-title"] a { color: inherit; text-decoration: none; }
|
|
49171
|
+
.theme-scope [data-arrangement][data-look="card-list-photos-on-top"] [data-slot="item-text"] { max-width: 34em; color: var(--rb-surface-muted-color, var(--rb-surface-text-color)); }
|
|
49172
|
+
.theme-scope [data-arrangement][data-look="card-list-photos-on-top"] [data-slot="facts"] { gap: 0.25rem 1.25rem; }
|
|
49173
|
+
.theme-scope [data-arrangement][data-look="card-list-photos-on-top"] [data-slot="facts"] > * { margin: 0; }
|
|
49174
|
+
.theme-scope [data-arrangement][data-look="card-list-photos-on-top"] [data-slot="figure"] { display: flex; align-items: baseline; gap: 0.375rem; }
|
|
49175
|
+
.theme-scope [data-arrangement][data-look="card-list-photos-on-top"] [data-card-list-item] [data-slot="figure"] strong { font-size: 1.5rem; }
|
|
49176
|
+
.theme-scope [data-arrangement][data-look="card-list-photos-on-top"] [data-slot="schedule"] { font-size: 0.9375rem; color: var(--rb-surface-muted-color, var(--rb-surface-text-color)); }
|
|
49177
|
+
.theme-scope [data-arrangement][data-look="card-list-photos-on-top"] [data-slot="item-actions"] { margin-top: 0.375rem; }
|
|
49178
|
+
@container rb-site (max-width: 1023px) {
|
|
49179
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
49180
|
+
.theme-scope:is(*, :scope) [data-arrangement][data-look="card-list-photos-on-top"] [data-card-list] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
49181
|
+
}
|
|
49182
|
+
}
|
|
49183
|
+
@container rb-site (max-width: 767px) {
|
|
49184
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
49185
|
+
.theme-scope:is(*, :scope) [data-arrangement][data-look="card-list-photos-on-top"] [data-card-list] { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
|
|
49186
|
+
}
|
|
49187
|
+
}
|
|
49188
|
+
|
|
49189
|
+
/* ---------------------------------------------------- All answers showing (demo round 4) */
|
|
49190
|
+
/* All answers showing: the head over every question and answer as plain reading, two to a row
|
|
49191
|
+
* (one on phones). There are no disclosure controls, so nothing here resets an accordion. */
|
|
49192
|
+
.theme-scope [data-arrangement][data-look="faq-all-answers-showing"] [data-slot="layout"] { grid-template-columns: minmax(0, 1fr); row-gap: clamp(2rem, 4cqi, 3rem); max-width: none; }
|
|
49193
|
+
.theme-scope [data-arrangement][data-look="faq-all-answers-showing"] [data-slot="layout"] > * { grid-column: 1 / -1; }
|
|
49194
|
+
.theme-scope [data-arrangement][data-look="faq-all-answers-showing"] [data-slot="head"] { width: 100%; max-width: none; margin: 0; text-align: start; align-items: flex-start; }
|
|
49195
|
+
.theme-scope [data-arrangement][data-look="faq-all-answers-showing"] [data-slot="head"] > * { margin-inline: 0; }
|
|
49196
|
+
.theme-scope [data-arrangement][data-look="faq-all-answers-showing"] [data-slot="heading"] { margin: 0; text-wrap: balance; }
|
|
49197
|
+
.theme-scope [data-arrangement][data-look="faq-all-answers-showing"] [data-slot="intro"] { max-width: 34em; color: var(--rb-surface-muted-color, var(--rb-surface-text-color)); }
|
|
49198
|
+
.theme-scope [data-arrangement][data-look="faq-all-answers-showing"] [data-slot="items"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4cqi, 2.75rem) clamp(2rem, 4cqi, 3.5rem); margin: 0; align-items: start; }
|
|
49199
|
+
.theme-scope [data-arrangement][data-look="faq-all-answers-showing"] [data-slot="item"] { display: grid; align-content: start; gap: 0.5rem; min-width: 0; margin: 0; }
|
|
49200
|
+
.theme-scope [data-arrangement][data-look="faq-all-answers-showing"] [data-slot="item-title"] { margin: 0; text-wrap: pretty; }
|
|
49201
|
+
.theme-scope [data-arrangement][data-look="faq-all-answers-showing"] [data-slot="item-text"] { max-width: 38em; color: var(--rb-surface-muted-color, var(--rb-surface-text-color)); }
|
|
49202
|
+
.theme-scope [data-arrangement][data-look="faq-all-answers-showing"] [data-slot="item-text"] > * { margin-block: 0; }
|
|
49203
|
+
.theme-scope [data-arrangement][data-look="faq-all-answers-showing"] [data-slot="item-text"] > * + * { margin-top: 0.625rem; }
|
|
49204
|
+
@container rb-site (max-width: 767px) {
|
|
49205
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
49206
|
+
/* The shared phone layout rule zeroes row gaps; the head keeps its space above the answers. */
|
|
49207
|
+
.theme-scope:is(*, :scope) [data-arrangement][data-look="faq-all-answers-showing"] [data-slot="layout"] { row-gap: 2rem; }
|
|
49208
|
+
.theme-scope:is(*, :scope) [data-arrangement][data-look="faq-all-answers-showing"] [data-slot="items"] { grid-template-columns: minmax(0, 1fr); }
|
|
49209
|
+
}
|
|
49210
|
+
}
|
|
49211
|
+
|
|
49212
|
+
/* ---------------------------------------------------- Title beside the buttons (demo round 4) */
|
|
49213
|
+
/* Title beside the buttons: the copy slot becomes two columns, the title and its line on the left,
|
|
49214
|
+
* the buttons on the right and centred on them. On phones the buttons drop under the text. */
|
|
49215
|
+
/* The copy slot is the section container, so its gutters become margins: skins can rule the band at the text width. */
|
|
49216
|
+
.theme-scope [data-arrangement][data-look="cta-title-beside-buttons"] [data-slot="copy"] { --cta-gutter: clamp(20px, 4cqi, var(--rb-skin-margin, 40px)); display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(2rem, 5cqi, 4.5rem); row-gap: 0.5rem; align-items: center; justify-items: start; width: calc(100% - 2 * var(--cta-gutter)); max-width: calc(var(--rb-skin-wrap, 1280px) - 2 * var(--cta-gutter)); margin-inline: auto; padding-inline: 0; text-align: start; }
|
|
49217
|
+
.theme-scope [data-arrangement][data-look="cta-title-beside-buttons"] [data-slot="copy"] > * { grid-column: 1; margin: 0; }
|
|
49218
|
+
.theme-scope [data-arrangement][data-look="cta-title-beside-buttons"] [data-slot="copy"] > [data-slot="actions"] { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; align-items: center; gap: 0.875rem 1.375rem; }
|
|
49219
|
+
.theme-scope [data-arrangement][data-look="cta-title-beside-buttons"] [data-slot="copy"]:not(:has(> [data-slot="intro"])) > [data-slot="actions"] { grid-row: 1; }
|
|
49220
|
+
.theme-scope [data-arrangement][data-look="cta-title-beside-buttons"] [data-slot="head"] { width: 100%; margin: 0; align-items: flex-start; justify-items: start; text-align: start; }
|
|
49221
|
+
.theme-scope [data-arrangement][data-look="cta-title-beside-buttons"] [data-slot="heading"] { margin: 0; text-wrap: balance; }
|
|
49222
|
+
.theme-scope [data-arrangement][data-look="cta-title-beside-buttons"] [data-slot="intro"] { max-width: 36em; margin: 0; color: var(--rb-surface-muted-color, var(--rb-surface-text-color)); }
|
|
49223
|
+
@container rb-site (max-width: 767px) {
|
|
49224
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
49225
|
+
.theme-scope:is(*, :scope) [data-arrangement][data-look="cta-title-beside-buttons"] [data-slot="copy"] { grid-template-columns: minmax(0, 1fr); }
|
|
49226
|
+
.theme-scope:is(*, :scope) [data-arrangement][data-look="cta-title-beside-buttons"] [data-slot="copy"] > [data-slot="actions"],
|
|
49227
|
+
.theme-scope:is(*, :scope) [data-arrangement][data-look="cta-title-beside-buttons"] [data-slot="copy"]:not(:has(> [data-slot="intro"])) > [data-slot="actions"] { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 1rem; }
|
|
49228
|
+
}
|
|
49229
|
+
}
|
|
49230
|
+
|
|
49231
|
+
/* ---------------------------------------------------- Big figure beside the offer (demo round 4) */
|
|
49232
|
+
/* Big figure beside the offer: the figure and its note in the left column, the eyebrow, title, text and
|
|
49233
|
+
* buttons in the right, stacked on phones. Published without a figure the block reads as Centred; in the
|
|
49234
|
+
* editor the copy takes the whole row until a figure is added. */
|
|
49235
|
+
.theme-scope [data-arrangement][data-look="cta-figure-beside-offer"] [data-slot="layout"] { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2rem, 5cqi, 4rem); row-gap: 1.5rem; align-items: center; width: 100%; }
|
|
49236
|
+
.theme-scope [data-arrangement][data-look="cta-figure-beside-offer"] [data-slot="layout"]:not(:has(> [data-slot="figure"])) { grid-template-columns: minmax(0, 1fr); }
|
|
49237
|
+
.theme-scope [data-arrangement][data-look="cta-figure-beside-offer"] [data-slot="layout"] > * { grid-column: auto; }
|
|
49238
|
+
.theme-scope [data-arrangement][data-look="cta-figure-beside-offer"] [data-slot="figure"] { display: grid; align-content: center; gap: 0.75rem; min-width: 0; margin: 0; }
|
|
49239
|
+
.theme-scope [data-arrangement][data-look="cta-figure-beside-offer"] [data-slot="figure-value"] { margin: 0; font-family: var(--font-heading); font-size: clamp(4.5rem, 13cqi, 13.75rem); line-height: 0.85; color: var(--rb-surface-heading-color, var(--rb-surface-text-color)); }
|
|
49240
|
+
.theme-scope [data-arrangement][data-look="cta-figure-beside-offer"] [data-slot="figure-label"] { margin: 0; color: var(--rb-surface-muted-color, var(--rb-surface-text-color)); }
|
|
49241
|
+
.theme-scope [data-arrangement][data-look="cta-figure-beside-offer"] [data-slot="copy"] { display: grid; justify-items: start; gap: var(--rb-skin-copy-gap, 1.25rem); min-width: 0; text-align: start; }
|
|
49242
|
+
.theme-scope [data-arrangement][data-look="cta-figure-beside-offer"] [data-slot="head"] { width: 100%; margin: 0; align-items: flex-start; justify-items: start; text-align: start; }
|
|
49243
|
+
.theme-scope [data-arrangement][data-look="cta-figure-beside-offer"] [data-slot="heading"] { margin: 0; text-wrap: balance; }
|
|
49244
|
+
.theme-scope [data-arrangement][data-look="cta-figure-beside-offer"] [data-slot="intro"] { max-width: 32em; margin: 0; color: var(--rb-surface-muted-color, var(--rb-surface-text-color)); }
|
|
49245
|
+
.theme-scope [data-arrangement][data-look="cta-figure-beside-offer"] [data-slot="actions"] { justify-content: flex-start; align-items: center; gap: 0.875rem 1.375rem; margin-top: 0.5rem; }
|
|
49246
|
+
@container rb-site (max-width: 767px) {
|
|
49247
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
49248
|
+
.theme-scope:is(*, :scope) [data-arrangement][data-look="cta-figure-beside-offer"] [data-slot="layout"] { grid-template-columns: minmax(0, 1fr); row-gap: 1.75rem; }
|
|
49249
|
+
.theme-scope:is(*, :scope) [data-arrangement][data-look="cta-figure-beside-offer"] [data-slot="figure-value"] { font-size: clamp(4.5rem, 30cqi, 7.5rem); }
|
|
49250
|
+
}
|
|
49251
|
+
}
|
|
49252
|
+
|
|
48878
49253
|
/* Bounded style skins (issue 1575, D14): one stylesheet per arrangement style, keyed on data-skin. */
|
|
48879
49254
|
|
|
48880
49255
|
/* =============================================================================
|
|
@@ -49550,6 +49925,50 @@ const containerResponsiveThemeCss = `/*
|
|
|
49550
49925
|
[data-skin="fulcrum"] :is([data-treat="shop-prices"], [data-treat="shop-prices-featured"]) [data-slot="item-title"] { position: relative; padding-top: 1rem; font-size: 1.25rem; }
|
|
49551
49926
|
[data-skin="fulcrum"] :is([data-treat="shop-prices"], [data-treat="shop-prices-featured"]) [data-slot="item-title"]::before { content: ""; position: absolute; top: 0; left: 0; width: 1.5rem; height: 1px; background: var(--rb-surface-mark-color); }
|
|
49552
49927
|
|
|
49928
|
+
|
|
49929
|
+
/* ---------------------------------------------------- Photos on top (demo round 4) */
|
|
49930
|
+
/* photos-on-top: each tall photo mounted on the small plate, the serif title and a ruled facts register below. */
|
|
49931
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="item-media"] { --fulcrum-plate-small: 10px; isolation: isolate; margin: 0 var(--fulcrum-plate-small) var(--fulcrum-plate-small) 0; }
|
|
49932
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="item-media"]::before { content: ""; position: absolute; inset: 0; z-index: -1; translate: var(--fulcrum-plate-small) var(--fulcrum-plate-small); background: var(--fulcrum-plate-colour); }
|
|
49933
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="item-title"] { font-family: var(--font-heading); font-size: clamp(1.5rem, 2.2cqi, 1.75rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
|
|
49934
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="item-text"] { font-size: 1rem; line-height: 1.6; }
|
|
49935
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="facts"] { margin-top: 0.375rem; }
|
|
49936
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="fact-value"] { font-weight: 500; }
|
|
49937
|
+
|
|
49938
|
+
/* ---------------------------------------------------- All answers showing (demo round 4) */
|
|
49939
|
+
/* faq-open: a hairline over each answer, the question in the serif and the answer in muted body type. */
|
|
49940
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="faq-open"] [data-slot="heading"] { font-size: clamp(2rem, 3.4cqi, 2.75rem); line-height: 1.12; letter-spacing: -0.015em; }
|
|
49941
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="faq-open"] [data-slot="head"] { gap: 0.875rem; }
|
|
49942
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="faq-open"] [data-slot="head"]::before { margin-bottom: 0.5rem; }
|
|
49943
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="faq-open"] [data-slot="items"] > [data-slot="item"] { padding-top: 1.125rem; border-top: var(--rb-skin-rule, 1px) solid var(--rb-surface-line-color); }
|
|
49944
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="faq-open"] [data-slot="item-title"] { font-family: var(--font-heading); font-size: 1.3125rem; font-weight: 400; line-height: 1.3; }
|
|
49945
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="faq-open"] [data-slot="item-text"] { font-size: 1rem; line-height: 1.65; }
|
|
49946
|
+
|
|
49947
|
+
/* ---------------------------------------------------- Title beside the buttons (demo round 4) */
|
|
49948
|
+
/* cta-beside: a slim band between hairlines, the serif title at sub-section size, the buttons to the right. */
|
|
49949
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="cta-beside"] [data-slot="copy"] { padding-block: 2.125rem; border-block: var(--rb-skin-rule, 1px) solid var(--rb-surface-line-color); }
|
|
49950
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="cta-beside"] [data-slot="copy"]::before { content: none; }
|
|
49951
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="cta-beside"] [data-slot="head"] { gap: 0.625rem; }
|
|
49952
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="cta-beside"] [data-slot="head"]::before { content: none; }
|
|
49953
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="cta-beside"] [data-slot="heading"] { font-size: clamp(1.75rem, 2.6cqi, 2.125rem); line-height: 1.15; letter-spacing: -0.01em; }
|
|
49954
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="cta-beside"] [data-slot="intro"] { font-size: 1rem; line-height: 1.6; }
|
|
49955
|
+
|
|
49956
|
+
/* ---------------------------------------------------- Big figure beside the offer (demo round 4) */
|
|
49957
|
+
/* cta-figure: a light serif figure behind a hairline, the note after a short mark, the offer beside it. */
|
|
49958
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="cta-figure"] [data-slot="copy"]::before { content: none; }
|
|
49959
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="cta-figure"] [data-slot="figure"] { padding-right: 2.5rem; border-right: var(--rb-skin-rule, 1px) solid var(--rb-surface-line-color); }
|
|
49960
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="cta-figure"] [data-slot="figure-value"] { font-weight: 300; letter-spacing: -0.04em; }
|
|
49961
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="cta-figure"] [data-slot="figure-label"] { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9375rem; }
|
|
49962
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="cta-figure"] [data-slot="figure-label"]::before { content: ""; flex: none; width: 24px; height: var(--rb-skin-mark-weight, 2px); background: var(--rb-surface-mark-color); }
|
|
49963
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="cta-figure"] [data-slot="head"] { gap: 0.875rem; }
|
|
49964
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="cta-figure"] [data-slot="heading"] { font-size: clamp(2rem, 3.4cqi, 2.75rem); line-height: 1.12; letter-spacing: -0.015em; }
|
|
49965
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="cta-figure"] [data-slot="intro"] { font-size: 1.0625rem; line-height: 1.65; }
|
|
49966
|
+
@container rb-site (max-width: 767px) {
|
|
49967
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
49968
|
+
[data-skin="fulcrum"]:is(*, :scope) [data-arrangement][data-treat="cta-figure"] [data-slot="figure"] { padding: 0 0 1.5rem; border-right: 0; border-bottom: var(--rb-skin-rule, 1px) solid var(--rb-surface-line-color); }
|
|
49969
|
+
}
|
|
49970
|
+
}
|
|
49971
|
+
|
|
49553
49972
|
/* =============================================================================
|
|
49554
49973
|
* Poster skin (issue 1575 Phase 1a, D14).
|
|
49555
49974
|
*
|
|
@@ -50234,6 +50653,44 @@ const containerResponsiveThemeCss = `/*
|
|
|
50234
50653
|
|
|
50235
50654
|
[data-skin="poster"] [data-treat="shop-prices-featured"] [data-card-list-item][data-has-featured="true"] { border-color: var(--rb-surface-text-color); border-width: 3px; box-shadow: 8px 8px 0 var(--rb-surface-text-color); margin-right: 8px; }
|
|
50236
50655
|
|
|
50656
|
+
|
|
50657
|
+
/* ---------------------------------------------------- Photos on top (demo round 4) */
|
|
50658
|
+
/* photos-on-top: each photo in the ink frame with the hard shadow, kept in full colour; loud condensed titles. */
|
|
50659
|
+
[data-skin="poster"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="item-media"] { border: 3px solid var(--rb-surface-text-color); box-shadow: var(--rb-skin-shadow-offset, 8px) var(--rb-skin-shadow-offset, 8px) 0 var(--rb-surface-text-color); margin: 0 var(--rb-skin-shadow-offset, 8px) var(--rb-skin-shadow-offset, 8px) 0; overflow: hidden; }
|
|
50660
|
+
[data-skin="poster"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="item-body"] { padding-top: 1.625rem; }
|
|
50661
|
+
[data-skin="poster"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="item-title"] { font-family: var(--font-heading); font-size: clamp(1.875rem, 3cqi, 2.5rem); font-weight: 800; font-stretch: 62%; line-height: 0.95; letter-spacing: -0.01em; }
|
|
50662
|
+
[data-skin="poster"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="item-text"] { color: var(--rb-surface-text-color); font-size: 1.0625rem; line-height: 1.5; }
|
|
50663
|
+
[data-skin="poster"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="facts"] { border-top: var(--poster-edge); padding-top: 0.625rem; }
|
|
50664
|
+
[data-skin="poster"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="fact-value"] { font-weight: 700; }
|
|
50665
|
+
[data-skin="poster"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="schedule"] { color: var(--rb-surface-text-color); font-weight: 600; }
|
|
50666
|
+
|
|
50667
|
+
/* ---------------------------------------------------- All answers showing (demo round 4) */
|
|
50668
|
+
/* faq-open: a heavy edge over each answer and the loud condensed question, the answer in plain ink. */
|
|
50669
|
+
[data-skin="poster"] [data-arrangement][data-treat="faq-open"] [data-slot="heading"] { font-size: clamp(2.75rem, 5.6cqi, 4.75rem); line-height: 0.92; }
|
|
50670
|
+
[data-skin="poster"] [data-arrangement][data-treat="faq-open"] [data-slot="items"] > [data-slot="item"] { padding-top: 0.875rem; border-top: var(--poster-rule); }
|
|
50671
|
+
[data-skin="poster"] [data-arrangement][data-treat="faq-open"] [data-slot="item-title"] { font-family: var(--font-heading); font-size: clamp(1.375rem, 2cqi, 1.75rem); font-stretch: 75%; font-weight: 800; line-height: 1.05; }
|
|
50672
|
+
[data-skin="poster"] [data-arrangement][data-treat="faq-open"] [data-slot="item-text"] { color: var(--rb-surface-text-color); font-size: 1.0625rem; line-height: 1.55; }
|
|
50673
|
+
|
|
50674
|
+
/* ---------------------------------------------------- Title beside the buttons (demo round 4) */
|
|
50675
|
+
/* cta-beside: a big condensed title between heavy rules, plain ink text, the offset buttons to the right. */
|
|
50676
|
+
[data-skin="poster"] [data-arrangement][data-treat="cta-beside"] [data-slot="copy"] { padding-block: 1.875rem; border-block: var(--poster-rule); }
|
|
50677
|
+
[data-skin="poster"] [data-arrangement][data-treat="cta-beside"] [data-slot="head"] { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
|
|
50678
|
+
[data-skin="poster"] [data-arrangement][data-treat="cta-beside"] [data-slot="heading"] { font-size: clamp(2.5rem, 4.6cqi, 4rem); line-height: 0.92; letter-spacing: -0.01em; }
|
|
50679
|
+
[data-skin="poster"] [data-arrangement][data-treat="cta-beside"] [data-slot="intro"] { font-size: clamp(1.0625rem, 1.4cqi, 1.1875rem); line-height: 1.5; color: var(--rb-surface-text-color); }
|
|
50680
|
+
|
|
50681
|
+
/* ---------------------------------------------------- Big figure beside the offer (demo round 4) */
|
|
50682
|
+
/* cta-figure: a huge condensed figure with a loud note under it, the offer beside it in plain ink. */
|
|
50683
|
+
[data-skin="poster"] [data-arrangement][data-treat="cta-figure"] [data-slot="figure-value"] { font-size: clamp(5.5rem, 19cqi, 18.75rem); font-weight: 900; font-stretch: 62%; letter-spacing: -0.03em; line-height: 0.82; }
|
|
50684
|
+
[data-skin="poster"] [data-arrangement][data-treat="cta-figure"] [data-slot="figure-label"] { font-family: var(--font-heading); font-size: clamp(1.375rem, 2cqi, 1.75rem); font-weight: 800; font-stretch: 75%; line-height: 1; color: var(--rb-surface-text-color); }
|
|
50685
|
+
[data-skin="poster"] [data-arrangement][data-treat="cta-figure"] [data-slot="head"] { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
|
|
50686
|
+
[data-skin="poster"] [data-arrangement][data-treat="cta-figure"] [data-slot="heading"] { font-size: clamp(2.75rem, 5.2cqi, 4.5rem); line-height: 0.92; letter-spacing: -0.01em; }
|
|
50687
|
+
[data-skin="poster"] [data-arrangement][data-treat="cta-figure"] [data-slot="intro"] { font-size: clamp(1.0625rem, 1.4cqi, 1.1875rem); line-height: 1.55; color: var(--rb-surface-text-color); }
|
|
50688
|
+
@container rb-site (max-width: 767px) {
|
|
50689
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
50690
|
+
[data-skin="poster"]:is(*, :scope) [data-arrangement][data-treat="cta-figure"] [data-slot="figure-value"] { font-size: clamp(6rem, 36cqi, 10.5rem); }
|
|
50691
|
+
}
|
|
50692
|
+
}
|
|
50693
|
+
|
|
50237
50694
|
/* =============================================================================
|
|
50238
50695
|
* Lantern skin (issue 1575 Phase 1b, D10, D14).
|
|
50239
50696
|
*
|
|
@@ -51433,6 +51890,65 @@ const containerResponsiveThemeCss = `/*
|
|
|
51433
51890
|
|
|
51434
51891
|
[data-skin="lantern"] [data-treat="shop-prices-featured"] [data-card-list-item][data-has-featured="true"] { box-shadow: 0 0 0 1px var(--rb-surface-mark-color); }
|
|
51435
51892
|
|
|
51893
|
+
|
|
51894
|
+
/* ---------------------------------------------------- Photos on top (demo round 4) */
|
|
51895
|
+
/* photos-on-top: each photo under the arch, the display title and the details centred beneath it. */
|
|
51896
|
+
[data-skin="lantern"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="photo"] { border-radius: var(--lantern-arch); }
|
|
51897
|
+
[data-skin="lantern"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="item-body"] { align-items: center; text-align: center; padding-top: 1.75rem; }
|
|
51898
|
+
[data-skin="lantern"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="item-title"] { font-family: var(--font-heading); font-size: clamp(1.5rem, 2.2cqi, 1.875rem); line-height: 1.2; }
|
|
51899
|
+
[data-skin="lantern"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="item-title"]::after { content: ""; display: block; width: var(--rb-skin-mark-length, 34px); height: var(--rb-skin-mark-weight, 1.5px); margin: 0.875rem auto 0.25rem; background: var(--rb-surface-mark-color); }
|
|
51900
|
+
[data-skin="lantern"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="item-text"] { margin-inline: auto; font-size: 1.0625rem; line-height: 1.6; }
|
|
51901
|
+
[data-skin="lantern"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="facts"] { justify-content: center; }
|
|
51902
|
+
[data-skin="lantern"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="schedule"] { align-self: center; }
|
|
51903
|
+
|
|
51904
|
+
/* ---------------------------------------------------- All answers showing (demo round 4) */
|
|
51905
|
+
/* faq-open: the centred lozenge head over three open columns, each question in the display face
|
|
51906
|
+
* over a short mark, the answer centred beneath it. */
|
|
51907
|
+
[data-skin="lantern"] [data-arrangement][data-treat="faq-open"] [data-slot="head"] { align-items: center; text-align: center; }
|
|
51908
|
+
[data-skin="lantern"] [data-arrangement][data-treat="faq-open"] [data-slot="head"] > * { margin-inline: auto; }
|
|
51909
|
+
/* Rows of three, a short last row centred under the others. */
|
|
51910
|
+
[data-skin="lantern"] [data-arrangement][data-treat="faq-open"] [data-slot="items"] { --lantern-faq-gap: clamp(1.5rem, 3cqi, 2.5rem); display: flex; flex-wrap: wrap; justify-content: center; column-gap: var(--lantern-faq-gap); }
|
|
51911
|
+
[data-skin="lantern"] [data-arrangement][data-treat="faq-open"] [data-slot="items"] > [data-slot="item"] { flex: 0 1 calc((100% - 2 * var(--lantern-faq-gap)) / 3); justify-items: center; text-align: center; padding-inline: 0.75rem; }
|
|
51912
|
+
[data-skin="lantern"] [data-arrangement][data-treat="faq-open"] [data-slot="item-title"] { font-family: var(--font-heading); font-size: clamp(1.25rem, 1.8cqi, 1.375rem); line-height: 1.25; }
|
|
51913
|
+
[data-skin="lantern"] [data-arrangement][data-treat="faq-open"] [data-slot="item-title"]::after { content: ""; display: block; width: var(--rb-skin-mark-length, 34px); height: var(--rb-skin-mark-weight, 1.5px); margin: 0.875rem auto 0.375rem; background: var(--rb-surface-mark-color); }
|
|
51914
|
+
[data-skin="lantern"] [data-arrangement][data-treat="faq-open"] [data-slot="item-text"] { margin-inline: auto; font-size: 1.0625rem; line-height: 1.6; }
|
|
51915
|
+
@container rb-site (max-width: 767px) {
|
|
51916
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
51917
|
+
[data-skin="lantern"]:is(*, :scope) [data-arrangement][data-treat="faq-open"] [data-slot="items"] > [data-slot="item"] { flex-basis: 100%; }
|
|
51918
|
+
}
|
|
51919
|
+
}
|
|
51920
|
+
|
|
51921
|
+
/* ---------------------------------------------------- Title beside the buttons (demo round 4) */
|
|
51922
|
+
/* cta-beside: the lozenge sits at the start of the title, which reads beside the gilt buttons. */
|
|
51923
|
+
[data-skin="lantern"] [data-arrangement][data-treat="cta-beside"] [data-slot="copy"] { padding-block: 0.5rem; }
|
|
51924
|
+
[data-skin="lantern"] [data-arrangement][data-treat="cta-beside"] [data-slot="head"] { justify-self: start; justify-items: start; align-items: flex-start; text-align: start; margin: 0; }
|
|
51925
|
+
[data-skin="lantern"] [data-arrangement][data-treat="cta-beside"] [data-slot="head"] > :is([data-slot="heading"], [data-slot="intro"], [data-slot="eyebrow"]) { text-align: start; margin-inline: 0; }
|
|
51926
|
+
[data-skin="lantern"] [data-arrangement][data-treat="cta-beside"] [data-slot="head"]::before { left: 0; transform: none; width: 52px; height: 9px; background: linear-gradient(to right, transparent 0 18px, var(--rb-surface-mark-color) 18px) center 4px / 52px 1px no-repeat; }
|
|
51927
|
+
[data-skin="lantern"] [data-arrangement][data-treat="cta-beside"] [data-slot="head"]::after { left: 1px; transform: rotate(45deg); }
|
|
51928
|
+
[data-skin="lantern"] [data-arrangement][data-treat="cta-beside"] [data-slot="heading"] { font-size: clamp(1.875rem, 3cqi, 2.5rem); line-height: 1.12; }
|
|
51929
|
+
[data-skin="lantern"] [data-arrangement][data-treat="cta-beside"] [data-slot="intro"] { font-size: 1.0625rem; line-height: 1.6; text-align: start; }
|
|
51930
|
+
|
|
51931
|
+
/* ---------------------------------------------------- Big figure beside the offer (demo round 4) */
|
|
51932
|
+
/* cta-figure: the display figure centred over a short mark and its note, the lozenge offer beside it. */
|
|
51933
|
+
[data-skin="lantern"] [data-arrangement][data-treat="cta-figure"] [data-slot="figure"] { justify-items: center; text-align: center; }
|
|
51934
|
+
[data-skin="lantern"] [data-arrangement][data-treat="cta-figure"] [data-slot="figure-value"] { font-size: clamp(4.5rem, 11cqi, 11rem); line-height: 0.95; }
|
|
51935
|
+
[data-skin="lantern"] [data-arrangement][data-treat="cta-figure"] [data-slot="figure-label"]::before { content: ""; display: block; width: var(--rb-skin-mark-length, 34px); height: var(--rb-skin-mark-weight, 1.5px); margin: 0 auto 0.875rem; background: var(--rb-surface-mark-color); }
|
|
51936
|
+
[data-skin="lantern"] [data-arrangement][data-treat="cta-figure"] [data-slot="figure-label"] { font-size: 1.0625rem; }
|
|
51937
|
+
[data-skin="lantern"] [data-arrangement][data-treat="cta-figure"] [data-slot="head"] { justify-self: start; justify-items: start; align-items: flex-start; text-align: start; margin: 0; }
|
|
51938
|
+
[data-skin="lantern"] [data-arrangement][data-treat="cta-figure"] [data-slot="head"] > :is([data-slot="heading"], [data-slot="intro"], [data-slot="eyebrow"]) { text-align: start; margin-inline: 0; }
|
|
51939
|
+
[data-skin="lantern"] [data-arrangement][data-treat="cta-figure"] [data-slot="head"]::before { left: 0; transform: none; width: 52px; height: 9px; background: linear-gradient(to right, transparent 0 18px, var(--rb-surface-mark-color) 18px) center 4px / 52px 1px no-repeat; }
|
|
51940
|
+
[data-skin="lantern"] [data-arrangement][data-treat="cta-figure"] [data-slot="head"]::after { left: 1px; transform: rotate(45deg); }
|
|
51941
|
+
[data-skin="lantern"] [data-arrangement][data-treat="cta-figure"] [data-slot="heading"] { font-size: clamp(2rem, 3.4cqi, 2.75rem); line-height: 1.12; }
|
|
51942
|
+
[data-skin="lantern"] [data-arrangement][data-treat="cta-figure"] [data-slot="intro"] { font-size: 1.0625rem; line-height: 1.6; text-align: start; }
|
|
51943
|
+
|
|
51944
|
+
/* ---------------------------------------------------- Service photos in the arches (demo round 4) */
|
|
51945
|
+
/* arches on card-list items: the photo fills and is clipped by its arch, and the details centre under it
|
|
51946
|
+
* like the title. Items without a photo keep the small drawn arch above. */
|
|
51947
|
+
[data-skin="lantern"] [data-arrangement][data-treat="arches"] [data-card-list-item] [data-slot="item-media"] { overflow: hidden; }
|
|
51948
|
+
[data-skin="lantern"] [data-arrangement][data-treat="arches"] [data-card-list-item] [data-slot="item-media"] [data-slot="photo"] { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
|
|
51949
|
+
[data-skin="lantern"] [data-arrangement][data-treat="arches"] [data-card-list-item] [data-slot="item-body"] { align-items: center; padding: 0; }
|
|
51950
|
+
[data-skin="lantern"] [data-arrangement][data-treat="arches"] [data-card-list-item] [data-slot="facts"] { justify-content: center; }
|
|
51951
|
+
|
|
51436
51952
|
/* =============================================================================
|
|
51437
51953
|
* Measure skin (issue 1575 Phase 1b, D14).
|
|
51438
51954
|
*
|
|
@@ -52091,6 +52607,37 @@ const containerResponsiveThemeCss = `/*
|
|
|
52091
52607
|
|
|
52092
52608
|
[data-skin="measure"] [data-arrangement]:is([data-treat="shop-prices"], [data-treat="shop-prices-featured"]) [data-slot="facts"] { width: 100%; }
|
|
52093
52609
|
|
|
52610
|
+
|
|
52611
|
+
/* ---------------------------------------------------- Photos on top (demo round 4) */
|
|
52612
|
+
/* photos-on-top: square-cornered photos over a heavy rule, a tight bold title and plain figures. */
|
|
52613
|
+
[data-skin="measure"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="item-body"] { margin-top: 1.125rem; padding-top: 1rem; border-top: var(--rb-skin-rule, 2px) solid var(--rb-surface-text-color); }
|
|
52614
|
+
[data-skin="measure"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item]:not(:has([data-slot="item-media"])) [data-slot="item-body"] { margin-top: 0; }
|
|
52615
|
+
[data-skin="measure"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="item-title"] { font-family: var(--font-heading); font-size: clamp(1.375rem, 2cqi, 1.625rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; }
|
|
52616
|
+
[data-skin="measure"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="item-text"] { font-size: 0.96875rem; line-height: 1.6; }
|
|
52617
|
+
[data-skin="measure"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="fact-value"] { font-variant-numeric: tabular-nums; font-weight: 500; }
|
|
52618
|
+
[data-skin="measure"] [data-arrangement][data-treat="photos-on-top"] [data-card-list] { margin-top: 1.25rem; }
|
|
52619
|
+
|
|
52620
|
+
/* ---------------------------------------------------- All answers showing (demo round 4) */
|
|
52621
|
+
/* faq-open: the head under its heavy rule, then two columns of answers, each under its own heavy rule. */
|
|
52622
|
+
[data-skin="measure"] [data-arrangement][data-treat="faq-open"] [data-slot="layout"] { border-top: 0; padding-top: 0; }
|
|
52623
|
+
[data-skin="measure"] [data-arrangement][data-treat="faq-open"] [data-slot="head"] { padding-top: 1.125rem; border-top: var(--rb-skin-rule, 2px) solid var(--rb-surface-text-color); }
|
|
52624
|
+
[data-skin="measure"] [data-arrangement][data-treat="faq-open"] [data-slot="items"] > [data-slot="item"] { padding-top: 0.875rem; border-top: var(--rb-skin-rule, 2px) solid var(--rb-surface-text-color); }
|
|
52625
|
+
[data-skin="measure"] [data-arrangement][data-treat="faq-open"] [data-slot="item-title"] { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 500; line-height: 1.35; letter-spacing: -0.005em; }
|
|
52626
|
+
[data-skin="measure"] [data-arrangement][data-treat="faq-open"] [data-slot="item-text"] { font-size: 0.96875rem; line-height: 1.6; }
|
|
52627
|
+
|
|
52628
|
+
/* ---------------------------------------------------- Title beside the buttons (demo round 4) */
|
|
52629
|
+
/* cta-beside: under the heavy rule, a tight title on the left and the buttons on the right. */
|
|
52630
|
+
[data-skin="measure"] [data-arrangement][data-treat="cta-beside"] [data-slot="copy"] { padding-block: 1.375rem 1.5rem; border-top: var(--rb-skin-rule, 2px) solid var(--rb-surface-text-color); border-bottom: 1px solid var(--rb-surface-line-color); }
|
|
52631
|
+
[data-skin="measure"] [data-arrangement][data-treat="cta-beside"] [data-slot="heading"] { font-size: clamp(1.75rem, 3cqi, 2.5rem); font-weight: 500; font-stretch: 88%; line-height: 1.05; letter-spacing: -0.025em; }
|
|
52632
|
+
[data-skin="measure"] [data-arrangement][data-treat="cta-beside"] [data-slot="intro"] { font-size: 1rem; line-height: 1.6; }
|
|
52633
|
+
|
|
52634
|
+
/* ---------------------------------------------------- Big figure beside the offer (demo round 4) */
|
|
52635
|
+
/* cta-figure: under the section rule, a plain tabular figure with its note small beneath, the offer beside it. */
|
|
52636
|
+
[data-skin="measure"] [data-arrangement][data-treat="cta-figure"] [data-slot="figure-value"] { font-weight: 500; font-stretch: 88%; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
|
|
52637
|
+
[data-skin="measure"] [data-arrangement][data-treat="cta-figure"] [data-slot="figure-label"] { font-size: 0.9375rem; font-weight: 500; }
|
|
52638
|
+
[data-skin="measure"] [data-arrangement][data-treat="cta-figure"] [data-slot="heading"] { font-size: clamp(2rem, 3.6cqi, 2.875rem); font-weight: 500; font-stretch: 88%; line-height: 1.04; letter-spacing: -0.025em; }
|
|
52639
|
+
[data-skin="measure"] [data-arrangement][data-treat="cta-figure"] [data-slot="intro"] { font-size: 1rem; line-height: 1.6; }
|
|
52640
|
+
|
|
52094
52641
|
/* Folio: serif sheets, quiet rules and full-colour photographs. */
|
|
52095
52642
|
[data-skin="folio"] [data-arrangement] [data-slot="section"] { --rb-section-pad-y: clamp(60px, 7.5cqi, 106px); }
|
|
52096
52643
|
[data-skin="folio"] [data-arrangement][data-length] [data-slot="section"] { --rb-section-pad-y: clamp(60px, 7.5cqi, 106px); }
|
|
@@ -52419,7 +52966,39 @@ const containerResponsiveThemeCss = `/*
|
|
|
52419
52966
|
|
|
52420
52967
|
/* ---------------------------------------------------- Team portraits (C1) */
|
|
52421
52968
|
[data-skin="folio"] :is([data-treat="team-portraits"], [data-treat="team-bio"]) [data-slot="photo"] { border-radius: var(--rb-skin-radius, 12px); }
|
|
52422
|
-
[data-skin="folio"] :is([data-treat="team-portraits"], [data-treat="team-bio"], [data-treat="team-names"]) [data-slot="chip"] { border-radius: 999px; }
|
|
52969
|
+
[data-skin="folio"] :is([data-treat="team-portraits"], [data-treat="team-bio"], [data-treat="team-names"]) [data-slot="chip"] { border-radius: 999px; }
|
|
52970
|
+
|
|
52971
|
+
|
|
52972
|
+
/* ---------------------------------------------------- Photos on top (demo round 4) */
|
|
52973
|
+
/* photos-on-top: softly rounded photos, the thin mark over a serif title, quiet text and facts. */
|
|
52974
|
+
[data-skin="folio"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="photo"] { border-radius: var(--rb-skin-radius, 10px); }
|
|
52975
|
+
[data-skin="folio"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="item-body"] { position: relative; padding-top: 1.75rem; }
|
|
52976
|
+
[data-skin="folio"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="item-body"]::before { content: ""; position: absolute; top: 0.625rem; left: 0; width: var(--rb-skin-mark-length, 44px); height: var(--rb-skin-mark-weight, 2px); background: var(--rb-surface-mark-color); }
|
|
52977
|
+
[data-skin="folio"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="item-title"] { font-family: var(--font-heading); font-size: clamp(1.5rem, 2.2cqi, 1.75rem); font-weight: 500; line-height: 1.2; }
|
|
52978
|
+
[data-skin="folio"] [data-arrangement][data-treat="photos-on-top"] [data-card-list-item] [data-slot="item-text"] { font-size: 1rem; line-height: 1.7; }
|
|
52979
|
+
|
|
52980
|
+
/* ---------------------------------------------------- All answers showing (demo round 4) */
|
|
52981
|
+
/* faq-open: a thin line with the short mark over each answer, the question in the serif. */
|
|
52982
|
+
[data-skin="folio"] [data-arrangement][data-treat="faq-open"] [data-slot="head"] { margin-bottom: 0; }
|
|
52983
|
+
[data-skin="folio"] [data-arrangement][data-treat="faq-open"] [data-slot="items"] > [data-slot="item"] { position: relative; padding-top: 1.125rem; border-top: 1px solid var(--rb-surface-line-color); }
|
|
52984
|
+
[data-skin="folio"] [data-arrangement][data-treat="faq-open"] [data-slot="items"] > [data-slot="item"]::before { content: ""; position: absolute; top: -1px; left: 0; width: var(--rb-skin-mark-length, 44px); height: var(--rb-skin-mark-weight, 2px); background: var(--rb-surface-mark-color); }
|
|
52985
|
+
[data-skin="folio"] [data-arrangement][data-treat="faq-open"] [data-slot="item-title"] { font-family: var(--font-heading); font-size: clamp(1.25rem, 1.8cqi, 1.4375rem); font-weight: 500; line-height: 1.25; }
|
|
52986
|
+
[data-skin="folio"] [data-arrangement][data-treat="faq-open"] [data-slot="item-text"] { font-size: 1rem; line-height: 1.7; }
|
|
52987
|
+
|
|
52988
|
+
/* ---------------------------------------------------- Title beside the buttons (demo round 4) */
|
|
52989
|
+
/* cta-beside: between thin lines, the mark over a serif title on the left and the buttons on the right. */
|
|
52990
|
+
[data-skin="folio"] [data-arrangement][data-treat="cta-beside"] [data-slot="copy"] { padding-block: 2rem; border-block: 1px solid var(--rb-surface-line-color); }
|
|
52991
|
+
[data-skin="folio"] [data-arrangement][data-treat="cta-beside"] [data-slot="head"] { margin-bottom: 0; }
|
|
52992
|
+
[data-skin="folio"] [data-arrangement][data-treat="cta-beside"] [data-slot="heading"] { font-size: clamp(1.75rem, 1.25rem + 1.6cqi, 2.375rem); }
|
|
52993
|
+
[data-skin="folio"] [data-arrangement][data-treat="cta-beside"] [data-slot="intro"] { font-size: 1.0625rem; line-height: 1.7; }
|
|
52994
|
+
|
|
52995
|
+
/* ---------------------------------------------------- Big figure beside the offer (demo round 4) */
|
|
52996
|
+
/* cta-figure: a serif figure with its note under a thin line, the marked offer beside it. */
|
|
52997
|
+
[data-skin="folio"] [data-arrangement][data-treat="cta-figure"] [data-slot="figure-value"] { padding-bottom: 0.2em; font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
|
|
52998
|
+
[data-skin="folio"] [data-arrangement][data-treat="cta-figure"] [data-slot="figure-label"] { padding-top: 0.875rem; border-top: 1px solid var(--rb-surface-line-color); font-size: 1rem; }
|
|
52999
|
+
[data-skin="folio"] [data-arrangement][data-treat="cta-figure"] [data-slot="head"] { margin-bottom: 0; }
|
|
53000
|
+
[data-skin="folio"] [data-arrangement][data-treat="cta-figure"] [data-slot="heading"] { font-size: clamp(2rem, 1.4rem + 2cqi, 2.875rem); }
|
|
53001
|
+
[data-skin="folio"] [data-arrangement][data-treat="cta-figure"] [data-slot="intro"] { font-size: 1.0625rem; line-height: 1.7; }`;
|
|
52423
53002
|
//#endregion
|
|
52424
53003
|
//#region ../theme-core/src/ThemeScopeCore.tsx
|
|
52425
53004
|
/**
|
|
@@ -52637,6 +53216,7 @@ function buildSiteRenderSupport(site, mediaAssets) {
|
|
|
52637
53216
|
site: site.site,
|
|
52638
53217
|
sdkConfig: site.sdkConfig ?? null,
|
|
52639
53218
|
bookingOfferingPresets: site.bookingOfferingPresets ?? [],
|
|
53219
|
+
openingHours: site.businessDetails?.openingHours ?? null,
|
|
52640
53220
|
siteTerms: site.siteTerms,
|
|
52641
53221
|
mailingList: site.mailingList,
|
|
52642
53222
|
bookingTimeZone: resolveBookingBusinessTimeZone(site.bookingTimeZone),
|
|
@@ -52992,8 +53572,8 @@ function applyTransform(name, value, dateContext) {
|
|
|
52992
53572
|
if (!name) return value;
|
|
52993
53573
|
switch (name) {
|
|
52994
53574
|
case TRANSFORMS.RICHTEXT_FIRST_PARAGRAPH: return extractFirstParagraph(value);
|
|
52995
|
-
case TRANSFORMS.DATE_FORMAT_SHORT: return formatDate(value, dateContext, { date: "short" });
|
|
52996
|
-
case TRANSFORMS.DATE_FORMAT_LONG: return formatDate(value, dateContext, {
|
|
53575
|
+
case TRANSFORMS.DATE_FORMAT_SHORT: return formatDate$1(value, dateContext, { date: "short" });
|
|
53576
|
+
case TRANSFORMS.DATE_FORMAT_LONG: return formatDate$1(value, dateContext, {
|
|
52997
53577
|
date: "long",
|
|
52998
53578
|
includeTime: true
|
|
52999
53579
|
});
|
|
@@ -53302,6 +53882,7 @@ function buildPageDataContext(props) {
|
|
|
53302
53882
|
readAuthority: props.readAuthority ?? props.dataContext.readAuthority,
|
|
53303
53883
|
resolvedData: props.resolvedData,
|
|
53304
53884
|
bookingOfferingPresets: props.bookingOfferingPresets ?? [],
|
|
53885
|
+
openingHours: props.openingHours ?? props.dataContext.openingHours,
|
|
53305
53886
|
siteTerms: props.siteTerms ?? props.dataContext.siteTerms,
|
|
53306
53887
|
mailingList: props.mailingList ?? props.dataContext.mailingList,
|
|
53307
53888
|
bookingTimeZone: resolveSdkBookingTimeZone(props.bookingTimeZone),
|
|
@@ -53370,4 +53951,4 @@ function Page(props) {
|
|
|
53370
53951
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(HydratorWithContextProps, { ...toPageHydrationBootstrapConfig(props) }), /* @__PURE__ */ jsx(PageContent, { ...props })] });
|
|
53371
53952
|
}
|
|
53372
53953
|
//#endregion
|
|
53373
|
-
export {
|
|
53954
|
+
export { isPublicReadEndpoint as $, resolveAuthoredLinkHref as A, deriveFieldValidationPlan as B, MISSING_SDK_THEME_ERROR_CODE as C, makeDefaultBlockComponent as D, prefetchBlockData as E, siteFooterManifest as F, setSdkVersion as G, ApiRequestError as H, siteHeaderManifest as I, resolveSdkFooterMode as J, isSupportedLoaderEndpoint$1 as K, admitTransportedRenderableManifestContent as L, normalizeRenderStage as M, resolveRouteHrefForStage as N, renderBlock as O, getBlockDefinition as P, getPublicReadCachePolicy as Q, compileManifestContentContract as R, resolveSiteCustomBlocks as S, requireSdkTheme as T, createBearerAPIClient as U, encodePublicProductCategorySelector as V, createInternalAPIClient as W, isApiError as X, ApiEnvelopeError as Y, unwrapResponse as Z, invalidRenderableBlock as _, ThemeScope as a, resolveSdkBlockManifest as b, PageRenderer as c, parseBlocksTheme as d, publicReadFreshnessSeconds as et, applyBindingsToContent as f, collectMediaAssetSidecar as g, buildSiteRenderSupport as h, renderWithSdkThemeRuntime as i, isRouteVisibleInStage as j, getDefaultComponentRegistry as k, toBlocksPageRendererDataContext as l, buildRenderablePageOutline as m, planLayoutThemeRuntime as n, EditorPageRenderer as o, BINDING_TRANSFORM_VALUES as p, resolveFooterRenderPlan as q, renderWithOverrideOnlyRuntime as r, MissingBlockOverrideError as s, Page as t, readPublishedBlockPlacement as tt, buildThemeRuntime as u, projectRenderablePageOutline as v, MissingSdkThemeError as w, sanitizeSdkRuntimeBlockContent as x, readInvalidBlockAdmission as y, admitLayoutGridForPlan as z };
|