@riverbankcms/sdk 0.164.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/dist/_dts/{BlocksIslandsHydrator-CubPwupc.d.ts → BlocksIslandsHydrator-CdsSMQEv.d.ts} +1 -1
- package/dist/_dts/{Page-CDzsagB2.d.ts → Page-D6gp2Ipb.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-CPRQbRCI.d.ts → SdkPreviewMode-DNXAvnet.d.ts} +83 -71
- package/dist/_dts/{client-CbeYTSry.d.ts → client-BkkExozE.d.ts} +1 -1
- package/dist/_dts/{content-types--uYRIcIF.d.ts → content-types-CXNAD7ef.d.ts} +2 -2
- package/dist/_dts/{contracts-DJQYAOsv.d.ts → contracts-XRXhbLWP.d.ts} +4 -4
- package/dist/_dts/{footerPageOutline-CKkhBwgJ.d.ts → footerPageOutline-BP2bJYdY.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata--qd7NCIA.d.ts → generatePageMetadata-DcMtbztV.d.ts} +2 -2
- package/dist/_dts/{index-D_pQO-AS.d.ts → index-B4ozSzFP.d.ts} +35642 -35443
- package/dist/_dts/{index-DYQFmf--.d.ts → index-BdkHhyf8.d.ts} +1 -1
- package/dist/_dts/{index-BZE-1azr.d.ts → index-CQfJhOEA.d.ts} +2 -2
- package/dist/_dts/{index-BpEbwDM7.d.ts → index-CRRiddNp.d.ts} +4 -4
- package/dist/_dts/{index-CjdIn9-_.d.ts → index-C_3kdrUb.d.ts} +2 -2
- package/dist/_dts/{index-JS8WYgD3.d.ts → index-DAPTSmBM.d.ts} +401 -569
- package/dist/_dts/{index-DriYVLfT.d.ts → index-DKNEgSOS.d.ts} +2 -2
- package/dist/_dts/{index-wegfy7lf.d.ts → index-RXkE3a7M.d.ts} +3 -3
- package/dist/_dts/{loadContent-DUi94Qfk.d.ts → loadContent-B9vJMq3s.d.ts} +6 -6
- package/dist/_dts/{resolvePageContent-JDE0ry6T.d.ts → resolvePageContent-DIQyYUi-.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +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 +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/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 +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-W40f2olO.d.ts → types-BDF73NzM.d.ts} +2 -2
- package/dist/_dts/{types-DiciZDrk.d.ts → types-Cl0nP6al.d.ts} +3 -3
- package/dist/_dts/{types-DubJnBnI.d.ts → types-mstFvhK4.d.ts} +7 -7
- package/dist/_dts/{validation-BF4_zNkR.d.ts → validation-DVWqSvjK.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-64hFxF02.mjs → BlocksIslandsHydrator-CzKpH9Pm.mjs} +20 -20
- package/dist/client/{BookingMailingListNote-CSQyFm9J.mjs → BookingMailingListNote-rUqsBN7L.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-Bvkx8Z7Y.mjs → CalendarNavigationChevron-YGzw2IPB.mjs} +6 -6
- package/dist/client/{CheckboxChoice-3PhxDxgR.mjs → CheckboxChoice-DlTC4J2a.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-pt2xXBQp.mjs → DemoBookingPortalAccess-D2LyS_Bi.mjs} +5 -5
- package/dist/client/{DemoPortalSignInLink-Qw780EfW.mjs → DemoPortalSignInLink-BaFg2Uit.mjs} +1 -1
- package/dist/client/{EventCalendar.client-DWoboRW5.mjs → EventCalendar.client-tRrhPscX.mjs} +17 -10
- package/dist/client/{EventCombined.client-C98ucpcP.mjs → EventCombined.client-6cfAVtnZ.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-DHRlFfkp.mjs → EventEmbeddedCheckoutStep-CDNUpI0S.mjs} +2 -2
- package/dist/client/{EventItem-hrSyTApW.mjs → EventItem-dILw2PN_.mjs} +11 -5
- package/dist/client/{EventListWeekNavigation-C3t7H13W.mjs → EventListWeekNavigation-ClgLtjNY.mjs} +1 -1
- package/dist/client/{EventListing.client-Cp11sBX_.mjs → EventListing.client-BNueAHmU.mjs} +3 -3
- package/dist/client/{EventListing.view-Dd5QHIAf.mjs → EventListing.view-DtVbKVkt.mjs} +56 -12
- package/dist/client/{EventRegistrationPayment-ByT88VHR.mjs → EventRegistrationPayment-CzkG0NSJ.mjs} +10 -10
- package/dist/client/{LocationMapActions-BsepG5Vv.mjs → LocationMapActions-zWQsJhE5.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-R4JMT4yd.mjs → MapDrawingSvg-D1AO_o4h.mjs} +1 -1
- package/dist/client/{Page-Dub71o3c.mjs → Page-DUr2YhFR.mjs} +1521 -235
- package/dist/client/{ProtectedSubmitButton-DGbgGvdh.mjs → ProtectedSubmitButton-2fJqT_NR.mjs} +1 -1
- package/dist/client/{SpamProtectionWidget-CRsKTQV-.mjs → SpamProtectionWidget-CCF6YLUX.mjs} +5 -3
- package/dist/client/{StepIndicator-Bp7MyutT.mjs → StepIndicator-udNHcpOT.mjs} +2 -2
- package/dist/client/{TabBarFragment-C4WJyybx.mjs → TabBarFragment-C_kt-PXh.mjs} +1 -1
- package/dist/client/{ThemedButton-BGVwNwE-.mjs → ThemedButton-Cfbo1bfh.mjs} +1 -1
- package/dist/client/{accordion-vCG_JC5t.mjs → accordion-3CYNWzTS.mjs} +1 -1
- package/dist/client/{altchaProtection-BWchRM3v.mjs → altchaProtection-DjIV9A5n.mjs} +1 -1
- package/dist/client/{booking-form.client-CHTbcZJM.mjs → booking-form.client-BSbWgLyx.mjs} +13 -13
- package/dist/client/{bookingForm-BxbUbzUr.mjs → bookingForm-2MoFBWSt.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-FM1mkkL0.mjs → carousel-Cu5mcpO-.mjs} +2 -2
- package/dist/client/{carousel.client-ChoLiWwD.mjs → carousel.client-CQLV8_Al.mjs} +1 -1
- package/dist/client/{cart-BDFhbh9j.mjs → cart-CDc6x9cR.mjs} +3 -3
- package/dist/client/{cart.client-x3HOke6T.mjs → cart.client-BWS2r5Ef.mjs} +1 -1
- package/dist/client/{checkout-BibhwnTd.mjs → checkout-CkxPqSwD.mjs} +3 -3
- package/dist/client/{checkout.client-CE4jUi0G.mjs → checkout.client-DJfomKQc.mjs} +1 -1
- package/dist/client/client.mjs +2 -2
- package/dist/client/{context-BNAM7NsW.mjs → context-CBV21-9L.mjs} +1 -1
- package/dist/client/{cta-ChiN1Vgg.mjs → cta-Bw-al3cs.mjs} +26 -2
- package/dist/client/{dateFormatting-QwBSo0hK.mjs → dateFormatting-CFIUJ4Uf.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-NwKJk6gn.mjs → demoPortalMagicLink-D0veHJyi.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-D4zqEBDl.mjs → enhanceHeaderSection-CEqqq92r.mjs} +3 -3
- package/dist/client/{event-details.client-jFyFjOIC.mjs → event-details.client-Bk2kQ7ax.mjs} +1 -1
- package/dist/client/{event-registration.client-BK_jVv3R.mjs → event-registration.client-QMqtIywj.mjs} +23 -14
- package/dist/client/{eventCalendar-DSkzejQh.mjs → eventCalendar-BTDTMosr.mjs} +4 -4
- package/dist/client/{eventCombined-BG-BEaYh.mjs → eventCombined-BC7a709c.mjs} +4 -4
- package/dist/client/{eventDetails-BhIwXAKe.mjs → eventDetails-DL08GpUc.mjs} +2 -2
- package/dist/client/{eventListing-DQtyO1Xj.mjs → eventListing-BfzuEQp_.mjs} +4 -4
- package/dist/client/{eventRegistration-DRTz8X0M.mjs → eventRegistration-Lfyzh1Ab.mjs} +4 -4
- package/dist/client/{form-GXqjObPC.mjs → form-L-xZOBUS.mjs} +3 -3
- package/dist/client/{form.client-CoKNba2e.mjs → form.client-BtpK3TZW.mjs} +6 -6
- package/dist/client/{form.parts-magB_epJ.mjs → form.parts-Djos5Un4.mjs} +3 -3
- package/dist/client/{formatDate-BiloOyjS.mjs → formatDate-DGmrm7YB.mjs} +1 -1
- package/dist/client/gifting/client.mjs +5 -5
- package/dist/client/{headerSection-BMQCPHT3.mjs → headerSection-f16OGkz-.mjs} +2 -2
- package/dist/client/{mediaAssets-BX-vWwQc.mjs → mediaAssets-DHAmrVIi.mjs} +1 -1
- package/dist/client/{mediaContext-CdqGYlWl.mjs → mediaContext-CwT6ZOm7.mjs} +1 -1
- package/dist/client/{newsletter-form.client-8orCez1z.mjs → newsletter-form.client-DpHNZc7k.mjs} +8 -8
- package/dist/client/{newsletter-form.parts-D8NgHY_F.mjs → newsletter-form.parts-CLGH20PL.mjs} +2 -2
- package/dist/client/{newsletterForm-BhBNsS3n.mjs → newsletterForm-BEU0Ocu9.mjs} +3 -3
- package/dist/client/{noop-C2vZse15.mjs → noop-CQU7tiMg.mjs} +8 -4
- package/dist/client/portal/client.mjs +13 -13
- package/dist/client/{product-detail.client-CQ0k0fbH.mjs → product-detail.client-Be-om1BT.mjs} +1 -1
- package/dist/client/{product-list.client-Xlr1P0x9.mjs → product-list.client-DR7hD5Vs.mjs} +1 -1
- package/dist/client/{productDetail-BsCao6X4.mjs → productDetail-BD42UOmG.mjs} +3 -3
- package/dist/client/{productList-Cc-PmbEe.mjs → productList-CSk8sXCl.mjs} +3 -3
- package/dist/client/{propsDecoder-DikkDJ9x.mjs → propsDecoder-C_Y6VYnF.mjs} +3 -3
- package/dist/client/{purchase-BMsWpx8y.mjs → purchase-BV5xfaZH.mjs} +1 -1
- package/dist/client/{registry.server-BpLZo3bC.mjs → registry.server-CIKtTsCl.mjs} +189 -162
- package/dist/client/rendering/client.mjs +27 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +7 -7
- package/dist/client/{richText-coerce-WuMYrBm3.mjs → richText-coerce-spWtx86G.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DNx6b07x.mjs → routeIslandApiConfig-CROHPlYS.mjs} +1 -1
- package/dist/client/{schema-DMUkBtIO.mjs → schema-BdSglH2X.mjs} +189 -20
- package/dist/client/{shop-DyXtB5TD.mjs → shop-DscvMz86.mjs} +3 -3
- package/dist/client/{shop-commerce-xjWH7-Ym.mjs → shop-commerce-CDUohm_2.mjs} +11 -11
- package/dist/client/{shop-commerce-store-CbBsS1kD.mjs → shop-commerce-store-B9nw4lRP.mjs} +1 -1
- package/dist/client/{shop.client-QOKqQPgK.mjs → shop.client-M3kNsVPi.mjs} +12 -12
- package/dist/client/{shop.interactive-BQdm441g.mjs → shop.interactive-BGmkdIAZ.mjs} +251 -24
- package/dist/client/{shopShared-CyW6MU48.mjs → shopShared-BdWp6LHa.mjs} +2 -2
- package/dist/client/{site-styles-BLHYJ8S7.mjs → site-styles-CWHmlVT5.mjs} +2612 -448
- package/dist/client/spam-protection.mjs +2 -2
- package/dist/client/{timetableModel-BgdkhRuA.mjs → timetableModel-Dynh5-j4.mjs} +10 -10
- package/dist/client/{useAvailableSlots-wmdo6uZ8.mjs → useAvailableSlots-Cw9paRPY.mjs} +3 -3
- package/dist/client/{useBookingNowIso-CUExAee1.mjs → useBookingNowIso-C9SF2rC6.mjs} +1 -1
- package/dist/client/{useDiscountApply-BRM-OoTN.mjs → useDiscountApply-B-QJfBg0.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-BEIvL31G.mjs → useDiscountCodeUi-Uvum8q9d.mjs} +1 -1
- package/dist/client/{useEventPagination-Dk3g64we.mjs → useEventPagination-BfM3xk6j.mjs} +9 -156
- package/dist/client/{view-BnaOmrap.mjs → view-DXOuduIr.mjs} +4 -4
- package/dist/client/{view-vhKGFfC3.mjs → view-DlkCDfuN.mjs} +45 -32
- package/dist/client/{wizardSteps-xqU4q63H.mjs → wizardSteps-DManVJpc.mjs} +49 -39
- package/dist/preview-next/before-render.mjs +2 -2
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-43wIAWr4.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-C3AQVxQt.mjs → PreviewEditorSidebar-DEP3xD9K.mjs} +3566 -3197
- package/dist/preview-next/client/{PreviewEditorUI-C-1zDCR_.mjs → PreviewEditorUI-CxwlLBGw.mjs} +577 -172
- package/dist/preview-next/client/{SdkPreviewModeRuntime-C6Rhm2NQ.mjs → SdkPreviewModeRuntime-Cpe-XP8e.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-B47yHFL0.mjs → SdkPreviewModeRuntime-QDkMPASV.mjs} +3811 -4882
- package/dist/preview-next/client/{siteStyleAccess-BiSyYyyr.mjs → SiteChromeCustomizeButton-1JaoGOKX.mjs} +8506 -13317
- package/dist/preview-next/client/{ThemedButton-g7NPrsGp.mjs → ThemedButton-Dc6aJ34Z.mjs} +214 -23
- 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-Cjwxv90x.mjs → previewChromeSurface-yuwnDP3B.mjs} +49 -6
- package/dist/preview-next/client/{previewAuthStore-By_zfrS5.mjs → previewSidebarNavigation-AXUj9-qQ.mjs} +205988 -193500
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-BG2HYvQj.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-D5tHZEz5.mjs → route-contract-BBAJjFIz.mjs} +11 -8
- 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-Iy7g11iP.mjs → Block.shared-ClFI3qpX.mjs} +4 -4
- package/dist/server/{bindings-BVJGgUT0.mjs → bindings-Bi8EoRZD.mjs} +2 -2
- package/dist/server/{client-CiKaE8ms.mjs → client-DfMDbZ41.mjs} +2 -2
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{effectiveNavLinkStyle-EDSdd_oK.mjs → effectiveNavLinkStyle-BHIYPVG1.mjs} +2353 -214
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-BuintpdO.mjs → loadContent-dEEhQxL7.mjs} +4 -4
- package/dist/server/loadPage-CnVB-aeL.mjs +2 -0
- package/dist/server/{loadPage-Dk4wea8M.mjs → loadPage-DBFBad8A.mjs} +2 -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-BDiQWM7D.mjs → overrideResolution-BIJbiXYc.mjs} +1 -1
- package/dist/server/{overrides-DVemf-GV.mjs → overrides-DhF87Vsd.mjs} +294 -103
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-DubLNgRH.mjs → prebuild-DaemmWQL.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Bnbwoe5n.mjs → prefetchBlockData-FwcsT5H2.mjs} +293 -90
- package/dist/server/{publicProducts-D3Fc5TKk.mjs → publicProducts-Bz8loTRn.mjs} +13 -10
- package/dist/server/{registry-zjd1P2Dl.mjs → registry-Cdvz1OtL.mjs} +499 -374
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-CZJ--nH6.mjs → resolveBlockData-CLpAJWWf.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-BlTWmTSl.mjs → schema-uSA_x1Zh.mjs} +189 -20
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-yHytcXIB.mjs → site-styles-CntHn2KI.mjs} +55 -30
- package/dist/server/{siteChromeOverlayClearance-D0uCNZ7E.mjs → siteChromeOverlayClearance-DqP40Ka0.mjs} +2 -2
- package/dist/server/{src-cbbK3Bho.mjs → src-DsYPhTbs.mjs} +1009 -25
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-BdY8lP-K.mjs → themeAdmission-CSknYpxk.mjs} +2 -2
- package/dist/server/{validation-CGH-Xs4E.mjs → validation-DYxhLzqQ.mjs} +2 -2
- package/dist/server/{version-DoOG6F13.mjs → version-Beu4q-Gv.mjs} +1 -1
- package/dist/styles/index.css +914 -10
- package/package.json +1 -1
- package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +0 -1
- package/dist/preview-next/client/spinner-DnWpeDp2.mjs +0 -67
- package/dist/server/loadPage-BwjncpJf.mjs +0 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { d as formatDateKey, l as buildCalendarViewport } from "./src-1PJxc8KO.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { b as formatCurrencyAmount } from "./purchase-
|
|
5
|
-
import { c as assertNever$1 } from "./src-VIsPY-kw.mjs";
|
|
6
|
-
import { $r as
|
|
7
|
-
import { A as eventScheduleScopeValues, At as resolveBookingTimeZoneId, B as normalizeIdList, C as eventCalendarVariantMeaning, D as isEventCalendarListLayout, F as normalizeEventStaffMemberId, H as publicEventDestinationSchema, L as normalizeEventSurfacePresetsCsv, N as normalizeEventCategoryIdsCsv, Nt as toUtcIsoDateTimeString, Ot as parseUtcIsoDateTimeString, P as normalizeEventScheduleScope, R as normalizeEventSurfaceScope, Tt as getLocalScheduleDate, U as publicEventLoaderQuerySchemaShape, W as publicEventSchema, _t as inferSiteDateLocale, bt as buildBookingUtcDateWindow, dt as formatDateRange, j as eventSurfaceScopeValues, k as resolveEventCalendarReadPlan, kt as resolveBookingBusinessTimeZone, mt as formatTime, n as blockSiteTermsSchema, p as calendarWindowPageSchema, w as eventListArrangementValues, y as eventCalendarListGroupingDecision, z as normalizeEventVenueId } from "./noop-
|
|
8
|
-
import {
|
|
9
|
-
import { C as clsx, g as ExternalLinkIcon, i as ThemedButtonLink, n as ThemedAuthoredButton } from "./ThemedButton-
|
|
10
|
-
import { n as getCurrentResolveImageUrlContext } from "./mediaContext-
|
|
2
|
+
import { d as formatDateKey, l as buildCalendarViewport, r as groupItemsByDate } from "./src-1PJxc8KO.mjs";
|
|
3
|
+
import { At as assertNever, Nr as err, Pr as ok, V as cardRoleSchema, Yt as toNonEmptyReadonlyArray, _r as parseContentVersionId, br as parseEventSeriesId } from "./schema-BdSglH2X.mjs";
|
|
4
|
+
import { b as formatCurrencyAmount } from "./purchase-BV5xfaZH.mjs";
|
|
5
|
+
import { c as assertNever$2, t as assertNever$1 } from "./src-VIsPY-kw.mjs";
|
|
6
|
+
import { $r as parseNewsletterListId, Ar as defineProgressiveBlockRuntime, Bt as registrationDisplaySchema, Cr as createInteractiveIslandCodec, Dr as resolveEventRegistrationScopedEvents, Fr as lookListPresentationSchemaShape, Gr as parseMailingListRuntimeContext, H as findPreSelectedEvent, Ht as shownVenue, It as toRegistrationEvents, Jr as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, Jt as MediaPlaceholder, Kt as RichText, Lt as toWholeSeriesRegistrationEvent, Mr as listItemPresentation, Nn as groupPublicEventsByRun, Or as createZodCodec, Pr as listLookSlot, Qr as parseMailchimpInterestId, Qt as renderVideo, Rt as toWholeSeriesRegistrationEvents, Sr as buildInteractiveIslandProps, Tn as formatRemainingPlaces, Tr as eventRegistrationPageSurfaceSubjectSchema, Tt as withOccurrenceTitle, Ut as browserReadAuthoritySchema, Vr as nextLiveRunSessionStartMs, Vt as resolveRegistrationDisplay, W as resolveEventRequiresPayment, Wr as resolveWholeSeriesRunLifecycle, Xr as parseBrevoListId, Xt as mediaImageHostProps, Yt as computeMediaTransformStyle, Zr as parseMailchimpAudienceId, Zt as renderAudio, _t as formatRegistrationSchedule, c as registrationStepLabelContext, cn as eventDateOptions, cr as columnOptionSchema, dr as eventCalendarDisplayModeSchema, ei as formatBookingPriceDisplay, fr as eventLayoutSchema, gr as weekStartSchema, hr as registrationButtonVariantSchema, ii as publicEventPricingDisplay, jn as selectEventCapacitySource, jr as isDecodeSuccess, kr as defineClientOwnedBlockRuntime, ln as eventLocalDateKey, lr as eventButtonVariantSchema, mr as previewStageSchema, n as getEventSelectionMode, nn as resolveMediaNodeResponsiveImage, o as registrationRoute, on as eventCalendarWeekStart, or as bookingNowSchema, p as isRegistrationLocked, pn as formatEventCompactDateRail, pr as filterAutoShowSchema, pt as formatBookingWhen, qr as DEFAULT_MAILING_LIST_PRIVACY_NOTE, qt as ImagePresets, s as registrationStepLabel, sn as eventDateLocale, sr as calendarTabViewsSchema, t as REGISTRATION_STEP_LABELS, ti as formatEventPricing, ur as eventCalendarDefaultViewSchema, vr as blockButtonRoleSchema, wr as defineInteractiveIslandMetaKeys, xn as resolveRuntimeEventDestination, xr as resolveDateRuntimeContext, zt as placesLeftLabel } from "./wizardSteps-DManVJpc.mjs";
|
|
7
|
+
import { A as eventScheduleScopeValues, At as resolveBookingTimeZoneId, B as normalizeIdList, C as eventCalendarVariantMeaning, D as isEventCalendarListLayout, Et as parseBookingLocalDate, F as normalizeEventStaffMemberId, H as publicEventDestinationSchema, L as normalizeEventSurfacePresetsCsv, N as normalizeEventCategoryIdsCsv, Nt as toUtcIsoDateTimeString, Ot as parseUtcIsoDateTimeString, P as normalizeEventScheduleScope, R as normalizeEventSurfaceScope, Tt as getLocalScheduleDate, U as publicEventLoaderQuerySchemaShape, W as publicEventSchema, _t as inferSiteDateLocale, bt as buildBookingUtcDateWindow, dt as formatDateRange, j as eventSurfaceScopeValues, k as resolveEventCalendarReadPlan, kt as resolveBookingBusinessTimeZone, mt as formatTime, n as blockSiteTermsSchema, p as calendarWindowPageSchema, ut as formatDate, w as eventListArrangementValues, y as eventCalendarListGroupingDecision, z as normalizeEventVenueId } from "./noop-CQU7tiMg.mjs";
|
|
8
|
+
import { y as resolveModeArrangement } from "./site-styles-CWHmlVT5.mjs";
|
|
9
|
+
import { C as clsx, g as ExternalLinkIcon, i as ThemedButtonLink, n as ThemedAuthoredButton } from "./ThemedButton-Cfbo1bfh.mjs";
|
|
10
|
+
import { n as getCurrentResolveImageUrlContext } from "./mediaContext-CwT6ZOm7.mjs";
|
|
11
11
|
import { n as getCreditProductCreditUnit, t as deriveCreditProductLabels } from "./creditProducts-BOWi1QLp.mjs";
|
|
12
12
|
import "react";
|
|
13
13
|
import { z } from "zod";
|
|
@@ -608,6 +608,8 @@ function buildEventListWeek(anchor, startOfWeek, timeZone) {
|
|
|
608
608
|
timeZone
|
|
609
609
|
});
|
|
610
610
|
return {
|
|
611
|
+
/** The seven civil days, as date keys in week order. */
|
|
612
|
+
days: viewport.days.map(formatDateKey),
|
|
611
613
|
title: formatDateRange({
|
|
612
614
|
kind: "civil",
|
|
613
615
|
value: viewport.days[0]
|
|
@@ -630,6 +632,70 @@ function eventListWindowEvents(events, window) {
|
|
|
630
632
|
return instant >= start && instant <= end;
|
|
631
633
|
});
|
|
632
634
|
}
|
|
635
|
+
/** Server and client describe the shown week the same way, from the same inputs. */
|
|
636
|
+
function eventListWeekDays(week, today, timeZone) {
|
|
637
|
+
return {
|
|
638
|
+
days: week.days,
|
|
639
|
+
today: formatDateKey(today),
|
|
640
|
+
timeZone
|
|
641
|
+
};
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* All seven days of the shown week, in week order and including empty ones.
|
|
645
|
+
* A session goes under the day it starts on in its own zone, the day its tile
|
|
646
|
+
* time describes. One whose own date falls outside the week (only possible in
|
|
647
|
+
* another zone) goes under its day in the site zone, so it still shows.
|
|
648
|
+
* Sessions arrive in start order, so with more pages to load a day is only
|
|
649
|
+
* known to be empty when a later day already has a session.
|
|
650
|
+
*/
|
|
651
|
+
function weekColumnDays(week, events, allLoaded) {
|
|
652
|
+
const siteDay = groupItemsByDate(events, {
|
|
653
|
+
getStartsAt: (event) => event.startsAt,
|
|
654
|
+
getTimeZone: () => week.timeZone
|
|
655
|
+
});
|
|
656
|
+
const siteKey = new Map([...siteDay].flatMap(([key, items]) => items.map((item) => [item, key])));
|
|
657
|
+
const columnKey = (event) => {
|
|
658
|
+
const own = eventLocalDateKey(event);
|
|
659
|
+
return week.days.includes(own) ? own : siteKey.get(event);
|
|
660
|
+
};
|
|
661
|
+
const options = eventDateOptions({
|
|
662
|
+
siteTimeZone: week.timeZone,
|
|
663
|
+
timeZone: week.timeZone
|
|
664
|
+
});
|
|
665
|
+
const lastLoaded = events.map(columnKey).filter((key) => key !== void 0).sort().at(-1);
|
|
666
|
+
return week.days.map((dateKey) => {
|
|
667
|
+
const date = {
|
|
668
|
+
kind: "civil",
|
|
669
|
+
value: parseBookingLocalDate(dateKey)
|
|
670
|
+
};
|
|
671
|
+
const dayEvents = events.filter((event) => columnKey(event) === dateKey).sort((left, right) => new Date(left.startsAt).getTime() - new Date(right.startsAt).getTime());
|
|
672
|
+
return {
|
|
673
|
+
dateKey,
|
|
674
|
+
isToday: dateKey === week.today,
|
|
675
|
+
label: {
|
|
676
|
+
weekday: formatDate(date, options, {
|
|
677
|
+
date: "omit",
|
|
678
|
+
weekday: "short",
|
|
679
|
+
year: "omit"
|
|
680
|
+
}),
|
|
681
|
+
fullWeekday: formatDate(date, options, {
|
|
682
|
+
date: "omit",
|
|
683
|
+
weekday: "long",
|
|
684
|
+
year: "omit"
|
|
685
|
+
}),
|
|
686
|
+
day: formatDate(date, options, {
|
|
687
|
+
date: "omit",
|
|
688
|
+
day: "numeric",
|
|
689
|
+
year: "omit"
|
|
690
|
+
})
|
|
691
|
+
},
|
|
692
|
+
sessions: dayEvents.length > 0 ? {
|
|
693
|
+
kind: "some",
|
|
694
|
+
events: dayEvents
|
|
695
|
+
} : allLoaded || lastLoaded !== void 0 && dateKey < lastLoaded ? { kind: "none" } : { kind: "unknown" }
|
|
696
|
+
};
|
|
697
|
+
});
|
|
698
|
+
}
|
|
633
699
|
/**
|
|
634
700
|
* Canonical responsive ladder for a user-configured column count: 1 column at
|
|
635
701
|
* base, 2 from `sm`, 3 from `lg` (when the count allows), and the full count
|
|
@@ -753,6 +819,7 @@ function getCardOrientation(layout) {
|
|
|
753
819
|
case "grid": return "vertical";
|
|
754
820
|
case "ledger":
|
|
755
821
|
case "day-groups":
|
|
822
|
+
case "week-columns":
|
|
756
823
|
case "compact": return "vertical";
|
|
757
824
|
}
|
|
758
825
|
}
|
|
@@ -1189,6 +1256,154 @@ function canonicalEventSeriesScope(seriesIds) {
|
|
|
1189
1256
|
return seriesIds == null ? null : [...new Set(seriesIds.split(",").filter(Boolean))].sort().join(",");
|
|
1190
1257
|
}
|
|
1191
1258
|
//#endregion
|
|
1259
|
+
//#region ../blocks/src/system/runtime/hooks/loadStateError.ts
|
|
1260
|
+
function toError(error, fallbackMessage) {
|
|
1261
|
+
return error instanceof Error ? error : new Error(fallbackMessage);
|
|
1262
|
+
}
|
|
1263
|
+
//#endregion
|
|
1264
|
+
//#region ../blocks/src/system/runtime/hooks/useEventPagination.state.ts
|
|
1265
|
+
function createInitialEventPaginationLoadState(events, scope) {
|
|
1266
|
+
return {
|
|
1267
|
+
kind: "ready",
|
|
1268
|
+
requestId: 0,
|
|
1269
|
+
page: {
|
|
1270
|
+
scope,
|
|
1271
|
+
events,
|
|
1272
|
+
hasMore: hasMoreEventPages(events, scope.pageSize)
|
|
1273
|
+
}
|
|
1274
|
+
};
|
|
1275
|
+
}
|
|
1276
|
+
function eventPaginationLoadReducer(state, action) {
|
|
1277
|
+
switch (action.type) {
|
|
1278
|
+
case "started": return {
|
|
1279
|
+
kind: "loading",
|
|
1280
|
+
requestId: state.requestId + 1,
|
|
1281
|
+
operation: action.operation
|
|
1282
|
+
};
|
|
1283
|
+
case "succeeded": return state.kind === "loading" && state.requestId === action.requestId ? {
|
|
1284
|
+
kind: "ready",
|
|
1285
|
+
requestId: state.requestId,
|
|
1286
|
+
page: acceptEventPage(state.operation, action.events)
|
|
1287
|
+
} : state;
|
|
1288
|
+
case "failed": return state.kind === "loading" && state.requestId === action.requestId ? {
|
|
1289
|
+
...state,
|
|
1290
|
+
kind: "error",
|
|
1291
|
+
error: action.error
|
|
1292
|
+
} : state;
|
|
1293
|
+
case "synced": return {
|
|
1294
|
+
...createInitialEventPaginationLoadState(action.events, action.scope),
|
|
1295
|
+
requestId: state.requestId + 1
|
|
1296
|
+
};
|
|
1297
|
+
default: return assertNever$1(action);
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
function eventPageOperationScope(operation) {
|
|
1301
|
+
switch (operation.kind) {
|
|
1302
|
+
case "replace": return operation.scope;
|
|
1303
|
+
case "append": return operation.page.scope;
|
|
1304
|
+
default: return assertNever$1(operation);
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
function eventPageOperationQuery(operation) {
|
|
1308
|
+
switch (operation.kind) {
|
|
1309
|
+
case "replace": return operation.scope.query;
|
|
1310
|
+
case "append": return operation.query;
|
|
1311
|
+
default: return assertNever$1(operation);
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
function acceptEventPage(operation, events) {
|
|
1315
|
+
const scope = eventPageOperationScope(operation);
|
|
1316
|
+
const hasMore = hasMoreEventPages(events, scope.pageSize);
|
|
1317
|
+
switch (operation.kind) {
|
|
1318
|
+
case "replace": return {
|
|
1319
|
+
scope,
|
|
1320
|
+
events,
|
|
1321
|
+
hasMore
|
|
1322
|
+
};
|
|
1323
|
+
case "append": return {
|
|
1324
|
+
scope,
|
|
1325
|
+
events: mergeEventPaginationEvents(operation.page.events, events),
|
|
1326
|
+
hasMore
|
|
1327
|
+
};
|
|
1328
|
+
default: return assertNever$1(operation);
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
/** Retry consumes the recorded operation. Load more is possible only from an accepted page. */
|
|
1332
|
+
function planEventPageOperation(state, scope, intent) {
|
|
1333
|
+
if (scope.query.seriesIds === "") return null;
|
|
1334
|
+
switch (intent) {
|
|
1335
|
+
case "replace": return {
|
|
1336
|
+
kind: "replace",
|
|
1337
|
+
scope
|
|
1338
|
+
};
|
|
1339
|
+
case "retry": return state.kind === "error" && eventPageOperationScope(state.operation).key === scope.key ? state.operation : null;
|
|
1340
|
+
case "append": {
|
|
1341
|
+
if (state.kind !== "ready" || state.page.scope.key !== scope.key || !state.page.hasMore) return null;
|
|
1342
|
+
const cursor = state.page.events.at(-1);
|
|
1343
|
+
return {
|
|
1344
|
+
kind: "append",
|
|
1345
|
+
page: state.page,
|
|
1346
|
+
query: {
|
|
1347
|
+
...scope.query,
|
|
1348
|
+
afterStartsAt: cursor?.startsAt,
|
|
1349
|
+
afterId: cursor?.occurrenceId
|
|
1350
|
+
}
|
|
1351
|
+
};
|
|
1352
|
+
}
|
|
1353
|
+
default: return assertNever$1(intent);
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
/** A changed scope is pending even before the effect starts its replacement request. */
|
|
1357
|
+
function getEventPaginationView(state, scope) {
|
|
1358
|
+
if ((state.kind === "ready" ? state.page.scope : eventPageOperationScope(state.operation)).key !== scope.key) return {
|
|
1359
|
+
events: [],
|
|
1360
|
+
loading: true,
|
|
1361
|
+
error: null,
|
|
1362
|
+
hasMore: false
|
|
1363
|
+
};
|
|
1364
|
+
switch (state.kind) {
|
|
1365
|
+
case "ready": return {
|
|
1366
|
+
...state.page,
|
|
1367
|
+
loading: false,
|
|
1368
|
+
error: null
|
|
1369
|
+
};
|
|
1370
|
+
case "loading": return {
|
|
1371
|
+
...getOperationPage(state.operation),
|
|
1372
|
+
loading: true,
|
|
1373
|
+
error: null
|
|
1374
|
+
};
|
|
1375
|
+
case "error": return {
|
|
1376
|
+
...getOperationPage(state.operation),
|
|
1377
|
+
loading: false,
|
|
1378
|
+
error: state.error
|
|
1379
|
+
};
|
|
1380
|
+
default: return assertNever$1(state);
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
function getOperationPage(operation) {
|
|
1384
|
+
switch (operation.kind) {
|
|
1385
|
+
case "replace": return {
|
|
1386
|
+
events: [],
|
|
1387
|
+
hasMore: false
|
|
1388
|
+
};
|
|
1389
|
+
case "append": return operation.page;
|
|
1390
|
+
default: return assertNever$1(operation);
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
function getEventIdentity(event) {
|
|
1394
|
+
return event.occurrenceId || event.id;
|
|
1395
|
+
}
|
|
1396
|
+
function mergeEventPaginationEvents(existingEvents, newEvents) {
|
|
1397
|
+
const existingIds = new Set(existingEvents.map(getEventIdentity));
|
|
1398
|
+
return [...existingEvents, ...newEvents.filter((event) => !existingIds.has(getEventIdentity(event)))];
|
|
1399
|
+
}
|
|
1400
|
+
function toEventPaginationLoadError(error) {
|
|
1401
|
+
return toError(error, "Unknown error");
|
|
1402
|
+
}
|
|
1403
|
+
function hasMoreEventPages(events, pageSize) {
|
|
1404
|
+
return events.length >= pageSize;
|
|
1405
|
+
}
|
|
1406
|
+
//#endregion
|
|
1192
1407
|
//#region ../blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.ts
|
|
1193
1408
|
const eventSurfaceScopeSchema$1 = z.enum(eventSurfaceScopeValues);
|
|
1194
1409
|
const eventScheduleScopeSchema$1 = z.enum(eventScheduleScopeValues);
|
|
@@ -1376,6 +1591,7 @@ function buildEventCollectionHydration(source) {
|
|
|
1376
1591
|
function buildEventCollectionListingDisplay(display, prefetchedEvents, className) {
|
|
1377
1592
|
const initialEvents = display.events.slice(0, display.eventsPerPage);
|
|
1378
1593
|
return {
|
|
1594
|
+
allLoaded: prefetchedEvents && !hasMoreEventPages(display.events, display.eventsPerPage),
|
|
1379
1595
|
kind: "event-listing",
|
|
1380
1596
|
sectionAction: display.sectionAction,
|
|
1381
1597
|
panelHeading: display.panelHeading,
|
|
@@ -1453,7 +1669,13 @@ const eventListingDisplaySchema = z.object({
|
|
|
1453
1669
|
showCapacity: z.boolean(),
|
|
1454
1670
|
showPhotos: z.boolean().optional(),
|
|
1455
1671
|
orientation: cardOrientationSchema,
|
|
1456
|
-
events: z.array(publicEventSchema)
|
|
1672
|
+
events: z.array(publicEventSchema),
|
|
1673
|
+
week: z.object({
|
|
1674
|
+
days: z.array(z.string()).length(7),
|
|
1675
|
+
today: z.string(),
|
|
1676
|
+
timeZone: z.string()
|
|
1677
|
+
}).optional(),
|
|
1678
|
+
allLoaded: z.boolean().optional()
|
|
1457
1679
|
});
|
|
1458
1680
|
const eventListingHydrationSchema = z.object({
|
|
1459
1681
|
siteId: z.string(),
|
|
@@ -2332,7 +2554,7 @@ function bookingPanelHeading(entry, display) {
|
|
|
2332
2554
|
title,
|
|
2333
2555
|
subtitle: entry.when
|
|
2334
2556
|
};
|
|
2335
|
-
default: return assertNever$
|
|
2557
|
+
default: return assertNever$2(entry);
|
|
2336
2558
|
}
|
|
2337
2559
|
}
|
|
2338
2560
|
const HIDDEN_BAR = {
|
|
@@ -2421,7 +2643,7 @@ function offeringsListingFor(arrangement) {
|
|
|
2421
2643
|
case "sequence":
|
|
2422
2644
|
case "plates":
|
|
2423
2645
|
case "stack": return "by-type";
|
|
2424
|
-
default: return assertNever$
|
|
2646
|
+
default: return assertNever$2(arrangement);
|
|
2425
2647
|
}
|
|
2426
2648
|
}
|
|
2427
2649
|
Object.fromEntries(OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) => [definition.sourceKey, {
|
|
@@ -2593,7 +2815,7 @@ function buildOfferingsPreviewListing(input) {
|
|
|
2593
2815
|
...load,
|
|
2594
2816
|
items: [selectOffering(load.items[0], input.now), ...load.items.slice(1).map((item) => selectOffering(item, input.now))]
|
|
2595
2817
|
};
|
|
2596
|
-
default: return assertNever$
|
|
2818
|
+
default: return assertNever$2(load);
|
|
2597
2819
|
}
|
|
2598
2820
|
}));
|
|
2599
2821
|
if (!groups) return { kind: "no-groups" };
|
|
@@ -2610,7 +2832,7 @@ function buildOfferingsPreviewListing(input) {
|
|
|
2610
2832
|
}));
|
|
2611
2833
|
case "empty":
|
|
2612
2834
|
case "failed": return [];
|
|
2613
|
-
default: return assertNever$
|
|
2835
|
+
default: return assertNever$2(load);
|
|
2614
2836
|
}
|
|
2615
2837
|
}).sort((left, right) => (left.item.nextStartMs ?? Infinity) - (right.item.nextStartMs ?? Infinity) || left.groupIndex - right.groupIndex || offeringItemTitle(left.item).localeCompare(offeringItemTitle(right.item))));
|
|
2616
2838
|
return items ? {
|
|
@@ -2714,10 +2936,10 @@ function preferredPathsForSource(source) {
|
|
|
2714
2936
|
case "workshop": return ["/workshops", "/workshop"];
|
|
2715
2937
|
case "retreat": return ["/retreats", "/retreat"];
|
|
2716
2938
|
case "performance": return ["/performances", "/performance"];
|
|
2717
|
-
default: return assertNever$
|
|
2939
|
+
default: return assertNever$2(source.preset, "Unhandled offerings preview event preset");
|
|
2718
2940
|
}
|
|
2719
2941
|
case "wholeSeries": return ["/courses", "/course"];
|
|
2720
|
-
default: return assertNever$
|
|
2942
|
+
default: return assertNever$2(source, "Unhandled offerings preview source");
|
|
2721
2943
|
}
|
|
2722
2944
|
}
|
|
2723
2945
|
function normalizeRoutePath(value) {
|
|
@@ -3512,7 +3734,7 @@ function newsletterPresetFields(fields) {
|
|
|
3512
3734
|
placeholder: "Company name"
|
|
3513
3735
|
}
|
|
3514
3736
|
];
|
|
3515
|
-
default: return assertNever$
|
|
3737
|
+
default: return assertNever$2(fields);
|
|
3516
3738
|
}
|
|
3517
3739
|
}
|
|
3518
3740
|
function withOptionalPhone(fields, includePhone) {
|
|
@@ -3606,7 +3828,7 @@ const newsletterSourceSchema = z.discriminatedUnion("source", [
|
|
|
3606
3828
|
])
|
|
3607
3829
|
}),
|
|
3608
3830
|
newsletterSourceCommonSchema.extend({
|
|
3609
|
-
source: z.
|
|
3831
|
+
source: z.enum(["signed-footer", "signed-hosted-booking"]),
|
|
3610
3832
|
sourceRef: z.object({
|
|
3611
3833
|
tag: z.literal("signed_source_ref"),
|
|
3612
3834
|
token: signedMailingListSourceTokenSchema
|
|
@@ -3636,7 +3858,7 @@ const newsletterHydrationSchema = z.object({
|
|
|
3636
3858
|
sourceRef: mailingListSignupBlockSourceRefSchema.nullable()
|
|
3637
3859
|
}),
|
|
3638
3860
|
z.object({
|
|
3639
|
-
tag: z.literal("signed-
|
|
3861
|
+
tag: z.literal("signed-source"),
|
|
3640
3862
|
sourceRef: z.object({
|
|
3641
3863
|
tag: z.literal("signed_source_ref"),
|
|
3642
3864
|
token: signedMailingListSourceTokenSchema
|
|
@@ -3693,7 +3915,7 @@ function buildNewsletterDisplay(source) {
|
|
|
3693
3915
|
buttonLabel: form.buttonLabel,
|
|
3694
3916
|
successMessage: source.interactionContext?.kind === "demo" ? NEWSLETTER_DEMO_MESSAGE : form.successMessage,
|
|
3695
3917
|
buttonVariant: source.buttonVariant ?? "primary",
|
|
3696
|
-
privacyNote: form.privacyNote,
|
|
3918
|
+
privacyNote: newsletterPrivacyNote(source.source, form.privacyNote),
|
|
3697
3919
|
fields: getGlobalFormFields(form, source),
|
|
3698
3920
|
choices
|
|
3699
3921
|
};
|
|
@@ -3736,14 +3958,15 @@ function projectNewsletterFormHydrationTarget(source) {
|
|
|
3736
3958
|
tag: "block-source",
|
|
3737
3959
|
sourceRef: null
|
|
3738
3960
|
};
|
|
3739
|
-
default: return assertNever$
|
|
3961
|
+
default: return assertNever$2(source.newsletterBlockSubmission);
|
|
3740
3962
|
}
|
|
3963
|
+
case "signed-hosted-booking":
|
|
3741
3964
|
case "signed-footer": return {
|
|
3742
|
-
tag: "signed-
|
|
3965
|
+
tag: "signed-source",
|
|
3743
3966
|
sourceRef: source.sourceRef
|
|
3744
3967
|
};
|
|
3745
3968
|
case "preview": return { tag: "preview" };
|
|
3746
|
-
default: return assertNever$
|
|
3969
|
+
default: return assertNever$2(source);
|
|
3747
3970
|
}
|
|
3748
3971
|
}
|
|
3749
3972
|
function resolveRuntimeChoices(assessment) {
|
|
@@ -3791,6 +4014,10 @@ function parseRequiredMailingListSignedSourceToken(value) {
|
|
|
3791
4014
|
if (!parsed) throw new Error("Mailing-list signup signed source ref requires token");
|
|
3792
4015
|
return parsed;
|
|
3793
4016
|
}
|
|
4017
|
+
/** Hosted signup always explains preferences, alongside any owner-authored note. */
|
|
4018
|
+
function newsletterPrivacyNote(source, privacyNote) {
|
|
4019
|
+
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(" ");
|
|
4020
|
+
}
|
|
3794
4021
|
//#endregion
|
|
3795
4022
|
//#region ../blocks/src/system/blocks/products/shared.ts
|
|
3796
4023
|
const publicProductVariantSchema = z.object({
|
|
@@ -4821,4 +5048,4 @@ function shopProductPresentation(hydration, productId, index, count) {
|
|
|
4821
5048
|
};
|
|
4822
5049
|
}
|
|
4823
5050
|
//#endregion
|
|
4824
|
-
export { OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as $,
|
|
5051
|
+
export { OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as $, getCardOrientation as $t, parseStoredCommerceCartState as A, buildEventListingInteractiveIslandProps as At, giftingBlockRuntime as B, toError as Bt, membershipCardListContent as C, sameMailingListPlacementTargeting as Cn, buildEventCalendarInteractiveIslandProps as Ct, buildPassCartItem as D, eventCalendarInteractiveIslandPropsCodec as Dt, EMPTY_COMMERCE_CART_STATE as E, eventCalendarBlockRuntime as Et, buildNewsletterFormInteractiveIslandProps as F, eventPaginationLoadReducer as Ft, formInteractiveIslandPropsCodec as G, normalizeOptionalId as Gt, publicGiftingOffersResponseSchema as H, getEventRuntimeFiltersKey as Ht, newsletterBlockSubmissionMessage as I, getEventIdentity as It, displayButtonText as J, CardListContentPart as Jt, buildEventRegistrationDisplayFromScopedEvents as K, catalogueEventCardProps as Kt, newsletterFormBlockRuntime as L, getEventPaginationView as Lt, reduceCommerceCart as M, eventListingInteractiveIslandPropsCodec as Mt, publicProductsResponseSchema as N, createInitialEventPaginationLoadState as Nt, buildProductCartItem as O, projectRecurringSchedule as Ot, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as P, eventPageOperationQuery as Pt, OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS as Q, MediaNodeServer as Qt, newsletterFormInteractiveIslandPropsCodec as R, planEventPageOperation as Rt, formatInterval as S, DEFAULT_MAILING_LIST_TARGETING as Sn, eventCombinedInteractiveIslandPropsCodec as St, passCardListContent as T, buildEventCalendarListingRender as Tt, buildFormInteractiveIslandProps as U, normalizeCsvIds as Ut, giftingInteractiveIslandPropsCodec as V, buildEventRuntimeFilters as Vt, formBlockRuntime as W, normalizeCsvString as Wt, eventRegistrationInteractiveIslandPropsCodec as X, resolveCardListSchedule as Xt, eventRegistrationBlockRuntime as Y, CardListLeadDate as Yt, offeringNounForEvent as Z, selectCardListPresentation as Zt, shopProductPresentation as _, publicPassProductCollectionSchema as _n, formatBookingSchedulePresentation as _t, buildShopInteractiveIslandProps as a, formatEventPrice as an, normalizeOfferingsPreviewContentForWrite as at, buildProductDetailDisplay as b, parseMailingListPlacementTargeting as bn, buildEventCombinedListingDisplay as bt, checkoutBlockRuntime as c, resolveEventSelection as cn, resolveOfferingsPreviewGroupCta as ct, productDetailBlockRuntime as d, resolveHeaderChromeRuntimeContract as dn, DEFAULT_BOOKING_BUTTON_TEXT as dt, getContainerClass as en, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as et, productDetailInteractiveIslandPropsCodec as f, staticHeaderChromeRuntime as fn, bookingBarPlacement as ft, shopInteractiveIslandPropsCodec as g, publicMembershipProductCollectionSchema as gn, bookingPanelHeading as gt, shopBlockRuntime as h, splitSiteChromePlacementClasses as hn, bookingEntryProgress as ht, buildProductListInteractiveIslandProps as i, weekColumnDays as in, isOfferingsPreviewSourceKey as it, productItemKey as j, eventListingBlockRuntime as jt, deriveCommerceCheckoutState as k, recurringScheduleProjectionSchema as kt, checkoutInteractiveIslandPropsCodec as l, headerChromeRuntimeContractSchema as ln, resolveOfferingsPreviewGroups as lt, productListInteractiveIslandPropsCodec as m, planSiteChromePlacement as mn, bookingEntry as mt, buildCheckoutInteractiveIslandProps as n, buildEventListWeek as nn, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as nt, cartBlockRuntime as o, formatEventPriceAmount as on, normalizeOfferingsPreviewItemLimit as ot, productListBlockRuntime as p, parseHeaderPositioning as pn, bookingCardEntry as pt, buildEventRegistrationInteractiveIslandProps as q, listingEventCardProps as qt, buildProductDetailInteractiveIslandProps as r, eventListWeekDays as rn, buildOfferingsPreviewListing as rt, cartInteractiveIslandPropsCodec as s, formatEventPriceDisplay as sn, offeringsListingFor as st, buildCartInteractiveIslandProps as t, Grid as tn, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as tt, getShopDisplayForItems as u, isHeaderScrollRuntimeEnabled as un, resolveOfferingsRenderInput as ut, buildCartDisplay as v, buildMailingListSignupBlockSourceRef as vn, occurrenceContextSchema as vt, membershipClassesLabel as w, buildEventCalendarListingDisplay as wt, formatCommercePrice as x, parseMailingListVisitorSelection as xn, eventCombinedBlockRuntime as xt, buildProductCardDisplay as y, assessMailingListTargeting as yn, buildEventCombinedInteractiveIslandProps as yt, buildGiftingInteractiveIslandProps as z, toEventPaginationLoadError as zt };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-CBV21-9L.mjs";
|
|
3
3
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
4
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
4
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CROHPlYS.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/rendering/islands/enhancers/shopShared.tsx
|