@riverbankcms/sdk 0.181.0 → 0.182.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-CVCasDPz.d.ts → BlocksIslandsHydrator-Bvw2bUif.d.ts} +1 -1
- package/dist/_dts/{Page-Dtj2Ui3S.d.ts → Page-B2EAT-bE.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-D1f_60WW.d.ts → SdkPreviewMode-D0vww6rh.d.ts} +2 -2
- package/dist/_dts/{client-Chr9pNVW.d.ts → client-D6T430bk.d.ts} +1 -3
- package/dist/_dts/{content-types-kjccgopX.d.ts → content-types-wZVWccC6.d.ts} +2 -2
- package/dist/_dts/{contracts-BodaiS00.d.ts → contracts-B-vtOcr8.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-BS6kaJFp.d.ts → generatePageMetadata-CxfwHE6z.d.ts} +2 -2
- package/dist/_dts/{index-Brl6_I2j.d.ts → index-CEyYMhLJ.d.ts} +1 -1
- package/dist/_dts/{index-DG0OvBs0.d.ts → index-CQrb3Ccc.d.ts} +4 -4
- package/dist/_dts/{index-Dy50xUMK.d.ts → index-CciRW_w1.d.ts} +2 -2
- package/dist/_dts/{index-Diqt0PvG.d.ts → index-Cqxis-nv.d.ts} +1 -1
- package/dist/_dts/{index-CJkefwYh.d.ts → index-DIU-wL1M.d.ts} +2 -2
- package/dist/_dts/{index-D1WpKwQe.d.ts → index-DqPKdeTk.d.ts} +1 -1
- package/dist/_dts/{loadContent-BgxshKrA.d.ts → loadContent-D0wrxiSp.d.ts} +7 -7
- package/dist/_dts/{request-CA0izds5.d.ts → request-DEwxUSw8.d.ts} +130 -28
- package/dist/_dts/{resolveBlockData-ChQmwEd3.d.ts → resolveBlockData-VaG_MYbN.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BvGyvblj.d.ts → resolvePageContent-DTwklC_v.d.ts} +1 -1
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +7 -7
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/portal/index.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{serviceBookingOutline-BgFbJQhU.d.ts → serviceBookingOutline-DtQuFlID.d.ts} +6 -6
- package/dist/_dts/{types-CgS3xLk8.d.ts → types-B3RjeBLV.d.ts} +2 -2
- package/dist/_dts/{types-CQrsP1x_.d.ts → types-BvUSGQrw.d.ts} +3 -3
- package/dist/_dts/{types-R65DKjPn.d.ts → types-CkRFtBqd.d.ts} +7 -7
- package/dist/_dts/{validation-6LTIbuBA.d.ts → validation-BZA3DhcV.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DqZPz6oW.mjs → BlocksIslandsHydrator-CQMf0HdN.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-uWfR2kaG.mjs → BookingMailingListNote-7kdvuPow.mjs} +6 -6
- package/dist/client/{BookingQuestionFields-CyNIKw6k.mjs → BookingQuestionFields-BJI7mZuV.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-BGCX3zwG.mjs → CalendarNavigationChevron-DPUD6wjy.mjs} +7 -7
- package/dist/client/{DemoBookingPortalAccess-DFLPyuqe.mjs → DemoBookingPortalAccess-8kwNF9HN.mjs} +4 -4
- package/dist/client/{EventCalendar.client-zDL4-t-B.mjs → EventCalendar.client-Dhb14bcC.mjs} +9 -9
- package/dist/client/{EventCombined.client-uciDKLID.mjs → EventCombined.client-C1jEZBN9.mjs} +8 -8
- package/dist/client/{EventItem-CwzrjcRw.mjs → EventItem-Bb0ppG2N.mjs} +8 -176
- package/dist/client/{EventListWeekNavigation-ChvcnPma.mjs → EventListWeekNavigation-DMryCaNV.mjs} +1 -1
- package/dist/client/{EventListing.client-DA57Qoyx.mjs → EventListing.client-BuH5kKA3.mjs} +3 -3
- package/dist/client/{EventListing.view-DZ0qMFF4.mjs → EventListing.view-DsqvuulZ.mjs} +7 -7
- package/dist/client/{EventRegistrationPayment-DSqCJL8E.mjs → EventRegistrationPayment-D4FvQSFF.mjs} +31 -164
- package/dist/client/{Page-C7mygH_f.mjs → Page-sV6BJkXX.mjs} +172 -102
- package/dist/client/{SiteTermsAgreementField-B4z-e4Wq.mjs → SiteTermsAgreementField-VfSd6JU-.mjs} +2 -2
- package/dist/client/{StepIndicator-Dn_DY4oY.mjs → StepIndicator-B6o5B7g3.mjs} +1 -1
- package/dist/client/{StepIndicator-atfDU82W.mjs → StepIndicator-BTqO7cJl.mjs} +220 -19
- package/dist/client/{accessibleSurfaces-n6kS6Hct.mjs → accessibleSurfaces-BogaGutk.mjs} +966 -693
- package/dist/client/{accordion-CsW8U3ff.mjs → accordion-6cuswD_s.mjs} +1 -1
- package/dist/client/{booking-form.client-cBWM392H.mjs → booking-form.client-BOMe_SKi.mjs} +15 -15
- package/dist/client/{bookingForm-DgySpp6C.mjs → bookingForm-DSCH-VHo.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-BpGVdLFD.mjs → boxStyleClassNames-BFuqZCfz.mjs} +2 -2
- package/dist/client/{carousel-DJoleFV3.mjs → carousel-CGyQVV1M.mjs} +1 -1
- package/dist/client/{cart-EO5o6uPH.mjs → cart-BYOe7MCh.mjs} +3 -3
- package/dist/client/{cart.client-D_gPw45z.mjs → cart.client-BKFkaXdV.mjs} +1 -1
- package/dist/client/{checkout-NVfZW0kR.mjs → checkout-Dwd7Di77.mjs} +3 -3
- package/dist/client/{checkout.client-DD3JuqOy.mjs → checkout.client-C25hpi-z.mjs} +1 -1
- package/dist/client/{checkoutUrls-z2gXvlGw.mjs → checkoutUrls-tG788sw0.mjs} +1 -1
- package/dist/client/client.mjs +25 -6
- package/dist/client/{constants-CoOkvw__.mjs → constants-DdxFG3Ic.mjs} +1 -1
- package/dist/client/{context-CRhn9qzS.mjs → context-Hi1RuYEM.mjs} +23 -5
- package/dist/client/{dateFormatting-BnWB4L1s.mjs → dateFormatting-C8vBCHuo.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CWDGSTBu.mjs → demoPortalMagicLink-BAL5UIDG.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-tdP_-Z9o.mjs → enhanceHeaderSection-Dv1Lr9kJ.mjs} +3 -3
- package/dist/client/{event-registration.client-D7YYKySQ.mjs → event-registration.client-dB_Z7bb-.mjs} +12 -12
- package/dist/client/{eventCalendar-CsAfu5d0.mjs → eventCalendar-CQnRA4Ww.mjs} +4 -4
- package/dist/client/{eventCombined-VXJB5CoS.mjs → eventCombined-BDOG1hVp.mjs} +4 -4
- package/dist/client/{eventListing-B3KIZNfY.mjs → eventListing-DSVmhy9n.mjs} +4 -4
- package/dist/client/{eventRegistration-BP-dEk1c.mjs → eventRegistration-CD5mRtEH.mjs} +4 -4
- package/dist/client/{form-DM8Zbxbv.mjs → form-DWnlEVSK.mjs} +3 -3
- package/dist/client/{form.client-e2z_Tlgk.mjs → form.client-D7zmeqNI.mjs} +4 -4
- package/dist/client/{form.parts-Ctljy1a3.mjs → form.parts-C-G6N_MK.mjs} +1 -1
- package/dist/client/gifting/client.mjs +7 -7
- package/dist/client/{gifting-DWIsqQru.mjs → gifting-Cn0jidP5.mjs} +4 -4
- package/dist/client/{gifting.client-QsSWF0uA.mjs → gifting.client-DVo1YFLs.mjs} +4 -4
- package/dist/client/{gifting.parts-CedLgwa_.mjs → gifting.parts-Bak93gD2.mjs} +2 -2
- package/dist/client/{headerSection-DAkRkwb-.mjs → headerSection-DjQuj_6v.mjs} +2 -2
- package/dist/client/{newsletter-form.client-WYja9-WN.mjs → newsletter-form.client-rIYPziZC.mjs} +5 -5
- package/dist/client/{newsletter-form.interactive-RuM86VAv.mjs → newsletter-form.interactive-DVt3enLr.mjs} +162 -135
- package/dist/client/{newsletter-form.parts-2petDnWv.mjs → newsletter-form.parts-CH6dGfdn.mjs} +1 -1
- package/dist/client/{newsletterForm-BUbXdA_e.mjs → newsletterForm-Cg8cBDHd.mjs} +3 -3
- package/dist/client/{noop-Dl4mZ-rr.mjs → noop-jesvJXEE.mjs} +239 -229
- package/dist/client/portal/client.mjs +269 -83
- package/dist/client/{portalOrders-COGn4BKG.mjs → portalOrders-oEoTvzkW.mjs} +1 -1
- package/dist/client/{portalRoutes-D72yvtDh.mjs → portalRoutes-ByyVZfVq.mjs} +13 -2
- package/dist/client/{product-detail.client-pOAryevt.mjs → product-detail.client-5aHq-vuu.mjs} +1 -1
- package/dist/client/{product-list.client-CcUpUiud.mjs → product-list.client-CyAk5rnC.mjs} +1 -1
- package/dist/client/{productDetail-BZJCfqat.mjs → productDetail-B8aZ2mqY.mjs} +3 -3
- package/dist/client/{productList-CiRs3mNb.mjs → productList-BuLemmod.mjs} +3 -3
- package/dist/client/{propsDecoder--uHW4tFM.mjs → propsDecoder-0Unsqn3R.mjs} +2 -2
- package/dist/client/{registry.server-CDNNd8wC.mjs → registry.server-DzvtVVD0.mjs} +352 -166
- package/dist/client/rendering/client.mjs +23 -23
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-CQGE_wHV.mjs → richText-coerce-Bnng7JFA.mjs} +2 -2
- package/dist/client/{routeIslandApiConfig-BtCg87-N.mjs → routeIslandApiConfig-BGfcc9sk.mjs} +1 -1
- package/dist/client/{runtimeResponse-Ds9cmBUf.mjs → runtimeResponse-DAPVRToN.mjs} +1 -1
- package/dist/client/{runtimeResponse-DL_ARBpa.mjs → runtimeResponse-nXT8VAMl.mjs} +1 -1
- package/dist/client/{shop-Rx_gEMK8.mjs → shop-GuMqnDL-.mjs} +3 -3
- package/dist/client/{shop-commerce-D8evQnMT.mjs → shop-commerce-D5bDY1o1.mjs} +12 -12
- package/dist/client/{shop-commerce-store-C9PcsSTj.mjs → shop-commerce-store-B7sHnLwI.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-D5CtGfJI.mjs → shop-discount-apply.state-Dos2zdC2.mjs} +2 -2
- package/dist/client/{shop.client-D4lzQ9oY.mjs → shop.client-uvj5GDZb.mjs} +11 -11
- package/dist/client/{shopShared-BVbq7Nm-.mjs → shopShared-3giNWE3H.mjs} +2 -2
- package/dist/client/{src-ZSqRK3dD.mjs → src-CmXh3JWs.mjs} +5 -1
- package/dist/client/{timetableModel-BQJrSK0K.mjs → timetableModel-GA-hn1qM.mjs} +8 -15
- package/dist/client/{useAvailableSlots-Dm3lKJKR.mjs → useAvailableSlots-CBneCxbG.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-klgfGn7f.mjs → useDiscountCodeUi-D0kGF0C7.mjs} +1 -1
- package/dist/client/{useEventPagination-Jnjt7_ly.mjs → useEventPagination-xX8n_Tuu.mjs} +7 -7
- package/dist/client/{view-CC_yQLSA.mjs → view-DOyZc-DF.mjs} +3 -3
- package/dist/client/{wizardSteps-BliJOzEX.mjs → wizardSteps-B952ify5.mjs} +303 -31
- package/dist/preview-next/client/{PageSectionToolbar-BhL0uADo.mjs → PageSectionToolbar-BI3UCdpu.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-Ct8eIm0i.mjs → PreviewEditorSidebar-jkfLVOgY.mjs} +12 -9
- package/dist/preview-next/client/{PreviewEditorUI-BS32G4V9.mjs → PreviewEditorUI-DwJQs4hM.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-RL0WfZXD.mjs → PreviewShell-BAxAkuz8.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-MK_gHeGy.mjs → SdkPreviewModeRuntime-0UVB-39f.mjs} +44 -17
- package/dist/preview-next/client/{previewAssistantSlot-CQyS8pcq.mjs → previewAssistantSlot-BgiYk3PB.mjs} +2577 -1683
- package/dist/preview-next/client/{previewChromeRoot-BSxp3Mfu.mjs → previewChromeRoot-tieNdF3E.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DKnTzy74.mjs → sdk-runtime-DXb_Evl0.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BlmbvbLN.mjs → siteStyleAccess-BlN0jt2c.mjs} +1 -1
- package/dist/preview-next/client/{useAutosaveStatus-D-7GwZOQ.mjs → useAutosaveStatus-BUEPA4oL.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-BNZtGM5g.mjs → useOpenBlockForSetup-BVfr5P--.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-R3PcMmax.mjs → route-contract-BHTBA48n.mjs} +20 -1
- package/dist/server/{Block.shared-CniF9tSu.mjs → Block.shared-hGoyEdjJ.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-BQWsnGT6.mjs → ThemeScopeCore-BfUCTOwj.mjs} +37 -25
- package/dist/server/{accessibleSurfaces-WPzUAHp4.mjs → accessibleSurfaces-Dskni4Xj.mjs} +94 -361
- package/dist/server/{bindings-DxojjtK3.mjs → bindings-DMJH4bvo.mjs} +4 -4
- package/dist/server/{client-CDndhbYO.mjs → client-DrwlRNAH.mjs} +22 -3
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-VyF5nEhL.mjs → constants-CeMywaiD.mjs} +11 -0
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{resolveButtonColourStates-B0O1IM16.mjs → expandPalette-ehuW8r2g.mjs} +769 -227
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-BKstMBmX.mjs → loadContent-D0prFflT.mjs} +4 -4
- package/dist/server/{loadPage-IgNnZaqr.mjs → loadPage-CBLke9pJ.mjs} +3 -3
- package/dist/server/{lookMediaFrame-TFjgNG61.mjs → lookMediaFrame-H0fi4bJk.mjs} +2 -2
- package/dist/server/{navigation-quBYlSKD.mjs → navigation-wrcuWmgp.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +8 -8
- package/dist/server/{overrideResolution-CCaAPpIa.mjs → overrideResolution-DUgCEH8z.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-B7iULvKe.mjs → pageRenderPlan-BHrmogsW.mjs} +161 -244
- package/dist/server/{pageRuntimeSupport-BytMroxn.mjs → pageRuntimeSupport-D2-YMRei.mjs} +1 -1
- package/dist/server/{pageShared-Dcs_XTIO.mjs → pageShared-CG8O31Eo.mjs} +1265 -1032
- package/dist/server/{parseThemeForPersistence-Bihl4W5K.mjs → parseThemeForPersistence-CrPlbJEN.mjs} +1 -1
- package/dist/server/{portal-CMW_b9mG.mjs → portal-pG_uhsI2.mjs} +1 -1
- package/dist/server/portal.mjs +2 -2
- package/dist/server/{prebuild-agaH-vZV.mjs → prebuild-C8Amvzce.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-DwpRjqw4.mjs → prefetchBlockData-BxUETRIZ.mjs} +2 -2
- package/dist/server/{registry-DM9dHfDC.mjs → registry-Cc88-23f.mjs} +1173 -745
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-CinHGf8l.mjs → resolveBlockData-OG3KOkig.mjs} +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-BBBhOtdE.mjs → servicePageContent-BcFuhhD7.mjs} +5 -5
- package/dist/server/theme-bridge.mjs +33 -8
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{validation-DG5jX3jH.mjs → validation-BovmbS8N.mjs} +3 -3
- package/dist/server/{version-CipbxPHL.mjs → version-hws4hgyX.mjs} +1 -1
- package/dist/styles/index.css +86 -46
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as borderColorStyle, B as blockColorTokenNames, C as surfaceForegroundStyle, D as surfaceInkStyle, J as parseColorTokenParts, K as paletteColorsSchema, M as mergeStyles, N as rgbColorValue, P as textColorStyle, S as surfaceForegroundInputFromResolved, V as hexColorSchema, Y as parseThemeColorToken, c as buttonEffectApplicationSchema, d as buttonVariantIdSchema, f as buttonVisualStatesSchema, g as VARIANT_ROLES, h as SYSTEM_BLOCK_KINDS, k as backgroundColorStyle, l as buttonPressOffsetSchema, o as isVariantRole, q as paletteModeSchema, r as asSpecialVariantId, s as unsafeAsOpaqueButtonColourToken, t as DEFAULT_VARIANT_ALIAS_ID, w as surfaceForegroundValue } from "./types-BKaBZFjD.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { C as paletteInk, E as paletteInkToken, F as requirePaletteColorsFromEntries, H as featuresFromHex, M as resolveOpaqueSurfaceHex, N as paletteValueKey, P as paletteValueKeySchema, R as hexLuminance, T as paletteInkRoles, _ as ELEVATION_OFFSET, a as compositeHex, c as scrimTone, f as BUTTON_CONTRAST_POLICY, j as resolveConcreteColorHex, o as gradientScrimSamples, r as expandPalette, s as minimumScrimOpacity, z as luminanceInterval } from "./expandPalette-ehuW8r2g.mjs";
|
|
3
|
+
import { B as planForegroundHover, C as mapButtonRoleAppearances, D as resolveThemeColorReferenceValue, N as surfaceInkPublication, R as contrastThresholdByPolicy, S as defineButtonStyleRecipe, c as surfaceButtonRequest, d as toAccessibleColorSurfaceIntent, i as prepareThemeSurfaceRevision, j as resolveSurfaceForeground, l as surfaceDecorationColors, o as resolveSurface, t as parseResolvedSurface, u as surfaceTransportContext, w as mapButtonVisualAppearances, x as PUBLIC_BUTTON_ROLES } from "./accessibleSurfaces-Dskni4Xj.mjs";
|
|
4
4
|
import { A as makeBoundaryId, C as asBoundaryOptionId, D as asLayoutVariantKey, E as asDesignSystemTemplateId, O as asPageFlowPresetId, S as asAppearancePresetId, T as asDesignBoundaryId, _ as headingDecorationColorTokenValues, b as tileTreatmentValues, g as eyebrowTreatmentValues, h as eventListTreatmentValues, k as asSiteStyleId, p as arrangementModes, w as asDesignBlockId, x as visibleHeadingDecorationFamilyValues, y as isArrangementMode } from "./customCss-C9kgPHvr.mjs";
|
|
5
5
|
import { _ as asHeaderStyleId, a as headerVariantValues, c as runtimeBoxBackgroundSchema, d as cardVariantRoleValues, f as itemRoleValues, g as asHeaderLayoutId, h as asFooterLookId, l as boxlessCardVariantValue, n as containerStylesOverrideSchema, o as boxBackgroundOverlaySchema, p as openCardRoleValue, r as sectionStylesOverrideSchema, s as boxBackgroundSchema, t as cardStylesOverrideSchema, u as cardRoleSchema, v as bookingPageLookIdValues } from "./schema-CwfxQjc4.mjs";
|
|
6
6
|
import { a as parseUuidBrand, i as unsafeAsStoragePath, n as unsafeAsMediaAssetId, o as err, r as unsafeAsStorageBucketName, s as ok$1 } from "./media-BRmYrnzb.mjs";
|
|
@@ -9,7 +9,7 @@ import { a as normalizeLocationAddressText, c as publicLocationSchema, d as mapD
|
|
|
9
9
|
import { t as assertNever } from "./assert-never-ku-PUn9U.mjs";
|
|
10
10
|
import { i as NodeTreeSchema, l as RichTextDocSchema, m as sanitizeHref, n as isRecord$13, r as NodeSchema, t as isObjectRecord$1 } from "./typeGuards-CTW_9AXq.mjs";
|
|
11
11
|
import { c as buildRenderableMediaAssetIndex, d as resolveManagedMediaReference, f as PUBLIC_FILE_FIELD_KINDS, g as parseCanonicalMediaIdentifier, m as mediaTypeDiscriminants, o as runtimeMediaSchema, p as isDisplayMediaKind } from "./media-gvfIw3z8.mjs";
|
|
12
|
-
import { A as lookKnobBlocks, C as requireNonEmptyReadonlyArray, D as cardListBlockParts, E as toNonEmptyReadonlyArray, M as opaqueSurfaceDeclarations, O as cardListFamilyBlocks, T as testimonialsCompositionTreatmentValues, a as layoutProfileSupportsConstraints, b as noHeadingDecoration, c as isArrangementAppearancePreset, d as lookModes, f as assertNever$1, g as defineNoBlockDesignCapability, h as defineFrameCapability, i as blockAppearancePresets, k as cardListKnobBlocks, l as isLookSettingFact, m as defineExactCatalog, n as resolveLookMediaFrame, o as resolveBlockAppearancePresetDesign, p as defineBlockDesignCapability, r as arrangementLookFits, s as resolveEffectiveKnobs, u as isRecipeAppearancePreset, x as offeringsPreviewCompositionTreatmentValues } from "./lookMediaFrame-
|
|
12
|
+
import { A as lookKnobBlocks, C as requireNonEmptyReadonlyArray, D as cardListBlockParts, E as toNonEmptyReadonlyArray, M as opaqueSurfaceDeclarations, O as cardListFamilyBlocks, T as testimonialsCompositionTreatmentValues, a as layoutProfileSupportsConstraints, b as noHeadingDecoration, c as isArrangementAppearancePreset, d as lookModes, f as assertNever$1, g as defineNoBlockDesignCapability, h as defineFrameCapability, i as blockAppearancePresets, k as cardListKnobBlocks, l as isLookSettingFact, m as defineExactCatalog, n as resolveLookMediaFrame, o as resolveBlockAppearancePresetDesign, p as defineBlockDesignCapability, r as arrangementLookFits, s as resolveEffectiveKnobs, u as isRecipeAppearancePreset, x as offeringsPreviewCompositionTreatmentValues } from "./lookMediaFrame-H0fi4bJk.mjs";
|
|
13
13
|
import React from "react";
|
|
14
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
import { z } from "zod";
|
|
@@ -3232,7 +3232,11 @@ const publicEventDestinationSchema = z.discriminatedUnion("kind", [z.object({
|
|
|
3232
3232
|
}), z.object({
|
|
3233
3233
|
kind: z.literal("external"),
|
|
3234
3234
|
url: z.string(),
|
|
3235
|
-
label: z.string()
|
|
3235
|
+
label: z.string(),
|
|
3236
|
+
page: z.object({
|
|
3237
|
+
mode: eventDestinationModeSchema,
|
|
3238
|
+
path: z.string()
|
|
3239
|
+
}).optional()
|
|
3236
3240
|
})]);
|
|
3237
3241
|
/**
|
|
3238
3242
|
* Zod schema for venue data
|
|
@@ -3722,6 +3726,14 @@ function recurrenceKey(event) {
|
|
|
3722
3726
|
if (!recurrence) return "none";
|
|
3723
3727
|
return recurrence.kind === "other" ? recurrence.kind : `${recurrence.kind}:${recurrence.interval}:${recurrence.weekdays.join(",")}`;
|
|
3724
3728
|
}
|
|
3729
|
+
/**
|
|
3730
|
+
* Whether a series' recurrence rule fits the weekly schedule: every week,
|
|
3731
|
+
* not every other week or monthly. A series with no rule can still be
|
|
3732
|
+
* projected from the spacing of its dates.
|
|
3733
|
+
*/
|
|
3734
|
+
function isWeeklyScheduleRecurrence(recurrence) {
|
|
3735
|
+
return recurrence.kind === "weekly" && recurrence.interval === 1;
|
|
3736
|
+
}
|
|
3725
3737
|
function recurrenceRuleEvidence(seriesId, events, schedule) {
|
|
3726
3738
|
if (new Set(events.map(recurrenceKey)).size > 1) return {
|
|
3727
3739
|
seriesId,
|
|
@@ -3729,7 +3741,7 @@ function recurrenceRuleEvidence(seriesId, events, schedule) {
|
|
|
3729
3741
|
};
|
|
3730
3742
|
const recurrence = events[0]?.recurrence;
|
|
3731
3743
|
if (!recurrence) return null;
|
|
3732
|
-
if (recurrence.kind !== "weekly" || recurrence
|
|
3744
|
+
if (recurrence.kind !== "weekly" || !isWeeklyScheduleRecurrence(recurrence)) return {
|
|
3733
3745
|
seriesId,
|
|
3734
3746
|
reason: "unsupported_weekly_cadence"
|
|
3735
3747
|
};
|
|
@@ -3837,200 +3849,91 @@ function projectRecurringSchedule(events) {
|
|
|
3837
3849
|
};
|
|
3838
3850
|
}
|
|
3839
3851
|
//#endregion
|
|
3840
|
-
//#region ../
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
"
|
|
3844
|
-
"
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
]
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
"May",
|
|
3856
|
-
"June",
|
|
3857
|
-
"July",
|
|
3858
|
-
"August",
|
|
3859
|
-
"September",
|
|
3860
|
-
"October",
|
|
3861
|
-
"November",
|
|
3862
|
-
"December"
|
|
3863
|
-
];
|
|
3864
|
-
function formatDateKey(date) {
|
|
3865
|
-
return `${String(date.year).padStart(4, "0")}-${String(date.month).padStart(2, "0")}-${String(date.day).padStart(2, "0")}`;
|
|
3866
|
-
}
|
|
3867
|
-
function isToday(date, today) {
|
|
3868
|
-
return isSameCalendarDay(date, today);
|
|
3869
|
-
}
|
|
3870
|
-
function isSameCalendarDay(left, right) {
|
|
3871
|
-
return left.year === right.year && left.month === right.month && left.day === right.day;
|
|
3872
|
-
}
|
|
3873
|
-
function addDays(date, days) {
|
|
3874
|
-
const result = new Date(Date.UTC(date.year, date.month - 1, date.day + days, 12));
|
|
3875
|
-
return {
|
|
3876
|
-
year: result.getUTCFullYear(),
|
|
3877
|
-
month: result.getUTCMonth() + 1,
|
|
3878
|
-
day: result.getUTCDate()
|
|
3879
|
-
};
|
|
3880
|
-
}
|
|
3881
|
-
function getMonthCalendarDays(year, month, startOfWeek) {
|
|
3882
|
-
const firstDay = {
|
|
3883
|
-
year,
|
|
3884
|
-
month,
|
|
3885
|
-
day: 1
|
|
3886
|
-
};
|
|
3887
|
-
const dayOfWeek = getDayOfWeek(firstDay);
|
|
3888
|
-
const gridStart = addDays(firstDay, -(startOfWeek === "monday" ? dayOfWeek === 0 ? 6 : dayOfWeek - 1 : dayOfWeek));
|
|
3889
|
-
return Array.from({ length: 42 }, (_, index) => addDays(gridStart, index));
|
|
3890
|
-
}
|
|
3891
|
-
function getWeekCalendarDays(baseDate, startOfWeek) {
|
|
3892
|
-
const dayOfWeek = getDayOfWeek(baseDate);
|
|
3893
|
-
const weekStart = addDays(baseDate, -(startOfWeek === "monday" ? dayOfWeek === 0 ? 6 : dayOfWeek - 1 : dayOfWeek));
|
|
3894
|
-
return Array.from({ length: 7 }, (_, index) => addDays(weekStart, index));
|
|
3895
|
-
}
|
|
3896
|
-
function getDayOfWeek(date) {
|
|
3897
|
-
return new Date(Date.UTC(date.year, date.month - 1, date.day, 12)).getUTCDay();
|
|
3898
|
-
}
|
|
3899
|
-
function getWeekCalendarDayTuple(baseDate, startOfWeek) {
|
|
3900
|
-
const days = getWeekCalendarDays(baseDate, startOfWeek);
|
|
3901
|
-
assertWeekCalendarDays(days);
|
|
3902
|
-
return days;
|
|
3903
|
-
}
|
|
3904
|
-
function assertWeekCalendarDays(days) {
|
|
3905
|
-
if (days.length !== 7) throw new Error("Expected exactly 7 calendar days");
|
|
3906
|
-
}
|
|
3907
|
-
function getOrderedDayNames(startOfWeek, dayNames = DAY_NAMES) {
|
|
3908
|
-
if (startOfWeek === "monday") {
|
|
3909
|
-
const sunday = dayNames[0] ?? "Sun";
|
|
3910
|
-
return [...dayNames.slice(1), sunday];
|
|
3911
|
-
}
|
|
3912
|
-
return [...dayNames];
|
|
3913
|
-
}
|
|
3914
|
-
function formatCalendarTitle$1(viewDate, view, days, monthNames = MONTH_NAMES) {
|
|
3915
|
-
if (view === "week") {
|
|
3916
|
-
const weekStart = days[0];
|
|
3917
|
-
const weekEnd = days[6];
|
|
3918
|
-
if (weekStart === void 0 || weekEnd === void 0) return `${monthNames[viewDate.month - 1] ?? ""} ${viewDate.year}`;
|
|
3919
|
-
const startMonth = monthNames[weekStart.month - 1] ?? "";
|
|
3920
|
-
const endMonth = monthNames[weekEnd.month - 1] ?? "";
|
|
3921
|
-
if (weekStart.month === weekEnd.month) return `${startMonth} ${weekStart.day} - ${weekEnd.day}, ${weekEnd.year}`;
|
|
3922
|
-
return `${startMonth} ${weekStart.day} - ${endMonth} ${weekEnd.day}, ${weekEnd.year}`;
|
|
3923
|
-
}
|
|
3924
|
-
return `${monthNames[viewDate.month - 1] ?? ""} ${viewDate.year}`;
|
|
3925
|
-
}
|
|
3926
|
-
function buildCalendarViewport$1(input) {
|
|
3927
|
-
const monthNames = input.monthNames ?? MONTH_NAMES;
|
|
3928
|
-
if (input.view === "week") {
|
|
3929
|
-
const days = getWeekCalendarDayTuple(input.anchorDate, input.startOfWeek);
|
|
3930
|
-
return {
|
|
3931
|
-
kind: "week",
|
|
3932
|
-
anchorDate: input.anchorDate,
|
|
3933
|
-
days,
|
|
3934
|
-
title: formatCalendarTitle$1(input.anchorDate, "week", days, monthNames)
|
|
3852
|
+
//#region ../blocks/src/system/blocks/events/shared/eventSelection.ts
|
|
3853
|
+
/** Invalid saved selections fail closed rather than widening discovery. */
|
|
3854
|
+
function resolveEventSelection(mode, value) {
|
|
3855
|
+
if (mode !== "selected") return { kind: "matching" };
|
|
3856
|
+
const candidates = Array.isArray(value) ? value : typeof value === "string" ? value.split(",").filter(Boolean) : [];
|
|
3857
|
+
const ids = [];
|
|
3858
|
+
for (const candidate of candidates) {
|
|
3859
|
+
if (typeof candidate !== "string") return {
|
|
3860
|
+
kind: "selected",
|
|
3861
|
+
seriesIds: []
|
|
3862
|
+
};
|
|
3863
|
+
const parsed = parseEventSeriesId(candidate.trim());
|
|
3864
|
+
if (!parsed.ok) return {
|
|
3865
|
+
kind: "selected",
|
|
3866
|
+
seriesIds: []
|
|
3935
3867
|
};
|
|
3868
|
+
ids.push(parsed.value);
|
|
3936
3869
|
}
|
|
3937
|
-
const days = getMonthCalendarDays(input.anchorDate.year, input.anchorDate.month, input.startOfWeek);
|
|
3938
3870
|
return {
|
|
3939
|
-
kind: "
|
|
3940
|
-
|
|
3941
|
-
days,
|
|
3942
|
-
title: formatCalendarTitle$1(input.anchorDate, "month", days, monthNames)
|
|
3871
|
+
kind: "selected",
|
|
3872
|
+
seriesIds: [...new Set(ids)].sort()
|
|
3943
3873
|
};
|
|
3944
3874
|
}
|
|
3875
|
+
/** Undefined means discovery; an empty string is an explicitly empty selection. */
|
|
3876
|
+
function eventSeriesScopeCsv(value) {
|
|
3877
|
+
if (value == null) return void 0;
|
|
3878
|
+
return typeof value === "string" ? value : value.join(",");
|
|
3879
|
+
}
|
|
3945
3880
|
//#endregion
|
|
3946
|
-
//#region ../
|
|
3947
|
-
/**
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
const MINUTES_PER_HOUR = 60;
|
|
3881
|
+
//#region ../blocks/src/system/blocks/events/shared/eventScope.ts
|
|
3882
|
+
/** Content fields that narrow a discovery (not hand-picked) event section. */
|
|
3883
|
+
const eventDiscoveryFilterKeys = [
|
|
3884
|
+
"eventSurface",
|
|
3885
|
+
"filterEventPresets",
|
|
3886
|
+
"scheduleScope",
|
|
3887
|
+
"filterCategoryIds",
|
|
3888
|
+
"filterStaffMemberId",
|
|
3889
|
+
"filterVenueId"
|
|
3890
|
+
];
|
|
3957
3891
|
/**
|
|
3958
|
-
*
|
|
3959
|
-
*
|
|
3892
|
+
* The one owner of an event section's scope. Readiness ("is there anything to
|
|
3893
|
+
* show?") and the render loaders both derive their query from this, so Hide can
|
|
3894
|
+
* never judge a section empty that would display events.
|
|
3960
3895
|
*/
|
|
3961
|
-
function
|
|
3962
|
-
const
|
|
3963
|
-
if (
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3896
|
+
function resolveEventScope(content) {
|
|
3897
|
+
const selection = resolveEventSelection(content.eventSelection, content.selectedEventSeriesIds);
|
|
3898
|
+
if (selection.kind === "selected") return selection;
|
|
3899
|
+
return {
|
|
3900
|
+
kind: "matching",
|
|
3901
|
+
filters: Object.fromEntries(eventDiscoveryFilterKeys.map((key) => [key, content[key]]))
|
|
3902
|
+
};
|
|
3903
|
+
}
|
|
3904
|
+
const discoveryQueryKey = {
|
|
3905
|
+
eventSurface: "eventSurface",
|
|
3906
|
+
filterEventPresets: "eventPresets",
|
|
3907
|
+
scheduleScope: "scheduleScope",
|
|
3908
|
+
filterCategoryIds: "categoryIds",
|
|
3909
|
+
filterStaffMemberId: "staffMemberId",
|
|
3910
|
+
filterVenueId: "venueId"
|
|
3911
|
+
};
|
|
3912
|
+
const eventScopeQueryKeys = ["seriesIds", ...Object.values(discoveryQueryKey)];
|
|
3913
|
+
function scopeCsv(value) {
|
|
3914
|
+
const normalized = (Array.isArray(value) ? value : typeof value === "string" ? value.split(",") : []).filter((item) => typeof item === "string").map((item) => item.trim()).filter(Boolean);
|
|
3915
|
+
return normalized.length > 0 ? [...new Set(normalized)].join(",") : void 0;
|
|
3976
3916
|
}
|
|
3977
3917
|
/**
|
|
3978
|
-
*
|
|
3979
|
-
*
|
|
3918
|
+
* Public event query params for a scope. A selected scope sends only
|
|
3919
|
+
* `seriesIds` (an empty string is an explicitly empty selection, which reads
|
|
3920
|
+
* no rows); discovery sends only the filters that are set.
|
|
3980
3921
|
*/
|
|
3981
|
-
function
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
year: "numeric",
|
|
3988
|
-
month: "2-digit",
|
|
3989
|
-
day: "2-digit"
|
|
3990
|
-
}).formatToParts(date);
|
|
3991
|
-
const year = parts.find((part) => part.type === "year")?.value;
|
|
3992
|
-
const month = parts.find((part) => part.type === "month")?.value;
|
|
3993
|
-
const day = parts.find((part) => part.type === "day")?.value;
|
|
3994
|
-
if (year === void 0 || year.length === 0) return null;
|
|
3995
|
-
if (month === void 0 || month.length === 0) return null;
|
|
3996
|
-
if (day === void 0 || day.length === 0) return null;
|
|
3997
|
-
return `${year}-${month}-${day}`;
|
|
3998
|
-
}
|
|
3999
|
-
const validTimeZoneCache = /* @__PURE__ */ new Map();
|
|
4000
|
-
function isValidTimeZone(timeZone) {
|
|
4001
|
-
if (typeof timeZone !== "string" || timeZone.length === 0) return false;
|
|
4002
|
-
const cached = validTimeZoneCache.get(timeZone);
|
|
4003
|
-
if (cached !== void 0) return cached;
|
|
4004
|
-
try {
|
|
4005
|
-
new Intl.DateTimeFormat("en-US", { timeZone });
|
|
4006
|
-
validTimeZoneCache.set(timeZone, true);
|
|
4007
|
-
return true;
|
|
4008
|
-
} catch {
|
|
4009
|
-
validTimeZoneCache.set(timeZone, false);
|
|
4010
|
-
return false;
|
|
4011
|
-
}
|
|
3922
|
+
function eventScopeQuery(scope) {
|
|
3923
|
+
if (scope.kind === "selected") return { seriesIds: scope.seriesIds.join(",") };
|
|
3924
|
+
return Object.fromEntries(eventDiscoveryFilterKeys.flatMap((key) => {
|
|
3925
|
+
const value = scopeCsv(scope.filters[key]);
|
|
3926
|
+
return value === void 0 ? [] : [[discoveryQueryKey[key], value]];
|
|
3927
|
+
}));
|
|
4012
3928
|
}
|
|
4013
|
-
//#endregion
|
|
4014
|
-
//#region ../calendar/src/group.ts
|
|
4015
3929
|
/**
|
|
4016
|
-
*
|
|
4017
|
-
*
|
|
4018
|
-
*
|
|
4019
|
-
*
|
|
4020
|
-
*
|
|
4021
|
-
* The output map preserves insertion order of dates (ES2015 spec) and the
|
|
4022
|
-
* relative order of items within each date matches input order.
|
|
3930
|
+
* A query value as a loader binding must return it. Binding resolution treats
|
|
3931
|
+
* `""` as absent, which would widen an explicitly empty selection to discovery,
|
|
3932
|
+
* so `seriesIds` travels as an empty list and becomes `seriesIds=` when params
|
|
3933
|
+
* are stringified.
|
|
4023
3934
|
*/
|
|
4024
|
-
function
|
|
4025
|
-
|
|
4026
|
-
for (const item of items) {
|
|
4027
|
-
const dateKey = getLocalDateKey(accessors.getStartsAt(item), accessors.getTimeZone(item));
|
|
4028
|
-
if (dateKey == null) continue;
|
|
4029
|
-
const existing = grouped.get(dateKey);
|
|
4030
|
-
if (existing !== void 0) existing.push(item);
|
|
4031
|
-
else grouped.set(dateKey, [item]);
|
|
4032
|
-
}
|
|
4033
|
-
return grouped;
|
|
3935
|
+
function eventScopeLoaderParam(query, key) {
|
|
3936
|
+
return key === "seriesIds" && query.seriesIds === "" ? [] : query[key];
|
|
4034
3937
|
}
|
|
4035
3938
|
//#endregion
|
|
4036
3939
|
//#region ../site-contracts/src/blocks/fieldUi.ts
|
|
@@ -4809,7 +4712,7 @@ function applyLookPhotoTreatment(background, treatment, palette, tint = "dark",
|
|
|
4809
4712
|
return darkPhotoTreatment(background, palette, placement);
|
|
4810
4713
|
}
|
|
4811
4714
|
function darkPhotoTreatment(background, palette, placement, brandWash) {
|
|
4812
|
-
const ink =
|
|
4715
|
+
const ink = photoCopyInk(palette);
|
|
4813
4716
|
return {
|
|
4814
4717
|
...background,
|
|
4815
4718
|
overlay: {
|
|
@@ -4823,14 +4726,24 @@ function darkPhotoTreatment(background, palette, placement, brandWash) {
|
|
|
4823
4726
|
supportingColor: ink
|
|
4824
4727
|
};
|
|
4825
4728
|
}
|
|
4729
|
+
/**
|
|
4730
|
+
* The least black any photo copy band puts behind its text: the centred band's
|
|
4731
|
+
* even 60%. The foot band is at least 76% where its copy sits and the foot
|
|
4732
|
+
* brand paint 80% (under a wash no lighter than 28% black), so 60% bounds all three.
|
|
4733
|
+
*/
|
|
4734
|
+
const PHOTO_COPY_MIN_SHADE = .6;
|
|
4826
4735
|
/** Centred copy gets an even 60% band (white text over a white photo stays above 5.5:1) that eases off at the edges; the foot keeps its original paint. */
|
|
4827
4736
|
function photoCopyShade(placement, brandWash) {
|
|
4828
4737
|
if (placement === "foot" && brandWash) return `linear-gradient(${brandWash}, ${brandWash}), linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8))`;
|
|
4829
|
-
|
|
4738
|
+
const band = `rgba(0,0,0,${PHOTO_COPY_MIN_SHADE})`;
|
|
4739
|
+
return `var(--rb-opening-photo-shade, linear-gradient(transparent, transparent)), ${placement === "centre" ? `linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, ${band} 15%, ${band} 85%, rgba(0,0,0,0.15) 100%)` : "linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.76) 25%, rgba(0,0,0,0.4) 46%, transparent 72%)"}${brandWash ? `, linear-gradient(${brandWash}, ${brandWash})` : ""}`;
|
|
4830
4740
|
}
|
|
4831
|
-
/**
|
|
4832
|
-
|
|
4833
|
-
|
|
4741
|
+
/** Every pixel behind photo copy: anything from black up to the minimum shade over a white photo. */
|
|
4742
|
+
const PHOTO_COPY_PAINT = luminanceInterval(0, hexLuminance(compositeHex("#000000", PHOTO_COPY_MIN_SHADE, "#ffffff")));
|
|
4743
|
+
/** The palette's own light colour (its background, or its text on a dark palette) when it reads over the copy band, else white. */
|
|
4744
|
+
function photoCopyInk(palette) {
|
|
4745
|
+
const ink = paletteInk(PHOTO_COPY_PAINT, paletteInkRoles(palette));
|
|
4746
|
+
return ink.kind === "unpaintable" ? "#FFFFFF" : paletteInkToken(ink);
|
|
4834
4747
|
}
|
|
4835
4748
|
/** A light brand's dark ink cannot sit on unknown pixels: give light ink a dark backing. */
|
|
4836
4749
|
function brandPhotoTreatment(background, treatment, palette, placement) {
|
|
@@ -5503,6 +5416,286 @@ function validateBookingBarSurface(skin, bookingBar, surfaces) {
|
|
|
5503
5416
|
if (bookingBar === void 0) return;
|
|
5504
5417
|
if (surfaces[bookingBar.surface]?.kind !== "token") throw new Error(`Booking bar for ${skin} needs a declared token surface: ${bookingBar.surface}`);
|
|
5505
5418
|
}
|
|
5419
|
+
//#endregion
|
|
5420
|
+
//#region ../theme-core/src/gradients/presets.ts
|
|
5421
|
+
/**
|
|
5422
|
+
* Curated gradient presets based on theme palette
|
|
5423
|
+
*/
|
|
5424
|
+
const gradientPresetData = {
|
|
5425
|
+
"primary-secondary": {
|
|
5426
|
+
name: "Primary to Secondary",
|
|
5427
|
+
description: "Blend your primary and secondary brand colors",
|
|
5428
|
+
type: "linear",
|
|
5429
|
+
angle: 135,
|
|
5430
|
+
stops: [{
|
|
5431
|
+
color: "primary-500",
|
|
5432
|
+
position: 0
|
|
5433
|
+
}, {
|
|
5434
|
+
color: "secondary-500",
|
|
5435
|
+
position: 100
|
|
5436
|
+
}]
|
|
5437
|
+
},
|
|
5438
|
+
"primary-accent": {
|
|
5439
|
+
name: "Primary to Accent",
|
|
5440
|
+
description: "Energetic gradient from primary to accent",
|
|
5441
|
+
type: "linear",
|
|
5442
|
+
angle: 135,
|
|
5443
|
+
stops: [{
|
|
5444
|
+
color: "primary-500",
|
|
5445
|
+
position: 0
|
|
5446
|
+
}, {
|
|
5447
|
+
color: "accent-500",
|
|
5448
|
+
position: 100
|
|
5449
|
+
}]
|
|
5450
|
+
},
|
|
5451
|
+
"secondary-accent": {
|
|
5452
|
+
name: "Secondary to Accent",
|
|
5453
|
+
description: "Vibrant secondary to accent blend",
|
|
5454
|
+
type: "linear",
|
|
5455
|
+
angle: 135,
|
|
5456
|
+
stops: [{
|
|
5457
|
+
color: "secondary-500",
|
|
5458
|
+
position: 0
|
|
5459
|
+
}, {
|
|
5460
|
+
color: "accent-500",
|
|
5461
|
+
position: 100
|
|
5462
|
+
}]
|
|
5463
|
+
},
|
|
5464
|
+
"primary-light-dark": {
|
|
5465
|
+
name: "Primary Light to Dark",
|
|
5466
|
+
description: "Subtle primary color fade",
|
|
5467
|
+
type: "linear",
|
|
5468
|
+
angle: 180,
|
|
5469
|
+
stops: [{
|
|
5470
|
+
color: "primary-500",
|
|
5471
|
+
position: 0
|
|
5472
|
+
}, {
|
|
5473
|
+
color: "primary-900",
|
|
5474
|
+
position: 100
|
|
5475
|
+
}]
|
|
5476
|
+
},
|
|
5477
|
+
"primary-dark-light": {
|
|
5478
|
+
name: "Primary Dark to Light",
|
|
5479
|
+
description: "Reverse primary fade",
|
|
5480
|
+
type: "linear",
|
|
5481
|
+
angle: 180,
|
|
5482
|
+
stops: [{
|
|
5483
|
+
color: "primary-900",
|
|
5484
|
+
position: 0
|
|
5485
|
+
}, {
|
|
5486
|
+
color: "primary-50",
|
|
5487
|
+
position: 100
|
|
5488
|
+
}]
|
|
5489
|
+
},
|
|
5490
|
+
"secondary-light-dark": {
|
|
5491
|
+
name: "Secondary Light to Dark",
|
|
5492
|
+
description: "Subtle secondary color fade",
|
|
5493
|
+
type: "linear",
|
|
5494
|
+
angle: 180,
|
|
5495
|
+
stops: [{
|
|
5496
|
+
color: "secondary-500",
|
|
5497
|
+
position: 0
|
|
5498
|
+
}, {
|
|
5499
|
+
color: "secondary-900",
|
|
5500
|
+
position: 100
|
|
5501
|
+
}]
|
|
5502
|
+
},
|
|
5503
|
+
"accent-light-dark": {
|
|
5504
|
+
name: "Accent Light to Dark",
|
|
5505
|
+
description: "Accent color depth fade",
|
|
5506
|
+
type: "linear",
|
|
5507
|
+
angle: 180,
|
|
5508
|
+
stops: [{
|
|
5509
|
+
color: "accent-500",
|
|
5510
|
+
position: 0
|
|
5511
|
+
}, {
|
|
5512
|
+
color: "accent-900",
|
|
5513
|
+
position: 100
|
|
5514
|
+
}]
|
|
5515
|
+
},
|
|
5516
|
+
"background-surface": {
|
|
5517
|
+
name: "Background to Surface",
|
|
5518
|
+
description: "Subtle depth using base colors",
|
|
5519
|
+
type: "linear",
|
|
5520
|
+
angle: 180,
|
|
5521
|
+
stops: [{
|
|
5522
|
+
color: "background",
|
|
5523
|
+
position: 0
|
|
5524
|
+
}, {
|
|
5525
|
+
color: "surface",
|
|
5526
|
+
position: 100
|
|
5527
|
+
}]
|
|
5528
|
+
},
|
|
5529
|
+
"neutral-fade": {
|
|
5530
|
+
name: "Neutral Gradient",
|
|
5531
|
+
description: "Elegant neutral color fade",
|
|
5532
|
+
type: "linear",
|
|
5533
|
+
angle: 180,
|
|
5534
|
+
stops: [{
|
|
5535
|
+
color: "neutral-900",
|
|
5536
|
+
position: 0
|
|
5537
|
+
}, {
|
|
5538
|
+
color: "neutral-50",
|
|
5539
|
+
position: 100
|
|
5540
|
+
}]
|
|
5541
|
+
},
|
|
5542
|
+
"primary-glow": {
|
|
5543
|
+
name: "Primary glow",
|
|
5544
|
+
description: "A soft top-centred glow using your primary palette",
|
|
5545
|
+
type: "radial",
|
|
5546
|
+
shape: "ellipse",
|
|
5547
|
+
position: "top center",
|
|
5548
|
+
stops: [{
|
|
5549
|
+
color: "primary-900",
|
|
5550
|
+
position: 0
|
|
5551
|
+
}, {
|
|
5552
|
+
color: "primary-950",
|
|
5553
|
+
position: 100
|
|
5554
|
+
}],
|
|
5555
|
+
foreground: {
|
|
5556
|
+
textColor: "onPrimary900",
|
|
5557
|
+
headingColor: "onPrimary900",
|
|
5558
|
+
linkColor: "onPrimary900",
|
|
5559
|
+
supportingColor: "onPrimary900"
|
|
5560
|
+
}
|
|
5561
|
+
},
|
|
5562
|
+
"accent-glow": {
|
|
5563
|
+
name: "Accent glow",
|
|
5564
|
+
description: "A soft top-centred glow using your accent palette",
|
|
5565
|
+
type: "radial",
|
|
5566
|
+
shape: "ellipse",
|
|
5567
|
+
position: "top center",
|
|
5568
|
+
stops: [{
|
|
5569
|
+
color: "accent-900",
|
|
5570
|
+
position: 0
|
|
5571
|
+
}, {
|
|
5572
|
+
color: "accent-950",
|
|
5573
|
+
position: 100
|
|
5574
|
+
}],
|
|
5575
|
+
foreground: {
|
|
5576
|
+
textColor: "onAccent900",
|
|
5577
|
+
headingColor: "onAccent900",
|
|
5578
|
+
linkColor: "onAccent900",
|
|
5579
|
+
supportingColor: "onAccent900"
|
|
5580
|
+
}
|
|
5581
|
+
},
|
|
5582
|
+
"primary-secondary-accent": {
|
|
5583
|
+
name: "Brand Trio",
|
|
5584
|
+
description: "All three brand colors in harmony",
|
|
5585
|
+
type: "linear",
|
|
5586
|
+
angle: 135,
|
|
5587
|
+
stops: [
|
|
5588
|
+
{
|
|
5589
|
+
color: "primary-500",
|
|
5590
|
+
position: 0
|
|
5591
|
+
},
|
|
5592
|
+
{
|
|
5593
|
+
color: "secondary-500",
|
|
5594
|
+
position: 50
|
|
5595
|
+
},
|
|
5596
|
+
{
|
|
5597
|
+
color: "accent-500",
|
|
5598
|
+
position: 100
|
|
5599
|
+
}
|
|
5600
|
+
]
|
|
5601
|
+
}
|
|
5602
|
+
};
|
|
5603
|
+
const presetData = (id) => gradientPresetData[id];
|
|
5604
|
+
/**
|
|
5605
|
+
* Curated library of gradient presets.
|
|
5606
|
+
* All gradients use theme color tokens, so they adapt to the site's palette.
|
|
5607
|
+
*/
|
|
5608
|
+
const GRADIENT_PRESETS = gradientPresetIdValues.flatMap((value) => parseGradientPresetId(value) ?? []).map((id) => ({
|
|
5609
|
+
id,
|
|
5610
|
+
...presetData(id)
|
|
5611
|
+
}));
|
|
5612
|
+
const gradientPresetById = Object.fromEntries(GRADIENT_PRESETS.map((preset) => [preset.id, preset]));
|
|
5613
|
+
function getGradientPreset(id) {
|
|
5614
|
+
return gradientPresetById[id];
|
|
5615
|
+
}
|
|
5616
|
+
//#endregion
|
|
5617
|
+
//#region ../theme-core/src/gradients/utils.ts
|
|
5618
|
+
/**
|
|
5619
|
+
* Convert a GradientConfig to a CSS gradient string
|
|
5620
|
+
*
|
|
5621
|
+
* @param config - The gradient configuration using theme tokens
|
|
5622
|
+
* @param tokens - Map of theme color tokens to hex values
|
|
5623
|
+
* @returns CSS gradient string (e.g., "linear-gradient(180deg, #3b82f6 0%, #f59e0b 100%)")
|
|
5624
|
+
*/
|
|
5625
|
+
function gradientToCss(config, tokens) {
|
|
5626
|
+
const stops = config.stops.map((stop) => {
|
|
5627
|
+
return `${tokens[stop.color] ?? "#000000"} ${stop.position}%`;
|
|
5628
|
+
}).join(", ");
|
|
5629
|
+
const type = config.type ?? "linear";
|
|
5630
|
+
if (type === "radial") {
|
|
5631
|
+
const position = config.position ?? "center";
|
|
5632
|
+
return `radial-gradient(${config.shape ?? "circle"} at ${position}, ${stops})`;
|
|
5633
|
+
}
|
|
5634
|
+
if (type === "conic") {
|
|
5635
|
+
const position = config.position ?? "center";
|
|
5636
|
+
return `conic-gradient(from ${config.angle ?? 0}deg at ${position}, ${stops})`;
|
|
5637
|
+
}
|
|
5638
|
+
return `linear-gradient(${config.angle ?? 180}deg, ${stops})`;
|
|
5639
|
+
}
|
|
5640
|
+
//#endregion
|
|
5641
|
+
//#region ../theme-core/src/site-styles/sectionGround.ts
|
|
5642
|
+
/** A section that declares no ground of its own sits on the page background. */
|
|
5643
|
+
const pageGround = { fallback: requireGroundToken("background") };
|
|
5644
|
+
/** A section's declared ground. A non-token fallback is a layout bug, so it throws when the layout is built. */
|
|
5645
|
+
function sectionGround(fallback) {
|
|
5646
|
+
return { fallback: requireGroundToken(fallback) };
|
|
5647
|
+
}
|
|
5648
|
+
/**
|
|
5649
|
+
* The one paint decision for a ground: the background layer paints from it,
|
|
5650
|
+
* and boundary and seam composition classify from it. A colour that is unset
|
|
5651
|
+
* or blank, a gradient with nothing to draw, or no background at all paints
|
|
5652
|
+
* the fallback.
|
|
5653
|
+
*/
|
|
5654
|
+
function groundPaint(background, fallback) {
|
|
5655
|
+
const fill = nonBlank(fallback);
|
|
5656
|
+
switch (background?.type) {
|
|
5657
|
+
case "color": {
|
|
5658
|
+
const colour = nonBlank(background.color);
|
|
5659
|
+
return colour ? {
|
|
5660
|
+
kind: "fill",
|
|
5661
|
+
colour
|
|
5662
|
+
} : fillOrBare(fill);
|
|
5663
|
+
}
|
|
5664
|
+
case "gradient": {
|
|
5665
|
+
const gradient = nonBlank(background.gradient) ?? gradientPresetCss(background.gradientPresetId);
|
|
5666
|
+
return gradient ? {
|
|
5667
|
+
kind: "gradient",
|
|
5668
|
+
gradient
|
|
5669
|
+
} : fillOrBare(fill);
|
|
5670
|
+
}
|
|
5671
|
+
case "image":
|
|
5672
|
+
case "video": return {
|
|
5673
|
+
kind: "media",
|
|
5674
|
+
fill
|
|
5675
|
+
};
|
|
5676
|
+
case void 0: return fillOrBare(fill);
|
|
5677
|
+
}
|
|
5678
|
+
}
|
|
5679
|
+
function fillOrBare(colour) {
|
|
5680
|
+
return colour ? {
|
|
5681
|
+
kind: "fill",
|
|
5682
|
+
colour
|
|
5683
|
+
} : { kind: "bare" };
|
|
5684
|
+
}
|
|
5685
|
+
function nonBlank(value) {
|
|
5686
|
+
return typeof value === "string" && value.trim().length > 0 ? value.trim() : null;
|
|
5687
|
+
}
|
|
5688
|
+
function gradientPresetCss(value) {
|
|
5689
|
+
const presetId = parseGradientPresetId(value);
|
|
5690
|
+
if (!presetId) return null;
|
|
5691
|
+
const preset = getGradientPreset(presetId);
|
|
5692
|
+
return gradientToCss(preset, Object.fromEntries(preset.stops.map((stop) => [stop.color, `rgb(var(--tb-${stop.color}))`])));
|
|
5693
|
+
}
|
|
5694
|
+
function requireGroundToken(value) {
|
|
5695
|
+
const token = parseThemeColorToken(value);
|
|
5696
|
+
if (!token) throw new Error(`A section ground must be a theme color token. Received: ${value}`);
|
|
5697
|
+
return token;
|
|
5698
|
+
}
|
|
5506
5699
|
const pageDesignUserPinnedAppearanceChoiceSchema = z.object({
|
|
5507
5700
|
kind: z.literal("user-pinned"),
|
|
5508
5701
|
value: z.string().min(1).transform(asAppearancePresetId)
|
|
@@ -18359,227 +18552,6 @@ function toPageRuntimeJoin(join) {
|
|
|
18359
18552
|
};
|
|
18360
18553
|
}
|
|
18361
18554
|
//#endregion
|
|
18362
|
-
//#region ../theme-core/src/gradients/presets.ts
|
|
18363
|
-
/**
|
|
18364
|
-
* Curated gradient presets based on theme palette
|
|
18365
|
-
*/
|
|
18366
|
-
const gradientPresetData = {
|
|
18367
|
-
"primary-secondary": {
|
|
18368
|
-
name: "Primary to Secondary",
|
|
18369
|
-
description: "Blend your primary and secondary brand colors",
|
|
18370
|
-
type: "linear",
|
|
18371
|
-
angle: 135,
|
|
18372
|
-
stops: [{
|
|
18373
|
-
color: "primary-500",
|
|
18374
|
-
position: 0
|
|
18375
|
-
}, {
|
|
18376
|
-
color: "secondary-500",
|
|
18377
|
-
position: 100
|
|
18378
|
-
}]
|
|
18379
|
-
},
|
|
18380
|
-
"primary-accent": {
|
|
18381
|
-
name: "Primary to Accent",
|
|
18382
|
-
description: "Energetic gradient from primary to accent",
|
|
18383
|
-
type: "linear",
|
|
18384
|
-
angle: 135,
|
|
18385
|
-
stops: [{
|
|
18386
|
-
color: "primary-500",
|
|
18387
|
-
position: 0
|
|
18388
|
-
}, {
|
|
18389
|
-
color: "accent-500",
|
|
18390
|
-
position: 100
|
|
18391
|
-
}]
|
|
18392
|
-
},
|
|
18393
|
-
"secondary-accent": {
|
|
18394
|
-
name: "Secondary to Accent",
|
|
18395
|
-
description: "Vibrant secondary to accent blend",
|
|
18396
|
-
type: "linear",
|
|
18397
|
-
angle: 135,
|
|
18398
|
-
stops: [{
|
|
18399
|
-
color: "secondary-500",
|
|
18400
|
-
position: 0
|
|
18401
|
-
}, {
|
|
18402
|
-
color: "accent-500",
|
|
18403
|
-
position: 100
|
|
18404
|
-
}]
|
|
18405
|
-
},
|
|
18406
|
-
"primary-light-dark": {
|
|
18407
|
-
name: "Primary Light to Dark",
|
|
18408
|
-
description: "Subtle primary color fade",
|
|
18409
|
-
type: "linear",
|
|
18410
|
-
angle: 180,
|
|
18411
|
-
stops: [{
|
|
18412
|
-
color: "primary-500",
|
|
18413
|
-
position: 0
|
|
18414
|
-
}, {
|
|
18415
|
-
color: "primary-900",
|
|
18416
|
-
position: 100
|
|
18417
|
-
}]
|
|
18418
|
-
},
|
|
18419
|
-
"primary-dark-light": {
|
|
18420
|
-
name: "Primary Dark to Light",
|
|
18421
|
-
description: "Reverse primary fade",
|
|
18422
|
-
type: "linear",
|
|
18423
|
-
angle: 180,
|
|
18424
|
-
stops: [{
|
|
18425
|
-
color: "primary-900",
|
|
18426
|
-
position: 0
|
|
18427
|
-
}, {
|
|
18428
|
-
color: "primary-50",
|
|
18429
|
-
position: 100
|
|
18430
|
-
}]
|
|
18431
|
-
},
|
|
18432
|
-
"secondary-light-dark": {
|
|
18433
|
-
name: "Secondary Light to Dark",
|
|
18434
|
-
description: "Subtle secondary color fade",
|
|
18435
|
-
type: "linear",
|
|
18436
|
-
angle: 180,
|
|
18437
|
-
stops: [{
|
|
18438
|
-
color: "secondary-500",
|
|
18439
|
-
position: 0
|
|
18440
|
-
}, {
|
|
18441
|
-
color: "secondary-900",
|
|
18442
|
-
position: 100
|
|
18443
|
-
}]
|
|
18444
|
-
},
|
|
18445
|
-
"accent-light-dark": {
|
|
18446
|
-
name: "Accent Light to Dark",
|
|
18447
|
-
description: "Accent color depth fade",
|
|
18448
|
-
type: "linear",
|
|
18449
|
-
angle: 180,
|
|
18450
|
-
stops: [{
|
|
18451
|
-
color: "accent-500",
|
|
18452
|
-
position: 0
|
|
18453
|
-
}, {
|
|
18454
|
-
color: "accent-900",
|
|
18455
|
-
position: 100
|
|
18456
|
-
}]
|
|
18457
|
-
},
|
|
18458
|
-
"background-surface": {
|
|
18459
|
-
name: "Background to Surface",
|
|
18460
|
-
description: "Subtle depth using base colors",
|
|
18461
|
-
type: "linear",
|
|
18462
|
-
angle: 180,
|
|
18463
|
-
stops: [{
|
|
18464
|
-
color: "background",
|
|
18465
|
-
position: 0
|
|
18466
|
-
}, {
|
|
18467
|
-
color: "surface",
|
|
18468
|
-
position: 100
|
|
18469
|
-
}]
|
|
18470
|
-
},
|
|
18471
|
-
"neutral-fade": {
|
|
18472
|
-
name: "Neutral Gradient",
|
|
18473
|
-
description: "Elegant neutral color fade",
|
|
18474
|
-
type: "linear",
|
|
18475
|
-
angle: 180,
|
|
18476
|
-
stops: [{
|
|
18477
|
-
color: "neutral-900",
|
|
18478
|
-
position: 0
|
|
18479
|
-
}, {
|
|
18480
|
-
color: "neutral-50",
|
|
18481
|
-
position: 100
|
|
18482
|
-
}]
|
|
18483
|
-
},
|
|
18484
|
-
"primary-glow": {
|
|
18485
|
-
name: "Primary glow",
|
|
18486
|
-
description: "A soft top-centred glow using your primary palette",
|
|
18487
|
-
type: "radial",
|
|
18488
|
-
shape: "ellipse",
|
|
18489
|
-
position: "top center",
|
|
18490
|
-
stops: [{
|
|
18491
|
-
color: "primary-900",
|
|
18492
|
-
position: 0
|
|
18493
|
-
}, {
|
|
18494
|
-
color: "primary-950",
|
|
18495
|
-
position: 100
|
|
18496
|
-
}],
|
|
18497
|
-
foreground: {
|
|
18498
|
-
textColor: "onPrimary900",
|
|
18499
|
-
headingColor: "onPrimary900",
|
|
18500
|
-
linkColor: "onPrimary900",
|
|
18501
|
-
supportingColor: "onPrimary900"
|
|
18502
|
-
}
|
|
18503
|
-
},
|
|
18504
|
-
"accent-glow": {
|
|
18505
|
-
name: "Accent glow",
|
|
18506
|
-
description: "A soft top-centred glow using your accent palette",
|
|
18507
|
-
type: "radial",
|
|
18508
|
-
shape: "ellipse",
|
|
18509
|
-
position: "top center",
|
|
18510
|
-
stops: [{
|
|
18511
|
-
color: "accent-900",
|
|
18512
|
-
position: 0
|
|
18513
|
-
}, {
|
|
18514
|
-
color: "accent-950",
|
|
18515
|
-
position: 100
|
|
18516
|
-
}],
|
|
18517
|
-
foreground: {
|
|
18518
|
-
textColor: "onAccent900",
|
|
18519
|
-
headingColor: "onAccent900",
|
|
18520
|
-
linkColor: "onAccent900",
|
|
18521
|
-
supportingColor: "onAccent900"
|
|
18522
|
-
}
|
|
18523
|
-
},
|
|
18524
|
-
"primary-secondary-accent": {
|
|
18525
|
-
name: "Brand Trio",
|
|
18526
|
-
description: "All three brand colors in harmony",
|
|
18527
|
-
type: "linear",
|
|
18528
|
-
angle: 135,
|
|
18529
|
-
stops: [
|
|
18530
|
-
{
|
|
18531
|
-
color: "primary-500",
|
|
18532
|
-
position: 0
|
|
18533
|
-
},
|
|
18534
|
-
{
|
|
18535
|
-
color: "secondary-500",
|
|
18536
|
-
position: 50
|
|
18537
|
-
},
|
|
18538
|
-
{
|
|
18539
|
-
color: "accent-500",
|
|
18540
|
-
position: 100
|
|
18541
|
-
}
|
|
18542
|
-
]
|
|
18543
|
-
}
|
|
18544
|
-
};
|
|
18545
|
-
const presetData = (id) => gradientPresetData[id];
|
|
18546
|
-
/**
|
|
18547
|
-
* Curated library of gradient presets.
|
|
18548
|
-
* All gradients use theme color tokens, so they adapt to the site's palette.
|
|
18549
|
-
*/
|
|
18550
|
-
const GRADIENT_PRESETS = gradientPresetIdValues.flatMap((value) => parseGradientPresetId(value) ?? []).map((id) => ({
|
|
18551
|
-
id,
|
|
18552
|
-
...presetData(id)
|
|
18553
|
-
}));
|
|
18554
|
-
const gradientPresetById = Object.fromEntries(GRADIENT_PRESETS.map((preset) => [preset.id, preset]));
|
|
18555
|
-
function getGradientPreset(id) {
|
|
18556
|
-
return gradientPresetById[id];
|
|
18557
|
-
}
|
|
18558
|
-
//#endregion
|
|
18559
|
-
//#region ../theme-core/src/gradients/utils.ts
|
|
18560
|
-
/**
|
|
18561
|
-
* Convert a GradientConfig to a CSS gradient string
|
|
18562
|
-
*
|
|
18563
|
-
* @param config - The gradient configuration using theme tokens
|
|
18564
|
-
* @param tokens - Map of theme color tokens to hex values
|
|
18565
|
-
* @returns CSS gradient string (e.g., "linear-gradient(180deg, #3b82f6 0%, #f59e0b 100%)")
|
|
18566
|
-
*/
|
|
18567
|
-
function gradientToCss(config, tokens) {
|
|
18568
|
-
const stops = config.stops.map((stop) => {
|
|
18569
|
-
return `${tokens[stop.color] ?? "#000000"} ${stop.position}%`;
|
|
18570
|
-
}).join(", ");
|
|
18571
|
-
const type = config.type ?? "linear";
|
|
18572
|
-
if (type === "radial") {
|
|
18573
|
-
const position = config.position ?? "center";
|
|
18574
|
-
return `radial-gradient(${config.shape ?? "circle"} at ${position}, ${stops})`;
|
|
18575
|
-
}
|
|
18576
|
-
if (type === "conic") {
|
|
18577
|
-
const position = config.position ?? "center";
|
|
18578
|
-
return `conic-gradient(from ${config.angle ?? 0}deg at ${position}, ${stops})`;
|
|
18579
|
-
}
|
|
18580
|
-
return `linear-gradient(${config.angle ?? 180}deg, ${stops})`;
|
|
18581
|
-
}
|
|
18582
|
-
//#endregion
|
|
18583
18555
|
//#region ../theme-core/src/site-styles/sectionSurfaceBackgrounds.ts
|
|
18584
18556
|
function compileGradientSectionBackground(background, foreground, palette) {
|
|
18585
18557
|
const preset = getGradientPreset(background.gradientPresetId);
|
|
@@ -26608,290 +26580,35 @@ function eventCalendarListGroupingDecision(input) {
|
|
|
26608
26580
|
grouping: available && input.listBy === "week" ? "week" : "upcoming"
|
|
26609
26581
|
};
|
|
26610
26582
|
}
|
|
26611
|
-
|
|
26612
|
-
|
|
26613
|
-
|
|
26614
|
-
|
|
26615
|
-
|
|
26616
|
-
|
|
26617
|
-
scope: z.object({
|
|
26618
|
-
key: z.string(),
|
|
26619
|
-
timeZone: z.string().transform(toBookingTimeZone)
|
|
26620
|
-
}),
|
|
26621
|
-
window: calendarMonthWindowSchema,
|
|
26622
|
-
initialToday: z.object({
|
|
26623
|
-
year: z.number().int(),
|
|
26624
|
-
month: z.number().int().min(1).max(12),
|
|
26625
|
-
day: z.number().int().min(1).max(31)
|
|
26626
|
-
}),
|
|
26627
|
-
events: z.array(publicEventSchema)
|
|
26628
|
-
};
|
|
26629
|
-
const calendarWindowPageSchema = z.discriminatedUnion("kind", [z.object({
|
|
26630
|
-
...pageFields,
|
|
26631
|
-
kind: z.literal("complete")
|
|
26632
|
-
}), z.object({
|
|
26633
|
-
...pageFields,
|
|
26634
|
-
kind: z.literal("partial"),
|
|
26635
|
-
nextCursor: calendarSourceCursorSchema
|
|
26636
|
-
})]);
|
|
26637
|
-
//#endregion
|
|
26638
|
-
//#region ../blocks/src/system/helpers/normalizeIds.ts
|
|
26639
|
-
function normalizeIdList(parts) {
|
|
26640
|
-
const seen = /* @__PURE__ */ new Set();
|
|
26641
|
-
const normalized = [];
|
|
26642
|
-
for (const part of parts) {
|
|
26643
|
-
const trimmed = part.trim();
|
|
26644
|
-
if (!trimmed || seen.has(trimmed)) continue;
|
|
26645
|
-
seen.add(trimmed);
|
|
26646
|
-
normalized.push(trimmed);
|
|
26647
|
-
}
|
|
26648
|
-
return normalized.sort();
|
|
26649
|
-
}
|
|
26650
|
-
const eventPageSizeValues = [
|
|
26651
|
-
1,
|
|
26652
|
-
2,
|
|
26653
|
-
3,
|
|
26654
|
-
4,
|
|
26655
|
-
5,
|
|
26656
|
-
6,
|
|
26657
|
-
10,
|
|
26658
|
-
12,
|
|
26659
|
-
20,
|
|
26660
|
-
24,
|
|
26661
|
-
30,
|
|
26662
|
-
100
|
|
26663
|
-
];
|
|
26664
|
-
const eventPageSizeSchema = z.union([
|
|
26665
|
-
z.literal(1),
|
|
26666
|
-
z.literal(2),
|
|
26667
|
-
z.literal(3),
|
|
26668
|
-
z.literal(4),
|
|
26669
|
-
z.literal(5),
|
|
26670
|
-
z.literal(6),
|
|
26671
|
-
z.literal(10),
|
|
26672
|
-
z.literal(12),
|
|
26673
|
-
z.literal(20),
|
|
26674
|
-
z.literal(24),
|
|
26675
|
-
z.literal(30),
|
|
26676
|
-
z.literal(100)
|
|
26677
|
-
]);
|
|
26678
|
-
const eventPageSizeSet = new Set(eventPageSizeValues);
|
|
26679
|
-
function resolveEventPageSize(value, fallback = 12) {
|
|
26680
|
-
const candidate = typeof value === "number" ? value : typeof value === "string" && value.trim() !== "" ? Number(value.trim()) : null;
|
|
26681
|
-
return candidate != null && Number.isInteger(candidate) && eventPageSizeSet.has(candidate) ? candidate : fallback;
|
|
26682
|
-
}
|
|
26683
|
-
function resolveEventCalendarListPageSize(input) {
|
|
26684
|
-
return resolveEventPageSize(input.eventsPerPage);
|
|
26685
|
-
}
|
|
26686
|
-
const eventListPaginationActionSchema = z.discriminatedUnion("kind", [
|
|
26687
|
-
z.object({ kind: z.literal("none") }),
|
|
26688
|
-
z.object({
|
|
26689
|
-
kind: z.literal("loadMore"),
|
|
26690
|
-
label: z.string()
|
|
26691
|
-
}),
|
|
26692
|
-
z.object({
|
|
26693
|
-
kind: z.literal("seeAllLink"),
|
|
26694
|
-
label: z.string(),
|
|
26695
|
-
href: z.string()
|
|
26696
|
-
})
|
|
26697
|
-
]);
|
|
26698
|
-
function resolveEventListPaginationAction(input) {
|
|
26699
|
-
if (input.paginationMode === "none") return { kind: "none" };
|
|
26700
|
-
const label = input.loadMoreText?.trim() || input.defaultLabel || "Load more events";
|
|
26701
|
-
const href = input.seeAllUrl?.trim();
|
|
26702
|
-
if (input.paginationMode === "seeAllLink" && href) return {
|
|
26703
|
-
kind: "seeAllLink",
|
|
26704
|
-
label,
|
|
26705
|
-
href
|
|
26706
|
-
};
|
|
26707
|
-
return {
|
|
26708
|
-
kind: "loadMore",
|
|
26709
|
-
label
|
|
26710
|
-
};
|
|
26711
|
-
}
|
|
26712
|
-
//#endregion
|
|
26713
|
-
//#region ../blocks/src/system/blocks/events/shared/eventSelection.ts
|
|
26714
|
-
/** Invalid saved selections fail closed rather than widening discovery. */
|
|
26715
|
-
function resolveEventSelection(mode, value) {
|
|
26716
|
-
if (mode !== "selected") return { kind: "matching" };
|
|
26717
|
-
const candidates = Array.isArray(value) ? value : typeof value === "string" ? value.split(",").filter(Boolean) : [];
|
|
26718
|
-
const ids = [];
|
|
26719
|
-
for (const candidate of candidates) {
|
|
26720
|
-
if (typeof candidate !== "string") return {
|
|
26721
|
-
kind: "selected",
|
|
26722
|
-
seriesIds: []
|
|
26723
|
-
};
|
|
26724
|
-
const parsed = parseEventSeriesId(candidate.trim());
|
|
26725
|
-
if (!parsed.ok) return {
|
|
26726
|
-
kind: "selected",
|
|
26727
|
-
seriesIds: []
|
|
26728
|
-
};
|
|
26729
|
-
ids.push(parsed.value);
|
|
26583
|
+
const weeklyScheduleRead = {
|
|
26584
|
+
shape: "weeklySchedule",
|
|
26585
|
+
query: {
|
|
26586
|
+
eventSurface: "custom",
|
|
26587
|
+
eventPresets: "class",
|
|
26588
|
+
scheduleScope: "any"
|
|
26730
26589
|
}
|
|
26731
|
-
|
|
26732
|
-
|
|
26733
|
-
|
|
26734
|
-
|
|
26735
|
-
}
|
|
26736
|
-
/** Undefined means discovery; an empty string is an explicitly empty selection. */
|
|
26737
|
-
function eventSeriesScopeCsv(value) {
|
|
26738
|
-
if (value == null) return void 0;
|
|
26739
|
-
return typeof value === "string" ? value : value.join(",");
|
|
26590
|
+
};
|
|
26591
|
+
/** A recurring schedule section always paints the weekly class schedule. */
|
|
26592
|
+
function recurringScheduleRead() {
|
|
26593
|
+
return weeklyScheduleRead;
|
|
26740
26594
|
}
|
|
26741
|
-
|
|
26742
|
-
|
|
26743
|
-
/** Content fields that narrow a discovery (not hand-picked) event section. */
|
|
26744
|
-
const eventDiscoveryFilterKeys = [
|
|
26745
|
-
"eventSurface",
|
|
26746
|
-
"filterEventPresets",
|
|
26747
|
-
"scheduleScope",
|
|
26748
|
-
"filterCategoryIds",
|
|
26749
|
-
"filterStaffMemberId",
|
|
26750
|
-
"filterVenueId"
|
|
26751
|
-
];
|
|
26752
|
-
/**
|
|
26753
|
-
* The one owner of an event section's scope. Readiness ("is there anything to
|
|
26754
|
-
* show?") and the render loaders both derive their query from this, so Hide can
|
|
26755
|
-
* never judge a section empty that would display events.
|
|
26756
|
-
*/
|
|
26757
|
-
function resolveEventScope(content) {
|
|
26758
|
-
const selection = resolveEventSelection(content.eventSelection, content.selectedEventSeriesIds);
|
|
26759
|
-
if (selection.kind === "selected") return selection;
|
|
26595
|
+
/** The events a section's scope selects: the series an author picked, or whatever matches its filters. */
|
|
26596
|
+
function resolveEventScopeRead(content) {
|
|
26760
26597
|
return {
|
|
26761
|
-
|
|
26762
|
-
|
|
26598
|
+
shape: "events",
|
|
26599
|
+
query: eventScopeQuery(resolveEventScope(content))
|
|
26763
26600
|
};
|
|
26764
26601
|
}
|
|
26765
|
-
const discoveryQueryKey = {
|
|
26766
|
-
eventSurface: "eventSurface",
|
|
26767
|
-
filterEventPresets: "eventPresets",
|
|
26768
|
-
scheduleScope: "scheduleScope",
|
|
26769
|
-
filterCategoryIds: "categoryIds",
|
|
26770
|
-
filterStaffMemberId: "staffMemberId",
|
|
26771
|
-
filterVenueId: "venueId"
|
|
26772
|
-
};
|
|
26773
|
-
const eventScopeQueryKeys = ["seriesIds", ...Object.values(discoveryQueryKey)];
|
|
26774
|
-
function scopeCsv(value) {
|
|
26775
|
-
const normalized = (Array.isArray(value) ? value : typeof value === "string" ? value.split(",") : []).filter((item) => typeof item === "string").map((item) => item.trim()).filter(Boolean);
|
|
26776
|
-
return normalized.length > 0 ? [...new Set(normalized)].join(",") : void 0;
|
|
26777
|
-
}
|
|
26778
26602
|
/**
|
|
26779
|
-
*
|
|
26780
|
-
*
|
|
26781
|
-
*
|
|
26603
|
+
* What an events calendar reads, decided by its display mode. Week paints the
|
|
26604
|
+
* fixed class schedule whatever the section's own scope says; every other mode
|
|
26605
|
+
* reads the section's scope. The calendar's loaders, readiness and "which pages
|
|
26606
|
+
* list this event" all take their query from here.
|
|
26782
26607
|
*/
|
|
26783
|
-
function
|
|
26784
|
-
|
|
26785
|
-
return Object.fromEntries(eventDiscoveryFilterKeys.flatMap((key) => {
|
|
26786
|
-
const value = scopeCsv(scope.filters[key]);
|
|
26787
|
-
return value === void 0 ? [] : [[discoveryQueryKey[key], value]];
|
|
26788
|
-
}));
|
|
26789
|
-
}
|
|
26790
|
-
/**
|
|
26791
|
-
* A query value as a loader binding must return it. Binding resolution treats
|
|
26792
|
-
* `""` as absent, which would widen an explicitly empty selection to discovery,
|
|
26793
|
-
* so `seriesIds` travels as an empty list and becomes `seriesIds=` when params
|
|
26794
|
-
* are stringified.
|
|
26795
|
-
*/
|
|
26796
|
-
function eventScopeLoaderParam(query, key) {
|
|
26797
|
-
return key === "seriesIds" && query.seriesIds === "" ? [] : query[key];
|
|
26608
|
+
function resolveEventCalendarRead(content) {
|
|
26609
|
+
return resolveEventCalendarReadPlan(content).jobs === "schedule" ? weeklyScheduleRead : resolveEventScopeRead(content);
|
|
26798
26610
|
}
|
|
26799
26611
|
//#endregion
|
|
26800
|
-
//#region ../blocks/src/system/blocks/events/eventCalendarDataLoaders.ts
|
|
26801
|
-
const eventWeekReadScope = {
|
|
26802
|
-
eventSurface: "custom",
|
|
26803
|
-
eventPresets: "class",
|
|
26804
|
-
scheduleScope: "any"
|
|
26805
|
-
};
|
|
26806
|
-
/** The section's event scope comes from resolveEventScope, the same owner readiness uses. */
|
|
26807
|
-
const eventScopeLoaderParams = Object.fromEntries(eventScopeQueryKeys.map((key) => [key, { $bind: {
|
|
26808
|
-
from: "content",
|
|
26809
|
-
transforms: [{
|
|
26810
|
-
id: "events.scopeParam",
|
|
26811
|
-
options: { key }
|
|
26812
|
-
}]
|
|
26813
|
-
} }]));
|
|
26814
|
-
const scopeParams = {
|
|
26815
|
-
siteId: { $bind: { from: "$root.siteId" } },
|
|
26816
|
-
stage: { $bind: {
|
|
26817
|
-
from: "$root.previewStage",
|
|
26818
|
-
fallback: "published"
|
|
26819
|
-
} },
|
|
26820
|
-
...eventScopeLoaderParams
|
|
26821
|
-
};
|
|
26822
|
-
/** Each mode reads only what it paints first; see resolveEventCalendarReadPlan. */
|
|
26823
|
-
const eventCalendarDataLoaders = {
|
|
26824
|
-
schedule: {
|
|
26825
|
-
endpoint: "listPublicRecurringSchedule",
|
|
26826
|
-
when: { $bind: {
|
|
26827
|
-
from: "content",
|
|
26828
|
-
transforms: [{
|
|
26829
|
-
id: "events.calendarReadEnabled",
|
|
26830
|
-
options: { job: "schedule" }
|
|
26831
|
-
}]
|
|
26832
|
-
} },
|
|
26833
|
-
params: {
|
|
26834
|
-
siteId: scopeParams.siteId,
|
|
26835
|
-
stage: scopeParams.stage,
|
|
26836
|
-
limit: "100",
|
|
26837
|
-
detailLevel: "listing",
|
|
26838
|
-
readProfile: "compact-list",
|
|
26839
|
-
...eventWeekReadScope
|
|
26840
|
-
},
|
|
26841
|
-
mode: "server"
|
|
26842
|
-
},
|
|
26843
|
-
events: {
|
|
26844
|
-
endpoint: "listPublicEvents",
|
|
26845
|
-
when: { $bind: {
|
|
26846
|
-
from: "content",
|
|
26847
|
-
transforms: [{
|
|
26848
|
-
id: "events.calendarReadEnabled",
|
|
26849
|
-
options: { job: "list" }
|
|
26850
|
-
}]
|
|
26851
|
-
} },
|
|
26852
|
-
params: {
|
|
26853
|
-
...scopeParams,
|
|
26854
|
-
limit: 100,
|
|
26855
|
-
detailLevel: "listing",
|
|
26856
|
-
readProfile: "listing-card",
|
|
26857
|
-
from: { $bind: {
|
|
26858
|
-
from: "$root",
|
|
26859
|
-
transforms: [{
|
|
26860
|
-
id: "events.calendarListWindow",
|
|
26861
|
-
options: { key: "from" }
|
|
26862
|
-
}]
|
|
26863
|
-
} },
|
|
26864
|
-
to: { $bind: {
|
|
26865
|
-
from: "$root",
|
|
26866
|
-
transforms: [{
|
|
26867
|
-
id: "events.calendarListWindow",
|
|
26868
|
-
options: { key: "to" }
|
|
26869
|
-
}]
|
|
26870
|
-
} }
|
|
26871
|
-
},
|
|
26872
|
-
mode: "server"
|
|
26873
|
-
},
|
|
26874
|
-
calendarWindow: {
|
|
26875
|
-
endpoint: "listPublicEventCalendarWindow",
|
|
26876
|
-
when: { $bind: {
|
|
26877
|
-
from: "content",
|
|
26878
|
-
transforms: [{
|
|
26879
|
-
id: "events.calendarReadEnabled",
|
|
26880
|
-
options: { job: "calendar" }
|
|
26881
|
-
}]
|
|
26882
|
-
} },
|
|
26883
|
-
params: {
|
|
26884
|
-
...scopeParams,
|
|
26885
|
-
limit: 100,
|
|
26886
|
-
readProfile: { $bind: {
|
|
26887
|
-
from: "content",
|
|
26888
|
-
transforms: [{ id: "events.calendarReadProfile" }]
|
|
26889
|
-
} }
|
|
26890
|
-
},
|
|
26891
|
-
mode: "server"
|
|
26892
|
-
}
|
|
26893
|
-
};
|
|
26894
|
-
//#endregion
|
|
26895
26612
|
//#region ../blocks/src/system/blocks/events/eventReadiness.ts
|
|
26896
26613
|
const eventReadinessResultSchema = z.union([z.array(z.unknown()), recurringScheduleProjectionSchema]).transform((result) => Array.isArray(result) ? result.length > 0 : result.items.length > 0);
|
|
26897
26614
|
const eventReadinessQueryKeys = ["limit", ...eventScopeQueryKeys];
|
|
@@ -26905,23 +26622,24 @@ function blockChecksForEvents(content) {
|
|
|
26905
26622
|
return content.emptyBehavior === "hide" || showsWhenNothingComingUp(content);
|
|
26906
26623
|
}
|
|
26907
26624
|
function eventReadinessLoaderKey(content) {
|
|
26908
|
-
return
|
|
26625
|
+
return resolveEventCalendarRead(content).shape === "weeklySchedule" ? "schedule" : "readinessEvents";
|
|
26909
26626
|
}
|
|
26910
26627
|
/**
|
|
26911
|
-
*
|
|
26912
|
-
*
|
|
26628
|
+
* Readiness reads what the calendar's loaders read (resolveEventCalendarRead):
|
|
26629
|
+
* Week its projected schedule, other modes their scope without the displayed
|
|
26630
|
+
* date windows.
|
|
26913
26631
|
*/
|
|
26914
26632
|
function eventReadinessQuery(content) {
|
|
26915
|
-
|
|
26916
|
-
...
|
|
26633
|
+
const read = resolveEventCalendarRead(showsWhenNothingComingUp(content) ? {
|
|
26634
|
+
...content,
|
|
26635
|
+
eventSelection: "selected"
|
|
26636
|
+
} : content);
|
|
26637
|
+
return read.shape === "weeklySchedule" ? {
|
|
26638
|
+
...read.query,
|
|
26917
26639
|
limit: "100"
|
|
26918
|
-
}
|
|
26919
|
-
return {
|
|
26640
|
+
} : {
|
|
26920
26641
|
limit: "1",
|
|
26921
|
-
...
|
|
26922
|
-
...content,
|
|
26923
|
-
eventSelection: "selected"
|
|
26924
|
-
} : content))
|
|
26642
|
+
...read.query
|
|
26925
26643
|
};
|
|
26926
26644
|
}
|
|
26927
26645
|
/** A one-row existence read shares the public event selection and stage contracts. */
|
|
@@ -29750,6 +29468,18 @@ const DEFAULT_SECTION_SPACING = "medium";
|
|
|
29750
29468
|
//#endregion
|
|
29751
29469
|
//#region ../blocks/src/system/node/fragments/styledSection.ts
|
|
29752
29470
|
/**
|
|
29471
|
+
* The geometry hook every styled section carries, whatever its Look or skin:
|
|
29472
|
+
* page-level spacing rules (section seams) target it, apart from the Look's
|
|
29473
|
+
* presentation slots, which come and go with the Look.
|
|
29474
|
+
*/
|
|
29475
|
+
const styledSectionHook = { "data-rb-section": "" };
|
|
29476
|
+
/**
|
|
29477
|
+
* Where a styled section keeps the ground it declares. A symbol, so it is
|
|
29478
|
+
* never read as a prop, and it survives the spread copies node modifiers
|
|
29479
|
+
* (`when`, `props`) make.
|
|
29480
|
+
*/
|
|
29481
|
+
const styledSectionGround = Symbol("styledSectionGround");
|
|
29482
|
+
/**
|
|
29753
29483
|
* Create a styled section with automatic background layer and spacing bindings.
|
|
29754
29484
|
*
|
|
29755
29485
|
* This helper encapsulates the common pattern of:
|
|
@@ -29793,30 +29523,51 @@ const DEFAULT_SECTION_SPACING = "medium";
|
|
|
29793
29523
|
*/
|
|
29794
29524
|
function styledSection(config) {
|
|
29795
29525
|
const { children, baseClass = "rb-px-6", spacing = DEFAULT_SECTION_SPACING, background = "background", bindFrom = "_sectionStyles", imageClassName = "rb-absolute rb-z-0", renderBackgroundImage = true, backgroundImageLoading, backgroundImageFetchPriority, fullWidthPath } = config;
|
|
29526
|
+
const ground = sectionGround(background);
|
|
29796
29527
|
const renderedBackgroundNode = backgroundFrame(`${bindFrom}.background`, {
|
|
29797
29528
|
...config.backgroundLookSlots ? {
|
|
29798
29529
|
frameSlot: "background",
|
|
29799
29530
|
imageSlot: "photo"
|
|
29800
29531
|
} : {},
|
|
29801
29532
|
imageClassName,
|
|
29802
|
-
fallbackToken:
|
|
29533
|
+
fallbackToken: ground.fallback,
|
|
29803
29534
|
omitImageLayer: !renderBackgroundImage,
|
|
29804
29535
|
imageLoading: backgroundImageLoading,
|
|
29805
29536
|
imageFetchPriority: backgroundImageFetchPriority
|
|
29806
29537
|
});
|
|
29807
29538
|
const childrenArray = Array.isArray(children) ? children : [children];
|
|
29808
|
-
return
|
|
29809
|
-
|
|
29810
|
-
|
|
29811
|
-
|
|
29812
|
-
|
|
29813
|
-
|
|
29814
|
-
|
|
29815
|
-
|
|
29816
|
-
|
|
29539
|
+
return {
|
|
29540
|
+
...section(sectionAppearanceProps({
|
|
29541
|
+
bindFrom,
|
|
29542
|
+
background: ground.fallback,
|
|
29543
|
+
baseClass,
|
|
29544
|
+
spacing,
|
|
29545
|
+
fullWidthPath,
|
|
29546
|
+
photoPaintsGround: renderBackgroundImage,
|
|
29547
|
+
skinSlot: config.skinSlot
|
|
29548
|
+
}), [renderedBackgroundNode, ...childrenArray]),
|
|
29549
|
+
[styledSectionGround]: ground
|
|
29550
|
+
};
|
|
29551
|
+
}
|
|
29552
|
+
function isStyledSectionNode(node) {
|
|
29553
|
+
return styledSectionGround in node;
|
|
29554
|
+
}
|
|
29555
|
+
/**
|
|
29556
|
+
* The ground a block layout's section declares, when its root is a styled
|
|
29557
|
+
* section: then the platform paints the section and owns its padding. Null
|
|
29558
|
+
* for a layout that draws its own root (the header, footer or blog post),
|
|
29559
|
+
* or whose alternative roots declare different grounds.
|
|
29560
|
+
*/
|
|
29561
|
+
function layoutSectionGround(layout) {
|
|
29562
|
+
if (!layout) return null;
|
|
29563
|
+
const [first, ...rest] = Array.isArray(layout) ? layout : [layout];
|
|
29564
|
+
if (!first || !isStyledSectionNode(first)) return null;
|
|
29565
|
+
const ground = first[styledSectionGround];
|
|
29566
|
+
return rest.every((root) => isStyledSectionNode(root) && root[styledSectionGround].fallback === ground.fallback) ? ground : null;
|
|
29817
29567
|
}
|
|
29818
29568
|
function sectionAppearanceProps(input) {
|
|
29819
29569
|
return {
|
|
29570
|
+
...styledSectionHook,
|
|
29820
29571
|
...input.skinSlot ? lookSlot(input.skinSlot, "skin") : lookSlot("section"),
|
|
29821
29572
|
"data-arrangement": { $bind: { from: "content._lookHooks.data-arrangement" } },
|
|
29822
29573
|
style: { $bind: {
|
|
@@ -41722,6 +41473,19 @@ const eventEmptyBehaviorFields = [{
|
|
|
41722
41473
|
}
|
|
41723
41474
|
}];
|
|
41724
41475
|
//#endregion
|
|
41476
|
+
//#region ../blocks/src/system/helpers/normalizeIds.ts
|
|
41477
|
+
function normalizeIdList(parts) {
|
|
41478
|
+
const seen = /* @__PURE__ */ new Set();
|
|
41479
|
+
const normalized = [];
|
|
41480
|
+
for (const part of parts) {
|
|
41481
|
+
const trimmed = part.trim();
|
|
41482
|
+
if (!trimmed || seen.has(trimmed)) continue;
|
|
41483
|
+
seen.add(trimmed);
|
|
41484
|
+
normalized.push(trimmed);
|
|
41485
|
+
}
|
|
41486
|
+
return normalized.sort();
|
|
41487
|
+
}
|
|
41488
|
+
//#endregion
|
|
41725
41489
|
//#region ../blocks/src/system/blocks/events/shared/filtering.ts
|
|
41726
41490
|
const unsafeAsEventCategoryId = (value) => value;
|
|
41727
41491
|
const unsafeAsVenueId = (value) => value;
|
|
@@ -42061,6 +41825,248 @@ function isBookableEvent(event, now) {
|
|
|
42061
41825
|
function hasEventBookingClosedEarly(event, now) {
|
|
42062
41826
|
return event.bookingClosesAt !== void 0 && hasBookingClosed(event.bookingClosesAt, now);
|
|
42063
41827
|
}
|
|
41828
|
+
/**
|
|
41829
|
+
* Past its cut-off but not yet started: the window an early cut-off adds. Once
|
|
41830
|
+
* a date has started, the page says that instead.
|
|
41831
|
+
*/
|
|
41832
|
+
function isInBookingCutOffWindow(event, now) {
|
|
41833
|
+
return hasEventBookingClosedEarly(event, now) && Date.parse(event.startsAt) > now.getTime();
|
|
41834
|
+
}
|
|
41835
|
+
//#endregion
|
|
41836
|
+
//#region ../blocks/src/system/runtime/nodes/events/domain/destination.ts
|
|
41837
|
+
function isRecord$3(value) {
|
|
41838
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
41839
|
+
}
|
|
41840
|
+
function isEventDestinationMode(value) {
|
|
41841
|
+
return value === "cms-managed" || value === "system-managed";
|
|
41842
|
+
}
|
|
41843
|
+
function readEventPage(value) {
|
|
41844
|
+
return isRecord$3(value) && isEventDestinationMode(value.mode) && typeof value.path === "string" && value.path.trim().length > 0 ? {
|
|
41845
|
+
mode: value.mode,
|
|
41846
|
+
path: value.path
|
|
41847
|
+
} : null;
|
|
41848
|
+
}
|
|
41849
|
+
/**
|
|
41850
|
+
* A destination from the payload, or null when it isn't one. An external
|
|
41851
|
+
* destination with a malformed `page` keeps linking out, as one without a page
|
|
41852
|
+
* does, rather than being read as booked here.
|
|
41853
|
+
*/
|
|
41854
|
+
function readRuntimeEventDestination(value) {
|
|
41855
|
+
if (!isRecord$3(value)) return null;
|
|
41856
|
+
if (value.kind === "native") return isEventDestinationMode(value.mode) && typeof value.path === "string" ? {
|
|
41857
|
+
kind: "native",
|
|
41858
|
+
mode: value.mode,
|
|
41859
|
+
path: value.path
|
|
41860
|
+
} : null;
|
|
41861
|
+
if (value.kind !== "external" || typeof value.url !== "string" || typeof value.label !== "string") return null;
|
|
41862
|
+
const page = readEventPage(value.page);
|
|
41863
|
+
return page ? {
|
|
41864
|
+
kind: "external",
|
|
41865
|
+
url: value.url,
|
|
41866
|
+
label: value.label,
|
|
41867
|
+
page
|
|
41868
|
+
} : {
|
|
41869
|
+
kind: "external",
|
|
41870
|
+
url: value.url,
|
|
41871
|
+
label: value.label
|
|
41872
|
+
};
|
|
41873
|
+
}
|
|
41874
|
+
function resolveRuntimeEventDestination(event) {
|
|
41875
|
+
const destination = readRuntimeEventDestination(event.destination);
|
|
41876
|
+
if (destination) return destination;
|
|
41877
|
+
return {
|
|
41878
|
+
kind: "native",
|
|
41879
|
+
mode: event.eventDestinationMode === "system-managed" ? "system-managed" : "cms-managed",
|
|
41880
|
+
path: typeof event.path === "string" ? event.path : ""
|
|
41881
|
+
};
|
|
41882
|
+
}
|
|
41883
|
+
//#endregion
|
|
41884
|
+
//#region ../blocks/src/system/runtime/nodes/events/domain/cta.ts
|
|
41885
|
+
/**
|
|
41886
|
+
* Booking call-to-action resolution for events: where an event links to and
|
|
41887
|
+
* what the button says. Sold-out and waitlist decisions come from capacity.ts
|
|
41888
|
+
* so cards, rows and the wizard never disagree.
|
|
41889
|
+
*/
|
|
41890
|
+
function closedEventBookingLabel(reason) {
|
|
41891
|
+
switch (reason) {
|
|
41892
|
+
case "occurrence_cancelled":
|
|
41893
|
+
case "series_cancelled": return "Cancelled";
|
|
41894
|
+
case "occurrence_completed":
|
|
41895
|
+
case "series_completed": return "Completed";
|
|
41896
|
+
case "series_draft":
|
|
41897
|
+
case "series_archived":
|
|
41898
|
+
case "parent_archived":
|
|
41899
|
+
case "parent_inconsistent":
|
|
41900
|
+
case "already_started":
|
|
41901
|
+
case "enrollment_closed": return "Registration closed";
|
|
41902
|
+
default: return assertNever(reason);
|
|
41903
|
+
}
|
|
41904
|
+
}
|
|
41905
|
+
function outwardLink(url) {
|
|
41906
|
+
return {
|
|
41907
|
+
href: url,
|
|
41908
|
+
target: "_blank",
|
|
41909
|
+
rel: "noopener noreferrer"
|
|
41910
|
+
};
|
|
41911
|
+
}
|
|
41912
|
+
/** The event's own page path, when it has a page (booked here, or booked elsewhere with its own page). */
|
|
41913
|
+
function eventDestinationPagePath(destination) {
|
|
41914
|
+
return destination.kind === "native" ? destination.path : destination.page?.path ?? null;
|
|
41915
|
+
}
|
|
41916
|
+
/**
|
|
41917
|
+
* Where an event's details are: its page when it has one (booked here, or
|
|
41918
|
+
* booked elsewhere with its own page), otherwise the outside link in a new tab.
|
|
41919
|
+
*/
|
|
41920
|
+
function eventDestinationPageLink(destination) {
|
|
41921
|
+
switch (destination.kind) {
|
|
41922
|
+
case "native": return { href: destination.path };
|
|
41923
|
+
case "external": return destination.page ? { href: destination.page.path } : outwardLink(destination.url);
|
|
41924
|
+
}
|
|
41925
|
+
}
|
|
41926
|
+
/** Where an event is booked: the outside link (new tab) for any event booked elsewhere, otherwise its page. */
|
|
41927
|
+
function eventDestinationBookingLink(destination) {
|
|
41928
|
+
return destination.kind === "external" ? outwardLink(destination.url) : { href: destination.path };
|
|
41929
|
+
}
|
|
41930
|
+
/** For the title, image, date tiles and calendar cells. */
|
|
41931
|
+
function resolveEventPageLink(event) {
|
|
41932
|
+
return eventDestinationPageLink(resolveRuntimeEventDestination(event));
|
|
41933
|
+
}
|
|
41934
|
+
/** For the Book button. */
|
|
41935
|
+
function resolveEventBookingLink(event) {
|
|
41936
|
+
return eventDestinationBookingLink(resolveRuntimeEventDestination(event));
|
|
41937
|
+
}
|
|
41938
|
+
/**
|
|
41939
|
+
* Resolve the CTA state for an event.
|
|
41940
|
+
* Shared by EventCard and EventCompactRow to keep sold-out, registration-closed,
|
|
41941
|
+
* and course-specific defaults consistent.
|
|
41942
|
+
*/
|
|
41943
|
+
function resolveEventCta(event, buttonText) {
|
|
41944
|
+
const isSoldOut = isEventFull(event);
|
|
41945
|
+
const isExternal = resolveRuntimeEventDestination(event).kind === "external";
|
|
41946
|
+
const { href } = resolveEventBookingLink(event);
|
|
41947
|
+
if (event.bookingAvailability.kind === "closed") {
|
|
41948
|
+
const linksToClosedWholeSeriesDetails = event.bookingAvailability.reason === "enrollment_closed" && !isExternal;
|
|
41949
|
+
return {
|
|
41950
|
+
label: closedEventBookingLabel(event.bookingAvailability.reason),
|
|
41951
|
+
href,
|
|
41952
|
+
external: isExternal,
|
|
41953
|
+
hidden: !linksToClosedWholeSeriesDetails
|
|
41954
|
+
};
|
|
41955
|
+
}
|
|
41956
|
+
if (!isExternal && isSoldOut) {
|
|
41957
|
+
if (canJoinEventWaitlistOnAnyMode(event)) return {
|
|
41958
|
+
label: "Join waitlist",
|
|
41959
|
+
href,
|
|
41960
|
+
external: false,
|
|
41961
|
+
hidden: false
|
|
41962
|
+
};
|
|
41963
|
+
return {
|
|
41964
|
+
label: "Sold out",
|
|
41965
|
+
href,
|
|
41966
|
+
external: false,
|
|
41967
|
+
hidden: true
|
|
41968
|
+
};
|
|
41969
|
+
}
|
|
41970
|
+
return destinationCta(event, buttonText);
|
|
41971
|
+
}
|
|
41972
|
+
function destinationCta(event, buttonText) {
|
|
41973
|
+
const destination = resolveRuntimeEventDestination(event);
|
|
41974
|
+
return {
|
|
41975
|
+
label: buttonText ?? (destination.kind === "external" ? destination.label : "Book"),
|
|
41976
|
+
href: resolveEventBookingLink(event).href,
|
|
41977
|
+
external: destination.kind === "external",
|
|
41978
|
+
hidden: false
|
|
41979
|
+
};
|
|
41980
|
+
}
|
|
41981
|
+
/**
|
|
41982
|
+
* A bounded date strip cannot prove a series sold out. Its destination owns date selection,
|
|
41983
|
+
* so the card offers that destination and leaves capacity with the individual date rows.
|
|
41984
|
+
* Whole-series bookings still have one shared capacity, as do ordinary occurrence cards.
|
|
41985
|
+
*/
|
|
41986
|
+
function resolveEventCardBooking(event, scope, buttonText, options) {
|
|
41987
|
+
const closedCta = event.bookingAvailability.kind === "closed" ? resolveEventCta(event, buttonText) : renderClockClosedCta(event, options.now);
|
|
41988
|
+
if (scope === "series" && event.bookingScope === "single_occurrence") {
|
|
41989
|
+
const closed = seriesBookingClosed(event);
|
|
41990
|
+
return {
|
|
41991
|
+
cta: closed ? resolveEventCta(event, buttonText) : withoutPage(destinationCta(event, buttonText)),
|
|
41992
|
+
availability: null,
|
|
41993
|
+
closed
|
|
41994
|
+
};
|
|
41995
|
+
}
|
|
41996
|
+
return closedCta ? {
|
|
41997
|
+
cta: closedCta,
|
|
41998
|
+
availability: null,
|
|
41999
|
+
closed: true
|
|
42000
|
+
} : {
|
|
42001
|
+
cta: withoutPage(resolveEventCta(event, buttonText)),
|
|
42002
|
+
availability: occurrenceCardAvailability(event, options.count),
|
|
42003
|
+
closed: false
|
|
42004
|
+
};
|
|
42005
|
+
}
|
|
42006
|
+
/** A native card with no page yet can't invite booking: there is nowhere to send the visitor. */
|
|
42007
|
+
function withoutPage(cta) {
|
|
42008
|
+
return !cta.external && !cta.hidden && cta.href === "" ? {
|
|
42009
|
+
...cta,
|
|
42010
|
+
label: "Details coming soon",
|
|
42011
|
+
hidden: true
|
|
42012
|
+
} : cta;
|
|
42013
|
+
}
|
|
42014
|
+
/** Only a series-wide closure closes its card; a cancelled or started date says nothing about later dates. */
|
|
42015
|
+
function seriesBookingClosed(event) {
|
|
42016
|
+
if (event.bookingAvailability.kind !== "closed") return false;
|
|
42017
|
+
switch (event.bookingAvailability.reason) {
|
|
42018
|
+
case "occurrence_cancelled":
|
|
42019
|
+
case "occurrence_completed":
|
|
42020
|
+
case "already_started": return false;
|
|
42021
|
+
case "series_cancelled":
|
|
42022
|
+
case "series_completed":
|
|
42023
|
+
case "series_draft":
|
|
42024
|
+
case "series_archived":
|
|
42025
|
+
case "parent_archived":
|
|
42026
|
+
case "parent_inconsistent":
|
|
42027
|
+
case "enrollment_closed": return true;
|
|
42028
|
+
default: return assertNever(event.bookingAvailability.reason);
|
|
42029
|
+
}
|
|
42030
|
+
}
|
|
42031
|
+
function occurrenceCardAvailability(event, count) {
|
|
42032
|
+
const label = formatEventRemainingPlaces(event, {
|
|
42033
|
+
full: "Sold out",
|
|
42034
|
+
count
|
|
42035
|
+
});
|
|
42036
|
+
const availability = getEventAvailabilityStatus(event);
|
|
42037
|
+
return label ? {
|
|
42038
|
+
label,
|
|
42039
|
+
status: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available"
|
|
42040
|
+
} : null;
|
|
42041
|
+
}
|
|
42042
|
+
/** Preserve projected closure reasons; only an open native booking needs its clock rechecked. */
|
|
42043
|
+
function renderClockClosedCta(event, now) {
|
|
42044
|
+
if (!now || event.destination.kind !== "native") return null;
|
|
42045
|
+
if (event.bookingScope !== "whole_series") return hasEventBookingClosedEarly(event, now) ? {
|
|
42046
|
+
label: "Registration closed",
|
|
42047
|
+
href: resolveEventBookingLink(event).href,
|
|
42048
|
+
external: false,
|
|
42049
|
+
hidden: true
|
|
42050
|
+
} : null;
|
|
42051
|
+
const phase = resolveWholeSeriesBookingPhase(event.run, now);
|
|
42052
|
+
if (phase.kind === "open") return null;
|
|
42053
|
+
return {
|
|
42054
|
+
label: (() => {
|
|
42055
|
+
switch (phase.reason) {
|
|
42056
|
+
case "cancelled": return "Cancelled";
|
|
42057
|
+
case "completed": return "Completed";
|
|
42058
|
+
case "in-progress":
|
|
42059
|
+
case "bookings-closed":
|
|
42060
|
+
case "enrolment-closed":
|
|
42061
|
+
case "no-sessions": return "Registration closed";
|
|
42062
|
+
default: return assertNever(phase.reason);
|
|
42063
|
+
}
|
|
42064
|
+
})(),
|
|
42065
|
+
href: resolveEventBookingLink(event).href,
|
|
42066
|
+
external: false,
|
|
42067
|
+
hidden: phase.reason !== "enrolment-closed" && phase.reason !== "bookings-closed"
|
|
42068
|
+
};
|
|
42069
|
+
}
|
|
42064
42070
|
//#endregion
|
|
42065
42071
|
//#region ../blocks/src/system/blocks/events/shared/pageSelection.ts
|
|
42066
42072
|
function planWholeSeriesParentBooking(eligibleRuns) {
|
|
@@ -42085,6 +42091,14 @@ function isOrdinaryPublicEvent(event) {
|
|
|
42085
42091
|
return event.bookingScope === "single_occurrence";
|
|
42086
42092
|
}
|
|
42087
42093
|
/**
|
|
42094
|
+
* A date people come to without booking. An event booked on another website is
|
|
42095
|
+
* also saved with no booking here, but its visitors do book, just elsewhere, so
|
|
42096
|
+
* it is never a drop-in.
|
|
42097
|
+
*/
|
|
42098
|
+
function isDropInPublicEvent(event) {
|
|
42099
|
+
return event.bookingScope === "single_occurrence" && !event.requiresRegistration && event.destination.kind !== "external";
|
|
42100
|
+
}
|
|
42101
|
+
/**
|
|
42088
42102
|
* What a series' own page shows when its URL names no date.
|
|
42089
42103
|
*
|
|
42090
42104
|
* Two or more dates a visitor can book make a choice: the page lists every
|
|
@@ -42267,7 +42281,7 @@ function planDropInPanel(selection) {
|
|
|
42267
42281
|
}
|
|
42268
42282
|
function getPublicEventCanonicalPath(event) {
|
|
42269
42283
|
if (event.path) return event.path;
|
|
42270
|
-
return event.destination
|
|
42284
|
+
return eventDestinationPagePath(event.destination);
|
|
42271
42285
|
}
|
|
42272
42286
|
function eventOccurrenceContext(event) {
|
|
42273
42287
|
return {
|
|
@@ -42283,7 +42297,7 @@ function eventOccurrenceContext(event) {
|
|
|
42283
42297
|
function registrationDataForEventSelection(selection) {
|
|
42284
42298
|
switch (selection.kind) {
|
|
42285
42299
|
case "occurrence": return {
|
|
42286
|
-
events: [selection.event],
|
|
42300
|
+
events: [selection.event, ...selection.additionalDates ?? []],
|
|
42287
42301
|
occurrenceContext: eventOccurrenceContext(selection.event),
|
|
42288
42302
|
subject: null
|
|
42289
42303
|
};
|
|
@@ -42352,6 +42366,202 @@ function isCancelledOrdinaryDate(event) {
|
|
|
42352
42366
|
//#region ../blocks/src/system/blocks/shared/bookingPageKind.ts
|
|
42353
42367
|
const bookingPageKindSchema = z.enum(["fullPage", "bookingPage"]);
|
|
42354
42368
|
//#endregion
|
|
42369
|
+
//#region ../calendar/src/grid.ts
|
|
42370
|
+
const DAY_NAMES = [
|
|
42371
|
+
"Sun",
|
|
42372
|
+
"Mon",
|
|
42373
|
+
"Tue",
|
|
42374
|
+
"Wed",
|
|
42375
|
+
"Thu",
|
|
42376
|
+
"Fri",
|
|
42377
|
+
"Sat"
|
|
42378
|
+
];
|
|
42379
|
+
const MONTH_NAMES = [
|
|
42380
|
+
"January",
|
|
42381
|
+
"February",
|
|
42382
|
+
"March",
|
|
42383
|
+
"April",
|
|
42384
|
+
"May",
|
|
42385
|
+
"June",
|
|
42386
|
+
"July",
|
|
42387
|
+
"August",
|
|
42388
|
+
"September",
|
|
42389
|
+
"October",
|
|
42390
|
+
"November",
|
|
42391
|
+
"December"
|
|
42392
|
+
];
|
|
42393
|
+
function formatDateKey(date) {
|
|
42394
|
+
return `${String(date.year).padStart(4, "0")}-${String(date.month).padStart(2, "0")}-${String(date.day).padStart(2, "0")}`;
|
|
42395
|
+
}
|
|
42396
|
+
function isToday(date, today) {
|
|
42397
|
+
return isSameCalendarDay(date, today);
|
|
42398
|
+
}
|
|
42399
|
+
function isSameCalendarDay(left, right) {
|
|
42400
|
+
return left.year === right.year && left.month === right.month && left.day === right.day;
|
|
42401
|
+
}
|
|
42402
|
+
function addDays(date, days) {
|
|
42403
|
+
const result = new Date(Date.UTC(date.year, date.month - 1, date.day + days, 12));
|
|
42404
|
+
return {
|
|
42405
|
+
year: result.getUTCFullYear(),
|
|
42406
|
+
month: result.getUTCMonth() + 1,
|
|
42407
|
+
day: result.getUTCDate()
|
|
42408
|
+
};
|
|
42409
|
+
}
|
|
42410
|
+
function getMonthCalendarDays(year, month, startOfWeek) {
|
|
42411
|
+
const firstDay = {
|
|
42412
|
+
year,
|
|
42413
|
+
month,
|
|
42414
|
+
day: 1
|
|
42415
|
+
};
|
|
42416
|
+
const dayOfWeek = getDayOfWeek(firstDay);
|
|
42417
|
+
const gridStart = addDays(firstDay, -(startOfWeek === "monday" ? dayOfWeek === 0 ? 6 : dayOfWeek - 1 : dayOfWeek));
|
|
42418
|
+
return Array.from({ length: 42 }, (_, index) => addDays(gridStart, index));
|
|
42419
|
+
}
|
|
42420
|
+
function getWeekCalendarDays(baseDate, startOfWeek) {
|
|
42421
|
+
const dayOfWeek = getDayOfWeek(baseDate);
|
|
42422
|
+
const weekStart = addDays(baseDate, -(startOfWeek === "monday" ? dayOfWeek === 0 ? 6 : dayOfWeek - 1 : dayOfWeek));
|
|
42423
|
+
return Array.from({ length: 7 }, (_, index) => addDays(weekStart, index));
|
|
42424
|
+
}
|
|
42425
|
+
function getDayOfWeek(date) {
|
|
42426
|
+
return new Date(Date.UTC(date.year, date.month - 1, date.day, 12)).getUTCDay();
|
|
42427
|
+
}
|
|
42428
|
+
function getWeekCalendarDayTuple(baseDate, startOfWeek) {
|
|
42429
|
+
const days = getWeekCalendarDays(baseDate, startOfWeek);
|
|
42430
|
+
assertWeekCalendarDays(days);
|
|
42431
|
+
return days;
|
|
42432
|
+
}
|
|
42433
|
+
function assertWeekCalendarDays(days) {
|
|
42434
|
+
if (days.length !== 7) throw new Error("Expected exactly 7 calendar days");
|
|
42435
|
+
}
|
|
42436
|
+
function getOrderedDayNames(startOfWeek, dayNames = DAY_NAMES) {
|
|
42437
|
+
if (startOfWeek === "monday") {
|
|
42438
|
+
const sunday = dayNames[0] ?? "Sun";
|
|
42439
|
+
return [...dayNames.slice(1), sunday];
|
|
42440
|
+
}
|
|
42441
|
+
return [...dayNames];
|
|
42442
|
+
}
|
|
42443
|
+
function formatCalendarTitle$1(viewDate, view, days, monthNames = MONTH_NAMES) {
|
|
42444
|
+
if (view === "week") {
|
|
42445
|
+
const weekStart = days[0];
|
|
42446
|
+
const weekEnd = days[6];
|
|
42447
|
+
if (weekStart === void 0 || weekEnd === void 0) return `${monthNames[viewDate.month - 1] ?? ""} ${viewDate.year}`;
|
|
42448
|
+
const startMonth = monthNames[weekStart.month - 1] ?? "";
|
|
42449
|
+
const endMonth = monthNames[weekEnd.month - 1] ?? "";
|
|
42450
|
+
if (weekStart.month === weekEnd.month) return `${startMonth} ${weekStart.day} - ${weekEnd.day}, ${weekEnd.year}`;
|
|
42451
|
+
return `${startMonth} ${weekStart.day} - ${endMonth} ${weekEnd.day}, ${weekEnd.year}`;
|
|
42452
|
+
}
|
|
42453
|
+
return `${monthNames[viewDate.month - 1] ?? ""} ${viewDate.year}`;
|
|
42454
|
+
}
|
|
42455
|
+
function buildCalendarViewport$1(input) {
|
|
42456
|
+
const monthNames = input.monthNames ?? MONTH_NAMES;
|
|
42457
|
+
if (input.view === "week") {
|
|
42458
|
+
const days = getWeekCalendarDayTuple(input.anchorDate, input.startOfWeek);
|
|
42459
|
+
return {
|
|
42460
|
+
kind: "week",
|
|
42461
|
+
anchorDate: input.anchorDate,
|
|
42462
|
+
days,
|
|
42463
|
+
title: formatCalendarTitle$1(input.anchorDate, "week", days, monthNames)
|
|
42464
|
+
};
|
|
42465
|
+
}
|
|
42466
|
+
const days = getMonthCalendarDays(input.anchorDate.year, input.anchorDate.month, input.startOfWeek);
|
|
42467
|
+
return {
|
|
42468
|
+
kind: "month",
|
|
42469
|
+
anchorDate: input.anchorDate,
|
|
42470
|
+
days,
|
|
42471
|
+
title: formatCalendarTitle$1(input.anchorDate, "month", days, monthNames)
|
|
42472
|
+
};
|
|
42473
|
+
}
|
|
42474
|
+
//#endregion
|
|
42475
|
+
//#region ../calendar/src/timezone.ts
|
|
42476
|
+
/**
|
|
42477
|
+
* Timezone boundary helpers — internal.
|
|
42478
|
+
*
|
|
42479
|
+
* Both functions read an ISO instant in a given IANA timezone and project it
|
|
42480
|
+
* onto the wall clock of that zone. They use Intl.DateTimeFormat with
|
|
42481
|
+
* hourCycle: 'h23' to avoid 12/24-hour ambiguity. Used internally by the
|
|
42482
|
+
* timetable model and `groupItemsByDate`; not exported from the package's
|
|
42483
|
+
* public surface.
|
|
42484
|
+
*/
|
|
42485
|
+
const MINUTES_PER_HOUR = 60;
|
|
42486
|
+
/**
|
|
42487
|
+
* Local minute-of-day [0, 24*60) for an ISO instant in the given zone.
|
|
42488
|
+
* Returns NaN if the inputs cannot be parsed (caller should drop the item).
|
|
42489
|
+
*/
|
|
42490
|
+
function getLocalMinuteOfDay(isoTimestamp, timeZone) {
|
|
42491
|
+
const date = new Date(isoTimestamp);
|
|
42492
|
+
if (Number.isNaN(date.getTime())) return NaN;
|
|
42493
|
+
if (!isValidTimeZone(timeZone)) return NaN;
|
|
42494
|
+
const parts = new Intl.DateTimeFormat("en-GB", {
|
|
42495
|
+
timeZone,
|
|
42496
|
+
hour: "2-digit",
|
|
42497
|
+
minute: "2-digit",
|
|
42498
|
+
hourCycle: "h23"
|
|
42499
|
+
}).formatToParts(date);
|
|
42500
|
+
const hourPart = Number(parts.find((part) => part.type === "hour")?.value);
|
|
42501
|
+
const minute = Number(parts.find((part) => part.type === "minute")?.value);
|
|
42502
|
+
const hour = hourPart === 24 ? 0 : hourPart;
|
|
42503
|
+
if (Number.isNaN(hour) || Number.isNaN(minute)) return NaN;
|
|
42504
|
+
return hour * MINUTES_PER_HOUR + minute;
|
|
42505
|
+
}
|
|
42506
|
+
/**
|
|
42507
|
+
* Local YYYY-MM-DD for an ISO instant in the given zone.
|
|
42508
|
+
* Returns null if the inputs cannot be parsed.
|
|
42509
|
+
*/
|
|
42510
|
+
function getLocalDateKey(isoTimestamp, timeZone) {
|
|
42511
|
+
const date = new Date(isoTimestamp);
|
|
42512
|
+
if (Number.isNaN(date.getTime())) return null;
|
|
42513
|
+
if (!isValidTimeZone(timeZone)) return null;
|
|
42514
|
+
const parts = new Intl.DateTimeFormat("en-CA", {
|
|
42515
|
+
timeZone,
|
|
42516
|
+
year: "numeric",
|
|
42517
|
+
month: "2-digit",
|
|
42518
|
+
day: "2-digit"
|
|
42519
|
+
}).formatToParts(date);
|
|
42520
|
+
const year = parts.find((part) => part.type === "year")?.value;
|
|
42521
|
+
const month = parts.find((part) => part.type === "month")?.value;
|
|
42522
|
+
const day = parts.find((part) => part.type === "day")?.value;
|
|
42523
|
+
if (year === void 0 || year.length === 0) return null;
|
|
42524
|
+
if (month === void 0 || month.length === 0) return null;
|
|
42525
|
+
if (day === void 0 || day.length === 0) return null;
|
|
42526
|
+
return `${year}-${month}-${day}`;
|
|
42527
|
+
}
|
|
42528
|
+
const validTimeZoneCache = /* @__PURE__ */ new Map();
|
|
42529
|
+
function isValidTimeZone(timeZone) {
|
|
42530
|
+
if (typeof timeZone !== "string" || timeZone.length === 0) return false;
|
|
42531
|
+
const cached = validTimeZoneCache.get(timeZone);
|
|
42532
|
+
if (cached !== void 0) return cached;
|
|
42533
|
+
try {
|
|
42534
|
+
new Intl.DateTimeFormat("en-US", { timeZone });
|
|
42535
|
+
validTimeZoneCache.set(timeZone, true);
|
|
42536
|
+
return true;
|
|
42537
|
+
} catch {
|
|
42538
|
+
validTimeZoneCache.set(timeZone, false);
|
|
42539
|
+
return false;
|
|
42540
|
+
}
|
|
42541
|
+
}
|
|
42542
|
+
//#endregion
|
|
42543
|
+
//#region ../calendar/src/group.ts
|
|
42544
|
+
/**
|
|
42545
|
+
* Group items by their local date (YYYY-MM-DD in the item's own timezone).
|
|
42546
|
+
*
|
|
42547
|
+
* Generic over `T`. Items with un-parseable startsAt or invalid timezone are
|
|
42548
|
+
* silently dropped — call sites that need diagnostics should validate upstream.
|
|
42549
|
+
*
|
|
42550
|
+
* The output map preserves insertion order of dates (ES2015 spec) and the
|
|
42551
|
+
* relative order of items within each date matches input order.
|
|
42552
|
+
*/
|
|
42553
|
+
function groupItemsByDate(items, accessors) {
|
|
42554
|
+
const grouped = /* @__PURE__ */ new Map();
|
|
42555
|
+
for (const item of items) {
|
|
42556
|
+
const dateKey = getLocalDateKey(accessors.getStartsAt(item), accessors.getTimeZone(item));
|
|
42557
|
+
if (dateKey == null) continue;
|
|
42558
|
+
const existing = grouped.get(dateKey);
|
|
42559
|
+
if (existing !== void 0) existing.push(item);
|
|
42560
|
+
else grouped.set(dateKey, [item]);
|
|
42561
|
+
}
|
|
42562
|
+
return grouped;
|
|
42563
|
+
}
|
|
42564
|
+
//#endregion
|
|
42355
42565
|
//#region ../blocks/src/system/runtime/nodes/events/domain/dates.ts
|
|
42356
42566
|
/** Event presentation adapters; core owns projection, clocks and ranges. */
|
|
42357
42567
|
function eventDateLocale(siteTimeZone) {
|
|
@@ -42570,7 +42780,10 @@ function openRunBookingLine(run) {
|
|
|
42570
42780
|
/** One date between its cut-off and its start, or null. */
|
|
42571
42781
|
function closedDateCopy(event, now) {
|
|
42572
42782
|
const closesAt = event.bookingClosesAt;
|
|
42573
|
-
|
|
42783
|
+
return closesAt && isInBookingCutOffWindow(event, now) ? cutOffDateCopy(event, closesAt) : null;
|
|
42784
|
+
}
|
|
42785
|
+
/** What a date past its cut-off says: when bookings closed, and how long before the start. */
|
|
42786
|
+
function cutOffDateCopy(event, closesAt) {
|
|
42574
42787
|
const zone = eventTimeZone(event);
|
|
42575
42788
|
const closed = formatBookingClosedTime(closesAt, event.startsAt, zone);
|
|
42576
42789
|
const start = formatBookingClosedTime(event.startsAt, event.startsAt, zone);
|
|
@@ -42582,6 +42795,34 @@ function closedDateCopy(event, now) {
|
|
|
42582
42795
|
otherDatesHref: weekly ? eventOwnPagePath(event) : null
|
|
42583
42796
|
};
|
|
42584
42797
|
}
|
|
42798
|
+
/**
|
|
42799
|
+
* What a date booked on another website says once it has closed, as decided by
|
|
42800
|
+
* `bookedElsewhereDateClosure`. There's no booking form here to say so, and the
|
|
42801
|
+
* outward button mustn't stand in for it.
|
|
42802
|
+
*/
|
|
42803
|
+
function bookElsewhereDateCopy(event, closure) {
|
|
42804
|
+
const weekly = isWeekly(event);
|
|
42805
|
+
const otherDatesHref = weekly ? eventOwnPagePath(event) : null;
|
|
42806
|
+
const closedTitle = weekly ? "Bookings for this date have closed" : "Bookings for this event have closed";
|
|
42807
|
+
switch (closure.kind) {
|
|
42808
|
+
case "cutOff": return cutOffDateCopy(event, closure.closesAt);
|
|
42809
|
+
case "finished": return {
|
|
42810
|
+
titleText: weekly ? "This date has finished" : "This event has finished",
|
|
42811
|
+
bodyText: "The details are kept here for reference.",
|
|
42812
|
+
otherDatesHref
|
|
42813
|
+
};
|
|
42814
|
+
case "started": return {
|
|
42815
|
+
titleText: closedTitle,
|
|
42816
|
+
bodyText: "Bookings closed when it started. The organiser may still be able to help if you’d like to come.",
|
|
42817
|
+
otherDatesHref
|
|
42818
|
+
};
|
|
42819
|
+
case "notTaking": return {
|
|
42820
|
+
titleText: closedTitle,
|
|
42821
|
+
bodyText: "Bookings aren’t being taken at the moment.",
|
|
42822
|
+
otherDatesHref
|
|
42823
|
+
};
|
|
42824
|
+
}
|
|
42825
|
+
}
|
|
42585
42826
|
/** The body of a course past its cut-off, or null if the run doesn't say when. */
|
|
42586
42827
|
function closedRunBody(run) {
|
|
42587
42828
|
const first = orderedLiveRunSessions(run.sessions)[0];
|
|
@@ -42632,9 +42873,12 @@ function closedRunCopy(reason, run) {
|
|
|
42632
42873
|
function closedDatesCopy(dates, now) {
|
|
42633
42874
|
if (dates.some((date) => Date.parse(date.startsAt) > now.getTime() && !(date.bookingClosesAt && hasBookingClosed(date.bookingClosesAt, now)))) return null;
|
|
42634
42875
|
const [firstClosed] = dates.flatMap((date) => closedDateCopy(date, now) ?? []);
|
|
42635
|
-
|
|
42876
|
+
return firstClosed ? closedDateListCopy(dates.length, firstClosed) : null;
|
|
42877
|
+
}
|
|
42878
|
+
/** A closed list of dates: one date says its own cut-off; several share the run's line. */
|
|
42879
|
+
function closedDateListCopy(dateCount, firstCutOff) {
|
|
42636
42880
|
return {
|
|
42637
|
-
...
|
|
42881
|
+
...dateCount > 1 ? copy["bookings-closed"] : firstCutOff,
|
|
42638
42882
|
otherDatesHref: null
|
|
42639
42883
|
};
|
|
42640
42884
|
}
|
|
@@ -42821,24 +43065,6 @@ function formatBookingScheduleSummary(event) {
|
|
|
42821
43065
|
return formatBookingSchedulePresentation(event)?.text ?? null;
|
|
42822
43066
|
}
|
|
42823
43067
|
//#endregion
|
|
42824
|
-
//#region ../blocks/src/system/runtime/nodes/events/domain/destination.ts
|
|
42825
|
-
function isRecord$3(value) {
|
|
42826
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
42827
|
-
}
|
|
42828
|
-
function isRuntimeEventDestination(value) {
|
|
42829
|
-
if (!isRecord$3(value) || typeof value.kind !== "string") return false;
|
|
42830
|
-
if (value.kind === "native") return (value.mode === "cms-managed" || value.mode === "system-managed") && typeof value.path === "string";
|
|
42831
|
-
return value.kind === "external" && typeof value.url === "string" && typeof value.label === "string";
|
|
42832
|
-
}
|
|
42833
|
-
function resolveRuntimeEventDestination(event) {
|
|
42834
|
-
if (isRuntimeEventDestination(event.destination)) return event.destination;
|
|
42835
|
-
return {
|
|
42836
|
-
kind: "native",
|
|
42837
|
-
mode: event.eventDestinationMode === "system-managed" ? "system-managed" : "cms-managed",
|
|
42838
|
-
path: typeof event.path === "string" ? event.path : ""
|
|
42839
|
-
};
|
|
42840
|
-
}
|
|
42841
|
-
//#endregion
|
|
42842
43068
|
//#region ../blocks/src/system/runtime/nodes/events/domain/listWeek.ts
|
|
42843
43069
|
/** Civil weeks use the site zone, including weeks containing a clock change. */
|
|
42844
43070
|
function buildEventListWeek(anchor, startOfWeek, timeZone) {
|
|
@@ -43972,6 +44198,21 @@ Object.fromEntries(OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) =
|
|
|
43972
44198
|
function isOfferingsPreviewSourceKey(value) {
|
|
43973
44199
|
return typeof value === "string" && OFFERINGS_PREVIEW_SOURCE_KEYS.includes(value);
|
|
43974
44200
|
}
|
|
44201
|
+
/** The groups a preview shows; an author can hide one. */
|
|
44202
|
+
function visibleOfferingsPreviewGroups(groups) {
|
|
44203
|
+
return groups.filter((group) => !group.hidden);
|
|
44204
|
+
}
|
|
44205
|
+
/**
|
|
44206
|
+
* The public event query a preview group's loader sends. Both whole-series
|
|
44207
|
+
* presets share one read, since the block shows them as a single run group.
|
|
44208
|
+
*/
|
|
44209
|
+
function offeringsPreviewGroupQuery(source) {
|
|
44210
|
+
switch (source.kind) {
|
|
44211
|
+
case "eventPreset": return { eventPresets: source.preset };
|
|
44212
|
+
case "wholeSeries": return { eventPresets: WHOLE_SERIES_EVENT_PRESET_VALUES.join(",") };
|
|
44213
|
+
default: return assertNever(source);
|
|
44214
|
+
}
|
|
44215
|
+
}
|
|
43975
44216
|
function sourceKeyForEventPreset(preset) {
|
|
43976
44217
|
return `eventPreset:${preset}`;
|
|
43977
44218
|
}
|
|
@@ -44106,7 +44347,7 @@ function resolveOfferingsPreviewGroupCta(input) {
|
|
|
44106
44347
|
}
|
|
44107
44348
|
function buildOfferingsPreviewRenderStates(input) {
|
|
44108
44349
|
const now = input.now;
|
|
44109
|
-
return input.groups
|
|
44350
|
+
return visibleOfferingsPreviewGroups(input.groups).map((group) => {
|
|
44110
44351
|
const data = input.itemsBySourceKey.get(group.sourceKey);
|
|
44111
44352
|
if (!data || data.kind === "failed") return {
|
|
44112
44353
|
kind: "failed",
|
|
@@ -45444,6 +45685,188 @@ const eventSpotlightBlockDefinition = {
|
|
|
45444
45685
|
} }
|
|
45445
45686
|
};
|
|
45446
45687
|
//#endregion
|
|
45688
|
+
//#region ../blocks/src/system/blocks/events/shared/calendarWindow.ts
|
|
45689
|
+
function resolveCalendarReadProfile(content) {
|
|
45690
|
+
return resolveEventCalendarReadPlan(content).readProfile;
|
|
45691
|
+
}
|
|
45692
|
+
const pageFields = {
|
|
45693
|
+
scope: z.object({
|
|
45694
|
+
key: z.string(),
|
|
45695
|
+
timeZone: z.string().transform(toBookingTimeZone)
|
|
45696
|
+
}),
|
|
45697
|
+
window: calendarMonthWindowSchema,
|
|
45698
|
+
initialToday: z.object({
|
|
45699
|
+
year: z.number().int(),
|
|
45700
|
+
month: z.number().int().min(1).max(12),
|
|
45701
|
+
day: z.number().int().min(1).max(31)
|
|
45702
|
+
}),
|
|
45703
|
+
events: z.array(publicEventSchema)
|
|
45704
|
+
};
|
|
45705
|
+
const calendarWindowPageSchema = z.discriminatedUnion("kind", [z.object({
|
|
45706
|
+
...pageFields,
|
|
45707
|
+
kind: z.literal("complete")
|
|
45708
|
+
}), z.object({
|
|
45709
|
+
...pageFields,
|
|
45710
|
+
kind: z.literal("partial"),
|
|
45711
|
+
nextCursor: calendarSourceCursorSchema
|
|
45712
|
+
})]);
|
|
45713
|
+
const eventPageSizeValues = [
|
|
45714
|
+
1,
|
|
45715
|
+
2,
|
|
45716
|
+
3,
|
|
45717
|
+
4,
|
|
45718
|
+
5,
|
|
45719
|
+
6,
|
|
45720
|
+
10,
|
|
45721
|
+
12,
|
|
45722
|
+
20,
|
|
45723
|
+
24,
|
|
45724
|
+
30,
|
|
45725
|
+
100
|
|
45726
|
+
];
|
|
45727
|
+
const eventPageSizeSchema = z.union([
|
|
45728
|
+
z.literal(1),
|
|
45729
|
+
z.literal(2),
|
|
45730
|
+
z.literal(3),
|
|
45731
|
+
z.literal(4),
|
|
45732
|
+
z.literal(5),
|
|
45733
|
+
z.literal(6),
|
|
45734
|
+
z.literal(10),
|
|
45735
|
+
z.literal(12),
|
|
45736
|
+
z.literal(20),
|
|
45737
|
+
z.literal(24),
|
|
45738
|
+
z.literal(30),
|
|
45739
|
+
z.literal(100)
|
|
45740
|
+
]);
|
|
45741
|
+
const eventPageSizeSet = new Set(eventPageSizeValues);
|
|
45742
|
+
function resolveEventPageSize(value, fallback = 12) {
|
|
45743
|
+
const candidate = typeof value === "number" ? value : typeof value === "string" && value.trim() !== "" ? Number(value.trim()) : null;
|
|
45744
|
+
return candidate != null && Number.isInteger(candidate) && eventPageSizeSet.has(candidate) ? candidate : fallback;
|
|
45745
|
+
}
|
|
45746
|
+
function resolveEventCalendarListPageSize(input) {
|
|
45747
|
+
return resolveEventPageSize(input.eventsPerPage);
|
|
45748
|
+
}
|
|
45749
|
+
const eventListPaginationActionSchema = z.discriminatedUnion("kind", [
|
|
45750
|
+
z.object({ kind: z.literal("none") }),
|
|
45751
|
+
z.object({
|
|
45752
|
+
kind: z.literal("loadMore"),
|
|
45753
|
+
label: z.string()
|
|
45754
|
+
}),
|
|
45755
|
+
z.object({
|
|
45756
|
+
kind: z.literal("seeAllLink"),
|
|
45757
|
+
label: z.string(),
|
|
45758
|
+
href: z.string()
|
|
45759
|
+
})
|
|
45760
|
+
]);
|
|
45761
|
+
function resolveEventListPaginationAction(input) {
|
|
45762
|
+
if (input.paginationMode === "none") return { kind: "none" };
|
|
45763
|
+
const label = input.loadMoreText?.trim() || input.defaultLabel || "Load more events";
|
|
45764
|
+
const href = input.seeAllUrl?.trim();
|
|
45765
|
+
if (input.paginationMode === "seeAllLink" && href) return {
|
|
45766
|
+
kind: "seeAllLink",
|
|
45767
|
+
label,
|
|
45768
|
+
href
|
|
45769
|
+
};
|
|
45770
|
+
return {
|
|
45771
|
+
kind: "loadMore",
|
|
45772
|
+
label
|
|
45773
|
+
};
|
|
45774
|
+
}
|
|
45775
|
+
//#endregion
|
|
45776
|
+
//#region ../blocks/src/system/blocks/events/eventCalendarDataLoaders.ts
|
|
45777
|
+
/** The section's event scope comes from resolveEventScopeRead, the same owner readiness uses. */
|
|
45778
|
+
const eventScopeLoaderParams = Object.fromEntries(eventScopeQueryKeys.map((key) => [key, { $bind: {
|
|
45779
|
+
from: "content",
|
|
45780
|
+
transforms: [{
|
|
45781
|
+
id: "events.scopeParam",
|
|
45782
|
+
options: { key }
|
|
45783
|
+
}]
|
|
45784
|
+
} }]));
|
|
45785
|
+
const scopeParams = {
|
|
45786
|
+
siteId: { $bind: { from: "$root.siteId" } },
|
|
45787
|
+
stage: { $bind: {
|
|
45788
|
+
from: "$root.previewStage",
|
|
45789
|
+
fallback: "published"
|
|
45790
|
+
} },
|
|
45791
|
+
...Object.fromEntries(eventScopeQueryKeys.map((key) => [key, { $bind: {
|
|
45792
|
+
from: "content",
|
|
45793
|
+
transforms: [{
|
|
45794
|
+
id: "events.calendarReadParam",
|
|
45795
|
+
options: { key }
|
|
45796
|
+
}]
|
|
45797
|
+
} }]))
|
|
45798
|
+
};
|
|
45799
|
+
/** Each mode reads only what it paints first; see resolveEventCalendarReadPlan. */
|
|
45800
|
+
const eventCalendarDataLoaders = {
|
|
45801
|
+
schedule: {
|
|
45802
|
+
endpoint: "listPublicRecurringSchedule",
|
|
45803
|
+
when: { $bind: {
|
|
45804
|
+
from: "content",
|
|
45805
|
+
transforms: [{
|
|
45806
|
+
id: "events.calendarReadEnabled",
|
|
45807
|
+
options: { job: "schedule" }
|
|
45808
|
+
}]
|
|
45809
|
+
} },
|
|
45810
|
+
params: {
|
|
45811
|
+
...scopeParams,
|
|
45812
|
+
limit: "100",
|
|
45813
|
+
detailLevel: "listing",
|
|
45814
|
+
readProfile: "compact-list"
|
|
45815
|
+
},
|
|
45816
|
+
mode: "server"
|
|
45817
|
+
},
|
|
45818
|
+
events: {
|
|
45819
|
+
endpoint: "listPublicEvents",
|
|
45820
|
+
when: { $bind: {
|
|
45821
|
+
from: "content",
|
|
45822
|
+
transforms: [{
|
|
45823
|
+
id: "events.calendarReadEnabled",
|
|
45824
|
+
options: { job: "list" }
|
|
45825
|
+
}]
|
|
45826
|
+
} },
|
|
45827
|
+
params: {
|
|
45828
|
+
...scopeParams,
|
|
45829
|
+
limit: 100,
|
|
45830
|
+
detailLevel: "listing",
|
|
45831
|
+
readProfile: "listing-card",
|
|
45832
|
+
from: { $bind: {
|
|
45833
|
+
from: "$root",
|
|
45834
|
+
transforms: [{
|
|
45835
|
+
id: "events.calendarListWindow",
|
|
45836
|
+
options: { key: "from" }
|
|
45837
|
+
}]
|
|
45838
|
+
} },
|
|
45839
|
+
to: { $bind: {
|
|
45840
|
+
from: "$root",
|
|
45841
|
+
transforms: [{
|
|
45842
|
+
id: "events.calendarListWindow",
|
|
45843
|
+
options: { key: "to" }
|
|
45844
|
+
}]
|
|
45845
|
+
} }
|
|
45846
|
+
},
|
|
45847
|
+
mode: "server"
|
|
45848
|
+
},
|
|
45849
|
+
calendarWindow: {
|
|
45850
|
+
endpoint: "listPublicEventCalendarWindow",
|
|
45851
|
+
when: { $bind: {
|
|
45852
|
+
from: "content",
|
|
45853
|
+
transforms: [{
|
|
45854
|
+
id: "events.calendarReadEnabled",
|
|
45855
|
+
options: { job: "calendar" }
|
|
45856
|
+
}]
|
|
45857
|
+
} },
|
|
45858
|
+
params: {
|
|
45859
|
+
...scopeParams,
|
|
45860
|
+
limit: 100,
|
|
45861
|
+
readProfile: { $bind: {
|
|
45862
|
+
from: "content",
|
|
45863
|
+
transforms: [{ id: "events.calendarReadProfile" }]
|
|
45864
|
+
} }
|
|
45865
|
+
},
|
|
45866
|
+
mode: "server"
|
|
45867
|
+
}
|
|
45868
|
+
};
|
|
45869
|
+
//#endregion
|
|
45447
45870
|
//#region ../blocks/src/system/runtime/nodes/events/shared/listingLayout.ts
|
|
45448
45871
|
/**
|
|
45449
45872
|
* Layout classes for event listing containers and cards. Presentation
|
|
@@ -47468,6 +47891,10 @@ const partRenderers = {
|
|
|
47468
47891
|
}),
|
|
47469
47892
|
"date-stamp": (props) => CardListLeadDate(props)
|
|
47470
47893
|
};
|
|
47894
|
+
/** Each link says it opens a new tab from its own target, never from another link on the card. */
|
|
47895
|
+
function opensNewTab(link) {
|
|
47896
|
+
return link.target === "_blank";
|
|
47897
|
+
}
|
|
47471
47898
|
/** Title and photo share the same destination and external-link behavior. */
|
|
47472
47899
|
function cardListItemLink(item) {
|
|
47473
47900
|
return item.titleLink ?? (item.href ? { href: item.href } : null);
|
|
@@ -47486,7 +47913,7 @@ function CardListTitle({ item, presentation, Title = "h3" }) {
|
|
|
47486
47913
|
...link,
|
|
47487
47914
|
children: /* @__PURE__ */ jsx(LinkedLabel, {
|
|
47488
47915
|
label: item.title,
|
|
47489
|
-
newTabHint:
|
|
47916
|
+
newTabHint: opensNewTab(link)
|
|
47490
47917
|
})
|
|
47491
47918
|
}) : item.title
|
|
47492
47919
|
}),
|
|
@@ -47514,7 +47941,7 @@ function CardListMedia({ item, presentation }) {
|
|
|
47514
47941
|
children: link ? /* @__PURE__ */ jsx("a", {
|
|
47515
47942
|
...link,
|
|
47516
47943
|
className: "rb-block rb-h-full",
|
|
47517
|
-
"aria-label": `${item.title}${
|
|
47944
|
+
"aria-label": `${item.title}${opensNewTab(link) ? " (opens in a new tab)" : ""}`,
|
|
47518
47945
|
children: photo
|
|
47519
47946
|
}) : photo
|
|
47520
47947
|
});
|
|
@@ -47556,9 +47983,9 @@ function CardListAction({ item, presentation }) {
|
|
|
47556
47983
|
className: "rb-item-text-link",
|
|
47557
47984
|
children: /* @__PURE__ */ jsx(LinkedLabel, {
|
|
47558
47985
|
label: action.label,
|
|
47559
|
-
newTabHint:
|
|
47986
|
+
newTabHint: action.external
|
|
47560
47987
|
})
|
|
47561
|
-
}) :
|
|
47988
|
+
}) : action.external ? /* @__PURE__ */ jsx(ThemedAuthoredButton, {
|
|
47562
47989
|
...link,
|
|
47563
47990
|
variant: presentation.buttonVariant ?? "primary",
|
|
47564
47991
|
size: presentation.actionSize ?? "sm",
|
|
@@ -49889,7 +50316,7 @@ const recurringScheduleBlockDefinition = {
|
|
|
49889
50316
|
} },
|
|
49890
50317
|
detailLevel: "listing",
|
|
49891
50318
|
readProfile: "compact-list",
|
|
49892
|
-
...
|
|
50319
|
+
...recurringScheduleRead().query
|
|
49893
50320
|
},
|
|
49894
50321
|
mode: "server"
|
|
49895
50322
|
} }
|
|
@@ -50218,12 +50645,6 @@ function matchesGroup(group, event) {
|
|
|
50218
50645
|
}
|
|
50219
50646
|
//#endregion
|
|
50220
50647
|
//#region ../blocks/src/system/blocks/offerings-preview/index.ts
|
|
50221
|
-
/**
|
|
50222
|
-
* The whole-series presets, as the CSV `listPublicEvents` expects. Both
|
|
50223
|
-
* whole-series presets share one loader: the block renders them as a single
|
|
50224
|
-
* run group.
|
|
50225
|
-
*/
|
|
50226
|
-
const WHOLE_SERIES_EVENT_PRESETS_PARAM = WHOLE_SERIES_EVENT_PRESET_VALUES.join(",");
|
|
50227
50648
|
const publicRouteCandidatesSchema = z.object({ routes: z.array(z.object({
|
|
50228
50649
|
entityId: z.string(),
|
|
50229
50650
|
path: z.string(),
|
|
@@ -50378,7 +50799,10 @@ const offeringsPreviewManifest = createBlockManifest({
|
|
|
50378
50799
|
});
|
|
50379
50800
|
const optionalPublicEventsArraySchema = publicEventsArraySchema.optional();
|
|
50380
50801
|
const offeringsPreviewEventDataSchemas = Object.fromEntries(OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) => [definition.dataKey, optionalPublicEventsArraySchema]));
|
|
50381
|
-
const offeringsPreviewEventDataLoaders = Object.fromEntries(OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) => [definition.dataKey, eventPresetLoader(
|
|
50802
|
+
const offeringsPreviewEventDataLoaders = Object.fromEntries(OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) => [definition.dataKey, eventPresetLoader(offeringsPreviewGroupQuery({
|
|
50803
|
+
kind: "eventPreset",
|
|
50804
|
+
preset: definition.preset
|
|
50805
|
+
}).eventPresets)]));
|
|
50382
50806
|
const offeringsPreviewBlockDefinition = {
|
|
50383
50807
|
manifest: offeringsPreviewManifest,
|
|
50384
50808
|
contentNormalizer: {
|
|
@@ -50458,7 +50882,7 @@ const offeringsPreviewBlockDefinition = {
|
|
|
50458
50882
|
* dates, and each card arrives with the run's complete schedule.
|
|
50459
50883
|
*/
|
|
50460
50884
|
function wholeSeriesRunLoader() {
|
|
50461
|
-
return eventPresetLoader(
|
|
50885
|
+
return eventPresetLoader(offeringsPreviewGroupQuery({ kind: "wholeSeries" }).eventPresets, { readIntent: "runs" });
|
|
50462
50886
|
}
|
|
50463
50887
|
function eventPresetLoader(eventPresets, extraParams = {}) {
|
|
50464
50888
|
return {
|
|
@@ -56622,6 +57046,10 @@ function getBlockDefinition(name) {
|
|
|
56622
57046
|
ensureDefaults();
|
|
56623
57047
|
return blockStore.get(name);
|
|
56624
57048
|
}
|
|
57049
|
+
function hasBlockDefinition(name) {
|
|
57050
|
+
ensureDefaults();
|
|
57051
|
+
return blockStore.has(name);
|
|
57052
|
+
}
|
|
56625
57053
|
function listBlockDefinitions() {
|
|
56626
57054
|
ensureDefaults();
|
|
56627
57055
|
return Array.from(blockStore.values());
|
|
@@ -56641,4 +57069,4 @@ function listBlockDescriptors() {
|
|
|
56641
57069
|
}));
|
|
56642
57070
|
}
|
|
56643
57071
|
//#endregion
|
|
56644
|
-
export { resolveCardListSchedule as $, designRuntimeRulesForTheme as $a, PUBLIC_DOWNLOAD_MEDIA_TYPES as $i, composeHeaderSectionWrapperClassName as $n, resolveRepeaterGridRowFieldId as $o, singleButtonFragment as $r, resolveBookingBusinessTimeZone as $s, eventOnlinePlace as $t, membershipClassesLabel as A, arrangementAppearancePresets as Aa, el as Ai, isOrdinaryPublicEvent as An, softBoundaryOption as Ao, Grid as Ar, resolveWholeSeriesBookingPhase as As, offeringRunLifecycle as At, eventListingBlockDefinition as B, readStoredMode as Ba, FileArchiveIcon as Bi, isBookableEvent as Bn, defaultHeroImageSurfaceTreatment as Bo, formatEventDepositNote as Br, formatDateRange as Bs, ThemedButtonLink as Bt, buildCartInteractiveIslandProps as C, authoredHeaderLinkForeground as Ca, lookCarouselRegionTransform as Ci, groupEventsByDate as Cn, sectionShapeHook as Co, defineProgressiveBlockRuntime as Cr, pageTemplateFromEntry as Cs, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as Ct, buildShopInteractiveIslandProps as D, headerNeedsPhotoShade as Da, asPartialObject as Di, hasCancelledRegistrationDate as Dn, boundaryTreatmentForBoundaryOptionId as Do, lookListPresentationSchemaShape as Dr, CANCELLED_SESSION_STATUS as Ds, buildOfferingsPreviewListing as Dt, buildProductListInteractiveIslandProps as E, heroPhotoPaintsGround as Ea, lookSkinSlotTransform as Ei, cancelledDateCopy as En, boundaryRuntimeMetricsForDecorativeTransition as Eo, listLookSlot as Er, EVENT_PRESET_VALUES as Es, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as Et, offeringsCatalogueShape as F, getCompatibleBlockAppearancePresets as Fa, ArrowDownIcon as Fi, planWholeSeriesRunSelection as Fn, applyLookPhotoTreatment as Fo, resolveDeclaredBlockDesignCapability as Fr, parseMailingListPlacementTargeting as Fs, resolveOfferingsRenderInput as Ft, eventCollectionDisplaySchemaShape as G, applySiteStyleBlockPoliciesToPageDesignIntent as Ga, PlusIcon as Gi, getEventAvailabilityStatus as Gn, blockCategoryEnum as Go, BACKGROUND_POSITION_PRESET_VALUES as Gr, addLocalScheduleDays as Gs, eventListWeekDays as Gt, buildEventCollectionDisplay as H, resolveModeArrangement as Ha, FileSpreadsheetIcon as Hi, formatEventRemainingPlaces as Hn, themeV2CompilerOwnedFieldNames as Ho, formatEventPriceAmount as Hr, inferSiteDateLocale as Hs, getIconComponent as Ht, eventCalendarBlockDefinition as I, resolveArrangementLookForBlock as Ia, ChevronDownIcon as Ii, registrationDataForEventSelection as In, deriveSectionGround as Io, classPricesCopySchema as Ir, sameMailingListPlacementTargeting as Is, normalizeEventRegistrationPageSurfaceSubject as It, catalogueEventCardProps as J, filterLayoutProfilesForPolicy as Ja, parseInlineTextFromUnknown as Ji, FEATURE_CARD_ICON_TREATMENTS as Jn, fieldSchema as Jo, headingFragment as Jr, getBookingLocalDateKey as Js, weekColumnDays as Jt, eventCollectionHydrationSchema as K, buildInitialPolicyPageDesignIntent as Ka, inlineTextToPlainText as Ki, isEventFull as Kn, blockSectionDeclarationShape as Ko, getAnchorClasses as Kr, compareLocalScheduleDates as Ks, eventWeekGroupingContext as Kt, buildEventCalendarInteractiveIslandProps as L, resolveLookForBlock as La, CircleMinusIcon as Li, resolveSelectionBookingClosedDetail as Ln, parseCanonicalRuntimeBackground as Lo, classPricesDataSchema as Lr, isCanonicalRichTextDoc as Ls, resolveEventRegistrationScopedEvents as Lt, offeringsPreviewBlockDefinition as M, arrangementStyleAvailability as Ma, buildGeneratedBlockIconRenderAssetLookupFromUnknown as Mi, planOrdinarySeriesSelection as Mn, transitionIntentForTreatment as Mo, heroMorePhotoCount as Mr, buildMailingListSignupBlockSourceRef as Ms, readOfferingsGrouping as Mt, publicRouteCandidatesSchema as N, automaticArrangementLook as Na, parseBlockIconValue as Ni, planWholeSeriesParentBooking as Nn, anglePolygonCss as No, morePhotosField as Nr, parseMailingListRuntimeContext as Ns, resolveOfferingsPreviewGroupCta as Nt, shopProductPresentation as O, headerRootIsTransparent as Oa, createTransformRegistry as Oi, eventOccurrenceContext as On, isDecorativeTransitionIntent as Oo, resolvedItemSurfaceProps as Or, nextLiveRunSessionStartMs as Os, groupOfferingRunsByCourse as Ot, buildOfferingsCatalogueListing as P, compileArrangementLookRuntime as Pa, resolveBlockIconRenderValue as Pi, planWholeSeriesParentSelection as Pn, transitionCatalogueEntries as Po, blockDesignCapabilityMapFromDefinitions as Pr, parseMailingListProviderScope as Ps, resolveOfferingsPreviewGroups as Pt, cardListPresentationSchemaShape as Q, designRuntimeRulesForSiteStyle as Qa, parseFieldDefinitions as Qi, siteHeaderManifest as Qn, resolveRepeaterGridColumnFieldId as Qo, blogFeaturedPostFragment as Qr, toUtcIsoDateTimeString as Qs, browserReadAuthoritySchema as Qt, buildEventCalendarListingDisplay as R, styleSectionBackgroundForColour as Ra, CirclePlusIcon as Ri, selectionRepresentativeEvent as Rn, resolveSectionBackground as Ro, resolveClassPriceItems as Rr, EVENT_ADDRESS_AFTER_BOOKING_LABEL as Rs, ThemedAuthoredButton as Rt, shopBlockDefinition as S, parseListLook as Sa, defineFragment as Si, formatTime as Sn, sectionShapeFromContent as So, defineClientOwnedBlockRuntime as Sr, loadedReadinessFact as Ss, previewStageSchema as St, buildProductDetailInteractiveIslandProps as T, readOpeningToneProjection as Ta, lookQuoteLimitTransform as Ti, bookingPageKindSchema as Tn, boundaryOptions as To, listLookControl as Tr, isRecord$5 as Ts, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as Tt, buildEventCollectionHydration as U, resolvePublishedLook as Ua, FileTextIcon as Ui, formatTotalCapacity as Un, appearancePresets as Uo, formatEventPriceDisplay as Ur, formatBookingCompactEnglishTime as Us, SpinnerNode as Ut, buildEventListingInteractiveIslandProps as V, resolveEffectiveArrangement as Va, FileAudioIcon as Vi, canJoinEventWaitlistOnAnyMode as Vn, stripStaleTransitionStyleGroup as Vo, formatEventPrice as Vr, formatDateTimeRange as Vs, ThemedDownloadLink as Vt, buildEventCollectionListingDisplay as W, applyBlockContentVariantPolicy as Wa, MinusIcon as Wi, getEventAvailability as Wn, DEFAULT_MEDIA_FIELD_KINDS as Wo, formatEventStartingPrice as Wr, toScheduledBookingDateTime as Ws, buildEventListWeek as Wt, CardListContentPart as X, componentRuntimeRulesForSiteStyle as Xa, normalizeSelectSource as Xi, shouldReserveFeatureCardIconZone as Xn, isAcceptedRepeaterGridSpan as Xo, faqAccordionFragment as Xr, parseBookingLocalDate as Xs, formatBookingSchedulePresentation as Xt, listingEventCardProps as Y, filterLookIdsForPolicy as Ya, plainTextToInlineText as Yi, resolveFeatureCardGeneratedIconSizePx as Yn, validateManifestLookField as Yo, cardFragment as Yr, getLocalScheduleDate as Ys, resolveRuntimeEventDestination as Yt, CardListLeadDate as Z, componentRuntimeRulesForTheme as Za, parseFieldDefinition as Zi, siteFooterManifest as Zn, parseRepeaterGridInteger as Zo, faqHeadingFragment as Zr, parseLocalScheduleTime as Zs, bookingPresentation as Zt, buildGiftingInteractiveIslandProps as _, AFFORDANCE_SUPPRESS_CLASS as _a, resolveSurfaceForegroundStyles as _i, formatEventHourLabel as _n, rebasePageDesignIntentToSiteStyle as _o, buildFormInteractiveIslandProps as _r, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as _s, getContainerClass as _t, LOCATION_MAP_LOADER_KEYS as a, eventReadinessQueryKeys as aa, publicEventPricingDisplay as ac, heroCtaRowFragment as ai, closedDatesCopy as an, gradientToCss as ao, teamMemberCardBiography as ar, getDayOfWeek as as, computeMediaTransformStyle as at, productDetailBlockDefinition as b, resolveLookSurfacePresentation as ba, isSemanticSpacing as bi, formatEventTimeRange as bn, pageDesignDecisionsV2Schema as bo, defineInteractiveIslandMetaKeys as br, admitReadinessFacts as bs, resolveEventRegistrationEventSource as bt, normalizeLocationMapSource as c, eventScopeLoaderParam as ca, resolvePricingOptionsPriceDisplay as cc, heroCopyFragment as ci, buildCalendarViewport as cn, generateDefaultCardSystem as co, mediaTransforms as cr, getWeekCalendarDays as cs, resolveImageUrlWithContext as ct, newsletterSignupBlockDefinition as d, resolveEventScope as da, unsafeAsContentEntryId as dc, normalizeBoxStylesBorder as di, eventLocalDateKey as dn, generateNavLinkCSS as do, layoutTransforms as dr, projectRecurringSchedule as ds, systemCustomizeFacetDefinitionsForBlock as dt, augmentManifest as ea, toBookingTimeZone as ec, formEmbedFragment as ei, eventPlaceName as en, getCuratedSiteStyle as eo, markEditableSurfaceForwarding as er, resolveRepeaterGridSpanFieldId as es, selectCardListPresentation as et, sanitizeNewsletterSignupPublicContent as f, resolveCalendarReadProfile as fa, parseGradientPresetId as fc, resolveCardRoleForBoxStyles as fi, formatCalendarTitle as fn, generateEffectsCSS as fo, staticHeaderChromeRuntime as fr, publicEventsArraySchema as fs, buildResolveImageUrlContext as ft, giftingBlockDefinition as g, themeButtonSelector as ga, resolveSectionSurfaceForeground as gi, formatEventDateParts as gn, parsePageDesignIntent as go, formBlockDefinition as gr, beforeBookingQuestionsPresentationSchema as gs, getCardOrientation as gt, newsletterBlockSubmissionMessage as h, parseThemeButtonVariantId as ha, parseRuntimeBackgroundContent as hi, formatEventCompactDateRail as hn, generateInteractiveChildInheritanceCSS as ho, formatDate$1 as hr, bookingConsentCarrierSchema as hs, EventQuickFacts as ht, systemBlockDefinitions as i, eventReadinessQuery as ia, publicEventPricingCurrency as ic, ctaCopyFragment as ii, pageNavigationSchema as in, surfaceResolutionContextFromTheme as io, teamMemberBiography as ir, formatDateKey as is, MediaPlaceholder as it, passCardListContent as j, arrangementLookHooks as ja, when as ji, planDropInPanel as jn, spaciousBoundaryOption as jo, clsx as jr, resolveWholeSeriesPaymentDates as js, offeringsListingFor as jt, membershipCardListContent as k, headerRootPaint as ka, runTransforms as ki, getPublicEventCanonicalPath as kn, noneBoundaryOption as ko, itemRole as kr, orderedLiveRunSessions as ks, normalizeOfferingsPreviewItemLimit as kt, parseLocationMapLoaderResult as l, eventScopeQuery as la, formatCurrencyAmount as lc, boxStylesTransforms as li, eventCalendarWeekStart as ln, generateFooterCss as lo, headerRuntimeTransforms as lr, isSameCalendarDay as ls, resolvePublicMediaUrl as lt, buildNewsletterFormInteractiveIslandProps as m, resolveEventCalendarReadPlan as ma, TokenResolver as mc, parseBackgroundOverlay as mi, formatEventClockLabel as mn, resolveEffectPaint as mo, formattingTransforms as mr, blockBookingConsentSchema as ms, setContextResolveImageUrlContext as mt, listBlockDescriptors as n, blockChecksForEvents as na, formatBookingPriceDisplay as nc, testimonialsCarouselFragment as ni, formatEventLocation as nn, compilePageRuntimeFields as no, contentTransforms as nr, getLocalMinuteOfDay as ns, RichText as nt, describeUnresolvedLocationMapLocation as o, eventReadinessResultSchema as oa, publicEventPricingType as oc, ctaRowFragment as oi, closedRunCopy as on, getGradientPreset as oo, readRuntimeNow as or, getOrderedDayNames as os, resolveImageSourceSetWithContext as ot, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as p, eventCalendarListGroupingDecision as pa, arrangementSlotNames as pc, parseBackgroundContent as pi, formatDate as pn, resolveEffectApplications as po, uiTransforms as pr, blockBookingPaymentTermsSchema as ps, getCurrentResolveImageUrlContext as pt, eventCollectionSourceSchemaShape as q, deriveSiteStyleBlockPolicy as qa, isInlineTextEmpty as qi, groupPublicEventsByRun as qn, builtInBlockKindsSchema as qo, richTextFragment as qr, formatLocalScheduleDate as qs, groupEventsByWeek as qt, normalizeBlockContent as r, eventReadinessLoaderKey as ra, isPublicEventPricingOptionDisplayable as rc, testimonialsHeadingFragment as ri, blockSiteTermsSchema as rn, stripCompiledRuntimeStyleFields as ro, parseTeamMemberSpecialties as rr, addDays as rs, ImagePresets as rt, normalizeLocationMapProps as s, eventDiscoveryFilterKeys as sa, resolveExactOrFreePriceDisplay as sc, isBlockButtonRole as si, closedDateCopy as sn, resolveCardRole as so, resolveDateRuntimeContext as sr, getWeekCalendarDayTuple as ss, resolveImageUrl as st, getBlockDefinition as t, chosenString as ta, offeringLabelForPageSurfaceSubject as tc, formCopyFragment as ti, eventVenuePlace as tn, requireCuratedSiteStyle as to, splitPositioningClasses as tr, getLocalDateKey as ts, MediaNodeServer as tt, resolveLocationMapLocation as u, eventScopeQueryKeys as ua, parseContentVersionId as uc, boxStyleClassNames as ui, eventDateOptions as un, buildTextContrastShadow as uo, chromeLogoTransforms as ur, isToday as us, resolveArrangementKnobs as ut, checkoutBlockDefinition as v, resolveHeaderRootForeground as va, resolveBackgroundColorValue as vi, formatEventNextDateFact as vn, resolvePageDesignBlockLookChoice as vo, buildInteractiveIslandProps as vr, linkSchema as vs, eventRegistrationBlockDefinition as vt, buildCheckoutInteractiveIslandProps as w, effectiveHeaderNavLinkStyle as wa, lookLeadSlotTransform as wi, resolveEventTimeZone as wn, boundaryOptionForTransitionIntent as wo, listItemPresentation as wr, unavailableReadinessFact as ws, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as wt, productListBlockDefinition as x, selectItemSurfacePresentation as xa, bodyCopyFragment as xi, formatEventWeekdayTime as xn, sectionShapeForGround as xo, createZodCodec as xr, hiddenFromVisitors as xs, bookingNowSchema as xt, cartBlockDefinition as y, lookPresentationOnPalette as ya, ctaButton as yi, formatEventRunDates as yn, resolvePageDesignBoundaryChoice as yo, createInteractiveIslandCodec as yr, calendarWindowQuerySchema as ys, buildEventRegistrationInteractiveIslandProps as yt, combinedLookSchema as z, arrangementManifestFromVariants as za, ClockIcon as zi, hasEventBookingClosedEarly as zn, sectionSurfaceBase as zo, formatCoursePrice as zr, formatDate$2 as zs, ThemedButton as zt };
|
|
57072
|
+
export { cardListPresentationSchemaShape as $, resolveArrangementLookForBlock as $a, buildGeneratedBlockIconRenderAssetLookupFromUnknown as $i, selectionRepresentativeEvent as $n, deriveSectionGround as $o, morePhotosField as $r, inferSiteDateLocale as $s, browserReadAuthoritySchema as $t, membershipCardListContent as A, eventCalendarListGroupingDecision as Aa, boxStyleClassNames as Ai, getLocalMinuteOfDay as An, generateInteractiveChildInheritanceCSS as Ao, chromeLogoTransforms as Ar, calendarWindowQuerySchema as As, groupOfferingRunsByCourse as At, combinedLookSchema as B, authoredHeaderLinkForeground as Ba, layoutSectionGround as Bi, cancelledDateCopy as Bn, sectionShapeHook as Bo, defineInteractiveIslandMetaKeys as Br, orderedLiveRunSessions as Bs, ThemedAuthoredButton as Bt, shopBlockDefinition as C, blockChecksForEvents as Ca, arrangementSlotNames as Cc, testimonialsHeadingFragment as Ci, formatEventRunDates as Cn, generateDefaultCardSystem as Co, parseTeamMemberSpecialties as Cr, publicEventsArraySchema as Cs, bookingNowSchema as Ct, buildProductListInteractiveIslandProps as D, eventReadinessResultSchema as Da, isBlockButtonRole as Di, groupEventsByDate as Dn, generateEffectsCSS as Do, resolveDateRuntimeContext as Dr, beforeBookingQuestionsPresentationSchema as Ds, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as Dt, buildProductDetailInteractiveIslandProps as E, eventReadinessQueryKeys as Ea, ctaRowFragment as Ei, formatTime as En, generateNavLinkCSS as Eo, readRuntimeNow as Er, bookingConsentCarrierSchema as Es, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as Et, buildOfferingsCatalogueListing as F, resolveHeaderRootForeground as Fa, parseRuntimeBackgroundContent as Fi, getWeekCalendarDayTuple as Fn, pageDesignDecisionsV2Schema as Fo, formatDate$1 as Fr, unavailableReadinessFact as Fs, resolveOfferingsPreviewGroupCta as Ft, buildEventCollectionListingDisplay as G, headerRootIsTransparent as Ga, lookLeadSlotTransform as Gi, isOrdinaryPublicEvent as Gn, isDecorativeTransitionIntent as Go, listLookControl as Gr, parseMailingListProviderScope as Gs, SpinnerNode as Gt, buildEventListingInteractiveIslandProps as H, readOpeningToneProjection as Ha, bodyCopyFragment as Hi, eventOccurrenceContext as Hn, boundaryOptions as Ho, defineClientOwnedBlockRuntime as Hr, resolveWholeSeriesPaymentDates as Hs, ThemedButtonLink as Ht, offeringsCatalogueShape as I, lookPresentationOnPalette as Ia, resolveSectionSurfaceForeground as Ii, getWeekCalendarDays as In, groundPaint as Io, formBlockDefinition as Ir, isRecord$5 as Is, resolveOfferingsPreviewGroups as It, eventCollectionSourceSchemaShape as J, arrangementLookHooks as Ja, asPartialObject as Ji, planWholeSeriesParentBooking as Jn, spaciousBoundaryOption as Jo, resolvedItemSurfaceProps as Jr, isCanonicalRichTextDoc as Js, eventWeekGroupingContext as Jt, eventCollectionDisplaySchemaShape as K, headerRootPaint as Ka, lookQuoteLimitTransform as Ki, planDropInPanel as Kn, noneBoundaryOption as Ko, listLookSlot as Kr, parseMailingListPlacementTargeting as Ks, buildEventListWeek as Kt, eventCalendarBlockDefinition as L, resolveLookSurfacePresentation as La, resolveSurfaceForegroundStyles as Li, isSameCalendarDay as Ln, pageGround as Lo, buildFormInteractiveIslandProps as Lr, EVENT_PRESET_VALUES as Ls, resolveOfferingsRenderInput as Lt, passCardListContent as M, parseThemeButtonVariantId as Ma, resolveCardRoleForBoxStyles as Mi, formatDateKey as Mn, rebasePageDesignIntentToSiteStyle as Mo, staticHeaderChromeRuntime as Mr, hiddenFromVisitors as Ms, offeringRunLifecycle as Mt, offeringsPreviewBlockDefinition as N, themeButtonSelector as Na, parseBackgroundContent as Ni, getDayOfWeek as Nn, resolvePageDesignBlockLookChoice as No, uiTransforms as Nr, loadedReadinessFact as Ns, offeringsListingFor as Nt, buildShopInteractiveIslandProps as O, resolveEventCalendarRead as Oa, heroCopyFragment as Oi, resolveEventTimeZone as On, resolveEffectApplications as Oo, mediaTransforms as Or, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as Os, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as Ot, publicRouteCandidatesSchema as P, AFFORDANCE_SUPPRESS_CLASS as Pa, parseBackgroundOverlay as Pi, getOrderedDayNames as Pn, resolvePageDesignBoundaryChoice as Po, formattingTransforms as Pr, pageTemplateFromEntry as Ps, readOfferingsGrouping as Pt, CardListLeadDate as Q, getCompatibleBlockAppearancePresets as Qa, when as Qi, resolveSelectionBookingClosedDetail as Qn, applyLookPhotoTreatment as Qo, heroMorePhotoCount as Qr, formatDateTimeRange as Qs, bookingPresentation as Qt, buildEventCalendarInteractiveIslandProps as R, selectItemSurfacePresentation as Ra, resolveBackgroundColorValue as Ri, isToday as Rn, sectionShapeForGround as Ro, buildInteractiveIslandProps as Rr, CANCELLED_SESSION_STATUS as Rs, normalizeEventRegistrationPageSurfaceSubject as Rt, productListBlockDefinition as S, chosenString as Sa, unsafeAsContentEntryId as Sc, testimonialsCarouselFragment as Si, formatEventNextDateFact as Sn, resolveCardRole as So, contentTransforms as Sr, projectRecurringSchedule as Ss, resolveEventRegistrationEventSource as St, buildCheckoutInteractiveIslandProps as T, eventReadinessQuery as Ta, heroCtaRowFragment as Ti, formatEventWeekdayTime as Tn, buildTextContrastShadow as To, teamMemberCardBiography as Tr, blockBookingConsentSchema as Ts, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as Tt, buildEventCollectionDisplay as U, heroPhotoPaintsGround as Ua, defineFragment as Ui, getPublicEventCanonicalPath as Un, boundaryRuntimeMetricsForDecorativeTransition as Uo, defineProgressiveBlockRuntime as Ur, buildMailingListSignupBlockSourceRef as Us, ThemedDownloadLink as Ut, eventListingBlockDefinition as V, effectiveHeaderNavLinkStyle as Va, isSemanticSpacing as Vi, hasCancelledRegistrationDate as Vn, boundaryOptionForTransitionIntent as Vo, createZodCodec as Vr, resolveWholeSeriesBookingPhase as Vs, ThemedButton as Vt, buildEventCollectionHydration as W, headerNeedsPhotoShade as Wa, lookCarouselRegionTransform as Wi, isDropInPublicEvent as Wn, boundaryTreatmentForBoundaryOptionId as Wo, listItemPresentation as Wr, parseMailingListRuntimeContext as Ws, getIconComponent as Wt, listingEventCardProps as X, automaticArrangementLook as Xa, runTransforms as Xi, planWholeSeriesRunSelection as Xn, anglePolygonCss as Xo, Grid as Xr, formatDate$2 as Xs, weekColumnDays as Xt, catalogueEventCardProps as Y, arrangementStyleAvailability as Ya, createTransformRegistry as Yi, planWholeSeriesParentSelection as Yn, transitionIntentForTreatment as Yo, itemRole as Yr, EVENT_ADDRESS_AFTER_BOOKING_LABEL as Ys, groupEventsByWeek as Yt, CardListContentPart as Z, compileArrangementLookRuntime as Za, el as Zi, registrationDataForEventSelection as Zn, transitionCatalogueEntries as Zo, clsx as Zr, formatDateRange as Zs, formatBookingSchedulePresentation as Zt, giftingBlockDefinition as _, normalizeSelectSource as _a, publicEventPricingType as _c, faqHeadingFragment as _i, formatDate as _n, getCuratedSiteStyle as _o, siteFooterManifest as _r, resolveRepeaterGridSpanFieldId as _s, getCardOrientation as _t, systemBlockDefinitions as a, CirclePlusIcon as aa, getBookingLocalDateKey as ac, formatCoursePrice as ai, pageNavigationSchema as an, resolveModeArrangement as ao, resolveRuntimeEventDestination as ar, themeV2CompilerOwnedFieldNames as as, MediaPlaceholder as at, cartBlockDefinition as b, PUBLIC_DOWNLOAD_MEDIA_TYPES as ba, formatCurrencyAmount as bc, formEmbedFragment as bi, formatEventDateParts as bn, stripCompiledRuntimeStyleFields as bo, markEditableSurfaceForwarding as br, eventScopeQueryKeys as bs, eventRegistrationBlockDefinition as bt, normalizeLocationMapProps as c, FileAudioIcon as ca, parseLocalScheduleTime as cc, formatEventPriceAmount as ci, closedRunCopy as cn, applySiteStyleBlockPoliciesToPageDesignIntent as co, formatEventRemainingPlaces as cr, blockCategoryEnum as cs, resolveImageUrl as ct, resolveLocationMapLocation as d, MinusIcon as da, toBookingTimeZone as dc, BACKGROUND_POSITION_PRESET_VALUES as di, cutOffDateCopy as dn, filterLayoutProfilesForPolicy as do, getEventAvailabilityStatus as dr, fieldSchema as ds, resolveArrangementKnobs as dt, parseBlockIconValue as ea, formatBookingCompactEnglishTime as ec, blockDesignCapabilityMapFromDefinitions as ei, eventOnlinePlace as en, resolveLookForBlock as eo, eventDestinationBookingLink as er, parseCanonicalRuntimeBackground as es, resolveCardListSchedule as et, newsletterSignupBlockDefinition as f, PlusIcon as fa, offeringLabelForPageSurfaceSubject as fc, getAnchorClasses as fi, buildCalendarViewport as fn, filterLookIdsForPolicy as fo, isEventFull as fr, validateManifestLookField as fs, systemCustomizeFacetDefinitionsForBlock as ft, newsletterBlockSubmissionMessage as g, plainTextToInlineText as ga, publicEventPricingDisplay as gc, faqAccordionFragment as gi, formatCalendarTitle as gn, designRuntimeRulesForTheme as go, shouldReserveFeatureCardIconZone as gr, resolveRepeaterGridRowFieldId as gs, EventQuickFacts as gt, buildNewsletterFormInteractiveIslandProps as h, parseInlineTextFromUnknown as ha, publicEventPricingCurrency as hc, cardFragment as hi, eventLocalDateKey as hn, designRuntimeRulesForSiteStyle as ho, resolveFeatureCardGeneratedIconSizePx as hr, resolveRepeaterGridColumnFieldId as hs, setContextResolveImageUrlContext as ht, normalizeBlockContent as i, CircleMinusIcon as ia, formatLocalScheduleDate as ic, resolveClassPriceItems as ii, blockSiteTermsSchema as in, resolveEffectiveArrangement as io, resolveEventPageLink as ir, stripStaleTransitionStyleGroup as is, ImagePresets as it, membershipClassesLabel as j, resolveEventCalendarReadPlan as ja, normalizeBoxStylesBorder as ji, addDays as jn, parsePageDesignIntent as jo, layoutTransforms as jr, admitReadinessFacts as js, normalizeOfferingsPreviewItemLimit as jt, shopProductPresentation as k, resolveEventScopeRead as ka, boxStylesTransforms as ki, getLocalDateKey as kn, resolveEffectPaint as ko, headerRuntimeTransforms as kr, linkSchema as ks, buildOfferingsPreviewListing as kt, normalizeLocationMapSource as l, FileSpreadsheetIcon as la, toUtcIsoDateTimeString as lc, formatEventPriceDisplay as li, bookElsewhereDateCopy as ln, buildInitialPolicyPageDesignIntent as lo, formatTotalCapacity as lr, blockSectionDeclarationShape as ls, resolveImageUrlWithContext as lt, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as m, isInlineTextEmpty as ma, isPublicEventPricingOptionDisplayable as mc, headingFragment as mi, eventDateOptions as mn, componentRuntimeRulesForTheme as mo, FEATURE_CARD_ICON_TREATMENTS as mr, parseRepeaterGridInteger as ms, getCurrentResolveImageUrlContext as mt, hasBlockDefinition as n, ArrowDownIcon as na, addLocalScheduleDays as nc, classPricesCopySchema as ni, eventVenuePlace as nn, arrangementManifestFromVariants as no, resolveEventCardBooking as nr, sectionSurfaceBase as ns, MediaNodeServer as nt, LOCATION_MAP_LOADER_KEYS as o, ClockIcon as oa, getLocalScheduleDate as oc, formatEventDepositNote as oi, closedDateListCopy as on, resolvePublishedLook as oo, isBookableEvent as or, appearancePresets as os, computeMediaTransformStyle as ot, sanitizeNewsletterSignupPublicContent as p, inlineTextToPlainText as pa, formatBookingPriceDisplay as pc, richTextFragment as pi, eventCalendarWeekStart as pn, componentRuntimeRulesForSiteStyle as po, groupPublicEventsByRun as pr, isAcceptedRepeaterGridSpan as ps, buildResolveImageUrlContext as pt, eventCollectionHydrationSchema as q, arrangementAppearancePresets as qa, lookSkinSlotTransform as qi, planOrdinarySeriesSelection as qn, softBoundaryOption as qo, lookListPresentationSchemaShape as qr, sameMailingListPlacementTargeting as qs, eventListWeekDays as qt, listBlockDescriptors as r, ChevronDownIcon as ra, compareLocalScheduleDates as rc, classPricesDataSchema as ri, formatEventLocation as rn, readStoredMode as ro, resolveEventCta as rr, defaultHeroImageSurfaceTreatment as rs, RichText as rt, describeUnresolvedLocationMapLocation as s, FileArchiveIcon as sa, parseBookingLocalDate as sc, formatEventPrice as si, closedDatesCopy as sn, applyBlockContentVariantPolicy as so, isInBookingCutOffWindow as sr, DEFAULT_MEDIA_FIELD_KINDS as ss, resolveImageSourceSetWithContext as st, getBlockDefinition as t, resolveBlockIconRenderValue as ta, toScheduledBookingDateTime as tc, resolveDeclaredBlockDesignCapability as ti, eventPlaceName as tn, styleSectionBackgroundForColour as to, eventDestinationPagePath as tr, resolveSectionBackground as ts, selectCardListPresentation as tt, parseLocationMapLoaderResult as u, FileTextIcon as ua, resolveBookingBusinessTimeZone as uc, formatEventStartingPrice as ui, closedDateCopy as un, deriveSiteStyleBlockPolicy as uo, getEventAvailability as ur, builtInBlockKindsSchema as us, resolvePublicMediaUrl as ut, buildGiftingInteractiveIslandProps as v, parseFieldDefinition as va, resolveExactOrFreePriceDisplay as vc, blogFeaturedPostFragment as vi, formatEventClockLabel as vn, requireCuratedSiteStyle as vo, siteHeaderManifest as vr, eventDiscoveryFilterKeys as vs, getContainerClass as vt, buildCartInteractiveIslandProps as w, eventReadinessLoaderKey as wa, TokenResolver as wc, ctaCopyFragment as wi, formatEventTimeRange as wn, generateFooterCss as wo, teamMemberBiography as wr, blockBookingPaymentTermsSchema as ws, previewStageSchema as wt, productDetailBlockDefinition as x, augmentManifest as xa, parseContentVersionId as xc, formCopyFragment as xi, formatEventHourLabel as xn, surfaceResolutionContextFromTheme as xo, splitPositioningClasses as xr, resolveEventScope as xs, buildEventRegistrationInteractiveIslandProps as xt, checkoutBlockDefinition as y, parseFieldDefinitions as ya, resolvePricingOptionsPriceDisplay as yc, singleButtonFragment as yi, formatEventCompactDateRail as yn, compilePageRuntimeFields as yo, composeHeaderSectionWrapperClassName as yr, eventScopeLoaderParam as ys, resolveCalendarReadProfile as yt, buildEventCalendarListingDisplay as z, parseListLook as za, ctaButton as zi, bookingPageKindSchema as zn, sectionShapeFromContent as zo, createInteractiveIslandCodec as zr, nextLiveRunSessionStartMs as zs, resolveEventRegistrationScopedEvents as zt };
|