@riverbankcms/sdk 0.172.0 → 0.174.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/README.md +6 -1
- package/dist/_dts/{BlocksIslandsHydrator-DtrzTJ77.d.ts → BlocksIslandsHydrator-GqVX3I8E.d.ts} +1 -1
- package/dist/_dts/{Page-DViYbakk.d.ts → Page-BhUH31M-.d.ts} +27 -16
- package/dist/_dts/{SdkPreviewMode-D-5OeDbT.d.ts → SdkPreviewMode-DBn2x0UL.d.ts} +14 -7
- package/dist/_dts/{client-DZBOzd3U.d.ts → client-Cr-sOeSl.d.ts} +1002 -139
- package/dist/_dts/{content-types-DS3DrYn_.d.ts → content-types-DKw1yJdN.d.ts} +2 -2
- package/dist/_dts/{contracts-C3QGPCUf.d.ts → contracts-CJ2O03nB.d.ts} +6 -4
- package/dist/_dts/{footerPageOutline-D9Q7VIul.d.ts → footerPageOutline-DoGHHKr_.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-R7NeFT1u.d.ts → generatePageMetadata-CJGu4hoa.d.ts} +2 -2
- package/dist/_dts/{index-Dns7OHyl.d.ts → index--39uLjrr.d.ts} +1 -1
- package/dist/_dts/{index-Da4UMgbs.d.ts → index-3GzargmS.d.ts} +2 -2
- package/dist/_dts/{index-DkFV_1Bc.d.ts → index-Bq-488M7.d.ts} +1 -1
- package/dist/_dts/{index-BnMavhoh.d.ts → index-DQZ5L0Gb.d.ts} +2 -2
- package/dist/_dts/{index-C0zjLMAW.d.ts → index-DYlfdT1O.d.ts} +2 -1
- package/dist/_dts/{index-CpOkfBt1.d.ts → index-DYsP4k6S.d.ts} +3 -3
- package/dist/_dts/{index-MuMYjetm.d.ts → index-DdEi2iXd.d.ts} +4 -4
- package/dist/_dts/{loadContent-DJmXHzfi.d.ts → loadContent-BVPagYmy.d.ts} +11 -11
- package/dist/_dts/{request-wQ28JWbr.d.ts → request-Be1E-H-V.d.ts} +4892 -1720
- package/dist/_dts/{resolveBlockData-C-IP53u9.d.ts → resolveBlockData-D1pL25bD.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-Cc4zqaEC.d.ts → resolvePageContent-B4sbTf96.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 +9 -9
- 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/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 +6 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +4 -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 +13 -8
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/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 +36 -204
- package/dist/_dts/{types-CpjyP5I4.d.ts → types-5MeDI1w8.d.ts} +7 -7
- package/dist/_dts/{types-DrinAfeW.d.ts → types-Bm5_3VEd.d.ts} +3 -3
- package/dist/_dts/{types-ZuZoGsZV.d.ts → types-CVoCc_Ia.d.ts} +2 -2
- package/dist/_dts/{validation-CIZ_fP5l.d.ts → validation-lEtYD-Rh.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-UFmQB1BE.mjs → BlocksIslandsHydrator-DkflFLGQ.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-VjRYhx1c.mjs → BookingMailingListNote-CAyoiAGD.mjs} +18 -12
- package/dist/client/{BookingPanelArrangement-DpqnRo-t.mjs → BookingPanelArrangement-C7yiJrxm.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-CzOT8ZWo.mjs → BookingQuestionFields-DZMrGvBh.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-CNckKZct.mjs → CalendarNavigationChevron-BPQU5Snc.mjs} +41 -34
- package/dist/client/{DemoBookingPortalAccess-CmZLVXOy.mjs → DemoBookingPortalAccess-BnEgvJas.mjs} +22 -22
- package/dist/client/{EventCalendar.client-BU-SxLCn.mjs → EventCalendar.client-BiWQc28-.mjs} +11 -10
- package/dist/client/{EventCombined.client-f28VltfY.mjs → EventCombined.client-B_ytWQtn.mjs} +10 -9
- package/dist/client/{EventItem-sKBofjiW.mjs → EventItem-C-mxXpX_.mjs} +25 -16
- package/dist/client/{EventListWeekNavigation-IAcax47T.mjs → EventListWeekNavigation-Bm3Ap1Rd.mjs} +1 -1
- package/dist/client/{EventListing.client-BEtnRvZr.mjs → EventListing.client-Bs_8im5_.mjs} +3 -3
- package/dist/client/{EventListing.view-BZ4l_rmT.mjs → EventListing.view-CN7BjGgC.mjs} +37 -14
- package/dist/client/{EventRegistrationPayment-BWb295cD.mjs → EventRegistrationPayment-DPkRcSdw.mjs} +848 -146
- package/dist/client/{LocationMapActions-Hsj2HC_1.mjs → LocationMapActions-BJT7MqP2.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-C7E7Lyfa.mjs → MapDrawingSvg-DCIwlON6.mjs} +1 -1
- package/dist/client/{Page-Ds1s3DuC.mjs → Page--xJ23nA5.mjs} +1160 -521
- package/dist/client/{StepIndicator-CSCyAaKY.mjs → StepIndicator-D391QRNc.mjs} +85 -13
- package/dist/client/{accessibleSurfaces-OsAseM7H.mjs → accessibleSurfaces-DN8it_Cx.mjs} +36 -27
- package/dist/client/{accordion-DgwFZJSx.mjs → accordion-BQtTkDN8.mjs} +1 -1
- package/dist/client/bookability-CE637yDE.mjs +17 -0
- package/dist/client/{booking-form.client-CKY9oksp.mjs → booking-form.client-D9M7TKGV.mjs} +362 -47
- package/dist/client/{bookingForm-CsHhcdSF.mjs → bookingForm-BsOS0sl9.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{boxStyleClassNames-B1Z_TGAe.mjs → boxStyleClassNames-CNDLpT06.mjs} +1 -1
- package/dist/client/{carousel-0sw2Kc3a.mjs → carousel-CPsW-FPh.mjs} +1 -1
- package/dist/client/{cart-CPfvMDGJ.mjs → cart-CwElmocm.mjs} +3 -3
- package/dist/client/{cart.client-BJBPUTmg.mjs → cart.client-RpqI56w8.mjs} +1 -1
- package/dist/client/{checkout-DU4JFjGT.mjs → checkout-CfMgqY8H.mjs} +3 -3
- package/dist/client/{checkout.client-BbNCO4xa.mjs → checkout.client-BpuPyOuJ.mjs} +1 -1
- package/dist/client/{checkoutUrls-BQ3OlWlM.mjs → checkoutUrls-VeHY6WYj.mjs} +1 -1
- package/dist/client/client.mjs +206 -7
- package/dist/client/{context-xNC1Cyjw.mjs → context-CNlesLfF.mjs} +81 -14
- package/dist/client/{cta-CNVQHLKs.mjs → course-q1sA4Cj-.mjs} +77 -3
- package/dist/client/{creditProducts-BTRX4edc.mjs → creditProducts-KYMVIH3J.mjs} +2 -84
- package/dist/client/{dateFormatting-B6ea-egy.mjs → dateFormatting-B73Ll0s4.mjs} +9 -1
- package/dist/client/{demoPortalMagicLink-BhjGxhX3.mjs → demoPortalMagicLink-BVbLD4pi.mjs} +1 -1
- package/dist/client/{display-B5DfNb6A.mjs → display-D8MW2b0e.mjs} +3076 -819
- package/dist/client/{enhanceHeaderSection-BFcHLuqk.mjs → enhanceHeaderSection-BzjY6AiY.mjs} +3 -3
- package/dist/client/{event-details.client-WHT5GLn2.mjs → event-details.client-CseTWUFC.mjs} +1 -1
- package/dist/client/{event-registration.client-CmnRKELC.mjs → event-registration.client-b5TLxntR.mjs} +1315 -553
- package/dist/client/{eventCalendar-2NbdCyov.mjs → eventCalendar-C-kJNIc9.mjs} +4 -4
- package/dist/client/{eventCombined-D1lH1n2T.mjs → eventCombined-BgHJGhwE.mjs} +4 -4
- package/dist/client/{eventDetails-BHvnF2Tw.mjs → eventDetails-CAwbreD0.mjs} +2 -2
- package/dist/client/{eventListing-EhSDk4UL.mjs → eventListing-_14atrj8.mjs} +4 -4
- package/dist/client/{eventRegistration-z_0jN_KS.mjs → eventRegistration-BOqSdstJ.mjs} +4 -4
- package/dist/client/{form-BfChzSkS.mjs → form-DfAB-llc.mjs} +3 -3
- package/dist/client/{form.client-D1zehtPk.mjs → form.client-DN-I9_qC.mjs} +6 -6
- package/dist/client/{form.parts-rMDlUQIv.mjs → form.parts-t2Q1neM6.mjs} +1 -1
- package/dist/client/{formatDate-ymSVT9Y5.mjs → formatDate-Dp7POa9Y.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-BX9bQ84k.mjs → headerSection-Dces54pb.mjs} +2 -2
- package/dist/client/{newsletter-form.client-DMbuJCtJ.mjs → newsletter-form.client-D_YFUlR2.mjs} +9 -7
- package/dist/client/{newsletter-form.parts-BxrVsoI0.mjs → newsletter-form.parts-URO5Mn_I.mjs} +1 -1
- package/dist/client/{newsletterForm-B_I3FJFS.mjs → newsletterForm-_c9fKIzS.mjs} +3 -3
- package/dist/client/{noop-CamIX2yK.mjs → noop-D5mFWXtN.mjs} +139 -12
- package/dist/client/portal/client.mjs +346 -272
- package/dist/client/{product-detail.client-qxuiYCof.mjs → product-detail.client-CVW1UIxJ.mjs} +1 -1
- package/dist/client/{product-list.client-CDL-jihv.mjs → product-list.client-CF9hO23G.mjs} +1 -1
- package/dist/client/{productDetail-B97m0uZy.mjs → productDetail-C_qbmUuP.mjs} +3 -3
- package/dist/client/{productList-DE4vSSG_.mjs → productList-Df5qDD0z.mjs} +3 -3
- package/dist/client/{propsDecoder-BTde6Syh.mjs → propsDecoder-BiEyK2ii.mjs} +3 -3
- package/dist/client/{registry.server-Cn8XjRte.mjs → registry.server-ClcfWpvM.mjs} +93 -63
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +34 -61
- package/dist/client/{richText-coerce-Bcl3vTb4.mjs → richText-coerce-C32cRQ03.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-BjRoLoMD.mjs → routeIslandApiConfig-DAypPzSo.mjs} +1 -1
- package/dist/client/{runtimeResponse-B-lrAGhX.mjs → runtimeResponse-9v8q2NBc.mjs} +1 -1
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +3 -0
- package/dist/client/{shop-commerce-BsY7a71m.mjs → shop-commerce-Bw4_BXQg.mjs} +12 -11
- package/dist/client/{shop-commerce-store-BZ5j90HD.mjs → shop-commerce-store-Da6Ah-_4.mjs} +1 -1
- package/dist/client/shop-discount-apply.state-DidgH7ow.mjs +166 -0
- package/dist/client/{shop-BC4H0oYT.mjs → shop-gteEpeO5.mjs} +3 -3
- package/dist/client/{shop.client-WgGVGelc.mjs → shop.client-CbbdjWWd.mjs} +13 -12
- package/dist/client/{shop.interactive-Bb67gPLL.mjs → shop.interactive-CKFORzux.mjs} +45 -29
- package/dist/client/{shopShared-BE6TEk2A.mjs → shopShared-C7QjoywZ.mjs} +2 -2
- package/dist/client/stable-json-D0XAEIXc.mjs +22 -0
- package/dist/client/{timetableModel-Bbz_ECL5.mjs → timetableModel-CtZiIj9q.mjs} +25 -15
- package/dist/client/{useAvailableSlots-CdP14E_b.mjs → useAvailableSlots-CUVRD1nx.mjs} +39 -8
- package/dist/client/{useDiscountApply-DvOSso2l.mjs → useDiscountApply-BZU5DWZQ.mjs} +4 -167
- package/dist/client/{useDiscountCodeUi-B4fRd2jy.mjs → useDiscountCodeUi-BuLgof7O.mjs} +1 -1
- package/dist/client/{useEventPagination-M3jC8lgP.mjs → useEventPagination-B4VPtSEF.mjs} +6 -6
- package/dist/client/{view-DNNNbnNj.mjs → view-CvlTplao.mjs} +2 -2
- package/dist/client/{view-B0TFnP4y.mjs → view-CxUpgcM6.mjs} +56 -34
- package/dist/preview-next/client/{LocationPickerEnvironment-D4F_5rnr.mjs → LocationPickerEnvironment-8iKKoYZr.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-BKMNxSEJ.mjs → MapLibreEditMap-AIUPN1Zx.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-D59tHj_L.mjs → PageSectionToolbar-BFbSrDbi.mjs} +80 -160
- package/dist/preview-next/client/{PreviewEditorSidebar-CjOIZlUk.mjs → PreviewEditorSidebar-BtpzqQ-i.mjs} +780 -1634
- package/dist/preview-next/client/{PreviewEditorUI--kS9Cwsc.mjs → PreviewEditorUI-z22h-CCY.mjs} +29 -26
- package/dist/preview-next/client/{PreviewShell-Bi8-rclb.mjs → PreviewShell-BW3Qpoa_.mjs} +52 -32
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CWTUw-3L.mjs → SdkPreviewModeRuntime-BvVeK1hR.mjs} +47 -69
- package/dist/preview-next/client/{lucide-react-BCNn8dEQ.mjs → lucide-react-Dfgl3Vtq.mjs} +7 -1
- package/dist/preview-next/client/{previewAssistantSlot-Caofnr1Z.mjs → previewAssistantSlot-BUqAh1FL.mjs} +98429 -46667
- package/dist/preview-next/client/{previewChromeRoot-CbAI_jSH.mjs → previewChromeRoot-NCy5zHO8.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DY65_hLk.mjs → sdk-runtime-CxmKDVGZ.mjs} +2 -2
- package/dist/preview-next/client/siteStyleAccess-B_UaDyJO.mjs +9356 -0
- package/dist/preview-next/client/{useAutosaveStatus-CakNU3lp.mjs → useAutosaveStatus-BqmWvPLY.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-CCEMkosU.mjs → useOpenBlockForSetup-LAllV0rU.mjs} +8 -4
- package/dist/preview-next/container-responsive.css +117 -32
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DsKDQoVW.mjs → route-contract-DV6SeCNv.mjs} +200 -2
- package/dist/server/{Block.shared-D7Qy9F4a.mjs → Block.shared-Ch2FKAvU.mjs} +11 -6
- package/dist/server/{ThemeScopeCore-D1NTXZdX.mjs → ThemeScopeCore-DFvjDVzi.mjs} +23 -6
- package/dist/server/{accessibleSurfaces-Dbd2__Le.mjs → accessibleSurfaces-CM3QANtw.mjs} +22 -5
- package/dist/server/{bindings-Bp6OnR3n.mjs → bindings-CQg2lzZn.mjs} +6 -4
- package/dist/server/{client-dROAfMRa.mjs → client-aYRTVneD.mjs} +205 -6
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/customCss-BGB8gMVb.mjs +210 -0
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{identity-20XHqyuO.mjs → identity-DQD_8lNO.mjs} +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-zOIrtqz-.mjs → loadContent-Cgpfr44e.mjs} +8 -10
- package/dist/server/{loadPage-vwFiq1Rk.mjs → loadPage-RDk10NMP.mjs} +3 -3
- package/dist/server/lookMediaFrame-CQtkvlDn.mjs +2528 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{media-Brn9FW5s.mjs → media-luf7RF22.mjs} +2 -2
- package/dist/server/{navigation-DAwbICEL.mjs → navigation-iC_hXjJI.mjs} +3 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +9 -8
- package/dist/server/{overrideResolution-DjboggbB.mjs → overrideResolution-VhhN94d8.mjs} +3 -4
- package/dist/server/page-converter.mjs +2 -2
- package/dist/server/{pageRenderPlan-BR4t1rOw.mjs → pageRenderPlan-CkFTsxkd.mjs} +166 -42
- package/dist/server/{pageRuntimeSupport-BKo6XVK-.mjs → pageRuntimeSupport-CpAtzNxD.mjs} +15 -7
- package/dist/server/{pageShared-BJjptSGp.mjs → pageShared-B8yLPjs0.mjs} +531 -117
- package/dist/server/{parseThemeForPersistence-B18KDEue.mjs → parseThemeForPersistence-Cwqb5pZx.mjs} +2 -2
- package/dist/server/{portal-Ce1Prfl3.mjs → portal-BjVHMAUC.mjs} +1 -1
- package/dist/server/portal.mjs +1 -1
- package/dist/server/{prebuild-CntSkZQI.mjs → prebuild-DOu6QceG.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BM9Ds0OQ.mjs → prefetchBlockData-CfOXFKYG.mjs} +3 -3
- package/dist/server/{registry-wYH0LH5f.mjs → registry-34rkAfaU.mjs} +1409 -3314
- 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 +2 -2
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-Bu_p4HxZ.mjs → resolveBlockData-D7VeoWgr.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-CCPUY9Xh.mjs → resolveButtonColourStates--6yJp9Tq.mjs} +15 -4
- package/dist/server/{responseMedia-t6gs0cB7.mjs → responseMedia-DpBC1hTM.mjs} +1 -1
- package/dist/server/{schema-BFOqYIMQ.mjs → schema-CUDHMirj.mjs} +440 -154
- package/dist/server/server.mjs +3 -3
- package/dist/server/{src-Cxucn-1P.mjs → src-DHK4JUlp.mjs} +4 -1
- package/dist/server/theme-bridge.mjs +21 -15
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-Bsfdy_ZV.mjs → three-pass-converter-39SXCCnh.mjs} +1 -1
- package/dist/server/{titleSourceSchema-DwKJfMYb.mjs → titleSourceSchema-Cu-3PRvv.mjs} +0 -1
- package/dist/server/{validation-DAQdPDku.mjs → validation-CLVKoJrX.mjs} +5 -5
- package/dist/server/{version-DAB0O3yx.mjs → version-HVfdvBJ0.mjs} +1 -1
- package/dist/styles/index.css +1038 -200
- package/package.json +1 -1
- package/dist/client/runtimeResponse-CPcA8xSm.mjs +0 -3
- package/dist/preview-next/client/SiteChromeCustomizeButton-CrgS3I8d.mjs +0 -53534
- package/dist/server/customCss-QymcmOZ-.mjs +0 -97
- package/dist/server/opaqueSurface-COEKXVwk.mjs +0 -54
- package/dist/server/rich-text-CRcONdyM.mjs +0 -33
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { B as OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE,
|
|
2
|
+
import { B as OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE, Cn as parseMailingListPlacementTargeting, Dn as parseContentVersionId, En as sameMailingListPlacementTargeting, G as isOfferingsPreviewSourceKey, H as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, Ht as cardListPresentationSchemaShape, K as normalizeOfferingsPreviewContentForWrite, R as OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS, W as groupOfferingRunsByCourse, X as readOfferingsGrouping, Y as offeringsListingFor, Zt as buildEventListWeek, bt as recurringScheduleProjectionSchema, ct as occurrenceContextSchema, gn as resolveHeaderChromeRuntimeContract, hn as isHeaderScrollRuntimeEnabled, on as formatEventStartingPrice, qt as quickFactSlots, vn as parseHeaderPositioning, xn as buildMailingListSignupBlockSourceRef, xt as combinedLookSchema, yn as planSiteChromePlacement, yt as projectRecurringSchedule } from "./shop.interactive-CKFORzux.mjs";
|
|
3
3
|
import { a as mediaIdentifierSchema, i as resolveManagedMediaReference, n as renderableMediaAssetSchema, r as indexRenderableMediaAssets } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
4
|
-
import { $a as
|
|
5
|
-
import { A as
|
|
6
|
-
import {
|
|
7
|
-
import { $ as
|
|
8
|
-
import {
|
|
9
|
-
import { g as
|
|
4
|
+
import { $a as arrangementAppearancePresets, $o as transitionIntentForTreatment, $s as asDesignBlockId, Ao as footerForegroundCandidates, As as selectLogoVariant, Bo as resolvePageDesignBlockLookChoice, Bs as boxBackgroundSchema, Ca as resolveDateRuntimeContext, Co as stripCompiledRuntimeStyleFields, Cs as sectionBackgroundPaintValues, Do as resolveCardRole, Ds as cardListKnobBlocks, Eo as getGradientPreset, Es as cardListFamilyBlocks, Fo as generateInteractiveChildInheritanceCSS, Fs as themeSchema, Go as boundaryOptionForTransitionIntent, Ho as sectionShapeForGround, Io as navLinkHoverColorCandidate, Is as headerVariantValues, Ja as itemRole, Jo as boundaryTreatmentForBoundaryOptionId, Js as parseGradientPresetId, Ko as boundaryOptions, La as normalizeEventRegistrationPageSurfaceSubject, Lo as navLinkOwnsHoverForeground, Ls as blockCustomCssRuleSchema, Mo as buildTextContrastShadow, Ms as arrangementSlotNames, No as generateNavLinkCSS, Ns as TokenResolver, Oo as generateDefaultCardSystem, Os as opaqueSurfaceContextFromTheme, Po as generateEffectsCSS, Ps as sectionStylesOverrideSchema, Qa as generateLookMediaFrameCss, Qo as spaciousBoundaryOption, Ro as navLinkOwnsUnderline, Rs as customCssRuleSchema, Sa as readRuntimeNow, Ss as plainFrame, Tc as formatBookingPriceDisplay, To as gradientToCss, Ts as toNonEmptyReadonlyArray, Uo as sectionShapeFromContent, Vo as resolvePageDesignBoundaryChoice, Vs as runtimeBoxBackgroundSchema, Wo as sectionShapeHook, Ws as cardVariantRoleValues, Xa as resolveLookSurfacePresentation, Xo as noneBoundaryOption, Xs as asHeaderStyleId, Ya as lookPresentationOnPalette, Yo as isDecorativeTransitionIntent, Ys as asHeaderLayoutId, Za as selectItemSurfacePresentation, Zo as softBoundaryOption, Zs as siteChromeBackgroundOverrideOwner, _s as defineNoBlockDesignCapability, ao as resolveArrangementLookForBlock, as as resolveSectionBackground, bo as requireCuratedSiteStyle, br as MediaPlaceholder, bs as introCompositionTreatmentValues, co as arrangementManifestFromVariants, cs as stripStaleTransitionStyleGroup, do as resolveModeArrangement, ds as resolveEffectiveKnobs, ec as asLayoutVariantKey, eo as arrangementLookHooks, es as anglePolygonCss, fo as resolvePublishedLook, fs as lookModes, go as filterLookIdsForPolicy, gs as defineFrameCapability, ho as filterLayoutProfilesForPolicy, hs as defineExactCatalog, io as getCompatibleBlockAppearancePresets, is as parseCanonicalRuntimeBackground, jo as getNavLinkPreset, jr as eventCalendarWeekStart, js as surfaceToneFromForegroundToken, ko as generateFooterCss, ks as opaqueSurfaceDeclarations, lo as readStoredMode, ls as themeV2CompilerOwnedFieldNames, mo as deriveSiteStyleBlockPolicy, ms as defineBlockDesignCapability, nc as asSiteStyleId, no as automaticArrangementLook, ns as applyLookPhotoTreatment, oc as isRecord$8, oo as resolveLookForBlock, os as sectionForegroundBackground, ps as assertNever$1, qa as resolvedItemSurfaceProps, qo as boundaryRuntimeMetricsForDecorativeTransition, qs as surfaceCardRoleValues, rc as makeBoundaryId, ro as compileArrangementLookRuntime, rs as deriveSectionGround, so as styleSectionBackgroundForColour, ss as sectionSurfaceBase, tc as asPageFlowPresetId, to as arrangementStyleAvailability, ts as transitionCatalogueEntries, uo as resolveEffectiveArrangement, vs as designIssueSeverityForPolicy, ws as testimonialsCompositionTreatmentValues, xa as isBlockButtonRole, xo as compilePageRuntimeFields, xr as computeMediaTransformStyle, xs as offeringsPreviewCompositionTreatmentValues, yo as getCuratedSiteStyle, ys as featureCardCompositionTreatmentValues } from "./display-D8MW2b0e.mjs";
|
|
5
|
+
import { A as eventListTreatmentValues, At as decideLocationSourcePermission, Bt as formatDate, Dt as isRecord$9, F as tileTreatmentValues, Ft as publicLocationSchema, I as visibleHeadingDecorationFamilyValues, L as eventVenueDrawingSchema, M as headingDecorationColorTokenValues, Nt as parseLocationValue, P as isArrangementMode, Pt as projectPublicLocation, Q as isRichTextDoc, Rt as trimmedStringOrNull, V as publicEventsArraySchema, W as bookingConsentCarrierSchema, Y as RichTextDocSchema, _ as eventCalendarListLayoutOptions, a as eventAutoApplyDiscountPreviewSchema, an as resolveBookingBusinessTimeZone, dt as eventCalendarListLayoutCompatibleDisplayModeValues, g as eventCalendarListGroupingDecision, h as resolveCalendarReadProfile, it as runtimeMediaSchema, j as eyebrowTreatmentValues, jt as locationValueSchema, kt as WHOLE_SERIES_EVENT_PRESET_VALUES, ln as toUtcIsoDateTimeString, nn as getLocalScheduleDate, nt as mediaSchema, o as publicMembershipProductCollectionSchema, ot as PUBLIC_FILE_FIELD_KINDS, s as publicPassProductCollectionSchema, t as logger, w as resolveEventCalendarReadPlan, yt as calendarWindowQuerySchema, z as publicEventPricingSchema } from "./noop-D5mFWXtN.mjs";
|
|
6
|
+
import { A as assertNever$2 } from "./creditProducts-KYMVIH3J.mjs";
|
|
7
|
+
import { $ as backgroundFrame, $t as chosenString, A as mapDrawingStyleBinding, An as ICON_SIZE_PX, At as cardListKnobFields, B as normalizeMailingListBlockContent, Bt as parseFieldDefinitions, C as checkoutBlockDefinition, Cn as createButtonGroup, Ct as repeat, D as shopBlockDefinition, Dn as ACCORDION_TRIGGER_FONT_SCALE, Dt as text, E as productListBlockDefinition, En as ACCORDION_SPACING_MAP, Et as stack, Fn as resolveRepeaterGridColumnFieldId, Ft as parseBlockIconValue, G as withApiBindings, Gt as eventReadinessQueryKeys, H as formDataSchema, Ht as augmentManifest, In as resolveRepeaterGridRowFieldId, It as createSdkSelectField, J as sectionHeaderLayoutNodes, Jt as eventDiscoveryFilterKeys, K as formCopyFragment, Kt as eventReadinessResultSchema, L as desktopOnlyDisplay, Ln as resolveRepeaterGridSpanFieldId, Lt as createSiteOptionSelectField, M as FEATURE_CARD_GENERATED_ICON_SIZE_PX, Mn as DEFAULT_MEDIA_FIELD_KINDS, Mt as cardListPresentationBindings, N as FEATURE_CARD_ICON_TREATMENTS, Nn as isAcceptedRepeaterGridSpan, Nt as cardListSectionActionFields, O as eventCalendarBlockDefinition, On as ACCORDION_TRIGGER_LETTER_SPACING, Ot as videoEmbed, Pn as parseRepeaterGridInteger, Pt as normalizeCardListContent, Q as sectionContainer, Qt as resolveEventScope, R as mobileOnlyDisplay, Rn as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Rt as normalizeSelectSource, S as giftingBlockDefinition, Sn as getAnchorClasses, St as props, T as productDetailBlockDefinition, Tn as ACCORDION_OPEN_ACCENT_THICKNESS, Tt as section, U as createBlockManifest, Ut as eventReadinessLoaderKey, V as formBlockDefinition, Vt as PUBLIC_DOWNLOAD_MEDIA_TYPES, W as formEmbedFragment, Wt as eventReadinessQuery, X as styledSection, Xt as eventScopeQuery, Y as resolveBackgroundColorValue, Yt as eventScopeLoaderParam, Z as styledContainer, Zt as eventScopeQueryKeys, _ as publicAppointmentLocationSchema, _n as layoutField, _t as headerSection, a as buildLoadedOfferingsPreviewListing, an as loadedReadinessFact, at as lookLeadSlotTransform, b as newsletterSignupBlockDefinition, bn as sectionStylesField, bt as link, cn as LOCATION_MAP_DEFAULTS, ct as lookSlot, dn as normalizeLocationMapSource, dt as bookingForm, en as galleryReadiness, et as buildFragmentDataLoaders, fn as resolveLocationMapLocation, ft as button, g as formatAppointmentPrice, gn as eventDisplayFields, gt as form, h as formatAppointmentLocation, hn as emptyStateField, ht as fileDownload, in as hiddenFromVisitors, it as lookCarouselRegionTransform, j as eventRegistrationBlockDefinition, jn as bindingSchema, jt as cardListPhotoNumberFields, k as eventListingBlockDefinition, kn as ICON_CONFIG, kt as when, ln as LOCATION_MAP_LIMITS, lt as accordionList, m as formatAppointmentDuration, mn as columnsField, mt as el, nn as testimonialsReadiness, nt as defineFragment, on as pageTemplateFromEntry, ot as lookQuoteLimitTransform, p as SectionNode, pn as cardStylingFields, pt as carousel, q as sectionHeaderFields, qt as eventWeekReadScope, rn as admitReadinessFacts, rt as cardListSectionAction, s as buildAppointmentServicesView, sn as unavailableReadinessFact, st as lookSkinSlotTransform, t as serverComponentRegistry, tn as teamReadiness, tt as composeFragments, un as normalizeLocationMapProps, ut as bind, v as publicAppointmentPricingSchema, vn as cardStylesField, vt as icon, w as cartBlockDefinition, wn as createButtonVariantField, wt as richText, x as sanitizeNewsletterSignupPublicContent, xn as BACKGROUND_POSITION_PRESET_VALUES, xt as media, y as offeringCourseSlotParents, yn as containerStylesField, yt as inline, z as teamMemberCardBiographyFallback, zn as linkSchema, zt as parseFieldDefinition } from "./registry.server-ClcfWpvM.mjs";
|
|
8
|
+
import { g as plainTextToInlineText, h as parseInlineTextFromUnknown, m as inlineTextToPlainText, p as coerceInlineTextWithFallback } from "./timetableModel-CtZiIj9q.mjs";
|
|
9
|
+
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";
|
|
10
10
|
import { D as parseThemeColorToken, E as parseColorTokenParts, a as createStandardButtonSurfacePolicy, i as buttonSizeNameSchema, s as unsafeAsOpaqueButtonColourToken, t as DEFAULT_VARIANT_ALIAS_ID, v as blockColorTokenNames } from "./types-DjWUR_O6.mjs";
|
|
11
|
-
import { _ as resolveSpacing, a as hasFixedFrameBackgroundMotion, b as runTransforms, 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, v as asPartialObject, y as createTransformRegistry } from "./boxStyleClassNames-
|
|
11
|
+
import { _ as resolveSpacing, a as hasFixedFrameBackgroundMotion, b as runTransforms, 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, v as asPartialObject, y as createTransformRegistry } from "./boxStyleClassNames-CNDLpT06.mjs";
|
|
12
12
|
import { C as parseThemeButtonVariantId, T as AFFORDANCE_SUPPRESS_CLASS, w as themeButtonSelector } from "./ThemedButton-DuaYtnvG.mjs";
|
|
13
13
|
import { t as NAV_DROPDOWN_CONTAINER_RAIL_CSS_RULES } from "./navDropdownSizing-CUjDrcIt.mjs";
|
|
14
|
-
import { i as eventHeaderSlotParents, n as resolveEventDetailsPresentation, r as lookPartShown } from "./view-
|
|
15
|
-
import { a as eventItemSlotParents, i as cardItemSlotParents } from "./EventItem-
|
|
16
|
-
import { s as monthSlotParents } from "./CalendarNavigationChevron-
|
|
14
|
+
import { i as eventHeaderSlotParents, n as resolveEventDetailsPresentation, r as lookPartShown } from "./view-CxUpgcM6.mjs";
|
|
15
|
+
import { a as eventItemSlotParents, i as cardItemSlotParents } from "./EventItem-C-mxXpX_.mjs";
|
|
16
|
+
import { s as monthSlotParents } from "./CalendarNavigationChevron-BPQU5Snc.mjs";
|
|
17
17
|
import { n as getCurrentResolveImageUrlContext, o as setContextResolveImageUrlContext, t as buildResolveImageUrlContext } from "./mediaContext-Fusweriw.mjs";
|
|
18
|
-
import { n as eventListSlotParents } from "./EventListing.view-
|
|
18
|
+
import { n as eventListSlotParents } from "./EventListing.view-CN7BjGgC.mjs";
|
|
19
19
|
import { r as themeRuntimeScopeProps, t as buildThemeDataAttrs } from "./themeScopeUtils-BAOw_fNA.mjs";
|
|
20
|
-
import { t as formatDate$1 } from "./formatDate-
|
|
20
|
+
import { t as formatDate$1 } from "./formatDate-Dp7POa9Y.mjs";
|
|
21
21
|
import { s as declarativeCarouselSlides } from "./carousel.shared-BFQ3kBEw.mjs";
|
|
22
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-
|
|
22
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-C32cRQ03.mjs";
|
|
23
23
|
import { t as resolveBlocksPageMediaContext } from "./mediaAssets-B99AP7ai.mjs";
|
|
24
24
|
import * as React$1 from "react";
|
|
25
25
|
import React from "react";
|
|
@@ -831,18 +831,6 @@ function requireThemeColorToken(value) {
|
|
|
831
831
|
return token;
|
|
832
832
|
}
|
|
833
833
|
//#endregion
|
|
834
|
-
//#region ../theme-core/src/header/rootPaint.ts
|
|
835
|
-
/** Detached branding needs protection even when the navigation has its own rail. */
|
|
836
|
-
function headerNeedsPhotoShade(header) {
|
|
837
|
-
return header.variant === "floating" && header.background?.type === "color" && header.background.color === "transparent" && (!header.container || (header.container.opacity ?? 1) < 1);
|
|
838
|
-
}
|
|
839
|
-
/** The nav container takes precedence when a floating header also has one. */
|
|
840
|
-
function headerRootPaint(header) {
|
|
841
|
-
const navContainerType = header?.navContainer?.type ?? "none";
|
|
842
|
-
if (navContainerType === "glass" || navContainerType === "pill") return "contained-nav";
|
|
843
|
-
return header?.variant === "floating" ? "overlay" : "own-surface";
|
|
844
|
-
}
|
|
845
|
-
//#endregion
|
|
846
834
|
//#region ../theme-core/src/cards/constants.ts
|
|
847
835
|
/**
|
|
848
836
|
* Corner style to border-radius value map for content-bearing card surfaces.
|
|
@@ -1565,6 +1553,497 @@ function resolveBlockDesignPlan(input) {
|
|
|
1565
1553
|
};
|
|
1566
1554
|
}
|
|
1567
1555
|
//#endregion
|
|
1556
|
+
//#region ../theme-core/src/site-styles/headerLayoutTypes.ts
|
|
1557
|
+
function deriveHeaderLogoShapeFromDimensions({ width, height }) {
|
|
1558
|
+
if (!width || !height) return "horizontal";
|
|
1559
|
+
const ratio = width / height;
|
|
1560
|
+
if (ratio > 1.4) return "horizontal";
|
|
1561
|
+
if (ratio < .8) return "tall";
|
|
1562
|
+
return "square";
|
|
1563
|
+
}
|
|
1564
|
+
//#endregion
|
|
1565
|
+
//#region ../theme-core/src/site-styles/logoBranding.ts
|
|
1566
|
+
const logoTextConfidenceValues = [
|
|
1567
|
+
"low",
|
|
1568
|
+
"medium",
|
|
1569
|
+
"high"
|
|
1570
|
+
];
|
|
1571
|
+
const logoAssetShapeValues = [
|
|
1572
|
+
"none",
|
|
1573
|
+
"horizontal",
|
|
1574
|
+
"square",
|
|
1575
|
+
"portrait",
|
|
1576
|
+
"tall"
|
|
1577
|
+
];
|
|
1578
|
+
const logoKindValues = [
|
|
1579
|
+
"mark",
|
|
1580
|
+
"wordmark",
|
|
1581
|
+
"lockup",
|
|
1582
|
+
"badge",
|
|
1583
|
+
"stacked-wordmark",
|
|
1584
|
+
"unknown"
|
|
1585
|
+
];
|
|
1586
|
+
const logoDensityValues = [
|
|
1587
|
+
"simple",
|
|
1588
|
+
"detailed",
|
|
1589
|
+
"unknown"
|
|
1590
|
+
];
|
|
1591
|
+
const logoContainsTextSchema = z.discriminatedUnion("kind", [
|
|
1592
|
+
z.object({
|
|
1593
|
+
kind: z.literal("contains-text"),
|
|
1594
|
+
confidence: z.enum(logoTextConfidenceValues),
|
|
1595
|
+
text: z.string().trim().min(1).max(200).optional()
|
|
1596
|
+
}),
|
|
1597
|
+
z.object({
|
|
1598
|
+
kind: z.literal("no-text"),
|
|
1599
|
+
confidence: z.enum(logoTextConfidenceValues)
|
|
1600
|
+
}),
|
|
1601
|
+
z.object({
|
|
1602
|
+
kind: z.literal("unknown"),
|
|
1603
|
+
reason: z.enum([
|
|
1604
|
+
"analysis-unavailable",
|
|
1605
|
+
"unsupported-file",
|
|
1606
|
+
"low-confidence"
|
|
1607
|
+
])
|
|
1608
|
+
})
|
|
1609
|
+
]);
|
|
1610
|
+
const logoAnalysisSourceSchema = z.discriminatedUnion("kind", [
|
|
1611
|
+
z.object({ kind: z.literal("none") }),
|
|
1612
|
+
z.object({
|
|
1613
|
+
kind: z.literal("deterministic"),
|
|
1614
|
+
reason: z.enum(["dimensions", "fallback"])
|
|
1615
|
+
}),
|
|
1616
|
+
z.object({
|
|
1617
|
+
kind: z.literal("llm"),
|
|
1618
|
+
model: z.literal("gpt-5.4-mini"),
|
|
1619
|
+
analyzedAt: z.string().trim().min(1).max(80).optional()
|
|
1620
|
+
}),
|
|
1621
|
+
z.object({ kind: z.literal("manual-override") })
|
|
1622
|
+
]);
|
|
1623
|
+
/** Failed preparation supplies no measured geometry; its synthetic square is not asset evidence. */
|
|
1624
|
+
function parseStoredLogoFacts(value) {
|
|
1625
|
+
const parsed = logoFactsSchema.safeParse(value);
|
|
1626
|
+
if (!parsed.success) return null;
|
|
1627
|
+
const facts = parsed.data;
|
|
1628
|
+
return facts.source.kind === "deterministic" && facts.source.reason === "fallback" ? null : facts;
|
|
1629
|
+
}
|
|
1630
|
+
const logoFactsSchema = z.object({
|
|
1631
|
+
shape: z.enum(logoAssetShapeValues),
|
|
1632
|
+
containsText: logoContainsTextSchema,
|
|
1633
|
+
kind: z.enum(logoKindValues),
|
|
1634
|
+
density: z.enum(logoDensityValues),
|
|
1635
|
+
source: logoAnalysisSourceSchema
|
|
1636
|
+
});
|
|
1637
|
+
const defaultNoLogoFacts = {
|
|
1638
|
+
shape: "none",
|
|
1639
|
+
containsText: {
|
|
1640
|
+
kind: "no-text",
|
|
1641
|
+
confidence: "high"
|
|
1642
|
+
},
|
|
1643
|
+
kind: "unknown",
|
|
1644
|
+
density: "unknown",
|
|
1645
|
+
source: { kind: "none" }
|
|
1646
|
+
};
|
|
1647
|
+
function deterministicLogoFactsForShape(shape) {
|
|
1648
|
+
if (shape === "none") return defaultNoLogoFacts;
|
|
1649
|
+
return {
|
|
1650
|
+
shape,
|
|
1651
|
+
containsText: {
|
|
1652
|
+
kind: "unknown",
|
|
1653
|
+
reason: "analysis-unavailable"
|
|
1654
|
+
},
|
|
1655
|
+
kind: "unknown",
|
|
1656
|
+
density: "unknown",
|
|
1657
|
+
source: {
|
|
1658
|
+
kind: "deterministic",
|
|
1659
|
+
reason: "dimensions"
|
|
1660
|
+
}
|
|
1661
|
+
};
|
|
1662
|
+
}
|
|
1663
|
+
function resolveBrandDisplay(mode, logoFacts) {
|
|
1664
|
+
if (logoFacts.shape === "none") return "title-only";
|
|
1665
|
+
switch (mode) {
|
|
1666
|
+
case "logo-only": return "logo-only";
|
|
1667
|
+
case "logo-plus-title": return "logo-plus-title";
|
|
1668
|
+
case "title-only": return "title-only";
|
|
1669
|
+
case "auto": return resolveAutoBrandDisplay(logoFacts);
|
|
1670
|
+
default: return assertNever$1(mode, "Unhandled brand display mode");
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
/** Evidence that the artwork already supplies the brand's readable identity. */
|
|
1674
|
+
function hasLogoTextEvidence(logoFacts) {
|
|
1675
|
+
return logoFacts.containsText.kind === "contains-text" || logoFacts.kind === "wordmark" || logoFacts.kind === "lockup" || logoFacts.kind === "badge" || logoFacts.kind === "stacked-wordmark";
|
|
1676
|
+
}
|
|
1677
|
+
function resolveAutoBrandDisplay(logoFacts) {
|
|
1678
|
+
return hasLogoTextEvidence(logoFacts) ? "logo-only" : "logo-plus-title";
|
|
1679
|
+
}
|
|
1680
|
+
//#endregion
|
|
1681
|
+
//#region ../theme-core/src/site-styles/headerLayoutCatalog.ts
|
|
1682
|
+
const titleOnlyLogoAccommodation = {
|
|
1683
|
+
pattern: "title-only",
|
|
1684
|
+
supportedShapes: [
|
|
1685
|
+
"none",
|
|
1686
|
+
"horizontal",
|
|
1687
|
+
"square",
|
|
1688
|
+
"portrait",
|
|
1689
|
+
"tall"
|
|
1690
|
+
],
|
|
1691
|
+
supportedTextPresence: [
|
|
1692
|
+
"contains-text",
|
|
1693
|
+
"no-text",
|
|
1694
|
+
"unknown"
|
|
1695
|
+
],
|
|
1696
|
+
supportedDisplayModes: ["title-only"],
|
|
1697
|
+
size: "compact"
|
|
1698
|
+
};
|
|
1699
|
+
const inlineWordmarkLogoAccommodation = {
|
|
1700
|
+
pattern: "inline-wordmark",
|
|
1701
|
+
supportedShapes: ["horizontal"],
|
|
1702
|
+
supportedTextPresence: [
|
|
1703
|
+
"contains-text",
|
|
1704
|
+
"no-text",
|
|
1705
|
+
"unknown"
|
|
1706
|
+
],
|
|
1707
|
+
supportedDisplayModes: ["logo-only"],
|
|
1708
|
+
size: "standard",
|
|
1709
|
+
maxDensity: "detailed"
|
|
1710
|
+
};
|
|
1711
|
+
const inlineMarkWithTitleLogoAccommodation = {
|
|
1712
|
+
pattern: "inline-mark-with-title",
|
|
1713
|
+
supportedShapes: [
|
|
1714
|
+
"horizontal",
|
|
1715
|
+
"square",
|
|
1716
|
+
"portrait",
|
|
1717
|
+
"tall"
|
|
1718
|
+
],
|
|
1719
|
+
supportedTextPresence: [
|
|
1720
|
+
"contains-text",
|
|
1721
|
+
"no-text",
|
|
1722
|
+
"unknown"
|
|
1723
|
+
],
|
|
1724
|
+
supportedDisplayModes: ["logo-plus-title"],
|
|
1725
|
+
size: "compact",
|
|
1726
|
+
maxDensity: "detailed"
|
|
1727
|
+
};
|
|
1728
|
+
const logoPlateAccommodation = {
|
|
1729
|
+
pattern: "logo-plate",
|
|
1730
|
+
supportedShapes: [
|
|
1731
|
+
"square",
|
|
1732
|
+
"portrait",
|
|
1733
|
+
"tall"
|
|
1734
|
+
],
|
|
1735
|
+
supportedTextPresence: [
|
|
1736
|
+
"contains-text",
|
|
1737
|
+
"no-text",
|
|
1738
|
+
"unknown"
|
|
1739
|
+
],
|
|
1740
|
+
supportedDisplayModes: ["logo-only"],
|
|
1741
|
+
size: "display",
|
|
1742
|
+
providesBacking: true
|
|
1743
|
+
};
|
|
1744
|
+
const centeredBadgeAccommodation = {
|
|
1745
|
+
pattern: "centered-badge",
|
|
1746
|
+
supportedShapes: [
|
|
1747
|
+
"square",
|
|
1748
|
+
"portrait",
|
|
1749
|
+
"tall"
|
|
1750
|
+
],
|
|
1751
|
+
supportedTextPresence: [
|
|
1752
|
+
"contains-text",
|
|
1753
|
+
"no-text",
|
|
1754
|
+
"unknown"
|
|
1755
|
+
],
|
|
1756
|
+
supportedDisplayModes: ["logo-only"],
|
|
1757
|
+
size: "display",
|
|
1758
|
+
providesBacking: true
|
|
1759
|
+
};
|
|
1760
|
+
const popoutBadgeAccommodation = {
|
|
1761
|
+
pattern: "popout-badge",
|
|
1762
|
+
supportedShapes: [
|
|
1763
|
+
"square",
|
|
1764
|
+
"portrait",
|
|
1765
|
+
"tall"
|
|
1766
|
+
],
|
|
1767
|
+
supportedTextPresence: [
|
|
1768
|
+
"contains-text",
|
|
1769
|
+
"no-text",
|
|
1770
|
+
"unknown"
|
|
1771
|
+
],
|
|
1772
|
+
supportedDisplayModes: ["logo-only"],
|
|
1773
|
+
size: "display",
|
|
1774
|
+
providesBacking: true
|
|
1775
|
+
};
|
|
1776
|
+
const centeredMastheadAccommodation = {
|
|
1777
|
+
pattern: "centered-masthead",
|
|
1778
|
+
supportedShapes: [
|
|
1779
|
+
"square",
|
|
1780
|
+
"portrait",
|
|
1781
|
+
"tall"
|
|
1782
|
+
],
|
|
1783
|
+
supportedTextPresence: [
|
|
1784
|
+
"contains-text",
|
|
1785
|
+
"no-text",
|
|
1786
|
+
"unknown"
|
|
1787
|
+
],
|
|
1788
|
+
supportedDisplayModes: ["logo-only"],
|
|
1789
|
+
size: "display",
|
|
1790
|
+
providesBacking: true
|
|
1791
|
+
};
|
|
1792
|
+
const unbackedOverlayLogoAccommodation = {
|
|
1793
|
+
pattern: "inline-logo-only",
|
|
1794
|
+
supportedShapes: ["square"],
|
|
1795
|
+
supportedTextPresence: [
|
|
1796
|
+
"contains-text",
|
|
1797
|
+
"no-text",
|
|
1798
|
+
"unknown"
|
|
1799
|
+
],
|
|
1800
|
+
supportedDisplayModes: ["logo-only"],
|
|
1801
|
+
size: "compact",
|
|
1802
|
+
providesBacking: false
|
|
1803
|
+
};
|
|
1804
|
+
const inlineClassicLogoAccommodations = [
|
|
1805
|
+
titleOnlyLogoAccommodation,
|
|
1806
|
+
inlineWordmarkLogoAccommodation,
|
|
1807
|
+
inlineMarkWithTitleLogoAccommodation,
|
|
1808
|
+
popoutBadgeAccommodation,
|
|
1809
|
+
logoPlateAccommodation
|
|
1810
|
+
];
|
|
1811
|
+
const centeredLogoAccommodations = [
|
|
1812
|
+
titleOnlyLogoAccommodation,
|
|
1813
|
+
inlineWordmarkLogoAccommodation,
|
|
1814
|
+
inlineMarkWithTitleLogoAccommodation,
|
|
1815
|
+
centeredMastheadAccommodation,
|
|
1816
|
+
centeredBadgeAccommodation
|
|
1817
|
+
];
|
|
1818
|
+
const overlayLogoAccommodations = [
|
|
1819
|
+
titleOnlyLogoAccommodation,
|
|
1820
|
+
inlineWordmarkLogoAccommodation,
|
|
1821
|
+
inlineMarkWithTitleLogoAccommodation,
|
|
1822
|
+
unbackedOverlayLogoAccommodation
|
|
1823
|
+
];
|
|
1824
|
+
const allCuratedLogoAccommodations = [
|
|
1825
|
+
...inlineClassicLogoAccommodations,
|
|
1826
|
+
...centeredLogoAccommodations,
|
|
1827
|
+
...overlayLogoAccommodations
|
|
1828
|
+
];
|
|
1829
|
+
/**
|
|
1830
|
+
* Whether an accommodation pattern draws its own backing behind the logo.
|
|
1831
|
+
* Derived from the catalogue above rather than restated, so a new backing
|
|
1832
|
+
* accommodation cannot drift out of sync with this answer. Patterns declared in
|
|
1833
|
+
* `LogoAccommodationPattern` but not offered by any layout resolve to `false`,
|
|
1834
|
+
* which is the honest answer: nothing can select them.
|
|
1835
|
+
*/
|
|
1836
|
+
const backingLogoAccommodationPatterns = new Set(allCuratedLogoAccommodations.filter((option) => option.providesBacking === true).map((option) => option.pattern));
|
|
1837
|
+
function logoAccommodationProvidesBacking(pattern) {
|
|
1838
|
+
return backingLogoAccommodationPatterns.has(pattern);
|
|
1839
|
+
}
|
|
1840
|
+
/**
|
|
1841
|
+
* The single answer to "what shape is this site's logo" (#1318 Phase 4b).
|
|
1842
|
+
*
|
|
1843
|
+
* The server and the public frontend each had their own copy of this, and they
|
|
1844
|
+
* disagreed on the one case that matters: a logo whose dimensions are unknown.
|
|
1845
|
+
* The server assumed `horizontal`; the frontend asked whether the persisted
|
|
1846
|
+
* accommodation brings its own backing and answered `square` if it does. The
|
|
1847
|
+
* richer rule is the correct one — a badge or masthead accommodation is
|
|
1848
|
+
* evidence about the asset that raw dimensions would otherwise supply — and it
|
|
1849
|
+
* reduces to `horizontal` whenever there is no backing, so it subsumes the
|
|
1850
|
+
* server's rule rather than contradicting it. The backing question goes through
|
|
1851
|
+
* `logoAccommodationProvidesBacking`, so the pattern list has one home.
|
|
1852
|
+
*/
|
|
1853
|
+
function deriveHeaderLogoShape({ asset, accommodation }) {
|
|
1854
|
+
if (!asset) return "text-only";
|
|
1855
|
+
if (!asset.width || !asset.height) return accommodation !== void 0 && logoAccommodationProvidesBacking(accommodation) ? "square" : "horizontal";
|
|
1856
|
+
return deriveHeaderLogoShapeFromDimensions(asset);
|
|
1857
|
+
}
|
|
1858
|
+
/**
|
|
1859
|
+
* The site's logo as the header pipeline sees it. Stored asset facts win; older
|
|
1860
|
+
* assets without facts use the shape-only context with unknown text presence.
|
|
1861
|
+
* Geometry still comes from the two database values
|
|
1862
|
+
* that describe it: the asset (or its absence) and the accommodation the row
|
|
1863
|
+
* currently persists, which is evidence about the asset when its dimensions are
|
|
1864
|
+
* missing.
|
|
1865
|
+
*
|
|
1866
|
+
* One definition, shared by every shell that has to answer it — the dashboard's
|
|
1867
|
+
* `loadHeaderLogoContextForSite`, the public frontend, and the Phase 4c repair
|
|
1868
|
+
* generator — because a second copy is a second answer to "what shape is this
|
|
1869
|
+
* site's logo", and the two former copies disagreed on exactly the case this
|
|
1870
|
+
* one is careful about (#1318 Phase 4b/4c).
|
|
1871
|
+
*/
|
|
1872
|
+
function headerLogoShapeContext(input) {
|
|
1873
|
+
const facts = input.asset ? parseStoredLogoFacts(input.asset.logoFacts) : null;
|
|
1874
|
+
return {
|
|
1875
|
+
...facts ? {
|
|
1876
|
+
kind: "facts",
|
|
1877
|
+
facts
|
|
1878
|
+
} : {
|
|
1879
|
+
kind: "shape",
|
|
1880
|
+
shape: deriveHeaderLogoShape(input)
|
|
1881
|
+
},
|
|
1882
|
+
...input.brand?.brandDisplay === void 0 ? {} : { brandDisplayMode: input.brand.brandDisplay },
|
|
1883
|
+
...input.brand?.logoSize === void 0 ? {} : { sizePolicy: input.brand.logoSize }
|
|
1884
|
+
};
|
|
1885
|
+
}
|
|
1886
|
+
function logoFactsForHeaderContext(logo) {
|
|
1887
|
+
if (logo.kind === "facts") return logo.facts;
|
|
1888
|
+
switch (logo.shape) {
|
|
1889
|
+
case "none":
|
|
1890
|
+
case "text-only": return deterministicLogoFactsForShape("none");
|
|
1891
|
+
case "horizontal":
|
|
1892
|
+
case "square":
|
|
1893
|
+
case "tall": return deterministicLogoFactsForShape(logo.shape);
|
|
1894
|
+
default: return assertNever$1(logo.shape, "Unhandled header logo shape");
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1897
|
+
const headerLayoutCatalog = defineExactCatalog()([
|
|
1898
|
+
{
|
|
1899
|
+
id: asHeaderLayoutId("classic"),
|
|
1900
|
+
label: "Classic",
|
|
1901
|
+
description: "Logo and navigation in one practical horizontal row.",
|
|
1902
|
+
variant: "classic",
|
|
1903
|
+
defaultPositioning: "sticky",
|
|
1904
|
+
shrinkOnScroll: false,
|
|
1905
|
+
logoAccommodations: inlineClassicLogoAccommodations,
|
|
1906
|
+
openingRequirement: "none"
|
|
1907
|
+
},
|
|
1908
|
+
{
|
|
1909
|
+
id: asHeaderLayoutId("centered"),
|
|
1910
|
+
label: "Centered",
|
|
1911
|
+
description: "Logo centered above a balanced navigation row.",
|
|
1912
|
+
variant: "centered",
|
|
1913
|
+
defaultPositioning: "static",
|
|
1914
|
+
shrinkOnScroll: false,
|
|
1915
|
+
logoAccommodations: centeredLogoAccommodations,
|
|
1916
|
+
openingRequirement: "none"
|
|
1917
|
+
},
|
|
1918
|
+
{
|
|
1919
|
+
id: asHeaderLayoutId("floating"),
|
|
1920
|
+
label: "Floating",
|
|
1921
|
+
description: "Detached header chrome that sits over the opening section.",
|
|
1922
|
+
variant: "floating",
|
|
1923
|
+
defaultPositioning: "sticky",
|
|
1924
|
+
shrinkOnScroll: true,
|
|
1925
|
+
logoAccommodations: overlayLogoAccommodations,
|
|
1926
|
+
openingRequirement: "requires-image-hero-with-contrast-overlay"
|
|
1927
|
+
}
|
|
1928
|
+
]);
|
|
1929
|
+
function supportedLayouts(ids) {
|
|
1930
|
+
return ids.map(asHeaderLayoutId);
|
|
1931
|
+
}
|
|
1932
|
+
const headerStyleCatalog = defineExactCatalog()([
|
|
1933
|
+
{
|
|
1934
|
+
id: asHeaderStyleId("minimal"),
|
|
1935
|
+
label: "Minimal",
|
|
1936
|
+
description: "Quiet surface with simple color-change navigation.",
|
|
1937
|
+
supportedLayoutIds: supportedLayouts(["classic", "centered"])
|
|
1938
|
+
},
|
|
1939
|
+
{
|
|
1940
|
+
id: asHeaderStyleId("fine-line"),
|
|
1941
|
+
label: "Seamless",
|
|
1942
|
+
description: "Borderless surface with underline hover for a quieter page transition.",
|
|
1943
|
+
supportedLayoutIds: supportedLayouts(["classic", "centered"])
|
|
1944
|
+
},
|
|
1945
|
+
{
|
|
1946
|
+
id: asHeaderStyleId("soft-bar"),
|
|
1947
|
+
label: "Soft Bar",
|
|
1948
|
+
description: "Soft tinted surface with gentle pill hover states.",
|
|
1949
|
+
supportedLayoutIds: supportedLayouts(["classic", "centered"])
|
|
1950
|
+
},
|
|
1951
|
+
{
|
|
1952
|
+
id: asHeaderStyleId("pill-nav"),
|
|
1953
|
+
label: "Pill Nav",
|
|
1954
|
+
description: "A calm pill navigation rail over a neutral header.",
|
|
1955
|
+
supportedLayoutIds: supportedLayouts(["classic", "centered"])
|
|
1956
|
+
},
|
|
1957
|
+
{
|
|
1958
|
+
id: asHeaderStyleId("brand-bar"),
|
|
1959
|
+
label: "Brand Bar",
|
|
1960
|
+
description: "Solid brand surface with high-contrast navigation.",
|
|
1961
|
+
supportedLayoutIds: supportedLayouts(["classic", "centered"])
|
|
1962
|
+
},
|
|
1963
|
+
{
|
|
1964
|
+
id: asHeaderStyleId("brand-underline"),
|
|
1965
|
+
label: "Brand Underline",
|
|
1966
|
+
description: "Brand surface with underline-grow navigation.",
|
|
1967
|
+
supportedLayoutIds: supportedLayouts(["classic"])
|
|
1968
|
+
},
|
|
1969
|
+
{
|
|
1970
|
+
id: asHeaderStyleId("brand-pill"),
|
|
1971
|
+
label: "Brand Pill",
|
|
1972
|
+
description: "Solid brand surface with rounded active and hover states.",
|
|
1973
|
+
supportedLayoutIds: supportedLayouts([
|
|
1974
|
+
"classic",
|
|
1975
|
+
"centered",
|
|
1976
|
+
"floating"
|
|
1977
|
+
])
|
|
1978
|
+
},
|
|
1979
|
+
{
|
|
1980
|
+
id: asHeaderStyleId("brand-capsule"),
|
|
1981
|
+
label: "Brand Capsule",
|
|
1982
|
+
description: "Solid brand chrome designed as a floating capsule, with quiet-caps nav, a soft pill active state, and an inverted CTA pill.",
|
|
1983
|
+
supportedLayoutIds: supportedLayouts(["classic"])
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
id: asHeaderStyleId("serif-line"),
|
|
1987
|
+
label: "Serif Line",
|
|
1988
|
+
description: "Typographic logo treatment with understated underline navigation.",
|
|
1989
|
+
supportedLayoutIds: supportedLayouts(["classic", "centered"])
|
|
1990
|
+
},
|
|
1991
|
+
{
|
|
1992
|
+
id: asHeaderStyleId("flat-tabs"),
|
|
1993
|
+
label: "Flat Tabs",
|
|
1994
|
+
description: "Flat block hover and active states with a Swiss utility feel.",
|
|
1995
|
+
supportedLayoutIds: supportedLayouts(["classic", "centered"])
|
|
1996
|
+
},
|
|
1997
|
+
{
|
|
1998
|
+
id: asHeaderStyleId("glass"),
|
|
1999
|
+
label: "Glass",
|
|
2000
|
+
description: "Translucent chrome with frosted navigation backing.",
|
|
2001
|
+
supportedLayoutIds: supportedLayouts(["floating"])
|
|
2002
|
+
},
|
|
2003
|
+
{
|
|
2004
|
+
id: asHeaderStyleId("minimal-surface"),
|
|
2005
|
+
label: "Clear Split",
|
|
2006
|
+
description: "Floating logo with transparent navigation and no shared shell.",
|
|
2007
|
+
supportedLayoutIds: supportedLayouts(["floating"])
|
|
2008
|
+
},
|
|
2009
|
+
{
|
|
2010
|
+
id: asHeaderStyleId("soft-shell"),
|
|
2011
|
+
label: "Soft Shell",
|
|
2012
|
+
description: "Floating rounded shell with soft pill navigation states.",
|
|
2013
|
+
supportedLayoutIds: supportedLayouts(["floating"])
|
|
2014
|
+
},
|
|
2015
|
+
{
|
|
2016
|
+
id: asHeaderStyleId("split-glass"),
|
|
2017
|
+
label: "Split Glass",
|
|
2018
|
+
description: "Logo floats independently while the navigation sits in a glass rail.",
|
|
2019
|
+
supportedLayoutIds: supportedLayouts(["floating"])
|
|
2020
|
+
},
|
|
2021
|
+
{
|
|
2022
|
+
id: asHeaderStyleId("split-pill"),
|
|
2023
|
+
label: "Split Pill",
|
|
2024
|
+
description: "Logo floats independently with a soft pill-backed navigation rail.",
|
|
2025
|
+
supportedLayoutIds: supportedLayouts(["floating"])
|
|
2026
|
+
}
|
|
2027
|
+
]);
|
|
2028
|
+
new Map(headerLayoutCatalog.map((layout) => [layout.id, layout]));
|
|
2029
|
+
new Map(headerStyleCatalog.map((style) => [style.id, style]));
|
|
2030
|
+
//#endregion
|
|
2031
|
+
//#region ../theme-core/src/header/rootPaint.ts
|
|
2032
|
+
/** Detached branding needs protection even when the navigation has its own rail. */
|
|
2033
|
+
function headerNeedsPhotoShade(header) {
|
|
2034
|
+
return header.variant === "floating" && header.background?.type === "color" && header.background.color === "transparent" && (!header.container || (header.container.opacity ?? 1) < 1);
|
|
2035
|
+
}
|
|
2036
|
+
/** The nav container takes precedence when a floating header also has one. */
|
|
2037
|
+
function headerRootPaint(header) {
|
|
2038
|
+
const navContainerType = header?.navContainer?.type ?? "none";
|
|
2039
|
+
if (navContainerType === "glass" || navContainerType === "pill") return "contained-nav";
|
|
2040
|
+
return header?.variant === "floating" ? "overlay" : "own-surface";
|
|
2041
|
+
}
|
|
2042
|
+
/** The root is transparent for detached chrome or an explicitly transparent bar. */
|
|
2043
|
+
function headerRootIsTransparent(header) {
|
|
2044
|
+
return headerRootPaint(header) !== "own-surface" || header?.background?.type === "color" && header.background.color === "transparent";
|
|
2045
|
+
}
|
|
2046
|
+
//#endregion
|
|
1568
2047
|
//#region ../theme-core/src/site-styles/siteChromeNavPreferences.ts
|
|
1569
2048
|
/**
|
|
1570
2049
|
* Applies the user's nav font-role/size overrides on top of a style-resolved
|
|
@@ -2858,6 +3337,18 @@ function transparentHeaderForegroundInput(header, palette) {
|
|
|
2858
3337
|
return authoredTransparentHeaderForegroundInput(header, palette);
|
|
2859
3338
|
}
|
|
2860
3339
|
function authoredTransparentHeaderForegroundInput(header, palette) {
|
|
3340
|
+
const text = headerLeafTextColor(header);
|
|
3341
|
+
const links = authoredHeaderLinkForeground(header, palette);
|
|
3342
|
+
const style = effectiveHeaderNavLinkStyle(header);
|
|
3343
|
+
return {
|
|
3344
|
+
text: rgbColorValue(text),
|
|
3345
|
+
link: rgbColorValue(links.link),
|
|
3346
|
+
linkHover: rgbColorValue(links.linkHover),
|
|
3347
|
+
hoverDecoration: navLinkOwnsUnderline(style) ? "initial" : links.hoverDecoration
|
|
3348
|
+
};
|
|
3349
|
+
}
|
|
3350
|
+
/** The token decision behind transparent-header CSS, also read by effect measurements. */
|
|
3351
|
+
function authoredHeaderLinkForeground(header, palette) {
|
|
2861
3352
|
const text = headerLeafTextColor(header);
|
|
2862
3353
|
const style = effectiveHeaderNavLinkStyle(header);
|
|
2863
3354
|
const link = style?.colorToken ?? text;
|
|
@@ -2870,10 +3361,9 @@ function authoredTransparentHeaderForegroundInput(header, palette) {
|
|
|
2870
3361
|
backdrops: null
|
|
2871
3362
|
});
|
|
2872
3363
|
return {
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
hoverDecoration: navLinkOwnsUnderline(style) ? "initial" : hover.decoration
|
|
3364
|
+
link,
|
|
3365
|
+
linkHover: hover.token,
|
|
3366
|
+
hoverDecoration: hover.decoration
|
|
2877
3367
|
};
|
|
2878
3368
|
}
|
|
2879
3369
|
//#endregion
|
|
@@ -3132,64 +3622,41 @@ function certified(states) {
|
|
|
3132
3622
|
}
|
|
3133
3623
|
//#endregion
|
|
3134
3624
|
//#region ../theme-core/src/footer/footerForegrounds.ts
|
|
3135
|
-
|
|
3625
|
+
const defaultMainPaint = { ground: "surface" };
|
|
3626
|
+
/** The main ground: the footer's own, which the root paints and every unpainted area shows. */
|
|
3627
|
+
function footerMainPaint(footer) {
|
|
3628
|
+
return footer?.bands?.main ?? defaultMainPaint;
|
|
3629
|
+
}
|
|
3630
|
+
/** A side area's own paint, or null when it sits on the main ground under a rule. */
|
|
3631
|
+
function footerSideBandPaint(footer, band) {
|
|
3632
|
+
return footer?.bands?.[band] ?? null;
|
|
3633
|
+
}
|
|
3634
|
+
/** The footer's main ground and the foreground contract certified on it. */
|
|
3136
3635
|
function resolveFooterRootForeground(footer, palette, proseHoverCandidate) {
|
|
3137
|
-
return resolveSurfaceForeground(
|
|
3636
|
+
return resolveSurfaceForeground({
|
|
3138
3637
|
type: "color",
|
|
3139
|
-
color:
|
|
3638
|
+
color: footerMainPaint(footer).ground
|
|
3140
3639
|
}, palette, footerForegroundCandidates(footer, proseHoverCandidate), { compositeBase: "background" });
|
|
3141
3640
|
}
|
|
3142
|
-
function resolveFooterBottomBarPaint(footer, palette) {
|
|
3143
|
-
const bar = footer.bottomBar;
|
|
3144
|
-
if (!bar) return { kind: "inherits" };
|
|
3145
|
-
const root = resolveFooterRootForeground(footer, palette);
|
|
3146
|
-
const ground = root.kind === "known" && root.provenance.kind === "measured" ? root.provenance.backdropHex : null;
|
|
3147
|
-
return bar.background?.type === "color" ? {
|
|
3148
|
-
kind: "surface",
|
|
3149
|
-
foreground: barSurfaceForeground(footer, bar.background, ground, palette)
|
|
3150
|
-
} : barTextPaint(footer, root, ground, palette);
|
|
3151
|
-
}
|
|
3152
|
-
/** A bar with its own colour owns a contract, composited over the footer's measured ground. */
|
|
3153
|
-
function barSurfaceForeground(footer, background, ground, palette) {
|
|
3154
|
-
const bar = footer.bottomBar;
|
|
3155
|
-
return resolveSurfaceForeground(background, palette, {
|
|
3156
|
-
text: bar?.textColor,
|
|
3157
|
-
link: footer.bottomTextLinkStyle?.colorToken ?? bar?.textColor,
|
|
3158
|
-
linkHover: footer.bottomTextLinkStyle?.hoverColorToken
|
|
3159
|
-
}, { compositeBase: ground });
|
|
3160
|
-
}
|
|
3161
|
-
/** A bar without its own colour paints its declared text on the footer's ground. */
|
|
3162
|
-
function barTextPaint(footer, root, ground, palette) {
|
|
3163
|
-
const declared = footer.bottomBar?.textColor;
|
|
3164
|
-
if (footer.background?.contentOwner === "site-chrome-editor" || !declared) return { kind: "inherits" };
|
|
3165
|
-
if (!ground) return {
|
|
3166
|
-
kind: "unmeasured",
|
|
3167
|
-
declared
|
|
3168
|
-
};
|
|
3169
|
-
return {
|
|
3170
|
-
kind: "ink",
|
|
3171
|
-
declared,
|
|
3172
|
-
paint: certifyPaint("footer bottom bar text", paintedInk(declared, root), contrastThresholdByPolicy["body-aa"], ground, { palette })
|
|
3173
|
-
};
|
|
3174
|
-
}
|
|
3175
3641
|
/**
|
|
3176
|
-
*
|
|
3177
|
-
*
|
|
3642
|
+
* A painted side area's own foreground contract, composited over the main
|
|
3643
|
+
* ground; null when the area is unpainted and the main contract carries on.
|
|
3644
|
+
* The base's links try the legal link colour first.
|
|
3178
3645
|
*/
|
|
3179
|
-
function
|
|
3180
|
-
const
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
const
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3646
|
+
function resolveFooterSideBandForeground(footer, band, palette, proseHoverCandidate) {
|
|
3647
|
+
const paint = footerSideBandPaint(footer, band);
|
|
3648
|
+
if (!paint) return null;
|
|
3649
|
+
const root = resolveFooterRootForeground(footer, palette, proseHoverCandidate);
|
|
3650
|
+
const mainGround = root.kind === "known" && root.provenance.kind === "measured" ? root.provenance.backdropHex : null;
|
|
3651
|
+
const legalLinks = band === "base" ? footer?.bottomTextLinkStyle : void 0;
|
|
3652
|
+
return resolveSurfaceForeground({
|
|
3653
|
+
type: "color",
|
|
3654
|
+
color: paint.ground
|
|
3655
|
+
}, palette, {
|
|
3656
|
+
text: paint.textColor,
|
|
3657
|
+
link: legalLinks?.colorToken ?? paint.textColor,
|
|
3658
|
+
linkHover: legalLinks ? legalLinks.hoverColorToken : footerForegroundCandidates(footer, proseHoverCandidate).linkHover
|
|
3659
|
+
}, { compositeBase: mainGround });
|
|
3193
3660
|
}
|
|
3194
3661
|
//#endregion
|
|
3195
3662
|
//#region ../theme-core/src/header/dropdownSurface.ts
|
|
@@ -4790,6 +5257,23 @@ function generateCheckableCss(input) {
|
|
|
4790
5257
|
].join("\n\n");
|
|
4791
5258
|
}
|
|
4792
5259
|
//#endregion
|
|
5260
|
+
//#region ../theme-core/src/inputs/inputEdge.ts
|
|
5261
|
+
/**
|
|
5262
|
+
* Field edges and errors as properties of the field itself (#1676). Declared on
|
|
5263
|
+
* the field, the control ink resolves against the surface the field sits on,
|
|
5264
|
+
* and arrangement CSS can read both without knowing the theme's tokens.
|
|
5265
|
+
*/
|
|
5266
|
+
const INPUT_EDGE_COLOR_VAR = "--rb-input-edge-color";
|
|
5267
|
+
const INPUT_ERROR_BORDER_COLOR_VAR = "--rb-input-error-border-color";
|
|
5268
|
+
/**
|
|
5269
|
+
* The style's own border colour, held at 3:1 against the surface where one is
|
|
5270
|
+
* published. A border drawn from another token keeps that token as it is.
|
|
5271
|
+
*/
|
|
5272
|
+
function inputEdgeColorValue(borderColorToken) {
|
|
5273
|
+
const own = rgbColorValue(borderColorToken);
|
|
5274
|
+
return borderColorToken === "border" ? surfaceInkValue("control", own) : own;
|
|
5275
|
+
}
|
|
5276
|
+
//#endregion
|
|
4793
5277
|
//#region ../theme-core/src/inputs/inputGroup.ts
|
|
4794
5278
|
/**
|
|
4795
5279
|
* Input group: a field and an action (usually a themed button) sharing one
|
|
@@ -4901,10 +5385,12 @@ function generateInputCss({ themeId, theme, inputSystem }) {
|
|
|
4901
5385
|
baseInputRules.push(`color: ${rgbColorValue(inputSystem.base.textColorToken)}`);
|
|
4902
5386
|
const borderPx = parseBorderWidth(inputSystem.base.border.widthClass);
|
|
4903
5387
|
const borderStyle = inputSystem.base.border.style ?? "all";
|
|
5388
|
+
baseInputRules.push(`${INPUT_EDGE_COLOR_VAR}: ${inputEdgeColorValue(inputSystem.base.border.colorToken)}`);
|
|
5389
|
+
baseInputRules.push(`${INPUT_ERROR_BORDER_COLOR_VAR}: ${rgbColorValue(inputSystem.error.borderColorToken)}`);
|
|
4904
5390
|
if (borderStyle === "underline") {
|
|
4905
5391
|
baseInputRules.push("border: none");
|
|
4906
|
-
baseInputRules.push(`border-bottom: ${borderPx} solid ${
|
|
4907
|
-
} else baseInputRules.push(`border: ${borderPx} solid ${
|
|
5392
|
+
baseInputRules.push(`border-bottom: ${borderPx} solid var(${INPUT_EDGE_COLOR_VAR})`);
|
|
5393
|
+
} else baseInputRules.push(`border: ${borderPx} solid var(${INPUT_EDGE_COLOR_VAR})`);
|
|
4908
5394
|
if (borderStyle === "underline") baseInputRules.push("border-radius: 0");
|
|
4909
5395
|
else {
|
|
4910
5396
|
const borderRadius = CORNER_MAP$1[inputSystem.base.corners ?? theme.corners];
|
|
@@ -4967,7 +5453,7 @@ function generateInputCss({ themeId, theme, inputSystem }) {
|
|
|
4967
5453
|
`${rootSelector} ${INPUT_GROUP_ERROR_SELECTOR}`
|
|
4968
5454
|
];
|
|
4969
5455
|
const errorRules = [];
|
|
4970
|
-
errorRules.push(`border-color: ${
|
|
5456
|
+
errorRules.push(`border-color: var(${INPUT_ERROR_BORDER_COLOR_VAR})`);
|
|
4971
5457
|
errorRules.push(`color: ${rgbColorValue(inputSystem.error.textColorToken)}`);
|
|
4972
5458
|
const disabledSelectors = [
|
|
4973
5459
|
`${inputSelector}:disabled`,
|
|
@@ -4982,7 +5468,7 @@ function generateInputCss({ themeId, theme, inputSystem }) {
|
|
|
4982
5468
|
const checkableCss = generateCheckableCss({
|
|
4983
5469
|
root: rootSelector,
|
|
4984
5470
|
borderWidth: borderPx,
|
|
4985
|
-
borderColor:
|
|
5471
|
+
borderColor: inputEdgeColorValue(inputSystem.base.border.colorToken),
|
|
4986
5472
|
background: inputBackgroundValue(inputSystem.base.background),
|
|
4987
5473
|
corners: inputSystem.base.corners ?? theme.corners,
|
|
4988
5474
|
accentToken: inputSystem.focus.borderColorToken ?? inputSystem.focus.ringColorToken,
|
|
@@ -5438,6 +5924,239 @@ function buildHeaderSurfaceRules(header, tokens) {
|
|
|
5438
5924
|
};
|
|
5439
5925
|
}
|
|
5440
5926
|
//#endregion
|
|
5927
|
+
//#region ../theme-core/src/navigation/effectContrast.ts
|
|
5928
|
+
/** Only a known solid ground and known ink can justify a runtime correction. */
|
|
5929
|
+
function decideNavEffectContrast(paint, ink, request) {
|
|
5930
|
+
if (paint === null || ink === null) return { kind: "unchanged" };
|
|
5931
|
+
return request.effect === "gradient-text" ? decideGradient(paint, ink, request) : decideOpacity(paint, ink, request.option);
|
|
5932
|
+
}
|
|
5933
|
+
function decideGradient(paint, ink, request) {
|
|
5934
|
+
if (request.option.length === 0 || request.option.some((stop) => stop === null)) return { kind: "unchanged" };
|
|
5935
|
+
const threshold = request.state === "hover" ? HOVER_TEXT_THRESHOLD : contrastThresholdByPolicy["body-aa"];
|
|
5936
|
+
if (request.option.every((stop) => stop !== null && contrastRatio(stop, paint) >= threshold)) return { kind: "gradient" };
|
|
5937
|
+
return { kind: inkContrast(ink, 1, paint) >= threshold ? "plain" : "unchanged" };
|
|
5938
|
+
}
|
|
5939
|
+
function decideOpacity(paint, ink, authored) {
|
|
5940
|
+
const passes = (opacity) => inkContrast(ink, opacity, paint) >= HOVER_TEXT_THRESHOLD;
|
|
5941
|
+
if (!passes(1)) return { kind: "unchanged" };
|
|
5942
|
+
return {
|
|
5943
|
+
kind: "opacity",
|
|
5944
|
+
opacity: passes(authored) ? authored : opacityFloor(passes, 0, 1, 24)
|
|
5945
|
+
};
|
|
5946
|
+
}
|
|
5947
|
+
function inkContrast(ink, opacity, paint) {
|
|
5948
|
+
return contrastRatio(compositeHex(ink.hex, ink.opacity * opacity, paint), paint);
|
|
5949
|
+
}
|
|
5950
|
+
/** Keep the passing end of the search so rounding never lowers the floor. */
|
|
5951
|
+
function opacityFloor(passes, low, high, steps) {
|
|
5952
|
+
if (steps === 0) return high;
|
|
5953
|
+
const midpoint = (low + high) / 2;
|
|
5954
|
+
return passes(midpoint) ? opacityFloor(passes, low, midpoint, steps - 1) : opacityFloor(passes, midpoint, high, steps - 1);
|
|
5955
|
+
}
|
|
5956
|
+
//#endregion
|
|
5957
|
+
//#region ../theme-core/src/navigation/renderedNavEffects.ts
|
|
5958
|
+
const NAV_RENDERED_STATES = [
|
|
5959
|
+
"rest",
|
|
5960
|
+
"hover",
|
|
5961
|
+
"current",
|
|
5962
|
+
"current-hover"
|
|
5963
|
+
];
|
|
5964
|
+
function isNavHover(state) {
|
|
5965
|
+
return state === "hover" || state === "current-hover";
|
|
5966
|
+
}
|
|
5967
|
+
function isCurrent(state) {
|
|
5968
|
+
return state === "current" || state === "current-hover";
|
|
5969
|
+
}
|
|
5970
|
+
/** Mirrors the historical emitters: every group writes a base gradient and hover opacity;
|
|
5971
|
+
* active groups additionally write the more specific current-page selector. */
|
|
5972
|
+
function resolveRenderedNavEffects(effects, state) {
|
|
5973
|
+
const applications = [
|
|
5974
|
+
"base",
|
|
5975
|
+
"hover",
|
|
5976
|
+
"active",
|
|
5977
|
+
"focus"
|
|
5978
|
+
].flatMap((group) => (effects?.[group] ?? []).map((effect) => ({
|
|
5979
|
+
effect,
|
|
5980
|
+
group
|
|
5981
|
+
})));
|
|
5982
|
+
const opacity = winner(applications.filter(({ effect }) => effect.effectId === "fade-background" || effect.effectId === "opacity-reduce").flatMap((app) => opacityCandidates(app, state)));
|
|
5983
|
+
return {
|
|
5984
|
+
text: winner(applications.filter(({ effect }) => effect.effectId === "gradient-text").flatMap((app) => textCandidates(app, state))),
|
|
5985
|
+
opacity: opacity ? authoredOpacity(opacity) : null
|
|
5986
|
+
};
|
|
5987
|
+
}
|
|
5988
|
+
function authoredOpacity(effect) {
|
|
5989
|
+
const options = effect.options ?? {};
|
|
5990
|
+
const opacity = effect.effectId === "fade-background" ? Number(options.opacity || 80) / 100 : 1 - Number(options.reduction || 15) / 100;
|
|
5991
|
+
return Number.isFinite(opacity) && opacity >= 0 && opacity <= 1 ? opacity : null;
|
|
5992
|
+
}
|
|
5993
|
+
function textCandidates(app, state) {
|
|
5994
|
+
const gradient = {
|
|
5995
|
+
effect: app.effect,
|
|
5996
|
+
fill: "gradient"
|
|
5997
|
+
};
|
|
5998
|
+
const solid = {
|
|
5999
|
+
effect: app.effect,
|
|
6000
|
+
fill: "solid"
|
|
6001
|
+
};
|
|
6002
|
+
const solidOnHover = app.effect.options?.solidOnHover === true || app.effect.options?.solidOnHover === "true";
|
|
6003
|
+
const hover = isNavHover(state) && solidOnHover ? [{
|
|
6004
|
+
value: solid,
|
|
6005
|
+
specificity: 2
|
|
6006
|
+
}] : [];
|
|
6007
|
+
const currentHover = isNavHover(state) && solidOnHover ? [{
|
|
6008
|
+
value: solid,
|
|
6009
|
+
specificity: 3
|
|
6010
|
+
}] : [];
|
|
6011
|
+
const current = isCurrent(state) && app.group === "active" ? [{
|
|
6012
|
+
value: gradient,
|
|
6013
|
+
specificity: 2
|
|
6014
|
+
}, ...currentHover] : [];
|
|
6015
|
+
return [
|
|
6016
|
+
{
|
|
6017
|
+
value: gradient,
|
|
6018
|
+
specificity: 1
|
|
6019
|
+
},
|
|
6020
|
+
...hover,
|
|
6021
|
+
...current
|
|
6022
|
+
];
|
|
6023
|
+
}
|
|
6024
|
+
function opacityCandidates(app, state) {
|
|
6025
|
+
if (!isNavHover(state)) return [];
|
|
6026
|
+
const current = isCurrent(state) && app.group === "active" ? [{
|
|
6027
|
+
value: app.effect,
|
|
6028
|
+
specificity: 3
|
|
6029
|
+
}] : [];
|
|
6030
|
+
return [{
|
|
6031
|
+
value: app.effect,
|
|
6032
|
+
specificity: 2
|
|
6033
|
+
}, ...current];
|
|
6034
|
+
}
|
|
6035
|
+
/** Later declarations win equal specificity, just as they do in the emitted CSS. */
|
|
6036
|
+
function winner(candidates) {
|
|
6037
|
+
return candidates.reduce((chosen, candidate) => chosen === null || candidate.specificity >= chosen.specificity ? candidate : chosen, null)?.value ?? null;
|
|
6038
|
+
}
|
|
6039
|
+
//#endregion
|
|
6040
|
+
//#region ../theme-core/src/header/navEffectPaint.ts
|
|
6041
|
+
const TEXT_ONLY_EFFECTS = /* @__PURE__ */ new Set([
|
|
6042
|
+
"gradient-text",
|
|
6043
|
+
"fade-background",
|
|
6044
|
+
"opacity-reduce",
|
|
6045
|
+
"text-color-change",
|
|
6046
|
+
"nav-underline",
|
|
6047
|
+
"border-bottom-grow",
|
|
6048
|
+
"border-color-change",
|
|
6049
|
+
"scale-up",
|
|
6050
|
+
"scale-down",
|
|
6051
|
+
"lift",
|
|
6052
|
+
"press-down",
|
|
6053
|
+
"pop"
|
|
6054
|
+
]);
|
|
6055
|
+
/** No backdrop sampling or compositing: only an explicitly opaque, image-free paint. */
|
|
6056
|
+
function resolveCorrectableNavPaint(header, style, palette) {
|
|
6057
|
+
if (header.background.type !== "color" || header.scrollTreatment) return null;
|
|
6058
|
+
if (Object.values(style.effects ?? {}).flatMap((group) => group ?? []).some((effect) => !TEXT_ONLY_EFFECTS.has(effect.effectId))) return null;
|
|
6059
|
+
const reference = solidPaintReference(header);
|
|
6060
|
+
return reference ? resolveConcreteColorHex(reference, palette) : null;
|
|
6061
|
+
}
|
|
6062
|
+
function solidPaintReference(header) {
|
|
6063
|
+
const nav = header.navContainer;
|
|
6064
|
+
if (nav?.type === "glass") return null;
|
|
6065
|
+
if (nav?.type === "pill") return nav.tint ? opaqueTint(nav.tint, nav.opacity) : "surface";
|
|
6066
|
+
if (header.variant !== "floating") return header.background.color || "surface";
|
|
6067
|
+
const frame = header.container;
|
|
6068
|
+
return frame ? opaqueTint(frame.tint ?? "raw:#ffffff", frame.opacity) : null;
|
|
6069
|
+
}
|
|
6070
|
+
function opaqueTint(tint, opacity) {
|
|
6071
|
+
return typeof opacity === "number" && opacity >= 1 ? tint : null;
|
|
6072
|
+
}
|
|
6073
|
+
//#endregion
|
|
6074
|
+
//#region ../theme-core/src/header/navEffectContrast.ts
|
|
6075
|
+
/** The only effects changed are the winners in four disjoint rendered states. */
|
|
6076
|
+
function generateHeaderNavEffectContrastCss(header, style, theme, themeId) {
|
|
6077
|
+
const palette = expandPalette(theme.palette);
|
|
6078
|
+
const paint = resolveCorrectableNavPaint(header, style, palette);
|
|
6079
|
+
if (paint === null) return "";
|
|
6080
|
+
const foreground = resolveHeaderRootForeground(header, palette, headerRootIsTransparent(header));
|
|
6081
|
+
const context = {
|
|
6082
|
+
paint,
|
|
6083
|
+
palette,
|
|
6084
|
+
links: foreground.kind === "known" ? foreground.roles : authoredHeaderLinkForeground(header, palette)
|
|
6085
|
+
};
|
|
6086
|
+
const selector = `:where([data-theme-scope="${themeId}"]) .header-root .header-nav-row .header-nav-link`;
|
|
6087
|
+
return NAV_RENDERED_STATES.map((state) => stateCorrection(style, state, context, selector)).join("");
|
|
6088
|
+
}
|
|
6089
|
+
function stateCorrection(style, state, context, selector) {
|
|
6090
|
+
const winners = resolveRenderedNavEffects(style.effects, state);
|
|
6091
|
+
const plainInk = resolveInk(state === "rest" ? context.links.link : context.links.linkHover, context.palette);
|
|
6092
|
+
const text = planText(winners.text, plainInk, state, context);
|
|
6093
|
+
const rules = [...text.rules, ...opacityRules(winners.opacity, text.inks, context.paint)];
|
|
6094
|
+
return rules.length ? `\n${stateSelector(selector, state)} {\n ${rules.join("\n ")}\n}\n` : "";
|
|
6095
|
+
}
|
|
6096
|
+
function planText(text, plainInk, state, context) {
|
|
6097
|
+
if (!text) return {
|
|
6098
|
+
rules: [],
|
|
6099
|
+
inks: [plainInk]
|
|
6100
|
+
};
|
|
6101
|
+
const stops = renderedTextStops(text, context.palette);
|
|
6102
|
+
if (decideNavEffectContrast(context.paint, plainInk, {
|
|
6103
|
+
effect: "gradient-text",
|
|
6104
|
+
option: stops,
|
|
6105
|
+
state: isNavHover(state) ? "hover" : "rest"
|
|
6106
|
+
}).kind === "plain") return {
|
|
6107
|
+
rules: [
|
|
6108
|
+
"background-image: none;",
|
|
6109
|
+
"-webkit-background-clip: border-box;",
|
|
6110
|
+
"background-clip: border-box;",
|
|
6111
|
+
"-webkit-text-fill-color: currentColor;"
|
|
6112
|
+
],
|
|
6113
|
+
inks: [plainInk]
|
|
6114
|
+
};
|
|
6115
|
+
return {
|
|
6116
|
+
rules: [],
|
|
6117
|
+
inks: stops.map((hex) => hex ? {
|
|
6118
|
+
hex,
|
|
6119
|
+
opacity: 1
|
|
6120
|
+
} : null)
|
|
6121
|
+
};
|
|
6122
|
+
}
|
|
6123
|
+
function renderedTextStops(text, palette) {
|
|
6124
|
+
if (text.fill === "solid") return [resolveConcreteColorHex("neutral-50", palette)];
|
|
6125
|
+
const colors = text.effect.options?.gradientColors;
|
|
6126
|
+
return (typeof colors === "string" && colors ? colors.split(",").map((token) => token.trim()) : [
|
|
6127
|
+
"primary-400",
|
|
6128
|
+
"secondary-400",
|
|
6129
|
+
"accent-400"
|
|
6130
|
+
]).map((token) => resolveConcreteColorHex(token, palette));
|
|
6131
|
+
}
|
|
6132
|
+
function opacityRules(authored, inks, paint) {
|
|
6133
|
+
if (authored === null || inks.length === 0 || inks.some((ink) => ink === null)) return [];
|
|
6134
|
+
const decisions = inks.map((ink) => decideNavEffectContrast(paint, ink, {
|
|
6135
|
+
effect: "fade-background",
|
|
6136
|
+
option: authored
|
|
6137
|
+
}));
|
|
6138
|
+
if (decisions.some((decision) => decision.kind !== "opacity")) return [];
|
|
6139
|
+
const effective = Math.max(...decisions.map((decision) => decision.kind === "opacity" ? decision.opacity : authored));
|
|
6140
|
+
return effective === authored ? [] : [`opacity: ${effective};`];
|
|
6141
|
+
}
|
|
6142
|
+
function stateSelector(selector, state) {
|
|
6143
|
+
switch (state) {
|
|
6144
|
+
case "rest": return `${selector}:not([data-active="true"]):not(:hover):not(:active)`;
|
|
6145
|
+
case "hover": return `${selector}:not([data-active="true"]):hover`;
|
|
6146
|
+
case "current": return `${selector}[data-active="true"]:not(:hover)`;
|
|
6147
|
+
case "current-hover": return `${selector}[data-active="true"]:hover`;
|
|
6148
|
+
}
|
|
6149
|
+
}
|
|
6150
|
+
function resolveInk(reference, palette) {
|
|
6151
|
+
const parts = parseColorTokenParts(reference);
|
|
6152
|
+
const hex = resolveConcreteColorHex(parts.kind === "token" ? parts.token : reference, palette);
|
|
6153
|
+
const opacity = parts.kind === "token" && parts.opacityPercent !== null ? parts.opacityPercent / 100 : 1;
|
|
6154
|
+
return hex ? {
|
|
6155
|
+
hex,
|
|
6156
|
+
opacity
|
|
6157
|
+
} : null;
|
|
6158
|
+
}
|
|
6159
|
+
//#endregion
|
|
5441
6160
|
//#region ../theme-core/src/header/generateHeaderNavLinkStyles.ts
|
|
5442
6161
|
function generateHeaderNavLinkStyles(header, themeId, tokens, theme, contrastTreatment, navTextSize) {
|
|
5443
6162
|
const style = effectiveHeaderNavLinkStyle(header, contrastTreatment, navTextSize);
|
|
@@ -5445,19 +6164,20 @@ function generateHeaderNavLinkStyles(header, themeId, tokens, theme, contrastTre
|
|
|
5445
6164
|
console.warn(`[generateHeaderCss] Nav link preset not found: ${header.navStyle}`);
|
|
5446
6165
|
return "";
|
|
5447
6166
|
}
|
|
6167
|
+
const renderedStyle = mergeHeaderNavTypographyPreference(style, {
|
|
6168
|
+
typography: header.navFontRole ?? "inherit",
|
|
6169
|
+
fontSize: readHeaderNavFontSizePreference(header.navTextSize),
|
|
6170
|
+
interactionPalette: header.interactionPalette ?? "recommended"
|
|
6171
|
+
});
|
|
5448
6172
|
return generateNavLinkCSS({
|
|
5449
6173
|
themeId,
|
|
5450
6174
|
tokens,
|
|
5451
6175
|
theme,
|
|
5452
|
-
style:
|
|
5453
|
-
typography: header.navFontRole ?? "inherit",
|
|
5454
|
-
fontSize: readHeaderNavFontSizePreference(header.navTextSize),
|
|
5455
|
-
interactionPalette: header.interactionPalette ?? "recommended"
|
|
5456
|
-
}),
|
|
6176
|
+
style: renderedStyle,
|
|
5457
6177
|
className: "header-nav-link",
|
|
5458
6178
|
surfaceDependent: true,
|
|
5459
6179
|
surfaceRestingColor: header.background?.contentOwner === siteChromeBackgroundOverrideOwner
|
|
5460
|
-
});
|
|
6180
|
+
}) + generateHeaderNavEffectContrastCss(header, renderedStyle, theme, themeId);
|
|
5461
6181
|
}
|
|
5462
6182
|
//#endregion
|
|
5463
6183
|
//#region ../theme-core/src/header/generateHeaderLogoStyles.ts
|
|
@@ -5963,6 +6683,14 @@ function headerPaintInks(header, theme, policy) {
|
|
|
5963
6683
|
return surfaceInkDeclarations(surfaceInkPublication(resolveSurfaceForeground(header.background, expandPalette(theme.palette)), policy));
|
|
5964
6684
|
}
|
|
5965
6685
|
//#endregion
|
|
6686
|
+
//#region ../theme-core/src/header/logoSurfaceTone.ts
|
|
6687
|
+
/** The brand uses the root surface, even when navigation owns a separate capsule. */
|
|
6688
|
+
function resolveHeaderLogoSurfaceTone(header, palette, surface) {
|
|
6689
|
+
if (surface === "header-mobile-panel") return surfaceToneFromForegroundToken(palette, header?.dropdownStyle?.textColor ?? "text");
|
|
6690
|
+
const foreground = resolveHeaderRootForeground(header, palette, headerRootIsTransparent(header));
|
|
6691
|
+
return surfaceToneFromForegroundToken(palette, foreground.kind === "known" ? foreground.roles.text : headerLeafTextColor(header));
|
|
6692
|
+
}
|
|
6693
|
+
//#endregion
|
|
5966
6694
|
//#region ../theme-core/src/layout/boundaryCss.ts
|
|
5967
6695
|
/**
|
|
5968
6696
|
* Section-break CSS, generated from the transition catalogue (issue 1422).
|
|
@@ -6024,6 +6752,11 @@ const placementRules = {
|
|
|
6024
6752
|
band: null
|
|
6025
6753
|
}
|
|
6026
6754
|
};
|
|
6755
|
+
/**
|
|
6756
|
+
* A block's own section, whatever skin slot it carries, so a reserve reaches
|
|
6757
|
+
* the schedule and shop sections too.
|
|
6758
|
+
*/
|
|
6759
|
+
const blockSection = ":where([data-slot='section'], [data-slot='schedule-section'], [data-slot='shop-section'])";
|
|
6027
6760
|
function generateBoundaryCss(selector) {
|
|
6028
6761
|
const boundary = `${selector} [data-block-boundary]`;
|
|
6029
6762
|
return [
|
|
@@ -6033,8 +6766,8 @@ function generateBoundaryCss(selector) {
|
|
|
6033
6766
|
"height: 0;",
|
|
6034
6767
|
"pointer-events: none;"
|
|
6035
6768
|
]),
|
|
6036
|
-
rule(`${selector} [data-block][data-site-style-boundary-before] >
|
|
6037
|
-
rule(`${selector} [data-block][data-site-style-boundary-after] >
|
|
6769
|
+
rule(`${selector} [data-block][data-site-style-boundary-before] > ${blockSection}`, ["padding-top: calc(var(--rb-section-pad-y, 0rem) + var(--site-style-boundary-before-reserve, 0rem));"]),
|
|
6770
|
+
rule(`${selector} [data-block][data-site-style-boundary-after] > ${blockSection}`, ["padding-bottom: calc(var(--rb-section-pad-y, 0rem) + var(--site-style-boundary-after-reserve, 0rem));"]),
|
|
6038
6771
|
rule(`${boundary}::before,\n${boundary}::after`, [
|
|
6039
6772
|
"content: '';",
|
|
6040
6773
|
"position: absolute;",
|
|
@@ -6046,9 +6779,28 @@ function generateBoundaryCss(selector) {
|
|
|
6046
6779
|
rule(`${boundary}::before`, ["z-index: 0;", "background: var(--boundary-band-paint, transparent);"]),
|
|
6047
6780
|
rule(`${boundary}::after`, ["z-index: 1;"]),
|
|
6048
6781
|
...placementCss(boundary),
|
|
6049
|
-
...transitionCatalogueEntries.flatMap((entry) => treatmentCss(boundary, entry))
|
|
6782
|
+
...transitionCatalogueEntries.flatMap((entry) => treatmentCss(boundary, entry)),
|
|
6783
|
+
...transitionCatalogueEntries.flatMap((entry) => footerEdgeReserveCss(selector, entry))
|
|
6050
6784
|
].join("\n\n");
|
|
6051
6785
|
}
|
|
6786
|
+
/**
|
|
6787
|
+
* The footer's edge rises into the last section of the page flow, which can't
|
|
6788
|
+
* see the footer, so the reserve is keyed on the edge being on the page. The
|
|
6789
|
+
* page renderer marks that section's block as the page ending. When custom
|
|
6790
|
+
* footer blocks intervene, document adapters mark their region so only their
|
|
6791
|
+
* ending receives the reserve (and an empty region falls back to the page).
|
|
6792
|
+
*
|
|
6793
|
+
* Pages that don't come from the page renderer (privacy, terms, checkout, the
|
|
6794
|
+
* portal, a not-found page) have no block ending. The site document's content
|
|
6795
|
+
* area takes the reserve for them instead, but only when nothing inside it is
|
|
6796
|
+
* a page ending, so a rendered page is never padded twice.
|
|
6797
|
+
*/
|
|
6798
|
+
function footerEdgeReserveCss(selector, entry) {
|
|
6799
|
+
const metrics = boundaryRuntimeMetricsForDecorativeTransition(entry.intent);
|
|
6800
|
+
const withEdge = `${selector}:has([data-footer-edge][data-boundary-treatment='${entry.intent}'])`;
|
|
6801
|
+
const pageEnds = `${withEdge}:not(:has([data-footer-blocks] [data-page-ending]))`;
|
|
6802
|
+
return [rule(`${pageEnds} [data-block][data-page-ending] > ${blockSection}, ${withEdge} [data-footer-blocks] [data-block][data-page-ending] > ${blockSection}`, [`padding-bottom: calc(var(--rb-section-pad-y, 0rem) + ${metrics.heightCss});`]), rule(`${pageEnds} [data-site-document-content]:not(:has([data-page-ending]))`, [`padding-bottom: ${metrics.heightCss};`])];
|
|
6803
|
+
}
|
|
6052
6804
|
function placementCss(boundary) {
|
|
6053
6805
|
return Object.keys(placementRules).flatMap((placement) => {
|
|
6054
6806
|
const placed = `${boundary}[data-boundary-placement='${placement}']`;
|
|
@@ -7183,7 +7935,7 @@ function generateAllBlockVarsCss(context) {
|
|
|
7183
7935
|
const css = generator(context);
|
|
7184
7936
|
if (css) cssChunks.push(css.trim());
|
|
7185
7937
|
}
|
|
7186
|
-
return cssChunks.join("\n\n");
|
|
7938
|
+
return [...cssChunks, generateLookMediaFrameCss(context.themeId)].join("\n\n");
|
|
7187
7939
|
}
|
|
7188
7940
|
/**
|
|
7189
7941
|
* Generate CSS for user-defined block custom variables.
|
|
@@ -13398,7 +14150,7 @@ const serviceDetailsBlockDefinition = {
|
|
|
13398
14150
|
version: "1.0.0",
|
|
13399
14151
|
title: "Service details",
|
|
13400
14152
|
titleSource: "heading",
|
|
13401
|
-
description: "Duration, price, location, cancellation terms and
|
|
14153
|
+
description: "Duration, price, location, cancellation terms and who the service is with.",
|
|
13402
14154
|
category: "events-and-bookings",
|
|
13403
14155
|
requiredFeatures: ["bookings.appointments"],
|
|
13404
14156
|
contentSource: { kind: "inline" },
|
|
@@ -16030,25 +16782,6 @@ function heroHeadlineText(content, policy) {
|
|
|
16030
16782
|
return policy === "look" ? inlineTextToPlainText(coerceInlineTextWithFallback(content.headlineInline, plain)).trim() : plain?.trim() ?? "";
|
|
16031
16783
|
}
|
|
16032
16784
|
//#endregion
|
|
16033
|
-
//#region ../blocks/src/system/transforms/registry/footerArrangement.ts
|
|
16034
|
-
const footerBrandArrangementTransform = {
|
|
16035
|
-
id: "layout.footerBrandArrangement",
|
|
16036
|
-
kind: "string",
|
|
16037
|
-
run: (value) => {
|
|
16038
|
-
const module = asPartialObject(value);
|
|
16039
|
-
return module?.kind === "brand" ? module.slots ? "centred" : "row" : void 0;
|
|
16040
|
-
}
|
|
16041
|
-
};
|
|
16042
|
-
const footerModuleInkStyleTransform = {
|
|
16043
|
-
id: "layout.footerModuleInkStyle",
|
|
16044
|
-
kind: "formatter",
|
|
16045
|
-
run: (value, options) => value === "centred" ? void 0 : textColorStyle(asPartialObject(options)?.opacity === 70 ? "text/70" : "text/80")
|
|
16046
|
-
};
|
|
16047
|
-
/** A centred base without authored bar paint inherits its measured surface line. */
|
|
16048
|
-
function footerBottomBarBorderColorStyle(footer) {
|
|
16049
|
-
return footer?.variant === "centred" && !footer.bottomBar ? { borderColor: "var(--rb-surface-line-color)" } : borderColorStyle(footer?.bottomBar?.borderTop?.colorToken ?? "border");
|
|
16050
|
-
}
|
|
16051
|
-
//#endregion
|
|
16052
16785
|
//#region ../blocks/src/system/transforms/registry/layout.ts
|
|
16053
16786
|
const joinClasses = (parts) => parts.filter((part) => typeof part === "string" && part.trim().length > 0).join(" ").replace(/\s+/g, " ").trim();
|
|
16054
16787
|
/** How the header brand renders; the logo media is hidden for `title-only`. */
|
|
@@ -16155,7 +16888,7 @@ function resolveBackgroundVisualStyles(backgroundColor, defaultToken = "surface"
|
|
|
16155
16888
|
};
|
|
16156
16889
|
}
|
|
16157
16890
|
function resolveHeaderVisualStyles(header) {
|
|
16158
|
-
if (
|
|
16891
|
+
if (headerRootIsTransparent(header)) return {
|
|
16159
16892
|
backgroundToken: "transparent",
|
|
16160
16893
|
isTransparent: true
|
|
16161
16894
|
};
|
|
@@ -16171,11 +16904,6 @@ function resolvedForegroundStyle(foreground) {
|
|
|
16171
16904
|
case "known": return surfaceForegroundStyle(surfaceForegroundInputFromResolved(foreground, rgbColorValue));
|
|
16172
16905
|
}
|
|
16173
16906
|
}
|
|
16174
|
-
function footerBottomBarBorderWidthStyle(width) {
|
|
16175
|
-
if (!width) return void 0;
|
|
16176
|
-
if (width === "none") return { borderTopWidth: "0px" };
|
|
16177
|
-
return { borderTopWidth: width === "thin" ? "1px" : width === "medium" ? "2px" : "3px" };
|
|
16178
|
-
}
|
|
16179
16907
|
const headerRootClassTransform = {
|
|
16180
16908
|
id: "layout.headerRootClass",
|
|
16181
16909
|
kind: "string",
|
|
@@ -16211,27 +16939,6 @@ const headerRootClassTransform = {
|
|
|
16211
16939
|
return joinClasses(classes);
|
|
16212
16940
|
}
|
|
16213
16941
|
};
|
|
16214
|
-
const footerRootClassTransform = {
|
|
16215
|
-
id: "layout.footerRootClass",
|
|
16216
|
-
kind: "string",
|
|
16217
|
-
summary: "Compose footer root classes with optional inversion",
|
|
16218
|
-
schema: z.object({
|
|
16219
|
-
base: z.string().optional(),
|
|
16220
|
-
surface: z.string().optional(),
|
|
16221
|
-
tokenPrefix: z.string().optional(),
|
|
16222
|
-
transparent: z.string().optional()
|
|
16223
|
-
}),
|
|
16224
|
-
run: (value, options) => {
|
|
16225
|
-
const config = {
|
|
16226
|
-
base: "rb-w-full rb-border-t transition-theme",
|
|
16227
|
-
transparent: "rb-bg-transparent",
|
|
16228
|
-
...options
|
|
16229
|
-
};
|
|
16230
|
-
const background = asPartialObject(value)?.background;
|
|
16231
|
-
const backgroundClass = resolveBackgroundVisualStyles(extractBackgroundColorToken(background, "surface")).isTransparent ? config.transparent : null;
|
|
16232
|
-
return joinClasses([config.base, backgroundClass]);
|
|
16233
|
-
}
|
|
16234
|
-
};
|
|
16235
16942
|
const headerRootStyleTransform = {
|
|
16236
16943
|
id: "layout.headerRootStyle",
|
|
16237
16944
|
kind: "formatter",
|
|
@@ -16263,115 +16970,61 @@ function headerSectionBackground(header) {
|
|
|
16263
16970
|
const visuals = resolveHeaderVisualStyles(header);
|
|
16264
16971
|
return header?.background?.type === "color" && !visuals.isTransparent && !visuals.backgroundToken.includes("/") ? visuals.backgroundToken : "background";
|
|
16265
16972
|
}
|
|
16973
|
+
/**
|
|
16974
|
+
* What one footer area looks like: its ground, and the inks certified on it.
|
|
16975
|
+
* The main ground is the footer's own, painted on the root so the edge and every
|
|
16976
|
+
* unpainted area share it. A painted side area sets its ground variable (read by
|
|
16977
|
+
* site-footer.css) and its own inks; an unpainted one adds nothing and sits on
|
|
16978
|
+
* the main ground under a rule.
|
|
16979
|
+
*/
|
|
16980
|
+
function footerAreaPaintStyle(footer, area, context) {
|
|
16981
|
+
const palette = context.theme.palette;
|
|
16982
|
+
if (area === "main") {
|
|
16983
|
+
const foreground = resolveFooterRootForeground(footer, palette, context.proseHoverCandidate);
|
|
16984
|
+
return mergeStyles(backgroundColorStyle(footerMainPaint(footer).ground), resolvedForegroundStyle(foreground), solvedInkStyle(foreground, context), surfaceInkStyles(foreground, palette));
|
|
16985
|
+
}
|
|
16986
|
+
const paint = footerSideBandPaint(footer, area);
|
|
16987
|
+
const foreground = resolveFooterSideBandForeground(footer, area, palette, context.proseHoverCandidate);
|
|
16988
|
+
if (!paint || !foreground) return void 0;
|
|
16989
|
+
return mergeStyles({ [`--rb-footer-${area}-bg`]: rgbColorValue(paint.ground) }, resolvedForegroundStyle(foreground), solvedInkStyle(foreground, context), surfaceInkStyles(foreground, palette));
|
|
16990
|
+
}
|
|
16991
|
+
const footerAreaValues = [
|
|
16992
|
+
"band",
|
|
16993
|
+
"main",
|
|
16994
|
+
"strip",
|
|
16995
|
+
"base"
|
|
16996
|
+
];
|
|
16997
|
+
const isFooterArea = (value) => footerAreaValues.some((area) => area === value);
|
|
16998
|
+
function readThemeFooter(viewModel) {
|
|
16999
|
+
return asPartialObject(asPartialObject(asPartialObject(viewModel?.["$root"])?.theme)?.footer);
|
|
17000
|
+
}
|
|
17001
|
+
/** The footer root: the main ground, its inks and the top rule. */
|
|
16266
17002
|
const footerRootStyleTransform = {
|
|
16267
17003
|
id: "layout.footerRootStyle",
|
|
16268
17004
|
kind: "formatter",
|
|
16269
|
-
summary: "
|
|
16270
|
-
run: (value, _options, context) => {
|
|
16271
|
-
const footer = asPartialObject(value);
|
|
16272
|
-
const background = footer?.background;
|
|
16273
|
-
const visuals = resolveBackgroundVisualStyles(extractBackgroundColorToken(background, "surface"));
|
|
16274
|
-
const styleParts = [];
|
|
16275
|
-
if (!visuals.isTransparent) {
|
|
16276
|
-
if (!background || background.type === "color") {
|
|
16277
|
-
const token = background?.color ?? "surface";
|
|
16278
|
-
styleParts.push(backgroundColorStyle(token));
|
|
16279
|
-
}
|
|
16280
|
-
}
|
|
16281
|
-
const foreground = resolveFooterRootForeground(footer, context.theme.palette, context.proseHoverCandidate);
|
|
16282
|
-
styleParts.push(resolvedForegroundStyle(foreground), solvedInkStyle(foreground, context));
|
|
16283
|
-
if (footer?.variant === "centred") styleParts.push(surfaceInkStyles(foreground, context.theme.palette));
|
|
16284
|
-
styleParts.push(borderColorStyle("border"));
|
|
16285
|
-
return mergeStyles(...styleParts);
|
|
16286
|
-
}
|
|
16287
|
-
};
|
|
16288
|
-
const footerSpacingClassXMap = {
|
|
16289
|
-
none: "rb-px-0",
|
|
16290
|
-
tight: "rb-px-2",
|
|
16291
|
-
compact: "rb-px-4",
|
|
16292
|
-
default: "rb-px-6",
|
|
16293
|
-
relaxed: "rb-px-8",
|
|
16294
|
-
spacious: "rb-px-12"
|
|
16295
|
-
};
|
|
16296
|
-
const footerSpacingClassYMap = {
|
|
16297
|
-
none: "rb-py-0",
|
|
16298
|
-
tight: "rb-py-2",
|
|
16299
|
-
compact: "rb-py-4",
|
|
16300
|
-
default: "rb-py-6",
|
|
16301
|
-
relaxed: "rb-py-8",
|
|
16302
|
-
spacious: "rb-py-12"
|
|
16303
|
-
};
|
|
16304
|
-
const footerBottomBarClassTransform = {
|
|
16305
|
-
id: "layout.footerBottomBarClass",
|
|
16306
|
-
kind: "string",
|
|
16307
|
-
summary: "Compose footer bottom bar classes from theme controls",
|
|
16308
|
-
schema: z.object({ base: z.string().optional() }),
|
|
16309
|
-
run: (value, options) => {
|
|
16310
|
-
const bottomBar = asPartialObject(value)?.bottomBar;
|
|
16311
|
-
const textAlign = bottomBar?.textAlign ?? "center";
|
|
16312
|
-
const alignClass = textAlign === "left" ? "rb-text-left" : textAlign === "right" ? "rb-text-right" : "rb-text-center";
|
|
16313
|
-
const px = footerSpacingClassXMap[bottomBar?.paddingX ?? "default"] ?? "rb-px-6";
|
|
16314
|
-
const py = footerSpacingClassYMap[bottomBar?.paddingY ?? "default"] ?? "rb-py-6";
|
|
16315
|
-
return joinClasses([
|
|
16316
|
-
options.base ?? "rb-w-full rb-border-t",
|
|
16317
|
-
alignClass,
|
|
16318
|
-
px,
|
|
16319
|
-
py
|
|
16320
|
-
]);
|
|
16321
|
-
}
|
|
16322
|
-
};
|
|
16323
|
-
const footerBottomBarContainerClassTransform = {
|
|
16324
|
-
id: "layout.footerBottomBarContainerClass",
|
|
16325
|
-
kind: "string",
|
|
16326
|
-
summary: "Resolve full-bleed vs contained bottom bar container classes",
|
|
16327
|
-
schema: z.object({
|
|
16328
|
-
base: z.string().optional(),
|
|
16329
|
-
fullBleed: z.string().optional(),
|
|
16330
|
-
contained: z.string().optional()
|
|
16331
|
-
}),
|
|
16332
|
-
run: (value, options) => {
|
|
16333
|
-
const footer = asPartialObject(value);
|
|
16334
|
-
const fullBleed = Boolean(footer?.bottomBar?.fullBleed);
|
|
16335
|
-
return joinClasses([options.base ?? "", fullBleed ? options.fullBleed ?? "rb-w-full" : options.contained ?? "rb-container"]);
|
|
16336
|
-
}
|
|
16337
|
-
};
|
|
16338
|
-
const footerBottomBarStyleTransform = {
|
|
16339
|
-
id: "layout.footerBottomBarStyle",
|
|
16340
|
-
kind: "formatter",
|
|
16341
|
-
summary: "Compose footer bottom bar style from theme controls",
|
|
17005
|
+
summary: "Paint the footer root with the main ground and its inks",
|
|
16342
17006
|
run: (value, _options, context) => {
|
|
16343
17007
|
const footer = asPartialObject(value);
|
|
16344
|
-
|
|
16345
|
-
return mergeStyles(bottomBar?.background?.type === "color" ? backgroundColorStyle(bottomBar.background.color ?? "surface") : void 0, footerBottomBarBorderColorStyle(footer), footerBottomBarBorderWidthStyle(bottomBar?.borderTop?.width), ...footerBottomBarForegroundStyles(footer, context));
|
|
16346
|
-
}
|
|
16347
|
-
};
|
|
16348
|
-
/** The bar's own certified contract and inks, its certified text on the footer's ground, or nothing of its own. */
|
|
16349
|
-
function footerBottomBarForegroundStyles(footer, context) {
|
|
16350
|
-
if (!footer) return [];
|
|
16351
|
-
const paint = resolveFooterBottomBarPaint(footer, context.theme.palette);
|
|
16352
|
-
switch (paint.kind) {
|
|
16353
|
-
case "inherits": return [];
|
|
16354
|
-
case "surface": return [resolvedForegroundStyle(paint.foreground), solvedInkStyle(paint.foreground, context)];
|
|
16355
|
-
case "unmeasured": return [textColorStyle(paint.declared)];
|
|
16356
|
-
case "ink": return [paint.paint.fallback ? { color: paint.paint.ink } : textColorStyle(paint.declared)];
|
|
16357
|
-
}
|
|
16358
|
-
}
|
|
16359
|
-
const footerLogoClassTransform = {
|
|
16360
|
-
id: "layout.footerLogoClass",
|
|
16361
|
-
kind: "string",
|
|
16362
|
-
summary: "Compose split-footer logo wrapper classes from footer.logo controls",
|
|
16363
|
-
schema: z.object({ base: z.string().optional() }),
|
|
16364
|
-
run: (value, options) => {
|
|
16365
|
-
const align = asPartialObject(value)?.align ?? "end";
|
|
16366
|
-
const selfAlignClass = align === "start" ? "rb-self-start rb-text-left" : align === "center" ? "rb-self-center rb-text-center" : "rb-self-end rb-text-right";
|
|
16367
|
-
return joinClasses([options.base ?? "footer-logo rb-inline-flex rb-items-center rb-justify-end rb-gap-3 rb-no-underline rb-transition-opacity rb-hover-opacity-80", selfAlignClass]);
|
|
17008
|
+
return mergeStyles(footerAreaPaintStyle(footer, "main", context), borderColorStyle("border"), footerEdgeGrounds(footer));
|
|
16368
17009
|
}
|
|
16369
17010
|
};
|
|
16370
|
-
|
|
16371
|
-
|
|
16372
|
-
|
|
16373
|
-
|
|
16374
|
-
|
|
17011
|
+
/**
|
|
17012
|
+
* The grounds the edge can take, published on the root: site-footer.css paints
|
|
17013
|
+
* the edge with the first rendered area, and a skin that insets its band points it back at the main
|
|
17014
|
+
* ground with --rb-footer-edge-paint.
|
|
17015
|
+
*/
|
|
17016
|
+
function footerEdgeGrounds(footer) {
|
|
17017
|
+
return {
|
|
17018
|
+
"--rb-footer-ground": rgbColorValue(footerMainPaint(footer).ground),
|
|
17019
|
+
...Object.fromEntries([
|
|
17020
|
+
"band",
|
|
17021
|
+
"strip",
|
|
17022
|
+
"base"
|
|
17023
|
+
].flatMap((area) => {
|
|
17024
|
+
const paint = footerSideBandPaint(footer, area);
|
|
17025
|
+
return paint ? [[`--rb-footer-${area}-ground`, rgbColorValue(paint.ground)]] : [];
|
|
17026
|
+
}))
|
|
17027
|
+
};
|
|
16375
17028
|
}
|
|
16376
17029
|
const layoutTransforms = [
|
|
16377
17030
|
maxWidthClassTransform,
|
|
@@ -16379,16 +17032,15 @@ const layoutTransforms = [
|
|
|
16379
17032
|
headerLogoClassTransform,
|
|
16380
17033
|
headerLogoMediaClassTransform,
|
|
16381
17034
|
headerLogoTextVisibleTransform,
|
|
16382
|
-
footerRootClassTransform,
|
|
16383
17035
|
headerRootStyleTransform,
|
|
16384
17036
|
headerSectionBackgroundTransform,
|
|
16385
17037
|
footerRootStyleTransform,
|
|
16386
|
-
|
|
16387
|
-
|
|
16388
|
-
|
|
16389
|
-
|
|
16390
|
-
|
|
16391
|
-
|
|
17038
|
+
{
|
|
17039
|
+
id: "layout.footerAreaStyle",
|
|
17040
|
+
kind: "formatter",
|
|
17041
|
+
summary: "Paint one footer area from the compiled footer bands",
|
|
17042
|
+
run: (value, _options, context) => isFooterArea(value) && value !== "main" ? footerAreaPaintStyle(readThemeFooter(context.viewModel), value, context) : void 0
|
|
17043
|
+
}
|
|
16392
17044
|
];
|
|
16393
17045
|
//#endregion
|
|
16394
17046
|
//#region ../blocks/src/system/transforms/registry/chromeLogo.ts
|
|
@@ -16397,21 +17049,6 @@ const chromeLogoSchema = z.object({ surface: z.enum([
|
|
|
16397
17049
|
"header-mobile-panel",
|
|
16398
17050
|
"footer-root"
|
|
16399
17051
|
]) });
|
|
16400
|
-
/** The brand foreground shares the logo's surface; navigation may own a separate capsule. */
|
|
16401
|
-
function chromeSurfaceTextToken(surface, theme, palette) {
|
|
16402
|
-
switch (surface) {
|
|
16403
|
-
case "header-root": {
|
|
16404
|
-
const header = theme.header;
|
|
16405
|
-
const foreground = resolveHeaderRootForeground(header, palette, resolveHeaderVisualStyles(header).isTransparent);
|
|
16406
|
-
return foreground.kind === "known" ? foreground.roles.text : headerLeafTextColor(header);
|
|
16407
|
-
}
|
|
16408
|
-
case "header-mobile-panel": return theme.header?.dropdownStyle?.textColor ?? "text";
|
|
16409
|
-
case "footer-root": {
|
|
16410
|
-
const foreground = resolveFooterRootForeground(theme.footer, palette);
|
|
16411
|
-
return foreground.kind === "known" ? foreground.roles.text : void 0;
|
|
16412
|
-
}
|
|
16413
|
-
}
|
|
16414
|
-
}
|
|
16415
17052
|
function readChromeTheme(viewModel) {
|
|
16416
17053
|
return asPartialObject(asPartialObject(viewModel?.["$root"])?.theme) ?? {};
|
|
16417
17054
|
}
|
|
@@ -16420,7 +17057,9 @@ function readChromeTheme(viewModel) {
|
|
|
16420
17057
|
* transform and the editor's logo notice both judge "is this dark" here.
|
|
16421
17058
|
*/
|
|
16422
17059
|
function resolveChromeSurfaceToneForTheme(surface, theme, palette) {
|
|
16423
|
-
|
|
17060
|
+
if (surface !== "footer-root") return resolveHeaderLogoSurfaceTone(theme.header, palette, surface);
|
|
17061
|
+
const foreground = resolveFooterRootForeground(theme.footer, palette);
|
|
17062
|
+
return surfaceToneFromForegroundToken(palette, foreground.kind === "known" ? foreground.roles.text : void 0);
|
|
16424
17063
|
}
|
|
16425
17064
|
function resolveChromeSurfaceTone(surface, context) {
|
|
16426
17065
|
return resolveChromeSurfaceToneForTheme(surface, readChromeTheme(context.viewModel), context.theme.palette);
|
|
@@ -16434,7 +17073,12 @@ function readLogoVariants(value) {
|
|
|
16434
17073
|
forDarkBackgrounds: variants.forDarkBackgrounds ?? null
|
|
16435
17074
|
};
|
|
16436
17075
|
}
|
|
16437
|
-
|
|
17076
|
+
/**
|
|
17077
|
+
* Picks the site logo for the surface it is drawn on. Bound from block
|
|
17078
|
+
* `content`: `logoVariants` when the renderer supplies both logos, otherwise
|
|
17079
|
+
* the single `logo` older callers pass.
|
|
17080
|
+
*/
|
|
17081
|
+
const chromeLogoTransform = {
|
|
16438
17082
|
id: "layout.chromeLogo",
|
|
16439
17083
|
kind: "formatter",
|
|
16440
17084
|
summary: "Select the light- or dark-background site logo for a header or footer surface",
|
|
@@ -16444,6 +17088,28 @@ const chromeLogoTransforms = [{
|
|
|
16444
17088
|
if (!variants) return asPartialObject(value)?.logo ?? null;
|
|
16445
17089
|
return selectLogoVariant(resolveChromeSurfaceTone(options.surface, context), variants);
|
|
16446
17090
|
}
|
|
17091
|
+
};
|
|
17092
|
+
const chromeLogoTransforms = [chromeLogoTransform, {
|
|
17093
|
+
id: "layout.headerBrandSettings",
|
|
17094
|
+
kind: "formatter",
|
|
17095
|
+
summary: "Resolve header brand display using the selected logo asset facts",
|
|
17096
|
+
schema: chromeLogoSchema,
|
|
17097
|
+
run: (content, options, context) => {
|
|
17098
|
+
const settings = readChromeTheme(context.viewModel).header?.logo;
|
|
17099
|
+
const selected = asPartialObject(chromeLogoTransform.run(content, options, context));
|
|
17100
|
+
const logo = headerLogoShapeContext({
|
|
17101
|
+
asset: selected ? {
|
|
17102
|
+
width: selected.width ?? null,
|
|
17103
|
+
height: selected.height ?? null,
|
|
17104
|
+
logoFacts: selected.logoFacts
|
|
17105
|
+
} : null,
|
|
17106
|
+
accommodation: settings?.accommodation
|
|
17107
|
+
});
|
|
17108
|
+
return {
|
|
17109
|
+
...settings,
|
|
17110
|
+
brandDisplay: resolveBrandDisplay(settings?.brandDisplay ?? "auto", logoFactsForHeaderContext(logo))
|
|
17111
|
+
};
|
|
17112
|
+
}
|
|
16447
17113
|
}];
|
|
16448
17114
|
const headerRuntimeTransforms = [{
|
|
16449
17115
|
id: "layout.headerRuntimeContract",
|
|
@@ -16620,12 +17286,15 @@ function bindProp(from, opts) {
|
|
|
16620
17286
|
const SITE_CHROME_VISIBLE_HEADER_ATTR = "data-site-chrome-visible-header";
|
|
16621
17287
|
//#endregion
|
|
16622
17288
|
//#region ../blocks/src/system/blocks/site-header.ts
|
|
16623
|
-
const whenTransformed = (
|
|
17289
|
+
const whenTransformed = (surface, transformId, equals = true) => (node) => ({
|
|
16624
17290
|
...node,
|
|
16625
17291
|
$when: {
|
|
16626
17292
|
when: {
|
|
16627
|
-
from,
|
|
16628
|
-
transforms: [{
|
|
17293
|
+
from: "content",
|
|
17294
|
+
transforms: [{
|
|
17295
|
+
id: "layout.headerBrandSettings",
|
|
17296
|
+
options: { surface }
|
|
17297
|
+
}, { id: transformId }]
|
|
16629
17298
|
},
|
|
16630
17299
|
equals
|
|
16631
17300
|
}
|
|
@@ -16641,31 +17310,31 @@ const bindChromeLogo = (surface) => bind("content", { transforms: [{
|
|
|
16641
17310
|
*/
|
|
16642
17311
|
const createLogoRow = (surface) => link({
|
|
16643
17312
|
href: "/",
|
|
16644
|
-
className: bindProp("
|
|
16645
|
-
transforms: pipe(tx("layout.headerLogoClass")),
|
|
17313
|
+
className: bindProp("content", {
|
|
17314
|
+
transforms: pipe(tx("layout.headerBrandSettings", { surface }), tx("layout.headerLogoClass")),
|
|
16646
17315
|
fallback: "header-logo rb-flex rb-min-w-0 rb-items-center rb-gap-3 rb-no-underline rb-transition-opacity rb-hover-opacity-80"
|
|
16647
17316
|
})
|
|
16648
|
-
}, [media({ className: bindProp("
|
|
16649
|
-
transforms: pipe(tx("layout.headerLogoMediaClass", { base: "rb-header-logo-sm rb-w-auto rb-transition-all rb-duration-300" })),
|
|
17317
|
+
}, [media({ className: bindProp("content", {
|
|
17318
|
+
transforms: pipe(tx("layout.headerBrandSettings", { surface }), tx("layout.headerLogoMediaClass", { base: "rb-header-logo-sm rb-w-auto rb-transition-all rb-duration-300" })),
|
|
16650
17319
|
fallback: "rb-header-logo-sm rb-w-auto rb-transition-all rb-duration-300"
|
|
16651
17320
|
}) }, when("content.logo"), bindChromeLogo(surface)), text({
|
|
16652
17321
|
as: "strong",
|
|
16653
17322
|
className: "header-logo-text rb-truncate"
|
|
16654
|
-
}, whenTransformed(
|
|
17323
|
+
}, whenTransformed(surface, "layout.headerLogoTextVisible"), bind("site.title", { fallback: "Your Site" }))]);
|
|
16655
17324
|
const logoRow = createLogoRow("header-root");
|
|
16656
17325
|
const centeredLogoRow = link({
|
|
16657
17326
|
href: "/",
|
|
16658
|
-
className: bindProp("
|
|
16659
|
-
transforms: pipe(tx("layout.headerLogoClass", { base: "header-logo rb-flex rb-items-center rb-justify-center rb-gap-3 rb-text-center rb-no-underline rb-transition-opacity rb-hover-opacity-80" })),
|
|
17327
|
+
className: bindProp("content", {
|
|
17328
|
+
transforms: pipe(tx("layout.headerBrandSettings", { surface: "header-root" }), tx("layout.headerLogoClass", { base: "header-logo rb-flex rb-items-center rb-justify-center rb-gap-3 rb-text-center rb-no-underline rb-transition-opacity rb-hover-opacity-80" })),
|
|
16660
17329
|
fallback: "header-logo rb-flex rb-items-center rb-justify-center rb-gap-3 rb-text-center rb-no-underline rb-transition-opacity rb-hover-opacity-80"
|
|
16661
17330
|
})
|
|
16662
|
-
}, [media({ className: bindProp("
|
|
16663
|
-
transforms: pipe(tx("layout.headerLogoMediaClass", { base: "rb-header-logo-lg rb-w-auto rb-transition-all rb-duration-300" })),
|
|
17331
|
+
}, [media({ className: bindProp("content", {
|
|
17332
|
+
transforms: pipe(tx("layout.headerBrandSettings", { surface: "header-root" }), tx("layout.headerLogoMediaClass", { base: "rb-header-logo-lg rb-w-auto rb-transition-all rb-duration-300" })),
|
|
16664
17333
|
fallback: "rb-header-logo-lg rb-w-auto rb-transition-all rb-duration-300"
|
|
16665
17334
|
}) }, when("content.logo"), bindChromeLogo("header-root")), text({
|
|
16666
17335
|
as: "strong",
|
|
16667
17336
|
className: "header-logo-text"
|
|
16668
|
-
}, whenTransformed("
|
|
17337
|
+
}, whenTransformed("header-root", "layout.headerLogoTextVisible"), bind("site.title", { fallback: "Your Site" }))]);
|
|
16669
17338
|
const createNavRow = (className, align = "end") => navRow({
|
|
16670
17339
|
className: `${className} header-nav-row`,
|
|
16671
17340
|
align,
|
|
@@ -16889,33 +17558,12 @@ const siteHeaderManifest = createBlockManifest({
|
|
|
16889
17558
|
const siteHeaderBlockDefinition = { manifest: siteHeaderManifest };
|
|
16890
17559
|
//#endregion
|
|
16891
17560
|
//#region ../blocks/src/system/blocks/site-footer-nav-groups-layout.ts
|
|
16892
|
-
|
|
16893
|
-
|
|
16894
|
-
align: "start",
|
|
16895
|
-
className: { $bind: {
|
|
16896
|
-
from: "module.navigationGroupsClassName",
|
|
16897
|
-
fallback: "rb-grid rb-grid-cols-1 rb-gap-6"
|
|
16898
|
-
} }
|
|
16899
|
-
}, [stack({
|
|
16900
|
-
gap: "md",
|
|
16901
|
-
align: "start",
|
|
16902
|
-
className: "rb-text-left"
|
|
16903
|
-
}, [text({
|
|
17561
|
+
/** Labelled link sets as columns; the layout's CSS places them. */
|
|
17562
|
+
const footerNavGroupsLayout = el("div", { className: "rb-footer-link-groups" }, [el("div", { className: "rb-footer-link-group" }, [text({
|
|
16904
17563
|
as: "h3",
|
|
16905
17564
|
className: "rb-label",
|
|
16906
|
-
"data-slot":
|
|
16907
|
-
|
|
16908
|
-
from: "content.footerRuntime.arrangement",
|
|
16909
|
-
transforms: [{
|
|
16910
|
-
id: "layout.footerModuleInkStyle",
|
|
16911
|
-
options: { opacity: 70 }
|
|
16912
|
-
}]
|
|
16913
|
-
} }
|
|
16914
|
-
}, when("group.label"), bind("group.label")), stack({
|
|
16915
|
-
gap: "sm",
|
|
16916
|
-
align: "start",
|
|
16917
|
-
className: "rb-space-y-2"
|
|
16918
|
-
}, [link({
|
|
17565
|
+
"data-slot": "group-label"
|
|
17566
|
+
}, when("group.label"), bind("group.label")), el("div", { className: "rb-footer-link-list" }, [link({
|
|
16919
17567
|
className: "rb-block rb-nav-text transition-theme rb-hover-opacity-80",
|
|
16920
17568
|
style: textColorStyle("text"),
|
|
16921
17569
|
href: { $bind: {
|
|
@@ -16941,106 +17589,67 @@ const footerMailingListBindings = {
|
|
|
16941
17589
|
targeting: { $bind: { from: "module.engagement.runtime.targeting" } }
|
|
16942
17590
|
};
|
|
16943
17591
|
const footerSpamProtectionBinding = { spamProtectionEnabled: { $bind: { from: "$root.spamProtectionEnabled" } } };
|
|
16944
|
-
|
|
17592
|
+
/** Shown only in the details strip, where these icons stand in for the headings. */
|
|
17593
|
+
const stripIcon = (value, label, ...mods) => icon({
|
|
17594
|
+
value,
|
|
17595
|
+
"aria-label": label,
|
|
17596
|
+
className: "rb-footer-detail-icon"
|
|
17597
|
+
}, ...mods);
|
|
17598
|
+
const whenInStrip = when("region.slot", { equals: "strip" });
|
|
17599
|
+
const brandLogo = link({
|
|
17600
|
+
href: "/",
|
|
17601
|
+
className: "footer-logo rb-no-underline"
|
|
17602
|
+
}, [el("div", {
|
|
17603
|
+
"data-slot": "media",
|
|
17604
|
+
className: "footer-logo-media"
|
|
17605
|
+
}, [media({ className: "rb-h-10 rb-w-auto" }, when("content.logo"), bind("content", { transforms: [{
|
|
16945
17606
|
id: "layout.chromeLogo",
|
|
16946
17607
|
options: { surface: "footer-root" }
|
|
16947
|
-
}] }))
|
|
16948
|
-
const brandTitle = text({
|
|
17608
|
+
}] }))], when("module.showLogo", { equals: true })), text({
|
|
16949
17609
|
as: "strong",
|
|
16950
|
-
className: "footer-logo-text rb-nav-text"
|
|
16951
|
-
|
|
16952
|
-
|
|
16953
|
-
|
|
16954
|
-
className:
|
|
16955
|
-
|
|
16956
|
-
transforms: [{
|
|
16957
|
-
id: "layout.footerLogoClass",
|
|
16958
|
-
options: { base: "footer-logo rb-inline-flex rb-flex-wrap rb-items-center rb-gap-3 rb-no-underline" }
|
|
16959
|
-
}],
|
|
16960
|
-
fallback: "footer-logo rb-inline-flex rb-flex-wrap rb-items-center rb-gap-3 rb-no-underline"
|
|
16961
|
-
} }
|
|
16962
|
-
}, [brandMedia, brandTitle], (node) => ({
|
|
16963
|
-
...node,
|
|
16964
|
-
$when: {
|
|
16965
|
-
when: {
|
|
16966
|
-
from: "module",
|
|
16967
|
-
transforms: [{ id: "layout.footerBrandArrangement" }]
|
|
16968
|
-
},
|
|
16969
|
-
equals: "row"
|
|
16970
|
-
}
|
|
16971
|
-
}));
|
|
16972
|
-
const centredBrand = stack({
|
|
16973
|
-
gap: "md",
|
|
16974
|
-
align: "center"
|
|
16975
|
-
}, [link({
|
|
16976
|
-
href: "/",
|
|
16977
|
-
"data-slot": { $bind: { from: "module.slots.media" } },
|
|
16978
|
-
className: "footer-logo rb-inline-flex rb-items-center rb-no-underline"
|
|
16979
|
-
}, [brandMedia], when("module.slots.media")), {
|
|
16980
|
-
...brandTitle,
|
|
16981
|
-
props: {
|
|
16982
|
-
...brandTitle.props,
|
|
16983
|
-
"data-slot": { $bind: { from: "module.slots.heading" } }
|
|
16984
|
-
}
|
|
16985
|
-
}], (node) => ({
|
|
16986
|
-
...node,
|
|
16987
|
-
$when: {
|
|
16988
|
-
when: {
|
|
16989
|
-
from: "module",
|
|
16990
|
-
transforms: [{ id: "layout.footerBrandArrangement" }]
|
|
16991
|
-
},
|
|
16992
|
-
equals: "centred"
|
|
16993
|
-
}
|
|
16994
|
-
}));
|
|
16995
|
-
const navigation = stack({
|
|
16996
|
-
gap: "md",
|
|
16997
|
-
className: "rb-w-full"
|
|
17610
|
+
className: "footer-logo-text rb-nav-text",
|
|
17611
|
+
"data-slot": "heading"
|
|
17612
|
+
}, when("module.showTitle", { equals: true }), bind("site.title", { fallback: "Your Site" }))], when("module.kind", { equals: "brand" }));
|
|
17613
|
+
const navigation = el("div", {
|
|
17614
|
+
className: "rb-footer-links",
|
|
17615
|
+
"data-slot": "navigation"
|
|
16998
17616
|
}, [footerNavGroupsLayout, footerNav({
|
|
16999
17617
|
collectionPath: "footerMenu.items",
|
|
17000
17618
|
mode: "links-only",
|
|
17001
|
-
className:
|
|
17002
|
-
from: "module.navigationClassName",
|
|
17003
|
-
fallback: "footer-nav rb-flex rb-flex-wrap rb-gap-x-6 rb-gap-y-3"
|
|
17004
|
-
} },
|
|
17619
|
+
className: "rb-footer-flat-links",
|
|
17005
17620
|
linkClassName: "footer-nav-link rb-block rb-nav-text transition-theme-standard"
|
|
17006
17621
|
})], when("module.kind", { equals: "navigation" }));
|
|
17007
|
-
const legalNavigation = footerNav({
|
|
17622
|
+
const legalNavigation = el("div", { "data-slot": "navigation" }, [footerNav({
|
|
17008
17623
|
collectionPath: "legalFooterMenu.items",
|
|
17009
17624
|
mode: "links-only",
|
|
17010
|
-
className: "rb-
|
|
17625
|
+
className: "rb-footer-legal-links",
|
|
17011
17626
|
linkClassName: "footer-nav-link rb-caption transition-theme-standard"
|
|
17012
|
-
});
|
|
17013
|
-
const address = text({
|
|
17014
|
-
|
|
17015
|
-
|
|
17016
|
-
|
|
17017
|
-
|
|
17018
|
-
gap: "sm",
|
|
17019
|
-
className: { $bind: {
|
|
17020
|
-
from: "module.contactClassName",
|
|
17021
|
-
fallback: "rb-items-start"
|
|
17022
|
-
} }
|
|
17023
|
-
}, [link({
|
|
17627
|
+
})], when("module.kind", { equals: "legal-navigation" }));
|
|
17628
|
+
const address = el("div", { className: "rb-footer-detail" }, [stripIcon("MapPin", "Address", whenInStrip), text({ as: "address" }, bind("module.address"))], when("module.kind", { equals: "business-address" }));
|
|
17629
|
+
const contact = el("div", {
|
|
17630
|
+
"data-slot": "contact",
|
|
17631
|
+
className: "rb-footer-contact"
|
|
17632
|
+
}, [el("div", { className: "rb-footer-detail" }, [el("div", { className: "rb-footer-detail-icon-slot" }, [stripIcon("Phone", "Phone", when("contactLink.kind", { equals: "phone" })), stripIcon("Mail", "Email", when("contactLink.kind", { equals: "email" }))], whenInStrip), link({
|
|
17024
17633
|
href: { $bind: { from: "contactLink.href" } },
|
|
17025
17634
|
className: "rb-nav-text rb-break-words transition-theme-standard"
|
|
17026
|
-
}, [text({ as: "span" }, bind("contactLink.label"))], repeat("module.contactLinks", "contactLink"))], when("module.kind", { equals: "contact" }));
|
|
17027
|
-
const hours =
|
|
17028
|
-
|
|
17029
|
-
className: "rb-
|
|
17030
|
-
|
|
17031
|
-
|
|
17032
|
-
|
|
17033
|
-
|
|
17034
|
-
}, bind("
|
|
17035
|
-
|
|
17036
|
-
|
|
17037
|
-
|
|
17038
|
-
|
|
17039
|
-
|
|
17040
|
-
|
|
17635
|
+
}, [text({ as: "span" }, bind("contactLink.label"))])], repeat("module.contactLinks", "contactLink"))], when("module.kind", { equals: "contact" }));
|
|
17636
|
+
const hours = el("div", { className: "rb-footer-detail" }, [stripIcon("time", "Opening hours", whenInStrip), el("div", {
|
|
17637
|
+
"data-slot": "schedule",
|
|
17638
|
+
className: "rb-footer-hours"
|
|
17639
|
+
}, [el("div", { className: "rb-footer-hours-row" }, [
|
|
17640
|
+
text({
|
|
17641
|
+
as: "span",
|
|
17642
|
+
className: "rb-footer-hours-days"
|
|
17643
|
+
}, bind("hoursRow.days")),
|
|
17644
|
+
text({
|
|
17645
|
+
as: "span",
|
|
17646
|
+
value: " "
|
|
17647
|
+
}),
|
|
17648
|
+
text({ as: "span" }, bind("hoursRow.hours"))
|
|
17649
|
+
], repeat("module.openingHours", "hoursRow"))])], when("module.kind", { equals: "opening-hours" }));
|
|
17041
17650
|
const socials = inline({
|
|
17042
17651
|
className: "rb-footer-socials",
|
|
17043
|
-
"data-slot":
|
|
17652
|
+
"data-slot": "social"
|
|
17044
17653
|
}, [link({
|
|
17045
17654
|
href: { $bind: { from: "social.href" } },
|
|
17046
17655
|
target: "_blank",
|
|
@@ -17048,20 +17657,13 @@ const socials = inline({
|
|
|
17048
17657
|
"aria-label": { $bind: { from: "social.label" } },
|
|
17049
17658
|
className: "rb-footer-social-link rb-nav-text transition-theme-standard"
|
|
17050
17659
|
}, [icon({ className: "rb-footer-social-icon" }, bind("social.icon"), when("social.icon")), text({ as: "span" }, bind("social.label"), when("social.icon", { equals: null }))], repeat("module.socialLinks", "social"))], when("module.kind", { equals: "social-links" }));
|
|
17051
|
-
const authoredCopy = richText({
|
|
17660
|
+
const authoredCopy = (slot, kind) => el("div", { className: "rb-footer-copy" }, [richText({
|
|
17052
17661
|
className: "rb-prose rb-prose-sm rb-max-w-none",
|
|
17053
|
-
"data-slot":
|
|
17054
|
-
style: { $bind: {
|
|
17055
|
-
from: "content.footerRuntime.arrangement",
|
|
17056
|
-
transforms: [{
|
|
17057
|
-
id: "layout.footerModuleInkStyle",
|
|
17058
|
-
options: { opacity: 80 }
|
|
17059
|
-
}]
|
|
17060
|
-
} }
|
|
17662
|
+
"data-slot": slot
|
|
17061
17663
|
}, when("module.content"), bind("module.content", { transforms: [{
|
|
17062
17664
|
id: "content.interpolateRichTextTokens",
|
|
17063
17665
|
options: { tokens: ["year", "site_name"] }
|
|
17064
|
-
}] }));
|
|
17666
|
+
}] }))], when("module.kind", { equals: kind }));
|
|
17065
17667
|
const footerEngagement = stack({
|
|
17066
17668
|
gap: "md",
|
|
17067
17669
|
className: "rb-w-full",
|
|
@@ -17069,7 +17671,8 @@ const footerEngagement = stack({
|
|
|
17069
17671
|
}, [
|
|
17070
17672
|
text({
|
|
17071
17673
|
as: "p",
|
|
17072
|
-
className: "rb-body
|
|
17674
|
+
className: "rb-body",
|
|
17675
|
+
"data-slot": "intro"
|
|
17073
17676
|
}, bind("module.engagement.intro"), when("module.engagement.intro")),
|
|
17074
17677
|
form(withApiBindings({
|
|
17075
17678
|
...footerStandardContactBindings,
|
|
@@ -17110,48 +17713,34 @@ const copyright = text({
|
|
|
17110
17713
|
id: "content.interpolateRichTextTokens",
|
|
17111
17714
|
options: { tokens: ["year", "site_name"] }
|
|
17112
17715
|
}] }), when("module.kind", { equals: "copyright" }));
|
|
17113
|
-
|
|
17114
|
-
|
|
17115
|
-
|
|
17116
|
-
|
|
17117
|
-
|
|
17118
|
-
|
|
17119
|
-
|
|
17120
|
-
|
|
17121
|
-
|
|
17122
|
-
|
|
17716
|
+
/**
|
|
17717
|
+
* Each area runs full width, painted by its band (or on the main ground under a
|
|
17718
|
+
* rule); its content sits in the page container.
|
|
17719
|
+
*/
|
|
17720
|
+
const footerRegion = el("div", {
|
|
17721
|
+
className: "rb-footer-area",
|
|
17722
|
+
"data-slot": { $bind: { from: "region.slot" } },
|
|
17723
|
+
style: { $bind: {
|
|
17724
|
+
from: "region.slot",
|
|
17725
|
+
transforms: [{ id: "layout.footerAreaStyle" }]
|
|
17726
|
+
} }
|
|
17727
|
+
}, [el("div", { className: "rb-container rb-footer-area-inner" }, [el("div", {
|
|
17728
|
+
className: "rb-footer-group",
|
|
17123
17729
|
"data-slot": { $bind: { from: "group.slot" } },
|
|
17124
17730
|
"data-footer-group": { $bind: { from: "group.kind" } }
|
|
17125
|
-
}, [
|
|
17126
|
-
|
|
17127
|
-
align: { $bind: {
|
|
17128
|
-
from: "module.align",
|
|
17129
|
-
fallback: "start"
|
|
17130
|
-
} },
|
|
17131
|
-
className: { $bind: { from: "module.className" } },
|
|
17731
|
+
}, [el("div", {
|
|
17732
|
+
className: "rb-footer-module",
|
|
17132
17733
|
"data-footer-module": { $bind: { from: "module.kind" } },
|
|
17133
17734
|
"data-preview-footer-module-id": { $bind: { from: "module.id" } }
|
|
17134
17735
|
}, [
|
|
17135
17736
|
text({
|
|
17136
17737
|
as: "h2",
|
|
17137
17738
|
className: "rb-label",
|
|
17138
|
-
"data-slot":
|
|
17139
|
-
style: { $bind: {
|
|
17140
|
-
from: "content.footerRuntime.arrangement",
|
|
17141
|
-
transforms: [{
|
|
17142
|
-
id: "layout.footerModuleInkStyle",
|
|
17143
|
-
options: { opacity: 70 }
|
|
17144
|
-
}]
|
|
17145
|
-
} }
|
|
17739
|
+
"data-slot": "group-label"
|
|
17146
17740
|
}, bind("module.heading"), when("module.heading")),
|
|
17147
17741
|
brandLogo,
|
|
17148
|
-
centredBrand,
|
|
17149
17742
|
navigation,
|
|
17150
|
-
|
|
17151
|
-
gap: "sm",
|
|
17152
|
-
className: "rb-w-full",
|
|
17153
|
-
"data-slot": { $bind: { from: "module.slots.navigation" } }
|
|
17154
|
-
}, [legalNavigation], when("module.kind", { equals: "legal-navigation" })),
|
|
17743
|
+
legalNavigation,
|
|
17155
17744
|
address,
|
|
17156
17745
|
contact,
|
|
17157
17746
|
hours,
|
|
@@ -17159,36 +17748,20 @@ const footerGroup = stack({
|
|
|
17159
17748
|
footerEngagement,
|
|
17160
17749
|
copyright,
|
|
17161
17750
|
platformAttribution,
|
|
17162
|
-
|
|
17163
|
-
|
|
17164
|
-
], repeat("group.modules", "module"))], repeat("region.groups", "group"));
|
|
17165
|
-
|
|
17166
|
-
|
|
17167
|
-
|
|
17168
|
-
|
|
17169
|
-
|
|
17170
|
-
|
|
17171
|
-
|
|
17172
|
-
"data-
|
|
17173
|
-
"data-
|
|
17174
|
-
|
|
17175
|
-
|
|
17176
|
-
from: "$root.theme.footer",
|
|
17177
|
-
transforms: [{ id: "layout.footerBottomBarContainerClass" }],
|
|
17178
|
-
fallback: "rb-w-full"
|
|
17179
|
-
} } }, [stack({
|
|
17180
|
-
className: { $bind: {
|
|
17181
|
-
from: "$root.theme.footer",
|
|
17182
|
-
transforms: [{ id: "layout.footerBottomBarClass" }],
|
|
17183
|
-
fallback: "rb-w-full rb-border-t rb-px-6 rb-py-6 rb-text-center"
|
|
17184
|
-
} },
|
|
17185
|
-
style: { $bind: {
|
|
17186
|
-
from: "$root.theme.footer",
|
|
17187
|
-
transforms: [{ id: "layout.footerBottomBarStyle" }]
|
|
17188
|
-
} },
|
|
17189
|
-
"data-slot": { $bind: { from: "region.slot" } },
|
|
17190
|
-
"data-footer-region": "bottom"
|
|
17191
|
-
}, [footerGroup])], when("region.kind", { equals: "bottom" }), repeat("content.footerRuntime.regions", "region"));
|
|
17751
|
+
authoredCopy("intro", "supporting-text"),
|
|
17752
|
+
authoredCopy("caption", "legal")
|
|
17753
|
+
], repeat("group.modules", "module"))], repeat("region.groups", "group"))])], repeat("content.footerRuntime.regions", "region"));
|
|
17754
|
+
/**
|
|
17755
|
+
* The shape the footer draws up into the last page section. It's the page's
|
|
17756
|
+
* boundary element, placed at the top of the footer, so it uses the same CSS.
|
|
17757
|
+
*/
|
|
17758
|
+
const footerEdge = el("div", {
|
|
17759
|
+
"aria-hidden": "true",
|
|
17760
|
+
"data-block-boundary": "",
|
|
17761
|
+
"data-footer-edge": "",
|
|
17762
|
+
"data-boundary-treatment": { $bind: { from: "$root.theme.footer.edge" } },
|
|
17763
|
+
"data-boundary-placement": "previous"
|
|
17764
|
+
}, null, when("$root.theme.footer.edge"));
|
|
17192
17765
|
const siteFooterManifest = createBlockManifest({
|
|
17193
17766
|
variantMeaning: { kind: "arrangement" },
|
|
17194
17767
|
id: "block.site-footer",
|
|
@@ -17198,23 +17771,18 @@ const siteFooterManifest = createBlockManifest({
|
|
|
17198
17771
|
skipSectionStyles: true,
|
|
17199
17772
|
layout: section({
|
|
17200
17773
|
background: "background",
|
|
17201
|
-
className:
|
|
17202
|
-
from: "$root.theme.footer",
|
|
17203
|
-
transforms: [{ id: "layout.footerRootClass" }],
|
|
17204
|
-
fallback: "rb-w-full rb-border-t transition-theme"
|
|
17205
|
-
} },
|
|
17774
|
+
className: "rb-w-full rb-border-t transition-theme",
|
|
17206
17775
|
style: { $bind: {
|
|
17207
17776
|
from: "$root.theme.footer",
|
|
17208
17777
|
transforms: [{ id: "layout.footerRootStyle" }],
|
|
17209
17778
|
fallback: mergeStyles(backgroundColorStyle("surface"), surfaceForegroundStyle({ text: "rgb(var(--tb-text))" }), borderColorStyle("border"))
|
|
17210
17779
|
} },
|
|
17211
|
-
"data-
|
|
17780
|
+
"data-look": { $bind: { from: "content.footerRuntime.lookId" } },
|
|
17212
17781
|
"data-footer-membership": { $bind: { from: "content.footerRuntime.membershipKey" } }
|
|
17213
|
-
}, [
|
|
17214
|
-
|
|
17215
|
-
|
|
17216
|
-
|
|
17217
|
-
]),
|
|
17782
|
+
}, [{
|
|
17783
|
+
...footerEdge,
|
|
17784
|
+
key: "footer-edge"
|
|
17785
|
+
}, footerRegion]),
|
|
17218
17786
|
description: "The footer at the bottom of every page, with your contact details and links.",
|
|
17219
17787
|
styleTokens: { spacing: "md" },
|
|
17220
17788
|
paletteHidden: true
|
|
@@ -18979,7 +19547,11 @@ const bookingWizard = bookingForm(withApiBindings({
|
|
|
18979
19547
|
services: { $bind: { from: "data.services" } },
|
|
18980
19548
|
mailingList: { $bind: { from: "$root.mailingList" } },
|
|
18981
19549
|
siteTerms: { $bind: { from: "$root.siteTerms" } },
|
|
18982
|
-
siteName: { $bind: { from: "$root.siteName" } }
|
|
19550
|
+
siteName: { $bind: { from: "$root.siteName" } },
|
|
19551
|
+
businessPerson: { $bind: {
|
|
19552
|
+
from: "$root.businessPerson",
|
|
19553
|
+
fallback: null
|
|
19554
|
+
} }
|
|
18983
19555
|
}), [], when("data.bookingEnabled", {
|
|
18984
19556
|
equals: false,
|
|
18985
19557
|
not: true
|
|
@@ -19279,8 +19851,8 @@ const weeklySlotAvailabilityManifest = createBlockManifest({
|
|
|
19279
19851
|
{
|
|
19280
19852
|
id: "resourceId",
|
|
19281
19853
|
type: "reference",
|
|
19282
|
-
label: "
|
|
19283
|
-
description: "Only show times for one
|
|
19854
|
+
label: "Team member or room",
|
|
19855
|
+
description: "Only show times for one team member or room, if you'd like.",
|
|
19284
19856
|
required: false,
|
|
19285
19857
|
referenceKind: "appointmentResource",
|
|
19286
19858
|
allowManualEntry: false,
|
|
@@ -20163,10 +20735,28 @@ const groupOverrideFields = [
|
|
|
20163
20735
|
];
|
|
20164
20736
|
const offeringsPreviewFields = [
|
|
20165
20737
|
...sectionHeaderFields("Offerings"),
|
|
20738
|
+
{
|
|
20739
|
+
id: "grouping",
|
|
20740
|
+
type: "select",
|
|
20741
|
+
label: "Grouping",
|
|
20742
|
+
required: false,
|
|
20743
|
+
multiple: false,
|
|
20744
|
+
options: [{
|
|
20745
|
+
value: "by-kind",
|
|
20746
|
+
label: "Grouped by kind"
|
|
20747
|
+
}, {
|
|
20748
|
+
value: "one-list",
|
|
20749
|
+
label: "One list"
|
|
20750
|
+
}],
|
|
20751
|
+
ui: {
|
|
20752
|
+
intent: "display",
|
|
20753
|
+
hidden: true
|
|
20754
|
+
}
|
|
20755
|
+
},
|
|
20166
20756
|
{
|
|
20167
20757
|
id: "itemLimit",
|
|
20168
20758
|
type: "select",
|
|
20169
|
-
label: "Items per
|
|
20759
|
+
label: "Items per kind",
|
|
20170
20760
|
required: false,
|
|
20171
20761
|
multiple: false,
|
|
20172
20762
|
defaultValue: "3",
|
|
@@ -20338,6 +20928,7 @@ function offeringsPreviewHeaderNodes() {
|
|
|
20338
20928
|
const offeringsPreviewLayout = [styledSection({
|
|
20339
20929
|
children: sectionContainer([el("offerings-preview", withApiBindings({
|
|
20340
20930
|
...cardListPresentationBindings,
|
|
20931
|
+
offeringsGrouping: { $bind: { from: "content._effectiveKnobs.grouping.value" } },
|
|
20341
20932
|
carouselRegion: { $bind: { from: "content.heading" } },
|
|
20342
20933
|
renderInput: { $bind: { from: "content._offeringsPreviewInput" } },
|
|
20343
20934
|
showHiddenPlaceholder: { $bind: { from: "content._offeringsPreviewShowHiddenPlaceholder" } },
|
|
@@ -20441,6 +21032,7 @@ const offeringsPreviewBlockDefinition = {
|
|
|
20441
21032
|
manifest: offeringsPreviewManifest,
|
|
20442
21033
|
contentNormalizer: {
|
|
20443
21034
|
fieldIds: [
|
|
21035
|
+
"grouping",
|
|
20444
21036
|
"displayMode",
|
|
20445
21037
|
"oneOffering",
|
|
20446
21038
|
"heading",
|
|
@@ -20539,29 +21131,29 @@ function eventPresetLoader(eventPresets, extraParams = {}) {
|
|
|
20539
21131
|
mode: "server"
|
|
20540
21132
|
};
|
|
20541
21133
|
}
|
|
21134
|
+
const offeringsContentSchema = z.object({
|
|
21135
|
+
grouping: z.enum(["by-kind", "one-list"]).nullish().catch(void 0),
|
|
21136
|
+
heading: z.string().nullish().catch(void 0),
|
|
21137
|
+
description: z.unknown().optional(),
|
|
21138
|
+
itemLimit: z.custom(isOfferingsPreviewItemLimit).optional().catch(void 0),
|
|
21139
|
+
groupOrder: z.array(z.unknown()).transform((values) => values.filter(isOfferingsPreviewSourceKey)).nullish().catch(void 0),
|
|
21140
|
+
groupOverrides: z.array(z.unknown()).transform((values) => values.flatMap(normalizeOfferingsPreviewGroupOverride)).nullish().catch(void 0),
|
|
21141
|
+
_cardStyles: z.unknown().transform(normalizeCardStylesContent),
|
|
21142
|
+
buttonVariant: z.custom(isButtonVariant).optional().catch(void 0),
|
|
21143
|
+
buttonText: z.string().nullish().catch(void 0),
|
|
21144
|
+
emptyMessage: z.string().nullish().catch(void 0),
|
|
21145
|
+
_sectionStyles: z.unknown().transform(normalizeSectionStylesContent)
|
|
21146
|
+
});
|
|
20542
21147
|
function normalizeOfferingsPreviewBlockContent(value) {
|
|
20543
21148
|
const record = normalizeOfferingsPreviewContentForWrite(value);
|
|
20544
21149
|
if (!record) return { displayMode: DEFAULT_OFFERINGS_PREVIEW_DISPLAY_MODE };
|
|
20545
21150
|
const normalized = {
|
|
20546
21151
|
displayMode: normalizeOfferingsPreviewDisplayMode(record.displayMode),
|
|
20547
21152
|
...oneOfferingContent(record.oneOffering),
|
|
20548
|
-
...normalizeCardListContent(record)
|
|
20549
|
-
|
|
20550
|
-
|
|
20551
|
-
|
|
20552
|
-
if (isOfferingsPreviewItemLimit(record.itemLimit)) normalized.itemLimit = record.itemLimit;
|
|
20553
|
-
if (Array.isArray(record.groupOrder)) normalized.groupOrder = record.groupOrder.filter(isOfferingsPreviewSourceKey);
|
|
20554
|
-
else if (record.groupOrder === null) normalized.groupOrder = null;
|
|
20555
|
-
if (Array.isArray(record.groupOverrides)) normalized.groupOverrides = record.groupOverrides.flatMap(normalizeOfferingsPreviewGroupOverride);
|
|
20556
|
-
else if (record.groupOverrides === null) normalized.groupOverrides = null;
|
|
20557
|
-
const cardStyles = normalizeCardStylesContent(record._cardStyles);
|
|
20558
|
-
if (cardStyles !== void 0) normalized._cardStyles = cardStyles;
|
|
20559
|
-
if (isButtonVariant(record.buttonVariant)) normalized.buttonVariant = record.buttonVariant;
|
|
20560
|
-
if (typeof record.buttonText === "string" || record.buttonText === null) normalized.buttonText = record.buttonText;
|
|
20561
|
-
if (typeof record.emptyMessage === "string" || record.emptyMessage === null) normalized.emptyMessage = record.emptyMessage;
|
|
20562
|
-
const sectionStyles = normalizeSectionStylesContent(record._sectionStyles);
|
|
20563
|
-
if (sectionStyles !== void 0) normalized._sectionStyles = sectionStyles;
|
|
20564
|
-
return normalized;
|
|
21153
|
+
...normalizeCardListContent(record),
|
|
21154
|
+
...offeringsContentSchema.parse(record)
|
|
21155
|
+
};
|
|
21156
|
+
return Object.fromEntries(Object.entries(normalized).filter(([, field]) => field !== void 0));
|
|
20565
21157
|
}
|
|
20566
21158
|
function oneOfferingContent(value) {
|
|
20567
21159
|
return typeof value === "boolean" || value === null ? { oneOffering: value } : {};
|
|
@@ -24334,6 +24926,13 @@ const columnCounts = [
|
|
|
24334
24926
|
];
|
|
24335
24927
|
const systemCustomizeFacetDefinitions = [
|
|
24336
24928
|
eventCalendarListLayoutFacet,
|
|
24929
|
+
fixedKnob("block.offerings-preview", "grouping", "Grouping", [{
|
|
24930
|
+
value: "by-kind",
|
|
24931
|
+
label: "Grouped by kind"
|
|
24932
|
+
}, {
|
|
24933
|
+
value: "one-list",
|
|
24934
|
+
label: "One list"
|
|
24935
|
+
}], "by-kind"),
|
|
24337
24936
|
fixedKnob("block.offerings-preview", "dates", "Dates", [{
|
|
24338
24937
|
value: "summary",
|
|
24339
24938
|
label: "Summary"
|
|
@@ -25060,7 +25659,7 @@ function serviceDetailsFacts(service) {
|
|
|
25060
25659
|
value: describePublicRefundPolicy(service.cancellationPolicy.refunds)
|
|
25061
25660
|
},
|
|
25062
25661
|
...practitioners.length ? [{
|
|
25063
|
-
label:
|
|
25662
|
+
label: "With",
|
|
25064
25663
|
value: practitioners.map((person) => person.roleLabel ? `${person.name}, ${person.roleLabel}` : person.name).join("; ")
|
|
25065
25664
|
}] : []
|
|
25066
25665
|
];
|
|
@@ -28599,7 +29198,14 @@ function promote(tree, heading) {
|
|
|
28599
29198
|
return children === tree.props.children ? tree : React.cloneElement(tree, {}, children);
|
|
28600
29199
|
}
|
|
28601
29200
|
/** One page-wide choice; callers receive the final trees and do not recompute heading rules. */
|
|
28602
|
-
function applyPageHeadingSemantics(trees, eventDetailsComponent
|
|
29201
|
+
function applyPageHeadingSemantics(trees, eventDetailsComponent, facts = {
|
|
29202
|
+
scope: "page",
|
|
29203
|
+
overrideOwnsPageHeading: false
|
|
29204
|
+
}) {
|
|
29205
|
+
if (facts.scope === "region" || facts.overrideOwnsPageHeading) return {
|
|
29206
|
+
trees,
|
|
29207
|
+
needsPageTitle: false
|
|
29208
|
+
};
|
|
28603
29209
|
const nodes = [...trees.values()].flatMap(elements);
|
|
28604
29210
|
if (nodes.some((node) => ownsH1(node, eventDetailsComponent))) return {
|
|
28605
29211
|
trees,
|
|
@@ -28861,11 +29467,12 @@ function pageDateRuntimeContext(dataContext) {
|
|
|
28861
29467
|
}
|
|
28862
29468
|
/** Booking context keeps its defaults together across SSR and authoring. */
|
|
28863
29469
|
function pageBookingRuntime(context) {
|
|
28864
|
-
const { bookingTimeZone, bookingOfferingPresets = [], appointmentServicePathPrefix = null } = context ?? {};
|
|
29470
|
+
const { bookingTimeZone, bookingOfferingPresets = [], appointmentServicePathPrefix = null, businessPerson = null } = context ?? {};
|
|
28865
29471
|
return {
|
|
28866
29472
|
bookingTimeZone,
|
|
28867
29473
|
bookingOfferingPresets,
|
|
28868
|
-
appointmentServicePathPrefix
|
|
29474
|
+
appointmentServicePathPrefix,
|
|
29475
|
+
businessPerson
|
|
28869
29476
|
};
|
|
28870
29477
|
}
|
|
28871
29478
|
//#endregion
|
|
@@ -29035,7 +29642,7 @@ function offeringArrangementContent(content, data, context, audience) {
|
|
|
29035
29642
|
const now = new Date(readRuntimeNow(context?.now));
|
|
29036
29643
|
const listing = buildLoadedOfferingsPreviewListing({
|
|
29037
29644
|
now,
|
|
29038
|
-
listingMode: offeringsListingFor(
|
|
29645
|
+
listingMode: offeringsListingFor(readOfferingsGrouping(effectiveOfferingsGrouping(content)), cardListArrangementForContent(content)),
|
|
29039
29646
|
routeCandidates: publicRouteCandidatesSchema.safeParse(data.routeCandidates).data,
|
|
29040
29647
|
...normalized,
|
|
29041
29648
|
presets: context?.bookingOfferingPresets,
|
|
@@ -29057,6 +29664,12 @@ function offeringArrangementContent(content, data, context, audience) {
|
|
|
29057
29664
|
publicVisibility: listing.kind === "no-groups" && listing.reason === "empty-hidden" ? "omitted" : "shown"
|
|
29058
29665
|
};
|
|
29059
29666
|
}
|
|
29667
|
+
function effectiveOfferingsGrouping(content) {
|
|
29668
|
+
const knobs = content._effectiveKnobs;
|
|
29669
|
+
if (typeof knobs !== "object" || knobs === null || !("grouping" in knobs)) return void 0;
|
|
29670
|
+
const grouping = knobs.grouping;
|
|
29671
|
+
return typeof grouping === "object" && grouping !== null && "value" in grouping ? grouping.value : void 0;
|
|
29672
|
+
}
|
|
29060
29673
|
/** Older blocks opt into preparation only when public visibility needs their listing. */
|
|
29061
29674
|
function needsOfferingListing(content, normalized) {
|
|
29062
29675
|
return content._effectiveLook !== void 0 || normalized.groupOverrides?.some((group) => group.hideWhenEmpty === true) === true;
|
|
@@ -29630,24 +30243,29 @@ function PageRendererCore(props) {
|
|
|
29630
30243
|
setContextResolveImageUrlContext(imageResolveContext);
|
|
29631
30244
|
const resolvedRegistry = props.registry ?? getDefaultComponentRegistry();
|
|
29632
30245
|
const readSystemTrees = React$1.useMemo(createPageSystemTreeReader, []);
|
|
30246
|
+
const headingScope = props.headingScope ?? "page";
|
|
29633
30247
|
const headingPresentation = React$1.useMemo(() => applyPageHeadingSemantics(readSystemTrees({
|
|
29634
30248
|
preparation,
|
|
29635
30249
|
dataContext,
|
|
29636
30250
|
registry: resolvedRegistry,
|
|
29637
30251
|
previewAuthoring: props.previewAuthoring,
|
|
29638
30252
|
imageResolveContext
|
|
29639
|
-
}), resolvedRegistry["event-details"]
|
|
30253
|
+
}), resolvedRegistry["event-details"], {
|
|
30254
|
+
scope: headingScope,
|
|
30255
|
+
overrideOwnsPageHeading: overrideOwnsPageHeading(preparation)
|
|
30256
|
+
}), [
|
|
29640
30257
|
preparation,
|
|
29641
30258
|
dataContext,
|
|
29642
30259
|
resolvedRegistry,
|
|
29643
30260
|
props.previewAuthoring,
|
|
29644
30261
|
imageResolveContext,
|
|
29645
|
-
readSystemTrees
|
|
30262
|
+
readSystemTrees,
|
|
30263
|
+
headingScope
|
|
29646
30264
|
]);
|
|
29647
|
-
return wrapRenderedPage(props, plan, !page || preparation.entries.length === 0 ? renderEmptyPage(page, audience) : renderPreparedPage(props, preparation, themeResources, imageResolveContext, headingPresentation));
|
|
30265
|
+
return wrapRenderedPage(props, plan, !page || preparation.entries.length === 0 ? renderEmptyPage(page, audience, headingScope) : renderPreparedPage(props, preparation, themeResources, imageResolveContext, headingPresentation));
|
|
29648
30266
|
}
|
|
29649
|
-
function renderEmptyPage(page, audience) {
|
|
29650
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [page ? /* @__PURE__ */ jsx(PageTitleFallback, { name: page.name }) : null, presentEmptyPage(audience)] });
|
|
30267
|
+
function renderEmptyPage(page, audience, headingScope) {
|
|
30268
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [page && headingScope === "page" ? /* @__PURE__ */ jsx(PageTitleFallback, { name: page.name }) : null, presentEmptyPage(audience)] });
|
|
29651
30269
|
}
|
|
29652
30270
|
function wrapRenderedPage(props, plan, rendered) {
|
|
29653
30271
|
return props.wrapPage ? props.wrapPage(plan, rendered) : rendered;
|
|
@@ -29655,7 +30273,7 @@ function wrapRenderedPage(props, plan, rendered) {
|
|
|
29655
30273
|
function renderPreparedPage(props, preparation, themeResources, imageResolveContext, headingPresentation) {
|
|
29656
30274
|
const resolvedRegistry = props.registry ?? getDefaultComponentRegistry();
|
|
29657
30275
|
const joinSlots = joinSlotsByPair(preparation.joins);
|
|
29658
|
-
const renderRegion = (entries, joins) => entries.map((entry, index) => renderGuardedPlanEntry({
|
|
30276
|
+
const renderRegion = (entries, joins, flow) => entries.map((entry, index) => renderGuardedPlanEntry({
|
|
29659
30277
|
entry,
|
|
29660
30278
|
index,
|
|
29661
30279
|
entries,
|
|
@@ -29665,12 +30283,13 @@ function renderPreparedPage(props, preparation, themeResources, imageResolveCont
|
|
|
29665
30283
|
resolvedRegistry,
|
|
29666
30284
|
systemTrees: headingPresentation.trees,
|
|
29667
30285
|
joinSlots: joins,
|
|
30286
|
+
flow,
|
|
29668
30287
|
wrapBlock: props.wrapBlock,
|
|
29669
30288
|
renderJoin: props.renderJoin
|
|
29670
30289
|
}));
|
|
29671
30290
|
const { main, aside } = preparation.regions;
|
|
29672
30291
|
const title = headingPresentation.needsPageTitle ? /* @__PURE__ */ jsx(PageTitleFallback, { name: props.page?.name ?? "" }) : null;
|
|
29673
|
-
if (aside.length === 0) return /* @__PURE__ */ jsxs("div", { children: [title, renderRegion(main, joinSlots)] });
|
|
30292
|
+
if (aside.length === 0) return /* @__PURE__ */ jsxs("div", { children: [title, renderRegion(main, joinSlots, "main")] });
|
|
29674
30293
|
return /* @__PURE__ */ jsxs("div", {
|
|
29675
30294
|
className: "rb-page-layout",
|
|
29676
30295
|
"data-page-layout": "main-aside",
|
|
@@ -29679,12 +30298,12 @@ function renderPreparedPage(props, preparation, themeResources, imageResolveCont
|
|
|
29679
30298
|
/* @__PURE__ */ jsx("div", {
|
|
29680
30299
|
className: "rb-page-layout__main",
|
|
29681
30300
|
"data-page-region": "main",
|
|
29682
|
-
children: renderRegion(main, joinSlots)
|
|
30301
|
+
children: renderRegion(main, joinSlots, "main")
|
|
29683
30302
|
}),
|
|
29684
30303
|
/* @__PURE__ */ jsx("aside", {
|
|
29685
30304
|
className: "rb-page-layout__aside rb-sticky-below-site-chrome",
|
|
29686
30305
|
"data-page-region": "aside",
|
|
29687
|
-
children: renderRegion(aside, /* @__PURE__ */ new Map())
|
|
30306
|
+
children: renderRegion(aside, /* @__PURE__ */ new Map(), "aside")
|
|
29688
30307
|
})
|
|
29689
30308
|
]
|
|
29690
30309
|
});
|
|
@@ -29773,6 +30392,10 @@ function requireEntryBlockOverride(entry, themeResources) {
|
|
|
29773
30392
|
}
|
|
29774
30393
|
requireBlockOverride(themeResources, entry.override, entry.block.kind);
|
|
29775
30394
|
}
|
|
30395
|
+
/** The footer meets the main flow's last block, which marks itself for the footer edge's reserve. */
|
|
30396
|
+
function pageEndingAttribute(flow, position) {
|
|
30397
|
+
return flow === "main" && (position === "last" || position === "only") ? "" : void 0;
|
|
30398
|
+
}
|
|
29776
30399
|
/**
|
|
29777
30400
|
* Renders one planned block: its wrapper, style-group data attributes,
|
|
29778
30401
|
* boundary reserve space and the join markup that follows it.
|
|
@@ -29833,6 +30456,7 @@ function renderPlanEntry(input) {
|
|
|
29833
30456
|
"data-block-composition": blockComposition?.treatment,
|
|
29834
30457
|
"data-block-composition-kind": blockComposition?.kind,
|
|
29835
30458
|
"data-page-block-position": blockPosition,
|
|
30459
|
+
"data-page-ending": pageEndingAttribute(input.flow, blockPosition),
|
|
29836
30460
|
"data-site-style-boundary-before": reserves.topPlacement,
|
|
29837
30461
|
"data-site-style-boundary-after": reserves.bottomPlacement,
|
|
29838
30462
|
"data-site-style-field-seam": reserves.fieldSeam,
|
|
@@ -29927,6 +30551,9 @@ function resolveSystemBlockTree(input) {
|
|
|
29927
30551
|
return /* @__PURE__ */ jsx(FailedSystemBlockTree, { error });
|
|
29928
30552
|
}
|
|
29929
30553
|
}
|
|
30554
|
+
function overrideOwnsPageHeading(preparation) {
|
|
30555
|
+
return [...preparation.regions.main, ...preparation.regions.aside].some(({ entry }) => (entry.kind === "renderable" || entry.kind === "override-only") && entry.override?.ownsPageHeading === true);
|
|
30556
|
+
}
|
|
29930
30557
|
/** Preserve the block memo's reuse rules while resolving page-wide heading facts. */
|
|
29931
30558
|
function createPageSystemTreeReader() {
|
|
29932
30559
|
const memo = {};
|
|
@@ -30246,6 +30873,14 @@ function resolveSiteCustomBlocks(site) {
|
|
|
30246
30873
|
}
|
|
30247
30874
|
//#endregion
|
|
30248
30875
|
//#region src/rendering/helpers/pageRuntimeSupport.ts
|
|
30876
|
+
/** The booking-related site runtime, with its defaults. */
|
|
30877
|
+
function siteBookingRenderSupport(site) {
|
|
30878
|
+
return {
|
|
30879
|
+
bookingOfferingPresets: site.bookingOfferingPresets ?? [],
|
|
30880
|
+
bookingTimeZone: resolveBookingBusinessTimeZone(site.bookingTimeZone),
|
|
30881
|
+
businessPerson: site.bookingPerson ?? null
|
|
30882
|
+
};
|
|
30883
|
+
}
|
|
30249
30884
|
function buildSiteRenderSupport(site, mediaAssets, locationMapSupport) {
|
|
30250
30885
|
const customBlocks = resolveSiteCustomBlocks(site);
|
|
30251
30886
|
return {
|
|
@@ -30255,14 +30890,13 @@ function buildSiteRenderSupport(site, mediaAssets, locationMapSupport) {
|
|
|
30255
30890
|
venuesById: locationMapSupport.venuesById
|
|
30256
30891
|
} : site.site,
|
|
30257
30892
|
sdkConfig: site.sdkConfig ?? null,
|
|
30258
|
-
bookingOfferingPresets: site.bookingOfferingPresets ?? [],
|
|
30259
30893
|
openingHours: site.businessDetails?.openingHours ?? null,
|
|
30260
30894
|
siteTerms: site.siteTerms,
|
|
30261
30895
|
mailingList: site.mailingList,
|
|
30262
30896
|
interactionContext: site.interactionContext,
|
|
30263
30897
|
businessLocationPermission: site.site.businessLocationPermission,
|
|
30264
30898
|
businessAddressVisibility: site.businessDetails?.addressVisibility ?? "hidden",
|
|
30265
|
-
|
|
30899
|
+
...siteBookingRenderSupport(site),
|
|
30266
30900
|
now: toUtcIsoDateTimeString((/* @__PURE__ */ new Date()).toISOString()),
|
|
30267
30901
|
...customBlocks ? { customBlocks } : {},
|
|
30268
30902
|
supabaseUrl: site.supabaseUrl,
|
|
@@ -30273,8 +30907,9 @@ function buildSiteRenderSupport(site, mediaAssets, locationMapSupport) {
|
|
|
30273
30907
|
};
|
|
30274
30908
|
}
|
|
30275
30909
|
/** Only already-permitted projections reach the block runtime. */
|
|
30276
|
-
function
|
|
30910
|
+
function siteBlockRenderContext(support) {
|
|
30277
30911
|
return {
|
|
30912
|
+
businessPerson: support.businessPerson,
|
|
30278
30913
|
businessLocationPermission: support.site.businessLocationPermission,
|
|
30279
30914
|
businessAddressVisibility: support.businessAddressVisibility ?? "hidden",
|
|
30280
30915
|
businessLocation: support.site.businessLocation ?? null,
|
|
@@ -30870,15 +31505,17 @@ function normalizeSdkCustomBlocks(customBlocks) {
|
|
|
30870
31505
|
}
|
|
30871
31506
|
function toBlocksBlockOverrides(overrides) {
|
|
30872
31507
|
if (!overrides) return void 0;
|
|
30873
|
-
|
|
30874
|
-
|
|
30875
|
-
|
|
30876
|
-
|
|
31508
|
+
return Object.fromEntries(Object.entries(overrides).map(([key, registration]) => {
|
|
31509
|
+
const entry = typeof registration === "object" && "component" in registration ? registration : {
|
|
31510
|
+
component: registration,
|
|
31511
|
+
ownsPageHeading: false
|
|
31512
|
+
};
|
|
31513
|
+
const adapter = (props) => React$1.createElement(entry.component, {
|
|
30877
31514
|
...props,
|
|
30878
31515
|
entrySubrouteContext: props.entrySubrouteContext
|
|
30879
31516
|
});
|
|
30880
|
-
|
|
30881
|
-
|
|
31517
|
+
return [key, Object.assign(adapter, { ownsPageHeading: entry.ownsPageHeading })];
|
|
31518
|
+
}));
|
|
30882
31519
|
}
|
|
30883
31520
|
function toBlocksPageRendererDataContext(dataContext) {
|
|
30884
31521
|
return {
|
|
@@ -30901,7 +31538,8 @@ function toBlocksCommonProps(props) {
|
|
|
30901
31538
|
registry: props.registry,
|
|
30902
31539
|
blockOverrides: toBlocksBlockOverrides(props.blockOverrides),
|
|
30903
31540
|
sdkConfig: props.sdkConfig ? { customBlocks: normalizeSdkCustomBlocks(props.sdkConfig.customBlocks) } : props.sdkConfig,
|
|
30904
|
-
customBlocks: normalizeSdkCustomBlocks(props.customBlocks)
|
|
31541
|
+
customBlocks: normalizeSdkCustomBlocks(props.customBlocks),
|
|
31542
|
+
headingScope: props.headingScope
|
|
30905
31543
|
};
|
|
30906
31544
|
}
|
|
30907
31545
|
function PageRenderer(props) {
|
|
@@ -31049,6 +31687,7 @@ function buildPageIdentityRenderContext(dataContext) {
|
|
|
31049
31687
|
demoEmailSuppressed: dataContext.demoEmailSuppressed,
|
|
31050
31688
|
now: dataContext.now,
|
|
31051
31689
|
siteName: dataContext.siteName,
|
|
31690
|
+
businessPerson: dataContext.businessPerson ?? null,
|
|
31052
31691
|
businessLocationPermission: dataContext.businessLocationPermission,
|
|
31053
31692
|
businessAddressVisibility: dataContext.businessAddressVisibility,
|
|
31054
31693
|
businessLocation: dataContext.businessLocation,
|
|
@@ -31179,4 +31818,4 @@ function Page(props) {
|
|
|
31179
31818
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(HydratorWithContextProps, { ...toPageHydrationBootstrapConfig(props) }), /* @__PURE__ */ jsx(PageContent, { ...props })] });
|
|
31180
31819
|
}
|
|
31181
31820
|
//#endregion
|
|
31182
|
-
export { flowRepeaterGridItems as $, prefetchBlockDataWithFailures as A, getBlockDefinition as B, resolveSdkBlockManifest as C, MISSING_SDK_THEME_ERROR_CODE as D, resolveSiteCustomBlocks as E, resolveAuthoredLinkHref as F, admitTransportedRenderableManifestContent as G, siteFooterManifest as H, isRouteVisibleInStage as I, admitLayoutGridForPlan as J, compileManifestContentContract as K, normalizeRenderStage as L, makeDefaultBlockComponent as M, renderBlock as N, MissingSdkThemeError as O, getDefaultComponentRegistry as P, projectRepeaterGridLayoutForRendering as Q, resolveRouteHrefForStage as R, readInvalidBlockAdmission as S,
|
|
31821
|
+
export { flowRepeaterGridItems as $, prefetchBlockDataWithFailures as A, getBlockDefinition as B, resolveSdkBlockManifest as C, MISSING_SDK_THEME_ERROR_CODE as D, resolveSiteCustomBlocks as E, resolveAuthoredLinkHref as F, admitTransportedRenderableManifestContent as G, siteFooterManifest as H, isRouteVisibleInStage as I, admitLayoutGridForPlan as J, compileManifestContentContract as K, normalizeRenderStage as L, makeDefaultBlockComponent as M, renderBlock as N, MissingSdkThemeError as O, getDefaultComponentRegistry as P, projectRepeaterGridLayoutForRendering as Q, resolveRouteHrefForStage as R, readInvalidBlockAdmission as S, siteBlockRenderContext as T, siteHeaderManifest as U, systemBlockDefinitions as V, blockDesignCapabilityMapFromDefinitions as W, fieldPlanToZod as X, deriveFieldValidationPlan as Y, projectRepeaterGridLayout as Z, buildRenderablePageOutline as _, solvedInksForThemeRuntime as a, buildPageDesignEditorReadModel as at, invalidRenderableBlock as b, MissingBlockOverrideError as c, isSupportedLoaderEndpoint$1 as ct, buildThemeRuntime as d, normalizeRepeaterGridSpan as et, parseBlocksTheme as f, blockDesignInputsForDefinition as g, resolveRuntimeJoinFacts as h, renderWithSdkThemeRuntime as i, parseListLook as it, materializeEntriesMedia as j, requireSdkTheme as k, PageRenderer as l, readPublishedBlockPlacement as lt, isEntryBoundBlockEmpty as m, planLayoutThemeRuntime as n, isRecord$6 as nt, ThemeScope as o, applyCompiledRuntimeFieldsToContent as ot, applyBindingsToContent as p, registeredManifestContentContract as q, renderWithOverrideOnlyRuntime as r, encodePublicProductCategorySelector as rt, EditorPageRenderer as s, compileEditorModelRuntime as st, Page as t, resolveRepeaterGridAcceptedSpans as tt, toBlocksPageRendererDataContext as u, buildSiteRenderSupport as v, sanitizeSdkRuntimeBlockContent as w, projectRenderablePageOutline as x, collectMediaAssetSidecar as y, allOutlineBlocks as z };
|