@riverbankcms/sdk 0.165.0 → 0.167.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +5 -0
- package/dist/_dts/{BlocksIslandsHydrator-CdsSMQEv.d.ts → BlocksIslandsHydrator-Dgb-ptph.d.ts} +1 -1
- package/dist/_dts/{Page-D6gp2Ipb.d.ts → Page-Bs3WxFgr.d.ts} +20 -258
- package/dist/_dts/{SdkPreviewMode-DNXAvnet.d.ts → SdkPreviewMode-DtUCsaHY.d.ts} +26 -3
- package/dist/_dts/{client-BkkExozE.d.ts → client-CwsI23pj.d.ts} +13 -1
- package/dist/_dts/{content-types-CXNAD7ef.d.ts → content-types-CAeP_-cV.d.ts} +3 -3
- package/dist/_dts/{contracts-XRXhbLWP.d.ts → contracts-BXHCiF-b.d.ts} +8 -5
- package/dist/_dts/{footerPageOutline-BP2bJYdY.d.ts → footerPageOutline-Bb2gbppW.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-DcMtbztV.d.ts → generatePageMetadata-DaBBDx7M.d.ts} +2 -2
- package/dist/_dts/{index-DKNEgSOS.d.ts → index-5_jf52sZ.d.ts} +2 -2
- package/dist/_dts/{index-CQfJhOEA.d.ts → index-C20yUyob.d.ts} +1 -1
- package/dist/_dts/{index-CRRiddNp.d.ts → index-CS6b1B-c.d.ts} +4 -4
- package/dist/_dts/{index-B4ozSzFP.d.ts → index-ChpjHK0U.d.ts} +9737 -8316
- package/dist/_dts/{index-BdkHhyf8.d.ts → index-D7EbliE3.d.ts} +1 -1
- package/dist/_dts/{index-RXkE3a7M.d.ts → index-DeHDwMfu.d.ts} +4 -3
- package/dist/_dts/{index-DAPTSmBM.d.ts → index-RugyUnqR.d.ts} +2499 -2218
- package/dist/_dts/{index-C_3kdrUb.d.ts → index-bDln38Hm.d.ts} +2 -2
- package/dist/_dts/{loadContent-B9vJMq3s.d.ts → loadContent-CTqcL7CS.d.ts} +9 -6
- package/dist/_dts/resolveBlockData-C3s9WMPs.d.ts +136 -0
- package/dist/_dts/{resolvePageContent-DIQyYUi-.d.ts → resolvePageContent-JPwgRxwh.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 +6 -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 +260 -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-BDF73NzM.d.ts → types-BlaCuPLr.d.ts} +2 -2
- package/dist/_dts/{types-Cl0nP6al.d.ts → types-CwtTcaQP.d.ts} +3 -3
- package/dist/_dts/{types-mstFvhK4.d.ts → types-D-WElMCy.d.ts} +8 -7
- package/dist/_dts/{validation-DVWqSvjK.d.ts → validation-Y5wD9fGK.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-CzKpH9Pm.mjs → BlocksIslandsHydrator-DFqkx158.mjs} +31 -24
- package/dist/client/{BookingMailingListNote-rUqsBN7L.mjs → BookingMailingListNote-CCVXX1LN.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-YGzw2IPB.mjs → CalendarNavigationChevron-DQwJ7BPx.mjs} +167 -18
- package/dist/client/{CheckboxChoice-DlTC4J2a.mjs → CheckboxChoice-CZ-anOqV.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-D2LyS_Bi.mjs → DemoBookingPortalAccess-DdkY86qI.mjs} +6 -6
- package/dist/client/{DemoPortalSignInLink-BaFg2Uit.mjs → DemoPortalSignInLink-B9YrzZt2.mjs} +1 -1
- package/dist/client/{EventCalendar.client-tRrhPscX.mjs → EventCalendar.client-DAeQPV76.mjs} +11 -30
- package/dist/client/{EventCombined.client-6cfAVtnZ.mjs → EventCombined.client-Bus9R0bj.mjs} +137 -61
- package/dist/client/{EventEmbeddedCheckoutStep-CDNUpI0S.mjs → EventEmbeddedCheckoutStep-D_14yqAU.mjs} +27 -2
- package/dist/client/{EventItem-dILw2PN_.mjs → EventItem-DPBLjGwj.mjs} +75 -13
- package/dist/client/{EventListWeekNavigation-ClgLtjNY.mjs → EventListWeekNavigation-D6cwU82_.mjs} +1 -1
- package/dist/client/{EventListing.client-BNueAHmU.mjs → EventListing.client-Bogi_SnJ.mjs} +3 -3
- package/dist/client/{EventListing.view-DtVbKVkt.mjs → EventListing.view-CEumpN7i.mjs} +35 -51
- package/dist/client/{EventRegistrationPayment-CzkG0NSJ.mjs → EventRegistrationPayment-CIQw6vNy.mjs} +113 -11
- package/dist/client/{LocationMapActions-zWQsJhE5.mjs → LocationMapActions-BVO-qx4q.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-D1AO_o4h.mjs → MapDrawingSvg-CcGaFawl.mjs} +22 -2
- package/dist/client/{Page-DUr2YhFR.mjs → Page-D4_H_u9V.mjs} +23892 -32266
- package/dist/client/{ProtectedSubmitButton-2fJqT_NR.mjs → ProtectedSubmitButton-8DuDw2ag.mjs} +1 -1
- package/dist/client/{StepIndicator-udNHcpOT.mjs → StepIndicator-Dptantmg.mjs} +3 -3
- package/dist/client/{TabBarFragment-C_kt-PXh.mjs → TabBarFragment-BxEGsKUx.mjs} +19 -19
- package/dist/client/{ThemedButton-Cfbo1bfh.mjs → ThemedButton-8jUc02mZ.mjs} +64 -2
- package/dist/client/{accordion-3CYNWzTS.mjs → accordion--EUHmEGa.mjs} +1 -1
- package/dist/client/{booking-form.client-BSbWgLyx.mjs → booking-form.client-BCXwOnhc.mjs} +19 -14
- package/dist/client/{bookingForm-2MoFBWSt.mjs → bookingForm-sHHcdism.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{carousel-Cu5mcpO-.mjs → carousel-Cp9xPBFZ.mjs} +2 -2
- package/dist/client/{carousel.client-CQLV8_Al.mjs → carousel.client-BO7sCEpH.mjs} +1 -1
- package/dist/client/{cart-CDc6x9cR.mjs → cart-CCZZC-Lq.mjs} +3 -3
- package/dist/client/{cart.client-BWS2r5Ef.mjs → cart.client-B7JfA19I.mjs} +1 -1
- package/dist/client/{checkout-CkxPqSwD.mjs → checkout-CipmYL4A.mjs} +3 -3
- package/dist/client/{checkout.client-DJfomKQc.mjs → checkout.client-DraalWdH.mjs} +1 -1
- package/dist/client/client.mjs +9550 -17
- package/dist/client/{context-CBV21-9L.mjs → context-Cv3QHjAF.mjs} +11 -6
- package/dist/client/{cta-Bw-al3cs.mjs → cta-P2vJVTEn.mjs} +45 -28
- package/dist/client/{dateFormatting-CFIUJ4Uf.mjs → dateFormatting-D8D47VT4.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-D0veHJyi.mjs → demoPortalMagicLink-CXWZoV-d.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-CEqqq92r.mjs → enhanceHeaderSection-BkAro1DJ.mjs} +4 -4
- package/dist/client/{event-details.client-Bk2kQ7ax.mjs → event-details.client-dLmyuPap.mjs} +2 -2
- package/dist/client/{event-registration.client-QMqtIywj.mjs → event-registration.client-BEhC2_-Y.mjs} +34 -20
- package/dist/client/{eventCalendar-BTDTMosr.mjs → eventCalendar-FBMS2Cpb.mjs} +4 -4
- package/dist/client/{eventCombined-BC7a709c.mjs → eventCombined-BrBhUvGe.mjs} +4 -4
- package/dist/client/{eventDetails-DL08GpUc.mjs → eventDetails-C7WUrbZ2.mjs} +2 -2
- package/dist/client/{eventListing-BfzuEQp_.mjs → eventListing-Bih-BgQM.mjs} +4 -4
- package/dist/client/{eventRegistration-Lfyzh1Ab.mjs → eventRegistration-DfTlqGbl.mjs} +4 -4
- package/dist/client/{form-L-xZOBUS.mjs → form-Bw1uuiUs.mjs} +3 -3
- package/dist/client/{form.client-BtpK3TZW.mjs → form.client-pZ-9gN33.mjs} +5 -5
- package/dist/client/{form.parts-Djos5Un4.mjs → form.parts-PXlu6XQO.mjs} +3 -3
- package/dist/client/{formatDate-DGmrm7YB.mjs → formatDate-DI3DP48e.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -4
- package/dist/client/{headerSection-f16OGkz-.mjs → headerSection-BpJYUMd6.mjs} +2 -2
- package/dist/client/{mediaAssets-DHAmrVIi.mjs → mediaAssets-DpPauppt.mjs} +1 -1
- package/dist/client/{mediaContext-CwT6ZOm7.mjs → mediaContext-BLo4NtjP.mjs} +25 -19
- package/dist/client/{newsletter-form.client-DpHNZc7k.mjs → newsletter-form.client-CSoP0cGR.mjs} +6 -6
- package/dist/client/{newsletter-form.parts-CLGH20PL.mjs → newsletter-form.parts-DDbX_Sj0.mjs} +2 -2
- package/dist/client/{newsletterForm-BEU0Ocu9.mjs → newsletterForm-vCxYRar_.mjs} +3 -3
- package/dist/client/{noop-CQU7tiMg.mjs → noop-ByVtIWf4.mjs} +420 -170
- package/dist/client/portal/client.mjs +13 -14
- package/dist/client/{product-detail.client-Be-om1BT.mjs → product-detail.client-7Pi6avM-.mjs} +1 -1
- package/dist/client/{product-list.client-DR7hD5Vs.mjs → product-list.client-DEad-Pma.mjs} +1 -1
- package/dist/client/{productDetail-BD42UOmG.mjs → productDetail-G1SMXG13.mjs} +3 -3
- package/dist/client/{productList-CSk8sXCl.mjs → productList-B21TGdpT.mjs} +3 -3
- package/dist/client/{propsDecoder-C_Y6VYnF.mjs → propsDecoder-B3vIBkex.mjs} +4 -5
- package/dist/client/{registry.server-CIKtTsCl.mjs → registry.server-B8aQhJpO.mjs} +399 -473
- 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-spWtx86G.mjs → richText-coerce-DHkBtO0G.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CROHPlYS.mjs → routeIslandApiConfig-DbHX4JOS.mjs} +1 -1
- package/dist/client/{shop-commerce-CDUohm_2.mjs → shop-commerce-B2UmrQg_.mjs} +12 -12
- package/dist/client/{shop-commerce-store-B9nw4lRP.mjs → shop-commerce-store-B7n-Z7nY.mjs} +1 -1
- package/dist/client/{shop-DscvMz86.mjs → shop-mqyoOvOK.mjs} +3 -3
- package/dist/client/{shop.client-M3kNsVPi.mjs → shop.client-BH-BBnA9.mjs} +13 -13
- package/dist/client/{shop.interactive-BGmkdIAZ.mjs → shop.interactive-mdM3UMWG.mjs} +74 -36
- package/dist/client/{shopShared-BdWp6LHa.mjs → shopShared-CXF5wxdg.mjs} +2 -2
- package/dist/client/site-styles-CMCUxsIM.mjs +3 -0
- package/dist/{preview-next/client/ThemedButton-Dc6aJ34Z.mjs → client/site-styles-D56hT2u1.mjs} +26000 -16565
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/src-DjnxOjXG.mjs +217 -0
- package/dist/client/surfaceTransportMarker-BXepAVF6.mjs +152 -0
- package/dist/client/{timetableModel-Dynh5-j4.mjs → timetableModel-CrC80EOG.mjs} +13 -140
- package/dist/client/types-sF-IrGQr.mjs +633 -0
- package/dist/client/{useAvailableSlots-Cw9paRPY.mjs → useAvailableSlots-C4LOaI_Z.mjs} +8 -5
- package/dist/client/{useBookingNowIso-C9SF2rC6.mjs → useBookingNowIso-BDmWkYUW.mjs} +1 -1
- package/dist/client/{useDiscountApply-B-QJfBg0.mjs → useDiscountApply-6Q0nToVA.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-Uvum8q9d.mjs → useDiscountCodeUi-CM-DTX5X.mjs} +1 -1
- package/dist/client/{useEventPagination-BfM3xk6j.mjs → useEventPagination-Bcs89BR5.mjs} +9 -9
- package/dist/client/{view-DlkCDfuN.mjs → view-BN-fxyfq.mjs} +287 -232
- package/dist/client/{view-DXOuduIr.mjs → view-Dh2tGoS0.mjs} +4 -4
- package/dist/client/{wizardSteps-DManVJpc.mjs → wizardSteps-DtkhwKXK.mjs} +468 -149
- package/dist/preview-next/before-render.mjs +3 -140
- package/dist/preview-next/client/ArrangementLookControls-D4VjPs-r.mjs +31197 -0
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-Die6Y25O.mjs → EventEmbeddedCheckoutStep-C_h1cMYm.mjs} +33 -4
- package/dist/preview-next/client/{LocationPickerEnvironment-Bp4BHLCL.mjs → LocationPickerEnvironment-D56RD3e_.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-Cb0JhM9p.mjs → MapLibreEditMap-DFnyCckr.mjs} +2 -2
- package/dist/preview-next/client/PreviewEditorSidebar-Ckr2zk_L.mjs +37247 -0
- package/dist/preview-next/client/{PreviewEditorUI-CxwlLBGw.mjs → PreviewEditorUI-KOZgw_gS.mjs} +45 -17
- package/dist/preview-next/client/PreviewShell-CyO2V4kB.mjs +4757 -0
- package/dist/preview-next/client/SdkPreviewModeRuntime-DW3uKvNF.mjs +4258 -0
- package/dist/preview-next/client/SiteChromeCustomizeButton-CU9VD-7O.mjs +72202 -0
- package/dist/preview-next/client/ThemedButton-C0dgGJ5k.mjs +2006 -0
- package/dist/preview-next/client/{lucide-react-CqxuVAyz.mjs → lucide-react-CPBCf6QT.mjs} +15 -2
- package/dist/preview-next/client/previewAssistantSlot-DBi-WybM.mjs +112193 -0
- package/dist/preview-next/client/{previewChromeSurface-yuwnDP3B.mjs → previewChromeSurface-BhkUJst9.mjs} +90 -28
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/sdk-runtime-BjCb6lOn.mjs +5 -0
- package/dist/preview-next/client/{editorStatusDecision-DR4BBKhy.mjs → useAutosaveStatus-CKxTaC3j.mjs} +40 -3
- package/dist/preview-next/client/useBlockCustomizeControls-B7MLTjBX.mjs +2633 -0
- package/dist/preview-next/client/useOpenBlockForSetup-BTUc0g9X.mjs +28 -0
- package/dist/preview-next/keepAlive.mjs +25 -2
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BBAJjFIz.mjs → route-contract-Bv3nkdpV.mjs} +215 -118
- package/dist/server/{Block.shared-ClFI3qpX.mjs → Block.shared-4fMqzltx.mjs} +7 -4
- package/dist/server/{src-DsYPhTbs.mjs → ThemeScopeCore-C72VC_lR.mjs} +894 -2556
- package/dist/server/accessibleSurfaces-B_Y_dA20.mjs +2305 -0
- package/dist/server/{bindings-Bi8EoRZD.mjs → bindings-ConMYJ2U.mjs} +2 -3
- package/dist/server/{publicProducts-Bz8loTRn.mjs → client-Cot-H5fQ.mjs} +2558 -343
- 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-dEEhQxL7.mjs → loadContent-BkaWYEwt.mjs} +6 -5
- package/dist/server/{loadPage-DBFBad8A.mjs → loadPage-kviUdH8c.mjs} +4 -2
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/media-DnlczCMA.mjs +231 -0
- package/dist/server/metadata.mjs +5 -1
- package/dist/server/mode-Cv_TG9gP.mjs +63 -0
- package/dist/server/next/revalidate.mjs +9 -4
- package/dist/server/next.mjs +11 -11
- package/dist/server/opaqueSurface-BTnS09GS.mjs +54 -0
- package/dist/server/{overrideResolution-BIJbiXYc.mjs → overrideResolution-itXZCXs7.mjs} +2 -1
- package/dist/server/overrides-CD4d-1w7.mjs +177 -0
- package/dist/server/page-converter.mjs +243 -91
- package/dist/server/pageRenderPlan-CDyn7iLy.mjs +4162 -0
- package/dist/server/{themeAdmission-CSknYpxk.mjs → pageRuntimeSupport-DZ6cLxrM.mjs} +13 -28
- package/dist/server/{overrides-DhF87Vsd.mjs → pageShared-Q_Vij87H.mjs} +3808 -1928
- package/dist/server/parseThemeForPersistence-CDrF51tJ.mjs +52 -0
- package/dist/server/{prebuild-DaemmWQL.mjs → prebuild-DOG4MkOy.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/prefetchBlockData-DlprLLsc.mjs +756 -0
- package/dist/server/{registry-Cdvz1OtL.mjs → registry-BPFcpn6k.mjs} +21838 -709
- 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-CLpAJWWf.mjs → resolveBlockData-BHvfGD4y.mjs} +6 -48
- package/dist/server/resolveButtonColourStates-OXFRGn5M.mjs +2682 -0
- package/dist/server/responseMedia-D8J3VAFs.mjs +115 -0
- package/dist/server/{richTextSchema-YYc85FX4.mjs → richTextSchema-Euhuj-7V.mjs} +26 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/schema-DEizlyi4.mjs +2524 -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-DYxhLzqQ.mjs → validation-bl6WcAi_.mjs} +419 -3
- package/dist/server/{version-Beu4q-Gv.mjs → version-BLXZ31S-.mjs} +1 -1
- package/dist/styles/index.css +710 -29
- package/package.json +39 -1
- package/dist/client/events-BmqPeeQm.mjs +0 -20
- package/dist/client/purchase-BV5xfaZH.mjs +0 -894
- package/dist/client/schema-BdSglH2X.mjs +0 -16084
- package/dist/client/site-styles-CWHmlVT5.mjs +0 -14503
- package/dist/client/src-VIsPY-kw.mjs +0 -62
- package/dist/preview-next/client/PreviewEditorSidebar-DEP3xD9K.mjs +0 -5810
- package/dist/preview-next/client/SdkPreviewModeRuntime-Cpe-XP8e.mjs +0 -3
- package/dist/preview-next/client/SdkPreviewModeRuntime-QDkMPASV.mjs +0 -8059
- package/dist/preview-next/client/SiteChromeCustomizeButton-1JaoGOKX.mjs +0 -9367
- package/dist/preview-next/client/previewSidebarNavigation-AXUj9-qQ.mjs +0 -224683
- package/dist/preview-next/client/result-BjJUoxUF.mjs +0 -16
- package/dist/preview-next/client/sdk-runtime-O-eA9-rV.mjs +0 -4
- package/dist/preview-next/refresh-contract-uQ6BXgLJ.mjs +0 -25
- package/dist/server/bindings-Dgt_0goJ.mjs +0 -17
- package/dist/server/client-DfMDbZ41.mjs +0 -2330
- package/dist/server/effectiveNavLinkStyle-BHIYPVG1.mjs +0 -13713
- package/dist/server/loadPage-CnVB-aeL.mjs +0 -2
- package/dist/server/prefetchBlockData-FwcsT5H2.mjs +0 -4359
- package/dist/server/schema-uSA_x1Zh.mjs +0 -16311
- package/dist/server/site-styles-CntHn2KI.mjs +0 -793
- package/dist/server/siteChromeOverlayClearance-DqP40Ka0.mjs +0 -802
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { h as ClockIcon, i as ThemedButtonLink } from "./ThemedButton-
|
|
2
|
+
import { Qt as selectCardListPresentation, Xt as CardListLeadDate, Yt as CardListContentPart, Zt as resolveCardListSchedule, on as formatEventPrice } from "./shop.interactive-mdM3UMWG.mjs";
|
|
3
|
+
import { Cn as formatEventRemainingPlaces, Dn as getEventAvailabilityStatus, Nr as listLookSlot, fn as formatEventCompactDateRail, gn as formatEventTimeRange, jr as listItemPresentation, sn as eventDateOptions } from "./wizardSteps-DtkhwKXK.mjs";
|
|
4
|
+
import { Ci as isCssColorLiteral, Ei as resolveTokenOrCssColorValue, Xi as getTextColorForBackground, wi as resolveOnColorForThemeToken } from "./site-styles-D56hT2u1.mjs";
|
|
5
|
+
import { h as ClockIcon, i as ThemedButtonLink } from "./ThemedButton-8jUc02mZ.mjs";
|
|
6
|
+
import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-P2vJVTEn.mjs";
|
|
6
7
|
import React from "react";
|
|
7
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
9
|
//#region ../blocks/src/system/runtime/nodes/events/domain/people.ts
|
|
@@ -70,6 +71,37 @@ function CalendarIcon({ className, size = 16, strokeWidth = 2 }) {
|
|
|
70
71
|
});
|
|
71
72
|
}
|
|
72
73
|
//#endregion
|
|
74
|
+
//#region ../blocks/src/system/runtime/nodes/events/shared/eventCategoryBadge.ts
|
|
75
|
+
/** The category's badge, when the event has a category: its name in its own colour, with readable text. */
|
|
76
|
+
function eventCategoryBadge(category) {
|
|
77
|
+
return category ? {
|
|
78
|
+
label: category.name,
|
|
79
|
+
style: categoryBadgeStyle(category.color ?? null)
|
|
80
|
+
} : null;
|
|
81
|
+
}
|
|
82
|
+
function categoryBadgeStyle(background) {
|
|
83
|
+
const normalized = background?.trim() ?? "";
|
|
84
|
+
if (!normalized) return {
|
|
85
|
+
backgroundColor: "rgb(var(--tb-accent, 0 0 0))",
|
|
86
|
+
color: "rgb(var(--tb-onAccent, 255 255 255))"
|
|
87
|
+
};
|
|
88
|
+
if (isCssColorLiteral(normalized)) return {
|
|
89
|
+
backgroundColor: normalized,
|
|
90
|
+
color: readableTextColor(normalized)
|
|
91
|
+
};
|
|
92
|
+
return {
|
|
93
|
+
backgroundColor: resolveTokenOrCssColorValue(normalized),
|
|
94
|
+
color: resolveOnColorForThemeToken(normalized) ?? "rgb(var(--tb-onAccent, 255 255 255))"
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
function readableTextColor(background) {
|
|
98
|
+
try {
|
|
99
|
+
return getTextColorForBackground(background);
|
|
100
|
+
} catch {
|
|
101
|
+
return "rgb(var(--tb-onAccent, 255 255 255))";
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
73
105
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventItem.tsx
|
|
74
106
|
/** Arrangement content choices are data, ready for other live offering lists to reuse. */
|
|
75
107
|
const eventItemParts = {
|
|
@@ -98,6 +130,7 @@ const eventItemParts = {
|
|
|
98
130
|
],
|
|
99
131
|
grid: [
|
|
100
132
|
"image",
|
|
133
|
+
"chips",
|
|
101
134
|
"date",
|
|
102
135
|
"title",
|
|
103
136
|
"meta",
|
|
@@ -171,11 +204,12 @@ function renderCalendarItem(props) {
|
|
|
171
204
|
const facts = eventItemFacts(props);
|
|
172
205
|
const Tag = props.as ?? eventItemTag(props.arrangement);
|
|
173
206
|
const root = props.arrangement === "grid" ? "item" : props.continued ? "row-continued" : "row";
|
|
207
|
+
const chipsOnPhoto = parts.includes("image") && Boolean(props.event.presentation?.image);
|
|
174
208
|
const body = (part) => [
|
|
175
209
|
"title",
|
|
176
210
|
"meta",
|
|
177
211
|
"description"
|
|
178
|
-
].includes(part) || part === "action" && props.arrangement === "grid";
|
|
212
|
+
].includes(part) || part === "chips" && !chipsOnPhoto || part === "action" && props.arrangement === "grid";
|
|
179
213
|
const renderPart = (part) => /* @__PURE__ */ jsx(React.Fragment, { children: renderEventItemContentPart({
|
|
180
214
|
part,
|
|
181
215
|
props,
|
|
@@ -185,7 +219,7 @@ function renderCalendarItem(props) {
|
|
|
185
219
|
...listLookSlot(props, root),
|
|
186
220
|
"data-availability": facts.availability,
|
|
187
221
|
children: [
|
|
188
|
-
parts.filter((part) => part === "image" || part === "date").map(renderPart),
|
|
222
|
+
parts.filter((part) => part === "image" || part === "chips" && chipsOnPhoto || part === "date").map(renderPart),
|
|
189
223
|
/* @__PURE__ */ jsx("div", {
|
|
190
224
|
...listLookSlot(props, props.arrangement === "grid" ? "item-body" : "what"),
|
|
191
225
|
children: parts.filter(body).map(renderPart)
|
|
@@ -212,6 +246,7 @@ function eventItemTag(arrangement) {
|
|
|
212
246
|
function renderEventItemContentPart({ part, props, facts }) {
|
|
213
247
|
switch (part) {
|
|
214
248
|
case "image": return renderEventItemImage(props, facts.link);
|
|
249
|
+
case "chips": return renderEventItemCategory(props);
|
|
215
250
|
case "date": return /* @__PURE__ */ jsxs("time", {
|
|
216
251
|
...listLookSlot(props, "date"),
|
|
217
252
|
dateTime: props.event.startsAt,
|
|
@@ -297,6 +332,18 @@ function renderEventItemImage(props, link) {
|
|
|
297
332
|
presentation: props
|
|
298
333
|
});
|
|
299
334
|
}
|
|
335
|
+
/** The same badge the older event cards show: the category's name in its own colour. */
|
|
336
|
+
function renderEventItemCategory(props) {
|
|
337
|
+
const badge = eventCategoryBadge(props.event.eventCategory);
|
|
338
|
+
return badge ? /* @__PURE__ */ jsx("div", {
|
|
339
|
+
...listLookSlot(props, "chips"),
|
|
340
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
341
|
+
...listLookSlot(props, "chip"),
|
|
342
|
+
style: badge.style,
|
|
343
|
+
children: badge.label
|
|
344
|
+
})
|
|
345
|
+
}) : null;
|
|
346
|
+
}
|
|
300
347
|
function renderEventItemAction(props) {
|
|
301
348
|
const cta = resolveEventCta(props.event, props.buttonText);
|
|
302
349
|
const slot = props.arrangement === "grid" ? "item-actions" : "action";
|
|
@@ -468,14 +515,29 @@ function cardListSlides(items, presentation, Title = "h3") {
|
|
|
468
515
|
}));
|
|
469
516
|
}
|
|
470
517
|
function leadItemPresentation(presentation, index, count) {
|
|
471
|
-
|
|
518
|
+
return listItemPresentation(presentation, index, count);
|
|
519
|
+
}
|
|
520
|
+
/** These parents describe the JSX above, independently of any Look or style. */
|
|
521
|
+
function eventItemSlotParents(arrangement) {
|
|
522
|
+
const root = arrangement === "grid" ? "item" : "row";
|
|
523
|
+
return {
|
|
524
|
+
date: root,
|
|
525
|
+
availability: arrangement === "grid" ? "item-body" : "what",
|
|
526
|
+
"item-body": root,
|
|
527
|
+
what: root
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
function cardItemSlotParents(arrangement) {
|
|
531
|
+
const body = arrangement === "index" || arrangement === "sequence" ? "item" : "item-body";
|
|
472
532
|
return {
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
533
|
+
item: "items",
|
|
534
|
+
lead: "items",
|
|
535
|
+
"item-body": "item",
|
|
536
|
+
"item-media": "item",
|
|
537
|
+
dates: body,
|
|
538
|
+
date: arrangement === "slides" || arrangement === "track" ? "item-media" : "dates",
|
|
539
|
+
availability: body
|
|
478
540
|
};
|
|
479
541
|
}
|
|
480
542
|
//#endregion
|
|
481
|
-
export {
|
|
543
|
+
export { eventItemSlotParents as a, MapPinIcon as c, cardItemSlotParents as i, formatEventTeacherLine as l, CardListItems as n, eventCategoryBadge as o, EventItem as r, CalendarIcon as s, CardListCollection as t };
|
package/dist/client/{EventListWeekNavigation-ClgLtjNY.mjs → EventListWeekNavigation-D6cwU82_.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Nr as listLookSlot } from "./wizardSteps-DtkhwKXK.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventListWeekNavigation.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-
|
|
4
|
-
import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-
|
|
2
|
+
import { Ht as buildEventRuntimeFilters } from "./shop.interactive-mdM3UMWG.mjs";
|
|
3
|
+
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-D6cwU82_.mjs";
|
|
4
|
+
import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-Bcs89BR5.mjs";
|
|
5
5
|
import { useMemo } from "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region ../blocks/src/system/runtime/nodes/events/EventListing.client.tsx
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { $t as MediaNodeServer, an as weekColumnDays, on as formatEventPrice } from "./shop.interactive-mdM3UMWG.mjs";
|
|
3
|
+
import { Nr as listLookSlot, cn as eventLocalDateKey, fn as formatEventCompactDateRail, gn as formatEventTimeRange, hn as formatEventNextDateFact, jr as listItemPresentation, qt as ImagePresets, sn as eventDateOptions, un as formatDate } from "./wizardSteps-DtkhwKXK.mjs";
|
|
4
|
+
import { $n as boxBackgroundSchema, Qn as boxBackgroundOverlaySchema, Wt as normalizeCardRole, er as runtimeBoxBackgroundSchema } from "./site-styles-D56hT2u1.mjs";
|
|
5
|
+
import { h as ClockIcon, i as ThemedButtonLink } from "./ThemedButton-8jUc02mZ.mjs";
|
|
6
|
+
import { n as resolveEventCta, r as resolveEventLinkProps, t as resolveEventCardBooking } from "./cta-P2vJVTEn.mjs";
|
|
7
|
+
import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-CcGaFawl.mjs";
|
|
8
|
+
import { c as MapPinIcon, l as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-DPBLjGwj.mjs";
|
|
9
9
|
import "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
//#region ../blocks/src/system/transforms/registry/core.ts
|
|
@@ -359,13 +359,6 @@ function boxStyleClassNames(value, options) {
|
|
|
359
359
|
}
|
|
360
360
|
//#endregion
|
|
361
361
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventCard.tsx
|
|
362
|
-
/** The category's badge, when the event has a category. */
|
|
363
|
-
function eventCardCategoryBadge(category) {
|
|
364
|
-
return category ? {
|
|
365
|
-
label: category.name,
|
|
366
|
-
style: getCategoryBadgeStyle(category.color ?? null)
|
|
367
|
-
} : null;
|
|
368
|
-
}
|
|
369
362
|
/**
|
|
370
363
|
* EventCard Component
|
|
371
364
|
*
|
|
@@ -374,7 +367,7 @@ function eventCardCategoryBadge(category) {
|
|
|
374
367
|
*
|
|
375
368
|
* This component is server-safe (uses no client APIs like Intl).
|
|
376
369
|
*/
|
|
377
|
-
const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", buttonText, showVenue = true, showMap = true, mapSlot, allowMap = true, lookSlots,
|
|
370
|
+
const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", buttonText, showVenue = true, showMap = true, mapSlot, allowMap = true, lookSlots, surfacePresentation, showCapacity = true, showImage = true, showCategory = true, showSummary = true, orientation = "vertical", presentation, headingLevel, imageResolveContext }) => {
|
|
378
371
|
const { presentationClass, cardHeadingLevel, formattedDate, formattedTime, cta, cardClass, title, summary, image, category, categoryBadge, hasImage, dateFact, priceText, teacherLine, capacityText, orientationClass } = eventCardFacts({
|
|
379
372
|
event,
|
|
380
373
|
presentation,
|
|
@@ -384,20 +377,19 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
|
|
|
384
377
|
showCategory,
|
|
385
378
|
showImage,
|
|
386
379
|
showCapacity,
|
|
387
|
-
orientation
|
|
388
|
-
upcomingDates
|
|
380
|
+
orientation
|
|
389
381
|
});
|
|
390
382
|
return /* @__PURE__ */ jsxs("article", {
|
|
391
383
|
...listLookSlot({
|
|
392
384
|
lookSlots,
|
|
393
|
-
|
|
385
|
+
surfacePresentation
|
|
394
386
|
}, "item"),
|
|
395
387
|
className: `${cardClass} group rb-flex rb-flex-col rb-h-full ${orientationClass}${presentationClass}`,
|
|
396
388
|
"data-orientation": orientation,
|
|
397
389
|
children: [/* @__PURE__ */ jsx(EventCardMedia, {
|
|
398
390
|
lookPresentation: {
|
|
399
391
|
lookSlots,
|
|
400
|
-
|
|
392
|
+
surfacePresentation
|
|
401
393
|
},
|
|
402
394
|
event,
|
|
403
395
|
categoryBadge,
|
|
@@ -408,7 +400,7 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
|
|
|
408
400
|
imageResolveContext
|
|
409
401
|
}), /* @__PURE__ */ jsx(EventCardContent, {
|
|
410
402
|
lookSlots,
|
|
411
|
-
|
|
403
|
+
surfacePresentation,
|
|
412
404
|
allowMap,
|
|
413
405
|
buttonVariant,
|
|
414
406
|
capacityText,
|
|
@@ -540,11 +532,12 @@ function EventCardContent(props) {
|
|
|
540
532
|
function EventCardVenue(props) {
|
|
541
533
|
const venue = props.showVenue ? props.event.venue : null;
|
|
542
534
|
if (!venue) return null;
|
|
535
|
+
const { place } = eventVenuePlace(venue);
|
|
543
536
|
return /* @__PURE__ */ jsxs("div", {
|
|
544
537
|
className: "rb-mb-3",
|
|
545
538
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
546
539
|
className: "rb-flex rb-items-center rb-gap-2 rb-caption",
|
|
547
|
-
children: [/* @__PURE__ */ jsx(MapPinIcon, { className: "rb-shrink-0" }), /* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx("strong", { children: venue.name }),
|
|
540
|
+
children: [/* @__PURE__ */ jsx(MapPinIcon, { className: "rb-shrink-0" }), /* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx("strong", { children: venue.name }), place ? ` · ${place}` : null] })]
|
|
548
541
|
}), props.showMap && props.allowMap && venue.location && props.mapSlot && /* @__PURE__ */ jsx("div", {
|
|
549
542
|
className: "rb-mt-2",
|
|
550
543
|
children: props.mapSlot
|
|
@@ -613,28 +606,6 @@ function eventCardOrientationClass(orientation) {
|
|
|
613
606
|
case "vertical": return "event-card--vertical";
|
|
614
607
|
}
|
|
615
608
|
}
|
|
616
|
-
function getCategoryBadgeStyle(background) {
|
|
617
|
-
const normalized = background?.trim() ?? "";
|
|
618
|
-
if (!normalized) return {
|
|
619
|
-
backgroundColor: "rgb(var(--tb-accent, 0 0 0))",
|
|
620
|
-
color: "rgb(var(--tb-onAccent, 255 255 255))"
|
|
621
|
-
};
|
|
622
|
-
if (isCssColorLiteral(normalized)) return {
|
|
623
|
-
backgroundColor: normalized,
|
|
624
|
-
color: pickReadableTextColor(normalized)
|
|
625
|
-
};
|
|
626
|
-
return {
|
|
627
|
-
backgroundColor: resolveTokenOrCssColorValue(normalized),
|
|
628
|
-
color: resolveOnColorForThemeToken(normalized) ?? "rgb(var(--tb-onAccent, 255 255 255))"
|
|
629
|
-
};
|
|
630
|
-
}
|
|
631
|
-
function pickReadableTextColor(background) {
|
|
632
|
-
try {
|
|
633
|
-
return getTextColorForBackground(background);
|
|
634
|
-
} catch {
|
|
635
|
-
return "rgb(var(--tb-onAccent, 255 255 255))";
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
609
|
function EventLookDate({ event, ...presentation }) {
|
|
639
610
|
const date = formatEventCompactDateRail(event.startsAt, eventDateOptions(event));
|
|
640
611
|
return /* @__PURE__ */ jsxs("time", {
|
|
@@ -654,13 +625,14 @@ function EventLookDate({ event, ...presentation }) {
|
|
|
654
625
|
})]
|
|
655
626
|
});
|
|
656
627
|
}
|
|
657
|
-
function eventCardFacts({ event, presentation, headingLevel, buttonText, cardRole, showCategory, showImage, showCapacity, orientation
|
|
628
|
+
function eventCardFacts({ event, presentation, headingLevel, buttonText, cardRole, showCategory, showImage, showCapacity, orientation }) {
|
|
658
629
|
const { presentation: cardPresentation, presentationClass, headingLevel: cardHeadingLevel } = resolveEventCardOptions({
|
|
659
630
|
presentation,
|
|
660
631
|
headingLevel
|
|
661
632
|
});
|
|
662
633
|
const { formattedDate, formattedTime } = formatEventCardWhen(event);
|
|
663
|
-
const
|
|
634
|
+
const booking = resolveEventCardBooking(event, presentation === "catalogue" ? "series" : "occurrence", buttonText);
|
|
635
|
+
const { cta } = booking;
|
|
664
636
|
const cardClass = boxStyleClassNames({ role: cardRole }, { baseClass: "event-card" });
|
|
665
637
|
const title = event.title;
|
|
666
638
|
const summary = event.presentation?.summary ?? event.description;
|
|
@@ -677,7 +649,7 @@ function eventCardFacts({ event, presentation, headingLevel, buttonText, cardRol
|
|
|
677
649
|
summary,
|
|
678
650
|
image,
|
|
679
651
|
category,
|
|
680
|
-
categoryBadge: showCategory ?
|
|
652
|
+
categoryBadge: showCategory ? eventCategoryBadge(category) : null,
|
|
681
653
|
hasImage: Boolean(showImage && image),
|
|
682
654
|
dateFact: resolveEventCardDateFact({
|
|
683
655
|
event,
|
|
@@ -687,7 +659,7 @@ function eventCardFacts({ event, presentation, headingLevel, buttonText, cardRol
|
|
|
687
659
|
}),
|
|
688
660
|
priceText: resolveEventCardPrice(event, cardPresentation),
|
|
689
661
|
teacherLine: formatEventTeacherLine(event),
|
|
690
|
-
capacityText: showCapacity
|
|
662
|
+
capacityText: showCapacity && booking.availability ? booking.availability.label : null,
|
|
691
663
|
orientationClass: eventCardOrientationClass(orientation)
|
|
692
664
|
};
|
|
693
665
|
}
|
|
@@ -907,7 +879,6 @@ function EventListBody({ display, renderEventCard, footer }) {
|
|
|
907
879
|
}
|
|
908
880
|
/** All seven days of the shown week; a day known to be empty says so, and a wholly empty week never reaches here. */
|
|
909
881
|
function WeekColumns({ display, week }) {
|
|
910
|
-
const todayMark = display.itemSurfaces?.today;
|
|
911
882
|
return /* @__PURE__ */ jsx("ol", {
|
|
912
883
|
...listLookSlot(display, "list"),
|
|
913
884
|
children: weekColumnDays(week, display.events, display.allLoaded === true).map((day) => /* @__PURE__ */ jsxs("li", {
|
|
@@ -928,8 +899,7 @@ function WeekColumns({ display, week }) {
|
|
|
928
899
|
}),
|
|
929
900
|
" ",
|
|
930
901
|
/* @__PURE__ */ jsx("span", {
|
|
931
|
-
...listLookSlot(display, "group-date"),
|
|
932
|
-
...day.isToday && todayMark !== void 0 && display.lookSlots?.["group-date"] !== void 0 ? resolvedItemSurfaceProps(todayMark, "group-date") : {},
|
|
902
|
+
...listLookSlot(display, "group-date", day.isToday ? "today" : void 0),
|
|
933
903
|
children: day.label.day
|
|
934
904
|
})
|
|
935
905
|
]
|
|
@@ -947,5 +917,19 @@ function WeekColumns({ display, week }) {
|
|
|
947
917
|
function hasArrangementPanel(display) {
|
|
948
918
|
return display.state === "ready" && display.lookSlots !== void 0 && display.listLayout === "compact";
|
|
949
919
|
}
|
|
920
|
+
/** Nearest slot parents in EventListBody and WeekColumns. */
|
|
921
|
+
/** `root` is the declared slot the listing renders inside (a Look may paint the block's layout), or null. */
|
|
922
|
+
function eventListSlotParents(arrangement, root = null) {
|
|
923
|
+
return {
|
|
924
|
+
list: arrangement === "compact" ? "panel" : root,
|
|
925
|
+
panel: root,
|
|
926
|
+
group: "list",
|
|
927
|
+
"group-label": "group",
|
|
928
|
+
"group-date": "group-label",
|
|
929
|
+
item: "list",
|
|
930
|
+
row: arrangement === "week-columns" || arrangement === "day-groups" ? "group" : "list",
|
|
931
|
+
"row-continued": "list"
|
|
932
|
+
};
|
|
933
|
+
}
|
|
950
934
|
//#endregion
|
|
951
|
-
export {
|
|
935
|
+
export { asPartialObject as C, resolveSpacing as S, runTransforms as T, DEFAULT_SECTION_SPACING as _, EventCard as a, isSemanticSpacing as b, boxStyleClassNames as c, normalizeBoxStylesBorder as d, resolveCardRoleForBoxStyles as f, parseRuntimeBackgroundContent as g, parseBackgroundOverlay as h, EventCompactRow as i, fixedFrameScopeClass as l, parseBackgroundContent as m, eventListSlotParents as n, RAISED_SHADOW_CLASS as o, resolveItemCardRole as p, EmptyState as r, ROUNDED_CLASSES as s, EventListingFrameView as t, hasFixedFrameBackgroundMotion as u, SEMANTIC_SPACING_VALUES as v, createTransformRegistry as w, resolveSectionMinHeight as x, isSectionMinHeight as y };
|
package/dist/client/{EventRegistrationPayment-CzkG0NSJ.mjs → EventRegistrationPayment-CIQw6vNy.mjs}
RENAMED
|
@@ -1,19 +1,120 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { a as siteTermsFailureKind, o as useSiteTermsAgreement, s as eventSiteTermsSurface } from "./DemoBookingPortalAccess-D2LyS_Bi.mjs";
|
|
2
|
+
import { $ as getEligibilityFlowFlags, At as getTicketSelectionTotal, C as resolveGuestNextStepCheck, E as resolveRegistrationTicketContinuation, Er as resolveEventRegistrationScopedEvents, Ft as getRegistrationStartAt, G as resolveRegistrationTarget, H as findPreSelectedEvent, It as toRegistrationEvents, J as beginWaitlistInvitation, K as resolveRouteRequiresPayment, Kr as resolveBookingSignupOffer, L as calculateEventRegistrationPreviewTotal, M as resolveEventRegistrationSubmitPlan, Mt as hasValidPricingOptionSelection, Nt as normalizeTicketSelectionLines, O as visitorHoldsOwnPlace, Ot as getSingleSelectedPricingOptionId, Q as getCurrentTicketSelection, Rt as toWholeSeriesRegistrationEvents, S as planRegistrationDetailsContinuation, St as getVisibleTicketTypes, U as resolveDiscountContext, W as resolveEventRequiresPayment, X as invitationSubmission, Y as createRegistrationDraftData, Z as formatCentsAsCurrencyInput, a as registrationPresentation, at as resolveHeldTicketPlaces, bt as getPortalSubjectEmail, d as decideEventChoice, et as getRegistrationOccurrenceId, f as getDeclinedPass, ft as findSelectedTicketType, g as decideEventRegistrationPayment, h as buildEventRegistrationPaymentOptionsViewModel, i as registrationPaymentRoute, ii as publicEventPricingStrategy, it as parseCurrencyInputToCents, m as registrationFlowReducer, nt as getSlidingScaleSelectionMessage, o as registrationRoute, ot as shouldLoadRegistrationOptions, p as isRegistrationLocked, q as toRegistrationRequestSubject, rt as getTicketSelectionRemainingPlaces, st as validateFormData, tt as getSlidingScaleForEvent, u as createInitialRegistrationFlowState, w as resolveRegistrationAdmission, wt as transformRegistrationOptionsResponse, x as planRegistrationDetailsCheck, y as getTicketSelectionPurpose, yt as getImplicitSingleTicketType } from "./wizardSteps-DtkhwKXK.mjs";
|
|
3
|
+
import { Mt as resolveBookingBusinessTimeZone, bt as inferSiteDateLocale } from "./noop-ByVtIWf4.mjs";
|
|
4
|
+
import { t as assertNever } from "./src-DjnxOjXG.mjs";
|
|
5
|
+
import { a as siteTermsFailureKind, o as useSiteTermsAgreement, s as eventSiteTermsSurface } from "./DemoBookingPortalAccess-DdkY86qI.mjs";
|
|
7
6
|
import { t as generateUuidV4 } from "./uuid-BETKW8rS.mjs";
|
|
8
|
-
import { t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
9
|
-
import { r as usePolling } from "./BookingMailingListNote-
|
|
7
|
+
import { t as useDiscountCodeUi } from "./useDiscountCodeUi-CM-DTX5X.mjs";
|
|
8
|
+
import { r as usePolling } from "./BookingMailingListNote-CCVXX1LN.mjs";
|
|
10
9
|
import { n as EVENT_REGISTRATION_CHECKOUT_ATTEMPT_PARAM, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
11
|
-
import { n as useBlockApi, r as BlockApiError } from "./context-
|
|
12
|
-
import { t as useBookingNowIso } from "./useBookingNowIso-
|
|
13
|
-
import { o as storeDemoBookingPass, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-
|
|
10
|
+
import { n as useBlockApi, r as BlockApiError } from "./context-Cv3QHjAF.mjs";
|
|
11
|
+
import { t as useBookingNowIso } from "./useBookingNowIso-BDmWkYUW.mjs";
|
|
12
|
+
import { o as storeDemoBookingPass, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-CXWZoV-d.mjs";
|
|
14
13
|
import { Suspense, lazy, useCallback, useEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
15
14
|
import { z } from "zod";
|
|
16
15
|
import { jsx } from "react/jsx-runtime";
|
|
16
|
+
//#region ../commerce/src/purchase/event-registration-errors.ts
|
|
17
|
+
const eventRegistrationErrors = {
|
|
18
|
+
wholeCourseOnly: {
|
|
19
|
+
endsCommand: false,
|
|
20
|
+
message: "This course is booked as a whole course, so single dates can’t be booked on their own. Please go back to the event and book the full course.",
|
|
21
|
+
action: "event"
|
|
22
|
+
},
|
|
23
|
+
registrationClosed: {
|
|
24
|
+
endsCommand: false,
|
|
25
|
+
message: "Booking is currently closed for this event. Please contact the organiser if you’d like to find out more.",
|
|
26
|
+
action: "none"
|
|
27
|
+
},
|
|
28
|
+
paymentInvestigationRequired: {
|
|
29
|
+
endsCommand: false,
|
|
30
|
+
message: "We still can’t confirm your payment. Please don’t make another payment. Contact the organiser so they can check your booking.",
|
|
31
|
+
action: "none"
|
|
32
|
+
},
|
|
33
|
+
paymentProviderUnavailable: {
|
|
34
|
+
endsCommand: false,
|
|
35
|
+
message: "We couldn’t reach the payment provider. Please try again in a minute.",
|
|
36
|
+
action: "retry"
|
|
37
|
+
},
|
|
38
|
+
paymentHostUnavailable: {
|
|
39
|
+
endsCommand: false,
|
|
40
|
+
message: "Card payments aren’t available on this web address yet. Please contact the organiser to book.",
|
|
41
|
+
action: "none"
|
|
42
|
+
},
|
|
43
|
+
paymentPageUnavailable: {
|
|
44
|
+
endsCommand: false,
|
|
45
|
+
message: "We couldn’t open the payment page. Please refresh this page and try again. If this keeps happening, contact the organiser for help.",
|
|
46
|
+
action: "retry"
|
|
47
|
+
},
|
|
48
|
+
paymentUnavailable: {
|
|
49
|
+
endsCommand: false,
|
|
50
|
+
message: "Online payment is not available for this event right now. Please contact the organiser for help with booking.",
|
|
51
|
+
action: "none"
|
|
52
|
+
},
|
|
53
|
+
capacityChanged: {
|
|
54
|
+
endsCommand: false,
|
|
55
|
+
message: "Sorry, there aren’t enough places left for your selection. Please check the available places and choose again.",
|
|
56
|
+
action: "places"
|
|
57
|
+
},
|
|
58
|
+
selectionChanged: {
|
|
59
|
+
endsCommand: false,
|
|
60
|
+
message: "The booking options for this event have changed. Please check the latest options and choose your places again.",
|
|
61
|
+
action: "places"
|
|
62
|
+
},
|
|
63
|
+
paymentSetupFailed: {
|
|
64
|
+
endsCommand: true,
|
|
65
|
+
message: "We couldn't set up payment for this booking, so your place hasn't been reserved and you haven't been charged. Please try again in a few minutes, or contact the organiser if it keeps happening.",
|
|
66
|
+
action: "retry"
|
|
67
|
+
},
|
|
68
|
+
registrationAttemptEnded: {
|
|
69
|
+
endsCommand: true,
|
|
70
|
+
message: "That booking attempt has ended, so we couldn't finish it. You haven't been charged. Please start your booking again.",
|
|
71
|
+
action: "start"
|
|
72
|
+
},
|
|
73
|
+
registrationPreparationChanged: {
|
|
74
|
+
endsCommand: true,
|
|
75
|
+
message: "The booking options for this event have changed. Please check the latest options and choose your places again.",
|
|
76
|
+
action: "places"
|
|
77
|
+
},
|
|
78
|
+
registrationAlreadyExists: {
|
|
79
|
+
endsCommand: false,
|
|
80
|
+
message: "You already have a booking for this event. Please check your bookings to see its status. If you need help, contact the organiser.",
|
|
81
|
+
action: "portal"
|
|
82
|
+
},
|
|
83
|
+
holdExpired: {
|
|
84
|
+
endsCommand: false,
|
|
85
|
+
message: "Your reservation has timed out. Please check availability and choose your places again.",
|
|
86
|
+
action: "start"
|
|
87
|
+
},
|
|
88
|
+
waitlistUnavailable: {
|
|
89
|
+
endsCommand: false,
|
|
90
|
+
message: "Sorry, the waiting list place offered in this invitation is no longer available. Please check the event for available places or contact the organiser for help.",
|
|
91
|
+
action: "event"
|
|
92
|
+
},
|
|
93
|
+
paymentContextMismatch: {
|
|
94
|
+
endsCommand: false,
|
|
95
|
+
message: "The payment options for this event have changed. Please check the latest options before continuing.",
|
|
96
|
+
action: "payment-options"
|
|
97
|
+
},
|
|
98
|
+
idempotencyConflict: {
|
|
99
|
+
endsCommand: false,
|
|
100
|
+
message: "You’ve already started booking this event. Please finish in the other tab if it’s still open, or check your booking status before starting again.",
|
|
101
|
+
action: "portal"
|
|
102
|
+
},
|
|
103
|
+
invalidCommitInput: {
|
|
104
|
+
endsCommand: false,
|
|
105
|
+
message: "We couldn’t accept your booking details. Please check the information you entered and try again. If this keeps happening, contact the organiser for help.",
|
|
106
|
+
action: "details"
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
function parseEventRegistrationErrorReason(value) {
|
|
110
|
+
return typeof value === "string" && Object.prototype.hasOwnProperty.call(eventRegistrationErrors, value) ? value : null;
|
|
111
|
+
}
|
|
112
|
+
/** Only a server-confirmed refusal ends an identity; transport uncertainty retains it. */
|
|
113
|
+
function eventRegistrationErrorEndsCommand(value) {
|
|
114
|
+
const reason = parseEventRegistrationErrorReason(value);
|
|
115
|
+
return reason !== null && eventRegistrationErrors[reason].endsCommand;
|
|
116
|
+
}
|
|
117
|
+
//#endregion
|
|
17
118
|
//#region ../blocks/src/system/runtime/shared/utils/portalLogout.ts
|
|
18
119
|
/**
|
|
19
120
|
* Portal Logout Utility
|
|
@@ -2386,6 +2487,7 @@ function resolveWizardDirectPaymentOptions(input) {
|
|
|
2386
2487
|
approvedPaymentOptions: eligibility.paymentOptions,
|
|
2387
2488
|
paymentTerms: eligibility.paymentTerms,
|
|
2388
2489
|
currency: eligibility.currency,
|
|
2490
|
+
instalmentCollectionDeadlineAt: eligibility.instalmentCollectionDeadlineAt,
|
|
2389
2491
|
quotedSubtotalCents: input.ticketSelectionSubtotalCents ?? eligibility.price,
|
|
2390
2492
|
totalPriceCents: calculateEventRegistrationPreviewTotal({
|
|
2391
2493
|
subtotalCents: input.ticketSelectionSubtotalCents ?? eligibility.price,
|
|
@@ -2425,7 +2527,7 @@ function resolveWizardPaymentView(input) {
|
|
|
2425
2527
|
}
|
|
2426
2528
|
//#endregion
|
|
2427
2529
|
//#region ../blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.tsx
|
|
2428
|
-
const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-
|
|
2530
|
+
const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-D_14yqAU.mjs"));
|
|
2429
2531
|
/** The one Stripe mount, shared by the standard wizard and headless arrangements. */
|
|
2430
2532
|
function EventPaymentMount({ state, onComplete, onRetry, onBack, buttonVariant }) {
|
|
2431
2533
|
if (state.kind === "abandoning") return /* @__PURE__ */ jsx("p", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { i as ThemedButtonLink } from "./ThemedButton-
|
|
2
|
+
import { st as normalizeLocationAddressText } from "./noop-ByVtIWf4.mjs";
|
|
3
|
+
import { i as ThemedButtonLink } from "./ThemedButton-8jUc02mZ.mjs";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region ../core/src/locationLinks.ts
|
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { ft as mapDrawingSchema } from "./noop-ByVtIWf4.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region ../blocks/src/system/runtime/nodes/events/domain/location.ts
|
|
6
|
+
function formatEventLocation(event) {
|
|
7
|
+
switch (event.deliveryMode) {
|
|
8
|
+
case "online": return "Online";
|
|
9
|
+
case "hybrid": return event.venue ? `${event.venue.name} + online` : "Hybrid";
|
|
10
|
+
case "in_person": return event.venue?.name ?? "In person";
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
/** The line under the venue name. A booked-only venue shows its area, and the address follows the booking. */
|
|
14
|
+
function eventVenuePlace(venue) {
|
|
15
|
+
if (venue.addressWithBooking) return {
|
|
16
|
+
place: venue.area ?? null,
|
|
17
|
+
addressWithBooking: true
|
|
18
|
+
};
|
|
19
|
+
return {
|
|
20
|
+
place: venue.address,
|
|
21
|
+
addressWithBooking: false
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
5
25
|
//#region ../blocks/src/system/runtime/nodes/svg.tsx
|
|
6
26
|
/**
|
|
7
27
|
* Strict SVG-`transform` validator.
|
|
@@ -197,4 +217,4 @@ function cropHeightStyle(height, heightAs) {
|
|
|
197
217
|
return heightAs === "minimum" ? { minHeight: height } : { height };
|
|
198
218
|
}
|
|
199
219
|
//#endregion
|
|
200
|
-
export { SvgNode as i, MapDrawingSvg as n, readableMapDrawing as r, AdmittedMapDrawingSvg as t };
|
|
220
|
+
export { eventVenuePlace as a, SvgNode as i, MapDrawingSvg as n, formatEventLocation as o, readableMapDrawing as r, AdmittedMapDrawingSvg as t };
|