@riverbankcms/sdk 0.183.0 → 0.185.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/README.md +34 -1
- package/dist/_dts/{BlocksIslandsHydrator-X1_G96iN.d.ts → BlocksIslandsHydrator-Bu0O7l4p.d.ts} +1 -1
- package/dist/_dts/{Page-CEqZJZEE.d.ts → Page-DYoL0IWL.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DQejfbXL.d.ts → SdkPreviewMode-DgFAiR8r.d.ts} +2 -2
- package/dist/_dts/{client-B_B_amKD.d.ts → client-BKdjJ7A0.d.ts} +35 -4
- package/dist/_dts/{content-types-Dhx5Ocvx.d.ts → content-types-6K7zlJuF.d.ts} +2 -2
- package/dist/_dts/{contracts-FeOnfoa1.d.ts → contracts-CUR8ccnX.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-m70J6tit.d.ts → generatePageMetadata-CveWSMew.d.ts} +2 -2
- package/dist/_dts/{index-CjAkEWAp.d.ts → index-6WypKfbu.d.ts} +4 -4
- package/dist/_dts/{index-iuFrbIjt.d.ts → index-BMwrFX_K.d.ts} +1 -1
- package/dist/_dts/{index-BxCmCit0.d.ts → index-Bp5lk6I8.d.ts} +1 -1
- package/dist/_dts/{index-BOpUh8kO.d.ts → index-DTKn1H8g.d.ts} +3 -3
- package/dist/_dts/{index-Bizdaxji.d.ts → index-DX-Xe54X.d.ts} +2 -2
- package/dist/_dts/{index-liuhlOX7.d.ts → index-SD1fTP_7.d.ts} +2 -2
- package/dist/_dts/{loadContent-D4wrTIIw.d.ts → loadContent-BN8GtRsL.d.ts} +7 -7
- package/dist/_dts/{request-Gn0O1blj.d.ts → request-BwYvMqLf.d.ts} +78461 -77905
- package/dist/_dts/{resolveBlockData-D5duwuqS.d.ts → resolveBlockData-CYy0VlSK.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-xzJ3c9Na.d.ts → resolvePageContent-BwUDLi_W.d.ts} +1 -1
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +7 -7
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/portal/index.d.ts +10 -2
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +36 -1
- package/dist/_dts/{serviceBookingOutline-B1gyJon_.d.ts → serviceBookingOutline-CMNev0gz.d.ts} +19 -8
- package/dist/_dts/{types-DBNuMtSk.d.ts → types-BBazdRQf.d.ts} +9 -10
- package/dist/_dts/{types-DHMcuoeQ.d.ts → types-BwngWRQ8.d.ts} +13 -15
- package/dist/_dts/{types-BoITy0rA.d.ts → types-C9_amrul.d.ts} +6 -2
- package/dist/_dts/{validation-BIPO-XlE.d.ts → validation-B58kUTuV.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-Ct8slgRk.mjs → BlocksIslandsHydrator-CooOPhs3.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-qqTxGGS4.mjs → BookingMailingListNote-D_khdttF.mjs} +61 -62
- package/dist/client/{BookingQuestionFields-DCh9MUIF.mjs → BookingQuestionFields-Bia1E7Cj.mjs} +49 -36
- package/dist/client/{CalendarAction-RcdaStG7.mjs → CalendarAction-C-AbMmct.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-D7Wt-Oaa.mjs → CalendarNavigationChevron-oaHxRbUO.mjs} +7 -7
- package/dist/client/{CheckboxChoice-BdGxZWeg.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-HFVkoOac.mjs → DemoBookingPortalAccess-M2xKYQjX.mjs} +7 -5
- package/dist/client/{EventCalendar.client-BtkJW8bA.mjs → EventCalendar.client-By7e9nyF.mjs} +11 -11
- package/dist/client/{EventCombined.client-DxaGjFFS.mjs → EventCombined.client-BdRZXB14.mjs} +10 -10
- package/dist/client/EventEmbeddedCheckoutStep-CJoxbx2Y.mjs +147 -0
- package/dist/client/{EventItem-Fr2qi2C2.mjs → EventItem-CDMa9zOX.mjs} +5 -5
- package/dist/client/{EventListWeekNavigation-BRMaq0ky.mjs → EventListWeekNavigation-B8WKaCrN.mjs} +1 -1
- package/dist/client/{EventListing.client-BhGxfbjt.mjs → EventListing.client-BEGiiFnO.mjs} +3 -3
- package/dist/client/{EventListing.view-COuEJzbO.mjs → EventListing.view-B6LOK-z4.mjs} +84 -7
- package/dist/client/{EventRegistrationPayment-BTLYhVxD.mjs → EventRegistrationPayment-CARdr15t.mjs} +140 -68
- package/dist/client/{Page-CgbQZP5g.mjs → Page-uP7AKSyp.mjs} +1762 -521
- package/dist/client/{ProtectedSubmitButton-BG7my0Qf.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
- package/dist/client/SiteChoiceGroup-BZ5I0Vhy.mjs +96 -0
- package/dist/client/{SiteTermsAgreementField-DQNkfNLA.mjs → SiteTermsAgreementField-BDqRo2C5.mjs} +3 -3
- package/dist/client/{StepIndicator-DvPekKeM.mjs → StepIndicator-BWrXAKvs.mjs} +1 -1
- package/dist/client/{StepIndicator-DyXoI3ob.mjs → StepIndicator-Cb3NMw-Y.mjs} +30 -18
- package/dist/client/{ThemedButton-Bc9DBbVp.mjs → ThemedButton-C4rCsPCt.mjs} +11 -2
- package/dist/client/{accessibleSurfaces-wj4Rloo5.mjs → accessibleSurfaces-q-dDOwsW.mjs} +750 -560
- package/dist/client/{accordion-BVXfjnh-.mjs → accordion-BYW2YSUN.mjs} +1 -1
- package/dist/client/{booking-form.client-DycPGtke.mjs → booking-form.client-DAlWWWjV.mjs} +110 -72
- package/dist/client/{bookingCalendar--aWnqFDn.mjs → bookingCalendar-9nFa_do4.mjs} +6 -2
- package/dist/client/{bookingForm-DrWSUqL3.mjs → bookingForm-DtVk9p5l.mjs} +7 -6
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-CduDRcIk.mjs → boxStyleClassNames-CaSq3-r-.mjs} +2 -2
- package/dist/client/{EventEmbeddedCheckoutStep-B2c5dR49.mjs → browserStripe-Dh-LcDoW.mjs} +36 -142
- package/dist/client/{buttonParts-CJEtVOUy.mjs → buttonParts-C39GC0kz.mjs} +9 -2
- package/dist/client/{carousel-DyCLMP8s.mjs → carousel-msur7fxW.mjs} +2 -2
- package/dist/client/{carousel.client-DffP_Nv0.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
- package/dist/client/{cart-BuEp_cj4.mjs → cart-Bx-JuY2n.mjs} +3 -3
- package/dist/client/{cart.client-CAO39uDG.mjs → cart.client-hB_9MimN.mjs} +1 -1
- package/dist/client/{checkout-BoxzT64s.mjs → checkout-BVWZn5Qu.mjs} +3 -3
- package/dist/client/{checkout.client-IGUy7XOx.mjs → checkout.client-Bt_GtHW9.mjs} +1 -1
- package/dist/client/{checkoutUrls-D0UsiFmm.mjs → checkoutUrls-CP-rQOZV.mjs} +1 -1
- package/dist/client/client.mjs +61 -48
- package/dist/client/{constants-C_8AxMdm.mjs → constants-yA1RJGXD.mjs} +1 -1
- package/dist/client/{context-D1L0pe__.mjs → context-CG77Keax.mjs} +43 -6
- package/dist/client/{dateFormatting-HvfmS_cH.mjs → dateFormatting-DIRIgfYr.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BunFTnIq.mjs → demoPortalMagicLink-CgzNiOQ0.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-CtLAG651.mjs → enhanceHeaderSection-DgzZNM2M.mjs} +4 -4
- package/dist/client/{event-registration.client-DiSxkBUP.mjs → event-registration.client-Ckb4aDE9.mjs} +118 -74
- package/dist/client/{eventCalendar-DUnhwZ1o.mjs → eventCalendar-lqqQSzBQ.mjs} +4 -4
- package/dist/client/{eventCombined-BvBQo0nF.mjs → eventCombined-BIMyHrd-.mjs} +4 -4
- package/dist/client/{eventListing-aTLifOX7.mjs → eventListing-CBYxfvNf.mjs} +4 -4
- package/dist/client/{eventRegistration-DFd7pr09.mjs → eventRegistration-BhAqvkCb.mjs} +7 -6
- package/dist/client/{form-Dikmc2AO.mjs → form-CkOfk-Eb.mjs} +3 -3
- package/dist/client/{form.client-zHaQK5I9.mjs → form.client-Whi43oio.mjs} +5 -5
- package/dist/client/{form.parts-BLl9n8TH.mjs → form.parts-BgsWo2Me.mjs} +3 -3
- package/dist/client/gifting/client.mjs +8 -8
- package/dist/client/{gifting-CufPM38H.mjs → gifting-XtNpLcFI.mjs} +4 -4
- package/dist/client/{gifting.client--N1GaSY8.mjs → gifting.client-CraWj4I4.mjs} +174 -73
- package/dist/client/{gifting.interactive-D9MK4HkV.mjs → gifting.interactive-DiPDObN0.mjs} +61 -10
- package/dist/client/{gifting.parts-CRtiRzo-.mjs → gifting.parts-_mgGOcbA.mjs} +17 -43
- package/dist/client/{headerSection-BIaBpmk3.mjs → headerSection-CPIN3VSU.mjs} +2 -2
- package/dist/client/{islands-DJDLGQEm.mjs → islands-C95FyxUF.mjs} +1996 -1178
- package/dist/client/{newsletter-form.client-wg_JHTxm.mjs → newsletter-form.client-BgVJdKVe.mjs} +7 -7
- package/dist/client/{newsletter-form.interactive-hzpkW9NQ.mjs → newsletter-form.interactive-DpcfRbI_.mjs} +39 -18
- package/dist/client/{newsletter-form.parts-CgzpSv9p.mjs → newsletter-form.parts-poPgHrUh.mjs} +2 -2
- package/dist/client/{newsletterForm-CvxLiEBT.mjs → newsletterForm-Dt6wFjTe.mjs} +3 -3
- package/dist/client/portal/client.mjs +999 -81
- package/dist/client/{portalOrders-tCxS04g0.mjs → portalOrders-CAfjTyV9.mjs} +1 -1
- package/dist/client/{portalRoutes-DTHlWg_F.mjs → portalRoutes-D3Ttfv5x.mjs} +54 -12
- package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
- package/dist/client/presentation-CudSUZ6Q.mjs +169 -0
- package/dist/client/{product-detail.client-22Q7zgjN.mjs → product-detail.client-BrBNT7Mq.mjs} +1 -1
- package/dist/client/{product-list.client-DFWYvK8z.mjs → product-list.client-CftTl7n6.mjs} +1 -1
- package/dist/client/{productDetail-DhZAwo60.mjs → productDetail-b1tpt585.mjs} +3 -3
- package/dist/client/{productList-BiVpbZK2.mjs → productList-DRT5sabi.mjs} +3 -3
- package/dist/client/{propsDecoder-DFYqKnLy.mjs → propsDecoder-Co1VXFaW.mjs} +4 -4
- package/dist/client/{registry.server-C3OBRg7x.mjs → registry.server-0UDNY7dO.mjs} +796 -715
- package/dist/client/rendering/client.mjs +28 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-ms477Z08.mjs → richText-coerce-BFDEPZZA.mjs} +2 -2
- package/dist/client/{routeIslandApiConfig-B6nQeqvH.mjs → routeIslandApiConfig-DtqRutuX.mjs} +1 -1
- package/dist/client/{runtimeResponse-BYqsV1Kb.mjs → runtimeResponse-DBVXbcuz.mjs} +1 -1
- package/dist/client/runtimeResponse-LQnQdtNI.mjs +3 -0
- package/dist/client/{shop-xt4dQ3HH.mjs → shop-DL3CYR7i.mjs} +3 -3
- package/dist/client/{shop-commerce-DVsIcPaI.mjs → shop-commerce-CDth2_qq.mjs} +45 -27
- package/dist/client/{shop-commerce-store-7mO6KY7_.mjs → shop-commerce-store-CE0aaSHJ.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-L1Vge8tG.mjs → shop-discount-apply.state-p4aXtVsF.mjs} +2 -2
- package/dist/client/{shop.client-DNJfD3VQ.mjs → shop.client-BI2iw6Z3.mjs} +83 -29
- package/dist/client/{shopShared-DS8t6749.mjs → shopShared-BNWzgWAC.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{src-Do_s2lqH.mjs → src-CJf3u16T.mjs} +1 -1
- package/dist/{preview-next/client/src-lX6heoDA.mjs → client/src-CMuv8vSO.mjs} +5 -1
- package/dist/client/src-CXOxpNtj.mjs +3 -0
- package/dist/client/{timetableModel-Dy3nNfTG.mjs → timetableModel-DZzGD6rS.mjs} +9 -9
- package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CJDylOUe.mjs} +44 -1
- package/dist/client/{useAvailableSlots-DcjtDpUu.mjs → useAvailableSlots-nD6nuvSW.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-DvdFFWOT.mjs → useDiscountCodeUi-DMtTHqex.mjs} +6 -2
- package/dist/client/{useEventPagination-Cq-7sU5_.mjs → useEventPagination-CM-DCokc.mjs} +14 -16
- package/dist/client/{view-4gnPcpWJ.mjs → view-CHOhliHv.mjs} +4 -4
- package/dist/client/{wizardSteps-DDvL3iza.mjs → wizardSteps-BbroaNkT.mjs} +277 -87
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CLqSRUpt.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-CIdAg-Tm.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-Bm85jX35.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-D8srnz9R.mjs → PageSectionToolbar-CR99z8BL.mjs} +582 -195
- package/dist/preview-next/client/{PreviewEditorSidebar-DVpk5cqp.mjs → PreviewEditorSidebar-BaKS6H8F.mjs} +1096 -283
- package/dist/preview-next/client/{PreviewEditorUI-XoTtHSFH.mjs → PreviewEditorUI-D6IG119o.mjs} +65 -16
- package/dist/preview-next/client/{PreviewShell-VQHsRg2u.mjs → PreviewShell-CKjkFOZS.mjs} +39 -12
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CLdF9f6o.mjs → SdkPreviewModeRuntime-BexDQWGj.mjs} +128 -27
- package/dist/preview-next/client/{ThemedButton-ORNN4x-3.mjs → ThemedButton-CRgbU75r.mjs} +18 -2
- package/dist/preview-next/client/{lucide-react-eAi3tDAr.mjs → lucide-react-B4c6U3ZU.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-CqH91EwA.mjs → previewAssistantSlot-DcEwU9l_.mjs} +7192 -3039
- package/dist/preview-next/client/{previewChromeRoot-B3ySEu6p.mjs → previewChromeRoot-VqseF0yf.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CdpSupcr.mjs → sdk-runtime-DcoVpKUf.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-C6eOP6QW.mjs → siteStyleAccess-BL1fZnUD.mjs} +16 -10
- package/dist/{client/src-uwCpbHXG.mjs → preview-next/client/src-B5x3r4cg.mjs} +5 -1
- package/dist/preview-next/client/src-CrT7h--V.mjs +3 -0
- package/dist/preview-next/client/{useAutosaveStatus-BhPg4e-r.mjs → useAutosaveStatus-CdFnzKac.mjs} +3 -3
- package/dist/preview-next/client/{useOpenBlockForSetup-BaWUF9D7.mjs → useOpenBlockForSetup-B62h7dhR.mjs} +4 -3
- package/dist/preview-next/container-responsive.css +158 -3
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-Ch0X99vE.mjs → route-contract-CQfEvfbg.mjs} +54 -41
- package/dist/server/{Block.shared-B2FmczLO.mjs → Block.shared-CbGnxkWX.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-DtAyv9qA.mjs → ThemeScopeCore-BjxlpVaV.mjs} +34 -8
- package/dist/server/{accessibleSurfaces-BtPqb76u.mjs → accessibleSurfaces-CZ7pLuJ7.mjs} +317 -148
- package/dist/server/{accordions-vzdZ2Wt1.mjs → accordions-C_C52VkS.mjs} +1 -1
- package/dist/server/{bindings-B_9JuU66.mjs → bindings-D-n66Oqc.mjs} +68 -247
- package/dist/server/{client-DC7cjiSw.mjs → client-BGGlrkft.mjs} +64 -47
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-d6nPNJpe.mjs → constants-TkO9Uxma.mjs} +51 -9
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-hb27HYic.mjs → loadContent-8H1hHdXo.mjs} +4 -4
- package/dist/server/{loadPage-JToD8wDD.mjs → loadPage-BZyqF_g3.mjs} +3 -3
- package/dist/server/lookMediaFrame-Dw6R9B0L.mjs +31837 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{navigation-B2WhGofA.mjs → navigation-9TOyY5Zf.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-vD5KTClL.mjs → overrideResolution-CuduOS6V.mjs} +1 -1
- package/dist/server/page-converter.mjs +17 -4
- package/dist/server/{pageRenderPlan-CdqJ1NQZ.mjs → pageRenderPlan-DmP0HVMu.mjs} +618 -209
- package/dist/server/{pageRuntimeSupport-CAhr4oOf.mjs → pageRuntimeSupport-BQ1dWs1V.mjs} +12 -5
- package/dist/server/{pageShared-m80Xu2pd.mjs → pageShared-ALu7y5Dq.mjs} +836 -516
- package/dist/server/{parseThemeForPersistence-CRwOZfpa.mjs → parseThemeForPersistence-D_8I28BB.mjs} +3 -3
- package/dist/server/{portal-B2wCQno_.mjs → portal-P4oHSRho.mjs} +23 -2
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-BWIkFaXq.mjs → prebuild-BLL6RhjS.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-D1PHU-K9.mjs → prefetchBlockData-aR5W1dVF.mjs} +3 -3
- package/dist/server/{registry-KtsOsAzY.mjs → registry-DD_s7l3Y.mjs} +1575 -28658
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +9 -9
- package/dist/server/{resolveBlockData-sjIDJYl7.mjs → resolveBlockData-DnQ2N0lI.mjs} +2 -2
- package/dist/server/{expandPalette-DxPrNOAB.mjs → resolveButtonColourStates-ChlP4NJ9.mjs} +1662 -1430
- package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-D6F1tvIm.mjs} +1 -1
- package/dist/server/{schema-BBEqquBM.mjs → schema-ClDfFtz2.mjs} +261 -6
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-ChEZDRwU.mjs → servicePageContent-CsUerbJ1.mjs} +15 -12
- package/dist/server/theme-bridge.mjs +5 -4
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-DKCIBeb1.mjs → three-pass-converter-CLJrZb7s.mjs} +1 -1
- package/dist/server/{titleSourceSchema-DybHErxH.mjs → titleSourceSchema-DA_iErtG.mjs} +2 -3
- package/dist/server/{types-vyz09w64.mjs → types-CcKy8_tj.mjs} +14 -5
- package/dist/server/{validation-Cvi-1TZZ.mjs → validation-BbImAsVs.mjs} +5 -5
- package/dist/server/{version-B-icAIV1.mjs → version-BY48jPoe.mjs} +1 -1
- package/dist/styles/index.css +684 -181
- package/package.json +1 -1
- package/dist/client/appointment-service-categories-Cl2pqw-z.mjs +0 -70
- package/dist/client/runtimeResponse-CUX_lldL.mjs +0 -3
- package/dist/client/src-DqMbCjI1.mjs +0 -3
- package/dist/preview-next/client/src-EO5QoRlU.mjs +0 -3
- package/dist/server/customCss-rtIfEYwQ.mjs +0 -230
- package/dist/server/lookMediaFrame-CTsycLLK.mjs +0 -2756
- package/dist/server/media-gvfIw3z8.mjs +0 -216
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { d as buildEventCalendarListingRender, kt as buildEventRuntimeFilters, on as buildEventListWeek, sn as eventListWeekDays } from "./newsletter-form.interactive-
|
|
3
|
-
import { g as resolveCalendarReadProfile } from "./src-
|
|
4
|
-
import {
|
|
5
|
-
import { f as resolveMonthSelectedDay, i as WeekAgendaView, r as CalendarLoadFailure, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-
|
|
6
|
-
import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-
|
|
7
|
-
import { n as ThemedButton } from "./ThemedButton-
|
|
8
|
-
import {
|
|
9
|
-
import { u as eventDisplayTitleText } from "./EventItem-
|
|
10
|
-
import { a as CalendarDayCell, c as MonthLookClient, d as useCalendarToday, i as useHydrationReady, l as EventModalProvider, o as useCalendarEvents, r as EventModals, s as useCalendarViewport, t as EventCombinedClient, u as useEventModal } from "./EventCombined.client-
|
|
11
|
-
import { i as useEventCollectionFilters } from "./useEventPagination-
|
|
12
|
-
import { n as EventListingController } from "./EventListing.client-
|
|
2
|
+
import { d as buildEventCalendarListingRender, kt as buildEventRuntimeFilters, on as buildEventListWeek, sn as eventListWeekDays } from "./newsletter-form.interactive-DpcfRbI_.mjs";
|
|
3
|
+
import { g as resolveCalendarReadProfile } from "./src-CJf3u16T.mjs";
|
|
4
|
+
import { Yo as formatEventHourLabel, ts as groupEventsByDate } from "./wizardSteps-BbroaNkT.mjs";
|
|
5
|
+
import { f as resolveMonthSelectedDay, i as WeekAgendaView, r as CalendarLoadFailure, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-oaHxRbUO.mjs";
|
|
6
|
+
import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-DZzGD6rS.mjs";
|
|
7
|
+
import { n as ThemedButton } from "./ThemedButton-C4rCsPCt.mjs";
|
|
8
|
+
import { f as formatDateKey, h as getOrderedDayNames } from "./src-CMuv8vSO.mjs";
|
|
9
|
+
import { u as eventDisplayTitleText } from "./EventItem-CDMa9zOX.mjs";
|
|
10
|
+
import { a as CalendarDayCell, c as MonthLookClient, d as useCalendarToday, i as useHydrationReady, l as EventModalProvider, o as useCalendarEvents, r as EventModals, s as useCalendarViewport, t as EventCombinedClient, u as useEventModal } from "./EventCombined.client-BdRZXB14.mjs";
|
|
11
|
+
import { i as useEventCollectionFilters } from "./useEventPagination-CM-DCokc.mjs";
|
|
12
|
+
import { n as EventListingController } from "./EventListing.client-BEGiiFnO.mjs";
|
|
13
13
|
import { useEffect, useMemo, useState } from "react";
|
|
14
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
//#region ../blocks/src/system/runtime/nodes/events/shared/WeekTimetableView.tsx
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { At as getEventRuntimeFiltersKey, kt as buildEventRuntimeFilters, qt as toError, s as eventListingBlockRuntime } from "./newsletter-form.interactive-
|
|
3
|
-
import { Ft as calendarMonthDate, d as calendarQueryKey, f as calendarWindowBounds, h as planCalendarMonthRanges, l as calendarMonthKey, nn as formatDate, p as calendarWindowMonths$1, u as calendarPageResponseError, yn as getLocalScheduleDate } from "./src-
|
|
4
|
-
import {
|
|
5
|
-
import { a as AgendaEventCard, c as MonthLookView, d as buildMonthDay, f as resolveMonthSelectedDay, i as WeekAgendaView, o as CombinedLookFrame, r as CalendarLoadFailure, s as combinedClassName, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-
|
|
6
|
-
import { n as useBlockApi } from "./context-
|
|
7
|
-
import { d as listLookSlot } from "./islands-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { u as eventDisplayTitleText } from "./EventItem-
|
|
2
|
+
import { At as getEventRuntimeFiltersKey, kt as buildEventRuntimeFilters, qt as toError, s as eventListingBlockRuntime } from "./newsletter-form.interactive-DpcfRbI_.mjs";
|
|
3
|
+
import { Ft as calendarMonthDate, d as calendarQueryKey, f as calendarWindowBounds, h as planCalendarMonthRanges, l as calendarMonthKey, nn as formatDate, p as calendarWindowMonths$1, u as calendarPageResponseError, yn as getLocalScheduleDate } from "./src-CJf3u16T.mjs";
|
|
4
|
+
import { Bo as eventCalendarWeekStart, Ho as eventDateOptions, es as formatTime, ro as getBlockApiReadStage, ts as groupEventsByDate, zo as buildCalendarViewport } from "./wizardSteps-BbroaNkT.mjs";
|
|
5
|
+
import { a as AgendaEventCard, c as MonthLookView, d as buildMonthDay, f as resolveMonthSelectedDay, i as WeekAgendaView, o as CombinedLookFrame, r as CalendarLoadFailure, s as combinedClassName, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-oaHxRbUO.mjs";
|
|
6
|
+
import { n as useBlockApi } from "./context-CG77Keax.mjs";
|
|
7
|
+
import { d as listLookSlot } from "./islands-C95FyxUF.mjs";
|
|
8
|
+
import { O as clsx, n as ThemedButton } from "./ThemedButton-C4rCsPCt.mjs";
|
|
9
|
+
import { b as shiftCalendarAnchorDate, f as formatDateKey, h as getOrderedDayNames, l as addMonths, v as isSameCalendarDay } from "./src-CMuv8vSO.mjs";
|
|
10
|
+
import { u as eventDisplayTitleText } from "./EventItem-CDMa9zOX.mjs";
|
|
11
11
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
12
12
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
13
|
-
import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-
|
|
13
|
+
import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-CM-DCokc.mjs";
|
|
14
14
|
import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
15
15
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
//#region ../blocks/src/system/runtime/shared/components/TabBarFragment.tsx
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { r as loadBrowserStripe } from "./browserStripe-Dh-LcDoW.mjs";
|
|
3
|
+
import { D as SpinnerNode, n as ThemedButton } from "./ThemedButton-C4rCsPCt.mjs";
|
|
4
|
+
import { useEffect, useRef, useState } from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region ../commerce/src/purchase/checkoutPresentation.ts
|
|
7
|
+
function publishableKeyMode(publishableKey) {
|
|
8
|
+
if (publishableKey.startsWith("pk_live_")) return "live";
|
|
9
|
+
if (publishableKey.startsWith("pk_test_")) return "test";
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
function checkBrowserStripeKey(publishableKey, livemode) {
|
|
13
|
+
const key = publishableKey?.trim();
|
|
14
|
+
if (!key) return {
|
|
15
|
+
tag: "unavailable",
|
|
16
|
+
reason: "missing_key"
|
|
17
|
+
};
|
|
18
|
+
const mode = publishableKeyMode(key);
|
|
19
|
+
if (mode === null) return {
|
|
20
|
+
tag: "unavailable",
|
|
21
|
+
reason: "invalid_key"
|
|
22
|
+
};
|
|
23
|
+
return mode === (livemode ? "live" : "test") ? {
|
|
24
|
+
tag: "ready",
|
|
25
|
+
publishableKey: key
|
|
26
|
+
} : {
|
|
27
|
+
tag: "unavailable",
|
|
28
|
+
reason: "mode_mismatch"
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/EventEmbeddedCheckoutStep.tsx
|
|
33
|
+
function useStripeMount(props, container, load) {
|
|
34
|
+
const [status, setStatus] = useState("loading");
|
|
35
|
+
const callbacks = useRef(props);
|
|
36
|
+
callbacks.current = props;
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
const lifecycle = {
|
|
39
|
+
active: true,
|
|
40
|
+
instance: null
|
|
41
|
+
};
|
|
42
|
+
setStatus("loading");
|
|
43
|
+
const fail = () => {
|
|
44
|
+
if (!lifecycle.active) return;
|
|
45
|
+
lifecycle.active = false;
|
|
46
|
+
lifecycle.instance?.destroy();
|
|
47
|
+
lifecycle.instance = null;
|
|
48
|
+
setStatus("failed");
|
|
49
|
+
};
|
|
50
|
+
const timeout = window.setTimeout(fail, 3e4);
|
|
51
|
+
const mount = async () => {
|
|
52
|
+
if (checkBrowserStripeKey(props.checkout.browser.publishableKey, props.checkout.livemode).tag !== "ready") throw new Error("Invalid payment configuration");
|
|
53
|
+
const stripe = await load(props.checkout.browser);
|
|
54
|
+
if (!lifecycle.active) return;
|
|
55
|
+
if (!stripe) throw new Error("Payment form unavailable");
|
|
56
|
+
const instance = await stripe.createEmbeddedCheckoutPage({
|
|
57
|
+
clientSecret: props.checkout.clientSecret,
|
|
58
|
+
onComplete: () => {
|
|
59
|
+
if (lifecycle.active) callbacks.current.onComplete();
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
if (!lifecycle.active || !container.current) {
|
|
63
|
+
instance.destroy();
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
lifecycle.instance = instance;
|
|
67
|
+
instance.mount(container.current);
|
|
68
|
+
clearTimeout(timeout);
|
|
69
|
+
setStatus("ready");
|
|
70
|
+
};
|
|
71
|
+
mount().catch(fail);
|
|
72
|
+
return () => {
|
|
73
|
+
lifecycle.active = false;
|
|
74
|
+
clearTimeout(timeout);
|
|
75
|
+
lifecycle.instance?.destroy();
|
|
76
|
+
};
|
|
77
|
+
}, [
|
|
78
|
+
props.checkout,
|
|
79
|
+
container,
|
|
80
|
+
load
|
|
81
|
+
]);
|
|
82
|
+
return status;
|
|
83
|
+
}
|
|
84
|
+
function EventEmbeddedCheckoutStep(props) {
|
|
85
|
+
return /* @__PURE__ */ jsx(EventEmbeddedCheckoutStepWithDeps, {
|
|
86
|
+
...props,
|
|
87
|
+
load: loadBrowserStripe
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
function EventEmbeddedCheckoutStepWithDeps(props) {
|
|
91
|
+
const container = useRef(null);
|
|
92
|
+
const heading = useRef(null);
|
|
93
|
+
const status = useStripeMount(props, container, props.load);
|
|
94
|
+
useEffect(() => {
|
|
95
|
+
if (props.onBack) heading.current?.focus();
|
|
96
|
+
}, [props.onBack]);
|
|
97
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
98
|
+
className: "er-embedded-payment",
|
|
99
|
+
children: [
|
|
100
|
+
props.onBack ? /* @__PURE__ */ jsx("button", {
|
|
101
|
+
type: "button",
|
|
102
|
+
className: "er-back-btn er-embedded-payment__back",
|
|
103
|
+
onClick: props.onBack,
|
|
104
|
+
children: "← Back"
|
|
105
|
+
}) : null,
|
|
106
|
+
/* @__PURE__ */ jsx("h2", {
|
|
107
|
+
ref: heading,
|
|
108
|
+
tabIndex: -1,
|
|
109
|
+
className: "rb-sr-only",
|
|
110
|
+
children: "Payment"
|
|
111
|
+
}),
|
|
112
|
+
status === "loading" && /* @__PURE__ */ jsxs("div", {
|
|
113
|
+
className: "er-center er-message",
|
|
114
|
+
role: "status",
|
|
115
|
+
"aria-live": "polite",
|
|
116
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
117
|
+
className: "er-icon",
|
|
118
|
+
children: /* @__PURE__ */ jsx(SpinnerNode, { size: "lg" })
|
|
119
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
120
|
+
className: "er-text--muted",
|
|
121
|
+
children: "Loading secure payment…"
|
|
122
|
+
})]
|
|
123
|
+
}),
|
|
124
|
+
status === "failed" && /* @__PURE__ */ jsxs("div", {
|
|
125
|
+
className: "er-center er-message",
|
|
126
|
+
role: "alert",
|
|
127
|
+
children: [/* @__PURE__ */ jsx("p", {
|
|
128
|
+
className: "er-text--muted er-message",
|
|
129
|
+
children: "We couldn’t load the payment form."
|
|
130
|
+
}), /* @__PURE__ */ jsx(ThemedButton, {
|
|
131
|
+
type: "button",
|
|
132
|
+
variant: props.buttonVariant,
|
|
133
|
+
size: "md",
|
|
134
|
+
onClick: props.onRetry,
|
|
135
|
+
label: "Try again"
|
|
136
|
+
})]
|
|
137
|
+
}),
|
|
138
|
+
/* @__PURE__ */ jsx("div", {
|
|
139
|
+
ref: container,
|
|
140
|
+
className: "er-message",
|
|
141
|
+
style: { width: "100%" }
|
|
142
|
+
})
|
|
143
|
+
]
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
//#endregion
|
|
147
|
+
export { EventEmbeddedCheckoutStepWithDeps, EventEmbeddedCheckoutStep as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Cn as formatEventPrice, Qt as CardListLeadDate, Zt as CardListContentPart, en as resolveCardListSchedule, nn as EventQuickFacts, tn as selectCardListPresentation } from "./newsletter-form.interactive-
|
|
3
|
-
import { $
|
|
4
|
-
import { d as listLookSlot, l as listItemPresentation } from "./islands-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { Cn as formatEventPrice, Qt as CardListLeadDate, Zt as CardListContentPart, en as resolveCardListSchedule, nn as EventQuickFacts, tn as selectCardListPresentation } from "./newsletter-form.interactive-DpcfRbI_.mjs";
|
|
3
|
+
import { $o as formatEventWeekdayTime, Ao as getEventAvailabilityStatus, Eo as formatEventRemainingPlaces, Ho as eventDateOptions, Qo as formatEventTimeRange, bo as resolveEventPageLink, qo as formatEventCompactDateRail, rc as orderedLiveRunSessions, yo as resolveEventCta } from "./wizardSteps-BbroaNkT.mjs";
|
|
4
|
+
import { d as listLookSlot, l as listItemPresentation } from "./islands-C95FyxUF.mjs";
|
|
5
|
+
import { F as resolveOnColorForThemeToken, L as resolveTokenOrCssColorValue, P as isCssColorLiteral, et as pickBlackOrWhiteTextColor } from "./accessibleSurfaces-q-dDOwsW.mjs";
|
|
6
|
+
import { p as ClockIcon, r as ThemedButtonLink } from "./ThemedButton-C4rCsPCt.mjs";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region ../blocks/src/system/runtime/nodes/events/domain/people.ts
|
package/dist/client/{EventListWeekNavigation-BRMaq0ky.mjs → EventListWeekNavigation-B8WKaCrN.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { d as listLookSlot } from "./islands-
|
|
2
|
+
import { d as listLookSlot } from "./islands-C95FyxUF.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 { kt as buildEventRuntimeFilters } from "./newsletter-form.interactive-
|
|
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 { kt as buildEventRuntimeFilters } from "./newsletter-form.interactive-DpcfRbI_.mjs";
|
|
3
|
+
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-B8WKaCrN.mjs";
|
|
4
|
+
import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-CM-DCokc.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,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Cn as formatEventPrice, in as MediaNodeServer, ln as groupEventsByWeek, nn as EventQuickFacts, un as weekColumnDays } from "./newsletter-form.interactive-
|
|
3
|
-
import {
|
|
4
|
-
import { d as listLookSlot, l as listItemPresentation } from "./islands-
|
|
5
|
-
import { r as boxStyleClassNames } from "./boxStyleClassNames-
|
|
6
|
-
import {
|
|
7
|
-
import { c as MapPinIcon, d as formatCourseDatesAfter, f as formatCourseSessions, l as eventDisplayTitle, m as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-
|
|
2
|
+
import { Cn as formatEventPrice, in as MediaNodeServer, ln as groupEventsByWeek, nn as EventQuickFacts, un as weekColumnDays } from "./newsletter-form.interactive-DpcfRbI_.mjs";
|
|
3
|
+
import { Go as formatDate, Ho as eventDateOptions, Qo as formatEventTimeRange, Uo as eventLocalDateKey, Xo as formatEventNextDateFact, bo as resolveEventPageLink, hc as EVENT_ADDRESS_AFTER_BOOKING_LABEL, po as eventVenuePlace, qo as formatEventCompactDateRail, rs as ImagePresets, ts as groupEventsByDate, vo as resolveEventCardBooking, yo as resolveEventCta } from "./wizardSteps-BbroaNkT.mjs";
|
|
4
|
+
import { d as listLookSlot, l as listItemPresentation } from "./islands-C95FyxUF.mjs";
|
|
5
|
+
import { r as boxStyleClassNames } from "./boxStyleClassNames-CaSq3-r-.mjs";
|
|
6
|
+
import { p as ClockIcon, r as ThemedButtonLink } from "./ThemedButton-C4rCsPCt.mjs";
|
|
7
|
+
import { c as MapPinIcon, d as formatCourseDatesAfter, f as formatCourseSessions, l as eventDisplayTitle, m as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-CDMa9zOX.mjs";
|
|
8
8
|
import "react";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventCard.tsx
|
|
@@ -474,6 +474,83 @@ const EmptyState = ({ message = "No upcoming events scheduled.", className, hasA
|
|
|
474
474
|
});
|
|
475
475
|
};
|
|
476
476
|
//#endregion
|
|
477
|
+
//#region ../blocks/src/system/blocks/events/eventFilterChoices.ts
|
|
478
|
+
/**
|
|
479
|
+
* When the calendar's filters have something to do, decided once. Two
|
|
480
|
+
* questions, with different answers:
|
|
481
|
+
*
|
|
482
|
+
* - A visitor's menu needs a choice: more than one host, venue or category
|
|
483
|
+
* with upcoming events. The page's menus (`useEventFilters`) and the
|
|
484
|
+
* settings that switch them on both read `filterOffersChoice`.
|
|
485
|
+
* - A filter the owner fixes ("Only show one venue") needs to narrow what's
|
|
486
|
+
* shown: several to choose from, or one that some upcoming events don't
|
|
487
|
+
* have, such as a studio beside online classes. A solo teacher who hosts
|
|
488
|
+
* everything is never asked to pick themselves.
|
|
489
|
+
*
|
|
490
|
+
* The page counts what's in this block; the form reads the whole site,
|
|
491
|
+
* which never has less. So where the site can't fill a menu, no block can.
|
|
492
|
+
*/
|
|
493
|
+
function filterOffersChoice(count) {
|
|
494
|
+
return count > 1;
|
|
495
|
+
}
|
|
496
|
+
/** The category menu: "auto" waits for more than one category with events; "always" settles for one. */
|
|
497
|
+
function categoryMenuShows(setting, count) {
|
|
498
|
+
if (setting === "never") return false;
|
|
499
|
+
return setting === "always" ? count > 0 : filterOffersChoice(count);
|
|
500
|
+
}
|
|
501
|
+
/** What the page's menus can offer: a filter option counts once it has upcoming events. */
|
|
502
|
+
function hasUpcomingEvents(option) {
|
|
503
|
+
return option.upcomingCount > 0;
|
|
504
|
+
}
|
|
505
|
+
/** Whether fixing the calendar to one value would leave some upcoming events out. */
|
|
506
|
+
function fixedFilterNarrows(spread) {
|
|
507
|
+
return spread === "several" || spread === "one-for-some";
|
|
508
|
+
}
|
|
509
|
+
const spreads = [
|
|
510
|
+
"none",
|
|
511
|
+
"one-for-all",
|
|
512
|
+
"one-for-some",
|
|
513
|
+
"several"
|
|
514
|
+
];
|
|
515
|
+
/** How many options a menu would hold for each spread. */
|
|
516
|
+
const menuOptions = {
|
|
517
|
+
"none": 0,
|
|
518
|
+
"one-for-all": 1,
|
|
519
|
+
"one-for-some": 1,
|
|
520
|
+
"several": 2
|
|
521
|
+
};
|
|
522
|
+
/** A fact condition written out from a rule: it holds for each spread the rule accepts. An unread fact leaves it unknown, so the field stays. */
|
|
523
|
+
function factCondition(fact, accepts) {
|
|
524
|
+
return { anyOf: spreads.filter(accepts).map((is) => ({
|
|
525
|
+
fact,
|
|
526
|
+
is
|
|
527
|
+
})) };
|
|
528
|
+
}
|
|
529
|
+
/** A fixed filter also stays while it holds a choice, so one still narrowing the page can always be seen and cleared. */
|
|
530
|
+
function fixedFilter(fact, field) {
|
|
531
|
+
return { anyOf: [factCondition(fact, fixedFilterNarrows), {
|
|
532
|
+
field,
|
|
533
|
+
hasValue: true
|
|
534
|
+
}] };
|
|
535
|
+
}
|
|
536
|
+
const hostMenu = factCondition("eventFilters.hosts", (spread) => filterOffersChoice(menuOptions[spread]));
|
|
537
|
+
const venueMenu = factCondition("eventFilters.venues", (spread) => filterOffersChoice(menuOptions[spread]));
|
|
538
|
+
const categoryMenu = factCondition("eventFilters.categories", (spread) => categoryMenuShows("always", menuOptions[spread]));
|
|
539
|
+
const eventFilterConditions = {
|
|
540
|
+
showStaffFilter: hostMenu,
|
|
541
|
+
showVenueFilter: venueMenu,
|
|
542
|
+
showCategoryFilter: categoryMenu,
|
|
543
|
+
/** "Show filters" with no menu that could appear has nothing to switch on. */
|
|
544
|
+
showFilters: { anyOf: [
|
|
545
|
+
hostMenu,
|
|
546
|
+
venueMenu,
|
|
547
|
+
categoryMenu
|
|
548
|
+
] },
|
|
549
|
+
filterStaffMemberId: fixedFilter("eventFilters.hosts", "filterStaffMemberId"),
|
|
550
|
+
filterVenueId: fixedFilter("eventFilters.venues", "filterVenueId"),
|
|
551
|
+
filterCategoryIds: fixedFilter("eventFilters.categories", "filterCategoryIds")
|
|
552
|
+
};
|
|
553
|
+
//#endregion
|
|
477
554
|
//#region ../blocks/src/system/runtime/nodes/events/EventListing.view.tsx
|
|
478
555
|
function EventListingFrameView(props) {
|
|
479
556
|
const { display, filters, emptyState, renderEventCard } = props;
|
|
@@ -735,4 +812,4 @@ function DaySchedule({ display }) {
|
|
|
735
812
|
});
|
|
736
813
|
}
|
|
737
814
|
//#endregion
|
|
738
|
-
export {
|
|
815
|
+
export { filterOffersChoice as a, EventCompactRow as c, eventFilterConditions as i, EventCard as l, eventListSlotParents as n, hasUpcomingEvents as o, categoryMenuShows as r, EmptyState as s, EventListingFrameView as t };
|