@riverbankcms/sdk 0.161.0 → 0.162.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-Bx4kLiTA.d.ts → BlocksIslandsHydrator-PZUoA872.d.ts} +1 -1
- package/dist/_dts/{Page-Dm7_P13o.d.ts → Page-CdQS6C7i.d.ts} +8 -8
- package/dist/_dts/{SdkPreviewMode-D7HdWWwF.d.ts → SdkPreviewMode-CNGO-5f1.d.ts} +58 -91
- package/dist/_dts/{client-Ep0jI9eE.d.ts → client-DGa53rjL.d.ts} +11 -3
- package/dist/_dts/{content-types-BgAzCrBc.d.ts → content-types-K9R7P-KF.d.ts} +2 -2
- package/dist/_dts/{contracts-DUiOnj9e.d.ts → contracts-CyBaPaIq.d.ts} +13 -4
- package/dist/_dts/{footerPageOutline-B-uXamTG.d.ts → footerPageOutline-B6jmKmon.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BDkZYEcS.d.ts → generatePageMetadata-iemoR3AN.d.ts} +2 -2
- package/dist/_dts/{index-ylivB7Jj.d.ts → index-8CN0Nd-Z.d.ts} +2 -2
- package/dist/_dts/{index-CSsfq6KG.d.ts → index-BtnsA14K.d.ts} +9 -5
- package/dist/_dts/{index-BVkP8f70.d.ts → index-C39F9KaB.d.ts} +13 -2
- package/dist/_dts/{index-KPrWM0KF.d.ts → index-DEu85xBt.d.ts} +1 -1
- package/dist/_dts/{schema-BHu0PYWl.d.ts → index-DI2yaSPY.d.ts} +4099 -3343
- package/dist/_dts/{types-BR1Yboa9.d.ts → index-Dbd0Sn0G.d.ts} +3300 -1691
- package/dist/_dts/{index-CF6Cjs7b.d.ts → index-Du1IRglc.d.ts} +2 -2
- package/dist/_dts/{index-D_8uz4OP.d.ts → index-Jlcq6w69.d.ts} +3 -3
- package/dist/_dts/{index-DvKQA6AZ.d.ts → index-Wm62sXf2.d.ts} +4 -4
- package/dist/_dts/{loadContent-DTjKOO-T.d.ts → loadContent-BPfAAZDW.d.ts} +10 -7
- package/dist/_dts/{resolvePageContent-C1vA5c5w.d.ts → resolvePageContent-DWbrtKf8.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 +6 -6
- 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/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 +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/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/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-ZGUiHpDE.d.ts → types-CVv2H4AT.d.ts} +7 -7
- package/dist/_dts/{types-D02ngcUH.d.ts → types-CfNG5koF.d.ts} +2 -2
- package/dist/_dts/{types-CJXTCF_F.d.ts → types-ClZ-BQL_.d.ts} +3 -3
- package/dist/_dts/{validation-BaV565gb.d.ts → validation-BJ6Lf_Dr.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DTExCJsb.mjs → BlocksIslandsHydrator-COqlgWYU.mjs} +20 -19
- package/dist/client/{BookingMailingListNote-BDpxmn1p.mjs → BookingMailingListNote-CFYPDEHH.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-PeCiL82X.mjs → CalendarNavigationChevron-COBVxgHb.mjs} +6 -6
- package/dist/client/{CheckboxChoice-DWexRLf6.mjs → CheckboxChoice-C7X9dJ8A.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-3zmIqakW.mjs → DemoBookingPortalAccess-CvT0E9AR.mjs} +26 -10
- package/dist/client/{DemoPortalSignInLink-GHi-8BW5.mjs → DemoPortalSignInLink-EBOBN5dT.mjs} +1 -1
- package/dist/client/{EventCalendar.client-BxQLY5cX.mjs → EventCalendar.client-U6pKcntV.mjs} +16 -17
- package/dist/client/{EventCombined.client-B5bmQ03b.mjs → EventCombined.client-CNzwEHws.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-CgMZ9TeU.mjs → EventEmbeddedCheckoutStep-B9yAWV_k.mjs} +1 -1
- package/dist/client/{EventItem-BEx-qiDE.mjs → EventItem-M5rpaHxi.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-CyH5tA6Y.mjs → EventListWeekNavigation-D4ieBLDY.mjs} +1 -1
- package/dist/client/{EventListing.client-D3uySdGP.mjs → EventListing.client-B8F40Rmn.mjs} +3 -3
- package/dist/client/{EventListing.view-9RFrBejr.mjs → EventListing.view-k4lhuCn5.mjs} +14 -21
- package/dist/client/{EventRegistrationPayment-CG2tQx8K.mjs → EventRegistrationPayment-C3g8_Hqb.mjs} +10 -10
- package/dist/client/LocationMapActions-CAjt7qVo.mjs +62 -0
- package/dist/client/{LocationMapActions-Wsr83Q7q.mjs → MapDrawingSvg-_aIK2ojv.mjs} +2 -70
- package/dist/client/{Page-Bf2nPACI.mjs → Page-DJBIQBOw.mjs} +1762 -254
- package/dist/client/{StepIndicator-CZweb1vs.mjs → StepIndicator-CFacB1z6.mjs} +2 -2
- package/dist/client/{TabBarFragment-Bkgz67gt.mjs → TabBarFragment-BLsfQskO.mjs} +1 -1
- package/dist/client/{ThemedButton-CnyL3s1A.mjs → ThemedButton-BWsDgjMC.mjs} +1 -1
- package/dist/client/{accordion-TcimLLRQ.mjs → accordion-CtO2XF7M.mjs} +1 -1
- package/dist/client/{booking-form.client-q-RpJ4aF.mjs → booking-form.client-RICCQ0h2.mjs} +137 -60
- package/dist/client/{bookingForm-DjGfk3Wj.mjs → bookingForm-SvjLPx8i.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-CGAk6j0m.mjs → carousel-BR-zCD3O.mjs} +2 -2
- package/dist/client/{carousel.client-ArlGmYWV.mjs → carousel.client-CEWtoZd3.mjs} +1 -1
- package/dist/client/{cart-D_h3rAZ2.mjs → cart-C6YpKbZZ.mjs} +3 -3
- package/dist/client/{cart.client-DHOxZbJ7.mjs → cart.client-dC938WrX.mjs} +1 -1
- package/dist/client/{checkout-tC-3CzuM.mjs → checkout-Dy9RlREI.mjs} +3 -3
- package/dist/client/{checkout.client-DsBb2Pkm.mjs → checkout.client-CefG0d2F.mjs} +1 -1
- package/dist/client/client.mjs +34 -69
- package/dist/client/{context-9ZfMb6GA.mjs → context-BFwxgZpB.mjs} +28 -1
- package/dist/client/{cta-D-ZqL7-e.mjs → cta-DtA42Xio.mjs} +1 -1
- package/dist/client/{dateFormatting-BCwLqYpW.mjs → dateFormatting-yP1B7F0O.mjs} +39 -2
- package/dist/client/{demoPortalMagicLink-BxkSS9fx.mjs → demoPortalMagicLink-WOiT5Ryi.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-xg6to91E.mjs → enhanceHeaderSection-Dh8c_Lq-.mjs} +3 -3
- package/dist/client/{event-details.client-C670TgRd.mjs → event-details.client-BFgsLqTj.mjs} +2 -1
- package/dist/client/{event-registration.client-C6GApWTB.mjs → event-registration.client-BaXZ1-Ky.mjs} +13 -13
- package/dist/client/{eventCalendar-CWc0dg9i.mjs → eventCalendar-COLwF80U.mjs} +4 -4
- package/dist/client/{eventCombined-D4DbOrvQ.mjs → eventCombined-D3Ltwu03.mjs} +4 -4
- package/dist/client/{eventDetails-C2DfmbC0.mjs → eventDetails-CBrkimXu.mjs} +2 -2
- package/dist/client/{eventListing-C_yXmHyz.mjs → eventListing-CedKVA1S.mjs} +4 -4
- package/dist/client/{eventRegistration-DJuaCB-O.mjs → eventRegistration-DkQQfR1b.mjs} +4 -4
- package/dist/client/{form-QZhtdFHA.mjs → form-XFy9uXSJ.mjs} +3 -3
- package/dist/client/{form.client-CgvPACwG.mjs → form.client-B0iancFK.mjs} +4 -4
- package/dist/client/{form.parts-2uI0-5N-.mjs → form.parts-DMbolu9Y.mjs} +3 -3
- package/dist/client/{formatDate-Danr0Nk4.mjs → formatDate-Jm5MQOCA.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-DJdlLdvZ.mjs → headerSection-WjlECjtV.mjs} +2 -2
- package/dist/client/{mediaAssets-BvjcAZpS.mjs → mediaAssets-BkoW_PEn.mjs} +1 -1
- package/dist/client/mediaContext-CNzWmoA4.mjs +136 -0
- package/dist/client/{newsletter-form.client-Cbepz2KU.mjs → newsletter-form.client-D-XwJTjN.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DN8oMCQ0.mjs → newsletter-form.parts-H92f30y0.mjs} +2 -2
- package/dist/client/{newsletterForm-wjLtW-wq.mjs → newsletterForm-DMuxzu6I.mjs} +3 -3
- package/dist/client/{noop-B7H6gCbj.mjs → noop-B3RNPVrt.mjs} +19 -3
- package/dist/client/portal/client.mjs +1116 -85
- package/dist/client/{product-detail.client-CYTR165c.mjs → product-detail.client-B3HuuykE.mjs} +1 -1
- package/dist/client/{product-list.client-B4vTvag8.mjs → product-list.client-CzsDrHQO.mjs} +1 -1
- package/dist/client/{productDetail-k8LEMSWn.mjs → productDetail-CbBUVWgd.mjs} +3 -3
- package/dist/client/{productList-DEo8Bqoe.mjs → productList-vqOKH2mh.mjs} +3 -3
- package/dist/client/{propsDecoder-G0j0HXBO.mjs → propsDecoder-CkSUep5a.mjs} +4 -3
- package/dist/client/{registry.server-BTmSXE3D.mjs → registry.server-cZ24QwtW.mjs} +272 -68
- package/dist/client/rendering/client.mjs +27 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +10 -7
- package/dist/client/{richText-coerce-B19taoH6.mjs → richText-coerce-DDcCKvBJ.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-Chu5BHra.mjs → routeIslandApiConfig-DYBioANh.mjs} +1 -1
- package/dist/client/{schema-C-m8XHuW.mjs → schema-DNHLlze-.mjs} +4575 -4311
- package/dist/client/{shop-RGWa43H7.mjs → shop-CF0dhnfH.mjs} +3 -3
- package/dist/client/{shop-commerce-TJYCBO_H.mjs → shop-commerce-DQznNBEo.mjs} +11 -11
- package/dist/client/{shop-commerce-store-CjCcUB_o.mjs → shop-commerce-store-Ba8zPlIg.mjs} +1 -1
- package/dist/client/{shop.client-tsKfZw1W.mjs → shop.client-DqfYoqWH.mjs} +12 -12
- package/dist/client/{shop.interactive-CVqLAU53.mjs → shop.interactive-CreQ0I7i.mjs} +38 -31
- package/dist/client/{shopShared-C3lHMz_R.mjs → shopShared-D-yh-P7g.mjs} +2 -2
- package/dist/client/{mediaContext-jPeJ2PmJ.mjs → site-styles-B9HgmY07.mjs} +1329 -511
- package/dist/client/{timetableModel-V2ifvGGy.mjs → timetableModel-DCdVErTJ.mjs} +10 -9
- package/dist/client/{useAvailableSlots-D1X69-pN.mjs → useAvailableSlots-Cvgdp2DH.mjs} +8 -11
- package/dist/client/{useBookingNowIso-Ch30jino.mjs → useBookingNowIso-DrTnGNzD.mjs} +1 -1
- package/dist/client/{useDiscountApply-Bwzr1RjV.mjs → useDiscountApply-CULjnXGl.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-BimJbFC7.mjs → useDiscountCodeUi-Gn_m7e0o.mjs} +1 -1
- package/dist/client/{useEventPagination-CLAS0upd.mjs → useEventPagination-CsysCF22.mjs} +6 -6
- package/dist/client/{view-Dj_FZHmg.mjs → view-BpBjo9Te.mjs} +64 -55
- package/dist/client/{view-BUh4LnLS.mjs → view-DMyTchi7.mjs} +4 -4
- package/dist/client/{wizardSteps-BkZc-hKH.mjs → wizardSteps-BO2OmMO9.mjs} +59 -53
- package/dist/preview-next/before-render.mjs +3 -3
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CwerMfzn.mjs → EventEmbeddedCheckoutStep-DLsSmZbO.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-Dvq-RW9-.mjs → PreviewEditorSidebar-ChrW9VEo.mjs} +164 -1042
- package/dist/preview-next/client/{PreviewEditorUI-BdFjS39R.mjs → PreviewEditorUI-VaHvYtrA.mjs} +9 -190
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CjkGh1IG.mjs → SdkPreviewModeRuntime-Bz7jR6nl.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BEfHln1E.mjs → SdkPreviewModeRuntime-DWwktlWs.mjs} +220 -130
- package/dist/preview-next/client/{ThemedButton-b14Bv03E.mjs → ThemedButton-CHKOWXxl.mjs} +608 -333
- package/dist/preview-next/client/{SiteChromeCustomizeContext-CDbxk_qZ.mjs → previewAuthStore-C0VUwEHz.mjs} +158752 -162808
- package/dist/preview-next/client/{previewChromeSurface-Dd1_mNIg.mjs → previewChromeSurface-Dhyx2YrS.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-B-CXyGVb.mjs → sdk-runtime-C2GWOCyj.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-DHyzUpv4.mjs +12833 -0
- package/dist/preview-next/client/{spinner-CGxS8Ns-.mjs → spinner-BeR2S8oG.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +2 -2
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{refresh-contract-CvmNqZ1Q.mjs → refresh-contract-uQ6BXgLJ.mjs} +5 -0
- package/dist/preview-next/{route-contract-hLg-yjQN.mjs → route-contract-CkrFDMrl.mjs} +394 -200
- package/dist/server/{Block.shared-CeTd2saO.mjs → Block.shared-DxvNGDig.mjs} +4 -4
- package/dist/server/{bindings-C5YpKuKt.mjs → bindings-BuhKvYkE.mjs} +2 -2
- package/dist/server/{client-Cv26lZQ4.mjs → client-BobW6DOz.mjs} +34 -69
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{effectiveNavLinkStyle-CGvGr3yD.mjs → effectiveNavLinkStyle-B-MKSt0p.mjs} +1127 -144
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-C8a0b-cC.mjs → loadContent-CCG_3mbY.mjs} +7 -4
- package/dist/server/loadPage-Bk9HDh9K.mjs +2 -0
- package/dist/server/{loadPage-BW7dklu3.mjs → loadPage-jntGoMrf.mjs} +2 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-tIuqmJB3.mjs → overrideResolution-BBOlgn4Z.mjs} +1 -1
- package/dist/server/{overrides-D1fiPOKF.mjs → overrides-DByQwIyW.mjs} +264 -168
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild--fO0E2tr.mjs → prebuild-DrwcTk2t.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CqJnokWJ.mjs → prefetchBlockData-LfgxSJYE.mjs} +31 -10
- package/dist/server/{publicProducts-CvvZ4JIe.mjs → publicProducts-8A3T5v4M.mjs} +647 -166
- package/dist/server/{registry-BVfCqaCq.mjs → registry-Digv02oV.mjs} +308 -36
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-DPNvhXEz.mjs → resolveBlockData-C23t8-77.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-CD4peO7m.mjs → schema-BiqpDRwB.mjs} +2813 -2549
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-H-EvTJiW.mjs → site-styles-DrkprQPL.mjs} +81 -113
- package/dist/server/{siteChromeOverlayClearance-DNC2k1U0.mjs → siteChromeOverlayClearance-BmKKkkbh.mjs} +2 -2
- package/dist/server/{src-ILxc6pid.mjs → src-08GY1njw.mjs} +902 -44
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-BNHIXiUj.mjs → themeAdmission-CSd_Vusz.mjs} +36 -29
- package/dist/server/{validation-B1ieVemg.mjs → validation-DdUTkBOZ.mjs} +2 -2
- package/dist/server/{version-BQK44wFg.mjs → version-DdIOqIDe.mjs} +1 -1
- package/dist/styles/index.css +872 -41
- package/package.json +1 -1
- package/dist/_dts/index-BQDBQvdu.d.ts +0 -13
- package/dist/preview-next/client/siteStyleAccess-Kqk0j0dE.mjs +0 -5812
- package/dist/server/loadPage--DXBwI8V.mjs +0 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { An as
|
|
1
|
+
import { An as isCssColorLiteral, Cn as textColorStyle, Dr as ok, E as ICON_CONFIG, Er as err, Jt as featureCardCompositionTreatmentValues, N as generateDefaultButtonSystem, Nn as resolveTokenOrCssColorValue, P as parseThemeButtonVariantId, R as parseThemeForPersistence, Sn as rgbColorValue, St as runtimeMediaSchema, Xn as getTextColorForBackground, Zt as introCompositionTreatmentValues, an as testimonialsCompositionTreatmentValues, dr as parseThemeColorToken, fn as serializeSurfaceTree, jn as resolveOnColorForThemeToken, tn as offeringsPreviewCompositionTreatmentValues, vn as backgroundColorStyle, wt as renderableMediaAssetSchema, xn as mergeStyles, zn as defaultThemeTokens } from "./schema-BiqpDRwB.mjs";
|
|
2
2
|
import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
|
|
3
|
-
import { $ as
|
|
4
|
-
import { _ as validateManifestDraft, g as compileManifestContentContract, u as readSdkPreviewPublishedPlacement } from "./themeAdmission-
|
|
5
|
-
import { C as resolvePageRouteTarget, D as parseStoredVariant, E as toPresentationPage, S as resolveEntryRouteTarget, T as toEditorPresentationPage, _ as buildLinkedContentEditTarget, b as defaultTransforms, f as buildPageRenderPlan, g as retargetJoinsAcrossOmissions, h as renderedJoinLayout, m as joinSlotKey, p as composePageJoins, v as resolveLinkedEntryInlineFieldEligibility, w as resolveRouteTarget } from "./prefetchBlockData-
|
|
6
|
-
import { _ as resolveEffectiveArrangement, d as arrangementLookHooks, h as arrangementManifestFromVariants } from "./effectiveNavLinkStyle-
|
|
7
|
-
import "./site-styles-
|
|
3
|
+
import { $ as RichText, $i as CANCELLED_SESSION_STATUS, $n as formBlockDefinition, $t as formatEventHourLabel, A as buildOfferingsCatalogueListing, Aa as publicEventPricingCurrency, An as FEATURE_CARD_ICON_TREATMENTS, Ar as isBlockButtonRole, At as offeringsListingFor, B as buildEventCollectionListingDisplay, Bn as teamMemberBiography, Bt as buildEventListWeek, C as buildShopInteractiveIslandProps, Ca as parseLocalScheduleTime, Cn as isEventFull, Cr as formEmbedFragment, Ct as resolveEventRegistrationScopedEvents, D as passCardListContent, Da as toUtcIsoDateTimeString, Dn as blockBookingConsentSchema, Dr as ctaCopyFragment, Dt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, E as membershipClassesLabel, Ea as toScheduledBookingDateTime, En as publicEventsArraySchema, Er as testimonialsHeadingFragment, Fa as formatCurrencyAmount, Fn as composeHeaderSectionWrapperClassName, Fr as boxStyleClassNames, Ft as ThemedButton, Gr as el, H as eventCollectionHydrationSchema, Hn as readRuntimeNow, Ht as formatEventPriceAmount, I as eventListingBlockDefinition, Ia as parseCurrencyCode, In as markEditableSurfaceForwarding, Ir as normalizeBoxStylesBorder, It as ThemedButtonLink, J as CardListContentPart, Ji as chosenString, Jn as staticHeaderChromeRuntime, Jt as formatCalendarTitle, K as catalogueEventCardProps, Kr as when, Kt as eventDateOptions, L as buildEventListingInteractiveIslandProps, Li as PUBLIC_DOWNLOAD_MEDIA_TYPES, Ln as splitPositioningClasses, Lr as resolveCardRoleForBoxStyles, Lt as ThemedDownloadLink, M as eventCalendarBlockDefinition, Ma as publicEventPricingType, Mn as shouldReserveFeatureCardIconZone, Mr as bodyCopyFragment, Mt as resolveOfferingsPreviewGroups, N as buildEventCalendarInteractiveIslandProps, Na as resolveExactOrFreePriceDisplay, Nr as defineFragment, Nt as resolveOfferingsRenderInput, O as offeringsPreviewBlockDefinition, Oa as formatBookingPriceDisplay, On as bookingConsentCarrierSchema, Or as heroCtaRowFragment, Ot as buildOfferingsPreviewListing, P as buildEventCalendarListingDisplay, Pa as resolvePricingOptionsPriceDisplay, Pi as bindingSchema, Pt as ThemedAuthoredButton, Q as MediaNodeServer, Qi as unavailableReadinessFact, Qt as formatEventDateParts, R as buildEventCollectionDisplay, Rt as getIconComponent, S as buildProductListInteractiveIslandProps, Sa as parseBookingLocalDate, Sn as getEventAvailabilityStatus, Sr as singleButtonFragment, St as normalizeEventRegistrationPageSurfaceSubject, T as membershipCardListContent, Ta as toBookingTimeZone, Tn as groupPublicEventsByRun, Tr as testimonialsCarouselFragment, U as eventCollectionSourceSchemaShape, Un as resolveDateRuntimeContext, Ur as resolveBackgroundColorValue, Ut as formatEventPriceDisplay, V as eventCollectionDisplaySchemaShape, Vn as teamMemberCardBiography, Vt as formatEventPrice, Wr as ctaButton, Wt as buildCalendarViewport, X as resolveCardListSchedule, Xi as loadedReadinessFact, Xt as formatEventClockLabel, Y as CardListLeadDate, Yi as admitReadinessFacts, Yt as formatDate, Z as selectCardListPresentation, Zi as pageTemplateFromEntry, Zt as formatEventCompactDateRail, _ as productListBlockDefinition, _i as inlineTextToPlainText, _n as browserReadAuthoritySchema, _r as headingFragment, _t as previewStageSchema, a as normalizeLocationMapSource, ai as resolveBlockIconRenderValue, an as getLocalDateKey, ar as defineClientOwnedBlockRuntime, b as buildCheckoutInteractiveIslandProps, ba as getBookingLocalDateKey, bn as formatTotalCapacity, br as faqHeadingFragment, ca as decideLocationSourcePermission, ci as CircleMinusIcon, cn as formatDateKey, cr as listLookControl, ct as getCurrentResolveImageUrlContext, d as newsletterBlockSubmissionMessage, di as FileArchiveIcon, dn as getWeekCalendarDayTuple, dr as resolvedItemSurfaceProps, dt as getCardOrientation, ea as nextLiveRunSessionStartMs, en as formatEventNextDateFact, er as buildFormInteractiveIslandProps, et as ImagePresets, f as giftingBlockDefinition, fi as FileAudioIcon, fn as getWeekCalendarDays, fr as itemRole, ft as getContainerClass, g as productDetailBlockDefinition, ga as formatDateTimeRange, gi as PlusIcon, gn as formatBookingSchedulePresentation, gr as richTextFragment, gt as bookingNowSchema, h as cartBlockDefinition, ha as formatDateRange, hi as MinusIcon, hn as resolveRuntimeEventDestination, hr as clsx, ht as buildEventRegistrationInteractiveIslandProps, i as normalizeLocationMapProps, ia as parseMailingListRuntimeContext, ii as parseBlockIconValue, in as resolveEventTimeZone, ir as createZodCodec, j as offeringsCatalogueShape, ja as publicEventPricingDisplay, jn as resolveFeatureCardGeneratedIconSizePx, jr as heroCopyFragment, jt as resolveOfferingsPreviewGroupCta, k as publicRouteCandidatesSchema, ka as isPublicEventPricingOptionDisplayable, ki as parseFieldDefinitions, kn as blockBookingPaymentTermsSchema, kr as ctaRowFragment, kt as normalizeOfferingsPreviewItemLimit, l as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, li as CirclePlusIcon, ln as getDayOfWeek, lr as listLookSlot, lt as setContextResolveImageUrlContext, m as checkoutBlockDefinition, ma as formatDate$1, mi as FileTextIcon, mn as isToday, mr as Grid, mt as eventRegistrationBlockDefinition, na as resolveWholeSeriesBookingPhase, ni as runTransforms, nn as formatTime, nr as createInteractiveIslandCodec, o as resolveLocationMapLocation, oa as parseMailingListPlacementTargeting, oi as ArrowDownIcon, on as getLocalMinuteOfDay, or as defineProgressiveBlockRuntime, ot as resolvePublicMediaUrl, p as buildGiftingInteractiveIslandProps, pa as mapDrawingSchema, pi as FileSpreadsheetIcon, pn as isSameCalendarDay, q as listingEventCardProps, qt as eventLocalDateKey, r as normalizeBlockContent, ra as buildMailingListSignupBlockSourceRef, ri as buildGeneratedBlockIconRenderAssetLookupFromUnknown, rn as groupEventsByDate, rr as defineInteractiveIslandMetaKeys, s as newsletterSignupBlockDefinition, sa as sameMailingListPlacementTargeting, si as ChevronDownIcon, sn as addDays, sr as listItemPresentation, st as buildResolveImageUrlContext, t as getBlockDefinition, ta as orderedLiveRunSessions, tn as formatEventTimeRange, tr as buildInteractiveIslandProps, tt as MediaPlaceholder, u as buildNewsletterFormInteractiveIslandProps, ua as normalizeLocationAddressText, ui as ClockIcon, un as getOrderedDayNames, ur as lookListPresentationSchemaShape, ut as sanitizeHref, v as shopBlockDefinition, va as compareLocalScheduleDates, vi as isInlineTextEmpty, vn as canJoinEventWaitlistOnAnyMode, vr as cardFragment, w as shopProductPresentation, wa as resolveBookingBusinessTimeZone, wn as blockSiteTermsSchema, wr as formCopyFragment, x as buildProductDetailInteractiveIslandProps, xa as getLocalScheduleDate, xn as getEventAvailability, xr as blogFeaturedPostFragment, y as buildCartInteractiveIslandProps, ya as formatBookingCompactEnglishTime, yi as parseInlineTextFromUnknown, yn as formatEventRemainingPlaces, yr as faqAccordionFragment, z as buildEventCollectionHydration, zn as parseTeamMemberSpecialties, zt as SpinnerNode } from "./registry-Digv02oV.mjs";
|
|
4
|
+
import { _ as validateManifestDraft, g as compileManifestContentContract, u as readSdkPreviewPublishedPlacement } from "./themeAdmission-CSd_Vusz.mjs";
|
|
5
|
+
import { C as resolvePageRouteTarget, D as parseStoredVariant, E as toPresentationPage, S as resolveEntryRouteTarget, T as toEditorPresentationPage, _ as buildLinkedContentEditTarget, b as defaultTransforms, f as buildPageRenderPlan, g as retargetJoinsAcrossOmissions, h as renderedJoinLayout, m as joinSlotKey, p as composePageJoins, v as resolveLinkedEntryInlineFieldEligibility, w as resolveRouteTarget } from "./prefetchBlockData-LfgxSJYE.mjs";
|
|
6
|
+
import { _ as resolveEffectiveArrangement, d as arrangementLookHooks, h as arrangementManifestFromVariants } from "./effectiveNavLinkStyle-B-MKSt0p.mjs";
|
|
7
|
+
import "./site-styles-DrkprQPL.mjs";
|
|
8
8
|
import { a as isRecord$4, i as isObjectRecord, t as RichTextDocSchema } from "./richTextSchema-YYc85FX4.mjs";
|
|
9
|
-
import { a as buildThemeRuntime$1, n as ResponsiveScope, o as mergeContentWithBlockStyleOverrides, r as ThemeScope$1, s as generateDefaultAccordionSystem } from "./src-
|
|
9
|
+
import { a as buildThemeRuntime$1, n as ResponsiveScope, o as mergeContentWithBlockStyleOverrides, r as ThemeScope$1, s as generateDefaultAccordionSystem } from "./src-08GY1njw.mjs";
|
|
10
10
|
import { t as getAtPath } from "./src-Cxucn-1P.mjs";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
import * as React$1 from "react";
|
|
@@ -318,6 +318,50 @@ function getFragmentRegistry() {
|
|
|
318
318
|
return fragmentRegistry;
|
|
319
319
|
}
|
|
320
320
|
//#endregion
|
|
321
|
+
//#region ../blocks/src/system/blocks/events/shared/detailsSelection.ts
|
|
322
|
+
function isFutureOrNow(iso, nowIso) {
|
|
323
|
+
const ts = Date.parse(iso);
|
|
324
|
+
const now = Date.parse(nowIso);
|
|
325
|
+
if (!Number.isFinite(ts) || !Number.isFinite(now)) return false;
|
|
326
|
+
return ts >= now;
|
|
327
|
+
}
|
|
328
|
+
const localDateKey = (startsAt, timeZone) => getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
329
|
+
startsAt,
|
|
330
|
+
timeZone
|
|
331
|
+
}));
|
|
332
|
+
function selectRequested(events, requested) {
|
|
333
|
+
if (!requested) return null;
|
|
334
|
+
const byId = events.find((event) => event.occurrenceId === requested.id || event.id === requested.id);
|
|
335
|
+
if (byId) return byId;
|
|
336
|
+
if (!requested.startsAt || !requested.timeZone) return null;
|
|
337
|
+
const requestedDate = localDateKey(requested.startsAt, requested.timeZone);
|
|
338
|
+
return events.find((event) => localDateKey(event.startsAt, event.timeZone) === requestedDate) ?? null;
|
|
339
|
+
}
|
|
340
|
+
function selectNextUpcoming(events, nowIso) {
|
|
341
|
+
return [...events].filter((event) => isFutureOrNow(event.startsAt, nowIso)).sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt))[0] ?? null;
|
|
342
|
+
}
|
|
343
|
+
function selectCompletedWholeSeries(events) {
|
|
344
|
+
if (events.length === 0 || !events.every((event) => event.bookingScope === "whole_series")) return null;
|
|
345
|
+
return [...events].sort((left, right) => Date.parse(right.startsAt) - Date.parse(left.startsAt))[0] ?? null;
|
|
346
|
+
}
|
|
347
|
+
function selectEventDetailsCandidate(events, requested, nowIso) {
|
|
348
|
+
const selected = selectRequested(events, requested);
|
|
349
|
+
if (selected) return {
|
|
350
|
+
event: selected,
|
|
351
|
+
mode: "selected"
|
|
352
|
+
};
|
|
353
|
+
const upcoming = selectNextUpcoming(events, nowIso);
|
|
354
|
+
if (upcoming) return {
|
|
355
|
+
event: upcoming,
|
|
356
|
+
mode: "next"
|
|
357
|
+
};
|
|
358
|
+
const completed = selectCompletedWholeSeries(events);
|
|
359
|
+
return completed ? {
|
|
360
|
+
event: completed,
|
|
361
|
+
mode: "completed"
|
|
362
|
+
} : null;
|
|
363
|
+
}
|
|
364
|
+
//#endregion
|
|
321
365
|
//#region ../blocks/src/system/runtime/nodes/events/domain/bookability.ts
|
|
322
366
|
/**
|
|
323
367
|
* Whether a public event has a registration path a visitor can take.
|
|
@@ -1736,53 +1780,6 @@ function cropHeightStyle(height, heightAs) {
|
|
|
1736
1780
|
return heightAs === "minimum" ? { minHeight: height } : { height };
|
|
1737
1781
|
}
|
|
1738
1782
|
//#endregion
|
|
1739
|
-
//#region ../blocks/src/system/runtime/nodes/shared/LocationMapActions.tsx
|
|
1740
|
-
/**
|
|
1741
|
-
* `compact` (event details, cards and modals) keeps two small ghost buttons;
|
|
1742
|
-
* `block` (the map block) leads with a secondary directions button and keeps
|
|
1743
|
-
* Google Maps as a plain text link beside it.
|
|
1744
|
-
*/
|
|
1745
|
-
function LocationMapActions(props) {
|
|
1746
|
-
const links = locationMapLinks(props);
|
|
1747
|
-
const directionsLabel = props.directionsLabel ?? "Get directions";
|
|
1748
|
-
const googleMapsLabel = props.googleMapsLabel ?? "Open in Google Maps";
|
|
1749
|
-
if (props.layout === "block") return /* @__PURE__ */ jsxs("div", {
|
|
1750
|
-
className: "rb-location-map-actions",
|
|
1751
|
-
children: [links.directions ? /* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
1752
|
-
href: links.directions,
|
|
1753
|
-
target: "_blank",
|
|
1754
|
-
rel: "noreferrer",
|
|
1755
|
-
variant: "secondary",
|
|
1756
|
-
size: "sm",
|
|
1757
|
-
label: directionsLabel
|
|
1758
|
-
}) : null, links.googleMaps ? /* @__PURE__ */ jsx("a", {
|
|
1759
|
-
className: "rb-location-map-link",
|
|
1760
|
-
href: links.googleMaps,
|
|
1761
|
-
target: "_blank",
|
|
1762
|
-
rel: "noreferrer",
|
|
1763
|
-
children: googleMapsLabel
|
|
1764
|
-
}) : null]
|
|
1765
|
-
});
|
|
1766
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
1767
|
-
className: "rb-flex rb-flex-wrap rb-gap-2",
|
|
1768
|
-
children: [links.directions ? /* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
1769
|
-
href: links.directions,
|
|
1770
|
-
target: "_blank",
|
|
1771
|
-
rel: "noreferrer",
|
|
1772
|
-
variant: "ghost",
|
|
1773
|
-
size: "sm",
|
|
1774
|
-
label: directionsLabel
|
|
1775
|
-
}) : null, links.googleMaps ? /* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
1776
|
-
href: links.googleMaps,
|
|
1777
|
-
target: "_blank",
|
|
1778
|
-
rel: "noreferrer",
|
|
1779
|
-
variant: "ghost",
|
|
1780
|
-
size: "sm",
|
|
1781
|
-
label: googleMapsLabel
|
|
1782
|
-
}) : null]
|
|
1783
|
-
});
|
|
1784
|
-
}
|
|
1785
|
-
//#endregion
|
|
1786
1783
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventCardIcons.tsx
|
|
1787
1784
|
function MapPinIcon({ className, size = 16, strokeWidth = 2 }) {
|
|
1788
1785
|
return /* @__PURE__ */ jsxs("svg", {
|
|
@@ -2015,20 +2012,13 @@ function EventCardVenue(props) {
|
|
|
2015
2012
|
if (!venue) return null;
|
|
2016
2013
|
return /* @__PURE__ */ jsxs("div", {
|
|
2017
2014
|
className: "rb-mb-3",
|
|
2018
|
-
children: [
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
props.
|
|
2024
|
-
|
|
2025
|
-
addressText: venue.address
|
|
2026
|
-
}) : null,
|
|
2027
|
-
props.showMap && props.allowMap && venue.location && props.mapSlot && /* @__PURE__ */ jsx("div", {
|
|
2028
|
-
className: "rb-mt-2",
|
|
2029
|
-
children: props.mapSlot
|
|
2030
|
-
})
|
|
2031
|
-
]
|
|
2015
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
2016
|
+
className: "rb-flex rb-items-center rb-gap-2 rb-caption",
|
|
2017
|
+
children: [/* @__PURE__ */ jsx(MapPinIcon, { className: "rb-shrink-0" }), /* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx("strong", { children: venue.name }), venue.address ? ` · ${venue.address}` : null] })]
|
|
2018
|
+
}), props.showMap && props.allowMap && venue.location && props.mapSlot && /* @__PURE__ */ jsx("div", {
|
|
2019
|
+
className: "rb-mt-2",
|
|
2020
|
+
children: props.mapSlot
|
|
2021
|
+
})]
|
|
2032
2022
|
});
|
|
2033
2023
|
}
|
|
2034
2024
|
function EventCardFooter(props) {
|
|
@@ -2301,23 +2291,31 @@ function EventQuickDates({ events, pathname, buttonVariant = "primary", dateStyl
|
|
|
2301
2291
|
})]
|
|
2302
2292
|
});
|
|
2303
2293
|
}
|
|
2294
|
+
/**
|
|
2295
|
+
* The complete link that books one date, shared by the strip and by date rows.
|
|
2296
|
+
* Null when the date has no registration path (closed, paused, not open yet,
|
|
2297
|
+
* no registration, or full with no waitlist), so no caller repeats that gate.
|
|
2298
|
+
*/
|
|
2299
|
+
function eventDateBookingLink(event, pathname, dateLabel) {
|
|
2300
|
+
if (!isBookableEvent(event)) return null;
|
|
2301
|
+
const cta = resolveEventCta(event);
|
|
2302
|
+
return {
|
|
2303
|
+
href: resolveRuntimeEventDestination(event).kind === "external" ? cta.href : resolveDedicatedBookingHref(pathname, {
|
|
2304
|
+
kind: "event_occurrence",
|
|
2305
|
+
occurrenceId: event.occurrenceId
|
|
2306
|
+
}),
|
|
2307
|
+
target: cta.external ? "_blank" : void 0,
|
|
2308
|
+
rel: cta.external ? "noopener noreferrer" : void 0,
|
|
2309
|
+
"aria-label": `${cta.label} ${event.title}, ${dateLabel}`,
|
|
2310
|
+
label: cta.label
|
|
2311
|
+
};
|
|
2312
|
+
}
|
|
2304
2313
|
/** Decide the formatted date and complete booking link before rendering. */
|
|
2305
2314
|
function quickDateCardPresentation(props) {
|
|
2306
|
-
const
|
|
2307
|
-
const date = formatEventQuickDate(event, props.dateStyle);
|
|
2308
|
-
const cta = resolveEventCta(event);
|
|
2315
|
+
const date = formatEventQuickDate(props.event, props.dateStyle);
|
|
2309
2316
|
return {
|
|
2310
2317
|
date,
|
|
2311
|
-
bookingLink:
|
|
2312
|
-
href: resolveRuntimeEventDestination(event).kind === "external" ? cta.href : resolveDedicatedBookingHref(props.pathname, {
|
|
2313
|
-
kind: "event_occurrence",
|
|
2314
|
-
occurrenceId: event.occurrenceId
|
|
2315
|
-
}),
|
|
2316
|
-
target: cta.external ? "_blank" : void 0,
|
|
2317
|
-
rel: cta.external ? "noopener noreferrer" : void 0,
|
|
2318
|
-
"aria-label": `${cta.label} ${event.title}, ${date.label}`,
|
|
2319
|
-
label: cta.label
|
|
2320
|
-
}
|
|
2318
|
+
bookingLink: eventDateBookingLink(props.event, props.pathname, date.label)
|
|
2321
2319
|
};
|
|
2322
2320
|
}
|
|
2323
2321
|
function EventQuickDateCard(props) {
|
|
@@ -2353,12 +2351,12 @@ function EventQuickDateCard(props) {
|
|
|
2353
2351
|
children: [/* @__PURE__ */ jsx("span", {
|
|
2354
2352
|
className: "event-quick-date-price",
|
|
2355
2353
|
children: formatEventPrice(event)
|
|
2356
|
-
}), /* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
2354
|
+
}), bookingLink ? /* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
2357
2355
|
variant: props.buttonVariant,
|
|
2358
2356
|
size: "sm",
|
|
2359
2357
|
extraClassName: "event-quick-date-cta",
|
|
2360
2358
|
...bookingLink
|
|
2361
|
-
})]
|
|
2359
|
+
}) : null]
|
|
2362
2360
|
})
|
|
2363
2361
|
]
|
|
2364
2362
|
});
|
|
@@ -2723,10 +2721,23 @@ const PRIVATE_LOG_KEYS = /* @__PURE__ */ new Set([
|
|
|
2723
2721
|
"requestbodyvalues",
|
|
2724
2722
|
"provideroptions",
|
|
2725
2723
|
"byok",
|
|
2726
|
-
"apikey"
|
|
2724
|
+
"apikey",
|
|
2725
|
+
"drafttoken"
|
|
2727
2726
|
]);
|
|
2727
|
+
/**
|
|
2728
|
+
* Query values never logged, wherever a URL turns up (both Next apps use this
|
|
2729
|
+
* logger, and URLs also occur inside nested errors): the draft credential, and
|
|
2730
|
+
* an unsaved Appearance body. That body travels as `changes` on the preview
|
|
2731
|
+
* page and, encoded, inside `targetPath` on the dashboard's `/preview/start`,
|
|
2732
|
+
* so the whole `targetPath` value goes too: no encoding of `changes` can hide
|
|
2733
|
+
* inside it.
|
|
2734
|
+
*/
|
|
2735
|
+
function redactPrivateQueryValues(value) {
|
|
2736
|
+
return value.replace(/([?&](?:draftToken|targetPath|changes)=)[^&#\s"']*/gi, "$1[redacted]");
|
|
2737
|
+
}
|
|
2728
2738
|
function logJsonValue(key, value, seen) {
|
|
2729
2739
|
if (PRIVATE_LOG_KEYS.has(key.toLowerCase())) return void 0;
|
|
2740
|
+
if (typeof value === "string") return redactPrivateQueryValues(value);
|
|
2730
2741
|
if (typeof value === "bigint") return String(value);
|
|
2731
2742
|
if (value === null || typeof value !== "object") return value;
|
|
2732
2743
|
if (seen.has(value)) return "[circular]";
|
|
@@ -2749,11 +2760,11 @@ function safeStringify(value, maxLength) {
|
|
|
2749
2760
|
}
|
|
2750
2761
|
function toScalar(value, maxLength) {
|
|
2751
2762
|
if (value == null) return null;
|
|
2752
|
-
if (typeof value === "string") return truncate(value, maxLength);
|
|
2763
|
+
if (typeof value === "string") return truncate(redactPrivateQueryValues(value), maxLength);
|
|
2753
2764
|
if (typeof value === "number") return Number.isFinite(value) ? value : null;
|
|
2754
2765
|
if (typeof value === "boolean") return value;
|
|
2755
2766
|
if (value instanceof Date) return value.toISOString();
|
|
2756
|
-
if (value instanceof Error) return truncate(`${value.name}: ${value.message}
|
|
2767
|
+
if (value instanceof Error) return truncate(redactPrivateQueryValues(`${value.name}: ${value.message}`), maxLength);
|
|
2757
2768
|
return safeStringify(value, maxLength);
|
|
2758
2769
|
}
|
|
2759
2770
|
function sanitizeV2(fields, maxStringLength) {
|
|
@@ -2858,6 +2869,42 @@ function renderMark(mark, key, child) {
|
|
|
2858
2869
|
}
|
|
2859
2870
|
}
|
|
2860
2871
|
//#endregion
|
|
2872
|
+
//#region ../blocks/src/system/runtime/nodes/shared/LocationMapActions.tsx
|
|
2873
|
+
/**
|
|
2874
|
+
* `compact` (event details) is one plain Google Maps text link under the venue;
|
|
2875
|
+
* `block` (the map block) leads with a secondary directions button and keeps
|
|
2876
|
+
* the same Google Maps text link beside it.
|
|
2877
|
+
*/
|
|
2878
|
+
function LocationMapActions(props) {
|
|
2879
|
+
const links = locationMapLinks(props);
|
|
2880
|
+
const directionsLabel = props.directionsLabel ?? "Get directions";
|
|
2881
|
+
const googleMapsLabel = props.googleMapsLabel ?? "Open in Google Maps";
|
|
2882
|
+
if (props.layout === "block") return /* @__PURE__ */ jsxs("div", {
|
|
2883
|
+
className: "rb-location-map-actions",
|
|
2884
|
+
children: [links.directions ? /* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
2885
|
+
href: links.directions,
|
|
2886
|
+
target: "_blank",
|
|
2887
|
+
rel: "noreferrer",
|
|
2888
|
+
variant: "secondary",
|
|
2889
|
+
size: "sm",
|
|
2890
|
+
label: directionsLabel
|
|
2891
|
+
}) : null, links.googleMaps ? /* @__PURE__ */ jsx("a", {
|
|
2892
|
+
className: "rb-location-map-link",
|
|
2893
|
+
href: links.googleMaps,
|
|
2894
|
+
target: "_blank",
|
|
2895
|
+
rel: "noreferrer",
|
|
2896
|
+
children: googleMapsLabel
|
|
2897
|
+
}) : null]
|
|
2898
|
+
});
|
|
2899
|
+
return links.googleMaps ? /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("a", {
|
|
2900
|
+
className: "rb-location-map-link",
|
|
2901
|
+
href: links.googleMaps,
|
|
2902
|
+
target: "_blank",
|
|
2903
|
+
rel: "noreferrer",
|
|
2904
|
+
children: googleMapsLabel
|
|
2905
|
+
}) }) : null;
|
|
2906
|
+
}
|
|
2907
|
+
//#endregion
|
|
2861
2908
|
//#region ../blocks/src/system/runtime/nodes/location-map.view.tsx
|
|
2862
2909
|
function OpeningHoursTable({ hours, lookLayout }) {
|
|
2863
2910
|
if (!hours) return null;
|
|
@@ -4208,15 +4255,6 @@ function appointmentServicesListing(view, arrangement) {
|
|
|
4208
4255
|
} : view;
|
|
4209
4256
|
}
|
|
4210
4257
|
//#endregion
|
|
4211
|
-
//#region ../blocks/src/system/blocks/shared/teamMembers.ts
|
|
4212
|
-
const teamMemberSpecialtiesInputSchema = z.union([z.string(), z.array(z.string())]).nullish();
|
|
4213
|
-
function parseTeamMemberSpecialties(value) {
|
|
4214
|
-
const parsed = teamMemberSpecialtiesInputSchema.safeParse(value);
|
|
4215
|
-
if (!parsed.success) return [];
|
|
4216
|
-
const parts = typeof parsed.data === "string" ? parsed.data.split(/\r?\n|,/) : parsed.data ?? [];
|
|
4217
|
-
return [...new Set(parts.map((part) => part.trim()).filter(Boolean))];
|
|
4218
|
-
}
|
|
4219
|
-
//#endregion
|
|
4220
4258
|
//#region ../blocks/src/system/runtime/nodes/team-members.tsx
|
|
4221
4259
|
const teamMemberCardSchema = z.object({
|
|
4222
4260
|
id: z.string().optional(),
|
|
@@ -4225,12 +4263,13 @@ const teamMemberCardSchema = z.object({
|
|
|
4225
4263
|
bio: z.union([z.string(), RichTextDocSchema]).nullish(),
|
|
4226
4264
|
profileBio: RichTextDocSchema.nullish(),
|
|
4227
4265
|
photo: runtimeMediaSchema.refine((value) => value.type === "image").nullish(),
|
|
4266
|
+
summary: z.string().nullish(),
|
|
4228
4267
|
profilePath: z.string().nullish(),
|
|
4229
4268
|
specialties: z.unknown().transform(parseTeamMemberSpecialties)
|
|
4230
4269
|
});
|
|
4231
4270
|
/** Staff and manual members meet at one boundary; Look data chooses biography length. */
|
|
4232
|
-
function teamMemberCardContent(member, index, biographySource) {
|
|
4233
|
-
const biography = biographySource === "profile" && member.profileBio ? member.profileBio : member.bio;
|
|
4271
|
+
function teamMemberCardContent(member, index, biographySource, cardBiography) {
|
|
4272
|
+
const biography = cardBiography === "any" ? cardText(teamMemberCardBiography(member)) : biographySource === "profile" && member.profileBio ? member.profileBio : member.bio;
|
|
4234
4273
|
const href = sanitizeHref(member.profilePath);
|
|
4235
4274
|
return {
|
|
4236
4275
|
id: member.id ?? `member-${index}`,
|
|
@@ -4248,12 +4287,83 @@ function teamMemberCardContent(member, index, biographySource) {
|
|
|
4248
4287
|
} } : {}
|
|
4249
4288
|
};
|
|
4250
4289
|
}
|
|
4290
|
+
function cardText(biography) {
|
|
4291
|
+
if (!biography) return null;
|
|
4292
|
+
return biography.kind === "document" ? biography.document : biography.paragraphs.join("\n\n");
|
|
4293
|
+
}
|
|
4294
|
+
/**
|
|
4295
|
+
* The quiet line under an "About" heading: the person's name and role. The
|
|
4296
|
+
* name is left out when the heading already says it, so it isn't read twice.
|
|
4297
|
+
*/
|
|
4298
|
+
function teamMemberAboutLine(input) {
|
|
4299
|
+
const name = input.name.trim();
|
|
4300
|
+
const parts = [name.length > 0 && (input.heading ?? "").toLocaleLowerCase().includes(name.toLocaleLowerCase()) ? "" : name, input.role?.trim() ?? ""].filter(Boolean);
|
|
4301
|
+
return parts.length > 0 ? parts.join(", ") : null;
|
|
4302
|
+
}
|
|
4303
|
+
/** The one person a section can be about: the list's only member, with a bio to read. */
|
|
4304
|
+
function personToWriteAbout(members) {
|
|
4305
|
+
const [member, ...others] = members;
|
|
4306
|
+
const biography = member && others.length === 0 ? teamMemberBiography(member) : null;
|
|
4307
|
+
return member && biography ? {
|
|
4308
|
+
member,
|
|
4309
|
+
biography
|
|
4310
|
+
} : null;
|
|
4311
|
+
}
|
|
4312
|
+
/**
|
|
4313
|
+
* One person given the section: their photo in the look's frame, a name and
|
|
4314
|
+
* role line, and their bio in full. The section's heading stays where the
|
|
4315
|
+
* block puts it; the stylesheet sets it beside the photo.
|
|
4316
|
+
*/
|
|
4317
|
+
function TeamMemberAbout({ member, biography, props }) {
|
|
4318
|
+
const line = teamMemberAboutLine({
|
|
4319
|
+
heading: props.sectionHeading,
|
|
4320
|
+
name: member.name,
|
|
4321
|
+
role: member.role
|
|
4322
|
+
});
|
|
4323
|
+
const photo = props.showPhotos === false ? null : member.photo;
|
|
4324
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
4325
|
+
className: "rb-team-about",
|
|
4326
|
+
"data-team-about": true,
|
|
4327
|
+
"data-has-photo": String(Boolean(photo)),
|
|
4328
|
+
children: [
|
|
4329
|
+
photo ? /* @__PURE__ */ jsx("div", {
|
|
4330
|
+
className: "rb-team-about-photo",
|
|
4331
|
+
...listLookSlot(props, "item-media"),
|
|
4332
|
+
children: /* @__PURE__ */ jsx(MediaNodeServer, {
|
|
4333
|
+
value: photo,
|
|
4334
|
+
size: ImagePresets.hero,
|
|
4335
|
+
...listLookSlot(props, "photo")
|
|
4336
|
+
})
|
|
4337
|
+
}) : null,
|
|
4338
|
+
line ? /* @__PURE__ */ jsx("p", {
|
|
4339
|
+
className: "rb-team-about-line",
|
|
4340
|
+
...listLookSlot(props, "item-meta"),
|
|
4341
|
+
children: line
|
|
4342
|
+
}) : null,
|
|
4343
|
+
biography.kind === "document" ? /* @__PURE__ */ jsx(RichText, {
|
|
4344
|
+
doc: biography.document,
|
|
4345
|
+
className: "rb-team-about-bio",
|
|
4346
|
+
...listLookSlot(props, "item-text"),
|
|
4347
|
+
lookSlots: props.lookSlots
|
|
4348
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
4349
|
+
className: "rb-team-about-bio",
|
|
4350
|
+
...listLookSlot(props, "item-text"),
|
|
4351
|
+
children: biography.paragraphs.map((paragraph, index) => /* @__PURE__ */ jsx("p", { children: paragraph }, index))
|
|
4352
|
+
})
|
|
4353
|
+
]
|
|
4354
|
+
});
|
|
4355
|
+
}
|
|
4251
4356
|
function TeamMembersNode(props) {
|
|
4252
4357
|
const parsed = z.array(teamMemberCardSchema).safeParse(props.source === "site_staff" ? props.siteMembers : props.members);
|
|
4253
4358
|
if (!parsed.success) return null;
|
|
4359
|
+
const about = props.onePerson === "about" ? personToWriteAbout(parsed.data) : null;
|
|
4360
|
+
if (about) return /* @__PURE__ */ jsx(TeamMemberAbout, {
|
|
4361
|
+
...about,
|
|
4362
|
+
props
|
|
4363
|
+
});
|
|
4254
4364
|
return /* @__PURE__ */ jsx(CardListItems, {
|
|
4255
4365
|
Carousel: props.Carousel,
|
|
4256
|
-
items: parsed.data.map((member, index) => teamMemberCardContent(member, index, props.biographySource)),
|
|
4366
|
+
items: parsed.data.map((member, index) => teamMemberCardContent(member, index, props.biographySource, props.cardBiography)),
|
|
4257
4367
|
presentation: {
|
|
4258
4368
|
...props,
|
|
4259
4369
|
bodyParts: [
|
|
@@ -4816,12 +4926,6 @@ function parseLimit(value, fallback) {
|
|
|
4816
4926
|
const n = typeof value === "string" ? parseInt(value, 10) : typeof value === "number" ? value : NaN;
|
|
4817
4927
|
return Number.isFinite(n) && n > 0 ? n : fallback;
|
|
4818
4928
|
}
|
|
4819
|
-
function isFutureOrNow(iso, nowIso) {
|
|
4820
|
-
const ts = Date.parse(iso);
|
|
4821
|
-
const now = Date.parse(nowIso);
|
|
4822
|
-
if (!Number.isFinite(ts) || !Number.isFinite(now)) return false;
|
|
4823
|
-
return ts >= now;
|
|
4824
|
-
}
|
|
4825
4929
|
function uniqByOccurrenceId(events) {
|
|
4826
4930
|
const seen = /* @__PURE__ */ new Set();
|
|
4827
4931
|
const out = [];
|
|
@@ -4833,43 +4937,6 @@ function uniqByOccurrenceId(events) {
|
|
|
4833
4937
|
}
|
|
4834
4938
|
return out;
|
|
4835
4939
|
}
|
|
4836
|
-
function selectFromOccurrenceContext(events, occurrenceContext) {
|
|
4837
|
-
if (!occurrenceContext) return null;
|
|
4838
|
-
const byId = events.find((event) => event.occurrenceId === occurrenceContext.id || event.id === occurrenceContext.id);
|
|
4839
|
-
if (byId) return byId;
|
|
4840
|
-
const contextDate = getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
4841
|
-
startsAt: occurrenceContext.startsAt,
|
|
4842
|
-
timeZone: occurrenceContext.timeZone
|
|
4843
|
-
}));
|
|
4844
|
-
return events.find((event) => getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
4845
|
-
startsAt: event.startsAt,
|
|
4846
|
-
timeZone: event.timeZone
|
|
4847
|
-
})) === contextDate) ?? null;
|
|
4848
|
-
}
|
|
4849
|
-
function selectNextUpcoming(events, nowIso) {
|
|
4850
|
-
return [...events].filter((event) => isFutureOrNow(event.startsAt, nowIso)).sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt))[0] ?? null;
|
|
4851
|
-
}
|
|
4852
|
-
function selectCompletedWholeSeries(events) {
|
|
4853
|
-
if (events.length === 0 || !events.every((event) => event.bookingScope === "whole_series")) return null;
|
|
4854
|
-
return [...events].sort((left, right) => Date.parse(right.startsAt) - Date.parse(left.startsAt))[0] ?? null;
|
|
4855
|
-
}
|
|
4856
|
-
function selectEventCandidate(events, occurrenceContext, nowIso) {
|
|
4857
|
-
const selected = selectFromOccurrenceContext(events, occurrenceContext);
|
|
4858
|
-
if (selected) return {
|
|
4859
|
-
event: selected,
|
|
4860
|
-
mode: "selected"
|
|
4861
|
-
};
|
|
4862
|
-
const upcoming = selectNextUpcoming(events, nowIso);
|
|
4863
|
-
if (upcoming) return {
|
|
4864
|
-
event: upcoming,
|
|
4865
|
-
mode: "next"
|
|
4866
|
-
};
|
|
4867
|
-
const completed = selectCompletedWholeSeries(events);
|
|
4868
|
-
return completed ? {
|
|
4869
|
-
event: completed,
|
|
4870
|
-
mode: "completed"
|
|
4871
|
-
} : null;
|
|
4872
|
-
}
|
|
4873
4940
|
function isWholeSeriesEvent(event) {
|
|
4874
4941
|
return event.bookingScope === "whole_series";
|
|
4875
4942
|
}
|
|
@@ -4903,7 +4970,7 @@ function selectEventDetails(args) {
|
|
|
4903
4970
|
}));
|
|
4904
4971
|
const occurrenceContext = args.occurrenceContext ?? null;
|
|
4905
4972
|
const otherLimit = parseLimit(args.otherDatesLimit, 5);
|
|
4906
|
-
const candidate =
|
|
4973
|
+
const candidate = selectEventDetailsCandidate(all, occurrenceContext, args.nowIso);
|
|
4907
4974
|
const timeZone = toBookingTimeZone(candidate?.event.timeZone ?? all[0]?.timeZone ?? null);
|
|
4908
4975
|
if (!candidate) return emptySelection(timeZone);
|
|
4909
4976
|
const { event: selected, mode } = candidate;
|
|
@@ -4967,6 +5034,10 @@ function resolveEligibility(input, selected) {
|
|
|
4967
5034
|
applicableMemberships: filterMembershipsForEvent(input.siteMemberships?.memberships ?? null, selected)
|
|
4968
5035
|
};
|
|
4969
5036
|
}
|
|
5037
|
+
/** The response's one drawing belongs to the selected event only when it is for that event's venue. */
|
|
5038
|
+
function resolveSelectedVenueDrawing(venueDrawing, selected) {
|
|
5039
|
+
return venueDrawing && selected?.venue?.id === venueDrawing.venueId ? venueDrawing.drawing : null;
|
|
5040
|
+
}
|
|
4970
5041
|
function resolveEventDetailsPresentation(input) {
|
|
4971
5042
|
const selection = resolveSelection(input);
|
|
4972
5043
|
const selected = selection.kind === "empty" ? null : selection.selected;
|
|
@@ -4980,7 +5051,8 @@ function resolveEventDetailsPresentation(input) {
|
|
|
4980
5051
|
panelHeading: input.panelHeading,
|
|
4981
5052
|
...resolveDisplaySettings(input),
|
|
4982
5053
|
...resolveEligibility(input, selected),
|
|
4983
|
-
autoApplyDiscount: input.autoApplyDiscount ?? null
|
|
5054
|
+
autoApplyDiscount: input.autoApplyDiscount ?? null,
|
|
5055
|
+
selectedVenueDrawing: resolveSelectedVenueDrawing(input.venueDrawing, selected)
|
|
4984
5056
|
};
|
|
4985
5057
|
}
|
|
4986
5058
|
//#endregion
|
|
@@ -5550,10 +5622,10 @@ function acceptedProductNames(props) {
|
|
|
5550
5622
|
const memberships = props.showAcceptedMemberships !== false ? (props.applicableMemberships ?? []).map(({ name }) => name) : [];
|
|
5551
5623
|
return [...passes, ...memberships];
|
|
5552
5624
|
}
|
|
5553
|
-
function EventVenueMap({ venue, showMap, mapHeight, mapClassName }) {
|
|
5554
|
-
if (!showMap || !venue
|
|
5625
|
+
function EventVenueMap({ venue, drawing, showMap, mapHeight, mapClassName }) {
|
|
5626
|
+
if (!showMap || !venue || !drawing) return null;
|
|
5555
5627
|
return /* @__PURE__ */ jsx(MapDrawingSvg, {
|
|
5556
|
-
drawing
|
|
5628
|
+
drawing,
|
|
5557
5629
|
label: venue.name,
|
|
5558
5630
|
className: mapClassName,
|
|
5559
5631
|
height: mapHeight
|
|
@@ -5604,7 +5676,8 @@ function SelectedEventDetailsView(props) {
|
|
|
5604
5676
|
venue,
|
|
5605
5677
|
showMap,
|
|
5606
5678
|
mapHeight,
|
|
5607
|
-
mapClassName
|
|
5679
|
+
mapClassName,
|
|
5680
|
+
drawing: props.selectedVenueDrawing
|
|
5608
5681
|
})]
|
|
5609
5682
|
}),
|
|
5610
5683
|
showOtherDates ? /* @__PURE__ */ jsx(OtherEventDates, { selection }) : null
|
|
@@ -5627,6 +5700,7 @@ function LegacyEventDetailsView(props) {
|
|
|
5627
5700
|
showDescription: props.showDescription ?? false,
|
|
5628
5701
|
showCapacity: props.showCapacity ?? false,
|
|
5629
5702
|
autoApplyDiscount: props.autoApplyDiscount ?? null,
|
|
5703
|
+
selectedVenueDrawing: props.selectedVenueDrawing,
|
|
5630
5704
|
mapHeight: props.mapHeight ?? 200,
|
|
5631
5705
|
mapClassName: props.mapClassName ?? "event-details-map",
|
|
5632
5706
|
acceptedItems: acceptedProductNames(props)
|
|
@@ -5681,6 +5755,7 @@ function EventDetailsHydration({ props, presentation, scopedEvents, subject, now
|
|
|
5681
5755
|
occurrenceContext: props.occurrenceContext ?? null,
|
|
5682
5756
|
subject,
|
|
5683
5757
|
events: scopedEvents,
|
|
5758
|
+
venueDrawing: props.venueDrawing ?? null,
|
|
5684
5759
|
showVenue: presentation.showVenue,
|
|
5685
5760
|
showMap: presentation.showMap,
|
|
5686
5761
|
showOtherDates: presentation.showOtherDates,
|
|
@@ -5953,9 +6028,8 @@ const EventCombinedSSR = ({ blockId, ...source }) => {
|
|
|
5953
6028
|
//#endregion
|
|
5954
6029
|
//#region ../blocks/src/system/blocks/offerings-preview/itemData.ts
|
|
5955
6030
|
function buildItemDataMap(props) {
|
|
5956
|
-
const routeCandidates = props.routeCandidates?.routes ?? [];
|
|
5957
6031
|
const entries = OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) => [definition.sourceKey, eventDataFromMaybeArray(props[definition.dataKey])]);
|
|
5958
|
-
return new Map([...entries, ["course", runDataFromMaybeArray(props.wholeSeriesRunEvents
|
|
6032
|
+
return new Map([...entries, ["course", runDataFromMaybeArray(props.wholeSeriesRunEvents)]]);
|
|
5959
6033
|
}
|
|
5960
6034
|
function eventDataFromMaybeArray(events) {
|
|
5961
6035
|
return events ? {
|
|
@@ -5969,7 +6043,7 @@ function eventDataFromMaybeArray(events) {
|
|
|
5969
6043
|
reason: "not_loaded"
|
|
5970
6044
|
};
|
|
5971
6045
|
}
|
|
5972
|
-
function runDataFromMaybeArray(events
|
|
6046
|
+
function runDataFromMaybeArray(events) {
|
|
5973
6047
|
if (!events) return {
|
|
5974
6048
|
kind: "failed",
|
|
5975
6049
|
reason: "not_loaded"
|
|
@@ -5979,7 +6053,7 @@ function runDataFromMaybeArray(events, routes) {
|
|
|
5979
6053
|
items: [...groupPublicEventsByRun(events)].map((run) => ({
|
|
5980
6054
|
kind: "run",
|
|
5981
6055
|
run,
|
|
5982
|
-
path:
|
|
6056
|
+
path: run.representative.destination.kind === "native" ? run.representative.destination.path : null
|
|
5983
6057
|
}))
|
|
5984
6058
|
};
|
|
5985
6059
|
}
|
|
@@ -6006,9 +6080,9 @@ function buildLoadedOfferingsPreviewListing(input) {
|
|
|
6006
6080
|
//#endregion
|
|
6007
6081
|
//#region ../blocks/src/system/runtime/nodes/events/shared/offeringNextDates.ts
|
|
6008
6082
|
/** One occurrence batch supplies every occurrence-targeted card in the block. */
|
|
6009
|
-
function offeringDatesBySeries(events, now) {
|
|
6083
|
+
function offeringDatesBySeries(events, now, booking) {
|
|
6010
6084
|
const groups = events.reduce((result, event) => new Map([...result, [event.seriesId, [...result.get(event.seriesId) ?? [], event]]]), /* @__PURE__ */ new Map());
|
|
6011
|
-
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))]));
|
|
6085
|
+
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, booking))]));
|
|
6012
6086
|
}
|
|
6013
6087
|
/** Whole-series sessions share the run-level booking capacity, by contract. */
|
|
6014
6088
|
function offeringRunDates(event, now) {
|
|
@@ -6016,7 +6090,7 @@ function offeringRunDates(event, now) {
|
|
|
6016
6090
|
const nextStart = nextLiveRunSessionStartMs(event.run.sessions, now);
|
|
6017
6091
|
return nextStart === null ? [] : orderedLiveRunSessions(event.run.sessions).filter((session) => Date.parse(session.startsAt) >= nextStart).slice(0, 3).map((session) => offeringDateRow(session, event));
|
|
6018
6092
|
}
|
|
6019
|
-
function offeringDateRow(session, event) {
|
|
6093
|
+
function offeringDateRow(session, event, booking) {
|
|
6020
6094
|
const options = eventDateOptions({
|
|
6021
6095
|
...event,
|
|
6022
6096
|
timeZone: session.timeZone
|
|
@@ -6024,9 +6098,12 @@ function offeringDateRow(session, event) {
|
|
|
6024
6098
|
const date = formatEventCompactDateRail(session.startsAt, options, "as-written");
|
|
6025
6099
|
const capacity = getEventAvailability(event);
|
|
6026
6100
|
const status = getEventAvailabilityStatus(event);
|
|
6101
|
+
const label = `${date.weekday} ${date.day} ${date.month}, ${formatTime(session.startsAt, options)}`;
|
|
6102
|
+
const bookingLink = booking?.(event, label) ?? null;
|
|
6027
6103
|
return {
|
|
6028
6104
|
startsAt: session.startsAt,
|
|
6029
|
-
label
|
|
6105
|
+
label,
|
|
6106
|
+
...bookingLink ? { booking: bookingLink } : {},
|
|
6030
6107
|
places: capacity.available === null ? null : {
|
|
6031
6108
|
label: capacity.isFull ? "Sold out" : `${capacity.available} place${capacity.available === 1 ? "" : "s"} left`,
|
|
6032
6109
|
status: capacity.isFull ? "full" : status.status === "filling" ? "low" : "available"
|
|
@@ -6044,6 +6121,10 @@ function OfferingsCatalogue(props) {
|
|
|
6044
6121
|
presets: props.bookingOfferingPresets,
|
|
6045
6122
|
events: props.catalogueEvents
|
|
6046
6123
|
});
|
|
6124
|
+
const shape = offeringsCatalogueShape(state, {
|
|
6125
|
+
listDates: props.lookSlots !== void 0 && props.datesMode === "next-dates",
|
|
6126
|
+
oneOfferingRequested: props.oneOffering === true
|
|
6127
|
+
});
|
|
6047
6128
|
switch (state.kind) {
|
|
6048
6129
|
case "no-groups": return renderCatalogueEmpty({
|
|
6049
6130
|
props,
|
|
@@ -6056,7 +6137,8 @@ function OfferingsCatalogue(props) {
|
|
|
6056
6137
|
case "by-date": return renderCatalogueMergedList({
|
|
6057
6138
|
props,
|
|
6058
6139
|
listing: state,
|
|
6059
|
-
now
|
|
6140
|
+
now,
|
|
6141
|
+
shape
|
|
6060
6142
|
});
|
|
6061
6143
|
case "by-type": return props.lookSlots ? /* @__PURE__ */ jsxs("div", {
|
|
6062
6144
|
...listLookSlot(props, "layout"),
|
|
@@ -6069,26 +6151,37 @@ function OfferingsCatalogue(props) {
|
|
|
6069
6151
|
now,
|
|
6070
6152
|
children: void 0
|
|
6071
6153
|
},
|
|
6072
|
-
groups: state.groups
|
|
6154
|
+
groups: state.groups,
|
|
6155
|
+
shape
|
|
6073
6156
|
}) })]
|
|
6074
6157
|
}) : renderOfferingsCatalogueGroups({
|
|
6075
6158
|
props: {
|
|
6076
6159
|
...props,
|
|
6077
6160
|
now
|
|
6078
6161
|
},
|
|
6079
|
-
groups: state.groups
|
|
6162
|
+
groups: state.groups,
|
|
6163
|
+
shape
|
|
6080
6164
|
});
|
|
6081
6165
|
default: return assertNever$1(state);
|
|
6082
6166
|
}
|
|
6083
6167
|
}
|
|
6084
|
-
|
|
6168
|
+
/** The hook the single-offering layout hangs from; absent for several. */
|
|
6169
|
+
function catalogueShapeHook(shape) {
|
|
6170
|
+
return shape === "single" ? { "data-has-one-offering": "true" } : {};
|
|
6171
|
+
}
|
|
6172
|
+
/** One offering has room for a Book link on each date; several keep plain rows. */
|
|
6173
|
+
function catalogueDateBooking(shape, pathname) {
|
|
6174
|
+
return shape === "single" ? (event, dateLabel) => eventDateBookingLink(event, pathname ?? "/", dateLabel) : void 0;
|
|
6175
|
+
}
|
|
6176
|
+
function renderOfferingsCatalogueGroups({ props, groups, shape }) {
|
|
6085
6177
|
const enabledSeriesIds = new Set(groups.flatMap((load) => load.kind === "items" ? load.items.map((item) => item.kind === "event" ? item.event.seriesId : item.run.eventSeriesId) : []));
|
|
6086
|
-
const quickDateEvents = selectQuickDateEvents((props.quickDateEvents ?? []).filter((event) => enabledSeriesIds.has(event.seriesId)));
|
|
6178
|
+
const quickDateEvents = shape === "single" ? [] : selectQuickDateEvents((props.quickDateEvents ?? []).filter((event) => enabledSeriesIds.has(event.seriesId)));
|
|
6087
6179
|
const populated = groups.flatMap(catalogueGroupItems);
|
|
6088
6180
|
return /* @__PURE__ */ jsxs("div", {
|
|
6089
6181
|
className: "offerings-preview rb-flex rb-flex-col rb-gap-6",
|
|
6090
6182
|
"data-block": "offerings-preview",
|
|
6091
6183
|
"data-offerings-mode": "catalogue",
|
|
6184
|
+
...catalogueShapeHook(shape),
|
|
6092
6185
|
children: [
|
|
6093
6186
|
quickDateEvents.length > 0 ? /* @__PURE__ */ jsx("div", {
|
|
6094
6187
|
className: "offerings-preview-quick-dates rb-flex rb-flex-col rb-gap-4",
|
|
@@ -6105,28 +6198,30 @@ function renderOfferingsCatalogueGroups({ props, groups }) {
|
|
|
6105
6198
|
children: populated.map(({ group, items }) => /* @__PURE__ */ jsxs("section", {
|
|
6106
6199
|
className: "rb-flex rb-flex-col rb-gap-5",
|
|
6107
6200
|
"data-offering-source": group.sourceKey,
|
|
6108
|
-
children: [/* @__PURE__ */ jsx("h3", {
|
|
6201
|
+
children: [shape === "single" ? null : /* @__PURE__ */ jsx("h3", {
|
|
6109
6202
|
...listLookSlot(props, "heading"),
|
|
6110
6203
|
children: group.title
|
|
6111
6204
|
}), renderCatalogueItems({
|
|
6112
6205
|
props,
|
|
6113
|
-
items
|
|
6206
|
+
items,
|
|
6207
|
+
shape,
|
|
6208
|
+
groupTitle: group.title
|
|
6114
6209
|
})]
|
|
6115
6210
|
}, group.sourceKey))
|
|
6116
6211
|
})
|
|
6117
6212
|
]
|
|
6118
6213
|
});
|
|
6119
6214
|
}
|
|
6120
|
-
function renderCatalogueItems({ props, items }) {
|
|
6215
|
+
function renderCatalogueItems({ props, items, shape, groupTitle }) {
|
|
6121
6216
|
const events = items.map((item) => item.kind === "event" ? item.event : item.run.representative);
|
|
6122
6217
|
if (props.lookSlots) {
|
|
6123
6218
|
const now = props.now;
|
|
6124
|
-
const dates = offeringDatesBySeries(props.quickDateEvents ?? [], now);
|
|
6219
|
+
const dates = offeringDatesBySeries(props.quickDateEvents ?? [], now, catalogueDateBooking(shape, props.pathname));
|
|
6125
6220
|
return CardListItems({
|
|
6126
6221
|
Carousel: props.Carousel,
|
|
6127
|
-
Title: "h4",
|
|
6222
|
+
Title: shape === "single" ? "h3" : "h4",
|
|
6128
6223
|
presentation: props,
|
|
6129
|
-
items: items.map((item) => catalogueCardContent(item, now, dates))
|
|
6224
|
+
items: items.map((item) => catalogueCardContent(item, now, dates, shape === "single" ? groupTitle : void 0))
|
|
6130
6225
|
});
|
|
6131
6226
|
}
|
|
6132
6227
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -6161,11 +6256,12 @@ function renderCatalogueEmpty({ props, failed }) {
|
|
|
6161
6256
|
})]
|
|
6162
6257
|
});
|
|
6163
6258
|
}
|
|
6164
|
-
function renderCatalogueMergedList({ props, listing, now }) {
|
|
6165
|
-
const dates = offeringDatesBySeries(props.quickDateEvents ?? [], now);
|
|
6259
|
+
function renderCatalogueMergedList({ props, listing, now, shape }) {
|
|
6260
|
+
const dates = offeringDatesBySeries(props.quickDateEvents ?? [], now, catalogueDateBooking(shape, props.pathname));
|
|
6166
6261
|
const items = listing.items.map(({ item, group }) => catalogueCardContent(item, now, dates, group.singularLabel));
|
|
6167
6262
|
return /* @__PURE__ */ jsxs("div", {
|
|
6168
6263
|
...listLookSlot(props, "layout"),
|
|
6264
|
+
...catalogueShapeHook(shape),
|
|
6169
6265
|
children: [/* @__PURE__ */ jsx("header", {
|
|
6170
6266
|
...listLookSlot(props, "head"),
|
|
6171
6267
|
children: props.children
|