@riverbankcms/sdk 0.166.0 → 0.167.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/CHANGELOG.md +7 -0
- package/README.md +5 -0
- package/dist/_dts/{BlocksIslandsHydrator-CPvN6RBW.d.ts → BlocksIslandsHydrator-Dgb-ptph.d.ts} +1 -1
- package/dist/_dts/{Page-rW0xgQCA.d.ts → Page-Bs3WxFgr.d.ts} +8 -8
- package/dist/_dts/{SdkPreviewMode-BWZh2WCk.d.ts → SdkPreviewMode-DtUCsaHY.d.ts} +2 -2
- package/dist/_dts/{client-D4BXQEZc.d.ts → client-CwsI23pj.d.ts} +9 -1
- package/dist/_dts/{content-types-MUzta0l9.d.ts → content-types-CAeP_-cV.d.ts} +2 -2
- package/dist/_dts/{contracts-Cl9Xh1DO.d.ts → contracts-BXHCiF-b.d.ts} +8 -5
- package/dist/_dts/{footerPageOutline-4BgLKehl.d.ts → footerPageOutline-Bb2gbppW.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BsmJ0qKh.d.ts → generatePageMetadata-DaBBDx7M.d.ts} +2 -2
- package/dist/_dts/{index-ahxQCUc7.d.ts → index-5_jf52sZ.d.ts} +2 -2
- package/dist/_dts/{index-Bmboeb49.d.ts → index-C20yUyob.d.ts} +1 -1
- package/dist/_dts/{index-DdcwPqQN.d.ts → index-CS6b1B-c.d.ts} +4 -4
- package/dist/_dts/{index-wbBZ0awa.d.ts → index-ChpjHK0U.d.ts} +498 -74
- package/dist/_dts/{index-kQ5xkM6X.d.ts → index-D7EbliE3.d.ts} +1 -1
- package/dist/_dts/{index--qflsCiy.d.ts → index-DeHDwMfu.d.ts} +3 -3
- package/dist/_dts/{index-mMMvLLAJ.d.ts → index-RugyUnqR.d.ts} +207 -11
- package/dist/_dts/{index-BgJ2aU5c.d.ts → index-bDln38Hm.d.ts} +2 -2
- package/dist/_dts/{loadContent-BG5IAV-V.d.ts → loadContent-CTqcL7CS.d.ts} +7 -7
- package/dist/_dts/{resolveBlockData-Cmcle_zV.d.ts → resolveBlockData-C3s9WMPs.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BRJUTFoH.d.ts → resolvePageContent-JPwgRxwh.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/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 +6 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/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 +8 -5
- 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-DuiHLiPo.d.ts → types-BlaCuPLr.d.ts} +2 -2
- package/dist/_dts/{types-BX3Y-EW3.d.ts → types-CwtTcaQP.d.ts} +3 -3
- package/dist/_dts/{types-DF54stxv.d.ts → types-D-WElMCy.d.ts} +7 -7
- package/dist/_dts/{validation-Bxi0f81D.d.ts → validation-Y5wD9fGK.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DwiRGtgh.mjs → BlocksIslandsHydrator-DFqkx158.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-DOWOZYlK.mjs → BookingMailingListNote-CCVXX1LN.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-5a0x0vcC.mjs → CalendarNavigationChevron-DQwJ7BPx.mjs} +165 -16
- package/dist/client/{DemoBookingPortalAccess-B2qLkPRB.mjs → DemoBookingPortalAccess-DdkY86qI.mjs} +3 -3
- package/dist/client/{EventCalendar.client-BhADnDCg.mjs → EventCalendar.client-DAeQPV76.mjs} +10 -29
- package/dist/client/{EventCombined.client-jik34zTb.mjs → EventCombined.client-Bus9R0bj.mjs} +136 -60
- package/dist/client/{EventItem-CMKrtkT7.mjs → EventItem-DPBLjGwj.mjs} +53 -6
- package/dist/client/{EventListWeekNavigation-AGHjxy6C.mjs → EventListWeekNavigation-D6cwU82_.mjs} +1 -1
- package/dist/client/{EventListing.client-DZeDM0Qt.mjs → EventListing.client-Bogi_SnJ.mjs} +3 -3
- package/dist/client/{EventListing.view-3BBRdNVa.mjs → EventListing.view-CEumpN7i.mjs} +13 -40
- package/dist/client/{EventRegistrationPayment-CpNcpga4.mjs → EventRegistrationPayment-CIQw6vNy.mjs} +13 -8
- package/dist/client/{LocationMapActions-D5-H9ooQ.mjs → LocationMapActions-BVO-qx4q.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-C30geMl-.mjs → MapDrawingSvg-CcGaFawl.mjs} +22 -2
- package/dist/client/{Page-DNDZLRlB.mjs → Page-D4_H_u9V.mjs} +22658 -21604
- package/dist/client/{StepIndicator-Bin7YR0A.mjs → StepIndicator-Dptantmg.mjs} +1 -1
- package/dist/client/{TabBarFragment-_IAthZVM.mjs → TabBarFragment-BxEGsKUx.mjs} +18 -18
- package/dist/client/{accordion-uVqNowRX.mjs → accordion--EUHmEGa.mjs} +1 -1
- package/dist/client/{booking-form.client-w-PvyWBv.mjs → booking-form.client-BCXwOnhc.mjs} +9 -9
- package/dist/client/{bookingForm-DNMojb6A.mjs → bookingForm-sHHcdism.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-C8kxI3Dm.mjs → carousel-Cp9xPBFZ.mjs} +1 -1
- package/dist/client/{cart-DCxjE3Is.mjs → cart-CCZZC-Lq.mjs} +3 -3
- package/dist/client/{cart.client-Ceeng8fB.mjs → cart.client-B7JfA19I.mjs} +1 -1
- package/dist/client/{checkout-B0EKbeVv.mjs → checkout-CipmYL4A.mjs} +3 -3
- package/dist/client/{checkout.client-DtPj3fYk.mjs → checkout.client-DraalWdH.mjs} +1 -1
- package/dist/client/client.mjs +89 -6
- package/dist/client/{context-n6IZigd3.mjs → context-Cv3QHjAF.mjs} +4 -1
- package/dist/client/{cta-CDeAwYoN.mjs → cta-P2vJVTEn.mjs} +1 -1
- package/dist/client/{dateFormatting-BWPzdeZE.mjs → dateFormatting-D8D47VT4.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BdXu0fj-.mjs → demoPortalMagicLink-CXWZoV-d.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-VHfv8M6-.mjs → enhanceHeaderSection-BkAro1DJ.mjs} +3 -3
- package/dist/client/{event-details.client-Cfr1_Cj4.mjs → event-details.client-dLmyuPap.mjs} +1 -1
- package/dist/client/{event-registration.client-BhygihpQ.mjs → event-registration.client-BEhC2_-Y.mjs} +11 -14
- package/dist/client/{eventCalendar-B4XCL9u6.mjs → eventCalendar-FBMS2Cpb.mjs} +4 -4
- package/dist/client/{eventCombined-DVjz4wdf.mjs → eventCombined-BrBhUvGe.mjs} +4 -4
- package/dist/client/{eventDetails-B0DA1Nw1.mjs → eventDetails-C7WUrbZ2.mjs} +2 -2
- package/dist/client/{eventListing-2-xjn2nz.mjs → eventListing-Bih-BgQM.mjs} +4 -4
- package/dist/client/{eventRegistration-ng4iGo9O.mjs → eventRegistration-DfTlqGbl.mjs} +4 -4
- package/dist/client/{form-BeNQiZ2V.mjs → form-Bw1uuiUs.mjs} +3 -3
- package/dist/client/{form.client-BFdCKlp7.mjs → form.client-pZ-9gN33.mjs} +3 -3
- package/dist/client/{form.parts-C7gLK3jh.mjs → form.parts-PXlu6XQO.mjs} +1 -1
- package/dist/client/{formatDate-CWfelfMt.mjs → formatDate-DI3DP48e.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-CalNAShx.mjs → headerSection-BpJYUMd6.mjs} +2 -2
- package/dist/client/{newsletter-form.client-Dq7GHGXU.mjs → newsletter-form.client-CSoP0cGR.mjs} +4 -4
- package/dist/client/{newsletter-form.parts-BSMDYQiS.mjs → newsletter-form.parts-DDbX_Sj0.mjs} +1 -1
- package/dist/client/{newsletterForm-snzZ4L6i.mjs → newsletterForm-vCxYRar_.mjs} +3 -3
- package/dist/client/{noop-D-RG9eR3.mjs → noop-ByVtIWf4.mjs} +28 -4
- package/dist/client/portal/client.mjs +8 -8
- package/dist/client/{product-detail.client-Gu0INDb7.mjs → product-detail.client-7Pi6avM-.mjs} +1 -1
- package/dist/client/{product-list.client-BmH40fNf.mjs → product-list.client-DEad-Pma.mjs} +1 -1
- package/dist/client/{productDetail-DsPUmJ0z.mjs → productDetail-G1SMXG13.mjs} +3 -3
- package/dist/client/{productList-DjGrjOwD.mjs → productList-B21TGdpT.mjs} +3 -3
- package/dist/client/{propsDecoder-kTVPMnfD.mjs → propsDecoder-B3vIBkex.mjs} +3 -4
- package/dist/client/{registry.server-CKK_RXZo.mjs → registry.server-B8aQhJpO.mjs} +205 -178
- package/dist/client/rendering/client.mjs +25 -25
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-BcjTX-7h.mjs → richText-coerce-DHkBtO0G.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CaXesATK.mjs → routeIslandApiConfig-DbHX4JOS.mjs} +1 -1
- package/dist/client/{shop-commerce-BxYYXLNK.mjs → shop-commerce-B2UmrQg_.mjs} +9 -9
- package/dist/client/{shop-commerce-store-Dp3Nl5YK.mjs → shop-commerce-store-B7n-Z7nY.mjs} +1 -1
- package/dist/client/{shop-DLufMauE.mjs → shop-mqyoOvOK.mjs} +3 -3
- package/dist/client/{shop.client-CBy9_alG.mjs → shop.client-BH-BBnA9.mjs} +10 -10
- package/dist/client/{shop.interactive-BM0NRsFQ.mjs → shop.interactive-mdM3UMWG.mjs} +30 -6
- package/dist/client/{shopShared-lS23OQE-.mjs → shopShared-CXF5wxdg.mjs} +2 -2
- package/dist/client/site-styles-CMCUxsIM.mjs +3 -0
- package/dist/client/{site-styles-DELkUk9s.mjs → site-styles-D56hT2u1.mjs} +1637 -406
- package/dist/client/{timetableModel-DzRWikCU.mjs → timetableModel-CrC80EOG.mjs} +11 -156
- package/dist/client/{useAvailableSlots-C3LphWDX.mjs → useAvailableSlots-C4LOaI_Z.mjs} +2 -2
- package/dist/client/{useBookingNowIso-Da-f9iHw.mjs → useBookingNowIso-BDmWkYUW.mjs} +1 -1
- package/dist/client/{useDiscountApply-SLoWhcen.mjs → useDiscountApply-6Q0nToVA.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-D6a2BJij.mjs → useDiscountCodeUi-CM-DTX5X.mjs} +1 -1
- package/dist/client/{useEventPagination-Ccr4TZlm.mjs → useEventPagination-Bcs89BR5.mjs} +5 -5
- package/dist/client/{view-DAVEoe8A.mjs → view-BN-fxyfq.mjs} +16 -11
- package/dist/client/{view-8w4GA8rf.mjs → view-Dh2tGoS0.mjs} +3 -3
- package/dist/client/{wizardSteps-DNpajrAH.mjs → wizardSteps-DtkhwKXK.mjs} +17 -10
- package/dist/preview-next/client/{ArrangementLookControls-DY5TzhEa.mjs → ArrangementLookControls-D4VjPs-r.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-DdnhmdFO.mjs → PreviewEditorSidebar-Ckr2zk_L.mjs} +309 -111
- package/dist/preview-next/client/{PreviewEditorUI-C7ZmYE33.mjs → PreviewEditorUI-KOZgw_gS.mjs} +5 -5
- package/dist/preview-next/client/{PreviewShell-DnO38NaL.mjs → PreviewShell-CyO2V4kB.mjs} +58 -8
- package/dist/preview-next/client/{SdkPreviewModeRuntime-D2OtoRMB.mjs → SdkPreviewModeRuntime-DW3uKvNF.mjs} +7 -7
- package/dist/preview-next/client/{SiteChromeCustomizeButton-eIu2RejJ.mjs → SiteChromeCustomizeButton-CU9VD-7O.mjs} +17439 -16381
- package/dist/preview-next/client/{previewAssistantSlot-Bp1AlAxx.mjs → previewAssistantSlot-DBi-WybM.mjs} +2014 -381
- package/dist/preview-next/client/{previewChromeSurface-D2cREDJ5.mjs → previewChromeSurface-BhkUJst9.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DK0PUhLL.mjs → sdk-runtime-BjCb6lOn.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus--Pw8vnef.mjs → useAutosaveStatus-CKxTaC3j.mjs} +1 -1
- package/dist/preview-next/client/{useBlockCustomizeControls-C1Rl73N4.mjs → useBlockCustomizeControls-B7MLTjBX.mjs} +1 -92
- package/dist/preview-next/client/{useOpenBlockForSetup-CL3842FM.mjs → useOpenBlockForSetup-BTUc0g9X.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-Bq7SUX3K.mjs → route-contract-Bv3nkdpV.mjs} +83 -0
- package/dist/server/{Block.shared-wXr7Iwhs.mjs → Block.shared-4fMqzltx.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-BI2mld9R.mjs → ThemeScopeCore-C72VC_lR.mjs} +756 -64
- package/dist/server/{accessibleSurfaces-CuN8U_iU.mjs → accessibleSurfaces-B_Y_dA20.mjs} +300 -97
- package/dist/server/{bindings-DjdUq9FR.mjs → bindings-ConMYJ2U.mjs} +1 -1
- package/dist/server/{client-07UeMDzA.mjs → client-Cot-H5fQ.mjs} +88 -5
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-ClpaSlBb.mjs → loadContent-BkaWYEwt.mjs} +4 -4
- package/dist/server/{loadPage-BwtVqpaA.mjs → loadPage-kviUdH8c.mjs} +2 -2
- package/dist/server/metadata.mjs +5 -1
- package/dist/server/next/revalidate.mjs +9 -4
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-3YSDPtDe.mjs → opaqueSurface-BTnS09GS.mjs} +2 -2
- package/dist/server/{overrideResolution-Du_w3LY4.mjs → overrideResolution-itXZCXs7.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-BShULdc2.mjs → pageRenderPlan-CDyn7iLy.mjs} +132 -25
- package/dist/server/{pageRuntimeSupport-C4Dh5-mB.mjs → pageRuntimeSupport-DZ6cLxrM.mjs} +2 -2
- package/dist/server/{pageShared-HdKFBpaX.mjs → pageShared-Q_Vij87H.mjs} +11752 -11549
- package/dist/server/{parseThemeForPersistence-CJMrEkze.mjs → parseThemeForPersistence-CDrF51tJ.mjs} +2 -2
- package/dist/server/{prebuild-Cl-bkaMA.mjs → prebuild-DOG4MkOy.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-C4yUmz-r.mjs → prefetchBlockData-DlprLLsc.mjs} +3 -33
- package/dist/server/{registry-TFPJdGQi.mjs → registry-BPFcpn6k.mjs} +1326 -181
- 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-OHlOXlOE.mjs → resolveBlockData-BHvfGD4y.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-lry2ORwX.mjs → resolveButtonColourStates-OXFRGn5M.mjs} +15 -5
- package/dist/server/responseMedia-D8J3VAFs.mjs +115 -0
- package/dist/server/{schema-C2PqHrMo.mjs → schema-DEizlyi4.mjs} +4 -3
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -2
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{validation-DIBFZeMB.mjs → validation-bl6WcAi_.mjs} +6 -6
- package/dist/server/{version-DZWZM1H6.mjs → version-BLXZ31S-.mjs} +1 -1
- package/dist/styles/index.css +696 -25
- package/package.json +1 -1
- package/dist/client/events-BmqPeeQm.mjs +0 -20
- package/dist/client/site-styles-D8jEPGxA.mjs +0 -3
- package/dist/server/publicProducts-W9hDRwjz.mjs +0 -64
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { Cn as formatEventRemainingPlaces, Dn as getEventAvailabilityStatus, Nr as listLookSlot, fn as formatEventCompactDateRail, gn as formatEventTimeRange, jr as listItemPresentation, sn as eventDateOptions } from "./wizardSteps-
|
|
2
|
+
import { Qt as selectCardListPresentation, Xt as CardListLeadDate, Yt as CardListContentPart, Zt as resolveCardListSchedule, on as formatEventPrice } from "./shop.interactive-mdM3UMWG.mjs";
|
|
3
|
+
import { Cn as formatEventRemainingPlaces, Dn as getEventAvailabilityStatus, Nr as listLookSlot, fn as formatEventCompactDateRail, gn as formatEventTimeRange, jr as listItemPresentation, sn as eventDateOptions } from "./wizardSteps-DtkhwKXK.mjs";
|
|
4
|
+
import { Ci as isCssColorLiteral, Ei as resolveTokenOrCssColorValue, Xi as getTextColorForBackground, wi as resolveOnColorForThemeToken } from "./site-styles-D56hT2u1.mjs";
|
|
4
5
|
import { h as ClockIcon, i as ThemedButtonLink } from "./ThemedButton-8jUc02mZ.mjs";
|
|
5
|
-
import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-
|
|
6
|
+
import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-P2vJVTEn.mjs";
|
|
6
7
|
import React from "react";
|
|
7
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
9
|
//#region ../blocks/src/system/runtime/nodes/events/domain/people.ts
|
|
@@ -70,6 +71,37 @@ function CalendarIcon({ className, size = 16, strokeWidth = 2 }) {
|
|
|
70
71
|
});
|
|
71
72
|
}
|
|
72
73
|
//#endregion
|
|
74
|
+
//#region ../blocks/src/system/runtime/nodes/events/shared/eventCategoryBadge.ts
|
|
75
|
+
/** The category's badge, when the event has a category: its name in its own colour, with readable text. */
|
|
76
|
+
function eventCategoryBadge(category) {
|
|
77
|
+
return category ? {
|
|
78
|
+
label: category.name,
|
|
79
|
+
style: categoryBadgeStyle(category.color ?? null)
|
|
80
|
+
} : null;
|
|
81
|
+
}
|
|
82
|
+
function categoryBadgeStyle(background) {
|
|
83
|
+
const normalized = background?.trim() ?? "";
|
|
84
|
+
if (!normalized) return {
|
|
85
|
+
backgroundColor: "rgb(var(--tb-accent, 0 0 0))",
|
|
86
|
+
color: "rgb(var(--tb-onAccent, 255 255 255))"
|
|
87
|
+
};
|
|
88
|
+
if (isCssColorLiteral(normalized)) return {
|
|
89
|
+
backgroundColor: normalized,
|
|
90
|
+
color: readableTextColor(normalized)
|
|
91
|
+
};
|
|
92
|
+
return {
|
|
93
|
+
backgroundColor: resolveTokenOrCssColorValue(normalized),
|
|
94
|
+
color: resolveOnColorForThemeToken(normalized) ?? "rgb(var(--tb-onAccent, 255 255 255))"
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
function readableTextColor(background) {
|
|
98
|
+
try {
|
|
99
|
+
return getTextColorForBackground(background);
|
|
100
|
+
} catch {
|
|
101
|
+
return "rgb(var(--tb-onAccent, 255 255 255))";
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
73
105
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventItem.tsx
|
|
74
106
|
/** Arrangement content choices are data, ready for other live offering lists to reuse. */
|
|
75
107
|
const eventItemParts = {
|
|
@@ -98,6 +130,7 @@ const eventItemParts = {
|
|
|
98
130
|
],
|
|
99
131
|
grid: [
|
|
100
132
|
"image",
|
|
133
|
+
"chips",
|
|
101
134
|
"date",
|
|
102
135
|
"title",
|
|
103
136
|
"meta",
|
|
@@ -171,11 +204,12 @@ function renderCalendarItem(props) {
|
|
|
171
204
|
const facts = eventItemFacts(props);
|
|
172
205
|
const Tag = props.as ?? eventItemTag(props.arrangement);
|
|
173
206
|
const root = props.arrangement === "grid" ? "item" : props.continued ? "row-continued" : "row";
|
|
207
|
+
const chipsOnPhoto = parts.includes("image") && Boolean(props.event.presentation?.image);
|
|
174
208
|
const body = (part) => [
|
|
175
209
|
"title",
|
|
176
210
|
"meta",
|
|
177
211
|
"description"
|
|
178
|
-
].includes(part) || part === "action" && props.arrangement === "grid";
|
|
212
|
+
].includes(part) || part === "chips" && !chipsOnPhoto || part === "action" && props.arrangement === "grid";
|
|
179
213
|
const renderPart = (part) => /* @__PURE__ */ jsx(React.Fragment, { children: renderEventItemContentPart({
|
|
180
214
|
part,
|
|
181
215
|
props,
|
|
@@ -185,7 +219,7 @@ function renderCalendarItem(props) {
|
|
|
185
219
|
...listLookSlot(props, root),
|
|
186
220
|
"data-availability": facts.availability,
|
|
187
221
|
children: [
|
|
188
|
-
parts.filter((part) => part === "image" || part === "date").map(renderPart),
|
|
222
|
+
parts.filter((part) => part === "image" || part === "chips" && chipsOnPhoto || part === "date").map(renderPart),
|
|
189
223
|
/* @__PURE__ */ jsx("div", {
|
|
190
224
|
...listLookSlot(props, props.arrangement === "grid" ? "item-body" : "what"),
|
|
191
225
|
children: parts.filter(body).map(renderPart)
|
|
@@ -212,6 +246,7 @@ function eventItemTag(arrangement) {
|
|
|
212
246
|
function renderEventItemContentPart({ part, props, facts }) {
|
|
213
247
|
switch (part) {
|
|
214
248
|
case "image": return renderEventItemImage(props, facts.link);
|
|
249
|
+
case "chips": return renderEventItemCategory(props);
|
|
215
250
|
case "date": return /* @__PURE__ */ jsxs("time", {
|
|
216
251
|
...listLookSlot(props, "date"),
|
|
217
252
|
dateTime: props.event.startsAt,
|
|
@@ -297,6 +332,18 @@ function renderEventItemImage(props, link) {
|
|
|
297
332
|
presentation: props
|
|
298
333
|
});
|
|
299
334
|
}
|
|
335
|
+
/** The same badge the older event cards show: the category's name in its own colour. */
|
|
336
|
+
function renderEventItemCategory(props) {
|
|
337
|
+
const badge = eventCategoryBadge(props.event.eventCategory);
|
|
338
|
+
return badge ? /* @__PURE__ */ jsx("div", {
|
|
339
|
+
...listLookSlot(props, "chips"),
|
|
340
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
341
|
+
...listLookSlot(props, "chip"),
|
|
342
|
+
style: badge.style,
|
|
343
|
+
children: badge.label
|
|
344
|
+
})
|
|
345
|
+
}) : null;
|
|
346
|
+
}
|
|
300
347
|
function renderEventItemAction(props) {
|
|
301
348
|
const cta = resolveEventCta(props.event, props.buttonText);
|
|
302
349
|
const slot = props.arrangement === "grid" ? "item-actions" : "action";
|
|
@@ -493,4 +540,4 @@ function cardItemSlotParents(arrangement) {
|
|
|
493
540
|
};
|
|
494
541
|
}
|
|
495
542
|
//#endregion
|
|
496
|
-
export { eventItemSlotParents as a,
|
|
543
|
+
export { eventItemSlotParents as a, MapPinIcon as c, cardItemSlotParents as i, formatEventTeacherLine as l, CardListItems as n, eventCategoryBadge as o, EventItem as r, CalendarIcon as s, CardListCollection as t };
|
package/dist/client/{EventListWeekNavigation-AGHjxy6C.mjs → EventListWeekNavigation-D6cwU82_.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Nr as listLookSlot } from "./wizardSteps-
|
|
2
|
+
import { Nr as listLookSlot } from "./wizardSteps-DtkhwKXK.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 { Ht as buildEventRuntimeFilters } from "./shop.interactive-mdM3UMWG.mjs";
|
|
3
|
+
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-D6cwU82_.mjs";
|
|
4
|
+
import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-Bcs89BR5.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,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { Nr as listLookSlot, cn as eventLocalDateKey, fn as formatEventCompactDateRail, gn as formatEventTimeRange, hn as formatEventNextDateFact, jr as listItemPresentation, qt as ImagePresets, sn as eventDateOptions, un as formatDate } from "./wizardSteps-
|
|
4
|
-
import {
|
|
2
|
+
import { $t as MediaNodeServer, an as weekColumnDays, on as formatEventPrice } from "./shop.interactive-mdM3UMWG.mjs";
|
|
3
|
+
import { Nr as listLookSlot, cn as eventLocalDateKey, fn as formatEventCompactDateRail, gn as formatEventTimeRange, hn as formatEventNextDateFact, jr as listItemPresentation, qt as ImagePresets, sn as eventDateOptions, un as formatDate } from "./wizardSteps-DtkhwKXK.mjs";
|
|
4
|
+
import { $n as boxBackgroundSchema, Qn as boxBackgroundOverlaySchema, Wt as normalizeCardRole, er as runtimeBoxBackgroundSchema } from "./site-styles-D56hT2u1.mjs";
|
|
5
5
|
import { h as ClockIcon, i as ThemedButtonLink } from "./ThemedButton-8jUc02mZ.mjs";
|
|
6
|
-
import { n as resolveEventCta, r as resolveEventLinkProps, t as resolveEventCardBooking } from "./cta-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { n as resolveEventCta, r as resolveEventLinkProps, t as resolveEventCardBooking } from "./cta-P2vJVTEn.mjs";
|
|
7
|
+
import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-CcGaFawl.mjs";
|
|
8
|
+
import { c as MapPinIcon, l as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-DPBLjGwj.mjs";
|
|
9
9
|
import "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
//#region ../blocks/src/system/transforms/registry/core.ts
|
|
@@ -359,13 +359,6 @@ function boxStyleClassNames(value, options) {
|
|
|
359
359
|
}
|
|
360
360
|
//#endregion
|
|
361
361
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventCard.tsx
|
|
362
|
-
/** The category's badge, when the event has a category. */
|
|
363
|
-
function eventCardCategoryBadge(category) {
|
|
364
|
-
return category ? {
|
|
365
|
-
label: category.name,
|
|
366
|
-
style: getCategoryBadgeStyle(category.color ?? null)
|
|
367
|
-
} : null;
|
|
368
|
-
}
|
|
369
362
|
/**
|
|
370
363
|
* EventCard Component
|
|
371
364
|
*
|
|
@@ -539,11 +532,12 @@ function EventCardContent(props) {
|
|
|
539
532
|
function EventCardVenue(props) {
|
|
540
533
|
const venue = props.showVenue ? props.event.venue : null;
|
|
541
534
|
if (!venue) return null;
|
|
535
|
+
const { place } = eventVenuePlace(venue);
|
|
542
536
|
return /* @__PURE__ */ jsxs("div", {
|
|
543
537
|
className: "rb-mb-3",
|
|
544
538
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
545
539
|
className: "rb-flex rb-items-center rb-gap-2 rb-caption",
|
|
546
|
-
children: [/* @__PURE__ */ jsx(MapPinIcon, { className: "rb-shrink-0" }), /* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx("strong", { children: venue.name }),
|
|
540
|
+
children: [/* @__PURE__ */ jsx(MapPinIcon, { className: "rb-shrink-0" }), /* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx("strong", { children: venue.name }), place ? ` · ${place}` : null] })]
|
|
547
541
|
}), props.showMap && props.allowMap && venue.location && props.mapSlot && /* @__PURE__ */ jsx("div", {
|
|
548
542
|
className: "rb-mt-2",
|
|
549
543
|
children: props.mapSlot
|
|
@@ -612,28 +606,6 @@ function eventCardOrientationClass(orientation) {
|
|
|
612
606
|
case "vertical": return "event-card--vertical";
|
|
613
607
|
}
|
|
614
608
|
}
|
|
615
|
-
function getCategoryBadgeStyle(background) {
|
|
616
|
-
const normalized = background?.trim() ?? "";
|
|
617
|
-
if (!normalized) return {
|
|
618
|
-
backgroundColor: "rgb(var(--tb-accent, 0 0 0))",
|
|
619
|
-
color: "rgb(var(--tb-onAccent, 255 255 255))"
|
|
620
|
-
};
|
|
621
|
-
if (isCssColorLiteral(normalized)) return {
|
|
622
|
-
backgroundColor: normalized,
|
|
623
|
-
color: pickReadableTextColor(normalized)
|
|
624
|
-
};
|
|
625
|
-
return {
|
|
626
|
-
backgroundColor: resolveTokenOrCssColorValue(normalized),
|
|
627
|
-
color: resolveOnColorForThemeToken(normalized) ?? "rgb(var(--tb-onAccent, 255 255 255))"
|
|
628
|
-
};
|
|
629
|
-
}
|
|
630
|
-
function pickReadableTextColor(background) {
|
|
631
|
-
try {
|
|
632
|
-
return getTextColorForBackground(background);
|
|
633
|
-
} catch {
|
|
634
|
-
return "rgb(var(--tb-onAccent, 255 255 255))";
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
609
|
function EventLookDate({ event, ...presentation }) {
|
|
638
610
|
const date = formatEventCompactDateRail(event.startsAt, eventDateOptions(event));
|
|
639
611
|
return /* @__PURE__ */ jsxs("time", {
|
|
@@ -677,7 +649,7 @@ function eventCardFacts({ event, presentation, headingLevel, buttonText, cardRol
|
|
|
677
649
|
summary,
|
|
678
650
|
image,
|
|
679
651
|
category,
|
|
680
|
-
categoryBadge: showCategory ?
|
|
652
|
+
categoryBadge: showCategory ? eventCategoryBadge(category) : null,
|
|
681
653
|
hasImage: Boolean(showImage && image),
|
|
682
654
|
dateFact: resolveEventCardDateFact({
|
|
683
655
|
event,
|
|
@@ -946,10 +918,11 @@ function hasArrangementPanel(display) {
|
|
|
946
918
|
return display.state === "ready" && display.lookSlots !== void 0 && display.listLayout === "compact";
|
|
947
919
|
}
|
|
948
920
|
/** Nearest slot parents in EventListBody and WeekColumns. */
|
|
949
|
-
|
|
921
|
+
/** `root` is the declared slot the listing renders inside (a Look may paint the block's layout), or null. */
|
|
922
|
+
function eventListSlotParents(arrangement, root = null) {
|
|
950
923
|
return {
|
|
951
|
-
list: arrangement === "compact" ? "panel" :
|
|
952
|
-
panel:
|
|
924
|
+
list: arrangement === "compact" ? "panel" : root,
|
|
925
|
+
panel: root,
|
|
953
926
|
group: "list",
|
|
954
927
|
"group-label": "group",
|
|
955
928
|
"group-date": "group-label",
|
package/dist/client/{EventRegistrationPayment-CpNcpga4.mjs → EventRegistrationPayment-CIQw6vNy.mjs}
RENAMED
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as getEligibilityFlowFlags, At as getTicketSelectionTotal, C as resolveGuestNextStepCheck, E as resolveRegistrationTicketContinuation, Er as resolveEventRegistrationScopedEvents, Ft as getRegistrationStartAt, G as resolveRegistrationTarget, H as findPreSelectedEvent, It as toRegistrationEvents, J as beginWaitlistInvitation, K as resolveRouteRequiresPayment, Kr as resolveBookingSignupOffer, L as calculateEventRegistrationPreviewTotal, M as resolveEventRegistrationSubmitPlan, Mt as hasValidPricingOptionSelection, Nt as normalizeTicketSelectionLines, O as visitorHoldsOwnPlace, Ot as getSingleSelectedPricingOptionId, Q as getCurrentTicketSelection, Rt as toWholeSeriesRegistrationEvents, S as planRegistrationDetailsContinuation, St as getVisibleTicketTypes, U as resolveDiscountContext, W as resolveEventRequiresPayment, X as invitationSubmission, Y as createRegistrationDraftData, Z as formatCentsAsCurrencyInput, a as registrationPresentation, at as resolveHeldTicketPlaces, bt as getPortalSubjectEmail, d as decideEventChoice, et as getRegistrationOccurrenceId, f as getDeclinedPass, ft as findSelectedTicketType, g as decideEventRegistrationPayment, h as buildEventRegistrationPaymentOptionsViewModel, i as registrationPaymentRoute, ii as publicEventPricingStrategy, it as parseCurrencyInputToCents, m as registrationFlowReducer, nt as getSlidingScaleSelectionMessage, o as registrationRoute, ot as shouldLoadRegistrationOptions, p as isRegistrationLocked, q as toRegistrationRequestSubject, rt as getTicketSelectionRemainingPlaces, st as validateFormData, tt as getSlidingScaleForEvent, u as createInitialRegistrationFlowState, w as resolveRegistrationAdmission, wt as transformRegistrationOptionsResponse, x as planRegistrationDetailsCheck, y as getTicketSelectionPurpose, yt as getImplicitSingleTicketType } from "./wizardSteps-
|
|
3
|
-
import {
|
|
2
|
+
import { $ as getEligibilityFlowFlags, At as getTicketSelectionTotal, C as resolveGuestNextStepCheck, E as resolveRegistrationTicketContinuation, Er as resolveEventRegistrationScopedEvents, Ft as getRegistrationStartAt, G as resolveRegistrationTarget, H as findPreSelectedEvent, It as toRegistrationEvents, J as beginWaitlistInvitation, K as resolveRouteRequiresPayment, Kr as resolveBookingSignupOffer, L as calculateEventRegistrationPreviewTotal, M as resolveEventRegistrationSubmitPlan, Mt as hasValidPricingOptionSelection, Nt as normalizeTicketSelectionLines, O as visitorHoldsOwnPlace, Ot as getSingleSelectedPricingOptionId, Q as getCurrentTicketSelection, Rt as toWholeSeriesRegistrationEvents, S as planRegistrationDetailsContinuation, St as getVisibleTicketTypes, U as resolveDiscountContext, W as resolveEventRequiresPayment, X as invitationSubmission, Y as createRegistrationDraftData, Z as formatCentsAsCurrencyInput, a as registrationPresentation, at as resolveHeldTicketPlaces, bt as getPortalSubjectEmail, d as decideEventChoice, et as getRegistrationOccurrenceId, f as getDeclinedPass, ft as findSelectedTicketType, g as decideEventRegistrationPayment, h as buildEventRegistrationPaymentOptionsViewModel, i as registrationPaymentRoute, ii as publicEventPricingStrategy, it as parseCurrencyInputToCents, m as registrationFlowReducer, nt as getSlidingScaleSelectionMessage, o as registrationRoute, ot as shouldLoadRegistrationOptions, p as isRegistrationLocked, q as toRegistrationRequestSubject, rt as getTicketSelectionRemainingPlaces, st as validateFormData, tt as getSlidingScaleForEvent, u as createInitialRegistrationFlowState, w as resolveRegistrationAdmission, wt as transformRegistrationOptionsResponse, x as planRegistrationDetailsCheck, y as getTicketSelectionPurpose, yt as getImplicitSingleTicketType } from "./wizardSteps-DtkhwKXK.mjs";
|
|
3
|
+
import { Mt as resolveBookingBusinessTimeZone, bt as inferSiteDateLocale } from "./noop-ByVtIWf4.mjs";
|
|
4
4
|
import { t as assertNever } from "./src-DjnxOjXG.mjs";
|
|
5
|
-
import { a as siteTermsFailureKind, o as useSiteTermsAgreement, s as eventSiteTermsSurface } from "./DemoBookingPortalAccess-
|
|
5
|
+
import { a as siteTermsFailureKind, o as useSiteTermsAgreement, s as eventSiteTermsSurface } from "./DemoBookingPortalAccess-DdkY86qI.mjs";
|
|
6
6
|
import { t as generateUuidV4 } from "./uuid-BETKW8rS.mjs";
|
|
7
|
-
import { t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
8
|
-
import { r as usePolling } from "./BookingMailingListNote-
|
|
7
|
+
import { t as useDiscountCodeUi } from "./useDiscountCodeUi-CM-DTX5X.mjs";
|
|
8
|
+
import { r as usePolling } from "./BookingMailingListNote-CCVXX1LN.mjs";
|
|
9
9
|
import { n as EVENT_REGISTRATION_CHECKOUT_ATTEMPT_PARAM, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
10
|
-
import { n as useBlockApi, r as BlockApiError } from "./context-
|
|
11
|
-
import { t as useBookingNowIso } from "./useBookingNowIso-
|
|
12
|
-
import { o as storeDemoBookingPass, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-
|
|
10
|
+
import { n as useBlockApi, r as BlockApiError } from "./context-Cv3QHjAF.mjs";
|
|
11
|
+
import { t as useBookingNowIso } from "./useBookingNowIso-BDmWkYUW.mjs";
|
|
12
|
+
import { o as storeDemoBookingPass, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-CXWZoV-d.mjs";
|
|
13
13
|
import { Suspense, lazy, useCallback, useEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
14
14
|
import { z } from "zod";
|
|
15
15
|
import { jsx } from "react/jsx-runtime";
|
|
16
16
|
//#region ../commerce/src/purchase/event-registration-errors.ts
|
|
17
17
|
const eventRegistrationErrors = {
|
|
18
|
+
wholeCourseOnly: {
|
|
19
|
+
endsCommand: false,
|
|
20
|
+
message: "This course is booked as a whole course, so single dates can’t be booked on their own. Please go back to the event and book the full course.",
|
|
21
|
+
action: "event"
|
|
22
|
+
},
|
|
18
23
|
registrationClosed: {
|
|
19
24
|
endsCommand: false,
|
|
20
25
|
message: "Booking is currently closed for this event. Please contact the organiser if you’d like to find out more.",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { st as normalizeLocationAddressText } from "./noop-ByVtIWf4.mjs";
|
|
3
3
|
import { i as ThemedButtonLink } from "./ThemedButton-8jUc02mZ.mjs";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { ft as mapDrawingSchema } from "./noop-ByVtIWf4.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region ../blocks/src/system/runtime/nodes/events/domain/location.ts
|
|
6
|
+
function formatEventLocation(event) {
|
|
7
|
+
switch (event.deliveryMode) {
|
|
8
|
+
case "online": return "Online";
|
|
9
|
+
case "hybrid": return event.venue ? `${event.venue.name} + online` : "Hybrid";
|
|
10
|
+
case "in_person": return event.venue?.name ?? "In person";
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
/** The line under the venue name. A booked-only venue shows its area, and the address follows the booking. */
|
|
14
|
+
function eventVenuePlace(venue) {
|
|
15
|
+
if (venue.addressWithBooking) return {
|
|
16
|
+
place: venue.area ?? null,
|
|
17
|
+
addressWithBooking: true
|
|
18
|
+
};
|
|
19
|
+
return {
|
|
20
|
+
place: venue.address,
|
|
21
|
+
addressWithBooking: false
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
5
25
|
//#region ../blocks/src/system/runtime/nodes/svg.tsx
|
|
6
26
|
/**
|
|
7
27
|
* Strict SVG-`transform` validator.
|
|
@@ -197,4 +217,4 @@ function cropHeightStyle(height, heightAs) {
|
|
|
197
217
|
return heightAs === "minimum" ? { minHeight: height } : { height };
|
|
198
218
|
}
|
|
199
219
|
//#endregion
|
|
200
|
-
export { SvgNode as i, MapDrawingSvg as n, readableMapDrawing as r, AdmittedMapDrawingSvg as t };
|
|
220
|
+
export { eventVenuePlace as a, SvgNode as i, MapDrawingSvg as n, formatEventLocation as o, readableMapDrawing as r, AdmittedMapDrawingSvg as t };
|