@riverbankcms/sdk 0.181.0 → 0.182.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-CVCasDPz.d.ts → BlocksIslandsHydrator-Bvw2bUif.d.ts} +1 -1
- package/dist/_dts/{Page-Dtj2Ui3S.d.ts → Page-B2EAT-bE.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-D1f_60WW.d.ts → SdkPreviewMode-D0vww6rh.d.ts} +2 -2
- package/dist/_dts/{client-Chr9pNVW.d.ts → client-D6T430bk.d.ts} +1 -3
- package/dist/_dts/{content-types-kjccgopX.d.ts → content-types-wZVWccC6.d.ts} +2 -2
- package/dist/_dts/{contracts-BodaiS00.d.ts → contracts-B-vtOcr8.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-BS6kaJFp.d.ts → generatePageMetadata-CxfwHE6z.d.ts} +2 -2
- package/dist/_dts/{index-Brl6_I2j.d.ts → index-CEyYMhLJ.d.ts} +1 -1
- package/dist/_dts/{index-DG0OvBs0.d.ts → index-CQrb3Ccc.d.ts} +4 -4
- package/dist/_dts/{index-Dy50xUMK.d.ts → index-CciRW_w1.d.ts} +2 -2
- package/dist/_dts/{index-Diqt0PvG.d.ts → index-Cqxis-nv.d.ts} +1 -1
- package/dist/_dts/{index-CJkefwYh.d.ts → index-DIU-wL1M.d.ts} +2 -2
- package/dist/_dts/{index-D1WpKwQe.d.ts → index-DqPKdeTk.d.ts} +1 -1
- package/dist/_dts/{loadContent-BgxshKrA.d.ts → loadContent-D0wrxiSp.d.ts} +7 -7
- package/dist/_dts/{request-CA0izds5.d.ts → request-DEwxUSw8.d.ts} +130 -28
- package/dist/_dts/{resolveBlockData-ChQmwEd3.d.ts → resolveBlockData-VaG_MYbN.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BvGyvblj.d.ts → resolvePageContent-DTwklC_v.d.ts} +1 -1
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +7 -7
- 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 +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/portal/index.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 +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 +6 -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-BgFbJQhU.d.ts → serviceBookingOutline-DtQuFlID.d.ts} +6 -6
- package/dist/_dts/{types-CgS3xLk8.d.ts → types-B3RjeBLV.d.ts} +2 -2
- package/dist/_dts/{types-CQrsP1x_.d.ts → types-BvUSGQrw.d.ts} +3 -3
- package/dist/_dts/{types-R65DKjPn.d.ts → types-CkRFtBqd.d.ts} +7 -7
- package/dist/_dts/{validation-6LTIbuBA.d.ts → validation-BZA3DhcV.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DqZPz6oW.mjs → BlocksIslandsHydrator-CQMf0HdN.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-uWfR2kaG.mjs → BookingMailingListNote-7kdvuPow.mjs} +6 -6
- package/dist/client/{BookingQuestionFields-CyNIKw6k.mjs → BookingQuestionFields-BJI7mZuV.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-BGCX3zwG.mjs → CalendarNavigationChevron-DPUD6wjy.mjs} +7 -7
- package/dist/client/{DemoBookingPortalAccess-DFLPyuqe.mjs → DemoBookingPortalAccess-8kwNF9HN.mjs} +4 -4
- package/dist/client/{EventCalendar.client-zDL4-t-B.mjs → EventCalendar.client-Dhb14bcC.mjs} +9 -9
- package/dist/client/{EventCombined.client-uciDKLID.mjs → EventCombined.client-C1jEZBN9.mjs} +8 -8
- package/dist/client/{EventItem-CwzrjcRw.mjs → EventItem-Bb0ppG2N.mjs} +8 -176
- package/dist/client/{EventListWeekNavigation-ChvcnPma.mjs → EventListWeekNavigation-DMryCaNV.mjs} +1 -1
- package/dist/client/{EventListing.client-DA57Qoyx.mjs → EventListing.client-BuH5kKA3.mjs} +3 -3
- package/dist/client/{EventListing.view-DZ0qMFF4.mjs → EventListing.view-DsqvuulZ.mjs} +7 -7
- package/dist/client/{EventRegistrationPayment-DSqCJL8E.mjs → EventRegistrationPayment-D4FvQSFF.mjs} +31 -164
- package/dist/client/{Page-C7mygH_f.mjs → Page-sV6BJkXX.mjs} +172 -102
- package/dist/client/{SiteTermsAgreementField-B4z-e4Wq.mjs → SiteTermsAgreementField-VfSd6JU-.mjs} +2 -2
- package/dist/client/{StepIndicator-Dn_DY4oY.mjs → StepIndicator-B6o5B7g3.mjs} +1 -1
- package/dist/client/{StepIndicator-atfDU82W.mjs → StepIndicator-BTqO7cJl.mjs} +220 -19
- package/dist/client/{accessibleSurfaces-n6kS6Hct.mjs → accessibleSurfaces-BogaGutk.mjs} +966 -693
- package/dist/client/{accordion-CsW8U3ff.mjs → accordion-6cuswD_s.mjs} +1 -1
- package/dist/client/{booking-form.client-cBWM392H.mjs → booking-form.client-BOMe_SKi.mjs} +15 -15
- package/dist/client/{bookingForm-DgySpp6C.mjs → bookingForm-DSCH-VHo.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-BpGVdLFD.mjs → boxStyleClassNames-BFuqZCfz.mjs} +2 -2
- package/dist/client/{carousel-DJoleFV3.mjs → carousel-CGyQVV1M.mjs} +1 -1
- package/dist/client/{cart-EO5o6uPH.mjs → cart-BYOe7MCh.mjs} +3 -3
- package/dist/client/{cart.client-D_gPw45z.mjs → cart.client-BKFkaXdV.mjs} +1 -1
- package/dist/client/{checkout-NVfZW0kR.mjs → checkout-Dwd7Di77.mjs} +3 -3
- package/dist/client/{checkout.client-DD3JuqOy.mjs → checkout.client-C25hpi-z.mjs} +1 -1
- package/dist/client/{checkoutUrls-z2gXvlGw.mjs → checkoutUrls-tG788sw0.mjs} +1 -1
- package/dist/client/client.mjs +25 -6
- package/dist/client/{constants-CoOkvw__.mjs → constants-DdxFG3Ic.mjs} +1 -1
- package/dist/client/{context-CRhn9qzS.mjs → context-Hi1RuYEM.mjs} +23 -5
- package/dist/client/{dateFormatting-BnWB4L1s.mjs → dateFormatting-C8vBCHuo.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CWDGSTBu.mjs → demoPortalMagicLink-BAL5UIDG.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-tdP_-Z9o.mjs → enhanceHeaderSection-Dv1Lr9kJ.mjs} +3 -3
- package/dist/client/{event-registration.client-D7YYKySQ.mjs → event-registration.client-dB_Z7bb-.mjs} +12 -12
- package/dist/client/{eventCalendar-CsAfu5d0.mjs → eventCalendar-CQnRA4Ww.mjs} +4 -4
- package/dist/client/{eventCombined-VXJB5CoS.mjs → eventCombined-BDOG1hVp.mjs} +4 -4
- package/dist/client/{eventListing-B3KIZNfY.mjs → eventListing-DSVmhy9n.mjs} +4 -4
- package/dist/client/{eventRegistration-BP-dEk1c.mjs → eventRegistration-CD5mRtEH.mjs} +4 -4
- package/dist/client/{form-DM8Zbxbv.mjs → form-DWnlEVSK.mjs} +3 -3
- package/dist/client/{form.client-e2z_Tlgk.mjs → form.client-D7zmeqNI.mjs} +4 -4
- package/dist/client/{form.parts-Ctljy1a3.mjs → form.parts-C-G6N_MK.mjs} +1 -1
- package/dist/client/gifting/client.mjs +7 -7
- package/dist/client/{gifting-DWIsqQru.mjs → gifting-Cn0jidP5.mjs} +4 -4
- package/dist/client/{gifting.client-QsSWF0uA.mjs → gifting.client-DVo1YFLs.mjs} +4 -4
- package/dist/client/{gifting.parts-CedLgwa_.mjs → gifting.parts-Bak93gD2.mjs} +2 -2
- package/dist/client/{headerSection-DAkRkwb-.mjs → headerSection-DjQuj_6v.mjs} +2 -2
- package/dist/client/{newsletter-form.client-WYja9-WN.mjs → newsletter-form.client-rIYPziZC.mjs} +5 -5
- package/dist/client/{newsletter-form.interactive-RuM86VAv.mjs → newsletter-form.interactive-DVt3enLr.mjs} +162 -135
- package/dist/client/{newsletter-form.parts-2petDnWv.mjs → newsletter-form.parts-CH6dGfdn.mjs} +1 -1
- package/dist/client/{newsletterForm-BUbXdA_e.mjs → newsletterForm-Cg8cBDHd.mjs} +3 -3
- package/dist/client/{noop-Dl4mZ-rr.mjs → noop-jesvJXEE.mjs} +239 -229
- package/dist/client/portal/client.mjs +269 -83
- package/dist/client/{portalOrders-COGn4BKG.mjs → portalOrders-oEoTvzkW.mjs} +1 -1
- package/dist/client/{portalRoutes-D72yvtDh.mjs → portalRoutes-ByyVZfVq.mjs} +13 -2
- package/dist/client/{product-detail.client-pOAryevt.mjs → product-detail.client-5aHq-vuu.mjs} +1 -1
- package/dist/client/{product-list.client-CcUpUiud.mjs → product-list.client-CyAk5rnC.mjs} +1 -1
- package/dist/client/{productDetail-BZJCfqat.mjs → productDetail-B8aZ2mqY.mjs} +3 -3
- package/dist/client/{productList-CiRs3mNb.mjs → productList-BuLemmod.mjs} +3 -3
- package/dist/client/{propsDecoder--uHW4tFM.mjs → propsDecoder-0Unsqn3R.mjs} +2 -2
- package/dist/client/{registry.server-CDNNd8wC.mjs → registry.server-DzvtVVD0.mjs} +352 -166
- package/dist/client/rendering/client.mjs +23 -23
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-CQGE_wHV.mjs → richText-coerce-Bnng7JFA.mjs} +2 -2
- package/dist/client/{routeIslandApiConfig-BtCg87-N.mjs → routeIslandApiConfig-BGfcc9sk.mjs} +1 -1
- package/dist/client/{runtimeResponse-Ds9cmBUf.mjs → runtimeResponse-DAPVRToN.mjs} +1 -1
- package/dist/client/{runtimeResponse-DL_ARBpa.mjs → runtimeResponse-nXT8VAMl.mjs} +1 -1
- package/dist/client/{shop-Rx_gEMK8.mjs → shop-GuMqnDL-.mjs} +3 -3
- package/dist/client/{shop-commerce-D8evQnMT.mjs → shop-commerce-D5bDY1o1.mjs} +12 -12
- package/dist/client/{shop-commerce-store-C9PcsSTj.mjs → shop-commerce-store-B7sHnLwI.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-D5CtGfJI.mjs → shop-discount-apply.state-Dos2zdC2.mjs} +2 -2
- package/dist/client/{shop.client-D4lzQ9oY.mjs → shop.client-uvj5GDZb.mjs} +11 -11
- package/dist/client/{shopShared-BVbq7Nm-.mjs → shopShared-3giNWE3H.mjs} +2 -2
- package/dist/client/{src-ZSqRK3dD.mjs → src-CmXh3JWs.mjs} +5 -1
- package/dist/client/{timetableModel-BQJrSK0K.mjs → timetableModel-GA-hn1qM.mjs} +8 -15
- package/dist/client/{useAvailableSlots-Dm3lKJKR.mjs → useAvailableSlots-CBneCxbG.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-klgfGn7f.mjs → useDiscountCodeUi-D0kGF0C7.mjs} +1 -1
- package/dist/client/{useEventPagination-Jnjt7_ly.mjs → useEventPagination-xX8n_Tuu.mjs} +7 -7
- package/dist/client/{view-CC_yQLSA.mjs → view-DOyZc-DF.mjs} +3 -3
- package/dist/client/{wizardSteps-BliJOzEX.mjs → wizardSteps-B952ify5.mjs} +303 -31
- package/dist/preview-next/client/{PageSectionToolbar-BhL0uADo.mjs → PageSectionToolbar-BI3UCdpu.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-Ct8eIm0i.mjs → PreviewEditorSidebar-jkfLVOgY.mjs} +12 -9
- package/dist/preview-next/client/{PreviewEditorUI-BS32G4V9.mjs → PreviewEditorUI-DwJQs4hM.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-RL0WfZXD.mjs → PreviewShell-BAxAkuz8.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-MK_gHeGy.mjs → SdkPreviewModeRuntime-0UVB-39f.mjs} +44 -17
- package/dist/preview-next/client/{previewAssistantSlot-CQyS8pcq.mjs → previewAssistantSlot-BgiYk3PB.mjs} +2577 -1683
- package/dist/preview-next/client/{previewChromeRoot-BSxp3Mfu.mjs → previewChromeRoot-tieNdF3E.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DKnTzy74.mjs → sdk-runtime-DXb_Evl0.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BlmbvbLN.mjs → siteStyleAccess-BlN0jt2c.mjs} +1 -1
- package/dist/preview-next/client/{useAutosaveStatus-D-7GwZOQ.mjs → useAutosaveStatus-BUEPA4oL.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-BNZtGM5g.mjs → useOpenBlockForSetup-BVfr5P--.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-R3PcMmax.mjs → route-contract-BHTBA48n.mjs} +20 -1
- package/dist/server/{Block.shared-CniF9tSu.mjs → Block.shared-hGoyEdjJ.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-BQWsnGT6.mjs → ThemeScopeCore-BfUCTOwj.mjs} +37 -25
- package/dist/server/{accessibleSurfaces-WPzUAHp4.mjs → accessibleSurfaces-Dskni4Xj.mjs} +94 -361
- package/dist/server/{bindings-DxojjtK3.mjs → bindings-DMJH4bvo.mjs} +4 -4
- package/dist/server/{client-CDndhbYO.mjs → client-DrwlRNAH.mjs} +22 -3
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-VyF5nEhL.mjs → constants-CeMywaiD.mjs} +11 -0
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{resolveButtonColourStates-B0O1IM16.mjs → expandPalette-ehuW8r2g.mjs} +769 -227
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-BKstMBmX.mjs → loadContent-D0prFflT.mjs} +4 -4
- package/dist/server/{loadPage-IgNnZaqr.mjs → loadPage-CBLke9pJ.mjs} +3 -3
- package/dist/server/{lookMediaFrame-TFjgNG61.mjs → lookMediaFrame-H0fi4bJk.mjs} +2 -2
- package/dist/server/{navigation-quBYlSKD.mjs → navigation-wrcuWmgp.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +8 -8
- package/dist/server/{overrideResolution-CCaAPpIa.mjs → overrideResolution-DUgCEH8z.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-B7iULvKe.mjs → pageRenderPlan-BHrmogsW.mjs} +161 -244
- package/dist/server/{pageRuntimeSupport-BytMroxn.mjs → pageRuntimeSupport-D2-YMRei.mjs} +1 -1
- package/dist/server/{pageShared-Dcs_XTIO.mjs → pageShared-CG8O31Eo.mjs} +1265 -1032
- package/dist/server/{parseThemeForPersistence-Bihl4W5K.mjs → parseThemeForPersistence-CrPlbJEN.mjs} +1 -1
- package/dist/server/{portal-CMW_b9mG.mjs → portal-pG_uhsI2.mjs} +1 -1
- package/dist/server/portal.mjs +2 -2
- package/dist/server/{prebuild-agaH-vZV.mjs → prebuild-C8Amvzce.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-DwpRjqw4.mjs → prefetchBlockData-BxUETRIZ.mjs} +2 -2
- package/dist/server/{registry-DM9dHfDC.mjs → registry-Cc88-23f.mjs} +1173 -745
- 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 +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-CinHGf8l.mjs → resolveBlockData-OG3KOkig.mjs} +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-BBBhOtdE.mjs → servicePageContent-BcFuhhD7.mjs} +5 -5
- package/dist/server/theme-bridge.mjs +33 -8
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{validation-DG5jX3jH.mjs → validation-BovmbS8N.mjs} +3 -3
- package/dist/server/{version-CipbxPHL.mjs → version-hws4hgyX.mjs} +1 -1
- package/dist/styles/index.css +86 -46
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Y as parseThemeColorToken } from "./types-BKaBZFjD.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { $ as
|
|
4
|
-
import {
|
|
2
|
+
import { G as oklabToSrgb, J as rgbToHex, K as oklchToHexGamut, L as contrastRatio, U as hexToRgb, W as oklabToOklch, Y as srgbToOklab, b as pickBlackOrWhiteTextColor, j as resolveConcreteColorHex } from "./expandPalette-ehuW8r2g.mjs";
|
|
3
|
+
import { $o as deriveSectionGround, Aa as eventCalendarListGroupingDecision, Ar as chromeLogoTransforms, At as groupOfferingRunsByCourse, B as combinedLookSchema, Bo as sectionShapeHook, Bs as orderedLiveRunSessions, Ca as blockChecksForEvents, Cc as arrangementSlotNames, Cn as formatEventRunDates, Dn as groupEventsByDate, Ea as eventReadinessQueryKeys, En as formatTime, Er as readRuntimeNow, Fi as parseRuntimeBackgroundContent, Gi as lookLeadSlotTransform, Ht as ThemedButtonLink, Ia as lookPresentationOnPalette, Ii as resolveSectionSurfaceForeground, Io as groundPaint, Ji as asPartialObject, Ki as lookQuoteLimitTransform, Kr as listLookSlot, Kt as buildEventListWeek, La as resolveLookSurfacePresentation, Li as resolveSurfaceForegroundStyles, Lo as pageGround, Mn as formatDateKey, Ni as parseBackgroundContent, Nr as uiTransforms, Oa as resolveEventCalendarRead, On as resolveEventTimeZone, Or as mediaTransforms, Pi as parseBackgroundOverlay, Pr as formattingTransforms, Q as CardListLeadDate, Qo as applyLookPhotoTreatment, Qr as heroMorePhotoCount, Qs as formatDateTimeRange, Ri as resolveBackgroundColorValue, Rn as isToday, Ro as sectionShapeForGround, Sr as contentTransforms, Ta as eventReadinessQuery, Tn as formatEventWeekdayTime, Ua as heroPhotoPaintsGround, Uo as boundaryRuntimeMetricsForDecorativeTransition, Vi as isSemanticSpacing, Wi as lookCarouselRegionTransform, Wn as isDropInPublicEvent, Wr as listItemPresentation, Xs as formatDate, Xt as weekColumnDays, Yi as createTransformRegistry, Yt as groupEventsByWeek, Z as CardListContentPart, Zs as formatDateRange, Zt as formatBookingSchedulePresentation, ai as formatCoursePrice, ao as resolveModeArrangement, as as themeV2CompilerOwnedFieldNames, bn as formatEventDateParts, bs as eventScopeQueryKeys, cn as closedRunCopy, cr as formatEventRemainingPlaces, di as BACKGROUND_POSITION_PRESET_VALUES, dr as getEventAvailabilityStatus, dt as resolveArrangementKnobs, es as parseCanonicalRuntimeBackground, et as resolveCardListSchedule, fi as getAnchorClasses, ft as systemCustomizeFacetDefinitionsForBlock, gt as EventQuickFacts, hn as eventLocalDateKey, ii as resolveClassPriceItems, io as resolveEffectiveArrangement, ir as resolveEventPageLink, is as stripStaleTransitionStyleGroup, it as ImagePresets, ja as resolveEventCalendarReadPlan, jr as layoutTransforms, ka as resolveEventScopeRead, ki as boxStylesTransforms, kr as headerRuntimeTransforms, lc as toUtcIsoDateTimeString, li as formatEventPriceDisplay, lr as formatTotalCapacity, mn as eventDateOptions, ni as classPricesCopySchema, no as arrangementManifestFromVariants, nr as resolveEventCardBooking, ns as sectionSurfaceBase, nt as MediaNodeServer, oa as ClockIcon, oc as getLocalScheduleDate, oi as formatEventDepositNote, oo as resolvePublishedLook, or as isBookableEvent, ot as computeMediaTransformStyle, pc as formatBookingPriceDisplay, pn as eventCalendarWeekStart, qa as arrangementAppearancePresets, qi as lookSkinSlotTransform, rc as compareLocalScheduleDates, ri as classPricesDataSchema, rn as formatEventLocation, ro as readStoredMode, rr as resolveEventCta, sc as parseBookingLocalDate, si as formatEventPrice, t as getBlockDefinition, to as styleSectionBackgroundForColour, ts as resolveSectionBackground, tt as selectCardListPresentation, uc as resolveBookingBusinessTimeZone, ui as formatEventStartingPrice, uo as deriveSiteStyleBlockPolicy, ur as getEventAvailability, vc as resolveExactOrFreePriceDisplay, vs as eventDiscoveryFilterKeys, wa as eventReadinessLoaderKey, wn as formatEventTimeRange, xa as augmentManifest, xs as resolveEventScope, yc as resolvePricingOptionsPriceDisplay, yn as formatEventCompactDateRail, ys as eventScopeLoaderParam, yt as resolveCalendarReadProfile, zo as sectionShapeFromContent, zs as nextLiveRunSessionStartMs } from "./registry-Cc88-23f.mjs";
|
|
4
|
+
import { E as resolveOnColorForThemeToken, O as resolveTokenOrCssColorValue, T as isCssColorLiteral, n as parseSurfaceTree } from "./accessibleSurfaces-Dskni4Xj.mjs";
|
|
5
5
|
import { A as makeBoundaryId, D as asLayoutVariantKey, k as asSiteStyleId, w as asDesignBlockId } from "./customCss-C9kgPHvr.mjs";
|
|
6
6
|
import { t as assertNever } from "./assert-never-ku-PUn9U.mjs";
|
|
7
7
|
import { h as isRecord$2, t as isObjectRecord } from "./typeGuards-CTW_9AXq.mjs";
|
|
8
8
|
import { o as runtimeMediaSchema } from "./media-gvfIw3z8.mjs";
|
|
9
|
-
import { f as assertNever$1, n as resolveLookMediaFrame } from "./lookMediaFrame-
|
|
9
|
+
import { f as assertNever$1, n as resolveLookMediaFrame } from "./lookMediaFrame-H0fi4bJk.mjs";
|
|
10
10
|
import { i as outlineRegions, n as mapOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
|
|
11
11
|
import { i as resolveRouteTargetForStage$1 } from "./dist-Xevqwf1U.mjs";
|
|
12
12
|
import React from "react";
|
|
@@ -496,28 +496,20 @@ function mapDrawingStyle(input) {
|
|
|
496
496
|
}
|
|
497
497
|
//#endregion
|
|
498
498
|
//#region ../theme-core/src/site-styles/sectionBoundaryComposition.ts
|
|
499
|
-
const backgroundToken = requireThemeColorToken("background");
|
|
500
499
|
/**
|
|
501
500
|
* Classifies a section from its final render content. `_sectionStyles`
|
|
502
501
|
* already holds the effective background (Look default, page-design override
|
|
503
502
|
* and block-authored media merged by `resolveSectionBackground`), so this only
|
|
504
|
-
* reads it and never re-decides precedence.
|
|
505
|
-
*
|
|
503
|
+
* reads it and never re-decides precedence. What it paints comes from
|
|
504
|
+
* `groundPaint`, the same decision the background layer paints from, given
|
|
505
|
+
* the ground the section declares for when its content sets no colour.
|
|
506
506
|
*/
|
|
507
|
-
function boundaryEndpointForSectionContent(content) {
|
|
507
|
+
function boundaryEndpointForSectionContent(content, ground) {
|
|
508
508
|
const background = parseCanonicalRuntimeBackground(content);
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
const effective = background.background;
|
|
514
|
-
switch (effective.type) {
|
|
515
|
-
case "color": {
|
|
516
|
-
if (effective.color === null || effective.color === void 0) return {
|
|
517
|
-
kind: "paint",
|
|
518
|
-
token: backgroundToken
|
|
519
|
-
};
|
|
520
|
-
const token = parseThemeColorToken(effective.color);
|
|
509
|
+
const paint = groundPaint(background.kind === "none" ? null : background.background, ground.fallback);
|
|
510
|
+
switch (paint.kind) {
|
|
511
|
+
case "fill": {
|
|
512
|
+
const token = parseThemeColorToken(paint.colour);
|
|
521
513
|
return token ? {
|
|
522
514
|
kind: "paint",
|
|
523
515
|
token
|
|
@@ -530,26 +522,30 @@ function boundaryEndpointForSectionContent(content) {
|
|
|
530
522
|
kind: "unpainted",
|
|
531
523
|
reason: "gradient"
|
|
532
524
|
};
|
|
533
|
-
case "
|
|
534
|
-
case "video": return {
|
|
525
|
+
case "media": return {
|
|
535
526
|
kind: "unpainted",
|
|
536
527
|
reason: "media"
|
|
537
528
|
};
|
|
538
|
-
|
|
529
|
+
case "bare": return {
|
|
530
|
+
kind: "paint",
|
|
531
|
+
token: pageGround.fallback
|
|
532
|
+
};
|
|
533
|
+
default: return assertNever$1(paint, "Unhandled ground paint");
|
|
539
534
|
}
|
|
540
535
|
}
|
|
541
536
|
/**
|
|
542
537
|
* Reads every fact from final render content in one place. `_frameStyles` is
|
|
543
538
|
* the compiled frame; content without one (no page design, an SDK block)
|
|
544
|
-
* draws a plain frame.
|
|
539
|
+
* draws a plain frame. `ground` is what the section declares it paints when
|
|
540
|
+
* its content sets no colour (`pageGround` for a section that declares none).
|
|
545
541
|
*/
|
|
546
|
-
function sectionFactsForContent(content) {
|
|
542
|
+
function sectionFactsForContent(content, ground) {
|
|
547
543
|
const photoGround = isLookPhotoGround(content);
|
|
548
544
|
return {
|
|
549
545
|
endpoint: photoGround ? {
|
|
550
546
|
kind: "unpainted",
|
|
551
547
|
reason: "media"
|
|
552
|
-
} : boundaryEndpointForSectionContent(content),
|
|
548
|
+
} : boundaryEndpointForSectionContent(content, ground),
|
|
553
549
|
...photoGround || isPhotoBackground(content) ? { photo: true } : {},
|
|
554
550
|
frame: frameKindForContent(content),
|
|
555
551
|
shape: sectionShapeFromContent(content)
|
|
@@ -627,6 +623,26 @@ function composeBoundary(previous, next, treatment) {
|
|
|
627
623
|
reason: "both-unpainted"
|
|
628
624
|
};
|
|
629
625
|
}
|
|
626
|
+
/**
|
|
627
|
+
* Decides the seam between two adjacent sections from the same facts that
|
|
628
|
+
* decide the boundary. Shared ground needs two platform sections painting the
|
|
629
|
+
* identical theme token, with no field, flush panel or photo on either side;
|
|
630
|
+
* gradients and literal colours are unpainted, so they never merge. A shared
|
|
631
|
+
* ground is always a `same-paint` join, so a seam never sits beside a drawn
|
|
632
|
+
* boundary or its reserves.
|
|
633
|
+
*/
|
|
634
|
+
function sectionSeam(previous, next) {
|
|
635
|
+
if (previous.facts.shape === "field" && next.facts.shape === "field") return "fields";
|
|
636
|
+
return mergesGround(previous) && mergesGround(next) && samePaint(previous.facts.endpoint, next.facts.endpoint) ? "shared-ground" : "none";
|
|
637
|
+
}
|
|
638
|
+
/** A side can share its ground only when the platform paints it edge to edge, with no flush panel or photo. */
|
|
639
|
+
function mergesGround(side) {
|
|
640
|
+
const { facts } = side;
|
|
641
|
+
return side.section === "platform" && facts.shape !== "field" && facts.frame !== "flush-panel" && !facts.photo;
|
|
642
|
+
}
|
|
643
|
+
function samePaint(previous, next) {
|
|
644
|
+
return previous.kind === "paint" && next.kind === "paint" && previous.token === next.token;
|
|
645
|
+
}
|
|
630
646
|
/** Treatment-specific placement and indistinguishable paint are composition decisions. */
|
|
631
647
|
function paintNotShownReason(previous, next, treatment) {
|
|
632
648
|
if (treatment === "wave-edge-echo" && (!previous.photo || next.endpoint.kind !== "paint")) return "photo-required";
|
|
@@ -675,11 +691,6 @@ function boundaryLayout(intent, composition) {
|
|
|
675
691
|
default: return assertNever$1(composition, "Unhandled boundary composition");
|
|
676
692
|
}
|
|
677
693
|
}
|
|
678
|
-
function requireThemeColorToken(value) {
|
|
679
|
-
const token = parseThemeColorToken(value);
|
|
680
|
-
if (!token) throw new Error(`Expected a theme color token. Received: ${value}`);
|
|
681
|
-
return token;
|
|
682
|
-
}
|
|
683
694
|
//#endregion
|
|
684
695
|
//#region ../theme-core/src/site-styles/sectionPhoto.ts
|
|
685
696
|
/** The photo a section keeps, wherever its background `type` points. */
|
|
@@ -809,172 +820,6 @@ function parseStoredVariant(manifest, content) {
|
|
|
809
820
|
} : { kind: "absent" };
|
|
810
821
|
}
|
|
811
822
|
//#endregion
|
|
812
|
-
//#region ../blocks/src/system/runtime/nodes/events/domain/cta.ts
|
|
813
|
-
/**
|
|
814
|
-
* Booking call-to-action resolution for events: where an event links to and
|
|
815
|
-
* what the button says. Sold-out and waitlist decisions come from capacity.ts
|
|
816
|
-
* so cards, rows and the wizard never disagree.
|
|
817
|
-
*/
|
|
818
|
-
function closedEventBookingLabel(reason) {
|
|
819
|
-
switch (reason) {
|
|
820
|
-
case "occurrence_cancelled":
|
|
821
|
-
case "series_cancelled": return "Cancelled";
|
|
822
|
-
case "occurrence_completed":
|
|
823
|
-
case "series_completed": return "Completed";
|
|
824
|
-
case "series_draft":
|
|
825
|
-
case "series_archived":
|
|
826
|
-
case "parent_archived":
|
|
827
|
-
case "parent_inconsistent":
|
|
828
|
-
case "already_started":
|
|
829
|
-
case "enrollment_closed": return "Registration closed";
|
|
830
|
-
default: return assertNever(reason);
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
function resolveEventHref(event) {
|
|
834
|
-
const destination = resolveRuntimeEventDestination(event);
|
|
835
|
-
return destination.kind === "external" ? destination.url : destination.path;
|
|
836
|
-
}
|
|
837
|
-
function resolveEventLinkProps(event) {
|
|
838
|
-
const href = resolveEventHref(event);
|
|
839
|
-
return resolveRuntimeEventDestination(event).kind === "external" ? {
|
|
840
|
-
href,
|
|
841
|
-
target: "_blank",
|
|
842
|
-
rel: "noopener noreferrer"
|
|
843
|
-
} : { href };
|
|
844
|
-
}
|
|
845
|
-
/**
|
|
846
|
-
* Resolve the CTA state for an event.
|
|
847
|
-
* Shared by EventCard and EventCompactRow to keep sold-out, registration-closed,
|
|
848
|
-
* and course-specific defaults consistent.
|
|
849
|
-
*/
|
|
850
|
-
function resolveEventCta(event, buttonText) {
|
|
851
|
-
const isSoldOut = isEventFull(event);
|
|
852
|
-
const isExternal = resolveRuntimeEventDestination(event).kind === "external";
|
|
853
|
-
const href = resolveEventHref(event);
|
|
854
|
-
if (event.bookingAvailability.kind === "closed") {
|
|
855
|
-
const linksToClosedWholeSeriesDetails = event.bookingAvailability.reason === "enrollment_closed" && !isExternal;
|
|
856
|
-
return {
|
|
857
|
-
label: closedEventBookingLabel(event.bookingAvailability.reason),
|
|
858
|
-
href,
|
|
859
|
-
external: isExternal,
|
|
860
|
-
hidden: !linksToClosedWholeSeriesDetails
|
|
861
|
-
};
|
|
862
|
-
}
|
|
863
|
-
if (!isExternal && isSoldOut) {
|
|
864
|
-
if (canJoinEventWaitlistOnAnyMode(event)) return {
|
|
865
|
-
label: "Join waitlist",
|
|
866
|
-
href,
|
|
867
|
-
external: false,
|
|
868
|
-
hidden: false
|
|
869
|
-
};
|
|
870
|
-
return {
|
|
871
|
-
label: "Sold out",
|
|
872
|
-
href,
|
|
873
|
-
external: false,
|
|
874
|
-
hidden: true
|
|
875
|
-
};
|
|
876
|
-
}
|
|
877
|
-
return destinationCta(event, buttonText);
|
|
878
|
-
}
|
|
879
|
-
function destinationCta(event, buttonText) {
|
|
880
|
-
const destination = resolveRuntimeEventDestination(event);
|
|
881
|
-
return {
|
|
882
|
-
label: buttonText ?? (destination.kind === "external" ? destination.label : "Book"),
|
|
883
|
-
href: resolveEventHref(event),
|
|
884
|
-
external: destination.kind === "external",
|
|
885
|
-
hidden: false
|
|
886
|
-
};
|
|
887
|
-
}
|
|
888
|
-
/**
|
|
889
|
-
* A bounded date strip cannot prove a series sold out. Its destination owns date selection,
|
|
890
|
-
* so the card offers that destination and leaves capacity with the individual date rows.
|
|
891
|
-
* Whole-series bookings still have one shared capacity, as do ordinary occurrence cards.
|
|
892
|
-
*/
|
|
893
|
-
function resolveEventCardBooking(event, scope, buttonText, options) {
|
|
894
|
-
const closedCta = event.bookingAvailability.kind === "closed" ? resolveEventCta(event, buttonText) : renderClockClosedCta(event, options.now);
|
|
895
|
-
if (scope === "series" && event.bookingScope === "single_occurrence") {
|
|
896
|
-
const closed = seriesBookingClosed(event);
|
|
897
|
-
return {
|
|
898
|
-
cta: closed ? resolveEventCta(event, buttonText) : withoutPage(destinationCta(event, buttonText)),
|
|
899
|
-
availability: null,
|
|
900
|
-
closed
|
|
901
|
-
};
|
|
902
|
-
}
|
|
903
|
-
return closedCta ? {
|
|
904
|
-
cta: closedCta,
|
|
905
|
-
availability: null,
|
|
906
|
-
closed: true
|
|
907
|
-
} : {
|
|
908
|
-
cta: withoutPage(resolveEventCta(event, buttonText)),
|
|
909
|
-
availability: occurrenceCardAvailability(event, options.count),
|
|
910
|
-
closed: false
|
|
911
|
-
};
|
|
912
|
-
}
|
|
913
|
-
/** A native card with no page yet can't invite booking: there is nowhere to send the visitor. */
|
|
914
|
-
function withoutPage(cta) {
|
|
915
|
-
return !cta.external && !cta.hidden && cta.href === "" ? {
|
|
916
|
-
...cta,
|
|
917
|
-
label: "Details coming soon",
|
|
918
|
-
hidden: true
|
|
919
|
-
} : cta;
|
|
920
|
-
}
|
|
921
|
-
/** Only a series-wide closure closes its card; a cancelled or started date says nothing about later dates. */
|
|
922
|
-
function seriesBookingClosed(event) {
|
|
923
|
-
if (event.bookingAvailability.kind !== "closed") return false;
|
|
924
|
-
switch (event.bookingAvailability.reason) {
|
|
925
|
-
case "occurrence_cancelled":
|
|
926
|
-
case "occurrence_completed":
|
|
927
|
-
case "already_started": return false;
|
|
928
|
-
case "series_cancelled":
|
|
929
|
-
case "series_completed":
|
|
930
|
-
case "series_draft":
|
|
931
|
-
case "series_archived":
|
|
932
|
-
case "parent_archived":
|
|
933
|
-
case "parent_inconsistent":
|
|
934
|
-
case "enrollment_closed": return true;
|
|
935
|
-
default: return assertNever(event.bookingAvailability.reason);
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
function occurrenceCardAvailability(event, count) {
|
|
939
|
-
const label = formatEventRemainingPlaces(event, {
|
|
940
|
-
full: "Sold out",
|
|
941
|
-
count
|
|
942
|
-
});
|
|
943
|
-
const availability = getEventAvailabilityStatus(event);
|
|
944
|
-
return label ? {
|
|
945
|
-
label,
|
|
946
|
-
status: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available"
|
|
947
|
-
} : null;
|
|
948
|
-
}
|
|
949
|
-
/** Preserve projected closure reasons; only an open native booking needs its clock rechecked. */
|
|
950
|
-
function renderClockClosedCta(event, now) {
|
|
951
|
-
if (!now || event.destination.kind !== "native") return null;
|
|
952
|
-
if (event.bookingScope !== "whole_series") return hasEventBookingClosedEarly(event, now) ? {
|
|
953
|
-
label: "Registration closed",
|
|
954
|
-
href: resolveEventHref(event),
|
|
955
|
-
external: false,
|
|
956
|
-
hidden: true
|
|
957
|
-
} : null;
|
|
958
|
-
const phase = resolveWholeSeriesBookingPhase(event.run, now);
|
|
959
|
-
if (phase.kind === "open") return null;
|
|
960
|
-
return {
|
|
961
|
-
label: (() => {
|
|
962
|
-
switch (phase.reason) {
|
|
963
|
-
case "cancelled": return "Cancelled";
|
|
964
|
-
case "completed": return "Completed";
|
|
965
|
-
case "in-progress":
|
|
966
|
-
case "bookings-closed":
|
|
967
|
-
case "enrolment-closed":
|
|
968
|
-
case "no-sessions": return "Registration closed";
|
|
969
|
-
default: return assertNever(phase.reason);
|
|
970
|
-
}
|
|
971
|
-
})(),
|
|
972
|
-
href: resolveEventHref(event),
|
|
973
|
-
external: false,
|
|
974
|
-
hidden: phase.reason !== "enrolment-closed" && phase.reason !== "bookings-closed"
|
|
975
|
-
};
|
|
976
|
-
}
|
|
977
|
-
//#endregion
|
|
978
823
|
//#region ../blocks/src/system/runtime/nodes/events/domain/duration.ts
|
|
979
824
|
function formatEventDuration(event, style = "legacy") {
|
|
980
825
|
const durationMinutes = Math.max(0, Math.round((Date.parse(event.endsAt) - Date.parse(event.startsAt)) / 6e4));
|
|
@@ -1214,7 +1059,7 @@ function categoryBadgeStyle(background) {
|
|
|
1214
1059
|
}
|
|
1215
1060
|
function readableTextColor(background) {
|
|
1216
1061
|
try {
|
|
1217
|
-
return
|
|
1062
|
+
return pickBlackOrWhiteTextColor(background);
|
|
1218
1063
|
} catch {
|
|
1219
1064
|
return "rgb(var(--tb-onAccent, 255 255 255))";
|
|
1220
1065
|
}
|
|
@@ -1300,7 +1145,7 @@ function eventItemFacts(props) {
|
|
|
1300
1145
|
date: formatEventCompactDateRail(props.event.startsAt, options, "as-written"),
|
|
1301
1146
|
time,
|
|
1302
1147
|
price,
|
|
1303
|
-
link:
|
|
1148
|
+
link: resolveEventPageLink(props.event),
|
|
1304
1149
|
meta: eventItemMeta(props, {
|
|
1305
1150
|
time,
|
|
1306
1151
|
price
|
|
@@ -1488,8 +1333,7 @@ function renderEventItemImage(props, link) {
|
|
|
1488
1333
|
id: props.event.id,
|
|
1489
1334
|
title: eventDisplayTitle(props.event).title,
|
|
1490
1335
|
media: props.event.presentation?.image,
|
|
1491
|
-
titleLink: link
|
|
1492
|
-
newTabHint: link.target === "_blank"
|
|
1336
|
+
titleLink: link
|
|
1493
1337
|
},
|
|
1494
1338
|
presentation: props
|
|
1495
1339
|
});
|
|
@@ -1890,13 +1734,12 @@ function occurrencePlaces(event) {
|
|
|
1890
1734
|
//#region ../blocks/src/system/runtime/nodes/events/shared/eventCardListContent.ts
|
|
1891
1735
|
/** Live offering data only; editorial cards never acquire booking fields. */
|
|
1892
1736
|
function eventCardListContent(event, context, buttonText) {
|
|
1893
|
-
const
|
|
1737
|
+
const content = cardProjectionBase(event, buttonText, context);
|
|
1894
1738
|
switch (context.kind) {
|
|
1895
1739
|
case "event-details": return {
|
|
1896
1740
|
...content,
|
|
1897
1741
|
chips: offeringTypeChips(event),
|
|
1898
1742
|
leadDate: null,
|
|
1899
|
-
newTabHint: false,
|
|
1900
1743
|
...offeringSchedule(event)
|
|
1901
1744
|
};
|
|
1902
1745
|
case "catalogue":
|
|
@@ -1904,7 +1747,6 @@ function eventCardListContent(event, context, buttonText) {
|
|
|
1904
1747
|
...content,
|
|
1905
1748
|
chips: offeringTypeChips(event, context.typeLabel),
|
|
1906
1749
|
leadDate: offeringLeadDate(event, context.nextStartMs),
|
|
1907
|
-
newTabHint: external,
|
|
1908
1750
|
...offeringSchedule(event, context.now),
|
|
1909
1751
|
...event.bookingScope === "whole_series" ? offeringRunDates(event, context.now) : {}
|
|
1910
1752
|
};
|
|
@@ -1914,23 +1756,20 @@ function eventCardListContent(event, context, buttonText) {
|
|
|
1914
1756
|
function cardProjectionBase(event, buttonText, context) {
|
|
1915
1757
|
const offering = context.kind !== "event-details";
|
|
1916
1758
|
const { cta, availability: places, closed } = cardBooking(event, buttonText, context);
|
|
1917
|
-
const titleLink =
|
|
1759
|
+
const titleLink = resolveEventPageLink(event);
|
|
1918
1760
|
const { title, runName } = eventDisplayTitle(event);
|
|
1919
1761
|
return {
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
action: cardAction(cta),
|
|
1932
|
-
bookingClosed: closed ? cta.label : null
|
|
1933
|
-
}
|
|
1762
|
+
id: event.occurrenceId || event.id,
|
|
1763
|
+
title,
|
|
1764
|
+
subtitle: runName,
|
|
1765
|
+
...titleLink.href ? { titleLink } : {},
|
|
1766
|
+
quickFacts: event.facts,
|
|
1767
|
+
text: event.presentation?.summary ?? event.description,
|
|
1768
|
+
media: event.presentation?.image,
|
|
1769
|
+
facts: offeringFacts(event, places?.label, offering),
|
|
1770
|
+
availability: places,
|
|
1771
|
+
action: cardAction(cta),
|
|
1772
|
+
bookingClosed: closed ? cta.label : null
|
|
1934
1773
|
};
|
|
1935
1774
|
}
|
|
1936
1775
|
/** Offering cards carry the render clock; an event's own details show its projected booking state. */
|
|
@@ -2038,7 +1877,7 @@ function offeringFacts(event, places, offering) {
|
|
|
2038
1877
|
value: places,
|
|
2039
1878
|
kind: "availability"
|
|
2040
1879
|
}] : [],
|
|
2041
|
-
...
|
|
1880
|
+
...event.pricing.kind === "external" ? [] : [{
|
|
2042
1881
|
label: "Price",
|
|
2043
1882
|
value: course ? formatCoursePrice(event.pricing) : formatEventPriceDisplay(event.pricing)
|
|
2044
1883
|
}]
|
|
@@ -2491,7 +2330,7 @@ function DaySchedule({ display }) {
|
|
|
2491
2330
|
//#region ../blocks/src/system/runtime/nodes/events/shared/MonthLookView.tsx
|
|
2492
2331
|
function MonthEvent({ event, timeZone, locale, presentation }) {
|
|
2493
2332
|
return /* @__PURE__ */ jsxs("a", {
|
|
2494
|
-
...
|
|
2333
|
+
...resolveEventPageLink(event),
|
|
2495
2334
|
...listLookSlot(presentation, "item"),
|
|
2496
2335
|
children: [
|
|
2497
2336
|
/* @__PURE__ */ jsx("span", {
|
|
@@ -2640,7 +2479,11 @@ const EVENT_REGISTRATION_ANCHOR_ID = "event-registration";
|
|
|
2640
2479
|
/** Project selected live data; booking decisions stay with the existing event owners. */
|
|
2641
2480
|
function eventHeaderContent(selection, show) {
|
|
2642
2481
|
const event = selection.selected;
|
|
2643
|
-
const
|
|
2482
|
+
const card = eventCardListContent(event, { kind: "event-details" });
|
|
2483
|
+
const item = selection.kind === "ordinary" && selection.bookedElsewhere ? {
|
|
2484
|
+
...card,
|
|
2485
|
+
...bookedElsewhereAction(selection.bookedElsewhere)
|
|
2486
|
+
} : card;
|
|
2644
2487
|
const groupSize = show.capacity ? formatTotalCapacity(event.capacity) : null;
|
|
2645
2488
|
const { timeRange } = formatEventDateParts({
|
|
2646
2489
|
startsAt: event.startsAt,
|
|
@@ -2656,6 +2499,7 @@ function eventHeaderContent(selection, show) {
|
|
|
2656
2499
|
label: "Time",
|
|
2657
2500
|
value: timeRange
|
|
2658
2501
|
},
|
|
2502
|
+
...laterBookingFact(event, selection),
|
|
2659
2503
|
...show.cost ? (item.facts ?? []).filter(({ label }) => label === "Price").map((fact) => withDepositNote(fact, selection)) : [],
|
|
2660
2504
|
...groupSize === null ? [] : [{
|
|
2661
2505
|
label: "Group size",
|
|
@@ -2698,11 +2542,72 @@ function headerDateFact(selection) {
|
|
|
2698
2542
|
value: date
|
|
2699
2543
|
};
|
|
2700
2544
|
}
|
|
2545
|
+
/**
|
|
2546
|
+
* Dates booked elsewhere take the page's shared booking decision, the one the
|
|
2547
|
+
* registration panel shows. A later booking date is named by
|
|
2548
|
+
* `laterBookingFact`, not in the button.
|
|
2549
|
+
*/
|
|
2550
|
+
function bookedElsewhereAction(booking) {
|
|
2551
|
+
switch (booking.kind) {
|
|
2552
|
+
case "open": {
|
|
2553
|
+
const { destination } = booking;
|
|
2554
|
+
return {
|
|
2555
|
+
action: {
|
|
2556
|
+
label: destination.label,
|
|
2557
|
+
href: destination.url,
|
|
2558
|
+
external: true
|
|
2559
|
+
},
|
|
2560
|
+
bookingClosed: null
|
|
2561
|
+
};
|
|
2562
|
+
}
|
|
2563
|
+
case "closed": {
|
|
2564
|
+
const label = bookedElsewhereClosedLabel(booking.closure);
|
|
2565
|
+
return {
|
|
2566
|
+
action: { label },
|
|
2567
|
+
bookingClosed: label
|
|
2568
|
+
};
|
|
2569
|
+
}
|
|
2570
|
+
default: return assertNever(booking);
|
|
2571
|
+
}
|
|
2572
|
+
}
|
|
2573
|
+
/**
|
|
2574
|
+
* When the shared decision books a later date than the one described (today's
|
|
2575
|
+
* is past its cut-off), say which, so the button isn't read as booking today.
|
|
2576
|
+
* The button keeps the owner's own label ("Find out more", "Book via studio").
|
|
2577
|
+
*/
|
|
2578
|
+
function laterBookingFact(described, selection) {
|
|
2579
|
+
const booking = selection.kind === "ordinary" ? selection.bookedElsewhere : null;
|
|
2580
|
+
if (booking?.kind !== "open" || booking.target.occurrenceId === described.occurrenceId) return [];
|
|
2581
|
+
return [{
|
|
2582
|
+
label: "Next date to book",
|
|
2583
|
+
value: shortDate(booking.target)
|
|
2584
|
+
}];
|
|
2585
|
+
}
|
|
2586
|
+
function shortDate(event) {
|
|
2587
|
+
return formatDate({
|
|
2588
|
+
kind: "instant",
|
|
2589
|
+
value: toUtcIsoDateTimeString(event.startsAt)
|
|
2590
|
+
}, eventDateOptions(event), {
|
|
2591
|
+
date: "short",
|
|
2592
|
+
weekday: "short",
|
|
2593
|
+
year: "omit"
|
|
2594
|
+
});
|
|
2595
|
+
}
|
|
2596
|
+
function bookedElsewhereClosedLabel(closure) {
|
|
2597
|
+
switch (closure.kind) {
|
|
2598
|
+
case "bookingClosed": return closure.detail.kind === "opensSoon" ? "Bookings open soon" : "Registration closed";
|
|
2599
|
+
case "date": return closure.closure.kind === "finished" ? "Completed" : "Registration closed";
|
|
2600
|
+
case "run": return closedRunCopy(closure.reason).titleText;
|
|
2601
|
+
case "datesCutOff":
|
|
2602
|
+
case "unavailable": return "Registration closed";
|
|
2603
|
+
default: return assertNever(closure);
|
|
2604
|
+
}
|
|
2605
|
+
}
|
|
2701
2606
|
/** A closed run says why here, at the top of the page, so the panel below doesn't repeat it. */
|
|
2702
2607
|
function headerAction(selection, action) {
|
|
2703
|
-
if (action.external) return action;
|
|
2704
|
-
if (!selection.selected.requiresRegistration) return { label: "No registration required — just show up" };
|
|
2705
2608
|
if (selection.kind === "wholeSeries" && selection.bookingPhase.kind === "closed") return { label: closedRunCopy(selection.bookingPhase.reason).titleText };
|
|
2609
|
+
if (action.external) return action;
|
|
2610
|
+
if (isDropInPublicEvent(selection.selected)) return { label: "No registration required — just show up" };
|
|
2706
2611
|
if (!action.href) return action;
|
|
2707
2612
|
return {
|
|
2708
2613
|
...action,
|
|
@@ -3058,12 +2963,6 @@ function appendBackgroundMediaClasses(baseClassName, input) {
|
|
|
3058
2963
|
backgroundVideoMobileClassNames(input)
|
|
3059
2964
|
].filter(Boolean).join(" ");
|
|
3060
2965
|
}
|
|
3061
|
-
function gradientPresetCss(value) {
|
|
3062
|
-
const presetId = parseGradientPresetId(value);
|
|
3063
|
-
if (!presetId) return null;
|
|
3064
|
-
const preset = getGradientPreset(presetId);
|
|
3065
|
-
return gradientToCss(preset, Object.fromEntries(preset.stops.map((stop) => [stop.color, `rgb(var(--tb-${stop.color}))`])));
|
|
3066
|
-
}
|
|
3067
2966
|
const backgroundTransforms = [
|
|
3068
2967
|
{
|
|
3069
2968
|
id: "background.resolveMedia",
|
|
@@ -3196,12 +3095,11 @@ function parseMediaBackground(value) {
|
|
|
3196
3095
|
}
|
|
3197
3096
|
function resolveBackgroundLayerStyle(value, fallbackToken, context) {
|
|
3198
3097
|
const background = parseRuntimeBackgroundContent(value);
|
|
3098
|
+
const paint = groundPaint(background, fallbackToken ?? null);
|
|
3199
3099
|
const style = {};
|
|
3200
|
-
const
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
if (resolvedColor) style.backgroundColor = resolvedColor;
|
|
3204
|
-
if (gradient) style.backgroundImage = gradient;
|
|
3100
|
+
const fill = paint.kind === "fill" ? paint.colour : paint.kind === "media" ? paint.fill : null;
|
|
3101
|
+
if (fill) style.backgroundColor = resolveBackgroundColorValue(fill, context);
|
|
3102
|
+
if (paint.kind === "gradient") style.backgroundImage = paint.gradient;
|
|
3205
3103
|
const opacity = backgroundMediaOpacity(background);
|
|
3206
3104
|
if (opacity !== null) style.opacity = String(opacity);
|
|
3207
3105
|
return style;
|
|
@@ -3553,14 +3451,25 @@ const eventCalendarSelectionParam = {
|
|
|
3553
3451
|
return key === "seriesIds" ? void 0 : scope.filters[key];
|
|
3554
3452
|
}
|
|
3555
3453
|
};
|
|
3454
|
+
const scopeParamSchema = z.object({ key: z.enum(eventScopeQueryKeys) });
|
|
3556
3455
|
/** Public event query params for the section's scope, shared by render loaders and readiness. */
|
|
3557
3456
|
const eventScopeParam = {
|
|
3558
3457
|
id: "events.scopeParam",
|
|
3559
3458
|
kind: "formatter",
|
|
3560
3459
|
summary: "Public event query params for the section scope",
|
|
3561
|
-
schema:
|
|
3460
|
+
schema: scopeParamSchema,
|
|
3562
3461
|
run(value, { key }) {
|
|
3563
|
-
return eventScopeLoaderParam(
|
|
3462
|
+
return eventScopeLoaderParam(resolveEventScopeRead(asPartialObject(value) ?? {}).query, key);
|
|
3463
|
+
}
|
|
3464
|
+
};
|
|
3465
|
+
/** Public event query params for whatever the calendar's display mode reads (see resolveEventCalendarRead). */
|
|
3466
|
+
const eventCalendarReadParam = {
|
|
3467
|
+
id: "events.calendarReadParam",
|
|
3468
|
+
kind: "formatter",
|
|
3469
|
+
summary: "Public event query params for the calendar display mode",
|
|
3470
|
+
schema: scopeParamSchema,
|
|
3471
|
+
run(value, { key }) {
|
|
3472
|
+
return eventScopeLoaderParam(resolveEventCalendarRead(asPartialObject(value) ?? {}).query, key);
|
|
3564
3473
|
}
|
|
3565
3474
|
};
|
|
3566
3475
|
const readJobSchema = z.object({ job: z.enum([
|
|
@@ -3647,6 +3556,7 @@ const builtinTransformDefinitions = [
|
|
|
3647
3556
|
eventCalendarListWindow,
|
|
3648
3557
|
eventCalendarSelectionParam,
|
|
3649
3558
|
eventScopeParam,
|
|
3559
|
+
eventCalendarReadParam,
|
|
3650
3560
|
eventCalendarReadEnabled,
|
|
3651
3561
|
eventCalendarReadProfile,
|
|
3652
3562
|
eventCalendarBanded,
|
|
@@ -4126,20 +4036,27 @@ function joinAcrossRun(byPair, previousBlockId, nextBlockId, run) {
|
|
|
4126
4036
|
}
|
|
4127
4037
|
/**
|
|
4128
4038
|
* The single composition site. For every adjacent pair of survivors with ids,
|
|
4129
|
-
* finds its join and composes it
|
|
4130
|
-
* each paints with and the
|
|
4039
|
+
* finds its join and composes it, and decides their seam, from the same facts
|
|
4040
|
+
* read once from each survivor's final content: what each paints with and the
|
|
4041
|
+
* frame each draws.
|
|
4131
4042
|
*/
|
|
4132
4043
|
function composePageJoins(input) {
|
|
4133
4044
|
const byPair = joinsByPair(input.joins);
|
|
4045
|
+
const sides = input.survivors.map((survivor) => ({
|
|
4046
|
+
facts: sectionFactsForContent(survivor.content, survivor.ground),
|
|
4047
|
+
section: survivor.section
|
|
4048
|
+
}));
|
|
4134
4049
|
return input.survivors.flatMap((previous, index) => {
|
|
4135
4050
|
const next = input.survivors[index + 1];
|
|
4136
|
-
|
|
4051
|
+
const before = sides[index];
|
|
4052
|
+
const after = sides[index + 1];
|
|
4053
|
+
if (!next || !before || !after || !previous.id || !next.id) return [];
|
|
4137
4054
|
const join = byPair.get(pairKey(previous.id, next.id));
|
|
4138
4055
|
return [{
|
|
4139
4056
|
previousBlockId: previous.id,
|
|
4140
4057
|
nextBlockId: next.id,
|
|
4141
|
-
join: join ? composeJoin(join,
|
|
4142
|
-
|
|
4058
|
+
join: join ? composeJoin(join, before.facts, after.facts) : null,
|
|
4059
|
+
seam: sectionSeam(before, after)
|
|
4143
4060
|
}];
|
|
4144
4061
|
});
|
|
4145
4062
|
}
|
|
@@ -4149,7 +4066,7 @@ function composeJoin(join, previous, next) {
|
|
|
4149
4066
|
previousBlockId: join.previousBlockId,
|
|
4150
4067
|
nextBlockId: join.nextBlockId,
|
|
4151
4068
|
treatment: join.treatment,
|
|
4152
|
-
outcome: composeBoundary(
|
|
4069
|
+
outcome: composeBoundary(previous, next, join.treatment)
|
|
4153
4070
|
};
|
|
4154
4071
|
}
|
|
4155
4072
|
/** Placement, reserves and paint for a join that draws; null otherwise. */
|
|
@@ -4750,4 +4667,4 @@ function plannedSlotParents(entry, look) {
|
|
|
4750
4667
|
return arrangementSlotParentsForManifest(entry.definition.manifest, look.look.target, arrangement, look.look.structure.eventRows);
|
|
4751
4668
|
}
|
|
4752
4669
|
//#endregion
|
|
4753
|
-
export { formatEventDuration as $, OfferingCourseCards as A, EventItem as B, resolvePageRouteTarget as C, EVENT_REGISTRATION_ANCHOR_ID as D, EventHeader as E, createEditorPresentationPageReader as F, eventDisplayTitleText as G, CalendarIcon as H, createPresentationPageReader as I, buildMonthDay as J, formatCourseDatesAfter as K, EmptyState as L, offeringDatesBySeries as M, deriveEventScheduleSummary as N, MonthLookView as O, derivePreviewRunSchedule as P, formatEventTeacherLine as Q, CardListCollection as R, resolveEntryRouteTarget as S, lookPartShown as T, MapPinIcon as U, eventCategoryBadge as V, eventDisplayTitle as W, formatEventQuickDate as X, resolveMonthSelectedDay as Y, selectQuickDateEvents as Z, publicAppointmentLocationSchema as _, joinSlotKey as a,
|
|
4670
|
+
export { formatEventDuration as $, OfferingCourseCards as A, EventItem as B, resolvePageRouteTarget as C, EVENT_REGISTRATION_ANCHOR_ID as D, EventHeader as E, createEditorPresentationPageReader as F, eventDisplayTitleText as G, CalendarIcon as H, createPresentationPageReader as I, buildMonthDay as J, formatCourseDatesAfter as K, EmptyState as L, offeringDatesBySeries as M, deriveEventScheduleSummary as N, MonthLookView as O, derivePreviewRunSchedule as P, formatEventTeacherLine as Q, CardListCollection as R, resolveEntryRouteTarget as S, lookPartShown as T, MapPinIcon as U, eventCategoryBadge as V, eventDisplayTitle as W, formatEventQuickDate as X, resolveMonthSelectedDay as Y, selectQuickDateEvents as Z, publicAppointmentLocationSchema as _, joinSlotKey as a, buildThemeTokens as at, describePublicRefundPolicy as b, createCustomBlockRegistry as c, resolveLinkedEntryInlineFieldEligibility as d, parseStoredVariant as et, builtinTransformDefinitions as f, formatAppointmentPrice as g, formatAppointmentLocation as h, composePageJoins as i, resolveRuntimeSection as it, eventCardListContent as j, EventListingFrameView as k, buildLinkedContentEditTarget as l, formatAppointmentDuration as m, createPageRenderPlanReader as n, arrangementContentFacts as nt, renderedJoinLayout as o, defaultThemeTokens as ot, defaultTransforms as p, formatCourseSessions as q, planArrangementContent as r, lookFillPartsFromContent as rt, retargetJoinsAcrossOmissions as s, buildPageRenderPlan as t, selectBlockContent as tt, coerceLinkedContentEntriesPayload as u, publicAppointmentPricingSchema as v, resolveRouteTarget as w, resolveAuthoredLinkHref as x, PUBLIC_FREE_CANCELLATION as y, CardListItems as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Is as isRecord$1, _a as normalizeSelectSource, _s as resolveRepeaterGridSpanFieldId, ea as parseBlockIconValue, ga as plainTextToInlineText, gs as resolveRepeaterGridRowFieldId, ha as parseInlineTextFromUnknown, hs as resolveRepeaterGridColumnFieldId, ks as linkSchema, lc as toUtcIsoDateTimeString, ms as parseRepeaterGridInteger, p as sanitizeNewsletterSignupPublicContent, pa as inlineTextToPlainText, ps as isAcceptedRepeaterGridSpan, ss as DEFAULT_MEDIA_FIELD_KINDS, t as getBlockDefinition, uc as resolveBookingBusinessTimeZone, xc as parseContentVersionId, ya as parseFieldDefinitions } from "./registry-Cc88-23f.mjs";
|
|
2
2
|
import { c as runtimeBoxBackgroundSchema, s as boxBackgroundSchema } from "./schema-CwfxQjc4.mjs";
|
|
3
3
|
import { c as publicLocationSchema, i as locationValueSchema, s as projectPublicLocation, u as trimmedStringOrNull } from "./mapLocation-MDDSubTp.mjs";
|
|
4
4
|
import { f as isRichTextDoc } from "./typeGuards-CTW_9AXq.mjs";
|