@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,5 +1,6 @@
|
|
|
1
|
-
import { $n as
|
|
2
|
-
import {
|
|
1
|
+
import { $n as resolveOpaqueSurfaceHex, A as RESOLVED_BUTTON_DISABLED_DECLARATIONS, Bn as SURFACE_FOREGROUND_CSS_VARS, C as ACCORDION_SPACING_MAP, Cn as textColorValue, Ct as generateCardCss, D as ICON_SIZE_PX, Dn as compileButtonColourStates, E as ICON_CONFIG, En as opaqueSurfaceDeclarations, Gn as surfaceForegroundValueWithOpacity, Hn as surfaceForegroundInputFromResolved, Jn as onColorTokenName, Kn as expandPalette, Ln as buildThemeTokens, M as resolvedButtonFocusDeclarations, Nn as generateShadowValue$1, O as generateButtonActionLayoutCss, On as formatButtonColourContractError, S as ACCORDION_OPEN_ACCENT_THICKNESS, St as getDefaultCardVariants, T as ACCORDION_TRIGGER_LETTER_SPACING, Tn as opaqueSurfaceContextFromTheme, Tt as generateShadowValue, Vn as surfaceForegroundDeclarations, Wn as surfaceForegroundValue, Yn as getTextColorForBackground, _ as parseCustomCssRules, at as boxBackgroundSchema, b as INPUT_SPACING_MAP, c as MQ_LG_UP, cr as buttonVariantIdSchema, d as MQ_SM_UP, f as MQ_TABLET_ONLY, g as parseBlockCustomCssRules, ir as paletteModeSchema, j as resolvedButtonColourDeclarations, k as generateButtonCss, lr as unsafeAsOpaqueButtonColourToken, mn as safeTokenOr, pn as resolveSurfaceForeground, pr as parseColorTokenParts, qn as isOnColorBackgroundCandidateToken, rr as paletteColorsSchema, t as corners, tr as hexToRgb, u as MQ_SM_DOWN, un as resolveSurface, ur as parseThemeColorToken, v as FONT_WEIGHT_MAP, w as ACCORDION_TRIGGER_FONT_SCALE, wt as renderCssDeclarations, x as LABEL_FONT_SIZE_MAP, xn as rgbColorValue, xt as generateCardCoreCss, y as INPUT_FONT_SIZE_MAP, yn as cssVarValue, z as skinTokenCssVars, zn as DEFAULT_SURFACE_TEXT_COLOR } from "./schema-CD4peO7m.mjs";
|
|
2
|
+
import { L as boundaryRuntimeMetricsForDecorativeTransition, O as generateFooterCss, R as anglePolygonCss, S as requireCuratedSiteStyle, z as transitionCatalogueEntries } from "./effectiveNavLinkStyle-CGvGr3yD.mjs";
|
|
3
|
+
import { c as DEFAULT_THEME_RESPONSIVE_MODE, d as convertMediaQueryToContainerQuery, s as generateHeaderCss, u as getResponsiveScopeSpec } from "./siteChromeOverlayClearance-DNC2k1U0.mjs";
|
|
3
4
|
import { z } from "zod";
|
|
4
5
|
import "react";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -18441,6 +18442,63 @@ const containerResponsiveThemeCss = `/*
|
|
|
18441
18442
|
}
|
|
18442
18443
|
}
|
|
18443
18444
|
|
|
18445
|
+
/* ---------------------------------------------------- Visit (issue 1611) */
|
|
18446
|
+
/* Map above the details is the block's own layout (location-map.css). The three Look-only layouts put
|
|
18447
|
+
* the heading in the head slot (Measure hangs it in the rail) and stack the details in one column:
|
|
18448
|
+
* address, door note and actions, then the opening hours. The authored map height is a minimum here. */
|
|
18449
|
+
.theme-scope [data-arrangement]:is([data-arrangement="map-and-details"], [data-arrangement="photo-and-details"]) [data-slot="layout"] { row-gap: clamp(2rem, 4cqi, 3rem); }
|
|
18450
|
+
.theme-scope [data-arrangement]:is([data-arrangement="map-and-details"], [data-arrangement="photo-and-details"]) [data-slot="head"] { margin-bottom: 0; }
|
|
18451
|
+
.theme-scope [data-arrangement]:is([data-arrangement="map-and-details"], [data-arrangement="photo-and-details"]) .rb-location-map-details { grid-template-columns: minmax(0, 1fr); gap: 2rem; align-content: start; }
|
|
18452
|
+
.theme-scope [data-arrangement]:is([data-arrangement="map-and-details"], [data-arrangement="photo-and-details"]) .rb-location-map-address { font-size: 1.1875rem; line-height: 1.45; }
|
|
18453
|
+
.theme-scope [data-arrangement]:is([data-arrangement="map-and-details"], [data-arrangement="photo-and-details"]) .rb-location-map-hours td { white-space: nowrap; }
|
|
18454
|
+
.theme-scope [data-arrangement]:is([data-arrangement="map-and-details"], [data-arrangement="photo-and-details"]) .rb-location-map-hours tbody tr:last-child :is(th, td) { border-bottom: 1px solid var(--rb-surface-line-color, color-mix(in srgb, currentColor 18%, transparent)); }
|
|
18455
|
+
.theme-scope [data-arrangement="map-and-details"] .rb-map-drawing { display: flex; flex-direction: column; min-width: 0; }
|
|
18456
|
+
.theme-scope [data-arrangement="map-and-details"] .rb-map-drawing-crop { flex: 1 1 auto; }
|
|
18457
|
+
|
|
18458
|
+
/* Map beside the address: the details on the left, the map filling the row on the right. */
|
|
18459
|
+
.theme-scope [data-arrangement][data-look="location-map-beside-address"] .rb-location-map { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2rem, 5cqi, 4rem); align-items: stretch; }
|
|
18460
|
+
.theme-scope [data-arrangement][data-look="location-map-beside-address"] .rb-location-map-details { grid-column: 1; grid-row: 1; align-self: center; }
|
|
18461
|
+
.theme-scope [data-arrangement][data-look="location-map-beside-address"] .rb-map-drawing { grid-column: 2; grid-row: 1; min-height: 30rem; }
|
|
18462
|
+
.theme-scope [data-arrangement][data-look="location-map-beside-address"] .rb-map-drawing svg { width: max(135%, 680px); }
|
|
18463
|
+
|
|
18464
|
+
/* Address over a wide map: the details on a sheet (the card role) laid over the left of a tall map,
|
|
18465
|
+
* the drawing moved right so the pin stays clear of the sheet, and the attribution over the map's top corner. */
|
|
18466
|
+
.theme-scope [data-arrangement][data-look="location-map-address-over-wide-map"] .rb-location-map { grid-template-columns: minmax(0, 1fr); gap: 0; }
|
|
18467
|
+
.theme-scope [data-arrangement][data-look="location-map-address-over-wide-map"] .rb-location-map > * { grid-area: 1 / 1; }
|
|
18468
|
+
.theme-scope [data-arrangement][data-look="location-map-address-over-wide-map"] .rb-map-drawing { position: relative; min-height: clamp(34rem, 48cqi, 40rem); }
|
|
18469
|
+
.theme-scope [data-arrangement][data-look="location-map-address-over-wide-map"] .rb-map-drawing figcaption { position: absolute; top: var(--map-frame-width, 1px); right: var(--map-frame-width, 1px); z-index: 1; padding: 0.25rem 0.5rem; background: var(--map-land, rgb(var(--tb-surface))); color: var(--map-label, currentColor); }
|
|
18470
|
+
.theme-scope [data-arrangement][data-look="location-map-address-over-wide-map"] .rb-map-drawing svg { left: calc(50% + 10rem); width: max(calc(100% + 20rem), 680px); }
|
|
18471
|
+
.theme-scope [data-arrangement][data-look="location-map-address-over-wide-map"] .rb-location-map-details { position: relative; z-index: 1; align-self: start; justify-self: start; width: min(25rem, calc(100% - 3rem)); margin: clamp(1.5rem, 4cqi, 3rem); padding: 2rem 2rem 1.75rem; gap: 1.5rem; box-sizing: border-box; }
|
|
18472
|
+
|
|
18473
|
+
/* Photo of the entrance beside the details: a tall photo in place of the map. Published without a
|
|
18474
|
+
* photo it reads as Map beside the address; in the editor the photo slot asks for one. */
|
|
18475
|
+
.theme-scope [data-arrangement][data-look="location-map-entrance-photo"] [data-slot="frame"] { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(2rem, 5.5cqi, 4.5rem); }
|
|
18476
|
+
.theme-scope [data-arrangement][data-look="location-map-entrance-photo"] [data-slot="frame"] > * { grid-column: auto; }
|
|
18477
|
+
.theme-scope [data-arrangement][data-look="location-map-entrance-photo"] [data-slot="media"] { aspect-ratio: 4 / 5; overflow: hidden; }
|
|
18478
|
+
.theme-scope [data-arrangement][data-look="location-map-entrance-photo"] [data-slot="media"] > [data-placeholder-field] { height: 100%; }
|
|
18479
|
+
|
|
18480
|
+
/* No drawing yet (or none possible): the map Looks set the details out on their own, address and
|
|
18481
|
+
* actions beside the hours, rather than beside an empty map. Wide keeps its sheet, across the row. */
|
|
18482
|
+
.theme-scope [data-arrangement][data-look="location-map-beside-address"] .rb-location-map[data-map="none"] { grid-template-columns: minmax(0, 1fr); }
|
|
18483
|
+
.theme-scope [data-arrangement][data-look="location-map-beside-address"] .rb-location-map[data-map="none"] .rb-location-map-details { align-self: start; }
|
|
18484
|
+
.theme-scope [data-arrangement]:is([data-look="location-map-beside-address"], [data-look="location-map-address-over-wide-map"]) .rb-location-map[data-map="none"] .rb-location-map-details { grid-template-columns: minmax(0, 1fr) minmax(15rem, 21rem); column-gap: clamp(2rem, 5cqi, 4rem); }
|
|
18485
|
+
.theme-scope [data-arrangement][data-look="location-map-address-over-wide-map"] .rb-location-map[data-map="none"] .rb-location-map-details { justify-self: stretch; width: auto; margin: 0; padding: clamp(1.75rem, 4cqi, 2.75rem); }
|
|
18486
|
+
|
|
18487
|
+
@container rb-site (max-width: 767px) {
|
|
18488
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
18489
|
+
.theme-scope:is(*, :scope) [data-arrangement][data-look="location-map-beside-address"] .rb-location-map { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
|
|
18490
|
+
.theme-scope:is(*, :scope) [data-arrangement][data-look="location-map-beside-address"] .rb-map-drawing { grid-column: 1; grid-row: 2; min-height: 0; }
|
|
18491
|
+
.theme-scope:is(*, :scope) [data-arrangement][data-look="location-map-address-over-wide-map"] .rb-location-map > * { grid-area: auto; }
|
|
18492
|
+
.theme-scope:is(*, :scope) [data-arrangement][data-look="location-map-address-over-wide-map"] .rb-map-drawing { min-height: 0; }
|
|
18493
|
+
.theme-scope:is(*, :scope) [data-arrangement][data-look="location-map-address-over-wide-map"] .rb-map-drawing svg { left: 50%; width: max(100%, 680px); }
|
|
18494
|
+
.theme-scope:is(*, :scope) [data-arrangement][data-look="location-map-address-over-wide-map"] .rb-location-map-details { width: auto; margin: -3rem 0.5rem 0; padding: 1.5rem 1.25rem 1.25rem; }
|
|
18495
|
+
.theme-scope:is(*, :scope) [data-arrangement][data-look="location-map-entrance-photo"] [data-slot="frame"] { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
|
|
18496
|
+
.theme-scope:is(*, :scope) [data-arrangement][data-look="location-map-entrance-photo"] [data-slot="media"] { aspect-ratio: 4 / 3; }
|
|
18497
|
+
.theme-scope:is(*, :scope) [data-arrangement]:is([data-look="location-map-beside-address"], [data-look="location-map-address-over-wide-map"]) .rb-location-map[data-map="none"] .rb-location-map-details { grid-template-columns: minmax(0, 1fr); }
|
|
18498
|
+
.theme-scope:is(*, :scope) [data-arrangement][data-look="location-map-address-over-wide-map"] .rb-location-map[data-map="none"] .rb-location-map-details { margin: 0; padding: 1.5rem 1.25rem 1.25rem; }
|
|
18499
|
+
}
|
|
18500
|
+
}
|
|
18501
|
+
|
|
18444
18502
|
/* Bounded style skins (issue 1575, D14): one stylesheet per arrangement style, keyed on data-skin. */
|
|
18445
18503
|
|
|
18446
18504
|
/* =============================================================================
|
|
@@ -19160,6 +19218,13 @@ const containerResponsiveThemeCss = `/*
|
|
|
19160
19218
|
}
|
|
19161
19219
|
}
|
|
19162
19220
|
|
|
19221
|
+
/* ---------------------------------------------------- Visit (issue 1611) */
|
|
19222
|
+
/* map-beside, map-wide, map-entrance: the entrance photo sits on the offset plate; the wide map's sheet
|
|
19223
|
+
* opens with the start mark; the address takes the heading face. */
|
|
19224
|
+
[data-skin="fulcrum"] [data-arrangement]:is([data-treat="map-beside"], [data-treat="map-wide"], [data-treat="map-entrance"]) [data-slot="headline"] { font-family: var(--font-heading); font-size: clamp(1.375rem, 2cqi, 1.625rem); font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; }
|
|
19225
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="map-wide"] [data-slot="panel"]::before { content: ""; display: block; width: var(--rb-skin-mark-length, 44px); height: var(--rb-skin-mark-weight, 2px); margin-bottom: -0.5rem; background: var(--rb-surface-mark-color); }
|
|
19226
|
+
[data-skin="fulcrum"] [data-arrangement][data-treat="map-entrance"] [data-slot="media"] { overflow: visible; margin: 0 var(--fulcrum-plate) var(--fulcrum-plate) 0; box-shadow: var(--fulcrum-plate-x) var(--fulcrum-plate-x) 0 var(--fulcrum-plate-colour); }
|
|
19227
|
+
|
|
19163
19228
|
/* =============================================================================
|
|
19164
19229
|
* Poster skin (issue 1575 Phase 1a, D14).
|
|
19165
19230
|
*
|
|
@@ -19882,6 +19947,19 @@ const containerResponsiveThemeCss = `/*
|
|
|
19882
19947
|
}
|
|
19883
19948
|
}
|
|
19884
19949
|
|
|
19950
|
+
/* ---------------------------------------------------- Visit (issue 1611) */
|
|
19951
|
+
/* map-beside, map-wide, map-entrance: a loud bold address over ink-ruled hours; the entrance photo and
|
|
19952
|
+
* the wide map's sheet take the same ink frame and hard shadow as the map. The entrance photo keeps its
|
|
19953
|
+
* full colour, like gallery photos: its job is to help people recognise the real door. */
|
|
19954
|
+
[data-skin="poster"] [data-arrangement]:is([data-treat="map-beside"], [data-treat="map-wide"], [data-treat="map-entrance"]) [data-slot="headline"] { font-family: var(--font-heading); font-size: clamp(1.5rem, 2.4cqi, 1.875rem); font-weight: 800; font-stretch: 75%; line-height: 1.05; }
|
|
19955
|
+
[data-skin="poster"] [data-arrangement]:is([data-treat="map-beside"], [data-treat="map-wide"], [data-treat="map-entrance"]) [data-slot="schedule"] :is([data-slot="fact-label"], [data-slot="fact-value"]) { border-top: 2px solid var(--rb-surface-text-color); }
|
|
19956
|
+
[data-skin="poster"] [data-arrangement]:is([data-treat="map-beside"], [data-treat="map-wide"], [data-treat="map-entrance"]) [data-slot="schedule"] [data-slot="row"]:last-child :is([data-slot="fact-label"], [data-slot="fact-value"]) { border-bottom: 2px solid var(--rb-surface-text-color); }
|
|
19957
|
+
[data-skin="poster"] [data-arrangement][data-treat="map-wide"] [data-slot="panel"],
|
|
19958
|
+
[data-skin="poster"] [data-arrangement][data-treat="map-entrance"] [data-slot="media"] { border: 3px solid var(--rb-surface-text-color); box-shadow: var(--rb-skin-shadow-offset, 8px) var(--rb-skin-shadow-offset, 8px) 0 var(--rb-surface-text-color); }
|
|
19959
|
+
[data-skin="poster"] [data-arrangement][data-treat="map-entrance"] [data-slot="media"] { margin: 0 var(--rb-skin-shadow-offset, 8px) var(--rb-skin-shadow-offset, 8px) 0; }
|
|
19960
|
+
[data-skin="poster"] [data-arrangement][data-treat="map-entrance"] [data-slot="photo"] { filter: none; }
|
|
19961
|
+
[data-skin="poster"] [data-arrangement][data-treat="map-entrance"] [data-slot="media"]:has([data-slot="photo"])::after { content: none; }
|
|
19962
|
+
|
|
19885
19963
|
/* =============================================================================
|
|
19886
19964
|
* Lantern skin (issue 1575 Phase 1b, D10, D14).
|
|
19887
19965
|
*
|
|
@@ -21140,6 +21218,13 @@ const containerResponsiveThemeCss = `/*
|
|
|
21140
21218
|
[data-skin="lantern"] [data-arrangement][data-treat="arches"] [data-card-list-item] [data-slot="item-body"] { align-items: center; padding: 0; }
|
|
21141
21219
|
[data-skin="lantern"] [data-arrangement][data-treat="arches"] [data-card-list-item] [data-slot="facts"] { justify-content: center; }
|
|
21142
21220
|
|
|
21221
|
+
/* ---------------------------------------------------- Visit (issue 1611) */
|
|
21222
|
+
/* map-beside, map-wide, map-entrance: the entrance photo under the arch, the address in the display
|
|
21223
|
+
* face, and the wide map's sheet softly rounded. */
|
|
21224
|
+
[data-skin="lantern"] [data-arrangement]:is([data-treat="map-beside"], [data-treat="map-wide"], [data-treat="map-entrance"]) [data-slot="headline"] { font-family: var(--font-heading); font-size: clamp(1.375rem, 2cqi, 1.625rem); font-weight: 400; line-height: 1.25; }
|
|
21225
|
+
[data-skin="lantern"] [data-arrangement][data-treat="map-entrance"] [data-slot="photo"] { border-radius: var(--lantern-arch); }
|
|
21226
|
+
[data-skin="lantern"] [data-arrangement][data-treat="map-wide"] [data-slot="panel"] { border-radius: var(--rb-skin-radius, 12px); }
|
|
21227
|
+
|
|
21143
21228
|
/* =============================================================================
|
|
21144
21229
|
* Measure skin (issue 1575 Phase 1b, D14).
|
|
21145
21230
|
*
|
|
@@ -21829,6 +21914,12 @@ const containerResponsiveThemeCss = `/*
|
|
|
21829
21914
|
[data-skin="measure"] [data-arrangement][data-treat="cta-figure"] [data-slot="heading"] { font-size: clamp(2rem, 3.6cqi, 2.875rem); font-weight: 500; font-stretch: 88%; line-height: 1.04; letter-spacing: -0.025em; }
|
|
21830
21915
|
[data-skin="measure"] [data-arrangement][data-treat="cta-figure"] [data-slot="intro"] { font-size: 1rem; line-height: 1.6; }
|
|
21831
21916
|
|
|
21917
|
+
/* ---------------------------------------------------- Visit (issue 1611) */
|
|
21918
|
+
/* map-beside, map-wide, map-entrance: the title hangs in the rail; the wide map's sheet opens with a
|
|
21919
|
+
* heavy rule in the mark colour, square like the map. */
|
|
21920
|
+
[data-skin="measure"] [data-arrangement]:is([data-treat="map-beside"], [data-treat="map-wide"], [data-treat="map-entrance"]) [data-slot="headline"] { font-family: var(--font-heading); font-size: clamp(1.25rem, 1.8cqi, 1.5rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; }
|
|
21921
|
+
[data-skin="measure"] [data-arrangement][data-treat="map-wide"] [data-slot="panel"] { box-shadow: inset 0 var(--rb-skin-mark-weight, 4px) 0 var(--rb-surface-mark-color); }
|
|
21922
|
+
|
|
21832
21923
|
/* Folio: serif sheets, quiet rules and full-colour photographs. */
|
|
21833
21924
|
[data-skin="folio"] [data-arrangement] [data-slot="section"] { --rb-section-pad-y: clamp(60px, 7.5cqi, 106px); }
|
|
21834
21925
|
[data-skin="folio"] [data-arrangement][data-length] [data-slot="section"] { --rb-section-pad-y: clamp(60px, 7.5cqi, 106px); }
|
|
@@ -22189,7 +22280,74 @@ const containerResponsiveThemeCss = `/*
|
|
|
22189
22280
|
[data-skin="folio"] [data-arrangement][data-treat="cta-figure"] [data-slot="figure-label"] { padding-top: 0.875rem; border-top: 1px solid var(--rb-surface-line-color); font-size: 1rem; }
|
|
22190
22281
|
[data-skin="folio"] [data-arrangement][data-treat="cta-figure"] [data-slot="head"] { margin-bottom: 0; }
|
|
22191
22282
|
[data-skin="folio"] [data-arrangement][data-treat="cta-figure"] [data-slot="heading"] { font-size: clamp(2rem, 1.4rem + 2cqi, 2.875rem); }
|
|
22192
|
-
[data-skin="folio"] [data-arrangement][data-treat="cta-figure"] [data-slot="intro"] { font-size: 1.0625rem; line-height: 1.7; }
|
|
22283
|
+
[data-skin="folio"] [data-arrangement][data-treat="cta-figure"] [data-slot="intro"] { font-size: 1.0625rem; line-height: 1.7; }
|
|
22284
|
+
|
|
22285
|
+
/* ---------------------------------------------------- Visit (issue 1611) */
|
|
22286
|
+
/* map-beside, map-wide, map-entrance: the address in the serif under a thin mark; the entrance photo
|
|
22287
|
+
* and the wide map's sheet take the soft radius. */
|
|
22288
|
+
[data-skin="folio"] [data-arrangement]:is([data-treat="map-beside"], [data-treat="map-wide"], [data-treat="map-entrance"]) [data-slot="headline"] { font-family: var(--font-heading); font-size: clamp(1.375rem, 2cqi, 1.625rem); font-weight: 500; line-height: 1.25; }
|
|
22289
|
+
[data-skin="folio"] [data-arrangement]:is([data-treat="map-beside"], [data-treat="map-wide"], [data-treat="map-entrance"]) [data-slot="copy"]::before { content: ""; display: block; width: var(--rb-skin-mark-length, 44px); height: var(--rb-skin-mark-weight, 2px); margin-bottom: 0.625rem; background: var(--rb-surface-mark-color); }
|
|
22290
|
+
[data-skin="folio"] [data-arrangement][data-treat="map-wide"] [data-slot="panel"],
|
|
22291
|
+
[data-skin="folio"] [data-arrangement][data-treat="map-entrance"] [data-slot="media"] { border-radius: var(--rb-skin-radius, 10px); }
|
|
22292
|
+
|
|
22293
|
+
/* Geometry display contract (issue 1611). Theme-core's map token contract
|
|
22294
|
+
* (surfaces/mapDrawingTokens.ts) supplies every --map-* value from the section
|
|
22295
|
+
* ground and site style. Fallbacks use existing opaque section theme roles,
|
|
22296
|
+
* never artifact colours. */
|
|
22297
|
+
:where(.theme-scope) .rb-map-drawing{margin:0;width:100%;container-type:inline-size}
|
|
22298
|
+
:where(.theme-scope) .rb-map-drawing-crop{position:relative;overflow:hidden;width:100%;min-height:max(255px,37.5cqw);box-sizing:border-box;border:var(--map-frame-width,1px) solid var(--map-frame-color,rgb(var(--tb-border)));border-radius:var(--map-frame-radius,0);box-shadow:var(--map-frame-shadow,none);background:var(--map-land,rgb(var(--tb-surface)))}
|
|
22299
|
+
:where(.theme-scope) .rb-map-drawing svg{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,680px);height:auto;aspect-ratio:1}
|
|
22300
|
+
:where(.theme-scope) .rb-map-drawing figcaption{font-size:.75rem;line-height:1.4;padding-top:.5rem;color:var(--rb-surface-muted-color,var(--rb-surface-text-color,currentColor))}
|
|
22301
|
+
:where(.theme-scope) .rb-map-drawing figcaption a{color:inherit;text-decoration:underline;text-underline-offset:2px}
|
|
22302
|
+
:where(.theme-scope) .rb-map-drawing .map-land{fill:var(--map-land,rgb(var(--tb-surface)))}
|
|
22303
|
+
:where(.theme-scope) .rb-map-drawing .map-water{fill:var(--map-water,rgb(var(--tb-background)))}
|
|
22304
|
+
:where(.theme-scope) .rb-map-drawing .map-park{fill:var(--map-park,rgb(var(--tb-surface)))}
|
|
22305
|
+
:where(.theme-scope) .rb-map-drawing .map-building{fill:var(--map-building,rgb(var(--tb-surface)));stroke:var(--map-building-edge,rgb(var(--tb-border)));stroke-width:.75}
|
|
22306
|
+
:where(.theme-scope) .rb-map-drawing [class^=map-road]{fill:none;stroke-linecap:round;stroke-linejoin:round}
|
|
22307
|
+
/* Casing width is the stroke plus a style-scaled edge (scale 1 gives the tuned 13/8.5 and 7/4). */
|
|
22308
|
+
:where(.theme-scope) .rb-map-drawing .map-road-major-casing{stroke:var(--map-road-major-casing,rgb(var(--tb-border)));stroke-width:calc(10 + 3 * var(--map-casing-scale,1))}
|
|
22309
|
+
:where(.theme-scope) .rb-map-drawing .map-road-major{stroke:var(--map-road-major,rgb(var(--tb-surface)));stroke-width:10}
|
|
22310
|
+
:where(.theme-scope) .rb-map-drawing .map-road-minor-casing{stroke:var(--map-road-casing,rgb(var(--tb-border)));stroke-width:calc(6 + 2.5 * var(--map-casing-scale,1))}
|
|
22311
|
+
:where(.theme-scope) .rb-map-drawing .map-road-minor{stroke:var(--map-road,rgb(var(--tb-surface)));stroke-width:6}
|
|
22312
|
+
:where(.theme-scope) .rb-map-drawing .map-road-path{stroke:var(--map-path,rgb(var(--tb-text)));stroke-width:1.4;stroke-dasharray:4 3}
|
|
22313
|
+
:where(.theme-scope) .rb-map-drawing .map-wider .map-road-major-casing{stroke-width:calc(5 + 2 * var(--map-casing-scale,1))}
|
|
22314
|
+
:where(.theme-scope) .rb-map-drawing .map-wider .map-road-major{stroke-width:5}
|
|
22315
|
+
:where(.theme-scope) .rb-map-drawing .map-wider .map-road-minor-casing{stroke-width:calc(2.5 + 1.5 * var(--map-casing-scale,1))}
|
|
22316
|
+
:where(.theme-scope) .rb-map-drawing .map-wider .map-road-minor{stroke-width:2.5}
|
|
22317
|
+
/* Labels stay 12.5 units: the generator's collision budget assumes a compact face no larger than 13. */
|
|
22318
|
+
:where(.theme-scope) .rb-map-drawing .map-label,:where(.theme-scope) .rb-map-drawing .map-label-halo{text-anchor:middle;dominant-baseline:central;font-family:var(--map-label-font,system-ui,sans-serif);font-size:12.5px;font-weight:var(--map-label-weight,500);font-style:normal;letter-spacing:.01em;text-transform:none}
|
|
22319
|
+
:where(.theme-scope) .rb-map-drawing .map-label{fill:var(--map-label,rgb(var(--tb-text)))}
|
|
22320
|
+
:where(.theme-scope) .rb-map-drawing .map-label-halo{fill:none;stroke:var(--map-label-halo,rgb(var(--tb-surface)));stroke-width:3.5;stroke-linejoin:round}
|
|
22321
|
+
/* Unbound surfaces (event details and cards) draw on the surface fallback, where an accent pin can vanish
|
|
22322
|
+
* (Poster's light blue on near-white); the text ink always stands off the surface. */
|
|
22323
|
+
:where(.theme-scope) .rb-map-drawing .map-pin{fill:var(--map-pin,rgb(var(--tb-text)));stroke:var(--map-pin-edge,rgb(var(--tb-surface)));stroke-width:2}
|
|
22324
|
+
|
|
22325
|
+
/* 400 visible units at .85 px/unit need 340 px. At narrower containers retain details only. */
|
|
22326
|
+
@container (max-width: 339px) {
|
|
22327
|
+
:where(.theme-scope) .rb-map-drawing-crop, :where(.theme-scope) .rb-map-drawing figcaption { display: none; }
|
|
22328
|
+
}
|
|
22329
|
+
|
|
22330
|
+
/* Map block details (issue 1611): address, door note, directions and hours under the drawing.
|
|
22331
|
+
* Colours come from the section's surface roles, so every ground reads the same way. */
|
|
22332
|
+
:where(.theme-scope) .rb-location-map{display:grid;gap:clamp(1.25rem,3cqi,2rem);text-align:left;container-type:inline-size}
|
|
22333
|
+
:where(.theme-scope) .rb-location-map-details{display:grid;gap:1.75rem 3rem;align-items:start}
|
|
22334
|
+
:where(.theme-scope) .rb-location-map-place{display:grid;gap:.5rem;justify-items:start;min-width:0}
|
|
22335
|
+
:where(.theme-scope) .rb-location-map-address{margin:0;font-size:1.0625rem;line-height:1.5;font-weight:500;color:var(--rb-surface-heading-color,var(--rb-surface-text-color,inherit));max-width:40ch}
|
|
22336
|
+
/* The door note is directions people need, so it reads in the text ink (softened, as in the mockup), not the muted role. */
|
|
22337
|
+
:where(.theme-scope) .rb-location-map-door{margin:0;line-height:1.55;color:color-mix(in srgb,var(--rb-surface-text-color,currentColor) 82%,transparent);max-width:52ch}
|
|
22338
|
+
:where(.theme-scope) .rb-location-map-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1.5rem;margin-top:.75rem}
|
|
22339
|
+
:where(.theme-scope) .rb-location-map-link{color:var(--rb-surface-link-color,var(--rb-surface-text-color,inherit));font-weight:500;text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:1px}
|
|
22340
|
+
:where(.theme-scope) .rb-location-map-link:hover{color:var(--rb-surface-link-hover-color,var(--rb-surface-link-color,inherit));text-decoration-thickness:2px}
|
|
22341
|
+
:where(.theme-scope) .rb-location-map-hours{min-width:0}
|
|
22342
|
+
:where(.theme-scope) .rb-location-map-hours table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
|
|
22343
|
+
:where(.theme-scope) .rb-location-map-hours caption{text-align:left;font-weight:600;padding-bottom:.5rem;color:var(--rb-surface-heading-color,var(--rb-surface-text-color,inherit))}
|
|
22344
|
+
:where(.theme-scope) .rb-location-map-hours th,:where(.theme-scope) .rb-location-map-hours td{padding:.4rem 0;border-top:1px solid var(--rb-surface-line-color,color-mix(in srgb,currentColor 18%,transparent));font-weight:400;text-align:left;vertical-align:top}
|
|
22345
|
+
:where(.theme-scope) .rb-location-map-hours td{text-align:right;padding-left:1.5rem}
|
|
22346
|
+
:where(.theme-scope) .rb-location-map-hours tr[data-closed] :is(th,td){color:var(--rb-surface-muted-color,var(--rb-surface-text-color,inherit))}
|
|
22347
|
+
:where(.theme-scope) .rb-location-map-hours p{margin:.6rem 0 0;color:var(--rb-surface-muted-color,var(--rb-surface-text-color,inherit))}
|
|
22348
|
+
@container (min-width: 640px) {
|
|
22349
|
+
:where(.theme-scope) .rb-location-map-details{grid-template-columns:minmax(0,1fr) minmax(15rem,21rem)}
|
|
22350
|
+
}`;
|
|
22193
22351
|
//#endregion
|
|
22194
22352
|
//#region ../theme-core/src/ThemeScopeCore.tsx
|
|
22195
22353
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ThemeScopeCore, t as buildThemeBridgeRuntime } from "./src-
|
|
1
|
+
import { i as ThemeScopeCore, t as buildThemeBridgeRuntime } from "./src-ILxc6pid.mjs";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/theme-bridge/generateCssVars.ts
|
package/dist/server/theme.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as parseThemeForPersistence, r as themeSchema$1 } from "./schema-
|
|
1
|
+
import { R as parseThemeForPersistence, r as themeSchema$1 } from "./schema-CD4peO7m.mjs";
|
|
2
2
|
import * as fs from "fs/promises";
|
|
3
3
|
import * as path from "path";
|
|
4
4
|
//#region src/theme/loader.ts
|
|
@@ -1,8 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { at as boxBackgroundSchema, ot as runtimeBoxBackgroundSchema } from "./schema-C3dJ5UkL.mjs";
|
|
1
|
+
import { at as boxBackgroundSchema, dt as mediaSchema, hr as parseContentVersionId, ot as runtimeBoxBackgroundSchema, pt as runtimeMediaSchema, vt as mediaIdentifierSchema } from "./schema-CD4peO7m.mjs";
|
|
2
|
+
import { Bi as resolveRepeaterGridColumnsForBreakpoint, Ei as parseFieldDefinitions, Hi as resolveRepeaterGridSpanFieldId, Ii as projectRepeaterGridLayoutForRendering, Li as buildRepeaterGridLayout, Ni as linkSchema, Ri as parseRepeaterGridInteger, Vi as resolveRepeaterGridRowFieldId, Wi as isRecord$1, _i as plainTextToInlineText, c as sanitizeNewsletterSignupPublicContent, ca as projectPublicLocation, gi as parseInlineTextFromUnknown, la as publicLocationSchema, mi as inlineTextToPlainText, oa as locationValueSchema, t as getBlockDefinition, ti as parseBlockIconValue, vi as DEFAULT_MEDIA_FIELD_KINDS, wa as toUtcIsoDateTimeString, wi as normalizeSelectSource, xa as resolveBookingBusinessTimeZone, yi as PUBLIC_FILE_FIELD_KINDS, zi as resolveRepeaterGridColumnFieldId } from "./registry-BVfCqaCq.mjs";
|
|
4
3
|
import { r as isRichTextDoc } from "./richTextSchema-YYc85FX4.mjs";
|
|
5
4
|
import { z } from "zod";
|
|
5
|
+
//#region ../core/src/location-relationship.ts
|
|
6
|
+
/** Initial bounded policy; Opus can tune these values without changing callers. */
|
|
7
|
+
const LOCATION_MATCH_THRESHOLDS_METRES = {
|
|
8
|
+
building: 100,
|
|
9
|
+
street: 300,
|
|
10
|
+
area: 1e3
|
|
11
|
+
};
|
|
12
|
+
function locationDistanceMetres(a, b) {
|
|
13
|
+
const radians = Math.PI / 180;
|
|
14
|
+
const haversine = Math.sin((b.lat - a.lat) * radians / 2) ** 2 + Math.cos(a.lat * radians) * Math.cos(b.lat * radians) * Math.sin((b.lng - a.lng) * radians / 2) ** 2;
|
|
15
|
+
return 6371e3 * 2 * Math.asin(Math.sqrt(Math.min(1, Math.max(0, haversine))));
|
|
16
|
+
}
|
|
17
|
+
/** Arrival pins are never substituted for missing provider address points. */
|
|
18
|
+
function decideLocationRelationship(location) {
|
|
19
|
+
if (location === null) return { kind: "empty" };
|
|
20
|
+
if (location.pin === null) return { kind: "address_only" };
|
|
21
|
+
if (location.address === null) return { kind: "pin_only" };
|
|
22
|
+
if (location.addressMatch === null) return { kind: "unchecked" };
|
|
23
|
+
const { point, precision } = location.addressMatch;
|
|
24
|
+
const distanceMetres = locationDistanceMetres(point, location.pin);
|
|
25
|
+
const thresholdMetres = LOCATION_MATCH_THRESHOLDS_METRES[precision === "unknown" ? "building" : precision];
|
|
26
|
+
return {
|
|
27
|
+
kind: distanceMetres > thresholdMetres * (1 + 8 * Number.EPSILON) ? "far" : precision === "building" || precision === "unknown" ? "near" : "approximate",
|
|
28
|
+
distanceMetres,
|
|
29
|
+
thresholdMetres,
|
|
30
|
+
precision
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/** Forms receive the decided save value, rather than a collection of flags. */
|
|
34
|
+
function decideLocationSave(location, activity) {
|
|
35
|
+
if (activity === "address-check") return {
|
|
36
|
+
kind: "blocked",
|
|
37
|
+
reason: "pending_address_check"
|
|
38
|
+
};
|
|
39
|
+
if (activity === "reverse") return {
|
|
40
|
+
kind: "blocked",
|
|
41
|
+
reason: "pending_reverse"
|
|
42
|
+
};
|
|
43
|
+
return decideLocationRelationship(location).kind === "far" && location?.ownerConfirmedPinAndAddress !== true ? {
|
|
44
|
+
kind: "blocked",
|
|
45
|
+
reason: "unconfirmed_mismatch"
|
|
46
|
+
} : {
|
|
47
|
+
kind: "ready",
|
|
48
|
+
location
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
6
52
|
//#region ../core/src/block-content-identity.ts
|
|
7
53
|
function readContentVersionId(value) {
|
|
8
54
|
const parsed = parseContentVersionId(value);
|
|
@@ -76,7 +122,9 @@ function canonicalizeObjectForWrite(plans, value) {
|
|
|
76
122
|
function canonicalizeFieldValue(plan, value) {
|
|
77
123
|
switch (plan.kind) {
|
|
78
124
|
case "media": return canonicalizeMedia(value);
|
|
79
|
-
case "group":
|
|
125
|
+
case "group":
|
|
126
|
+
if (plan.valueContract === "location") return value;
|
|
127
|
+
return plan.childSelection.kind === "discriminatedTabs" ? canonicalizeDiscriminatedGroup(plan, value) : canonicalizeObjectForWrite(plan.childSelection.fields, value);
|
|
80
128
|
case "repeater": return canonicalizeRepeater(plan, value);
|
|
81
129
|
case "string":
|
|
82
130
|
case "number":
|
|
@@ -282,7 +330,7 @@ function pluralize(label, count) {
|
|
|
282
330
|
return label.endsWith("s") ? label : `${label}s`;
|
|
283
331
|
}
|
|
284
332
|
function valueContractForField(field) {
|
|
285
|
-
return field.ui?.valueContract
|
|
333
|
+
return field.ui?.valueContract !== void 0 ? { valueContract: field.ui.valueContract } : {};
|
|
286
334
|
}
|
|
287
335
|
function deriveTabGroupValidationPlan(field, path, required) {
|
|
288
336
|
return {
|
|
@@ -391,7 +439,8 @@ function deriveFieldValidationPlan(field, path = [field.id]) {
|
|
|
391
439
|
kind: "all",
|
|
392
440
|
fields: deriveNestedFieldPlans(field.schema?.fields ?? [], path)
|
|
393
441
|
},
|
|
394
|
-
allowNullChildren: field.type === "group" && field.ui?.widget === "locationPicker"
|
|
442
|
+
allowNullChildren: field.type === "group" && field.ui?.widget === "locationPicker",
|
|
443
|
+
...valueContractForField(field)
|
|
395
444
|
};
|
|
396
445
|
case "tabGroup": return deriveTabGroupValidationPlan(field, path, required);
|
|
397
446
|
case "presetOrCustom":
|
|
@@ -526,7 +575,9 @@ function normalizeManifestContentForWrite(plans, content, options = {}) {
|
|
|
526
575
|
function normalizeStoredFieldValueWithContext(plan, value, ctx) {
|
|
527
576
|
if (value === null && !plan.required) return;
|
|
528
577
|
switch (plan.kind) {
|
|
529
|
-
case "group":
|
|
578
|
+
case "group":
|
|
579
|
+
if (plan.valueContract === "location") return normalizeLocationContract(value, ctx.mode);
|
|
580
|
+
return normalizeStoredObjectChildren(selectedGroupChildPlans(plan, value), value, childValidationContext(plan, ctx));
|
|
530
581
|
case "repeater": return normalizeStoredRepeaterItems(plan, value, ctx);
|
|
531
582
|
case "string":
|
|
532
583
|
case "number":
|
|
@@ -562,7 +613,9 @@ function normalizeFieldValue(plan, value, ctx) {
|
|
|
562
613
|
switch (plan.kind) {
|
|
563
614
|
case "number": return normalizeNumberInput(value, ctx.allowNull);
|
|
564
615
|
case "string": return acceptsOptionalBlankAsMissing(plan, value) ? void 0 : value;
|
|
565
|
-
case "group":
|
|
616
|
+
case "group":
|
|
617
|
+
if (plan.valueContract === "location") return normalizeLocationContract(value, ctx.mode);
|
|
618
|
+
return normalizeObjectChildren(selectedGroupChildPlans(plan, value), value, childValidationContext(plan, ctx));
|
|
566
619
|
case "repeater": return normalizeRepeaterItems(plan, value, ctx);
|
|
567
620
|
case "link":
|
|
568
621
|
case "boolean":
|
|
@@ -652,7 +705,7 @@ function acceptsNullValue(plan, ctx) {
|
|
|
652
705
|
return ctx.mode === "storable" ? !plan.required : ctx.allowNull || acceptsOptionalNullValue(plan);
|
|
653
706
|
}
|
|
654
707
|
function acceptsOptionalNullValue(plan) {
|
|
655
|
-
return !plan.required && (plan.kind === "media" || plan.kind === "number");
|
|
708
|
+
return !plan.required && (plan.kind === "media" || plan.kind === "number" || plan.kind === "group" && plan.valueContract === "location");
|
|
656
709
|
}
|
|
657
710
|
function isMissingForPlan(plan, value, mode) {
|
|
658
711
|
if (value === void 0) return true;
|
|
@@ -812,6 +865,7 @@ function validateFlattenedGroupContainers(groupIds, item, plan, index, ctx) {
|
|
|
812
865
|
}] : []);
|
|
813
866
|
}
|
|
814
867
|
function validateGroupPlan(plan, value, ctx) {
|
|
868
|
+
if (plan.valueContract === "location") return validateLocationGroupContract(plan, value, ctx);
|
|
815
869
|
if (!isPlainObject(value)) return [issue(plan, "wrongType", { expected: "an object" })];
|
|
816
870
|
if (plan.childSelection.kind === "discriminatedTabs") {
|
|
817
871
|
const selectedType = value[plan.childSelection.activeTabField];
|
|
@@ -825,8 +879,7 @@ function validateGroupPlan(plan, value, ctx) {
|
|
|
825
879
|
const childCtx = childValidationContext(plan, ctx);
|
|
826
880
|
const childIssues = selectedGroupChildPlans(plan, value).flatMap((childPlan) => validateNormalizedFieldValue(childPlan, value[childPlan.fieldId], childCtx));
|
|
827
881
|
if (childIssues.length > 0) return childIssues;
|
|
828
|
-
|
|
829
|
-
return [];
|
|
882
|
+
return validateGroupBackgroundContract(plan, value, ctx);
|
|
830
883
|
}
|
|
831
884
|
function childValidationContext(plan, ctx) {
|
|
832
885
|
return plan.allowNullChildren ? {
|
|
@@ -936,12 +989,12 @@ function fieldPlanToStrictObjectPropertyZod(plan, mode = "strict", layoutGridCoo
|
|
|
936
989
|
}),
|
|
937
990
|
layoutGridCoordinates
|
|
938
991
|
};
|
|
939
|
-
const
|
|
992
|
+
const projected = z.any().superRefine((value, zodCtx) => {
|
|
940
993
|
validateNormalizedFieldValue(plan, value, ctx).forEach((validationIssue) => {
|
|
941
994
|
addFieldIssueToZodContext(zodCtx, validationIssue, plan.path);
|
|
942
995
|
});
|
|
943
|
-
});
|
|
944
|
-
return plan.required ?
|
|
996
|
+
}).transform((value) => mode === "render" && plan.kind === "group" && plan.valueContract === "location" ? normalizeLocationContract(value, "render") : value);
|
|
997
|
+
return plan.required ? projected : projected.optional();
|
|
945
998
|
}
|
|
946
999
|
function fieldIssueToZodDetail(issue) {
|
|
947
1000
|
if (issue.kind === "required") return issue.emptyOrigin ? {
|
|
@@ -1071,6 +1124,28 @@ function isEmptyRichTextDoc(value) {
|
|
|
1071
1124
|
const first = content[0];
|
|
1072
1125
|
return first?.type === "paragraph" && (!Array.isArray(first.content) || first.content.length === 0);
|
|
1073
1126
|
}
|
|
1127
|
+
function normalizeLocationContract(value, mode) {
|
|
1128
|
+
const canonical = locationValueSchema.safeParse(value);
|
|
1129
|
+
if (canonical.success) return mode === "render" ? projectPublicLocation(canonical.data) : canonical.data;
|
|
1130
|
+
const publicValue = mode === "render" ? publicLocationSchema.safeParse(value) : null;
|
|
1131
|
+
return publicValue?.success ? publicValue.data : value;
|
|
1132
|
+
}
|
|
1133
|
+
function validateLocationGroupContract(plan, value, ctx) {
|
|
1134
|
+
if (isRenderLocationRecovery(value, ctx.mode)) return [];
|
|
1135
|
+
if (!(ctx.mode === "render" || ctx.mode === "render-source" ? z.union([locationValueSchema, publicLocationSchema]) : locationValueSchema).safeParse(value).success) return [issue(plan, "wrongType", { expected: "a valid location" })];
|
|
1136
|
+
if (ctx.mode === "storable" || ctx.mode === "strict") {
|
|
1137
|
+
const canonical = locationValueSchema.safeParse(value);
|
|
1138
|
+
if (canonical.success && decideLocationSave(canonical.data, "idle").kind === "blocked") return [issue(plan, "wrongType", { expected: "a confirmed address and pin" })];
|
|
1139
|
+
}
|
|
1140
|
+
return [];
|
|
1141
|
+
}
|
|
1142
|
+
function validateGroupBackgroundContract(plan, value, ctx) {
|
|
1143
|
+
if (plan.valueContract === "boxBackground" && !(ctx.mode === "render" ? runtimeBoxBackgroundSchema : boxBackgroundSchema).safeParse(value).success) return [issue(plan, "invalidBoxBackground")];
|
|
1144
|
+
return [];
|
|
1145
|
+
}
|
|
1146
|
+
function isRenderLocationRecovery(value, mode) {
|
|
1147
|
+
return (mode === "render" || mode === "render-source") && z.strictObject({ kind: z.literal("needs_place") }).safeParse(value).success;
|
|
1148
|
+
}
|
|
1074
1149
|
//#endregion
|
|
1075
1150
|
//#region ../blocks/src/system/manifest/fieldValidation/layoutGridRendering.ts
|
|
1076
1151
|
function invalidCoordinateIds(plan, items, itemIds) {
|
|
@@ -1116,7 +1191,7 @@ function projectLayoutGridPlansForRendering(plans, value, rootValues = layoutGri
|
|
|
1116
1191
|
if (!values) return value;
|
|
1117
1192
|
return plans.reduce((projected, plan) => {
|
|
1118
1193
|
const fieldValue = projected[plan.fieldId];
|
|
1119
|
-
const next = plan.kind === "group" ? projectLayoutGridPlansForRendering(allGroupChildPlans(plan), fieldValue, rootValues) : plan.kind === "repeater" && Array.isArray(fieldValue) ? projectGrid(plan, fieldValue, rootValues).map((item) => {
|
|
1194
|
+
const next = plan.kind === "group" && plan.valueContract === "location" ? recoverUnreadableLocation(fieldValue) : plan.kind === "group" ? projectLayoutGridPlansForRendering(allGroupChildPlans(plan), fieldValue, rootValues) : plan.kind === "repeater" && Array.isArray(fieldValue) ? projectGrid(plan, fieldValue, rootValues).map((item) => {
|
|
1120
1195
|
const row = layoutGridRecord(item);
|
|
1121
1196
|
return row ? projectLayoutGridPlansForRendering(resolveLayoutGridItemPlans(plan, row), row, rootValues) : item;
|
|
1122
1197
|
}) : fieldValue;
|
|
@@ -1126,6 +1201,11 @@ function projectLayoutGridPlansForRendering(plans, value, rootValues = layoutGri
|
|
|
1126
1201
|
};
|
|
1127
1202
|
}, values);
|
|
1128
1203
|
}
|
|
1204
|
+
/** Render recovery drops unreadable meaning rather than interpreting obsolete coordinates. */
|
|
1205
|
+
function recoverUnreadableLocation(value) {
|
|
1206
|
+
if (value == null || locationValueSchema.safeParse(value).success || publicLocationSchema.safeParse(value).success) return value;
|
|
1207
|
+
return { kind: "needs_place" };
|
|
1208
|
+
}
|
|
1129
1209
|
//#endregion
|
|
1130
1210
|
//#region ../blocks/src/system/manifest/validation.ts
|
|
1131
1211
|
const compiledManifestContentContract = Symbol("compiledManifestContentContract");
|
|
@@ -1182,7 +1262,7 @@ function unknownManifestFieldPaths(plans, value, parent = [], discriminator) {
|
|
|
1182
1262
|
}
|
|
1183
1263
|
function nestedUnknownManifestFieldPaths(plan, value, path) {
|
|
1184
1264
|
if (plan.kind === "group") {
|
|
1185
|
-
if (plan.valueContract
|
|
1265
|
+
if (plan.valueContract !== void 0) return [];
|
|
1186
1266
|
const selection = plan.childSelection;
|
|
1187
1267
|
return unknownManifestFieldPaths(allGroupChildPlans(plan), value, path, selection.kind === "discriminatedTabs" ? selection.activeTabField : void 0);
|
|
1188
1268
|
}
|
|
@@ -1218,7 +1298,7 @@ function admitTransportedRenderableManifestContent(contract, content) {
|
|
|
1218
1298
|
const parsed = state.renderSchema.safeParse(projected);
|
|
1219
1299
|
return parsed.success ? {
|
|
1220
1300
|
ok: true,
|
|
1221
|
-
value:
|
|
1301
|
+
value: parsed.data
|
|
1222
1302
|
} : {
|
|
1223
1303
|
ok: false,
|
|
1224
1304
|
error: zodAdmissionError(parsed.error)
|
|
@@ -1244,7 +1324,7 @@ function deriveContentZodFromPlans(plans, options, validateLayoutGrids = true) {
|
|
|
1244
1324
|
});
|
|
1245
1325
|
}
|
|
1246
1326
|
function deriveStrictContentZodFromPlans(plans, mode = "strict") {
|
|
1247
|
-
const shape = Object.fromEntries(plans.map((plan) => [plan.fieldId, fieldPlanToStrictObjectPropertyZod(plan, mode
|
|
1327
|
+
const shape = Object.fromEntries(plans.map((plan) => [plan.fieldId, fieldPlanToStrictObjectPropertyZod(plan, mode, mode === "strict" ? "validate" : "projected")]));
|
|
1248
1328
|
return z.object(shape).catchall(z.unknown()).passthrough().superRefine((values, ctx) => {
|
|
1249
1329
|
if (mode !== "strict") return;
|
|
1250
1330
|
validateLayoutGridPlans(plans, values).forEach((issue) => {
|
|
@@ -1321,7 +1401,7 @@ function visitRepeatedMedia(plan, value, path, visit) {
|
|
|
1321
1401
|
function collectNonPortablePlannedMedia(plans, content, parentPath, paths) {
|
|
1322
1402
|
visitPlannedMedia(plans, content, parentPath, (value, path, kind) => {
|
|
1323
1403
|
if (kind === "richText") collectNonPortableRichTextImages(value, path, paths);
|
|
1324
|
-
else if (
|
|
1404
|
+
else if (value !== null && value !== void 0 && !mediaSchema.safeParse(value).success) paths.add(formatFieldPath(path));
|
|
1325
1405
|
});
|
|
1326
1406
|
}
|
|
1327
1407
|
function collectNonPortableRichTextImages(value, path, paths) {
|
|
@@ -1336,10 +1416,6 @@ function isPlainRecord(value) {
|
|
|
1336
1416
|
function hasEnvironmentSpecificMediaField(value) {
|
|
1337
1417
|
return "assetId" in value || "storageBucket" in value || "storagePath" in value || "src" in value || "mimeType" in value || looksLikeUuid(value.id);
|
|
1338
1418
|
}
|
|
1339
|
-
function hasNonPortablePoster(value) {
|
|
1340
|
-
if (value.poster === void 0) return false;
|
|
1341
|
-
return !mediaPosterSchema.safeParse(value.poster).success;
|
|
1342
|
-
}
|
|
1343
1419
|
//#endregion
|
|
1344
1420
|
//#region src/rendering/helpers/siteCustomBlocks.ts
|
|
1345
1421
|
/**
|
|
@@ -1357,16 +1433,21 @@ function resolveSiteCustomBlocks(site) {
|
|
|
1357
1433
|
}
|
|
1358
1434
|
//#endregion
|
|
1359
1435
|
//#region src/rendering/helpers/pageRuntimeSupport.ts
|
|
1360
|
-
function buildSiteRenderSupport(site, mediaAssets) {
|
|
1436
|
+
function buildSiteRenderSupport(site, mediaAssets, locationMapSupport) {
|
|
1361
1437
|
const customBlocks = resolveSiteCustomBlocks(site);
|
|
1362
1438
|
return {
|
|
1363
1439
|
theme: site.theme,
|
|
1364
|
-
site:
|
|
1440
|
+
site: locationMapSupport ? {
|
|
1441
|
+
...site.site,
|
|
1442
|
+
venuesById: locationMapSupport.venuesById
|
|
1443
|
+
} : site.site,
|
|
1365
1444
|
sdkConfig: site.sdkConfig ?? null,
|
|
1366
1445
|
bookingOfferingPresets: site.bookingOfferingPresets ?? [],
|
|
1367
1446
|
openingHours: site.businessDetails?.openingHours ?? null,
|
|
1368
1447
|
siteTerms: site.siteTerms,
|
|
1369
1448
|
mailingList: site.mailingList,
|
|
1449
|
+
businessLocationPermission: site.site.businessLocationPermission,
|
|
1450
|
+
businessAddressVisibility: site.businessDetails?.addressVisibility ?? "hidden",
|
|
1370
1451
|
bookingTimeZone: resolveBookingBusinessTimeZone(site.bookingTimeZone),
|
|
1371
1452
|
now: toUtcIsoDateTimeString((/* @__PURE__ */ new Date()).toISOString()),
|
|
1372
1453
|
...customBlocks ? { customBlocks } : {},
|
|
@@ -1377,6 +1458,16 @@ function buildSiteRenderSupport(site, mediaAssets) {
|
|
|
1377
1458
|
...mediaAssets ? { mediaAssets } : {}
|
|
1378
1459
|
};
|
|
1379
1460
|
}
|
|
1461
|
+
/** Only already-permitted projections reach the block runtime. */
|
|
1462
|
+
function siteLocationRenderContext(support) {
|
|
1463
|
+
return {
|
|
1464
|
+
businessLocationPermission: support.site.businessLocationPermission,
|
|
1465
|
+
businessAddressVisibility: support.businessAddressVisibility ?? "hidden",
|
|
1466
|
+
businessLocation: support.site.businessLocation ?? null,
|
|
1467
|
+
venuesById: support.site.venuesById ?? {},
|
|
1468
|
+
siteCountry: support.site.siteCountry ?? null
|
|
1469
|
+
};
|
|
1470
|
+
}
|
|
1380
1471
|
function collectMediaAssetSidecar(mediaAssets) {
|
|
1381
1472
|
return Array.isArray(mediaAssets) && mediaAssets.length > 0 ? mediaAssets : void 0;
|
|
1382
1473
|
}
|
|
@@ -1539,4 +1630,4 @@ function requireSdkTheme(theme, siteId, reason = "cms_theme_absent") {
|
|
|
1539
1630
|
return theme;
|
|
1540
1631
|
}
|
|
1541
1632
|
//#endregion
|
|
1542
|
-
export {
|
|
1633
|
+
export { validateManifestDraft as _, buildSiteRenderSupport as a, readPublishedBlockPlacement as b, projectRenderablePageOutline as c, resolveSdkBlockManifest as d, sanitizeSdkRuntimeBlockContent as f, compileManifestContentContract as g, admitTransportedRenderableManifestContent as h, buildRenderablePageOutline as i, readInvalidBlockAdmission as l, resolveSiteCustomBlocks as m, MissingSdkThemeError as n, collectMediaAssetSidecar as o, siteLocationRenderContext as p, requireSdkTheme as r, invalidRenderableBlock as s, MISSING_SDK_THEME_ERROR_CODE as t, readSdkPreviewPublishedPlacement as u, admitLayoutGridForPlan as v, deriveFieldValidationPlan as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as SDK_WORKFLOW_ENDPOINT_PATTERN, c as navigationLinkInputSchemaOptions, i as collectPortalLinkStats, l as footerModeSchema, o as SDK_WORKFLOW_ID_PATTERN, r as collectCartLinkStats, s as loaderFallbackScalarSchema, t as SUPPORTED_LOADER_ENDPOINTS, y as builtinTransformDefinitions } from "./prefetchBlockData-
|
|
1
|
+
import { Ai as NodeSchema, Ci as fieldSchema, Di as validateManifestLookField, Oi as sdkBlockPresentationShape, Si as builtInBlockKindsSchema, bi as blockCategoryEnum, ki as validateSdkBlockDeclaration, t as getBlockDefinition, xi as blockSectionDeclarationShape } from "./registry-BVfCqaCq.mjs";
|
|
2
|
+
import { a as SDK_WORKFLOW_ENDPOINT_PATTERN, c as navigationLinkInputSchemaOptions, i as collectPortalLinkStats, l as footerModeSchema, o as SDK_WORKFLOW_ID_PATTERN, r as collectCartLinkStats, s as loaderFallbackScalarSchema, t as SUPPORTED_LOADER_ENDPOINTS, y as builtinTransformDefinitions } from "./prefetchBlockData-CqJnokWJ.mjs";
|
|
3
3
|
import { a as ALLOWED_TRANSFORM_IDS_SET, r as ALLOWED_NODE_TYPES_SET, t as titleSourceValueSchema } from "./titleSourceSchema-DwKJfMYb.mjs";
|
|
4
4
|
import { n as collectBookingReservedFieldCollisions, t as APPOINTMENT_BOOKING_BLOCK_ID } from "./booking-form.reserved-fields-BWRF7509.mjs";
|
|
5
5
|
import { t as SYSTEM_BLOCK_KINDS } from "./block-kinds-CdI7NvAW.mjs";
|