@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,13 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Jt as CardListContentPart, Qt as MediaNodeServer, _t as formatBookingSchedulePresentation, an as formatEventPrice, on as formatEventPriceAmount, sn as formatEventPriceDisplay } from "./shop.interactive-BM0NRsFQ.mjs";
|
|
3
|
+
import { $r as formatBookingPriceDisplay, Br as CANCELLED_SESSION_STATUS, Er as resolveEventRegistrationScopedEvents, Hr as orderedLiveRunSessions, Nr as listLookSlot, Tn as formatTotalCapacity, Ur as resolveWholeSeriesBookingPhase, ai as publicEventPricingType, fn as formatEventCompactDateRail, ni as publicEventPricingCurrency, pn as formatEventDateParts, qt as ImagePresets, ri as publicEventPricingDisplay, sn as eventDateOptions, ti as isPublicEventPricingOptionDisplayable } from "./wizardSteps-DNpajrAH.mjs";
|
|
4
|
+
import { At as resolveBookingBusinessTimeZone, Dt as getLocalScheduleDate, Et as getBookingLocalDateKey, Mt as toBookingTimeZone, Pt as toUtcIsoDateTimeString, Rt as formatCurrencyAmount, dt as formatDate, ft as formatDateRange, mt as formatDateTimeRange, wt as compareLocalScheduleDates, xt as toScheduledBookingDateTime } from "./noop-D-RG9eR3.mjs";
|
|
5
|
+
import { v as assertNever } from "./src-DjnxOjXG.mjs";
|
|
4
6
|
import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as LocationMapActions } from "./LocationMapActions-BsepG5Vv.mjs";
|
|
9
|
-
import { n as resolveEventLinkProps, t as resolveEventCta } from "./cta-ChiN1Vgg.mjs";
|
|
10
|
-
import { n as MapDrawingSvg } from "./MapDrawingSvg-R4JMT4yd.mjs";
|
|
7
|
+
import { t as LocationMapActions } from "./LocationMapActions-D5-H9ooQ.mjs";
|
|
8
|
+
import { r as resolveEventLinkProps, t as resolveEventCardBooking } from "./cta-CDeAwYoN.mjs";
|
|
9
|
+
import { n as MapDrawingSvg } from "./MapDrawingSvg-C30geMl-.mjs";
|
|
11
10
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
12
11
|
import "react";
|
|
13
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -74,198 +73,6 @@ function DateTimeTile(props) {
|
|
|
74
73
|
});
|
|
75
74
|
}
|
|
76
75
|
//#endregion
|
|
77
|
-
//#region ../blocks/src/system/runtime/nodes/events/shared/eventProductEligibility.ts
|
|
78
|
-
function isCategoryEligible(eligibleCategoryIds, eventCategoryId) {
|
|
79
|
-
const categories = eligibleCategoryIds ?? [];
|
|
80
|
-
if (categories.length === 0) return true;
|
|
81
|
-
if (!eventCategoryId) return false;
|
|
82
|
-
return categories.includes(eventCategoryId);
|
|
83
|
-
}
|
|
84
|
-
function passCoversEvent(args, event) {
|
|
85
|
-
if (!event.acceptsPasses) return false;
|
|
86
|
-
return isCategoryEligible(args.eligibleCategoryIds, event.eventCategoryId);
|
|
87
|
-
}
|
|
88
|
-
function membershipCoversEvent(args, event) {
|
|
89
|
-
if (!event.acceptsMemberships) return false;
|
|
90
|
-
return isCategoryEligible(args.eligibleCategoryIds, event.eventCategoryId);
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Filter site passes to only those that cover the selected event.
|
|
94
|
-
*
|
|
95
|
-
* Public purchasable products are a pre-auth proxy for whether the pass path is
|
|
96
|
-
* worth advertising; owned pass eligibility is checked later after portal auth.
|
|
97
|
-
*/
|
|
98
|
-
function filterPassesForEvent(sitePasses, event) {
|
|
99
|
-
if (!sitePasses || !event) return [];
|
|
100
|
-
if (event.requiresRegistration === false) return [];
|
|
101
|
-
const eventCategoryId = event.eventCategory?.id ?? null;
|
|
102
|
-
return sitePasses.filter((pass) => pass.productUseCase === "event_pass" && passCoversEvent({ eligibleCategoryIds: pass.eligibleCategoryIds }, {
|
|
103
|
-
acceptsPasses: event.acceptsPasses,
|
|
104
|
-
eventCategoryId
|
|
105
|
-
}));
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Filter site memberships to only those that cover the selected event.
|
|
109
|
-
*
|
|
110
|
-
* Public purchasable products are a pre-auth proxy for whether the membership
|
|
111
|
-
* path is worth advertising; owned membership eligibility is checked later
|
|
112
|
-
* after portal auth.
|
|
113
|
-
*/
|
|
114
|
-
function filterMembershipsForEvent(siteMemberships, event) {
|
|
115
|
-
if (!siteMemberships || !event) return [];
|
|
116
|
-
if (event.requiresRegistration === false) return [];
|
|
117
|
-
const eventCategoryId = event.eventCategory?.id ?? null;
|
|
118
|
-
return siteMemberships.filter((membership) => membershipCoversEvent({ eligibleCategoryIds: membership.eligibleCategoryIds }, {
|
|
119
|
-
acceptsMemberships: event.acceptsMemberships,
|
|
120
|
-
eventCategoryId
|
|
121
|
-
}));
|
|
122
|
-
}
|
|
123
|
-
//#endregion
|
|
124
|
-
//#region ../blocks/src/system/runtime/nodes/event-details/logic.ts
|
|
125
|
-
function emptySelection(timeZone) {
|
|
126
|
-
return {
|
|
127
|
-
kind: "empty",
|
|
128
|
-
mode: "next",
|
|
129
|
-
selected: null,
|
|
130
|
-
otherDates: [],
|
|
131
|
-
timeZone
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
function parseLimit(value, fallback) {
|
|
135
|
-
if (value === "all") return Number.MAX_SAFE_INTEGER;
|
|
136
|
-
const n = typeof value === "string" ? parseInt(value, 10) : typeof value === "number" ? value : NaN;
|
|
137
|
-
return Number.isFinite(n) && n > 0 ? n : fallback;
|
|
138
|
-
}
|
|
139
|
-
function uniqByOccurrenceId(events) {
|
|
140
|
-
const seen = /* @__PURE__ */ new Set();
|
|
141
|
-
const out = [];
|
|
142
|
-
for (const e of events) {
|
|
143
|
-
const key = e.occurrenceId || e.id;
|
|
144
|
-
if (!key || seen.has(key)) continue;
|
|
145
|
-
seen.add(key);
|
|
146
|
-
out.push(e);
|
|
147
|
-
}
|
|
148
|
-
return out;
|
|
149
|
-
}
|
|
150
|
-
function isWholeSeriesEvent(event) {
|
|
151
|
-
return event.bookingScope === "whole_series";
|
|
152
|
-
}
|
|
153
|
-
function isOrdinaryEvent(event) {
|
|
154
|
-
return event.bookingScope === "single_occurrence";
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Where the run has got to, as the page should say it.
|
|
158
|
-
*
|
|
159
|
-
* `run.lifecycle` is the canonical answer and it is projected server-side. The
|
|
160
|
-
* one thing a cached page can outlive is the start of the first session, and
|
|
161
|
-
* the shared booking phase is what notices that, so an otherwise-upcoming run
|
|
162
|
-
* that has begun is reported as under way. Nothing else is re-derived: reading
|
|
163
|
-
* the state off the occurrence dates instead is how this block came to
|
|
164
|
-
* contradict the run it was describing.
|
|
165
|
-
*/
|
|
166
|
-
function renderedRunLifecycle(run, bookingPhase) {
|
|
167
|
-
return run.lifecycle === "upcoming" && bookingPhase.kind === "closed" && bookingPhase.reason === "in-progress" ? "in_progress" : run.lifecycle;
|
|
168
|
-
}
|
|
169
|
-
function selectRelatedDates(input) {
|
|
170
|
-
if (!input.seriesId) return [];
|
|
171
|
-
const isWholeSeries = input.selected?.bookingScope === "whole_series";
|
|
172
|
-
const selectedOccurrenceId = input.selected ? input.selected.occurrenceId || input.selected.id : null;
|
|
173
|
-
const dates = input.events.filter((event) => event.seriesId === input.seriesId).filter((event) => isWholeSeries || isFutureOrNow(event.startsAt, input.nowIso)).filter((event) => !selectedOccurrenceId || (event.occurrenceId || event.id) !== selectedOccurrenceId).sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt));
|
|
174
|
-
return isWholeSeries ? dates : dates.slice(0, input.limit);
|
|
175
|
-
}
|
|
176
|
-
function selectEventDetails(args) {
|
|
177
|
-
const all = uniqByOccurrenceId(resolveEventRegistrationScopedEvents((args.events ?? []).filter(Boolean), {
|
|
178
|
-
occurrenceContext: args.occurrenceContext,
|
|
179
|
-
subject: args.subject
|
|
180
|
-
}));
|
|
181
|
-
const occurrenceContext = args.occurrenceContext ?? null;
|
|
182
|
-
const otherLimit = parseLimit(args.otherDatesLimit, 5);
|
|
183
|
-
const candidate = selectEventDetailsCandidate(all, occurrenceContext, args.nowIso);
|
|
184
|
-
const timeZone = toBookingTimeZone(candidate?.event.timeZone ?? all[0]?.timeZone ?? null);
|
|
185
|
-
if (!candidate) return emptySelection(timeZone);
|
|
186
|
-
const { event: selected, mode } = candidate;
|
|
187
|
-
const otherDates = selectRelatedDates({
|
|
188
|
-
events: all,
|
|
189
|
-
seriesId: occurrenceContext?.seriesId ?? selected?.seriesId ?? all[0]?.seriesId ?? null,
|
|
190
|
-
selected,
|
|
191
|
-
nowIso: args.nowIso,
|
|
192
|
-
limit: otherLimit
|
|
193
|
-
});
|
|
194
|
-
if (isWholeSeriesEvent(selected)) {
|
|
195
|
-
const run = selected.run;
|
|
196
|
-
const bookingPhase = resolveWholeSeriesBookingPhase(run, new Date(args.nowIso));
|
|
197
|
-
return {
|
|
198
|
-
kind: "wholeSeries",
|
|
199
|
-
lifecycle: renderedRunLifecycle(run, bookingPhase),
|
|
200
|
-
bookingPhase,
|
|
201
|
-
mode,
|
|
202
|
-
selected,
|
|
203
|
-
run,
|
|
204
|
-
sessions: run.sessions,
|
|
205
|
-
timeZone
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
if (!isOrdinaryEvent(selected)) return emptySelection(timeZone);
|
|
209
|
-
return {
|
|
210
|
-
kind: "ordinary",
|
|
211
|
-
mode: mode === "selected" ? "selected" : "next",
|
|
212
|
-
selected,
|
|
213
|
-
otherDates: otherDates.filter(isOrdinaryEvent),
|
|
214
|
-
timeZone
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
//#endregion
|
|
218
|
-
//#region ../blocks/src/system/runtime/nodes/event-details/presentation.ts
|
|
219
|
-
function resolveSelection(input) {
|
|
220
|
-
return selectEventDetails({
|
|
221
|
-
events: input.events ?? null,
|
|
222
|
-
occurrenceContext: input.occurrenceContext ?? null,
|
|
223
|
-
subject: input.subject,
|
|
224
|
-
nowIso: input.nowIso,
|
|
225
|
-
otherDatesLimit: input.otherDatesLimit
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
function resolveDisplaySettings(input) {
|
|
229
|
-
return {
|
|
230
|
-
showVenue: input.showVenue ?? true,
|
|
231
|
-
showMap: input.showMap ?? true,
|
|
232
|
-
showOtherDates: input.showOtherDates ?? true,
|
|
233
|
-
showCost: input.showCost ?? true,
|
|
234
|
-
showTitle: input.showTitle ?? false,
|
|
235
|
-
showDescription: input.showDescription ?? false,
|
|
236
|
-
showCapacity: input.showCapacity ?? false,
|
|
237
|
-
showAcceptedPasses: input.showAcceptedPasses ?? true,
|
|
238
|
-
showAcceptedMemberships: input.showAcceptedMemberships ?? true
|
|
239
|
-
};
|
|
240
|
-
}
|
|
241
|
-
function resolveEligibility(input, selected) {
|
|
242
|
-
return {
|
|
243
|
-
applicablePasses: filterPassesForEvent(input.sitePasses?.passes ?? null, selected),
|
|
244
|
-
applicableMemberships: filterMembershipsForEvent(input.siteMemberships?.memberships ?? null, selected)
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
/** The response's one drawing belongs to the selected event only when it is for that event's venue. */
|
|
248
|
-
function resolveSelectedVenueDrawing(venueDrawing, selected) {
|
|
249
|
-
return venueDrawing && selected?.venue?.id === venueDrawing.venueId ? venueDrawing.drawing : null;
|
|
250
|
-
}
|
|
251
|
-
function resolveEventDetailsPresentation(input) {
|
|
252
|
-
const selection = resolveSelection(input);
|
|
253
|
-
const selected = selection.kind === "empty" ? null : selection.selected;
|
|
254
|
-
return {
|
|
255
|
-
selection,
|
|
256
|
-
arrangement: input.arrangement,
|
|
257
|
-
entryTitle: input.entryTitle,
|
|
258
|
-
actionSize: input.actionSize,
|
|
259
|
-
lookSlots: input.lookSlots,
|
|
260
|
-
itemSurfaces: input.itemSurfaces,
|
|
261
|
-
panelHeading: input.panelHeading,
|
|
262
|
-
...resolveDisplaySettings(input),
|
|
263
|
-
...resolveEligibility(input, selected),
|
|
264
|
-
autoApplyDiscount: input.autoApplyDiscount ?? null,
|
|
265
|
-
selectedVenueDrawing: resolveSelectedVenueDrawing(input.venueDrawing, selected)
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
//#endregion
|
|
269
76
|
//#region ../blocks/src/system/blocks/offerings-preview/scheduleSummary.ts
|
|
270
77
|
function deriveEventScheduleSummary(event) {
|
|
271
78
|
const occurrence = occurrenceFromEvent(event);
|
|
@@ -311,7 +118,7 @@ function isValidOccurrence(value) {
|
|
|
311
118
|
//#region ../blocks/src/system/runtime/nodes/events/shared/eventCardListContent.ts
|
|
312
119
|
/** Live offering data only; editorial cards never acquire booking fields. */
|
|
313
120
|
function eventCardListContent(event, context, buttonText) {
|
|
314
|
-
const { content, external } = cardProjectionBase(event, buttonText, context.kind
|
|
121
|
+
const { content, external } = cardProjectionBase(event, buttonText, context.kind);
|
|
315
122
|
switch (context.kind) {
|
|
316
123
|
case "event-details": return {
|
|
317
124
|
...content,
|
|
@@ -320,6 +127,7 @@ function eventCardListContent(event, context, buttonText) {
|
|
|
320
127
|
newTabHint: false,
|
|
321
128
|
...offeringSchedule(event)
|
|
322
129
|
};
|
|
130
|
+
case "catalogue":
|
|
323
131
|
case "offering": return {
|
|
324
132
|
...content,
|
|
325
133
|
chips: offeringTypeChips(event, context.typeLabel),
|
|
@@ -330,9 +138,9 @@ function eventCardListContent(event, context, buttonText) {
|
|
|
330
138
|
default: return assertNever(context);
|
|
331
139
|
}
|
|
332
140
|
}
|
|
333
|
-
function cardProjectionBase(event, buttonText,
|
|
334
|
-
const
|
|
335
|
-
const places =
|
|
141
|
+
function cardProjectionBase(event, buttonText, context) {
|
|
142
|
+
const offering = context !== "event-details";
|
|
143
|
+
const { cta, availability: places } = resolveEventCardBooking(event, context === "catalogue" ? "series" : "occurrence", offering && event.destination.kind === "external" ? void 0 : buttonText);
|
|
336
144
|
return {
|
|
337
145
|
external: cta.external,
|
|
338
146
|
content: {
|
|
@@ -416,14 +224,6 @@ function scheduleLine(summary, event, now) {
|
|
|
416
224
|
case "scheduled-run": return `${dates(summary.first.startsAt, summary.last.startsAt, "session")} · ${summary.authoredSummary?.text ?? `${summary.sessionCount} dates`}`;
|
|
417
225
|
}
|
|
418
226
|
}
|
|
419
|
-
function offeringAvailability(event) {
|
|
420
|
-
const label = formatEventRemainingPlaces(event, { full: "Sold out" });
|
|
421
|
-
const availability = getEventAvailabilityStatus(event);
|
|
422
|
-
return label ? {
|
|
423
|
-
label,
|
|
424
|
-
status: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available"
|
|
425
|
-
} : null;
|
|
426
|
-
}
|
|
427
227
|
function offeringFacts(event, places, offering) {
|
|
428
228
|
return [
|
|
429
229
|
...Math.round((Date.parse(event.endsAt) - Date.parse(event.startsAt)) / 6e4) > 0 && (!offering || event.bookingScope === "whole_series") ? [{
|
|
@@ -441,9 +241,6 @@ function offeringFacts(event, places, offering) {
|
|
|
441
241
|
}]
|
|
442
242
|
];
|
|
443
243
|
}
|
|
444
|
-
function offeringCardCta(event, buttonText, offering) {
|
|
445
|
-
return resolveEventCta(event, offering && event.destination.kind === "external" ? void 0 : buttonText);
|
|
446
|
-
}
|
|
447
244
|
function offeringTypeChips(event, typeLabel) {
|
|
448
245
|
return event.eventCategory ? [event.eventCategory.name] : typeLabel ? [typeLabel] : [];
|
|
449
246
|
}
|
|
@@ -457,10 +254,10 @@ function cardAction(cta) {
|
|
|
457
254
|
//#endregion
|
|
458
255
|
//#region ../blocks/src/system/runtime/nodes/event-details/headerContent.ts
|
|
459
256
|
/** Project selected live data; booking decisions stay with the existing event owners. */
|
|
460
|
-
function eventHeaderContent(selection,
|
|
257
|
+
function eventHeaderContent(selection, show) {
|
|
461
258
|
const event = selection.selected;
|
|
462
259
|
const item = eventCardListContent(event, { kind: "event-details" });
|
|
463
|
-
const groupSize = formatTotalCapacity(event.capacity);
|
|
260
|
+
const groupSize = show.capacity ? formatTotalCapacity(event.capacity) : null;
|
|
464
261
|
const { date, timeRange } = formatEventDateParts({
|
|
465
262
|
startsAt: event.startsAt,
|
|
466
263
|
endsAt: event.endsAt,
|
|
@@ -478,7 +275,7 @@ function eventHeaderContent(selection, showCost) {
|
|
|
478
275
|
label: "Time",
|
|
479
276
|
value: timeRange
|
|
480
277
|
},
|
|
481
|
-
...
|
|
278
|
+
...show.cost ? (item.facts ?? []).filter(({ label }) => label === "Price") : [],
|
|
482
279
|
...groupSize === null ? [] : [{
|
|
483
280
|
label: "Group size",
|
|
484
281
|
value: groupSize
|
|
@@ -499,8 +296,11 @@ function headerAction(selection, action) {
|
|
|
499
296
|
}
|
|
500
297
|
//#endregion
|
|
501
298
|
//#region ../blocks/src/system/runtime/nodes/event-details/EventHeader.tsx
|
|
502
|
-
function EventHeader({ selection, presentation, showCost }) {
|
|
503
|
-
const item = eventHeaderContent(selection,
|
|
299
|
+
function EventHeader({ selection, presentation, showCost, showCapacity }) {
|
|
300
|
+
const item = eventHeaderContent(selection, {
|
|
301
|
+
cost: showCost,
|
|
302
|
+
capacity: showCapacity
|
|
303
|
+
});
|
|
504
304
|
const part = (name) => /* @__PURE__ */ jsx(CardListContentPart, {
|
|
505
305
|
part: name,
|
|
506
306
|
item,
|
|
@@ -508,28 +308,281 @@ function EventHeader({ selection, presentation, showCost }) {
|
|
|
508
308
|
});
|
|
509
309
|
return /* @__PURE__ */ jsxs("header", {
|
|
510
310
|
...listLookSlot(presentation, "frame"),
|
|
511
|
-
children: [
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
311
|
+
children: [
|
|
312
|
+
item.media ? /* @__PURE__ */ jsx("figure", {
|
|
313
|
+
...listLookSlot(presentation, "item-media"),
|
|
314
|
+
children: /* @__PURE__ */ jsx(MediaNodeServer, {
|
|
315
|
+
value: item.media,
|
|
316
|
+
size: ImagePresets.full,
|
|
317
|
+
loading: "eager",
|
|
318
|
+
fetchPriority: "high",
|
|
319
|
+
...listLookSlot(presentation, "photo")
|
|
320
|
+
})
|
|
321
|
+
}) : null,
|
|
322
|
+
/* @__PURE__ */ jsxs("div", {
|
|
323
|
+
...listLookSlot(presentation, "copy"),
|
|
324
|
+
children: [
|
|
325
|
+
part("chips"),
|
|
326
|
+
/* @__PURE__ */ jsx("h1", {
|
|
327
|
+
...listLookSlot(presentation, "headline"),
|
|
328
|
+
children: item.title
|
|
329
|
+
}),
|
|
330
|
+
item.text ? /* @__PURE__ */ jsx("p", {
|
|
331
|
+
...listLookSlot(presentation, "lede"),
|
|
332
|
+
children: item.text
|
|
333
|
+
}) : null,
|
|
334
|
+
/* @__PURE__ */ jsx("div", {
|
|
335
|
+
"aria-label": "At a glance",
|
|
336
|
+
children: part("facts")
|
|
337
|
+
}),
|
|
338
|
+
part("availability"),
|
|
339
|
+
part("action")
|
|
340
|
+
]
|
|
341
|
+
}),
|
|
342
|
+
part("numeral")
|
|
343
|
+
]
|
|
531
344
|
});
|
|
532
345
|
}
|
|
346
|
+
const eventHeaderSlotParents = {
|
|
347
|
+
frame: null,
|
|
348
|
+
copy: "frame",
|
|
349
|
+
availability: "copy",
|
|
350
|
+
"item-media": "frame"
|
|
351
|
+
};
|
|
352
|
+
//#endregion
|
|
353
|
+
//#region ../blocks/src/system/runtime/nodes/events/shared/eventProductEligibility.ts
|
|
354
|
+
function isCategoryEligible(eligibleCategoryIds, eventCategoryId) {
|
|
355
|
+
const categories = eligibleCategoryIds ?? [];
|
|
356
|
+
if (categories.length === 0) return true;
|
|
357
|
+
if (!eventCategoryId) return false;
|
|
358
|
+
return categories.includes(eventCategoryId);
|
|
359
|
+
}
|
|
360
|
+
function passCoversEvent(args, event) {
|
|
361
|
+
if (!event.acceptsPasses) return false;
|
|
362
|
+
return isCategoryEligible(args.eligibleCategoryIds, event.eventCategoryId);
|
|
363
|
+
}
|
|
364
|
+
function membershipCoversEvent(args, event) {
|
|
365
|
+
if (!event.acceptsMemberships) return false;
|
|
366
|
+
return isCategoryEligible(args.eligibleCategoryIds, event.eventCategoryId);
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* Filter site passes to only those that cover the selected event.
|
|
370
|
+
*
|
|
371
|
+
* Public purchasable products are a pre-auth proxy for whether the pass path is
|
|
372
|
+
* worth advertising; owned pass eligibility is checked later after portal auth.
|
|
373
|
+
*/
|
|
374
|
+
function filterPassesForEvent(sitePasses, event) {
|
|
375
|
+
if (!sitePasses || !event) return [];
|
|
376
|
+
if (event.requiresRegistration === false) return [];
|
|
377
|
+
const eventCategoryId = event.eventCategory?.id ?? null;
|
|
378
|
+
return sitePasses.filter((pass) => pass.productUseCase === "event_pass" && passCoversEvent({ eligibleCategoryIds: pass.eligibleCategoryIds }, {
|
|
379
|
+
acceptsPasses: event.acceptsPasses,
|
|
380
|
+
eventCategoryId
|
|
381
|
+
}));
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Filter site memberships to only those that cover the selected event.
|
|
385
|
+
*
|
|
386
|
+
* Public purchasable products are a pre-auth proxy for whether the membership
|
|
387
|
+
* path is worth advertising; owned membership eligibility is checked later
|
|
388
|
+
* after portal auth.
|
|
389
|
+
*/
|
|
390
|
+
function filterMembershipsForEvent(siteMemberships, event) {
|
|
391
|
+
if (!siteMemberships || !event) return [];
|
|
392
|
+
if (event.requiresRegistration === false) return [];
|
|
393
|
+
const eventCategoryId = event.eventCategory?.id ?? null;
|
|
394
|
+
return siteMemberships.filter((membership) => membershipCoversEvent({ eligibleCategoryIds: membership.eligibleCategoryIds }, {
|
|
395
|
+
acceptsMemberships: event.acceptsMemberships,
|
|
396
|
+
eventCategoryId
|
|
397
|
+
}));
|
|
398
|
+
}
|
|
399
|
+
//#endregion
|
|
400
|
+
//#region ../blocks/src/system/runtime/nodes/event-details/logic.ts
|
|
401
|
+
function emptySelection(timeZone) {
|
|
402
|
+
return {
|
|
403
|
+
kind: "empty",
|
|
404
|
+
mode: "next",
|
|
405
|
+
selected: null,
|
|
406
|
+
otherDates: [],
|
|
407
|
+
timeZone
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
function parseLimit(value, fallback) {
|
|
411
|
+
if (value === "all") return Number.MAX_SAFE_INTEGER;
|
|
412
|
+
const n = typeof value === "string" ? parseInt(value, 10) : typeof value === "number" ? value : NaN;
|
|
413
|
+
return Number.isFinite(n) && n > 0 ? n : fallback;
|
|
414
|
+
}
|
|
415
|
+
function uniqByOccurrenceId(events) {
|
|
416
|
+
const seen = /* @__PURE__ */ new Set();
|
|
417
|
+
const out = [];
|
|
418
|
+
for (const e of events) {
|
|
419
|
+
const key = e.occurrenceId || e.id;
|
|
420
|
+
if (!key || seen.has(key)) continue;
|
|
421
|
+
seen.add(key);
|
|
422
|
+
out.push(e);
|
|
423
|
+
}
|
|
424
|
+
return out;
|
|
425
|
+
}
|
|
426
|
+
function isWholeSeriesEvent(event) {
|
|
427
|
+
return event.bookingScope === "whole_series";
|
|
428
|
+
}
|
|
429
|
+
function isOrdinaryEvent(event) {
|
|
430
|
+
return event.bookingScope === "single_occurrence";
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* Where the run has got to, as the page should say it.
|
|
434
|
+
*
|
|
435
|
+
* `run.lifecycle` is the canonical answer and it is projected server-side. The
|
|
436
|
+
* one thing a cached page can outlive is the start of the first session, and
|
|
437
|
+
* the shared booking phase is what notices that, so an otherwise-upcoming run
|
|
438
|
+
* that has begun is reported as under way. Nothing else is re-derived: reading
|
|
439
|
+
* the state off the occurrence dates instead is how this block came to
|
|
440
|
+
* contradict the run it was describing.
|
|
441
|
+
*/
|
|
442
|
+
function renderedRunLifecycle(run, bookingPhase) {
|
|
443
|
+
return run.lifecycle === "upcoming" && bookingPhase.kind === "closed" && bookingPhase.reason === "in-progress" ? "in_progress" : run.lifecycle;
|
|
444
|
+
}
|
|
445
|
+
function selectRelatedDates(input) {
|
|
446
|
+
if (!input.seriesId) return [];
|
|
447
|
+
const isWholeSeries = input.selected?.bookingScope === "whole_series";
|
|
448
|
+
const selectedOccurrenceId = input.selected ? input.selected.occurrenceId || input.selected.id : null;
|
|
449
|
+
const dates = input.events.filter((event) => event.seriesId === input.seriesId).filter((event) => isWholeSeries || isFutureOrNow(event.startsAt, input.nowIso)).filter((event) => !selectedOccurrenceId || (event.occurrenceId || event.id) !== selectedOccurrenceId).sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt));
|
|
450
|
+
return isWholeSeries ? dates : dates.slice(0, input.limit);
|
|
451
|
+
}
|
|
452
|
+
function selectEventDetails(args) {
|
|
453
|
+
const all = uniqByOccurrenceId(resolveEventRegistrationScopedEvents((args.events ?? []).filter(Boolean), {
|
|
454
|
+
occurrenceContext: args.occurrenceContext,
|
|
455
|
+
subject: args.subject
|
|
456
|
+
}));
|
|
457
|
+
const occurrenceContext = args.occurrenceContext ?? null;
|
|
458
|
+
const otherLimit = parseLimit(args.otherDatesLimit, 5);
|
|
459
|
+
const candidate = selectEventDetailsCandidate(all, occurrenceContext, args.nowIso);
|
|
460
|
+
const timeZone = toBookingTimeZone(candidate?.event.timeZone ?? all[0]?.timeZone ?? null);
|
|
461
|
+
if (!candidate) return emptySelection(timeZone);
|
|
462
|
+
const { event: selected, mode } = candidate;
|
|
463
|
+
const otherDates = selectRelatedDates({
|
|
464
|
+
events: all,
|
|
465
|
+
seriesId: occurrenceContext?.seriesId ?? selected?.seriesId ?? all[0]?.seriesId ?? null,
|
|
466
|
+
selected,
|
|
467
|
+
nowIso: args.nowIso,
|
|
468
|
+
limit: otherLimit
|
|
469
|
+
});
|
|
470
|
+
if (isWholeSeriesEvent(selected)) {
|
|
471
|
+
const run = selected.run;
|
|
472
|
+
const bookingPhase = resolveWholeSeriesBookingPhase(run, new Date(args.nowIso));
|
|
473
|
+
return {
|
|
474
|
+
kind: "wholeSeries",
|
|
475
|
+
lifecycle: renderedRunLifecycle(run, bookingPhase),
|
|
476
|
+
bookingPhase,
|
|
477
|
+
mode,
|
|
478
|
+
selected,
|
|
479
|
+
run,
|
|
480
|
+
sessions: run.sessions,
|
|
481
|
+
timeZone
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
if (!isOrdinaryEvent(selected)) return emptySelection(timeZone);
|
|
485
|
+
return {
|
|
486
|
+
kind: "ordinary",
|
|
487
|
+
mode: mode === "selected" ? "selected" : "next",
|
|
488
|
+
selected,
|
|
489
|
+
otherDates: otherDates.filter(isOrdinaryEvent),
|
|
490
|
+
timeZone
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
//#endregion
|
|
494
|
+
//#region ../blocks/src/system/runtime/nodes/event-details/presentation.ts
|
|
495
|
+
function resolveSelection(input) {
|
|
496
|
+
return selectEventDetails({
|
|
497
|
+
events: input.events ?? null,
|
|
498
|
+
occurrenceContext: input.occurrenceContext ?? null,
|
|
499
|
+
subject: input.subject,
|
|
500
|
+
nowIso: input.nowIso,
|
|
501
|
+
otherDatesLimit: input.otherDatesLimit
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
function resolveDisplaySettings(input) {
|
|
505
|
+
return {
|
|
506
|
+
showVenue: input.showVenue ?? true,
|
|
507
|
+
showMap: input.showMap ?? true,
|
|
508
|
+
showOtherDates: input.showOtherDates ?? true,
|
|
509
|
+
showCost: input.showCost ?? true,
|
|
510
|
+
showTitle: input.showTitle ?? false,
|
|
511
|
+
showDescription: input.showDescription ?? false,
|
|
512
|
+
showCapacity: input.showCapacity ?? false,
|
|
513
|
+
showAcceptedPasses: input.showAcceptedPasses ?? true,
|
|
514
|
+
showAcceptedMemberships: input.showAcceptedMemberships ?? true
|
|
515
|
+
};
|
|
516
|
+
}
|
|
517
|
+
function resolveEligibility(input, selected) {
|
|
518
|
+
return {
|
|
519
|
+
applicablePasses: filterPassesForEvent(input.sitePasses?.passes ?? null, selected),
|
|
520
|
+
applicableMemberships: filterMembershipsForEvent(input.siteMemberships?.memberships ?? null, selected)
|
|
521
|
+
};
|
|
522
|
+
}
|
|
523
|
+
/** The response's one drawing belongs to the selected event only when it is for that event's venue. */
|
|
524
|
+
function resolveSelectedVenueDrawing(venueDrawing, selected) {
|
|
525
|
+
return venueDrawing && selected?.venue?.id === venueDrawing.venueId ? venueDrawing.drawing : null;
|
|
526
|
+
}
|
|
527
|
+
function resolveEventDetailsPresentation(input) {
|
|
528
|
+
const selection = resolveSelection(input);
|
|
529
|
+
const selected = selection.kind === "empty" ? null : selection.selected;
|
|
530
|
+
return {
|
|
531
|
+
selection,
|
|
532
|
+
arrangement: input.arrangement,
|
|
533
|
+
entryTitle: input.entryTitle,
|
|
534
|
+
actionSize: input.actionSize,
|
|
535
|
+
lookSlots: input.lookSlots,
|
|
536
|
+
surfacePresentation: input.surfacePresentation,
|
|
537
|
+
panelHeading: input.panelHeading,
|
|
538
|
+
...resolveDisplaySettings(input),
|
|
539
|
+
...resolveEligibility(input, selected),
|
|
540
|
+
autoApplyDiscount: input.autoApplyDiscount ?? null,
|
|
541
|
+
selectedVenueDrawing: resolveSelectedVenueDrawing(input.venueDrawing, selected)
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
//#endregion
|
|
545
|
+
//#region ../blocks/src/system/customize/lookParts.ts
|
|
546
|
+
const lookParts = {
|
|
547
|
+
"block.cta-full": [{
|
|
548
|
+
part: "figure",
|
|
549
|
+
fields: ["figure", "figureNote"],
|
|
550
|
+
shownIn: ["figure"]
|
|
551
|
+
}],
|
|
552
|
+
"block.location-map": [{
|
|
553
|
+
part: "entrance photo",
|
|
554
|
+
fields: ["entrancePhoto"],
|
|
555
|
+
shownIn: ["photo-and-details"]
|
|
556
|
+
}],
|
|
557
|
+
"block.feature-cards": [{
|
|
558
|
+
part: "eyebrow",
|
|
559
|
+
fields: ["eyebrow"],
|
|
560
|
+
shownIn: [
|
|
561
|
+
"lead-support",
|
|
562
|
+
"index",
|
|
563
|
+
"sequence",
|
|
564
|
+
"slides",
|
|
565
|
+
"track"
|
|
566
|
+
]
|
|
567
|
+
}],
|
|
568
|
+
"block.event-details": [{
|
|
569
|
+
part: "title",
|
|
570
|
+
fields: ["showTitle"],
|
|
571
|
+
shownIn: ["details-panel"]
|
|
572
|
+
}, {
|
|
573
|
+
part: "description",
|
|
574
|
+
fields: ["showDescription"],
|
|
575
|
+
shownIn: ["details-panel"]
|
|
576
|
+
}]
|
|
577
|
+
};
|
|
578
|
+
/** Fields the arrangement leaves out. Nothing on an older style, where no arrangement Look shows the block. */
|
|
579
|
+
function fieldsNotShownIn(blockKind, arrangement) {
|
|
580
|
+
if (arrangement === null) return [];
|
|
581
|
+
return (lookParts[blockKind] ?? []).flatMap((part) => part.shownIn.includes(arrangement) ? [] : part.fields);
|
|
582
|
+
}
|
|
583
|
+
function lookPartShown(blockKind, field, arrangement) {
|
|
584
|
+
return !fieldsNotShownIn(blockKind, arrangement).includes(field);
|
|
585
|
+
}
|
|
533
586
|
//#endregion
|
|
534
587
|
//#region ../blocks/src/system/runtime/nodes/event-details/WholeSeriesPricingDisplay.tsx
|
|
535
588
|
function WholeSeriesPricingDisplay({ pricing, acceptedItems }) {
|
|
@@ -914,8 +967,9 @@ function LegacyEventDetailsView(props) {
|
|
|
914
967
|
});
|
|
915
968
|
}
|
|
916
969
|
/** The absence of an arrangement preserves the original markup exactly. */
|
|
917
|
-
function EventDetailsView(
|
|
918
|
-
if (!
|
|
970
|
+
function EventDetailsView(input) {
|
|
971
|
+
if (!input.arrangement) return /* @__PURE__ */ jsx(LegacyEventDetailsView, { ...input });
|
|
972
|
+
const props = withLookParts(input, input.arrangement);
|
|
919
973
|
if (props.arrangement === "details-panel") return /* @__PURE__ */ jsxs("div", {
|
|
920
974
|
...listLookSlot(props, "panel"),
|
|
921
975
|
children: [props.panelHeading ? /* @__PURE__ */ jsx("h2", {
|
|
@@ -935,17 +989,26 @@ function EventDetailsView(props) {
|
|
|
935
989
|
children: [/* @__PURE__ */ jsx(EventHeader, {
|
|
936
990
|
selection: props.selection,
|
|
937
991
|
presentation: props,
|
|
938
|
-
showCost: props.showCost ?? true
|
|
992
|
+
showCost: props.showCost ?? true,
|
|
993
|
+
showCapacity: props.showCapacity ?? false
|
|
939
994
|
}), /* @__PURE__ */ jsx("div", {
|
|
940
995
|
...listLookSlot(props, "panel"),
|
|
941
996
|
children: /* @__PURE__ */ jsx(LegacyEventDetailsView, {
|
|
942
997
|
...props,
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
showCost: props.showCost
|
|
998
|
+
showCost: props.showCost,
|
|
999
|
+
showCapacity: false
|
|
946
1000
|
})
|
|
947
1001
|
})]
|
|
948
1002
|
});
|
|
949
1003
|
}
|
|
1004
|
+
/** Turns off the toggles the arrangement leaves out, as `lookParts` declares them. */
|
|
1005
|
+
function withLookParts(props, arrangement) {
|
|
1006
|
+
const shown = (field) => lookPartShown("block.event-details", field, arrangement);
|
|
1007
|
+
return {
|
|
1008
|
+
...props,
|
|
1009
|
+
showTitle: props.showTitle === true && shown("showTitle"),
|
|
1010
|
+
showDescription: props.showDescription === true && shown("showDescription")
|
|
1011
|
+
};
|
|
1012
|
+
}
|
|
950
1013
|
//#endregion
|
|
951
|
-
export {
|
|
1014
|
+
export { deriveEventScheduleSummary as a, eventCardListContent as i, resolveEventDetailsPresentation as n, derivePreviewRunSchedule as o, eventHeaderSlotParents as r, EventDetailsView as t };
|