@riverbankcms/sdk 0.172.0 → 0.173.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-DtrzTJ77.d.ts → BlocksIslandsHydrator-O50mTMCY.d.ts} +1 -1
- package/dist/_dts/{Page-DViYbakk.d.ts → Page-Bk99sJwV.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-D-5OeDbT.d.ts → SdkPreviewMode-DzAue6Kj.d.ts} +2 -2
- package/dist/_dts/{client-DZBOzd3U.d.ts → client-ZlNEIvlU.d.ts} +1002 -139
- package/dist/_dts/{content-types-DS3DrYn_.d.ts → content-types-DBXPNc0h.d.ts} +2 -2
- package/dist/_dts/{contracts-C3QGPCUf.d.ts → contracts-D9bhu0bb.d.ts} +4 -3
- package/dist/_dts/{footerPageOutline-D9Q7VIul.d.ts → footerPageOutline-Bfap3soN.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-R7NeFT1u.d.ts → generatePageMetadata-DwCdg31h.d.ts} +2 -2
- package/dist/_dts/{index-CpOkfBt1.d.ts → index-BnatulTs.d.ts} +3 -3
- package/dist/_dts/{index-Dns7OHyl.d.ts → index-C611wjIL.d.ts} +1 -1
- package/dist/_dts/{index-Da4UMgbs.d.ts → index-CJzs-yIJ.d.ts} +2 -2
- package/dist/_dts/{index-MuMYjetm.d.ts → index-DW3eeNph.d.ts} +4 -4
- package/dist/_dts/{index-DkFV_1Bc.d.ts → index-Dq_AboWN.d.ts} +1 -1
- package/dist/_dts/{index-C0zjLMAW.d.ts → index-DutLU2d2.d.ts} +1 -1
- package/dist/_dts/{index-BnMavhoh.d.ts → index-KXh8FQ2s.d.ts} +2 -2
- package/dist/_dts/{loadContent-DJmXHzfi.d.ts → loadContent-Bde2y870.d.ts} +7 -7
- package/dist/_dts/{request-wQ28JWbr.d.ts → request-Bysk4QPI.d.ts} +1842 -262
- package/dist/_dts/{resolveBlockData-C-IP53u9.d.ts → resolveBlockData-ChbNvpSF.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-Cc4zqaEC.d.ts → resolvePageContent-CGa6QMgc.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 +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +6 -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 +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-DrinAfeW.d.ts → types-BoEk9ZON.d.ts} +3 -3
- package/dist/_dts/{types-CpjyP5I4.d.ts → types-BwitGNTl.d.ts} +7 -7
- package/dist/_dts/{types-ZuZoGsZV.d.ts → types-kpp8XyXv.d.ts} +2 -2
- package/dist/_dts/{validation-CIZ_fP5l.d.ts → validation-ChftKX-o.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-UFmQB1BE.mjs → BlocksIslandsHydrator-BnUeSE3d.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-VjRYhx1c.mjs → BookingMailingListNote-LHQMODqB.mjs} +13 -7
- package/dist/client/{BookingPanelArrangement-DpqnRo-t.mjs → BookingPanelArrangement-Be704P85.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-CzOT8ZWo.mjs → BookingQuestionFields-BewbU_cV.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-CNckKZct.mjs → CalendarNavigationChevron-BMZp3RS3.mjs} +41 -34
- package/dist/client/{DemoBookingPortalAccess-CmZLVXOy.mjs → DemoBookingPortalAccess-CARUWQ_E.mjs} +21 -21
- package/dist/client/{EventCalendar.client-BU-SxLCn.mjs → EventCalendar.client-CaI6upCX.mjs} +11 -10
- package/dist/client/{EventCombined.client-f28VltfY.mjs → EventCombined.client-CoRUaYHY.mjs} +10 -9
- package/dist/client/{EventItem-sKBofjiW.mjs → EventItem-Doe4KodB.mjs} +25 -16
- package/dist/client/{EventListWeekNavigation-IAcax47T.mjs → EventListWeekNavigation-CXWLKDfa.mjs} +1 -1
- package/dist/client/{EventListing.client-BEtnRvZr.mjs → EventListing.client-DvJ5tGTx.mjs} +3 -3
- package/dist/client/{EventListing.view-BZ4l_rmT.mjs → EventListing.view-BmfyK7S5.mjs} +37 -14
- package/dist/client/{EventRegistrationPayment-BWb295cD.mjs → EventRegistrationPayment-DwMlJB2V.mjs} +846 -145
- package/dist/client/{LocationMapActions-Hsj2HC_1.mjs → LocationMapActions-CdRPU6gp.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-C7E7Lyfa.mjs → MapDrawingSvg-DCLtxOnt.mjs} +1 -1
- package/dist/client/{Page-Ds1s3DuC.mjs → Page-D46Dmr7b.mjs} +548 -44
- package/dist/client/{StepIndicator-CSCyAaKY.mjs → StepIndicator-CrSZCZn1.mjs} +82 -11
- package/dist/client/{accessibleSurfaces-OsAseM7H.mjs → accessibleSurfaces-D4DhWo9j.mjs} +1 -20
- package/dist/client/{accordion-DgwFZJSx.mjs → accordion-P8xcfKxq.mjs} +1 -1
- package/dist/client/bookability-SargNwlO.mjs +17 -0
- package/dist/client/{booking-form.client-CKY9oksp.mjs → booking-form.client-BM2s-NqR.mjs} +11 -11
- package/dist/client/{bookingForm-CsHhcdSF.mjs → bookingForm-JnaZPZge.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-B1Z_TGAe.mjs → boxStyleClassNames-Cahps5kR.mjs} +1 -1
- package/dist/client/{carousel-0sw2Kc3a.mjs → carousel-CQQ_m0KA.mjs} +1 -1
- package/dist/client/{cart-CPfvMDGJ.mjs → cart-0Q4fjw_K.mjs} +3 -3
- package/dist/client/{cart.client-BJBPUTmg.mjs → cart.client-BI0IaHX3.mjs} +1 -1
- package/dist/client/{checkout-DU4JFjGT.mjs → checkout-1J-3ftxF.mjs} +3 -3
- package/dist/client/{checkout.client-BbNCO4xa.mjs → checkout.client-DOGYDlDk.mjs} +1 -1
- package/dist/client/{checkoutUrls-BQ3OlWlM.mjs → checkoutUrls-CwHqcqzP.mjs} +1 -1
- package/dist/client/client.mjs +52 -4
- package/dist/client/{context-xNC1Cyjw.mjs → context-D0KCgbOq.mjs} +81 -14
- package/dist/client/{cta-CNVQHLKs.mjs → course-CmOuoZHN.mjs} +76 -2
- package/dist/client/{dateFormatting-B6ea-egy.mjs → dateFormatting-Dmfaczzq.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BhjGxhX3.mjs → demoPortalMagicLink-CL7KGRta.mjs} +1 -1
- package/dist/client/{display-B5DfNb6A.mjs → display-lL-YRApN.mjs} +2462 -426
- package/dist/client/{enhanceHeaderSection-BFcHLuqk.mjs → enhanceHeaderSection-B-eLGs2C.mjs} +3 -3
- package/dist/client/{event-details.client-WHT5GLn2.mjs → event-details.client-DH1-Jxsh.mjs} +1 -1
- package/dist/client/{event-registration.client-CmnRKELC.mjs → event-registration.client-GuuElczW.mjs} +1314 -552
- package/dist/client/{eventCalendar-2NbdCyov.mjs → eventCalendar-BiCINPkV.mjs} +4 -4
- package/dist/client/{eventCombined-D1lH1n2T.mjs → eventCombined-BtzmH6FW.mjs} +4 -4
- package/dist/client/{eventDetails-BHvnF2Tw.mjs → eventDetails-BJpAD10-.mjs} +2 -2
- package/dist/client/{eventListing-EhSDk4UL.mjs → eventListing-jLB8iRqp.mjs} +4 -4
- package/dist/client/{eventRegistration-z_0jN_KS.mjs → eventRegistration-WhtpDEbq.mjs} +4 -4
- package/dist/client/{form-BfChzSkS.mjs → form-DO6qKH3M.mjs} +3 -3
- package/dist/client/{form.client-D1zehtPk.mjs → form.client-D12ljYiX.mjs} +3 -3
- package/dist/client/{form.parts-rMDlUQIv.mjs → form.parts-C8QHaQOI.mjs} +1 -1
- package/dist/client/{formatDate-ymSVT9Y5.mjs → formatDate-BnhfIpCa.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-BX9bQ84k.mjs → headerSection-BtFWtoUm.mjs} +2 -2
- package/dist/client/{newsletter-form.client-DMbuJCtJ.mjs → newsletter-form.client-oHrqM_Ao.mjs} +4 -4
- package/dist/client/{newsletter-form.parts-BxrVsoI0.mjs → newsletter-form.parts-D5U-FuVy.mjs} +1 -1
- package/dist/client/{newsletterForm-B_I3FJFS.mjs → newsletterForm-CBYbFxSx.mjs} +3 -3
- package/dist/client/{noop-CamIX2yK.mjs → noop-CN0o0yjH.mjs} +115 -12
- package/dist/client/portal/client.mjs +7 -7
- package/dist/client/{product-detail.client-qxuiYCof.mjs → product-detail.client-d_sNCapC.mjs} +1 -1
- package/dist/client/{product-list.client-CDL-jihv.mjs → product-list.client-DkSpw6WQ.mjs} +1 -1
- package/dist/client/{productDetail-B97m0uZy.mjs → productDetail-DaqM-LgL.mjs} +3 -3
- package/dist/client/{productList-DE4vSSG_.mjs → productList-CMx4-XlG.mjs} +3 -3
- package/dist/client/{propsDecoder-BTde6Syh.mjs → propsDecoder-BZbUKstC.mjs} +3 -3
- package/dist/client/{registry.server-Cn8XjRte.mjs → registry.server-Cdot3dMk.mjs} +85 -57
- package/dist/client/rendering/client.mjs +25 -25
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +24 -55
- package/dist/client/{richText-coerce-Bcl3vTb4.mjs → richText-coerce-ByApwB4q.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-BjRoLoMD.mjs → routeIslandApiConfig-DTET8f__.mjs} +1 -1
- package/dist/client/{runtimeResponse-B-lrAGhX.mjs → runtimeResponse-IkOwKZD0.mjs} +1 -1
- package/dist/client/runtimeResponse-Wd6kwhE_.mjs +3 -0
- package/dist/client/{shop-BC4H0oYT.mjs → shop-Cy6xXDM7.mjs} +3 -3
- package/dist/client/{shop-commerce-BsY7a71m.mjs → shop-commerce-oDR76k1q.mjs} +11 -10
- package/dist/client/{shop-commerce-store-BZ5j90HD.mjs → shop-commerce-store-DjoUpL3a.mjs} +1 -1
- package/dist/client/shop-discount-apply.state-WsGb9DD8.mjs +166 -0
- package/dist/client/{shop.client-WgGVGelc.mjs → shop.client-Brha4BSM.mjs} +11 -10
- package/dist/client/{shop.interactive-Bb67gPLL.mjs → shop.interactive-CXhYl0DW.mjs} +35 -12
- package/dist/client/{shopShared-BE6TEk2A.mjs → shopShared-JCa_SRhP.mjs} +2 -2
- package/dist/client/stable-json-D0XAEIXc.mjs +22 -0
- package/dist/client/{timetableModel-Bbz_ECL5.mjs → timetableModel-CZeJwMxP.mjs} +10 -10
- package/dist/client/{useAvailableSlots-CdP14E_b.mjs → useAvailableSlots-DfbSkWop.mjs} +17 -6
- package/dist/client/{useDiscountApply-DvOSso2l.mjs → useDiscountApply-Dq-wjb1d.mjs} +4 -167
- package/dist/client/{useDiscountCodeUi-B4fRd2jy.mjs → useDiscountCodeUi-Cyy0meCH.mjs} +1 -1
- package/dist/client/{useEventPagination-M3jC8lgP.mjs → useEventPagination-CCAGQHsD.mjs} +5 -5
- package/dist/client/{view-B0TFnP4y.mjs → view-D6yebI4r.mjs} +51 -31
- package/dist/client/{view-DNNNbnNj.mjs → view-Sw075FOY.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-D59tHj_L.mjs → PageSectionToolbar-DG2rXUmo.mjs} +26 -19
- package/dist/preview-next/client/{PreviewEditorSidebar-CjOIZlUk.mjs → PreviewEditorSidebar-BDY5vdHU.mjs} +27 -360
- package/dist/preview-next/client/{PreviewEditorUI--kS9Cwsc.mjs → PreviewEditorUI-CqZCfOaz.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-Bi8-rclb.mjs → PreviewShell-Bv2HZ7JY.mjs} +7 -7
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CWTUw-3L.mjs → SdkPreviewModeRuntime-BMTcR-MW.mjs} +5 -55
- package/dist/preview-next/client/{SiteChromeCustomizeButton-CrgS3I8d.mjs → SiteChromeCustomizeButton-D1MGyN_Z.mjs} +2668 -799
- package/dist/preview-next/client/{previewAssistantSlot-Caofnr1Z.mjs → previewAssistantSlot-La6MerV_.mjs} +3540 -684
- package/dist/preview-next/client/{previewChromeRoot-CbAI_jSH.mjs → previewChromeRoot-BcOQqJIP.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DY65_hLk.mjs → sdk-runtime-BkckHox4.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus-CakNU3lp.mjs → useAutosaveStatus-CPAHgGqI.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-CCEMkosU.mjs → useOpenBlockForSetup-BDkuSZxQ.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-DsKDQoVW.mjs → route-contract-CPV30ABr.mjs} +48 -0
- package/dist/server/{Block.shared-D7Qy9F4a.mjs → Block.shared-BaMMstO1.mjs} +5 -5
- package/dist/server/{bindings-Bp6OnR3n.mjs → bindings-Dge4sqel.mjs} +4 -4
- package/dist/server/{client-dROAfMRa.mjs → client-VVIQjC4r.mjs} +51 -3
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{identity-20XHqyuO.mjs → identity-DQD_8lNO.mjs} +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-zOIrtqz-.mjs → loadContent-BIJb3WAK.mjs} +5 -6
- package/dist/server/{loadPage-vwFiq1Rk.mjs → loadPage-DjTU19y7.mjs} +2 -2
- package/dist/server/{media-Brn9FW5s.mjs → media-luf7RF22.mjs} +2 -2
- package/dist/server/{navigation-DAwbICEL.mjs → navigation-iC_hXjJI.mjs} +3 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +6 -6
- package/dist/server/{overrideResolution-DjboggbB.mjs → overrideResolution-1Ru3NMQj.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-BR4t1rOw.mjs → pageRenderPlan-CytPhrI9.mjs} +143 -27
- package/dist/server/{pageRuntimeSupport-BKo6XVK-.mjs → pageRuntimeSupport-DWspU5EZ.mjs} +3 -3
- package/dist/server/{pageShared-BJjptSGp.mjs → pageShared-Bhx8bVe1.mjs} +166 -67
- package/dist/server/{parseThemeForPersistence-B18KDEue.mjs → parseThemeForPersistence-CtgRtvo3.mjs} +1 -1
- package/dist/server/{prebuild-CntSkZQI.mjs → prebuild-BjvFb0CA.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BM9Ds0OQ.mjs → prefetchBlockData-Db3stNpp.mjs} +3 -3
- package/dist/server/{registry-wYH0LH5f.mjs → registry-BMCfcev6.mjs} +809 -191
- 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 +8 -8
- package/dist/server/{resolveBlockData-Bu_p4HxZ.mjs → resolveBlockData--yUbI-Ll.mjs} +1 -1
- package/dist/server/{responseMedia-t6gs0cB7.mjs → responseMedia-DpBC1hTM.mjs} +1 -1
- package/dist/server/{schema-BFOqYIMQ.mjs → schema-D5Vfmqzw.mjs} +394 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{validation-DAQdPDku.mjs → validation-EgTtnTcY.mjs} +4 -4
- package/dist/server/{version-DAB0O3yx.mjs → version-LjgU0Cq1.mjs} +1 -1
- package/dist/styles/index.css +174 -0
- package/package.json +1 -1
- package/dist/client/runtimeResponse-CPcA8xSm.mjs +0 -3
- package/dist/server/rich-text-CRcONdyM.mjs +0 -33
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Dt as parseThemeColorToken, G as hexToRgb, J as oklchToHexGamut, K as oklabToOklch, P as getTextColorForBackground, R as contrastRatio, X as rgbToHex, Z as srgbToOklab, q as oklabToSrgb } from "./resolveButtonColourStates-CCPUY9Xh.mjs";
|
|
2
|
-
import { $
|
|
2
|
+
import { $i as isToday, $r as lookCarouselRegionTransform, Ai as augmentManifest, Ao as resolveEffectiveKnobs, As as formatDateRange, Bi as resolveCalendarReadProfile, Bn as resolveHeroTitleLength, Bs as resolveBookingBusinessTimeZone, Ca as arrangementAppearancePresets, Co as deriveSectionGround, Do as stripStaleTransitionStyleGroup, Eo as sectionSurfaceBase, Fa as resolveModeArrangement, Fi as eventDiscoveryFilterKeys, Fn as mediaTransforms, Fs as compareLocalScheduleDates, Gr as parseRuntimeBackgroundContent, Gt as eventDateOptions, Hi as eventCalendarListLayoutOptions, Hn as formattingTransforms, Ho as cardListFamilyBlocks, Hs as toUtcIsoDateTimeString, Ht as weekColumnDays, I as combinedLookSchema, Ia as resolvePublishedLook, Ii as eventScopeLoaderParam, In as headerRuntimeTransforms, J as CardListLeadDate, Ja as gradientToCss, Jr as resolveBackgroundColorValue, Kr as resolveSectionSurfaceForeground, Kt as eventLocalDateKey, Li as eventScopeQuery, Ln as chromeLogoTransforms, Ls as getLocalScheduleDate, Ma as arrangementManifestFromVariants, Mi as eventReadinessQuery, Mo as assertNever, Na as readStoredMode, Ni as eventReadinessQueryKeys, Nn as readRuntimeNow, Oo as themeV2CompilerOwnedFieldNames, Pa as resolveEffectiveArrangement, Pt as ThemedButtonLink, Q as MediaNodeServer, Qn as listItemPresentation, Ra as deriveSiteStyleBlockPolicy, Ri as eventScopeQueryKeys, Rn as layoutTransforms, Rs as parseBookingLocalDate, Rt as buildEventListWeek, Sa as heroPhotoPaintsGround, So as applyLookPhotoTreatment, Sr as heroTitleSizeOptions, To as resolveSectionBackground, Tt as groupOfferingRunsByCourse, Ui as resolveEventCalendarReadPlan, Uo as cardListKnobBlocks, Ur as parseBackgroundContent, Vi as eventCalendarListGroupingDecision, Vn as uiTransforms, Vt as groupEventsByWeek, Wr as parseBackgroundOverlay, Ws as formatBookingPriceDisplay, Wt as eventCalendarWeekStart, X as resolveCardListSchedule, Xr as isSemanticSpacing, Xs as resolvePricingOptionsPriceDisplay, Xt as formatEventCompactDateRail, Ya as getGradientPreset, Ys as resolveExactOrFreePriceDisplay, Z as selectCardListPresentation, Zt as formatEventDateParts, _a as resolveLookSurfacePresentation, _n as getEventAvailability, an as resolveEventTimeZone, br as BACKGROUND_POSITION_PRESET_VALUES, co as sectionShapeForGround, da as isObjectRecord, ei as lookLeadSlotTransform, en as formatEventRunDates, er as listLookSlot, et as ImagePresets, fn as closedRunCopy, fr as classPricesCopySchema, ga as lookPresentationOnPalette, gn as formatTotalCapacity, gr as formatEventPrice, hi as ClockIcon, hn as formatEventRemainingPlaces, hr as formatCoursePrice, hs as resolveWholeSeriesBookingPhase, ii as createTransformRegistry, in as groupEventsByDate, ir as standardAspectRatioOptions, ja as styleSectionBackgroundForColour, ji as eventReadinessLoaderKey, js as formatDateTimeRange, kn as contentTransforms, ks as formatDate, la as eventCalendarListLayoutCompatibleDisplayModeValues, lo as sectionShapeFromContent, lr as standardImageShapeOptions, mn as canJoinEventWaitlistOnAnyMode, mr as resolveClassPriceItems, ms as orderedLiveRunSessions, nc as arrangementSlotNames, ni as lookSkinSlotTransform, nn as formatEventWeekdayTime, nt as computeMediaTransformStyle, on as resolveRuntimeEventDestination, po as boundaryRuntimeMetricsForDecorativeTransition, pr as classPricesDataSchema, ps as nextLiveRunSessionStartMs, q as CardListContentPart, qi as formatDateKey, qr as resolveSurfaceForegroundStyles, ri as asPartialObject, rn as formatTime, sn as formatBookingSchedulePresentation, sr as heroMorePhotoCount, t as getBlockDefinition, tc as parseGradientPresetId, ti as lookQuoteLimitTransform, tn as formatEventTimeRange, uo as sectionShapeHook, ut as EventQuickFacts, vn as getEventAvailabilityStatus, vr as formatEventPriceDisplay, wo as parseCanonicalRuntimeBackground, xr as getAnchorClasses, yn as isEventFull, yr as formatEventStartingPrice, zi as resolveEventScope, zr as boxStylesTransforms } from "./registry-BMCfcev6.mjs";
|
|
3
3
|
import { A as resolveOnColorForThemeToken, M as resolveTokenOrCssColorValue, W as resolveConcreteColorHex, k as isCssColorLiteral, n as parseSurfaceTree } from "./accessibleSurfaces-Dbd2__Le.mjs";
|
|
4
|
-
import { I as asSiteStyleId, L as makeBoundaryId, P as asLayoutVariantKey, j as asDesignBlockId } from "./schema-
|
|
5
|
-
import { o as runtimeMediaSchema } from "./media-
|
|
4
|
+
import { I as asSiteStyleId, L as makeBoundaryId, P as asLayoutVariantKey, j as asDesignBlockId } from "./schema-D5Vfmqzw.mjs";
|
|
5
|
+
import { o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
6
6
|
import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
|
|
7
7
|
import { o as isRecord$2 } from "./richTextSchema-QLaQrbII.mjs";
|
|
8
8
|
import { i as outlineRegions, n as mapOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
|
|
@@ -1071,6 +1071,80 @@ function resolveMonthSelectedDay(input) {
|
|
|
1071
1071
|
return occupied.find((key) => key >= todayKey) ?? occupied[0] ?? formatDateKey(input.viewDate);
|
|
1072
1072
|
}
|
|
1073
1073
|
//#endregion
|
|
1074
|
+
//#region ../blocks/src/system/runtime/nodes/events/domain/course.ts
|
|
1075
|
+
function eventDisplayTitle(event) {
|
|
1076
|
+
const run = event.bookingScope === "whole_series" ? event.run : void 0;
|
|
1077
|
+
const courseTitle = run?.courseTitle?.trim();
|
|
1078
|
+
if (!courseTitle) return {
|
|
1079
|
+
title: event.title,
|
|
1080
|
+
runName: null
|
|
1081
|
+
};
|
|
1082
|
+
const runName = run?.runName?.trim();
|
|
1083
|
+
return {
|
|
1084
|
+
title: courseTitle,
|
|
1085
|
+
runName: runName && runName !== courseTitle ? runName : null
|
|
1086
|
+
};
|
|
1087
|
+
}
|
|
1088
|
+
/**
|
|
1089
|
+
* Complete name for one dated occurrence: calendar cells, tooltips, modal
|
|
1090
|
+
* headings and accessible labels. A title authored on the occurrence itself
|
|
1091
|
+
* wins over the course and run name, which only describe the run as a whole.
|
|
1092
|
+
*/
|
|
1093
|
+
function eventDisplayTitleText(event) {
|
|
1094
|
+
const occurrenceTitle = event.occurrenceTitle?.trim();
|
|
1095
|
+
if (occurrenceTitle) return occurrenceTitle;
|
|
1096
|
+
const { title, runName } = eventDisplayTitle(event);
|
|
1097
|
+
return runName ? `${title}: ${runName}` : title;
|
|
1098
|
+
}
|
|
1099
|
+
const WEEK_MS = 10080 * 60 * 1e3;
|
|
1100
|
+
/** A clock change moves a weekly session by an hour against UTC. */
|
|
1101
|
+
const CLOCK_CHANGE_MS = 3600 * 1e3;
|
|
1102
|
+
function sessionMinutes(session) {
|
|
1103
|
+
return Math.round((Date.parse(session.endsAt) - Date.parse(session.startsAt)) / 6e4);
|
|
1104
|
+
}
|
|
1105
|
+
function isWeekly(sessions) {
|
|
1106
|
+
return sessions.slice(1).every((session, index) => {
|
|
1107
|
+
const previous = sessions[index];
|
|
1108
|
+
return previous !== void 0 && Math.abs(Date.parse(session.startsAt) - Date.parse(previous.startsAt) - WEEK_MS) <= CLOCK_CHANGE_MS;
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
/** "1 hour", "3 hours", "45 minutes", "1 hour 30 minutes". */
|
|
1112
|
+
function formatSessionLength(minutes) {
|
|
1113
|
+
if (!Number.isFinite(minutes) || minutes <= 0) return null;
|
|
1114
|
+
const hours = Math.floor(minutes / 60);
|
|
1115
|
+
const rest = minutes % 60;
|
|
1116
|
+
return [hours ? `${hours} hour${hours === 1 ? "" : "s"}` : null, rest ? `${rest} minute${rest === 1 ? "" : "s"}` : null].filter(Boolean).join(" ");
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* A course's sessions in one line, from the run's complete schedule rather
|
|
1120
|
+
* than whichever occurrence rows were loaded: "6 weekly sessions, 1 hour
|
|
1121
|
+
* each". The cadence and length are only stated when every session shares
|
|
1122
|
+
* them. A one-session course has nothing to add to its date and time.
|
|
1123
|
+
*/
|
|
1124
|
+
function formatCourseSessions(event) {
|
|
1125
|
+
if (event.bookingScope !== "whole_series" || !event.run) return null;
|
|
1126
|
+
const sessions = orderedLiveRunSessions(event.run.sessions);
|
|
1127
|
+
if (sessions.length < 2) return null;
|
|
1128
|
+
const lengths = new Set(sessions.map(sessionMinutes));
|
|
1129
|
+
const [onlyLength] = lengths;
|
|
1130
|
+
const length = lengths.size === 1 && onlyLength !== void 0 ? formatSessionLength(onlyLength) : null;
|
|
1131
|
+
const count = `${sessions.length} ${isWeekly(sessions) ? "weekly " : ""}sessions`;
|
|
1132
|
+
return length ? `${count}, ${length} each` : count;
|
|
1133
|
+
}
|
|
1134
|
+
/** The dates a card doesn't list: "and 5 more". */
|
|
1135
|
+
function formatMoreDates(remaining) {
|
|
1136
|
+
return remaining > 0 ? `and ${remaining} more` : null;
|
|
1137
|
+
}
|
|
1138
|
+
/**
|
|
1139
|
+
* For a card that shows one course session's date: how many of the course's
|
|
1140
|
+
* sessions come after it ("and 5 more"), or null for anything else.
|
|
1141
|
+
*/
|
|
1142
|
+
function formatCourseDatesAfter(event) {
|
|
1143
|
+
if (event.bookingScope !== "whole_series" || !event.run) return null;
|
|
1144
|
+
const shownMs = Date.parse(event.startsAt);
|
|
1145
|
+
return formatMoreDates(orderedLiveRunSessions(event.run.sessions).filter((session) => Date.parse(session.startsAt) > shownMs).length);
|
|
1146
|
+
}
|
|
1147
|
+
//#endregion
|
|
1074
1148
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventCardIcons.tsx
|
|
1075
1149
|
function MapPinIcon({ className, size = 16, strokeWidth = 2 }) {
|
|
1076
1150
|
return /* @__PURE__ */ jsxs("svg", {
|
|
@@ -1242,7 +1316,8 @@ function eventItemFacts(props) {
|
|
|
1242
1316
|
...props.eventRows === "day-schedule" ? { count: "always" } : {}
|
|
1243
1317
|
}) : null,
|
|
1244
1318
|
availability: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available",
|
|
1245
|
-
description: props.event.presentation?.summary ?? props.event.description
|
|
1319
|
+
description: props.event.presentation?.summary ?? props.event.description,
|
|
1320
|
+
title: eventDisplayTitle(props.event)
|
|
1246
1321
|
};
|
|
1247
1322
|
}
|
|
1248
1323
|
/** Rows with a rail keep pricing in the details and time in the action rail. */
|
|
@@ -1347,16 +1422,24 @@ function renderEventItemContentPart({ part, props, facts }) {
|
|
|
1347
1422
|
})
|
|
1348
1423
|
]
|
|
1349
1424
|
});
|
|
1350
|
-
case "title": return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1425
|
+
case "title": return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1426
|
+
/* @__PURE__ */ jsx("h3", {
|
|
1427
|
+
...listLookSlot(props, "item-title"),
|
|
1428
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
1429
|
+
...facts.link,
|
|
1430
|
+
children: facts.title.title
|
|
1431
|
+
})
|
|
1432
|
+
}),
|
|
1433
|
+
facts.title.runName ? /* @__PURE__ */ jsx("p", {
|
|
1434
|
+
className: "rb-card-list-subtitle rb-caption",
|
|
1435
|
+
"data-card-subtitle": true,
|
|
1436
|
+
children: facts.title.runName
|
|
1437
|
+
}) : null,
|
|
1438
|
+
props.eventRows === "day-schedule" ? null : /* @__PURE__ */ jsx(EventQuickFacts, {
|
|
1439
|
+
facts: props.event.facts,
|
|
1440
|
+
context: "card"
|
|
1355
1441
|
})
|
|
1356
|
-
})
|
|
1357
|
-
facts: props.event.facts,
|
|
1358
|
-
context: "card"
|
|
1359
|
-
})] });
|
|
1442
|
+
] });
|
|
1360
1443
|
case "time": return /* @__PURE__ */ jsxs("p", {
|
|
1361
1444
|
...listLookSlot(props, "time"),
|
|
1362
1445
|
children: [hasActionRail(props.arrangement) ? /* @__PURE__ */ jsx(ClockIcon, { "aria-hidden": "true" }) : null, props.arrangement === "week-groups" ? formatEventWeekdayTime(props.event) : facts.time]
|
|
@@ -1380,7 +1463,7 @@ function renderEventItemContentPart({ part, props, facts }) {
|
|
|
1380
1463
|
part: "text",
|
|
1381
1464
|
item: {
|
|
1382
1465
|
id: props.event.id,
|
|
1383
|
-
title:
|
|
1466
|
+
title: facts.title.title,
|
|
1384
1467
|
text: facts.description
|
|
1385
1468
|
},
|
|
1386
1469
|
presentation: props
|
|
@@ -1408,7 +1491,7 @@ function renderEventItemImage(props, link) {
|
|
|
1408
1491
|
part: "media",
|
|
1409
1492
|
item: {
|
|
1410
1493
|
id: props.event.id,
|
|
1411
|
-
title: props.event.title,
|
|
1494
|
+
title: eventDisplayTitle(props.event).title,
|
|
1412
1495
|
media: props.event.presentation?.image,
|
|
1413
1496
|
titleLink: link,
|
|
1414
1497
|
newTabHint: link.target === "_blank"
|
|
@@ -1759,11 +1842,28 @@ function offeringDatesBySeries(events, now, booking) {
|
|
|
1759
1842
|
const groups = events.reduce((result, event) => new Map([...result, [event.seriesId, [...result.get(event.seriesId) ?? [], event]]]), /* @__PURE__ */ new Map());
|
|
1760
1843
|
return new Map([...groups].map(([seriesId, occurrences]) => [seriesId, orderedUniqueEventOccurrences(occurrences.filter((event) => event.bookingScope !== "whole_series" && Date.parse(event.startsAt) >= now.getTime())).slice(0, 3).map((event) => offeringDateRow(event, event, occurrencePlaces(event), booking))]));
|
|
1761
1844
|
}
|
|
1762
|
-
/**
|
|
1763
|
-
|
|
1764
|
-
|
|
1845
|
+
/**
|
|
1846
|
+
* A course's dates on a card: its first upcoming session, then how many more
|
|
1847
|
+
* follow ("and 5 more"). One booking covers every session, so the places left
|
|
1848
|
+
* belong to the course: the card says them once, from its own booking decision,
|
|
1849
|
+
* never per date.
|
|
1850
|
+
*/
|
|
1851
|
+
function offeringRunDates(event, now) {
|
|
1852
|
+
if (event.bookingScope !== "whole_series") return {
|
|
1853
|
+
dates: [],
|
|
1854
|
+
datesMore: null
|
|
1855
|
+
};
|
|
1765
1856
|
const nextStart = nextLiveRunSessionStartMs(event.run.sessions, now);
|
|
1766
|
-
|
|
1857
|
+
const upcoming = nextStart === null ? [] : orderedLiveRunSessions(event.run.sessions).filter((session) => Date.parse(session.startsAt) >= nextStart);
|
|
1858
|
+
const [first] = upcoming;
|
|
1859
|
+
if (!first) return {
|
|
1860
|
+
dates: [],
|
|
1861
|
+
datesMore: null
|
|
1862
|
+
};
|
|
1863
|
+
return {
|
|
1864
|
+
dates: [offeringDateRow(first, event, null)],
|
|
1865
|
+
datesMore: formatMoreDates(upcoming.length - 1)
|
|
1866
|
+
};
|
|
1767
1867
|
}
|
|
1768
1868
|
function offeringDateRow(session, event, places, booking) {
|
|
1769
1869
|
const options = eventDateOptions({
|
|
@@ -1809,7 +1909,7 @@ function eventCardListContent(event, context, buttonText) {
|
|
|
1809
1909
|
leadDate: offeringLeadDate(event, context.nextStartMs),
|
|
1810
1910
|
newTabHint: external,
|
|
1811
1911
|
...offeringSchedule(event, context.now),
|
|
1812
|
-
...event.bookingScope === "whole_series" ?
|
|
1912
|
+
...event.bookingScope === "whole_series" ? offeringRunDates(event, context.now) : {}
|
|
1813
1913
|
};
|
|
1814
1914
|
default: return assertNever$1(context);
|
|
1815
1915
|
}
|
|
@@ -1818,11 +1918,13 @@ function cardProjectionBase(event, buttonText, context) {
|
|
|
1818
1918
|
const offering = context.kind !== "event-details";
|
|
1819
1919
|
const { cta, availability: places, closed } = cardBooking(event, buttonText, context);
|
|
1820
1920
|
const titleLink = resolveEventLinkProps(event);
|
|
1921
|
+
const { title, runName } = eventDisplayTitle(event);
|
|
1821
1922
|
return {
|
|
1822
1923
|
external: cta.external,
|
|
1823
1924
|
content: {
|
|
1824
1925
|
id: event.occurrenceId || event.id,
|
|
1825
|
-
title
|
|
1926
|
+
title,
|
|
1927
|
+
subtitle: runName,
|
|
1826
1928
|
...titleLink.href ? { titleLink } : {},
|
|
1827
1929
|
quickFacts: event.facts,
|
|
1828
1930
|
text: event.presentation?.summary ?? event.description,
|
|
@@ -1920,12 +2022,19 @@ function scheduleLine(summary, event, now) {
|
|
|
1920
2022
|
}
|
|
1921
2023
|
}
|
|
1922
2024
|
}
|
|
2025
|
+
/**
|
|
2026
|
+
* A course's facts are said for the whole course ("6 weekly sessions, 1 hour
|
|
2027
|
+
* each", "£72 for the course"), so one session's length never sits beside
|
|
2028
|
+
* the price of all of them.
|
|
2029
|
+
*/
|
|
1923
2030
|
function offeringFacts(event, places, offering) {
|
|
2031
|
+
const course = event.bookingScope === "whole_series";
|
|
2032
|
+
const sessions = formatCourseSessions(event);
|
|
1924
2033
|
return [
|
|
1925
|
-
...
|
|
2034
|
+
...sessions ? [{
|
|
1926
2035
|
label: "Length",
|
|
1927
|
-
value:
|
|
1928
|
-
}] :
|
|
2036
|
+
value: sessions
|
|
2037
|
+
}] : lengthFact(event, !offering || course),
|
|
1929
2038
|
...offering && event.venue ? [{
|
|
1930
2039
|
label: "Venue",
|
|
1931
2040
|
value: event.venue.name
|
|
@@ -1937,10 +2046,17 @@ function offeringFacts(event, places, offering) {
|
|
|
1937
2046
|
}] : [],
|
|
1938
2047
|
...offering && event.pricing.kind === "external" ? [] : [{
|
|
1939
2048
|
label: "Price",
|
|
1940
|
-
value: formatEventPriceDisplay(event.pricing)
|
|
2049
|
+
value: course ? formatCoursePrice(event.pricing) : formatEventPriceDisplay(event.pricing)
|
|
1941
2050
|
}]
|
|
1942
2051
|
];
|
|
1943
2052
|
}
|
|
2053
|
+
function lengthFact(event, shown) {
|
|
2054
|
+
const minutes = Math.round((Date.parse(event.endsAt) - Date.parse(event.startsAt)) / 6e4);
|
|
2055
|
+
return shown && minutes > 0 ? [{
|
|
2056
|
+
label: "Length",
|
|
2057
|
+
value: formatEventDuration(event, "readable")
|
|
2058
|
+
}] : [];
|
|
2059
|
+
}
|
|
1944
2060
|
function offeringTypeChips(event, typeLabel) {
|
|
1945
2061
|
return event.eventCategory ? [event.eventCategory.name] : typeLabel ? [typeLabel] : [];
|
|
1946
2062
|
}
|
|
@@ -2390,7 +2506,7 @@ function MonthEvent({ event, timeZone, locale, presentation }) {
|
|
|
2390
2506
|
" ",
|
|
2391
2507
|
/* @__PURE__ */ jsx("span", {
|
|
2392
2508
|
...listLookSlot(presentation, "what"),
|
|
2393
|
-
children: event
|
|
2509
|
+
children: eventDisplayTitleText(event)
|
|
2394
2510
|
})
|
|
2395
2511
|
]
|
|
2396
2512
|
});
|
|
@@ -4894,4 +5010,4 @@ function plannedSlotParents(entry, look) {
|
|
|
4894
5010
|
return arrangementSlotParentsForManifest(entry.definition.manifest, look.look.target, arrangement, look.look.structure.eventRows);
|
|
4895
5011
|
}
|
|
4896
5012
|
//#endregion
|
|
4897
|
-
export {
|
|
5013
|
+
export { resolveEventCta as $, offeringDatesBySeries as A, CalendarIcon as B, systemCustomizeFacetDefinitionsForBlock as C, EventListingFrameView as D, MonthLookView as E, EmptyState as F, formatCourseSessions as G, eventDisplayTitle as H, CardListCollection as I, formatEventQuickDate as J, buildMonthDay as K, CardListItems as L, derivePreviewRunSchedule as M, createEditorPresentationPageReader as N, OfferingCourseCards as O, createPresentationPageReader as P, resolveEventCardBooking as Q, EventItem as R, lookPartShown as S, EVENT_REGISTRATION_ANCHOR_ID as T, eventDisplayTitleText as U, MapPinIcon as V, formatCourseDatesAfter as W, formatEventTeacherLine as X, selectQuickDateEvents as Y, formatEventDuration as Z, publicAppointmentPricingSchema as _, joinSlotKey as a, resolveRuntimeSection as at, resolvePageRouteTarget as b, buildLinkedContentEditTarget as c, builtinTransformDefinitions as d, resolveEventLinkProps as et, defaultTransforms as f, publicAppointmentLocationSchema as g, formatAppointmentPrice as h, composePageJoins as i, lookFillPartsFromContent as it, deriveEventScheduleSummary as j, eventCardListContent as k, coerceLinkedContentEntriesPayload as l, formatAppointmentLocation as m, createPageRenderPlanReader as n, parseStoredVariant as nt, renderedJoinLayout as o, buildThemeTokens as ot, formatAppointmentDuration as p, resolveMonthSelectedDay as q, planArrangementContent as r, selectBlockContent as rt, retargetJoinsAcrossOmissions as s, defaultThemeTokens as st, buildPageRenderPlan as t, isBookableEvent as tt, resolveLinkedEntryInlineFieldEligibility as u, resolveAuthoredLinkHref as v, EventHeader as w, resolveRouteTarget as x, resolveEntryRouteTarget as y, eventCategoryBadge as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $o as
|
|
2
|
-
import { c as runtimeBoxBackgroundSchema, s as boxBackgroundSchema } from "./schema-
|
|
3
|
-
import { f as PUBLIC_FILE_FIELD_KINDS, h as mediaIdentifierSchema, i as mediaSchema, o as runtimeMediaSchema } from "./media-
|
|
1
|
+
import { $o as parseRepeaterGridInteger, Bs as resolveBookingBusinessTimeZone, Cs as locationValueSchema, Ds as trimmedStringOrNull, Ei as normalizeSelectSource, Es as publicLocationSchema, Hs as toUtcIsoDateTimeString, Ko as DEFAULT_MEDIA_FIELD_KINDS, Oi as parseFieldDefinitions, Qo as isAcceptedRepeaterGridSpan, Qs as parseContentVersionId, Si as inlineTextToPlainText, Ti as plainTextToInlineText, Ts as projectPublicLocation, ca as linkSchema, es as resolveRepeaterGridColumnFieldId, l as sanitizeNewsletterSignupPublicContent, li as parseBlockIconValue, ls as isRecord$1, ns as resolveRepeaterGridSpanFieldId, t as getBlockDefinition, ts as resolveRepeaterGridRowFieldId, wi as parseInlineTextFromUnknown } from "./registry-BMCfcev6.mjs";
|
|
2
|
+
import { c as runtimeBoxBackgroundSchema, s as boxBackgroundSchema } from "./schema-D5Vfmqzw.mjs";
|
|
3
|
+
import { f as PUBLIC_FILE_FIELD_KINDS, h as mediaIdentifierSchema, i as mediaSchema, o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
|
|
4
4
|
import { a as isRichTextDoc } from "./richTextSchema-QLaQrbII.mjs";
|
|
5
5
|
import { t as getFlattenedRepeaterFields } from "./repeaterFields-MIz7r1ez.mjs";
|
|
6
6
|
import { n as mapOutlineBlocks, r as mapOutlineRegions } from "./pageRegions-BaeEF2MU.mjs";
|