@riverbankcms/sdk 0.161.0 → 0.163.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/CHANGELOG.md +9 -0
- package/dist/_dts/{BlocksIslandsHydrator-Bx4kLiTA.d.ts → BlocksIslandsHydrator-DYPGA_qh.d.ts} +1 -1
- package/dist/_dts/{Page-Dm7_P13o.d.ts → Page-zwnvFBPu.d.ts} +8 -8
- package/dist/_dts/{SdkPreviewMode-D7HdWWwF.d.ts → SdkPreviewMode-DukuJzGr.d.ts} +58 -91
- package/dist/_dts/{client-Ep0jI9eE.d.ts → client-Chh3bnXC.d.ts} +11 -3
- package/dist/_dts/{content-types-BgAzCrBc.d.ts → content-types-Bbzqw9J2.d.ts} +2 -2
- package/dist/_dts/{contracts-DUiOnj9e.d.ts → contracts-GJ1kGBsi.d.ts} +13 -4
- package/dist/_dts/{footerPageOutline-B-uXamTG.d.ts → footerPageOutline-BNMKhyvo.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-BDkZYEcS.d.ts → generatePageMetadata-Ce0m1P3B.d.ts} +2 -2
- package/dist/_dts/{index-DvKQA6AZ.d.ts → index-C3mJvn27.d.ts} +4 -4
- package/dist/_dts/{schema-BHu0PYWl.d.ts → index-CaL0nKkl.d.ts} +4166 -3355
- package/dist/_dts/{index-KPrWM0KF.d.ts → index-CdSNXLOx.d.ts} +1 -1
- package/dist/_dts/{types-BR1Yboa9.d.ts → index-CyQhZuhM.d.ts} +3347 -1692
- package/dist/_dts/{index-BVkP8f70.d.ts → index-D2y4Iy-d.d.ts} +13 -2
- package/dist/_dts/{index-CSsfq6KG.d.ts → index-DRxgeK8L.d.ts} +11 -6
- package/dist/_dts/{index-CF6Cjs7b.d.ts → index-FstkyqQB.d.ts} +2 -2
- package/dist/_dts/{index-D_8uz4OP.d.ts → index-G2p-HOrK.d.ts} +3 -3
- package/dist/_dts/{index-ylivB7Jj.d.ts → index-rhMSu0oY.d.ts} +2 -2
- package/dist/_dts/{loadContent-DTjKOO-T.d.ts → loadContent-DiLZoInK.d.ts} +10 -7
- package/dist/_dts/{resolvePageContent-C1vA5c5w.d.ts → resolvePageContent-CWUnipv8.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 +13 -7
- 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-D02ngcUH.d.ts → types-BmtrA45p.d.ts} +2 -2
- package/dist/_dts/{types-ZGUiHpDE.d.ts → types-CalL7aKP.d.ts} +7 -7
- package/dist/_dts/{types-CJXTCF_F.d.ts → types-DFOqkClJ.d.ts} +3 -3
- package/dist/_dts/{validation-BaV565gb.d.ts → validation-G8MRoIhq.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DTExCJsb.mjs → BlocksIslandsHydrator-DLCXwe30.mjs} +20 -19
- package/dist/client/{BookingMailingListNote-BDpxmn1p.mjs → BookingMailingListNote-BV5-50F0.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-PeCiL82X.mjs → CalendarNavigationChevron-CVLAHdZG.mjs} +6 -6
- package/dist/client/{CheckboxChoice-DWexRLf6.mjs → CheckboxChoice-Dtgp3OU8.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-3zmIqakW.mjs → DemoBookingPortalAccess-B3caCnTT.mjs} +26 -10
- package/dist/client/{DemoPortalSignInLink-GHi-8BW5.mjs → DemoPortalSignInLink-Ct8JMKW0.mjs} +1 -1
- package/dist/client/{EventCalendar.client-BxQLY5cX.mjs → EventCalendar.client-ffa6920T.mjs} +16 -17
- package/dist/client/{EventCombined.client-B5bmQ03b.mjs → EventCombined.client-zm0W2G79.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-CgMZ9TeU.mjs → EventEmbeddedCheckoutStep-CPPE2rWS.mjs} +1 -1
- package/dist/client/{EventItem-BEx-qiDE.mjs → EventItem-CND3mfra.mjs} +91 -15
- package/dist/client/{EventListWeekNavigation-CyH5tA6Y.mjs → EventListWeekNavigation-D8QdxL_f.mjs} +1 -1
- package/dist/client/{EventListing.client-D3uySdGP.mjs → EventListing.client-CaoRZUI9.mjs} +3 -3
- package/dist/client/{EventListing.view-9RFrBejr.mjs → EventListing.view-BfnOmxYD.mjs} +14 -70
- package/dist/client/{EventRegistrationPayment-CG2tQx8K.mjs → EventRegistrationPayment-Dfu3RSL2.mjs} +10 -10
- package/dist/client/LocationMapActions-wlyxASdT.mjs +62 -0
- package/dist/client/{LocationMapActions-Wsr83Q7q.mjs → MapDrawingSvg-B9oKSitp.mjs} +2 -70
- package/dist/client/{Page-Bf2nPACI.mjs → Page-BEF9HrAy.mjs} +2333 -492
- package/dist/client/{StepIndicator-CZweb1vs.mjs → StepIndicator-Bjx4faaw.mjs} +2 -2
- package/dist/client/{TabBarFragment-Bkgz67gt.mjs → TabBarFragment-Cu7k_VSl.mjs} +1 -1
- package/dist/client/{ThemedButton-CnyL3s1A.mjs → ThemedButton-DclwabI7.mjs} +1 -1
- package/dist/client/{accordion-TcimLLRQ.mjs → accordion-lzM2nSZB.mjs} +1 -1
- package/dist/client/{booking-form.client-q-RpJ4aF.mjs → booking-form.client-Bll4QwBi.mjs} +137 -60
- package/dist/client/{bookingForm-DjGfk3Wj.mjs → bookingForm-Cq5fQ-vo.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-CGAk6j0m.mjs → carousel-CxerQwIx.mjs} +2 -2
- package/dist/client/{carousel.client-ArlGmYWV.mjs → carousel.client-CVUXq8Mb.mjs} +1 -1
- package/dist/client/{cart-D_h3rAZ2.mjs → cart-X-m0isoI.mjs} +3 -3
- package/dist/client/{cart.client-DHOxZbJ7.mjs → cart.client-CJbzWIl0.mjs} +1 -1
- package/dist/client/{checkout-tC-3CzuM.mjs → checkout-Gd0O_fGH.mjs} +3 -3
- package/dist/client/{checkout.client-DsBb2Pkm.mjs → checkout.client-Baee6Jsm.mjs} +1 -1
- package/dist/client/client.mjs +34 -69
- package/dist/client/{context-9ZfMb6GA.mjs → context-Bg0SFWcM.mjs} +28 -1
- package/dist/client/{cta-D-ZqL7-e.mjs → cta-HffyM4MA.mjs} +1 -1
- package/dist/client/{dateFormatting-BCwLqYpW.mjs → dateFormatting-CV45BH5M.mjs} +39 -2
- package/dist/client/{demoPortalMagicLink-BxkSS9fx.mjs → demoPortalMagicLink-CDWheSjI.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-xg6to91E.mjs → enhanceHeaderSection-BqVDXL0D.mjs} +3 -3
- package/dist/client/{event-details.client-C670TgRd.mjs → event-details.client-SFtS9OkF.mjs} +2 -1
- package/dist/client/{event-registration.client-C6GApWTB.mjs → event-registration.client-CguNVIFY.mjs} +13 -13
- package/dist/client/{eventCalendar-CWc0dg9i.mjs → eventCalendar-DSGG35jd.mjs} +4 -4
- package/dist/client/{eventCombined-D4DbOrvQ.mjs → eventCombined-Oe-PiChx.mjs} +4 -4
- package/dist/client/{eventDetails-C2DfmbC0.mjs → eventDetails-BhcTT6P3.mjs} +2 -2
- package/dist/client/{eventListing-C_yXmHyz.mjs → eventListing-BS0kBEgI.mjs} +4 -4
- package/dist/client/{eventRegistration-DJuaCB-O.mjs → eventRegistration-B82SHv7j.mjs} +4 -4
- package/dist/client/{form-QZhtdFHA.mjs → form-DAIUrVXb.mjs} +3 -3
- package/dist/client/{form.client-CgvPACwG.mjs → form.client-BoAkhoh_.mjs} +4 -4
- package/dist/client/{form.parts-2uI0-5N-.mjs → form.parts-1VnasOK8.mjs} +3 -3
- package/dist/client/{formatDate-Danr0Nk4.mjs → formatDate-BKil_Psb.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-DJdlLdvZ.mjs → headerSection-CyuHk8Ei.mjs} +2 -2
- package/dist/client/mediaAssets-CGJE1Omu.mjs +43 -0
- package/dist/client/mediaContext-DIkX2S-X.mjs +136 -0
- package/dist/client/{newsletter-form.client-Cbepz2KU.mjs → newsletter-form.client-CCdyHx0B.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DN8oMCQ0.mjs → newsletter-form.parts-Dl8AjsXW.mjs} +2 -2
- package/dist/client/{newsletterForm-wjLtW-wq.mjs → newsletterForm-qFWLZJui.mjs} +3 -3
- package/dist/client/{noop-B7H6gCbj.mjs → noop-4XFGzJpT.mjs} +19 -3
- package/dist/client/portal/client.mjs +1116 -85
- package/dist/client/{product-detail.client-CYTR165c.mjs → product-detail.client-Tq4S99ce.mjs} +1 -1
- package/dist/client/{product-list.client-B4vTvag8.mjs → product-list.client-CuL5jB1w.mjs} +1 -1
- package/dist/client/{productDetail-k8LEMSWn.mjs → productDetail-BRqgcotZ.mjs} +3 -3
- package/dist/client/{productList-DEo8Bqoe.mjs → productList-EK9Um-oh.mjs} +3 -3
- package/dist/client/{propsDecoder-G0j0HXBO.mjs → propsDecoder-VD4arFq1.mjs} +4 -3
- package/dist/client/{registry.server-BTmSXE3D.mjs → registry.server-qYbsatxH.mjs} +272 -68
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +22 -19
- package/dist/client/{richText-coerce-B19taoH6.mjs → richText-coerce-CW8CFk8v.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-Chu5BHra.mjs → routeIslandApiConfig-CnZ_1ol2.mjs} +1 -1
- package/dist/client/{schema-C-m8XHuW.mjs → schema-BFwQDvJL.mjs} +4561 -3948
- package/dist/client/{shop-RGWa43H7.mjs → shop-CTUaT57E.mjs} +3 -3
- package/dist/client/{shop-commerce-TJYCBO_H.mjs → shop-commerce-BWwbsm_-.mjs} +11 -11
- package/dist/client/{shop-commerce-store-CjCcUB_o.mjs → shop-commerce-store-15UII0y3.mjs} +1 -1
- package/dist/client/{shop.client-tsKfZw1W.mjs → shop.client-UWgdmJBm.mjs} +12 -12
- package/dist/client/{shop.interactive-CVqLAU53.mjs → shop.interactive-Cf_kASpd.mjs} +76 -51
- package/dist/client/{shopShared-C3lHMz_R.mjs → shopShared-Bi8d584P.mjs} +2 -2
- package/dist/{server/effectiveNavLinkStyle-CGvGr3yD.mjs → client/site-styles-dy54AUdz.mjs} +2781 -331
- package/dist/client/{timetableModel-V2ifvGGy.mjs → timetableModel-Bi8ruFgB.mjs} +10 -9
- package/dist/client/{useAvailableSlots-D1X69-pN.mjs → useAvailableSlots-DiLbDqM3.mjs} +8 -11
- package/dist/client/{useBookingNowIso-Ch30jino.mjs → useBookingNowIso-CWIiqPd0.mjs} +1 -1
- package/dist/client/{useDiscountApply-Bwzr1RjV.mjs → useDiscountApply-ChtszhF9.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-BimJbFC7.mjs → useDiscountCodeUi-B0Z7n2tZ.mjs} +1 -1
- package/dist/client/{useEventPagination-CLAS0upd.mjs → useEventPagination-DRrATQHQ.mjs} +6 -6
- package/dist/client/{view-Dj_FZHmg.mjs → view-OvsxzgxP.mjs} +64 -55
- package/dist/client/{view-BUh4LnLS.mjs → view-yUIfWX3S.mjs} +4 -4
- package/dist/client/{wizardSteps-BkZc-hKH.mjs → wizardSteps-kbONzKUv.mjs} +59 -53
- package/dist/preview-next/before-render.mjs +3 -3
- package/dist/preview-next/chrome.css +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CwerMfzn.mjs → EventEmbeddedCheckoutStep-DzoFjIqB.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-Dvq-RW9-.mjs → PreviewEditorSidebar-BhgPyyUW.mjs} +170 -1046
- package/dist/preview-next/client/{PreviewEditorUI-BdFjS39R.mjs → PreviewEditorUI-lndKKBtB.mjs} +157 -313
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BEfHln1E.mjs → SdkPreviewModeRuntime-Bk7On_EM.mjs} +351 -1386
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CjkGh1IG.mjs → SdkPreviewModeRuntime-DCDDXDlt.mjs} +1 -1
- package/dist/preview-next/client/{ThemedButton-b14Bv03E.mjs → ThemedButton-nUnE3iMv.mjs} +1010 -398
- package/dist/preview-next/client/{SiteChromeCustomizeContext-CDbxk_qZ.mjs → previewAuthStore-DHtSQIBE.mjs} +159416 -162308
- package/dist/preview-next/client/{previewChromeSurface-Dd1_mNIg.mjs → previewChromeSurface-CxQ6dZ8D.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-B-CXyGVb.mjs → sdk-runtime-DSZv7Vfm.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-Chq5KKKh.mjs +14162 -0
- package/dist/preview-next/client/{spinner-CGxS8Ns-.mjs → spinner-CjxE3uws.mjs} +1 -1
- package/dist/preview-next/edit-map.css +37 -0
- package/dist/preview-next/keepAlive.mjs +2 -2
- package/dist/preview-next/maplibre-gl.css +1 -0
- 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-CxCstfkP.mjs} +403 -200
- package/dist/preview-next/upload-structure.css +18 -0
- package/dist/server/{Block.shared-CeTd2saO.mjs → Block.shared-Dz9k8vCX.mjs} +16 -16
- package/dist/server/{bindings-C5YpKuKt.mjs → bindings-S-gCHhj5.mjs} +2 -2
- package/dist/server/{client-Cv26lZQ4.mjs → client-C2Q56xqV.mjs} +34 -69
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/{client/mediaContext-jPeJ2PmJ.mjs → server/effectiveNavLinkStyle-DLzJPcDL.mjs} +1977 -1210
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-C8a0b-cC.mjs → loadContent-D7ItMsEl.mjs} +7 -4
- package/dist/server/loadPage-D2qvYV5g.mjs +2 -0
- package/dist/server/{loadPage-BW7dklu3.mjs → loadPage-DaPiPYUL.mjs} +2 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-tIuqmJB3.mjs → overrideResolution-anoB3Kbn.mjs} +1 -1
- package/dist/server/{overrides-D1fiPOKF.mjs → overrides-W1Cc6srh.mjs} +434 -241
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild--fO0E2tr.mjs → prebuild-BF9yNfCS.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CqJnokWJ.mjs → prefetchBlockData-Cn9k3DW6.mjs} +36 -11
- package/dist/server/{publicProducts-CvvZ4JIe.mjs → publicProducts-BVcJ6TG7.mjs} +656 -166
- package/dist/server/{registry-BVfCqaCq.mjs → registry-4ZF3bUuJ.mjs} +401 -74
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-DPNvhXEz.mjs → resolveBlockData-BKQ1Fc0M.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-CD4peO7m.mjs → schema-DgrigZq9.mjs} +7748 -7135
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-H-EvTJiW.mjs → site-styles-CxE9F3hj.mjs} +99 -117
- package/dist/server/{siteChromeOverlayClearance-DNC2k1U0.mjs → siteChromeOverlayClearance-OhS6f830.mjs} +161 -105
- package/dist/server/{src-ILxc6pid.mjs → src-C44_fMy5.mjs} +1190 -147
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-BNHIXiUj.mjs → themeAdmission-CVc04B9m.mjs} +36 -29
- package/dist/server/{validation-B1ieVemg.mjs → validation-BrbY0nxR.mjs} +2 -2
- package/dist/server/{version-BQK44wFg.mjs → version-BBSk8uM6.mjs} +1 -1
- package/dist/styles/index.css +1034 -113
- package/package.json +1 -1
- package/dist/_dts/index-BQDBQvdu.d.ts +0 -13
- package/dist/client/mediaAssets-BvjcAZpS.mjs +0 -16
- 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 { gn as textColorStyle, j as parseThemeButtonVariantId } from "./schema-BFwQDvJL.mjs";
|
|
4
|
+
import { C as clsx, i as ThemedButtonLink, n as ThemedAuthoredButton, r as ThemedButton } from "./ThemedButton-DclwabI7.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 {
|
|
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-kbONzKUv.mjs";
|
|
7
|
+
import { Dt as parseLocalScheduleTime, Et as parseBookingLocalDate, Mt as toScheduledBookingDateTime, St as formatBookingCompactEnglishTime, ut as formatDate } from "./noop-4XFGzJpT.mjs";
|
|
8
|
+
import { t as LocationMapActions } from "./LocationMapActions-wlyxASdT.mjs";
|
|
9
|
+
import { n as resolveEventLinkProps } from "./cta-HffyM4MA.mjs";
|
|
10
|
+
import { a as buildMonthDay, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-CVLAHdZG.mjs";
|
|
11
|
+
import { o as formatEventTeacherLine, r as EventItem } from "./EventItem-CND3mfra.mjs";
|
|
12
|
+
import { r as readableMapDrawing, t as AdmittedMapDrawingSvg } from "./MapDrawingSvg-B9oKSitp.mjs";
|
|
13
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-CW8CFk8v.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 { Cr as unsafeAsAppointmentResourceId } from "./schema-BFwQDvJL.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-4XFGzJpT.mjs";
|
|
5
|
+
import { n as useBlockApi } from "./context-Bg0SFWcM.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-4XFGzJpT.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 { Mr as err, Nr as ok } from "./schema-BFwQDvJL.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-B3caCnTT.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-B3caCnTT.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-DclwabI7.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-kbONzKUv.mjs";
|
|
5
|
+
import { Ft as normalizeCsvIds, It as normalizeCsvString, Lt as normalizeOptionalId, Pt as getEventRuntimeFiltersKey } from "./shop.interactive-Cf_kASpd.mjs";
|
|
6
|
+
import { r as EventItem } from "./EventItem-CND3mfra.mjs";
|
|
7
|
+
import { i as EventCard, n as EmptyState, r as EventCompactRow, t as EventListingFrameView } from "./EventListing.view-BfnOmxYD.mjs";
|
|
8
|
+
import { n as useBlockApi } from "./context-Bg0SFWcM.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-DclwabI7.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-kbONzKUv.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-4XFGzJpT.mjs";
|
|
7
|
+
import { t as LocationMapActions } from "./LocationMapActions-wlyxASdT.mjs";
|
|
8
|
+
import { Bt as CardListContentPart, Xt as formatEventPriceAmount, Yt as formatEventPrice, Zt as formatEventPriceDisplay, _t as formatBookingSchedulePresentation } from "./shop.interactive-Cf_kASpd.mjs";
|
|
9
|
+
import { n as resolveEventLinkProps, t as resolveEventCta } from "./cta-HffyM4MA.mjs";
|
|
10
|
+
import { n as MapDrawingSvg } from "./MapDrawingSvg-B9oKSitp.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-DclwabI7.mjs";
|
|
3
|
+
import { Pr as listLookSlot } from "./wizardSteps-kbONzKUv.mjs";
|
|
4
|
+
import { C as membershipCardListContent, T as passCardListContent, w as membershipClassesLabel } from "./shop.interactive-Cf_kASpd.mjs";
|
|
5
|
+
import { r as EventItem, t as CardListCollection } from "./EventItem-CND3mfra.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 { Ar as unsafeAsStorageBucketName, Dr as unsafeAsMediaAssetId, En as PUBLIC_BUTTON_ROLES, Mr as err, Nr as ok$1, Xt as parseResolvedSurface, bn as opaqueSurfaceDeclarations, dn as backgroundColorStyle, dr as resolveManagedMediaReference, gn as textColorStyle, jr as unsafeAsStoragePath, mn as mergeStyles, pr as parseCanonicalMediaIdentifier, sr as runtimeMediaSchema, vr as parseEventOfferingId, yr as parseEventSeriesId } from "./schema-BFwQDvJL.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-DclwabI7.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-4XFGzJpT.mjs";
|
|
7
|
+
import { l as arrangementSlotNames } from "./site-styles-dy54AUdz.mjs";
|
|
8
|
+
import { a as getSupabaseUrl, i as getSiteId, n as getCurrentResolveImageUrlContext, r as getMediaAssetIndex } from "./mediaContext-DIkX2S-X.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-CxCstfkP.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 { bi as checkBrowserStripeKey, n as ThemedButton, vi as SpinnerNode } from "./ThemedButton-nUnE3iMv.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
|