@riverbankcms/sdk 0.183.0 → 0.184.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 +34 -1
- package/dist/_dts/{BlocksIslandsHydrator-X1_G96iN.d.ts → BlocksIslandsHydrator-DjBTJYiF.d.ts} +1 -1
- package/dist/_dts/{Page-CEqZJZEE.d.ts → Page-BpXEM2ET.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DQejfbXL.d.ts → SdkPreviewMode-Bb3h7KRE.d.ts} +2 -2
- package/dist/_dts/{client-B_B_amKD.d.ts → client-DgTRRtl_.d.ts} +13 -1
- package/dist/_dts/{content-types-Dhx5Ocvx.d.ts → content-types-DZQJp_ak.d.ts} +2 -2
- package/dist/_dts/{contracts-FeOnfoa1.d.ts → contracts-Ww1fmd-c.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-m70J6tit.d.ts → generatePageMetadata-BGc7dju6.d.ts} +2 -2
- package/dist/_dts/{index-liuhlOX7.d.ts → index-BECaUNYs.d.ts} +2 -2
- package/dist/_dts/{index-BOpUh8kO.d.ts → index-Cc85KVLW.d.ts} +3 -3
- package/dist/_dts/{index-CjAkEWAp.d.ts → index-Cni4jykw.d.ts} +4 -4
- package/dist/_dts/{index-Bizdaxji.d.ts → index-DxxTQ_0V.d.ts} +2 -2
- package/dist/_dts/{index-BxCmCit0.d.ts → index-W9-7djG3.d.ts} +1 -1
- package/dist/_dts/{index-iuFrbIjt.d.ts → index-ukS-Ffem.d.ts} +1 -1
- package/dist/_dts/{loadContent-D4wrTIIw.d.ts → loadContent-BlSWTlbD.d.ts} +7 -7
- package/dist/_dts/{request-Gn0O1blj.d.ts → request-CZz2BoXJ.d.ts} +74180 -73974
- package/dist/_dts/{resolveBlockData-D5duwuqS.d.ts → resolveBlockData-D12HXnS3.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-xzJ3c9Na.d.ts → resolvePageContent-BteMsSGP.d.ts} +1 -1
- 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/gifting/client.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +7 -7
- 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 +1 -1
- package/dist/_dts/sdk/src/portal/index.d.ts +10 -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 +4 -4
- 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 +6 -6
- 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 -1
- package/dist/_dts/{serviceBookingOutline-B1gyJon_.d.ts → serviceBookingOutline-aTlOvO3U.d.ts} +15 -7
- package/dist/_dts/{types-BoITy0rA.d.ts → types-Bi7R07RX.d.ts} +6 -2
- package/dist/_dts/{types-DBNuMtSk.d.ts → types-CCcQlRBi.d.ts} +9 -10
- package/dist/_dts/{types-DHMcuoeQ.d.ts → types-Du4aMnWC.d.ts} +13 -15
- package/dist/_dts/{validation-BIPO-XlE.d.ts → validation-CjCWVmwe.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-Ct8slgRk.mjs → BlocksIslandsHydrator-CFLWxjxR.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-qqTxGGS4.mjs → BookingMailingListNote-C4LcfwyA.mjs} +7 -7
- package/dist/client/{BookingQuestionFields-DCh9MUIF.mjs → BookingQuestionFields-DdcmoHqQ.mjs} +1 -1
- package/dist/client/{CalendarAction-RcdaStG7.mjs → CalendarAction-DYGewmvh.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-D7Wt-Oaa.mjs → CalendarNavigationChevron-ZfrUiiiI.mjs} +5 -5
- package/dist/client/{CheckboxChoice-BdGxZWeg.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-HFVkoOac.mjs → DemoBookingPortalAccess-pzkGVkgG.mjs} +7 -5
- package/dist/client/{EventCalendar.client-BtkJW8bA.mjs → EventCalendar.client-Ct1B3xI4.mjs} +9 -9
- package/dist/client/{EventCombined.client-DxaGjFFS.mjs → EventCombined.client-DgfNtcgW.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-B2c5dR49.mjs → EventEmbeddedCheckoutStep-CjoaG1zy.mjs} +1 -1
- package/dist/client/{EventItem-Fr2qi2C2.mjs → EventItem-KGKkK19N.mjs} +5 -5
- package/dist/client/{EventListWeekNavigation-BRMaq0ky.mjs → EventListWeekNavigation-Ba9ezxuC.mjs} +1 -1
- package/dist/client/{EventListing.client-BhGxfbjt.mjs → EventListing.client-xFKRDLwC.mjs} +3 -3
- package/dist/client/{EventListing.view-COuEJzbO.mjs → EventListing.view-Dy36vWHi.mjs} +84 -7
- package/dist/client/{EventRegistrationPayment-BTLYhVxD.mjs → EventRegistrationPayment-Dth9L00x.mjs} +108 -45
- package/dist/client/{Page-CgbQZP5g.mjs → Page-DB5KODiu.mjs} +1735 -501
- package/dist/client/{ProtectedSubmitButton-BG7my0Qf.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-DQNkfNLA.mjs → SiteTermsAgreementField-BDVP_HeK.mjs} +2 -2
- package/dist/client/{StepIndicator-DvPekKeM.mjs → StepIndicator-CLgDVzCs.mjs} +1 -1
- package/dist/client/{StepIndicator-DyXoI3ob.mjs → StepIndicator-DRyZ8igu.mjs} +6 -6
- package/dist/client/{ThemedButton-Bc9DBbVp.mjs → ThemedButton-C4rCsPCt.mjs} +11 -2
- package/dist/client/{accessibleSurfaces-wj4Rloo5.mjs → accessibleSurfaces-CqroimVQ.mjs} +745 -557
- package/dist/client/{accordion-BVXfjnh-.mjs → accordion-BQYRP5xV.mjs} +1 -1
- package/dist/client/{booking-form.client-DycPGtke.mjs → booking-form.client-B7ckDuOC.mjs} +16 -16
- package/dist/client/{bookingForm-DrWSUqL3.mjs → bookingForm-BeD4650p.mjs} +7 -6
- package/dist/client/bookings.mjs +4 -4
- package/dist/client/{boxStyleClassNames-CduDRcIk.mjs → boxStyleClassNames-CA7FirMH.mjs} +2 -2
- package/dist/client/{buttonParts-CJEtVOUy.mjs → buttonParts-C39GC0kz.mjs} +9 -2
- package/dist/client/{carousel-DyCLMP8s.mjs → carousel-DJ9Aa1m3.mjs} +2 -2
- package/dist/client/{carousel.client-DffP_Nv0.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
- package/dist/client/{cart-BuEp_cj4.mjs → cart-DdCenbTy.mjs} +3 -3
- package/dist/client/{cart.client-CAO39uDG.mjs → cart.client-BQm06qNw.mjs} +1 -1
- package/dist/client/{checkout-BoxzT64s.mjs → checkout-45wPQULN.mjs} +3 -3
- package/dist/client/{checkout.client-IGUy7XOx.mjs → checkout.client-bSv4cc5z.mjs} +1 -1
- package/dist/client/{checkoutUrls-D0UsiFmm.mjs → checkoutUrls-CwlaMl3W.mjs} +1 -1
- package/dist/client/client.mjs +23 -35
- package/dist/client/{constants-C_8AxMdm.mjs → constants-DXV4KR7l.mjs} +1 -1
- package/dist/client/{context-D1L0pe__.mjs → context-lCPfX-xe.mjs} +13 -3
- package/dist/client/{demoPortalMagicLink-BunFTnIq.mjs → demoPortalMagicLink-Ce3Gyin_.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-CtLAG651.mjs → enhanceHeaderSection-CGcDE9aE.mjs} +4 -4
- package/dist/client/{event-registration.client-DiSxkBUP.mjs → event-registration.client-DlPfn4YG.mjs} +51 -28
- package/dist/client/{eventCalendar-DUnhwZ1o.mjs → eventCalendar-CioAdryV.mjs} +4 -4
- package/dist/client/{eventCombined-BvBQo0nF.mjs → eventCombined-Dwt0G6ez.mjs} +4 -4
- package/dist/client/{eventListing-aTLifOX7.mjs → eventListing-B3H9ifOC.mjs} +4 -4
- package/dist/client/{eventRegistration-DFd7pr09.mjs → eventRegistration-Do7cAhXb.mjs} +7 -6
- package/dist/client/{form-Dikmc2AO.mjs → form-CsqzgC6v.mjs} +3 -3
- package/dist/client/{form.client-zHaQK5I9.mjs → form.client-DVDB7hY6.mjs} +4 -4
- package/dist/client/{form.parts-BLl9n8TH.mjs → form.parts-1q2rzSYt.mjs} +3 -3
- package/dist/client/gifting/client.mjs +7 -7
- package/dist/client/{gifting-CufPM38H.mjs → gifting-BrXQGX-k.mjs} +4 -4
- package/dist/client/{gifting.client--N1GaSY8.mjs → gifting.client--zAjnY5N.mjs} +6 -7
- package/dist/client/{gifting.interactive-D9MK4HkV.mjs → gifting.interactive-CrwHpUJG.mjs} +59 -9
- package/dist/client/{gifting.parts-CRtiRzo-.mjs → gifting.parts-CcKdDaQq.mjs} +7 -2
- package/dist/client/{headerSection-BIaBpmk3.mjs → headerSection-DlcDH4bi.mjs} +2 -2
- package/dist/client/{islands-DJDLGQEm.mjs → islands-dMh0Oxli.mjs} +1986 -1170
- package/dist/client/{newsletter-form.client-wg_JHTxm.mjs → newsletter-form.client-BxA1PsdS.mjs} +5 -5
- package/dist/client/{newsletter-form.interactive-hzpkW9NQ.mjs → newsletter-form.interactive-D0iRg7p2.mjs} +6 -5
- package/dist/client/{newsletter-form.parts-CgzpSv9p.mjs → newsletter-form.parts-Dmuklz0r.mjs} +2 -2
- package/dist/client/{newsletterForm-CvxLiEBT.mjs → newsletterForm-CBzvgIfg.mjs} +3 -3
- package/dist/client/portal/client.mjs +27 -15
- package/dist/client/{portalRoutes-DTHlWg_F.mjs → portalRoutes-DiGibcZI.mjs} +9 -2
- package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
- package/dist/client/{product-detail.client-22Q7zgjN.mjs → product-detail.client-D9MP8hvH.mjs} +1 -1
- package/dist/client/{product-list.client-DFWYvK8z.mjs → product-list.client-wCz1qcUY.mjs} +1 -1
- package/dist/client/{productDetail-DhZAwo60.mjs → productDetail-D9-fCY6c.mjs} +3 -3
- package/dist/client/{productList-BiVpbZK2.mjs → productList-PJyxXSac.mjs} +3 -3
- package/dist/client/{propsDecoder-DFYqKnLy.mjs → propsDecoder-B8lrKGPw.mjs} +4 -4
- package/dist/client/{registry.server-C3OBRg7x.mjs → registry.server-CI63JVHW.mjs} +689 -569
- package/dist/client/rendering/client.mjs +28 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +4 -4
- package/dist/client/{richText-coerce-ms477Z08.mjs → richText-coerce-Jt9hDHdh.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-B6nQeqvH.mjs → routeIslandApiConfig-ZSPcJWx1.mjs} +1 -1
- package/dist/client/runtimeResponse-DlPBWBd9.mjs +3 -0
- package/dist/client/{runtimeResponse-BYqsV1Kb.mjs → runtimeResponse-_iW9oEYc.mjs} +1 -1
- package/dist/client/{shop-xt4dQ3HH.mjs → shop-CbdJlWOw.mjs} +3 -3
- package/dist/client/{shop-commerce-DVsIcPaI.mjs → shop-commerce-BqLbzUUn.mjs} +44 -26
- package/dist/client/{shop-commerce-store-7mO6KY7_.mjs → shop-commerce-store-BT0-zRqN.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-L1Vge8tG.mjs → shop-discount-apply.state-Cws0lnSb.mjs} +1 -1
- package/dist/client/{shop.client-DNJfD3VQ.mjs → shop.client-0cNErhJT.mjs} +37 -18
- package/dist/client/{shopShared-DS8t6749.mjs → shopShared-COuQ2MhQ.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{timetableModel-Dy3nNfTG.mjs → timetableModel-DqI6U1BS.mjs} +6 -6
- package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CeVUVzGf.mjs} +44 -1
- package/dist/client/{useAvailableSlots-DcjtDpUu.mjs → useAvailableSlots-B0mjVhZr.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-DvdFFWOT.mjs → useDiscountCodeUi-B_hfgdAP.mjs} +6 -2
- package/dist/client/{useEventPagination-Cq-7sU5_.mjs → useEventPagination-Ct4A6iR1.mjs} +13 -15
- package/dist/client/{view-4gnPcpWJ.mjs → view-Cj151w4m.mjs} +4 -4
- package/dist/client/{wizardSteps-DDvL3iza.mjs → wizardSteps-B3gsXNnb.mjs} +212 -68
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CLqSRUpt.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-CIdAg-Tm.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-Bm85jX35.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-D8srnz9R.mjs → PageSectionToolbar-Dv4CW0AQ.mjs} +582 -195
- package/dist/preview-next/client/{PreviewEditorSidebar-DVpk5cqp.mjs → PreviewEditorSidebar-B7WW58uE.mjs} +1095 -282
- package/dist/preview-next/client/{PreviewEditorUI-XoTtHSFH.mjs → PreviewEditorUI-BnJ1ughv.mjs} +65 -16
- package/dist/preview-next/client/{PreviewShell-VQHsRg2u.mjs → PreviewShell-C7qWzAe4.mjs} +39 -12
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CLdF9f6o.mjs → SdkPreviewModeRuntime-CYi4UHtG.mjs} +128 -27
- package/dist/preview-next/client/{ThemedButton-ORNN4x-3.mjs → ThemedButton-CRgbU75r.mjs} +18 -2
- package/dist/preview-next/client/{lucide-react-eAi3tDAr.mjs → lucide-react-B4c6U3ZU.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-CqH91EwA.mjs → previewAssistantSlot-DrUoRNu9.mjs} +6239 -2558
- package/dist/preview-next/client/{previewChromeRoot-B3ySEu6p.mjs → previewChromeRoot-CEYp90mM.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CdpSupcr.mjs → sdk-runtime-DnO2_c0A.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-C6eOP6QW.mjs → siteStyleAccess-B3PwHw2z.mjs} +16 -10
- package/dist/preview-next/client/{useAutosaveStatus-BhPg4e-r.mjs → useAutosaveStatus-DrdQ4ier.mjs} +3 -3
- package/dist/preview-next/client/{useOpenBlockForSetup-BaWUF9D7.mjs → useOpenBlockForSetup-kuGRKaRL.mjs} +4 -3
- package/dist/preview-next/container-responsive.css +150 -3
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-Ch0X99vE.mjs → route-contract-CwrXkLT3.mjs} +16 -28
- package/dist/server/{Block.shared-B2FmczLO.mjs → Block.shared-C5ucphCJ.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-DtAyv9qA.mjs → ThemeScopeCore-DvbqYXdK.mjs} +34 -8
- package/dist/server/{accessibleSurfaces-BtPqb76u.mjs → accessibleSurfaces-CAcf1lHT.mjs} +317 -148
- package/dist/server/{accordions-vzdZ2Wt1.mjs → accordions-DjcsqjCK.mjs} +1 -1
- package/dist/server/{bindings-B_9JuU66.mjs → bindings-CFw4M-gZ.mjs} +68 -247
- package/dist/server/{client-DC7cjiSw.mjs → client-D0XCgITW.mjs} +26 -34
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-d6nPNJpe.mjs → constants-BZduY8jG.mjs} +9 -2
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-hb27HYic.mjs → loadContent-C-qyB8Tq.mjs} +4 -4
- package/dist/server/{loadPage-JToD8wDD.mjs → loadPage-BpKKmi8E.mjs} +3 -3
- package/dist/server/lookMediaFrame-EFws7tAj.mjs +31835 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{navigation-B2WhGofA.mjs → navigation-DYkuiNXa.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-vD5KTClL.mjs → overrideResolution-DmZn4xUE.mjs} +1 -1
- package/dist/server/page-converter.mjs +17 -4
- package/dist/server/{pageRenderPlan-CdqJ1NQZ.mjs → pageRenderPlan-DRB7cUZ0.mjs} +595 -208
- package/dist/server/{pageRuntimeSupport-CAhr4oOf.mjs → pageRuntimeSupport-Uv1xDieJ.mjs} +12 -5
- package/dist/server/{pageShared-m80Xu2pd.mjs → pageShared-BdQF875z.mjs} +596 -383
- package/dist/server/{parseThemeForPersistence-CRwOZfpa.mjs → parseThemeForPersistence-CwcWZL7u.mjs} +3 -3
- package/dist/server/{portal-B2wCQno_.mjs → portal-BQ8qiQnk.mjs} +22 -2
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-BWIkFaXq.mjs → prebuild-B51QZVNe.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-D1PHU-K9.mjs → prefetchBlockData-CppDAfJW.mjs} +3 -3
- package/dist/server/{registry-KtsOsAzY.mjs → registry-Bf4W8Qa7.mjs} +1499 -28631
- 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 +4 -4
- package/dist/server/rendering.mjs +9 -9
- package/dist/server/{resolveBlockData-sjIDJYl7.mjs → resolveBlockData-DMHAZooQ.mjs} +2 -2
- package/dist/server/{expandPalette-DxPrNOAB.mjs → resolveButtonColourStates-BMtAAPzp.mjs} +1662 -1430
- package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-DKYfR518.mjs} +1 -1
- package/dist/server/{schema-BBEqquBM.mjs → schema-DGaihVwp.mjs} +261 -6
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-ChEZDRwU.mjs → servicePageContent-CRvmreX7.mjs} +8 -7
- package/dist/server/theme-bridge.mjs +5 -4
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-DKCIBeb1.mjs → three-pass-converter-mcy2E1Yd.mjs} +1 -1
- package/dist/server/{titleSourceSchema-DybHErxH.mjs → titleSourceSchema-B2qFOUwZ.mjs} +2 -3
- package/dist/server/{types-vyz09w64.mjs → types-C_S0pWbR.mjs} +9 -2
- package/dist/server/{validation-Cvi-1TZZ.mjs → validation-CUtNT_EZ.mjs} +5 -5
- package/dist/server/{version-B-icAIV1.mjs → version-DebJQ4zn.mjs} +1 -1
- package/dist/styles/index.css +495 -50
- package/package.json +1 -1
- package/dist/client/runtimeResponse-CUX_lldL.mjs +0 -3
- package/dist/server/customCss-rtIfEYwQ.mjs +0 -230
- package/dist/server/lookMediaFrame-CTsycLLK.mjs +0 -2756
- package/dist/server/media-gvfIw3z8.mjs +0 -216
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { K as hexColorSchema, et as parseThemeColorToken } from "./types-C_S0pWbR.mjs";
|
|
2
|
+
import { H as resolveConcreteColorHex, L as pickBlackOrWhiteTextColor, _ as runtimeMediaSchema, ct as hexToRgb, dt as oklabToSrgb, ft as oklchToHexGamut, ht as srgbToOklab, mt as rgbToHex, tt as contrastRatio, ut as oklabToOklch } from "./resolveButtonColourStates-BMtAAPzp.mjs";
|
|
3
|
+
import { F as resolveTokenOrCssColorValue, M as isCssColorLiteral, N as resolveOnColorForThemeToken, r as parseSurfaceTree, t as certifyFinishedGround } from "./accessibleSurfaces-CAcf1lHT.mjs";
|
|
4
|
+
import { $r as heroMorePhotoCount, Ai as boxStylesTransforms, Ar as headerRuntimeTransforms, B as combinedLookSchema, Ba as resolveEventCalendarReadPlan, Co as eventScopeQueryKeys, Cr as contentTransforms, Dn as formatTime, Dr as readRuntimeNow, Ds as toUtcIsoDateTimeString, En as formatEventWeekdayTime, Fi as parseBackgroundOverlay, Fr as formattingTransforms, Ga as lookPresentationOnPalette, Gi as lookCarouselRegionTransform, Gn as isDropInPublicEvent, Gr as listItemPresentation, Hi as isSemanticSpacing, Ia as resolveEventCalendarRead, Ii as parseRuntimeBackgroundContent, Is as resolveExactOrFreePriceDisplay, Ja as groundPaint, Ji as lookSkinSlotTransform, Ka as resolveLookSurfacePresentation, Ki as lookLeadSlotTransform, La as resolveEventScopeRead, Li as resolveSectionSurfaceForeground, Ls as resolvePricingOptionsPriceDisplay, Ma as eventReadinessLoaderKey, Mr as layoutTransforms, Na as eventReadinessQuery, Nn as formatDateKey, On as groupEventsByDate, Os as resolveBookingBusinessTimeZone, Pa as eventReadinessQueryKeys, Pi as parseBackgroundContent, Pr as uiTransforms, Q as CardListLeadDate, Qt as formatBookingSchedulePresentation, Ra as eventCalendarListGroupingDecision, Ri as resolveSurfaceForegroundStyles, So as eventScopeLoaderParam, Tn as formatEventTimeRange, Ts as parseBookingLocalDate, Ut as ThemedButtonLink, Vo as placedEditingPaths, Vs as arrangementSlotNames, Xa as boundaryGeometryStyle, Xi as createTransformRegistry, Xt as groupEventsByWeek, Ya as pageGround, Yi as asPartialObject, Z as CardListContentPart, Zt as weekColumnDays, _o as sectionForegroundBackground, ai as resolveClassPriceItems, ar as resolveEventPageLink, bn as formatEventCompactDateRail, bt as lookPartShown, ca as ClockIcon, ci as formatEventPrice, co as siteStyleEdges, di as formatEventStartingPrice, do as deriveSectionGround, dr as getEventAvailability, dt as resolveArrangementKnobs, et as resolveCardListSchedule, fi as BACKGROUND_POSITION_PRESET_VALUES, fo as parseCanonicalRuntimeBackground, fr as getEventAvailabilityStatus, ft as systemCustomizeFacetDefinitionsForBlock, gn as eventLocalDateKey, go as sectionDecisionFromContent, gs as formatDateTimeRange, gt as EventQuickFacts, hn as eventDateOptions, ho as resolveSectionPhotoPlacement, hs as formatDateRange, ii as classPricesDataSchema, in as formatEventLocation, ir as resolveEventCta, is as orderedLiveRunSessions, it as ImagePresets, ja as blockChecksForEvents, jr as chromeLogoTransforms, js as formatBookingPriceDisplay, jt as groupOfferingRunsByCourse, ka as augmentManifest, kn as resolveEventTimeZone, kr as mediaTransforms, ln as closedRunCopy, lr as formatEventRemainingPlaces, mn as eventCalendarWeekStart, mo as resolveSectionForeground, ms as formatDate, no as sectionPhotoPath, nt as MediaNodeServer, oi as formatCoursePrice, ot as computeMediaTransformStyle, pi as getAnchorClasses, po as resolveSectionBackground, qi as lookQuoteLimitTransform, qr as listLookSlot, qt as buildEventListWeek, ri as classPricesCopySchema, ro as storedSectionPhoto, rr as resolveEventCardBooking, rs as nextLiveRunSessionStartMs, si as formatEventDepositNote, sr as isBookableEvent, t as getBlockDefinition, to as heroPhotoPaintsGround, tt as selectCardListPresentation, ui as formatEventPriceDisplay, uo as applyLookPhotoTreatment, ur as formatTotalCapacity, wn as formatEventRunDates, wo as resolveEventScope, ws as getLocalScheduleDate, xn as formatEventDateParts, xo as eventDiscoveryFilterKeys, xs as compareLocalScheduleDates, yt as resolveCalendarReadProfile, za as eventCalendarLookViews, zi as resolveBackgroundColorValue, zn as isToday } from "./registry-Bf4W8Qa7.mjs";
|
|
5
|
+
import { Dt as transitionCatalogueEntryForIntent, It as assertNever, L as sectionShapeForGround, R as sectionShapeFromContent, at as themeV2CompilerOwnedFieldNames, b as deriveSiteStyleBlockPolicy, ct as resolveGroundPaint, f as arrangementManifestFromVariants, g as resolvePublishedLook, h as resolveModeArrangement, it as stripStaleTransitionStyleGroup, lt as resolveSectionTreatment, m as resolveEffectiveArrangement, n as resolveLookMediaFrame, ot as groundFlatZone, p as readStoredMode, r as arrangementAppearancePresets, rt as sectionOwnerStyleChoices, st as mixGroundColour, ut as groundTextureDataUri, yt as boundaryRuntimeMetricsForDecorativeTransition, z as sectionShapeHook } from "./lookMediaFrame-EFws7tAj.mjs";
|
|
6
|
+
import { B as makeBoundaryId, L as asLayoutVariantKey, P as asDesignBlockId, z as asSiteStyleId } from "./schema-DGaihVwp.mjs";
|
|
7
|
+
import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
|
|
7
8
|
import { h as isRecord$2, t as isObjectRecord } from "./typeGuards-DZOaGTEv.mjs";
|
|
8
|
-
import { o as runtimeMediaSchema } from "./media-gvfIw3z8.mjs";
|
|
9
|
-
import { f as assertNever$1, n as resolveLookMediaFrame } from "./lookMediaFrame-CTsycLLK.mjs";
|
|
10
9
|
import { i as outlineRegions, n as mapOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
|
|
11
10
|
import { i as resolveRouteTargetForStage$1 } from "./dist-Xevqwf1U.mjs";
|
|
12
11
|
import React from "react";
|
|
@@ -495,6 +494,333 @@ function mapDrawingStyle(input) {
|
|
|
495
494
|
};
|
|
496
495
|
}
|
|
497
496
|
//#endregion
|
|
497
|
+
//#region ../theme-core/src/site-styles/runtimeSectionResolution.ts
|
|
498
|
+
/**
|
|
499
|
+
* The one owner of the facts `whenMissing` rules read from block content.
|
|
500
|
+
* Content facts also become `data-has-*` hooks; setting facts never do.
|
|
501
|
+
*/
|
|
502
|
+
function arrangementContentFacts(content) {
|
|
503
|
+
const photoCount = arrangementPhotoCount(content);
|
|
504
|
+
const featured = typeof content.featured === "string" ? content.featured.trim().length > 0 : content.featured !== void 0 && content.featured !== null;
|
|
505
|
+
return {
|
|
506
|
+
photoCount,
|
|
507
|
+
facts: {
|
|
508
|
+
content: {
|
|
509
|
+
photo: photoCount > 0,
|
|
510
|
+
facts: Array.isArray(content.facts) && content.facts.length > 0,
|
|
511
|
+
featured,
|
|
512
|
+
outcome: typeof content.outcome === "string" && content.outcome.length > 0,
|
|
513
|
+
figure: typeof content.figure === "string" && content.figure.trim().length > 0,
|
|
514
|
+
entrance: isRecord$2(content.entrancePhoto)
|
|
515
|
+
},
|
|
516
|
+
settings: { "listed-by-week": content.listBy === "week" }
|
|
517
|
+
}
|
|
518
|
+
};
|
|
519
|
+
}
|
|
520
|
+
/** What an automatic Look choice weighs, read by the same owner as the `whenMissing` facts. */
|
|
521
|
+
function lookFillPartsFromContent(content) {
|
|
522
|
+
return {
|
|
523
|
+
photo: arrangementPhotoCount(content) > 0,
|
|
524
|
+
statement: typeof content.title === "string" && content.title.trim().length > 0
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
/** The content stage owns media presence for every arrangement consumer. */
|
|
528
|
+
function arrangementPhotoCount(content) {
|
|
529
|
+
if (Array.isArray(content.cards)) return content.cards.filter((card) => isRecord$2(card) && isRecord$2(card.media)).length;
|
|
530
|
+
if (Array.isArray(content.members)) return content.members.filter((member) => isRecord$2(member) && isRecord$2(member.photo)).length;
|
|
531
|
+
if (Array.isArray(content.images)) return content.images.filter((item) => isRecord$2(item) && isRecord$2(item.image)).length;
|
|
532
|
+
if (isRecord$2(content.media) || isRecord$2(content.entrancePhoto)) return 1;
|
|
533
|
+
return storedSectionPhoto(content) === null ? 0 : 1;
|
|
534
|
+
}
|
|
535
|
+
/** Both rendering and join matching ask the publication-fallback owner. */
|
|
536
|
+
function resolveArrangementContentLook(runtime, mode, content, audience) {
|
|
537
|
+
const selected = runtime.byMode[mode ?? "default"];
|
|
538
|
+
if (!selected) return null;
|
|
539
|
+
const published = resolvePublishedLook({
|
|
540
|
+
look: selected.look,
|
|
541
|
+
facts: arrangementContentFacts(content).facts,
|
|
542
|
+
audience,
|
|
543
|
+
catalogue: runtime.available.map((entry) => entry.look)
|
|
544
|
+
});
|
|
545
|
+
return runtime.available.find((entry) => entry.look.id === published.id) ?? selected;
|
|
546
|
+
}
|
|
547
|
+
function resolveRuntimeSection(rawInput) {
|
|
548
|
+
const input = {
|
|
549
|
+
...rawInput,
|
|
550
|
+
choices: sectionOwnerStyleChoices(rawInput.content)
|
|
551
|
+
};
|
|
552
|
+
const automatic = automaticSectionGround(input);
|
|
553
|
+
const authored = input.placement === "column" ? { kind: "none" } : parseCanonicalRuntimeBackground(input.content);
|
|
554
|
+
const photo = arrangementHeroGround(input);
|
|
555
|
+
const ownerGround = ownerSectionGround(input, authored);
|
|
556
|
+
const background = resolveSectionBackground(ownerGroundSource(authored, namedOwnerGround(input), input, photo), null, input.runtime && input.look ? automatic?.paint ?? null : void 0, photo);
|
|
557
|
+
return sectionDecision(background, resolvedNamedGround(background, ownerGround, automatic, input.runtime), automatic, input, photo);
|
|
558
|
+
}
|
|
559
|
+
function automaticSectionGround(input) {
|
|
560
|
+
if (!input.runtime || !input.look || input.placement === "column") return void 0;
|
|
561
|
+
const span = input.rhythmSpan;
|
|
562
|
+
const index = input.runtime.progression === "deepen" ? span && span.count > 1 ? Math.round(span.position * (input.runtime.rhythm.length - 1) / (span.count - 1)) : 0 : input.position % input.runtime.rhythm.length;
|
|
563
|
+
return input.look.sectionGround ?? input.runtime.rhythm[index];
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* A stored name is authoritative, including when two grounds share the same paint. `ground: null`
|
|
567
|
+
* records a plain palette colour. Content saved before names existed (`ground` absent) keeps the
|
|
568
|
+
* identity its colour has always given it, so rendering doesn't change before the data migration.
|
|
569
|
+
*/
|
|
570
|
+
function ownerSectionGround(input, source) {
|
|
571
|
+
if (input.choices.ground !== void 0) return namedOwnerGround(input);
|
|
572
|
+
if (input.placement === "column" || source.kind === "none" || source.background.type !== "color" || !input.runtime) return void 0;
|
|
573
|
+
const colour = source.background.color;
|
|
574
|
+
return input.runtime.grounds.find((candidate) => candidate.paint.color === colour);
|
|
575
|
+
}
|
|
576
|
+
function namedOwnerGround(input) {
|
|
577
|
+
if (input.placement === "column") return void 0;
|
|
578
|
+
const choice = input.choices.ground;
|
|
579
|
+
return choice ? input.runtime?.grounds.find((ground) => ground.name === choice.name) : void 0;
|
|
580
|
+
}
|
|
581
|
+
function ownerGroundSource(source, ground, input, photo) {
|
|
582
|
+
const photoBehind = photo?.paintsGround !== false;
|
|
583
|
+
if (source.kind !== "none" && source.background.type === "image" && photoBehind) return source;
|
|
584
|
+
if (ground) return {
|
|
585
|
+
kind: "page-design-override",
|
|
586
|
+
background: namedGroundPaint(ground, authoredInks(source))
|
|
587
|
+
};
|
|
588
|
+
if (input.choices.ground && !hasPaletteFallback(source, input.palette)) return { kind: "none" };
|
|
589
|
+
return paletteColourSource(source, input.runtime);
|
|
590
|
+
}
|
|
591
|
+
/** Owner-set inks replace the ground's inks wholesale, exactly as an unnamed matching colour always has. */
|
|
592
|
+
function namedGroundPaint(ground, inks) {
|
|
593
|
+
return Object.keys(inks).length === 0 ? ground.paint : {
|
|
594
|
+
type: "color",
|
|
595
|
+
color: ground.paint.color,
|
|
596
|
+
...inks
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
/** Inks the owner set explicitly survive naming the ground, as they did before names existed. */
|
|
600
|
+
function authoredInks(source) {
|
|
601
|
+
if (source.kind === "none" || source.background.type !== "color") return {};
|
|
602
|
+
const { textColor, headingColor, linkColor, supportingColor } = source.background;
|
|
603
|
+
return {
|
|
604
|
+
...textColor ? { textColor } : {},
|
|
605
|
+
...headingColor ? { headingColor } : {},
|
|
606
|
+
...linkColor ? { linkColor } : {},
|
|
607
|
+
...supportingColor ? { supportingColor } : {}
|
|
608
|
+
};
|
|
609
|
+
}
|
|
610
|
+
function hasPaletteFallback(source, palette) {
|
|
611
|
+
return source.kind !== "none" && source.background.type === "color" && !!source.background.color && !!palette[source.background.color];
|
|
612
|
+
}
|
|
613
|
+
/** Authored palette colours retain the style's established inks; identity comes from `ownerSectionGround`. */
|
|
614
|
+
function paletteColourSource(source, runtime) {
|
|
615
|
+
if (source.kind === "none" || source.background.type !== "color") return source;
|
|
616
|
+
if ([
|
|
617
|
+
source.background.textColor,
|
|
618
|
+
source.background.headingColor,
|
|
619
|
+
source.background.linkColor,
|
|
620
|
+
source.background.supportingColor
|
|
621
|
+
].some((ink) => ink !== void 0)) return source;
|
|
622
|
+
const colour = source.background.color;
|
|
623
|
+
const paint = runtime?.grounds.find((ground) => ground.paint.color === colour)?.paint;
|
|
624
|
+
return paint ? {
|
|
625
|
+
...source,
|
|
626
|
+
background: {
|
|
627
|
+
...paint,
|
|
628
|
+
...source.background
|
|
629
|
+
}
|
|
630
|
+
} : source;
|
|
631
|
+
}
|
|
632
|
+
function arrangementHeroGround(input) {
|
|
633
|
+
return input.blockKind === "block.hero" ? { paintsGround: heroPhotoPaintsGround(input.arrangementKey) } : void 0;
|
|
634
|
+
}
|
|
635
|
+
function resolvedNamedGround(background, owner, automatic, runtime) {
|
|
636
|
+
switch (background.kind) {
|
|
637
|
+
case "base": return runtime?.grounds.find((ground) => ground.name === "base");
|
|
638
|
+
case "rhythm": return automatic;
|
|
639
|
+
case "override":
|
|
640
|
+
case "authored-colour": return background.background.type === "color" ? owner : void 0;
|
|
641
|
+
case "authored-media":
|
|
642
|
+
case "content-media":
|
|
643
|
+
case "look-surface": return;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
function sectionDecision(background, named, automatic, input, photo) {
|
|
647
|
+
const identity = named ? {
|
|
648
|
+
groundName: named.name,
|
|
649
|
+
ground: named.ground
|
|
650
|
+
} : { ground: deriveSectionGround(background, input.palette) };
|
|
651
|
+
const finished = finishedSectionPaint(background, named, input);
|
|
652
|
+
return {
|
|
653
|
+
source: sectionSource(background, named, input.look),
|
|
654
|
+
...identity,
|
|
655
|
+
paint: sectionBackgroundPaint(background),
|
|
656
|
+
paintKind: sectionPaint(background),
|
|
657
|
+
inks: finished?.kind === "certified" ? finished.foreground : resolveSectionForeground(background, input.palette),
|
|
658
|
+
foregroundBackground: finishedForegroundPaint(background, finished, input.palette),
|
|
659
|
+
certifiedBackdrop: finished?.kind === "certified" ? {
|
|
660
|
+
kind: "measured",
|
|
661
|
+
token: finished.finish.paint.base,
|
|
662
|
+
samples: finished.finish.samples
|
|
663
|
+
} : certifiedSectionBackdrop(background, input.palette),
|
|
664
|
+
background,
|
|
665
|
+
...sectionFinishFacts(background, finished),
|
|
666
|
+
shape: input.runtime ? sectionShapeForGround(input.runtime.surfaces, named?.name) : "edge-to-edge",
|
|
667
|
+
surfaceToken: sectionGroundToken(background),
|
|
668
|
+
...sectionEditorFacts(automatic, input),
|
|
669
|
+
openingPhotoBehindText: resolveSectionPhotoPlacement(background, photo) === "behind-text",
|
|
670
|
+
placement: input.placement
|
|
671
|
+
};
|
|
672
|
+
}
|
|
673
|
+
function sectionEditorFacts(automatic, input) {
|
|
674
|
+
return {
|
|
675
|
+
...input.runtime ? { styleGroundName: automatic?.name ?? "base" } : {},
|
|
676
|
+
ownerGroundFallback: input.choices.ground != null && !namedOwnerGround(input)
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
function sectionSource(background, named, look) {
|
|
680
|
+
switch (background.kind) {
|
|
681
|
+
case "base": return "base";
|
|
682
|
+
case "rhythm": return look?.sectionGround ? "offer" : "rhythm";
|
|
683
|
+
case "look-surface": return "offer";
|
|
684
|
+
case "authored-media": return "owner-photo";
|
|
685
|
+
case "authored-colour":
|
|
686
|
+
case "content-media":
|
|
687
|
+
case "override": return ownerSectionSource(background.background, named);
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
function ownerSectionSource(background, named) {
|
|
691
|
+
if (background.type === "image" || background.type === "video") return "owner-photo";
|
|
692
|
+
return named ? "owner-ground" : "owner-colour";
|
|
693
|
+
}
|
|
694
|
+
function sectionBackgroundPaint(background) {
|
|
695
|
+
switch (background.kind) {
|
|
696
|
+
case "base": return null;
|
|
697
|
+
case "content-media": return background.ground;
|
|
698
|
+
case "authored-colour":
|
|
699
|
+
case "authored-media":
|
|
700
|
+
case "look-surface":
|
|
701
|
+
case "override":
|
|
702
|
+
case "rhythm": return background.background;
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
function sectionPaint(resolved) {
|
|
706
|
+
if (resolved.kind === "base" || resolved.kind === "content-media") return "paint";
|
|
707
|
+
const background = resolved.background;
|
|
708
|
+
if (background.type === "color") return "paint";
|
|
709
|
+
return background.type === "image" && background.image != null ? "photo" : "other";
|
|
710
|
+
}
|
|
711
|
+
function sectionGroundToken(resolved) {
|
|
712
|
+
if (resolved.kind === "base") return "background";
|
|
713
|
+
switch (resolved.background.type) {
|
|
714
|
+
case "image":
|
|
715
|
+
case "video": return "media";
|
|
716
|
+
case "color": return resolved.background.color ?? "background";
|
|
717
|
+
case "gradient": return "gradient";
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
/** Content media sits beside the text, so its slots sit on the colour ground, as deriveSectionGround reads it. */
|
|
721
|
+
function certifiedSectionBackdrop(resolved, palette) {
|
|
722
|
+
if (resolved.kind === "base") return {
|
|
723
|
+
kind: "measured",
|
|
724
|
+
token: "background"
|
|
725
|
+
};
|
|
726
|
+
const background = resolved.kind === "content-media" ? resolved.ground : resolved.background;
|
|
727
|
+
switch (background.type) {
|
|
728
|
+
case "image":
|
|
729
|
+
case "video": return {
|
|
730
|
+
kind: "unmeasured",
|
|
731
|
+
paint: "media"
|
|
732
|
+
};
|
|
733
|
+
case "gradient": return {
|
|
734
|
+
kind: "unmeasured",
|
|
735
|
+
paint: "gradient"
|
|
736
|
+
};
|
|
737
|
+
case "color": {
|
|
738
|
+
const colour = background.color ?? "background";
|
|
739
|
+
return resolveConcreteColorHex(colour, palette) ? {
|
|
740
|
+
kind: "measured",
|
|
741
|
+
token: colour
|
|
742
|
+
} : {
|
|
743
|
+
kind: "unmeasured",
|
|
744
|
+
paint: "colour"
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
function finishedSectionPaint(background, named, input) {
|
|
750
|
+
if (!input.runtime?.finishes || input.placement === "column" || sectionPaint(background) !== "paint") return void 0;
|
|
751
|
+
const choices = input.choices.treatment;
|
|
752
|
+
const paint = resolveSectionTreatment({
|
|
753
|
+
base: sectionGroundToken(background),
|
|
754
|
+
...named?.groundPaint
|
|
755
|
+
}, choices, input.runtime.finishes);
|
|
756
|
+
if (!paint.texture && !paint.tone) return void 0;
|
|
757
|
+
const finish = resolveGroundPaint(paint, input.runtime.finishes, input.palette);
|
|
758
|
+
return finish ? certifyFinishedGround(finish, resolveSectionForeground(background, input.palette), input.runtime.surfaceContext) : {
|
|
759
|
+
kind: "dropped",
|
|
760
|
+
reason: "unmeasurable-finish"
|
|
761
|
+
};
|
|
762
|
+
}
|
|
763
|
+
function sectionFinishFacts(background, finished) {
|
|
764
|
+
if (finished?.kind === "certified") return {
|
|
765
|
+
topPaint: finished.finish.topPaint,
|
|
766
|
+
footPaint: finished.finish.footPaint,
|
|
767
|
+
finishedPaint: finished.finish
|
|
768
|
+
};
|
|
769
|
+
const paint = sectionBackgroundPaint(background);
|
|
770
|
+
const colour = sectionPaint(background) === "paint" ? paint?.type === "color" ? paint.color ?? "background" : "background" : null;
|
|
771
|
+
return {
|
|
772
|
+
topPaint: colour,
|
|
773
|
+
footPaint: colour,
|
|
774
|
+
...finished ? { finishDropped: finished.reason } : {}
|
|
775
|
+
};
|
|
776
|
+
}
|
|
777
|
+
/** Even an automatically inherited base becomes an explicit measurable paint when finished. */
|
|
778
|
+
function finishedForegroundPaint(background, finished, palette) {
|
|
779
|
+
return finished?.kind === "certified" ? {
|
|
780
|
+
type: "color",
|
|
781
|
+
color: finished.finish.paint.base
|
|
782
|
+
} : sectionForegroundBackground(background, palette);
|
|
783
|
+
}
|
|
784
|
+
//#endregion
|
|
785
|
+
//#region ../theme-core/src/site-styles/boundaryLayers.ts
|
|
786
|
+
/** Back paints are palette roles, never another section's inherited texture. Fade repeats its own ground. */
|
|
787
|
+
function boundaryBackPaints(intent, pin, front, previous, palette = {}) {
|
|
788
|
+
const edge = pin ?? transitionCatalogueEntryForIntent(intent).treatment;
|
|
789
|
+
return Array.from({ length: edge.layers - 1 }, (_, index) => {
|
|
790
|
+
if (edge.colourPreset === "fade") return front;
|
|
791
|
+
const blended = edge.colourPreset === "blend" ? blendedGround(front, previous, palette, (edge.layers - index - 1) / edge.layers) : null;
|
|
792
|
+
if (blended) return blended;
|
|
793
|
+
const roles = edge.colourPreset === "accent" ? [
|
|
794
|
+
"accent",
|
|
795
|
+
"primary",
|
|
796
|
+
"secondary",
|
|
797
|
+
"text"
|
|
798
|
+
] : edge.colourPreset === "main" ? [
|
|
799
|
+
"primary",
|
|
800
|
+
"secondary",
|
|
801
|
+
"accent",
|
|
802
|
+
"text"
|
|
803
|
+
] : [
|
|
804
|
+
"secondary",
|
|
805
|
+
"primary",
|
|
806
|
+
"accent",
|
|
807
|
+
"text"
|
|
808
|
+
];
|
|
809
|
+
const shows = roles.filter((role) => visibleRole(role, front, previous, palette));
|
|
810
|
+
return { colour: parseThemeColorToken(shows[index % shows.length] ?? roles[index % roles.length] ?? "primary") ?? front.colour };
|
|
811
|
+
});
|
|
812
|
+
}
|
|
813
|
+
function visibleRole(role, front, previous, palette) {
|
|
814
|
+
const colour = resolveConcreteColorHex(role, palette) ?? role;
|
|
815
|
+
return colour !== (resolveConcreteColorHex(front.colour, palette) ?? front.colour) && colour !== (previous ? resolveConcreteColorHex(previous.colour, palette) ?? previous.colour : "");
|
|
816
|
+
}
|
|
817
|
+
function blendedGround(front, previous, palette, amount) {
|
|
818
|
+
const from = previous ? resolveConcreteColorHex(previous.colour, palette) : null;
|
|
819
|
+
const to = resolveConcreteColorHex(front.colour, palette);
|
|
820
|
+
if (!from || !to || from === to) return null;
|
|
821
|
+
return { colour: hexColorSchema.parse(mixGroundColour(from, to, amount)) };
|
|
822
|
+
}
|
|
823
|
+
//#endregion
|
|
498
824
|
//#region ../theme-core/src/site-styles/sectionBoundaryComposition.ts
|
|
499
825
|
/**
|
|
500
826
|
* Classifies a section from its final render content. `_sectionStyles`
|
|
@@ -504,9 +830,12 @@ function mapDrawingStyle(input) {
|
|
|
504
830
|
* `groundPaint`, the same decision the background layer paints from, given
|
|
505
831
|
* the ground the section declares for when its content sets no colour.
|
|
506
832
|
*/
|
|
507
|
-
function boundaryEndpointForSectionContent(content, ground) {
|
|
508
|
-
const
|
|
509
|
-
const
|
|
833
|
+
function boundaryEndpointForSectionContent(content, ground, side = "top") {
|
|
834
|
+
const decision = sectionDecisionFromContent(content);
|
|
835
|
+
const finished = decidedBoundaryEndpoint(decision, side);
|
|
836
|
+
if (finished) return finished;
|
|
837
|
+
const background = decision?.background ?? parseCanonicalRuntimeBackground(content);
|
|
838
|
+
const paint = groundPaint(background.kind === "none" || background.kind === "base" ? null : background.background, ground.fallback);
|
|
510
839
|
switch (paint.kind) {
|
|
511
840
|
case "fill": {
|
|
512
841
|
const token = parseThemeColorToken(paint.colour);
|
|
@@ -530,7 +859,7 @@ function boundaryEndpointForSectionContent(content, ground) {
|
|
|
530
859
|
kind: "paint",
|
|
531
860
|
token: pageGround.fallback
|
|
532
861
|
};
|
|
533
|
-
default: return assertNever
|
|
862
|
+
default: return assertNever(paint, "Unhandled ground paint");
|
|
534
863
|
}
|
|
535
864
|
}
|
|
536
865
|
/**
|
|
@@ -542,6 +871,14 @@ function boundaryEndpointForSectionContent(content, ground) {
|
|
|
542
871
|
function sectionFactsForContent(content, ground) {
|
|
543
872
|
const photoGround = isLookPhotoGround(content);
|
|
544
873
|
return {
|
|
874
|
+
...sectionDecisionFromContent(content)?.groundName ? { groundName: sectionDecisionFromContent(content)?.groundName } : {},
|
|
875
|
+
...sectionDecisionFromContent(content)?.finishedPaint ? {
|
|
876
|
+
finished: true,
|
|
877
|
+
footEndpoint: photoGround ? {
|
|
878
|
+
kind: "unpainted",
|
|
879
|
+
reason: "media"
|
|
880
|
+
} : boundaryEndpointForSectionContent(content, ground, "foot")
|
|
881
|
+
} : {},
|
|
545
882
|
endpoint: photoGround ? {
|
|
546
883
|
kind: "unpainted",
|
|
547
884
|
reason: "media"
|
|
@@ -594,34 +931,20 @@ function composeBoundary(previous, next, treatment) {
|
|
|
594
931
|
kind: "not-shown",
|
|
595
932
|
reason: frameReason
|
|
596
933
|
};
|
|
597
|
-
const
|
|
934
|
+
const touching = touchingFoot(previous);
|
|
935
|
+
const paintReason = paintNotShownReason(touching, next, treatment);
|
|
598
936
|
if (paintReason) return {
|
|
599
937
|
kind: "not-shown",
|
|
600
938
|
reason: paintReason
|
|
601
939
|
};
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
} : {
|
|
611
|
-
kind: "paint-to-unpainted",
|
|
612
|
-
from: from.token
|
|
613
|
-
}
|
|
614
|
-
};
|
|
615
|
-
return to.kind === "paint" ? {
|
|
616
|
-
kind: "shown",
|
|
617
|
-
composition: {
|
|
618
|
-
kind: "unpainted-to-paint",
|
|
619
|
-
to: to.token
|
|
620
|
-
}
|
|
621
|
-
} : {
|
|
622
|
-
kind: "not-shown",
|
|
623
|
-
reason: "both-unpainted"
|
|
624
|
-
};
|
|
940
|
+
return composeEndpoints(touching.endpoint, next.endpoint);
|
|
941
|
+
}
|
|
942
|
+
/** The previous section as it meets the next: a finished ground's foot, not its top. */
|
|
943
|
+
function touchingFoot(previous) {
|
|
944
|
+
return previous.footEndpoint ? {
|
|
945
|
+
...previous,
|
|
946
|
+
endpoint: previous.footEndpoint
|
|
947
|
+
} : previous;
|
|
625
948
|
}
|
|
626
949
|
/**
|
|
627
950
|
* Decides the seam between two adjacent sections from the same facts that
|
|
@@ -633,164 +956,167 @@ function composeBoundary(previous, next, treatment) {
|
|
|
633
956
|
*/
|
|
634
957
|
function sectionSeam(previous, next) {
|
|
635
958
|
if (previous.facts.shape === "field" && next.facts.shape === "field") return "fields";
|
|
636
|
-
return mergesGround(previous) && mergesGround(next) &&
|
|
959
|
+
return mergesGround(previous) && mergesGround(next) && sameGroundPaint(touchingFoot(previous.facts), next.facts) ? "shared-ground" : "none";
|
|
637
960
|
}
|
|
638
961
|
/** A side can share its ground only when the platform paints it edge to edge, with no flush panel or photo. */
|
|
639
962
|
function mergesGround(side) {
|
|
640
963
|
const { facts } = side;
|
|
641
964
|
return side.section === "platform" && facts.shape !== "field" && facts.frame !== "flush-panel" && !facts.photo;
|
|
642
965
|
}
|
|
643
|
-
function samePaint(previous, next) {
|
|
644
|
-
return previous.kind === "paint" && next.kind === "paint" && previous.token === next.token;
|
|
645
|
-
}
|
|
646
966
|
/** Treatment-specific placement and indistinguishable paint are composition decisions. */
|
|
647
967
|
function paintNotShownReason(previous, next, treatment) {
|
|
648
968
|
if (treatment === "wave-edge-echo" && (!previous.photo || next.endpoint.kind !== "paint")) return "photo-required";
|
|
649
|
-
return previous
|
|
969
|
+
return sameGroundPaint(previous, next) ? "same-paint" : null;
|
|
650
970
|
}
|
|
651
971
|
/**
|
|
652
972
|
* Placement, reserves and paint for a shown boundary, derived from the
|
|
653
973
|
* composition and the catalogue's metrics for the treatment.
|
|
654
974
|
*/
|
|
655
|
-
function boundaryLayout(intent, composition) {
|
|
975
|
+
function boundaryLayout(intent, composition, options = {}) {
|
|
656
976
|
const metrics = boundaryRuntimeMetricsForDecorativeTransition(intent);
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
},
|
|
664
|
-
paint: {
|
|
665
|
-
band: composition.from,
|
|
666
|
-
shape: composition.to
|
|
667
|
-
}
|
|
668
|
-
};
|
|
669
|
-
case "unpainted-to-paint": return {
|
|
670
|
-
placement: "previous",
|
|
671
|
-
reserves: {
|
|
672
|
-
before: metrics.heightCss,
|
|
673
|
-
after: null
|
|
674
|
-
},
|
|
675
|
-
paint: {
|
|
676
|
-
band: null,
|
|
677
|
-
shape: composition.to
|
|
678
|
-
}
|
|
679
|
-
};
|
|
680
|
-
case "paint-to-unpainted": return {
|
|
681
|
-
placement: "next",
|
|
682
|
-
reserves: {
|
|
683
|
-
before: null,
|
|
684
|
-
after: metrics.heightCss
|
|
685
|
-
},
|
|
686
|
-
paint: {
|
|
687
|
-
band: null,
|
|
688
|
-
shape: composition.from
|
|
689
|
-
}
|
|
690
|
-
};
|
|
691
|
-
default: return assertNever$1(composition, "Unhandled boundary composition");
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
//#endregion
|
|
695
|
-
//#region ../theme-core/src/site-styles/runtimeSectionResolution.ts
|
|
696
|
-
/**
|
|
697
|
-
* The one owner of the facts `whenMissing` rules read from block content.
|
|
698
|
-
* Content facts also become `data-has-*` hooks; setting facts never do.
|
|
699
|
-
*/
|
|
700
|
-
function arrangementContentFacts(content) {
|
|
701
|
-
const photoCount = arrangementPhotoCount(content);
|
|
702
|
-
const featured = typeof content.featured === "string" ? content.featured.trim().length > 0 : content.featured !== void 0 && content.featured !== null;
|
|
977
|
+
const placement = composition.kind === "paint-to-paint" ? "centred" : composition.kind === "unpainted-to-paint" ? "previous" : "next";
|
|
978
|
+
const front = frontGround(composition);
|
|
979
|
+
const underlay = composition.kind === "paint-to-paint" ? {
|
|
980
|
+
colour: composition.from,
|
|
981
|
+
...composition.fromTexture ? { texture: composition.fromTexture } : {}
|
|
982
|
+
} : null;
|
|
703
983
|
return {
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
984
|
+
placement,
|
|
985
|
+
underlay,
|
|
986
|
+
geometry: boundaryGeometryStyle(intent, options.seed ?? "boundary", placement, options.tuning),
|
|
987
|
+
reserves: placement === "centred" ? {
|
|
988
|
+
before: metrics.reserveCss,
|
|
989
|
+
after: metrics.reserveCss
|
|
990
|
+
} : placement === "previous" ? {
|
|
991
|
+
before: metrics.heightCss,
|
|
992
|
+
after: null
|
|
993
|
+
} : {
|
|
994
|
+
before: null,
|
|
995
|
+
after: metrics.heightCss
|
|
996
|
+
},
|
|
997
|
+
paint: {
|
|
998
|
+
front,
|
|
999
|
+
back: boundaryBackPaints(intent, options.edge, front, underlay, options.palette)
|
|
715
1000
|
}
|
|
716
1001
|
};
|
|
717
1002
|
}
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
1003
|
+
function frontGround(composition) {
|
|
1004
|
+
return composition.kind === "paint-to-unpainted" ? {
|
|
1005
|
+
colour: composition.from,
|
|
1006
|
+
...composition.fromTexture ? { texture: composition.fromTexture } : {}
|
|
1007
|
+
} : {
|
|
1008
|
+
colour: composition.to,
|
|
1009
|
+
...composition.toTexture ? { texture: composition.toTexture } : {}
|
|
723
1010
|
};
|
|
724
1011
|
}
|
|
725
|
-
/**
|
|
726
|
-
function
|
|
727
|
-
if (
|
|
728
|
-
|
|
729
|
-
if (
|
|
730
|
-
|
|
731
|
-
|
|
1012
|
+
/** Read the single flat colour the section owner decided for this side. */
|
|
1013
|
+
function decidedBoundaryEndpoint(decision, side) {
|
|
1014
|
+
if (!decision) return null;
|
|
1015
|
+
const paint = side === "top" ? decision.topPaint : decision.footPaint;
|
|
1016
|
+
if (!paint) return null;
|
|
1017
|
+
const token = parseThemeColorToken(paint) ?? (decision.finishedPaint ? hexColorSchema.safeParse(paint).data : void 0);
|
|
1018
|
+
if (!token) return null;
|
|
1019
|
+
const texture = decision.finishedPaint?.texture;
|
|
1020
|
+
return {
|
|
1021
|
+
kind: "paint",
|
|
1022
|
+
token,
|
|
1023
|
+
...texture ? { texture } : {}
|
|
1024
|
+
};
|
|
732
1025
|
}
|
|
733
|
-
/**
|
|
734
|
-
function
|
|
735
|
-
|
|
736
|
-
if (
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
facts: arrangementContentFacts(content).facts,
|
|
740
|
-
audience,
|
|
741
|
-
catalogue: runtime.available.map((entry) => entry.look)
|
|
742
|
-
});
|
|
743
|
-
return runtime.available.find((entry) => entry.look.id === published.id) ?? selected;
|
|
1026
|
+
/** A texture change is a paint change; untouched named grounds retain their established identity rule. */
|
|
1027
|
+
function sameGroundPaint(previous, next) {
|
|
1028
|
+
if (previous.endpoint.kind !== "paint" || next.endpoint.kind !== "paint") return false;
|
|
1029
|
+
if (JSON.stringify(previous.endpoint.texture) !== JSON.stringify(next.endpoint.texture)) return false;
|
|
1030
|
+
if (!previous.finished && !next.finished && previous.groundName !== void 0 && next.groundName !== void 0) return previous.groundName === next.groundName;
|
|
1031
|
+
return previous.endpoint.token === next.endpoint.token;
|
|
744
1032
|
}
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
1033
|
+
function composeEndpoints(from, to) {
|
|
1034
|
+
if (from.kind === "unpainted" && to.kind === "unpainted") return {
|
|
1035
|
+
kind: "not-shown",
|
|
1036
|
+
reason: "both-unpainted"
|
|
1037
|
+
};
|
|
1038
|
+
if (to.kind === "unpainted") return from.kind === "paint" ? {
|
|
1039
|
+
kind: "shown",
|
|
1040
|
+
composition: {
|
|
1041
|
+
kind: "paint-to-unpainted",
|
|
1042
|
+
from: from.token,
|
|
1043
|
+
...from.texture ? { fromTexture: from.texture } : {}
|
|
1044
|
+
}
|
|
1045
|
+
} : {
|
|
1046
|
+
kind: "not-shown",
|
|
1047
|
+
reason: "both-unpainted"
|
|
1048
|
+
};
|
|
1049
|
+
const texture = to.texture ? { toTexture: to.texture } : {};
|
|
750
1050
|
return {
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
1051
|
+
kind: "shown",
|
|
1052
|
+
composition: from.kind === "paint" ? {
|
|
1053
|
+
kind: "paint-to-paint",
|
|
1054
|
+
from: from.token,
|
|
1055
|
+
to: to.token,
|
|
1056
|
+
...from.texture ? { fromTexture: from.texture } : {},
|
|
1057
|
+
...texture
|
|
1058
|
+
} : {
|
|
1059
|
+
kind: "unpainted-to-paint",
|
|
1060
|
+
to: to.token,
|
|
1061
|
+
...texture
|
|
1062
|
+
}
|
|
755
1063
|
};
|
|
756
1064
|
}
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
textColor,
|
|
767
|
-
headingColor,
|
|
768
|
-
linkColor,
|
|
769
|
-
supportingColor
|
|
770
|
-
].some((ink) => ink !== void 0)) return source;
|
|
771
|
-
const style = styleSectionBackgroundForColour(runtime, source.background.color);
|
|
772
|
-
return style ? {
|
|
773
|
-
...source,
|
|
774
|
-
background: {
|
|
775
|
-
...style,
|
|
776
|
-
...source.background
|
|
777
|
-
}
|
|
778
|
-
} : source;
|
|
1065
|
+
//#endregion
|
|
1066
|
+
//#region ../theme-core/src/site-styles/groundPaintCss.ts
|
|
1067
|
+
function groundTextureStyle(texture) {
|
|
1068
|
+
return {
|
|
1069
|
+
"--rb-ground-texture-content": "''",
|
|
1070
|
+
"--rb-ground-texture": `var(--rb-texture-${texture.kind})`,
|
|
1071
|
+
"--rb-ground-texture-opacity": String(texture.strength),
|
|
1072
|
+
"--rb-ground-texture-blend": texture.blend
|
|
1073
|
+
};
|
|
779
1074
|
}
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
1075
|
+
/** Only the section's existing background layer receives these properties. */
|
|
1076
|
+
function finishedGroundStyle(finish) {
|
|
1077
|
+
return {
|
|
1078
|
+
background: finish.background,
|
|
1079
|
+
...finish.texture ? groundTextureStyle(finish.texture) : {}
|
|
1080
|
+
};
|
|
785
1081
|
}
|
|
786
|
-
function
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
1082
|
+
function generateGroundPaintCss(selector) {
|
|
1083
|
+
return `${selector} {\n ${[
|
|
1084
|
+
"paper-grain",
|
|
1085
|
+
"handmade-paper",
|
|
1086
|
+
"plaster"
|
|
1087
|
+
].map((kind) => `--rb-texture-${kind}: ${groundTextureDataUri(kind)};`).join("\n ")}\n}
|
|
1088
|
+
${selector} [data-ground-tone] > :where([data-slot='section'], [data-slot='schedule-section'], [data-slot='shop-section']) {
|
|
1089
|
+
min-height: calc(2 * ${groundFlatZone} + 1px);
|
|
1090
|
+
}
|
|
1091
|
+
${selector} .background-style::before {
|
|
1092
|
+
content: var(--rb-ground-texture-content, none); position: absolute; inset: 0; pointer-events: none;
|
|
1093
|
+
background-image: var(--rb-ground-texture); background-position: 0 0; opacity: var(--rb-ground-texture-opacity);
|
|
1094
|
+
mix-blend-mode: var(--rb-ground-texture-blend);
|
|
1095
|
+
}
|
|
1096
|
+
${selector} [data-section-edge-paint] {
|
|
1097
|
+
position: absolute; inset-inline: 0; z-index: 4; pointer-events: none;
|
|
1098
|
+
mask-image: var(--boundary-section-mask-wide, var(--boundary-texture-mask-wide));
|
|
1099
|
+
-webkit-mask-image: var(--boundary-section-mask-wide, var(--boundary-texture-mask-wide));
|
|
1100
|
+
mask-size: var(--boundary-mask-tile-width, 100%) var(--section-edge-height); -webkit-mask-size: var(--boundary-mask-tile-width, 100%) var(--section-edge-height);
|
|
1101
|
+
mask-repeat: var(--boundary-mask-repeat, no-repeat); -webkit-mask-repeat: var(--boundary-mask-repeat, no-repeat);
|
|
1102
|
+
}
|
|
1103
|
+
${selector} [data-section-edge-paint][data-section-edge-paint='underlay'] {
|
|
1104
|
+
mask-image: linear-gradient(black, black); -webkit-mask-image: linear-gradient(black, black);
|
|
1105
|
+
}
|
|
1106
|
+
${selector} [data-section-edge-paint]::before {
|
|
1107
|
+
content: var(--rb-ground-texture-content, none); position: absolute; inset: 0; pointer-events: none;
|
|
1108
|
+
background-image: var(--rb-ground-texture); background-position: 0 var(--section-texture-y);
|
|
1109
|
+
opacity: var(--rb-ground-texture-opacity); mix-blend-mode: var(--rb-ground-texture-blend);
|
|
1110
|
+
}
|
|
1111
|
+
@supports (color: color-mix(in srgb, black, white)) {
|
|
1112
|
+
${selector} [data-section-edge-fade] {
|
|
1113
|
+
mask-image: var(--boundary-texture-mask-wide); -webkit-mask-image: var(--boundary-texture-mask-wide);
|
|
1114
|
+
}
|
|
1115
|
+
}`;
|
|
1116
|
+
}
|
|
1117
|
+
/** A tone needs space for both flat edge zones and its ramp; texture alone does not. */
|
|
1118
|
+
function groundFinishHooks(finish) {
|
|
1119
|
+
return finish?.paint.tone ? { "data-ground-tone": "true" } : {};
|
|
794
1120
|
}
|
|
795
1121
|
//#endregion
|
|
796
1122
|
//#region ../blocks/src/system/data/selectBlockContent.ts
|
|
@@ -1756,7 +2082,7 @@ function eventCardListContent(event, context, buttonText) {
|
|
|
1756
2082
|
...offeringSchedule(event, context.now),
|
|
1757
2083
|
...event.bookingScope === "whole_series" ? offeringRunDates(event, context.now) : {}
|
|
1758
2084
|
};
|
|
1759
|
-
default: return assertNever(context);
|
|
2085
|
+
default: return assertNever$1(context);
|
|
1760
2086
|
}
|
|
1761
2087
|
}
|
|
1762
2088
|
function cardProjectionBase(event, buttonText, context) {
|
|
@@ -1787,7 +2113,7 @@ function cardBooking(event, buttonText, context) {
|
|
|
1787
2113
|
now: context.now,
|
|
1788
2114
|
count: context.count
|
|
1789
2115
|
});
|
|
1790
|
-
default: return assertNever(context);
|
|
2116
|
+
default: return assertNever$1(context);
|
|
1791
2117
|
}
|
|
1792
2118
|
}
|
|
1793
2119
|
function offeringLeadDate(event, startMs) {
|
|
@@ -2590,7 +2916,7 @@ function bookedElsewhereAction(booking) {
|
|
|
2590
2916
|
bookingClosed: label
|
|
2591
2917
|
};
|
|
2592
2918
|
}
|
|
2593
|
-
default: return assertNever(booking);
|
|
2919
|
+
default: return assertNever$1(booking);
|
|
2594
2920
|
}
|
|
2595
2921
|
}
|
|
2596
2922
|
/**
|
|
@@ -2623,7 +2949,7 @@ function bookedElsewhereClosedLabel(closure) {
|
|
|
2623
2949
|
case "run": return closedRunCopy(closure.reason).titleText;
|
|
2624
2950
|
case "datesCutOff":
|
|
2625
2951
|
case "unavailable": return "Registration closed";
|
|
2626
|
-
default: return assertNever(closure);
|
|
2952
|
+
default: return assertNever$1(closure);
|
|
2627
2953
|
}
|
|
2628
2954
|
}
|
|
2629
2955
|
/** A closed run says why here, at the top of the page, so the panel below doesn't repeat it. */
|
|
@@ -2956,7 +3282,8 @@ const backgroundTransforms = [
|
|
|
2956
3282
|
summary: "Resolve inline styles for background color/gradient layers",
|
|
2957
3283
|
run: (value, options, context) => {
|
|
2958
3284
|
const fallbackToken = options?.fallbackToken;
|
|
2959
|
-
|
|
3285
|
+
const finish = asPartialObject(options)?.sectionGround ? sectionDecisionFromContent(context.data)?.finishedPaint : void 0;
|
|
3286
|
+
return finish ? finishedGroundStyle(finish) : resolveBackgroundLayerStyle(value, fallbackToken, context);
|
|
2960
3287
|
}
|
|
2961
3288
|
},
|
|
2962
3289
|
{
|
|
@@ -3292,7 +3619,7 @@ function formatAppointmentLocation(location) {
|
|
|
3292
3619
|
const venue = formatVenue(location.venue);
|
|
3293
3620
|
return venue ? `${venue} or online` : "In person or online";
|
|
3294
3621
|
}
|
|
3295
|
-
default: return assertNever(location);
|
|
3622
|
+
default: return assertNever$1(location);
|
|
3296
3623
|
}
|
|
3297
3624
|
}
|
|
3298
3625
|
function formatVenue(venue) {
|
|
@@ -3338,7 +3665,7 @@ function appointmentPricingDisplay(pricing) {
|
|
|
3338
3665
|
maxAmount: pricing.slidingMaxAmount,
|
|
3339
3666
|
currency: pricing.currency
|
|
3340
3667
|
};
|
|
3341
|
-
default: return assertNever(pricing.pricingStrategy);
|
|
3668
|
+
default: return assertNever$1(pricing.pricingStrategy);
|
|
3342
3669
|
}
|
|
3343
3670
|
}
|
|
3344
3671
|
//#endregion
|
|
@@ -3394,7 +3721,7 @@ function serviceDetailsFacts(service) {
|
|
|
3394
3721
|
value: location
|
|
3395
3722
|
}] : [],
|
|
3396
3723
|
{
|
|
3397
|
-
label: "
|
|
3724
|
+
label: "Cancellation policy",
|
|
3398
3725
|
value: describePublicRefundPolicy(service.cancellationPolicy.refunds)
|
|
3399
3726
|
},
|
|
3400
3727
|
...practitioners.length ? [{
|
|
@@ -3736,7 +4063,7 @@ function resolveLinkedContentEditSupport(contentType) {
|
|
|
3736
4063
|
kind: "unsupported-domain-backed",
|
|
3737
4064
|
reason: metadata.reason
|
|
3738
4065
|
};
|
|
3739
|
-
default: return assertNever(metadata);
|
|
4066
|
+
default: return assertNever$1(metadata);
|
|
3740
4067
|
}
|
|
3741
4068
|
}
|
|
3742
4069
|
function contentTypeKeyToLabel(key) {
|
|
@@ -3971,7 +4298,7 @@ function sourceLabel(source) {
|
|
|
3971
4298
|
case "managed-database": return "DB";
|
|
3972
4299
|
case "sdk-synced": return "SDK-synced DB";
|
|
3973
4300
|
case "sdk-config": return "SDK config";
|
|
3974
|
-
default: return assertNever(source);
|
|
4301
|
+
default: return assertNever$1(source);
|
|
3975
4302
|
}
|
|
3976
4303
|
}
|
|
3977
4304
|
//#endregion
|
|
@@ -4018,9 +4345,9 @@ function joinAcrossRun(byPair, previousBlockId, nextBlockId, run) {
|
|
|
4018
4345
|
const exiting = lastOmittedId ? byPair.get(pairKey(lastOmittedId, nextBlockId)) : void 0;
|
|
4019
4346
|
const donor = entering ?? exiting;
|
|
4020
4347
|
return donor ? {
|
|
4348
|
+
...donor,
|
|
4021
4349
|
previousBlockId,
|
|
4022
|
-
nextBlockId
|
|
4023
|
-
treatment: donor.treatment
|
|
4350
|
+
nextBlockId
|
|
4024
4351
|
} : void 0;
|
|
4025
4352
|
}
|
|
4026
4353
|
/**
|
|
@@ -4044,24 +4371,39 @@ function composePageJoins(input) {
|
|
|
4044
4371
|
return [{
|
|
4045
4372
|
previousBlockId: previous.id,
|
|
4046
4373
|
nextBlockId: next.id,
|
|
4047
|
-
join: join ? composeJoin(join, before.facts, after.facts) : null,
|
|
4374
|
+
join: join ? composeJoin(join, before.facts, after.facts, input.context) : null,
|
|
4048
4375
|
seam: sectionSeam(before, after)
|
|
4049
4376
|
}];
|
|
4050
4377
|
});
|
|
4051
4378
|
}
|
|
4052
|
-
function composeJoin(join, previous, next) {
|
|
4053
|
-
|
|
4054
|
-
|
|
4379
|
+
function composeJoin(join, previous, next, context) {
|
|
4380
|
+
const boundaryId = pairKey(join.previousBlockId, join.nextBlockId);
|
|
4381
|
+
const outcome = composeBoundary(previous, next, join.treatment);
|
|
4382
|
+
const family = transitionCatalogueEntryForIntent(join.treatment).family;
|
|
4383
|
+
const tuning = context?.siteStyleId ? siteStyleEdges(asSiteStyleId(context.siteStyleId)).supported.find((support) => support.family === family)?.tuning : void 0;
|
|
4384
|
+
const identity = {
|
|
4385
|
+
boundaryId,
|
|
4055
4386
|
previousBlockId: join.previousBlockId,
|
|
4056
4387
|
nextBlockId: join.nextBlockId,
|
|
4057
|
-
treatment: join.treatment
|
|
4058
|
-
|
|
4388
|
+
treatment: join.treatment
|
|
4389
|
+
};
|
|
4390
|
+
return outcome.kind === "shown" ? {
|
|
4391
|
+
...identity,
|
|
4392
|
+
outcome,
|
|
4393
|
+
layout: boundaryLayout(join.treatment, outcome.composition, {
|
|
4394
|
+
edge: join.edge,
|
|
4395
|
+
palette: context?.palette,
|
|
4396
|
+
tuning,
|
|
4397
|
+
seed: boundaryId
|
|
4398
|
+
})
|
|
4399
|
+
} : {
|
|
4400
|
+
...identity,
|
|
4401
|
+
outcome
|
|
4059
4402
|
};
|
|
4060
4403
|
}
|
|
4061
4404
|
/** Placement, reserves and paint for a join that draws; null otherwise. */
|
|
4062
4405
|
function renderedJoinLayout(join) {
|
|
4063
|
-
|
|
4064
|
-
return boundaryLayout(join.treatment, join.outcome.composition);
|
|
4406
|
+
return join?.layout ?? null;
|
|
4065
4407
|
}
|
|
4066
4408
|
/** Joins with a missing id on either side cannot sit between two blocks. */
|
|
4067
4409
|
function joinsByPair(joins) {
|
|
@@ -4117,14 +4459,14 @@ function planPageRender(input, previous = null) {
|
|
|
4117
4459
|
return [entry, {
|
|
4118
4460
|
position,
|
|
4119
4461
|
placement,
|
|
4120
|
-
entry: cached?.position === position && cached.placement === placement ? cached.entry : applyArrangementRhythm(entry, position, placement)
|
|
4462
|
+
entry: cached?.position === position && cached.placement === placement ? cached.entry : applyArrangementRhythm(entry, position, placement, input.palette)
|
|
4121
4463
|
}];
|
|
4122
4464
|
});
|
|
4123
4465
|
return {
|
|
4124
4466
|
region,
|
|
4125
4467
|
planned,
|
|
4126
4468
|
rhythmic,
|
|
4127
|
-
entries: rhythmic
|
|
4469
|
+
entries: deepenArrangementRhythm(rhythmic, placement, input.palette).filter(shown)
|
|
4128
4470
|
};
|
|
4129
4471
|
});
|
|
4130
4472
|
const regions = {
|
|
@@ -4151,7 +4493,7 @@ function planPageRender(input, previous = null) {
|
|
|
4151
4493
|
};
|
|
4152
4494
|
}
|
|
4153
4495
|
function samePlanSettings(previous, current) {
|
|
4154
|
-
return previous.siteStyleId === current.siteStyleId && previous.audience === current.audience && previous.previewStage === current.previewStage && previous.sdkConfig === current.sdkConfig && previous.customBlocks === current.customBlocks && previous.blockOverrides === current.blockOverrides;
|
|
4496
|
+
return previous.siteStyleId === current.siteStyleId && previous.palette === current.palette && previous.audience === current.audience && previous.previewStage === current.previewStage && previous.sdkConfig === current.sdkConfig && previous.customBlocks === current.customBlocks && previous.blockOverrides === current.blockOverrides;
|
|
4155
4497
|
}
|
|
4156
4498
|
/**
|
|
4157
4499
|
* Mirrors the order of the checks `MemoBlockSection` used to make inline, so no
|
|
@@ -4303,11 +4645,8 @@ function restoreCompiledLook(look) {
|
|
|
4303
4645
|
};
|
|
4304
4646
|
}
|
|
4305
4647
|
function restoreArrangementRuntime(runtime) {
|
|
4306
|
-
const transported = runtime;
|
|
4307
|
-
const fieldGrounds = Array.isArray(transported.fieldGrounds) ? transported.fieldGrounds.filter((token) => typeof token === "string") : [];
|
|
4308
4648
|
return {
|
|
4309
4649
|
...runtime,
|
|
4310
|
-
fieldGrounds,
|
|
4311
4650
|
available: runtime.available.map(restoreCompiledLook),
|
|
4312
4651
|
byMode: Object.fromEntries(Object.entries(runtime.byMode).map(([mode, look]) => [mode, restoreCompiledLook(look)]))
|
|
4313
4652
|
};
|
|
@@ -4318,7 +4657,27 @@ function effectiveLookFromContent(content) {
|
|
|
4318
4657
|
return isObjectRecord(value) && isObjectRecord(value.look) ? restoreCompiledLook(value) : null;
|
|
4319
4658
|
}
|
|
4320
4659
|
function planArrangementContent(blockKind, manifest, authored, audience) {
|
|
4321
|
-
|
|
4660
|
+
const content = withoutSectionDecision(planArrangementBlockContent(blockKind, manifest, authored, audience).renderableContent);
|
|
4661
|
+
const runtime = arrangementRuntime(content);
|
|
4662
|
+
const look = effectiveLookFromContent(content);
|
|
4663
|
+
if (!runtime || !look) return content;
|
|
4664
|
+
const section = resolveRuntimeSection({
|
|
4665
|
+
content,
|
|
4666
|
+
runtime,
|
|
4667
|
+
look,
|
|
4668
|
+
blockKind,
|
|
4669
|
+
arrangementKey: look.look.structure.byMode[readStoredMode({
|
|
4670
|
+
...arrangementManifestFromVariants(manifest),
|
|
4671
|
+
variantMeaning: manifest.variantMeaning
|
|
4672
|
+
}, content) ?? "default"],
|
|
4673
|
+
position: 0,
|
|
4674
|
+
placement: "page-wide",
|
|
4675
|
+
palette: runtime.surfaceContext.palette
|
|
4676
|
+
});
|
|
4677
|
+
return {
|
|
4678
|
+
...content,
|
|
4679
|
+
_sectionDecision: section
|
|
4680
|
+
};
|
|
4322
4681
|
}
|
|
4323
4682
|
function planArrangementBlockContent(blockKind, manifest, authored, audience) {
|
|
4324
4683
|
const runtime = arrangementRuntime(authored);
|
|
@@ -4486,47 +4845,73 @@ function arrangementContentHooks(effective, mode, length, facts, values, photoCo
|
|
|
4486
4845
|
...Object.fromEntries(Object.entries(values).map(([key, value]) => [`data-knob-${key === "titleSize" ? "headline" : key.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`)}`, value]))
|
|
4487
4846
|
};
|
|
4488
4847
|
}
|
|
4489
|
-
|
|
4848
|
+
/** Read participation from the section owner; the planner supplies composition, never grounds. */
|
|
4849
|
+
function deepenArrangementRhythm(rhythmic, placement, palette) {
|
|
4850
|
+
const driven = rhythmic.filter(([, value]) => value.entry.sectionDecision?.source === "rhythm").map(([entry]) => entry);
|
|
4851
|
+
return rhythmic.map(([original, value]) => {
|
|
4852
|
+
if (arrangementRuntime(original.renderableContent)?.progression !== "deepen") return value.entry;
|
|
4853
|
+
const position = driven.indexOf(original);
|
|
4854
|
+
return position < 0 ? value.entry : applyArrangementRhythm(original, value.position, placement, palette, {
|
|
4855
|
+
position,
|
|
4856
|
+
count: driven.length
|
|
4857
|
+
});
|
|
4858
|
+
});
|
|
4859
|
+
}
|
|
4860
|
+
function applyArrangementRhythm(entry, position, placement, palette = {}, rhythmSpan) {
|
|
4490
4861
|
const runtime = arrangementRuntime(entry.renderableContent);
|
|
4491
4862
|
const look = effectiveLookFromContent(entry.renderableContent);
|
|
4492
|
-
|
|
4493
|
-
const content = entry.renderableContent;
|
|
4863
|
+
const content = withoutSectionDecision(entry.renderableContent);
|
|
4494
4864
|
const section = resolveRuntimeSection({
|
|
4495
4865
|
content,
|
|
4496
4866
|
runtime,
|
|
4497
4867
|
look,
|
|
4498
4868
|
position,
|
|
4499
4869
|
placement,
|
|
4870
|
+
rhythmSpan,
|
|
4500
4871
|
blockKind: entry.block.kind,
|
|
4501
4872
|
arrangementKey: entry.kind === "renderable" ? entry.effectiveArrangementKey ?? void 0 : void 0,
|
|
4502
|
-
palette: runtime
|
|
4873
|
+
palette: runtime?.surfaceContext.palette ?? palette
|
|
4503
4874
|
});
|
|
4504
4875
|
const resolved = section.background;
|
|
4505
4876
|
const updated = applyResolvedArrangementBackground(content, resolved);
|
|
4506
|
-
|
|
4877
|
+
if (!runtime || !look) return {
|
|
4878
|
+
...entry,
|
|
4879
|
+
renderableContent: content,
|
|
4880
|
+
sectionDecision: {
|
|
4881
|
+
...section,
|
|
4882
|
+
lookId: null
|
|
4883
|
+
}
|
|
4884
|
+
};
|
|
4885
|
+
const surface = section.surfaceToken;
|
|
4507
4886
|
const grounded = resolveArrangementSurfaces(entry, look, runtime, section, updated);
|
|
4508
|
-
const shape = sectionShapeHook(
|
|
4887
|
+
const shape = sectionShapeHook(section.shape);
|
|
4509
4888
|
const combined = resolveCombinedLook(entry, grounded, runtime, section, updated);
|
|
4510
4889
|
return {
|
|
4511
4890
|
...entry,
|
|
4512
4891
|
sectionDecision: {
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
paint: section.paint
|
|
4892
|
+
...section,
|
|
4893
|
+
lookId: look.look.id
|
|
4516
4894
|
},
|
|
4517
|
-
styleBackground: section.styleBackground,
|
|
4518
4895
|
renderableContent: {
|
|
4519
4896
|
...updated,
|
|
4897
|
+
_sectionDecision: section,
|
|
4520
4898
|
...combined ? { _combinedLook: combined } : {},
|
|
4521
4899
|
_effectiveLook: grounded,
|
|
4522
4900
|
_lookHooks: {
|
|
4523
4901
|
...isObjectRecord(updated._lookHooks) ? updated._lookHooks : {},
|
|
4524
4902
|
"data-surface": surface,
|
|
4525
|
-
...shape
|
|
4903
|
+
...shape,
|
|
4904
|
+
...groundFinishHooks(section.finishedPaint)
|
|
4526
4905
|
}
|
|
4527
4906
|
}
|
|
4528
4907
|
};
|
|
4529
4908
|
}
|
|
4909
|
+
/** Only the planner mints `_sectionDecision`; one arriving with content (an import, an SDK payload, an earlier plan) is dropped. */
|
|
4910
|
+
function withoutSectionDecision(content) {
|
|
4911
|
+
if (!("_sectionDecision" in content)) return content;
|
|
4912
|
+
const { _sectionDecision: _stale, ...rest } = content;
|
|
4913
|
+
return rest;
|
|
4914
|
+
}
|
|
4530
4915
|
function applyResolvedArrangementBackground(content, resolved) {
|
|
4531
4916
|
const section = isObjectRecord(content._sectionStyles) ? content._sectionStyles : {};
|
|
4532
4917
|
const photo = isObjectRecord(section.background) ? section.background.image : void 0;
|
|
@@ -4586,11 +4971,13 @@ function resolveArrangementSurfaces(entry, look, runtime, section, content) {
|
|
|
4586
4971
|
surfaces: runtime.surfaces,
|
|
4587
4972
|
context: runtime.surfaceContext
|
|
4588
4973
|
};
|
|
4974
|
+
const parents = plannedSlotParents(entry, look);
|
|
4975
|
+
const base = section.certifiedBackdrop;
|
|
4589
4976
|
const surfacePresentation = resolveLookSurfacePresentation({
|
|
4590
4977
|
look,
|
|
4591
|
-
parents
|
|
4978
|
+
parents,
|
|
4592
4979
|
ground,
|
|
4593
|
-
base
|
|
4980
|
+
base,
|
|
4594
4981
|
style,
|
|
4595
4982
|
content
|
|
4596
4983
|
});
|
|
@@ -4613,7 +5000,7 @@ function resolveCombinedLook(entry, list, runtime, section, content) {
|
|
|
4613
5000
|
look: month,
|
|
4614
5001
|
parents: arrangementSlotParentsForManifest(entry.kind === "renderable" ? entry.definition.manifest : void 0, month.look.target, arrangement),
|
|
4615
5002
|
ground,
|
|
4616
|
-
base:
|
|
5003
|
+
base: section.certifiedBackdrop,
|
|
4617
5004
|
content,
|
|
4618
5005
|
style: {
|
|
4619
5006
|
roleMap: month.roleMap,
|
|
@@ -4656,4 +5043,4 @@ function plannedSlotParents(entry, look) {
|
|
|
4656
5043
|
return arrangementSlotParentsForManifest(entry.definition.manifest, look.look.target, arrangement, look.look.structure.eventRows);
|
|
4657
5044
|
}
|
|
4658
5045
|
//#endregion
|
|
4659
|
-
export { parseStoredVariant as $, eventCardListContent as A, eventCategoryBadge as B, resolvePageRouteTarget as C, MonthLookView as D, EVENT_REGISTRATION_ANCHOR_ID as E, createPresentationPageReader as F, formatCourseDatesAfter as G, MapPinIcon as H, EmptyState as I, resolveMonthSelectedDay as J, formatCourseSessions as K, CardListCollection as L, deriveEventScheduleSummary as M, derivePreviewRunSchedule as N, EventListingFrameView as O, createEditorPresentationPageReader as P, formatEventDuration as Q, CardListItems as R, resolveEntryRouteTarget as S, EventHeader as T, eventDisplayTitle as U, CalendarIcon as V, eventDisplayTitleText as W, selectQuickDateEvents as X, formatEventQuickDate as Y, formatEventTeacherLine as Z, publicAppointmentLocationSchema as _, joinSlotKey as a,
|
|
5046
|
+
export { parseStoredVariant as $, eventCardListContent as A, eventCategoryBadge as B, resolvePageRouteTarget as C, MonthLookView as D, EVENT_REGISTRATION_ANCHOR_ID as E, createPresentationPageReader as F, formatCourseDatesAfter as G, MapPinIcon as H, EmptyState as I, resolveMonthSelectedDay as J, formatCourseSessions as K, CardListCollection as L, deriveEventScheduleSummary as M, derivePreviewRunSchedule as N, EventListingFrameView as O, createEditorPresentationPageReader as P, formatEventDuration as Q, CardListItems as R, resolveEntryRouteTarget as S, EventHeader as T, eventDisplayTitle as U, CalendarIcon as V, eventDisplayTitleText as W, selectQuickDateEvents as X, formatEventQuickDate as Y, formatEventTeacherLine as Z, publicAppointmentLocationSchema as _, joinSlotKey as a, buildThemeTokens as at, describePublicRefundPolicy as b, createCustomBlockRegistry as c, resolveLinkedEntryInlineFieldEligibility as d, selectBlockContent as et, builtinTransformDefinitions as f, formatAppointmentPrice as g, formatAppointmentLocation as h, composePageJoins as i, lookFillPartsFromContent as it, offeringDatesBySeries as j, OfferingCourseCards as k, buildLinkedContentEditTarget as l, formatAppointmentDuration as m, createPageRenderPlanReader as n, groundTextureStyle as nt, renderedJoinLayout as o, defaultThemeTokens as ot, defaultTransforms as p, buildMonthDay as q, planArrangementContent as r, arrangementContentFacts as rt, retargetJoinsAcrossOmissions as s, buildPageRenderPlan as t, generateGroundPaintCss as tt, coerceLinkedContentEntriesPayload as u, publicAppointmentPricingSchema as v, resolveRouteTarget as w, resolveAuthoredLinkHref as x, PUBLIC_FREE_CANCELLATION as y, EventItem as z };
|