@riverbankcms/sdk 0.179.0 → 0.181.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 +2 -2
- package/dist/_dts/{BlocksIslandsHydrator-DKwgs95u.d.ts → BlocksIslandsHydrator-CVCasDPz.d.ts} +1 -1
- package/dist/_dts/{Page-lWenra5i.d.ts → Page-Dtj2Ui3S.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-BRxhRw4I.d.ts → SdkPreviewMode-D1f_60WW.d.ts} +3 -2
- package/dist/_dts/{client-qWn7xAwJ.d.ts → client-Chr9pNVW.d.ts} +288 -121
- package/dist/_dts/{content-types-DL6GIvTm.d.ts → content-types-kjccgopX.d.ts} +2 -2
- package/dist/_dts/{contracts-CzWyAiJj.d.ts → contracts-BodaiS00.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-CBKd0cJ4.d.ts → generatePageMetadata-BS6kaJFp.d.ts} +2 -2
- package/dist/_dts/{index-DCiSHd-C.d.ts → index-Brl6_I2j.d.ts} +5 -4
- package/dist/_dts/{index-CaCum9mM.d.ts → index-CJkefwYh.d.ts} +2 -2
- package/dist/_dts/{index-7CDBZGb-.d.ts → index-D1WpKwQe.d.ts} +1 -1
- package/dist/_dts/{index-BU9uAkHB.d.ts → index-DG0OvBs0.d.ts} +8 -8
- package/dist/_dts/{index-BYnG_vF5.d.ts → index-Diqt0PvG.d.ts} +1 -1
- package/dist/_dts/{index-CZgJrhzT.d.ts → index-Dy50xUMK.d.ts} +2 -2
- package/dist/_dts/{loadContent-CPKbFQyq.d.ts → loadContent-BgxshKrA.d.ts} +7 -7
- package/dist/_dts/{request-BjKBCS7t.d.ts → request-CA0izds5.d.ts} +4561 -1390
- package/dist/_dts/{resolveBlockData-DupbMCup.d.ts → resolveBlockData-ChQmwEd3.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BqNyCHi8.d.ts → resolvePageContent-BvGyvblj.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 -2
- package/dist/_dts/sdk/src/index.d.ts +104 -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 +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +84 -53
- 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 +43 -56
- package/dist/_dts/sdk/src/portal/index.d.ts +3 -18
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{serviceBookingOutline-YcsIjvn1.d.ts → serviceBookingOutline-BgFbJQhU.d.ts} +8 -7
- package/dist/_dts/{types-B7e6Lmo5.d.ts → types-CQrsP1x_.d.ts} +3 -3
- package/dist/_dts/{types-CT-KOxl_.d.ts → types-CgS3xLk8.d.ts} +7 -2
- package/dist/_dts/{types-BOxSq-Bq.d.ts → types-R65DKjPn.d.ts} +9 -8
- package/dist/_dts/{validation-Dz6qccue.d.ts → validation-6LTIbuBA.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-1XifJg6V.mjs → BlocksIslandsHydrator-DqZPz6oW.mjs} +19 -19
- package/dist/client/{BookingMailingListNote-BsbEgagJ.mjs → BookingMailingListNote-uWfR2kaG.mjs} +177 -70
- package/dist/client/{BookingQuestionFields-C8IbeLHj.mjs → BookingQuestionFields-CyNIKw6k.mjs} +23 -82
- package/dist/client/CalendarAction-D_Glwvz2.mjs +105 -0
- package/dist/client/{CalendarNavigationChevron-Bbqij1XQ.mjs → CalendarNavigationChevron-BGCX3zwG.mjs} +6 -6
- package/dist/client/{CheckboxChoice-BZPLCgTU.mjs → CheckboxChoice-C8i4NraK.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-uA9H8LIL.mjs → DemoBookingPortalAccess-DFLPyuqe.mjs} +18 -10
- package/dist/client/{EventCalendar.client-yoSI77ov.mjs → EventCalendar.client-zDL4-t-B.mjs} +10 -10
- package/dist/client/{EventCombined.client-HeCNlliq.mjs → EventCombined.client-uciDKLID.mjs} +60 -10
- package/dist/client/{EventEmbeddedCheckoutStep-BDnicDM6.mjs → EventEmbeddedCheckoutStep-BGkbUhuw.mjs} +1 -1
- package/dist/client/{EventItem-Duhk1vnF.mjs → EventItem-CwzrjcRw.mjs} +8 -7
- package/dist/client/{EventListWeekNavigation-BiutEqPK.mjs → EventListWeekNavigation-ChvcnPma.mjs} +1 -1
- package/dist/client/{EventListing.client-B5ln77jG.mjs → EventListing.client-DA57Qoyx.mjs} +3 -3
- package/dist/client/{EventListing.view-hUDhNtMv.mjs → EventListing.view-DZ0qMFF4.mjs} +8 -211
- package/dist/client/{EventRegistrationPayment-DqtX1vB2.mjs → EventRegistrationPayment-DSqCJL8E.mjs} +1657 -403
- package/dist/client/{Page-ChJ2TGVk.mjs → Page-C7mygH_f.mjs} +536 -287
- package/dist/client/{ProtectedSubmitButton-De6AzhE6.mjs → ProtectedSubmitButton-BNnKuir8.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-CDBU31xW.mjs → SiteTermsAgreementField-B4z-e4Wq.mjs} +27 -24
- package/dist/client/{StepIndicator-JQA-VuEH.mjs → StepIndicator-Dn_DY4oY.mjs} +1 -1
- package/dist/client/{StepIndicator-2Dl9zon2.mjs → StepIndicator-atfDU82W.mjs} +21 -13
- package/dist/client/{ThemedButton-CnSa7o-I.mjs → ThemedButton-PFOhXktM.mjs} +1 -33
- package/dist/client/{accessibleSurfaces-Wl8-_OVJ.mjs → accessibleSurfaces-n6kS6Hct.mjs} +77 -1
- package/dist/client/{accordion-B6SqU49k.mjs → accordion-CsW8U3ff.mjs} +1 -1
- package/dist/client/{booking-form.client-DrEOjQ3N.mjs → booking-form.client-cBWM392H.mjs} +442 -86
- package/dist/client/bookingCalendar--aWnqFDn.mjs +180 -0
- package/dist/client/{bookingForm-drZBwEZW.mjs → bookingForm-DgySpp6C.mjs} +4 -4
- package/dist/client/bookings.mjs +51 -15
- package/dist/client/{boxStyleClassNames-DEh45w16.mjs → boxStyleClassNames-BpGVdLFD.mjs} +2 -2
- package/dist/client/{carousel-C-YJliD-.mjs → carousel-DJoleFV3.mjs} +2 -2
- package/dist/client/{carousel.client-DMtGYTTM.mjs → carousel.client-BtLwHefX.mjs} +1 -1
- package/dist/client/{cart-acGFWK9R.mjs → cart-EO5o6uPH.mjs} +3 -3
- package/dist/client/{cart.client-BzlOGP2j.mjs → cart.client-D_gPw45z.mjs} +1 -1
- package/dist/client/{checkout-SEontwhy.mjs → checkout-NVfZW0kR.mjs} +3 -3
- package/dist/client/{checkout.client-C0Qvh-d4.mjs → checkout.client-DD3JuqOy.mjs} +1 -1
- package/dist/client/{checkoutUrls-yUKeq1N9.mjs → checkoutUrls-z2gXvlGw.mjs} +1 -1
- package/dist/client/client.mjs +306 -196
- package/dist/client/constants-CoOkvw__.mjs +100 -0
- package/dist/client/{context-DTrwaQtg.mjs → context-CRhn9qzS.mjs} +922 -388
- package/dist/client/{dateFormatting-Cg8E1r9l.mjs → dateFormatting-BnWB4L1s.mjs} +15 -25
- package/dist/client/{demoPortalMagicLink-D0kOJYOX.mjs → demoPortalMagicLink-CWDGSTBu.mjs} +2 -3
- package/dist/client/{enhanceHeaderSection-DyrpZ7ks.mjs → enhanceHeaderSection-tdP_-Z9o.mjs} +4 -5
- package/dist/client/{event-registration.client-RLZQWi2V.mjs → event-registration.client-D7YYKySQ.mjs} +2084 -1640
- package/dist/client/{eventCalendar-CphYnImh.mjs → eventCalendar-CsAfu5d0.mjs} +4 -4
- package/dist/client/{eventCombined-BvqjASB_.mjs → eventCombined-VXJB5CoS.mjs} +4 -4
- package/dist/client/{eventListing-BaNAoC_M.mjs → eventListing-B3KIZNfY.mjs} +4 -4
- package/dist/client/{eventRegistration-COMHoRl6.mjs → eventRegistration-BP-dEk1c.mjs} +4 -4
- package/dist/client/{form-DyH2juYT.mjs → form-DM8Zbxbv.mjs} +3 -3
- package/dist/client/{form.client-DBwzkB0M.mjs → form.client-e2z_Tlgk.mjs} +5 -5
- package/dist/client/{form.parts-CY4kX3mh.mjs → form.parts-Ctljy1a3.mjs} +3 -3
- package/dist/client/gifting/client.mjs +32 -29
- package/dist/client/{gifting-CIx4V378.mjs → gifting-DWIsqQru.mjs} +4 -4
- package/dist/client/{gifting.client-BEVPpzJM.mjs → gifting.client-QsSWF0uA.mjs} +5 -5
- package/dist/client/{gifting.parts-VnORjnZK.mjs → gifting.parts-CedLgwa_.mjs} +2 -2
- package/dist/client/{headerSection-DGcJfRS8.mjs → headerSection-DAkRkwb-.mjs} +2 -2
- package/dist/client/{mediaAssets-B99AP7ai.mjs → mediaAssets-COfQolI3.mjs} +1 -1
- package/dist/client/{mediaContext-Fusweriw.mjs → mediaContext-DzvnjYXm.mjs} +1 -1
- package/dist/client/{newsletter-form.client-BvEDkjiD.mjs → newsletter-form.client-WYja9-WN.mjs} +7 -7
- package/dist/client/{newsletter-form.interactive-DCO1lErD.mjs → newsletter-form.interactive-RuM86VAv.mjs} +37 -44
- package/dist/client/{newsletter-form.parts-BIy4IUT3.mjs → newsletter-form.parts-2petDnWv.mjs} +2 -2
- package/dist/client/{newsletterForm-CoTXDNFS.mjs → newsletterForm-BUbXdA_e.mjs} +3 -3
- package/dist/client/{lookSurfaces-IqT_SVnX.mjs → noop-Dl4mZ-rr.mjs} +257 -49
- package/dist/client/portal/client.mjs +11779 -6745
- package/dist/client/portalOrders-COGn4BKG.mjs +596 -0
- package/dist/client/portalRoutes-D72yvtDh.mjs +862 -0
- package/dist/client/{product-detail.client-YHQ2aKX1.mjs → product-detail.client-pOAryevt.mjs} +1 -1
- package/dist/client/{product-list.client-DxoZw1vF.mjs → product-list.client-CcUpUiud.mjs} +1 -1
- package/dist/client/{productDetail-DjuFvkey.mjs → productDetail-BZJCfqat.mjs} +3 -3
- package/dist/client/{productList-DE9GEFoZ.mjs → productList-CiRs3mNb.mjs} +3 -3
- package/dist/client/{propsDecoder-Cyag_HOs.mjs → propsDecoder--uHW4tFM.mjs} +2 -2
- package/dist/client/{registry.server-BPwV-0Pp.mjs → registry.server-CDNNd8wC.mjs} +318 -235
- package/dist/client/{renderableMediaAssetAdmission-BlfqYLJW.mjs → renderableMediaAssetAdmission-BsOWd9lf.mjs} +1 -1
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +16 -8
- package/dist/client/{richText-coerce-NrRqDeOg.mjs → richText-coerce-CQGE_wHV.mjs} +2 -1
- package/dist/client/{routeIslandApiConfig-BWq5gKFK.mjs → routeIslandApiConfig-BtCg87-N.mjs} +1 -1
- package/dist/client/{runtimeResponse-D2j2-mOk.mjs → runtimeResponse-DL_ARBpa.mjs} +1 -1
- package/dist/client/{runtimeResponse-DtWSfWSZ.mjs → runtimeResponse-Ds9cmBUf.mjs} +1 -1
- package/dist/client/{shop-C3wM0Hr4.mjs → shop-Rx_gEMK8.mjs} +3 -3
- package/dist/client/{shop-commerce-34YvcpbX.mjs → shop-commerce-D8evQnMT.mjs} +53 -16
- package/dist/client/{shop-commerce-store-B7xHksOs.mjs → shop-commerce-store-C9PcsSTj.mjs} +22 -5
- package/dist/client/{shop-discount-apply.state-BiBnozfO.mjs → shop-discount-apply.state-D5CtGfJI.mjs} +2 -2
- package/dist/client/{shop.client-C0v88nLd.mjs → shop.client-D4lzQ9oY.mjs} +17 -39
- package/dist/client/{shopShared-Ct-BRNez.mjs → shopShared-BVbq7Nm-.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/src-Al4ooTl_.mjs +164 -0
- package/dist/client/{src-CCtanNlD.mjs → src-ZSqRK3dD.mjs} +345 -92
- package/dist/client/{timetableModel-lhE29TNT.mjs → timetableModel-BQJrSK0K.mjs} +205 -80
- package/dist/client/{shop-add-feedback-DvC2kP1K.mjs → urlParams-C2QHo1Pa.mjs} +1 -42
- package/dist/client/{useAvailableSlots-BelJviOT.mjs → useAvailableSlots-Dm3lKJKR.mjs} +3 -24
- package/dist/client/{useDiscountCodeUi-rQRE1-Ho.mjs → useDiscountCodeUi-klgfGn7f.mjs} +1 -1
- package/dist/client/{useEventPagination-C4rS2Xxl.mjs → useEventPagination-Jnjt7_ly.mjs} +8 -8
- package/dist/client/{view-LJVHVqsy.mjs → view-CC_yQLSA.mjs} +4 -4
- package/dist/client/{wizardSteps-CNDsxeJH.mjs → wizardSteps-BliJOzEX.mjs} +2512 -675
- package/dist/preview-next/before-render.mjs +1 -0
- package/dist/preview-next/client/{LocationPickerEnvironment-BHAT81Wx.mjs → LocationPickerEnvironment-BW3dRFIv.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-B52hkdIZ.mjs → MapLibreEditMap-Db9BHyXh.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-C4TtBPN-.mjs → PageSectionToolbar-BhL0uADo.mjs} +4 -4
- package/dist/preview-next/client/{PreviewEditorSidebar-D6fkE59-.mjs → PreviewEditorSidebar-Ct8eIm0i.mjs} +8 -7
- package/dist/preview-next/client/{PreviewEditorUI-amcDlj0O.mjs → PreviewEditorUI-BS32G4V9.mjs} +5 -5
- package/dist/preview-next/client/{PreviewShell-DeQjx4zk.mjs → PreviewShell-RL0WfZXD.mjs} +7 -7
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Cx0SXnoX.mjs → SdkPreviewModeRuntime-MK_gHeGy.mjs} +39 -7
- package/dist/preview-next/client/{lucide-react-McYZeSMb.mjs → lucide-react-00FF_oar.mjs} +13 -1
- package/dist/preview-next/client/{previewAssistantSlot-aqpU34WI.mjs → previewAssistantSlot-CQyS8pcq.mjs} +10318 -3719
- package/dist/preview-next/client/{previewChromeRoot-D3Gy_Rs0.mjs → previewChromeRoot-BSxp3Mfu.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-Dzx_RrN7.mjs → sdk-runtime-DKnTzy74.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-LHedw83e.mjs → siteStyleAccess-BlmbvbLN.mjs} +37 -25
- package/dist/preview-next/client/{useAutosaveStatus-DpSd9aVk.mjs → useAutosaveStatus-D-7GwZOQ.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-BGZn5AT1.mjs → useOpenBlockForSetup-BNZtGM5g.mjs} +2 -2
- package/dist/preview-next/container-responsive.css +292 -170
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DnL-FgSV.mjs → route-contract-R3PcMmax.mjs} +114 -37
- package/dist/server/{Block.shared-BEbq6EwO.mjs → Block.shared-CniF9tSu.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-DFEM1a85.mjs → ThemeScopeCore-BQWsnGT6.mjs} +133 -120
- package/dist/server/{accessibleSurfaces-CM3QANtw.mjs → accessibleSurfaces-WPzUAHp4.mjs} +33 -2
- package/dist/server/accordions-By_0Ykks.mjs +111 -0
- package/dist/server/{bindings-Bly0dRs7.mjs → bindings-DxojjtK3.mjs} +7 -7
- package/dist/server/{client-CGJ2ztYp.mjs → client-CDndhbYO.mjs} +1412 -1307
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/constants-VyF5nEhL.mjs +1474 -0
- package/dist/server/{customCss-BZ8YSrQg.mjs → customCss-C9kgPHvr.mjs} +41 -5
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-BkK1w3QQ.mjs → loadContent-BKstMBmX.mjs} +7 -4
- package/dist/server/{loadPage-DTLe0FEs.mjs → loadPage-IgNnZaqr.mjs} +3 -3
- package/dist/server/{lookMediaFrame-CaH018pK.mjs → lookMediaFrame-TFjgNG61.mjs} +74 -18
- package/dist/server/manifest.mjs +36 -25
- package/dist/server/{mapLocation-BM5WX7FY.mjs → mapLocation-MDDSubTp.mjs} +1 -1
- package/dist/server/media-BRmYrnzb.mjs +31 -0
- package/dist/server/{media-luf7RF22.mjs → media-gvfIw3z8.mjs} +2 -31
- package/dist/server/{navigation-BcNfYYuu.mjs → navigation-quBYlSKD.mjs} +2 -2
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +170 -104
- package/dist/server/{overrideResolution-Uy9Zp2Ks.mjs → overrideResolution-CCaAPpIa.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-JzxBnqfV.mjs → pageRenderPlan-B7iULvKe.mjs} +15 -12
- package/dist/server/{pageRuntimeSupport-DyNSd2Yj.mjs → pageRuntimeSupport-BytMroxn.mjs} +9 -5
- package/dist/server/{pageShared-DU4ETFPS.mjs → pageShared-Dcs_XTIO.mjs} +836 -624
- package/dist/server/{parseThemeForPersistence-DOsfofCy.mjs → parseThemeForPersistence-Bihl4W5K.mjs} +3 -2
- package/dist/server/{portal-B4JVkdjc.mjs → portal-CMW_b9mG.mjs} +62 -46
- package/dist/server/portal.mjs +3 -3
- package/dist/server/portalQuestions-oUyohgL9.mjs +225 -0
- package/dist/server/{prebuild-8jNtDXmS.mjs → prebuild-agaH-vZV.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-xeMG42aw.mjs → prefetchBlockData-DwpRjqw4.mjs} +5 -3
- package/dist/server/{registry-DH1VrsCl.mjs → registry-DM9dHfDC.mjs} +582 -526
- 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 +10 -9
- package/dist/server/{resolveBlockData-BN8tweTx.mjs → resolveBlockData-CinHGf8l.mjs} +39 -31
- package/dist/server/{resolveButtonColourStates--6yJp9Tq.mjs → resolveButtonColourStates-B0O1IM16.mjs} +2 -1028
- package/dist/server/{resolvePageContent-DnM16_f9.mjs → resolvePageContent-BWKUZUIn.mjs} +1 -1
- package/dist/server/{responseMedia-F-ElH2Rd.mjs → responseMedia-IfH65QAH.mjs} +57 -2
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-BpsqaSSU.mjs → schema-CwfxQjc4.mjs} +10 -113
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-B-FezJmH.mjs → servicePageContent-BBBhOtdE.mjs} +31 -26
- package/dist/server/theme-bridge.mjs +3 -2
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-39SXCCnh.mjs → three-pass-converter-DPaUPTfl.mjs} +34 -16
- package/dist/server/titleSourceSchema-NhK6azFS.mjs +2018 -0
- package/dist/server/typeGuards-CTW_9AXq.mjs +413 -0
- package/dist/server/types-BKaBZFjD.mjs +1085 -0
- package/dist/server/{validation-3jOzYdPL.mjs → validation-DG5jX3jH.mjs} +70 -17
- package/dist/server/{version-8t0o6_jd.mjs → version-CipbxPHL.mjs} +1 -1
- package/dist/server/video-Cdr3wh-q.mjs +272 -0
- package/dist/styles/index.css +3446 -3796
- package/package.json +2 -1
- package/dist/_dts/index-DVSipdrT.d.ts +0 -101
- package/dist/client/TabBarFragment-DlKQRhP4.mjs +0 -56
- package/dist/client/checkoutRoute-DKlZRNZD.mjs +0 -22
- package/dist/client/constants-4o4_hl34.mjs +0 -6
- package/dist/client/creditProducts-BQ1t1erI.mjs +0 -266
- package/dist/client/formatDate-CTEN7gxW.mjs +0 -26
- package/dist/server/constants-Cj7hfbrA.mjs +0 -41
- package/dist/server/richTextSchema-QLaQrbII.mjs +0 -212
- package/dist/server/titleSourceSchema-Cu-3PRvv.mjs +0 -122
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $t as
|
|
3
|
-
import {
|
|
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 {
|
|
2
|
+
import { $t as buildEventListWeek, an as buildEventRuntimeFilters, d as buildEventCalendarListingRender, en as eventListWeekDays } from "./newsletter-form.interactive-RuM86VAv.mjs";
|
|
3
|
+
import { g as resolveCalendarReadProfile } from "./src-ZSqRK3dD.mjs";
|
|
4
|
+
import { Ro as formatEventHourLabel, Wo as groupEventsByDate } from "./wizardSteps-BliJOzEX.mjs";
|
|
5
|
+
import { f as resolveMonthSelectedDay, i as WeekAgendaView, r as CalendarLoadFailure, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-BGCX3zwG.mjs";
|
|
6
|
+
import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-BQJrSK0K.mjs";
|
|
7
|
+
import { n as ThemedButton } from "./ThemedButton-PFOhXktM.mjs";
|
|
8
8
|
import { d as formatDateKey, m as getOrderedDayNames } from "./src-uwCpbHXG.mjs";
|
|
9
|
-
import { u as eventDisplayTitleText } from "./EventItem-
|
|
10
|
-
import { i as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
9
|
+
import { u as eventDisplayTitleText } from "./EventItem-CwzrjcRw.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-uciDKLID.mjs";
|
|
11
|
+
import { i as useEventCollectionFilters } from "./useEventPagination-Jnjt7_ly.mjs";
|
|
12
|
+
import { n as EventListingController } from "./EventListing.client-DA57Qoyx.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,19 +1,69 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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 {
|
|
8
|
-
import {
|
|
2
|
+
import { Bt as toError, an as buildEventRuntimeFilters, on as getEventRuntimeFiltersKey, s as eventListingBlockRuntime } from "./newsletter-form.interactive-RuM86VAv.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-ZSqRK3dD.mjs";
|
|
4
|
+
import { Oo as buildCalendarViewport, Qa as getBlockApiReadStage, Uo as formatTime, Wo as groupEventsByDate, jo as eventDateOptions, ko as eventCalendarWeekStart } from "./wizardSteps-BliJOzEX.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-BGCX3zwG.mjs";
|
|
6
|
+
import { n as useBlockApi } from "./context-CRhn9qzS.mjs";
|
|
7
|
+
import { i as listLookSlot } from "./noop-Dl4mZ-rr.mjs";
|
|
8
|
+
import { n as ThemedButton, x as clsx } from "./ThemedButton-PFOhXktM.mjs";
|
|
9
9
|
import { _ as isSameCalendarDay, c as addMonths, d as formatDateKey, m as getOrderedDayNames, y as shiftCalendarAnchorDate } from "./src-uwCpbHXG.mjs";
|
|
10
|
-
import { u as eventDisplayTitleText } from "./EventItem-
|
|
10
|
+
import { u as eventDisplayTitleText } from "./EventItem-CwzrjcRw.mjs";
|
|
11
11
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
12
12
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
13
|
-
import { t as
|
|
14
|
-
import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-C4rS2Xxl.mjs";
|
|
13
|
+
import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-Jnjt7_ly.mjs";
|
|
15
14
|
import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
16
15
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
//#region ../blocks/src/system/runtime/shared/components/TabBarFragment.tsx
|
|
17
|
+
function clampIndex(idx, len) {
|
|
18
|
+
if (len <= 0) return 0;
|
|
19
|
+
const mod = idx % len;
|
|
20
|
+
return mod < 0 ? mod + len : mod;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* TabBarFragment
|
|
24
|
+
*
|
|
25
|
+
* Shared tablist behavior for blocks. Styling is delegated to passed classNames,
|
|
26
|
+
* so blocks can keep their own look (e.g. customer portal pills vs. event underline tabs).
|
|
27
|
+
*
|
|
28
|
+
* Includes basic keyboard navigation (ArrowLeft/Right, Home/End) and focuses the next tab.
|
|
29
|
+
*/
|
|
30
|
+
function TabBarFragment({ tabs, activeTab, onTabChange, ariaLabel, listAttributes, tabAttributes, className, tabClassName, activeTabClassName }) {
|
|
31
|
+
return /* @__PURE__ */ jsx("div", {
|
|
32
|
+
className,
|
|
33
|
+
...listAttributes,
|
|
34
|
+
role: "tablist",
|
|
35
|
+
"aria-label": ariaLabel,
|
|
36
|
+
children: tabs.map((tab, idx) => {
|
|
37
|
+
const isActive = tab.id === activeTab;
|
|
38
|
+
return /* @__PURE__ */ jsx("button", {
|
|
39
|
+
type: "button",
|
|
40
|
+
...tabAttributes?.(isActive),
|
|
41
|
+
role: "tab",
|
|
42
|
+
"aria-selected": isActive,
|
|
43
|
+
tabIndex: isActive ? 0 : -1,
|
|
44
|
+
className: clsx(tabClassName, isActive && activeTabClassName),
|
|
45
|
+
onClick: () => onTabChange(tab.id),
|
|
46
|
+
onKeyDown: (e) => handleTabKey(e, tabs, idx, onTabChange),
|
|
47
|
+
children: tab.label
|
|
48
|
+
}, tab.id);
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function handleTabKey(e, tabs, idx, onTabChange) {
|
|
53
|
+
if (tabs.length === 0) return;
|
|
54
|
+
if (!(e.currentTarget instanceof HTMLButtonElement)) return;
|
|
55
|
+
const nextIdx = e.key === "ArrowRight" ? clampIndex(idx + 1, tabs.length) : e.key === "ArrowLeft" ? clampIndex(idx - 1, tabs.length) : e.key === "Home" ? 0 : e.key === "End" ? tabs.length - 1 : null;
|
|
56
|
+
if (nextIdx === null) return;
|
|
57
|
+
e.preventDefault();
|
|
58
|
+
const nextId = tabs[nextIdx]?.id;
|
|
59
|
+
if (!nextId) return;
|
|
60
|
+
onTabChange(nextId);
|
|
61
|
+
const tabList = e.currentTarget.closest("[role=\"tablist\"]");
|
|
62
|
+
requestAnimationFrame(() => {
|
|
63
|
+
(tabList?.querySelectorAll("[role=\"tab\"]") ?? null)?.[nextIdx]?.focus();
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
17
67
|
//#region ../blocks/src/system/runtime/hooks/useCalendarToday.ts
|
|
18
68
|
const SEARCH_STEP_MS = 3600 * 1e3;
|
|
19
69
|
const MAX_BOUNDARY_SEARCH_MS = 72 * SEARCH_STEP_MS;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { b as SpinnerNode, n as ThemedButton } from "./ThemedButton-PFOhXktM.mjs";
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region \0rolldown/runtime.js
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { R as isCssColorLiteral, V as resolveTokenOrCssColorValue,
|
|
7
|
-
import {
|
|
2
|
+
import { Gt as CardListLeadDate, Jt as selectCardListPresentation, Wt as CardListContentPart, Yt as EventQuickFacts, qt as resolveCardListSchedule, xn as formatEventPrice } from "./newsletter-form.interactive-RuM86VAv.mjs";
|
|
3
|
+
import { Gs as resolveWholeSeriesBookingPhase, Ho as formatEventWeekdayTime, Io as formatEventCompactDateRail, Vo as formatEventTimeRange, Ws as orderedLiveRunSessions, do as hasEventBookingClosedEarly, ho as formatEventRemainingPlaces, jo as eventDateOptions, mo as canJoinEventWaitlistOnAnyMode, uo as resolveRuntimeEventDestination, xo as isEventFull, yo as getEventAvailabilityStatus } from "./wizardSteps-BliJOzEX.mjs";
|
|
4
|
+
import { h as assertNever } from "./bookingCalendar--aWnqFDn.mjs";
|
|
5
|
+
import { i as listLookSlot, n as listItemPresentation } from "./noop-Dl4mZ-rr.mjs";
|
|
6
|
+
import { R as isCssColorLiteral, V as resolveTokenOrCssColorValue, ut as getTextColorForBackground, z as resolveOnColorForThemeToken } from "./accessibleSurfaces-n6kS6Hct.mjs";
|
|
7
|
+
import { f as ClockIcon, r as ThemedButtonLink } from "./ThemedButton-PFOhXktM.mjs";
|
|
8
8
|
import React from "react";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
//#region ../blocks/src/system/runtime/nodes/events/domain/cta.ts
|
|
@@ -838,7 +838,8 @@ function cardItemSlotParents(arrangement) {
|
|
|
838
838
|
"item-media": "item",
|
|
839
839
|
dates: body,
|
|
840
840
|
date: arrangement === "slides" || arrangement === "track" ? "item-media" : "dates",
|
|
841
|
-
availability: body
|
|
841
|
+
availability: body,
|
|
842
|
+
facts: body
|
|
842
843
|
};
|
|
843
844
|
}
|
|
844
845
|
//#endregion
|
package/dist/client/{EventListWeekNavigation-BiutEqPK.mjs → EventListWeekNavigation-ChvcnPma.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { i as listLookSlot } from "./noop-Dl4mZ-rr.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 { an as buildEventRuntimeFilters } from "./newsletter-form.interactive-RuM86VAv.mjs";
|
|
3
|
+
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-ChvcnPma.mjs";
|
|
4
|
+
import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-Jnjt7_ly.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,208 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { r as
|
|
6
|
-
import { r as
|
|
7
|
-
import {
|
|
8
|
-
import { _ as resolveEventLinkProps, c as MapPinIcon, d as formatCourseDatesAfter, f as formatCourseSessions, g as resolveEventCta, h as resolveEventCardBooking, l as eventDisplayTitle, m as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-Duhk1vnF.mjs";
|
|
2
|
+
import { Yt as EventQuickFacts, Zt as MediaNodeServer, nn as groupEventsByWeek, rn as weekColumnDays, xn as formatEventPrice } from "./newsletter-form.interactive-RuM86VAv.mjs";
|
|
3
|
+
import { Io as formatEventCompactDateRail, Ko as ImagePresets, Mo as eventLocalDateKey, Po as formatDate, Vo as formatEventTimeRange, Wo as groupEventsByDate, co as eventVenuePlace, jo as eventDateOptions, nc as EVENT_ADDRESS_AFTER_BOOKING_LABEL, zo as formatEventNextDateFact } from "./wizardSteps-BliJOzEX.mjs";
|
|
4
|
+
import { i as listLookSlot, n as listItemPresentation } from "./noop-Dl4mZ-rr.mjs";
|
|
5
|
+
import { r as boxStyleClassNames } from "./boxStyleClassNames-BpGVdLFD.mjs";
|
|
6
|
+
import { f as ClockIcon, r as ThemedButtonLink } from "./ThemedButton-PFOhXktM.mjs";
|
|
7
|
+
import { _ as resolveEventLinkProps, c as MapPinIcon, d as formatCourseDatesAfter, f as formatCourseSessions, g as resolveEventCta, h as resolveEventCardBooking, l as eventDisplayTitle, m as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-CwzrjcRw.mjs";
|
|
9
8
|
import "react";
|
|
10
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
-
//#region ../blocks/src/system/runtime/nodes/svg.tsx
|
|
12
|
-
/**
|
|
13
|
-
* Strict SVG-`transform` validator.
|
|
14
|
-
*
|
|
15
|
-
* Accepts only a whitespace/comma-separated list of the geometric transform
|
|
16
|
-
* functions (`translate`/`rotate`/`scale`/`skewX`/`skewY`/`matrix`) whose
|
|
17
|
-
* arguments are plain numbers. This deliberately rejects anything else —
|
|
18
|
-
* `url(...)`, CSS functions, `javascript:`, angle/length units, stray letters —
|
|
19
|
-
* so a persisted custom-block tree can't smuggle an executable or exfiltrating
|
|
20
|
-
* value into the attribute.
|
|
21
|
-
*/
|
|
22
|
-
const TRANSFORM_NUMBER = String.raw`-?(?:\d+\.?\d*|\.\d+)(?:e-?\d+)?`;
|
|
23
|
-
const TRANSFORM_ARGS = String.raw`${TRANSFORM_NUMBER}(?:[\s,]+${TRANSFORM_NUMBER})*`;
|
|
24
|
-
const TRANSFORM_FN = String.raw`(?:translate|rotate|scale|skewX|skewY|matrix)\(\s*${TRANSFORM_ARGS}\s*\)`;
|
|
25
|
-
const SAFE_TRANSFORM_RE = new RegExp(String.raw`^\s*${TRANSFORM_FN}(?:[\s,]*${TRANSFORM_FN})*\s*$`);
|
|
26
|
-
function safeTransform(value) {
|
|
27
|
-
if (typeof value !== "string") return void 0;
|
|
28
|
-
const trimmed = value.trim();
|
|
29
|
-
if (trimmed.length === 0) return void 0;
|
|
30
|
-
return SAFE_TRANSFORM_RE.test(trimmed) ? trimmed : void 0;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Turn paint props into a CSS style object. Colour values pass through as-is so
|
|
34
|
-
* they may reference theme tokens via `var()`, which only resolves in a CSS
|
|
35
|
-
* property context (not in a bare presentation attribute).
|
|
36
|
-
*/
|
|
37
|
-
function paintStyle(shape) {
|
|
38
|
-
const style = {};
|
|
39
|
-
if (shape.fill !== void 0) style.fill = shape.fill;
|
|
40
|
-
if (shape.stroke !== void 0) style.stroke = shape.stroke;
|
|
41
|
-
if (shape.strokeWidth !== void 0) style.strokeWidth = shape.strokeWidth;
|
|
42
|
-
if (shape.fillOpacity !== void 0) style.fillOpacity = shape.fillOpacity;
|
|
43
|
-
if (shape.strokeOpacity !== void 0) style.strokeOpacity = shape.strokeOpacity;
|
|
44
|
-
if (shape.strokeLinecap !== void 0) style.strokeLinecap = shape.strokeLinecap;
|
|
45
|
-
if (shape.strokeLinejoin !== void 0) style.strokeLinejoin = shape.strokeLinejoin;
|
|
46
|
-
if (shape.strokeDasharray !== void 0) style.strokeDasharray = shape.strokeDasharray;
|
|
47
|
-
return style;
|
|
48
|
-
}
|
|
49
|
-
function renderShape(shape, key) {
|
|
50
|
-
const style = paintStyle(shape);
|
|
51
|
-
const transform = safeTransform(shape.transform);
|
|
52
|
-
switch (shape.kind) {
|
|
53
|
-
case "text": return /* @__PURE__ */ jsx("text", {
|
|
54
|
-
className: shape.className,
|
|
55
|
-
x: shape.x,
|
|
56
|
-
y: shape.y,
|
|
57
|
-
transform,
|
|
58
|
-
children: shape.text
|
|
59
|
-
}, key);
|
|
60
|
-
case "path": return /* @__PURE__ */ jsx("path", {
|
|
61
|
-
d: shape.d,
|
|
62
|
-
className: shape.className,
|
|
63
|
-
fillRule: shape.fillRule,
|
|
64
|
-
style,
|
|
65
|
-
transform
|
|
66
|
-
}, key);
|
|
67
|
-
case "ellipse": return /* @__PURE__ */ jsx("ellipse", {
|
|
68
|
-
cx: shape.cx,
|
|
69
|
-
cy: shape.cy,
|
|
70
|
-
rx: shape.rx,
|
|
71
|
-
ry: shape.ry,
|
|
72
|
-
style,
|
|
73
|
-
transform
|
|
74
|
-
}, key);
|
|
75
|
-
case "circle": return /* @__PURE__ */ jsx("circle", {
|
|
76
|
-
cx: shape.cx,
|
|
77
|
-
cy: shape.cy,
|
|
78
|
-
r: shape.r,
|
|
79
|
-
style,
|
|
80
|
-
transform
|
|
81
|
-
}, key);
|
|
82
|
-
case "rect": return /* @__PURE__ */ jsx("rect", {
|
|
83
|
-
x: shape.x,
|
|
84
|
-
y: shape.y,
|
|
85
|
-
className: shape.className,
|
|
86
|
-
width: shape.width,
|
|
87
|
-
height: shape.height,
|
|
88
|
-
rx: shape.rx,
|
|
89
|
-
ry: shape.ry,
|
|
90
|
-
style,
|
|
91
|
-
transform
|
|
92
|
-
}, key);
|
|
93
|
-
case "line": return /* @__PURE__ */ jsx("line", {
|
|
94
|
-
x1: shape.x1,
|
|
95
|
-
y1: shape.y1,
|
|
96
|
-
x2: shape.x2,
|
|
97
|
-
y2: shape.y2,
|
|
98
|
-
style,
|
|
99
|
-
transform
|
|
100
|
-
}, key);
|
|
101
|
-
default: return null;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
const SvgNode = ({ blockId: _blockId, blockKind: _blockKind, blockContent: _blockContent, fragmentRegistry: _fragmentRegistry, pathBase: _pathBase, viewBox, width, height, className, style, ariaHidden = true, ariaLabel, shapes }) => {
|
|
105
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
106
|
-
viewBox,
|
|
107
|
-
width,
|
|
108
|
-
height,
|
|
109
|
-
className,
|
|
110
|
-
style,
|
|
111
|
-
"aria-hidden": ariaHidden || void 0,
|
|
112
|
-
role: ariaLabel ? "img" : void 0,
|
|
113
|
-
"aria-label": ariaLabel,
|
|
114
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
115
|
-
fill: "none",
|
|
116
|
-
children: (Array.isArray(shapes) ? shapes : []).map((shape, index) => renderShape(shape, index))
|
|
117
|
-
});
|
|
118
|
-
};
|
|
119
|
-
//#endregion
|
|
120
|
-
//#region ../blocks/src/system/runtime/nodes/shared/MapDrawingSvg.tsx
|
|
121
|
-
const PIN_PATH = "M0 0C-3.5-9-13-15-13-25A13 13 0 1 1 13-25C13-15 3.5-9 0 0ZM0-20.5A4.5 4.5 0 1 0 0-29.5A4.5 4.5 0 1 0 0-20.5Z";
|
|
122
|
-
const commands = (points) => points.map(([x, y], index) => `${index ? "L" : "M"}${x} ${y}`).join(" ");
|
|
123
|
-
function pathShape(path) {
|
|
124
|
-
return path.kind === "polygon" ? {
|
|
125
|
-
kind: "path",
|
|
126
|
-
className: path.className,
|
|
127
|
-
fillRule: path.fillRule,
|
|
128
|
-
d: path.rings.map((ring) => `${commands(ring)} Z`).join(" ")
|
|
129
|
-
} : {
|
|
130
|
-
kind: "path",
|
|
131
|
-
className: path.className,
|
|
132
|
-
d: commands(path.points)
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
function labelShapes(label) {
|
|
136
|
-
const [x, y] = label.point, transform = `rotate(${label.angle} ${x} ${y})`;
|
|
137
|
-
return [label.haloClassName, label.className].map((className) => ({
|
|
138
|
-
kind: "text",
|
|
139
|
-
className,
|
|
140
|
-
x,
|
|
141
|
-
y,
|
|
142
|
-
transform,
|
|
143
|
-
text: label.text
|
|
144
|
-
}));
|
|
145
|
-
}
|
|
146
|
-
/** The drawing the renderer below would show, or null when there's nothing it can draw. */
|
|
147
|
-
function readableMapDrawing(drawing) {
|
|
148
|
-
const parsed = mapDrawingSchema.safeParse(drawing);
|
|
149
|
-
return parsed.success ? parsed.data : null;
|
|
150
|
-
}
|
|
151
|
-
/** Untrusted standalone callers retain boundary admission. */
|
|
152
|
-
function MapDrawingSvg(props) {
|
|
153
|
-
const drawing = readableMapDrawing(props.drawing);
|
|
154
|
-
return drawing ? /* @__PURE__ */ jsx(AdmittedMapDrawingSvg, {
|
|
155
|
-
...props,
|
|
156
|
-
drawing
|
|
157
|
-
}) : null;
|
|
158
|
-
}
|
|
159
|
-
/** Render an already admitted value without allocating another validation copy. */
|
|
160
|
-
function AdmittedMapDrawingSvg(props) {
|
|
161
|
-
const drawing = props.drawing;
|
|
162
|
-
const name = props.wider ? "wider" : "neighbourhood", frame = drawing.frames[name];
|
|
163
|
-
const shapes = [
|
|
164
|
-
{
|
|
165
|
-
kind: "rect",
|
|
166
|
-
className: frame.backgroundClass,
|
|
167
|
-
x: 0,
|
|
168
|
-
y: 0,
|
|
169
|
-
width: 800,
|
|
170
|
-
height: 800
|
|
171
|
-
},
|
|
172
|
-
...frame.paths.map(pathShape),
|
|
173
|
-
...frame.labels.flatMap(labelShapes),
|
|
174
|
-
{
|
|
175
|
-
kind: "path",
|
|
176
|
-
className: frame.pin.className,
|
|
177
|
-
fillRule: "evenodd",
|
|
178
|
-
d: PIN_PATH,
|
|
179
|
-
transform: `translate(${frame.pin.point.join(" ")})`
|
|
180
|
-
}
|
|
181
|
-
];
|
|
182
|
-
return /* @__PURE__ */ jsxs("figure", {
|
|
183
|
-
className: `rb-map-drawing ${props.className ?? ""}`.trim(),
|
|
184
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
185
|
-
className: "rb-map-drawing-crop",
|
|
186
|
-
style: cropHeightStyle(Math.max(255, props.height ?? 320), props.heightAs ?? "fixed"),
|
|
187
|
-
children: /* @__PURE__ */ jsx(SvgNode, {
|
|
188
|
-
className: `map-${name}`,
|
|
189
|
-
viewBox: frame.viewBox.join(" "),
|
|
190
|
-
shapes,
|
|
191
|
-
ariaHidden: false,
|
|
192
|
-
ariaLabel: props.label ? `Map showing ${props.label}` : "Map showing the arrival pin"
|
|
193
|
-
})
|
|
194
|
-
}), /* @__PURE__ */ jsxs("figcaption", { children: ["© ", /* @__PURE__ */ jsx("a", {
|
|
195
|
-
href: "https://www.openstreetmap.org/copyright",
|
|
196
|
-
target: "_blank",
|
|
197
|
-
rel: "noreferrer",
|
|
198
|
-
children: "OpenStreetMap contributors"
|
|
199
|
-
})] })]
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
function cropHeightStyle(height, heightAs) {
|
|
203
|
-
return heightAs === "minimum" ? { minHeight: height } : { height };
|
|
204
|
-
}
|
|
205
|
-
//#endregion
|
|
206
10
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventCard.tsx
|
|
207
11
|
/**
|
|
208
12
|
* EventCard Component
|
|
@@ -258,7 +62,7 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
|
|
|
258
62
|
formattedTime,
|
|
259
63
|
hasImage,
|
|
260
64
|
headingLevel: cardHeadingLevel,
|
|
261
|
-
mapSlot
|
|
65
|
+
mapSlot,
|
|
262
66
|
priceText,
|
|
263
67
|
showMap,
|
|
264
68
|
showSummary,
|
|
@@ -270,13 +74,6 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
|
|
|
270
74
|
})]
|
|
271
75
|
});
|
|
272
76
|
};
|
|
273
|
-
function resolveVenueMapSlot(venue, override) {
|
|
274
|
-
return override ?? (venue?.drawing ? /* @__PURE__ */ jsx(MapDrawingSvg, {
|
|
275
|
-
drawing: venue.drawing,
|
|
276
|
-
label: venue.name,
|
|
277
|
-
height: 255
|
|
278
|
-
}) : null);
|
|
279
|
-
}
|
|
280
77
|
function EventCardMedia(props) {
|
|
281
78
|
if (props.lookPresentation.lookSlots !== void 0) return /* @__PURE__ */ jsx(EventLookDate, {
|
|
282
79
|
event: props.event,
|
|
@@ -938,4 +735,4 @@ function DaySchedule({ display }) {
|
|
|
938
735
|
});
|
|
939
736
|
}
|
|
940
737
|
//#endregion
|
|
941
|
-
export { EventCard as a,
|
|
738
|
+
export { EventCard as a, EventCompactRow as i, eventListSlotParents as n, EmptyState as r, EventListingFrameView as t };
|