@riverbankcms/sdk 0.160.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-CoqeotCL.d.ts → BlocksIslandsHydrator-PZUoA872.d.ts} +1 -1
- package/dist/_dts/{Page-C0ENVLCF.d.ts → Page-CdQS6C7i.d.ts} +211 -9
- package/dist/_dts/{SdkPreviewMode-jZK0A49V.d.ts → SdkPreviewMode-CNGO-5f1.d.ts} +59 -92
- package/dist/_dts/{auth-contract-FPg0-2MC.d.ts → auth-contract-CgJ5nMaH.d.ts} +2 -0
- package/dist/_dts/{client-uMMuPq9V.d.ts → client-DGa53rjL.d.ts} +11 -3
- package/dist/_dts/{content-types-D6nXGqdQ.d.ts → content-types-K9R7P-KF.d.ts} +2 -2
- package/dist/_dts/{contracts-Bnmj1nxu.d.ts → contracts-CyBaPaIq.d.ts} +17 -5
- package/dist/_dts/{footerPageOutline-CeLjFX8b.d.ts → footerPageOutline-B6jmKmon.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-nyU8q02J.d.ts → generatePageMetadata-iemoR3AN.d.ts} +2 -2
- package/dist/_dts/{index-BaaGBY1v.d.ts → index-8CN0Nd-Z.d.ts} +2 -2
- package/dist/_dts/{index-nVoi_74l.d.ts → index-BtnsA14K.d.ts} +10 -20
- package/dist/_dts/{index-lkpjIg5i.d.ts → index-C39F9KaB.d.ts} +13 -2
- package/dist/_dts/{index-C5xslEBn.d.ts → index-DEu85xBt.d.ts} +1 -1
- package/dist/_dts/{schema-D0bNcPWK.d.ts → index-DI2yaSPY.d.ts} +22873 -19918
- package/dist/_dts/{types-D8czmbQF.d.ts → index-Dbd0Sn0G.d.ts} +4356 -1827
- package/dist/_dts/{index-CEaKil7G.d.ts → index-Du1IRglc.d.ts} +2 -2
- package/dist/_dts/{index-DahMwisK.d.ts → index-Jlcq6w69.d.ts} +3 -3
- package/dist/_dts/{index-Bg64CkV-.d.ts → index-Wm62sXf2.d.ts} +4 -4
- package/dist/_dts/{loadContent-CYLmzvLq.d.ts → loadContent-BPfAAZDW.d.ts} +13 -10
- package/dist/_dts/{resolvePageContent-DqnxChOs.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 +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/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/preview-next/keep-alive.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/session.d.ts +2 -2
- 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/{session-Ba2CsnK5.d.ts → session-C_gtSFyZ.d.ts} +2 -1
- package/dist/_dts/{types-DSgmJ15W.d.ts → types-CVv2H4AT.d.ts} +7 -7
- package/dist/_dts/{types-CFrYuXYP.d.ts → types-CfNG5koF.d.ts} +4 -2
- package/dist/_dts/{types-Dm-KW7nj.d.ts → types-ClZ-BQL_.d.ts} +3 -3
- package/dist/_dts/{validation-Bmb4WnHg.d.ts → validation-BJ6Lf_Dr.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DZRKi6tT.mjs → BlocksIslandsHydrator-COqlgWYU.mjs} +23 -21
- package/dist/client/{BookingMailingListNote-C00sLLdL.mjs → BookingMailingListNote-CFYPDEHH.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-CHSi9b3E.mjs → CalendarNavigationChevron-COBVxgHb.mjs} +6 -6
- package/dist/client/{CheckboxChoice-Bhm6RAUL.mjs → CheckboxChoice-C7X9dJ8A.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-CaN-7ui7.mjs → DemoBookingPortalAccess-CvT0E9AR.mjs} +26 -10
- package/dist/client/{DemoPortalSignInLink-ClxN5_xZ.mjs → DemoPortalSignInLink-EBOBN5dT.mjs} +1 -1
- package/dist/client/{EventCalendar.client-BncvSa1n.mjs → EventCalendar.client-U6pKcntV.mjs} +16 -17
- package/dist/client/{EventCombined.client-DluBxVVu.mjs → EventCombined.client-CNzwEHws.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-BiJrMtfp.mjs → EventEmbeddedCheckoutStep-B9yAWV_k.mjs} +1 -1
- package/dist/client/{EventItem-CXhnT9pF.mjs → EventItem-M5rpaHxi.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-V-dtoDlD.mjs → EventListWeekNavigation-D4ieBLDY.mjs} +1 -1
- package/dist/client/{EventListing.client-DPO6SZbx.mjs → EventListing.client-B8F40Rmn.mjs} +3 -3
- package/dist/client/{EventListing.view-B-Yi5JZS.mjs → EventListing.view-k4lhuCn5.mjs} +15 -6
- package/dist/client/{EventRegistrationPayment-Dc3Fnlnw.mjs → EventRegistrationPayment-C3g8_Hqb.mjs} +25 -13
- package/dist/client/LocationMapActions-CAjt7qVo.mjs +62 -0
- package/dist/client/MapDrawingSvg-_aIK2ojv.mjs +200 -0
- package/dist/client/{Page-7PkzO04N.mjs → Page-DJBIQBOw.mjs} +2555 -536
- package/dist/client/{StepIndicator-DiD6euZ8.mjs → StepIndicator-CFacB1z6.mjs} +2 -2
- package/dist/client/{TabBarFragment-BHd8GN8y.mjs → TabBarFragment-BLsfQskO.mjs} +1 -1
- package/dist/client/ThemedButton-BWsDgjMC.mjs +2243 -0
- package/dist/client/{accordion-2m27DsIk.mjs → accordion-CtO2XF7M.mjs} +1 -1
- package/dist/client/{booking-form.client-BddWV5w1.mjs → booking-form.client-RICCQ0h2.mjs} +137 -60
- package/dist/client/{bookingForm-bcdXQjmw.mjs → bookingForm-SvjLPx8i.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-D7nj9I0y.mjs → carousel-BR-zCD3O.mjs} +2 -2
- package/dist/client/{carousel.client-AffDJo_s.mjs → carousel.client-CEWtoZd3.mjs} +1 -1
- package/dist/client/{cart-PN6yCw1H.mjs → cart-C6YpKbZZ.mjs} +3 -3
- package/dist/client/{cart.client-D4t1f0cJ.mjs → cart.client-dC938WrX.mjs} +1 -1
- package/dist/client/{checkout-CsTwXVSb.mjs → checkout-Dy9RlREI.mjs} +3 -3
- package/dist/client/{checkout.client-BhQE3zY7.mjs → checkout.client-CefG0d2F.mjs} +1 -1
- package/dist/client/client.mjs +37 -71
- package/dist/client/{context-BLAvalAa.mjs → context-BFwxgZpB.mjs} +28 -1
- package/dist/client/{cta-CUXhX_D7.mjs → cta-DtA42Xio.mjs} +1 -1
- package/dist/client/{dateFormatting-BHIHxNuo.mjs → dateFormatting-yP1B7F0O.mjs} +39 -2
- package/dist/client/{demoPortalMagicLink-R-awbk_0.mjs → demoPortalMagicLink-WOiT5Ryi.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-9Q93uvTo.mjs → enhanceHeaderSection-Dh8c_Lq-.mjs} +3 -3
- package/dist/client/{event-details.client-BS1WtG-a.mjs → event-details.client-BFgsLqTj.mjs} +3 -17
- package/dist/client/{event-registration.client-BXndwsET.mjs → event-registration.client-BaXZ1-Ky.mjs} +16 -16
- package/dist/client/{eventCalendar-HyoOt1Qz.mjs → eventCalendar-COLwF80U.mjs} +4 -4
- package/dist/client/{eventCombined-sdG5oEaH.mjs → eventCombined-D3Ltwu03.mjs} +4 -4
- package/dist/client/{eventDetails-FFAknE4w.mjs → eventDetails-CBrkimXu.mjs} +2 -2
- package/dist/client/{eventListing-CGK6urk3.mjs → eventListing-CedKVA1S.mjs} +4 -4
- package/dist/client/{eventRegistration-VhrvCs4l.mjs → eventRegistration-DkQQfR1b.mjs} +4 -4
- package/dist/client/{form-C-B5O_ko.mjs → form-XFy9uXSJ.mjs} +3 -3
- package/dist/client/{form.client-DoZVcl8d.mjs → form.client-B0iancFK.mjs} +4 -4
- package/dist/client/{form.parts-mttKpgif.mjs → form.parts-DMbolu9Y.mjs} +3 -3
- package/dist/client/{formatDate-xUSCknEO.mjs → formatDate-Jm5MQOCA.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-BHUEXsaI.mjs → headerSection-WjlECjtV.mjs} +2 -2
- package/dist/client/{mediaAssets-BOj-Co0B.mjs → mediaAssets-BkoW_PEn.mjs} +1 -1
- package/dist/client/{mediaContext-DThoeEBU.mjs → mediaContext-CNzWmoA4.mjs} +1 -1
- package/dist/client/{newsletter-form.client-D_n0rftg.mjs → newsletter-form.client-D-XwJTjN.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DKHye4IE.mjs → newsletter-form.parts-H92f30y0.mjs} +2 -2
- package/dist/client/{newsletterForm-tEaYelzx.mjs → newsletterForm-DMuxzu6I.mjs} +3 -3
- package/dist/client/{noop-B610YKEx.mjs → noop-B3RNPVrt.mjs} +313 -3
- package/dist/client/portal/client.mjs +1116 -85
- package/dist/client/{product-detail.client-DUf5x5Jt.mjs → product-detail.client-B3HuuykE.mjs} +1 -1
- package/dist/client/{product-list.client-Cqp1BPTV.mjs → product-list.client-CzsDrHQO.mjs} +1 -1
- package/dist/client/{productDetail-B8bBiogP.mjs → productDetail-CbBUVWgd.mjs} +3 -3
- package/dist/client/{productList-BKN4D-1z.mjs → productList-vqOKH2mh.mjs} +3 -3
- package/dist/client/{propsDecoder-2nNZh2Oe.mjs → propsDecoder-CkSUep5a.mjs} +4 -28
- package/dist/client/{registry.server-BAm4RPNJ.mjs → registry.server-cZ24QwtW.mjs} +607 -210
- package/dist/client/rendering/client.mjs +28 -28
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +18 -9
- package/dist/client/{richText-coerce-Cv-qomNB.mjs → richText-coerce-DDcCKvBJ.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-C5u8MbAA.mjs → routeIslandApiConfig-DYBioANh.mjs} +1 -1
- package/dist/client/{ThemedButton-C22C9cCF.mjs → schema-DNHLlze-.mjs} +7307 -8363
- package/dist/client/{shop-DZNC0VKk.mjs → shop-CF0dhnfH.mjs} +3 -3
- package/dist/client/{shop-commerce-DdX4LSa3.mjs → shop-commerce-DQznNBEo.mjs} +11 -11
- package/dist/client/{shop-commerce-store-BJtrZov9.mjs → shop-commerce-store-Ba8zPlIg.mjs} +1 -1
- package/dist/client/{shop.client-DmDd-igg.mjs → shop.client-DqfYoqWH.mjs} +12 -12
- package/dist/client/{shop.interactive-5SnnDHz3.mjs → shop.interactive-CreQ0I7i.mjs} +38 -183
- package/dist/client/{shopShared-CPqUlAh9.mjs → shopShared-D-yh-P7g.mjs} +2 -2
- package/dist/client/site-styles-B9HgmY07.mjs +11619 -0
- package/dist/client/{timetableModel-C19rcHEw.mjs → timetableModel-DCdVErTJ.mjs} +149 -8
- package/dist/client/{useAvailableSlots-BjbJXotk.mjs → useAvailableSlots-Cvgdp2DH.mjs} +8 -11
- package/dist/client/{useBookingNowIso-CMgfL7YJ.mjs → useBookingNowIso-DrTnGNzD.mjs} +1 -1
- package/dist/client/{useDiscountApply-KG8jB7WC.mjs → useDiscountApply-CULjnXGl.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-DK2w_i0a.mjs → useDiscountCodeUi-Gn_m7e0o.mjs} +1 -1
- package/dist/client/{useEventPagination-DW6MCirb.mjs → useEventPagination-CsysCF22.mjs} +8 -21
- package/dist/client/{view-CseyBW07.mjs → view-BpBjo9Te.mjs} +71 -59
- package/dist/client/{view-CkUn3Y0Y.mjs → view-DMyTchi7.mjs} +4 -4
- package/dist/client/wizardSteps-BO2OmMO9.mjs +6604 -0
- package/dist/preview-next/before-render.mjs +7 -6
- package/dist/preview-next/chrome.css +2 -0
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-lUHBrzHv.mjs → EventEmbeddedCheckoutStep-DLsSmZbO.mjs} +2 -1
- package/dist/preview-next/client/LocationPickerEnvironment-QtSG2Bl-.mjs +138 -0
- package/dist/preview-next/client/MapLibreEditMap-B-rohNcG.mjs +488 -0
- package/dist/preview-next/client/{PreviewEditorSidebar-DWyUGCAG.mjs → PreviewEditorSidebar-ChrW9VEo.mjs} +269 -1100
- package/dist/preview-next/client/{PreviewEditorUI-Wq0b3Daw.mjs → PreviewEditorUI-VaHvYtrA.mjs} +10 -190
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BtZPcwYV.mjs → SdkPreviewModeRuntime-Bz7jR6nl.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-wSI_R361.mjs → SdkPreviewModeRuntime-DWwktlWs.mjs} +639 -536
- package/dist/preview-next/client/{ThemedButton-DzeycIlD.mjs → ThemedButton-CHKOWXxl.mjs} +1706 -692
- package/dist/preview-next/client/lucide-react-CA9cpo0P.mjs +51984 -0
- package/dist/preview-next/client/maplibre-gl-DykfOYYn.mjs +34208 -0
- package/dist/preview-next/client/{SiteChromeCustomizeContext-Hc4pYnNe.mjs → previewAuthStore-C0VUwEHz.mjs} +81363 -136296
- package/dist/preview-next/client/{previewChromeSurface-Corq4AG7.mjs → previewChromeSurface-Dhyx2YrS.mjs} +1 -1
- package/dist/preview-next/client/result-BjJUoxUF.mjs +16 -0
- package/dist/preview-next/client/rolldown-runtime-CE6sIgz8.mjs +34 -0
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CWymRWhK.mjs → sdk-runtime-C2GWOCyj.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-DHyzUpv4.mjs +12833 -0
- package/dist/preview-next/client/{spinner-C4If5Y-O.mjs → spinner-BeR2S8oG.mjs} +2 -1
- package/dist/preview-next/{constants-D8Ya7bO4.mjs → constants-Bf-vqdKH.mjs} +2 -1
- package/dist/preview-next/editor-base.css +2 -2
- package/dist/preview-next/keepAlive.mjs +3 -3
- package/dist/preview-next/middleware.mjs +7 -3
- package/dist/preview-next/{refresh-contract-CvmNqZ1Q.mjs → refresh-contract-uQ6BXgLJ.mjs} +5 -0
- package/dist/preview-next/{route-contract-8csADeIT.mjs → route-contract-CkrFDMrl.mjs} +434 -203
- package/dist/preview-next/{session-BgkrPqu0.mjs → session-P1R_ajT7.mjs} +12 -2
- package/dist/preview-next/session.mjs +1 -1
- package/dist/server/{Block.shared-D1_gonwM.mjs → Block.shared-DxvNGDig.mjs} +4 -4
- package/dist/server/{bindings-CFmJg5lm.mjs → bindings-BuhKvYkE.mjs} +2 -1
- package/dist/server/{client-DPsi0Dai.mjs → client-BobW6DOz.mjs} +39 -72
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{siteChromeOverlayClearance-DALIAMwo.mjs → effectiveNavLinkStyle-B-MKSt0p.mjs} +2060 -1680
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-RMCcuVU_.mjs → loadContent-CCG_3mbY.mjs} +14 -5
- package/dist/server/loadPage-Bk9HDh9K.mjs +2 -0
- package/dist/server/{loadPage-DhDGzj7t.mjs → loadPage-jntGoMrf.mjs} +3 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-OxY5FMuy.mjs → overrideResolution-BBOlgn4Z.mjs} +1 -1
- package/dist/server/{overrides-Bz_A6sB9.mjs → overrides-DByQwIyW.mjs} +803 -412
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-B_1vrSru.mjs → prebuild-DrwcTk2t.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-B7ukYXXR.mjs → prefetchBlockData-LfgxSJYE.mjs} +156 -89
- package/dist/server/{publicProducts-Djbpc81A.mjs → publicProducts-8A3T5v4M.mjs} +685 -166
- package/dist/server/{registry-eFjKtEhF.mjs → registry-Digv02oV.mjs} +780 -1052
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-DYvEa9c5.mjs → resolveBlockData-C23t8-77.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-C3dJ5UkL.mjs → schema-BiqpDRwB.mjs} +4805 -3561
- package/dist/server/server.mjs +3 -3
- package/dist/server/site-styles-DrkprQPL.mjs +755 -0
- package/dist/server/siteChromeOverlayClearance-BmKKkkbh.mjs +750 -0
- package/dist/server/{src-C5Mu-z0F.mjs → src-08GY1njw.mjs} +1060 -44
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-ruoyXb_0.mjs → themeAdmission-CSd_Vusz.mjs} +151 -53
- package/dist/server/{validation-B-Xar8QS.mjs → validation-DdUTkBOZ.mjs} +2 -2
- package/dist/server/{version-Bg7VHK3i.mjs → version-DdIOqIDe.mjs} +1 -1
- package/dist/styles/index.css +1029 -41
- package/package.json +1 -1
- package/dist/_dts/index-Blwl7yl6.d.ts +0 -13
- package/dist/client/LeafletStaticMap-ClZCCzAm.mjs +0 -135
- package/dist/client/location-map.client-Cylb_MHw.mjs +0 -28
- package/dist/client/location-map.view-Cx4Bl7ij.mjs +0 -345
- package/dist/client/locationMap-QnKJi-nZ.mjs +0 -15
- package/dist/client/renderableMediaAssetAdmission-DGjBr_e-.mjs +0 -152
- package/dist/client/wizardSteps-zgq10lN1.mjs +0 -17181
- package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +0 -1359
- package/dist/server/loadPage-DUPP51C-.mjs +0 -2
- package/dist/server/media-CcHwZkdJ.mjs +0 -243
|
@@ -1,33 +1,186 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { d as formatDateKey, h as getWeekCalendarDayTuple, m as getOrderedDayNames } from "./src-1PJxc8KO.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Cr as err, E as ICON_CONFIG, H as cardVariantRoleValues, Qn as runtimeMediaSchema, Zt as serializeSurfaceTree, cn as textColorStyle, hn as resolveThemeColorReferenceValue, ht as arrangementModes, on as mergeStyles, rn as backgroundColorStyle, sn as rgbColorValue, wr as ok } from "./schema-DNHLlze-.mjs";
|
|
4
|
+
import { C as clsx, S as PlusIcon, _ as FileArchiveIcon, a as ThemedDownloadLink, b as FileTextIcon, c as ICON_PICKER_PRESETS, d as ArrowDownIcon, f as ChevronDownIcon, i as ThemedButtonLink, l as isSemanticIconId, m as CirclePlusIcon, p as CircleMinusIcon, r as ThemedButton, s as getIconComponent, u as SpinnerNode, v as FileAudioIcon, x as MinusIcon, y as FileSpreadsheetIcon } from "./ThemedButton-BWsDgjMC.mjs";
|
|
5
5
|
import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
|
|
6
6
|
import { c as assertNever$1 } from "./src-VIsPY-kw.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import { C as eventCalendarVariantMeaning,
|
|
7
|
+
import { $r as formatBookingPriceDisplay, An as isEventFull, Cn as canJoinEventWaitlistOnAnyMode, Dn as getEventAvailability, Dr as resolveEventRegistrationScopedEvents, Er as normalizeEventRegistrationPageSurfaceSubject, Fn as buildBookingFormInteractiveIslandProps, Fr as lookListPresentationSchemaShape, Hr as orderedLiveRunSessions, Kt as RichText, Mr as listItemPresentation, Nn as groupPublicEventsByRun, On as getEventAvailabilityStatus, Pr as listLookSlot, Rr as parseAspectRatioValue, Ur as resolveWholeSeriesBookingPhase, Vr as nextLiveRunSessionStartMs, _n as formatEventTimeRange, _r as BLOCK_BUTTON_ROLE_OPTIONS, an as buildCalendarViewport, cn as eventDateOptions, hn as formatEventHourLabel, in as sanitizeHref, oi as resolveExactOrFreePriceDisplay, pn as formatEventCompactDateRail, qt as ImagePresets, rn as resolvePublicMediaUrl, si as resolvePricingOptionsPriceDisplay, un as formatCalendarTitle, vn as formatTime, xn as resolveRuntimeEventDestination, yn as groupEventsByDate, yr as isBlockButtonRole } from "./wizardSteps-BO2OmMO9.mjs";
|
|
8
|
+
import { C as eventCalendarVariantMeaning, D as isEventCalendarListLayout, E as isEventCalendarDisplayMode, F as normalizeEventStaffMemberId, G as publicEventsArraySchema, I as normalizeEventSurfacePresets, M as normalizeEventCategoryIds, Nt as toUtcIsoDateTimeString, O as normalizeEventCalendarDisplayMode$1, P as normalizeEventScheduleScope, R as normalizeEventSurfaceScope, T as isEventCalendarDefaultView, Z as RichTextDocSchema, at as parseLocationValue, ct as toLocationCoordinates, it as normalizeLocationAddressText, kt as resolveBookingBusinessTimeZone, ot as projectPublicLocation, p as calendarWindowPageSchema, st as publicLocationSchema$1, ut as formatDate, x as eventCalendarListLayoutOptions, z as normalizeEventVenueId } from "./noop-B3RNPVrt.mjs";
|
|
9
9
|
import { n as selectCategoryView } from "./appointment-service-categories-Cl2pqw-z.mjs";
|
|
10
|
-
import { i as
|
|
11
|
-
import { At as
|
|
12
|
-
import {
|
|
13
|
-
import { a as
|
|
14
|
-
import { n as
|
|
15
|
-
import {
|
|
10
|
+
import { a as MonthLookView, c as ButtonNode, d as TextNode, f as LocationMapView, i as buildWeekBoardViewProps, l as LinkNode, n as WeekBoardView, o as CalendarRecurringWeek, r as buildWeekBoardNavigationState, s as RecurringSchedule, t as buildTimetableModel, u as RichTextNode } from "./timetableModel-DCdVErTJ.mjs";
|
|
11
|
+
import { At as buildEventListingInteractiveIslandProps, B as giftingBlockRuntime, Ct as buildEventCalendarInteractiveIslandProps, Et as eventCalendarBlockRuntime, F as buildNewsletterFormInteractiveIslandProps, Gt as getCardOrientation, H as publicGiftingOffersResponseSchema, I as newsletterBlockSubmissionMessage, Jt as buildEventListWeek, Kt as getContainerClass, L as newsletterFormBlockRuntime, N as publicProductsResponseSchema, P as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, Rt as catalogueEventCardProps, U as buildFormInteractiveIslandProps, W as formBlockRuntime, Wt as MediaNodeServer, Y as eventRegistrationBlockRuntime, Yt as formatEventPrice, Zt as formatEventPriceDisplay, _ as shopProductPresentation, a as buildShopInteractiveIslandProps, an as splitSiteChromePlacementClasses, bt as buildEventCombinedListingDisplay, c as checkoutBlockRuntime, ct as resolveOfferingsPreviewGroupCta, d as productDetailBlockRuntime, fn as DEFAULT_MAILING_LIST_TARGETING, h as shopBlockRuntime, i as buildProductListInteractiveIslandProps, jt as eventListingBlockRuntime, kt as recurringScheduleProjectionSchema, ln as assessMailingListTargeting, lt as resolveOfferingsPreviewGroups, n as buildCheckoutInteractiveIslandProps, nn as staticHeaderChromeRuntime, nt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, o as cartBlockRuntime, on as publicMembershipProductCollectionSchema, ot as normalizeOfferingsPreviewItemLimit, p as productListBlockRuntime, q as buildEventRegistrationInteractiveIslandProps, qt as Grid, r as buildProductDetailInteractiveIslandProps, rt as buildOfferingsPreviewListing, sn as publicPassProductCollectionSchema, st as offeringsListingFor, t as buildCartInteractiveIslandProps, un as parseMailingListPlacementTargeting, ut as resolveOfferingsRenderInput, vt as occurrenceContextSchema, wt as buildEventCalendarListingDisplay, xt as eventCombinedBlockRuntime, yt as buildEventCombinedInteractiveIslandProps, z as buildGiftingInteractiveIslandProps, zt as listingEventCardProps } from "./shop.interactive-CreQ0I7i.mjs";
|
|
12
|
+
import { l as arrangementSlotNames, y as compiledRuntimeStyleFieldNames } from "./site-styles-B9HgmY07.mjs";
|
|
13
|
+
import { a as resolveEventDetailsPresentation, i as derivePreviewRunSchedule, n as eventCardListContent, r as deriveEventScheduleSummary, t as EventDetailsView } from "./view-BpBjo9Te.mjs";
|
|
14
|
+
import { n as resolveEventLinkProps, t as resolveEventCta } from "./cta-DtA42Xio.mjs";
|
|
15
|
+
import { a as buildMonthDay, i as CalendarDayHeaders, n as WeekAgendaView, o as resolveMonthSelectedDay, s as formatEventLocation } from "./CalendarNavigationChevron-COBVxgHb.mjs";
|
|
16
|
+
import { n as CardListItems, r as EventItem } from "./EventItem-M5rpaHxi.mjs";
|
|
17
|
+
import { i as SvgNode } from "./MapDrawingSvg-_aIK2ojv.mjs";
|
|
18
|
+
import { S as asPartialObject, d as resolveCardRoleForBoxStyles, g as DEFAULT_SECTION_SPACING, i as EventCard, n as EmptyState, r as EventCompactRow, s as boxStyleClassNames, t as EventListingFrameView, u as normalizeBoxStylesBorder } from "./EventListing.view-k4lhuCn5.mjs";
|
|
16
19
|
import { t as resolveDedicatedBookingHref } from "./bookingRoute-Bqlyu5Vb.mjs";
|
|
17
|
-
import { a as resolveEventDetailsPresentation, i as derivePreviewRunSchedule, n as eventCardListContent, r as deriveEventScheduleSummary, t as EventDetailsView } from "./view-CseyBW07.mjs";
|
|
18
20
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
19
|
-
import { a as MonthLookView, c as ButtonNode, d as TextNode, i as buildWeekBoardViewProps, l as LinkNode, n as WeekBoardView, o as CalendarRecurringWeek, r as buildWeekBoardNavigationState, s as RecurringSchedule, t as buildTimetableModel, u as RichTextNode } from "./timetableModel-C19rcHEw.mjs";
|
|
20
21
|
import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, r as carouselContents, t as CarouselSlideContent, u as resolveSlidesToShowMobile } from "./carousel.shared-DBnWEJzo.mjs";
|
|
21
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-
|
|
22
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-DDcCKvBJ.mjs";
|
|
22
23
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
23
|
-
import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-
|
|
24
|
-
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-
|
|
25
|
-
import { i as RegistrationClosedState, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-
|
|
26
|
-
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-
|
|
27
|
-
import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-
|
|
24
|
+
import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-DMyTchi7.mjs";
|
|
25
|
+
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-D4ieBLDY.mjs";
|
|
26
|
+
import { i as RegistrationClosedState, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-CFacB1z6.mjs";
|
|
27
|
+
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-DMbolu9Y.mjs";
|
|
28
|
+
import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-H92f30y0.mjs";
|
|
28
29
|
import React, { forwardRef } from "react";
|
|
29
30
|
import { z } from "zod";
|
|
30
31
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
32
|
+
//#region ../core/src/public-profile.ts
|
|
33
|
+
const publicProfileWeekdays = [
|
|
34
|
+
"monday",
|
|
35
|
+
"tuesday",
|
|
36
|
+
"wednesday",
|
|
37
|
+
"thursday",
|
|
38
|
+
"friday",
|
|
39
|
+
"saturday",
|
|
40
|
+
"sunday"
|
|
41
|
+
];
|
|
42
|
+
function isRecord$1(value) {
|
|
43
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
44
|
+
}
|
|
45
|
+
function trimmedOptionalString(value) {
|
|
46
|
+
if (value === null || value === void 0) return null;
|
|
47
|
+
if (typeof value !== "string") return void 0;
|
|
48
|
+
const trimmed = value.trim();
|
|
49
|
+
return trimmed.length > 0 ? trimmed : null;
|
|
50
|
+
}
|
|
51
|
+
function parsePublicProfileTimeZone(value) {
|
|
52
|
+
const timeZone = trimmedOptionalString(value);
|
|
53
|
+
if (timeZone === null || timeZone === void 0) return err({
|
|
54
|
+
code: "invalid_timezone",
|
|
55
|
+
path: "openingHours.timeZone",
|
|
56
|
+
message: "Choose a timezone."
|
|
57
|
+
});
|
|
58
|
+
try {
|
|
59
|
+
new Intl.DateTimeFormat("en-GB", { timeZone }).format(/* @__PURE__ */ new Date(0));
|
|
60
|
+
return ok(timeZone);
|
|
61
|
+
} catch {
|
|
62
|
+
return err({
|
|
63
|
+
code: "invalid_timezone",
|
|
64
|
+
path: "openingHours.timeZone",
|
|
65
|
+
message: "Choose a valid IANA timezone."
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function parseOpeningHoursTime(value, path) {
|
|
70
|
+
if (typeof value !== "string" || !/^(?:[01]\d|2[0-3]):[0-5]\d$/u.test(value)) return err({
|
|
71
|
+
code: "invalid_time",
|
|
72
|
+
path,
|
|
73
|
+
message: "Use a 24-hour time such as 09:00."
|
|
74
|
+
});
|
|
75
|
+
return ok(value);
|
|
76
|
+
}
|
|
77
|
+
function minutesSinceMidnight(value) {
|
|
78
|
+
const [hours = "0", minutes = "0"] = value.split(":");
|
|
79
|
+
return Number(hours) * 60 + Number(minutes);
|
|
80
|
+
}
|
|
81
|
+
function parseOpeningHoursDay(value, expectedWeekday, index) {
|
|
82
|
+
const path = `openingHours.days.${index}`;
|
|
83
|
+
if (!isRecord$1(value) || value.weekday !== expectedWeekday) return err({
|
|
84
|
+
code: "invalid_weekdays",
|
|
85
|
+
path,
|
|
86
|
+
message: `Expected ${expectedWeekday} in calendar order.`
|
|
87
|
+
});
|
|
88
|
+
if (value.kind === "closed") return ok({
|
|
89
|
+
kind: "closed",
|
|
90
|
+
weekday: expectedWeekday
|
|
91
|
+
});
|
|
92
|
+
if (value.kind !== "open" || !Array.isArray(value.intervals) || value.intervals.length === 0) return err({
|
|
93
|
+
code: "invalid_interval",
|
|
94
|
+
path: `${path}.intervals`,
|
|
95
|
+
message: "Open days need at least one opening interval."
|
|
96
|
+
});
|
|
97
|
+
const intervals = [];
|
|
98
|
+
for (const [intervalIndex, rawInterval] of value.intervals.entries()) {
|
|
99
|
+
const intervalPath = `${path}.intervals.${intervalIndex}`;
|
|
100
|
+
if (!isRecord$1(rawInterval)) return err({
|
|
101
|
+
code: "invalid_interval",
|
|
102
|
+
path: intervalPath,
|
|
103
|
+
message: "Opening interval is invalid."
|
|
104
|
+
});
|
|
105
|
+
const opensAt = parseOpeningHoursTime(rawInterval.opensAt, `${intervalPath}.opensAt`);
|
|
106
|
+
if (!opensAt.ok) return opensAt;
|
|
107
|
+
const closesAt = parseOpeningHoursTime(rawInterval.closesAt, `${intervalPath}.closesAt`);
|
|
108
|
+
if (!closesAt.ok) return closesAt;
|
|
109
|
+
if (minutesSinceMidnight(opensAt.value) >= minutesSinceMidnight(closesAt.value)) return err({
|
|
110
|
+
code: "invalid_interval",
|
|
111
|
+
path: intervalPath,
|
|
112
|
+
message: "Closing time must be later than opening time on the same day."
|
|
113
|
+
});
|
|
114
|
+
intervals.push({
|
|
115
|
+
opensAt: opensAt.value,
|
|
116
|
+
closesAt: closesAt.value
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
intervals.sort((left, right) => minutesSinceMidnight(left.opensAt) - minutesSinceMidnight(right.opensAt));
|
|
120
|
+
for (let intervalIndex = 1; intervalIndex < intervals.length; intervalIndex += 1) {
|
|
121
|
+
const previous = intervals[intervalIndex - 1];
|
|
122
|
+
const current = intervals[intervalIndex];
|
|
123
|
+
if (previous !== void 0 && current !== void 0 && minutesSinceMidnight(current.opensAt) < minutesSinceMidnight(previous.closesAt)) return err({
|
|
124
|
+
code: "overlapping_intervals",
|
|
125
|
+
path: `${path}.intervals.${intervalIndex}`,
|
|
126
|
+
message: "Opening intervals cannot overlap."
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
const [first, ...rest] = intervals;
|
|
130
|
+
if (first === void 0) return err({
|
|
131
|
+
code: "invalid_interval",
|
|
132
|
+
path,
|
|
133
|
+
message: "Open days need an opening interval."
|
|
134
|
+
});
|
|
135
|
+
return ok({
|
|
136
|
+
kind: "open",
|
|
137
|
+
weekday: expectedWeekday,
|
|
138
|
+
intervals: [first, ...rest]
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
function parseOpeningHoursWeek(rawDays) {
|
|
142
|
+
const parsedDays = publicProfileWeekdays.map((weekday, index) => parseOpeningHoursDay(rawDays[index], weekday, index));
|
|
143
|
+
const failed = parsedDays.find((day) => !day.ok);
|
|
144
|
+
if (failed !== void 0) return failed;
|
|
145
|
+
const [monday, tuesday, wednesday, thursday, friday, saturday, sunday] = parsedDays.flatMap((day) => day.ok ? [day.value] : []);
|
|
146
|
+
if (monday === void 0 || tuesday === void 0 || wednesday === void 0 || thursday === void 0 || friday === void 0 || saturday === void 0 || sunday === void 0) return err({
|
|
147
|
+
code: "invalid_weekdays",
|
|
148
|
+
path: "openingHours.days",
|
|
149
|
+
message: "Opening hours are incomplete."
|
|
150
|
+
});
|
|
151
|
+
return ok([
|
|
152
|
+
monday,
|
|
153
|
+
tuesday,
|
|
154
|
+
wednesday,
|
|
155
|
+
thursday,
|
|
156
|
+
friday,
|
|
157
|
+
saturday,
|
|
158
|
+
sunday
|
|
159
|
+
]);
|
|
160
|
+
}
|
|
161
|
+
function parseWeeklyOpeningHours(value) {
|
|
162
|
+
if (!isRecord$1(value) || !Array.isArray(value.days) || value.days.length !== publicProfileWeekdays.length) return err({
|
|
163
|
+
code: "invalid_weekdays",
|
|
164
|
+
path: "openingHours.days",
|
|
165
|
+
message: "Opening hours must include all seven weekdays."
|
|
166
|
+
});
|
|
167
|
+
const timeZone = parsePublicProfileTimeZone(value.timeZone);
|
|
168
|
+
if (!timeZone.ok) return timeZone;
|
|
169
|
+
const note = value.note === void 0 || value.note === null ? null : trimmedOptionalString(value.note);
|
|
170
|
+
if (note === void 0) return err({
|
|
171
|
+
code: "invalid_shape",
|
|
172
|
+
path: "openingHours.note",
|
|
173
|
+
message: "The opening hours note must be text."
|
|
174
|
+
});
|
|
175
|
+
const days = parseOpeningHoursWeek(value.days);
|
|
176
|
+
if (!days.ok) return days;
|
|
177
|
+
return ok({
|
|
178
|
+
timeZone: timeZone.value,
|
|
179
|
+
...note !== null ? { note } : {},
|
|
180
|
+
days: days.value
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
//#endregion
|
|
31
184
|
//#region ../blocks/src/system/fields/button.ts
|
|
32
185
|
const DEFAULT_THEME_BUTTON_VARIANTS = BLOCK_BUTTON_ROLE_OPTIONS;
|
|
33
186
|
function createButtonVariantField(options = {}) {
|
|
@@ -1084,23 +1237,31 @@ function EventQuickDates({ events, pathname, buttonVariant = "primary", dateStyl
|
|
|
1084
1237
|
})]
|
|
1085
1238
|
});
|
|
1086
1239
|
}
|
|
1240
|
+
/**
|
|
1241
|
+
* The complete link that books one date, shared by the strip and by date rows.
|
|
1242
|
+
* Null when the date has no registration path (closed, paused, not open yet,
|
|
1243
|
+
* no registration, or full with no waitlist), so no caller repeats that gate.
|
|
1244
|
+
*/
|
|
1245
|
+
function eventDateBookingLink(event, pathname, dateLabel) {
|
|
1246
|
+
if (!isBookableEvent(event)) return null;
|
|
1247
|
+
const cta = resolveEventCta(event);
|
|
1248
|
+
return {
|
|
1249
|
+
href: resolveRuntimeEventDestination(event).kind === "external" ? cta.href : resolveDedicatedBookingHref(pathname, {
|
|
1250
|
+
kind: "event_occurrence",
|
|
1251
|
+
occurrenceId: event.occurrenceId
|
|
1252
|
+
}),
|
|
1253
|
+
target: cta.external ? "_blank" : void 0,
|
|
1254
|
+
rel: cta.external ? "noopener noreferrer" : void 0,
|
|
1255
|
+
"aria-label": `${cta.label} ${event.title}, ${dateLabel}`,
|
|
1256
|
+
label: cta.label
|
|
1257
|
+
};
|
|
1258
|
+
}
|
|
1087
1259
|
/** Decide the formatted date and complete booking link before rendering. */
|
|
1088
1260
|
function quickDateCardPresentation(props) {
|
|
1089
|
-
const
|
|
1090
|
-
const date = formatEventQuickDate(event, props.dateStyle);
|
|
1091
|
-
const cta = resolveEventCta(event);
|
|
1261
|
+
const date = formatEventQuickDate(props.event, props.dateStyle);
|
|
1092
1262
|
return {
|
|
1093
1263
|
date,
|
|
1094
|
-
bookingLink:
|
|
1095
|
-
href: resolveRuntimeEventDestination(event).kind === "external" ? cta.href : resolveDedicatedBookingHref(props.pathname, {
|
|
1096
|
-
kind: "event_occurrence",
|
|
1097
|
-
occurrenceId: event.occurrenceId
|
|
1098
|
-
}),
|
|
1099
|
-
target: cta.external ? "_blank" : void 0,
|
|
1100
|
-
rel: cta.external ? "noopener noreferrer" : void 0,
|
|
1101
|
-
"aria-label": `${cta.label} ${event.title}, ${date.label}`,
|
|
1102
|
-
label: cta.label
|
|
1103
|
-
}
|
|
1264
|
+
bookingLink: eventDateBookingLink(props.event, props.pathname, date.label)
|
|
1104
1265
|
};
|
|
1105
1266
|
}
|
|
1106
1267
|
function EventQuickDateCard(props) {
|
|
@@ -1136,12 +1297,12 @@ function EventQuickDateCard(props) {
|
|
|
1136
1297
|
children: [/* @__PURE__ */ jsx("span", {
|
|
1137
1298
|
className: "event-quick-date-price",
|
|
1138
1299
|
children: formatEventPrice(event)
|
|
1139
|
-
}), /* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
1300
|
+
}), bookingLink ? /* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
1140
1301
|
variant: props.buttonVariant,
|
|
1141
1302
|
size: "sm",
|
|
1142
1303
|
extraClassName: "event-quick-date-cta",
|
|
1143
1304
|
...bookingLink
|
|
1144
|
-
})]
|
|
1305
|
+
}) : null]
|
|
1145
1306
|
})
|
|
1146
1307
|
]
|
|
1147
1308
|
});
|
|
@@ -1937,7 +2098,7 @@ const uiSchema = z.object({
|
|
|
1937
2098
|
"behavior",
|
|
1938
2099
|
"style"
|
|
1939
2100
|
]).optional(),
|
|
1940
|
-
valueContract: z.enum(["boxBackground"]).optional()
|
|
2101
|
+
valueContract: z.enum(["boxBackground", "location"]).optional()
|
|
1941
2102
|
}).partial().superRefine((ui, ctx) => {
|
|
1942
2103
|
if (ui.layoutGridColumns !== void 0 && ui.layoutGridColumnsFields !== void 0) ctx.addIssue({
|
|
1943
2104
|
code: "custom",
|
|
@@ -2412,11 +2573,15 @@ z.object({
|
|
|
2412
2573
|
}).optional()
|
|
2413
2574
|
}).optional(),
|
|
2414
2575
|
promotedFields: z.array(z.string().min(1)).optional(),
|
|
2576
|
+
/** Legacy presentation fields owned by arrangement Looks, including nested schema paths. */
|
|
2577
|
+
arrangementOwnedFieldIds: z.array(z.string().min(1)).readonly().optional(),
|
|
2415
2578
|
variantMeaning: z.discriminatedUnion("kind", [z.object({
|
|
2416
2579
|
kind: z.literal("arrangement"),
|
|
2417
2580
|
lookOnlyKeys: z.array(z.string().min(1)).readonly().optional()
|
|
2418
2581
|
}), z.object({
|
|
2419
2582
|
kind: z.literal("mode"),
|
|
2583
|
+
modes: z.array(z.enum(arrangementModes)).min(1).readonly(),
|
|
2584
|
+
defaultMode: z.enum(arrangementModes),
|
|
2420
2585
|
arrangementField: z.string().min(1),
|
|
2421
2586
|
keys: z.array(z.string().min(1)).min(1).readonly(),
|
|
2422
2587
|
defaultKey: z.string().min(1),
|
|
@@ -2606,11 +2771,12 @@ function createVariantField(manifest) {
|
|
|
2606
2771
|
if (!manifest.variants || Object.keys(manifest.variants).length <= 1) return null;
|
|
2607
2772
|
if (manifest.fields?.some((f) => f.id === "variant")) return null;
|
|
2608
2773
|
const variantKeys = Object.keys(manifest.variants).filter((key) => !manifest.variantMeaning.lookOnlyKeys?.includes(key));
|
|
2774
|
+
if (variantKeys.length === 0) return null;
|
|
2609
2775
|
return {
|
|
2610
2776
|
id: "variant",
|
|
2611
2777
|
type: "select",
|
|
2612
|
-
label: "Variant",
|
|
2613
|
-
description: "Choose how this block is laid out.",
|
|
2778
|
+
label: manifest.variantMeaning.kind === "arrangement" ? "Layout" : "Variant",
|
|
2779
|
+
...manifest.variantMeaning.kind === "arrangement" ? {} : { description: "Choose how this block is laid out." },
|
|
2614
2780
|
ui: { intent: "display" },
|
|
2615
2781
|
required: false,
|
|
2616
2782
|
defaultValue: manifest.defaultVariant ?? variantKeys[0],
|
|
@@ -3969,6 +4135,7 @@ function createBlockManifest(config) {
|
|
|
3969
4135
|
icon: config.icon ?? "Box",
|
|
3970
4136
|
layout,
|
|
3971
4137
|
variants,
|
|
4138
|
+
arrangementOwnedFieldIds: config.arrangementOwnedFieldIds,
|
|
3972
4139
|
variantMeaning: config.variantMeaning,
|
|
3973
4140
|
defaultVariant: config.defaultVariant,
|
|
3974
4141
|
variantOptions: config.variantOptions,
|
|
@@ -4178,6 +4345,98 @@ function normalizeMailingListBlockContent(record) {
|
|
|
4178
4345
|
} : record;
|
|
4179
4346
|
}
|
|
4180
4347
|
//#endregion
|
|
4348
|
+
//#region ../blocks/src/system/blocks/shared/teamMembers.ts
|
|
4349
|
+
const teamMemberSpecialtiesInputSchema = z.union([z.string(), z.array(z.string())]).nullish();
|
|
4350
|
+
function parseTeamMemberSpecialties(value) {
|
|
4351
|
+
const parsed = teamMemberSpecialtiesInputSchema.safeParse(value);
|
|
4352
|
+
if (!parsed.success) return [];
|
|
4353
|
+
const parts = typeof parsed.data === "string" ? parsed.data.split(/\r?\n|,/) : parsed.data ?? [];
|
|
4354
|
+
return [...new Set(parts.map((part) => part.trim()).filter(Boolean))];
|
|
4355
|
+
}
|
|
4356
|
+
const biographyTextSchema = z.string().transform((text) => text.split(/\r?\n\s*\r?\n/).map((paragraph) => paragraph.trim()).filter(Boolean));
|
|
4357
|
+
const biographySourceSchema = z.union([RichTextDocSchema, biographyTextSchema]).nullish().catch(null);
|
|
4358
|
+
const teamMemberBiographySchema = z.object({
|
|
4359
|
+
profileBio: biographySourceSchema,
|
|
4360
|
+
bio: biographySourceSchema,
|
|
4361
|
+
summary: biographySourceSchema
|
|
4362
|
+
});
|
|
4363
|
+
/**
|
|
4364
|
+
* The bio a section about one person shows, or null when they have none: the
|
|
4365
|
+
* bio from their profile when it says anything, else their short bio. A page
|
|
4366
|
+
* deciding whether someone has a bio and the block showing it both read this,
|
|
4367
|
+
* so a section is never promised words that aren't there.
|
|
4368
|
+
*/
|
|
4369
|
+
function teamMemberBiography(member) {
|
|
4370
|
+
return firstBiography(member, [
|
|
4371
|
+
"profileBio",
|
|
4372
|
+
"bio",
|
|
4373
|
+
"summary"
|
|
4374
|
+
]);
|
|
4375
|
+
}
|
|
4376
|
+
/**
|
|
4377
|
+
* The bio a compact card shows when a page asks for whichever bio the person
|
|
4378
|
+
* has: their short bio first, then their summary, and their profile bio only
|
|
4379
|
+
* when neither says anything.
|
|
4380
|
+
*/
|
|
4381
|
+
function teamMemberCardBiography(member) {
|
|
4382
|
+
return firstBiography(member, [
|
|
4383
|
+
"bio",
|
|
4384
|
+
"summary",
|
|
4385
|
+
"profileBio"
|
|
4386
|
+
]);
|
|
4387
|
+
}
|
|
4388
|
+
/**
|
|
4389
|
+
* What an older grid or stack card adds under its short bio slot: the card
|
|
4390
|
+
* bio, unless the short bio is already a rich-text document that slot shows.
|
|
4391
|
+
* That slot only renders documents, so a staff member's plain-text short bio
|
|
4392
|
+
* comes through here too, and the two never show together.
|
|
4393
|
+
*/
|
|
4394
|
+
function teamMemberCardBiographyFallback(member) {
|
|
4395
|
+
if (firstBiography(member, ["bio"])?.kind === "document") return null;
|
|
4396
|
+
const biography = teamMemberCardBiography(member);
|
|
4397
|
+
return biography ? teamMemberBiographyDocument(biography) : null;
|
|
4398
|
+
}
|
|
4399
|
+
/** A bio as one rich-text document, each plain paragraph its own paragraph. */
|
|
4400
|
+
function teamMemberBiographyDocument(biography) {
|
|
4401
|
+
if (biography.kind === "document") return biography.document;
|
|
4402
|
+
return {
|
|
4403
|
+
type: "doc",
|
|
4404
|
+
content: biography.paragraphs.map((text) => ({
|
|
4405
|
+
type: "paragraph",
|
|
4406
|
+
content: [{
|
|
4407
|
+
type: "text",
|
|
4408
|
+
text
|
|
4409
|
+
}]
|
|
4410
|
+
}))
|
|
4411
|
+
};
|
|
4412
|
+
}
|
|
4413
|
+
function firstBiography(member, order) {
|
|
4414
|
+
const parsed = teamMemberBiographySchema.safeParse(member);
|
|
4415
|
+
if (!parsed.success) return null;
|
|
4416
|
+
return order.map((key) => toBiography(parsed.data[key])).find((biography) => biography !== null) ?? null;
|
|
4417
|
+
}
|
|
4418
|
+
function toBiography(source) {
|
|
4419
|
+
if (source === null || source === void 0) return null;
|
|
4420
|
+
if (Array.isArray(source)) return source.length > 0 ? {
|
|
4421
|
+
kind: "text",
|
|
4422
|
+
paragraphs: source
|
|
4423
|
+
} : null;
|
|
4424
|
+
const document = source;
|
|
4425
|
+
return hasText(document) ? {
|
|
4426
|
+
kind: "document",
|
|
4427
|
+
document
|
|
4428
|
+
} : null;
|
|
4429
|
+
}
|
|
4430
|
+
const textNodeSchema = z.object({
|
|
4431
|
+
text: z.string().optional(),
|
|
4432
|
+
content: z.array(z.unknown()).optional()
|
|
4433
|
+
});
|
|
4434
|
+
function hasText(node) {
|
|
4435
|
+
const parsed = textNodeSchema.safeParse(node);
|
|
4436
|
+
if (!parsed.success) return false;
|
|
4437
|
+
return (parsed.data.text?.trim().length ?? 0) > 0 || (parsed.data.content ?? []).some(hasText);
|
|
4438
|
+
}
|
|
4439
|
+
//#endregion
|
|
4181
4440
|
//#region ../theme-core/src/responsiveDisplay.ts
|
|
4182
4441
|
const BASE_DISPLAY_CLASSES = {
|
|
4183
4442
|
block: "rb-block",
|
|
@@ -4679,6 +4938,16 @@ const eventRegistrationBlockDefinition = {
|
|
|
4679
4938
|
}
|
|
4680
4939
|
}
|
|
4681
4940
|
};
|
|
4941
|
+
//#endregion
|
|
4942
|
+
//#region ../blocks/src/system/node/fragments/mapDrawingStyle.ts
|
|
4943
|
+
/** Shared map token binding for the current section ground and site style. */
|
|
4944
|
+
const mapDrawingStyleBinding = { $bind: {
|
|
4945
|
+
from: "content._sectionStyles.background",
|
|
4946
|
+
transforms: [{
|
|
4947
|
+
id: "mapDrawing.resolveStyle",
|
|
4948
|
+
options: { fallbackToken: "background" }
|
|
4949
|
+
}]
|
|
4950
|
+
} };
|
|
4682
4951
|
const eventListingBlockDefinition = {
|
|
4683
4952
|
manifest: createBlockManifestWithContentShape({
|
|
4684
4953
|
variantMeaning: { kind: "arrangement" },
|
|
@@ -4931,7 +5200,7 @@ const eventListingBlockDefinition = {
|
|
|
4931
5200
|
children: styledContainer({
|
|
4932
5201
|
rootType: "stack",
|
|
4933
5202
|
rootProps: { gap: "lg" },
|
|
4934
|
-
children: [...sectionHeaderLayoutNodes(), el("event-listing", withApiBindings({
|
|
5203
|
+
children: [...sectionHeaderLayoutNodes(), el("div", { style: mapDrawingStyleBinding }, [el("event-listing", withApiBindings({
|
|
4935
5204
|
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
4936
5205
|
events: { $bind: { from: "data.events" } },
|
|
4937
5206
|
stage: { $bind: {
|
|
@@ -4988,7 +5257,7 @@ const eventListingBlockDefinition = {
|
|
|
4988
5257
|
fallback: "any"
|
|
4989
5258
|
} },
|
|
4990
5259
|
emptyMessage: { $bind: { from: "content.emptyMessage" } }
|
|
4991
|
-
}))]
|
|
5260
|
+
}))])]
|
|
4992
5261
|
}),
|
|
4993
5262
|
baseClass: "",
|
|
4994
5263
|
spacing: "comfortable"
|
|
@@ -5456,7 +5725,7 @@ const eventCalendarAdditionalFields = [
|
|
|
5456
5725
|
{
|
|
5457
5726
|
id: "eyebrow",
|
|
5458
5727
|
type: "text",
|
|
5459
|
-
label: "
|
|
5728
|
+
label: "Small heading above the title",
|
|
5460
5729
|
required: false,
|
|
5461
5730
|
multiline: false,
|
|
5462
5731
|
maxLength: 80
|
|
@@ -6250,6 +6519,8 @@ const generatedEventCalendarManifest = createBlockManifestWithContentShape({
|
|
|
6250
6519
|
promotedFields: [
|
|
6251
6520
|
"variant",
|
|
6252
6521
|
"listBy",
|
|
6522
|
+
"calendarTabViews",
|
|
6523
|
+
"defaultCalendarView",
|
|
6253
6524
|
"eventSurface",
|
|
6254
6525
|
"filterEventPresets",
|
|
6255
6526
|
"scheduleScope",
|
|
@@ -6290,6 +6561,7 @@ const generatedEventCalendarManifest = createBlockManifestWithContentShape({
|
|
|
6290
6561
|
icon: "CalendarDays",
|
|
6291
6562
|
layout: eventCalendarLayout,
|
|
6292
6563
|
variants: eventCalendarVariants,
|
|
6564
|
+
arrangementOwnedFieldIds: ["defaultCalendarView"],
|
|
6293
6565
|
variantMeaning: eventCalendarVariantMeaning,
|
|
6294
6566
|
defaultVariant: "combined",
|
|
6295
6567
|
variantOptions: {
|
|
@@ -6363,6 +6635,18 @@ function buildOfferingsCatalogueListing(input) {
|
|
|
6363
6635
|
now: input.now
|
|
6364
6636
|
});
|
|
6365
6637
|
}
|
|
6638
|
+
function offeringsCatalogueShape(listing, cards) {
|
|
6639
|
+
return cards.oneOfferingRequested && cards.listDates && countListedOfferings(listing) === 1 ? "single" : "several";
|
|
6640
|
+
}
|
|
6641
|
+
function countListedOfferings(listing) {
|
|
6642
|
+
switch (listing.kind) {
|
|
6643
|
+
case "no-groups":
|
|
6644
|
+
case "nothing-to-show": return 0;
|
|
6645
|
+
case "by-date": return listing.items.length;
|
|
6646
|
+
case "by-type": return listing.groups.reduce((count, load) => count + (load.kind === "items" ? load.items.length : 0), 0);
|
|
6647
|
+
default: return assertNever$1(listing);
|
|
6648
|
+
}
|
|
6649
|
+
}
|
|
6366
6650
|
function matchesGroup(group, event) {
|
|
6367
6651
|
const source = group.source;
|
|
6368
6652
|
switch (source.kind) {
|
|
@@ -6373,6 +6657,7 @@ function matchesGroup(group, event) {
|
|
|
6373
6657
|
}
|
|
6374
6658
|
const shopBlockDefinition = {
|
|
6375
6659
|
manifest: createBlockManifest({
|
|
6660
|
+
arrangementOwnedFieldIds: ["layout", "columns"],
|
|
6376
6661
|
variantMeaning: {
|
|
6377
6662
|
kind: "arrangement",
|
|
6378
6663
|
lookOnlyKeys: [
|
|
@@ -6591,7 +6876,7 @@ const shopBlockDefinition = {
|
|
|
6591
6876
|
animation: false,
|
|
6592
6877
|
paletteHidden: false
|
|
6593
6878
|
},
|
|
6594
|
-
category: "
|
|
6879
|
+
category: "shop",
|
|
6595
6880
|
contentSource: { kind: "entries" },
|
|
6596
6881
|
tags: [
|
|
6597
6882
|
"shop",
|
|
@@ -7481,6 +7766,147 @@ const newsletterSignupBlockDefinition = {
|
|
|
7481
7766
|
runtime: newsletterFormBlockRuntime
|
|
7482
7767
|
};
|
|
7483
7768
|
//#endregion
|
|
7769
|
+
//#region ../blocks/src/system/runtime/nodes/location-map.shared.ts
|
|
7770
|
+
const LOCATION_MAP_DEFAULTS = {
|
|
7771
|
+
zoom: 15,
|
|
7772
|
+
heightPx: 320,
|
|
7773
|
+
showAddressText: true,
|
|
7774
|
+
showDirections: true,
|
|
7775
|
+
directionsLabel: "Get directions"
|
|
7776
|
+
};
|
|
7777
|
+
const LOCATION_MAP_LIMITS = {
|
|
7778
|
+
zoom: {
|
|
7779
|
+
min: 3,
|
|
7780
|
+
max: 18
|
|
7781
|
+
},
|
|
7782
|
+
heightPx: {
|
|
7783
|
+
min: 200,
|
|
7784
|
+
max: 600
|
|
7785
|
+
}
|
|
7786
|
+
};
|
|
7787
|
+
function normalizeNumber(value, fallback) {
|
|
7788
|
+
if (typeof value === "number" && Number.isFinite(value)) return value;
|
|
7789
|
+
if (typeof value === "string") {
|
|
7790
|
+
const parsed = Number.parseFloat(value);
|
|
7791
|
+
if (Number.isFinite(parsed)) return parsed;
|
|
7792
|
+
}
|
|
7793
|
+
return fallback;
|
|
7794
|
+
}
|
|
7795
|
+
function normalizeBoolean$1(value, fallback) {
|
|
7796
|
+
if (typeof value === "boolean") return value;
|
|
7797
|
+
if (typeof value === "string") {
|
|
7798
|
+
if (value === "true") return true;
|
|
7799
|
+
if (value === "false") return false;
|
|
7800
|
+
}
|
|
7801
|
+
return fallback;
|
|
7802
|
+
}
|
|
7803
|
+
function normalizeLocationMapValue(value, siteCountry) {
|
|
7804
|
+
if (typeof value !== "object" || value === null) return null;
|
|
7805
|
+
const projected = readLocationMapProjection(value, siteCountry);
|
|
7806
|
+
return projected === null ? null : {
|
|
7807
|
+
addressText: projected.displayAddress,
|
|
7808
|
+
...projected.pin ?? {
|
|
7809
|
+
lat: null,
|
|
7810
|
+
lng: null
|
|
7811
|
+
},
|
|
7812
|
+
drawing: projected.drawing,
|
|
7813
|
+
doorNote: projected.doorNote
|
|
7814
|
+
};
|
|
7815
|
+
}
|
|
7816
|
+
function normalizeLocationMapSource(value) {
|
|
7817
|
+
return value === "business_address" || value === "venue" ? value : "custom";
|
|
7818
|
+
}
|
|
7819
|
+
function resolveLocationMapLocation(input) {
|
|
7820
|
+
const source = normalizeLocationMapSource(input.locationSource);
|
|
7821
|
+
if (source === "business_address") {
|
|
7822
|
+
const locationValue = normalizeLocationMapValue(input.businessAddress, input.siteCountry);
|
|
7823
|
+
return locationValue ? {
|
|
7824
|
+
kind: "business_address",
|
|
7825
|
+
locationValue
|
|
7826
|
+
} : {
|
|
7827
|
+
kind: "unresolved",
|
|
7828
|
+
source,
|
|
7829
|
+
reason: "missing_business_address"
|
|
7830
|
+
};
|
|
7831
|
+
}
|
|
7832
|
+
if (source === "venue") {
|
|
7833
|
+
const venueId = typeof input.venueId === "string" && input.venueId.trim() ? input.venueId.trim() : null;
|
|
7834
|
+
if (!venueId) return {
|
|
7835
|
+
kind: "unresolved",
|
|
7836
|
+
source,
|
|
7837
|
+
reason: "missing_venue_id"
|
|
7838
|
+
};
|
|
7839
|
+
const locationValue = input.venuesById ? normalizeLocationMapValue(input.venuesById[venueId] ?? null, input.siteCountry) : null;
|
|
7840
|
+
return locationValue ? {
|
|
7841
|
+
kind: "venue",
|
|
7842
|
+
venueId,
|
|
7843
|
+
locationValue
|
|
7844
|
+
} : {
|
|
7845
|
+
kind: "unresolved",
|
|
7846
|
+
source,
|
|
7847
|
+
reason: "missing_venue_location"
|
|
7848
|
+
};
|
|
7849
|
+
}
|
|
7850
|
+
const locationValue = normalizeLocationMapValue(input.location, input.siteCountry);
|
|
7851
|
+
return locationValue ? {
|
|
7852
|
+
kind: "custom",
|
|
7853
|
+
locationValue
|
|
7854
|
+
} : {
|
|
7855
|
+
kind: "unresolved",
|
|
7856
|
+
source,
|
|
7857
|
+
reason: "missing_custom_location"
|
|
7858
|
+
};
|
|
7859
|
+
}
|
|
7860
|
+
function describeUnresolvedLocationMapLocation(resolvedLocation) {
|
|
7861
|
+
if (resolvedLocation.kind !== "unresolved") return null;
|
|
7862
|
+
switch (resolvedLocation.reason) {
|
|
7863
|
+
case "missing_business_address": return "Business address details are not configured yet.";
|
|
7864
|
+
case "missing_venue_id": return "Choose a venue to show this map.";
|
|
7865
|
+
case "missing_venue_location": return "The selected venue does not have location details yet.";
|
|
7866
|
+
case "missing_custom_location": return "Location details coming soon.";
|
|
7867
|
+
}
|
|
7868
|
+
}
|
|
7869
|
+
function normalizeLocationMapProps(input) {
|
|
7870
|
+
const parsedHours = parseWeeklyOpeningHours(input.openingHours);
|
|
7871
|
+
const resolvedLocation = resolveLocationMapLocation(input);
|
|
7872
|
+
const locationValue = resolvedLocation.kind === "unresolved" ? null : resolvedLocation.locationValue;
|
|
7873
|
+
const directionsLabel = normalizeLocationAddressText(input.directionsLabel) ?? LOCATION_MAP_DEFAULTS.directionsLabel;
|
|
7874
|
+
return {
|
|
7875
|
+
...locationMapDetails(locationValue),
|
|
7876
|
+
wider: input.wider === true,
|
|
7877
|
+
googleMapsLabel: normalizedGoogleMapsLabel(input.googleMapsLabel),
|
|
7878
|
+
resolvedLocation,
|
|
7879
|
+
locationValue,
|
|
7880
|
+
unresolvedMessage: describeUnresolvedLocationMapLocation(resolvedLocation),
|
|
7881
|
+
zoom: Math.min(LOCATION_MAP_LIMITS.zoom.max, Math.max(LOCATION_MAP_LIMITS.zoom.min, Math.round(normalizeNumber(input.zoom, LOCATION_MAP_DEFAULTS.zoom)))),
|
|
7882
|
+
heightPx: Math.min(LOCATION_MAP_LIMITS.heightPx.max, Math.max(LOCATION_MAP_LIMITS.heightPx.min, Math.round(normalizeNumber(input.heightPx, LOCATION_MAP_DEFAULTS.heightPx)))),
|
|
7883
|
+
openingHours: parsedHours.ok ? parsedHours.value : null,
|
|
7884
|
+
showOpeningHours: normalizeBoolean$1(input.showOpeningHours, true),
|
|
7885
|
+
showAddressText: normalizeBoolean$1(input.showAddressText, LOCATION_MAP_DEFAULTS.showAddressText),
|
|
7886
|
+
showDirections: normalizeBoolean$1(input.showDirections, LOCATION_MAP_DEFAULTS.showDirections),
|
|
7887
|
+
directionsLabel,
|
|
7888
|
+
className: typeof input.className === "string" ? input.className : null
|
|
7889
|
+
};
|
|
7890
|
+
}
|
|
7891
|
+
/** All render-ready permitted details come from the same resolved source value. */
|
|
7892
|
+
function locationMapDetails(value) {
|
|
7893
|
+
return {
|
|
7894
|
+
drawing: value?.drawing ?? null,
|
|
7895
|
+
doorNote: value?.doorNote ?? null,
|
|
7896
|
+
addressText: value?.addressText ?? null,
|
|
7897
|
+
location: toLocationCoordinates(value)
|
|
7898
|
+
};
|
|
7899
|
+
}
|
|
7900
|
+
function normalizedGoogleMapsLabel(value) {
|
|
7901
|
+
return normalizeLocationAddressText(value) ?? "Open in Google Maps";
|
|
7902
|
+
}
|
|
7903
|
+
function readLocationMapProjection(value, siteCountry) {
|
|
7904
|
+
const canonical = parseLocationValue(value);
|
|
7905
|
+
if (canonical.ok && canonical.value !== null) return projectPublicLocation(canonical.value, siteCountry);
|
|
7906
|
+
const projected = publicLocationSchema$1.safeParse(value);
|
|
7907
|
+
return projected.success ? projected.data : null;
|
|
7908
|
+
}
|
|
7909
|
+
//#endregion
|
|
7484
7910
|
//#region ../blocks/src/primitives/layout/Section.tsx
|
|
7485
7911
|
const Section = forwardRef(function Section({ as: Comp = "section", children, background, className = "", style, "data-slot": dataSlot, "data-arrangement": dataArrangement, "data-surface": dataSurface }, ref) {
|
|
7486
7912
|
return /* @__PURE__ */ jsx(Comp, {
|
|
@@ -7952,7 +8378,7 @@ function getIslandRootProps(kind, id) {
|
|
|
7952
8378
|
return resolved;
|
|
7953
8379
|
}
|
|
7954
8380
|
function serializeIslandProps(value) {
|
|
7955
|
-
return JSON.stringify(value).replace(/</g, "\\u003c");
|
|
8381
|
+
return JSON.stringify(serializeSurfaceTree(value)).replace(/</g, "\\u003c");
|
|
7956
8382
|
}
|
|
7957
8383
|
function IslandPropsScript({ value }) {
|
|
7958
8384
|
return /* @__PURE__ */ jsx("script", {
|
|
@@ -8289,103 +8715,6 @@ function HeaderControlNode({ className, children, "aria-label": label, "aria-exp
|
|
|
8289
8715
|
});
|
|
8290
8716
|
}
|
|
8291
8717
|
//#endregion
|
|
8292
|
-
//#region ../blocks/src/system/runtime/nodes/svg.tsx
|
|
8293
|
-
/**
|
|
8294
|
-
* Strict SVG-`transform` validator.
|
|
8295
|
-
*
|
|
8296
|
-
* Accepts only a whitespace/comma-separated list of the geometric transform
|
|
8297
|
-
* functions (`translate`/`rotate`/`scale`/`skewX`/`skewY`/`matrix`) whose
|
|
8298
|
-
* arguments are plain numbers. This deliberately rejects anything else —
|
|
8299
|
-
* `url(...)`, CSS functions, `javascript:`, angle/length units, stray letters —
|
|
8300
|
-
* so a persisted custom-block tree can't smuggle an executable or exfiltrating
|
|
8301
|
-
* value into the attribute.
|
|
8302
|
-
*/
|
|
8303
|
-
const TRANSFORM_NUMBER = String.raw`-?(?:\d+\.?\d*|\.\d+)(?:e-?\d+)?`;
|
|
8304
|
-
const TRANSFORM_ARGS = String.raw`${TRANSFORM_NUMBER}(?:[\s,]+${TRANSFORM_NUMBER})*`;
|
|
8305
|
-
const TRANSFORM_FN = String.raw`(?:translate|rotate|scale|skewX|skewY|matrix)\(\s*${TRANSFORM_ARGS}\s*\)`;
|
|
8306
|
-
const SAFE_TRANSFORM_RE = new RegExp(String.raw`^\s*${TRANSFORM_FN}(?:[\s,]*${TRANSFORM_FN})*\s*$`);
|
|
8307
|
-
function safeTransform(value) {
|
|
8308
|
-
if (typeof value !== "string") return void 0;
|
|
8309
|
-
const trimmed = value.trim();
|
|
8310
|
-
if (trimmed.length === 0) return void 0;
|
|
8311
|
-
return SAFE_TRANSFORM_RE.test(trimmed) ? trimmed : void 0;
|
|
8312
|
-
}
|
|
8313
|
-
/**
|
|
8314
|
-
* Turn paint props into a CSS style object. Colour values pass through as-is so
|
|
8315
|
-
* they may reference theme tokens via `var()`, which only resolves in a CSS
|
|
8316
|
-
* property context (not in a bare presentation attribute).
|
|
8317
|
-
*/
|
|
8318
|
-
function paintStyle(shape) {
|
|
8319
|
-
const style = {};
|
|
8320
|
-
if (shape.fill !== void 0) style.fill = shape.fill;
|
|
8321
|
-
if (shape.stroke !== void 0) style.stroke = shape.stroke;
|
|
8322
|
-
if (shape.strokeWidth !== void 0) style.strokeWidth = shape.strokeWidth;
|
|
8323
|
-
if (shape.fillOpacity !== void 0) style.fillOpacity = shape.fillOpacity;
|
|
8324
|
-
if (shape.strokeOpacity !== void 0) style.strokeOpacity = shape.strokeOpacity;
|
|
8325
|
-
if (shape.strokeLinecap !== void 0) style.strokeLinecap = shape.strokeLinecap;
|
|
8326
|
-
if (shape.strokeLinejoin !== void 0) style.strokeLinejoin = shape.strokeLinejoin;
|
|
8327
|
-
if (shape.strokeDasharray !== void 0) style.strokeDasharray = shape.strokeDasharray;
|
|
8328
|
-
return style;
|
|
8329
|
-
}
|
|
8330
|
-
function renderShape(shape, key) {
|
|
8331
|
-
const style = paintStyle(shape);
|
|
8332
|
-
const transform = safeTransform(shape.transform);
|
|
8333
|
-
switch (shape.kind) {
|
|
8334
|
-
case "path": return /* @__PURE__ */ jsx("path", {
|
|
8335
|
-
d: shape.d,
|
|
8336
|
-
style,
|
|
8337
|
-
transform
|
|
8338
|
-
}, key);
|
|
8339
|
-
case "ellipse": return /* @__PURE__ */ jsx("ellipse", {
|
|
8340
|
-
cx: shape.cx,
|
|
8341
|
-
cy: shape.cy,
|
|
8342
|
-
rx: shape.rx,
|
|
8343
|
-
ry: shape.ry,
|
|
8344
|
-
style,
|
|
8345
|
-
transform
|
|
8346
|
-
}, key);
|
|
8347
|
-
case "circle": return /* @__PURE__ */ jsx("circle", {
|
|
8348
|
-
cx: shape.cx,
|
|
8349
|
-
cy: shape.cy,
|
|
8350
|
-
r: shape.r,
|
|
8351
|
-
style,
|
|
8352
|
-
transform
|
|
8353
|
-
}, key);
|
|
8354
|
-
case "rect": return /* @__PURE__ */ jsx("rect", {
|
|
8355
|
-
x: shape.x,
|
|
8356
|
-
y: shape.y,
|
|
8357
|
-
width: shape.width,
|
|
8358
|
-
height: shape.height,
|
|
8359
|
-
rx: shape.rx,
|
|
8360
|
-
ry: shape.ry,
|
|
8361
|
-
style,
|
|
8362
|
-
transform
|
|
8363
|
-
}, key);
|
|
8364
|
-
case "line": return /* @__PURE__ */ jsx("line", {
|
|
8365
|
-
x1: shape.x1,
|
|
8366
|
-
y1: shape.y1,
|
|
8367
|
-
x2: shape.x2,
|
|
8368
|
-
y2: shape.y2,
|
|
8369
|
-
style,
|
|
8370
|
-
transform
|
|
8371
|
-
}, key);
|
|
8372
|
-
default: return null;
|
|
8373
|
-
}
|
|
8374
|
-
}
|
|
8375
|
-
const SvgNode = ({ blockId: _blockId, blockKind: _blockKind, blockContent: _blockContent, fragmentRegistry: _fragmentRegistry, pathBase: _pathBase, viewBox, width, height, className, style, ariaHidden = true, shapes }) => {
|
|
8376
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
8377
|
-
viewBox,
|
|
8378
|
-
width,
|
|
8379
|
-
height,
|
|
8380
|
-
className,
|
|
8381
|
-
style,
|
|
8382
|
-
"aria-hidden": ariaHidden,
|
|
8383
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8384
|
-
fill: "none",
|
|
8385
|
-
children: (Array.isArray(shapes) ? shapes : []).map((shape, index) => renderShape(shape, index))
|
|
8386
|
-
});
|
|
8387
|
-
};
|
|
8388
|
-
//#endregion
|
|
8389
8718
|
//#region ../blocks/src/system/runtime/nodes/appointment-services.tsx
|
|
8390
8719
|
const publicVenueSchema = z.object({
|
|
8391
8720
|
name: z.string(),
|
|
@@ -8793,15 +9122,6 @@ function appointmentServicesListing(view, arrangement) {
|
|
|
8793
9122
|
} : view;
|
|
8794
9123
|
}
|
|
8795
9124
|
//#endregion
|
|
8796
|
-
//#region ../blocks/src/system/blocks/shared/teamMembers.ts
|
|
8797
|
-
const teamMemberSpecialtiesInputSchema = z.union([z.string(), z.array(z.string())]).nullish();
|
|
8798
|
-
function parseTeamMemberSpecialties(value) {
|
|
8799
|
-
const parsed = teamMemberSpecialtiesInputSchema.safeParse(value);
|
|
8800
|
-
if (!parsed.success) return [];
|
|
8801
|
-
const parts = typeof parsed.data === "string" ? parsed.data.split(/\r?\n|,/) : parsed.data ?? [];
|
|
8802
|
-
return [...new Set(parts.map((part) => part.trim()).filter(Boolean))];
|
|
8803
|
-
}
|
|
8804
|
-
//#endregion
|
|
8805
9125
|
//#region ../blocks/src/system/runtime/nodes/team-members.tsx
|
|
8806
9126
|
const teamMemberCardSchema = z.object({
|
|
8807
9127
|
id: z.string().optional(),
|
|
@@ -8810,12 +9130,13 @@ const teamMemberCardSchema = z.object({
|
|
|
8810
9130
|
bio: z.union([z.string(), RichTextDocSchema]).nullish(),
|
|
8811
9131
|
profileBio: RichTextDocSchema.nullish(),
|
|
8812
9132
|
photo: runtimeMediaSchema.refine((value) => value.type === "image").nullish(),
|
|
9133
|
+
summary: z.string().nullish(),
|
|
8813
9134
|
profilePath: z.string().nullish(),
|
|
8814
9135
|
specialties: z.unknown().transform(parseTeamMemberSpecialties)
|
|
8815
9136
|
});
|
|
8816
9137
|
/** Staff and manual members meet at one boundary; Look data chooses biography length. */
|
|
8817
|
-
function teamMemberCardContent(member, index, biographySource) {
|
|
8818
|
-
const biography = biographySource === "profile" && member.profileBio ? member.profileBio : member.bio;
|
|
9138
|
+
function teamMemberCardContent(member, index, biographySource, cardBiography) {
|
|
9139
|
+
const biography = cardBiography === "any" ? cardText(teamMemberCardBiography(member)) : biographySource === "profile" && member.profileBio ? member.profileBio : member.bio;
|
|
8819
9140
|
const href = sanitizeHref(member.profilePath);
|
|
8820
9141
|
return {
|
|
8821
9142
|
id: member.id ?? `member-${index}`,
|
|
@@ -8833,12 +9154,83 @@ function teamMemberCardContent(member, index, biographySource) {
|
|
|
8833
9154
|
} } : {}
|
|
8834
9155
|
};
|
|
8835
9156
|
}
|
|
9157
|
+
function cardText(biography) {
|
|
9158
|
+
if (!biography) return null;
|
|
9159
|
+
return biography.kind === "document" ? biography.document : biography.paragraphs.join("\n\n");
|
|
9160
|
+
}
|
|
9161
|
+
/**
|
|
9162
|
+
* The quiet line under an "About" heading: the person's name and role. The
|
|
9163
|
+
* name is left out when the heading already says it, so it isn't read twice.
|
|
9164
|
+
*/
|
|
9165
|
+
function teamMemberAboutLine(input) {
|
|
9166
|
+
const name = input.name.trim();
|
|
9167
|
+
const parts = [name.length > 0 && (input.heading ?? "").toLocaleLowerCase().includes(name.toLocaleLowerCase()) ? "" : name, input.role?.trim() ?? ""].filter(Boolean);
|
|
9168
|
+
return parts.length > 0 ? parts.join(", ") : null;
|
|
9169
|
+
}
|
|
9170
|
+
/** The one person a section can be about: the list's only member, with a bio to read. */
|
|
9171
|
+
function personToWriteAbout(members) {
|
|
9172
|
+
const [member, ...others] = members;
|
|
9173
|
+
const biography = member && others.length === 0 ? teamMemberBiography(member) : null;
|
|
9174
|
+
return member && biography ? {
|
|
9175
|
+
member,
|
|
9176
|
+
biography
|
|
9177
|
+
} : null;
|
|
9178
|
+
}
|
|
9179
|
+
/**
|
|
9180
|
+
* One person given the section: their photo in the look's frame, a name and
|
|
9181
|
+
* role line, and their bio in full. The section's heading stays where the
|
|
9182
|
+
* block puts it; the stylesheet sets it beside the photo.
|
|
9183
|
+
*/
|
|
9184
|
+
function TeamMemberAbout({ member, biography, props }) {
|
|
9185
|
+
const line = teamMemberAboutLine({
|
|
9186
|
+
heading: props.sectionHeading,
|
|
9187
|
+
name: member.name,
|
|
9188
|
+
role: member.role
|
|
9189
|
+
});
|
|
9190
|
+
const photo = props.showPhotos === false ? null : member.photo;
|
|
9191
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
9192
|
+
className: "rb-team-about",
|
|
9193
|
+
"data-team-about": true,
|
|
9194
|
+
"data-has-photo": String(Boolean(photo)),
|
|
9195
|
+
children: [
|
|
9196
|
+
photo ? /* @__PURE__ */ jsx("div", {
|
|
9197
|
+
className: "rb-team-about-photo",
|
|
9198
|
+
...listLookSlot(props, "item-media"),
|
|
9199
|
+
children: /* @__PURE__ */ jsx(MediaNodeServer, {
|
|
9200
|
+
value: photo,
|
|
9201
|
+
size: ImagePresets.hero,
|
|
9202
|
+
...listLookSlot(props, "photo")
|
|
9203
|
+
})
|
|
9204
|
+
}) : null,
|
|
9205
|
+
line ? /* @__PURE__ */ jsx("p", {
|
|
9206
|
+
className: "rb-team-about-line",
|
|
9207
|
+
...listLookSlot(props, "item-meta"),
|
|
9208
|
+
children: line
|
|
9209
|
+
}) : null,
|
|
9210
|
+
biography.kind === "document" ? /* @__PURE__ */ jsx(RichText, {
|
|
9211
|
+
doc: biography.document,
|
|
9212
|
+
className: "rb-team-about-bio",
|
|
9213
|
+
...listLookSlot(props, "item-text"),
|
|
9214
|
+
lookSlots: props.lookSlots
|
|
9215
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
9216
|
+
className: "rb-team-about-bio",
|
|
9217
|
+
...listLookSlot(props, "item-text"),
|
|
9218
|
+
children: biography.paragraphs.map((paragraph, index) => /* @__PURE__ */ jsx("p", { children: paragraph }, index))
|
|
9219
|
+
})
|
|
9220
|
+
]
|
|
9221
|
+
});
|
|
9222
|
+
}
|
|
8836
9223
|
function TeamMembersNode(props) {
|
|
8837
9224
|
const parsed = z.array(teamMemberCardSchema).safeParse(props.source === "site_staff" ? props.siteMembers : props.members);
|
|
8838
9225
|
if (!parsed.success) return null;
|
|
9226
|
+
const about = props.onePerson === "about" ? personToWriteAbout(parsed.data) : null;
|
|
9227
|
+
if (about) return /* @__PURE__ */ jsx(TeamMemberAbout, {
|
|
9228
|
+
...about,
|
|
9229
|
+
props
|
|
9230
|
+
});
|
|
8839
9231
|
return /* @__PURE__ */ jsx(CardListItems, {
|
|
8840
9232
|
Carousel: props.Carousel,
|
|
8841
|
-
items: parsed.data.map((member, index) => teamMemberCardContent(member, index, props.biographySource)),
|
|
9233
|
+
items: parsed.data.map((member, index) => teamMemberCardContent(member, index, props.biographySource, props.cardBiography)),
|
|
8842
9234
|
presentation: {
|
|
8843
9235
|
...props,
|
|
8844
9236
|
bodyParts: [
|
|
@@ -8934,22 +9326,6 @@ function BookingFormSSR({ blockId, children, ...sourceProps }) {
|
|
|
8934
9326
|
}
|
|
8935
9327
|
//#endregion
|
|
8936
9328
|
//#region ../blocks/src/system/runtime/nodes/event-details.server.tsx
|
|
8937
|
-
function ServerVenueMap({ venueName, className, height }) {
|
|
8938
|
-
return /* @__PURE__ */ jsx("div", {
|
|
8939
|
-
className: "event-details-map-wrap rb-w-full rb-ml-auto",
|
|
8940
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
8941
|
-
className,
|
|
8942
|
-
style: {
|
|
8943
|
-
height: height ?? 200,
|
|
8944
|
-
width: "100%",
|
|
8945
|
-
borderRadius: "0.5rem",
|
|
8946
|
-
overflow: "hidden",
|
|
8947
|
-
backgroundColor: "rgb(var(--tb-surface))"
|
|
8948
|
-
},
|
|
8949
|
-
"aria-label": `Map showing ${venueName}`
|
|
8950
|
-
})
|
|
8951
|
-
});
|
|
8952
|
-
}
|
|
8953
9329
|
function EventDetailsHydration({ props, presentation, scopedEvents, subject, nowIso }) {
|
|
8954
9330
|
return /* @__PURE__ */ jsx(IslandPropsScript, { value: {
|
|
8955
9331
|
...props.arrangement ? {
|
|
@@ -8963,6 +9339,7 @@ function EventDetailsHydration({ props, presentation, scopedEvents, subject, now
|
|
|
8963
9339
|
occurrenceContext: props.occurrenceContext ?? null,
|
|
8964
9340
|
subject,
|
|
8965
9341
|
events: scopedEvents,
|
|
9342
|
+
venueDrawing: props.venueDrawing ?? null,
|
|
8966
9343
|
showVenue: presentation.showVenue,
|
|
8967
9344
|
showMap: presentation.showMap,
|
|
8968
9345
|
showOtherDates: presentation.showOtherDates,
|
|
@@ -9009,8 +9386,7 @@ function EventDetailsSSR(props) {
|
|
|
9009
9386
|
}),
|
|
9010
9387
|
/* @__PURE__ */ jsx(EventDetailsView, {
|
|
9011
9388
|
...presentation,
|
|
9012
|
-
mapClassName: "venue-map event-details-map"
|
|
9013
|
-
renderVenueMap: ServerVenueMap
|
|
9389
|
+
mapClassName: "venue-map event-details-map"
|
|
9014
9390
|
}),
|
|
9015
9391
|
children
|
|
9016
9392
|
]
|
|
@@ -9018,32 +9394,32 @@ function EventDetailsSSR(props) {
|
|
|
9018
9394
|
}
|
|
9019
9395
|
//#endregion
|
|
9020
9396
|
//#region ../blocks/src/system/runtime/nodes/location-map.server.tsx
|
|
9397
|
+
const lookPresentationSchema = z.object({
|
|
9398
|
+
lookSlots: lookListPresentationSchemaShape.lookSlots,
|
|
9399
|
+
itemSurfaces: lookListPresentationSchemaShape.itemSurfaces
|
|
9400
|
+
});
|
|
9021
9401
|
function LocationMapSSR(props) {
|
|
9022
9402
|
const normalized = normalizeLocationMapProps(props);
|
|
9023
|
-
|
|
9403
|
+
if (normalized.resolvedLocation.kind === "unresolved") return null;
|
|
9024
9404
|
return /* @__PURE__ */ jsxs("div", {
|
|
9025
9405
|
className: `location-map ${normalized.className ?? ""}`.trim(),
|
|
9026
9406
|
"data-block": "location-map",
|
|
9027
|
-
|
|
9028
|
-
children: [
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
"aria-label": addressText ? `Map showing ${addressText}` : "Map showing business location"
|
|
9042
|
-
})
|
|
9043
|
-
}),
|
|
9044
|
-
props.children
|
|
9045
|
-
]
|
|
9407
|
+
style: props.mapStyle ?? void 0,
|
|
9408
|
+
children: [/* @__PURE__ */ jsx(LocationMapView, {
|
|
9409
|
+
...normalized,
|
|
9410
|
+
showMap: props.showMap !== false,
|
|
9411
|
+
lookLayout: props.lookSlots != null,
|
|
9412
|
+
detailsSlot: lookDetailsSlot(props)
|
|
9413
|
+
}), props.children]
|
|
9414
|
+
});
|
|
9415
|
+
}
|
|
9416
|
+
/** Legacy and automatic-Look markup carries no slot; Look-only layouts mark the details as the panel. */
|
|
9417
|
+
function lookDetailsSlot(props) {
|
|
9418
|
+
const presentation = lookPresentationSchema.safeParse({
|
|
9419
|
+
lookSlots: props.lookSlots ?? void 0,
|
|
9420
|
+
itemSurfaces: props.itemSurfaces ?? void 0
|
|
9046
9421
|
});
|
|
9422
|
+
return presentation.success ? listLookSlot(presentation.data, "panel") : {};
|
|
9047
9423
|
}
|
|
9048
9424
|
//#endregion
|
|
9049
9425
|
//#region ../blocks/src/system/runtime/nodes/events/EventSpotlight.tsx
|
|
@@ -9170,9 +9546,8 @@ const EventCombinedSSR = ({ blockId, ...source }) => {
|
|
|
9170
9546
|
//#endregion
|
|
9171
9547
|
//#region ../blocks/src/system/blocks/offerings-preview/itemData.ts
|
|
9172
9548
|
function buildItemDataMap(props) {
|
|
9173
|
-
const routeCandidates = props.routeCandidates?.routes ?? [];
|
|
9174
9549
|
const entries = OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) => [definition.sourceKey, eventDataFromMaybeArray(props[definition.dataKey])]);
|
|
9175
|
-
return new Map([...entries, ["course", runDataFromMaybeArray(props.wholeSeriesRunEvents
|
|
9550
|
+
return new Map([...entries, ["course", runDataFromMaybeArray(props.wholeSeriesRunEvents)]]);
|
|
9176
9551
|
}
|
|
9177
9552
|
function eventDataFromMaybeArray(events) {
|
|
9178
9553
|
return events ? {
|
|
@@ -9186,7 +9561,7 @@ function eventDataFromMaybeArray(events) {
|
|
|
9186
9561
|
reason: "not_loaded"
|
|
9187
9562
|
};
|
|
9188
9563
|
}
|
|
9189
|
-
function runDataFromMaybeArray(events
|
|
9564
|
+
function runDataFromMaybeArray(events) {
|
|
9190
9565
|
if (!events) return {
|
|
9191
9566
|
kind: "failed",
|
|
9192
9567
|
reason: "not_loaded"
|
|
@@ -9196,7 +9571,7 @@ function runDataFromMaybeArray(events, routes) {
|
|
|
9196
9571
|
items: [...groupPublicEventsByRun(events)].map((run) => ({
|
|
9197
9572
|
kind: "run",
|
|
9198
9573
|
run,
|
|
9199
|
-
path:
|
|
9574
|
+
path: run.representative.destination.kind === "native" ? run.representative.destination.path : null
|
|
9200
9575
|
}))
|
|
9201
9576
|
};
|
|
9202
9577
|
}
|
|
@@ -9223,9 +9598,9 @@ function buildLoadedOfferingsPreviewListing(input) {
|
|
|
9223
9598
|
//#endregion
|
|
9224
9599
|
//#region ../blocks/src/system/runtime/nodes/events/shared/offeringNextDates.ts
|
|
9225
9600
|
/** One occurrence batch supplies every occurrence-targeted card in the block. */
|
|
9226
|
-
function offeringDatesBySeries(events, now) {
|
|
9601
|
+
function offeringDatesBySeries(events, now, booking) {
|
|
9227
9602
|
const groups = events.reduce((result, event) => new Map([...result, [event.seriesId, [...result.get(event.seriesId) ?? [], event]]]), /* @__PURE__ */ new Map());
|
|
9228
|
-
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))]));
|
|
9603
|
+
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))]));
|
|
9229
9604
|
}
|
|
9230
9605
|
/** Whole-series sessions share the run-level booking capacity, by contract. */
|
|
9231
9606
|
function offeringRunDates(event, now) {
|
|
@@ -9233,7 +9608,7 @@ function offeringRunDates(event, now) {
|
|
|
9233
9608
|
const nextStart = nextLiveRunSessionStartMs(event.run.sessions, now);
|
|
9234
9609
|
return nextStart === null ? [] : orderedLiveRunSessions(event.run.sessions).filter((session) => Date.parse(session.startsAt) >= nextStart).slice(0, 3).map((session) => offeringDateRow(session, event));
|
|
9235
9610
|
}
|
|
9236
|
-
function offeringDateRow(session, event) {
|
|
9611
|
+
function offeringDateRow(session, event, booking) {
|
|
9237
9612
|
const options = eventDateOptions({
|
|
9238
9613
|
...event,
|
|
9239
9614
|
timeZone: session.timeZone
|
|
@@ -9241,9 +9616,12 @@ function offeringDateRow(session, event) {
|
|
|
9241
9616
|
const date = formatEventCompactDateRail(session.startsAt, options, "as-written");
|
|
9242
9617
|
const capacity = getEventAvailability(event);
|
|
9243
9618
|
const status = getEventAvailabilityStatus(event);
|
|
9619
|
+
const label = `${date.weekday} ${date.day} ${date.month}, ${formatTime(session.startsAt, options)}`;
|
|
9620
|
+
const bookingLink = booking?.(event, label) ?? null;
|
|
9244
9621
|
return {
|
|
9245
9622
|
startsAt: session.startsAt,
|
|
9246
|
-
label
|
|
9623
|
+
label,
|
|
9624
|
+
...bookingLink ? { booking: bookingLink } : {},
|
|
9247
9625
|
places: capacity.available === null ? null : {
|
|
9248
9626
|
label: capacity.isFull ? "Sold out" : `${capacity.available} place${capacity.available === 1 ? "" : "s"} left`,
|
|
9249
9627
|
status: capacity.isFull ? "full" : status.status === "filling" ? "low" : "available"
|
|
@@ -9261,6 +9639,10 @@ function OfferingsCatalogue(props) {
|
|
|
9261
9639
|
presets: props.bookingOfferingPresets,
|
|
9262
9640
|
events: props.catalogueEvents
|
|
9263
9641
|
});
|
|
9642
|
+
const shape = offeringsCatalogueShape(state, {
|
|
9643
|
+
listDates: props.lookSlots !== void 0 && props.datesMode === "next-dates",
|
|
9644
|
+
oneOfferingRequested: props.oneOffering === true
|
|
9645
|
+
});
|
|
9264
9646
|
switch (state.kind) {
|
|
9265
9647
|
case "no-groups": return renderCatalogueEmpty({
|
|
9266
9648
|
props,
|
|
@@ -9273,7 +9655,8 @@ function OfferingsCatalogue(props) {
|
|
|
9273
9655
|
case "by-date": return renderCatalogueMergedList({
|
|
9274
9656
|
props,
|
|
9275
9657
|
listing: state,
|
|
9276
|
-
now
|
|
9658
|
+
now,
|
|
9659
|
+
shape
|
|
9277
9660
|
});
|
|
9278
9661
|
case "by-type": return props.lookSlots ? /* @__PURE__ */ jsxs("div", {
|
|
9279
9662
|
...listLookSlot(props, "layout"),
|
|
@@ -9286,26 +9669,37 @@ function OfferingsCatalogue(props) {
|
|
|
9286
9669
|
now,
|
|
9287
9670
|
children: void 0
|
|
9288
9671
|
},
|
|
9289
|
-
groups: state.groups
|
|
9672
|
+
groups: state.groups,
|
|
9673
|
+
shape
|
|
9290
9674
|
}) })]
|
|
9291
9675
|
}) : renderOfferingsCatalogueGroups({
|
|
9292
9676
|
props: {
|
|
9293
9677
|
...props,
|
|
9294
9678
|
now
|
|
9295
9679
|
},
|
|
9296
|
-
groups: state.groups
|
|
9680
|
+
groups: state.groups,
|
|
9681
|
+
shape
|
|
9297
9682
|
});
|
|
9298
9683
|
default: return assertNever$1(state);
|
|
9299
9684
|
}
|
|
9300
9685
|
}
|
|
9301
|
-
|
|
9686
|
+
/** The hook the single-offering layout hangs from; absent for several. */
|
|
9687
|
+
function catalogueShapeHook(shape) {
|
|
9688
|
+
return shape === "single" ? { "data-has-one-offering": "true" } : {};
|
|
9689
|
+
}
|
|
9690
|
+
/** One offering has room for a Book link on each date; several keep plain rows. */
|
|
9691
|
+
function catalogueDateBooking(shape, pathname) {
|
|
9692
|
+
return shape === "single" ? (event, dateLabel) => eventDateBookingLink(event, pathname ?? "/", dateLabel) : void 0;
|
|
9693
|
+
}
|
|
9694
|
+
function renderOfferingsCatalogueGroups({ props, groups, shape }) {
|
|
9302
9695
|
const enabledSeriesIds = new Set(groups.flatMap((load) => load.kind === "items" ? load.items.map((item) => item.kind === "event" ? item.event.seriesId : item.run.eventSeriesId) : []));
|
|
9303
|
-
const quickDateEvents = selectQuickDateEvents((props.quickDateEvents ?? []).filter((event) => enabledSeriesIds.has(event.seriesId)));
|
|
9696
|
+
const quickDateEvents = shape === "single" ? [] : selectQuickDateEvents((props.quickDateEvents ?? []).filter((event) => enabledSeriesIds.has(event.seriesId)));
|
|
9304
9697
|
const populated = groups.flatMap(catalogueGroupItems);
|
|
9305
9698
|
return /* @__PURE__ */ jsxs("div", {
|
|
9306
9699
|
className: "offerings-preview rb-flex rb-flex-col rb-gap-6",
|
|
9307
9700
|
"data-block": "offerings-preview",
|
|
9308
9701
|
"data-offerings-mode": "catalogue",
|
|
9702
|
+
...catalogueShapeHook(shape),
|
|
9309
9703
|
children: [
|
|
9310
9704
|
quickDateEvents.length > 0 ? /* @__PURE__ */ jsx("div", {
|
|
9311
9705
|
className: "offerings-preview-quick-dates rb-flex rb-flex-col rb-gap-4",
|
|
@@ -9322,28 +9716,30 @@ function renderOfferingsCatalogueGroups({ props, groups }) {
|
|
|
9322
9716
|
children: populated.map(({ group, items }) => /* @__PURE__ */ jsxs("section", {
|
|
9323
9717
|
className: "rb-flex rb-flex-col rb-gap-5",
|
|
9324
9718
|
"data-offering-source": group.sourceKey,
|
|
9325
|
-
children: [/* @__PURE__ */ jsx("h3", {
|
|
9719
|
+
children: [shape === "single" ? null : /* @__PURE__ */ jsx("h3", {
|
|
9326
9720
|
...listLookSlot(props, "heading"),
|
|
9327
9721
|
children: group.title
|
|
9328
9722
|
}), renderCatalogueItems({
|
|
9329
9723
|
props,
|
|
9330
|
-
items
|
|
9724
|
+
items,
|
|
9725
|
+
shape,
|
|
9726
|
+
groupTitle: group.title
|
|
9331
9727
|
})]
|
|
9332
9728
|
}, group.sourceKey))
|
|
9333
9729
|
})
|
|
9334
9730
|
]
|
|
9335
9731
|
});
|
|
9336
9732
|
}
|
|
9337
|
-
function renderCatalogueItems({ props, items }) {
|
|
9733
|
+
function renderCatalogueItems({ props, items, shape, groupTitle }) {
|
|
9338
9734
|
const events = items.map((item) => item.kind === "event" ? item.event : item.run.representative);
|
|
9339
9735
|
if (props.lookSlots) {
|
|
9340
9736
|
const now = props.now;
|
|
9341
|
-
const dates = offeringDatesBySeries(props.quickDateEvents ?? [], now);
|
|
9737
|
+
const dates = offeringDatesBySeries(props.quickDateEvents ?? [], now, catalogueDateBooking(shape, props.pathname));
|
|
9342
9738
|
return CardListItems({
|
|
9343
9739
|
Carousel: props.Carousel,
|
|
9344
|
-
Title: "h4",
|
|
9740
|
+
Title: shape === "single" ? "h3" : "h4",
|
|
9345
9741
|
presentation: props,
|
|
9346
|
-
items: items.map((item) => catalogueCardContent(item, now, dates))
|
|
9742
|
+
items: items.map((item) => catalogueCardContent(item, now, dates, shape === "single" ? groupTitle : void 0))
|
|
9347
9743
|
});
|
|
9348
9744
|
}
|
|
9349
9745
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -9378,11 +9774,12 @@ function renderCatalogueEmpty({ props, failed }) {
|
|
|
9378
9774
|
})]
|
|
9379
9775
|
});
|
|
9380
9776
|
}
|
|
9381
|
-
function renderCatalogueMergedList({ props, listing, now }) {
|
|
9382
|
-
const dates = offeringDatesBySeries(props.quickDateEvents ?? [], now);
|
|
9777
|
+
function renderCatalogueMergedList({ props, listing, now, shape }) {
|
|
9778
|
+
const dates = offeringDatesBySeries(props.quickDateEvents ?? [], now, catalogueDateBooking(shape, props.pathname));
|
|
9383
9779
|
const items = listing.items.map(({ item, group }) => catalogueCardContent(item, now, dates, group.singularLabel));
|
|
9384
9780
|
return /* @__PURE__ */ jsxs("div", {
|
|
9385
9781
|
...listLookSlot(props, "layout"),
|
|
9782
|
+
...catalogueShapeHook(shape),
|
|
9386
9783
|
children: [/* @__PURE__ */ jsx("header", {
|
|
9387
9784
|
...listLookSlot(props, "head"),
|
|
9388
9785
|
children: props.children
|
|
@@ -11137,4 +11534,4 @@ const serverComponentRegistry = {
|
|
|
11137
11534
|
...buildServerRegistryFromEntries(runtimeBackedBlockServerEntries)
|
|
11138
11535
|
};
|
|
11139
11536
|
//#endregion
|
|
11140
|
-
export {
|
|
11537
|
+
export { composeFragments as $, normalizeSelectSource as $t, eventRegistrationBlockDefinition as A, lookLeadSlotTransform as At, markEditableSurfaceForwarding as B, testimonialsReadiness as Bt, cartBlockDefinition as C, containerStylesField as Cn, richText as Ct, eventCalendarBlockDefinition as D, createButtonGroup as Dn, videoEmbed as Dt, shopBlockDefinition as E, getAnchorClasses as En, text as Et, cardListPhotoNumberFields as F, PUBLIC_DOWNLOAD_MEDIA_TYPES as Ft, normalizeMailingListBlockContent as G, DEFAULT_MEDIA_FIELD_KINDS as Gt, desktopOnlyDisplay as H, loadedReadinessFact as Ht, cardListPresentationBindings as I, augmentManifest as It, createBlockManifest as J, blockSectionDeclarationShape as Jt, formBlockDefinition as K, PUBLIC_FILE_FIELD_KINDS as Kt, cardListSectionActionFields as L, chosenString as Lt, FEATURE_CARD_ICON_TREATMENTS as M, lookSkinSlotTransform as Mt, cardListSectionAction as N, lookSlot as Nt, eventListingBlockDefinition as O, createButtonVariantField as On, when as Ot, cardListKnobFields as P, parseBlockIconValue as Pt, buildFragmentDataLoaders as Q, fieldSchema as Qt, normalizeCardListContent as R, galleryReadiness as Rt, checkoutBlockDefinition as S, cardStylesField as Sn, repeat as St, productListBlockDefinition as T, BACKGROUND_POSITION_PRESET_VALUES as Tn, stack as Tt, mobileOnlyDisplay as U, pageTemplateFromEntry as Ut, splitPositioningClasses as V, admitReadinessFacts as Vt, teamMemberCardBiographyFallback as W, unavailableReadinessFact as Wt, withApiBindings as X, createSdkSelectField as Xt, formEmbedFragment as Y, builtInBlockKindsSchema as Yt, formCopyFragment as Z, createSiteOptionSelectField as Zt, normalizeLocationMapSource as _, cardStylingFields as _n, icon as _t, buildLoadedOfferingsPreviewListing as a, projectRepeaterGridLayout as an, styledContainer as at, sanitizeNewsletterSignupPublicContent as b, eventDisplayFields as bn, media as bt, HeaderSectionFrame as c, parseRepeaterGridInteger as cn, accordionList as ct, accordionIconColorStyle as d, resolveRepeaterGridRowFieldId as dn, button as dt, parseFieldDefinition as en, defineFragment as et, resolveAccordionIconStyle as f, resolveRepeaterGridSpanFieldId as fn, carousel as ft, normalizeLocationMapProps as g, linkSchema as gn, headerSection as gt, LOCATION_MAP_LIMITS as h, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as hn, form as ht, WeeklySlotAvailabilityView as i, validateSdkBlockDeclaration as in, styledSection as it, FEATURE_CARD_GENERATED_ICON_SIZE_PX as j, lookQuoteLimitTransform as jt, mapDrawingStyleBinding as k, lookCarouselRegionTransform as kt, accordionItemPartSlots as l, resolveRepeaterGridColumnFieldId as ln, bind as lt, LOCATION_MAP_DEFAULTS as m, bindingSchema as mn, fileDownload as mt, runtimeBackedBlockModes as n, validateManifestLookField as nn, sectionHeaderLayoutNodes as nt, LocationMapSSR as o, projectRepeaterGridLayoutForRendering as on, sectionContainer as ot, SectionNode as p, NodeSchema as pn, el as pt, formDataSchema as q, blockCategoryEnum as qt, runtimeBackedBlockServerEntries as r, sdkBlockPresentationShape as rn, resolveBackgroundColorValue as rt, buildAppointmentServicesView as s, buildRepeaterGridLayout as sn, backgroundFrame as st, serverComponentRegistry as t, parseFieldDefinitions as tn, sectionHeaderFields as tt, accordionLookAttributes as u, resolveRepeaterGridColumnsForBreakpoint as un, bookingForm as ut, resolveLocationMapLocation as v, columnsField as vn, inline as vt, productDetailBlockDefinition as w, sectionStylesField as wn, section as wt, giftingBlockDefinition as x, layoutField as xn, props as xt, newsletterSignupBlockDefinition as y, emptyStateField as yn, link as yt, composeHeaderSectionWrapperClassName as z, teamReadiness as zt };
|