@riverbankcms/sdk 0.161.0 → 0.162.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-Bx4kLiTA.d.ts → BlocksIslandsHydrator-PZUoA872.d.ts} +1 -1
- package/dist/_dts/{Page-Dm7_P13o.d.ts → Page-CdQS6C7i.d.ts} +8 -8
- package/dist/_dts/{SdkPreviewMode-D7HdWWwF.d.ts → SdkPreviewMode-CNGO-5f1.d.ts} +58 -91
- package/dist/_dts/{client-Ep0jI9eE.d.ts → client-DGa53rjL.d.ts} +11 -3
- package/dist/_dts/{content-types-BgAzCrBc.d.ts → content-types-K9R7P-KF.d.ts} +2 -2
- package/dist/_dts/{contracts-DUiOnj9e.d.ts → contracts-CyBaPaIq.d.ts} +13 -4
- package/dist/_dts/{footerPageOutline-B-uXamTG.d.ts → footerPageOutline-B6jmKmon.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BDkZYEcS.d.ts → generatePageMetadata-iemoR3AN.d.ts} +2 -2
- package/dist/_dts/{index-ylivB7Jj.d.ts → index-8CN0Nd-Z.d.ts} +2 -2
- package/dist/_dts/{index-CSsfq6KG.d.ts → index-BtnsA14K.d.ts} +9 -5
- package/dist/_dts/{index-BVkP8f70.d.ts → index-C39F9KaB.d.ts} +13 -2
- package/dist/_dts/{index-KPrWM0KF.d.ts → index-DEu85xBt.d.ts} +1 -1
- package/dist/_dts/{schema-BHu0PYWl.d.ts → index-DI2yaSPY.d.ts} +4099 -3343
- package/dist/_dts/{types-BR1Yboa9.d.ts → index-Dbd0Sn0G.d.ts} +3300 -1691
- package/dist/_dts/{index-CF6Cjs7b.d.ts → index-Du1IRglc.d.ts} +2 -2
- package/dist/_dts/{index-D_8uz4OP.d.ts → index-Jlcq6w69.d.ts} +3 -3
- package/dist/_dts/{index-DvKQA6AZ.d.ts → index-Wm62sXf2.d.ts} +4 -4
- package/dist/_dts/{loadContent-DTjKOO-T.d.ts → loadContent-BPfAAZDW.d.ts} +10 -7
- package/dist/_dts/{resolvePageContent-C1vA5c5w.d.ts → resolvePageContent-DWbrtKf8.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 +6 -6
- 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/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/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/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-ZGUiHpDE.d.ts → types-CVv2H4AT.d.ts} +7 -7
- package/dist/_dts/{types-D02ngcUH.d.ts → types-CfNG5koF.d.ts} +2 -2
- package/dist/_dts/{types-CJXTCF_F.d.ts → types-ClZ-BQL_.d.ts} +3 -3
- package/dist/_dts/{validation-BaV565gb.d.ts → validation-BJ6Lf_Dr.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DTExCJsb.mjs → BlocksIslandsHydrator-COqlgWYU.mjs} +20 -19
- package/dist/client/{BookingMailingListNote-BDpxmn1p.mjs → BookingMailingListNote-CFYPDEHH.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-PeCiL82X.mjs → CalendarNavigationChevron-COBVxgHb.mjs} +6 -6
- package/dist/client/{CheckboxChoice-DWexRLf6.mjs → CheckboxChoice-C7X9dJ8A.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-3zmIqakW.mjs → DemoBookingPortalAccess-CvT0E9AR.mjs} +26 -10
- package/dist/client/{DemoPortalSignInLink-GHi-8BW5.mjs → DemoPortalSignInLink-EBOBN5dT.mjs} +1 -1
- package/dist/client/{EventCalendar.client-BxQLY5cX.mjs → EventCalendar.client-U6pKcntV.mjs} +16 -17
- package/dist/client/{EventCombined.client-B5bmQ03b.mjs → EventCombined.client-CNzwEHws.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-CgMZ9TeU.mjs → EventEmbeddedCheckoutStep-B9yAWV_k.mjs} +1 -1
- package/dist/client/{EventItem-BEx-qiDE.mjs → EventItem-M5rpaHxi.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-CyH5tA6Y.mjs → EventListWeekNavigation-D4ieBLDY.mjs} +1 -1
- package/dist/client/{EventListing.client-D3uySdGP.mjs → EventListing.client-B8F40Rmn.mjs} +3 -3
- package/dist/client/{EventListing.view-9RFrBejr.mjs → EventListing.view-k4lhuCn5.mjs} +14 -21
- package/dist/client/{EventRegistrationPayment-CG2tQx8K.mjs → EventRegistrationPayment-C3g8_Hqb.mjs} +10 -10
- package/dist/client/LocationMapActions-CAjt7qVo.mjs +62 -0
- package/dist/client/{LocationMapActions-Wsr83Q7q.mjs → MapDrawingSvg-_aIK2ojv.mjs} +2 -70
- package/dist/client/{Page-Bf2nPACI.mjs → Page-DJBIQBOw.mjs} +1762 -254
- package/dist/client/{StepIndicator-CZweb1vs.mjs → StepIndicator-CFacB1z6.mjs} +2 -2
- package/dist/client/{TabBarFragment-Bkgz67gt.mjs → TabBarFragment-BLsfQskO.mjs} +1 -1
- package/dist/client/{ThemedButton-CnyL3s1A.mjs → ThemedButton-BWsDgjMC.mjs} +1 -1
- package/dist/client/{accordion-TcimLLRQ.mjs → accordion-CtO2XF7M.mjs} +1 -1
- package/dist/client/{booking-form.client-q-RpJ4aF.mjs → booking-form.client-RICCQ0h2.mjs} +137 -60
- package/dist/client/{bookingForm-DjGfk3Wj.mjs → bookingForm-SvjLPx8i.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-CGAk6j0m.mjs → carousel-BR-zCD3O.mjs} +2 -2
- package/dist/client/{carousel.client-ArlGmYWV.mjs → carousel.client-CEWtoZd3.mjs} +1 -1
- package/dist/client/{cart-D_h3rAZ2.mjs → cart-C6YpKbZZ.mjs} +3 -3
- package/dist/client/{cart.client-DHOxZbJ7.mjs → cart.client-dC938WrX.mjs} +1 -1
- package/dist/client/{checkout-tC-3CzuM.mjs → checkout-Dy9RlREI.mjs} +3 -3
- package/dist/client/{checkout.client-DsBb2Pkm.mjs → checkout.client-CefG0d2F.mjs} +1 -1
- package/dist/client/client.mjs +34 -69
- package/dist/client/{context-9ZfMb6GA.mjs → context-BFwxgZpB.mjs} +28 -1
- package/dist/client/{cta-D-ZqL7-e.mjs → cta-DtA42Xio.mjs} +1 -1
- package/dist/client/{dateFormatting-BCwLqYpW.mjs → dateFormatting-yP1B7F0O.mjs} +39 -2
- package/dist/client/{demoPortalMagicLink-BxkSS9fx.mjs → demoPortalMagicLink-WOiT5Ryi.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-xg6to91E.mjs → enhanceHeaderSection-Dh8c_Lq-.mjs} +3 -3
- package/dist/client/{event-details.client-C670TgRd.mjs → event-details.client-BFgsLqTj.mjs} +2 -1
- package/dist/client/{event-registration.client-C6GApWTB.mjs → event-registration.client-BaXZ1-Ky.mjs} +13 -13
- package/dist/client/{eventCalendar-CWc0dg9i.mjs → eventCalendar-COLwF80U.mjs} +4 -4
- package/dist/client/{eventCombined-D4DbOrvQ.mjs → eventCombined-D3Ltwu03.mjs} +4 -4
- package/dist/client/{eventDetails-C2DfmbC0.mjs → eventDetails-CBrkimXu.mjs} +2 -2
- package/dist/client/{eventListing-C_yXmHyz.mjs → eventListing-CedKVA1S.mjs} +4 -4
- package/dist/client/{eventRegistration-DJuaCB-O.mjs → eventRegistration-DkQQfR1b.mjs} +4 -4
- package/dist/client/{form-QZhtdFHA.mjs → form-XFy9uXSJ.mjs} +3 -3
- package/dist/client/{form.client-CgvPACwG.mjs → form.client-B0iancFK.mjs} +4 -4
- package/dist/client/{form.parts-2uI0-5N-.mjs → form.parts-DMbolu9Y.mjs} +3 -3
- package/dist/client/{formatDate-Danr0Nk4.mjs → formatDate-Jm5MQOCA.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-DJdlLdvZ.mjs → headerSection-WjlECjtV.mjs} +2 -2
- package/dist/client/{mediaAssets-BvjcAZpS.mjs → mediaAssets-BkoW_PEn.mjs} +1 -1
- package/dist/client/mediaContext-CNzWmoA4.mjs +136 -0
- package/dist/client/{newsletter-form.client-Cbepz2KU.mjs → newsletter-form.client-D-XwJTjN.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DN8oMCQ0.mjs → newsletter-form.parts-H92f30y0.mjs} +2 -2
- package/dist/client/{newsletterForm-wjLtW-wq.mjs → newsletterForm-DMuxzu6I.mjs} +3 -3
- package/dist/client/{noop-B7H6gCbj.mjs → noop-B3RNPVrt.mjs} +19 -3
- package/dist/client/portal/client.mjs +1116 -85
- package/dist/client/{product-detail.client-CYTR165c.mjs → product-detail.client-B3HuuykE.mjs} +1 -1
- package/dist/client/{product-list.client-B4vTvag8.mjs → product-list.client-CzsDrHQO.mjs} +1 -1
- package/dist/client/{productDetail-k8LEMSWn.mjs → productDetail-CbBUVWgd.mjs} +3 -3
- package/dist/client/{productList-DEo8Bqoe.mjs → productList-vqOKH2mh.mjs} +3 -3
- package/dist/client/{propsDecoder-G0j0HXBO.mjs → propsDecoder-CkSUep5a.mjs} +4 -3
- package/dist/client/{registry.server-BTmSXE3D.mjs → registry.server-cZ24QwtW.mjs} +272 -68
- package/dist/client/rendering/client.mjs +27 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +10 -7
- package/dist/client/{richText-coerce-B19taoH6.mjs → richText-coerce-DDcCKvBJ.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-Chu5BHra.mjs → routeIslandApiConfig-DYBioANh.mjs} +1 -1
- package/dist/client/{schema-C-m8XHuW.mjs → schema-DNHLlze-.mjs} +4575 -4311
- package/dist/client/{shop-RGWa43H7.mjs → shop-CF0dhnfH.mjs} +3 -3
- package/dist/client/{shop-commerce-TJYCBO_H.mjs → shop-commerce-DQznNBEo.mjs} +11 -11
- package/dist/client/{shop-commerce-store-CjCcUB_o.mjs → shop-commerce-store-Ba8zPlIg.mjs} +1 -1
- package/dist/client/{shop.client-tsKfZw1W.mjs → shop.client-DqfYoqWH.mjs} +12 -12
- package/dist/client/{shop.interactive-CVqLAU53.mjs → shop.interactive-CreQ0I7i.mjs} +38 -31
- package/dist/client/{shopShared-C3lHMz_R.mjs → shopShared-D-yh-P7g.mjs} +2 -2
- package/dist/client/{mediaContext-jPeJ2PmJ.mjs → site-styles-B9HgmY07.mjs} +1329 -511
- package/dist/client/{timetableModel-V2ifvGGy.mjs → timetableModel-DCdVErTJ.mjs} +10 -9
- package/dist/client/{useAvailableSlots-D1X69-pN.mjs → useAvailableSlots-Cvgdp2DH.mjs} +8 -11
- package/dist/client/{useBookingNowIso-Ch30jino.mjs → useBookingNowIso-DrTnGNzD.mjs} +1 -1
- package/dist/client/{useDiscountApply-Bwzr1RjV.mjs → useDiscountApply-CULjnXGl.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-BimJbFC7.mjs → useDiscountCodeUi-Gn_m7e0o.mjs} +1 -1
- package/dist/client/{useEventPagination-CLAS0upd.mjs → useEventPagination-CsysCF22.mjs} +6 -6
- package/dist/client/{view-Dj_FZHmg.mjs → view-BpBjo9Te.mjs} +64 -55
- package/dist/client/{view-BUh4LnLS.mjs → view-DMyTchi7.mjs} +4 -4
- package/dist/client/{wizardSteps-BkZc-hKH.mjs → wizardSteps-BO2OmMO9.mjs} +59 -53
- package/dist/preview-next/before-render.mjs +3 -3
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CwerMfzn.mjs → EventEmbeddedCheckoutStep-DLsSmZbO.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-Dvq-RW9-.mjs → PreviewEditorSidebar-ChrW9VEo.mjs} +164 -1042
- package/dist/preview-next/client/{PreviewEditorUI-BdFjS39R.mjs → PreviewEditorUI-VaHvYtrA.mjs} +9 -190
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CjkGh1IG.mjs → SdkPreviewModeRuntime-Bz7jR6nl.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BEfHln1E.mjs → SdkPreviewModeRuntime-DWwktlWs.mjs} +220 -130
- package/dist/preview-next/client/{ThemedButton-b14Bv03E.mjs → ThemedButton-CHKOWXxl.mjs} +608 -333
- package/dist/preview-next/client/{SiteChromeCustomizeContext-CDbxk_qZ.mjs → previewAuthStore-C0VUwEHz.mjs} +158752 -162808
- package/dist/preview-next/client/{previewChromeSurface-Dd1_mNIg.mjs → previewChromeSurface-Dhyx2YrS.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-B-CXyGVb.mjs → sdk-runtime-C2GWOCyj.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-DHyzUpv4.mjs +12833 -0
- package/dist/preview-next/client/{spinner-CGxS8Ns-.mjs → spinner-BeR2S8oG.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +2 -2
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{refresh-contract-CvmNqZ1Q.mjs → refresh-contract-uQ6BXgLJ.mjs} +5 -0
- package/dist/preview-next/{route-contract-hLg-yjQN.mjs → route-contract-CkrFDMrl.mjs} +394 -200
- package/dist/server/{Block.shared-CeTd2saO.mjs → Block.shared-DxvNGDig.mjs} +4 -4
- package/dist/server/{bindings-C5YpKuKt.mjs → bindings-BuhKvYkE.mjs} +2 -2
- package/dist/server/{client-Cv26lZQ4.mjs → client-BobW6DOz.mjs} +34 -69
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{effectiveNavLinkStyle-CGvGr3yD.mjs → effectiveNavLinkStyle-B-MKSt0p.mjs} +1127 -144
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-C8a0b-cC.mjs → loadContent-CCG_3mbY.mjs} +7 -4
- package/dist/server/loadPage-Bk9HDh9K.mjs +2 -0
- package/dist/server/{loadPage-BW7dklu3.mjs → loadPage-jntGoMrf.mjs} +2 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-tIuqmJB3.mjs → overrideResolution-BBOlgn4Z.mjs} +1 -1
- package/dist/server/{overrides-D1fiPOKF.mjs → overrides-DByQwIyW.mjs} +264 -168
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild--fO0E2tr.mjs → prebuild-DrwcTk2t.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CqJnokWJ.mjs → prefetchBlockData-LfgxSJYE.mjs} +31 -10
- package/dist/server/{publicProducts-CvvZ4JIe.mjs → publicProducts-8A3T5v4M.mjs} +647 -166
- package/dist/server/{registry-BVfCqaCq.mjs → registry-Digv02oV.mjs} +308 -36
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-DPNvhXEz.mjs → resolveBlockData-C23t8-77.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-CD4peO7m.mjs → schema-BiqpDRwB.mjs} +2813 -2549
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-H-EvTJiW.mjs → site-styles-DrkprQPL.mjs} +81 -113
- package/dist/server/{siteChromeOverlayClearance-DNC2k1U0.mjs → siteChromeOverlayClearance-BmKKkkbh.mjs} +2 -2
- package/dist/server/{src-ILxc6pid.mjs → src-08GY1njw.mjs} +902 -44
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-BNHIXiUj.mjs → themeAdmission-CSd_Vusz.mjs} +36 -29
- package/dist/server/{validation-B1ieVemg.mjs → validation-DdUTkBOZ.mjs} +2 -2
- package/dist/server/{version-BQK44wFg.mjs → version-DdIOqIDe.mjs} +1 -1
- package/dist/styles/index.css +872 -41
- package/package.json +1 -1
- package/dist/_dts/index-BQDBQvdu.d.ts +0 -13
- package/dist/preview-next/client/siteStyleAccess-Kqk0j0dE.mjs +0 -5812
- package/dist/server/loadPage--DXBwI8V.mjs +0 -2
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { d as formatDateKey, f as getDayOfWeek, i as buildTimetableModel$1, v as isToday } from "./src-1PJxc8KO.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { C as clsx, i as ThemedButtonLink, n as ThemedAuthoredButton, r as ThemedButton } from "./ThemedButton-
|
|
3
|
+
import { cn as textColorStyle, j as parseThemeButtonVariantId } from "./schema-DNHLlze-.mjs";
|
|
4
|
+
import { C as clsx, i as ThemedButtonLink, n as ThemedAuthoredButton, r as ThemedButton } from "./ThemedButton-BWsDgjMC.mjs";
|
|
5
5
|
import { c as assertNever } from "./src-VIsPY-kw.mjs";
|
|
6
|
-
import { An as isEventFull, Kt as RichText, Mr as listItemPresentation, On as getEventAvailabilityStatus, Pr as listLookSlot, _n as formatEventTimeRange, bn as resolveEventTimeZone, cn as eventDateOptions, fn as formatEventClockLabel, vn as formatTime, wn as formatEventRemainingPlaces, xr as resolveDateRuntimeContext, yn as groupEventsByDate } from "./wizardSteps-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { n as resolveEventLinkProps } from "./cta-
|
|
10
|
-
import { a as buildMonthDay, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-
|
|
11
|
-
import { i as formatEventTeacherLine, r as EventItem } from "./EventItem-
|
|
12
|
-
import { t as
|
|
6
|
+
import { An as isEventFull, Kt as RichText, Mr as listItemPresentation, On as getEventAvailabilityStatus, Pr as listLookSlot, _n as formatEventTimeRange, bn as resolveEventTimeZone, cn as eventDateOptions, fn as formatEventClockLabel, vn as formatTime, wn as formatEventRemainingPlaces, xr as resolveDateRuntimeContext, yn as groupEventsByDate } from "./wizardSteps-BO2OmMO9.mjs";
|
|
7
|
+
import { Dt as parseLocalScheduleTime, Et as parseBookingLocalDate, Mt as toScheduledBookingDateTime, St as formatBookingCompactEnglishTime, ut as formatDate } from "./noop-B3RNPVrt.mjs";
|
|
8
|
+
import { t as LocationMapActions } from "./LocationMapActions-CAjt7qVo.mjs";
|
|
9
|
+
import { n as resolveEventLinkProps } from "./cta-DtA42Xio.mjs";
|
|
10
|
+
import { a as buildMonthDay, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-COBVxgHb.mjs";
|
|
11
|
+
import { i as formatEventTeacherLine, r as EventItem } from "./EventItem-M5rpaHxi.mjs";
|
|
12
|
+
import { r as readableMapDrawing, t as AdmittedMapDrawingSvg } from "./MapDrawingSvg-_aIK2ojv.mjs";
|
|
13
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-DDcCKvBJ.mjs";
|
|
13
14
|
import "react";
|
|
14
15
|
import { z } from "zod";
|
|
15
16
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { mr as unsafeAsAppointmentResourceId } from "./schema-DNHLlze-.mjs";
|
|
3
3
|
import { t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { n as useBlockApi } from "./context-
|
|
4
|
+
import { At as resolveBookingTimeZoneId, Ct as formatLocalScheduleDate, Et as parseBookingLocalDate, Ot as parseUtcIsoDateTimeString, Tt as getLocalScheduleDate, mt as formatTime$1, ut as formatDate$1, yt as addLocalScheduleDays } from "./noop-B3RNPVrt.mjs";
|
|
5
|
+
import { n as useBlockApi } from "./context-BFwxgZpB.mjs";
|
|
6
6
|
import { useCallback, useEffect, useReducer, useRef } from "react";
|
|
7
7
|
//#region ../blocks/src/utils/date-formatting.ts
|
|
8
8
|
/**
|
|
@@ -275,17 +275,14 @@ function useAvailableDates({ serviceId, resourceId, timezone, initialDays = 30 }
|
|
|
275
275
|
dispatch({ type: "query-cleared" });
|
|
276
276
|
return;
|
|
277
277
|
}
|
|
278
|
-
const
|
|
279
|
-
const
|
|
280
|
-
|
|
281
|
-
month: now.getMonth() + 1,
|
|
282
|
-
day: now.getDate()
|
|
283
|
-
});
|
|
284
|
-
fetchDates(today, formatLocalScheduleDate(addLocalScheduleDays(parseBookingLocalDate(today), initialDays)), false);
|
|
278
|
+
const today = getLocalScheduleDate(/* @__PURE__ */ new Date(), timezone);
|
|
279
|
+
const endDate = formatLocalScheduleDate(addLocalScheduleDays(today, initialDays));
|
|
280
|
+
fetchDates(formatLocalScheduleDate(today), endDate, false);
|
|
285
281
|
}, [
|
|
286
282
|
serviceId,
|
|
287
283
|
fetchDates,
|
|
288
|
-
initialDays
|
|
284
|
+
initialDays,
|
|
285
|
+
timezone
|
|
289
286
|
]);
|
|
290
287
|
useVisibleTabPolling({
|
|
291
288
|
enabled: Boolean(serviceId && loadedRange),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Nt as toUtcIsoDateTimeString } from "./noop-B3RNPVrt.mjs";
|
|
3
3
|
import { useCallback, useEffect, useState } from "react";
|
|
4
4
|
//#region ../blocks/src/system/runtime/hooks/useBookingNowIso.ts
|
|
5
5
|
const ANCHOR_CLOCK = { kind: "anchor" };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Cr as err, wr as ok } from "./schema-DNHLlze-.mjs";
|
|
3
3
|
import { t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
4
|
-
import { c as discountAvailabilityAllowsManualEntry, l as discountAvailabilityHasDiscounts, u as getAutoAppliedDiscountPreview } from "./DemoBookingPortalAccess-
|
|
4
|
+
import { c as discountAvailabilityAllowsManualEntry, l as discountAvailabilityHasDiscounts, u as getAutoAppliedDiscountPreview } from "./DemoBookingPortalAccess-CvT0E9AR.mjs";
|
|
5
5
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
6
6
|
import * as React$1 from "react";
|
|
7
7
|
import { useCallback } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { c as discountAvailabilityAllowsManualEntry, l as discountAvailabilityHasDiscounts, u as getAutoAppliedDiscountPreview } from "./DemoBookingPortalAccess-
|
|
2
|
+
import { c as discountAvailabilityAllowsManualEntry, l as discountAvailabilityHasDiscounts, u as getAutoAppliedDiscountPreview } from "./DemoBookingPortalAccess-CvT0E9AR.mjs";
|
|
3
3
|
import { useEffect, useReducer, useRef } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/shared/components/StateIcon.tsx
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-
|
|
2
|
+
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-BWsDgjMC.mjs";
|
|
3
3
|
import { t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
4
|
-
import { Gt as getBlockApiReadStage, Mr as listItemPresentation, Pr as listLookSlot } from "./wizardSteps-
|
|
5
|
-
import { Ft as
|
|
6
|
-
import { r as EventItem } from "./EventItem-
|
|
7
|
-
import { i as EventCard, n as EmptyState, r as EventCompactRow, t as EventListingFrameView } from "./EventListing.view-
|
|
8
|
-
import { n as useBlockApi } from "./context-
|
|
4
|
+
import { Gt as getBlockApiReadStage, Mr as listItemPresentation, Pr as listLookSlot } from "./wizardSteps-BO2OmMO9.mjs";
|
|
5
|
+
import { Ft as normalizeCsvIds, It as normalizeCsvString, Lt as normalizeOptionalId, Pt as getEventRuntimeFiltersKey } from "./shop.interactive-CreQ0I7i.mjs";
|
|
6
|
+
import { r as EventItem } from "./EventItem-M5rpaHxi.mjs";
|
|
7
|
+
import { i as EventCard, n as EmptyState, r as EventCompactRow, t as EventListingFrameView } from "./EventListing.view-k4lhuCn5.mjs";
|
|
8
|
+
import { n as useBlockApi } from "./context-BFwxgZpB.mjs";
|
|
9
9
|
import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
//#region ../blocks/src/system/runtime/hooks/loadStateError.ts
|
|
@@ -1,15 +1,60 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { U as formatCurrencyAmount } from "./ThemedButton-
|
|
2
|
+
import { U as formatCurrencyAmount } from "./ThemedButton-BWsDgjMC.mjs";
|
|
3
3
|
import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
|
|
4
4
|
import { c as assertNever } from "./src-VIsPY-kw.mjs";
|
|
5
|
-
import { $r as formatBookingPriceDisplay, Br as CANCELLED_SESSION_STATUS, Dr as resolveEventRegistrationScopedEvents, En as formatTotalCapacity, Hr as orderedLiveRunSessions, On as getEventAvailabilityStatus, Pr as listLookSlot, Ur as resolveWholeSeriesBookingPhase, ai as publicEventPricingType, cn as eventDateOptions, mn as formatEventDateParts, ni as publicEventPricingCurrency, pn as formatEventCompactDateRail, ri as publicEventPricingDisplay, ti as isPublicEventPricingOptionDisplayable, wn as formatEventRemainingPlaces } from "./wizardSteps-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { n as resolveEventLinkProps, t as resolveEventCta } from "./cta-
|
|
5
|
+
import { $r as formatBookingPriceDisplay, Br as CANCELLED_SESSION_STATUS, Dr as resolveEventRegistrationScopedEvents, En as formatTotalCapacity, Hr as orderedLiveRunSessions, On as getEventAvailabilityStatus, Pr as listLookSlot, Ur as resolveWholeSeriesBookingPhase, ai as publicEventPricingType, cn as eventDateOptions, mn as formatEventDateParts, ni as publicEventPricingCurrency, pn as formatEventCompactDateRail, ri as publicEventPricingDisplay, ti as isPublicEventPricingOptionDisplayable, wn as formatEventRemainingPlaces } from "./wizardSteps-BO2OmMO9.mjs";
|
|
6
|
+
import { Mt as toScheduledBookingDateTime, Nt as toUtcIsoDateTimeString, Tt as getLocalScheduleDate, dt as formatDateRange, jt as toBookingTimeZone, kt as resolveBookingBusinessTimeZone, pt as formatDateTimeRange, ut as formatDate, wt as getBookingLocalDateKey, xt as compareLocalScheduleDates } from "./noop-B3RNPVrt.mjs";
|
|
7
|
+
import { t as LocationMapActions } from "./LocationMapActions-CAjt7qVo.mjs";
|
|
8
|
+
import { Bt as CardListContentPart, Xt as formatEventPriceAmount, Yt as formatEventPrice, Zt as formatEventPriceDisplay, _t as formatBookingSchedulePresentation } from "./shop.interactive-CreQ0I7i.mjs";
|
|
9
|
+
import { n as resolveEventLinkProps, t as resolveEventCta } from "./cta-DtA42Xio.mjs";
|
|
10
|
+
import { n as MapDrawingSvg } from "./MapDrawingSvg-_aIK2ojv.mjs";
|
|
10
11
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
11
12
|
import "react";
|
|
12
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
//#region ../blocks/src/system/blocks/events/shared/detailsSelection.ts
|
|
15
|
+
function isFutureOrNow(iso, nowIso) {
|
|
16
|
+
const ts = Date.parse(iso);
|
|
17
|
+
const now = Date.parse(nowIso);
|
|
18
|
+
if (!Number.isFinite(ts) || !Number.isFinite(now)) return false;
|
|
19
|
+
return ts >= now;
|
|
20
|
+
}
|
|
21
|
+
const localDateKey = (startsAt, timeZone) => getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
22
|
+
startsAt,
|
|
23
|
+
timeZone
|
|
24
|
+
}));
|
|
25
|
+
function selectRequested(events, requested) {
|
|
26
|
+
if (!requested) return null;
|
|
27
|
+
const byId = events.find((event) => event.occurrenceId === requested.id || event.id === requested.id);
|
|
28
|
+
if (byId) return byId;
|
|
29
|
+
if (!requested.startsAt || !requested.timeZone) return null;
|
|
30
|
+
const requestedDate = localDateKey(requested.startsAt, requested.timeZone);
|
|
31
|
+
return events.find((event) => localDateKey(event.startsAt, event.timeZone) === requestedDate) ?? null;
|
|
32
|
+
}
|
|
33
|
+
function selectNextUpcoming(events, nowIso) {
|
|
34
|
+
return [...events].filter((event) => isFutureOrNow(event.startsAt, nowIso)).sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt))[0] ?? null;
|
|
35
|
+
}
|
|
36
|
+
function selectCompletedWholeSeries(events) {
|
|
37
|
+
if (events.length === 0 || !events.every((event) => event.bookingScope === "whole_series")) return null;
|
|
38
|
+
return [...events].sort((left, right) => Date.parse(right.startsAt) - Date.parse(left.startsAt))[0] ?? null;
|
|
39
|
+
}
|
|
40
|
+
function selectEventDetailsCandidate(events, requested, nowIso) {
|
|
41
|
+
const selected = selectRequested(events, requested);
|
|
42
|
+
if (selected) return {
|
|
43
|
+
event: selected,
|
|
44
|
+
mode: "selected"
|
|
45
|
+
};
|
|
46
|
+
const upcoming = selectNextUpcoming(events, nowIso);
|
|
47
|
+
if (upcoming) return {
|
|
48
|
+
event: upcoming,
|
|
49
|
+
mode: "next"
|
|
50
|
+
};
|
|
51
|
+
const completed = selectCompletedWholeSeries(events);
|
|
52
|
+
return completed ? {
|
|
53
|
+
event: completed,
|
|
54
|
+
mode: "completed"
|
|
55
|
+
} : null;
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
13
58
|
//#region ../blocks/src/system/runtime/nodes/events/shared/DateTimeTile.tsx
|
|
14
59
|
/**
|
|
15
60
|
* Shared tile content for displaying date and time range.
|
|
@@ -91,12 +136,6 @@ function parseLimit(value, fallback) {
|
|
|
91
136
|
const n = typeof value === "string" ? parseInt(value, 10) : typeof value === "number" ? value : NaN;
|
|
92
137
|
return Number.isFinite(n) && n > 0 ? n : fallback;
|
|
93
138
|
}
|
|
94
|
-
function isFutureOrNow(iso, nowIso) {
|
|
95
|
-
const ts = Date.parse(iso);
|
|
96
|
-
const now = Date.parse(nowIso);
|
|
97
|
-
if (!Number.isFinite(ts) || !Number.isFinite(now)) return false;
|
|
98
|
-
return ts >= now;
|
|
99
|
-
}
|
|
100
139
|
function uniqByOccurrenceId(events) {
|
|
101
140
|
const seen = /* @__PURE__ */ new Set();
|
|
102
141
|
const out = [];
|
|
@@ -108,43 +147,6 @@ function uniqByOccurrenceId(events) {
|
|
|
108
147
|
}
|
|
109
148
|
return out;
|
|
110
149
|
}
|
|
111
|
-
function selectFromOccurrenceContext(events, occurrenceContext) {
|
|
112
|
-
if (!occurrenceContext) return null;
|
|
113
|
-
const byId = events.find((event) => event.occurrenceId === occurrenceContext.id || event.id === occurrenceContext.id);
|
|
114
|
-
if (byId) return byId;
|
|
115
|
-
const contextDate = getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
116
|
-
startsAt: occurrenceContext.startsAt,
|
|
117
|
-
timeZone: occurrenceContext.timeZone
|
|
118
|
-
}));
|
|
119
|
-
return events.find((event) => getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
120
|
-
startsAt: event.startsAt,
|
|
121
|
-
timeZone: event.timeZone
|
|
122
|
-
})) === contextDate) ?? null;
|
|
123
|
-
}
|
|
124
|
-
function selectNextUpcoming(events, nowIso) {
|
|
125
|
-
return [...events].filter((event) => isFutureOrNow(event.startsAt, nowIso)).sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt))[0] ?? null;
|
|
126
|
-
}
|
|
127
|
-
function selectCompletedWholeSeries(events) {
|
|
128
|
-
if (events.length === 0 || !events.every((event) => event.bookingScope === "whole_series")) return null;
|
|
129
|
-
return [...events].sort((left, right) => Date.parse(right.startsAt) - Date.parse(left.startsAt))[0] ?? null;
|
|
130
|
-
}
|
|
131
|
-
function selectEventCandidate(events, occurrenceContext, nowIso) {
|
|
132
|
-
const selected = selectFromOccurrenceContext(events, occurrenceContext);
|
|
133
|
-
if (selected) return {
|
|
134
|
-
event: selected,
|
|
135
|
-
mode: "selected"
|
|
136
|
-
};
|
|
137
|
-
const upcoming = selectNextUpcoming(events, nowIso);
|
|
138
|
-
if (upcoming) return {
|
|
139
|
-
event: upcoming,
|
|
140
|
-
mode: "next"
|
|
141
|
-
};
|
|
142
|
-
const completed = selectCompletedWholeSeries(events);
|
|
143
|
-
return completed ? {
|
|
144
|
-
event: completed,
|
|
145
|
-
mode: "completed"
|
|
146
|
-
} : null;
|
|
147
|
-
}
|
|
148
150
|
function isWholeSeriesEvent(event) {
|
|
149
151
|
return event.bookingScope === "whole_series";
|
|
150
152
|
}
|
|
@@ -178,7 +180,7 @@ function selectEventDetails(args) {
|
|
|
178
180
|
}));
|
|
179
181
|
const occurrenceContext = args.occurrenceContext ?? null;
|
|
180
182
|
const otherLimit = parseLimit(args.otherDatesLimit, 5);
|
|
181
|
-
const candidate =
|
|
183
|
+
const candidate = selectEventDetailsCandidate(all, occurrenceContext, args.nowIso);
|
|
182
184
|
const timeZone = toBookingTimeZone(candidate?.event.timeZone ?? all[0]?.timeZone ?? null);
|
|
183
185
|
if (!candidate) return emptySelection(timeZone);
|
|
184
186
|
const { event: selected, mode } = candidate;
|
|
@@ -242,6 +244,10 @@ function resolveEligibility(input, selected) {
|
|
|
242
244
|
applicableMemberships: filterMembershipsForEvent(input.siteMemberships?.memberships ?? null, selected)
|
|
243
245
|
};
|
|
244
246
|
}
|
|
247
|
+
/** The response's one drawing belongs to the selected event only when it is for that event's venue. */
|
|
248
|
+
function resolveSelectedVenueDrawing(venueDrawing, selected) {
|
|
249
|
+
return venueDrawing && selected?.venue?.id === venueDrawing.venueId ? venueDrawing.drawing : null;
|
|
250
|
+
}
|
|
245
251
|
function resolveEventDetailsPresentation(input) {
|
|
246
252
|
const selection = resolveSelection(input);
|
|
247
253
|
const selected = selection.kind === "empty" ? null : selection.selected;
|
|
@@ -255,7 +261,8 @@ function resolveEventDetailsPresentation(input) {
|
|
|
255
261
|
panelHeading: input.panelHeading,
|
|
256
262
|
...resolveDisplaySettings(input),
|
|
257
263
|
...resolveEligibility(input, selected),
|
|
258
|
-
autoApplyDiscount: input.autoApplyDiscount ?? null
|
|
264
|
+
autoApplyDiscount: input.autoApplyDiscount ?? null,
|
|
265
|
+
selectedVenueDrawing: resolveSelectedVenueDrawing(input.venueDrawing, selected)
|
|
259
266
|
};
|
|
260
267
|
}
|
|
261
268
|
//#endregion
|
|
@@ -822,10 +829,10 @@ function acceptedProductNames(props) {
|
|
|
822
829
|
const memberships = props.showAcceptedMemberships !== false ? (props.applicableMemberships ?? []).map(({ name }) => name) : [];
|
|
823
830
|
return [...passes, ...memberships];
|
|
824
831
|
}
|
|
825
|
-
function EventVenueMap({ venue, showMap, mapHeight, mapClassName }) {
|
|
826
|
-
if (!showMap || !venue
|
|
832
|
+
function EventVenueMap({ venue, drawing, showMap, mapHeight, mapClassName }) {
|
|
833
|
+
if (!showMap || !venue || !drawing) return null;
|
|
827
834
|
return /* @__PURE__ */ jsx(MapDrawingSvg, {
|
|
828
|
-
drawing
|
|
835
|
+
drawing,
|
|
829
836
|
label: venue.name,
|
|
830
837
|
className: mapClassName,
|
|
831
838
|
height: mapHeight
|
|
@@ -876,7 +883,8 @@ function SelectedEventDetailsView(props) {
|
|
|
876
883
|
venue,
|
|
877
884
|
showMap,
|
|
878
885
|
mapHeight,
|
|
879
|
-
mapClassName
|
|
886
|
+
mapClassName,
|
|
887
|
+
drawing: props.selectedVenueDrawing
|
|
880
888
|
})]
|
|
881
889
|
}),
|
|
882
890
|
showOtherDates ? /* @__PURE__ */ jsx(OtherEventDates, { selection }) : null
|
|
@@ -899,6 +907,7 @@ function LegacyEventDetailsView(props) {
|
|
|
899
907
|
showDescription: props.showDescription ?? false,
|
|
900
908
|
showCapacity: props.showCapacity ?? false,
|
|
901
909
|
autoApplyDiscount: props.autoApplyDiscount ?? null,
|
|
910
|
+
selectedVenueDrawing: props.selectedVenueDrawing,
|
|
902
911
|
mapHeight: props.mapHeight ?? 200,
|
|
903
912
|
mapClassName: props.mapClassName ?? "event-details-map",
|
|
904
913
|
acceptedItems: acceptedProductNames(props)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as ThemedButton } from "./ThemedButton-
|
|
3
|
-
import { Pr as listLookSlot } from "./wizardSteps-
|
|
4
|
-
import { C as membershipCardListContent, T as passCardListContent, w as membershipClassesLabel } from "./shop.interactive-
|
|
5
|
-
import { r as EventItem, t as CardListCollection } from "./EventItem-
|
|
2
|
+
import { r as ThemedButton } from "./ThemedButton-BWsDgjMC.mjs";
|
|
3
|
+
import { Pr as listLookSlot } from "./wizardSteps-BO2OmMO9.mjs";
|
|
4
|
+
import { C as membershipCardListContent, T as passCardListContent, w as membershipClassesLabel } from "./shop.interactive-CreQ0I7i.mjs";
|
|
5
|
+
import { r as EventItem, t as CardListCollection } from "./EventItem-M5rpaHxi.mjs";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region ../blocks/src/system/runtime/nodes/commerce/shared/view.tsx
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { l as buildCalendarViewport$1, n as calendarLinks, r as groupItemsByDate } from "./src-1PJxc8KO.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { B as getBookingInstalmentPlanIntervalCount, C as clsx, F as resolveAvailableBookingCollectionOptions, I as resolveBookingCollectionOptionFacts, L as getBookingLaterInstalments, M as planFlexibleBalanceCreditFirst, N as isBookingCollectionEquivalentToUpfront, O as checkoutCopy, P as repriceBookingCollectionOptions, U as formatCurrencyAmount, j as planCheckoutPaymentFlow, k as getStripeMinimumChargeRequirement } from "./ThemedButton-
|
|
3
|
+
import { Cr as err, Jt as parseResolvedSurface, Qn as runtimeMediaSchema, Sr as unsafeAsStoragePath, cn as textColorStyle, fn as opaqueSurfaceDeclarations, ir as parseCanonicalMediaIdentifier, lr as parseEventOfferingId, nr as resolveManagedMediaReference, on as mergeStyles, rn as backgroundColorStyle, ur as parseEventSeriesId, vn as PUBLIC_BUTTON_ROLES, vr as unsafeAsMediaAssetId, wr as ok$1, xr as unsafeAsStorageBucketName } from "./schema-DNHLlze-.mjs";
|
|
4
|
+
import { B as getBookingInstalmentPlanIntervalCount, C as clsx, F as resolveAvailableBookingCollectionOptions, I as resolveBookingCollectionOptionFacts, L as getBookingLaterInstalments, M as planFlexibleBalanceCreditFirst, N as isBookingCollectionEquivalentToUpfront, O as checkoutCopy, P as repriceBookingCollectionOptions, U as formatCurrencyAmount, j as planCheckoutPaymentFlow, k as getStripeMinimumChargeRequirement } from "./ThemedButton-BWsDgjMC.mjs";
|
|
5
5
|
import { c as assertNever, t as assertNever$1 } from "./src-VIsPY-kw.mjs";
|
|
6
|
-
import { At as
|
|
7
|
-
import {
|
|
6
|
+
import { At as resolveBookingTimeZoneId, Dt as parseLocalScheduleTime, K as blockBookingConsentSchema, Mt as toScheduledBookingDateTime, Nt as toUtcIsoDateTimeString, Ot as parseUtcIsoDateTimeString, S as eventCalendarListLayoutValues, Tt as getLocalScheduleDate, X as blockBookingPaymentTermsSchema, Y as toBookingRequirementConsentField, _ as eventCalendarDefaultViewValues, _t as inferSiteDateLocale, dt as formatDateRange, ft as formatDateTime, ht as formatTimeRange, jt as toBookingTimeZone, kt as resolveBookingBusinessTimeZone, mt as formatTime$2, n as blockSiteTermsSchema, pt as formatDateTimeRange, ut as formatDate$2, v as eventCalendarDisplayModeValues, vt as resolveBookingDisplayContext, wt as getBookingLocalDateKey, xt as compareLocalScheduleDates } from "./noop-B3RNPVrt.mjs";
|
|
7
|
+
import { l as arrangementSlotNames } from "./site-styles-B9HgmY07.mjs";
|
|
8
|
+
import { a as getSupabaseUrl, i as getSiteId, n as getCurrentResolveImageUrlContext, r as getMediaAssetIndex } from "./mediaContext-CNzWmoA4.mjs";
|
|
8
9
|
import React from "react";
|
|
9
10
|
import { z } from "zod";
|
|
10
11
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
@@ -1457,62 +1458,67 @@ function getBookingRedirectStateFromLocation(location) {
|
|
|
1457
1458
|
}
|
|
1458
1459
|
function resolveAppointmentCheckoutVerificationState(input) {
|
|
1459
1460
|
if (!input.config) return { tag: "idle" };
|
|
1461
|
+
const sessionId = input.config.sessionId;
|
|
1462
|
+
if (input.pollingStatus === "completed") {
|
|
1463
|
+
const confirmed = confirmedAppointmentCheckout(sessionId, input.result);
|
|
1464
|
+
if (confirmed) return confirmed;
|
|
1465
|
+
}
|
|
1460
1466
|
const appointmentId = input.result?.appointmentId ?? null;
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
resourceName: input.result?.resourceName ?? null,
|
|
1468
|
-
paymentStatus
|
|
1469
|
-
};
|
|
1470
|
-
if (input.pollingStatus === "timeout") return {
|
|
1471
|
-
tag: "timeout",
|
|
1472
|
-
sessionId: input.config.sessionId,
|
|
1473
|
-
appointmentId,
|
|
1474
|
-
message: checkoutCopy.checkoutStillConfirming
|
|
1475
|
-
};
|
|
1476
|
-
if (input.pollingStatus === "failed") {
|
|
1477
|
-
if (paymentStatus === "refunded") return {
|
|
1478
|
-
tag: "failed",
|
|
1479
|
-
sessionId: input.config.sessionId,
|
|
1480
|
-
reason: "payment_refunded",
|
|
1481
|
-
message: "Payment was refunded. Please contact support.",
|
|
1482
|
-
appointmentId
|
|
1483
|
-
};
|
|
1484
|
-
if (paymentStatus === "cancelled") return {
|
|
1485
|
-
tag: "failed",
|
|
1486
|
-
sessionId: input.config.sessionId,
|
|
1487
|
-
reason: "checkout_cancelled",
|
|
1488
|
-
message: "Checkout was cancelled before the appointment could be confirmed.",
|
|
1489
|
-
appointmentId
|
|
1490
|
-
};
|
|
1491
|
-
if (appointmentStatus === "cancelled") return {
|
|
1492
|
-
tag: "failed",
|
|
1493
|
-
sessionId: input.config.sessionId,
|
|
1494
|
-
reason: "appointment_cancelled",
|
|
1495
|
-
message: "The appointment was cancelled before it could be confirmed.",
|
|
1496
|
-
appointmentId
|
|
1467
|
+
switch (input.pollingStatus) {
|
|
1468
|
+
case "timeout": return {
|
|
1469
|
+
tag: "timeout",
|
|
1470
|
+
sessionId,
|
|
1471
|
+
appointmentId,
|
|
1472
|
+
message: checkoutCopy.checkoutStillConfirming
|
|
1497
1473
|
};
|
|
1498
|
-
|
|
1474
|
+
case "failed": return {
|
|
1499
1475
|
tag: "failed",
|
|
1500
|
-
sessionId
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
appointmentId
|
|
1476
|
+
sessionId,
|
|
1477
|
+
appointmentId,
|
|
1478
|
+
...appointmentCheckoutFailure(input.result, input.error)
|
|
1504
1479
|
};
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
appointmentId
|
|
1480
|
+
case "completed":
|
|
1481
|
+
case "idle":
|
|
1482
|
+
case "polling": return {
|
|
1483
|
+
tag: "verifying",
|
|
1484
|
+
sessionId
|
|
1511
1485
|
};
|
|
1512
1486
|
}
|
|
1487
|
+
}
|
|
1488
|
+
/** Verified payment carries its booked facts instead of asking the view to rebuild them. */
|
|
1489
|
+
function confirmedAppointmentCheckout(sessionId, result) {
|
|
1490
|
+
if (!result || !result.appointmentId) return null;
|
|
1491
|
+
if (result.paymentStatus !== "completed" && result.paymentStatus !== "not_required") return null;
|
|
1492
|
+
return {
|
|
1493
|
+
tag: "confirmed",
|
|
1494
|
+
sessionId,
|
|
1495
|
+
appointmentId: result.appointmentId,
|
|
1496
|
+
appointment: result.appointment,
|
|
1497
|
+
resourceName: result.resourceName,
|
|
1498
|
+
paymentStatus: result.paymentStatus
|
|
1499
|
+
};
|
|
1500
|
+
}
|
|
1501
|
+
/** Failure priority is shared by every polling failure, including missing provider evidence. */
|
|
1502
|
+
function appointmentCheckoutFailure(result, error) {
|
|
1503
|
+
if (result?.paymentStatus === "refunded") return {
|
|
1504
|
+
reason: "payment_refunded",
|
|
1505
|
+
message: "Payment was refunded. Please contact support."
|
|
1506
|
+
};
|
|
1507
|
+
if (result?.paymentStatus === "cancelled") return {
|
|
1508
|
+
reason: "checkout_cancelled",
|
|
1509
|
+
message: "Checkout was cancelled before the appointment could be confirmed."
|
|
1510
|
+
};
|
|
1511
|
+
if (result?.appointmentStatus === "cancelled") return {
|
|
1512
|
+
reason: "appointment_cancelled",
|
|
1513
|
+
message: "The appointment was cancelled before it could be confirmed."
|
|
1514
|
+
};
|
|
1515
|
+
if (result?.paymentStatus === "failed") return {
|
|
1516
|
+
reason: "payment_failed",
|
|
1517
|
+
message: "Payment could not be verified. Please try again."
|
|
1518
|
+
};
|
|
1513
1519
|
return {
|
|
1514
|
-
|
|
1515
|
-
|
|
1520
|
+
reason: "unknown",
|
|
1521
|
+
message: error?.message ?? "Payment could not be verified. Please try again."
|
|
1516
1522
|
};
|
|
1517
1523
|
}
|
|
1518
1524
|
function deriveBookingFormViewState(input) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./constants-Bf-vqdKH.mjs";
|
|
2
|
-
import "./route-contract-
|
|
2
|
+
import "./route-contract-CkrFDMrl.mjs";
|
|
3
3
|
import { i as resolvePreviewRuntimeSession, t as getPreviewSession } from "./session-P1R_ajT7.mjs";
|
|
4
|
-
import "./refresh-contract-
|
|
4
|
+
import "./refresh-contract-uQ6BXgLJ.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region ../core/src/result.ts
|
|
@@ -89,7 +89,7 @@ function deriveSurfaceOwnedSiteSlugs() {
|
|
|
89
89
|
...siteRootHosts,
|
|
90
90
|
...SURFACE_IDS.map((surfaceId) => new URL(resolveSurfaceMarketingCanonicalOrigin(surfaceId)).hostname)
|
|
91
91
|
].flatMap((host) => siteRootHosts.flatMap((root) => siteSlugLabelUnderRoot(host, root)));
|
|
92
|
-
return [
|
|
92
|
+
return [.../* @__PURE__ */ new Set([...labels, "draft-preview"])].sort();
|
|
93
93
|
}
|
|
94
94
|
deriveSurfaceOwnedSiteSlugs();
|
|
95
95
|
const HOST_CANDIDATES = [...SURFACE_IDS.flatMap((surfaceId) => SURFACE_TIERS.flatMap((tier) => [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as __commonJSMin } from "./rolldown-runtime-CE6sIgz8.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { di as checkBrowserStripeKey, li as SpinnerNode, n as ThemedButton } from "./ThemedButton-CHKOWXxl.mjs";
|
|
4
4
|
import { useEffect, useRef, useState } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region ../../node_modules/.pnpm/@stripe+stripe-js@9.17.0/node_modules/@stripe/stripe-js/dist/pure.js
|