@riverbankcms/sdk 0.178.0 → 0.179.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 +15 -8
- package/dist/_dts/{BlocksIslandsHydrator-CrKsXtpD.d.ts → BlocksIslandsHydrator-DKwgs95u.d.ts} +1 -1
- package/dist/_dts/{Page-C9i27wZA.d.ts → Page-lWenra5i.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DzGSR3jh.d.ts → SdkPreviewMode-BRxhRw4I.d.ts} +2 -2
- package/dist/_dts/{client-BnYN6XsH.d.ts → client-qWn7xAwJ.d.ts} +47 -17
- package/dist/_dts/{content-types-CXj6lp3d.d.ts → content-types-DL6GIvTm.d.ts} +2 -2
- package/dist/_dts/{contracts-BZLwkTwL.d.ts → contracts-CzWyAiJj.d.ts} +6 -116
- package/dist/_dts/{generatePageMetadata-ByEWwe9j.d.ts → generatePageMetadata-CBKd0cJ4.d.ts} +2 -2
- package/dist/_dts/{index-DCa-8TEY.d.ts → index-7CDBZGb-.d.ts} +1 -1
- package/dist/_dts/{index-CKDRr54L.d.ts → index-BU9uAkHB.d.ts} +4 -4
- package/dist/_dts/{index-D9-N1d9v.d.ts → index-BYnG_vF5.d.ts} +1 -1
- package/dist/_dts/{index-nnEdgc3Z.d.ts → index-CZgJrhzT.d.ts} +4 -2
- package/dist/_dts/{index-cTpvQg_Q.d.ts → index-CaCum9mM.d.ts} +2 -2
- package/dist/_dts/{index-0HFgCnGz.d.ts → index-DCiSHd-C.d.ts} +1 -1
- package/dist/_dts/{index-BE9dWIsr.d.ts → index-DVSipdrT.d.ts} +3 -3
- package/dist/_dts/{loadContent-DYkVV6w4.d.ts → loadContent-CPKbFQyq.d.ts} +15 -13
- package/dist/_dts/{request-B20VRWHH.d.ts → request-BjKBCS7t.d.ts} +1201 -335
- package/dist/_dts/{resolveBlockData-C_aK5GIS.d.ts → resolveBlockData-DupbMCup.d.ts} +8 -5
- package/dist/_dts/resolvePageContent-BqNyCHi8.d.ts +61 -0
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +3 -3
- 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 +7 -2
- package/dist/_dts/sdk/src/gifting/client.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 +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +16 -8
- 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/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 +7 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +19 -6
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/serviceBookingOutline-YcsIjvn1.d.ts +582 -0
- package/dist/_dts/{types-rm2M4LGx.d.ts → types-B7e6Lmo5.d.ts} +3 -3
- package/dist/_dts/{types-CYcd15BQ.d.ts → types-BOxSq-Bq.d.ts} +8 -7
- package/dist/_dts/{types-CMZ5mkpv.d.ts → types-CT-KOxl_.d.ts} +5 -39
- package/dist/_dts/{validation-BSxnRhyy.d.ts → validation-Dz6qccue.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-D1n09bu-.mjs → BlocksIslandsHydrator-1XifJg6V.mjs} +17 -18
- package/dist/client/{BookingMailingListNote-DSD4gS96.mjs → BookingMailingListNote-BsbEgagJ.mjs} +7 -7
- package/dist/client/{BookingQuestionFields-B57oGPcj.mjs → BookingQuestionFields-C8IbeLHj.mjs} +4 -4
- package/dist/client/{CalendarNavigationChevron-qXvsFYOg.mjs → CalendarNavigationChevron-Bbqij1XQ.mjs} +42 -9
- package/dist/client/{CheckboxChoice-b-PJLEXe.mjs → CheckboxChoice-BZPLCgTU.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-Olvrwi3Z.mjs → DemoBookingPortalAccess-uA9H8LIL.mjs} +4 -4
- package/dist/client/{EventCalendar.client-DwFNFb-0.mjs → EventCalendar.client-yoSI77ov.mjs} +10 -10
- package/dist/client/{EventCombined.client-Ffu-aVOb.mjs → EventCombined.client-HeCNlliq.mjs} +10 -10
- package/dist/client/{EventEmbeddedCheckoutStep-B18VbNS_.mjs → EventEmbeddedCheckoutStep-BDnicDM6.mjs} +1 -1
- package/dist/client/{EventItem-b8tVkNHA.mjs → EventItem-Duhk1vnF.mjs} +247 -7
- package/dist/client/{EventListWeekNavigation-BxnJW_Gf.mjs → EventListWeekNavigation-BiutEqPK.mjs} +1 -1
- package/dist/client/{EventListing.client-ViCnrNg4.mjs → EventListing.client-B5ln77jG.mjs} +3 -3
- package/dist/client/{EventListing.view-CdjiepMf.mjs → EventListing.view-hUDhNtMv.mjs} +203 -9
- package/dist/client/{EventRegistrationPayment-BVd70XkH.mjs → EventRegistrationPayment-DqtX1vB2.mjs} +189 -111
- package/dist/client/{Page-DqETUt-U.mjs → Page-ChJ2TGVk.mjs} +24314 -20226
- package/dist/client/{ProtectedSubmitButton-C-ql101B.mjs → ProtectedSubmitButton-De6AzhE6.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-DkFnbzf_.mjs → SiteTermsAgreementField-CDBU31xW.mjs} +3 -3
- package/dist/client/{StepIndicator-JO2PS03n.mjs → StepIndicator-2Dl9zon2.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement--EkA1ZQd.mjs → StepIndicator-JQA-VuEH.mjs} +12 -12
- package/dist/client/{TabBarFragment-BqfRLojo.mjs → TabBarFragment-DlKQRhP4.mjs} +1 -1
- package/dist/client/{ThemedButton-DuaYtnvG.mjs → ThemedButton-CnSa7o-I.mjs} +66 -66
- package/dist/client/{accessibleSurfaces-DN8it_Cx.mjs → accessibleSurfaces-Wl8-_OVJ.mjs} +1 -1
- package/dist/client/{accordion-XgNxl0Wg.mjs → accordion-B6SqU49k.mjs} +1 -1
- package/dist/client/{booking-form.client-ljJoDwuI.mjs → booking-form.client-DrEOjQ3N.mjs} +15 -15
- package/dist/client/{bookingForm-DtEHwY4W.mjs → bookingForm-drZBwEZW.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-BHoMAcun.mjs → boxStyleClassNames-DEh45w16.mjs} +19 -19
- package/dist/client/{carousel-B3UhbFu7.mjs → carousel-C-YJliD-.mjs} +2 -2
- package/dist/client/{carousel.client-h65clfUO.mjs → carousel.client-DMtGYTTM.mjs} +1 -1
- package/dist/client/{cart-DzOJfYOR.mjs → cart-acGFWK9R.mjs} +3 -3
- package/dist/client/{cart.client-DBG77v-5.mjs → cart.client-BzlOGP2j.mjs} +1 -1
- package/dist/client/{checkout-LmePoEgM.mjs → checkout-SEontwhy.mjs} +3 -3
- package/dist/client/{checkout.client-DmgZuLBT.mjs → checkout.client-C0Qvh-d4.mjs} +1 -1
- package/dist/client/{checkoutUrls-CMZI8o_V.mjs → checkoutUrls-yUKeq1N9.mjs} +1 -1
- package/dist/client/client.mjs +414 -319
- package/dist/client/{context-CJIz4FdL.mjs → context-DTrwaQtg.mjs} +2 -1
- package/dist/client/{dateFormatting-UoXqBh10.mjs → dateFormatting-Cg8E1r9l.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-6CgFZNvu.mjs → demoPortalMagicLink-D0kOJYOX.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-DaMo6len.mjs → enhanceHeaderSection-DyrpZ7ks.mjs} +4 -4
- package/dist/client/{event-registration.client-b6APrFQe.mjs → event-registration.client-RLZQWi2V.mjs} +13 -13
- package/dist/client/{eventCalendar-DJYz7yZf.mjs → eventCalendar-CphYnImh.mjs} +4 -4
- package/dist/client/{eventCombined-j9VCVgMW.mjs → eventCombined-BvqjASB_.mjs} +4 -4
- package/dist/client/{eventListing-DWgpGuFM.mjs → eventListing-BaNAoC_M.mjs} +4 -4
- package/dist/client/{eventRegistration-DCinRot3.mjs → eventRegistration-COMHoRl6.mjs} +4 -4
- package/dist/client/events-9LPvwbWp.mjs +28 -0
- package/dist/client/{form-BBBtRwvy.mjs → form-DyH2juYT.mjs} +3 -3
- package/dist/client/{form.client-CZeRQLGF.mjs → form.client-DBwzkB0M.mjs} +5 -5
- package/dist/client/{form.parts-DhGGv4_L.mjs → form.parts-CY4kX3mh.mjs} +3 -3
- package/dist/client/{formatDate-DVFVDcDW.mjs → formatDate-CTEN7gxW.mjs} +1 -1
- package/dist/client/gifting/client.mjs +6 -6
- package/dist/client/{gifting-Di9-SpwW.mjs → gifting-CIx4V378.mjs} +4 -4
- package/dist/client/{gifting.client-CjT5PrAZ.mjs → gifting.client-BEVPpzJM.mjs} +5 -5
- package/dist/client/{gifting.parts-ffP6mjMd.mjs → gifting.parts-VnORjnZK.mjs} +2 -2
- package/dist/client/{headerSection-jjAvtSZk.mjs → headerSection-DGcJfRS8.mjs} +2 -2
- package/dist/client/{lookSurfaces-C2VzJfyG.mjs → lookSurfaces-IqT_SVnX.mjs} +167 -85
- package/dist/client/{newsletter-form.client-D45frHoa.mjs → newsletter-form.client-BvEDkjiD.mjs} +6 -6
- package/dist/client/{shop.interactive-D7wky1GL.mjs → newsletter-form.interactive-DCO1lErD.mjs} +3975 -3975
- package/dist/client/{newsletter-form.parts-CHdg82ct.mjs → newsletter-form.parts-BIy4IUT3.mjs} +2 -2
- package/dist/client/{newsletterForm-tS465_vl.mjs → newsletterForm-CoTXDNFS.mjs} +3 -3
- package/dist/client/portal/client.mjs +9 -9
- package/dist/client/{product-detail.client-DIWSeW7P.mjs → product-detail.client-YHQ2aKX1.mjs} +1 -1
- package/dist/client/{product-list.client-BRf14h_e.mjs → product-list.client-DxoZw1vF.mjs} +1 -1
- package/dist/client/{productDetail-gxF5whea.mjs → productDetail-DjuFvkey.mjs} +3 -3
- package/dist/client/{productList-B9t0XJrN.mjs → productList-DE9GEFoZ.mjs} +3 -3
- package/dist/client/{propsDecoder-Db8wAmgr.mjs → propsDecoder-Cyag_HOs.mjs} +2 -48
- package/dist/client/{registry.server-Bn0gE0uP.mjs → registry.server-BPwV-0Pp.mjs} +10420 -9108
- package/dist/client/rendering/client.mjs +41 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +23 -2836
- package/dist/client/{richText-coerce-COnKrLO7.mjs → richText-coerce-NrRqDeOg.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-Bok1Oy50.mjs → routeIslandApiConfig-BWq5gKFK.mjs} +1 -1
- package/dist/client/runtimeResponse-D2j2-mOk.mjs +3 -0
- package/dist/client/{runtimeResponse-9v8q2NBc.mjs → runtimeResponse-DtWSfWSZ.mjs} +1 -1
- package/dist/client/{shop-D1oTPDxm.mjs → shop-C3wM0Hr4.mjs} +3 -3
- package/dist/client/{shop-commerce-DyMZLC0a.mjs → shop-commerce-34YvcpbX.mjs} +14 -14
- package/dist/client/{shop-commerce-store-FODNS63D.mjs → shop-commerce-store-B7xHksOs.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-C4xcmFzZ.mjs → shop-discount-apply.state-BiBnozfO.mjs} +2 -2
- package/dist/client/{shop.client-CRgRulfI.mjs → shop.client-C0v88nLd.mjs} +14 -14
- package/dist/client/{shopShared-Bd_hy9ZO.mjs → shopShared-Ct-BRNez.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{noop-D11X-B6n.mjs → src-CCtanNlD.mjs} +317 -342
- package/dist/client/{timetableModel-UlWfP1gh.mjs → timetableModel-lhE29TNT.mjs} +65 -11
- package/dist/client/{types-DjWUR_O6.mjs → types-BEaKfam_.mjs} +65 -65
- package/dist/client/{useAvailableSlots-D-qoooLy.mjs → useAvailableSlots-BelJviOT.mjs} +2 -2
- package/dist/client/useDiscountCodeUi-rQRE1-Ho.mjs +196 -0
- package/dist/client/{useEventPagination-CQH2e9sQ.mjs → useEventPagination-C4rS2Xxl.mjs} +8 -8
- package/dist/client/{view-bGU1ws-m.mjs → view-LJVHVqsy.mjs} +4 -4
- package/dist/client/{display-D1oVR5Eh.mjs → wizardSteps-CNDsxeJH.mjs} +8935 -8913
- package/dist/preview-next/before-render.mjs +4 -3
- package/dist/preview-next/client/{PageSectionToolbar-D-Le7O3o.mjs → PageSectionToolbar-C4TtBPN-.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-DNy5j_ce.mjs → PreviewEditorSidebar-D6fkE59-.mjs} +5 -5
- package/dist/preview-next/client/{PreviewEditorUI-CzJvgbqt.mjs → PreviewEditorUI-amcDlj0O.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-xhJ6ca1i.mjs → PreviewShell-DeQjx4zk.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BmYO1TdT.mjs → SdkPreviewModeRuntime-Cx0SXnoX.mjs} +5 -5
- package/dist/preview-next/client/{previewAssistantSlot-BN93X9o1.mjs → previewAssistantSlot-aqpU34WI.mjs} +627 -498
- package/dist/preview-next/client/{previewChromeRoot-C51RQseo.mjs → previewChromeRoot-D3Gy_Rs0.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-oeGquJM-.mjs → sdk-runtime-Dzx_RrN7.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BGTAcPud.mjs → siteStyleAccess-LHedw83e.mjs} +1 -1
- package/dist/preview-next/client/{useAutosaveStatus-BMGXjGZq.mjs → useAutosaveStatus-DpSd9aVk.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-CTDoR_gQ.mjs → useOpenBlockForSetup-BGZn5AT1.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-BtdzkSUg.mjs → route-contract-DnL-FgSV.mjs} +28 -10
- package/dist/server/{Block.shared-Bp3OlOjj.mjs → Block.shared-BEbq6EwO.mjs} +4 -4
- package/dist/server/{bindings-DrbJuftt.mjs → bindings-Bly0dRs7.mjs} +36 -5
- package/dist/server/{client-Bf06n9oj.mjs → client-CGJ2ztYp.mjs} +1449 -1600
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/contentTypeResolver-B9vy8BrF.mjs +19 -0
- package/dist/server/data/dataLoaderContext.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{dataLoaderContext-B3fXA54R.mjs → dataLoaderContext-lMRTfG5Z.mjs} +1 -0
- package/dist/server/error-f4g44bKx.mjs +387 -0
- package/dist/server/index.mjs +3 -2
- package/dist/server/loadContent-BkK1w3QQ.mjs +692 -0
- package/dist/server/{loadPage-5iZefzDd.mjs → loadPage-DTLe0FEs.mjs} +22 -4
- package/dist/server/next.mjs +54 -94
- package/dist/server/{overrideResolution-CUHtm7tW.mjs → overrideResolution-Uy9Zp2Ks.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-GmPXForc.mjs → pageRenderPlan-JzxBnqfV.mjs} +7 -2
- package/dist/server/{pageRuntimeSupport-Dd8LFzfa.mjs → pageRuntimeSupport-DyNSd2Yj.mjs} +50 -2
- package/dist/server/{pageShared-tz-GVWft.mjs → pageShared-DU4ETFPS.mjs} +8 -50
- package/dist/server/{prebuild-JmsuYCIH.mjs → prebuild-8jNtDXmS.mjs} +5 -4
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Ce9DDwON.mjs → prefetchBlockData-xeMG42aw.mjs} +3 -2
- package/dist/server/{registry-D12XF_h1.mjs → registry-DH1VrsCl.mjs} +122 -19
- 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 +5 -4
- package/dist/server/rendering.mjs +9 -8
- package/dist/server/{resolveBlockData-D9yZIN3V.mjs → resolveBlockData-BN8tweTx.mjs} +24 -5
- package/dist/server/resolvePageContent-DnM16_f9.mjs +89 -0
- package/dist/server/routing.mjs +271 -57
- package/dist/server/server.mjs +3 -3
- package/dist/server/{loadContent-eaTY7RPg.mjs → servicePageContent-B-FezJmH.mjs} +709 -453
- package/dist/server/{validation-CLq5cw6M.mjs → validation-3jOzYdPL.mjs} +3 -3
- package/dist/server/{version-oPbhAx8E.mjs → version-8t0o6_jd.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_dts/footerPageOutline-D_XbQW_o.d.ts +0 -256
- package/dist/_dts/resolvePageContent-YT6ndha1.d.ts +0 -162
- package/dist/client/LocationMapActions-CiMtl1Ha.mjs +0 -62
- package/dist/client/MapDrawingSvg-BCZa3dpf.mjs +0 -200
- package/dist/client/course-DBEU9IA9.mjs +0 -244
- package/dist/client/duration-Q6_QNgiv.mjs +0 -37
- package/dist/client/event-details.client-BwASwKIq.mjs +0 -53
- package/dist/client/eventDetails-BzGOVDI-.mjs +0 -13
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +0 -3
- package/dist/client/useDiscountCodeUi-B9DODAkj.mjs +0 -237
- package/dist/client/view-DNX59QwM.mjs +0 -1372
- package/dist/server/resolvePageContent-CAELMBEJ.mjs +0 -438
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as RiverbankSiteConfig } from "./types-
|
|
3
|
-
import { _ as RiverbankClient } from "./types-
|
|
1
|
+
import { hr as Theme } from "./request-BjKBCS7t.js";
|
|
2
|
+
import { u as RiverbankSiteConfig } from "./types-B7e6Lmo5.js";
|
|
3
|
+
import { _ as RiverbankClient } from "./types-CT-KOxl_.js";
|
|
4
4
|
import { DataLoaderOverrides, DataLoaderSearchParams } from "./sdk/src/data/types.js";
|
|
5
|
-
import { c as SdkRenderingMode, k as BlockOverrideRegistrations, o as SdkOverrideOnlyRendering, u as SdkThemeRuntime } from "./Page-
|
|
6
|
-
import { i as LoadContentResult } from "./loadContent-
|
|
7
|
-
import { t as Metadata } from "./generatePageMetadata-
|
|
8
|
-
import { c as RiverbankContentLoadError } from "./resolvePageContent-
|
|
5
|
+
import { c as SdkRenderingMode, k as BlockOverrideRegistrations, o as SdkOverrideOnlyRendering, u as SdkThemeRuntime } from "./Page-lWenra5i.js";
|
|
6
|
+
import { i as LoadContentResult } from "./loadContent-CPKbFQyq.js";
|
|
7
|
+
import { t as Metadata } from "./generatePageMetadata-CBKd0cJ4.js";
|
|
8
|
+
import { c as RiverbankContentLoadError } from "./resolvePageContent-BqNyCHi8.js";
|
|
9
9
|
import { ReactNode } from "react";
|
|
10
10
|
|
|
11
11
|
//#region .cache/declarations/sdk/src/next/content-load-failure.d.ts
|
|
@@ -186,6 +186,7 @@ type CreateCatchAllPageBaseOptions = {
|
|
|
186
186
|
/**
|
|
187
187
|
* Function that returns the Riverbank client.
|
|
188
188
|
* Called fresh on each request to support different caching strategies.
|
|
189
|
+
* The catch-all installs Next caching on SDK root/server clients before reads.
|
|
189
190
|
*/
|
|
190
191
|
getClient: () => RiverbankClient;
|
|
191
192
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as RoutableContentResponse,
|
|
1
|
+
import { Ar as PublicMapLocationParams, Ir as CalendarWindowPage, Lr as CalendarWindowRequest, jr as PublicMapLocationResult, n as FrameworkCacheAdapter } from "./request-BjKBCS7t.js";
|
|
2
|
+
import { A as RoutableContentResponse, C as PublicPassesResponse, D as PublicTeamMembersResponse, I as SiteResponse, M as RouteOutcomeResponse, O as PublicWeeklySlotAvailabilityResponse, R as SitemapRoutesResponse, S as PublicMembershipsResponse, T as PublicProductsResponse, _ as PublicEndpointName, b as PublicFormResponse, g as PublicBookingServicesResponse, i as CheckRedirectResponse, j as RouteDecisionResponse, o as EntriesResponse, p as PageResponse, s as EntryResponse, v as PublicEventDetailsResponse, w as PublicProductCategorySelector, x as PublicFormsResponse, y as PublicEventsResponse } from "./contracts-CzWyAiJj.js";
|
|
3
3
|
|
|
4
4
|
//#region .cache/declarations/sdk/src/client/runtimeCacheKeys.d.ts
|
|
5
5
|
declare const publishedRuntimeCacheKeyBrand: unique symbol;
|
|
@@ -15,6 +15,7 @@ type PublishedRuntimeCachePayloadSchemaVersion = number & {
|
|
|
15
15
|
* entries written in the old shape until publish or a live success rewrites
|
|
16
16
|
* them.
|
|
17
17
|
*
|
|
18
|
+
* - 5: page reads carry the admitted destination envelope and availability dependencies.
|
|
18
19
|
* - 4: owned surface inputs use the shared revision transport envelope (#1627).
|
|
19
20
|
* - 3: hidden business-source maps and private locations are removed before public projection (#1611).
|
|
20
21
|
* - 2: pages carry intent-only `runtimeJoins` in place of compiled
|
|
@@ -433,6 +434,8 @@ type SdkCorrelationHeaders = Readonly<Partial<Record<SdkDefaultHeaderName, strin
|
|
|
433
434
|
* Configuration for creating a Riverbank CMS client
|
|
434
435
|
*/
|
|
435
436
|
interface RiverbankClientConfig {
|
|
437
|
+
/** Host cache effects. The @riverbankcms/sdk/next constructor installs Next caching automatically. */
|
|
438
|
+
frameworkCache?: FrameworkCacheAdapter;
|
|
436
439
|
/**
|
|
437
440
|
* Authentication configuration.
|
|
438
441
|
*
|
|
@@ -727,43 +730,6 @@ interface RiverbankClient {
|
|
|
727
730
|
siteId: string;
|
|
728
731
|
categories?: string;
|
|
729
732
|
} & SdkMethodOptions): Promise<PublicMembershipsResponse>;
|
|
730
|
-
/**
|
|
731
|
-
* Resolve an event occurrence by URL segment (date or UUID)
|
|
732
|
-
*
|
|
733
|
-
* @param params.siteId - The site ID
|
|
734
|
-
* @param params.eventSeriesIds - The event series that may own the occurrence
|
|
735
|
-
* @param params.segment - URL segment - either a date (YYYY-MM-DD) or UUID
|
|
736
|
-
*
|
|
737
|
-
* @example
|
|
738
|
-
* ```ts
|
|
739
|
-
* // Resolve occurrence by date
|
|
740
|
-
* const result = await client.resolveEventOccurrence({
|
|
741
|
-
* siteId: 'site-id',
|
|
742
|
-
* subject: { kind: 'eventSeries', eventSeriesId: 'event-series-id' },
|
|
743
|
-
* segment: '2025-01-15',
|
|
744
|
-
* });
|
|
745
|
-
*
|
|
746
|
-
* // Resolve occurrence by UUID
|
|
747
|
-
* const result = await client.resolveEventOccurrence({
|
|
748
|
-
* siteId: 'site-id',
|
|
749
|
-
* subject: { kind: 'eventSeries', eventSeriesId: 'event-series-id' },
|
|
750
|
-
* segment: 'abc123-...',
|
|
751
|
-
* });
|
|
752
|
-
* ```
|
|
753
|
-
*/
|
|
754
|
-
resolveEventOccurrence(params: {
|
|
755
|
-
siteId: string;
|
|
756
|
-
subject: EventPageSurfaceSubjectRefWire;
|
|
757
|
-
segment: string; /** Include draft subroutes; the API still validates preview credentials. */
|
|
758
|
-
preview?: boolean;
|
|
759
|
-
} & SdkMethodOptions): Promise<ResolveEventOccurrenceResponse>;
|
|
760
|
-
/** Resolve one run slug within a canonical parent Event. */
|
|
761
|
-
resolveEventRun(params: {
|
|
762
|
-
siteId: string;
|
|
763
|
-
subject: EventPageSurfaceSubjectRefWire;
|
|
764
|
-
segment: string;
|
|
765
|
-
preview?: boolean;
|
|
766
|
-
} & SdkMethodOptions): Promise<ResolveEventRunResponse>;
|
|
767
733
|
/**
|
|
768
734
|
* Check if a path has a configured redirect rule
|
|
769
735
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as TEMPLATE_BINDING_META_PATHS, i as ContentTypeConfig, r as ContentConfig } from "./content-types-
|
|
3
|
-
import { u as BindingTransformName } from "./index-
|
|
4
|
-
import { a as BlockFieldOptionsMap, d as SdkCustomBlock, i as BlockFieldExtensionsMap, r as BlockFieldExtension, u as RiverbankSiteConfig, x as SyncConfig } from "./types-
|
|
1
|
+
import { Ht as NavigationAuthoringLinkInput, Ut as NavigationConfigItemInput } from "./request-BjKBCS7t.js";
|
|
2
|
+
import { d as TEMPLATE_BINDING_META_PATHS, i as ContentTypeConfig, r as ContentConfig } from "./content-types-DL6GIvTm.js";
|
|
3
|
+
import { u as BindingTransformName } from "./index-DCiSHd-C.js";
|
|
4
|
+
import { a as BlockFieldOptionsMap, d as SdkCustomBlock, i as BlockFieldExtensionsMap, r as BlockFieldExtension, u as RiverbankSiteConfig, x as SyncConfig } from "./types-B7e6Lmo5.js";
|
|
5
5
|
import { z as z$1 } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region .cache/declarations/sdk/src/config/content-validation.d.ts
|
package/dist/client/{BlocksIslandsHydrator-D1n09bu-.mjs → BlocksIslandsHydrator-1XifJg6V.mjs}
RENAMED
|
@@ -77,23 +77,22 @@ function isSafeHttpsUrl(value) {
|
|
|
77
77
|
//#endregion
|
|
78
78
|
//#region src/rendering/islands/hydrateBlocksIslands.ts
|
|
79
79
|
const defaultEnhancerLoaders = {
|
|
80
|
-
accordion: () => import("./accordion-
|
|
81
|
-
headerSection: () => import("./headerSection-
|
|
82
|
-
carousel: () => import("./carousel-
|
|
83
|
-
form: () => import("./form-
|
|
84
|
-
"booking-form": () => import("./bookingForm-
|
|
85
|
-
"event-registration": () => import("./eventRegistration-
|
|
86
|
-
"event-
|
|
87
|
-
"event-
|
|
88
|
-
"event-
|
|
89
|
-
"
|
|
90
|
-
"product-
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
gifting: () => import("./gifting-Di9-SpwW.mjs")
|
|
80
|
+
accordion: () => import("./accordion-B6SqU49k.mjs"),
|
|
81
|
+
headerSection: () => import("./headerSection-DGcJfRS8.mjs"),
|
|
82
|
+
carousel: () => import("./carousel-C-YJliD-.mjs"),
|
|
83
|
+
form: () => import("./form-DyH2juYT.mjs"),
|
|
84
|
+
"booking-form": () => import("./bookingForm-drZBwEZW.mjs"),
|
|
85
|
+
"event-registration": () => import("./eventRegistration-COMHoRl6.mjs"),
|
|
86
|
+
"event-listing": () => import("./eventListing-BaNAoC_M.mjs"),
|
|
87
|
+
"event-calendar": () => import("./eventCalendar-CphYnImh.mjs"),
|
|
88
|
+
"event-combined": () => import("./eventCombined-BvqjASB_.mjs"),
|
|
89
|
+
"product-list": () => import("./productList-DE9GEFoZ.mjs"),
|
|
90
|
+
"product-detail": () => import("./productDetail-DjuFvkey.mjs"),
|
|
91
|
+
"cart": () => import("./cart-acGFWK9R.mjs"),
|
|
92
|
+
"checkout": () => import("./checkout-SEontwhy.mjs"),
|
|
93
|
+
shop: () => import("./shop-C3wM0Hr4.mjs"),
|
|
94
|
+
"newsletter-form": () => import("./newsletterForm-CoTXDNFS.mjs"),
|
|
95
|
+
gifting: () => import("./gifting-CIx4V378.mjs")
|
|
97
96
|
};
|
|
98
97
|
const DEFAULT_MAX_RETRIES = 2;
|
|
99
98
|
const RETRY_DELAYS_MS = [250, 1e3];
|
|
@@ -168,7 +167,7 @@ function isRetryableError(error) {
|
|
|
168
167
|
* a transport envelope, which keeps it out of the hydrator's first-load graph.
|
|
169
168
|
*/
|
|
170
169
|
async function restoreSurfaceTransport(rawProps) {
|
|
171
|
-
const { restoreRuntimeResponse } = await import("./runtimeResponse-
|
|
170
|
+
const { restoreRuntimeResponse } = await import("./runtimeResponse-D2j2-mOk.mjs");
|
|
172
171
|
return restoreRuntimeResponse(rawProps);
|
|
173
172
|
}
|
|
174
173
|
function decodeLoadedProps(mod, props) {
|
package/dist/client/{BookingMailingListNote-DSD4gS96.mjs → BookingMailingListNote-BsbEgagJ.mjs}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { i as BlockApiError, n as useBlockApi, r as useBlockApiOptional } from "./context-
|
|
5
|
-
import { r as ThemedButton } from "./ThemedButton-
|
|
6
|
-
import { f as NavigationHandOffPanel } from "./DemoBookingPortalAccess-
|
|
7
|
-
import { a as DemoPortalSignInLink, t as BookingQuestionFields } from "./BookingQuestionFields-
|
|
2
|
+
import { Jn as decideSignInReturn, Kn as clearSignInReturnDrafts, Qn as sweepExpiredSignInReturnDrafts, Xn as readSignInReturn, Yn as nextSignInReturnExpiry, Zn as signInReturnPath, ha as requestSignIn, za as RichText } from "./wizardSteps-CNDsxeJH.mjs";
|
|
3
|
+
import { t as assertNever } from "./src-CCtanNlD.mjs";
|
|
4
|
+
import { i as BlockApiError, n as useBlockApi, r as useBlockApiOptional } from "./context-DTrwaQtg.mjs";
|
|
5
|
+
import { r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
|
|
6
|
+
import { f as NavigationHandOffPanel } from "./DemoBookingPortalAccess-uA9H8LIL.mjs";
|
|
7
|
+
import { a as DemoPortalSignInLink, t as BookingQuestionFields } from "./BookingQuestionFields-C8IbeLHj.mjs";
|
|
8
8
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
9
|
-
import { i as requestDemoPortalMagicLink, r as buildPortalCallbackUrl } from "./demoPortalMagicLink-
|
|
9
|
+
import { i as requestDemoPortalMagicLink, r as buildPortalCallbackUrl } from "./demoPortalMagicLink-D0kOJYOX.mjs";
|
|
10
10
|
import { n as getBookingMailingListNoteCopy } from "./mailingListSignupCopy-CX4sDozG.mjs";
|
|
11
11
|
import * as React$1 from "react";
|
|
12
12
|
import { useCallback, useEffect, useId, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
package/dist/client/{BookingQuestionFields-B57oGPcj.mjs → BookingQuestionFields-C8IbeLHj.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { pn as toUtcIsoDateTimeString } from "./src-CCtanNlD.mjs";
|
|
3
3
|
import { s as getInitialFieldValue } from "./creditProducts-BQ1t1erI.mjs";
|
|
4
|
-
import { i as BlockApiError } from "./context-
|
|
5
|
-
import { i as ThemedButtonLink } from "./ThemedButton-
|
|
6
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
4
|
+
import { i as BlockApiError } from "./context-DTrwaQtg.mjs";
|
|
5
|
+
import { i as ThemedButtonLink } from "./ThemedButton-CnSa7o-I.mjs";
|
|
6
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-BZPLCgTU.mjs";
|
|
7
7
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
8
8
|
import { useCallback, useEffect, useState } from "react";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,15 +1,48 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
2
|
+
import { bn as formatEventPrice } from "./newsletter-form.interactive-DCO1lErD.mjs";
|
|
3
|
+
import { Da as formatEventRemainingPlaces, Na as isEventFull, Ua as eventDateOptions, no as groupEventsByDate, ro as resolveEventTimeZone, to as formatTime, xa as formatEventLocation, ya as eventPlaceName } from "./wizardSteps-CNDsxeJH.mjs";
|
|
4
|
+
import { Kt as formatDate, un as parseBookingLocalDate } from "./src-CCtanNlD.mjs";
|
|
5
|
+
import { r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-IqT_SVnX.mjs";
|
|
6
|
+
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
|
|
6
7
|
import { d as formatDateKey, v as isToday } from "./src-uwCpbHXG.mjs";
|
|
7
|
-
import { r as
|
|
8
|
-
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
|
|
9
|
-
import { c as resolveEventLinkProps, n as eventDisplayTitleText, s as resolveEventCta, t as eventDisplayTitle } from "./course-DBEU9IA9.mjs";
|
|
10
|
-
import { l as formatEventTeacherLine, r as EventItem } from "./EventItem-b8tVkNHA.mjs";
|
|
8
|
+
import { _ as resolveEventLinkProps, g as resolveEventCta, l as eventDisplayTitle, m as formatEventTeacherLine, r as EventItem, u as eventDisplayTitleText } from "./EventItem-Duhk1vnF.mjs";
|
|
11
9
|
import "react";
|
|
12
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
//#region ../core/src/duration.ts
|
|
12
|
+
const UNIT_LABELS_SINGULAR = {
|
|
13
|
+
minutes: "minute",
|
|
14
|
+
hours: "hour",
|
|
15
|
+
days: "day",
|
|
16
|
+
weeks: "week"
|
|
17
|
+
};
|
|
18
|
+
const UNIT_LABELS_PLURAL = {
|
|
19
|
+
minutes: "minutes",
|
|
20
|
+
hours: "hours",
|
|
21
|
+
days: "days",
|
|
22
|
+
weeks: "weeks"
|
|
23
|
+
};
|
|
24
|
+
function formatDurationUnitLabel(unit, count) {
|
|
25
|
+
return count === 1 ? UNIT_LABELS_SINGULAR[unit] : UNIT_LABELS_PLURAL[unit];
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region ../blocks/src/system/runtime/nodes/events/domain/duration.ts
|
|
29
|
+
function formatEventDuration(event, style = "legacy") {
|
|
30
|
+
const durationMinutes = Math.max(0, Math.round((Date.parse(event.endsAt) - Date.parse(event.startsAt)) / 6e4));
|
|
31
|
+
if (style === "readable" && durationMinutes >= 120) return readableDuration(durationMinutes);
|
|
32
|
+
if (durationMinutes < 120 || durationMinutes % 60 !== 0) return `${durationMinutes} min`;
|
|
33
|
+
return `${durationMinutes / 60} hrs`;
|
|
34
|
+
}
|
|
35
|
+
function readableDuration(minutes) {
|
|
36
|
+
const days = Math.floor(minutes / 1440);
|
|
37
|
+
const hours = Math.floor(minutes % 1440 / 60);
|
|
38
|
+
const remainder = minutes % 60;
|
|
39
|
+
return [
|
|
40
|
+
days ? `${days} ${formatDurationUnitLabel("days", days)}` : null,
|
|
41
|
+
hours ? `${hours} ${formatDurationUnitLabel("hours", hours)}` : null,
|
|
42
|
+
remainder ? `${remainder} min` : null
|
|
43
|
+
].filter(Boolean).join(" ");
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
13
46
|
//#region ../blocks/src/system/runtime/nodes/events/domain/monthDay.ts
|
|
14
47
|
/** Day facts are shared by the legacy grid and arrangement month Looks. */
|
|
15
48
|
function buildMonthDay(input) {
|
|
@@ -481,4 +514,4 @@ function CalendarNavigationChevron({ direction }) {
|
|
|
481
514
|
});
|
|
482
515
|
}
|
|
483
516
|
//#endregion
|
|
484
|
-
export { AgendaEventCard as a, MonthLookView as c, buildMonthDay as d, resolveMonthSelectedDay as f, WeekAgendaView as i, monthSlotParents as l, CALENDAR_LOAD_FAILURE_MESSAGE as n, CombinedLookFrame as o, CalendarLoadFailure as r, combinedClassName as s, CalendarNavigationChevron as t, CalendarDayHeaders as u };
|
|
517
|
+
export { AgendaEventCard as a, MonthLookView as c, buildMonthDay as d, resolveMonthSelectedDay as f, WeekAgendaView as i, monthSlotParents as l, CALENDAR_LOAD_FAILURE_MESSAGE as n, CombinedLookFrame as o, formatEventDuration as p, CalendarLoadFailure as r, combinedClassName as s, CalendarNavigationChevron as t, CalendarDayHeaders as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { S as clsx } from "./ThemedButton-
|
|
2
|
+
import { S as clsx } from "./ThemedButton-CnSa7o-I.mjs";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/shared/components/CheckboxChoice.tsx
|
package/dist/client/{DemoBookingPortalAccess-Olvrwi3Z.mjs → DemoBookingPortalAccess-uA9H8LIL.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { f as err, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { i as BlockApiError, n as useBlockApi } from "./context-
|
|
5
|
-
import { r as ThemedButton } from "./ThemedButton-
|
|
6
|
-
import { i as requestDemoPortalMagicLink, r as buildPortalCallbackUrl, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-
|
|
3
|
+
import { pa as leavePage } from "./wizardSteps-CNDsxeJH.mjs";
|
|
4
|
+
import { i as BlockApiError, n as useBlockApi } from "./context-DTrwaQtg.mjs";
|
|
5
|
+
import { r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
|
|
6
|
+
import { i as requestDemoPortalMagicLink, r as buildPortalCallbackUrl, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-D0kOJYOX.mjs";
|
|
7
7
|
import React, { useCallback, useEffect, useId, useRef, useState } from "react";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region ../blocks/src/system/runtime/api/types/discounts.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $t as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { $t as eventListWeekDays, Qt as buildEventListWeek, d as buildEventCalendarListingRender, in as buildEventRuntimeFilters } from "./newsletter-form.interactive-DCO1lErD.mjs";
|
|
3
|
+
import { Xa as formatEventHourLabel, no as groupEventsByDate } from "./wizardSteps-CNDsxeJH.mjs";
|
|
4
|
+
import { v as resolveCalendarReadProfile } from "./src-CCtanNlD.mjs";
|
|
5
|
+
import { f as resolveMonthSelectedDay, i as WeekAgendaView, r as CalendarLoadFailure, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-Bbqij1XQ.mjs";
|
|
6
|
+
import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-lhE29TNT.mjs";
|
|
7
|
+
import { r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
|
|
6
8
|
import { d as formatDateKey, m as getOrderedDayNames } from "./src-uwCpbHXG.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { i as
|
|
11
|
-
import { n as EventListingController } from "./EventListing.client-ViCnrNg4.mjs";
|
|
12
|
-
import { a as CalendarDayCell, c as MonthLookClient, d as useCalendarToday, i as useHydrationReady, l as EventModalProvider, o as useCalendarEvents, r as EventModals, s as useCalendarViewport, t as EventCombinedClient, u as useEventModal } from "./EventCombined.client-Ffu-aVOb.mjs";
|
|
9
|
+
import { u as eventDisplayTitleText } from "./EventItem-Duhk1vnF.mjs";
|
|
10
|
+
import { i as useEventCollectionFilters } from "./useEventPagination-C4rS2Xxl.mjs";
|
|
11
|
+
import { n as EventListingController } from "./EventListing.client-B5ln77jG.mjs";
|
|
12
|
+
import { a as CalendarDayCell, c as MonthLookClient, d as useCalendarToday, i as useHydrationReady, l as EventModalProvider, o as useCalendarEvents, r as EventModals, s as useCalendarViewport, t as EventCombinedClient, u as useEventModal } from "./EventCombined.client-HeCNlliq.mjs";
|
|
13
13
|
import { useEffect, useMemo, useState } from "react";
|
|
14
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
//#region ../blocks/src/system/runtime/nodes/events/shared/WeekTimetableView.tsx
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { an as getEventRuntimeFiltersKey, in as buildEventRuntimeFilters, s as eventListingBlockRuntime, zt as toError } from "./newsletter-form.interactive-DCO1lErD.mjs";
|
|
3
|
+
import { Ba as buildCalendarViewport, Ua as eventDateOptions, Va as eventCalendarWeekStart, no as groupEventsByDate, to as formatTime, ua as getBlockApiReadStage } from "./wizardSteps-CNDsxeJH.mjs";
|
|
4
|
+
import { Et as calendarMonthDate, Kt as formatDate, _ as planCalendarMonthRanges, d as calendarMonthKey, f as calendarPageResponseError, h as calendarWindowMonths$1, ln as getLocalScheduleDate, m as calendarWindowBounds, p as calendarQueryKey } from "./src-CCtanNlD.mjs";
|
|
5
|
+
import { a as AgendaEventCard, c as MonthLookView, d as buildMonthDay, f as resolveMonthSelectedDay, i as WeekAgendaView, o as CombinedLookFrame, r as CalendarLoadFailure, s as combinedClassName, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-Bbqij1XQ.mjs";
|
|
6
|
+
import { n as useBlockApi } from "./context-DTrwaQtg.mjs";
|
|
7
|
+
import { r as listLookSlot } from "./lookSurfaces-IqT_SVnX.mjs";
|
|
8
|
+
import { r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
|
|
6
9
|
import { _ as isSameCalendarDay, c as addMonths, d as formatDateKey, m as getOrderedDayNames, y as shiftCalendarAnchorDate } from "./src-uwCpbHXG.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import { r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
|
|
9
|
-
import { n as eventDisplayTitleText } from "./course-DBEU9IA9.mjs";
|
|
10
|
-
import { a as AgendaEventCard, c as MonthLookView, d as buildMonthDay, f as resolveMonthSelectedDay, i as WeekAgendaView, o as CombinedLookFrame, r as CalendarLoadFailure, s as combinedClassName, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-qXvsFYOg.mjs";
|
|
10
|
+
import { u as eventDisplayTitleText } from "./EventItem-Duhk1vnF.mjs";
|
|
11
11
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
12
12
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
13
|
-
import { t as TabBarFragment } from "./TabBarFragment-
|
|
14
|
-
import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-
|
|
13
|
+
import { t as TabBarFragment } from "./TabBarFragment-DlKQRhP4.mjs";
|
|
14
|
+
import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-C4rS2Xxl.mjs";
|
|
15
15
|
import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
16
16
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
17
17
|
//#region ../blocks/src/system/runtime/hooks/useCalendarToday.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { r as ThemedButton, x as SpinnerNode } from "./ThemedButton-CnSa7o-I.mjs";
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region \0rolldown/runtime.js
|
|
@@ -1,12 +1,178 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { Jt as EventQuickFacts, Kt as resolveCardListSchedule, Ut as CardListContentPart, Wt as CardListLeadDate, bn as formatEventPrice, qt as selectCardListPresentation } from "./newsletter-form.interactive-DCO1lErD.mjs";
|
|
3
|
+
import { $a as formatEventTimeRange, Ca as hasEventBookingClosedEarly, Da as formatEventRemainingPlaces, Ea as canJoinEventWaitlistOnAnyMode, Ja as formatEventCompactDateRail, Jo as resolveWholeSeriesBookingPhase, Na as isEventFull, Sa as resolveRuntimeEventDestination, Ua as eventDateOptions, eo as formatEventWeekdayTime, ja as getEventAvailabilityStatus, qo as orderedLiveRunSessions } from "./wizardSteps-CNDsxeJH.mjs";
|
|
4
|
+
import { T as assertNever } from "./creditProducts-BQ1t1erI.mjs";
|
|
5
|
+
import { r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-IqT_SVnX.mjs";
|
|
6
|
+
import { R as isCssColorLiteral, V as resolveTokenOrCssColorValue, st as getTextColorForBackground, z as resolveOnColorForThemeToken } from "./accessibleSurfaces-Wl8-_OVJ.mjs";
|
|
7
|
+
import { i as ThemedButtonLink, p as ClockIcon } from "./ThemedButton-CnSa7o-I.mjs";
|
|
8
8
|
import React from "react";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
//#region ../blocks/src/system/runtime/nodes/events/domain/cta.ts
|
|
11
|
+
/**
|
|
12
|
+
* Booking call-to-action resolution for events: where an event links to and
|
|
13
|
+
* what the button says. Sold-out and waitlist decisions come from capacity.ts
|
|
14
|
+
* so cards, rows and the wizard never disagree.
|
|
15
|
+
*/
|
|
16
|
+
function closedEventBookingLabel(reason) {
|
|
17
|
+
switch (reason) {
|
|
18
|
+
case "occurrence_cancelled":
|
|
19
|
+
case "series_cancelled": return "Cancelled";
|
|
20
|
+
case "occurrence_completed":
|
|
21
|
+
case "series_completed": return "Completed";
|
|
22
|
+
case "series_draft":
|
|
23
|
+
case "series_archived":
|
|
24
|
+
case "parent_archived":
|
|
25
|
+
case "parent_inconsistent":
|
|
26
|
+
case "already_started":
|
|
27
|
+
case "enrollment_closed": return "Registration closed";
|
|
28
|
+
default: return assertNever(reason);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function resolveEventHref(event) {
|
|
32
|
+
const destination = resolveRuntimeEventDestination(event);
|
|
33
|
+
return destination.kind === "external" ? destination.url : destination.path;
|
|
34
|
+
}
|
|
35
|
+
function resolveEventLinkProps(event) {
|
|
36
|
+
const href = resolveEventHref(event);
|
|
37
|
+
return resolveRuntimeEventDestination(event).kind === "external" ? {
|
|
38
|
+
href,
|
|
39
|
+
target: "_blank",
|
|
40
|
+
rel: "noopener noreferrer"
|
|
41
|
+
} : { href };
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Resolve the CTA state for an event.
|
|
45
|
+
* Shared by EventCard and EventCompactRow to keep sold-out, registration-closed,
|
|
46
|
+
* and course-specific defaults consistent.
|
|
47
|
+
*/
|
|
48
|
+
function resolveEventCta(event, buttonText) {
|
|
49
|
+
const isSoldOut = isEventFull(event);
|
|
50
|
+
const isExternal = resolveRuntimeEventDestination(event).kind === "external";
|
|
51
|
+
const href = resolveEventHref(event);
|
|
52
|
+
if (event.bookingAvailability.kind === "closed") {
|
|
53
|
+
const linksToClosedWholeSeriesDetails = event.bookingAvailability.reason === "enrollment_closed" && !isExternal;
|
|
54
|
+
return {
|
|
55
|
+
label: closedEventBookingLabel(event.bookingAvailability.reason),
|
|
56
|
+
href,
|
|
57
|
+
external: isExternal,
|
|
58
|
+
hidden: !linksToClosedWholeSeriesDetails
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
if (!isExternal && isSoldOut) {
|
|
62
|
+
if (canJoinEventWaitlistOnAnyMode(event)) return {
|
|
63
|
+
label: "Join waitlist",
|
|
64
|
+
href,
|
|
65
|
+
external: false,
|
|
66
|
+
hidden: false
|
|
67
|
+
};
|
|
68
|
+
return {
|
|
69
|
+
label: "Sold out",
|
|
70
|
+
href,
|
|
71
|
+
external: false,
|
|
72
|
+
hidden: true
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
return destinationCta(event, buttonText);
|
|
76
|
+
}
|
|
77
|
+
function destinationCta(event, buttonText) {
|
|
78
|
+
const destination = resolveRuntimeEventDestination(event);
|
|
79
|
+
return {
|
|
80
|
+
label: buttonText ?? (destination.kind === "external" ? destination.label : "Book"),
|
|
81
|
+
href: resolveEventHref(event),
|
|
82
|
+
external: destination.kind === "external",
|
|
83
|
+
hidden: false
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* A bounded date strip cannot prove a series sold out. Its destination owns date selection,
|
|
88
|
+
* so the card offers that destination and leaves capacity with the individual date rows.
|
|
89
|
+
* Whole-series bookings still have one shared capacity, as do ordinary occurrence cards.
|
|
90
|
+
*/
|
|
91
|
+
function resolveEventCardBooking(event, scope, buttonText, options) {
|
|
92
|
+
const closedCta = event.bookingAvailability.kind === "closed" ? resolveEventCta(event, buttonText) : renderClockClosedCta(event, options.now);
|
|
93
|
+
if (scope === "series" && event.bookingScope === "single_occurrence") {
|
|
94
|
+
const closed = seriesBookingClosed(event);
|
|
95
|
+
return {
|
|
96
|
+
cta: closed ? resolveEventCta(event, buttonText) : withoutPage(destinationCta(event, buttonText)),
|
|
97
|
+
availability: null,
|
|
98
|
+
closed
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
return closedCta ? {
|
|
102
|
+
cta: closedCta,
|
|
103
|
+
availability: null,
|
|
104
|
+
closed: true
|
|
105
|
+
} : {
|
|
106
|
+
cta: withoutPage(resolveEventCta(event, buttonText)),
|
|
107
|
+
availability: occurrenceCardAvailability(event, options.count),
|
|
108
|
+
closed: false
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
/** A native card with no page yet can't invite booking: there is nowhere to send the visitor. */
|
|
112
|
+
function withoutPage(cta) {
|
|
113
|
+
return !cta.external && !cta.hidden && cta.href === "" ? {
|
|
114
|
+
...cta,
|
|
115
|
+
label: "Details coming soon",
|
|
116
|
+
hidden: true
|
|
117
|
+
} : cta;
|
|
118
|
+
}
|
|
119
|
+
/** Only a series-wide closure closes its card; a cancelled or started date says nothing about later dates. */
|
|
120
|
+
function seriesBookingClosed(event) {
|
|
121
|
+
if (event.bookingAvailability.kind !== "closed") return false;
|
|
122
|
+
switch (event.bookingAvailability.reason) {
|
|
123
|
+
case "occurrence_cancelled":
|
|
124
|
+
case "occurrence_completed":
|
|
125
|
+
case "already_started": return false;
|
|
126
|
+
case "series_cancelled":
|
|
127
|
+
case "series_completed":
|
|
128
|
+
case "series_draft":
|
|
129
|
+
case "series_archived":
|
|
130
|
+
case "parent_archived":
|
|
131
|
+
case "parent_inconsistent":
|
|
132
|
+
case "enrollment_closed": return true;
|
|
133
|
+
default: return assertNever(event.bookingAvailability.reason);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
function occurrenceCardAvailability(event, count) {
|
|
137
|
+
const label = formatEventRemainingPlaces(event, {
|
|
138
|
+
full: "Sold out",
|
|
139
|
+
count
|
|
140
|
+
});
|
|
141
|
+
const availability = getEventAvailabilityStatus(event);
|
|
142
|
+
return label ? {
|
|
143
|
+
label,
|
|
144
|
+
status: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available"
|
|
145
|
+
} : null;
|
|
146
|
+
}
|
|
147
|
+
/** Preserve projected closure reasons; only an open native booking needs its clock rechecked. */
|
|
148
|
+
function renderClockClosedCta(event, now) {
|
|
149
|
+
if (!now || event.destination.kind !== "native") return null;
|
|
150
|
+
if (event.bookingScope !== "whole_series") return hasEventBookingClosedEarly(event, now) ? {
|
|
151
|
+
label: "Registration closed",
|
|
152
|
+
href: resolveEventHref(event),
|
|
153
|
+
external: false,
|
|
154
|
+
hidden: true
|
|
155
|
+
} : null;
|
|
156
|
+
const phase = resolveWholeSeriesBookingPhase(event.run, now);
|
|
157
|
+
if (phase.kind === "open") return null;
|
|
158
|
+
return {
|
|
159
|
+
label: (() => {
|
|
160
|
+
switch (phase.reason) {
|
|
161
|
+
case "cancelled": return "Cancelled";
|
|
162
|
+
case "completed": return "Completed";
|
|
163
|
+
case "in-progress":
|
|
164
|
+
case "bookings-closed":
|
|
165
|
+
case "enrolment-closed":
|
|
166
|
+
case "no-sessions": return "Registration closed";
|
|
167
|
+
default: return assertNever(phase.reason);
|
|
168
|
+
}
|
|
169
|
+
})(),
|
|
170
|
+
href: resolveEventHref(event),
|
|
171
|
+
external: false,
|
|
172
|
+
hidden: phase.reason !== "enrolment-closed" && phase.reason !== "bookings-closed"
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
//#endregion
|
|
10
176
|
//#region ../blocks/src/system/runtime/nodes/events/domain/people.ts
|
|
11
177
|
function formatTeamMemberNames(names) {
|
|
12
178
|
const normalized = names.map((name) => name.trim()).filter(Boolean);
|
|
@@ -23,6 +189,80 @@ function formatEventTeacherLine(event) {
|
|
|
23
189
|
return names ? `with ${names}` : null;
|
|
24
190
|
}
|
|
25
191
|
//#endregion
|
|
192
|
+
//#region ../blocks/src/system/runtime/nodes/events/domain/course.ts
|
|
193
|
+
function eventDisplayTitle(event) {
|
|
194
|
+
const run = event.bookingScope === "whole_series" ? event.run : void 0;
|
|
195
|
+
const courseTitle = run?.courseTitle?.trim();
|
|
196
|
+
if (!courseTitle) return {
|
|
197
|
+
title: event.title,
|
|
198
|
+
runName: null
|
|
199
|
+
};
|
|
200
|
+
const runName = run?.runName?.trim();
|
|
201
|
+
return {
|
|
202
|
+
title: courseTitle,
|
|
203
|
+
runName: runName && runName !== courseTitle ? runName : null
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Complete name for one dated occurrence: calendar cells, tooltips, modal
|
|
208
|
+
* headings and accessible labels. A title authored on the occurrence itself
|
|
209
|
+
* wins over the course and run name, which only describe the run as a whole.
|
|
210
|
+
*/
|
|
211
|
+
function eventDisplayTitleText(event) {
|
|
212
|
+
const occurrenceTitle = event.occurrenceTitle?.trim();
|
|
213
|
+
if (occurrenceTitle) return occurrenceTitle;
|
|
214
|
+
const { title, runName } = eventDisplayTitle(event);
|
|
215
|
+
return runName ? `${title}: ${runName}` : title;
|
|
216
|
+
}
|
|
217
|
+
const WEEK_MS = 10080 * 60 * 1e3;
|
|
218
|
+
/** A clock change moves a weekly session by an hour against UTC. */
|
|
219
|
+
const CLOCK_CHANGE_MS = 3600 * 1e3;
|
|
220
|
+
function sessionMinutes(session) {
|
|
221
|
+
return Math.round((Date.parse(session.endsAt) - Date.parse(session.startsAt)) / 6e4);
|
|
222
|
+
}
|
|
223
|
+
function isWeekly(sessions) {
|
|
224
|
+
return sessions.slice(1).every((session, index) => {
|
|
225
|
+
const previous = sessions[index];
|
|
226
|
+
return previous !== void 0 && Math.abs(Date.parse(session.startsAt) - Date.parse(previous.startsAt) - WEEK_MS) <= CLOCK_CHANGE_MS;
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
/** "1 hour", "3 hours", "45 minutes", "1 hour 30 minutes". */
|
|
230
|
+
function formatSessionLength(minutes) {
|
|
231
|
+
if (!Number.isFinite(minutes) || minutes <= 0) return null;
|
|
232
|
+
const hours = Math.floor(minutes / 60);
|
|
233
|
+
const rest = minutes % 60;
|
|
234
|
+
return [hours ? `${hours} hour${hours === 1 ? "" : "s"}` : null, rest ? `${rest} minute${rest === 1 ? "" : "s"}` : null].filter(Boolean).join(" ");
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* A course's sessions in one line, from the run's complete schedule rather
|
|
238
|
+
* than whichever occurrence rows were loaded: "6 weekly sessions, 1 hour
|
|
239
|
+
* each". The cadence and length are only stated when every session shares
|
|
240
|
+
* them. A one-session course has nothing to add to its date and time.
|
|
241
|
+
*/
|
|
242
|
+
function formatCourseSessions(event) {
|
|
243
|
+
if (event.bookingScope !== "whole_series" || !event.run) return null;
|
|
244
|
+
const sessions = orderedLiveRunSessions(event.run.sessions);
|
|
245
|
+
if (sessions.length < 2) return null;
|
|
246
|
+
const lengths = new Set(sessions.map(sessionMinutes));
|
|
247
|
+
const [onlyLength] = lengths;
|
|
248
|
+
const length = lengths.size === 1 && onlyLength !== void 0 ? formatSessionLength(onlyLength) : null;
|
|
249
|
+
const count = `${sessions.length} ${isWeekly(sessions) ? "weekly " : ""}sessions`;
|
|
250
|
+
return length ? `${count}, ${length} each` : count;
|
|
251
|
+
}
|
|
252
|
+
/** The dates a card doesn't list: "and 5 more". */
|
|
253
|
+
function formatMoreDates(remaining) {
|
|
254
|
+
return remaining > 0 ? `and ${remaining} more` : null;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* For a card that shows one course session's date: how many of the course's
|
|
258
|
+
* sessions come after it ("and 5 more"), or null for anything else.
|
|
259
|
+
*/
|
|
260
|
+
function formatCourseDatesAfter(event) {
|
|
261
|
+
if (event.bookingScope !== "whole_series" || !event.run) return null;
|
|
262
|
+
const shownMs = Date.parse(event.startsAt);
|
|
263
|
+
return formatMoreDates(orderedLiveRunSessions(event.run.sessions).filter((session) => Date.parse(session.startsAt) > shownMs).length);
|
|
264
|
+
}
|
|
265
|
+
//#endregion
|
|
26
266
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventCardIcons.tsx
|
|
27
267
|
function MapPinIcon({ className, size = 16, strokeWidth = 2 }) {
|
|
28
268
|
return /* @__PURE__ */ jsxs("svg", {
|
|
@@ -602,4 +842,4 @@ function cardItemSlotParents(arrangement) {
|
|
|
602
842
|
};
|
|
603
843
|
}
|
|
604
844
|
//#endregion
|
|
605
|
-
export { eventItemSlotParents as a, MapPinIcon as c, cardItemSlotParents as i,
|
|
845
|
+
export { resolveEventLinkProps as _, eventItemSlotParents as a, MapPinIcon as c, formatCourseDatesAfter as d, formatCourseSessions as f, resolveEventCta as g, resolveEventCardBooking as h, cardItemSlotParents as i, eventDisplayTitle as l, formatEventTeacherLine as m, CardListItems as n, eventCategoryBadge as o, formatMoreDates as p, EventItem as r, CalendarIcon as s, CardListCollection as t, eventDisplayTitleText as u };
|