@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,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $t as headingDecorationColorTokenValues, An as resolveSurface, Ar as textColorStyle, Cn as err, Dn as opaqueSurfaceDeclarations, Er as borderColorStyle, Et as buildRenderableMediaAssetIndex, F as themeButtonExtraClassesWithTrailingIcon, Gn as selectLogoVariant, Hn as PUBLIC_BUTTON_ROLES, I as themeButtonSizeClassName, J as cardVariantRoleValues, Jt as defineFrameCapability, K as cardRoleSchema, Kn as surfaceToneFromForegroundToken, Kt as defineBlockDesignCapability, L as themeButtonVariantClassNames, Mn as surfaceDecorationColors, Nt as arrangementModes, On as parseResolvedSurface, Or as mergeStyles, Pr as parseBlockColorToken, Sn as unsafeAsStoragePath, Tr as backgroundColorStyle, Tt as runtimeMediaSchema, Xt as eyebrowTreatmentValues, Y as normalizeCardRole, Yn as surfaceInkPublication, Yt as eventListTreatmentValues, _t as runtimeBoxBackgroundSchema, bn as unsafeAsMediaAssetId, br as surfaceForegroundStyle, cn as testimonialsCompositionTreatmentValues, dn as visibleHeadingDecorationFamilyValues, gn as parseEventSeriesId, gt as boxBackgroundSchema, hn as parseEventOfferingId, ht as boxBackgroundOverlaySchema, in as offeringsPreviewCompositionTreatmentValues, jt as parseCanonicalMediaIdentifier, kr as rgbColorValue, kt as resolveManagedMediaReference, ln as tileTreatmentValues, p as headerVariantValues, pn as parseContentVersionId, qn as resolveSurfaceForeground, un as toNonEmptyReadonlyArray, vn as parseSiteTermsVersionId, wn as ok$1, wr as surfaceInkStyle, xn as unsafeAsStorageBucketName, yr as surfaceForegroundInputFromResolved, zn as resolveThemeColorReferenceValue } from "./schema-uSA_x1Zh.mjs";
|
|
2
2
|
import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { E as compiledRuntimeStyleFieldNames, M as footerForegroundCandidates, a as readOpeningForegroundProjection, b as resolveModeArrangement, i as transparentHeaderForegroundInput, m as arrangementSlotNames, n as headerForegroundCandidates, r as headerLeafTextColor, z as headerRootPaint } from "./effectiveNavLinkStyle-BHIYPVG1.mjs";
|
|
4
|
+
import { c as parseCanonicalRuntimeBackground, d as defineBlockDesignMetadata, l as resolveSectionBackground, t as heroPhotoPaintsGround, u as sectionForegroundBackground } from "./site-styles-CntHn2KI.mjs";
|
|
5
5
|
import { a as isRecord$12, t as RichTextDocSchema } from "./richTextSchema-YYc85FX4.mjs";
|
|
6
|
-
import { a as planSiteChromePlacement, i as parseHeaderPositioning, n as desktopOnlyDisplay, o as splitSiteChromePlacementClasses, r as mobileOnlyDisplay, t as SITE_CHROME_VISIBLE_HEADER_ATTR } from "./siteChromeOverlayClearance-
|
|
6
|
+
import { a as planSiteChromePlacement, i as parseHeaderPositioning, n as desktopOnlyDisplay, o as splitSiteChromePlacementClasses, r as mobileOnlyDisplay, t as SITE_CHROME_VISIBLE_HEADER_ATTR } from "./siteChromeOverlayClearance-DqP40Ka0.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import React from "react";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
//#region ../core/src/block-interaction-context.ts
|
|
11
|
+
/** Server-resolved presentation context, never permission to perform a write. */
|
|
12
|
+
const blockInteractionContextSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("live") }).strict(), z.object({ kind: z.literal("demo") }).strict()]);
|
|
13
|
+
//#endregion
|
|
10
14
|
//#region ../core/src/currency-format.ts
|
|
11
15
|
const CURRENCY_CODE_INPUT_PATTERN = /^[A-Za-z]{3}$/;
|
|
12
16
|
/** Parse + normalize a currency code, or return null if it isn't a 3-letter code. */
|
|
@@ -1563,6 +1567,11 @@ function isRecord$8(value) {
|
|
|
1563
1567
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1564
1568
|
}
|
|
1565
1569
|
const DEFAULT_MAILING_LIST_SUCCESS_MESSAGE = "Thanks — you're on the list.";
|
|
1570
|
+
/**
|
|
1571
|
+
* Seeded into a new setup so every signup form carries a preferences/unsubscribe
|
|
1572
|
+
* reassurance out of the box. Administrators can edit or clear it.
|
|
1573
|
+
*/
|
|
1574
|
+
const DEFAULT_MAILING_LIST_PRIVACY_NOTE = "Change your preferences or unsubscribe at any time.";
|
|
1566
1575
|
function parseMailingListProviderScope(value) {
|
|
1567
1576
|
if (!isRecord$8(value)) return err("invalid_mailing_list_provider_scope");
|
|
1568
1577
|
if (value.provider === "native") return ok$1({ provider: "native" });
|
|
@@ -2107,7 +2116,8 @@ function pageTemplateFromEntry(entry) {
|
|
|
2107
2116
|
//#region ../blocks/src/system/blocks/readiness.ts
|
|
2108
2117
|
const newsletterReadiness = {
|
|
2109
2118
|
needs: ["mailingList"],
|
|
2110
|
-
assess: (content, facts) => {
|
|
2119
|
+
assess: (content, facts, interaction) => {
|
|
2120
|
+
if (interaction?.kind === "demo") return ready;
|
|
2111
2121
|
if (facts.mailingList.kind === "Unavailable") return unknownReadiness;
|
|
2112
2122
|
const targeting = parseMailingListPlacementTargeting(content.targeting ?? { mode: "default" });
|
|
2113
2123
|
if (!targeting.ok) return unknownReadiness;
|
|
@@ -2288,18 +2298,20 @@ function resolveDirectImagePathTarget(target) {
|
|
|
2288
2298
|
case "bucket-scoped": return target.storagePath;
|
|
2289
2299
|
}
|
|
2290
2300
|
}
|
|
2301
|
+
function buildDirectImageTransformQuery(options) {
|
|
2302
|
+
const resize = options.resize ?? (options.width && options.height ? void 0 : "contain");
|
|
2303
|
+
const params = new URLSearchParams();
|
|
2304
|
+
if (options.width) params.set("width", String(options.width));
|
|
2305
|
+
if (options.height) params.set("height", String(options.height));
|
|
2306
|
+
if (options.quality) params.set("quality", String(options.quality));
|
|
2307
|
+
if (resize) params.set("resize", resize);
|
|
2308
|
+
return params.toString();
|
|
2309
|
+
}
|
|
2291
2310
|
function getDirectImageUrl(supabaseUrl, target, storageBucket = "media", options) {
|
|
2292
2311
|
const baseUrl = supabaseUrl.replace(/\/$/, "");
|
|
2293
2312
|
const encodedPath = encodeStoragePath(resolveDirectImagePathTarget(target));
|
|
2294
2313
|
const isSvg = target.storagePath.toLowerCase().endsWith(".svg");
|
|
2295
|
-
if (options && !isSvg && (options.width || options.height)) {
|
|
2296
|
-
const params = new URLSearchParams();
|
|
2297
|
-
if (options.width) params.set("width", String(options.width));
|
|
2298
|
-
if (options.height) params.set("height", String(options.height));
|
|
2299
|
-
if (options.quality) params.set("quality", String(options.quality));
|
|
2300
|
-
if (options.resize) params.set("resize", options.resize);
|
|
2301
|
-
return `${baseUrl}/storage/v1/render/image/public/${storageBucket}/${encodedPath}?${params.toString()}`;
|
|
2302
|
-
}
|
|
2314
|
+
if (options && !isSvg && (options.width || options.height)) return `${baseUrl}/storage/v1/render/image/public/${storageBucket}/${encodedPath}?${buildDirectImageTransformQuery(options)}`;
|
|
2303
2315
|
return `${baseUrl}/storage/v1/object/public/${storageBucket}/${encodedPath}`;
|
|
2304
2316
|
}
|
|
2305
2317
|
function getDirectImageUrlForRelativePath(supabaseUrl, storagePath, siteId, storageBucket = "media", options) {
|
|
@@ -2458,6 +2470,12 @@ function rotateNormalizedPoint(point, rotation) {
|
|
|
2458
2470
|
}
|
|
2459
2471
|
}
|
|
2460
2472
|
//#endregion
|
|
2473
|
+
//#region ../blocks/src/system/registryStore.ts
|
|
2474
|
+
const REGISTRY_SYMBOL$1 = Symbol.for("@riverbankcms/blocks/system/definitions");
|
|
2475
|
+
const isBlocksTestRuntime$1 = typeof process !== "undefined" && typeof process.env !== "undefined" && process.env.RIVERBANK_BLOCKS_TEST === "1";
|
|
2476
|
+
const globalScope$1 = globalThis;
|
|
2477
|
+
const blockStore = isBlocksTestRuntime$1 ? /* @__PURE__ */ new Map() : globalScope$1[REGISTRY_SYMBOL$1] ?? (globalScope$1[REGISTRY_SYMBOL$1] = /* @__PURE__ */ new Map());
|
|
2478
|
+
//#endregion
|
|
2461
2479
|
//#region ../blocks/src/system/manifest/augmentManifest.ts
|
|
2462
2480
|
/**
|
|
2463
2481
|
* Augments a block manifest with synthetic fields and other transformations.
|
|
@@ -3352,6 +3370,12 @@ const uiSchema = z.object({
|
|
|
3352
3370
|
"behavior",
|
|
3353
3371
|
"style"
|
|
3354
3372
|
]).optional(),
|
|
3373
|
+
/**
|
|
3374
|
+
* Under an arrangement Look, `display` and `style` fields belong to the
|
|
3375
|
+
* Look. `'owner'` keeps a presentation choice with the owner anyway, such
|
|
3376
|
+
* as primary or secondary on a button they added.
|
|
3377
|
+
*/
|
|
3378
|
+
underLooks: z.literal("owner").optional(),
|
|
3355
3379
|
valueContract: z.enum(["boxBackground", "location"]).optional()
|
|
3356
3380
|
}).partial().superRefine((ui, ctx) => {
|
|
3357
3381
|
if (ui.layoutGridColumns !== void 0 && ui.layoutGridColumnsFields !== void 0) ctx.addIssue({
|
|
@@ -3827,8 +3851,6 @@ z.object({
|
|
|
3827
3851
|
}).optional()
|
|
3828
3852
|
}).optional(),
|
|
3829
3853
|
promotedFields: z.array(z.string().min(1)).optional(),
|
|
3830
|
-
/** Legacy presentation fields owned by arrangement Looks, including nested schema paths. */
|
|
3831
|
-
arrangementOwnedFieldIds: z.array(z.string().min(1)).readonly().optional(),
|
|
3832
3854
|
variantMeaning: z.discriminatedUnion("kind", [z.object({
|
|
3833
3855
|
kind: z.literal("arrangement"),
|
|
3834
3856
|
lookOnlyKeys: z.array(z.string().min(1)).readonly().optional()
|
|
@@ -5141,10 +5163,10 @@ function resolveBlockIconRenderValue(value, generatedAssets = /* @__PURE__ */ ne
|
|
|
5141
5163
|
}
|
|
5142
5164
|
//#endregion
|
|
5143
5165
|
//#region ../blocks/src/system/manifest/registry.ts
|
|
5144
|
-
const REGISTRY_SYMBOL
|
|
5145
|
-
const isBlocksTestRuntime
|
|
5146
|
-
const globalScope
|
|
5147
|
-
const manifestStore = isBlocksTestRuntime
|
|
5166
|
+
const REGISTRY_SYMBOL = Symbol.for("@riverbankcms/blocks/manifest-registry");
|
|
5167
|
+
const isBlocksTestRuntime = typeof process !== "undefined" && typeof process.env !== "undefined" && process.env.RIVERBANK_BLOCKS_TEST === "1";
|
|
5168
|
+
const globalScope = globalThis;
|
|
5169
|
+
const manifestStore = isBlocksTestRuntime ? /* @__PURE__ */ new Map() : globalScope[REGISTRY_SYMBOL] ?? (globalScope[REGISTRY_SYMBOL] = /* @__PURE__ */ new Map());
|
|
5148
5170
|
function registerManifest(manifest) {
|
|
5149
5171
|
manifestStore.set(manifest.name, manifest);
|
|
5150
5172
|
return manifest;
|
|
@@ -5212,6 +5234,236 @@ function declareNoBlockDesignCapability(reason) {
|
|
|
5212
5234
|
};
|
|
5213
5235
|
}
|
|
5214
5236
|
//#endregion
|
|
5237
|
+
//#region ../blocks/src/system/helpers/api-bindings.ts
|
|
5238
|
+
/**
|
|
5239
|
+
* Standard API bindings that all interactive blocks need.
|
|
5240
|
+
*/
|
|
5241
|
+
const apiBindings = {
|
|
5242
|
+
now: { $bind: { from: "$root.now" } },
|
|
5243
|
+
siteId: { $bind: { from: "$root.siteId" } },
|
|
5244
|
+
apiBaseUrl: { $bind: { from: "$root.apiBaseUrl" } }
|
|
5245
|
+
};
|
|
5246
|
+
function withApiBindings(props, options) {
|
|
5247
|
+
return {
|
|
5248
|
+
...options?.includeApiBaseUrl ?? true ? apiBindings : {
|
|
5249
|
+
siteId: apiBindings.siteId,
|
|
5250
|
+
now: apiBindings.now
|
|
5251
|
+
},
|
|
5252
|
+
...props
|
|
5253
|
+
};
|
|
5254
|
+
}
|
|
5255
|
+
//#endregion
|
|
5256
|
+
//#region ../blocks/src/utils/env.ts
|
|
5257
|
+
/**
|
|
5258
|
+
* Environment detection utilities
|
|
5259
|
+
*
|
|
5260
|
+
* Provides type-safe environment detection without relying on `any`-typed globals.
|
|
5261
|
+
*/
|
|
5262
|
+
/**
|
|
5263
|
+
* Check if the current environment is development.
|
|
5264
|
+
*
|
|
5265
|
+
* Returns true if NODE_ENV is not 'production', or if NODE_ENV cannot be determined
|
|
5266
|
+
* (which is the safe default for validation and warnings).
|
|
5267
|
+
*
|
|
5268
|
+
* @returns true if in development mode, false if in production
|
|
5269
|
+
*/
|
|
5270
|
+
function isDevEnvironment() {
|
|
5271
|
+
try {
|
|
5272
|
+
if (typeof process !== "undefined" && process.env?.NODE_ENV !== void 0) return process.env.NODE_ENV !== "production";
|
|
5273
|
+
return true;
|
|
5274
|
+
} catch {
|
|
5275
|
+
return true;
|
|
5276
|
+
}
|
|
5277
|
+
}
|
|
5278
|
+
//#endregion
|
|
5279
|
+
//#region ../blocks/src/system/node/types.ts
|
|
5280
|
+
/**
|
|
5281
|
+
* List of reserved keys (for runtime validation).
|
|
5282
|
+
* Kept in sync with the ReservedNodeKeys type above.
|
|
5283
|
+
*/
|
|
5284
|
+
const RESERVED_KEYS = [
|
|
5285
|
+
"children",
|
|
5286
|
+
"key",
|
|
5287
|
+
"$bind",
|
|
5288
|
+
"$when",
|
|
5289
|
+
"$repeat",
|
|
5290
|
+
"$scopes"
|
|
5291
|
+
];
|
|
5292
|
+
/**
|
|
5293
|
+
* Type guard to check if props contain reserved keys at runtime.
|
|
5294
|
+
* Use this in development mode to catch bugs early.
|
|
5295
|
+
*
|
|
5296
|
+
* @param props - Props object to validate
|
|
5297
|
+
* @returns Array of reserved keys found in props, or empty array if none
|
|
5298
|
+
*/
|
|
5299
|
+
function findReservedKeysInProps(props) {
|
|
5300
|
+
if (!props) return [];
|
|
5301
|
+
return RESERVED_KEYS.filter((key) => key in props);
|
|
5302
|
+
}
|
|
5303
|
+
/**
|
|
5304
|
+
* Validates that props don't contain reserved keys.
|
|
5305
|
+
* Throws in development, warns in production.
|
|
5306
|
+
*
|
|
5307
|
+
* @param props - Props to validate
|
|
5308
|
+
* @param context - Context for error message (e.g., "el('grid', ...)")
|
|
5309
|
+
*/
|
|
5310
|
+
function validateProps(props, context = "node builder") {
|
|
5311
|
+
const reserved = findReservedKeysInProps(props);
|
|
5312
|
+
if (reserved.length === 0) return;
|
|
5313
|
+
const message = `[blocks:${context}] Reserved keys found in props: ${reserved.join(", ")}. These should be passed as separate parameters or modifiers, not in props. For example, 'children' should be the 3rd parameter to el(), not in the props object.`;
|
|
5314
|
+
if (isDevEnvironment()) throw new TypeError(message);
|
|
5315
|
+
else console.error(message);
|
|
5316
|
+
}
|
|
5317
|
+
//#endregion
|
|
5318
|
+
//#region ../blocks/src/system/node/builder.ts
|
|
5319
|
+
function normalizeChildren(children) {
|
|
5320
|
+
if (!children) return void 0;
|
|
5321
|
+
const flat = children.flat().filter(Boolean);
|
|
5322
|
+
return flat.length > 0 ? flat : void 0;
|
|
5323
|
+
}
|
|
5324
|
+
function el(type, props, children, ...mods) {
|
|
5325
|
+
validateProps(props, `el('${type}', ...)`);
|
|
5326
|
+
const node = {
|
|
5327
|
+
type,
|
|
5328
|
+
...props && Object.keys(props).length > 0 ? { props } : {},
|
|
5329
|
+
...children && children.length ? { children: normalizeChildren(children) } : {}
|
|
5330
|
+
};
|
|
5331
|
+
if (mods && mods.length > 0) {
|
|
5332
|
+
const validMods = mods.filter((mod) => typeof mod === "function");
|
|
5333
|
+
if (validMods.length > 0) return devValidate(validMods.reduce((acc, fn) => fn(acc), node));
|
|
5334
|
+
}
|
|
5335
|
+
return devValidate(node);
|
|
5336
|
+
}
|
|
5337
|
+
const section = (props, children, ...mods) => el("section", props, children, ...mods);
|
|
5338
|
+
const headerSection = (props, children, ...mods) => el("headerSection", props, children, ...mods);
|
|
5339
|
+
const stack = (props, children, ...mods) => el("stack", props, children, ...mods);
|
|
5340
|
+
const inline = (props, children, ...mods) => el("inline", props, children, ...mods);
|
|
5341
|
+
const accordion = (props, children, ...mods) => el("accordion", props, children, ...mods);
|
|
5342
|
+
const accordionItem = (props, children, ...mods) => el("accordionItem", props, children, ...mods);
|
|
5343
|
+
const carousel = (props, children, ...mods) => el("carousel", {
|
|
5344
|
+
mode: "legacy",
|
|
5345
|
+
...props
|
|
5346
|
+
}, children, ...mods);
|
|
5347
|
+
const text = (props, ...mods) => el("text", props, void 0, ...mods);
|
|
5348
|
+
const richText = (props, ...mods) => el("richText", props, void 0, ...mods);
|
|
5349
|
+
const icon = (props, ...mods) => el("icon", props, void 0, ...mods);
|
|
5350
|
+
const media = (props, ...mods) => el("media", props, void 0, ...mods);
|
|
5351
|
+
const fileDownload = (props, ...mods) => el("file-download", props, void 0, ...mods);
|
|
5352
|
+
const videoEmbed = (props, ...mods) => el("videoEmbed", props, void 0, ...mods);
|
|
5353
|
+
const button = (props, children, ...mods) => el("button", props, children, ...mods);
|
|
5354
|
+
const link = (props, children, ...mods) => el("link", props, children, ...mods);
|
|
5355
|
+
const form = (props, children, ...mods) => el("form", props, children, ...mods);
|
|
5356
|
+
const bookingForm = (props, children, ...mods) => el("booking-form", props, children, ...mods);
|
|
5357
|
+
const eventRegistration = (props, children, ...mods) => el("event-registration", props, children, ...mods);
|
|
5358
|
+
const shop = (props, children, ...mods) => el("shop", props, children, ...mods);
|
|
5359
|
+
const productList = (props, children, ...mods) => el("product-list", props, children, ...mods);
|
|
5360
|
+
const productDetail = (props, children, ...mods) => el("product-detail", props, children, ...mods);
|
|
5361
|
+
const cart = (props, children, ...mods) => el("cart", props, children, ...mods);
|
|
5362
|
+
const checkout = (props, children, ...mods) => el("checkout", props, children, ...mods);
|
|
5363
|
+
const gifting = (props, children, ...mods) => el("gifting", props, children, ...mods);
|
|
5364
|
+
function bind(from, options) {
|
|
5365
|
+
return (node) => ({
|
|
5366
|
+
...node,
|
|
5367
|
+
$bind: {
|
|
5368
|
+
from,
|
|
5369
|
+
...options?.fallback !== void 0 ? { fallback: options.fallback } : {},
|
|
5370
|
+
...options?.transforms ? { transforms: options.transforms } : {},
|
|
5371
|
+
...options?.pick ? { pick: options.pick } : {},
|
|
5372
|
+
...options?.coerce ? { coerce: options.coerce } : {}
|
|
5373
|
+
}
|
|
5374
|
+
});
|
|
5375
|
+
}
|
|
5376
|
+
function when(path, options) {
|
|
5377
|
+
return (node) => ({
|
|
5378
|
+
...node,
|
|
5379
|
+
$when: {
|
|
5380
|
+
when: { from: path },
|
|
5381
|
+
...options?.equals !== void 0 ? { equals: options.equals } : {},
|
|
5382
|
+
...options?.not ? { not: true } : {},
|
|
5383
|
+
...options?.authoringPresence ? { authoringPresence: options.authoringPresence } : {}
|
|
5384
|
+
}
|
|
5385
|
+
});
|
|
5386
|
+
}
|
|
5387
|
+
function repeat(collectionPath, itemName = "item", options) {
|
|
5388
|
+
return (node) => ({
|
|
5389
|
+
...node,
|
|
5390
|
+
$repeat: {
|
|
5391
|
+
collection: {
|
|
5392
|
+
from: collectionPath,
|
|
5393
|
+
pick: "collection"
|
|
5394
|
+
},
|
|
5395
|
+
itemName,
|
|
5396
|
+
...options?.indexName ? { indexName: options.indexName } : {},
|
|
5397
|
+
...options?.limit ? { limit: options.limit } : {},
|
|
5398
|
+
...options?.sortBy ? { sortBy: {
|
|
5399
|
+
path: options.sortBy.path,
|
|
5400
|
+
direction: options.sortBy.direction ?? "asc"
|
|
5401
|
+
} } : {}
|
|
5402
|
+
}
|
|
5403
|
+
});
|
|
5404
|
+
}
|
|
5405
|
+
function props(extra) {
|
|
5406
|
+
validateProps(extra, "props() modifier");
|
|
5407
|
+
return (node) => ({
|
|
5408
|
+
...node,
|
|
5409
|
+
props: {
|
|
5410
|
+
...node.props ?? {},
|
|
5411
|
+
...extra
|
|
5412
|
+
}
|
|
5413
|
+
});
|
|
5414
|
+
}
|
|
5415
|
+
function accordionList({ collection, itemName = "item", indexName, accordionProps = null, itemProps = null, triggerFrom, contentFrom, valueFrom }, ...mods) {
|
|
5416
|
+
const resolvedIndexName = indexName ?? `${itemName}Index`;
|
|
5417
|
+
const resolvedValuePath = valueFrom === null ? null : valueFrom ?? resolvedIndexName;
|
|
5418
|
+
const baseItemProps = {
|
|
5419
|
+
...itemProps ?? {},
|
|
5420
|
+
trigger: { $bind: { from: triggerFrom } }
|
|
5421
|
+
};
|
|
5422
|
+
if (contentFrom) baseItemProps.content = { $bind: { from: contentFrom } };
|
|
5423
|
+
if (resolvedValuePath) baseItemProps.value = { $bind: { from: resolvedValuePath } };
|
|
5424
|
+
return accordion(accordionProps ?? void 0, [accordionItem(baseItemProps, void 0, repeat(collection, itemName, { indexName: resolvedIndexName }))], ...mods);
|
|
5425
|
+
}
|
|
5426
|
+
function devValidate(node) {
|
|
5427
|
+
try {
|
|
5428
|
+
if (isDevEnvironment()) {
|
|
5429
|
+
const res = NodeSchema.safeParse(node);
|
|
5430
|
+
if (!res.success) console.warn("[blocks:builder] Invalid node produced by builder", res.error.format());
|
|
5431
|
+
}
|
|
5432
|
+
} catch {}
|
|
5433
|
+
return node;
|
|
5434
|
+
}
|
|
5435
|
+
//#endregion
|
|
5436
|
+
//#region ../blocks/src/system/blocks/hero-newsletter.ts
|
|
5437
|
+
const heroNewsletterAction = stack({
|
|
5438
|
+
gap: "md",
|
|
5439
|
+
className: "hero-newsletter rb-w-full rb-min-w-0",
|
|
5440
|
+
style: {
|
|
5441
|
+
maxWidth: "32rem",
|
|
5442
|
+
overflowWrap: "anywhere"
|
|
5443
|
+
}
|
|
5444
|
+
}, [
|
|
5445
|
+
text({
|
|
5446
|
+
as: "p",
|
|
5447
|
+
className: "rb-body"
|
|
5448
|
+
}, bind("data.heroNewsletter.lead")),
|
|
5449
|
+
text({
|
|
5450
|
+
as: "p",
|
|
5451
|
+
className: "rb-body"
|
|
5452
|
+
}, bind("data.heroNewsletter.intro")),
|
|
5453
|
+
el("newsletter-form", withApiBindings({
|
|
5454
|
+
source: { $bind: { from: "data.heroNewsletter.runtime.source" } },
|
|
5455
|
+
sourceRef: { $bind: { from: "data.heroNewsletter.runtime.sourceRef" } },
|
|
5456
|
+
mailingList: { $bind: { from: "data.heroNewsletter.runtime.mailingList" } },
|
|
5457
|
+
targeting: { $bind: { from: "data.heroNewsletter.runtime.targeting" } },
|
|
5458
|
+
buttonVariant: "primary",
|
|
5459
|
+
spamProtectionEnabled: { $bind: { from: "$root.spamProtectionEnabled" } }
|
|
5460
|
+
}), []),
|
|
5461
|
+
el("div", { className: "rb-body" }, [text({
|
|
5462
|
+
as: "span",
|
|
5463
|
+
value: "Or email "
|
|
5464
|
+
}), link({ href: { $bind: { from: "data.heroNewsletter.contact.href" } } }, [text({ as: "span" }, bind("data.heroNewsletter.contact.email"))])], when("data.heroNewsletter.contact"))
|
|
5465
|
+
], when("data.heroNewsletter"));
|
|
5466
|
+
//#endregion
|
|
5215
5467
|
//#region ../blocks/src/system/transforms/registry/core.ts
|
|
5216
5468
|
/**
|
|
5217
5469
|
* Safely narrows unknown values to partial object shapes used by transforms.
|
|
@@ -6114,199 +6366,19 @@ const standardImageShapeOptions = [
|
|
|
6114
6366
|
];
|
|
6115
6367
|
function createImageShapeField(options = {}) {
|
|
6116
6368
|
return {
|
|
6117
|
-
id: options.id ?? "imageShape",
|
|
6118
|
-
type: "select",
|
|
6119
|
-
label: options.label ?? "Image shape",
|
|
6120
|
-
...options.description ? { description: options.description } : {},
|
|
6121
|
-
required: false,
|
|
6122
|
-
defaultValue: options.defaultValue ?? "default",
|
|
6123
|
-
multiple: false,
|
|
6124
|
-
options: [...standardImageShapeOptions],
|
|
6125
|
-
ui: {
|
|
6126
|
-
intent: options.uiIntent ?? "display",
|
|
6127
|
-
...options.visibleWhen ? { visibleWhen: options.visibleWhen } : {}
|
|
6128
|
-
}
|
|
6129
|
-
};
|
|
6130
|
-
}
|
|
6131
|
-
//#endregion
|
|
6132
|
-
//#region ../blocks/src/utils/env.ts
|
|
6133
|
-
/**
|
|
6134
|
-
* Environment detection utilities
|
|
6135
|
-
*
|
|
6136
|
-
* Provides type-safe environment detection without relying on `any`-typed globals.
|
|
6137
|
-
*/
|
|
6138
|
-
/**
|
|
6139
|
-
* Check if the current environment is development.
|
|
6140
|
-
*
|
|
6141
|
-
* Returns true if NODE_ENV is not 'production', or if NODE_ENV cannot be determined
|
|
6142
|
-
* (which is the safe default for validation and warnings).
|
|
6143
|
-
*
|
|
6144
|
-
* @returns true if in development mode, false if in production
|
|
6145
|
-
*/
|
|
6146
|
-
function isDevEnvironment() {
|
|
6147
|
-
try {
|
|
6148
|
-
if (typeof process !== "undefined" && process.env?.NODE_ENV !== void 0) return process.env.NODE_ENV !== "production";
|
|
6149
|
-
return true;
|
|
6150
|
-
} catch {
|
|
6151
|
-
return true;
|
|
6152
|
-
}
|
|
6153
|
-
}
|
|
6154
|
-
//#endregion
|
|
6155
|
-
//#region ../blocks/src/system/node/types.ts
|
|
6156
|
-
/**
|
|
6157
|
-
* List of reserved keys (for runtime validation).
|
|
6158
|
-
* Kept in sync with the ReservedNodeKeys type above.
|
|
6159
|
-
*/
|
|
6160
|
-
const RESERVED_KEYS = [
|
|
6161
|
-
"children",
|
|
6162
|
-
"key",
|
|
6163
|
-
"$bind",
|
|
6164
|
-
"$when",
|
|
6165
|
-
"$repeat",
|
|
6166
|
-
"$scopes"
|
|
6167
|
-
];
|
|
6168
|
-
/**
|
|
6169
|
-
* Type guard to check if props contain reserved keys at runtime.
|
|
6170
|
-
* Use this in development mode to catch bugs early.
|
|
6171
|
-
*
|
|
6172
|
-
* @param props - Props object to validate
|
|
6173
|
-
* @returns Array of reserved keys found in props, or empty array if none
|
|
6174
|
-
*/
|
|
6175
|
-
function findReservedKeysInProps(props) {
|
|
6176
|
-
if (!props) return [];
|
|
6177
|
-
return RESERVED_KEYS.filter((key) => key in props);
|
|
6178
|
-
}
|
|
6179
|
-
/**
|
|
6180
|
-
* Validates that props don't contain reserved keys.
|
|
6181
|
-
* Throws in development, warns in production.
|
|
6182
|
-
*
|
|
6183
|
-
* @param props - Props to validate
|
|
6184
|
-
* @param context - Context for error message (e.g., "el('grid', ...)")
|
|
6185
|
-
*/
|
|
6186
|
-
function validateProps(props, context = "node builder") {
|
|
6187
|
-
const reserved = findReservedKeysInProps(props);
|
|
6188
|
-
if (reserved.length === 0) return;
|
|
6189
|
-
const message = `[blocks:${context}] Reserved keys found in props: ${reserved.join(", ")}. These should be passed as separate parameters or modifiers, not in props. For example, 'children' should be the 3rd parameter to el(), not in the props object.`;
|
|
6190
|
-
if (isDevEnvironment()) throw new TypeError(message);
|
|
6191
|
-
else console.error(message);
|
|
6192
|
-
}
|
|
6193
|
-
//#endregion
|
|
6194
|
-
//#region ../blocks/src/system/node/builder.ts
|
|
6195
|
-
function normalizeChildren(children) {
|
|
6196
|
-
if (!children) return void 0;
|
|
6197
|
-
const flat = children.flat().filter(Boolean);
|
|
6198
|
-
return flat.length > 0 ? flat : void 0;
|
|
6199
|
-
}
|
|
6200
|
-
function el(type, props, children, ...mods) {
|
|
6201
|
-
validateProps(props, `el('${type}', ...)`);
|
|
6202
|
-
const node = {
|
|
6203
|
-
type,
|
|
6204
|
-
...props && Object.keys(props).length > 0 ? { props } : {},
|
|
6205
|
-
...children && children.length ? { children: normalizeChildren(children) } : {}
|
|
6206
|
-
};
|
|
6207
|
-
if (mods && mods.length > 0) {
|
|
6208
|
-
const validMods = mods.filter((mod) => typeof mod === "function");
|
|
6209
|
-
if (validMods.length > 0) return devValidate(validMods.reduce((acc, fn) => fn(acc), node));
|
|
6210
|
-
}
|
|
6211
|
-
return devValidate(node);
|
|
6212
|
-
}
|
|
6213
|
-
const section = (props, children, ...mods) => el("section", props, children, ...mods);
|
|
6214
|
-
const headerSection = (props, children, ...mods) => el("headerSection", props, children, ...mods);
|
|
6215
|
-
const stack = (props, children, ...mods) => el("stack", props, children, ...mods);
|
|
6216
|
-
const inline = (props, children, ...mods) => el("inline", props, children, ...mods);
|
|
6217
|
-
const accordion = (props, children, ...mods) => el("accordion", props, children, ...mods);
|
|
6218
|
-
const accordionItem = (props, children, ...mods) => el("accordionItem", props, children, ...mods);
|
|
6219
|
-
const carousel = (props, children, ...mods) => el("carousel", {
|
|
6220
|
-
mode: "legacy",
|
|
6221
|
-
...props
|
|
6222
|
-
}, children, ...mods);
|
|
6223
|
-
const text = (props, ...mods) => el("text", props, void 0, ...mods);
|
|
6224
|
-
const richText = (props, ...mods) => el("richText", props, void 0, ...mods);
|
|
6225
|
-
const icon = (props, ...mods) => el("icon", props, void 0, ...mods);
|
|
6226
|
-
const media = (props, ...mods) => el("media", props, void 0, ...mods);
|
|
6227
|
-
const fileDownload = (props, ...mods) => el("file-download", props, void 0, ...mods);
|
|
6228
|
-
const videoEmbed = (props, ...mods) => el("videoEmbed", props, void 0, ...mods);
|
|
6229
|
-
const button = (props, children, ...mods) => el("button", props, children, ...mods);
|
|
6230
|
-
const link = (props, children, ...mods) => el("link", props, children, ...mods);
|
|
6231
|
-
const form = (props, children, ...mods) => el("form", props, children, ...mods);
|
|
6232
|
-
const bookingForm = (props, children, ...mods) => el("booking-form", props, children, ...mods);
|
|
6233
|
-
const eventRegistration = (props, children, ...mods) => el("event-registration", props, children, ...mods);
|
|
6234
|
-
const shop = (props, children, ...mods) => el("shop", props, children, ...mods);
|
|
6235
|
-
const productList = (props, children, ...mods) => el("product-list", props, children, ...mods);
|
|
6236
|
-
const productDetail = (props, children, ...mods) => el("product-detail", props, children, ...mods);
|
|
6237
|
-
const cart = (props, children, ...mods) => el("cart", props, children, ...mods);
|
|
6238
|
-
const checkout = (props, children, ...mods) => el("checkout", props, children, ...mods);
|
|
6239
|
-
const gifting = (props, children, ...mods) => el("gifting", props, children, ...mods);
|
|
6240
|
-
function bind(from, options) {
|
|
6241
|
-
return (node) => ({
|
|
6242
|
-
...node,
|
|
6243
|
-
$bind: {
|
|
6244
|
-
from,
|
|
6245
|
-
...options?.fallback !== void 0 ? { fallback: options.fallback } : {},
|
|
6246
|
-
...options?.transforms ? { transforms: options.transforms } : {},
|
|
6247
|
-
...options?.pick ? { pick: options.pick } : {},
|
|
6248
|
-
...options?.coerce ? { coerce: options.coerce } : {}
|
|
6249
|
-
}
|
|
6250
|
-
});
|
|
6251
|
-
}
|
|
6252
|
-
function when(path, options) {
|
|
6253
|
-
return (node) => ({
|
|
6254
|
-
...node,
|
|
6255
|
-
$when: {
|
|
6256
|
-
when: { from: path },
|
|
6257
|
-
...options?.equals !== void 0 ? { equals: options.equals } : {},
|
|
6258
|
-
...options?.not ? { not: true } : {},
|
|
6259
|
-
...options?.authoringPresence ? { authoringPresence: options.authoringPresence } : {}
|
|
6260
|
-
}
|
|
6261
|
-
});
|
|
6262
|
-
}
|
|
6263
|
-
function repeat(collectionPath, itemName = "item", options) {
|
|
6264
|
-
return (node) => ({
|
|
6265
|
-
...node,
|
|
6266
|
-
$repeat: {
|
|
6267
|
-
collection: {
|
|
6268
|
-
from: collectionPath,
|
|
6269
|
-
pick: "collection"
|
|
6270
|
-
},
|
|
6271
|
-
itemName,
|
|
6272
|
-
...options?.indexName ? { indexName: options.indexName } : {},
|
|
6273
|
-
...options?.limit ? { limit: options.limit } : {},
|
|
6274
|
-
...options?.sortBy ? { sortBy: {
|
|
6275
|
-
path: options.sortBy.path,
|
|
6276
|
-
direction: options.sortBy.direction ?? "asc"
|
|
6277
|
-
} } : {}
|
|
6278
|
-
}
|
|
6279
|
-
});
|
|
6280
|
-
}
|
|
6281
|
-
function props(extra) {
|
|
6282
|
-
validateProps(extra, "props() modifier");
|
|
6283
|
-
return (node) => ({
|
|
6284
|
-
...node,
|
|
6285
|
-
props: {
|
|
6286
|
-
...node.props ?? {},
|
|
6287
|
-
...extra
|
|
6288
|
-
}
|
|
6289
|
-
});
|
|
6290
|
-
}
|
|
6291
|
-
function accordionList({ collection, itemName = "item", indexName, accordionProps = null, itemProps = null, triggerFrom, contentFrom, valueFrom }, ...mods) {
|
|
6292
|
-
const resolvedIndexName = indexName ?? `${itemName}Index`;
|
|
6293
|
-
const resolvedValuePath = valueFrom === null ? null : valueFrom ?? resolvedIndexName;
|
|
6294
|
-
const baseItemProps = {
|
|
6295
|
-
...itemProps ?? {},
|
|
6296
|
-
trigger: { $bind: { from: triggerFrom } }
|
|
6297
|
-
};
|
|
6298
|
-
if (contentFrom) baseItemProps.content = { $bind: { from: contentFrom } };
|
|
6299
|
-
if (resolvedValuePath) baseItemProps.value = { $bind: { from: resolvedValuePath } };
|
|
6300
|
-
return accordion(accordionProps ?? void 0, [accordionItem(baseItemProps, void 0, repeat(collection, itemName, { indexName: resolvedIndexName }))], ...mods);
|
|
6301
|
-
}
|
|
6302
|
-
function devValidate(node) {
|
|
6303
|
-
try {
|
|
6304
|
-
if (isDevEnvironment()) {
|
|
6305
|
-
const res = NodeSchema.safeParse(node);
|
|
6306
|
-
if (!res.success) console.warn("[blocks:builder] Invalid node produced by builder", res.error.format());
|
|
6369
|
+
id: options.id ?? "imageShape",
|
|
6370
|
+
type: "select",
|
|
6371
|
+
label: options.label ?? "Image shape",
|
|
6372
|
+
...options.description ? { description: options.description } : {},
|
|
6373
|
+
required: false,
|
|
6374
|
+
defaultValue: options.defaultValue ?? "default",
|
|
6375
|
+
multiple: false,
|
|
6376
|
+
options: [...standardImageShapeOptions],
|
|
6377
|
+
ui: {
|
|
6378
|
+
intent: options.uiIntent ?? "display",
|
|
6379
|
+
...options.visibleWhen ? { visibleWhen: options.visibleWhen } : {}
|
|
6307
6380
|
}
|
|
6308
|
-
}
|
|
6309
|
-
return node;
|
|
6381
|
+
};
|
|
6310
6382
|
}
|
|
6311
6383
|
//#endregion
|
|
6312
6384
|
//#region ../blocks/src/system/node/fragments/backgroundLayer.ts
|
|
@@ -7879,11 +7951,7 @@ const boxStylesTransforms = [
|
|
|
7879
7951
|
id: "boxStyles.semanticGapValue",
|
|
7880
7952
|
kind: "string",
|
|
7881
7953
|
summary: "Map semantic gap value to CSS gap value for inline styles",
|
|
7882
|
-
run: (value
|
|
7883
|
-
if (options?.legacyOnly && asPartialObject(context.viewModel?.content)?._lookSlots !== void 0) return void 0;
|
|
7884
|
-
const fallback = options?.fallback ?? "medium";
|
|
7885
|
-
return GAP_VALUE_MAP[isSemanticSpacing(value) ? value : fallback];
|
|
7886
|
-
}
|
|
7954
|
+
run: (value) => isSemanticSpacing(value) ? GAP_VALUE_MAP[value] : void 0
|
|
7887
7955
|
}
|
|
7888
7956
|
];
|
|
7889
7957
|
//#endregion
|
|
@@ -7910,14 +7978,8 @@ function twoColumnProps(config) {
|
|
|
7910
7978
|
} },
|
|
7911
7979
|
...config.gapFrom ? { style: { gap: { $bind: {
|
|
7912
7980
|
from: config.gapFrom,
|
|
7913
|
-
transforms: [{
|
|
7914
|
-
|
|
7915
|
-
options: {
|
|
7916
|
-
fallback,
|
|
7917
|
-
legacyOnly: config.lookSlots === true
|
|
7918
|
-
}
|
|
7919
|
-
}],
|
|
7920
|
-
...config.lookSlots ? {} : { fallback: GAP_VALUE_MAP[fallback] }
|
|
7981
|
+
transforms: [{ id: "boxStyles.semanticGapValue" }],
|
|
7982
|
+
fallback: GAP_VALUE_MAP[fallback]
|
|
7921
7983
|
} } } } : {}
|
|
7922
7984
|
};
|
|
7923
7985
|
}
|
|
@@ -8618,6 +8680,7 @@ function createButtonGroup(options = {}) {
|
|
|
8618
8680
|
...defaultVariant ? { defaultValue: defaultVariant } : {},
|
|
8619
8681
|
ui: {
|
|
8620
8682
|
intent: "style",
|
|
8683
|
+
underLooks: "owner",
|
|
8621
8684
|
widget: "buttonVariant"
|
|
8622
8685
|
}
|
|
8623
8686
|
},
|
|
@@ -8658,6 +8721,7 @@ function createButtonGroup(options = {}) {
|
|
|
8658
8721
|
maxLength: 64,
|
|
8659
8722
|
ui: {
|
|
8660
8723
|
intent: "style",
|
|
8724
|
+
underLooks: "owner",
|
|
8661
8725
|
widget: "iconPicker",
|
|
8662
8726
|
iconPickerPreset: "cta"
|
|
8663
8727
|
}
|
|
@@ -8670,6 +8734,7 @@ function createButtonGroup(options = {}) {
|
|
|
8670
8734
|
maxLength: 64,
|
|
8671
8735
|
ui: {
|
|
8672
8736
|
intent: "style",
|
|
8737
|
+
underLooks: "owner",
|
|
8673
8738
|
widget: "iconPicker",
|
|
8674
8739
|
iconPickerPreset: "cta"
|
|
8675
8740
|
}
|
|
@@ -9412,25 +9477,6 @@ const formCopyFragment = defineFragment({
|
|
|
9412
9477
|
} }), bind("content.intro"))]
|
|
9413
9478
|
});
|
|
9414
9479
|
//#endregion
|
|
9415
|
-
//#region ../blocks/src/system/helpers/api-bindings.ts
|
|
9416
|
-
/**
|
|
9417
|
-
* Standard API bindings that all interactive blocks need.
|
|
9418
|
-
*/
|
|
9419
|
-
const apiBindings = {
|
|
9420
|
-
now: { $bind: { from: "$root.now" } },
|
|
9421
|
-
siteId: { $bind: { from: "$root.siteId" } },
|
|
9422
|
-
apiBaseUrl: { $bind: { from: "$root.apiBaseUrl" } }
|
|
9423
|
-
};
|
|
9424
|
-
function withApiBindings(props, options) {
|
|
9425
|
-
return {
|
|
9426
|
-
...options?.includeApiBaseUrl ?? true ? apiBindings : {
|
|
9427
|
-
siteId: apiBindings.siteId,
|
|
9428
|
-
now: apiBindings.now
|
|
9429
|
-
},
|
|
9430
|
-
...props
|
|
9431
|
-
};
|
|
9432
|
-
}
|
|
9433
|
-
//#endregion
|
|
9434
9480
|
//#region ../blocks/src/system/fragments/library/formEmbed.ts
|
|
9435
9481
|
const formEmbedFragment = defineFragment({
|
|
9436
9482
|
variantMeaning: { kind: "arrangement" },
|
|
@@ -10584,6 +10630,7 @@ const newsletterFormFragment = defineFragment({
|
|
|
10584
10630
|
}
|
|
10585
10631
|
],
|
|
10586
10632
|
layout: [el("newsletter-form", withApiBindings({
|
|
10633
|
+
interactionContext: { $bind: { from: "$root.interactionContext" } },
|
|
10587
10634
|
lookSlots: { $bind: { from: "content._lookSlots" } },
|
|
10588
10635
|
source: { $bind: {
|
|
10589
10636
|
from: "mailingListSource",
|
|
@@ -10728,7 +10775,6 @@ function createBlockManifest(config) {
|
|
|
10728
10775
|
icon: config.icon ?? "Box",
|
|
10729
10776
|
layout,
|
|
10730
10777
|
variants,
|
|
10731
|
-
arrangementOwnedFieldIds: config.arrangementOwnedFieldIds,
|
|
10732
10778
|
variantMeaning: config.variantMeaning,
|
|
10733
10779
|
defaultVariant: config.defaultVariant,
|
|
10734
10780
|
variantOptions: config.variantOptions,
|
|
@@ -10806,7 +10852,8 @@ const heroActionsNote = richText({ className: "hero-actions-note" }, when("conte
|
|
|
10806
10852
|
const heroContentNodes = [
|
|
10807
10853
|
lookCaption,
|
|
10808
10854
|
...heroCopyAndCta.layout,
|
|
10809
|
-
heroActionsNote
|
|
10855
|
+
heroActionsNote,
|
|
10856
|
+
heroNewsletterAction
|
|
10810
10857
|
];
|
|
10811
10858
|
function heroContentCard(children, gap, copyAtCard) {
|
|
10812
10859
|
return styledContainer({
|
|
@@ -10937,7 +10984,8 @@ const headlineRowLayout = heroLookLayout([
|
|
|
10937
10984
|
lookCaption,
|
|
10938
10985
|
...heroCopyFragment.layout.slice(2),
|
|
10939
10986
|
...heroCtaRowFragment.layout,
|
|
10940
|
-
heroActionsNote
|
|
10987
|
+
heroActionsNote,
|
|
10988
|
+
heroNewsletterAction
|
|
10941
10989
|
]),
|
|
10942
10990
|
lookPhoto
|
|
10943
10991
|
]);
|
|
@@ -11463,26 +11511,20 @@ const introBlockDefinition = { manifest: createBlockManifest({
|
|
|
11463
11511
|
gapSelectField({
|
|
11464
11512
|
label: "Gap between media and text",
|
|
11465
11513
|
defaultValue: "comfortable",
|
|
11466
|
-
visibleWhen: {
|
|
11514
|
+
visibleWhen: {
|
|
11467
11515
|
field: "variant",
|
|
11468
11516
|
equals: "media-copy"
|
|
11469
|
-
}
|
|
11470
|
-
field: "blockLook",
|
|
11471
|
-
notEquals: "intro-photo-beside-text"
|
|
11472
|
-
}] }
|
|
11517
|
+
}
|
|
11473
11518
|
}),
|
|
11474
11519
|
createImageColSizeField({
|
|
11475
11520
|
id: "ratio",
|
|
11476
11521
|
label: "Media column size",
|
|
11477
11522
|
defaultValue: "1/2",
|
|
11478
11523
|
uiIntent: "display",
|
|
11479
|
-
visibleWhen: {
|
|
11524
|
+
visibleWhen: {
|
|
11480
11525
|
field: "variant",
|
|
11481
11526
|
equals: "media-copy"
|
|
11482
|
-
}
|
|
11483
|
-
field: "blockLook",
|
|
11484
|
-
notEquals: "intro-photo-beside-text"
|
|
11485
|
-
}] }
|
|
11527
|
+
}
|
|
11486
11528
|
}),
|
|
11487
11529
|
createAspectRatioField({
|
|
11488
11530
|
id: "aspectRatio",
|
|
@@ -11976,6 +12018,7 @@ const ctaFullBlockDefinition = { manifest: createBlockManifest({
|
|
|
11976
12018
|
},
|
|
11977
12019
|
id: "block.cta-full",
|
|
11978
12020
|
title: "Call to action",
|
|
12021
|
+
titleSource: "title",
|
|
11979
12022
|
category: "text-and-images",
|
|
11980
12023
|
contentSource: { kind: "inline" },
|
|
11981
12024
|
fragments: [{
|
|
@@ -14612,6 +14655,7 @@ const footerStandardContactBindings = {
|
|
|
14612
14655
|
successMessage: { $bind: { from: "module.engagement.runtime.successMessage" } }
|
|
14613
14656
|
};
|
|
14614
14657
|
const footerMailingListBindings = {
|
|
14658
|
+
buttonVariant: { $bind: { from: "module.engagement.runtime.buttonVariant" } },
|
|
14615
14659
|
source: { $bind: { from: "module.engagement.runtime.source" } },
|
|
14616
14660
|
sourceRef: { $bind: { from: "module.engagement.runtime.sourceRef" } },
|
|
14617
14661
|
mailingList: { $bind: { from: "module.engagement.runtime.mailingList" } },
|
|
@@ -15112,7 +15156,6 @@ const dataLoaders = { ...entriesLoader ? { entries: {
|
|
|
15112
15156
|
} } : {} };
|
|
15113
15157
|
const testimonialsBlockDefinition = {
|
|
15114
15158
|
manifest: createBlockManifest({
|
|
15115
|
-
arrangementOwnedFieldIds: ["maxEntries", "avatarLayout"],
|
|
15116
15159
|
variantMeaning: {
|
|
15117
15160
|
kind: "arrangement",
|
|
15118
15161
|
lookOnlyKeys: [
|
|
@@ -15130,6 +15173,7 @@ const testimonialsBlockDefinition = {
|
|
|
15130
15173
|
},
|
|
15131
15174
|
promotedFields: ["maxEntries"],
|
|
15132
15175
|
title: "Testimonials",
|
|
15176
|
+
titleSource: "heading",
|
|
15133
15177
|
category: "people",
|
|
15134
15178
|
contentSource: { kind: "inline" },
|
|
15135
15179
|
includeContainerStyles: true,
|
|
@@ -16577,7 +16621,10 @@ const mediaTextBlockDefinition = { manifest: createBlockManifest({
|
|
|
16577
16621
|
leadParagraphSlot: { $bind: { from: "content._lookSlots.lede" } },
|
|
16578
16622
|
lookSlots: { $bind: { from: "content._lookSlots" } }
|
|
16579
16623
|
};
|
|
16580
|
-
return [styledCard([richText(props, bind("content.text"))], mediaTextCardOptions, when("content.wrapTextInCard")), richText(props, when("content.wrapTextInCard", {
|
|
16624
|
+
return [styledCard([richText(props, bind("content.text"))], mediaTextCardOptions, when("content.wrapTextInCard")), richText(props, when("content.wrapTextInCard", {
|
|
16625
|
+
equals: true,
|
|
16626
|
+
not: true
|
|
16627
|
+
}), bind("content.text"))];
|
|
16581
16628
|
};
|
|
16582
16629
|
const bodyTextColumn = el("div", {}, textContentNodes("rb-prose rb-max-w-none"));
|
|
16583
16630
|
const defaultTextColumn = el("div", {}, [lookCopyHeading, ...textContentNodes("rb-prose rb-max-w-none")]);
|
|
@@ -17709,7 +17756,7 @@ const eventDisplayFields = [
|
|
|
17709
17756
|
description: "Shows the venue's name and address.",
|
|
17710
17757
|
required: false,
|
|
17711
17758
|
defaultValue: true,
|
|
17712
|
-
ui: { intent: "
|
|
17759
|
+
ui: { intent: "behavior" }
|
|
17713
17760
|
},
|
|
17714
17761
|
{
|
|
17715
17762
|
id: "showMap",
|
|
@@ -17718,7 +17765,7 @@ const eventDisplayFields = [
|
|
|
17718
17765
|
description: "Shows a map when the event's venue has a location set.",
|
|
17719
17766
|
required: false,
|
|
17720
17767
|
defaultValue: true,
|
|
17721
|
-
ui: { intent: "
|
|
17768
|
+
ui: { intent: "behavior" }
|
|
17722
17769
|
},
|
|
17723
17770
|
{
|
|
17724
17771
|
id: "showCapacity",
|
|
@@ -17727,7 +17774,7 @@ const eventDisplayFields = [
|
|
|
17727
17774
|
description: "Shows how many places are left.",
|
|
17728
17775
|
required: false,
|
|
17729
17776
|
defaultValue: true,
|
|
17730
|
-
ui: { intent: "
|
|
17777
|
+
ui: { intent: "behavior" }
|
|
17731
17778
|
}
|
|
17732
17779
|
];
|
|
17733
17780
|
/**
|
|
@@ -17742,7 +17789,7 @@ const emptyStateField = {
|
|
|
17742
17789
|
multiline: false,
|
|
17743
17790
|
defaultValue: "No upcoming events scheduled.",
|
|
17744
17791
|
maxLength: 200,
|
|
17745
|
-
ui: { intent: "
|
|
17792
|
+
ui: { intent: "behavior" }
|
|
17746
17793
|
};
|
|
17747
17794
|
/**
|
|
17748
17795
|
* Layout selection field with grid/stack options
|
|
@@ -18728,6 +18775,8 @@ function buildEventListWeek(anchor, startOfWeek, timeZone) {
|
|
|
18728
18775
|
timeZone
|
|
18729
18776
|
});
|
|
18730
18777
|
return {
|
|
18778
|
+
/** The seven civil days, as date keys in week order. */
|
|
18779
|
+
days: viewport.days.map(formatDateKey),
|
|
18731
18780
|
title: formatDateRange({
|
|
18732
18781
|
kind: "civil",
|
|
18733
18782
|
value: viewport.days[0]
|
|
@@ -18750,6 +18799,70 @@ function eventListWindowEvents(events, window) {
|
|
|
18750
18799
|
return instant >= start && instant <= end;
|
|
18751
18800
|
});
|
|
18752
18801
|
}
|
|
18802
|
+
/** Server and client describe the shown week the same way, from the same inputs. */
|
|
18803
|
+
function eventListWeekDays(week, today, timeZone) {
|
|
18804
|
+
return {
|
|
18805
|
+
days: week.days,
|
|
18806
|
+
today: formatDateKey(today),
|
|
18807
|
+
timeZone
|
|
18808
|
+
};
|
|
18809
|
+
}
|
|
18810
|
+
/**
|
|
18811
|
+
* All seven days of the shown week, in week order and including empty ones.
|
|
18812
|
+
* A session goes under the day it starts on in its own zone, the day its tile
|
|
18813
|
+
* time describes. One whose own date falls outside the week (only possible in
|
|
18814
|
+
* another zone) goes under its day in the site zone, so it still shows.
|
|
18815
|
+
* Sessions arrive in start order, so with more pages to load a day is only
|
|
18816
|
+
* known to be empty when a later day already has a session.
|
|
18817
|
+
*/
|
|
18818
|
+
function weekColumnDays(week, events, allLoaded) {
|
|
18819
|
+
const siteDay = groupItemsByDate(events, {
|
|
18820
|
+
getStartsAt: (event) => event.startsAt,
|
|
18821
|
+
getTimeZone: () => week.timeZone
|
|
18822
|
+
});
|
|
18823
|
+
const siteKey = new Map([...siteDay].flatMap(([key, items]) => items.map((item) => [item, key])));
|
|
18824
|
+
const columnKey = (event) => {
|
|
18825
|
+
const own = eventLocalDateKey(event);
|
|
18826
|
+
return week.days.includes(own) ? own : siteKey.get(event);
|
|
18827
|
+
};
|
|
18828
|
+
const options = eventDateOptions({
|
|
18829
|
+
siteTimeZone: week.timeZone,
|
|
18830
|
+
timeZone: week.timeZone
|
|
18831
|
+
});
|
|
18832
|
+
const lastLoaded = events.map(columnKey).filter((key) => key !== void 0).sort().at(-1);
|
|
18833
|
+
return week.days.map((dateKey) => {
|
|
18834
|
+
const date = {
|
|
18835
|
+
kind: "civil",
|
|
18836
|
+
value: parseBookingLocalDate(dateKey)
|
|
18837
|
+
};
|
|
18838
|
+
const dayEvents = events.filter((event) => columnKey(event) === dateKey).sort((left, right) => new Date(left.startsAt).getTime() - new Date(right.startsAt).getTime());
|
|
18839
|
+
return {
|
|
18840
|
+
dateKey,
|
|
18841
|
+
isToday: dateKey === week.today,
|
|
18842
|
+
label: {
|
|
18843
|
+
weekday: formatDate$2(date, options, {
|
|
18844
|
+
date: "omit",
|
|
18845
|
+
weekday: "short",
|
|
18846
|
+
year: "omit"
|
|
18847
|
+
}),
|
|
18848
|
+
fullWeekday: formatDate$2(date, options, {
|
|
18849
|
+
date: "omit",
|
|
18850
|
+
weekday: "long",
|
|
18851
|
+
year: "omit"
|
|
18852
|
+
}),
|
|
18853
|
+
day: formatDate$2(date, options, {
|
|
18854
|
+
date: "omit",
|
|
18855
|
+
day: "numeric",
|
|
18856
|
+
year: "omit"
|
|
18857
|
+
})
|
|
18858
|
+
},
|
|
18859
|
+
sessions: dayEvents.length > 0 ? {
|
|
18860
|
+
kind: "some",
|
|
18861
|
+
events: dayEvents
|
|
18862
|
+
} : allLoaded || lastLoaded !== void 0 && dateKey < lastLoaded ? { kind: "none" } : { kind: "unknown" }
|
|
18863
|
+
};
|
|
18864
|
+
});
|
|
18865
|
+
}
|
|
18753
18866
|
//#endregion
|
|
18754
18867
|
//#region ../blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.ts
|
|
18755
18868
|
function toRegistrationEvent(event) {
|
|
@@ -20042,7 +20155,11 @@ const eventCalendarListLayoutValues = [
|
|
|
20042
20155
|
"grid",
|
|
20043
20156
|
"compact"
|
|
20044
20157
|
];
|
|
20045
|
-
const arrangementOnlyListLayouts = [
|
|
20158
|
+
const arrangementOnlyListLayouts = [
|
|
20159
|
+
"ledger",
|
|
20160
|
+
"day-groups",
|
|
20161
|
+
"week-columns"
|
|
20162
|
+
];
|
|
20046
20163
|
const eventListArrangementValues = [...eventCalendarListLayoutValues, ...arrangementOnlyListLayouts];
|
|
20047
20164
|
const eventCalendarListLayoutOptions = [
|
|
20048
20165
|
{
|
|
@@ -20214,7 +20331,6 @@ const eventRegistrationCommonSchemaShape = {
|
|
|
20214
20331
|
successMessage: z.string().optional(),
|
|
20215
20332
|
buttonVariant: registrationButtonVariantSchema.optional(),
|
|
20216
20333
|
host: bookingHostSchema.optional(),
|
|
20217
|
-
spamProtectionEnabled: z.boolean().optional(),
|
|
20218
20334
|
supportEmail: z.string().optional(),
|
|
20219
20335
|
sitePasses: publicPassProductCollectionSchema.nullable().optional(),
|
|
20220
20336
|
siteMemberships: publicMembershipProductCollectionSchema.nullable().optional(),
|
|
@@ -20403,7 +20519,6 @@ const eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
20403
20519
|
successMessage: source.successMessage,
|
|
20404
20520
|
buttonVariant: source.buttonVariant,
|
|
20405
20521
|
host: source.host ?? "overlay",
|
|
20406
|
-
spamProtectionEnabled: source.spamProtectionEnabled,
|
|
20407
20522
|
supportEmail: source.supportEmail,
|
|
20408
20523
|
sitePasses: source.sitePasses ?? null,
|
|
20409
20524
|
siteMemberships: source.siteMemberships ?? null,
|
|
@@ -20785,7 +20900,7 @@ const eventDetailsBlockDefinition = {
|
|
|
20785
20900
|
label: "Show venue",
|
|
20786
20901
|
required: false,
|
|
20787
20902
|
defaultValue: true,
|
|
20788
|
-
ui: { intent: "
|
|
20903
|
+
ui: { intent: "behavior" }
|
|
20789
20904
|
},
|
|
20790
20905
|
{
|
|
20791
20906
|
id: "showTitle",
|
|
@@ -20793,7 +20908,7 @@ const eventDetailsBlockDefinition = {
|
|
|
20793
20908
|
label: "Show event title",
|
|
20794
20909
|
required: false,
|
|
20795
20910
|
defaultValue: false,
|
|
20796
|
-
ui: { intent: "
|
|
20911
|
+
ui: { intent: "behavior" }
|
|
20797
20912
|
},
|
|
20798
20913
|
{
|
|
20799
20914
|
id: "showDescription",
|
|
@@ -20801,7 +20916,7 @@ const eventDetailsBlockDefinition = {
|
|
|
20801
20916
|
label: "Show event description",
|
|
20802
20917
|
required: false,
|
|
20803
20918
|
defaultValue: false,
|
|
20804
|
-
ui: { intent: "
|
|
20919
|
+
ui: { intent: "behavior" }
|
|
20805
20920
|
},
|
|
20806
20921
|
{
|
|
20807
20922
|
id: "showMap",
|
|
@@ -20810,7 +20925,7 @@ const eventDetailsBlockDefinition = {
|
|
|
20810
20925
|
description: "Shows a map, as long as the venue's location is set.",
|
|
20811
20926
|
required: false,
|
|
20812
20927
|
defaultValue: true,
|
|
20813
|
-
ui: { intent: "
|
|
20928
|
+
ui: { intent: "behavior" }
|
|
20814
20929
|
},
|
|
20815
20930
|
{
|
|
20816
20931
|
id: "showOtherDates",
|
|
@@ -20818,7 +20933,7 @@ const eventDetailsBlockDefinition = {
|
|
|
20818
20933
|
label: "Show other dates",
|
|
20819
20934
|
required: false,
|
|
20820
20935
|
defaultValue: true,
|
|
20821
|
-
ui: { intent: "
|
|
20936
|
+
ui: { intent: "behavior" }
|
|
20822
20937
|
},
|
|
20823
20938
|
{
|
|
20824
20939
|
id: "otherDatesLimit",
|
|
@@ -20845,7 +20960,7 @@ const eventDetailsBlockDefinition = {
|
|
|
20845
20960
|
label: "All dates"
|
|
20846
20961
|
}
|
|
20847
20962
|
],
|
|
20848
|
-
ui: { intent: "
|
|
20963
|
+
ui: { intent: "behavior" }
|
|
20849
20964
|
},
|
|
20850
20965
|
{
|
|
20851
20966
|
id: "showCapacity",
|
|
@@ -20853,7 +20968,7 @@ const eventDetailsBlockDefinition = {
|
|
|
20853
20968
|
label: "Show capacity",
|
|
20854
20969
|
required: false,
|
|
20855
20970
|
defaultValue: false,
|
|
20856
|
-
ui: { intent: "
|
|
20971
|
+
ui: { intent: "behavior" }
|
|
20857
20972
|
},
|
|
20858
20973
|
{
|
|
20859
20974
|
id: "showCost",
|
|
@@ -20862,7 +20977,7 @@ const eventDetailsBlockDefinition = {
|
|
|
20862
20977
|
description: "Shows the ticket price for paid events.",
|
|
20863
20978
|
required: false,
|
|
20864
20979
|
defaultValue: true,
|
|
20865
|
-
ui: { intent: "
|
|
20980
|
+
ui: { intent: "behavior" }
|
|
20866
20981
|
},
|
|
20867
20982
|
{
|
|
20868
20983
|
id: "showAcceptedPasses",
|
|
@@ -20871,7 +20986,7 @@ const eventDetailsBlockDefinition = {
|
|
|
20871
20986
|
description: "Shows which passes can be used for this event.",
|
|
20872
20987
|
required: false,
|
|
20873
20988
|
defaultValue: true,
|
|
20874
|
-
ui: { intent: "
|
|
20989
|
+
ui: { intent: "behavior" }
|
|
20875
20990
|
},
|
|
20876
20991
|
{
|
|
20877
20992
|
id: "showAcceptedMemberships",
|
|
@@ -20880,7 +20995,7 @@ const eventDetailsBlockDefinition = {
|
|
|
20880
20995
|
description: "Shows which memberships include this event.",
|
|
20881
20996
|
required: false,
|
|
20882
20997
|
defaultValue: true,
|
|
20883
|
-
ui: { intent: "
|
|
20998
|
+
ui: { intent: "behavior" }
|
|
20884
20999
|
}
|
|
20885
21000
|
],
|
|
20886
21001
|
layout: [styledSection({
|
|
@@ -21193,6 +21308,7 @@ function getCardOrientation(layout) {
|
|
|
21193
21308
|
case "grid": return "vertical";
|
|
21194
21309
|
case "ledger":
|
|
21195
21310
|
case "day-groups":
|
|
21311
|
+
case "week-columns":
|
|
21196
21312
|
case "compact": return "vertical";
|
|
21197
21313
|
}
|
|
21198
21314
|
}
|
|
@@ -22454,14 +22570,31 @@ function mediaImageHostProps(props, style) {
|
|
|
22454
22570
|
};
|
|
22455
22571
|
}
|
|
22456
22572
|
//#endregion
|
|
22457
|
-
//#region ../blocks/src/primitives/content/
|
|
22573
|
+
//#region ../blocks/src/primitives/content/richTextImageSize.ts
|
|
22458
22574
|
function parseDimension(value) {
|
|
22459
|
-
|
|
22460
|
-
|
|
22461
|
-
|
|
22462
|
-
|
|
22463
|
-
|
|
22575
|
+
const parsed = typeof value === "number" || typeof value === "string" ? Number(value) : NaN;
|
|
22576
|
+
return Number.isFinite(parsed) && parsed > 0 ? Math.round(parsed) : void 0;
|
|
22577
|
+
}
|
|
22578
|
+
/** View and editor images must request the same resource to preserve browser cache reuse. */
|
|
22579
|
+
function getRichTextImageSize(attrs) {
|
|
22580
|
+
const width = parseDimension(attrs.width);
|
|
22581
|
+
const height = parseDimension(attrs.height);
|
|
22582
|
+
return {
|
|
22583
|
+
width,
|
|
22584
|
+
height,
|
|
22585
|
+
urlOptions: width ? {
|
|
22586
|
+
width,
|
|
22587
|
+
resize: "contain",
|
|
22588
|
+
quality: 85
|
|
22589
|
+
} : height ? {
|
|
22590
|
+
height,
|
|
22591
|
+
resize: "contain",
|
|
22592
|
+
quality: 85
|
|
22593
|
+
} : ImagePresets.full
|
|
22594
|
+
};
|
|
22464
22595
|
}
|
|
22596
|
+
//#endregion
|
|
22597
|
+
//#region ../blocks/src/primitives/content/components/RichText.tsx
|
|
22465
22598
|
function normalizeRel(target, rel) {
|
|
22466
22599
|
const normalizedRel = rel?.trim();
|
|
22467
22600
|
if (target !== "_blank") return normalizedRel && normalizedRel.length > 0 ? normalizedRel : void 0;
|
|
@@ -22537,36 +22670,22 @@ function renderSimpleNode(node, key, children, context) {
|
|
|
22537
22670
|
default: return null;
|
|
22538
22671
|
}
|
|
22539
22672
|
}
|
|
22540
|
-
function
|
|
22541
|
-
if (width) return {
|
|
22542
|
-
width,
|
|
22543
|
-
resize: "contain",
|
|
22544
|
-
quality: 85
|
|
22545
|
-
};
|
|
22546
|
-
if (height) return {
|
|
22547
|
-
height,
|
|
22548
|
-
resize: "contain",
|
|
22549
|
-
quality: 85
|
|
22550
|
-
};
|
|
22551
|
-
return ImagePresets.full;
|
|
22552
|
-
}
|
|
22553
|
-
function resolveRichTextImageSource(attrs, width, height, context) {
|
|
22673
|
+
function resolveRichTextImageSource(attrs, context) {
|
|
22554
22674
|
if (attrs.identifier !== void 0 && attrs.identifier !== null) {
|
|
22555
22675
|
const parsed = parseCanonicalMediaIdentifier(attrs.identifier);
|
|
22556
22676
|
if (!parsed.ok) return void 0;
|
|
22557
22677
|
if (context?.mediaAssetIndex) return resolveImageUrlWithContext({
|
|
22558
22678
|
type: "image",
|
|
22559
22679
|
identifier: parsed.value
|
|
22560
|
-
},
|
|
22680
|
+
}, getRichTextImageSize(attrs).urlOptions, context);
|
|
22561
22681
|
return typeof attrs.src === "string" ? attrs.src.trim() || void 0 : void 0;
|
|
22562
22682
|
}
|
|
22563
22683
|
return typeof attrs.src === "string" ? attrs.src.trim() || void 0 : void 0;
|
|
22564
22684
|
}
|
|
22565
22685
|
function renderRichTextImage(node, key, context) {
|
|
22566
22686
|
const attrs = node.attrs ?? {};
|
|
22567
|
-
const width =
|
|
22568
|
-
const
|
|
22569
|
-
const src = resolveRichTextImageSource(attrs, width, height, context.imageResolveContext);
|
|
22687
|
+
const { width, height } = getRichTextImageSize(attrs);
|
|
22688
|
+
const src = resolveRichTextImageSource(attrs, context.imageResolveContext);
|
|
22570
22689
|
if (!src) return null;
|
|
22571
22690
|
return /* @__PURE__ */ jsx("img", {
|
|
22572
22691
|
src,
|
|
@@ -22990,6 +23109,11 @@ function resolveEventListPaginationAction(input) {
|
|
|
22990
23109
|
};
|
|
22991
23110
|
}
|
|
22992
23111
|
//#endregion
|
|
23112
|
+
//#region ../blocks/src/system/runtime/hooks/useEventPagination.state.ts
|
|
23113
|
+
function hasMoreEventPages(events, pageSize) {
|
|
23114
|
+
return events.length >= pageSize;
|
|
23115
|
+
}
|
|
23116
|
+
//#endregion
|
|
22993
23117
|
//#region ../blocks/src/system/blocks/events/shared/calendarWindow.ts
|
|
22994
23118
|
function resolveCalendarReadProfile(content) {
|
|
22995
23119
|
return resolveEventCalendarReadPlan(content).readProfile;
|
|
@@ -23268,6 +23392,7 @@ function buildEventCollectionHydration(source) {
|
|
|
23268
23392
|
function buildEventCollectionListingDisplay(display, prefetchedEvents, className) {
|
|
23269
23393
|
const initialEvents = display.events.slice(0, display.eventsPerPage);
|
|
23270
23394
|
return {
|
|
23395
|
+
allLoaded: prefetchedEvents && !hasMoreEventPages(display.events, display.eventsPerPage),
|
|
23271
23396
|
kind: "event-listing",
|
|
23272
23397
|
sectionAction: display.sectionAction,
|
|
23273
23398
|
panelHeading: display.panelHeading,
|
|
@@ -23345,7 +23470,13 @@ const eventListingDisplaySchema = z.object({
|
|
|
23345
23470
|
showCapacity: z.boolean(),
|
|
23346
23471
|
showPhotos: z.boolean().optional(),
|
|
23347
23472
|
orientation: cardOrientationSchema,
|
|
23348
|
-
events: z.array(publicEventSchema)
|
|
23473
|
+
events: z.array(publicEventSchema),
|
|
23474
|
+
week: z.object({
|
|
23475
|
+
days: z.array(z.string()).length(7),
|
|
23476
|
+
today: z.string(),
|
|
23477
|
+
timeZone: z.string()
|
|
23478
|
+
}).optional(),
|
|
23479
|
+
allLoaded: z.boolean().optional()
|
|
23349
23480
|
});
|
|
23350
23481
|
const eventListingHydrationSchema = z.object({
|
|
23351
23482
|
siteId: z.string(),
|
|
@@ -23801,6 +23932,31 @@ const eventListingBlockDefinition = {
|
|
|
23801
23932
|
} }
|
|
23802
23933
|
};
|
|
23803
23934
|
//#endregion
|
|
23935
|
+
//#region ../blocks/src/system/blocks/events/eventSelectionChips.ts
|
|
23936
|
+
/** The event types a calendar can be narrowed to, in the order they're offered. */
|
|
23937
|
+
const EVENT_SELECTION_TYPE_OPTIONS = [
|
|
23938
|
+
{
|
|
23939
|
+
value: "course",
|
|
23940
|
+
label: "Courses"
|
|
23941
|
+
},
|
|
23942
|
+
{
|
|
23943
|
+
value: "class",
|
|
23944
|
+
label: "Classes"
|
|
23945
|
+
},
|
|
23946
|
+
{
|
|
23947
|
+
value: "workshop",
|
|
23948
|
+
label: "Workshops"
|
|
23949
|
+
},
|
|
23950
|
+
{
|
|
23951
|
+
value: "retreat",
|
|
23952
|
+
label: "Retreats"
|
|
23953
|
+
},
|
|
23954
|
+
{
|
|
23955
|
+
value: "performance",
|
|
23956
|
+
label: "Performances"
|
|
23957
|
+
}
|
|
23958
|
+
];
|
|
23959
|
+
//#endregion
|
|
23804
23960
|
//#region ../blocks/src/system/blocks/events/recurring-schedule-projection.ts
|
|
23805
23961
|
const weekdayOrder = [
|
|
23806
23962
|
"Monday",
|
|
@@ -24708,7 +24864,7 @@ const eventCalendarAdditionalFields = [
|
|
|
24708
24864
|
label: "Week"
|
|
24709
24865
|
}],
|
|
24710
24866
|
ui: {
|
|
24711
|
-
intent: "
|
|
24867
|
+
intent: "behavior",
|
|
24712
24868
|
visibleWhen: {
|
|
24713
24869
|
field: "variant",
|
|
24714
24870
|
equals: "list"
|
|
@@ -24822,7 +24978,7 @@ const eventCalendarAdditionalFields = [
|
|
|
24822
24978
|
}
|
|
24823
24979
|
],
|
|
24824
24980
|
ui: {
|
|
24825
|
-
intent: "
|
|
24981
|
+
intent: "behavior",
|
|
24826
24982
|
visibleWhen: {
|
|
24827
24983
|
field: "variant",
|
|
24828
24984
|
oneOf: ["combined", "list"]
|
|
@@ -24852,7 +25008,7 @@ const eventCalendarAdditionalFields = [
|
|
|
24852
25008
|
}
|
|
24853
25009
|
],
|
|
24854
25010
|
ui: {
|
|
24855
|
-
intent: "
|
|
25011
|
+
intent: "behavior",
|
|
24856
25012
|
visibleWhen: {
|
|
24857
25013
|
field: "variant",
|
|
24858
25014
|
oneOf: ["combined", "list"]
|
|
@@ -24865,7 +25021,7 @@ const eventCalendarAdditionalFields = [
|
|
|
24865
25021
|
label: "Link to the full list",
|
|
24866
25022
|
required: false,
|
|
24867
25023
|
ui: {
|
|
24868
|
-
intent: "
|
|
25024
|
+
intent: "behavior",
|
|
24869
25025
|
visibleWhen: { anyOf: [{ allOf: [{
|
|
24870
25026
|
field: "variant",
|
|
24871
25027
|
oneOf: ["combined", "list"]
|
|
@@ -24887,7 +25043,7 @@ const eventCalendarAdditionalFields = [
|
|
|
24887
25043
|
multiline: false,
|
|
24888
25044
|
defaultValue: "Load more events",
|
|
24889
25045
|
ui: {
|
|
24890
|
-
intent: "
|
|
25046
|
+
intent: "behavior",
|
|
24891
25047
|
visibleWhen: {
|
|
24892
25048
|
field: "variant",
|
|
24893
25049
|
oneOf: [
|
|
@@ -24914,7 +25070,7 @@ const eventCalendarAdditionalFields = [
|
|
|
24914
25070
|
label: "Monday"
|
|
24915
25071
|
}],
|
|
24916
25072
|
ui: {
|
|
24917
|
-
intent: "
|
|
25073
|
+
intent: "behavior",
|
|
24918
25074
|
visibleWhen: {
|
|
24919
25075
|
field: "variant",
|
|
24920
25076
|
oneOf: [
|
|
@@ -24950,7 +25106,7 @@ const eventCalendarAdditionalFields = [
|
|
|
24950
25106
|
}
|
|
24951
25107
|
],
|
|
24952
25108
|
ui: {
|
|
24953
|
-
intent: "
|
|
25109
|
+
intent: "behavior",
|
|
24954
25110
|
visibleWhen: {
|
|
24955
25111
|
field: "variant",
|
|
24956
25112
|
equals: "combined"
|
|
@@ -24994,7 +25150,7 @@ const eventCalendarAdditionalFields = [
|
|
|
24994
25150
|
required: false,
|
|
24995
25151
|
defaultValue: true,
|
|
24996
25152
|
ui: {
|
|
24997
|
-
intent: "
|
|
25153
|
+
intent: "behavior",
|
|
24998
25154
|
visibleWhen: {
|
|
24999
25155
|
field: "variant",
|
|
25000
25156
|
oneOf: [
|
|
@@ -25030,7 +25186,7 @@ const eventCalendarAdditionalFields = [
|
|
|
25030
25186
|
}
|
|
25031
25187
|
],
|
|
25032
25188
|
ui: {
|
|
25033
|
-
intent: "
|
|
25189
|
+
intent: "behavior",
|
|
25034
25190
|
visibleWhen: { allOf: [{
|
|
25035
25191
|
field: "variant",
|
|
25036
25192
|
oneOf: [
|
|
@@ -25054,7 +25210,7 @@ const eventCalendarAdditionalFields = [
|
|
|
25054
25210
|
required: false,
|
|
25055
25211
|
defaultValue: false,
|
|
25056
25212
|
ui: {
|
|
25057
|
-
intent: "
|
|
25213
|
+
intent: "behavior",
|
|
25058
25214
|
visibleWhen: { allOf: [{
|
|
25059
25215
|
field: "variant",
|
|
25060
25216
|
oneOf: [
|
|
@@ -25078,7 +25234,7 @@ const eventCalendarAdditionalFields = [
|
|
|
25078
25234
|
required: false,
|
|
25079
25235
|
defaultValue: true,
|
|
25080
25236
|
ui: {
|
|
25081
|
-
intent: "
|
|
25237
|
+
intent: "behavior",
|
|
25082
25238
|
visibleWhen: { allOf: [{
|
|
25083
25239
|
field: "variant",
|
|
25084
25240
|
oneOf: [
|
|
@@ -25184,8 +25340,7 @@ const eventCalendarAdditionalFields = [
|
|
|
25184
25340
|
{
|
|
25185
25341
|
id: "eventSurface",
|
|
25186
25342
|
type: "select",
|
|
25187
|
-
label: "
|
|
25188
|
-
description: "Choose whether this block shows everything, regular classes, or workshops and special events.",
|
|
25343
|
+
label: "Which events",
|
|
25189
25344
|
required: false,
|
|
25190
25345
|
multiple: false,
|
|
25191
25346
|
defaultValue: "all",
|
|
@@ -25207,7 +25362,10 @@ const eventCalendarAdditionalFields = [
|
|
|
25207
25362
|
label: "Custom"
|
|
25208
25363
|
}
|
|
25209
25364
|
],
|
|
25210
|
-
ui: {
|
|
25365
|
+
ui: {
|
|
25366
|
+
intent: "behavior",
|
|
25367
|
+
widget: "eventSelectionChips"
|
|
25368
|
+
}
|
|
25211
25369
|
},
|
|
25212
25370
|
{
|
|
25213
25371
|
id: "filterEventPresets",
|
|
@@ -25217,34 +25375,10 @@ const eventCalendarAdditionalFields = [
|
|
|
25217
25375
|
required: false,
|
|
25218
25376
|
multiple: true,
|
|
25219
25377
|
defaultValue: [],
|
|
25220
|
-
options:
|
|
25221
|
-
{
|
|
25222
|
-
value: "course",
|
|
25223
|
-
label: "Courses"
|
|
25224
|
-
},
|
|
25225
|
-
{
|
|
25226
|
-
value: "class",
|
|
25227
|
-
label: "Classes"
|
|
25228
|
-
},
|
|
25229
|
-
{
|
|
25230
|
-
value: "workshop",
|
|
25231
|
-
label: "Workshops"
|
|
25232
|
-
},
|
|
25233
|
-
{
|
|
25234
|
-
value: "retreat",
|
|
25235
|
-
label: "Retreats"
|
|
25236
|
-
},
|
|
25237
|
-
{
|
|
25238
|
-
value: "performance",
|
|
25239
|
-
label: "Performances"
|
|
25240
|
-
}
|
|
25241
|
-
],
|
|
25378
|
+
options: EVENT_SELECTION_TYPE_OPTIONS.map((option) => ({ ...option })),
|
|
25242
25379
|
ui: {
|
|
25243
25380
|
intent: "behavior",
|
|
25244
|
-
|
|
25245
|
-
field: "eventSurface",
|
|
25246
|
-
equals: "custom"
|
|
25247
|
-
}
|
|
25381
|
+
hidden: true
|
|
25248
25382
|
}
|
|
25249
25383
|
},
|
|
25250
25384
|
{
|
|
@@ -25271,10 +25405,7 @@ const eventCalendarAdditionalFields = [
|
|
|
25271
25405
|
],
|
|
25272
25406
|
ui: {
|
|
25273
25407
|
intent: "behavior",
|
|
25274
|
-
|
|
25275
|
-
field: "eventSurface",
|
|
25276
|
-
equals: "custom"
|
|
25277
|
-
}
|
|
25408
|
+
hidden: true
|
|
25278
25409
|
}
|
|
25279
25410
|
},
|
|
25280
25411
|
createSiteOptionSelectField({
|
|
@@ -25321,13 +25452,7 @@ const eventCalendarAdditionalFields = [
|
|
|
25321
25452
|
intent: field.id === "_cardStyles" || field.id === "buttonVariant" ? "style" : "content"
|
|
25322
25453
|
}
|
|
25323
25454
|
})),
|
|
25324
|
-
|
|
25325
|
-
...emptyStateField,
|
|
25326
|
-
ui: {
|
|
25327
|
-
...emptyStateField.ui ?? {},
|
|
25328
|
-
intent: "display"
|
|
25329
|
-
}
|
|
25330
|
-
},
|
|
25455
|
+
emptyStateField,
|
|
25331
25456
|
sectionStylesField({
|
|
25332
25457
|
id: "_sectionStyles",
|
|
25333
25458
|
label: "Section styles",
|
|
@@ -25479,7 +25604,6 @@ const generatedEventCalendarManifest = createBlockManifestWithContentShape({
|
|
|
25479
25604
|
icon: "CalendarDays",
|
|
25480
25605
|
layout: eventCalendarLayout,
|
|
25481
25606
|
variants: eventCalendarVariants,
|
|
25482
|
-
arrangementOwnedFieldIds: ["defaultCalendarView"],
|
|
25483
25607
|
variantMeaning: eventCalendarVariantMeaning,
|
|
25484
25608
|
defaultVariant: "combined",
|
|
25485
25609
|
variantOptions: {
|
|
@@ -25497,7 +25621,11 @@ const eventCalendarBlockDefinition = {
|
|
|
25497
25621
|
fields: generatedEventCalendarManifest.fields?.map((field) => field.id === "variant" ? {
|
|
25498
25622
|
...field,
|
|
25499
25623
|
label: "Show events as",
|
|
25500
|
-
description: void 0
|
|
25624
|
+
description: void 0,
|
|
25625
|
+
ui: {
|
|
25626
|
+
...field.ui,
|
|
25627
|
+
widget: "segmented"
|
|
25628
|
+
}
|
|
25501
25629
|
} : field)
|
|
25502
25630
|
},
|
|
25503
25631
|
contentNormalizer: {
|
|
@@ -25754,7 +25882,7 @@ const groupOverrideFields = [
|
|
|
25754
25882
|
label: "Hide this card",
|
|
25755
25883
|
required: false,
|
|
25756
25884
|
defaultValue: false,
|
|
25757
|
-
ui: { intent: "
|
|
25885
|
+
ui: { intent: "behavior" }
|
|
25758
25886
|
},
|
|
25759
25887
|
{
|
|
25760
25888
|
id: "presentation",
|
|
@@ -25857,7 +25985,7 @@ const offeringsPreviewFields = [
|
|
|
25857
25985
|
label: "6 items"
|
|
25858
25986
|
}
|
|
25859
25987
|
],
|
|
25860
|
-
ui: { intent: "
|
|
25988
|
+
ui: { intent: "behavior" }
|
|
25861
25989
|
},
|
|
25862
25990
|
{
|
|
25863
25991
|
id: "groupOrder",
|
|
@@ -25871,7 +25999,7 @@ const offeringsPreviewFields = [
|
|
|
25871
25999
|
label: labelForOfferingPreviewSourceKey(sourceKey)
|
|
25872
26000
|
})),
|
|
25873
26001
|
ui: {
|
|
25874
|
-
intent: "
|
|
26002
|
+
intent: "behavior",
|
|
25875
26003
|
widget: "offeringGroupOrder"
|
|
25876
26004
|
}
|
|
25877
26005
|
},
|
|
@@ -25885,7 +26013,10 @@ const offeringsPreviewFields = [
|
|
|
25885
26013
|
itemLabel: "Offering card",
|
|
25886
26014
|
itemLabelSource: "title",
|
|
25887
26015
|
allowConversion: false,
|
|
25888
|
-
ui: {
|
|
26016
|
+
ui: {
|
|
26017
|
+
intent: "content",
|
|
26018
|
+
widget: "offeringCardChanges"
|
|
26019
|
+
},
|
|
25889
26020
|
schema: { fields: groupOverrideFields }
|
|
25890
26021
|
},
|
|
25891
26022
|
createButtonVariantField(),
|
|
@@ -26095,7 +26226,6 @@ const offeringsPreviewLayout = [styledSection({
|
|
|
26095
26226
|
spacing: "comfortable"
|
|
26096
26227
|
})];
|
|
26097
26228
|
const offeringsPreviewManifest = createBlockManifest({
|
|
26098
|
-
arrangementOwnedFieldIds: ["groupOverrides.presentation"],
|
|
26099
26229
|
variantMeaning: {
|
|
26100
26230
|
kind: "arrangement",
|
|
26101
26231
|
lookOnlyKeys: [
|
|
@@ -26790,7 +26920,7 @@ const imageGalleryFields = parseFieldDefinitions([
|
|
|
26790
26920
|
label: "Show arrows",
|
|
26791
26921
|
defaultValue: true,
|
|
26792
26922
|
ui: {
|
|
26793
|
-
intent: "
|
|
26923
|
+
intent: "display",
|
|
26794
26924
|
visibleWhen: {
|
|
26795
26925
|
field: "variant",
|
|
26796
26926
|
equals: "carousel"
|
|
@@ -26803,7 +26933,7 @@ const imageGalleryFields = parseFieldDefinitions([
|
|
|
26803
26933
|
label: "Show dots",
|
|
26804
26934
|
defaultValue: false,
|
|
26805
26935
|
ui: {
|
|
26806
|
-
intent: "
|
|
26936
|
+
intent: "display",
|
|
26807
26937
|
visibleWhen: {
|
|
26808
26938
|
field: "variant",
|
|
26809
26939
|
equals: "carousel"
|
|
@@ -26816,7 +26946,7 @@ const imageGalleryFields = parseFieldDefinitions([
|
|
|
26816
26946
|
label: "Autoplay",
|
|
26817
26947
|
defaultValue: false,
|
|
26818
26948
|
ui: {
|
|
26819
|
-
intent: "
|
|
26949
|
+
intent: "display",
|
|
26820
26950
|
visibleWhen: {
|
|
26821
26951
|
field: "variant",
|
|
26822
26952
|
equals: "carousel"
|
|
@@ -26847,7 +26977,7 @@ const imageGalleryFields = parseFieldDefinitions([
|
|
|
26847
26977
|
}
|
|
26848
26978
|
],
|
|
26849
26979
|
ui: {
|
|
26850
|
-
intent: "
|
|
26980
|
+
intent: "display",
|
|
26851
26981
|
visibleWhen: {
|
|
26852
26982
|
field: "variant",
|
|
26853
26983
|
equals: "carousel"
|
|
@@ -26867,7 +26997,7 @@ const imageGalleryFields = parseFieldDefinitions([
|
|
|
26867
26997
|
label: "Show on hover"
|
|
26868
26998
|
}],
|
|
26869
26999
|
ui: {
|
|
26870
|
-
intent: "
|
|
27000
|
+
intent: "display",
|
|
26871
27001
|
visibleWhen: {
|
|
26872
27002
|
field: "variant",
|
|
26873
27003
|
equals: "carousel"
|
|
@@ -26880,7 +27010,7 @@ const imageGalleryFields = parseFieldDefinitions([
|
|
|
26880
27010
|
label: "Loop slides",
|
|
26881
27011
|
defaultValue: true,
|
|
26882
27012
|
ui: {
|
|
26883
|
-
intent: "
|
|
27013
|
+
intent: "display",
|
|
26884
27014
|
visibleWhen: {
|
|
26885
27015
|
field: "variant",
|
|
26886
27016
|
equals: "carousel"
|
|
@@ -26940,7 +27070,7 @@ const imageGalleryFields = parseFieldDefinitions([
|
|
|
26940
27070
|
label: "Pause on hover",
|
|
26941
27071
|
defaultValue: true,
|
|
26942
27072
|
ui: {
|
|
26943
|
-
intent: "
|
|
27073
|
+
intent: "display",
|
|
26944
27074
|
visibleWhen: {
|
|
26945
27075
|
field: "variant",
|
|
26946
27076
|
equals: "marquee"
|
|
@@ -26978,6 +27108,16 @@ const imageGalleryFields = parseFieldDefinitions([
|
|
|
26978
27108
|
}
|
|
26979
27109
|
}
|
|
26980
27110
|
},
|
|
27111
|
+
{
|
|
27112
|
+
id: "blackAndWhite",
|
|
27113
|
+
type: "boolean",
|
|
27114
|
+
required: false,
|
|
27115
|
+
label: "Black and white",
|
|
27116
|
+
ui: {
|
|
27117
|
+
intent: "display",
|
|
27118
|
+
hidden: true
|
|
27119
|
+
}
|
|
27120
|
+
},
|
|
26981
27121
|
{
|
|
26982
27122
|
id: "imageFilter",
|
|
26983
27123
|
type: "select",
|
|
@@ -28759,7 +28899,6 @@ function shopProductPresentation(hydration, productId, index, count) {
|
|
|
28759
28899
|
}
|
|
28760
28900
|
const shopBlockDefinition = {
|
|
28761
28901
|
manifest: createBlockManifest({
|
|
28762
|
-
arrangementOwnedFieldIds: ["layout", "columns"],
|
|
28763
28902
|
variantMeaning: {
|
|
28764
28903
|
kind: "arrangement",
|
|
28765
28904
|
lookOnlyKeys: [
|
|
@@ -28800,7 +28939,7 @@ const shopBlockDefinition = {
|
|
|
28800
28939
|
description: "Lets visitors buy your class passes.",
|
|
28801
28940
|
required: false,
|
|
28802
28941
|
defaultValue: true,
|
|
28803
|
-
ui: { intent: "
|
|
28942
|
+
ui: { intent: "behavior" }
|
|
28804
28943
|
},
|
|
28805
28944
|
{
|
|
28806
28945
|
id: "showMemberships",
|
|
@@ -28809,7 +28948,7 @@ const shopBlockDefinition = {
|
|
|
28809
28948
|
description: "Lets visitors buy your memberships.",
|
|
28810
28949
|
required: false,
|
|
28811
28950
|
defaultValue: true,
|
|
28812
|
-
ui: { intent: "
|
|
28951
|
+
ui: { intent: "behavior" }
|
|
28813
28952
|
},
|
|
28814
28953
|
{
|
|
28815
28954
|
id: "layout",
|
|
@@ -28870,7 +29009,7 @@ const shopBlockDefinition = {
|
|
|
28870
29009
|
description: "Shows the description under each one.",
|
|
28871
29010
|
required: false,
|
|
28872
29011
|
defaultValue: true,
|
|
28873
|
-
ui: { intent: "
|
|
29012
|
+
ui: { intent: "behavior" }
|
|
28874
29013
|
},
|
|
28875
29014
|
{
|
|
28876
29015
|
id: "showValidityPeriod",
|
|
@@ -28879,7 +29018,7 @@ const shopBlockDefinition = {
|
|
|
28879
29018
|
description: "Shows how long each pass lasts, like 'Valid for 30 days'.",
|
|
28880
29019
|
required: false,
|
|
28881
29020
|
defaultValue: true,
|
|
28882
|
-
ui: { intent: "
|
|
29021
|
+
ui: { intent: "behavior" }
|
|
28883
29022
|
},
|
|
28884
29023
|
{
|
|
28885
29024
|
id: "showPricePerCredit",
|
|
@@ -28888,7 +29027,7 @@ const shopBlockDefinition = {
|
|
|
28888
29027
|
description: "Shows what each credit works out at, for passes and packs.",
|
|
28889
29028
|
required: false,
|
|
28890
29029
|
defaultValue: true,
|
|
28891
|
-
ui: { intent: "
|
|
29030
|
+
ui: { intent: "behavior" }
|
|
28892
29031
|
},
|
|
28893
29032
|
createButtonVariantField({
|
|
28894
29033
|
label: "Button style",
|
|
@@ -29920,6 +30059,7 @@ function withOptionalPhone(fields, includePhone) {
|
|
|
29920
30059
|
}
|
|
29921
30060
|
//#endregion
|
|
29922
30061
|
//#region ../blocks/src/system/runtime/nodes/newsletter-form.interactive.ts
|
|
30062
|
+
const NEWSLETTER_DEMO_MESSAGE = "This is a demo. No signup has been saved.";
|
|
29923
30063
|
const NEWSLETTER_SIGNUPS_PAUSED_MESSAGE = "We can’t accept signups right now. Please try again later.";
|
|
29924
30064
|
function newsletterBlockSubmissionMessage(target) {
|
|
29925
30065
|
if (target.tag === "block-source") return target.sourceRef ? null : NEWSLETTER_SIGNUPS_PAUSED_MESSAGE;
|
|
@@ -29977,6 +30117,7 @@ const newsletterSourceCommonSchema = z.object({
|
|
|
29977
30117
|
siteId: z.string().optional(),
|
|
29978
30118
|
apiBaseUrl: z.string().optional(),
|
|
29979
30119
|
mailingList: mailingListContextSchema.optional(),
|
|
30120
|
+
interactionContext: blockInteractionContextSchema.optional(),
|
|
29980
30121
|
targeting: mailingListTargetingSchema.optional(),
|
|
29981
30122
|
buttonVariant: newsletterButtonVariantSchema.nullable().optional(),
|
|
29982
30123
|
spamProtectionEnabled: z.boolean().optional(),
|
|
@@ -29997,7 +30138,7 @@ const newsletterSourceSchema = z.discriminatedUnion("source", [
|
|
|
29997
30138
|
])
|
|
29998
30139
|
}),
|
|
29999
30140
|
newsletterSourceCommonSchema.extend({
|
|
30000
|
-
source: z.
|
|
30141
|
+
source: z.enum(["signed-footer", "signed-hosted-booking"]),
|
|
30001
30142
|
sourceRef: z.object({
|
|
30002
30143
|
tag: z.literal("signed_source_ref"),
|
|
30003
30144
|
token: signedMailingListSourceTokenSchema
|
|
@@ -30027,12 +30168,13 @@ const newsletterHydrationSchema = z.object({
|
|
|
30027
30168
|
sourceRef: mailingListSignupBlockSourceRefSchema.nullable()
|
|
30028
30169
|
}),
|
|
30029
30170
|
z.object({
|
|
30030
|
-
tag: z.literal("signed-
|
|
30171
|
+
tag: z.literal("signed-source"),
|
|
30031
30172
|
sourceRef: z.object({
|
|
30032
30173
|
tag: z.literal("signed_source_ref"),
|
|
30033
30174
|
token: signedMailingListSourceTokenSchema
|
|
30034
30175
|
})
|
|
30035
30176
|
}),
|
|
30177
|
+
z.object({ tag: z.literal("demo") }),
|
|
30036
30178
|
z.object({ tag: z.literal("preview") }),
|
|
30037
30179
|
z.object({
|
|
30038
30180
|
tag: z.literal("unpublished-preview"),
|
|
@@ -30060,26 +30202,29 @@ z.object({
|
|
|
30060
30202
|
siteId: z.string().optional(),
|
|
30061
30203
|
apiBaseUrl: z.string().optional()
|
|
30062
30204
|
});
|
|
30063
|
-
function
|
|
30064
|
-
|
|
30065
|
-
const form = context?.tag === "configured" ? context.form : {
|
|
30205
|
+
function newsletterGlobalForm(context) {
|
|
30206
|
+
return context?.tag === "configured" ? context.form : {
|
|
30066
30207
|
fields: { preset: "emailOnly" },
|
|
30067
30208
|
includeOptionalPhone: false,
|
|
30068
30209
|
buttonLabel: "Subscribe",
|
|
30069
30210
|
successMessage: DEFAULT_MAILING_LIST_SUCCESS_MESSAGE,
|
|
30070
30211
|
privacyNote: null
|
|
30071
30212
|
};
|
|
30213
|
+
}
|
|
30214
|
+
function buildNewsletterDisplay(source) {
|
|
30215
|
+
const context = source.mailingList;
|
|
30216
|
+
const form = newsletterGlobalForm(context);
|
|
30072
30217
|
const assessment = assessMailingListTargeting(context, source.targeting ?? { mode: "default" });
|
|
30073
30218
|
const choices = resolveRuntimeChoices(assessment);
|
|
30074
30219
|
return {
|
|
30075
30220
|
kind: "newsletter-form",
|
|
30076
30221
|
...source.lookSlots ? { lookSlots: source.lookSlots } : {},
|
|
30077
|
-
availability: assessment.tag === "available" ? "ready" : "unavailable",
|
|
30222
|
+
availability: source.interactionContext?.kind === "demo" || assessment.tag === "available" ? "ready" : "unavailable",
|
|
30078
30223
|
className: source.className ?? null,
|
|
30079
30224
|
buttonLabel: form.buttonLabel,
|
|
30080
|
-
successMessage: form.successMessage,
|
|
30225
|
+
successMessage: source.interactionContext?.kind === "demo" ? NEWSLETTER_DEMO_MESSAGE : form.successMessage,
|
|
30081
30226
|
buttonVariant: source.buttonVariant ?? "primary",
|
|
30082
|
-
privacyNote: form.privacyNote,
|
|
30227
|
+
privacyNote: newsletterPrivacyNote(source.source, form.privacyNote),
|
|
30083
30228
|
fields: getGlobalFormFields(form, source),
|
|
30084
30229
|
choices
|
|
30085
30230
|
};
|
|
@@ -30100,12 +30245,13 @@ const newsletterFormBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
30100
30245
|
setupRevision: source.mailingList?.tag === "configured" ? source.mailingList.revision : null,
|
|
30101
30246
|
choiceProvider: targeting.mode === "custom" ? targeting.provider : null,
|
|
30102
30247
|
choicePresentation: presentation.tag,
|
|
30103
|
-
spamProtectionEnabled: source.spamProtectionEnabled
|
|
30248
|
+
spamProtectionEnabled: source.interactionContext?.kind === "demo" ? false : source.spamProtectionEnabled
|
|
30104
30249
|
}
|
|
30105
30250
|
};
|
|
30106
30251
|
}
|
|
30107
30252
|
});
|
|
30108
30253
|
function projectNewsletterFormHydrationTarget(source) {
|
|
30254
|
+
if (source.interactionContext?.kind === "demo") return { tag: "demo" };
|
|
30109
30255
|
switch (source.source) {
|
|
30110
30256
|
case "block": switch (source.newsletterBlockSubmission.tag) {
|
|
30111
30257
|
case "unpublished-form":
|
|
@@ -30123,8 +30269,9 @@ function projectNewsletterFormHydrationTarget(source) {
|
|
|
30123
30269
|
};
|
|
30124
30270
|
default: return assertNever$1(source.newsletterBlockSubmission);
|
|
30125
30271
|
}
|
|
30272
|
+
case "signed-hosted-booking":
|
|
30126
30273
|
case "signed-footer": return {
|
|
30127
|
-
tag: "signed-
|
|
30274
|
+
tag: "signed-source",
|
|
30128
30275
|
sourceRef: source.sourceRef
|
|
30129
30276
|
};
|
|
30130
30277
|
case "preview": return { tag: "preview" };
|
|
@@ -30166,6 +30313,10 @@ function parseRequiredMailingListSignedSourceToken(value) {
|
|
|
30166
30313
|
if (!parsed) throw new Error("Mailing-list signup signed source ref requires token");
|
|
30167
30314
|
return parsed;
|
|
30168
30315
|
}
|
|
30316
|
+
/** Hosted signup always explains preferences, alongside any owner-authored note. */
|
|
30317
|
+
function newsletterPrivacyNote(source, privacyNote) {
|
|
30318
|
+
return source !== "signed-hosted-booking" || privacyNote?.includes("Change your preferences or unsubscribe at any time.") ? privacyNote : [privacyNote, DEFAULT_MAILING_LIST_PRIVACY_NOTE].filter(Boolean).join(" ");
|
|
30319
|
+
}
|
|
30169
30320
|
//#endregion
|
|
30170
30321
|
//#region ../blocks/src/system/blocks/newsletter-signup.ts
|
|
30171
30322
|
const stackedComposition = composeFragments([{ fragment: newsletterCopyFragment }, { fragment: newsletterFormFragment }]);
|
|
@@ -30771,15 +30922,6 @@ const teamMembersBlockDefinition = {
|
|
|
30771
30922
|
stack: [when("content._effectiveLook", { not: true })(stackVariant), when("content._effectiveLook")(cardListVariant)],
|
|
30772
30923
|
...Object.fromEntries(arrangementOnlyKeys.map((key) => [key, cardListVariant]))
|
|
30773
30924
|
},
|
|
30774
|
-
arrangementOwnedFieldIds: [
|
|
30775
|
-
"layoutWidth",
|
|
30776
|
-
"thumbnailShape",
|
|
30777
|
-
"thumbnailPadding",
|
|
30778
|
-
"imageColSize",
|
|
30779
|
-
"stackImagePosition",
|
|
30780
|
-
"stackContentAlignment",
|
|
30781
|
-
"gap"
|
|
30782
|
-
],
|
|
30783
30925
|
variantMeaning: {
|
|
30784
30926
|
kind: "arrangement",
|
|
30785
30927
|
lookOnlyKeys: [...arrangementOnlyKeys]
|
|
@@ -31215,21 +31357,21 @@ const locationMapBlockDefinition = {
|
|
|
31215
31357
|
type: "boolean",
|
|
31216
31358
|
label: "Show opening hours",
|
|
31217
31359
|
defaultValue: true,
|
|
31218
|
-
ui: { intent: "
|
|
31360
|
+
ui: { intent: "behavior" }
|
|
31219
31361
|
}),
|
|
31220
31362
|
parseFieldDefinition({
|
|
31221
31363
|
id: "showAddressText",
|
|
31222
31364
|
type: "boolean",
|
|
31223
31365
|
label: "Show the address",
|
|
31224
31366
|
defaultValue: true,
|
|
31225
|
-
ui: { intent: "
|
|
31367
|
+
ui: { intent: "behavior" }
|
|
31226
31368
|
}),
|
|
31227
31369
|
parseFieldDefinition({
|
|
31228
31370
|
id: "showDirections",
|
|
31229
31371
|
type: "boolean",
|
|
31230
31372
|
label: "Show directions button",
|
|
31231
31373
|
defaultValue: true,
|
|
31232
|
-
ui: { intent: "
|
|
31374
|
+
ui: { intent: "behavior" }
|
|
31233
31375
|
}),
|
|
31234
31376
|
parseFieldDefinition({
|
|
31235
31377
|
id: "directionsLabel",
|
|
@@ -31238,7 +31380,7 @@ const locationMapBlockDefinition = {
|
|
|
31238
31380
|
defaultValue: LOCATION_MAP_DEFAULTS.directionsLabel,
|
|
31239
31381
|
maxLength: 60,
|
|
31240
31382
|
ui: {
|
|
31241
|
-
intent: "
|
|
31383
|
+
intent: "behavior",
|
|
31242
31384
|
visibleWhen: {
|
|
31243
31385
|
field: "showDirections",
|
|
31244
31386
|
equals: true
|
|
@@ -31250,7 +31392,7 @@ const locationMapBlockDefinition = {
|
|
|
31250
31392
|
type: "boolean",
|
|
31251
31393
|
label: "Show a wider area",
|
|
31252
31394
|
defaultValue: false,
|
|
31253
|
-
ui: { intent: "
|
|
31395
|
+
ui: { intent: "behavior" }
|
|
31254
31396
|
}),
|
|
31255
31397
|
parseFieldDefinition({
|
|
31256
31398
|
id: "googleMapsLabel",
|
|
@@ -31258,7 +31400,7 @@ const locationMapBlockDefinition = {
|
|
|
31258
31400
|
label: "Google Maps button label",
|
|
31259
31401
|
defaultValue: "Open in Google Maps",
|
|
31260
31402
|
maxLength: 60,
|
|
31261
|
-
ui: { intent: "
|
|
31403
|
+
ui: { intent: "behavior" }
|
|
31262
31404
|
}),
|
|
31263
31405
|
parseFieldDefinition({
|
|
31264
31406
|
id: "heightPx",
|
|
@@ -32120,10 +32262,6 @@ function normalizeBlockContent(definition, content) {
|
|
|
32120
32262
|
...Object.fromEntries(Object.entries(normalized).filter(([key]) => owned.has(key)))
|
|
32121
32263
|
};
|
|
32122
32264
|
}
|
|
32123
|
-
const REGISTRY_SYMBOL = Symbol.for("@riverbankcms/blocks/system/definitions");
|
|
32124
|
-
const isBlocksTestRuntime = typeof process !== "undefined" && typeof process.env !== "undefined" && process.env.RIVERBANK_BLOCKS_TEST === "1";
|
|
32125
|
-
const globalScope = globalThis;
|
|
32126
|
-
const blockStore = isBlocksTestRuntime ? /* @__PURE__ */ new Map() : globalScope[REGISTRY_SYMBOL] ?? (globalScope[REGISTRY_SYMBOL] = /* @__PURE__ */ new Map());
|
|
32127
32265
|
function ensureDefaults() {
|
|
32128
32266
|
ensureSystemBlockDefinitionsRegistered();
|
|
32129
32267
|
}
|
|
@@ -32155,4 +32293,4 @@ function listBlockDescriptors() {
|
|
|
32155
32293
|
}));
|
|
32156
32294
|
}
|
|
32157
32295
|
//#endregion
|
|
32158
|
-
export { RichText as $,
|
|
32296
|
+
export { RichText as $, pageTemplateFromEntry as $i, formattingTransforms as $n, lookSkinSlotTransform as $r, formatEventCompactDateRail as $t, buildOfferingsCatalogueListing as A, formatBookingPriceDisplay as Aa, parseFieldDefinition as Ai, bookingConsentCarrierSchema as An, heroCtaRowFragment as Ar, offeringsListingFor as At, buildEventCollectionListingDisplay as B, projectRepeaterGridLayout as Bi, contentTransforms as Bn, parseBackgroundContent as Br, buildEventListWeek as Bt, buildShopInteractiveIslandProps as C, getLocalScheduleDate as Ca, DEFAULT_MEDIA_FIELD_KINDS as Ci, getEventAvailability as Cn, blogFeaturedPostFragment as Cr, resolveEventRegistrationScopedEvents as Ct, passCardListContent as D, toBookingTimeZone as Da, builtInBlockKindsSchema as Di, groupPublicEventsByRun as Dn, testimonialsCarouselFragment as Dr, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as Dt, membershipClassesLabel as E, resolveBookingBusinessTimeZone as Ea, blockSectionDeclarationShape as Ei, blockSiteTermsSchema as En, formCopyFragment as Er, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as Et, projectRecurringSchedule as F, resolveExactOrFreePriceDisplay as Fa, NodeSchema as Fi, siteFooterManifest as Fn, defineFragment as Fr, ThemedButton as Ft, resolveCalendarReadProfile as G, resolveRepeaterGridColumnsForBreakpoint as Gi, resolveDateRuntimeContext as Gn, resolveBackgroundColorValue as Gr, formatEventPriceDisplay as Gt, eventCollectionHydrationSchema as H, buildRepeaterGridLayout as Hi, teamMemberBiography as Hn, parseRuntimeBackgroundContent as Hr, weekColumnDays as Ht, eventListingBlockDefinition as I, resolvePricingOptionsPriceDisplay as Ia, bindingSchema as Ii, siteHeaderManifest as In, boxStylesTransforms as Ir, ThemedButtonLink as It, CardListContentPart as J, augmentManifest as Ji, chromeLogoTransforms as Jn, BACKGROUND_POSITION_PRESET_VALUES as Jr, eventDateOptions as Jt, catalogueEventCardProps as K, resolveRepeaterGridRowFieldId as Ki, mediaTransforms as Kn, ctaButton as Kr, buildCalendarViewport as Kt, buildEventListingInteractiveIslandProps as L, formatCurrencyAmount as La, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as Li, composeHeaderSectionWrapperClassName as Ln, boxStyleClassNames as Lr, ThemedDownloadLink as Lt, eventCalendarBlockDefinition as M, publicEventPricingCurrency as Ma, validateManifestLookField as Mi, FEATURE_CARD_ICON_TREATMENTS as Mn, isBlockButtonRole as Mr, resolveOfferingsPreviewGroups as Mt, buildEventCalendarInteractiveIslandProps as N, publicEventPricingDisplay as Na, sdkBlockPresentationShape as Ni, resolveFeatureCardGeneratedIconSizePx as Nn, heroCopyFragment as Nr, resolveOfferingsRenderInput as Nt, offeringsPreviewBlockDefinition as O, toScheduledBookingDateTime as Oa, fieldSchema as Oi, publicEventsArraySchema as On, testimonialsHeadingFragment as Or, buildOfferingsPreviewListing as Ot, buildEventCalendarListingDisplay as P, publicEventPricingType as Pa, validateSdkBlockDeclaration as Pi, shouldReserveFeatureCardIconZone as Pn, bodyCopyFragment as Pr, ThemedAuthoredButton as Pt, MediaNodeServer as Q, loadedReadinessFact as Qi, uiTransforms as Qn, lookQuoteLimitTransform as Qr, formatEventClockLabel as Qt, buildEventCollectionDisplay as R, parseCurrencyCode as Ra, linkSchema as Ri, markEditableSurfaceForwarding as Rn, normalizeBoxStylesBorder as Rr, getIconComponent as Rt, buildProductListInteractiveIslandProps as S, getBookingLocalDateKey as Sa, plainTextToInlineText as Si, formatTotalCapacity as Sn, faqHeadingFragment as Sr, normalizeEventRegistrationPageSurfaceSubject as St, membershipCardListContent as T, parseLocalScheduleTime as Ta, blockCategoryEnum as Ti, isEventFull as Tn, formEmbedFragment as Tr, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as Tt, eventCollectionSourceSchemaShape as U, parseRepeaterGridInteger as Ui, teamMemberCardBiography as Un, resolveSectionSurfaceForeground as Ur, formatEventPrice as Ut, eventCollectionDisplaySchemaShape as V, projectRepeaterGridLayoutForRendering as Vi, parseTeamMemberSpecialties as Vn, parseBackgroundOverlay as Vr, eventListWeekDays as Vt, calendarWindowQuerySchema as W, resolveRepeaterGridColumnFieldId as Wi, readRuntimeNow as Wn, resolveSurfaceForegroundStyles as Wr, formatEventPriceAmount as Wt, resolveCardListSchedule as X, chosenString as Xi, staticHeaderChromeRuntime as Xn, lookCarouselRegionTransform as Xr, formatCalendarTitle as Xt, CardListLeadDate as Y, isRecord$5 as Yi, layoutTransforms as Yn, getAnchorClasses as Yr, eventLocalDateKey as Yt, selectCardListPresentation as Z, admitReadinessFacts as Zi, resolveHeroTitleLength as Zn, lookLeadSlotTransform as Zr, formatDate as Zt, productListBlockDefinition as _, formatDateRange as _a, MinusIcon as _i, resolveRuntimeEventDestination as _n, clsx as _r, previewStageSchema as _t, normalizeLocationMapSource as a, buildMailingListSignupBlockSourceRef as aa, buildGeneratedBlockIconRenderAssetLookupFromUnknown as ai, groupEventsByDate as an, defineInteractiveIslandMetaKeys as ar, resolveImageUrlWithContext as at, buildCheckoutInteractiveIslandProps as b, compareLocalScheduleDates as ba, isInlineTextEmpty as bi, canJoinEventWaitlistOnAnyMode as bn, cardFragment as br, eventCalendarListLayoutOptions as bt, sanitizeNewsletterSignupPublicContent as c, parseMailingListPlacementTargeting as ca, ArrowDownIcon as ci, getLocalMinuteOfDay as cn, defineProgressiveBlockRuntime as cr, getCurrentResolveImageUrlContext as ct, newsletterBlockSubmissionMessage as d, locationValueSchema as da, CirclePlusIcon as di, getDayOfWeek as dn, listLookSlot as dr, getCardOrientation as dt, unavailableReadinessFact as ea, asPartialObject as ei, formatEventDateParts as en, formatDate$1 as er, ImagePresets as et, giftingBlockDefinition as f, normalizeLocationAddressText as fa, ClockIcon as fi, getOrderedDayNames as fn, lookListPresentationSchemaShape as fr, getContainerClass as ft, productDetailBlockDefinition as g, formatDate$2 as ga, FileTextIcon as gi, isToday as gn, Grid as gr, bookingNowSchema as gt, cartBlockDefinition as h, mapDrawingSchema as ha, FileSpreadsheetIcon as hi, isSameCalendarDay as hn, standardAspectRatioOptions as hr, buildEventRegistrationInteractiveIslandProps as ht, normalizeLocationMapProps as i, resolveWholeSeriesBookingPhase as ia, when as ii, formatTime as in, createInteractiveIslandCodec as ir, resolveImageUrl as it, offeringsCatalogueShape as j, isPublicEventPricingOptionDisplayable as ja, parseFieldDefinitions as ji, blockBookingPaymentTermsSchema as jn, ctaRowFragment as jr, resolveOfferingsPreviewGroupCta as jt, publicRouteCandidatesSchema as k, toUtcIsoDateTimeString as ka, normalizeSelectSource as ki, blockBookingConsentSchema as kn, ctaCopyFragment as kr, normalizeOfferingsPreviewItemLimit as kt, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as l, sameMailingListPlacementTargeting as la, ChevronDownIcon as li, addDays as ln, listItemPresentation as lr, setContextResolveImageUrlContext as lt, checkoutBlockDefinition as m, publicLocationSchema as ma, FileAudioIcon as mi, getWeekCalendarDays as mn, itemRole as mr, eventRegistrationBlockDefinition as mt, listBlockDescriptors as n, nextLiveRunSessionStartMs as na, runTransforms as ni, formatEventNextDateFact as nn, buildFormInteractiveIslandProps as nr, computeMediaTransformStyle as nt, resolveLocationMapLocation as o, parseMailingListRuntimeContext as oa, parseBlockIconValue as oi, resolveEventTimeZone as on, createZodCodec as or, resolvePublicMediaUrl as ot, buildGiftingInteractiveIslandProps as p, projectPublicLocation as pa, FileArchiveIcon as pi, getWeekCalendarDayTuple as pn, resolvedItemSurfaceProps as pr, resolveEventSelection as pt, listingEventCardProps as q, resolveRepeaterGridSpanFieldId as qi, headerRuntimeTransforms as qn, standardImageShapeOptions as qr, eventCalendarWeekStart as qt, normalizeBlockContent as r, orderedLiveRunSessions as ra, el as ri, formatEventTimeRange as rn, buildInteractiveIslandProps as rr, resolveImageSourceSetWithContext as rt, newsletterSignupBlockDefinition as s, parseMailingListProviderScope as sa, resolveBlockIconRenderValue as si, getLocalDateKey as sn, defineClientOwnedBlockRuntime as sr, buildResolveImageUrlContext as st, getBlockDefinition as t, CANCELLED_SESSION_STATUS as ta, createTransformRegistry as ti, formatEventHourLabel as tn, formBlockDefinition as tr, MediaPlaceholder as tt, buildNewsletterFormInteractiveIslandProps as u, decideLocationSourcePermission as ua, CircleMinusIcon as ui, formatDateKey as un, listLookControl as ur, sanitizeHref as ut, shopBlockDefinition as v, formatDateTimeRange as va, PlusIcon as vi, formatBookingSchedulePresentation as vn, richTextFragment as vr, eventCalendarListGroupingDecision as vt, shopProductPresentation as w, parseBookingLocalDate as wa, PUBLIC_FILE_FIELD_KINDS as wi, getEventAvailabilityStatus as wn, singleButtonFragment as wr, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as wt, buildProductDetailInteractiveIslandProps as x, formatBookingCompactEnglishTime as xa, parseInlineTextFromUnknown as xi, formatEventRemainingPlaces as xn, faqAccordionFragment as xr, resolveEventCalendarReadPlan as xt, buildCartInteractiveIslandProps as y, inferSiteDateLocale as ya, inlineTextToPlainText as yi, browserReadAuthoritySchema as yn, headingFragment as yr, eventCalendarListLayoutCompatibleDisplayModeValues as yt, buildEventCollectionHydration as z, PUBLIC_DOWNLOAD_MEDIA_TYPES as zi, splitPositioningClasses as zn, resolveCardRoleForBoxStyles as zr, SpinnerNode as zt };
|