@riverbankcms/sdk 0.180.0 → 0.181.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-DC_AvZwy.d.ts → BlocksIslandsHydrator-CVCasDPz.d.ts} +1 -1
- package/dist/_dts/{Page-DQOxVtp3.d.ts → Page-Dtj2Ui3S.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DrLgY9_f.d.ts → SdkPreviewMode-D1f_60WW.d.ts} +2 -2
- package/dist/_dts/{client-BP7VBRvs.d.ts → client-Chr9pNVW.d.ts} +58 -70
- package/dist/_dts/{content-types-1-K2qi__.d.ts → content-types-kjccgopX.d.ts} +2 -2
- package/dist/_dts/{contracts-Dfqz0Tcu.d.ts → contracts-BodaiS00.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-CSfAqmry.d.ts → generatePageMetadata-BS6kaJFp.d.ts} +2 -2
- package/dist/_dts/{index-BeM5Ylwf.d.ts → index-Brl6_I2j.d.ts} +1 -2
- package/dist/_dts/{index-CB5Csefo.d.ts → index-CJkefwYh.d.ts} +2 -2
- package/dist/_dts/{index-DQBGwBPx.d.ts → index-D1WpKwQe.d.ts} +1 -1
- package/dist/_dts/{index-DQr358-m.d.ts → index-DG0OvBs0.d.ts} +8 -8
- package/dist/_dts/{index-Blrw2oVk.d.ts → index-Diqt0PvG.d.ts} +1 -1
- package/dist/_dts/{index-DCcxLa8p.d.ts → index-Dy50xUMK.d.ts} +2 -2
- package/dist/_dts/{loadContent-BG2tLGXj.d.ts → loadContent-BgxshKrA.d.ts} +7 -7
- package/dist/_dts/{request-P08l6mkr.d.ts → request-CA0izds5.d.ts} +2498 -1108
- package/dist/_dts/{resolveBlockData-BDHc8lFs.d.ts → resolveBlockData-ChQmwEd3.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-Y3IZBbtL.d.ts → resolvePageContent-BvGyvblj.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 -2
- package/dist/_dts/sdk/src/index.d.ts +104 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +83 -52
- 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 +43 -56
- package/dist/_dts/sdk/src/portal/index.d.ts +3 -18
- 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 +1 -1
- package/dist/_dts/{serviceBookingOutline-BvtNagjw.d.ts → serviceBookingOutline-BgFbJQhU.d.ts} +6 -6
- package/dist/_dts/{types-HAy1-Jjo.d.ts → types-CQrsP1x_.d.ts} +3 -3
- package/dist/_dts/{types-DpEAnP4F.d.ts → types-CgS3xLk8.d.ts} +2 -2
- package/dist/_dts/{types-BrK6SS5c.d.ts → types-R65DKjPn.d.ts} +7 -7
- package/dist/_dts/{validation-D6q3tOBA.d.ts → validation-6LTIbuBA.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DJSmdNUJ.mjs → BlocksIslandsHydrator-DqZPz6oW.mjs} +19 -19
- package/dist/client/{BookingMailingListNote-CGxg37zx.mjs → BookingMailingListNote-uWfR2kaG.mjs} +93 -18
- package/dist/client/{BookingQuestionFields-DXegGSnS.mjs → BookingQuestionFields-CyNIKw6k.mjs} +7 -87
- package/dist/client/CalendarAction-D_Glwvz2.mjs +105 -0
- package/dist/client/{CalendarNavigationChevron-VfP50sYm.mjs → CalendarNavigationChevron-BGCX3zwG.mjs} +6 -6
- package/dist/client/{CheckboxChoice-BZPLCgTU.mjs → CheckboxChoice-C8i4NraK.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-0Ua44F1j.mjs → DemoBookingPortalAccess-DFLPyuqe.mjs} +9 -6
- package/dist/client/{EventCalendar.client-CrpiyDSP.mjs → EventCalendar.client-zDL4-t-B.mjs} +10 -10
- package/dist/client/{EventCombined.client-D0me9wnz.mjs → EventCombined.client-uciDKLID.mjs} +60 -10
- package/dist/client/{EventEmbeddedCheckoutStep-BDnicDM6.mjs → EventEmbeddedCheckoutStep-BGkbUhuw.mjs} +1 -1
- package/dist/client/{EventItem-CJITrGkF.mjs → EventItem-CwzrjcRw.mjs} +6 -6
- package/dist/client/{EventListWeekNavigation-BlEm_xjq.mjs → EventListWeekNavigation-ChvcnPma.mjs} +1 -1
- package/dist/client/{EventListing.client-BNM_HuS0.mjs → EventListing.client-DA57Qoyx.mjs} +3 -3
- package/dist/client/{EventListing.view-CXfb7RRy.mjs → EventListing.view-DZ0qMFF4.mjs} +6 -6
- package/dist/client/{EventRegistrationPayment-DiD9uYs6.mjs → EventRegistrationPayment-DSqCJL8E.mjs} +700 -514
- package/dist/client/{Page-bX7iy_MK.mjs → Page-C7mygH_f.mjs} +389 -248
- package/dist/client/{ProtectedSubmitButton-De6AzhE6.mjs → ProtectedSubmitButton-BNnKuir8.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-BAdW5DvE.mjs → SiteTermsAgreementField-B4z-e4Wq.mjs} +7 -11
- package/dist/client/{StepIndicator-DCfdcb7s.mjs → StepIndicator-Dn_DY4oY.mjs} +1 -1
- package/dist/client/{StepIndicator-DCqorVne.mjs → StepIndicator-atfDU82W.mjs} +21 -13
- package/dist/client/{ThemedButton-CnSa7o-I.mjs → ThemedButton-PFOhXktM.mjs} +1 -33
- package/dist/client/{accessibleSurfaces-Wl8-_OVJ.mjs → accessibleSurfaces-n6kS6Hct.mjs} +77 -1
- package/dist/client/{accordion-wofJY8xY.mjs → accordion-CsW8U3ff.mjs} +1 -1
- package/dist/client/{booking-form.client-CYl9NrqS.mjs → booking-form.client-cBWM392H.mjs} +52 -29
- package/dist/client/bookingCalendar--aWnqFDn.mjs +180 -0
- package/dist/client/{bookingForm-kgVWtuMe.mjs → bookingForm-DgySpp6C.mjs} +4 -4
- package/dist/client/bookings.mjs +17 -11
- package/dist/client/{boxStyleClassNames-CQHWz5gJ.mjs → boxStyleClassNames-BpGVdLFD.mjs} +2 -2
- package/dist/client/{carousel-BE1dEFsD.mjs → carousel-DJoleFV3.mjs} +2 -2
- package/dist/client/{carousel.client-DMtGYTTM.mjs → carousel.client-BtLwHefX.mjs} +1 -1
- package/dist/client/{cart-BsjsdGZE.mjs → cart-EO5o6uPH.mjs} +3 -3
- package/dist/client/{cart.client-DylGUWXY.mjs → cart.client-D_gPw45z.mjs} +1 -1
- package/dist/client/{checkout-B5KxEUDr.mjs → checkout-NVfZW0kR.mjs} +3 -3
- package/dist/client/{checkout.client-C98fhch3.mjs → checkout.client-DD3JuqOy.mjs} +1 -1
- package/dist/client/{checkoutUrls-BMLYTf38.mjs → checkoutUrls-z2gXvlGw.mjs} +1 -1
- package/dist/client/client.mjs +87 -43
- package/dist/client/{constants-PfYJsEZF.mjs → constants-CoOkvw__.mjs} +1 -2
- package/dist/client/{context-DtKdUdkO.mjs → context-CRhn9qzS.mjs} +732 -370
- package/dist/client/{dateFormatting-BaGPvQS3.mjs → dateFormatting-BnWB4L1s.mjs} +15 -25
- package/dist/client/{demoPortalMagicLink-B8eDjhuG.mjs → demoPortalMagicLink-CWDGSTBu.mjs} +2 -3
- package/dist/client/{enhanceHeaderSection-DvhD-8eE.mjs → enhanceHeaderSection-tdP_-Z9o.mjs} +4 -5
- package/dist/client/{event-registration.client-Du9a_xAN.mjs → event-registration.client-D7YYKySQ.mjs} +191 -210
- package/dist/client/{eventCalendar-Di9wDfzl.mjs → eventCalendar-CsAfu5d0.mjs} +4 -4
- package/dist/client/{eventCombined-CNW6nBsB.mjs → eventCombined-VXJB5CoS.mjs} +4 -4
- package/dist/client/{eventListing-CQMxQ8By.mjs → eventListing-B3KIZNfY.mjs} +4 -4
- package/dist/client/{eventRegistration-CprS9k1D.mjs → eventRegistration-BP-dEk1c.mjs} +4 -4
- package/dist/client/{form-Zl1_8RJ6.mjs → form-DM8Zbxbv.mjs} +3 -3
- package/dist/client/{form.client-TaMUys6I.mjs → form.client-e2z_Tlgk.mjs} +5 -5
- package/dist/client/{form.parts-CpNPbPPM.mjs → form.parts-Ctljy1a3.mjs} +3 -3
- package/dist/client/gifting/client.mjs +32 -29
- package/dist/client/{gifting-DNVa7-Wj.mjs → gifting-DWIsqQru.mjs} +4 -4
- package/dist/client/{gifting.client-CFUq3GVx.mjs → gifting.client-QsSWF0uA.mjs} +5 -5
- package/dist/client/{gifting.parts-CDQvxA4A.mjs → gifting.parts-CedLgwa_.mjs} +2 -2
- package/dist/client/{headerSection-Cg6083rn.mjs → headerSection-DAkRkwb-.mjs} +2 -2
- package/dist/client/{mediaAssets-B99AP7ai.mjs → mediaAssets-COfQolI3.mjs} +1 -1
- package/dist/client/{mediaContext-Fusweriw.mjs → mediaContext-DzvnjYXm.mjs} +1 -1
- package/dist/client/{newsletter-form.client-VuL9I96G.mjs → newsletter-form.client-WYja9-WN.mjs} +7 -7
- package/dist/client/{newsletter-form.interactive-7Of3eYn0.mjs → newsletter-form.interactive-RuM86VAv.mjs} +23 -24
- package/dist/client/{newsletter-form.parts-OBqsfT24.mjs → newsletter-form.parts-2petDnWv.mjs} +2 -2
- package/dist/client/{newsletterForm-BkJe_RTv.mjs → newsletterForm-BUbXdA_e.mjs} +3 -3
- package/dist/client/{lookSurfaces-gJ3OqPf9.mjs → noop-Dl4mZ-rr.mjs} +167 -49
- package/dist/client/portal/client.mjs +13040 -8190
- package/dist/client/portalOrders-COGn4BKG.mjs +596 -0
- package/dist/client/portalRoutes-D72yvtDh.mjs +862 -0
- package/dist/client/{product-detail.client-B2hdxqJN.mjs → product-detail.client-pOAryevt.mjs} +1 -1
- package/dist/client/{product-list.client-CCEgu9rx.mjs → product-list.client-CcUpUiud.mjs} +1 -1
- package/dist/client/{productDetail-CRX_ZRfS.mjs → productDetail-BZJCfqat.mjs} +3 -3
- package/dist/client/{productList-BAdJ6z5S.mjs → productList-CiRs3mNb.mjs} +3 -3
- package/dist/client/{propsDecoder-BLKAmX0S.mjs → propsDecoder--uHW4tFM.mjs} +2 -2
- package/dist/client/{registry.server-Bj9cmHHF.mjs → registry.server-CDNNd8wC.mjs} +247 -203
- package/dist/client/{renderableMediaAssetAdmission-BlfqYLJW.mjs → renderableMediaAssetAdmission-BsOWd9lf.mjs} +1 -1
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +16 -8
- package/dist/client/{richText-coerce-Z45OLLEX.mjs → richText-coerce-CQGE_wHV.mjs} +2 -1
- package/dist/client/{routeIslandApiConfig-DHpTTK77.mjs → routeIslandApiConfig-BtCg87-N.mjs} +1 -1
- package/dist/client/{runtimeResponse-D2j2-mOk.mjs → runtimeResponse-DL_ARBpa.mjs} +1 -1
- package/dist/client/{runtimeResponse-DtWSfWSZ.mjs → runtimeResponse-Ds9cmBUf.mjs} +1 -1
- package/dist/client/{shop-BKsgxm_-.mjs → shop-Rx_gEMK8.mjs} +3 -3
- package/dist/client/{shop-commerce-Cbtk_kUW.mjs → shop-commerce-D8evQnMT.mjs} +53 -16
- package/dist/client/{shop-commerce-store-B-rv2p5h.mjs → shop-commerce-store-C9PcsSTj.mjs} +22 -5
- package/dist/client/{shop-discount-apply.state-CiCDLNh7.mjs → shop-discount-apply.state-D5CtGfJI.mjs} +2 -2
- package/dist/client/{shop.client-Rnqa74Tk.mjs → shop.client-D4lzQ9oY.mjs} +17 -39
- package/dist/client/{shopShared-BaBfhjCq.mjs → shopShared-BVbq7Nm-.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/src-Al4ooTl_.mjs +164 -0
- package/dist/client/{src-o7WEvbK1.mjs → src-ZSqRK3dD.mjs} +228 -90
- package/dist/client/{timetableModel-BOff1Kk5.mjs → timetableModel-BQJrSK0K.mjs} +9 -78
- package/dist/client/{shop-add-feedback-DvC2kP1K.mjs → urlParams-C2QHo1Pa.mjs} +1 -42
- package/dist/client/{useAvailableSlots-DQJNh10g.mjs → useAvailableSlots-Dm3lKJKR.mjs} +2 -3
- package/dist/client/{useDiscountCodeUi-BcFQRI_7.mjs → useDiscountCodeUi-klgfGn7f.mjs} +1 -1
- package/dist/client/{useEventPagination-BvdcexDC.mjs → useEventPagination-Jnjt7_ly.mjs} +8 -8
- package/dist/client/{view-CTBwSpKv.mjs → view-CC_yQLSA.mjs} +4 -4
- package/dist/client/{wizardSteps-CWIQyRIw.mjs → wizardSteps-BliJOzEX.mjs} +953 -279
- package/dist/preview-next/client/{PageSectionToolbar-CG6KwITA.mjs → PageSectionToolbar-BhL0uADo.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-BGBqrC9m.mjs → PreviewEditorSidebar-Ct8eIm0i.mjs} +5 -5
- package/dist/preview-next/client/{PreviewEditorUI-Bwkyx28x.mjs → PreviewEditorUI-BS32G4V9.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-DB1l6JNU.mjs → PreviewShell-RL0WfZXD.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Bs6Cwzr3.mjs → SdkPreviewModeRuntime-MK_gHeGy.mjs} +29 -5
- package/dist/preview-next/client/{previewAssistantSlot-T-oDD_Dd.mjs → previewAssistantSlot-CQyS8pcq.mjs} +5011 -2074
- package/dist/preview-next/client/{previewChromeRoot-BeukcDRy.mjs → previewChromeRoot-BSxp3Mfu.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-ceDW_9q2.mjs → sdk-runtime-DKnTzy74.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-CCB9bScO.mjs → siteStyleAccess-BlmbvbLN.mjs} +3 -3
- package/dist/preview-next/client/{useAutosaveStatus-D4o0CKq7.mjs → useAutosaveStatus-D-7GwZOQ.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-Seccrvwu.mjs → useOpenBlockForSetup-BNZtGM5g.mjs} +1 -1
- package/dist/preview-next/container-responsive.css +203 -174
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-FwFj8zGL.mjs → route-contract-R3PcMmax.mjs} +71 -37
- package/dist/server/{Block.shared-D6WrRCxX.mjs → Block.shared-CniF9tSu.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-BQzjDQ2q.mjs → ThemeScopeCore-BQWsnGT6.mjs} +126 -120
- package/dist/server/{accessibleSurfaces-CM3QANtw.mjs → accessibleSurfaces-WPzUAHp4.mjs} +33 -2
- package/dist/server/accordions-By_0Ykks.mjs +111 -0
- package/dist/server/{bindings-CS6ih1Yc.mjs → bindings-DxojjtK3.mjs} +7 -7
- package/dist/server/{client-m0ylCj_f.mjs → client-CDndhbYO.mjs} +86 -42
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/constants-VyF5nEhL.mjs +1474 -0
- package/dist/server/{customCss-BZ8YSrQg.mjs → customCss-C9kgPHvr.mjs} +41 -5
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-vgWMz1uD.mjs → loadContent-BKstMBmX.mjs} +5 -4
- package/dist/server/{loadPage-CIOL3-9t.mjs → loadPage-IgNnZaqr.mjs} +3 -3
- package/dist/server/{lookMediaFrame-m-91jGGn.mjs → lookMediaFrame-TFjgNG61.mjs} +38 -18
- package/dist/server/manifest.mjs +36 -25
- package/dist/server/{mapLocation-BM5WX7FY.mjs → mapLocation-MDDSubTp.mjs} +1 -1
- package/dist/server/media-BRmYrnzb.mjs +31 -0
- package/dist/server/{media-luf7RF22.mjs → media-gvfIw3z8.mjs} +2 -31
- package/dist/server/{navigation-BcNfYYuu.mjs → navigation-quBYlSKD.mjs} +2 -2
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +134 -81
- package/dist/server/{overrideResolution-BiHmsvTZ.mjs → overrideResolution-CCaAPpIa.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-DJo_obpi.mjs → pageRenderPlan-B7iULvKe.mjs} +8 -7
- package/dist/server/{pageRuntimeSupport-BnSuoHON.mjs → pageRuntimeSupport-BytMroxn.mjs} +5 -5
- package/dist/server/{pageShared-BJuOzxzn.mjs → pageShared-Dcs_XTIO.mjs} +243 -323
- package/dist/server/{parseThemeForPersistence-DOsfofCy.mjs → parseThemeForPersistence-Bihl4W5K.mjs} +3 -2
- package/dist/server/{portal-B4JVkdjc.mjs → portal-CMW_b9mG.mjs} +62 -46
- package/dist/server/portal.mjs +3 -3
- package/dist/server/portalQuestions-oUyohgL9.mjs +225 -0
- package/dist/server/{prebuild-Cr8p8T7V.mjs → prebuild-agaH-vZV.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BZh57-ua.mjs → prefetchBlockData-DwpRjqw4.mjs} +4 -3
- package/dist/server/{registry-CvhFwbXJ.mjs → registry-DM9dHfDC.mjs} +345 -449
- 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 +10 -9
- package/dist/server/{resolveBlockData-Cv_W1LVB.mjs → resolveBlockData-CinHGf8l.mjs} +2 -2
- package/dist/server/{resolveButtonColourStates--6yJp9Tq.mjs → resolveButtonColourStates-B0O1IM16.mjs} +2 -1028
- package/dist/server/{responseMedia-KRKguBC5.mjs → responseMedia-IfH65QAH.mjs} +1 -1
- package/dist/server/{schema-BpsqaSSU.mjs → schema-CwfxQjc4.mjs} +10 -113
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-CRKbTm_7.mjs → servicePageContent-BBBhOtdE.mjs} +21 -20
- package/dist/server/theme-bridge.mjs +3 -2
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-39SXCCnh.mjs → three-pass-converter-DPaUPTfl.mjs} +34 -16
- package/dist/server/titleSourceSchema-NhK6azFS.mjs +2018 -0
- package/dist/server/typeGuards-CTW_9AXq.mjs +413 -0
- package/dist/server/types-BKaBZFjD.mjs +1085 -0
- package/dist/server/{validation-DCl-FCk_.mjs → validation-DG5jX3jH.mjs} +70 -17
- package/dist/server/{version-DT_R5JAR.mjs → version-CipbxPHL.mjs} +1 -1
- package/dist/server/video-Cdr3wh-q.mjs +272 -0
- package/dist/styles/index.css +1013 -1840
- package/package.json +2 -1
- package/dist/_dts/index-B0_2-65A.d.ts +0 -101
- package/dist/client/TabBarFragment-DlKQRhP4.mjs +0 -56
- package/dist/client/checkoutRoute-DKlZRNZD.mjs +0 -22
- package/dist/client/creditProducts-BQ1t1erI.mjs +0 -266
- package/dist/client/formatDate-hhI1-tzt.mjs +0 -26
- package/dist/server/constants-Cj7hfbrA.mjs +0 -41
- package/dist/server/richTextSchema-QLaQrbII.mjs +0 -212
- package/dist/server/titleSourceSchema-Cu-3PRvv.mjs +0 -122
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { a as mediaIdentifierSchema, i as resolveManagedMediaReference, n as renderableMediaAssetSchema, r as indexRenderableMediaAssets } from "./renderableMediaAssetAdmission-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { $t as media, A as eventRegistrationBlockDefinition, An as lookQuoteLimitTransform, At as desktopOnlyDisplay, B as defineFragment, Bn as DEFAULT_MEDIA_FIELD_KINDS, Bt as SectionNode, C as teamReadiness, Cn as publicAppointmentPricingSchema, Ct as eventHeaderSlotParents, D as loadedReadinessFact, Dn as resolveBackgroundColorValue, E as hiddenFromVisitors, En as getAnchorClasses, F as augmentManifest, Fn as ACCORDION_TRIGGER_FONT_SCALE, G as parseFieldDefinitions, Gn as resolveRepeaterGridSpanFieldId, Gt as carousel, H as createSiteOptionSelectField, Hn as parseRepeaterGridInteger, Ht as bind, I as formEmbedFragment, In as ACCORDION_TRIGGER_LETTER_SPACING, It as PUBLIC_DOWNLOAD_MEDIA_TYPES, J as sectionHeaderLayoutNodes, Jt as form, K as withApiBindings, Kn as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Kt as el, L as formCopyFragment, Ln as ICON_CONFIG, Lt as FEATURE_CARD_GENERATED_ICON_SIZE_PX, M as checkoutBlockDefinition, Mn as lookSlot, N as cartBlockDefinition, Nn as ACCORDION_OPEN_ACCENT_THICKNESS, O as pageTemplateFromEntry, On as lookCarouselRegionTransform, P as createBlockManifest, Pn as ACCORDION_SPACING_MAP, Q as backgroundFrame, Qt as link, R as buildFragmentDataLoaders, Rn as ICON_SIZE_PX, Rt as FEATURE_CARD_ICON_TREATMENTS, S as galleryReadiness, Sn as publicAppointmentLocationSchema, St as lookPartShown, T as admitReadinessFacts, Tn as BACKGROUND_POSITION_PRESET_VALUES, Tt as buildAppointmentServicesView, U as normalizeSelectSource, Un as resolveRepeaterGridColumnFieldId, Ut as bookingForm, V as createSdkSelectField, Vn as isAcceptedRepeaterGridSpan, Vt as accordionList, W as parseFieldDefinition, Wn as resolveRepeaterGridRowFieldId, Wt as button, X as sectionContainer, Xn as isCanonicalRichTextDoc, Xt as icon, Y as styledContainer, Yn as publicMapLocationResultSchema, Yt as headerSection, Z as styledSection, Zt as inline, _ as cardListSectionActionFields, _n as eventScopeQueryKeys, _t as normalizeLocationMapProps, a as cardListSectionAction, an as text, at as eventDisplayFields, b as formDataSchema, bn as formatAppointmentLocation, bt as resolveLocationMapLocation, c as newsletterSignupBlockDefinition, cn as blockChecksForEvents, ct as containerStylesField, d as eventListingBlockDefinition, dn as eventReadinessQueryKeys, dt as createButtonVariantField, en as props, et as buildLoadedOfferingsPreviewListing, f as mapDrawingStyleBinding, fn as eventReadinessResultSchema, g as cardListPresentationBindings, gn as eventScopeQuery, gt as describeUnresolvedLocationMapLocation, h as cardListPhotoNumberFields, hn as eventScopeLoaderParam, ht as LOCATION_MAP_LOADER_KEYS, i as shopBlockDefinition, in as stack, it as emptyStateField, j as giftingBlockDefinition, jn as lookSkinSlotTransform, jt as mobileOnlyDisplay, k as unavailableReadinessFact, kn as lookLeadSlotTransform, l as sanitizeNewsletterSignupPublicContent, ln as eventReadinessLoaderKey, lt as sectionStylesField, m as cardListKnobFields, mn as eventDiscoveryFilterKeys, mt as LOCATION_MAP_LIMITS, nn as richText, nt as cardStylingFields, o as productListBlockDefinition, on as videoEmbed, ot as layoutField, p as eventCalendarBlockDefinition, pn as eventWeekReadScope, pt as LOCATION_MAP_DEFAULTS, q as sectionHeaderFields, qn as linkSchema, qt as fileDownload, rn as section, rt as columnsField, s as productDetailBlockDefinition, sn as when, st as cardStylesField, t as serverComponentRegistry, tn as repeat, tt as offeringCourseSlotParents, u as normalizeMailingListBlockContent, un as eventReadinessQuery, ut as createButtonGroup, v as normalizeCardListContent, vn as resolveEventScope, vt as normalizeLocationMapSource, w as testimonialsReadiness, wn as teamMemberCardBiographyFallback, wt as resolveEventDetailsPresentation, x as chosenString, xn as formatAppointmentPrice, y as formBlockDefinition, yn as formatAppointmentDuration, yt as parseLocationMapLoaderResult, z as composeFragments, zn as bindingSchema, zt as parseBlockIconValue } from "./registry.server-
|
|
9
|
-
import { $ as
|
|
2
|
+
import { $t as buildEventListWeek, An as sameMailingListPlacementTargeting, Dn as parseMailingListPlacementTargeting, Kt as cardListPresentationSchemaShape, Mn as unsafeAsContentEntryId, P as occurrenceContextSchema, Tn as buildMailingListSignupBlockSourceRef, Xt as quickFactSlots, _n as planSiteChromePlacement, _t as readOfferingsGrouping, at as OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS, dn as recurringScheduleProjectionSchema, dt as groupOfferingRunsByCourse, ft as isOfferingsPreviewSourceKey, gn as parseHeaderPositioning, gt as offeringsListingFor, jn as parseContentVersionId, lt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, m as combinedLookSchema, mn as resolveHeaderChromeRuntimeContract, pn as isHeaderScrollRuntimeEnabled, pt as normalizeOfferingsPreviewContentForWrite, st as OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE, un as projectRecurringSchedule, wn as formatEventStartingPrice } from "./newsletter-form.interactive-RuM86VAv.mjs";
|
|
3
|
+
import { a as mediaIdentifierSchema, i as resolveManagedMediaReference, n as renderableMediaAssetSchema, r as indexRenderableMediaAssets } from "./renderableMediaAssetAdmission-BsOWd9lf.mjs";
|
|
4
|
+
import { A as eventCalendarListGroupingDecision, B as buildRichTextSchema, C as publicEventsArraySchema, Cn as toUtcIsoDateTimeString, E as bookingConsentCarrierSchema, H as isRichTextDoc, Hn as unsafeAsEventCategoryId, Ht as EVENT_PRESET_VALUES, It as calendarWindowQuerySchema, J as runtimeMediaSchema, Jt as publicLocationSchema, K as mediaSchema, Kt as parseLocationValue, Qt as trimmedStringOrNull, R as resolveEventCalendarReadPlan, Sn as parseUtcIsoDateTimeString, Ut as WHOLE_SERIES_EVENT_PRESET_VALUES, V as createRichTextDoc, Vt as isRecord$8, Wt as locationValueSchema, X as PUBLIC_FILE_FIELD_KINDS, _ as publicMembershipProductCollectionSchema, bn as parseBookingLocalDate, ct as isArrangementMode, g as resolveCalendarReadProfile, in as formatDateTime, it as eventListTreatmentValues, lt as tileTreatmentValues, nn as formatDate$1, qt as projectPublicLocation, v as publicPassProductCollectionSchema, wn as resolveBookingBusinessTimeZone, x as publicEventPricingSchema, y as eventVenueDrawingSchema, yn as getLocalScheduleDate, z as RichTextDocSchema } from "./src-ZSqRK3dD.mjs";
|
|
5
|
+
import { Ci as planWholeSeriesParentBooking, Ei as registrationDataForEventSelection, Eo as isBlockButtonRole, Jo as computeMediaTransformStyle, Oi as selectionRepresentativeEvent, Ss as resolveDateRuntimeContext, Ts as isRecord$9, _s as plainTextToInlineText, as as createImageShapeField, bs as parseBlockColorToken, cs as uiTransforms, ds as asPartialObject, fs as createTransformRegistry, gs as parseInlineTextFromUnknown, hi as normalizeEventRegistrationPageSurfaceSubject, ic as offeringLabelForPageSurfaceSubject, is as systemCustomizeFacetDefinitionsForBlock, ko as eventCalendarWeekStart, ls as SECTION_STATE_KINDS, ms as inlineTextToPlainText, oc as formatBookingPriceDisplay, os as heroTitleSizeOptions, ps as runTransforms, qo as MediaPlaceholder, rs as resolveArrangementKnobs, ss as createAspectRatioField, us as sectionStateToneFromKind, vs as generateLookMediaFrameCss, xs as readRuntimeNow, ys as resolveLookMediaFrame } from "./wizardSteps-BliJOzEX.mjs";
|
|
6
|
+
import { l as monthSlotParents } from "./CalendarNavigationChevron-BGCX3zwG.mjs";
|
|
7
|
+
import { h as assertNever$4 } from "./bookingCalendar--aWnqFDn.mjs";
|
|
8
|
+
import { $t as media, A as eventRegistrationBlockDefinition, An as lookQuoteLimitTransform, At as desktopOnlyDisplay, B as defineFragment, Bn as DEFAULT_MEDIA_FIELD_KINDS, Bt as SectionNode, C as teamReadiness, Cn as publicAppointmentPricingSchema, Ct as eventHeaderSlotParents, D as loadedReadinessFact, Dn as resolveBackgroundColorValue, E as hiddenFromVisitors, En as getAnchorClasses, F as augmentManifest, Fn as ACCORDION_TRIGGER_FONT_SCALE, G as parseFieldDefinitions, Gn as resolveRepeaterGridSpanFieldId, Gt as carousel, H as createSiteOptionSelectField, Hn as parseRepeaterGridInteger, Ht as bind, I as formEmbedFragment, In as ACCORDION_TRIGGER_LETTER_SPACING, It as PUBLIC_DOWNLOAD_MEDIA_TYPES, J as sectionHeaderLayoutNodes, Jt as form, K as withApiBindings, Kn as RESOLVED_INTERNAL_LINK_ENTITY_TYPES, Kt as el, L as formCopyFragment, Ln as ICON_CONFIG, Lt as FEATURE_CARD_GENERATED_ICON_SIZE_PX, M as checkoutBlockDefinition, Mn as lookSlot, N as cartBlockDefinition, Nn as ACCORDION_OPEN_ACCENT_THICKNESS, O as pageTemplateFromEntry, On as lookCarouselRegionTransform, P as createBlockManifest, Pn as ACCORDION_SPACING_MAP, Q as backgroundFrame, Qt as link, R as buildFragmentDataLoaders, Rn as ICON_SIZE_PX, Rt as FEATURE_CARD_ICON_TREATMENTS, S as galleryReadiness, Sn as publicAppointmentLocationSchema, St as lookPartShown, T as admitReadinessFacts, Tn as BACKGROUND_POSITION_PRESET_VALUES, Tt as buildAppointmentServicesView, U as normalizeSelectSource, Un as resolveRepeaterGridColumnFieldId, Ut as bookingForm, V as createSdkSelectField, Vn as isAcceptedRepeaterGridSpan, Vt as accordionList, W as parseFieldDefinition, Wn as resolveRepeaterGridRowFieldId, Wt as button, X as sectionContainer, Xn as isCanonicalRichTextDoc, Xt as icon, Y as styledContainer, Yn as publicMapLocationResultSchema, Yt as headerSection, Z as styledSection, Zt as inline, _ as cardListSectionActionFields, _n as eventScopeQueryKeys, _t as normalizeLocationMapProps, a as cardListSectionAction, an as text, at as eventDisplayFields, b as formDataSchema, bn as formatAppointmentLocation, bt as resolveLocationMapLocation, c as newsletterSignupBlockDefinition, cn as blockChecksForEvents, ct as containerStylesField, d as eventListingBlockDefinition, dn as eventReadinessQueryKeys, dt as createButtonVariantField, en as props, et as buildLoadedOfferingsPreviewListing, f as mapDrawingStyleBinding, fn as eventReadinessResultSchema, g as cardListPresentationBindings, gn as eventScopeQuery, gt as describeUnresolvedLocationMapLocation, h as cardListPhotoNumberFields, hn as eventScopeLoaderParam, ht as LOCATION_MAP_LOADER_KEYS, i as shopBlockDefinition, in as stack, it as emptyStateField, j as giftingBlockDefinition, jn as lookSkinSlotTransform, jt as mobileOnlyDisplay, k as unavailableReadinessFact, kn as lookLeadSlotTransform, l as sanitizeNewsletterSignupPublicContent, ln as eventReadinessLoaderKey, lt as sectionStylesField, m as cardListKnobFields, mn as eventDiscoveryFilterKeys, mt as LOCATION_MAP_LIMITS, nn as richText, nt as cardStylingFields, o as productListBlockDefinition, on as videoEmbed, ot as layoutField, p as eventCalendarBlockDefinition, pn as eventWeekReadScope, pt as LOCATION_MAP_DEFAULTS, q as sectionHeaderFields, qn as linkSchema, qt as fileDownload, rn as section, rt as columnsField, s as productDetailBlockDefinition, sn as when, st as cardStylesField, t as serverComponentRegistry, tn as repeat, tt as offeringCourseSlotParents, u as normalizeMailingListBlockContent, un as eventReadinessQuery, ut as createButtonGroup, v as normalizeCardListContent, vn as resolveEventScope, vt as normalizeLocationMapSource, w as testimonialsReadiness, wn as teamMemberCardBiographyFallback, wt as resolveEventDetailsPresentation, x as chosenString, xn as formatAppointmentPrice, y as formBlockDefinition, yn as formatAppointmentDuration, yt as parseLocationMapLoaderResult, z as composeFragments, zn as bindingSchema, zt as parseBlockIconValue } from "./registry.server-CDNNd8wC.mjs";
|
|
9
|
+
import { $ as generateInteractiveChildInheritanceCSS, $t as TokenResolver, A as filterLookIdsForPolicy, At as themeV2CompilerOwnedFieldNames, B as surfaceResolutionContextFromTheme, Bt as designIssueSeverityForPolicy, C as resolveModeArrangement, Cn as asPageFlowPresetId, Ct as deriveSectionGround, D as buildInitialPolicyPageDesignIntent, Dt as sectionSurfaceBase, E as applySiteStyleBlockPoliciesToPageDesignIntent, Et as sectionForegroundBackground, F as getCuratedSiteStyle, Ft as assertNever$5, G as generateFooterCss, Gt as sectionBackgroundPaintValues, H as getGradientPreset, Ht as introCompositionTreatmentValues, I as requireCuratedSiteStyle, It as defineBlockDesignCapability, J as buildTextContrastShadow, Jt as opaqueSurfaceContextFromTheme, K as footerForegroundCandidates, Kt as testimonialsCompositionTreatmentValues, L as compilePageRuntimeFields, Lt as defineExactCatalog, M as componentRuntimeRulesForTheme, N as designRuntimeRulesForSiteStyle, O as deriveSiteStyleBlockPolicy, Ot as defaultHeroImageSurfaceTreatment, P as designRuntimeRulesForTheme, Pt as lookModes, Q as resolveEffectPaint, Qt as arrangementSlotNames, Rt as defineFrameCapability, S as resolveEffectiveArrangement, Sn as asLayoutVariantKey, St as applyLookPhotoTreatment, T as applyBlockContentVariantPolicy, Tn as makeBoundaryId, Tt as resolveSectionBackground, U as resolveCardRole, Ut as offeringsPreviewCompositionTreatmentValues, V as gradientToCss, Vt as featureCardCompositionTreatmentValues, W as generateDefaultCardSystem, Wt as plainFrame, X as generateEffectsCSS, Xt as selectLogoVariant, Y as generateNavLinkCSS, Yt as opaqueSurfaceDeclarations, Z as resolveEffectApplications, Zt as surfaceToneFromForegroundToken, _ as resolveArrangementLookForBlock, _n as asHeaderLayoutId, _t as softBoundaryOption, an as blockCustomCssRuleSchema, at as resolvePageDesignBlockLookChoice, b as arrangementManifestFromVariants, bn as asAppearancePresetId, bt as anglePolygonCss, c as lookPresentationOnPalette, cn as boxBackgroundSchema, ct as sectionShapeForGround, d as arrangementAppearancePresets, dt as boundaryOptionForTransitionIntent, et as navLinkHoverColorCandidate, f as arrangementLookHooks, fn as cardVariantRoleValues, ft as boundaryOptions, g as getCompatibleBlockAppearancePresets, gn as parseGradientPresetId, gt as noneBoundaryOption, h as compileArrangementLookRuntime, hn as surfaceCardRoleValues, ht as isDecorativeTransitionIntent, in as headerVariantValues, it as rebasePageDesignIntentToSiteStyle, j as componentRuntimeRulesForSiteStyle, jt as appearancePresets, k as filterLayoutProfilesForPolicy, kt as stripStaleTransitionStyleGroup, l as resolveLookSurfacePresentation, ln as runtimeBoxBackgroundSchema, lt as sectionShapeFromContent, m as automaticArrangementLook, mt as boundaryTreatmentForBoundaryOptionId, nn as sectionStylesOverrideSchema, nt as navLinkOwnsUnderline, o as resolvedItemSurfaceProps, on as customCssRuleSchema, ot as resolvePageDesignBoundaryChoice, p as arrangementStyleAvailability, pt as boundaryRuntimeMetricsForDecorativeTransition, q as getNavLinkPreset, qt as toNonEmptyReadonlyArray, rn as themeSchema, rt as parsePageDesignIntent, s as itemRole, st as pageDesignDecisionsV2Schema, t as logger, tt as navLinkOwnsHoverForeground, u as selectItemSurfacePresentation, ut as sectionShapeHook, v as resolveLookForBlock, vn as asHeaderStyleId, vt as spaciousBoundaryOption, w as resolvePublishedLook, wn as asSiteStyleId, wt as parseCanonicalRuntimeBackground, x as readStoredMode, xn as asDesignBlockId, xt as transitionCatalogueEntries, y as styleSectionBackgroundForColour, yn as siteChromeBackgroundOverrideOwner, yt as transitionIntentForTreatment, z as stripCompiledRuntimeStyleFields, zt as defineNoBlockDesignCapability } from "./noop-Dl4mZ-rr.mjs";
|
|
10
10
|
import { T as parseThemeColorToken, a as createStandardButtonSurfacePolicy, i as buttonSizeNameSchema, s as unsafeAsOpaqueButtonColourToken, t as DEFAULT_VARIANT_ALIAS_ID, w as parseColorTokenParts } from "./types-BEaKfam_.mjs";
|
|
11
|
-
import { $ as
|
|
12
|
-
import { _ as parseRuntimeBackgroundContent, a as hasFixedFrameBackgroundMotion, c as resolveItemCardRole, d as isSectionMinHeight, f as isSemanticSpacing, g as parseBackgroundOverlay, h as parseBackgroundContent, i as fixedFrameScopeClass, m as resolveSpacing, n as ROUNDED_CLASSES, o as normalizeBoxStylesBorder, p as resolveSectionMinHeight, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles, t as RAISED_SHADOW_CLASS, u as SEMANTIC_SPACING_VALUES } from "./boxStyleClassNames-
|
|
13
|
-
import { C as
|
|
11
|
+
import { $ as surfaceInkPublication, A as DEFAULT_BUTTON_SIZES, At as ORDINARY_TEXT_MIN_CONTRAST_RATIO, Bt as rgbToHex, C as buttonRadius, Ct as freezeOwnedThemeValue, D as materializeRuntimeButtonAppearance, E as buttonTypographyDeclarations, Et as resolveOpaqueSurfaceHex, G as mergeStyles, H as backgroundColorStyle, It as hexToRgb, J as textColorValue, K as rgbColorValue, L as mapButtonVisualAppearances, Lt as oklabToOklch, M as FONT_SIZE_MAP, N as generateShadowValue$1, Nt as solidPaint, O as paddingDeclarations, Q as safeTokenOr, Rt as oklabToSrgb, S as buttonBorder, St as surfaceInkValue, T as buttonStateAppearanceDeclarations, Tt as resolveConcreteColorHex, U as borderColorStyle, Vt as srgbToOklab, W as cssVarValue, X as staysInsideDeclaration, Y as callsCssLoadingFunction, Z as resolveSurfaceForeground, _t as surfaceForegroundStyle, at as HOVER_TEXT_THRESHOLD, b as BUTTON_CONTRAST_POLICY, bt as surfaceInkDeclarations, ct as inkReference, dt as planForegroundHover, f as compositeHex, ft as DEFAULT_SURFACE_TEXT_COLOR, g as actionVariableFallback, gt as surfaceForegroundInputFromResolved, ht as surfaceForegroundDeclarations, jt as contrastRatio, k as BORDER_WIDTH_MAP, l as surfaceDecorationColors, lt as expandPalette, mt as SURFACE_INK_CSS_VARS, n as parseSurfaceTree, nt as neutralInk, o as resolveSurface, ot as certifyPaint, pt as SURFACE_FOREGROUND_CSS_VARS, q as textColorStyle, r as prepareSurfaceIndex, st as contrastThresholdByPolicy, tt as solveSurfaceInks, v as compileButtonColourStates, vt as surfaceForegroundValue, w as buttonShadow, wt as ownedThemeSnapshot, x as formatButtonColourContractError, xt as surfaceInkStyle, y as resolveSolidButtonColour, yt as surfaceForegroundValueWithOpacity, zt as oklchToHexGamut } from "./accessibleSurfaces-n6kS6Hct.mjs";
|
|
12
|
+
import { _ as parseRuntimeBackgroundContent, a as hasFixedFrameBackgroundMotion, c as resolveItemCardRole, d as isSectionMinHeight, f as isSemanticSpacing, g as parseBackgroundOverlay, h as parseBackgroundContent, i as fixedFrameScopeClass, m as resolveSpacing, n as ROUNDED_CLASSES, o as normalizeBoxStylesBorder, p as resolveSectionMinHeight, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles, t as RAISED_SHADOW_CLASS, u as SEMANTIC_SPACING_VALUES } from "./boxStyleClassNames-BpGVdLFD.mjs";
|
|
13
|
+
import { C as themeButtonSelector, S as parseThemeButtonVariantId, w as AFFORDANCE_SUPPRESS_CLASS } from "./ThemedButton-PFOhXktM.mjs";
|
|
14
14
|
import { t as NAV_DROPDOWN_CONTAINER_RAIL_CSS_RULES } from "./navDropdownSizing-CUjDrcIt.mjs";
|
|
15
15
|
import { s as declarativeCarouselSlides } from "./carousel.shared-BFQ3kBEw.mjs";
|
|
16
|
-
import { n as getCurrentResolveImageUrlContext, o as setContextResolveImageUrlContext, t as buildResolveImageUrlContext } from "./mediaContext-
|
|
16
|
+
import { n as getCurrentResolveImageUrlContext, o as setContextResolveImageUrlContext, t as buildResolveImageUrlContext } from "./mediaContext-DzvnjYXm.mjs";
|
|
17
17
|
import { n as eventAutoApplyDiscountPreviewSchema } from "./events-9LPvwbWp.mjs";
|
|
18
|
-
import { t as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { n as eventListSlotParents } from "./EventListing.view-CXfb7RRy.mjs";
|
|
18
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-CQGE_wHV.mjs";
|
|
19
|
+
import { a as eventItemSlotParents, i as cardItemSlotParents } from "./EventItem-CwzrjcRw.mjs";
|
|
20
|
+
import { n as eventListSlotParents } from "./EventListing.view-DZ0qMFF4.mjs";
|
|
22
21
|
import { r as themeRuntimeScopeProps, t as buildThemeDataAttrs } from "./themeScopeUtils-BAOw_fNA.mjs";
|
|
23
|
-
import { t as resolveBlocksPageMediaContext } from "./mediaAssets-
|
|
22
|
+
import { t as resolveBlocksPageMediaContext } from "./mediaAssets-COfQolI3.mjs";
|
|
24
23
|
import * as React$1 from "react";
|
|
25
24
|
import React from "react";
|
|
26
25
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -138,8 +137,8 @@ function walkAndCollectImageAttrs(value, out, location = "") {
|
|
|
138
137
|
value.forEach((item, index) => walkAndCollectImageAttrs(item, out, `${location}[${index}]`));
|
|
139
138
|
return;
|
|
140
139
|
}
|
|
141
|
-
if (!isRecord$
|
|
142
|
-
if (value.type === "image" && isRecord$
|
|
140
|
+
if (!isRecord$9(value)) return;
|
|
141
|
+
if (value.type === "image" && isRecord$9(value.attrs)) out.push({
|
|
143
142
|
attrs: value.attrs,
|
|
144
143
|
location: location ? `${location}.attrs` : "attrs"
|
|
145
144
|
});
|
|
@@ -2357,7 +2356,7 @@ function arrangementContentFacts(content) {
|
|
|
2357
2356
|
featured,
|
|
2358
2357
|
outcome: typeof content.outcome === "string" && content.outcome.length > 0,
|
|
2359
2358
|
figure: typeof content.figure === "string" && content.figure.trim().length > 0,
|
|
2360
|
-
entrance: isRecord$
|
|
2359
|
+
entrance: isRecord$8(content.entrancePhoto)
|
|
2361
2360
|
},
|
|
2362
2361
|
settings: { "listed-by-week": content.listBy === "week" }
|
|
2363
2362
|
}
|
|
@@ -2372,10 +2371,10 @@ function lookFillPartsFromContent(content) {
|
|
|
2372
2371
|
}
|
|
2373
2372
|
/** The content stage owns media presence for every arrangement consumer. */
|
|
2374
2373
|
function arrangementPhotoCount(content) {
|
|
2375
|
-
if (Array.isArray(content.cards)) return content.cards.filter((card) => isRecord$
|
|
2376
|
-
if (Array.isArray(content.members)) return content.members.filter((member) => isRecord$
|
|
2377
|
-
if (Array.isArray(content.images)) return content.images.filter((item) => isRecord$
|
|
2378
|
-
if (isRecord$
|
|
2374
|
+
if (Array.isArray(content.cards)) return content.cards.filter((card) => isRecord$8(card) && isRecord$8(card.media)).length;
|
|
2375
|
+
if (Array.isArray(content.members)) return content.members.filter((member) => isRecord$8(member) && isRecord$8(member.photo)).length;
|
|
2376
|
+
if (Array.isArray(content.images)) return content.images.filter((item) => isRecord$8(item) && isRecord$8(item.image)).length;
|
|
2377
|
+
if (isRecord$8(content.media) || isRecord$8(content.entrancePhoto)) return 1;
|
|
2379
2378
|
return storedSectionPhoto(content) === null ? 0 : 1;
|
|
2380
2379
|
}
|
|
2381
2380
|
/** Both rendering and join matching ask the publication-fallback owner. */
|
|
@@ -7144,6 +7143,108 @@ function toHeroLineHeight(lineHeight) {
|
|
|
7144
7143
|
}[lineHeight];
|
|
7145
7144
|
}
|
|
7146
7145
|
//#endregion
|
|
7146
|
+
//#region ../theme-core/src/status/statusTones.ts
|
|
7147
|
+
/**
|
|
7148
|
+
* Status tones: the quiet tinted chips and notices that say a booking is
|
|
7149
|
+
* confirmed (ok), needs something from the customer (attention) or has gone
|
|
7150
|
+
* wrong (problem).
|
|
7151
|
+
*
|
|
7152
|
+
* Every site's palette is different, and a status colour that reads well as a
|
|
7153
|
+
* border is often too light to read as text on its own tint (a yellow warning
|
|
7154
|
+
* on cream, say). So the tone's ink is measured per palette: we start from the
|
|
7155
|
+
* status colour and move it towards the palette's text colour until it clears
|
|
7156
|
+
* ordinary-text contrast on the tint. The hue survives where it can, and the
|
|
7157
|
+
* text always stays readable.
|
|
7158
|
+
*
|
|
7159
|
+
* Tones never carry meaning by colour alone; the components that use them pair
|
|
7160
|
+
* each tone with a glyph and words.
|
|
7161
|
+
*/
|
|
7162
|
+
const statusToneNames = [
|
|
7163
|
+
"ok",
|
|
7164
|
+
"attention",
|
|
7165
|
+
"problem"
|
|
7166
|
+
];
|
|
7167
|
+
/** The palette role each tone is drawn from. */
|
|
7168
|
+
const TONE_SOURCE = {
|
|
7169
|
+
ok: "success",
|
|
7170
|
+
attention: "warning",
|
|
7171
|
+
problem: "destructive"
|
|
7172
|
+
};
|
|
7173
|
+
/** How strongly the status colour tints the ground behind the tone's text. */
|
|
7174
|
+
const TINT_ALPHA = .12;
|
|
7175
|
+
/** Steps from the status colour towards the text colour, tried in order. */
|
|
7176
|
+
const INK_STEPS = [
|
|
7177
|
+
0,
|
|
7178
|
+
.2,
|
|
7179
|
+
.4,
|
|
7180
|
+
.55,
|
|
7181
|
+
.7,
|
|
7182
|
+
.85,
|
|
7183
|
+
1
|
|
7184
|
+
];
|
|
7185
|
+
/**
|
|
7186
|
+
* The tone for one status colour over a ground. When no step towards the
|
|
7187
|
+
* palette's text clears the tint, the ink solver's measured neutral (black or
|
|
7188
|
+
* white) does, so the text is always readable. Pure, so the per-palette sweep
|
|
7189
|
+
* can check every result.
|
|
7190
|
+
*/
|
|
7191
|
+
function decideStatusTone(input) {
|
|
7192
|
+
const { statusHex, groundHex, textHex } = input;
|
|
7193
|
+
const background = compositeHex(statusHex, TINT_ALPHA, groundHex);
|
|
7194
|
+
return {
|
|
7195
|
+
background,
|
|
7196
|
+
text: INK_STEPS.map((step) => step === 0 ? statusHex : compositeHex(textHex, step, statusHex)).find((ink) => contrastRatio(ink, background) >= 4.5) ?? measuredNeutral(background),
|
|
7197
|
+
border: statusHex
|
|
7198
|
+
};
|
|
7199
|
+
}
|
|
7200
|
+
/** Black or white, whichever reads on the tint; the tint is opaque, so one always clears. */
|
|
7201
|
+
function measuredNeutral(background) {
|
|
7202
|
+
const ink = neutralInk(solidPaint(background), ORDINARY_TEXT_MIN_CONTRAST_RATIO);
|
|
7203
|
+
return ink.kind === "ink" ? ink.hex : "#000000";
|
|
7204
|
+
}
|
|
7205
|
+
/** Every tone for a palette, over its page background, or null when the palette can't be read. */
|
|
7206
|
+
function decideStatusTones(palette) {
|
|
7207
|
+
const groundHex = resolveConcreteColorHex("background", palette);
|
|
7208
|
+
const textHex = resolveConcreteColorHex("text", palette);
|
|
7209
|
+
if (!groundHex || !textHex) return null;
|
|
7210
|
+
const tone = (name) => {
|
|
7211
|
+
const statusHex = resolveConcreteColorHex(TONE_SOURCE[name], palette);
|
|
7212
|
+
return statusHex ? decideStatusTone({
|
|
7213
|
+
statusHex,
|
|
7214
|
+
groundHex,
|
|
7215
|
+
textHex
|
|
7216
|
+
}) : null;
|
|
7217
|
+
};
|
|
7218
|
+
const ok = tone("ok");
|
|
7219
|
+
const attention = tone("attention");
|
|
7220
|
+
const problem = tone("problem");
|
|
7221
|
+
return ok && attention && problem ? {
|
|
7222
|
+
ok,
|
|
7223
|
+
attention,
|
|
7224
|
+
problem
|
|
7225
|
+
} : null;
|
|
7226
|
+
}
|
|
7227
|
+
/**
|
|
7228
|
+
* The `--rb-tone-*` declarations for a palette. Without a readable palette the
|
|
7229
|
+
* tones fall back to the plain text colour on the surface, which is always
|
|
7230
|
+
* legible (the glyph and words still carry the meaning).
|
|
7231
|
+
*/
|
|
7232
|
+
function statusToneDeclarations(palette) {
|
|
7233
|
+
const tones = decideStatusTones(palette);
|
|
7234
|
+
return statusToneNames.flatMap((name) => {
|
|
7235
|
+
const tone = tones?.[name];
|
|
7236
|
+
return tone ? [
|
|
7237
|
+
`--rb-tone-${name}-bg: ${tone.background};`,
|
|
7238
|
+
`--rb-tone-${name}-text: ${tone.text};`,
|
|
7239
|
+
`--rb-tone-${name}-border: ${tone.border};`
|
|
7240
|
+
] : [
|
|
7241
|
+
`--rb-tone-${name}-bg: transparent;`,
|
|
7242
|
+
`--rb-tone-${name}-text: currentColor;`,
|
|
7243
|
+
`--rb-tone-${name}-border: currentColor;`
|
|
7244
|
+
];
|
|
7245
|
+
});
|
|
7246
|
+
}
|
|
7247
|
+
//#endregion
|
|
7147
7248
|
//#region ../theme-core/src/status/generateStatusCss.ts
|
|
7148
7249
|
/**
|
|
7149
7250
|
* Corner radius map - derives alert border-radius from theme.corners
|
|
@@ -7171,6 +7272,7 @@ const CORNER_MAP = {
|
|
|
7171
7272
|
function generateStatusCss({ themeId, theme, palette }) {
|
|
7172
7273
|
const root = `:where([data-theme-scope="${themeId}"])`;
|
|
7173
7274
|
return [
|
|
7275
|
+
generateStatusToneCss(root, palette),
|
|
7174
7276
|
generateStatusTextCss(root),
|
|
7175
7277
|
generateAlertCss(root, CORNER_MAP[theme.corners], palette),
|
|
7176
7278
|
generateFieldNoteCss(root),
|
|
@@ -7178,6 +7280,13 @@ function generateStatusCss({ themeId, theme, palette }) {
|
|
|
7178
7280
|
generateButtonLinkCss(root)
|
|
7179
7281
|
].join("\n\n");
|
|
7180
7282
|
}
|
|
7283
|
+
/** Measured status tones (see statusTones.ts) for chips and notices. */
|
|
7284
|
+
function generateStatusToneCss(root, palette) {
|
|
7285
|
+
return `/* Status tones */
|
|
7286
|
+
${root} {
|
|
7287
|
+
${statusToneDeclarations(palette).join("\n ")}
|
|
7288
|
+
}`;
|
|
7289
|
+
}
|
|
7181
7290
|
function generateStatusTextCss(root) {
|
|
7182
7291
|
return `/* Status text indicators */
|
|
7183
7292
|
${root} .status-error { color: rgb(var(--tb-destructive)); }
|
|
@@ -7884,120 +7993,6 @@ ${`:where([data-theme-scope="${themeId}"]) :where([data-block="form"])`} {
|
|
|
7884
7993
|
`;
|
|
7885
7994
|
}
|
|
7886
7995
|
//#endregion
|
|
7887
|
-
//#region ../theme-core/src/runtime/themeCssVarNames.ts
|
|
7888
|
-
const THEME_RADIUS_CSS_VARS = {
|
|
7889
|
-
block: "--rb-block-radius",
|
|
7890
|
-
button: "--rb-button-radius",
|
|
7891
|
-
input: "--rb-input-radius",
|
|
7892
|
-
panel: "--rb-panel-radius",
|
|
7893
|
-
legacyCard: "--radius-card",
|
|
7894
|
-
legacyControl: "--radius-control"
|
|
7895
|
-
};
|
|
7896
|
-
//#endregion
|
|
7897
|
-
//#region ../theme-core/src/blocks/vars/customer-portal.ts
|
|
7898
|
-
/**
|
|
7899
|
-
* Generate CSS variables for the customer-portal block.
|
|
7900
|
-
*
|
|
7901
|
-
* Variables defined:
|
|
7902
|
-
* - Container styling (background, border, shadow)
|
|
7903
|
-
* - Input and form control styling
|
|
7904
|
-
* - Tab navigation colors
|
|
7905
|
-
* - Status badges (success, warning, error, info, default)
|
|
7906
|
-
* - Progress indicators for credit bars
|
|
7907
|
-
* - Card styling
|
|
7908
|
-
* - Alert/notification styling
|
|
7909
|
-
*
|
|
7910
|
-
* Note: Buttons use theme button classes (primary, secondary) - no custom button vars needed.
|
|
7911
|
-
*/
|
|
7912
|
-
function generateCustomerPortalVars({ themeId, surface }) {
|
|
7913
|
-
const root = `:where([data-theme-scope="${themeId}"]) :where([data-block="customer-portal"])`;
|
|
7914
|
-
return `
|
|
7915
|
-
${root} {${customerPortalVars}
|
|
7916
|
-
}
|
|
7917
|
-
${root} .cp-login {
|
|
7918
|
-
${surfaceInkDeclarations(surfaceInkPublication(surface ? resolveSurfaceForeground({
|
|
7919
|
-
type: "color",
|
|
7920
|
-
color: "surface"
|
|
7921
|
-
}, surface.palette) : { kind: "unmeasured-paint" }, surface?.solvedInks ?? "withhold")).join("\n ")}
|
|
7922
|
-
}
|
|
7923
|
-
`;
|
|
7924
|
-
}
|
|
7925
|
-
const customerPortalVars = `
|
|
7926
|
-
/* Container */
|
|
7927
|
-
--cp-bg: rgb(var(--tb-surface));
|
|
7928
|
-
--cp-text: rgb(var(--tb-text));
|
|
7929
|
-
--cp-muted: rgb(var(--tb-mutedText));
|
|
7930
|
-
--cp-border: rgb(var(--tb-border));
|
|
7931
|
-
--cp-shadow: var(--shadow-elev);
|
|
7932
|
-
--cp-primary: rgb(var(--tb-primary));
|
|
7933
|
-
--cp-primary-hover: rgb(var(--tb-primary-700, var(--tb-primary)));
|
|
7934
|
-
--cp-error: rgb(var(--tb-destructive));
|
|
7935
|
-
--cp-card-radius: var(${THEME_RADIUS_CSS_VARS.block}, var(${THEME_RADIUS_CSS_VARS.legacyCard}, 0.75rem));
|
|
7936
|
-
--cp-control-radius: var(${THEME_RADIUS_CSS_VARS.input}, var(${THEME_RADIUS_CSS_VARS.legacyControl}, 0.5rem));
|
|
7937
|
-
|
|
7938
|
-
/* Shared tab bar (underline style) */
|
|
7939
|
-
--rb-tab-border-width: 1px;
|
|
7940
|
-
--rb-tab-border-color: rgb(var(--tb-border));
|
|
7941
|
-
--rb-tab-active-border-width: 2px;
|
|
7942
|
-
--rb-tab-active-color: rgb(var(--tb-primary));
|
|
7943
|
-
--rb-tab-text: rgb(var(--tb-text));
|
|
7944
|
-
--rb-tab-opacity: 0.7;
|
|
7945
|
-
|
|
7946
|
-
/* Badge - Success (active, confirmed) */
|
|
7947
|
-
--cp-badge-success-bg: rgb(var(--tb-success) / 0.1);
|
|
7948
|
-
--cp-badge-success-text: rgb(var(--tb-success));
|
|
7949
|
-
|
|
7950
|
-
/* Badge - Warning (paused, low credits, waitlist) */
|
|
7951
|
-
--cp-badge-warning-bg: rgb(var(--tb-warning) / 0.1);
|
|
7952
|
-
--cp-badge-warning-text: rgb(var(--tb-warning));
|
|
7953
|
-
|
|
7954
|
-
/* Badge - Error (canceled, expired, past_due) */
|
|
7955
|
-
--cp-badge-error-bg: rgb(var(--tb-destructive) / 0.1);
|
|
7956
|
-
--cp-badge-error-text: rgb(var(--tb-destructive));
|
|
7957
|
-
|
|
7958
|
-
/* Badge - Info (trialing, scheduled) */
|
|
7959
|
-
--cp-badge-info-bg: rgb(var(--tb-primary) / 0.1);
|
|
7960
|
-
--cp-badge-info-text: rgb(var(--tb-primary));
|
|
7961
|
-
|
|
7962
|
-
/* Badge - Default (neutral states) */
|
|
7963
|
-
--cp-badge-default-bg: rgb(var(--tb-mutedText) / 0.1);
|
|
7964
|
-
--cp-badge-default-text: rgb(var(--tb-mutedText));
|
|
7965
|
-
|
|
7966
|
-
/* Progress bar (for credit display) */
|
|
7967
|
-
--cp-progress-bg: rgb(var(--tb-border));
|
|
7968
|
-
--cp-progress-fill: rgb(var(--tb-primary));
|
|
7969
|
-
|
|
7970
|
-
/* Card styling */
|
|
7971
|
-
--cp-card-bg: rgb(var(--tb-surface));
|
|
7972
|
-
--cp-card-border: rgb(var(--tb-border));
|
|
7973
|
-
|
|
7974
|
-
/* Alert/notification */
|
|
7975
|
-
--cp-alert-success-bg: rgb(var(--tb-success) / 0.1);
|
|
7976
|
-
--cp-alert-success-text: rgb(var(--tb-success));
|
|
7977
|
-
--cp-alert-success-border: rgb(var(--tb-success));
|
|
7978
|
-
--cp-alert-error-bg: rgb(var(--tb-destructive) / 0.1);
|
|
7979
|
-
--cp-alert-error-text: rgb(var(--tb-destructive));
|
|
7980
|
-
--cp-alert-error-border: rgb(var(--tb-destructive));
|
|
7981
|
-
|
|
7982
|
-
/* Modal (shared rb-modal classes) */
|
|
7983
|
-
--rb-modal-overlay-bg: rgb(var(--tb-text, 0 0 0) / 0.35);
|
|
7984
|
-
--rb-modal-bg: var(--cp-card-bg);
|
|
7985
|
-
--rb-modal-text: var(--cp-text);
|
|
7986
|
-
--rb-modal-heading: var(--cp-text);
|
|
7987
|
-
--rb-modal-link: var(--cp-primary);
|
|
7988
|
-
--rb-modal-supporting: var(--cp-muted);
|
|
7989
|
-
--rb-modal-border: var(--cp-card-border);
|
|
7990
|
-
--rb-modal-shadow: var(--shadow-lg, var(--shadow-elev));
|
|
7991
|
-
--rb-modal-radius: var(--cp-card-radius);
|
|
7992
|
-
--rb-modal-max-width: 560px;
|
|
7993
|
-
|
|
7994
|
-
/* Header */
|
|
7995
|
-
--cp-header-bg: transparent;
|
|
7996
|
-
--cp-header-border: rgb(var(--tb-border));
|
|
7997
|
-
|
|
7998
|
-
/* Section */
|
|
7999
|
-
--cp-section-bg: transparent;`;
|
|
8000
|
-
//#endregion
|
|
8001
7996
|
//#region ../theme-core/src/blocks/vars/testimonials.ts
|
|
8002
7997
|
const QUOTE_SCALE_SIZE = {
|
|
8003
7998
|
sm: "2.5rem",
|
|
@@ -8092,7 +8087,6 @@ blockVarRegistry.set("event-spotlight", generateEventSpotlightVars);
|
|
|
8092
8087
|
blockVarRegistry.set("event-combined", generateEventCombinedVars);
|
|
8093
8088
|
blockVarRegistry.set("appointment-booking", generateAppointmentBookingVars);
|
|
8094
8089
|
blockVarRegistry.set("form", generateFormBlockVars);
|
|
8095
|
-
blockVarRegistry.set("customer-portal", generateCustomerPortalVars);
|
|
8096
8090
|
blockVarRegistry.set("testimonials", generateTestimonialsVars);
|
|
8097
8091
|
/**
|
|
8098
8092
|
* Generate all Tier 3 block-specific CSS variables.
|
|
@@ -8131,7 +8125,7 @@ function generateBlockCustomVarsCss(themeId, blockCustomVars) {
|
|
|
8131
8125
|
//#endregion
|
|
8132
8126
|
//#region ../theme-core/src/blockOverrides.ts
|
|
8133
8127
|
const BLOCK_PREFIX = "block.";
|
|
8134
|
-
function isPlainObject$
|
|
8128
|
+
function isPlainObject$3(value) {
|
|
8135
8129
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
8136
8130
|
}
|
|
8137
8131
|
function isUnknownArray$3(value) {
|
|
@@ -8139,7 +8133,7 @@ function isUnknownArray$3(value) {
|
|
|
8139
8133
|
}
|
|
8140
8134
|
function cloneValue(value) {
|
|
8141
8135
|
if (isUnknownArray$3(value)) return value.map((item) => cloneValue(item));
|
|
8142
|
-
if (isPlainObject$
|
|
8136
|
+
if (isPlainObject$3(value)) {
|
|
8143
8137
|
const cloned = {};
|
|
8144
8138
|
for (const [key, child] of Object.entries(value)) cloned[key] = cloneValue(child);
|
|
8145
8139
|
return cloned;
|
|
@@ -8149,7 +8143,7 @@ function cloneValue(value) {
|
|
|
8149
8143
|
function mergeDeep(defaultValue, overrideValue) {
|
|
8150
8144
|
if (overrideValue === void 0) return cloneValue(defaultValue);
|
|
8151
8145
|
if (overrideValue === null) return null;
|
|
8152
|
-
if (isPlainObject$
|
|
8146
|
+
if (isPlainObject$3(defaultValue) && isPlainObject$3(overrideValue)) {
|
|
8153
8147
|
const merged = {};
|
|
8154
8148
|
const keys = /* @__PURE__ */ new Set([...Object.keys(defaultValue), ...Object.keys(overrideValue)]);
|
|
8155
8149
|
for (const key of keys) merged[key] = mergeDeep(defaultValue[key], overrideValue[key]);
|
|
@@ -8206,7 +8200,7 @@ function mergeContentWithBlockStyleOverrides(content, theme, blockKind) {
|
|
|
8206
8200
|
*/
|
|
8207
8201
|
function applyHeadingDecorationSignature(target, themeDecoration) {
|
|
8208
8202
|
const existing = target["_sectionStyles"];
|
|
8209
|
-
const existingObj = isPlainObject$
|
|
8203
|
+
const existingObj = isPlainObject$3(existing) ? existing : void 0;
|
|
8210
8204
|
const rawOverride = existingObj?.["headingDecorationOverride"];
|
|
8211
8205
|
const effective = resolveEffectiveHeadingDecoration(themeDecoration, rawOverride === "site-default" || rawOverride === "off" ? rawOverride : void 0);
|
|
8212
8206
|
if (effective.kind === "none") {
|
|
@@ -8226,9 +8220,9 @@ function applyStyleOverride(target, key, defaults) {
|
|
|
8226
8220
|
target[key] = mergeStyleOverride(defaults, target[key]);
|
|
8227
8221
|
}
|
|
8228
8222
|
function mergeStyleOverride(defaultValue, contentValue) {
|
|
8229
|
-
if (!isPlainObject$
|
|
8223
|
+
if (!isPlainObject$3(defaultValue) || !isPlainObject$3(contentValue)) return mergeDeep(defaultValue, contentValue);
|
|
8230
8224
|
const merged = mergeDeep(defaultValue, contentValue);
|
|
8231
|
-
if (!isPlainObject$
|
|
8225
|
+
if (!isPlainObject$3(merged)) return merged;
|
|
8232
8226
|
return {
|
|
8233
8227
|
...merged,
|
|
8234
8228
|
background: mergeBoxBackground(defaultValue.background, contentValue.background)
|
|
@@ -8494,6 +8488,16 @@ function indent(str, spaces) {
|
|
|
8494
8488
|
return str.split("\n").map((line) => line ? pad + line : line).join("\n");
|
|
8495
8489
|
}
|
|
8496
8490
|
//#endregion
|
|
8491
|
+
//#region ../theme-core/src/runtime/themeCssVarNames.ts
|
|
8492
|
+
const THEME_RADIUS_CSS_VARS = {
|
|
8493
|
+
block: "--rb-block-radius",
|
|
8494
|
+
button: "--rb-button-radius",
|
|
8495
|
+
input: "--rb-input-radius",
|
|
8496
|
+
panel: "--rb-panel-radius",
|
|
8497
|
+
legacyCard: "--radius-card",
|
|
8498
|
+
legacyControl: "--radius-control"
|
|
8499
|
+
};
|
|
8500
|
+
//#endregion
|
|
8497
8501
|
//#region ../theme-core/src/runtime/buildThemeRuntime.ts
|
|
8498
8502
|
function buildThemeRuntime$1(theme, options) {
|
|
8499
8503
|
const hydrated = hydrateTheme(theme);
|
|
@@ -9160,6 +9164,182 @@ function typeBasedLayout(itemTypesMap, options) {
|
|
|
9160
9164
|
});
|
|
9161
9165
|
}
|
|
9162
9166
|
//#endregion
|
|
9167
|
+
//#region ../blocks/src/system/node/nodeProps.ts
|
|
9168
|
+
/**
|
|
9169
|
+
* Which values on a node definition become its component's props.
|
|
9170
|
+
*
|
|
9171
|
+
* The resolver renders these and the custom-block gate checks them, so both
|
|
9172
|
+
* read them from here: if the two ever disagreed, a value could reach the DOM
|
|
9173
|
+
* without being checked (issue 1185).
|
|
9174
|
+
*/
|
|
9175
|
+
/** Keys that describe the node itself. `$`-prefixed keys are directives. */
|
|
9176
|
+
const NODE_STRUCTURE_KEYS = /* @__PURE__ */ new Set([
|
|
9177
|
+
"type",
|
|
9178
|
+
"key",
|
|
9179
|
+
"children",
|
|
9180
|
+
"props"
|
|
9181
|
+
]);
|
|
9182
|
+
/** `Object.hasOwn`, which this package's target library doesn't declare. */
|
|
9183
|
+
const hasOwn = (record, key) => Object.prototype.hasOwnProperty.call(record, key);
|
|
9184
|
+
/**
|
|
9185
|
+
* A node's props in render order. Older manifests put props at the top level of
|
|
9186
|
+
* the node rather than under `props`; those still render, and a key under
|
|
9187
|
+
* `props` wins over the same key at the top level.
|
|
9188
|
+
*/
|
|
9189
|
+
function nodePropEntries(node) {
|
|
9190
|
+
const props = isRecord$5(node.props) ? node.props : {};
|
|
9191
|
+
return [...Object.entries(node).filter(([key]) => !NODE_STRUCTURE_KEYS.has(key) && !key.startsWith("$") && !hasOwn(props, key)).map(([key, value]) => [
|
|
9192
|
+
key,
|
|
9193
|
+
value,
|
|
9194
|
+
"node"
|
|
9195
|
+
]), ...Object.entries(props).map(([key, value]) => [
|
|
9196
|
+
key,
|
|
9197
|
+
value,
|
|
9198
|
+
"props"
|
|
9199
|
+
])];
|
|
9200
|
+
}
|
|
9201
|
+
/** The props the resolver hands to a node's component, before bindings resolve. */
|
|
9202
|
+
function getNodeProps(node) {
|
|
9203
|
+
return Object.fromEntries(nodePropEntries(node).map(([key, value]) => [key, value]));
|
|
9204
|
+
}
|
|
9205
|
+
//#endregion
|
|
9206
|
+
//#region ../theme-core/src/buttons/parseThemeForPersistence.ts
|
|
9207
|
+
/**
|
|
9208
|
+
* Proves that every persisted button variant compiles against the theme's
|
|
9209
|
+
* concrete palette. Public rendering may still recover from malformed
|
|
9210
|
+
* external/runtime input, but persistence boundaries must reject it.
|
|
9211
|
+
*/
|
|
9212
|
+
function parseThemeForPersistence(value) {
|
|
9213
|
+
const parsed = themeSchema.safeParse(value);
|
|
9214
|
+
if (!parsed.success) return {
|
|
9215
|
+
ok: false,
|
|
9216
|
+
error: {
|
|
9217
|
+
kind: "invalid-theme-schema",
|
|
9218
|
+
issues: parsed.error.issues
|
|
9219
|
+
}
|
|
9220
|
+
};
|
|
9221
|
+
const parsedTheme = parsed.data;
|
|
9222
|
+
const theme = parsedTheme.buttons && !parsedTheme.buttons.surfacePolicy ? {
|
|
9223
|
+
...parsedTheme,
|
|
9224
|
+
buttons: {
|
|
9225
|
+
...parsedTheme.buttons,
|
|
9226
|
+
surfacePolicy: createStandardButtonSurfacePolicy()
|
|
9227
|
+
}
|
|
9228
|
+
} : parsedTheme;
|
|
9229
|
+
if (!theme.buttons) return {
|
|
9230
|
+
ok: true,
|
|
9231
|
+
value: theme
|
|
9232
|
+
};
|
|
9233
|
+
const palette = expandPalette(theme.palette);
|
|
9234
|
+
for (const variant of theme.buttons.variants) {
|
|
9235
|
+
const result = compileButtonColourStates({
|
|
9236
|
+
variant,
|
|
9237
|
+
global: theme.buttons.global,
|
|
9238
|
+
palette
|
|
9239
|
+
});
|
|
9240
|
+
if (!result.ok) return {
|
|
9241
|
+
ok: false,
|
|
9242
|
+
error: {
|
|
9243
|
+
kind: "invalid-button-colour-contract",
|
|
9244
|
+
variantId: variant.id,
|
|
9245
|
+
cause: result.error
|
|
9246
|
+
}
|
|
9247
|
+
};
|
|
9248
|
+
}
|
|
9249
|
+
return {
|
|
9250
|
+
ok: true,
|
|
9251
|
+
value: theme
|
|
9252
|
+
};
|
|
9253
|
+
}
|
|
9254
|
+
//#endregion
|
|
9255
|
+
//#region ../blocks/src/system/runtime/inlineStyleGuard.ts
|
|
9256
|
+
/**
|
|
9257
|
+
* Server rendering writes a `style` object as one attribute string, joining
|
|
9258
|
+
* declarations with `;` and leaving each value as it is. A value that holds a
|
|
9259
|
+
* `;` (or a brace) therefore adds declarations nobody wrote, so a bound value
|
|
9260
|
+
* such as an aspect ratio of `1;position:fixed` would escape its property.
|
|
9261
|
+
*
|
|
9262
|
+
* Content can reach a node's `style` through bindings in first-party layouts
|
|
9263
|
+
* as well as custom ones (issue 1185), so the resolver passes every node's
|
|
9264
|
+
* resolved `style` through here before rendering. React also throws while
|
|
9265
|
+
* rendering a `style` that is not an object, which would fail the whole page.
|
|
9266
|
+
*
|
|
9267
|
+
* A value that calls `url()` or `image-set()` is dropped as well. Content is
|
|
9268
|
+
* not a safe place to take an address from (a custom block's author also
|
|
9269
|
+
* writes its field defaults), and no layout puts a file in a node's `style`:
|
|
9270
|
+
* images and video go through media nodes, which the platform serves.
|
|
9271
|
+
*/
|
|
9272
|
+
/**
|
|
9273
|
+
* `linear-gradient(...);` pasted with its semicolon is the same value without
|
|
9274
|
+
* it, so trailing semicolons and the space around the value are trimmed away
|
|
9275
|
+
* rather than costing the owner their background.
|
|
9276
|
+
*/
|
|
9277
|
+
const withoutTrailingSemicolons = (value) => value.trim().replace(/(?:\s*;)+$/, "");
|
|
9278
|
+
function stringDropReason(value) {
|
|
9279
|
+
if (!staysInsideDeclaration(value)) return "adds-declarations";
|
|
9280
|
+
return callsCssLoadingFunction(value) ? "loads-a-file" : null;
|
|
9281
|
+
}
|
|
9282
|
+
function judgeDeclaration(property, value) {
|
|
9283
|
+
if (value === null || value === void 0) return { skipped: true };
|
|
9284
|
+
if (typeof value === "number") return Number.isFinite(value) ? { kept: [property, value] } : { dropped: {
|
|
9285
|
+
property,
|
|
9286
|
+
reason: "not-a-value"
|
|
9287
|
+
} };
|
|
9288
|
+
if (typeof value !== "string") return { dropped: {
|
|
9289
|
+
property,
|
|
9290
|
+
reason: "not-a-value"
|
|
9291
|
+
} };
|
|
9292
|
+
const trimmed = withoutTrailingSemicolons(value);
|
|
9293
|
+
const reason = stringDropReason(trimmed);
|
|
9294
|
+
return reason === null ? { kept: [property, trimmed] } : { dropped: {
|
|
9295
|
+
property,
|
|
9296
|
+
reason
|
|
9297
|
+
} };
|
|
9298
|
+
}
|
|
9299
|
+
/** Which declarations of `style` render, and which are left out and why. */
|
|
9300
|
+
function decideInlineStyle(style) {
|
|
9301
|
+
if (!isRecord$5(style)) return {
|
|
9302
|
+
style: void 0,
|
|
9303
|
+
dropped: []
|
|
9304
|
+
};
|
|
9305
|
+
const judged = Object.entries(style).map(([property, value]) => judgeDeclaration(property, value));
|
|
9306
|
+
return {
|
|
9307
|
+
style: Object.fromEntries(judged.flatMap((entry) => "kept" in entry ? [entry.kept] : [])),
|
|
9308
|
+
dropped: judged.flatMap((entry) => "dropped" in entry ? [entry.dropped] : [])
|
|
9309
|
+
};
|
|
9310
|
+
}
|
|
9311
|
+
//#endregion
|
|
9312
|
+
//#region ../blocks/src/system/runtime/inlineStyleReport.ts
|
|
9313
|
+
/**
|
|
9314
|
+
* The effect half of the inline style guard: the resolver renders the style
|
|
9315
|
+
* `decideInlineStyle` allows and says what was left out (issue 1185).
|
|
9316
|
+
*
|
|
9317
|
+
* A dropped declaration is otherwise invisible. The owner sees a background
|
|
9318
|
+
* that isn't there, and the line logged here is how support finds out why, so
|
|
9319
|
+
* it is written in production too.
|
|
9320
|
+
*/
|
|
9321
|
+
/**
|
|
9322
|
+
* Drops already reported by this process, as `property:reason`. A page of
|
|
9323
|
+
* repeated cards would otherwise log the same line for every card.
|
|
9324
|
+
*/
|
|
9325
|
+
const reportedDrops = /* @__PURE__ */ new Set();
|
|
9326
|
+
function reportDrops(dropped, nodeType) {
|
|
9327
|
+
dropped.filter(({ property, reason }) => !reportedDrops.has(`${property}:${reason}`)).forEach(({ property, reason }) => {
|
|
9328
|
+
reportedDrops.add(`${property}:${reason}`);
|
|
9329
|
+
console.warn("[block-system] Left a style declaration out of the page", {
|
|
9330
|
+
nodeType,
|
|
9331
|
+
property,
|
|
9332
|
+
reason
|
|
9333
|
+
});
|
|
9334
|
+
});
|
|
9335
|
+
}
|
|
9336
|
+
/** The style a node renders with, after warning once per property and reason about anything left out. */
|
|
9337
|
+
function renderedInlineStyle(style, nodeType) {
|
|
9338
|
+
const decision = decideInlineStyle(style);
|
|
9339
|
+
reportDrops(decision.dropped, nodeType);
|
|
9340
|
+
return decision.style;
|
|
9341
|
+
}
|
|
9342
|
+
//#endregion
|
|
9163
9343
|
//#region ../blocks/src/system/data/linkedContentEntries.ts
|
|
9164
9344
|
const LINKED_CONTENT_ENTRY_META_KEY = "__rbLinkedContentEntry";
|
|
9165
9345
|
function coerceLinkedContentEntriesPayload(payload) {
|
|
@@ -9562,6 +9742,29 @@ const offeringsPreviewDatesReadEnabled = {
|
|
|
9562
9742
|
}
|
|
9563
9743
|
};
|
|
9564
9744
|
//#endregion
|
|
9745
|
+
//#region ../blocks/src/bindings/formatDate.ts
|
|
9746
|
+
/** Admit stored civil dates or offset-aware instants before core projection. */
|
|
9747
|
+
function formatDate(value, context, options) {
|
|
9748
|
+
if (typeof value !== "string" || !value) return null;
|
|
9749
|
+
if (/^\d{4}-\d{2}-\d{2}$/u.test(value)) try {
|
|
9750
|
+
return formatDate$1({
|
|
9751
|
+
kind: "civil",
|
|
9752
|
+
value: parseBookingLocalDate(value)
|
|
9753
|
+
}, context, options);
|
|
9754
|
+
} catch {
|
|
9755
|
+
return null;
|
|
9756
|
+
}
|
|
9757
|
+
const instant = parseUtcIsoDateTimeString(value);
|
|
9758
|
+
if (!instant.ok) return null;
|
|
9759
|
+
return options.includeTime ? formatDateTime(instant.value, context, {
|
|
9760
|
+
date: options.date,
|
|
9761
|
+
zone: "omit"
|
|
9762
|
+
}) : formatDate$1({
|
|
9763
|
+
kind: "instant",
|
|
9764
|
+
value: instant.value
|
|
9765
|
+
}, context, options);
|
|
9766
|
+
}
|
|
9767
|
+
//#endregion
|
|
9565
9768
|
//#region ../blocks/src/system/transforms/registry/formatting.ts
|
|
9566
9769
|
const uppercaseTransform = {
|
|
9567
9770
|
id: "string.uppercase",
|
|
@@ -9580,7 +9783,7 @@ const dateFormatShort = {
|
|
|
9580
9783
|
id: "date.formatShort",
|
|
9581
9784
|
kind: "formatter",
|
|
9582
9785
|
summary: "Format ISO date string into short human-readable label",
|
|
9583
|
-
run: (value, _options, context) => formatDate
|
|
9786
|
+
run: (value, _options, context) => formatDate(value, context.dateContext, { date: "short" })
|
|
9584
9787
|
};
|
|
9585
9788
|
const arrayLengthTransform = {
|
|
9586
9789
|
id: "array.length",
|
|
@@ -10996,7 +11199,7 @@ function interpolateRichTextTokens(value, options, context) {
|
|
|
10996
11199
|
if (typeof value !== "string" && !isRecord$5(value)) return value;
|
|
10997
11200
|
const allowedTokens = new Set(options.tokens);
|
|
10998
11201
|
const tokenValues = {
|
|
10999
|
-
year: () => formatDate({
|
|
11202
|
+
year: () => formatDate$1({
|
|
11000
11203
|
kind: "instant",
|
|
11001
11204
|
value: readRuntimeNow(context.now)
|
|
11002
11205
|
}, context.dateContext, {
|
|
@@ -11290,55 +11493,6 @@ function headingDecoration({ bindFrom = defaultBindFrom, className } = {}) {
|
|
|
11290
11493
|
} } })], when(`${bindFrom}.family`));
|
|
11291
11494
|
}
|
|
11292
11495
|
//#endregion
|
|
11293
|
-
//#region ../theme-core/src/buttons/parseThemeForPersistence.ts
|
|
11294
|
-
/**
|
|
11295
|
-
* Proves that every persisted button variant compiles against the theme's
|
|
11296
|
-
* concrete palette. Public rendering may still recover from malformed
|
|
11297
|
-
* external/runtime input, but persistence boundaries must reject it.
|
|
11298
|
-
*/
|
|
11299
|
-
function parseThemeForPersistence(value) {
|
|
11300
|
-
const parsed = themeSchema.safeParse(value);
|
|
11301
|
-
if (!parsed.success) return {
|
|
11302
|
-
ok: false,
|
|
11303
|
-
error: {
|
|
11304
|
-
kind: "invalid-theme-schema",
|
|
11305
|
-
issues: parsed.error.issues
|
|
11306
|
-
}
|
|
11307
|
-
};
|
|
11308
|
-
const parsedTheme = parsed.data;
|
|
11309
|
-
const theme = parsedTheme.buttons && !parsedTheme.buttons.surfacePolicy ? {
|
|
11310
|
-
...parsedTheme,
|
|
11311
|
-
buttons: {
|
|
11312
|
-
...parsedTheme.buttons,
|
|
11313
|
-
surfacePolicy: createStandardButtonSurfacePolicy()
|
|
11314
|
-
}
|
|
11315
|
-
} : parsedTheme;
|
|
11316
|
-
if (!theme.buttons) return {
|
|
11317
|
-
ok: true,
|
|
11318
|
-
value: theme
|
|
11319
|
-
};
|
|
11320
|
-
const palette = expandPalette(theme.palette);
|
|
11321
|
-
for (const variant of theme.buttons.variants) {
|
|
11322
|
-
const result = compileButtonColourStates({
|
|
11323
|
-
variant,
|
|
11324
|
-
global: theme.buttons.global,
|
|
11325
|
-
palette
|
|
11326
|
-
});
|
|
11327
|
-
if (!result.ok) return {
|
|
11328
|
-
ok: false,
|
|
11329
|
-
error: {
|
|
11330
|
-
kind: "invalid-button-colour-contract",
|
|
11331
|
-
variantId: variant.id,
|
|
11332
|
-
cause: result.error
|
|
11333
|
-
}
|
|
11334
|
-
};
|
|
11335
|
-
}
|
|
11336
|
-
return {
|
|
11337
|
-
ok: true,
|
|
11338
|
-
value: theme
|
|
11339
|
-
};
|
|
11340
|
-
}
|
|
11341
|
-
//#endregion
|
|
11342
11496
|
//#region ../blocks/src/structure/pageRegions.ts
|
|
11343
11497
|
function outlineRegions(page) {
|
|
11344
11498
|
return [{
|
|
@@ -14148,7 +14302,7 @@ function stripNumericPathSegments(path) {
|
|
|
14148
14302
|
}
|
|
14149
14303
|
const lookOwnedPathCache = /* @__PURE__ */ new WeakMap();
|
|
14150
14304
|
function lookOwnedPathsOf(content) {
|
|
14151
|
-
if (!
|
|
14305
|
+
if (!isRecord$5(content)) return [];
|
|
14152
14306
|
const cached = lookOwnedPathCache.get(content);
|
|
14153
14307
|
if (cached) return cached;
|
|
14154
14308
|
const value = content._lookOwnedPaths;
|
|
@@ -14179,7 +14333,7 @@ function contentFieldSegments(fromPath, context) {
|
|
|
14179
14333
|
if (first === "content") return rest;
|
|
14180
14334
|
const named = findNamedScope(context, first);
|
|
14181
14335
|
if (named) return scopedContentSegments(named, rest);
|
|
14182
|
-
const innermost = [...context.scopes].reverse().find((entry) =>
|
|
14336
|
+
const innermost = [...context.scopes].reverse().find((entry) => isRecord$5(entry.value) || Array.isArray(entry.value));
|
|
14183
14337
|
if (!innermost || first in context.viewModel) return void 0;
|
|
14184
14338
|
return innermost.name === "content" ? [first, ...rest] : scopedContentSegments(innermost, [first, ...rest]);
|
|
14185
14339
|
}
|
|
@@ -14223,29 +14377,23 @@ function readFromSource$1(source, segments) {
|
|
|
14223
14377
|
}, source);
|
|
14224
14378
|
}
|
|
14225
14379
|
/**
|
|
14226
|
-
* Type guard for plain objects.
|
|
14227
|
-
*/
|
|
14228
|
-
function isPlainObject$3(value) {
|
|
14229
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
14230
|
-
}
|
|
14231
|
-
/**
|
|
14232
14380
|
* Validates and converts a route entry from the viewModel.
|
|
14233
14381
|
*/
|
|
14234
14382
|
function parseRouteEntry(routeId, value) {
|
|
14235
14383
|
if (typeof routeId !== "string" || routeId.length === 0) return null;
|
|
14236
14384
|
if (typeof value === "string") return [routeId, value];
|
|
14237
|
-
if (
|
|
14385
|
+
if (isRecord$5(value)) return [routeId, value];
|
|
14238
14386
|
return null;
|
|
14239
14387
|
}
|
|
14240
14388
|
/**
|
|
14241
14389
|
* Extracts route map from $root.routes in the viewModel.
|
|
14242
14390
|
*/
|
|
14243
14391
|
function extractRouteMapFromViewModel(viewModel) {
|
|
14244
|
-
if (!
|
|
14392
|
+
if (!isRecord$5(viewModel)) return void 0;
|
|
14245
14393
|
const root = viewModel.$root;
|
|
14246
|
-
if (!
|
|
14394
|
+
if (!isRecord$5(root)) return void 0;
|
|
14247
14395
|
const routes = root.routes;
|
|
14248
|
-
if (!
|
|
14396
|
+
if (!isRecord$5(routes)) return void 0;
|
|
14249
14397
|
const entries = Object.entries(routes).map(([routeId, value]) => parseRouteEntry(routeId, value)).filter((entry) => entry !== null);
|
|
14250
14398
|
if (entries.length === 0) return void 0;
|
|
14251
14399
|
return Object.fromEntries(entries);
|
|
@@ -14254,22 +14402,22 @@ function extractRouteMapFromViewModel(viewModel) {
|
|
|
14254
14402
|
* Extracts pagesByIdentifier from $root.pagesByIdentifier in the viewModel.
|
|
14255
14403
|
*/
|
|
14256
14404
|
function extractPagesByIdentifierFromViewModel(viewModel) {
|
|
14257
|
-
if (!
|
|
14405
|
+
if (!isRecord$5(viewModel)) return void 0;
|
|
14258
14406
|
const root = viewModel.$root;
|
|
14259
|
-
if (!
|
|
14407
|
+
if (!isRecord$5(root)) return void 0;
|
|
14260
14408
|
const pagesByIdentifier = root.pagesByIdentifier;
|
|
14261
|
-
if (!
|
|
14409
|
+
if (!isRecord$5(pagesByIdentifier)) return void 0;
|
|
14262
14410
|
return pagesByIdentifier;
|
|
14263
14411
|
}
|
|
14264
14412
|
/**
|
|
14265
14413
|
* Extracts entriesByIdentifier from $root.entriesByIdentifier in the viewModel.
|
|
14266
14414
|
*/
|
|
14267
14415
|
function extractEntriesByIdentifierFromViewModel(viewModel) {
|
|
14268
|
-
if (!
|
|
14416
|
+
if (!isRecord$5(viewModel)) return void 0;
|
|
14269
14417
|
const root = viewModel.$root;
|
|
14270
|
-
if (!
|
|
14418
|
+
if (!isRecord$5(root)) return void 0;
|
|
14271
14419
|
const entriesByIdentifier = root.entriesByIdentifier;
|
|
14272
|
-
if (!
|
|
14420
|
+
if (!isRecord$5(entriesByIdentifier)) return void 0;
|
|
14273
14421
|
return entriesByIdentifier;
|
|
14274
14422
|
}
|
|
14275
14423
|
/**
|
|
@@ -14291,7 +14439,7 @@ function applyTransformsAndFallback(value, binding, context) {
|
|
|
14291
14439
|
const routeMap = context.routes ?? extractRouteMapFromViewModel(context.viewModel);
|
|
14292
14440
|
const pagesByIdentifier = context.pagesByIdentifier ?? extractPagesByIdentifierFromViewModel(context.viewModel);
|
|
14293
14441
|
const entriesByIdentifier = context.entriesByIdentifier ?? extractEntriesByIdentifierFromViewModel(context.viewModel);
|
|
14294
|
-
const stage = (
|
|
14442
|
+
const stage = (isRecord$5(context.viewModel.$root) ? context.viewModel.$root : null)?.previewStage === "preview" ? "preview" : "published";
|
|
14295
14443
|
const transformed = runTransforms(value, binding.transforms?.map((step) => ({
|
|
14296
14444
|
id: step.id,
|
|
14297
14445
|
options: step.options
|
|
@@ -14323,15 +14471,15 @@ function resolveTransformData(context, bindingPath) {
|
|
|
14323
14471
|
const [first] = splitPath$1(bindingPath);
|
|
14324
14472
|
if (typeof first === "string" && first !== "$root") {
|
|
14325
14473
|
const namedScope = findNamedScope(context, first);
|
|
14326
|
-
if (namedScope &&
|
|
14474
|
+
if (namedScope && isRecord$5(namedScope.value)) return namedScope.value;
|
|
14327
14475
|
}
|
|
14328
14476
|
for (let i = context.scopes.length - 1; i >= 0; i -= 1) {
|
|
14329
14477
|
const scope = context.scopes[i];
|
|
14330
|
-
if (scope &&
|
|
14478
|
+
if (scope && isRecord$5(scope.value)) return scope.value;
|
|
14331
14479
|
}
|
|
14332
14480
|
const content = context.viewModel.content;
|
|
14333
|
-
if (
|
|
14334
|
-
if (
|
|
14481
|
+
if (isRecord$5(content)) return content;
|
|
14482
|
+
if (isRecord$5(context.viewModel)) return context.viewModel;
|
|
14335
14483
|
}
|
|
14336
14484
|
function coerceBindingValue(value, binding) {
|
|
14337
14485
|
const mode = binding.coerce;
|
|
@@ -14418,7 +14566,7 @@ function richTextSelfPresence(node) {
|
|
|
14418
14566
|
}
|
|
14419
14567
|
}
|
|
14420
14568
|
function hasResolvableRichTextImageSource(node) {
|
|
14421
|
-
const attrs =
|
|
14569
|
+
const attrs = isRecord$5(node.attrs) ? node.attrs : {};
|
|
14422
14570
|
return hasNonBlankStringAttr(attrs, "src") || hasNonBlankStringAttr(attrs, "identifier");
|
|
14423
14571
|
}
|
|
14424
14572
|
function hasNonBlankStringAttr(attrs, key) {
|
|
@@ -14619,7 +14767,7 @@ function getNestedBinding(bindings, path) {
|
|
|
14619
14767
|
const segments = path.split(".");
|
|
14620
14768
|
let current = bindings;
|
|
14621
14769
|
for (const segment of segments) {
|
|
14622
|
-
if (!
|
|
14770
|
+
if (!isRecord$5(current)) return void 0;
|
|
14623
14771
|
current = current[segment];
|
|
14624
14772
|
}
|
|
14625
14773
|
return current;
|
|
@@ -14642,7 +14790,7 @@ function resolveBindingToEditorPath(fieldName, bindings, editableRouteMetadataFi
|
|
|
14642
14790
|
};
|
|
14643
14791
|
const binding = bindings[fieldName] ?? getNestedBinding(bindings, fieldName);
|
|
14644
14792
|
if (!binding) return null;
|
|
14645
|
-
if (
|
|
14793
|
+
if (isRecord$5(binding) && "source" in binding) {
|
|
14646
14794
|
const source = binding.source;
|
|
14647
14795
|
if (source === "field" && "path" in binding) {
|
|
14648
14796
|
const path = binding.path;
|
|
@@ -14659,7 +14807,7 @@ function resolveBindingToEditorPath(fieldName, bindings, editableRouteMetadataFi
|
|
|
14659
14807
|
if (!Array.isArray(options)) return null;
|
|
14660
14808
|
for (const option of options) {
|
|
14661
14809
|
if (typeof option === "string") return `content.${option}`;
|
|
14662
|
-
if (
|
|
14810
|
+
if (isRecord$5(option) && "source" in option) {
|
|
14663
14811
|
const optSource = option.source;
|
|
14664
14812
|
if (optSource === "field" && "path" in option) {
|
|
14665
14813
|
const path = option.path;
|
|
@@ -14711,7 +14859,7 @@ function derivePreviewTextEditableTarget(parsedBinding, context) {
|
|
|
14711
14859
|
};
|
|
14712
14860
|
}
|
|
14713
14861
|
const root = context.viewModel?.$root;
|
|
14714
|
-
if (
|
|
14862
|
+
if (isRecord$5(root) && root.contentEntry != null && context.pathBase) return {
|
|
14715
14863
|
kind: "read-only",
|
|
14716
14864
|
reason: "entry-template-block-field"
|
|
14717
14865
|
};
|
|
@@ -14770,7 +14918,7 @@ function injectMediaSlotPath(props, node, parsedBinding, context) {
|
|
|
14770
14918
|
if (resolveBindingToEditorPath(fieldPath, context.blockBindings, context.editableRouteMetadataFieldIds)) return props;
|
|
14771
14919
|
}
|
|
14772
14920
|
const root = context.viewModel?.$root;
|
|
14773
|
-
if (
|
|
14921
|
+
if (isRecord$5(root) && root.contentEntry != null && context.pathBase) return props;
|
|
14774
14922
|
return {
|
|
14775
14923
|
...props,
|
|
14776
14924
|
fieldPath
|
|
@@ -14888,7 +15036,7 @@ function resolveNode(node, context, indexFallback) {
|
|
|
14888
15036
|
const parsedBinding = node.$bind ? parseBinding(node.$bind, "$bind") : void 0;
|
|
14889
15037
|
const bindingValue = parsedBinding ? resolveBindingValue$1(parsedBinding, scopeContext) : void 0;
|
|
14890
15038
|
let props = resolveProps(getNodeProps(node), scopeContext, bindingValue);
|
|
14891
|
-
props = injectEditorPath(props, node, parsedBinding, scopeContext);
|
|
15039
|
+
props = injectEditorPath(guardResolvedStyle(props, node.type), node, parsedBinding, scopeContext);
|
|
14892
15040
|
props = injectMediaSlotPath(props, node, parsedBinding, scopeContext);
|
|
14893
15041
|
const headingDecorationPlan = planHeadingDecoration({
|
|
14894
15042
|
node,
|
|
@@ -14973,19 +15121,12 @@ function resolveProps(props, context, bindingValue) {
|
|
|
14973
15121
|
if (bindingValue !== void 0) resolved.value = bindingValue;
|
|
14974
15122
|
return resolved;
|
|
14975
15123
|
}
|
|
14976
|
-
|
|
14977
|
-
|
|
14978
|
-
|
|
14979
|
-
|
|
14980
|
-
|
|
14981
|
-
|
|
14982
|
-
legacy[key] = value;
|
|
14983
|
-
}
|
|
14984
|
-
const props = isPlainObject$3(node.props) ? node.props : {};
|
|
14985
|
-
return {
|
|
14986
|
-
...legacy,
|
|
14987
|
-
...props
|
|
14988
|
-
};
|
|
15124
|
+
/** A node's resolved `style` reaches the DOM only through the inline style guard. */
|
|
15125
|
+
function guardResolvedStyle(props, nodeType) {
|
|
15126
|
+
return "style" in props ? {
|
|
15127
|
+
...props,
|
|
15128
|
+
style: renderedInlineStyle(props.style, nodeType)
|
|
15129
|
+
} : props;
|
|
14989
15130
|
}
|
|
14990
15131
|
/**
|
|
14991
15132
|
* Main entry point for resolving node definitions into React elements.
|
|
@@ -15016,12 +15157,12 @@ function bindItemSurfacePresentation(node, context) {
|
|
|
15016
15157
|
const slot = resolveProps({ "data-slot": declared }, context, void 0)["data-slot"];
|
|
15017
15158
|
if (!["item", "lead"].includes(String(slot))) return context;
|
|
15018
15159
|
const content = context.blockContent;
|
|
15019
|
-
if (!
|
|
15160
|
+
if (!isRecord$5(content) || !isRecord$5(content._effectiveLook)) return context;
|
|
15020
15161
|
const look = content._effectiveLook;
|
|
15021
15162
|
if (!look.surfacePresentation) return context;
|
|
15022
15163
|
const itemScope = context.scopes.reduce((found, scope) => scope.repeater ? scope : found, void 0);
|
|
15023
15164
|
const repeater = itemScope?.repeater;
|
|
15024
|
-
const featured =
|
|
15165
|
+
const featured = isRecord$5(itemScope?.value) && itemScope.value.featured === true;
|
|
15025
15166
|
const role = repeater ? itemRole(repeater.index, repeater.count, look.itemRoles, featured) : void 0;
|
|
15026
15167
|
return {
|
|
15027
15168
|
...context,
|
|
@@ -15031,14 +15172,14 @@ function bindItemSurfacePresentation(node, context) {
|
|
|
15031
15172
|
function arrangementSlotProps(props, context) {
|
|
15032
15173
|
const content = context.blockContent;
|
|
15033
15174
|
const slot = props["data-slot"];
|
|
15034
|
-
if (typeof slot !== "string" || !
|
|
15175
|
+
if (typeof slot !== "string" || !isRecord$5(content) || !isRecord$5(content._effectiveLook)) return {};
|
|
15035
15176
|
const look = content._effectiveLook;
|
|
15036
15177
|
const surface = (context.surfacePresentation ?? look.surfacePresentation)?.slots[slot];
|
|
15037
15178
|
return surface ? resolvedItemSurfaceProps(surface, slot, props.style) : { "data-surface": "section" };
|
|
15038
15179
|
}
|
|
15039
15180
|
function arrangementMediaPlaceholder(node, context) {
|
|
15040
15181
|
const content = context.blockContent;
|
|
15041
|
-
if (!
|
|
15182
|
+
if (!isRecord$5(content) || content._lookAudience !== "authoring" || content.showPhotos === false) return null;
|
|
15042
15183
|
const from = arrangementPlaceholderMediaPath(node);
|
|
15043
15184
|
if (!from) return null;
|
|
15044
15185
|
const fieldPath = arrangementPlaceholderFieldPath(from, context);
|
|
@@ -30282,9 +30423,9 @@ Object.freeze({
|
|
|
30282
30423
|
*/
|
|
30283
30424
|
const SECTION_VALUES_CONTENT_KEY = "sections";
|
|
30284
30425
|
function readStoredSectionValues(content) {
|
|
30285
|
-
if (!isRecord$
|
|
30426
|
+
if (!isRecord$8(content)) return {};
|
|
30286
30427
|
const sections = content[SECTION_VALUES_CONTENT_KEY];
|
|
30287
|
-
return isRecord$
|
|
30428
|
+
return isRecord$8(sections) ? sections : {};
|
|
30288
30429
|
}
|
|
30289
30430
|
//#endregion
|
|
30290
30431
|
//#region ../content-model/src/page-sections/facts.ts
|
|
@@ -30683,8 +30824,8 @@ function applyTransform(name, value, dateContext) {
|
|
|
30683
30824
|
if (!name) return value;
|
|
30684
30825
|
switch (name) {
|
|
30685
30826
|
case TRANSFORMS.RICHTEXT_FIRST_PARAGRAPH: return extractFirstParagraph(value);
|
|
30686
|
-
case TRANSFORMS.DATE_FORMAT_SHORT: return formatDate
|
|
30687
|
-
case TRANSFORMS.DATE_FORMAT_LONG: return formatDate
|
|
30827
|
+
case TRANSFORMS.DATE_FORMAT_SHORT: return formatDate(value, dateContext, { date: "short" });
|
|
30828
|
+
case TRANSFORMS.DATE_FORMAT_LONG: return formatDate(value, dateContext, {
|
|
30688
30829
|
date: "long",
|
|
30689
30830
|
includeTime: true
|
|
30690
30831
|
});
|
|
@@ -31566,7 +31707,7 @@ function ensureFieldValue(field, raw, ctx) {
|
|
|
31566
31707
|
return (Array.isArray(value) ? value : []).map((item) => ensureRepeaterItem(field, item, ctx));
|
|
31567
31708
|
}
|
|
31568
31709
|
function ensureRepeaterItem(field, value, ctx) {
|
|
31569
|
-
const itemData = isRecord$
|
|
31710
|
+
const itemData = isRecord$8(value) ? value : {};
|
|
31570
31711
|
const itemType = typeof itemData._type === "string" ? itemData._type : Object.keys(field.itemTypes ?? {})[0] ?? "";
|
|
31571
31712
|
const fields = field.polymorphic ? field.itemTypes[itemType]?.fields ?? [] : getRepeaterChildFields(field);
|
|
31572
31713
|
return {
|