@riverbankcms/sdk 0.158.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 +25 -6
- package/dist/_dts/{BlocksIslandsHydrator-BgNBtEai.d.ts → BlocksIslandsHydrator-CoqeotCL.d.ts} +1 -1
- package/dist/_dts/{Page-DpCo8zXD.d.ts → Page-C0ENVLCF.d.ts} +13 -6
- package/dist/_dts/{SdkPreviewMode-Bv2TMscG.d.ts → SdkPreviewMode-jZK0A49V.d.ts} +54 -126
- package/dist/_dts/{client-B960v2gW.d.ts → client-uMMuPq9V.d.ts} +23 -1
- package/dist/_dts/{content-types-CN0Wy8V6.d.ts → content-types-D6nXGqdQ.d.ts} +18 -18
- package/dist/_dts/{contracts-BFUrby76.d.ts → contracts-Bnmj1nxu.d.ts} +6 -5
- package/dist/_dts/{footerPageOutline-CmoqleLS.d.ts → footerPageOutline-CeLjFX8b.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-Dkvivc3R.d.ts → generatePageMetadata-nyU8q02J.d.ts} +5 -2
- package/dist/_dts/{index-DPfI2t5A.d.ts → index-BaaGBY1v.d.ts} +2 -2
- package/dist/_dts/{index-DCNu_8it.d.ts → index-Bg64CkV-.d.ts} +4 -4
- package/dist/_dts/index-Blwl7yl6.d.ts +13 -0
- package/dist/_dts/{index-DaS_z6ir.d.ts → index-C5xslEBn.d.ts} +2 -2
- package/dist/_dts/{index-DpgkhY-a.d.ts → index-CEaKil7G.d.ts} +2 -2
- package/dist/_dts/{index-Ba6RmuxX.d.ts → index-DahMwisK.d.ts} +3 -3
- package/dist/_dts/index-lkpjIg5i.d.ts +66 -0
- package/dist/_dts/{index-DfkFWUxt.d.ts → index-nVoi_74l.d.ts} +2 -2
- package/dist/_dts/{loadContent-DvvKF4nB.d.ts → loadContent-CYLmzvLq.d.ts} +16 -7
- package/dist/_dts/{resolvePageContent-D0lGwVD6.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-BIbit60h.d.ts → schema-D0bNcPWK.d.ts} +6921 -6768
- 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 +8 -2
- 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-BJrRUaY7.d.ts → types-CFrYuXYP.d.ts} +2 -2
- package/dist/_dts/{navigation-n-eTVTIQ.d.ts → types-D8czmbQF.d.ts} +15430 -16836
- package/dist/_dts/{types-BY7PgnDi.d.ts → types-DSgmJ15W.d.ts} +7 -7
- package/dist/_dts/{types-maEnXL6Z.d.ts → types-Dm-KW7nj.d.ts} +10 -13
- package/dist/_dts/{validation-BjuVrMrs.d.ts → validation-Bmb4WnHg.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-WRLS96Ev.mjs → BlocksIslandsHydrator-DZRKi6tT.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-eovghMPa.mjs → BookingMailingListNote-C00sLLdL.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-CIcMQRc1.mjs → CalendarNavigationChevron-CHSi9b3E.mjs} +6 -6
- package/dist/client/{CheckboxChoice-BF9eCNno.mjs → CheckboxChoice-Bhm6RAUL.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-CdnFgDyQ.mjs → DemoBookingPortalAccess-CaN-7ui7.mjs} +6 -6
- package/dist/client/{DemoPortalSignInLink-DHxYgkT6.mjs → DemoPortalSignInLink-ClxN5_xZ.mjs} +1 -1
- package/dist/client/{EventCalendar.client-Dc-ZLxKo.mjs → EventCalendar.client-BncvSa1n.mjs} +10 -9
- package/dist/client/{EventCombined.client-C93XqRIv.mjs → EventCombined.client-DluBxVVu.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-B3XUyNY9.mjs → EventEmbeddedCheckoutStep-BiJrMtfp.mjs} +1 -1
- package/dist/client/{EventItem-DnCTygqk.mjs → EventItem-CXhnT9pF.mjs} +11 -6
- package/dist/client/{EventListWeekNavigation-9h97heuQ.mjs → EventListWeekNavigation-V-dtoDlD.mjs} +1 -1
- package/dist/client/{EventListing.client-DFKlQvvs.mjs → EventListing.client-DPO6SZbx.mjs} +3 -3
- package/dist/client/{EventListing.view-pAuTDyrP.mjs → EventListing.view-B-Yi5JZS.mjs} +7 -7
- package/dist/client/{EventRegistrationPayment-rgKlBvhP.mjs → EventRegistrationPayment-Dc3Fnlnw.mjs} +189 -176
- package/dist/client/{LeafletStaticMap-3XiWSgy0.mjs → LeafletStaticMap-ClZCCzAm.mjs} +1 -1
- package/dist/client/{Page-BmpeAwID.mjs → Page-7PkzO04N.mjs} +1949 -2074
- package/dist/client/{StepIndicator-qEq6X5zP.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-DeObOasQ.mjs → accordion-2m27DsIk.mjs} +1 -1
- package/dist/client/{booking-form.client-DfWeF0lj.mjs → booking-form.client-BddWV5w1.mjs} +12 -12
- package/dist/client/{bookingForm-TnzIBHx2.mjs → bookingForm-bcdXQjmw.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{carousel-kkFnbr5Z.mjs → carousel-D7nj9I0y.mjs} +2 -2
- package/dist/client/{carousel.client-BJGoJVtg.mjs → carousel.client-AffDJo_s.mjs} +1 -1
- package/dist/client/{cart-BAXNbFux.mjs → cart-PN6yCw1H.mjs} +3 -3
- package/dist/client/{cart.client-BczxUF70.mjs → cart.client-D4t1f0cJ.mjs} +1 -1
- package/dist/client/{checkout-C5NRhPeP.mjs → checkout-CsTwXVSb.mjs} +3 -3
- package/dist/client/{checkout.client-BuDk3Td9.mjs → checkout.client-BhQE3zY7.mjs} +1 -1
- package/dist/client/client.mjs +25 -13
- package/dist/client/{context-CVsgML69.mjs → context-BLAvalAa.mjs} +1 -1
- package/dist/client/{cta-BWnUuJce.mjs → cta-CUXhX_D7.mjs} +2 -1
- package/dist/client/dateFormatting-BHIHxNuo.mjs +61 -0
- package/dist/client/{demoPortalMagicLink-CUlwvmxf.mjs → demoPortalMagicLink-R-awbk_0.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-Cw8nnFj-.mjs → enhanceHeaderSection-9Q93uvTo.mjs} +3 -3
- package/dist/client/{event-details.client-Bl0E_6Vi.mjs → event-details.client-BS1WtG-a.mjs} +2 -2
- package/dist/client/{event-registration.client-DmfLg_LC.mjs → event-registration.client-BXndwsET.mjs} +35 -21
- package/dist/client/{eventCalendar-D1Dwb9VA.mjs → eventCalendar-HyoOt1Qz.mjs} +4 -4
- package/dist/client/{eventCombined-DfsqY1qR.mjs → eventCombined-sdG5oEaH.mjs} +4 -4
- package/dist/client/{eventDetails-BmugDVoa.mjs → eventDetails-FFAknE4w.mjs} +2 -2
- package/dist/client/{eventListing-BPAGJi3C.mjs → eventListing-CGK6urk3.mjs} +4 -4
- package/dist/client/{eventRegistration-DBlz_x6u.mjs → eventRegistration-VhrvCs4l.mjs} +4 -4
- package/dist/client/{form-DVu3ZMjx.mjs → form-C-B5O_ko.mjs} +3 -3
- package/dist/client/{form.client-QZUyABIY.mjs → form.client-DoZVcl8d.mjs} +5 -5
- package/dist/client/{form.parts-Bs0F3v08.mjs → form.parts-mttKpgif.mjs} +3 -3
- package/dist/client/{formatDate-BD9D3dgo.mjs → formatDate-xUSCknEO.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-BQwWW4Yy.mjs → headerSection-BHUEXsaI.mjs} +2 -2
- package/dist/client/{location-map.client-upKuwABk.mjs → location-map.client-Cylb_MHw.mjs} +2 -2
- package/dist/client/{location-map.view-RuBCD10O.mjs → location-map.view-Cx4Bl7ij.mjs} +69 -6
- package/dist/client/{locationMap-1sCbsk0V.mjs → locationMap-QnKJi-nZ.mjs} +2 -2
- package/dist/client/{newsletter-form.client-DBTU3oNv.mjs → newsletter-form.client-D_n0rftg.mjs} +8 -8
- package/dist/client/{newsletter-form.parts-C9I9JBhe.mjs → newsletter-form.parts-DKHye4IE.mjs} +2 -2
- package/dist/client/{newsletterForm-DTPtTxxG.mjs → newsletterForm-tEaYelzx.mjs} +3 -3
- package/dist/client/{noop-DMFt3KdC.mjs → noop-B610YKEx.mjs} +12 -5
- package/dist/client/portal/client.mjs +4562 -174
- package/dist/client/{product-detail.client-BX7M5o6p.mjs → product-detail.client-DUf5x5Jt.mjs} +1 -1
- package/dist/client/{product-list.client-i32QNY4c.mjs → product-list.client-Cqp1BPTV.mjs} +1 -1
- package/dist/client/{productDetail-DWjE9zm7.mjs → productDetail-B8bBiogP.mjs} +3 -3
- package/dist/client/{productList-DZH9_brv.mjs → productList-BKN4D-1z.mjs} +3 -3
- package/dist/client/{propsDecoder-CTzHkEkh.mjs → propsDecoder-2nNZh2Oe.mjs} +3 -3
- package/dist/client/{registry.server-vJ5FlscU.mjs → registry.server-BAm4RPNJ.mjs} +856 -872
- 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-DXAmC72p.mjs → richText-coerce-Cv-qomNB.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CmC7ygin.mjs → routeIslandApiConfig-C5u8MbAA.mjs} +1 -1
- package/dist/client/{shop-C7eL3B37.mjs → shop-DZNC0VKk.mjs} +3 -3
- package/dist/client/{shop-commerce-D8oRN0QJ.mjs → shop-commerce-DdX4LSa3.mjs} +12 -12
- package/dist/client/{shop-commerce-store-CRnQ4M18.mjs → shop-commerce-store-BJtrZov9.mjs} +1 -1
- package/dist/client/{shop.client-X6d6KVmA.mjs → shop.client-DmDd-igg.mjs} +16 -15
- package/dist/client/{shop.interactive-DBMeM8VD.mjs → shop.interactive-5SnnDHz3.mjs} +402 -35
- package/dist/client/{shopShared-Y182kN_s.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-BDV6MHgJ.mjs → useAvailableSlots-BjbJXotk.mjs} +3 -3
- package/dist/client/{useBookingNowIso-DgJEv3ZY.mjs → useBookingNowIso-CMgfL7YJ.mjs} +1 -1
- package/dist/client/{useDiscountApply-BTu9EeT7.mjs → useDiscountApply-KG8jB7WC.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-BfZxdxI-.mjs → useDiscountCodeUi-DK2w_i0a.mjs} +1 -1
- package/dist/client/{useEventPagination-pnvdHGeQ.mjs → useEventPagination-DW6MCirb.mjs} +11 -10
- package/dist/client/uuid-BETKW8rS.mjs +12 -0
- package/dist/client/{view-hJr_L4QC2.mjs → view-CkUn3Y0Y.mjs} +4 -4
- package/dist/client/{view-BPEa6Okm.mjs → view-CseyBW07.mjs} +15 -70
- package/dist/client/{wizardSteps-HdyGoIG3.mjs → wizardSteps-zgq10lN1.mjs} +262 -65
- 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-CXRUbqMp.mjs → PreviewEditorSidebar-DWyUGCAG.mjs} +1217 -107
- package/dist/preview-next/client/{PreviewEditorUI-CxjEV0Fm.mjs → PreviewEditorUI-Wq0b3Daw.mjs} +52 -79
- package/dist/preview-next/client/{SdkPreviewModeRuntime-XdQSGGj_.mjs → SdkPreviewModeRuntime-BtZPcwYV.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BxI12BBS.mjs → SdkPreviewModeRuntime-wSI_R361.mjs} +720 -2035
- package/dist/preview-next/client/{SiteChromeCustomizeContext-CfRQRwpH.mjs → SiteChromeCustomizeContext-Hc4pYnNe.mjs} +14365 -8155
- package/dist/preview-next/client/{ThemedButton-BEOPss9H.mjs → ThemedButton-DzeycIlD.mjs} +204 -93
- package/dist/preview-next/client/{previewChromeSurface-CH7hd5n7.mjs → previewChromeSurface-Corq4AG7.mjs} +3 -8
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-C6xEU1LI.mjs → sdk-runtime-CWymRWhK.mjs} +1 -1
- package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +1359 -0
- package/dist/preview-next/client/{spinner-BTf1CZmy.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-DLoilC2J.mjs → Block.shared-D1_gonwM.mjs} +6 -6
- package/dist/server/{bindings-C7DKLVx_.mjs → bindings-CFmJg5lm.mjs} +2 -2
- package/dist/server/{client-CU4wlMLE.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/{generatePageMetadata-CPvssVOp.mjs → generatePageMetadata-DB_lbrZ7.mjs} +28 -2
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-DmQ4BiiQ.mjs → loadContent-RMCcuVU_.mjs} +33 -20
- package/dist/server/loadPage-DUPP51C-.mjs +2 -0
- package/dist/server/{loadPage-BBkDQA57.mjs → loadPage-DhDGzj7t.mjs} +8 -5
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/metadata.mjs +2 -2
- package/dist/server/next.mjs +13 -12
- package/dist/server/{overrideResolution-ByeAbLSO.mjs → overrideResolution-OxY5FMuy.mjs} +1 -1
- package/dist/server/{overrides-BcA6ZPWf.mjs → overrides-Bz_A6sB9.mjs} +586 -518
- package/dist/server/page-converter.mjs +8 -10
- package/dist/server/{prebuild-8T-m7XjB.mjs → prebuild-B_1vrSru.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Bjya-X9t.mjs → prefetchBlockData-B7ukYXXR.mjs} +841 -887
- package/dist/server/{publicProducts-C3meXS2o.mjs → publicProducts-Djbpc81A.mjs} +166 -129
- package/dist/server/{blocks-jlIm0PWc.mjs → registry-eFjKtEhF.mjs} +2349 -1716
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-D0ow8PRJ.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-D2-BnmDO.mjs → themeAdmission-ruoyXb_0.mjs} +9 -7
- package/dist/server/{three-pass-converter-CmmchOFC.mjs → three-pass-converter-Chnb1XD-.mjs} +2 -58
- package/dist/server/{validation-Cm41pDUB.mjs → validation-B-Xar8QS.mjs} +22 -63
- package/dist/server/{version-Bo9C3McI.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-D7PwpaBY.mjs +0 -480
- package/dist/preview-next/client/siteStyleAccess-CRXaC2oL.mjs +0 -1326
- package/dist/server/loadPage-ZrcfjG3X.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 {
|
|
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 { Kt as
|
|
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 {
|
|
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,22 +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 {
|
|
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";
|
|
20
21
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
21
22
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
22
23
|
//#region ../blocks/src/system/runtime/shared/components/ActionRow.tsx
|
|
@@ -130,7 +131,7 @@ function shopPassesMembershipsReducer(state, action) {
|
|
|
130
131
|
...state,
|
|
131
132
|
returnNotice: null
|
|
132
133
|
};
|
|
133
|
-
default: return assertNever
|
|
134
|
+
default: return assertNever(action);
|
|
134
135
|
}
|
|
135
136
|
}
|
|
136
137
|
function getOpenCheckout(state) {
|
|
@@ -185,7 +186,7 @@ function handleShopCheckoutResult(input) {
|
|
|
185
186
|
if (input.result.demoBookingPass) storeDemoBookingCheckoutReturn(input.checkout.form.email, input.result.demoBookingPass);
|
|
186
187
|
window.location.href = input.result.checkoutUrl;
|
|
187
188
|
return;
|
|
188
|
-
default: return assertNever(input.result);
|
|
189
|
+
default: return assertNever$1(input.result);
|
|
189
190
|
}
|
|
190
191
|
}
|
|
191
192
|
function buildDirectShopCheckoutPlan(input) {
|
|
@@ -538,7 +539,7 @@ function PassesMembershipsController({ render }) {
|
|
|
538
539
|
/* @__PURE__ */ jsx("strong", { children: checkout.duplicateWarning.existingMembership.name }),
|
|
539
540
|
checkout.duplicateWarning.existingMembership.expiresAt ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
540
541
|
" (expires ",
|
|
541
|
-
|
|
542
|
+
formatEntitlementEnd(checkout.duplicateWarning.existingMembership.expiresAt, hydration.dateContext, "long"),
|
|
542
543
|
")"
|
|
543
544
|
] }) : null
|
|
544
545
|
]
|