@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-0Unsqn3R.mjs";
|
|
3
3
|
//#region src/rendering/islands/enhancers/accordion.ts
|
|
4
4
|
const decode = defineIslandPropsDecoder("accordion");
|
|
5
5
|
function parseDefaultValues(value) {
|
|
@@ -1,32 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { An as formatCurrencyAmount, Cn as toUtcIsoDateTimeString, D as isBookingRequirementConsentFieldId, Fn as unsafeAsAppointmentResourceId, In as unsafeAsAppointmentServiceId, Sn as parseUtcIsoDateTimeString, Tn as resolveBookingTimeZoneId, Zt as hasText, a as clearWorkflowFeedback, an as formatDateTimeRange, cn as formatTime, dn as inferSiteDateLocale, fn as resolveBookingDisplayContext, i as okWith, n as err, nn as formatDate, o as reportWorkflowError, s as reportWorkflowSuccess, t as assertNever, un as formatTimeZoneCityLabel, wn as resolveBookingBusinessTimeZone } from "./src-CmXh3JWs.mjs";
|
|
3
|
+
import { $i as resolveDefaultBookingServiceId, $r as formatValidity, Aa as resolveBookingPaymentAvailability, As as readRuntimeNow, Bi as getBookingSuccessCopy, Ca as applyBookingPaymentAdmission, Da as reconcileBookingPackagePurchase, Ea as bookingRequiresResourceSelection, Fa as getBookingServiceSlidingScale, Fi as buildBookingFormInteractiveIslandProps, Gi as normalizeBookingFormConfig, Gs as repriceBookingCollectionOptions, Ii as readOverrideServiceCategories, Ji as prepareBookingSubmission, Js as formatCreditProductPayment, Ki as normalizeBookingServices, Li as deriveBookingFormViewState, Ma as resolveBookingPaymentMode, Na as resolveBookingPurchasablePackages, Oa as resolveBookingPackagePaymentSelection, Pa as toBookingPurchasablePackages, Pr as createSignInReturnDraftStore, Qi as resolveBookingSiteId, Ri as formatBookingSubmissionPreparationError, Ta as bookingPackageRequestKey, Ui as isBookingServiceSlidingAmountInRange, Wi as isSameOpenCheckout, Xi as resolveBookingPaymentStep, Yi as resolveAppointmentCheckoutVerificationState, Ys as formatCreditProductUnits, Zi as resolveBookingSelectedService, Zr as formatCommercePrice, _a as toBookingQuestionsAnswerDraft, aa as resolveSelectedAppointmentConsent, ao as leavePage, ca as appointmentQuestionsRefusal, da as needsAppointmentQuestionsRefresh, dt as paymentChoiceDetails, ea as resolveLowestBookingPaymentStep, fa as bookingQuestionsAnswerDraftSchema, ft as paymentChoicePrice, ga as restoreBookingQuestionsAnswers, ia as projectSelectedAppointmentConsentIntoForm, ja as resolveBookingPaymentChoice, js as resolveDateRuntimeContext, ka as resolveBookingPackageSources, la as deriveAppointmentBookingQuestions, lo as bookingPresentation, lt as buildBookingPaymentSelectionViewModel, mr as isEmailAddress, na as snapshotBookingShownTerms, oa as EMPTY_APPOINTMENT_BOOKING_QUESTIONS, pa as decideBookingQuestionsRestoration, qi as parseBookingCurrencyInputToCents, qs as formatCreditProductBalance, ra as toSelectedCollectionOptionKind, rc as resolveBookingSignupOffer, sa as applyAppointmentBookingQuestionsEvent, st as onlineBookingUnavailableMessage, ta as selectedBookingCollectionOptionKind, ua as isAppointmentBookingQuestionsEvent, ut as buildReviewedBookingPaymentViewModel, wa as bookingHasPackagePaymentChoices, wc as unsafeAsSiteId, xa as BOOKING_FORM_DATA_RESERVED_KEYS, ya as formatCentsAsCurrencyInput, zi as getBookingRedirectStateFromLocation } from "./wizardSteps-B952ify5.mjs";
|
|
4
|
+
import { f as unsafeAsCustomerPassId, p as unsafeAsPassId } from "./portalRoutes-ByyVZfVq.mjs";
|
|
5
|
+
import { c as checkBookingQuestionsAnswered, h as assertNever$1 } from "./bookingCalendar--aWnqFDn.mjs";
|
|
6
|
+
import { i as useSiteTermsAgreement, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-VfSd6JU-.mjs";
|
|
6
7
|
import { t as layoutServicesByCategory } from "./appointment-service-categories-Cl2pqw-z.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { t as
|
|
8
|
+
import { o as clientPersonPhrases, r as OptionalMark } from "./BookingQuestionFields-BJI7mZuV.mjs";
|
|
9
|
+
import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "./context-Hi1RuYEM.mjs";
|
|
10
|
+
import { t as logger } from "./noop-jesvJXEE.mjs";
|
|
11
|
+
import { b as SpinnerNode, n as ThemedButton } from "./ThemedButton-PFOhXktM.mjs";
|
|
12
|
+
import { n as BookingPanelArrangement, t as StepIndicator } from "./StepIndicator-B6o5B7g3.mjs";
|
|
13
|
+
import { i as discountEmailProblem, m as DiscountCodeDisclosure, p as NavigationHandOffPanel, r as DISCOUNT_APPLY_MESSAGES, t as BookingConfirmation } from "./DemoBookingPortalAccess-8kwNF9HN.mjs";
|
|
14
|
+
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-tG788sw0.mjs";
|
|
13
15
|
import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
|
|
14
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
16
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-C8i4NraK.mjs";
|
|
15
17
|
import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
|
|
16
18
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
17
19
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
18
|
-
import { n as
|
|
19
|
-
import {
|
|
20
|
-
import { a as formatTime$1, i as formatDatePillParts, n as useAvailableDates, o as getRuntimeTimeZone, r as formatDate$1, t as useAvailableSlots } from "./useAvailableSlots-
|
|
21
|
-
import { c as storeDemoBookingPassIfAvailable } from "./demoPortalMagicLink-
|
|
22
|
-
import { i as getDiscountApplyFeedback } from "./shop-discount-apply.state-
|
|
20
|
+
import { c as parseBookingSubmissionFailure, d as useSignInReturn, f as useBookingQuestionsRefresh, i as SignInNotice, l as useBookingNowIso, n as OrganiserContactLine, o as BookingConsentAgreement, p as PaymentChoiceRows, r as BookingQuestionSections, s as usePolling, t as BookingMailingListNote, u as portalSessionIdentity } from "./BookingMailingListNote-7kdvuPow.mjs";
|
|
21
|
+
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-D0kGF0C7.mjs";
|
|
22
|
+
import { a as formatTime$1, i as formatDatePillParts, n as useAvailableDates, o as getRuntimeTimeZone, r as formatDate$1, t as useAvailableSlots } from "./useAvailableSlots-CBneCxbG.mjs";
|
|
23
|
+
import { c as storeDemoBookingPassIfAvailable } from "./demoPortalMagicLink-BAL5UIDG.mjs";
|
|
24
|
+
import { i as getDiscountApplyFeedback } from "./shop-discount-apply.state-Dos2zdC2.mjs";
|
|
23
25
|
import React, { useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
24
26
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
25
27
|
import { z } from "zod";
|
|
26
|
-
//#region ../core/src/branded/entitlements.ts
|
|
27
|
-
const unsafeAsPassId = (id) => id;
|
|
28
|
-
const unsafeAsCustomerPassId = (id) => id;
|
|
29
|
-
//#endregion
|
|
30
28
|
//#region ../core/src/branded/communications.ts
|
|
31
29
|
const unsafeAsFormId = (id) => id;
|
|
32
30
|
//#endregion
|
|
@@ -365,6 +363,14 @@ function decideBookingAdmission(input) {
|
|
|
365
363
|
case "unreadable": return refused(packagesUnreadableMessage(input.businessName), "retry");
|
|
366
364
|
}
|
|
367
365
|
}
|
|
366
|
+
/**
|
|
367
|
+
* Whether to ask a signed-out client to sign in and use a package. We can't see
|
|
368
|
+
* what they hold until they do, so it's offered whenever the service takes
|
|
369
|
+
* packages. A refusal already makes the same offer, so it isn't made twice.
|
|
370
|
+
*/
|
|
371
|
+
function bookingOffersPackageSignIn(heldPackages, admission) {
|
|
372
|
+
return heldPackages === "signedOut" && admission.kind !== "refused";
|
|
373
|
+
}
|
|
368
374
|
function packagesUnreadableMessage(businessName) {
|
|
369
375
|
return `We couldn’t check your packages just now. Please try again, or contact ${businessName?.trim() || "the organiser"} to book.`;
|
|
370
376
|
}
|
|
@@ -2852,7 +2858,8 @@ function useHeadlessBookingFlow(options) {
|
|
|
2852
2858
|
const packagePaymentModel = {
|
|
2853
2859
|
choice: paymentChoice,
|
|
2854
2860
|
purchasablePackages,
|
|
2855
|
-
availability: resolveBookingPaymentAvailability(!packageOnly && paymentResolution.kind !== "unavailable", appointmentPackagesModel, purchasablePackages)
|
|
2861
|
+
availability: resolveBookingPaymentAvailability(!packageOnly && paymentResolution.kind !== "unavailable", appointmentPackagesModel, purchasablePackages),
|
|
2862
|
+
packageSignInOffered: bookingOffersPackageSignIn(heldPackages, stepState.admission)
|
|
2856
2863
|
};
|
|
2857
2864
|
const payment = paymentResolution.kind === "unavailable" && packagePaymentModel.availability.kind === "no_choices" ? {
|
|
2858
2865
|
...packagePaymentModel,
|
|
@@ -4088,7 +4095,6 @@ function DefaultAdmissionRefusal({ booking }) {
|
|
|
4088
4095
|
function AdmissionRefusalNotice({ booking }) {
|
|
4089
4096
|
const admission = booking.admission;
|
|
4090
4097
|
if (admission.kind !== "refused") return null;
|
|
4091
|
-
const email = booking.fields.values.email;
|
|
4092
4098
|
return /* @__PURE__ */ jsx(FeedbackMessage, {
|
|
4093
4099
|
tone: "info",
|
|
4094
4100
|
className: "alert alert-info rb-mb-4",
|
|
@@ -4098,11 +4104,9 @@ function AdmissionRefusalNotice({ booking }) {
|
|
|
4098
4104
|
children: [
|
|
4099
4105
|
/* @__PURE__ */ jsx("p", { children: admission.message }),
|
|
4100
4106
|
admission.contact ? /* @__PURE__ */ jsx(OrganiserContactLine, { contact: admission.contact }) : null,
|
|
4101
|
-
admission.recovery === "signIn" ? /* @__PURE__ */ jsx(
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
email: typeof email === "string" && email.trim() ? email.trim() : void 0,
|
|
4105
|
-
returnPath: booking.questions.signInReturnPath
|
|
4107
|
+
admission.recovery === "signIn" ? /* @__PURE__ */ jsx(PackageSignInNotice, {
|
|
4108
|
+
booking,
|
|
4109
|
+
lead: "Already have a package?"
|
|
4106
4110
|
}) : null,
|
|
4107
4111
|
admission.recovery === "retry" ? /* @__PURE__ */ jsx(ThemedButton, {
|
|
4108
4112
|
type: "button",
|
|
@@ -4115,6 +4119,23 @@ function AdmissionRefusalNotice({ booking }) {
|
|
|
4115
4119
|
})
|
|
4116
4120
|
});
|
|
4117
4121
|
}
|
|
4122
|
+
/** The offer to sign in so a package can pay, worded the way the event form offers a pass. */
|
|
4123
|
+
function PackageSignInNotice({ booking, lead }) {
|
|
4124
|
+
const email = booking.fields.values.email;
|
|
4125
|
+
return /* @__PURE__ */ jsx(SignInNotice, {
|
|
4126
|
+
lead,
|
|
4127
|
+
after: "to use it.",
|
|
4128
|
+
email: typeof email === "string" && email.trim() ? email.trim() : void 0,
|
|
4129
|
+
returnPath: booking.questions.signInReturnPath
|
|
4130
|
+
});
|
|
4131
|
+
}
|
|
4132
|
+
/** Signed out, we can't tell whether the client holds a package for this service, so we ask. */
|
|
4133
|
+
function OfferedPackageSignIn({ booking }) {
|
|
4134
|
+
return booking.payment.packageSignInOffered ? /* @__PURE__ */ jsx(PackageSignInNotice, {
|
|
4135
|
+
booking,
|
|
4136
|
+
lead: "Have a package?"
|
|
4137
|
+
}) : null;
|
|
4138
|
+
}
|
|
4118
4139
|
/** Refused, nothing on the form leads anywhere but the notice and choosing another service. */
|
|
4119
4140
|
function admissionRefused(booking) {
|
|
4120
4141
|
return booking.admission.kind === "refused";
|
|
@@ -4312,7 +4333,8 @@ function DefaultDateTimeSelectionStep({ booking, errorSummaryId, presentation })
|
|
|
4312
4333
|
zoneNote: booking.availability.zoneNote,
|
|
4313
4334
|
ariaDescribedBy: validationDescribedBy,
|
|
4314
4335
|
ariaInvalid: hasValidationError
|
|
4315
|
-
}) : null
|
|
4336
|
+
}) : null,
|
|
4337
|
+
/* @__PURE__ */ jsx(OfferedPackageSignIn, { booking })
|
|
4316
4338
|
]
|
|
4317
4339
|
});
|
|
4318
4340
|
}
|
|
@@ -4391,7 +4413,8 @@ function HeadlessBookingPaymentSelectionStep({ booking, presentation = bookingPr
|
|
|
4391
4413
|
booking,
|
|
4392
4414
|
serviceTitle: service.title,
|
|
4393
4415
|
hasOtherChoices: otherRows.length > 0
|
|
4394
|
-
})
|
|
4416
|
+
}),
|
|
4417
|
+
/* @__PURE__ */ jsx(OfferedPackageSignIn, { booking })
|
|
4395
4418
|
]
|
|
4396
4419
|
});
|
|
4397
4420
|
}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { n as calendarLinks } from "./src-uwCpbHXG.mjs";
|
|
3
|
+
//#region ../core/src/assert-never.ts
|
|
4
|
+
function assertNever(value, message = "Unexpected variant") {
|
|
5
|
+
throw new Error(`${message}: ${String(value)}`);
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region ../core/src/slug.ts
|
|
9
|
+
const REMOVED_CHARACTERS = /['\u2019]/g;
|
|
10
|
+
const COMBINING_DIACRITICS = /[\u0300-\u036f]/g;
|
|
11
|
+
const SEPARATOR_RUN = /[^a-z0-9]+/g;
|
|
12
|
+
const TRAILING_SLUG_SEPARATORS = /[-/]+$/g;
|
|
13
|
+
function slugifySegment(text) {
|
|
14
|
+
return text.normalize("NFD").replace(COMBINING_DIACRITICS, "").toLowerCase().replace(REMOVED_CHARACTERS, "").replace(SEPARATOR_RUN, "-").replace(/^-+|-+$/g, "");
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Convert a string to a URL-safe slug.
|
|
18
|
+
*
|
|
19
|
+
* Every non-alphanumeric character (underscores included) is a separator and
|
|
20
|
+
* collapses to a single hyphen, which keeps output inside the `site_routes`
|
|
21
|
+
* slug constraint `^[a-z0-9]+([a-z0-9\-/]*[a-z0-9])?$`.
|
|
22
|
+
*
|
|
23
|
+
* This is the single slug implementation for the monorepo: block-form and the
|
|
24
|
+
* shop admin catalog delegate here rather than keeping their own variants.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* slugify("Initial Consultation") // "initial-consultation"
|
|
28
|
+
* slugify("Reiki & Energy Healing") // "reiki-energy-healing"
|
|
29
|
+
* slugify("Don't Stop") // "dont-stop"
|
|
30
|
+
* slugify("draft_post") // "draft-post"
|
|
31
|
+
* slugify("Blog / My Post", { preserveSegments: true }) // "blog/my-post"
|
|
32
|
+
*/
|
|
33
|
+
function slugify(text, options = {}) {
|
|
34
|
+
const source = text.toString().trim();
|
|
35
|
+
const slug = options.preserveSegments === true ? source.split("/").map(slugifySegment).filter((segment) => segment.length > 0).join("/") : slugifySegment(source);
|
|
36
|
+
if (options.maxLength === void 0) return slug;
|
|
37
|
+
return slug.slice(0, options.maxLength).replace(TRAILING_SLUG_SEPARATORS, "");
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region ../blocks/src/system/runtime/shared/bookingQuestionValues.ts
|
|
41
|
+
function getInitialFieldValue(field, answers) {
|
|
42
|
+
const value = answers[field.id];
|
|
43
|
+
if (value !== void 0) return value;
|
|
44
|
+
if (field.type === "checkbox" && field.options && field.options.length > 1) return [];
|
|
45
|
+
if (field.type === "checkbox") return false;
|
|
46
|
+
if (field.type === "document_upload") return null;
|
|
47
|
+
return "";
|
|
48
|
+
}
|
|
49
|
+
/** One value per question, taken from earlier answers where there are any. */
|
|
50
|
+
function initialBookingQuestionValues(sections, answers = {}) {
|
|
51
|
+
return Object.fromEntries(sections.flatMap((section) => section.items.map((field) => [field.id, getInitialFieldValue(field, answers)])));
|
|
52
|
+
}
|
|
53
|
+
/** Where a booker starts: keeping earlier answers when we already have them. */
|
|
54
|
+
function initialBookingQuestionsAnswerMode(presentation) {
|
|
55
|
+
return presentation.kind === "already_answered" ? "keep_existing" : "answers";
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* What the submission sends. Keeping earlier answers is only possible when the
|
|
59
|
+
* presentation says we have them, so a mode left over from an earlier
|
|
60
|
+
* presentation (say the booker switched service) can't send `keep_existing`
|
|
61
|
+
* beside questions they can see and edit.
|
|
62
|
+
*/
|
|
63
|
+
function resolveBookingQuestionsAnswerMode(presentation, answerMode) {
|
|
64
|
+
return presentation.kind === "already_answered" ? answerMode : "answers";
|
|
65
|
+
}
|
|
66
|
+
/** Both booking flows submit the same decision made from the current presentation. */
|
|
67
|
+
function buildBookingQuestionsSubmission(presentation, answerMode, values) {
|
|
68
|
+
if (presentation.kind === "none" || presentation.kind === "unavailable") return void 0;
|
|
69
|
+
const requirementId = presentation.set.requirementId;
|
|
70
|
+
return resolveBookingQuestionsAnswerMode(presentation, answerMode) === "keep_existing" ? {
|
|
71
|
+
requirementId,
|
|
72
|
+
kind: "keep_existing"
|
|
73
|
+
} : {
|
|
74
|
+
requirementId,
|
|
75
|
+
kind: "answers",
|
|
76
|
+
raw: values
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
/** Starting values, seeded from earlier answers when the presentation carries them. */
|
|
80
|
+
function initialBookingQuestionsValues(presentation) {
|
|
81
|
+
switch (presentation.kind) {
|
|
82
|
+
case "none":
|
|
83
|
+
case "unavailable": return {};
|
|
84
|
+
case "ask": return initialBookingQuestionValues(presentation.set.sections);
|
|
85
|
+
case "prefill":
|
|
86
|
+
case "already_answered": return initialBookingQuestionValues(presentation.set.sections, presentation.answers);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
/** No answer given: blank text, nothing chosen, an unticked box, or no file. Mirrors the server's required check. */
|
|
90
|
+
function isUnansweredBookingQuestion(value) {
|
|
91
|
+
if (value === void 0 || value === null || value === false) return true;
|
|
92
|
+
if (typeof value === "string") return value.trim() === "";
|
|
93
|
+
if (Array.isArray(value)) return value.every((item) => item.trim() === "");
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The required questions still without an answer, so a flow can point at
|
|
98
|
+
* them before sending; the server makes the same check and has the last word.
|
|
99
|
+
*/
|
|
100
|
+
function unansweredRequiredBookingQuestions(sections, values) {
|
|
101
|
+
return sections.flatMap((section) => section.items.flatMap((field) => field.required && isUnansweredBookingQuestion(values[field.id]) ? [field.id] : []));
|
|
102
|
+
}
|
|
103
|
+
/** The same words the server uses when it refuses an unanswered question. */
|
|
104
|
+
const UNANSWERED_QUESTION_MESSAGE = "Please answer this question.";
|
|
105
|
+
const UNANSWERED_QUESTIONS_SUMMARY = "Some questions still need an answer.";
|
|
106
|
+
/**
|
|
107
|
+
* The during-booking questions before the details step moves on: required
|
|
108
|
+
* questions need an answer, unless the booker is keeping earlier ones. Format
|
|
109
|
+
* checks (length, email and so on) are left to the server.
|
|
110
|
+
*/
|
|
111
|
+
function checkBookingQuestionsAnswered(view) {
|
|
112
|
+
const { presentation } = view;
|
|
113
|
+
if (presentation.kind === "none") return { kind: "ok" };
|
|
114
|
+
if (presentation.kind === "unavailable") return {
|
|
115
|
+
kind: "refused",
|
|
116
|
+
message: presentation.message
|
|
117
|
+
};
|
|
118
|
+
if (view.answerMode === "keep_existing") return { kind: "ok" };
|
|
119
|
+
const missing = unansweredRequiredBookingQuestions(presentation.set.sections, view.values);
|
|
120
|
+
return missing.length === 0 ? { kind: "ok" } : {
|
|
121
|
+
kind: "unanswered",
|
|
122
|
+
message: UNANSWERED_QUESTIONS_SUMMARY,
|
|
123
|
+
fieldErrors: Object.fromEntries(missing.map((fieldId) => [fieldId, UNANSWERED_QUESTION_MESSAGE]))
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/bookingCalendar.ts
|
|
128
|
+
/** Public schedule plus the authorised outcome's arrival text; online access stays in email. */
|
|
129
|
+
function bookingCalendar(event, outcome) {
|
|
130
|
+
if (!event) return null;
|
|
131
|
+
const { identity } = outcome;
|
|
132
|
+
const sessions = event.registrationSubject.kind === "wholeSeries" ? event.registrationSubject.sessions : [{
|
|
133
|
+
occurrenceId: event.registrationSubject.occurrenceId,
|
|
134
|
+
startsAt: event.startsAt,
|
|
135
|
+
endsAt: event.endsAt
|
|
136
|
+
}];
|
|
137
|
+
const bookingId = identity.scope === "occurrence" ? identity.attendeeId : identity.registrationId;
|
|
138
|
+
const entries = sessions.map((session) => ({
|
|
139
|
+
uid: `booking-${bookingId}-${session.occurrenceId}@riverbankcms.com`,
|
|
140
|
+
sequence: 0,
|
|
141
|
+
title: event.title,
|
|
142
|
+
startsAt: new Date(session.startsAt),
|
|
143
|
+
endsAt: new Date(session.endsAt),
|
|
144
|
+
timezone: "UTC",
|
|
145
|
+
status: "confirmed",
|
|
146
|
+
location: identity.attendanceMode === "online" ? ONLINE_CALENDAR_LOCATION : outcome.arrivalVenues?.[session.occurrenceId] ?? event.venue?.name,
|
|
147
|
+
description: identity.attendanceMode === "online" ? ONLINE_CALENDAR_DESCRIPTION : void 0
|
|
148
|
+
}));
|
|
149
|
+
return bookingCalendarFromEntries(event.title, entries);
|
|
150
|
+
}
|
|
151
|
+
/** The online-booking entry's wording: joining details are kept out of a file that's easy to forward. */
|
|
152
|
+
const ONLINE_CALENDAR_LOCATION = "Online";
|
|
153
|
+
const ONLINE_CALENDAR_DESCRIPTION = "See your confirmation email for joining instructions.";
|
|
154
|
+
/** A calendar entry needs an end; a booking nobody gave one shows as an hour. */
|
|
155
|
+
function calendarEntryEnd(startsAt, endsAt) {
|
|
156
|
+
return endsAt && endsAt.getTime() > startsAt.getTime() ? endsAt : new Date(startsAt.getTime() + 60 * 6e4);
|
|
157
|
+
}
|
|
158
|
+
/** One booking's entries as a download, with Google and Outlook links when it's a single date. */
|
|
159
|
+
function bookingCalendarFromEntries(title, entries) {
|
|
160
|
+
const first = entries[0];
|
|
161
|
+
if (!first) return null;
|
|
162
|
+
const common = {
|
|
163
|
+
fileName: `${slugify(title) || "event"}.ics`,
|
|
164
|
+
feed: {
|
|
165
|
+
timezone: "UTC",
|
|
166
|
+
entries
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
return entries.length === 1 ? {
|
|
170
|
+
...common,
|
|
171
|
+
kind: "single",
|
|
172
|
+
...calendarLinks(first)
|
|
173
|
+
} : {
|
|
174
|
+
...common,
|
|
175
|
+
kind: "sessions",
|
|
176
|
+
sessionCount: entries.length
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
//#endregion
|
|
180
|
+
export { calendarEntryEnd as a, checkBookingQuestionsAnswered as c, initialBookingQuestionsAnswerMode as d, initialBookingQuestionsValues as f, assertNever as h, bookingCalendarFromEntries as i, getInitialFieldValue as l, unansweredRequiredBookingQuestions as m, ONLINE_CALENDAR_LOCATION as n, UNANSWERED_QUESTION_MESSAGE as o, resolveBookingQuestionsAnswerMode as p, bookingCalendar as r, buildBookingQuestionsSubmission as s, ONLINE_CALENDAR_DESCRIPTION as t, initialBookingQuestionValues as u };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BookingFormClient } from "./booking-form.client-
|
|
3
|
-
import { t as BlockApiProvider } from "./context-
|
|
4
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { t as BookingFormClient } from "./booking-form.client-BOMe_SKi.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-Hi1RuYEM.mjs";
|
|
4
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-0Unsqn3R.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-BGfcc9sk.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/bookingForm.tsx
|
package/dist/client/bookings.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-
|
|
6
|
-
import { n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
2
|
+
import { S as publicEventSchema, t as assertNever } from "./src-CmXh3JWs.mjs";
|
|
3
|
+
import { $ as deriveEventRegistrationSteps, As as readRuntimeNow, Gi as normalizeBookingFormConfig, Hr as resolveRegistrationDisplay, Ki as normalizeBookingServices, Sa as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, Tr as getSingleSelectedPricingOptionId, at as toHeadlessPaymentSelection, it as resolveHeadlessEventRegistrationView, nt as resolveEventRegistrationSubmitPlan, ot as toInternalPaymentSelection, rt as resolveHeadlessEventRegistrationStatus, to as createHostedBlockApiConfig, tt as normalizeEventRegistrationMaxTickets, vi as normalizeEventRegistrationPageSurfaceSubject, yo as resolveRuntimeEventDestination, yt as entryChoosesEvent } from "./wizardSteps-B952ify5.mjs";
|
|
4
|
+
import { a as useHeadlessBookingFlow, i as HeadlessBookingProvider$1, o as createBookingBlockApiConfig, r as HeadlessBookingPaymentSelectionStep$1, s as getAppointmentBookingOverrideInput, t as BookingFormClient$1 } from "./booking-form.client-BOMe_SKi.mjs";
|
|
5
|
+
import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-D4FvQSFF.mjs";
|
|
6
|
+
import { n as useBlockApi, t as BlockApiProvider } from "./context-Hi1RuYEM.mjs";
|
|
7
7
|
import * as React$1 from "react";
|
|
8
8
|
import React, { useCallback, useEffect, useMemo, useReducer } from "react";
|
|
9
9
|
//#region ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.ts
|
|
@@ -106,14 +106,15 @@ function useEventRegistrationController(options) {
|
|
|
106
106
|
}
|
|
107
107
|
function useEventRegistrationControllerWithDeps(options, deps) {
|
|
108
108
|
const { wizard } = useEventRegistrationWizardControllerWithDeps(options, deps);
|
|
109
|
+
const hasPreSelectedContext = !entryChoosesEvent(wizard.entry);
|
|
109
110
|
const steps = useMemo(() => deriveEventRegistrationSteps({
|
|
110
111
|
step: wizard.step,
|
|
111
|
-
hasPreSelectedContext
|
|
112
|
+
hasPreSelectedContext,
|
|
112
113
|
eventRequiresPayment: wizard.eventRequiresPayment,
|
|
113
114
|
paymentSelection: wizard.paymentSelection
|
|
114
115
|
}), [
|
|
115
116
|
wizard.eventRequiresPayment,
|
|
116
|
-
|
|
117
|
+
hasPreSelectedContext,
|
|
117
118
|
wizard.paymentSelection,
|
|
118
119
|
wizard.step
|
|
119
120
|
]);
|
|
@@ -144,7 +145,7 @@ function useEventRegistrationControllerWithDeps(options, deps) {
|
|
|
144
145
|
scoped: wizard.scopedEvents,
|
|
145
146
|
selected: wizard.selectedEvent,
|
|
146
147
|
preSelected: wizard.preSelectedEvent,
|
|
147
|
-
hasPreSelectedContext
|
|
148
|
+
hasPreSelectedContext,
|
|
148
149
|
target: wizard.registrationTarget,
|
|
149
150
|
occurrenceContext: wizard.occurrenceContext
|
|
150
151
|
},
|
|
@@ -300,7 +301,7 @@ function useEventRegistrationBack(wizard) {
|
|
|
300
301
|
wizard.setStep("enter-details");
|
|
301
302
|
return;
|
|
302
303
|
case "select-tickets":
|
|
303
|
-
if (
|
|
304
|
+
if (entryChoosesEvent(wizard.entry)) wizard.setStep("select-event");
|
|
304
305
|
return;
|
|
305
306
|
case "select-event":
|
|
306
307
|
case "error":
|
|
@@ -328,7 +329,8 @@ function useEventRegistrationWizardControllerWithDeps(options, deps) {
|
|
|
328
329
|
maxTicketsNum,
|
|
329
330
|
siteTerms: options.siteTerms,
|
|
330
331
|
mailingList: options.mailingList,
|
|
331
|
-
siteName: options.siteName
|
|
332
|
+
siteName: options.siteName,
|
|
333
|
+
datePageOffer: "eventsAsGiven"
|
|
332
334
|
}) };
|
|
333
335
|
}
|
|
334
336
|
function resolveExistingRegistrations(wizard) {
|
|
@@ -351,6 +353,10 @@ function resolveExistingRegistrationState(wizard) {
|
|
|
351
353
|
tag: "loaded",
|
|
352
354
|
value: wizard.existingRegistrations
|
|
353
355
|
};
|
|
356
|
+
case "failed": return {
|
|
357
|
+
tag: "failed",
|
|
358
|
+
value: null
|
|
359
|
+
};
|
|
354
360
|
}
|
|
355
361
|
}
|
|
356
362
|
function resolvePaymentModel(wizard, directPaymentOptions) {
|
|
@@ -373,7 +379,7 @@ function resolvePaymentModel(wizard, directPaymentOptions) {
|
|
|
373
379
|
checkout: wizard.paymentController.state,
|
|
374
380
|
stepState: wizard.paymentStepState,
|
|
375
381
|
eligibility: wizard.eligibility,
|
|
376
|
-
eligibilityError: wizard.
|
|
382
|
+
eligibilityError: wizard.paymentOptionsError,
|
|
377
383
|
funding: projectFunding(wizard.selectionFunding)
|
|
378
384
|
};
|
|
379
385
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { cn as
|
|
2
|
+
import { bs as asPartialObject } from "./wizardSteps-B952ify5.mjs";
|
|
3
|
+
import { cn as boxBackgroundSchema, fn as cardVariantRoleValues, ln as runtimeBoxBackgroundSchema, mn as openCardRoleValue, pn as itemRoleValues, sn as boxBackgroundOverlaySchema, un as boxlessCardVariantValue } from "./noop-jesvJXEE.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
z.enum(itemRoleValues);
|
|
6
6
|
z.enum(cardVariantRoleValues);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { i as carouselRegionAttributes } from "./carousel.shared-BFQ3kBEw.mjs";
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
4
|
-
import { t as CarouselNodeClient } from "./carousel.client-
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-0Unsqn3R.mjs";
|
|
4
|
+
import { t as CarouselNodeClient } from "./carousel.client-BtLwHefX.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { x as clsx } from "./ThemedButton-PFOhXktM.mjs";
|
|
3
3
|
import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, o as carouselStatus, r as carouselContents, u as resolveSlidesToShowMobile } from "./carousel.shared-BFQ3kBEw.mjs";
|
|
4
4
|
import { t as createLucideIcon } from "./createLucideIcon-BrXgHVKN.mjs";
|
|
5
5
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as CartClient } from "./cart.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-0Unsqn3R.mjs";
|
|
3
|
+
import { t as CartClient } from "./cart.client-BKFkaXdV.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-3giNWE3H.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/cart.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("cart");
|
|
7
7
|
const enhance = (root, props) => mountShopBlockIsland(root, props, CartClient, "cart");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as CartController } from "./shop-commerce-
|
|
2
|
+
import { t as CartController } from "./shop-commerce-D5bDY1o1.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/cart.client.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as CheckoutClient } from "./checkout.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-0Unsqn3R.mjs";
|
|
3
|
+
import { t as CheckoutClient } from "./checkout.client-C25hpi-z.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-3giNWE3H.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/checkout.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("checkout");
|
|
7
7
|
const enhance = (root, props) => mountShopBlockIsland(root, props, CheckoutClient, "checkout");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as CheckoutController } from "./shop-commerce-
|
|
2
|
+
import { n as CheckoutController } from "./shop-commerce-D5bDY1o1.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/checkout.client.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { io as canonicalUrl } from "./wizardSteps-B952ify5.mjs";
|
|
3
3
|
//#region ../blocks/src/system/runtime/shared/utils/checkoutUrls.ts
|
|
4
4
|
/**
|
|
5
5
|
* Build return URLs for Stripe checkout redirect.
|