@riverbankcms/sdk 0.167.0 → 0.169.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-Dgb-ptph.d.ts → BlocksIslandsHydrator-DpROiz12.d.ts} +1 -1
- package/dist/_dts/{Page-Bs3WxFgr.d.ts → Page-DHBBDRC_.d.ts} +7 -6
- package/dist/_dts/{SdkPreviewMode-DtUCsaHY.d.ts → SdkPreviewMode-CG7Qib7u.d.ts} +2 -2
- package/dist/_dts/{client-CwsI23pj.d.ts → client-MURxFla9.d.ts} +90 -418
- package/dist/_dts/{content-types-CAeP_-cV.d.ts → content-types-ClBGjxBV.d.ts} +2 -2
- package/dist/_dts/{contracts-BXHCiF-b.d.ts → contracts-CHNvzh0y.d.ts} +6 -4
- package/dist/_dts/{footerPageOutline-Bb2gbppW.d.ts → footerPageOutline-DQM934Fm.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-DaBBDx7M.d.ts → generatePageMetadata-ConZaEqB.d.ts} +2 -2
- package/dist/_dts/{index-CS6b1B-c.d.ts → index-BaDqRekr.d.ts} +4 -4
- package/dist/_dts/{index-bDln38Hm.d.ts → index-CVB5wgbz.d.ts} +2 -2
- package/dist/_dts/{index-D7EbliE3.d.ts → index-CiR_oPYT.d.ts} +3 -3
- package/dist/_dts/{index-5_jf52sZ.d.ts → index-CovKPftP.d.ts} +2 -2
- package/dist/_dts/{index-C20yUyob.d.ts → index-DCw8LO4M.d.ts} +1 -1
- package/dist/_dts/index-DDaX-K2D.d.ts +14 -0
- package/dist/_dts/{index-DeHDwMfu.d.ts → index-rfAssXq0.d.ts} +3 -3
- package/dist/_dts/{loadContent-CTqcL7CS.d.ts → loadContent-CRLKVVDP.d.ts} +7 -7
- package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +1 -0
- package/dist/_dts/{index-ChpjHK0U.d.ts → request-DeVetKBr.d.ts} +81273 -46979
- package/dist/_dts/{resolveBlockData-C3s9WMPs.d.ts → resolveBlockData-C5KYFeig.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-JPwgRxwh.d.ts → resolvePageContent-D8MZWyNO.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/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 +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- 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 +4 -5
- 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 +1 -1
- package/dist/_dts/{types-BlaCuPLr.d.ts → types-B4MBlP_B.d.ts} +4 -2
- package/dist/_dts/{types-D-WElMCy.d.ts → types-Fj31kIi2.d.ts} +7 -7
- package/dist/_dts/{types-CwtTcaQP.d.ts → types-OwqfS8Gn.d.ts} +3 -3
- package/dist/_dts/{validation-Y5wD9fGK.d.ts → validation-B1Fa8o_b.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DFqkx158.mjs → BlocksIslandsHydrator-qq4Vhs7k.mjs} +21 -21
- package/dist/client/BookingMailingListNote-y3qWjnOo.mjs +957 -0
- package/dist/client/BookingQuestionFields-DjLjd0vc.mjs +359 -0
- package/dist/client/{CalendarNavigationChevron-DQwJ7BPx.mjs → CalendarNavigationChevron-VM7C2fdh.mjs} +8 -8
- package/dist/client/{CheckboxChoice-CZ-anOqV.mjs → CheckboxChoice-W_uiRgDK.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-DdkY86qI.mjs → DemoBookingPortalAccess-C2QCj_Ta.mjs} +68 -12
- package/dist/client/{EventCalendar.client-DAeQPV76.mjs → EventCalendar.client-DDjz7tuX.mjs} +10 -10
- package/dist/client/{EventCombined.client-Bus9R0bj.mjs → EventCombined.client-CeYbNsch.mjs} +9 -9
- package/dist/client/{EventEmbeddedCheckoutStep-D_14yqAU.mjs → EventEmbeddedCheckoutStep-Cf-HRHtb.mjs} +1 -1
- package/dist/client/{EventItem-DPBLjGwj.mjs → EventItem-B5J0IeF4.mjs} +37 -15
- package/dist/client/{EventListWeekNavigation-D6cwU82_.mjs → EventListWeekNavigation-eH04D8-V.mjs} +1 -1
- package/dist/client/{EventListing.client-Bogi_SnJ.mjs → EventListing.client-slpvrTrM.mjs} +3 -3
- package/dist/client/{EventListing.view-CEumpN7i.mjs → EventListing.view-BYBaElec.mjs} +34 -16
- package/dist/client/{EventRegistrationPayment-CIQw6vNy.mjs → EventRegistrationPayment-Do7Q0wRG.mjs} +362 -90
- package/dist/client/{LocationMapActions-BVO-qx4q.mjs → LocationMapActions-BFp2uQQQ.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-CcGaFawl.mjs → MapDrawingSvg-DDWfmgpA.mjs} +1 -1
- package/dist/client/{Page-D4_H_u9V.mjs → Page-Dv9eIOGr.mjs} +4475 -1600
- package/dist/client/{ProtectedSubmitButton-8DuDw2ag.mjs → ProtectedSubmitButton-C3H26pN9.mjs} +1 -1
- package/dist/client/{StepIndicator-Dptantmg.mjs → StepIndicator-BZNUd0-v.mjs} +3 -3
- package/dist/client/{TabBarFragment-BxEGsKUx.mjs → TabBarFragment-DkVKtK5a.mjs} +1 -1
- package/dist/client/{ThemedButton-8jUc02mZ.mjs → ThemedButton-BdnEwA38.mjs} +2 -5
- package/dist/client/accessibleSurfaces-chpD4C2c.mjs +4278 -0
- package/dist/client/{accordion--EUHmEGa.mjs → accordion-BCtVxnDZ.mjs} +1 -1
- package/dist/client/{booking-form.client-BCXwOnhc.mjs → booking-form.client-Cr5G-HHO.mjs} +1323 -567
- package/dist/client/{bookingForm-sHHcdism.mjs → bookingForm-B1Fc62Sl.mjs} +9 -5
- package/dist/client/bookingQuestions-BHq83mzS.mjs +13 -0
- package/dist/client/{bookingRoute-Bqlyu5Vb.mjs → bookingRoute-D6DlxYx6.mjs} +6 -2
- package/dist/client/bookings.mjs +28 -20
- package/dist/client/{carousel-Cp9xPBFZ.mjs → carousel-DW-HgjvT.mjs} +3 -3
- package/dist/client/{carousel.client-BO7sCEpH.mjs → carousel.client-BD4DXMtI.mjs} +62 -16
- package/dist/client/{carousel.shared-DBnWEJzo.mjs → carousel.shared-BFQ3kBEw.mjs} +6 -3
- package/dist/client/{cart-CCZZC-Lq.mjs → cart-D1zWe4R7.mjs} +3 -3
- package/dist/client/{cart.client-B7JfA19I.mjs → cart.client-CIfbTLHS.mjs} +1 -1
- package/dist/client/{checkout-CipmYL4A.mjs → checkout-fDCNZ3IT.mjs} +3 -3
- package/dist/client/{checkout.client-DraalWdH.mjs → checkout.client-C4l2KjtV.mjs} +1 -1
- package/dist/client/{checkoutUrls-CYj06rX1.mjs → checkoutUrls-cWL6I-Vz.mjs} +3 -2
- package/dist/client/client.mjs +287 -63
- package/dist/client/{context-Cv3QHjAF.mjs → context-DQnTyApV.mjs} +320 -4
- package/dist/client/creditProducts-CMOmhWm2.mjs +364 -0
- package/dist/client/{cta-P2vJVTEn.mjs → cta-Bj5WHgcv.mjs} +2 -2
- package/dist/client/{dateFormatting-D8D47VT4.mjs → dateFormatting-Bv6kjUW3.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CXWZoV-d.mjs → demoPortalMagicLink-3uVu3WgG.mjs} +1 -1
- package/dist/client/{site-styles-D56hT2u1.mjs → display-CT8KMSpH.mjs} +19832 -17912
- package/dist/client/{enhanceHeaderSection-BkAro1DJ.mjs → enhanceHeaderSection-B27KFGDv.mjs} +4 -3
- package/dist/client/{event-details.client-dLmyuPap.mjs → event-details.client-CL4Lqz2c.mjs} +1 -1
- package/dist/client/{event-registration.client-BEhC2_-Y.mjs → event-registration.client-Dj3Kyp5X.mjs} +118 -241
- package/dist/client/{eventCalendar-FBMS2Cpb.mjs → eventCalendar-DGsdSF8J.mjs} +4 -4
- package/dist/client/{eventCombined-BrBhUvGe.mjs → eventCombined-DFSVDJ3D.mjs} +4 -4
- package/dist/client/{eventDetails-C7WUrbZ2.mjs → eventDetails-DzMskXYA.mjs} +2 -2
- package/dist/client/{eventListing-Bih-BgQM.mjs → eventListing-CpFFcAUr.mjs} +4 -4
- package/dist/client/{eventRegistration-DfTlqGbl.mjs → eventRegistration-BipMUOCw.mjs} +8 -5
- package/dist/client/{form-Bw1uuiUs.mjs → form-57k2JQnm.mjs} +3 -3
- package/dist/client/{form.client-pZ-9gN33.mjs → form.client-CCl6CpRJ.mjs} +5 -5
- package/dist/client/{form.parts-PXlu6XQO.mjs → form.parts-BOJ1yDDf.mjs} +3 -3
- package/dist/client/{formatDate-DI3DP48e.mjs → formatDate-BGlhrmhF.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-BpJYUMd6.mjs → headerSection-q_bEzfhW.mjs} +2 -2
- package/dist/client/{mediaAssets-DpPauppt.mjs → mediaAssets-B99AP7ai.mjs} +1 -1
- package/dist/client/{mediaContext-BLo4NtjP.mjs → mediaContext-Fusweriw.mjs} +1 -1
- package/dist/client/{newsletter-form.client-CSoP0cGR.mjs → newsletter-form.client-CiqKAmPs.mjs} +6 -6
- package/dist/client/{newsletter-form.parts-DDbX_Sj0.mjs → newsletter-form.parts-x1RzAMNO.mjs} +2 -2
- package/dist/client/{newsletterForm-vCxYRar_.mjs → newsletterForm-Cn7h4zFe.mjs} +3 -3
- package/dist/client/{noop-ByVtIWf4.mjs → noop-B_f7RqLD.mjs} +544 -494
- package/dist/client/portal/client.mjs +86 -231
- package/dist/client/{product-detail.client-7Pi6avM-.mjs → product-detail.client-rWUvpVvZ.mjs} +1 -1
- package/dist/client/{product-list.client-DEad-Pma.mjs → product-list.client-J0wDOmKv.mjs} +1 -1
- package/dist/client/{productDetail-G1SMXG13.mjs → productDetail-LtCkMrJ0.mjs} +3 -3
- package/dist/client/{productList-B21TGdpT.mjs → productList-C0MLeh-v.mjs} +3 -3
- package/dist/client/{propsDecoder-B3vIBkex.mjs → propsDecoder-CAmEkJ6Y.mjs} +5 -4
- package/dist/client/{registry.server-B8aQhJpO.mjs → registry.server-Bf2YX_4v.mjs} +2218 -2435
- package/dist/client/{surfaceTransportMarker-BXepAVF6.mjs → renderableMediaAssetAdmission-BlfqYLJW.mjs} +1 -18
- package/dist/client/rendering/client.mjs +30 -30
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +10 -9
- package/dist/client/{richText-coerce-DHkBtO0G.mjs → richText-coerce-BTurYEao.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DbHX4JOS.mjs → routeIslandApiConfig-UdAlnZGQ.mjs} +1 -1
- package/dist/client/runtimeResponse-BP-L6exS.mjs +3 -0
- package/dist/client/runtimeResponse-Dg4XFsuM.mjs +9 -0
- package/dist/client/{shop-mqyoOvOK.mjs → shop-Dkn6EasY.mjs} +3 -3
- package/dist/client/{shop-commerce-B2UmrQg_.mjs → shop-commerce-bo0Z6kwf.mjs} +13 -13
- package/dist/client/{shop-commerce-store-B7n-Z7nY.mjs → shop-commerce-store-Ckxa4_jI.mjs} +1 -1
- package/dist/client/{shop.client-BH-BBnA9.mjs → shop.client-B_GqU6_U.mjs} +111 -32
- package/dist/client/{shop.interactive-mdM3UMWG.mjs → shop.interactive-C6L_Ig5F.mjs} +87 -528
- package/dist/client/{shopShared-CXF5wxdg.mjs → shopShared-CO1Y8lFd.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/src-BozhJ43Z.mjs +3 -0
- package/dist/client/{src-1PJxc8KO.mjs → src-xrjaKaCj.mjs} +6 -8
- package/dist/client/surfaceTransportMarker-BuwkYxsI.mjs +19 -0
- package/dist/client/{timetableModel-CrC80EOG.mjs → timetableModel-D62jfOxZ.mjs} +12 -12
- package/dist/client/{types-sF-IrGQr.mjs → types-5fOsPIpL.mjs} +248 -111
- package/dist/client/{useAvailableSlots-C4LOaI_Z.mjs → useAvailableSlots-CStfVmyY.mjs} +3 -3
- package/dist/client/{useDiscountApply-6Q0nToVA.mjs → useDiscountApply-Ca2pHUDu.mjs} +6 -4
- package/dist/client/{useDiscountCodeUi-CM-DTX5X.mjs → useDiscountCodeUi-AEifktGO.mjs} +1 -1
- package/dist/client/{useEventPagination-Bcs89BR5.mjs → useEventPagination-uxnUWI2v.mjs} +7 -7
- package/dist/client/{view-BN-fxyfq.mjs → view-B6KSxQMO.mjs} +11 -7
- package/dist/client/{view-Dh2tGoS0.mjs → view-SVnWic7i.mjs} +3 -4
- package/dist/preview-next/client/{ArrangementLookControls-D4VjPs-r.mjs → ArrangementLookControls-kbdqYkWM.mjs} +26 -17
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-C_h1cMYm.mjs → EventEmbeddedCheckoutStep-8-qtHjpb.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-D56RD3e_.mjs → LocationPickerEnvironment-CZQ4vkRe.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-DFnyCckr.mjs → MapLibreEditMap-CP4w7T_0.mjs} +2 -2
- package/dist/preview-next/client/{PreviewEditorSidebar-Ckr2zk_L.mjs → PreviewEditorSidebar-DI_LhsMQ.mjs} +212 -55
- package/dist/preview-next/client/{PreviewEditorUI-KOZgw_gS.mjs → PreviewEditorUI-yyD-ZREP.mjs} +6 -6
- package/dist/preview-next/client/{PreviewShell-CyO2V4kB.mjs → PreviewShell-YauP65Gi.mjs} +199 -155
- package/dist/preview-next/client/{SdkPreviewModeRuntime-DW3uKvNF.mjs → SdkPreviewModeRuntime-Bl7jQMI1.mjs} +32 -32
- package/dist/preview-next/client/{SiteChromeCustomizeButton-CU9VD-7O.mjs → SiteChromeCustomizeButton-CQFRP9aM.mjs} +4772 -3687
- package/dist/preview-next/client/{ThemedButton-C0dgGJ5k.mjs → ThemedButton-BQU45t-E.mjs} +260 -121
- package/dist/preview-next/client/{lucide-react-CPBCf6QT.mjs → lucide-react-DkZ8fO-G.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-DBi-WybM.mjs → previewAssistantSlot-DSR0IdAw.mjs} +16547 -13046
- package/dist/preview-next/client/{previewChromeSurface-BhkUJst9.mjs → previewChromeSurface-uSnVzeNs.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-BjCb6lOn.mjs → sdk-runtime-6Q0RVJTQ.mjs} +2 -2
- package/dist/preview-next/client/{src-DY8JCJdE.mjs → src-DzXUmsyK.mjs} +6 -8
- package/dist/preview-next/client/src-LUhVXBEQ.mjs +3 -0
- package/dist/preview-next/client/{useAutosaveStatus-CKxTaC3j.mjs → useAutosaveStatus-Cdx3kAGm.mjs} +2 -2
- package/dist/preview-next/client/{useBlockCustomizeControls-B7MLTjBX.mjs → useBlockCustomizeControls-ZrWdhcB6.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-BTUc0g9X.mjs → useOpenBlockForSetup-CK-GWb9k.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-Bv3nkdpV.mjs → route-contract-BU1m9SV3.mjs} +212 -0
- package/dist/server/{Block.shared-4fMqzltx.mjs → Block.shared-4vx7wzxj.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-C72VC_lR.mjs → ThemeScopeCore-C3HLgqBF.mjs} +463 -127
- package/dist/server/{accessibleSurfaces-B_Y_dA20.mjs → accessibleSurfaces-108nxyGc.mjs} +319 -131
- package/dist/server/{bindings-ConMYJ2U.mjs → bindings-TAQbo2P5.mjs} +2 -2
- package/dist/server/{booking-form.reserved-fields-BWRF7509.mjs → booking-form.reserved-fields-Cqp13TKc.mjs} +1 -0
- package/dist/server/{client-Cot-H5fQ.mjs → client-DzCxEl3L.mjs} +308 -61
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +1 -1
- package/dist/server/{validation-CDd6m8Ry.mjs → customCss-QymcmOZ-.mjs} +12 -55
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/headerVariant-8O5MvxIU.mjs +464 -0
- package/dist/server/{identity-Bn9OQiT1.mjs → identity-20XHqyuO.mjs} +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-BkaWYEwt.mjs → loadContent-BO1M9Hdf.mjs} +4 -5
- package/dist/server/{loadPage-kviUdH8c.mjs → loadPage-BvWzmZcD.mjs} +2 -2
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/{media-DnlczCMA.mjs → media-Brn9FW5s.mjs} +15 -1
- package/dist/server/{mode-Cv_TG9gP.mjs → mode-bkFS8glh.mjs} +4 -2
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-BTnS09GS.mjs → opaqueSurface-BawlEAd_.mjs} +6 -6
- package/dist/server/{overrideResolution-itXZCXs7.mjs → overrideResolution-fxuB1zZg.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-CDyn7iLy.mjs → pageRenderPlan-DzduDSqY.mjs} +255 -158
- package/dist/server/{pageRuntimeSupport-DZ6cLxrM.mjs → pageRuntimeSupport-BU8pwTNx.mjs} +291 -5
- package/dist/server/{pageShared-Q_Vij87H.mjs → pageShared-CSOJ8p8E.mjs} +1303 -907
- package/dist/server/{schema-DEizlyi4.mjs → parseThemeForPersistence-BebSeE17.mjs} +593 -1592
- package/dist/server/{prebuild-DOG4MkOy.mjs → prebuild-C5ZYo7wA.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-DlprLLsc.mjs → prefetchBlockData-BvbxqeKn.mjs} +5 -4
- package/dist/server/{registry-BPFcpn6k.mjs → registry-Fv-7D8o2.mjs} +4595 -4045
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-BHvfGD4y.mjs → resolveBlockData-xPgkvoWS.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-OXFRGn5M.mjs → resolveButtonColourStates-Cn6j8Ee0.mjs} +399 -518
- package/dist/server/{responseMedia-D8J3VAFs.mjs → responseMedia-t6gs0cB7.mjs} +2 -2
- package/dist/server/{richTextSchema-Euhuj-7V.mjs → richTextSchema-DQ2NBP0n.mjs} +5 -16
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -3
- package/dist/server/theme.mjs +1 -2
- package/dist/server/{three-pass-converter-_j2UE2tR.mjs → three-pass-converter-CQWdnfjV.mjs} +1 -1
- package/dist/server/{validation-bl6WcAi_.mjs → validation-DddhgNdb.mjs} +58 -9
- package/dist/server/{version-BLXZ31S-.mjs → version-D_W2mt8w.mjs} +1 -1
- package/dist/styles/index.css +342 -67
- package/package.json +4 -3
- package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
- package/dist/_dts/index-RugyUnqR.d.ts +0 -31535
- package/dist/client/BookingMailingListNote-CCVXX1LN.mjs +0 -331
- package/dist/client/DemoPortalSignInLink-B9YrzZt2.mjs +0 -19
- package/dist/client/creditProducts-BOWi1QLp.mjs +0 -62
- package/dist/client/site-styles-CMCUxsIM.mjs +0 -3
- package/dist/client/src-CdRISvQp.mjs +0 -3
- package/dist/client/src-DjnxOjXG.mjs +0 -217
- package/dist/client/useBookingNowIso-BDmWkYUW.mjs +0 -58
- package/dist/client/wizardSteps-DtkhwKXK.mjs +0 -6933
- package/dist/preview-next/client/src-BP8771hw.mjs +0 -3
- package/dist/server/parseThemeForPersistence-CDrF51tJ.mjs +0 -52
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { a as
|
|
1
|
+
import { Et as parseThemeColorToken, G as oklabToOklch, K as oklabToSrgb, L as contrastRatio, N as getTextColorForBackground, W as hexToRgb, X as srgbToOklab, Y as rgbToHex, q as oklchToHexGamut } from "./resolveButtonColourStates-Cn6j8Ee0.mjs";
|
|
2
|
+
import { $n as formattingTransforms, $r as lookCarouselRegionTransform, Bi as resolveLookSurfacePresentation, Bn as contentTransforms, Bt as weekColumnDays, Ca as assertNever, Cn as isEventFull, F as combinedLookSchema, G as resolveCalendarReadProfile, Gi as arrangementAppearancePresets, Gr as parseRuntimeBackgroundContent, Gt as eventCalendarWeekStart, Hi as heroPhotoPaintsGround, J as CardListContentPart, Ji as readStoredMode, Jn as chromeLogoTransforms, Jr as resolveBackgroundColorValue, Kn as mediaTransforms, Kr as resolveSectionSurfaceForeground, Kt as eventDateOptions, Ni as augmentManifest, Oa as cardListFamilyBlocks, Pi as isObjectRecord, Po as arrangementSlotNames, Pt as ThemedButtonLink, Q as MediaNodeServer, Qi as deriveSiteStyleBlockPolicy, Qn as uiTransforms, Qr as getAnchorClasses, Qt as formatEventDateParts, Rt as buildEventListWeek, Sa as resolveEffectiveKnobs, Sn as getEventAvailabilityStatus, So as resolveBookingBusinessTimeZone, Ur as parseBackgroundContent, Ut as formatEventPriceDisplay, Vt as formatEventPrice, Wn as readRuntimeNow, Wr as parseBackgroundOverlay, X as resolveCardListSchedule, Xi as resolveModeArrangement, Xr as standardImageShapeOptions, Y as CardListLeadDate, Yi as resolveEffectiveArrangement, Yn as layoutTransforms, Z as selectCardListPresentation, Za as orderedLiveRunSessions, Zi as resolvePublishedLook, Zn as resolveHeroTitleLength, Zr as BACKGROUND_POSITION_PRESET_VALUES, Zt as formatEventCompactDateRail, _a as parseCanonicalRuntimeBackground, _o as compareLocalScheduleDates, _r as standardAspectRatioOptions, _t as eventCalendarListGroupingDecision, ba as stripStaleTransitionStyleGroup, bn as formatTotalCapacity, bo as parseBookingLocalDate, br as heroTitleSizeOptions, cn as formatDateKey, da as sectionShapeHook, do as formatDate, dr as listItemPresentation, ei as lookLeadSlotTransform, et as ImagePresets, fa as boundaryRuntimeMetricsForDecorativeTransition, fo as formatDateRange, ft as resolveEventSelection, ga as deriveSectionGround, gi as ClockIcon, gn as formatBookingSchedulePresentation, ha as applyLookPhotoTreatment, hn as resolveRuntimeEventDestination, ii as createTransformRegistry, in as resolveEventTimeZone, ka as cardListKnobBlocks, la as sectionShapeForGround, mn as isToday, ni as lookSkinSlotTransform, nn as formatTime, nt as computeMediaTransformStyle, po as formatDateTimeRange, pr as listLookSlot, qi as arrangementManifestFromVariants, qn as headerRuntimeTransforms, qr as resolveSurfaceForegroundStyles, qt as eventLocalDateKey, ri as asPartialObject, t as getBlockDefinition, ti as lookQuoteLimitTransform, tn as formatEventTimeRange, tr as eventCalendarListLayoutCompatibleDisplayModeValues, ua as sectionShapeFromContent, va as resolveSectionBackground, vn as canJoinEventWaitlistOnAnyMode, vt as eventCalendarListLayoutOptions, wo as toUtcIsoDateTimeString, xa as themeV2CompilerOwnedFieldNames, ya as sectionSurfaceBase, yn as formatEventRemainingPlaces, yo as getLocalScheduleDate, yt as resolveEventCalendarReadPlan, zi as lookPresentationOnPalette, zr as boxStylesTransforms } from "./registry-Fv-7D8o2.mjs";
|
|
3
|
+
import { B as resolveConcreteColorHex, E as resolveOnColorForThemeToken, O as resolveTokenOrCssColorValue, T as isCssColorLiteral, n as parseSurfaceTree } from "./accessibleSurfaces-108nxyGc.mjs";
|
|
4
|
+
import { I as asLayoutVariantKey, P as asDesignBlockId, R as asSiteStyleId, z as makeBoundaryId } from "./headerVariant-8O5MvxIU.mjs";
|
|
5
|
+
import { o as runtimeMediaSchema } from "./media-Brn9FW5s.mjs";
|
|
6
|
+
import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
|
|
7
|
+
import { a as isRecord$1 } from "./richTextSchema-DQ2NBP0n.mjs";
|
|
8
8
|
import { i as resolveRouteTargetForStage$1 } from "./dist-Xevqwf1U.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
import React from "react";
|
|
@@ -146,6 +146,45 @@ function cloneThemeTokens(source) {
|
|
|
146
146
|
return JSON.parse(JSON.stringify(source));
|
|
147
147
|
}
|
|
148
148
|
//#endregion
|
|
149
|
+
//#region ../site-contracts/src/identity/gradientPresets.ts
|
|
150
|
+
const gradientPresetIdValues = [
|
|
151
|
+
"primary-secondary",
|
|
152
|
+
"primary-accent",
|
|
153
|
+
"secondary-accent",
|
|
154
|
+
"primary-light-dark",
|
|
155
|
+
"primary-dark-light",
|
|
156
|
+
"secondary-light-dark",
|
|
157
|
+
"accent-light-dark",
|
|
158
|
+
"background-surface",
|
|
159
|
+
"neutral-fade",
|
|
160
|
+
"primary-glow",
|
|
161
|
+
"accent-glow",
|
|
162
|
+
"primary-secondary-accent"
|
|
163
|
+
];
|
|
164
|
+
const gradientPresetIdSet = new Set(gradientPresetIdValues);
|
|
165
|
+
function parseGradientPresetId(value) {
|
|
166
|
+
if (typeof value !== "string") return null;
|
|
167
|
+
const normalized = value.trim();
|
|
168
|
+
return gradientPresetIdSet.has(normalized) ? normalized : null;
|
|
169
|
+
}
|
|
170
|
+
//#endregion
|
|
171
|
+
//#region ../core/src/duration.ts
|
|
172
|
+
const UNIT_LABELS_SINGULAR = {
|
|
173
|
+
minutes: "minute",
|
|
174
|
+
hours: "hour",
|
|
175
|
+
days: "day",
|
|
176
|
+
weeks: "week"
|
|
177
|
+
};
|
|
178
|
+
const UNIT_LABELS_PLURAL = {
|
|
179
|
+
minutes: "minutes",
|
|
180
|
+
hours: "hours",
|
|
181
|
+
days: "days",
|
|
182
|
+
weeks: "weeks"
|
|
183
|
+
};
|
|
184
|
+
function formatDurationUnitLabel(unit, count) {
|
|
185
|
+
return count === 1 ? UNIT_LABELS_SINGULAR[unit] : UNIT_LABELS_PLURAL[unit];
|
|
186
|
+
}
|
|
187
|
+
//#endregion
|
|
149
188
|
//#region ../theme-core/src/surfaces/mapDrawingTokens.ts
|
|
150
189
|
/**
|
|
151
190
|
* The one map token contract (issue 1611). Drawings carry semantic classes only;
|
|
@@ -475,23 +514,6 @@ function mapDrawingStyle(input) {
|
|
|
475
514
|
};
|
|
476
515
|
}
|
|
477
516
|
//#endregion
|
|
478
|
-
//#region ../core/src/duration.ts
|
|
479
|
-
const UNIT_LABELS_SINGULAR = {
|
|
480
|
-
minutes: "minute",
|
|
481
|
-
hours: "hour",
|
|
482
|
-
days: "day",
|
|
483
|
-
weeks: "week"
|
|
484
|
-
};
|
|
485
|
-
const UNIT_LABELS_PLURAL = {
|
|
486
|
-
minutes: "minutes",
|
|
487
|
-
hours: "hours",
|
|
488
|
-
days: "days",
|
|
489
|
-
weeks: "weeks"
|
|
490
|
-
};
|
|
491
|
-
function formatDurationUnitLabel(unit, count) {
|
|
492
|
-
return count === 1 ? UNIT_LABELS_SINGULAR[unit] : UNIT_LABELS_PLURAL[unit];
|
|
493
|
-
}
|
|
494
|
-
//#endregion
|
|
495
517
|
//#region ../theme-core/src/site-styles/sectionBoundaryComposition.ts
|
|
496
518
|
const backgroundToken = requireThemeColorToken("background");
|
|
497
519
|
/**
|
|
@@ -532,7 +554,7 @@ function boundaryEndpointForSectionContent(content) {
|
|
|
532
554
|
kind: "unpainted",
|
|
533
555
|
reason: "media"
|
|
534
556
|
};
|
|
535
|
-
default: return assertNever
|
|
557
|
+
default: return assertNever(effective, "Unhandled section background type");
|
|
536
558
|
}
|
|
537
559
|
}
|
|
538
560
|
/**
|
|
@@ -543,10 +565,15 @@ function boundaryEndpointForSectionContent(content) {
|
|
|
543
565
|
function sectionFactsForContent(content) {
|
|
544
566
|
return {
|
|
545
567
|
endpoint: boundaryEndpointForSectionContent(content),
|
|
568
|
+
...isPhotoBackground(content) ? { photo: true } : {},
|
|
546
569
|
frame: frameKindForContent(content),
|
|
547
570
|
shape: sectionShapeFromContent(content)
|
|
548
571
|
};
|
|
549
572
|
}
|
|
573
|
+
function isPhotoBackground(content) {
|
|
574
|
+
const source = parseCanonicalRuntimeBackground(content);
|
|
575
|
+
return source.kind !== "none" && source.background.type === "image" && source.background.image != null;
|
|
576
|
+
}
|
|
550
577
|
function frameKindForContent(content) {
|
|
551
578
|
const frameStyles = content._frameStyles;
|
|
552
579
|
const kind = typeof frameStyles === "object" && frameStyles !== null && "kind" in frameStyles ? frameStyles.kind : null;
|
|
@@ -571,12 +598,17 @@ function shapeNotShownReason(previous, next) {
|
|
|
571
598
|
* Decides whether and how a join draws. The frame and shape rules win before
|
|
572
599
|
* paint is considered; two unpainted sides show nothing.
|
|
573
600
|
*/
|
|
574
|
-
function composeBoundary(previous, next) {
|
|
601
|
+
function composeBoundary(previous, next, treatment) {
|
|
575
602
|
const frameReason = frameNotShownReason(previous.frame, next.frame) ?? shapeNotShownReason(previous.shape, next.shape);
|
|
576
603
|
if (frameReason) return {
|
|
577
604
|
kind: "not-shown",
|
|
578
605
|
reason: frameReason
|
|
579
606
|
};
|
|
607
|
+
const paintReason = paintNotShownReason(previous, next, treatment);
|
|
608
|
+
if (paintReason) return {
|
|
609
|
+
kind: "not-shown",
|
|
610
|
+
reason: paintReason
|
|
611
|
+
};
|
|
580
612
|
const from = previous.endpoint;
|
|
581
613
|
const to = next.endpoint;
|
|
582
614
|
if (from.kind === "paint") return {
|
|
@@ -601,6 +633,11 @@ function composeBoundary(previous, next) {
|
|
|
601
633
|
reason: "both-unpainted"
|
|
602
634
|
};
|
|
603
635
|
}
|
|
636
|
+
/** Treatment-specific placement and indistinguishable paint are composition decisions. */
|
|
637
|
+
function paintNotShownReason(previous, next, treatment) {
|
|
638
|
+
if (treatment === "wave-edge-echo" && (!previous.photo || next.endpoint.kind !== "paint")) return "photo-required";
|
|
639
|
+
return previous.endpoint.kind === "paint" && next.endpoint.kind === "paint" && previous.endpoint.token === next.endpoint.token ? "same-paint" : null;
|
|
640
|
+
}
|
|
604
641
|
/**
|
|
605
642
|
* Placement, reserves and paint for a shown boundary, derived from the
|
|
606
643
|
* composition and the catalogue's metrics for the treatment.
|
|
@@ -641,7 +678,7 @@ function boundaryLayout(intent, composition) {
|
|
|
641
678
|
shape: composition.from
|
|
642
679
|
}
|
|
643
680
|
};
|
|
644
|
-
default: return assertNever
|
|
681
|
+
default: return assertNever(composition, "Unhandled boundary composition");
|
|
645
682
|
}
|
|
646
683
|
}
|
|
647
684
|
function requireThemeColorToken(value) {
|
|
@@ -649,13 +686,13 @@ function requireThemeColorToken(value) {
|
|
|
649
686
|
if (!token) throw new Error(`Expected a theme color token. Received: ${value}`);
|
|
650
687
|
return token;
|
|
651
688
|
}
|
|
689
|
+
//#endregion
|
|
690
|
+
//#region ../theme-core/src/gradients/presets.ts
|
|
652
691
|
/**
|
|
653
|
-
* Curated
|
|
654
|
-
* All gradients use theme color tokens, so they adapt to the site's palette.
|
|
692
|
+
* Curated gradient presets based on theme palette
|
|
655
693
|
*/
|
|
656
|
-
const
|
|
657
|
-
{
|
|
658
|
-
id: "primary-secondary",
|
|
694
|
+
const gradientPresetData = {
|
|
695
|
+
"primary-secondary": {
|
|
659
696
|
name: "Primary to Secondary",
|
|
660
697
|
description: "Blend your primary and secondary brand colors",
|
|
661
698
|
type: "linear",
|
|
@@ -668,8 +705,7 @@ const GRADIENT_PRESETS = [
|
|
|
668
705
|
position: 100
|
|
669
706
|
}]
|
|
670
707
|
},
|
|
671
|
-
{
|
|
672
|
-
id: "primary-accent",
|
|
708
|
+
"primary-accent": {
|
|
673
709
|
name: "Primary to Accent",
|
|
674
710
|
description: "Energetic gradient from primary to accent",
|
|
675
711
|
type: "linear",
|
|
@@ -682,8 +718,7 @@ const GRADIENT_PRESETS = [
|
|
|
682
718
|
position: 100
|
|
683
719
|
}]
|
|
684
720
|
},
|
|
685
|
-
{
|
|
686
|
-
id: "secondary-accent",
|
|
721
|
+
"secondary-accent": {
|
|
687
722
|
name: "Secondary to Accent",
|
|
688
723
|
description: "Vibrant secondary to accent blend",
|
|
689
724
|
type: "linear",
|
|
@@ -696,8 +731,7 @@ const GRADIENT_PRESETS = [
|
|
|
696
731
|
position: 100
|
|
697
732
|
}]
|
|
698
733
|
},
|
|
699
|
-
{
|
|
700
|
-
id: "primary-light-dark",
|
|
734
|
+
"primary-light-dark": {
|
|
701
735
|
name: "Primary Light to Dark",
|
|
702
736
|
description: "Subtle primary color fade",
|
|
703
737
|
type: "linear",
|
|
@@ -710,8 +744,7 @@ const GRADIENT_PRESETS = [
|
|
|
710
744
|
position: 100
|
|
711
745
|
}]
|
|
712
746
|
},
|
|
713
|
-
{
|
|
714
|
-
id: "primary-dark-light",
|
|
747
|
+
"primary-dark-light": {
|
|
715
748
|
name: "Primary Dark to Light",
|
|
716
749
|
description: "Reverse primary fade",
|
|
717
750
|
type: "linear",
|
|
@@ -724,8 +757,7 @@ const GRADIENT_PRESETS = [
|
|
|
724
757
|
position: 100
|
|
725
758
|
}]
|
|
726
759
|
},
|
|
727
|
-
{
|
|
728
|
-
id: "secondary-light-dark",
|
|
760
|
+
"secondary-light-dark": {
|
|
729
761
|
name: "Secondary Light to Dark",
|
|
730
762
|
description: "Subtle secondary color fade",
|
|
731
763
|
type: "linear",
|
|
@@ -738,8 +770,7 @@ const GRADIENT_PRESETS = [
|
|
|
738
770
|
position: 100
|
|
739
771
|
}]
|
|
740
772
|
},
|
|
741
|
-
{
|
|
742
|
-
id: "accent-light-dark",
|
|
773
|
+
"accent-light-dark": {
|
|
743
774
|
name: "Accent Light to Dark",
|
|
744
775
|
description: "Accent color depth fade",
|
|
745
776
|
type: "linear",
|
|
@@ -752,8 +783,7 @@ const GRADIENT_PRESETS = [
|
|
|
752
783
|
position: 100
|
|
753
784
|
}]
|
|
754
785
|
},
|
|
755
|
-
{
|
|
756
|
-
id: "background-surface",
|
|
786
|
+
"background-surface": {
|
|
757
787
|
name: "Background to Surface",
|
|
758
788
|
description: "Subtle depth using base colors",
|
|
759
789
|
type: "linear",
|
|
@@ -766,8 +796,7 @@ const GRADIENT_PRESETS = [
|
|
|
766
796
|
position: 100
|
|
767
797
|
}]
|
|
768
798
|
},
|
|
769
|
-
{
|
|
770
|
-
id: "neutral-fade",
|
|
799
|
+
"neutral-fade": {
|
|
771
800
|
name: "Neutral Gradient",
|
|
772
801
|
description: "Elegant neutral color fade",
|
|
773
802
|
type: "linear",
|
|
@@ -780,8 +809,7 @@ const GRADIENT_PRESETS = [
|
|
|
780
809
|
position: 100
|
|
781
810
|
}]
|
|
782
811
|
},
|
|
783
|
-
{
|
|
784
|
-
id: "primary-glow",
|
|
812
|
+
"primary-glow": {
|
|
785
813
|
name: "Primary glow",
|
|
786
814
|
description: "A soft top-centred glow using your primary palette",
|
|
787
815
|
type: "radial",
|
|
@@ -801,8 +829,7 @@ const GRADIENT_PRESETS = [
|
|
|
801
829
|
supportingColor: "onPrimary900"
|
|
802
830
|
}
|
|
803
831
|
},
|
|
804
|
-
{
|
|
805
|
-
id: "accent-glow",
|
|
832
|
+
"accent-glow": {
|
|
806
833
|
name: "Accent glow",
|
|
807
834
|
description: "A soft top-centred glow using your accent palette",
|
|
808
835
|
type: "radial",
|
|
@@ -822,8 +849,7 @@ const GRADIENT_PRESETS = [
|
|
|
822
849
|
supportingColor: "onAccent900"
|
|
823
850
|
}
|
|
824
851
|
},
|
|
825
|
-
{
|
|
826
|
-
id: "primary-secondary-accent",
|
|
852
|
+
"primary-secondary-accent": {
|
|
827
853
|
name: "Brand Trio",
|
|
828
854
|
description: "All three brand colors in harmony",
|
|
829
855
|
type: "linear",
|
|
@@ -843,20 +869,17 @@ const GRADIENT_PRESETS = [
|
|
|
843
869
|
}
|
|
844
870
|
]
|
|
845
871
|
}
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
872
|
+
};
|
|
873
|
+
const presetData = (id) => gradientPresetData[id];
|
|
874
|
+
/**
|
|
875
|
+
* Curated library of gradient presets.
|
|
876
|
+
* All gradients use theme color tokens, so they adapt to the site's palette.
|
|
877
|
+
*/
|
|
878
|
+
const GRADIENT_PRESETS = gradientPresetIdValues.flatMap((value) => parseGradientPresetId(value) ?? []).map((id) => ({
|
|
879
|
+
id,
|
|
880
|
+
...presetData(id)
|
|
850
881
|
}));
|
|
851
|
-
const GRADIENT_PRESET_IDS = GRADIENT_PRESETS.map((preset) => preset.id);
|
|
852
|
-
const gradientPresetIdSet = new Set(GRADIENT_PRESET_IDS);
|
|
853
882
|
const gradientPresetById = Object.fromEntries(GRADIENT_PRESETS.map((preset) => [preset.id, preset]));
|
|
854
|
-
function parseGradientPresetId(value) {
|
|
855
|
-
if (typeof value !== "string") return null;
|
|
856
|
-
const normalized = value.trim();
|
|
857
|
-
if (!gradientPresetIdSet.has(normalized)) return null;
|
|
858
|
-
return normalized;
|
|
859
|
-
}
|
|
860
883
|
function getGradientPreset(id) {
|
|
861
884
|
return gradientPresetById[id];
|
|
862
885
|
}
|
|
@@ -894,6 +917,77 @@ function readRecord(value) {
|
|
|
894
917
|
return typeof value === "object" && value !== null && !Array.isArray(value) ? value : null;
|
|
895
918
|
}
|
|
896
919
|
//#endregion
|
|
920
|
+
//#region ../theme-core/src/site-styles/runtimeSectionResolution.ts
|
|
921
|
+
/**
|
|
922
|
+
* The one owner of the facts `whenMissing` rules read from block content.
|
|
923
|
+
* Content facts also become `data-has-*` hooks; setting facts never do.
|
|
924
|
+
*/
|
|
925
|
+
function arrangementContentFacts(content) {
|
|
926
|
+
const photoCount = arrangementPhotoCount(content);
|
|
927
|
+
const featured = typeof content.featured === "string" ? content.featured.trim().length > 0 : content.featured !== void 0 && content.featured !== null;
|
|
928
|
+
return {
|
|
929
|
+
photoCount,
|
|
930
|
+
facts: {
|
|
931
|
+
content: {
|
|
932
|
+
photo: photoCount > 0,
|
|
933
|
+
facts: Array.isArray(content.facts) && content.facts.length > 0,
|
|
934
|
+
featured,
|
|
935
|
+
outcome: typeof content.outcome === "string" && content.outcome.length > 0,
|
|
936
|
+
figure: typeof content.figure === "string" && content.figure.trim().length > 0,
|
|
937
|
+
entrance: isRecord$1(content.entrancePhoto)
|
|
938
|
+
},
|
|
939
|
+
settings: { "listed-by-week": content.listBy === "week" }
|
|
940
|
+
}
|
|
941
|
+
};
|
|
942
|
+
}
|
|
943
|
+
/** The content stage owns media presence for every arrangement consumer. */
|
|
944
|
+
function arrangementPhotoCount(content) {
|
|
945
|
+
if (Array.isArray(content.cards)) return content.cards.filter((card) => isRecord$1(card) && isRecord$1(card.media)).length;
|
|
946
|
+
if (Array.isArray(content.members)) return content.members.filter((member) => isRecord$1(member) && isRecord$1(member.photo)).length;
|
|
947
|
+
if (Array.isArray(content.images)) return content.images.filter((item) => isRecord$1(item) && isRecord$1(item.image)).length;
|
|
948
|
+
if (isRecord$1(content.media) || isRecord$1(content.entrancePhoto)) return 1;
|
|
949
|
+
return storedSectionPhoto(content) === null ? 0 : 1;
|
|
950
|
+
}
|
|
951
|
+
/** Both rendering and join matching ask the publication-fallback owner. */
|
|
952
|
+
function resolveArrangementContentLook(runtime, mode, content, audience) {
|
|
953
|
+
const selected = runtime.byMode[mode ?? "default"];
|
|
954
|
+
if (!selected) return null;
|
|
955
|
+
const published = resolvePublishedLook({
|
|
956
|
+
look: selected.look,
|
|
957
|
+
facts: arrangementContentFacts(content).facts,
|
|
958
|
+
audience,
|
|
959
|
+
catalogue: runtime.available.map((entry) => entry.look)
|
|
960
|
+
});
|
|
961
|
+
return runtime.available.find((entry) => entry.look.id === published.id) ?? selected;
|
|
962
|
+
}
|
|
963
|
+
/** Section paint is decided here, after the effective Look, at its admitted render position. */
|
|
964
|
+
function resolveRuntimeSection(input) {
|
|
965
|
+
const rhythm = input.runtime && input.look ? input.runtime.rhythm[input.position % input.runtime.rhythm.length] ?? null : void 0;
|
|
966
|
+
const photo = input.runtime && input.look && input.blockKind === "block.hero" ? { paintsGround: heroPhotoPaintsGround(input.arrangementKey) } : void 0;
|
|
967
|
+
const background = resolveSectionBackground(parseCanonicalRuntimeBackground(input.content), null, rhythm, photo);
|
|
968
|
+
return {
|
|
969
|
+
background,
|
|
970
|
+
ground: deriveSectionGround(background, input.palette),
|
|
971
|
+
paint: sectionPaint(background),
|
|
972
|
+
styleBackground: sectionGroundToken(resolveSectionBackground({ kind: "none" }, null, rhythm))
|
|
973
|
+
};
|
|
974
|
+
}
|
|
975
|
+
function sectionPaint(resolved) {
|
|
976
|
+
if (resolved.kind === "base" || resolved.kind === "content-media") return "paint";
|
|
977
|
+
const background = resolved.background;
|
|
978
|
+
if (background.type === "color") return "paint";
|
|
979
|
+
return background.type === "image" && background.image != null ? "photo" : "other";
|
|
980
|
+
}
|
|
981
|
+
function sectionGroundToken(resolved) {
|
|
982
|
+
if (resolved.kind === "base") return "background";
|
|
983
|
+
switch (resolved.background.type) {
|
|
984
|
+
case "image":
|
|
985
|
+
case "video": return "media";
|
|
986
|
+
case "color": return resolved.background.color ?? "background";
|
|
987
|
+
case "gradient": return "gradient";
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
//#endregion
|
|
897
991
|
//#region ../blocks/src/system/data/selectBlockContent.ts
|
|
898
992
|
/** Canonical admitted content: legacy publishedContent never selects a version. */
|
|
899
993
|
function selectBlockContent(block, stage = "published") {
|
|
@@ -930,7 +1024,7 @@ function closedEventBookingLabel(reason) {
|
|
|
930
1024
|
case "parent_inconsistent":
|
|
931
1025
|
case "already_started":
|
|
932
1026
|
case "enrollment_closed": return "Registration closed";
|
|
933
|
-
default: return assertNever(reason);
|
|
1027
|
+
default: return assertNever$1(reason);
|
|
934
1028
|
}
|
|
935
1029
|
}
|
|
936
1030
|
function resolveEventHref(event) {
|
|
@@ -1017,7 +1111,7 @@ function seriesBookingClosed(event) {
|
|
|
1017
1111
|
case "parent_archived":
|
|
1018
1112
|
case "parent_inconsistent":
|
|
1019
1113
|
case "enrollment_closed": return true;
|
|
1020
|
-
default: return assertNever(event.bookingAvailability.reason);
|
|
1114
|
+
default: return assertNever$1(event.bookingAvailability.reason);
|
|
1021
1115
|
}
|
|
1022
1116
|
}
|
|
1023
1117
|
function occurrenceCardAvailability(event) {
|
|
@@ -1210,6 +1304,15 @@ const eventItemParts = {
|
|
|
1210
1304
|
"places",
|
|
1211
1305
|
"action"
|
|
1212
1306
|
],
|
|
1307
|
+
"timetable-rows": [
|
|
1308
|
+
"date",
|
|
1309
|
+
"title",
|
|
1310
|
+
"meta",
|
|
1311
|
+
"description",
|
|
1312
|
+
"time",
|
|
1313
|
+
"places",
|
|
1314
|
+
"action"
|
|
1315
|
+
],
|
|
1213
1316
|
"month-day": [
|
|
1214
1317
|
"title",
|
|
1215
1318
|
"meta",
|
|
@@ -1217,6 +1320,10 @@ const eventItemParts = {
|
|
|
1217
1320
|
"action"
|
|
1218
1321
|
]
|
|
1219
1322
|
};
|
|
1323
|
+
/** Rows with a rail: the venue and price beside the title, the time and the button together at the end. */
|
|
1324
|
+
function hasActionRail(arrangement) {
|
|
1325
|
+
return arrangement === "compact" || arrangement === "timetable-rows";
|
|
1326
|
+
}
|
|
1220
1327
|
function eventItemFacts(props) {
|
|
1221
1328
|
const options = eventDateOptions(props.event);
|
|
1222
1329
|
const availability = getEventAvailabilityStatus(props.event);
|
|
@@ -1231,20 +1338,20 @@ function eventItemFacts(props) {
|
|
|
1231
1338
|
time,
|
|
1232
1339
|
price
|
|
1233
1340
|
}),
|
|
1234
|
-
venueIcon: props.arrangement
|
|
1341
|
+
venueIcon: hasActionRail(props.arrangement) && props.showVenue !== false && Boolean(props.event.venue),
|
|
1235
1342
|
places: props.showCapacity ? formatEventRemainingPlaces(props.event, { full: "Sold out" }) : null,
|
|
1236
1343
|
availability: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available",
|
|
1237
1344
|
description: props.event.presentation?.summary ?? props.event.description
|
|
1238
1345
|
};
|
|
1239
1346
|
}
|
|
1240
|
-
/**
|
|
1347
|
+
/** Rows with a rail keep pricing in the details and time in the action rail. */
|
|
1241
1348
|
function eventItemMeta(props, formatted) {
|
|
1242
1349
|
const parts = props.parts ?? eventItemParts[props.arrangement];
|
|
1243
1350
|
const venue = props.showVenue !== false ? props.event.venue?.name : null;
|
|
1244
1351
|
const teacher = formatEventTeacherLine(props.event);
|
|
1245
1352
|
const time = parts.includes("time") ? null : formatted.time;
|
|
1246
|
-
const price = props.arrangement
|
|
1247
|
-
return (props.arrangement
|
|
1353
|
+
const price = hasActionRail(props.arrangement) && !parts.includes("price") ? formatted.price : null;
|
|
1354
|
+
return (hasActionRail(props.arrangement) ? [
|
|
1248
1355
|
venue,
|
|
1249
1356
|
teacher,
|
|
1250
1357
|
price,
|
|
@@ -1300,13 +1407,13 @@ function renderCalendarItem(props) {
|
|
|
1300
1407
|
}
|
|
1301
1408
|
function renderCalendarTrailingParts(props, parts, renderPart) {
|
|
1302
1409
|
const content = parts.map(renderPart);
|
|
1303
|
-
return props.arrangement
|
|
1410
|
+
return hasActionRail(props.arrangement) && parts.length > 0 ? /* @__PURE__ */ jsx("div", {
|
|
1304
1411
|
...listLookSlot(props, "item-actions"),
|
|
1305
1412
|
children: content
|
|
1306
1413
|
}) : content;
|
|
1307
1414
|
}
|
|
1308
1415
|
function eventItemTag(arrangement) {
|
|
1309
|
-
return arrangement === "ledger" || arrangement === "day-groups" || arrangement === "week-columns" ? "li" : "article";
|
|
1416
|
+
return arrangement === "ledger" || arrangement === "timetable-rows" || arrangement === "day-groups" || arrangement === "week-columns" ? "li" : "article";
|
|
1310
1417
|
}
|
|
1311
1418
|
function renderEventItemContentPart({ part, props, facts }) {
|
|
1312
1419
|
switch (part) {
|
|
@@ -1340,7 +1447,7 @@ function renderEventItemContentPart({ part, props, facts }) {
|
|
|
1340
1447
|
});
|
|
1341
1448
|
case "time": return /* @__PURE__ */ jsxs("p", {
|
|
1342
1449
|
...listLookSlot(props, "time"),
|
|
1343
|
-
children: [props.arrangement
|
|
1450
|
+
children: [hasActionRail(props.arrangement) ? /* @__PURE__ */ jsx(ClockIcon, { "aria-hidden": "true" }) : null, facts.time]
|
|
1344
1451
|
});
|
|
1345
1452
|
case "places": return facts.places ? /* @__PURE__ */ jsx("p", {
|
|
1346
1453
|
...listLookSlot(props, "places"),
|
|
@@ -1455,6 +1562,15 @@ const bodyParts = [
|
|
|
1455
1562
|
"availability",
|
|
1456
1563
|
"action"
|
|
1457
1564
|
];
|
|
1565
|
+
const datedRowParts = [
|
|
1566
|
+
"date-stamp",
|
|
1567
|
+
"title",
|
|
1568
|
+
"schedule",
|
|
1569
|
+
"dates",
|
|
1570
|
+
"facts",
|
|
1571
|
+
"availability",
|
|
1572
|
+
"action"
|
|
1573
|
+
];
|
|
1458
1574
|
function renderCardItem({ item, presentation, index, Title, actionNode, feedback }) {
|
|
1459
1575
|
const layout = cardItemLayout(presentation, index);
|
|
1460
1576
|
const body = cardItemBody(item, presentation);
|
|
@@ -1493,7 +1609,7 @@ function renderCardItem({ item, presentation, index, Title, actionNode, feedback
|
|
|
1493
1609
|
}
|
|
1494
1610
|
function cardItemLayout(presentation, index) {
|
|
1495
1611
|
const arrangement = presentation.cardArrangement ?? "cards";
|
|
1496
|
-
if (arrangement === "index" || arrangement === "sequence") return {
|
|
1612
|
+
if (arrangement === "index" || arrangement === "sequence" || arrangement === "type-columns") return {
|
|
1497
1613
|
kind: "row",
|
|
1498
1614
|
tag: "li",
|
|
1499
1615
|
slot: "item"
|
|
@@ -1507,7 +1623,7 @@ function cardItemLayout(presentation, index) {
|
|
|
1507
1623
|
function cardItemBody(item, presentation) {
|
|
1508
1624
|
const schedule = resolveCardListSchedule(item, presentation.datesMode);
|
|
1509
1625
|
const arrangement = presentation.cardArrangement ?? "cards";
|
|
1510
|
-
const parts = (presentation.bodyParts ?? (arrangement === "slides" || arrangement === "track" ? carouselBodyParts : bodyParts)).filter((part) => part !== "schedule" && part !== "dates" || part === schedule.part);
|
|
1626
|
+
const parts = (presentation.bodyParts ?? (arrangement === "slides" || arrangement === "track" ? carouselBodyParts : arrangement === "type-columns" ? datedRowParts : bodyParts)).filter((part) => part !== "schedule" && part !== "dates" || part === schedule.part);
|
|
1511
1627
|
return {
|
|
1512
1628
|
item: schedule.item,
|
|
1513
1629
|
parts
|
|
@@ -1559,7 +1675,7 @@ function CardListCollection({ Carousel, presentation, slides, photoCount = 0, la
|
|
|
1559
1675
|
indicator: presentation.cardArrangement === "slides" ? "dots" : "none",
|
|
1560
1676
|
slides
|
|
1561
1677
|
});
|
|
1562
|
-
return /* @__PURE__ */ jsx(presentation.cardArrangement === "index" || presentation.cardArrangement === "sequence" ? "ol" : "div", {
|
|
1678
|
+
return /* @__PURE__ */ jsx(presentation.cardArrangement === "index" || presentation.cardArrangement === "sequence" || presentation.cardArrangement === "type-columns" ? "ol" : "div", {
|
|
1563
1679
|
...listLookSlot(presentation, "items"),
|
|
1564
1680
|
"data-card-list": true,
|
|
1565
1681
|
"data-has-photo": String(photoCount > 0),
|
|
@@ -1741,15 +1857,18 @@ function EventListBody({ display, renderEventCard, footer }) {
|
|
|
1741
1857
|
}, eventLocalDateKey(first));
|
|
1742
1858
|
})
|
|
1743
1859
|
});
|
|
1744
|
-
if (display.listLayout === "ledger"
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
...
|
|
1748
|
-
event,
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1860
|
+
if (display.listLayout === "ledger" || display.listLayout === "timetable-rows") {
|
|
1861
|
+
const arrangement = display.listLayout;
|
|
1862
|
+
return /* @__PURE__ */ jsx("ol", {
|
|
1863
|
+
...listLookSlot(display, "list"),
|
|
1864
|
+
children: display.events.map((event, index, events) => /* @__PURE__ */ jsx(EventItem, {
|
|
1865
|
+
...listItemPresentation(display, index, events.length),
|
|
1866
|
+
event,
|
|
1867
|
+
arrangement,
|
|
1868
|
+
continued: index > 0 && eventLocalDateKey(event) === eventLocalDateKey(events[index - 1] ?? event)
|
|
1869
|
+
}, event.occurrenceId || event.id))
|
|
1870
|
+
});
|
|
1871
|
+
}
|
|
1753
1872
|
if (display.listLayout === "compact") return /* @__PURE__ */ jsxs("aside", {
|
|
1754
1873
|
...listLookSlot(display, "panel"),
|
|
1755
1874
|
className: display.containerClass,
|
|
@@ -2033,7 +2152,7 @@ function eventCardListContent(event, context, buttonText) {
|
|
|
2033
2152
|
newTabHint: external,
|
|
2034
2153
|
...offeringSchedule(event, context.now)
|
|
2035
2154
|
};
|
|
2036
|
-
default: return assertNever(context);
|
|
2155
|
+
default: return assertNever$1(context);
|
|
2037
2156
|
}
|
|
2038
2157
|
}
|
|
2039
2158
|
function cardProjectionBase(event, buttonText, context) {
|
|
@@ -2128,6 +2247,10 @@ function offeringFacts(event, places, offering) {
|
|
|
2128
2247
|
label: "Length",
|
|
2129
2248
|
value: formatEventDuration(event, "readable")
|
|
2130
2249
|
}] : [],
|
|
2250
|
+
...offering && event.venue ? [{
|
|
2251
|
+
label: "Venue",
|
|
2252
|
+
value: event.venue.name
|
|
2253
|
+
}] : [],
|
|
2131
2254
|
...places ? [{
|
|
2132
2255
|
label: "Places",
|
|
2133
2256
|
value: places,
|
|
@@ -2501,6 +2624,10 @@ const systemCustomizeFacetDefinitions = [
|
|
|
2501
2624
|
label: "All"
|
|
2502
2625
|
}
|
|
2503
2626
|
], "3", true),
|
|
2627
|
+
{
|
|
2628
|
+
...fixedKnob("block.testimonials", "autoAdvance", "Moves on by itself", onOff, "false", false, true),
|
|
2629
|
+
description: "Moves to the next quote every few seconds, and stops while someone's reading."
|
|
2630
|
+
},
|
|
2504
2631
|
fixedKnob("block.testimonials", "tilt", "Tilt the small cards", onOff, "true", false, true),
|
|
2505
2632
|
{
|
|
2506
2633
|
...fixedKnob("block.testimonials", "archFrame", "Arch frame", onOff, "true", false, true),
|
|
@@ -2577,6 +2704,13 @@ const systemCustomizeFacetDefinitions = [
|
|
|
2577
2704
|
], "icons"),
|
|
2578
2705
|
blockKinds: cardListFamilyBlocks
|
|
2579
2706
|
},
|
|
2707
|
+
fixedKnob("block.body-text", "alignment", "Text alignment", [{
|
|
2708
|
+
value: "left",
|
|
2709
|
+
label: "Left"
|
|
2710
|
+
}, {
|
|
2711
|
+
value: "center",
|
|
2712
|
+
label: "Centre"
|
|
2713
|
+
}], "left"),
|
|
2580
2714
|
{
|
|
2581
2715
|
...fixedKnob("block.event-calendar", "showCapacity", "Places left", onOff, "true", false, true),
|
|
2582
2716
|
description: "Show how many places are left on each event"
|
|
@@ -3309,7 +3443,7 @@ function resolveLinkedContentEditSupport(contentType) {
|
|
|
3309
3443
|
kind: "unsupported-domain-backed",
|
|
3310
3444
|
reason: metadata.reason
|
|
3311
3445
|
};
|
|
3312
|
-
default: return assertNever(metadata);
|
|
3446
|
+
default: return assertNever$1(metadata);
|
|
3313
3447
|
}
|
|
3314
3448
|
}
|
|
3315
3449
|
function contentTypeKeyToLabel(key) {
|
|
@@ -3535,7 +3669,7 @@ function sourceLabel(source) {
|
|
|
3535
3669
|
case "managed-database": return "DB";
|
|
3536
3670
|
case "sdk-synced": return "SDK-synced DB";
|
|
3537
3671
|
case "sdk-config": return "SDK config";
|
|
3538
|
-
default: return assertNever(source);
|
|
3672
|
+
default: return assertNever$1(source);
|
|
3539
3673
|
}
|
|
3540
3674
|
}
|
|
3541
3675
|
//#endregion
|
|
@@ -3612,7 +3746,7 @@ function composeJoin(join, previous, next) {
|
|
|
3612
3746
|
previousBlockId: join.previousBlockId,
|
|
3613
3747
|
nextBlockId: join.nextBlockId,
|
|
3614
3748
|
treatment: join.treatment,
|
|
3615
|
-
outcome: composeBoundary(sectionFactsForContent(previous.content), sectionFactsForContent(next.content))
|
|
3749
|
+
outcome: composeBoundary(sectionFactsForContent(previous.content), sectionFactsForContent(next.content), join.treatment)
|
|
3616
3750
|
};
|
|
3617
3751
|
}
|
|
3618
3752
|
/** Placement, reserves and paint for a join that draws; null otherwise. */
|
|
@@ -3842,16 +3976,9 @@ function planArrangementContent(blockKind, manifest, content, audience) {
|
|
|
3842
3976
|
...arrangementManifestFromVariants(manifest),
|
|
3843
3977
|
variantMeaning: manifest.variantMeaning
|
|
3844
3978
|
}, content);
|
|
3845
|
-
const
|
|
3846
|
-
if (!
|
|
3979
|
+
const effective = resolveArrangementContentLook(runtime, mode, content, audience);
|
|
3980
|
+
if (!effective) return content;
|
|
3847
3981
|
const { facts } = arrangementContentFacts(content);
|
|
3848
|
-
const published = resolvePublishedLook({
|
|
3849
|
-
look: selected.look,
|
|
3850
|
-
facts,
|
|
3851
|
-
audience,
|
|
3852
|
-
catalogue: runtime.available.map((entry) => entry.look)
|
|
3853
|
-
});
|
|
3854
|
-
const effective = runtime.available.find((entry) => entry.look.id === published.id) ?? selected;
|
|
3855
3982
|
const { length, knobs } = resolveArrangementKnobs({
|
|
3856
3983
|
blockKind,
|
|
3857
3984
|
look: effective,
|
|
@@ -3873,7 +4000,7 @@ function planArrangementContent(blockKind, manifest, content, audience) {
|
|
|
3873
4000
|
});
|
|
3874
4001
|
return {
|
|
3875
4002
|
...activeContent,
|
|
3876
|
-
...arrangementPhotoTreatmentContent(activeContent, effective
|
|
4003
|
+
...arrangementPhotoTreatmentContent(activeContent, effective, runtime.surfaceContext.palette, values.photoTint === "brand" ? "brand" : "dark"),
|
|
3877
4004
|
...mode !== null ? { variant: mode } : {},
|
|
3878
4005
|
...effectiveContent,
|
|
3879
4006
|
...photoContent,
|
|
@@ -3895,12 +4022,12 @@ function planArrangementContent(blockKind, manifest, content, audience) {
|
|
|
3895
4022
|
}
|
|
3896
4023
|
/** Typed Look composition owns contrast treatment; parsing preserves authored paint. */
|
|
3897
4024
|
function arrangementPhotoTreatmentContent(content, look, palette, tint) {
|
|
3898
|
-
if (!look.structure.photoTreatment) return {};
|
|
4025
|
+
if (!look.look.structure.photoTreatment) return {};
|
|
3899
4026
|
const authored = parseCanonicalRuntimeBackground(content);
|
|
3900
4027
|
if (authored.kind === "none") return {};
|
|
3901
4028
|
return { _sectionStyles: {
|
|
3902
4029
|
...isObjectRecord(content._sectionStyles) ? content._sectionStyles : {},
|
|
3903
|
-
background: applyLookPhotoTreatment(authored.background, look.structure.photoTreatment, palette, tint)
|
|
4030
|
+
background: applyLookPhotoTreatment(authored.background, look.look.structure.photoTreatment, palette, tint, look.photoCopyPlacement)
|
|
3904
4031
|
} };
|
|
3905
4032
|
}
|
|
3906
4033
|
/** Widget section hooks use the theme; hero background geometry never travels to list islands. */
|
|
@@ -3942,36 +4069,6 @@ function arrangementPhotoContent(content, knobs) {
|
|
|
3942
4069
|
return copy;
|
|
3943
4070
|
}) };
|
|
3944
4071
|
}
|
|
3945
|
-
/**
|
|
3946
|
-
* The one owner of the facts `whenMissing` rules read from block content.
|
|
3947
|
-
* Content facts also become `data-has-*` hooks; setting facts never do.
|
|
3948
|
-
*/
|
|
3949
|
-
function arrangementContentFacts(content) {
|
|
3950
|
-
const photoCount = arrangementPhotoCount(content);
|
|
3951
|
-
const featured = typeof content.featured === "string" ? content.featured.trim().length > 0 : content.featured !== void 0 && content.featured !== null;
|
|
3952
|
-
return {
|
|
3953
|
-
photoCount,
|
|
3954
|
-
facts: {
|
|
3955
|
-
content: {
|
|
3956
|
-
photo: photoCount > 0,
|
|
3957
|
-
facts: Array.isArray(content.facts) && content.facts.length > 0,
|
|
3958
|
-
featured,
|
|
3959
|
-
outcome: typeof content.outcome === "string" && content.outcome.length > 0,
|
|
3960
|
-
figure: typeof content.figure === "string" && content.figure.trim().length > 0,
|
|
3961
|
-
entrance: isObjectRecord(content.entrancePhoto)
|
|
3962
|
-
},
|
|
3963
|
-
settings: { "listed-by-week": content.listBy === "week" }
|
|
3964
|
-
}
|
|
3965
|
-
};
|
|
3966
|
-
}
|
|
3967
|
-
/** The content stage owns media presence for every arrangement consumer. */
|
|
3968
|
-
function arrangementPhotoCount(content) {
|
|
3969
|
-
if (Array.isArray(content.cards)) return content.cards.filter((card) => isObjectRecord(card) && isObjectRecord(card.media)).length;
|
|
3970
|
-
if (Array.isArray(content.members)) return content.members.filter((member) => isObjectRecord(member) && isObjectRecord(member.photo)).length;
|
|
3971
|
-
if (Array.isArray(content.images)) return content.images.filter((item) => isObjectRecord(item) && isObjectRecord(item.image)).length;
|
|
3972
|
-
if (isObjectRecord(content.media) || isObjectRecord(content.entrancePhoto)) return 1;
|
|
3973
|
-
return storedSectionPhoto(content) === null ? 0 : 1;
|
|
3974
|
-
}
|
|
3975
4072
|
function effectiveContentKnobValue(blockKind, key, value) {
|
|
3976
4073
|
const facet = systemCustomizeFacetDefinitionsForBlock(blockKind).find((entry) => entry.target.kind === "content-field" && entry.target.field === key);
|
|
3977
4074
|
return facet?.target.kind === "content-field" && facet.target.boolean ? value === "true" : value;
|
|
@@ -3994,17 +4091,30 @@ function applyArrangementRhythm(entry, position) {
|
|
|
3994
4091
|
const runtime = arrangementRuntime(entry.renderableContent);
|
|
3995
4092
|
const look = effectiveLookFromContent(entry.renderableContent);
|
|
3996
4093
|
if (!runtime || !look) return entry;
|
|
3997
|
-
const rhythm = runtime.rhythm.length === 0 ? null : runtime.rhythm[position % runtime.rhythm.length];
|
|
3998
4094
|
const content = entry.renderableContent;
|
|
3999
|
-
const
|
|
4095
|
+
const section = resolveRuntimeSection({
|
|
4096
|
+
content,
|
|
4097
|
+
runtime,
|
|
4098
|
+
look,
|
|
4099
|
+
position,
|
|
4100
|
+
blockKind: entry.block.kind,
|
|
4101
|
+
arrangementKey: entry.kind === "renderable" ? entry.effectiveArrangementKey ?? void 0 : void 0,
|
|
4102
|
+
palette: runtime.surfaceContext.palette
|
|
4103
|
+
});
|
|
4104
|
+
const resolved = section.background;
|
|
4000
4105
|
const updated = applyResolvedArrangementBackground(content, resolved);
|
|
4001
|
-
const surface =
|
|
4002
|
-
const grounded = resolveArrangementSurfaces(entry, look, runtime,
|
|
4106
|
+
const surface = sectionGroundToken(resolved);
|
|
4107
|
+
const grounded = resolveArrangementSurfaces(entry, look, runtime, section, updated);
|
|
4003
4108
|
const shape = sectionShapeHook(sectionShapeForGround(runtime.fieldGrounds, surface));
|
|
4004
|
-
const combined = resolveCombinedLook(entry, grounded, runtime,
|
|
4109
|
+
const combined = resolveCombinedLook(entry, grounded, runtime, section, updated);
|
|
4005
4110
|
return {
|
|
4006
4111
|
...entry,
|
|
4007
|
-
|
|
4112
|
+
sectionDecision: {
|
|
4113
|
+
lookId: look.look.id,
|
|
4114
|
+
ground: section.ground,
|
|
4115
|
+
paint: section.paint
|
|
4116
|
+
},
|
|
4117
|
+
styleBackground: section.styleBackground,
|
|
4008
4118
|
renderableContent: {
|
|
4009
4119
|
...updated,
|
|
4010
4120
|
...combined ? { _combinedLook: combined } : {},
|
|
@@ -4017,16 +4127,6 @@ function applyArrangementRhythm(entry, position) {
|
|
|
4017
4127
|
}
|
|
4018
4128
|
};
|
|
4019
4129
|
}
|
|
4020
|
-
/** The section's name for hooks such as `data-surface`. Surfaces take sectionSurfaceBase, where media and gradients are never colours. */
|
|
4021
|
-
function arrangementGroundToken(resolved) {
|
|
4022
|
-
if (resolved.kind === "base") return "background";
|
|
4023
|
-
switch (resolved.background.type) {
|
|
4024
|
-
case "image":
|
|
4025
|
-
case "video": return "media";
|
|
4026
|
-
case "color": return resolved.background.color ?? "background";
|
|
4027
|
-
case "gradient": return "gradient";
|
|
4028
|
-
}
|
|
4029
|
-
}
|
|
4030
4130
|
function applyResolvedArrangementBackground(content, resolved) {
|
|
4031
4131
|
const section = isObjectRecord(content._sectionStyles) ? content._sectionStyles : {};
|
|
4032
4132
|
const photo = isObjectRecord(section.background) ? section.background.image : void 0;
|
|
@@ -4079,8 +4179,8 @@ function blockDiagnosticContext(resolved, input) {
|
|
|
4079
4179
|
manifestKeys: resolved.definition ? Object.keys(resolved.definition.manifest).sort() : null
|
|
4080
4180
|
};
|
|
4081
4181
|
}
|
|
4082
|
-
function resolveArrangementSurfaces(entry, look, runtime,
|
|
4083
|
-
const ground =
|
|
4182
|
+
function resolveArrangementSurfaces(entry, look, runtime, section, content) {
|
|
4183
|
+
const ground = section.ground;
|
|
4084
4184
|
const style = {
|
|
4085
4185
|
roleMap: look.roleMap,
|
|
4086
4186
|
surfaces: runtime.surfaces,
|
|
@@ -4090,7 +4190,7 @@ function resolveArrangementSurfaces(entry, look, runtime, background, content) {
|
|
|
4090
4190
|
look,
|
|
4091
4191
|
parents: plannedSlotParents(entry, look),
|
|
4092
4192
|
ground,
|
|
4093
|
-
base: sectionSurfaceBase(background, runtime.surfaceContext.palette),
|
|
4193
|
+
base: sectionSurfaceBase(section.background, runtime.surfaceContext.palette),
|
|
4094
4194
|
style,
|
|
4095
4195
|
content
|
|
4096
4196
|
});
|
|
@@ -4102,18 +4202,18 @@ function resolveArrangementSurfaces(entry, look, runtime, background, content) {
|
|
|
4102
4202
|
};
|
|
4103
4203
|
}
|
|
4104
4204
|
/** The combined mode owns its resolved list and month, including independent paint. */
|
|
4105
|
-
function resolveCombinedLook(entry, list, runtime,
|
|
4205
|
+
function resolveCombinedLook(entry, list, runtime, section, content) {
|
|
4106
4206
|
if (entry.block.kind !== "block.event-calendar" || content.variant !== "combined") return null;
|
|
4107
4207
|
const month = runtime.byMode.calendar;
|
|
4108
4208
|
if (!month) throw new Error("Combined calendar needs a month Look");
|
|
4109
4209
|
const arrangement = month.look.structure.byMode.calendar;
|
|
4110
4210
|
if (arrangement !== "month-grid" && arrangement !== "month-day") throw new Error("Invalid combined month arrangement");
|
|
4111
|
-
const ground =
|
|
4211
|
+
const ground = section.ground;
|
|
4112
4212
|
const surfacePresentation = resolveLookSurfacePresentation({
|
|
4113
4213
|
look: month,
|
|
4114
4214
|
parents: arrangementSlotParentsForManifest(entry.kind === "renderable" ? entry.definition.manifest : void 0, month.look.target, arrangement),
|
|
4115
4215
|
ground,
|
|
4116
|
-
base: sectionSurfaceBase(background, runtime.surfaceContext.palette),
|
|
4216
|
+
base: sectionSurfaceBase(section.background, runtime.surfaceContext.palette),
|
|
4117
4217
|
content,
|
|
4118
4218
|
style: {
|
|
4119
4219
|
roleMap: month.roleMap,
|
|
@@ -4155,8 +4255,5 @@ function plannedSlotParents(entry, look) {
|
|
|
4155
4255
|
const arrangement = entry.effectiveListArrangementKey ?? (typeof month === "string" ? month : entry.effectiveArrangementKey) ?? fallback;
|
|
4156
4256
|
return arrangementSlotParentsForManifest(entry.definition.manifest, look.look.target, arrangement);
|
|
4157
4257
|
}
|
|
4158
|
-
function heroPhotoGround(blockKind, arrangementKey) {
|
|
4159
|
-
return blockKind === "block.hero" ? { paintsGround: heroPhotoPaintsGround(arrangementKey) } : void 0;
|
|
4160
|
-
}
|
|
4161
4258
|
//#endregion
|
|
4162
4259
|
export { CalendarIcon as A, selectBlockContent as B, createEditorPresentationPageReader as C, CardListItems as D, CardListCollection as E, formatEventDuration as F, defaultThemeTokens as H, resolveEventCardBooking as I, resolveEventCta as L, buildMonthDay as M, resolveMonthSelectedDay as N, EventItem as O, formatEventTeacherLine as P, resolveEventLinkProps as R, EventListingFrameView as S, EmptyState as T, buildThemeTokens as V, EVENT_REGISTRATION_ANCHOR_ID as _, renderedJoinLayout as a, derivePreviewRunSchedule as b, coerceLinkedContentEntriesPayload as c, defaultTransforms as d, resolveAuthoredLinkHref as f, EventHeader as g, resolveRouteTarget as h, joinSlotKey as i, MapPinIcon as j, eventCategoryBadge as k, resolveLinkedEntryInlineFieldEligibility as l, resolvePageRouteTarget as m, planArrangementContent as n, retargetJoinsAcrossOmissions as o, resolveEntryRouteTarget as p, composePageJoins as r, buildLinkedContentEditTarget as s, createPageRenderPlanReader as t, builtinTransformDefinitions as u, eventCardListContent as v, createPresentationPageReader as w, MonthLookView as x, deriveEventScheduleSummary as y, parseStoredVariant as z };
|