@riverbankcms/sdk 0.178.0 → 0.180.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-DC_AvZwy.d.ts} +1 -1
- package/dist/_dts/{Page-C9i27wZA.d.ts → Page-DQOxVtp3.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DzGSR3jh.d.ts → SdkPreviewMode-DrLgY9_f.d.ts} +3 -2
- package/dist/_dts/{client-BnYN6XsH.d.ts → client-BP7VBRvs.d.ts} +281 -72
- package/dist/_dts/{content-types-CXj6lp3d.d.ts → content-types-1-K2qi__.d.ts} +2 -2
- package/dist/_dts/{contracts-BZLwkTwL.d.ts → contracts-Dfqz0Tcu.d.ts} +6 -116
- package/dist/_dts/{generatePageMetadata-ByEWwe9j.d.ts → generatePageMetadata-CSfAqmry.d.ts} +2 -2
- package/dist/_dts/{index-BE9dWIsr.d.ts → index-B0_2-65A.d.ts} +3 -3
- package/dist/_dts/{index-0HFgCnGz.d.ts → index-BeM5Ylwf.d.ts} +5 -3
- package/dist/_dts/{index-D9-N1d9v.d.ts → index-Blrw2oVk.d.ts} +1 -1
- package/dist/_dts/{index-cTpvQg_Q.d.ts → index-CB5Csefo.d.ts} +2 -2
- package/dist/_dts/{index-nnEdgc3Z.d.ts → index-DCcxLa8p.d.ts} +4 -2
- package/dist/_dts/{index-DCa-8TEY.d.ts → index-DQBGwBPx.d.ts} +1 -1
- package/dist/_dts/{index-CKDRr54L.d.ts → index-DQr358-m.d.ts} +4 -4
- package/dist/_dts/{loadContent-DYkVV6w4.d.ts → loadContent-BG2tLGXj.d.ts} +15 -13
- package/dist/_dts/{request-B20VRWHH.d.ts → request-P08l6mkr.d.ts} +3641 -994
- package/dist/_dts/{resolveBlockData-C_aK5GIS.d.ts → resolveBlockData-BDHc8lFs.d.ts} +8 -5
- package/dist/_dts/resolvePageContent-Y3IZBbtL.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 +3 -3
- 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-BvtNagjw.d.ts +583 -0
- package/dist/_dts/{types-CYcd15BQ.d.ts → types-BrK6SS5c.d.ts} +9 -7
- package/dist/_dts/{types-CMZ5mkpv.d.ts → types-DpEAnP4F.d.ts} +10 -39
- package/dist/_dts/{types-rm2M4LGx.d.ts → types-HAy1-Jjo.d.ts} +3 -3
- package/dist/_dts/{validation-BSxnRhyy.d.ts → validation-D6q3tOBA.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-D1n09bu-.mjs → BlocksIslandsHydrator-DJSmdNUJ.mjs} +17 -18
- package/dist/client/{BookingMailingListNote-DSD4gS96.mjs → BookingMailingListNote-CGxg37zx.mjs} +92 -60
- package/dist/client/{BookingQuestionFields-B57oGPcj.mjs → BookingQuestionFields-DXegGSnS.mjs} +26 -5
- package/dist/client/{CalendarNavigationChevron-qXvsFYOg.mjs → CalendarNavigationChevron-VfP50sYm.mjs} +42 -9
- package/dist/client/{CheckboxChoice-b-PJLEXe.mjs → CheckboxChoice-BZPLCgTU.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-Olvrwi3Z.mjs → DemoBookingPortalAccess-0Ua44F1j.mjs} +13 -8
- package/dist/client/{EventCalendar.client-DwFNFb-0.mjs → EventCalendar.client-CrpiyDSP.mjs} +10 -10
- package/dist/client/{EventCombined.client-Ffu-aVOb.mjs → EventCombined.client-D0me9wnz.mjs} +10 -10
- package/dist/client/{EventEmbeddedCheckoutStep-B18VbNS_.mjs → EventEmbeddedCheckoutStep-BDnicDM6.mjs} +1 -1
- package/dist/client/{EventItem-b8tVkNHA.mjs → EventItem-CJITrGkF.mjs} +249 -8
- package/dist/client/{EventListWeekNavigation-BxnJW_Gf.mjs → EventListWeekNavigation-BlEm_xjq.mjs} +1 -1
- package/dist/client/{EventListing.client-ViCnrNg4.mjs → EventListing.client-BNM_HuS0.mjs} +3 -3
- package/dist/client/{EventListing.view-CdjiepMf.mjs → EventListing.view-CXfb7RRy.mjs} +7 -16
- package/dist/client/{EventRegistrationPayment-BVd70XkH.mjs → EventRegistrationPayment-DiD9uYs6.mjs} +1439 -293
- package/dist/client/{Page-DqETUt-U.mjs → Page-bX7iy_MK.mjs} +24299 -20103
- package/dist/client/{ProtectedSubmitButton-C-ql101B.mjs → ProtectedSubmitButton-De6AzhE6.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-DkFnbzf_.mjs → SiteTermsAgreementField-BAdW5DvE.mjs} +23 -16
- package/dist/client/{BookingPanelArrangement--EkA1ZQd.mjs → StepIndicator-DCfdcb7s.mjs} +12 -12
- package/dist/client/{StepIndicator-JO2PS03n.mjs → StepIndicator-DCqorVne.mjs} +7 -7
- 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-wofJY8xY.mjs} +1 -1
- package/dist/client/{booking-form.client-ljJoDwuI.mjs → booking-form.client-CYl9NrqS.mjs} +412 -79
- package/dist/client/{bookingForm-DtEHwY4W.mjs → bookingForm-kgVWtuMe.mjs} +4 -4
- package/dist/client/bookings.mjs +40 -10
- package/dist/client/{boxStyleClassNames-BHoMAcun.mjs → boxStyleClassNames-CQHWz5gJ.mjs} +19 -19
- package/dist/client/{carousel-B3UhbFu7.mjs → carousel-BE1dEFsD.mjs} +2 -2
- package/dist/client/{carousel.client-h65clfUO.mjs → carousel.client-DMtGYTTM.mjs} +1 -1
- package/dist/client/{cart-DzOJfYOR.mjs → cart-BsjsdGZE.mjs} +3 -3
- package/dist/client/{cart.client-DBG77v-5.mjs → cart.client-DylGUWXY.mjs} +1 -1
- package/dist/client/{checkout-LmePoEgM.mjs → checkout-B5KxEUDr.mjs} +3 -3
- package/dist/client/{checkout.client-DmgZuLBT.mjs → checkout.client-C98fhch3.mjs} +1 -1
- package/dist/client/{checkoutUrls-CMZI8o_V.mjs → checkoutUrls-BMLYTf38.mjs} +1 -1
- package/dist/client/client.mjs +502 -341
- package/dist/client/constants-PfYJsEZF.mjs +101 -0
- package/dist/client/{context-CJIz4FdL.mjs → context-DtKdUdkO.mjs} +200 -27
- package/dist/client/{dateFormatting-UoXqBh10.mjs → dateFormatting-BaGPvQS3.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-6CgFZNvu.mjs → demoPortalMagicLink-B8eDjhuG.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-DaMo6len.mjs → enhanceHeaderSection-DvhD-8eE.mjs} +4 -4
- package/dist/client/{event-registration.client-b6APrFQe.mjs → event-registration.client-Du9a_xAN.mjs} +1982 -1519
- package/dist/client/{eventCalendar-DJYz7yZf.mjs → eventCalendar-Di9wDfzl.mjs} +4 -4
- package/dist/client/{eventCombined-j9VCVgMW.mjs → eventCombined-CNW6nBsB.mjs} +4 -4
- package/dist/client/{eventListing-DWgpGuFM.mjs → eventListing-CQMxQ8By.mjs} +4 -4
- package/dist/client/{eventRegistration-DCinRot3.mjs → eventRegistration-CprS9k1D.mjs} +4 -4
- package/dist/client/events-9LPvwbWp.mjs +28 -0
- package/dist/client/{form-BBBtRwvy.mjs → form-Zl1_8RJ6.mjs} +3 -3
- package/dist/client/{form.client-CZeRQLGF.mjs → form.client-TaMUys6I.mjs} +5 -5
- package/dist/client/{form.parts-DhGGv4_L.mjs → form.parts-CpNPbPPM.mjs} +3 -3
- package/dist/client/{formatDate-DVFVDcDW.mjs → formatDate-hhI1-tzt.mjs} +1 -1
- package/dist/client/gifting/client.mjs +6 -6
- package/dist/client/{gifting-Di9-SpwW.mjs → gifting-DNVa7-Wj.mjs} +4 -4
- package/dist/client/{gifting.client-CjT5PrAZ.mjs → gifting.client-CFUq3GVx.mjs} +5 -5
- package/dist/client/{gifting.parts-ffP6mjMd.mjs → gifting.parts-CDQvxA4A.mjs} +2 -2
- package/dist/client/{headerSection-jjAvtSZk.mjs → headerSection-Cg6083rn.mjs} +2 -2
- package/dist/client/{lookSurfaces-C2VzJfyG.mjs → lookSurfaces-gJ3OqPf9.mjs} +258 -86
- package/dist/client/{newsletter-form.client-D45frHoa.mjs → newsletter-form.client-VuL9I96G.mjs} +6 -6
- package/dist/client/{shop.interactive-D7wky1GL.mjs → newsletter-form.interactive-7Of3eYn0.mjs} +4023 -4029
- package/dist/client/{newsletter-form.parts-CHdg82ct.mjs → newsletter-form.parts-OBqsfT24.mjs} +2 -2
- package/dist/client/{newsletterForm-tS465_vl.mjs → newsletterForm-BkJe_RTv.mjs} +3 -3
- package/dist/client/portal/client.mjs +301 -117
- package/dist/client/{product-detail.client-DIWSeW7P.mjs → product-detail.client-B2hdxqJN.mjs} +1 -1
- package/dist/client/{product-list.client-BRf14h_e.mjs → product-list.client-CCEgu9rx.mjs} +1 -1
- package/dist/client/{productDetail-gxF5whea.mjs → productDetail-CRX_ZRfS.mjs} +3 -3
- package/dist/client/{productList-B9t0XJrN.mjs → productList-BAdJ6z5S.mjs} +3 -3
- package/dist/client/{propsDecoder-Db8wAmgr.mjs → propsDecoder-BLKAmX0S.mjs} +2 -48
- package/dist/client/{registry.server-Bn0gE0uP.mjs → registry.server-Bj9cmHHF.mjs} +10464 -9113
- 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-Z45OLLEX.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-Bok1Oy50.mjs → routeIslandApiConfig-DHpTTK77.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-BKsgxm_-.mjs} +3 -3
- package/dist/client/{shop-commerce-DyMZLC0a.mjs → shop-commerce-Cbtk_kUW.mjs} +14 -14
- package/dist/client/{shop-commerce-store-FODNS63D.mjs → shop-commerce-store-B-rv2p5h.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-C4xcmFzZ.mjs → shop-discount-apply.state-CiCDLNh7.mjs} +2 -2
- package/dist/client/{shop.client-CRgRulfI.mjs → shop.client-Rnqa74Tk.mjs} +14 -14
- package/dist/client/{shopShared-Bd_hy9ZO.mjs → shopShared-BaBfhjCq.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{noop-D11X-B6n.mjs → src-o7WEvbK1.mjs} +398 -308
- package/dist/client/{timetableModel-UlWfP1gh.mjs → timetableModel-BOff1Kk5.mjs} +259 -11
- package/dist/client/{types-DjWUR_O6.mjs → types-BEaKfam_.mjs} +65 -65
- package/dist/client/{useAvailableSlots-D-qoooLy.mjs → useAvailableSlots-DQJNh10g.mjs} +3 -23
- package/dist/client/useDiscountCodeUi-BcFQRI_7.mjs +196 -0
- package/dist/client/{useEventPagination-CQH2e9sQ.mjs → useEventPagination-BvdcexDC.mjs} +8 -8
- package/dist/client/{view-bGU1ws-m.mjs → view-CTBwSpKv.mjs} +4 -4
- package/dist/client/{display-D1oVR5Eh.mjs → wizardSteps-CWIQyRIw.mjs} +10263 -9078
- package/dist/preview-next/before-render.mjs +5 -3
- package/dist/preview-next/client/{LocationPickerEnvironment-BHAT81Wx.mjs → LocationPickerEnvironment-BW3dRFIv.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-B52hkdIZ.mjs → MapLibreEditMap-Db9BHyXh.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-D-Le7O3o.mjs → PageSectionToolbar-CG6KwITA.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-DNy5j_ce.mjs → PreviewEditorSidebar-BGBqrC9m.mjs} +8 -7
- package/dist/preview-next/client/{PreviewEditorUI-CzJvgbqt.mjs → PreviewEditorUI-Bwkyx28x.mjs} +5 -5
- package/dist/preview-next/client/{PreviewShell-xhJ6ca1i.mjs → PreviewShell-DB1l6JNU.mjs} +7 -7
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BmYO1TdT.mjs → SdkPreviewModeRuntime-Bs6Cwzr3.mjs} +15 -7
- package/dist/preview-next/client/{lucide-react-McYZeSMb.mjs → lucide-react-00FF_oar.mjs} +13 -1
- package/dist/preview-next/client/{previewAssistantSlot-BN93X9o1.mjs → previewAssistantSlot-T-oDD_Dd.mjs} +6252 -2461
- package/dist/preview-next/client/{previewChromeRoot-C51RQseo.mjs → previewChromeRoot-BeukcDRy.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-oeGquJM-.mjs → sdk-runtime-ceDW_9q2.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BGTAcPud.mjs → siteStyleAccess-CCB9bScO.mjs} +35 -23
- package/dist/preview-next/client/{useAutosaveStatus-BMGXjGZq.mjs → useAutosaveStatus-D4o0CKq7.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-CTDoR_gQ.mjs → useOpenBlockForSetup-Seccrvwu.mjs} +2 -2
- package/dist/preview-next/container-responsive.css +103 -10
- 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-FwFj8zGL.mjs} +71 -10
- package/dist/server/{Block.shared-Bp3OlOjj.mjs → Block.shared-D6WrRCxX.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-DFEM1a85.mjs → ThemeScopeCore-BQzjDQ2q.mjs} +8 -1
- package/dist/server/{bindings-DrbJuftt.mjs → bindings-CS6ih1Yc.mjs} +37 -6
- package/dist/server/{client-Bf06n9oj.mjs → client-m0ylCj_f.mjs} +436 -526
- 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-vgWMz1uD.mjs +694 -0
- package/dist/server/{loadPage-5iZefzDd.mjs → loadPage-CIOL3-9t.mjs} +22 -4
- package/dist/server/{lookMediaFrame-CaH018pK.mjs → lookMediaFrame-m-91jGGn.mjs} +36 -0
- package/dist/server/next.mjs +67 -94
- package/dist/server/{overrideResolution-CUHtm7tW.mjs → overrideResolution-BiHmsvTZ.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-GmPXForc.mjs → pageRenderPlan-DJo_obpi.mjs} +15 -8
- package/dist/server/{pageRuntimeSupport-Dd8LFzfa.mjs → pageRuntimeSupport-BnSuoHON.mjs} +54 -2
- package/dist/server/{pageShared-tz-GVWft.mjs → pageShared-BJuOzxzn.mjs} +554 -304
- package/dist/server/{prebuild-JmsuYCIH.mjs → prebuild-Cr8p8T7V.mjs} +5 -4
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Ce9DDwON.mjs → prefetchBlockData-BZh57-ua.mjs} +5 -3
- package/dist/server/{registry-D12XF_h1.mjs → registry-CvhFwbXJ.mjs} +358 -95
- 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-Cv_W1LVB.mjs} +61 -34
- package/dist/server/resolvePageContent-BWKUZUIn.mjs +89 -0
- package/dist/server/{responseMedia-F-ElH2Rd.mjs → responseMedia-KRKguBC5.mjs} +56 -1
- package/dist/server/routing.mjs +271 -57
- package/dist/server/server.mjs +3 -3
- package/dist/server/{loadContent-eaTY7RPg.mjs → servicePageContent-CRKbTm_7.mjs} +719 -459
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/{validation-CLq5cw6M.mjs → validation-DCl-FCk_.mjs} +4 -4
- package/dist/server/{version-oPbhAx8E.mjs → version-DT_R5JAR.mjs} +1 -1
- package/dist/styles/index.css +504 -27
- 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/constants-4o4_hl34.mjs +0 -6
- 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,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-7Of3eYn0.mjs";
|
|
3
|
+
import { Ba as canJoinEventWaitlistOnAnyMode, Ga as getEventAvailabilityStatus, Ia as resolveRuntimeEventDestination, La as hasEventBookingClosedEarly, Va as formatEventRemainingPlaces, co as formatEventCompactDateRail, ds as orderedLiveRunSessions, fs as resolveWholeSeriesBookingPhase, mo as formatEventWeekdayTime, po as formatEventTimeRange, qa as isEventFull, ro as eventDateOptions } from "./wizardSteps-CWIQyRIw.mjs";
|
|
4
|
+
import { T as assertNever } from "./creditProducts-BQ1t1erI.mjs";
|
|
5
|
+
import { r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-gJ3OqPf9.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", {
|
|
@@ -598,8 +838,9 @@ function cardItemSlotParents(arrangement) {
|
|
|
598
838
|
"item-media": "item",
|
|
599
839
|
dates: body,
|
|
600
840
|
date: arrangement === "slides" || arrangement === "track" ? "item-media" : "dates",
|
|
601
|
-
availability: body
|
|
841
|
+
availability: body,
|
|
842
|
+
facts: body
|
|
602
843
|
};
|
|
603
844
|
}
|
|
604
845
|
//#endregion
|
|
605
|
-
export { eventItemSlotParents as a, MapPinIcon as c, cardItemSlotParents as i,
|
|
846
|
+
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 };
|
package/dist/client/{EventListWeekNavigation-BxnJW_Gf.mjs → EventListWeekNavigation-BlEm_xjq.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as listLookSlot } from "./lookSurfaces-
|
|
2
|
+
import { r as listLookSlot } from "./lookSurfaces-gJ3OqPf9.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventListWeekNavigation.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-
|
|
4
|
-
import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-
|
|
2
|
+
import { in as buildEventRuntimeFilters } from "./newsletter-form.interactive-7Of3eYn0.mjs";
|
|
3
|
+
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-BlEm_xjq.mjs";
|
|
4
|
+
import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-BvdcexDC.mjs";
|
|
5
5
|
import { useMemo } from "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region ../blocks/src/system/runtime/nodes/events/EventListing.client.tsx
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Jt as EventQuickFacts,
|
|
3
|
-
import {
|
|
4
|
-
import { r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-
|
|
5
|
-
import { r as boxStyleClassNames } from "./boxStyleClassNames-
|
|
6
|
-
import { i as ThemedButtonLink,
|
|
7
|
-
import {
|
|
8
|
-
import { c as MapPinIcon, l as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-b8tVkNHA.mjs";
|
|
9
|
-
import { n as MapDrawingSvg } from "./MapDrawingSvg-BCZa3dpf.mjs";
|
|
2
|
+
import { Jt as EventQuickFacts, Xt as MediaNodeServer, bn as formatEventPrice, nn as weekColumnDays, tn as groupEventsByWeek } from "./newsletter-form.interactive-7Of3eYn0.mjs";
|
|
3
|
+
import { Cs as EVENT_ADDRESS_AFTER_BOOKING_LABEL, Pa as eventVenuePlace, co as formatEventCompactDateRail, do as formatEventNextDateFact, go as groupEventsByDate, io as eventLocalDateKey, oo as formatDate, po as formatEventTimeRange, ro as eventDateOptions, vo as ImagePresets } from "./wizardSteps-CWIQyRIw.mjs";
|
|
4
|
+
import { r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-gJ3OqPf9.mjs";
|
|
5
|
+
import { r as boxStyleClassNames } from "./boxStyleClassNames-CQHWz5gJ.mjs";
|
|
6
|
+
import { i as ThemedButtonLink, p as ClockIcon } from "./ThemedButton-CnSa7o-I.mjs";
|
|
7
|
+
import { _ as resolveEventLinkProps, c as MapPinIcon, d as formatCourseDatesAfter, f as formatCourseSessions, g as resolveEventCta, h as resolveEventCardBooking, l as eventDisplayTitle, m as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-CJITrGkF.mjs";
|
|
10
8
|
import "react";
|
|
11
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
10
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventCard.tsx
|
|
@@ -64,7 +62,7 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
|
|
|
64
62
|
formattedTime,
|
|
65
63
|
hasImage,
|
|
66
64
|
headingLevel: cardHeadingLevel,
|
|
67
|
-
mapSlot
|
|
65
|
+
mapSlot,
|
|
68
66
|
priceText,
|
|
69
67
|
showMap,
|
|
70
68
|
showSummary,
|
|
@@ -76,13 +74,6 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
|
|
|
76
74
|
})]
|
|
77
75
|
});
|
|
78
76
|
};
|
|
79
|
-
function resolveVenueMapSlot(venue, override) {
|
|
80
|
-
return override ?? (venue?.drawing ? /* @__PURE__ */ jsx(MapDrawingSvg, {
|
|
81
|
-
drawing: venue.drawing,
|
|
82
|
-
label: venue.name,
|
|
83
|
-
height: 255
|
|
84
|
-
}) : null);
|
|
85
|
-
}
|
|
86
77
|
function EventCardMedia(props) {
|
|
87
78
|
if (props.lookPresentation.lookSlots !== void 0) return /* @__PURE__ */ jsx(EventLookDate, {
|
|
88
79
|
event: props.event,
|