@riverbankcms/sdk 0.180.0 → 0.182.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/dist/_dts/{BlocksIslandsHydrator-DC_AvZwy.d.ts → BlocksIslandsHydrator-Bvw2bUif.d.ts} +1 -1
- package/dist/_dts/{Page-DQOxVtp3.d.ts → Page-B2EAT-bE.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DrLgY9_f.d.ts → SdkPreviewMode-D0vww6rh.d.ts} +2 -2
- package/dist/_dts/{client-BP7VBRvs.d.ts → client-D6T430bk.d.ts} +56 -70
- package/dist/_dts/{content-types-1-K2qi__.d.ts → content-types-wZVWccC6.d.ts} +2 -2
- package/dist/_dts/{contracts-Dfqz0Tcu.d.ts → contracts-B-vtOcr8.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-CSfAqmry.d.ts → generatePageMetadata-CxfwHE6z.d.ts} +2 -2
- package/dist/_dts/{index-BeM5Ylwf.d.ts → index-CEyYMhLJ.d.ts} +1 -2
- package/dist/_dts/{index-DQr358-m.d.ts → index-CQrb3Ccc.d.ts} +8 -8
- package/dist/_dts/{index-DCcxLa8p.d.ts → index-CciRW_w1.d.ts} +2 -2
- package/dist/_dts/{index-Blrw2oVk.d.ts → index-Cqxis-nv.d.ts} +1 -1
- package/dist/_dts/{index-CB5Csefo.d.ts → index-DIU-wL1M.d.ts} +2 -2
- package/dist/_dts/{index-DQBGwBPx.d.ts → index-DqPKdeTk.d.ts} +1 -1
- package/dist/_dts/{loadContent-BG2tLGXj.d.ts → loadContent-D0wrxiSp.d.ts} +7 -7
- package/dist/_dts/{request-P08l6mkr.d.ts → request-DEwxUSw8.d.ts} +2375 -883
- package/dist/_dts/{resolveBlockData-BDHc8lFs.d.ts → resolveBlockData-VaG_MYbN.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-Y3IZBbtL.d.ts → resolvePageContent-DTwklC_v.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 +83 -52
- 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-BvtNagjw.d.ts → serviceBookingOutline-DtQuFlID.d.ts} +6 -6
- package/dist/_dts/{types-DpEAnP4F.d.ts → types-B3RjeBLV.d.ts} +2 -2
- package/dist/_dts/{types-HAy1-Jjo.d.ts → types-BvUSGQrw.d.ts} +3 -3
- package/dist/_dts/{types-BrK6SS5c.d.ts → types-CkRFtBqd.d.ts} +7 -7
- package/dist/_dts/{validation-D6q3tOBA.d.ts → validation-BZA3DhcV.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DJSmdNUJ.mjs → BlocksIslandsHydrator-CQMf0HdN.mjs} +19 -19
- package/dist/client/{BookingMailingListNote-CGxg37zx.mjs → BookingMailingListNote-7kdvuPow.mjs} +93 -18
- package/dist/client/{BookingQuestionFields-DXegGSnS.mjs → BookingQuestionFields-BJI7mZuV.mjs} +7 -87
- package/dist/client/CalendarAction-D_Glwvz2.mjs +105 -0
- package/dist/client/{CalendarNavigationChevron-VfP50sYm.mjs → CalendarNavigationChevron-DPUD6wjy.mjs} +8 -8
- package/dist/client/{CheckboxChoice-BZPLCgTU.mjs → CheckboxChoice-C8i4NraK.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-0Ua44F1j.mjs → DemoBookingPortalAccess-8kwNF9HN.mjs} +9 -6
- package/dist/client/{EventCalendar.client-CrpiyDSP.mjs → EventCalendar.client-Dhb14bcC.mjs} +10 -10
- package/dist/client/{EventCombined.client-D0me9wnz.mjs → EventCombined.client-C1jEZBN9.mjs} +60 -10
- package/dist/client/{EventEmbeddedCheckoutStep-BDnicDM6.mjs → EventEmbeddedCheckoutStep-BGkbUhuw.mjs} +1 -1
- package/dist/client/{EventItem-CJITrGkF.mjs → EventItem-Bb0ppG2N.mjs} +9 -177
- package/dist/client/{EventListWeekNavigation-BlEm_xjq.mjs → EventListWeekNavigation-DMryCaNV.mjs} +1 -1
- package/dist/client/{EventListing.client-BNM_HuS0.mjs → EventListing.client-BuH5kKA3.mjs} +3 -3
- package/dist/client/{EventListing.view-CXfb7RRy.mjs → EventListing.view-DsqvuulZ.mjs} +8 -8
- package/dist/client/{EventRegistrationPayment-DiD9uYs6.mjs → EventRegistrationPayment-D4FvQSFF.mjs} +555 -502
- package/dist/client/{Page-bX7iy_MK.mjs → Page-sV6BJkXX.mjs} +550 -339
- package/dist/client/{ProtectedSubmitButton-De6AzhE6.mjs → ProtectedSubmitButton-BNnKuir8.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-BAdW5DvE.mjs → SiteTermsAgreementField-VfSd6JU-.mjs} +7 -11
- package/dist/client/{StepIndicator-DCfdcb7s.mjs → StepIndicator-B6o5B7g3.mjs} +1 -1
- package/dist/client/{StepIndicator-DCqorVne.mjs → StepIndicator-BTqO7cJl.mjs} +235 -26
- package/dist/client/{ThemedButton-CnSa7o-I.mjs → ThemedButton-PFOhXktM.mjs} +1 -33
- package/dist/client/{accessibleSurfaces-Wl8-_OVJ.mjs → accessibleSurfaces-BogaGutk.mjs} +983 -634
- package/dist/client/{accordion-wofJY8xY.mjs → accordion-6cuswD_s.mjs} +1 -1
- package/dist/client/{booking-form.client-CYl9NrqS.mjs → booking-form.client-BOMe_SKi.mjs} +52 -29
- package/dist/client/bookingCalendar--aWnqFDn.mjs +180 -0
- package/dist/client/{bookingForm-kgVWtuMe.mjs → bookingForm-DSCH-VHo.mjs} +4 -4
- package/dist/client/bookings.mjs +17 -11
- package/dist/client/{boxStyleClassNames-CQHWz5gJ.mjs → boxStyleClassNames-BFuqZCfz.mjs} +2 -2
- package/dist/client/{carousel-BE1dEFsD.mjs → carousel-CGyQVV1M.mjs} +2 -2
- package/dist/client/{carousel.client-DMtGYTTM.mjs → carousel.client-BtLwHefX.mjs} +1 -1
- package/dist/client/{cart-BsjsdGZE.mjs → cart-BYOe7MCh.mjs} +3 -3
- package/dist/client/{cart.client-DylGUWXY.mjs → cart.client-BKFkaXdV.mjs} +1 -1
- package/dist/client/{checkout-B5KxEUDr.mjs → checkout-Dwd7Di77.mjs} +3 -3
- package/dist/client/{checkout.client-C98fhch3.mjs → checkout.client-C25hpi-z.mjs} +1 -1
- package/dist/client/{checkoutUrls-BMLYTf38.mjs → checkoutUrls-tG788sw0.mjs} +1 -1
- package/dist/client/client.mjs +106 -43
- package/dist/client/{constants-PfYJsEZF.mjs → constants-DdxFG3Ic.mjs} +1 -2
- package/dist/client/{context-DtKdUdkO.mjs → context-Hi1RuYEM.mjs} +753 -373
- package/dist/client/{dateFormatting-BaGPvQS3.mjs → dateFormatting-C8vBCHuo.mjs} +15 -25
- package/dist/client/{demoPortalMagicLink-B8eDjhuG.mjs → demoPortalMagicLink-BAL5UIDG.mjs} +2 -3
- package/dist/client/{enhanceHeaderSection-DvhD-8eE.mjs → enhanceHeaderSection-Dv1Lr9kJ.mjs} +4 -5
- package/dist/client/{event-registration.client-Du9a_xAN.mjs → event-registration.client-dB_Z7bb-.mjs} +191 -210
- package/dist/client/{eventCalendar-Di9wDfzl.mjs → eventCalendar-CQnRA4Ww.mjs} +4 -4
- package/dist/client/{eventCombined-CNW6nBsB.mjs → eventCombined-BDOG1hVp.mjs} +4 -4
- package/dist/client/{eventListing-CQMxQ8By.mjs → eventListing-DSVmhy9n.mjs} +4 -4
- package/dist/client/{eventRegistration-CprS9k1D.mjs → eventRegistration-CD5mRtEH.mjs} +4 -4
- package/dist/client/{form-Zl1_8RJ6.mjs → form-DWnlEVSK.mjs} +3 -3
- package/dist/client/{form.client-TaMUys6I.mjs → form.client-D7zmeqNI.mjs} +5 -5
- package/dist/client/{form.parts-CpNPbPPM.mjs → form.parts-C-G6N_MK.mjs} +3 -3
- package/dist/client/gifting/client.mjs +32 -29
- package/dist/client/{gifting-DNVa7-Wj.mjs → gifting-Cn0jidP5.mjs} +4 -4
- package/dist/client/{gifting.client-CFUq3GVx.mjs → gifting.client-DVo1YFLs.mjs} +5 -5
- package/dist/client/{gifting.parts-CDQvxA4A.mjs → gifting.parts-Bak93gD2.mjs} +2 -2
- package/dist/client/{headerSection-Cg6083rn.mjs → headerSection-DjQuj_6v.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-VuL9I96G.mjs → newsletter-form.client-rIYPziZC.mjs} +7 -7
- package/dist/client/{newsletter-form.interactive-7Of3eYn0.mjs → newsletter-form.interactive-DVt3enLr.mjs} +181 -155
- package/dist/client/{newsletter-form.parts-OBqsfT24.mjs → newsletter-form.parts-CH6dGfdn.mjs} +2 -2
- package/dist/client/{newsletterForm-BkJe_RTv.mjs → newsletterForm-Cg8cBDHd.mjs} +3 -3
- package/dist/client/{lookSurfaces-gJ3OqPf9.mjs → noop-jesvJXEE.mjs} +403 -275
- package/dist/client/portal/client.mjs +12202 -7166
- package/dist/client/portalOrders-oEoTvzkW.mjs +596 -0
- package/dist/client/portalRoutes-ByyVZfVq.mjs +873 -0
- package/dist/client/{product-detail.client-B2hdxqJN.mjs → product-detail.client-5aHq-vuu.mjs} +1 -1
- package/dist/client/{product-list.client-CCEgu9rx.mjs → product-list.client-CyAk5rnC.mjs} +1 -1
- package/dist/client/{productDetail-CRX_ZRfS.mjs → productDetail-B8aZ2mqY.mjs} +3 -3
- package/dist/client/{productList-BAdJ6z5S.mjs → productList-BuLemmod.mjs} +3 -3
- package/dist/client/{propsDecoder-BLKAmX0S.mjs → propsDecoder-0Unsqn3R.mjs} +2 -2
- package/dist/client/{registry.server-Bj9cmHHF.mjs → registry.server-DzvtVVD0.mjs} +664 -434
- 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-Z45OLLEX.mjs → richText-coerce-Bnng7JFA.mjs} +2 -1
- package/dist/client/{routeIslandApiConfig-DHpTTK77.mjs → routeIslandApiConfig-BGfcc9sk.mjs} +1 -1
- package/dist/client/{runtimeResponse-DtWSfWSZ.mjs → runtimeResponse-DAPVRToN.mjs} +1 -1
- package/dist/client/{runtimeResponse-D2j2-mOk.mjs → runtimeResponse-nXT8VAMl.mjs} +1 -1
- package/dist/client/{shop-BKsgxm_-.mjs → shop-GuMqnDL-.mjs} +3 -3
- package/dist/client/{shop-commerce-Cbtk_kUW.mjs → shop-commerce-D5bDY1o1.mjs} +53 -16
- package/dist/client/{shop-commerce-store-B-rv2p5h.mjs → shop-commerce-store-B7sHnLwI.mjs} +22 -5
- package/dist/client/{shop-discount-apply.state-CiCDLNh7.mjs → shop-discount-apply.state-Dos2zdC2.mjs} +2 -2
- package/dist/client/{shop.client-Rnqa74Tk.mjs → shop.client-uvj5GDZb.mjs} +17 -39
- package/dist/client/{shopShared-BaBfhjCq.mjs → shopShared-3giNWE3H.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/src-Al4ooTl_.mjs +164 -0
- package/dist/client/{src-o7WEvbK1.mjs → src-CmXh3JWs.mjs} +233 -91
- package/dist/client/{timetableModel-BOff1Kk5.mjs → timetableModel-GA-hn1qM.mjs} +11 -87
- package/dist/client/{shop-add-feedback-DvC2kP1K.mjs → urlParams-C2QHo1Pa.mjs} +1 -42
- package/dist/client/{useAvailableSlots-DQJNh10g.mjs → useAvailableSlots-CBneCxbG.mjs} +2 -3
- package/dist/client/{useDiscountCodeUi-BcFQRI_7.mjs → useDiscountCodeUi-D0kGF0C7.mjs} +1 -1
- package/dist/client/{useEventPagination-BvdcexDC.mjs → useEventPagination-xX8n_Tuu.mjs} +8 -8
- package/dist/client/{view-CTBwSpKv.mjs → view-DOyZc-DF.mjs} +4 -4
- package/dist/client/{wizardSteps-CWIQyRIw.mjs → wizardSteps-B952ify5.mjs} +1241 -295
- package/dist/preview-next/client/{PageSectionToolbar-CG6KwITA.mjs → PageSectionToolbar-BI3UCdpu.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-BGBqrC9m.mjs → PreviewEditorSidebar-jkfLVOgY.mjs} +12 -9
- package/dist/preview-next/client/{PreviewEditorUI-Bwkyx28x.mjs → PreviewEditorUI-DwJQs4hM.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-DB1l6JNU.mjs → PreviewShell-BAxAkuz8.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Bs6Cwzr3.mjs → SdkPreviewModeRuntime-0UVB-39f.mjs} +68 -17
- package/dist/preview-next/client/{previewAssistantSlot-T-oDD_Dd.mjs → previewAssistantSlot-BgiYk3PB.mjs} +7347 -3516
- package/dist/preview-next/client/{previewChromeRoot-BeukcDRy.mjs → previewChromeRoot-tieNdF3E.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-ceDW_9q2.mjs → sdk-runtime-DXb_Evl0.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-CCB9bScO.mjs → siteStyleAccess-BlN0jt2c.mjs} +3 -3
- package/dist/preview-next/client/{useAutosaveStatus-D4o0CKq7.mjs → useAutosaveStatus-BUEPA4oL.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-Seccrvwu.mjs → useOpenBlockForSetup-BVfr5P--.mjs} +1 -1
- package/dist/preview-next/container-responsive.css +203 -174
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-FwFj8zGL.mjs → route-contract-BHTBA48n.mjs} +90 -37
- package/dist/server/{Block.shared-D6WrRCxX.mjs → Block.shared-hGoyEdjJ.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-BQzjDQ2q.mjs → ThemeScopeCore-BfUCTOwj.mjs} +160 -142
- package/dist/server/{accessibleSurfaces-CM3QANtw.mjs → accessibleSurfaces-Dskni4Xj.mjs} +94 -330
- package/dist/server/accordions-By_0Ykks.mjs +111 -0
- package/dist/server/{bindings-CS6ih1Yc.mjs → bindings-DMJH4bvo.mjs} +7 -7
- package/dist/server/{client-m0ylCj_f.mjs → client-DrwlRNAH.mjs} +105 -42
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/constants-CeMywaiD.mjs +1485 -0
- package/dist/server/{customCss-BZ8YSrQg.mjs → customCss-C9kgPHvr.mjs} +41 -5
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{resolveButtonColourStates--6yJp9Tq.mjs → expandPalette-ehuW8r2g.mjs} +745 -1229
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-vgWMz1uD.mjs → loadContent-D0prFflT.mjs} +5 -4
- package/dist/server/{loadPage-CIOL3-9t.mjs → loadPage-CBLke9pJ.mjs} +3 -3
- package/dist/server/{lookMediaFrame-m-91jGGn.mjs → lookMediaFrame-H0fi4bJk.mjs} +38 -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-wrcuWmgp.mjs} +2 -2
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +134 -81
- package/dist/server/{overrideResolution-BiHmsvTZ.mjs → overrideResolution-DUgCEH8z.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-DJo_obpi.mjs → pageRenderPlan-BHrmogsW.mjs} +165 -247
- package/dist/server/{pageRuntimeSupport-BnSuoHON.mjs → pageRuntimeSupport-D2-YMRei.mjs} +5 -5
- package/dist/server/{pageShared-BJuOzxzn.mjs → pageShared-CG8O31Eo.mjs} +3402 -3249
- package/dist/server/{parseThemeForPersistence-DOsfofCy.mjs → parseThemeForPersistence-CrPlbJEN.mjs} +3 -2
- package/dist/server/{portal-B4JVkdjc.mjs → portal-pG_uhsI2.mjs} +62 -46
- package/dist/server/portal.mjs +3 -3
- package/dist/server/portalQuestions-oUyohgL9.mjs +225 -0
- package/dist/server/{prebuild-Cr8p8T7V.mjs → prebuild-C8Amvzce.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BZh57-ua.mjs → prefetchBlockData-BxUETRIZ.mjs} +4 -3
- package/dist/server/{registry-CvhFwbXJ.mjs → registry-Cc88-23f.mjs} +1514 -1190
- 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-Cv_W1LVB.mjs → resolveBlockData-OG3KOkig.mjs} +2 -2
- package/dist/server/{responseMedia-KRKguBC5.mjs → responseMedia-IfH65QAH.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-CRKbTm_7.mjs → servicePageContent-BcFuhhD7.mjs} +22 -21
- package/dist/server/theme-bridge.mjs +34 -8
- 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-DCl-FCk_.mjs → validation-BovmbS8N.mjs} +70 -17
- package/dist/server/{version-DT_R5JAR.mjs → version-hws4hgyX.mjs} +1 -1
- package/dist/server/video-Cdr3wh-q.mjs +272 -0
- package/dist/styles/index.css +1098 -1885
- package/package.json +2 -1
- package/dist/_dts/index-B0_2-65A.d.ts +0 -101
- package/dist/client/TabBarFragment-DlKQRhP4.mjs +0 -56
- package/dist/client/checkoutRoute-DKlZRNZD.mjs +0 -22
- package/dist/client/creditProducts-BQ1t1erI.mjs +0 -266
- package/dist/client/formatDate-hhI1-tzt.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 { h as Text } from "../timetableModel-
|
|
9
|
-
import {
|
|
10
|
-
import { n as useBlockApi, t as BlockApiProvider$1 } from "../context-
|
|
11
|
-
import "../accessibleSurfaces-
|
|
12
|
-
import {
|
|
3
|
+
import { gn as staticHeaderChromeRuntime } from "../newsletter-form.interactive-DVt3enLr.mjs";
|
|
4
|
+
import { r as indexRenderableMediaAssets } from "../renderableMediaAssetAdmission-BsOWd9lf.mjs";
|
|
5
|
+
import { Io as RichText, as as renderAudio, is as mediaImageHostProps, ns as MediaPlaceholder, os as renderVideo, rs as computeMediaTransformStyle, ts as ImagePresets, us as resolveMediaNodeResponsiveImage } from "../wizardSteps-B952ify5.mjs";
|
|
6
|
+
import { n as BookingFormNodeClient } from "../booking-form.client-BOMe_SKi.mjs";
|
|
7
|
+
import { t as EventRegistrationBlockClient } from "../event-registration.client-dB_Z7bb-.mjs";
|
|
8
|
+
import { h as Text } from "../timetableModel-GA-hn1qM.mjs";
|
|
9
|
+
import { At as splitPositioningClasses, Dt as HeaderSectionFrame, Ft as accordionIconColorStyle, It as resolveAccordionIconStyle, Nt as accordionItemPartSlots, Ot as composeHeaderSectionWrapperClassName, Pt as accordionLookAttributes, St as EventDetailsView, Tt as resolveEventDetailsPresentation, et as WeeklySlotAvailabilityView, kt as markEditableSurfaceForwarding, n as runtimeBackedBlockModes, pt as LocationMapSSR, r as runtimeBackedBlockServerEntries, t as serverComponentRegistry, zn as ICON_CONFIG } from "../registry.server-DzvtVVD0.mjs";
|
|
10
|
+
import { n as useBlockApi, t as BlockApiProvider$1 } from "../context-Hi1RuYEM.mjs";
|
|
11
|
+
import "../accessibleSurfaces-BogaGutk.mjs";
|
|
12
|
+
import { x as clsx } from "../ThemedButton-PFOhXktM.mjs";
|
|
13
13
|
import { t as CarouselSlideContent } from "../carousel.shared-BFQ3kBEw.mjs";
|
|
14
|
-
import { t as coerceRichTextDoc } from "../richText-coerce-
|
|
15
|
-
import { t as ShopClient } from "../shop.client-
|
|
16
|
-
import {
|
|
14
|
+
import { t as coerceRichTextDoc } from "../richText-coerce-Bnng7JFA.mjs";
|
|
15
|
+
import { t as ShopClient } from "../shop.client-uvj5GDZb.mjs";
|
|
16
|
+
import { n as EventCombinedIslandClient } from "../EventCombined.client-C1jEZBN9.mjs";
|
|
17
|
+
import { o as getRuntimeTimeZone } from "../useAvailableSlots-CBneCxbG.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-DJSmdNUJ.mjs";
|
|
19
|
+
import { t as CarouselNodeClient } from "../carousel.client-BtLwHefX.mjs";
|
|
20
|
+
import { t as ProductListClient } from "../product-list.client-CyAk5rnC.mjs";
|
|
21
|
+
import { t as ProductDetailClient } from "../product-detail.client-5aHq-vuu.mjs";
|
|
22
|
+
import { t as CartClient } from "../cart.client-BKFkaXdV.mjs";
|
|
23
|
+
import { t as CheckoutClient } from "../checkout.client-C25hpi-z.mjs";
|
|
24
|
+
import { t as GiftingClient } from "../gifting.client-DVo1YFLs.mjs";
|
|
25
|
+
import { t as mountHeaderChromeRuntime } from "../enhanceHeaderSection-Dv1Lr9kJ.mjs";
|
|
26
|
+
import { t as EventListingClient } from "../EventListing.client-BuH5kKA3.mjs";
|
|
27
|
+
import { t as EventCalendarClient } from "../EventCalendar.client-Dhb14bcC.mjs";
|
|
28
|
+
import { t as FormNodeClient } from "../form.client-D7zmeqNI.mjs";
|
|
29
|
+
import { t as NewsletterFormClient } from "../newsletter-form.client-rIYPziZC.mjs";
|
|
30
|
+
import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-CQMf0HdN.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-CmXh3JWs.mjs";
|
|
4
|
+
import { As as readRuntimeNow, Io as RichText$2, Ms as sanitizeHref, cs as resolveImageUrl$1, js as resolveDateRuntimeContext, ls as resolveImageUrlWithContext$1, rs as computeMediaTransformStyle, ss as resolveImageSourceSetWithContext$1 } from "./wizardSteps-B952ify5.mjs";
|
|
5
|
+
import { t as CUSTOMER_PORTAL_PATH } from "./portalRoutes-ByyVZfVq.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-sV6BJkXX.mjs";
|
|
7
|
+
import { W as parseFieldDefinition } from "./registry.server-DzvtVVD0.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-CmXh3JWs.mjs";
|
|
3
|
+
import { t as logger } from "./noop-jesvJXEE.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 { to as createHostedBlockApiConfig } from "./wizardSteps-B952ify5.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-BogaGutk.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-uvj5GDZb.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-0Unsqn3R.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-3giNWE3H.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 isDiscountCodeRefusal, c as checkoutFormForDiscountUiState, f as planUnifiedCheckoutRequest, m as DiscountCodeDisclosure, n as DemoBookingPortalAccess, o as useDiscountApply, s as aggregateCartDiscountUiState, u as planCartDiscountAvailabilityRequests } from "./DemoBookingPortalAccess-
|
|
10
|
-
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
2
|
+
import { Y as getShopDisplayForItems } from "./newsletter-form.interactive-DVt3enLr.mjs";
|
|
3
|
+
import { a as clearWorkflowFeedback, o as reportWorkflowError, t as assertNever } from "./src-CmXh3JWs.mjs";
|
|
4
|
+
import { Io as RichText, Jr as buildProductCardDisplay, Yr as buildProductDetailDisplay, Zr as formatCommercePrice, ai as buildProductCartItem, ci as productItemKey, oi as deriveCommerceCheckoutState } from "./wizardSteps-B952ify5.mjs";
|
|
5
|
+
import { i as useSiteTermsAgreement, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-VfSd6JU-.mjs";
|
|
6
|
+
import { n as useBlockApi } from "./context-Hi1RuYEM.mjs";
|
|
7
|
+
import { n as ThemedButton, r as ThemedButtonLink } from "./ThemedButton-PFOhXktM.mjs";
|
|
8
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-Bnng7JFA.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-8kwNF9HN.mjs";
|
|
10
|
+
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-tG788sw0.mjs";
|
|
11
|
+
import { n as resolveDedicatedCheckoutPath, t as useCommerceCart } from "./shop-commerce-store-B7sHnLwI.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-B-rv2p5h.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-DOyZc-DF.mjs";
|
|
15
|
+
import { a as readDemoBookingCheckoutReturnEmail, o as storeDemoBookingCheckoutReturn } from "./demoPortalMagicLink-BAL5UIDG.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-Dos2zdC2.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-B952ify5.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 { l as normalizeManualDiscountCode } from "./DemoBookingPortalAccess-
|
|
2
|
+
import { t as assertNever } from "./src-CmXh3JWs.mjs";
|
|
3
|
+
import { l as normalizeManualDiscountCode } from "./DemoBookingPortalAccess-8kwNF9HN.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 isDiscountCodeRefusal, d as planDirectShopCheckoutRequest, m as DiscountCodeDisclosure, o as useDiscountApply, t as BookingConfirmation } from "./DemoBookingPortalAccess-
|
|
2
|
+
import { nt as shopProductPresentation } from "./newsletter-form.interactive-DVt3enLr.mjs";
|
|
3
|
+
import { t as assertNever } from "./src-CmXh3JWs.mjs";
|
|
4
|
+
import { Hi as getShopSuccessCopy, Qr as formatInterval, Wr as appliedDiscountHint, Zr as formatCommercePrice } from "./wizardSteps-B952ify5.mjs";
|
|
5
|
+
import { h as assertNever$1 } from "./bookingCalendar--aWnqFDn.mjs";
|
|
6
|
+
import { i as useSiteTermsAgreement, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-VfSd6JU-.mjs";
|
|
7
|
+
import { n as useBlockApi } from "./context-Hi1RuYEM.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-8kwNF9HN.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-D0kGF0C7.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-B-rv2p5h.mjs";
|
|
18
|
+
import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, r as MembershipCardView } from "./view-DOyZc-DF.mjs";
|
|
19
|
+
import { a as readDemoBookingCheckoutReturnEmail, o as storeDemoBookingCheckoutReturn } from "./demoPortalMagicLink-BAL5UIDG.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-Dos2zdC2.mjs";
|
|
21
|
+
import { t as CarouselNodeClient } from "./carousel.client-BtLwHefX.mjs";
|
|
22
|
+
import { n as formatEntitlementEnd } from "./dateFormatting-C8vBCHuo.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-Hi1RuYEM.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-BGfcc9sk.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 };
|