@riverbankcms/sdk 0.163.0 → 0.165.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 +12 -1
- package/dist/_dts/{BlocksIslandsHydrator-DYPGA_qh.d.ts → BlocksIslandsHydrator-CdsSMQEv.d.ts} +1 -1
- package/dist/_dts/{Page-zwnvFBPu.d.ts → Page-D6gp2Ipb.d.ts} +15 -12
- package/dist/_dts/{SdkPreviewMode-DukuJzGr.d.ts → SdkPreviewMode-DNXAvnet.d.ts} +83 -72
- package/dist/_dts/{client-Chh3bnXC.d.ts → client-BkkExozE.d.ts} +13 -41
- package/dist/_dts/{content-types-Bbzqw9J2.d.ts → content-types-CXNAD7ef.d.ts} +2 -2
- package/dist/_dts/{contracts-GJ1kGBsi.d.ts → contracts-XRXhbLWP.d.ts} +5 -4
- package/dist/_dts/{footerPageOutline-BNMKhyvo.d.ts → footerPageOutline-BP2bJYdY.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-Ce0m1P3B.d.ts → generatePageMetadata-DcMtbztV.d.ts} +2 -2
- package/dist/_dts/{index-CyQhZuhM.d.ts → index-B4ozSzFP.d.ts} +48377 -47862
- package/dist/_dts/{index-DRxgeK8L.d.ts → index-BdkHhyf8.d.ts} +2 -2
- package/dist/_dts/{index-CdSNXLOx.d.ts → index-CQfJhOEA.d.ts} +2 -2
- package/dist/_dts/{index-C3mJvn27.d.ts → index-CRRiddNp.d.ts} +4 -4
- package/dist/_dts/index-CXsnaCGe.d.ts +10 -0
- package/dist/_dts/{index-rhMSu0oY.d.ts → index-C_3kdrUb.d.ts} +2 -2
- package/dist/_dts/{index-CaL0nKkl.d.ts → index-DAPTSmBM.d.ts} +31097 -31047
- package/dist/_dts/{index-FstkyqQB.d.ts → index-DKNEgSOS.d.ts} +2 -2
- package/dist/_dts/{index-G2p-HOrK.d.ts → index-RXkE3a7M.d.ts} +3 -3
- package/dist/_dts/{loadContent-DiLZoInK.d.ts → loadContent-B9vJMq3s.d.ts} +15 -30
- package/dist/_dts/{resolvePageContent-CWUnipv8.d.ts → resolvePageContent-DIQyYUi-.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +3 -4
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +6 -6
- 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/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/index.d.ts +7 -7
- 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/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +32 -52
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-BmtrA45p.d.ts → types-BDF73NzM.d.ts} +3 -2
- package/dist/_dts/{types-DFOqkClJ.d.ts → types-Cl0nP6al.d.ts} +3 -3
- package/dist/_dts/{types-CalL7aKP.d.ts → types-mstFvhK4.d.ts} +7 -7
- package/dist/_dts/{validation-G8MRoIhq.d.ts → validation-DVWqSvjK.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DLCXwe30.mjs → BlocksIslandsHydrator-CzKpH9Pm.mjs} +20 -20
- package/dist/client/{BookingMailingListNote-BV5-50F0.mjs → BookingMailingListNote-rUqsBN7L.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-CVLAHdZG.mjs → CalendarNavigationChevron-YGzw2IPB.mjs} +6 -6
- package/dist/client/{CheckboxChoice-Dtgp3OU8.mjs → CheckboxChoice-DlTC4J2a.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-B3caCnTT.mjs → DemoBookingPortalAccess-D2LyS_Bi.mjs} +5 -5
- package/dist/client/{DemoPortalSignInLink-Ct8JMKW0.mjs → DemoPortalSignInLink-BaFg2Uit.mjs} +1 -1
- package/dist/client/{EventCalendar.client-ffa6920T.mjs → EventCalendar.client-tRrhPscX.mjs} +17 -10
- package/dist/client/{EventCombined.client-zm0W2G79.mjs → EventCombined.client-6cfAVtnZ.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-CPPE2rWS.mjs → EventEmbeddedCheckoutStep-CDNUpI0S.mjs} +2 -1
- package/dist/client/{EventItem-CND3mfra.mjs → EventItem-dILw2PN_.mjs} +27 -17
- package/dist/client/{EventListWeekNavigation-D8QdxL_f.mjs → EventListWeekNavigation-ClgLtjNY.mjs} +1 -1
- package/dist/client/{EventListing.client-CaoRZUI9.mjs → EventListing.client-BNueAHmU.mjs} +3 -3
- package/dist/client/{EventListing.view-BfnOmxYD.mjs → EventListing.view-DtVbKVkt.mjs} +56 -12
- package/dist/client/{EventRegistrationPayment-Dfu3RSL2.mjs → EventRegistrationPayment-CzkG0NSJ.mjs} +18 -22
- package/dist/client/{LocationMapActions-wlyxASdT.mjs → LocationMapActions-zWQsJhE5.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-B9oKSitp.mjs → MapDrawingSvg-D1AO_o4h.mjs} +1 -1
- package/dist/client/{Page-BEF9HrAy.mjs → Page-DUr2YhFR.mjs} +1949 -418
- package/dist/client/ProtectedSubmitButton-2fJqT_NR.mjs +14 -0
- package/dist/client/SpamProtectionWidget-CCF6YLUX.mjs +141 -0
- package/dist/client/{StepIndicator-Bjx4faaw.mjs → StepIndicator-udNHcpOT.mjs} +2 -2
- package/dist/client/{TabBarFragment-Cu7k_VSl.mjs → TabBarFragment-C_kt-PXh.mjs} +1 -1
- package/dist/client/{ThemedButton-DclwabI7.mjs → ThemedButton-Cfbo1bfh.mjs} +2 -898
- package/dist/client/{accordion-lzM2nSZB.mjs → accordion-3CYNWzTS.mjs} +1 -1
- package/dist/client/altchaProtection-DjIV9A5n.mjs +12 -0
- package/dist/client/{booking-form.client-Bll4QwBi.mjs → booking-form.client-BSbWgLyx.mjs} +23 -56
- package/dist/client/{bookingForm-Cq5fQ-vo.mjs → bookingForm-2MoFBWSt.mjs} +4 -4
- package/dist/client/bookings.mjs +23 -32
- package/dist/client/{carousel-CxerQwIx.mjs → carousel-Cu5mcpO-.mjs} +2 -2
- package/dist/client/{carousel.client-CVUXq8Mb.mjs → carousel.client-CQLV8_Al.mjs} +1 -1
- package/dist/client/{cart-X-m0isoI.mjs → cart-CDc6x9cR.mjs} +3 -3
- package/dist/client/{cart.client-CJbzWIl0.mjs → cart.client-BWS2r5Ef.mjs} +1 -1
- package/dist/client/{checkout-Gd0O_fGH.mjs → checkout-CkxPqSwD.mjs} +3 -3
- package/dist/client/{checkout.client-Baee6Jsm.mjs → checkout.client-DJfomKQc.mjs} +1 -1
- package/dist/client/client.mjs +216 -109
- package/dist/client/{context-Bg0SFWcM.mjs → context-CBV21-9L.mjs} +17 -3
- package/dist/client/{cta-HffyM4MA.mjs → cta-Bw-al3cs.mjs} +26 -2
- package/dist/client/{dateFormatting-CV45BH5M.mjs → dateFormatting-CFIUJ4Uf.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CDWheSjI.mjs → demoPortalMagicLink-D0veHJyi.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-BqVDXL0D.mjs → enhanceHeaderSection-CEqqq92r.mjs} +3 -3
- package/dist/client/{event-details.client-SFtS9OkF.mjs → event-details.client-Bk2kQ7ax.mjs} +1 -1
- package/dist/client/{event-registration.client-CguNVIFY.mjs → event-registration.client-QMqtIywj.mjs} +47 -56
- package/dist/client/{eventCalendar-DSGG35jd.mjs → eventCalendar-BTDTMosr.mjs} +4 -4
- package/dist/client/{eventCombined-Oe-PiChx.mjs → eventCombined-BC7a709c.mjs} +4 -4
- package/dist/client/{eventDetails-BhcTT6P3.mjs → eventDetails-DL08GpUc.mjs} +2 -2
- package/dist/client/{eventListing-BS0kBEgI.mjs → eventListing-BfzuEQp_.mjs} +4 -4
- package/dist/client/{eventRegistration-B82SHv7j.mjs → eventRegistration-Lfyzh1Ab.mjs} +4 -4
- package/dist/client/{form-DAIUrVXb.mjs → form-L-xZOBUS.mjs} +3 -3
- package/dist/client/{form.client-BoAkhoh_.mjs → form.client-BtpK3TZW.mjs} +33 -24
- package/dist/client/{form.parts-1VnasOK8.mjs → form.parts-Djos5Un4.mjs} +6 -5
- package/dist/client/{formatDate-BKil_Psb.mjs → formatDate-DGmrm7YB.mjs} +1 -1
- package/dist/client/gifting/client.mjs +5 -4
- package/dist/client/{headerSection-CyuHk8Ei.mjs → headerSection-f16OGkz-.mjs} +2 -2
- package/dist/client/{mediaAssets-CGJE1Omu.mjs → mediaAssets-DHAmrVIi.mjs} +1 -1
- package/dist/client/{mediaContext-DIkX2S-X.mjs → mediaContext-CwT6ZOm7.mjs} +1 -1
- package/dist/client/{newsletter-form.client-CCdyHx0B.mjs → newsletter-form.client-DpHNZc7k.mjs} +100 -85
- package/dist/client/{newsletter-form.parts-Dl8AjsXW.mjs → newsletter-form.parts-CLGH20PL.mjs} +11 -7
- package/dist/client/{newsletterForm-qFWLZJui.mjs → newsletterForm-BEU0Ocu9.mjs} +3 -3
- package/dist/client/{noop-4XFGzJpT.mjs → noop-CQU7tiMg.mjs} +8 -4
- package/dist/client/portal/client.mjs +13 -12
- package/dist/client/{product-detail.client-Tq4S99ce.mjs → product-detail.client-Be-om1BT.mjs} +1 -1
- package/dist/client/{product-list.client-CuL5jB1w.mjs → product-list.client-DR7hD5Vs.mjs} +1 -1
- package/dist/client/{productDetail-BRqgcotZ.mjs → productDetail-BD42UOmG.mjs} +3 -3
- package/dist/client/{productList-EK9Um-oh.mjs → productList-CSk8sXCl.mjs} +3 -3
- package/dist/client/{propsDecoder-VD4arFq1.mjs → propsDecoder-C_Y6VYnF.mjs} +3 -3
- package/dist/client/protection-C0PoH1lT.mjs +104 -0
- package/dist/client/purchase-BV5xfaZH.mjs +894 -0
- package/dist/client/{registry.server-qYbsatxH.mjs → registry.server-CIKtTsCl.mjs} +197 -167
- package/dist/client/rendering/client.mjs +27 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +11 -7
- package/dist/client/{richText-coerce-CW8CFk8v.mjs → richText-coerce-spWtx86G.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CnZ_1ol2.mjs → routeIslandApiConfig-CROHPlYS.mjs} +1 -1
- package/dist/client/{schema-BFwQDvJL.mjs → schema-BdSglH2X.mjs} +2690 -2500
- package/dist/client/{shop-CTUaT57E.mjs → shop-DscvMz86.mjs} +3 -3
- package/dist/client/{shop-commerce-BWwbsm_-.mjs → shop-commerce-CDUohm_2.mjs} +11 -11
- package/dist/client/{shop-commerce-store-15UII0y3.mjs → shop-commerce-store-B9nw4lRP.mjs} +1 -1
- package/dist/client/{shop.client-UWgdmJBm.mjs → shop.client-M3kNsVPi.mjs} +12 -12
- package/dist/client/{shop.interactive-Cf_kASpd.mjs → shop.interactive-BGmkdIAZ.mjs} +268 -31
- package/dist/client/{shopShared-Bi8d584P.mjs → shopShared-BdWp6LHa.mjs} +2 -2
- package/dist/client/{site-styles-dy54AUdz.mjs → site-styles-CWHmlVT5.mjs} +2630 -461
- package/dist/client/spam-protection.mjs +4 -69
- package/dist/client/{timetableModel-Bi8ruFgB.mjs → timetableModel-Dynh5-j4.mjs} +10 -10
- package/dist/client/{useAvailableSlots-DiLbDqM3.mjs → useAvailableSlots-Cw9paRPY.mjs} +3 -3
- package/dist/client/{useBookingNowIso-CWIiqPd0.mjs → useBookingNowIso-C9SF2rC6.mjs} +1 -1
- package/dist/client/{useDiscountApply-ChtszhF9.mjs → useDiscountApply-B-QJfBg0.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-B0Z7n2tZ.mjs → useDiscountCodeUi-Uvum8q9d.mjs} +1 -1
- package/dist/client/{useEventPagination-DRrATQHQ.mjs → useEventPagination-BfM3xk6j.mjs} +9 -156
- package/dist/client/{view-yUIfWX3S.mjs → view-DXOuduIr.mjs} +4 -4
- package/dist/client/{view-OvsxzgxP.mjs → view-DlkCDfuN.mjs} +45 -32
- package/dist/client/{wizardSteps-kbONzKUv.mjs → wizardSteps-DManVJpc.mjs} +57 -47
- package/dist/preview-next/before-render.mjs +2 -2
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-DzoFjIqB.mjs → EventEmbeddedCheckoutStep-Die6Y25O.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-QtSG2Bl-.mjs → LocationPickerEnvironment-Bp4BHLCL.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-B-rohNcG.mjs → MapLibreEditMap-Cb0JhM9p.mjs} +2 -2
- package/dist/preview-next/client/{PreviewEditorSidebar-BhgPyyUW.mjs → PreviewEditorSidebar-DEP3xD9K.mjs} +3478 -3109
- package/dist/preview-next/client/{PreviewEditorUI-lndKKBtB.mjs → PreviewEditorUI-CxwlLBGw.mjs} +577 -172
- package/dist/preview-next/client/{SdkPreviewModeRuntime-DCDDXDlt.mjs → SdkPreviewModeRuntime-Cpe-XP8e.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Bk7On_EM.mjs → SdkPreviewModeRuntime-QDkMPASV.mjs} +3761 -4769
- package/dist/preview-next/client/{siteStyleAccess-Chq5KKKh.mjs → SiteChromeCustomizeButton-1JaoGOKX.mjs} +3862 -8657
- package/dist/preview-next/client/{ThemedButton-nUnE3iMv.mjs → ThemedButton-Dc6aJ34Z.mjs} +274 -68
- package/dist/preview-next/client/editorStatusDecision-DR4BBKhy.mjs +101 -0
- package/dist/preview-next/client/{lucide-react-CA9cpo0P.mjs → lucide-react-CqxuVAyz.mjs} +1 -1
- package/dist/preview-next/client/{previewChromeSurface-CxQ6dZ8D.mjs → previewChromeSurface-yuwnDP3B.mjs} +49 -6
- package/dist/preview-next/client/{previewAuthStore-DHtSQIBE.mjs → previewSidebarNavigation-AXUj9-qQ.mjs} +186449 -173608
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DSZv7Vfm.mjs → sdk-runtime-O-eA9-rV.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +3 -3
- package/dist/preview-next/middleware.mjs +2 -2
- package/dist/preview-next/{route-contract-CxCstfkP.mjs → route-contract-BBAJjFIz.mjs} +42 -50
- package/dist/preview-next/{session-P1R_ajT7.mjs → session-DU6zpYUQ.mjs} +1 -1
- package/dist/preview-next/session.mjs +1 -1
- package/dist/server/{Block.shared-Dz9k8vCX.mjs → Block.shared-ClFI3qpX.mjs} +5 -4
- package/dist/server/{bindings-S-gCHhj5.mjs → bindings-Bi8EoRZD.mjs} +2 -2
- package/dist/server/{client-C2Q56xqV.mjs → client-DfMDbZ41.mjs} +215 -109
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{effectiveNavLinkStyle-DLzJPcDL.mjs → effectiveNavLinkStyle-BHIYPVG1.mjs} +2362 -217
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-D7ItMsEl.mjs → loadContent-dEEhQxL7.mjs} +6 -4
- package/dist/server/loadPage-CnVB-aeL.mjs +2 -0
- package/dist/server/{loadPage-DaPiPYUL.mjs → loadPage-DBFBad8A.mjs} +3 -2
- package/dist/server/next/middleware.mjs +1 -1
- package/dist/server/next/revalidate.mjs +1 -1
- package/dist/server/next.mjs +11 -11
- package/dist/server/{overrideResolution-anoB3Kbn.mjs → overrideResolution-BIJbiXYc.mjs} +1 -1
- package/dist/server/{overrides-W1Cc6srh.mjs → overrides-DhF87Vsd.mjs} +352 -141
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-BF9yNfCS.mjs → prebuild-DaemmWQL.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Cn9k3DW6.mjs → prefetchBlockData-FwcsT5H2.mjs} +334 -110
- package/dist/server/{publicProducts-BVcJ6TG7.mjs → publicProducts-Bz8loTRn.mjs} +87 -78
- package/dist/server/{registry-4ZF3bUuJ.mjs → registry-Cdvz1OtL.mjs} +539 -401
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-BKQ1Fc0M.mjs → resolveBlockData-CLpAJWWf.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-DgrigZq9.mjs → schema-uSA_x1Zh.mjs} +247 -57
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-CxE9F3hj.mjs → site-styles-CntHn2KI.mjs} +61 -37
- package/dist/server/{siteChromeOverlayClearance-OhS6f830.mjs → siteChromeOverlayClearance-DqP40Ka0.mjs} +32 -36
- package/dist/server/{src-C44_fMy5.mjs → src-DsYPhTbs.mjs} +1289 -90
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-CVc04B9m.mjs → themeAdmission-CSknYpxk.mjs} +3 -2
- package/dist/server/{validation-BrbY0nxR.mjs → validation-DYxhLzqQ.mjs} +2 -2
- package/dist/server/{version-BBSk8uM6.mjs → version-Beu4q-Gv.mjs} +1 -1
- package/dist/styles/index.css +1173 -72
- package/package.json +2 -3
- package/dist/_dts/AltchaWidget-COIYJ7DF.d.ts +0 -33
- package/dist/_dts/index-D2y4Iy-d.d.ts +0 -77
- package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +0 -1
- package/dist/client/src-BNZzXgWu.mjs +0 -102
- package/dist/preview-next/client/spinner-CjxE3uws.mjs +0 -67
- package/dist/server/loadPage-D2qvYV5g.mjs +0 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ar as textColorStyle, Bn as resolveTokenOrCssColorValue, Cn as err, Dt as renderableMediaAssetSchema, E as ICON_CONFIG, Ln as isCssColorLiteral, Mr as parseThemeColorToken, N as generateDefaultButtonSystem, Or as mergeStyles, P as parseThemeButtonVariantId, R as parseThemeForPersistence, Rn as resolveOnColorForThemeToken, Tr as backgroundColorStyle, Tt as runtimeMediaSchema, Zt as featureCardCompositionTreatmentValues, cn as testimonialsCompositionTreatmentValues, en as introCompositionTreatmentValues, er as getTextColorForBackground, fr as defaultThemeTokens, in as offeringsPreviewCompositionTreatmentValues, jn as serializeSurfaceTree, kn as parseSurfaceTree, kr as rgbColorValue, wn as ok, wr as surfaceInkStyle } from "./schema-uSA_x1Zh.mjs";
|
|
2
|
+
import { $ as RichText, $i as pageTemplateFromEntry, $t as formatEventCompactDateRail, A as buildOfferingsCatalogueListing, Aa as formatBookingPriceDisplay, An as bookingConsentCarrierSchema, Ar as heroCtaRowFragment, At as offeringsListingFor, B as buildEventCollectionListingDisplay, Bt as buildEventListWeek, C as buildShopInteractiveIslandProps, Ca as getLocalScheduleDate, Cn as getEventAvailability, Cr as blogFeaturedPostFragment, Ct as resolveEventRegistrationScopedEvents, D as passCardListContent, Da as toBookingTimeZone, Dn as groupPublicEventsByRun, Dr as testimonialsCarouselFragment, Dt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, E as membershipClassesLabel, Ea as resolveBookingBusinessTimeZone, En as blockSiteTermsSchema, Er as formCopyFragment, Fa as resolveExactOrFreePriceDisplay, Fr as defineFragment, Ft as ThemedButton, Gn as resolveDateRuntimeContext, Gr as resolveBackgroundColorValue, Gt as formatEventPriceDisplay, H as eventCollectionHydrationSchema, Hn as teamMemberBiography, Ht as weekColumnDays, I as eventListingBlockDefinition, Ia as resolvePricingOptionsPriceDisplay, Ii as bindingSchema, It as ThemedButtonLink, J as CardListContentPart, Jt as eventDateOptions, K as catalogueEventCardProps, Kr as ctaButton, Kt as buildCalendarViewport, L as buildEventListingInteractiveIslandProps, La as formatCurrencyAmount, Ln as composeHeaderSectionWrapperClassName, Lr as boxStyleClassNames, Lt as ThemedDownloadLink, M as eventCalendarBlockDefinition, Ma as publicEventPricingCurrency, Mn as FEATURE_CARD_ICON_TREATMENTS, Mr as isBlockButtonRole, Mt as resolveOfferingsPreviewGroups, N as buildEventCalendarInteractiveIslandProps, Na as publicEventPricingDisplay, Nn as resolveFeatureCardGeneratedIconSizePx, Nr as heroCopyFragment, Nt as resolveOfferingsRenderInput, O as offeringsPreviewBlockDefinition, Oa as toScheduledBookingDateTime, On as publicEventsArraySchema, Or as testimonialsHeadingFragment, Ot as buildOfferingsPreviewListing, P as buildEventCalendarListingDisplay, Pa as publicEventPricingType, Pn as shouldReserveFeatureCardIconZone, Pr as bodyCopyFragment, Pt as ThemedAuthoredButton, Q as MediaNodeServer, Qi as loadedReadinessFact, Qt as formatEventClockLabel, R as buildEventCollectionDisplay, Ra as parseCurrencyCode, Rn as markEditableSurfaceForwarding, Rr as normalizeBoxStylesBorder, Rt as getIconComponent, S as buildProductListInteractiveIslandProps, Sa as getBookingLocalDateKey, Sn as formatTotalCapacity, Sr as faqHeadingFragment, St as normalizeEventRegistrationPageSurfaceSubject, T as membershipCardListContent, Ta as parseLocalScheduleTime, Tn as isEventFull, Tr as formEmbedFragment, U as eventCollectionSourceSchemaShape, Un as teamMemberCardBiography, Ut as formatEventPrice, V as eventCollectionDisplaySchemaShape, Vn as parseTeamMemberSpecialties, Vt as eventListWeekDays, Wn as readRuntimeNow, Wt as formatEventPriceAmount, X as resolveCardListSchedule, Xi as chosenString, Xn as staticHeaderChromeRuntime, Xt as formatCalendarTitle, Y as CardListLeadDate, Yt as eventLocalDateKey, Z as selectCardListPresentation, Zi as admitReadinessFacts, Zt as formatDate, _ as productListBlockDefinition, _a as formatDateRange, _i as MinusIcon, _n as resolveRuntimeEventDestination, _r as clsx, _t as previewStageSchema, a as normalizeLocationMapSource, aa as buildMailingListSignupBlockSourceRef, ai as buildGeneratedBlockIconRenderAssetLookupFromUnknown, an as groupEventsByDate, ar as defineInteractiveIslandMetaKeys, b as buildCheckoutInteractiveIslandProps, ba as compareLocalScheduleDates, bi as isInlineTextEmpty, bn as canJoinEventWaitlistOnAnyMode, br as cardFragment, ca as parseMailingListPlacementTargeting, ci as ArrowDownIcon, cn as getLocalMinuteOfDay, cr as defineProgressiveBlockRuntime, ct as getCurrentResolveImageUrlContext, d as newsletterBlockSubmissionMessage, di as CirclePlusIcon, dn as getDayOfWeek, dr as listLookSlot, dt as getCardOrientation, ea as unavailableReadinessFact, en as formatEventDateParts, et as ImagePresets, f as giftingBlockDefinition, fa as normalizeLocationAddressText, fi as ClockIcon, fn as getOrderedDayNames, fr as lookListPresentationSchemaShape, ft as getContainerClass, g as productDetailBlockDefinition, ga as formatDate$1, gi as FileTextIcon, gn as isToday, gr as Grid, gt as bookingNowSchema, h as cartBlockDefinition, ha as mapDrawingSchema, hi as FileSpreadsheetIcon, hn as isSameCalendarDay, ht as buildEventRegistrationInteractiveIslandProps, i as normalizeLocationMapProps, ia as resolveWholeSeriesBookingPhase, ii as when, in as formatTime, ir as createInteractiveIslandCodec, j as offeringsCatalogueShape, ja as isPublicEventPricingOptionDisplayable, ji as parseFieldDefinitions, jn as blockBookingPaymentTermsSchema, jr as ctaRowFragment, jt as resolveOfferingsPreviewGroupCta, k as publicRouteCandidatesSchema, ka as toUtcIsoDateTimeString, kn as blockBookingConsentSchema, kr as ctaCopyFragment, kt as normalizeOfferingsPreviewItemLimit, l as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, la as sameMailingListPlacementTargeting, li as ChevronDownIcon, ln as addDays, lr as listItemPresentation, lt as setContextResolveImageUrlContext, m as checkoutBlockDefinition, mi as FileAudioIcon, mn as getWeekCalendarDays, mr as itemRole, mt as eventRegistrationBlockDefinition, na as nextLiveRunSessionStartMs, ni as runTransforms, nn as formatEventNextDateFact, nr as buildFormInteractiveIslandProps, o as resolveLocationMapLocation, oa as parseMailingListRuntimeContext, oi as parseBlockIconValue, on as resolveEventTimeZone, or as createZodCodec, ot as resolvePublicMediaUrl, p as buildGiftingInteractiveIslandProps, pi as FileArchiveIcon, pn as getWeekCalendarDayTuple, pr as resolvedItemSurfaceProps, q as listingEventCardProps, r as normalizeBlockContent, ra as orderedLiveRunSessions, ri as el, rn as formatEventTimeRange, rr as buildInteractiveIslandProps, s as newsletterSignupBlockDefinition, si as resolveBlockIconRenderValue, sn as getLocalDateKey, sr as defineClientOwnedBlockRuntime, st as buildResolveImageUrlContext, t as getBlockDefinition, ta as CANCELLED_SESSION_STATUS, tn as formatEventHourLabel, tr as formBlockDefinition, tt as MediaPlaceholder, u as buildNewsletterFormInteractiveIslandProps, ua as decideLocationSourcePermission, ui as CircleMinusIcon, un as formatDateKey, ur as listLookControl, ut as sanitizeHref, v as shopBlockDefinition, va as formatDateTimeRange, vi as PlusIcon, vn as formatBookingSchedulePresentation, vr as richTextFragment, w as shopProductPresentation, wa as parseBookingLocalDate, wn as getEventAvailabilityStatus, wr as singleButtonFragment, x as buildProductDetailInteractiveIslandProps, xa as formatBookingCompactEnglishTime, xi as parseInlineTextFromUnknown, xn as formatEventRemainingPlaces, xr as faqAccordionFragment, y as buildCartInteractiveIslandProps, yi as inlineTextToPlainText, yn as browserReadAuthoritySchema, yr as headingFragment, z as buildEventCollectionHydration, zi as PUBLIC_DOWNLOAD_MEDIA_TYPES, zn as splitPositioningClasses, zr as resolveCardRoleForBoxStyles, zt as SpinnerNode } from "./registry-Cdvz1OtL.mjs";
|
|
2
3
|
import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { _ as
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import "./site-styles-CxE9F3hj.mjs";
|
|
4
|
+
import { _ as validateManifestDraft, g as compileManifestContentContract, u as readSdkPreviewPublishedPlacement } from "./themeAdmission-CSknYpxk.mjs";
|
|
5
|
+
import { C as resolvePageRouteTarget, D as parseStoredVariant, E as createPresentationPageReader, S as resolveEntryRouteTarget, T as createEditorPresentationPageReader, _ as buildLinkedContentEditTarget, b as defaultTransforms, f as createPageRenderPlanReader, g as retargetJoinsAcrossOmissions, h as renderedJoinLayout, m as joinSlotKey, p as composePageJoins, v as resolveLinkedEntryInlineFieldEligibility, w as resolveRouteTarget } from "./prefetchBlockData-FwcsT5H2.mjs";
|
|
6
|
+
import { _ as arrangementManifestFromVariants, p as arrangementLookHooks, y as resolveEffectiveArrangement } from "./effectiveNavLinkStyle-BHIYPVG1.mjs";
|
|
7
|
+
import "./site-styles-CntHn2KI.mjs";
|
|
8
8
|
import { a as isRecord$4, i as isObjectRecord, t as RichTextDocSchema } from "./richTextSchema-YYc85FX4.mjs";
|
|
9
|
-
import { a as buildThemeRuntime$1, n as ResponsiveScope, o as mergeContentWithBlockStyleOverrides, r as ThemeScope$1, s as generateDefaultAccordionSystem } from "./src-
|
|
9
|
+
import { a as buildThemeRuntime$1, n as ResponsiveScope, o as mergeContentWithBlockStyleOverrides, r as ThemeScope$1, s as generateDefaultAccordionSystem } from "./src-DsYPhTbs.mjs";
|
|
10
10
|
import { t as getAtPath } from "./src-Cxucn-1P.mjs";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
import * as React$1 from "react";
|
|
@@ -451,6 +451,30 @@ function resolveEventCta(event, buttonText) {
|
|
|
451
451
|
hidden: false
|
|
452
452
|
};
|
|
453
453
|
}
|
|
454
|
+
/**
|
|
455
|
+
* The CTA for a catalogue card that stands for a whole dated series. The card
|
|
456
|
+
* carries the next occurrence's capacity, but the visitor picks from the
|
|
457
|
+
* series' upcoming dates, so it says "Sold out" (or offers the waitlist) only
|
|
458
|
+
* when none of `upcomingDates` can be booked. The first date with places
|
|
459
|
+
* decides; failing that, the first full date with a waitlist; failing both,
|
|
460
|
+
* the next occurrence as {@link resolveEventCta} reads it. The link always
|
|
461
|
+
* goes to the series, never to the date that decided.
|
|
462
|
+
*
|
|
463
|
+
* Whole-series events share one run capacity, so they need no dates and read
|
|
464
|
+
* exactly as {@link resolveEventCta}; so does a dated series with none listed.
|
|
465
|
+
*/
|
|
466
|
+
function resolveDatedSeriesCta(series, upcomingDates, buttonText) {
|
|
467
|
+
const deciding = series.bookingScope === "single_occurrence" ? upcomingDates.find((date) => isOpenForBooking(date) && !isEventFull(date)) ?? upcomingDates.find((date) => isOpenForBooking(date) && isEventFull(date) && canJoinEventWaitlistOnAnyMode(date)) : void 0;
|
|
468
|
+
if (!deciding) return resolveEventCta(series, buttonText);
|
|
469
|
+
return {
|
|
470
|
+
...resolveEventCta(deciding, buttonText),
|
|
471
|
+
href: resolveEventHref(series),
|
|
472
|
+
external: resolveRuntimeEventDestination(series).kind === "external"
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
function isOpenForBooking(event) {
|
|
476
|
+
return event.bookingAvailability.kind !== "closed";
|
|
477
|
+
}
|
|
454
478
|
//#endregion
|
|
455
479
|
//#region ../calendar/src/lane-packing.ts
|
|
456
480
|
/**
|
|
@@ -1283,6 +1307,12 @@ const eventItemParts = {
|
|
|
1283
1307
|
"description",
|
|
1284
1308
|
"action"
|
|
1285
1309
|
],
|
|
1310
|
+
"week-columns": [
|
|
1311
|
+
"time",
|
|
1312
|
+
"title",
|
|
1313
|
+
"meta",
|
|
1314
|
+
"places"
|
|
1315
|
+
],
|
|
1286
1316
|
grid: [
|
|
1287
1317
|
"image",
|
|
1288
1318
|
"date",
|
|
@@ -1309,11 +1339,17 @@ const eventItemParts = {
|
|
|
1309
1339
|
function eventItemFacts(props) {
|
|
1310
1340
|
const options = eventDateOptions(props.event);
|
|
1311
1341
|
const availability = getEventAvailabilityStatus(props.event);
|
|
1342
|
+
const time = formatEventTimeRange(props.event, options);
|
|
1343
|
+
const price = formatEventPrice(props.event);
|
|
1312
1344
|
return {
|
|
1313
1345
|
date: formatEventCompactDateRail(props.event.startsAt, options, "as-written"),
|
|
1314
|
-
time
|
|
1315
|
-
price
|
|
1316
|
-
|
|
1346
|
+
time,
|
|
1347
|
+
price,
|
|
1348
|
+
link: resolveEventLinkProps(props.event),
|
|
1349
|
+
meta: eventItemMeta(props, {
|
|
1350
|
+
time,
|
|
1351
|
+
price
|
|
1352
|
+
}),
|
|
1317
1353
|
venueIcon: props.arrangement === "compact" && props.showVenue !== false && Boolean(props.event.venue),
|
|
1318
1354
|
places: props.showCapacity ? formatEventRemainingPlaces(props.event, { full: "Sold out" }) : null,
|
|
1319
1355
|
availability: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available",
|
|
@@ -1321,12 +1357,12 @@ function eventItemFacts(props) {
|
|
|
1321
1357
|
};
|
|
1322
1358
|
}
|
|
1323
1359
|
/** Compact rows keep pricing in the details rail and time in the action rail. */
|
|
1324
|
-
function eventItemMeta(props) {
|
|
1360
|
+
function eventItemMeta(props, formatted) {
|
|
1325
1361
|
const parts = props.parts ?? eventItemParts[props.arrangement];
|
|
1326
1362
|
const venue = props.showVenue !== false ? props.event.venue?.name : null;
|
|
1327
1363
|
const teacher = formatEventTeacherLine(props.event);
|
|
1328
|
-
const time = parts.includes("time") ? null :
|
|
1329
|
-
const price = props.arrangement === "compact" && !parts.includes("price") ?
|
|
1364
|
+
const time = parts.includes("time") ? null : formatted.time;
|
|
1365
|
+
const price = props.arrangement === "compact" && !parts.includes("price") ? formatted.price : null;
|
|
1330
1366
|
return (props.arrangement === "compact" ? [
|
|
1331
1367
|
venue,
|
|
1332
1368
|
teacher,
|
|
@@ -1388,11 +1424,11 @@ function renderCalendarTrailingParts(props, parts, renderPart) {
|
|
|
1388
1424
|
}) : content;
|
|
1389
1425
|
}
|
|
1390
1426
|
function eventItemTag(arrangement) {
|
|
1391
|
-
return arrangement === "ledger" || arrangement === "day-groups" ? "li" : "article";
|
|
1427
|
+
return arrangement === "ledger" || arrangement === "day-groups" || arrangement === "week-columns" ? "li" : "article";
|
|
1392
1428
|
}
|
|
1393
1429
|
function renderEventItemContentPart({ part, props, facts }) {
|
|
1394
1430
|
switch (part) {
|
|
1395
|
-
case "image": return renderEventItemImage(props);
|
|
1431
|
+
case "image": return renderEventItemImage(props, facts.link);
|
|
1396
1432
|
case "date": return /* @__PURE__ */ jsxs("time", {
|
|
1397
1433
|
...listLookSlot(props, "date"),
|
|
1398
1434
|
dateTime: props.event.startsAt,
|
|
@@ -1415,7 +1451,7 @@ function renderEventItemContentPart({ part, props, facts }) {
|
|
|
1415
1451
|
case "title": return /* @__PURE__ */ jsx("h3", {
|
|
1416
1452
|
...listLookSlot(props, "item-title"),
|
|
1417
1453
|
children: /* @__PURE__ */ jsx("a", {
|
|
1418
|
-
...
|
|
1454
|
+
...facts.link,
|
|
1419
1455
|
children: props.event.title
|
|
1420
1456
|
})
|
|
1421
1457
|
});
|
|
@@ -1443,8 +1479,7 @@ function renderEventItemContentPart({ part, props, facts }) {
|
|
|
1443
1479
|
item: {
|
|
1444
1480
|
id: props.event.id,
|
|
1445
1481
|
title: props.event.title,
|
|
1446
|
-
text: facts.description
|
|
1447
|
-
action: { label: "" }
|
|
1482
|
+
text: facts.description
|
|
1448
1483
|
},
|
|
1449
1484
|
presentation: props
|
|
1450
1485
|
});
|
|
@@ -1466,8 +1501,7 @@ function renderEventItemMeta({ props, facts }) {
|
|
|
1466
1501
|
]
|
|
1467
1502
|
}) : null;
|
|
1468
1503
|
}
|
|
1469
|
-
function renderEventItemImage(props) {
|
|
1470
|
-
const link = resolveEventLinkProps(props.event);
|
|
1504
|
+
function renderEventItemImage(props, link) {
|
|
1471
1505
|
return /* @__PURE__ */ jsx(CardListContentPart, {
|
|
1472
1506
|
part: "media",
|
|
1473
1507
|
item: {
|
|
@@ -1872,7 +1906,7 @@ function eventCardCategoryBadge(category) {
|
|
|
1872
1906
|
*
|
|
1873
1907
|
* This component is server-safe (uses no client APIs like Intl).
|
|
1874
1908
|
*/
|
|
1875
|
-
const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", buttonText, showVenue = true, showMap = true, mapSlot, allowMap = true, lookSlots, itemSurfaces, showCapacity = true, showImage = true, showCategory = true, showSummary = true, orientation = "vertical", presentation, headingLevel, imageResolveContext }) => {
|
|
1909
|
+
const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", buttonText, showVenue = true, showMap = true, mapSlot, allowMap = true, lookSlots, itemSurfaces, showCapacity = true, showImage = true, showCategory = true, showSummary = true, orientation = "vertical", presentation, headingLevel, imageResolveContext, upcomingDates }) => {
|
|
1876
1910
|
const { presentationClass, cardHeadingLevel, formattedDate, formattedTime, cta, cardClass, title, summary, image, category, categoryBadge, hasImage, dateFact, priceText, teacherLine, capacityText, orientationClass } = eventCardFacts({
|
|
1877
1911
|
event,
|
|
1878
1912
|
presentation,
|
|
@@ -1882,7 +1916,8 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
|
|
|
1882
1916
|
showCategory,
|
|
1883
1917
|
showImage,
|
|
1884
1918
|
showCapacity,
|
|
1885
|
-
orientation
|
|
1919
|
+
orientation,
|
|
1920
|
+
upcomingDates
|
|
1886
1921
|
});
|
|
1887
1922
|
return /* @__PURE__ */ jsxs("article", {
|
|
1888
1923
|
...listLookSlot({
|
|
@@ -2151,13 +2186,13 @@ function EventLookDate({ event, ...presentation }) {
|
|
|
2151
2186
|
})]
|
|
2152
2187
|
});
|
|
2153
2188
|
}
|
|
2154
|
-
function eventCardFacts({ event, presentation, headingLevel, buttonText, cardRole, showCategory, showImage, showCapacity, orientation }) {
|
|
2189
|
+
function eventCardFacts({ event, presentation, headingLevel, buttonText, cardRole, showCategory, showImage, showCapacity, orientation, upcomingDates }) {
|
|
2155
2190
|
const { presentation: cardPresentation, presentationClass, headingLevel: cardHeadingLevel } = resolveEventCardOptions({
|
|
2156
2191
|
presentation,
|
|
2157
2192
|
headingLevel
|
|
2158
2193
|
});
|
|
2159
2194
|
const { formattedDate, formattedTime } = formatEventCardWhen(event);
|
|
2160
|
-
const cta =
|
|
2195
|
+
const cta = resolveDatedSeriesCta(event, upcomingDates ?? [], buttonText);
|
|
2161
2196
|
const cardClass = boxStyleClassNames({ role: cardRole }, { baseClass: "event-card" });
|
|
2162
2197
|
const title = event.title;
|
|
2163
2198
|
const summary = event.presentation?.summary ?? event.description;
|
|
@@ -4704,7 +4739,6 @@ const bookingSourceSchema = z.object({
|
|
|
4704
4739
|
successMessage: z.string().nullable().optional(),
|
|
4705
4740
|
form: bookingSourceFormSchema.nullable().optional(),
|
|
4706
4741
|
services: bookingServicesSourceSchema.nullable().optional(),
|
|
4707
|
-
spamProtectionEnabled: z.boolean().optional(),
|
|
4708
4742
|
className: z.string().nullable().optional()
|
|
4709
4743
|
});
|
|
4710
4744
|
const bookingDisplaySchema = z.object({
|
|
@@ -4733,8 +4767,7 @@ const bookingHydrationSchema = z.object({
|
|
|
4733
4767
|
rebookContext: z.object({ kind: z.literal("portal_rebook") }).nullable().optional(),
|
|
4734
4768
|
form: bookingConfigSchema.nullable(),
|
|
4735
4769
|
services: z.array(bookingServiceSchema),
|
|
4736
|
-
serviceCategories: z.array(bookingServiceCategorySchema).optional()
|
|
4737
|
-
spamProtectionEnabled: z.boolean().optional()
|
|
4770
|
+
serviceCategories: z.array(bookingServiceCategorySchema).optional()
|
|
4738
4771
|
});
|
|
4739
4772
|
const bookingRenderSchema = z.object({
|
|
4740
4773
|
display: bookingDisplaySchema,
|
|
@@ -4785,8 +4818,7 @@ const bookingFormBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
4785
4818
|
rebookContext: source.rebookContext ?? null,
|
|
4786
4819
|
form,
|
|
4787
4820
|
services,
|
|
4788
|
-
serviceCategories: normalizeBookingServiceCategories(source.services)
|
|
4789
|
-
spamProtectionEnabled: source.spamProtectionEnabled
|
|
4821
|
+
serviceCategories: normalizeBookingServiceCategories(source.services)
|
|
4790
4822
|
}
|
|
4791
4823
|
};
|
|
4792
4824
|
}
|
|
@@ -5128,7 +5160,7 @@ function isValidOccurrence(value) {
|
|
|
5128
5160
|
//#region ../blocks/src/system/runtime/nodes/events/shared/eventCardListContent.ts
|
|
5129
5161
|
/** Live offering data only; editorial cards never acquire booking fields. */
|
|
5130
5162
|
function eventCardListContent(event, context, buttonText) {
|
|
5131
|
-
const { content, external } = cardProjectionBase(event, buttonText, context.kind === "offering");
|
|
5163
|
+
const { content, external } = cardProjectionBase(event, buttonText, context.kind === "offering", context.kind === "offering" ? context.upcomingDates ?? [] : []);
|
|
5132
5164
|
switch (context.kind) {
|
|
5133
5165
|
case "event-details": return {
|
|
5134
5166
|
...content,
|
|
@@ -5147,8 +5179,8 @@ function eventCardListContent(event, context, buttonText) {
|
|
|
5147
5179
|
default: return assertNever$1(context);
|
|
5148
5180
|
}
|
|
5149
5181
|
}
|
|
5150
|
-
function cardProjectionBase(event, buttonText, offering) {
|
|
5151
|
-
const cta = offeringCardCta(event, buttonText, offering);
|
|
5182
|
+
function cardProjectionBase(event, buttonText, offering, upcomingDates) {
|
|
5183
|
+
const cta = offeringCardCta(event, buttonText, offering, upcomingDates);
|
|
5152
5184
|
const places = offeringAvailability(event);
|
|
5153
5185
|
return {
|
|
5154
5186
|
external: cta.external,
|
|
@@ -5258,8 +5290,8 @@ function offeringFacts(event, places, offering) {
|
|
|
5258
5290
|
}]
|
|
5259
5291
|
];
|
|
5260
5292
|
}
|
|
5261
|
-
function offeringCardCta(event, buttonText, offering) {
|
|
5262
|
-
return
|
|
5293
|
+
function offeringCardCta(event, buttonText, offering, upcomingDates) {
|
|
5294
|
+
return resolveDatedSeriesCta(event, upcomingDates, offering && event.destination.kind === "external" ? void 0 : buttonText);
|
|
5263
5295
|
}
|
|
5264
5296
|
function offeringTypeChips(event, typeLabel) {
|
|
5265
5297
|
return event.eventCategory ? [event.eventCategory.name] : typeLabel ? [typeLabel] : [];
|
|
@@ -5328,26 +5360,39 @@ function EventHeader({ selection, presentation, showCost }) {
|
|
|
5328
5360
|
});
|
|
5329
5361
|
return /* @__PURE__ */ jsxs("header", {
|
|
5330
5362
|
...listLookSlot(presentation, "frame"),
|
|
5331
|
-
children: [
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5363
|
+
children: [
|
|
5364
|
+
item.media ? /* @__PURE__ */ jsx("figure", {
|
|
5365
|
+
...listLookSlot(presentation, "item-media"),
|
|
5366
|
+
children: /* @__PURE__ */ jsx(MediaNodeServer, {
|
|
5367
|
+
value: item.media,
|
|
5368
|
+
size: ImagePresets.full,
|
|
5369
|
+
loading: "eager",
|
|
5370
|
+
fetchPriority: "high",
|
|
5371
|
+
...listLookSlot(presentation, "photo")
|
|
5372
|
+
})
|
|
5373
|
+
}) : null,
|
|
5374
|
+
/* @__PURE__ */ jsxs("div", {
|
|
5375
|
+
...listLookSlot(presentation, "copy"),
|
|
5376
|
+
children: [
|
|
5377
|
+
part("chips"),
|
|
5378
|
+
/* @__PURE__ */ jsx("h1", {
|
|
5379
|
+
...listLookSlot(presentation, "headline"),
|
|
5380
|
+
children: item.title
|
|
5381
|
+
}),
|
|
5382
|
+
item.text ? /* @__PURE__ */ jsx("p", {
|
|
5383
|
+
...listLookSlot(presentation, "lede"),
|
|
5384
|
+
children: item.text
|
|
5385
|
+
}) : null,
|
|
5386
|
+
/* @__PURE__ */ jsx("div", {
|
|
5387
|
+
"aria-label": "At a glance",
|
|
5388
|
+
children: part("facts")
|
|
5389
|
+
}),
|
|
5390
|
+
part("availability"),
|
|
5391
|
+
part("action")
|
|
5392
|
+
]
|
|
5393
|
+
}),
|
|
5394
|
+
part("numeral")
|
|
5395
|
+
]
|
|
5351
5396
|
});
|
|
5352
5397
|
}
|
|
5353
5398
|
//#endregion
|
|
@@ -6106,10 +6151,22 @@ function buildLoadedOfferingsPreviewListing(input) {
|
|
|
6106
6151
|
}
|
|
6107
6152
|
//#endregion
|
|
6108
6153
|
//#region ../blocks/src/system/runtime/nodes/events/shared/offeringNextDates.ts
|
|
6154
|
+
/**
|
|
6155
|
+
* The upcoming dates a dated series' card lists: its next three live
|
|
6156
|
+
* occurrences from the block's one occurrence batch. The date rows and the
|
|
6157
|
+
* card's own booking button both read from this, so they can't disagree.
|
|
6158
|
+
*/
|
|
6159
|
+
function upcomingOccurrencesBySeries(events, now) {
|
|
6160
|
+
const groups = events.reduce((result, event) => new Map([...result, [event.seriesId, [...result.get(event.seriesId) ?? [], event]]]), /* @__PURE__ */ new Map());
|
|
6161
|
+
return new Map([...groups].map(([seriesId, occurrences]) => [seriesId, orderedUniqueEventOccurrences(occurrences.filter((event) => event.bookingScope !== "whole_series" && Date.parse(event.startsAt) >= now.getTime())).slice(0, 3)]));
|
|
6162
|
+
}
|
|
6109
6163
|
/** One occurrence batch supplies every occurrence-targeted card in the block. */
|
|
6110
6164
|
function offeringDatesBySeries(events, now, booking) {
|
|
6111
|
-
|
|
6112
|
-
|
|
6165
|
+
return offeringDateRowsBySeries(upcomingOccurrencesBySeries(events, now), booking);
|
|
6166
|
+
}
|
|
6167
|
+
/** Date rows for occurrences already chosen by {@link upcomingOccurrencesBySeries}. */
|
|
6168
|
+
function offeringDateRowsBySeries(upcoming, booking) {
|
|
6169
|
+
return new Map([...upcoming].map(([seriesId, occurrences]) => [seriesId, occurrences.map((event) => offeringDateRow(event, event, booking))]));
|
|
6113
6170
|
}
|
|
6114
6171
|
/** Whole-series sessions share the run-level booking capacity, by contract. */
|
|
6115
6172
|
function offeringRunDates(event, now) {
|
|
@@ -6241,25 +6298,31 @@ function renderOfferingsCatalogueGroups({ props, groups, shape }) {
|
|
|
6241
6298
|
}
|
|
6242
6299
|
function renderCatalogueItems({ props, items, shape, groupTitle }) {
|
|
6243
6300
|
const events = items.map((item) => item.kind === "event" ? item.event : item.run.representative);
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
items: items.map((item) => catalogueCardContent(item, now, dates, shape === "single" ? groupTitle : void 0))
|
|
6252
|
-
});
|
|
6253
|
-
}
|
|
6301
|
+
const dates = catalogueDates(props.quickDateEvents ?? [], props.now, shape, props.pathname);
|
|
6302
|
+
if (props.lookSlots) return CardListItems({
|
|
6303
|
+
Carousel: props.Carousel,
|
|
6304
|
+
Title: shape === "single" ? "h3" : "h4",
|
|
6305
|
+
presentation: props,
|
|
6306
|
+
items: items.map((item) => catalogueCardContent(item, props.now, dates, shape === "single" ? groupTitle : void 0))
|
|
6307
|
+
});
|
|
6254
6308
|
return /* @__PURE__ */ jsx("div", {
|
|
6255
6309
|
className: "rb-grid rb-gap-6",
|
|
6256
6310
|
style: { gridTemplateColumns: "repeat(auto-fill, minmax(min(100%, 18rem), 1fr))" },
|
|
6257
6311
|
children: events.map((event) => /* @__PURE__ */ jsx(EventCard, {
|
|
6258
6312
|
event,
|
|
6313
|
+
upcomingDates: dates.upcoming.get(event.seriesId),
|
|
6259
6314
|
...catalogueEventCardProps(event, props.buttonVariant ?? "primary")
|
|
6260
6315
|
}, event.seriesId))
|
|
6261
6316
|
});
|
|
6262
6317
|
}
|
|
6318
|
+
/** The listed dates and their rows, from one reading so the button and the rows agree. */
|
|
6319
|
+
function catalogueDates(events, now, shape, pathname) {
|
|
6320
|
+
const upcoming = upcomingOccurrencesBySeries(events, now);
|
|
6321
|
+
return {
|
|
6322
|
+
upcoming,
|
|
6323
|
+
rows: offeringDateRowsBySeries(upcoming, catalogueDateBooking(shape, pathname))
|
|
6324
|
+
};
|
|
6325
|
+
}
|
|
6263
6326
|
function catalogueCardContent(item, now, dates, typeLabel) {
|
|
6264
6327
|
const event = item.kind === "event" ? item.event : item.run.representative;
|
|
6265
6328
|
return {
|
|
@@ -6267,9 +6330,10 @@ function catalogueCardContent(item, now, dates, typeLabel) {
|
|
|
6267
6330
|
kind: "offering",
|
|
6268
6331
|
now,
|
|
6269
6332
|
nextStartMs: item.nextStartMs,
|
|
6270
|
-
typeLabel
|
|
6333
|
+
typeLabel,
|
|
6334
|
+
upcomingDates: dates.upcoming.get(event.seriesId)
|
|
6271
6335
|
}, catalogueEventCardProps(event).buttonText),
|
|
6272
|
-
dates: event.bookingScope === "whole_series" ? offeringRunDates(event, now) : dates.get(event.seriesId)
|
|
6336
|
+
dates: event.bookingScope === "whole_series" ? offeringRunDates(event, now) : dates.rows.get(event.seriesId)
|
|
6273
6337
|
};
|
|
6274
6338
|
}
|
|
6275
6339
|
function renderCatalogueEmpty({ props, failed }) {
|
|
@@ -6284,7 +6348,7 @@ function renderCatalogueEmpty({ props, failed }) {
|
|
|
6284
6348
|
});
|
|
6285
6349
|
}
|
|
6286
6350
|
function renderCatalogueMergedList({ props, listing, now, shape }) {
|
|
6287
|
-
const dates =
|
|
6351
|
+
const dates = catalogueDates(props.quickDateEvents ?? [], now, shape, props.pathname);
|
|
6288
6352
|
const items = listing.items.map(({ item, group }) => catalogueCardContent(item, now, dates, group.singularLabel));
|
|
6289
6353
|
return /* @__PURE__ */ jsxs("div", {
|
|
6290
6354
|
...listLookSlot(props, "layout"),
|
|
@@ -6891,13 +6955,12 @@ function previewCardContent(item, props, datesBySeries, typeLabel) {
|
|
|
6891
6955
|
}
|
|
6892
6956
|
function nativeRunCardContent(item, content, props) {
|
|
6893
6957
|
const open = resolveWholeSeriesBookingPhase(item.run.run, props.now).kind === "open";
|
|
6958
|
+
const path = content.titleLink?.href ?? null;
|
|
6894
6959
|
return {
|
|
6895
6960
|
...content,
|
|
6896
|
-
href: item.path,
|
|
6897
|
-
titleLink: void 0,
|
|
6898
6961
|
action: {
|
|
6899
|
-
label: open ?
|
|
6900
|
-
...open &&
|
|
6962
|
+
label: open ? path ? props.buttonText || "Book" : "Details coming soon" : "Registration closed",
|
|
6963
|
+
...open && path ? { href: path } : {}
|
|
6901
6964
|
}
|
|
6902
6965
|
};
|
|
6903
6966
|
}
|
|
@@ -7986,7 +8049,11 @@ function EventListBody({ display, renderEventCard, footer }) {
|
|
|
7986
8049
|
className: display.containerClass,
|
|
7987
8050
|
children: display.events.map(renderEventCard)
|
|
7988
8051
|
});
|
|
7989
|
-
if (display.listLayout === "
|
|
8052
|
+
if (display.listLayout === "week-columns" && display.week !== void 0) return /* @__PURE__ */ jsx(WeekColumns, {
|
|
8053
|
+
display,
|
|
8054
|
+
week: display.week
|
|
8055
|
+
});
|
|
8056
|
+
if (display.listLayout === "day-groups" || display.listLayout === "week-columns") return /* @__PURE__ */ jsx("ol", {
|
|
7990
8057
|
...listLookSlot(display, "list"),
|
|
7991
8058
|
children: display.events.filter((event, index, events) => events.findIndex((candidate) => eventLocalDateKey(candidate) === eventLocalDateKey(event)) === index).map((first) => {
|
|
7992
8059
|
const date = formatEventCompactDateRail(first.startsAt, eventDateOptions(first), "as-written");
|
|
@@ -8043,6 +8110,45 @@ function EventListBody({ display, renderEventCard, footer }) {
|
|
|
8043
8110
|
children: display.events.map(renderEventCard)
|
|
8044
8111
|
});
|
|
8045
8112
|
}
|
|
8113
|
+
/** All seven days of the shown week; a day known to be empty says so, and a wholly empty week never reaches here. */
|
|
8114
|
+
function WeekColumns({ display, week }) {
|
|
8115
|
+
const todayMark = display.itemSurfaces?.today;
|
|
8116
|
+
return /* @__PURE__ */ jsx("ol", {
|
|
8117
|
+
...listLookSlot(display, "list"),
|
|
8118
|
+
children: weekColumnDays(week, display.events, display.allLoaded === true).map((day) => /* @__PURE__ */ jsxs("li", {
|
|
8119
|
+
...listLookSlot(display, "group"),
|
|
8120
|
+
...day.isToday ? { "data-today": "true" } : {},
|
|
8121
|
+
children: [/* @__PURE__ */ jsxs("h3", {
|
|
8122
|
+
...listLookSlot(display, "group-label"),
|
|
8123
|
+
children: [
|
|
8124
|
+
/* @__PURE__ */ jsxs("span", {
|
|
8125
|
+
...listLookSlot(display, "group-day"),
|
|
8126
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
8127
|
+
"aria-hidden": "true",
|
|
8128
|
+
children: day.label.weekday
|
|
8129
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
8130
|
+
className: "rb-sr-only",
|
|
8131
|
+
children: day.label.fullWeekday
|
|
8132
|
+
})]
|
|
8133
|
+
}),
|
|
8134
|
+
" ",
|
|
8135
|
+
/* @__PURE__ */ jsx("span", {
|
|
8136
|
+
...listLookSlot(display, "group-date"),
|
|
8137
|
+
...day.isToday && todayMark !== void 0 && display.lookSlots?.["group-date"] !== void 0 ? resolvedItemSurfaceProps(todayMark, "group-date") : {},
|
|
8138
|
+
children: day.label.day
|
|
8139
|
+
})
|
|
8140
|
+
]
|
|
8141
|
+
}), day.sessions.kind === "some" ? /* @__PURE__ */ jsx("ol", { children: day.sessions.events.map((event) => /* @__PURE__ */ jsx(EventItem, {
|
|
8142
|
+
...listItemPresentation(display, display.events.indexOf(event), display.events.length),
|
|
8143
|
+
event,
|
|
8144
|
+
arrangement: "week-columns"
|
|
8145
|
+
}, event.occurrenceId || event.id)) }) : day.sessions.kind === "none" ? /* @__PURE__ */ jsx("p", {
|
|
8146
|
+
...listLookSlot(display, "group-empty"),
|
|
8147
|
+
children: "Nothing on"
|
|
8148
|
+
}) : null]
|
|
8149
|
+
}, day.dateKey))
|
|
8150
|
+
});
|
|
8151
|
+
}
|
|
8046
8152
|
function hasArrangementPanel(display) {
|
|
8047
8153
|
return display.state === "ready" && display.lookSlots !== void 0 && display.listLayout === "compact";
|
|
8048
8154
|
}
|
|
@@ -8719,13 +8825,19 @@ function renderCombinedSsr(display, prefetchedEvents) {
|
|
|
8719
8825
|
});
|
|
8720
8826
|
}
|
|
8721
8827
|
function renderListSsr(display, hydration) {
|
|
8722
|
-
const
|
|
8723
|
-
|
|
8828
|
+
const { initialToday, timeZone } = hydration.calendarContext;
|
|
8829
|
+
const week = display.listBy === "week" ? buildEventListWeek(initialToday, display.startOfWeek, timeZone) : null;
|
|
8830
|
+
const listing = buildEventCalendarListingDisplay(display, hydration.prefetchedEvents);
|
|
8831
|
+
const listDisplay = week === null ? listing : {
|
|
8832
|
+
...listing,
|
|
8833
|
+
week: eventListWeekDays(week, initialToday, timeZone)
|
|
8834
|
+
};
|
|
8835
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [week !== null ? /* @__PURE__ */ jsx(EventListWeekNavigation, {
|
|
8724
8836
|
...display,
|
|
8725
|
-
title:
|
|
8837
|
+
title: week.title
|
|
8726
8838
|
}) : null, /* @__PURE__ */ jsx(EventListingFrameView, {
|
|
8727
8839
|
display: listDisplay,
|
|
8728
|
-
emptyState:
|
|
8840
|
+
emptyState: week !== null && display.lookSlots !== void 0 ? /* @__PURE__ */ jsx(EventListWeekEmptyState, {
|
|
8729
8841
|
...display,
|
|
8730
8842
|
nextWeek: {}
|
|
8731
8843
|
}) : void 0,
|
|
@@ -9340,6 +9452,15 @@ function EventRegistrationShell({ display }) {
|
|
|
9340
9452
|
});
|
|
9341
9453
|
}
|
|
9342
9454
|
//#endregion
|
|
9455
|
+
//#region ../blocks/src/system/runtime/shared/components/ProtectedSubmitButton.tsx
|
|
9456
|
+
/** Verification readiness is decided here, never recomputed by individual forms. */
|
|
9457
|
+
function ProtectedSubmitButton({ submission, disabled, ...props }) {
|
|
9458
|
+
return /* @__PURE__ */ jsx(ThemedButton, {
|
|
9459
|
+
...props,
|
|
9460
|
+
disabled: disabled || submission.kind === "waiting"
|
|
9461
|
+
});
|
|
9462
|
+
}
|
|
9463
|
+
//#endregion
|
|
9343
9464
|
//#region ../blocks/src/system/runtime/nodes/form.fields.tsx
|
|
9344
9465
|
function fieldBasics(field) {
|
|
9345
9466
|
return {
|
|
@@ -9518,14 +9639,15 @@ function FormFieldGroups({ groups, lookSlots }) {
|
|
|
9518
9639
|
children: group.fields.map(renderField)
|
|
9519
9640
|
}, group.key) : renderField(group.field)) });
|
|
9520
9641
|
}
|
|
9521
|
-
function FormSubmitAction({ lookSlots, submitLabel, disabled }) {
|
|
9642
|
+
function FormSubmitAction({ lookSlots, submitLabel, disabled, submission }) {
|
|
9522
9643
|
return /* @__PURE__ */ jsx("div", {
|
|
9523
9644
|
className: "fb-actions",
|
|
9524
9645
|
...listLookSlot({ lookSlots }, "actions"),
|
|
9525
9646
|
children: /* @__PURE__ */ jsx("div", {
|
|
9526
9647
|
className: "fb-actions-inner",
|
|
9527
9648
|
...listLookSlot({ lookSlots }, "inline"),
|
|
9528
|
-
children: /* @__PURE__ */ jsx(
|
|
9649
|
+
children: /* @__PURE__ */ jsx(ProtectedSubmitButton, {
|
|
9650
|
+
submission,
|
|
9529
9651
|
...listLookSlot({ lookSlots }, "action"),
|
|
9530
9652
|
type: "submit",
|
|
9531
9653
|
variant: "primary",
|
|
@@ -9587,6 +9709,7 @@ const FormNodeSSR = ({ blockId, lookSlots, value, submitLabel, successMessage, c
|
|
|
9587
9709
|
lookSlots: display.lookSlots
|
|
9588
9710
|
}),
|
|
9589
9711
|
/* @__PURE__ */ jsx(FormSubmitAction, {
|
|
9712
|
+
submission: { kind: "waiting" },
|
|
9590
9713
|
submitLabel: display.submitLabel,
|
|
9591
9714
|
lookSlots: display.lookSlots
|
|
9592
9715
|
})
|
|
@@ -9650,7 +9773,7 @@ function NewsletterExtraField({ field, disabled, error, lookSlots }) {
|
|
|
9650
9773
|
});
|
|
9651
9774
|
}
|
|
9652
9775
|
/** The email field and submit button sharing one input-styled shell. */
|
|
9653
|
-
function NewsletterEmailEntry({ field, buttonVariant, buttonLabel, disabled, error }) {
|
|
9776
|
+
function NewsletterEmailEntry({ field, buttonVariant, buttonLabel, submission, disabled, error }) {
|
|
9654
9777
|
const inputId = inputIdFor(field);
|
|
9655
9778
|
const errorId = `${inputId}-error`;
|
|
9656
9779
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -9677,7 +9800,8 @@ function NewsletterEmailEntry({ field, buttonVariant, buttonLabel, disabled, err
|
|
|
9677
9800
|
messageId: errorId
|
|
9678
9801
|
})
|
|
9679
9802
|
}),
|
|
9680
|
-
/* @__PURE__ */ jsx(
|
|
9803
|
+
/* @__PURE__ */ jsx(ProtectedSubmitButton, {
|
|
9804
|
+
submission,
|
|
9681
9805
|
type: "submit",
|
|
9682
9806
|
variant: buttonVariant,
|
|
9683
9807
|
size: "md",
|
|
@@ -9696,7 +9820,7 @@ function NewsletterEmailEntry({ field, buttonVariant, buttonLabel, disabled, err
|
|
|
9696
9820
|
* The submit action: joined to the email field when the preset has one
|
|
9697
9821
|
* (every current preset does), otherwise a plain themed button.
|
|
9698
9822
|
*/
|
|
9699
|
-
function NewsletterSubmitRow({ emailField, lookSlots, buttonVariant, buttonLabel, disabled, error }) {
|
|
9823
|
+
function NewsletterSubmitRow({ emailField, lookSlots, buttonVariant, buttonLabel, submission, disabled, error }) {
|
|
9700
9824
|
if (lookSlots) return /* @__PURE__ */ jsxs(Fragment, { children: [emailField && /* @__PURE__ */ jsx(NewsletterExtraField, {
|
|
9701
9825
|
field: emailField,
|
|
9702
9826
|
lookSlots,
|
|
@@ -9704,7 +9828,8 @@ function NewsletterSubmitRow({ emailField, lookSlots, buttonVariant, buttonLabel
|
|
|
9704
9828
|
error
|
|
9705
9829
|
}), /* @__PURE__ */ jsx("div", {
|
|
9706
9830
|
...listLookSlot({ lookSlots }, "actions"),
|
|
9707
|
-
children: /* @__PURE__ */ jsx(
|
|
9831
|
+
children: /* @__PURE__ */ jsx(ProtectedSubmitButton, {
|
|
9832
|
+
submission,
|
|
9708
9833
|
...listLookSlot({ lookSlots }, "action"),
|
|
9709
9834
|
type: "submit",
|
|
9710
9835
|
variant: buttonVariant,
|
|
@@ -9717,12 +9842,14 @@ function NewsletterSubmitRow({ emailField, lookSlots, buttonVariant, buttonLabel
|
|
|
9717
9842
|
field: emailField,
|
|
9718
9843
|
buttonVariant,
|
|
9719
9844
|
buttonLabel,
|
|
9845
|
+
submission,
|
|
9720
9846
|
disabled,
|
|
9721
9847
|
error
|
|
9722
9848
|
});
|
|
9723
9849
|
return /* @__PURE__ */ jsx("div", {
|
|
9724
9850
|
className: "newsletter-submit",
|
|
9725
|
-
children: /* @__PURE__ */ jsx(
|
|
9851
|
+
children: /* @__PURE__ */ jsx(ProtectedSubmitButton, {
|
|
9852
|
+
submission,
|
|
9726
9853
|
type: "submit",
|
|
9727
9854
|
variant: buttonVariant,
|
|
9728
9855
|
size: "md",
|
|
@@ -9818,6 +9945,7 @@ function NewsletterFormSSR(props) {
|
|
|
9818
9945
|
}, field.id))
|
|
9819
9946
|
}) : null,
|
|
9820
9947
|
/* @__PURE__ */ jsx(NewsletterSubmitRow, {
|
|
9948
|
+
submission: { kind: "waiting" },
|
|
9821
9949
|
lookSlots: display.lookSlots,
|
|
9822
9950
|
emailField,
|
|
9823
9951
|
buttonVariant: display.buttonVariant,
|
|
@@ -10224,6 +10352,47 @@ function derivePreviewLinkedEntryFieldBinding(node, parsedBinding, context) {
|
|
|
10224
10352
|
function stripNumericPathSegments(path) {
|
|
10225
10353
|
return path.split(".").filter((segment) => !/^\d+$/.test(segment)).join(".");
|
|
10226
10354
|
}
|
|
10355
|
+
const lookOwnedPathCache = /* @__PURE__ */ new WeakMap();
|
|
10356
|
+
function lookOwnedPathsOf(content) {
|
|
10357
|
+
if (!isPlainObject(content)) return [];
|
|
10358
|
+
const cached = lookOwnedPathCache.get(content);
|
|
10359
|
+
if (cached) return cached;
|
|
10360
|
+
const value = content._lookOwnedPaths;
|
|
10361
|
+
const paths = Array.isArray(value) ? value.filter((path) => typeof path === "string") : [];
|
|
10362
|
+
lookOwnedPathCache.set(content, paths);
|
|
10363
|
+
return paths;
|
|
10364
|
+
}
|
|
10365
|
+
/**
|
|
10366
|
+
* Under an arrangement Look, the render plan has already removed the owner's
|
|
10367
|
+
* values for presentation the Look owns, and lists those field paths. A binding
|
|
10368
|
+
* on one of them skips its own default, so the Look decides: its CSS, or a
|
|
10369
|
+
* value the Look wrote itself (the crop its shape knob implies). Transforms
|
|
10370
|
+
* still run, which keeps the base classes they compose. Older styles list none
|
|
10371
|
+
* and bind as before.
|
|
10372
|
+
*/
|
|
10373
|
+
function readsLookOwnedField(fromPath, context) {
|
|
10374
|
+
const owned = lookOwnedPathsOf(context.viewModel.content);
|
|
10375
|
+
if (owned.length === 0) return false;
|
|
10376
|
+
const segments = contentFieldSegments(fromPath, context);
|
|
10377
|
+
if (!segments) return false;
|
|
10378
|
+
const path = segments.filter((segment) => typeof segment === "string").join(".");
|
|
10379
|
+
return owned.some((ownedPath) => path === ownedPath || path.startsWith(`${ownedPath}.`));
|
|
10380
|
+
}
|
|
10381
|
+
/** The block-content path a binding reads, or undefined when it reads something else. */
|
|
10382
|
+
function contentFieldSegments(fromPath, context) {
|
|
10383
|
+
const [first, ...rest] = splitPath(fromPath);
|
|
10384
|
+
if (typeof first !== "string" || first === "$root") return void 0;
|
|
10385
|
+
if (first === "content") return rest;
|
|
10386
|
+
const named = [...context.scopes].reverse().find((entry) => entry.name === first);
|
|
10387
|
+
if (named) return scopedContentSegments(named, rest);
|
|
10388
|
+
const innermost = [...context.scopes].reverse().find((entry) => isPlainObject(entry.value) || Array.isArray(entry.value));
|
|
10389
|
+
if (!innermost || first in context.viewModel) return void 0;
|
|
10390
|
+
return innermost.name === "content" ? [first, ...rest] : scopedContentSegments(innermost, [first, ...rest]);
|
|
10391
|
+
}
|
|
10392
|
+
function scopedContentSegments(scope, rest) {
|
|
10393
|
+
const [root, ...base] = scope.basePathSegments ?? [];
|
|
10394
|
+
return root === "content" ? [...base, ...rest] : void 0;
|
|
10395
|
+
}
|
|
10227
10396
|
/**
|
|
10228
10397
|
* Resolves a binding path to absolute segments for editor/media metadata injection.
|
|
10229
10398
|
*
|
|
@@ -10499,6 +10668,12 @@ function previewAuthoringFieldsEqual(left, right) {
|
|
|
10499
10668
|
* @internal Exported for testing
|
|
10500
10669
|
*/
|
|
10501
10670
|
function resolveBindingValue(binding, context) {
|
|
10671
|
+
return resolveReadBindingValue(readsLookOwnedField(binding.from, context) ? {
|
|
10672
|
+
...binding,
|
|
10673
|
+
fallback: void 0
|
|
10674
|
+
} : binding, context);
|
|
10675
|
+
}
|
|
10676
|
+
function resolveReadBindingValue(binding, context) {
|
|
10502
10677
|
const fullPath = binding.from;
|
|
10503
10678
|
const segments = splitPath(fullPath);
|
|
10504
10679
|
if (!segments.length) return void 0;
|
|
@@ -11248,10 +11423,19 @@ function prepareDefaultBlockRender(manifest, props) {
|
|
|
11248
11423
|
fieldConstraints: buildPreviewFieldConstraints(manifest)
|
|
11249
11424
|
};
|
|
11250
11425
|
}
|
|
11426
|
+
const blockComponentCache = /* @__PURE__ */ new WeakMap();
|
|
11427
|
+
/** One React component type per manifest, shared by page and standalone rendering. */
|
|
11251
11428
|
function makeDefaultBlockComponent(args) {
|
|
11429
|
+
const cached = blockComponentCache.get(args.manifest);
|
|
11430
|
+
if (cached) return cached;
|
|
11431
|
+
const component = createDefaultBlockComponent(args.manifest);
|
|
11432
|
+
blockComponentCache.set(args.manifest, component);
|
|
11433
|
+
return component;
|
|
11434
|
+
}
|
|
11435
|
+
function createDefaultBlockComponent(manifest) {
|
|
11252
11436
|
return function DefaultBlockComponent(props) {
|
|
11253
11437
|
const perf = beginBlockRenderMeasurement();
|
|
11254
|
-
const prepared = prepareDefaultBlockRender(
|
|
11438
|
+
const prepared = prepareDefaultBlockRender(manifest, props);
|
|
11255
11439
|
const result = resolveTree(prepared.layout, {
|
|
11256
11440
|
registry: prepared.registry,
|
|
11257
11441
|
viewModel: prepared.viewModel,
|
|
@@ -11275,8 +11459,8 @@ function makeDefaultBlockComponent(args) {
|
|
|
11275
11459
|
reportSlowBlockRender(perf, {
|
|
11276
11460
|
content: props.content,
|
|
11277
11461
|
blockId: props.blockId,
|
|
11278
|
-
blockKind: props.blockKind ??
|
|
11279
|
-
manifestName:
|
|
11462
|
+
blockKind: props.blockKind ?? manifest.name,
|
|
11463
|
+
manifestName: manifest.name
|
|
11280
11464
|
});
|
|
11281
11465
|
return result;
|
|
11282
11466
|
};
|
|
@@ -11564,6 +11748,7 @@ function blockBoundaryReserves(input) {
|
|
|
11564
11748
|
return {
|
|
11565
11749
|
topPlacement: top?.placement,
|
|
11566
11750
|
bottomPlacement: bottom?.placement,
|
|
11751
|
+
fieldSeam: input.before?.fieldsMeet ? "top" : void 0,
|
|
11567
11752
|
style: top || bottom ? style : void 0
|
|
11568
11753
|
};
|
|
11569
11754
|
}
|
|
@@ -11584,6 +11769,16 @@ function pageBlockPosition(index, blockCount) {
|
|
|
11584
11769
|
}
|
|
11585
11770
|
//#endregion
|
|
11586
11771
|
//#region ../blocks/src/pageRendererContracts.ts
|
|
11772
|
+
/** Loader provenance gates admission; block rendering reads its own resolved data and shared runtime. */
|
|
11773
|
+
function sameBlockRenderDataContext(previous, current, blockId) {
|
|
11774
|
+
if (previous === current) return true;
|
|
11775
|
+
if (!previous || !current) return false;
|
|
11776
|
+
const keys = Object.keys(previous).filter(isSharedRenderContextKey);
|
|
11777
|
+
return keys.length === Object.keys(current).filter(isSharedRenderContextKey).length && keys.every((key) => Object.prototype.hasOwnProperty.call(current, key) && Object.is(Reflect.get(previous, key), Reflect.get(current, key))) && (!blockId || previous.resolvedData?.[blockId] === current.resolvedData?.[blockId]);
|
|
11778
|
+
}
|
|
11779
|
+
function isSharedRenderContextKey(key) {
|
|
11780
|
+
return key !== "resolvedData" && key !== "prefetchedBlockData" && key !== "loaderSnapshot";
|
|
11781
|
+
}
|
|
11587
11782
|
function buildPageRendererRootRuntime(dataContext) {
|
|
11588
11783
|
const { siteId = null, siteName, pageId = null, pathname = null, previewStage = "published", apiBaseUrl = null, portalToken = null, readAuthority, openingHours, siteTerms, mailingList = { tag: "not_configured" }, loaderFailures = {} } = dataContext ?? {};
|
|
11589
11784
|
return {
|
|
@@ -11617,6 +11812,7 @@ function resolveDemoEmailSuppression(dataContext) {
|
|
|
11617
11812
|
}
|
|
11618
11813
|
function pageRuntimeContext(dataContext) {
|
|
11619
11814
|
return {
|
|
11815
|
+
interactionContext: dataContext?.interactionContext,
|
|
11620
11816
|
dateContext: pageDateRuntimeContext(dataContext),
|
|
11621
11817
|
now: dataContext?.now,
|
|
11622
11818
|
template: dataContext?.template ?? { kind: "page" }
|
|
@@ -11914,26 +12110,32 @@ function planNewsletterPreviewSubmission(placement) {
|
|
|
11914
12110
|
}
|
|
11915
12111
|
//#endregion
|
|
11916
12112
|
//#region ../blocks/src/pageRenderPreparation.ts
|
|
11917
|
-
/**
|
|
11918
|
-
|
|
11919
|
-
|
|
11920
|
-
|
|
11921
|
-
|
|
11922
|
-
|
|
11923
|
-
|
|
11924
|
-
|
|
11925
|
-
|
|
11926
|
-
|
|
11927
|
-
|
|
11928
|
-
|
|
11929
|
-
|
|
11930
|
-
|
|
11931
|
-
|
|
11932
|
-
|
|
11933
|
-
|
|
11934
|
-
|
|
11935
|
-
|
|
11936
|
-
|
|
12113
|
+
/** Reuse block preparation while keeping survivor/adjacency decisions page-wide. */
|
|
12114
|
+
function createPageRenderPreparationReader() {
|
|
12115
|
+
const memo = { current: null };
|
|
12116
|
+
return (input) => {
|
|
12117
|
+
memo.current = preparePageRenderEntries(input, memo.current);
|
|
12118
|
+
return memo.current.preparation;
|
|
12119
|
+
};
|
|
12120
|
+
}
|
|
12121
|
+
function preparePageRenderEntries(input, previous = null) {
|
|
12122
|
+
const admission = preparationAdmission(input);
|
|
12123
|
+
const prepared = admission.entries.map((entry) => [entry, readPreparedPlanEntry(entry, input, previous, admission.permission)]);
|
|
12124
|
+
const entries = prepared.map(([, value]) => value);
|
|
12125
|
+
const constructionFailures = entries.filter((candidate) => candidate.prepared.kind === "render-threw").map((candidate) => candidate.entry);
|
|
12126
|
+
const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw" && candidate.prepared.kind !== "unresolved-location");
|
|
12127
|
+
return {
|
|
12128
|
+
input,
|
|
12129
|
+
byEntry: new Map(prepared),
|
|
12130
|
+
preparation: {
|
|
12131
|
+
entries: survivors,
|
|
12132
|
+
constructionFailures,
|
|
12133
|
+
joins: composeSurvivorJoins(input.plan, survivors, input.themeResources)
|
|
12134
|
+
}
|
|
12135
|
+
};
|
|
12136
|
+
}
|
|
12137
|
+
/** Admission always sees current loader provenance, even when block preparation can be reused. */
|
|
12138
|
+
function preparationAdmission(input) {
|
|
11937
12139
|
const facts = readinessFactsFromLoaders("published", {
|
|
11938
12140
|
prefetched: input.dataContext?.prefetchedBlockData,
|
|
11939
12141
|
previewStage: input.dataContext?.previewStage,
|
|
@@ -11941,15 +12143,19 @@ function preparePageRender(input) {
|
|
|
11941
12143
|
template: input.dataContext?.template ?? pageTemplateFromEntry(input.dataContext?.contentEntry)
|
|
11942
12144
|
});
|
|
11943
12145
|
const permission = input.dataContext?.businessLocationPermission ?? decideLocationSourcePermission("business_address", input.dataContext?.businessAddressVisibility);
|
|
11944
|
-
const entries = input.plan.entries.filter((entry) => input.audience === "authoring" || !entryNeedsSetup(entry, facts)).filter((entry) => isPublicSourcePermitted(entry, permission) || input.audience === "authoring" && permission.kind === "hidden").map((entry) => preparedPlanEntry(entry, prepareSourceEntry(entry, input, permission)));
|
|
11945
|
-
const constructionFailures = entries.filter((candidate) => candidate.prepared.kind === "render-threw").map((candidate) => candidate.entry);
|
|
11946
|
-
const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw" && candidate.prepared.kind !== "unresolved-location");
|
|
11947
12146
|
return {
|
|
11948
|
-
|
|
11949
|
-
|
|
11950
|
-
joins: composeSurvivorJoins(input.plan, survivors, input.themeResources)
|
|
12147
|
+
permission,
|
|
12148
|
+
entries: input.plan.entries.filter((entry) => input.audience === "authoring" || !entryNeedsSetup(entry, facts, input.dataContext?.interactionContext)).filter((entry) => isPublicSourcePermitted(entry, permission) || input.audience === "authoring" && permission.kind === "hidden")
|
|
11951
12149
|
};
|
|
11952
12150
|
}
|
|
12151
|
+
function readPreparedPlanEntry(entry, input, previous, permission) {
|
|
12152
|
+
const cached = previous?.byEntry.get(entry);
|
|
12153
|
+
if (cached && previous && samePreparationSettings(previous.input, input) && sameBlockRenderDataContext(previous.input.dataContext, input.dataContext, entry.block.id)) return cached;
|
|
12154
|
+
return preparedPlanEntry(entry, prepareSourceEntry(entry, input, permission));
|
|
12155
|
+
}
|
|
12156
|
+
function samePreparationSettings(previous, current) {
|
|
12157
|
+
return previous.audience === current.audience && previous.routeMap === current.routeMap && previous.themeResources === current.themeResources && previous.imageResolveContext === current.imageResolveContext;
|
|
12158
|
+
}
|
|
11953
12159
|
/** Source availability is decided before constructing the block or its hydration props. */
|
|
11954
12160
|
function prepareSourceEntry(entry, input, permission) {
|
|
11955
12161
|
if (!isPublicSourcePermitted(entry, permission)) return {
|
|
@@ -11978,15 +12184,15 @@ function isPublicSourcePermitted(entry, permission) {
|
|
|
11978
12184
|
const rawSource = entry.renderableContent.locationSource;
|
|
11979
12185
|
return normalizeLocationMapSource(typeof rawSource === "string" ? rawSource : null) !== "business_address" || permission.kind === "permitted";
|
|
11980
12186
|
}
|
|
12187
|
+
function entryNeedsSetup(entry, facts, interaction) {
|
|
12188
|
+
return entry.kind === "renderable" && entry.definition.readiness?.assess(entry.renderableContent, facts, interaction).kind === "NeedsSetup";
|
|
12189
|
+
}
|
|
11981
12190
|
/**
|
|
11982
12191
|
* The only place joins are composed. Plan-time omissions were already
|
|
11983
12192
|
* re-pointed by the plan; construction failures are re-pointed here by the
|
|
11984
12193
|
* same primitive, so `[A, B, C]` losing B still gets an A→C join. Each
|
|
11985
12194
|
* survivor is then classified from its final content.
|
|
11986
12195
|
*/
|
|
11987
|
-
function entryNeedsSetup(entry, facts) {
|
|
11988
|
-
return entry.kind === "renderable" && entry.definition.readiness?.assess(entry.renderableContent, facts).kind === "NeedsSetup";
|
|
11989
|
-
}
|
|
11990
12196
|
function composeSurvivorJoins(plan, survivors, themeResources) {
|
|
11991
12197
|
return composePageJoins({
|
|
11992
12198
|
joins: retargetJoinsAcrossOmissions({
|
|
@@ -12040,7 +12246,7 @@ function buildPreparedContent(entry, content, input) {
|
|
|
12040
12246
|
return {
|
|
12041
12247
|
kind: "content",
|
|
12042
12248
|
baseProps: preparedBlockProps(entry, hydratedContent, resolved, input),
|
|
12043
|
-
component: entry.override ? void 0 :
|
|
12249
|
+
component: entry.override ? void 0 : makeDefaultBlockComponent({ manifest: entry.definition.manifest }),
|
|
12044
12250
|
hasResolvedData: !!resolved && typeof resolved === "object" && Object.keys(resolved).length > 0,
|
|
12045
12251
|
routes
|
|
12046
12252
|
};
|
|
@@ -12100,14 +12306,16 @@ function newsletterBlockProps(block, renderedContent, stage) {
|
|
|
12100
12306
|
}
|
|
12101
12307
|
/** Site, transport and session context a block needs to call back to the API. */
|
|
12102
12308
|
function blockSessionProps(dataContext) {
|
|
12309
|
+
const context = dataContext ?? {};
|
|
12103
12310
|
return {
|
|
12104
|
-
siteId:
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
|
|
12109
|
-
|
|
12110
|
-
|
|
12311
|
+
siteId: context.siteId,
|
|
12312
|
+
interactionContext: context.interactionContext,
|
|
12313
|
+
apiBaseUrl: context.apiBaseUrl,
|
|
12314
|
+
supabaseUrl: context.supabaseUrl,
|
|
12315
|
+
portalToken: context.portalToken ?? null,
|
|
12316
|
+
previewToken: context.previewToken ?? null,
|
|
12317
|
+
readAuthority: context.readAuthority,
|
|
12318
|
+
stage: context.previewStage
|
|
12111
12319
|
};
|
|
12112
12320
|
}
|
|
12113
12321
|
/** What this render is *about* — the entry, occurrence or surface in scope. */
|
|
@@ -12120,14 +12328,6 @@ function blockSubjectProps(dataContext) {
|
|
|
12120
12328
|
subject: dataContext?.subject ?? null
|
|
12121
12329
|
};
|
|
12122
12330
|
}
|
|
12123
|
-
const blockComponentCache = /* @__PURE__ */ new WeakMap();
|
|
12124
|
-
function getCachedBlockComponent(manifest) {
|
|
12125
|
-
const cached = blockComponentCache.get(manifest);
|
|
12126
|
-
if (cached) return cached;
|
|
12127
|
-
const created = makeDefaultBlockComponent({ manifest });
|
|
12128
|
-
blockComponentCache.set(manifest, created);
|
|
12129
|
-
return created;
|
|
12130
|
-
}
|
|
12131
12331
|
function arrangementResolvedData(kind, content, data) {
|
|
12132
12332
|
if (kind !== "block.testimonials" || content._effectiveLook === void 0 || !Array.isArray(data?.entries)) return data;
|
|
12133
12333
|
return {
|
|
@@ -12278,7 +12478,8 @@ const BlockErrorBoundary = createBlockErrorBoundary();
|
|
|
12278
12478
|
//#endregion
|
|
12279
12479
|
//#region ../blocks/src/PageRenderer.tsx
|
|
12280
12480
|
function PageRenderer$1(props) {
|
|
12281
|
-
const
|
|
12481
|
+
const readPage = React$1.useMemo(createPresentationPageReader, []);
|
|
12482
|
+
const page = React$1.useMemo(() => readPage(props.page), [props.page, readPage]);
|
|
12282
12483
|
return /* @__PURE__ */ jsx(PageRendererCore, { ...usePageDateRuntime({
|
|
12283
12484
|
...props,
|
|
12284
12485
|
page,
|
|
@@ -12286,7 +12487,8 @@ function PageRenderer$1(props) {
|
|
|
12286
12487
|
}) });
|
|
12287
12488
|
}
|
|
12288
12489
|
function EditorPageRenderer$1(props) {
|
|
12289
|
-
const
|
|
12490
|
+
const readPage = React$1.useMemo(createEditorPresentationPageReader, []);
|
|
12491
|
+
const page = React$1.useMemo(() => readPage(props.page), [props.page, readPage]);
|
|
12290
12492
|
const { previewAs, ...rendererProps } = props;
|
|
12291
12493
|
return /* @__PURE__ */ jsx(PageRendererCore, { ...usePageDateRuntime({
|
|
12292
12494
|
...rendererProps,
|
|
@@ -12303,12 +12505,13 @@ function PageRendererCore(props) {
|
|
|
12303
12505
|
dataContext?.supabaseUrl
|
|
12304
12506
|
]);
|
|
12305
12507
|
const plan = usePageRenderPlan(props);
|
|
12508
|
+
const readPreparation = React$1.useMemo(createPageRenderPreparationReader, []);
|
|
12306
12509
|
const themeResources = React$1.useMemo(() => resolvePageThemeResources(props), [
|
|
12307
12510
|
props.rendering,
|
|
12308
12511
|
props.theme,
|
|
12309
12512
|
props.themeTokens
|
|
12310
12513
|
]);
|
|
12311
|
-
const preparation = React$1.useMemo(() =>
|
|
12514
|
+
const preparation = React$1.useMemo(() => readPreparation({
|
|
12312
12515
|
plan,
|
|
12313
12516
|
audience,
|
|
12314
12517
|
dataContext,
|
|
@@ -12321,7 +12524,8 @@ function PageRendererCore(props) {
|
|
|
12321
12524
|
dataContext,
|
|
12322
12525
|
routeMap,
|
|
12323
12526
|
themeResources,
|
|
12324
|
-
imageResolveContext
|
|
12527
|
+
imageResolveContext,
|
|
12528
|
+
readPreparation
|
|
12325
12529
|
]);
|
|
12326
12530
|
reportAndReplayOmissions({
|
|
12327
12531
|
plan,
|
|
@@ -12495,6 +12699,7 @@ function renderPlanEntry(input) {
|
|
|
12495
12699
|
"data-page-block-position": blockPosition,
|
|
12496
12700
|
"data-site-style-boundary-before": reserves.topPlacement,
|
|
12497
12701
|
"data-site-style-boundary-after": reserves.bottomPlacement,
|
|
12702
|
+
"data-site-style-field-seam": reserves.fieldSeam,
|
|
12498
12703
|
"data-style-group": styleGroup,
|
|
12499
12704
|
style: reserves.style,
|
|
12500
12705
|
children: /* @__PURE__ */ jsx(MemoBlockSection, { ...blockSectionProps })
|
|
@@ -12647,7 +12852,10 @@ const MemoBlockSection = React$1.memo(function MemoBlockSection({ themeResources
|
|
|
12647
12852
|
const resolvedImageResolveContext = imageResolveContext ?? getCurrentResolveImageUrlContext();
|
|
12648
12853
|
const finish = (node, meta) => finishBlockRender(node, block, perfStart, meta);
|
|
12649
12854
|
function wrapped(node) {
|
|
12650
|
-
return wrapBlock && block.id ? /* @__PURE__ */ jsx(Fragment, { children: wrapBlock(block.id, node
|
|
12855
|
+
return wrapBlock && block.id ? /* @__PURE__ */ jsx(Fragment, { children: wrapBlock(block.id, node, {
|
|
12856
|
+
block,
|
|
12857
|
+
content: entry.renderableContent
|
|
12858
|
+
}) }) : /* @__PURE__ */ jsx(Fragment, { children: node });
|
|
12651
12859
|
}
|
|
12652
12860
|
if (entry.kind === "diagnostic" && entry.reason.kind === "invalid-admission") return finish(presentNotRenderableBlock(entry.reason, audience), {
|
|
12653
12861
|
outcome: "invalidContent",
|
|
@@ -12701,14 +12909,15 @@ const MemoBlockSection = React$1.memo(function MemoBlockSection({ themeResources
|
|
|
12701
12909
|
hasResolvedData: prepared.hasResolvedData
|
|
12702
12910
|
});
|
|
12703
12911
|
}, (prev, next) => {
|
|
12704
|
-
return prev.entry === next.entry && prev.audience === next.audience && prev.registry === next.registry && prev.dataContext
|
|
12912
|
+
return prev.entry === next.entry && prev.audience === next.audience && prev.registry === next.registry && sameBlockRenderDataContext(prev.dataContext, next.dataContext, next.entry.entry.block.id) && prev.themeResources === next.themeResources && prev.routeMap === next.routeMap && prev.wrapBlock === next.wrapBlock && prev.imageResolveContext === next.imageResolveContext && prev.previewAuthoring === next.previewAuthoring;
|
|
12705
12913
|
});
|
|
12706
12914
|
/** Every plan input participates in memo identity; the builder owns all rules. */
|
|
12707
12915
|
function usePageRenderPlan(props) {
|
|
12916
|
+
const readPlan = React$1.useMemo(createPageRenderPlanReader, []);
|
|
12708
12917
|
const { page, audience, runtimeJoins, sdkConfig, customBlocks, blockOverrides } = props;
|
|
12709
12918
|
const siteStyleId = props.theme?.siteStyleId ?? null;
|
|
12710
12919
|
const previewStage = props.dataContext?.previewStage ?? "published";
|
|
12711
|
-
return React$1.useMemo(() =>
|
|
12920
|
+
return React$1.useMemo(() => readPlan({
|
|
12712
12921
|
page: page ?? {
|
|
12713
12922
|
name: "",
|
|
12714
12923
|
path: "",
|
|
@@ -12730,7 +12939,8 @@ function usePageRenderPlan(props) {
|
|
|
12730
12939
|
previewStage,
|
|
12731
12940
|
sdkConfig,
|
|
12732
12941
|
customBlocks,
|
|
12733
|
-
blockOverrides
|
|
12942
|
+
blockOverrides,
|
|
12943
|
+
readPlan
|
|
12734
12944
|
]);
|
|
12735
12945
|
}
|
|
12736
12946
|
function usePageDateRuntime(props) {
|
|
@@ -13072,6 +13282,7 @@ function buildPageDataContext(props) {
|
|
|
13072
13282
|
openingHours: props.openingHours ?? props.dataContext.openingHours,
|
|
13073
13283
|
siteTerms: props.siteTerms ?? props.dataContext.siteTerms,
|
|
13074
13284
|
mailingList: props.mailingList ?? props.dataContext.mailingList,
|
|
13285
|
+
interactionContext: props.interactionContext ?? props.dataContext.interactionContext,
|
|
13075
13286
|
bookingTimeZone: resolveSdkBookingTimeZone(props.bookingTimeZone),
|
|
13076
13287
|
dateContext: resolveDateRuntimeContext(props.bookingTimeZone),
|
|
13077
13288
|
routes: props.routeMap,
|