@riverbankcms/sdk 0.173.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-O50mTMCY.d.ts → BlocksIslandsHydrator-GqVX3I8E.d.ts} +1 -1
- package/dist/_dts/{Page-Bk99sJwV.d.ts → Page-BhUH31M-.d.ts} +27 -16
- package/dist/_dts/{SdkPreviewMode-DzAue6Kj.d.ts → SdkPreviewMode-DBn2x0UL.d.ts} +14 -7
- package/dist/_dts/{client-ZlNEIvlU.d.ts → client-Cr-sOeSl.d.ts} +1 -1
- package/dist/_dts/{content-types-DBXPNc0h.d.ts → content-types-DKw1yJdN.d.ts} +2 -2
- package/dist/_dts/{contracts-D9bhu0bb.d.ts → contracts-CJ2O03nB.d.ts} +5 -4
- package/dist/_dts/{footerPageOutline-Bfap3soN.d.ts → footerPageOutline-DoGHHKr_.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-DwCdg31h.d.ts → generatePageMetadata-CJGu4hoa.d.ts} +2 -2
- package/dist/_dts/{index-C611wjIL.d.ts → index--39uLjrr.d.ts} +1 -1
- package/dist/_dts/{index-CJzs-yIJ.d.ts → index-3GzargmS.d.ts} +2 -2
- package/dist/_dts/{index-Dq_AboWN.d.ts → index-Bq-488M7.d.ts} +1 -1
- package/dist/_dts/{index-KXh8FQ2s.d.ts → index-DQZ5L0Gb.d.ts} +2 -2
- package/dist/_dts/{index-DutLU2d2.d.ts → index-DYlfdT1O.d.ts} +2 -1
- package/dist/_dts/{index-BnatulTs.d.ts → index-DYsP4k6S.d.ts} +3 -3
- package/dist/_dts/{index-DW3eeNph.d.ts → index-DdEi2iXd.d.ts} +4 -4
- package/dist/_dts/{loadContent-Bde2y870.d.ts → loadContent-BVPagYmy.d.ts} +11 -11
- package/dist/_dts/{request-Bysk4QPI.d.ts → request-Be1E-H-V.d.ts} +3559 -1967
- package/dist/_dts/{resolveBlockData-ChbNvpSF.d.ts → resolveBlockData-D1pL25bD.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-CGa6QMgc.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 +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +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-BwitGNTl.d.ts → types-5MeDI1w8.d.ts} +7 -7
- package/dist/_dts/{types-BoEk9ZON.d.ts → types-Bm5_3VEd.d.ts} +3 -3
- package/dist/_dts/{types-kpp8XyXv.d.ts → types-CVoCc_Ia.d.ts} +2 -2
- package/dist/_dts/{validation-ChftKX-o.d.ts → validation-lEtYD-Rh.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-BnUeSE3d.mjs → BlocksIslandsHydrator-DkflFLGQ.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-LHQMODqB.mjs → BookingMailingListNote-CAyoiAGD.mjs} +10 -10
- package/dist/client/{BookingPanelArrangement-Be704P85.mjs → BookingPanelArrangement-C7yiJrxm.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-BewbU_cV.mjs → BookingQuestionFields-DZMrGvBh.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-BMZp3RS3.mjs → CalendarNavigationChevron-BPQU5Snc.mjs} +6 -6
- package/dist/client/{DemoBookingPortalAccess-CARUWQ_E.mjs → DemoBookingPortalAccess-BnEgvJas.mjs} +5 -5
- package/dist/client/{EventCalendar.client-CaI6upCX.mjs → EventCalendar.client-BiWQc28-.mjs} +9 -9
- package/dist/client/{EventCombined.client-CoRUaYHY.mjs → EventCombined.client-B_ytWQtn.mjs} +7 -7
- package/dist/client/{EventItem-Doe4KodB.mjs → EventItem-C-mxXpX_.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-CXWLKDfa.mjs → EventListWeekNavigation-Bm3Ap1Rd.mjs} +1 -1
- package/dist/client/{EventListing.client-DvJ5tGTx.mjs → EventListing.client-Bs_8im5_.mjs} +3 -3
- package/dist/client/{EventListing.view-BmfyK7S5.mjs → EventListing.view-CN7BjGgC.mjs} +6 -6
- package/dist/client/{EventRegistrationPayment-DwMlJB2V.mjs → EventRegistrationPayment-DPkRcSdw.mjs} +11 -10
- package/dist/client/{LocationMapActions-CdRPU6gp.mjs → LocationMapActions-BJT7MqP2.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-DCLtxOnt.mjs → MapDrawingSvg-DCIwlON6.mjs} +1 -1
- package/dist/client/{Page-D46Dmr7b.mjs → Page--xJ23nA5.mjs} +629 -494
- package/dist/client/{StepIndicator-CrSZCZn1.mjs → StepIndicator-D391QRNc.mjs} +9 -8
- package/dist/client/{accessibleSurfaces-D4DhWo9j.mjs → accessibleSurfaces-DN8it_Cx.mjs} +35 -7
- package/dist/client/{accordion-P8xcfKxq.mjs → accordion-BQtTkDN8.mjs} +1 -1
- package/dist/client/{bookability-SargNwlO.mjs → bookability-CE637yDE.mjs} +1 -1
- package/dist/client/{booking-form.client-BM2s-NqR.mjs → booking-form.client-D9M7TKGV.mjs} +362 -47
- package/dist/client/{bookingForm-JnaZPZge.mjs → bookingForm-BsOS0sl9.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{boxStyleClassNames-Cahps5kR.mjs → boxStyleClassNames-CNDLpT06.mjs} +1 -1
- package/dist/client/{carousel-CQQ_m0KA.mjs → carousel-CPsW-FPh.mjs} +1 -1
- package/dist/client/{cart-0Q4fjw_K.mjs → cart-CwElmocm.mjs} +3 -3
- package/dist/client/{cart.client-BI0IaHX3.mjs → cart.client-RpqI56w8.mjs} +1 -1
- package/dist/client/{checkout-1J-3ftxF.mjs → checkout-CfMgqY8H.mjs} +3 -3
- package/dist/client/{checkout.client-DOGYDlDk.mjs → checkout.client-BpuPyOuJ.mjs} +1 -1
- package/dist/client/{checkoutUrls-CwHqcqzP.mjs → checkoutUrls-VeHY6WYj.mjs} +1 -1
- package/dist/client/client.mjs +158 -7
- package/dist/client/{context-D0KCgbOq.mjs → context-CNlesLfF.mjs} +1 -1
- package/dist/client/{course-CmOuoZHN.mjs → course-q1sA4Cj-.mjs} +2 -2
- package/dist/client/{creditProducts-BTRX4edc.mjs → creditProducts-KYMVIH3J.mjs} +2 -84
- package/dist/client/{dateFormatting-Dmfaczzq.mjs → dateFormatting-B73Ll0s4.mjs} +9 -1
- package/dist/client/{demoPortalMagicLink-CL7KGRta.mjs → demoPortalMagicLink-BVbLD4pi.mjs} +1 -1
- package/dist/client/{display-lL-YRApN.mjs → display-D8MW2b0e.mjs} +618 -397
- package/dist/client/{enhanceHeaderSection-B-eLGs2C.mjs → enhanceHeaderSection-BzjY6AiY.mjs} +3 -3
- package/dist/client/{event-details.client-DH1-Jxsh.mjs → event-details.client-CseTWUFC.mjs} +1 -1
- package/dist/client/{event-registration.client-GuuElczW.mjs → event-registration.client-b5TLxntR.mjs} +11 -11
- package/dist/client/{eventCalendar-BiCINPkV.mjs → eventCalendar-C-kJNIc9.mjs} +4 -4
- package/dist/client/{eventCombined-BtzmH6FW.mjs → eventCombined-BgHJGhwE.mjs} +4 -4
- package/dist/client/{eventDetails-BJpAD10-.mjs → eventDetails-CAwbreD0.mjs} +2 -2
- package/dist/client/{eventListing-jLB8iRqp.mjs → eventListing-_14atrj8.mjs} +4 -4
- package/dist/client/{eventRegistration-WhtpDEbq.mjs → eventRegistration-BOqSdstJ.mjs} +4 -4
- package/dist/client/{form-DO6qKH3M.mjs → form-DfAB-llc.mjs} +3 -3
- package/dist/client/{form.client-D12ljYiX.mjs → form.client-DN-I9_qC.mjs} +6 -6
- package/dist/client/{form.parts-C8QHaQOI.mjs → form.parts-t2Q1neM6.mjs} +1 -1
- package/dist/client/{formatDate-BnhfIpCa.mjs → formatDate-Dp7POa9Y.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-BtFWtoUm.mjs → headerSection-Dces54pb.mjs} +2 -2
- package/dist/client/{newsletter-form.client-oHrqM_Ao.mjs → newsletter-form.client-D_YFUlR2.mjs} +9 -7
- package/dist/client/{newsletter-form.parts-D5U-FuVy.mjs → newsletter-form.parts-URO5Mn_I.mjs} +1 -1
- package/dist/client/{newsletterForm-CBYbFxSx.mjs → newsletterForm-_c9fKIzS.mjs} +3 -3
- package/dist/client/{noop-CN0o0yjH.mjs → noop-D5mFWXtN.mjs} +30 -6
- package/dist/client/portal/client.mjs +346 -272
- package/dist/client/{product-detail.client-d_sNCapC.mjs → product-detail.client-CVW1UIxJ.mjs} +1 -1
- package/dist/client/{product-list.client-DkSpw6WQ.mjs → product-list.client-CF9hO23G.mjs} +1 -1
- package/dist/client/{productDetail-DaqM-LgL.mjs → productDetail-C_qbmUuP.mjs} +3 -3
- package/dist/client/{productList-CMx4-XlG.mjs → productList-Df5qDD0z.mjs} +3 -3
- package/dist/client/{propsDecoder-BZbUKstC.mjs → propsDecoder-BiEyK2ii.mjs} +3 -3
- package/dist/client/{registry.server-Cdot3dMk.mjs → registry.server-ClcfWpvM.mjs} +28 -26
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +17 -13
- package/dist/client/{richText-coerce-ByApwB4q.mjs → richText-coerce-C32cRQ03.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DTET8f__.mjs → routeIslandApiConfig-DAypPzSo.mjs} +1 -1
- package/dist/client/{runtimeResponse-IkOwKZD0.mjs → runtimeResponse-9v8q2NBc.mjs} +1 -1
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +3 -0
- package/dist/client/{shop-commerce-oDR76k1q.mjs → shop-commerce-Bw4_BXQg.mjs} +12 -12
- package/dist/client/{shop-commerce-store-DjoUpL3a.mjs → shop-commerce-store-Da6Ah-_4.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-WsGb9DD8.mjs → shop-discount-apply.state-DidgH7ow.mjs} +2 -2
- package/dist/client/{shop-Cy6xXDM7.mjs → shop-gteEpeO5.mjs} +3 -3
- package/dist/client/{shop.client-Brha4BSM.mjs → shop.client-CbbdjWWd.mjs} +13 -13
- package/dist/client/{shop.interactive-CXhYl0DW.mjs → shop.interactive-CKFORzux.mjs} +13 -20
- package/dist/client/{shopShared-JCa_SRhP.mjs → shopShared-C7QjoywZ.mjs} +2 -2
- package/dist/client/{timetableModel-CZeJwMxP.mjs → timetableModel-CtZiIj9q.mjs} +24 -14
- package/dist/client/{useAvailableSlots-DfbSkWop.mjs → useAvailableSlots-CUVRD1nx.mjs} +24 -4
- package/dist/client/{useDiscountApply-Dq-wjb1d.mjs → useDiscountApply-BZU5DWZQ.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-Cyy0meCH.mjs → useDiscountCodeUi-BuLgof7O.mjs} +1 -1
- package/dist/client/{useEventPagination-CCAGQHsD.mjs → useEventPagination-B4VPtSEF.mjs} +6 -6
- package/dist/client/{view-Sw075FOY.mjs → view-CvlTplao.mjs} +2 -2
- package/dist/client/{view-D6yebI4r.mjs → view-CxUpgcM6.mjs} +12 -10
- 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-DG2rXUmo.mjs → PageSectionToolbar-BFbSrDbi.mjs} +57 -144
- package/dist/preview-next/client/{PreviewEditorSidebar-BDY5vdHU.mjs → PreviewEditorSidebar-BtpzqQ-i.mjs} +758 -1279
- package/dist/preview-next/client/{PreviewEditorUI-CqZCfOaz.mjs → PreviewEditorUI-z22h-CCY.mjs} +29 -26
- package/dist/preview-next/client/{PreviewShell-Bv2HZ7JY.mjs → PreviewShell-BW3Qpoa_.mjs} +50 -30
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BMTcR-MW.mjs → SdkPreviewModeRuntime-BvVeK1hR.mjs} +47 -19
- package/dist/preview-next/client/{lucide-react-BCNn8dEQ.mjs → lucide-react-Dfgl3Vtq.mjs} +7 -1
- package/dist/preview-next/client/{previewAssistantSlot-La6MerV_.mjs → previewAssistantSlot-BUqAh1FL.mjs} +100626 -51720
- package/dist/preview-next/client/{previewChromeRoot-BcOQqJIP.mjs → previewChromeRoot-NCy5zHO8.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-BkckHox4.mjs → sdk-runtime-CxmKDVGZ.mjs} +2 -2
- package/dist/preview-next/client/siteStyleAccess-B_UaDyJO.mjs +9356 -0
- package/dist/preview-next/client/{useAutosaveStatus-CPAHgGqI.mjs → useAutosaveStatus-BqmWvPLY.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-BDkuSZxQ.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-CPV30ABr.mjs → route-contract-DV6SeCNv.mjs} +152 -2
- package/dist/server/{Block.shared-BaMMstO1.mjs → Block.shared-Ch2FKAvU.mjs} +10 -5
- 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-Dge4sqel.mjs → bindings-CQg2lzZn.mjs} +6 -4
- package/dist/server/{client-VVIQjC4r.mjs → client-aYRTVneD.mjs} +155 -4
- 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/index.mjs +2 -2
- package/dist/server/{loadContent-BIJb3WAK.mjs → loadContent-Cgpfr44e.mjs} +8 -9
- package/dist/server/{loadPage-DjTU19y7.mjs → loadPage-RDk10NMP.mjs} +3 -3
- package/dist/server/lookMediaFrame-CQtkvlDn.mjs +2528 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/next.mjs +9 -8
- package/dist/server/{overrideResolution-1Ru3NMQj.mjs → overrideResolution-VhhN94d8.mjs} +3 -4
- package/dist/server/page-converter.mjs +2 -2
- package/dist/server/{pageRenderPlan-CytPhrI9.mjs → pageRenderPlan-CkFTsxkd.mjs} +25 -17
- package/dist/server/{pageRuntimeSupport-DWspU5EZ.mjs → pageRuntimeSupport-CpAtzNxD.mjs} +14 -6
- package/dist/server/{pageShared-Bhx8bVe1.mjs → pageShared-B8yLPjs0.mjs} +371 -56
- package/dist/server/{parseThemeForPersistence-CtgRtvo3.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-BjvFb0CA.mjs → prebuild-DOu6QceG.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Db3stNpp.mjs → prefetchBlockData-CfOXFKYG.mjs} +2 -2
- package/dist/server/{registry-BMCfcev6.mjs → registry-34rkAfaU.mjs} +608 -3131
- 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 +7 -7
- package/dist/server/{resolveBlockData--yUbI-Ll.mjs → resolveBlockData-D7VeoWgr.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-CCPUY9Xh.mjs → resolveButtonColourStates--6yJp9Tq.mjs} +15 -4
- package/dist/server/{schema-D5Vfmqzw.mjs → schema-CUDHMirj.mjs} +46 -153
- 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-EgTtnTcY.mjs → validation-CLVKoJrX.mjs} +4 -4
- package/dist/server/{version-LjgU0Cq1.mjs → version-HVfdvBJ0.mjs} +1 -1
- package/dist/styles/index.css +935 -271
- package/package.json +1 -1
- package/dist/client/runtimeResponse-Wd6kwhE_.mjs +0 -3
- package/dist/preview-next/client/SiteChromeCustomizeButton-D1MGyN_Z.mjs +0 -55403
- package/dist/server/customCss-QymcmOZ-.mjs +0 -97
- package/dist/server/opaqueSurface-COEKXVwk.mjs +0 -54
|
@@ -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 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-
|
|
8
|
-
import { g as plainTextToInlineText, h as parseInlineTextFromUnknown, m as inlineTextToPlainText, p as coerceInlineTextWithFallback } from "./timetableModel-
|
|
9
|
-
import { $ as solveSurfaceInks, A as DEFAULT_BUTTON_SIZES,
|
|
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,22 +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
|
-
/** The root is transparent for detached chrome or an explicitly transparent bar. */
|
|
846
|
-
function headerRootIsTransparent(header) {
|
|
847
|
-
return headerRootPaint(header) !== "own-surface" || header?.background?.type === "color" && header.background.color === "transparent";
|
|
848
|
-
}
|
|
849
|
-
//#endregion
|
|
850
834
|
//#region ../theme-core/src/cards/constants.ts
|
|
851
835
|
/**
|
|
852
836
|
* Corner style to border-radius value map for content-bearing card surfaces.
|
|
@@ -2044,6 +2028,22 @@ const headerStyleCatalog = defineExactCatalog()([
|
|
|
2044
2028
|
new Map(headerLayoutCatalog.map((layout) => [layout.id, layout]));
|
|
2045
2029
|
new Map(headerStyleCatalog.map((style) => [style.id, style]));
|
|
2046
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
|
|
2047
2047
|
//#region ../theme-core/src/site-styles/siteChromeNavPreferences.ts
|
|
2048
2048
|
/**
|
|
2049
2049
|
* Applies the user's nav font-role/size overrides on top of a style-resolved
|
|
@@ -3337,6 +3337,18 @@ function transparentHeaderForegroundInput(header, palette) {
|
|
|
3337
3337
|
return authoredTransparentHeaderForegroundInput(header, palette);
|
|
3338
3338
|
}
|
|
3339
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) {
|
|
3340
3352
|
const text = headerLeafTextColor(header);
|
|
3341
3353
|
const style = effectiveHeaderNavLinkStyle(header);
|
|
3342
3354
|
const link = style?.colorToken ?? text;
|
|
@@ -3349,10 +3361,9 @@ function authoredTransparentHeaderForegroundInput(header, palette) {
|
|
|
3349
3361
|
backdrops: null
|
|
3350
3362
|
});
|
|
3351
3363
|
return {
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
hoverDecoration: navLinkOwnsUnderline(style) ? "initial" : hover.decoration
|
|
3364
|
+
link,
|
|
3365
|
+
linkHover: hover.token,
|
|
3366
|
+
hoverDecoration: hover.decoration
|
|
3356
3367
|
};
|
|
3357
3368
|
}
|
|
3358
3369
|
//#endregion
|
|
@@ -3611,64 +3622,41 @@ function certified(states) {
|
|
|
3611
3622
|
}
|
|
3612
3623
|
//#endregion
|
|
3613
3624
|
//#region ../theme-core/src/footer/footerForegrounds.ts
|
|
3614
|
-
|
|
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. */
|
|
3615
3635
|
function resolveFooterRootForeground(footer, palette, proseHoverCandidate) {
|
|
3616
|
-
return resolveSurfaceForeground(
|
|
3636
|
+
return resolveSurfaceForeground({
|
|
3617
3637
|
type: "color",
|
|
3618
|
-
color:
|
|
3638
|
+
color: footerMainPaint(footer).ground
|
|
3619
3639
|
}, palette, footerForegroundCandidates(footer, proseHoverCandidate), { compositeBase: "background" });
|
|
3620
3640
|
}
|
|
3621
|
-
function resolveFooterBottomBarPaint(footer, palette) {
|
|
3622
|
-
const bar = footer.bottomBar;
|
|
3623
|
-
if (!bar) return { kind: "inherits" };
|
|
3624
|
-
const root = resolveFooterRootForeground(footer, palette);
|
|
3625
|
-
const ground = root.kind === "known" && root.provenance.kind === "measured" ? root.provenance.backdropHex : null;
|
|
3626
|
-
return bar.background?.type === "color" ? {
|
|
3627
|
-
kind: "surface",
|
|
3628
|
-
foreground: barSurfaceForeground(footer, bar.background, ground, palette)
|
|
3629
|
-
} : barTextPaint(footer, root, ground, palette);
|
|
3630
|
-
}
|
|
3631
|
-
/** A bar with its own colour owns a contract, composited over the footer's measured ground. */
|
|
3632
|
-
function barSurfaceForeground(footer, background, ground, palette) {
|
|
3633
|
-
const bar = footer.bottomBar;
|
|
3634
|
-
return resolveSurfaceForeground(background, palette, {
|
|
3635
|
-
text: bar?.textColor,
|
|
3636
|
-
link: footer.bottomTextLinkStyle?.colorToken ?? bar?.textColor,
|
|
3637
|
-
linkHover: footer.bottomTextLinkStyle?.hoverColorToken
|
|
3638
|
-
}, { compositeBase: ground });
|
|
3639
|
-
}
|
|
3640
|
-
/** A bar without its own colour paints its declared text on the footer's ground. */
|
|
3641
|
-
function barTextPaint(footer, root, ground, palette) {
|
|
3642
|
-
const declared = footer.bottomBar?.textColor;
|
|
3643
|
-
if (footer.background?.contentOwner === "site-chrome-editor" || !declared) return { kind: "inherits" };
|
|
3644
|
-
if (!ground) return {
|
|
3645
|
-
kind: "unmeasured",
|
|
3646
|
-
declared
|
|
3647
|
-
};
|
|
3648
|
-
return {
|
|
3649
|
-
kind: "ink",
|
|
3650
|
-
declared,
|
|
3651
|
-
paint: certifyPaint("footer bottom bar text", paintedInk(declared, root), contrastThresholdByPolicy["body-aa"], ground, { palette })
|
|
3652
|
-
};
|
|
3653
|
-
}
|
|
3654
3641
|
/**
|
|
3655
|
-
*
|
|
3656
|
-
*
|
|
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.
|
|
3657
3645
|
*/
|
|
3658
|
-
function
|
|
3659
|
-
const
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
const
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
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 });
|
|
3672
3660
|
}
|
|
3673
3661
|
//#endregion
|
|
3674
3662
|
//#region ../theme-core/src/header/dropdownSurface.ts
|
|
@@ -5269,6 +5257,23 @@ function generateCheckableCss(input) {
|
|
|
5269
5257
|
].join("\n\n");
|
|
5270
5258
|
}
|
|
5271
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
|
|
5272
5277
|
//#region ../theme-core/src/inputs/inputGroup.ts
|
|
5273
5278
|
/**
|
|
5274
5279
|
* Input group: a field and an action (usually a themed button) sharing one
|
|
@@ -5380,10 +5385,12 @@ function generateInputCss({ themeId, theme, inputSystem }) {
|
|
|
5380
5385
|
baseInputRules.push(`color: ${rgbColorValue(inputSystem.base.textColorToken)}`);
|
|
5381
5386
|
const borderPx = parseBorderWidth(inputSystem.base.border.widthClass);
|
|
5382
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)}`);
|
|
5383
5390
|
if (borderStyle === "underline") {
|
|
5384
5391
|
baseInputRules.push("border: none");
|
|
5385
|
-
baseInputRules.push(`border-bottom: ${borderPx} solid ${
|
|
5386
|
-
} 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})`);
|
|
5387
5394
|
if (borderStyle === "underline") baseInputRules.push("border-radius: 0");
|
|
5388
5395
|
else {
|
|
5389
5396
|
const borderRadius = CORNER_MAP$1[inputSystem.base.corners ?? theme.corners];
|
|
@@ -5446,7 +5453,7 @@ function generateInputCss({ themeId, theme, inputSystem }) {
|
|
|
5446
5453
|
`${rootSelector} ${INPUT_GROUP_ERROR_SELECTOR}`
|
|
5447
5454
|
];
|
|
5448
5455
|
const errorRules = [];
|
|
5449
|
-
errorRules.push(`border-color: ${
|
|
5456
|
+
errorRules.push(`border-color: var(${INPUT_ERROR_BORDER_COLOR_VAR})`);
|
|
5450
5457
|
errorRules.push(`color: ${rgbColorValue(inputSystem.error.textColorToken)}`);
|
|
5451
5458
|
const disabledSelectors = [
|
|
5452
5459
|
`${inputSelector}:disabled`,
|
|
@@ -5461,7 +5468,7 @@ function generateInputCss({ themeId, theme, inputSystem }) {
|
|
|
5461
5468
|
const checkableCss = generateCheckableCss({
|
|
5462
5469
|
root: rootSelector,
|
|
5463
5470
|
borderWidth: borderPx,
|
|
5464
|
-
borderColor:
|
|
5471
|
+
borderColor: inputEdgeColorValue(inputSystem.base.border.colorToken),
|
|
5465
5472
|
background: inputBackgroundValue(inputSystem.base.background),
|
|
5466
5473
|
corners: inputSystem.base.corners ?? theme.corners,
|
|
5467
5474
|
accentToken: inputSystem.focus.borderColorToken ?? inputSystem.focus.ringColorToken,
|
|
@@ -5917,6 +5924,239 @@ function buildHeaderSurfaceRules(header, tokens) {
|
|
|
5917
5924
|
};
|
|
5918
5925
|
}
|
|
5919
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
|
|
5920
6160
|
//#region ../theme-core/src/header/generateHeaderNavLinkStyles.ts
|
|
5921
6161
|
function generateHeaderNavLinkStyles(header, themeId, tokens, theme, contrastTreatment, navTextSize) {
|
|
5922
6162
|
const style = effectiveHeaderNavLinkStyle(header, contrastTreatment, navTextSize);
|
|
@@ -5924,19 +6164,20 @@ function generateHeaderNavLinkStyles(header, themeId, tokens, theme, contrastTre
|
|
|
5924
6164
|
console.warn(`[generateHeaderCss] Nav link preset not found: ${header.navStyle}`);
|
|
5925
6165
|
return "";
|
|
5926
6166
|
}
|
|
6167
|
+
const renderedStyle = mergeHeaderNavTypographyPreference(style, {
|
|
6168
|
+
typography: header.navFontRole ?? "inherit",
|
|
6169
|
+
fontSize: readHeaderNavFontSizePreference(header.navTextSize),
|
|
6170
|
+
interactionPalette: header.interactionPalette ?? "recommended"
|
|
6171
|
+
});
|
|
5927
6172
|
return generateNavLinkCSS({
|
|
5928
6173
|
themeId,
|
|
5929
6174
|
tokens,
|
|
5930
6175
|
theme,
|
|
5931
|
-
style:
|
|
5932
|
-
typography: header.navFontRole ?? "inherit",
|
|
5933
|
-
fontSize: readHeaderNavFontSizePreference(header.navTextSize),
|
|
5934
|
-
interactionPalette: header.interactionPalette ?? "recommended"
|
|
5935
|
-
}),
|
|
6176
|
+
style: renderedStyle,
|
|
5936
6177
|
className: "header-nav-link",
|
|
5937
6178
|
surfaceDependent: true,
|
|
5938
6179
|
surfaceRestingColor: header.background?.contentOwner === siteChromeBackgroundOverrideOwner
|
|
5939
|
-
});
|
|
6180
|
+
}) + generateHeaderNavEffectContrastCss(header, renderedStyle, theme, themeId);
|
|
5940
6181
|
}
|
|
5941
6182
|
//#endregion
|
|
5942
6183
|
//#region ../theme-core/src/header/generateHeaderLogoStyles.ts
|
|
@@ -6511,6 +6752,11 @@ const placementRules = {
|
|
|
6511
6752
|
band: null
|
|
6512
6753
|
}
|
|
6513
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'])";
|
|
6514
6760
|
function generateBoundaryCss(selector) {
|
|
6515
6761
|
const boundary = `${selector} [data-block-boundary]`;
|
|
6516
6762
|
return [
|
|
@@ -6520,8 +6766,8 @@ function generateBoundaryCss(selector) {
|
|
|
6520
6766
|
"height: 0;",
|
|
6521
6767
|
"pointer-events: none;"
|
|
6522
6768
|
]),
|
|
6523
|
-
rule(`${selector} [data-block][data-site-style-boundary-before] >
|
|
6524
|
-
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));"]),
|
|
6525
6771
|
rule(`${boundary}::before,\n${boundary}::after`, [
|
|
6526
6772
|
"content: '';",
|
|
6527
6773
|
"position: absolute;",
|
|
@@ -6533,9 +6779,28 @@ function generateBoundaryCss(selector) {
|
|
|
6533
6779
|
rule(`${boundary}::before`, ["z-index: 0;", "background: var(--boundary-band-paint, transparent);"]),
|
|
6534
6780
|
rule(`${boundary}::after`, ["z-index: 1;"]),
|
|
6535
6781
|
...placementCss(boundary),
|
|
6536
|
-
...transitionCatalogueEntries.flatMap((entry) => treatmentCss(boundary, entry))
|
|
6782
|
+
...transitionCatalogueEntries.flatMap((entry) => treatmentCss(boundary, entry)),
|
|
6783
|
+
...transitionCatalogueEntries.flatMap((entry) => footerEdgeReserveCss(selector, entry))
|
|
6537
6784
|
].join("\n\n");
|
|
6538
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
|
+
}
|
|
6539
6804
|
function placementCss(boundary) {
|
|
6540
6805
|
return Object.keys(placementRules).flatMap((placement) => {
|
|
6541
6806
|
const placed = `${boundary}[data-boundary-placement='${placement}']`;
|
|
@@ -7670,7 +7935,7 @@ function generateAllBlockVarsCss(context) {
|
|
|
7670
7935
|
const css = generator(context);
|
|
7671
7936
|
if (css) cssChunks.push(css.trim());
|
|
7672
7937
|
}
|
|
7673
|
-
return cssChunks.join("\n\n");
|
|
7938
|
+
return [...cssChunks, generateLookMediaFrameCss(context.themeId)].join("\n\n");
|
|
7674
7939
|
}
|
|
7675
7940
|
/**
|
|
7676
7941
|
* Generate CSS for user-defined block custom variables.
|
|
@@ -13885,7 +14150,7 @@ const serviceDetailsBlockDefinition = {
|
|
|
13885
14150
|
version: "1.0.0",
|
|
13886
14151
|
title: "Service details",
|
|
13887
14152
|
titleSource: "heading",
|
|
13888
|
-
description: "Duration, price, location, cancellation terms and
|
|
14153
|
+
description: "Duration, price, location, cancellation terms and who the service is with.",
|
|
13889
14154
|
category: "events-and-bookings",
|
|
13890
14155
|
requiredFeatures: ["bookings.appointments"],
|
|
13891
14156
|
contentSource: { kind: "inline" },
|
|
@@ -16517,25 +16782,6 @@ function heroHeadlineText(content, policy) {
|
|
|
16517
16782
|
return policy === "look" ? inlineTextToPlainText(coerceInlineTextWithFallback(content.headlineInline, plain)).trim() : plain?.trim() ?? "";
|
|
16518
16783
|
}
|
|
16519
16784
|
//#endregion
|
|
16520
|
-
//#region ../blocks/src/system/transforms/registry/footerArrangement.ts
|
|
16521
|
-
const footerBrandArrangementTransform = {
|
|
16522
|
-
id: "layout.footerBrandArrangement",
|
|
16523
|
-
kind: "string",
|
|
16524
|
-
run: (value) => {
|
|
16525
|
-
const module = asPartialObject(value);
|
|
16526
|
-
return module?.kind === "brand" ? module.slots ? "centred" : "row" : void 0;
|
|
16527
|
-
}
|
|
16528
|
-
};
|
|
16529
|
-
const footerModuleInkStyleTransform = {
|
|
16530
|
-
id: "layout.footerModuleInkStyle",
|
|
16531
|
-
kind: "formatter",
|
|
16532
|
-
run: (value, options) => value === "centred" ? void 0 : textColorStyle(asPartialObject(options)?.opacity === 70 ? "text/70" : "text/80")
|
|
16533
|
-
};
|
|
16534
|
-
/** A centred base without authored bar paint inherits its measured surface line. */
|
|
16535
|
-
function footerBottomBarBorderColorStyle(footer) {
|
|
16536
|
-
return footer?.variant === "centred" && !footer.bottomBar ? { borderColor: "var(--rb-surface-line-color)" } : borderColorStyle(footer?.bottomBar?.borderTop?.colorToken ?? "border");
|
|
16537
|
-
}
|
|
16538
|
-
//#endregion
|
|
16539
16785
|
//#region ../blocks/src/system/transforms/registry/layout.ts
|
|
16540
16786
|
const joinClasses = (parts) => parts.filter((part) => typeof part === "string" && part.trim().length > 0).join(" ").replace(/\s+/g, " ").trim();
|
|
16541
16787
|
/** How the header brand renders; the logo media is hidden for `title-only`. */
|
|
@@ -16658,11 +16904,6 @@ function resolvedForegroundStyle(foreground) {
|
|
|
16658
16904
|
case "known": return surfaceForegroundStyle(surfaceForegroundInputFromResolved(foreground, rgbColorValue));
|
|
16659
16905
|
}
|
|
16660
16906
|
}
|
|
16661
|
-
function footerBottomBarBorderWidthStyle(width) {
|
|
16662
|
-
if (!width) return void 0;
|
|
16663
|
-
if (width === "none") return { borderTopWidth: "0px" };
|
|
16664
|
-
return { borderTopWidth: width === "thin" ? "1px" : width === "medium" ? "2px" : "3px" };
|
|
16665
|
-
}
|
|
16666
16907
|
const headerRootClassTransform = {
|
|
16667
16908
|
id: "layout.headerRootClass",
|
|
16668
16909
|
kind: "string",
|
|
@@ -16698,27 +16939,6 @@ const headerRootClassTransform = {
|
|
|
16698
16939
|
return joinClasses(classes);
|
|
16699
16940
|
}
|
|
16700
16941
|
};
|
|
16701
|
-
const footerRootClassTransform = {
|
|
16702
|
-
id: "layout.footerRootClass",
|
|
16703
|
-
kind: "string",
|
|
16704
|
-
summary: "Compose footer root classes with optional inversion",
|
|
16705
|
-
schema: z.object({
|
|
16706
|
-
base: z.string().optional(),
|
|
16707
|
-
surface: z.string().optional(),
|
|
16708
|
-
tokenPrefix: z.string().optional(),
|
|
16709
|
-
transparent: z.string().optional()
|
|
16710
|
-
}),
|
|
16711
|
-
run: (value, options) => {
|
|
16712
|
-
const config = {
|
|
16713
|
-
base: "rb-w-full rb-border-t transition-theme",
|
|
16714
|
-
transparent: "rb-bg-transparent",
|
|
16715
|
-
...options
|
|
16716
|
-
};
|
|
16717
|
-
const background = asPartialObject(value)?.background;
|
|
16718
|
-
const backgroundClass = resolveBackgroundVisualStyles(extractBackgroundColorToken(background, "surface")).isTransparent ? config.transparent : null;
|
|
16719
|
-
return joinClasses([config.base, backgroundClass]);
|
|
16720
|
-
}
|
|
16721
|
-
};
|
|
16722
16942
|
const headerRootStyleTransform = {
|
|
16723
16943
|
id: "layout.headerRootStyle",
|
|
16724
16944
|
kind: "formatter",
|
|
@@ -16750,115 +16970,61 @@ function headerSectionBackground(header) {
|
|
|
16750
16970
|
const visuals = resolveHeaderVisualStyles(header);
|
|
16751
16971
|
return header?.background?.type === "color" && !visuals.isTransparent && !visuals.backgroundToken.includes("/") ? visuals.backgroundToken : "background";
|
|
16752
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. */
|
|
16753
17002
|
const footerRootStyleTransform = {
|
|
16754
17003
|
id: "layout.footerRootStyle",
|
|
16755
17004
|
kind: "formatter",
|
|
16756
|
-
summary: "
|
|
16757
|
-
run: (value, _options, context) => {
|
|
16758
|
-
const footer = asPartialObject(value);
|
|
16759
|
-
const background = footer?.background;
|
|
16760
|
-
const visuals = resolveBackgroundVisualStyles(extractBackgroundColorToken(background, "surface"));
|
|
16761
|
-
const styleParts = [];
|
|
16762
|
-
if (!visuals.isTransparent) {
|
|
16763
|
-
if (!background || background.type === "color") {
|
|
16764
|
-
const token = background?.color ?? "surface";
|
|
16765
|
-
styleParts.push(backgroundColorStyle(token));
|
|
16766
|
-
}
|
|
16767
|
-
}
|
|
16768
|
-
const foreground = resolveFooterRootForeground(footer, context.theme.palette, context.proseHoverCandidate);
|
|
16769
|
-
styleParts.push(resolvedForegroundStyle(foreground), solvedInkStyle(foreground, context));
|
|
16770
|
-
if (footer?.variant === "centred") styleParts.push(surfaceInkStyles(foreground, context.theme.palette));
|
|
16771
|
-
styleParts.push(borderColorStyle("border"));
|
|
16772
|
-
return mergeStyles(...styleParts);
|
|
16773
|
-
}
|
|
16774
|
-
};
|
|
16775
|
-
const footerSpacingClassXMap = {
|
|
16776
|
-
none: "rb-px-0",
|
|
16777
|
-
tight: "rb-px-2",
|
|
16778
|
-
compact: "rb-px-4",
|
|
16779
|
-
default: "rb-px-6",
|
|
16780
|
-
relaxed: "rb-px-8",
|
|
16781
|
-
spacious: "rb-px-12"
|
|
16782
|
-
};
|
|
16783
|
-
const footerSpacingClassYMap = {
|
|
16784
|
-
none: "rb-py-0",
|
|
16785
|
-
tight: "rb-py-2",
|
|
16786
|
-
compact: "rb-py-4",
|
|
16787
|
-
default: "rb-py-6",
|
|
16788
|
-
relaxed: "rb-py-8",
|
|
16789
|
-
spacious: "rb-py-12"
|
|
16790
|
-
};
|
|
16791
|
-
const footerBottomBarClassTransform = {
|
|
16792
|
-
id: "layout.footerBottomBarClass",
|
|
16793
|
-
kind: "string",
|
|
16794
|
-
summary: "Compose footer bottom bar classes from theme controls",
|
|
16795
|
-
schema: z.object({ base: z.string().optional() }),
|
|
16796
|
-
run: (value, options) => {
|
|
16797
|
-
const bottomBar = asPartialObject(value)?.bottomBar;
|
|
16798
|
-
const textAlign = bottomBar?.textAlign ?? "center";
|
|
16799
|
-
const alignClass = textAlign === "left" ? "rb-text-left" : textAlign === "right" ? "rb-text-right" : "rb-text-center";
|
|
16800
|
-
const px = footerSpacingClassXMap[bottomBar?.paddingX ?? "default"] ?? "rb-px-6";
|
|
16801
|
-
const py = footerSpacingClassYMap[bottomBar?.paddingY ?? "default"] ?? "rb-py-6";
|
|
16802
|
-
return joinClasses([
|
|
16803
|
-
options.base ?? "rb-w-full rb-border-t",
|
|
16804
|
-
alignClass,
|
|
16805
|
-
px,
|
|
16806
|
-
py
|
|
16807
|
-
]);
|
|
16808
|
-
}
|
|
16809
|
-
};
|
|
16810
|
-
const footerBottomBarContainerClassTransform = {
|
|
16811
|
-
id: "layout.footerBottomBarContainerClass",
|
|
16812
|
-
kind: "string",
|
|
16813
|
-
summary: "Resolve full-bleed vs contained bottom bar container classes",
|
|
16814
|
-
schema: z.object({
|
|
16815
|
-
base: z.string().optional(),
|
|
16816
|
-
fullBleed: z.string().optional(),
|
|
16817
|
-
contained: z.string().optional()
|
|
16818
|
-
}),
|
|
16819
|
-
run: (value, options) => {
|
|
16820
|
-
const footer = asPartialObject(value);
|
|
16821
|
-
const fullBleed = Boolean(footer?.bottomBar?.fullBleed);
|
|
16822
|
-
return joinClasses([options.base ?? "", fullBleed ? options.fullBleed ?? "rb-w-full" : options.contained ?? "rb-container"]);
|
|
16823
|
-
}
|
|
16824
|
-
};
|
|
16825
|
-
const footerBottomBarStyleTransform = {
|
|
16826
|
-
id: "layout.footerBottomBarStyle",
|
|
16827
|
-
kind: "formatter",
|
|
16828
|
-
summary: "Compose footer bottom bar style from theme controls",
|
|
17005
|
+
summary: "Paint the footer root with the main ground and its inks",
|
|
16829
17006
|
run: (value, _options, context) => {
|
|
16830
17007
|
const footer = asPartialObject(value);
|
|
16831
|
-
|
|
16832
|
-
return mergeStyles(bottomBar?.background?.type === "color" ? backgroundColorStyle(bottomBar.background.color ?? "surface") : void 0, footerBottomBarBorderColorStyle(footer), footerBottomBarBorderWidthStyle(bottomBar?.borderTop?.width), ...footerBottomBarForegroundStyles(footer, context));
|
|
16833
|
-
}
|
|
16834
|
-
};
|
|
16835
|
-
/** The bar's own certified contract and inks, its certified text on the footer's ground, or nothing of its own. */
|
|
16836
|
-
function footerBottomBarForegroundStyles(footer, context) {
|
|
16837
|
-
if (!footer) return [];
|
|
16838
|
-
const paint = resolveFooterBottomBarPaint(footer, context.theme.palette);
|
|
16839
|
-
switch (paint.kind) {
|
|
16840
|
-
case "inherits": return [];
|
|
16841
|
-
case "surface": return [resolvedForegroundStyle(paint.foreground), solvedInkStyle(paint.foreground, context)];
|
|
16842
|
-
case "unmeasured": return [textColorStyle(paint.declared)];
|
|
16843
|
-
case "ink": return [paint.paint.fallback ? { color: paint.paint.ink } : textColorStyle(paint.declared)];
|
|
16844
|
-
}
|
|
16845
|
-
}
|
|
16846
|
-
const footerLogoClassTransform = {
|
|
16847
|
-
id: "layout.footerLogoClass",
|
|
16848
|
-
kind: "string",
|
|
16849
|
-
summary: "Compose split-footer logo wrapper classes from footer.logo controls",
|
|
16850
|
-
schema: z.object({ base: z.string().optional() }),
|
|
16851
|
-
run: (value, options) => {
|
|
16852
|
-
const align = asPartialObject(value)?.align ?? "end";
|
|
16853
|
-
const selfAlignClass = align === "start" ? "rb-self-start rb-text-left" : align === "center" ? "rb-self-center rb-text-center" : "rb-self-end rb-text-right";
|
|
16854
|
-
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));
|
|
16855
17009
|
}
|
|
16856
17010
|
};
|
|
16857
|
-
|
|
16858
|
-
|
|
16859
|
-
|
|
16860
|
-
|
|
16861
|
-
|
|
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
|
+
};
|
|
16862
17028
|
}
|
|
16863
17029
|
const layoutTransforms = [
|
|
16864
17030
|
maxWidthClassTransform,
|
|
@@ -16866,16 +17032,15 @@ const layoutTransforms = [
|
|
|
16866
17032
|
headerLogoClassTransform,
|
|
16867
17033
|
headerLogoMediaClassTransform,
|
|
16868
17034
|
headerLogoTextVisibleTransform,
|
|
16869
|
-
footerRootClassTransform,
|
|
16870
17035
|
headerRootStyleTransform,
|
|
16871
17036
|
headerSectionBackgroundTransform,
|
|
16872
17037
|
footerRootStyleTransform,
|
|
16873
|
-
|
|
16874
|
-
|
|
16875
|
-
|
|
16876
|
-
|
|
16877
|
-
|
|
16878
|
-
|
|
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
|
+
}
|
|
16879
17044
|
];
|
|
16880
17045
|
//#endregion
|
|
16881
17046
|
//#region ../blocks/src/system/transforms/registry/chromeLogo.ts
|
|
@@ -17393,33 +17558,12 @@ const siteHeaderManifest = createBlockManifest({
|
|
|
17393
17558
|
const siteHeaderBlockDefinition = { manifest: siteHeaderManifest };
|
|
17394
17559
|
//#endregion
|
|
17395
17560
|
//#region ../blocks/src/system/blocks/site-footer-nav-groups-layout.ts
|
|
17396
|
-
|
|
17397
|
-
|
|
17398
|
-
align: "start",
|
|
17399
|
-
className: { $bind: {
|
|
17400
|
-
from: "module.navigationGroupsClassName",
|
|
17401
|
-
fallback: "rb-grid rb-grid-cols-1 rb-gap-6"
|
|
17402
|
-
} }
|
|
17403
|
-
}, [stack({
|
|
17404
|
-
gap: "md",
|
|
17405
|
-
align: "start",
|
|
17406
|
-
className: "rb-text-left"
|
|
17407
|
-
}, [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({
|
|
17408
17563
|
as: "h3",
|
|
17409
17564
|
className: "rb-label",
|
|
17410
|
-
"data-slot":
|
|
17411
|
-
|
|
17412
|
-
from: "content.footerRuntime.arrangement",
|
|
17413
|
-
transforms: [{
|
|
17414
|
-
id: "layout.footerModuleInkStyle",
|
|
17415
|
-
options: { opacity: 70 }
|
|
17416
|
-
}]
|
|
17417
|
-
} }
|
|
17418
|
-
}, when("group.label"), bind("group.label")), stack({
|
|
17419
|
-
gap: "sm",
|
|
17420
|
-
align: "start",
|
|
17421
|
-
className: "rb-space-y-2"
|
|
17422
|
-
}, [link({
|
|
17565
|
+
"data-slot": "group-label"
|
|
17566
|
+
}, when("group.label"), bind("group.label")), el("div", { className: "rb-footer-link-list" }, [link({
|
|
17423
17567
|
className: "rb-block rb-nav-text transition-theme rb-hover-opacity-80",
|
|
17424
17568
|
style: textColorStyle("text"),
|
|
17425
17569
|
href: { $bind: {
|
|
@@ -17445,106 +17589,67 @@ const footerMailingListBindings = {
|
|
|
17445
17589
|
targeting: { $bind: { from: "module.engagement.runtime.targeting" } }
|
|
17446
17590
|
};
|
|
17447
17591
|
const footerSpamProtectionBinding = { spamProtectionEnabled: { $bind: { from: "$root.spamProtectionEnabled" } } };
|
|
17448
|
-
|
|
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: [{
|
|
17449
17606
|
id: "layout.chromeLogo",
|
|
17450
17607
|
options: { surface: "footer-root" }
|
|
17451
|
-
}] }))
|
|
17452
|
-
const brandTitle = text({
|
|
17608
|
+
}] }))], when("module.showLogo", { equals: true })), text({
|
|
17453
17609
|
as: "strong",
|
|
17454
|
-
className: "footer-logo-text rb-nav-text"
|
|
17455
|
-
|
|
17456
|
-
|
|
17457
|
-
|
|
17458
|
-
className:
|
|
17459
|
-
|
|
17460
|
-
transforms: [{
|
|
17461
|
-
id: "layout.footerLogoClass",
|
|
17462
|
-
options: { base: "footer-logo rb-inline-flex rb-flex-wrap rb-items-center rb-gap-3 rb-no-underline" }
|
|
17463
|
-
}],
|
|
17464
|
-
fallback: "footer-logo rb-inline-flex rb-flex-wrap rb-items-center rb-gap-3 rb-no-underline"
|
|
17465
|
-
} }
|
|
17466
|
-
}, [brandMedia, brandTitle], (node) => ({
|
|
17467
|
-
...node,
|
|
17468
|
-
$when: {
|
|
17469
|
-
when: {
|
|
17470
|
-
from: "module",
|
|
17471
|
-
transforms: [{ id: "layout.footerBrandArrangement" }]
|
|
17472
|
-
},
|
|
17473
|
-
equals: "row"
|
|
17474
|
-
}
|
|
17475
|
-
}));
|
|
17476
|
-
const centredBrand = stack({
|
|
17477
|
-
gap: "md",
|
|
17478
|
-
align: "center"
|
|
17479
|
-
}, [link({
|
|
17480
|
-
href: "/",
|
|
17481
|
-
"data-slot": { $bind: { from: "module.slots.media" } },
|
|
17482
|
-
className: "footer-logo rb-inline-flex rb-items-center rb-no-underline"
|
|
17483
|
-
}, [brandMedia], when("module.slots.media")), {
|
|
17484
|
-
...brandTitle,
|
|
17485
|
-
props: {
|
|
17486
|
-
...brandTitle.props,
|
|
17487
|
-
"data-slot": { $bind: { from: "module.slots.heading" } }
|
|
17488
|
-
}
|
|
17489
|
-
}], (node) => ({
|
|
17490
|
-
...node,
|
|
17491
|
-
$when: {
|
|
17492
|
-
when: {
|
|
17493
|
-
from: "module",
|
|
17494
|
-
transforms: [{ id: "layout.footerBrandArrangement" }]
|
|
17495
|
-
},
|
|
17496
|
-
equals: "centred"
|
|
17497
|
-
}
|
|
17498
|
-
}));
|
|
17499
|
-
const navigation = stack({
|
|
17500
|
-
gap: "md",
|
|
17501
|
-
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"
|
|
17502
17616
|
}, [footerNavGroupsLayout, footerNav({
|
|
17503
17617
|
collectionPath: "footerMenu.items",
|
|
17504
17618
|
mode: "links-only",
|
|
17505
|
-
className:
|
|
17506
|
-
from: "module.navigationClassName",
|
|
17507
|
-
fallback: "footer-nav rb-flex rb-flex-wrap rb-gap-x-6 rb-gap-y-3"
|
|
17508
|
-
} },
|
|
17619
|
+
className: "rb-footer-flat-links",
|
|
17509
17620
|
linkClassName: "footer-nav-link rb-block rb-nav-text transition-theme-standard"
|
|
17510
17621
|
})], when("module.kind", { equals: "navigation" }));
|
|
17511
|
-
const legalNavigation = footerNav({
|
|
17622
|
+
const legalNavigation = el("div", { "data-slot": "navigation" }, [footerNav({
|
|
17512
17623
|
collectionPath: "legalFooterMenu.items",
|
|
17513
17624
|
mode: "links-only",
|
|
17514
|
-
className: "rb-
|
|
17625
|
+
className: "rb-footer-legal-links",
|
|
17515
17626
|
linkClassName: "footer-nav-link rb-caption transition-theme-standard"
|
|
17516
|
-
});
|
|
17517
|
-
const address = text({
|
|
17518
|
-
|
|
17519
|
-
|
|
17520
|
-
|
|
17521
|
-
|
|
17522
|
-
gap: "sm",
|
|
17523
|
-
className: { $bind: {
|
|
17524
|
-
from: "module.contactClassName",
|
|
17525
|
-
fallback: "rb-items-start"
|
|
17526
|
-
} }
|
|
17527
|
-
}, [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({
|
|
17528
17633
|
href: { $bind: { from: "contactLink.href" } },
|
|
17529
17634
|
className: "rb-nav-text rb-break-words transition-theme-standard"
|
|
17530
|
-
}, [text({ as: "span" }, bind("contactLink.label"))], repeat("module.contactLinks", "contactLink"))], when("module.kind", { equals: "contact" }));
|
|
17531
|
-
const hours =
|
|
17532
|
-
|
|
17533
|
-
className: "rb-
|
|
17534
|
-
|
|
17535
|
-
|
|
17536
|
-
|
|
17537
|
-
|
|
17538
|
-
}, bind("
|
|
17539
|
-
|
|
17540
|
-
|
|
17541
|
-
|
|
17542
|
-
|
|
17543
|
-
|
|
17544
|
-
|
|
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" }));
|
|
17545
17650
|
const socials = inline({
|
|
17546
17651
|
className: "rb-footer-socials",
|
|
17547
|
-
"data-slot":
|
|
17652
|
+
"data-slot": "social"
|
|
17548
17653
|
}, [link({
|
|
17549
17654
|
href: { $bind: { from: "social.href" } },
|
|
17550
17655
|
target: "_blank",
|
|
@@ -17552,20 +17657,13 @@ const socials = inline({
|
|
|
17552
17657
|
"aria-label": { $bind: { from: "social.label" } },
|
|
17553
17658
|
className: "rb-footer-social-link rb-nav-text transition-theme-standard"
|
|
17554
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" }));
|
|
17555
|
-
const authoredCopy = richText({
|
|
17660
|
+
const authoredCopy = (slot, kind) => el("div", { className: "rb-footer-copy" }, [richText({
|
|
17556
17661
|
className: "rb-prose rb-prose-sm rb-max-w-none",
|
|
17557
|
-
"data-slot":
|
|
17558
|
-
style: { $bind: {
|
|
17559
|
-
from: "content.footerRuntime.arrangement",
|
|
17560
|
-
transforms: [{
|
|
17561
|
-
id: "layout.footerModuleInkStyle",
|
|
17562
|
-
options: { opacity: 80 }
|
|
17563
|
-
}]
|
|
17564
|
-
} }
|
|
17662
|
+
"data-slot": slot
|
|
17565
17663
|
}, when("module.content"), bind("module.content", { transforms: [{
|
|
17566
17664
|
id: "content.interpolateRichTextTokens",
|
|
17567
17665
|
options: { tokens: ["year", "site_name"] }
|
|
17568
|
-
}] }));
|
|
17666
|
+
}] }))], when("module.kind", { equals: kind }));
|
|
17569
17667
|
const footerEngagement = stack({
|
|
17570
17668
|
gap: "md",
|
|
17571
17669
|
className: "rb-w-full",
|
|
@@ -17573,7 +17671,8 @@ const footerEngagement = stack({
|
|
|
17573
17671
|
}, [
|
|
17574
17672
|
text({
|
|
17575
17673
|
as: "p",
|
|
17576
|
-
className: "rb-body
|
|
17674
|
+
className: "rb-body",
|
|
17675
|
+
"data-slot": "intro"
|
|
17577
17676
|
}, bind("module.engagement.intro"), when("module.engagement.intro")),
|
|
17578
17677
|
form(withApiBindings({
|
|
17579
17678
|
...footerStandardContactBindings,
|
|
@@ -17614,48 +17713,34 @@ const copyright = text({
|
|
|
17614
17713
|
id: "content.interpolateRichTextTokens",
|
|
17615
17714
|
options: { tokens: ["year", "site_name"] }
|
|
17616
17715
|
}] }), when("module.kind", { equals: "copyright" }));
|
|
17617
|
-
|
|
17618
|
-
|
|
17619
|
-
|
|
17620
|
-
|
|
17621
|
-
|
|
17622
|
-
|
|
17623
|
-
|
|
17624
|
-
|
|
17625
|
-
|
|
17626
|
-
|
|
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",
|
|
17627
17729
|
"data-slot": { $bind: { from: "group.slot" } },
|
|
17628
17730
|
"data-footer-group": { $bind: { from: "group.kind" } }
|
|
17629
|
-
}, [
|
|
17630
|
-
|
|
17631
|
-
align: { $bind: {
|
|
17632
|
-
from: "module.align",
|
|
17633
|
-
fallback: "start"
|
|
17634
|
-
} },
|
|
17635
|
-
className: { $bind: { from: "module.className" } },
|
|
17731
|
+
}, [el("div", {
|
|
17732
|
+
className: "rb-footer-module",
|
|
17636
17733
|
"data-footer-module": { $bind: { from: "module.kind" } },
|
|
17637
17734
|
"data-preview-footer-module-id": { $bind: { from: "module.id" } }
|
|
17638
17735
|
}, [
|
|
17639
17736
|
text({
|
|
17640
17737
|
as: "h2",
|
|
17641
17738
|
className: "rb-label",
|
|
17642
|
-
"data-slot":
|
|
17643
|
-
style: { $bind: {
|
|
17644
|
-
from: "content.footerRuntime.arrangement",
|
|
17645
|
-
transforms: [{
|
|
17646
|
-
id: "layout.footerModuleInkStyle",
|
|
17647
|
-
options: { opacity: 70 }
|
|
17648
|
-
}]
|
|
17649
|
-
} }
|
|
17739
|
+
"data-slot": "group-label"
|
|
17650
17740
|
}, bind("module.heading"), when("module.heading")),
|
|
17651
17741
|
brandLogo,
|
|
17652
|
-
centredBrand,
|
|
17653
17742
|
navigation,
|
|
17654
|
-
|
|
17655
|
-
gap: "sm",
|
|
17656
|
-
className: "rb-w-full",
|
|
17657
|
-
"data-slot": { $bind: { from: "module.slots.navigation" } }
|
|
17658
|
-
}, [legalNavigation], when("module.kind", { equals: "legal-navigation" })),
|
|
17743
|
+
legalNavigation,
|
|
17659
17744
|
address,
|
|
17660
17745
|
contact,
|
|
17661
17746
|
hours,
|
|
@@ -17663,36 +17748,20 @@ const footerGroup = stack({
|
|
|
17663
17748
|
footerEngagement,
|
|
17664
17749
|
copyright,
|
|
17665
17750
|
platformAttribution,
|
|
17666
|
-
|
|
17667
|
-
|
|
17668
|
-
], repeat("group.modules", "module"))], repeat("region.groups", "group"));
|
|
17669
|
-
|
|
17670
|
-
|
|
17671
|
-
|
|
17672
|
-
|
|
17673
|
-
|
|
17674
|
-
|
|
17675
|
-
|
|
17676
|
-
"data-
|
|
17677
|
-
"data-
|
|
17678
|
-
|
|
17679
|
-
|
|
17680
|
-
from: "$root.theme.footer",
|
|
17681
|
-
transforms: [{ id: "layout.footerBottomBarContainerClass" }],
|
|
17682
|
-
fallback: "rb-w-full"
|
|
17683
|
-
} } }, [stack({
|
|
17684
|
-
className: { $bind: {
|
|
17685
|
-
from: "$root.theme.footer",
|
|
17686
|
-
transforms: [{ id: "layout.footerBottomBarClass" }],
|
|
17687
|
-
fallback: "rb-w-full rb-border-t rb-px-6 rb-py-6 rb-text-center"
|
|
17688
|
-
} },
|
|
17689
|
-
style: { $bind: {
|
|
17690
|
-
from: "$root.theme.footer",
|
|
17691
|
-
transforms: [{ id: "layout.footerBottomBarStyle" }]
|
|
17692
|
-
} },
|
|
17693
|
-
"data-slot": { $bind: { from: "region.slot" } },
|
|
17694
|
-
"data-footer-region": "bottom"
|
|
17695
|
-
}, [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"));
|
|
17696
17765
|
const siteFooterManifest = createBlockManifest({
|
|
17697
17766
|
variantMeaning: { kind: "arrangement" },
|
|
17698
17767
|
id: "block.site-footer",
|
|
@@ -17702,23 +17771,18 @@ const siteFooterManifest = createBlockManifest({
|
|
|
17702
17771
|
skipSectionStyles: true,
|
|
17703
17772
|
layout: section({
|
|
17704
17773
|
background: "background",
|
|
17705
|
-
className:
|
|
17706
|
-
from: "$root.theme.footer",
|
|
17707
|
-
transforms: [{ id: "layout.footerRootClass" }],
|
|
17708
|
-
fallback: "rb-w-full rb-border-t transition-theme"
|
|
17709
|
-
} },
|
|
17774
|
+
className: "rb-w-full rb-border-t transition-theme",
|
|
17710
17775
|
style: { $bind: {
|
|
17711
17776
|
from: "$root.theme.footer",
|
|
17712
17777
|
transforms: [{ id: "layout.footerRootStyle" }],
|
|
17713
17778
|
fallback: mergeStyles(backgroundColorStyle("surface"), surfaceForegroundStyle({ text: "rgb(var(--tb-text))" }), borderColorStyle("border"))
|
|
17714
17779
|
} },
|
|
17715
|
-
"data-
|
|
17780
|
+
"data-look": { $bind: { from: "content.footerRuntime.lookId" } },
|
|
17716
17781
|
"data-footer-membership": { $bind: { from: "content.footerRuntime.membershipKey" } }
|
|
17717
|
-
}, [
|
|
17718
|
-
|
|
17719
|
-
|
|
17720
|
-
|
|
17721
|
-
]),
|
|
17782
|
+
}, [{
|
|
17783
|
+
...footerEdge,
|
|
17784
|
+
key: "footer-edge"
|
|
17785
|
+
}, footerRegion]),
|
|
17722
17786
|
description: "The footer at the bottom of every page, with your contact details and links.",
|
|
17723
17787
|
styleTokens: { spacing: "md" },
|
|
17724
17788
|
paletteHidden: true
|
|
@@ -19483,7 +19547,11 @@ const bookingWizard = bookingForm(withApiBindings({
|
|
|
19483
19547
|
services: { $bind: { from: "data.services" } },
|
|
19484
19548
|
mailingList: { $bind: { from: "$root.mailingList" } },
|
|
19485
19549
|
siteTerms: { $bind: { from: "$root.siteTerms" } },
|
|
19486
|
-
siteName: { $bind: { from: "$root.siteName" } }
|
|
19550
|
+
siteName: { $bind: { from: "$root.siteName" } },
|
|
19551
|
+
businessPerson: { $bind: {
|
|
19552
|
+
from: "$root.businessPerson",
|
|
19553
|
+
fallback: null
|
|
19554
|
+
} }
|
|
19487
19555
|
}), [], when("data.bookingEnabled", {
|
|
19488
19556
|
equals: false,
|
|
19489
19557
|
not: true
|
|
@@ -19783,8 +19851,8 @@ const weeklySlotAvailabilityManifest = createBlockManifest({
|
|
|
19783
19851
|
{
|
|
19784
19852
|
id: "resourceId",
|
|
19785
19853
|
type: "reference",
|
|
19786
|
-
label: "
|
|
19787
|
-
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.",
|
|
19788
19856
|
required: false,
|
|
19789
19857
|
referenceKind: "appointmentResource",
|
|
19790
19858
|
allowManualEntry: false,
|
|
@@ -20667,10 +20735,28 @@ const groupOverrideFields = [
|
|
|
20667
20735
|
];
|
|
20668
20736
|
const offeringsPreviewFields = [
|
|
20669
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
|
+
},
|
|
20670
20756
|
{
|
|
20671
20757
|
id: "itemLimit",
|
|
20672
20758
|
type: "select",
|
|
20673
|
-
label: "Items per
|
|
20759
|
+
label: "Items per kind",
|
|
20674
20760
|
required: false,
|
|
20675
20761
|
multiple: false,
|
|
20676
20762
|
defaultValue: "3",
|
|
@@ -20842,6 +20928,7 @@ function offeringsPreviewHeaderNodes() {
|
|
|
20842
20928
|
const offeringsPreviewLayout = [styledSection({
|
|
20843
20929
|
children: sectionContainer([el("offerings-preview", withApiBindings({
|
|
20844
20930
|
...cardListPresentationBindings,
|
|
20931
|
+
offeringsGrouping: { $bind: { from: "content._effectiveKnobs.grouping.value" } },
|
|
20845
20932
|
carouselRegion: { $bind: { from: "content.heading" } },
|
|
20846
20933
|
renderInput: { $bind: { from: "content._offeringsPreviewInput" } },
|
|
20847
20934
|
showHiddenPlaceholder: { $bind: { from: "content._offeringsPreviewShowHiddenPlaceholder" } },
|
|
@@ -20945,6 +21032,7 @@ const offeringsPreviewBlockDefinition = {
|
|
|
20945
21032
|
manifest: offeringsPreviewManifest,
|
|
20946
21033
|
contentNormalizer: {
|
|
20947
21034
|
fieldIds: [
|
|
21035
|
+
"grouping",
|
|
20948
21036
|
"displayMode",
|
|
20949
21037
|
"oneOffering",
|
|
20950
21038
|
"heading",
|
|
@@ -21043,29 +21131,29 @@ function eventPresetLoader(eventPresets, extraParams = {}) {
|
|
|
21043
21131
|
mode: "server"
|
|
21044
21132
|
};
|
|
21045
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
|
+
});
|
|
21046
21147
|
function normalizeOfferingsPreviewBlockContent(value) {
|
|
21047
21148
|
const record = normalizeOfferingsPreviewContentForWrite(value);
|
|
21048
21149
|
if (!record) return { displayMode: DEFAULT_OFFERINGS_PREVIEW_DISPLAY_MODE };
|
|
21049
21150
|
const normalized = {
|
|
21050
21151
|
displayMode: normalizeOfferingsPreviewDisplayMode(record.displayMode),
|
|
21051
21152
|
...oneOfferingContent(record.oneOffering),
|
|
21052
|
-
...normalizeCardListContent(record)
|
|
21053
|
-
|
|
21054
|
-
|
|
21055
|
-
|
|
21056
|
-
if (isOfferingsPreviewItemLimit(record.itemLimit)) normalized.itemLimit = record.itemLimit;
|
|
21057
|
-
if (Array.isArray(record.groupOrder)) normalized.groupOrder = record.groupOrder.filter(isOfferingsPreviewSourceKey);
|
|
21058
|
-
else if (record.groupOrder === null) normalized.groupOrder = null;
|
|
21059
|
-
if (Array.isArray(record.groupOverrides)) normalized.groupOverrides = record.groupOverrides.flatMap(normalizeOfferingsPreviewGroupOverride);
|
|
21060
|
-
else if (record.groupOverrides === null) normalized.groupOverrides = null;
|
|
21061
|
-
const cardStyles = normalizeCardStylesContent(record._cardStyles);
|
|
21062
|
-
if (cardStyles !== void 0) normalized._cardStyles = cardStyles;
|
|
21063
|
-
if (isButtonVariant(record.buttonVariant)) normalized.buttonVariant = record.buttonVariant;
|
|
21064
|
-
if (typeof record.buttonText === "string" || record.buttonText === null) normalized.buttonText = record.buttonText;
|
|
21065
|
-
if (typeof record.emptyMessage === "string" || record.emptyMessage === null) normalized.emptyMessage = record.emptyMessage;
|
|
21066
|
-
const sectionStyles = normalizeSectionStylesContent(record._sectionStyles);
|
|
21067
|
-
if (sectionStyles !== void 0) normalized._sectionStyles = sectionStyles;
|
|
21068
|
-
return normalized;
|
|
21153
|
+
...normalizeCardListContent(record),
|
|
21154
|
+
...offeringsContentSchema.parse(record)
|
|
21155
|
+
};
|
|
21156
|
+
return Object.fromEntries(Object.entries(normalized).filter(([, field]) => field !== void 0));
|
|
21069
21157
|
}
|
|
21070
21158
|
function oneOfferingContent(value) {
|
|
21071
21159
|
return typeof value === "boolean" || value === null ? { oneOffering: value } : {};
|
|
@@ -24838,6 +24926,13 @@ const columnCounts = [
|
|
|
24838
24926
|
];
|
|
24839
24927
|
const systemCustomizeFacetDefinitions = [
|
|
24840
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"),
|
|
24841
24936
|
fixedKnob("block.offerings-preview", "dates", "Dates", [{
|
|
24842
24937
|
value: "summary",
|
|
24843
24938
|
label: "Summary"
|
|
@@ -25564,7 +25659,7 @@ function serviceDetailsFacts(service) {
|
|
|
25564
25659
|
value: describePublicRefundPolicy(service.cancellationPolicy.refunds)
|
|
25565
25660
|
},
|
|
25566
25661
|
...practitioners.length ? [{
|
|
25567
|
-
label:
|
|
25662
|
+
label: "With",
|
|
25568
25663
|
value: practitioners.map((person) => person.roleLabel ? `${person.name}, ${person.roleLabel}` : person.name).join("; ")
|
|
25569
25664
|
}] : []
|
|
25570
25665
|
];
|
|
@@ -29103,7 +29198,14 @@ function promote(tree, heading) {
|
|
|
29103
29198
|
return children === tree.props.children ? tree : React.cloneElement(tree, {}, children);
|
|
29104
29199
|
}
|
|
29105
29200
|
/** One page-wide choice; callers receive the final trees and do not recompute heading rules. */
|
|
29106
|
-
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
|
+
};
|
|
29107
29209
|
const nodes = [...trees.values()].flatMap(elements);
|
|
29108
29210
|
if (nodes.some((node) => ownsH1(node, eventDetailsComponent))) return {
|
|
29109
29211
|
trees,
|
|
@@ -29365,11 +29467,12 @@ function pageDateRuntimeContext(dataContext) {
|
|
|
29365
29467
|
}
|
|
29366
29468
|
/** Booking context keeps its defaults together across SSR and authoring. */
|
|
29367
29469
|
function pageBookingRuntime(context) {
|
|
29368
|
-
const { bookingTimeZone, bookingOfferingPresets = [], appointmentServicePathPrefix = null } = context ?? {};
|
|
29470
|
+
const { bookingTimeZone, bookingOfferingPresets = [], appointmentServicePathPrefix = null, businessPerson = null } = context ?? {};
|
|
29369
29471
|
return {
|
|
29370
29472
|
bookingTimeZone,
|
|
29371
29473
|
bookingOfferingPresets,
|
|
29372
|
-
appointmentServicePathPrefix
|
|
29474
|
+
appointmentServicePathPrefix,
|
|
29475
|
+
businessPerson
|
|
29373
29476
|
};
|
|
29374
29477
|
}
|
|
29375
29478
|
//#endregion
|
|
@@ -29539,7 +29642,7 @@ function offeringArrangementContent(content, data, context, audience) {
|
|
|
29539
29642
|
const now = new Date(readRuntimeNow(context?.now));
|
|
29540
29643
|
const listing = buildLoadedOfferingsPreviewListing({
|
|
29541
29644
|
now,
|
|
29542
|
-
listingMode: offeringsListingFor(
|
|
29645
|
+
listingMode: offeringsListingFor(readOfferingsGrouping(effectiveOfferingsGrouping(content)), cardListArrangementForContent(content)),
|
|
29543
29646
|
routeCandidates: publicRouteCandidatesSchema.safeParse(data.routeCandidates).data,
|
|
29544
29647
|
...normalized,
|
|
29545
29648
|
presets: context?.bookingOfferingPresets,
|
|
@@ -29561,6 +29664,12 @@ function offeringArrangementContent(content, data, context, audience) {
|
|
|
29561
29664
|
publicVisibility: listing.kind === "no-groups" && listing.reason === "empty-hidden" ? "omitted" : "shown"
|
|
29562
29665
|
};
|
|
29563
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
|
+
}
|
|
29564
29673
|
/** Older blocks opt into preparation only when public visibility needs their listing. */
|
|
29565
29674
|
function needsOfferingListing(content, normalized) {
|
|
29566
29675
|
return content._effectiveLook !== void 0 || normalized.groupOverrides?.some((group) => group.hideWhenEmpty === true) === true;
|
|
@@ -30134,24 +30243,29 @@ function PageRendererCore(props) {
|
|
|
30134
30243
|
setContextResolveImageUrlContext(imageResolveContext);
|
|
30135
30244
|
const resolvedRegistry = props.registry ?? getDefaultComponentRegistry();
|
|
30136
30245
|
const readSystemTrees = React$1.useMemo(createPageSystemTreeReader, []);
|
|
30246
|
+
const headingScope = props.headingScope ?? "page";
|
|
30137
30247
|
const headingPresentation = React$1.useMemo(() => applyPageHeadingSemantics(readSystemTrees({
|
|
30138
30248
|
preparation,
|
|
30139
30249
|
dataContext,
|
|
30140
30250
|
registry: resolvedRegistry,
|
|
30141
30251
|
previewAuthoring: props.previewAuthoring,
|
|
30142
30252
|
imageResolveContext
|
|
30143
|
-
}), resolvedRegistry["event-details"]
|
|
30253
|
+
}), resolvedRegistry["event-details"], {
|
|
30254
|
+
scope: headingScope,
|
|
30255
|
+
overrideOwnsPageHeading: overrideOwnsPageHeading(preparation)
|
|
30256
|
+
}), [
|
|
30144
30257
|
preparation,
|
|
30145
30258
|
dataContext,
|
|
30146
30259
|
resolvedRegistry,
|
|
30147
30260
|
props.previewAuthoring,
|
|
30148
30261
|
imageResolveContext,
|
|
30149
|
-
readSystemTrees
|
|
30262
|
+
readSystemTrees,
|
|
30263
|
+
headingScope
|
|
30150
30264
|
]);
|
|
30151
|
-
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));
|
|
30152
30266
|
}
|
|
30153
|
-
function renderEmptyPage(page, audience) {
|
|
30154
|
-
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)] });
|
|
30155
30269
|
}
|
|
30156
30270
|
function wrapRenderedPage(props, plan, rendered) {
|
|
30157
30271
|
return props.wrapPage ? props.wrapPage(plan, rendered) : rendered;
|
|
@@ -30159,7 +30273,7 @@ function wrapRenderedPage(props, plan, rendered) {
|
|
|
30159
30273
|
function renderPreparedPage(props, preparation, themeResources, imageResolveContext, headingPresentation) {
|
|
30160
30274
|
const resolvedRegistry = props.registry ?? getDefaultComponentRegistry();
|
|
30161
30275
|
const joinSlots = joinSlotsByPair(preparation.joins);
|
|
30162
|
-
const renderRegion = (entries, joins) => entries.map((entry, index) => renderGuardedPlanEntry({
|
|
30276
|
+
const renderRegion = (entries, joins, flow) => entries.map((entry, index) => renderGuardedPlanEntry({
|
|
30163
30277
|
entry,
|
|
30164
30278
|
index,
|
|
30165
30279
|
entries,
|
|
@@ -30169,12 +30283,13 @@ function renderPreparedPage(props, preparation, themeResources, imageResolveCont
|
|
|
30169
30283
|
resolvedRegistry,
|
|
30170
30284
|
systemTrees: headingPresentation.trees,
|
|
30171
30285
|
joinSlots: joins,
|
|
30286
|
+
flow,
|
|
30172
30287
|
wrapBlock: props.wrapBlock,
|
|
30173
30288
|
renderJoin: props.renderJoin
|
|
30174
30289
|
}));
|
|
30175
30290
|
const { main, aside } = preparation.regions;
|
|
30176
30291
|
const title = headingPresentation.needsPageTitle ? /* @__PURE__ */ jsx(PageTitleFallback, { name: props.page?.name ?? "" }) : null;
|
|
30177
|
-
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")] });
|
|
30178
30293
|
return /* @__PURE__ */ jsxs("div", {
|
|
30179
30294
|
className: "rb-page-layout",
|
|
30180
30295
|
"data-page-layout": "main-aside",
|
|
@@ -30183,12 +30298,12 @@ function renderPreparedPage(props, preparation, themeResources, imageResolveCont
|
|
|
30183
30298
|
/* @__PURE__ */ jsx("div", {
|
|
30184
30299
|
className: "rb-page-layout__main",
|
|
30185
30300
|
"data-page-region": "main",
|
|
30186
|
-
children: renderRegion(main, joinSlots)
|
|
30301
|
+
children: renderRegion(main, joinSlots, "main")
|
|
30187
30302
|
}),
|
|
30188
30303
|
/* @__PURE__ */ jsx("aside", {
|
|
30189
30304
|
className: "rb-page-layout__aside rb-sticky-below-site-chrome",
|
|
30190
30305
|
"data-page-region": "aside",
|
|
30191
|
-
children: renderRegion(aside, /* @__PURE__ */ new Map())
|
|
30306
|
+
children: renderRegion(aside, /* @__PURE__ */ new Map(), "aside")
|
|
30192
30307
|
})
|
|
30193
30308
|
]
|
|
30194
30309
|
});
|
|
@@ -30277,6 +30392,10 @@ function requireEntryBlockOverride(entry, themeResources) {
|
|
|
30277
30392
|
}
|
|
30278
30393
|
requireBlockOverride(themeResources, entry.override, entry.block.kind);
|
|
30279
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
|
+
}
|
|
30280
30399
|
/**
|
|
30281
30400
|
* Renders one planned block: its wrapper, style-group data attributes,
|
|
30282
30401
|
* boundary reserve space and the join markup that follows it.
|
|
@@ -30337,6 +30456,7 @@ function renderPlanEntry(input) {
|
|
|
30337
30456
|
"data-block-composition": blockComposition?.treatment,
|
|
30338
30457
|
"data-block-composition-kind": blockComposition?.kind,
|
|
30339
30458
|
"data-page-block-position": blockPosition,
|
|
30459
|
+
"data-page-ending": pageEndingAttribute(input.flow, blockPosition),
|
|
30340
30460
|
"data-site-style-boundary-before": reserves.topPlacement,
|
|
30341
30461
|
"data-site-style-boundary-after": reserves.bottomPlacement,
|
|
30342
30462
|
"data-site-style-field-seam": reserves.fieldSeam,
|
|
@@ -30431,6 +30551,9 @@ function resolveSystemBlockTree(input) {
|
|
|
30431
30551
|
return /* @__PURE__ */ jsx(FailedSystemBlockTree, { error });
|
|
30432
30552
|
}
|
|
30433
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
|
+
}
|
|
30434
30557
|
/** Preserve the block memo's reuse rules while resolving page-wide heading facts. */
|
|
30435
30558
|
function createPageSystemTreeReader() {
|
|
30436
30559
|
const memo = {};
|
|
@@ -30750,6 +30873,14 @@ function resolveSiteCustomBlocks(site) {
|
|
|
30750
30873
|
}
|
|
30751
30874
|
//#endregion
|
|
30752
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
|
+
}
|
|
30753
30884
|
function buildSiteRenderSupport(site, mediaAssets, locationMapSupport) {
|
|
30754
30885
|
const customBlocks = resolveSiteCustomBlocks(site);
|
|
30755
30886
|
return {
|
|
@@ -30759,14 +30890,13 @@ function buildSiteRenderSupport(site, mediaAssets, locationMapSupport) {
|
|
|
30759
30890
|
venuesById: locationMapSupport.venuesById
|
|
30760
30891
|
} : site.site,
|
|
30761
30892
|
sdkConfig: site.sdkConfig ?? null,
|
|
30762
|
-
bookingOfferingPresets: site.bookingOfferingPresets ?? [],
|
|
30763
30893
|
openingHours: site.businessDetails?.openingHours ?? null,
|
|
30764
30894
|
siteTerms: site.siteTerms,
|
|
30765
30895
|
mailingList: site.mailingList,
|
|
30766
30896
|
interactionContext: site.interactionContext,
|
|
30767
30897
|
businessLocationPermission: site.site.businessLocationPermission,
|
|
30768
30898
|
businessAddressVisibility: site.businessDetails?.addressVisibility ?? "hidden",
|
|
30769
|
-
|
|
30899
|
+
...siteBookingRenderSupport(site),
|
|
30770
30900
|
now: toUtcIsoDateTimeString((/* @__PURE__ */ new Date()).toISOString()),
|
|
30771
30901
|
...customBlocks ? { customBlocks } : {},
|
|
30772
30902
|
supabaseUrl: site.supabaseUrl,
|
|
@@ -30777,8 +30907,9 @@ function buildSiteRenderSupport(site, mediaAssets, locationMapSupport) {
|
|
|
30777
30907
|
};
|
|
30778
30908
|
}
|
|
30779
30909
|
/** Only already-permitted projections reach the block runtime. */
|
|
30780
|
-
function
|
|
30910
|
+
function siteBlockRenderContext(support) {
|
|
30781
30911
|
return {
|
|
30912
|
+
businessPerson: support.businessPerson,
|
|
30782
30913
|
businessLocationPermission: support.site.businessLocationPermission,
|
|
30783
30914
|
businessAddressVisibility: support.businessAddressVisibility ?? "hidden",
|
|
30784
30915
|
businessLocation: support.site.businessLocation ?? null,
|
|
@@ -31374,15 +31505,17 @@ function normalizeSdkCustomBlocks(customBlocks) {
|
|
|
31374
31505
|
}
|
|
31375
31506
|
function toBlocksBlockOverrides(overrides) {
|
|
31376
31507
|
if (!overrides) return void 0;
|
|
31377
|
-
|
|
31378
|
-
|
|
31379
|
-
|
|
31380
|
-
|
|
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, {
|
|
31381
31514
|
...props,
|
|
31382
31515
|
entrySubrouteContext: props.entrySubrouteContext
|
|
31383
31516
|
});
|
|
31384
|
-
|
|
31385
|
-
|
|
31517
|
+
return [key, Object.assign(adapter, { ownsPageHeading: entry.ownsPageHeading })];
|
|
31518
|
+
}));
|
|
31386
31519
|
}
|
|
31387
31520
|
function toBlocksPageRendererDataContext(dataContext) {
|
|
31388
31521
|
return {
|
|
@@ -31405,7 +31538,8 @@ function toBlocksCommonProps(props) {
|
|
|
31405
31538
|
registry: props.registry,
|
|
31406
31539
|
blockOverrides: toBlocksBlockOverrides(props.blockOverrides),
|
|
31407
31540
|
sdkConfig: props.sdkConfig ? { customBlocks: normalizeSdkCustomBlocks(props.sdkConfig.customBlocks) } : props.sdkConfig,
|
|
31408
|
-
customBlocks: normalizeSdkCustomBlocks(props.customBlocks)
|
|
31541
|
+
customBlocks: normalizeSdkCustomBlocks(props.customBlocks),
|
|
31542
|
+
headingScope: props.headingScope
|
|
31409
31543
|
};
|
|
31410
31544
|
}
|
|
31411
31545
|
function PageRenderer(props) {
|
|
@@ -31553,6 +31687,7 @@ function buildPageIdentityRenderContext(dataContext) {
|
|
|
31553
31687
|
demoEmailSuppressed: dataContext.demoEmailSuppressed,
|
|
31554
31688
|
now: dataContext.now,
|
|
31555
31689
|
siteName: dataContext.siteName,
|
|
31690
|
+
businessPerson: dataContext.businessPerson ?? null,
|
|
31556
31691
|
businessLocationPermission: dataContext.businessLocationPermission,
|
|
31557
31692
|
businessAddressVisibility: dataContext.businessAddressVisibility,
|
|
31558
31693
|
businessLocation: dataContext.businessLocation,
|
|
@@ -31683,4 +31818,4 @@ function Page(props) {
|
|
|
31683
31818
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(HydratorWithContextProps, { ...toPageHydrationBootstrapConfig(props) }), /* @__PURE__ */ jsx(PageContent, { ...props })] });
|
|
31684
31819
|
}
|
|
31685
31820
|
//#endregion
|
|
31686
|
-
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 };
|