@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,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 resolveEventCta, A as offeringDatesBySeries, B as CalendarIcon, D as EventListingFrameView, E as MonthLookView, F as EmptyState, G as formatCourseSessions, H as eventDisplayTitle, I as CardListCollection, J as formatEventQuickDate, K as buildMonthDay, L as CardListItems, M as derivePreviewRunSchedule, N as createEditorPresentationPageReader, O as OfferingCourseCards, P as createPresentationPageReader, Q as resolveEventCardBooking, R as EventItem, S as lookPartShown, T as EVENT_REGISTRATION_ANCHOR_ID, U as eventDisplayTitleText, V as MapPinIcon, W as formatCourseDatesAfter, X as formatEventTeacherLine, Y as selectQuickDateEvents, Z as formatEventDuration, _ as publicAppointmentPricingSchema, a as joinSlotKey, b as resolvePageRouteTarget, c as buildLinkedContentEditTarget, et as resolveEventLinkProps, f as defaultTransforms, g as publicAppointmentLocationSchema, h as formatAppointmentPrice, i as composePageJoins, j as deriveEventScheduleSummary, k as eventCardListContent, m as formatAppointmentLocation, n as createPageRenderPlanReader, nt as parseStoredVariant, o as renderedJoinLayout, ot as buildThemeTokens, p as formatAppointmentDuration, q as resolveMonthSelectedDay, s as retargetJoinsAcrossOmissions, st as defaultThemeTokens, tt as isBookableEvent, u as resolveLinkedEntryInlineFieldEligibility, w as EventHeader, x as resolveRouteTarget, y as resolveEntryRouteTarget, z as eventCategoryBadge } from "./pageRenderPlan-
|
|
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 resolveEventCta, A as offeringDatesBySeries, B as CalendarIcon, D as EventListingFrameView, E as MonthLookView, F as EmptyState, G as formatCourseSessions, H as eventDisplayTitle, I as CardListCollection, J as formatEventQuickDate, K as buildMonthDay, L as CardListItems, M as derivePreviewRunSchedule, N as createEditorPresentationPageReader, O as OfferingCourseCards, P as createPresentationPageReader, Q as resolveEventCardBooking, R as EventItem, S as lookPartShown, T as EVENT_REGISTRATION_ANCHOR_ID, U as eventDisplayTitleText, V as MapPinIcon, W as formatCourseDatesAfter, X as formatEventTeacherLine, Y as selectQuickDateEvents, Z as formatEventDuration, _ as publicAppointmentPricingSchema, a as joinSlotKey, b as resolvePageRouteTarget, c as buildLinkedContentEditTarget, et as resolveEventLinkProps, f as defaultTransforms, g as publicAppointmentLocationSchema, h as formatAppointmentPrice, i as composePageJoins, j as deriveEventScheduleSummary, k as eventCardListContent, m as formatAppointmentLocation, n as createPageRenderPlanReader, nt as parseStoredVariant, o as renderedJoinLayout, ot as buildThemeTokens, p as formatAppointmentDuration, q as resolveMonthSelectedDay, s as retargetJoinsAcrossOmissions, st as defaultThemeTokens, tt as isBookableEvent, u as resolveLinkedEntryInlineFieldEligibility, w as EventHeader, x as resolveRouteTarget, y as resolveEntryRouteTarget, z as eventCategoryBadge } from "./pageRenderPlan-CkFTsxkd.mjs";
|
|
3
|
+
import { $ as RichText, $i as isSameCalendarDay, $n as listItemPresentation, $r as defineFragment, $t as formatEventHourLabel, A as publicRouteCandidatesSchema, Aa as arrangementLookHooks, Ai as PUBLIC_DOWNLOAD_MEDIA_TYPES, Ar as singleButtonFragment, As as resolveBookingBusinessTimeZone, At as resolveOfferingsPreviewGroupCta, B as buildEventCollectionHydration, Ba as resolveEffectiveArrangement, Bn as staticHeaderChromeRuntime, Bt as eventListWeekDays, C as buildProductListInteractiveIslandProps, Ca as effectiveHeaderNavLinkStyle, Ci as inlineTextToPlainText, Cn as resolveFeatureCardGeneratedIconSizePx, Cs as formatBookingCompactEnglishTime, Ct as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, D as membershipClassesLabel, Da as headerRootIsTransparent, Dn as composeHeaderSectionWrapperClassName, Dr as faqAccordionFragment, Dt as offeringRunLifecycle, E as membershipCardListContent, Ea as headerNeedsPhotoShade, Er as cardFragment, Es as getBookingLocalDateKey, Et as normalizeOfferingsPreviewItemLimit, F as buildEventCalendarListingDisplay, Fi as eventReadinessResultSchema, Fn as resolveDateRuntimeContext, Fo as bindingSchema, Fr as ctaCopyFragment, Fs as isPublicEventPricingOptionDisplayable, Ft as ThemedButtonLink, G as catalogueEventCardProps, Gi as getLocalDateKey, Gn as formBlockDefinition, H as eventCollectionDisplaySchemaShape, Hr as normalizeBoxStylesBorder, Ir as heroCtaRowFragment, Is as publicEventPricingCurrency, It as ThemedDownloadLink, Ji as formatDateKey, Jn as createInteractiveIslandCodec, Jo as admitReadinessFacts, Jt as formatCalendarTitle, K as listingEventCardProps, Ki as getLocalMinuteOfDay, Kn as buildFormInteractiveIslandProps, Kt as eventDateOptions, L as eventListingBlockDefinition, Lr as ctaRowFragment, Ls as publicEventPricingDisplay, Lt as getIconComponent, M as offeringsCatalogueShape, Mi as eventReadinessLoaderKey, Mn as teamMemberBiography, Mr as formCopyFragment, Ms as toUtcIsoDateTimeString, Mt as resolveOfferingsRenderInput, N as eventCalendarBlockDefinition, Nn as teamMemberCardBiography, Nr as testimonialsCarouselFragment, Nt as ThemedAuthoredButton, O as passCardListContent, Oa as headerRootPaint, On as markEditableSurfaceForwarding, Or as faqHeadingFragment, Ot as offeringsListingFor, P as buildEventCalendarInteractiveIslandProps, Pn as readRuntimeNow, Pr as testimonialsHeadingFragment, Ps as formatBookingPriceDisplay, Pt as ThemedButton, Q as MediaNodeServer, Qi as getWeekCalendarDays, Qn as defineProgressiveBlockRuntime, Qo as unavailableReadinessFact, Qr as bodyCopyFragment, Qt as formatEventDateParts, R as buildEventListingInteractiveIslandProps, Ra as arrangementManifestFromVariants, Rr as isBlockButtonRole, Rs as publicEventPricingType, Rt as SpinnerNode, S as buildProductDetailInteractiveIslandProps, Sa as authoredHeaderLinkForeground, Si as PlusIcon, Sn as FEATURE_CARD_ICON_TREATMENTS, T as shopProductPresentation, Ti as parseInlineTextFromUnknown, To as transitionCatalogueEntries, Tr as headingFragment, Tt as groupOfferingRunsByCourse, U as eventCollectionHydrationSchema, Ur as resolveCardRoleForBoxStyles, V as buildEventCollectionListingDisplay, Vr as boxStyleClassNames, Vs as formatCurrencyAmount, Vt as eventWeekGroupingContext, W as eventCollectionSourceSchemaShape, Wt as buildCalendarViewport, Xa as requireCuratedSiteStyle, Xi as getOrderedDayNames, Xn as createZodCodec, Xo as loadedReadinessFact, Xr as ctaButton, Xt as formatEventClockLabel, Y as cardListPresentationSchemaShape, Yi as getDayOfWeek, Yn as defineInteractiveIslandMetaKeys, Yo as hiddenFromVisitors, Yr as resolveBackgroundColorValue, Yt as formatDate, Zi as getWeekCalendarDayTuple, Zn as defineClientOwnedBlockRuntime, Zo as pageTemplateFromEntry, Zt as formatEventCompactDateRail, _ as productDetailBlockDefinition, _a as resolveHeaderRootForeground, _i as FileArchiveIcon, _n as formatTotalCapacity, _o as boundaryRuntimeMetricsForDecorativeTransition, _r as formatEventPrice, _t as previewStageSchema, a as normalizeLocationMapProps, aa as bookingConsentCarrierSchema, an as groupEventsByDate, ao as buildTextContrastShadow, as as resolveWholeSeriesBookingPhase, b as buildCartInteractiveIslandProps, ba as selectItemSurfacePresentation, bi as FileTextIcon, bn as isEventFull, c as newsletterSignupBlockDefinition, ci as when, co as generateInteractiveChildInheritanceCSS, ct as getCurrentResolveImageUrlContext, d as buildNewsletterFormInteractiveIslandProps, di as resolveBlockIconRenderValue, dn as blockSiteTermsSchema, dt as getCardOrientation, ea as isToday, en as formatEventNextDateFact, er as listLookControl, et as ImagePresets, f as newsletterBlockSubmissionMessage, fa as isObjectRecord, fi as ArrowDownIcon, fn as pageNavigationSchema, fs as decideLocationSourcePermission, ft as getContainerClass, g as cartBlockDefinition, ga as AFFORDANCE_SUPPRESS_CLASS, gi as ClockIcon, gn as formatEventRemainingPlaces, gr as formatCoursePrice, gt as bookingNowSchema, h as checkoutBlockDefinition, ha as themeButtonSelector, hi as CirclePlusIcon, ht as resolveEventRegistrationEventSource, ia as blockBookingConsentSchema, in as formatTime, io as generateFooterCss, ir as itemRole, is as orderedLiveRunSessions, j as buildOfferingsCatalogueListing, jn as parseTeamMemberSpecialties, jr as formEmbedFragment, js as toBookingTimeZone, jt as resolveOfferingsPreviewGroups, k as offeringsPreviewBlockDefinition, ki as parseFieldDefinitions, kn as splitPositioningClasses, kr as blogFeaturedPostFragment, ks as parseLocalScheduleTime, kt as readOfferingsGrouping, li as buildGeneratedBlockIconRenderAssetLookupFromUnknown, ln as bookingPresentation, ls as parseMailingListPlacementTargeting, lt as setContextResolveImageUrlContext, m as buildGiftingInteractiveIslandProps, ma as parseThemeButtonVariantId, mi as CircleMinusIcon, mn as bookingPageKindSchema, ms as normalizeLocationAddressText, mt as buildEventRegistrationInteractiveIslandProps, na as publicEventsArraySchema, nn as formatEventTimeRange, no as resolveCardRole, nr as lookListPresentationSchemaShape, ns as firstLiveRunSessionStartMs, o as normalizeLocationMapSource, oa as beforeBookingQuestionsPresentationSchema, oi as runTransforms, on as resolveEventTimeZone, oo as generateNavLinkCSS, or as Grid, os as buildMailingListSignupBlockSourceRef, ot as resolvePublicMediaUrl, p as giftingBlockDefinition, pa as isRecord$4, pi as ChevronDownIcon, pn as closedRunCopy, pt as eventRegistrationBlockDefinition, q as CardListContentPart, qi as addDays, qn as buildInteractiveIslandProps, qo as chosenString, qs as TokenResolver, r as normalizeBlockContent, ra as blockBookingPaymentTermsSchema, ro as generateDefaultCardSystem, rr as resolvedItemSurfaceProps, s as resolveLocationMapLocation, sa as sanitizeHref, si as el, sn as resolveRuntimeEventDestination, so as generateEffectsCSS, sr as clsx, ss as parseMailingListRuntimeContext, st as buildResolveImageUrlContext, t as getBlockDefinition, tr as listLookSlot, ts as CANCELLED_SESSION_STATUS, tt as MediaPlaceholder, u as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, ui as parseBlockIconValue, un as browserReadAuthoritySchema, us as sameMailingListPlacementTargeting, ut as EventQuickFacts, v as productListBlockDefinition, vi as FileAudioIcon, vr as formatEventPriceAmount, vs as mapDrawingSchema, vt as normalizeEventRegistrationPageSurfaceSubject, w as buildShopInteractiveIslandProps, wa as readOpeningToneProjection, wi as isInlineTextEmpty, wn as shouldReserveFeatureCardIconZone, wo as anglePolygonCss, wr as richTextFragment, ws as toScheduledBookingDateTime, wt as buildOfferingsPreviewListing, x as buildCheckoutInteractiveIslandProps, xi as MinusIcon, xn as groupPublicEventsByRun, y as shopBlockDefinition, yi as FileSpreadsheetIcon, yn as getEventAvailabilityStatus, ys as formatDate$1, yt as resolveEventRegistrationScopedEvents, z as buildEventCollectionDisplay, zr as heroCopyFragment, zt as buildEventListWeek } from "./registry-34rkAfaU.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-CpAtzNxD.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-CQtkvlDn.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-DFvjDVzi.mjs";
|
|
12
|
+
import { c as mergeHeaderNavTypographyPreference, l as readHeaderNavFontSizePreference } from "./bindings-CQg2lzZn.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}']`;
|
|
@@ -4451,7 +4721,8 @@ function eventOccurrenceContext(event) {
|
|
|
4451
4721
|
seriesId: event.seriesId,
|
|
4452
4722
|
startsAt: event.startsAt,
|
|
4453
4723
|
endsAt: event.endsAt,
|
|
4454
|
-
timeZone: event.timeZone
|
|
4724
|
+
timeZone: event.timeZone,
|
|
4725
|
+
...event.occurrenceTitle ? { overrides: { title: event.occurrenceTitle } } : {}
|
|
4455
4726
|
};
|
|
4456
4727
|
}
|
|
4457
4728
|
//#endregion
|
|
@@ -5654,7 +5925,7 @@ function carouselContents(props) {
|
|
|
5654
5925
|
}
|
|
5655
5926
|
//#endregion
|
|
5656
5927
|
//#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) {
|
|
5928
|
+
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
5929
|
return /* @__PURE__ */ jsx(Comp, {
|
|
5659
5930
|
ref,
|
|
5660
5931
|
className: clsx("rb-relative rb-isolate rb-overflow-visible", className),
|
|
@@ -5662,6 +5933,7 @@ const Section = forwardRef(function Section({ as: Comp = "section", children, ba
|
|
|
5662
5933
|
"data-slot": dataSlot ?? "section",
|
|
5663
5934
|
"data-surface": dataSurface,
|
|
5664
5935
|
"data-arrangement": dataArrangement,
|
|
5936
|
+
"data-look": dataLook,
|
|
5665
5937
|
children
|
|
5666
5938
|
});
|
|
5667
5939
|
});
|
|
@@ -7171,6 +7443,7 @@ function AppointmentServiceRows({ rows, RowTitle }) {
|
|
|
7171
7443
|
}),
|
|
7172
7444
|
row.description ? /* @__PURE__ */ jsx("p", {
|
|
7173
7445
|
className: "appointment-services-row-description rb-text-sm rb-leading-6 status-muted",
|
|
7446
|
+
style: { whiteSpace: "pre-line" },
|
|
7174
7447
|
children: row.description
|
|
7175
7448
|
}) : null,
|
|
7176
7449
|
/* @__PURE__ */ jsxs("p", {
|
|
@@ -7349,9 +7622,9 @@ function AppointmentCardLists({ Carousel, view, presentation, hasSectionHeading,
|
|
|
7349
7622
|
}, group.key))
|
|
7350
7623
|
});
|
|
7351
7624
|
}
|
|
7352
|
-
/** Undated services merge in category order
|
|
7625
|
+
/** Undated carousel services merge in category order. */
|
|
7353
7626
|
function appointmentServicesListing(view, arrangement) {
|
|
7354
|
-
return view.kind === "groups" &&
|
|
7627
|
+
return view.kind === "groups" && (arrangement === "slides" || arrangement === "track") ? {
|
|
7355
7628
|
kind: "items",
|
|
7356
7629
|
rows: view.groups.flatMap((group) => group.rows)
|
|
7357
7630
|
} : view;
|
|
@@ -7769,6 +8042,11 @@ const bookingMailingListContextSchema = z.unknown().transform((value) => {
|
|
|
7769
8042
|
const parsed = parseMailingListRuntimeContext(value);
|
|
7770
8043
|
return parsed.ok ? parsed.value : void 0;
|
|
7771
8044
|
});
|
|
8045
|
+
/** Missing on older payloads and SDK sites, which then word things without a noun. */
|
|
8046
|
+
const businessPersonSchema = z.object({
|
|
8047
|
+
singular: z.string(),
|
|
8048
|
+
plural: z.string()
|
|
8049
|
+
}).nullable().optional();
|
|
7772
8050
|
const bookingDateContextSchema = z.object({
|
|
7773
8051
|
locale: z.string(),
|
|
7774
8052
|
timeZone: z.string().transform(resolveBookingBusinessTimeZone)
|
|
@@ -7782,6 +8060,7 @@ const bookingSourceSchema = z.object({
|
|
|
7782
8060
|
siteTerms: blockSiteTermsSchema.optional(),
|
|
7783
8061
|
pageNavigation: pageNavigationSchema.optional(),
|
|
7784
8062
|
siteName: z.string().optional(),
|
|
8063
|
+
businessPerson: businessPersonSchema,
|
|
7785
8064
|
siteId: z.string().optional(),
|
|
7786
8065
|
apiBaseUrl: z.string().optional(),
|
|
7787
8066
|
portalToken: z.string().nullable().optional(),
|
|
@@ -7818,6 +8097,7 @@ const bookingHydrationSchema = z.object({
|
|
|
7818
8097
|
siteTerms: blockSiteTermsSchema.optional(),
|
|
7819
8098
|
pageNavigation: pageNavigationSchema.optional(),
|
|
7820
8099
|
siteName: z.string().optional(),
|
|
8100
|
+
businessPerson: businessPersonSchema,
|
|
7821
8101
|
formId: z.string().nullable(),
|
|
7822
8102
|
serviceId: z.string().nullable(),
|
|
7823
8103
|
resourceId: z.string().nullable(),
|
|
@@ -7872,6 +8152,7 @@ const bookingFormBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
7872
8152
|
siteTerms: source.siteTerms,
|
|
7873
8153
|
pageNavigation: source.pageNavigation,
|
|
7874
8154
|
siteName: source.siteName,
|
|
8155
|
+
businessPerson: source.businessPerson,
|
|
7875
8156
|
formId: form?.id ?? source.formId ?? null,
|
|
7876
8157
|
serviceId: source.serviceId ?? form?.settings?.serviceId ?? null,
|
|
7877
8158
|
resourceId: source.resourceId ?? form?.settings?.resourceId ?? null,
|
|
@@ -8486,9 +8767,11 @@ function OtherEventDates({ selection }) {
|
|
|
8486
8767
|
}
|
|
8487
8768
|
function EventIdentity({ event, showTitle, showDescription }) {
|
|
8488
8769
|
if (!showTitle && !showDescription) return null;
|
|
8489
|
-
|
|
8770
|
+
const description = event.occurrenceDescription ?? event.description;
|
|
8771
|
+
return /* @__PURE__ */ jsxs("div", { children: [showTitle ? /* @__PURE__ */ jsx("h3", { children: event.occurrenceTitle ?? event.title }) : null, showDescription && description ? /* @__PURE__ */ jsx("p", {
|
|
8490
8772
|
className: "rb-mt-2",
|
|
8491
|
-
|
|
8773
|
+
style: { whiteSpace: "pre-line" },
|
|
8774
|
+
children: description
|
|
8492
8775
|
}) : null] });
|
|
8493
8776
|
}
|
|
8494
8777
|
function acceptedProductNames(props) {
|
|
@@ -9029,7 +9312,7 @@ function OfferingsCatalogue(props) {
|
|
|
9029
9312
|
const now = input.now;
|
|
9030
9313
|
const state = input.kind === "prepared" ? input.listing : buildOfferingsCatalogueListing({
|
|
9031
9314
|
now,
|
|
9032
|
-
listingMode: offeringsListingFor(props.cardArrangement
|
|
9315
|
+
listingMode: offeringsListingFor(readOfferingsGrouping(props.offeringsGrouping), props.cardArrangement),
|
|
9033
9316
|
presets: props.bookingOfferingPresets,
|
|
9034
9317
|
events: props.catalogueEvents
|
|
9035
9318
|
});
|
|
@@ -9294,7 +9577,7 @@ function OfferingsPreviewNode(authored) {
|
|
|
9294
9577
|
const listing = input.kind === "prepared" ? input.listing : buildLoadedOfferingsPreviewListing({
|
|
9295
9578
|
...props,
|
|
9296
9579
|
presets: props.bookingOfferingPresets,
|
|
9297
|
-
listingMode: offeringsListingFor(props.cardArrangement
|
|
9580
|
+
listingMode: offeringsListingFor(readOfferingsGrouping(props.offeringsGrouping), props.cardArrangement),
|
|
9298
9581
|
now
|
|
9299
9582
|
});
|
|
9300
9583
|
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 +15006,14 @@ function promote(tree, heading) {
|
|
|
14723
15006
|
return children === tree.props.children ? tree : React.cloneElement(tree, {}, children);
|
|
14724
15007
|
}
|
|
14725
15008
|
/** One page-wide choice; callers receive the final trees and do not recompute heading rules. */
|
|
14726
|
-
function applyPageHeadingSemantics(trees, eventDetailsComponent
|
|
15009
|
+
function applyPageHeadingSemantics(trees, eventDetailsComponent, facts = {
|
|
15010
|
+
scope: "page",
|
|
15011
|
+
overrideOwnsPageHeading: false
|
|
15012
|
+
}) {
|
|
15013
|
+
if (facts.scope === "region" || facts.overrideOwnsPageHeading) return {
|
|
15014
|
+
trees,
|
|
15015
|
+
needsPageTitle: false
|
|
15016
|
+
};
|
|
14727
15017
|
const nodes = [...trees.values()].flatMap(elements);
|
|
14728
15018
|
if (nodes.some((node) => ownsH1(node, eventDetailsComponent))) return {
|
|
14729
15019
|
trees,
|
|
@@ -14985,11 +15275,12 @@ function pageDateRuntimeContext(dataContext) {
|
|
|
14985
15275
|
}
|
|
14986
15276
|
/** Booking context keeps its defaults together across SSR and authoring. */
|
|
14987
15277
|
function pageBookingRuntime(context) {
|
|
14988
|
-
const { bookingTimeZone, bookingOfferingPresets = [], appointmentServicePathPrefix = null } = context ?? {};
|
|
15278
|
+
const { bookingTimeZone, bookingOfferingPresets = [], appointmentServicePathPrefix = null, businessPerson = null } = context ?? {};
|
|
14989
15279
|
return {
|
|
14990
15280
|
bookingTimeZone,
|
|
14991
15281
|
bookingOfferingPresets,
|
|
14992
|
-
appointmentServicePathPrefix
|
|
15282
|
+
appointmentServicePathPrefix,
|
|
15283
|
+
businessPerson
|
|
14993
15284
|
};
|
|
14994
15285
|
}
|
|
14995
15286
|
//#endregion
|
|
@@ -15159,7 +15450,7 @@ function offeringArrangementContent(content, data, context, audience) {
|
|
|
15159
15450
|
const now = new Date(readRuntimeNow(context?.now));
|
|
15160
15451
|
const listing = buildLoadedOfferingsPreviewListing({
|
|
15161
15452
|
now,
|
|
15162
|
-
listingMode: offeringsListingFor(
|
|
15453
|
+
listingMode: offeringsListingFor(readOfferingsGrouping(effectiveOfferingsGrouping(content)), cardListArrangementForContent(content)),
|
|
15163
15454
|
routeCandidates: publicRouteCandidatesSchema.safeParse(data.routeCandidates).data,
|
|
15164
15455
|
...normalized,
|
|
15165
15456
|
presets: context?.bookingOfferingPresets,
|
|
@@ -15181,6 +15472,12 @@ function offeringArrangementContent(content, data, context, audience) {
|
|
|
15181
15472
|
publicVisibility: listing.kind === "no-groups" && listing.reason === "empty-hidden" ? "omitted" : "shown"
|
|
15182
15473
|
};
|
|
15183
15474
|
}
|
|
15475
|
+
function effectiveOfferingsGrouping(content) {
|
|
15476
|
+
const knobs = content._effectiveKnobs;
|
|
15477
|
+
if (typeof knobs !== "object" || knobs === null || !("grouping" in knobs)) return void 0;
|
|
15478
|
+
const grouping = knobs.grouping;
|
|
15479
|
+
return typeof grouping === "object" && grouping !== null && "value" in grouping ? grouping.value : void 0;
|
|
15480
|
+
}
|
|
15184
15481
|
/** Older blocks opt into preparation only when public visibility needs their listing. */
|
|
15185
15482
|
function needsOfferingListing(content, normalized) {
|
|
15186
15483
|
return content._effectiveLook !== void 0 || normalized.groupOverrides?.some((group) => group.hideWhenEmpty === true) === true;
|
|
@@ -15754,24 +16051,29 @@ function PageRendererCore(props) {
|
|
|
15754
16051
|
setContextResolveImageUrlContext(imageResolveContext);
|
|
15755
16052
|
const resolvedRegistry = props.registry ?? getDefaultComponentRegistry();
|
|
15756
16053
|
const readSystemTrees = React$1.useMemo(createPageSystemTreeReader, []);
|
|
16054
|
+
const headingScope = props.headingScope ?? "page";
|
|
15757
16055
|
const headingPresentation = React$1.useMemo(() => applyPageHeadingSemantics(readSystemTrees({
|
|
15758
16056
|
preparation,
|
|
15759
16057
|
dataContext,
|
|
15760
16058
|
registry: resolvedRegistry,
|
|
15761
16059
|
previewAuthoring: props.previewAuthoring,
|
|
15762
16060
|
imageResolveContext
|
|
15763
|
-
}), resolvedRegistry["event-details"]
|
|
16061
|
+
}), resolvedRegistry["event-details"], {
|
|
16062
|
+
scope: headingScope,
|
|
16063
|
+
overrideOwnsPageHeading: overrideOwnsPageHeading(preparation)
|
|
16064
|
+
}), [
|
|
15764
16065
|
preparation,
|
|
15765
16066
|
dataContext,
|
|
15766
16067
|
resolvedRegistry,
|
|
15767
16068
|
props.previewAuthoring,
|
|
15768
16069
|
imageResolveContext,
|
|
15769
|
-
readSystemTrees
|
|
16070
|
+
readSystemTrees,
|
|
16071
|
+
headingScope
|
|
15770
16072
|
]);
|
|
15771
|
-
return wrapRenderedPage(props, plan, !page || preparation.entries.length === 0 ? renderEmptyPage(page, audience) : renderPreparedPage(props, preparation, themeResources, imageResolveContext, headingPresentation));
|
|
16073
|
+
return wrapRenderedPage(props, plan, !page || preparation.entries.length === 0 ? renderEmptyPage(page, audience, headingScope) : renderPreparedPage(props, preparation, themeResources, imageResolveContext, headingPresentation));
|
|
15772
16074
|
}
|
|
15773
|
-
function renderEmptyPage(page, audience) {
|
|
15774
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [page ? /* @__PURE__ */ jsx(PageTitleFallback, { name: page.name }) : null, presentEmptyPage(audience)] });
|
|
16075
|
+
function renderEmptyPage(page, audience, headingScope) {
|
|
16076
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [page && headingScope === "page" ? /* @__PURE__ */ jsx(PageTitleFallback, { name: page.name }) : null, presentEmptyPage(audience)] });
|
|
15775
16077
|
}
|
|
15776
16078
|
function wrapRenderedPage(props, plan, rendered) {
|
|
15777
16079
|
return props.wrapPage ? props.wrapPage(plan, rendered) : rendered;
|
|
@@ -15779,7 +16081,7 @@ function wrapRenderedPage(props, plan, rendered) {
|
|
|
15779
16081
|
function renderPreparedPage(props, preparation, themeResources, imageResolveContext, headingPresentation) {
|
|
15780
16082
|
const resolvedRegistry = props.registry ?? getDefaultComponentRegistry();
|
|
15781
16083
|
const joinSlots = joinSlotsByPair(preparation.joins);
|
|
15782
|
-
const renderRegion = (entries, joins) => entries.map((entry, index) => renderGuardedPlanEntry({
|
|
16084
|
+
const renderRegion = (entries, joins, flow) => entries.map((entry, index) => renderGuardedPlanEntry({
|
|
15783
16085
|
entry,
|
|
15784
16086
|
index,
|
|
15785
16087
|
entries,
|
|
@@ -15789,12 +16091,13 @@ function renderPreparedPage(props, preparation, themeResources, imageResolveCont
|
|
|
15789
16091
|
resolvedRegistry,
|
|
15790
16092
|
systemTrees: headingPresentation.trees,
|
|
15791
16093
|
joinSlots: joins,
|
|
16094
|
+
flow,
|
|
15792
16095
|
wrapBlock: props.wrapBlock,
|
|
15793
16096
|
renderJoin: props.renderJoin
|
|
15794
16097
|
}));
|
|
15795
16098
|
const { main, aside } = preparation.regions;
|
|
15796
16099
|
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)] });
|
|
16100
|
+
if (aside.length === 0) return /* @__PURE__ */ jsxs("div", { children: [title, renderRegion(main, joinSlots, "main")] });
|
|
15798
16101
|
return /* @__PURE__ */ jsxs("div", {
|
|
15799
16102
|
className: "rb-page-layout",
|
|
15800
16103
|
"data-page-layout": "main-aside",
|
|
@@ -15803,12 +16106,12 @@ function renderPreparedPage(props, preparation, themeResources, imageResolveCont
|
|
|
15803
16106
|
/* @__PURE__ */ jsx("div", {
|
|
15804
16107
|
className: "rb-page-layout__main",
|
|
15805
16108
|
"data-page-region": "main",
|
|
15806
|
-
children: renderRegion(main, joinSlots)
|
|
16109
|
+
children: renderRegion(main, joinSlots, "main")
|
|
15807
16110
|
}),
|
|
15808
16111
|
/* @__PURE__ */ jsx("aside", {
|
|
15809
16112
|
className: "rb-page-layout__aside rb-sticky-below-site-chrome",
|
|
15810
16113
|
"data-page-region": "aside",
|
|
15811
|
-
children: renderRegion(aside, /* @__PURE__ */ new Map())
|
|
16114
|
+
children: renderRegion(aside, /* @__PURE__ */ new Map(), "aside")
|
|
15812
16115
|
})
|
|
15813
16116
|
]
|
|
15814
16117
|
});
|
|
@@ -15897,6 +16200,10 @@ function requireEntryBlockOverride(entry, themeResources) {
|
|
|
15897
16200
|
}
|
|
15898
16201
|
requireBlockOverride(themeResources, entry.override, entry.block.kind);
|
|
15899
16202
|
}
|
|
16203
|
+
/** The footer meets the main flow's last block, which marks itself for the footer edge's reserve. */
|
|
16204
|
+
function pageEndingAttribute(flow, position) {
|
|
16205
|
+
return flow === "main" && (position === "last" || position === "only") ? "" : void 0;
|
|
16206
|
+
}
|
|
15900
16207
|
/**
|
|
15901
16208
|
* Renders one planned block: its wrapper, style-group data attributes,
|
|
15902
16209
|
* boundary reserve space and the join markup that follows it.
|
|
@@ -15957,6 +16264,7 @@ function renderPlanEntry(input) {
|
|
|
15957
16264
|
"data-block-composition": blockComposition?.treatment,
|
|
15958
16265
|
"data-block-composition-kind": blockComposition?.kind,
|
|
15959
16266
|
"data-page-block-position": blockPosition,
|
|
16267
|
+
"data-page-ending": pageEndingAttribute(input.flow, blockPosition),
|
|
15960
16268
|
"data-site-style-boundary-before": reserves.topPlacement,
|
|
15961
16269
|
"data-site-style-boundary-after": reserves.bottomPlacement,
|
|
15962
16270
|
"data-site-style-field-seam": reserves.fieldSeam,
|
|
@@ -16051,6 +16359,9 @@ function resolveSystemBlockTree(input) {
|
|
|
16051
16359
|
return /* @__PURE__ */ jsx(FailedSystemBlockTree, { error });
|
|
16052
16360
|
}
|
|
16053
16361
|
}
|
|
16362
|
+
function overrideOwnsPageHeading(preparation) {
|
|
16363
|
+
return [...preparation.regions.main, ...preparation.regions.aside].some(({ entry }) => (entry.kind === "renderable" || entry.kind === "override-only") && entry.override?.ownsPageHeading === true);
|
|
16364
|
+
}
|
|
16054
16365
|
/** Preserve the block memo's reuse rules while resolving page-wide heading facts. */
|
|
16055
16366
|
function createPageSystemTreeReader() {
|
|
16056
16367
|
const memo = {};
|
|
@@ -16371,15 +16682,17 @@ function normalizeSdkCustomBlocks(customBlocks) {
|
|
|
16371
16682
|
}
|
|
16372
16683
|
function toBlocksBlockOverrides(overrides) {
|
|
16373
16684
|
if (!overrides) return void 0;
|
|
16374
|
-
|
|
16375
|
-
|
|
16376
|
-
|
|
16377
|
-
|
|
16685
|
+
return Object.fromEntries(Object.entries(overrides).map(([key, registration]) => {
|
|
16686
|
+
const entry = typeof registration === "object" && "component" in registration ? registration : {
|
|
16687
|
+
component: registration,
|
|
16688
|
+
ownsPageHeading: false
|
|
16689
|
+
};
|
|
16690
|
+
const adapter = (props) => React$1.createElement(entry.component, {
|
|
16378
16691
|
...props,
|
|
16379
16692
|
entrySubrouteContext: props.entrySubrouteContext
|
|
16380
16693
|
});
|
|
16381
|
-
|
|
16382
|
-
|
|
16694
|
+
return [key, Object.assign(adapter, { ownsPageHeading: entry.ownsPageHeading })];
|
|
16695
|
+
}));
|
|
16383
16696
|
}
|
|
16384
16697
|
function toBlocksPageRendererDataContext(dataContext) {
|
|
16385
16698
|
return {
|
|
@@ -16402,7 +16715,8 @@ function toBlocksCommonProps(props) {
|
|
|
16402
16715
|
registry: props.registry,
|
|
16403
16716
|
blockOverrides: toBlocksBlockOverrides(props.blockOverrides),
|
|
16404
16717
|
sdkConfig: props.sdkConfig ? { customBlocks: normalizeSdkCustomBlocks(props.sdkConfig.customBlocks) } : props.sdkConfig,
|
|
16405
|
-
customBlocks: normalizeSdkCustomBlocks(props.customBlocks)
|
|
16718
|
+
customBlocks: normalizeSdkCustomBlocks(props.customBlocks),
|
|
16719
|
+
headingScope: props.headingScope
|
|
16406
16720
|
};
|
|
16407
16721
|
}
|
|
16408
16722
|
function PageRenderer(props) {
|
|
@@ -16551,6 +16865,7 @@ function buildPageIdentityRenderContext(dataContext) {
|
|
|
16551
16865
|
demoEmailSuppressed: dataContext.demoEmailSuppressed,
|
|
16552
16866
|
now: dataContext.now,
|
|
16553
16867
|
siteName: dataContext.siteName,
|
|
16868
|
+
businessPerson: dataContext.businessPerson ?? null,
|
|
16554
16869
|
businessLocationPermission: dataContext.businessLocationPermission,
|
|
16555
16870
|
businessAddressVisibility: dataContext.businessAddressVisibility,
|
|
16556
16871
|
businessLocation: dataContext.businessLocation,
|