@riverbankcms/sdk 0.160.0 → 0.161.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-CoqeotCL.d.ts → BlocksIslandsHydrator-Bx4kLiTA.d.ts} +1 -1
- package/dist/_dts/{Page-C0ENVLCF.d.ts → Page-Dm7_P13o.d.ts} +211 -9
- package/dist/_dts/{SdkPreviewMode-jZK0A49V.d.ts → SdkPreviewMode-D7HdWWwF.d.ts} +4 -4
- package/dist/_dts/{auth-contract-FPg0-2MC.d.ts → auth-contract-CgJ5nMaH.d.ts} +2 -0
- package/dist/_dts/{client-uMMuPq9V.d.ts → client-Ep0jI9eE.d.ts} +1 -1
- package/dist/_dts/{content-types-D6nXGqdQ.d.ts → content-types-BgAzCrBc.d.ts} +2 -2
- package/dist/_dts/{contracts-Bnmj1nxu.d.ts → contracts-DUiOnj9e.d.ts} +8 -5
- package/dist/_dts/{footerPageOutline-CeLjFX8b.d.ts → footerPageOutline-B-uXamTG.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-nyU8q02J.d.ts → generatePageMetadata-BDkZYEcS.d.ts} +2 -2
- package/dist/_dts/{index-Blwl7yl6.d.ts → index-BQDBQvdu.d.ts} +1 -1
- package/dist/_dts/{index-lkpjIg5i.d.ts → index-BVkP8f70.d.ts} +1 -1
- package/dist/_dts/{index-CEaKil7G.d.ts → index-CF6Cjs7b.d.ts} +2 -2
- package/dist/_dts/{index-nVoi_74l.d.ts → index-CSsfq6KG.d.ts} +3 -17
- package/dist/_dts/{index-DahMwisK.d.ts → index-D_8uz4OP.d.ts} +3 -3
- package/dist/_dts/{index-Bg64CkV-.d.ts → index-DvKQA6AZ.d.ts} +4 -4
- package/dist/_dts/{index-C5xslEBn.d.ts → index-KPrWM0KF.d.ts} +1 -1
- package/dist/_dts/{index-BaaGBY1v.d.ts → index-ylivB7Jj.d.ts} +2 -2
- package/dist/_dts/{loadContent-CYLmzvLq.d.ts → loadContent-DTjKOO-T.d.ts} +10 -10
- package/dist/_dts/{resolvePageContent-DqnxChOs.d.ts → resolvePageContent-C1vA5c5w.d.ts} +2 -2
- package/dist/_dts/{schema-D0bNcPWK.d.ts → schema-BHu0PYWl.d.ts} +18821 -16622
- 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 +7 -7
- 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 +7 -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 +1 -1
- 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/preview-next/keep-alive.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/session.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -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/{session-Ba2CsnK5.d.ts → session-C_gtSFyZ.d.ts} +2 -1
- package/dist/_dts/{types-D8czmbQF.d.ts → types-BR1Yboa9.d.ts} +1060 -140
- package/dist/_dts/{types-Dm-KW7nj.d.ts → types-CJXTCF_F.d.ts} +3 -3
- package/dist/_dts/{types-CFrYuXYP.d.ts → types-D02ngcUH.d.ts} +4 -2
- package/dist/_dts/{types-DSgmJ15W.d.ts → types-ZGUiHpDE.d.ts} +7 -7
- package/dist/_dts/{validation-Bmb4WnHg.d.ts → validation-BaV565gb.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DZRKi6tT.mjs → BlocksIslandsHydrator-DTExCJsb.mjs} +22 -21
- package/dist/client/{BookingMailingListNote-C00sLLdL.mjs → BookingMailingListNote-BDpxmn1p.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-CHSi9b3E.mjs → CalendarNavigationChevron-PeCiL82X.mjs} +6 -6
- package/dist/client/{CheckboxChoice-Bhm6RAUL.mjs → CheckboxChoice-DWexRLf6.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-CaN-7ui7.mjs → DemoBookingPortalAccess-3zmIqakW.mjs} +5 -5
- package/dist/client/{DemoPortalSignInLink-ClxN5_xZ.mjs → DemoPortalSignInLink-GHi-8BW5.mjs} +1 -1
- package/dist/client/{EventCalendar.client-BncvSa1n.mjs → EventCalendar.client-BxQLY5cX.mjs} +9 -9
- package/dist/client/{EventCombined.client-DluBxVVu.mjs → EventCombined.client-B5bmQ03b.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-BiJrMtfp.mjs → EventEmbeddedCheckoutStep-CgMZ9TeU.mjs} +1 -1
- package/dist/client/{EventItem-CXhnT9pF.mjs → EventItem-BEx-qiDE.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-V-dtoDlD.mjs → EventListWeekNavigation-CyH5tA6Y.mjs} +1 -1
- package/dist/client/{EventListing.client-DPO6SZbx.mjs → EventListing.client-D3uySdGP.mjs} +3 -3
- package/dist/client/{EventListing.view-B-Yi5JZS.mjs → EventListing.view-9RFrBejr.mjs} +29 -13
- package/dist/client/{EventRegistrationPayment-Dc3Fnlnw.mjs → EventRegistrationPayment-CG2tQx8K.mjs} +25 -13
- package/dist/client/LocationMapActions-Wsr83Q7q.mjs +268 -0
- package/dist/client/{Page-7PkzO04N.mjs → Page-Bf2nPACI.mjs} +809 -298
- package/dist/client/{StepIndicator-DiD6euZ8.mjs → StepIndicator-CZweb1vs.mjs} +2 -2
- package/dist/client/{TabBarFragment-BHd8GN8y.mjs → TabBarFragment-Bkgz67gt.mjs} +1 -1
- package/dist/client/ThemedButton-CnyL3s1A.mjs +2243 -0
- package/dist/client/{accordion-2m27DsIk.mjs → accordion-TcimLLRQ.mjs} +1 -1
- package/dist/client/{booking-form.client-BddWV5w1.mjs → booking-form.client-q-RpJ4aF.mjs} +12 -12
- package/dist/client/{bookingForm-bcdXQjmw.mjs → bookingForm-DjGfk3Wj.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-D7nj9I0y.mjs → carousel-CGAk6j0m.mjs} +2 -2
- package/dist/client/{carousel.client-AffDJo_s.mjs → carousel.client-ArlGmYWV.mjs} +1 -1
- package/dist/client/{cart-PN6yCw1H.mjs → cart-D_h3rAZ2.mjs} +3 -3
- package/dist/client/{cart.client-D4t1f0cJ.mjs → cart.client-DHOxZbJ7.mjs} +1 -1
- package/dist/client/{checkout-CsTwXVSb.mjs → checkout-tC-3CzuM.mjs} +3 -3
- package/dist/client/{checkout.client-BhQE3zY7.mjs → checkout.client-DsBb2Pkm.mjs} +1 -1
- package/dist/client/client.mjs +5 -4
- package/dist/client/{context-BLAvalAa.mjs → context-9ZfMb6GA.mjs} +1 -1
- package/dist/client/{cta-CUXhX_D7.mjs → cta-D-ZqL7-e.mjs} +1 -1
- package/dist/client/{dateFormatting-BHIHxNuo.mjs → dateFormatting-BCwLqYpW.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-R-awbk_0.mjs → demoPortalMagicLink-BxkSS9fx.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-9Q93uvTo.mjs → enhanceHeaderSection-xg6to91E.mjs} +3 -3
- package/dist/client/{event-details.client-BS1WtG-a.mjs → event-details.client-C670TgRd.mjs} +2 -17
- package/dist/client/{event-registration.client-BXndwsET.mjs → event-registration.client-C6GApWTB.mjs} +16 -16
- package/dist/client/{eventCalendar-HyoOt1Qz.mjs → eventCalendar-CWc0dg9i.mjs} +4 -4
- package/dist/client/{eventCombined-sdG5oEaH.mjs → eventCombined-D4DbOrvQ.mjs} +4 -4
- package/dist/client/{eventDetails-FFAknE4w.mjs → eventDetails-C2DfmbC0.mjs} +2 -2
- package/dist/client/{eventListing-CGK6urk3.mjs → eventListing-C_yXmHyz.mjs} +4 -4
- package/dist/client/{eventRegistration-VhrvCs4l.mjs → eventRegistration-DJuaCB-O.mjs} +4 -4
- package/dist/client/{form-C-B5O_ko.mjs → form-QZhtdFHA.mjs} +3 -3
- package/dist/client/{form.client-DoZVcl8d.mjs → form.client-CgvPACwG.mjs} +4 -4
- package/dist/client/{form.parts-mttKpgif.mjs → form.parts-2uI0-5N-.mjs} +3 -3
- package/dist/client/{formatDate-xUSCknEO.mjs → formatDate-Danr0Nk4.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-BHUEXsaI.mjs → headerSection-DJdlLdvZ.mjs} +2 -2
- package/dist/client/{mediaAssets-BOj-Co0B.mjs → mediaAssets-BvjcAZpS.mjs} +1 -1
- package/dist/client/mediaContext-jPeJ2PmJ.mjs +10801 -0
- package/dist/client/{newsletter-form.client-D_n0rftg.mjs → newsletter-form.client-Cbepz2KU.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DKHye4IE.mjs → newsletter-form.parts-DN8oMCQ0.mjs} +2 -2
- package/dist/client/{newsletterForm-tEaYelzx.mjs → newsletterForm-wjLtW-wq.mjs} +3 -3
- package/dist/client/{noop-B610YKEx.mjs → noop-B7H6gCbj.mjs} +297 -3
- package/dist/client/portal/client.mjs +12 -12
- package/dist/client/{product-detail.client-DUf5x5Jt.mjs → product-detail.client-CYTR165c.mjs} +1 -1
- package/dist/client/{product-list.client-Cqp1BPTV.mjs → product-list.client-B4vTvag8.mjs} +1 -1
- package/dist/client/{productDetail-B8bBiogP.mjs → productDetail-k8LEMSWn.mjs} +3 -3
- package/dist/client/{productList-BKN4D-1z.mjs → productList-DEo8Bqoe.mjs} +3 -3
- package/dist/client/{propsDecoder-2nNZh2Oe.mjs → propsDecoder-G0j0HXBO.mjs} +3 -28
- package/dist/client/{registry.server-BAm4RPNJ.mjs → registry.server-BTmSXE3D.mjs} +355 -162
- package/dist/client/rendering/client.mjs +27 -28
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +15 -9
- package/dist/client/{richText-coerce-Cv-qomNB.mjs → richText-coerce-B19taoH6.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-C5u8MbAA.mjs → routeIslandApiConfig-Chu5BHra.mjs} +1 -1
- package/dist/client/{ThemedButton-C22C9cCF.mjs → schema-C-m8XHuW.mjs} +990 -2310
- package/dist/client/{shop-DZNC0VKk.mjs → shop-RGWa43H7.mjs} +3 -3
- package/dist/client/{shop-commerce-DdX4LSa3.mjs → shop-commerce-TJYCBO_H.mjs} +11 -11
- package/dist/client/{shop-commerce-store-BJtrZov9.mjs → shop-commerce-store-CjCcUB_o.mjs} +1 -1
- package/dist/client/{shop.client-DmDd-igg.mjs → shop.client-tsKfZw1W.mjs} +12 -12
- package/dist/client/{shop.interactive-5SnnDHz3.mjs → shop.interactive-CVqLAU53.mjs} +6 -158
- package/dist/client/{shopShared-CPqUlAh9.mjs → shopShared-C3lHMz_R.mjs} +2 -2
- package/dist/client/{timetableModel-C19rcHEw.mjs → timetableModel-V2ifvGGy.mjs} +148 -8
- package/dist/client/{useAvailableSlots-BjbJXotk.mjs → useAvailableSlots-D1X69-pN.mjs} +3 -3
- package/dist/client/{useBookingNowIso-CMgfL7YJ.mjs → useBookingNowIso-Ch30jino.mjs} +1 -1
- package/dist/client/{useDiscountApply-KG8jB7WC.mjs → useDiscountApply-Bwzr1RjV.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-DK2w_i0a.mjs → useDiscountCodeUi-BimJbFC7.mjs} +1 -1
- package/dist/client/{useEventPagination-DW6MCirb.mjs → useEventPagination-CLAS0upd.mjs} +8 -21
- package/dist/client/{view-CkUn3Y0Y.mjs → view-BUh4LnLS.mjs} +4 -4
- package/dist/client/{view-CseyBW07.mjs → view-Dj_FZHmg.mjs} +18 -15
- package/dist/client/wizardSteps-BkZc-hKH.mjs +6598 -0
- package/dist/preview-next/before-render.mjs +5 -4
- package/dist/preview-next/chrome.css +2 -0
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-lUHBrzHv.mjs → EventEmbeddedCheckoutStep-CwerMfzn.mjs} +2 -1
- package/dist/preview-next/client/LocationPickerEnvironment-QtSG2Bl-.mjs +138 -0
- package/dist/preview-next/client/MapLibreEditMap-B-rohNcG.mjs +488 -0
- package/dist/preview-next/client/{PreviewEditorSidebar-DWyUGCAG.mjs → PreviewEditorSidebar-Dvq-RW9-.mjs} +110 -63
- package/dist/preview-next/client/{PreviewEditorUI-Wq0b3Daw.mjs → PreviewEditorUI-BdFjS39R.mjs} +4 -3
- package/dist/preview-next/client/{SdkPreviewModeRuntime-wSI_R361.mjs → SdkPreviewModeRuntime-BEfHln1E.mjs} +425 -412
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BtZPcwYV.mjs → SdkPreviewModeRuntime-CjkGh1IG.mjs} +1 -1
- package/dist/preview-next/client/{SiteChromeCustomizeContext-Hc4pYnNe.mjs → SiteChromeCustomizeContext-CDbxk_qZ.mjs} +2982 -53859
- package/dist/preview-next/client/{ThemedButton-DzeycIlD.mjs → ThemedButton-b14Bv03E.mjs} +1079 -340
- package/dist/preview-next/client/lucide-react-CA9cpo0P.mjs +51984 -0
- package/dist/preview-next/client/maplibre-gl-DykfOYYn.mjs +34208 -0
- package/dist/preview-next/client/{previewChromeSurface-Corq4AG7.mjs → previewChromeSurface-Dd1_mNIg.mjs} +1 -1
- package/dist/preview-next/client/result-BjJUoxUF.mjs +16 -0
- package/dist/preview-next/client/rolldown-runtime-CE6sIgz8.mjs +34 -0
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CWymRWhK.mjs → sdk-runtime-B-CXyGVb.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-Kqk0j0dE.mjs +5812 -0
- package/dist/preview-next/client/{spinner-C4If5Y-O.mjs → spinner-CGxS8Ns-.mjs} +2 -1
- package/dist/preview-next/{constants-D8Ya7bO4.mjs → constants-Bf-vqdKH.mjs} +2 -1
- package/dist/preview-next/editor-base.css +2 -2
- package/dist/preview-next/keepAlive.mjs +2 -2
- package/dist/preview-next/middleware.mjs +7 -3
- package/dist/preview-next/{route-contract-8csADeIT.mjs → route-contract-hLg-yjQN.mjs} +41 -4
- package/dist/preview-next/{session-BgkrPqu0.mjs → session-P1R_ajT7.mjs} +12 -2
- package/dist/preview-next/session.mjs +1 -1
- package/dist/server/{Block.shared-D1_gonwM.mjs → Block.shared-CeTd2saO.mjs} +4 -4
- package/dist/server/{bindings-CFmJg5lm.mjs → bindings-C5YpKuKt.mjs} +2 -1
- package/dist/server/{client-DPsi0Dai.mjs → client-Cv26lZQ4.mjs} +7 -5
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{siteChromeOverlayClearance-DALIAMwo.mjs → effectiveNavLinkStyle-CGvGr3yD.mjs} +461 -1064
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-RMCcuVU_.mjs → loadContent-C8a0b-cC.mjs} +11 -5
- package/dist/server/loadPage--DXBwI8V.mjs +2 -0
- package/dist/server/{loadPage-DhDGzj7t.mjs → loadPage-BW7dklu3.mjs} +3 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-OxY5FMuy.mjs → overrideResolution-tIuqmJB3.mjs} +1 -1
- package/dist/server/{overrides-Bz_A6sB9.mjs → overrides-D1fiPOKF.mjs} +596 -301
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-B_1vrSru.mjs → prebuild--fO0E2tr.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-B7ukYXXR.mjs → prefetchBlockData-CqJnokWJ.mjs} +133 -87
- package/dist/server/{publicProducts-Djbpc81A.mjs → publicProducts-CvvZ4JIe.mjs} +41 -3
- package/dist/server/{registry-eFjKtEhF.mjs → registry-BVfCqaCq.mjs} +477 -1021
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-DYvEa9c5.mjs → resolveBlockData-DPNvhXEz.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-C3dJ5UkL.mjs → schema-CD4peO7m.mjs} +2203 -1223
- package/dist/server/server.mjs +3 -3
- package/dist/server/site-styles-H-EvTJiW.mjs +787 -0
- package/dist/server/siteChromeOverlayClearance-DNC2k1U0.mjs +750 -0
- package/dist/server/{src-C5Mu-z0F.mjs → src-ILxc6pid.mjs} +161 -3
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-ruoyXb_0.mjs → themeAdmission-BNHIXiUj.mjs} +117 -26
- package/dist/server/{validation-B-Xar8QS.mjs → validation-B1ieVemg.mjs} +2 -2
- package/dist/server/{version-Bg7VHK3i.mjs → version-BQK44wFg.mjs} +1 -1
- package/dist/styles/index.css +157 -0
- package/package.json +1 -1
- package/dist/client/LeafletStaticMap-ClZCCzAm.mjs +0 -135
- package/dist/client/location-map.client-Cylb_MHw.mjs +0 -28
- package/dist/client/location-map.view-Cx4Bl7ij.mjs +0 -345
- package/dist/client/locationMap-QnKJi-nZ.mjs +0 -15
- package/dist/client/mediaContext-DThoeEBU.mjs +0 -136
- package/dist/client/renderableMediaAssetAdmission-DGjBr_e-.mjs +0 -152
- package/dist/client/wizardSteps-zgq10lN1.mjs +0 -17181
- package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +0 -1359
- package/dist/server/loadPage-DUPP51C-.mjs +0 -2
- package/dist/server/media-CcHwZkdJ.mjs +0 -243
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Cr as unsafeAsStoragePath, En as opaqueSurfaceDeclarations, Et as cardRoleSchema, F as themeButtonExtraClassesWithTrailingIcon, Fn as selectLogoVariant, Gt as defineFrameCapability, Hn as surfaceForegroundInputFromResolved, I as themeButtonSizeClassName, In as surfaceToneFromForegroundToken, Kt as eventListTreatmentValues, L as themeButtonVariantClassNames, Ot as cardVariantRoleValues, Pn as PUBLIC_BUTTON_ROLES, Sn as textColorStyle, Sr as unsafeAsStorageBucketName, Tr as ok$1, Un as surfaceForegroundStyle, Ut as defineBlockDesignCapability, Xt as headingDecorationColorTokenValues, _n as backgroundColorStyle, _r as parseEventSeriesId, _t as resolveManagedMediaReference, an as tileTreatmentValues, at as boxBackgroundSchema, bn as mergeStyles, cn as parseResolvedSurface, en as offeringsPreviewCompositionTreatmentValues, fn as surfaceDecorationColors, fr as parseBlockColorToken, gr as parseEventOfferingId, hr as parseContentVersionId, in as testimonialsCompositionTreatmentValues, it as boxBackgroundOverlaySchema, jn as resolveThemeColorReferenceValue, kt as normalizeCardRole, mt as buildRenderableMediaAssetIndex, on as toNonEmptyReadonlyArray, ot as runtimeBoxBackgroundSchema, p as headerVariantValues, pn as resolveSurfaceForeground, pt as runtimeMediaSchema, qt as eyebrowTreatmentValues, sn as visibleHeadingDecorationFamilyValues, un as resolveSurface, vn as borderColorStyle, wr as err, xn as rgbColorValue, xr as unsafeAsMediaAssetId, yr as parseSiteTermsVersionId, yt as parseCanonicalMediaIdentifier } from "./schema-CD4peO7m.mjs";
|
|
2
2
|
import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { C as compiledRuntimeStyleFieldNames, I as headerRootPaint, a as readOpeningForegroundProjection, f as arrangementSlotNames, i as transparentHeaderForegroundInput, k as footerForegroundCandidates, n as headerForegroundCandidates, r as headerLeafTextColor, v as resolveModeArrangement } from "./effectiveNavLinkStyle-CGvGr3yD.mjs";
|
|
4
|
+
import { a as heroPhotoPaintsGround, c as sectionForegroundBackground, l as defineBlockDesignMetadata, o as parseCanonicalRuntimeBackground, s as resolveSectionBackground } from "./site-styles-H-EvTJiW.mjs";
|
|
5
5
|
import { a as isRecord$12, t as RichTextDocSchema } from "./richTextSchema-YYc85FX4.mjs";
|
|
6
|
+
import { a as planSiteChromePlacement, i as parseHeaderPositioning, n as desktopOnlyDisplay, o as splitSiteChromePlacementClasses, r as mobileOnlyDisplay, t as SITE_CHROME_VISIBLE_HEADER_ATTR } from "./siteChromeOverlayClearance-DNC2k1U0.mjs";
|
|
6
7
|
import { z } from "zod";
|
|
7
8
|
import React from "react";
|
|
8
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -911,6 +912,157 @@ function formatTimeZoneCityLabel(timeZone) {
|
|
|
911
912
|
return timeZone.startsWith("Etc/") ? "local time" : `${timeZone.split("/").slice(-1)[0]?.replace(/_/gu, " ") ?? timeZone} time`;
|
|
912
913
|
}
|
|
913
914
|
//#endregion
|
|
915
|
+
//#region ../core/src/map-drawing/model.ts
|
|
916
|
+
const MAX_DRAWING_BYTES = 1024 * 1024;
|
|
917
|
+
/** Current real city extracts fit with >2x headroom; reservations precede allocation. */
|
|
918
|
+
const DRAWING_DECODE_LIMITS = {
|
|
919
|
+
pathsPerFeature: 2048,
|
|
920
|
+
verticesPerPath: 8192,
|
|
921
|
+
verticesPerFeature: 32768,
|
|
922
|
+
featuresPerLayer: 1e4,
|
|
923
|
+
featuresPerTile: 16e3,
|
|
924
|
+
featuresPerAttempt: 6e4,
|
|
925
|
+
verticesPerAttempt: 1e6
|
|
926
|
+
};
|
|
927
|
+
/**
|
|
928
|
+
* The two fixed framings. Neighbourhood draws 1 m per view-box unit, wider 4 m, so the same stroke and label
|
|
929
|
+
* sizes read well in both. The wider view leaves out buildings, distant paths and small green patches, which turn to
|
|
930
|
+
* noise at that scale. `minParkArea` is in square view-box units. Labels go to the nearest streets first, with a
|
|
931
|
+
* minor street counted as `minorLabelDistance` times further away than it is, so the wider view names main roads.
|
|
932
|
+
*/
|
|
933
|
+
const FRAMINGS = [{
|
|
934
|
+
name: "neighbourhood",
|
|
935
|
+
radiusMeters: 400,
|
|
936
|
+
zoom: 15,
|
|
937
|
+
roads: [
|
|
938
|
+
"major",
|
|
939
|
+
"minor",
|
|
940
|
+
"path"
|
|
941
|
+
],
|
|
942
|
+
maxPathDistance: 800,
|
|
943
|
+
buildings: true,
|
|
944
|
+
minParkArea: .3,
|
|
945
|
+
maxLabels: 6,
|
|
946
|
+
minorLabelDistance: 1.5
|
|
947
|
+
}, {
|
|
948
|
+
name: "wider",
|
|
949
|
+
radiusMeters: 1600,
|
|
950
|
+
zoom: 14,
|
|
951
|
+
roads: [
|
|
952
|
+
"major",
|
|
953
|
+
"minor",
|
|
954
|
+
"path"
|
|
955
|
+
],
|
|
956
|
+
maxPathDistance: 100,
|
|
957
|
+
buildings: false,
|
|
958
|
+
minParkArea: 40,
|
|
959
|
+
maxLabels: 5,
|
|
960
|
+
minorLabelDistance: 4
|
|
961
|
+
}];
|
|
962
|
+
const tilePoint = z.tuple([z.number().finite().min(-8192).max(12288), z.number().finite().min(-8192).max(12288)]).readonly();
|
|
963
|
+
const paths = z.array(z.array(tilePoint).min(2).max(DRAWING_DECODE_LIMITS.verticesPerPath).readonly()).min(1).max(DRAWING_DECODE_LIMITS.pathsPerFeature).readonly();
|
|
964
|
+
const featureFields = {
|
|
965
|
+
kind: z.string().max(80),
|
|
966
|
+
name: z.string().trim().max(60).regex(/^[^<>\u0000-\u001f\u007f]*$/).nullish().transform((value) => value === void 0 || value === null || value === "" ? null : value),
|
|
967
|
+
sortRank: z.number().finite().min(-1e4).max(1e4).default(0),
|
|
968
|
+
paths: paths.refine((value) => value.reduce((n, path) => n + path.length, 0) <= DRAWING_DECODE_LIMITS.verticesPerFeature)
|
|
969
|
+
};
|
|
970
|
+
const feature = z.discriminatedUnion("geometry", [z.strictObject({
|
|
971
|
+
...featureFields,
|
|
972
|
+
layer: z.literal("roads"),
|
|
973
|
+
geometry: z.literal("line")
|
|
974
|
+
}).readonly(), z.strictObject({
|
|
975
|
+
...featureFields,
|
|
976
|
+
layer: z.enum([
|
|
977
|
+
"earth",
|
|
978
|
+
"water",
|
|
979
|
+
"landuse",
|
|
980
|
+
"buildings"
|
|
981
|
+
]),
|
|
982
|
+
geometry: z.literal("polygon")
|
|
983
|
+
}).refine((value) => value.paths.every((ring) => ring.length >= 3)).readonly()]);
|
|
984
|
+
const tile = z.strictObject({
|
|
985
|
+
z: z.union([z.literal(14), z.literal(15)]),
|
|
986
|
+
x: z.number().int().nonnegative(),
|
|
987
|
+
y: z.number().int().nonnegative(),
|
|
988
|
+
extent: z.literal(4096),
|
|
989
|
+
features: z.array(feature).max(DRAWING_DECODE_LIMITS.featuresPerTile).readonly()
|
|
990
|
+
}).refine((value) => value.x < 2 ** value.z && value.y < 2 ** value.z).readonly();
|
|
991
|
+
z.strictObject({
|
|
992
|
+
buildId: z.string().regex(/^\d{8}$/),
|
|
993
|
+
tileSchemaVersion: z.string().regex(/^4\.\d+\.\d+$/),
|
|
994
|
+
pin: z.lazy(() => locationPinSchema),
|
|
995
|
+
tiles: z.array(tile).min(1).max(96).readonly()
|
|
996
|
+
}).superRefine((value, ctx) => {
|
|
997
|
+
const features = value.tiles.flatMap((item) => item.features);
|
|
998
|
+
if (features.length > DRAWING_DECODE_LIMITS.featuresPerAttempt || features.reduce((sum, item) => sum + item.paths.reduce((count, path) => count + path.length, 0), 0) > DRAWING_DECODE_LIMITS.verticesPerAttempt) ctx.addIssue({
|
|
999
|
+
code: "custom",
|
|
1000
|
+
message: "Decoded geometry exceeds the attempt budget."
|
|
1001
|
+
});
|
|
1002
|
+
}).readonly();
|
|
1003
|
+
const point = z.tuple([z.number().min(0).max(800), z.number().min(0).max(800)]).readonly();
|
|
1004
|
+
const polygon = z.strictObject({
|
|
1005
|
+
kind: z.literal("polygon"),
|
|
1006
|
+
fillRule: z.literal("evenodd"),
|
|
1007
|
+
className: z.enum([
|
|
1008
|
+
"map-land",
|
|
1009
|
+
"map-water",
|
|
1010
|
+
"map-park",
|
|
1011
|
+
"map-building"
|
|
1012
|
+
]),
|
|
1013
|
+
rings: z.array(z.array(point).min(3).max(8192).readonly()).min(1).max(DRAWING_DECODE_LIMITS.pathsPerFeature).readonly()
|
|
1014
|
+
}).readonly();
|
|
1015
|
+
const line = z.strictObject({
|
|
1016
|
+
kind: z.literal("line"),
|
|
1017
|
+
className: z.enum([
|
|
1018
|
+
"map-road-major-casing",
|
|
1019
|
+
"map-road-major",
|
|
1020
|
+
"map-road-minor-casing",
|
|
1021
|
+
"map-road-minor",
|
|
1022
|
+
"map-road-path"
|
|
1023
|
+
]),
|
|
1024
|
+
points: z.array(point).min(2).max(8192).readonly()
|
|
1025
|
+
}).readonly();
|
|
1026
|
+
const drawingPathSchema = z.discriminatedUnion("kind", [polygon, line]);
|
|
1027
|
+
const label = z.strictObject({
|
|
1028
|
+
className: z.literal("map-label"),
|
|
1029
|
+
haloClassName: z.literal("map-label-halo"),
|
|
1030
|
+
text: z.string().trim().min(1).max(60).regex(/^[^<>\u0000-\u001f\u007f]*$/),
|
|
1031
|
+
point,
|
|
1032
|
+
angle: z.number().min(-90).max(90)
|
|
1033
|
+
}).readonly();
|
|
1034
|
+
const drawingFrameSchema = z.strictObject({
|
|
1035
|
+
radiusMeters: z.union([z.literal(FRAMINGS[0].radiusMeters), z.literal(FRAMINGS[1].radiusMeters)]),
|
|
1036
|
+
viewBox: z.tuple([
|
|
1037
|
+
z.literal(0),
|
|
1038
|
+
z.literal(0),
|
|
1039
|
+
z.literal(800),
|
|
1040
|
+
z.literal(800)
|
|
1041
|
+
]).readonly(),
|
|
1042
|
+
backgroundClass: z.literal("map-water"),
|
|
1043
|
+
paths: z.array(drawingPathSchema).max(1800).readonly(),
|
|
1044
|
+
labels: z.array(label).max(12).readonly(),
|
|
1045
|
+
pin: z.strictObject({
|
|
1046
|
+
className: z.literal("map-pin"),
|
|
1047
|
+
point: z.tuple([z.literal(400), z.literal(400)]).readonly()
|
|
1048
|
+
}).readonly()
|
|
1049
|
+
}).superRefine((value, ctx) => {
|
|
1050
|
+
if (value.paths.reduce((sum, path) => sum + (path.kind === "line" ? path.points.length : path.rings.reduce((n, ring) => n + ring.length, 0)), 0) > 5e4) ctx.addIssue({
|
|
1051
|
+
code: "custom",
|
|
1052
|
+
message: "Drawing exceeds its vertex budget."
|
|
1053
|
+
});
|
|
1054
|
+
}).readonly();
|
|
1055
|
+
const mapDrawingSchema = z.strictObject({
|
|
1056
|
+
schemaVersion: z.literal(2),
|
|
1057
|
+
generatorVersion: z.literal(3),
|
|
1058
|
+
buildId: z.string().regex(/^\d{8}$/),
|
|
1059
|
+
tileSchemaVersion: z.string().regex(/^4\.\d+\.\d+$/),
|
|
1060
|
+
frames: z.strictObject({
|
|
1061
|
+
neighbourhood: drawingFrameSchema,
|
|
1062
|
+
wider: drawingFrameSchema
|
|
1063
|
+
}).readonly()
|
|
1064
|
+
}).refine((value) => value.frames.neighbourhood.radiusMeters === FRAMINGS[0].radiusMeters && value.frames.wider.radiusMeters === FRAMINGS[1].radiusMeters).refine((value) => new TextEncoder().encode(JSON.stringify(value)).byteLength <= MAX_DRAWING_BYTES, { error: "Drawing exceeds its byte budget." }).readonly();
|
|
1065
|
+
//#endregion
|
|
914
1066
|
//#region ../core/src/string.ts
|
|
915
1067
|
/**
|
|
916
1068
|
* Trim a user-entered string and collapse blank values to null.
|
|
@@ -952,11 +1104,12 @@ const locationAddressMatchSchema = z.strictObject({
|
|
|
952
1104
|
url: z.url().max(2048).refine((value) => /^https?:\/\//.test(value))
|
|
953
1105
|
}).readonly()).min(1).max(4).readonly()
|
|
954
1106
|
}).readonly();
|
|
955
|
-
z.strictObject({
|
|
1107
|
+
const locationValueSchema = z.strictObject({
|
|
956
1108
|
address: locationAddressSchema.nullable().default(null),
|
|
957
1109
|
pin: locationPinSchema.nullable().default(null),
|
|
958
1110
|
doorNote: z.string().trim().max(1e3).nullish().transform(trimmedStringOrNull),
|
|
959
1111
|
addressMatch: locationAddressMatchSchema.nullable().default(null),
|
|
1112
|
+
addressCheckSettled: z.literal(true).optional(),
|
|
960
1113
|
ownerConfirmedPinAndAddress: z.boolean().default(false)
|
|
961
1114
|
}).superRefine((value, context) => {
|
|
962
1115
|
if (value.address === null && value.pin === null) context.addIssue({
|
|
@@ -969,12 +1122,66 @@ z.strictObject({
|
|
|
969
1122
|
path: ["addressMatch"],
|
|
970
1123
|
message: "Address evidence requires an address."
|
|
971
1124
|
});
|
|
1125
|
+
if (value.address === null && value.addressCheckSettled) context.addIssue({
|
|
1126
|
+
code: "custom",
|
|
1127
|
+
path: ["addressCheckSettled"],
|
|
1128
|
+
message: "A settled address check requires an address."
|
|
1129
|
+
});
|
|
972
1130
|
if (value.ownerConfirmedPinAndAddress && (value.address === null || value.pin === null)) context.addIssue({
|
|
973
1131
|
code: "custom",
|
|
974
1132
|
path: ["ownerConfirmedPinAndAddress"],
|
|
975
1133
|
message: "Confirmation requires both address and pin."
|
|
976
1134
|
});
|
|
977
1135
|
}).readonly();
|
|
1136
|
+
/** API/DB ingress parses once. Removed locations are represented by null. */
|
|
1137
|
+
function parseLocationValue(input) {
|
|
1138
|
+
const parsed = locationValueSchema.nullable().safeParse(input);
|
|
1139
|
+
return parsed.success ? ok$1(parsed.data) : err({
|
|
1140
|
+
kind: "invalid_location",
|
|
1141
|
+
issues: parsed.error.issues
|
|
1142
|
+
});
|
|
1143
|
+
}
|
|
1144
|
+
/** One display formatter: a known matching site country is redundant. */
|
|
1145
|
+
function formatLocationAddress(address, siteCountry) {
|
|
1146
|
+
if (address === null) return null;
|
|
1147
|
+
return [
|
|
1148
|
+
address.building,
|
|
1149
|
+
address.street,
|
|
1150
|
+
address.unit,
|
|
1151
|
+
address.floor,
|
|
1152
|
+
address.locality,
|
|
1153
|
+
address.region,
|
|
1154
|
+
address.postalCode,
|
|
1155
|
+
sameLocationCountry(address.country, siteCountry) ? null : address.country
|
|
1156
|
+
].filter((part) => part !== null).join(", ") || null;
|
|
1157
|
+
}
|
|
1158
|
+
const regionNames = new Intl.DisplayNames(["en"], { type: "region" });
|
|
1159
|
+
const countryIdentity = (country) => {
|
|
1160
|
+
const text = country.trim();
|
|
1161
|
+
const code = text.toUpperCase() === "UK" ? "GB" : text.toUpperCase();
|
|
1162
|
+
return (code.length === 2 && /^[A-Z]{2}$/.test(code) ? regionNames.of(code) ?? text : text).toLowerCase();
|
|
1163
|
+
};
|
|
1164
|
+
function sameLocationCountry(country, siteCountry) {
|
|
1165
|
+
return country !== null && Boolean(siteCountry?.trim()) && countryIdentity(country) === countryIdentity(siteCountry ?? "");
|
|
1166
|
+
}
|
|
1167
|
+
const publicLocationSchema = z.strictObject({
|
|
1168
|
+
drawing: z.lazy(() => mapDrawingSchema).optional().catch(void 0),
|
|
1169
|
+
address: locationAddressSchema.nullable(),
|
|
1170
|
+
displayAddress: z.string().nullable().default(null),
|
|
1171
|
+
pin: locationPinSchema.nullable(),
|
|
1172
|
+
doorNote: z.string().max(1e3).nullable(),
|
|
1173
|
+
attribution: z.array(locationAddressMatchSchema.unwrap().shape.attribution.unwrap().element).max(4).readonly()
|
|
1174
|
+
}).readonly();
|
|
1175
|
+
/** Permission belongs to the resource/source owner before this projection. */
|
|
1176
|
+
function projectPublicLocation(location, siteCountry) {
|
|
1177
|
+
return {
|
|
1178
|
+
address: location.address,
|
|
1179
|
+
displayAddress: formatLocationAddress(location.address, siteCountry),
|
|
1180
|
+
pin: location.pin,
|
|
1181
|
+
doorNote: location.doorNote,
|
|
1182
|
+
attribution: location.addressMatch?.attribution ?? []
|
|
1183
|
+
};
|
|
1184
|
+
}
|
|
978
1185
|
function normalizeLocationAddressText(value) {
|
|
979
1186
|
if (typeof value !== "string") return null;
|
|
980
1187
|
return trimmedStringOrNull(value);
|
|
@@ -989,6 +1196,14 @@ function toLocationCoordinates(value) {
|
|
|
989
1196
|
lng: value.lng
|
|
990
1197
|
};
|
|
991
1198
|
}
|
|
1199
|
+
/** Decide permission before loading or projecting the selected source. */
|
|
1200
|
+
function decideLocationSourcePermission(source, businessAddressVisibility) {
|
|
1201
|
+
if (source === "business_address" && businessAddressVisibility === void 0) return { kind: "unresolved" };
|
|
1202
|
+
return source === "business_address" && businessAddressVisibility === "hidden" ? { kind: "hidden" } : {
|
|
1203
|
+
kind: "permitted",
|
|
1204
|
+
source
|
|
1205
|
+
};
|
|
1206
|
+
}
|
|
992
1207
|
//#endregion
|
|
993
1208
|
//#region ../core/src/public-profile.ts
|
|
994
1209
|
const publicProfileWeekdays = [
|
|
@@ -1973,99 +2188,6 @@ function chosenString(value) {
|
|
|
1973
2188
|
return typeof value === "string" && value.trim() ? value.trim() : null;
|
|
1974
2189
|
}
|
|
1975
2190
|
//#endregion
|
|
1976
|
-
//#region ../theme-core/src/site-styles/blockFlow.ts
|
|
1977
|
-
function defineBlockDesignMetadata(input) {
|
|
1978
|
-
const layoutProfiles = (input.layoutProfiles ?? []).map((profile) => ({
|
|
1979
|
-
...profile,
|
|
1980
|
-
variantKey: asLayoutVariantKey(profile.variantKey)
|
|
1981
|
-
}));
|
|
1982
|
-
assertUniqueLayoutProfileKeys(layoutProfiles);
|
|
1983
|
-
return {
|
|
1984
|
-
flow: input.flow,
|
|
1985
|
-
layoutProfiles
|
|
1986
|
-
};
|
|
1987
|
-
}
|
|
1988
|
-
function assertUniqueLayoutProfileKeys(profiles) {
|
|
1989
|
-
const seen = /* @__PURE__ */ new Set();
|
|
1990
|
-
const duplicates = profiles.flatMap((profile) => {
|
|
1991
|
-
if (seen.has(profile.variantKey)) return [profile.variantKey];
|
|
1992
|
-
seen.add(profile.variantKey);
|
|
1993
|
-
return [];
|
|
1994
|
-
});
|
|
1995
|
-
if (duplicates.length > 0) throw new Error(`Duplicate block layout design profiles: ${duplicates.join(", ")}`);
|
|
1996
|
-
}
|
|
1997
|
-
//#endregion
|
|
1998
|
-
//#region ../theme-core/src/site-styles/backgroundAppearance.ts
|
|
1999
|
-
const backgroundAppearanceQuickColorTokenNames = [
|
|
2000
|
-
"background",
|
|
2001
|
-
"surface",
|
|
2002
|
-
"muted",
|
|
2003
|
-
"primary",
|
|
2004
|
-
"secondary",
|
|
2005
|
-
"accent"
|
|
2006
|
-
];
|
|
2007
|
-
const backgroundAppearanceBaseColorTokenNames = [
|
|
2008
|
-
"background",
|
|
2009
|
-
"surface",
|
|
2010
|
-
"surfaceAlt",
|
|
2011
|
-
"muted",
|
|
2012
|
-
"primary",
|
|
2013
|
-
"secondary",
|
|
2014
|
-
"accent",
|
|
2015
|
-
"neutral"
|
|
2016
|
-
];
|
|
2017
|
-
const backgroundAppearanceShadeableColorTokenNames = [
|
|
2018
|
-
"primary",
|
|
2019
|
-
"secondary",
|
|
2020
|
-
"accent",
|
|
2021
|
-
"neutral"
|
|
2022
|
-
];
|
|
2023
|
-
const backgroundAppearanceColorTokenNames = uniqueStrings([...backgroundAppearanceBaseColorTokenNames, ...backgroundAppearanceShadeableColorTokenNames.flatMap((name) => themeColorShadeSteps.map((shade) => `${name}-${shade}`))]);
|
|
2024
|
-
backgroundAppearanceColorTokenNames.filter((tokenName) => !backgroundAppearanceQuickColorTokenNames.includes(tokenName));
|
|
2025
|
-
const backgroundAppearanceColorTokenNameSet = new Set(backgroundAppearanceColorTokenNames);
|
|
2026
|
-
function parseBackgroundAppearanceColorToken(value) {
|
|
2027
|
-
if (typeof value !== "string") return null;
|
|
2028
|
-
const normalized = value.trim();
|
|
2029
|
-
if (!backgroundAppearanceColorTokenNameSet.has(normalized)) return null;
|
|
2030
|
-
return parseThemeColorToken(normalized);
|
|
2031
|
-
}
|
|
2032
|
-
function uniqueStrings(values) {
|
|
2033
|
-
return Array.from(new Set(values));
|
|
2034
|
-
}
|
|
2035
|
-
//#endregion
|
|
2036
|
-
//#region ../theme-core/src/site-styles/cardRoleVocabulary.ts
|
|
2037
|
-
/**
|
|
2038
|
-
* The legacy `itemSurface` treatment vocabulary, and how it reads as a card
|
|
2039
|
-
* role.
|
|
2040
|
-
*
|
|
2041
|
-
* `itemSurface` named a *treatment* ("raised", "inset"); a role names *which
|
|
2042
|
-
* card* a Look wants and defers the appearance to the site style. Phase 3
|
|
2043
|
-
* deleted the treatment vocabulary and the recipe table it fed, so this map is
|
|
2044
|
-
* no longer a migration coexistence device — it is the one parse boundary where
|
|
2045
|
-
* persisted design plans written before the cutover still load, normalizing to
|
|
2046
|
-
* the role they meant.
|
|
2047
|
-
*
|
|
2048
|
-
* Per-value rationale is recorded in
|
|
2049
|
-
* `.project/plans/1297-card-role-contract-site-styles-own-card-surfaces/mapping-table.md`.
|
|
2050
|
-
*/
|
|
2051
|
-
const legacyItemSurfaceCardRoles = {
|
|
2052
|
-
none: "none",
|
|
2053
|
-
flat: "default",
|
|
2054
|
-
default: "default",
|
|
2055
|
-
outlined: "default",
|
|
2056
|
-
raised: "default",
|
|
2057
|
-
inset: "alternative",
|
|
2058
|
-
editorial: "open",
|
|
2059
|
-
"color-blocked": "alternative"
|
|
2060
|
-
};
|
|
2061
|
-
Object.keys(legacyItemSurfaceCardRoles);
|
|
2062
|
-
/**
|
|
2063
|
-
* The parse boundary for card roles reaching design intents and persisted
|
|
2064
|
-
* design plans: roles pass through, legacy `itemSurface` values normalize to
|
|
2065
|
-
* the role they meant, everything else fails the parse.
|
|
2066
|
-
*/
|
|
2067
|
-
const cardRoleWithLegacyAliasSchema = z.preprocess((value) => normalizeCardRole(value) ?? (typeof value === "string" && Object.prototype.hasOwnProperty.call(legacyItemSurfaceCardRoles, value) ? legacyItemSurfaceCardRoles[value] : value), cardRoleSchema);
|
|
2068
|
-
//#endregion
|
|
2069
2191
|
//#region ../media-core/src/fileSafety.ts
|
|
2070
2192
|
const CONTROL_CHARACTER_PATTERN = /[\u0000-\u001f\u007f]/u;
|
|
2071
2193
|
function containsUnsafePathSegmentCharacter(value) {
|
|
@@ -2332,777 +2454,6 @@ function rotateNormalizedPoint(point, rotation) {
|
|
|
2332
2454
|
}
|
|
2333
2455
|
}
|
|
2334
2456
|
//#endregion
|
|
2335
|
-
//#region ../theme-core/src/site-styles/runtimeBackgroundResolution.ts
|
|
2336
|
-
function parseCanonicalRuntimeBackground(content) {
|
|
2337
|
-
const background = readRecord(readRecord(content._sectionStyles)?.background);
|
|
2338
|
-
if (!background) return { kind: "none" };
|
|
2339
|
-
const parsed = runtimeBoxBackgroundSchema.safeParse(background);
|
|
2340
|
-
if (!parsed.success) return { kind: "none" };
|
|
2341
|
-
return parsed.data.contentOwner === "page-design-editor" ? {
|
|
2342
|
-
kind: "page-design-override",
|
|
2343
|
-
background: parsed.data
|
|
2344
|
-
} : {
|
|
2345
|
-
kind: "block-authored",
|
|
2346
|
-
background: parsed.data
|
|
2347
|
-
};
|
|
2348
|
-
}
|
|
2349
|
-
function resolveSectionBackground(source, lookDefault, rhythm, arrangementHeroPhoto) {
|
|
2350
|
-
if (heroPhotoIsContent(source, arrangementHeroPhoto, rhythm !== void 0)) {
|
|
2351
|
-
if (rhythm !== void 0) return rhythmBackground(rhythm);
|
|
2352
|
-
return {
|
|
2353
|
-
kind: "content-media",
|
|
2354
|
-
background: source.background,
|
|
2355
|
-
ground: {
|
|
2356
|
-
type: "color",
|
|
2357
|
-
color: arrangementHeroPhoto?.fallbackToken ?? "background",
|
|
2358
|
-
textColor: source.background.textColor,
|
|
2359
|
-
headingColor: source.background.headingColor,
|
|
2360
|
-
linkColor: source.background.linkColor,
|
|
2361
|
-
supportingColor: source.background.supportingColor
|
|
2362
|
-
}
|
|
2363
|
-
};
|
|
2364
|
-
}
|
|
2365
|
-
if (source.kind === "page-design-override") return {
|
|
2366
|
-
kind: "override",
|
|
2367
|
-
background: source.background
|
|
2368
|
-
};
|
|
2369
|
-
if (isAuthoredMedia(source)) return {
|
|
2370
|
-
kind: "authored-media",
|
|
2371
|
-
background: lookDefault ? mergeLookForegroundWithAuthoredMedia(lookDefault, source.background) : source.background
|
|
2372
|
-
};
|
|
2373
|
-
if (lookDefault) return {
|
|
2374
|
-
kind: "look-surface",
|
|
2375
|
-
background: lookDefault
|
|
2376
|
-
};
|
|
2377
|
-
if (source.kind === "block-authored") return {
|
|
2378
|
-
kind: "authored-colour",
|
|
2379
|
-
background: source.background
|
|
2380
|
-
};
|
|
2381
|
-
return rhythmBackground(rhythm);
|
|
2382
|
-
}
|
|
2383
|
-
function resolveSectionForeground(background, palette) {
|
|
2384
|
-
return resolveSurfaceForeground(sectionForegroundBackground(background, palette), palette, {}, { compositeBase: "background" });
|
|
2385
|
-
}
|
|
2386
|
-
/** Legacy detached photos keep already-legible authored ink and its exact CSS treatment. */
|
|
2387
|
-
function sectionForegroundBackground(resolved, palette) {
|
|
2388
|
-
if (resolved.kind === "base") return null;
|
|
2389
|
-
if (resolved.kind !== "content-media") return resolved.background;
|
|
2390
|
-
const original = resolveSurfaceForeground(resolved.background, palette);
|
|
2391
|
-
const measured = resolveSurfaceForeground(resolved.ground, palette);
|
|
2392
|
-
if (original.kind === "unknown" || measured.kind === "unknown") return resolved.background;
|
|
2393
|
-
return [
|
|
2394
|
-
"text",
|
|
2395
|
-
"heading",
|
|
2396
|
-
"link",
|
|
2397
|
-
"supporting"
|
|
2398
|
-
].every((role) => original.roles[role] === measured.roles[role]) ? resolved.background : resolved.ground;
|
|
2399
|
-
}
|
|
2400
|
-
/** One photo-placement decision for legacy and arrangement hero renderers. */
|
|
2401
|
-
function heroPhotoPaintsGround(variant) {
|
|
2402
|
-
return ![
|
|
2403
|
-
"split",
|
|
2404
|
-
"splitReverse",
|
|
2405
|
-
"headline-row",
|
|
2406
|
-
"copy-over-gallery",
|
|
2407
|
-
"page-head"
|
|
2408
|
-
].includes(variant ?? "classic");
|
|
2409
|
-
}
|
|
2410
|
-
function mergeLookForegroundWithAuthoredMedia(lookDefault, authored) {
|
|
2411
|
-
const paintsBand = lookDefault.type === "color" || lookDefault.type === "gradient";
|
|
2412
|
-
const lookScrim = paintsBand ? lookDefault.mediaScrim : void 0;
|
|
2413
|
-
if (paintsBand && !lookScrim) return authored;
|
|
2414
|
-
const merged = runtimeBoxBackgroundSchema.safeParse({
|
|
2415
|
-
...lookDefault,
|
|
2416
|
-
type: authored.type,
|
|
2417
|
-
image: authored.image,
|
|
2418
|
-
objectFit: authored.objectFit,
|
|
2419
|
-
scale: authored.scale,
|
|
2420
|
-
position: authored.position,
|
|
2421
|
-
...lookScrim ? { overlay: lookScrim } : {}
|
|
2422
|
-
});
|
|
2423
|
-
return merged.success ? merged.data : authored;
|
|
2424
|
-
}
|
|
2425
|
-
function readRecord(value) {
|
|
2426
|
-
return typeof value === "object" && value !== null && !Array.isArray(value) ? value : null;
|
|
2427
|
-
}
|
|
2428
|
-
function heroPhotoIsContent(source, photo, hasArrangementGround) {
|
|
2429
|
-
return photo !== void 0 && !photo.paintsGround && source.kind === "block-authored" && source.background.type === "image" && (hasArrangementGround || !source.background.overlay);
|
|
2430
|
-
}
|
|
2431
|
-
function isAuthoredMedia(source) {
|
|
2432
|
-
return source.kind === "block-authored" && (source.background.type === "image" || source.background.type === "video");
|
|
2433
|
-
}
|
|
2434
|
-
function rhythmBackground(background) {
|
|
2435
|
-
return background ? {
|
|
2436
|
-
kind: "rhythm",
|
|
2437
|
-
background
|
|
2438
|
-
} : { kind: "base" };
|
|
2439
|
-
}
|
|
2440
|
-
/**
|
|
2441
|
-
* Semantic section grounds: background/base -> light; muted/surface bands ->
|
|
2442
|
-
* band; primary/secondary/accent (including pop) -> brand; text/inverse and
|
|
2443
|
-
* numbered deep shades -> deep. Media and gradients use the existing resolved
|
|
2444
|
-
* scrim foreground/tone contract: light ink over a dark veil -> deep, dark ink
|
|
2445
|
-
* over a light veil -> light. Unclassified/no veil defaults to light.
|
|
2446
|
-
* Background ownership (override, authored, Look or rhythm) never changes tone.
|
|
2447
|
-
*/
|
|
2448
|
-
const solidGrounds = {
|
|
2449
|
-
background: "light",
|
|
2450
|
-
muted: "band",
|
|
2451
|
-
surface: "band",
|
|
2452
|
-
primary: "brand",
|
|
2453
|
-
secondary: "brand",
|
|
2454
|
-
accent: "brand",
|
|
2455
|
-
text: "deep"
|
|
2456
|
-
};
|
|
2457
|
-
function deriveSectionGround(resolved, palette) {
|
|
2458
|
-
if (resolved.kind === "base") return "light";
|
|
2459
|
-
const background = resolved.kind === "content-media" ? resolved.ground : resolved.background;
|
|
2460
|
-
const solid = solidSectionGround(background);
|
|
2461
|
-
if (solid) return solid;
|
|
2462
|
-
return (scrimTone(sectionScrimSamples(background, palette)) ?? sectionForegroundTone(resolved, palette)) === "dark" ? "deep" : "light";
|
|
2463
|
-
}
|
|
2464
|
-
function solidSectionGround(background) {
|
|
2465
|
-
if (background.type !== "color") return null;
|
|
2466
|
-
const color = background.color ?? "background";
|
|
2467
|
-
return solidGrounds[color] ?? (/-(?:[7-9]00|950)$/.test(color) ? "deep" : null);
|
|
2468
|
-
}
|
|
2469
|
-
function sectionForegroundTone(resolved, palette) {
|
|
2470
|
-
const foreground = resolveSectionForeground(resolved, palette);
|
|
2471
|
-
return foreground.kind === "known" ? surfaceToneFromForegroundToken(palette, foreground.roles.text) : "unknown";
|
|
2472
|
-
}
|
|
2473
|
-
function sectionVeil(background) {
|
|
2474
|
-
switch (background.type) {
|
|
2475
|
-
case "color": return null;
|
|
2476
|
-
case "image":
|
|
2477
|
-
case "video": return background.overlay;
|
|
2478
|
-
case "gradient": return {
|
|
2479
|
-
type: "gradient",
|
|
2480
|
-
gradient: background.gradient,
|
|
2481
|
-
opacity: 1
|
|
2482
|
-
};
|
|
2483
|
-
}
|
|
2484
|
-
}
|
|
2485
|
-
function sectionScrimSamples(background, palette) {
|
|
2486
|
-
const overlay = sectionVeil(background);
|
|
2487
|
-
if (overlay?.type === "gradient") return gradientScrimSamples(overlay.gradient ?? "", overlay.opacity ?? 1, palette);
|
|
2488
|
-
if (overlay?.type !== "color") return [];
|
|
2489
|
-
const hex = resolveConcreteColorHex(overlay.color ?? "", palette);
|
|
2490
|
-
return hex ? [{
|
|
2491
|
-
hex,
|
|
2492
|
-
alpha: overlay.opacity ?? 1
|
|
2493
|
-
}] : [];
|
|
2494
|
-
}
|
|
2495
|
-
//#endregion
|
|
2496
|
-
//#region ../theme-core/src/site-styles/sectionBoundaryComposition.ts
|
|
2497
|
-
const backgroundToken = requireThemeColorToken("background");
|
|
2498
|
-
/**
|
|
2499
|
-
* Classifies a section from its final render content. `_sectionStyles`
|
|
2500
|
-
* already holds the effective background (Look default, page-design override
|
|
2501
|
-
* and block-authored media merged by `resolveSectionBackground`), so this only
|
|
2502
|
-
* reads it and never re-decides precedence. A missing or unparseable
|
|
2503
|
-
* background is the page background, as it is for the renderer.
|
|
2504
|
-
*/
|
|
2505
|
-
function boundaryEndpointForSectionContent(content) {
|
|
2506
|
-
const background = parseCanonicalRuntimeBackground(content);
|
|
2507
|
-
if (background.kind === "none") return {
|
|
2508
|
-
kind: "paint",
|
|
2509
|
-
token: backgroundToken
|
|
2510
|
-
};
|
|
2511
|
-
const effective = background.background;
|
|
2512
|
-
switch (effective.type) {
|
|
2513
|
-
case "color": {
|
|
2514
|
-
if (effective.color === null || effective.color === void 0) return {
|
|
2515
|
-
kind: "paint",
|
|
2516
|
-
token: backgroundToken
|
|
2517
|
-
};
|
|
2518
|
-
const token = parseThemeColorToken(effective.color);
|
|
2519
|
-
return token ? {
|
|
2520
|
-
kind: "paint",
|
|
2521
|
-
token
|
|
2522
|
-
} : {
|
|
2523
|
-
kind: "unpainted",
|
|
2524
|
-
reason: "literal-color"
|
|
2525
|
-
};
|
|
2526
|
-
}
|
|
2527
|
-
case "gradient": return {
|
|
2528
|
-
kind: "unpainted",
|
|
2529
|
-
reason: "gradient"
|
|
2530
|
-
};
|
|
2531
|
-
case "image":
|
|
2532
|
-
case "video": return {
|
|
2533
|
-
kind: "unpainted",
|
|
2534
|
-
reason: "media"
|
|
2535
|
-
};
|
|
2536
|
-
default: return assertNever$2(effective, "Unhandled section background type");
|
|
2537
|
-
}
|
|
2538
|
-
}
|
|
2539
|
-
/**
|
|
2540
|
-
* Reads both facts from final render content in one place. `_frameStyles` is
|
|
2541
|
-
* the compiled frame; content without one (no page design, an SDK block)
|
|
2542
|
-
* draws a plain frame.
|
|
2543
|
-
*/
|
|
2544
|
-
function sectionFactsForContent(content) {
|
|
2545
|
-
return {
|
|
2546
|
-
endpoint: boundaryEndpointForSectionContent(content),
|
|
2547
|
-
frame: frameKindForContent(content)
|
|
2548
|
-
};
|
|
2549
|
-
}
|
|
2550
|
-
function frameKindForContent(content) {
|
|
2551
|
-
const frameStyles = content._frameStyles;
|
|
2552
|
-
const kind = typeof frameStyles === "object" && frameStyles !== null && "kind" in frameStyles ? frameStyles.kind : null;
|
|
2553
|
-
return kind === "panel" || kind === "flush-panel" ? kind : "plain";
|
|
2554
|
-
}
|
|
2555
|
-
/**
|
|
2556
|
-
* The frame rule: a flush panel owns the edge it runs to, so no break is
|
|
2557
|
-
* drawn next to one. The single home for this rule; the generated
|
|
2558
|
-
* pipeline's budget and the site-style lab ask it with their plan frames.
|
|
2559
|
-
*/
|
|
2560
|
-
function frameNotShownReason(previous, next) {
|
|
2561
|
-
return previous === "flush-panel" || next === "flush-panel" ? "flush-panel" : null;
|
|
2562
|
-
}
|
|
2563
|
-
/**
|
|
2564
|
-
* Decides whether and how a join draws. The frame rule wins before paint is
|
|
2565
|
-
* considered; two unpainted sides show nothing.
|
|
2566
|
-
*/
|
|
2567
|
-
function composeBoundary(previous, next) {
|
|
2568
|
-
const frameReason = frameNotShownReason(previous.frame, next.frame);
|
|
2569
|
-
if (frameReason) return {
|
|
2570
|
-
kind: "not-shown",
|
|
2571
|
-
reason: frameReason
|
|
2572
|
-
};
|
|
2573
|
-
const from = previous.endpoint;
|
|
2574
|
-
const to = next.endpoint;
|
|
2575
|
-
if (from.kind === "paint") return {
|
|
2576
|
-
kind: "shown",
|
|
2577
|
-
composition: to.kind === "paint" ? {
|
|
2578
|
-
kind: "paint-to-paint",
|
|
2579
|
-
from: from.token,
|
|
2580
|
-
to: to.token
|
|
2581
|
-
} : {
|
|
2582
|
-
kind: "paint-to-unpainted",
|
|
2583
|
-
from: from.token
|
|
2584
|
-
}
|
|
2585
|
-
};
|
|
2586
|
-
return to.kind === "paint" ? {
|
|
2587
|
-
kind: "shown",
|
|
2588
|
-
composition: {
|
|
2589
|
-
kind: "unpainted-to-paint",
|
|
2590
|
-
to: to.token
|
|
2591
|
-
}
|
|
2592
|
-
} : {
|
|
2593
|
-
kind: "not-shown",
|
|
2594
|
-
reason: "both-unpainted"
|
|
2595
|
-
};
|
|
2596
|
-
}
|
|
2597
|
-
/**
|
|
2598
|
-
* Placement, reserves and paint for a shown boundary, derived from the
|
|
2599
|
-
* composition and the catalogue's metrics for the treatment.
|
|
2600
|
-
*/
|
|
2601
|
-
function boundaryLayout(intent, composition) {
|
|
2602
|
-
const metrics = boundaryRuntimeMetricsForDecorativeTransition(intent);
|
|
2603
|
-
switch (composition.kind) {
|
|
2604
|
-
case "paint-to-paint": return {
|
|
2605
|
-
placement: "centred",
|
|
2606
|
-
reserves: {
|
|
2607
|
-
before: metrics.reserveCss,
|
|
2608
|
-
after: metrics.reserveCss
|
|
2609
|
-
},
|
|
2610
|
-
paint: {
|
|
2611
|
-
band: composition.from,
|
|
2612
|
-
shape: composition.to
|
|
2613
|
-
}
|
|
2614
|
-
};
|
|
2615
|
-
case "unpainted-to-paint": return {
|
|
2616
|
-
placement: "previous",
|
|
2617
|
-
reserves: {
|
|
2618
|
-
before: metrics.heightCss,
|
|
2619
|
-
after: null
|
|
2620
|
-
},
|
|
2621
|
-
paint: {
|
|
2622
|
-
band: null,
|
|
2623
|
-
shape: composition.to
|
|
2624
|
-
}
|
|
2625
|
-
};
|
|
2626
|
-
case "paint-to-unpainted": return {
|
|
2627
|
-
placement: "next",
|
|
2628
|
-
reserves: {
|
|
2629
|
-
before: null,
|
|
2630
|
-
after: metrics.heightCss
|
|
2631
|
-
},
|
|
2632
|
-
paint: {
|
|
2633
|
-
band: null,
|
|
2634
|
-
shape: composition.from
|
|
2635
|
-
}
|
|
2636
|
-
};
|
|
2637
|
-
default: return assertNever$2(composition, "Unhandled boundary composition");
|
|
2638
|
-
}
|
|
2639
|
-
}
|
|
2640
|
-
function requireThemeColorToken(value) {
|
|
2641
|
-
const token = parseThemeColorToken(value);
|
|
2642
|
-
if (!token) throw new Error(`Expected a theme color token. Received: ${value}`);
|
|
2643
|
-
return token;
|
|
2644
|
-
}
|
|
2645
|
-
//#endregion
|
|
2646
|
-
//#region ../theme-core/src/site-styles/siteChromeBackgrounds.ts
|
|
2647
|
-
const siteChromeBackgroundColorTokens = toSiteChromeBackgroundColorTokens(backgroundAppearanceColorTokenNames);
|
|
2648
|
-
const quickSiteChromeBackgroundColorTokens = toSiteChromeBackgroundColorTokens(backgroundAppearanceQuickColorTokenNames);
|
|
2649
|
-
siteChromeBackgroundColorTokens.filter((token) => !quickSiteChromeBackgroundColorTokens.includes(token));
|
|
2650
|
-
function parseSiteChromeBackgroundColorToken(value) {
|
|
2651
|
-
const token = parseBackgroundAppearanceColorToken(value);
|
|
2652
|
-
return token ? token : null;
|
|
2653
|
-
}
|
|
2654
|
-
function toSiteChromeBackgroundColorTokens(tokenNames) {
|
|
2655
|
-
return tokenNames.flatMap((name) => {
|
|
2656
|
-
const token = parseSiteChromeBackgroundColorToken(name);
|
|
2657
|
-
return token ? [token] : [];
|
|
2658
|
-
});
|
|
2659
|
-
}
|
|
2660
|
-
const backgroundColorTokenSchema = z.unknown().transform((value, ctx) => {
|
|
2661
|
-
const token = parseSiteChromeBackgroundColorToken(value);
|
|
2662
|
-
if (token === null) {
|
|
2663
|
-
ctx.addIssue({
|
|
2664
|
-
code: "custom",
|
|
2665
|
-
message: "Unknown site chrome background colour token"
|
|
2666
|
-
});
|
|
2667
|
-
return z.NEVER;
|
|
2668
|
-
}
|
|
2669
|
-
return token;
|
|
2670
|
-
});
|
|
2671
|
-
const siteChromeBackgroundOverrideSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("default") }).strict(), z.object({
|
|
2672
|
-
kind: z.literal("color"),
|
|
2673
|
-
token: backgroundColorTokenSchema
|
|
2674
|
-
}).strict()]);
|
|
2675
|
-
z.object({
|
|
2676
|
-
background: siteChromeBackgroundOverrideSchema,
|
|
2677
|
-
navigationLayout: z.enum(["inline-wrap", "stack"])
|
|
2678
|
-
}).strict();
|
|
2679
|
-
z.object({ background: siteChromeBackgroundOverrideSchema }).strict();
|
|
2680
|
-
//#endregion
|
|
2681
|
-
//#region ../theme-core/src/site-styles/compilationPlan.ts
|
|
2682
|
-
const defaultHeaderBrandPreferences = {
|
|
2683
|
-
brandDisplay: "auto",
|
|
2684
|
-
logoSize: "auto"
|
|
2685
|
-
};
|
|
2686
|
-
//#endregion
|
|
2687
|
-
//#region ../theme-core/src/site-styles/effectiveArrangement.ts
|
|
2688
|
-
/** Content stage: legacy Looks leave arrangement to stored intent and defaults. */
|
|
2689
|
-
function resolveEffectiveArrangement(input) {
|
|
2690
|
-
const arrangement = input.look?.structure.byMode[input.mode ?? "default"];
|
|
2691
|
-
if (arrangement !== void 0 && input.manifest.keys.includes(arrangement)) return {
|
|
2692
|
-
kind: "resolved",
|
|
2693
|
-
key: asLayoutVariantKey(arrangement),
|
|
2694
|
-
source: "look"
|
|
2695
|
-
};
|
|
2696
|
-
const stored = validStoredVariant(input.manifest, input.storedVariant);
|
|
2697
|
-
const policyKey = input.policy ? normalizeLayoutVariantForPolicy(input.policy, stored) : stored;
|
|
2698
|
-
if (policyKey && policyKey !== stored) return {
|
|
2699
|
-
kind: "resolved",
|
|
2700
|
-
key: policyKey,
|
|
2701
|
-
source: "policy"
|
|
2702
|
-
};
|
|
2703
|
-
if (stored) return {
|
|
2704
|
-
kind: "resolved",
|
|
2705
|
-
key: stored,
|
|
2706
|
-
source: "stored"
|
|
2707
|
-
};
|
|
2708
|
-
const key = manifestDefaultArrangement(input.manifest);
|
|
2709
|
-
return key === null ? {
|
|
2710
|
-
kind: "none",
|
|
2711
|
-
key: null
|
|
2712
|
-
} : {
|
|
2713
|
-
kind: "resolved",
|
|
2714
|
-
key,
|
|
2715
|
-
source: "manifest-default"
|
|
2716
|
-
};
|
|
2717
|
-
}
|
|
2718
|
-
function validStoredVariant(manifest, stored) {
|
|
2719
|
-
if (stored.kind === "absent") return null;
|
|
2720
|
-
return manifest.keys.includes(stored.key) && !manifest.lookOnlyKeys?.includes(stored.key) ? stored.key : null;
|
|
2721
|
-
}
|
|
2722
|
-
function arrangementManifestFromVariants(manifest) {
|
|
2723
|
-
return {
|
|
2724
|
-
keys: Object.keys(manifest.variants ?? {}),
|
|
2725
|
-
defaultKey: manifest.defaultVariant ?? null,
|
|
2726
|
-
lookOnlyKeys: manifest.variantMeaning?.lookOnlyKeys
|
|
2727
|
-
};
|
|
2728
|
-
}
|
|
2729
|
-
/** A Look-only arrangement is never a default: a block whose only variants are Look-only keeps its plain layout. */
|
|
2730
|
-
function manifestDefaultArrangement(manifest) {
|
|
2731
|
-
const defaults = manifest.keys.filter((key) => !manifest.lookOnlyKeys?.includes(key));
|
|
2732
|
-
const key = manifest.defaultKey !== null && defaults.includes(manifest.defaultKey) ? manifest.defaultKey : defaults[0];
|
|
2733
|
-
return key === void 0 ? null : asLayoutVariantKey(key);
|
|
2734
|
-
}
|
|
2735
|
-
/** A declared secondary axis shares the arrangement rule, without rewriting content. */
|
|
2736
|
-
function resolveModeArrangement(input) {
|
|
2737
|
-
const key = [input.content[input.declaration.arrangementField], input.content.layout].find((value) => typeof value === "string" && input.declaration.keys.includes(value));
|
|
2738
|
-
return resolveEffectiveArrangement({
|
|
2739
|
-
look: input.look,
|
|
2740
|
-
mode: input.mode,
|
|
2741
|
-
storedVariant: key === void 0 ? { kind: "absent" } : {
|
|
2742
|
-
kind: "explicit",
|
|
2743
|
-
key: asLayoutVariantKey(key)
|
|
2744
|
-
},
|
|
2745
|
-
manifest: {
|
|
2746
|
-
keys: [...input.declaration.keys, ...input.declaration.lookOnlyKeys ?? []],
|
|
2747
|
-
defaultKey: input.declaration.defaultKey,
|
|
2748
|
-
lookOnlyKeys: input.declaration.lookOnlyKeys
|
|
2749
|
-
}
|
|
2750
|
-
});
|
|
2751
|
-
}
|
|
2752
|
-
/** Mode is content-owned and independent of the selected Look. */
|
|
2753
|
-
function readStoredMode(manifest, content) {
|
|
2754
|
-
if (manifest.variantMeaning.kind !== "mode") return null;
|
|
2755
|
-
const stored = content.variant;
|
|
2756
|
-
return typeof stored === "string" && manifest.keys.includes(stored) ? stored : manifestDefaultArrangement(manifest);
|
|
2757
|
-
}
|
|
2758
|
-
function resolvePublishedLook(input, visited = /* @__PURE__ */ new Set()) {
|
|
2759
|
-
if (input.audience === "authoring" || visited.has(input.look.id)) return input.look;
|
|
2760
|
-
const fallback = input.look.structure.whenMissing.find((rule) => !input.contentFacts[rule.fact]);
|
|
2761
|
-
const next = input.catalogue.find((entry) => entry.id === fallback?.look && entry.blockKinds.some((kind) => input.look.blockKinds.includes(kind)));
|
|
2762
|
-
return next === void 0 ? input.look : resolvePublishedLook({
|
|
2763
|
-
...input,
|
|
2764
|
-
look: next
|
|
2765
|
-
}, /* @__PURE__ */ new Set([...visited, input.look.id]));
|
|
2766
|
-
}
|
|
2767
|
-
//#endregion
|
|
2768
|
-
//#region ../theme-core/src/site-styles/resolver.ts
|
|
2769
|
-
const blockDesignFallback = {
|
|
2770
|
-
sectionSurface: "base",
|
|
2771
|
-
contentFrame: plainFrame,
|
|
2772
|
-
sectionHeight: "default",
|
|
2773
|
-
heroLegibility: "none",
|
|
2774
|
-
imageSurfaceTreatment: { kind: "none" },
|
|
2775
|
-
imageSurfaceMotion: "static",
|
|
2776
|
-
tileTreatment: "default",
|
|
2777
|
-
eventListTreatment: "plain",
|
|
2778
|
-
eyebrowTreatment: "plain",
|
|
2779
|
-
accordionIconTreatment: null,
|
|
2780
|
-
composition: null
|
|
2781
|
-
};
|
|
2782
|
-
blockDesignFallback.sectionSurface, blockDesignFallback.contentFrame, blockDesignFallback.sectionHeight, blockDesignFallback.heroLegibility, blockDesignFallback.imageSurfaceTreatment, blockDesignFallback.imageSurfaceMotion, blockDesignFallback.tileTreatment, blockDesignFallback.eventListTreatment, blockDesignFallback.eyebrowTreatment, blockDesignFallback.accordionIconTreatment, blockDesignFallback.composition;
|
|
2783
|
-
//#endregion
|
|
2784
|
-
//#region ../theme-core/src/site-styles/headerBrandPresentation.ts
|
|
2785
|
-
/**
|
|
2786
|
-
* Whether the header wears a brand presentation at all (#1318 Phase 4c).
|
|
2787
|
-
*
|
|
2788
|
-
* `applyHeaderBrandPresentation` is unconditional today: given a logo context
|
|
2789
|
-
* it always writes a `logo` object carrying a resolved display, size and
|
|
2790
|
-
* accommodation. That makes "this header has no brand presentation block" —
|
|
2791
|
-
* which is what several live sites persist, including one whose site *does*
|
|
2792
|
-
* have a logo asset — a state the preference record could not express, so a
|
|
2793
|
-
* recompile would silently give the site a logo treatment it has never
|
|
2794
|
-
* rendered.
|
|
2795
|
-
*
|
|
2796
|
-
* This is the third field in this phase with that shape, after the interaction
|
|
2797
|
-
* palette and the nav text size: the persisted bytes carry intent the reader
|
|
2798
|
-
* cannot say, so the recompile "corrects" it. The fix is the same one — widen
|
|
2799
|
-
* the closed vocabulary with a named member and derive it by baseline
|
|
2800
|
-
* comparison — and it is a *widening*, not a restyle: `'recommended'` is the
|
|
2801
|
-
* default and reproduces today's behaviour exactly, so no row whose bytes carry
|
|
2802
|
-
* a presentation compiles differently for `'plain'` existing.
|
|
2803
|
-
*
|
|
2804
|
-
* `'plain'` is deliberately not "preserve whatever bytes are there". It is a
|
|
2805
|
-
* constructive instruction — *write no presentation block* — so Phase 4e's
|
|
2806
|
-
* compiler, which builds the header from nothing, can produce it.
|
|
2807
|
-
*/
|
|
2808
|
-
const headerBrandPresentationValues = ["recommended", "plain"];
|
|
2809
|
-
defaultHeaderBrandPreferences.brandDisplay, defaultHeaderBrandPreferences.logoSize, defaultHeaderNavPreferences.typography, defaultHeaderNavPreferences.fontSize, defaultHeaderNavPreferences.interactionPalette;
|
|
2810
|
-
//#endregion
|
|
2811
|
-
//#region ../theme-core/src/site-styles/generatedSchemas.ts
|
|
2812
|
-
function uniqueNonEmpty(values) {
|
|
2813
|
-
const uniqueValues = [...new Set(values)];
|
|
2814
|
-
const firstValue = uniqueValues[0];
|
|
2815
|
-
if (!firstValue) throw new Error("Expected at least one generated schema option.");
|
|
2816
|
-
return [firstValue, ...uniqueValues.slice(1)];
|
|
2817
|
-
}
|
|
2818
|
-
const generatedPanelTreatments = uniqueNonEmpty(generatedDesignOptionCatalog.contentFrames.filter((frame) => frame.kind === "panel").map((frame) => frame.treatment));
|
|
2819
|
-
const generatedFlushTreatments = uniqueNonEmpty(generatedDesignOptionCatalog.contentFrames.filter((frame) => frame.kind === "flush-panel").map((frame) => frame.treatment));
|
|
2820
|
-
const generatedFlushBleeds = uniqueNonEmpty(generatedDesignOptionCatalog.contentFrames.filter((frame) => frame.kind === "flush-panel").map((frame) => frame.bleed));
|
|
2821
|
-
const generatedPanelFrameSchema = z.object({
|
|
2822
|
-
kind: z.literal("panel"),
|
|
2823
|
-
treatment: z.enum(generatedPanelTreatments)
|
|
2824
|
-
}).strict();
|
|
2825
|
-
const generatedFlushPanelFrameSchema = z.object({
|
|
2826
|
-
kind: z.literal("flush-panel"),
|
|
2827
|
-
treatment: z.enum(generatedFlushTreatments),
|
|
2828
|
-
bleed: z.enum(generatedFlushBleeds)
|
|
2829
|
-
}).strict();
|
|
2830
|
-
const generatedContentFrameIntentSchema = z.discriminatedUnion("kind", [
|
|
2831
|
-
z.object({ kind: z.literal("plain") }).strict(),
|
|
2832
|
-
generatedPanelFrameSchema,
|
|
2833
|
-
generatedFlushPanelFrameSchema
|
|
2834
|
-
]);
|
|
2835
|
-
const generatedSiteStyleIdSchema = z.enum(curatedSiteStyleIdValues).transform(asSiteStyleId);
|
|
2836
|
-
function generatedChoiceSchema(valueSchema) {
|
|
2837
|
-
return z.discriminatedUnion("kind", [z.object({
|
|
2838
|
-
source: z.literal("generated"),
|
|
2839
|
-
kind: z.literal("auto")
|
|
2840
|
-
}).strict(), z.object({
|
|
2841
|
-
source: z.literal("generated"),
|
|
2842
|
-
kind: z.literal("explicit"),
|
|
2843
|
-
value: valueSchema
|
|
2844
|
-
}).strict()]);
|
|
2845
|
-
}
|
|
2846
|
-
const generatedBlockDesignIntentSchema = z.object({
|
|
2847
|
-
sectionSurface: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.sectionSurfaces)),
|
|
2848
|
-
contentFrame: generatedChoiceSchema(generatedContentFrameIntentSchema),
|
|
2849
|
-
cardRole: generatedChoiceSchema(cardRoleWithLegacyAliasSchema),
|
|
2850
|
-
transitionAfter: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.transitions)),
|
|
2851
|
-
emphasis: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.emphases))
|
|
2852
|
-
}).strict();
|
|
2853
|
-
const generatedMediaCompositionIntentSchema = z.enum([
|
|
2854
|
-
"none",
|
|
2855
|
-
"supporting",
|
|
2856
|
-
"dominant"
|
|
2857
|
-
]);
|
|
2858
|
-
const generatedDecorativeCompositionIntentSchema = z.enum(["none", "supporting"]);
|
|
2859
|
-
const generatedHeroLegibilityStrategySchema = z.enum(["none", "scrim-gradient"]);
|
|
2860
|
-
const generatedBlockMediaIntentSchema = z.object({
|
|
2861
|
-
media: generatedMediaCompositionIntentSchema,
|
|
2862
|
-
decorative: generatedDecorativeCompositionIntentSchema,
|
|
2863
|
-
heroLegibility: generatedChoiceSchema(generatedHeroLegibilityStrategySchema)
|
|
2864
|
-
}).strict();
|
|
2865
|
-
const generatedBoundaryIntentSchema = z.object({ transitionAfter: generatedChoiceSchema(z.enum(generatedDesignOptionCatalog.transitions)) }).strict();
|
|
2866
|
-
const generatedPageDesignBlockIntentSchema = z.object({
|
|
2867
|
-
blockId: z.string().min(1),
|
|
2868
|
-
blockKind: z.string().min(1),
|
|
2869
|
-
purpose: z.string().min(1),
|
|
2870
|
-
design: generatedBlockDesignIntentSchema,
|
|
2871
|
-
mediaIntent: generatedBlockMediaIntentSchema,
|
|
2872
|
-
boundaryIntent: generatedBoundaryIntentSchema
|
|
2873
|
-
}).strict();
|
|
2874
|
-
z.object({
|
|
2875
|
-
siteStyleId: generatedSiteStyleIdSchema,
|
|
2876
|
-
blocks: z.array(generatedPageDesignBlockIntentSchema)
|
|
2877
|
-
}).strict();
|
|
2878
|
-
//#endregion
|
|
2879
|
-
//#region ../theme-core/src/site-styles/headerPreferencesPersistence.ts
|
|
2880
|
-
const logoTextIntentSchema = z.object({
|
|
2881
|
-
mobileMaxWidth: z.enum([
|
|
2882
|
-
"xs",
|
|
2883
|
-
"sm",
|
|
2884
|
-
"md"
|
|
2885
|
-
]).optional(),
|
|
2886
|
-
mobileWrapLines: z.union([z.literal(1), z.literal(2)]).optional(),
|
|
2887
|
-
hideOnShrink: z.boolean().optional()
|
|
2888
|
-
}).strict();
|
|
2889
|
-
const structureSchema = z.object({
|
|
2890
|
-
positioning: z.union([z.literal("inherit"), z.enum(headerPositioningValues)]),
|
|
2891
|
-
shrinkOnScroll: z.union([z.literal("inherit"), z.boolean()]),
|
|
2892
|
-
logoText: z.union([
|
|
2893
|
-
z.literal("inherit"),
|
|
2894
|
-
z.literal("none"),
|
|
2895
|
-
logoTextIntentSchema
|
|
2896
|
-
])
|
|
2897
|
-
}).strict();
|
|
2898
|
-
const headerPreferencesShape = {
|
|
2899
|
-
brandPresentation: z.enum(headerBrandPresentationValues),
|
|
2900
|
-
brandDisplay: z.enum(brandDisplayModeValues),
|
|
2901
|
-
logoSize: z.enum(logoSizePolicyValues),
|
|
2902
|
-
navFontRole: z.enum(headerNavTypographyPreferenceValues),
|
|
2903
|
-
navTextSize: z.enum(headerNavFontSizePreferenceValues),
|
|
2904
|
-
interactionPalette: z.union([z.literal("recommended"), z.enum(headerInteractionPaletteValues)]),
|
|
2905
|
-
background: siteChromeBackgroundOverrideSchema,
|
|
2906
|
-
structure: structureSchema
|
|
2907
|
-
};
|
|
2908
|
-
z.object(headerPreferencesShape).strict();
|
|
2909
|
-
z.object(headerPreferencesShape).omit({
|
|
2910
|
-
brandPresentation: true,
|
|
2911
|
-
structure: true
|
|
2912
|
-
}).strict();
|
|
2913
|
-
//#endregion
|
|
2914
|
-
//#region ../theme-core/src/site-styles/pageDesignAuthority.ts
|
|
2915
|
-
const nonEmptyStringSchema = z.string().min(1);
|
|
2916
|
-
const blockContentVersionIdSchema = nonEmptyStringSchema.transform(asBlockContentVersionId);
|
|
2917
|
-
const designBlockIdSchema = nonEmptyStringSchema.transform(asDesignBlockId);
|
|
2918
|
-
const designPageIdSchema = nonEmptyStringSchema.transform(asDesignPageId);
|
|
2919
|
-
const designEntryIdSchema = nonEmptyStringSchema.transform(asDesignEntryId);
|
|
2920
|
-
const blockOrderIndexSchema = z.number().int().nonnegative().transform(asBlockOrderIndex);
|
|
2921
|
-
const publishedPageBlockSnapshotSchema = z.object({
|
|
2922
|
-
kind: z.literal("published-block-content"),
|
|
2923
|
-
blockId: designBlockIdSchema,
|
|
2924
|
-
contentVersionId: blockContentVersionIdSchema,
|
|
2925
|
-
identifier: z.string().nullable(),
|
|
2926
|
-
blockKind: nonEmptyStringSchema,
|
|
2927
|
-
orderIndex: blockOrderIndexSchema
|
|
2928
|
-
}).strict();
|
|
2929
|
-
const draftPageBlockSnapshotSchema = z.object({
|
|
2930
|
-
kind: z.literal("draft-block-content"),
|
|
2931
|
-
blockId: designBlockIdSchema,
|
|
2932
|
-
contentVersionId: blockContentVersionIdSchema.nullable(),
|
|
2933
|
-
identifier: z.string().nullable(),
|
|
2934
|
-
blockKind: nonEmptyStringSchema,
|
|
2935
|
-
orderIndex: blockOrderIndexSchema
|
|
2936
|
-
}).strict();
|
|
2937
|
-
const missingPageBlockSnapshotSchema = z.object({
|
|
2938
|
-
kind: z.literal("missing-block-content"),
|
|
2939
|
-
blockId: designBlockIdSchema,
|
|
2940
|
-
identifier: z.string().nullable(),
|
|
2941
|
-
blockKind: nonEmptyStringSchema,
|
|
2942
|
-
orderIndex: blockOrderIndexSchema,
|
|
2943
|
-
reason: z.enum([
|
|
2944
|
-
"new-block",
|
|
2945
|
-
"deleted-content-version",
|
|
2946
|
-
"unpublished-block"
|
|
2947
|
-
])
|
|
2948
|
-
}).strict();
|
|
2949
|
-
const pageBlockSnapshotSchema = z.discriminatedUnion("kind", [
|
|
2950
|
-
publishedPageBlockSnapshotSchema,
|
|
2951
|
-
draftPageBlockSnapshotSchema,
|
|
2952
|
-
missingPageBlockSnapshotSchema
|
|
2953
|
-
]);
|
|
2954
|
-
const publishedPageBlockSequenceSchema = z.array(publishedPageBlockSnapshotSchema).superRefine(validateBlockSequence);
|
|
2955
|
-
const draftPageBlockSequenceSchema = z.array(pageBlockSnapshotSchema).superRefine(validateBlockSequence);
|
|
2956
|
-
const publishedPageDesignVersionDataV1Schema = z.object({
|
|
2957
|
-
schemaVersion: z.literal(1),
|
|
2958
|
-
stage: z.literal("published"),
|
|
2959
|
-
pageId: designPageIdSchema,
|
|
2960
|
-
blockSequence: publishedPageBlockSequenceSchema
|
|
2961
|
-
}).strict();
|
|
2962
|
-
const draftPageDesignVersionDataV1Schema = z.object({
|
|
2963
|
-
schemaVersion: z.literal(1),
|
|
2964
|
-
stage: z.literal("draft"),
|
|
2965
|
-
pageId: designPageIdSchema,
|
|
2966
|
-
blockSequence: draftPageBlockSequenceSchema
|
|
2967
|
-
}).strict();
|
|
2968
|
-
z.discriminatedUnion("stage", [publishedPageDesignVersionDataV1Schema, draftPageDesignVersionDataV1Schema]);
|
|
2969
|
-
z.discriminatedUnion("kind", [
|
|
2970
|
-
z.object({
|
|
2971
|
-
kind: z.literal("block"),
|
|
2972
|
-
blockId: designBlockIdSchema
|
|
2973
|
-
}).strict(),
|
|
2974
|
-
z.object({
|
|
2975
|
-
kind: z.literal("entry"),
|
|
2976
|
-
entryId: designEntryIdSchema
|
|
2977
|
-
}).strict(),
|
|
2978
|
-
z.object({
|
|
2979
|
-
kind: z.literal("page"),
|
|
2980
|
-
pageId: designPageIdSchema
|
|
2981
|
-
}).strict()
|
|
2982
|
-
]);
|
|
2983
|
-
function validateBlockSequence(snapshots, ctx) {
|
|
2984
|
-
for (const issue of collectBlockSequenceIssues(snapshots)) ctx.addIssue(issue);
|
|
2985
|
-
}
|
|
2986
|
-
function collectBlockSequenceIssues(snapshots) {
|
|
2987
|
-
const issues = [];
|
|
2988
|
-
const seenBlockIds = /* @__PURE__ */ new Set();
|
|
2989
|
-
const seenOrderIndexes = /* @__PURE__ */ new Set();
|
|
2990
|
-
let previousOrderIndex = null;
|
|
2991
|
-
snapshots.forEach((snapshot, index) => {
|
|
2992
|
-
if (seenBlockIds.has(snapshot.blockId)) issues.push({
|
|
2993
|
-
code: z.ZodIssueCode.custom,
|
|
2994
|
-
message: `Duplicate blockId in page design blockSequence: ${snapshot.blockId}`,
|
|
2995
|
-
path: [index, "blockId"]
|
|
2996
|
-
});
|
|
2997
|
-
seenBlockIds.add(snapshot.blockId);
|
|
2998
|
-
const orderIndex = snapshot.orderIndex;
|
|
2999
|
-
if (seenOrderIndexes.has(orderIndex)) issues.push({
|
|
3000
|
-
code: z.ZodIssueCode.custom,
|
|
3001
|
-
message: `Duplicate orderIndex in page design blockSequence: ${String(orderIndex)}`,
|
|
3002
|
-
path: [index, "orderIndex"]
|
|
3003
|
-
});
|
|
3004
|
-
seenOrderIndexes.add(orderIndex);
|
|
3005
|
-
if (previousOrderIndex !== null && orderIndex <= previousOrderIndex) issues.push({
|
|
3006
|
-
code: z.ZodIssueCode.custom,
|
|
3007
|
-
message: `Expected orderIndex greater than ${String(previousOrderIndex)} for blockSequence position ${String(index)}; received ${String(orderIndex)}.`,
|
|
3008
|
-
path: [index, "orderIndex"]
|
|
3009
|
-
});
|
|
3010
|
-
previousOrderIndex = orderIndex;
|
|
3011
|
-
});
|
|
3012
|
-
return issues;
|
|
3013
|
-
}
|
|
3014
|
-
//#endregion
|
|
3015
|
-
//#region ../theme-core/src/site-styles/tokenRecipes.ts
|
|
3016
|
-
const themeTokenRecipeOptions = {
|
|
3017
|
-
palette: [
|
|
3018
|
-
"brand-led",
|
|
3019
|
-
"warm-neutral",
|
|
3020
|
-
"high-contrast",
|
|
3021
|
-
"soft-natural"
|
|
3022
|
-
],
|
|
3023
|
-
contrast: [
|
|
3024
|
-
"standard",
|
|
3025
|
-
"strong",
|
|
3026
|
-
"maximum"
|
|
3027
|
-
],
|
|
3028
|
-
radius: [
|
|
3029
|
-
"square",
|
|
3030
|
-
"soft",
|
|
3031
|
-
"rounded",
|
|
3032
|
-
"pill"
|
|
3033
|
-
],
|
|
3034
|
-
shadow: [
|
|
3035
|
-
"none",
|
|
3036
|
-
"subtle",
|
|
3037
|
-
"layered"
|
|
3038
|
-
],
|
|
3039
|
-
typography: [
|
|
3040
|
-
"serif-editorial",
|
|
3041
|
-
"clean-sans",
|
|
3042
|
-
"classic-serif",
|
|
3043
|
-
"friendly-sans"
|
|
3044
|
-
],
|
|
3045
|
-
spacing: [
|
|
3046
|
-
"compact",
|
|
3047
|
-
"regular",
|
|
3048
|
-
"airy"
|
|
3049
|
-
],
|
|
3050
|
-
motion: [
|
|
3051
|
-
"none",
|
|
3052
|
-
"subtle",
|
|
3053
|
-
"expressive"
|
|
3054
|
-
]
|
|
3055
|
-
};
|
|
3056
|
-
z.object({
|
|
3057
|
-
palette: z.enum(themeTokenRecipeOptions.palette),
|
|
3058
|
-
contrast: z.enum(themeTokenRecipeOptions.contrast),
|
|
3059
|
-
radius: z.enum(themeTokenRecipeOptions.radius),
|
|
3060
|
-
shadow: z.enum(themeTokenRecipeOptions.shadow),
|
|
3061
|
-
typography: z.enum(themeTokenRecipeOptions.typography),
|
|
3062
|
-
spacing: z.enum(themeTokenRecipeOptions.spacing),
|
|
3063
|
-
motion: z.enum(themeTokenRecipeOptions.motion)
|
|
3064
|
-
});
|
|
3065
|
-
z.number().int().nonnegative().brand();
|
|
3066
|
-
z.discriminatedUnion("kind", [
|
|
3067
|
-
z.object({
|
|
3068
|
-
kind: z.literal("legacy"),
|
|
3069
|
-
pauseAnnouncedAt: z.string().datetime({ offset: true }).optional()
|
|
3070
|
-
}).strict(),
|
|
3071
|
-
z.object({
|
|
3072
|
-
kind: z.literal("paused"),
|
|
3073
|
-
authority: z.enum(["legacy", "document"]),
|
|
3074
|
-
checkpointId: z.string().uuid(),
|
|
3075
|
-
pausedAt: z.string().datetime({ offset: true })
|
|
3076
|
-
}).strict(),
|
|
3077
|
-
z.object({
|
|
3078
|
-
kind: z.literal("document"),
|
|
3079
|
-
checkpointId: z.string().uuid(),
|
|
3080
|
-
activatedAt: z.string().datetime({ offset: true })
|
|
3081
|
-
}).strict()
|
|
3082
|
-
]);
|
|
3083
|
-
//#endregion
|
|
3084
|
-
//#region ../theme-core/src/site-styles/pageDesignVersionIntent.ts
|
|
3085
|
-
function taggedStyledIntent(intent) {
|
|
3086
|
-
const { siteStyleId, ...decisions } = intent;
|
|
3087
|
-
return {
|
|
3088
|
-
kind: "legacy-styled",
|
|
3089
|
-
siteStyleId,
|
|
3090
|
-
decisions
|
|
3091
|
-
};
|
|
3092
|
-
}
|
|
3093
|
-
z.union([
|
|
3094
|
-
z.nullish(z.never()).transform(() => ({ kind: "automatic" })),
|
|
3095
|
-
pageDesignDecisionsV2Schema.transform((decisions) => ({
|
|
3096
|
-
kind: "decisions",
|
|
3097
|
-
decisions
|
|
3098
|
-
})),
|
|
3099
|
-
pageDesignIntentV2Schema.transform(taggedStyledIntent),
|
|
3100
|
-
pageDesignIntentV1Schema.transform((intent) => taggedStyledIntent(normalizeLegacyPageDesignIntent(intent)))
|
|
3101
|
-
], { error: (issue) => {
|
|
3102
|
-
const value = issue.input;
|
|
3103
|
-
return typeof value === "object" && value !== null && "schemaVersion" in value && value.schemaVersion !== 1 && value.schemaVersion !== 2 ? "Unsupported Theme V2 page design intent schemaVersion." : "Invalid Theme V2 page design intent shape.";
|
|
3104
|
-
} });
|
|
3105
|
-
//#endregion
|
|
3106
2457
|
//#region ../blocks/src/system/manifest/augmentManifest.ts
|
|
3107
2458
|
/**
|
|
3108
2459
|
* Augments a block manifest with synthetic fields and other transformations.
|
|
@@ -3132,11 +2483,12 @@ function createVariantField(manifest) {
|
|
|
3132
2483
|
if (!manifest.variants || Object.keys(manifest.variants).length <= 1) return null;
|
|
3133
2484
|
if (manifest.fields?.some((f) => f.id === "variant")) return null;
|
|
3134
2485
|
const variantKeys = Object.keys(manifest.variants).filter((key) => !manifest.variantMeaning.lookOnlyKeys?.includes(key));
|
|
2486
|
+
if (variantKeys.length === 0) return null;
|
|
3135
2487
|
return {
|
|
3136
2488
|
id: "variant",
|
|
3137
2489
|
type: "select",
|
|
3138
|
-
label: "Variant",
|
|
3139
|
-
description: "Choose how this block is laid out.",
|
|
2490
|
+
label: manifest.variantMeaning.kind === "arrangement" ? "Layout" : "Variant",
|
|
2491
|
+
...manifest.variantMeaning.kind === "arrangement" ? {} : { description: "Choose how this block is laid out." },
|
|
3140
2492
|
ui: { intent: "display" },
|
|
3141
2493
|
required: false,
|
|
3142
2494
|
defaultValue: manifest.defaultVariant ?? variantKeys[0],
|
|
@@ -3996,7 +3348,7 @@ const uiSchema = z.object({
|
|
|
3996
3348
|
"behavior",
|
|
3997
3349
|
"style"
|
|
3998
3350
|
]).optional(),
|
|
3999
|
-
valueContract: z.enum(["boxBackground"]).optional()
|
|
3351
|
+
valueContract: z.enum(["boxBackground", "location"]).optional()
|
|
4000
3352
|
}).partial().superRefine((ui, ctx) => {
|
|
4001
3353
|
if (ui.layoutGridColumns !== void 0 && ui.layoutGridColumnsFields !== void 0) ctx.addIssue({
|
|
4002
3354
|
code: "custom",
|
|
@@ -7831,6 +7183,20 @@ function resolveFooterRootForeground(footer, palette, proseHoverCandidate) {
|
|
|
7831
7183
|
}, palette, footerForegroundCandidates(footer, proseHoverCandidate), { compositeBase: "background" });
|
|
7832
7184
|
}
|
|
7833
7185
|
function resolveSurfaceForegroundStyles(value, context, options) {
|
|
7186
|
+
const resolved = cachedSectionSurface(value, context, options);
|
|
7187
|
+
const foreground = resolved.foreground;
|
|
7188
|
+
if (foreground.kind === "unknown") return { ...resolved.buttonStyles };
|
|
7189
|
+
return {
|
|
7190
|
+
...arrangementSurfaceInk(foreground, context),
|
|
7191
|
+
...resolved.buttonStyles,
|
|
7192
|
+
...surfaceForegroundStyle(surfaceForegroundInputFromResolved(foreground, (token) => resolveBackgroundColorValue(token, context)))
|
|
7193
|
+
};
|
|
7194
|
+
}
|
|
7195
|
+
/** The section ground's resolved foreground, for decorations drawn on that ground (maps). */
|
|
7196
|
+
function resolveSectionSurfaceForeground(value, context, options) {
|
|
7197
|
+
return cachedSectionSurface(value, context, options).foreground;
|
|
7198
|
+
}
|
|
7199
|
+
function cachedSectionSurface(value, context, options) {
|
|
7834
7200
|
const key = JSON.stringify([
|
|
7835
7201
|
value,
|
|
7836
7202
|
context.proseHoverCandidate,
|
|
@@ -7841,13 +7207,7 @@ function resolveSurfaceForegroundStyles(value, context, options) {
|
|
|
7841
7207
|
if (!sectionSurfaceCache.has(context.theme)) sectionSurfaceCache.set(context.theme, cache);
|
|
7842
7208
|
const resolved = cache.get(key) ?? resolveRuntimeSectionSurface(value, context, options);
|
|
7843
7209
|
cache.set(key, resolved);
|
|
7844
|
-
|
|
7845
|
-
if (foreground.kind === "unknown") return { ...resolved.buttonStyles };
|
|
7846
|
-
return {
|
|
7847
|
-
...arrangementSurfaceInk(foreground, context),
|
|
7848
|
-
...resolved.buttonStyles,
|
|
7849
|
-
...surfaceForegroundStyle(surfaceForegroundInputFromResolved(foreground, (token) => resolveBackgroundColorValue(token, context)))
|
|
7850
|
-
};
|
|
7210
|
+
return resolved;
|
|
7851
7211
|
}
|
|
7852
7212
|
/** Cache only the owner's result; no foreground or button rules live here. */
|
|
7853
7213
|
function resolveRuntimeSectionSurface(value, context, options) {
|
|
@@ -9110,7 +8470,7 @@ const heroCopyFragment = defineFragment({
|
|
|
9110
8470
|
{
|
|
9111
8471
|
id: "eyebrow",
|
|
9112
8472
|
type: "text",
|
|
9113
|
-
label: "
|
|
8473
|
+
label: "Small heading above the title",
|
|
9114
8474
|
description: "Optional short line above the headline",
|
|
9115
8475
|
visibleRoles: ["designer", "admin"]
|
|
9116
8476
|
},
|
|
@@ -9307,7 +8667,7 @@ function createButtonGroup(options = {}) {
|
|
|
9307
8667
|
//#endregion
|
|
9308
8668
|
//#region ../blocks/src/system/fields/ctas.ts
|
|
9309
8669
|
function createCtasRepeater(options = {}) {
|
|
9310
|
-
const { id = "ctas", label = "
|
|
8670
|
+
const { id = "ctas", label = "Buttons", itemLabel = "Button", minItems = 0, maxItems, button, defaultValue } = options;
|
|
9311
8671
|
const fieldId = id;
|
|
9312
8672
|
const buttonField = createButtonGroup({
|
|
9313
8673
|
showGroupLabel: false,
|
|
@@ -9336,8 +8696,8 @@ const ctaRowFragment = defineFragment({
|
|
|
9336
8696
|
title: "CTA Row",
|
|
9337
8697
|
description: "Repeatable calls to action rendered inline.",
|
|
9338
8698
|
fields: [createCtasRepeater({
|
|
9339
|
-
label: "
|
|
9340
|
-
itemLabel: "
|
|
8699
|
+
label: "Buttons",
|
|
8700
|
+
itemLabel: "Button",
|
|
9341
8701
|
maxItems: 3
|
|
9342
8702
|
})],
|
|
9343
8703
|
layout: [ctaRow({
|
|
@@ -9350,8 +8710,8 @@ const ctaRowFragment = defineFragment({
|
|
|
9350
8710
|
//#endregion
|
|
9351
8711
|
//#region ../blocks/src/system/fragments/library/heroCtaRow.ts
|
|
9352
8712
|
const heroCtaFields = [createCtasRepeater({
|
|
9353
|
-
label: "
|
|
9354
|
-
itemLabel: "
|
|
8713
|
+
label: "Buttons",
|
|
8714
|
+
itemLabel: "Button",
|
|
9355
8715
|
maxItems: 3,
|
|
9356
8716
|
defaultValue: [],
|
|
9357
8717
|
button: {
|
|
@@ -9417,7 +8777,7 @@ const ctaCopyFragment = defineFragment({
|
|
|
9417
8777
|
{
|
|
9418
8778
|
id: "eyebrow",
|
|
9419
8779
|
type: "text",
|
|
9420
|
-
label: "
|
|
8780
|
+
label: "Small heading above the title",
|
|
9421
8781
|
description: "Optional short line above the title",
|
|
9422
8782
|
visibleRoles: ["designer", "admin"]
|
|
9423
8783
|
},
|
|
@@ -10226,7 +9586,7 @@ const faqHeadingFragment = defineFragment({
|
|
|
10226
9586
|
{
|
|
10227
9587
|
id: "eyebrow",
|
|
10228
9588
|
type: "text",
|
|
10229
|
-
label: "
|
|
9589
|
+
label: "Small heading above the title",
|
|
10230
9590
|
description: "Short label displayed above the title.",
|
|
10231
9591
|
visibleRoles: ["designer", "admin"],
|
|
10232
9592
|
maxLength: 60
|
|
@@ -11658,6 +11018,11 @@ const heroBlockDefinition = { manifest: createBlockManifest({
|
|
|
11658
11018
|
]
|
|
11659
11019
|
},
|
|
11660
11020
|
defaultVariant: "classic",
|
|
11021
|
+
variantOptions: {
|
|
11022
|
+
micro: { label: "Compact" },
|
|
11023
|
+
split: { label: "Split, photo on the left" },
|
|
11024
|
+
splitReverse: { label: "Split, photo on the right" }
|
|
11025
|
+
},
|
|
11661
11026
|
description: "A big opening headline, with a short line underneath and buttons.",
|
|
11662
11027
|
tags: [
|
|
11663
11028
|
"header",
|
|
@@ -12092,8 +11457,8 @@ const introBlockDefinition = { manifest: createBlockManifest({
|
|
|
12092
11457
|
}
|
|
12093
11458
|
}),
|
|
12094
11459
|
createCtasRepeater({
|
|
12095
|
-
label: "
|
|
12096
|
-
itemLabel: "
|
|
11460
|
+
label: "Buttons",
|
|
11461
|
+
itemLabel: "Button",
|
|
12097
11462
|
maxItems: 2
|
|
12098
11463
|
})
|
|
12099
11464
|
],
|
|
@@ -12675,6 +12040,17 @@ function resolvedItemSurfaceProps(surface, slot, style = void 0) {
|
|
|
12675
12040
|
}
|
|
12676
12041
|
};
|
|
12677
12042
|
}
|
|
12043
|
+
const resolvedSurfaceSchema = z.unknown().transform((value, context) => {
|
|
12044
|
+
try {
|
|
12045
|
+
return parseResolvedSurface(value);
|
|
12046
|
+
} catch {
|
|
12047
|
+
context.addIssue({
|
|
12048
|
+
code: "custom",
|
|
12049
|
+
message: "Invalid surface inputs"
|
|
12050
|
+
});
|
|
12051
|
+
return z.NEVER;
|
|
12052
|
+
}
|
|
12053
|
+
});
|
|
12678
12054
|
const lookListPresentationSchemaShape = {
|
|
12679
12055
|
sectionAction: z.object({
|
|
12680
12056
|
label: z.string(),
|
|
@@ -12718,10 +12094,10 @@ const lookListPresentationSchemaShape = {
|
|
|
12718
12094
|
"card",
|
|
12719
12095
|
"statement",
|
|
12720
12096
|
"highlight"
|
|
12721
|
-
]),
|
|
12097
|
+
]), resolvedSurfaceSchema).optional(),
|
|
12722
12098
|
panelHeading: z.string().optional(),
|
|
12723
12099
|
lookSlots: z.partialRecord(z.enum(arrangementSlotNames), z.enum(arrangementSlotNames)).optional(),
|
|
12724
|
-
itemSurfaces: z.record(z.string(),
|
|
12100
|
+
itemSurfaces: z.record(z.string(), resolvedSurfaceSchema).optional()
|
|
12725
12101
|
};
|
|
12726
12102
|
function listLookSlot(presentation, slot) {
|
|
12727
12103
|
const name = presentation.lookSlots?.[slot];
|
|
@@ -15593,7 +14969,7 @@ const testimonialsBlockDefinition = {
|
|
|
15593
14969
|
},
|
|
15594
14970
|
promotedFields: ["maxEntries"],
|
|
15595
14971
|
title: "Testimonials",
|
|
15596
|
-
category: "
|
|
14972
|
+
category: "people",
|
|
15597
14973
|
contentSource: { kind: "inline" },
|
|
15598
14974
|
includeContainerStyles: true,
|
|
15599
14975
|
layout: carouselLayout$1,
|
|
@@ -16470,7 +15846,7 @@ const featureCardsBlockDefinition = { manifest: createBlockManifest({
|
|
|
16470
15846
|
{
|
|
16471
15847
|
id: "eyebrow",
|
|
16472
15848
|
type: "text",
|
|
16473
|
-
label: "
|
|
15849
|
+
label: "Small heading above the title",
|
|
16474
15850
|
required: false,
|
|
16475
15851
|
multiline: false,
|
|
16476
15852
|
maxLength: 80
|
|
@@ -16568,8 +15944,8 @@ const featureCardsBlockDefinition = { manifest: createBlockManifest({
|
|
|
16568
15944
|
ui: { richTextVariant: "limited" }
|
|
16569
15945
|
},
|
|
16570
15946
|
createCtasRepeater({
|
|
16571
|
-
label: "
|
|
16572
|
-
itemLabel: "
|
|
15947
|
+
label: "Buttons",
|
|
15948
|
+
itemLabel: "Button",
|
|
16573
15949
|
maxItems: 1,
|
|
16574
15950
|
button: { defaultVariant: "ghost" }
|
|
16575
15951
|
})
|
|
@@ -16844,7 +16220,7 @@ const textCardStylesField = (() => {
|
|
|
16844
16220
|
const mediaTextBlockDefinition = { manifest: createBlockManifest({
|
|
16845
16221
|
id: "block.media-text",
|
|
16846
16222
|
title: "Media and text",
|
|
16847
|
-
category: "
|
|
16223
|
+
category: "text-and-images",
|
|
16848
16224
|
contentSource: { kind: "inline" },
|
|
16849
16225
|
includeContainerStyles: true,
|
|
16850
16226
|
titleSource: "title",
|
|
@@ -16882,7 +16258,7 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
|
|
|
16882
16258
|
{
|
|
16883
16259
|
id: "eyebrow",
|
|
16884
16260
|
type: "text",
|
|
16885
|
-
label: "
|
|
16261
|
+
label: "Small heading above the title",
|
|
16886
16262
|
description: "Optional short label above the title",
|
|
16887
16263
|
required: false,
|
|
16888
16264
|
multiline: false,
|
|
@@ -17848,6 +17224,7 @@ const publicEventDestinationSchema = z.discriminatedUnion("kind", [z.object({
|
|
|
17848
17224
|
* Zod schema for venue data
|
|
17849
17225
|
*/
|
|
17850
17226
|
const eventVenueSchema = z.object({
|
|
17227
|
+
drawing: z.lazy(() => mapDrawingSchema).optional().catch(void 0),
|
|
17851
17228
|
id: z.string(),
|
|
17852
17229
|
name: z.string(),
|
|
17853
17230
|
address: z.string().nullable(),
|
|
@@ -21165,6 +20542,16 @@ const eventRegistrationBlockDefinition = {
|
|
|
21165
20542
|
}
|
|
21166
20543
|
};
|
|
21167
20544
|
//#endregion
|
|
20545
|
+
//#region ../blocks/src/system/node/fragments/mapDrawingStyle.ts
|
|
20546
|
+
/** Shared map token binding for the current section ground and site style. */
|
|
20547
|
+
const mapDrawingStyleBinding = { $bind: {
|
|
20548
|
+
from: "content._sectionStyles.background",
|
|
20549
|
+
transforms: [{
|
|
20550
|
+
id: "mapDrawing.resolveStyle",
|
|
20551
|
+
options: { fallbackToken: "background" }
|
|
20552
|
+
}]
|
|
20553
|
+
} };
|
|
20554
|
+
//#endregion
|
|
21168
20555
|
//#region ../blocks/src/contracts/events.ts
|
|
21169
20556
|
const eventAutoApplyDiscountPreviewBaseSchema = z.object({
|
|
21170
20557
|
id: z.string(),
|
|
@@ -21331,7 +20718,7 @@ const eventDetailsBlockDefinition = {
|
|
|
21331
20718
|
layout: [styledSection({
|
|
21332
20719
|
baseClass: "",
|
|
21333
20720
|
spacing: "spacious",
|
|
21334
|
-
children: sectionContainer([text({ as: "h2" }, bind("content.heading"), when("content.heading")), el("event-details", withApiBindings({
|
|
20721
|
+
children: sectionContainer([text({ as: "h2" }, bind("content.heading"), when("content.heading")), el("div", { style: mapDrawingStyleBinding }, [el("event-details", withApiBindings({
|
|
21335
20722
|
entryTitle: { $bind: {
|
|
21336
20723
|
from: "$root.contentEntry.title",
|
|
21337
20724
|
fallback: null
|
|
@@ -21381,7 +20768,7 @@ const eventDetailsBlockDefinition = {
|
|
|
21381
20768
|
from: "data.eventDetailsData.autoApplyDiscount",
|
|
21382
20769
|
fallback: null
|
|
21383
20770
|
} }
|
|
21384
|
-
}, { includeApiBaseUrl: false }))], { gap: "lg" })
|
|
20771
|
+
}, { includeApiBaseUrl: false }))])], { gap: "lg" })
|
|
21385
20772
|
})]
|
|
21386
20773
|
}),
|
|
21387
20774
|
dataSchemas: {
|
|
@@ -22627,14 +22014,21 @@ function resolveTargetAspectRatio(size) {
|
|
|
22627
22014
|
if ("original" in size) return void 0;
|
|
22628
22015
|
if ("width" in size && "height" in size && typeof size.width === "number" && typeof size.height === "number") return size.width / size.height;
|
|
22629
22016
|
}
|
|
22017
|
+
/**
|
|
22018
|
+
* The editor's "Add a photo" sits on the section's ground, so it takes the ground's rule colour where
|
|
22019
|
+
* the surface publishes one (light on light grounds, dark on dark) and reads in the ground's text ink.
|
|
22020
|
+
* A fixed light surface under ground-following muted text vanished on dark sections. Published
|
|
22021
|
+
* "Image unavailable" keeps its existing styling.
|
|
22022
|
+
*/
|
|
22023
|
+
const AUTHORING_PLACEHOLDER_GROUND = { backgroundColor: "var(--rb-surface-line-color, rgb(var(--tb-surface)))" };
|
|
22630
22024
|
function MediaPlaceholder({ className, style, fieldPath, authoring }) {
|
|
22631
22025
|
return /* @__PURE__ */ jsx("div", {
|
|
22632
22026
|
"data-placeholder-field": authoring ? fieldPath : void 0,
|
|
22633
22027
|
className: clsx("rb-flex rb-h-48 rb-w-full rb-items-center rb-justify-center", className),
|
|
22634
|
-
style: mergeStyles(backgroundColorStyle("surface"), style),
|
|
22028
|
+
style: mergeStyles(authoring ? AUTHORING_PLACEHOLDER_GROUND : backgroundColorStyle("surface"), style),
|
|
22635
22029
|
children: /* @__PURE__ */ jsx("span", {
|
|
22636
22030
|
className: "rb-caption",
|
|
22637
|
-
style: textColorStyle("mutedText"),
|
|
22031
|
+
style: textColorStyle(authoring ? "text" : "mutedText"),
|
|
22638
22032
|
children: authoring ? "Add a photo" : "Image unavailable"
|
|
22639
22033
|
})
|
|
22640
22034
|
});
|
|
@@ -24099,7 +23493,7 @@ const eventListingBlockDefinition = {
|
|
|
24099
23493
|
children: styledContainer({
|
|
24100
23494
|
rootType: "stack",
|
|
24101
23495
|
rootProps: { gap: "lg" },
|
|
24102
|
-
children: [...sectionHeaderLayoutNodes(), el("event-listing", withApiBindings({
|
|
23496
|
+
children: [...sectionHeaderLayoutNodes(), el("div", { style: mapDrawingStyleBinding }, [el("event-listing", withApiBindings({
|
|
24103
23497
|
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
24104
23498
|
events: { $bind: { from: "data.events" } },
|
|
24105
23499
|
stage: { $bind: {
|
|
@@ -24156,7 +23550,7 @@ const eventListingBlockDefinition = {
|
|
|
24156
23550
|
fallback: "any"
|
|
24157
23551
|
} },
|
|
24158
23552
|
emptyMessage: { $bind: { from: "content.emptyMessage" } }
|
|
24159
|
-
}))]
|
|
23553
|
+
}))])]
|
|
24160
23554
|
}),
|
|
24161
23555
|
baseClass: "",
|
|
24162
23556
|
spacing: "comfortable"
|
|
@@ -25049,7 +24443,7 @@ const eventCalendarAdditionalFields = [
|
|
|
25049
24443
|
{
|
|
25050
24444
|
id: "eyebrow",
|
|
25051
24445
|
type: "text",
|
|
25052
|
-
label: "
|
|
24446
|
+
label: "Small heading above the title",
|
|
25053
24447
|
required: false,
|
|
25054
24448
|
multiline: false,
|
|
25055
24449
|
maxLength: 80
|
|
@@ -25843,6 +25237,8 @@ const generatedEventCalendarManifest = createBlockManifestWithContentShape({
|
|
|
25843
25237
|
promotedFields: [
|
|
25844
25238
|
"variant",
|
|
25845
25239
|
"listBy",
|
|
25240
|
+
"calendarTabViews",
|
|
25241
|
+
"defaultCalendarView",
|
|
25846
25242
|
"eventSurface",
|
|
25847
25243
|
"filterEventPresets",
|
|
25848
25244
|
"scheduleScope",
|
|
@@ -26002,7 +25398,7 @@ const recurringScheduleBlockDefinition = {
|
|
|
26002
25398
|
{
|
|
26003
25399
|
id: "eyebrow",
|
|
26004
25400
|
type: "text",
|
|
26005
|
-
label: "
|
|
25401
|
+
label: "Small heading above the title",
|
|
26006
25402
|
required: false,
|
|
26007
25403
|
maxLength: 80
|
|
26008
25404
|
},
|
|
@@ -26969,6 +26365,7 @@ const imageGalleryFields = parseFieldDefinitions([
|
|
|
26969
26365
|
minItems: 0,
|
|
26970
26366
|
maxItems: 24,
|
|
26971
26367
|
ui: {
|
|
26368
|
+
intent: "behavior",
|
|
26972
26369
|
repeaterPreset: "thumbnailGrid",
|
|
26973
26370
|
thumbnailField: "image",
|
|
26974
26371
|
thumbnailAltField: "caption",
|
|
@@ -27758,7 +27155,7 @@ const imageGalleryBlockDefinition = {
|
|
|
27758
27155
|
icon: "Columns"
|
|
27759
27156
|
},
|
|
27760
27157
|
marquee: {
|
|
27761
|
-
label: "
|
|
27158
|
+
label: "Scrolling strip",
|
|
27762
27159
|
description: "Infinite horizontal scrolling gallery",
|
|
27763
27160
|
icon: "Repeat"
|
|
27764
27161
|
}
|
|
@@ -27874,6 +27271,7 @@ const videoGridLayout = section({
|
|
|
27874
27271
|
const videoGridBlockDefinition = { manifest: createBlockManifest({
|
|
27875
27272
|
variantMeaning: { kind: "arrangement" },
|
|
27876
27273
|
id: "block.video-grid",
|
|
27274
|
+
promotedFields: ["videos"],
|
|
27877
27275
|
title: "Video grid",
|
|
27878
27276
|
category: "photos",
|
|
27879
27277
|
contentSource: { kind: "inline" },
|
|
@@ -27958,6 +27356,7 @@ const videoGridBlockDefinition = { manifest: createBlockManifest({
|
|
|
27958
27356
|
type: "repeater",
|
|
27959
27357
|
label: "Videos",
|
|
27960
27358
|
itemLabel: "Video",
|
|
27359
|
+
ui: { intent: "behavior" },
|
|
27961
27360
|
minItems: 0,
|
|
27962
27361
|
maxItems: 12,
|
|
27963
27362
|
schema: { fields: [
|
|
@@ -28160,7 +27559,7 @@ const fileDownloadBlockDefinition = { manifest: createBlockManifest({
|
|
|
28160
27559
|
id: "block.file-download",
|
|
28161
27560
|
title: "File download",
|
|
28162
27561
|
titleSource: ["title", "file.filename"],
|
|
28163
|
-
category: "
|
|
27562
|
+
category: "text-and-images",
|
|
28164
27563
|
contentSource: { kind: "inline" },
|
|
28165
27564
|
description: "A link visitors can use to download a file, such as a PDF.",
|
|
28166
27565
|
tags: [
|
|
@@ -29344,7 +28743,7 @@ const shopBlockDefinition = {
|
|
|
29344
28743
|
animation: false,
|
|
29345
28744
|
paletteHidden: false
|
|
29346
28745
|
},
|
|
29347
|
-
category: "
|
|
28746
|
+
category: "shop",
|
|
29348
28747
|
contentSource: { kind: "entries" },
|
|
29349
28748
|
tags: [
|
|
29350
28749
|
"shop",
|
|
@@ -31121,14 +30520,6 @@ function normalizeNumber(value, fallback) {
|
|
|
31121
30520
|
}
|
|
31122
30521
|
return fallback;
|
|
31123
30522
|
}
|
|
31124
|
-
function normalizeOptionalNumber(value) {
|
|
31125
|
-
if (typeof value === "number" && Number.isFinite(value)) return value;
|
|
31126
|
-
if (typeof value === "string") {
|
|
31127
|
-
const parsed = Number.parseFloat(value);
|
|
31128
|
-
if (Number.isFinite(parsed)) return parsed;
|
|
31129
|
-
}
|
|
31130
|
-
return null;
|
|
31131
|
-
}
|
|
31132
30523
|
function normalizeBoolean(value, fallback) {
|
|
31133
30524
|
if (typeof value === "boolean") return value;
|
|
31134
30525
|
if (typeof value === "string") {
|
|
@@ -31137,18 +30528,18 @@ function normalizeBoolean(value, fallback) {
|
|
|
31137
30528
|
}
|
|
31138
30529
|
return fallback;
|
|
31139
30530
|
}
|
|
31140
|
-
function
|
|
31141
|
-
const normalized = {
|
|
31142
|
-
addressText: normalizeLocationAddressText(typeof record.addressText === "string" ? record.addressText : typeof record.displayAddress === "string" ? record.displayAddress : null),
|
|
31143
|
-
lat: normalizeOptionalNumber(record.lat),
|
|
31144
|
-
lng: normalizeOptionalNumber(record.lng)
|
|
31145
|
-
};
|
|
31146
|
-
if (normalized.addressText === null && normalized.lat === null && normalized.lng === null) return null;
|
|
31147
|
-
return normalized;
|
|
31148
|
-
}
|
|
31149
|
-
function normalizeLocationMapValue(value) {
|
|
30531
|
+
function normalizeLocationMapValue(value, siteCountry) {
|
|
31150
30532
|
if (typeof value !== "object" || value === null) return null;
|
|
31151
|
-
|
|
30533
|
+
const projected = readLocationMapProjection(value, siteCountry);
|
|
30534
|
+
return projected === null ? null : {
|
|
30535
|
+
addressText: projected.displayAddress,
|
|
30536
|
+
...projected.pin ?? {
|
|
30537
|
+
lat: null,
|
|
30538
|
+
lng: null
|
|
30539
|
+
},
|
|
30540
|
+
drawing: projected.drawing,
|
|
30541
|
+
doorNote: projected.doorNote
|
|
30542
|
+
};
|
|
31152
30543
|
}
|
|
31153
30544
|
function normalizeLocationMapSource(value) {
|
|
31154
30545
|
return value === "business_address" || value === "venue" ? value : "custom";
|
|
@@ -31156,7 +30547,7 @@ function normalizeLocationMapSource(value) {
|
|
|
31156
30547
|
function resolveLocationMapLocation(input) {
|
|
31157
30548
|
const source = normalizeLocationMapSource(input.locationSource);
|
|
31158
30549
|
if (source === "business_address") {
|
|
31159
|
-
const locationValue = normalizeLocationMapValue(input.businessAddress
|
|
30550
|
+
const locationValue = normalizeLocationMapValue(input.businessAddress, input.siteCountry);
|
|
31160
30551
|
return locationValue ? {
|
|
31161
30552
|
kind: "business_address",
|
|
31162
30553
|
locationValue
|
|
@@ -31173,7 +30564,7 @@ function resolveLocationMapLocation(input) {
|
|
|
31173
30564
|
source,
|
|
31174
30565
|
reason: "missing_venue_id"
|
|
31175
30566
|
};
|
|
31176
|
-
const locationValue = input.venuesById ? normalizeLocationMapValue(input.venuesById[venueId] ?? null) : null;
|
|
30567
|
+
const locationValue = input.venuesById ? normalizeLocationMapValue(input.venuesById[venueId] ?? null, input.siteCountry) : null;
|
|
31177
30568
|
return locationValue ? {
|
|
31178
30569
|
kind: "venue",
|
|
31179
30570
|
venueId,
|
|
@@ -31184,7 +30575,7 @@ function resolveLocationMapLocation(input) {
|
|
|
31184
30575
|
reason: "missing_venue_location"
|
|
31185
30576
|
};
|
|
31186
30577
|
}
|
|
31187
|
-
const locationValue = normalizeLocationMapValue(input.location);
|
|
30578
|
+
const locationValue = normalizeLocationMapValue(input.location, input.siteCountry);
|
|
31188
30579
|
return locationValue ? {
|
|
31189
30580
|
kind: "custom",
|
|
31190
30581
|
locationValue
|
|
@@ -31209,11 +30600,12 @@ function normalizeLocationMapProps(input) {
|
|
|
31209
30600
|
const locationValue = resolvedLocation.kind === "unresolved" ? null : resolvedLocation.locationValue;
|
|
31210
30601
|
const directionsLabel = normalizeLocationAddressText(input.directionsLabel) ?? LOCATION_MAP_DEFAULTS.directionsLabel;
|
|
31211
30602
|
return {
|
|
30603
|
+
...locationMapDetails(locationValue),
|
|
30604
|
+
wider: input.wider === true,
|
|
30605
|
+
googleMapsLabel: normalizedGoogleMapsLabel(input.googleMapsLabel),
|
|
31212
30606
|
resolvedLocation,
|
|
31213
30607
|
locationValue,
|
|
31214
30608
|
unresolvedMessage: describeUnresolvedLocationMapLocation(resolvedLocation),
|
|
31215
|
-
addressText: locationValue?.addressText ?? null,
|
|
31216
|
-
location: toLocationCoordinates(locationValue),
|
|
31217
30609
|
zoom: Math.min(LOCATION_MAP_LIMITS.zoom.max, Math.max(LOCATION_MAP_LIMITS.zoom.min, Math.round(normalizeNumber(input.zoom, LOCATION_MAP_DEFAULTS.zoom)))),
|
|
31218
30610
|
heightPx: Math.min(LOCATION_MAP_LIMITS.heightPx.max, Math.max(LOCATION_MAP_LIMITS.heightPx.min, Math.round(normalizeNumber(input.heightPx, LOCATION_MAP_DEFAULTS.heightPx)))),
|
|
31219
30611
|
openingHours: parsedHours.ok ? parsedHours.value : null,
|
|
@@ -31224,27 +30616,23 @@ function normalizeLocationMapProps(input) {
|
|
|
31224
30616
|
className: typeof input.className === "string" ? input.className : null
|
|
31225
30617
|
};
|
|
31226
30618
|
}
|
|
31227
|
-
|
|
31228
|
-
|
|
30619
|
+
/** All render-ready permitted details come from the same resolved source value. */
|
|
30620
|
+
function locationMapDetails(value) {
|
|
31229
30621
|
return {
|
|
31230
|
-
|
|
31231
|
-
|
|
31232
|
-
|
|
31233
|
-
|
|
31234
|
-
showOpeningHours: normalized.showOpeningHours,
|
|
31235
|
-
showAddressText: normalized.showAddressText,
|
|
31236
|
-
showDirections: normalized.showDirections,
|
|
31237
|
-
directionsLabel: normalized.directionsLabel,
|
|
31238
|
-
className: normalized.className
|
|
30622
|
+
drawing: value?.drawing ?? null,
|
|
30623
|
+
doorNote: value?.doorNote ?? null,
|
|
30624
|
+
addressText: value?.addressText ?? null,
|
|
30625
|
+
location: toLocationCoordinates(value)
|
|
31239
30626
|
};
|
|
31240
30627
|
}
|
|
31241
|
-
function
|
|
31242
|
-
|
|
31243
|
-
|
|
31244
|
-
|
|
31245
|
-
|
|
31246
|
-
|
|
31247
|
-
|
|
30628
|
+
function normalizedGoogleMapsLabel(value) {
|
|
30629
|
+
return normalizeLocationAddressText(value) ?? "Open in Google Maps";
|
|
30630
|
+
}
|
|
30631
|
+
function readLocationMapProjection(value, siteCountry) {
|
|
30632
|
+
const canonical = parseLocationValue(value);
|
|
30633
|
+
if (canonical.ok && canonical.value !== null) return projectPublicLocation(canonical.value, siteCountry);
|
|
30634
|
+
const projected = publicLocationSchema.safeParse(value);
|
|
30635
|
+
return projected.success ? projected.data : null;
|
|
31248
30636
|
}
|
|
31249
30637
|
//#endregion
|
|
31250
30638
|
//#region ../blocks/src/system/blocks/location-map.ts
|
|
@@ -31263,9 +30651,11 @@ function normalizeLocationMapContent(content) {
|
|
|
31263
30651
|
const locationSource = normalizeLocationMapSource(record.locationSource);
|
|
31264
30652
|
const venueId = typeof record.venueId === "string" && record.venueId.trim() ? record.venueId.trim() : null;
|
|
31265
30653
|
return {
|
|
30654
|
+
wider: record.wider === true,
|
|
30655
|
+
googleMapsLabel: typeof record.googleMapsLabel === "string" ? record.googleMapsLabel : "Open in Google Maps",
|
|
31266
30656
|
heading: typeof record.heading === "string" ? record.heading : void 0,
|
|
31267
30657
|
locationSource,
|
|
31268
|
-
...authoredLocationMapSourceFields(locationSource, venueId,
|
|
30658
|
+
...authoredLocationMapSourceFields(locationSource, venueId, locationSource === "custom" ? parseAuthoredLocation(record.location) : null),
|
|
31269
30659
|
showOpeningHours: record.showOpeningHours !== false,
|
|
31270
30660
|
showAddressText: normalized.showAddressText,
|
|
31271
30661
|
showDirections: normalized.showDirections,
|
|
@@ -31291,9 +30681,91 @@ function authoredLocationMapSourceFields(source, venueId, location) {
|
|
|
31291
30681
|
};
|
|
31292
30682
|
}
|
|
31293
30683
|
}
|
|
30684
|
+
const locationMapNodeProps = {
|
|
30685
|
+
mapStyle: mapDrawingStyleBinding,
|
|
30686
|
+
siteCountry: { $bind: {
|
|
30687
|
+
from: "$root.site.siteCountry",
|
|
30688
|
+
fallback: null
|
|
30689
|
+
} },
|
|
30690
|
+
openingHours: { $bind: {
|
|
30691
|
+
from: "$root.openingHours",
|
|
30692
|
+
fallback: null
|
|
30693
|
+
} },
|
|
30694
|
+
showOpeningHours: { $bind: {
|
|
30695
|
+
from: "content.showOpeningHours",
|
|
30696
|
+
fallback: true
|
|
30697
|
+
} },
|
|
30698
|
+
location: { $bind: {
|
|
30699
|
+
from: "content.location",
|
|
30700
|
+
fallback: null
|
|
30701
|
+
} },
|
|
30702
|
+
businessAddress: { $bind: {
|
|
30703
|
+
from: "$root.site.businessAddress",
|
|
30704
|
+
fallback: null
|
|
30705
|
+
} },
|
|
30706
|
+
locationSource: { $bind: {
|
|
30707
|
+
from: "content.locationSource",
|
|
30708
|
+
fallback: "custom"
|
|
30709
|
+
} },
|
|
30710
|
+
venueId: { $bind: {
|
|
30711
|
+
from: "content.venueId",
|
|
30712
|
+
fallback: null
|
|
30713
|
+
} },
|
|
30714
|
+
venuesById: { $bind: {
|
|
30715
|
+
from: "$root.site.venuesById",
|
|
30716
|
+
fallback: null
|
|
30717
|
+
} },
|
|
30718
|
+
wider: { $bind: {
|
|
30719
|
+
from: "content.wider",
|
|
30720
|
+
fallback: false
|
|
30721
|
+
} },
|
|
30722
|
+
googleMapsLabel: { $bind: {
|
|
30723
|
+
from: "content.googleMapsLabel",
|
|
30724
|
+
fallback: "Open in Google Maps"
|
|
30725
|
+
} },
|
|
30726
|
+
zoom: { $bind: {
|
|
30727
|
+
from: "content.zoom",
|
|
30728
|
+
fallback: LOCATION_MAP_DEFAULTS.zoom
|
|
30729
|
+
} },
|
|
30730
|
+
heightPx: { $bind: {
|
|
30731
|
+
from: "content.heightPx",
|
|
30732
|
+
fallback: LOCATION_MAP_DEFAULTS.heightPx
|
|
30733
|
+
} },
|
|
30734
|
+
showAddressText: { $bind: {
|
|
30735
|
+
from: "content.showAddressText",
|
|
30736
|
+
fallback: LOCATION_MAP_DEFAULTS.showAddressText
|
|
30737
|
+
} },
|
|
30738
|
+
showDirections: { $bind: {
|
|
30739
|
+
from: "content.showDirections",
|
|
30740
|
+
fallback: LOCATION_MAP_DEFAULTS.showDirections
|
|
30741
|
+
} },
|
|
30742
|
+
directionsLabel: { $bind: {
|
|
30743
|
+
from: "content.directionsLabel",
|
|
30744
|
+
fallback: LOCATION_MAP_DEFAULTS.directionsLabel
|
|
30745
|
+
} }
|
|
30746
|
+
};
|
|
30747
|
+
/** Look-only layouts hand the details their compiler-resolved slot and surface (the wide map's sheet). */
|
|
30748
|
+
const lookPresentationProps = {
|
|
30749
|
+
lookSlots: { $bind: { from: "content._lookSlots" } },
|
|
30750
|
+
itemSurfaces: { $bind: { from: "content._effectiveLook.itemSurfaces" } }
|
|
30751
|
+
};
|
|
30752
|
+
const arrangedLayout = (body) => styledSection({
|
|
30753
|
+
baseClass: "",
|
|
30754
|
+
spacing: "comfortable",
|
|
30755
|
+
children: el("div", {
|
|
30756
|
+
className: "rb-container",
|
|
30757
|
+
...lookSlot("layout")
|
|
30758
|
+
}, [el("div", lookSlot("head"), [text({
|
|
30759
|
+
as: "h2",
|
|
30760
|
+
...lookSlot("heading")
|
|
30761
|
+
}, bind("content.heading"))], when("content.heading")), ...body])
|
|
30762
|
+
});
|
|
31294
30763
|
const locationMapBlockDefinition = {
|
|
31295
30764
|
manifest: createBlockManifest({
|
|
31296
|
-
variantMeaning: {
|
|
30765
|
+
variantMeaning: {
|
|
30766
|
+
kind: "arrangement",
|
|
30767
|
+
lookOnlyKeys: ["map-and-details", "photo-and-details"]
|
|
30768
|
+
},
|
|
31297
30769
|
id: "block.location-map",
|
|
31298
30770
|
title: "Map",
|
|
31299
30771
|
titleSource: "heading",
|
|
@@ -31323,20 +30795,20 @@ const locationMapBlockDefinition = {
|
|
|
31323
30795
|
parseFieldDefinition({
|
|
31324
30796
|
id: "locationSource",
|
|
31325
30797
|
type: "select",
|
|
31326
|
-
label: "
|
|
30798
|
+
label: "Which place?",
|
|
31327
30799
|
defaultValue: "custom",
|
|
31328
30800
|
options: [
|
|
31329
30801
|
{
|
|
31330
30802
|
value: "business_address",
|
|
31331
|
-
label: "
|
|
30803
|
+
label: "Your business address"
|
|
31332
30804
|
},
|
|
31333
30805
|
{
|
|
31334
30806
|
value: "venue",
|
|
31335
|
-
label: "
|
|
30807
|
+
label: "One of your venues"
|
|
31336
30808
|
},
|
|
31337
30809
|
{
|
|
31338
30810
|
value: "custom",
|
|
31339
|
-
label: "
|
|
30811
|
+
label: "A different place"
|
|
31340
30812
|
}
|
|
31341
30813
|
],
|
|
31342
30814
|
ui: {
|
|
@@ -31366,6 +30838,7 @@ const locationMapBlockDefinition = {
|
|
|
31366
30838
|
required: false,
|
|
31367
30839
|
ui: {
|
|
31368
30840
|
widget: "locationPicker",
|
|
30841
|
+
valueContract: "location",
|
|
31369
30842
|
intent: "content",
|
|
31370
30843
|
visibleWhen: {
|
|
31371
30844
|
field: "locationSource",
|
|
@@ -31401,6 +30874,15 @@ const locationMapBlockDefinition = {
|
|
|
31401
30874
|
}
|
|
31402
30875
|
] }
|
|
31403
30876
|
}),
|
|
30877
|
+
parseFieldDefinition({
|
|
30878
|
+
id: "entrancePhoto",
|
|
30879
|
+
type: "media",
|
|
30880
|
+
label: "Entrance photo",
|
|
30881
|
+
description: "A photo of the door or the way in. It shows when this section uses the “Entrance photo beside the details” Look.",
|
|
30882
|
+
required: false,
|
|
30883
|
+
mediaKinds: ["image"],
|
|
30884
|
+
ui: { intent: "content" }
|
|
30885
|
+
}),
|
|
31404
30886
|
parseFieldDefinition({
|
|
31405
30887
|
id: "showOpeningHours",
|
|
31406
30888
|
type: "boolean",
|
|
@@ -31437,18 +30919,19 @@ const locationMapBlockDefinition = {
|
|
|
31437
30919
|
}
|
|
31438
30920
|
}),
|
|
31439
30921
|
parseFieldDefinition({
|
|
31440
|
-
id: "
|
|
31441
|
-
type: "
|
|
31442
|
-
label: "
|
|
31443
|
-
defaultValue:
|
|
31444
|
-
|
|
31445
|
-
|
|
31446
|
-
|
|
31447
|
-
|
|
31448
|
-
|
|
31449
|
-
|
|
31450
|
-
|
|
31451
|
-
|
|
30922
|
+
id: "wider",
|
|
30923
|
+
type: "boolean",
|
|
30924
|
+
label: "Show a wider area",
|
|
30925
|
+
defaultValue: false,
|
|
30926
|
+
ui: { intent: "display" }
|
|
30927
|
+
}),
|
|
30928
|
+
parseFieldDefinition({
|
|
30929
|
+
id: "googleMapsLabel",
|
|
30930
|
+
type: "text",
|
|
30931
|
+
label: "Google Maps button label",
|
|
30932
|
+
defaultValue: "Open in Google Maps",
|
|
30933
|
+
maxLength: 60,
|
|
30934
|
+
ui: { intent: "display" }
|
|
31452
30935
|
}),
|
|
31453
30936
|
parseFieldDefinition({
|
|
31454
30937
|
id: "heightPx",
|
|
@@ -31461,64 +30944,27 @@ const locationMapBlockDefinition = {
|
|
|
31461
30944
|
ui: {
|
|
31462
30945
|
intent: "display",
|
|
31463
30946
|
widget: "slider",
|
|
31464
|
-
showValue: true
|
|
30947
|
+
showValue: true,
|
|
30948
|
+
valueUnit: "pixels"
|
|
31465
30949
|
}
|
|
31466
30950
|
})
|
|
31467
30951
|
],
|
|
31468
30952
|
layout: styledSection({
|
|
31469
30953
|
baseClass: "",
|
|
31470
30954
|
spacing: "comfortable",
|
|
31471
|
-
children: sectionContainer([text({ as: "h2" }, bind("content.heading"), when("content.heading")), el("location-map", {
|
|
31472
|
-
|
|
31473
|
-
|
|
31474
|
-
|
|
31475
|
-
|
|
31476
|
-
|
|
31477
|
-
|
|
31478
|
-
|
|
31479
|
-
|
|
31480
|
-
|
|
31481
|
-
|
|
31482
|
-
|
|
31483
|
-
|
|
31484
|
-
businessAddress: { $bind: {
|
|
31485
|
-
from: "site.businessAddress",
|
|
31486
|
-
fallback: null
|
|
31487
|
-
} },
|
|
31488
|
-
locationSource: { $bind: {
|
|
31489
|
-
from: "content.locationSource",
|
|
31490
|
-
fallback: "custom"
|
|
31491
|
-
} },
|
|
31492
|
-
venueId: { $bind: {
|
|
31493
|
-
from: "content.venueId",
|
|
31494
|
-
fallback: null
|
|
31495
|
-
} },
|
|
31496
|
-
venuesById: { $bind: {
|
|
31497
|
-
from: "site.venuesById",
|
|
31498
|
-
fallback: null
|
|
31499
|
-
} },
|
|
31500
|
-
zoom: { $bind: {
|
|
31501
|
-
from: "content.zoom",
|
|
31502
|
-
fallback: LOCATION_MAP_DEFAULTS.zoom
|
|
31503
|
-
} },
|
|
31504
|
-
heightPx: { $bind: {
|
|
31505
|
-
from: "content.heightPx",
|
|
31506
|
-
fallback: LOCATION_MAP_DEFAULTS.heightPx
|
|
31507
|
-
} },
|
|
31508
|
-
showAddressText: { $bind: {
|
|
31509
|
-
from: "content.showAddressText",
|
|
31510
|
-
fallback: LOCATION_MAP_DEFAULTS.showAddressText
|
|
31511
|
-
} },
|
|
31512
|
-
showDirections: { $bind: {
|
|
31513
|
-
from: "content.showDirections",
|
|
31514
|
-
fallback: LOCATION_MAP_DEFAULTS.showDirections
|
|
31515
|
-
} },
|
|
31516
|
-
directionsLabel: { $bind: {
|
|
31517
|
-
from: "content.directionsLabel",
|
|
31518
|
-
fallback: LOCATION_MAP_DEFAULTS.directionsLabel
|
|
31519
|
-
} }
|
|
31520
|
-
})], { gap: "md" })
|
|
31521
|
-
})
|
|
30955
|
+
children: sectionContainer([text({ as: "h2" }, bind("content.heading"), when("content.heading")), el("location-map", locationMapNodeProps)], { gap: "md" })
|
|
30956
|
+
}),
|
|
30957
|
+
variants: {
|
|
30958
|
+
"map-and-details": arrangedLayout([el("location-map", {
|
|
30959
|
+
...locationMapNodeProps,
|
|
30960
|
+
...lookPresentationProps
|
|
30961
|
+
})]),
|
|
30962
|
+
"photo-and-details": arrangedLayout([el("div", lookSlot("frame"), [el("div", lookSlot("media"), [media(lookSlot("photo"), bind("content.entrancePhoto"), when("content.entrancePhoto"))], when("content.entrancePhoto")), el("location-map", {
|
|
30963
|
+
...locationMapNodeProps,
|
|
30964
|
+
...lookPresentationProps,
|
|
30965
|
+
showMap: false
|
|
30966
|
+
})])])
|
|
30967
|
+
}
|
|
31522
30968
|
}),
|
|
31523
30969
|
contentNormalizer: {
|
|
31524
30970
|
fieldIds: [
|
|
@@ -31527,6 +30973,8 @@ const locationMapBlockDefinition = {
|
|
|
31527
30973
|
"venueId",
|
|
31528
30974
|
"location",
|
|
31529
30975
|
"showAddressText",
|
|
30976
|
+
"wider",
|
|
30977
|
+
"googleMapsLabel",
|
|
31530
30978
|
"showOpeningHours",
|
|
31531
30979
|
"showDirections",
|
|
31532
30980
|
"directionsLabel",
|
|
@@ -31536,6 +30984,14 @@ const locationMapBlockDefinition = {
|
|
|
31536
30984
|
normalize: normalizeLocationMapContent
|
|
31537
30985
|
}
|
|
31538
30986
|
};
|
|
30987
|
+
function parseAuthoredLocation(value) {
|
|
30988
|
+
if (value == null) return null;
|
|
30989
|
+
const canonical = parseLocationValue(value);
|
|
30990
|
+
if (canonical.ok) return canonical.value;
|
|
30991
|
+
const projected = publicLocationSchema.safeParse(value);
|
|
30992
|
+
if (projected.success) return projected.data;
|
|
30993
|
+
return { kind: "needs_place" };
|
|
30994
|
+
}
|
|
31539
30995
|
//#endregion
|
|
31540
30996
|
//#region ../blocks/src/system/blocks/index.ts
|
|
31541
30997
|
function sectionOnly() {
|
|
@@ -31853,7 +31309,7 @@ const systemBlockDefinitions = [
|
|
|
31853
31309
|
})
|
|
31854
31310
|
]
|
|
31855
31311
|
})),
|
|
31856
|
-
withDesignCapability("block.location-map", locationMapBlockDefinition, sectionOnly(), defineBlockDesignMetadata({
|
|
31312
|
+
withDesignCapability("block.location-map", locationMapBlockDefinition, withLookCapability(sectionOnly()), defineBlockDesignMetadata({
|
|
31857
31313
|
flow: utilityFlow,
|
|
31858
31314
|
layoutProfiles: [layoutProfile({
|
|
31859
31315
|
variantKey: "default",
|
|
@@ -32372,4 +31828,4 @@ function listBlockDescriptors() {
|
|
|
32372
31828
|
}));
|
|
32373
31829
|
}
|
|
32374
31830
|
//#endregion
|
|
32375
|
-
export { ImagePresets as $,
|
|
31831
|
+
export { ImagePresets as $, resolveWholeSeriesBookingPhase as $i, createInteractiveIslandCodec as $n, runTransforms as $r, formatEventHourLabel as $t, buildOfferingsCatalogueListing as A, resolveExactOrFreePriceDisplay as Aa, NodeSchema as Ai, FEATURE_CARD_ICON_TREATMENTS as An, defineFragment as Ar, resolveOfferingsPreviewGroupCta as At, eventCollectionDisplaySchemaShape as B, resolveRepeaterGridColumnsForBreakpoint as Bi, resolveDateRuntimeContext as Bn, resolveBackgroundColorValue as Br, buildEventListWeek as Bt, buildShopInteractiveIslandProps as C, toScheduledBookingDateTime as Ca, fieldSchema as Ci, isEventFull as Cn, testimonialsHeadingFragment as Cr, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as Ct, passCardListContent as D, publicEventPricingCurrency as Da, validateManifestLookField as Di, blockBookingConsentSchema as Dn, isBlockButtonRole as Dr, buildOfferingsPreviewListing as Dt, membershipClassesLabel as E, isPublicEventPricingOptionDisplayable as Ea, parseFieldDefinitions as Ei, publicEventsArraySchema as En, ctaRowFragment as Er, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as Et, eventListingBlockDefinition as F, projectRepeaterGridLayout as Fi, composeHeaderSectionWrapperClassName as Fn, parseBackgroundContent as Fr, ThemedButton as Ft, catalogueEventCardProps as G, chosenString as Gi, staticHeaderChromeRuntime as Gn, BACKGROUND_POSITION_PRESET_VALUES as Gr, eventCalendarWeekStart as Gt, eventCollectionSourceSchemaShape as H, resolveRepeaterGridSpanFieldId as Hi, headerRuntimeTransforms as Hn, el as Hr, formatEventPriceAmount as Ht, buildEventListingInteractiveIslandProps as I, projectRepeaterGridLayoutForRendering as Ii, markEditableSurfaceForwarding as In, parseBackgroundOverlay as Ir, ThemedButtonLink as It, CardListLeadDate as J, pageTemplateFromEntry as Ji, formattingTransforms as Jn, lookLeadSlotTransform as Jr, formatCalendarTitle as Jt, listingEventCardProps as K, admitReadinessFacts as Ki, resolveHeroTitleLength as Kn, getAnchorClasses as Kr, eventDateOptions as Kt, buildEventCollectionDisplay as L, buildRepeaterGridLayout as Li, splitPositioningClasses as Ln, parseRuntimeBackgroundContent as Lr, ThemedDownloadLink as Lt, buildEventCalendarInteractiveIslandProps as M, formatCurrencyAmount as Ma, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as Mi, shouldReserveFeatureCardIconZone as Mn, boxStyleClassNames as Mr, resolveOfferingsPreviewRunPath as Mt, buildEventCalendarListingDisplay as N, parseCurrencyCode as Na, linkSchema as Ni, siteFooterManifest as Nn, normalizeBoxStylesBorder as Nr, resolveOfferingsRenderInput as Nt, offeringsPreviewBlockDefinition as O, publicEventPricingDisplay as Oa, sdkBlockPresentationShape as Oi, bookingConsentCarrierSchema as On, heroCopyFragment as Or, normalizeOfferingsPreviewItemLimit as Ot, projectRecurringSchedule as P, PUBLIC_DOWNLOAD_MEDIA_TYPES as Pi, siteHeaderManifest as Pn, resolveCardRoleForBoxStyles as Pr, ThemedAuthoredButton as Pt, RichText as Q, orderedLiveRunSessions as Qi, buildInteractiveIslandProps as Qn, createTransformRegistry as Qr, formatEventDateParts as Qt, buildEventCollectionHydration as R, parseRepeaterGridInteger as Ri, contentTransforms as Rn, resolveSectionSurfaceForeground as Rr, getIconComponent as Rt, buildProductListInteractiveIslandProps as S, toBookingTimeZone as Sa, builtInBlockKindsSchema as Si, getEventAvailabilityStatus as Sn, testimonialsCarouselFragment as Sr, resolveEventRegistrationScopedEvents as St, membershipCardListContent as T, formatBookingPriceDisplay as Ta, parseFieldDefinition as Ti, groupPublicEventsByRun as Tn, heroCtaRowFragment as Tr, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as Tt, calendarWindowQuerySchema as U, augmentManifest as Ui, chromeLogoTransforms as Un, when as Ur, formatEventPriceDisplay as Ut, eventCollectionHydrationSchema as V, resolveRepeaterGridRowFieldId as Vi, mediaTransforms as Vn, ctaButton as Vr, formatEventPrice as Vt, resolveCalendarReadProfile as W, isRecord$5 as Wi, layoutTransforms as Wn, standardImageShapeOptions as Wr, buildCalendarViewport as Wt, selectCardListPresentation as X, CANCELLED_SESSION_STATUS as Xi, formBlockDefinition as Xn, lookSkinSlotTransform as Xr, formatEventClockLabel as Xt, resolveCardListSchedule as Y, unavailableReadinessFact as Yi, formatDate$1 as Yn, lookQuoteLimitTransform as Yr, formatDate as Yt, MediaNodeServer as Z, nextLiveRunSessionStartMs as Zi, buildFormInteractiveIslandProps as Zn, asPartialObject as Zr, formatEventCompactDateRail as Zt, productListBlockDefinition as _, getBookingLocalDateKey as _a, plainTextToInlineText as _i, browserReadAuthoritySchema as _n, faqHeadingFragment as _r, eventCalendarListGroupingDecision as _t, normalizeLocationMapSource as a, decideLocationSourcePermission as aa, CircleMinusIcon as ai, getLocalDateKey as an, listLookControl as ar, resolvePublicMediaUrl as at, buildCheckoutInteractiveIslandProps as b, parseLocalScheduleTime as ba, blockCategoryEnum as bi, formatTotalCapacity as bn, formEmbedFragment as br, resolveEventCalendarReadPlan as bt, sanitizeNewsletterSignupPublicContent as c, projectPublicLocation as ca, FileArchiveIcon as ci, formatDateKey as cn, resolvedItemSurfaceProps as cr, setContextResolveImageUrlContext as ct, newsletterBlockSubmissionMessage as d, formatDate$2 as da, FileTextIcon as di, getWeekCalendarDayTuple as dn, Grid as dr, getContainerClass as dt, buildMailingListSignupBlockSourceRef as ea, buildGeneratedBlockIconRenderAssetLookupFromUnknown as ei, formatEventNextDateFact as en, defineInteractiveIslandMetaKeys as er, MediaPlaceholder as et, giftingBlockDefinition as f, formatDateRange as fa, MinusIcon as fi, getWeekCalendarDays as fn, clsx as fr, resolveEventSelection as ft, productDetailBlockDefinition as g, formatBookingCompactEnglishTime as ga, parseInlineTextFromUnknown as gi, formatBookingSchedulePresentation as gn, faqAccordionFragment as gr, previewStageSchema as gt, cartBlockDefinition as h, compareLocalScheduleDates as ha, isInlineTextEmpty as hi, resolveRuntimeEventDestination as hn, cardFragment as hr, bookingNowSchema as ht, normalizeLocationMapProps as i, sameMailingListPlacementTargeting as ia, ChevronDownIcon as ii, resolveEventTimeZone as in, listItemPresentation as ir, resolveImageUrlWithContext as it, eventCalendarBlockDefinition as j, resolvePricingOptionsPriceDisplay as ja, bindingSchema as ji, resolveFeatureCardGeneratedIconSizePx as jn, boxStylesTransforms as jr, resolveOfferingsPreviewGroups as jt, publicRouteCandidatesSchema as k, publicEventPricingType as ka, validateSdkBlockDeclaration as ki, blockBookingPaymentTermsSchema as kn, bodyCopyFragment as kr, offeringsListingFor as kt, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as l, publicLocationSchema as la, FileAudioIcon as li, getDayOfWeek as ln, itemRole as lr, sanitizeHref as lt, checkoutBlockDefinition as m, inferSiteDateLocale as ma, inlineTextToPlainText as mi, isToday as mn, headingFragment as mr, buildEventRegistrationInteractiveIslandProps as mt, listBlockDescriptors as n, parseMailingListProviderScope as na, resolveBlockIconRenderValue as ni, formatTime as nn, defineClientOwnedBlockRuntime as nr, resolveImageSourceSetWithContext as nt, resolveLocationMapLocation as o, locationValueSchema as oa, CirclePlusIcon as oi, getLocalMinuteOfDay as on, listLookSlot as or, buildResolveImageUrlContext as ot, buildGiftingInteractiveIslandProps as p, formatDateTimeRange as pa, PlusIcon as pi, isSameCalendarDay as pn, richTextFragment as pr, eventRegistrationBlockDefinition as pt, CardListContentPart as q, loadedReadinessFact as qi, uiTransforms as qn, lookCarouselRegionTransform as qr, eventLocalDateKey as qt, normalizeBlockContent as r, parseMailingListPlacementTargeting as ra, ArrowDownIcon as ri, groupEventsByDate as rn, defineProgressiveBlockRuntime as rr, resolveImageUrl as rt, newsletterSignupBlockDefinition as s, normalizeLocationAddressText as sa, ClockIcon as si, addDays as sn, lookListPresentationSchemaShape as sr, getCurrentResolveImageUrlContext as st, getBlockDefinition as t, parseMailingListRuntimeContext as ta, parseBlockIconValue as ti, formatEventTimeRange as tn, createZodCodec as tr, computeMediaTransformStyle as tt, buildNewsletterFormInteractiveIslandProps as u, mapDrawingSchema as ua, FileSpreadsheetIcon as ui, getOrderedDayNames as un, standardAspectRatioOptions as ur, getCardOrientation as ut, shopBlockDefinition as v, getLocalScheduleDate as va, DEFAULT_MEDIA_FIELD_KINDS as vi, canJoinEventWaitlistOnAnyMode as vn, blogFeaturedPostFragment as vr, eventCalendarListLayoutCompatibleDisplayModeValues as vt, shopProductPresentation as w, toUtcIsoDateTimeString as wa, normalizeSelectSource as wi, blockSiteTermsSchema as wn, ctaCopyFragment as wr, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as wt, buildProductDetailInteractiveIslandProps as x, resolveBookingBusinessTimeZone as xa, blockSectionDeclarationShape as xi, getEventAvailability as xn, formCopyFragment as xr, normalizeEventRegistrationPageSurfaceSubject as xt, buildCartInteractiveIslandProps as y, parseBookingLocalDate as ya, PUBLIC_FILE_FIELD_KINDS as yi, formatEventRemainingPlaces as yn, singleButtonFragment as yr, eventCalendarListLayoutOptions as yt, buildEventCollectionListingDisplay as z, resolveRepeaterGridColumnFieldId as zi, readRuntimeNow as zn, resolveSurfaceForegroundStyles as zr, SpinnerNode as zt };
|