@riverbankcms/sdk 0.173.0 → 0.174.1
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-YRmc-Yxz.d.ts} +1 -1
- package/dist/_dts/{Page-Bk99sJwV.d.ts → Page-Du0zX1B-.d.ts} +27 -16
- package/dist/_dts/{SdkPreviewMode-DzAue6Kj.d.ts → SdkPreviewMode-4L8v3FkY.d.ts} +14 -7
- package/dist/_dts/{client-ZlNEIvlU.d.ts → client-B1J6Akyf.d.ts} +1 -1
- package/dist/_dts/{content-types-DBXPNc0h.d.ts → content-types-CGGYI0u_.d.ts} +2 -2
- package/dist/_dts/{contracts-D9bhu0bb.d.ts → contracts-CHMlw9hT.d.ts} +5 -4
- package/dist/_dts/{footerPageOutline-Bfap3soN.d.ts → footerPageOutline-DIHSU1Vr.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-DwCdg31h.d.ts → generatePageMetadata-JITXD6BU.d.ts} +2 -2
- package/dist/_dts/{index-Dq_AboWN.d.ts → index-BLEKFHt1.d.ts} +1 -1
- package/dist/_dts/{index-BnatulTs.d.ts → index-BgOr1Xyz.d.ts} +3 -3
- package/dist/_dts/{index-KXh8FQ2s.d.ts → index-CF62FntA.d.ts} +2 -2
- package/dist/_dts/{index-CJzs-yIJ.d.ts → index-CXZSy_9M.d.ts} +2 -2
- package/dist/_dts/{index-DutLU2d2.d.ts → index-D9ZYmGAJ.d.ts} +2 -1
- package/dist/_dts/{index-DW3eeNph.d.ts → index-DpJm0NpL.d.ts} +4 -4
- package/dist/_dts/{index-C611wjIL.d.ts → index-yWDbUojb.d.ts} +1 -1
- package/dist/_dts/{loadContent-Bde2y870.d.ts → loadContent-M-s0p0rq.d.ts} +11 -11
- package/dist/_dts/{request-Bysk4QPI.d.ts → request-BK-pHf0P.d.ts} +3685 -1762
- package/dist/_dts/{resolveBlockData-ChbNvpSF.d.ts → resolveBlockData-DZAlnhwt.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-CGa6QMgc.d.ts → resolvePageContent-DXUCWJ3y.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-CwmB2NHU.d.ts} +7 -7
- package/dist/_dts/{types-BoEk9ZON.d.ts → types-DjVNADXR.d.ts} +3 -3
- package/dist/_dts/{types-kpp8XyXv.d.ts → types-Dmow_FI6.d.ts} +2 -2
- package/dist/_dts/{validation-ChftKX-o.d.ts → validation-h8t1HLlL.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-BnUeSE3d.mjs → BlocksIslandsHydrator-DRVx_XLi.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-LHQMODqB.mjs → BookingMailingListNote-CwrMzj-k.mjs} +10 -10
- package/dist/client/{BookingPanelArrangement-Be704P85.mjs → BookingPanelArrangement-C2_hFT6K.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-BewbU_cV.mjs → BookingQuestionFields-DZMrGvBh.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-BMZp3RS3.mjs → CalendarNavigationChevron-Az1-TIEI.mjs} +6 -6
- package/dist/client/{DemoBookingPortalAccess-CARUWQ_E.mjs → DemoBookingPortalAccess-1p-pJ1lg.mjs} +5 -5
- package/dist/client/{EventCalendar.client-CaI6upCX.mjs → EventCalendar.client-CDkkP-Lv.mjs} +9 -9
- package/dist/client/{EventCombined.client-CoRUaYHY.mjs → EventCombined.client-DK3aaz62.mjs} +7 -7
- package/dist/client/{EventItem-Doe4KodB.mjs → EventItem-WeUipfIP.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-CXWLKDfa.mjs → EventListWeekNavigation-D3sbAeDo.mjs} +1 -1
- package/dist/client/{EventListing.client-DvJ5tGTx.mjs → EventListing.client-DL3gGGmF.mjs} +3 -3
- package/dist/client/{EventListing.view-BmfyK7S5.mjs → EventListing.view-DKFImKOx.mjs} +6 -6
- package/dist/client/{EventRegistrationPayment-DwMlJB2V.mjs → EventRegistrationPayment-Dn9TpWyL.mjs} +45 -18
- 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-BpeP9xdt.mjs} +731 -1549
- package/dist/client/{StepIndicator-CrSZCZn1.mjs → StepIndicator-CP6zrwkl.mjs} +6 -242
- package/dist/client/{accessibleSurfaces-D4DhWo9j.mjs → accessibleSurfaces-DN8it_Cx.mjs} +35 -7
- package/dist/client/{accordion-P8xcfKxq.mjs → accordion-nR7D4m1a.mjs} +1 -1
- package/dist/client/{booking-form.client-BM2s-NqR.mjs → booking-form.client-Ce-mQZ7W.mjs} +362 -47
- package/dist/client/{bookingForm-JnaZPZge.mjs → bookingForm-B-qT_AQB.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{boxStyleClassNames-Cahps5kR.mjs → boxStyleClassNames-CrE3TDpW.mjs} +2 -29
- package/dist/client/{carousel-CQQ_m0KA.mjs → carousel-CVUOatsY.mjs} +1 -1
- package/dist/client/{cart-0Q4fjw_K.mjs → cart-DE0K6E0R.mjs} +3 -3
- package/dist/client/{cart.client-BI0IaHX3.mjs → cart.client-C23E6WQ5.mjs} +1 -1
- package/dist/client/{checkout-1J-3ftxF.mjs → checkout-76cdHyPL.mjs} +3 -3
- package/dist/client/{checkout.client-DOGYDlDk.mjs → checkout.client-DJOzqb26.mjs} +1 -1
- package/dist/client/{checkoutUrls-CwHqcqzP.mjs → checkoutUrls-CvIP5DCO.mjs} +1 -1
- package/dist/client/client.mjs +159 -7
- package/dist/client/{context-D0KCgbOq.mjs → context-CNlesLfF.mjs} +1 -1
- package/dist/client/{course-CmOuoZHN.mjs → course-DHIrXqNT.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-Cf_j5stk.mjs} +2574 -763
- package/dist/client/{enhanceHeaderSection-B-eLGs2C.mjs → enhanceHeaderSection-5GD5o4Mt.mjs} +3 -3
- package/dist/client/{event-details.client-DH1-Jxsh.mjs → event-details.client-D7Oz1q2L.mjs} +1 -1
- package/dist/client/{event-registration.client-GuuElczW.mjs → event-registration.client-zbuX36aA.mjs} +137 -131
- package/dist/client/{eventCalendar-BiCINPkV.mjs → eventCalendar-uZrksODt.mjs} +4 -4
- package/dist/client/{eventCombined-BtzmH6FW.mjs → eventCombined-DxhvNAx8.mjs} +4 -4
- package/dist/client/{eventDetails-BJpAD10-.mjs → eventDetails-DCIH4BYG.mjs} +2 -2
- package/dist/client/{eventListing-jLB8iRqp.mjs → eventListing-B9KrnPvc.mjs} +4 -4
- package/dist/client/{eventRegistration-WhtpDEbq.mjs → eventRegistration-TjnURMKl.mjs} +4 -4
- package/dist/client/{form-DO6qKH3M.mjs → form-CfqIAhfN.mjs} +3 -3
- package/dist/client/{form.client-D12ljYiX.mjs → form.client-CL6fF0cW.mjs} +6 -6
- package/dist/client/{form.parts-C8QHaQOI.mjs → form.parts-Bf-L66Gg.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-WVXtOcuW.mjs} +2 -2
- package/dist/client/{newsletter-form.client-oHrqM_Ao.mjs → newsletter-form.client-Bb7GAZpO.mjs} +9 -7
- package/dist/client/{newsletter-form.parts-D5U-FuVy.mjs → newsletter-form.parts-BqOVRdIc.mjs} +1 -1
- package/dist/client/{newsletterForm-CBYbFxSx.mjs → newsletterForm-DOVe-qY3.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-CNzeFnFf.mjs} +1 -1
- package/dist/client/{product-list.client-DkSpw6WQ.mjs → product-list.client-LKpzC7pj.mjs} +1 -1
- package/dist/client/{productDetail-DaqM-LgL.mjs → productDetail-D2JNeEgx.mjs} +3 -3
- package/dist/client/{productList-CMx4-XlG.mjs → productList-DTgZXOEq.mjs} +3 -3
- package/dist/client/{propsDecoder-BZbUKstC.mjs → propsDecoder-mpBQt2AT.mjs} +3 -3
- package/dist/client/{registry.server-Cdot3dMk.mjs → registry.server-DdTJyar2.mjs} +31 -47
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +16 -13
- package/dist/client/{richText-coerce-ByApwB4q.mjs → richText-coerce-C32cRQ03.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DTET8f__.mjs → routeIslandApiConfig-8cfSgT0E.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-Cy6xXDM7.mjs → shop-5LBhftWx.mjs} +3 -3
- package/dist/client/{shop-commerce-oDR76k1q.mjs → shop-commerce-DkValjZj.mjs} +12 -12
- package/dist/client/{shop-commerce-store-DjoUpL3a.mjs → shop-commerce-store-BOmXFmk_.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-WsGb9DD8.mjs → shop-discount-apply.state-D0ifS6KX.mjs} +2 -2
- package/dist/client/{shop.client-Brha4BSM.mjs → shop.client-BTtZqNmv.mjs} +13 -13
- package/dist/client/{shop.interactive-CXhYl0DW.mjs → shop.interactive-DNRqG4aX.mjs} +18 -24
- package/dist/client/{shopShared-JCa_SRhP.mjs → shopShared-Nky6kPYr.mjs} +2 -2
- package/dist/client/{timetableModel-CZeJwMxP.mjs → timetableModel-DZArznD_.mjs} +25 -152
- package/dist/client/{useAvailableSlots-DfbSkWop.mjs → useAvailableSlots-CUVRD1nx.mjs} +24 -4
- package/dist/client/{useDiscountApply-Dq-wjb1d.mjs → useDiscountApply-BBnStWXU.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-Cyy0meCH.mjs → useDiscountCodeUi-d7viY_mu.mjs} +1 -1
- package/dist/client/{useEventPagination-CCAGQHsD.mjs → useEventPagination-Da2JqxGC.mjs} +6 -6
- package/dist/client/{view-Sw075FOY.mjs → view-BvuYmQJ5.mjs} +2 -2
- package/dist/client/{view-D6yebI4r.mjs → view-D9ObkFtz.mjs} +12 -11
- 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-DwxHT-2k.mjs} +57 -144
- package/dist/preview-next/client/{PreviewEditorSidebar-BDY5vdHU.mjs → PreviewEditorSidebar-D4SBxGU6.mjs} +758 -1279
- package/dist/preview-next/client/{PreviewEditorUI-CqZCfOaz.mjs → PreviewEditorUI-D8mUct32.mjs} +29 -26
- package/dist/preview-next/client/{PreviewShell-Bv2HZ7JY.mjs → PreviewShell-L2AEdNUQ.mjs} +50 -30
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BMTcR-MW.mjs → SdkPreviewModeRuntime-bhVAU2D2.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-Jpj_HDra.mjs} +101003 -51855
- package/dist/preview-next/client/{previewChromeRoot-BcOQqJIP.mjs → previewChromeRoot-CYTDvx4u.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-BkckHox4.mjs → sdk-runtime-CZHX6J_4.mjs} +2 -2
- package/dist/preview-next/client/siteStyleAccess-DmGIG9Hk.mjs +9356 -0
- package/dist/preview-next/client/{useAutosaveStatus-CPAHgGqI.mjs → useAutosaveStatus-DQCyswQ-.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-BDkuSZxQ.mjs → useOpenBlockForSetup-LwE5yXvL.mjs} +19 -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-BOuNcOcN.mjs} +153 -2
- package/dist/server/{Block.shared-BaMMstO1.mjs → Block.shared-wfJfhs08.mjs} +10 -5
- package/dist/server/{ThemeScopeCore-D1NTXZdX.mjs → ThemeScopeCore-BtrJNHTB.mjs} +23 -6
- package/dist/server/{accessibleSurfaces-Dbd2__Le.mjs → accessibleSurfaces-CM3QANtw.mjs} +22 -5
- package/dist/server/{bindings-Dge4sqel.mjs → bindings-P1CF2Gm6.mjs} +6 -4
- package/dist/server/{client-VVIQjC4r.mjs → client-CGtU5fHI.mjs} +156 -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-ChnkJSay.mjs} +8 -9
- package/dist/server/{loadPage-DjTU19y7.mjs → loadPage-DesHhgxj.mjs} +3 -3
- package/dist/server/lookMediaFrame-BBr0mkze.mjs +2626 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/next.mjs +9 -8
- package/dist/server/{overrideResolution-1Ru3NMQj.mjs → overrideResolution-DHEkHcZs.mjs} +3 -4
- package/dist/server/page-converter.mjs +2 -2
- package/dist/server/{pageRenderPlan-CytPhrI9.mjs → pageRenderPlan-0jvm0RBk.mjs} +29 -331
- package/dist/server/{pageRuntimeSupport-DWspU5EZ.mjs → pageRuntimeSupport-8-f1Zr9e.mjs} +14 -6
- package/dist/server/{pageShared-Bhx8bVe1.mjs → pageShared-CuVFoV4z.mjs} +370 -291
- 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-Bms_Y7wQ.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Db3stNpp.mjs → prefetchBlockData-5oC5kyHe.mjs} +2 -2
- package/dist/server/{registry-BMCfcev6.mjs → registry-DmqxC8th.mjs} +1258 -3166
- 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-EYogtwQc.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-Bt_8IL1g.mjs} +4 -4
- package/dist/server/{version-LjgU0Cq1.mjs → version-DT_efohp.mjs} +1 -1
- package/dist/styles/index.css +989 -279
- package/package.json +1 -1
- package/dist/client/bookability-SargNwlO.mjs +0 -17
- 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,18 +1,18 @@
|
|
|
1
|
-
import { Dt as parseThemeColorToken, G as hexToRgb, a as formatButtonColourContractError, at as surfaceForegroundValue, c as DEFAULT_BUTTON_SIZES, ct as surfaceInkStyle, d as generateShadowValue$1,
|
|
2
|
-
import { $ as
|
|
3
|
-
import { $ as RichText, $
|
|
4
|
-
import { B as
|
|
5
|
-
import { h as surfaceCardRoleValues, s as boxBackgroundSchema, x as siteChromeBackgroundOverrideOwner } from "./schema-
|
|
1
|
+
import { Dt as parseThemeColorToken, Et as parseColorTokenParts, G as hexToRgb, R as contrastRatio, a as formatButtonColourContractError, at as surfaceForegroundValue, c as DEFAULT_BUTTON_SIZES, ct as surfaceInkStyle, d as generateShadowValue$1, et as SURFACE_INK_CSS_VARS, f as DEFAULT_VARIANT_ALIAS_ID, ft as cssVarValue, g as createStandardButtonSurfacePolicy, gt as textColorValue, h as buttonSizeNameSchema, ht as textColorStyle, i as BUTTON_CONTRAST_POLICY, j as expandPalette, mt as rgbColorValue, n as compileButtonColourStates, nt as surfaceForegroundDeclarations, pt as mergeStyles, r as resolveSolidButtonColour, rt as surfaceForegroundInputFromResolved, s as BORDER_WIDTH_MAP, st as surfaceInkDeclarations, u as FONT_SIZE_MAP, ut as backgroundColorStyle, v as unsafeAsOpaqueButtonColourToken } from "./resolveButtonColourStates--6yJp9Tq.mjs";
|
|
2
|
+
import { $ as resolveEventLinkProps, A as deriveEventScheduleSummary, B as MapPinIcon, C as EventHeader, D as OfferingCourseCards, E as EventListingFrameView, F as CardListCollection, G as buildMonthDay, H as eventDisplayTitleText, I as CardListItems, J as selectQuickDateEvents, K as resolveMonthSelectedDay, L as EventItem, M as createEditorPresentationPageReader, N as createPresentationPageReader, O as eventCardListContent, P as EmptyState, Q as resolveEventCta, R as eventCategoryBadge, S as lookPartShown, T as MonthLookView, U as formatCourseDatesAfter, V as eventDisplayTitle, W as formatCourseSessions, X as formatEventDuration, Y as formatEventTeacherLine, Z as resolveEventCardBooking, _ as publicAppointmentPricingSchema, a as joinSlotKey, at as defaultThemeTokens, b as resolvePageRouteTarget, c as buildLinkedContentEditTarget, et as parseStoredVariant, f as defaultTransforms, g as publicAppointmentLocationSchema, h as formatAppointmentPrice, i as composePageJoins, it as buildThemeTokens, j as derivePreviewRunSchedule, k as offeringDatesBySeries, m as formatAppointmentLocation, n as createPageRenderPlanReader, o as renderedJoinLayout, p as formatAppointmentDuration, q as formatEventQuickDate, s as retargetJoinsAcrossOmissions, u as resolveLinkedEntryInlineFieldEligibility, w as EVENT_REGISTRATION_ANCHOR_ID, x as resolveRouteTarget, y as resolveEntryRouteTarget, z as CalendarIcon } from "./pageRenderPlan-0jvm0RBk.mjs";
|
|
3
|
+
import { $ as RichText, $i as getLocalDateKey, $n as staticHeaderChromeRuntime, $t as formatEventCompactDateRail, A as publicRouteCandidatesSchema, Aa as effectiveHeaderNavLinkStyle, Ai as MinusIcon, An as formatTotalCapacity, As as toScheduledBookingDateTime, At as offeringsListingFor, B as buildEventCollectionHydration, Bn as composeHeaderSectionWrapperClassName, Br as formEmbedFragment, Bs as formatBookingPriceDisplay, Bt as SpinnerNode, C as buildProductListInteractiveIslandProps, Ca as AFFORDANCE_SUPPRESS_CLASS, Ci as CircleMinusIcon, Cn as planWholeSeriesParentSelection, D as membershipClassesLabel, Da as selectItemSurfacePresentation, Di as FileAudioIcon, Dn as isBookableEvent, Dr as formatEventPrice, Dt as groupOfferingRunsByCourse, E as membershipCardListContent, Ei as FileArchiveIcon, En as selectionRepresentativeEvent, Er as formatCoursePrice, Et as buildOfferingsPreviewListing, F as buildEventCalendarListingDisplay, Fa as headerRootPaint, Fn as FEATURE_CARD_ICON_TREATMENTS, Fr as cardFragment, Fs as parseLocalScheduleTime, Ft as ThemedAuthoredButton, G as catalogueEventCardProps, Ga as arrangementManifestFromVariants, Gn as teamMemberBiography, Gr as heroCtaRowFragment, Gs as resolveExactOrFreePriceDisplay, H as eventCollectionDisplaySchemaShape, Hn as splitPositioningClasses, Ho as bindingSchema, Hr as testimonialsCarouselFragment, Hs as publicEventPricingCurrency, Ht as eventListWeekDays, In as resolveFeatureCardGeneratedIconSizePx, Ir as faqAccordionFragment, Is as resolveBookingBusinessTimeZone, It as ThemedButton, Jn as resolveDateRuntimeContext, Jr as heroCopyFragment, Jt as eventDateOptions, K as listingEventCardProps, Kn as teamMemberCardBiography, Kr as ctaRowFragment, Kt as buildCalendarViewport, L as eventListingBlockDefinition, La as arrangementLookHooks, Ln as shouldReserveFeatureCardIconZone, Lr as faqHeadingFragment, Ls as toBookingTimeZone, Lt as ThemedButtonLink, M as offeringsCatalogueShape, Mi as inlineTextToPlainText, Mn as getEventAvailabilityStatus, Mo as transitionCatalogueEntries, Ms as getBookingLocalDateKey, Mt as resolveOfferingsPreviewGroupCta, N as eventCalendarBlockDefinition, Na as headerNeedsPhotoShade, Ni as isInlineTextEmpty, Nn as isEventFull, Nr as richTextFragment, Nt as resolveOfferingsPreviewGroups, O as passCardListContent, Oi as FileSpreadsheetIcon, Or as formatEventPriceAmount, Ot as normalizeOfferingsPreviewItemLimit, P as buildEventCalendarInteractiveIslandProps, Pa as headerRootIsTransparent, Pi as parseInlineTextFromUnknown, Pn as groupPublicEventsByRun, Pr as headingFragment, Pt as resolveOfferingsRenderInput, Q as MediaNodeServer, Qr as resolveCardRoleForBoxStyles, Qs as TokenResolver, Qt as formatEventClockLabel, R as buildEventListingInteractiveIslandProps, Ri as parseFieldDefinitions, Rr as blogFeaturedPostFragment, Rs as toUtcIsoDateTimeString, Rt as ThemedDownloadLink, S as buildProductDetailInteractiveIslandProps, Sa as themeButtonSelector, Si as ChevronDownIcon, Sn as planWholeSeriesParentBooking, T as shopProductPresentation, Ti as ClockIcon, Tn as resolveSelectionBookingClosedDetail, Ts as formatDate$1, Tt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, U as eventCollectionHydrationSchema, Ur as testimonialsHeadingFragment, Us as publicEventPricingDisplay, Ut as eventWeekGroupingContext, V as buildEventCollectionListingDisplay, Vi as eventReadinessLoaderKey, Vn as markEditableSurfaceForwarding, Vr as formCopyFragment, Vs as isPublicEventPricingOptionDisplayable, Vt as buildEventListWeek, W as eventCollectionSourceSchemaShape, Wi as eventReadinessResultSchema, Wn as parseTeamMemberSpecialties, Wr as ctaCopyFragment, Ws as publicEventPricingType, Xr as boxStyleClassNames, Xt as formatCalendarTitle, Y as cardListPresentationSchemaShape, Zr as normalizeBoxStylesBorder, Zt as formatDate, _ as productDetailBlockDefinition, _i as when, _n as eventOccurrenceContext, _r as Grid, _t as resolveEventRegistrationEventSource, a as normalizeLocationMapProps, aa as getWeekCalendarDayTuple, ai as ctaButton, ar as buildInteractiveIslandProps, as as unavailableReadinessFact, b as buildCartInteractiveIslandProps, ba as isRecord$4, bi as resolveBlockIconRenderValue, bn as planDropInPanel, bs as normalizeLocationAddressText, bt as normalizeEventRegistrationPageSurfaceSubject, c as newsletterSignupBlockDefinition, ca as isToday, ci as defineFragment, cn as resolveEventTimeZone, cr as createZodCodec, cs as CANCELLED_SESSION_STATUS, d as buildNewsletterFormInteractiveIslandProps, da as blockBookingPaymentTermsSchema, dn as bookingPresentation, do as generateFooterCss, dr as listItemPresentation, ds as resolveWholeSeriesBookingPhase, dt as setContextResolveImageUrlContext, ea as getLocalMinuteOfDay, en as formatEventDateParts, es as chosenString, et as ImagePresets, f as newsletterBlockSubmissionMessage, fa as blockBookingConsentSchema, fn as browserReadAuthoritySchema, fo as buildTextContrastShadow, fr as listLookControl, fs as buildMailingListSignupBlockSourceRef, ft as EventQuickFacts, g as cartBlockDefinition, gi as el, gn as bookingPageKindSchema, gr as itemRole, gs as sameMailingListPlacementTargeting, gt as buildEventRegistrationInteractiveIslandProps, h as checkoutBlockDefinition, ha as sanitizeHref, hi as runTransforms, hn as closedRunCopy, ho as generateInteractiveChildInheritanceCSS, hr as resolvedItemSurfaceProps, hs as parseMailingListPlacementTargeting, ht as eventRegistrationBlockDefinition, ia as getOrderedDayNames, ii as resolveBackgroundColorValue, in as formatEventTimeRange, ir as buildFormInteractiveIslandProps, is as pageTemplateFromEntry, j as buildOfferingsCatalogueListing, ja as readOpeningToneProjection, ji as PlusIcon, jo as anglePolygonCss, jt as readOfferingsGrouping, k as offeringsPreviewBlockDefinition, ka as authoredHeaderLinkForeground, ki as FileTextIcon, kn as formatEventRemainingPlaces, ks as formatBookingCompactEnglishTime, kt as offeringRunLifecycle, ln as resolveRuntimeEventDestination, lo as resolveCardRole, lr as defineClientOwnedBlockRuntime, lt as buildResolveImageUrlContext, m as buildGiftingInteractiveIslandProps, ma as beforeBookingQuestionsPresentationSchema, mn as pageNavigationSchema, mo as generateEffectsCSS, mr as lookListPresentationSchemaShape, mt as getContainerClass, na as formatDateKey, nn as formatEventNextDateFact, ns as hiddenFromVisitors, o as normalizeLocationMapSource, oa as getWeekCalendarDays, on as formatTime, or as createInteractiveIslandCodec, ot as resolvePublicMediaUrl, p as giftingBlockDefinition, pa as bookingConsentCarrierSchema, pn as blockSiteTermsSchema, po as generateNavLinkCSS, pr as listLookSlot, ps as parseMailingListRuntimeContext, pt as getCardOrientation, q as CardListContentPart, qa as resolveEffectiveArrangement, qn as readRuntimeNow, qr as isBlockButtonRole, r as normalizeBlockContent, ra as getDayOfWeek, ro as requireCuratedSiteStyle, rr as formBlockDefinition, rs as loadedReadinessFact, s as resolveLocationMapLocation, sa as isSameCalendarDay, si as bodyCopyFragment, sn as groupEventsByDate, sr as defineInteractiveIslandMetaKeys, t as getBlockDefinition, ta as addDays, tn as formatEventHourLabel, ts as admitReadinessFacts, tt as MediaPlaceholder, u as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, ua as publicEventsArraySchema, uo as generateDefaultCardSystem, ur as defineProgressiveBlockRuntime, us as orderedLiveRunSessions, ut as getCurrentResolveImageUrlContext, v as productListBlockDefinition, vi as buildGeneratedBlockIconRenderAssetLookupFromUnknown, vn as getPublicEventCanonicalPath, vr as clsx, vs as decideLocationSourcePermission, vt as bookingNowSchema, w as buildShopInteractiveIslandProps, wa as resolveHeaderRootForeground, wi as CirclePlusIcon, wn as planWholeSeriesRunSelection, wo as boundaryRuntimeMetricsForDecorativeTransition, ws as mapDrawingSchema, x as buildCheckoutInteractiveIslandProps, xa as parseThemeButtonVariantId, xi as ArrowDownIcon, xn as planOrdinarySeriesSelection, xt as resolveEventRegistrationScopedEvents, y as shopBlockDefinition, ya as isObjectRecord, yi as parseBlockIconValue, yn as isOrdinaryPublicEvent, yt as previewStageSchema, z as buildEventCollectionDisplay, zi as PUBLIC_DOWNLOAD_MEDIA_TYPES, zr as singleButtonFragment, zt as getIconComponent } from "./registry-DmqxC8th.mjs";
|
|
4
|
+
import { B as HOVER_TEXT_THRESHOLD, C as materializeRuntimeButtonAppearance, F as resolveSurfaceForeground, G as resolveConcreteColorHex, H as contrastThresholdByPolicy, K as resolveOpaqueSurfaceHex, L as surfaceInkPublication, N as freezeOwnedThemeValue, O as mapButtonVisualAppearances, P as ownedThemeSnapshot, S as buttonTypographyDeclarations, U as inkReference, V as certifyPaint, b as buttonShadow, f as compositeHex, g as actionVariableFallback, n as parseSurfaceTree, o as resolveSurface, s as serializeSurfaceTree, v as buttonBorder, w as paddingDeclarations, x as buttonStateAppearanceDeclarations, y as buttonRadius } from "./accessibleSurfaces-CM3QANtw.mjs";
|
|
5
|
+
import { h as surfaceCardRoleValues, s as boxBackgroundSchema, x as siteChromeBackgroundOverrideOwner } from "./schema-CUDHMirj.mjs";
|
|
6
6
|
import { l as renderableMediaAssetSchema, o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
7
7
|
import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
|
|
8
|
-
import { A as MQ_TABLET_ONLY, D as MQ_MD_UP, E as MQ_MD_DOWN, O as MQ_SM_DOWN, T as MQ_LG_UP, c as readSdkPreviewPublishedPlacement, g as validateManifestDraft, k as MQ_SM_UP, m as compileManifestContentContract } from "./pageRuntimeSupport-
|
|
8
|
+
import { A as MQ_TABLET_ONLY, D as MQ_MD_UP, E as MQ_MD_DOWN, O as MQ_SM_DOWN, T as MQ_LG_UP, c as readSdkPreviewPublishedPlacement, g as validateManifestDraft, k as MQ_SM_UP, m as compileManifestContentContract } from "./pageRuntimeSupport-8-f1Zr9e.mjs";
|
|
9
9
|
import { n as RichTextDocSchema } from "./richTextSchema-QLaQrbII.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import { A as
|
|
12
|
-
import { c as mergeHeaderNavTypographyPreference, l as readHeaderNavFontSizePreference } from "./bindings-
|
|
13
|
-
import { t as parseThemeForPersistence } from "./parseThemeForPersistence-
|
|
10
|
+
import { D as testimonialsCompositionTreatmentValues, N as opaqueSurfaceContextFromTheme, P as opaqueSurfaceDeclarations, S as offeringsPreviewCompositionTreatmentValues, b as introCompositionTreatmentValues, v as featureCardCompositionTreatmentValues } from "./lookMediaFrame-BBr0mkze.mjs";
|
|
11
|
+
import { A as generateShadowCssVars, C as INPUT_ERROR_BORDER_COLOR_VAR, D as RESOLVED_BUTTON_DISABLED_DECLARATIONS, E as generateOpaquePanelCss, M as cardBorderDeclarations, N as cardDecorationPseudoRules, O as resolvedButtonColourDeclarations, S as INPUT_EDGE_COLOR_VAR, T as generateCheckableCss, _ as getResponsiveScopeSpec, a as prefixSelector, b as INPUT_GROUP_SELECTOR, c as parseCustomCssRules, d as THEME_RADIUS_CSS_VARS, f as generateTypographyCss, g as THEME_RESPONSIVE_CONTAINER_NAME, h as DEFAULT_THEME_RESPONSIVE_MODE, i as escapeStyleContent, j as renderCssDeclarations, k as resolvedButtonFocusDeclarations, l as generateAllBlockVarsCss, m as generateStatusCss, n as compileBlockCustomCssRules, o as toKebabCase, p as generateProgressCss, r as compileCustomCssRules, s as parseBlockCustomCssRules, t as ThemeScopeCore, u as generateBlockCustomVarsCss, v as INPUT_GROUP_ERROR_SELECTOR, w as inputEdgeColorValue, x as generateInputGroupCss, y as INPUT_GROUP_FOCUS_SELECTOR } from "./ThemeScopeCore-BtrJNHTB.mjs";
|
|
12
|
+
import { c as mergeHeaderNavTypographyPreference, l as readHeaderNavFontSizePreference } from "./bindings-P1CF2Gm6.mjs";
|
|
13
|
+
import { t as parseThemeForPersistence } from "./parseThemeForPersistence-Cwqb5pZx.mjs";
|
|
14
14
|
import { n as mapOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
|
|
15
|
-
import { t as getAtPath } from "./src-
|
|
15
|
+
import { t as getAtPath } from "./src-DHK4JUlp.mjs";
|
|
16
16
|
import * as React$1 from "react";
|
|
17
17
|
import React, { forwardRef } from "react";
|
|
18
18
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -116,6 +116,15 @@ const openingHoursWeekdayLabels = {
|
|
|
116
116
|
saturday: "Saturday",
|
|
117
117
|
sunday: "Sunday"
|
|
118
118
|
};
|
|
119
|
+
const shortWeekdayLabels = {
|
|
120
|
+
monday: "Mon",
|
|
121
|
+
tuesday: "Tue",
|
|
122
|
+
wednesday: "Wed",
|
|
123
|
+
thursday: "Thu",
|
|
124
|
+
friday: "Fri",
|
|
125
|
+
saturday: "Sat",
|
|
126
|
+
sunday: "Sun"
|
|
127
|
+
};
|
|
119
128
|
function formatOpeningHoursTime(value) {
|
|
120
129
|
const time = parseLocalScheduleTime(value);
|
|
121
130
|
return formatBookingCompactEnglishTime(toScheduledBookingDateTime({
|
|
@@ -127,14 +136,15 @@ function formatOpeningHoursTime(value) {
|
|
|
127
136
|
function formatDayHours(day) {
|
|
128
137
|
return day.kind === "closed" ? "Closed" : day.intervals.map((interval) => `${formatOpeningHoursTime(interval.opensAt)} to ${formatOpeningHoursTime(interval.closesAt)}`).join(", ");
|
|
129
138
|
}
|
|
130
|
-
function weekdayRangeLabel(weekdays) {
|
|
139
|
+
function weekdayRangeLabel(weekdays, style) {
|
|
131
140
|
const first = weekdays[0];
|
|
132
141
|
const last = weekdays[weekdays.length - 1];
|
|
133
142
|
if (!first || !last) return "";
|
|
134
|
-
|
|
143
|
+
const labels = style === "short" ? shortWeekdayLabels : openingHoursWeekdayLabels;
|
|
144
|
+
return first === last ? labels[first] : `${labels[first]}${style === "short" ? "–" : " to "}${labels[last]}`;
|
|
135
145
|
}
|
|
136
146
|
/** Monday-first table rows; only adjacent days with identical ranges are grouped. */
|
|
137
|
-
function formatOpeningHoursRows(hours) {
|
|
147
|
+
function formatOpeningHoursRows(hours, options = {}) {
|
|
138
148
|
return (hours?.days ?? []).reduce((rows, day) => {
|
|
139
149
|
const text = formatDayHours(day);
|
|
140
150
|
const previous = rows[rows.length - 1];
|
|
@@ -142,7 +152,7 @@ function formatOpeningHoursRows(hours) {
|
|
|
142
152
|
const row = {
|
|
143
153
|
kind: day.kind,
|
|
144
154
|
weekdays,
|
|
145
|
-
label: weekdayRangeLabel(weekdays),
|
|
155
|
+
label: weekdayRangeLabel(weekdays, options.labels ?? "full"),
|
|
146
156
|
hours: text
|
|
147
157
|
};
|
|
148
158
|
return weekdays.length > 1 ? [...rows.slice(0, -1), row] : [...rows, row];
|
|
@@ -1655,10 +1665,12 @@ function generateInputCss({ themeId, theme, inputSystem }) {
|
|
|
1655
1665
|
baseInputRules.push(`color: ${rgbColorValue(inputSystem.base.textColorToken)}`);
|
|
1656
1666
|
const borderPx = parseBorderWidth(inputSystem.base.border.widthClass);
|
|
1657
1667
|
const borderStyle = inputSystem.base.border.style ?? "all";
|
|
1668
|
+
baseInputRules.push(`${INPUT_EDGE_COLOR_VAR}: ${inputEdgeColorValue(inputSystem.base.border.colorToken)}`);
|
|
1669
|
+
baseInputRules.push(`${INPUT_ERROR_BORDER_COLOR_VAR}: ${rgbColorValue(inputSystem.error.borderColorToken)}`);
|
|
1658
1670
|
if (borderStyle === "underline") {
|
|
1659
1671
|
baseInputRules.push("border: none");
|
|
1660
|
-
baseInputRules.push(`border-bottom: ${borderPx} solid ${
|
|
1661
|
-
} else baseInputRules.push(`border: ${borderPx} solid ${
|
|
1672
|
+
baseInputRules.push(`border-bottom: ${borderPx} solid var(${INPUT_EDGE_COLOR_VAR})`);
|
|
1673
|
+
} else baseInputRules.push(`border: ${borderPx} solid var(${INPUT_EDGE_COLOR_VAR})`);
|
|
1662
1674
|
if (borderStyle === "underline") baseInputRules.push("border-radius: 0");
|
|
1663
1675
|
else {
|
|
1664
1676
|
const borderRadius = CORNER_MAP[inputSystem.base.corners ?? theme.corners];
|
|
@@ -1721,7 +1733,7 @@ function generateInputCss({ themeId, theme, inputSystem }) {
|
|
|
1721
1733
|
`${rootSelector} ${INPUT_GROUP_ERROR_SELECTOR}`
|
|
1722
1734
|
];
|
|
1723
1735
|
const errorRules = [];
|
|
1724
|
-
errorRules.push(`border-color: ${
|
|
1736
|
+
errorRules.push(`border-color: var(${INPUT_ERROR_BORDER_COLOR_VAR})`);
|
|
1725
1737
|
errorRules.push(`color: ${rgbColorValue(inputSystem.error.textColorToken)}`);
|
|
1726
1738
|
const disabledSelectors = [
|
|
1727
1739
|
`${inputSelector}:disabled`,
|
|
@@ -1736,7 +1748,7 @@ function generateInputCss({ themeId, theme, inputSystem }) {
|
|
|
1736
1748
|
const checkableCss = generateCheckableCss({
|
|
1737
1749
|
root: rootSelector,
|
|
1738
1750
|
borderWidth: borderPx,
|
|
1739
|
-
borderColor:
|
|
1751
|
+
borderColor: inputEdgeColorValue(inputSystem.base.border.colorToken),
|
|
1740
1752
|
background: inputBackgroundValue(inputSystem.base.background),
|
|
1741
1753
|
corners: inputSystem.base.corners ?? theme.corners,
|
|
1742
1754
|
accentToken: inputSystem.focus.borderColorToken ?? inputSystem.focus.ringColorToken,
|
|
@@ -2142,6 +2154,239 @@ function buildHeaderSurfaceRules(header, tokens) {
|
|
|
2142
2154
|
};
|
|
2143
2155
|
}
|
|
2144
2156
|
//#endregion
|
|
2157
|
+
//#region ../theme-core/src/navigation/effectContrast.ts
|
|
2158
|
+
/** Only a known solid ground and known ink can justify a runtime correction. */
|
|
2159
|
+
function decideNavEffectContrast(paint, ink, request) {
|
|
2160
|
+
if (paint === null || ink === null) return { kind: "unchanged" };
|
|
2161
|
+
return request.effect === "gradient-text" ? decideGradient(paint, ink, request) : decideOpacity(paint, ink, request.option);
|
|
2162
|
+
}
|
|
2163
|
+
function decideGradient(paint, ink, request) {
|
|
2164
|
+
if (request.option.length === 0 || request.option.some((stop) => stop === null)) return { kind: "unchanged" };
|
|
2165
|
+
const threshold = request.state === "hover" ? HOVER_TEXT_THRESHOLD : contrastThresholdByPolicy["body-aa"];
|
|
2166
|
+
if (request.option.every((stop) => stop !== null && contrastRatio(stop, paint) >= threshold)) return { kind: "gradient" };
|
|
2167
|
+
return { kind: inkContrast(ink, 1, paint) >= threshold ? "plain" : "unchanged" };
|
|
2168
|
+
}
|
|
2169
|
+
function decideOpacity(paint, ink, authored) {
|
|
2170
|
+
const passes = (opacity) => inkContrast(ink, opacity, paint) >= HOVER_TEXT_THRESHOLD;
|
|
2171
|
+
if (!passes(1)) return { kind: "unchanged" };
|
|
2172
|
+
return {
|
|
2173
|
+
kind: "opacity",
|
|
2174
|
+
opacity: passes(authored) ? authored : opacityFloor(passes, 0, 1, 24)
|
|
2175
|
+
};
|
|
2176
|
+
}
|
|
2177
|
+
function inkContrast(ink, opacity, paint) {
|
|
2178
|
+
return contrastRatio(compositeHex(ink.hex, ink.opacity * opacity, paint), paint);
|
|
2179
|
+
}
|
|
2180
|
+
/** Keep the passing end of the search so rounding never lowers the floor. */
|
|
2181
|
+
function opacityFloor(passes, low, high, steps) {
|
|
2182
|
+
if (steps === 0) return high;
|
|
2183
|
+
const midpoint = (low + high) / 2;
|
|
2184
|
+
return passes(midpoint) ? opacityFloor(passes, low, midpoint, steps - 1) : opacityFloor(passes, midpoint, high, steps - 1);
|
|
2185
|
+
}
|
|
2186
|
+
//#endregion
|
|
2187
|
+
//#region ../theme-core/src/navigation/renderedNavEffects.ts
|
|
2188
|
+
const NAV_RENDERED_STATES = [
|
|
2189
|
+
"rest",
|
|
2190
|
+
"hover",
|
|
2191
|
+
"current",
|
|
2192
|
+
"current-hover"
|
|
2193
|
+
];
|
|
2194
|
+
function isNavHover(state) {
|
|
2195
|
+
return state === "hover" || state === "current-hover";
|
|
2196
|
+
}
|
|
2197
|
+
function isCurrent(state) {
|
|
2198
|
+
return state === "current" || state === "current-hover";
|
|
2199
|
+
}
|
|
2200
|
+
/** Mirrors the historical emitters: every group writes a base gradient and hover opacity;
|
|
2201
|
+
* active groups additionally write the more specific current-page selector. */
|
|
2202
|
+
function resolveRenderedNavEffects(effects, state) {
|
|
2203
|
+
const applications = [
|
|
2204
|
+
"base",
|
|
2205
|
+
"hover",
|
|
2206
|
+
"active",
|
|
2207
|
+
"focus"
|
|
2208
|
+
].flatMap((group) => (effects?.[group] ?? []).map((effect) => ({
|
|
2209
|
+
effect,
|
|
2210
|
+
group
|
|
2211
|
+
})));
|
|
2212
|
+
const opacity = winner(applications.filter(({ effect }) => effect.effectId === "fade-background" || effect.effectId === "opacity-reduce").flatMap((app) => opacityCandidates(app, state)));
|
|
2213
|
+
return {
|
|
2214
|
+
text: winner(applications.filter(({ effect }) => effect.effectId === "gradient-text").flatMap((app) => textCandidates(app, state))),
|
|
2215
|
+
opacity: opacity ? authoredOpacity(opacity) : null
|
|
2216
|
+
};
|
|
2217
|
+
}
|
|
2218
|
+
function authoredOpacity(effect) {
|
|
2219
|
+
const options = effect.options ?? {};
|
|
2220
|
+
const opacity = effect.effectId === "fade-background" ? Number(options.opacity || 80) / 100 : 1 - Number(options.reduction || 15) / 100;
|
|
2221
|
+
return Number.isFinite(opacity) && opacity >= 0 && opacity <= 1 ? opacity : null;
|
|
2222
|
+
}
|
|
2223
|
+
function textCandidates(app, state) {
|
|
2224
|
+
const gradient = {
|
|
2225
|
+
effect: app.effect,
|
|
2226
|
+
fill: "gradient"
|
|
2227
|
+
};
|
|
2228
|
+
const solid = {
|
|
2229
|
+
effect: app.effect,
|
|
2230
|
+
fill: "solid"
|
|
2231
|
+
};
|
|
2232
|
+
const solidOnHover = app.effect.options?.solidOnHover === true || app.effect.options?.solidOnHover === "true";
|
|
2233
|
+
const hover = isNavHover(state) && solidOnHover ? [{
|
|
2234
|
+
value: solid,
|
|
2235
|
+
specificity: 2
|
|
2236
|
+
}] : [];
|
|
2237
|
+
const currentHover = isNavHover(state) && solidOnHover ? [{
|
|
2238
|
+
value: solid,
|
|
2239
|
+
specificity: 3
|
|
2240
|
+
}] : [];
|
|
2241
|
+
const current = isCurrent(state) && app.group === "active" ? [{
|
|
2242
|
+
value: gradient,
|
|
2243
|
+
specificity: 2
|
|
2244
|
+
}, ...currentHover] : [];
|
|
2245
|
+
return [
|
|
2246
|
+
{
|
|
2247
|
+
value: gradient,
|
|
2248
|
+
specificity: 1
|
|
2249
|
+
},
|
|
2250
|
+
...hover,
|
|
2251
|
+
...current
|
|
2252
|
+
];
|
|
2253
|
+
}
|
|
2254
|
+
function opacityCandidates(app, state) {
|
|
2255
|
+
if (!isNavHover(state)) return [];
|
|
2256
|
+
const current = isCurrent(state) && app.group === "active" ? [{
|
|
2257
|
+
value: app.effect,
|
|
2258
|
+
specificity: 3
|
|
2259
|
+
}] : [];
|
|
2260
|
+
return [{
|
|
2261
|
+
value: app.effect,
|
|
2262
|
+
specificity: 2
|
|
2263
|
+
}, ...current];
|
|
2264
|
+
}
|
|
2265
|
+
/** Later declarations win equal specificity, just as they do in the emitted CSS. */
|
|
2266
|
+
function winner(candidates) {
|
|
2267
|
+
return candidates.reduce((chosen, candidate) => chosen === null || candidate.specificity >= chosen.specificity ? candidate : chosen, null)?.value ?? null;
|
|
2268
|
+
}
|
|
2269
|
+
//#endregion
|
|
2270
|
+
//#region ../theme-core/src/header/navEffectPaint.ts
|
|
2271
|
+
const TEXT_ONLY_EFFECTS = /* @__PURE__ */ new Set([
|
|
2272
|
+
"gradient-text",
|
|
2273
|
+
"fade-background",
|
|
2274
|
+
"opacity-reduce",
|
|
2275
|
+
"text-color-change",
|
|
2276
|
+
"nav-underline",
|
|
2277
|
+
"border-bottom-grow",
|
|
2278
|
+
"border-color-change",
|
|
2279
|
+
"scale-up",
|
|
2280
|
+
"scale-down",
|
|
2281
|
+
"lift",
|
|
2282
|
+
"press-down",
|
|
2283
|
+
"pop"
|
|
2284
|
+
]);
|
|
2285
|
+
/** No backdrop sampling or compositing: only an explicitly opaque, image-free paint. */
|
|
2286
|
+
function resolveCorrectableNavPaint(header, style, palette) {
|
|
2287
|
+
if (header.background.type !== "color" || header.scrollTreatment) return null;
|
|
2288
|
+
if (Object.values(style.effects ?? {}).flatMap((group) => group ?? []).some((effect) => !TEXT_ONLY_EFFECTS.has(effect.effectId))) return null;
|
|
2289
|
+
const reference = solidPaintReference(header);
|
|
2290
|
+
return reference ? resolveConcreteColorHex(reference, palette) : null;
|
|
2291
|
+
}
|
|
2292
|
+
function solidPaintReference(header) {
|
|
2293
|
+
const nav = header.navContainer;
|
|
2294
|
+
if (nav?.type === "glass") return null;
|
|
2295
|
+
if (nav?.type === "pill") return nav.tint ? opaqueTint(nav.tint, nav.opacity) : "surface";
|
|
2296
|
+
if (header.variant !== "floating") return header.background.color || "surface";
|
|
2297
|
+
const frame = header.container;
|
|
2298
|
+
return frame ? opaqueTint(frame.tint ?? "raw:#ffffff", frame.opacity) : null;
|
|
2299
|
+
}
|
|
2300
|
+
function opaqueTint(tint, opacity) {
|
|
2301
|
+
return typeof opacity === "number" && opacity >= 1 ? tint : null;
|
|
2302
|
+
}
|
|
2303
|
+
//#endregion
|
|
2304
|
+
//#region ../theme-core/src/header/navEffectContrast.ts
|
|
2305
|
+
/** The only effects changed are the winners in four disjoint rendered states. */
|
|
2306
|
+
function generateHeaderNavEffectContrastCss(header, style, theme, themeId) {
|
|
2307
|
+
const palette = expandPalette(theme.palette);
|
|
2308
|
+
const paint = resolveCorrectableNavPaint(header, style, palette);
|
|
2309
|
+
if (paint === null) return "";
|
|
2310
|
+
const foreground = resolveHeaderRootForeground(header, palette, headerRootIsTransparent(header));
|
|
2311
|
+
const context = {
|
|
2312
|
+
paint,
|
|
2313
|
+
palette,
|
|
2314
|
+
links: foreground.kind === "known" ? foreground.roles : authoredHeaderLinkForeground(header, palette)
|
|
2315
|
+
};
|
|
2316
|
+
const selector = `:where([data-theme-scope="${themeId}"]) .header-root .header-nav-row .header-nav-link`;
|
|
2317
|
+
return NAV_RENDERED_STATES.map((state) => stateCorrection(style, state, context, selector)).join("");
|
|
2318
|
+
}
|
|
2319
|
+
function stateCorrection(style, state, context, selector) {
|
|
2320
|
+
const winners = resolveRenderedNavEffects(style.effects, state);
|
|
2321
|
+
const plainInk = resolveInk(state === "rest" ? context.links.link : context.links.linkHover, context.palette);
|
|
2322
|
+
const text = planText(winners.text, plainInk, state, context);
|
|
2323
|
+
const rules = [...text.rules, ...opacityRules(winners.opacity, text.inks, context.paint)];
|
|
2324
|
+
return rules.length ? `\n${stateSelector(selector, state)} {\n ${rules.join("\n ")}\n}\n` : "";
|
|
2325
|
+
}
|
|
2326
|
+
function planText(text, plainInk, state, context) {
|
|
2327
|
+
if (!text) return {
|
|
2328
|
+
rules: [],
|
|
2329
|
+
inks: [plainInk]
|
|
2330
|
+
};
|
|
2331
|
+
const stops = renderedTextStops(text, context.palette);
|
|
2332
|
+
if (decideNavEffectContrast(context.paint, plainInk, {
|
|
2333
|
+
effect: "gradient-text",
|
|
2334
|
+
option: stops,
|
|
2335
|
+
state: isNavHover(state) ? "hover" : "rest"
|
|
2336
|
+
}).kind === "plain") return {
|
|
2337
|
+
rules: [
|
|
2338
|
+
"background-image: none;",
|
|
2339
|
+
"-webkit-background-clip: border-box;",
|
|
2340
|
+
"background-clip: border-box;",
|
|
2341
|
+
"-webkit-text-fill-color: currentColor;"
|
|
2342
|
+
],
|
|
2343
|
+
inks: [plainInk]
|
|
2344
|
+
};
|
|
2345
|
+
return {
|
|
2346
|
+
rules: [],
|
|
2347
|
+
inks: stops.map((hex) => hex ? {
|
|
2348
|
+
hex,
|
|
2349
|
+
opacity: 1
|
|
2350
|
+
} : null)
|
|
2351
|
+
};
|
|
2352
|
+
}
|
|
2353
|
+
function renderedTextStops(text, palette) {
|
|
2354
|
+
if (text.fill === "solid") return [resolveConcreteColorHex("neutral-50", palette)];
|
|
2355
|
+
const colors = text.effect.options?.gradientColors;
|
|
2356
|
+
return (typeof colors === "string" && colors ? colors.split(",").map((token) => token.trim()) : [
|
|
2357
|
+
"primary-400",
|
|
2358
|
+
"secondary-400",
|
|
2359
|
+
"accent-400"
|
|
2360
|
+
]).map((token) => resolveConcreteColorHex(token, palette));
|
|
2361
|
+
}
|
|
2362
|
+
function opacityRules(authored, inks, paint) {
|
|
2363
|
+
if (authored === null || inks.length === 0 || inks.some((ink) => ink === null)) return [];
|
|
2364
|
+
const decisions = inks.map((ink) => decideNavEffectContrast(paint, ink, {
|
|
2365
|
+
effect: "fade-background",
|
|
2366
|
+
option: authored
|
|
2367
|
+
}));
|
|
2368
|
+
if (decisions.some((decision) => decision.kind !== "opacity")) return [];
|
|
2369
|
+
const effective = Math.max(...decisions.map((decision) => decision.kind === "opacity" ? decision.opacity : authored));
|
|
2370
|
+
return effective === authored ? [] : [`opacity: ${effective};`];
|
|
2371
|
+
}
|
|
2372
|
+
function stateSelector(selector, state) {
|
|
2373
|
+
switch (state) {
|
|
2374
|
+
case "rest": return `${selector}:not([data-active="true"]):not(:hover):not(:active)`;
|
|
2375
|
+
case "hover": return `${selector}:not([data-active="true"]):hover`;
|
|
2376
|
+
case "current": return `${selector}[data-active="true"]:not(:hover)`;
|
|
2377
|
+
case "current-hover": return `${selector}[data-active="true"]:hover`;
|
|
2378
|
+
}
|
|
2379
|
+
}
|
|
2380
|
+
function resolveInk(reference, palette) {
|
|
2381
|
+
const parts = parseColorTokenParts(reference);
|
|
2382
|
+
const hex = resolveConcreteColorHex(parts.kind === "token" ? parts.token : reference, palette);
|
|
2383
|
+
const opacity = parts.kind === "token" && parts.opacityPercent !== null ? parts.opacityPercent / 100 : 1;
|
|
2384
|
+
return hex ? {
|
|
2385
|
+
hex,
|
|
2386
|
+
opacity
|
|
2387
|
+
} : null;
|
|
2388
|
+
}
|
|
2389
|
+
//#endregion
|
|
2145
2390
|
//#region ../theme-core/src/header/generateHeaderNavLinkStyles.ts
|
|
2146
2391
|
function generateHeaderNavLinkStyles(header, themeId, tokens, theme, contrastTreatment, navTextSize) {
|
|
2147
2392
|
const style = effectiveHeaderNavLinkStyle(header, contrastTreatment, navTextSize);
|
|
@@ -2149,19 +2394,20 @@ function generateHeaderNavLinkStyles(header, themeId, tokens, theme, contrastTre
|
|
|
2149
2394
|
console.warn(`[generateHeaderCss] Nav link preset not found: ${header.navStyle}`);
|
|
2150
2395
|
return "";
|
|
2151
2396
|
}
|
|
2397
|
+
const renderedStyle = mergeHeaderNavTypographyPreference(style, {
|
|
2398
|
+
typography: header.navFontRole ?? "inherit",
|
|
2399
|
+
fontSize: readHeaderNavFontSizePreference(header.navTextSize),
|
|
2400
|
+
interactionPalette: header.interactionPalette ?? "recommended"
|
|
2401
|
+
});
|
|
2152
2402
|
return generateNavLinkCSS({
|
|
2153
2403
|
themeId,
|
|
2154
2404
|
tokens,
|
|
2155
2405
|
theme,
|
|
2156
|
-
style:
|
|
2157
|
-
typography: header.navFontRole ?? "inherit",
|
|
2158
|
-
fontSize: readHeaderNavFontSizePreference(header.navTextSize),
|
|
2159
|
-
interactionPalette: header.interactionPalette ?? "recommended"
|
|
2160
|
-
}),
|
|
2406
|
+
style: renderedStyle,
|
|
2161
2407
|
className: "header-nav-link",
|
|
2162
2408
|
surfaceDependent: true,
|
|
2163
2409
|
surfaceRestingColor: header.background?.contentOwner === siteChromeBackgroundOverrideOwner
|
|
2164
|
-
});
|
|
2410
|
+
}) + generateHeaderNavEffectContrastCss(header, renderedStyle, theme, themeId);
|
|
2165
2411
|
}
|
|
2166
2412
|
//#endregion
|
|
2167
2413
|
//#region ../theme-core/src/header/generateHeaderLogoStyles.ts
|
|
@@ -2728,6 +2974,11 @@ const placementRules = {
|
|
|
2728
2974
|
band: null
|
|
2729
2975
|
}
|
|
2730
2976
|
};
|
|
2977
|
+
/**
|
|
2978
|
+
* A block's own section, whatever skin slot it carries, so a reserve reaches
|
|
2979
|
+
* the schedule and shop sections too.
|
|
2980
|
+
*/
|
|
2981
|
+
const blockSection = ":where([data-slot='section'], [data-slot='schedule-section'], [data-slot='shop-section'])";
|
|
2731
2982
|
function generateBoundaryCss(selector) {
|
|
2732
2983
|
const boundary = `${selector} [data-block-boundary]`;
|
|
2733
2984
|
return [
|
|
@@ -2737,8 +2988,8 @@ function generateBoundaryCss(selector) {
|
|
|
2737
2988
|
"height: 0;",
|
|
2738
2989
|
"pointer-events: none;"
|
|
2739
2990
|
]),
|
|
2740
|
-
rule(`${selector} [data-block][data-site-style-boundary-before] >
|
|
2741
|
-
rule(`${selector} [data-block][data-site-style-boundary-after] >
|
|
2991
|
+
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));"]),
|
|
2992
|
+
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));"]),
|
|
2742
2993
|
rule(`${boundary}::before,\n${boundary}::after`, [
|
|
2743
2994
|
"content: '';",
|
|
2744
2995
|
"position: absolute;",
|
|
@@ -2750,9 +3001,28 @@ function generateBoundaryCss(selector) {
|
|
|
2750
3001
|
rule(`${boundary}::before`, ["z-index: 0;", "background: var(--boundary-band-paint, transparent);"]),
|
|
2751
3002
|
rule(`${boundary}::after`, ["z-index: 1;"]),
|
|
2752
3003
|
...placementCss(boundary),
|
|
2753
|
-
...transitionCatalogueEntries.flatMap((entry) => treatmentCss(boundary, entry))
|
|
3004
|
+
...transitionCatalogueEntries.flatMap((entry) => treatmentCss(boundary, entry)),
|
|
3005
|
+
...transitionCatalogueEntries.flatMap((entry) => footerEdgeReserveCss(selector, entry))
|
|
2754
3006
|
].join("\n\n");
|
|
2755
3007
|
}
|
|
3008
|
+
/**
|
|
3009
|
+
* The footer's edge rises into the last section of the page flow, which can't
|
|
3010
|
+
* see the footer, so the reserve is keyed on the edge being on the page. The
|
|
3011
|
+
* page renderer marks that section's block as the page ending. When custom
|
|
3012
|
+
* footer blocks intervene, document adapters mark their region so only their
|
|
3013
|
+
* ending receives the reserve (and an empty region falls back to the page).
|
|
3014
|
+
*
|
|
3015
|
+
* Pages that don't come from the page renderer (privacy, terms, checkout, the
|
|
3016
|
+
* portal, a not-found page) have no block ending. The site document's content
|
|
3017
|
+
* area takes the reserve for them instead, but only when nothing inside it is
|
|
3018
|
+
* a page ending, so a rendered page is never padded twice.
|
|
3019
|
+
*/
|
|
3020
|
+
function footerEdgeReserveCss(selector, entry) {
|
|
3021
|
+
const metrics = boundaryRuntimeMetricsForDecorativeTransition(entry.intent);
|
|
3022
|
+
const withEdge = `${selector}:has([data-footer-edge][data-boundary-treatment='${entry.intent}'])`;
|
|
3023
|
+
const pageEnds = `${withEdge}:not(:has([data-footer-blocks] [data-page-ending]))`;
|
|
3024
|
+
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};`])];
|
|
3025
|
+
}
|
|
2756
3026
|
function placementCss(boundary) {
|
|
2757
3027
|
return Object.keys(placementRules).flatMap((placement) => {
|
|
2758
3028
|
const placed = `${boundary}[data-boundary-placement='${placement}']`;
|
|
@@ -4220,241 +4490,6 @@ function selectEventDetailsCandidate(events, requested, nowIso) {
|
|
|
4220
4490
|
} : null;
|
|
4221
4491
|
}
|
|
4222
4492
|
//#endregion
|
|
4223
|
-
//#region ../blocks/src/system/blocks/events/shared/pageSelection.ts
|
|
4224
|
-
/**
|
|
4225
|
-
* What a system-managed Event URL actually selected.
|
|
4226
|
-
*
|
|
4227
|
-
* The resolver used to assume that one returned `PublicEvent` meant one
|
|
4228
|
-
* occurrence. A whole-series Event breaks that assumption in two directions: a
|
|
4229
|
-
* parent Event path selects nothing concrete until a run is chosen, and a run
|
|
4230
|
-
* path selects a run whose identity spans every one of its sessions. This
|
|
4231
|
-
* module parses those cases once, so the renderer switches over a closed set of
|
|
4232
|
-
* page states instead of probing booking scopes at render time.
|
|
4233
|
-
*
|
|
4234
|
-
* Everything here is pure. Loading events and resolving run slugs is the
|
|
4235
|
-
* resolver's job; deciding what the page is and which runs the chooser
|
|
4236
|
-
* advertises happens here. When a run is open to join, and where it sits in its
|
|
4237
|
-
* own life, come from `@riverbankcms/core`: the same authority the
|
|
4238
|
-
* public read projection and the write-side run-facts loader use, so a run
|
|
4239
|
-
* cannot report itself open on the storefront and closed at the point of
|
|
4240
|
-
* booking.
|
|
4241
|
-
*/
|
|
4242
|
-
function planWholeSeriesParentBooking(eligibleRuns) {
|
|
4243
|
-
const [first, second, ...rest] = eligibleRuns;
|
|
4244
|
-
if (!second) return {
|
|
4245
|
-
kind: "single",
|
|
4246
|
-
run: first
|
|
4247
|
-
};
|
|
4248
|
-
return eligibleRuns.every((group) => group.representative.allowsMultipleBooking) ? {
|
|
4249
|
-
kind: "bookTogether",
|
|
4250
|
-
runs: [
|
|
4251
|
-
first,
|
|
4252
|
-
second,
|
|
4253
|
-
...rest
|
|
4254
|
-
]
|
|
4255
|
-
} : {
|
|
4256
|
-
kind: "choice",
|
|
4257
|
-
runs: eligibleRuns
|
|
4258
|
-
};
|
|
4259
|
-
}
|
|
4260
|
-
function isOrdinaryPublicEvent(event) {
|
|
4261
|
-
return event.bookingScope === "single_occurrence";
|
|
4262
|
-
}
|
|
4263
|
-
/**
|
|
4264
|
-
* What a series' own page shows when its URL names no date.
|
|
4265
|
-
*
|
|
4266
|
-
* Two or more dates a visitor can book make a choice: the page lists every
|
|
4267
|
-
* date whose booking is open and lets the visitor pick, so a full date still
|
|
4268
|
-
* shows as full rather than vanishing. One bookable date isn't a choice, so the
|
|
4269
|
-
* page books that date. With none, the first date speaks for the page and shows
|
|
4270
|
-
* its own full or closed state.
|
|
4271
|
-
*
|
|
4272
|
-
* The caller passes every date it read for the series, not the cards a listing
|
|
4273
|
-
* happened to show, so the one-date shortcut is decided on the complete set.
|
|
4274
|
-
* "Has places" isn't enough on its own: only a date whose booking is open
|
|
4275
|
-
* counts, and a drop-in date never does.
|
|
4276
|
-
*/
|
|
4277
|
-
function planOrdinarySeriesSelection(events) {
|
|
4278
|
-
const ordinary = events.filter(isOrdinaryPublicEvent);
|
|
4279
|
-
const firstSeriesId = ordinary[0]?.seriesId;
|
|
4280
|
-
if (!firstSeriesId || ordinary.some((event) => event.seriesId !== firstSeriesId)) return null;
|
|
4281
|
-
const [first, second] = ordinary.filter(isBookableEvent);
|
|
4282
|
-
if (first && second) {
|
|
4283
|
-
const [a, b, ...rest] = [...ordinary].filter(isOpenForBooking).sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt));
|
|
4284
|
-
if (a && b) return {
|
|
4285
|
-
kind: "dateChoice",
|
|
4286
|
-
dates: [
|
|
4287
|
-
a,
|
|
4288
|
-
b,
|
|
4289
|
-
...rest
|
|
4290
|
-
]
|
|
4291
|
-
};
|
|
4292
|
-
}
|
|
4293
|
-
const event = first ?? ordinary[0];
|
|
4294
|
-
return event ? {
|
|
4295
|
-
kind: "occurrence",
|
|
4296
|
-
event
|
|
4297
|
-
} : null;
|
|
4298
|
-
}
|
|
4299
|
-
function isOpenForBooking(event) {
|
|
4300
|
-
return event.requiresRegistration && event.bookingAvailability.kind === "open";
|
|
4301
|
-
}
|
|
4302
|
-
/**
|
|
4303
|
-
* Whether a parent Event page advertises this run.
|
|
4304
|
-
*
|
|
4305
|
-
* Visibility admission belongs to the scoped public read. Active, still-open
|
|
4306
|
-
* admitted runs are advertised, and a run that has started,
|
|
4307
|
-
* finished or been cancelled is informational wherever it appears.
|
|
4308
|
-
*
|
|
4309
|
-
* Capacity is deliberately not consulted (decision A24/A30): a full date is
|
|
4310
|
-
* still one of the dates on offer, and its own page shows the full or waitlist
|
|
4311
|
-
* state that the registration engine decides. Hiding it here would leave a
|
|
4312
|
-
* visitor unable to see that the date exists at all.
|
|
4313
|
-
*/
|
|
4314
|
-
function resolveWholeSeriesChooserEligibility(group, now) {
|
|
4315
|
-
const status = group.representative.status;
|
|
4316
|
-
if (status !== void 0 && status !== "active") return {
|
|
4317
|
-
kind: "excluded",
|
|
4318
|
-
reason: "series-not-active"
|
|
4319
|
-
};
|
|
4320
|
-
const phase = resolveWholeSeriesBookingPhase(group.run, now);
|
|
4321
|
-
return phase.kind === "open" ? { kind: "eligible" } : {
|
|
4322
|
-
kind: "excluded",
|
|
4323
|
-
reason: phase.reason
|
|
4324
|
-
};
|
|
4325
|
-
}
|
|
4326
|
-
/**
|
|
4327
|
-
* Runs in the order a visitor reads them: soonest first session first.
|
|
4328
|
-
*
|
|
4329
|
-
* A run with no session left to attend has no place in the sequence, so it
|
|
4330
|
-
* sorts last rather than being given an arbitrary date.
|
|
4331
|
-
*/
|
|
4332
|
-
function orderRunsBySchedule(groups) {
|
|
4333
|
-
return [...groups].sort((left, right) => {
|
|
4334
|
-
const leftStart = firstLiveRunSessionStartMs(left.run.sessions);
|
|
4335
|
-
const rightStart = firstLiveRunSessionStartMs(right.run.sessions);
|
|
4336
|
-
if (leftStart === null) return rightStart === null ? 0 : 1;
|
|
4337
|
-
if (rightStart === null) return -1;
|
|
4338
|
-
return leftStart - rightStart;
|
|
4339
|
-
});
|
|
4340
|
-
}
|
|
4341
|
-
function asNonEmpty(groups) {
|
|
4342
|
-
const [first, ...rest] = groups;
|
|
4343
|
-
return first ? [first, ...rest] : null;
|
|
4344
|
-
}
|
|
4345
|
-
/**
|
|
4346
|
-
* What a parent Event path selects.
|
|
4347
|
-
*
|
|
4348
|
-
* The scoped read admits public and unlisted runs for the offering's own page.
|
|
4349
|
-
* The chooser lists the ones still open; when none is, the most recent
|
|
4350
|
-
* admitted run supplies the page's name and copy. Runs from another offering
|
|
4351
|
-
* cannot speak for this page.
|
|
4352
|
-
*/
|
|
4353
|
-
function planWholeSeriesParentSelection(input) {
|
|
4354
|
-
const offeringRuns = orderRunsBySchedule(groupPublicEventsByRun(input.events).filter((group) => group.run.eventOfferingId === input.offeringId));
|
|
4355
|
-
const eligibleRuns = asNonEmpty(offeringRuns.filter((group) => resolveWholeSeriesChooserEligibility(group, input.now).kind === "eligible"));
|
|
4356
|
-
if (eligibleRuns) return {
|
|
4357
|
-
kind: "wholeSeriesParent",
|
|
4358
|
-
admittedRuns: offeringRuns,
|
|
4359
|
-
offeringId: input.offeringId,
|
|
4360
|
-
eligibleRuns
|
|
4361
|
-
};
|
|
4362
|
-
const informationalRun = offeringRuns.at(-1);
|
|
4363
|
-
return informationalRun ? {
|
|
4364
|
-
kind: "wholeSeriesParentUnavailable",
|
|
4365
|
-
admittedRuns: offeringRuns,
|
|
4366
|
-
offeringId: input.offeringId,
|
|
4367
|
-
informationalRun,
|
|
4368
|
-
bookingClosedDetail: resolveParentBookingClosedDetail(offeringRuns, input.now)
|
|
4369
|
-
} : null;
|
|
4370
|
-
}
|
|
4371
|
-
/**
|
|
4372
|
-
* What a course page says when none of its runs is bookable.
|
|
4373
|
-
*
|
|
4374
|
-
* A run whose page is up without bookings carries its own reason, so the course
|
|
4375
|
-
* speaks for the runs it has: if any of them was live and has been taken
|
|
4376
|
-
* offline the course is closed for now, and otherwise it is waiting to open. A
|
|
4377
|
-
* course whose runs are simply cancelled, under way or finished carries no
|
|
4378
|
-
* reason at all, and the page keeps the words it already has for that.
|
|
4379
|
-
*
|
|
4380
|
-
* Only a run with a session still to come counts. A run that was paused a year
|
|
4381
|
-
* ago and whose dates have all passed says nothing about the course now, and
|
|
4382
|
-
* letting it speak would tell a visitor that a newly announced run is closed.
|
|
4383
|
-
*/
|
|
4384
|
-
function resolveParentBookingClosedDetail(runs, now) {
|
|
4385
|
-
const details = runs.flatMap((group) => {
|
|
4386
|
-
const detail = group.representative.bookingClosedDetail;
|
|
4387
|
-
return detail && hasSessionAhead(group, now) ? [detail] : [];
|
|
4388
|
-
});
|
|
4389
|
-
if (details.length === 0) return null;
|
|
4390
|
-
return details.some((detail) => detail.kind === "paused") ? { kind: "paused" } : { kind: "opensSoon" };
|
|
4391
|
-
}
|
|
4392
|
-
/** Whether the run still has a session a visitor could attend. */
|
|
4393
|
-
function hasSessionAhead(group, now) {
|
|
4394
|
-
return orderedLiveRunSessions(group.run.sessions).some((session) => Date.parse(session.startsAt) > now.getTime());
|
|
4395
|
-
}
|
|
4396
|
-
/** What a targeted run path selects, when the named run projected any data. */
|
|
4397
|
-
function planWholeSeriesRunSelection(input) {
|
|
4398
|
-
const group = groupPublicEventsByRun(input.events).find((candidate) => candidate.eventSeriesId === input.eventSeriesId);
|
|
4399
|
-
if (!group) return null;
|
|
4400
|
-
return {
|
|
4401
|
-
kind: "wholeSeriesRun",
|
|
4402
|
-
offeringId: group.run.eventOfferingId,
|
|
4403
|
-
run: group
|
|
4404
|
-
};
|
|
4405
|
-
}
|
|
4406
|
-
/**
|
|
4407
|
-
* The Event record that speaks for a selection.
|
|
4408
|
-
*
|
|
4409
|
-
* Page metadata, the destination mode and the shared presentation all need one
|
|
4410
|
-
* record; every variant has one, so callers never re-derive it.
|
|
4411
|
-
*/
|
|
4412
|
-
function selectionRepresentativeEvent(selection) {
|
|
4413
|
-
switch (selection.kind) {
|
|
4414
|
-
case "occurrence": return selection.event;
|
|
4415
|
-
case "dateChoice": return selection.dates[0];
|
|
4416
|
-
case "wholeSeriesParent": return selection.eligibleRuns[0].representative;
|
|
4417
|
-
case "wholeSeriesParentUnavailable": return selection.informationalRun.representative;
|
|
4418
|
-
case "wholeSeriesRun": return selection.run.representative;
|
|
4419
|
-
}
|
|
4420
|
-
}
|
|
4421
|
-
/**
|
|
4422
|
-
* Why this page is not taking bookings, when its own state says so.
|
|
4423
|
-
*
|
|
4424
|
-
* A parent course page answers for its runs; everything else answers for the
|
|
4425
|
-
* record the page is about. `null` leaves the booking column exactly as it was.
|
|
4426
|
-
*/
|
|
4427
|
-
function resolveSelectionBookingClosedDetail(selection) {
|
|
4428
|
-
switch (selection.kind) {
|
|
4429
|
-
case "occurrence": return selection.event.bookingClosedDetail ?? null;
|
|
4430
|
-
case "wholeSeriesRun": return selection.run.representative.bookingClosedDetail ?? null;
|
|
4431
|
-
case "dateChoice":
|
|
4432
|
-
case "wholeSeriesParent": return null;
|
|
4433
|
-
case "wholeSeriesParentUnavailable": return selection.bookingClosedDetail;
|
|
4434
|
-
}
|
|
4435
|
-
}
|
|
4436
|
-
function planDropInPanel(selection) {
|
|
4437
|
-
const detail = resolveSelectionBookingClosedDetail(selection);
|
|
4438
|
-
if (detail === null) return { kind: "comeAlong" };
|
|
4439
|
-
switch (detail.kind) {
|
|
4440
|
-
case "opensSoon":
|
|
4441
|
-
case "paused": return { kind: "notRunning" };
|
|
4442
|
-
}
|
|
4443
|
-
}
|
|
4444
|
-
function getPublicEventCanonicalPath(event) {
|
|
4445
|
-
if (event.path) return event.path;
|
|
4446
|
-
return event.destination.kind === "native" ? event.destination.path : null;
|
|
4447
|
-
}
|
|
4448
|
-
function eventOccurrenceContext(event) {
|
|
4449
|
-
return {
|
|
4450
|
-
id: event.occurrenceId,
|
|
4451
|
-
seriesId: event.seriesId,
|
|
4452
|
-
startsAt: event.startsAt,
|
|
4453
|
-
endsAt: event.endsAt,
|
|
4454
|
-
timeZone: event.timeZone
|
|
4455
|
-
};
|
|
4456
|
-
}
|
|
4457
|
-
//#endregion
|
|
4458
4493
|
//#region ../blocks/src/system/runtime/nodes/events/domain/location.ts
|
|
4459
4494
|
function formatEventLocation(event) {
|
|
4460
4495
|
switch (event.deliveryMode) {
|
|
@@ -5654,7 +5689,7 @@ function carouselContents(props) {
|
|
|
5654
5689
|
}
|
|
5655
5690
|
//#endregion
|
|
5656
5691
|
//#region ../blocks/src/primitives/layout/Section.tsx
|
|
5657
|
-
const Section = forwardRef(function Section({ as: Comp = "section", children, background, className = "", style, "data-slot": dataSlot, "data-arrangement": dataArrangement, "data-surface": dataSurface }, ref) {
|
|
5692
|
+
const Section = forwardRef(function Section({ as: Comp = "section", children, background, className = "", style, "data-slot": dataSlot, "data-arrangement": dataArrangement, "data-look": dataLook, "data-surface": dataSurface }, ref) {
|
|
5658
5693
|
return /* @__PURE__ */ jsx(Comp, {
|
|
5659
5694
|
ref,
|
|
5660
5695
|
className: clsx("rb-relative rb-isolate rb-overflow-visible", className),
|
|
@@ -5662,6 +5697,7 @@ const Section = forwardRef(function Section({ as: Comp = "section", children, ba
|
|
|
5662
5697
|
"data-slot": dataSlot ?? "section",
|
|
5663
5698
|
"data-surface": dataSurface,
|
|
5664
5699
|
"data-arrangement": dataArrangement,
|
|
5700
|
+
"data-look": dataLook,
|
|
5665
5701
|
children
|
|
5666
5702
|
});
|
|
5667
5703
|
});
|
|
@@ -7171,6 +7207,7 @@ function AppointmentServiceRows({ rows, RowTitle }) {
|
|
|
7171
7207
|
}),
|
|
7172
7208
|
row.description ? /* @__PURE__ */ jsx("p", {
|
|
7173
7209
|
className: "appointment-services-row-description rb-text-sm rb-leading-6 status-muted",
|
|
7210
|
+
style: { whiteSpace: "pre-line" },
|
|
7174
7211
|
children: row.description
|
|
7175
7212
|
}) : null,
|
|
7176
7213
|
/* @__PURE__ */ jsxs("p", {
|
|
@@ -7349,9 +7386,9 @@ function AppointmentCardLists({ Carousel, view, presentation, hasSectionHeading,
|
|
|
7349
7386
|
}, group.key))
|
|
7350
7387
|
});
|
|
7351
7388
|
}
|
|
7352
|
-
/** Undated services merge in category order
|
|
7389
|
+
/** Undated carousel services merge in category order. */
|
|
7353
7390
|
function appointmentServicesListing(view, arrangement) {
|
|
7354
|
-
return view.kind === "groups" &&
|
|
7391
|
+
return view.kind === "groups" && (arrangement === "slides" || arrangement === "track") ? {
|
|
7355
7392
|
kind: "items",
|
|
7356
7393
|
rows: view.groups.flatMap((group) => group.rows)
|
|
7357
7394
|
} : view;
|
|
@@ -7769,6 +7806,11 @@ const bookingMailingListContextSchema = z.unknown().transform((value) => {
|
|
|
7769
7806
|
const parsed = parseMailingListRuntimeContext(value);
|
|
7770
7807
|
return parsed.ok ? parsed.value : void 0;
|
|
7771
7808
|
});
|
|
7809
|
+
/** Missing on older payloads and SDK sites, which then word things without a noun. */
|
|
7810
|
+
const businessPersonSchema = z.object({
|
|
7811
|
+
singular: z.string(),
|
|
7812
|
+
plural: z.string()
|
|
7813
|
+
}).nullable().optional();
|
|
7772
7814
|
const bookingDateContextSchema = z.object({
|
|
7773
7815
|
locale: z.string(),
|
|
7774
7816
|
timeZone: z.string().transform(resolveBookingBusinessTimeZone)
|
|
@@ -7782,6 +7824,7 @@ const bookingSourceSchema = z.object({
|
|
|
7782
7824
|
siteTerms: blockSiteTermsSchema.optional(),
|
|
7783
7825
|
pageNavigation: pageNavigationSchema.optional(),
|
|
7784
7826
|
siteName: z.string().optional(),
|
|
7827
|
+
businessPerson: businessPersonSchema,
|
|
7785
7828
|
siteId: z.string().optional(),
|
|
7786
7829
|
apiBaseUrl: z.string().optional(),
|
|
7787
7830
|
portalToken: z.string().nullable().optional(),
|
|
@@ -7818,6 +7861,7 @@ const bookingHydrationSchema = z.object({
|
|
|
7818
7861
|
siteTerms: blockSiteTermsSchema.optional(),
|
|
7819
7862
|
pageNavigation: pageNavigationSchema.optional(),
|
|
7820
7863
|
siteName: z.string().optional(),
|
|
7864
|
+
businessPerson: businessPersonSchema,
|
|
7821
7865
|
formId: z.string().nullable(),
|
|
7822
7866
|
serviceId: z.string().nullable(),
|
|
7823
7867
|
resourceId: z.string().nullable(),
|
|
@@ -7872,6 +7916,7 @@ const bookingFormBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
7872
7916
|
siteTerms: source.siteTerms,
|
|
7873
7917
|
pageNavigation: source.pageNavigation,
|
|
7874
7918
|
siteName: source.siteName,
|
|
7919
|
+
businessPerson: source.businessPerson,
|
|
7875
7920
|
formId: form?.id ?? source.formId ?? null,
|
|
7876
7921
|
serviceId: source.serviceId ?? form?.settings?.serviceId ?? null,
|
|
7877
7922
|
resourceId: source.resourceId ?? form?.settings?.resourceId ?? null,
|
|
@@ -8234,7 +8279,7 @@ function TeamMemberName({ name, profilePath }) {
|
|
|
8234
8279
|
}) : /* @__PURE__ */ jsx("strong", { children: name });
|
|
8235
8280
|
}
|
|
8236
8281
|
function formatTicketTypePrice(ticketType, currency) {
|
|
8237
|
-
return
|
|
8282
|
+
return formatBookingPriceDisplay(resolveExactOrFreePriceDisplay(ticketType.priceAmount, currency), { decimals: "auto" });
|
|
8238
8283
|
}
|
|
8239
8284
|
function getDisplayablePricingOptions(event) {
|
|
8240
8285
|
return event.pricing.kind === "tiered" ? event.pricing.options.filter(isPublicEventPricingOptionDisplayable).sort((left, right) => left.sortOrder - right.sortOrder) : [];
|
|
@@ -8486,9 +8531,11 @@ function OtherEventDates({ selection }) {
|
|
|
8486
8531
|
}
|
|
8487
8532
|
function EventIdentity({ event, showTitle, showDescription }) {
|
|
8488
8533
|
if (!showTitle && !showDescription) return null;
|
|
8489
|
-
|
|
8534
|
+
const description = event.occurrenceDescription ?? event.description;
|
|
8535
|
+
return /* @__PURE__ */ jsxs("div", { children: [showTitle ? /* @__PURE__ */ jsx("h3", { children: event.occurrenceTitle ?? event.title }) : null, showDescription && description ? /* @__PURE__ */ jsx("p", {
|
|
8490
8536
|
className: "rb-mt-2",
|
|
8491
|
-
|
|
8537
|
+
style: { whiteSpace: "pre-line" },
|
|
8538
|
+
children: description
|
|
8492
8539
|
}) : null] });
|
|
8493
8540
|
}
|
|
8494
8541
|
function acceptedProductNames(props) {
|
|
@@ -9029,7 +9076,7 @@ function OfferingsCatalogue(props) {
|
|
|
9029
9076
|
const now = input.now;
|
|
9030
9077
|
const state = input.kind === "prepared" ? input.listing : buildOfferingsCatalogueListing({
|
|
9031
9078
|
now,
|
|
9032
|
-
listingMode: offeringsListingFor(props.cardArrangement
|
|
9079
|
+
listingMode: offeringsListingFor(readOfferingsGrouping(props.offeringsGrouping), props.cardArrangement),
|
|
9033
9080
|
presets: props.bookingOfferingPresets,
|
|
9034
9081
|
events: props.catalogueEvents
|
|
9035
9082
|
});
|
|
@@ -9294,7 +9341,7 @@ function OfferingsPreviewNode(authored) {
|
|
|
9294
9341
|
const listing = input.kind === "prepared" ? input.listing : buildLoadedOfferingsPreviewListing({
|
|
9295
9342
|
...props,
|
|
9296
9343
|
presets: props.bookingOfferingPresets,
|
|
9297
|
-
listingMode: offeringsListingFor(props.cardArrangement
|
|
9344
|
+
listingMode: offeringsListingFor(readOfferingsGrouping(props.offeringsGrouping), props.cardArrangement),
|
|
9298
9345
|
now
|
|
9299
9346
|
});
|
|
9300
9347
|
if (listing.kind === "no-groups" && listing.reason === "empty-hidden") return props.showHiddenPlaceholder || props.previewStage === "preview" ? /* @__PURE__ */ jsxs(Fragment, { children: [props.children, /* @__PURE__ */ jsx(EmptyState, { message: "Visitors won't see this section at the moment, because none of its cards has anything coming up." })] }) : null;
|
|
@@ -14723,7 +14770,14 @@ function promote(tree, heading) {
|
|
|
14723
14770
|
return children === tree.props.children ? tree : React.cloneElement(tree, {}, children);
|
|
14724
14771
|
}
|
|
14725
14772
|
/** One page-wide choice; callers receive the final trees and do not recompute heading rules. */
|
|
14726
|
-
function applyPageHeadingSemantics(trees, eventDetailsComponent
|
|
14773
|
+
function applyPageHeadingSemantics(trees, eventDetailsComponent, facts = {
|
|
14774
|
+
scope: "page",
|
|
14775
|
+
overrideOwnsPageHeading: false
|
|
14776
|
+
}) {
|
|
14777
|
+
if (facts.scope === "region" || facts.overrideOwnsPageHeading) return {
|
|
14778
|
+
trees,
|
|
14779
|
+
needsPageTitle: false
|
|
14780
|
+
};
|
|
14727
14781
|
const nodes = [...trees.values()].flatMap(elements);
|
|
14728
14782
|
if (nodes.some((node) => ownsH1(node, eventDetailsComponent))) return {
|
|
14729
14783
|
trees,
|
|
@@ -14985,11 +15039,12 @@ function pageDateRuntimeContext(dataContext) {
|
|
|
14985
15039
|
}
|
|
14986
15040
|
/** Booking context keeps its defaults together across SSR and authoring. */
|
|
14987
15041
|
function pageBookingRuntime(context) {
|
|
14988
|
-
const { bookingTimeZone, bookingOfferingPresets = [], appointmentServicePathPrefix = null } = context ?? {};
|
|
15042
|
+
const { bookingTimeZone, bookingOfferingPresets = [], appointmentServicePathPrefix = null, businessPerson = null } = context ?? {};
|
|
14989
15043
|
return {
|
|
14990
15044
|
bookingTimeZone,
|
|
14991
15045
|
bookingOfferingPresets,
|
|
14992
|
-
appointmentServicePathPrefix
|
|
15046
|
+
appointmentServicePathPrefix,
|
|
15047
|
+
businessPerson
|
|
14993
15048
|
};
|
|
14994
15049
|
}
|
|
14995
15050
|
//#endregion
|
|
@@ -15159,7 +15214,7 @@ function offeringArrangementContent(content, data, context, audience) {
|
|
|
15159
15214
|
const now = new Date(readRuntimeNow(context?.now));
|
|
15160
15215
|
const listing = buildLoadedOfferingsPreviewListing({
|
|
15161
15216
|
now,
|
|
15162
|
-
listingMode: offeringsListingFor(
|
|
15217
|
+
listingMode: offeringsListingFor(readOfferingsGrouping(effectiveOfferingsGrouping(content)), cardListArrangementForContent(content)),
|
|
15163
15218
|
routeCandidates: publicRouteCandidatesSchema.safeParse(data.routeCandidates).data,
|
|
15164
15219
|
...normalized,
|
|
15165
15220
|
presets: context?.bookingOfferingPresets,
|
|
@@ -15181,6 +15236,12 @@ function offeringArrangementContent(content, data, context, audience) {
|
|
|
15181
15236
|
publicVisibility: listing.kind === "no-groups" && listing.reason === "empty-hidden" ? "omitted" : "shown"
|
|
15182
15237
|
};
|
|
15183
15238
|
}
|
|
15239
|
+
function effectiveOfferingsGrouping(content) {
|
|
15240
|
+
const knobs = content._effectiveKnobs;
|
|
15241
|
+
if (typeof knobs !== "object" || knobs === null || !("grouping" in knobs)) return void 0;
|
|
15242
|
+
const grouping = knobs.grouping;
|
|
15243
|
+
return typeof grouping === "object" && grouping !== null && "value" in grouping ? grouping.value : void 0;
|
|
15244
|
+
}
|
|
15184
15245
|
/** Older blocks opt into preparation only when public visibility needs their listing. */
|
|
15185
15246
|
function needsOfferingListing(content, normalized) {
|
|
15186
15247
|
return content._effectiveLook !== void 0 || normalized.groupOverrides?.some((group) => group.hideWhenEmpty === true) === true;
|
|
@@ -15754,24 +15815,29 @@ function PageRendererCore(props) {
|
|
|
15754
15815
|
setContextResolveImageUrlContext(imageResolveContext);
|
|
15755
15816
|
const resolvedRegistry = props.registry ?? getDefaultComponentRegistry();
|
|
15756
15817
|
const readSystemTrees = React$1.useMemo(createPageSystemTreeReader, []);
|
|
15818
|
+
const headingScope = props.headingScope ?? "page";
|
|
15757
15819
|
const headingPresentation = React$1.useMemo(() => applyPageHeadingSemantics(readSystemTrees({
|
|
15758
15820
|
preparation,
|
|
15759
15821
|
dataContext,
|
|
15760
15822
|
registry: resolvedRegistry,
|
|
15761
15823
|
previewAuthoring: props.previewAuthoring,
|
|
15762
15824
|
imageResolveContext
|
|
15763
|
-
}), resolvedRegistry["event-details"]
|
|
15825
|
+
}), resolvedRegistry["event-details"], {
|
|
15826
|
+
scope: headingScope,
|
|
15827
|
+
overrideOwnsPageHeading: overrideOwnsPageHeading(preparation)
|
|
15828
|
+
}), [
|
|
15764
15829
|
preparation,
|
|
15765
15830
|
dataContext,
|
|
15766
15831
|
resolvedRegistry,
|
|
15767
15832
|
props.previewAuthoring,
|
|
15768
15833
|
imageResolveContext,
|
|
15769
|
-
readSystemTrees
|
|
15834
|
+
readSystemTrees,
|
|
15835
|
+
headingScope
|
|
15770
15836
|
]);
|
|
15771
|
-
return wrapRenderedPage(props, plan, !page || preparation.entries.length === 0 ? renderEmptyPage(page, audience) : renderPreparedPage(props, preparation, themeResources, imageResolveContext, headingPresentation));
|
|
15837
|
+
return wrapRenderedPage(props, plan, !page || preparation.entries.length === 0 ? renderEmptyPage(page, audience, headingScope) : renderPreparedPage(props, preparation, themeResources, imageResolveContext, headingPresentation));
|
|
15772
15838
|
}
|
|
15773
|
-
function renderEmptyPage(page, audience) {
|
|
15774
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [page ? /* @__PURE__ */ jsx(PageTitleFallback, { name: page.name }) : null, presentEmptyPage(audience)] });
|
|
15839
|
+
function renderEmptyPage(page, audience, headingScope) {
|
|
15840
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [page && headingScope === "page" ? /* @__PURE__ */ jsx(PageTitleFallback, { name: page.name }) : null, presentEmptyPage(audience)] });
|
|
15775
15841
|
}
|
|
15776
15842
|
function wrapRenderedPage(props, plan, rendered) {
|
|
15777
15843
|
return props.wrapPage ? props.wrapPage(plan, rendered) : rendered;
|
|
@@ -15779,7 +15845,7 @@ function wrapRenderedPage(props, plan, rendered) {
|
|
|
15779
15845
|
function renderPreparedPage(props, preparation, themeResources, imageResolveContext, headingPresentation) {
|
|
15780
15846
|
const resolvedRegistry = props.registry ?? getDefaultComponentRegistry();
|
|
15781
15847
|
const joinSlots = joinSlotsByPair(preparation.joins);
|
|
15782
|
-
const renderRegion = (entries, joins) => entries.map((entry, index) => renderGuardedPlanEntry({
|
|
15848
|
+
const renderRegion = (entries, joins, flow) => entries.map((entry, index) => renderGuardedPlanEntry({
|
|
15783
15849
|
entry,
|
|
15784
15850
|
index,
|
|
15785
15851
|
entries,
|
|
@@ -15789,12 +15855,13 @@ function renderPreparedPage(props, preparation, themeResources, imageResolveCont
|
|
|
15789
15855
|
resolvedRegistry,
|
|
15790
15856
|
systemTrees: headingPresentation.trees,
|
|
15791
15857
|
joinSlots: joins,
|
|
15858
|
+
flow,
|
|
15792
15859
|
wrapBlock: props.wrapBlock,
|
|
15793
15860
|
renderJoin: props.renderJoin
|
|
15794
15861
|
}));
|
|
15795
15862
|
const { main, aside } = preparation.regions;
|
|
15796
15863
|
const title = headingPresentation.needsPageTitle ? /* @__PURE__ */ jsx(PageTitleFallback, { name: props.page?.name ?? "" }) : null;
|
|
15797
|
-
if (aside.length === 0) return /* @__PURE__ */ jsxs("div", { children: [title, renderRegion(main, joinSlots)] });
|
|
15864
|
+
if (aside.length === 0) return /* @__PURE__ */ jsxs("div", { children: [title, renderRegion(main, joinSlots, "main")] });
|
|
15798
15865
|
return /* @__PURE__ */ jsxs("div", {
|
|
15799
15866
|
className: "rb-page-layout",
|
|
15800
15867
|
"data-page-layout": "main-aside",
|
|
@@ -15803,12 +15870,12 @@ function renderPreparedPage(props, preparation, themeResources, imageResolveCont
|
|
|
15803
15870
|
/* @__PURE__ */ jsx("div", {
|
|
15804
15871
|
className: "rb-page-layout__main",
|
|
15805
15872
|
"data-page-region": "main",
|
|
15806
|
-
children: renderRegion(main, joinSlots)
|
|
15873
|
+
children: renderRegion(main, joinSlots, "main")
|
|
15807
15874
|
}),
|
|
15808
15875
|
/* @__PURE__ */ jsx("aside", {
|
|
15809
15876
|
className: "rb-page-layout__aside rb-sticky-below-site-chrome",
|
|
15810
15877
|
"data-page-region": "aside",
|
|
15811
|
-
children: renderRegion(aside, /* @__PURE__ */ new Map())
|
|
15878
|
+
children: renderRegion(aside, /* @__PURE__ */ new Map(), "aside")
|
|
15812
15879
|
})
|
|
15813
15880
|
]
|
|
15814
15881
|
});
|
|
@@ -15897,6 +15964,10 @@ function requireEntryBlockOverride(entry, themeResources) {
|
|
|
15897
15964
|
}
|
|
15898
15965
|
requireBlockOverride(themeResources, entry.override, entry.block.kind);
|
|
15899
15966
|
}
|
|
15967
|
+
/** The footer meets the main flow's last block, which marks itself for the footer edge's reserve. */
|
|
15968
|
+
function pageEndingAttribute(flow, position) {
|
|
15969
|
+
return flow === "main" && (position === "last" || position === "only") ? "" : void 0;
|
|
15970
|
+
}
|
|
15900
15971
|
/**
|
|
15901
15972
|
* Renders one planned block: its wrapper, style-group data attributes,
|
|
15902
15973
|
* boundary reserve space and the join markup that follows it.
|
|
@@ -15957,6 +16028,7 @@ function renderPlanEntry(input) {
|
|
|
15957
16028
|
"data-block-composition": blockComposition?.treatment,
|
|
15958
16029
|
"data-block-composition-kind": blockComposition?.kind,
|
|
15959
16030
|
"data-page-block-position": blockPosition,
|
|
16031
|
+
"data-page-ending": pageEndingAttribute(input.flow, blockPosition),
|
|
15960
16032
|
"data-site-style-boundary-before": reserves.topPlacement,
|
|
15961
16033
|
"data-site-style-boundary-after": reserves.bottomPlacement,
|
|
15962
16034
|
"data-site-style-field-seam": reserves.fieldSeam,
|
|
@@ -16051,6 +16123,9 @@ function resolveSystemBlockTree(input) {
|
|
|
16051
16123
|
return /* @__PURE__ */ jsx(FailedSystemBlockTree, { error });
|
|
16052
16124
|
}
|
|
16053
16125
|
}
|
|
16126
|
+
function overrideOwnsPageHeading(preparation) {
|
|
16127
|
+
return [...preparation.regions.main, ...preparation.regions.aside].some(({ entry }) => (entry.kind === "renderable" || entry.kind === "override-only") && entry.override?.ownsPageHeading === true);
|
|
16128
|
+
}
|
|
16054
16129
|
/** Preserve the block memo's reuse rules while resolving page-wide heading facts. */
|
|
16055
16130
|
function createPageSystemTreeReader() {
|
|
16056
16131
|
const memo = {};
|
|
@@ -16371,15 +16446,17 @@ function normalizeSdkCustomBlocks(customBlocks) {
|
|
|
16371
16446
|
}
|
|
16372
16447
|
function toBlocksBlockOverrides(overrides) {
|
|
16373
16448
|
if (!overrides) return void 0;
|
|
16374
|
-
|
|
16375
|
-
|
|
16376
|
-
|
|
16377
|
-
|
|
16449
|
+
return Object.fromEntries(Object.entries(overrides).map(([key, registration]) => {
|
|
16450
|
+
const entry = typeof registration === "object" && "component" in registration ? registration : {
|
|
16451
|
+
component: registration,
|
|
16452
|
+
ownsPageHeading: false
|
|
16453
|
+
};
|
|
16454
|
+
const adapter = (props) => React$1.createElement(entry.component, {
|
|
16378
16455
|
...props,
|
|
16379
16456
|
entrySubrouteContext: props.entrySubrouteContext
|
|
16380
16457
|
});
|
|
16381
|
-
|
|
16382
|
-
|
|
16458
|
+
return [key, Object.assign(adapter, { ownsPageHeading: entry.ownsPageHeading })];
|
|
16459
|
+
}));
|
|
16383
16460
|
}
|
|
16384
16461
|
function toBlocksPageRendererDataContext(dataContext) {
|
|
16385
16462
|
return {
|
|
@@ -16402,7 +16479,8 @@ function toBlocksCommonProps(props) {
|
|
|
16402
16479
|
registry: props.registry,
|
|
16403
16480
|
blockOverrides: toBlocksBlockOverrides(props.blockOverrides),
|
|
16404
16481
|
sdkConfig: props.sdkConfig ? { customBlocks: normalizeSdkCustomBlocks(props.sdkConfig.customBlocks) } : props.sdkConfig,
|
|
16405
|
-
customBlocks: normalizeSdkCustomBlocks(props.customBlocks)
|
|
16482
|
+
customBlocks: normalizeSdkCustomBlocks(props.customBlocks),
|
|
16483
|
+
headingScope: props.headingScope
|
|
16406
16484
|
};
|
|
16407
16485
|
}
|
|
16408
16486
|
function PageRenderer(props) {
|
|
@@ -16551,6 +16629,7 @@ function buildPageIdentityRenderContext(dataContext) {
|
|
|
16551
16629
|
demoEmailSuppressed: dataContext.demoEmailSuppressed,
|
|
16552
16630
|
now: dataContext.now,
|
|
16553
16631
|
siteName: dataContext.siteName,
|
|
16632
|
+
businessPerson: dataContext.businessPerson ?? null,
|
|
16554
16633
|
businessLocationPermission: dataContext.businessLocationPermission,
|
|
16555
16634
|
businessAddressVisibility: dataContext.businessAddressVisibility,
|
|
16556
16635
|
businessLocation: dataContext.businessLocation,
|