@riverbankcms/sdk 0.168.0 → 0.169.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-CiD_VVGM.d.ts → BlocksIslandsHydrator-DpROiz12.d.ts} +1 -1
- package/dist/_dts/{Page-Bj6VJRS5.d.ts → Page-DHBBDRC_.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-ChpsnwDX.d.ts → SdkPreviewMode-CG7Qib7u.d.ts} +2 -2
- package/dist/_dts/{client-C8mfUxrJ.d.ts → client-MURxFla9.d.ts} +39 -397
- package/dist/_dts/{content-types-_vXZyR4H.d.ts → content-types-ClBGjxBV.d.ts} +2 -2
- package/dist/_dts/{contracts-CJFfrVKU.d.ts → contracts-CHNvzh0y.d.ts} +4 -3
- package/dist/_dts/{footerPageOutline-CMegb23G.d.ts → footerPageOutline-DQM934Fm.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-D9YdAIMh.d.ts → generatePageMetadata-ConZaEqB.d.ts} +2 -2
- package/dist/_dts/{index-BQXaZ7aY.d.ts → index-BaDqRekr.d.ts} +4 -4
- package/dist/_dts/{index-vR3p9Bu-.d.ts → index-CVB5wgbz.d.ts} +2 -2
- package/dist/_dts/{index-Cx2BQlHL.d.ts → index-CiR_oPYT.d.ts} +1 -1
- package/dist/_dts/{index-Bpr-wT5k.d.ts → index-CovKPftP.d.ts} +2 -2
- package/dist/_dts/{index-Dgz6yhsy.d.ts → index-DCw8LO4M.d.ts} +1 -1
- package/dist/_dts/{index-Vh8B9FSa.d.ts → index-DDaX-K2D.d.ts} +1 -1
- package/dist/_dts/{index-C7_Rz8EY.d.ts → index-rfAssXq0.d.ts} +3 -3
- package/dist/_dts/{loadContent-dhWSgLeS.d.ts → loadContent-CRLKVVDP.d.ts} +7 -7
- package/dist/_dts/{request-BrYhNV9Z.d.ts → request-DeVetKBr.d.ts} +1840 -599
- package/dist/_dts/{resolveBlockData-BfSHm8Ms.d.ts → resolveBlockData-C5KYFeig.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-gZJ4i1wN.d.ts → resolvePageContent-D8MZWyNO.d.ts} +2 -2
- 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/index.d.ts +8 -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 +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- 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 +1 -1
- 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 +5 -5
- 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/{types-FOsJ-KYb.d.ts → types-B4MBlP_B.d.ts} +2 -2
- package/dist/_dts/{types-BVFXYtRg.d.ts → types-Fj31kIi2.d.ts} +7 -7
- package/dist/_dts/{types-BB33-Spd.d.ts → types-OwqfS8Gn.d.ts} +3 -3
- package/dist/_dts/{validation-DckTc6TQ.d.ts → validation-B1Fa8o_b.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DcwEaliO.mjs → BlocksIslandsHydrator-qq4Vhs7k.mjs} +16 -16
- package/dist/client/{BookingMailingListNote-Dsugoe-n.mjs → BookingMailingListNote-y3qWjnOo.mjs} +17 -6
- package/dist/client/{BookingQuestionFields-Bhh0cvsl.mjs → BookingQuestionFields-DjLjd0vc.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-CNe3ZjdC.mjs → CalendarNavigationChevron-VM7C2fdh.mjs} +7 -7
- package/dist/client/{DemoBookingPortalAccess-BeiZxEUJ.mjs → DemoBookingPortalAccess-C2QCj_Ta.mjs} +65 -9
- package/dist/client/{EventCalendar.client-BL943-tl.mjs → EventCalendar.client-DDjz7tuX.mjs} +9 -9
- package/dist/client/{EventCombined.client-BFVxECTp.mjs → EventCombined.client-CeYbNsch.mjs} +7 -7
- package/dist/client/{EventItem-BIc4gjiD.mjs → EventItem-B5J0IeF4.mjs} +3 -3
- package/dist/client/{EventListWeekNavigation-a0QEIEf0.mjs → EventListWeekNavigation-eH04D8-V.mjs} +1 -1
- package/dist/client/{EventListing.client-CEFTC3jH.mjs → EventListing.client-slpvrTrM.mjs} +3 -3
- package/dist/client/{EventListing.view-Bt2sBBms.mjs → EventListing.view-BYBaElec.mjs} +5 -5
- package/dist/client/{EventRegistrationPayment-D9YBNb_E.mjs → EventRegistrationPayment-Do7Q0wRG.mjs} +121 -59
- package/dist/client/{LocationMapActions-gqzt5gkW.mjs → LocationMapActions-BFp2uQQQ.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-13JQI7_z.mjs → MapDrawingSvg-DDWfmgpA.mjs} +1 -1
- package/dist/client/{Page-D_M2Vxz3.mjs → Page-Dv9eIOGr.mjs} +20 -15
- package/dist/client/{StepIndicator-CaN8snZ8.mjs → StepIndicator-BZNUd0-v.mjs} +2 -2
- package/dist/client/{accordion-DE7OG--d.mjs → accordion-BCtVxnDZ.mjs} +1 -1
- package/dist/client/{booking-form.client-CS1PPjw7.mjs → booking-form.client-Cr5G-HHO.mjs} +504 -216
- package/dist/client/{bookingForm-DE2CwIU9.mjs → bookingForm-B1Fc62Sl.mjs} +8 -5
- package/dist/client/{bookingRoute-Bqlyu5Vb.mjs → bookingRoute-D6DlxYx6.mjs} +6 -2
- package/dist/client/bookings.mjs +16 -13
- package/dist/client/{carousel-DZyUdnFh.mjs → carousel-DW-HgjvT.mjs} +1 -1
- package/dist/client/{cart-D7HkkNwe.mjs → cart-D1zWe4R7.mjs} +3 -3
- package/dist/client/{cart.client-H4sv2TpD.mjs → cart.client-CIfbTLHS.mjs} +1 -1
- package/dist/client/{checkout-2qVyG-Sh.mjs → checkout-fDCNZ3IT.mjs} +3 -3
- package/dist/client/{checkout.client-DAjrBZ74.mjs → checkout.client-C4l2KjtV.mjs} +1 -1
- package/dist/client/{checkoutUrls-CYj06rX1.mjs → checkoutUrls-cWL6I-Vz.mjs} +3 -2
- package/dist/client/client.mjs +50 -3
- package/dist/client/{context-DXmIbXCK.mjs → context-DQnTyApV.mjs} +24 -2
- package/dist/client/{bookingQuestionValues-BjcyCru5.mjs → creditProducts-CMOmhWm2.mjs} +71 -11
- package/dist/client/{cta-DP_IBnq3.mjs → cta-Bj5WHgcv.mjs} +2 -2
- package/dist/client/{dateFormatting-CwrkFZTr.mjs → dateFormatting-Bv6kjUW3.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-DQXK-Fh6.mjs → demoPortalMagicLink-3uVu3WgG.mjs} +1 -1
- package/dist/client/{wizardSteps-CFulHWnT.mjs → display-CT8KMSpH.mjs} +893 -68
- package/dist/client/{enhanceHeaderSection-DheQj7rg.mjs → enhanceHeaderSection-B27KFGDv.mjs} +3 -2
- package/dist/client/{event-details.client-C5UufcRp.mjs → event-details.client-CL4Lqz2c.mjs} +1 -1
- package/dist/client/{event-registration.client-CMGg63IU.mjs → event-registration.client-Dj3Kyp5X.mjs} +56 -16
- package/dist/client/{eventCalendar-DlD0GCEy.mjs → eventCalendar-DGsdSF8J.mjs} +4 -4
- package/dist/client/{eventCombined-DoSi8p_l.mjs → eventCombined-DFSVDJ3D.mjs} +4 -4
- package/dist/client/{eventDetails-DzuQYgmO.mjs → eventDetails-DzMskXYA.mjs} +2 -2
- package/dist/client/{eventListing-CkiMjl0g.mjs → eventListing-CpFFcAUr.mjs} +4 -4
- package/dist/client/{eventRegistration-CjS3Zpjp.mjs → eventRegistration-BipMUOCw.mjs} +8 -5
- package/dist/client/{form-DgQqm7T2.mjs → form-57k2JQnm.mjs} +3 -3
- package/dist/client/{form.client-BI9Dcsq5.mjs → form.client-CCl6CpRJ.mjs} +4 -4
- package/dist/client/{form.parts-DevF0L_A.mjs → form.parts-BOJ1yDDf.mjs} +1 -1
- package/dist/client/{formatDate-DDyURjoe.mjs → formatDate-BGlhrmhF.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-DYIG6Pwb.mjs → headerSection-q_bEzfhW.mjs} +2 -2
- package/dist/client/{newsletter-form.client-BWp7Y1e1.mjs → newsletter-form.client-CiqKAmPs.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-Dg8s9NwJ.mjs → newsletter-form.parts-x1RzAMNO.mjs} +1 -1
- package/dist/client/{newsletterForm-DnPraMzx.mjs → newsletterForm-Cn7h4zFe.mjs} +3 -3
- package/dist/client/{noop-ByFRHYQ2.mjs → noop-B_f7RqLD.mjs} +111 -2
- package/dist/client/portal/client.mjs +20 -12
- package/dist/client/{product-detail.client-BFAgHrdg.mjs → product-detail.client-rWUvpVvZ.mjs} +1 -1
- package/dist/client/{product-list.client-DVrs_DyY.mjs → product-list.client-J0wDOmKv.mjs} +1 -1
- package/dist/client/{productDetail-D4rvl6Xg.mjs → productDetail-LtCkMrJ0.mjs} +3 -3
- package/dist/client/{productList-B8o5AOMX.mjs → productList-C0MLeh-v.mjs} +3 -3
- package/dist/client/{propsDecoder-hhotPP6P.mjs → propsDecoder-CAmEkJ6Y.mjs} +3 -3
- package/dist/client/{registry.server-Ch3EpupA.mjs → registry.server-Bf2YX_4v.mjs} +22 -19
- package/dist/client/rendering/client.mjs +25 -25
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +4 -4
- package/dist/client/{richText-coerce-C3LabQ1O.mjs → richText-coerce-BTurYEao.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CQGlxId8.mjs → routeIslandApiConfig-UdAlnZGQ.mjs} +1 -1
- package/dist/client/{shop-rRXplPGZ.mjs → shop-Dkn6EasY.mjs} +3 -3
- package/dist/client/{shop-commerce-VDbVaKY-.mjs → shop-commerce-bo0Z6kwf.mjs} +11 -11
- package/dist/client/{shop-commerce-store-DqdgJ8Zw.mjs → shop-commerce-store-Ckxa4_jI.mjs} +1 -1
- package/dist/client/{shop.client-DdwvMvaK.mjs → shop.client-B_GqU6_U.mjs} +109 -30
- package/dist/client/{shop.interactive-C8OvFY06.mjs → shop.interactive-C6L_Ig5F.mjs} +7 -523
- package/dist/client/{shopShared-BeuJiGPU.mjs → shopShared-CO1Y8lFd.mjs} +2 -2
- package/dist/client/src-BozhJ43Z.mjs +3 -0
- package/dist/client/{src-1PJxc8KO.mjs → src-xrjaKaCj.mjs} +6 -8
- package/dist/client/{timetableModel-Cko9LRKy.mjs → timetableModel-D62jfOxZ.mjs} +10 -10
- package/dist/client/{useAvailableSlots-M6QIEiWf.mjs → useAvailableSlots-CStfVmyY.mjs} +3 -3
- package/dist/client/{useDiscountApply-BJSnyO0f.mjs → useDiscountApply-Ca2pHUDu.mjs} +5 -3
- package/dist/client/{useDiscountCodeUi-D3XnOSCi.mjs → useDiscountCodeUi-AEifktGO.mjs} +1 -1
- package/dist/client/{useEventPagination-PhTIoFVX.mjs → useEventPagination-uxnUWI2v.mjs} +6 -6
- package/dist/client/{view-448wvvEY.mjs → view-B6KSxQMO.mjs} +7 -7
- package/dist/client/{view-L_mkgtnk.mjs → view-SVnWic7i.mjs} +2 -3
- package/dist/preview-next/client/{ArrangementLookControls-BpvnOGlN.mjs → ArrangementLookControls-kbdqYkWM.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-C0OtdWu_.mjs → PreviewEditorSidebar-DI_LhsMQ.mjs} +89 -39
- package/dist/preview-next/client/{PreviewEditorUI-Csc5vH5k.mjs → PreviewEditorUI-yyD-ZREP.mjs} +5 -5
- package/dist/preview-next/client/{PreviewShell-BOLH_pm-.mjs → PreviewShell-YauP65Gi.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CKodLReY.mjs → SdkPreviewModeRuntime-Bl7jQMI1.mjs} +8 -7
- package/dist/preview-next/client/{SiteChromeCustomizeButton-BeEZpeKn.mjs → SiteChromeCustomizeButton-CQFRP9aM.mjs} +1057 -316
- package/dist/preview-next/client/{previewAssistantSlot-BBdN5kfY.mjs → previewAssistantSlot-DSR0IdAw.mjs} +417 -56
- package/dist/preview-next/client/{previewChromeSurface-VZtGwPuH.mjs → previewChromeSurface-uSnVzeNs.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-kiZkMcuR.mjs → sdk-runtime-6Q0RVJTQ.mjs} +2 -2
- package/dist/preview-next/client/{src-DY8JCJdE.mjs → src-DzXUmsyK.mjs} +6 -8
- package/dist/preview-next/client/src-LUhVXBEQ.mjs +3 -0
- package/dist/preview-next/client/{useAutosaveStatus-BiIHEeE0.mjs → useAutosaveStatus-Cdx3kAGm.mjs} +1 -1
- package/dist/preview-next/client/{useBlockCustomizeControls-BuFLIpmX.mjs → useBlockCustomizeControls-ZrWdhcB6.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-DlxYgmh_.mjs → useOpenBlockForSetup-CK-GWb9k.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-C0sCvCYL.mjs → route-contract-BU1m9SV3.mjs} +47 -0
- package/dist/server/{Block.shared-Dnhc0Wu5.mjs → Block.shared-4vx7wzxj.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-NAQ_zsFu.mjs → ThemeScopeCore-C3HLgqBF.mjs} +6 -3
- package/dist/server/{bindings-DLoZYUxG.mjs → bindings-TAQbo2P5.mjs} +1 -1
- package/dist/server/{booking-form.reserved-fields-BWRF7509.mjs → booking-form.reserved-fields-Cqp13TKc.mjs} +1 -0
- package/dist/server/{client-Bc8jI8zN.mjs → client-DzCxEl3L.mjs} +48 -1
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{headerVariant-BwR9NV4b.mjs → headerVariant-8O5MvxIU.mjs} +2 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-D61gpqHB.mjs → loadContent-BO1M9Hdf.mjs} +4 -4
- package/dist/server/{loadPage-B4ZYpIcd.mjs → loadPage-BvWzmZcD.mjs} +2 -2
- package/dist/server/next.mjs +6 -6
- package/dist/server/{overrideResolution-CDReKy2P.mjs → overrideResolution-fxuB1zZg.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-ByVTA7-4.mjs → pageRenderPlan-DzduDSqY.mjs} +2 -2
- package/dist/server/{pageRuntimeSupport-Dzz_Dze6.mjs → pageRuntimeSupport-BU8pwTNx.mjs} +2 -2
- package/dist/server/{pageShared-Dk5Ku6hs.mjs → pageShared-CSOJ8p8E.mjs} +24 -16
- package/dist/server/{parseThemeForPersistence-pJPGfMrf.mjs → parseThemeForPersistence-BebSeE17.mjs} +1 -1
- package/dist/server/{prebuild-CW4M0WEZ.mjs → prebuild-C5ZYo7wA.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Bvx0SiIM.mjs → prefetchBlockData-BvbxqeKn.mjs} +2 -2
- package/dist/server/{registry-Bh0Y25zH.mjs → registry-Fv-7D8o2.mjs} +264 -48
- 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 +3 -3
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-CnHHst9r.mjs → resolveBlockData-xPgkvoWS.mjs} +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{validation-D2bHWSxJ.mjs → validation-DddhgNdb.mjs} +4 -4
- package/dist/server/{version-DkM1eAxG.mjs → version-D_W2mt8w.mjs} +1 -1
- package/dist/styles/index.css +6 -3
- package/package.json +1 -1
- package/dist/client/creditProducts-BOWi1QLp.mjs +0 -62
- package/dist/client/src-CdRISvQp.mjs +0 -3
- package/dist/preview-next/client/src-BP8771hw.mjs +0 -3
package/dist/client/{BookingMailingListNote-Dsugoe-n.mjs → BookingMailingListNote-y3qWjnOo.mjs}
RENAMED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { Cn as RichText, Mi as requestSignIn, _n as signInReturnPath, fn as clearSignInReturnDrafts, gn as readSignInReturn, hn as nextSignInReturnExpiry, mn as decideSignInReturn, vn as sweepExpiredSignInReturnDrafts } from "./display-CT8KMSpH.mjs";
|
|
3
|
+
import { h as assertNever } from "./creditProducts-CMOmhWm2.mjs";
|
|
4
|
+
import { c as NavigationHandOffPanel } from "./DemoBookingPortalAccess-C2QCj_Ta.mjs";
|
|
5
|
+
import { i as BlockApiError, n as useBlockApi, r as useBlockApiOptional } from "./context-DQnTyApV.mjs";
|
|
5
6
|
import { r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
6
|
-
import { a as DemoPortalSignInLink, t as BookingQuestionFields } from "./BookingQuestionFields-
|
|
7
|
+
import { a as DemoPortalSignInLink, t as BookingQuestionFields } from "./BookingQuestionFields-DjLjd0vc.mjs";
|
|
7
8
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
8
|
-
import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-
|
|
9
|
+
import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-3uVu3WgG.mjs";
|
|
9
10
|
import { n as getBookingMailingListNoteCopy } from "./mailingListSignupCopy-CX4sDozG.mjs";
|
|
10
11
|
import * as React$1 from "react";
|
|
11
12
|
import { useCallback, useEffect, useId, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
@@ -891,7 +892,17 @@ function AlreadyAnswered(input) {
|
|
|
891
892
|
}
|
|
892
893
|
function SignInNotice(props) {
|
|
893
894
|
const [open, setOpen] = React$1.useState(false);
|
|
895
|
+
const [handOff, setHandOff] = React$1.useState(null);
|
|
896
|
+
const api = useBlockApiOptional();
|
|
897
|
+
const signIn = () => {
|
|
898
|
+
const outcome = requestSignIn(window.location.href, () => setOpen(true), api?.config.pageNavigation);
|
|
899
|
+
if (outcome.kind === "handOff") setHandOff(outcome);
|
|
900
|
+
};
|
|
894
901
|
const titleId = `${React$1.useId()}-sign-in-title`;
|
|
902
|
+
if (handOff) return /* @__PURE__ */ jsx(NavigationHandOffPanel, {
|
|
903
|
+
handOff,
|
|
904
|
+
onBack: () => setHandOff(null)
|
|
905
|
+
});
|
|
895
906
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("p", {
|
|
896
907
|
className: "rb-bq-note",
|
|
897
908
|
children: [
|
|
@@ -900,7 +911,7 @@ function SignInNotice(props) {
|
|
|
900
911
|
/* @__PURE__ */ jsx("button", {
|
|
901
912
|
type: "button",
|
|
902
913
|
className: "rb-bq-link",
|
|
903
|
-
onClick:
|
|
914
|
+
onClick: signIn,
|
|
904
915
|
children: "Sign in"
|
|
905
916
|
}),
|
|
906
917
|
" ",
|
package/dist/client/{BookingQuestionFields-Bhh0cvsl.mjs → BookingQuestionFields-DjLjd0vc.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { tn as toUtcIsoDateTimeString } from "./noop-B_f7RqLD.mjs";
|
|
3
|
+
import { l as getInitialFieldValue } from "./creditProducts-CMOmhWm2.mjs";
|
|
4
|
+
import { i as BlockApiError } from "./context-DQnTyApV.mjs";
|
|
5
5
|
import { i as ThemedButtonLink } from "./ThemedButton-BdnEwA38.mjs";
|
|
6
6
|
import { t as CheckboxChoice } from "./CheckboxChoice-W_uiRgDK.mjs";
|
|
7
7
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { Gt as formatEventPrice } from "./shop.interactive-C6L_Ig5F.mjs";
|
|
3
|
+
import { Gi as listLookSlot, Jn as formatTime, Rn as eventDateOptions, Ui as listItemPresentation, Xn as resolveEventTimeZone, Yn as groupEventsByDate, er as formatEventRemainingPlaces, or as isEventFull } from "./display-CT8KMSpH.mjs";
|
|
4
|
+
import { Mt as formatDate, Yt as parseBookingLocalDate } from "./noop-B_f7RqLD.mjs";
|
|
5
5
|
import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
|
|
6
|
-
import { d as formatDateKey, v as isToday } from "./src-
|
|
6
|
+
import { d as formatDateKey, v as isToday } from "./src-xrjaKaCj.mjs";
|
|
7
7
|
import { i as ThemedButtonLink } from "./ThemedButton-BdnEwA38.mjs";
|
|
8
|
-
import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-
|
|
9
|
-
import { o as formatEventLocation } from "./MapDrawingSvg-
|
|
10
|
-
import { l as formatEventTeacherLine, r as EventItem } from "./EventItem-
|
|
8
|
+
import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-Bj5WHgcv.mjs";
|
|
9
|
+
import { o as formatEventLocation } from "./MapDrawingSvg-DDWfmgpA.mjs";
|
|
10
|
+
import { l as formatEventTeacherLine, r as EventItem } from "./EventItem-B5J0IeF4.mjs";
|
|
11
11
|
import "react";
|
|
12
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
//#region ../blocks/src/system/runtime/nodes/events/domain/monthDay.ts
|
package/dist/client/{DemoBookingPortalAccess-BeiZxEUJ.mjs → DemoBookingPortalAccess-C2QCj_Ta.mjs}
RENAMED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { Ai as leavePage } from "./display-CT8KMSpH.mjs";
|
|
3
|
+
import { r as verifiedSiteTermsAcceptanceSchema } from "./noop-B_f7RqLD.mjs";
|
|
4
|
+
import { h as assertNever } from "./creditProducts-CMOmhWm2.mjs";
|
|
5
|
+
import { i as BlockApiError, n as useBlockApi } from "./context-DQnTyApV.mjs";
|
|
5
6
|
import { r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
6
7
|
import { t as CheckboxChoice } from "./CheckboxChoice-W_uiRgDK.mjs";
|
|
7
8
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
8
9
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
9
|
-
import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-
|
|
10
|
-
import React, { useCallback, useEffect, useId, useMemo, useReducer } from "react";
|
|
10
|
+
import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-3uVu3WgG.mjs";
|
|
11
|
+
import React, { useCallback, useEffect, useId, useMemo, useReducer, useState } from "react";
|
|
11
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
13
|
//#region ../core/src/site-terms.ts
|
|
13
14
|
function siteTermsApplies(operation, items) {
|
|
@@ -152,6 +153,52 @@ function getAutoAppliedDiscountPreview(availability) {
|
|
|
152
153
|
}
|
|
153
154
|
}
|
|
154
155
|
//#endregion
|
|
156
|
+
//#region ../blocks/src/system/runtime/shared/navigation/NavigationHandOffPanel.tsx
|
|
157
|
+
function NavigationHandOffPanel(props) {
|
|
158
|
+
const [opened, setOpened] = useState(false);
|
|
159
|
+
const payment = props.purpose === "payment";
|
|
160
|
+
const offering = props.offeringLabel?.toLowerCase() ?? "event";
|
|
161
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
162
|
+
className: "rb-reg-stack er-stack",
|
|
163
|
+
"aria-live": "polite",
|
|
164
|
+
children: [
|
|
165
|
+
/* @__PURE__ */ jsx("h3", {
|
|
166
|
+
className: "er-title",
|
|
167
|
+
children: opened ? "Finish booking in the new tab" : payment ? "Finish paying in a new tab" : "Continue in a new tab"
|
|
168
|
+
}),
|
|
169
|
+
!opened && /* @__PURE__ */ jsx("p", {
|
|
170
|
+
className: "er-text",
|
|
171
|
+
children: handOffDescription(props, offering)
|
|
172
|
+
}),
|
|
173
|
+
opened && /* @__PURE__ */ jsxs("p", { children: ["Tab didn't open? ", /* @__PURE__ */ jsx("a", {
|
|
174
|
+
href: props.handOff.url,
|
|
175
|
+
target: "_blank",
|
|
176
|
+
rel: "noopener",
|
|
177
|
+
children: "Open the booking page"
|
|
178
|
+
})] }),
|
|
179
|
+
!opened && /* @__PURE__ */ jsx("a", {
|
|
180
|
+
className: "rb-button",
|
|
181
|
+
href: props.handOff.url,
|
|
182
|
+
target: "_blank",
|
|
183
|
+
rel: "noopener",
|
|
184
|
+
onClick: () => setOpened(true),
|
|
185
|
+
children: payment ? "Pay in a new tab" : "Continue in a new tab"
|
|
186
|
+
}),
|
|
187
|
+
/* @__PURE__ */ jsx("button", {
|
|
188
|
+
type: "button",
|
|
189
|
+
className: "er-portal-auth-link",
|
|
190
|
+
onClick: props.onBack,
|
|
191
|
+
children: props.purpose === "signIn" ? `Back to pay for this ${offering} instead` : "Back to my booking"
|
|
192
|
+
})
|
|
193
|
+
]
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
function handOffDescription(props, offering) {
|
|
197
|
+
if (props.purpose === "payment") return "We'll open a secure payment page in a new tab. Your booking is confirmed once you've paid.";
|
|
198
|
+
if (props.purpose === "signIn") return `You'll need to sign in to use a pass or membership. We'll open ${props.businessName ?? "the business"}'s booking page in a new tab, with this ${offering} already picked, and you can finish booking there. You'll need to enter your booking details again.`;
|
|
199
|
+
return "Open the booking page in a new tab to continue.";
|
|
200
|
+
}
|
|
201
|
+
//#endregion
|
|
155
202
|
//#region ../blocks/src/system/runtime/shared/siteTermsAgreement.ts
|
|
156
203
|
/** Submission evidence is derived exclusively from the displayed state. */
|
|
157
204
|
function siteTermsSubmission(view) {
|
|
@@ -591,7 +638,11 @@ function BookingConfirmation(props) {
|
|
|
591
638
|
})] });
|
|
592
639
|
}
|
|
593
640
|
function DemoBookingPortalAccess(props) {
|
|
594
|
-
const { state, openPortal } = useDemoBookingPortalAccess(props.email);
|
|
641
|
+
const { state, openPortal, back } = useDemoBookingPortalAccess(props.email);
|
|
642
|
+
if (state.tag === "handOff") return /* @__PURE__ */ jsx(NavigationHandOffPanel, {
|
|
643
|
+
handOff: state.handOff,
|
|
644
|
+
onBack: back
|
|
645
|
+
});
|
|
595
646
|
return /* @__PURE__ */ jsxs("div", {
|
|
596
647
|
className: "rb-mt-4 rb-flex rb-flex-col rb-items-start rb-gap-3",
|
|
597
648
|
"data-testid": "demo-booking-portal-access",
|
|
@@ -650,7 +701,11 @@ function useDemoBookingPortalAccess(email) {
|
|
|
650
701
|
});
|
|
651
702
|
switch (result.kind) {
|
|
652
703
|
case "demo_sign_in":
|
|
653
|
-
|
|
704
|
+
const outcome = leavePage(result.url, api.config.pageNavigation);
|
|
705
|
+
if (outcome.kind === "handOff") setState({
|
|
706
|
+
tag: "handOff",
|
|
707
|
+
handOff: outcome
|
|
708
|
+
});
|
|
654
709
|
return;
|
|
655
710
|
case "refused":
|
|
656
711
|
setState({
|
|
@@ -668,7 +723,8 @@ function useDemoBookingPortalAccess(email) {
|
|
|
668
723
|
};
|
|
669
724
|
return {
|
|
670
725
|
state,
|
|
671
|
-
openPortal
|
|
726
|
+
openPortal,
|
|
727
|
+
back: () => setState({ tag: "idle" })
|
|
672
728
|
};
|
|
673
729
|
}
|
|
674
730
|
function handlePortalAccessError(error) {
|
|
@@ -685,4 +741,4 @@ function handlePortalAccessError(error) {
|
|
|
685
741
|
};
|
|
686
742
|
}
|
|
687
743
|
//#endregion
|
|
688
|
-
export { siteTermsFailureKind as a,
|
|
744
|
+
export { siteTermsFailureKind as a, NavigationHandOffPanel as c, getAutoAppliedDiscountPreview as d, DiscountCodeDisclosure as f, SiteTermsChangedNotice as i, discountAvailabilityAllowsManualEntry as l, DemoBookingPortalAccess as n, useSiteTermsAgreement as o, SiteTermsAgreementField as r, eventSiteTermsSurface as s, BookingConfirmation as t, discountAvailabilityHasDiscounts as u };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-
|
|
6
|
-
import { d as formatDateKey, m as getOrderedDayNames } from "./src-
|
|
2
|
+
import { Dt as buildEventRuntimeFilters, Ht as buildEventListWeek, Ut as eventListWeekDays, ut as buildEventCalendarListingRender } from "./shop.interactive-C6L_Ig5F.mjs";
|
|
3
|
+
import { Gn as formatEventHourLabel, Yn as groupEventsByDate } from "./display-CT8KMSpH.mjs";
|
|
4
|
+
import { h as resolveCalendarReadProfile } from "./noop-B_f7RqLD.mjs";
|
|
5
|
+
import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-D62jfOxZ.mjs";
|
|
6
|
+
import { d as formatDateKey, m as getOrderedDayNames } from "./src-xrjaKaCj.mjs";
|
|
7
7
|
import { r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
8
|
-
import { c as CalendarDayHeaders, n as WeekAgendaView, t as CalendarNavigationChevron, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-
|
|
9
|
-
import { i as useEventCollectionFilters } from "./useEventPagination-
|
|
10
|
-
import { n as EventListingController } from "./EventListing.client-
|
|
11
|
-
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-
|
|
8
|
+
import { c as CalendarDayHeaders, n as WeekAgendaView, t as CalendarNavigationChevron, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-VM7C2fdh.mjs";
|
|
9
|
+
import { i as useEventCollectionFilters } from "./useEventPagination-uxnUWI2v.mjs";
|
|
10
|
+
import { n as EventListingController } from "./EventListing.client-slpvrTrM.mjs";
|
|
11
|
+
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-CeYbNsch.mjs";
|
|
12
12
|
import { useEffect, useMemo, useState } from "react";
|
|
13
13
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
//#region ../blocks/src/system/runtime/nodes/events/shared/WeekTimetableView.tsx
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { n as useBlockApi } from "./context-
|
|
6
|
-
import { _ as isSameCalendarDay, c as addMonths, d as formatDateKey, m as getOrderedDayNames, y as shiftCalendarAnchorDate } from "./src-
|
|
2
|
+
import { Dt as buildEventRuntimeFilters, Et as toError, Ot as getEventRuntimeFiltersKey, _t as eventListingBlockRuntime } from "./shop.interactive-C6L_Ig5F.mjs";
|
|
3
|
+
import { Di as getBlockApiReadStage, Fn as buildCalendarViewport, Gi as listLookSlot, In as eventCalendarWeekStart, Jn as formatTime, Rn as eventDateOptions, Yn as groupEventsByDate } from "./display-CT8KMSpH.mjs";
|
|
4
|
+
import { Jt as getLocalScheduleDate, Mt as formatDate, c as calendarMonthKey, d as calendarWindowBounds, f as calendarWindowMonths$1, ht as calendarMonthDate, l as calendarPageResponseError, m as planCalendarMonthRanges, u as calendarQueryKey } from "./noop-B_f7RqLD.mjs";
|
|
5
|
+
import { n as useBlockApi } from "./context-DQnTyApV.mjs";
|
|
6
|
+
import { _ as isSameCalendarDay, c as addMonths, d as formatDateKey, m as getOrderedDayNames, y as shiftCalendarAnchorDate } from "./src-xrjaKaCj.mjs";
|
|
7
7
|
import { r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
8
|
-
import { a as combinedClassName, c as CalendarDayHeaders, i as CombinedLookFrame, l as buildMonthDay, n as WeekAgendaView, o as MonthLookView, r as AgendaEventCard, t as CalendarNavigationChevron, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-
|
|
8
|
+
import { a as combinedClassName, c as CalendarDayHeaders, i as CombinedLookFrame, l as buildMonthDay, n as WeekAgendaView, o as MonthLookView, r as AgendaEventCard, t as CalendarNavigationChevron, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-VM7C2fdh.mjs";
|
|
9
9
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
10
10
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
11
11
|
import { t as TabBarFragment } from "./TabBarFragment-DkVKtK5a.mjs";
|
|
12
|
-
import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-
|
|
12
|
+
import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-uxnUWI2v.mjs";
|
|
13
13
|
import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
14
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
//#region ../blocks/src/system/runtime/hooks/useCalendarToday.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Ft as CardListLeadDate, Gt as formatEventPrice, It as resolveCardListSchedule, Lt as selectCardListPresentation, Pt as CardListContentPart } from "./shop.interactive-C6L_Ig5F.mjs";
|
|
3
|
+
import { Gi as listLookSlot, Rn as eventDateOptions, Ui as listItemPresentation, Un as formatEventCompactDateRail, er as formatEventRemainingPlaces, ir as getEventAvailabilityStatus, qn as formatEventTimeRange } from "./display-CT8KMSpH.mjs";
|
|
4
4
|
import { I as resolveTokenOrCssColorValue, N as isCssColorLiteral, P as resolveOnColorForThemeToken, nt as getTextColorForBackground } from "./accessibleSurfaces-chpD4C2c.mjs";
|
|
5
5
|
import { i as ThemedButtonLink, m as ClockIcon } from "./ThemedButton-BdnEwA38.mjs";
|
|
6
|
-
import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-
|
|
6
|
+
import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-Bj5WHgcv.mjs";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region ../blocks/src/system/runtime/nodes/events/domain/people.ts
|
package/dist/client/{EventListWeekNavigation-a0QEIEf0.mjs → EventListWeekNavigation-eH04D8-V.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Gi as listLookSlot } from "./display-CT8KMSpH.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventListWeekNavigation.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-
|
|
4
|
-
import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-
|
|
2
|
+
import { Dt as buildEventRuntimeFilters } from "./shop.interactive-C6L_Ig5F.mjs";
|
|
3
|
+
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-eH04D8-V.mjs";
|
|
4
|
+
import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-uxnUWI2v.mjs";
|
|
5
5
|
import { useMemo } from "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region ../blocks/src/system/runtime/nodes/events/EventListing.client.tsx
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Gt as formatEventPrice, Rt as MediaNodeServer, Wt as weekColumnDays } from "./shop.interactive-C6L_Ig5F.mjs";
|
|
3
|
+
import { $a as runtimeBoxBackgroundSchema, Gi as listLookSlot, Kn as formatEventNextDateFact, Qa as boxBackgroundSchema, Rn as eventDateOptions, Ui as listItemPresentation, Un as formatEventCompactDateRail, Vn as formatDate, Za as boxBackgroundOverlaySchema, ao as itemRoleValues, io as cardVariantRoleValues, oo as openCardRoleValue, qn as formatEventTimeRange, to as boxlessCardVariantValue, wn as ImagePresets, zn as eventLocalDateKey } from "./display-CT8KMSpH.mjs";
|
|
4
4
|
import { i as ThemedButtonLink, m as ClockIcon } from "./ThemedButton-BdnEwA38.mjs";
|
|
5
|
-
import { n as resolveEventCta, r as resolveEventLinkProps, t as resolveEventCardBooking } from "./cta-
|
|
6
|
-
import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-
|
|
7
|
-
import { c as MapPinIcon, l as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-
|
|
5
|
+
import { n as resolveEventCta, r as resolveEventLinkProps, t as resolveEventCardBooking } from "./cta-Bj5WHgcv.mjs";
|
|
6
|
+
import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-DDWfmgpA.mjs";
|
|
7
|
+
import { c as MapPinIcon, l as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-B5J0IeF4.mjs";
|
|
8
8
|
import "react";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|