@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
|
@@ -132,4 +132,4 @@ function buildRenderableMediaAssetIndex(assets) {
|
|
|
132
132
|
return indexRenderableMediaAssets(assets.map((asset) => renderableMediaAssetSchema.parse(asset)));
|
|
133
133
|
}
|
|
134
134
|
//#endregion
|
|
135
|
-
export { mediaIdentifierSchema as a,
|
|
135
|
+
export { mediaIdentifierSchema as a, parseMediaAssetId as c, unsafeAsStoragePath as d, parseUuidBrand as f, resolveManagedMediaReference as i, unsafeAsMediaAssetId as l, ok as m, renderableMediaAssetSchema as n, parseCanonicalMediaIdentifier as o, err as p, indexRenderableMediaAssets as r, parseMediaIdentifier as s, buildRenderableMediaAssetIndex as t, unsafeAsStorageBucketName as u };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import {
|
|
4
|
-
import { r as indexRenderableMediaAssets } from "../renderableMediaAssetAdmission-
|
|
5
|
-
import {
|
|
6
|
-
import { n as BookingFormNodeClient } from "../booking-form.client-
|
|
7
|
-
import { t as EventRegistrationBlockClient } from "../event-registration.client-
|
|
8
|
-
import {
|
|
9
|
-
import { $ as WeeklySlotAvailabilityView, Dt as composeHeaderSectionWrapperClassName, Et as HeaderSectionFrame, Ft as resolveAccordionIconStyle, Ln as ICON_CONFIG, Mt as accordionItemPartSlots, Nt as accordionLookAttributes, Ot as markEditableSurfaceForwarding, Pt as accordionIconColorStyle, ft as LocationMapSSR, kt as splitPositioningClasses, n as runtimeBackedBlockModes, r as runtimeBackedBlockServerEntries, t as serverComponentRegistry, wt as resolveEventDetailsPresentation, xt as EventDetailsView } from "../registry.server-
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import "../
|
|
13
|
-
import { S as clsx } from "../ThemedButton-CnSa7o-I.mjs";
|
|
3
|
+
import { hn as staticHeaderChromeRuntime } from "../newsletter-form.interactive-RuM86VAv.mjs";
|
|
4
|
+
import { r as indexRenderableMediaAssets } from "../renderableMediaAssetAdmission-BsOWd9lf.mjs";
|
|
5
|
+
import { Do as RichText, Jo as computeMediaTransformStyle, Ko as ImagePresets, Xo as renderAudio, Yo as mediaImageHostProps, Zo as renderVideo, qo as MediaPlaceholder, ts as resolveMediaNodeResponsiveImage } from "../wizardSteps-BliJOzEX.mjs";
|
|
6
|
+
import { n as BookingFormNodeClient } from "../booking-form.client-cBWM392H.mjs";
|
|
7
|
+
import { t as EventRegistrationBlockClient } from "../event-registration.client-D7YYKySQ.mjs";
|
|
8
|
+
import { h as Text } from "../timetableModel-BQJrSK0K.mjs";
|
|
9
|
+
import { $ as WeeklySlotAvailabilityView, Dt as composeHeaderSectionWrapperClassName, Et as HeaderSectionFrame, Ft as resolveAccordionIconStyle, Ln as ICON_CONFIG, Mt as accordionItemPartSlots, Nt as accordionLookAttributes, Ot as markEditableSurfaceForwarding, Pt as accordionIconColorStyle, ft as LocationMapSSR, kt as splitPositioningClasses, n as runtimeBackedBlockModes, r as runtimeBackedBlockServerEntries, t as serverComponentRegistry, wt as resolveEventDetailsPresentation, xt as EventDetailsView } from "../registry.server-CDNNd8wC.mjs";
|
|
10
|
+
import { n as useBlockApi, t as BlockApiProvider$1 } from "../context-CRhn9qzS.mjs";
|
|
11
|
+
import "../accessibleSurfaces-n6kS6Hct.mjs";
|
|
12
|
+
import { x as clsx } from "../ThemedButton-PFOhXktM.mjs";
|
|
14
13
|
import { t as CarouselSlideContent } from "../carousel.shared-BFQ3kBEw.mjs";
|
|
15
|
-
import { t as coerceRichTextDoc } from "../richText-coerce-
|
|
16
|
-
import { t as ShopClient } from "../shop.client-
|
|
14
|
+
import { t as coerceRichTextDoc } from "../richText-coerce-CQGE_wHV.mjs";
|
|
15
|
+
import { t as ShopClient } from "../shop.client-D4lzQ9oY.mjs";
|
|
16
|
+
import { n as EventCombinedIslandClient } from "../EventCombined.client-uciDKLID.mjs";
|
|
17
|
+
import { o as getRuntimeTimeZone } from "../useAvailableSlots-Dm3lKJKR.mjs";
|
|
17
18
|
import { t as createLucideIcon } from "../createLucideIcon-BrXgHVKN.mjs";
|
|
18
|
-
import { t as CarouselNodeClient } from "../carousel.client-
|
|
19
|
-
import { t as ProductListClient } from "../product-list.client-
|
|
20
|
-
import { t as ProductDetailClient } from "../product-detail.client-
|
|
21
|
-
import { t as CartClient } from "../cart.client-
|
|
22
|
-
import { t as CheckoutClient } from "../checkout.client-
|
|
23
|
-
import { t as GiftingClient } from "../gifting.client-
|
|
24
|
-
import { t as mountHeaderChromeRuntime } from "../enhanceHeaderSection-
|
|
25
|
-
import { t as EventListingClient } from "../EventListing.client-
|
|
26
|
-
import {
|
|
27
|
-
import { t as
|
|
28
|
-
import { t as
|
|
29
|
-
import { t as
|
|
30
|
-
import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-1XifJg6V.mjs";
|
|
19
|
+
import { t as CarouselNodeClient } from "../carousel.client-BtLwHefX.mjs";
|
|
20
|
+
import { t as ProductListClient } from "../product-list.client-CcUpUiud.mjs";
|
|
21
|
+
import { t as ProductDetailClient } from "../product-detail.client-pOAryevt.mjs";
|
|
22
|
+
import { t as CartClient } from "../cart.client-D_gPw45z.mjs";
|
|
23
|
+
import { t as CheckoutClient } from "../checkout.client-DD3JuqOy.mjs";
|
|
24
|
+
import { t as GiftingClient } from "../gifting.client-QsSWF0uA.mjs";
|
|
25
|
+
import { t as mountHeaderChromeRuntime } from "../enhanceHeaderSection-tdP_-Z9o.mjs";
|
|
26
|
+
import { t as EventListingClient } from "../EventListing.client-DA57Qoyx.mjs";
|
|
27
|
+
import { t as EventCalendarClient } from "../EventCalendar.client-zDL4-t-B.mjs";
|
|
28
|
+
import { t as FormNodeClient } from "../form.client-e2z_Tlgk.mjs";
|
|
29
|
+
import { t as NewsletterFormClient } from "../newsletter-form.client-WYja9-WN.mjs";
|
|
30
|
+
import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-DqZPz6oW.mjs";
|
|
31
31
|
import * as React$1 from "react";
|
|
32
32
|
import React, { createContext, createElement, useContext, useEffect, useMemo, useRef } from "react";
|
|
33
33
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as mediaIdentifierSchema, i as resolveManagedMediaReference, n as renderableMediaAssetSchema, o as parseCanonicalMediaIdentifier, s as parseMediaIdentifier, t as buildRenderableMediaAssetIndex } from "./renderableMediaAssetAdmission-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { W as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { a as mediaIdentifierSchema, i as resolveManagedMediaReference, n as renderableMediaAssetSchema, o as parseCanonicalMediaIdentifier, s as parseMediaIdentifier, t as buildRenderableMediaAssetIndex } from "./renderableMediaAssetAdmission-BsOWd9lf.mjs";
|
|
3
|
+
import { Cn as toUtcIsoDateTimeString, J as runtimeMediaSchema, K as mediaSchema, q as persistableMediaSchema } from "./src-ZSqRK3dD.mjs";
|
|
4
|
+
import { $o as resolveImageUrl$1, Cs as sanitizeHref, Do as RichText$2, Jo as computeMediaTransformStyle, Qo as resolveImageSourceSetWithContext$1, Ss as resolveDateRuntimeContext, es as resolveImageUrlWithContext$1, xs as readRuntimeNow } from "./wizardSteps-BliJOzEX.mjs";
|
|
5
|
+
import { t as CUSTOMER_PORTAL_PATH } from "./portalRoutes-D72yvtDh.mjs";
|
|
6
|
+
import { $ as bookingPageDesign, B as SERVICE_BOOKING_BLOCK_IDS, C as siteBlockRenderContext, D as resolveBlockDataWithDeps, E as createBlockDataLoadPolicy, G as bookingPageSeedData, H as BOOKING_PAGE_BLOCK_IDS, I as MISSING_SDK_THEME_ERROR_CODE, J as plainTextDoc, K as buildBookingPageOutline, L as MissingSdkThemeError, N as normalizeDataLoaderSearchParams, O as SUPPORTED_LOADER_ENDPOINTS, Q as bookingHero, R as requireSdkTheme, S as projectRenderablePageOutline, T as DEFAULT_RESOLVE_BLOCK_DATA_DEPS, U as bookingDetailEvents, V as buildServiceBookingOutline, W as bookingPageFacts, X as createPublicBlockContentContractResolver, Y as buildCodeOwnedPageBlocks, Z as bookingDescription, a as solvedInksForThemeRuntime, at as makeDefaultBlockComponent, b as buildSiteRenderSupport, c as MissingBlockOverrideError, ct as deriveFieldValidationPlan, d as buildThemeRuntime, dt as getDefaultComponentRegistry, et as bookingSectionBlocks, f as parseBlocksTheme, ft as resolveAuthoredLinkHref, g as loadContent, h as isPageSurfaceContent, ht as resolveRouteHrefForStage, i as renderWithSdkThemeRuntime, it as siteHeaderManifest, k as prefetchBlockDataWithFailures, l as PageRenderer, lt as projectRepeaterGridLayout$1, m as isPageContent, mt as normalizeRenderStage, n as planLayoutThemeRuntime, nt as getBlockDefinition, o as ThemeScope, ot as renderBlock, p as isEntryContent, pt as isRouteVisibleInStage, q as bookingPageIdentity, r as renderWithOverrideOnlyRuntime, rt as siteFooterManifest, s as EditorPageRenderer, st as admitLayoutGridForPlan, t as Page, tt as planBlockDataRequests, u as toBlocksPageRendererDataContext, ut as projectRepeaterGridLayoutForRendering$1, v as loadContentFromContentResponseWithDeps, w as resolveSiteCustomBlocks, x as collectMediaAssetSidecar, y as buildRenderablePageOutline, z as parseServicePageContent } from "./Page-C7mygH_f.mjs";
|
|
7
|
+
import { W as parseFieldDefinition } from "./registry.server-CDNNd8wC.mjs";
|
|
8
|
+
import { o as setContextResolveImageUrlContext, t as buildResolveImageUrlContext } from "./mediaContext-DzvnjYXm.mjs";
|
|
9
|
+
import { n as toBlocksImageResolveContextInput, r as toBlocksMediaAssets } from "./mediaAssets-COfQolI3.mjs";
|
|
9
10
|
import "react";
|
|
10
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
12
|
import { z } from "zod";
|
|
@@ -214,6 +215,13 @@ function getRiverbankEnv() {
|
|
|
214
215
|
};
|
|
215
216
|
}
|
|
216
217
|
//#endregion
|
|
218
|
+
//#region src/portal/constants.ts
|
|
219
|
+
/**
|
|
220
|
+
* Portal Authentication Constants
|
|
221
|
+
*/
|
|
222
|
+
/** Default redirect path for callback */
|
|
223
|
+
const DEFAULT_PORTAL_REDIRECT = CUSTOMER_PORTAL_PATH;
|
|
224
|
+
//#endregion
|
|
217
225
|
//#region src/navigation/index.ts
|
|
218
226
|
/**
|
|
219
227
|
* Get the fixed main navigation menu object.
|
|
@@ -252,7 +260,7 @@ function isCommerceEnabled(options) {
|
|
|
252
260
|
return options?.commerceEnabled === true;
|
|
253
261
|
}
|
|
254
262
|
function resolvePortalHref(link) {
|
|
255
|
-
return link.path?.trim() ||
|
|
263
|
+
return link.path?.trim() || DEFAULT_PORTAL_REDIRECT;
|
|
256
264
|
}
|
|
257
265
|
function resolveCheckoutHref(options) {
|
|
258
266
|
if (options?.checkoutHref === null) return null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { z as RichTextDocSchema } from "./src-ZSqRK3dD.mjs";
|
|
3
|
+
import { t as logger } from "./noop-Dl4mZ-rr.mjs";
|
|
3
4
|
//#region ../blocks/src/system/runtime/nodes/richText-coerce.ts
|
|
4
5
|
function parseRichTextDoc(value) {
|
|
5
6
|
const parsed = RichTextDocSchema.safeParse(value);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Za as createHostedBlockApiConfig } from "./wizardSteps-BliJOzEX.mjs";
|
|
3
3
|
//#region src/rendering/islands/enhancers/routeIslandApiConfig.ts
|
|
4
4
|
function buildRouteIslandApiConfig({ apiBaseUrl, portalToken, previewToken, siteId, stage, readAuthority }) {
|
|
5
5
|
if (readAuthority) return createHostedBlockApiConfig({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as parseSurfaceTree } from "./accessibleSurfaces-
|
|
2
|
+
import { n as parseSurfaceTree } from "./accessibleSurfaces-n6kS6Hct.mjs";
|
|
3
3
|
//#region ../site-renderer/src/runtimeResponse.ts
|
|
4
4
|
/** Recreate owner-produced rendering values at a JSON boundary, never trust copied proofs. */
|
|
5
5
|
function restoreRuntimeResponse(serialized) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as ShopClient } from "./shop.client-
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as ShopClient } from "./shop.client-D4lzQ9oY.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder--uHW4tFM.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-BVbq7Nm-.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/shop.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("shop");
|
|
7
7
|
const enhance = (root, props) => {
|
|
@@ -1,24 +1,61 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { i as useSiteTermsAgreement, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-
|
|
6
|
-
import { n as useBlockApi } from "./context-
|
|
7
|
-
import {
|
|
8
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-
|
|
9
|
-
import { a as
|
|
10
|
-
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
2
|
+
import { Y as getShopDisplayForItems } from "./newsletter-form.interactive-RuM86VAv.mjs";
|
|
3
|
+
import { a as clearWorkflowFeedback, o as reportWorkflowError, t as assertNever } from "./src-ZSqRK3dD.mjs";
|
|
4
|
+
import { Do as RichText, Jr as buildProductCardDisplay, Yr as buildProductDetailDisplay, Zr as formatCommercePrice, ai as buildProductCartItem, ci as productItemKey, oi as deriveCommerceCheckoutState } from "./wizardSteps-BliJOzEX.mjs";
|
|
5
|
+
import { i as useSiteTermsAgreement, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-B4z-e4Wq.mjs";
|
|
6
|
+
import { n as useBlockApi } from "./context-CRhn9qzS.mjs";
|
|
7
|
+
import { n as ThemedButton, r as ThemedButtonLink } from "./ThemedButton-PFOhXktM.mjs";
|
|
8
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-CQGE_wHV.mjs";
|
|
9
|
+
import { a as isDiscountCodeRefusal, c as checkoutFormForDiscountUiState, f as planUnifiedCheckoutRequest, m as DiscountCodeDisclosure, n as DemoBookingPortalAccess, o as useDiscountApply, s as aggregateCartDiscountUiState, u as planCartDiscountAvailabilityRequests } from "./DemoBookingPortalAccess-DFLPyuqe.mjs";
|
|
10
|
+
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-z2gXvlGw.mjs";
|
|
11
|
+
import { n as resolveDedicatedCheckoutPath, t as useCommerceCart } from "./shop-commerce-store-C9PcsSTj.mjs";
|
|
12
|
+
import { t as consumeSearchParam } from "./urlParams-C2QHo1Pa.mjs";
|
|
13
13
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
14
|
-
import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-
|
|
15
|
-
import { a as readDemoBookingCheckoutReturnEmail, o as storeDemoBookingCheckoutReturn } from "./demoPortalMagicLink-
|
|
16
|
-
import { a as initialDiscountApplyState, i as getDiscountApplyFeedback, n as discountDraftAwaitingApply, o as isDiscountApplyInFlight, r as getAppliedDiscountCode, t as discountApplyReducer } from "./shop-discount-apply.state-
|
|
17
|
-
import { t as CarouselNodeClient } from "./carousel.client-
|
|
18
|
-
import { n as useCommerceCart } from "./shop-commerce-store-B7xHksOs.mjs";
|
|
14
|
+
import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-CC_yQLSA.mjs";
|
|
15
|
+
import { a as readDemoBookingCheckoutReturnEmail, o as storeDemoBookingCheckoutReturn } from "./demoPortalMagicLink-CWDGSTBu.mjs";
|
|
16
|
+
import { a as initialDiscountApplyState, i as getDiscountApplyFeedback, n as discountDraftAwaitingApply, o as isDiscountApplyInFlight, r as getAppliedDiscountCode, t as discountApplyReducer } from "./shop-discount-apply.state-D5CtGfJI.mjs";
|
|
17
|
+
import { t as CarouselNodeClient } from "./carousel.client-BtLwHefX.mjs";
|
|
19
18
|
import * as React$1 from "react";
|
|
20
19
|
import { useEffect, useState } from "react";
|
|
21
20
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
21
|
+
//#region ../blocks/src/system/runtime/nodes/shop-add-feedback.tsx
|
|
22
|
+
const DEFAULT_TIMEOUT_MS = 2500;
|
|
23
|
+
function useTransientShopAddFeedback(timeoutMs = DEFAULT_TIMEOUT_MS) {
|
|
24
|
+
const [activeKey, setActiveKey] = React$1.useState(null);
|
|
25
|
+
React$1.useEffect(() => {
|
|
26
|
+
if (!activeKey) return;
|
|
27
|
+
const timeoutId = window.setTimeout(() => {
|
|
28
|
+
setActiveKey((current) => current === activeKey ? null : current);
|
|
29
|
+
}, timeoutMs);
|
|
30
|
+
return () => window.clearTimeout(timeoutId);
|
|
31
|
+
}, [activeKey, timeoutMs]);
|
|
32
|
+
return {
|
|
33
|
+
activeKey,
|
|
34
|
+
markAdded: setActiveKey,
|
|
35
|
+
clear: () => setActiveKey(null)
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function ShopAddFeedback(props) {
|
|
39
|
+
if (!props.active) return null;
|
|
40
|
+
return /* @__PURE__ */ jsxs(FeedbackMessage, {
|
|
41
|
+
tone: "success",
|
|
42
|
+
className: "rb-caption status-muted",
|
|
43
|
+
role: "status",
|
|
44
|
+
live: "polite",
|
|
45
|
+
children: [
|
|
46
|
+
"Added ",
|
|
47
|
+
props.itemLabel,
|
|
48
|
+
" to cart.",
|
|
49
|
+
" ",
|
|
50
|
+
/* @__PURE__ */ jsx("a", {
|
|
51
|
+
href: "#shop-cart",
|
|
52
|
+
children: "View cart"
|
|
53
|
+
}),
|
|
54
|
+
"."
|
|
55
|
+
]
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
22
59
|
//#region ../blocks/src/system/runtime/nodes/shop-checkout.state.ts
|
|
23
60
|
const initialShopCheckoutState = {
|
|
24
61
|
form: {
|
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { ii as buildPassCartItem, li as reduceCommerceCart, ri as EMPTY_COMMERCE_CART_STATE, si as parseStoredCommerceCartState } from "./wizardSteps-BliJOzEX.mjs";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
|
+
//#region ../blocks/src/system/runtime/shared/utils/checkoutRoute.ts
|
|
5
|
+
function resolveDedicatedCheckoutTarget(pathname) {
|
|
6
|
+
const internalPublishedMatch = pathname.match(/^\/internal-sites\/([^/]+)\/([^/]+)\/published(?:\/.*)?$/);
|
|
7
|
+
if (internalPublishedMatch) {
|
|
8
|
+
const hostKey = internalPublishedMatch[1];
|
|
9
|
+
const siteIdentifier = internalPublishedMatch[2];
|
|
10
|
+
if (hostKey && siteIdentifier) return {
|
|
11
|
+
kind: "internal_published_preview",
|
|
12
|
+
hostKey,
|
|
13
|
+
siteIdentifier
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
return { kind: "public" };
|
|
17
|
+
}
|
|
18
|
+
function resolveDedicatedCheckoutPath(pathname) {
|
|
19
|
+
const target = resolveDedicatedCheckoutTarget(pathname);
|
|
20
|
+
if (target.kind === "internal_published_preview") return `/internal-sites/${target.hostKey}/${target.siteIdentifier}/published/checkout`;
|
|
21
|
+
return "/checkout";
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
4
24
|
//#region ../blocks/src/system/runtime/nodes/shop-commerce-store.ts
|
|
5
25
|
const EMPTY_STATE = EMPTY_COMMERCE_CART_STATE;
|
|
6
26
|
const stores = /* @__PURE__ */ new Map();
|
|
@@ -76,9 +96,6 @@ function getStore(siteId) {
|
|
|
76
96
|
stores.set(siteId, next);
|
|
77
97
|
return next;
|
|
78
98
|
}
|
|
79
|
-
function addPassToCommerceCart(siteId, input) {
|
|
80
|
-
getStore(siteId ?? "unknown").addPass(input);
|
|
81
|
-
}
|
|
82
99
|
function useCommerceCart(siteId) {
|
|
83
100
|
const effectiveSiteId = siteId ?? "unknown";
|
|
84
101
|
const store = React$1.useMemo(() => getStore(effectiveSiteId), [effectiveSiteId]);
|
|
@@ -92,4 +109,4 @@ function useCommerceCart(siteId) {
|
|
|
92
109
|
};
|
|
93
110
|
}
|
|
94
111
|
//#endregion
|
|
95
|
-
export {
|
|
112
|
+
export { resolveDedicatedCheckoutPath as n, useCommerceCart as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as assertNever } from "./src-
|
|
3
|
-
import {
|
|
2
|
+
import { t as assertNever } from "./src-ZSqRK3dD.mjs";
|
|
3
|
+
import { l as normalizeManualDiscountCode } from "./DemoBookingPortalAccess-DFLPyuqe.mjs";
|
|
4
4
|
//#region ../blocks/src/system/runtime/nodes/shop-discount-apply.state.ts
|
|
5
5
|
const initialDiscountApplyState = {
|
|
6
6
|
isOpen: false,
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { i as useSiteTermsAgreement, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-
|
|
7
|
-
import { n as useBlockApi } from "./context-
|
|
8
|
-
import {
|
|
9
|
-
import { a as
|
|
2
|
+
import { nt as shopProductPresentation } from "./newsletter-form.interactive-RuM86VAv.mjs";
|
|
3
|
+
import { t as assertNever } from "./src-ZSqRK3dD.mjs";
|
|
4
|
+
import { Qr as formatInterval, Ri as getShopSuccessCopy, Wr as appliedDiscountHint, Zr as formatCommercePrice } from "./wizardSteps-BliJOzEX.mjs";
|
|
5
|
+
import { h as assertNever$1 } from "./bookingCalendar--aWnqFDn.mjs";
|
|
6
|
+
import { i as useSiteTermsAgreement, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-B4z-e4Wq.mjs";
|
|
7
|
+
import { n as useBlockApi } from "./context-CRhn9qzS.mjs";
|
|
8
|
+
import { n as ThemedButton } from "./ThemedButton-PFOhXktM.mjs";
|
|
9
|
+
import { a as isDiscountCodeRefusal, d as planDirectShopCheckoutRequest, m as DiscountCodeDisclosure, o as useDiscountApply, t as BookingConfirmation } from "./DemoBookingPortalAccess-DFLPyuqe.mjs";
|
|
10
10
|
import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
|
|
11
11
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
12
|
-
import {
|
|
12
|
+
import { n as consumeSearchParams } from "./urlParams-C2QHo1Pa.mjs";
|
|
13
13
|
import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
|
|
14
14
|
import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
|
|
15
15
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
16
|
-
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
16
|
+
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-klgfGn7f.mjs";
|
|
17
17
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
18
|
-
import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, r as MembershipCardView } from "./view-
|
|
19
|
-
import { a as readDemoBookingCheckoutReturnEmail, o as storeDemoBookingCheckoutReturn } from "./demoPortalMagicLink-
|
|
20
|
-
import { a as initialDiscountApplyState, i as getDiscountApplyFeedback, n as discountDraftAwaitingApply, o as isDiscountApplyInFlight, r as getAppliedDiscountCode, t as discountApplyReducer } from "./shop-discount-apply.state-
|
|
21
|
-
import { t as CarouselNodeClient } from "./carousel.client-
|
|
22
|
-
import {
|
|
23
|
-
import { t as addPassToCommerceCart } from "./shop-commerce-store-B7xHksOs.mjs";
|
|
18
|
+
import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, r as MembershipCardView } from "./view-CC_yQLSA.mjs";
|
|
19
|
+
import { a as readDemoBookingCheckoutReturnEmail, o as storeDemoBookingCheckoutReturn } from "./demoPortalMagicLink-CWDGSTBu.mjs";
|
|
20
|
+
import { a as initialDiscountApplyState, i as getDiscountApplyFeedback, n as discountDraftAwaitingApply, o as isDiscountApplyInFlight, r as getAppliedDiscountCode, t as discountApplyReducer } from "./shop-discount-apply.state-D5CtGfJI.mjs";
|
|
21
|
+
import { t as CarouselNodeClient } from "./carousel.client-BtLwHefX.mjs";
|
|
22
|
+
import { n as formatEntitlementEnd } from "./dateFormatting-BnWB4L1s.mjs";
|
|
24
23
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
25
24
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
26
25
|
//#region ../blocks/src/system/runtime/shared/components/ActionRow.tsx
|
|
@@ -353,11 +352,7 @@ function PurchasablePassCard(props) {
|
|
|
353
352
|
extraClassName: "shop__cta",
|
|
354
353
|
label: props.action.label,
|
|
355
354
|
onClick: buy
|
|
356
|
-
})] })
|
|
357
|
-
feedback: /* @__PURE__ */ jsx(ShopAddFeedback, {
|
|
358
|
-
active: props.feedbackActive,
|
|
359
|
-
itemLabel: chosen ? `${product.name} with ${chosen.name}` : product.name
|
|
360
|
-
})
|
|
355
|
+
})] })
|
|
361
356
|
});
|
|
362
357
|
}
|
|
363
358
|
function checkoutProductLabel(checkout, totalCents = checkout.item.product.price) {
|
|
@@ -409,7 +404,6 @@ function PassesMembershipsController({ render }) {
|
|
|
409
404
|
const api = useBlockApi();
|
|
410
405
|
const [state, dispatch] = React.useReducer(shopPassesMembershipsReducer, initialShopPassesMembershipsState);
|
|
411
406
|
const [discountApply, dispatchDiscountApply] = React.useReducer(discountApplyReducer, initialDiscountApplyState);
|
|
412
|
-
const passAddFeedback = useTransientShopAddFeedback();
|
|
413
407
|
const [modalPortalRoot, setModalPortalRoot] = useState(null);
|
|
414
408
|
const [checkoutReturnEmail, setCheckoutReturnEmail] = useState(null);
|
|
415
409
|
const shopRootRef = useRef(null);
|
|
@@ -439,27 +433,12 @@ function PassesMembershipsController({ render }) {
|
|
|
439
433
|
});
|
|
440
434
|
const discountApplyFeedback = getDiscountApplyFeedback(discountApply.status, formatCommercePrice);
|
|
441
435
|
const handleBuyPass = useCallback((pass, teamMember) => {
|
|
442
|
-
if (hydration.passPurchaseMode === "add_to_cart") {
|
|
443
|
-
addPassToCommerceCart(api.config.siteId, {
|
|
444
|
-
passId: pass.id,
|
|
445
|
-
title: pass.name,
|
|
446
|
-
...teamMember ? { teamMember } : {},
|
|
447
|
-
unitPriceCents: pass.price,
|
|
448
|
-
currency: pass.currency
|
|
449
|
-
});
|
|
450
|
-
passAddFeedback.markAdded(pass.id);
|
|
451
|
-
return;
|
|
452
|
-
}
|
|
453
436
|
dispatch({
|
|
454
437
|
type: "openPassCheckout",
|
|
455
438
|
pass,
|
|
456
439
|
teamMember
|
|
457
440
|
});
|
|
458
|
-
}, [
|
|
459
|
-
api.config.siteId,
|
|
460
|
-
hydration.passPurchaseMode,
|
|
461
|
-
passAddFeedback
|
|
462
|
-
]);
|
|
441
|
+
}, []);
|
|
463
442
|
const handleSubscribe = useCallback((membership) => {
|
|
464
443
|
dispatch({
|
|
465
444
|
type: "openMembershipCheckout",
|
|
@@ -580,7 +559,6 @@ function PassesMembershipsController({ render }) {
|
|
|
580
559
|
index,
|
|
581
560
|
presentation: shopProductPresentation(hydration, passDisplay.id, index, display.passes.length),
|
|
582
561
|
buttonVariant: hydration.buttonVariant,
|
|
583
|
-
feedbackActive: passAddFeedback.activeKey === passDisplay.id,
|
|
584
562
|
onBuy: handleBuyPass
|
|
585
563
|
}, passDisplay.id);
|
|
586
564
|
}),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-CRhn9qzS.mjs";
|
|
3
3
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
4
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
4
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-BtCg87-N.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/rendering/islands/enhancers/shopShared.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-
|
|
3
|
+
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-BNnKuir8.mjs";
|
|
4
4
|
import { n as submissionProof } from "./protection-C0PoH1lT.mjs";
|
|
5
5
|
import { i as hasSpamProtection, n as useSpamProtection, r as getChallengeUrl, t as SpamProtectionWidget } from "./SpamProtectionWidget-CCF6YLUX.mjs";
|
|
6
6
|
export { ProtectedSubmitButton, SpamProtectionWidget, getChallengeUrl, hasSpamProtection, submissionProof, useSpamProtection };
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region ../path-utils/src/redirectPaths.ts
|
|
3
|
+
const REDIRECT_BASE_URL = "https://redirect.local";
|
|
4
|
+
const CONTROL_CHAR_PATTERN = /[\u0000-\u001F\u007F]/;
|
|
5
|
+
const ENCODED_SEPARATOR_PATTERN = /%(?:2f|5c|00|0d|0a|252f|255c|2500|250d|250a)/i;
|
|
6
|
+
function prevalidateInput(value) {
|
|
7
|
+
if (value === null || value === void 0) return {
|
|
8
|
+
ok: false,
|
|
9
|
+
error: { tag: "MISSING" }
|
|
10
|
+
};
|
|
11
|
+
if (typeof value !== "string") return {
|
|
12
|
+
ok: false,
|
|
13
|
+
error: { tag: "INVALID_PATH" }
|
|
14
|
+
};
|
|
15
|
+
const trimmed = value.trim();
|
|
16
|
+
if (!trimmed) return {
|
|
17
|
+
ok: false,
|
|
18
|
+
error: { tag: "EMPTY" }
|
|
19
|
+
};
|
|
20
|
+
if (CONTROL_CHAR_PATTERN.test(trimmed)) return {
|
|
21
|
+
ok: false,
|
|
22
|
+
error: { tag: "CONTROL_CHAR" }
|
|
23
|
+
};
|
|
24
|
+
if (trimmed.includes("\\")) return {
|
|
25
|
+
ok: false,
|
|
26
|
+
error: { tag: "BACKSLASH" }
|
|
27
|
+
};
|
|
28
|
+
return trimmed;
|
|
29
|
+
}
|
|
30
|
+
function isHttpUrl(value) {
|
|
31
|
+
return /^https?:\/\//i.test(value);
|
|
32
|
+
}
|
|
33
|
+
function isRootedPathname(pathname) {
|
|
34
|
+
return pathname.startsWith("/") && !pathname.startsWith("//");
|
|
35
|
+
}
|
|
36
|
+
function pathContainsEncodedSeparator(pathname) {
|
|
37
|
+
return ENCODED_SEPARATOR_PATTERN.test(pathname);
|
|
38
|
+
}
|
|
39
|
+
function parseRedirectPath(value, policy) {
|
|
40
|
+
const normalized = prevalidateInput(value);
|
|
41
|
+
if (typeof normalized !== "string") return normalized;
|
|
42
|
+
const base = policy.tag === "same-origin" ? policy.baseUrl instanceof URL ? policy.baseUrl : new URL(policy.baseUrl) : new URL(REDIRECT_BASE_URL);
|
|
43
|
+
if (!normalized.startsWith("/") && !isHttpUrl(normalized)) return {
|
|
44
|
+
ok: false,
|
|
45
|
+
error: { tag: "INVALID_PATH" }
|
|
46
|
+
};
|
|
47
|
+
if (policy.tag === "internal-only" && isHttpUrl(normalized)) return {
|
|
48
|
+
ok: false,
|
|
49
|
+
error: { tag: "EXTERNAL_URL" }
|
|
50
|
+
};
|
|
51
|
+
try {
|
|
52
|
+
const candidate = new URL(normalized, base.origin);
|
|
53
|
+
if (candidate.origin !== base.origin) return {
|
|
54
|
+
ok: false,
|
|
55
|
+
error: { tag: "EXTERNAL_URL" }
|
|
56
|
+
};
|
|
57
|
+
if (!isRootedPathname(candidate.pathname)) return {
|
|
58
|
+
ok: false,
|
|
59
|
+
error: { tag: "INVALID_PATH" }
|
|
60
|
+
};
|
|
61
|
+
if (pathContainsEncodedSeparator(candidate.pathname)) return {
|
|
62
|
+
ok: false,
|
|
63
|
+
error: { tag: "ENCODED_SEPARATOR" }
|
|
64
|
+
};
|
|
65
|
+
return {
|
|
66
|
+
ok: true,
|
|
67
|
+
value: `${candidate.pathname}${candidate.search}${candidate.hash}`
|
|
68
|
+
};
|
|
69
|
+
} catch {
|
|
70
|
+
return {
|
|
71
|
+
ok: false,
|
|
72
|
+
error: { tag: "INVALID_PATH" }
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function parseInternalRedirectPath(value) {
|
|
77
|
+
return parseRedirectPath(value, { tag: "internal-only" });
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region ../path-utils/src/safeAppPath.ts
|
|
81
|
+
function parseSafeAppPath(value) {
|
|
82
|
+
const result = parseInternalRedirectPath(value);
|
|
83
|
+
return result.ok ? {
|
|
84
|
+
ok: true,
|
|
85
|
+
value: result.value
|
|
86
|
+
} : result;
|
|
87
|
+
}
|
|
88
|
+
function assertSafeAppPath(value) {
|
|
89
|
+
const result = parseSafeAppPath(value);
|
|
90
|
+
if (!result.ok) throw new Error(`Expected a safe app path, got ${result.error.tag}`);
|
|
91
|
+
return result.value;
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region ../path-utils/src/index.ts
|
|
95
|
+
const PATH_SEPARATOR_REGEX = /\./g;
|
|
96
|
+
const BRACKET_ACCESS_REGEX = /\[([^\]]+)\]/g;
|
|
97
|
+
/**
|
|
98
|
+
* Segments that would traverse or mutate the prototype chain.
|
|
99
|
+
*
|
|
100
|
+
* `setAtPath` creates nested objects along the path, so allowing these
|
|
101
|
+
* segments is a prototype-pollution vector. They are rejected everywhere a
|
|
102
|
+
* path is parsed (string or pre-parsed array form) — fail closed.
|
|
103
|
+
*/
|
|
104
|
+
const UNSAFE_PATH_SEGMENTS = /* @__PURE__ */ new Set([
|
|
105
|
+
"__proto__",
|
|
106
|
+
"constructor",
|
|
107
|
+
"prototype"
|
|
108
|
+
]);
|
|
109
|
+
var UnsafePathSegmentError = class extends Error {
|
|
110
|
+
constructor(segment) {
|
|
111
|
+
super(`Unsafe path segment: "${segment}"`);
|
|
112
|
+
this.name = "UnsafePathSegmentError";
|
|
113
|
+
this.segment = segment;
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
function assertSafePathSegments(segments) {
|
|
117
|
+
for (const segment of segments) if (typeof segment === "string" && UNSAFE_PATH_SEGMENTS.has(segment)) throw new UnsafePathSegmentError(segment);
|
|
118
|
+
}
|
|
119
|
+
function isRecord(value) {
|
|
120
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
121
|
+
}
|
|
122
|
+
function isPathContainer(value) {
|
|
123
|
+
return Array.isArray(value) || isRecord(value);
|
|
124
|
+
}
|
|
125
|
+
function getContainerValue(container, segment) {
|
|
126
|
+
if (typeof segment === "number") return Array.isArray(container) ? container[segment] : void 0;
|
|
127
|
+
if (segment in container) return Reflect.get(container, segment);
|
|
128
|
+
}
|
|
129
|
+
function parsePath(path) {
|
|
130
|
+
if (Array.isArray(path)) {
|
|
131
|
+
assertSafePathSegments(path);
|
|
132
|
+
return path;
|
|
133
|
+
}
|
|
134
|
+
const segments = [];
|
|
135
|
+
const parts = path.split(PATH_SEPARATOR_REGEX);
|
|
136
|
+
for (const raw of parts) {
|
|
137
|
+
if (!raw) continue;
|
|
138
|
+
const baseMatch = raw.match(/^[^\[]+/);
|
|
139
|
+
if (baseMatch !== null) {
|
|
140
|
+
const base = baseMatch[1] ?? baseMatch[0];
|
|
141
|
+
if (/^\d+$/.test(base)) segments.push(Number(base));
|
|
142
|
+
else segments.push(base);
|
|
143
|
+
}
|
|
144
|
+
const bracketMatches = raw.matchAll(BRACKET_ACCESS_REGEX);
|
|
145
|
+
for (const match of bracketMatches) {
|
|
146
|
+
const token = match[1] ?? "";
|
|
147
|
+
if (token.startsWith("\"") || token.startsWith("'")) segments.push(token.slice(1, -1));
|
|
148
|
+
else if (/^\d+$/.test(token)) segments.push(Number(token));
|
|
149
|
+
else segments.push(token);
|
|
150
|
+
}
|
|
151
|
+
if (baseMatch === null && !raw.includes("[")) segments.push(raw);
|
|
152
|
+
}
|
|
153
|
+
assertSafePathSegments(segments);
|
|
154
|
+
return segments;
|
|
155
|
+
}
|
|
156
|
+
function getAtPath(source, path) {
|
|
157
|
+
return parsePath(path).reduce((current, segment) => {
|
|
158
|
+
if (current === void 0 || current === null) return void 0;
|
|
159
|
+
if (!isPathContainer(current)) return void 0;
|
|
160
|
+
return getContainerValue(current, segment);
|
|
161
|
+
}, source);
|
|
162
|
+
}
|
|
163
|
+
//#endregion
|
|
164
|
+
export { assertSafeAppPath as n, getAtPath as t };
|