@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
package/dist/client/{BookingMailingListNote-CGxg37zx.mjs → BookingMailingListNote-7kdvuPow.mjs}
RENAMED
|
@@ -1,16 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { i as BlockApiError, n as useBlockApi, r as useBlockApiOptional } from "./context-
|
|
6
|
-
import {
|
|
7
|
-
import { p as NavigationHandOffPanel } from "./DemoBookingPortalAccess-
|
|
2
|
+
import { Cn as toUtcIsoDateTimeString, t as assertNever } from "./src-CmXh3JWs.mjs";
|
|
3
|
+
import { Fr as decideSignInReturn, Io as RichText, Ir as nextSignInReturnExpiry, Lr as readSignInReturn, Nr as clearSignInReturnDrafts, Rr as signInReturnPath, so as requestSignIn, zr as sweepExpiredSignInReturnDrafts } from "./wizardSteps-B952ify5.mjs";
|
|
4
|
+
import { n as BookingQuestionFields } from "./BookingQuestionFields-BJI7mZuV.mjs";
|
|
5
|
+
import { i as BlockApiError, n as useBlockApi, r as useBlockApiOptional } from "./context-Hi1RuYEM.mjs";
|
|
6
|
+
import { n as ThemedButton, r as ThemedButtonLink } from "./ThemedButton-PFOhXktM.mjs";
|
|
7
|
+
import { p as NavigationHandOffPanel } from "./DemoBookingPortalAccess-8kwNF9HN.mjs";
|
|
8
8
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
9
|
-
import {
|
|
9
|
+
import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-BAL5UIDG.mjs";
|
|
10
10
|
import { n as getBookingMailingListNoteCopy } from "./mailingListSignupCopy-CX4sDozG.mjs";
|
|
11
11
|
import * as React$1 from "react";
|
|
12
12
|
import { useCallback, useEffect, useId, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
13
13
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
//#region ../blocks/src/system/runtime/shared/components/DemoPortalSignInLink.tsx
|
|
15
|
+
function DemoPortalSignInLink(props) {
|
|
16
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
17
|
+
/* @__PURE__ */ jsx("h3", { children: "Your sign-in link" }),
|
|
18
|
+
/* @__PURE__ */ jsx("p", { children: "In the demo we don’t send emails, so here’s the link we’d have sent you." }),
|
|
19
|
+
/* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
20
|
+
variant: "default",
|
|
21
|
+
size: "md",
|
|
22
|
+
label: "Sign in to the portal",
|
|
23
|
+
href: props.url
|
|
24
|
+
})
|
|
25
|
+
] });
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
14
28
|
//#region ../blocks/src/system/runtime/shared/components/PaymentChoiceRows.tsx
|
|
15
29
|
/**
|
|
16
30
|
* Payment choices as a radio group. Native radios give the whole row as the
|
|
@@ -233,17 +247,14 @@ function useReturnSession(input, waiting) {
|
|
|
233
247
|
useEffect(() => {
|
|
234
248
|
if (!waiting || identity === null) return;
|
|
235
249
|
const run = { live: true };
|
|
236
|
-
|
|
237
|
-
if (run.live) setRead({
|
|
238
|
-
identity,
|
|
239
|
-
email: me.profile.email
|
|
240
|
-
});
|
|
241
|
-
}, () => {
|
|
250
|
+
const settleRead = (email) => {
|
|
242
251
|
if (run.live) setRead({
|
|
243
252
|
identity,
|
|
244
|
-
email
|
|
253
|
+
email
|
|
245
254
|
});
|
|
246
|
-
}
|
|
255
|
+
};
|
|
256
|
+
if (!api.portalVisitor) settleRead(null);
|
|
257
|
+
else api.portalVisitor.profile().then((result) => settleRead(result.ok ? result.value.profile.email : null));
|
|
247
258
|
return () => {
|
|
248
259
|
run.live = false;
|
|
249
260
|
};
|
|
@@ -312,6 +323,71 @@ function portalSessionIdentity(config) {
|
|
|
312
323
|
return portalAuth.type === "bearer" ? portalAuth.token : null;
|
|
313
324
|
}
|
|
314
325
|
//#endregion
|
|
326
|
+
//#region ../blocks/src/system/runtime/hooks/useBookingNowIso.ts
|
|
327
|
+
const ANCHOR_CLOCK = { kind: "anchor" };
|
|
328
|
+
const MAX_TIMER_DELAY_MS = 2147483647;
|
|
329
|
+
const browserClock = () => toUtcIsoDateTimeString((/* @__PURE__ */ new Date()).toISOString());
|
|
330
|
+
/** The effect owns one timer, including long-delay and early-timer retries. */
|
|
331
|
+
function scheduleBookingClockBoundary(boundary, refresh, clock) {
|
|
332
|
+
const timer = {};
|
|
333
|
+
const schedule = () => {
|
|
334
|
+
const delay = Date.parse(boundary) - Date.parse(clock());
|
|
335
|
+
if (!Number.isFinite(delay) || delay <= 0) return;
|
|
336
|
+
timer.current = setTimeout(() => {
|
|
337
|
+
refresh();
|
|
338
|
+
schedule();
|
|
339
|
+
}, Math.min(delay, MAX_TIMER_DELAY_MS));
|
|
340
|
+
};
|
|
341
|
+
schedule();
|
|
342
|
+
return () => {
|
|
343
|
+
if (timer.current !== void 0) clearTimeout(timer.current);
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* The supplied server clock snapshot for this booking or registration flow.
|
|
348
|
+
*
|
|
349
|
+
* Payment previews take this as their "now" so the pure view-model builders
|
|
350
|
+
* never read the clock themselves. The anchor stays fixed per mount. Lifecycle
|
|
351
|
+
* presentation starts with the same snapshot, then reconciles in effects.
|
|
352
|
+
*/
|
|
353
|
+
function useBookingNowIso(snapshot, policy = ANCHOR_CLOCK, clock = browserClock) {
|
|
354
|
+
const [nowIso, setNowIso] = useState(snapshot);
|
|
355
|
+
const refresh = useCallback(() => setNowIso(clock()), [clock]);
|
|
356
|
+
const nextBoundary = policy.kind === "presentation" ? policy.nextBoundary : null;
|
|
357
|
+
useEffect(() => {
|
|
358
|
+
if (policy.kind === "anchor") return;
|
|
359
|
+
refresh();
|
|
360
|
+
const interval = policy.kind === "relative" ? setInterval(refresh, 6e4) : null;
|
|
361
|
+
window.addEventListener("focus", refresh);
|
|
362
|
+
document.addEventListener("visibilitychange", refresh);
|
|
363
|
+
return () => {
|
|
364
|
+
if (interval !== null) clearInterval(interval);
|
|
365
|
+
window.removeEventListener("focus", refresh);
|
|
366
|
+
document.removeEventListener("visibilitychange", refresh);
|
|
367
|
+
};
|
|
368
|
+
}, [policy.kind, refresh]);
|
|
369
|
+
useEffect(() => {
|
|
370
|
+
if (!nextBoundary) return;
|
|
371
|
+
return scheduleBookingClockBoundary(nextBoundary, refresh, clock);
|
|
372
|
+
}, [
|
|
373
|
+
nextBoundary,
|
|
374
|
+
clock,
|
|
375
|
+
refresh
|
|
376
|
+
]);
|
|
377
|
+
return nowIso;
|
|
378
|
+
}
|
|
379
|
+
//#endregion
|
|
380
|
+
//#region ../blocks/src/system/runtime/shared/parseBookingSubmissionFailure.ts
|
|
381
|
+
/** `fieldPrefix` is where the server puts question field ids: booking flows send them under `bookingQuestions.`, the portal under `answers.`. */
|
|
382
|
+
function parseBookingSubmissionFailure(error, fallbackMessage, fieldPrefix = "bookingQuestions.") {
|
|
383
|
+
const fieldErrors = error instanceof BlockApiError ? error.fieldErrors : [];
|
|
384
|
+
return {
|
|
385
|
+
message: error instanceof Error ? error.message : fallbackMessage,
|
|
386
|
+
answersNeeded: fieldErrors.some(({ field, code }) => field === "bookingQuestions" && code === "validation:required"),
|
|
387
|
+
questionFieldErrors: Object.fromEntries(fieldErrors.flatMap(({ field, message }) => field.startsWith(fieldPrefix) && field.length > fieldPrefix.length ? [[field.slice(fieldPrefix.length), message]] : []))
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
//#endregion
|
|
315
391
|
//#region ../blocks/src/system/runtime/hooks/usePolling.state.ts
|
|
316
392
|
function createInitialPollingState() {
|
|
317
393
|
return {
|
|
@@ -605,10 +681,9 @@ function getMagicLinkError(state) {
|
|
|
605
681
|
//#endregion
|
|
606
682
|
//#region ../blocks/src/system/runtime/nodes/shared/MagicLinkForm.tsx
|
|
607
683
|
function usesThemedControls(classPrefix) {
|
|
608
|
-
return classPrefix === "
|
|
684
|
+
return classPrefix === "rb-reg";
|
|
609
685
|
}
|
|
610
686
|
function emailInputClassName(classPrefix) {
|
|
611
|
-
if (classPrefix === "cp") return "cp-input";
|
|
612
687
|
if (classPrefix === "rb-reg") return "form-input";
|
|
613
688
|
return `${classPrefix}-form__input`;
|
|
614
689
|
}
|
|
@@ -992,4 +1067,4 @@ function BookingMailingListNote(props) {
|
|
|
992
1067
|
});
|
|
993
1068
|
}
|
|
994
1069
|
//#endregion
|
|
995
|
-
export { MagicLinkForm as a,
|
|
1070
|
+
export { MagicLinkForm as a, parseBookingSubmissionFailure as c, useSignInReturn as d, useBookingQuestionsRefresh as f, SignInNotice as i, useBookingNowIso as l, OrganiserContactLine as n, BookingConsentAgreement as o, PaymentChoiceRows as p, BookingQuestionSections as r, usePolling as s, BookingMailingListNote as t, portalSessionIdentity as u };
|
package/dist/client/{BookingQuestionFields-DXegGSnS.mjs → BookingQuestionFields-BJI7mZuV.mjs}
RENAMED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { i as ThemedButtonLink } from "./ThemedButton-CnSa7o-I.mjs";
|
|
6
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-BZPLCgTU.mjs";
|
|
2
|
+
import { Xt as capitalize } from "./src-CmXh3JWs.mjs";
|
|
3
|
+
import { l as getInitialFieldValue } from "./bookingCalendar--aWnqFDn.mjs";
|
|
4
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-C8i4NraK.mjs";
|
|
7
5
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
8
|
-
import
|
|
6
|
+
import "react";
|
|
9
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
8
|
const indefiniteArticle = (word) => /^(honest|honour|hour|heir)/i.test(word) ? "an" : /^(uni([^nmd]|$)|use|user|euro|one|once)/i.test(word) ? "a" : /^[aeiou]/i.test(word) ? "an" : "a";
|
|
11
9
|
function clientPersonPhrases(noun) {
|
|
@@ -28,85 +26,6 @@ function clientPersonPhrases(noun) {
|
|
|
28
26
|
};
|
|
29
27
|
}
|
|
30
28
|
//#endregion
|
|
31
|
-
//#region ../blocks/src/system/runtime/shared/components/DemoPortalSignInLink.tsx
|
|
32
|
-
function DemoPortalSignInLink(props) {
|
|
33
|
-
return /* @__PURE__ */ jsxs("div", { children: [
|
|
34
|
-
/* @__PURE__ */ jsx("h3", { children: "Your sign-in link" }),
|
|
35
|
-
/* @__PURE__ */ jsx("p", { children: "In the demo we don’t send emails, so here’s the link we’d have sent you." }),
|
|
36
|
-
/* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
37
|
-
variant: "default",
|
|
38
|
-
size: "md",
|
|
39
|
-
label: "Sign in to the portal",
|
|
40
|
-
href: props.url
|
|
41
|
-
})
|
|
42
|
-
] });
|
|
43
|
-
}
|
|
44
|
-
//#endregion
|
|
45
|
-
//#region ../blocks/src/system/runtime/hooks/useBookingNowIso.ts
|
|
46
|
-
const ANCHOR_CLOCK = { kind: "anchor" };
|
|
47
|
-
const MAX_TIMER_DELAY_MS = 2147483647;
|
|
48
|
-
const browserClock = () => toUtcIsoDateTimeString((/* @__PURE__ */ new Date()).toISOString());
|
|
49
|
-
/** The effect owns one timer, including long-delay and early-timer retries. */
|
|
50
|
-
function scheduleBookingClockBoundary(boundary, refresh, clock) {
|
|
51
|
-
const timer = {};
|
|
52
|
-
const schedule = () => {
|
|
53
|
-
const delay = Date.parse(boundary) - Date.parse(clock());
|
|
54
|
-
if (!Number.isFinite(delay) || delay <= 0) return;
|
|
55
|
-
timer.current = setTimeout(() => {
|
|
56
|
-
refresh();
|
|
57
|
-
schedule();
|
|
58
|
-
}, Math.min(delay, MAX_TIMER_DELAY_MS));
|
|
59
|
-
};
|
|
60
|
-
schedule();
|
|
61
|
-
return () => {
|
|
62
|
-
if (timer.current !== void 0) clearTimeout(timer.current);
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* The supplied server clock snapshot for this booking or registration flow.
|
|
67
|
-
*
|
|
68
|
-
* Payment previews take this as their "now" so the pure view-model builders
|
|
69
|
-
* never read the clock themselves. The anchor stays fixed per mount. Lifecycle
|
|
70
|
-
* presentation starts with the same snapshot, then reconciles in effects.
|
|
71
|
-
*/
|
|
72
|
-
function useBookingNowIso(snapshot, policy = ANCHOR_CLOCK, clock = browserClock) {
|
|
73
|
-
const [nowIso, setNowIso] = useState(snapshot);
|
|
74
|
-
const refresh = useCallback(() => setNowIso(clock()), [clock]);
|
|
75
|
-
const nextBoundary = policy.kind === "presentation" ? policy.nextBoundary : null;
|
|
76
|
-
useEffect(() => {
|
|
77
|
-
if (policy.kind === "anchor") return;
|
|
78
|
-
refresh();
|
|
79
|
-
const interval = policy.kind === "relative" ? setInterval(refresh, 6e4) : null;
|
|
80
|
-
window.addEventListener("focus", refresh);
|
|
81
|
-
document.addEventListener("visibilitychange", refresh);
|
|
82
|
-
return () => {
|
|
83
|
-
if (interval !== null) clearInterval(interval);
|
|
84
|
-
window.removeEventListener("focus", refresh);
|
|
85
|
-
document.removeEventListener("visibilitychange", refresh);
|
|
86
|
-
};
|
|
87
|
-
}, [policy.kind, refresh]);
|
|
88
|
-
useEffect(() => {
|
|
89
|
-
if (!nextBoundary) return;
|
|
90
|
-
return scheduleBookingClockBoundary(nextBoundary, refresh, clock);
|
|
91
|
-
}, [
|
|
92
|
-
nextBoundary,
|
|
93
|
-
clock,
|
|
94
|
-
refresh
|
|
95
|
-
]);
|
|
96
|
-
return nowIso;
|
|
97
|
-
}
|
|
98
|
-
//#endregion
|
|
99
|
-
//#region ../blocks/src/system/runtime/shared/parseBookingSubmissionFailure.ts
|
|
100
|
-
/** `fieldPrefix` is where the server puts question field ids: booking flows send them under `bookingQuestions.`, the portal under `answers.`. */
|
|
101
|
-
function parseBookingSubmissionFailure(error, fallbackMessage, fieldPrefix = "bookingQuestions.") {
|
|
102
|
-
const fieldErrors = error instanceof BlockApiError ? error.fieldErrors : [];
|
|
103
|
-
return {
|
|
104
|
-
message: error instanceof Error ? error.message : fallbackMessage,
|
|
105
|
-
answersNeeded: fieldErrors.some(({ field, code }) => field === "bookingQuestions" && code === "validation:required"),
|
|
106
|
-
questionFieldErrors: Object.fromEntries(fieldErrors.flatMap(({ field, message }) => field.startsWith(fieldPrefix) && field.length > fieldPrefix.length ? [[field.slice(fieldPrefix.length), message]] : []))
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
//#endregion
|
|
110
29
|
//#region ../blocks/src/system/runtime/shared/components/BookingQuestionFields.tsx
|
|
111
30
|
/**
|
|
112
31
|
* Optional questions say so; required ones carry aria-required instead of an
|
|
@@ -174,7 +93,7 @@ function SelectQuestionInput({ field, inputId, value, disabled, control, onChang
|
|
|
174
93
|
onChange: (event) => onChange(event.target.value),
|
|
175
94
|
children: [/* @__PURE__ */ jsx("option", {
|
|
176
95
|
value: "",
|
|
177
|
-
children: "
|
|
96
|
+
children: "Choose one"
|
|
178
97
|
}), options]
|
|
179
98
|
});
|
|
180
99
|
}
|
|
@@ -265,6 +184,7 @@ function BookingQuestionFieldInput(props) {
|
|
|
265
184
|
});
|
|
266
185
|
}
|
|
267
186
|
}
|
|
187
|
+
/** The input's ARIA: described by its help and error, required when the question is. */
|
|
268
188
|
function questionControlProps(field, ids, error) {
|
|
269
189
|
return {
|
|
270
190
|
...getFieldValidationControlProps({
|
|
@@ -377,4 +297,4 @@ function BookingQuestionFields({ sections, values, fieldErrors = {}, onChange, d
|
|
|
377
297
|
}, section.id)) });
|
|
378
298
|
}
|
|
379
299
|
//#endregion
|
|
380
|
-
export {
|
|
300
|
+
export { questionControlProps as a, isChoiceGroup as i, BookingQuestionFields as n, clientPersonPhrases as o, OptionalMark as r, indefiniteArticle as s, BookingQuestionFieldInput as t };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { n as ThemedButton } from "./ThemedButton-PFOhXktM.mjs";
|
|
3
|
+
import { useEffect, useId, useRef, useState } from "react";
|
|
4
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/CalendarAction.tsx
|
|
6
|
+
/** Download effects happen only after a click, including in editor preview. */
|
|
7
|
+
async function downloadCalendar(calendar) {
|
|
8
|
+
const { renderCalendarFeedIcs } = await import("./src-DqMbCjI1.mjs");
|
|
9
|
+
const url = URL.createObjectURL(new Blob([renderCalendarFeedIcs(calendar.feed)], { type: "text/calendar;charset=utf-8" }));
|
|
10
|
+
const link = document.createElement("a");
|
|
11
|
+
link.href = url;
|
|
12
|
+
link.download = calendar.fileName;
|
|
13
|
+
document.body.append(link);
|
|
14
|
+
link.click();
|
|
15
|
+
link.remove();
|
|
16
|
+
setTimeout(() => URL.revokeObjectURL(url), 0);
|
|
17
|
+
}
|
|
18
|
+
function CalendarAction({ calendar }) {
|
|
19
|
+
const [open, setOpen] = useState(false);
|
|
20
|
+
const [downloadFailed, setDownloadFailed] = useState(false);
|
|
21
|
+
const id = useId();
|
|
22
|
+
const choicesRef = useRef(null);
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
if (open) choicesRef.current?.scrollIntoView({ block: "nearest" });
|
|
25
|
+
}, [open]);
|
|
26
|
+
const close = () => setOpen(false);
|
|
27
|
+
const download = async (value) => {
|
|
28
|
+
setDownloadFailed(false);
|
|
29
|
+
try {
|
|
30
|
+
await downloadCalendar(value);
|
|
31
|
+
close();
|
|
32
|
+
} catch {
|
|
33
|
+
setDownloadFailed(true);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
if (!calendar) return null;
|
|
37
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
38
|
+
className: "er-calendar-action",
|
|
39
|
+
onBlur: (event) => {
|
|
40
|
+
if (!event.currentTarget.contains(event.relatedTarget)) close();
|
|
41
|
+
},
|
|
42
|
+
onKeyDown: (event) => {
|
|
43
|
+
if (event.key === "Escape" && open) {
|
|
44
|
+
event.stopPropagation();
|
|
45
|
+
close();
|
|
46
|
+
event.currentTarget.querySelector("button")?.focus();
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
children: [calendar.kind === "sessions" ? /* @__PURE__ */ jsx(ThemedButton, {
|
|
50
|
+
type: "button",
|
|
51
|
+
variant: "outline",
|
|
52
|
+
size: "md",
|
|
53
|
+
extraClassName: "er-calendar-action__trigger",
|
|
54
|
+
label: calendar.sessionCount === 2 ? "Add both sessions to your calendar" : `Add all ${calendar.sessionCount} sessions to your calendar`,
|
|
55
|
+
onClick: () => {
|
|
56
|
+
download(calendar);
|
|
57
|
+
}
|
|
58
|
+
}) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ThemedButton, {
|
|
59
|
+
type: "button",
|
|
60
|
+
variant: "outline",
|
|
61
|
+
size: "md",
|
|
62
|
+
extraClassName: "er-calendar-action__trigger er-calendar-action__trigger--disclosure",
|
|
63
|
+
label: "Add to calendar",
|
|
64
|
+
"aria-expanded": open,
|
|
65
|
+
"aria-controls": id,
|
|
66
|
+
onClick: () => setOpen(!open)
|
|
67
|
+
}), open ? /* @__PURE__ */ jsxs("div", {
|
|
68
|
+
id,
|
|
69
|
+
ref: choicesRef,
|
|
70
|
+
className: "er-calendar-action__choices",
|
|
71
|
+
children: [
|
|
72
|
+
/* @__PURE__ */ jsx("a", {
|
|
73
|
+
className: "er-calendar-action__choice",
|
|
74
|
+
href: calendar.googleUrl,
|
|
75
|
+
target: "_blank",
|
|
76
|
+
rel: "noopener noreferrer",
|
|
77
|
+
onClick: close,
|
|
78
|
+
children: "Google Calendar"
|
|
79
|
+
}),
|
|
80
|
+
/* @__PURE__ */ jsx("a", {
|
|
81
|
+
className: "er-calendar-action__choice",
|
|
82
|
+
href: calendar.outlookUrl,
|
|
83
|
+
target: "_blank",
|
|
84
|
+
rel: "noopener noreferrer",
|
|
85
|
+
onClick: close,
|
|
86
|
+
children: "Outlook.com"
|
|
87
|
+
}),
|
|
88
|
+
/* @__PURE__ */ jsx("button", {
|
|
89
|
+
type: "button",
|
|
90
|
+
className: "er-calendar-action__choice",
|
|
91
|
+
onClick: () => {
|
|
92
|
+
download(calendar);
|
|
93
|
+
},
|
|
94
|
+
children: "Apple Calendar or other (.ics file)"
|
|
95
|
+
})
|
|
96
|
+
]
|
|
97
|
+
}) : null] }), downloadFailed ? /* @__PURE__ */ jsx("p", {
|
|
98
|
+
role: "alert",
|
|
99
|
+
className: "er-calendar-action__error",
|
|
100
|
+
children: "We couldn't create the calendar file. Please try again."
|
|
101
|
+
}) : null]
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
export { downloadCalendar as n, CalendarAction as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { Sn as formatEventPrice } from "./newsletter-form.interactive-DVt3enLr.mjs";
|
|
3
|
+
import { bn as parseBookingLocalDate, nn as formatDate } from "./src-CmXh3JWs.mjs";
|
|
4
|
+
import { $o as groupEventsByDate, Ao as isEventFull, Bo as eventDateOptions, Qo as formatTime, _o as resolveEventCta, do as eventPlaceName, es as resolveEventTimeZone, po as formatEventLocation, vo as resolveEventPageLink, wo as formatEventRemainingPlaces } from "./wizardSteps-B952ify5.mjs";
|
|
5
|
+
import { i as listLookSlot, n as listItemPresentation } from "./noop-jesvJXEE.mjs";
|
|
6
|
+
import { n as ThemedButton, r as ThemedButtonLink } from "./ThemedButton-PFOhXktM.mjs";
|
|
7
7
|
import { d as formatDateKey, v as isToday } from "./src-uwCpbHXG.mjs";
|
|
8
|
-
import {
|
|
8
|
+
import { l as eventDisplayTitle, m as formatEventTeacherLine, r as EventItem, u as eventDisplayTitleText } from "./EventItem-Bb0ppG2N.mjs";
|
|
9
9
|
import "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
//#region ../core/src/duration.ts
|
|
@@ -81,7 +81,7 @@ function CalendarDayHeaders({ dayNames }) {
|
|
|
81
81
|
//#region ../blocks/src/system/runtime/nodes/events/shared/MonthLookView.tsx
|
|
82
82
|
function MonthEvent({ event, timeZone, locale, presentation }) {
|
|
83
83
|
return /* @__PURE__ */ jsxs("a", {
|
|
84
|
-
...
|
|
84
|
+
...resolveEventPageLink(event),
|
|
85
85
|
...listLookSlot(presentation, "item"),
|
|
86
86
|
children: [
|
|
87
87
|
/* @__PURE__ */ jsx("span", {
|
|
@@ -312,7 +312,7 @@ function AgendaModalCard({ event, showCapacity, calendarTimeZone, onClick }) {
|
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
314
|
function AgendaLinkCard({ event, showCapacity, showVenue, buttonVariant, buttonText, calendarTimeZone }) {
|
|
315
|
-
const eventLinkProps =
|
|
315
|
+
const eventLinkProps = resolveEventPageLink(event);
|
|
316
316
|
const categoryColor = event.eventCategory?.color || "rgb(var(--tb-accent))";
|
|
317
317
|
const timeZone = resolveEventTimeZone(event, calendarTimeZone);
|
|
318
318
|
const teacherLine = formatEventTeacherLine(event);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { x as clsx } from "./ThemedButton-PFOhXktM.mjs";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/shared/components/CheckboxChoice.tsx
|
package/dist/client/{DemoBookingPortalAccess-0Ua44F1j.mjs → DemoBookingPortalAccess-8kwNF9HN.mjs}
RENAMED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { m as ok, p as err } from "./renderableMediaAssetAdmission-BsOWd9lf.mjs";
|
|
3
|
+
import { ao as leavePage, mr as isEmailAddress } from "./wizardSteps-B952ify5.mjs";
|
|
4
|
+
import { t as CUSTOMER_PORTAL_PATH } from "./portalRoutes-ByyVZfVq.mjs";
|
|
5
|
+
import { i as BlockApiError, n as useBlockApi } from "./context-Hi1RuYEM.mjs";
|
|
6
|
+
import { n as ThemedButton } from "./ThemedButton-PFOhXktM.mjs";
|
|
7
|
+
import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-BAL5UIDG.mjs";
|
|
7
8
|
import React, { useCallback, useEffect, useId, useRef, useState } from "react";
|
|
8
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
10
|
//#region ../blocks/src/system/runtime/api/types/discounts.ts
|
|
@@ -22,7 +23,7 @@ function getAutoAppliedDiscountPreview(availability) {
|
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
//#endregion
|
|
25
|
-
//#region ../blocks/src/system/runtime/shared/components/DiscountCodeDisclosure.
|
|
26
|
+
//#region ../blocks/src/system/runtime/shared/components/DiscountCodeDisclosure.classes.ts
|
|
26
27
|
const BLOCK_DISCOUNT_CODE_DISCLOSURE_CLASSES = { "event-registration": {
|
|
27
28
|
root: "er-discount",
|
|
28
29
|
toggle: "er-discount__toggle",
|
|
@@ -52,6 +53,8 @@ function getDiscountCodeDisclosureClasses(surface) {
|
|
|
52
53
|
if (surface === "theme-form") return themeFormClasses;
|
|
53
54
|
return BLOCK_DISCOUNT_CODE_DISCLOSURE_CLASSES[surface];
|
|
54
55
|
}
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region ../blocks/src/system/runtime/shared/components/DiscountCodeDisclosure.tsx
|
|
55
58
|
function DiscountActionButton(props) {
|
|
56
59
|
return props.surface === "theme-form" ? /* @__PURE__ */ jsx(ThemedButton, {
|
|
57
60
|
type: "button",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { f as resolveMonthSelectedDay, i as WeekAgendaView, r as CalendarLoadFailure, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-
|
|
6
|
-
import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-
|
|
7
|
-
import {
|
|
2
|
+
import { Ot as buildEventRuntimeFilters, an as buildEventListWeek, d as buildEventCalendarListingRender, on as eventListWeekDays } from "./newsletter-form.interactive-DVt3enLr.mjs";
|
|
3
|
+
import { g as resolveCalendarReadProfile } from "./src-CmXh3JWs.mjs";
|
|
4
|
+
import { $o as groupEventsByDate, qo as formatEventHourLabel } from "./wizardSteps-B952ify5.mjs";
|
|
5
|
+
import { f as resolveMonthSelectedDay, i as WeekAgendaView, r as CalendarLoadFailure, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-DPUD6wjy.mjs";
|
|
6
|
+
import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-GA-hn1qM.mjs";
|
|
7
|
+
import { n as ThemedButton } from "./ThemedButton-PFOhXktM.mjs";
|
|
8
8
|
import { d as formatDateKey, m as getOrderedDayNames } from "./src-uwCpbHXG.mjs";
|
|
9
|
-
import { u as eventDisplayTitleText } from "./EventItem-
|
|
10
|
-
import { i as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
9
|
+
import { u as eventDisplayTitleText } from "./EventItem-Bb0ppG2N.mjs";
|
|
10
|
+
import { a as CalendarDayCell, c as MonthLookClient, d as useCalendarToday, i as useHydrationReady, l as EventModalProvider, o as useCalendarEvents, r as EventModals, s as useCalendarViewport, t as EventCombinedClient, u as useEventModal } from "./EventCombined.client-C1jEZBN9.mjs";
|
|
11
|
+
import { i as useEventCollectionFilters } from "./useEventPagination-xX8n_Tuu.mjs";
|
|
12
|
+
import { n as EventListingController } from "./EventListing.client-BuH5kKA3.mjs";
|
|
13
13
|
import { useEffect, useMemo, useState } from "react";
|
|
14
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
//#region ../blocks/src/system/runtime/nodes/events/shared/WeekTimetableView.tsx
|
|
@@ -1,19 +1,69 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { a as AgendaEventCard, c as MonthLookView, d as buildMonthDay, f as resolveMonthSelectedDay, i as WeekAgendaView, o as CombinedLookFrame, r as CalendarLoadFailure, s as combinedClassName, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-
|
|
6
|
-
import { n as useBlockApi } from "./context-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { Kt as toError, Ot as buildEventRuntimeFilters, kt as getEventRuntimeFiltersKey, s as eventListingBlockRuntime } from "./newsletter-form.interactive-DVt3enLr.mjs";
|
|
3
|
+
import { Ft as calendarMonthDate, d as calendarQueryKey, f as calendarWindowBounds, h as planCalendarMonthRanges, l as calendarMonthKey, nn as formatDate, p as calendarWindowMonths$1, u as calendarPageResponseError, yn as getLocalScheduleDate } from "./src-CmXh3JWs.mjs";
|
|
4
|
+
import { $o as groupEventsByDate, Bo as eventDateOptions, Lo as buildCalendarViewport, Qo as formatTime, Ro as eventCalendarWeekStart, no as getBlockApiReadStage } from "./wizardSteps-B952ify5.mjs";
|
|
5
|
+
import { a as AgendaEventCard, c as MonthLookView, d as buildMonthDay, f as resolveMonthSelectedDay, i as WeekAgendaView, o as CombinedLookFrame, r as CalendarLoadFailure, s as combinedClassName, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-DPUD6wjy.mjs";
|
|
6
|
+
import { n as useBlockApi } from "./context-Hi1RuYEM.mjs";
|
|
7
|
+
import { i as listLookSlot } from "./noop-jesvJXEE.mjs";
|
|
8
|
+
import { n as ThemedButton, x as clsx } from "./ThemedButton-PFOhXktM.mjs";
|
|
9
9
|
import { _ as isSameCalendarDay, c as addMonths, d as formatDateKey, m as getOrderedDayNames, y as shiftCalendarAnchorDate } from "./src-uwCpbHXG.mjs";
|
|
10
|
-
import { u as eventDisplayTitleText } from "./EventItem-
|
|
10
|
+
import { u as eventDisplayTitleText } from "./EventItem-Bb0ppG2N.mjs";
|
|
11
11
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
12
12
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
13
|
-
import { t as
|
|
14
|
-
import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-BvdcexDC.mjs";
|
|
13
|
+
import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-xX8n_Tuu.mjs";
|
|
15
14
|
import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
16
15
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
//#region ../blocks/src/system/runtime/shared/components/TabBarFragment.tsx
|
|
17
|
+
function clampIndex(idx, len) {
|
|
18
|
+
if (len <= 0) return 0;
|
|
19
|
+
const mod = idx % len;
|
|
20
|
+
return mod < 0 ? mod + len : mod;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* TabBarFragment
|
|
24
|
+
*
|
|
25
|
+
* Shared tablist behavior for blocks. Styling is delegated to passed classNames,
|
|
26
|
+
* so blocks can keep their own look (e.g. customer portal pills vs. event underline tabs).
|
|
27
|
+
*
|
|
28
|
+
* Includes basic keyboard navigation (ArrowLeft/Right, Home/End) and focuses the next tab.
|
|
29
|
+
*/
|
|
30
|
+
function TabBarFragment({ tabs, activeTab, onTabChange, ariaLabel, listAttributes, tabAttributes, className, tabClassName, activeTabClassName }) {
|
|
31
|
+
return /* @__PURE__ */ jsx("div", {
|
|
32
|
+
className,
|
|
33
|
+
...listAttributes,
|
|
34
|
+
role: "tablist",
|
|
35
|
+
"aria-label": ariaLabel,
|
|
36
|
+
children: tabs.map((tab, idx) => {
|
|
37
|
+
const isActive = tab.id === activeTab;
|
|
38
|
+
return /* @__PURE__ */ jsx("button", {
|
|
39
|
+
type: "button",
|
|
40
|
+
...tabAttributes?.(isActive),
|
|
41
|
+
role: "tab",
|
|
42
|
+
"aria-selected": isActive,
|
|
43
|
+
tabIndex: isActive ? 0 : -1,
|
|
44
|
+
className: clsx(tabClassName, isActive && activeTabClassName),
|
|
45
|
+
onClick: () => onTabChange(tab.id),
|
|
46
|
+
onKeyDown: (e) => handleTabKey(e, tabs, idx, onTabChange),
|
|
47
|
+
children: tab.label
|
|
48
|
+
}, tab.id);
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function handleTabKey(e, tabs, idx, onTabChange) {
|
|
53
|
+
if (tabs.length === 0) return;
|
|
54
|
+
if (!(e.currentTarget instanceof HTMLButtonElement)) return;
|
|
55
|
+
const nextIdx = e.key === "ArrowRight" ? clampIndex(idx + 1, tabs.length) : e.key === "ArrowLeft" ? clampIndex(idx - 1, tabs.length) : e.key === "Home" ? 0 : e.key === "End" ? tabs.length - 1 : null;
|
|
56
|
+
if (nextIdx === null) return;
|
|
57
|
+
e.preventDefault();
|
|
58
|
+
const nextId = tabs[nextIdx]?.id;
|
|
59
|
+
if (!nextId) return;
|
|
60
|
+
onTabChange(nextId);
|
|
61
|
+
const tabList = e.currentTarget.closest("[role=\"tablist\"]");
|
|
62
|
+
requestAnimationFrame(() => {
|
|
63
|
+
(tabList?.querySelectorAll("[role=\"tab\"]") ?? null)?.[nextIdx]?.focus();
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
17
67
|
//#region ../blocks/src/system/runtime/hooks/useCalendarToday.ts
|
|
18
68
|
const SEARCH_STEP_MS = 3600 * 1e3;
|
|
19
69
|
const MAX_BOUNDARY_SEARCH_MS = 72 * SEARCH_STEP_MS;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { b as SpinnerNode, n as ThemedButton } from "./ThemedButton-PFOhXktM.mjs";
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region \0rolldown/runtime.js
|