@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,19 +1,18 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { $ as
|
|
5
|
-
import { A as
|
|
6
|
-
import {
|
|
1
|
+
import { $ as parseColorTokenParts, A as surfaceInkDeclarations, C as SURFACE_INK_CSS_VARS, E as surfaceForegroundInputFromResolved, F as cssVarValue, H as staysInsideDeclaration, I as mergeStyles, L as rgbColorValue, N as backgroundColorStyle, O as surfaceForegroundValue, R as textColorStyle, T as surfaceForegroundDeclarations, V as callsCssLoadingFunction, W as absoluteInkColors, a as createStandardButtonSurfacePolicy, et as parseThemeColorToken, i as buttonSizeNameSchema, j as surfaceInkStyle, s as unsafeAsOpaqueButtonColourToken, t as DEFAULT_VARIANT_ALIAS_ID, z as textColorValue } from "./types-C_S0pWbR.mjs";
|
|
2
|
+
import { H as resolveConcreteColorHex, N as expandPalette, R as compositeHex, U as resolveOpaqueSurfaceHex, _ as runtimeMediaSchema, a as formatButtonColourContractError, b as renderableMediaAssetSchema, c as DEFAULT_BUTTON_SIZES, ct as hexToRgb, d as generateShadowValue$1, i as BUTTON_CONTRAST_POLICY, n as compileButtonColourStates, r as resolveSolidButtonColour, s as BORDER_WIDTH_MAP, tt as contrastRatio, u as FONT_SIZE_MAP } from "./resolveButtonColourStates-BMtAAPzp.mjs";
|
|
3
|
+
import { A as mapButtonVisualAppearances, B as surfaceInkPublication, C as buttonPartsCss, E as affordanceIconMaskUrl, G as certifyPaint, I as freezeOwnedThemeValue, K as contrastThresholdByPolicy, L as ownedThemeSnapshot, R as resolveSurfaceForeground, T as partOwnedPseudoElements, W as HOVER_TEXT_THRESHOLD, _ as buttonStateShadow, b as paddingDeclarations, c as serializeSurfaceTree, g as buttonStateAppearanceDeclarations, h as buttonRadius, j as actionVariableFallback, m as buttonBorder, r as parseSurfaceTree, s as resolveSurface, v as buttonTypographyDeclarations, w as buttonShadowLayersValue, y as materializeRuntimeButtonAppearance } from "./accessibleSurfaces-CAcf1lHT.mjs";
|
|
4
|
+
import { $ as parseStoredVariant, A as eventCardListContent, B as eventCategoryBadge, C as resolvePageRouteTarget, D as MonthLookView, E as EVENT_REGISTRATION_ANCHOR_ID, F as createPresentationPageReader, G as formatCourseDatesAfter, H as MapPinIcon, I as EmptyState, J as resolveMonthSelectedDay, K as formatCourseSessions, L as CardListCollection, M as deriveEventScheduleSummary, N as derivePreviewRunSchedule, O as EventListingFrameView, P as createEditorPresentationPageReader, Q as formatEventDuration, R as CardListItems, S as resolveEntryRouteTarget, T as EventHeader, U as eventDisplayTitle, V as CalendarIcon, W as eventDisplayTitleText, X as selectQuickDateEvents, Y as formatEventQuickDate, Z as formatEventTeacherLine, _ as publicAppointmentLocationSchema, a as joinSlotKey, at as buildThemeTokens, d as resolveLinkedEntryInlineFieldEligibility, g as formatAppointmentPrice, h as formatAppointmentLocation, i as composePageJoins, j as offeringDatesBySeries, k as OfferingCourseCards, l as buildLinkedContentEditTarget, m as formatAppointmentDuration, n as createPageRenderPlanReader, nt as groundTextureStyle, o as renderedJoinLayout, ot as defaultThemeTokens, p as defaultTransforms, q as buildMonthDay, s as retargetJoinsAcrossOmissions, tt as generateGroundPaintCss, v as publicAppointmentPricingSchema, w as resolveRouteTarget, z as EventItem } from "./pageRenderPlan-DRB7cUZ0.mjs";
|
|
5
|
+
import { $ as cardListPresentationSchemaShape, $a as effectiveHeaderNavLinkStyle, $i as when, $n as resolveSelectionBookingClosedDetail, $o as mapReadinessFact, $t as bookingPresentation, A as membershipCardListContent, Aa as chosenString, An as getLocalDateKey, Ao as beforeBookingQuestionsPresentationSchema, At as buildOfferingsPreviewListing, Bi as ctaButton, Bn as bookingPageKindSchema, Br as createInteractiveIslandCodec, Bt as resolveEventRegistrationScopedEvents, C as shopBlockDefinition, Ca as parseInlineTextFromUnknown, Ci as testimonialsCarouselFragment, Cn as formatEventNextDateFact, Cs as getBookingLocalDateKey, Ct as resolveEventRegistrationEventSource, D as buildProductListInteractiveIslandProps, Da as parseFieldDefinitions, Di as ctaRowFragment, Dn as formatTime, Do as blockBookingPaymentTermsSchema, Dr as readRuntimeNow, Ds as toUtcIsoDateTimeString, E as buildProductDetailInteractiveIslandProps, Ei as heroCtaRowFragment, Eo as publicEventsArraySchema, Er as teamMemberCardBiography, Es as parseLocalScheduleTime, F as buildOfferingsCatalogueListing, Fa as eventReadinessResultSchema, Fn as getOrderedDayNames, Fo as hiddenFromVisitors, Fs as publicEventPricingType, Ft as readOfferingsGrouping, G as buildEventCollectionListingDisplay, Gn as isDropInPublicEvent, Gr as listItemPresentation, Gt as getIconComponent, H as buildEventListingInteractiveIslandProps, Ha as themeButtonSelector, Hn as hasCancelledRegistrationDate, Hr as createZodCodec, Ht as ThemedButton, I as offeringsCatalogueShape, In as getWeekCalendarDayTuple, Io as loadedReadinessFact, Is as resolveExactOrFreePriceDisplay, It as resolveOfferingsPreviewGroupCta, J as eventCollectionSourceSchemaShape, Jn as planOrdinarySeriesSelection, Jr as lookListPresentationSchemaShape, Jt as eventListWeekDays, K as eventCollectionDisplaySchemaShape, Kn as isOrdinaryPublicEvent, Kr as listLookControl, Kt as SpinnerNode, L as eventCalendarBlockDefinition, Ln as getWeekCalendarDays, Lo as pageTemplateFromEntry, Lr as formBlockDefinition, Lt as resolveOfferingsPreviewGroups, M as passCardListContent, Ma as eventReadinessLoaderKey, Mi as normalizeBoxStylesBorder, Mn as addDays, Ms as isPublicEventPricingOptionDisplayable, Mt as normalizeOfferingsPreviewItemLimit, N as offeringsPreviewBlockDefinition, Ni as resolveCardRoleForBoxStyles, Nn as formatDateKey, Nr as staticHeaderChromeRuntime, Ns as publicEventPricingCurrency, Nt as offeringRunLifecycle, O as buildShopInteractiveIslandProps, Oa as PUBLIC_DOWNLOAD_MEDIA_TYPES, Oi as isBlockButtonRole, On as groupEventsByDate, Oo as blockBookingConsentSchema, Or as resolveDateRuntimeContext, Os as resolveBookingBusinessTimeZone, P as publicRouteCandidatesSchema, Pn as getDayOfWeek, Po as admitReadinessFacts, Ps as publicEventPricingDisplay, Pt as offeringsListingFor, Qa as authoredHeaderLinkForeground, Qi as el, Qr as clsx, R as buildEventCalendarInteractiveIslandProps, Rn as isSameCalendarDay, Ro as unavailableReadinessFact, Rr as buildFormInteractiveIslandProps, Rs as formatCurrencyAmount, Rt as resolveOfferingsRenderInput, S as productListBlockDefinition, Sa as isInlineTextEmpty, Si as formCopyFragment, Sn as formatEventHourLabel, Sr as splitPositioningClasses, Ss as formatLocalScheduleDate, St as buildEventRegistrationInteractiveIslandProps, T as buildCheckoutInteractiveIslandProps, Ti as ctaCopyFragment, Tn as formatEventTimeRange, Tr as teamMemberBiography, Ts as parseBookingLocalDate, Tt as previewStageSchema, U as buildEventCollectionDisplay, Ua as AFFORDANCE_SUPPRESS_CLASS, Ui as bodyCopyFragment, Un as eventOccurrenceContext, Ur as defineClientOwnedBlockRuntime, Ut as ThemedButtonLink, V as eventListingBlockDefinition, Va as parseThemeButtonVariantId, Vi as layoutSectionGround, Vn as cancelledDateCopy, Vr as defineInteractiveIslandMetaKeys, Vt as ThemedAuthoredButton, W as buildEventCollectionHydration, Wa as resolveHeaderRootForeground, Wi as defineFragment, Wn as getPublicEventCanonicalPath, Wr as defineProgressiveBlockRuntime, Wt as ThemedDownloadLink, X as listingEventCardProps, Xn as planWholeSeriesParentSelection, Xr as itemRole, Y as catalogueEventCardProps, Ya as pageGround, Yn as planWholeSeriesParentBooking, Yr as resolvedItemSurfaceProps, Yt as eventWeekGroupingContext, Z as CardListContentPart, Zi as runTransforms, Zn as planWholeSeriesRunSelection, Zr as Grid, _ as giftingBlockDefinition, _a as PlusIcon, _i as faqAccordionFragment, _n as formatCalendarTitle, _r as shouldReserveFeatureCardIconZone, _t as getCardOrientation, aa as ChevronDownIcon, an as blockSiteTermsSchema, ar as resolveEventPageLink, as as resolveWholeSeriesBookingPhase, at as MediaPlaceholder, b as cartBlockDefinition, ba as UsersIcon, bi as singleButtonFragment, bn as formatEventCompactDateRail, bo as headerRootPaint, br as composeHeaderSectionWrapperClassName, bs as addLocalScheduleDays, bt as lookPartShown, c as normalizeLocationMapProps, ca as ClockIcon, ci as formatEventPrice, cn as closedDatesCopy, cr as isInBookingCutOffWindow, cs as parseMailingListRuntimeContext, d as resolveLocationMapLocation, da as FileSpreadsheetIcon, dn as closedDateCopy, ds as sameMailingListPlacementTargeting, ea as buildGeneratedBlockIconRenderAssetLookupFromUnknown, en as browserReadAuthoritySchema, eo as readOpeningToneProjection, er as selectionRepresentativeEvent, f as newsletterSignupBlockDefinition, fa as FileTextIcon, fn as cutOffDateCopy, fr as getEventAvailabilityStatus, g as newsletterBlockSubmissionMessage, ga as MinusIcon, gi as cardFragment, gr as resolveFeatureCardGeneratedIconSizePx, gt as EventQuickFacts, h as buildNewsletterFormInteractiveIslandProps, ha as MapPinIcon$1, hi as headingFragment, hn as eventDateOptions, hr as FEATURE_CARD_ICON_TREATMENTS, ht as setContextResolveImageUrlContext, i as normalizeBlockContent, ia as CalendarIcon$1, in as formatEventLocation, ir as resolveEventCta, is as orderedLiveRunSessions, it as ImagePresets, j as membershipClassesLabel, ji as boxStyleClassNames, jn as getLocalMinuteOfDay, js as formatBookingPriceDisplay, jt as groupOfferingRunsByCourse, k as shopProductPresentation, ki as heroCopyFragment, kn as resolveEventTimeZone, ko as bookingConsentCarrierSchema, ks as toBookingTimeZone, kt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, l as normalizeLocationMapSource, la as FileArchiveIcon, li as formatEventPriceAmount, ln as closedRunCopy, lr as formatEventRemainingPlaces, m as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, ma as InfoIcon, mi as richTextFragment, mr as groupPublicEventsByRun, ms as formatDate$1, mt as getCurrentResolveImageUrlContext, n as hasBlockDefinition, na as resolveBlockIconRenderValue, nn as eventPlaceName, nr as eventDestinationPagePath, ns as CANCELLED_SESSION_STATUS, nt as MediaNodeServer, o as LOCATION_MAP_LOADER_KEYS, oa as CircleMinusIcon, oi as formatCoursePrice, on as pageNavigationSchema, or as resolveRuntimeEventDestination, os as resolveWholeSeriesPaymentDates, pa as GlobeIcon, pn as buildCalendarViewport, pr as isEventFull, ps as EVENT_ADDRESS_AFTER_BOOKING_LABEL, pt as buildResolveImageUrlContext, q as eventCollectionHydrationSchema, qa as selectItemSurfacePresentation, qn as planDropInPanel, qr as listLookSlot, qt as buildEventListWeek, ra as ArrowDownIcon, rn as eventVenuePlace, rr as resolveEventCardBooking, rt as RichText, s as describeUnresolvedLocationMapLocation, sa as CirclePlusIcon, si as formatEventDepositNote, sn as closedDateListCopy, sr as isBookableEvent, ss as buildMailingListSignupBlockSourceRef, t as getBlockDefinition, ta as parseBlockIconValue, tn as eventOnlinePlace, tr as eventDestinationBookingLink, u as parseLocationMapLoaderResult, ua as FileAudioIcon, un as bookElsewhereDateCopy, ur as formatTotalCapacity, us as parseMailingListPlacementTargeting, ut as resolvePublicMediaUrl, v as buildGiftingInteractiveIslandProps, va as TicketIcon, vi as faqHeadingFragment, vn as formatDate, vo as headerNeedsPhotoShade, vs as formatBookingCompactEnglishTime, vt as getContainerClass, w as buildCartInteractiveIslandProps, wi as testimonialsHeadingFragment, wr as parseTeamMemberSpecialties, ws as getLocalScheduleDate, wt as bookingNowSchema, x as productDetailBlockDefinition, xa as inlineTextToPlainText, xi as formEmbedFragment, xn as formatEventDateParts, xr as markEditableSurfaceForwarding, xt as eventRegistrationBlockDefinition, y as checkoutBlockDefinition, ya as UserIcon, yi as blogFeaturedPostFragment, yn as formatEventClockLabel, yo as headerRootIsTransparent, ys as toScheduledBookingDateTime, z as buildEventCalendarListingDisplay, zi as resolveBackgroundColorValue, zn as isToday, zr as buildInteractiveIslandProps, zt as normalizeEventRegistrationPageSurfaceSubject } from "./registry-Bf4W8Qa7.mjs";
|
|
6
|
+
import { $ as generateInteractiveChildInheritanceCSS, At as transitionCatalogueEntries, G as generateFooterCss, Ht as featureCardCompositionTreatmentValues, J as buildTextContrastShadow, Jt as testimonialsCompositionTreatmentValues, O as requireCuratedSiteStyle, Q as resolveEffectPaint, U as resolveCardRole, Ut as introCompositionTreatmentValues, W as generateDefaultCardSystem, Wt as offeringsPreviewCompositionTreatmentValues, X as generateEffectsCSS, Y as generateNavLinkCSS, Z as resolveEffectApplications, en as opaqueSurfaceContextFromTheme, f as arrangementManifestFromVariants, i as arrangementLookHooks, m as resolveEffectiveArrangement, rn as TokenResolver, tn as opaqueSurfaceDeclarations, yt as boundaryRuntimeMetricsForDecorativeTransition } from "./lookMediaFrame-EFws7tAj.mjs";
|
|
7
|
+
import { f as fontWidthFits, u as boxBackgroundSchema, v as surfaceCardRoleValues, w as siteChromeBackgroundOverrideOwner } from "./schema-DGaihVwp.mjs";
|
|
7
8
|
import { a as normalizeLocationAddressText, c as publicLocationSchema, d as mapDrawingSchema } from "./mapLocation-MDDSubTp.mjs";
|
|
8
9
|
import { t as assertNever$3 } from "./assert-never-ku-PUn9U.mjs";
|
|
9
|
-
import { A as MQ_MD_UP, M as MQ_SM_UP, N as MQ_TABLET_ONLY, O as MQ_LG_UP, c as readSdkPreviewPublishedPlacement, h as compileManifestContentContract, j as MQ_SM_DOWN, k as MQ_MD_DOWN, y as validateManifestDraft } from "./pageRuntimeSupport-
|
|
10
|
+
import { A as MQ_MD_UP, M as MQ_SM_UP, N as MQ_TABLET_ONLY, O as MQ_LG_UP, c as readSdkPreviewPublishedPlacement, h as compileManifestContentContract, j as MQ_SM_DOWN, k as MQ_MD_DOWN, y as validateManifestDraft } from "./pageRuntimeSupport-Uv1xDieJ.mjs";
|
|
10
11
|
import { f as bindingSchema, i as RichTextDocSchema, l as sanitizeHref, n as isRecord$4, t as isObjectRecord } from "./typeGuards-DZOaGTEv.mjs";
|
|
11
|
-
import { l as
|
|
12
|
-
import { M as
|
|
13
|
-
import { l as mergeHeaderNavTypographyPreference, u as readHeaderNavFontSizePreference } from "./bindings-B_9JuU66.mjs";
|
|
14
|
-
import { A as generateShadowCssVars, C as INPUT_ERROR_BORDER_COLOR_VAR, D as RESOLVED_BUTTON_DISABLED_DECLARATIONS, E as generateOpaquePanelCss, M as cardBorderDeclarations, N as cardDecorationPseudoRules, O as resolvedButtonColourDeclarations, S as INPUT_EDGE_COLOR_VAR, T as generateCheckableCss, _ as getResponsiveScopeSpec, a as escapeStyleContent, b as INPUT_GROUP_SELECTOR, c as parseBlockCustomCssRules, d as generateBlockCustomVarsCss, f as generateTypographyCss, g as THEME_RESPONSIVE_CONTAINER_NAME, h as DEFAULT_THEME_RESPONSIVE_MODE, i as compileCustomCssRules, j as renderCssDeclarations, k as resolvedButtonFocusDeclarations, l as parseCustomCssRules, m as generateStatusCss, n as THEME_RADIUS_CSS_VARS, o as prefixSelector, p as generateProgressCss, r as compileBlockCustomCssRules, s as toKebabCase, t as ThemeScopeCore, u as generateAllBlockVarsCss, v as INPUT_GROUP_ERROR_SELECTOR, w as inputEdgeColorValue, x as generateInputGroupCss, y as INPUT_GROUP_FOCUS_SELECTOR } from "./ThemeScopeCore-DtAyv9qA.mjs";
|
|
12
|
+
import { l as mergeHeaderNavTypographyPreference, u as readHeaderNavFontSizePreference } from "./bindings-CFw4M-gZ.mjs";
|
|
13
|
+
import { A as generateCheckableCss, C as INPUT_GROUP_ERROR_SELECTOR, D as INPUT_EDGE_COLOR_VAR, E as generateInputGroupCss, F as generateShadowCssVars, I as renderCssDeclarations, L as cardBorderDeclarations, M as RESOLVED_BUTTON_DISABLED_DECLARATIONS, N as resolvedButtonColourDeclarations, O as INPUT_ERROR_BORDER_COLOR_VAR, P as resolvedButtonFocusDeclarations, R as cardDecorationPseudoRules, S as retargetResponsiveScopeRules, T as INPUT_GROUP_SELECTOR, _ as buildResponsiveScopeRule, a as escapeStyleContent, b as getResponsiveScopeSpec, c as parseBlockCustomCssRules, d as generateBlockCustomVarsCss, f as generateTypographyCss, g as THEME_RESPONSIVE_CONTAINER_NAME, h as DEFAULT_THEME_RESPONSIVE_MODE, i as compileCustomCssRules, j as generateOpaquePanelCss, k as inputEdgeColorValue, l as parseCustomCssRules, m as generateStatusCss, n as THEME_RADIUS_CSS_VARS, o as prefixSelector, p as generateProgressCss, r as compileBlockCustomCssRules, s as toKebabCase, t as ThemeScopeCore, u as generateAllBlockVarsCss, v as findResponsiveScopeRuleAt, w as INPUT_GROUP_FOCUS_SELECTOR, x as hasResponsiveScopeRule, y as getContainerResponsiveScopeSpec } from "./ThemeScopeCore-DvbqYXdK.mjs";
|
|
15
14
|
import { c as ACCORDION_SPACING_MAP, d as ICON_CONFIG, f as ICON_SIZE_PX, i as getNodeProps, l as ACCORDION_TRIGGER_FONT_SCALE, n as getVideoEmbed, r as getVideoEmbedLoadingStrategy, s as ACCORDION_OPEN_ACCENT_THICKNESS, t as VIDEO_ASPECT_RATIO_PATTERN, u as ACCORDION_TRIGGER_LETTER_SPACING } from "./video-DBaeSawZ.mjs";
|
|
16
|
-
import { t as parseThemeForPersistence } from "./parseThemeForPersistence-
|
|
15
|
+
import { t as parseThemeForPersistence } from "./parseThemeForPersistence-CwcWZL7u.mjs";
|
|
17
16
|
import { n as mapOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
|
|
18
17
|
import { t as getAtPath } from "./src-DHK4JUlp.mjs";
|
|
19
18
|
import * as React$1 from "react";
|
|
@@ -705,9 +704,9 @@ function generateHoverEffects(axes) {
|
|
|
705
704
|
//#endregion
|
|
706
705
|
//#region ../theme-core/src/accordions/accordionInks.ts
|
|
707
706
|
const TEXT = contrastThresholdByPolicy["body-aa"];
|
|
708
|
-
/** The CSS colour for a certified ink: a palette variable,
|
|
707
|
+
/** The CSS colour for a certified ink: a palette variable, including absolute black and white. */
|
|
709
708
|
function accordionInkCss(ink) {
|
|
710
|
-
return rgbColorValue(
|
|
709
|
+
return rgbColorValue(ink);
|
|
711
710
|
}
|
|
712
711
|
/** The foreground contract certified on an accordion's own background, or null when it has none. */
|
|
713
712
|
function resolveAccordionSurfaceForeground(theme, system) {
|
|
@@ -849,15 +848,14 @@ function resolveHeaderDropdownForeground(header, theme) {
|
|
|
849
848
|
}, palette);
|
|
850
849
|
const text = foreground.kind === "known" ? foreground.roles.text : candidate;
|
|
851
850
|
const fill = style?.hoverBackground === void 0 ? text : style.hoverBackground;
|
|
852
|
-
const menu = foreground.kind === "known" && foreground.provenance.kind === "measured" ? foreground.provenance.backdropHex : null;
|
|
853
851
|
return {
|
|
854
852
|
style,
|
|
855
853
|
backgroundToken,
|
|
856
854
|
candidate,
|
|
857
855
|
foreground,
|
|
858
|
-
textToken:
|
|
859
|
-
linkFill: fill
|
|
860
|
-
...linkInks(style, text, fill,
|
|
856
|
+
textToken: text,
|
|
857
|
+
linkFill: fill,
|
|
858
|
+
...linkInks(style, text, fill, foreground.kind === "known" && foreground.provenance.kind === "measured" ? foreground.provenance.backdropHex : null, palette)
|
|
861
859
|
};
|
|
862
860
|
}
|
|
863
861
|
/** A translucent menu keeps its declared hover text, unmeasured; an opaque one certifies each state. */
|
|
@@ -886,7 +884,7 @@ function certifyLinkText(ink, declared, fill, menu, palette) {
|
|
|
886
884
|
};
|
|
887
885
|
});
|
|
888
886
|
return {
|
|
889
|
-
linkText: Object.fromEntries(states.flatMap(({ state, paint }) => declared || paint?.fallback ? [[state,
|
|
887
|
+
linkText: Object.fromEntries(states.flatMap(({ state, paint }) => declared || paint?.fallback ? [[state, paint?.ink ?? ink]] : [])),
|
|
890
888
|
linkPaints: states.flatMap(({ paint }) => paint ? [paint] : []),
|
|
891
889
|
linkUnmeasured: states.flatMap(({ state, paint }) => paint ? [] : [linkPlace(state)])
|
|
892
890
|
};
|
|
@@ -985,7 +983,10 @@ function formatFontFamily(family, fallback = "sans-serif") {
|
|
|
985
983
|
*/
|
|
986
984
|
function generateCssVars(palette) {
|
|
987
985
|
const cssVars = {};
|
|
988
|
-
Object.entries(
|
|
986
|
+
Object.entries({
|
|
987
|
+
...palette,
|
|
988
|
+
...absoluteInkColors
|
|
989
|
+
}).forEach(([key, value]) => {
|
|
989
990
|
if (key === "meta" || value === null || value === void 0 || typeof value !== "string") return;
|
|
990
991
|
const { r, g, b } = hexToRgb(value);
|
|
991
992
|
cssVars[`--tb-${key}`] = `${r} ${g} ${b}`;
|
|
@@ -3061,54 +3062,160 @@ function headerPaintInks(header, theme, policy) {
|
|
|
3061
3062
|
return surfaceInkDeclarations(surfaceInkPublication(resolveSurfaceForeground(header.background, expandPalette(theme.palette)), policy));
|
|
3062
3063
|
}
|
|
3063
3064
|
//#endregion
|
|
3064
|
-
//#region ../theme-core/src/
|
|
3065
|
-
/**
|
|
3066
|
-
* Section-break CSS, generated from the transition catalogue (issue 1422).
|
|
3067
|
-
*
|
|
3068
|
-
* The renderer emits one element per shown join:
|
|
3069
|
-
*
|
|
3070
|
-
* <div data-block-boundary data-boundary-treatment="wave-edge-gentle"
|
|
3071
|
-
* data-boundary-placement="previous"
|
|
3072
|
-
* style="--boundary-shape-paint: …; --boundary-band-paint: …">
|
|
3073
|
-
*
|
|
3074
|
-
* Every selector matches an exact attribute value, so there is no reliance on
|
|
3075
|
-
* prefix ordering in the cascade and nothing reads colours out of a string.
|
|
3076
|
-
* The shape layer is `::after`; the band layer (paint → paint only) is
|
|
3077
|
-
* `::before`.
|
|
3078
|
-
*/
|
|
3079
|
-
const waveMaskSvgPaths = {
|
|
3080
|
-
classic: "M0 72V46C130 55 260 24 420 30C590 36 690 62 860 42C1035 21 1160 47 1305 36C1365 31 1415 33 1440 38V72H0Z",
|
|
3081
|
-
balanced: "M0 72V42C120 24 240 24 360 42C480 60 600 60 720 42C840 24 960 24 1080 42C1200 60 1320 60 1440 42V72H0Z",
|
|
3082
|
-
gentle: "M0 72V43C180 32 300 32 480 43C660 54 780 54 960 43C1140 32 1260 32 1440 43V72H0Z",
|
|
3083
|
-
echo: "M0 72V44C180 34 320 29 500 40C680 51 800 55 970 45C1140 35 1270 31 1440 40V72H0Z",
|
|
3084
|
-
bold: "M0 72V44C90 14 270 14 360 44C450 74 630 74 720 44C810 14 990 14 1080 44C1170 74 1350 74 1440 44V72H0Z",
|
|
3085
|
-
drift: "M0 72V39C115 31 205 54 340 48C505 41 610 16 760 33C920 51 1015 64 1160 44C1280 27 1375 35 1440 50V72H0Z"
|
|
3086
|
-
};
|
|
3065
|
+
//#region ../theme-core/src/responsive/cssScan.ts
|
|
3087
3066
|
/**
|
|
3088
|
-
*
|
|
3089
|
-
*
|
|
3090
|
-
* shape so the colour behind shows through them; that keeps them a blend of the
|
|
3091
|
-
* two sections' colours, whatever the palette. They fade out towards the peak.
|
|
3067
|
+
* Scanning for CSS source. Comments and quoted strings are read as whole tokens and
|
|
3068
|
+
* skipped, so a brace or semicolon inside `content: "{"` or a comment never counts.
|
|
3092
3069
|
*/
|
|
3093
|
-
const
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
const
|
|
3097
|
-
|
|
3098
|
-
|
|
3070
|
+
const CSS_TOKENS = /\/\*[\s\S]*?(?:\*\/|$)|"(?:\\[\s\S]|[^"\\])*(?:"|$)|'(?:\\[\s\S]|[^'\\])*(?:'|$)|[()[\]{};]|[^"'()[\]{};/]+|\//g;
|
|
3071
|
+
/** The only iteration shell: transitions never mutate their input state. */
|
|
3072
|
+
function* scanTokens(source, from, initial, transition) {
|
|
3073
|
+
const pattern = new RegExp(CSS_TOKENS.source, "g");
|
|
3074
|
+
pattern.lastIndex = from;
|
|
3075
|
+
const cursor = { state: initial };
|
|
3076
|
+
for (const match of source.matchAll(pattern)) {
|
|
3077
|
+
const next = transition(cursor.state, {
|
|
3078
|
+
text: match[0],
|
|
3079
|
+
index: match.index
|
|
3080
|
+
});
|
|
3081
|
+
cursor.state = next.state;
|
|
3082
|
+
yield next.output;
|
|
3083
|
+
}
|
|
3099
3084
|
}
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3085
|
+
const isSkippedToken = (token) => token.startsWith("/*") || token.startsWith("\"") || token.startsWith("'");
|
|
3086
|
+
function findTransition(depth, token, matches) {
|
|
3087
|
+
if (isSkippedToken(token.text)) return {
|
|
3088
|
+
state: depth,
|
|
3089
|
+
output: -1
|
|
3090
|
+
};
|
|
3091
|
+
const offset = token.text.split("").findIndex((ch, offset) => matches(ch, token.index + offset, depth));
|
|
3092
|
+
return {
|
|
3093
|
+
state: Math.max(0, depth + (token.text === "(" ? 1 : token.text === ")" ? -1 : 0)),
|
|
3094
|
+
output: offset === -1 ? -1 : token.index + offset
|
|
3095
|
+
};
|
|
3103
3096
|
}
|
|
3104
|
-
/**
|
|
3105
|
-
function
|
|
3106
|
-
const
|
|
3107
|
-
return
|
|
3097
|
+
/** First matching character outside comments/strings; depth is before the character. */
|
|
3098
|
+
function findOutsideStringsAndComments(source, from, matches) {
|
|
3099
|
+
for (const found of scanTokens(source, from, 0, (depth, token) => findTransition(depth, token, matches))) if (found !== -1) return found;
|
|
3100
|
+
return -1;
|
|
3108
3101
|
}
|
|
3109
|
-
|
|
3110
|
-
|
|
3102
|
+
/** The next `target` outside comments, strings and parentheses, or -1. */
|
|
3103
|
+
function findTopLevelChar(source, from, target) {
|
|
3104
|
+
return findOutsideStringsAndComments(source, from, (ch, _index, parenDepth) => ch === target && parenDepth === 0);
|
|
3105
|
+
}
|
|
3106
|
+
function braceTransition(depth, token) {
|
|
3107
|
+
const state = depth + (token.text === "{" ? 1 : token.text === "}" ? -1 : 0);
|
|
3108
|
+
return {
|
|
3109
|
+
state,
|
|
3110
|
+
output: token.text === "}" && state === 0 ? token.index : -1
|
|
3111
|
+
};
|
|
3111
3112
|
}
|
|
3113
|
+
/** The index of the brace closing the one at `openIndex`, or -1. */
|
|
3114
|
+
function findMatchingBrace(source, openIndex) {
|
|
3115
|
+
for (const found of scanTokens(source, openIndex, 0, braceTransition)) if (found !== -1) return found;
|
|
3116
|
+
return -1;
|
|
3117
|
+
}
|
|
3118
|
+
const WHITESPACE_AND_COMMENTS = /(?:\s+|\/\*[\s\S]*?(?:\*\/|$))*/y;
|
|
3119
|
+
/** The first index at or after `from` that is not whitespace or inside a comment. */
|
|
3120
|
+
function skipWhitespaceAndComments(source, from) {
|
|
3121
|
+
const pattern = new RegExp(WHITESPACE_AND_COMMENTS.source, "y");
|
|
3122
|
+
pattern.lastIndex = from;
|
|
3123
|
+
const match = pattern.exec(source);
|
|
3124
|
+
return Math.min(source.length, from + (match?.[0].length ?? 0));
|
|
3125
|
+
}
|
|
3126
|
+
//#endregion
|
|
3127
|
+
//#region ../theme-core/src/responsive/transformMediaRules.ts
|
|
3128
|
+
const findNextOpeningBrace = (source, from) => findTopLevelChar(source, from, "{");
|
|
3129
|
+
/** The next `@media` at-rule outside comments and strings, or -1. */
|
|
3130
|
+
const findNextMediaRule = (source, from) => findOutsideStringsAndComments(source, from, (ch, index) => ch === "@" && source.startsWith("@media", index) && !/[a-zA-Z0-9_-]/.test(source[index + 6] ?? ""));
|
|
3131
|
+
/**
|
|
3132
|
+
* Rewrites eligible @media blocks to named @container blocks.
|
|
3133
|
+
* Keeps unsupported @media queries unchanged.
|
|
3134
|
+
*/
|
|
3135
|
+
function convertMediaRulesToContainerRules(css, containerName = getContainerResponsiveScopeSpec().containerName) {
|
|
3136
|
+
const containerScope = getContainerResponsiveScopeSpec();
|
|
3137
|
+
let output = "";
|
|
3138
|
+
let index = 0;
|
|
3139
|
+
while (index < css.length) {
|
|
3140
|
+
const mediaStart = findNextMediaRule(css, index);
|
|
3141
|
+
if (mediaStart === -1) {
|
|
3142
|
+
output += css.slice(index);
|
|
3143
|
+
break;
|
|
3144
|
+
}
|
|
3145
|
+
output += css.slice(index, mediaStart);
|
|
3146
|
+
const parsed = parseMediaRule(css, mediaStart);
|
|
3147
|
+
if (!parsed) {
|
|
3148
|
+
output += css.slice(mediaStart, mediaStart + 6);
|
|
3149
|
+
index = mediaStart + 6;
|
|
3150
|
+
continue;
|
|
3151
|
+
}
|
|
3152
|
+
const transformedBody = convertMediaRulesToContainerRules(parsed.body, containerName);
|
|
3153
|
+
const containerQuery = convertMediaQueryToContainerQuery(parsed.query);
|
|
3154
|
+
if (containerQuery) {
|
|
3155
|
+
const hasScope = hasResponsiveScopeRule(transformedBody);
|
|
3156
|
+
const rootQualifiedBody = rewriteScopedRootSelectors(hasScope ? retargetResponsiveScopeRules(transformedBody, containerScope) : transformedBody);
|
|
3157
|
+
const scopedBody = hasScope && !hasTopLevelContentOutsideResponsiveScopes(transformedBody) ? rootQualifiedBody : buildResponsiveScopeRule(containerScope, rootQualifiedBody);
|
|
3158
|
+
output += `@container ${containerName} ${containerQuery} {\n${scopedBody}\n}`;
|
|
3159
|
+
} else output += `@media ${parsed.query} {${transformedBody}}`;
|
|
3160
|
+
index = parsed.endIndex;
|
|
3161
|
+
}
|
|
3162
|
+
return output;
|
|
3163
|
+
}
|
|
3164
|
+
/** Keep scope-root selectors eligible inside the generated preview scope. */
|
|
3165
|
+
function rewriteScopedRootSelectors(source) {
|
|
3166
|
+
const open = findNextOpeningBrace(source, 0);
|
|
3167
|
+
if (open === -1) return source;
|
|
3168
|
+
const close = findMatchingBrace(source, open);
|
|
3169
|
+
if (close === -1) return source;
|
|
3170
|
+
const prelude = source.slice(0, open);
|
|
3171
|
+
const body = source.slice(open + 1, close);
|
|
3172
|
+
const isAtRule = prelude[skipWhitespaceAndComments(prelude, 0)] === "@";
|
|
3173
|
+
const isKeyframes = /^@(?:-\w+-)?keyframes\b/.test(prelude.trimStart());
|
|
3174
|
+
return `${isAtRule ? prelude : qualifyScopeRoots(prelude)}{${isAtRule && !isKeyframes ? rewriteScopedRootSelectors(body) : body}}${rewriteScopedRootSelectors(source.slice(close + 1))}`;
|
|
3175
|
+
}
|
|
3176
|
+
function qualifyScopeRoots(selector) {
|
|
3177
|
+
return selector.replace(/\/\*[\s\S]*?\*\/|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\[(?:\\.|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|[^\]\\])*\]|\.theme-scope(?![\w-])/g, (token, offset) => {
|
|
3178
|
+
const isRoot = token === ".theme-scope" || /^\[data-(?:skin|theme-scope)\s*=/.test(token);
|
|
3179
|
+
const alreadyQualified = /^:is\(\s*\*\s*,\s*:scope\s*\)/.test(selector.slice(offset + token.length));
|
|
3180
|
+
return isRoot && !alreadyQualified ? `${token}:is(*, :scope)` : token;
|
|
3181
|
+
});
|
|
3182
|
+
}
|
|
3183
|
+
function hasTopLevelContentOutsideResponsiveScopes(source) {
|
|
3184
|
+
let index = 0;
|
|
3185
|
+
while (index < source.length) {
|
|
3186
|
+
index = skipWhitespaceAndComments(source, index);
|
|
3187
|
+
if (index >= source.length) return false;
|
|
3188
|
+
if (!source.startsWith("@scope", index)) return true;
|
|
3189
|
+
const parsedScope = parseScopeRule(source, index);
|
|
3190
|
+
if (!parsedScope) return true;
|
|
3191
|
+
index = parsedScope.endIndex;
|
|
3192
|
+
}
|
|
3193
|
+
return false;
|
|
3194
|
+
}
|
|
3195
|
+
function parseScopeRule(source, start) {
|
|
3196
|
+
const match = findResponsiveScopeRuleAt(source, start);
|
|
3197
|
+
if (!match) return null;
|
|
3198
|
+
const closeBraceIndex = findMatchingBrace(source, match.openBraceIndex);
|
|
3199
|
+
if (closeBraceIndex === -1) return null;
|
|
3200
|
+
return { endIndex: closeBraceIndex + 1 };
|
|
3201
|
+
}
|
|
3202
|
+
function parseMediaRule(source, start) {
|
|
3203
|
+
let i = start + 6;
|
|
3204
|
+
while (i < source.length && /\s/.test(source[i] ?? "")) i++;
|
|
3205
|
+
const queryStart = i;
|
|
3206
|
+
const openBraceIndex = findNextOpeningBrace(source, i);
|
|
3207
|
+
if (openBraceIndex === -1) return null;
|
|
3208
|
+
const closeBraceIndex = findMatchingBrace(source, openBraceIndex);
|
|
3209
|
+
if (closeBraceIndex === -1) return null;
|
|
3210
|
+
return {
|
|
3211
|
+
query: source.slice(queryStart, openBraceIndex).trim(),
|
|
3212
|
+
body: source.slice(openBraceIndex + 1, closeBraceIndex),
|
|
3213
|
+
endIndex: closeBraceIndex + 1
|
|
3214
|
+
};
|
|
3215
|
+
}
|
|
3216
|
+
//#endregion
|
|
3217
|
+
//#region ../theme-core/src/layout/boundaryCss.ts
|
|
3218
|
+
/** Geometry comes only from renderer-provided variables. This stylesheet owns placement and reserves. */
|
|
3112
3219
|
/**
|
|
3113
3220
|
* How each placement anchors the layers against the zero-height boundary
|
|
3114
3221
|
* element that sits exactly on the join.
|
|
@@ -3137,7 +3244,7 @@ const placementRules = {
|
|
|
3137
3244
|
* the schedule and shop sections too.
|
|
3138
3245
|
*/
|
|
3139
3246
|
const blockSection = ":where([data-slot='section'], [data-slot='schedule-section'], [data-slot='shop-section'])";
|
|
3140
|
-
function generateBoundaryCss(selector) {
|
|
3247
|
+
function generateBoundaryCss(selector, responsiveMode = "viewport") {
|
|
3141
3248
|
const boundary = `${selector} [data-block-boundary]`;
|
|
3142
3249
|
return [
|
|
3143
3250
|
rule(boundary, [
|
|
@@ -3159,8 +3266,8 @@ function generateBoundaryCss(selector) {
|
|
|
3159
3266
|
rule(`${boundary}::before`, ["z-index: 0;", "background: var(--boundary-band-paint, transparent);"]),
|
|
3160
3267
|
rule(`${boundary}::after`, ["z-index: 1;"]),
|
|
3161
3268
|
...placementCss(boundary),
|
|
3162
|
-
...transitionCatalogueEntries.flatMap((entry) =>
|
|
3163
|
-
|
|
3269
|
+
...transitionCatalogueEntries.flatMap((entry) => footerEdgeReserveCss(selector, entry)),
|
|
3270
|
+
variableBoundaryCss(boundary, responsiveMode, selector)
|
|
3164
3271
|
].join("\n\n");
|
|
3165
3272
|
}
|
|
3166
3273
|
/**
|
|
@@ -3195,66 +3302,61 @@ function placementCss(boundary) {
|
|
|
3195
3302
|
return [rule(`${placed}::after`, rules.shape), rules.band ? rule(`${placed}::before`, rules.band) : rule(`${placed}::before`, ["content: none;"])];
|
|
3196
3303
|
});
|
|
3197
3304
|
}
|
|
3198
|
-
function
|
|
3199
|
-
|
|
3305
|
+
function rule(selector, declarations) {
|
|
3306
|
+
return `${selector} {\n ${declarations.join("\n ")}\n}`;
|
|
3307
|
+
}
|
|
3308
|
+
function variableBoundaryCss(boundary, responsiveMode, scope) {
|
|
3309
|
+
const selected = `${boundary}[data-boundary-geometry]`;
|
|
3310
|
+
const shapes = `${selected}::after, ${selected} > [data-boundary-back]`;
|
|
3200
3311
|
return [
|
|
3201
|
-
rule(
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
"
|
|
3312
|
+
rule(shapes, [
|
|
3313
|
+
"height: var(--boundary-shape-height);",
|
|
3314
|
+
"background: var(--boundary-shape-background);",
|
|
3315
|
+
"mask-image: var(--boundary-mask-wide);",
|
|
3316
|
+
"-webkit-mask-image: var(--boundary-mask-wide);",
|
|
3317
|
+
"clip-path: var(--boundary-clip-wide);",
|
|
3318
|
+
"mask-size: var(--boundary-mask-tile-width, 100%) 100%;",
|
|
3319
|
+
"-webkit-mask-size: var(--boundary-mask-tile-width, 100%) 100%;",
|
|
3320
|
+
"mask-repeat: var(--boundary-mask-repeat, no-repeat);",
|
|
3321
|
+
"-webkit-mask-repeat: var(--boundary-mask-repeat, no-repeat);",
|
|
3322
|
+
"mask-position: center;",
|
|
3323
|
+
"-webkit-mask-position: center;"
|
|
3324
|
+
]),
|
|
3325
|
+
`@supports (color: color-mix(in srgb, black, white)) {\n${rule(shapes, ["background: var(--boundary-shape-background-mixed);"])}\n}`,
|
|
3326
|
+
rule(`${selected}::after`, ["z-index: 2;"]),
|
|
3327
|
+
rule(`${selected}[data-boundary-section-owned]::before, ${selected}[data-boundary-section-owned]::after`, ["content: none;"]),
|
|
3328
|
+
rule(`${selected}::before`, ["mask: none;", "opacity: 1;"]),
|
|
3329
|
+
rule(`${selected}[data-boundary-placement='previous']::before, ${selected}[data-boundary-placement='next']::before`, ["content: none;"]),
|
|
3330
|
+
rule(`${selected} > [data-boundary-back]`, [
|
|
3331
|
+
"position: absolute;",
|
|
3332
|
+
"inset-inline: 0;",
|
|
3333
|
+
"pointer-events: none;",
|
|
3334
|
+
"z-index: 1;"
|
|
3335
|
+
]),
|
|
3336
|
+
rule(`${selected}[data-footer-edge]::before`, [
|
|
3337
|
+
"content: var(--boundary-footer-back-content);",
|
|
3338
|
+
"background: var(--boundary-shape-paint);",
|
|
3339
|
+
"top: auto;",
|
|
3206
3340
|
"bottom: 0;",
|
|
3341
|
+
"height: var(--boundary-shape-height);",
|
|
3207
3342
|
"transform: translateY(-12%) scaleX(-1);",
|
|
3208
|
-
"opacity: 0.5;"
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
"
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
const mask = tornMaskDataUrl(entry.shape.pitchPx, entry.shape.holeRadiusPx);
|
|
3223
|
-
return [
|
|
3224
|
-
"background: var(--boundary-shape-paint);",
|
|
3225
|
-
`mask-image: url("${mask}");`,
|
|
3226
|
-
"mask-repeat: repeat-x;",
|
|
3227
|
-
`mask-size: ${entry.shape.pitchPx}px 100%;`,
|
|
3228
|
-
"mask-position: center bottom;",
|
|
3229
|
-
`-webkit-mask-image: url("${mask}");`,
|
|
3230
|
-
"-webkit-mask-repeat: repeat-x;",
|
|
3231
|
-
`-webkit-mask-size: ${entry.shape.pitchPx}px 100%;`,
|
|
3232
|
-
"-webkit-mask-position: center bottom;"
|
|
3233
|
-
];
|
|
3234
|
-
}
|
|
3235
|
-
case "angle": return [
|
|
3236
|
-
"height: calc(var(--boundary-height) + 2px);",
|
|
3237
|
-
"background: var(--boundary-shape-paint);",
|
|
3238
|
-
`clip-path: ${anglePolygonCss(entry.shape.polygon)};`
|
|
3239
|
-
];
|
|
3240
|
-
}
|
|
3241
|
-
}
|
|
3242
|
-
function maskDeclarations(mask) {
|
|
3243
|
-
return [
|
|
3244
|
-
"background: var(--boundary-shape-paint);",
|
|
3245
|
-
`mask-image: url("${mask}");`,
|
|
3246
|
-
"mask-repeat: no-repeat;",
|
|
3247
|
-
"mask-size: 100% 100%;",
|
|
3248
|
-
`-webkit-mask-image: url("${mask}");`,
|
|
3249
|
-
"-webkit-mask-repeat: no-repeat;",
|
|
3250
|
-
"-webkit-mask-size: 100% 100%;"
|
|
3251
|
-
];
|
|
3252
|
-
}
|
|
3253
|
-
function rule(selector, declarations) {
|
|
3254
|
-
return `${selector} {\n ${declarations.join("\n ")}\n}`;
|
|
3343
|
+
"opacity: 0.5;",
|
|
3344
|
+
"mask-image: var(--boundary-mask-wide);",
|
|
3345
|
+
"-webkit-mask-image: var(--boundary-mask-wide);",
|
|
3346
|
+
"mask-size: var(--boundary-mask-tile-width, 100%) 100%;",
|
|
3347
|
+
"-webkit-mask-size: var(--boundary-mask-tile-width, 100%) 100%;",
|
|
3348
|
+
"mask-repeat: var(--boundary-mask-repeat, no-repeat);",
|
|
3349
|
+
"-webkit-mask-repeat: var(--boundary-mask-repeat, no-repeat);"
|
|
3350
|
+
]),
|
|
3351
|
+
narrowBoundaryCss(`@media (max-width: 767px) {\n${rule(`${scope} [data-section-edge-paint]`, ["mask-image: var(--boundary-section-mask-narrow, var(--boundary-texture-mask-narrow));", "-webkit-mask-image: var(--boundary-section-mask-narrow, var(--boundary-texture-mask-narrow));"])}\n@supports (color: color-mix(in srgb, black, white)) {\n${rule(`${scope} [data-section-edge-fade]`, ["mask-image: var(--boundary-texture-mask-narrow);", "-webkit-mask-image: var(--boundary-texture-mask-narrow);"])}\n}\n${rule(shapes, [
|
|
3352
|
+
"mask-image: var(--boundary-mask-narrow);",
|
|
3353
|
+
"-webkit-mask-image: var(--boundary-mask-narrow);",
|
|
3354
|
+
"clip-path: var(--boundary-clip-narrow);"
|
|
3355
|
+
])}\n${rule(`${selected}[data-footer-edge]::before`, ["mask-image: var(--boundary-mask-narrow);", "-webkit-mask-image: var(--boundary-mask-narrow);"])}\n}`, responsiveMode)
|
|
3356
|
+
].join("\n\n");
|
|
3255
3357
|
}
|
|
3256
|
-
function
|
|
3257
|
-
return
|
|
3358
|
+
function narrowBoundaryCss(css, responsiveMode) {
|
|
3359
|
+
return responsiveMode === "container" ? convertMediaRulesToContainerRules(css) : css;
|
|
3258
3360
|
}
|
|
3259
3361
|
//#endregion
|
|
3260
3362
|
//#region ../theme-core/src/layout/generateLayoutCss.ts
|
|
@@ -3281,7 +3383,8 @@ function generateLayoutCss(options) {
|
|
|
3281
3383
|
if (heroTypographyCss) cssChunks.push(heroTypographyCss);
|
|
3282
3384
|
const bodyTextTypographyCss = generateBodyTextTypographyCss(themeId, theme);
|
|
3283
3385
|
if (bodyTextTypographyCss) cssChunks.push(bodyTextTypographyCss);
|
|
3284
|
-
cssChunks.push(
|
|
3386
|
+
cssChunks.push(generateGroundPaintCss(selector));
|
|
3387
|
+
cssChunks.push(generateBoundaryCss(selector, options.responsiveMode));
|
|
3285
3388
|
return cssChunks.join("\n\n");
|
|
3286
3389
|
}
|
|
3287
3390
|
function toPaddingValue(preset) {
|
|
@@ -3705,7 +3808,8 @@ function buildThemeRuntime$1(theme, options) {
|
|
|
3705
3808
|
});
|
|
3706
3809
|
const layoutCss = generateLayoutCss({
|
|
3707
3810
|
themeId,
|
|
3708
|
-
theme
|
|
3811
|
+
theme,
|
|
3812
|
+
responsiveMode
|
|
3709
3813
|
});
|
|
3710
3814
|
const statusCss = generateStatusCss({
|
|
3711
3815
|
themeId,
|
|
@@ -5767,10 +5871,17 @@ const formSchema = z.union([z.null(), z.object({
|
|
|
5767
5871
|
const productsSchema = z.object({ products: z.array(z.object({ slug: z.string() })) });
|
|
5768
5872
|
const passesSchema = z.object({ passes: countSchema }).transform(({ passes }) => passes);
|
|
5769
5873
|
const membershipsSchema = z.object({ memberships: countSchema }).transform(({ memberships }) => memberships);
|
|
5874
|
+
const giftingSchema = z.object({
|
|
5875
|
+
giftCards: countSchema,
|
|
5876
|
+
vouchers: countSchema
|
|
5877
|
+
});
|
|
5770
5878
|
/** Both producers pass raw facts through the same stage admission. */
|
|
5771
5879
|
function readinessFactsFromLoaders(stage, input) {
|
|
5772
5880
|
const facts = {
|
|
5773
5881
|
catalogue: loaderFactProducers.catalogue(input),
|
|
5882
|
+
gifting: loaderFactProducers.gifting(input),
|
|
5883
|
+
eventFilters: loaderFactProducers.eventFilters(input),
|
|
5884
|
+
appointments: loaderFactProducers.appointments(input),
|
|
5774
5885
|
mailingList: loaderFactProducers.mailingList(input),
|
|
5775
5886
|
testimonials: loaderFactProducers.testimonials(input),
|
|
5776
5887
|
events: loaderFactProducers.events(input),
|
|
@@ -5793,6 +5904,9 @@ const loaderFactProducers = {
|
|
|
5793
5904
|
memberships: memberships.value
|
|
5794
5905
|
}) : unavailableReadinessFact;
|
|
5795
5906
|
},
|
|
5907
|
+
gifting: (input) => firstLoaderFact(input, "gifting", "offers", giftingSchema),
|
|
5908
|
+
eventFilters: () => unavailableReadinessFact,
|
|
5909
|
+
appointments: () => unavailableReadinessFact,
|
|
5796
5910
|
mailingList: (input) => input.mailingList === void 0 ? unavailableReadinessFact : loadedReadinessFact(input.mailingList),
|
|
5797
5911
|
testimonials: (input) => mapReadinessFact(firstLoaderFact(input, "testimonials", "entries", countSchema), (count) => ({
|
|
5798
5912
|
count,
|
|
@@ -8662,57 +8776,106 @@ function resolveDetailSlots(presentation) {
|
|
|
8662
8776
|
};
|
|
8663
8777
|
}
|
|
8664
8778
|
//#endregion
|
|
8665
|
-
//#region ../blocks/src/system/runtime/nodes/event-details/
|
|
8779
|
+
//#region ../blocks/src/system/runtime/nodes/event-details/eventPriceSummary.ts
|
|
8780
|
+
function decideEventPriceSummary(input) {
|
|
8781
|
+
if (input.options.length < 2) return {
|
|
8782
|
+
kind: "price",
|
|
8783
|
+
price: input.price,
|
|
8784
|
+
depositNote: input.depositNote
|
|
8785
|
+
};
|
|
8786
|
+
return {
|
|
8787
|
+
kind: "options",
|
|
8788
|
+
range: input.optionsCoverEveryPrice ? null : input.price,
|
|
8789
|
+
options: input.options,
|
|
8790
|
+
depositNote: input.depositNote
|
|
8791
|
+
};
|
|
8792
|
+
}
|
|
8666
8793
|
/** A course lists every active option, whether or not its sale window is open. */
|
|
8667
8794
|
function wholeSeriesPriceOptions(pricing) {
|
|
8668
8795
|
return pricing.kind === "tiered" ? pricing.options.filter((option) => option.isActive) : [];
|
|
8669
8796
|
}
|
|
8670
|
-
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
|
|
8674
|
-
|
|
8797
|
+
function wholeSeriesPriceSummary(pricing, depositNote) {
|
|
8798
|
+
return decideEventPriceSummary({
|
|
8799
|
+
price: formatBookingPriceDisplay(publicEventPricingDisplay(pricing), { decimals: "auto" }),
|
|
8800
|
+
options: wholeSeriesPriceOptions(pricing).map((option) => ({
|
|
8801
|
+
id: option.id,
|
|
8802
|
+
name: option.name,
|
|
8803
|
+
description: option.description,
|
|
8804
|
+
price: formatEventPriceAmount(option.priceAmount, pricing.currency)
|
|
8805
|
+
})),
|
|
8806
|
+
depositNote,
|
|
8807
|
+
optionsCoverEveryPrice: true
|
|
8808
|
+
});
|
|
8809
|
+
}
|
|
8810
|
+
//#endregion
|
|
8811
|
+
//#region ../blocks/src/system/runtime/nodes/event-details/EventFactRows.tsx
|
|
8812
|
+
/**
|
|
8813
|
+
* An event's facts as a short list: one row per fact, a small icon where a
|
|
8814
|
+
* label would be. The labels stay for screen readers. Each row is a direct
|
|
8815
|
+
* child of the list, so a site style's `facts > *` rules still reach it.
|
|
8816
|
+
*/
|
|
8817
|
+
function EventFactList({ slot, children }) {
|
|
8818
|
+
return /* @__PURE__ */ jsx("dl", {
|
|
8819
|
+
...slot,
|
|
8820
|
+
className: "rb-event-facts",
|
|
8821
|
+
children
|
|
8675
8822
|
});
|
|
8676
8823
|
}
|
|
8677
|
-
function
|
|
8678
|
-
const options = wholeSeriesPriceOptions(pricing);
|
|
8824
|
+
function EventFactRow({ fact, label, icon: Icon, slots, children }) {
|
|
8679
8825
|
return /* @__PURE__ */ jsxs("div", {
|
|
8680
8826
|
...slots.detail,
|
|
8681
|
-
|
|
8682
|
-
children: [
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
|
|
8687
|
-
|
|
8688
|
-
|
|
8827
|
+
"data-fact": fact,
|
|
8828
|
+
children: [/* @__PURE__ */ jsx("dt", {
|
|
8829
|
+
...slots.label,
|
|
8830
|
+
className: "rb-sr-only",
|
|
8831
|
+
children: label
|
|
8832
|
+
}), /* @__PURE__ */ jsxs("dd", {
|
|
8833
|
+
className: "rb-event-fact",
|
|
8834
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
8835
|
+
className: "rb-event-fact-icon",
|
|
8836
|
+
strokeWidth: 1.75
|
|
8837
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
8689
8838
|
...slots.value,
|
|
8690
|
-
className: "rb-
|
|
8691
|
-
children
|
|
8692
|
-
|
|
8693
|
-
|
|
8694
|
-
" ",
|
|
8695
|
-
formatEventPriceAmount(option.priceAmount, pricing.currency)
|
|
8696
|
-
] }), option.description ? /* @__PURE__ */ jsx("p", {
|
|
8697
|
-
className: "rb-caption status-muted",
|
|
8698
|
-
children: option.description
|
|
8699
|
-
}) : null] }, option.id))
|
|
8700
|
-
}) : /* @__PURE__ */ jsx(PriceLine, {
|
|
8701
|
-
price: formatBookingPriceDisplay(publicEventPricingDisplay(pricing), { decimals: "auto" }),
|
|
8702
|
-
depositNote,
|
|
8703
|
-
valueSlot: slots.value
|
|
8704
|
-
}),
|
|
8705
|
-
depositNote && options.length > 1 ? /* @__PURE__ */ jsxs("p", {
|
|
8706
|
-
className: "rb-caption rb-mt-1",
|
|
8707
|
-
children: [depositNote.charAt(0).toUpperCase(), depositNote.slice(1)]
|
|
8708
|
-
}) : null,
|
|
8709
|
-
acceptedItems.length > 0 ? /* @__PURE__ */ jsxs("p", {
|
|
8710
|
-
className: "rb-caption rb-mt-1",
|
|
8711
|
-
children: ["You can also attend with: ", acceptedItems.join(", ")]
|
|
8712
|
-
}) : null
|
|
8713
|
-
]
|
|
8839
|
+
className: "rb-event-fact-text",
|
|
8840
|
+
children
|
|
8841
|
+
})]
|
|
8842
|
+
})]
|
|
8714
8843
|
});
|
|
8715
8844
|
}
|
|
8845
|
+
/** The price, with any deposit option said beside it. */
|
|
8846
|
+
function PriceLine({ price, depositNote }) {
|
|
8847
|
+
return /* @__PURE__ */ jsxs("p", { children: [/* @__PURE__ */ jsx("strong", { children: price }), depositNote ? `, ${depositNote}` : null] });
|
|
8848
|
+
}
|
|
8849
|
+
/** Each price sits next to its name. Descriptions put one option on each line. */
|
|
8850
|
+
function PriceOptionList({ options }) {
|
|
8851
|
+
return /* @__PURE__ */ jsx("ul", {
|
|
8852
|
+
className: "rb-event-price-options",
|
|
8853
|
+
"data-described": options.some((option) => option.description) ? "" : void 0,
|
|
8854
|
+
children: options.map((option) => /* @__PURE__ */ jsxs("li", { children: [/* @__PURE__ */ jsxs("span", { children: [
|
|
8855
|
+
/* @__PURE__ */ jsx("strong", { children: option.price }),
|
|
8856
|
+
" ",
|
|
8857
|
+
option.name
|
|
8858
|
+
] }), option.description ? /* @__PURE__ */ jsx("span", {
|
|
8859
|
+
className: "rb-caption rb-event-fact-muted",
|
|
8860
|
+
children: option.description
|
|
8861
|
+
}) : null] }, option.id))
|
|
8862
|
+
});
|
|
8863
|
+
}
|
|
8864
|
+
const sentence = (text) => `${text.charAt(0).toUpperCase()}${text.slice(1)}`;
|
|
8865
|
+
function EventPriceSummaryLines({ summary }) {
|
|
8866
|
+
if (summary.kind === "price") return /* @__PURE__ */ jsx(PriceLine, {
|
|
8867
|
+
price: summary.price,
|
|
8868
|
+
depositNote: summary.depositNote
|
|
8869
|
+
});
|
|
8870
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8871
|
+
summary.range ? /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: summary.range }) }) : null,
|
|
8872
|
+
/* @__PURE__ */ jsx(PriceOptionList, { options: summary.options }),
|
|
8873
|
+
summary.depositNote ? /* @__PURE__ */ jsxs("p", {
|
|
8874
|
+
className: "rb-caption rb-event-fact-muted",
|
|
8875
|
+
children: [sentence(summary.depositNote), "."]
|
|
8876
|
+
}) : null
|
|
8877
|
+
] });
|
|
8878
|
+
}
|
|
8716
8879
|
//#endregion
|
|
8717
8880
|
//#region ../blocks/src/system/runtime/nodes/event-details/view.tsx
|
|
8718
8881
|
function formatAutoApplyDiscountLine(preview, currency) {
|
|
@@ -8730,79 +8893,71 @@ function TeamMemberName({ name, profilePath }) {
|
|
|
8730
8893
|
function formatTicketTypePrice(ticketType, currency) {
|
|
8731
8894
|
return formatBookingPriceDisplay(resolveExactOrFreePriceDisplay(ticketType.priceAmount, currency), { decimals: "auto" });
|
|
8732
8895
|
}
|
|
8896
|
+
/** A room's prices depend on the room, so the booking form shows them with it, not the price list. */
|
|
8897
|
+
const roomPriceIdsOf = (event) => event.rooms?.linkedOptionIds ?? [];
|
|
8898
|
+
/** With a room's prices left out of the list, the range line stays to say how far prices go. */
|
|
8899
|
+
const hasRoomPrices = (event) => event.pricing.kind === "tiered" && event.pricing.options.some((option) => roomPriceIdsOf(event).includes(option.id));
|
|
8733
8900
|
function getDisplayablePricingOptions(event) {
|
|
8734
|
-
const roomPriceIds = event
|
|
8901
|
+
const roomPriceIds = roomPriceIdsOf(event);
|
|
8735
8902
|
return event.pricing.kind === "tiered" ? event.pricing.options.filter(isPublicEventPricingOptionDisplayable).filter((option) => !roomPriceIds.includes(option.id)).sort((left, right) => left.sortOrder - right.sortOrder) : [];
|
|
8736
8903
|
}
|
|
8737
|
-
function
|
|
8738
|
-
|
|
8739
|
-
return
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
|
|
8743
|
-
|
|
8744
|
-
|
|
8745
|
-
|
|
8746
|
-
|
|
8747
|
-
|
|
8748
|
-
|
|
8904
|
+
function ticketPriceSummary(pricing, price) {
|
|
8905
|
+
const currency = pricing.eventPricingCurrency;
|
|
8906
|
+
return decideEventPriceSummary({
|
|
8907
|
+
price,
|
|
8908
|
+
options: currency ? pricing.ticketTypes.map((ticketType) => ({
|
|
8909
|
+
id: ticketType.id,
|
|
8910
|
+
name: ticketType.name,
|
|
8911
|
+
description: ticketType.description,
|
|
8912
|
+
price: formatTicketTypePrice(ticketType, currency)
|
|
8913
|
+
})) : [],
|
|
8914
|
+
depositNote: pricing.depositNote,
|
|
8915
|
+
optionsCoverEveryPrice: pricing.ticketsCoverEveryPrice
|
|
8916
|
+
});
|
|
8917
|
+
}
|
|
8918
|
+
function AcceptedItemsLine({ acceptedItems }) {
|
|
8919
|
+
return acceptedItems.length > 0 ? /* @__PURE__ */ jsxs("p", {
|
|
8920
|
+
className: "rb-caption",
|
|
8921
|
+
children: ["You can also attend with: ", acceptedItems.join(", ")]
|
|
8922
|
+
}) : null;
|
|
8749
8923
|
}
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
|
|
8757
|
-
|
|
8758
|
-
|
|
8759
|
-
|
|
8760
|
-
|
|
8761
|
-
|
|
8762
|
-
|
|
8763
|
-
|
|
8764
|
-
|
|
8765
|
-
|
|
8766
|
-
|
|
8767
|
-
|
|
8768
|
-
slots
|
|
8769
|
-
|
|
8770
|
-
|
|
8771
|
-
|
|
8772
|
-
className: "rb-mt-6",
|
|
8924
|
+
/** The price row, in whichever form this event's pricing takes. */
|
|
8925
|
+
function EventPricingDetails(props) {
|
|
8926
|
+
const { acceptedItems, slots } = props;
|
|
8927
|
+
if (props.isDropIn) return /* @__PURE__ */ jsx(EventFactRow, {
|
|
8928
|
+
slots,
|
|
8929
|
+
fact: "registration",
|
|
8930
|
+
label: "Registration",
|
|
8931
|
+
icon: TicketIcon,
|
|
8932
|
+
children: /* @__PURE__ */ jsx("p", { children: "No registration required - just show up" })
|
|
8933
|
+
});
|
|
8934
|
+
if (props.wholeSeriesPricingDisplay) return /* @__PURE__ */ jsxs(EventFactRow, {
|
|
8935
|
+
slots,
|
|
8936
|
+
fact: "price",
|
|
8937
|
+
label: "Cost",
|
|
8938
|
+
icon: TicketIcon,
|
|
8939
|
+
children: [/* @__PURE__ */ jsx(EventPriceSummaryLines, { summary: wholeSeriesPriceSummary(props.wholeSeriesPricingDisplay, props.depositNote) }), /* @__PURE__ */ jsx(AcceptedItemsLine, { acceptedItems })]
|
|
8940
|
+
});
|
|
8941
|
+
if (props.eventCostLabel) return /* @__PURE__ */ jsxs(EventFactRow, {
|
|
8942
|
+
slots,
|
|
8943
|
+
fact: "price",
|
|
8944
|
+
label: "Cost",
|
|
8945
|
+
icon: TicketIcon,
|
|
8773
8946
|
children: [
|
|
8774
|
-
/* @__PURE__ */ jsx(
|
|
8775
|
-
|
|
8776
|
-
className: "rb-
|
|
8777
|
-
children:
|
|
8778
|
-
}),
|
|
8779
|
-
/* @__PURE__ */ jsx(PriceLine, {
|
|
8780
|
-
price: eventCostLabel,
|
|
8781
|
-
depositNote,
|
|
8782
|
-
valueSlot: slots.value
|
|
8783
|
-
}),
|
|
8784
|
-
autoApplyDiscount && eventPricingCurrency ? /* @__PURE__ */ jsx("p", {
|
|
8785
|
-
className: "rb-caption rb-mt-1",
|
|
8786
|
-
children: formatAutoApplyDiscountLine(autoApplyDiscount, eventPricingCurrency)
|
|
8787
|
-
}) : null,
|
|
8788
|
-
eventPricingCurrency && ticketTypes.length > 1 ? /* @__PURE__ */ jsx(TicketTypePriceList, {
|
|
8789
|
-
ticketTypes,
|
|
8790
|
-
currency: eventPricingCurrency
|
|
8947
|
+
/* @__PURE__ */ jsx(EventPriceSummaryLines, { summary: ticketPriceSummary(props, props.eventCostLabel) }),
|
|
8948
|
+
props.autoApplyDiscount && props.eventPricingCurrency ? /* @__PURE__ */ jsx("p", {
|
|
8949
|
+
className: "rb-caption",
|
|
8950
|
+
children: formatAutoApplyDiscountLine(props.autoApplyDiscount, props.eventPricingCurrency)
|
|
8791
8951
|
}) : null,
|
|
8792
|
-
|
|
8793
|
-
className: "rb-caption rb-mt-1",
|
|
8794
|
-
children: ["You can also attend with: ", acceptedItems.join(", ")]
|
|
8795
|
-
}) : null
|
|
8952
|
+
/* @__PURE__ */ jsx(AcceptedItemsLine, { acceptedItems })
|
|
8796
8953
|
]
|
|
8797
8954
|
});
|
|
8798
|
-
return acceptedItems.length > 0 ? /* @__PURE__ */ jsx(
|
|
8799
|
-
|
|
8800
|
-
|
|
8801
|
-
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
children: ["You can also attend with: ", acceptedItems.join(", ")]
|
|
8805
|
-
})
|
|
8955
|
+
return acceptedItems.length > 0 ? /* @__PURE__ */ jsx(EventFactRow, {
|
|
8956
|
+
slots,
|
|
8957
|
+
fact: "accepted",
|
|
8958
|
+
label: "Passes and memberships",
|
|
8959
|
+
icon: TicketIcon,
|
|
8960
|
+
children: /* @__PURE__ */ jsx(AcceptedItemsLine, { acceptedItems })
|
|
8806
8961
|
}) : null;
|
|
8807
8962
|
}
|
|
8808
8963
|
function EventFacts({ selection, selected, venue, online, addressAfterBooking, teamMembers, pricing, showCapacity, lookSlots, slots }) {
|
|
@@ -8812,27 +8967,18 @@ function EventFacts({ selection, selected, venue, online, addressAfterBooking, t
|
|
|
8812
8967
|
...eventDateOptions(selected)
|
|
8813
8968
|
});
|
|
8814
8969
|
const dateHeading = selection.kind === "wholeSeries" ? runLifecycleLabel(selection.lifecycle) : selection.mode === "next" ? "Next date" : "Date";
|
|
8815
|
-
return /* @__PURE__ */ jsxs(
|
|
8816
|
-
|
|
8817
|
-
className: "rb-flex rb-flex-col rb-gap-4",
|
|
8970
|
+
return /* @__PURE__ */ jsxs(EventFactList, {
|
|
8971
|
+
slot: listLookSlot({ lookSlots }, "facts"),
|
|
8818
8972
|
children: [
|
|
8819
|
-
/* @__PURE__ */ jsxs(
|
|
8820
|
-
|
|
8821
|
-
|
|
8822
|
-
|
|
8823
|
-
|
|
8824
|
-
|
|
8825
|
-
|
|
8826
|
-
|
|
8827
|
-
|
|
8828
|
-
...slots.value,
|
|
8829
|
-
children: /* @__PURE__ */ jsx("strong", { children: date })
|
|
8830
|
-
}),
|
|
8831
|
-
/* @__PURE__ */ jsx("p", {
|
|
8832
|
-
className: "rb-caption",
|
|
8833
|
-
children: timeRange
|
|
8834
|
-
})
|
|
8835
|
-
]
|
|
8973
|
+
/* @__PURE__ */ jsxs(EventFactRow, {
|
|
8974
|
+
slots,
|
|
8975
|
+
fact: "date",
|
|
8976
|
+
label: dateHeading,
|
|
8977
|
+
icon: CalendarIcon$1,
|
|
8978
|
+
children: [/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: date }) }), /* @__PURE__ */ jsx("p", {
|
|
8979
|
+
className: "rb-event-fact-muted",
|
|
8980
|
+
children: timeRange
|
|
8981
|
+
})]
|
|
8836
8982
|
}),
|
|
8837
8983
|
/* @__PURE__ */ jsx(EventVenueFact, {
|
|
8838
8984
|
venue,
|
|
@@ -8844,17 +8990,12 @@ function EventFacts({ selection, selected, venue, online, addressAfterBooking, t
|
|
|
8844
8990
|
teamMembers,
|
|
8845
8991
|
slots
|
|
8846
8992
|
}),
|
|
8847
|
-
showCapacity && selected.capacity != null ? /* @__PURE__ */
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
|
|
8851
|
-
|
|
8852
|
-
|
|
8853
|
-
children: "Places"
|
|
8854
|
-
}), /* @__PURE__ */ jsx("p", {
|
|
8855
|
-
...slots.value,
|
|
8856
|
-
children: formatEventRemainingPlaces(selected) ?? formatTotalCapacity(selected.capacity)
|
|
8857
|
-
})]
|
|
8993
|
+
showCapacity && selected.capacity != null ? /* @__PURE__ */ jsx(EventFactRow, {
|
|
8994
|
+
slots,
|
|
8995
|
+
fact: "places",
|
|
8996
|
+
label: "Places",
|
|
8997
|
+
icon: UsersIcon,
|
|
8998
|
+
children: /* @__PURE__ */ jsx("p", { children: formatEventRemainingPlaces(selected) ?? formatTotalCapacity(selected.capacity) })
|
|
8858
8999
|
}) : null,
|
|
8859
9000
|
pricing,
|
|
8860
9001
|
selection.kind === "wholeSeries" ? /* @__PURE__ */ jsx(BookingState, {
|
|
@@ -8871,37 +9012,26 @@ const addressAfterBookingShown = (event, showVenue) => showVenue && event.addres
|
|
|
8871
9012
|
/** Where a venue would go: online, the owner's word that the address follows the booking, or nothing at all. */
|
|
8872
9013
|
function EventPlaceWithoutVenue({ online, addressAfterBooking, slots }) {
|
|
8873
9014
|
if (!online && !addressAfterBooking) return null;
|
|
8874
|
-
if (!online) return /* @__PURE__ */
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
8885
|
-
|
|
8886
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
8887
|
-
...slots.detail,
|
|
8888
|
-
className: "rb-mt-6",
|
|
9015
|
+
if (!online) return /* @__PURE__ */ jsx(EventFactRow, {
|
|
9016
|
+
slots,
|
|
9017
|
+
fact: "venue",
|
|
9018
|
+
label: "Venue",
|
|
9019
|
+
icon: MapPinIcon$1,
|
|
9020
|
+
children: /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: EVENT_ADDRESS_AFTER_BOOKING_LABEL }) })
|
|
9021
|
+
});
|
|
9022
|
+
return /* @__PURE__ */ jsxs(EventFactRow, {
|
|
9023
|
+
slots,
|
|
9024
|
+
fact: "venue",
|
|
9025
|
+
label: "Venue",
|
|
9026
|
+
icon: GlobeIcon,
|
|
8889
9027
|
children: [
|
|
8890
|
-
/* @__PURE__ */ jsx("
|
|
8891
|
-
...slots.label,
|
|
8892
|
-
className: "rb-label rb-mb-2",
|
|
8893
|
-
children: "Venue"
|
|
8894
|
-
}),
|
|
8895
|
-
/* @__PURE__ */ jsx("p", {
|
|
8896
|
-
...slots.value,
|
|
8897
|
-
children: /* @__PURE__ */ jsx("strong", { children: online.mode === "online" ? "Online" : "In person or online" })
|
|
8898
|
-
}),
|
|
9028
|
+
/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: online.mode === "online" ? "Online" : "In person or online" }) }),
|
|
8899
9029
|
addressAfterBooking ? /* @__PURE__ */ jsxs("p", {
|
|
8900
|
-
className: "rb-caption",
|
|
9030
|
+
className: "rb-caption rb-event-fact-muted",
|
|
8901
9031
|
children: [EVENT_ADDRESS_AFTER_BOOKING_LABEL, "."]
|
|
8902
9032
|
}) : null,
|
|
8903
9033
|
online.note ? /* @__PURE__ */ jsx("p", {
|
|
8904
|
-
className: "rb-caption",
|
|
9034
|
+
className: "rb-caption rb-event-fact-muted",
|
|
8905
9035
|
children: online.note
|
|
8906
9036
|
}) : null
|
|
8907
9037
|
]
|
|
@@ -8915,57 +9045,45 @@ function EventVenueFact({ venue, online, addressAfterBooking, slots }) {
|
|
|
8915
9045
|
slots
|
|
8916
9046
|
});
|
|
8917
9047
|
const { place, addressWithBooking } = eventVenuePlace(venue);
|
|
8918
|
-
return /* @__PURE__ */ jsxs(
|
|
8919
|
-
|
|
8920
|
-
|
|
9048
|
+
return /* @__PURE__ */ jsxs(EventFactRow, {
|
|
9049
|
+
slots,
|
|
9050
|
+
fact: "venue",
|
|
9051
|
+
label: "Venue",
|
|
9052
|
+
icon: MapPinIcon$1,
|
|
8921
9053
|
children: [
|
|
8922
|
-
/* @__PURE__ */ jsx("
|
|
8923
|
-
...slots.label,
|
|
8924
|
-
className: "rb-label rb-mb-2",
|
|
8925
|
-
children: "Venue"
|
|
8926
|
-
}),
|
|
8927
|
-
/* @__PURE__ */ jsx("p", {
|
|
8928
|
-
...slots.value,
|
|
8929
|
-
children: /* @__PURE__ */ jsx("strong", { children: venue.name })
|
|
8930
|
-
}),
|
|
8931
|
-
place ? /* @__PURE__ */ jsx("p", {
|
|
8932
|
-
className: "rb-caption",
|
|
8933
|
-
children: place
|
|
8934
|
-
}) : null,
|
|
9054
|
+
/* @__PURE__ */ jsxs("p", { children: [/* @__PURE__ */ jsx("strong", { children: venue.name }), place ? `, ${place}` : null] }),
|
|
8935
9055
|
addressWithBooking ? /* @__PURE__ */ jsx("p", {
|
|
8936
|
-
className: "rb-caption rb-
|
|
9056
|
+
className: "rb-caption rb-event-fact-muted",
|
|
8937
9057
|
children: "The full address and directions come with your booking confirmation."
|
|
8938
9058
|
}) : /* @__PURE__ */ jsx(LocationMapActions, {
|
|
8939
9059
|
location: venue.location,
|
|
8940
9060
|
addressText: venue.address
|
|
8941
9061
|
}),
|
|
8942
9062
|
online ? /* @__PURE__ */ jsxs("p", {
|
|
8943
|
-
className: "rb-caption rb-
|
|
9063
|
+
className: "rb-caption rb-event-fact-muted",
|
|
8944
9064
|
children: ["You can also join online.", online.note ? ` ${online.note}` : ""]
|
|
8945
9065
|
}) : null
|
|
8946
9066
|
]
|
|
8947
9067
|
});
|
|
8948
9068
|
}
|
|
9069
|
+
/** "With Alice", "With Alice and Ben", "With Alice, Ben and Cara". */
|
|
9070
|
+
const nameSeparator = (index, count) => index === 0 ? "" : index === count - 1 ? " and " : ", ";
|
|
8949
9071
|
function EventTeacherFacts({ teamMembers, slots }) {
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
children: member.summary
|
|
8966
|
-
}) : null] }, member.id))
|
|
8967
|
-
})]
|
|
8968
|
-
}) : null;
|
|
9072
|
+
if (teamMembers.length === 0) return null;
|
|
9073
|
+
const described = teamMembers.filter((member) => member.summary);
|
|
9074
|
+
return /* @__PURE__ */ jsxs(EventFactRow, {
|
|
9075
|
+
slots,
|
|
9076
|
+
fact: "team",
|
|
9077
|
+
label: "With",
|
|
9078
|
+
icon: UserIcon,
|
|
9079
|
+
children: [/* @__PURE__ */ jsxs("p", { children: ["With ", teamMembers.map((member, index) => /* @__PURE__ */ jsxs(React.Fragment, { children: [nameSeparator(index, teamMembers.length), /* @__PURE__ */ jsx(TeamMemberName, {
|
|
9080
|
+
name: member.name,
|
|
9081
|
+
profilePath: member.profilePath
|
|
9082
|
+
})] }, member.id))] }), described.map((member) => /* @__PURE__ */ jsxs("p", {
|
|
9083
|
+
className: "rb-caption rb-event-fact-muted",
|
|
9084
|
+
children: [teamMembers.length > 1 ? `${member.name}: ` : null, member.summary]
|
|
9085
|
+
}, member.id))]
|
|
9086
|
+
});
|
|
8969
9087
|
}
|
|
8970
9088
|
/**
|
|
8971
9089
|
* Where the run has got to, in the words a visitor would use.
|
|
@@ -8990,24 +9108,15 @@ function runLifecycleLabel(lifecycle) {
|
|
|
8990
9108
|
* actually notices.
|
|
8991
9109
|
*/
|
|
8992
9110
|
function BookingState({ phase, event, slots }) {
|
|
8993
|
-
return /* @__PURE__ */ jsxs(
|
|
8994
|
-
|
|
8995
|
-
|
|
8996
|
-
|
|
8997
|
-
|
|
8998
|
-
|
|
8999
|
-
|
|
9000
|
-
|
|
9001
|
-
|
|
9002
|
-
/* @__PURE__ */ jsx("p", {
|
|
9003
|
-
...slots.value,
|
|
9004
|
-
children: /* @__PURE__ */ jsx("strong", { children: phase.kind === "closed" ? "Closed" : isEventFull(event) ? formatEventRemainingPlaces(event) : "Open" })
|
|
9005
|
-
}),
|
|
9006
|
-
phase.kind === "closed" ? /* @__PURE__ */ jsx("p", {
|
|
9007
|
-
className: "rb-caption",
|
|
9008
|
-
children: bookingClosedReason(phase.reason)
|
|
9009
|
-
}) : null
|
|
9010
|
-
]
|
|
9111
|
+
return /* @__PURE__ */ jsxs(EventFactRow, {
|
|
9112
|
+
slots,
|
|
9113
|
+
fact: "booking",
|
|
9114
|
+
label: "Booking",
|
|
9115
|
+
icon: InfoIcon,
|
|
9116
|
+
children: [/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: phase.kind === "closed" ? "Closed" : isEventFull(event) ? formatEventRemainingPlaces(event) : "Open" }) }), phase.kind === "closed" ? /* @__PURE__ */ jsx("p", {
|
|
9117
|
+
className: "rb-caption rb-event-fact-muted",
|
|
9118
|
+
children: bookingClosedReason(phase.reason)
|
|
9119
|
+
}) : null]
|
|
9011
9120
|
});
|
|
9012
9121
|
}
|
|
9013
9122
|
function bookingClosedReason(reason) {
|
|
@@ -9120,7 +9229,8 @@ function selectedEventPricing(selection, showCost) {
|
|
|
9120
9229
|
eventCostLabel: showEventCost ? formatEventPrice(event) : null,
|
|
9121
9230
|
depositNote: showCost && !isDropIn && isPaid(event) ? formatEventDepositNote(selection.depositOffer) : null,
|
|
9122
9231
|
eventPricingCurrency: publicEventPricingCurrency(event.pricing),
|
|
9123
|
-
ticketTypes: showEventCost && isPaid(event) ? getDisplayablePricingOptions(event) : []
|
|
9232
|
+
ticketTypes: showEventCost && isPaid(event) ? getDisplayablePricingOptions(event) : [],
|
|
9233
|
+
ticketsCoverEveryPrice: !hasRoomPrices(event)
|
|
9124
9234
|
};
|
|
9125
9235
|
}
|
|
9126
9236
|
const wholeSeriesPricingOf = (event) => event.bookingScope === "whole_series" && event.pricing.kind !== "external" ? event.pricing : null;
|
|
@@ -9256,25 +9366,22 @@ function EventHeaderPanel(props) {
|
|
|
9256
9366
|
});
|
|
9257
9367
|
}
|
|
9258
9368
|
function HeaderPanelFacts({ venue, online, addressAfterBooking, teamMembers, pricing, slots }) {
|
|
9259
|
-
return /* @__PURE__ */ jsxs(
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
|
|
9263
|
-
|
|
9264
|
-
|
|
9265
|
-
|
|
9266
|
-
|
|
9267
|
-
|
|
9268
|
-
|
|
9269
|
-
|
|
9270
|
-
|
|
9271
|
-
|
|
9272
|
-
|
|
9273
|
-
|
|
9274
|
-
|
|
9275
|
-
}) : null
|
|
9276
|
-
]
|
|
9277
|
-
});
|
|
9369
|
+
return /* @__PURE__ */ jsxs(EventFactList, { children: [
|
|
9370
|
+
/* @__PURE__ */ jsx(EventVenueFact, {
|
|
9371
|
+
venue,
|
|
9372
|
+
online,
|
|
9373
|
+
addressAfterBooking,
|
|
9374
|
+
slots
|
|
9375
|
+
}),
|
|
9376
|
+
/* @__PURE__ */ jsx(EventTeacherFacts, {
|
|
9377
|
+
teamMembers,
|
|
9378
|
+
slots
|
|
9379
|
+
}),
|
|
9380
|
+
pricing ? /* @__PURE__ */ jsx(EventPricingDetails, {
|
|
9381
|
+
...pricing,
|
|
9382
|
+
slots
|
|
9383
|
+
}) : null
|
|
9384
|
+
] });
|
|
9278
9385
|
}
|
|
9279
9386
|
/** What the panel has to add to the header, decided once. */
|
|
9280
9387
|
function headerPanelContent(props) {
|
|
@@ -11233,6 +11340,11 @@ function CheckoutSSR({ blockId, siteId, apiBaseUrl, stage, demoEmailSuppressed,
|
|
|
11233
11340
|
//#endregion
|
|
11234
11341
|
//#region ../blocks/src/system/runtime/nodes/gifting.parts.tsx
|
|
11235
11342
|
const CUSTOM_GIFT_AMOUNT = "custom";
|
|
11343
|
+
/**
|
|
11344
|
+
* What the panel says with no offers to show. Visitors only see it if the
|
|
11345
|
+
* offers couldn't be read: with nothing on offer the block stays hidden.
|
|
11346
|
+
*/
|
|
11347
|
+
const GIFTING_NOTHING_TO_SHOW = "Nothing is available right now.";
|
|
11236
11348
|
/** A Look's hook (and, for the panel, its surface) on one part of the gifting panel; nothing outside a Look. */
|
|
11237
11349
|
function giftingSlot(look, slot) {
|
|
11238
11350
|
return listLookSlot(look ?? {}, slot);
|
|
@@ -11400,7 +11512,7 @@ function GiftingSSR({ blockId, ...rest }) {
|
|
|
11400
11512
|
}, group.kind))
|
|
11401
11513
|
}) : /* @__PURE__ */ jsx("p", {
|
|
11402
11514
|
className: "gifting-empty",
|
|
11403
|
-
children:
|
|
11515
|
+
children: GIFTING_NOTHING_TO_SHOW
|
|
11404
11516
|
})
|
|
11405
11517
|
})]
|
|
11406
11518
|
})
|
|
@@ -15671,6 +15783,62 @@ function requireThemeResources(resources, blockKind) {
|
|
|
15671
15783
|
return resources;
|
|
15672
15784
|
}
|
|
15673
15785
|
//#endregion
|
|
15786
|
+
//#region ../blocks/src/sectionBoundaryTextures.tsx
|
|
15787
|
+
/** A textured join's entire paint stack moves together, preserving colour/alpha order. */
|
|
15788
|
+
function sectionOwnsBoundaryPaint(layout) {
|
|
15789
|
+
return Boolean(layout.underlay?.texture || layout.paint.front.texture || layout.paint.back.some((paint) => paint.texture));
|
|
15790
|
+
}
|
|
15791
|
+
function boundaryColourCss(colour) {
|
|
15792
|
+
return colour.startsWith("#") ? colour : `rgb(var(--tb-${colour}))`;
|
|
15793
|
+
}
|
|
15794
|
+
/** Planes share their owner's full height. Only their edge masks extend outside its box. */
|
|
15795
|
+
function sectionBoundaryPaint(input) {
|
|
15796
|
+
const planes = [edgePlanes(renderedJoinLayout(input.before?.join ?? null), "start"), edgePlanes(renderedJoinLayout(input.after?.join ?? null), "end")].flat();
|
|
15797
|
+
return planes.length ? planes : null;
|
|
15798
|
+
}
|
|
15799
|
+
function edgePlanes(layout, side) {
|
|
15800
|
+
if (!layout || !sectionOwnsBoundaryPaint(layout)) return [];
|
|
15801
|
+
const underlay = side === "end" && layout.underlay ? [paintPlane(layout, layout.underlay, side, "underlay", -1)] : [];
|
|
15802
|
+
return side === (layout.placement === "next" ? "end" : "start") ? [
|
|
15803
|
+
...underlay,
|
|
15804
|
+
...layout.paint.back.map((paint, index) => paintPlane(layout, paint, side, "back", index)).reverse(),
|
|
15805
|
+
paintPlane(layout, layout.paint.front, side, "front", -1)
|
|
15806
|
+
] : underlay;
|
|
15807
|
+
}
|
|
15808
|
+
function planeGeometry(layout, side, underlay, index) {
|
|
15809
|
+
const height = underlay ? "var(--boundary-height)" : "var(--boundary-shape-height)";
|
|
15810
|
+
const offset = index < 0 ? 0 : (index + 1) * .12;
|
|
15811
|
+
const overhang = `calc(${height} * ${underlay || layout.placement === "centred" ? .5 + offset : 1 + offset})`;
|
|
15812
|
+
return {
|
|
15813
|
+
"--section-edge-height": height,
|
|
15814
|
+
top: side === "start" ? `calc(-1 * ${overhang})` : 0,
|
|
15815
|
+
bottom: side === "end" ? `calc(-1 * ${overhang})` : 0,
|
|
15816
|
+
"--section-texture-y": side === "start" ? overhang : "0px",
|
|
15817
|
+
maskPosition: side === "start" ? "0 0" : "0 100%",
|
|
15818
|
+
WebkitMaskPosition: side === "start" ? "0 0" : "0 100%"
|
|
15819
|
+
};
|
|
15820
|
+
}
|
|
15821
|
+
function backMasks(index) {
|
|
15822
|
+
return index >= 0 && index % 2 === 0 ? Object.fromEntries(["texture-mask", "section-mask"].flatMap((property) => ["wide", "narrow"].map((width) => [`--boundary-${property}-${width}`, `var(--boundary-back-${property}-${width})`]))) : {};
|
|
15823
|
+
}
|
|
15824
|
+
function paintPlane(layout, paint, side, role, index) {
|
|
15825
|
+
const style = {
|
|
15826
|
+
...layout.geometry,
|
|
15827
|
+
...backMasks(index),
|
|
15828
|
+
...planeGeometry(layout, side, role === "underlay", index),
|
|
15829
|
+
...paint.texture ? groundTextureStyle(paint.texture) : {},
|
|
15830
|
+
backgroundColor: boundaryColourCss(paint.colour),
|
|
15831
|
+
opacity: index < 0 ? 1 : (layout.paint.back.length - index) / (layout.paint.back.length + 1)
|
|
15832
|
+
};
|
|
15833
|
+
return /* @__PURE__ */ jsx("span", {
|
|
15834
|
+
"aria-hidden": "true",
|
|
15835
|
+
"data-section-edge-paint": role,
|
|
15836
|
+
"data-section-edge-side": side,
|
|
15837
|
+
"data-section-edge-fade": role !== "underlay" && layout.geometry["--boundary-shape-background"]?.startsWith("linear-gradient") ? "" : void 0,
|
|
15838
|
+
style
|
|
15839
|
+
}, `${side}:${role}:${index}`);
|
|
15840
|
+
}
|
|
15841
|
+
//#endregion
|
|
15674
15842
|
//#region ../blocks/src/pageRendererBoundaries.tsx
|
|
15675
15843
|
function joinSlotsByPair(slots) {
|
|
15676
15844
|
return new Map(slots.map((slot) => [joinSlotKey(slot.previousBlockId, slot.nextBlockId), slot]));
|
|
@@ -15687,16 +15855,7 @@ function renderJoinSlot(input) {
|
|
|
15687
15855
|
const { slot } = input;
|
|
15688
15856
|
if (!slot) return null;
|
|
15689
15857
|
const layout = renderedJoinLayout(slot.join);
|
|
15690
|
-
const painted = slot.join && layout ?
|
|
15691
|
-
"aria-hidden": "true",
|
|
15692
|
-
"data-block-boundary": "",
|
|
15693
|
-
"data-boundary-id": slot.join.boundaryId,
|
|
15694
|
-
"data-boundary-previous-block-id": slot.previousBlockId,
|
|
15695
|
-
"data-boundary-next-block-id": slot.nextBlockId,
|
|
15696
|
-
"data-boundary-treatment": slot.join.treatment,
|
|
15697
|
-
"data-boundary-placement": layout.placement,
|
|
15698
|
-
style: boundaryPaintStyle(layout.paint)
|
|
15699
|
-
}, `${input.blockKey}:boundary`) : null;
|
|
15858
|
+
const painted = slot.join && layout ? paintedBoundary(slot, slot.join, layout, input.blockKey) : null;
|
|
15700
15859
|
const extra = input.renderJoin?.({
|
|
15701
15860
|
previousBlockId: slot.previousBlockId,
|
|
15702
15861
|
nextBlockId: slot.nextBlockId,
|
|
@@ -15705,18 +15864,65 @@ function renderJoinSlot(input) {
|
|
|
15705
15864
|
if (!painted && (extra === null || extra === void 0)) return null;
|
|
15706
15865
|
return /* @__PURE__ */ jsxs(React.Fragment, { children: [painted, extra] }, `${input.blockKey}:join`);
|
|
15707
15866
|
}
|
|
15708
|
-
|
|
15709
|
-
* The one render-edge place a theme token becomes CSS.
|
|
15710
|
-
*/
|
|
15711
|
-
function themeTokenCss(token) {
|
|
15712
|
-
return `rgb(var(--tb-${token}))`;
|
|
15713
|
-
}
|
|
15714
|
-
function boundaryPaintStyle(paint) {
|
|
15867
|
+
function boundaryPaintStyle(layout) {
|
|
15715
15868
|
return {
|
|
15716
|
-
|
|
15717
|
-
|
|
15869
|
+
...layout.geometry,
|
|
15870
|
+
"--boundary-shape-paint": boundaryColourCss(layout.paint.front.colour),
|
|
15871
|
+
...layout.underlay ? { "--boundary-band-paint": boundaryColourCss(layout.underlay.colour) } : {}
|
|
15718
15872
|
};
|
|
15719
15873
|
}
|
|
15874
|
+
function paintedBoundary(slot, join, layout, key) {
|
|
15875
|
+
return /* @__PURE__ */ jsx("div", {
|
|
15876
|
+
"aria-hidden": "true",
|
|
15877
|
+
"data-block-boundary": "",
|
|
15878
|
+
"data-boundary-geometry": "",
|
|
15879
|
+
"data-boundary-section-owned": sectionOwnsBoundaryPaint(layout) ? "" : void 0,
|
|
15880
|
+
"data-boundary-id": join.boundaryId,
|
|
15881
|
+
"data-boundary-previous-block-id": slot.previousBlockId,
|
|
15882
|
+
"data-boundary-next-block-id": slot.nextBlockId,
|
|
15883
|
+
"data-boundary-treatment": join.treatment,
|
|
15884
|
+
"data-boundary-placement": layout.placement,
|
|
15885
|
+
style: boundaryPaintStyle(layout),
|
|
15886
|
+
children: sectionOwnsBoundaryPaint(layout) ? null : layout.paint.back.map((paint, index) => renderBackLayer(paint, index, layout))
|
|
15887
|
+
}, `${key}:boundary`);
|
|
15888
|
+
}
|
|
15889
|
+
function renderBackLayer(paint, index, layout) {
|
|
15890
|
+
const offset = 12 * (index + 1);
|
|
15891
|
+
const mirror = index % 2 === 0 ? "-1" : "1";
|
|
15892
|
+
const opacity = (layout.paint.back.length - index) / (layout.paint.back.length + 1);
|
|
15893
|
+
return /* @__PURE__ */ jsx("span", {
|
|
15894
|
+
"data-boundary-back": "",
|
|
15895
|
+
style: {
|
|
15896
|
+
...{
|
|
15897
|
+
previous: {
|
|
15898
|
+
paint: {
|
|
15899
|
+
bottom: 0,
|
|
15900
|
+
transform: `translateY(-${offset}%) scaleX(${mirror})`
|
|
15901
|
+
},
|
|
15902
|
+
texture: { bottom: `calc(var(--boundary-height) * ${offset / 100})` }
|
|
15903
|
+
},
|
|
15904
|
+
next: {
|
|
15905
|
+
paint: {
|
|
15906
|
+
top: 0,
|
|
15907
|
+
transform: `translateY(${offset}%) scaleY(-1) scaleX(${mirror})`
|
|
15908
|
+
},
|
|
15909
|
+
texture: { top: `calc(var(--boundary-height) * ${offset / 100})` }
|
|
15910
|
+
},
|
|
15911
|
+
centred: {
|
|
15912
|
+
paint: {
|
|
15913
|
+
top: 0,
|
|
15914
|
+
transform: `translateY(-${50 + offset}%) scaleX(${mirror})`
|
|
15915
|
+
},
|
|
15916
|
+
texture: { top: `calc(var(--boundary-shape-height) / -2 - var(--boundary-height) * ${offset / 100})` }
|
|
15917
|
+
}
|
|
15918
|
+
}[layout.placement].paint,
|
|
15919
|
+
opacity,
|
|
15920
|
+
"--boundary-shape-paint": boundaryColourCss(paint.colour),
|
|
15921
|
+
"--boundary-shape-background": layout.geometry["--boundary-shape-background"],
|
|
15922
|
+
"--boundary-shape-background-mixed": layout.geometry["--boundary-shape-background-mixed"]
|
|
15923
|
+
}
|
|
15924
|
+
}, index);
|
|
15925
|
+
}
|
|
15720
15926
|
/**
|
|
15721
15927
|
* Reserve attributes and variables for a block wrapper, from the joins on
|
|
15722
15928
|
* either side. A join's `before` reserve sits inside its previous section, so
|
|
@@ -15726,16 +15932,19 @@ function boundaryPaintStyle(paint) {
|
|
|
15726
15932
|
function blockBoundaryReserves(input) {
|
|
15727
15933
|
const top = reserveOnSide(input.before, "after");
|
|
15728
15934
|
const bottom = reserveOnSide(input.after, "before");
|
|
15935
|
+
const edgePaint = sectionBoundaryPaint(input);
|
|
15729
15936
|
const style = {
|
|
15937
|
+
...edgePaint ? { position: "relative" } : {},
|
|
15730
15938
|
...top ? { "--site-style-boundary-before-reserve": top.length } : {},
|
|
15731
15939
|
...bottom ? { "--site-style-boundary-after-reserve": bottom.length } : {}
|
|
15732
15940
|
};
|
|
15733
15941
|
return {
|
|
15942
|
+
edgePaint,
|
|
15734
15943
|
topPlacement: top?.placement,
|
|
15735
15944
|
bottomPlacement: bottom?.placement,
|
|
15736
15945
|
seamBefore: seamAttribute(input.before),
|
|
15737
15946
|
seamAfter: seamAttribute(input.after),
|
|
15738
|
-
style:
|
|
15947
|
+
style: Object.keys(style).length ? style : void 0
|
|
15739
15948
|
};
|
|
15740
15949
|
}
|
|
15741
15950
|
function seamAttribute(slot) {
|
|
@@ -16331,6 +16540,10 @@ function composeSurvivorJoins(plan, survivors, themeResources) {
|
|
|
16331
16540
|
originalBlocks: plan.regions.main.map((planned) => planned.block),
|
|
16332
16541
|
survivingBlocks: new Set(survivors.map((survivor) => survivor.entry.block))
|
|
16333
16542
|
}),
|
|
16543
|
+
context: themeResources.kind === "available" ? {
|
|
16544
|
+
siteStyleId: themeResources.config?.siteStyleId,
|
|
16545
|
+
palette: themeResources.tokens.palette
|
|
16546
|
+
} : void 0,
|
|
16334
16547
|
survivors: survivors.map(({ entry }) => ({
|
|
16335
16548
|
id: entry.block.id,
|
|
16336
16549
|
kind: entry.block.kind,
|
|
@@ -16836,7 +17049,7 @@ function renderPlanEntry(input) {
|
|
|
16836
17049
|
before: joinBefore,
|
|
16837
17050
|
after: joinAfter
|
|
16838
17051
|
});
|
|
16839
|
-
const blockElement = /* @__PURE__ */
|
|
17052
|
+
const blockElement = /* @__PURE__ */ jsxs("div", {
|
|
16840
17053
|
id: blockAnchorId(block),
|
|
16841
17054
|
className: wrapperClassName,
|
|
16842
17055
|
...arrangementHooksFromContent(renderableContent),
|
|
@@ -16856,7 +17069,7 @@ function renderPlanEntry(input) {
|
|
|
16856
17069
|
"data-site-style-seam-after": reserves.seamAfter,
|
|
16857
17070
|
"data-style-group": styleGroup,
|
|
16858
17071
|
style: reserves.style,
|
|
16859
|
-
children: /* @__PURE__ */ jsx(MemoBlockSection, { ...blockSectionProps })
|
|
17072
|
+
children: [/* @__PURE__ */ jsx(MemoBlockSection, { ...blockSectionProps }), reserves.edgePaint]
|
|
16860
17073
|
}, blockKey);
|
|
16861
17074
|
if (boundaryElement) return /* @__PURE__ */ jsxs(React$1.Fragment, { children: [blockElement, boundaryElement] }, blockKey);
|
|
16862
17075
|
return blockElement;
|