@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
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { n as calendarLinks } from "./src-uwCpbHXG.mjs";
|
|
3
|
+
//#region ../core/src/assert-never.ts
|
|
4
|
+
function assertNever(value, message = "Unexpected variant") {
|
|
5
|
+
throw new Error(`${message}: ${String(value)}`);
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region ../core/src/slug.ts
|
|
9
|
+
const REMOVED_CHARACTERS = /['\u2019]/g;
|
|
10
|
+
const COMBINING_DIACRITICS = /[\u0300-\u036f]/g;
|
|
11
|
+
const SEPARATOR_RUN = /[^a-z0-9]+/g;
|
|
12
|
+
const TRAILING_SLUG_SEPARATORS = /[-/]+$/g;
|
|
13
|
+
function slugifySegment(text) {
|
|
14
|
+
return text.normalize("NFD").replace(COMBINING_DIACRITICS, "").toLowerCase().replace(REMOVED_CHARACTERS, "").replace(SEPARATOR_RUN, "-").replace(/^-+|-+$/g, "");
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Convert a string to a URL-safe slug.
|
|
18
|
+
*
|
|
19
|
+
* Every non-alphanumeric character (underscores included) is a separator and
|
|
20
|
+
* collapses to a single hyphen, which keeps output inside the `site_routes`
|
|
21
|
+
* slug constraint `^[a-z0-9]+([a-z0-9\-/]*[a-z0-9])?$`.
|
|
22
|
+
*
|
|
23
|
+
* This is the single slug implementation for the monorepo: block-form and the
|
|
24
|
+
* shop admin catalog delegate here rather than keeping their own variants.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* slugify("Initial Consultation") // "initial-consultation"
|
|
28
|
+
* slugify("Reiki & Energy Healing") // "reiki-energy-healing"
|
|
29
|
+
* slugify("Don't Stop") // "dont-stop"
|
|
30
|
+
* slugify("draft_post") // "draft-post"
|
|
31
|
+
* slugify("Blog / My Post", { preserveSegments: true }) // "blog/my-post"
|
|
32
|
+
*/
|
|
33
|
+
function slugify(text, options = {}) {
|
|
34
|
+
const source = text.toString().trim();
|
|
35
|
+
const slug = options.preserveSegments === true ? source.split("/").map(slugifySegment).filter((segment) => segment.length > 0).join("/") : slugifySegment(source);
|
|
36
|
+
if (options.maxLength === void 0) return slug;
|
|
37
|
+
return slug.slice(0, options.maxLength).replace(TRAILING_SLUG_SEPARATORS, "");
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region ../blocks/src/system/runtime/shared/bookingQuestionValues.ts
|
|
41
|
+
function getInitialFieldValue(field, answers) {
|
|
42
|
+
const value = answers[field.id];
|
|
43
|
+
if (value !== void 0) return value;
|
|
44
|
+
if (field.type === "checkbox" && field.options && field.options.length > 1) return [];
|
|
45
|
+
if (field.type === "checkbox") return false;
|
|
46
|
+
if (field.type === "document_upload") return null;
|
|
47
|
+
return "";
|
|
48
|
+
}
|
|
49
|
+
/** One value per question, taken from earlier answers where there are any. */
|
|
50
|
+
function initialBookingQuestionValues(sections, answers = {}) {
|
|
51
|
+
return Object.fromEntries(sections.flatMap((section) => section.items.map((field) => [field.id, getInitialFieldValue(field, answers)])));
|
|
52
|
+
}
|
|
53
|
+
/** Where a booker starts: keeping earlier answers when we already have them. */
|
|
54
|
+
function initialBookingQuestionsAnswerMode(presentation) {
|
|
55
|
+
return presentation.kind === "already_answered" ? "keep_existing" : "answers";
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* What the submission sends. Keeping earlier answers is only possible when the
|
|
59
|
+
* presentation says we have them, so a mode left over from an earlier
|
|
60
|
+
* presentation (say the booker switched service) can't send `keep_existing`
|
|
61
|
+
* beside questions they can see and edit.
|
|
62
|
+
*/
|
|
63
|
+
function resolveBookingQuestionsAnswerMode(presentation, answerMode) {
|
|
64
|
+
return presentation.kind === "already_answered" ? answerMode : "answers";
|
|
65
|
+
}
|
|
66
|
+
/** Both booking flows submit the same decision made from the current presentation. */
|
|
67
|
+
function buildBookingQuestionsSubmission(presentation, answerMode, values) {
|
|
68
|
+
if (presentation.kind === "none" || presentation.kind === "unavailable") return void 0;
|
|
69
|
+
const requirementId = presentation.set.requirementId;
|
|
70
|
+
return resolveBookingQuestionsAnswerMode(presentation, answerMode) === "keep_existing" ? {
|
|
71
|
+
requirementId,
|
|
72
|
+
kind: "keep_existing"
|
|
73
|
+
} : {
|
|
74
|
+
requirementId,
|
|
75
|
+
kind: "answers",
|
|
76
|
+
raw: values
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
/** Starting values, seeded from earlier answers when the presentation carries them. */
|
|
80
|
+
function initialBookingQuestionsValues(presentation) {
|
|
81
|
+
switch (presentation.kind) {
|
|
82
|
+
case "none":
|
|
83
|
+
case "unavailable": return {};
|
|
84
|
+
case "ask": return initialBookingQuestionValues(presentation.set.sections);
|
|
85
|
+
case "prefill":
|
|
86
|
+
case "already_answered": return initialBookingQuestionValues(presentation.set.sections, presentation.answers);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
/** No answer given: blank text, nothing chosen, an unticked box, or no file. Mirrors the server's required check. */
|
|
90
|
+
function isUnansweredBookingQuestion(value) {
|
|
91
|
+
if (value === void 0 || value === null || value === false) return true;
|
|
92
|
+
if (typeof value === "string") return value.trim() === "";
|
|
93
|
+
if (Array.isArray(value)) return value.every((item) => item.trim() === "");
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The required questions still without an answer, so a flow can point at
|
|
98
|
+
* them before sending; the server makes the same check and has the last word.
|
|
99
|
+
*/
|
|
100
|
+
function unansweredRequiredBookingQuestions(sections, values) {
|
|
101
|
+
return sections.flatMap((section) => section.items.flatMap((field) => field.required && isUnansweredBookingQuestion(values[field.id]) ? [field.id] : []));
|
|
102
|
+
}
|
|
103
|
+
/** The same words the server uses when it refuses an unanswered question. */
|
|
104
|
+
const UNANSWERED_QUESTION_MESSAGE = "Please answer this question.";
|
|
105
|
+
const UNANSWERED_QUESTIONS_SUMMARY = "Some questions still need an answer.";
|
|
106
|
+
/**
|
|
107
|
+
* The during-booking questions before the details step moves on: required
|
|
108
|
+
* questions need an answer, unless the booker is keeping earlier ones. Format
|
|
109
|
+
* checks (length, email and so on) are left to the server.
|
|
110
|
+
*/
|
|
111
|
+
function checkBookingQuestionsAnswered(view) {
|
|
112
|
+
const { presentation } = view;
|
|
113
|
+
if (presentation.kind === "none") return { kind: "ok" };
|
|
114
|
+
if (presentation.kind === "unavailable") return {
|
|
115
|
+
kind: "refused",
|
|
116
|
+
message: presentation.message
|
|
117
|
+
};
|
|
118
|
+
if (view.answerMode === "keep_existing") return { kind: "ok" };
|
|
119
|
+
const missing = unansweredRequiredBookingQuestions(presentation.set.sections, view.values);
|
|
120
|
+
return missing.length === 0 ? { kind: "ok" } : {
|
|
121
|
+
kind: "unanswered",
|
|
122
|
+
message: UNANSWERED_QUESTIONS_SUMMARY,
|
|
123
|
+
fieldErrors: Object.fromEntries(missing.map((fieldId) => [fieldId, UNANSWERED_QUESTION_MESSAGE]))
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/bookingCalendar.ts
|
|
128
|
+
/** Public schedule plus the authorised outcome's arrival text; online access stays in email. */
|
|
129
|
+
function bookingCalendar(event, outcome) {
|
|
130
|
+
if (!event) return null;
|
|
131
|
+
const { identity } = outcome;
|
|
132
|
+
const sessions = event.registrationSubject.kind === "wholeSeries" ? event.registrationSubject.sessions : [{
|
|
133
|
+
occurrenceId: event.registrationSubject.occurrenceId,
|
|
134
|
+
startsAt: event.startsAt,
|
|
135
|
+
endsAt: event.endsAt
|
|
136
|
+
}];
|
|
137
|
+
const bookingId = identity.scope === "occurrence" ? identity.attendeeId : identity.registrationId;
|
|
138
|
+
const entries = sessions.map((session) => ({
|
|
139
|
+
uid: `booking-${bookingId}-${session.occurrenceId}@riverbankcms.com`,
|
|
140
|
+
sequence: 0,
|
|
141
|
+
title: event.title,
|
|
142
|
+
startsAt: new Date(session.startsAt),
|
|
143
|
+
endsAt: new Date(session.endsAt),
|
|
144
|
+
timezone: "UTC",
|
|
145
|
+
status: "confirmed",
|
|
146
|
+
location: identity.attendanceMode === "online" ? ONLINE_CALENDAR_LOCATION : outcome.arrivalVenues?.[session.occurrenceId] ?? event.venue?.name,
|
|
147
|
+
description: identity.attendanceMode === "online" ? ONLINE_CALENDAR_DESCRIPTION : void 0
|
|
148
|
+
}));
|
|
149
|
+
return bookingCalendarFromEntries(event.title, entries);
|
|
150
|
+
}
|
|
151
|
+
/** The online-booking entry's wording: joining details are kept out of a file that's easy to forward. */
|
|
152
|
+
const ONLINE_CALENDAR_LOCATION = "Online";
|
|
153
|
+
const ONLINE_CALENDAR_DESCRIPTION = "See your confirmation email for joining instructions.";
|
|
154
|
+
/** A calendar entry needs an end; a booking nobody gave one shows as an hour. */
|
|
155
|
+
function calendarEntryEnd(startsAt, endsAt) {
|
|
156
|
+
return endsAt && endsAt.getTime() > startsAt.getTime() ? endsAt : new Date(startsAt.getTime() + 60 * 6e4);
|
|
157
|
+
}
|
|
158
|
+
/** One booking's entries as a download, with Google and Outlook links when it's a single date. */
|
|
159
|
+
function bookingCalendarFromEntries(title, entries) {
|
|
160
|
+
const first = entries[0];
|
|
161
|
+
if (!first) return null;
|
|
162
|
+
const common = {
|
|
163
|
+
fileName: `${slugify(title) || "event"}.ics`,
|
|
164
|
+
feed: {
|
|
165
|
+
timezone: "UTC",
|
|
166
|
+
entries
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
return entries.length === 1 ? {
|
|
170
|
+
...common,
|
|
171
|
+
kind: "single",
|
|
172
|
+
...calendarLinks(first)
|
|
173
|
+
} : {
|
|
174
|
+
...common,
|
|
175
|
+
kind: "sessions",
|
|
176
|
+
sessionCount: entries.length
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
//#endregion
|
|
180
|
+
export { calendarEntryEnd as a, checkBookingQuestionsAnswered as c, initialBookingQuestionsAnswerMode as d, initialBookingQuestionsValues as f, assertNever as h, bookingCalendarFromEntries as i, getInitialFieldValue as l, unansweredRequiredBookingQuestions as m, ONLINE_CALENDAR_LOCATION as n, UNANSWERED_QUESTION_MESSAGE as o, resolveBookingQuestionsAnswerMode as p, bookingCalendar as r, buildBookingQuestionsSubmission as s, ONLINE_CALENDAR_DESCRIPTION as t, initialBookingQuestionValues as u };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BookingFormClient } from "./booking-form.client-
|
|
3
|
-
import { t as BlockApiProvider } from "./context-
|
|
4
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder
|
|
2
|
+
import { t as BookingFormClient } from "./booking-form.client-cBWM392H.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-CRhn9qzS.mjs";
|
|
4
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder--uHW4tFM.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-BtCg87-N.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/bookingForm.tsx
|
package/dist/client/bookings.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-
|
|
6
|
-
import { n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
2
|
+
import { S as publicEventSchema, t as assertNever } from "./src-ZSqRK3dD.mjs";
|
|
3
|
+
import { $ as deriveEventRegistrationSteps, Hi as normalizeBookingServices, Hr as resolveRegistrationDisplay, Tr as getSingleSelectedPricingOptionId, Vi as normalizeBookingFormConfig, Za as createHostedBlockApiConfig, at as toHeadlessPaymentSelection, hi as normalizeEventRegistrationPageSurfaceSubject, it as resolveHeadlessEventRegistrationView, nt as resolveEventRegistrationSubmitPlan, ot as toInternalPaymentSelection, rt as resolveHeadlessEventRegistrationStatus, tt as normalizeEventRegistrationMaxTickets, uo as resolveRuntimeEventDestination, va as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, xs as readRuntimeNow, yt as entryChoosesEvent } from "./wizardSteps-BliJOzEX.mjs";
|
|
4
|
+
import { a as useHeadlessBookingFlow, i as HeadlessBookingProvider$1, o as createBookingBlockApiConfig, r as HeadlessBookingPaymentSelectionStep$1, s as getAppointmentBookingOverrideInput, t as BookingFormClient$1 } from "./booking-form.client-cBWM392H.mjs";
|
|
5
|
+
import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-DSqCJL8E.mjs";
|
|
6
|
+
import { n as useBlockApi, t as BlockApiProvider } from "./context-CRhn9qzS.mjs";
|
|
7
7
|
import * as React$1 from "react";
|
|
8
8
|
import React, { useCallback, useEffect, useMemo, useReducer } from "react";
|
|
9
9
|
//#region ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.ts
|
|
@@ -106,14 +106,15 @@ function useEventRegistrationController(options) {
|
|
|
106
106
|
}
|
|
107
107
|
function useEventRegistrationControllerWithDeps(options, deps) {
|
|
108
108
|
const { wizard } = useEventRegistrationWizardControllerWithDeps(options, deps);
|
|
109
|
+
const hasPreSelectedContext = !entryChoosesEvent(wizard.entry);
|
|
109
110
|
const steps = useMemo(() => deriveEventRegistrationSteps({
|
|
110
111
|
step: wizard.step,
|
|
111
|
-
hasPreSelectedContext
|
|
112
|
+
hasPreSelectedContext,
|
|
112
113
|
eventRequiresPayment: wizard.eventRequiresPayment,
|
|
113
114
|
paymentSelection: wizard.paymentSelection
|
|
114
115
|
}), [
|
|
115
116
|
wizard.eventRequiresPayment,
|
|
116
|
-
|
|
117
|
+
hasPreSelectedContext,
|
|
117
118
|
wizard.paymentSelection,
|
|
118
119
|
wizard.step
|
|
119
120
|
]);
|
|
@@ -144,7 +145,7 @@ function useEventRegistrationControllerWithDeps(options, deps) {
|
|
|
144
145
|
scoped: wizard.scopedEvents,
|
|
145
146
|
selected: wizard.selectedEvent,
|
|
146
147
|
preSelected: wizard.preSelectedEvent,
|
|
147
|
-
hasPreSelectedContext
|
|
148
|
+
hasPreSelectedContext,
|
|
148
149
|
target: wizard.registrationTarget,
|
|
149
150
|
occurrenceContext: wizard.occurrenceContext
|
|
150
151
|
},
|
|
@@ -156,7 +157,7 @@ function useEventRegistrationControllerWithDeps(options, deps) {
|
|
|
156
157
|
subtotalCents: wizard.ticketSelectionSubtotalCents,
|
|
157
158
|
selectedPricingOptionId,
|
|
158
159
|
selectedTicketType: wizard.selectedTicketType,
|
|
159
|
-
visibleTicketTypes: wizard.
|
|
160
|
+
visibleTicketTypes: wizard.listableTicketTypes,
|
|
160
161
|
selectionRequired: wizard.ticketTypeSelectionRequired,
|
|
161
162
|
hasValidSelection: wizard.hasValidTicketSelection,
|
|
162
163
|
eventRequiresPayment: wizard.eventRequiresPayment,
|
|
@@ -194,6 +195,7 @@ function useEventRegistrationControllerWithDeps(options, deps) {
|
|
|
194
195
|
updateAttendee,
|
|
195
196
|
updateGuests,
|
|
196
197
|
selectPayment,
|
|
198
|
+
...headlessFundingActions(wizard.selectionFunding),
|
|
197
199
|
setDiscountCode: wizard.setDiscountCode,
|
|
198
200
|
setDiscountOpen: wizard.setDiscountUiOpen,
|
|
199
201
|
applyDiscountCode: async () => {
|
|
@@ -215,9 +217,13 @@ function useEventRegistrationControllerWithDeps(options, deps) {
|
|
|
215
217
|
wizard
|
|
216
218
|
};
|
|
217
219
|
}
|
|
218
|
-
/**
|
|
220
|
+
/**
|
|
221
|
+
* Execute the existing submission decision through the wizard's booking owner. A pass
|
|
222
|
+
* or membership chosen for the dates submits as the payment step's button does.
|
|
223
|
+
*/
|
|
219
224
|
function useHeadlessRegistrationSubmit(wizard) {
|
|
220
225
|
return useCallback(async () => {
|
|
226
|
+
if (wizard.step === "select-payment" && wizard.selectionFunding?.view?.option.kind === "entitlement") return wizard.handlePaymentSelect();
|
|
221
227
|
const plan = resolveEventRegistrationSubmitPlan({
|
|
222
228
|
paymentSelection: wizard.paymentSelection,
|
|
223
229
|
eventRequiresPayment: wizard.eventRequiresPayment,
|
|
@@ -228,7 +234,7 @@ function useHeadlessRegistrationSubmit(wizard) {
|
|
|
228
234
|
reason: "blocked",
|
|
229
235
|
message: plan.message
|
|
230
236
|
};
|
|
231
|
-
return wizard.handleSubmit(plan.args.method, plan.args.
|
|
237
|
+
return wizard.handleSubmit(plan.args.method, plan.args.membershipId, plan.args.selection);
|
|
232
238
|
}, [wizard]);
|
|
233
239
|
}
|
|
234
240
|
/** The embedded payment's headless actions all come from the one payment controller. */
|
|
@@ -295,7 +301,7 @@ function useEventRegistrationBack(wizard) {
|
|
|
295
301
|
wizard.setStep("enter-details");
|
|
296
302
|
return;
|
|
297
303
|
case "select-tickets":
|
|
298
|
-
if (
|
|
304
|
+
if (entryChoosesEvent(wizard.entry)) wizard.setStep("select-event");
|
|
299
305
|
return;
|
|
300
306
|
case "select-event":
|
|
301
307
|
case "error":
|
|
@@ -323,7 +329,8 @@ function useEventRegistrationWizardControllerWithDeps(options, deps) {
|
|
|
323
329
|
maxTicketsNum,
|
|
324
330
|
siteTerms: options.siteTerms,
|
|
325
331
|
mailingList: options.mailingList,
|
|
326
|
-
siteName: options.siteName
|
|
332
|
+
siteName: options.siteName,
|
|
333
|
+
datePageOffer: "eventsAsGiven"
|
|
327
334
|
}) };
|
|
328
335
|
}
|
|
329
336
|
function resolveExistingRegistrations(wizard) {
|
|
@@ -346,6 +353,10 @@ function resolveExistingRegistrationState(wizard) {
|
|
|
346
353
|
tag: "loaded",
|
|
347
354
|
value: wizard.existingRegistrations
|
|
348
355
|
};
|
|
356
|
+
case "failed": return {
|
|
357
|
+
tag: "failed",
|
|
358
|
+
value: null
|
|
359
|
+
};
|
|
349
360
|
}
|
|
350
361
|
}
|
|
351
362
|
function resolvePaymentModel(wizard, directPaymentOptions) {
|
|
@@ -357,7 +368,8 @@ function resolvePaymentModel(wizard, directPaymentOptions) {
|
|
|
357
368
|
directPaymentOptions,
|
|
358
369
|
directPaymentSelectionState,
|
|
359
370
|
checkout: wizard.paymentController.state,
|
|
360
|
-
stepState: wizard.paymentStepState
|
|
371
|
+
stepState: wizard.paymentStepState,
|
|
372
|
+
funding: null
|
|
361
373
|
};
|
|
362
374
|
return {
|
|
363
375
|
kind: wizard.paymentStepState.status,
|
|
@@ -367,7 +379,31 @@ function resolvePaymentModel(wizard, directPaymentOptions) {
|
|
|
367
379
|
checkout: wizard.paymentController.state,
|
|
368
380
|
stepState: wizard.paymentStepState,
|
|
369
381
|
eligibility: wizard.eligibility,
|
|
370
|
-
eligibilityError: wizard.
|
|
382
|
+
eligibilityError: wizard.paymentOptionsError,
|
|
383
|
+
funding: projectFunding(wizard.selectionFunding)
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
/** Picks one of the dates' ways to pay by its row key, or asks for them again. */
|
|
387
|
+
function headlessFundingActions(model) {
|
|
388
|
+
return {
|
|
389
|
+
chooseFunding: (key) => {
|
|
390
|
+
const row = model?.view?.rows.find((candidate) => candidate.key === key);
|
|
391
|
+
if (row) model?.choose(row);
|
|
392
|
+
},
|
|
393
|
+
retryFunding: () => model?.retry()
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
/** The wizard's ways to pay for the dates, as a headless consumer renders them. */
|
|
397
|
+
function projectFunding(model) {
|
|
398
|
+
if (!model) return null;
|
|
399
|
+
const view = model.view;
|
|
400
|
+
return {
|
|
401
|
+
status: model.status,
|
|
402
|
+
rows: view?.rows ?? [],
|
|
403
|
+
summary: view?.summary ?? null,
|
|
404
|
+
buttonText: view?.buttonText ?? null,
|
|
405
|
+
note: view?.note ?? null,
|
|
406
|
+
notice: model.notice
|
|
371
407
|
};
|
|
372
408
|
}
|
|
373
409
|
function projectRegistrationDiscount(wizard) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { cn as
|
|
2
|
+
import { ds as asPartialObject } from "./wizardSteps-BliJOzEX.mjs";
|
|
3
|
+
import { cn as boxBackgroundSchema, fn as cardVariantRoleValues, ln as runtimeBoxBackgroundSchema, mn as openCardRoleValue, pn as itemRoleValues, sn as boxBackgroundOverlaySchema, un as boxlessCardVariantValue } from "./noop-Dl4mZ-rr.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
z.enum(itemRoleValues);
|
|
6
6
|
z.enum(cardVariantRoleValues);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { i as carouselRegionAttributes } from "./carousel.shared-BFQ3kBEw.mjs";
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder
|
|
4
|
-
import { t as CarouselNodeClient } from "./carousel.client-
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder--uHW4tFM.mjs";
|
|
4
|
+
import { t as CarouselNodeClient } from "./carousel.client-BtLwHefX.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { x as clsx } from "./ThemedButton-PFOhXktM.mjs";
|
|
3
3
|
import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, o as carouselStatus, r as carouselContents, u as resolveSlidesToShowMobile } from "./carousel.shared-BFQ3kBEw.mjs";
|
|
4
4
|
import { t as createLucideIcon } from "./createLucideIcon-BrXgHVKN.mjs";
|
|
5
5
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder
|
|
3
|
-
import { t as CartClient } from "./cart.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder--uHW4tFM.mjs";
|
|
3
|
+
import { t as CartClient } from "./cart.client-D_gPw45z.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-BVbq7Nm-.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/cart.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("cart");
|
|
7
7
|
const enhance = (root, props) => mountShopBlockIsland(root, props, CartClient, "cart");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as CartController } from "./shop-commerce-
|
|
2
|
+
import { t as CartController } from "./shop-commerce-D8evQnMT.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/cart.client.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder
|
|
3
|
-
import { t as CheckoutClient } from "./checkout.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder--uHW4tFM.mjs";
|
|
3
|
+
import { t as CheckoutClient } from "./checkout.client-DD3JuqOy.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-BVbq7Nm-.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/checkout.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("checkout");
|
|
7
7
|
const enhance = (root, props) => mountShopBlockIsland(root, props, CheckoutClient, "checkout");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as CheckoutController } from "./shop-commerce-
|
|
2
|
+
import { n as CheckoutController } from "./shop-commerce-D8evQnMT.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/checkout.client.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { eo as canonicalUrl } from "./wizardSteps-BliJOzEX.mjs";
|
|
3
3
|
//#region ../blocks/src/system/runtime/shared/utils/checkoutUrls.ts
|
|
4
4
|
/**
|
|
5
5
|
* Build return URLs for Stripe checkout redirect.
|