@riverbankcms/sdk 0.174.1 → 0.176.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-YRmc-Yxz.d.ts → BlocksIslandsHydrator-DvoTk7Py.d.ts} +1 -1
- package/dist/_dts/{Page-Du0zX1B-.d.ts → Page-D-l374tU.d.ts} +8 -16
- package/dist/_dts/{SdkPreviewMode-4L8v3FkY.d.ts → SdkPreviewMode-22DdQAj5.d.ts} +2 -2
- package/dist/_dts/{client-B1J6Akyf.d.ts → client-D4p0J1lK.d.ts} +487 -11
- package/dist/_dts/{content-types-CGGYI0u_.d.ts → content-types-0WWR6dC4.d.ts} +2 -2
- package/dist/_dts/{contracts-CHMlw9hT.d.ts → contracts-f_ZG_SwY.d.ts} +8 -8
- package/dist/_dts/{footerPageOutline-DIHSU1Vr.d.ts → footerPageOutline-DSeZvOaj.d.ts} +85 -8
- package/dist/_dts/{generatePageMetadata-JITXD6BU.d.ts → generatePageMetadata-BlitPA2D.d.ts} +2 -2
- package/dist/_dts/{index-BLEKFHt1.d.ts → index-CKkkCgb6.d.ts} +1 -1
- package/dist/_dts/{index-yWDbUojb.d.ts → index-CoLcwjqJ.d.ts} +1 -1
- package/dist/_dts/{index-DpJm0NpL.d.ts → index-D-ai8IQd.d.ts} +4 -4
- package/dist/_dts/{index-CXZSy_9M.d.ts → index-DDsfmM4d.d.ts} +2 -2
- package/dist/_dts/{index-CF62FntA.d.ts → index-EJMo-KSo.d.ts} +2 -2
- package/dist/_dts/{index-D9ZYmGAJ.d.ts → index-ZKEDvLuN.d.ts} +1 -1
- package/dist/_dts/{index-BgOr1Xyz.d.ts → index-tcPtGdag.d.ts} +3 -3
- package/dist/_dts/{loadContent-M-s0p0rq.d.ts → loadContent-Ci932ORy.d.ts} +7 -7
- package/dist/_dts/{request-BK-pHf0P.d.ts → request-B8jVdvgI.d.ts} +1993 -407
- package/dist/_dts/{resolveBlockData-DZAlnhwt.d.ts → resolveBlockData-DrSMuD76.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-DXUCWJ3y.d.ts → resolvePageContent-Be4iL6-F.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +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/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +13 -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 +3 -3
- 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 +3 -2
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +5 -177
- package/dist/_dts/sdk/src/rendering/index.d.ts +7 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- 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/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +2 -1
- package/dist/_dts/{types-CwmB2NHU.d.ts → types-BXMX4z2j.d.ts} +7 -7
- package/dist/_dts/{types-DjVNADXR.d.ts → types-DXY64Xh4.d.ts} +4 -4
- package/dist/_dts/{types-Dmow_FI6.d.ts → types-lwSgCWZ4.d.ts} +11 -2
- package/dist/_dts/{validation-h8t1HLlL.d.ts → validation-C5xp--Fu.d.ts} +7 -4
- package/dist/client/{BlocksIslandsHydrator-DRVx_XLi.mjs → BlocksIslandsHydrator-CeYQQQs7.mjs} +17 -16
- package/dist/client/{BookingMailingListNote-CwrMzj-k.mjs → BookingMailingListNote-CDDWrY_W.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-C2_hFT6K.mjs → BookingPanelArrangement-BShQSial.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-DZMrGvBh.mjs → BookingQuestionFields-MbvIo2jS.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-Az1-TIEI.mjs → CalendarNavigationChevron-C6CSVfEB.mjs} +36 -11
- package/dist/client/DemoBookingPortalAccess-C9Ggcfx3.mjs +545 -0
- package/dist/client/{EventCalendar.client-CDkkP-Lv.mjs → EventCalendar.client-BSMuSqg0.mjs} +15 -25
- package/dist/client/{EventCombined.client-DK3aaz62.mjs → EventCombined.client-BTrmSyUB.mjs} +25 -17
- package/dist/client/{EventItem-WeUipfIP.mjs → EventItem-B0WjGXsH.mjs} +4 -3
- package/dist/client/{EventListWeekNavigation-D3sbAeDo.mjs → EventListWeekNavigation-8Ij7vuxY.mjs} +1 -1
- package/dist/client/{EventListing.client-DL3gGGmF.mjs → EventListing.client-CWk2NEwd.mjs} +3 -3
- package/dist/client/{EventListing.view-DKFImKOx.mjs → EventListing.view-BEH4UbSL.mjs} +18 -8
- package/dist/client/{EventRegistrationPayment-Dn9TpWyL.mjs → EventRegistrationPayment-B2EikR3f.mjs} +635 -359
- package/dist/client/{LocationMapActions-BJT7MqP2.mjs → LocationMapActions-myIQIvQL.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-DCIwlON6.mjs → MapDrawingSvg-BfsVyPvB.mjs} +2 -22
- package/dist/client/{Page-BpeP9xdt.mjs → Page-F3lhDvw1.mjs} +1036 -953
- package/dist/client/{DemoBookingPortalAccess-1p-pJ1lg.mjs → SiteTermsAgreementField-BYACYP0T.mjs} +4 -301
- package/dist/client/{StepIndicator-CP6zrwkl.mjs → StepIndicator-Bb7rPtSq.mjs} +37 -12
- package/dist/client/{accordion-nR7D4m1a.mjs → accordion-BfsOiweL.mjs} +1 -1
- package/dist/client/{booking-form.client-Ce-mQZ7W.mjs → booking-form.client-B8ohIj13.mjs} +229 -42
- package/dist/client/{bookingForm-B-qT_AQB.mjs → bookingForm-CXsck2oH.mjs} +4 -4
- package/dist/client/bookings.mjs +22 -15
- package/dist/client/{boxStyleClassNames-CrE3TDpW.mjs → boxStyleClassNames-B_hcuT06.mjs} +2 -1
- package/dist/client/{carousel-CVUOatsY.mjs → carousel-Cz5Ddbsx.mjs} +1 -1
- package/dist/client/{cart-DE0K6E0R.mjs → cart-CTC2oS3p.mjs} +3 -3
- package/dist/client/{cart.client-C23E6WQ5.mjs → cart.client-c1YkTC-Q.mjs} +1 -1
- package/dist/client/{checkout-76cdHyPL.mjs → checkout-BeW1ufaH.mjs} +3 -3
- package/dist/client/{checkout.client-DJOzqb26.mjs → checkout.client-BeU32khQ.mjs} +1 -1
- package/dist/client/{checkoutUrls-CvIP5DCO.mjs → checkoutUrls-DVfSUSKp.mjs} +1 -1
- package/dist/client/client.mjs +145 -21
- package/dist/client/{context-CNlesLfF.mjs → context-R9p5c8IH.mjs} +76 -58
- package/dist/client/{course-DHIrXqNT.mjs → course-CUFVJEAc.mjs} +2 -2
- package/dist/client/{creditProducts-KYMVIH3J.mjs → creditProducts-BQ1t1erI.mjs} +14 -61
- package/dist/client/{dateFormatting-B73Ll0s4.mjs → dateFormatting-CF6FWCoo.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BVbLD4pi.mjs → demoPortalMagicLink-tZxIm3RL.mjs} +1 -1
- package/dist/client/display-4HYOb-AK.mjs +11844 -0
- package/dist/client/{enhanceHeaderSection-5GD5o4Mt.mjs → enhanceHeaderSection-DEYDI54E.mjs} +3 -3
- package/dist/client/{event-details.client-D7Oz1q2L.mjs → event-details.client-BwjBJP-f.mjs} +1 -1
- package/dist/client/{event-registration.client-zbuX36aA.mjs → event-registration.client-DWvSODTI.mjs} +176 -75
- package/dist/client/{eventCalendar-uZrksODt.mjs → eventCalendar-C9Pn9eeZ.mjs} +4 -4
- package/dist/client/{eventCombined-DxhvNAx8.mjs → eventCombined-Bdhk0fp0.mjs} +4 -4
- package/dist/client/{eventDetails-DCIH4BYG.mjs → eventDetails-C2LfNW_o.mjs} +2 -2
- package/dist/client/{eventListing-B9KrnPvc.mjs → eventListing-B-bJOQUk.mjs} +4 -4
- package/dist/client/{eventRegistration-TjnURMKl.mjs → eventRegistration-CbdmUiDT.mjs} +4 -4
- package/dist/client/{form-CfqIAhfN.mjs → form-BbUUt784.mjs} +3 -3
- package/dist/client/{form.client-CL6fF0cW.mjs → form.client-BVlz-9_t.mjs} +4 -4
- package/dist/client/{form.parts-Bf-L66Gg.mjs → form.parts-TB4UIrML.mjs} +1 -1
- package/dist/client/{formatDate-Dp7POa9Y.mjs → formatDate-TDHhFjFN.mjs} +1 -1
- package/dist/client/gifting/client.mjs +5 -3
- package/dist/client/gifting-CbNSrp7C.mjs +28 -0
- package/dist/client/gifting.client-B__bGhFc.mjs +404 -0
- package/dist/client/gifting.parts-CTA1sDW6.mjs +86 -0
- package/dist/client/{headerSection-WVXtOcuW.mjs → headerSection-5Wn9nUW_.mjs} +2 -2
- package/dist/client/{display-Cf_j5stk.mjs → lookSurfaces-BwiNdgMU.mjs} +2951 -14395
- package/dist/client/{newsletter-form.client-Bb7GAZpO.mjs → newsletter-form.client-B17WYHxZ.mjs} +7 -5
- package/dist/client/{newsletter-form.parts-BqOVRdIc.mjs → newsletter-form.parts-DN9wD1ZG.mjs} +3 -3
- package/dist/client/{newsletterForm-DOVe-qY3.mjs → newsletterForm-DLMlxInp.mjs} +3 -3
- package/dist/client/{noop-D5mFWXtN.mjs → noop-CaQxI-Js.mjs} +94 -36
- package/dist/client/portal/client.mjs +313 -148
- package/dist/client/{product-detail.client-CNzeFnFf.mjs → product-detail.client-Di_anRGR.mjs} +1 -1
- package/dist/client/{product-list.client-LKpzC7pj.mjs → product-list.client-Duhl6rtL.mjs} +1 -1
- package/dist/client/{productDetail-D2JNeEgx.mjs → productDetail-BgKmCwA8.mjs} +3 -3
- package/dist/client/{productList-DTgZXOEq.mjs → productList-C_wMKsYS.mjs} +3 -3
- package/dist/client/{propsDecoder-mpBQt2AT.mjs → propsDecoder-y3LvxaiG.mjs} +4 -3
- package/dist/client/{registry.server-DdTJyar2.mjs → registry.server-CIWYKz1V.mjs} +369 -246
- package/dist/client/rendering/client.mjs +25 -491
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +87 -21
- package/dist/client/{richText-coerce-C32cRQ03.mjs → richText-coerce-DkPBFb_a.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-8cfSgT0E.mjs → routeIslandApiConfig-BgO0rZce.mjs} +1 -1
- package/dist/client/{shop-5LBhftWx.mjs → shop-CFbWlv_W.mjs} +3 -3
- package/dist/client/{shop-discount-apply.state-D0ifS6KX.mjs → shop-add-feedback-DvC2kP1K.mjs} +1 -78
- package/dist/client/{shop-commerce-DkValjZj.mjs → shop-commerce-C-I29eaA.mjs} +64 -32
- package/dist/client/{shop-commerce-store-BOmXFmk_.mjs → shop-commerce-store-DGcc7twO.mjs} +1 -1
- package/dist/client/shop-discount-apply.state-DOm7vx0X.mjs +83 -0
- package/dist/client/{shop.client-BTtZqNmv.mjs → shop.client-GHTWUKD6.mjs} +56 -19
- package/dist/client/{shop.interactive-DNRqG4aX.mjs → shop.interactive-CxDJ8P2r.mjs} +113 -35
- package/dist/client/{shopShared-Nky6kPYr.mjs → shopShared-Be9QJJpT.mjs} +2 -2
- package/dist/client/{timetableModel-DZArznD_.mjs → timetableModel--R0zVzZO.mjs} +10 -10
- package/dist/client/{useAvailableSlots-CUVRD1nx.mjs → useAvailableSlots-BGu_2F50.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-d7viY_mu.mjs → useDiscountCodeUi-I_mXI9Yd.mjs} +32 -17
- package/dist/client/{useEventPagination-Da2JqxGC.mjs → useEventPagination-DxIJ--JZ.mjs} +7 -6
- package/dist/client/{view-BvuYmQJ5.mjs → view-3foOzGWR.mjs} +3 -2
- package/dist/client/{view-D9ObkFtz.mjs → view-BbzH5MQb.mjs} +128 -32
- package/dist/preview-next/client/{PageSectionToolbar-DwxHT-2k.mjs → PageSectionToolbar-0xyUPWUB.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-D4SBxGU6.mjs → PreviewEditorSidebar-D8vUzXtI.mjs} +61 -55
- package/dist/preview-next/client/{PreviewEditorUI-D8mUct32.mjs → PreviewEditorUI-CRjS4gAu.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-L2AEdNUQ.mjs → PreviewShell-BvdBdeH_.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-bhVAU2D2.mjs → SdkPreviewModeRuntime-DWTyKbFj.mjs} +156 -143
- package/dist/preview-next/client/{previewAssistantSlot-Jpj_HDra.mjs → previewAssistantSlot-BqY2TTcZ.mjs} +4535 -2913
- package/dist/preview-next/client/{previewChromeRoot-CYTDvx4u.mjs → previewChromeRoot-BuRYe2iL.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CZHX6J_4.mjs → sdk-runtime-BnK5kH9f.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-DmGIG9Hk.mjs → siteStyleAccess-DbKozRSn.mjs} +527 -236
- package/dist/preview-next/client/{useAutosaveStatus-DQCyswQ-.mjs → useAutosaveStatus-D9s6dyMW.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-LwE5yXvL.mjs → useOpenBlockForSetup-Ce4WCxpT.mjs} +28 -5
- package/dist/preview-next/container-responsive.css +51 -3
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BOuNcOcN.mjs → route-contract-BYezcMx5.mjs} +94 -12
- package/dist/server/{Block.shared-wfJfhs08.mjs → Block.shared-Cn7gg13_.mjs} +84 -16
- package/dist/server/{ThemeScopeCore-BtrJNHTB.mjs → ThemeScopeCore-DFEM1a85.mjs} +16 -2
- package/dist/server/{bindings-P1CF2Gm6.mjs → bindings-VGgS6UvF.mjs} +13 -34
- package/dist/server/{client-CGtU5fHI.mjs → client-Bvag5OtW.mjs} +145 -22
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{customCss-BGB8gMVb.mjs → customCss-BZ8YSrQg.mjs} +1 -0
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-ChnkJSay.mjs → loadContent-CxASA3PE.mjs} +6 -9
- package/dist/server/{loadPage-DesHhgxj.mjs → loadPage-CQgde5DN.mjs} +2 -2
- package/dist/server/{lookMediaFrame-BBr0mkze.mjs → lookMediaFrame-CaH018pK.mjs} +24 -5
- package/dist/server/mapLocation-BM5WX7FY.mjs +315 -0
- package/dist/server/next.mjs +35 -9
- package/dist/server/{overrideResolution-DHEkHcZs.mjs → overrideResolution-BqVLO4gX.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-0jvm0RBk.mjs → pageRenderPlan-CfSnAkCO.mjs} +67 -40
- package/dist/server/{pageRuntimeSupport-8-f1Zr9e.mjs → pageRuntimeSupport-uz4gzBOo.mjs} +7 -15
- package/dist/server/{pageShared-CuVFoV4z.mjs → pageShared-D23o5QgC.mjs} +1068 -891
- package/dist/server/{parseThemeForPersistence-Cwqb5pZx.mjs → parseThemeForPersistence-DOsfofCy.mjs} +1 -1
- package/dist/server/{prebuild-Bms_Y7wQ.mjs → prebuild-BuoXWT9y.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-5oC5kyHe.mjs → prefetchBlockData-CCiYV8_s.mjs} +21 -6
- package/dist/server/{registry-DmqxC8th.mjs → registry-CXRXsFSx.mjs} +19721 -19621
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-EYogtwQc.mjs → resolveBlockData-yfe8WLEA.mjs} +1 -1
- package/dist/server/{responseMedia-DpBC1hTM.mjs → responseMedia-F-ElH2Rd.mjs} +1 -0
- package/dist/server/{schema-CUDHMirj.mjs → schema-BpsqaSSU.mjs} +2 -2
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{validation-Bt_8IL1g.mjs → validation-CozQ7wE0.mjs} +4 -4
- package/dist/server/{version-DT_efohp.mjs → version-CgCWRFEY.mjs} +1 -1
- package/dist/styles/index.css +295 -37
- package/package.json +1 -1
- package/dist/client/useDiscountApply-BBnStWXU.mjs +0 -199
- package/dist/server/identity-DQD_8lNO.mjs +0 -6
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { An as sameMailingListPlacementTargeting, Cn as planSiteChromePlacement, Ct as recurringScheduleProjectionSchema, Dn as parseMailingListPlacementTargeting, G as groupOfferingRunsByCourse, Gt as cardListPresentationSchemaShape, K as isOfferingsPreviewSourceKey, Sn as parseHeaderPositioning, St as projectRecurringSchedule, Tn as buildMailingListSignupBlockSourceRef, U as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, V as OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE, X as offeringsListingFor, Xt as quickFactSlots, Z as readOfferingsGrouping, bn as resolveHeaderChromeRuntimeContract, en as buildEventListWeek, jn as parseContentVersionId, lt as occurrenceContextSchema, q as normalizeOfferingsPreviewContentForWrite, un as formatEventStartingPrice, wt as combinedLookSchema, yn as isHeaderScrollRuntimeEnabled, z as OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS } from "./shop.interactive-CxDJ8P2r.mjs";
|
|
3
3
|
import { a as mediaIdentifierSchema, i as resolveManagedMediaReference, n as renderableMediaAssetSchema, r as indexRenderableMediaAssets } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { $ as backgroundFrame, $t as
|
|
4
|
+
import { Br as createAspectRatioField, Do as resolveLookMediaFrame, Dr as computeMediaTransformStyle, Eo as generateLookMediaFrameCss, Er as MediaPlaceholder, Fa as readRuntimeNow, Gr as createTransformRegistry, Hr as SECTION_STATE_KINDS, Ia as resolveDateRuntimeContext, Ir as resolveArrangementKnobs, Kr as runTransforms, Lr as systemCustomizeFacetDefinitionsForBlock, Oo as parseBlockColorToken, Pa as isBlockButtonRole, Rr as createImageShapeField, Ur as sectionStateToneFromKind, Vr as uiTransforms, Wr as asPartialObject, Xa as normalizeEventRegistrationPageSurfaceSubject, Xr as plainTextToInlineText, Yr as parseInlineTextFromUnknown, jo as isRecord$8, ni as eventCalendarWeekStart, qr as inlineTextToPlainText, ts as formatBookingPriceDisplay, zr as heroTitleSizeOptions } from "./display-4HYOb-AK.mjs";
|
|
5
|
+
import { Bt as projectPublicLocation, C as eventCalendarListGroupingDecision, Et as calendarWindowQuerySchema, H as tileTreatmentValues, It as WHOLE_SERIES_EVENT_PRESET_VALUES, J as publicEventsArraySchema, K as publicEventPricingSchema, Kt as formatDate, L as eventListTreatmentValues, Lt as locationValueSchema, Pt as isRecord$9, S as resolveCalendarReadProfile, V as isArrangementMode, Vt as publicLocationSchema, W as eventVenueDrawingSchema, Wt as trimmedStringOrNull, Z as bookingConsentCarrierSchema, at as isRichTextDoc, cn as getLocalScheduleDate, dn as resolveBookingBusinessTimeZone, dt as runtimeMediaSchema, f as eventAutoApplyDiscountPreviewSchema, hn as toUtcIsoDateTimeString, j as resolveEventCalendarReadPlan, lt as mediaSchema, m as publicPassProductCollectionSchema, nt as RichTextDocSchema, p as publicMembershipProductCollectionSchema, pt as PUBLIC_FILE_FIELD_KINDS, t as logger, zt as parseLocationValue } from "./noop-CaQxI-Js.mjs";
|
|
6
|
+
import { T as assertNever$1 } from "./creditProducts-BQ1t1erI.mjs";
|
|
7
|
+
import { $ as backgroundFrame, $t as eventDiscoveryFilterKeys, A as mapDrawingStyleBinding, An as ACCORDION_SPACING_MAP, At as cardListKnobFields, B as normalizeMailingListBlockContent, Bn as resolveRepeaterGridRowFieldId, Bt as parseFieldDefinitions, C as checkoutBlockDefinition, Cn as containerStylesField, Ct as repeat, D as shopBlockDefinition, Dn as createButtonGroup, Dt as text, E as productListBlockDefinition, En as getAnchorClasses, Et as stack, Fn as bindingSchema, Ft as parseBlockIconValue, G as withApiBindings, Gn as publicMapLocationResultSchema, Gt as teamReadiness, H as formDataSchema, Hn as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Ht as augmentManifest, In as DEFAULT_MEDIA_FIELD_KINDS, It as createSdkSelectField, J as sectionHeaderLayoutNodes, Jt as eventReadinessLoaderKey, K as formCopyFragment, Kt as testimonialsReadiness, L as desktopOnlyDisplay, Ln as isAcceptedRepeaterGridSpan, Lt as createSiteOptionSelectField, M as FEATURE_CARD_GENERATED_ICON_SIZE_PX, Mn as ACCORDION_TRIGGER_LETTER_SPACING, Mt as cardListPresentationBindings, N as FEATURE_CARD_ICON_TREATMENTS, Nn as ICON_CONFIG, Nt as cardListSectionActionFields, O as eventCalendarBlockDefinition, On as createButtonVariantField, Ot as videoEmbed, Pn as ICON_SIZE_PX, Pt as normalizeCardListContent, Q as sectionContainer, Qt as eventWeekReadScope, R as mobileOnlyDisplay, Rn as parseRepeaterGridInteger, Rt as normalizeSelectSource, S as giftingBlockDefinition, Sn as cardStylesField, St as props, T as productDetailBlockDefinition, Tn as BACKGROUND_POSITION_PRESET_VALUES, Tt as section, U as createBlockManifest, Un as linkSchema, Ut as chosenString, V as formBlockDefinition, Vn as resolveRepeaterGridSpanFieldId, Vt as PUBLIC_DOWNLOAD_MEDIA_TYPES, W as formEmbedFragment, Wt as galleryReadiness, X as styledSection, Xt as eventReadinessQueryKeys, Y as resolveBackgroundColorValue, Yt as eventReadinessQuery, Z as styledContainer, Zt as eventReadinessResultSchema, _ as publicAppointmentLocationSchema, _n as cardStylingFields, _t as headerSection, a as buildLoadedOfferingsPreviewListing, an as hiddenFromVisitors, at as lookLeadSlotTransform, b as newsletterSignupBlockDefinition, bn as eventDisplayFields, bt as link, cn as unavailableReadinessFact, ct as lookSlot, dn as LOCATION_MAP_LOADER_KEYS, dt as bookingForm, en as eventScopeLoaderParam, et as buildFragmentDataLoaders, fn as describeUnresolvedLocationMapLocation, ft as button, g as formatAppointmentPrice, gn as resolveLocationMapLocation, gt as form, h as formatAppointmentLocation, hn as parseLocationMapLoaderResult, ht as fileDownload, in as admitReadinessFacts, it as lookCarouselRegionTransform, j as eventRegistrationBlockDefinition, jn as ACCORDION_TRIGGER_FONT_SCALE, jt as cardListPhotoNumberFields, k as eventListingBlockDefinition, kn as ACCORDION_OPEN_ACCENT_THICKNESS, kt as when, ln as LOCATION_MAP_DEFAULTS, lt as accordionList, m as formatAppointmentDuration, mn as normalizeLocationMapSource, mt as el, nn as eventScopeQueryKeys, nt as defineFragment, on as loadedReadinessFact, ot as lookQuoteLimitTransform, p as SectionNode, pn as normalizeLocationMapProps, pt as carousel, q as sectionHeaderFields, qt as blockChecksForEvents, rn as resolveEventScope, rt as cardListSectionAction, s as buildAppointmentServicesView, sn as pageTemplateFromEntry, st as lookSkinSlotTransform, t as serverComponentRegistry, tn as eventScopeQuery, tt as composeFragments, un as LOCATION_MAP_LIMITS, ut as bind, v as publicAppointmentPricingSchema, vn as columnsField, vt as icon, w as cartBlockDefinition, wn as sectionStylesField, wt as richText, x as sanitizeNewsletterSignupPublicContent, xn as layoutField, xt as media, y as offeringCourseSlotParents, yn as emptyStateField, yt as inline, z as teamMemberCardBiographyFallback, zn as resolveRepeaterGridColumnFieldId, zt as parseFieldDefinition } from "./registry.server-CIWYKz1V.mjs";
|
|
8
8
|
import { $ as solveSurfaceInks, A as DEFAULT_BUTTON_SIZES, C as buttonRadius, Ct as resolveOpaqueSurfaceHex, D as materializeRuntimeButtonAppearance, Dt as contrastRatio, E as buttonTypographyDeclarations, Ft as rgbToHex, G as mergeStyles, H as backgroundColorStyle, It as srgbToOklab, J as textColorValue, K as rgbColorValue, L as mapButtonVisualAppearances, M as FONT_SIZE_MAP, Mt as oklabToOklch, N as generateShadowValue$1, Nt as oklabToSrgb, O as paddingDeclarations, Pt as oklchToHexGamut, S as buttonBorder, St as resolveConcreteColorHex, T as buttonStateAppearanceDeclarations, U as borderColorStyle, W as cssVarValue, X as safeTokenOr, Y as resolveSurfaceForeground, Z as surfaceInkPublication, _t as surfaceInkDeclarations, at as inkReference, b as BUTTON_CONTRAST_POLICY, bt as freezeOwnedThemeValue, ct as planForegroundHover, dt as SURFACE_INK_CSS_VARS, f as compositeHex, ft as surfaceForegroundDeclarations, g as actionVariableFallback, gt as surfaceForegroundValueWithOpacity, ht as surfaceForegroundValue, it as contrastThresholdByPolicy, jt as hexToRgb, k as BORDER_WIDTH_MAP, l as surfaceDecorationColors, lt as DEFAULT_SURFACE_TEXT_COLOR, mt as surfaceForegroundStyle, n as parseSurfaceTree, nt as HOVER_TEXT_THRESHOLD, o as resolveSurface, ot as expandPalette, pt as surfaceForegroundInputFromResolved, q as textColorStyle, r as prepareSurfaceIndex, rt as certifyPaint, ut as SURFACE_FOREGROUND_CSS_VARS, v as compileButtonColourStates, vt as surfaceInkStyle, w as buttonShadow, x as formatButtonColourContractError, xt as ownedThemeSnapshot, y as resolveSolidButtonColour, yt as surfaceInkValue } from "./accessibleSurfaces-DN8it_Cx.mjs";
|
|
9
9
|
import { D as parseThemeColorToken, E as parseColorTokenParts, a as createStandardButtonSurfacePolicy, i as buttonSizeNameSchema, s as unsafeAsOpaqueButtonColourToken, t as DEFAULT_VARIANT_ALIAS_ID } from "./types-DjWUR_O6.mjs";
|
|
10
|
-
import { _ as
|
|
10
|
+
import { $ as resolvePageDesignBlockLookChoice, $t as customCssRuleSchema, A as getCuratedSiteStyle, At as defineExactCatalog, B as generateFooterCss, Bt as toNonEmptyReadonlyArray, C as resolvePublishedLook, Ct as themeV2CompilerOwnedFieldNames, D as filterLookIdsForPolicy, Dt as lookModes, E as filterLayoutProfilesForPolicy, Ft as introCompositionTreatmentValues, G as generateEffectsCSS, Gt as selectLogoVariant, H as getNavLinkPreset, I as gradientToCss, It as offeringsPreviewCompositionTreatmentValues, J as generateInteractiveChildInheritanceCSS, Jt as TokenResolver, K as resolveEffectApplications, Kt as surfaceToneFromForegroundToken, L as getGradientPreset, Lt as plainFrame, M as compilePageRuntimeFields, Mt as defineNoBlockDesignCapability, Nt as designIssueSeverityForPolicy, Ot as assertNever$2, P as stripCompiledRuntimeStyleFields, Pt as featureCardCompositionTreatmentValues, Qt as blockCustomCssRuleSchema, R as resolveCardRole, Rt as sectionBackgroundPaintValues, S as resolveModeArrangement, St as stripStaleTransitionStyleGroup, T as deriveSiteStyleBlockPolicy, U as buildTextContrastShadow, Ut as opaqueSurfaceContextFromTheme, V as footerForegroundCandidates, W as generateNavLinkCSS, Wt as opaqueSurfaceDeclarations, X as navLinkOwnsHoverForeground, Xt as themeSchema, Y as navLinkHoverColorCandidate, Yt as sectionStylesOverrideSchema, Z as navLinkOwnsUnderline, Zt as headerVariantValues, _ as resolveLookForBlock, _n as asSiteStyleId, _t as parseCanonicalRuntimeBackground, a as resolvedItemSurfaceProps, an as cardVariantRoleValues, at as boundaryOptions, b as readStoredMode, bt as sectionSurfaceBase, c as resolveLookSurfacePresentation, cn as surfaceCardRoleValues, ct as isDecorativeTransitionIntent, d as arrangementLookHooks, dn as asHeaderStyleId, dt as spaciousBoundaryOption, et as resolvePageDesignBoundaryChoice, f as arrangementStyleAvailability, fn as siteChromeBackgroundOverrideOwner, ft as transitionIntentForTreatment, g as resolveArrangementLookForBlock, gn as asPageFlowPresetId, gt as deriveSectionGround, h as getCompatibleBlockAppearancePresets, hn as asLayoutVariantKey, ht as applyLookPhotoTreatment, it as boundaryOptionForTransitionIntent, j as requireCuratedSiteStyle, jt as defineFrameCapability, kt as defineBlockDesignCapability, l as selectItemSurfacePresentation, ln as parseGradientPresetId, lt as noneBoundaryOption, m as compileArrangementLookRuntime, mn as asDesignBlockId, mt as transitionCatalogueEntries, nn as runtimeBoxBackgroundSchema, nt as sectionShapeFromContent, o as itemRole, ot as boundaryRuntimeMetricsForDecorativeTransition, p as automaticArrangementLook, pt as anglePolygonCss, q as resolveEffectPaint, qt as arrangementSlotNames, rt as sectionShapeHook, s as lookPresentationOnPalette, st as boundaryTreatmentForBoundaryOptionId, tn as boxBackgroundSchema, tt as sectionShapeForGround, u as arrangementAppearancePresets, un as asHeaderLayoutId, ut as softBoundaryOption, v as styleSectionBackgroundForColour, vn as makeBoundaryId, vt as resolveSectionBackground, x as resolveEffectiveArrangement, xt as defaultHeroImageSurfaceTreatment, y as arrangementManifestFromVariants, yt as sectionForegroundBackground, z as generateDefaultCardSystem, zt as testimonialsCompositionTreatmentValues } from "./lookSurfaces-BwiNdgMU.mjs";
|
|
11
|
+
import { _ as resolveSpacing, a as hasFixedFrameBackgroundMotion, c as resolveItemCardRole, d as parseRuntimeBackgroundContent, g as resolveSectionMinHeight, h as isSemanticSpacing, i as fixedFrameScopeClass, l as parseBackgroundContent, m as isSectionMinHeight, n as ROUNDED_CLASSES, o as normalizeBoxStylesBorder, p as SEMANTIC_SPACING_VALUES, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles, t as RAISED_SHADOW_CLASS, u as parseBackgroundOverlay } from "./boxStyleClassNames-B_hcuT06.mjs";
|
|
11
12
|
import { C as parseThemeButtonVariantId, T as AFFORDANCE_SUPPRESS_CLASS, w as themeButtonSelector } from "./ThemedButton-DuaYtnvG.mjs";
|
|
12
13
|
import { t as NAV_DROPDOWN_CONTAINER_RAIL_CSS_RULES } from "./navDropdownSizing-CUjDrcIt.mjs";
|
|
13
|
-
import { i as eventHeaderSlotParents, n as resolveEventDetailsPresentation, r as lookPartShown } from "./view-
|
|
14
|
-
import { a as eventItemSlotParents, i as cardItemSlotParents } from "./EventItem-
|
|
15
|
-
import {
|
|
14
|
+
import { i as eventHeaderSlotParents, n as resolveEventDetailsPresentation, r as lookPartShown } from "./view-BbzH5MQb.mjs";
|
|
15
|
+
import { a as eventItemSlotParents, i as cardItemSlotParents } from "./EventItem-B0WjGXsH.mjs";
|
|
16
|
+
import { l as monthSlotParents } from "./CalendarNavigationChevron-C6CSVfEB.mjs";
|
|
16
17
|
import { n as getCurrentResolveImageUrlContext, o as setContextResolveImageUrlContext, t as buildResolveImageUrlContext } from "./mediaContext-Fusweriw.mjs";
|
|
17
|
-
import { n as eventListSlotParents } from "./EventListing.view-
|
|
18
|
+
import { n as eventListSlotParents } from "./EventListing.view-BEH4UbSL.mjs";
|
|
18
19
|
import { r as themeRuntimeScopeProps, t as buildThemeDataAttrs } from "./themeScopeUtils-BAOw_fNA.mjs";
|
|
19
|
-
import { t as formatDate$1 } from "./formatDate-
|
|
20
|
+
import { t as formatDate$1 } from "./formatDate-TDHhFjFN.mjs";
|
|
20
21
|
import { s as declarativeCarouselSlides } from "./carousel.shared-BFQ3kBEw.mjs";
|
|
21
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-
|
|
22
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-DkPBFb_a.mjs";
|
|
22
23
|
import { t as resolveBlocksPageMediaContext } from "./mediaAssets-B99AP7ai.mjs";
|
|
23
24
|
import * as React$1 from "react";
|
|
24
25
|
import React from "react";
|
|
@@ -131,6 +132,7 @@ const SUPPORTED_LOADER_ENDPOINTS$1 = [
|
|
|
131
132
|
"listPublicEventCalendarWindow",
|
|
132
133
|
"listPublicRecurringSchedule",
|
|
133
134
|
"getPublicEventDetails",
|
|
135
|
+
"getPublicMapLocation",
|
|
134
136
|
"listPublicRouteCandidates",
|
|
135
137
|
"listPublicTeamMembers",
|
|
136
138
|
"listPublicProducts",
|
|
@@ -672,7 +674,7 @@ function boundaryEndpointForSectionContent(content) {
|
|
|
672
674
|
kind: "unpainted",
|
|
673
675
|
reason: "media"
|
|
674
676
|
};
|
|
675
|
-
default: return assertNever$
|
|
677
|
+
default: return assertNever$2(effective, "Unhandled section background type");
|
|
676
678
|
}
|
|
677
679
|
}
|
|
678
680
|
/**
|
|
@@ -809,7 +811,7 @@ function boundaryLayout(intent, composition) {
|
|
|
809
811
|
shape: composition.from
|
|
810
812
|
}
|
|
811
813
|
};
|
|
812
|
-
default: return assertNever$
|
|
814
|
+
default: return assertNever$2(composition, "Unhandled boundary composition");
|
|
813
815
|
}
|
|
814
816
|
}
|
|
815
817
|
function requireThemeColorToken(value) {
|
|
@@ -818,419 +820,92 @@ function requireThemeColorToken(value) {
|
|
|
818
820
|
return token;
|
|
819
821
|
}
|
|
820
822
|
//#endregion
|
|
821
|
-
//#region ../theme-core/src/
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
"
|
|
838
|
-
"
|
|
839
|
-
"to-t": "to top",
|
|
840
|
-
"to-b": "to bottom",
|
|
841
|
-
"to-tr": "to top right",
|
|
842
|
-
"to-tl": "to top left",
|
|
843
|
-
"to-br": "to bottom right",
|
|
844
|
-
"to-bl": "to bottom left"
|
|
845
|
-
};
|
|
846
|
-
/**
|
|
847
|
-
* Generate CSS box-shadow value from Shadow object
|
|
848
|
-
*/
|
|
849
|
-
function generateShadowValue(shadow) {
|
|
850
|
-
if (shadow.elevation === "none") return "none";
|
|
851
|
-
const offset = {
|
|
852
|
-
low: 2,
|
|
853
|
-
medium: 4,
|
|
854
|
-
high: 6
|
|
855
|
-
}[shadow.elevation];
|
|
856
|
-
const xOffset = shadow.position === "bottom-right" ? offset : 0;
|
|
857
|
-
if (shadow.softness === "hard") return `${xOffset}px ${offset}px 0 0 rgba(0,0,0,1)`;
|
|
858
|
-
const soft = shadow.softness !== "crisp";
|
|
859
|
-
switch (shadow.elevation) {
|
|
860
|
-
case "low": return soft ? `${xOffset}px 1px 2px rgba(0,0,0,.06)` : `${xOffset}px 1px 1px rgba(0,0,0,.12)`;
|
|
861
|
-
case "medium": return soft ? `${xOffset}px 10px 20px rgba(0,0,0,.08)` : `${xOffset}px 6px 12px rgba(0,0,0,.16)`;
|
|
862
|
-
case "high": return soft ? `${xOffset}px 25px 50px rgba(0,0,0,.18)` : `${xOffset}px 20px 30px rgba(0,0,0,.28)`;
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
//#endregion
|
|
866
|
-
//#region ../theme-core/src/cards/decorations.ts
|
|
867
|
-
const CARD_EDGE_RULE_WIDTH_MAP = {
|
|
868
|
-
hairline: "1px",
|
|
869
|
-
thin: "2px",
|
|
870
|
-
medium: "3px",
|
|
871
|
-
thick: "4px",
|
|
872
|
-
heavy: "5px"
|
|
873
|
-
};
|
|
874
|
-
const CARD_EDGE_BORDER_PROPERTY_MAP = {
|
|
875
|
-
left: "border-left",
|
|
876
|
-
top: "border-top",
|
|
877
|
-
right: "border-right",
|
|
878
|
-
bottom: "border-bottom"
|
|
823
|
+
//#region ../theme-core/src/site-styles/resolver.ts
|
|
824
|
+
const repairActionsByIssueKind = {
|
|
825
|
+
"missing-block-design-capability": ["fallback-block-design"],
|
|
826
|
+
"unsupported-block-design-capability": ["fallback-block-design"],
|
|
827
|
+
"unsupported-section-surface": ["fallback-section-surface"],
|
|
828
|
+
"unsupported-content-frame": ["fallback-content-frame"],
|
|
829
|
+
"unsupported-card-role": ["fallback-card-role"],
|
|
830
|
+
"unsupported-section-height": ["fallback-section-height"],
|
|
831
|
+
"unsupported-image-surface-treatment": ["fallback-image-surface-treatment"],
|
|
832
|
+
"unsupported-image-surface-motion": ["fallback-image-surface-motion"],
|
|
833
|
+
"unsupported-tile-treatment": ["fallback-tile-treatment"],
|
|
834
|
+
"unsupported-event-list-treatment": ["fallback-event-list-treatment"],
|
|
835
|
+
"unsupported-eyebrow-treatment": ["fallback-eyebrow-treatment"],
|
|
836
|
+
"unsupported-accordion-icon-treatment": ["fallback-accordion-icon-treatment"],
|
|
837
|
+
"unsupported-block-composition": ["remove-composition"],
|
|
838
|
+
"image-surface-treatment-without-image-surface": ["fallback-image-surface-treatment"],
|
|
839
|
+
"image-surface-motion-without-image-surface": ["fallback-image-surface-motion"],
|
|
840
|
+
"hero-image-without-treatment": ["fallback-image-surface-treatment"]
|
|
879
841
|
};
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
* constant keeps `length: 'short'` a semantic choice rather than a free number.
|
|
883
|
-
*/
|
|
884
|
-
const SHORT_CARD_EDGE_RULE_LENGTH = "2.75rem";
|
|
885
|
-
function isFullLength(rule) {
|
|
886
|
-
return (rule.length ?? "full") === "full";
|
|
842
|
+
function repairActionsForIssue(issueKind) {
|
|
843
|
+
return repairActionsByIssueKind[issueKind];
|
|
887
844
|
}
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
const color = resolveColor(rule.colorToken);
|
|
891
|
-
if (rule.alpha === void 0 || rule.alpha >= 1) return color;
|
|
892
|
-
return `color-mix(in oklab, ${color}, transparent ${Math.round((1 - rule.alpha) * 100)}%)`;
|
|
845
|
+
function supportsFrame(capability, frameKind) {
|
|
846
|
+
return capability.contentFrames.includes(frameKind);
|
|
893
847
|
}
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
* edge rules. The two are independent: a card may be outlined *and* carry an
|
|
897
|
-
* accent edge. A variant with edge rules and no border still zeroes the box so
|
|
898
|
-
* only the decorated sides draw.
|
|
899
|
-
*/
|
|
900
|
-
function cardBorderDeclarations(borderDeclaration, decorations, resolveColor) {
|
|
901
|
-
const fullLengthRules = (decorations ?? []).filter(isFullLength);
|
|
902
|
-
const declarations = [];
|
|
903
|
-
if (borderDeclaration) declarations.push(borderDeclaration);
|
|
904
|
-
else if (fullLengthRules.length > 0) declarations.push("border: 0");
|
|
905
|
-
for (const rule of fullLengthRules) {
|
|
906
|
-
const side = CARD_EDGE_BORDER_PROPERTY_MAP[rule.edge];
|
|
907
|
-
const width = CARD_EDGE_RULE_WIDTH_MAP[rule.width];
|
|
908
|
-
declarations.push(`${side}: ${width} solid ${cardDecorationColor(rule, resolveColor)}`);
|
|
909
|
-
}
|
|
910
|
-
return declarations;
|
|
848
|
+
function supportsSectionHeight(capability, sectionHeight) {
|
|
849
|
+
return capability.sectionHeights.includes(sectionHeight);
|
|
911
850
|
}
|
|
912
|
-
function
|
|
913
|
-
|
|
914
|
-
case "start": return ["left: 0"];
|
|
915
|
-
case "center": return ["left: 50%", "transform: translateX(-50%)"];
|
|
916
|
-
case "end": return ["right: 0"];
|
|
917
|
-
}
|
|
851
|
+
function supportsImageSurfaceTreatment(capability, imageSurfaceTreatment) {
|
|
852
|
+
return capability.imageSurfaceTreatments.includes(imageSurfaceTreatment.kind);
|
|
918
853
|
}
|
|
919
|
-
function
|
|
920
|
-
|
|
921
|
-
case "start": return ["top: 0"];
|
|
922
|
-
case "center": return ["top: 50%", "transform: translateY(-50%)"];
|
|
923
|
-
case "end": return ["bottom: 0"];
|
|
924
|
-
}
|
|
854
|
+
function supportsImageSurfaceMotion(capability, imageSurfaceMotion) {
|
|
855
|
+
return capability.imageSurfaceMotions.includes(imageSurfaceMotion);
|
|
925
856
|
}
|
|
926
|
-
function
|
|
927
|
-
|
|
928
|
-
const isHorizontal = rule.edge === "top" || rule.edge === "bottom";
|
|
929
|
-
return [
|
|
930
|
-
"content: \"\"",
|
|
931
|
-
"position: absolute",
|
|
932
|
-
`${rule.edge}: 0`,
|
|
933
|
-
...isHorizontal ? horizontalAlignDeclarations(rule.align) : verticalAlignDeclarations(rule.align),
|
|
934
|
-
`width: ${isHorizontal ? SHORT_CARD_EDGE_RULE_LENGTH : thickness}`,
|
|
935
|
-
`height: ${isHorizontal ? thickness : SHORT_CARD_EDGE_RULE_LENGTH}`,
|
|
936
|
-
`background: ${cardDecorationColor(rule, resolveColor)}`
|
|
937
|
-
];
|
|
857
|
+
function supportsTileTreatment(capability, treatment) {
|
|
858
|
+
return capability.tileTreatments.includes(treatment);
|
|
938
859
|
}
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
* rule cannot be a border, so it is drawn on `::before` / `::after` against the
|
|
942
|
-
* container (which always sets `position: relative`) — and a card has exactly
|
|
943
|
-
* two of those.
|
|
944
|
-
*/
|
|
945
|
-
const CARD_DECORATION_PSEUDOS = ["::before", "::after"];
|
|
946
|
-
/**
|
|
947
|
-
* Complete pseudo-element rules for a variant's short edge rules.
|
|
948
|
-
*
|
|
949
|
-
* `cardDecorationsSchema` caps the list at two, which makes the two pseudos
|
|
950
|
-
* sufficient for anything that parsed. The dependency-free core types carry a
|
|
951
|
-
* plain array with no such cap, so short rules past the second are dropped
|
|
952
|
-
* here rather than silently overwriting `::after`.
|
|
953
|
-
*/
|
|
954
|
-
function cardDecorationPseudoRules(containerSelectors, decorations, resolveColor) {
|
|
955
|
-
const shortRules = (decorations ?? []).filter((rule) => !isFullLength(rule));
|
|
956
|
-
return CARD_DECORATION_PSEUDOS.flatMap((pseudo, index) => {
|
|
957
|
-
const rule = shortRules[index];
|
|
958
|
-
if (!rule) return [];
|
|
959
|
-
return [`${containerSelectors.map((containerSelector) => `${containerSelector}${pseudo}`).join(",\n")} {\n ${shortEdgeRuleDeclarations(rule, resolveColor).join(";\n ")};\n}`];
|
|
960
|
-
});
|
|
860
|
+
function supportsEventListTreatment(capability, treatment) {
|
|
861
|
+
return capability.eventListTreatments.includes(treatment);
|
|
961
862
|
}
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
/** Render CSS declarations whether callers provide terminators or fragments. */
|
|
965
|
-
function renderCssDeclarations(declarations) {
|
|
966
|
-
return declarations.map((declaration) => declaration.endsWith(";") ? declaration : `${declaration};`).join("\n ");
|
|
863
|
+
function supportsEyebrowTreatment(capability, treatment) {
|
|
864
|
+
return capability.eyebrowTreatments.includes(treatment);
|
|
967
865
|
}
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
const PER_CORNER_RADIUS_MAP = {
|
|
971
|
-
square: "0",
|
|
972
|
-
soft: "0.5rem",
|
|
973
|
-
rounded: "1rem",
|
|
974
|
-
pill: "1.5rem",
|
|
975
|
-
expressive: "calc(var(--rb-block-radius) * 3)"
|
|
976
|
-
};
|
|
977
|
-
function resolveCornerRadiiCss(cornerRadii, fallback) {
|
|
978
|
-
const fallbackValue = CORNER_RADIUS_MAP[fallback];
|
|
979
|
-
const at = (value) => value ? PER_CORNER_RADIUS_MAP[value] : fallbackValue;
|
|
980
|
-
return `${at(cornerRadii.topLeft)} ${at(cornerRadii.topRight)} ${at(cornerRadii.bottomRight)} ${at(cornerRadii.bottomLeft)}`;
|
|
866
|
+
function supportsAccordionIconTreatment(capability, treatment) {
|
|
867
|
+
return Boolean(capability.accordionIconSets?.includes(treatment.iconSet));
|
|
981
868
|
}
|
|
982
|
-
function
|
|
983
|
-
const
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
const cardSystem = providedCardSystem ?? generateDefaultCardSystem(theme);
|
|
991
|
-
const source = providedCardSystem ? "site-style" : "generated-baseline";
|
|
992
|
-
const aliasGroups = resolveRoleAliasGroups(theme, providedCardSystem ?? null);
|
|
993
|
-
const cssChunks = [];
|
|
994
|
-
const emittedGroupKeys = /* @__PURE__ */ new Set();
|
|
995
|
-
for (const variant of cardSystem.variants) {
|
|
996
|
-
if (!variant.enabled) continue;
|
|
997
|
-
const groupKey = roleAliasGroupKey(source, variant.id);
|
|
998
|
-
emittedGroupKeys.add(groupKey);
|
|
999
|
-
const aliasClasses = aliasGroups.get(groupKey)?.classes ?? [];
|
|
1000
|
-
cssChunks.push(generateVariantCSS(variant, themeId, [`card-${variant.id}`, ...aliasClasses], tokens, theme, palette, solvedInks));
|
|
1001
|
-
}
|
|
1002
|
-
for (const [groupKey, group] of aliasGroups) {
|
|
1003
|
-
if (emittedGroupKeys.has(groupKey)) continue;
|
|
1004
|
-
cssChunks.push(generateVariantCSS(group.variant, themeId, group.classes, tokens, theme, palette, solvedInks));
|
|
869
|
+
function supportsBlockComposition(capability, composition) {
|
|
870
|
+
const supported = capability.compositions;
|
|
871
|
+
switch (composition.kind) {
|
|
872
|
+
case "intro": return supported.kind === "intro" && supported.treatments.includes(composition.treatment);
|
|
873
|
+
case "feature-cards": return supported.kind === "feature-cards" && supported.treatments.includes(composition.treatment);
|
|
874
|
+
case "testimonials": return supported.kind === "testimonials" && supported.treatments.includes(composition.treatment);
|
|
875
|
+
case "offerings-preview": return supported.kind === "offerings-preview" && supported.treatments.includes(composition.treatment);
|
|
876
|
+
default: return assertNever$2(composition);
|
|
1005
877
|
}
|
|
1006
|
-
return cssChunks.filter(Boolean).join("\n\n");
|
|
1007
878
|
}
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
}
|
|
1035
|
-
/**
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
const CONTENT_PADDING_MAP = {
|
|
1039
|
-
none: "0",
|
|
1040
|
-
compact: "0.75rem",
|
|
1041
|
-
cozy: "1rem",
|
|
1042
|
-
medium: "1.25rem",
|
|
1043
|
-
comfortable: "1.5rem",
|
|
1044
|
-
spacious: "2rem"
|
|
1045
|
-
};
|
|
1046
|
-
/**
|
|
1047
|
-
* Corner radius map for card media (top corners only). Match card surface
|
|
1048
|
-
* radii rather than button pills so media does not become capsule-clipped.
|
|
1049
|
-
*/
|
|
1050
|
-
const MEDIA_CORNER_MAP = {
|
|
1051
|
-
square: "0",
|
|
1052
|
-
soft: "0.5rem",
|
|
1053
|
-
rounded: "1rem",
|
|
1054
|
-
pill: "1.5rem"
|
|
1055
|
-
};
|
|
1056
|
-
/**
|
|
1057
|
-
* Generate CSS for a single card variant
|
|
1058
|
-
*
|
|
1059
|
-
* Generates complete CSS for card containers and their children:
|
|
1060
|
-
* - Container: background, shadow, corners, border
|
|
1061
|
-
* - .card-media: top corners matching container
|
|
1062
|
-
* - .card-content: padding based on spacing
|
|
1063
|
-
*
|
|
1064
|
-
* This CSS-first approach eliminates runtime transforms for styling,
|
|
1065
|
-
* keeping transforms only for data normalization and dynamic layout.
|
|
1066
|
-
*/
|
|
1067
|
-
function generateVariantCSS(variant, themeId, cardClasses, tokens, theme, palette, solvedInks) {
|
|
1068
|
-
const selectorsFor = (suffix) => cardClasses.map((cardClass) => `:where([data-theme-scope="${themeId}"]) .${cardClass}.${cardClass}${suffix}`).join(",\n");
|
|
1069
|
-
const containerSelectors = cardClasses.map((cardClass) => `:where([data-theme-scope="${themeId}"]) .${cardClass}.${cardClass}`);
|
|
1070
|
-
const containerSelector = containerSelectors.join(",\n");
|
|
1071
|
-
const mediaSelector = selectorsFor(" .card-media");
|
|
1072
|
-
const contentSelector = selectorsFor(" .card-content");
|
|
1073
|
-
const fallbackBackgroundSelector = selectorsFor(" > .rb-bg-surface");
|
|
1074
|
-
const rules = [];
|
|
1075
|
-
rules.push(...cardSurfaceRules(variant, tokens, theme, palette, solvedInks));
|
|
1076
|
-
const resolveColor = (token) => tokens.getColor(token);
|
|
1077
|
-
rules.push(...cardBorderDeclarations(variant.border ? borderDeclaration(variant.border, tokens) : null, variant.decorations, resolveColor));
|
|
1078
|
-
const corners = variant.corners ?? theme.corners;
|
|
1079
|
-
const radius = variant.cornerRadii ? resolveCornerRadiiCss(variant.cornerRadii, corners) : CORNER_RADIUS_MAP[corners];
|
|
1080
|
-
rules.push(`border-radius: ${radius}`);
|
|
1081
|
-
const shadow = variant.shadow ?? theme.shadow;
|
|
1082
|
-
if (shadow.elevation !== "none") {
|
|
1083
|
-
const shadowValue = generateShadowValue(shadow);
|
|
1084
|
-
rules.push(`box-shadow: ${shadowValue}`);
|
|
1085
|
-
}
|
|
1086
|
-
const structureSelector = cardClasses.map((cardClass) => `:where([data-theme-scope="${themeId}"]) :where(.${cardClass})`).join(",\n");
|
|
1087
|
-
const mediaRadius = MEDIA_CORNER_MAP[corners];
|
|
1088
|
-
const mediaRules = [`border-top-left-radius: ${mediaRadius}`, `border-top-right-radius: ${mediaRadius}`];
|
|
1089
|
-
const contentRules = [`padding: ${resolveContentPadding(variant)}`];
|
|
1090
|
-
return [
|
|
1091
|
-
`${structureSelector} {\n display: flex;\n flex-direction: column;\n position: relative;\n overflow: visible;\n}`,
|
|
1092
|
-
`${containerSelector} {\n ${renderCssDeclarations(rules)}\n}`,
|
|
1093
|
-
...cardDecorationPseudoRules(containerSelectors, variant.decorations, resolveColor),
|
|
1094
|
-
`${fallbackBackgroundSelector} {\n background: transparent;\n}`,
|
|
1095
|
-
`${mediaSelector} {\n ${mediaRules.join(";\n ")};\n}`,
|
|
1096
|
-
`${contentSelector} {\n ${contentRules.join(";\n ")};\n}`
|
|
1097
|
-
].join("\n\n");
|
|
1098
|
-
}
|
|
1099
|
-
function cardSurfaceRules(variant, tokens, theme, palette, solvedInks) {
|
|
1100
|
-
if (variant.background.type === "transparent") return ["background: transparent"];
|
|
1101
|
-
const surface = resolveSurface({
|
|
1102
|
-
kind: "paint",
|
|
1103
|
-
paint: cardSurfacePaint(variant)
|
|
1104
|
-
}, {
|
|
1105
|
-
palette,
|
|
1106
|
-
buttonSystem: theme.buttons,
|
|
1107
|
-
linkHoverToken: theme.typography.proseLinkStyle?.hoverColorToken,
|
|
1108
|
-
solvedInks
|
|
1109
|
-
});
|
|
1110
|
-
return [cardBackgroundRule(variant.background, tokens), ...opaqueSurfaceDeclarations(surface)];
|
|
1111
|
-
}
|
|
1112
|
-
function cardSurfacePaint(variant) {
|
|
1113
|
-
switch (variant.background.type) {
|
|
1114
|
-
case "transparent": return { kind: "transparent" };
|
|
1115
|
-
case "solid": return {
|
|
1116
|
-
kind: "solid",
|
|
1117
|
-
token: variant.background.colorToken,
|
|
1118
|
-
foregroundToken: variant.foregroundToken
|
|
1119
|
-
};
|
|
1120
|
-
case "gradient": return {
|
|
1121
|
-
kind: "gradient",
|
|
1122
|
-
foregroundToken: variant.foregroundToken
|
|
1123
|
-
};
|
|
1124
|
-
}
|
|
1125
|
-
}
|
|
1126
|
-
function cardBackgroundRule(background, tokens) {
|
|
1127
|
-
if (background.type === "solid") return `background: ${tokens.getColor(background.colorToken)}`;
|
|
1128
|
-
const from = tokens.getColor(background.fromToken);
|
|
1129
|
-
const to = tokens.getColor(background.toToken);
|
|
1130
|
-
return `background: linear-gradient(${GRADIENT_DIRECTION_MAP[background.direction] || "to right"}, ${from}, ${to})`;
|
|
1131
|
-
}
|
|
1132
|
-
function borderDeclaration(border, tokens) {
|
|
1133
|
-
const borderColor = tokens.getColor(border.colorToken);
|
|
1134
|
-
return `border: ${border.widthClass === "border-4" ? "4px" : border.widthClass === "border-2" ? "2px" : border.widthClass === "border" ? "1px" : "1px"} solid ${borderColor}`;
|
|
1135
|
-
}
|
|
1136
|
-
function paddingFor(spacing) {
|
|
1137
|
-
return CONTENT_PADDING_MAP[spacing] || CONTENT_PADDING_MAP.comfortable;
|
|
1138
|
-
}
|
|
1139
|
-
/** A card's padding: one value for both axes, or one per axis. */
|
|
1140
|
-
function resolveContentPadding(variant) {
|
|
1141
|
-
const spacing = variant.spacing;
|
|
1142
|
-
return typeof spacing === "string" ? paddingFor(spacing) : `${paddingFor(spacing.block)} ${paddingFor(spacing.inline)}`;
|
|
1143
|
-
}
|
|
1144
|
-
//#endregion
|
|
1145
|
-
//#region ../theme-core/src/site-styles/resolver.ts
|
|
1146
|
-
const repairActionsByIssueKind = {
|
|
1147
|
-
"missing-block-design-capability": ["fallback-block-design"],
|
|
1148
|
-
"unsupported-block-design-capability": ["fallback-block-design"],
|
|
1149
|
-
"unsupported-section-surface": ["fallback-section-surface"],
|
|
1150
|
-
"unsupported-content-frame": ["fallback-content-frame"],
|
|
1151
|
-
"unsupported-card-role": ["fallback-card-role"],
|
|
1152
|
-
"unsupported-section-height": ["fallback-section-height"],
|
|
1153
|
-
"unsupported-image-surface-treatment": ["fallback-image-surface-treatment"],
|
|
1154
|
-
"unsupported-image-surface-motion": ["fallback-image-surface-motion"],
|
|
1155
|
-
"unsupported-tile-treatment": ["fallback-tile-treatment"],
|
|
1156
|
-
"unsupported-event-list-treatment": ["fallback-event-list-treatment"],
|
|
1157
|
-
"unsupported-eyebrow-treatment": ["fallback-eyebrow-treatment"],
|
|
1158
|
-
"unsupported-accordion-icon-treatment": ["fallback-accordion-icon-treatment"],
|
|
1159
|
-
"unsupported-block-composition": ["remove-composition"],
|
|
1160
|
-
"image-surface-treatment-without-image-surface": ["fallback-image-surface-treatment"],
|
|
1161
|
-
"image-surface-motion-without-image-surface": ["fallback-image-surface-motion"],
|
|
1162
|
-
"hero-legibility-overridden-by-image-surface-treatment": ["remove-hero-legibility"],
|
|
1163
|
-
"hero-image-without-legibility": ["fallback-hero-legibility"]
|
|
1164
|
-
};
|
|
1165
|
-
function repairActionsForIssue(issueKind) {
|
|
1166
|
-
return repairActionsByIssueKind[issueKind];
|
|
1167
|
-
}
|
|
1168
|
-
function supportsFrame(capability, frameKind) {
|
|
1169
|
-
return capability.contentFrames.includes(frameKind);
|
|
1170
|
-
}
|
|
1171
|
-
function supportsSectionHeight(capability, sectionHeight) {
|
|
1172
|
-
return capability.sectionHeights.includes(sectionHeight);
|
|
1173
|
-
}
|
|
1174
|
-
function supportsImageSurfaceTreatment(capability, imageSurfaceTreatment) {
|
|
1175
|
-
return capability.imageSurfaceTreatments.includes(imageSurfaceTreatment.kind);
|
|
1176
|
-
}
|
|
1177
|
-
function supportsImageSurfaceMotion(capability, imageSurfaceMotion) {
|
|
1178
|
-
return capability.imageSurfaceMotions.includes(imageSurfaceMotion);
|
|
1179
|
-
}
|
|
1180
|
-
function supportsTileTreatment(capability, treatment) {
|
|
1181
|
-
return capability.tileTreatments.includes(treatment);
|
|
1182
|
-
}
|
|
1183
|
-
function supportsEventListTreatment(capability, treatment) {
|
|
1184
|
-
return capability.eventListTreatments.includes(treatment);
|
|
1185
|
-
}
|
|
1186
|
-
function supportsEyebrowTreatment(capability, treatment) {
|
|
1187
|
-
return capability.eyebrowTreatments.includes(treatment);
|
|
1188
|
-
}
|
|
1189
|
-
function supportsAccordionIconTreatment(capability, treatment) {
|
|
1190
|
-
return Boolean(capability.accordionIconSets?.includes(treatment.iconSet));
|
|
1191
|
-
}
|
|
1192
|
-
function supportsBlockComposition(capability, composition) {
|
|
1193
|
-
const supported = capability.compositions;
|
|
1194
|
-
switch (composition.kind) {
|
|
1195
|
-
case "intro": return supported.kind === "intro" && supported.treatments.includes(composition.treatment);
|
|
1196
|
-
case "feature-cards": return supported.kind === "feature-cards" && supported.treatments.includes(composition.treatment);
|
|
1197
|
-
case "testimonials": return supported.kind === "testimonials" && supported.treatments.includes(composition.treatment);
|
|
1198
|
-
case "offerings-preview": return supported.kind === "offerings-preview" && supported.treatments.includes(composition.treatment);
|
|
1199
|
-
default: return assertNever$1(composition);
|
|
1200
|
-
}
|
|
1201
|
-
}
|
|
1202
|
-
const blockDesignFallback = {
|
|
1203
|
-
sectionSurface: "base",
|
|
1204
|
-
contentFrame: plainFrame,
|
|
1205
|
-
sectionHeight: "default",
|
|
1206
|
-
heroLegibility: "none",
|
|
1207
|
-
imageSurfaceTreatment: { kind: "none" },
|
|
1208
|
-
imageSurfaceMotion: "static",
|
|
1209
|
-
tileTreatment: "default",
|
|
1210
|
-
eventListTreatment: "plain",
|
|
1211
|
-
eyebrowTreatment: "plain",
|
|
1212
|
-
accordionIconTreatment: null,
|
|
1213
|
-
composition: null
|
|
1214
|
-
};
|
|
1215
|
-
/** The applied half of the fallback, for blocks with no usable capability. */
|
|
1216
|
-
const appliedBlockDesignFallback = {
|
|
1217
|
-
appliedSectionBackgroundPaints: [],
|
|
1218
|
-
appliedSectionSurface: blockDesignFallback.sectionSurface,
|
|
1219
|
-
appliedContentFrame: blockDesignFallback.contentFrame,
|
|
1220
|
-
appliedCardRole: null,
|
|
1221
|
-
appliedSectionHeight: blockDesignFallback.sectionHeight,
|
|
1222
|
-
appliedHeroLegibility: blockDesignFallback.heroLegibility,
|
|
1223
|
-
appliedImageSurfaceTreatment: blockDesignFallback.imageSurfaceTreatment,
|
|
1224
|
-
appliedImageSurfaceMotion: blockDesignFallback.imageSurfaceMotion,
|
|
1225
|
-
appliedTileTreatment: blockDesignFallback.tileTreatment,
|
|
1226
|
-
appliedEventListTreatment: blockDesignFallback.eventListTreatment,
|
|
1227
|
-
appliedEyebrowTreatment: blockDesignFallback.eyebrowTreatment,
|
|
1228
|
-
appliedAccordionIconTreatment: blockDesignFallback.accordionIconTreatment,
|
|
1229
|
-
appliedComposition: blockDesignFallback.composition
|
|
1230
|
-
};
|
|
1231
|
-
/** The card surface a block asked for, or `null` when it asked for none. */
|
|
1232
|
-
function requestedCardRoleOf(block) {
|
|
1233
|
-
return block.cardRole && block.cardRole !== "none" ? block.cardRole : null;
|
|
879
|
+
const blockDesignFallback = {
|
|
880
|
+
sectionSurface: "base",
|
|
881
|
+
contentFrame: plainFrame,
|
|
882
|
+
sectionHeight: "default",
|
|
883
|
+
imageSurfaceTreatment: { kind: "none" },
|
|
884
|
+
imageSurfaceMotion: "static",
|
|
885
|
+
tileTreatment: "default",
|
|
886
|
+
eventListTreatment: "plain",
|
|
887
|
+
eyebrowTreatment: "plain",
|
|
888
|
+
accordionIconTreatment: null,
|
|
889
|
+
composition: null
|
|
890
|
+
};
|
|
891
|
+
/** The applied half of the fallback, for blocks with no usable capability. */
|
|
892
|
+
const appliedBlockDesignFallback = {
|
|
893
|
+
appliedSectionBackgroundPaints: [],
|
|
894
|
+
appliedSectionSurface: blockDesignFallback.sectionSurface,
|
|
895
|
+
appliedContentFrame: blockDesignFallback.contentFrame,
|
|
896
|
+
appliedCardRole: null,
|
|
897
|
+
appliedSectionHeight: blockDesignFallback.sectionHeight,
|
|
898
|
+
appliedImageSurfaceTreatment: blockDesignFallback.imageSurfaceTreatment,
|
|
899
|
+
appliedImageSurfaceMotion: blockDesignFallback.imageSurfaceMotion,
|
|
900
|
+
appliedTileTreatment: blockDesignFallback.tileTreatment,
|
|
901
|
+
appliedEventListTreatment: blockDesignFallback.eventListTreatment,
|
|
902
|
+
appliedEyebrowTreatment: blockDesignFallback.eyebrowTreatment,
|
|
903
|
+
appliedAccordionIconTreatment: blockDesignFallback.accordionIconTreatment,
|
|
904
|
+
appliedComposition: blockDesignFallback.composition
|
|
905
|
+
};
|
|
906
|
+
/** The card surface a block asked for, or `null` when it asked for none. */
|
|
907
|
+
function requestedCardRoleOf(block) {
|
|
908
|
+
return block.cardRole && block.cardRole !== "none" ? block.cardRole : null;
|
|
1234
909
|
}
|
|
1235
910
|
/** The role a Look asked for, after capability gating. */
|
|
1236
911
|
function appliedCardRoleFor(block, capability) {
|
|
@@ -1244,7 +919,6 @@ function blockDesignRequest(block) {
|
|
|
1244
919
|
contentFrame: block.contentFrame,
|
|
1245
920
|
...block.cardRole ? { cardRole: block.cardRole } : {},
|
|
1246
921
|
sectionHeight: block.sectionHeight,
|
|
1247
|
-
heroLegibility: block.heroLegibility,
|
|
1248
922
|
imageSurfaceTreatment: block.imageSurfaceTreatment,
|
|
1249
923
|
imageSurfaceMotion: block.imageSurfaceMotion,
|
|
1250
924
|
tileTreatment: block.tileTreatment,
|
|
@@ -1263,7 +937,6 @@ function resolveBlockDesignPlan(input) {
|
|
|
1263
937
|
let appliedContentFrame = block.contentFrame;
|
|
1264
938
|
const appliedCardRole = appliedCardRoleFor(block, capability);
|
|
1265
939
|
let appliedSectionHeight = block.sectionHeight ?? "default";
|
|
1266
|
-
let appliedHeroLegibility = block.heroLegibility ?? "none";
|
|
1267
940
|
let appliedImageSurfaceTreatment = block.imageSurfaceTreatment ?? { kind: "none" };
|
|
1268
941
|
let appliedImageSurfaceMotion = block.imageSurfaceMotion ?? "static";
|
|
1269
942
|
let appliedTileTreatment = block.tileTreatment ?? "default";
|
|
@@ -1490,33 +1163,18 @@ function resolveBlockDesignPlan(input) {
|
|
|
1490
1163
|
allowedRepairActions: repairActionsForIssue("image-surface-motion-without-image-surface")
|
|
1491
1164
|
});
|
|
1492
1165
|
}
|
|
1493
|
-
if (appliedSectionSurface === "hero-image" && appliedImageSurfaceTreatment.kind
|
|
1494
|
-
|
|
1495
|
-
appliedHeroLegibility = "none";
|
|
1496
|
-
issues.push({
|
|
1497
|
-
kind: "hero-legibility-overridden-by-image-surface-treatment",
|
|
1498
|
-
blockId: block.blockId,
|
|
1499
|
-
blockKind: block.blockKind,
|
|
1500
|
-
purpose: block.purpose,
|
|
1501
|
-
requested,
|
|
1502
|
-
fallback: appliedHeroLegibility,
|
|
1503
|
-
policy: input.policy,
|
|
1504
|
-
severity: designIssueSeverityForPolicy(input.policy),
|
|
1505
|
-
allowedRepairActions: repairActionsForIssue("hero-legibility-overridden-by-image-surface-treatment")
|
|
1506
|
-
});
|
|
1507
|
-
}
|
|
1508
|
-
if (appliedSectionSurface === "hero-image" && appliedImageSurfaceTreatment.kind === "none" && (block.heroLegibility === void 0 || appliedHeroLegibility === "none")) {
|
|
1509
|
-
appliedHeroLegibility = "scrim-gradient";
|
|
1166
|
+
if (appliedSectionSurface === "hero-image" && appliedImageSurfaceTreatment.kind === "none") {
|
|
1167
|
+
appliedImageSurfaceTreatment = defaultHeroImageSurfaceTreatment;
|
|
1510
1168
|
issues.push({
|
|
1511
|
-
kind: "hero-image-without-
|
|
1169
|
+
kind: "hero-image-without-treatment",
|
|
1512
1170
|
blockId: block.blockId,
|
|
1513
1171
|
blockKind: block.blockKind,
|
|
1514
1172
|
purpose: block.purpose,
|
|
1515
|
-
requested: block.
|
|
1516
|
-
fallback:
|
|
1173
|
+
requested: block.imageSurfaceTreatment,
|
|
1174
|
+
fallback: appliedImageSurfaceTreatment,
|
|
1517
1175
|
policy: input.policy,
|
|
1518
1176
|
severity: designIssueSeverityForPolicy(input.policy),
|
|
1519
|
-
allowedRepairActions: repairActionsForIssue("hero-image-without-
|
|
1177
|
+
allowedRepairActions: repairActionsForIssue("hero-image-without-treatment")
|
|
1520
1178
|
});
|
|
1521
1179
|
}
|
|
1522
1180
|
return {
|
|
@@ -1526,7 +1184,6 @@ function resolveBlockDesignPlan(input) {
|
|
|
1526
1184
|
appliedCardRole,
|
|
1527
1185
|
appliedSectionBackgroundPaints: capability.sectionBackgroundPaints,
|
|
1528
1186
|
appliedSectionHeight,
|
|
1529
|
-
appliedHeroLegibility,
|
|
1530
1187
|
appliedImageSurfaceTreatment,
|
|
1531
1188
|
appliedImageSurfaceMotion,
|
|
1532
1189
|
appliedTileTreatment,
|
|
@@ -1654,7 +1311,7 @@ function resolveBrandDisplay(mode, logoFacts) {
|
|
|
1654
1311
|
case "logo-plus-title": return "logo-plus-title";
|
|
1655
1312
|
case "title-only": return "title-only";
|
|
1656
1313
|
case "auto": return resolveAutoBrandDisplay(logoFacts);
|
|
1657
|
-
default: return assertNever$
|
|
1314
|
+
default: return assertNever$2(mode, "Unhandled brand display mode");
|
|
1658
1315
|
}
|
|
1659
1316
|
}
|
|
1660
1317
|
/** Evidence that the artwork already supplies the brand's readable identity. */
|
|
@@ -1878,7 +1535,7 @@ function logoFactsForHeaderContext(logo) {
|
|
|
1878
1535
|
case "horizontal":
|
|
1879
1536
|
case "square":
|
|
1880
1537
|
case "tall": return deterministicLogoFactsForShape(logo.shape);
|
|
1881
|
-
default: return assertNever$
|
|
1538
|
+
default: return assertNever$2(logo.shape, "Unhandled header logo shape");
|
|
1882
1539
|
}
|
|
1883
1540
|
}
|
|
1884
1541
|
const headerLayoutCatalog = defineExactCatalog()([
|
|
@@ -2119,7 +1776,7 @@ function compositionCapabilityFor(composition) {
|
|
|
2119
1776
|
kind: "offerings-preview",
|
|
2120
1777
|
treatments: [composition.treatment]
|
|
2121
1778
|
};
|
|
2122
|
-
default: return assertNever$
|
|
1779
|
+
default: return assertNever$2(composition);
|
|
2123
1780
|
}
|
|
2124
1781
|
}
|
|
2125
1782
|
//#endregion
|
|
@@ -2230,7 +1887,7 @@ function selectCandidate(candidates) {
|
|
|
2230
1887
|
outcome
|
|
2231
1888
|
};
|
|
2232
1889
|
case "unsupported": continue;
|
|
2233
|
-
default: return assertNever$
|
|
1890
|
+
default: return assertNever$2(outcome, "Unhandled join candidate outcome");
|
|
2234
1891
|
}
|
|
2235
1892
|
}
|
|
2236
1893
|
return { kind: "exhausted" };
|
|
@@ -2250,7 +1907,7 @@ function fallbackOptionId(outcome) {
|
|
|
2250
1907
|
switch (outcome.kind) {
|
|
2251
1908
|
case "decorative": return boundaryOptionForTransitionIntent(outcome.treatment).id;
|
|
2252
1909
|
case "none": return noneBoundaryOption.id;
|
|
2253
|
-
default: return assertNever$
|
|
1910
|
+
default: return assertNever$2(outcome, "Unhandled join fallback outcome");
|
|
2254
1911
|
}
|
|
2255
1912
|
}
|
|
2256
1913
|
function requiresPhoto(option) {
|
|
@@ -2828,7 +2485,7 @@ function pinnedBreakChoice(resolution) {
|
|
|
2828
2485
|
},
|
|
2829
2486
|
issues: resolution.issues
|
|
2830
2487
|
};
|
|
2831
|
-
default: return assertNever$
|
|
2488
|
+
default: return assertNever$2(resolution.pin, "Unhandled join pin status");
|
|
2832
2489
|
}
|
|
2833
2490
|
}
|
|
2834
2491
|
/** The effective break as the option the editor shows; null when nothing was usable. */
|
|
@@ -3160,91 +2817,415 @@ function lookCatalogueMode(block, style) {
|
|
|
3160
2817
|
const offers = style.looks.offers;
|
|
3161
2818
|
return arrangementAppearancePresets.some((look) => look.blockKinds.includes("block.event-calendar") && look.structure.byMode.combined !== void 0 && offers.some((offer) => offer.id === look.id)) ? mode : "list";
|
|
3162
2819
|
}
|
|
3163
|
-
function editorMode(block) {
|
|
3164
|
-
if (block.variantMeaning?.kind !== "mode") return null;
|
|
3165
|
-
return readStoredMode({
|
|
3166
|
-
keys: block.layoutVariantKeys ?? [],
|
|
3167
|
-
defaultKey: block.defaultLayoutVariantKey ?? null,
|
|
3168
|
-
variantMeaning: block.variantMeaning
|
|
3169
|
-
}, { variant: block.storedVariant.kind === "explicit" ? block.storedVariant.key : void 0 });
|
|
2820
|
+
function editorMode(block) {
|
|
2821
|
+
if (block.variantMeaning?.kind !== "mode") return null;
|
|
2822
|
+
return readStoredMode({
|
|
2823
|
+
keys: block.layoutVariantKeys ?? [],
|
|
2824
|
+
defaultKey: block.defaultLayoutVariantKey ?? null,
|
|
2825
|
+
variantMeaning: block.variantMeaning
|
|
2826
|
+
}, { variant: block.storedVariant.kind === "explicit" ? block.storedVariant.key : void 0 });
|
|
2827
|
+
}
|
|
2828
|
+
function editorArrangementCapabilities(block, mode, style) {
|
|
2829
|
+
return {
|
|
2830
|
+
blockKind: block.blockKind,
|
|
2831
|
+
mode,
|
|
2832
|
+
arrangementKeys: [...block.variantMeaning?.lookOnlyKeys ?? [], ...block.arrangementKeys ?? block.designMetadata?.layoutProfiles.map((profile) => profile.variantKey) ?? []],
|
|
2833
|
+
mappedRoles: [
|
|
2834
|
+
"card",
|
|
2835
|
+
"statement",
|
|
2836
|
+
"highlight"
|
|
2837
|
+
],
|
|
2838
|
+
declaredSurfaces: style?.looks.kind === "offers" ? Object.keys(style.looks.surfaces) : [],
|
|
2839
|
+
knobBuffet: block.knobBuffet ?? [],
|
|
2840
|
+
...contentPartsCapability(block)
|
|
2841
|
+
};
|
|
2842
|
+
}
|
|
2843
|
+
function contentPartsCapability(block) {
|
|
2844
|
+
const contentParts = editorContentParts(block);
|
|
2845
|
+
return contentParts === void 0 ? {} : { contentParts };
|
|
2846
|
+
}
|
|
2847
|
+
function resolvedLookPreservesPin(resolved) {
|
|
2848
|
+
switch (resolved.kind) {
|
|
2849
|
+
case "offered":
|
|
2850
|
+
case "recipe": return resolved.source === "pinned";
|
|
2851
|
+
case "style-fallback":
|
|
2852
|
+
case "mode-mismatch": return true;
|
|
2853
|
+
case "none": return false;
|
|
2854
|
+
}
|
|
2855
|
+
}
|
|
2856
|
+
function editorArrangementLayoutResult(block, style, lookId, recipe) {
|
|
2857
|
+
if (style?.looks.kind !== "offers" || lookId === null) return recipe;
|
|
2858
|
+
if (block.variantMeaning?.kind === "mode") {
|
|
2859
|
+
const mode = editorMode(block);
|
|
2860
|
+
if (mode === null) return recipe;
|
|
2861
|
+
const key = asLayoutVariantKey(mode);
|
|
2862
|
+
return {
|
|
2863
|
+
...recipe,
|
|
2864
|
+
choice: {
|
|
2865
|
+
...recipe.choice,
|
|
2866
|
+
effectiveValue: key
|
|
2867
|
+
},
|
|
2868
|
+
selection: recipe.selection ? {
|
|
2869
|
+
...recipe.selection,
|
|
2870
|
+
effectiveValue: key
|
|
2871
|
+
} : {
|
|
2872
|
+
kind: "selected",
|
|
2873
|
+
value: key,
|
|
2874
|
+
status: "supported",
|
|
2875
|
+
effectiveValue: key
|
|
2876
|
+
}
|
|
2877
|
+
};
|
|
2878
|
+
}
|
|
2879
|
+
const key = resolveEffectiveArrangement({
|
|
2880
|
+
look: arrangementAppearancePresets.find((entry) => entry.id === lookId),
|
|
2881
|
+
mode: editorMode(block),
|
|
2882
|
+
storedVariant: block.storedVariant,
|
|
2883
|
+
manifest: {
|
|
2884
|
+
keys: block.arrangementKeys ?? [],
|
|
2885
|
+
defaultKey: null
|
|
2886
|
+
}
|
|
2887
|
+
}).key;
|
|
2888
|
+
return key === null ? recipe : {
|
|
2889
|
+
choice: autoEditorChoice(key),
|
|
2890
|
+
issue: null,
|
|
2891
|
+
selection: {
|
|
2892
|
+
kind: "selected",
|
|
2893
|
+
value: key,
|
|
2894
|
+
status: "supported",
|
|
2895
|
+
effectiveValue: key
|
|
2896
|
+
}
|
|
2897
|
+
};
|
|
2898
|
+
}
|
|
2899
|
+
function editorLookOptionsForSection(input) {
|
|
2900
|
+
const layout = editorEffectiveLayout(input);
|
|
2901
|
+
return input.siteStyle?.looks.kind === "offers" || layout.kind === "none" ? lookOptionsForBlock({
|
|
2902
|
+
...input,
|
|
2903
|
+
effectiveLayoutProfile: null
|
|
2904
|
+
}) : availableLooksForLayout(input.availableLooksByLayout, layout.key);
|
|
2905
|
+
}
|
|
2906
|
+
//#endregion
|
|
2907
|
+
//#region ../theme-core/src/cards/constants.ts
|
|
2908
|
+
/**
|
|
2909
|
+
* Corner style to border-radius value map for content-bearing card surfaces.
|
|
2910
|
+
* Full pill radii are reserved for controls; cards need a capped radius so
|
|
2911
|
+
* long titles, media, and expanded content do not clip into capsule shapes.
|
|
2912
|
+
*/
|
|
2913
|
+
const CORNER_RADIUS_MAP = {
|
|
2914
|
+
square: "0px",
|
|
2915
|
+
soft: "8px",
|
|
2916
|
+
rounded: "16px",
|
|
2917
|
+
pill: "24px"
|
|
2918
|
+
};
|
|
2919
|
+
/**
|
|
2920
|
+
* Gradient direction to CSS direction map
|
|
2921
|
+
*/
|
|
2922
|
+
const GRADIENT_DIRECTION_MAP = {
|
|
2923
|
+
"to-r": "to right",
|
|
2924
|
+
"to-l": "to left",
|
|
2925
|
+
"to-t": "to top",
|
|
2926
|
+
"to-b": "to bottom",
|
|
2927
|
+
"to-tr": "to top right",
|
|
2928
|
+
"to-tl": "to top left",
|
|
2929
|
+
"to-br": "to bottom right",
|
|
2930
|
+
"to-bl": "to bottom left"
|
|
2931
|
+
};
|
|
2932
|
+
/**
|
|
2933
|
+
* Generate CSS box-shadow value from Shadow object
|
|
2934
|
+
*/
|
|
2935
|
+
function generateShadowValue(shadow) {
|
|
2936
|
+
if (shadow.elevation === "none") return "none";
|
|
2937
|
+
const offset = {
|
|
2938
|
+
low: 2,
|
|
2939
|
+
medium: 4,
|
|
2940
|
+
high: 6
|
|
2941
|
+
}[shadow.elevation];
|
|
2942
|
+
const xOffset = shadow.position === "bottom-right" ? offset : 0;
|
|
2943
|
+
if (shadow.softness === "hard") return `${xOffset}px ${offset}px 0 0 rgba(0,0,0,1)`;
|
|
2944
|
+
const soft = shadow.softness !== "crisp";
|
|
2945
|
+
switch (shadow.elevation) {
|
|
2946
|
+
case "low": return soft ? `${xOffset}px 1px 2px rgba(0,0,0,.06)` : `${xOffset}px 1px 1px rgba(0,0,0,.12)`;
|
|
2947
|
+
case "medium": return soft ? `${xOffset}px 10px 20px rgba(0,0,0,.08)` : `${xOffset}px 6px 12px rgba(0,0,0,.16)`;
|
|
2948
|
+
case "high": return soft ? `${xOffset}px 25px 50px rgba(0,0,0,.18)` : `${xOffset}px 20px 30px rgba(0,0,0,.28)`;
|
|
2949
|
+
}
|
|
2950
|
+
}
|
|
2951
|
+
//#endregion
|
|
2952
|
+
//#region ../theme-core/src/cards/decorations.ts
|
|
2953
|
+
const CARD_EDGE_RULE_WIDTH_MAP = {
|
|
2954
|
+
hairline: "1px",
|
|
2955
|
+
thin: "2px",
|
|
2956
|
+
medium: "3px",
|
|
2957
|
+
thick: "4px",
|
|
2958
|
+
heavy: "5px"
|
|
2959
|
+
};
|
|
2960
|
+
const CARD_EDGE_BORDER_PROPERTY_MAP = {
|
|
2961
|
+
left: "border-left",
|
|
2962
|
+
top: "border-top",
|
|
2963
|
+
right: "border-right",
|
|
2964
|
+
bottom: "border-bottom"
|
|
2965
|
+
};
|
|
2966
|
+
/**
|
|
2967
|
+
* The one short-rule length in the corpus (the editorial-rule accent). A fixed
|
|
2968
|
+
* constant keeps `length: 'short'` a semantic choice rather than a free number.
|
|
2969
|
+
*/
|
|
2970
|
+
const SHORT_CARD_EDGE_RULE_LENGTH = "2.75rem";
|
|
2971
|
+
function isFullLength(rule) {
|
|
2972
|
+
return (rule.length ?? "full") === "full";
|
|
2973
|
+
}
|
|
2974
|
+
/** Apply a decoration's optional alpha to its resolved colour. */
|
|
2975
|
+
function cardDecorationColor(rule, resolveColor) {
|
|
2976
|
+
const color = resolveColor(rule.colorToken);
|
|
2977
|
+
if (rule.alpha === void 0 || rule.alpha >= 1) return color;
|
|
2978
|
+
return `color-mix(in oklab, ${color}, transparent ${Math.round((1 - rule.alpha) * 100)}%)`;
|
|
2979
|
+
}
|
|
2980
|
+
/**
|
|
2981
|
+
* Container border declarations for a variant's border and its full-length
|
|
2982
|
+
* edge rules. The two are independent: a card may be outlined *and* carry an
|
|
2983
|
+
* accent edge. A variant with edge rules and no border still zeroes the box so
|
|
2984
|
+
* only the decorated sides draw.
|
|
2985
|
+
*/
|
|
2986
|
+
function cardBorderDeclarations(borderDeclaration, decorations, resolveColor) {
|
|
2987
|
+
const fullLengthRules = (decorations ?? []).filter(isFullLength);
|
|
2988
|
+
const declarations = [];
|
|
2989
|
+
if (borderDeclaration) declarations.push(borderDeclaration);
|
|
2990
|
+
else if (fullLengthRules.length > 0) declarations.push("border: 0");
|
|
2991
|
+
for (const rule of fullLengthRules) {
|
|
2992
|
+
const side = CARD_EDGE_BORDER_PROPERTY_MAP[rule.edge];
|
|
2993
|
+
const width = CARD_EDGE_RULE_WIDTH_MAP[rule.width];
|
|
2994
|
+
declarations.push(`${side}: ${width} solid ${cardDecorationColor(rule, resolveColor)}`);
|
|
2995
|
+
}
|
|
2996
|
+
return declarations;
|
|
2997
|
+
}
|
|
2998
|
+
function horizontalAlignDeclarations(align) {
|
|
2999
|
+
switch (align ?? "start") {
|
|
3000
|
+
case "start": return ["left: 0"];
|
|
3001
|
+
case "center": return ["left: 50%", "transform: translateX(-50%)"];
|
|
3002
|
+
case "end": return ["right: 0"];
|
|
3003
|
+
}
|
|
3004
|
+
}
|
|
3005
|
+
function verticalAlignDeclarations(align) {
|
|
3006
|
+
switch (align ?? "start") {
|
|
3007
|
+
case "start": return ["top: 0"];
|
|
3008
|
+
case "center": return ["top: 50%", "transform: translateY(-50%)"];
|
|
3009
|
+
case "end": return ["bottom: 0"];
|
|
3010
|
+
}
|
|
3011
|
+
}
|
|
3012
|
+
function shortEdgeRuleDeclarations(rule, resolveColor) {
|
|
3013
|
+
const thickness = CARD_EDGE_RULE_WIDTH_MAP[rule.width];
|
|
3014
|
+
const isHorizontal = rule.edge === "top" || rule.edge === "bottom";
|
|
3015
|
+
return [
|
|
3016
|
+
"content: \"\"",
|
|
3017
|
+
"position: absolute",
|
|
3018
|
+
`${rule.edge}: 0`,
|
|
3019
|
+
...isHorizontal ? horizontalAlignDeclarations(rule.align) : verticalAlignDeclarations(rule.align),
|
|
3020
|
+
`width: ${isHorizontal ? SHORT_CARD_EDGE_RULE_LENGTH : thickness}`,
|
|
3021
|
+
`height: ${isHorizontal ? thickness : SHORT_CARD_EDGE_RULE_LENGTH}`,
|
|
3022
|
+
`background: ${cardDecorationColor(rule, resolveColor)}`
|
|
3023
|
+
];
|
|
3024
|
+
}
|
|
3025
|
+
/**
|
|
3026
|
+
* The pseudo-elements a card container can lend to short edge rules. A short
|
|
3027
|
+
* rule cannot be a border, so it is drawn on `::before` / `::after` against the
|
|
3028
|
+
* container (which always sets `position: relative`) — and a card has exactly
|
|
3029
|
+
* two of those.
|
|
3030
|
+
*/
|
|
3031
|
+
const CARD_DECORATION_PSEUDOS = ["::before", "::after"];
|
|
3032
|
+
/**
|
|
3033
|
+
* Complete pseudo-element rules for a variant's short edge rules.
|
|
3034
|
+
*
|
|
3035
|
+
* `cardDecorationsSchema` caps the list at two, which makes the two pseudos
|
|
3036
|
+
* sufficient for anything that parsed. The dependency-free core types carry a
|
|
3037
|
+
* plain array with no such cap, so short rules past the second are dropped
|
|
3038
|
+
* here rather than silently overwriting `::after`.
|
|
3039
|
+
*/
|
|
3040
|
+
function cardDecorationPseudoRules(containerSelectors, decorations, resolveColor) {
|
|
3041
|
+
const shortRules = (decorations ?? []).filter((rule) => !isFullLength(rule));
|
|
3042
|
+
return CARD_DECORATION_PSEUDOS.flatMap((pseudo, index) => {
|
|
3043
|
+
const rule = shortRules[index];
|
|
3044
|
+
if (!rule) return [];
|
|
3045
|
+
return [`${containerSelectors.map((containerSelector) => `${containerSelector}${pseudo}`).join(",\n")} {\n ${shortEdgeRuleDeclarations(rule, resolveColor).join(";\n ")};\n}`];
|
|
3046
|
+
});
|
|
3047
|
+
}
|
|
3048
|
+
//#endregion
|
|
3049
|
+
//#region ../theme-core/src/utils/cssDeclarations.ts
|
|
3050
|
+
/** Render CSS declarations whether callers provide terminators or fragments. */
|
|
3051
|
+
function renderCssDeclarations(declarations) {
|
|
3052
|
+
return declarations.map((declaration) => declaration.endsWith(";") ? declaration : `${declaration};`).join("\n ");
|
|
3053
|
+
}
|
|
3054
|
+
//#endregion
|
|
3055
|
+
//#region ../theme-core/src/cards/generateCardCss.ts
|
|
3056
|
+
const PER_CORNER_RADIUS_MAP = {
|
|
3057
|
+
square: "0",
|
|
3058
|
+
soft: "0.5rem",
|
|
3059
|
+
rounded: "1rem",
|
|
3060
|
+
pill: "1.5rem",
|
|
3061
|
+
expressive: "calc(var(--rb-block-radius) * 3)"
|
|
3062
|
+
};
|
|
3063
|
+
function resolveCornerRadiiCss(cornerRadii, fallback) {
|
|
3064
|
+
const fallbackValue = CORNER_RADIUS_MAP[fallback];
|
|
3065
|
+
const at = (value) => value ? PER_CORNER_RADIUS_MAP[value] : fallbackValue;
|
|
3066
|
+
return `${at(cornerRadii.topLeft)} ${at(cornerRadii.topRight)} ${at(cornerRadii.bottomRight)} ${at(cornerRadii.bottomLeft)}`;
|
|
3067
|
+
}
|
|
3068
|
+
function generateCardCss(options) {
|
|
3069
|
+
const { themeId, cardSystem: providedCardSystem, solvedInks } = options;
|
|
3070
|
+
const theme = {
|
|
3071
|
+
...options.theme,
|
|
3072
|
+
buttons: ownedThemeSnapshot(options.theme.buttons)
|
|
3073
|
+
};
|
|
3074
|
+
const tokens = new TokenResolver(theme);
|
|
3075
|
+
const palette = freezeOwnedThemeValue(expandPalette(theme.palette));
|
|
3076
|
+
const cardSystem = providedCardSystem ?? generateDefaultCardSystem(theme);
|
|
3077
|
+
const source = providedCardSystem ? "site-style" : "generated-baseline";
|
|
3078
|
+
const aliasGroups = resolveRoleAliasGroups(theme, providedCardSystem ?? null);
|
|
3079
|
+
const cssChunks = [];
|
|
3080
|
+
const emittedGroupKeys = /* @__PURE__ */ new Set();
|
|
3081
|
+
for (const variant of cardSystem.variants) {
|
|
3082
|
+
if (!variant.enabled) continue;
|
|
3083
|
+
const groupKey = roleAliasGroupKey(source, variant.id);
|
|
3084
|
+
emittedGroupKeys.add(groupKey);
|
|
3085
|
+
const aliasClasses = aliasGroups.get(groupKey)?.classes ?? [];
|
|
3086
|
+
cssChunks.push(generateVariantCSS(variant, themeId, [`card-${variant.id}`, ...aliasClasses], tokens, theme, palette, solvedInks));
|
|
3087
|
+
}
|
|
3088
|
+
for (const [groupKey, group] of aliasGroups) {
|
|
3089
|
+
if (emittedGroupKeys.has(groupKey)) continue;
|
|
3090
|
+
cssChunks.push(generateVariantCSS(group.variant, themeId, group.classes, tokens, theme, palette, solvedInks));
|
|
3091
|
+
}
|
|
3092
|
+
return cssChunks.filter(Boolean).join("\n\n");
|
|
3093
|
+
}
|
|
3094
|
+
function roleAliasGroupKey(source, variantId) {
|
|
3095
|
+
return `${source}:${variantId}`;
|
|
3096
|
+
}
|
|
3097
|
+
/**
|
|
3098
|
+
* Stable per-theme role aliases (`.card-role-default` and friends), resolved
|
|
3099
|
+
* through the fallback chain so compiled content can address a role without
|
|
3100
|
+
* knowing which variant id a site style used — or whether it defined one.
|
|
3101
|
+
*
|
|
3102
|
+
* Aliases are grouped by the variant they resolve to, so an alias shares one
|
|
3103
|
+
* rule with that variant rather than duplicating its declarations.
|
|
3104
|
+
*/
|
|
3105
|
+
function resolveRoleAliasGroups(theme, cardSystem) {
|
|
3106
|
+
const groups = /* @__PURE__ */ new Map();
|
|
3107
|
+
for (const role of surfaceCardRoleValues) {
|
|
3108
|
+
const resolved = resolveCardRole(theme, cardSystem, role);
|
|
3109
|
+
if (resolved.kind === "none") continue;
|
|
3110
|
+
const groupKey = roleAliasGroupKey(resolved.source, resolved.variant.id);
|
|
3111
|
+
const aliasClass = `card-role-${role}`;
|
|
3112
|
+
const group = groups.get(groupKey);
|
|
3113
|
+
if (group) group.classes.push(aliasClass);
|
|
3114
|
+
else groups.set(groupKey, {
|
|
3115
|
+
variant: resolved.variant,
|
|
3116
|
+
classes: [aliasClass]
|
|
3117
|
+
});
|
|
3118
|
+
}
|
|
3119
|
+
return groups;
|
|
3120
|
+
}
|
|
3121
|
+
/**
|
|
3122
|
+
* Padding map for card content based on spacing semantic values
|
|
3123
|
+
*/
|
|
3124
|
+
const CONTENT_PADDING_MAP = {
|
|
3125
|
+
none: "0",
|
|
3126
|
+
compact: "0.75rem",
|
|
3127
|
+
cozy: "1rem",
|
|
3128
|
+
medium: "1.25rem",
|
|
3129
|
+
comfortable: "1.5rem",
|
|
3130
|
+
spacious: "2rem"
|
|
3131
|
+
};
|
|
3132
|
+
/**
|
|
3133
|
+
* Corner radius map for card media (top corners only). Match card surface
|
|
3134
|
+
* radii rather than button pills so media does not become capsule-clipped.
|
|
3135
|
+
*/
|
|
3136
|
+
const MEDIA_CORNER_MAP = {
|
|
3137
|
+
square: "0",
|
|
3138
|
+
soft: "0.5rem",
|
|
3139
|
+
rounded: "1rem",
|
|
3140
|
+
pill: "1.5rem"
|
|
3141
|
+
};
|
|
3142
|
+
/**
|
|
3143
|
+
* Generate CSS for a single card variant
|
|
3144
|
+
*
|
|
3145
|
+
* Generates complete CSS for card containers and their children:
|
|
3146
|
+
* - Container: background, shadow, corners, border
|
|
3147
|
+
* - .card-media: top corners matching container
|
|
3148
|
+
* - .card-content: padding based on spacing
|
|
3149
|
+
*
|
|
3150
|
+
* This CSS-first approach eliminates runtime transforms for styling,
|
|
3151
|
+
* keeping transforms only for data normalization and dynamic layout.
|
|
3152
|
+
*/
|
|
3153
|
+
function generateVariantCSS(variant, themeId, cardClasses, tokens, theme, palette, solvedInks) {
|
|
3154
|
+
const selectorsFor = (suffix) => cardClasses.map((cardClass) => `:where([data-theme-scope="${themeId}"]) .${cardClass}.${cardClass}${suffix}`).join(",\n");
|
|
3155
|
+
const containerSelectors = cardClasses.map((cardClass) => `:where([data-theme-scope="${themeId}"]) .${cardClass}.${cardClass}`);
|
|
3156
|
+
const containerSelector = containerSelectors.join(",\n");
|
|
3157
|
+
const mediaSelector = selectorsFor(" .card-media");
|
|
3158
|
+
const contentSelector = selectorsFor(" .card-content");
|
|
3159
|
+
const fallbackBackgroundSelector = selectorsFor(" > .rb-bg-surface");
|
|
3160
|
+
const rules = [];
|
|
3161
|
+
rules.push(...cardSurfaceRules(variant, tokens, theme, palette, solvedInks));
|
|
3162
|
+
const resolveColor = (token) => tokens.getColor(token);
|
|
3163
|
+
rules.push(...cardBorderDeclarations(variant.border ? borderDeclaration(variant.border, tokens) : null, variant.decorations, resolveColor));
|
|
3164
|
+
const corners = variant.corners ?? theme.corners;
|
|
3165
|
+
const radius = variant.cornerRadii ? resolveCornerRadiiCss(variant.cornerRadii, corners) : CORNER_RADIUS_MAP[corners];
|
|
3166
|
+
rules.push(`border-radius: ${radius}`);
|
|
3167
|
+
const shadow = variant.shadow ?? theme.shadow;
|
|
3168
|
+
if (shadow.elevation !== "none") {
|
|
3169
|
+
const shadowValue = generateShadowValue(shadow);
|
|
3170
|
+
rules.push(`box-shadow: ${shadowValue}`);
|
|
3171
|
+
}
|
|
3172
|
+
const structureSelector = cardClasses.map((cardClass) => `:where([data-theme-scope="${themeId}"]) :where(.${cardClass})`).join(",\n");
|
|
3173
|
+
const mediaRadius = MEDIA_CORNER_MAP[corners];
|
|
3174
|
+
const mediaRules = [`border-top-left-radius: ${mediaRadius}`, `border-top-right-radius: ${mediaRadius}`];
|
|
3175
|
+
const contentRules = [`padding: ${resolveContentPadding(variant)}`];
|
|
3176
|
+
return [
|
|
3177
|
+
`${structureSelector} {\n display: flex;\n flex-direction: column;\n position: relative;\n overflow: visible;\n}`,
|
|
3178
|
+
`${containerSelector} {\n ${renderCssDeclarations(rules)}\n}`,
|
|
3179
|
+
...cardDecorationPseudoRules(containerSelectors, variant.decorations, resolveColor),
|
|
3180
|
+
`${fallbackBackgroundSelector} {\n background: transparent;\n}`,
|
|
3181
|
+
`${mediaSelector} {\n ${mediaRules.join(";\n ")};\n}`,
|
|
3182
|
+
`${contentSelector} {\n ${contentRules.join(";\n ")};\n}`
|
|
3183
|
+
].join("\n\n");
|
|
3184
|
+
}
|
|
3185
|
+
function cardSurfaceRules(variant, tokens, theme, palette, solvedInks) {
|
|
3186
|
+
if (variant.background.type === "transparent") return ["background: transparent"];
|
|
3187
|
+
const surface = resolveSurface({
|
|
3188
|
+
kind: "paint",
|
|
3189
|
+
paint: cardSurfacePaint(variant)
|
|
3190
|
+
}, {
|
|
3191
|
+
palette,
|
|
3192
|
+
buttonSystem: theme.buttons,
|
|
3193
|
+
linkHoverToken: theme.typography.proseLinkStyle?.hoverColorToken,
|
|
3194
|
+
solvedInks
|
|
3195
|
+
});
|
|
3196
|
+
return [cardBackgroundRule(variant.background, tokens), ...opaqueSurfaceDeclarations(surface)];
|
|
3170
3197
|
}
|
|
3171
|
-
function
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
};
|
|
3198
|
+
function cardSurfacePaint(variant) {
|
|
3199
|
+
switch (variant.background.type) {
|
|
3200
|
+
case "transparent": return { kind: "transparent" };
|
|
3201
|
+
case "solid": return {
|
|
3202
|
+
kind: "solid",
|
|
3203
|
+
token: variant.background.colorToken,
|
|
3204
|
+
foregroundToken: variant.foregroundToken
|
|
3205
|
+
};
|
|
3206
|
+
case "gradient": return {
|
|
3207
|
+
kind: "gradient",
|
|
3208
|
+
foregroundToken: variant.foregroundToken
|
|
3209
|
+
};
|
|
3210
|
+
}
|
|
3185
3211
|
}
|
|
3186
|
-
function
|
|
3187
|
-
|
|
3188
|
-
|
|
3212
|
+
function cardBackgroundRule(background, tokens) {
|
|
3213
|
+
if (background.type === "solid") return `background: ${tokens.getColor(background.colorToken)}`;
|
|
3214
|
+
const from = tokens.getColor(background.fromToken);
|
|
3215
|
+
const to = tokens.getColor(background.toToken);
|
|
3216
|
+
return `background: linear-gradient(${GRADIENT_DIRECTION_MAP[background.direction] || "to right"}, ${from}, ${to})`;
|
|
3189
3217
|
}
|
|
3190
|
-
function
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
case "recipe": return resolved.source === "pinned";
|
|
3194
|
-
case "style-fallback":
|
|
3195
|
-
case "mode-mismatch": return true;
|
|
3196
|
-
case "none": return false;
|
|
3197
|
-
}
|
|
3218
|
+
function borderDeclaration(border, tokens) {
|
|
3219
|
+
const borderColor = tokens.getColor(border.colorToken);
|
|
3220
|
+
return `border: ${border.widthClass === "border-4" ? "4px" : border.widthClass === "border-2" ? "2px" : border.widthClass === "border" ? "1px" : "1px"} solid ${borderColor}`;
|
|
3198
3221
|
}
|
|
3199
|
-
function
|
|
3200
|
-
|
|
3201
|
-
if (block.variantMeaning?.kind === "mode") {
|
|
3202
|
-
const mode = editorMode(block);
|
|
3203
|
-
if (mode === null) return recipe;
|
|
3204
|
-
const key = asLayoutVariantKey(mode);
|
|
3205
|
-
return {
|
|
3206
|
-
...recipe,
|
|
3207
|
-
choice: {
|
|
3208
|
-
...recipe.choice,
|
|
3209
|
-
effectiveValue: key
|
|
3210
|
-
},
|
|
3211
|
-
selection: recipe.selection ? {
|
|
3212
|
-
...recipe.selection,
|
|
3213
|
-
effectiveValue: key
|
|
3214
|
-
} : {
|
|
3215
|
-
kind: "selected",
|
|
3216
|
-
value: key,
|
|
3217
|
-
status: "supported",
|
|
3218
|
-
effectiveValue: key
|
|
3219
|
-
}
|
|
3220
|
-
};
|
|
3221
|
-
}
|
|
3222
|
-
const key = resolveEffectiveArrangement({
|
|
3223
|
-
look: arrangementAppearancePresets.find((entry) => entry.id === lookId),
|
|
3224
|
-
mode: editorMode(block),
|
|
3225
|
-
storedVariant: block.storedVariant,
|
|
3226
|
-
manifest: {
|
|
3227
|
-
keys: block.arrangementKeys ?? [],
|
|
3228
|
-
defaultKey: null
|
|
3229
|
-
}
|
|
3230
|
-
}).key;
|
|
3231
|
-
return key === null ? recipe : {
|
|
3232
|
-
choice: autoEditorChoice(key),
|
|
3233
|
-
issue: null,
|
|
3234
|
-
selection: {
|
|
3235
|
-
kind: "selected",
|
|
3236
|
-
value: key,
|
|
3237
|
-
status: "supported",
|
|
3238
|
-
effectiveValue: key
|
|
3239
|
-
}
|
|
3240
|
-
};
|
|
3222
|
+
function paddingFor(spacing) {
|
|
3223
|
+
return CONTENT_PADDING_MAP[spacing] || CONTENT_PADDING_MAP.comfortable;
|
|
3241
3224
|
}
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
effectiveLayoutProfile: null
|
|
3247
|
-
}) : availableLooksForLayout(input.availableLooksByLayout, layout.key);
|
|
3225
|
+
/** A card's padding: one value for both axes, or one per axis. */
|
|
3226
|
+
function resolveContentPadding(variant) {
|
|
3227
|
+
const spacing = variant.spacing;
|
|
3228
|
+
return typeof spacing === "string" ? paddingFor(spacing) : `${paddingFor(spacing.block)} ${paddingFor(spacing.inline)}`;
|
|
3248
3229
|
}
|
|
3249
3230
|
//#endregion
|
|
3250
3231
|
//#region ../theme-core/src/header/legacyNavLinkStyle.ts
|
|
@@ -4657,6 +4638,20 @@ const opaquePanels = [
|
|
|
4657
4638
|
kind: "solid",
|
|
4658
4639
|
token: "surface"
|
|
4659
4640
|
}
|
|
4641
|
+
},
|
|
4642
|
+
{
|
|
4643
|
+
selector: "[data-block=\"gifting\"] .gifting-panel",
|
|
4644
|
+
paint: {
|
|
4645
|
+
kind: "solid",
|
|
4646
|
+
token: "surface"
|
|
4647
|
+
}
|
|
4648
|
+
},
|
|
4649
|
+
{
|
|
4650
|
+
selector: "[data-block=\"gifting\"] .gifting-field :is(input, textarea)",
|
|
4651
|
+
paint: {
|
|
4652
|
+
kind: "solid",
|
|
4653
|
+
token: "surface"
|
|
4654
|
+
}
|
|
4660
4655
|
}
|
|
4661
4656
|
];
|
|
4662
4657
|
/**
|
|
@@ -5951,77 +5946,26 @@ const NAV_RENDERED_STATES = [
|
|
|
5951
5946
|
function isNavHover(state) {
|
|
5952
5947
|
return state === "hover" || state === "current-hover";
|
|
5953
5948
|
}
|
|
5954
|
-
|
|
5955
|
-
return state === "current" || state === "current-hover";
|
|
5956
|
-
}
|
|
5957
|
-
/** Mirrors the historical emitters: every group writes a base gradient and hover opacity;
|
|
5958
|
-
* active groups additionally write the more specific current-page selector. */
|
|
5949
|
+
/** Project the emitted declarations into the four disjoint nav states. */
|
|
5959
5950
|
function resolveRenderedNavEffects(effects, state) {
|
|
5960
|
-
const
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
"
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
})));
|
|
5969
|
-
const opacity = winner(
|
|
5951
|
+
const current = state === "current" || state === "current-hover";
|
|
5952
|
+
const declarations = resolveEffectApplications(effects).flatMap((application) => {
|
|
5953
|
+
if (application.currentPage && !current) return [];
|
|
5954
|
+
return resolveEffectPaint(application.effect, { background: { type: "transparent" } }).filter((paint) => paint.when === "always" || isNavHover(state)).map((paint) => ({
|
|
5955
|
+
paint,
|
|
5956
|
+
specificity: 1 + Number(application.currentPage) + Number(paint.when === "hover")
|
|
5957
|
+
}));
|
|
5958
|
+
});
|
|
5959
|
+
const text = winner(declarations.filter(({ paint }) => paint.property === "text"));
|
|
5960
|
+
const opacity = winner(declarations.filter(({ paint }) => paint.property === "opacity"));
|
|
5970
5961
|
return {
|
|
5971
|
-
text:
|
|
5972
|
-
opacity: opacity
|
|
5962
|
+
text: text?.property === "text" ? text : null,
|
|
5963
|
+
opacity: opacity?.property === "opacity" && Number.isFinite(opacity.opacity) && opacity.opacity >= 0 && opacity.opacity <= 1 ? opacity.opacity : null
|
|
5973
5964
|
};
|
|
5974
5965
|
}
|
|
5975
|
-
function authoredOpacity(effect) {
|
|
5976
|
-
const options = effect.options ?? {};
|
|
5977
|
-
const opacity = effect.effectId === "fade-background" ? Number(options.opacity || 80) / 100 : 1 - Number(options.reduction || 15) / 100;
|
|
5978
|
-
return Number.isFinite(opacity) && opacity >= 0 && opacity <= 1 ? opacity : null;
|
|
5979
|
-
}
|
|
5980
|
-
function textCandidates(app, state) {
|
|
5981
|
-
const gradient = {
|
|
5982
|
-
effect: app.effect,
|
|
5983
|
-
fill: "gradient"
|
|
5984
|
-
};
|
|
5985
|
-
const solid = {
|
|
5986
|
-
effect: app.effect,
|
|
5987
|
-
fill: "solid"
|
|
5988
|
-
};
|
|
5989
|
-
const solidOnHover = app.effect.options?.solidOnHover === true || app.effect.options?.solidOnHover === "true";
|
|
5990
|
-
const hover = isNavHover(state) && solidOnHover ? [{
|
|
5991
|
-
value: solid,
|
|
5992
|
-
specificity: 2
|
|
5993
|
-
}] : [];
|
|
5994
|
-
const currentHover = isNavHover(state) && solidOnHover ? [{
|
|
5995
|
-
value: solid,
|
|
5996
|
-
specificity: 3
|
|
5997
|
-
}] : [];
|
|
5998
|
-
const current = isCurrent(state) && app.group === "active" ? [{
|
|
5999
|
-
value: gradient,
|
|
6000
|
-
specificity: 2
|
|
6001
|
-
}, ...currentHover] : [];
|
|
6002
|
-
return [
|
|
6003
|
-
{
|
|
6004
|
-
value: gradient,
|
|
6005
|
-
specificity: 1
|
|
6006
|
-
},
|
|
6007
|
-
...hover,
|
|
6008
|
-
...current
|
|
6009
|
-
];
|
|
6010
|
-
}
|
|
6011
|
-
function opacityCandidates(app, state) {
|
|
6012
|
-
if (!isNavHover(state)) return [];
|
|
6013
|
-
const current = isCurrent(state) && app.group === "active" ? [{
|
|
6014
|
-
value: app.effect,
|
|
6015
|
-
specificity: 3
|
|
6016
|
-
}] : [];
|
|
6017
|
-
return [{
|
|
6018
|
-
value: app.effect,
|
|
6019
|
-
specificity: 2
|
|
6020
|
-
}, ...current];
|
|
6021
|
-
}
|
|
6022
5966
|
/** Later declarations win equal specificity, just as they do in the emitted CSS. */
|
|
6023
5967
|
function winner(candidates) {
|
|
6024
|
-
return candidates.reduce((chosen, candidate) => chosen === null || candidate.specificity >= chosen.specificity ? candidate : chosen, null)?.
|
|
5968
|
+
return candidates.reduce((chosen, candidate) => chosen === null || candidate.specificity >= chosen.specificity ? candidate : chosen, null)?.paint ?? null;
|
|
6025
5969
|
}
|
|
6026
5970
|
//#endregion
|
|
6027
5971
|
//#region ../theme-core/src/header/navEffectPaint.ts
|
|
@@ -6085,7 +6029,7 @@ function planText(text, plainInk, state, context) {
|
|
|
6085
6029
|
rules: [],
|
|
6086
6030
|
inks: [plainInk]
|
|
6087
6031
|
};
|
|
6088
|
-
const stops =
|
|
6032
|
+
const stops = text.tokens.map((token) => resolveConcreteColorHex(token, context.palette));
|
|
6089
6033
|
if (decideNavEffectContrast(context.paint, plainInk, {
|
|
6090
6034
|
effect: "gradient-text",
|
|
6091
6035
|
option: stops,
|
|
@@ -6107,15 +6051,6 @@ function planText(text, plainInk, state, context) {
|
|
|
6107
6051
|
} : null)
|
|
6108
6052
|
};
|
|
6109
6053
|
}
|
|
6110
|
-
function renderedTextStops(text, palette) {
|
|
6111
|
-
if (text.fill === "solid") return [resolveConcreteColorHex("neutral-50", palette)];
|
|
6112
|
-
const colors = text.effect.options?.gradientColors;
|
|
6113
|
-
return (typeof colors === "string" && colors ? colors.split(",").map((token) => token.trim()) : [
|
|
6114
|
-
"primary-400",
|
|
6115
|
-
"secondary-400",
|
|
6116
|
-
"accent-400"
|
|
6117
|
-
]).map((token) => resolveConcreteColorHex(token, palette));
|
|
6118
|
-
}
|
|
6119
6054
|
function opacityRules(authored, inks, paint) {
|
|
6120
6055
|
if (authored === null || inks.length === 0 || inks.some((ink) => ink === null)) return [];
|
|
6121
6056
|
const decisions = inks.map((ink) => decideNavEffectContrast(paint, ink, {
|
|
@@ -6146,25 +6081,30 @@ function resolveInk(reference, palette) {
|
|
|
6146
6081
|
//#endregion
|
|
6147
6082
|
//#region ../theme-core/src/header/generateHeaderNavLinkStyles.ts
|
|
6148
6083
|
function generateHeaderNavLinkStyles(header, themeId, tokens, theme, contrastTreatment, navTextSize) {
|
|
6149
|
-
const style =
|
|
6084
|
+
const style = resolvedHeaderNavLinkStyle(header, contrastTreatment, navTextSize);
|
|
6150
6085
|
if (!style) {
|
|
6151
6086
|
console.warn(`[generateHeaderCss] Nav link preset not found: ${header.navStyle}`);
|
|
6152
6087
|
return "";
|
|
6153
6088
|
}
|
|
6154
|
-
const renderedStyle = mergeHeaderNavTypographyPreference(style, {
|
|
6155
|
-
typography: header.navFontRole ?? "inherit",
|
|
6156
|
-
fontSize: readHeaderNavFontSizePreference(header.navTextSize),
|
|
6157
|
-
interactionPalette: header.interactionPalette ?? "recommended"
|
|
6158
|
-
});
|
|
6159
6089
|
return generateNavLinkCSS({
|
|
6160
6090
|
themeId,
|
|
6161
6091
|
tokens,
|
|
6162
6092
|
theme,
|
|
6163
|
-
style
|
|
6093
|
+
style,
|
|
6164
6094
|
className: "header-nav-link",
|
|
6165
6095
|
surfaceDependent: true,
|
|
6166
6096
|
surfaceRestingColor: header.background?.contentOwner === siteChromeBackgroundOverrideOwner
|
|
6167
|
-
}) + generateHeaderNavEffectContrastCss(header,
|
|
6097
|
+
}) + generateHeaderNavEffectContrastCss(header, style, theme, themeId);
|
|
6098
|
+
}
|
|
6099
|
+
/** The top-level nav link style as it renders, with the owner's font role and size preferences applied. */
|
|
6100
|
+
function resolvedHeaderNavLinkStyle(header, contrastTreatment, navTextSize) {
|
|
6101
|
+
const style = effectiveHeaderNavLinkStyle(header, contrastTreatment, navTextSize);
|
|
6102
|
+
if (!style) return null;
|
|
6103
|
+
return mergeHeaderNavTypographyPreference(style, {
|
|
6104
|
+
typography: header.navFontRole ?? "inherit",
|
|
6105
|
+
fontSize: readHeaderNavFontSizePreference(header.navTextSize),
|
|
6106
|
+
interactionPalette: header.interactionPalette ?? "recommended"
|
|
6107
|
+
});
|
|
6168
6108
|
}
|
|
6169
6109
|
//#endregion
|
|
6170
6110
|
//#region ../theme-core/src/header/generateHeaderLogoStyles.ts
|
|
@@ -6236,7 +6176,8 @@ function generateHeaderCss(options) {
|
|
|
6236
6176
|
cssChunks.push(generateHeaderNavLinkStyles(header, themeId, tokens, theme, headerContrastTreatment, headerNavTextSize));
|
|
6237
6177
|
const dropdown = resolveDropdownSurface(header, theme, tokens, solvedInks);
|
|
6238
6178
|
cssChunks.push(generateDropdownContainerStyles(themeId, tokens, dropdown));
|
|
6239
|
-
|
|
6179
|
+
const navLinkStyle = resolvedHeaderNavLinkStyle(header, headerContrastTreatment, headerNavTextSize);
|
|
6180
|
+
cssChunks.push(generateDropdownLinkStyles(header, themeId, tokens, theme, dropdown, navLinkStyle));
|
|
6240
6181
|
cssChunks.push(generateDropdownCaretStyles(themeId));
|
|
6241
6182
|
cssChunks.push(generateDropdownTriggerOverrides(header, themeId));
|
|
6242
6183
|
cssChunks.push(generateMobilePanelStyles(themeId, dropdown));
|
|
@@ -6365,16 +6306,37 @@ function dropdownLinkEffects({ linkFill, linkText }, state) {
|
|
|
6365
6306
|
options: { hoverColorToken: text }
|
|
6366
6307
|
}] : []];
|
|
6367
6308
|
}
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
|
|
6309
|
+
/**
|
|
6310
|
+
* The type the menu takes from the nav links above it: font, case and letter spacing follow the nav,
|
|
6311
|
+
* unless the header Look gives the menu its own case or spacing.
|
|
6312
|
+
*/
|
|
6313
|
+
function dropdownTypeFromNav(style, navLinkStyle) {
|
|
6314
|
+
const nav = navLinkStyle ?? {
|
|
6315
|
+
typography: "body",
|
|
6316
|
+
textTransform: "none",
|
|
6317
|
+
letterSpacing: void 0
|
|
6318
|
+
};
|
|
6319
|
+
const ownCase = dropdownOwnCase(style);
|
|
6320
|
+
const followsNavSpacing = (style?.letterSpacing ?? "normal") === "normal";
|
|
6321
|
+
return {
|
|
6322
|
+
typography: nav.typography,
|
|
6323
|
+
textTransform: ownCase ?? nav.textTransform ?? "none",
|
|
6324
|
+
...followsNavSpacing && nav.letterSpacing ? { letterSpacing: nav.letterSpacing } : {}
|
|
6325
|
+
};
|
|
6326
|
+
}
|
|
6327
|
+
/** The case a header Look gives the menu itself, or null when the menu follows the nav. */
|
|
6328
|
+
function dropdownOwnCase(style) {
|
|
6329
|
+
const textTransform = style?.textTransform ?? "none";
|
|
6330
|
+
return textTransform === "none" ? null : textTransform;
|
|
6331
|
+
}
|
|
6332
|
+
/** The menu's links set in the nav links' type; size and weight stay the menu's. */
|
|
6333
|
+
function dropdownNavLinkStyle(header, surface, navLinkStyle) {
|
|
6371
6334
|
return {
|
|
6372
6335
|
name: "Dropdown",
|
|
6373
|
-
|
|
6374
|
-
fontWeight: style?.fontWeight ?? header.navWeight ?? "medium",
|
|
6375
|
-
textTransform: style?.textTransform ?? "none",
|
|
6336
|
+
...dropdownTypeFromNav(surface.style, navLinkStyle),
|
|
6337
|
+
fontWeight: surface.style?.fontWeight ?? header.navWeight ?? "medium",
|
|
6376
6338
|
italic: false,
|
|
6377
|
-
colorToken: textToken,
|
|
6339
|
+
colorToken: surface.textToken,
|
|
6378
6340
|
padding: "compact",
|
|
6379
6341
|
borderRadius: "sm",
|
|
6380
6342
|
effects: {
|
|
@@ -6398,12 +6360,12 @@ function dropdownTypographyRules(style) {
|
|
|
6398
6360
|
};
|
|
6399
6361
|
return [...letterSpacing === "normal" ? [] : [`letter-spacing: ${spacing[letterSpacing]};`], `font-size: ${sizes[style?.textSize ?? "sm"]};`];
|
|
6400
6362
|
}
|
|
6401
|
-
function generateDropdownLinkStyles(header, themeId, tokens, theme, surface) {
|
|
6363
|
+
function generateDropdownLinkStyles(header, themeId, tokens, theme, surface, navLinkStyle) {
|
|
6402
6364
|
return generateNavLinkCSS({
|
|
6403
6365
|
themeId,
|
|
6404
6366
|
tokens,
|
|
6405
6367
|
theme,
|
|
6406
|
-
style: dropdownNavLinkStyle(header, surface),
|
|
6368
|
+
style: dropdownNavLinkStyle(header, surface, navLinkStyle),
|
|
6407
6369
|
className: "nav-dropdown-link"
|
|
6408
6370
|
}) + `\n${`:where([data-theme-scope="${themeId}"]) .nav-dropdown-link`} {\n ${dropdownTypographyRules(surface.style).join("\n ")}\n}\n`;
|
|
6409
6371
|
}
|
|
@@ -6709,6 +6671,11 @@ const waveMaskSvgPaths = {
|
|
|
6709
6671
|
*/
|
|
6710
6672
|
const arcShapePath = "M0 110V60Q720 -30 1440 60V110Z";
|
|
6711
6673
|
const arcEchoLinePaths = ["M0 84Q720 -6 1440 84", "M0 102Q720 12 1440 102"];
|
|
6674
|
+
/** The arc turned over: the next section's colour sits lowest in the middle, under the swell of the section above. */
|
|
6675
|
+
const arcBulgeShapePath = "M0 110V50Q720 140 1440 50V110Z";
|
|
6676
|
+
function arcBulgeMaskDataUrl() {
|
|
6677
|
+
return svgDataUrl(`<svg viewBox='0 0 1440 110' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><path d='${arcBulgeShapePath}' fill='white'/></svg>`);
|
|
6678
|
+
}
|
|
6712
6679
|
function arcMaskDataUrl(echo) {
|
|
6713
6680
|
const lines = arcEchoLinePaths.map((d) => `<path d='${d}' fill='none' stroke='url(#fade)' stroke-width='1.5' vector-effect='non-scaling-stroke'/>`).join("");
|
|
6714
6681
|
return svgDataUrl(`<svg viewBox='0 0 1440 110' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'>${echo ? `<defs><linearGradient id='fade' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='1440' y2='0'><stop offset='0' stop-color='black' stop-opacity='0.42'/><stop offset='0.5' stop-color='black' stop-opacity='0'/><stop offset='1' stop-color='black' stop-opacity='0.42'/></linearGradient><mask id='lines'><rect width='1440' height='110' fill='white'/>${lines}</mask></defs><path d='${arcShapePath}' fill='white' mask='url(#lines)'/>` : `<path d='${arcShapePath}' fill='white'/>`}</svg>`);
|
|
@@ -6817,7 +6784,7 @@ function shapeDeclarations(entry) {
|
|
|
6817
6784
|
"background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--boundary-shape-paint) 16%, transparent) 34%, color-mix(in srgb, var(--boundary-shape-paint) 68%, transparent) 78%, var(--boundary-shape-paint) 100%);"
|
|
6818
6785
|
];
|
|
6819
6786
|
case "wave": return maskDeclarations(waveMaskDataUrl(entry.shape.mask));
|
|
6820
|
-
case "arc": return [...maskDeclarations(arcMaskDataUrl(entry.shape.echo === true)), "height: calc(var(--boundary-height) + 2px);"];
|
|
6787
|
+
case "arc": return [...maskDeclarations(entry.shape.bulge ? arcBulgeMaskDataUrl() : arcMaskDataUrl(entry.shape.echo === true)), "height: calc(var(--boundary-height) + 2px);"];
|
|
6821
6788
|
case "angle": return [
|
|
6822
6789
|
"height: calc(var(--boundary-height) + 2px);",
|
|
6823
6790
|
"background: var(--boundary-shape-paint);",
|
|
@@ -6898,21 +6865,46 @@ function generateHeroTypographyCss(themeId, theme) {
|
|
|
6898
6865
|
if (microSubheadlineRules.length > 0) chunks.push(`${microSubheadlineSelector} {\n ${microSubheadlineRules.join("\n ")}\n}`);
|
|
6899
6866
|
const selectors = {
|
|
6900
6867
|
headline: headlineSelector,
|
|
6901
|
-
subheadline: subheadlineSelector
|
|
6868
|
+
subheadline: subheadlineSelector,
|
|
6869
|
+
microHeadline: microHeadlineSelector,
|
|
6870
|
+
microSubheadline: microSubheadlineSelector
|
|
6902
6871
|
};
|
|
6903
|
-
const
|
|
6872
|
+
const microSizes = {
|
|
6873
|
+
headlineSize: typography.microHeadlineSize,
|
|
6874
|
+
subheadlineSize: typography.microSubheadlineSize
|
|
6875
|
+
};
|
|
6876
|
+
const responsiveChunks = [responsiveHeroTypographyCss(MQ_TABLET_ONLY, selectors, typography.responsive?.tablet, microSizes), responsiveHeroTypographyCss(MQ_SM_DOWN, selectors, typography.responsive?.mobile, microSizes)];
|
|
6904
6877
|
for (const chunk of responsiveChunks) if (chunk) chunks.push(chunk);
|
|
6905
6878
|
return chunks.join("\n\n");
|
|
6906
6879
|
}
|
|
6907
|
-
function responsiveHeroTypographyCss(media, selectors, overrides) {
|
|
6880
|
+
function responsiveHeroTypographyCss(media, selectors, overrides, microSizes) {
|
|
6908
6881
|
if (!overrides) return null;
|
|
6909
6882
|
const headlineRules = buildTypographyRules("headline", overrides.headlineSize, overrides.headlineLineHeight);
|
|
6910
6883
|
const subheadlineRules = buildTypographyRules("subheadline", overrides.subheadlineSize, overrides.subheadlineLineHeight);
|
|
6911
6884
|
const mediaChunks = [];
|
|
6912
6885
|
if (headlineRules.length > 0) mediaChunks.push(`${selectors.headline} {\n ${headlineRules.join("\n ")}\n }`);
|
|
6913
6886
|
if (subheadlineRules.length > 0) mediaChunks.push(`${selectors.subheadline} {\n ${subheadlineRules.join("\n ")}\n }`);
|
|
6887
|
+
const microHeadlineSize = microSizeAtBreakpoint(microSizes.headlineSize, overrides.headlineSize);
|
|
6888
|
+
if (microHeadlineSize) {
|
|
6889
|
+
const rules = buildTypographyRules("headline", microHeadlineSize, overrides.headlineLineHeight);
|
|
6890
|
+
mediaChunks.push(`${selectors.microHeadline} {\n ${rules.join("\n ")}\n }`);
|
|
6891
|
+
}
|
|
6892
|
+
const microSubheadlineSize = microSizeAtBreakpoint(microSizes.subheadlineSize, overrides.subheadlineSize);
|
|
6893
|
+
if (microSubheadlineSize) {
|
|
6894
|
+
const rules = buildTypographyRules("subheadline", microSubheadlineSize, overrides.subheadlineLineHeight);
|
|
6895
|
+
mediaChunks.push(`${selectors.microSubheadline} {\n ${rules.join("\n ")}\n }`);
|
|
6896
|
+
}
|
|
6914
6897
|
return mediaChunks.length > 0 ? `@media ${media} {\n ${mediaChunks.join("\n\n ")}\n}` : null;
|
|
6915
6898
|
}
|
|
6899
|
+
/**
|
|
6900
|
+
* A micro hero steps down to the breakpoint's size, but a micro size that's
|
|
6901
|
+
* already smaller stays as it is. The editorial size is fluid, so it needs no step.
|
|
6902
|
+
*/
|
|
6903
|
+
function microSizeAtBreakpoint(microSize, breakpointSize) {
|
|
6904
|
+
if (!microSize || !breakpointSize || microSize === "editorial") return void 0;
|
|
6905
|
+
if (breakpointSize === "editorial") return breakpointSize;
|
|
6906
|
+
return HERO_SIZE_ORDER.indexOf(breakpointSize) < HERO_SIZE_ORDER.indexOf(microSize) ? breakpointSize : void 0;
|
|
6907
|
+
}
|
|
6916
6908
|
function buildTypographyRules(role, size, lineHeight) {
|
|
6917
6909
|
const rules = [];
|
|
6918
6910
|
if (size) rules.push(`font-size: ${toHeroSize(role, size)};`);
|
|
@@ -6936,6 +6928,17 @@ function generateBodyTextTypographyCss(themeId, theme) {
|
|
|
6936
6928
|
}`);
|
|
6937
6929
|
return chunks.join("\n\n");
|
|
6938
6930
|
}
|
|
6931
|
+
const HERO_SIZE_ORDER = [
|
|
6932
|
+
"sm",
|
|
6933
|
+
"base",
|
|
6934
|
+
"lg",
|
|
6935
|
+
"xl",
|
|
6936
|
+
"2xl",
|
|
6937
|
+
"3xl",
|
|
6938
|
+
"4xl",
|
|
6939
|
+
"5xl",
|
|
6940
|
+
"6xl"
|
|
6941
|
+
];
|
|
6939
6942
|
function toHeroSize(role, size) {
|
|
6940
6943
|
const baseMap = {
|
|
6941
6944
|
sm: "0.875rem",
|
|
@@ -10483,7 +10486,8 @@ function compileManifestContentContract(manifestOrFields, options = {}) {
|
|
|
10483
10486
|
renderSourceSchema: deriveStrictContentZodFromPlans(plans, "render-source"),
|
|
10484
10487
|
writeSchema: deriveNormalizedContentZodFromPlans(plans, strictOptions, normalizeManifestContentForWrite).superRefine((value, ctx) => {
|
|
10485
10488
|
if (options.unknownFields !== "reject") return;
|
|
10486
|
-
|
|
10489
|
+
const ownedElsewhere = new Set(options.unknownFieldsOwnedElsewhere ?? []);
|
|
10490
|
+
unknownManifestFieldPaths(plans, value).filter((path) => !(path.length > 1 && ownedElsewhere.has(String(path[0])))).forEach((path) => {
|
|
10487
10491
|
ctx.addIssue({
|
|
10488
10492
|
code: "custom",
|
|
10489
10493
|
path,
|
|
@@ -18199,7 +18203,7 @@ const featureCardsBlockDefinition = { manifest: createBlockManifest({
|
|
|
18199
18203
|
intent: "content",
|
|
18200
18204
|
visibleWhen: {
|
|
18201
18205
|
field: "$root.variant",
|
|
18202
|
-
|
|
18206
|
+
oneOf: ["sequence", "index"]
|
|
18203
18207
|
}
|
|
18204
18208
|
}
|
|
18205
18209
|
},
|
|
@@ -22758,10 +22762,6 @@ const locationMapNodeProps = {
|
|
|
22758
22762
|
from: "content.location",
|
|
22759
22763
|
fallback: null
|
|
22760
22764
|
} },
|
|
22761
|
-
businessAddress: { $bind: {
|
|
22762
|
-
from: "$root.site.businessAddress",
|
|
22763
|
-
fallback: null
|
|
22764
|
-
} },
|
|
22765
22765
|
locationSource: { $bind: {
|
|
22766
22766
|
from: "content.locationSource",
|
|
22767
22767
|
fallback: "custom"
|
|
@@ -22770,8 +22770,12 @@ const locationMapNodeProps = {
|
|
|
22770
22770
|
from: "content.venueId",
|
|
22771
22771
|
fallback: null
|
|
22772
22772
|
} },
|
|
22773
|
-
|
|
22774
|
-
from:
|
|
22773
|
+
venueMapLocation: { $bind: {
|
|
22774
|
+
from: `data.${LOCATION_MAP_LOADER_KEYS.venue}`,
|
|
22775
|
+
fallback: null
|
|
22776
|
+
} },
|
|
22777
|
+
businessMapLocation: { $bind: {
|
|
22778
|
+
from: `data.${LOCATION_MAP_LOADER_KEYS.business_address}`,
|
|
22775
22779
|
fallback: null
|
|
22776
22780
|
} },
|
|
22777
22781
|
wider: { $bind: {
|
|
@@ -22794,237 +22798,281 @@ const locationMapNodeProps = {
|
|
|
22794
22798
|
from: "content.showAddressText",
|
|
22795
22799
|
fallback: LOCATION_MAP_DEFAULTS.showAddressText
|
|
22796
22800
|
} },
|
|
22797
|
-
showDirections: { $bind: {
|
|
22798
|
-
from: "content.showDirections",
|
|
22799
|
-
fallback: LOCATION_MAP_DEFAULTS.showDirections
|
|
22800
|
-
} },
|
|
22801
|
-
directionsLabel: { $bind: {
|
|
22802
|
-
from: "content.directionsLabel",
|
|
22803
|
-
fallback: LOCATION_MAP_DEFAULTS.directionsLabel
|
|
22804
|
-
} }
|
|
22805
|
-
};
|
|
22806
|
-
/** Look-only layouts hand the details their compiler-resolved slot and surface (the wide map's sheet). */
|
|
22807
|
-
const lookPresentationProps = {
|
|
22808
|
-
lookSlots: { $bind: { from: "content._lookSlots" } },
|
|
22809
|
-
surfacePresentation: { $bind: { from: "content._effectiveLook.surfacePresentation" } }
|
|
22810
|
-
};
|
|
22811
|
-
const arrangedLayout = (body) => styledSection({
|
|
22812
|
-
baseClass: "",
|
|
22813
|
-
spacing: "comfortable",
|
|
22814
|
-
children: el("div", {
|
|
22815
|
-
className: "rb-container",
|
|
22816
|
-
...lookSlot("layout")
|
|
22817
|
-
}, [el("div", lookSlot("head"), [text({
|
|
22818
|
-
as: "h2",
|
|
22819
|
-
...lookSlot("heading")
|
|
22820
|
-
}, bind("content.heading"))], when("content.heading")), ...body])
|
|
22821
|
-
});
|
|
22822
|
-
const
|
|
22823
|
-
|
|
22824
|
-
|
|
22825
|
-
|
|
22826
|
-
|
|
22827
|
-
|
|
22828
|
-
|
|
22829
|
-
|
|
22830
|
-
|
|
22831
|
-
|
|
22832
|
-
|
|
22833
|
-
|
|
22834
|
-
|
|
22835
|
-
|
|
22836
|
-
|
|
22837
|
-
|
|
22838
|
-
|
|
22839
|
-
|
|
22840
|
-
|
|
22841
|
-
|
|
22842
|
-
|
|
22843
|
-
|
|
22844
|
-
|
|
22845
|
-
|
|
22846
|
-
|
|
22847
|
-
|
|
22848
|
-
|
|
22849
|
-
|
|
22850
|
-
|
|
22851
|
-
|
|
22852
|
-
|
|
22853
|
-
|
|
22854
|
-
|
|
22855
|
-
|
|
22856
|
-
|
|
22857
|
-
|
|
22858
|
-
|
|
22859
|
-
|
|
22860
|
-
|
|
22861
|
-
|
|
22862
|
-
|
|
22863
|
-
|
|
22864
|
-
|
|
22865
|
-
|
|
22866
|
-
|
|
22867
|
-
|
|
22868
|
-
|
|
22869
|
-
|
|
22870
|
-
label: "A different place"
|
|
22871
|
-
}
|
|
22872
|
-
],
|
|
22873
|
-
ui: {
|
|
22874
|
-
intent: "content",
|
|
22875
|
-
widget: "locationSourceSelect"
|
|
22801
|
+
showDirections: { $bind: {
|
|
22802
|
+
from: "content.showDirections",
|
|
22803
|
+
fallback: LOCATION_MAP_DEFAULTS.showDirections
|
|
22804
|
+
} },
|
|
22805
|
+
directionsLabel: { $bind: {
|
|
22806
|
+
from: "content.directionsLabel",
|
|
22807
|
+
fallback: LOCATION_MAP_DEFAULTS.directionsLabel
|
|
22808
|
+
} }
|
|
22809
|
+
};
|
|
22810
|
+
/** Look-only layouts hand the details their compiler-resolved slot and surface (the wide map's sheet). */
|
|
22811
|
+
const lookPresentationProps = {
|
|
22812
|
+
lookSlots: { $bind: { from: "content._lookSlots" } },
|
|
22813
|
+
surfacePresentation: { $bind: { from: "content._effectiveLook.surfacePresentation" } }
|
|
22814
|
+
};
|
|
22815
|
+
const arrangedLayout = (body) => styledSection({
|
|
22816
|
+
baseClass: "",
|
|
22817
|
+
spacing: "comfortable",
|
|
22818
|
+
children: el("div", {
|
|
22819
|
+
className: "rb-container",
|
|
22820
|
+
...lookSlot("layout")
|
|
22821
|
+
}, [el("div", lookSlot("head"), [text({
|
|
22822
|
+
as: "h2",
|
|
22823
|
+
...lookSlot("heading")
|
|
22824
|
+
}, bind("content.heading"))], when("content.heading")), ...body])
|
|
22825
|
+
});
|
|
22826
|
+
const locationMapManifest = createBlockManifest({
|
|
22827
|
+
variantMeaning: {
|
|
22828
|
+
kind: "arrangement",
|
|
22829
|
+
lookOnlyKeys: ["map-and-details", "photo-and-details"]
|
|
22830
|
+
},
|
|
22831
|
+
id: "block.location-map",
|
|
22832
|
+
title: "Map",
|
|
22833
|
+
titleSource: "heading",
|
|
22834
|
+
description: "Shows where you are on a map, with a button for directions.",
|
|
22835
|
+
category: "text-and-images",
|
|
22836
|
+
contentSource: { kind: "inline" },
|
|
22837
|
+
tags: [
|
|
22838
|
+
"map",
|
|
22839
|
+
"location",
|
|
22840
|
+
"address",
|
|
22841
|
+
"directions"
|
|
22842
|
+
],
|
|
22843
|
+
icon: "MapPin",
|
|
22844
|
+
styleTokens: {
|
|
22845
|
+
background: "surface",
|
|
22846
|
+
typography: "body",
|
|
22847
|
+
spacing: "md"
|
|
22848
|
+
},
|
|
22849
|
+
additionalFields: [
|
|
22850
|
+
parseFieldDefinition({
|
|
22851
|
+
id: "heading",
|
|
22852
|
+
type: "text",
|
|
22853
|
+
label: "Heading",
|
|
22854
|
+
required: false,
|
|
22855
|
+
maxLength: 120
|
|
22856
|
+
}),
|
|
22857
|
+
parseFieldDefinition({
|
|
22858
|
+
id: "locationSource",
|
|
22859
|
+
type: "select",
|
|
22860
|
+
label: "Which place?",
|
|
22861
|
+
defaultValue: "custom",
|
|
22862
|
+
options: [
|
|
22863
|
+
{
|
|
22864
|
+
value: "business_address",
|
|
22865
|
+
label: "Your business address"
|
|
22866
|
+
},
|
|
22867
|
+
{
|
|
22868
|
+
value: "venue",
|
|
22869
|
+
label: "One of your venues"
|
|
22870
|
+
},
|
|
22871
|
+
{
|
|
22872
|
+
value: "custom",
|
|
22873
|
+
label: "A different place"
|
|
22876
22874
|
}
|
|
22877
|
-
|
|
22878
|
-
|
|
22879
|
-
|
|
22880
|
-
|
|
22881
|
-
|
|
22882
|
-
|
|
22883
|
-
|
|
22884
|
-
|
|
22885
|
-
|
|
22886
|
-
|
|
22887
|
-
|
|
22888
|
-
|
|
22889
|
-
|
|
22875
|
+
],
|
|
22876
|
+
ui: {
|
|
22877
|
+
intent: "content",
|
|
22878
|
+
widget: "locationSourceSelect"
|
|
22879
|
+
}
|
|
22880
|
+
}),
|
|
22881
|
+
createSiteOptionSelectField({
|
|
22882
|
+
id: "venueId",
|
|
22883
|
+
label: "Venue",
|
|
22884
|
+
required: false,
|
|
22885
|
+
multiple: false,
|
|
22886
|
+
optionSource: "venues",
|
|
22887
|
+
ui: {
|
|
22888
|
+
intent: "content",
|
|
22889
|
+
visibleWhen: {
|
|
22890
|
+
field: "locationSource",
|
|
22891
|
+
equals: "venue"
|
|
22890
22892
|
}
|
|
22891
|
-
}
|
|
22892
|
-
|
|
22893
|
-
|
|
22894
|
-
|
|
22895
|
-
|
|
22896
|
-
|
|
22897
|
-
|
|
22898
|
-
|
|
22899
|
-
|
|
22900
|
-
|
|
22901
|
-
|
|
22902
|
-
|
|
22903
|
-
|
|
22904
|
-
|
|
22905
|
-
|
|
22893
|
+
}
|
|
22894
|
+
}),
|
|
22895
|
+
parseFieldDefinition({
|
|
22896
|
+
id: "location",
|
|
22897
|
+
type: "group",
|
|
22898
|
+
label: "Location",
|
|
22899
|
+
description: "Enter the address and place the map pin.",
|
|
22900
|
+
required: false,
|
|
22901
|
+
ui: {
|
|
22902
|
+
widget: "locationPicker",
|
|
22903
|
+
valueContract: "location",
|
|
22904
|
+
intent: "content",
|
|
22905
|
+
visibleWhen: {
|
|
22906
|
+
field: "locationSource",
|
|
22907
|
+
equals: "custom"
|
|
22908
|
+
}
|
|
22909
|
+
},
|
|
22910
|
+
schema: { fields: [
|
|
22911
|
+
{
|
|
22912
|
+
id: "addressText",
|
|
22913
|
+
type: "text",
|
|
22914
|
+
label: "Address",
|
|
22915
|
+
required: true,
|
|
22916
|
+
multiline: true,
|
|
22917
|
+
maxLength: 240
|
|
22906
22918
|
},
|
|
22907
|
-
|
|
22908
|
-
|
|
22909
|
-
|
|
22910
|
-
|
|
22911
|
-
|
|
22912
|
-
|
|
22913
|
-
|
|
22914
|
-
|
|
22915
|
-
|
|
22916
|
-
|
|
22917
|
-
|
|
22918
|
-
|
|
22919
|
-
|
|
22920
|
-
|
|
22921
|
-
|
|
22922
|
-
|
|
22923
|
-
|
|
22924
|
-
},
|
|
22925
|
-
{
|
|
22926
|
-
id: "lng",
|
|
22927
|
-
type: "number",
|
|
22928
|
-
label: "Longitude",
|
|
22929
|
-
required: true,
|
|
22930
|
-
min: -180,
|
|
22931
|
-
max: 180,
|
|
22932
|
-
step: 1e-6
|
|
22933
|
-
}
|
|
22934
|
-
] }
|
|
22935
|
-
}),
|
|
22936
|
-
parseFieldDefinition({
|
|
22937
|
-
id: "entrancePhoto",
|
|
22938
|
-
type: "media",
|
|
22939
|
-
label: "Entrance photo",
|
|
22940
|
-
description: "A photo of the door or the way in. It shows when this section uses the “Entrance photo beside the details” Look.",
|
|
22941
|
-
required: false,
|
|
22942
|
-
mediaKinds: ["image"],
|
|
22943
|
-
ui: { intent: "content" }
|
|
22944
|
-
}),
|
|
22945
|
-
parseFieldDefinition({
|
|
22946
|
-
id: "showOpeningHours",
|
|
22947
|
-
type: "boolean",
|
|
22948
|
-
label: "Show opening hours",
|
|
22949
|
-
defaultValue: true,
|
|
22950
|
-
ui: { intent: "behavior" }
|
|
22951
|
-
}),
|
|
22952
|
-
parseFieldDefinition({
|
|
22953
|
-
id: "showAddressText",
|
|
22954
|
-
type: "boolean",
|
|
22955
|
-
label: "Show the address",
|
|
22956
|
-
defaultValue: true,
|
|
22957
|
-
ui: { intent: "behavior" }
|
|
22958
|
-
}),
|
|
22959
|
-
parseFieldDefinition({
|
|
22960
|
-
id: "showDirections",
|
|
22961
|
-
type: "boolean",
|
|
22962
|
-
label: "Show directions button",
|
|
22963
|
-
defaultValue: true,
|
|
22964
|
-
ui: { intent: "behavior" }
|
|
22965
|
-
}),
|
|
22966
|
-
parseFieldDefinition({
|
|
22967
|
-
id: "directionsLabel",
|
|
22968
|
-
type: "text",
|
|
22969
|
-
label: "Directions button label",
|
|
22970
|
-
defaultValue: LOCATION_MAP_DEFAULTS.directionsLabel,
|
|
22971
|
-
maxLength: 60,
|
|
22972
|
-
ui: {
|
|
22973
|
-
intent: "behavior",
|
|
22974
|
-
visibleWhen: {
|
|
22975
|
-
field: "showDirections",
|
|
22976
|
-
equals: true
|
|
22977
|
-
}
|
|
22919
|
+
{
|
|
22920
|
+
id: "lat",
|
|
22921
|
+
type: "number",
|
|
22922
|
+
label: "Latitude",
|
|
22923
|
+
required: true,
|
|
22924
|
+
min: -90,
|
|
22925
|
+
max: 90,
|
|
22926
|
+
step: 1e-6
|
|
22927
|
+
},
|
|
22928
|
+
{
|
|
22929
|
+
id: "lng",
|
|
22930
|
+
type: "number",
|
|
22931
|
+
label: "Longitude",
|
|
22932
|
+
required: true,
|
|
22933
|
+
min: -180,
|
|
22934
|
+
max: 180,
|
|
22935
|
+
step: 1e-6
|
|
22978
22936
|
}
|
|
22979
|
-
}
|
|
22980
|
-
|
|
22981
|
-
|
|
22982
|
-
|
|
22983
|
-
|
|
22984
|
-
|
|
22985
|
-
|
|
22986
|
-
|
|
22987
|
-
|
|
22988
|
-
|
|
22989
|
-
|
|
22990
|
-
|
|
22991
|
-
|
|
22992
|
-
|
|
22993
|
-
|
|
22994
|
-
|
|
22995
|
-
|
|
22996
|
-
|
|
22997
|
-
|
|
22998
|
-
|
|
22999
|
-
|
|
23000
|
-
|
|
23001
|
-
|
|
23002
|
-
|
|
23003
|
-
|
|
23004
|
-
|
|
23005
|
-
|
|
23006
|
-
|
|
23007
|
-
|
|
22937
|
+
] }
|
|
22938
|
+
}),
|
|
22939
|
+
parseFieldDefinition({
|
|
22940
|
+
id: "entrancePhoto",
|
|
22941
|
+
type: "media",
|
|
22942
|
+
label: "Entrance photo",
|
|
22943
|
+
description: "A photo of the door or the way in. It shows when this section uses the “Entrance photo beside the details” Look.",
|
|
22944
|
+
required: false,
|
|
22945
|
+
mediaKinds: ["image"],
|
|
22946
|
+
ui: { intent: "content" }
|
|
22947
|
+
}),
|
|
22948
|
+
parseFieldDefinition({
|
|
22949
|
+
id: "showOpeningHours",
|
|
22950
|
+
type: "boolean",
|
|
22951
|
+
label: "Show opening hours",
|
|
22952
|
+
defaultValue: true,
|
|
22953
|
+
ui: { intent: "behavior" }
|
|
22954
|
+
}),
|
|
22955
|
+
parseFieldDefinition({
|
|
22956
|
+
id: "showAddressText",
|
|
22957
|
+
type: "boolean",
|
|
22958
|
+
label: "Show the address",
|
|
22959
|
+
defaultValue: true,
|
|
22960
|
+
ui: { intent: "behavior" }
|
|
22961
|
+
}),
|
|
22962
|
+
parseFieldDefinition({
|
|
22963
|
+
id: "showDirections",
|
|
22964
|
+
type: "boolean",
|
|
22965
|
+
label: "Show directions button",
|
|
22966
|
+
defaultValue: true,
|
|
22967
|
+
ui: { intent: "behavior" }
|
|
22968
|
+
}),
|
|
22969
|
+
parseFieldDefinition({
|
|
22970
|
+
id: "directionsLabel",
|
|
22971
|
+
type: "text",
|
|
22972
|
+
label: "Directions button label",
|
|
22973
|
+
defaultValue: LOCATION_MAP_DEFAULTS.directionsLabel,
|
|
22974
|
+
maxLength: 60,
|
|
22975
|
+
ui: {
|
|
22976
|
+
intent: "behavior",
|
|
22977
|
+
visibleWhen: {
|
|
22978
|
+
field: "showDirections",
|
|
22979
|
+
equals: true
|
|
23008
22980
|
}
|
|
23009
|
-
}
|
|
23010
|
-
],
|
|
23011
|
-
layout: styledSection({
|
|
23012
|
-
baseClass: "",
|
|
23013
|
-
spacing: "comfortable",
|
|
23014
|
-
children: sectionContainer([text({ as: "h2" }, bind("content.heading"), when("content.heading")), el("location-map", locationMapNodeProps)], { gap: "md" })
|
|
22981
|
+
}
|
|
23015
22982
|
}),
|
|
23016
|
-
|
|
23017
|
-
|
|
23018
|
-
|
|
23019
|
-
|
|
23020
|
-
|
|
23021
|
-
|
|
23022
|
-
|
|
23023
|
-
|
|
23024
|
-
|
|
23025
|
-
|
|
23026
|
-
|
|
22983
|
+
parseFieldDefinition({
|
|
22984
|
+
id: "wider",
|
|
22985
|
+
type: "boolean",
|
|
22986
|
+
label: "Show a wider area",
|
|
22987
|
+
defaultValue: false,
|
|
22988
|
+
ui: { intent: "behavior" }
|
|
22989
|
+
}),
|
|
22990
|
+
parseFieldDefinition({
|
|
22991
|
+
id: "googleMapsLabel",
|
|
22992
|
+
type: "text",
|
|
22993
|
+
label: "Google Maps button label",
|
|
22994
|
+
defaultValue: "Open in Google Maps",
|
|
22995
|
+
maxLength: 60,
|
|
22996
|
+
ui: { intent: "behavior" }
|
|
22997
|
+
}),
|
|
22998
|
+
parseFieldDefinition({
|
|
22999
|
+
id: "heightPx",
|
|
23000
|
+
type: "number",
|
|
23001
|
+
label: "Map height",
|
|
23002
|
+
defaultValue: LOCATION_MAP_DEFAULTS.heightPx,
|
|
23003
|
+
min: LOCATION_MAP_LIMITS.heightPx.min,
|
|
23004
|
+
max: LOCATION_MAP_LIMITS.heightPx.max,
|
|
23005
|
+
step: 10,
|
|
23006
|
+
ui: {
|
|
23007
|
+
intent: "display",
|
|
23008
|
+
widget: "slider",
|
|
23009
|
+
showValue: true,
|
|
23010
|
+
valueUnit: "pixels"
|
|
23011
|
+
}
|
|
23012
|
+
})
|
|
23013
|
+
],
|
|
23014
|
+
layout: styledSection({
|
|
23015
|
+
baseClass: "",
|
|
23016
|
+
spacing: "comfortable",
|
|
23017
|
+
children: sectionContainer([text({ as: "h2" }, bind("content.heading"), when("content.heading")), el("location-map", locationMapNodeProps)], { gap: "md" })
|
|
23027
23018
|
}),
|
|
23019
|
+
variants: {
|
|
23020
|
+
"map-and-details": arrangedLayout([el("location-map", {
|
|
23021
|
+
...locationMapNodeProps,
|
|
23022
|
+
...lookPresentationProps
|
|
23023
|
+
})]),
|
|
23024
|
+
"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", {
|
|
23025
|
+
...locationMapNodeProps,
|
|
23026
|
+
...lookPresentationProps,
|
|
23027
|
+
showMap: false
|
|
23028
|
+
})])])
|
|
23029
|
+
}
|
|
23030
|
+
});
|
|
23031
|
+
function mapLocationLoaderWhen(source) {
|
|
23032
|
+
return { $bind: {
|
|
23033
|
+
from: "content.locationSource",
|
|
23034
|
+
fallback: false,
|
|
23035
|
+
transforms: [{
|
|
23036
|
+
id: "value.equals",
|
|
23037
|
+
options: { value: source }
|
|
23038
|
+
}]
|
|
23039
|
+
} };
|
|
23040
|
+
}
|
|
23041
|
+
const mapLocationLoaderRoot = {
|
|
23042
|
+
siteId: { $bind: { from: "$root.siteId" } },
|
|
23043
|
+
stage: { $bind: {
|
|
23044
|
+
from: "$root.previewStage",
|
|
23045
|
+
fallback: "published"
|
|
23046
|
+
} }
|
|
23047
|
+
};
|
|
23048
|
+
const locationMapBlockDefinition = {
|
|
23049
|
+
manifest: locationMapManifest,
|
|
23050
|
+
dataSchemas: {
|
|
23051
|
+
[LOCATION_MAP_LOADER_KEYS.venue]: publicMapLocationResultSchema.optional(),
|
|
23052
|
+
[LOCATION_MAP_LOADER_KEYS.business_address]: publicMapLocationResultSchema.optional()
|
|
23053
|
+
},
|
|
23054
|
+
dataLoaders: {
|
|
23055
|
+
[LOCATION_MAP_LOADER_KEYS.venue]: {
|
|
23056
|
+
endpoint: "getPublicMapLocation",
|
|
23057
|
+
when: mapLocationLoaderWhen("venue"),
|
|
23058
|
+
params: {
|
|
23059
|
+
...mapLocationLoaderRoot,
|
|
23060
|
+
source: "venue",
|
|
23061
|
+
venueId: { $bind: { from: "content.venueId" } }
|
|
23062
|
+
},
|
|
23063
|
+
requiredParams: ["venueId"],
|
|
23064
|
+
mode: "server"
|
|
23065
|
+
},
|
|
23066
|
+
[LOCATION_MAP_LOADER_KEYS.business_address]: {
|
|
23067
|
+
endpoint: "getPublicMapLocation",
|
|
23068
|
+
when: mapLocationLoaderWhen("business_address"),
|
|
23069
|
+
params: {
|
|
23070
|
+
...mapLocationLoaderRoot,
|
|
23071
|
+
source: "business_address"
|
|
23072
|
+
},
|
|
23073
|
+
mode: "server"
|
|
23074
|
+
}
|
|
23075
|
+
},
|
|
23028
23076
|
contentNormalizer: {
|
|
23029
23077
|
fieldIds: [
|
|
23030
23078
|
"heading",
|
|
@@ -23847,7 +23895,7 @@ const systemBlockDefinitions = [
|
|
|
23847
23895
|
flow: transactionalFlow,
|
|
23848
23896
|
layoutProfiles: []
|
|
23849
23897
|
})),
|
|
23850
|
-
withDesignCapability("block.gifting", giftingBlockDefinition, sectionOnly(), defineBlockDesignMetadata({
|
|
23898
|
+
withDesignCapability("block.gifting", giftingBlockDefinition, withLookCapability(sectionOnly()), defineBlockDesignMetadata({
|
|
23851
23899
|
flow: conversionFlow,
|
|
23852
23900
|
layoutProfiles: [layoutProfile({
|
|
23853
23901
|
variantKey: "default",
|
|
@@ -24764,8 +24812,7 @@ const eventCalendarReadEnabled = {
|
|
|
24764
24812
|
summary: "Choose the read projection required by the calendar display mode",
|
|
24765
24813
|
schema: readJobSchema,
|
|
24766
24814
|
run(value, options) {
|
|
24767
|
-
|
|
24768
|
-
return plan.jobs === options.job || plan.jobs === "both" && options.job !== "schedule";
|
|
24815
|
+
return resolveEventCalendarReadPlan(asPartialObject(value) ?? {}).jobs === options.job;
|
|
24769
24816
|
}
|
|
24770
24817
|
};
|
|
24771
24818
|
/**
|
|
@@ -24814,7 +24861,7 @@ const defaultTransforms = createTransformRegistry([
|
|
|
24814
24861
|
kind: "formatter",
|
|
24815
24862
|
run(value) {
|
|
24816
24863
|
const content = asPartialObject(value) ?? {};
|
|
24817
|
-
return content
|
|
24864
|
+
return blockChecksForEvents(content) && eventReadinessLoaderKey(content) !== "schedule";
|
|
24818
24865
|
}
|
|
24819
24866
|
},
|
|
24820
24867
|
{
|
|
@@ -25026,7 +25073,7 @@ function resolveLinkedContentEditSupport(contentType) {
|
|
|
25026
25073
|
kind: "unsupported-domain-backed",
|
|
25027
25074
|
reason: metadata.reason
|
|
25028
25075
|
};
|
|
25029
|
-
default: return assertNever$
|
|
25076
|
+
default: return assertNever$1(metadata);
|
|
25030
25077
|
}
|
|
25031
25078
|
}
|
|
25032
25079
|
function contentTypeKeyToLabel(key) {
|
|
@@ -25263,7 +25310,7 @@ function previewEditableTargetToPath(target) {
|
|
|
25263
25310
|
case "current-entry-field":
|
|
25264
25311
|
case "current-entry-metadata": return target.path;
|
|
25265
25312
|
case "read-only": return;
|
|
25266
|
-
default: return assertNever$
|
|
25313
|
+
default: return assertNever$1(target);
|
|
25267
25314
|
}
|
|
25268
25315
|
}
|
|
25269
25316
|
function previewEditableTargetToFieldKey(target) {
|
|
@@ -26201,8 +26248,10 @@ function bindItemSurfacePresentation(node, context) {
|
|
|
26201
26248
|
if (!isPlainObject$1(content) || !isPlainObject$1(content._effectiveLook)) return context;
|
|
26202
26249
|
const look = content._effectiveLook;
|
|
26203
26250
|
if (!look.surfacePresentation) return context;
|
|
26204
|
-
const
|
|
26205
|
-
const
|
|
26251
|
+
const itemScope = context.scopes.reduce((found, scope) => scope.repeater ? scope : found, void 0);
|
|
26252
|
+
const repeater = itemScope?.repeater;
|
|
26253
|
+
const featured = isPlainObject$1(itemScope?.value) && itemScope.value.featured === true;
|
|
26254
|
+
const role = repeater ? itemRole(repeater.index, repeater.count, look.itemRoles, featured) : void 0;
|
|
26206
26255
|
return {
|
|
26207
26256
|
...context,
|
|
26208
26257
|
surfacePresentation: selectItemSurfacePresentation(look.surfacePresentation, role)
|
|
@@ -26366,7 +26415,7 @@ function collectNestedPreviewFieldConstraintEntries(field, path) {
|
|
|
26366
26415
|
case "text":
|
|
26367
26416
|
case "time":
|
|
26368
26417
|
case "url": return [];
|
|
26369
|
-
default: return assertNever$
|
|
26418
|
+
default: return assertNever$1(field);
|
|
26370
26419
|
}
|
|
26371
26420
|
}
|
|
26372
26421
|
/** Share the supplied snapshot with transforms and manifest bindings, including standalone components. */
|
|
@@ -26715,7 +26764,7 @@ function sourceLabel(source) {
|
|
|
26715
26764
|
case "managed-database": return "DB";
|
|
26716
26765
|
case "sdk-synced": return "SDK-synced DB";
|
|
26717
26766
|
case "sdk-config": return "SDK config";
|
|
26718
|
-
default: return assertNever$
|
|
26767
|
+
default: return assertNever$1(source);
|
|
26719
26768
|
}
|
|
26720
26769
|
}
|
|
26721
26770
|
//#endregion
|
|
@@ -26943,7 +26992,7 @@ function planBlock(block, renderableContent, resolveTarget, audience, siteStyleI
|
|
|
26943
26992
|
}
|
|
26944
26993
|
function renderableBlockPlan(common, target, audience, siteStyleId) {
|
|
26945
26994
|
const { definition, systemDefinition, override } = target;
|
|
26946
|
-
const renderableContent =
|
|
26995
|
+
const { renderableContent, ownerEditableContent } = planArrangementBlockContent(common.block.kind, definition.manifest, common.renderableContent, audience);
|
|
26947
26996
|
const effectiveArrangementKey = resolveEffectiveArrangement({
|
|
26948
26997
|
manifest: arrangementManifestFromVariants(definition.manifest),
|
|
26949
26998
|
...definition.manifest.variantMeaning.kind !== "mode" ? { look: effectiveLookFromContent(renderableContent)?.look } : {},
|
|
@@ -26955,6 +27004,7 @@ function renderableBlockPlan(common, target, audience, siteStyleId) {
|
|
|
26955
27004
|
}).key;
|
|
26956
27005
|
return {
|
|
26957
27006
|
...common,
|
|
27007
|
+
ownerEditableContent,
|
|
26958
27008
|
renderableContent,
|
|
26959
27009
|
kind: "renderable",
|
|
26960
27010
|
definition,
|
|
@@ -27054,8 +27104,14 @@ function effectiveLookFromContent(content) {
|
|
|
27054
27104
|
return isObjectRecord(value) && isObjectRecord(value.look) ? restoreCompiledLook(value) : null;
|
|
27055
27105
|
}
|
|
27056
27106
|
function planArrangementContent(blockKind, manifest, authored, audience) {
|
|
27107
|
+
return planArrangementBlockContent(blockKind, manifest, authored, audience).renderableContent;
|
|
27108
|
+
}
|
|
27109
|
+
function planArrangementBlockContent(blockKind, manifest, authored, audience) {
|
|
27057
27110
|
const runtime = arrangementRuntime(authored);
|
|
27058
|
-
if (!runtime) return
|
|
27111
|
+
if (!runtime) return {
|
|
27112
|
+
renderableContent: authored,
|
|
27113
|
+
ownerEditableContent: authored
|
|
27114
|
+
};
|
|
27059
27115
|
const spacingHook = authoredSectionSpacingHook(authored);
|
|
27060
27116
|
const content = withoutSectionSpacing(authored);
|
|
27061
27117
|
const mode = readStoredMode({
|
|
@@ -27063,7 +27119,10 @@ function planArrangementContent(blockKind, manifest, authored, audience) {
|
|
|
27063
27119
|
variantMeaning: manifest.variantMeaning
|
|
27064
27120
|
}, content);
|
|
27065
27121
|
const effective = resolveArrangementContentLook(runtime, mode, content, audience);
|
|
27066
|
-
if (!effective) return
|
|
27122
|
+
if (!effective) return {
|
|
27123
|
+
renderableContent: content,
|
|
27124
|
+
ownerEditableContent: content
|
|
27125
|
+
};
|
|
27067
27126
|
const { facts } = arrangementContentFacts(content);
|
|
27068
27127
|
const { length, knobs } = resolveArrangementKnobs({
|
|
27069
27128
|
blockKind,
|
|
@@ -27077,7 +27136,7 @@ function planArrangementContent(blockKind, manifest, authored, audience) {
|
|
|
27077
27136
|
manifest,
|
|
27078
27137
|
arrangementLook: true
|
|
27079
27138
|
}), ["look"]);
|
|
27080
|
-
const activeContent = withoutLookOwnedContent(Object.fromEntries(Object.entries(content).filter(([key]) => knobs[key]?.kind
|
|
27139
|
+
const activeContent = withoutLookOwnedContent(Object.fromEntries(Object.entries(content).filter(([key]) => (knobs[key]?.kind ?? "used") === "used")), lookOwnedPaths);
|
|
27081
27140
|
const photoContent = arrangementPhotoContent(activeContent, effectiveContent);
|
|
27082
27141
|
const photoCount = arrangementContentFacts({
|
|
27083
27142
|
...activeContent,
|
|
@@ -27085,28 +27144,31 @@ function planArrangementContent(blockKind, manifest, authored, audience) {
|
|
|
27085
27144
|
...photoContent
|
|
27086
27145
|
}).photoCount + lookPartPhotoCount(blockKind, activeContent, effective.look.structure.byMode[mode ?? "default"] ?? null);
|
|
27087
27146
|
return {
|
|
27088
|
-
|
|
27089
|
-
|
|
27090
|
-
|
|
27091
|
-
|
|
27092
|
-
|
|
27093
|
-
|
|
27094
|
-
|
|
27095
|
-
|
|
27096
|
-
|
|
27097
|
-
|
|
27098
|
-
|
|
27099
|
-
|
|
27100
|
-
|
|
27101
|
-
|
|
27102
|
-
|
|
27103
|
-
|
|
27104
|
-
|
|
27105
|
-
|
|
27106
|
-
|
|
27107
|
-
|
|
27108
|
-
|
|
27109
|
-
|
|
27147
|
+
ownerEditableContent: activeContent,
|
|
27148
|
+
renderableContent: {
|
|
27149
|
+
...activeContent,
|
|
27150
|
+
...arrangementPhotoTreatmentContent(activeContent, effective, runtime.surfaceContext.palette, values.photoTint === "brand" ? "brand" : "dark"),
|
|
27151
|
+
...mode !== null ? { variant: mode } : {},
|
|
27152
|
+
...effectiveContent,
|
|
27153
|
+
...photoContent,
|
|
27154
|
+
...arrangementMediaFrameContent(blockKind, effective, values, authored),
|
|
27155
|
+
...arrangementPanelContent(activeContent, effective, mode),
|
|
27156
|
+
...arrangementQuoteContent(blockKind, effective, values),
|
|
27157
|
+
_arrangementLooks: runtime,
|
|
27158
|
+
_effectiveLook: effective,
|
|
27159
|
+
_lookHooks: {
|
|
27160
|
+
...arrangementContentHooks(effective, mode, length, {
|
|
27161
|
+
...facts.content,
|
|
27162
|
+
photo: photoCount > 0
|
|
27163
|
+
}, values, photoCount),
|
|
27164
|
+
...spacingHook
|
|
27165
|
+
},
|
|
27166
|
+
_effectiveKnobs: knobs,
|
|
27167
|
+
_lookOwnedPaths: lookOwnedPaths,
|
|
27168
|
+
_lookAudience: audience,
|
|
27169
|
+
_lookSlots: arrangementContentSlots(blockKind),
|
|
27170
|
+
blockLook: effective.look.id
|
|
27171
|
+
}
|
|
27110
27172
|
};
|
|
27111
27173
|
}
|
|
27112
27174
|
/**
|
|
@@ -27150,7 +27212,10 @@ function arrangementMediaFrameContent(blockKind, look, knobs, authored) {
|
|
|
27150
27212
|
return frame.kind === "fixed" ? {
|
|
27151
27213
|
aspectRatio: frame.aspectRatio,
|
|
27152
27214
|
_lookMediaFrame: frame
|
|
27153
|
-
} : {
|
|
27215
|
+
} : {
|
|
27216
|
+
aspectRatio: typeof authored.aspectRatio === "string" ? authored.aspectRatio : frame.aspectRatio,
|
|
27217
|
+
...frame.borderRadius ? { _lookMediaFrame: frame } : {}
|
|
27218
|
+
};
|
|
27154
27219
|
}
|
|
27155
27220
|
function arrangementQuoteContent(blockKind, effective, values) {
|
|
27156
27221
|
if (blockKind !== "block.testimonials") return {};
|
|
@@ -27504,7 +27569,7 @@ async function fetchAllPages(apiClient, endpoint, params, offset, seenPages) {
|
|
|
27504
27569
|
case "invalid": throw new Error(page.message);
|
|
27505
27570
|
case "complete": return page.entries;
|
|
27506
27571
|
case "continue": return [...page.entries, ...await fetchAllPages(apiClient, endpoint, params, page.offset, page.seenPages)];
|
|
27507
|
-
default: return assertNever$
|
|
27572
|
+
default: return assertNever$1(page);
|
|
27508
27573
|
}
|
|
27509
27574
|
}
|
|
27510
27575
|
function isUnknownArray(value) {
|
|
@@ -27757,9 +27822,10 @@ function projectLoaderOutcomes(blocks, outcomes) {
|
|
|
27757
27822
|
return values.length ? [[block.id, Object.fromEntries(values)]] : [];
|
|
27758
27823
|
})),
|
|
27759
27824
|
loaderFailures: Object.fromEntries(blocks.flatMap((block) => {
|
|
27760
|
-
const values = outcomes.flatMap((outcome) => outcome.request.blockId === block.id && outcome.kind
|
|
27825
|
+
const values = outcomes.flatMap((outcome) => outcome.request.blockId === block.id && outcome.kind !== "loaded" ? [[outcome.request.key, {
|
|
27761
27826
|
endpoint: outcome.request.endpoint,
|
|
27762
|
-
params: outcome.request.params
|
|
27827
|
+
params: outcome.request.params,
|
|
27828
|
+
...outcome.kind === "pending" ? { pending: true } : {}
|
|
27763
27829
|
}]] : []);
|
|
27764
27830
|
return values.length ? [[block.id, Object.fromEntries(values)]] : [];
|
|
27765
27831
|
}))
|
|
@@ -27961,6 +28027,7 @@ const loaderAdapters = {
|
|
|
27961
28027
|
}),
|
|
27962
28028
|
listPublicRecurringSchedule,
|
|
27963
28029
|
getPublicEventDetails,
|
|
28030
|
+
getPublicMapLocation,
|
|
27964
28031
|
listPublicRouteCandidates,
|
|
27965
28032
|
listPublicTeamMembers,
|
|
27966
28033
|
listPublicProducts,
|
|
@@ -28061,6 +28128,19 @@ async function listPublicEvents({ client, params }) {
|
|
|
28061
28128
|
async function listPublicRecurringSchedule(input) {
|
|
28062
28129
|
return projectRecurringSchedule(await listPublicEvents(input));
|
|
28063
28130
|
}
|
|
28131
|
+
async function getPublicMapLocation({ client, params }) {
|
|
28132
|
+
const siteId = requireStringParam(params, "siteId", "getPublicMapLocation");
|
|
28133
|
+
const stage = readStringParam(params, "stage");
|
|
28134
|
+
const source = requireStringParam(params, "source", "getPublicMapLocation");
|
|
28135
|
+
return await client.getPublicMapLocation({
|
|
28136
|
+
siteId,
|
|
28137
|
+
...stage ? { stage } : {},
|
|
28138
|
+
...source === "venue" ? {
|
|
28139
|
+
source,
|
|
28140
|
+
venueId: requireStringParam(params, "venueId", "getPublicMapLocation")
|
|
28141
|
+
} : { source: "business_address" }
|
|
28142
|
+
});
|
|
28143
|
+
}
|
|
28064
28144
|
async function getPublicEventDetails({ client, params }) {
|
|
28065
28145
|
return await client.getPublicEventDetails({
|
|
28066
28146
|
siteId: requireStringParam(params, "siteId", "getPublicEventDetails"),
|
|
@@ -28312,6 +28392,11 @@ function authoringMessage(reason) {
|
|
|
28312
28392
|
case "missing-layout": return reason.isCustom ? `No renderer available for block kind "${reason.blockKind}". This custom block has no layout/variants, so it must be rendered via blockOverrides["${reason.blockKind}"].` : `No renderer available for block kind "${reason.blockKind}".`;
|
|
28313
28393
|
case "hidden-business-location": return "This map is hidden because your business address is hidden.";
|
|
28314
28394
|
case "unresolved-location":
|
|
28395
|
+
if (reason.locationReason === "location_loading" || reason.locationReason === "location_load_failed") return describeUnresolvedLocationMapLocation({
|
|
28396
|
+
kind: "unresolved",
|
|
28397
|
+
source: reason.source,
|
|
28398
|
+
reason: reason.locationReason
|
|
28399
|
+
}) ?? "";
|
|
28315
28400
|
if (reason.source === "business_address") return "Business address details are not configured yet.";
|
|
28316
28401
|
return reason.source === "venue" ? "This map is hidden on your site until the venue has a location." : "This map is hidden on your site until you choose a place.";
|
|
28317
28402
|
case "editor-unpreviewable":
|
|
@@ -28491,11 +28576,7 @@ function buildPageRendererRootRuntime(dataContext) {
|
|
|
28491
28576
|
};
|
|
28492
28577
|
}
|
|
28493
28578
|
function publicLocationRuntime(context) {
|
|
28494
|
-
return {
|
|
28495
|
-
businessAddress: context?.businessLocation ?? null,
|
|
28496
|
-
venuesById: context?.venuesById ?? {},
|
|
28497
|
-
siteCountry: context?.siteCountry ?? null
|
|
28498
|
-
};
|
|
28579
|
+
return { siteCountry: context?.siteCountry ?? null };
|
|
28499
28580
|
}
|
|
28500
28581
|
function resolveDemoEmailSuppression(dataContext) {
|
|
28501
28582
|
return dataContext?.demoEmailSuppressed === true;
|
|
@@ -28625,7 +28706,7 @@ function offeringsPreviewPhotoCount(listing) {
|
|
|
28625
28706
|
case "by-date": return listing.items.filter(({ item }) => hasPhoto(item)).length;
|
|
28626
28707
|
case "by-course": return listing.groups.reduce((count, load) => count + courseGroupPhotoCount(load), 0);
|
|
28627
28708
|
case "by-type": return listing.groups.reduce((count, load) => count + groupPhotoCount(load), 0);
|
|
28628
|
-
default: return assertNever$
|
|
28709
|
+
default: return assertNever$1(listing);
|
|
28629
28710
|
}
|
|
28630
28711
|
}
|
|
28631
28712
|
function groupPhotoCount(load) {
|
|
@@ -28633,14 +28714,14 @@ function groupPhotoCount(load) {
|
|
|
28633
28714
|
case "empty":
|
|
28634
28715
|
case "failed": return 0;
|
|
28635
28716
|
case "items": return load.items.filter(hasPhoto).length;
|
|
28636
|
-
default: return assertNever$
|
|
28717
|
+
default: return assertNever$1(load);
|
|
28637
28718
|
}
|
|
28638
28719
|
}
|
|
28639
28720
|
function hasPhoto(item) {
|
|
28640
28721
|
switch (item.kind) {
|
|
28641
28722
|
case "event": return Boolean(item.event.presentation?.image);
|
|
28642
28723
|
case "run": return Boolean(item.run.representative.presentation?.image);
|
|
28643
|
-
default: return assertNever$
|
|
28724
|
+
default: return assertNever$1(item);
|
|
28644
28725
|
}
|
|
28645
28726
|
}
|
|
28646
28727
|
function courseGroupPhotoCount(load) {
|
|
@@ -28925,11 +29006,10 @@ function createPageRenderPreparationReader() {
|
|
|
28925
29006
|
};
|
|
28926
29007
|
}
|
|
28927
29008
|
function preparePageRenderEntries(input, previous = null) {
|
|
28928
|
-
const
|
|
28929
|
-
const prepared = admission.entries.map((entry) => [entry, readPreparedPlanEntry(entry, input, previous, admission.permission)]);
|
|
29009
|
+
const prepared = preparationAdmission(input).entries.map((entry) => [entry, readPreparedPlanEntry(entry, input, previous)]);
|
|
28930
29010
|
const entries = prepared.map(([, value]) => value);
|
|
28931
29011
|
const constructionFailures = entries.filter((candidate) => candidate.prepared.kind === "render-threw").map((candidate) => candidate.entry);
|
|
28932
|
-
const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw" && candidate.prepared.kind !== "unresolved-location" && !(candidate.prepared.kind === "content" && candidate.prepared.publicVisibility === "omitted"));
|
|
29012
|
+
const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw" && candidate.prepared.kind !== "unresolved-location" && candidate.prepared.kind !== "hidden-business-location" && !(candidate.prepared.kind === "content" && candidate.prepared.publicVisibility === "omitted"));
|
|
28933
29013
|
const surviving = new Set(survivors);
|
|
28934
29014
|
const survivingByEntry = new Map(prepared.filter(([, candidate]) => surviving.has(candidate)));
|
|
28935
29015
|
const regions = {
|
|
@@ -28962,47 +29042,61 @@ function preparationAdmission(input) {
|
|
|
28962
29042
|
mailingList: input.dataContext?.mailingList,
|
|
28963
29043
|
template: input.dataContext?.template ?? pageTemplateFromEntry(input.dataContext?.contentEntry)
|
|
28964
29044
|
});
|
|
28965
|
-
|
|
28966
|
-
return {
|
|
28967
|
-
permission,
|
|
28968
|
-
entries: input.plan.entries.filter((entry) => input.audience === "authoring" || !entryHiddenFromVisitors(entry, facts, input.dataContext?.interactionContext)).filter((entry) => isPublicSourcePermitted(entry, permission) || input.audience === "authoring" && permission.kind === "hidden")
|
|
28969
|
-
};
|
|
29045
|
+
return { entries: input.plan.entries.filter((entry) => input.audience === "authoring" || !entryHiddenFromVisitors(entry, facts, input.dataContext?.interactionContext)) };
|
|
28970
29046
|
}
|
|
28971
|
-
function readPreparedPlanEntry(entry, input, previous
|
|
29047
|
+
function readPreparedPlanEntry(entry, input, previous) {
|
|
28972
29048
|
const cached = previous?.byEntry.get(entry);
|
|
28973
29049
|
if (cached && previous && samePreparationSettings(previous.input, input) && sameBlockRenderDataContext(previous.input.dataContext, input.dataContext, entry.block.id)) return cached;
|
|
28974
|
-
return preparedPlanEntry(entry, prepareSourceEntry(entry, input
|
|
29050
|
+
return preparedPlanEntry(entry, prepareSourceEntry(entry, input));
|
|
28975
29051
|
}
|
|
28976
29052
|
function samePreparationSettings(previous, current) {
|
|
28977
29053
|
return previous.audience === current.audience && previous.routeMap === current.routeMap && previous.themeResources === current.themeResources && previous.imageResolveContext === current.imageResolveContext;
|
|
28978
29054
|
}
|
|
28979
|
-
/**
|
|
28980
|
-
|
|
28981
|
-
|
|
28982
|
-
|
|
28983
|
-
|
|
28984
|
-
|
|
29055
|
+
/**
|
|
29056
|
+
* A map's place is decided before constructing the block or its hydration props,
|
|
29057
|
+
* so a map with nothing to show touches no override, wrapper or authored detail.
|
|
29058
|
+
* Anything short of a loaded place leaves visitors with no map at all.
|
|
29059
|
+
*/
|
|
29060
|
+
function prepareSourceEntry(entry, input) {
|
|
28985
29061
|
if (entry.block.kind === "block.location-map") {
|
|
28986
29062
|
const content = entry.renderableContent;
|
|
29063
|
+
const locationSource = typeof content.locationSource === "string" ? content.locationSource : null;
|
|
28987
29064
|
const resolved = resolveLocationMapLocation({
|
|
28988
29065
|
location: content.location,
|
|
28989
|
-
locationSource
|
|
29066
|
+
locationSource,
|
|
28990
29067
|
venueId: typeof content.venueId === "string" ? content.venueId : null,
|
|
28991
|
-
|
|
28992
|
-
venuesById: input.dataContext?.venuesById
|
|
29068
|
+
loaded: readLocationMapLoad(entry.block.id, normalizeLocationMapSource(locationSource), input.dataContext)
|
|
28993
29069
|
});
|
|
28994
|
-
if (resolved.kind === "unresolved") return {
|
|
29070
|
+
if (resolved.kind === "unresolved") return resolved.reason === "hidden_business_address" ? {
|
|
29071
|
+
kind: "hidden-business-location",
|
|
29072
|
+
businessDetailsHref: input.dataContext?.authoringBusinessDetailsHref ?? null
|
|
29073
|
+
} : {
|
|
28995
29074
|
kind: "unresolved-location",
|
|
28996
|
-
source: resolved.source
|
|
29075
|
+
source: resolved.source,
|
|
29076
|
+
reason: resolved.reason
|
|
28997
29077
|
};
|
|
29078
|
+
if (resolved.kind === "venue" && resolved.disclosure === "area") return prepareEntry(withoutEntrancePhoto(entry), input);
|
|
28998
29079
|
}
|
|
28999
29080
|
return prepareEntry(entry, input);
|
|
29000
29081
|
}
|
|
29001
|
-
/**
|
|
29002
|
-
function
|
|
29003
|
-
|
|
29004
|
-
|
|
29005
|
-
|
|
29082
|
+
/** A photo of the entrance gives away a place whose address is only shared with a booking. */
|
|
29083
|
+
function withoutEntrancePhoto(entry) {
|
|
29084
|
+
const { entrancePhoto: _withheld, ...content } = entry.renderableContent;
|
|
29085
|
+
return {
|
|
29086
|
+
...entry,
|
|
29087
|
+
renderableContent: content
|
|
29088
|
+
};
|
|
29089
|
+
}
|
|
29090
|
+
/** A custom place is in the content. The other sources read only this block's own loader. */
|
|
29091
|
+
function readLocationMapLoad(blockId, source, dataContext) {
|
|
29092
|
+
if (source === "custom" || !blockId) return void 0;
|
|
29093
|
+
const key = LOCATION_MAP_LOADER_KEYS[source];
|
|
29094
|
+
const failure = dataContext?.loaderFailures?.[blockId]?.[key];
|
|
29095
|
+
if (failure) return locationMapLoadFromFailure(failure);
|
|
29096
|
+
return parseLocationMapLoaderResult(dataContext?.resolvedData?.[blockId]?.[key]);
|
|
29097
|
+
}
|
|
29098
|
+
function locationMapLoadFromFailure(failure) {
|
|
29099
|
+
return { kind: failure.pending ? "pending" : "failed" };
|
|
29006
29100
|
}
|
|
29007
29101
|
function entryHiddenFromVisitors(entry, facts, interaction) {
|
|
29008
29102
|
return entry.kind === "renderable" && entry.definition.readiness !== void 0 && hiddenFromVisitors(entry.definition.readiness.assess(entry.renderableContent, facts, {
|
|
@@ -29052,13 +29146,15 @@ function prepareEntry(entry, input) {
|
|
|
29052
29146
|
}
|
|
29053
29147
|
}
|
|
29054
29148
|
/**
|
|
29055
|
-
* Editor admission validates
|
|
29056
|
-
* proof.
|
|
29149
|
+
* Editor admission validates what the owner still decides, without minting a
|
|
29150
|
+
* renderable proof. The Look's decisions are not authoring choices (a frame's
|
|
29151
|
+
* 4/5 is not on the block's ratio list), so the preview renders them unvalidated,
|
|
29152
|
+
* as a public page does, and a hidden stale value can't block it. Returns `null`
|
|
29153
|
+
* when even relaxed validation rejects the draft.
|
|
29057
29154
|
*/
|
|
29058
29155
|
function previewableEditorContent(entry) {
|
|
29059
29156
|
if (entry.block.presentationAdmission.kind !== "editor") return entry.renderableContent;
|
|
29060
|
-
|
|
29061
|
-
return draft.kind === "previewable" ? draft.data : null;
|
|
29157
|
+
return validateManifestDraft(compileManifestContentContract(entry.definition.manifest), entry.ownerEditableContent).kind === "previewable" ? entry.renderableContent : null;
|
|
29062
29158
|
}
|
|
29063
29159
|
function buildPreparedContent(entry, content, input) {
|
|
29064
29160
|
const { dataContext } = input;
|
|
@@ -29638,7 +29734,8 @@ function preparationDiagnostic(prepared, blockKind) {
|
|
|
29638
29734
|
reason: {
|
|
29639
29735
|
kind: prepared.kind,
|
|
29640
29736
|
blockKind,
|
|
29641
|
-
source: prepared.source
|
|
29737
|
+
source: prepared.source,
|
|
29738
|
+
locationReason: prepared.reason
|
|
29642
29739
|
},
|
|
29643
29740
|
outcome: "invalidPlaceholder"
|
|
29644
29741
|
};
|
|
@@ -29928,21 +30025,16 @@ function siteBookingRenderSupport(site) {
|
|
|
29928
30025
|
businessPerson: site.bookingPerson ?? null
|
|
29929
30026
|
};
|
|
29930
30027
|
}
|
|
29931
|
-
function buildSiteRenderSupport(site, mediaAssets
|
|
30028
|
+
function buildSiteRenderSupport(site, mediaAssets) {
|
|
29932
30029
|
const customBlocks = resolveSiteCustomBlocks(site);
|
|
29933
30030
|
return {
|
|
29934
30031
|
theme: site.theme,
|
|
29935
|
-
site:
|
|
29936
|
-
...site.site,
|
|
29937
|
-
venuesById: locationMapSupport.venuesById
|
|
29938
|
-
} : site.site,
|
|
30032
|
+
site: site.site,
|
|
29939
30033
|
sdkConfig: site.sdkConfig ?? null,
|
|
29940
30034
|
openingHours: site.businessDetails?.openingHours ?? null,
|
|
29941
30035
|
siteTerms: site.siteTerms,
|
|
29942
30036
|
mailingList: site.mailingList,
|
|
29943
30037
|
interactionContext: site.interactionContext,
|
|
29944
|
-
businessLocationPermission: site.site.businessLocationPermission,
|
|
29945
|
-
businessAddressVisibility: site.businessDetails?.addressVisibility ?? "hidden",
|
|
29946
30038
|
...siteBookingRenderSupport(site),
|
|
29947
30039
|
now: toUtcIsoDateTimeString((/* @__PURE__ */ new Date()).toISOString()),
|
|
29948
30040
|
...customBlocks ? { customBlocks } : {},
|
|
@@ -29953,14 +30045,9 @@ function buildSiteRenderSupport(site, mediaAssets, locationMapSupport) {
|
|
|
29953
30045
|
...mediaAssets ? { mediaAssets } : {}
|
|
29954
30046
|
};
|
|
29955
30047
|
}
|
|
29956
|
-
/** Only already-permitted projections reach the block runtime. */
|
|
29957
30048
|
function siteBlockRenderContext(support) {
|
|
29958
30049
|
return {
|
|
29959
30050
|
businessPerson: support.businessPerson,
|
|
29960
|
-
businessLocationPermission: support.site.businessLocationPermission,
|
|
29961
|
-
businessAddressVisibility: support.businessAddressVisibility ?? "hidden",
|
|
29962
|
-
businessLocation: support.site.businessLocation ?? null,
|
|
29963
|
-
venuesById: support.site.venuesById ?? {},
|
|
29964
30051
|
siteCountry: support.site.siteCountry ?? null
|
|
29965
30052
|
};
|
|
29966
30053
|
}
|
|
@@ -30656,7 +30743,7 @@ function solvedInksForThemeRuntime(themeRuntime) {
|
|
|
30656
30743
|
case "cms-theme": return "publish";
|
|
30657
30744
|
case "responsive-only":
|
|
30658
30745
|
case "none": return "withhold";
|
|
30659
|
-
default: return assertNever$
|
|
30746
|
+
default: return assertNever$1(themeRuntime);
|
|
30660
30747
|
}
|
|
30661
30748
|
}
|
|
30662
30749
|
function renderWithSdkThemeRuntime({ themeRuntime, theme, children }) {
|
|
@@ -30671,7 +30758,7 @@ function renderWithSdkThemeRuntime({ themeRuntime, theme, children }) {
|
|
|
30671
30758
|
children
|
|
30672
30759
|
});
|
|
30673
30760
|
case "none": return /* @__PURE__ */ jsx(Fragment, { children });
|
|
30674
|
-
default: return assertNever$
|
|
30761
|
+
default: return assertNever$1(themeRuntime);
|
|
30675
30762
|
}
|
|
30676
30763
|
}
|
|
30677
30764
|
function renderWithOverrideOnlyRuntime({ runtime, children }) {
|
|
@@ -30681,7 +30768,7 @@ function renderWithOverrideOnlyRuntime({ runtime, children }) {
|
|
|
30681
30768
|
children
|
|
30682
30769
|
});
|
|
30683
30770
|
case "none": return /* @__PURE__ */ jsx(Fragment, { children });
|
|
30684
|
-
default: return assertNever$
|
|
30771
|
+
default: return assertNever$1(runtime);
|
|
30685
30772
|
}
|
|
30686
30773
|
}
|
|
30687
30774
|
//#endregion
|
|
@@ -30735,10 +30822,6 @@ function buildPageIdentityRenderContext(dataContext) {
|
|
|
30735
30822
|
now: dataContext.now,
|
|
30736
30823
|
siteName: dataContext.siteName,
|
|
30737
30824
|
businessPerson: dataContext.businessPerson ?? null,
|
|
30738
|
-
businessLocationPermission: dataContext.businessLocationPermission,
|
|
30739
|
-
businessAddressVisibility: dataContext.businessAddressVisibility,
|
|
30740
|
-
businessLocation: dataContext.businessLocation,
|
|
30741
|
-
venuesById: dataContext.venuesById,
|
|
30742
30825
|
siteCountry: dataContext.siteCountry,
|
|
30743
30826
|
pathname: dataContext.pathname
|
|
30744
30827
|
};
|
|
@@ -30865,4 +30948,4 @@ function Page(props) {
|
|
|
30865
30948
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(HydratorWithContextProps, { ...toPageHydrationBootstrapConfig(props) }), /* @__PURE__ */ jsx(PageContent, { ...props })] });
|
|
30866
30949
|
}
|
|
30867
30950
|
//#endregion
|
|
30868
|
-
export {
|
|
30951
|
+
export { projectRepeaterGridLayout as $, SUPPORTED_LOADER_ENDPOINTS as A, resolveRouteHrefForStage as B, resolveSdkBlockManifest as C, MISSING_SDK_THEME_ERROR_CODE as D, resolveSiteCustomBlocks as E, renderBlock as F, siteHeaderManifest as G, getBlockDefinition as H, getDefaultComponentRegistry as I, compileManifestContentContract as J, blockDesignCapabilityMapFromDefinitions as K, resolveAuthoredLinkHref as L, materializeEntriesMedia as M, planBlockDataRequests as N, MissingSdkThemeError as O, makeDefaultBlockComponent as P, fieldPlanToZod as Q, isRouteVisibleInStage as R, readInvalidBlockAdmission as S, siteBlockRenderContext as T, systemBlockDefinitions as U, allOutlineBlocks as V, siteFooterManifest as W, admitLayoutGridForPlan as X, registeredManifestContentContract as Y, deriveFieldValidationPlan as Z, buildRenderablePageOutline as _, solvedInksForThemeRuntime as a, encodePublicProductCategorySelector as at, invalidRenderableBlock as b, MissingBlockOverrideError as c, applyCompiledRuntimeFieldsToContent as ct, buildThemeRuntime as d, readPublishedBlockPlacement as dt, projectRepeaterGridLayoutForRendering as et, parseBlocksTheme as f, blockDesignInputsForDefinition as g, resolveRuntimeJoinFacts as h, renderWithSdkThemeRuntime as i, isRecord$6 as it, prefetchBlockDataWithFailures as j, requireSdkTheme as k, PageRenderer as l, compileEditorModelRuntime as lt, isEntryBoundBlockEmpty as m, planLayoutThemeRuntime as n, normalizeRepeaterGridSpan as nt, ThemeScope as o, parseListLook as ot, applyBindingsToContent as p, admitTransportedRenderableManifestContent as q, renderWithOverrideOnlyRuntime as r, resolveRepeaterGridAcceptedSpans as rt, EditorPageRenderer as s, buildPageDesignEditorReadModel as st, Page as t, flowRepeaterGridItems as tt, toBlocksPageRendererDataContext as u, isSupportedLoaderEndpoint$1 as ut, buildSiteRenderSupport as v, sanitizeSdkRuntimeBlockContent as w, projectRenderablePageOutline as x, collectMediaAssetSidecar as y, normalizeRenderStage as z };
|