@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,32 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { $t as buildEventListWeek, At as normalizeEventSurfacePresets, B as buildCartInteractiveIslandProps, Cn as formatEventPriceDisplay, Ct as buildEventCombinedInteractiveIslandProps, Dn as parseMailingListPlacementTargeting, Dt as normalizeEventCategoryIds, En as assessMailingListTargeting, F as buildGiftingInteractiveIslandProps, G as cartBlockRuntime, H as buildProductDetailInteractiveIslandProps, Ht as getContainerClass, I as giftingBlockRuntime, Mt as normalizeEventVenueId, Ot as normalizeEventScheduleScope, P as occurrenceContextSchema, Q as productListBlockRuntime, Qt as Grid, R as publicGiftingOffersResponseSchema, Sn as formatEventPriceAmount, St as listingEventCardProps, Tt as eventCombinedBlockRuntime, U as buildProductListInteractiveIslandProps, Ut as formatBookingSchedulePresentation, V as buildCheckoutInteractiveIslandProps, Vt as getCardOrientation, W as buildShopInteractiveIslandProps, Wt as CardListContentPart, X as productDetailBlockRuntime, Yt as EventQuickFacts, Zt as MediaNodeServer, _t as readOfferingsGrouping, bn as formatEventDepositNote, bt as resolveOfferingsRenderInput, dn as recurringScheduleProjectionSchema, dt as groupOfferingRunsByCourse, en as eventListWeekDays, et as shopBlockRuntime, f as eventCalendarBlockRuntime, g as formBlockRuntime, gt as offeringsListingFor, h as buildFormInteractiveIslandProps, hn as staticHeaderChromeRuntime, ht as offeringRunLifecycle, i as newsletterFormBlockRuntime, in as resolveEventSelection, it as DEFAULT_GROUP_CTA, jt as normalizeEventSurfaceScope, kn as DEFAULT_MAILING_LIST_TARGETING, kt as normalizeEventStaffMemberId, l as buildEventCalendarInteractiveIslandProps, lt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, mt as normalizeOfferingsPreviewItemLimit, n as buildNewsletterFormInteractiveIslandProps, nt as shopProductPresentation, o as buildEventListingInteractiveIslandProps, q as checkoutBlockRuntime, r as newsletterBlockSubmissionMessage, rt as publicProductsResponseSchema, s as eventListingBlockRuntime, t as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, tn as eventWeekGroupingContext, u as buildEventCalendarListingDisplay, ut as buildOfferingsPreviewListing, vn as splitSiteChromePlacementClasses, vt as resolveOfferingsPreviewGroupCta, wn as formatEventStartingPrice, wt as buildEventCombinedListingDisplay, x as eventRegistrationBlockRuntime, xn as formatEventPrice, xt as catalogueEventCardProps, y as buildEventRegistrationInteractiveIslandProps, yn as formatCoursePrice, yt as resolveOfferingsPreviewGroups, z as DEFAULT_PASS_BUY_BUTTON_TEXT } from "./newsletter-form.interactive-RuM86VAv.mjs";
|
|
3
|
+
import { m as ok, p as err } from "./renderableMediaAssetAdmission-BsOWd9lf.mjs";
|
|
4
|
+
import { C as publicEventsArraySchema, Cn as toUtcIsoDateTimeString, En as toBookingTimeZone, F as isEventCalendarDisplayMode, Gt as normalizeLocationAddressText, I as isEventCalendarListLayout, J as runtimeMediaSchema, Jt as publicLocationSchema, Kt as parseLocationValue, L as normalizeEventCalendarDisplayMode$1, M as eventCalendarVariantMeaning, P as isEventCalendarDefaultView, Q as mediaTypeDiscriminants, Qt as trimmedStringOrNull, R as resolveEventCalendarReadPlan, X as PUBLIC_FILE_FIELD_KINDS, Yt as toLocationCoordinates, Z as isDisplayMediaKind, _ as publicMembershipProductCollectionSchema, an as formatDateTimeRange, gn as compareLocalScheduleDates, j as eventCalendarListLayoutOptions, m as calendarWindowPageSchema, mn as toScheduledBookingDateTime, nn as formatDate, nt as arrangementModes, qt as projectPublicLocation, rn as formatDateRange, v as publicPassProductCollectionSchema, vn as getBookingLocalDateKey, wn as resolveBookingBusinessTimeZone, yn as getLocalScheduleDate, z as RichTextDocSchema } from "./src-ZSqRK3dD.mjs";
|
|
5
|
+
import { Bo as formatEventRunDates, Cs as sanitizeHref, Do as RichText, Eo as isBlockButtonRole, Gs as resolveWholeSeriesBookingPhase, Hs as CANCELLED_SESSION_STATUS, Io as formatEventCompactDateRail, Ko as ImagePresets, Lo as formatEventDateParts, No as formatCalendarTitle, Oo as buildCalendarViewport, Ro as formatEventHourLabel, Uo as formatTime, Us as nextLiveRunSessionStartMs, Vo as formatEventTimeRange, Wo as groupEventsByDate, Ws as orderedLiveRunSessions, _i as resolveEventRegistrationScopedEvents, _o as formatTotalCapacity, ao as bookingPresentation, cc as isPublicEventPricingOptionDisplayable, co as eventVenuePlace, ds as asPartialObject, fc as publicEventPricingType, fi as closedRunCopy, fo as isBookableEvent, hi as normalizeEventRegistrationPageSurfaceSubject, ho as formatEventRemainingPlaces, ji as buildBookingFormInteractiveIslandProps, jo as eventDateOptions, ki as groupPublicEventsByRun, lc as publicEventPricingCurrency, lo as formatEventLocation, mc as resolvePricingOptionsPriceDisplay, nc as EVENT_ADDRESS_AFTER_BOOKING_LABEL, ns as resolvePublicMediaUrl, oc as formatBookingPriceDisplay, oo as eventOnlinePlace, pc as resolveExactOrFreePriceDisplay, uc as publicEventPricingDisplay, uo as resolveRuntimeEventDestination, vo as getEventAvailability, wo as BLOCK_BUTTON_ROLE_OPTIONS, ws as parseAspectRatioValue, xo as isEventFull, yo as getEventAvailabilityStatus } from "./wizardSteps-BliJOzEX.mjs";
|
|
6
|
+
import { c as MonthLookView, d as buildMonthDay, f as resolveMonthSelectedDay, i as WeekAgendaView, o as CombinedLookFrame, p as formatEventDuration, u as CalendarDayHeaders } from "./CalendarNavigationChevron-BGCX3zwG.mjs";
|
|
7
|
+
import { h as assertNever$1 } from "./bookingCalendar--aWnqFDn.mjs";
|
|
8
8
|
import { n as selectCategoryView } from "./appointment-service-categories-Cl2pqw-z.mjs";
|
|
9
|
-
import { a as CalendarRecurringWeek, c as LinkNode, d as LocationMapView, f as
|
|
10
|
-
import {
|
|
9
|
+
import { a as CalendarRecurringWeek, c as LinkNode, d as LocationMapView, f as MapDrawingSvg, i as buildWeekBoardViewProps, l as RichTextNode, m as LocationMapActions, n as WeekBoardView, o as RecurringSchedule, p as SvgNode, r as buildWeekBoardNavigationState, s as ButtonNode, t as buildTimetableModel, u as TextNode } from "./timetableModel-BQJrSK0K.mjs";
|
|
10
|
+
import { Qt as arrangementSlotNames, R as compiledRuntimeStyleFieldNames, a as lookListPresentationSchemaShape, fn as cardVariantRoleValues, i as listLookSlot, n as listItemPresentation } from "./noop-Dl4mZ-rr.mjs";
|
|
11
11
|
import { D as SYSTEM_BLOCK_KINDS } from "./types-BEaKfam_.mjs";
|
|
12
|
-
import { B as resolveThemeColorReferenceValue, G as mergeStyles, H as backgroundColorStyle, K as rgbColorValue, q as textColorStyle, s as serializeSurfaceTree } from "./accessibleSurfaces-
|
|
13
|
-
import { l as DEFAULT_SECTION_SPACING, o as normalizeBoxStylesBorder, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles } from "./boxStyleClassNames-
|
|
14
|
-
import {
|
|
12
|
+
import { B as resolveThemeColorReferenceValue, G as mergeStyles, H as backgroundColorStyle, K as rgbColorValue, q as textColorStyle, s as serializeSurfaceTree } from "./accessibleSurfaces-n6kS6Hct.mjs";
|
|
13
|
+
import { l as DEFAULT_SECTION_SPACING, o as normalizeBoxStylesBorder, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles } from "./boxStyleClassNames-BpGVdLFD.mjs";
|
|
14
|
+
import { _ as FileTextIcon, b as SpinnerNode, c as ArrowDownIcon, d as CirclePlusIcon, g as FileSpreadsheetIcon, h as FileAudioIcon, i as ThemedDownloadLink, l as ChevronDownIcon, m as FileArchiveIcon, n as ThemedButton, o as getIconComponent, r as ThemedButtonLink, s as isSemanticIconId, u as CircleMinusIcon, v as MinusIcon, x as clsx, y as PlusIcon } from "./ThemedButton-PFOhXktM.mjs";
|
|
15
15
|
import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, r as carouselContents, t as CarouselSlideContent, u as resolveSlidesToShowMobile } from "./carousel.shared-BFQ3kBEw.mjs";
|
|
16
16
|
import { d as formatDateKey, h as getWeekCalendarDayTuple, m as getOrderedDayNames } from "./src-uwCpbHXG.mjs";
|
|
17
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
17
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-CQGE_wHV.mjs";
|
|
18
|
+
import { _ as resolveEventLinkProps, f as formatCourseSessions, g as resolveEventCta, h as resolveEventCardBooking, l as eventDisplayTitle, n as CardListItems, p as formatMoreDates, r as EventItem, u as eventDisplayTitleText } from "./EventItem-CwzrjcRw.mjs";
|
|
19
|
+
import { i as resolvePublicEventDepositOffer, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-CoOkvw__.mjs";
|
|
20
20
|
import { t as resolveDedicatedBookingHref } from "./bookingRoute-D6DlxYx6.mjs";
|
|
21
|
-
import { n as BookingPanelArrangement } from "./StepIndicator-
|
|
22
|
-
import { t as
|
|
21
|
+
import { n as BookingPanelArrangement } from "./StepIndicator-Dn_DY4oY.mjs";
|
|
22
|
+
import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-DZ0qMFF4.mjs";
|
|
23
23
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
24
|
-
import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-
|
|
25
|
-
import { a as giftingEyebrow, n as GiftCardAmounts, o as giftingSlot, r as GiftingPanelHead } from "./gifting.parts-
|
|
26
|
-
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-
|
|
27
|
-
import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-
|
|
28
|
-
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-
|
|
29
|
-
import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-
|
|
24
|
+
import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-CC_yQLSA.mjs";
|
|
25
|
+
import { a as giftingEyebrow, n as GiftCardAmounts, o as giftingSlot, r as GiftingPanelHead } from "./gifting.parts-CedLgwa_.mjs";
|
|
26
|
+
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-ChvcnPma.mjs";
|
|
27
|
+
import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-atfDU82W.mjs";
|
|
28
|
+
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-Ctljy1a3.mjs";
|
|
29
|
+
import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-2petDnWv.mjs";
|
|
30
30
|
import React, { forwardRef } from "react";
|
|
31
31
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
32
32
|
import { z } from "zod";
|
|
@@ -940,6 +940,13 @@ const dataScopeSchema = z.object({
|
|
|
940
940
|
from: bindingSchema
|
|
941
941
|
});
|
|
942
942
|
const nodePropsSchema = z.record(z.string(), z.unknown()).default({});
|
|
943
|
+
/**
|
|
944
|
+
* A plain `z.object`, so a key it does not list is stripped from the parsed
|
|
945
|
+
* node. For custom-block layouts that strip is part of the protection (issue
|
|
946
|
+
* 1185): the renderer treats unknown top-level keys as props, and only the
|
|
947
|
+
* parsed value has been through the layout gate. Store and render the parsed
|
|
948
|
+
* value, never the raw manifest.
|
|
949
|
+
*/
|
|
943
950
|
const nodeSchema = z.object({
|
|
944
951
|
type: z.string().min(1, "Node type is required"),
|
|
945
952
|
key: z.string().optional(),
|
|
@@ -950,6 +957,58 @@ const nodeSchema = z.object({
|
|
|
950
957
|
$when: conditionSchema.optional(),
|
|
951
958
|
$scopes: dataScopeSchema.array().optional()
|
|
952
959
|
});
|
|
960
|
+
const MAX_CUSTOM_LAYOUT_NODES = 1e3;
|
|
961
|
+
const NODE_KEYS = /* @__PURE__ */ new Set([
|
|
962
|
+
"type",
|
|
963
|
+
"key",
|
|
964
|
+
"props",
|
|
965
|
+
"children",
|
|
966
|
+
"$bind",
|
|
967
|
+
"$repeat",
|
|
968
|
+
"$when",
|
|
969
|
+
"$scopes"
|
|
970
|
+
]);
|
|
971
|
+
const isRawNode = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
972
|
+
const rawChildren = (node) => isRawNode(node) && Array.isArray(node.children) ? node.children : [];
|
|
973
|
+
/** Whether the tree nests deeper than `levels`, looking no further down than that. */
|
|
974
|
+
const nestsDeeperThan = (node, levels) => levels === 0 ? isRawNode(node) : rawChildren(node).some((child) => nestsDeeperThan(child, levels - 1));
|
|
975
|
+
/** Nodes in a tree already known to be no deeper than the limit. */
|
|
976
|
+
const countNodes = (node) => rawChildren(node).reduce((total, child) => total + countNodes(child), 1);
|
|
977
|
+
/** Why a custom-block layout is too large to check or render, or null. Safe to call on any value. */
|
|
978
|
+
function customLayoutSizeProblem(layout) {
|
|
979
|
+
if (nestsDeeperThan(layout, 24)) return `The layout nests more than 24 levels deep. Flatten it.`;
|
|
980
|
+
const count = countNodes(layout);
|
|
981
|
+
return count > 1e3 ? `The layout has ${count} nodes, and a custom block takes at most ${MAX_CUSTOM_LAYOUT_NODES}. Use a repeater for repeated items.` : null;
|
|
982
|
+
}
|
|
983
|
+
/** Keys on a node (or any node below it) that `nodeSchema` would strip. */
|
|
984
|
+
function unknownNodeKeys(node, path) {
|
|
985
|
+
if (!isRawNode(node)) return [];
|
|
986
|
+
return [...Object.keys(node).filter((key) => !NODE_KEYS.has(key)).map((key) => ({
|
|
987
|
+
path: [...path, key],
|
|
988
|
+
key
|
|
989
|
+
})), ...rawChildren(node).flatMap((child, index) => unknownNodeKeys(child, [
|
|
990
|
+
...path,
|
|
991
|
+
"children",
|
|
992
|
+
index
|
|
993
|
+
]))];
|
|
994
|
+
}
|
|
995
|
+
function reportRawLayoutShape(layout, ctx) {
|
|
996
|
+
const sizeProblem = customLayoutSizeProblem(layout);
|
|
997
|
+
if (sizeProblem !== null) {
|
|
998
|
+
ctx.addIssue({
|
|
999
|
+
code: "custom",
|
|
1000
|
+
message: sizeProblem,
|
|
1001
|
+
continue: false
|
|
1002
|
+
});
|
|
1003
|
+
return;
|
|
1004
|
+
}
|
|
1005
|
+
unknownNodeKeys(layout, []).forEach(({ path, key }) => ctx.addIssue({
|
|
1006
|
+
code: "custom",
|
|
1007
|
+
path: [...path],
|
|
1008
|
+
message: `"${key}" is not part of a node, so it would be dropped. A node has type, key, props, children, $bind, $repeat, $when and $scopes; put "${key}" under props.`
|
|
1009
|
+
}));
|
|
1010
|
+
}
|
|
1011
|
+
z.unknown().superRefine(reportRawLayoutShape).pipe(nodeSchema);
|
|
953
1012
|
const nodeTreeSchema = z.union([z.array(nodeSchema), nodeSchema]);
|
|
954
1013
|
const NodeSchema = nodeSchema;
|
|
955
1014
|
const NodeTreeSchema = nodeTreeSchema;
|
|
@@ -1023,6 +1082,168 @@ const ACCORDION_OPEN_ACCENT_THICKNESS = {
|
|
|
1023
1082
|
thick: "4px"
|
|
1024
1083
|
};
|
|
1025
1084
|
//#endregion
|
|
1085
|
+
//#region ../blocks/src/lib/video.ts
|
|
1086
|
+
/**
|
|
1087
|
+
* Parse a video URL and extract provider and video ID.
|
|
1088
|
+
* Uses URL constructor for safe parsing.
|
|
1089
|
+
*
|
|
1090
|
+
* @param url - Video URL to parse
|
|
1091
|
+
* @returns VideoInfo if valid, null otherwise
|
|
1092
|
+
*
|
|
1093
|
+
* Supported formats:
|
|
1094
|
+
* - YouTube: youtube.com/watch?v=ID, youtu.be/ID, youtube.com/embed/ID
|
|
1095
|
+
* - Vimeo: vimeo.com/ID, player.vimeo.com/video/ID
|
|
1096
|
+
* - Instagram: instagram.com/p/SHORTCODE, instagram.com/reel/SHORTCODE, instagram.com/tv/SHORTCODE
|
|
1097
|
+
*/
|
|
1098
|
+
function parseVideoUrl(url) {
|
|
1099
|
+
if (!url || typeof url !== "string") return null;
|
|
1100
|
+
try {
|
|
1101
|
+
const parsed = new URL(url);
|
|
1102
|
+
const hostname = parsed.hostname.toLowerCase().replace(/^www\./, "");
|
|
1103
|
+
if (hostname === "youtube.com" || hostname === "m.youtube.com" || hostname === "youtu.be" || hostname === "youtube-nocookie.com") {
|
|
1104
|
+
const id = extractYouTubeId(parsed);
|
|
1105
|
+
if (id) return {
|
|
1106
|
+
provider: "youtube",
|
|
1107
|
+
id,
|
|
1108
|
+
url
|
|
1109
|
+
};
|
|
1110
|
+
}
|
|
1111
|
+
if (hostname === "vimeo.com" || hostname === "player.vimeo.com") {
|
|
1112
|
+
const id = extractVimeoId(parsed);
|
|
1113
|
+
if (id) return {
|
|
1114
|
+
provider: "vimeo",
|
|
1115
|
+
id,
|
|
1116
|
+
url
|
|
1117
|
+
};
|
|
1118
|
+
}
|
|
1119
|
+
if (hostname === "instagram.com" || hostname === "m.instagram.com" || hostname === "instagr.am") {
|
|
1120
|
+
const instagram = extractInstagramShortcode(parsed);
|
|
1121
|
+
if (instagram) return {
|
|
1122
|
+
provider: "instagram",
|
|
1123
|
+
id: instagram.shortcode,
|
|
1124
|
+
kind: instagram.kind,
|
|
1125
|
+
url
|
|
1126
|
+
};
|
|
1127
|
+
}
|
|
1128
|
+
return null;
|
|
1129
|
+
} catch {
|
|
1130
|
+
return null;
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
/**
|
|
1134
|
+
* Extract YouTube video ID from parsed URL.
|
|
1135
|
+
*/
|
|
1136
|
+
function extractYouTubeId(url) {
|
|
1137
|
+
if (url.hostname.toLowerCase().replace(/^www\./, "") === "youtu.be") {
|
|
1138
|
+
const id = url.pathname.slice(1).split("/")[0] ?? "";
|
|
1139
|
+
return isValidYouTubeId(id) ? id : null;
|
|
1140
|
+
}
|
|
1141
|
+
const vParam = url.searchParams.get("v");
|
|
1142
|
+
if (vParam && isValidYouTubeId(vParam)) return vParam;
|
|
1143
|
+
const shortsId = url.pathname.match(/^\/shorts\/([^/?]+)/)?.[1];
|
|
1144
|
+
if (shortsId && isValidYouTubeId(shortsId)) return shortsId;
|
|
1145
|
+
const embedId = url.pathname.match(/^\/embed\/([^/?]+)/)?.[1];
|
|
1146
|
+
if (embedId && isValidYouTubeId(embedId)) return embedId;
|
|
1147
|
+
const vId = url.pathname.match(/^\/v\/([^/?]+)/)?.[1];
|
|
1148
|
+
if (vId && isValidYouTubeId(vId)) return vId;
|
|
1149
|
+
return null;
|
|
1150
|
+
}
|
|
1151
|
+
/**
|
|
1152
|
+
* Validate YouTube video ID format.
|
|
1153
|
+
* YouTube IDs are 11 characters, alphanumeric plus - and _
|
|
1154
|
+
*/
|
|
1155
|
+
function isValidYouTubeId(id) {
|
|
1156
|
+
return /^[a-zA-Z0-9_-]{11}$/.test(id);
|
|
1157
|
+
}
|
|
1158
|
+
/**
|
|
1159
|
+
* Extract Vimeo video ID from parsed URL.
|
|
1160
|
+
*/
|
|
1161
|
+
function extractVimeoId(url) {
|
|
1162
|
+
const playerId = url.pathname.match(/^\/video\/(\d+)/)?.[1];
|
|
1163
|
+
if (playerId) return playerId;
|
|
1164
|
+
const pathId = url.pathname.match(/^\/(\d+)/)?.[1];
|
|
1165
|
+
if (pathId) return pathId;
|
|
1166
|
+
return null;
|
|
1167
|
+
}
|
|
1168
|
+
function extractInstagramShortcode(url) {
|
|
1169
|
+
const match = url.pathname.match(/^\/(p|reel|reels|tv)\/([^/?#]+)/);
|
|
1170
|
+
const rawKind = match?.[1];
|
|
1171
|
+
const shortcode = match?.[2];
|
|
1172
|
+
if (!rawKind || !shortcode) return null;
|
|
1173
|
+
const normalizedKind = rawKind === "reels" ? "reel" : rawKind;
|
|
1174
|
+
if (normalizedKind !== "p" && normalizedKind !== "reel" && normalizedKind !== "tv") return null;
|
|
1175
|
+
const kind = normalizedKind;
|
|
1176
|
+
if (!isValidInstagramShortcode(shortcode)) return null;
|
|
1177
|
+
return {
|
|
1178
|
+
kind,
|
|
1179
|
+
shortcode
|
|
1180
|
+
};
|
|
1181
|
+
}
|
|
1182
|
+
function isValidInstagramShortcode(shortcode) {
|
|
1183
|
+
return /^[a-zA-Z0-9_-]{5,}$/.test(shortcode);
|
|
1184
|
+
}
|
|
1185
|
+
/**
|
|
1186
|
+
* Generate privacy-enhanced embed URL for a video.
|
|
1187
|
+
*
|
|
1188
|
+
* @param info - VideoInfo from parseVideoUrl
|
|
1189
|
+
* @returns Embed URL suitable for iframe src
|
|
1190
|
+
*/
|
|
1191
|
+
function getEmbedUrl(info) {
|
|
1192
|
+
switch (info.provider) {
|
|
1193
|
+
case "youtube": return `https://www.youtube-nocookie.com/embed/${info.id}`;
|
|
1194
|
+
case "vimeo": return `https://player.vimeo.com/video/${info.id}`;
|
|
1195
|
+
case "instagram": return `https://www.instagram.com/${info.kind ?? "p"}/${info.id}/embed`;
|
|
1196
|
+
}
|
|
1197
|
+
return info.provider;
|
|
1198
|
+
}
|
|
1199
|
+
/**
|
|
1200
|
+
* Generate thumbnail URL for a video.
|
|
1201
|
+
*
|
|
1202
|
+
* @param info - VideoInfo from parseVideoUrl
|
|
1203
|
+
* @returns Thumbnail image URL
|
|
1204
|
+
*
|
|
1205
|
+
* Note: YouTube maxresdefault.jpg may 404 for some videos.
|
|
1206
|
+
* Consider using hqdefault.jpg as a more reliable fallback.
|
|
1207
|
+
*/
|
|
1208
|
+
function getThumbnailUrl(info) {
|
|
1209
|
+
switch (info.provider) {
|
|
1210
|
+
case "youtube": return `https://img.youtube.com/vi/${info.id}/maxresdefault.jpg`;
|
|
1211
|
+
case "vimeo": return `https://vumbnail.com/${info.id}.jpg`;
|
|
1212
|
+
case "instagram": return "";
|
|
1213
|
+
}
|
|
1214
|
+
return info.provider;
|
|
1215
|
+
}
|
|
1216
|
+
function getVideoEmbedLoadingStrategy(provider) {
|
|
1217
|
+
switch (provider) {
|
|
1218
|
+
case "youtube":
|
|
1219
|
+
case "vimeo": return "native-lazy";
|
|
1220
|
+
case "instagram": return "defer-until-near-viewport";
|
|
1221
|
+
}
|
|
1222
|
+
return provider;
|
|
1223
|
+
}
|
|
1224
|
+
/**
|
|
1225
|
+
* Parse URL and get complete embed information.
|
|
1226
|
+
* Convenience function that combines parseVideoUrl with embed/thumbnail URLs.
|
|
1227
|
+
*
|
|
1228
|
+
* @param url - Video URL to parse
|
|
1229
|
+
* @returns EmbedInfo if valid, null otherwise
|
|
1230
|
+
*/
|
|
1231
|
+
function getVideoEmbed(url) {
|
|
1232
|
+
const info = parseVideoUrl(url);
|
|
1233
|
+
if (!info) return null;
|
|
1234
|
+
return {
|
|
1235
|
+
...info,
|
|
1236
|
+
embedUrl: getEmbedUrl(info),
|
|
1237
|
+
thumbnailUrl: getThumbnailUrl(info)
|
|
1238
|
+
};
|
|
1239
|
+
}
|
|
1240
|
+
/**
|
|
1241
|
+
* A video frame's aspect ratio: `16/9`, `4 / 3`, `1.5` or `auto`. The video
|
|
1242
|
+
* node writes the value into a style attribute, so anything else is dropped at
|
|
1243
|
+
* render and refused in a custom-block layout (issue 1185).
|
|
1244
|
+
*/
|
|
1245
|
+
const VIDEO_ASPECT_RATIO_PATTERN = /^(?:auto|\d+(?:\.\d+)?(?:\s*\/\s*\d+(?:\.\d+)?)?)$/;
|
|
1246
|
+
//#endregion
|
|
1026
1247
|
//#region ../blocks/src/system/customize/testimonialCount.ts
|
|
1027
1248
|
/** The loader consumes the content-stage plan; it never selects a Look. */
|
|
1028
1249
|
function testimonialLoaderLimit(content) {
|
|
@@ -2217,162 +2438,6 @@ function FileDownloadNode({ value, title, description, buttonLabel, buttonVarian
|
|
|
2217
2438
|
});
|
|
2218
2439
|
}
|
|
2219
2440
|
//#endregion
|
|
2220
|
-
//#region ../blocks/src/lib/video.ts
|
|
2221
|
-
/**
|
|
2222
|
-
* Parse a video URL and extract provider and video ID.
|
|
2223
|
-
* Uses URL constructor for safe parsing.
|
|
2224
|
-
*
|
|
2225
|
-
* @param url - Video URL to parse
|
|
2226
|
-
* @returns VideoInfo if valid, null otherwise
|
|
2227
|
-
*
|
|
2228
|
-
* Supported formats:
|
|
2229
|
-
* - YouTube: youtube.com/watch?v=ID, youtu.be/ID, youtube.com/embed/ID
|
|
2230
|
-
* - Vimeo: vimeo.com/ID, player.vimeo.com/video/ID
|
|
2231
|
-
* - Instagram: instagram.com/p/SHORTCODE, instagram.com/reel/SHORTCODE, instagram.com/tv/SHORTCODE
|
|
2232
|
-
*/
|
|
2233
|
-
function parseVideoUrl(url) {
|
|
2234
|
-
if (!url || typeof url !== "string") return null;
|
|
2235
|
-
try {
|
|
2236
|
-
const parsed = new URL(url);
|
|
2237
|
-
const hostname = parsed.hostname.toLowerCase().replace(/^www\./, "");
|
|
2238
|
-
if (hostname === "youtube.com" || hostname === "m.youtube.com" || hostname === "youtu.be" || hostname === "youtube-nocookie.com") {
|
|
2239
|
-
const id = extractYouTubeId(parsed);
|
|
2240
|
-
if (id) return {
|
|
2241
|
-
provider: "youtube",
|
|
2242
|
-
id,
|
|
2243
|
-
url
|
|
2244
|
-
};
|
|
2245
|
-
}
|
|
2246
|
-
if (hostname === "vimeo.com" || hostname === "player.vimeo.com") {
|
|
2247
|
-
const id = extractVimeoId(parsed);
|
|
2248
|
-
if (id) return {
|
|
2249
|
-
provider: "vimeo",
|
|
2250
|
-
id,
|
|
2251
|
-
url
|
|
2252
|
-
};
|
|
2253
|
-
}
|
|
2254
|
-
if (hostname === "instagram.com" || hostname === "m.instagram.com" || hostname === "instagr.am") {
|
|
2255
|
-
const instagram = extractInstagramShortcode(parsed);
|
|
2256
|
-
if (instagram) return {
|
|
2257
|
-
provider: "instagram",
|
|
2258
|
-
id: instagram.shortcode,
|
|
2259
|
-
kind: instagram.kind,
|
|
2260
|
-
url
|
|
2261
|
-
};
|
|
2262
|
-
}
|
|
2263
|
-
return null;
|
|
2264
|
-
} catch {
|
|
2265
|
-
return null;
|
|
2266
|
-
}
|
|
2267
|
-
}
|
|
2268
|
-
/**
|
|
2269
|
-
* Extract YouTube video ID from parsed URL.
|
|
2270
|
-
*/
|
|
2271
|
-
function extractYouTubeId(url) {
|
|
2272
|
-
if (url.hostname.toLowerCase().replace(/^www\./, "") === "youtu.be") {
|
|
2273
|
-
const id = url.pathname.slice(1).split("/")[0] ?? "";
|
|
2274
|
-
return isValidYouTubeId(id) ? id : null;
|
|
2275
|
-
}
|
|
2276
|
-
const vParam = url.searchParams.get("v");
|
|
2277
|
-
if (vParam && isValidYouTubeId(vParam)) return vParam;
|
|
2278
|
-
const shortsId = url.pathname.match(/^\/shorts\/([^/?]+)/)?.[1];
|
|
2279
|
-
if (shortsId && isValidYouTubeId(shortsId)) return shortsId;
|
|
2280
|
-
const embedId = url.pathname.match(/^\/embed\/([^/?]+)/)?.[1];
|
|
2281
|
-
if (embedId && isValidYouTubeId(embedId)) return embedId;
|
|
2282
|
-
const vId = url.pathname.match(/^\/v\/([^/?]+)/)?.[1];
|
|
2283
|
-
if (vId && isValidYouTubeId(vId)) return vId;
|
|
2284
|
-
return null;
|
|
2285
|
-
}
|
|
2286
|
-
/**
|
|
2287
|
-
* Validate YouTube video ID format.
|
|
2288
|
-
* YouTube IDs are 11 characters, alphanumeric plus - and _
|
|
2289
|
-
*/
|
|
2290
|
-
function isValidYouTubeId(id) {
|
|
2291
|
-
return /^[a-zA-Z0-9_-]{11}$/.test(id);
|
|
2292
|
-
}
|
|
2293
|
-
/**
|
|
2294
|
-
* Extract Vimeo video ID from parsed URL.
|
|
2295
|
-
*/
|
|
2296
|
-
function extractVimeoId(url) {
|
|
2297
|
-
const playerId = url.pathname.match(/^\/video\/(\d+)/)?.[1];
|
|
2298
|
-
if (playerId) return playerId;
|
|
2299
|
-
const pathId = url.pathname.match(/^\/(\d+)/)?.[1];
|
|
2300
|
-
if (pathId) return pathId;
|
|
2301
|
-
return null;
|
|
2302
|
-
}
|
|
2303
|
-
function extractInstagramShortcode(url) {
|
|
2304
|
-
const match = url.pathname.match(/^\/(p|reel|reels|tv)\/([^/?#]+)/);
|
|
2305
|
-
const rawKind = match?.[1];
|
|
2306
|
-
const shortcode = match?.[2];
|
|
2307
|
-
if (!rawKind || !shortcode) return null;
|
|
2308
|
-
const normalizedKind = rawKind === "reels" ? "reel" : rawKind;
|
|
2309
|
-
if (normalizedKind !== "p" && normalizedKind !== "reel" && normalizedKind !== "tv") return null;
|
|
2310
|
-
const kind = normalizedKind;
|
|
2311
|
-
if (!isValidInstagramShortcode(shortcode)) return null;
|
|
2312
|
-
return {
|
|
2313
|
-
kind,
|
|
2314
|
-
shortcode
|
|
2315
|
-
};
|
|
2316
|
-
}
|
|
2317
|
-
function isValidInstagramShortcode(shortcode) {
|
|
2318
|
-
return /^[a-zA-Z0-9_-]{5,}$/.test(shortcode);
|
|
2319
|
-
}
|
|
2320
|
-
/**
|
|
2321
|
-
* Generate privacy-enhanced embed URL for a video.
|
|
2322
|
-
*
|
|
2323
|
-
* @param info - VideoInfo from parseVideoUrl
|
|
2324
|
-
* @returns Embed URL suitable for iframe src
|
|
2325
|
-
*/
|
|
2326
|
-
function getEmbedUrl(info) {
|
|
2327
|
-
switch (info.provider) {
|
|
2328
|
-
case "youtube": return `https://www.youtube-nocookie.com/embed/${info.id}`;
|
|
2329
|
-
case "vimeo": return `https://player.vimeo.com/video/${info.id}`;
|
|
2330
|
-
case "instagram": return `https://www.instagram.com/${info.kind ?? "p"}/${info.id}/embed`;
|
|
2331
|
-
}
|
|
2332
|
-
return info.provider;
|
|
2333
|
-
}
|
|
2334
|
-
/**
|
|
2335
|
-
* Generate thumbnail URL for a video.
|
|
2336
|
-
*
|
|
2337
|
-
* @param info - VideoInfo from parseVideoUrl
|
|
2338
|
-
* @returns Thumbnail image URL
|
|
2339
|
-
*
|
|
2340
|
-
* Note: YouTube maxresdefault.jpg may 404 for some videos.
|
|
2341
|
-
* Consider using hqdefault.jpg as a more reliable fallback.
|
|
2342
|
-
*/
|
|
2343
|
-
function getThumbnailUrl(info) {
|
|
2344
|
-
switch (info.provider) {
|
|
2345
|
-
case "youtube": return `https://img.youtube.com/vi/${info.id}/maxresdefault.jpg`;
|
|
2346
|
-
case "vimeo": return `https://vumbnail.com/${info.id}.jpg`;
|
|
2347
|
-
case "instagram": return "";
|
|
2348
|
-
}
|
|
2349
|
-
return info.provider;
|
|
2350
|
-
}
|
|
2351
|
-
function getVideoEmbedLoadingStrategy(provider) {
|
|
2352
|
-
switch (provider) {
|
|
2353
|
-
case "youtube":
|
|
2354
|
-
case "vimeo": return "native-lazy";
|
|
2355
|
-
case "instagram": return "defer-until-near-viewport";
|
|
2356
|
-
}
|
|
2357
|
-
return provider;
|
|
2358
|
-
}
|
|
2359
|
-
/**
|
|
2360
|
-
* Parse URL and get complete embed information.
|
|
2361
|
-
* Convenience function that combines parseVideoUrl with embed/thumbnail URLs.
|
|
2362
|
-
*
|
|
2363
|
-
* @param url - Video URL to parse
|
|
2364
|
-
* @returns EmbedInfo if valid, null otherwise
|
|
2365
|
-
*/
|
|
2366
|
-
function getVideoEmbed(url) {
|
|
2367
|
-
const info = parseVideoUrl(url);
|
|
2368
|
-
if (!info) return null;
|
|
2369
|
-
return {
|
|
2370
|
-
...info,
|
|
2371
|
-
embedUrl: getEmbedUrl(info),
|
|
2372
|
-
thumbnailUrl: getThumbnailUrl(info)
|
|
2373
|
-
};
|
|
2374
|
-
}
|
|
2375
|
-
//#endregion
|
|
2376
2441
|
//#region ../blocks/src/system/runtime/nodes/video-embed.tsx
|
|
2377
2442
|
/**
|
|
2378
2443
|
* Video embed node component.
|
|
@@ -2453,10 +2518,10 @@ function getAspectRatio(propAspectRatio, style) {
|
|
|
2453
2518
|
return normalizeAspectRatio(propAspectRatio) ?? normalizeAspectRatio(styleAspectRatio) ?? "16/9";
|
|
2454
2519
|
}
|
|
2455
2520
|
function normalizeAspectRatio(value) {
|
|
2456
|
-
if (typeof value === "number") return value;
|
|
2521
|
+
if (typeof value === "number") return Number.isFinite(value) && value > 0 ? value : void 0;
|
|
2457
2522
|
if (typeof value === "string") {
|
|
2458
2523
|
const trimmed = value.trim();
|
|
2459
|
-
return trimmed
|
|
2524
|
+
return VIDEO_ASPECT_RATIO_PATTERN.test(trimmed) ? trimmed : void 0;
|
|
2460
2525
|
}
|
|
2461
2526
|
if (value && typeof value === "object" && "value" in value) return normalizeAspectRatio(value.value);
|
|
2462
2527
|
}
|
|
@@ -3344,21 +3409,55 @@ const teamMemberCardSchema = z.object({
|
|
|
3344
3409
|
photo: runtimeMediaSchema.refine((value) => value.type === "image").nullish(),
|
|
3345
3410
|
summary: z.string().nullish(),
|
|
3346
3411
|
profilePath: z.string().nullish(),
|
|
3347
|
-
specialties: z.unknown().transform(parseTeamMemberSpecialties)
|
|
3412
|
+
specialties: z.unknown().transform(parseTeamMemberSpecialties),
|
|
3413
|
+
facts: z.array(z.object({
|
|
3414
|
+
label: z.string(),
|
|
3415
|
+
value: z.string()
|
|
3416
|
+
})).nullish()
|
|
3348
3417
|
});
|
|
3349
|
-
/**
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3418
|
+
/**
|
|
3419
|
+
* Staff and manual members meet at one boundary, and this is the one place
|
|
3420
|
+
* that decides what a person's card says and where. Look data chooses the bio's
|
|
3421
|
+
* length, and whether the facts are the person's own quick facts (with the role
|
|
3422
|
+
* above the name, after the bio, and no link to a profile) or the role on its own.
|
|
3423
|
+
*/
|
|
3424
|
+
function teamMemberCards(members, choices = {}) {
|
|
3353
3425
|
return {
|
|
3426
|
+
items: members.map((member, index) => teamMemberCardContent(member, index, choices)),
|
|
3427
|
+
bodyParts: choices.teamFacts === "person" ? [
|
|
3428
|
+
"title",
|
|
3429
|
+
"text",
|
|
3430
|
+
"facts"
|
|
3431
|
+
] : [
|
|
3432
|
+
"title",
|
|
3433
|
+
"facts",
|
|
3434
|
+
"text",
|
|
3435
|
+
"chips",
|
|
3436
|
+
"action"
|
|
3437
|
+
]
|
|
3438
|
+
};
|
|
3439
|
+
}
|
|
3440
|
+
function teamMemberCardContent(member, index, choices) {
|
|
3441
|
+
const biography = cardBiographyFor(member, choices);
|
|
3442
|
+
const role = member.role ? [{
|
|
3443
|
+
label: "Role",
|
|
3444
|
+
value: member.role
|
|
3445
|
+
}] : [];
|
|
3446
|
+
const card = {
|
|
3354
3447
|
id: member.id ?? `member-${index}`,
|
|
3355
3448
|
title: member.name,
|
|
3356
3449
|
media: member.photo,
|
|
3357
|
-
...typeof biography === "string" ? { text: biography } : { textDocument: biography ?? void 0 }
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3450
|
+
...typeof biography === "string" ? { text: biography } : { textDocument: biography ?? void 0 }
|
|
3451
|
+
};
|
|
3452
|
+
if (choices.teamFacts === "person") return {
|
|
3453
|
+
...card,
|
|
3454
|
+
eyebrowFacts: role,
|
|
3455
|
+
facts: member.facts ?? []
|
|
3456
|
+
};
|
|
3457
|
+
const href = sanitizeHref(member.profilePath);
|
|
3458
|
+
return {
|
|
3459
|
+
...card,
|
|
3460
|
+
facts: role,
|
|
3362
3461
|
chips: member.specialties,
|
|
3363
3462
|
...href ? { action: {
|
|
3364
3463
|
label: `About ${member.name}`,
|
|
@@ -3366,6 +3465,10 @@ function teamMemberCardContent(member, index, biographySource, cardBiography) {
|
|
|
3366
3465
|
} } : {}
|
|
3367
3466
|
};
|
|
3368
3467
|
}
|
|
3468
|
+
function cardBiographyFor(member, choices) {
|
|
3469
|
+
if (choices.cardBiography === "any") return cardText(teamMemberCardBiography(member));
|
|
3470
|
+
return choices.biographySource === "profile" && member.profileBio ? member.profileBio : member.bio;
|
|
3471
|
+
}
|
|
3369
3472
|
function cardText(biography) {
|
|
3370
3473
|
if (!biography) return null;
|
|
3371
3474
|
return biography.kind === "document" ? biography.document : biography.paragraphs.join("\n\n");
|
|
@@ -3440,18 +3543,13 @@ function TeamMembersNode(props) {
|
|
|
3440
3543
|
...about,
|
|
3441
3544
|
props
|
|
3442
3545
|
});
|
|
3546
|
+
const cards = teamMemberCards(parsed.data, props);
|
|
3443
3547
|
return /* @__PURE__ */ jsx(CardListItems, {
|
|
3444
3548
|
Carousel: props.Carousel,
|
|
3445
|
-
items:
|
|
3549
|
+
items: cards.items,
|
|
3446
3550
|
presentation: {
|
|
3447
3551
|
...props,
|
|
3448
|
-
bodyParts:
|
|
3449
|
-
"title",
|
|
3450
|
-
"facts",
|
|
3451
|
-
"text",
|
|
3452
|
-
"chips",
|
|
3453
|
-
"action"
|
|
3454
|
-
]
|
|
3552
|
+
bodyParts: cards.bodyParts
|
|
3455
3553
|
},
|
|
3456
3554
|
Title: props.sectionHeading?.trim() ? "h3" : "h2",
|
|
3457
3555
|
carouselLabels: {
|
|
@@ -3719,7 +3817,11 @@ function selectEventDetails(args) {
|
|
|
3719
3817
|
selected,
|
|
3720
3818
|
run,
|
|
3721
3819
|
sessions: run.sessions,
|
|
3722
|
-
timeZone
|
|
3820
|
+
timeZone,
|
|
3821
|
+
depositOffer: resolvePublicEventDepositOffer(selected, {
|
|
3822
|
+
nowIso: args.nowIso,
|
|
3823
|
+
sessions: run.sessions
|
|
3824
|
+
})
|
|
3723
3825
|
};
|
|
3724
3826
|
}
|
|
3725
3827
|
if (!isOrdinaryEvent(selected)) return emptySelection(timeZone);
|
|
@@ -3728,7 +3830,8 @@ function selectEventDetails(args) {
|
|
|
3728
3830
|
mode: mode === "selected" ? "selected" : "next",
|
|
3729
3831
|
selected,
|
|
3730
3832
|
otherDates: otherDates.filter(isOrdinaryEvent),
|
|
3731
|
-
timeZone
|
|
3833
|
+
timeZone,
|
|
3834
|
+
depositOffer: resolvePublicEventDepositOffer(selected, { nowIso: args.nowIso })
|
|
3732
3835
|
};
|
|
3733
3836
|
}
|
|
3734
3837
|
//#endregion
|
|
@@ -4108,7 +4211,7 @@ function eventHeaderContent(selection, show) {
|
|
|
4108
4211
|
label: "Time",
|
|
4109
4212
|
value: timeRange
|
|
4110
4213
|
},
|
|
4111
|
-
...show.cost ? (item.facts ?? []).filter(({ label }) => label === "Price").map((fact) => withDepositNote(fact,
|
|
4214
|
+
...show.cost ? (item.facts ?? []).filter(({ label }) => label === "Price").map((fact) => withDepositNote(fact, selection)) : [],
|
|
4112
4215
|
...groupSize === null ? [] : [{
|
|
4113
4216
|
label: "Group size",
|
|
4114
4217
|
value: groupSize
|
|
@@ -4117,9 +4220,9 @@ function eventHeaderContent(selection, show) {
|
|
|
4117
4220
|
action: headerAction(selection, item.action)
|
|
4118
4221
|
};
|
|
4119
4222
|
}
|
|
4120
|
-
/** The page
|
|
4121
|
-
function withDepositNote(fact,
|
|
4122
|
-
const note = formatEventDepositNote(
|
|
4223
|
+
/** The page says how booking is paid beside the price, so a deposit isn't first seen (or missed) at checkout. */
|
|
4224
|
+
function withDepositNote(fact, selection) {
|
|
4225
|
+
const note = formatEventDepositNote(selection.depositOffer);
|
|
4123
4226
|
return note ? {
|
|
4124
4227
|
...fact,
|
|
4125
4228
|
value: `${fact.value}, ${note}`
|
|
@@ -4346,7 +4449,8 @@ function formatTicketTypePrice(ticketType, currency) {
|
|
|
4346
4449
|
return formatBookingPriceDisplay(resolveExactOrFreePriceDisplay(ticketType.priceAmount, currency), { decimals: "auto" });
|
|
4347
4450
|
}
|
|
4348
4451
|
function getDisplayablePricingOptions(event) {
|
|
4349
|
-
|
|
4452
|
+
const roomPriceIds = event.rooms?.linkedOptionIds ?? [];
|
|
4453
|
+
return event.pricing.kind === "tiered" ? event.pricing.options.filter(isPublicEventPricingOptionDisplayable).filter((option) => !roomPriceIds.includes(option.id)).sort((left, right) => left.sortOrder - right.sortOrder) : [];
|
|
4350
4454
|
}
|
|
4351
4455
|
function TicketTypePriceList({ ticketTypes, currency }) {
|
|
4352
4456
|
if (ticketTypes.length === 0) return null;
|
|
@@ -4666,7 +4770,8 @@ function EventVenueMap({ venue, drawing, showMap, mapHeight, mapClassName }) {
|
|
|
4666
4770
|
});
|
|
4667
4771
|
}
|
|
4668
4772
|
/** One pricing projection governs the selected panel, including drop-in and whole-series behavior. */
|
|
4669
|
-
function selectedEventPricing(
|
|
4773
|
+
function selectedEventPricing(selection, showCost) {
|
|
4774
|
+
const event = selection.selected;
|
|
4670
4775
|
const isDropIn = isDropInEvent(event);
|
|
4671
4776
|
const wholeSeriesPricing = wholeSeriesPricingOf(event);
|
|
4672
4777
|
const showEventCost = showCost && !isDropIn && wholeSeriesPricing === null;
|
|
@@ -4674,7 +4779,7 @@ function selectedEventPricing(event, showCost) {
|
|
|
4674
4779
|
isDropIn,
|
|
4675
4780
|
wholeSeriesPricingDisplay: showCost ? wholeSeriesPricing : null,
|
|
4676
4781
|
eventCostLabel: showEventCost ? formatEventPrice(event) : null,
|
|
4677
|
-
depositNote: showCost && !isDropIn
|
|
4782
|
+
depositNote: showCost && !isDropIn && isPaid(event) ? formatEventDepositNote(selection.depositOffer) : null,
|
|
4678
4783
|
eventPricingCurrency: publicEventPricingCurrency(event.pricing),
|
|
4679
4784
|
ticketTypes: showEventCost && isPaid(event) ? getDisplayablePricingOptions(event) : []
|
|
4680
4785
|
};
|
|
@@ -4682,14 +4787,13 @@ function selectedEventPricing(event, showCost) {
|
|
|
4682
4787
|
const isDropInEvent = (event) => event.bookingScope === "single_occurrence" && event.requiresRegistration === false;
|
|
4683
4788
|
const wholeSeriesPricingOf = (event) => event.bookingScope === "whole_series" && event.pricing.kind !== "external" ? event.pricing : null;
|
|
4684
4789
|
const isPaid = (event) => publicEventPricingType(event.pricing) !== "free";
|
|
4685
|
-
const paidDepositNote = (event) => isPaid(event) ? formatEventDepositNote(event.pricing, event.paymentTerms, event) : null;
|
|
4686
4790
|
function SelectedEventDetailsView(props) {
|
|
4687
4791
|
const { selection, showVenue, showMap, showOtherDates, showTitle, showDescription, showCapacity, mapHeight, mapClassName, acceptedItems } = props;
|
|
4688
4792
|
const selected = selection.selected;
|
|
4689
4793
|
const venue = showVenue ? selected.venue : void 0;
|
|
4690
4794
|
const online = eventOnlinePlaceShown(selected, showVenue);
|
|
4691
4795
|
const addressAfterBooking = addressAfterBookingShown(selected, showVenue);
|
|
4692
|
-
const pricing = selectedEventPricing(
|
|
4796
|
+
const pricing = selectedEventPricing(selection, props.showCost);
|
|
4693
4797
|
return /* @__PURE__ */ jsxs("div", {
|
|
4694
4798
|
className: "rb-flex rb-flex-col rb-gap-6 rb-text-left",
|
|
4695
4799
|
children: [
|
|
@@ -4820,7 +4924,7 @@ function headerPanelContent(props) {
|
|
|
4820
4924
|
const venue = props.showVenue ? selection.selected.venue : void 0;
|
|
4821
4925
|
const online = eventOnlinePlaceShown(selection.selected, props.showVenue);
|
|
4822
4926
|
const teamMembers = selection.selected.teamMembers ?? [];
|
|
4823
|
-
const pricing = headerPanelPricing(props, selection
|
|
4927
|
+
const pricing = headerPanelPricing(props, selection);
|
|
4824
4928
|
const scheduled = selection.kind === "wholeSeries" ? selection.sessions.length : selection.otherDates.length;
|
|
4825
4929
|
return {
|
|
4826
4930
|
venue,
|
|
@@ -4838,8 +4942,8 @@ function headerPanelContent(props) {
|
|
|
4838
4942
|
* discount, or passes that also admit. Decided from the same projection
|
|
4839
4943
|
* `EventPricingDetails` renders, so a panel is only drawn when it will show something.
|
|
4840
4944
|
*/
|
|
4841
|
-
function headerPanelPricing(props,
|
|
4842
|
-
const pricing = selectedEventPricing(
|
|
4945
|
+
function headerPanelPricing(props, selection) {
|
|
4946
|
+
const pricing = selectedEventPricing(selection, props.showCost ?? true);
|
|
4843
4947
|
if (pricing.isDropIn) return null;
|
|
4844
4948
|
const detail = {
|
|
4845
4949
|
...pricing,
|
|
@@ -11898,26 +12002,9 @@ const shopBlockDefinition = {
|
|
|
11898
12002
|
description: "The text on the button to buy a pass.",
|
|
11899
12003
|
required: false,
|
|
11900
12004
|
multiline: false,
|
|
11901
|
-
defaultValue:
|
|
12005
|
+
defaultValue: DEFAULT_PASS_BUY_BUTTON_TEXT,
|
|
11902
12006
|
maxLength: 40
|
|
11903
12007
|
},
|
|
11904
|
-
{
|
|
11905
|
-
id: "passPurchaseMode",
|
|
11906
|
-
type: "select",
|
|
11907
|
-
label: "When someone buys a pass",
|
|
11908
|
-
description: "Add the pass to their cart, or take them straight to checkout.",
|
|
11909
|
-
required: false,
|
|
11910
|
-
multiple: false,
|
|
11911
|
-
defaultValue: "add_to_cart",
|
|
11912
|
-
options: [{
|
|
11913
|
-
value: "add_to_cart",
|
|
11914
|
-
label: "Add to cart"
|
|
11915
|
-
}, {
|
|
11916
|
-
value: "buy_now",
|
|
11917
|
-
label: "Buy now"
|
|
11918
|
-
}],
|
|
11919
|
-
ui: { intent: "behavior" }
|
|
11920
|
-
},
|
|
11921
12008
|
{
|
|
11922
12009
|
id: "subscribeButtonText",
|
|
11923
12010
|
type: "text",
|
|
@@ -12019,11 +12106,7 @@ const shopBlockDefinition = {
|
|
|
12019
12106
|
} },
|
|
12020
12107
|
buyButtonText: { $bind: {
|
|
12021
12108
|
from: "content.buyButtonText",
|
|
12022
|
-
fallback:
|
|
12023
|
-
} },
|
|
12024
|
-
passPurchaseMode: { $bind: {
|
|
12025
|
-
from: "content.passPurchaseMode",
|
|
12026
|
-
fallback: "add_to_cart"
|
|
12109
|
+
fallback: DEFAULT_PASS_BUY_BUTTON_TEXT
|
|
12027
12110
|
} },
|
|
12028
12111
|
subscribeButtonText: { $bind: {
|
|
12029
12112
|
from: "content.subscribeButtonText",
|