@riverbankcms/sdk 0.160.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-CoqeotCL.d.ts → BlocksIslandsHydrator-PZUoA872.d.ts} +1 -1
- package/dist/_dts/{Page-C0ENVLCF.d.ts → Page-CdQS6C7i.d.ts} +211 -9
- package/dist/_dts/{SdkPreviewMode-jZK0A49V.d.ts → SdkPreviewMode-CNGO-5f1.d.ts} +59 -92
- package/dist/_dts/{auth-contract-FPg0-2MC.d.ts → auth-contract-CgJ5nMaH.d.ts} +2 -0
- package/dist/_dts/{client-uMMuPq9V.d.ts → client-DGa53rjL.d.ts} +11 -3
- package/dist/_dts/{content-types-D6nXGqdQ.d.ts → content-types-K9R7P-KF.d.ts} +2 -2
- package/dist/_dts/{contracts-Bnmj1nxu.d.ts → contracts-CyBaPaIq.d.ts} +17 -5
- package/dist/_dts/{footerPageOutline-CeLjFX8b.d.ts → footerPageOutline-B6jmKmon.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-nyU8q02J.d.ts → generatePageMetadata-iemoR3AN.d.ts} +2 -2
- package/dist/_dts/{index-BaaGBY1v.d.ts → index-8CN0Nd-Z.d.ts} +2 -2
- package/dist/_dts/{index-nVoi_74l.d.ts → index-BtnsA14K.d.ts} +10 -20
- package/dist/_dts/{index-lkpjIg5i.d.ts → index-C39F9KaB.d.ts} +13 -2
- package/dist/_dts/{index-C5xslEBn.d.ts → index-DEu85xBt.d.ts} +1 -1
- package/dist/_dts/{schema-D0bNcPWK.d.ts → index-DI2yaSPY.d.ts} +22873 -19918
- package/dist/_dts/{types-D8czmbQF.d.ts → index-Dbd0Sn0G.d.ts} +4356 -1827
- package/dist/_dts/{index-CEaKil7G.d.ts → index-Du1IRglc.d.ts} +2 -2
- package/dist/_dts/{index-DahMwisK.d.ts → index-Jlcq6w69.d.ts} +3 -3
- package/dist/_dts/{index-Bg64CkV-.d.ts → index-Wm62sXf2.d.ts} +4 -4
- package/dist/_dts/{loadContent-CYLmzvLq.d.ts → loadContent-BPfAAZDW.d.ts} +13 -10
- package/dist/_dts/{resolvePageContent-DqnxChOs.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 +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/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/preview-next/keep-alive.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/session.d.ts +2 -2
- 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/{session-Ba2CsnK5.d.ts → session-C_gtSFyZ.d.ts} +2 -1
- package/dist/_dts/{types-DSgmJ15W.d.ts → types-CVv2H4AT.d.ts} +7 -7
- package/dist/_dts/{types-CFrYuXYP.d.ts → types-CfNG5koF.d.ts} +4 -2
- package/dist/_dts/{types-Dm-KW7nj.d.ts → types-ClZ-BQL_.d.ts} +3 -3
- package/dist/_dts/{validation-Bmb4WnHg.d.ts → validation-BJ6Lf_Dr.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DZRKi6tT.mjs → BlocksIslandsHydrator-COqlgWYU.mjs} +23 -21
- package/dist/client/{BookingMailingListNote-C00sLLdL.mjs → BookingMailingListNote-CFYPDEHH.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-CHSi9b3E.mjs → CalendarNavigationChevron-COBVxgHb.mjs} +6 -6
- package/dist/client/{CheckboxChoice-Bhm6RAUL.mjs → CheckboxChoice-C7X9dJ8A.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-CaN-7ui7.mjs → DemoBookingPortalAccess-CvT0E9AR.mjs} +26 -10
- package/dist/client/{DemoPortalSignInLink-ClxN5_xZ.mjs → DemoPortalSignInLink-EBOBN5dT.mjs} +1 -1
- package/dist/client/{EventCalendar.client-BncvSa1n.mjs → EventCalendar.client-U6pKcntV.mjs} +16 -17
- package/dist/client/{EventCombined.client-DluBxVVu.mjs → EventCombined.client-CNzwEHws.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-BiJrMtfp.mjs → EventEmbeddedCheckoutStep-B9yAWV_k.mjs} +1 -1
- package/dist/client/{EventItem-CXhnT9pF.mjs → EventItem-M5rpaHxi.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-V-dtoDlD.mjs → EventListWeekNavigation-D4ieBLDY.mjs} +1 -1
- package/dist/client/{EventListing.client-DPO6SZbx.mjs → EventListing.client-B8F40Rmn.mjs} +3 -3
- package/dist/client/{EventListing.view-B-Yi5JZS.mjs → EventListing.view-k4lhuCn5.mjs} +15 -6
- package/dist/client/{EventRegistrationPayment-Dc3Fnlnw.mjs → EventRegistrationPayment-C3g8_Hqb.mjs} +25 -13
- package/dist/client/LocationMapActions-CAjt7qVo.mjs +62 -0
- package/dist/client/MapDrawingSvg-_aIK2ojv.mjs +200 -0
- package/dist/client/{Page-7PkzO04N.mjs → Page-DJBIQBOw.mjs} +2555 -536
- package/dist/client/{StepIndicator-DiD6euZ8.mjs → StepIndicator-CFacB1z6.mjs} +2 -2
- package/dist/client/{TabBarFragment-BHd8GN8y.mjs → TabBarFragment-BLsfQskO.mjs} +1 -1
- package/dist/client/ThemedButton-BWsDgjMC.mjs +2243 -0
- package/dist/client/{accordion-2m27DsIk.mjs → accordion-CtO2XF7M.mjs} +1 -1
- package/dist/client/{booking-form.client-BddWV5w1.mjs → booking-form.client-RICCQ0h2.mjs} +137 -60
- package/dist/client/{bookingForm-bcdXQjmw.mjs → bookingForm-SvjLPx8i.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-D7nj9I0y.mjs → carousel-BR-zCD3O.mjs} +2 -2
- package/dist/client/{carousel.client-AffDJo_s.mjs → carousel.client-CEWtoZd3.mjs} +1 -1
- package/dist/client/{cart-PN6yCw1H.mjs → cart-C6YpKbZZ.mjs} +3 -3
- package/dist/client/{cart.client-D4t1f0cJ.mjs → cart.client-dC938WrX.mjs} +1 -1
- package/dist/client/{checkout-CsTwXVSb.mjs → checkout-Dy9RlREI.mjs} +3 -3
- package/dist/client/{checkout.client-BhQE3zY7.mjs → checkout.client-CefG0d2F.mjs} +1 -1
- package/dist/client/client.mjs +37 -71
- package/dist/client/{context-BLAvalAa.mjs → context-BFwxgZpB.mjs} +28 -1
- package/dist/client/{cta-CUXhX_D7.mjs → cta-DtA42Xio.mjs} +1 -1
- package/dist/client/{dateFormatting-BHIHxNuo.mjs → dateFormatting-yP1B7F0O.mjs} +39 -2
- package/dist/client/{demoPortalMagicLink-R-awbk_0.mjs → demoPortalMagicLink-WOiT5Ryi.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-9Q93uvTo.mjs → enhanceHeaderSection-Dh8c_Lq-.mjs} +3 -3
- package/dist/client/{event-details.client-BS1WtG-a.mjs → event-details.client-BFgsLqTj.mjs} +3 -17
- package/dist/client/{event-registration.client-BXndwsET.mjs → event-registration.client-BaXZ1-Ky.mjs} +16 -16
- package/dist/client/{eventCalendar-HyoOt1Qz.mjs → eventCalendar-COLwF80U.mjs} +4 -4
- package/dist/client/{eventCombined-sdG5oEaH.mjs → eventCombined-D3Ltwu03.mjs} +4 -4
- package/dist/client/{eventDetails-FFAknE4w.mjs → eventDetails-CBrkimXu.mjs} +2 -2
- package/dist/client/{eventListing-CGK6urk3.mjs → eventListing-CedKVA1S.mjs} +4 -4
- package/dist/client/{eventRegistration-VhrvCs4l.mjs → eventRegistration-DkQQfR1b.mjs} +4 -4
- package/dist/client/{form-C-B5O_ko.mjs → form-XFy9uXSJ.mjs} +3 -3
- package/dist/client/{form.client-DoZVcl8d.mjs → form.client-B0iancFK.mjs} +4 -4
- package/dist/client/{form.parts-mttKpgif.mjs → form.parts-DMbolu9Y.mjs} +3 -3
- package/dist/client/{formatDate-xUSCknEO.mjs → formatDate-Jm5MQOCA.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-BHUEXsaI.mjs → headerSection-WjlECjtV.mjs} +2 -2
- package/dist/client/{mediaAssets-BOj-Co0B.mjs → mediaAssets-BkoW_PEn.mjs} +1 -1
- package/dist/client/{mediaContext-DThoeEBU.mjs → mediaContext-CNzWmoA4.mjs} +1 -1
- package/dist/client/{newsletter-form.client-D_n0rftg.mjs → newsletter-form.client-D-XwJTjN.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DKHye4IE.mjs → newsletter-form.parts-H92f30y0.mjs} +2 -2
- package/dist/client/{newsletterForm-tEaYelzx.mjs → newsletterForm-DMuxzu6I.mjs} +3 -3
- package/dist/client/{noop-B610YKEx.mjs → noop-B3RNPVrt.mjs} +313 -3
- package/dist/client/portal/client.mjs +1116 -85
- package/dist/client/{product-detail.client-DUf5x5Jt.mjs → product-detail.client-B3HuuykE.mjs} +1 -1
- package/dist/client/{product-list.client-Cqp1BPTV.mjs → product-list.client-CzsDrHQO.mjs} +1 -1
- package/dist/client/{productDetail-B8bBiogP.mjs → productDetail-CbBUVWgd.mjs} +3 -3
- package/dist/client/{productList-BKN4D-1z.mjs → productList-vqOKH2mh.mjs} +3 -3
- package/dist/client/{propsDecoder-2nNZh2Oe.mjs → propsDecoder-CkSUep5a.mjs} +4 -28
- package/dist/client/{registry.server-BAm4RPNJ.mjs → registry.server-cZ24QwtW.mjs} +607 -210
- package/dist/client/rendering/client.mjs +28 -28
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +18 -9
- package/dist/client/{richText-coerce-Cv-qomNB.mjs → richText-coerce-DDcCKvBJ.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-C5u8MbAA.mjs → routeIslandApiConfig-DYBioANh.mjs} +1 -1
- package/dist/client/{ThemedButton-C22C9cCF.mjs → schema-DNHLlze-.mjs} +7307 -8363
- package/dist/client/{shop-DZNC0VKk.mjs → shop-CF0dhnfH.mjs} +3 -3
- package/dist/client/{shop-commerce-DdX4LSa3.mjs → shop-commerce-DQznNBEo.mjs} +11 -11
- package/dist/client/{shop-commerce-store-BJtrZov9.mjs → shop-commerce-store-Ba8zPlIg.mjs} +1 -1
- package/dist/client/{shop.client-DmDd-igg.mjs → shop.client-DqfYoqWH.mjs} +12 -12
- package/dist/client/{shop.interactive-5SnnDHz3.mjs → shop.interactive-CreQ0I7i.mjs} +38 -183
- package/dist/client/{shopShared-CPqUlAh9.mjs → shopShared-D-yh-P7g.mjs} +2 -2
- package/dist/client/site-styles-B9HgmY07.mjs +11619 -0
- package/dist/client/{timetableModel-C19rcHEw.mjs → timetableModel-DCdVErTJ.mjs} +149 -8
- package/dist/client/{useAvailableSlots-BjbJXotk.mjs → useAvailableSlots-Cvgdp2DH.mjs} +8 -11
- package/dist/client/{useBookingNowIso-CMgfL7YJ.mjs → useBookingNowIso-DrTnGNzD.mjs} +1 -1
- package/dist/client/{useDiscountApply-KG8jB7WC.mjs → useDiscountApply-CULjnXGl.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-DK2w_i0a.mjs → useDiscountCodeUi-Gn_m7e0o.mjs} +1 -1
- package/dist/client/{useEventPagination-DW6MCirb.mjs → useEventPagination-CsysCF22.mjs} +8 -21
- package/dist/client/{view-CseyBW07.mjs → view-BpBjo9Te.mjs} +71 -59
- package/dist/client/{view-CkUn3Y0Y.mjs → view-DMyTchi7.mjs} +4 -4
- package/dist/client/wizardSteps-BO2OmMO9.mjs +6604 -0
- package/dist/preview-next/before-render.mjs +7 -6
- package/dist/preview-next/chrome.css +2 -0
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-lUHBrzHv.mjs → EventEmbeddedCheckoutStep-DLsSmZbO.mjs} +2 -1
- package/dist/preview-next/client/LocationPickerEnvironment-QtSG2Bl-.mjs +138 -0
- package/dist/preview-next/client/MapLibreEditMap-B-rohNcG.mjs +488 -0
- package/dist/preview-next/client/{PreviewEditorSidebar-DWyUGCAG.mjs → PreviewEditorSidebar-ChrW9VEo.mjs} +269 -1100
- package/dist/preview-next/client/{PreviewEditorUI-Wq0b3Daw.mjs → PreviewEditorUI-VaHvYtrA.mjs} +10 -190
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BtZPcwYV.mjs → SdkPreviewModeRuntime-Bz7jR6nl.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-wSI_R361.mjs → SdkPreviewModeRuntime-DWwktlWs.mjs} +639 -536
- package/dist/preview-next/client/{ThemedButton-DzeycIlD.mjs → ThemedButton-CHKOWXxl.mjs} +1706 -692
- package/dist/preview-next/client/lucide-react-CA9cpo0P.mjs +51984 -0
- package/dist/preview-next/client/maplibre-gl-DykfOYYn.mjs +34208 -0
- package/dist/preview-next/client/{SiteChromeCustomizeContext-Hc4pYnNe.mjs → previewAuthStore-C0VUwEHz.mjs} +81363 -136296
- package/dist/preview-next/client/{previewChromeSurface-Corq4AG7.mjs → previewChromeSurface-Dhyx2YrS.mjs} +1 -1
- package/dist/preview-next/client/result-BjJUoxUF.mjs +16 -0
- package/dist/preview-next/client/rolldown-runtime-CE6sIgz8.mjs +34 -0
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CWymRWhK.mjs → sdk-runtime-C2GWOCyj.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-DHyzUpv4.mjs +12833 -0
- package/dist/preview-next/client/{spinner-C4If5Y-O.mjs → spinner-BeR2S8oG.mjs} +2 -1
- package/dist/preview-next/{constants-D8Ya7bO4.mjs → constants-Bf-vqdKH.mjs} +2 -1
- package/dist/preview-next/editor-base.css +2 -2
- package/dist/preview-next/keepAlive.mjs +3 -3
- package/dist/preview-next/middleware.mjs +7 -3
- package/dist/preview-next/{refresh-contract-CvmNqZ1Q.mjs → refresh-contract-uQ6BXgLJ.mjs} +5 -0
- package/dist/preview-next/{route-contract-8csADeIT.mjs → route-contract-CkrFDMrl.mjs} +434 -203
- package/dist/preview-next/{session-BgkrPqu0.mjs → session-P1R_ajT7.mjs} +12 -2
- package/dist/preview-next/session.mjs +1 -1
- package/dist/server/{Block.shared-D1_gonwM.mjs → Block.shared-DxvNGDig.mjs} +4 -4
- package/dist/server/{bindings-CFmJg5lm.mjs → bindings-BuhKvYkE.mjs} +2 -1
- package/dist/server/{client-DPsi0Dai.mjs → client-BobW6DOz.mjs} +39 -72
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{siteChromeOverlayClearance-DALIAMwo.mjs → effectiveNavLinkStyle-B-MKSt0p.mjs} +2060 -1680
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-RMCcuVU_.mjs → loadContent-CCG_3mbY.mjs} +14 -5
- package/dist/server/loadPage-Bk9HDh9K.mjs +2 -0
- package/dist/server/{loadPage-DhDGzj7t.mjs → loadPage-jntGoMrf.mjs} +3 -2
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-OxY5FMuy.mjs → overrideResolution-BBOlgn4Z.mjs} +1 -1
- package/dist/server/{overrides-Bz_A6sB9.mjs → overrides-DByQwIyW.mjs} +803 -412
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-B_1vrSru.mjs → prebuild-DrwcTk2t.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-B7ukYXXR.mjs → prefetchBlockData-LfgxSJYE.mjs} +156 -89
- package/dist/server/{publicProducts-Djbpc81A.mjs → publicProducts-8A3T5v4M.mjs} +685 -166
- package/dist/server/{registry-eFjKtEhF.mjs → registry-Digv02oV.mjs} +780 -1052
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-DYvEa9c5.mjs → resolveBlockData-C23t8-77.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-C3dJ5UkL.mjs → schema-BiqpDRwB.mjs} +4805 -3561
- package/dist/server/server.mjs +3 -3
- package/dist/server/site-styles-DrkprQPL.mjs +755 -0
- package/dist/server/siteChromeOverlayClearance-BmKKkkbh.mjs +750 -0
- package/dist/server/{src-C5Mu-z0F.mjs → src-08GY1njw.mjs} +1060 -44
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-ruoyXb_0.mjs → themeAdmission-CSd_Vusz.mjs} +151 -53
- package/dist/server/{validation-B-Xar8QS.mjs → validation-DdUTkBOZ.mjs} +2 -2
- package/dist/server/{version-Bg7VHK3i.mjs → version-DdIOqIDe.mjs} +1 -1
- package/dist/styles/index.css +1029 -41
- package/package.json +1 -1
- package/dist/_dts/index-Blwl7yl6.d.ts +0 -13
- package/dist/client/LeafletStaticMap-ClZCCzAm.mjs +0 -135
- package/dist/client/location-map.client-Cylb_MHw.mjs +0 -28
- package/dist/client/location-map.view-Cx4Bl7ij.mjs +0 -345
- package/dist/client/locationMap-QnKJi-nZ.mjs +0 -15
- package/dist/client/renderableMediaAssetAdmission-DGjBr_e-.mjs +0 -152
- package/dist/client/wizardSteps-zgq10lN1.mjs +0 -17181
- package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +0 -1359
- package/dist/server/loadPage-DUPP51C-.mjs +0 -2
- package/dist/server/media-CcHwZkdJ.mjs +0 -243
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-CkSUep5a.mjs";
|
|
3
3
|
//#region src/rendering/islands/enhancers/accordion.ts
|
|
4
4
|
const decode = defineIslandPropsDecoder("accordion");
|
|
5
5
|
function parseDefaultValues(value) {
|
|
@@ -1,38 +1,48 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { _r as unsafeAsFormId, br as unsafeAsSiteId, gr as unsafeAsCustomerPassId, hr as unsafeAsAppointmentServiceId, mr as unsafeAsAppointmentResourceId, yr as unsafeAsPassId } from "./schema-DNHLlze-.mjs";
|
|
3
|
+
import { U as formatCurrencyAmount, r as ThemedButton, u as SpinnerNode } from "./ThemedButton-BWsDgjMC.mjs";
|
|
4
4
|
import { a as clearWorkflowFeedback, i as okWith, n as err, o as reportWorkflowError, s as reportWorkflowSuccess, t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
5
|
-
import { $n as resolveDefaultBookingServiceId, B as paymentChoiceDetails, Bn as getBookingRedirectStateFromLocation, Fn as buildBookingFormInteractiveIslandProps, Gn as isBookingServiceSlidingAmountInRange, Hn as getBookingSuccessCopy, In as readOverrideServiceCategories, Jn as parseBookingCurrencyInputToCents, Kn as normalizeBookingFormConfig,
|
|
6
|
-
import {
|
|
7
|
-
import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-
|
|
5
|
+
import { $n as resolveDefaultBookingServiceId, B as paymentChoiceDetails, Bn as getBookingRedirectStateFromLocation, Fn as buildBookingFormInteractiveIslandProps, Gn as isBookingServiceSlidingAmountInRange, Hn as getBookingSuccessCopy, In as readOverrideServiceCategories, Jn as parseBookingCurrencyInputToCents, Kn as normalizeBookingFormConfig, Kr as resolveBookingSignupOffer, Ln as deriveBookingFormViewState, Qn as resolveBookingSiteId, R as buildBookingPaymentSelectionViewModel, Rn as formatBookingCentsAsCurrencyInput, V as paymentChoicePrice, Vn as getBookingServiceSlidingScale, Xn as resolveAppointmentCheckoutVerificationState, Yn as prepareBookingSubmission, Zn as resolveBookingPaymentStep, br as readRuntimeNow, er as selectedBookingCollectionOptionKind, ir as BOOKING_FORM_DATA_RESERVED_KEYS, nr as projectSelectedAppointmentConsentIntoForm, qn as normalizeBookingServices, rr as resolveSelectedAppointmentConsent, tr as toSelectedCollectionOptionKind, xr as resolveDateRuntimeContext, z as buildReviewedBookingPaymentViewModel, zn as formatBookingSubmissionPreparationError } from "./wizardSteps-BO2OmMO9.mjs";
|
|
6
|
+
import { At as resolveBookingTimeZoneId, J as isBookingRequirementConsentFieldId, Nt as toUtcIsoDateTimeString, Ot as parseUtcIsoDateTimeString, gt as formatTimeZoneCityLabel, kt as resolveBookingBusinessTimeZone, mt as formatTime, pt as formatDateTimeRange, t as logger, ut as formatDate, vt as resolveBookingDisplayContext } from "./noop-B3RNPVrt.mjs";
|
|
7
|
+
import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-CvT0E9AR.mjs";
|
|
8
8
|
import { t as layoutServicesByCategory } from "./appointment-service-categories-Cl2pqw-z.mjs";
|
|
9
9
|
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-CYj06rX1.mjs";
|
|
10
10
|
import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
|
|
11
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
11
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-C7X9dJ8A.mjs";
|
|
12
12
|
import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
|
|
13
13
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
14
14
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
15
|
-
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
16
|
-
import { i as PaymentChoiceRows, n as BookingConsentAgreement, r as usePolling, t as BookingMailingListNote } from "./BookingMailingListNote-
|
|
15
|
+
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-Gn_m7e0o.mjs";
|
|
16
|
+
import { i as PaymentChoiceRows, n as BookingConsentAgreement, r as usePolling, t as BookingMailingListNote } from "./BookingMailingListNote-CFYPDEHH.mjs";
|
|
17
17
|
import { t as StepIndicator } from "./StepIndicator-BK0GEDoP.mjs";
|
|
18
|
-
import { n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
18
|
+
import { n as useBlockApi, t as BlockApiProvider } from "./context-BFwxgZpB.mjs";
|
|
19
19
|
import { i as AltchaWidget, r as isSpamProtectionEnabled, t as getChallengeUrl } from "./src-BNZzXgWu.mjs";
|
|
20
|
-
import { a as formatTime$1, i as formatDatePillParts, n as useAvailableDates, o as getRuntimeTimeZone, r as formatDate$1, t as useAvailableSlots } from "./useAvailableSlots-
|
|
21
|
-
import { t as useBookingNowIso } from "./useBookingNowIso-
|
|
22
|
-
import { s as storeDemoBookingPassIfAvailable } from "./demoPortalMagicLink-
|
|
20
|
+
import { a as formatTime$1, i as formatDatePillParts, n as useAvailableDates, o as getRuntimeTimeZone, r as formatDate$1, t as useAvailableSlots } from "./useAvailableSlots-Cvgdp2DH.mjs";
|
|
21
|
+
import { t as useBookingNowIso } from "./useBookingNowIso-DrTnGNzD.mjs";
|
|
22
|
+
import { s as storeDemoBookingPassIfAvailable } from "./demoPortalMagicLink-WOiT5Ryi.mjs";
|
|
23
23
|
import React, { useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
24
24
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
25
25
|
//#region ../blocks/src/system/runtime/nodes/booking-form.date-display.ts
|
|
26
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Appointments happen at the business, so every day and clock in the flow is
|
|
28
|
+
* the site's. A visitor in another zone gets labelled clocks and one note.
|
|
29
|
+
*/
|
|
27
30
|
function resolveBookingFormDateDisplay(input) {
|
|
28
31
|
const mode = input.service?.location?.mode;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
+
const siteTimeZone = input.dateContext.timeZone;
|
|
33
|
+
const viewerDiffers = resolveBookingTimeZoneId(input.viewerTimeZone, siteTimeZone) !== siteTimeZone;
|
|
34
|
+
const display = resolveBookingDisplayContext({
|
|
35
|
+
sessionTimeZone: siteTimeZone,
|
|
36
|
+
siteTimeZone,
|
|
32
37
|
locale: input.dateContext.locale,
|
|
33
38
|
isOnline: mode === "online" || mode === "either",
|
|
34
39
|
surface: "public"
|
|
35
40
|
});
|
|
41
|
+
return {
|
|
42
|
+
context: display.context,
|
|
43
|
+
zone: viewerDiffers ? "always" : display.zone,
|
|
44
|
+
zoneNote: viewerDiffers ? `Times are shown in ${formatTimeZoneCityLabel(siteTimeZone)}.` : null
|
|
45
|
+
};
|
|
36
46
|
}
|
|
37
47
|
//#endregion
|
|
38
48
|
//#region ../blocks/src/system/runtime/nodes/booking-form.payment-confirmation.ts
|
|
@@ -933,7 +943,8 @@ function resolveHeadlessBookingView(input) {
|
|
|
933
943
|
kind: "success",
|
|
934
944
|
message: input.feedback.message,
|
|
935
945
|
resourceName: input.feedback.resourceName,
|
|
936
|
-
request: input.feedback.request
|
|
946
|
+
request: input.feedback.request,
|
|
947
|
+
appointment: input.feedback.appointment
|
|
937
948
|
};
|
|
938
949
|
if (input.feedback.kind === "error") return {
|
|
939
950
|
kind: "error",
|
|
@@ -1320,6 +1331,7 @@ function planBookingSubmissionCompletion(input) {
|
|
|
1320
1331
|
kind: "success",
|
|
1321
1332
|
message: "",
|
|
1322
1333
|
resourceName: data.appointment.resourceName,
|
|
1334
|
+
appointment: null,
|
|
1323
1335
|
request: {
|
|
1324
1336
|
serviceName: data.serviceName,
|
|
1325
1337
|
startAt: data.appointment.startAt,
|
|
@@ -1359,6 +1371,7 @@ function bookingSuccessFeedback(data, successMessage) {
|
|
|
1359
1371
|
kind: "success",
|
|
1360
1372
|
resourceName: data.appointment.resourceName,
|
|
1361
1373
|
request: null,
|
|
1374
|
+
appointment: data.appointment,
|
|
1362
1375
|
message: copy.defaultEmailSentence ? `${copy.message} ${copy.defaultEmailSentence}`.trim() : copy.message
|
|
1363
1376
|
};
|
|
1364
1377
|
}
|
|
@@ -1559,6 +1572,7 @@ function HeadlessBookingProvider({ config, children }) {
|
|
|
1559
1572
|
}
|
|
1560
1573
|
function useHeadlessBookingFlow(options) {
|
|
1561
1574
|
const viewerTimeZone = options.viewerTimeZone ?? getRuntimeTimeZone();
|
|
1575
|
+
const availabilityTimeZone = options.dateContext.timeZone;
|
|
1562
1576
|
const formKey = unsafeAsFormId(options.formId);
|
|
1563
1577
|
const defaultServiceId = toOptionalAppointmentServiceId(options.initialServiceId ?? resolveDefaultBookingServiceId(options.form, options.services) ?? void 0);
|
|
1564
1578
|
const defaultResourceId = toOptionalAppointmentResourceId(options.initialResourceId);
|
|
@@ -1604,23 +1618,23 @@ function useHeadlessBookingFlow(options) {
|
|
|
1604
1618
|
const availabilityDatesQuery = useMemo(() => buildBookingAvailabilityQuery({
|
|
1605
1619
|
serviceId: selectedServiceId,
|
|
1606
1620
|
resourceId: selectedResourceId,
|
|
1607
|
-
timezone:
|
|
1621
|
+
timezone: availabilityTimeZone
|
|
1608
1622
|
}), [
|
|
1609
1623
|
selectedResourceId,
|
|
1610
1624
|
selectedServiceId,
|
|
1611
|
-
|
|
1625
|
+
availabilityTimeZone
|
|
1612
1626
|
]);
|
|
1613
1627
|
const availabilitySlotsQuery = useMemo(() => buildBookingAvailabilityQuery({
|
|
1614
1628
|
serviceId: selectedServiceId,
|
|
1615
1629
|
resourceId: selectedResourceId,
|
|
1616
1630
|
selectedDate: state.selectedDate,
|
|
1617
|
-
timezone:
|
|
1631
|
+
timezone: availabilityTimeZone,
|
|
1618
1632
|
requireDate: true
|
|
1619
1633
|
}), [
|
|
1620
1634
|
selectedResourceId,
|
|
1621
1635
|
selectedServiceId,
|
|
1622
1636
|
state.selectedDate,
|
|
1623
|
-
|
|
1637
|
+
availabilityTimeZone
|
|
1624
1638
|
]);
|
|
1625
1639
|
const stepState = useMemo(() => deriveBookingFlowSteps({
|
|
1626
1640
|
form: runtimeForm,
|
|
@@ -1653,14 +1667,14 @@ function useHeadlessBookingFlow(options) {
|
|
|
1653
1667
|
const { availableDates, isLoading: isLoadingDates, error: datesError, hasMore, loadMore, loadedRange: availableDatesLoadedRange } = useAvailableDates({
|
|
1654
1668
|
serviceId: availabilityDatesQuery.ok ? availabilityDatesQuery.serviceId : void 0,
|
|
1655
1669
|
resourceId: availabilityDatesQuery.ok ? availabilityDatesQuery.resourceId : void 0,
|
|
1656
|
-
timezone:
|
|
1670
|
+
timezone: availabilityTimeZone,
|
|
1657
1671
|
initialDays: 14
|
|
1658
1672
|
});
|
|
1659
1673
|
const { slots, isLoading: isLoadingSlots, hasLoaded: hasLoadedSlots, error: slotsError } = useAvailableSlots({
|
|
1660
1674
|
serviceId: availabilitySlotsQuery.ok ? availabilitySlotsQuery.serviceId : void 0,
|
|
1661
1675
|
resourceId: availabilitySlotsQuery.ok ? availabilitySlotsQuery.resourceId : void 0,
|
|
1662
1676
|
selectedDate: availabilitySlotsQuery.ok ? availabilitySlotsQuery.selectedDate ?? "" : "",
|
|
1663
|
-
timezone:
|
|
1677
|
+
timezone: availabilityTimeZone
|
|
1664
1678
|
});
|
|
1665
1679
|
const slotViews = useMemo(() => toBookingSlotViews(slots), [slots]);
|
|
1666
1680
|
const dateValues = useMemo(() => [...availableDates].sort(), [availableDates]);
|
|
@@ -1873,9 +1887,10 @@ function useHeadlessBookingFlow(options) {
|
|
|
1873
1887
|
tag: "loaded",
|
|
1874
1888
|
value: slotViews
|
|
1875
1889
|
},
|
|
1876
|
-
timezone:
|
|
1890
|
+
timezone: availabilityTimeZone,
|
|
1877
1891
|
dateContext: availabilityDisplay.context,
|
|
1878
1892
|
zone: availabilityDisplay.zone,
|
|
1893
|
+
zoneNote: availabilityDisplay.zoneNote,
|
|
1879
1894
|
hasMoreDates: hasMore,
|
|
1880
1895
|
loadMoreDates: loadMore
|
|
1881
1896
|
},
|
|
@@ -2127,39 +2142,59 @@ function TimeSlotPill({ slot, selected, onChange, dateContext, zone }) {
|
|
|
2127
2142
|
children: label
|
|
2128
2143
|
});
|
|
2129
2144
|
}
|
|
2130
|
-
|
|
2131
|
-
|
|
2145
|
+
function TimeSlotZoneNote({ id, note }) {
|
|
2146
|
+
return note ? /* @__PURE__ */ jsx("p", {
|
|
2147
|
+
id,
|
|
2148
|
+
className: "ab-text ab-text--sm rb-on-surface--muted",
|
|
2149
|
+
children: note
|
|
2150
|
+
}) : null;
|
|
2151
|
+
}
|
|
2152
|
+
/** The zone note describes the group alongside any caller-supplied description. */
|
|
2153
|
+
function describedByIds(...ids) {
|
|
2154
|
+
return ids.filter(Boolean).join(" ") || void 0;
|
|
2155
|
+
}
|
|
2156
|
+
const TimeSlotSelector = ({ value, onChange, slots, isLoading, dateContext, zone, zoneNote, required = true, ariaDescribedBy, ariaInvalid }) => {
|
|
2157
|
+
const generatedId = React.useId();
|
|
2158
|
+
const labelId = `${generatedId}-time-label`;
|
|
2159
|
+
const noteId = `${generatedId}-time-zone-note`;
|
|
2132
2160
|
const groupRef = useTimeSlotsRevealScroll(!isLoading && slots.length > 0);
|
|
2133
2161
|
return /* @__PURE__ */ jsxs("div", {
|
|
2134
2162
|
className: "rb-reg-stack rb-reg-stack--sm",
|
|
2135
|
-
children: [
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
+
children: [
|
|
2164
|
+
/* @__PURE__ */ jsxs("span", {
|
|
2165
|
+
className: "form-label",
|
|
2166
|
+
id: labelId,
|
|
2167
|
+
children: ["Select Time", required && /* @__PURE__ */ jsx("span", {
|
|
2168
|
+
className: "required-marker",
|
|
2169
|
+
children: "*"
|
|
2170
|
+
})]
|
|
2171
|
+
}),
|
|
2172
|
+
/* @__PURE__ */ jsx(TimeSlotZoneNote, {
|
|
2173
|
+
id: noteId,
|
|
2174
|
+
note: zoneNote
|
|
2175
|
+
}),
|
|
2176
|
+
isLoading ? /* @__PURE__ */ jsx("div", { className: "rb-shell-block" }) : slots.length === 0 ? /* @__PURE__ */ jsx(FeedbackMessage, {
|
|
2177
|
+
tone: "info",
|
|
2178
|
+
className: "alert alert-info",
|
|
2179
|
+
role: "status",
|
|
2180
|
+
children: "No available times for this date"
|
|
2181
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
2182
|
+
ref: groupRef,
|
|
2183
|
+
role: "group",
|
|
2184
|
+
"aria-labelledby": labelId,
|
|
2185
|
+
"aria-describedby": describedByIds(zoneNote && noteId, ariaDescribedBy),
|
|
2186
|
+
"aria-invalid": ariaInvalid || void 0,
|
|
2187
|
+
"aria-required": required || void 0,
|
|
2188
|
+
className: "ab-pill-grid",
|
|
2189
|
+
children: slots.map((slot) => /* @__PURE__ */ jsx(TimeSlotPill, {
|
|
2190
|
+
slot,
|
|
2191
|
+
selected: value === slot.key,
|
|
2192
|
+
onChange,
|
|
2193
|
+
dateContext,
|
|
2194
|
+
zone
|
|
2195
|
+
}, slot.key))
|
|
2196
|
+
})
|
|
2197
|
+
]
|
|
2163
2198
|
});
|
|
2164
2199
|
};
|
|
2165
2200
|
//#endregion
|
|
@@ -2628,6 +2663,7 @@ function DefaultDateTimeSelectionStep({ booking, errorSummaryId }) {
|
|
|
2628
2663
|
isLoading: booking.availability.slotsState.tag === "loading",
|
|
2629
2664
|
dateContext: booking.availability.dateContext,
|
|
2630
2665
|
zone: booking.availability.zone,
|
|
2666
|
+
zoneNote: booking.availability.zoneNote,
|
|
2631
2667
|
ariaDescribedBy: validationDescribedBy,
|
|
2632
2668
|
ariaInvalid: hasValidationError
|
|
2633
2669
|
}) : null
|
|
@@ -3058,7 +3094,7 @@ function DefaultBookingErrorSummary({ errors, id }) {
|
|
|
3058
3094
|
}
|
|
3059
3095
|
//#endregion
|
|
3060
3096
|
//#region ../blocks/src/system/runtime/components/booking/SuccessMessage.tsx
|
|
3061
|
-
const SuccessMessage = ({ copy, resourceName, className, demoEmailSuppressed = false, customerEmail = null }) => {
|
|
3097
|
+
const SuccessMessage = ({ copy, resourceName, appointment, dateContext, className, demoEmailSuppressed = false, customerEmail = null }) => {
|
|
3062
3098
|
return /* @__PURE__ */ jsx(TerminalPanel, {
|
|
3063
3099
|
tone: "success",
|
|
3064
3100
|
title: "Booking confirmed",
|
|
@@ -3076,16 +3112,48 @@ const SuccessMessage = ({ copy, resourceName, className, demoEmailSuppressed = f
|
|
|
3076
3112
|
},
|
|
3077
3113
|
noteClassName: "ab-text"
|
|
3078
3114
|
}),
|
|
3079
|
-
secondaryBody:
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3115
|
+
secondaryBody: /* @__PURE__ */ jsx(AppointmentDetails, {
|
|
3116
|
+
appointment,
|
|
3117
|
+
dateContext,
|
|
3118
|
+
resourceName
|
|
3119
|
+
}),
|
|
3083
3120
|
className: ["ab-center", className ?? ""].join(" ").trim(),
|
|
3084
3121
|
titleClassName: "ab-terminal-title",
|
|
3085
3122
|
role: "alert",
|
|
3086
3123
|
live: "polite"
|
|
3087
3124
|
});
|
|
3088
3125
|
};
|
|
3126
|
+
function AppointmentDetails({ appointment, dateContext, resourceName }) {
|
|
3127
|
+
if (!appointment) return resourceName ? /* @__PURE__ */ jsxs("p", {
|
|
3128
|
+
className: "ab-text rb-on-surface--muted",
|
|
3129
|
+
children: ["Practitioner: ", resourceName]
|
|
3130
|
+
}) : null;
|
|
3131
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
3132
|
+
className: "ab-text rb-on-surface--muted",
|
|
3133
|
+
children: [
|
|
3134
|
+
/* @__PURE__ */ jsx("p", { children: appointment.serviceName }),
|
|
3135
|
+
/* @__PURE__ */ jsx(AppointmentDateTime, {
|
|
3136
|
+
appointment,
|
|
3137
|
+
dateContext
|
|
3138
|
+
}),
|
|
3139
|
+
appointment.resourceName ? /* @__PURE__ */ jsxs("p", { children: ["Practitioner: ", appointment.resourceName] }) : null,
|
|
3140
|
+
appointment.location ? /* @__PURE__ */ jsx("p", { children: appointment.location }) : null
|
|
3141
|
+
]
|
|
3142
|
+
});
|
|
3143
|
+
}
|
|
3144
|
+
function AppointmentDateTime({ appointment, dateContext }) {
|
|
3145
|
+
if (!dateContext) return null;
|
|
3146
|
+
const start = parseUtcIsoDateTimeString(appointment.startAt);
|
|
3147
|
+
const end = parseUtcIsoDateTimeString(appointment.endAt);
|
|
3148
|
+
if (!start.ok || !end.ok || end.value < start.value) return null;
|
|
3149
|
+
return /* @__PURE__ */ jsx("p", { children: formatDateTimeRange({
|
|
3150
|
+
start: start.value,
|
|
3151
|
+
end: end.value
|
|
3152
|
+
}, dateContext, {
|
|
3153
|
+
date: "short",
|
|
3154
|
+
zone: "always"
|
|
3155
|
+
}) });
|
|
3156
|
+
}
|
|
3089
3157
|
//#endregion
|
|
3090
3158
|
//#region ../blocks/src/system/runtime/components/booking/RequestSentMessage.tsx
|
|
3091
3159
|
function describeRequestSent(request) {
|
|
@@ -3172,7 +3240,7 @@ function bookingViewRequest(view, dateContext, service) {
|
|
|
3172
3240
|
function CompletionMessage({ request, ...success }) {
|
|
3173
3241
|
return request ? /* @__PURE__ */ jsx(RequestSentMessage, { request }) : /* @__PURE__ */ jsx(SuccessMessage, { ...success });
|
|
3174
3242
|
}
|
|
3175
|
-
function BookingFormCompletion({ resourceName, successMessage, redirectState, localNote, customerEmail, demoEmailSuppressed = false, request = null }) {
|
|
3243
|
+
function BookingFormCompletion({ resourceName, appointment, dateContext, successMessage, redirectState, localNote, customerEmail, demoEmailSuppressed = false, request = null }) {
|
|
3176
3244
|
const returnContext = redirectState.kind === "success" ? readAppointmentCheckoutReturnContext(redirectState.sessionId) : null;
|
|
3177
3245
|
const note = redirectState.kind === "success" ? returnContext?.mailingListNote ?? null : localNote;
|
|
3178
3246
|
const confirmedEmail = returnContext?.customerEmail ?? customerEmail;
|
|
@@ -3180,6 +3248,8 @@ function BookingFormCompletion({ resourceName, successMessage, redirectState, lo
|
|
|
3180
3248
|
request,
|
|
3181
3249
|
copy: getBookingSuccessCopy(successMessage),
|
|
3182
3250
|
resourceName,
|
|
3251
|
+
appointment,
|
|
3252
|
+
dateContext,
|
|
3183
3253
|
demoEmailSuppressed,
|
|
3184
3254
|
customerEmail: confirmedEmail
|
|
3185
3255
|
}), note ? /* @__PURE__ */ jsx(BookingMailingListNote, {
|
|
@@ -3188,6 +3258,11 @@ function BookingFormCompletion({ resourceName, successMessage, redirectState, lo
|
|
|
3188
3258
|
className: "rb-mt-4"
|
|
3189
3259
|
}) : null] });
|
|
3190
3260
|
}
|
|
3261
|
+
/** Checkout returns use verified facts; immediate completions use the accepted submission. */
|
|
3262
|
+
function bookingViewAppointment(view, verification) {
|
|
3263
|
+
if (verification.tag === "confirmed") return verification.appointment;
|
|
3264
|
+
return view.kind === "success" ? view.appointment : null;
|
|
3265
|
+
}
|
|
3191
3266
|
//#endregion
|
|
3192
3267
|
//#region ../blocks/src/system/runtime/nodes/booking-form.submit-handler.ts
|
|
3193
3268
|
function appendRebookFlag(url, enabled) {
|
|
@@ -3351,6 +3426,8 @@ const BookingFormClient = ({ siteId: siteIdProp, render }) => {
|
|
|
3351
3426
|
children: /* @__PURE__ */ jsx(BookingFormCompletion, {
|
|
3352
3427
|
successMessage: render.display.successMessage,
|
|
3353
3428
|
resourceName: viewState.resourceName,
|
|
3429
|
+
appointment: bookingViewAppointment(booking.view, verification.state),
|
|
3430
|
+
dateContext: render.hydration.dateContext,
|
|
3354
3431
|
redirectState,
|
|
3355
3432
|
localNote: localMailingListNote,
|
|
3356
3433
|
customerEmail: localCustomerEmail,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as BlockApiProvider } from "./context-
|
|
4
|
-
import { t as BookingFormClient } from "./booking-form.client-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-CkSUep5a.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-BFwxgZpB.mjs";
|
|
4
|
+
import { t as BookingFormClient } from "./booking-form.client-RICCQ0h2.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DYBioANh.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/bookingForm.tsx
|
package/dist/client/bookings.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
3
|
-
import { Er as normalizeEventRegistrationPageSurfaceSubject, F as toHeadlessPaymentSelection, I as toInternalPaymentSelection, Kn as normalizeBookingFormConfig, M as resolveEventRegistrationSubmitPlan, N as resolveHeadlessEventRegistrationStatus, Ot as getSingleSelectedPricingOptionId, P as resolveHeadlessEventRegistrationView, Vt as resolveRegistrationDisplay, Wt as createHostedBlockApiConfig, ar as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, br as readRuntimeNow, j as normalizeEventRegistrationMaxTickets, k as deriveEventRegistrationSteps, qn as normalizeBookingServices, xn as resolveRuntimeEventDestination } from "./wizardSteps-
|
|
4
|
-
import {
|
|
5
|
-
import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-
|
|
6
|
-
import { n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
3
|
+
import { Er as normalizeEventRegistrationPageSurfaceSubject, F as toHeadlessPaymentSelection, I as toInternalPaymentSelection, Kn as normalizeBookingFormConfig, M as resolveEventRegistrationSubmitPlan, N as resolveHeadlessEventRegistrationStatus, Ot as getSingleSelectedPricingOptionId, P as resolveHeadlessEventRegistrationView, Vt as resolveRegistrationDisplay, Wt as createHostedBlockApiConfig, ar as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, br as readRuntimeNow, j as normalizeEventRegistrationMaxTickets, k as deriveEventRegistrationSteps, qn as normalizeBookingServices, xn as resolveRuntimeEventDestination } from "./wizardSteps-BO2OmMO9.mjs";
|
|
4
|
+
import { W as publicEventSchema } from "./noop-B3RNPVrt.mjs";
|
|
5
|
+
import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-C3g8_Hqb.mjs";
|
|
6
|
+
import { n as useBlockApi, t as BlockApiProvider } from "./context-BFwxgZpB.mjs";
|
|
7
7
|
import { i as AltchaWidget, r as isSpamProtectionEnabled, t as getChallengeUrl } from "./src-BNZzXgWu.mjs";
|
|
8
|
-
import { a as useHeadlessBookingFlow, i as HeadlessBookingProvider$1, o as createBookingBlockApiConfig, r as HeadlessBookingPaymentSelectionStep$1, s as getAppointmentBookingOverrideInput, t as BookingFormClient$1 } from "./booking-form.client-
|
|
8
|
+
import { a as useHeadlessBookingFlow, i as HeadlessBookingProvider$1, o as createBookingBlockApiConfig, r as HeadlessBookingPaymentSelectionStep$1, s as getAppointmentBookingOverrideInput, t as BookingFormClient$1 } from "./booking-form.client-RICCQ0h2.mjs";
|
|
9
9
|
import * as React$1 from "react";
|
|
10
10
|
import React, { useCallback, useEffect, useMemo, useReducer } from "react";
|
|
11
11
|
//#region ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-CkSUep5a.mjs";
|
|
3
3
|
import { i as carouselRegionAttributes } from "./carousel.shared-DBnWEJzo.mjs";
|
|
4
|
-
import { t as CarouselNodeClient } from "./carousel.client-
|
|
4
|
+
import { t as CarouselNodeClient } from "./carousel.client-CEWtoZd3.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { C as clsx } from "./ThemedButton-
|
|
2
|
+
import { C as clsx } from "./ThemedButton-BWsDgjMC.mjs";
|
|
3
3
|
import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, o as carouselStatus, r as carouselContents, u as resolveSlidesToShowMobile } from "./carousel.shared-DBnWEJzo.mjs";
|
|
4
4
|
import { t as createLucideIcon } from "./createLucideIcon-CIbxe9em.mjs";
|
|
5
5
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as CartClient } from "./cart.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-CkSUep5a.mjs";
|
|
3
|
+
import { t as CartClient } from "./cart.client-dC938WrX.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-D-yh-P7g.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/cart.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("cart");
|
|
7
7
|
const enhance = (root, props) => mountShopBlockIsland(root, props, CartClient, "cart");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as CartController } from "./shop-commerce-
|
|
2
|
+
import { t as CartController } from "./shop-commerce-DQznNBEo.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/cart.client.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as CheckoutClient } from "./checkout.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-CkSUep5a.mjs";
|
|
3
|
+
import { t as CheckoutClient } from "./checkout.client-CefG0d2F.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-D-yh-P7g.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/checkout.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("checkout");
|
|
7
7
|
const enhance = (root, props) => mountShopBlockIsland(root, props, CheckoutClient, "checkout");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as CheckoutController } from "./shop-commerce-
|
|
2
|
+
import { n as CheckoutController } from "./shop-commerce-DQznNBEo.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/checkout.client.tsx
|