@riverbankcms/sdk 0.164.0 → 0.166.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-CubPwupc.d.ts → BlocksIslandsHydrator-CPvN6RBW.d.ts} +1 -1
- package/dist/_dts/{Page-CDzsagB2.d.ts → Page-rW0xgQCA.d.ts} +18 -256
- package/dist/_dts/{SdkPreviewMode-CPRQbRCI.d.ts → SdkPreviewMode-BWZh2WCk.d.ts} +107 -72
- package/dist/_dts/{client-CbeYTSry.d.ts → client-D4BXQEZc.d.ts} +5 -1
- package/dist/_dts/{content-types--uYRIcIF.d.ts → content-types-MUzta0l9.d.ts} +3 -3
- package/dist/_dts/{contracts-DJQYAOsv.d.ts → contracts-Cl9Xh1DO.d.ts} +4 -4
- package/dist/_dts/{footerPageOutline-CKkhBwgJ.d.ts → footerPageOutline-4BgLKehl.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata--qd7NCIA.d.ts → generatePageMetadata-BsmJ0qKh.d.ts} +2 -2
- package/dist/_dts/{index-wegfy7lf.d.ts → index--qflsCiy.d.ts} +4 -3
- package/dist/_dts/{index-CjdIn9-_.d.ts → index-BgJ2aU5c.d.ts} +2 -2
- package/dist/_dts/{index-BZE-1azr.d.ts → index-Bmboeb49.d.ts} +2 -2
- package/dist/_dts/{index-BpEbwDM7.d.ts → index-DdcwPqQN.d.ts} +4 -4
- package/dist/_dts/{index-DriYVLfT.d.ts → index-ahxQCUc7.d.ts} +2 -2
- package/dist/_dts/{index-DYQFmf--.d.ts → index-kQ5xkM6X.d.ts} +1 -1
- package/dist/_dts/{index-JS8WYgD3.d.ts → index-mMMvLLAJ.d.ts} +2996 -3079
- package/dist/_dts/{index-D_pQO-AS.d.ts → index-wbBZ0awa.d.ts} +49398 -48202
- package/dist/_dts/{loadContent-DUi94Qfk.d.ts → loadContent-BG5IAV-V.d.ts} +9 -6
- package/dist/_dts/resolveBlockData-Cmcle_zV.d.ts +136 -0
- package/dist/_dts/{resolvePageContent-JDE0ry6T.d.ts → resolvePageContent-BRJUTFoH.d.ts} +3 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +9 -6
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +20 -0
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +2 -0
- package/dist/_dts/sdk/src/data/types.d.ts +54 -0
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +9 -8
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +36 -48
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +3 -0
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +257 -0
- package/dist/_dts/sdk/src/rendering/index.d.ts +8 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
- package/dist/_dts/{themeAdmission-D_qtGYAT.d.ts → sdk/src/rendering/themeAdmission.d.ts} +3 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +7 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-DiciZDrk.d.ts → types-BX3Y-EW3.d.ts} +3 -3
- package/dist/_dts/{types-DubJnBnI.d.ts → types-DF54stxv.d.ts} +8 -7
- package/dist/_dts/{types-W40f2olO.d.ts → types-DuiHLiPo.d.ts} +2 -2
- package/dist/_dts/{validation-BF4_zNkR.d.ts → validation-Bxi0f81D.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-64hFxF02.mjs → BlocksIslandsHydrator-DwiRGtgh.mjs} +31 -24
- package/dist/client/{BookingMailingListNote-CSQyFm9J.mjs → BookingMailingListNote-DOWOZYlK.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-Bvkx8Z7Y.mjs → CalendarNavigationChevron-5a0x0vcC.mjs} +7 -7
- package/dist/client/{CheckboxChoice-3PhxDxgR.mjs → CheckboxChoice-CZ-anOqV.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-pt2xXBQp.mjs → DemoBookingPortalAccess-B2qLkPRB.mjs} +6 -6
- package/dist/client/{DemoPortalSignInLink-Qw780EfW.mjs → DemoPortalSignInLink-B9YrzZt2.mjs} +1 -1
- package/dist/client/{EventCalendar.client-DWoboRW5.mjs → EventCalendar.client-BhADnDCg.mjs} +17 -10
- package/dist/client/{EventCombined.client-C98ucpcP.mjs → EventCombined.client-jik34zTb.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-DHRlFfkp.mjs → EventEmbeddedCheckoutStep-D_14yqAU.mjs} +27 -2
- package/dist/client/{EventItem-hrSyTApW.mjs → EventItem-CMKrtkT7.mjs} +33 -12
- package/dist/client/{EventListWeekNavigation-C3t7H13W.mjs → EventListWeekNavigation-AGHjxy6C.mjs} +1 -1
- package/dist/client/{EventListing.client-Cp11sBX_.mjs → EventListing.client-DZeDM0Qt.mjs} +3 -3
- package/dist/client/{EventListing.view-Dd5QHIAf.mjs → EventListing.view-3BBRdNVa.mjs} +70 -15
- package/dist/client/{EventRegistrationPayment-ByT88VHR.mjs → EventRegistrationPayment-CpNcpga4.mjs} +108 -11
- package/dist/client/{LocationMapActions-BsepG5Vv.mjs → LocationMapActions-D5-H9ooQ.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-R4JMT4yd.mjs → MapDrawingSvg-C30geMl-.mjs} +1 -1
- package/dist/client/{Page-Dub71o3c.mjs → Page-DNDZLRlB.mjs} +3388 -11530
- package/dist/client/{ProtectedSubmitButton-DGbgGvdh.mjs → ProtectedSubmitButton-8DuDw2ag.mjs} +1 -1
- package/dist/client/{SpamProtectionWidget-CRsKTQV-.mjs → SpamProtectionWidget-CCF6YLUX.mjs} +5 -3
- package/dist/client/{StepIndicator-Bp7MyutT.mjs → StepIndicator-Bin7YR0A.mjs} +3 -3
- package/dist/client/{TabBarFragment-C4WJyybx.mjs → TabBarFragment-_IAthZVM.mjs} +1 -1
- package/dist/client/{ThemedButton-BGVwNwE-.mjs → ThemedButton-8jUc02mZ.mjs} +64 -2
- package/dist/client/{accordion-vCG_JC5t.mjs → accordion-uVqNowRX.mjs} +1 -1
- package/dist/client/{altchaProtection-BWchRM3v.mjs → altchaProtection-DjIV9A5n.mjs} +1 -1
- package/dist/client/{booking-form.client-CHTbcZJM.mjs → booking-form.client-w-PvyWBv.mjs} +19 -14
- package/dist/client/{bookingForm-BxbUbzUr.mjs → bookingForm-DNMojb6A.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{carousel-FM1mkkL0.mjs → carousel-C8kxI3Dm.mjs} +2 -2
- package/dist/client/{carousel.client-ChoLiWwD.mjs → carousel.client-BO7sCEpH.mjs} +1 -1
- package/dist/client/{cart-BDFhbh9j.mjs → cart-DCxjE3Is.mjs} +3 -3
- package/dist/client/{cart.client-x3HOke6T.mjs → cart.client-Ceeng8fB.mjs} +1 -1
- package/dist/client/{checkout-BibhwnTd.mjs → checkout-B0EKbeVv.mjs} +3 -3
- package/dist/client/{checkout.client-CE4jUi0G.mjs → checkout.client-DtPj3fYk.mjs} +1 -1
- package/dist/client/client.mjs +9465 -15
- package/dist/client/{context-BNAM7NsW.mjs → context-n6IZigd3.mjs} +8 -6
- package/dist/client/cta-CDeAwYoN.mjs +121 -0
- package/dist/client/{dateFormatting-QwBSo0hK.mjs → dateFormatting-BWPzdeZE.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-NwKJk6gn.mjs → demoPortalMagicLink-BdXu0fj-.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-D4zqEBDl.mjs → enhanceHeaderSection-VHfv8M6-.mjs} +3 -3
- package/dist/client/{event-details.client-jFyFjOIC.mjs → event-details.client-Cfr1_Cj4.mjs} +2 -2
- package/dist/client/{event-registration.client-BK_jVv3R.mjs → event-registration.client-BhygihpQ.mjs} +43 -17
- package/dist/client/{eventCalendar-DSkzejQh.mjs → eventCalendar-B4XCL9u6.mjs} +4 -4
- package/dist/client/{eventCombined-BG-BEaYh.mjs → eventCombined-DVjz4wdf.mjs} +4 -4
- package/dist/client/{eventDetails-BhIwXAKe.mjs → eventDetails-B0DA1Nw1.mjs} +2 -2
- package/dist/client/{eventListing-DQtyO1Xj.mjs → eventListing-2-xjn2nz.mjs} +4 -4
- package/dist/client/{eventRegistration-DRTz8X0M.mjs → eventRegistration-ng4iGo9O.mjs} +4 -4
- package/dist/client/{form-GXqjObPC.mjs → form-BeNQiZ2V.mjs} +3 -3
- package/dist/client/{form.client-CoKNba2e.mjs → form.client-BFdCKlp7.mjs} +7 -7
- package/dist/client/{form.parts-magB_epJ.mjs → form.parts-C7gLK3jh.mjs} +3 -3
- package/dist/client/{formatDate-BiloOyjS.mjs → formatDate-CWfelfMt.mjs} +1 -1
- package/dist/client/gifting/client.mjs +4 -5
- package/dist/client/{headerSection-BMQCPHT3.mjs → headerSection-CalNAShx.mjs} +2 -2
- package/dist/client/{mediaAssets-BX-vWwQc.mjs → mediaAssets-DpPauppt.mjs} +1 -1
- package/dist/client/{mediaContext-CdqGYlWl.mjs → mediaContext-BLo4NtjP.mjs} +25 -19
- package/dist/client/{newsletter-form.client-8orCez1z.mjs → newsletter-form.client-Dq7GHGXU.mjs} +9 -9
- package/dist/client/{newsletter-form.parts-D8NgHY_F.mjs → newsletter-form.parts-BSMDYQiS.mjs} +2 -2
- package/dist/client/{newsletterForm-BhBNsS3n.mjs → newsletterForm-snzZ4L6i.mjs} +3 -3
- package/dist/client/{noop-C2vZse15.mjs → noop-D-RG9eR3.mjs} +399 -169
- package/dist/client/portal/client.mjs +13 -14
- package/dist/client/{product-detail.client-CQ0k0fbH.mjs → product-detail.client-Gu0INDb7.mjs} +1 -1
- package/dist/client/{product-list.client-Xlr1P0x9.mjs → product-list.client-BmH40fNf.mjs} +1 -1
- package/dist/client/{productDetail-BsCao6X4.mjs → productDetail-DsPUmJ0z.mjs} +3 -3
- package/dist/client/{productList-Cc-PmbEe.mjs → productList-DjGrjOwD.mjs} +3 -3
- package/dist/client/{propsDecoder-DikkDJ9x.mjs → propsDecoder-kTVPMnfD.mjs} +4 -4
- package/dist/client/{registry.server-BpLZo3bC.mjs → registry.server-CKK_RXZo.mjs} +350 -424
- package/dist/client/rendering/client.mjs +29 -28
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +70 -8
- package/dist/client/{richText-coerce-WuMYrBm3.mjs → richText-coerce-BcjTX-7h.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DNx6b07x.mjs → routeIslandApiConfig-CaXesATK.mjs} +1 -1
- package/dist/client/{shop-DyXtB5TD.mjs → shop-DLufMauE.mjs} +3 -3
- package/dist/client/{shop-commerce-xjWH7-Ym.mjs → shop-commerce-BxYYXLNK.mjs} +12 -12
- package/dist/client/{shop-commerce-store-CbBsS1kD.mjs → shop-commerce-store-Dp3Nl5YK.mjs} +1 -1
- package/dist/client/{shop.client-QOKqQPgK.mjs → shop.client-CBy9_alG.mjs} +13 -13
- package/dist/client/{shop.interactive-BQdm441g.mjs → shop.interactive-BM0NRsFQ.mjs} +265 -24
- package/dist/client/{shopShared-CyW6MU48.mjs → shopShared-lS23OQE-.mjs} +2 -2
- package/dist/client/site-styles-D8jEPGxA.mjs +3 -0
- package/dist/{preview-next/client/ThemedButton-g7NPrsGp.mjs → client/site-styles-DELkUk9s.mjs} +25654 -17259
- package/dist/client/spam-protection.mjs +2 -2
- package/dist/client/src-DjnxOjXG.mjs +217 -0
- package/dist/client/surfaceTransportMarker-BXepAVF6.mjs +152 -0
- package/dist/client/{timetableModel-BgdkhRuA.mjs → timetableModel-DzRWikCU.mjs} +157 -139
- package/dist/client/types-sF-IrGQr.mjs +633 -0
- package/dist/client/{useAvailableSlots-wmdo6uZ8.mjs → useAvailableSlots-C3LphWDX.mjs} +8 -5
- package/dist/client/{useBookingNowIso-CUExAee1.mjs → useBookingNowIso-Da-f9iHw.mjs} +1 -1
- package/dist/client/{useDiscountApply-BRM-OoTN.mjs → useDiscountApply-SLoWhcen.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-BEIvL31G.mjs → useDiscountCodeUi-D6a2BJij.mjs} +1 -1
- package/dist/client/{useEventPagination-Dk3g64we.mjs → useEventPagination-Ccr4TZlm.mjs} +12 -159
- package/dist/client/{view-BnaOmrap.mjs → view-8w4GA8rf.mjs} +4 -4
- package/dist/client/{view-vhKGFfC3.mjs → view-DAVEoe8A.mjs} +310 -247
- package/dist/client/{wizardSteps-xqU4q63H.mjs → wizardSteps-DNpajrAH.mjs} +495 -173
- package/dist/preview-next/before-render.mjs +4 -141
- package/dist/preview-next/client/ArrangementLookControls-DY5TzhEa.mjs +31197 -0
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-43wIAWr4.mjs → EventEmbeddedCheckoutStep-C_h1cMYm.mjs} +33 -4
- package/dist/preview-next/client/{LocationPickerEnvironment-QtSG2Bl-.mjs → LocationPickerEnvironment-D56RD3e_.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-B-rohNcG.mjs → MapLibreEditMap-DFnyCckr.mjs} +2 -2
- package/dist/preview-next/client/PreviewEditorSidebar-DdnhmdFO.mjs +37049 -0
- package/dist/preview-next/client/PreviewEditorUI-C7ZmYE33.mjs +1189 -0
- package/dist/preview-next/client/PreviewShell-DnO38NaL.mjs +4707 -0
- package/dist/preview-next/client/SdkPreviewModeRuntime-D2OtoRMB.mjs +4258 -0
- package/dist/preview-next/client/SiteChromeCustomizeButton-eIu2RejJ.mjs +71144 -0
- package/dist/preview-next/client/ThemedButton-C0dgGJ5k.mjs +2006 -0
- package/dist/preview-next/client/{lucide-react-CA9cpo0P.mjs → lucide-react-CPBCf6QT.mjs} +15 -2
- package/dist/preview-next/client/previewAssistantSlot-Bp1AlAxx.mjs +110560 -0
- package/dist/preview-next/client/previewChromeSurface-D2cREDJ5.mjs +190 -0
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/sdk-runtime-DK0PUhLL.mjs +5 -0
- package/dist/preview-next/client/useAutosaveStatus--Pw8vnef.mjs +138 -0
- package/dist/preview-next/client/useBlockCustomizeControls-C1Rl73N4.mjs +2724 -0
- package/dist/preview-next/client/useOpenBlockForSetup-CL3842FM.mjs +28 -0
- package/dist/preview-next/keepAlive.mjs +27 -4
- package/dist/preview-next/middleware.mjs +2 -2
- package/dist/preview-next/{route-contract-D5tHZEz5.mjs → route-contract-Bq7SUX3K.mjs} +143 -126
- package/dist/preview-next/{session-P1R_ajT7.mjs → session-DU6zpYUQ.mjs} +1 -1
- package/dist/preview-next/session.mjs +1 -1
- package/dist/server/{Block.shared-Iy7g11iP.mjs → Block.shared-wXr7Iwhs.mjs} +7 -4
- package/dist/server/{src-cbbK3Bho.mjs → ThemeScopeCore-BI2mld9R.mjs} +1153 -2523
- package/dist/server/accessibleSurfaces-CuN8U_iU.mjs +2102 -0
- package/dist/server/{bindings-BVJGgUT0.mjs → bindings-DjdUq9FR.mjs} +2 -3
- package/dist/server/{publicProducts-D3Fc5TKk.mjs → client-07UeMDzA.mjs} +2492 -357
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +33 -2
- package/dist/server/data/dataLoaderContext.mjs +2 -0
- package/dist/server/data/resolveBlockData.mjs +2 -0
- package/dist/server/data/types.mjs +1 -0
- package/dist/server/dataLoaderContext-B3fXA54R.mjs +47 -0
- package/dist/server/identity-Bn9OQiT1.mjs +6 -0
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-BuintpdO.mjs → loadContent-ClpaSlBb.mjs} +6 -5
- package/dist/server/{loadPage-Dk4wea8M.mjs → loadPage-BwtVqpaA.mjs} +4 -2
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/media-DnlczCMA.mjs +231 -0
- package/dist/server/mode-Cv_TG9gP.mjs +63 -0
- package/dist/server/next/middleware.mjs +1 -1
- package/dist/server/next/revalidate.mjs +1 -1
- package/dist/server/next.mjs +13 -13
- package/dist/server/opaqueSurface-3YSDPtDe.mjs +54 -0
- package/dist/server/{overrideResolution-BDiQWM7D.mjs → overrideResolution-Du_w3LY4.mjs} +2 -1
- package/dist/server/overrides-CD4d-1w7.mjs +177 -0
- package/dist/server/page-converter.mjs +243 -91
- package/dist/server/pageRenderPlan-BShULdc2.mjs +4055 -0
- package/dist/server/{themeAdmission-BdY8lP-K.mjs → pageRuntimeSupport-C4Dh5-mB.mjs} +13 -28
- package/dist/server/{overrides-DVemf-GV.mjs → pageShared-HdKFBpaX.mjs} +3594 -1726
- package/dist/server/parseThemeForPersistence-CJMrEkze.mjs +52 -0
- package/dist/server/{prebuild-DubLNgRH.mjs → prebuild-Cl-bkaMA.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/prefetchBlockData-C4yUmz-r.mjs +786 -0
- package/dist/server/publicProducts-W9hDRwjz.mjs +64 -0
- package/dist/server/{registry-zjd1P2Dl.mjs → registry-TFPJdGQi.mjs} +20901 -792
- package/dist/server/rendering/components/pageShared.mjs +2 -0
- package/dist/server/rendering/helpers/loadPage.mjs +2 -0
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +2 -0
- package/dist/server/rendering/server.mjs +5 -4
- package/dist/server/rendering/themeAdmission.mjs +2 -0
- package/dist/server/rendering.mjs +11 -10
- package/dist/server/repeaterFields-MIz7r1ez.mjs +9 -0
- package/dist/server/{resolveBlockData-CZJ--nH6.mjs → resolveBlockData-OHlOXlOE.mjs} +6 -48
- package/dist/server/resolveButtonColourStates-lry2ORwX.mjs +2672 -0
- package/dist/server/{richTextSchema-YYc85FX4.mjs → richTextSchema-Euhuj-7V.mjs} +26 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/schema-C2PqHrMo.mjs +2523 -0
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +1031 -1
- package/dist/server/theme.mjs +2 -1
- package/dist/server/themeAdmission-DGSAlFUK.mjs +18 -0
- package/dist/server/{three-pass-converter-Chnb1XD-.mjs → three-pass-converter-_j2UE2tR.mjs} +1 -1
- package/dist/server/validation-CDd6m8Ry.mjs +140 -0
- package/dist/server/{validation-CGH-Xs4E.mjs → validation-DIBFZeMB.mjs} +419 -3
- package/dist/server/{version-DoOG6F13.mjs → version-DZWZM1H6.mjs} +1 -1
- package/dist/styles/index.css +924 -10
- package/package.json +39 -1
- package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +0 -1
- package/dist/client/cta-ChiN1Vgg.mjs +0 -80
- package/dist/client/purchase-BMsWpx8y.mjs +0 -894
- package/dist/client/schema-DMUkBtIO.mjs +0 -15915
- package/dist/client/site-styles-BLHYJ8S7.mjs +0 -12339
- package/dist/client/src-VIsPY-kw.mjs +0 -62
- package/dist/preview-next/client/PreviewEditorSidebar-C3AQVxQt.mjs +0 -5441
- package/dist/preview-next/client/PreviewEditorUI-C-1zDCR_.mjs +0 -756
- package/dist/preview-next/client/SdkPreviewModeRuntime-B47yHFL0.mjs +0 -9130
- package/dist/preview-next/client/SdkPreviewModeRuntime-C6Rhm2NQ.mjs +0 -3
- package/dist/preview-next/client/previewAuthStore-By_zfrS5.mjs +0 -212195
- package/dist/preview-next/client/previewChromeSurface-Cjwxv90x.mjs +0 -85
- package/dist/preview-next/client/result-BjJUoxUF.mjs +0 -16
- package/dist/preview-next/client/sdk-runtime-BG2HYvQj.mjs +0 -4
- package/dist/preview-next/client/siteStyleAccess-BiSyYyyr.mjs +0 -14178
- package/dist/preview-next/client/spinner-DnWpeDp2.mjs +0 -67
- package/dist/preview-next/refresh-contract-uQ6BXgLJ.mjs +0 -25
- package/dist/server/bindings-Dgt_0goJ.mjs +0 -17
- package/dist/server/client-CiKaE8ms.mjs +0 -2330
- package/dist/server/effectiveNavLinkStyle-EDSdd_oK.mjs +0 -11574
- package/dist/server/loadPage-BwjncpJf.mjs +0 -2
- package/dist/server/prefetchBlockData-Bnbwoe5n.mjs +0 -4156
- package/dist/server/schema-BlTWmTSl.mjs +0 -16142
- package/dist/server/site-styles-yHytcXIB.mjs +0 -768
- package/dist/server/siteChromeOverlayClearance-D0uCNZ7E.mjs +0 -802
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { d as
|
|
3
|
-
import {
|
|
4
|
-
import { $
|
|
2
|
+
import { $t as getCardOrientation, At as buildEventListingInteractiveIslandProps, B as giftingBlockRuntime, Ct as buildEventCalendarInteractiveIslandProps, Et as eventCalendarBlockRuntime, F as buildNewsletterFormInteractiveIslandProps, H as publicGiftingOffersResponseSchema, I as newsletterBlockSubmissionMessage, Kt as catalogueEventCardProps, L as newsletterFormBlockRuntime, N as publicProductsResponseSchema, P as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, Qt as MediaNodeServer, Sn as DEFAULT_MAILING_LIST_TARGETING, U as buildFormInteractiveIslandProps, W as formBlockRuntime, Y as eventRegistrationBlockRuntime, _ as shopProductPresentation, _n as publicPassProductCollectionSchema, a as buildShopInteractiveIslandProps, an as formatEventPrice, bn as parseMailingListPlacementTargeting, bt as buildEventCombinedListingDisplay, c as checkoutBlockRuntime, ct as resolveOfferingsPreviewGroupCta, d as productDetailBlockRuntime, en as getContainerClass, fn as staticHeaderChromeRuntime, gn as publicMembershipProductCollectionSchema, h as shopBlockRuntime, hn as splitSiteChromePlacementClasses, i as buildProductListInteractiveIslandProps, jt as eventListingBlockRuntime, kt as recurringScheduleProjectionSchema, lt as resolveOfferingsPreviewGroups, n as buildCheckoutInteractiveIslandProps, nn as buildEventListWeek, nt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, o as cartBlockRuntime, ot as normalizeOfferingsPreviewItemLimit, p as productListBlockRuntime, q as buildEventRegistrationInteractiveIslandProps, qt as listingEventCardProps, r as buildProductDetailInteractiveIslandProps, rn as eventListWeekDays, rt as buildOfferingsPreviewListing, sn as formatEventPriceDisplay, st as offeringsListingFor, t as buildCartInteractiveIslandProps, tn as Grid, ut as resolveOfferingsRenderInput, vt as occurrenceContextSchema, wt as buildEventCalendarListingDisplay, xt as eventCombinedBlockRuntime, yn as assessMailingListTargeting, yt as buildEventCombinedInteractiveIslandProps, z as buildGiftingInteractiveIslandProps } from "./shop.interactive-BM0NRsFQ.mjs";
|
|
3
|
+
import { h as ok, m as err } from "./surfaceTransportMarker-BXepAVF6.mjs";
|
|
4
|
+
import { $r as formatBookingPriceDisplay, Dn as getEventAvailabilityStatus, En as getEventAvailability, Er as resolveEventRegistrationScopedEvents, Hr as orderedLiveRunSessions, Kt as RichText, Lr as sanitizeHref, Mn as groupPublicEventsByRun, Nr as listLookSlot, Pn as buildBookingFormInteractiveIslandProps, Pr as lookListPresentationSchemaShape, Rr as parseAspectRatioValue, Sn as canJoinEventWaitlistOnAnyMode, Tr as normalizeEventRegistrationPageSurfaceSubject, Ur as resolveWholeSeriesBookingPhase, Vr as nextLiveRunSessionStartMs, _n as formatTime, bn as resolveRuntimeEventDestination, fn as formatEventCompactDateRail, gn as formatEventTimeRange, gr as BLOCK_BUTTON_ROLE_OPTIONS, in as buildCalendarViewport, jr as listItemPresentation, kn as isEventFull, ln as formatCalendarTitle, mn as formatEventHourLabel, oi as resolveExactOrFreePriceDisplay, qt as ImagePresets, rn as resolvePublicMediaUrl, si as resolvePricingOptionsPriceDisplay, sn as eventDateOptions, vn as groupEventsByDate, vr as isBlockButtonRole } from "./wizardSteps-DNpajrAH.mjs";
|
|
5
|
+
import { At as resolveBookingBusinessTimeZone, B as normalizeEventVenueId, D as isEventCalendarDisplayMode, E as isEventCalendarDefaultView, F as normalizeEventScheduleScope, I as normalizeEventStaffMemberId, K as publicEventsArraySchema, L as normalizeEventSurfacePresets, N as normalizeEventCategoryIds, O as isEventCalendarListLayout, Pt as toUtcIsoDateTimeString, Q as RichTextDocSchema, S as eventCalendarListLayoutOptions, at as normalizeLocationAddressText, ct as publicLocationSchema$1, dt as formatDate, k as normalizeEventCalendarDisplayMode$1, lt as toLocationCoordinates, m as calendarWindowPageSchema, ot as parseLocationValue, st as projectPublicLocation, w as eventCalendarVariantMeaning, z as normalizeEventSurfaceScope } from "./noop-D-RG9eR3.mjs";
|
|
6
|
+
import { v as assertNever$1 } from "./src-DjnxOjXG.mjs";
|
|
5
7
|
import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
|
|
6
|
-
import { c as assertNever$1 } from "./src-VIsPY-kw.mjs";
|
|
7
|
-
import { $r as formatBookingPriceDisplay, An as isEventFull, Cn as canJoinEventWaitlistOnAnyMode, Dn as getEventAvailability, Dr as resolveEventRegistrationScopedEvents, Er as normalizeEventRegistrationPageSurfaceSubject, Fn as buildBookingFormInteractiveIslandProps, Fr as lookListPresentationSchemaShape, Hr as orderedLiveRunSessions, Kt as RichText, Mr as listItemPresentation, Nn as groupPublicEventsByRun, On as getEventAvailabilityStatus, Pr as listLookSlot, Rr as parseAspectRatioValue, Ur as resolveWholeSeriesBookingPhase, Vr as nextLiveRunSessionStartMs, _n as formatEventTimeRange, _r as BLOCK_BUTTON_ROLE_OPTIONS, an as buildCalendarViewport, cn as eventDateOptions, hn as formatEventHourLabel, in as sanitizeHref, oi as resolveExactOrFreePriceDisplay, pn as formatEventCompactDateRail, qt as ImagePresets, rn as resolvePublicMediaUrl, si as resolvePricingOptionsPriceDisplay, un as formatCalendarTitle, vn as formatTime, xn as resolveRuntimeEventDestination, yn as groupEventsByDate, yr as isBlockButtonRole } from "./wizardSteps-xqU4q63H.mjs";
|
|
8
|
-
import { C as eventCalendarVariantMeaning, D as isEventCalendarListLayout, E as isEventCalendarDisplayMode, F as normalizeEventStaffMemberId, G as publicEventsArraySchema, I as normalizeEventSurfacePresets, M as normalizeEventCategoryIds, Nt as toUtcIsoDateTimeString, O as normalizeEventCalendarDisplayMode$1, P as normalizeEventScheduleScope, R as normalizeEventSurfaceScope, T as isEventCalendarDefaultView, Z as RichTextDocSchema, at as parseLocationValue, ct as toLocationCoordinates, it as normalizeLocationAddressText, kt as resolveBookingBusinessTimeZone, ot as projectPublicLocation, p as calendarWindowPageSchema, st as publicLocationSchema$1, ut as formatDate, x as eventCalendarListLayoutOptions, z as normalizeEventVenueId } from "./noop-C2vZse15.mjs";
|
|
9
8
|
import { n as selectCategoryView } from "./appointment-service-categories-Cl2pqw-z.mjs";
|
|
10
|
-
import { a as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { a as
|
|
15
|
-
import { n as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
9
|
+
import { a as CalendarRecurringWeek, c as LinkNode, d as LocationMapView, i as buildWeekBoardViewProps, l as RichTextNode, n as WeekBoardView, o as RecurringSchedule, p as MonthLookView, r as buildWeekBoardNavigationState, s as ButtonNode, t as buildTimetableModel, u as TextNode } from "./timetableModel-DzRWikCU.mjs";
|
|
10
|
+
import { Ei as textColorStyle, Ta as runtimeMediaSchema, Ti as rgbColorValue, Tr as arrangementModes, d as arrangementSlotNames, j as compiledRuntimeStyleFieldNames, ot as ICON_CONFIG, ui as serializeSurfaceTree, wi as mergeStyles, xi as backgroundColorStyle, yi as resolveThemeColorReferenceValue, zt as cardVariantRoleValues } from "./site-styles-DELkUk9s.mjs";
|
|
11
|
+
import { d as formatDateKey, h as getWeekCalendarDayTuple, m as getOrderedDayNames } from "./src-1PJxc8KO.mjs";
|
|
12
|
+
import { C as clsx, S as PlusIcon, _ as FileArchiveIcon, a as ThemedDownloadLink, b as FileTextIcon, c as ICON_PICKER_PRESETS, d as ArrowDownIcon, f as ChevronDownIcon, i as ThemedButtonLink, l as isSemanticIconId, m as CirclePlusIcon, p as CircleMinusIcon, r as ThemedButton, s as getIconComponent, u as SpinnerNode, v as FileAudioIcon, x as MinusIcon, y as FileSpreadsheetIcon } from "./ThemedButton-8jUc02mZ.mjs";
|
|
13
|
+
import { a as deriveEventScheduleSummary, i as eventCardListContent, n as resolveEventDetailsPresentation, o as derivePreviewRunSchedule, t as EventDetailsView } from "./view-DAVEoe8A.mjs";
|
|
14
|
+
import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-CDeAwYoN.mjs";
|
|
15
|
+
import { a as buildMonthDay, i as CalendarDayHeaders, n as WeekAgendaView, o as resolveMonthSelectedDay, s as formatEventLocation } from "./CalendarNavigationChevron-5a0x0vcC.mjs";
|
|
16
|
+
import { n as CardListItems, r as EventItem } from "./EventItem-CMKrtkT7.mjs";
|
|
17
|
+
import { i as SvgNode } from "./MapDrawingSvg-C30geMl-.mjs";
|
|
18
|
+
import { C as asPartialObject, _ as DEFAULT_SECTION_SPACING, a as EventCard, c as boxStyleClassNames, d as normalizeBoxStylesBorder, f as resolveCardRoleForBoxStyles, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-3BBRdNVa.mjs";
|
|
19
19
|
import { t as resolveDedicatedBookingHref } from "./bookingRoute-Bqlyu5Vb.mjs";
|
|
20
20
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
21
|
-
import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, r as carouselContents, t as CarouselSlideContent, u as resolveSlidesToShowMobile } from "./carousel.shared-DBnWEJzo.mjs";
|
|
22
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-WuMYrBm3.mjs";
|
|
23
21
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
24
|
-
import { a as
|
|
25
|
-
import {
|
|
26
|
-
import { i as
|
|
27
|
-
import { n as
|
|
28
|
-
import {
|
|
22
|
+
import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, r as carouselContents, t as CarouselSlideContent, u as resolveSlidesToShowMobile } from "./carousel.shared-DBnWEJzo.mjs";
|
|
23
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-BcjTX-7h.mjs";
|
|
24
|
+
import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-8w4GA8rf.mjs";
|
|
25
|
+
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-AGHjxy6C.mjs";
|
|
26
|
+
import { i as RegistrationClosedState, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-Bin7YR0A.mjs";
|
|
27
|
+
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-C7gLK3jh.mjs";
|
|
28
|
+
import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-BSMDYQiS.mjs";
|
|
29
29
|
import React, { forwardRef } from "react";
|
|
30
30
|
import { z } from "zod";
|
|
31
31
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -181,6 +181,68 @@ function parseWeeklyOpeningHours(value) {
|
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
//#endregion
|
|
184
|
+
//#region ../blocks/src/system/types/link.ts
|
|
185
|
+
const nullableString = z.union([z.string().min(1), z.null()]);
|
|
186
|
+
const RESOLVED_INTERNAL_LINK_ENTITY_TYPES = [
|
|
187
|
+
"page",
|
|
188
|
+
"content",
|
|
189
|
+
"pageSurface"
|
|
190
|
+
];
|
|
191
|
+
const resolvedInternalLinkKeys = [
|
|
192
|
+
"entityId",
|
|
193
|
+
"entityType",
|
|
194
|
+
"href",
|
|
195
|
+
"title",
|
|
196
|
+
"typeLabel"
|
|
197
|
+
];
|
|
198
|
+
const internalRouteOnlyLinkSchema = z.object({
|
|
199
|
+
kind: z.literal("internal"),
|
|
200
|
+
routeId: z.string().min(1)
|
|
201
|
+
}).passthrough().superRefine((value, ctx) => {
|
|
202
|
+
if (!resolvedInternalLinkKeys.some((key) => value[key] != null)) return;
|
|
203
|
+
ctx.addIssue({
|
|
204
|
+
code: "custom",
|
|
205
|
+
message: "Internal links with resolved metadata must include entityId, entityType, href, title, and typeLabel"
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
const internalResolvedLinkSchema = z.object({
|
|
209
|
+
kind: z.literal("internal"),
|
|
210
|
+
routeId: z.string().min(1),
|
|
211
|
+
entityId: z.string().min(1),
|
|
212
|
+
entityType: z.enum(RESOLVED_INTERNAL_LINK_ENTITY_TYPES),
|
|
213
|
+
href: z.string().min(1),
|
|
214
|
+
title: z.string().min(1),
|
|
215
|
+
typeLabel: z.string().min(1),
|
|
216
|
+
contentTypeKey: nullableString.optional(),
|
|
217
|
+
contentTypeName: nullableString.optional(),
|
|
218
|
+
updatedAt: nullableString.optional()
|
|
219
|
+
}).passthrough();
|
|
220
|
+
const internalLinkSchema = z.union([internalResolvedLinkSchema, internalRouteOnlyLinkSchema]);
|
|
221
|
+
const externalLinkSchema = z.object({
|
|
222
|
+
kind: z.literal("external"),
|
|
223
|
+
href: z.string().min(1)
|
|
224
|
+
}).passthrough();
|
|
225
|
+
const customLinkSchema = z.object({
|
|
226
|
+
kind: z.literal("url"),
|
|
227
|
+
href: z.string().min(1)
|
|
228
|
+
}).passthrough();
|
|
229
|
+
const pageLinkSchema = z.object({
|
|
230
|
+
kind: z.literal("page"),
|
|
231
|
+
identifier: z.string().min(1)
|
|
232
|
+
}).passthrough();
|
|
233
|
+
const entryLinkSchema = z.object({
|
|
234
|
+
kind: z.literal("entry"),
|
|
235
|
+
contentType: z.string().min(1),
|
|
236
|
+
identifier: z.string().min(1)
|
|
237
|
+
}).passthrough();
|
|
238
|
+
const linkSchema = z.union([
|
|
239
|
+
internalLinkSchema,
|
|
240
|
+
externalLinkSchema,
|
|
241
|
+
customLinkSchema,
|
|
242
|
+
pageLinkSchema,
|
|
243
|
+
entryLinkSchema
|
|
244
|
+
]);
|
|
245
|
+
//#endregion
|
|
184
246
|
//#region ../blocks/src/system/fields/button.ts
|
|
185
247
|
const DEFAULT_THEME_BUTTON_VARIANTS = BLOCK_BUTTON_ROLE_OPTIONS;
|
|
186
248
|
function createButtonVariantField(options = {}) {
|
|
@@ -228,6 +290,7 @@ function createButtonGroup(options = {}) {
|
|
|
228
290
|
...defaultVariant ? { defaultValue: defaultVariant } : {},
|
|
229
291
|
ui: {
|
|
230
292
|
intent: "style",
|
|
293
|
+
underLooks: "owner",
|
|
231
294
|
widget: "buttonVariant"
|
|
232
295
|
}
|
|
233
296
|
},
|
|
@@ -268,6 +331,7 @@ function createButtonGroup(options = {}) {
|
|
|
268
331
|
maxLength: 64,
|
|
269
332
|
ui: {
|
|
270
333
|
intent: "style",
|
|
334
|
+
underLooks: "owner",
|
|
271
335
|
widget: "iconPicker",
|
|
272
336
|
iconPickerPreset: "cta"
|
|
273
337
|
}
|
|
@@ -280,6 +344,7 @@ function createButtonGroup(options = {}) {
|
|
|
280
344
|
maxLength: 64,
|
|
281
345
|
ui: {
|
|
282
346
|
intent: "style",
|
|
347
|
+
underLooks: "owner",
|
|
283
348
|
widget: "iconPicker",
|
|
284
349
|
iconPickerPreset: "cta"
|
|
285
350
|
}
|
|
@@ -1079,7 +1144,7 @@ const eventDisplayFields = [
|
|
|
1079
1144
|
description: "Shows the venue's name and address.",
|
|
1080
1145
|
required: false,
|
|
1081
1146
|
defaultValue: true,
|
|
1082
|
-
ui: { intent: "
|
|
1147
|
+
ui: { intent: "behavior" }
|
|
1083
1148
|
},
|
|
1084
1149
|
{
|
|
1085
1150
|
id: "showMap",
|
|
@@ -1088,7 +1153,7 @@ const eventDisplayFields = [
|
|
|
1088
1153
|
description: "Shows a map when the event's venue has a location set.",
|
|
1089
1154
|
required: false,
|
|
1090
1155
|
defaultValue: true,
|
|
1091
|
-
ui: { intent: "
|
|
1156
|
+
ui: { intent: "behavior" }
|
|
1092
1157
|
},
|
|
1093
1158
|
{
|
|
1094
1159
|
id: "showCapacity",
|
|
@@ -1097,7 +1162,7 @@ const eventDisplayFields = [
|
|
|
1097
1162
|
description: "Shows how many places are left.",
|
|
1098
1163
|
required: false,
|
|
1099
1164
|
defaultValue: true,
|
|
1100
|
-
ui: { intent: "
|
|
1165
|
+
ui: { intent: "behavior" }
|
|
1101
1166
|
}
|
|
1102
1167
|
];
|
|
1103
1168
|
/**
|
|
@@ -1112,7 +1177,7 @@ const emptyStateField = {
|
|
|
1112
1177
|
multiline: false,
|
|
1113
1178
|
defaultValue: "No upcoming events scheduled.",
|
|
1114
1179
|
maxLength: 200,
|
|
1115
|
-
ui: { intent: "
|
|
1180
|
+
ui: { intent: "behavior" }
|
|
1116
1181
|
};
|
|
1117
1182
|
/**
|
|
1118
1183
|
* Layout selection field with grid/stack options
|
|
@@ -1325,68 +1390,6 @@ function OfferingTitle({ className, path, title }) {
|
|
|
1325
1390
|
});
|
|
1326
1391
|
}
|
|
1327
1392
|
//#endregion
|
|
1328
|
-
//#region ../blocks/src/system/types/link.ts
|
|
1329
|
-
const nullableString = z.union([z.string().min(1), z.null()]);
|
|
1330
|
-
const RESOLVED_INTERNAL_LINK_ENTITY_TYPES = [
|
|
1331
|
-
"page",
|
|
1332
|
-
"content",
|
|
1333
|
-
"pageSurface"
|
|
1334
|
-
];
|
|
1335
|
-
const resolvedInternalLinkKeys = [
|
|
1336
|
-
"entityId",
|
|
1337
|
-
"entityType",
|
|
1338
|
-
"href",
|
|
1339
|
-
"title",
|
|
1340
|
-
"typeLabel"
|
|
1341
|
-
];
|
|
1342
|
-
const internalRouteOnlyLinkSchema = z.object({
|
|
1343
|
-
kind: z.literal("internal"),
|
|
1344
|
-
routeId: z.string().min(1)
|
|
1345
|
-
}).passthrough().superRefine((value, ctx) => {
|
|
1346
|
-
if (!resolvedInternalLinkKeys.some((key) => value[key] != null)) return;
|
|
1347
|
-
ctx.addIssue({
|
|
1348
|
-
code: "custom",
|
|
1349
|
-
message: "Internal links with resolved metadata must include entityId, entityType, href, title, and typeLabel"
|
|
1350
|
-
});
|
|
1351
|
-
});
|
|
1352
|
-
const internalResolvedLinkSchema = z.object({
|
|
1353
|
-
kind: z.literal("internal"),
|
|
1354
|
-
routeId: z.string().min(1),
|
|
1355
|
-
entityId: z.string().min(1),
|
|
1356
|
-
entityType: z.enum(RESOLVED_INTERNAL_LINK_ENTITY_TYPES),
|
|
1357
|
-
href: z.string().min(1),
|
|
1358
|
-
title: z.string().min(1),
|
|
1359
|
-
typeLabel: z.string().min(1),
|
|
1360
|
-
contentTypeKey: nullableString.optional(),
|
|
1361
|
-
contentTypeName: nullableString.optional(),
|
|
1362
|
-
updatedAt: nullableString.optional()
|
|
1363
|
-
}).passthrough();
|
|
1364
|
-
const internalLinkSchema = z.union([internalResolvedLinkSchema, internalRouteOnlyLinkSchema]);
|
|
1365
|
-
const externalLinkSchema = z.object({
|
|
1366
|
-
kind: z.literal("external"),
|
|
1367
|
-
href: z.string().min(1)
|
|
1368
|
-
}).passthrough();
|
|
1369
|
-
const customLinkSchema = z.object({
|
|
1370
|
-
kind: z.literal("url"),
|
|
1371
|
-
href: z.string().min(1)
|
|
1372
|
-
}).passthrough();
|
|
1373
|
-
const pageLinkSchema = z.object({
|
|
1374
|
-
kind: z.literal("page"),
|
|
1375
|
-
identifier: z.string().min(1)
|
|
1376
|
-
}).passthrough();
|
|
1377
|
-
const entryLinkSchema = z.object({
|
|
1378
|
-
kind: z.literal("entry"),
|
|
1379
|
-
contentType: z.string().min(1),
|
|
1380
|
-
identifier: z.string().min(1)
|
|
1381
|
-
}).passthrough();
|
|
1382
|
-
const linkSchema = z.union([
|
|
1383
|
-
internalLinkSchema,
|
|
1384
|
-
externalLinkSchema,
|
|
1385
|
-
customLinkSchema,
|
|
1386
|
-
pageLinkSchema,
|
|
1387
|
-
entryLinkSchema
|
|
1388
|
-
]);
|
|
1389
|
-
//#endregion
|
|
1390
1393
|
//#region ../blocks/src/system/node/schema.ts
|
|
1391
1394
|
const transformStepSchema = z.object({
|
|
1392
1395
|
id: z.string().min(1, "Transform requires an identifier"),
|
|
@@ -1839,55 +1842,6 @@ function validateLayoutGridConfiguration(data, ctx) {
|
|
|
1839
1842
|
});
|
|
1840
1843
|
}
|
|
1841
1844
|
//#endregion
|
|
1842
|
-
//#region ../blocks/src/system/manifest/sdkBlockPresentationSchema.ts
|
|
1843
|
-
const sdkBlockPresentationShape = {
|
|
1844
|
-
variants: z.record(z.string().min(1), NodeSchema).optional(),
|
|
1845
|
-
defaultVariant: z.string().min(1).optional(),
|
|
1846
|
-
variantOptions: z.record(z.string().min(1), z.object({
|
|
1847
|
-
label: z.string().min(1).optional(),
|
|
1848
|
-
description: z.string().min(1).optional(),
|
|
1849
|
-
icon: z.string().min(1).optional()
|
|
1850
|
-
})).optional()
|
|
1851
|
-
};
|
|
1852
|
-
function validateSdkBlockDeclaration(data, ctx) {
|
|
1853
|
-
validateTitleSource(data, ctx);
|
|
1854
|
-
if (data.layout && data.variants) ctx.addIssue({
|
|
1855
|
-
code: z.ZodIssueCode.custom,
|
|
1856
|
-
message: "Custom block must define either `layout` or `variants`, not both",
|
|
1857
|
-
path: ["variants"]
|
|
1858
|
-
});
|
|
1859
|
-
if (data.variants) validateVariantKeys(data, ctx);
|
|
1860
|
-
}
|
|
1861
|
-
function validateTitleSource(data, ctx) {
|
|
1862
|
-
if (!data.titleSource) return;
|
|
1863
|
-
(Array.isArray(data.titleSource) ? data.titleSource : [data.titleSource]).forEach((source, index) => {
|
|
1864
|
-
if (data.fields.some((field) => field !== null && typeof field === "object" && "id" in field && field.id === source)) return;
|
|
1865
|
-
ctx.addIssue({
|
|
1866
|
-
code: z.ZodIssueCode.custom,
|
|
1867
|
-
message: `titleSource must reference a valid field ID (got "${source}")`,
|
|
1868
|
-
path: Array.isArray(data.titleSource) ? ["titleSource", index] : ["titleSource"]
|
|
1869
|
-
});
|
|
1870
|
-
});
|
|
1871
|
-
}
|
|
1872
|
-
function validateVariantKeys(data, ctx) {
|
|
1873
|
-
const variants = data.variants ?? {};
|
|
1874
|
-
if (Object.keys(variants).length === 0) ctx.addIssue({
|
|
1875
|
-
code: z.ZodIssueCode.custom,
|
|
1876
|
-
message: "`variants` must contain at least one variant key",
|
|
1877
|
-
path: ["variants"]
|
|
1878
|
-
});
|
|
1879
|
-
if (data.defaultVariant && !Object.prototype.hasOwnProperty.call(variants, data.defaultVariant)) ctx.addIssue({
|
|
1880
|
-
code: z.ZodIssueCode.custom,
|
|
1881
|
-
message: "`defaultVariant` must be a key present in `variants`",
|
|
1882
|
-
path: ["defaultVariant"]
|
|
1883
|
-
});
|
|
1884
|
-
Object.keys(data.variantOptions ?? {}).filter((key) => !Object.prototype.hasOwnProperty.call(variants, key)).forEach((key) => ctx.addIssue({
|
|
1885
|
-
code: z.ZodIssueCode.custom,
|
|
1886
|
-
message: "`variantOptions` key must exist in `variants`",
|
|
1887
|
-
path: ["variantOptions", key]
|
|
1888
|
-
}));
|
|
1889
|
-
}
|
|
1890
|
-
//#endregion
|
|
1891
1845
|
//#region ../blocks/src/system/manifest/schema.ts
|
|
1892
1846
|
const visibilityLevels = [
|
|
1893
1847
|
"admin",
|
|
@@ -2098,6 +2052,12 @@ const uiSchema = z.object({
|
|
|
2098
2052
|
"behavior",
|
|
2099
2053
|
"style"
|
|
2100
2054
|
]).optional(),
|
|
2055
|
+
/**
|
|
2056
|
+
* Under an arrangement Look, `display` and `style` fields belong to the
|
|
2057
|
+
* Look. `'owner'` keeps a presentation choice with the owner anyway, such
|
|
2058
|
+
* as primary or secondary on a button they added.
|
|
2059
|
+
*/
|
|
2060
|
+
underLooks: z.literal("owner").optional(),
|
|
2101
2061
|
valueContract: z.enum(["boxBackground", "location"]).optional()
|
|
2102
2062
|
}).partial().superRefine((ui, ctx) => {
|
|
2103
2063
|
if (ui.layoutGridColumns !== void 0 && ui.layoutGridColumnsFields !== void 0) ctx.addIssue({
|
|
@@ -2504,7 +2464,7 @@ const behaviourSchema = z.object({
|
|
|
2504
2464
|
paletteHidden: z.boolean().default(false),
|
|
2505
2465
|
managesOwnWrapper: z.boolean().optional()
|
|
2506
2466
|
});
|
|
2507
|
-
|
|
2467
|
+
z.array(z.enum(SYSTEM_BLOCK_KINDS)).readonly();
|
|
2508
2468
|
const blockRequiredFeatureSchema = z.enum([
|
|
2509
2469
|
"bookings.appointments",
|
|
2510
2470
|
"bookings.events",
|
|
@@ -2573,8 +2533,6 @@ z.object({
|
|
|
2573
2533
|
}).optional()
|
|
2574
2534
|
}).optional(),
|
|
2575
2535
|
promotedFields: z.array(z.string().min(1)).optional(),
|
|
2576
|
-
/** Legacy presentation fields owned by arrangement Looks, including nested schema paths. */
|
|
2577
|
-
arrangementOwnedFieldIds: z.array(z.string().min(1)).readonly().optional(),
|
|
2578
2536
|
variantMeaning: z.discriminatedUnion("kind", [z.object({
|
|
2579
2537
|
kind: z.literal("arrangement"),
|
|
2580
2538
|
lookOnlyKeys: z.array(z.string().min(1)).readonly().optional()
|
|
@@ -2607,19 +2565,7 @@ z.object({
|
|
|
2607
2565
|
tags: z.array(z.string()).optional(),
|
|
2608
2566
|
icon: z.string().optional()
|
|
2609
2567
|
});
|
|
2610
|
-
|
|
2611
|
-
function validateManifestLookField(data, ctx) {
|
|
2612
|
-
if (!data.lookField) return;
|
|
2613
|
-
if (!data.fields.some((field) => field !== null && typeof field === "object" && "id" in field && field.id === data.lookField && "type" in field && field.type === "select" && (!("multiple" in field) || field.multiple !== true))) ctx.addIssue({
|
|
2614
|
-
code: z.ZodIssueCode.custom,
|
|
2615
|
-
path: ["lookField"],
|
|
2616
|
-
message: "lookField must name an existing single select field"
|
|
2617
|
-
});
|
|
2618
|
-
}
|
|
2619
|
-
const blockSectionDeclarationShape = {
|
|
2620
|
-
promotedFields: z.array(z.string().min(1)).optional(),
|
|
2621
|
-
lookField: z.string().min(1).optional()
|
|
2622
|
-
};
|
|
2568
|
+
z.array(z.string().min(1)).optional(), z.string().min(1).optional();
|
|
2623
2569
|
//#endregion
|
|
2624
2570
|
//#region ../blocks/src/system/readiness.ts
|
|
2625
2571
|
const ready = { kind: "Ready" };
|
|
@@ -2990,45 +2936,24 @@ function resolveBlockIconRenderValue(value, generatedAssets = /* @__PURE__ */ ne
|
|
|
2990
2936
|
}
|
|
2991
2937
|
}
|
|
2992
2938
|
//#endregion
|
|
2993
|
-
//#region ../blocks/src/system/
|
|
2994
|
-
/**
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
}
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
/** Compiler-owned slots are absent for legacy Looks, preserving their HTML. */
|
|
3002
|
-
const lookSlot = (name, source = "look") => source === "skin" ? { "data-slot": { $bind: {
|
|
3003
|
-
from: "theme.skin",
|
|
3004
|
-
transforms: [{
|
|
3005
|
-
id: "look.skinSlot",
|
|
3006
|
-
options: { slot: name }
|
|
3007
|
-
}]
|
|
3008
|
-
} } } : { "data-slot": { $bind: { from: `content._lookSlots.${name}` } } };
|
|
3009
|
-
/** Non-Look widgets expose section geometry only when a theme has a skin. */
|
|
3010
|
-
const lookSkinSlotTransform = {
|
|
3011
|
-
id: "look.skinSlot",
|
|
3012
|
-
kind: "string",
|
|
3013
|
-
run: (value, options) => typeof value === "string" && value.length > 0 ? arrangementSlotNames.find((slot) => slot === asPartialObject(options)?.slot) : void 0
|
|
3014
|
-
};
|
|
3015
|
-
const lookLeadSlotTransform = {
|
|
3016
|
-
id: "look.leadSlot",
|
|
3017
|
-
kind: "string",
|
|
3018
|
-
run: (value, _options, context) => asPartialObject(context.viewModel?.content)?._lookSlots === void 0 ? void 0 : value === 0 ? "lead" : "item"
|
|
3019
|
-
};
|
|
3020
|
-
const lookQuoteLimitTransform = {
|
|
3021
|
-
id: "look.quoteLimit",
|
|
3022
|
-
kind: "string",
|
|
3023
|
-
run: (value) => testimonialLoaderLimit(asPartialObject(value) ?? {})
|
|
3024
|
-
};
|
|
3025
|
-
/** Blank headings use the same non-empty region fallback as absent headings. */
|
|
3026
|
-
const lookCarouselRegionTransform = {
|
|
3027
|
-
schema: z.object({ fallback: z.string().trim().min(1) }),
|
|
3028
|
-
id: "look.carouselRegion",
|
|
3029
|
-
kind: "string",
|
|
3030
|
-
run: (value, options) => typeof value === "string" && value.trim() ? value.trim() : options?.fallback ?? "Carousel"
|
|
2939
|
+
//#region ../blocks/src/system/helpers/api-bindings.ts
|
|
2940
|
+
/**
|
|
2941
|
+
* Standard API bindings that all interactive blocks need.
|
|
2942
|
+
*/
|
|
2943
|
+
const apiBindings = {
|
|
2944
|
+
now: { $bind: { from: "$root.now" } },
|
|
2945
|
+
siteId: { $bind: { from: "$root.siteId" } },
|
|
2946
|
+
apiBaseUrl: { $bind: { from: "$root.apiBaseUrl" } }
|
|
3031
2947
|
};
|
|
2948
|
+
function withApiBindings(props, options) {
|
|
2949
|
+
return {
|
|
2950
|
+
...options?.includeApiBaseUrl ?? true ? apiBindings : {
|
|
2951
|
+
siteId: apiBindings.siteId,
|
|
2952
|
+
now: apiBindings.now
|
|
2953
|
+
},
|
|
2954
|
+
...props
|
|
2955
|
+
};
|
|
2956
|
+
}
|
|
3032
2957
|
//#endregion
|
|
3033
2958
|
//#region ../blocks/src/utils/env.ts
|
|
3034
2959
|
/**
|
|
@@ -3210,6 +3135,46 @@ function devValidate(node) {
|
|
|
3210
3135
|
return node;
|
|
3211
3136
|
}
|
|
3212
3137
|
//#endregion
|
|
3138
|
+
//#region ../blocks/src/system/customize/testimonialCount.ts
|
|
3139
|
+
/** The loader consumes the content-stage plan; it never selects a Look. */
|
|
3140
|
+
function testimonialLoaderLimit(content) {
|
|
3141
|
+
if (typeof content._quoteLoaderLimit === "string") return content._quoteLoaderLimit;
|
|
3142
|
+
return typeof content.maxEntries === "string" || typeof content.maxEntries === "number" ? String(content.maxEntries) : "6";
|
|
3143
|
+
}
|
|
3144
|
+
//#endregion
|
|
3145
|
+
//#region ../blocks/src/system/node/fragments/lookSlot.ts
|
|
3146
|
+
/** Compiler-owned slots are absent for legacy Looks, preserving their HTML. */
|
|
3147
|
+
const lookSlot = (name, source = "look") => source === "skin" ? { "data-slot": { $bind: {
|
|
3148
|
+
from: "theme.skin",
|
|
3149
|
+
transforms: [{
|
|
3150
|
+
id: "look.skinSlot",
|
|
3151
|
+
options: { slot: name }
|
|
3152
|
+
}]
|
|
3153
|
+
} } } : { "data-slot": { $bind: { from: `content._lookSlots.${name}` } } };
|
|
3154
|
+
/** Non-Look widgets expose section geometry only when a theme has a skin. */
|
|
3155
|
+
const lookSkinSlotTransform = {
|
|
3156
|
+
id: "look.skinSlot",
|
|
3157
|
+
kind: "string",
|
|
3158
|
+
run: (value, options) => typeof value === "string" && value.length > 0 ? arrangementSlotNames.find((slot) => slot === asPartialObject(options)?.slot) : void 0
|
|
3159
|
+
};
|
|
3160
|
+
const lookLeadSlotTransform = {
|
|
3161
|
+
id: "look.leadSlot",
|
|
3162
|
+
kind: "string",
|
|
3163
|
+
run: (value, _options, context) => asPartialObject(context.viewModel?.content)?._lookSlots === void 0 ? void 0 : value === 0 ? "lead" : "item"
|
|
3164
|
+
};
|
|
3165
|
+
const lookQuoteLimitTransform = {
|
|
3166
|
+
id: "look.quoteLimit",
|
|
3167
|
+
kind: "string",
|
|
3168
|
+
run: (value) => testimonialLoaderLimit(asPartialObject(value) ?? {})
|
|
3169
|
+
};
|
|
3170
|
+
/** Blank headings use the same non-empty region fallback as absent headings. */
|
|
3171
|
+
const lookCarouselRegionTransform = {
|
|
3172
|
+
schema: z.object({ fallback: z.string().trim().min(1) }),
|
|
3173
|
+
id: "look.carouselRegion",
|
|
3174
|
+
kind: "string",
|
|
3175
|
+
run: (value, options) => typeof value === "string" && value.trim() ? value.trim() : options?.fallback ?? "Carousel"
|
|
3176
|
+
};
|
|
3177
|
+
//#endregion
|
|
3213
3178
|
//#region ../blocks/src/system/node/fragments/backgroundLayer.ts
|
|
3214
3179
|
const BACKGROUND_FRAME_BASE_CLASS = "rb-background-frame rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-isolate rb-pointer-events-none";
|
|
3215
3180
|
/**
|
|
@@ -3898,25 +3863,6 @@ const formCopyFragment = defineFragment({
|
|
|
3898
3863
|
} }), bind("content.intro"))]
|
|
3899
3864
|
});
|
|
3900
3865
|
//#endregion
|
|
3901
|
-
//#region ../blocks/src/system/helpers/api-bindings.ts
|
|
3902
|
-
/**
|
|
3903
|
-
* Standard API bindings that all interactive blocks need.
|
|
3904
|
-
*/
|
|
3905
|
-
const apiBindings = {
|
|
3906
|
-
now: { $bind: { from: "$root.now" } },
|
|
3907
|
-
siteId: { $bind: { from: "$root.siteId" } },
|
|
3908
|
-
apiBaseUrl: { $bind: { from: "$root.apiBaseUrl" } }
|
|
3909
|
-
};
|
|
3910
|
-
function withApiBindings(props, options) {
|
|
3911
|
-
return {
|
|
3912
|
-
...options?.includeApiBaseUrl ?? true ? apiBindings : {
|
|
3913
|
-
siteId: apiBindings.siteId,
|
|
3914
|
-
now: apiBindings.now
|
|
3915
|
-
},
|
|
3916
|
-
...props
|
|
3917
|
-
};
|
|
3918
|
-
}
|
|
3919
|
-
//#endregion
|
|
3920
3866
|
//#region ../blocks/src/system/fragments/library/formEmbed.ts
|
|
3921
3867
|
const formEmbedFragment = defineFragment({
|
|
3922
3868
|
variantMeaning: { kind: "arrangement" },
|
|
@@ -4137,7 +4083,6 @@ function createBlockManifest(config) {
|
|
|
4137
4083
|
icon: config.icon ?? "Box",
|
|
4138
4084
|
layout,
|
|
4139
4085
|
variants,
|
|
4140
|
-
arrangementOwnedFieldIds: config.arrangementOwnedFieldIds,
|
|
4141
4086
|
variantMeaning: config.variantMeaning,
|
|
4142
4087
|
defaultVariant: config.defaultVariant,
|
|
4143
4088
|
variantOptions: config.variantOptions,
|
|
@@ -4590,8 +4535,7 @@ const cardListPresentationBindings = {
|
|
|
4590
4535
|
showPhotos: { $bind: { from: "content.showPhotos" } },
|
|
4591
4536
|
cardMarker: { $bind: { from: "content.cardMarker" } },
|
|
4592
4537
|
itemRoles: { $bind: { from: "content._effectiveLook.itemRoles" } },
|
|
4593
|
-
|
|
4594
|
-
itemSurfaces: { $bind: { from: "content._effectiveLook.itemSurfaces" } }
|
|
4538
|
+
surfacePresentation: { $bind: { from: "content._effectiveLook.surfacePresentation" } }
|
|
4595
4539
|
};
|
|
4596
4540
|
const cardListContentSchema = z.object({
|
|
4597
4541
|
dates: z.enum(["summary", "next-dates"]).nullish().catch(void 0),
|
|
@@ -5310,6 +5254,31 @@ const eventListingBlockDefinition = {
|
|
|
5310
5254
|
} }
|
|
5311
5255
|
};
|
|
5312
5256
|
//#endregion
|
|
5257
|
+
//#region ../blocks/src/system/blocks/events/eventSelectionChips.ts
|
|
5258
|
+
/** The event types a calendar can be narrowed to, in the order they're offered. */
|
|
5259
|
+
const EVENT_SELECTION_TYPE_OPTIONS = [
|
|
5260
|
+
{
|
|
5261
|
+
value: "course",
|
|
5262
|
+
label: "Courses"
|
|
5263
|
+
},
|
|
5264
|
+
{
|
|
5265
|
+
value: "class",
|
|
5266
|
+
label: "Classes"
|
|
5267
|
+
},
|
|
5268
|
+
{
|
|
5269
|
+
value: "workshop",
|
|
5270
|
+
label: "Workshops"
|
|
5271
|
+
},
|
|
5272
|
+
{
|
|
5273
|
+
value: "retreat",
|
|
5274
|
+
label: "Retreats"
|
|
5275
|
+
},
|
|
5276
|
+
{
|
|
5277
|
+
value: "performance",
|
|
5278
|
+
label: "Performances"
|
|
5279
|
+
}
|
|
5280
|
+
];
|
|
5281
|
+
//#endregion
|
|
5313
5282
|
//#region ../blocks/src/system/blocks/events/eventSelectionFields.ts
|
|
5314
5283
|
const eventSelectionFields = [{
|
|
5315
5284
|
id: "eventSelection",
|
|
@@ -5585,8 +5554,7 @@ const eventCalendarLayout = [styledSection({
|
|
|
5585
5554
|
showPhotos: { $bind: { from: "content.showPhotos" } },
|
|
5586
5555
|
panelHeading: { $bind: { from: "content._lookPanelHeading" } },
|
|
5587
5556
|
itemRoles: { $bind: { from: "content._effectiveLook.itemRoles" } },
|
|
5588
|
-
|
|
5589
|
-
itemSurfaces: { $bind: { from: "content._effectiveLook.itemSurfaces" } },
|
|
5557
|
+
surfacePresentation: { $bind: { from: "content._effectiveLook.surfacePresentation" } },
|
|
5590
5558
|
listColumns: { $bind: { from: "content.listColumns" } },
|
|
5591
5559
|
layout: { $bind: { from: "content.layout" } },
|
|
5592
5560
|
columns: { $bind: { from: "content.columns" } },
|
|
@@ -5720,6 +5688,116 @@ const eventCalendarLayout = [styledSection({
|
|
|
5720
5688
|
baseClass: "",
|
|
5721
5689
|
spacing: "comfortable"
|
|
5722
5690
|
})];
|
|
5691
|
+
/**
|
|
5692
|
+
* Page size and "more events" settings apply to paged lists. A week list always shows its whole
|
|
5693
|
+
* week, so they're hidden under List by Week where the site style offers week lists; the editor
|
|
5694
|
+
* passes false when it doesn't, because a stored "Week" then lists upcoming events.
|
|
5695
|
+
*/
|
|
5696
|
+
const eventsPerPageOptions = [{
|
|
5697
|
+
value: "1",
|
|
5698
|
+
label: "Show just one"
|
|
5699
|
+
}, ...[
|
|
5700
|
+
"2",
|
|
5701
|
+
"3",
|
|
5702
|
+
"4",
|
|
5703
|
+
"5",
|
|
5704
|
+
"6",
|
|
5705
|
+
"10",
|
|
5706
|
+
"12",
|
|
5707
|
+
"20",
|
|
5708
|
+
"24",
|
|
5709
|
+
"30"
|
|
5710
|
+
].map((value) => ({
|
|
5711
|
+
value,
|
|
5712
|
+
label: `Show the first ${value}`
|
|
5713
|
+
}))];
|
|
5714
|
+
function eventCalendarPagingFields(weekListsAvailable) {
|
|
5715
|
+
const paged = weekListsAvailable ? { anyOf: [{
|
|
5716
|
+
field: "variant",
|
|
5717
|
+
equals: "combined"
|
|
5718
|
+
}, { allOf: [{
|
|
5719
|
+
field: "variant",
|
|
5720
|
+
equals: "list"
|
|
5721
|
+
}, {
|
|
5722
|
+
field: "listBy",
|
|
5723
|
+
notEquals: "week"
|
|
5724
|
+
}] }] } : {
|
|
5725
|
+
field: "variant",
|
|
5726
|
+
oneOf: ["combined", "list"]
|
|
5727
|
+
};
|
|
5728
|
+
const weekVariants = {
|
|
5729
|
+
field: "variant",
|
|
5730
|
+
oneOf: ["week-board", "week"]
|
|
5731
|
+
};
|
|
5732
|
+
return [
|
|
5733
|
+
{
|
|
5734
|
+
id: "eventsPerPage",
|
|
5735
|
+
type: "select",
|
|
5736
|
+
label: "How many",
|
|
5737
|
+
required: false,
|
|
5738
|
+
multiple: false,
|
|
5739
|
+
defaultValue: "12",
|
|
5740
|
+
options: eventsPerPageOptions,
|
|
5741
|
+
ui: {
|
|
5742
|
+
intent: "behavior",
|
|
5743
|
+
visibleWhen: paged
|
|
5744
|
+
}
|
|
5745
|
+
},
|
|
5746
|
+
{
|
|
5747
|
+
id: "paginationMode",
|
|
5748
|
+
type: "select",
|
|
5749
|
+
label: "More events",
|
|
5750
|
+
required: false,
|
|
5751
|
+
multiple: false,
|
|
5752
|
+
defaultValue: "loadMore",
|
|
5753
|
+
description: "How visitors can see the rest of your events.",
|
|
5754
|
+
options: [
|
|
5755
|
+
{
|
|
5756
|
+
value: "none",
|
|
5757
|
+
label: "No link or button"
|
|
5758
|
+
},
|
|
5759
|
+
{
|
|
5760
|
+
value: "loadMore",
|
|
5761
|
+
label: "Load more button"
|
|
5762
|
+
},
|
|
5763
|
+
{
|
|
5764
|
+
value: "seeAllLink",
|
|
5765
|
+
label: "Link to another page"
|
|
5766
|
+
}
|
|
5767
|
+
],
|
|
5768
|
+
ui: {
|
|
5769
|
+
intent: "behavior",
|
|
5770
|
+
visibleWhen: paged
|
|
5771
|
+
}
|
|
5772
|
+
},
|
|
5773
|
+
{
|
|
5774
|
+
id: "seeAllUrl",
|
|
5775
|
+
type: "link",
|
|
5776
|
+
label: "Link to the full list",
|
|
5777
|
+
required: false,
|
|
5778
|
+
ui: {
|
|
5779
|
+
intent: "behavior",
|
|
5780
|
+
visibleWhen: { anyOf: [{ allOf: [paged, {
|
|
5781
|
+
field: "paginationMode",
|
|
5782
|
+
equals: "seeAllLink"
|
|
5783
|
+
}] }, weekVariants] }
|
|
5784
|
+
}
|
|
5785
|
+
},
|
|
5786
|
+
{
|
|
5787
|
+
id: "loadMoreText",
|
|
5788
|
+
type: "text",
|
|
5789
|
+
label: "More events button text",
|
|
5790
|
+
required: false,
|
|
5791
|
+
multiline: false,
|
|
5792
|
+
description: "The text on the button or link that shows more events.",
|
|
5793
|
+
defaultValue: "Load more events",
|
|
5794
|
+
ui: {
|
|
5795
|
+
intent: "behavior",
|
|
5796
|
+
visibleWhen: { anyOf: [paged, weekVariants] }
|
|
5797
|
+
}
|
|
5798
|
+
}
|
|
5799
|
+
];
|
|
5800
|
+
}
|
|
5723
5801
|
const eventCalendarAdditionalFields = [
|
|
5724
5802
|
...cardListKnobFields,
|
|
5725
5803
|
...cardListPhotoNumberFields.filter((field) => field.id === "showPhotos"),
|
|
@@ -5792,7 +5870,7 @@ const eventCalendarAdditionalFields = [
|
|
|
5792
5870
|
label: "Week"
|
|
5793
5871
|
}],
|
|
5794
5872
|
ui: {
|
|
5795
|
-
intent: "
|
|
5873
|
+
intent: "behavior",
|
|
5796
5874
|
visibleWhen: {
|
|
5797
5875
|
field: "variant",
|
|
5798
5876
|
equals: "list"
|
|
@@ -5852,137 +5930,7 @@ const eventCalendarAdditionalFields = [
|
|
|
5852
5930
|
}] }
|
|
5853
5931
|
}
|
|
5854
5932
|
},
|
|
5855
|
-
|
|
5856
|
-
id: "eventsPerPage",
|
|
5857
|
-
type: "select",
|
|
5858
|
-
label: "How many",
|
|
5859
|
-
required: false,
|
|
5860
|
-
multiple: false,
|
|
5861
|
-
defaultValue: "12",
|
|
5862
|
-
options: [
|
|
5863
|
-
{
|
|
5864
|
-
value: "1",
|
|
5865
|
-
label: "Show just one"
|
|
5866
|
-
},
|
|
5867
|
-
{
|
|
5868
|
-
value: "2",
|
|
5869
|
-
label: "Show the first 2"
|
|
5870
|
-
},
|
|
5871
|
-
{
|
|
5872
|
-
value: "3",
|
|
5873
|
-
label: "Show the first 3"
|
|
5874
|
-
},
|
|
5875
|
-
{
|
|
5876
|
-
value: "4",
|
|
5877
|
-
label: "Show the first 4"
|
|
5878
|
-
},
|
|
5879
|
-
{
|
|
5880
|
-
value: "5",
|
|
5881
|
-
label: "Show the first 5"
|
|
5882
|
-
},
|
|
5883
|
-
{
|
|
5884
|
-
value: "6",
|
|
5885
|
-
label: "Show the first 6"
|
|
5886
|
-
},
|
|
5887
|
-
{
|
|
5888
|
-
value: "10",
|
|
5889
|
-
label: "Show the first 10"
|
|
5890
|
-
},
|
|
5891
|
-
{
|
|
5892
|
-
value: "12",
|
|
5893
|
-
label: "Show the first 12"
|
|
5894
|
-
},
|
|
5895
|
-
{
|
|
5896
|
-
value: "20",
|
|
5897
|
-
label: "Show the first 20"
|
|
5898
|
-
},
|
|
5899
|
-
{
|
|
5900
|
-
value: "24",
|
|
5901
|
-
label: "Show the first 24"
|
|
5902
|
-
},
|
|
5903
|
-
{
|
|
5904
|
-
value: "30",
|
|
5905
|
-
label: "Show the first 30"
|
|
5906
|
-
}
|
|
5907
|
-
],
|
|
5908
|
-
ui: {
|
|
5909
|
-
intent: "display",
|
|
5910
|
-
visibleWhen: {
|
|
5911
|
-
field: "variant",
|
|
5912
|
-
oneOf: ["combined", "list"]
|
|
5913
|
-
}
|
|
5914
|
-
}
|
|
5915
|
-
},
|
|
5916
|
-
{
|
|
5917
|
-
id: "paginationMode",
|
|
5918
|
-
type: "select",
|
|
5919
|
-
label: "More events",
|
|
5920
|
-
description: "How visitors can see the rest of your events.",
|
|
5921
|
-
required: false,
|
|
5922
|
-
multiple: false,
|
|
5923
|
-
defaultValue: "loadMore",
|
|
5924
|
-
options: [
|
|
5925
|
-
{
|
|
5926
|
-
value: "none",
|
|
5927
|
-
label: "No link or button"
|
|
5928
|
-
},
|
|
5929
|
-
{
|
|
5930
|
-
value: "loadMore",
|
|
5931
|
-
label: "Load more button"
|
|
5932
|
-
},
|
|
5933
|
-
{
|
|
5934
|
-
value: "seeAllLink",
|
|
5935
|
-
label: "Link to another page"
|
|
5936
|
-
}
|
|
5937
|
-
],
|
|
5938
|
-
ui: {
|
|
5939
|
-
intent: "display",
|
|
5940
|
-
visibleWhen: {
|
|
5941
|
-
field: "variant",
|
|
5942
|
-
oneOf: ["combined", "list"]
|
|
5943
|
-
}
|
|
5944
|
-
}
|
|
5945
|
-
},
|
|
5946
|
-
{
|
|
5947
|
-
id: "seeAllUrl",
|
|
5948
|
-
type: "link",
|
|
5949
|
-
label: "Link to the full list",
|
|
5950
|
-
required: false,
|
|
5951
|
-
ui: {
|
|
5952
|
-
intent: "display",
|
|
5953
|
-
visibleWhen: { anyOf: [{ allOf: [{
|
|
5954
|
-
field: "variant",
|
|
5955
|
-
oneOf: ["combined", "list"]
|
|
5956
|
-
}, {
|
|
5957
|
-
field: "paginationMode",
|
|
5958
|
-
equals: "seeAllLink"
|
|
5959
|
-
}] }, {
|
|
5960
|
-
field: "variant",
|
|
5961
|
-
oneOf: ["week-board", "week"]
|
|
5962
|
-
}] }
|
|
5963
|
-
}
|
|
5964
|
-
},
|
|
5965
|
-
{
|
|
5966
|
-
id: "loadMoreText",
|
|
5967
|
-
type: "text",
|
|
5968
|
-
label: "More events button text",
|
|
5969
|
-
description: "The text on the button or link that shows more events.",
|
|
5970
|
-
required: false,
|
|
5971
|
-
multiline: false,
|
|
5972
|
-
defaultValue: "Load more events",
|
|
5973
|
-
ui: {
|
|
5974
|
-
intent: "display",
|
|
5975
|
-
visibleWhen: {
|
|
5976
|
-
field: "variant",
|
|
5977
|
-
oneOf: [
|
|
5978
|
-
"combined",
|
|
5979
|
-
"list",
|
|
5980
|
-
"week-board",
|
|
5981
|
-
"week"
|
|
5982
|
-
]
|
|
5983
|
-
}
|
|
5984
|
-
}
|
|
5985
|
-
},
|
|
5933
|
+
...eventCalendarPagingFields(true),
|
|
5986
5934
|
{
|
|
5987
5935
|
id: "startOfWeek",
|
|
5988
5936
|
type: "select",
|
|
@@ -5998,7 +5946,7 @@ const eventCalendarAdditionalFields = [
|
|
|
5998
5946
|
label: "Monday"
|
|
5999
5947
|
}],
|
|
6000
5948
|
ui: {
|
|
6001
|
-
intent: "
|
|
5949
|
+
intent: "behavior",
|
|
6002
5950
|
visibleWhen: {
|
|
6003
5951
|
field: "variant",
|
|
6004
5952
|
oneOf: [
|
|
@@ -6034,7 +5982,7 @@ const eventCalendarAdditionalFields = [
|
|
|
6034
5982
|
}
|
|
6035
5983
|
],
|
|
6036
5984
|
ui: {
|
|
6037
|
-
intent: "
|
|
5985
|
+
intent: "behavior",
|
|
6038
5986
|
visibleWhen: {
|
|
6039
5987
|
field: "variant",
|
|
6040
5988
|
equals: "combined"
|
|
@@ -6078,7 +6026,7 @@ const eventCalendarAdditionalFields = [
|
|
|
6078
6026
|
required: false,
|
|
6079
6027
|
defaultValue: true,
|
|
6080
6028
|
ui: {
|
|
6081
|
-
intent: "
|
|
6029
|
+
intent: "behavior",
|
|
6082
6030
|
visibleWhen: {
|
|
6083
6031
|
field: "variant",
|
|
6084
6032
|
oneOf: [
|
|
@@ -6114,7 +6062,7 @@ const eventCalendarAdditionalFields = [
|
|
|
6114
6062
|
}
|
|
6115
6063
|
],
|
|
6116
6064
|
ui: {
|
|
6117
|
-
intent: "
|
|
6065
|
+
intent: "behavior",
|
|
6118
6066
|
visibleWhen: { allOf: [{
|
|
6119
6067
|
field: "variant",
|
|
6120
6068
|
oneOf: [
|
|
@@ -6138,7 +6086,7 @@ const eventCalendarAdditionalFields = [
|
|
|
6138
6086
|
required: false,
|
|
6139
6087
|
defaultValue: false,
|
|
6140
6088
|
ui: {
|
|
6141
|
-
intent: "
|
|
6089
|
+
intent: "behavior",
|
|
6142
6090
|
visibleWhen: { allOf: [{
|
|
6143
6091
|
field: "variant",
|
|
6144
6092
|
oneOf: [
|
|
@@ -6162,7 +6110,7 @@ const eventCalendarAdditionalFields = [
|
|
|
6162
6110
|
required: false,
|
|
6163
6111
|
defaultValue: true,
|
|
6164
6112
|
ui: {
|
|
6165
|
-
intent: "
|
|
6113
|
+
intent: "behavior",
|
|
6166
6114
|
visibleWhen: { allOf: [{
|
|
6167
6115
|
field: "variant",
|
|
6168
6116
|
oneOf: [
|
|
@@ -6268,8 +6216,7 @@ const eventCalendarAdditionalFields = [
|
|
|
6268
6216
|
{
|
|
6269
6217
|
id: "eventSurface",
|
|
6270
6218
|
type: "select",
|
|
6271
|
-
label: "
|
|
6272
|
-
description: "Choose whether this block shows everything, regular classes, or workshops and special events.",
|
|
6219
|
+
label: "Which events",
|
|
6273
6220
|
required: false,
|
|
6274
6221
|
multiple: false,
|
|
6275
6222
|
defaultValue: "all",
|
|
@@ -6291,7 +6238,10 @@ const eventCalendarAdditionalFields = [
|
|
|
6291
6238
|
label: "Custom"
|
|
6292
6239
|
}
|
|
6293
6240
|
],
|
|
6294
|
-
ui: {
|
|
6241
|
+
ui: {
|
|
6242
|
+
intent: "behavior",
|
|
6243
|
+
widget: "eventSelectionChips"
|
|
6244
|
+
}
|
|
6295
6245
|
},
|
|
6296
6246
|
{
|
|
6297
6247
|
id: "filterEventPresets",
|
|
@@ -6301,34 +6251,10 @@ const eventCalendarAdditionalFields = [
|
|
|
6301
6251
|
required: false,
|
|
6302
6252
|
multiple: true,
|
|
6303
6253
|
defaultValue: [],
|
|
6304
|
-
options:
|
|
6305
|
-
{
|
|
6306
|
-
value: "course",
|
|
6307
|
-
label: "Courses"
|
|
6308
|
-
},
|
|
6309
|
-
{
|
|
6310
|
-
value: "class",
|
|
6311
|
-
label: "Classes"
|
|
6312
|
-
},
|
|
6313
|
-
{
|
|
6314
|
-
value: "workshop",
|
|
6315
|
-
label: "Workshops"
|
|
6316
|
-
},
|
|
6317
|
-
{
|
|
6318
|
-
value: "retreat",
|
|
6319
|
-
label: "Retreats"
|
|
6320
|
-
},
|
|
6321
|
-
{
|
|
6322
|
-
value: "performance",
|
|
6323
|
-
label: "Performances"
|
|
6324
|
-
}
|
|
6325
|
-
],
|
|
6254
|
+
options: EVENT_SELECTION_TYPE_OPTIONS.map((option) => ({ ...option })),
|
|
6326
6255
|
ui: {
|
|
6327
6256
|
intent: "behavior",
|
|
6328
|
-
|
|
6329
|
-
field: "eventSurface",
|
|
6330
|
-
equals: "custom"
|
|
6331
|
-
}
|
|
6257
|
+
hidden: true
|
|
6332
6258
|
}
|
|
6333
6259
|
},
|
|
6334
6260
|
{
|
|
@@ -6355,10 +6281,7 @@ const eventCalendarAdditionalFields = [
|
|
|
6355
6281
|
],
|
|
6356
6282
|
ui: {
|
|
6357
6283
|
intent: "behavior",
|
|
6358
|
-
|
|
6359
|
-
field: "eventSurface",
|
|
6360
|
-
equals: "custom"
|
|
6361
|
-
}
|
|
6284
|
+
hidden: true
|
|
6362
6285
|
}
|
|
6363
6286
|
},
|
|
6364
6287
|
createSiteOptionSelectField({
|
|
@@ -6405,13 +6328,7 @@ const eventCalendarAdditionalFields = [
|
|
|
6405
6328
|
intent: field.id === "_cardStyles" || field.id === "buttonVariant" ? "style" : "content"
|
|
6406
6329
|
}
|
|
6407
6330
|
})),
|
|
6408
|
-
|
|
6409
|
-
...emptyStateField,
|
|
6410
|
-
ui: {
|
|
6411
|
-
...emptyStateField.ui ?? {},
|
|
6412
|
-
intent: "display"
|
|
6413
|
-
}
|
|
6414
|
-
},
|
|
6331
|
+
emptyStateField,
|
|
6415
6332
|
sectionStylesField({
|
|
6416
6333
|
id: "_sectionStyles",
|
|
6417
6334
|
label: "Section styles",
|
|
@@ -6563,7 +6480,6 @@ const generatedEventCalendarManifest = createBlockManifestWithContentShape({
|
|
|
6563
6480
|
icon: "CalendarDays",
|
|
6564
6481
|
layout: eventCalendarLayout,
|
|
6565
6482
|
variants: eventCalendarVariants,
|
|
6566
|
-
arrangementOwnedFieldIds: ["defaultCalendarView"],
|
|
6567
6483
|
variantMeaning: eventCalendarVariantMeaning,
|
|
6568
6484
|
defaultVariant: "combined",
|
|
6569
6485
|
variantOptions: {
|
|
@@ -6581,7 +6497,11 @@ const eventCalendarBlockDefinition = {
|
|
|
6581
6497
|
fields: generatedEventCalendarManifest.fields?.map((field) => field.id === "variant" ? {
|
|
6582
6498
|
...field,
|
|
6583
6499
|
label: "Show events as",
|
|
6584
|
-
description: void 0
|
|
6500
|
+
description: void 0,
|
|
6501
|
+
ui: {
|
|
6502
|
+
...field.ui,
|
|
6503
|
+
widget: "segmented"
|
|
6504
|
+
}
|
|
6585
6505
|
} : field)
|
|
6586
6506
|
},
|
|
6587
6507
|
contentNormalizer: {
|
|
@@ -6659,7 +6579,6 @@ function matchesGroup(group, event) {
|
|
|
6659
6579
|
}
|
|
6660
6580
|
const shopBlockDefinition = {
|
|
6661
6581
|
manifest: createBlockManifest({
|
|
6662
|
-
arrangementOwnedFieldIds: ["layout", "columns"],
|
|
6663
6582
|
variantMeaning: {
|
|
6664
6583
|
kind: "arrangement",
|
|
6665
6584
|
lookOnlyKeys: [
|
|
@@ -6700,7 +6619,7 @@ const shopBlockDefinition = {
|
|
|
6700
6619
|
description: "Lets visitors buy your class passes.",
|
|
6701
6620
|
required: false,
|
|
6702
6621
|
defaultValue: true,
|
|
6703
|
-
ui: { intent: "
|
|
6622
|
+
ui: { intent: "behavior" }
|
|
6704
6623
|
},
|
|
6705
6624
|
{
|
|
6706
6625
|
id: "showMemberships",
|
|
@@ -6709,7 +6628,7 @@ const shopBlockDefinition = {
|
|
|
6709
6628
|
description: "Lets visitors buy your memberships.",
|
|
6710
6629
|
required: false,
|
|
6711
6630
|
defaultValue: true,
|
|
6712
|
-
ui: { intent: "
|
|
6631
|
+
ui: { intent: "behavior" }
|
|
6713
6632
|
},
|
|
6714
6633
|
{
|
|
6715
6634
|
id: "layout",
|
|
@@ -6770,7 +6689,7 @@ const shopBlockDefinition = {
|
|
|
6770
6689
|
description: "Shows the description under each one.",
|
|
6771
6690
|
required: false,
|
|
6772
6691
|
defaultValue: true,
|
|
6773
|
-
ui: { intent: "
|
|
6692
|
+
ui: { intent: "behavior" }
|
|
6774
6693
|
},
|
|
6775
6694
|
{
|
|
6776
6695
|
id: "showValidityPeriod",
|
|
@@ -6779,7 +6698,7 @@ const shopBlockDefinition = {
|
|
|
6779
6698
|
description: "Shows how long each pass lasts, like 'Valid for 30 days'.",
|
|
6780
6699
|
required: false,
|
|
6781
6700
|
defaultValue: true,
|
|
6782
|
-
ui: { intent: "
|
|
6701
|
+
ui: { intent: "behavior" }
|
|
6783
6702
|
},
|
|
6784
6703
|
{
|
|
6785
6704
|
id: "showPricePerCredit",
|
|
@@ -6788,7 +6707,7 @@ const shopBlockDefinition = {
|
|
|
6788
6707
|
description: "Shows what each credit works out at, for passes and packs.",
|
|
6789
6708
|
required: false,
|
|
6790
6709
|
defaultValue: true,
|
|
6791
|
-
ui: { intent: "
|
|
6710
|
+
ui: { intent: "behavior" }
|
|
6792
6711
|
},
|
|
6793
6712
|
createButtonVariantField({
|
|
6794
6713
|
label: "Button style",
|
|
@@ -9335,7 +9254,7 @@ function EventDetailsHydration({ props, presentation, scopedEvents, subject, now
|
|
|
9335
9254
|
entryTitle: props.entryTitle,
|
|
9336
9255
|
actionSize: props.actionSize,
|
|
9337
9256
|
lookSlots: props.lookSlots,
|
|
9338
|
-
|
|
9257
|
+
surfacePresentation: props.surfacePresentation,
|
|
9339
9258
|
panelHeading: props.panelHeading
|
|
9340
9259
|
} : {},
|
|
9341
9260
|
occurrenceContext: props.occurrenceContext ?? null,
|
|
@@ -9398,7 +9317,7 @@ function EventDetailsSSR(props) {
|
|
|
9398
9317
|
//#region ../blocks/src/system/runtime/nodes/location-map.server.tsx
|
|
9399
9318
|
const lookPresentationSchema = z.object({
|
|
9400
9319
|
lookSlots: lookListPresentationSchemaShape.lookSlots,
|
|
9401
|
-
|
|
9320
|
+
surfacePresentation: lookListPresentationSchemaShape.surfacePresentation
|
|
9402
9321
|
});
|
|
9403
9322
|
function LocationMapSSR(props) {
|
|
9404
9323
|
const normalized = normalizeLocationMapProps(props);
|
|
@@ -9419,7 +9338,7 @@ function LocationMapSSR(props) {
|
|
|
9419
9338
|
function lookDetailsSlot(props) {
|
|
9420
9339
|
const presentation = lookPresentationSchema.safeParse({
|
|
9421
9340
|
lookSlots: props.lookSlots ?? void 0,
|
|
9422
|
-
|
|
9341
|
+
surfacePresentation: props.surfacePresentation ?? void 0
|
|
9423
9342
|
});
|
|
9424
9343
|
return presentation.success ? listLookSlot(presentation.data, "panel") : {};
|
|
9425
9344
|
}
|
|
@@ -9486,7 +9405,7 @@ function renderEventListItem(event, source) {
|
|
|
9486
9405
|
if (display.listLayout === "compact") return /* @__PURE__ */ jsx(EventCompactRow, {
|
|
9487
9406
|
event,
|
|
9488
9407
|
lookSlots: display.lookSlots,
|
|
9489
|
-
|
|
9408
|
+
surfacePresentation: display.surfacePresentation,
|
|
9490
9409
|
showCapacity: display.showCapacity,
|
|
9491
9410
|
showVenue: display.showVenue,
|
|
9492
9411
|
buttonVariant: display.buttonVariant,
|
|
@@ -9496,7 +9415,7 @@ function renderEventListItem(event, source) {
|
|
|
9496
9415
|
event,
|
|
9497
9416
|
...listingEventCardProps(display),
|
|
9498
9417
|
lookSlots: display.lookSlots,
|
|
9499
|
-
|
|
9418
|
+
surfacePresentation: display.surfacePresentation
|
|
9500
9419
|
}, event.occurrenceId || event.id);
|
|
9501
9420
|
}
|
|
9502
9421
|
//#endregion
|
|
@@ -9599,7 +9518,7 @@ function buildLoadedOfferingsPreviewListing(input) {
|
|
|
9599
9518
|
}
|
|
9600
9519
|
//#endregion
|
|
9601
9520
|
//#region ../blocks/src/system/runtime/nodes/events/shared/offeringNextDates.ts
|
|
9602
|
-
/**
|
|
9521
|
+
/** A bounded display sample only: capacity and booking admission belong to the booking destination. */
|
|
9603
9522
|
function offeringDatesBySeries(events, now, booking) {
|
|
9604
9523
|
const groups = events.reduce((result, event) => new Map([...result, [event.seriesId, [...result.get(event.seriesId) ?? [], event]]]), /* @__PURE__ */ new Map());
|
|
9605
9524
|
return new Map([...groups].map(([seriesId, occurrences]) => [seriesId, orderedUniqueEventOccurrences(occurrences.filter((event) => event.bookingScope !== "whole_series" && Date.parse(event.startsAt) >= now.getTime())).slice(0, 3).map((event) => offeringDateRow(event, event, booking))]));
|
|
@@ -9734,16 +9653,13 @@ function renderOfferingsCatalogueGroups({ props, groups, shape }) {
|
|
|
9734
9653
|
}
|
|
9735
9654
|
function renderCatalogueItems({ props, items, shape, groupTitle }) {
|
|
9736
9655
|
const events = items.map((item) => item.kind === "event" ? item.event : item.run.representative);
|
|
9737
|
-
|
|
9738
|
-
|
|
9739
|
-
|
|
9740
|
-
|
|
9741
|
-
|
|
9742
|
-
|
|
9743
|
-
|
|
9744
|
-
items: items.map((item) => catalogueCardContent(item, now, dates, shape === "single" ? groupTitle : void 0))
|
|
9745
|
-
});
|
|
9746
|
-
}
|
|
9656
|
+
const dates = catalogueDates(props.quickDateEvents ?? [], props.now, shape, props.pathname);
|
|
9657
|
+
if (props.lookSlots) return CardListItems({
|
|
9658
|
+
Carousel: props.Carousel,
|
|
9659
|
+
Title: shape === "single" ? "h3" : "h4",
|
|
9660
|
+
presentation: props,
|
|
9661
|
+
items: items.map((item) => catalogueCardContent(item, props.now, dates, shape === "single" ? groupTitle : void 0))
|
|
9662
|
+
});
|
|
9747
9663
|
return /* @__PURE__ */ jsx("div", {
|
|
9748
9664
|
className: "rb-grid rb-gap-6",
|
|
9749
9665
|
style: { gridTemplateColumns: "repeat(auto-fill, minmax(min(100%, 18rem), 1fr))" },
|
|
@@ -9753,11 +9669,15 @@ function renderCatalogueItems({ props, items, shape, groupTitle }) {
|
|
|
9753
9669
|
}, event.seriesId))
|
|
9754
9670
|
});
|
|
9755
9671
|
}
|
|
9672
|
+
/** Dates are a display sample; the series card never infers availability from them. */
|
|
9673
|
+
function catalogueDates(events, now, shape, pathname) {
|
|
9674
|
+
return offeringDatesBySeries(events, now, catalogueDateBooking(shape, pathname));
|
|
9675
|
+
}
|
|
9756
9676
|
function catalogueCardContent(item, now, dates, typeLabel) {
|
|
9757
9677
|
const event = item.kind === "event" ? item.event : item.run.representative;
|
|
9758
9678
|
return {
|
|
9759
9679
|
...eventCardListContent(event, {
|
|
9760
|
-
kind: "
|
|
9680
|
+
kind: "catalogue",
|
|
9761
9681
|
now,
|
|
9762
9682
|
nextStartMs: item.nextStartMs,
|
|
9763
9683
|
typeLabel
|
|
@@ -9777,7 +9697,7 @@ function renderCatalogueEmpty({ props, failed }) {
|
|
|
9777
9697
|
});
|
|
9778
9698
|
}
|
|
9779
9699
|
function renderCatalogueMergedList({ props, listing, now, shape }) {
|
|
9780
|
-
const dates =
|
|
9700
|
+
const dates = catalogueDates(props.quickDateEvents ?? [], now, shape, props.pathname);
|
|
9781
9701
|
const items = listing.items.map(({ item, group }) => catalogueCardContent(item, now, dates, group.singularLabel));
|
|
9782
9702
|
return /* @__PURE__ */ jsxs("div", {
|
|
9783
9703
|
...listLookSlot(props, "layout"),
|
|
@@ -10813,13 +10733,19 @@ function renderCombinedSsr(display, prefetchedEvents) {
|
|
|
10813
10733
|
});
|
|
10814
10734
|
}
|
|
10815
10735
|
function renderListSsr(display, hydration) {
|
|
10816
|
-
const
|
|
10817
|
-
|
|
10736
|
+
const { initialToday, timeZone } = hydration.calendarContext;
|
|
10737
|
+
const week = display.listBy === "week" ? buildEventListWeek(initialToday, display.startOfWeek, timeZone) : null;
|
|
10738
|
+
const listing = buildEventCalendarListingDisplay(display, hydration.prefetchedEvents);
|
|
10739
|
+
const listDisplay = week === null ? listing : {
|
|
10740
|
+
...listing,
|
|
10741
|
+
week: eventListWeekDays(week, initialToday, timeZone)
|
|
10742
|
+
};
|
|
10743
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [week !== null ? /* @__PURE__ */ jsx(EventListWeekNavigation, {
|
|
10818
10744
|
...display,
|
|
10819
|
-
title:
|
|
10745
|
+
title: week.title
|
|
10820
10746
|
}) : null, /* @__PURE__ */ jsx(EventListingFrameView, {
|
|
10821
10747
|
display: listDisplay,
|
|
10822
|
-
emptyState:
|
|
10748
|
+
emptyState: week !== null && display.lookSlots !== void 0 ? /* @__PURE__ */ jsx(EventListWeekEmptyState, {
|
|
10823
10749
|
...display,
|
|
10824
10750
|
nextWeek: {}
|
|
10825
10751
|
}) : void 0,
|
|
@@ -11537,4 +11463,4 @@ const serverComponentRegistry = {
|
|
|
11537
11463
|
...buildServerRegistryFromEntries(runtimeBackedBlockServerEntries)
|
|
11538
11464
|
};
|
|
11539
11465
|
//#endregion
|
|
11540
|
-
export {
|
|
11466
|
+
export { defineFragment as $, projectRepeaterGridLayoutForRendering as $t, eventRegistrationBlockDefinition as A, text as At, markEditableSurfaceForwarding as B, testimonialsReadiness as Bt, cartBlockDefinition as C, link as Ct, eventCalendarBlockDefinition as D, richText as Dt, shopBlockDefinition as E, repeat as Et, cardListPhotoNumberFields as F, PUBLIC_DOWNLOAD_MEDIA_TYPES as Ft, normalizeMailingListBlockContent as G, DEFAULT_MEDIA_FIELD_KINDS as Gt, desktopOnlyDisplay as H, loadedReadinessFact as Ht, cardListPresentationBindings as I, augmentManifest as It, createBlockManifest as J, createSiteOptionSelectField as Jt, formBlockDefinition as K, PUBLIC_FILE_FIELD_KINDS as Kt, cardListSectionActionFields as L, chosenString as Lt, FEATURE_CARD_ICON_TREATMENTS as M, when as Mt, cardListSectionAction as N, withApiBindings as Nt, eventListingBlockDefinition as O, section as Ot, cardListKnobFields as P, parseBlockIconValue as Pt, composeFragments as Q, projectRepeaterGridLayout as Qt, normalizeCardListContent as R, galleryReadiness as Rt, checkoutBlockDefinition as S, inline as St, productListBlockDefinition as T, props as Tt, mobileOnlyDisplay as U, pageTemplateFromEntry as Ut, splitPositioningClasses as V, admitReadinessFacts as Vt, teamMemberCardBiographyFallback as W, unavailableReadinessFact as Wt, formCopyFragment as X, parseFieldDefinition as Xt, formEmbedFragment as Y, normalizeSelectSource as Yt, buildFragmentDataLoaders as Z, parseFieldDefinitions as Zt, normalizeLocationMapSource as _, createButtonGroup as _n, el as _t, buildLoadedOfferingsPreviewListing as a, resolveRepeaterGridSpanFieldId as an, sectionContainer as at, sanitizeNewsletterSignupPublicContent as b, linkSchema as bn, headerSection as bt, HeaderSectionFrame as c, columnsField as cn, lookLeadSlotTransform as ct, accordionIconColorStyle as d, layoutField as dn, lookSlot as dt, buildRepeaterGridLayout as en, sectionHeaderFields as et, resolveAccordionIconStyle as f, cardStylesField as fn, accordionList as ft, normalizeLocationMapProps as g, getAnchorClasses as gn, carousel as gt, LOCATION_MAP_LIMITS as h, BACKGROUND_POSITION_PRESET_VALUES as hn, button as ht, WeeklySlotAvailabilityView as i, resolveRepeaterGridRowFieldId as in, styledContainer as it, FEATURE_CARD_GENERATED_ICON_SIZE_PX as j, videoEmbed as jt, mapDrawingStyleBinding as k, stack as kt, accordionItemPartSlots as l, emptyStateField as ln, lookQuoteLimitTransform as lt, LOCATION_MAP_DEFAULTS as m, sectionStylesField as mn, bookingForm as mt, runtimeBackedBlockModes as n, resolveRepeaterGridColumnFieldId as nn, resolveBackgroundColorValue as nt, LocationMapSSR as o, bindingSchema as on, backgroundFrame as ot, SectionNode as p, containerStylesField as pn, bind as pt, formDataSchema as q, createSdkSelectField as qt, runtimeBackedBlockServerEntries as r, resolveRepeaterGridColumnsForBreakpoint as rn, styledSection as rt, buildAppointmentServicesView as s, cardStylingFields as sn, lookCarouselRegionTransform as st, serverComponentRegistry as t, parseRepeaterGridInteger as tn, sectionHeaderLayoutNodes as tt, accordionLookAttributes as u, eventDisplayFields as un, lookSkinSlotTransform as ut, resolveLocationMapLocation as v, createButtonVariantField as vn, fileDownload as vt, productDetailBlockDefinition as w, media as wt, giftingBlockDefinition as x, icon as xt, newsletterSignupBlockDefinition as y, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as yn, form as yt, composeHeaderSectionWrapperClassName as z, teamReadiness as zt };
|