@riverbankcms/sdk 0.177.0 → 0.178.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-sYraeqm9.d.ts → BlocksIslandsHydrator-CrKsXtpD.d.ts} +1 -1
- package/dist/_dts/{Page-Bp7hTDTy.d.ts → Page-C9i27wZA.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-CxkCCyKw.d.ts → SdkPreviewMode-DzGSR3jh.d.ts} +2 -2
- package/dist/_dts/{client-K6UhbL3t.d.ts → client-BnYN6XsH.d.ts} +31 -7
- package/dist/_dts/{content-types-BLAdIMyr.d.ts → content-types-CXj6lp3d.d.ts} +2 -2
- package/dist/_dts/{contracts-BG7yTZ6t.d.ts → contracts-BZLwkTwL.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DwMHeYmQ.d.ts → footerPageOutline-D_XbQW_o.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-X_WpGzZZ.d.ts → generatePageMetadata-ByEWwe9j.d.ts} +2 -2
- package/dist/_dts/{index-BpAW9AKB.d.ts → index-0HFgCnGz.d.ts} +1 -1
- package/dist/_dts/{index-CX9bp60k.d.ts → index-BE9dWIsr.d.ts} +3 -3
- package/dist/_dts/{index-Bygd2RCg.d.ts → index-CKDRr54L.d.ts} +4 -4
- package/dist/_dts/{index-BMGif2r3.d.ts → index-D9-N1d9v.d.ts} +1 -1
- package/dist/_dts/{index--n-wV8Xd.d.ts → index-DCa-8TEY.d.ts} +1 -1
- package/dist/_dts/{index-BLseXObg.d.ts → index-cTpvQg_Q.d.ts} +2 -2
- package/dist/_dts/{index-CBRbZJ6u.d.ts → index-nnEdgc3Z.d.ts} +2 -2
- package/dist/_dts/{loadContent-uhUThWaq.d.ts → loadContent-DYkVV6w4.d.ts} +7 -7
- package/dist/_dts/{request-Bf9YImJw.d.ts → request-B20VRWHH.d.ts} +491 -43
- package/dist/_dts/{resolveBlockData-D6M5NMZB.d.ts → resolveBlockData-C_aK5GIS.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-DkzWvFbG.d.ts → resolvePageContent-YT6ndha1.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 +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -2
- package/dist/_dts/sdk/src/index.d.ts +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 +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +24 -12
- 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 +56 -4
- package/dist/_dts/sdk/src/portal/index.d.ts +95 -13
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +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-BdZ5pJSk.d.ts → types-CMZ5mkpv.d.ts} +2 -2
- package/dist/_dts/{types-DgV8P2mz.d.ts → types-CYcd15BQ.d.ts} +7 -7
- package/dist/_dts/{types-C1l2Sm2h.d.ts → types-rm2M4LGx.d.ts} +3 -3
- package/dist/_dts/{validation-BtbZIT5f.d.ts → validation-BSxnRhyy.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-CeYQQQs7.mjs → BlocksIslandsHydrator-D1n09bu-.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-CDDWrY_W.mjs → BookingMailingListNote-DSD4gS96.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-BShQSial.mjs → BookingPanelArrangement--EkA1ZQd.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-MbvIo2jS.mjs → BookingQuestionFields-B57oGPcj.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-C6CSVfEB.mjs → CalendarNavigationChevron-qXvsFYOg.mjs} +7 -7
- package/dist/client/{DemoBookingPortalAccess-C9Ggcfx3.mjs → DemoBookingPortalAccess-Olvrwi3Z.mjs} +3 -3
- package/dist/client/{EventCalendar.client-BSMuSqg0.mjs → EventCalendar.client-DwFNFb-0.mjs} +10 -10
- package/dist/client/{EventCombined.client-BTrmSyUB.mjs → EventCombined.client-Ffu-aVOb.mjs} +9 -9
- package/dist/client/{EventItem-B0WjGXsH.mjs → EventItem-b8tVkNHA.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-8Ij7vuxY.mjs → EventListWeekNavigation-BxnJW_Gf.mjs} +1 -1
- package/dist/client/{EventListing.client-CWk2NEwd.mjs → EventListing.client-ViCnrNg4.mjs} +3 -3
- package/dist/client/{EventListing.view-BEH4UbSL.mjs → EventListing.view-CdjiepMf.mjs} +7 -7
- package/dist/client/{EventRegistrationPayment-B2EikR3f.mjs → EventRegistrationPayment-BVd70XkH.mjs} +262 -24
- package/dist/client/{LocationMapActions-myIQIvQL.mjs → LocationMapActions-CiMtl1Ha.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-BfsVyPvB.mjs → MapDrawingSvg-BCZa3dpf.mjs} +1 -1
- package/dist/client/{Page-C03rc6jw.mjs → Page-DqETUt-U.mjs} +12 -12
- package/dist/client/{SiteTermsAgreementField-BYACYP0T.mjs → SiteTermsAgreementField-DkFnbzf_.mjs} +2 -2
- package/dist/client/{StepIndicator-Bb7rPtSq.mjs → StepIndicator-JO2PS03n.mjs} +79 -32
- package/dist/client/{accordion-BfsOiweL.mjs → accordion-XgNxl0Wg.mjs} +1 -1
- package/dist/client/{booking-form.client-B8ohIj13.mjs → booking-form.client-ljJoDwuI.mjs} +13 -13
- package/dist/client/{bookingForm-CXsck2oH.mjs → bookingForm-DtEHwY4W.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-B_hcuT06.mjs → boxStyleClassNames-BHoMAcun.mjs} +2 -2
- package/dist/client/{carousel-Cz5Ddbsx.mjs → carousel-B3UhbFu7.mjs} +1 -1
- package/dist/client/{cart-CTC2oS3p.mjs → cart-DzOJfYOR.mjs} +3 -3
- package/dist/client/{cart.client-c1YkTC-Q.mjs → cart.client-DBG77v-5.mjs} +1 -1
- package/dist/client/{checkout-BeW1ufaH.mjs → checkout-LmePoEgM.mjs} +3 -3
- package/dist/client/{checkout.client-BeU32khQ.mjs → checkout.client-DmgZuLBT.mjs} +1 -1
- package/dist/client/{checkoutUrls-DVfSUSKp.mjs → checkoutUrls-CMZI8o_V.mjs} +1 -1
- package/dist/client/client.mjs +59 -5
- package/dist/client/{context-R9p5c8IH.mjs → context-CJIz4FdL.mjs} +1 -1
- package/dist/client/{course-CUFVJEAc.mjs → course-DBEU9IA9.mjs} +11 -4
- package/dist/client/{dateFormatting-CF6FWCoo.mjs → dateFormatting-UoXqBh10.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-tZxIm3RL.mjs → demoPortalMagicLink-6CgFZNvu.mjs} +5 -4
- package/dist/client/{display-4HYOb-AK.mjs → display-D1oVR5Eh.mjs} +180 -15
- package/dist/client/{enhanceHeaderSection-DEYDI54E.mjs → enhanceHeaderSection-DaMo6len.mjs} +3 -3
- package/dist/client/{event-details.client-BwjBJP-f.mjs → event-details.client-BwASwKIq.mjs} +1 -1
- package/dist/client/{event-registration.client-DWvSODTI.mjs → event-registration.client-b6APrFQe.mjs} +118 -180
- package/dist/client/{eventCalendar-C9Pn9eeZ.mjs → eventCalendar-DJYz7yZf.mjs} +4 -4
- package/dist/client/{eventCombined-Bdhk0fp0.mjs → eventCombined-j9VCVgMW.mjs} +4 -4
- package/dist/client/{eventDetails-C2LfNW_o.mjs → eventDetails-BzGOVDI-.mjs} +2 -2
- package/dist/client/{eventListing-B-bJOQUk.mjs → eventListing-DWgpGuFM.mjs} +4 -4
- package/dist/client/{eventRegistration-CbdmUiDT.mjs → eventRegistration-DCinRot3.mjs} +4 -4
- package/dist/client/{form-BbUUt784.mjs → form-BBBtRwvy.mjs} +3 -3
- package/dist/client/{form.client-BVlz-9_t.mjs → form.client-CZeRQLGF.mjs} +4 -4
- package/dist/client/{form.parts-TB4UIrML.mjs → form.parts-DhGGv4_L.mjs} +1 -1
- package/dist/client/{formatDate-TDHhFjFN.mjs → formatDate-DVFVDcDW.mjs} +1 -1
- package/dist/client/gifting/client.mjs +6 -5
- package/dist/client/{gifting-CbNSrp7C.mjs → gifting-Di9-SpwW.mjs} +4 -4
- package/dist/client/{gifting.client-B__bGhFc.mjs → gifting.client-CjT5PrAZ.mjs} +4 -4
- package/dist/client/{gifting.parts-CTA1sDW6.mjs → gifting.parts-ffP6mjMd.mjs} +2 -2
- package/dist/client/{headerSection-5Wn9nUW_.mjs → headerSection-jjAvtSZk.mjs} +2 -2
- package/dist/client/{lookSurfaces-BwiNdgMU.mjs → lookSurfaces-C2VzJfyG.mjs} +1 -1
- package/dist/client/{newsletter-form.client-B17WYHxZ.mjs → newsletter-form.client-D45frHoa.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DN9wD1ZG.mjs → newsletter-form.parts-CHdg82ct.mjs} +1 -1
- package/dist/client/{newsletterForm-DLMlxInp.mjs → newsletterForm-tS465_vl.mjs} +3 -3
- package/dist/client/{noop-CaQxI-Js.mjs → noop-D11X-B6n.mjs} +123 -91
- package/dist/client/portal/client.mjs +344 -19
- package/dist/client/{product-detail.client-Di_anRGR.mjs → product-detail.client-DIWSeW7P.mjs} +1 -1
- package/dist/client/{product-list.client-Duhl6rtL.mjs → product-list.client-BRf14h_e.mjs} +1 -1
- package/dist/client/{productDetail-BgKmCwA8.mjs → productDetail-gxF5whea.mjs} +3 -3
- package/dist/client/{productList-C_wMKsYS.mjs → productList-B9t0XJrN.mjs} +3 -3
- package/dist/client/{propsDecoder-y3LvxaiG.mjs → propsDecoder-Db8wAmgr.mjs} +4 -4
- package/dist/client/{registry.server-CIWYKz1V.mjs → registry.server-Bn0gE0uP.mjs} +27 -27
- package/dist/client/rendering/client.mjs +23 -23
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +7 -7
- package/dist/client/{richText-coerce-DkPBFb_a.mjs → richText-coerce-COnKrLO7.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-BgO0rZce.mjs → routeIslandApiConfig-Bok1Oy50.mjs} +1 -1
- package/dist/client/{shop-CFbWlv_W.mjs → shop-D1oTPDxm.mjs} +3 -3
- package/dist/client/{shop-commerce-C-I29eaA.mjs → shop-commerce-DyMZLC0a.mjs} +12 -12
- package/dist/client/{shop-commerce-store-DGcc7twO.mjs → shop-commerce-store-FODNS63D.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-DOm7vx0X.mjs → shop-discount-apply.state-C4xcmFzZ.mjs} +2 -2
- package/dist/client/{shop.client-GHTWUKD6.mjs → shop.client-CRgRulfI.mjs} +12 -12
- package/dist/client/{shop.interactive-CxDJ8P2r.mjs → shop.interactive-D7wky1GL.mjs} +6 -33
- package/dist/client/{shopShared-Be9QJJpT.mjs → shopShared-Bd_hy9ZO.mjs} +2 -2
- package/dist/client/src-DqMbCjI1.mjs +3 -0
- package/dist/client/{src-xrjaKaCj.mjs → src-uwCpbHXG.mjs} +2 -1
- package/dist/client/{timetableModel--R0zVzZO.mjs → timetableModel-UlWfP1gh.mjs} +9 -9
- package/dist/client/{useAvailableSlots-BGu_2F50.mjs → useAvailableSlots-D-qoooLy.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-I_mXI9Yd.mjs → useDiscountCodeUi-B9DODAkj.mjs} +1 -1
- package/dist/client/{useEventPagination-DxIJ--JZ.mjs → useEventPagination-CQH2e9sQ.mjs} +7 -7
- package/dist/client/{view-BbzH5MQb.mjs → view-DNX59QwM.mjs} +10 -9
- package/dist/client/{view-3foOzGWR.mjs → view-bGU1ws-m.mjs} +3 -3
- package/dist/preview-next/client/{PageSectionToolbar-D6-jojqh.mjs → PageSectionToolbar-D-Le7O3o.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-BUVFKZ4k.mjs → PreviewEditorSidebar-DNy5j_ce.mjs} +15 -13
- package/dist/preview-next/client/{PreviewEditorUI-292pOiSt.mjs → PreviewEditorUI-CzJvgbqt.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-CW0Yzj3h.mjs → PreviewShell-xhJ6ca1i.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Dba7zoZK.mjs → SdkPreviewModeRuntime-BmYO1TdT.mjs} +5 -5
- package/dist/preview-next/client/{previewAssistantSlot-B-utyhbS.mjs → previewAssistantSlot-BN93X9o1.mjs} +1141 -596
- package/dist/preview-next/client/{previewChromeRoot-CCoGydUD.mjs → previewChromeRoot-C51RQseo.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DCpXVcA0.mjs → sdk-runtime-oeGquJM-.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-sjOvRAHY.mjs → siteStyleAccess-BGTAcPud.mjs} +1 -1
- package/dist/preview-next/client/src-EO5QoRlU.mjs +3 -0
- package/dist/preview-next/client/{src-DzXUmsyK.mjs → src-lX6heoDA.mjs} +2 -1
- package/dist/preview-next/client/{useAutosaveStatus-R1rZ9-IZ.mjs → useAutosaveStatus-BMGXjGZq.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-BS7CANPv.mjs → useOpenBlockForSetup-CTDoR_gQ.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BSSbtz6A.mjs → route-contract-BtdzkSUg.mjs} +55 -1
- package/dist/server/{Block.shared-Dc3DX7Cf.mjs → Block.shared-Bp3OlOjj.mjs} +5 -5
- package/dist/server/{bindings-VGgS6UvF.mjs → bindings-DrbJuftt.mjs} +3 -3
- package/dist/server/{client-BPLLL22F.mjs → client-Bf06n9oj.mjs} +56 -2
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/constants-Cj7hfbrA.mjs +41 -0
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-CxASA3PE.mjs → loadContent-eaTY7RPg.mjs} +4 -4
- package/dist/server/{loadPage-CQgde5DN.mjs → loadPage-5iZefzDd.mjs} +2 -2
- package/dist/server/{navigation-iC_hXjJI.mjs → navigation-BcNfYYuu.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +56 -13
- package/dist/server/{overrideResolution-CkpwAHvW.mjs → overrideResolution-CUHtm7tW.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-CfSnAkCO.mjs → pageRenderPlan-GmPXForc.mjs} +13 -6
- package/dist/server/{pageRuntimeSupport-uz4gzBOo.mjs → pageRuntimeSupport-Dd8LFzfa.mjs} +1 -1
- package/dist/server/{pageShared-6z6JBU41.mjs → pageShared-tz-GVWft.mjs} +85 -37
- package/dist/server/portal-B4JVkdjc.mjs +783 -0
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-B4_Llisx.mjs → prebuild-JmsuYCIH.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CCiYV8_s.mjs → prefetchBlockData-Ce9DDwON.mjs} +2 -2
- package/dist/server/{registry-CXRXsFSx.mjs → registry-D12XF_h1.mjs} +466 -311
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-yfe8WLEA.mjs → resolveBlockData-D9yZIN3V.mjs} +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/{validation-BvHio6QI.mjs → validation-CLq5cw6M.mjs} +3 -3
- package/dist/server/{version-SuFlio6n.mjs → version-oPbhAx8E.mjs} +1 -1
- package/dist/styles/index.css +19 -0
- package/package.json +1 -1
- package/dist/client/src-BozhJ43Z.mjs +0 -3
- package/dist/preview-next/client/src-LUhVXBEQ.mjs +0 -3
- package/dist/server/constants-hl17xz6x.mjs +0 -22
- package/dist/server/portal-BjVHMAUC.mjs +0 -371
package/dist/client/{newsletter-form.client-B17WYHxZ.mjs → newsletter-form.client-D45frHoa.mjs}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { n as assertNever } from "./noop-
|
|
2
|
+
import { Dn as parseMailingListVisitorSelection, x as newsletterBlockSubmissionMessage, y as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE } from "./shop.interactive-D7wky1GL.mjs";
|
|
3
|
+
import { n as assertNever } from "./noop-D11X-B6n.mjs";
|
|
4
4
|
import { T as assertNever$1 } from "./creditProducts-BQ1t1erI.mjs";
|
|
5
|
-
import { i as BlockApiError, n as useBlockApi } from "./context-
|
|
6
|
-
import { r as listLookSlot } from "./lookSurfaces-
|
|
5
|
+
import { i as BlockApiError, n as useBlockApi } from "./context-CJIz4FdL.mjs";
|
|
6
|
+
import { r as listLookSlot } from "./lookSurfaces-C2VzJfyG.mjs";
|
|
7
7
|
import { S as clsx } from "./ThemedButton-DuaYtnvG.mjs";
|
|
8
8
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
9
|
-
import { a as partitionNewsletterFields, i as TOPIC_CHOICE_FIELD_ID, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-
|
|
9
|
+
import { a as partitionNewsletterFields, i as TOPIC_CHOICE_FIELD_ID, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-CHdg82ct.mjs";
|
|
10
10
|
import { t as MAILING_LIST_CONFIRMATION_MESSAGE } from "./mailingListSignupCopy-CX4sDozG.mjs";
|
|
11
11
|
import { t as SpamProtectionWidget } from "./SpamProtectionWidget-CCF6YLUX.mjs";
|
|
12
12
|
import { t as useAltchaProtection } from "./altchaProtection-DjIV9A5n.mjs";
|
package/dist/client/{newsletter-form.parts-DN9wD1ZG.mjs → newsletter-form.parts-CHdg82ct.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as listLookSlot } from "./lookSurfaces-
|
|
2
|
+
import { r as listLookSlot } from "./lookSurfaces-C2VzJfyG.mjs";
|
|
3
3
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
4
4
|
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-C-ql101B.mjs";
|
|
5
5
|
import "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
4
|
-
import { t as NewsletterFormClient } from "./newsletter-form.client-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-CJIz4FdL.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Db8wAmgr.mjs";
|
|
4
|
+
import { t as NewsletterFormClient } from "./newsletter-form.client-D45frHoa.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
6
|
import { n as snapshotForm, t as restoreForm } from "./formSnapshot-Cy4abc0T.mjs";
|
|
7
7
|
import "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { a as mediaIdentifierSchema, d as parseUuidBrand, f as err$1, n as renderableMediaAssetSchema, p as ok$1 } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
3
|
-
import { c as addMonths } from "./src-
|
|
3
|
+
import { c as addMonths } from "./src-uwCpbHXG.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region ../core/src/branded/customers.ts
|
|
6
6
|
const unsafeAsSiteTermsVersionId = (id) => id;
|
|
@@ -131,42 +131,6 @@ function parsePositiveMoneyInputToCents(value, options = {}) {
|
|
|
131
131
|
return ok$1(unsafeAsPositiveCents(amountCents));
|
|
132
132
|
}
|
|
133
133
|
//#endregion
|
|
134
|
-
//#region ../core/src/booking-payment-options.ts
|
|
135
|
-
/**
|
|
136
|
-
* One way a customer may pay for a booking. This is the single definition of
|
|
137
|
-
* the option type; `booking-payment-schemas.typetest.ts` keeps it equal to the
|
|
138
|
-
* schema's output in both directions.
|
|
139
|
-
*/
|
|
140
|
-
/** When a course's instalments must all be paid by: before its first or its last live session. */
|
|
141
|
-
const BOOKING_COURSE_INSTALMENT_DEADLINES = ["first_session", "last_session"];
|
|
142
|
-
/** Automatic instalments and a flexible balance cannot share one booking offer. */
|
|
143
|
-
function validateBookingPaymentOptionKinds(kinds) {
|
|
144
|
-
if (kinds.length === 0) return err$1("no_options");
|
|
145
|
-
const uniqueKinds = new Set(kinds);
|
|
146
|
-
if (uniqueKinds.size !== kinds.length) return err$1("duplicate_kind");
|
|
147
|
-
if (uniqueKinds.has("instalment_plan") && uniqueKinds.has("flexible_balance")) return err$1("incompatible_collection_options");
|
|
148
|
-
return ok$1(void 0);
|
|
149
|
-
}
|
|
150
|
-
//#endregion
|
|
151
|
-
//#region ../core/src/booking-date-time/instant.ts
|
|
152
|
-
function parseUtcIsoDateTimeString(value) {
|
|
153
|
-
const normalized = value.trim();
|
|
154
|
-
const hasUtcSuffix = normalized.endsWith("Z");
|
|
155
|
-
const hasExplicitOffset = /[+-]\d{2}:\d{2}$/u.test(normalized);
|
|
156
|
-
if (!hasUtcSuffix && !hasExplicitOffset) return err$1("missing-timezone-offset");
|
|
157
|
-
const date = new Date(normalized);
|
|
158
|
-
if (Number.isNaN(date.getTime())) return err$1("invalid-date-time");
|
|
159
|
-
return ok$1(date.toISOString());
|
|
160
|
-
}
|
|
161
|
-
function toUtcIsoDateTimeString(value) {
|
|
162
|
-
const parsed = parseUtcIsoDateTimeString(value);
|
|
163
|
-
if (!parsed.ok) {
|
|
164
|
-
const message = parsed.error === "missing-timezone-offset" ? `Expected an offset-aware ISO datetime, received "${value}"` : `Expected a valid ISO datetime, received "${value}"`;
|
|
165
|
-
throw new Error(message);
|
|
166
|
-
}
|
|
167
|
-
return parsed.value;
|
|
168
|
-
}
|
|
169
|
-
//#endregion
|
|
170
134
|
//#region ../core/src/date-time-formatter.ts
|
|
171
135
|
/** Shared Intl engine, internal to core's date presentation owners. */
|
|
172
136
|
const FORMATTER_CACHE_LIMIT = 100;
|
|
@@ -252,6 +216,25 @@ function resolveBookingBusinessTimeZone(value) {
|
|
|
252
216
|
return resolveBookingTimeZoneId(value, DEFAULT_BOOKING_BUSINESS_TIME_ZONE);
|
|
253
217
|
}
|
|
254
218
|
//#endregion
|
|
219
|
+
//#region ../core/src/booking-date-time/instant.ts
|
|
220
|
+
function parseUtcIsoDateTimeString(value) {
|
|
221
|
+
const normalized = value.trim();
|
|
222
|
+
const hasUtcSuffix = normalized.endsWith("Z");
|
|
223
|
+
const hasExplicitOffset = /[+-]\d{2}:\d{2}$/u.test(normalized);
|
|
224
|
+
if (!hasUtcSuffix && !hasExplicitOffset) return err$1("missing-timezone-offset");
|
|
225
|
+
const date = new Date(normalized);
|
|
226
|
+
if (Number.isNaN(date.getTime())) return err$1("invalid-date-time");
|
|
227
|
+
return ok$1(date.toISOString());
|
|
228
|
+
}
|
|
229
|
+
function toUtcIsoDateTimeString(value) {
|
|
230
|
+
const parsed = parseUtcIsoDateTimeString(value);
|
|
231
|
+
if (!parsed.ok) {
|
|
232
|
+
const message = parsed.error === "missing-timezone-offset" ? `Expected an offset-aware ISO datetime, received "${value}"` : `Expected a valid ISO datetime, received "${value}"`;
|
|
233
|
+
throw new Error(message);
|
|
234
|
+
}
|
|
235
|
+
return parsed.value;
|
|
236
|
+
}
|
|
237
|
+
//#endregion
|
|
255
238
|
//#region ../core/src/booking-date-time/local.ts
|
|
256
239
|
const LOCAL_DATE_PATTERN = /^(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})$/u;
|
|
257
240
|
function getZonedDateTimeParts(date, timeZone) {
|
|
@@ -340,59 +323,6 @@ function resolveLocalInstant(targetLocalMs, timeZone, guess, seen) {
|
|
|
340
323
|
return resolveLocalInstant(targetLocalMs, timeZone, nextGuess, [...seen, guess]);
|
|
341
324
|
}
|
|
342
325
|
//#endregion
|
|
343
|
-
//#region ../core/src/booking-date-time/window.ts
|
|
344
|
-
const START_OF_DAY = {
|
|
345
|
-
hour: 0,
|
|
346
|
-
minute: 0,
|
|
347
|
-
second: 0
|
|
348
|
-
};
|
|
349
|
-
function parseWindowDate(value, field) {
|
|
350
|
-
try {
|
|
351
|
-
return {
|
|
352
|
-
ok: true,
|
|
353
|
-
value: parseBookingLocalDate(value)
|
|
354
|
-
};
|
|
355
|
-
} catch {
|
|
356
|
-
return {
|
|
357
|
-
ok: false,
|
|
358
|
-
field,
|
|
359
|
-
reason: "invalid_date_format",
|
|
360
|
-
value
|
|
361
|
-
};
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
function parseBookingUtcDateWindow(input) {
|
|
365
|
-
const timeZone = resolveBookingTimeZoneId(input.timeZone);
|
|
366
|
-
const start = parseWindowDate(input.startDate, "startDate");
|
|
367
|
-
if (!start.ok) return start;
|
|
368
|
-
const end = parseWindowDate(input.endDate, "endDate");
|
|
369
|
-
if (!end.ok) return end;
|
|
370
|
-
const startLocalDate = start.value;
|
|
371
|
-
const endLocalDate = end.value;
|
|
372
|
-
if (compareLocalScheduleDates(startLocalDate, endLocalDate) > 0) return {
|
|
373
|
-
ok: false,
|
|
374
|
-
field: "endDate",
|
|
375
|
-
reason: "invalid_date_range",
|
|
376
|
-
value: input.endDate
|
|
377
|
-
};
|
|
378
|
-
return {
|
|
379
|
-
ok: true,
|
|
380
|
-
value: {
|
|
381
|
-
timeZone,
|
|
382
|
-
startLocalDate,
|
|
383
|
-
endLocalDate,
|
|
384
|
-
startAt: localScheduleDateTimeToUtcDate(startLocalDate, START_OF_DAY, timeZone),
|
|
385
|
-
endExclusive: localScheduleDateTimeToUtcDate(addLocalScheduleDays(endLocalDate, 1), START_OF_DAY, timeZone)
|
|
386
|
-
}
|
|
387
|
-
};
|
|
388
|
-
}
|
|
389
|
-
function buildBookingUtcDateWindow(input) {
|
|
390
|
-
const result = parseBookingUtcDateWindow(input);
|
|
391
|
-
if (result.ok) return result.value;
|
|
392
|
-
if (result.reason === "invalid_date_range") throw new Error(`Invalid booking date range: startDate "${input.startDate}" must be on or before endDate "${input.endDate}"`);
|
|
393
|
-
throw new Error(`Invalid booking date format: "${result.value}" (expected YYYY-MM-DD)`);
|
|
394
|
-
}
|
|
395
|
-
//#endregion
|
|
396
326
|
//#region ../core/src/booking-date-time/scheduled.ts
|
|
397
327
|
function parseStrictBookingTimeZone(timeZone) {
|
|
398
328
|
const parsed = parseBookingTimeZone(timeZone);
|
|
@@ -495,6 +425,31 @@ function resolveBookingDisplayContext(input) {
|
|
|
495
425
|
zone: input.surface !== "dashboard" && input.isOnline || input.sessionTimeZone !== input.siteTimeZone ? "always" : "omit"
|
|
496
426
|
};
|
|
497
427
|
}
|
|
428
|
+
/** Dashboard and assistant site dates read in British English, whatever the site's own language. */
|
|
429
|
+
const SITE_DISPLAY_LOCALE = "en-GB";
|
|
430
|
+
/** The site display policy: `en-GB` in the given zone, falling back to the business zone the server uses. */
|
|
431
|
+
function siteDisplayContext(timeZone) {
|
|
432
|
+
return {
|
|
433
|
+
locale: SITE_DISPLAY_LOCALE,
|
|
434
|
+
timeZone: resolveBookingBusinessTimeZone(timeZone)
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
/** A stored instant as a site date, `22 Sept 2026` by default; an unparseable value is shown as it came. */
|
|
438
|
+
function formatSiteInstantDate(iso, timeZone, options = {}) {
|
|
439
|
+
const parsed = parseUtcIsoDateTimeString(iso);
|
|
440
|
+
return parsed.ok ? formatDate({
|
|
441
|
+
kind: "instant",
|
|
442
|
+
value: parsed.value
|
|
443
|
+
}, siteDisplayContext(timeZone), {
|
|
444
|
+
date: "short",
|
|
445
|
+
...options
|
|
446
|
+
}) : iso;
|
|
447
|
+
}
|
|
448
|
+
/** A stored instant as a site time, `2:05pm` without a zone label by default; an unparseable value is shown as it came. */
|
|
449
|
+
function formatSiteInstantTime(iso, timeZone, options = { zone: "omit" }) {
|
|
450
|
+
const parsed = parseUtcIsoDateTimeString(iso);
|
|
451
|
+
return parsed.ok ? formatTime(parsed.value, siteDisplayContext(timeZone), options) : iso;
|
|
452
|
+
}
|
|
498
453
|
function formatDate(value, context, options = {}) {
|
|
499
454
|
return presentDate(value, context, displayProfile(options, "omit"));
|
|
500
455
|
}
|
|
@@ -700,6 +655,76 @@ function formatTimeZoneCityLabel(timeZone) {
|
|
|
700
655
|
return timeZone.startsWith("Etc/") ? "local time" : `${timeZone.split("/").slice(-1)[0]?.replace(/_/gu, " ") ?? timeZone} time`;
|
|
701
656
|
}
|
|
702
657
|
//#endregion
|
|
658
|
+
//#region ../core/src/booking-payment-options.ts
|
|
659
|
+
/**
|
|
660
|
+
* One way a customer may pay for a booking. This is the single definition of
|
|
661
|
+
* the option type; `booking-payment-schemas.typetest.ts` keeps it equal to the
|
|
662
|
+
* schema's output in both directions.
|
|
663
|
+
*/
|
|
664
|
+
/** When a course's instalments must all be paid by: before its first or its last live session. */
|
|
665
|
+
const BOOKING_COURSE_INSTALMENT_DEADLINES = ["first_session", "last_session"];
|
|
666
|
+
/** Automatic instalments and a flexible balance cannot share one booking offer. */
|
|
667
|
+
function validateBookingPaymentOptionKinds(kinds) {
|
|
668
|
+
if (kinds.length === 0) return err$1("no_options");
|
|
669
|
+
const uniqueKinds = new Set(kinds);
|
|
670
|
+
if (uniqueKinds.size !== kinds.length) return err$1("duplicate_kind");
|
|
671
|
+
if (uniqueKinds.has("instalment_plan") && uniqueKinds.has("flexible_balance")) return err$1("incompatible_collection_options");
|
|
672
|
+
return ok$1(void 0);
|
|
673
|
+
}
|
|
674
|
+
//#endregion
|
|
675
|
+
//#region ../core/src/booking-date-time/window.ts
|
|
676
|
+
const START_OF_DAY = {
|
|
677
|
+
hour: 0,
|
|
678
|
+
minute: 0,
|
|
679
|
+
second: 0
|
|
680
|
+
};
|
|
681
|
+
function parseWindowDate(value, field) {
|
|
682
|
+
try {
|
|
683
|
+
return {
|
|
684
|
+
ok: true,
|
|
685
|
+
value: parseBookingLocalDate(value)
|
|
686
|
+
};
|
|
687
|
+
} catch {
|
|
688
|
+
return {
|
|
689
|
+
ok: false,
|
|
690
|
+
field,
|
|
691
|
+
reason: "invalid_date_format",
|
|
692
|
+
value
|
|
693
|
+
};
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
function parseBookingUtcDateWindow(input) {
|
|
697
|
+
const timeZone = resolveBookingTimeZoneId(input.timeZone);
|
|
698
|
+
const start = parseWindowDate(input.startDate, "startDate");
|
|
699
|
+
if (!start.ok) return start;
|
|
700
|
+
const end = parseWindowDate(input.endDate, "endDate");
|
|
701
|
+
if (!end.ok) return end;
|
|
702
|
+
const startLocalDate = start.value;
|
|
703
|
+
const endLocalDate = end.value;
|
|
704
|
+
if (compareLocalScheduleDates(startLocalDate, endLocalDate) > 0) return {
|
|
705
|
+
ok: false,
|
|
706
|
+
field: "endDate",
|
|
707
|
+
reason: "invalid_date_range",
|
|
708
|
+
value: input.endDate
|
|
709
|
+
};
|
|
710
|
+
return {
|
|
711
|
+
ok: true,
|
|
712
|
+
value: {
|
|
713
|
+
timeZone,
|
|
714
|
+
startLocalDate,
|
|
715
|
+
endLocalDate,
|
|
716
|
+
startAt: localScheduleDateTimeToUtcDate(startLocalDate, START_OF_DAY, timeZone),
|
|
717
|
+
endExclusive: localScheduleDateTimeToUtcDate(addLocalScheduleDays(endLocalDate, 1), START_OF_DAY, timeZone)
|
|
718
|
+
}
|
|
719
|
+
};
|
|
720
|
+
}
|
|
721
|
+
function buildBookingUtcDateWindow(input) {
|
|
722
|
+
const result = parseBookingUtcDateWindow(input);
|
|
723
|
+
if (result.ok) return result.value;
|
|
724
|
+
if (result.reason === "invalid_date_range") throw new Error(`Invalid booking date range: startDate "${input.startDate}" must be on or before endDate "${input.endDate}"`);
|
|
725
|
+
throw new Error(`Invalid booking date format: "${result.value}" (expected YYYY-MM-DD)`);
|
|
726
|
+
}
|
|
727
|
+
//#endregion
|
|
703
728
|
//#region ../core/src/map-drawing/model.ts
|
|
704
729
|
const MAX_DRAWING_BYTES = 1024 * 1024;
|
|
705
730
|
/** Current real city extracts fit with >2x headroom; reservations precede allocation. */
|
|
@@ -2048,6 +2073,8 @@ const publicWholeSeriesRunSchema = z.object({
|
|
|
2048
2073
|
eventSeriesId: z.string(),
|
|
2049
2074
|
eventOfferingId: z.string(),
|
|
2050
2075
|
enrollmentOpen: z.boolean(),
|
|
2076
|
+
/** Present when bookings stop before the first session. Older sites ignore it. */
|
|
2077
|
+
bookingClosesAt: z.string().optional(),
|
|
2051
2078
|
visibility: z.enum(["public", "unlisted"]),
|
|
2052
2079
|
lifecycle: z.enum([
|
|
2053
2080
|
"upcoming",
|
|
@@ -2095,6 +2122,11 @@ const publicEventBaseSchema = z.object({
|
|
|
2095
2122
|
requiresRegistration: z.boolean(),
|
|
2096
2123
|
bookingAvailability: publicEventBookingAvailabilitySchema,
|
|
2097
2124
|
bookingClosedDetail: publicEventBookingClosedDetailSchema.optional(),
|
|
2125
|
+
/**
|
|
2126
|
+
* Present when bookings stop before this date starts. It's what says "closed
|
|
2127
|
+
* early": the closed reasons stay as they are, so older sites keep working.
|
|
2128
|
+
*/
|
|
2129
|
+
bookingClosesAt: z.string().optional(),
|
|
2098
2130
|
deliveryMode: z.enum([
|
|
2099
2131
|
"in_person",
|
|
2100
2132
|
"online",
|
|
@@ -2555,4 +2587,4 @@ const logger = {
|
|
|
2555
2587
|
withFields: (_) => logger
|
|
2556
2588
|
};
|
|
2557
2589
|
//#endregion
|
|
2558
|
-
export { toBookingRequirementConsentField as $,
|
|
2590
|
+
export { toBookingRequirementConsentField as $, formatSiteInstantTime as $t, normalizeEventCalendarDisplayMode as A, publicEventLoaderQuerySchemaShape as At, headingDecorationOverrideValues as B, projectPublicLocation as Bt, eventCalendarListGroupingDecision as C, formatGiftCardAmountLabel as Cn, purchasablePublicMembershipProductSchema as Ct, isEventCalendarDefaultView as D, eventScheduleScopeValues as Dt, eventListArrangementValues as E, calendarWindowQuerySchema as Et, arrangementModes as F, EVENT_PRESET_VALUES as Ft, publicEventDestinationSchema as G, mapDrawingSchema as Gt, tileTreatmentValues as H, toLocationCoordinates as Ht, decorativeTransitionIntentValues as I, WHOLE_SERIES_EVENT_PRESET_VALUES as It, publicEventsArraySchema as J, formatDate as Jt, publicEventPricingSchema as K, buildBookingUtcDateWindow as Kt, eventListTreatmentValues as L, locationValueSchema as Lt, accordionIconColorTokenValues as M, allocateReductionCents as Mt, accordionIconMotionValues as N, normalizeCurrencyCode as Nt, isEventCalendarDisplayMode as O, eventSurfacePresetValues as Ot, accordionIconSetValues as P, isRecord as Pt, isBookingRequirementConsentFieldId as Q, formatSiteInstantDate as Qt, eyebrowTreatmentValues as R, normalizeLocationAddressText as Rt, resolveCalendarReadProfile as S, formatCurrencyAmount as Sn, publicProductSchema as St, eventCalendarVariantMeaning as T, calendarMonthDate as Tt, visibleHeadingDecorationFamilyValues as U, capitalize as Ut, isArrangementMode as V, publicLocationSchema as Vt, eventVenueDrawingSchema as W, trimmedStringOrNull as Wt, blockBookingConsentSchema as X, formatDateTime as Xt, blockBookingPaymentTermsSchema as Y, formatDateRange as Yt, bookingConsentCarrierSchema as Z, formatDateTimeRange as Zt, calendarQueryKey as _, resolveBookingTimeZoneId as _n, eventCalendarDisplayModeValues as _t, okWith as a, formatBookingCompactEnglishTime as an, isRichTextDoc as at, calendarWindowPageSchema as b, parsePositiveMoneyInputToCents as bn, publicMembershipProductSchema as bt, reportWorkflowSuccess as c, compareLocalScheduleDates as cn, imageMediaSchema as ct, EVENT_BOOKING_RESPONSE_QUERY as d, getLocalScheduleDate as dn, runtimeMediaSchema as dt, formatTime as en, beforeBookingQuestionsPresentationSchema as et, eventAutoApplyDiscountPreviewSchema as f, parseBookingLocalDate as fn, videoMediaSchema as ft, calendarPageResponseError as g, resolveBookingBusinessTimeZone as gn, eventCalendarDefaultViewValues as gt, calendarMonthKey as h, toUtcIsoDateTimeString as hn, mediaTypeDiscriminants as ht, ok as i, resolveBookingDisplayContext as in, createRichTextDoc as it, resolveEventCalendarReadPlan as j, unsafeAsPositiveCheckoutQuantity as jt, isEventCalendarListLayout as k, eventSurfaceScopeValues as kt, blockSiteTermsSchema as l, formatLocalScheduleDate as ln, mediaSchema as lt, publicPassProductCollectionSchema as m, parseUtcIsoDateTimeString as mn, isDisplayMediaKind as mt, assertNever as n, formatTimeZoneCityLabel as nn, RichTextDocSchema as nt, clearWorkflowFeedback as o, toScheduledBookingDateTime as on, assetMediaSchema as ot, publicMembershipProductCollectionSchema as p, parseLocalScheduleTime as pn, PUBLIC_FILE_FIELD_KINDS as pt, publicEventSchema as q, validateBookingPaymentOptionKinds as qt, err as r, inferSiteDateLocale as rn, buildRichTextSchema as rt, reportWorkflowError as s, addLocalScheduleDays as sn, externalMediaSchema as st, logger as t, formatTimeRange as tn, bookingQuestionsAnswerValueSchema as tt, verifiedSiteTermsAcceptanceSchema as u, getBookingLocalDateKey as un, persistableMediaSchema as ut, calendarWindowBounds as v, toBookingTimeZone as vn, eventCalendarListLayoutCompatibleDisplayModeValues as vt, eventCalendarListLayoutOptions as w, purchasablePublicPassProductSchema as wt, planCalendarMonthRanges as x, toNonNegativeCents as xn, publicPassProductSchema as xt, calendarWindowMonths as y, parsePositiveCents as yn, eventCalendarListLayoutValues as yt, headingDecorationColorTokenValues as z, parseLocationValue as zt };
|