@riverbankcms/sdk 0.161.0 → 0.163.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/_dts/{BlocksIslandsHydrator-Bx4kLiTA.d.ts → BlocksIslandsHydrator-DYPGA_qh.d.ts} +1 -1
- package/dist/_dts/{Page-Dm7_P13o.d.ts → Page-zwnvFBPu.d.ts} +8 -8
- package/dist/_dts/{SdkPreviewMode-D7HdWWwF.d.ts → SdkPreviewMode-DukuJzGr.d.ts} +58 -91
- package/dist/_dts/{client-Ep0jI9eE.d.ts → client-Chh3bnXC.d.ts} +11 -3
- package/dist/_dts/{content-types-BgAzCrBc.d.ts → content-types-Bbzqw9J2.d.ts} +2 -2
- package/dist/_dts/{contracts-DUiOnj9e.d.ts → contracts-GJ1kGBsi.d.ts} +13 -4
- package/dist/_dts/{footerPageOutline-B-uXamTG.d.ts → footerPageOutline-BNMKhyvo.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BDkZYEcS.d.ts → generatePageMetadata-Ce0m1P3B.d.ts} +2 -2
- package/dist/_dts/{index-DvKQA6AZ.d.ts → index-C3mJvn27.d.ts} +4 -4
- package/dist/_dts/{schema-BHu0PYWl.d.ts → index-CaL0nKkl.d.ts} +4166 -3355
- package/dist/_dts/{index-KPrWM0KF.d.ts → index-CdSNXLOx.d.ts} +1 -1
- package/dist/_dts/{types-BR1Yboa9.d.ts → index-CyQhZuhM.d.ts} +3347 -1692
- package/dist/_dts/{index-BVkP8f70.d.ts → index-D2y4Iy-d.d.ts} +13 -2
- package/dist/_dts/{index-CSsfq6KG.d.ts → index-DRxgeK8L.d.ts} +11 -6
- package/dist/_dts/{index-CF6Cjs7b.d.ts → index-FstkyqQB.d.ts} +2 -2
- package/dist/_dts/{index-D_8uz4OP.d.ts → index-G2p-HOrK.d.ts} +3 -3
- package/dist/_dts/{index-ylivB7Jj.d.ts → index-rhMSu0oY.d.ts} +2 -2
- package/dist/_dts/{loadContent-DTjKOO-T.d.ts → loadContent-DiLZoInK.d.ts} +10 -7
- package/dist/_dts/{resolvePageContent-C1vA5c5w.d.ts → resolvePageContent-CWUnipv8.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 +13 -7
- 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-D02ngcUH.d.ts → types-BmtrA45p.d.ts} +2 -2
- package/dist/_dts/{types-ZGUiHpDE.d.ts → types-CalL7aKP.d.ts} +7 -7
- package/dist/_dts/{types-CJXTCF_F.d.ts → types-DFOqkClJ.d.ts} +3 -3
- package/dist/_dts/{validation-BaV565gb.d.ts → validation-G8MRoIhq.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DTExCJsb.mjs → BlocksIslandsHydrator-DLCXwe30.mjs} +20 -19
- package/dist/client/{BookingMailingListNote-BDpxmn1p.mjs → BookingMailingListNote-BV5-50F0.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-PeCiL82X.mjs → CalendarNavigationChevron-CVLAHdZG.mjs} +6 -6
- package/dist/client/{CheckboxChoice-DWexRLf6.mjs → CheckboxChoice-Dtgp3OU8.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-3zmIqakW.mjs → DemoBookingPortalAccess-B3caCnTT.mjs} +26 -10
- package/dist/client/{DemoPortalSignInLink-GHi-8BW5.mjs → DemoPortalSignInLink-Ct8JMKW0.mjs} +1 -1
- package/dist/client/{EventCalendar.client-BxQLY5cX.mjs → EventCalendar.client-ffa6920T.mjs} +16 -17
- package/dist/client/{EventCombined.client-B5bmQ03b.mjs → EventCombined.client-zm0W2G79.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-CgMZ9TeU.mjs → EventEmbeddedCheckoutStep-CPPE2rWS.mjs} +1 -1
- package/dist/client/{EventItem-BEx-qiDE.mjs → EventItem-CND3mfra.mjs} +91 -15
- package/dist/client/{EventListWeekNavigation-CyH5tA6Y.mjs → EventListWeekNavigation-D8QdxL_f.mjs} +1 -1
- package/dist/client/{EventListing.client-D3uySdGP.mjs → EventListing.client-CaoRZUI9.mjs} +3 -3
- package/dist/client/{EventListing.view-9RFrBejr.mjs → EventListing.view-BfnOmxYD.mjs} +14 -70
- package/dist/client/{EventRegistrationPayment-CG2tQx8K.mjs → EventRegistrationPayment-Dfu3RSL2.mjs} +10 -10
- package/dist/client/LocationMapActions-wlyxASdT.mjs +62 -0
- package/dist/client/{LocationMapActions-Wsr83Q7q.mjs → MapDrawingSvg-B9oKSitp.mjs} +2 -70
- package/dist/client/{Page-Bf2nPACI.mjs → Page-BEF9HrAy.mjs} +2333 -492
- package/dist/client/{StepIndicator-CZweb1vs.mjs → StepIndicator-Bjx4faaw.mjs} +2 -2
- package/dist/client/{TabBarFragment-Bkgz67gt.mjs → TabBarFragment-Cu7k_VSl.mjs} +1 -1
- package/dist/client/{ThemedButton-CnyL3s1A.mjs → ThemedButton-DclwabI7.mjs} +1 -1
- package/dist/client/{accordion-TcimLLRQ.mjs → accordion-lzM2nSZB.mjs} +1 -1
- package/dist/client/{booking-form.client-q-RpJ4aF.mjs → booking-form.client-Bll4QwBi.mjs} +137 -60
- package/dist/client/{bookingForm-DjGfk3Wj.mjs → bookingForm-Cq5fQ-vo.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-CGAk6j0m.mjs → carousel-CxerQwIx.mjs} +2 -2
- package/dist/client/{carousel.client-ArlGmYWV.mjs → carousel.client-CVUXq8Mb.mjs} +1 -1
- package/dist/client/{cart-D_h3rAZ2.mjs → cart-X-m0isoI.mjs} +3 -3
- package/dist/client/{cart.client-DHOxZbJ7.mjs → cart.client-CJbzWIl0.mjs} +1 -1
- package/dist/client/{checkout-tC-3CzuM.mjs → checkout-Gd0O_fGH.mjs} +3 -3
- package/dist/client/{checkout.client-DsBb2Pkm.mjs → checkout.client-Baee6Jsm.mjs} +1 -1
- package/dist/client/client.mjs +34 -69
- package/dist/client/{context-9ZfMb6GA.mjs → context-Bg0SFWcM.mjs} +28 -1
- package/dist/client/{cta-D-ZqL7-e.mjs → cta-HffyM4MA.mjs} +1 -1
- package/dist/client/{dateFormatting-BCwLqYpW.mjs → dateFormatting-CV45BH5M.mjs} +39 -2
- package/dist/client/{demoPortalMagicLink-BxkSS9fx.mjs → demoPortalMagicLink-CDWheSjI.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-xg6to91E.mjs → enhanceHeaderSection-BqVDXL0D.mjs} +3 -3
- package/dist/client/{event-details.client-C670TgRd.mjs → event-details.client-SFtS9OkF.mjs} +2 -1
- package/dist/client/{event-registration.client-C6GApWTB.mjs → event-registration.client-CguNVIFY.mjs} +13 -13
- package/dist/client/{eventCalendar-CWc0dg9i.mjs → eventCalendar-DSGG35jd.mjs} +4 -4
- package/dist/client/{eventCombined-D4DbOrvQ.mjs → eventCombined-Oe-PiChx.mjs} +4 -4
- package/dist/client/{eventDetails-C2DfmbC0.mjs → eventDetails-BhcTT6P3.mjs} +2 -2
- package/dist/client/{eventListing-C_yXmHyz.mjs → eventListing-BS0kBEgI.mjs} +4 -4
- package/dist/client/{eventRegistration-DJuaCB-O.mjs → eventRegistration-B82SHv7j.mjs} +4 -4
- package/dist/client/{form-QZhtdFHA.mjs → form-DAIUrVXb.mjs} +3 -3
- package/dist/client/{form.client-CgvPACwG.mjs → form.client-BoAkhoh_.mjs} +4 -4
- package/dist/client/{form.parts-2uI0-5N-.mjs → form.parts-1VnasOK8.mjs} +3 -3
- package/dist/client/{formatDate-Danr0Nk4.mjs → formatDate-BKil_Psb.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-DJdlLdvZ.mjs → headerSection-CyuHk8Ei.mjs} +2 -2
- package/dist/client/mediaAssets-CGJE1Omu.mjs +43 -0
- package/dist/client/mediaContext-DIkX2S-X.mjs +136 -0
- package/dist/client/{newsletter-form.client-Cbepz2KU.mjs → newsletter-form.client-CCdyHx0B.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DN8oMCQ0.mjs → newsletter-form.parts-Dl8AjsXW.mjs} +2 -2
- package/dist/client/{newsletterForm-wjLtW-wq.mjs → newsletterForm-qFWLZJui.mjs} +3 -3
- package/dist/client/{noop-B7H6gCbj.mjs → noop-4XFGzJpT.mjs} +19 -3
- package/dist/client/portal/client.mjs +1116 -85
- package/dist/client/{product-detail.client-CYTR165c.mjs → product-detail.client-Tq4S99ce.mjs} +1 -1
- package/dist/client/{product-list.client-B4vTvag8.mjs → product-list.client-CuL5jB1w.mjs} +1 -1
- package/dist/client/{productDetail-k8LEMSWn.mjs → productDetail-BRqgcotZ.mjs} +3 -3
- package/dist/client/{productList-DEo8Bqoe.mjs → productList-EK9Um-oh.mjs} +3 -3
- package/dist/client/{propsDecoder-G0j0HXBO.mjs → propsDecoder-VD4arFq1.mjs} +4 -3
- package/dist/client/{registry.server-BTmSXE3D.mjs → registry.server-qYbsatxH.mjs} +272 -68
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +22 -19
- package/dist/client/{richText-coerce-B19taoH6.mjs → richText-coerce-CW8CFk8v.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-Chu5BHra.mjs → routeIslandApiConfig-CnZ_1ol2.mjs} +1 -1
- package/dist/client/{schema-C-m8XHuW.mjs → schema-BFwQDvJL.mjs} +4561 -3948
- package/dist/client/{shop-RGWa43H7.mjs → shop-CTUaT57E.mjs} +3 -3
- package/dist/client/{shop-commerce-TJYCBO_H.mjs → shop-commerce-BWwbsm_-.mjs} +11 -11
- package/dist/client/{shop-commerce-store-CjCcUB_o.mjs → shop-commerce-store-15UII0y3.mjs} +1 -1
- package/dist/client/{shop.client-tsKfZw1W.mjs → shop.client-UWgdmJBm.mjs} +12 -12
- package/dist/client/{shop.interactive-CVqLAU53.mjs → shop.interactive-Cf_kASpd.mjs} +76 -51
- package/dist/client/{shopShared-C3lHMz_R.mjs → shopShared-Bi8d584P.mjs} +2 -2
- package/dist/{server/effectiveNavLinkStyle-CGvGr3yD.mjs → client/site-styles-dy54AUdz.mjs} +2781 -331
- package/dist/client/{timetableModel-V2ifvGGy.mjs → timetableModel-Bi8ruFgB.mjs} +10 -9
- package/dist/client/{useAvailableSlots-D1X69-pN.mjs → useAvailableSlots-DiLbDqM3.mjs} +8 -11
- package/dist/client/{useBookingNowIso-Ch30jino.mjs → useBookingNowIso-CWIiqPd0.mjs} +1 -1
- package/dist/client/{useDiscountApply-Bwzr1RjV.mjs → useDiscountApply-ChtszhF9.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-BimJbFC7.mjs → useDiscountCodeUi-B0Z7n2tZ.mjs} +1 -1
- package/dist/client/{useEventPagination-CLAS0upd.mjs → useEventPagination-DRrATQHQ.mjs} +6 -6
- package/dist/client/{view-Dj_FZHmg.mjs → view-OvsxzgxP.mjs} +64 -55
- package/dist/client/{view-BUh4LnLS.mjs → view-yUIfWX3S.mjs} +4 -4
- package/dist/client/{wizardSteps-BkZc-hKH.mjs → wizardSteps-kbONzKUv.mjs} +59 -53
- package/dist/preview-next/before-render.mjs +3 -3
- package/dist/preview-next/chrome.css +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CwerMfzn.mjs → EventEmbeddedCheckoutStep-DzoFjIqB.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-Dvq-RW9-.mjs → PreviewEditorSidebar-BhgPyyUW.mjs} +170 -1046
- package/dist/preview-next/client/{PreviewEditorUI-BdFjS39R.mjs → PreviewEditorUI-lndKKBtB.mjs} +157 -313
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BEfHln1E.mjs → SdkPreviewModeRuntime-Bk7On_EM.mjs} +351 -1386
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CjkGh1IG.mjs → SdkPreviewModeRuntime-DCDDXDlt.mjs} +1 -1
- package/dist/preview-next/client/{ThemedButton-b14Bv03E.mjs → ThemedButton-nUnE3iMv.mjs} +1010 -398
- package/dist/preview-next/client/{SiteChromeCustomizeContext-CDbxk_qZ.mjs → previewAuthStore-DHtSQIBE.mjs} +159416 -162308
- package/dist/preview-next/client/{previewChromeSurface-Dd1_mNIg.mjs → previewChromeSurface-CxQ6dZ8D.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-B-CXyGVb.mjs → sdk-runtime-DSZv7Vfm.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-Chq5KKKh.mjs +14162 -0
- package/dist/preview-next/client/{spinner-CGxS8Ns-.mjs → spinner-CjxE3uws.mjs} +1 -1
- package/dist/preview-next/edit-map.css +37 -0
- package/dist/preview-next/keepAlive.mjs +2 -2
- package/dist/preview-next/maplibre-gl.css +1 -0
- 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-CxCstfkP.mjs} +403 -200
- package/dist/preview-next/upload-structure.css +18 -0
- package/dist/server/{Block.shared-CeTd2saO.mjs → Block.shared-Dz9k8vCX.mjs} +16 -16
- package/dist/server/{bindings-C5YpKuKt.mjs → bindings-S-gCHhj5.mjs} +2 -2
- package/dist/server/{client-Cv26lZQ4.mjs → client-C2Q56xqV.mjs} +34 -69
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/{client/mediaContext-jPeJ2PmJ.mjs → server/effectiveNavLinkStyle-DLzJPcDL.mjs} +1977 -1210
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-C8a0b-cC.mjs → loadContent-D7ItMsEl.mjs} +7 -4
- package/dist/server/loadPage-D2qvYV5g.mjs +2 -0
- package/dist/server/{loadPage-BW7dklu3.mjs → loadPage-DaPiPYUL.mjs} +2 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-tIuqmJB3.mjs → overrideResolution-anoB3Kbn.mjs} +1 -1
- package/dist/server/{overrides-D1fiPOKF.mjs → overrides-W1Cc6srh.mjs} +434 -241
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild--fO0E2tr.mjs → prebuild-BF9yNfCS.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CqJnokWJ.mjs → prefetchBlockData-Cn9k3DW6.mjs} +36 -11
- package/dist/server/{publicProducts-CvvZ4JIe.mjs → publicProducts-BVcJ6TG7.mjs} +656 -166
- package/dist/server/{registry-BVfCqaCq.mjs → registry-4ZF3bUuJ.mjs} +401 -74
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-DPNvhXEz.mjs → resolveBlockData-BKQ1Fc0M.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-CD4peO7m.mjs → schema-DgrigZq9.mjs} +7748 -7135
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-H-EvTJiW.mjs → site-styles-CxE9F3hj.mjs} +99 -117
- package/dist/server/{siteChromeOverlayClearance-DNC2k1U0.mjs → siteChromeOverlayClearance-OhS6f830.mjs} +161 -105
- package/dist/server/{src-ILxc6pid.mjs → src-C44_fMy5.mjs} +1190 -147
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-BNHIXiUj.mjs → themeAdmission-CVc04B9m.mjs} +36 -29
- package/dist/server/{validation-B1ieVemg.mjs → validation-BrbY0nxR.mjs} +2 -2
- package/dist/server/{version-BQK44wFg.mjs → version-BBSk8uM6.mjs} +1 -1
- package/dist/styles/index.css +1034 -113
- package/package.json +1 -1
- package/dist/_dts/index-BQDBQvdu.d.ts +0 -13
- package/dist/client/mediaAssets-BvjcAZpS.mjs +0 -16
- package/dist/preview-next/client/siteStyleAccess-Kqk0j0dE.mjs +0 -5812
- package/dist/server/loadPage--DXBwI8V.mjs +0 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Cr as
|
|
1
|
+
import { At as parseCanonicalMediaIdentifier, Cn as ok$1, Cr as surfaceInkStyle, Dn as parseResolvedSurface, Dr as mergeStyles, En as opaqueSurfaceDeclarations, F as themeButtonExtraClassesWithTrailingIcon, Gn as surfaceToneFromForegroundToken, Gt as defineBlockDesignCapability, I as themeButtonSizeClassName, J as cardVariantRoleValues, Jn as surfaceInkPublication, Jt as eventListTreatmentValues, K as cardRoleSchema, Kn as resolveSurfaceForeground, L as themeButtonVariantClassNames, Mt as arrangementModes, Nr as parseBlockColorToken, Or as rgbColorValue, Ot as resolveManagedMediaReference, Qt as headingDecorationColorTokenValues, Rn as resolveThemeColorReferenceValue, Sn as err, Tr as borderColorStyle, Tt as buildRenderableMediaAssetIndex, Vn as PUBLIC_BUTTON_ROLES, Wn as selectLogoVariant, Y as normalizeCardRole, Yt as eyebrowTreatmentValues, _n as parseSiteTermsVersionId, _t as runtimeBoxBackgroundSchema, bn as unsafeAsStorageBucketName, cn as tileTreatmentValues, fn as parseContentVersionId, gt as boxBackgroundSchema, hn as parseEventSeriesId, ht as boxBackgroundOverlaySchema, jn as surfaceDecorationColors, kn as resolveSurface, kr as textColorStyle, ln as toNonEmptyReadonlyArray, mn as parseEventOfferingId, p as headerVariantValues, qt as defineFrameCapability, rn as offeringsPreviewCompositionTreatmentValues, sn as testimonialsCompositionTreatmentValues, un as visibleHeadingDecorationFamilyValues, vr as surfaceForegroundInputFromResolved, wr as backgroundColorStyle, wt as runtimeMediaSchema, xn as unsafeAsStoragePath, yn as unsafeAsMediaAssetId, yr as surfaceForegroundStyle } from "./schema-DgrigZq9.mjs";
|
|
2
2
|
import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { a as heroPhotoPaintsGround, c as sectionForegroundBackground, l as defineBlockDesignMetadata, o as parseCanonicalRuntimeBackground, s as resolveSectionBackground } from "./site-styles-
|
|
3
|
+
import { A as footerForegroundCandidates, L as headerRootPaint, a as readOpeningForegroundProjection, f as arrangementSlotNames, i as transparentHeaderForegroundInput, n as headerForegroundCandidates, r as headerLeafTextColor, v as resolveModeArrangement, w as compiledRuntimeStyleFieldNames } from "./effectiveNavLinkStyle-DLzJPcDL.mjs";
|
|
4
|
+
import { a as heroPhotoPaintsGround, c as sectionForegroundBackground, l as defineBlockDesignMetadata, o as parseCanonicalRuntimeBackground, s as resolveSectionBackground } from "./site-styles-CxE9F3hj.mjs";
|
|
5
5
|
import { a as isRecord$12, t as RichTextDocSchema } from "./richTextSchema-YYc85FX4.mjs";
|
|
6
|
-
import { a as planSiteChromePlacement, i as parseHeaderPositioning, n as desktopOnlyDisplay, o as splitSiteChromePlacementClasses, r as mobileOnlyDisplay, t as SITE_CHROME_VISIBLE_HEADER_ATTR } from "./siteChromeOverlayClearance-
|
|
6
|
+
import { a as planSiteChromePlacement, i as parseHeaderPositioning, n as desktopOnlyDisplay, o as splitSiteChromePlacementClasses, r as mobileOnlyDisplay, t as SITE_CHROME_VISIBLE_HEADER_ATTR } from "./siteChromeOverlayClearance-OhS6f830.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import React from "react";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1754,10 +1754,14 @@ function assessCustomTargeting(catalog, targeting) {
|
|
|
1754
1754
|
}
|
|
1755
1755
|
}
|
|
1756
1756
|
}
|
|
1757
|
+
/** Shared choice availability decision for both runtime catalogues and captured document facts. */
|
|
1758
|
+
function missingMailingListTargetingChoiceIds(targeting, choices) {
|
|
1759
|
+
const available = new Set(choices.map((choice) => choice.id));
|
|
1760
|
+
return mailingListTargetingChoiceIds(targeting).filter((id) => !available.has(id));
|
|
1761
|
+
}
|
|
1757
1762
|
function assessMatchedChoices(matched, choices) {
|
|
1758
1763
|
const selected = new Set(mailingListTargetingChoiceIds(matched.targeting));
|
|
1759
|
-
const
|
|
1760
|
-
const missingIds = [...selected].filter((id) => !available.has(id));
|
|
1764
|
+
const missingIds = missingMailingListTargetingChoiceIds(matched.targeting, choices);
|
|
1761
1765
|
const value = {
|
|
1762
1766
|
mode: "custom",
|
|
1763
1767
|
...matched,
|
|
@@ -3823,11 +3827,15 @@ z.object({
|
|
|
3823
3827
|
}).optional()
|
|
3824
3828
|
}).optional(),
|
|
3825
3829
|
promotedFields: z.array(z.string().min(1)).optional(),
|
|
3830
|
+
/** Legacy presentation fields owned by arrangement Looks, including nested schema paths. */
|
|
3831
|
+
arrangementOwnedFieldIds: z.array(z.string().min(1)).readonly().optional(),
|
|
3826
3832
|
variantMeaning: z.discriminatedUnion("kind", [z.object({
|
|
3827
3833
|
kind: z.literal("arrangement"),
|
|
3828
3834
|
lookOnlyKeys: z.array(z.string().min(1)).readonly().optional()
|
|
3829
3835
|
}), z.object({
|
|
3830
3836
|
kind: z.literal("mode"),
|
|
3837
|
+
modes: z.array(z.enum(arrangementModes)).min(1).readonly(),
|
|
3838
|
+
defaultMode: z.enum(arrangementModes),
|
|
3831
3839
|
arrangementField: z.string().min(1),
|
|
3832
3840
|
keys: z.array(z.string().min(1)).min(1).readonly(),
|
|
3833
3841
|
defaultKey: z.string().min(1),
|
|
@@ -7169,7 +7177,7 @@ function resolveBackgroundColorValue(value, context) {
|
|
|
7169
7177
|
//#region ../blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.ts
|
|
7170
7178
|
const sectionSurfaceCache = /* @__PURE__ */ new WeakMap();
|
|
7171
7179
|
function resolveHeaderRootForeground(header, palette, isTransparent) {
|
|
7172
|
-
if (isTransparent) return readOpeningForegroundProjection(header) ?? { kind: "
|
|
7180
|
+
if (isTransparent) return readOpeningForegroundProjection(header) ?? { kind: "inherits" };
|
|
7173
7181
|
const background = header?.background;
|
|
7174
7182
|
return resolveSurfaceForeground(background ?? {
|
|
7175
7183
|
type: "color",
|
|
@@ -7185,12 +7193,32 @@ function resolveFooterRootForeground(footer, palette, proseHoverCandidate) {
|
|
|
7185
7193
|
function resolveSurfaceForegroundStyles(value, context, options) {
|
|
7186
7194
|
const resolved = cachedSectionSurface(value, context, options);
|
|
7187
7195
|
const foreground = resolved.foreground;
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7196
|
+
const inks = surfaceInkStyle(resolved.inks);
|
|
7197
|
+
switch (foreground.kind) {
|
|
7198
|
+
case "inherits":
|
|
7199
|
+
case "unmeasured-paint": return {
|
|
7200
|
+
...resolved.buttonStyles,
|
|
7201
|
+
...inks
|
|
7202
|
+
};
|
|
7203
|
+
case "known": return {
|
|
7204
|
+
...arrangementSurfaceInk(foreground, context),
|
|
7205
|
+
...resolved.buttonStyles,
|
|
7206
|
+
...surfaceForegroundStyle(surfaceForegroundInputFromResolved(foreground, (token) => resolveBackgroundColorValue(token, context))),
|
|
7207
|
+
...inks
|
|
7208
|
+
};
|
|
7209
|
+
}
|
|
7210
|
+
}
|
|
7211
|
+
/**
|
|
7212
|
+
* The render's ink policy, set by the runtime its theme tokens came from. A
|
|
7213
|
+
* render that can't vouch for its runtime withholds, so its owned surfaces
|
|
7214
|
+
* reset the inks rather than publish ones solved for tokens that may differ.
|
|
7215
|
+
*/
|
|
7216
|
+
function transformSolvedInks(context) {
|
|
7217
|
+
return context.theme.solvedInks ?? "withhold";
|
|
7218
|
+
}
|
|
7219
|
+
/** Chrome roots publish the same ink decision as sections. */
|
|
7220
|
+
function solvedInkStyle(foreground, context) {
|
|
7221
|
+
return surfaceInkStyle(surfaceInkPublication(foreground, transformSolvedInks(context)));
|
|
7194
7222
|
}
|
|
7195
7223
|
/** The section ground's resolved foreground, for decorations drawn on that ground (maps). */
|
|
7196
7224
|
function resolveSectionSurfaceForeground(value, context, options) {
|
|
@@ -7221,7 +7249,8 @@ function resolveRuntimeSectionSurface(value, context, options) {
|
|
|
7221
7249
|
palette: context.theme.palette,
|
|
7222
7250
|
buttonSystem: context.theme.buttons,
|
|
7223
7251
|
linkHoverToken: context.proseHoverCandidate,
|
|
7224
|
-
compositeBase: options?.fallbackToken
|
|
7252
|
+
compositeBase: options?.fallbackToken,
|
|
7253
|
+
solvedInks: transformSolvedInks(context)
|
|
7225
7254
|
});
|
|
7226
7255
|
}
|
|
7227
7256
|
function arrangementSurfaceInk(foreground, context) {
|
|
@@ -7230,7 +7259,7 @@ function arrangementSurfaceInk(foreground, context) {
|
|
|
7230
7259
|
}
|
|
7231
7260
|
/** Decoration roles already resolved by the surface owner, shared with footer arrangements. */
|
|
7232
7261
|
function surfaceInkStyles(foreground, palette) {
|
|
7233
|
-
if (foreground.kind
|
|
7262
|
+
if (foreground.kind !== "known") return {};
|
|
7234
7263
|
const decorations = surfaceDecorationColors(foreground, palette);
|
|
7235
7264
|
return {
|
|
7236
7265
|
"--rb-surface-muted-color": foreground.roles.muted ?? foreground.roles.text,
|
|
@@ -10699,6 +10728,7 @@ function createBlockManifest(config) {
|
|
|
10699
10728
|
icon: config.icon ?? "Box",
|
|
10700
10729
|
layout,
|
|
10701
10730
|
variants,
|
|
10731
|
+
arrangementOwnedFieldIds: config.arrangementOwnedFieldIds,
|
|
10702
10732
|
variantMeaning: config.variantMeaning,
|
|
10703
10733
|
defaultVariant: config.defaultVariant,
|
|
10704
10734
|
variantOptions: config.variantOptions,
|
|
@@ -10772,7 +10802,12 @@ const lookSticker = text({
|
|
|
10772
10802
|
as: "p",
|
|
10773
10803
|
...lookSlot("sticker")
|
|
10774
10804
|
}, when("content._effectiveKnobs.stickerLine.value"), bind("content.stickerLine"));
|
|
10775
|
-
const
|
|
10805
|
+
const heroActionsNote = richText({ className: "hero-actions-note" }, when("content.actionsNote"), bind("content.actionsNote"));
|
|
10806
|
+
const heroContentNodes = [
|
|
10807
|
+
lookCaption,
|
|
10808
|
+
...heroCopyAndCta.layout,
|
|
10809
|
+
heroActionsNote
|
|
10810
|
+
];
|
|
10776
10811
|
function heroContentCard(children, gap, copyAtCard) {
|
|
10777
10812
|
return styledContainer({
|
|
10778
10813
|
bindFrom: "_contentCardStyles",
|
|
@@ -10901,7 +10936,8 @@ const headlineRowLayout = heroLookLayout([
|
|
|
10901
10936
|
el("div", lookSlot("copy"), [
|
|
10902
10937
|
lookCaption,
|
|
10903
10938
|
...heroCopyFragment.layout.slice(2),
|
|
10904
|
-
...heroCtaRowFragment.layout
|
|
10939
|
+
...heroCtaRowFragment.layout,
|
|
10940
|
+
heroActionsNote
|
|
10905
10941
|
]),
|
|
10906
10942
|
lookPhoto
|
|
10907
10943
|
]);
|
|
@@ -10988,6 +11024,17 @@ const heroBlockDefinition = { manifest: createBlockManifest({
|
|
|
10988
11024
|
hidden: true
|
|
10989
11025
|
}
|
|
10990
11026
|
},
|
|
11027
|
+
{
|
|
11028
|
+
id: "actionsNote",
|
|
11029
|
+
type: "richText",
|
|
11030
|
+
label: "Line in place of the buttons",
|
|
11031
|
+
required: false,
|
|
11032
|
+
ui: {
|
|
11033
|
+
intent: "display",
|
|
11034
|
+
hidden: true,
|
|
11035
|
+
richTextVariant: "limited"
|
|
11036
|
+
}
|
|
11037
|
+
},
|
|
10991
11038
|
createImageShapeField({
|
|
10992
11039
|
id: "imageShape",
|
|
10993
11040
|
label: "Image shape",
|
|
@@ -13691,8 +13738,11 @@ function resolveHeaderVisualStyles(header) {
|
|
|
13691
13738
|
return resolveBackgroundVisualStyles(colorToken);
|
|
13692
13739
|
}
|
|
13693
13740
|
function resolvedForegroundStyle(foreground) {
|
|
13694
|
-
|
|
13695
|
-
|
|
13741
|
+
switch (foreground.kind) {
|
|
13742
|
+
case "inherits":
|
|
13743
|
+
case "unmeasured-paint": return;
|
|
13744
|
+
case "known": return surfaceForegroundStyle(surfaceForegroundInputFromResolved(foreground, rgbColorValue));
|
|
13745
|
+
}
|
|
13696
13746
|
}
|
|
13697
13747
|
function footerBottomBarBorderWidthStyle(width) {
|
|
13698
13748
|
if (!width) return void 0;
|
|
@@ -13762,7 +13812,10 @@ const headerRootStyleTransform = {
|
|
|
13762
13812
|
run: (value, _options, context) => {
|
|
13763
13813
|
const header = asPartialObject(value);
|
|
13764
13814
|
const visuals = resolveHeaderVisualStyles(header);
|
|
13765
|
-
|
|
13815
|
+
const foreground = resolveHeaderRootForeground(header, context.theme.palette, visuals.isTransparent);
|
|
13816
|
+
const foregroundStyle = resolvedForegroundStyle(foreground) ?? (visuals.isTransparent ? surfaceForegroundStyle(transparentHeaderForegroundInput(header, context.theme.palette)) : { color: rgbColorValue(headerLeafTextColor(header)) });
|
|
13817
|
+
const borderColorToken = header?.border?.colorToken ?? "border";
|
|
13818
|
+
return mergeStyles(foregroundStyle, solvedInkStyle(foreground, context), borderColorStyle(borderColorToken));
|
|
13766
13819
|
}
|
|
13767
13820
|
};
|
|
13768
13821
|
const headerSectionBackgroundTransform = {
|
|
@@ -13788,8 +13841,9 @@ const footerRootStyleTransform = {
|
|
|
13788
13841
|
styleParts.push(backgroundColorStyle(token));
|
|
13789
13842
|
}
|
|
13790
13843
|
}
|
|
13791
|
-
|
|
13792
|
-
|
|
13844
|
+
const foreground = resolveFooterRootForeground(footer, context.theme.palette, context.proseHoverCandidate);
|
|
13845
|
+
styleParts.push(resolvedForegroundStyle(foreground), solvedInkStyle(foreground, context));
|
|
13846
|
+
if (footer?.variant === "centred") styleParts.push(surfaceInkStyles(foreground, context.theme.palette));
|
|
13793
13847
|
styleParts.push(borderColorStyle("border"));
|
|
13794
13848
|
return mergeStyles(...styleParts);
|
|
13795
13849
|
}
|
|
@@ -13851,18 +13905,27 @@ const footerBottomBarStyleTransform = {
|
|
|
13851
13905
|
run: (value, _options, context) => {
|
|
13852
13906
|
const footer = asPartialObject(value);
|
|
13853
13907
|
const bottomBar = footer?.bottomBar;
|
|
13854
|
-
return mergeStyles(bottomBar?.background?.type === "color" ? backgroundColorStyle(bottomBar.background.color ?? "surface") : void 0, footerBottomBarBorderColorStyle(footer), footerBottomBarBorderWidthStyle(bottomBar?.borderTop?.width), footerBottomBarForegroundStyle(footer, context.theme.palette));
|
|
13908
|
+
return mergeStyles(bottomBar?.background?.type === "color" ? backgroundColorStyle(bottomBar.background.color ?? "surface") : void 0, footerBottomBarBorderColorStyle(footer), footerBottomBarBorderWidthStyle(bottomBar?.borderTop?.width), footerBottomBarForegroundStyle(footer, context.theme.palette), footerBottomBarInkStyle(footer, context));
|
|
13855
13909
|
}
|
|
13856
13910
|
};
|
|
13857
13911
|
function footerBottomBarForegroundStyle(footer, palette) {
|
|
13858
13912
|
if (!footer?.bottomBar) return void 0;
|
|
13913
|
+
const foreground = footerBottomBarSurfaceForeground(footer, palette);
|
|
13914
|
+
return foreground === null ? backgroundlessBottomBarForegroundStyle(footer) : resolvedForegroundStyle(foreground);
|
|
13915
|
+
}
|
|
13916
|
+
/** A bar without its own colour paints nothing, so the footer's inks carry on. */
|
|
13917
|
+
function footerBottomBarInkStyle(footer, context) {
|
|
13918
|
+
const foreground = footer ? footerBottomBarSurfaceForeground(footer, context.theme.palette) : null;
|
|
13919
|
+
return foreground === null ? void 0 : solvedInkStyle(foreground, context);
|
|
13920
|
+
}
|
|
13921
|
+
function footerBottomBarSurfaceForeground(footer, palette) {
|
|
13859
13922
|
const bar = footer.bottomBar;
|
|
13860
|
-
if (bar
|
|
13861
|
-
return
|
|
13923
|
+
if (bar?.background?.type !== "color") return null;
|
|
13924
|
+
return resolveSurfaceForeground(bar.background, palette, {
|
|
13862
13925
|
text: bar.textColor,
|
|
13863
13926
|
link: footer.bottomTextLinkStyle?.colorToken ?? bar.textColor,
|
|
13864
13927
|
linkHover: footer.bottomTextLinkStyle?.hoverColorToken
|
|
13865
|
-
}, { compositeBase: measuredFooterBackdrop(footer, palette) })
|
|
13928
|
+
}, { compositeBase: measuredFooterBackdrop(footer, palette) });
|
|
13866
13929
|
}
|
|
13867
13930
|
function backgroundlessBottomBarForegroundStyle(footer) {
|
|
13868
13931
|
if (footer.background?.contentOwner === "site-chrome-editor") return;
|
|
@@ -14030,6 +14093,98 @@ function readRuntimeNow(value) {
|
|
|
14030
14093
|
return parsed.value;
|
|
14031
14094
|
}
|
|
14032
14095
|
//#endregion
|
|
14096
|
+
//#region ../blocks/src/system/blocks/shared/teamMembers.ts
|
|
14097
|
+
const teamMemberSpecialtiesInputSchema = z.union([z.string(), z.array(z.string())]).nullish();
|
|
14098
|
+
function parseTeamMemberSpecialties(value) {
|
|
14099
|
+
const parsed = teamMemberSpecialtiesInputSchema.safeParse(value);
|
|
14100
|
+
if (!parsed.success) return [];
|
|
14101
|
+
const parts = typeof parsed.data === "string" ? parsed.data.split(/\r?\n|,/) : parsed.data ?? [];
|
|
14102
|
+
return [...new Set(parts.map((part) => part.trim()).filter(Boolean))];
|
|
14103
|
+
}
|
|
14104
|
+
const biographyTextSchema = z.string().transform((text) => text.split(/\r?\n\s*\r?\n/).map((paragraph) => paragraph.trim()).filter(Boolean));
|
|
14105
|
+
const biographySourceSchema = z.union([RichTextDocSchema, biographyTextSchema]).nullish().catch(null);
|
|
14106
|
+
const teamMemberBiographySchema = z.object({
|
|
14107
|
+
profileBio: biographySourceSchema,
|
|
14108
|
+
bio: biographySourceSchema,
|
|
14109
|
+
summary: biographySourceSchema
|
|
14110
|
+
});
|
|
14111
|
+
/**
|
|
14112
|
+
* The bio a section about one person shows, or null when they have none: the
|
|
14113
|
+
* bio from their profile when it says anything, else their short bio. A page
|
|
14114
|
+
* deciding whether someone has a bio and the block showing it both read this,
|
|
14115
|
+
* so a section is never promised words that aren't there.
|
|
14116
|
+
*/
|
|
14117
|
+
function teamMemberBiography(member) {
|
|
14118
|
+
return firstBiography(member, [
|
|
14119
|
+
"profileBio",
|
|
14120
|
+
"bio",
|
|
14121
|
+
"summary"
|
|
14122
|
+
]);
|
|
14123
|
+
}
|
|
14124
|
+
/**
|
|
14125
|
+
* The bio a compact card shows when a page asks for whichever bio the person
|
|
14126
|
+
* has: their short bio first, then their summary, and their profile bio only
|
|
14127
|
+
* when neither says anything.
|
|
14128
|
+
*/
|
|
14129
|
+
function teamMemberCardBiography(member) {
|
|
14130
|
+
return firstBiography(member, [
|
|
14131
|
+
"bio",
|
|
14132
|
+
"summary",
|
|
14133
|
+
"profileBio"
|
|
14134
|
+
]);
|
|
14135
|
+
}
|
|
14136
|
+
/**
|
|
14137
|
+
* What an older grid or stack card adds under its short bio slot: the card
|
|
14138
|
+
* bio, unless the short bio is already a rich-text document that slot shows.
|
|
14139
|
+
* That slot only renders documents, so a staff member's plain-text short bio
|
|
14140
|
+
* comes through here too, and the two never show together.
|
|
14141
|
+
*/
|
|
14142
|
+
function teamMemberCardBiographyFallback(member) {
|
|
14143
|
+
if (firstBiography(member, ["bio"])?.kind === "document") return null;
|
|
14144
|
+
const biography = teamMemberCardBiography(member);
|
|
14145
|
+
return biography ? teamMemberBiographyDocument(biography) : null;
|
|
14146
|
+
}
|
|
14147
|
+
/** A bio as one rich-text document, each plain paragraph its own paragraph. */
|
|
14148
|
+
function teamMemberBiographyDocument(biography) {
|
|
14149
|
+
if (biography.kind === "document") return biography.document;
|
|
14150
|
+
return {
|
|
14151
|
+
type: "doc",
|
|
14152
|
+
content: biography.paragraphs.map((text) => ({
|
|
14153
|
+
type: "paragraph",
|
|
14154
|
+
content: [{
|
|
14155
|
+
type: "text",
|
|
14156
|
+
text
|
|
14157
|
+
}]
|
|
14158
|
+
}))
|
|
14159
|
+
};
|
|
14160
|
+
}
|
|
14161
|
+
function firstBiography(member, order) {
|
|
14162
|
+
const parsed = teamMemberBiographySchema.safeParse(member);
|
|
14163
|
+
if (!parsed.success) return null;
|
|
14164
|
+
return order.map((key) => toBiography(parsed.data[key])).find((biography) => biography !== null) ?? null;
|
|
14165
|
+
}
|
|
14166
|
+
function toBiography(source) {
|
|
14167
|
+
if (source === null || source === void 0) return null;
|
|
14168
|
+
if (Array.isArray(source)) return source.length > 0 ? {
|
|
14169
|
+
kind: "text",
|
|
14170
|
+
paragraphs: source
|
|
14171
|
+
} : null;
|
|
14172
|
+
const document = source;
|
|
14173
|
+
return hasText(document) ? {
|
|
14174
|
+
kind: "document",
|
|
14175
|
+
document
|
|
14176
|
+
} : null;
|
|
14177
|
+
}
|
|
14178
|
+
const textNodeSchema = z.object({
|
|
14179
|
+
text: z.string().optional(),
|
|
14180
|
+
content: z.array(z.unknown()).optional()
|
|
14181
|
+
});
|
|
14182
|
+
function hasText(node) {
|
|
14183
|
+
const parsed = textNodeSchema.safeParse(node);
|
|
14184
|
+
if (!parsed.success) return false;
|
|
14185
|
+
return (parsed.data.text?.trim().length ?? 0) > 0 || (parsed.data.content ?? []).some(hasText);
|
|
14186
|
+
}
|
|
14187
|
+
//#endregion
|
|
14033
14188
|
//#region ../blocks/src/system/transforms/registry/content.ts
|
|
14034
14189
|
const supportedRichTextTokenSchema = z.enum(["year", "site_name"]);
|
|
14035
14190
|
const interpolateRichTextTokensOptionsSchema = z.object({ tokens: z.array(supportedRichTextTokenSchema).default(["year", "site_name"]) });
|
|
@@ -14106,6 +14261,11 @@ const contentTransforms = [{
|
|
|
14106
14261
|
summary: "Interpolate allowed tokens inside rich-text text nodes",
|
|
14107
14262
|
schema: interpolateRichTextTokensOptionsSchema,
|
|
14108
14263
|
run: (value, options, context) => interpolateRichTextTokens(value, options, context)
|
|
14264
|
+
}, {
|
|
14265
|
+
id: "teamMember.cardBiographyFallback",
|
|
14266
|
+
kind: "formatter",
|
|
14267
|
+
summary: "A team member's card bio when they have no short bio",
|
|
14268
|
+
run: (value) => teamMemberCardBiographyFallback(value)
|
|
14109
14269
|
}];
|
|
14110
14270
|
//#endregion
|
|
14111
14271
|
//#region ../blocks/src/system/transforms/typed.ts
|
|
@@ -14952,6 +15112,7 @@ const dataLoaders = { ...entriesLoader ? { entries: {
|
|
|
14952
15112
|
} } : {} };
|
|
14953
15113
|
const testimonialsBlockDefinition = {
|
|
14954
15114
|
manifest: createBlockManifest({
|
|
15115
|
+
arrangementOwnedFieldIds: ["maxEntries", "avatarLayout"],
|
|
14955
15116
|
variantMeaning: {
|
|
14956
15117
|
kind: "arrangement",
|
|
14957
15118
|
lookOnlyKeys: [
|
|
@@ -17234,6 +17395,14 @@ const eventVenueSchema = z.object({
|
|
|
17234
17395
|
}).nullable()
|
|
17235
17396
|
});
|
|
17236
17397
|
/**
|
|
17398
|
+
* The map for an event details page: one drawing, for the venue of the event the page is about.
|
|
17399
|
+
* It travels beside the events rather than on any of them, so a list of events has no place for one.
|
|
17400
|
+
*/
|
|
17401
|
+
const eventVenueDrawingSchema = z.object({
|
|
17402
|
+
venueId: z.string(),
|
|
17403
|
+
drawing: z.lazy(() => mapDrawingSchema)
|
|
17404
|
+
});
|
|
17405
|
+
/**
|
|
17237
17406
|
* Zod schema for event category data
|
|
17238
17407
|
*/
|
|
17239
17408
|
const eventCategorySchema = z.object({
|
|
@@ -19606,14 +19775,6 @@ function resolveAutoCtaPath(source, routes) {
|
|
|
19606
19775
|
}
|
|
19607
19776
|
return routeByNormalizedPath.get("/offerings") ?? null;
|
|
19608
19777
|
}
|
|
19609
|
-
function resolveOfferingsPreviewRunPath(run, routes) {
|
|
19610
|
-
const routeIds = [run.eventSeriesId, run.eventOfferingId];
|
|
19611
|
-
for (const entityId of routeIds) {
|
|
19612
|
-
const path = normalizeRoutePath((routes ?? []).find((candidate) => candidate.entityId === entityId)?.path);
|
|
19613
|
-
if (path) return path;
|
|
19614
|
-
}
|
|
19615
|
-
return null;
|
|
19616
|
-
}
|
|
19617
19778
|
function preferredPathsForSource(source) {
|
|
19618
19779
|
switch (source.kind) {
|
|
19619
19780
|
case "eventPreset": switch (source.preset) {
|
|
@@ -19862,6 +20023,11 @@ function resolveEventRegistrationScopedEvents(events, context) {
|
|
|
19862
20023
|
}
|
|
19863
20024
|
//#endregion
|
|
19864
20025
|
//#region ../blocks/src/system/constants/events.ts
|
|
20026
|
+
/**
|
|
20027
|
+
* Event-related constants
|
|
20028
|
+
*
|
|
20029
|
+
* Shared constants for event content types and booking system integration.
|
|
20030
|
+
*/
|
|
19865
20031
|
const eventCalendarDisplayModeValues = [
|
|
19866
20032
|
"combined",
|
|
19867
20033
|
"calendar",
|
|
@@ -19941,6 +20107,8 @@ function isEventCalendarListLayout(value) {
|
|
|
19941
20107
|
/** The calendar manifest owns its secondary arrangement axis. */
|
|
19942
20108
|
const eventCalendarVariantMeaning = {
|
|
19943
20109
|
kind: "mode",
|
|
20110
|
+
modes: arrangementModes,
|
|
20111
|
+
defaultMode: "list",
|
|
19944
20112
|
arrangementField: "listLayout",
|
|
19945
20113
|
keys: eventCalendarListLayoutValues,
|
|
19946
20114
|
lookOnlyKeys: [
|
|
@@ -20737,6 +20905,10 @@ const eventDetailsBlockDefinition = {
|
|
|
20737
20905
|
fallback: null
|
|
20738
20906
|
} },
|
|
20739
20907
|
events: { $bind: { from: "data.eventDetailsData.events" } },
|
|
20908
|
+
venueDrawing: { $bind: {
|
|
20909
|
+
from: "data.eventDetailsData.venueDrawing",
|
|
20910
|
+
fallback: null
|
|
20911
|
+
} },
|
|
20740
20912
|
showVenue: { $bind: { from: "content.showVenue" } },
|
|
20741
20913
|
showTitle: { $bind: { from: "content.showTitle" } },
|
|
20742
20914
|
showDescription: { $bind: { from: "content.showDescription" } },
|
|
@@ -20774,6 +20946,7 @@ const eventDetailsBlockDefinition = {
|
|
|
20774
20946
|
dataSchemas: {
|
|
20775
20947
|
eventDetailsData: z.object({
|
|
20776
20948
|
events: publicEventsArraySchema,
|
|
20949
|
+
venueDrawing: eventVenueDrawingSchema.optional().catch(void 0),
|
|
20777
20950
|
sitePasses: publicPassProductCollectionSchema,
|
|
20778
20951
|
siteMemberships: publicMembershipProductCollectionSchema,
|
|
20779
20952
|
autoApplyDiscount: eventAutoApplyDiscountPreviewSchema.nullable().optional().default(null)
|
|
@@ -22515,17 +22688,7 @@ function resolveCardListSchedule(item, mode) {
|
|
|
22515
22688
|
}
|
|
22516
22689
|
/** Each part owns optional-content collapse once, for calendar and catalogue items. */
|
|
22517
22690
|
const partRenderers = {
|
|
22518
|
-
title:
|
|
22519
|
-
...listLookSlot(presentation, "item-title"),
|
|
22520
|
-
children: item.titleLink || item.href ? /* @__PURE__ */ jsx("a", {
|
|
22521
|
-
...item.titleLink,
|
|
22522
|
-
href: item.titleLink?.href ?? item.href ?? void 0,
|
|
22523
|
-
children: /* @__PURE__ */ jsx(LinkedLabel, {
|
|
22524
|
-
label: item.title,
|
|
22525
|
-
newTabHint: item.newTabHint
|
|
22526
|
-
})
|
|
22527
|
-
}) : item.title
|
|
22528
|
-
}),
|
|
22691
|
+
title: CardListTitle,
|
|
22529
22692
|
text: ({ item, presentation }) => item.textDocument ? /* @__PURE__ */ jsx(RichText, {
|
|
22530
22693
|
doc: item.textDocument,
|
|
22531
22694
|
...listLookSlot(presentation, "item-text"),
|
|
@@ -22534,14 +22697,7 @@ const partRenderers = {
|
|
|
22534
22697
|
...listLookSlot(presentation, "item-text"),
|
|
22535
22698
|
children: item.text
|
|
22536
22699
|
}) : null,
|
|
22537
|
-
media:
|
|
22538
|
-
...listLookSlot(presentation, "item-media"),
|
|
22539
|
-
children: /* @__PURE__ */ jsx(MediaNodeServer, {
|
|
22540
|
-
value: item.media,
|
|
22541
|
-
size: ImagePresets.card,
|
|
22542
|
-
...listLookSlot(presentation, "photo")
|
|
22543
|
-
})
|
|
22544
|
-
}) : null,
|
|
22700
|
+
media: CardListMedia,
|
|
22545
22701
|
facts: ({ item, presentation }) => item.facts?.length ? /* @__PURE__ */ jsx("dl", {
|
|
22546
22702
|
...listLookSlot(presentation, "facts"),
|
|
22547
22703
|
children: item.facts.map(({ label, value }) => /* @__PURE__ */ jsxs("div", {
|
|
@@ -22580,14 +22736,23 @@ const partRenderers = {
|
|
|
22580
22736
|
...listLookSlot(presentation, "dates"),
|
|
22581
22737
|
children: item.dates.map((date, index) => /* @__PURE__ */ jsxs("li", {
|
|
22582
22738
|
...listLookSlot(presentation, "date"),
|
|
22583
|
-
children: [
|
|
22584
|
-
|
|
22585
|
-
|
|
22586
|
-
|
|
22587
|
-
|
|
22588
|
-
|
|
22589
|
-
|
|
22590
|
-
|
|
22739
|
+
children: [
|
|
22740
|
+
/* @__PURE__ */ jsx("time", {
|
|
22741
|
+
dateTime: date.startsAt,
|
|
22742
|
+
children: date.label
|
|
22743
|
+
}),
|
|
22744
|
+
date.places ? /* @__PURE__ */ jsx("span", {
|
|
22745
|
+
...listLookSlot(presentation, "date-places"),
|
|
22746
|
+
"data-availability": date.places.status,
|
|
22747
|
+
children: date.places.label
|
|
22748
|
+
}) : null,
|
|
22749
|
+
date.booking ? /* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
22750
|
+
...date.booking,
|
|
22751
|
+
variant: presentation.buttonVariant ?? "primary",
|
|
22752
|
+
size: "sm",
|
|
22753
|
+
extraClassName: "rb-card-list-date-booking"
|
|
22754
|
+
}) : null
|
|
22755
|
+
]
|
|
22591
22756
|
}, `${date.startsAt}-${index}`))
|
|
22592
22757
|
}) : null,
|
|
22593
22758
|
availability: ({ item, presentation }) => item.availability ? /* @__PURE__ */ jsx("p", {
|
|
@@ -22620,6 +22785,41 @@ const partRenderers = {
|
|
|
22620
22785
|
children: props.actionNode
|
|
22621
22786
|
})
|
|
22622
22787
|
};
|
|
22788
|
+
/** Title and photo share the same destination and external-link behavior. */
|
|
22789
|
+
function cardListItemLink(item) {
|
|
22790
|
+
return item.titleLink ?? (item.href ? { href: item.href } : null);
|
|
22791
|
+
}
|
|
22792
|
+
function CardListTitle({ item, presentation, Title = "h3" }) {
|
|
22793
|
+
const link = cardListItemLink(item);
|
|
22794
|
+
return /* @__PURE__ */ jsx(Title, {
|
|
22795
|
+
...listLookSlot(presentation, "item-title"),
|
|
22796
|
+
children: link ? /* @__PURE__ */ jsx("a", {
|
|
22797
|
+
...link,
|
|
22798
|
+
children: /* @__PURE__ */ jsx(LinkedLabel, {
|
|
22799
|
+
label: item.title,
|
|
22800
|
+
newTabHint: item.newTabHint
|
|
22801
|
+
})
|
|
22802
|
+
}) : item.title
|
|
22803
|
+
});
|
|
22804
|
+
}
|
|
22805
|
+
function CardListMedia({ item, presentation }) {
|
|
22806
|
+
if (!item.media) return null;
|
|
22807
|
+
const link = cardListItemLink(item);
|
|
22808
|
+
const photo = /* @__PURE__ */ jsx(MediaNodeServer, {
|
|
22809
|
+
value: item.media,
|
|
22810
|
+
size: ImagePresets.card,
|
|
22811
|
+
...listLookSlot(presentation, "photo")
|
|
22812
|
+
});
|
|
22813
|
+
return /* @__PURE__ */ jsx("div", {
|
|
22814
|
+
...listLookSlot(presentation, "item-media"),
|
|
22815
|
+
children: link ? /* @__PURE__ */ jsx("a", {
|
|
22816
|
+
...link,
|
|
22817
|
+
className: "rb-block rb-h-full",
|
|
22818
|
+
"aria-label": `${item.title}${item.newTabHint ? " (opens in a new tab)" : ""}`,
|
|
22819
|
+
children: photo
|
|
22820
|
+
}) : photo
|
|
22821
|
+
});
|
|
22822
|
+
}
|
|
22623
22823
|
function CardListContentPart({ part, ...props }) {
|
|
22624
22824
|
return partRenderers[part](props);
|
|
22625
22825
|
}
|
|
@@ -23003,7 +23203,7 @@ function buildEventCollectionListDisplay(source) {
|
|
|
23003
23203
|
events: Array.isArray(source.events) ? [...source.events] : [],
|
|
23004
23204
|
listLayout: source.listLayout ?? "stack",
|
|
23005
23205
|
listColumns: source.listColumns ?? "3",
|
|
23006
|
-
eventsPerPage: source.lookSlots !== void 0 && source.listLayout === "compact" ? 3 :
|
|
23206
|
+
eventsPerPage: resolveEventCalendarListPageSize({ eventsPerPage: source.eventsPerPage ?? (source.lookSlots !== void 0 && source.listLayout === "compact" ? "3" : void 0) }),
|
|
23007
23207
|
paginationAction,
|
|
23008
23208
|
sectionAction: paginationAction.kind === "seeAllLink" ? {
|
|
23009
23209
|
href: paginationAction.href,
|
|
@@ -25279,6 +25479,7 @@ const generatedEventCalendarManifest = createBlockManifestWithContentShape({
|
|
|
25279
25479
|
icon: "CalendarDays",
|
|
25280
25480
|
layout: eventCalendarLayout,
|
|
25281
25481
|
variants: eventCalendarVariants,
|
|
25482
|
+
arrangementOwnedFieldIds: ["defaultCalendarView"],
|
|
25282
25483
|
variantMeaning: eventCalendarVariantMeaning,
|
|
25283
25484
|
defaultVariant: "combined",
|
|
25284
25485
|
variantOptions: {
|
|
@@ -25688,6 +25889,16 @@ const offeringsPreviewFields = [
|
|
|
25688
25889
|
schema: { fields: groupOverrideFields }
|
|
25689
25890
|
},
|
|
25690
25891
|
createButtonVariantField(),
|
|
25892
|
+
{
|
|
25893
|
+
id: "oneOffering",
|
|
25894
|
+
type: "boolean",
|
|
25895
|
+
label: "Show one offering with its dates",
|
|
25896
|
+
required: false,
|
|
25897
|
+
ui: {
|
|
25898
|
+
intent: "display",
|
|
25899
|
+
hidden: true
|
|
25900
|
+
}
|
|
25901
|
+
},
|
|
25691
25902
|
{
|
|
25692
25903
|
id: "buttonText",
|
|
25693
25904
|
type: "text",
|
|
@@ -25753,6 +25964,18 @@ function buildOfferingsCatalogueListing(input) {
|
|
|
25753
25964
|
now: input.now
|
|
25754
25965
|
});
|
|
25755
25966
|
}
|
|
25967
|
+
function offeringsCatalogueShape(listing, cards) {
|
|
25968
|
+
return cards.oneOfferingRequested && cards.listDates && countListedOfferings(listing) === 1 ? "single" : "several";
|
|
25969
|
+
}
|
|
25970
|
+
function countListedOfferings(listing) {
|
|
25971
|
+
switch (listing.kind) {
|
|
25972
|
+
case "no-groups":
|
|
25973
|
+
case "nothing-to-show": return 0;
|
|
25974
|
+
case "by-date": return listing.items.length;
|
|
25975
|
+
case "by-type": return listing.groups.reduce((count, load) => count + (load.kind === "items" ? load.items.length : 0), 0);
|
|
25976
|
+
default: return assertNever$1(listing);
|
|
25977
|
+
}
|
|
25978
|
+
}
|
|
25756
25979
|
function matchesGroup(group, event) {
|
|
25757
25980
|
const source = group.source;
|
|
25758
25981
|
switch (source.kind) {
|
|
@@ -25827,6 +26050,10 @@ const offeringsPreviewLayout = [styledSection({
|
|
|
25827
26050
|
carouselRegion: { $bind: { from: "content.heading" } },
|
|
25828
26051
|
renderInput: { $bind: { from: "content._offeringsPreviewInput" } },
|
|
25829
26052
|
displayMode: { $bind: displayModeBinding },
|
|
26053
|
+
oneOffering: { $bind: {
|
|
26054
|
+
from: "content.oneOffering",
|
|
26055
|
+
fallback: false
|
|
26056
|
+
} },
|
|
25830
26057
|
pathname: { $bind: { from: "$root.pathname" } },
|
|
25831
26058
|
catalogueEvents: { $bind: { from: "data.catalogueEvents" } },
|
|
25832
26059
|
quickDateEvents: { $bind: { from: "data.quickDateEvents" } },
|
|
@@ -25868,6 +26095,7 @@ const offeringsPreviewLayout = [styledSection({
|
|
|
25868
26095
|
spacing: "comfortable"
|
|
25869
26096
|
})];
|
|
25870
26097
|
const offeringsPreviewManifest = createBlockManifest({
|
|
26098
|
+
arrangementOwnedFieldIds: ["groupOverrides.presentation"],
|
|
25871
26099
|
variantMeaning: {
|
|
25872
26100
|
kind: "arrangement",
|
|
25873
26101
|
lookOnlyKeys: [
|
|
@@ -25923,6 +26151,7 @@ const offeringsPreviewBlockDefinition = {
|
|
|
25923
26151
|
contentNormalizer: {
|
|
25924
26152
|
fieldIds: [
|
|
25925
26153
|
"displayMode",
|
|
26154
|
+
"oneOffering",
|
|
25926
26155
|
"heading",
|
|
25927
26156
|
"description",
|
|
25928
26157
|
"itemLimit",
|
|
@@ -26024,6 +26253,7 @@ function normalizeOfferingsPreviewBlockContent(value) {
|
|
|
26024
26253
|
if (!record) return { displayMode: DEFAULT_OFFERINGS_PREVIEW_DISPLAY_MODE };
|
|
26025
26254
|
const normalized = {
|
|
26026
26255
|
displayMode: normalizeOfferingsPreviewDisplayMode(record.displayMode),
|
|
26256
|
+
...oneOfferingContent(record.oneOffering),
|
|
26027
26257
|
...normalizeCardListContent(record)
|
|
26028
26258
|
};
|
|
26029
26259
|
if (typeof record.heading === "string" || record.heading === null) normalized.heading = record.heading;
|
|
@@ -26042,6 +26272,9 @@ function normalizeOfferingsPreviewBlockContent(value) {
|
|
|
26042
26272
|
if (sectionStyles !== void 0) normalized._sectionStyles = sectionStyles;
|
|
26043
26273
|
return normalized;
|
|
26044
26274
|
}
|
|
26275
|
+
function oneOfferingContent(value) {
|
|
26276
|
+
return typeof value === "boolean" || value === null ? { oneOffering: value } : {};
|
|
26277
|
+
}
|
|
26045
26278
|
function normalizeOfferingsPreviewDisplayMode(value) {
|
|
26046
26279
|
return value === "catalogue" ? "catalogue" : DEFAULT_OFFERINGS_PREVIEW_DISPLAY_MODE;
|
|
26047
26280
|
}
|
|
@@ -28280,7 +28513,7 @@ const shopBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
28280
28513
|
buildRender: (source) => {
|
|
28281
28514
|
const passPurchaseMode = source.passPurchaseMode ?? "add_to_cart";
|
|
28282
28515
|
const subscribeButtonText = source.subscribeButtonText ?? "Subscribe";
|
|
28283
|
-
const products =
|
|
28516
|
+
const products = decideShopDisplayedCatalogue(source);
|
|
28284
28517
|
const dateContext = source.dateContext ?? resolveDateRuntimeContext(void 0);
|
|
28285
28518
|
return {
|
|
28286
28519
|
display: buildPassesMembershipsDisplay({
|
|
@@ -28503,16 +28736,17 @@ function shopCardListPresentation(source) {
|
|
|
28503
28736
|
[key]: source[key]
|
|
28504
28737
|
}), {});
|
|
28505
28738
|
}
|
|
28506
|
-
function
|
|
28739
|
+
function decideShopDisplayedCatalogue(source) {
|
|
28740
|
+
const passes = source.showPasses === false ? [] : source.passes ?? [];
|
|
28741
|
+
const memberships = source.showMemberships === false ? [] : source.memberships ?? [];
|
|
28507
28742
|
return {
|
|
28508
|
-
passes
|
|
28509
|
-
memberships
|
|
28743
|
+
passes,
|
|
28744
|
+
memberships,
|
|
28745
|
+
featured: [...passes, ...memberships].some(({ id }) => id === source.featured) ? source.featured ?? null : null
|
|
28510
28746
|
};
|
|
28511
28747
|
}
|
|
28512
28748
|
function shopFeaturedProduct(source, products) {
|
|
28513
|
-
|
|
28514
|
-
const visible = [...products.passes, ...products.memberships].some(({ id }) => id === selectedId);
|
|
28515
|
-
return source.lookSlots && source.itemRoles?.featured && selectedId && visible ? { featured: selectedId } : {};
|
|
28749
|
+
return source.lookSlots && source.itemRoles?.featured && products.featured !== null ? { featured: products.featured } : {};
|
|
28516
28750
|
}
|
|
28517
28751
|
/** Server and hydrated cards share the same decided role and featured marker. */
|
|
28518
28752
|
function shopProductPresentation(hydration, productId, index, count) {
|
|
@@ -28525,6 +28759,7 @@ function shopProductPresentation(hydration, productId, index, count) {
|
|
|
28525
28759
|
}
|
|
28526
28760
|
const shopBlockDefinition = {
|
|
28527
28761
|
manifest: createBlockManifest({
|
|
28762
|
+
arrangementOwnedFieldIds: ["layout", "columns"],
|
|
28528
28763
|
variantMeaning: {
|
|
28529
28764
|
kind: "arrangement",
|
|
28530
28765
|
lookOnlyKeys: [
|
|
@@ -30154,6 +30389,18 @@ const wrapVariant = (variantLayout) => styledSection({
|
|
|
30154
30389
|
baseClass: "",
|
|
30155
30390
|
spacing: "comfortable"
|
|
30156
30391
|
});
|
|
30392
|
+
const cardBiographyFallbackNode = richText({ className: "rb-prose rb-max-w-none" }, when("content.cardBiography", { equals: "any" }), bind(ITEM_NAME, { transforms: [{ id: "teamMember.cardBiographyFallback" }] }));
|
|
30393
|
+
const teamMemberGridLayout = withCardBiographyFallback(teamMemberFragment.layout);
|
|
30394
|
+
function withCardBiographyFallback(layout) {
|
|
30395
|
+
const roots = Array.isArray(layout) ? layout : [layout];
|
|
30396
|
+
const [card] = roots;
|
|
30397
|
+
if (!card || roots.length !== 1) throw new Error("teamMember fragment must have one root node");
|
|
30398
|
+
const children = card.children ?? [];
|
|
30399
|
+
return {
|
|
30400
|
+
...card,
|
|
30401
|
+
children: [...children, cardBiographyFallbackNode]
|
|
30402
|
+
};
|
|
30403
|
+
}
|
|
30157
30404
|
const teamMemberStackLayout = el("div", { className: "rb-team-member rb-team-member--stack rb-flex rb-flex-col rb-md-flex-row rb-items-start rb-gap-3" }, [el("div", { className: "rb-team-member-photo-col rb-w-full rb-shrink-0" }, [el("div", { className: memberPhotoClassName("rb-team-member-photo-wrap rb-w-full") }, [media({
|
|
30158
30405
|
className: "rb-team-member-photo rb-w-full rb-object-cover",
|
|
30159
30406
|
style: { aspectRatio: "1 / 1" },
|
|
@@ -30176,12 +30423,42 @@ const teamMemberStackLayout = el("div", { className: "rb-team-member rb-team-mem
|
|
|
30176
30423
|
as: "p",
|
|
30177
30424
|
className: "rb-team-member-role"
|
|
30178
30425
|
}, when("role"), bind("role")),
|
|
30179
|
-
richText({ className: "rb-prose rb-max-w-none" }, when("bio"), bind("bio"))
|
|
30426
|
+
richText({ className: "rb-prose rb-max-w-none" }, when("bio"), bind("bio")),
|
|
30427
|
+
cardBiographyFallbackNode
|
|
30180
30428
|
])]);
|
|
30429
|
+
const onePersonAboutWhen = { equals: "about" };
|
|
30430
|
+
const notOnePersonAboutWhen = {
|
|
30431
|
+
equals: "about",
|
|
30432
|
+
not: true
|
|
30433
|
+
};
|
|
30434
|
+
const aboutVariant = styledSection({
|
|
30435
|
+
children: sectionContainer([el("div", {
|
|
30436
|
+
className: "rb-team-layout",
|
|
30437
|
+
"data-one-person": "about"
|
|
30438
|
+
}, [el("div", { className: "rb-team-head" }, [headingNode], when("content.heading")), el("team-members", {
|
|
30439
|
+
onePerson: { $bind: { from: "content.onePerson" } },
|
|
30440
|
+
source: { $bind: {
|
|
30441
|
+
from: "content.source",
|
|
30442
|
+
fallback: "manual"
|
|
30443
|
+
} },
|
|
30444
|
+
members: { $bind: {
|
|
30445
|
+
from: "content.members",
|
|
30446
|
+
fallback: []
|
|
30447
|
+
} },
|
|
30448
|
+
siteMembers: { $bind: {
|
|
30449
|
+
from: "data.members",
|
|
30450
|
+
fallback: []
|
|
30451
|
+
} },
|
|
30452
|
+
sectionHeading: { $bind: { from: "content.heading" } }
|
|
30453
|
+
})])], { gap: "md" }),
|
|
30454
|
+
baseClass: "",
|
|
30455
|
+
spacing: "comfortable"
|
|
30456
|
+
});
|
|
30181
30457
|
const manualGridMembersNode = when("content.source", manualSourceWhen)(repeaterFragmentLayout({
|
|
30182
30458
|
collectionPath: "content.members",
|
|
30183
30459
|
itemName: ITEM_NAME,
|
|
30184
30460
|
fragments: { teamMember: teamMemberFragment },
|
|
30461
|
+
layoutOverrides: { teamMember: teamMemberGridLayout },
|
|
30185
30462
|
itemGap: "sm",
|
|
30186
30463
|
itemClassName: memberCardClassName
|
|
30187
30464
|
}));
|
|
@@ -30189,6 +30466,7 @@ const dynamicGridMembersNode = when("content.source", dynamicSourceWhen)(repeate
|
|
|
30189
30466
|
collectionPath: "data.members",
|
|
30190
30467
|
itemName: ITEM_NAME,
|
|
30191
30468
|
fragments: { teamMember: teamMemberFragment },
|
|
30469
|
+
layoutOverrides: { teamMember: teamMemberGridLayout },
|
|
30192
30470
|
itemGap: "sm",
|
|
30193
30471
|
itemClassName: memberCardClassName
|
|
30194
30472
|
}));
|
|
@@ -30222,14 +30500,23 @@ const stackVariant = wrapVariant({
|
|
|
30222
30500
|
}))]
|
|
30223
30501
|
});
|
|
30224
30502
|
const cardListVariant = styledSection({
|
|
30225
|
-
children: sectionContainer([el("div", {
|
|
30226
|
-
|
|
30503
|
+
children: sectionContainer([el("div", {
|
|
30504
|
+
className: "rb-team-layout",
|
|
30505
|
+
...lookSlot("layout"),
|
|
30506
|
+
"data-one-person": { $bind: { from: "content.onePerson" } }
|
|
30507
|
+
}, [
|
|
30508
|
+
el("div", {
|
|
30509
|
+
className: "rb-team-head",
|
|
30510
|
+
...lookSlot("head")
|
|
30511
|
+
}, [text({
|
|
30227
30512
|
as: "h2",
|
|
30228
30513
|
...lookSlot("heading")
|
|
30229
30514
|
}, bind("content.heading"), when("content.heading"))], when("content.heading")),
|
|
30230
30515
|
el("team-members", {
|
|
30231
30516
|
...cardListPresentationBindings,
|
|
30232
30517
|
biographySource: { $bind: { from: "content._effectiveLook.look.structure.teamBiography" } },
|
|
30518
|
+
onePerson: { $bind: { from: "content.onePerson" } },
|
|
30519
|
+
cardBiography: { $bind: { from: "content.cardBiography" } },
|
|
30233
30520
|
source: { $bind: {
|
|
30234
30521
|
from: "content.source",
|
|
30235
30522
|
fallback: "manual"
|
|
@@ -30304,6 +30591,37 @@ const teamMembersBlockDefinition = {
|
|
|
30304
30591
|
}],
|
|
30305
30592
|
ui: { intent: "behavior" }
|
|
30306
30593
|
}),
|
|
30594
|
+
parseFieldDefinition({
|
|
30595
|
+
id: "onePerson",
|
|
30596
|
+
type: "select",
|
|
30597
|
+
label: "One person",
|
|
30598
|
+
required: false,
|
|
30599
|
+
options: [{
|
|
30600
|
+
value: "about",
|
|
30601
|
+
label: "The section is about them, with their bio"
|
|
30602
|
+
}, {
|
|
30603
|
+
value: "portrait",
|
|
30604
|
+
label: "One small portrait"
|
|
30605
|
+
}],
|
|
30606
|
+
ui: {
|
|
30607
|
+
intent: "display",
|
|
30608
|
+
hidden: true
|
|
30609
|
+
}
|
|
30610
|
+
}),
|
|
30611
|
+
parseFieldDefinition({
|
|
30612
|
+
id: "cardBiography",
|
|
30613
|
+
type: "select",
|
|
30614
|
+
label: "Card bio",
|
|
30615
|
+
required: false,
|
|
30616
|
+
options: [{
|
|
30617
|
+
value: "any",
|
|
30618
|
+
label: "Whichever bio the person has"
|
|
30619
|
+
}],
|
|
30620
|
+
ui: {
|
|
30621
|
+
intent: "display",
|
|
30622
|
+
hidden: true
|
|
30623
|
+
}
|
|
30624
|
+
}),
|
|
30307
30625
|
parseFieldDefinition({
|
|
30308
30626
|
id: "layoutAlign",
|
|
30309
30627
|
type: "select",
|
|
@@ -30449,10 +30767,19 @@ const teamMembersBlockDefinition = {
|
|
|
30449
30767
|
],
|
|
30450
30768
|
layout: gridVariant,
|
|
30451
30769
|
variants: {
|
|
30452
|
-
grid: gridVariant,
|
|
30770
|
+
grid: [when("content.onePerson", notOnePersonAboutWhen)(gridVariant), when("content.onePerson", onePersonAboutWhen)(aboutVariant)],
|
|
30453
30771
|
stack: [when("content._effectiveLook", { not: true })(stackVariant), when("content._effectiveLook")(cardListVariant)],
|
|
30454
30772
|
...Object.fromEntries(arrangementOnlyKeys.map((key) => [key, cardListVariant]))
|
|
30455
30773
|
},
|
|
30774
|
+
arrangementOwnedFieldIds: [
|
|
30775
|
+
"layoutWidth",
|
|
30776
|
+
"thumbnailShape",
|
|
30777
|
+
"thumbnailPadding",
|
|
30778
|
+
"imageColSize",
|
|
30779
|
+
"stackImagePosition",
|
|
30780
|
+
"stackContentAlignment",
|
|
30781
|
+
"gap"
|
|
30782
|
+
],
|
|
30456
30783
|
variantMeaning: {
|
|
30457
30784
|
kind: "arrangement",
|
|
30458
30785
|
lookOnlyKeys: [...arrangementOnlyKeys]
|
|
@@ -31828,4 +32155,4 @@ function listBlockDescriptors() {
|
|
|
31828
32155
|
}));
|
|
31829
32156
|
}
|
|
31830
32157
|
//#endregion
|
|
31831
|
-
export {
|
|
32158
|
+
export { RichText as $, CANCELLED_SESSION_STATUS as $i, formBlockDefinition as $n, lookSkinSlotTransform as $r, formatEventHourLabel as $t, buildOfferingsCatalogueListing as A, publicEventPricingCurrency as Aa, validateManifestLookField as Ai, FEATURE_CARD_ICON_TREATMENTS as An, isBlockButtonRole as Ar, offeringsListingFor as At, buildEventCollectionListingDisplay as B, buildRepeaterGridLayout as Bi, teamMemberBiography as Bn, parseRuntimeBackgroundContent as Br, buildEventListWeek as Bt, buildShopInteractiveIslandProps as C, parseLocalScheduleTime as Ca, blockCategoryEnum as Ci, isEventFull as Cn, formEmbedFragment as Cr, resolveEventRegistrationScopedEvents as Ct, passCardListContent as D, toUtcIsoDateTimeString as Da, normalizeSelectSource as Di, blockBookingConsentSchema as Dn, ctaCopyFragment as Dr, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as Dt, membershipClassesLabel as E, toScheduledBookingDateTime as Ea, fieldSchema as Ei, publicEventsArraySchema as En, testimonialsHeadingFragment as Er, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as Et, projectRecurringSchedule as F, formatCurrencyAmount as Fa, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as Fi, composeHeaderSectionWrapperClassName as Fn, boxStyleClassNames as Fr, ThemedButton as Ft, resolveCalendarReadProfile as G, resolveRepeaterGridSpanFieldId as Gi, headerRuntimeTransforms as Gn, el as Gr, eventCalendarWeekStart as Gt, eventCollectionHydrationSchema as H, resolveRepeaterGridColumnFieldId as Hi, readRuntimeNow as Hn, resolveSurfaceForegroundStyles as Hr, formatEventPriceAmount as Ht, eventListingBlockDefinition as I, parseCurrencyCode as Ia, linkSchema as Ii, markEditableSurfaceForwarding as In, normalizeBoxStylesBorder as Ir, ThemedButtonLink as It, CardListContentPart as J, chosenString as Ji, staticHeaderChromeRuntime as Jn, BACKGROUND_POSITION_PRESET_VALUES as Jr, formatCalendarTitle as Jt, catalogueEventCardProps as K, augmentManifest as Ki, chromeLogoTransforms as Kn, when as Kr, eventDateOptions as Kt, buildEventListingInteractiveIslandProps as L, PUBLIC_DOWNLOAD_MEDIA_TYPES as Li, splitPositioningClasses as Ln, resolveCardRoleForBoxStyles as Lr, ThemedDownloadLink as Lt, eventCalendarBlockDefinition as M, publicEventPricingType as Ma, validateSdkBlockDeclaration as Mi, shouldReserveFeatureCardIconZone as Mn, bodyCopyFragment as Mr, resolveOfferingsPreviewGroups as Mt, buildEventCalendarInteractiveIslandProps as N, resolveExactOrFreePriceDisplay as Na, NodeSchema as Ni, siteFooterManifest as Nn, defineFragment as Nr, resolveOfferingsRenderInput as Nt, offeringsPreviewBlockDefinition as O, formatBookingPriceDisplay as Oa, parseFieldDefinition as Oi, bookingConsentCarrierSchema as On, heroCtaRowFragment as Or, buildOfferingsPreviewListing as Ot, buildEventCalendarListingDisplay as P, resolvePricingOptionsPriceDisplay as Pa, bindingSchema as Pi, siteHeaderManifest as Pn, boxStylesTransforms as Pr, ThemedAuthoredButton as Pt, MediaNodeServer as Q, unavailableReadinessFact as Qi, formatDate$1 as Qn, lookQuoteLimitTransform as Qr, formatEventDateParts as Qt, buildEventCollectionDisplay as R, projectRepeaterGridLayout as Ri, contentTransforms as Rn, parseBackgroundContent as Rr, getIconComponent as Rt, buildProductListInteractiveIslandProps as S, parseBookingLocalDate as Sa, PUBLIC_FILE_FIELD_KINDS as Si, getEventAvailabilityStatus as Sn, singleButtonFragment as Sr, normalizeEventRegistrationPageSurfaceSubject as St, membershipCardListContent as T, toBookingTimeZone as Ta, builtInBlockKindsSchema as Ti, groupPublicEventsByRun as Tn, testimonialsCarouselFragment as Tr, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as Tt, eventCollectionSourceSchemaShape as U, resolveRepeaterGridColumnsForBreakpoint as Ui, resolveDateRuntimeContext as Un, resolveBackgroundColorValue as Ur, formatEventPriceDisplay as Ut, eventCollectionDisplaySchemaShape as V, parseRepeaterGridInteger as Vi, teamMemberCardBiography as Vn, resolveSectionSurfaceForeground as Vr, formatEventPrice as Vt, calendarWindowQuerySchema as W, resolveRepeaterGridRowFieldId as Wi, mediaTransforms as Wn, ctaButton as Wr, buildCalendarViewport as Wt, resolveCardListSchedule as X, loadedReadinessFact as Xi, uiTransforms as Xn, lookCarouselRegionTransform as Xr, formatEventClockLabel as Xt, CardListLeadDate as Y, admitReadinessFacts as Yi, resolveHeroTitleLength as Yn, getAnchorClasses as Yr, formatDate as Yt, selectCardListPresentation as Z, pageTemplateFromEntry as Zi, formattingTransforms as Zn, lookLeadSlotTransform as Zr, formatEventCompactDateRail as Zt, productListBlockDefinition as _, inferSiteDateLocale as _a, inlineTextToPlainText as _i, browserReadAuthoritySchema as _n, headingFragment as _r, previewStageSchema as _t, normalizeLocationMapSource as a, parseMailingListProviderScope as aa, resolveBlockIconRenderValue as ai, getLocalDateKey as an, defineClientOwnedBlockRuntime as ar, resolveImageUrlWithContext as at, buildCheckoutInteractiveIslandProps as b, getBookingLocalDateKey as ba, plainTextToInlineText as bi, formatTotalCapacity as bn, faqHeadingFragment as br, eventCalendarListLayoutOptions as bt, sanitizeNewsletterSignupPublicContent as c, decideLocationSourcePermission as ca, CircleMinusIcon as ci, formatDateKey as cn, listLookControl as cr, getCurrentResolveImageUrlContext as ct, newsletterBlockSubmissionMessage as d, projectPublicLocation as da, FileArchiveIcon as di, getWeekCalendarDayTuple as dn, resolvedItemSurfaceProps as dr, getCardOrientation as dt, nextLiveRunSessionStartMs as ea, asPartialObject as ei, formatEventNextDateFact as en, buildFormInteractiveIslandProps as er, ImagePresets as et, giftingBlockDefinition as f, publicLocationSchema as fa, FileAudioIcon as fi, getWeekCalendarDays as fn, itemRole as fr, getContainerClass as ft, productDetailBlockDefinition as g, formatDateTimeRange as ga, PlusIcon as gi, formatBookingSchedulePresentation as gn, richTextFragment as gr, bookingNowSchema as gt, cartBlockDefinition as h, formatDateRange as ha, MinusIcon as hi, resolveRuntimeEventDestination as hn, clsx as hr, buildEventRegistrationInteractiveIslandProps as ht, normalizeLocationMapProps as i, parseMailingListRuntimeContext as ia, parseBlockIconValue as ii, resolveEventTimeZone as in, createZodCodec as ir, resolveImageUrl as it, offeringsCatalogueShape as j, publicEventPricingDisplay as ja, sdkBlockPresentationShape as ji, resolveFeatureCardGeneratedIconSizePx as jn, heroCopyFragment as jr, resolveOfferingsPreviewGroupCta as jt, publicRouteCandidatesSchema as k, isPublicEventPricingOptionDisplayable as ka, parseFieldDefinitions as ki, blockBookingPaymentTermsSchema as kn, ctaRowFragment as kr, normalizeOfferingsPreviewItemLimit as kt, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as l, locationValueSchema as la, CirclePlusIcon as li, getDayOfWeek as ln, listLookSlot as lr, setContextResolveImageUrlContext as lt, checkoutBlockDefinition as m, formatDate$2 as ma, FileTextIcon as mi, isToday as mn, Grid as mr, eventRegistrationBlockDefinition as mt, listBlockDescriptors as n, resolveWholeSeriesBookingPhase as na, runTransforms as ni, formatTime as nn, createInteractiveIslandCodec as nr, computeMediaTransformStyle as nt, resolveLocationMapLocation as o, parseMailingListPlacementTargeting as oa, ArrowDownIcon as oi, getLocalMinuteOfDay as on, defineProgressiveBlockRuntime as or, resolvePublicMediaUrl as ot, buildGiftingInteractiveIslandProps as p, mapDrawingSchema as pa, FileSpreadsheetIcon as pi, isSameCalendarDay as pn, standardAspectRatioOptions as pr, resolveEventSelection as pt, listingEventCardProps as q, isRecord$5 as qi, layoutTransforms as qn, standardImageShapeOptions as qr, eventLocalDateKey as qt, normalizeBlockContent as r, buildMailingListSignupBlockSourceRef as ra, buildGeneratedBlockIconRenderAssetLookupFromUnknown as ri, groupEventsByDate as rn, defineInteractiveIslandMetaKeys as rr, resolveImageSourceSetWithContext as rt, newsletterSignupBlockDefinition as s, sameMailingListPlacementTargeting as sa, ChevronDownIcon as si, addDays as sn, listItemPresentation as sr, buildResolveImageUrlContext as st, getBlockDefinition as t, orderedLiveRunSessions as ta, createTransformRegistry as ti, formatEventTimeRange as tn, buildInteractiveIslandProps as tr, MediaPlaceholder as tt, buildNewsletterFormInteractiveIslandProps as u, normalizeLocationAddressText as ua, ClockIcon as ui, getOrderedDayNames as un, lookListPresentationSchemaShape as ur, sanitizeHref as ut, shopBlockDefinition as v, compareLocalScheduleDates as va, isInlineTextEmpty as vi, canJoinEventWaitlistOnAnyMode as vn, cardFragment as vr, eventCalendarListGroupingDecision as vt, shopProductPresentation as w, resolveBookingBusinessTimeZone as wa, blockSectionDeclarationShape as wi, blockSiteTermsSchema as wn, formCopyFragment as wr, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as wt, buildProductDetailInteractiveIslandProps as x, getLocalScheduleDate as xa, DEFAULT_MEDIA_FIELD_KINDS as xi, getEventAvailability as xn, blogFeaturedPostFragment as xr, resolveEventCalendarReadPlan as xt, buildCartInteractiveIslandProps as y, formatBookingCompactEnglishTime as ya, parseInlineTextFromUnknown as yi, formatEventRemainingPlaces as yn, faqAccordionFragment as yr, eventCalendarListLayoutCompatibleDisplayModeValues as yt, buildEventCollectionHydration as z, projectRepeaterGridLayoutForRendering as zi, parseTeamMemberSpecialties as zn, parseBackgroundOverlay as zr, SpinnerNode as zt };
|