@riverbankcms/sdk 0.159.0 → 0.160.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/README.md +4 -4
- package/dist/_dts/{BlocksIslandsHydrator-Cj1i1Yhh.d.ts → BlocksIslandsHydrator-CoqeotCL.d.ts} +1 -1
- package/dist/_dts/{Page-Cgzbv22M.d.ts → Page-C0ENVLCF.d.ts} +13 -6
- package/dist/_dts/{SdkPreviewMode-BC_FGc6b.d.ts → SdkPreviewMode-jZK0A49V.d.ts} +54 -126
- package/dist/_dts/{client-BOK-YHVJ.d.ts → client-uMMuPq9V.d.ts} +1 -1
- package/dist/_dts/{content-types-CsrYWxq_.d.ts → content-types-D6nXGqdQ.d.ts} +18 -18
- package/dist/_dts/{contracts-ClgMD-9g.d.ts → contracts-Bnmj1nxu.d.ts} +6 -5
- package/dist/_dts/{footerPageOutline-C_IDuELl.d.ts → footerPageOutline-CeLjFX8b.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-B7bhYSWx.d.ts → generatePageMetadata-nyU8q02J.d.ts} +2 -2
- package/dist/_dts/{index-DzUdUaJ-.d.ts → index-BaaGBY1v.d.ts} +2 -2
- package/dist/_dts/{index-CcaG6O13.d.ts → index-Bg64CkV-.d.ts} +4 -4
- package/dist/_dts/index-Blwl7yl6.d.ts +13 -0
- package/dist/_dts/{index-DMOfW1A7.d.ts → index-C5xslEBn.d.ts} +2 -2
- package/dist/_dts/{index-Dt3XSGzY.d.ts → index-CEaKil7G.d.ts} +2 -2
- package/dist/_dts/{index-BZ4fb2zz.d.ts → index-DahMwisK.d.ts} +3 -3
- package/dist/_dts/index-lkpjIg5i.d.ts +66 -0
- package/dist/_dts/{index-Ci1PEk82.d.ts → index-nVoi_74l.d.ts} +2 -2
- package/dist/_dts/{loadContent-C1JI2pG0.d.ts → loadContent-CYLmzvLq.d.ts} +16 -7
- package/dist/_dts/{resolvePageContent-BtRUtrJa.d.ts → resolvePageContent-DqnxChOs.d.ts} +2 -2
- package/dist/_dts/{constants-DkcKHMX-.d.ts → runtime-BY8DQBbT.d.ts} +10 -16
- package/dist/_dts/{hosted-booking-appearance-ChGCQYdQ.d.ts → schema-D0bNcPWK.d.ts} +6907 -6762
- 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 +12 -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 +6 -6
- 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 +10 -28
- 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-CI9dYWJ8.d.ts → types-CFrYuXYP.d.ts} +2 -2
- package/dist/_dts/{navigation-BnV_hOZy.d.ts → types-D8czmbQF.d.ts} +15911 -17318
- package/dist/_dts/{types--oWXIfyz.d.ts → types-DSgmJ15W.d.ts} +7 -7
- package/dist/_dts/{types-CMFIZGUI.d.ts → types-Dm-KW7nj.d.ts} +10 -13
- package/dist/_dts/{validation-Ct-GL0eA.d.ts → validation-Bmb4WnHg.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DKS8Ba30.mjs → BlocksIslandsHydrator-DZRKi6tT.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-Cg9v6d7Y.mjs → BookingMailingListNote-C00sLLdL.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-BoVCTUXy.mjs → CalendarNavigationChevron-CHSi9b3E.mjs} +6 -6
- package/dist/client/{CheckboxChoice-BF9eCNno.mjs → CheckboxChoice-Bhm6RAUL.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-BxRVCJG3.mjs → DemoBookingPortalAccess-CaN-7ui7.mjs} +6 -6
- package/dist/client/{DemoPortalSignInLink-DHxYgkT6.mjs → DemoPortalSignInLink-ClxN5_xZ.mjs} +1 -1
- package/dist/client/{EventCalendar.client-BI-kvwXf.mjs → EventCalendar.client-BncvSa1n.mjs} +10 -9
- package/dist/client/{EventCombined.client-DIvnoN5l.mjs → EventCombined.client-DluBxVVu.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-B3XUyNY9.mjs → EventEmbeddedCheckoutStep-BiJrMtfp.mjs} +1 -1
- package/dist/client/{EventItem-BRMtEaa6.mjs → EventItem-CXhnT9pF.mjs} +11 -6
- package/dist/client/{EventListWeekNavigation-B8DzAUDa.mjs → EventListWeekNavigation-V-dtoDlD.mjs} +1 -1
- package/dist/client/{EventListing.client-Bo4qzQi0.mjs → EventListing.client-DPO6SZbx.mjs} +3 -3
- package/dist/client/{EventListing.view-D2vemnCx.mjs → EventListing.view-B-Yi5JZS.mjs} +7 -7
- package/dist/client/{EventRegistrationPayment-e5XWtygG.mjs → EventRegistrationPayment-Dc3Fnlnw.mjs} +77 -96
- package/dist/client/{LeafletStaticMap-dlapZ6mi.mjs → LeafletStaticMap-ClZCCzAm.mjs} +1 -1
- package/dist/client/{Page-Dqpv9Ggi.mjs → Page-7PkzO04N.mjs} +1941 -2069
- package/dist/client/{StepIndicator-BrvKa_8H.mjs → StepIndicator-DiD6euZ8.mjs} +3 -3
- package/dist/client/{TabBarFragment-DvzIV75f.mjs → TabBarFragment-BHd8GN8y.mjs} +1 -1
- package/dist/client/{ThemedButton-DVBC_pS9.mjs → ThemedButton-C22C9cCF.mjs} +174 -93
- package/dist/client/{accordion-ByLpb4Dz.mjs → accordion-2m27DsIk.mjs} +1 -1
- package/dist/client/{booking-form.client-BLndwxpx.mjs → booking-form.client-BddWV5w1.mjs} +12 -12
- package/dist/client/{bookingForm-CTxTEgHX.mjs → bookingForm-bcdXQjmw.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{carousel-C8ef0vnT.mjs → carousel-D7nj9I0y.mjs} +2 -2
- package/dist/client/{carousel.client-BJGoJVtg.mjs → carousel.client-AffDJo_s.mjs} +1 -1
- package/dist/client/{cart-BpH6jkUO.mjs → cart-PN6yCw1H.mjs} +3 -3
- package/dist/client/{cart.client-DV78Td13.mjs → cart.client-D4t1f0cJ.mjs} +1 -1
- package/dist/client/{checkout-BJVb2RpL.mjs → checkout-CsTwXVSb.mjs} +3 -3
- package/dist/client/{checkout.client-CqGPXPSm.mjs → checkout.client-BhQE3zY7.mjs} +1 -1
- package/dist/client/client.mjs +25 -13
- package/dist/client/{context-BRgBWthI.mjs → context-BLAvalAa.mjs} +1 -1
- package/dist/client/{cta-D8ucLsvX.mjs → cta-CUXhX_D7.mjs} +2 -1
- package/dist/client/{dateFormatting-LeKNQ-iX.mjs → dateFormatting-BHIHxNuo.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CjstiFPh.mjs → demoPortalMagicLink-R-awbk_0.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-BaQJyI9x.mjs → enhanceHeaderSection-9Q93uvTo.mjs} +3 -3
- package/dist/client/{event-details.client-CYNQYOsP.mjs → event-details.client-BS1WtG-a.mjs} +2 -2
- package/dist/client/{event-registration.client-DDqSpN36.mjs → event-registration.client-BXndwsET.mjs} +14 -14
- package/dist/client/{eventCalendar-3vQtuC9X.mjs → eventCalendar-HyoOt1Qz.mjs} +4 -4
- package/dist/client/{eventCombined-CEJFMjqV.mjs → eventCombined-sdG5oEaH.mjs} +4 -4
- package/dist/client/{eventDetails-nGh47jef.mjs → eventDetails-FFAknE4w.mjs} +2 -2
- package/dist/client/{eventListing-BL3Ptb83.mjs → eventListing-CGK6urk3.mjs} +4 -4
- package/dist/client/{eventRegistration-DDSO6KB2.mjs → eventRegistration-VhrvCs4l.mjs} +4 -4
- package/dist/client/{form-DjNLfy2Z.mjs → form-C-B5O_ko.mjs} +3 -3
- package/dist/client/{form.client-Cj0By6ot.mjs → form.client-DoZVcl8d.mjs} +5 -5
- package/dist/client/{form.parts-DyA9C5Hy.mjs → form.parts-mttKpgif.mjs} +3 -3
- package/dist/client/{formatDate-CZo0MPTA.mjs → formatDate-xUSCknEO.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-JjSq6Mzp.mjs → headerSection-BHUEXsaI.mjs} +2 -2
- package/dist/client/{location-map.client-DRN1JePj.mjs → location-map.client-Cylb_MHw.mjs} +2 -2
- package/dist/client/{location-map.view-CuCvQdvp.mjs → location-map.view-Cx4Bl7ij.mjs} +69 -6
- package/dist/client/{locationMap-B9srHHzZ.mjs → locationMap-QnKJi-nZ.mjs} +2 -2
- package/dist/client/{newsletter-form.client-C2EgEBP1.mjs → newsletter-form.client-D_n0rftg.mjs} +8 -8
- package/dist/client/{newsletter-form.parts-CaldoFmi.mjs → newsletter-form.parts-DKHye4IE.mjs} +2 -2
- package/dist/client/{newsletterForm-hm7L17LM.mjs → newsletterForm-tEaYelzx.mjs} +3 -3
- package/dist/client/{noop-M8FTSgm2.mjs → noop-B610YKEx.mjs} +10 -3
- package/dist/client/portal/client.mjs +4559 -114
- package/dist/client/{product-detail.client-y86uwzEI.mjs → product-detail.client-DUf5x5Jt.mjs} +1 -1
- package/dist/client/{product-list.client-_JBndYZT.mjs → product-list.client-Cqp1BPTV.mjs} +1 -1
- package/dist/client/{productDetail-D-9fb2cW.mjs → productDetail-B8bBiogP.mjs} +3 -3
- package/dist/client/{productList-BSRlnwBW.mjs → productList-BKN4D-1z.mjs} +3 -3
- package/dist/client/{propsDecoder-DhbGL302.mjs → propsDecoder-2nNZh2Oe.mjs} +3 -3
- package/dist/client/{registry.server-BaX0hxf5.mjs → registry.server-BAm4RPNJ.mjs} +819 -855
- package/dist/client/rendering/client.mjs +27 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +47 -28
- package/dist/client/{richText-coerce-Cny2Ukb6.mjs → richText-coerce-Cv-qomNB.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-96er7pIx.mjs → routeIslandApiConfig-C5u8MbAA.mjs} +1 -1
- package/dist/client/{shop-CnIJfdZA.mjs → shop-DZNC0VKk.mjs} +3 -3
- package/dist/client/{shop-commerce-CsLwzq5O.mjs → shop-commerce-DdX4LSa3.mjs} +12 -12
- package/dist/client/{shop-commerce-store--O8GRBwr.mjs → shop-commerce-store-BJtrZov9.mjs} +1 -1
- package/dist/client/{shop.client-BcaJ-acA.mjs → shop.client-DmDd-igg.mjs} +15 -15
- package/dist/client/{shop.interactive-BxL_bshW.mjs → shop.interactive-5SnnDHz3.mjs} +368 -35
- package/dist/client/{shopShared-VZjPOfCX.mjs → shopShared-CPqUlAh9.mjs} +2 -2
- package/dist/client/{src-7cXhT0G_.mjs → src-VIsPY-kw.mjs} +6 -1
- package/dist/client/timetableModel-C19rcHEw.mjs +960 -0
- package/dist/client/{useAvailableSlots-pTXuY3jV.mjs → useAvailableSlots-BjbJXotk.mjs} +3 -3
- package/dist/client/{useBookingNowIso-D14J-EhJ.mjs → useBookingNowIso-CMgfL7YJ.mjs} +1 -1
- package/dist/client/{useDiscountApply-o5sIVZ2u.mjs → useDiscountApply-KG8jB7WC.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-DJhFP_rg.mjs → useDiscountCodeUi-DK2w_i0a.mjs} +1 -1
- package/dist/client/{useEventPagination-DMmNf2FP.mjs → useEventPagination-DW6MCirb.mjs} +11 -10
- package/dist/client/uuid-BETKW8rS.mjs +12 -0
- package/dist/client/{view-BgPql2yH2.mjs → view-CkUn3Y0Y.mjs} +4 -4
- package/dist/client/{view-D1R3Lk05.mjs → view-CseyBW07.mjs} +6 -5
- package/dist/client/{wizardSteps-C0TsNqJc.mjs → wizardSteps-zgq10lN1.mjs} +162 -30
- package/dist/preview-next/before-render.mjs +1 -1
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-BFlBqSu4.mjs → EventEmbeddedCheckoutStep-lUHBrzHv.mjs} +1 -1
- package/dist/preview-next/client/{PreviewEditorSidebar-DADCj_ET.mjs → PreviewEditorSidebar-DWyUGCAG.mjs} +1281 -171
- package/dist/preview-next/client/{PreviewEditorUI-La40Dmmh.mjs → PreviewEditorUI-Wq0b3Daw.mjs} +52 -79
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CWN44I_B.mjs → SdkPreviewModeRuntime-BtZPcwYV.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-406Hw9zY.mjs → SdkPreviewModeRuntime-wSI_R361.mjs} +856 -2171
- package/dist/preview-next/client/{SiteChromeCustomizeContext-BdwEZoo9.mjs → SiteChromeCustomizeContext-Hc4pYnNe.mjs} +115951 -110090
- package/dist/preview-next/client/{ThemedButton-BEOPss9H.mjs → ThemedButton-DzeycIlD.mjs} +204 -93
- package/dist/preview-next/client/{previewChromeSurface-BVUKIYG0.mjs → previewChromeSurface-Corq4AG7.mjs} +3 -8
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-Cy9AKPy5.mjs → sdk-runtime-CWymRWhK.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +1359 -0
- package/dist/preview-next/client/{spinner-Bhpzz2vO.mjs → spinner-C4If5Y-O.mjs} +1 -1
- package/dist/preview-next/editor-base.css +62 -0
- package/dist/preview-next/editor-chrome.css +85 -0
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DM22uOXM.mjs → route-contract-8csADeIT.mjs} +149 -112
- package/dist/server/{Block.shared-DB6fb1pR.mjs → Block.shared-D1_gonwM.mjs} +6 -6
- package/dist/server/{bindings-z2daXp-2.mjs → bindings-CFmJg5lm.mjs} +2 -2
- package/dist/server/{client-Cv-osXoU.mjs → client-DPsi0Dai.mjs} +9 -7
- package/dist/server/config-template-validation.mjs +50 -10
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-BNMDYCm8.mjs → loadContent-RMCcuVU_.mjs} +33 -20
- package/dist/server/loadPage-DUPP51C-.mjs +2 -0
- package/dist/server/{loadPage-CjA_F_AF.mjs → loadPage-DhDGzj7t.mjs} +8 -5
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-CGodrtqi.mjs → overrideResolution-OxY5FMuy.mjs} +1 -1
- package/dist/server/{overrides-DxRC724a.mjs → overrides-Bz_A6sB9.mjs} +651 -542
- package/dist/server/page-converter.mjs +8 -10
- package/dist/server/{prebuild-C6bhjRKT.mjs → prebuild-B_1vrSru.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-DZ5Fq_-r.mjs → prefetchBlockData-B7ukYXXR.mjs} +841 -887
- package/dist/server/{publicProducts-C3meXS2o.mjs → publicProducts-Djbpc81A.mjs} +166 -129
- package/dist/server/{blocks-BaG8Qpaa.mjs → registry-eFjKtEhF.mjs} +2049 -1451
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-CbGDakvp.mjs → resolveBlockData-DYvEa9c5.mjs} +6 -3
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-Bs735S27.mjs → schema-C3dJ5UkL.mjs} +148 -88
- package/dist/server/server.mjs +3 -3
- package/dist/server/{siteChromeOverlayClearance-BangtD8A.mjs → siteChromeOverlayClearance-DALIAMwo.mjs} +108 -11
- package/dist/server/{src-B935_bzN.mjs → src-C5Mu-z0F.mjs} +268 -189
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-DK2YBNqy.mjs → themeAdmission-ruoyXb_0.mjs} +2 -2
- package/dist/server/{three-pass-converter-CmmchOFC.mjs → three-pass-converter-Chnb1XD-.mjs} +2 -58
- package/dist/server/{validation-BtHE2S_D.mjs → validation-B-Xar8QS.mjs} +22 -63
- package/dist/server/{version-CNCdL6id.mjs → version-Bg7VHK3i.mjs} +1 -1
- package/dist/styles/index.css +78 -0
- package/package.json +8 -3
- package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
- package/dist/_dts/index-cnymEAZY.d.ts +0 -1
- package/dist/client/timetableModel-D09jPdue.mjs +0 -480
- package/dist/preview-next/client/siteStyleAccess-CFMmoMZb.mjs +0 -1326
- package/dist/server/loadPage-jade28Xh.mjs +0 -2
|
@@ -1,35 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
import { r as indexRenderableMediaAssets } from "../renderableMediaAssetAdmission-DGjBr_e-.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as EventRegistrationIslandClient } from "../event-registration.client-
|
|
11
|
-
import { t as ShopClient } from "../shop.client-
|
|
4
|
+
import { C as clsx, Nr as formatCurrencyAmount, ct as ICON_CONFIG } from "../ThemedButton-C22C9cCF.mjs";
|
|
5
|
+
import { t as assertNever } from "../src-VIsPY-kw.mjs";
|
|
6
|
+
import { Jt as MediaPlaceholder, Kt as RichText, Qt as renderVideo, Xt as mediaImageHostProps, Yt as computeMediaTransformStyle, Zt as renderAudio, nn as resolveMediaNodeResponsiveImage, qt as ImagePresets } from "../wizardSteps-zgq10lN1.mjs";
|
|
7
|
+
import { i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "../DemoBookingPortalAccess-CaN-7ui7.mjs";
|
|
8
|
+
import { rn as staticHeaderChromeRuntime } from "../shop.interactive-5SnnDHz3.mjs";
|
|
9
|
+
import { M as composeHeaderSectionWrapperClassName, N as markEditableSurfaceForwarding, P as splitPositioningClasses, c as accordionItemPartSlots, d as resolveAccordionIconStyle, i as WeeklySlotAvailabilityView, l as accordionLookAttributes, n as runtimeBackedBlockModes, r as runtimeBackedBlockServerEntries, s as HeaderSectionFrame, t as serverComponentRegistry, u as accordionIconColorStyle } from "../registry.server-BAm4RPNJ.mjs";
|
|
10
|
+
import { t as EventRegistrationIslandClient } from "../event-registration.client-BXndwsET.mjs";
|
|
11
|
+
import { t as ShopClient } from "../shop.client-DmDd-igg.mjs";
|
|
12
12
|
import { t as FeedbackMessage } from "../FeedbackMessage-CSJrAuXH.mjs";
|
|
13
|
+
import { f as Text } from "../timetableModel-C19rcHEw.mjs";
|
|
13
14
|
import { t as CarouselSlideContent } from "../carousel.shared-DBnWEJzo.mjs";
|
|
14
|
-
import { t as coerceRichTextDoc } from "../richText-coerce-
|
|
15
|
-
import { n as useBlockApi, t as BlockApiProvider$1 } from "../context-
|
|
16
|
-
import { n as BookingFormNodeClient } from "../booking-form.client-
|
|
17
|
-
import { o as getRuntimeTimeZone } from "../useAvailableSlots-
|
|
15
|
+
import { t as coerceRichTextDoc } from "../richText-coerce-Cv-qomNB.mjs";
|
|
16
|
+
import { n as useBlockApi, t as BlockApiProvider$1 } from "../context-BLAvalAa.mjs";
|
|
17
|
+
import { n as BookingFormNodeClient } from "../booking-form.client-BddWV5w1.mjs";
|
|
18
|
+
import { o as getRuntimeTimeZone } from "../useAvailableSlots-BjbJXotk.mjs";
|
|
18
19
|
import { t as createLucideIcon } from "../createLucideIcon-CIbxe9em.mjs";
|
|
19
|
-
import { t as CarouselNodeClient } from "../carousel.client-
|
|
20
|
-
import { t as EventDetailsIslandClient } from "../event-details.client-
|
|
21
|
-
import { t as LocationMapIslandClient } from "../location-map.client-
|
|
22
|
-
import { t as ProductListClient } from "../product-list.client-
|
|
23
|
-
import { t as ProductDetailClient } from "../product-detail.client-
|
|
24
|
-
import { t as CartClient } from "../cart.client-
|
|
25
|
-
import { t as CheckoutClient } from "../checkout.client-
|
|
26
|
-
import { t as mountHeaderChromeRuntime } from "../enhanceHeaderSection-
|
|
27
|
-
import { t as EventListingClient } from "../EventListing.client-
|
|
28
|
-
import { n as EventCombinedIslandClient } from "../EventCombined.client-
|
|
29
|
-
import { t as EventCalendarClient } from "../EventCalendar.client-
|
|
30
|
-
import { t as FormNodeClient } from "../form.client-
|
|
31
|
-
import { t as NewsletterFormClient } from "../newsletter-form.client-
|
|
32
|
-
import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-
|
|
20
|
+
import { t as CarouselNodeClient } from "../carousel.client-AffDJo_s.mjs";
|
|
21
|
+
import { t as EventDetailsIslandClient } from "../event-details.client-BS1WtG-a.mjs";
|
|
22
|
+
import { t as LocationMapIslandClient } from "../location-map.client-Cylb_MHw.mjs";
|
|
23
|
+
import { t as ProductListClient } from "../product-list.client-Cqp1BPTV.mjs";
|
|
24
|
+
import { t as ProductDetailClient } from "../product-detail.client-DUf5x5Jt.mjs";
|
|
25
|
+
import { t as CartClient } from "../cart.client-D4t1f0cJ.mjs";
|
|
26
|
+
import { t as CheckoutClient } from "../checkout.client-BhQE3zY7.mjs";
|
|
27
|
+
import { t as mountHeaderChromeRuntime } from "../enhanceHeaderSection-9Q93uvTo.mjs";
|
|
28
|
+
import { t as EventListingClient } from "../EventListing.client-DPO6SZbx.mjs";
|
|
29
|
+
import { n as EventCombinedIslandClient } from "../EventCombined.client-DluBxVVu.mjs";
|
|
30
|
+
import { t as EventCalendarClient } from "../EventCalendar.client-BncvSa1n.mjs";
|
|
31
|
+
import { t as FormNodeClient } from "../form.client-DoZVcl8d.mjs";
|
|
32
|
+
import { t as NewsletterFormClient } from "../newsletter-form.client-D_n0rftg.mjs";
|
|
33
|
+
import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-DZRKi6tT.mjs";
|
|
33
34
|
import * as React$1 from "react";
|
|
34
35
|
import React, { createContext, createElement, startTransition, useContext, useEffect, useMemo, useReducer, useRef } from "react";
|
|
35
36
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { a as mediaIdentifierSchema, i as resolveManagedMediaReference, n as renderableMediaAssetSchema, o as parseCanonicalMediaIdentifier, s as parseMediaIdentifier, t as buildRenderableMediaAssetIndex } from "./renderableMediaAssetAdmission-DGjBr_e-.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { $t as resolveImageSourceSetWithContext$1, Kt as RichText$2, Yt as computeMediaTransformStyle, br as readRuntimeNow, en as resolveImageUrl$1, in as sanitizeHref, tn as resolveImageUrlWithContext$1, xr as resolveDateRuntimeContext } from "./wizardSteps-
|
|
5
|
-
import { $ as isRecord, Ct as toUtcIsoDateTimeString } from "./noop-
|
|
6
|
-
import { A as resolveAuthoredLinkHref, B as deriveFieldValidationPlan, C as MISSING_SDK_THEME_ERROR_CODE, D as makeDefaultBlockComponent, E as
|
|
7
|
-
import {
|
|
3
|
+
import { Dr as runtimeMediaSchema, Er as persistableMediaSchema, Tr as mediaSchema } from "./ThemedButton-C22C9cCF.mjs";
|
|
4
|
+
import { $t as resolveImageSourceSetWithContext$1, Kt as RichText$2, Yt as computeMediaTransformStyle, br as readRuntimeNow, en as resolveImageUrl$1, in as sanitizeHref, tn as resolveImageUrlWithContext$1, xr as resolveDateRuntimeContext } from "./wizardSteps-zgq10lN1.mjs";
|
|
5
|
+
import { $ as isRecord, Ct as toUtcIsoDateTimeString } from "./noop-B610YKEx.mjs";
|
|
6
|
+
import { A as resolveAuthoredLinkHref, B as deriveFieldValidationPlan, C as MISSING_SDK_THEME_ERROR_CODE, D as makeDefaultBlockComponent, E as prefetchBlockDataWithFailures, F as siteFooterManifest, I as siteHeaderManifest, J as resolveSdkFooterMode, L as admitTransportedRenderableManifestContent, M as normalizeRenderStage, N as resolveRouteHrefForStage, O as renderBlock, P as getBlockDefinition, R as compileManifestContentContract, S as resolveSiteCustomBlocks, T as requireSdkTheme, _ as invalidRenderableBlock, a as ThemeScope, b as resolveSdkBlockManifest, c as PageRenderer, d as parseBlocksTheme, f as applyBindingsToContent, g as collectMediaAssetSidecar, h as buildSiteRenderSupport, i as renderWithSdkThemeRuntime, j as isRouteVisibleInStage, k as getDefaultComponentRegistry, l as toBlocksPageRendererDataContext, m as buildRenderablePageOutline, n as planLayoutThemeRuntime, o as EditorPageRenderer, p as BINDING_TRANSFORM_VALUES$1, q as resolveFooterRenderPlan, r as renderWithOverrideOnlyRuntime, s as MissingBlockOverrideError, t as Page, tt as readPublishedBlockPlacement, u as buildThemeRuntime, v as projectRenderablePageOutline, w as MissingSdkThemeError, x as sanitizeSdkRuntimeBlockContent, y as readInvalidBlockAdmission, z as admitLayoutGridForPlan } from "./Page-7PkzO04N.mjs";
|
|
7
|
+
import { Kt as parseFieldDefinition, Qt as projectRepeaterGridLayoutForRendering$1, Zt as projectRepeaterGridLayout$1 } from "./registry.server-BAm4RPNJ.mjs";
|
|
8
8
|
import { o as setContextResolveImageUrlContext, t as buildResolveImageUrlContext } from "./mediaContext-DThoeEBU.mjs";
|
|
9
9
|
import { n as toBlocksMediaAssets, t as toBlocksImageResolveContextInput } from "./mediaAssets-BOj-Co0B.mjs";
|
|
10
10
|
import "react";
|
|
@@ -840,7 +840,7 @@ function buildSingleBlockPageOutline({ blockId, blockKind }) {
|
|
|
840
840
|
}
|
|
841
841
|
async function loadStandaloneBlockData({ blockKind, blockId, siteId, pageId, previewStage, client, hasDefinition, now, bookingTimeZone }) {
|
|
842
842
|
if (!client || !blockId || !siteId || !hasDefinition) return void 0;
|
|
843
|
-
return (await
|
|
843
|
+
return (await prefetchBlockDataWithFailures(buildSingleBlockPageOutline({
|
|
844
844
|
blockId,
|
|
845
845
|
blockKind
|
|
846
846
|
}), {
|
|
@@ -851,7 +851,7 @@ async function loadStandaloneBlockData({ blockKind, blockId, siteId, pageId, pre
|
|
|
851
851
|
now: readRuntimeNow(now),
|
|
852
852
|
bookingTimeZone
|
|
853
853
|
}
|
|
854
|
-
}, client))[blockId];
|
|
854
|
+
}, client)).resolvedData[blockId];
|
|
855
855
|
}
|
|
856
856
|
function buildStandaloneBlockViewModel({ now, bookingTimeZone, siteId, pageId, previewStage, apiBaseUrl, portalToken, readAuthority, routeMap, pagesByIdentifier, entriesByIdentifier }) {
|
|
857
857
|
return { $root: {
|
|
@@ -1423,7 +1423,7 @@ function toHostDataLoaderWarning(failure) {
|
|
|
1423
1423
|
}
|
|
1424
1424
|
}
|
|
1425
1425
|
const DEFAULT_RESOLVE_BLOCK_DATA_DEPS = {
|
|
1426
|
-
prefetchBlockData,
|
|
1426
|
+
prefetchBlockData: prefetchBlockDataWithFailures,
|
|
1427
1427
|
executeCodeLoaders,
|
|
1428
1428
|
mergeLoaderResults,
|
|
1429
1429
|
warn: warnHostDataLoaderFailure
|
|
@@ -1470,7 +1470,10 @@ async function resolveBlockDataWithDeps(deps, input) {
|
|
|
1470
1470
|
searchParams: input.policy.searchParams
|
|
1471
1471
|
}, input.policy.overrides);
|
|
1472
1472
|
for (const failure of hostResult.failures) deps.warn(toHostDataLoaderWarning(failure));
|
|
1473
|
-
return
|
|
1473
|
+
return {
|
|
1474
|
+
...configData,
|
|
1475
|
+
resolvedData: deps.mergeLoaderResults(configData.resolvedData, hostResult.data)
|
|
1476
|
+
};
|
|
1474
1477
|
}
|
|
1475
1478
|
//#endregion
|
|
1476
1479
|
//#region src/rendering/helpers/loadPage.ts
|
|
@@ -1557,7 +1560,7 @@ async function loadPageWithDeps(deps, params) {
|
|
|
1557
1560
|
previewStage,
|
|
1558
1561
|
customBlocks: support.customBlocks
|
|
1559
1562
|
});
|
|
1560
|
-
const
|
|
1563
|
+
const prefetched = await resolveBlockDataWithDeps(deps, {
|
|
1561
1564
|
bookingTimeZone: support.bookingTimeZone,
|
|
1562
1565
|
now: support.now,
|
|
1563
1566
|
page: projectRenderablePageOutline(pageOutline),
|
|
@@ -1580,9 +1583,12 @@ async function loadPageWithDeps(deps, params) {
|
|
|
1580
1583
|
dataContext: {
|
|
1581
1584
|
siteName: support.site.title,
|
|
1582
1585
|
previewStage,
|
|
1583
|
-
now: support.now
|
|
1586
|
+
now: support.now,
|
|
1587
|
+
loaderFailures: prefetched.loaderFailures,
|
|
1588
|
+
prefetchedBlockData: prefetched,
|
|
1589
|
+
loaderSnapshot: prefetched.loaderSnapshot
|
|
1584
1590
|
},
|
|
1585
|
-
resolvedData,
|
|
1591
|
+
resolvedData: prefetched.resolvedData,
|
|
1586
1592
|
bookingOfferingPresets: support.bookingOfferingPresets,
|
|
1587
1593
|
openingHours: support.openingHours,
|
|
1588
1594
|
siteTerms: support.siteTerms,
|
|
@@ -1708,19 +1714,21 @@ async function processTemplatePage(input) {
|
|
|
1708
1714
|
purpose: input.pagePurpose,
|
|
1709
1715
|
blocks
|
|
1710
1716
|
};
|
|
1717
|
+
const prefetched = await resolveBlockDataWithDeps(input.deps, {
|
|
1718
|
+
bookingTimeZone: input.bookingTimeZone,
|
|
1719
|
+
now: input.now,
|
|
1720
|
+
page: projectRenderablePageOutline(templatePage),
|
|
1721
|
+
siteId: input.siteId,
|
|
1722
|
+
renderTarget: createTemplateRenderTarget(input.renderTargetSource, template.id),
|
|
1723
|
+
previewStage: input.previewStage,
|
|
1724
|
+
policy: input.blockDataPolicy,
|
|
1725
|
+
client: input.client,
|
|
1726
|
+
customBlocks: input.customBlocks
|
|
1727
|
+
});
|
|
1711
1728
|
return {
|
|
1712
1729
|
templatePage,
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
now: input.now,
|
|
1716
|
-
page: projectRenderablePageOutline(templatePage),
|
|
1717
|
-
siteId: input.siteId,
|
|
1718
|
-
renderTarget: createTemplateRenderTarget(input.renderTargetSource, template.id),
|
|
1719
|
-
previewStage: input.previewStage,
|
|
1720
|
-
policy: input.blockDataPolicy,
|
|
1721
|
-
client: input.client,
|
|
1722
|
-
customBlocks: input.customBlocks
|
|
1723
|
-
})
|
|
1730
|
+
prefetchedBlockData: prefetched,
|
|
1731
|
+
...prefetched
|
|
1724
1732
|
};
|
|
1725
1733
|
}
|
|
1726
1734
|
function resolveTemplateBlockSequence(input) {
|
|
@@ -1954,7 +1962,7 @@ async function loadContentFromContentResponseWithDeps(deps, params) {
|
|
|
1954
1962
|
createdAt: entryData.createdAt,
|
|
1955
1963
|
updatedAt: entryData.updatedAt
|
|
1956
1964
|
};
|
|
1957
|
-
const { templatePage, resolvedData } = await processEntryTemplate({
|
|
1965
|
+
const { templatePage, resolvedData, prefetchedBlockData, loaderSnapshot, loaderFailures } = await processEntryTemplate({
|
|
1958
1966
|
bookingTimeZone: support.bookingTimeZone,
|
|
1959
1967
|
now: support.now,
|
|
1960
1968
|
templates: contentResponse.templates,
|
|
@@ -1974,6 +1982,9 @@ async function loadContentFromContentResponseWithDeps(deps, params) {
|
|
|
1974
1982
|
resolvedData,
|
|
1975
1983
|
dataContext: {
|
|
1976
1984
|
previewStage,
|
|
1985
|
+
prefetchedBlockData,
|
|
1986
|
+
loaderSnapshot,
|
|
1987
|
+
loaderFailures,
|
|
1977
1988
|
contentEntry: {
|
|
1978
1989
|
...entry.content ?? {},
|
|
1979
1990
|
id: entry.id,
|
|
@@ -2006,7 +2017,7 @@ async function loadContentFromContentResponseWithDeps(deps, params) {
|
|
|
2006
2017
|
updatedAt: pageSurfaceData.updatedAt,
|
|
2007
2018
|
contentSource: pageSurfaceData.contentSource
|
|
2008
2019
|
};
|
|
2009
|
-
const { templatePage, resolvedData } = await processTemplatePage({
|
|
2020
|
+
const { templatePage, resolvedData, prefetchedBlockData, loaderSnapshot, loaderFailures } = await processTemplatePage({
|
|
2010
2021
|
bookingTimeZone: support.bookingTimeZone,
|
|
2011
2022
|
now: support.now,
|
|
2012
2023
|
templates: contentResponse.templates,
|
|
@@ -2048,6 +2059,9 @@ async function loadContentFromContentResponseWithDeps(deps, params) {
|
|
|
2048
2059
|
resolvedData,
|
|
2049
2060
|
dataContext: {
|
|
2050
2061
|
previewStage,
|
|
2062
|
+
prefetchedBlockData,
|
|
2063
|
+
loaderSnapshot,
|
|
2064
|
+
loaderFailures,
|
|
2051
2065
|
pageSurface: {
|
|
2052
2066
|
...pageSurface.content ?? {},
|
|
2053
2067
|
id: pageSurface.id,
|
|
@@ -2073,7 +2087,7 @@ async function loadContentFromContentResponseWithDeps(deps, params) {
|
|
|
2073
2087
|
previewStage,
|
|
2074
2088
|
customBlocks: support.customBlocks
|
|
2075
2089
|
});
|
|
2076
|
-
const
|
|
2090
|
+
const prefetched = await resolveBlockDataWithDeps(deps, {
|
|
2077
2091
|
bookingTimeZone: support.bookingTimeZone,
|
|
2078
2092
|
now: support.now,
|
|
2079
2093
|
page: projectRenderablePageOutline(pageOutline),
|
|
@@ -2097,8 +2111,13 @@ async function loadContentFromContentResponseWithDeps(deps, params) {
|
|
|
2097
2111
|
theme: support.theme,
|
|
2098
2112
|
siteId,
|
|
2099
2113
|
...support.customBlocks ? { customBlocks: support.customBlocks } : {},
|
|
2100
|
-
resolvedData,
|
|
2101
|
-
dataContext: {
|
|
2114
|
+
resolvedData: prefetched.resolvedData,
|
|
2115
|
+
dataContext: {
|
|
2116
|
+
previewStage,
|
|
2117
|
+
prefetchedBlockData: prefetched,
|
|
2118
|
+
loaderSnapshot: prefetched.loaderSnapshot,
|
|
2119
|
+
loaderFailures: prefetched.loaderFailures
|
|
2120
|
+
},
|
|
2102
2121
|
bookingOfferingPresets: support.bookingOfferingPresets,
|
|
2103
2122
|
openingHours: support.openingHours,
|
|
2104
2123
|
siteTerms: support.siteTerms,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { X as RichTextDocSchema, t as logger } from "./noop-
|
|
2
|
+
import { X as RichTextDocSchema, t as logger } from "./noop-B610YKEx.mjs";
|
|
3
3
|
//#region ../blocks/src/system/runtime/nodes/richText-coerce.ts
|
|
4
4
|
function parseRichTextDoc(value) {
|
|
5
5
|
const parsed = RichTextDocSchema.safeParse(value);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Wt as createHostedBlockApiConfig } from "./wizardSteps-
|
|
2
|
+
import { Wt as createHostedBlockApiConfig } from "./wizardSteps-zgq10lN1.mjs";
|
|
3
3
|
//#region src/rendering/islands/enhancers/routeIslandApiConfig.ts
|
|
4
4
|
function buildRouteIslandApiConfig({ apiBaseUrl, portalToken, previewToken, siteId, stage, readAuthority }) {
|
|
5
5
|
if (readAuthority) return createHostedBlockApiConfig({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as ShopClient } from "./shop.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-2nNZh2Oe.mjs";
|
|
3
|
+
import { t as ShopClient } from "./shop.client-DmDd-igg.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-CPqUlAh9.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/shop.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("shop");
|
|
7
7
|
const enhance = (root, props) => {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-C22C9cCF.mjs";
|
|
3
|
+
import { a as clearWorkflowFeedback, o as reportWorkflowError, t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
4
|
+
import { Kt as RichText } from "./wizardSteps-zgq10lN1.mjs";
|
|
5
|
+
import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, n as DemoBookingPortalAccess, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "./DemoBookingPortalAccess-CaN-7ui7.mjs";
|
|
6
|
+
import { O as buildProductCartItem, b as buildProductDetailDisplay, j as productItemKey, k as deriveCommerceCheckoutState, u as getShopDisplayForItems, x as formatCommercePrice, y as buildProductCardDisplay } from "./shop.interactive-5SnnDHz3.mjs";
|
|
7
7
|
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-CYj06rX1.mjs";
|
|
8
8
|
import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-DKlZRNZD.mjs";
|
|
9
|
-
import { a as initialDiscountApplyState, c as checkoutFormForDiscountUiState, d as planUnifiedCheckoutRequest, f as ShopAddFeedback, i as getDiscountApplyFeedback, l as planCartDiscountAvailabilityRequests, m as consumeSearchParam, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, s as aggregateCartDiscountUiState, t as useDiscountApply } from "./useDiscountApply-
|
|
9
|
+
import { a as initialDiscountApplyState, c as checkoutFormForDiscountUiState, d as planUnifiedCheckoutRequest, f as ShopAddFeedback, i as getDiscountApplyFeedback, l as planCartDiscountAvailabilityRequests, m as consumeSearchParam, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, s as aggregateCartDiscountUiState, t as useDiscountApply } from "./useDiscountApply-KG8jB7WC.mjs";
|
|
10
10
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
11
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-
|
|
12
|
-
import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-
|
|
13
|
-
import { n as useBlockApi } from "./context-
|
|
14
|
-
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-
|
|
15
|
-
import { t as CarouselNodeClient } from "./carousel.client-
|
|
16
|
-
import { n as useCommerceCart } from "./shop-commerce-store
|
|
11
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-Cv-qomNB.mjs";
|
|
12
|
+
import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-CkUn3Y0Y.mjs";
|
|
13
|
+
import { n as useBlockApi } from "./context-BLAvalAa.mjs";
|
|
14
|
+
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-R-awbk_0.mjs";
|
|
15
|
+
import { t as CarouselNodeClient } from "./carousel.client-AffDJo_s.mjs";
|
|
16
|
+
import { n as useCommerceCart } from "./shop-commerce-store-BJtrZov9.mjs";
|
|
17
17
|
import * as React$1 from "react";
|
|
18
18
|
import { useEffect, useState } from "react";
|
|
19
19
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { A as parseStoredCommerceCartState, D as buildPassCartItem, E as EMPTY_COMMERCE_CART_STATE, M as reduceCommerceCart } from "./shop.interactive-
|
|
2
|
+
import { A as parseStoredCommerceCartState, D as buildPassCartItem, E as EMPTY_COMMERCE_CART_STATE, M as reduceCommerceCart } from "./shop.interactive-5SnnDHz3.mjs";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
//#region ../blocks/src/system/runtime/nodes/shop-commerce-store.ts
|
|
5
5
|
const EMPTY_STATE = EMPTY_COMMERCE_CART_STATE;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as ThemedButton } from "./ThemedButton-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { r as ThemedButton } from "./ThemedButton-C22C9cCF.mjs";
|
|
3
|
+
import { c as assertNever$1, t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
4
|
+
import { Wn as getShopSuccessCopy } from "./wizardSteps-zgq10lN1.mjs";
|
|
5
|
+
import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-CaN-7ui7.mjs";
|
|
6
|
+
import { S as formatInterval, _ as shopProductPresentation, x as formatCommercePrice } from "./shop.interactive-5SnnDHz3.mjs";
|
|
7
7
|
import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
|
|
8
8
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
9
|
-
import { a as initialDiscountApplyState, f as ShopAddFeedback, h as consumeSearchParams, i as getDiscountApplyFeedback, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, t as useDiscountApply, u as planDirectShopCheckoutRequest } from "./useDiscountApply-
|
|
9
|
+
import { a as initialDiscountApplyState, f as ShopAddFeedback, h as consumeSearchParams, i as getDiscountApplyFeedback, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, t as useDiscountApply, u as planDirectShopCheckoutRequest } from "./useDiscountApply-KG8jB7WC.mjs";
|
|
10
10
|
import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
|
|
11
11
|
import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
|
|
12
12
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
13
|
-
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
13
|
+
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-DK2w_i0a.mjs";
|
|
14
14
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
15
|
-
import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, r as MembershipCardView } from "./view-
|
|
16
|
-
import { n as useBlockApi } from "./context-
|
|
17
|
-
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-
|
|
18
|
-
import { t as CarouselNodeClient } from "./carousel.client-
|
|
19
|
-
import { r as formatEntitlementEnd } from "./dateFormatting-
|
|
20
|
-
import { t as addPassToCommerceCart } from "./shop-commerce-store
|
|
15
|
+
import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, r as MembershipCardView } from "./view-CkUn3Y0Y.mjs";
|
|
16
|
+
import { n as useBlockApi } from "./context-BLAvalAa.mjs";
|
|
17
|
+
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-R-awbk_0.mjs";
|
|
18
|
+
import { t as CarouselNodeClient } from "./carousel.client-AffDJo_s.mjs";
|
|
19
|
+
import { r as formatEntitlementEnd } from "./dateFormatting-BHIHxNuo.mjs";
|
|
20
|
+
import { t as addPassToCommerceCart } from "./shop-commerce-store-BJtrZov9.mjs";
|
|
21
21
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
22
22
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
23
23
|
//#region ../blocks/src/system/runtime/shared/components/ActionRow.tsx
|
|
@@ -131,7 +131,7 @@ function shopPassesMembershipsReducer(state, action) {
|
|
|
131
131
|
...state,
|
|
132
132
|
returnNotice: null
|
|
133
133
|
};
|
|
134
|
-
default: return assertNever
|
|
134
|
+
default: return assertNever(action);
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
function getOpenCheckout(state) {
|
|
@@ -186,7 +186,7 @@ function handleShopCheckoutResult(input) {
|
|
|
186
186
|
if (input.result.demoBookingPass) storeDemoBookingCheckoutReturn(input.checkout.form.email, input.result.demoBookingPass);
|
|
187
187
|
window.location.href = input.result.checkoutUrl;
|
|
188
188
|
return;
|
|
189
|
-
default: return assertNever(input.result);
|
|
189
|
+
default: return assertNever$1(input.result);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
function buildDirectShopCheckoutPlan(input) {
|