@riverbankcms/sdk 0.168.0 → 0.169.1
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-CiD_VVGM.d.ts → BlocksIslandsHydrator-DEhlJEwj.d.ts} +1 -1
- package/dist/_dts/{Page-Bj6VJRS5.d.ts → Page-BhCfStX1.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-ChpsnwDX.d.ts → SdkPreviewMode-DSYdsdmJ.d.ts} +2 -2
- package/dist/_dts/{client-C8mfUxrJ.d.ts → client-BZMn4Y99.d.ts} +39 -397
- package/dist/_dts/{content-types-_vXZyR4H.d.ts → content-types-EMK-E_r9.d.ts} +2 -2
- package/dist/_dts/{contracts-CJFfrVKU.d.ts → contracts-DjYsGY3B.d.ts} +4 -3
- package/dist/_dts/{footerPageOutline-CMegb23G.d.ts → footerPageOutline-BtYUi-m0.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-D9YdAIMh.d.ts → generatePageMetadata-D_fNTi5r.d.ts} +2 -2
- package/dist/_dts/{index-BQXaZ7aY.d.ts → index-BR0i0c3G.d.ts} +4 -4
- package/dist/_dts/{index-Bpr-wT5k.d.ts → index-BV-qVnt7.d.ts} +2 -2
- package/dist/_dts/{index-C7_Rz8EY.d.ts → index-BYYhTQ_b.d.ts} +3 -3
- package/dist/_dts/{index-Vh8B9FSa.d.ts → index-BzguBJzR.d.ts} +1 -1
- package/dist/_dts/{index-Dgz6yhsy.d.ts → index-DgEwZ5WQ.d.ts} +1 -1
- package/dist/_dts/{index-Cx2BQlHL.d.ts → index-NaRauKDR.d.ts} +1 -1
- package/dist/_dts/{index-vR3p9Bu-.d.ts → index-QIbYMeI7.d.ts} +2 -2
- package/dist/_dts/{loadContent-dhWSgLeS.d.ts → loadContent-BmGH6NKl.d.ts} +7 -7
- package/dist/_dts/{request-BrYhNV9Z.d.ts → request-DssgRQSm.d.ts} +9558 -7863
- package/dist/_dts/{resolveBlockData-BfSHm8Ms.d.ts → resolveBlockData-5BqNxwL8.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-gZJ4i1wN.d.ts → resolvePageContent-DIuwuFA7.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/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- 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/rendering/themeAdmission.d.ts +1 -1
- 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/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-BB33-Spd.d.ts → types-DrAWDtqR.d.ts} +3 -3
- package/dist/_dts/{types-BVFXYtRg.d.ts → types-Z388-GR1.d.ts} +7 -7
- package/dist/_dts/{types-FOsJ-KYb.d.ts → types-cObpvZGF.d.ts} +2 -2
- package/dist/_dts/{validation-DckTc6TQ.d.ts → validation-hLr8zVrc.d.ts} +4 -4
- package/dist/client/BlocksIslandsHydrator-CN2GyuuA.mjs +410 -0
- package/dist/client/{BookingMailingListNote-Dsugoe-n.mjs → BookingMailingListNote-Br1VyHkP.mjs} +17 -6
- package/dist/client/{BookingQuestionFields-Bhh0cvsl.mjs → BookingQuestionFields-LLGCWjvU.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-CNe3ZjdC.mjs → CalendarNavigationChevron-DSnSBNeq.mjs} +7 -7
- package/dist/client/{DemoBookingPortalAccess-BeiZxEUJ.mjs → DemoBookingPortalAccess-Cilv5zdS.mjs} +65 -9
- package/dist/client/{EventCalendar.client-BL943-tl.mjs → EventCalendar.client-ucgdMS35.mjs} +9 -9
- package/dist/client/{EventCombined.client-BFVxECTp.mjs → EventCombined.client-BEdfJGpx.mjs} +7 -7
- package/dist/client/{EventItem-BIc4gjiD.mjs → EventItem-OpLehMpT.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-a0QEIEf0.mjs → EventListWeekNavigation-DTsVU6gc.mjs} +1 -1
- package/dist/client/{EventListing.client-CEFTC3jH.mjs → EventListing.client-8MFGI9BA.mjs} +3 -3
- package/dist/client/{EventListing.view-Bt2sBBms.mjs → EventListing.view-BCvRqU86.mjs} +6 -6
- package/dist/client/{EventRegistrationPayment-D9YBNb_E.mjs → EventRegistrationPayment-CqH3hE-k.mjs} +132 -62
- package/dist/client/{LocationMapActions-gqzt5gkW.mjs → LocationMapActions-BFp2uQQQ.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-13JQI7_z.mjs → MapDrawingSvg-DDWfmgpA.mjs} +1 -1
- package/dist/client/{Page-D_M2Vxz3.mjs → Page-Bu5TJU3L.mjs} +53 -22
- package/dist/client/{StepIndicator-CaN8snZ8.mjs → StepIndicator-CR7_0yu4.mjs} +5 -4
- package/dist/client/{accessibleSurfaces-chpD4C2c.mjs → accessibleSurfaces-_7jkuinl.mjs} +56 -8
- package/dist/client/{accordion-DE7OG--d.mjs → accordion-DMItWylU.mjs} +6 -1
- package/dist/client/{booking-form.client-CS1PPjw7.mjs → booking-form.client-wd71DG19.mjs} +505 -217
- package/dist/client/{bookingForm-DE2CwIU9.mjs → bookingForm-Cyr2qeS1.mjs} +17 -17
- package/dist/client/{bookingRoute-Bqlyu5Vb.mjs → bookingRoute-D6DlxYx6.mjs} +6 -2
- package/dist/client/bookings.mjs +16 -13
- package/dist/client/{carousel-DZyUdnFh.mjs → carousel-B5-Hzzif.mjs} +7 -9
- package/dist/client/{carousel.client-BD4DXMtI.mjs → carousel.client-eSSr1oYA.mjs} +2 -2
- package/dist/client/{cart-D7HkkNwe.mjs → cart-B-M5l__W.mjs} +3 -3
- package/dist/client/{cart.client-H4sv2TpD.mjs → cart.client-COAP4CEy.mjs} +1 -1
- package/dist/client/{checkout-2qVyG-Sh.mjs → checkout-ZHc8GfaG.mjs} +3 -3
- package/dist/client/{checkout.client-DAjrBZ74.mjs → checkout.client-DRralR3e.mjs} +1 -1
- package/dist/client/{checkoutUrls-CYj06rX1.mjs → checkoutUrls-CY8qywXl.mjs} +3 -2
- package/dist/client/client.mjs +87 -4
- package/dist/client/{context-DXmIbXCK.mjs → context-Xhf81Q-c.mjs} +25 -3
- package/dist/client/{createLucideIcon-CIbxe9em.mjs → createLucideIcon-BrXgHVKN.mjs} +9 -9
- package/dist/client/{bookingQuestionValues-BjcyCru5.mjs → creditProducts-CMOmhWm2.mjs} +71 -11
- package/dist/client/{cta-DP_IBnq3.mjs → cta-CfuyGqXL.mjs} +2 -2
- package/dist/client/{dateFormatting-CwrkFZTr.mjs → dateFormatting-Bv6kjUW3.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-DQXK-Fh6.mjs → demoPortalMagicLink-DQtwf_s2.mjs} +1 -1
- package/dist/client/{wizardSteps-CFulHWnT.mjs → display-DDNmyb0z.mjs} +920 -870
- package/dist/client/{enhanceHeaderSection-DheQj7rg.mjs → enhanceHeaderSection-D7gRy-pL.mjs} +3 -2
- package/dist/client/{event-details.client-C5UufcRp.mjs → event-details.client-DZZaoCUc.mjs} +1 -1
- package/dist/client/{event-registration.client-CMGg63IU.mjs → event-registration.client-CLBdHUfd.mjs} +59 -18
- package/dist/client/{eventCalendar-DlD0GCEy.mjs → eventCalendar-BY3AfYkK.mjs} +14 -17
- package/dist/client/eventCombined-86P2vQCb.mjs +25 -0
- package/dist/client/{eventDetails-DzuQYgmO.mjs → eventDetails-DIJYMzVg.mjs} +4 -6
- package/dist/client/eventListing-8jS0qGGC.mjs +26 -0
- package/dist/client/{eventRegistration-CjS3Zpjp.mjs → eventRegistration-DyseP_sY.mjs} +19 -19
- package/dist/client/flightRegistrations-DjYm0Wz6.mjs +45 -0
- package/dist/client/{form-DgQqm7T2.mjs → form-RTqunrpz.mjs} +9 -14
- package/dist/client/{form.client-BI9Dcsq5.mjs → form.client-D3_RF29v.mjs} +4 -4
- package/dist/client/{form.parts-DevF0L_A.mjs → form.parts-DWLf_3PF.mjs} +1 -1
- package/dist/client/{formatDate-DDyURjoe.mjs → formatDate-BGlhrmhF.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-DYIG6Pwb.mjs → headerSection-CyNGt23J.mjs} +2 -2
- package/dist/client/{newsletter-form.client-BWp7Y1e1.mjs → newsletter-form.client-IfLup4o0.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-Dg8s9NwJ.mjs → newsletter-form.parts-DDD-LRyW.mjs} +1 -1
- package/dist/client/{newsletterForm-DnPraMzx.mjs → newsletterForm-o5wFBVHv.mjs} +10 -15
- package/dist/client/{noop-ByFRHYQ2.mjs → noop-B_f7RqLD.mjs} +111 -2
- package/dist/client/portal/client.mjs +21 -13
- package/dist/client/{product-detail.client-BFAgHrdg.mjs → product-detail.client-5hNA8aKU.mjs} +1 -1
- package/dist/client/{product-list.client-DVrs_DyY.mjs → product-list.client-c-777ohj.mjs} +1 -1
- package/dist/client/{productDetail-D4rvl6Xg.mjs → productDetail-hXttfQhE.mjs} +3 -3
- package/dist/client/{productList-B8o5AOMX.mjs → productList-BPsYP_jA.mjs} +3 -3
- package/dist/client/{propsDecoder-hhotPP6P.mjs → propsDecoder-Dc8j5i79.mjs} +3 -3
- package/dist/client/reactMount-DFQy3CmO.mjs +51 -0
- package/dist/client/{registry.server-Ch3EpupA.mjs → registry.server-CMrdUGGv.mjs} +338 -289
- package/dist/client/rendering/client.mjs +39 -39
- package/dist/client/rendering/islandDelivery.flight.mjs +99 -0
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-C3LabQ1O.mjs → richText-coerce-BTurYEao.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CQGlxId8.mjs → routeIslandApiConfig-DFjRKvzM.mjs} +1 -1
- package/dist/client/{runtimeResponse-Dg4XFsuM.mjs → runtimeResponse-BGU8sMZY.mjs} +1 -1
- package/dist/client/runtimeResponse-D2LT--Gj.mjs +3 -0
- package/dist/client/{shop-rRXplPGZ.mjs → shop-Ds47onRS.mjs} +3 -3
- package/dist/client/{shop-commerce-VDbVaKY-.mjs → shop-commerce-B3PyRHaN.mjs} +12 -12
- package/dist/client/{shop-commerce-store-DqdgJ8Zw.mjs → shop-commerce-store-D9CHihQv.mjs} +1 -1
- package/dist/client/{shop.client-DdwvMvaK.mjs → shop.client-RljK0qPB.mjs} +110 -31
- package/dist/client/{shop.interactive-C8OvFY06.mjs → shop.interactive-BH0xDlMF.mjs} +42 -533
- package/dist/client/{shopShared-BeuJiGPU.mjs → shopShared-BEfD0e4m.mjs} +12 -15
- package/dist/client/src-BozhJ43Z.mjs +3 -0
- package/dist/client/{src-1PJxc8KO.mjs → src-xrjaKaCj.mjs} +6 -8
- package/dist/client/{timetableModel-Cko9LRKy.mjs → timetableModel-BG7Ejxdr.mjs} +12 -12
- package/dist/client/{useAvailableSlots-M6QIEiWf.mjs → useAvailableSlots-GP8tnAVW.mjs} +3 -3
- package/dist/client/{useDiscountApply-BJSnyO0f.mjs → useDiscountApply-Cq07nTyG.mjs} +5 -3
- package/dist/client/{useDiscountCodeUi-D3XnOSCi.mjs → useDiscountCodeUi-CD82QX5i.mjs} +1 -1
- package/dist/client/{useEventPagination-PhTIoFVX.mjs → useEventPagination-spj7sGQP.mjs} +6 -6
- package/dist/client/{view-L_mkgtnk.mjs → view-aAP2WbCR.mjs} +2 -3
- package/dist/client/{view-448wvvEY.mjs → view-oToSpu1N.mjs} +7 -7
- package/dist/preview-next/client/{ArrangementLookControls-BpvnOGlN.mjs → ArrangementLookControls-CoWdilcI.mjs} +7 -7
- package/dist/preview-next/client/{LocationPickerEnvironment-CZQ4vkRe.mjs → LocationPickerEnvironment-CwxRbAs2.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-CP4w7T_0.mjs → MapLibreEditMap-CKjYUp_E.mjs} +2 -2
- package/dist/preview-next/client/{PreviewEditorSidebar-C0OtdWu_.mjs → PreviewEditorSidebar-BNCrO6PQ.mjs} +201 -151
- package/dist/preview-next/client/{PreviewEditorUI-Csc5vH5k.mjs → PreviewEditorUI-inVZkLCd.mjs} +6 -6
- package/dist/preview-next/client/{PreviewShell-BOLH_pm-.mjs → PreviewShell-CFQlAHTe.mjs} +10 -15
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CKodLReY.mjs → SdkPreviewModeRuntime-Dgl7ktO4.mjs} +12 -9
- package/dist/preview-next/client/{SiteChromeCustomizeButton-BeEZpeKn.mjs → SiteChromeCustomizeButton-DgDYHwkG.mjs} +1418 -598
- package/dist/preview-next/client/{lucide-react-DkZ8fO-G.mjs → lucide-react-DbC1o6_9.mjs} +11 -11
- package/dist/preview-next/client/{previewAssistantSlot-BBdN5kfY.mjs → previewAssistantSlot-DRDu7Ndv.mjs} +684 -930
- package/dist/preview-next/client/{previewChromeSurface-VZtGwPuH.mjs → previewChromeSurface-K6Q5uEMC.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-kiZkMcuR.mjs → sdk-runtime-AGypzhcO.mjs} +2 -2
- package/dist/preview-next/client/{src-DY8JCJdE.mjs → src-DzXUmsyK.mjs} +6 -8
- package/dist/preview-next/client/src-LUhVXBEQ.mjs +3 -0
- package/dist/preview-next/client/{useAutosaveStatus-BiIHEeE0.mjs → useAutosaveStatus-B2mn_l6c.mjs} +3 -3
- package/dist/preview-next/client/{useBlockCustomizeControls-BuFLIpmX.mjs → useBlockCustomizeControls-CBXHo6ph.mjs} +5 -5
- package/dist/preview-next/client/{useOpenBlockForSetup-DlxYgmh_.mjs → useOpenBlockForSetup-BpZnBznt.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +3 -4
- package/dist/preview-next/{route-contract-C0sCvCYL.mjs → route-contract-jc2Bug-h.mjs} +83 -0
- package/dist/server/{Block.shared-Dnhc0Wu5.mjs → Block.shared-BHgQjX16.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-NAQ_zsFu.mjs → ThemeScopeCore-Ck0dhZA6.mjs} +31 -5
- package/dist/server/{accessibleSurfaces-108nxyGc.mjs → accessibleSurfaces-D0q5tLSW.mjs} +56 -8
- package/dist/server/{bindings-DLoZYUxG.mjs → bindings-CAbTvrCZ.mjs} +1 -1
- package/dist/server/{booking-form.reserved-fields-BWRF7509.mjs → booking-form.reserved-fields-Cqp13TKc.mjs} +1 -0
- package/dist/server/{client-Bc8jI8zN.mjs → client-C-asG6Cf.mjs} +85 -2
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{headerVariant-BwR9NV4b.mjs → headerVariant-8O5MvxIU.mjs} +2 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-D61gpqHB.mjs → loadContent-DKerbSnI.mjs} +4 -4
- package/dist/server/{loadPage-B4ZYpIcd.mjs → loadPage-XgtQR90Z.mjs} +2 -2
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-BawlEAd_.mjs → opaqueSurface-Yltv_u7r.mjs} +1 -1
- package/dist/server/{overrideResolution-CDReKy2P.mjs → overrideResolution-Z5pwH-kz.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-ByVTA7-4.mjs → pageRenderPlan-DQAo35og.mjs} +9 -8
- package/dist/server/{pageRuntimeSupport-Dzz_Dze6.mjs → pageRuntimeSupport-g-K-FCHa.mjs} +2 -2
- package/dist/server/{pageShared-Dk5Ku6hs.mjs → pageShared-7mPhqqXX.mjs} +345 -289
- package/dist/server/{parseThemeForPersistence-pJPGfMrf.mjs → parseThemeForPersistence-BebSeE17.mjs} +1 -1
- package/dist/server/{prebuild-CW4M0WEZ.mjs → prebuild-C0m4KOT9.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Bvx0SiIM.mjs → prefetchBlockData-DcLKHfHG.mjs} +2 -2
- package/dist/server/{registry-Bh0Y25zH.mjs → registry-7_0_lUrh.mjs} +305 -844
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/islandDelivery.script.mjs +19 -0
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-CnHHst9r.mjs → resolveBlockData-q3WnpvyZ.mjs} +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -2
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{validation-D2bHWSxJ.mjs → validation-CSMS6XmP.mjs} +4 -4
- package/dist/server/{version-DkM1eAxG.mjs → version-DWeqmTXc.mjs} +1 -1
- package/dist/styles/index.css +15 -3
- package/package.json +10 -6
- package/dist/client/BlocksIslandsHydrator-DcwEaliO.mjs +0 -296
- package/dist/client/creditProducts-BOWi1QLp.mjs +0 -62
- package/dist/client/eventCombined-DoSi8p_l.mjs +0 -28
- package/dist/client/eventListing-CkiMjl0g.mjs +0 -29
- package/dist/client/reactMount-BGJVsHRb.mjs +0 -28
- package/dist/client/runtimeResponse-BP-L6exS.mjs +0 -3
- package/dist/client/src-CdRISvQp.mjs +0 -3
- package/dist/preview-next/client/src-BP8771hw.mjs +0 -3
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import {
|
|
3
|
+
import { an as staticHeaderChromeRuntime } from "../shop.interactive-BH0xDlMF.mjs";
|
|
4
4
|
import { r as indexRenderableMediaAssets } from "../renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { n as BookingFormNodeClient } from "../booking-form.client-
|
|
7
|
-
import {
|
|
8
|
-
import { o as getRuntimeTimeZone } from "../useAvailableSlots-
|
|
9
|
-
import {
|
|
10
|
-
import { i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "../DemoBookingPortalAccess-
|
|
11
|
-
import
|
|
12
|
-
import { f as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import "../
|
|
5
|
+
import { Cn as RichText, Dn as mediaImageHostProps, En as computeMediaTransformStyle, Nn as resolveMediaNodeResponsiveImage, On as renderAudio, Tn as MediaPlaceholder, kn as renderVideo, wn as ImagePresets } from "../display-DDNmyb0z.mjs";
|
|
6
|
+
import { n as BookingFormNodeClient } from "../booking-form.client-wd71DG19.mjs";
|
|
7
|
+
import { on as formatCurrencyAmount } from "../noop-B_f7RqLD.mjs";
|
|
8
|
+
import { o as getRuntimeTimeZone } from "../useAvailableSlots-GP8tnAVW.mjs";
|
|
9
|
+
import { h as assertNever } from "../creditProducts-CMOmhWm2.mjs";
|
|
10
|
+
import { i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "../DemoBookingPortalAccess-Cilv5zdS.mjs";
|
|
11
|
+
import "../accessibleSurfaces-_7jkuinl.mjs";
|
|
12
|
+
import { F as markEditableSurfaceForwarding, I as splitPositioningClasses, P as composeHeaderSectionWrapperClassName, c as HeaderSectionFrame, d as accordionIconColorStyle, f as resolveAccordionIconStyle, fn as ICON_CONFIG, i as WeeklySlotAvailabilityView, l as accordionItemPartSlots, n as runtimeBackedBlockModes, o as LocationMapSSR, r as runtimeBackedBlockServerEntries, t as serverComponentRegistry, u as accordionLookAttributes } from "../registry.server-CMrdUGGv.mjs";
|
|
13
|
+
import { f as Text } from "../timetableModel-BG7Ejxdr.mjs";
|
|
14
|
+
import { t as EventRegistrationIslandClient } from "../event-registration.client-CLBdHUfd.mjs";
|
|
15
|
+
import { n as useBlockApi, t as BlockApiProvider$1 } from "../context-Xhf81Q-c.mjs";
|
|
16
16
|
import { S as clsx } from "../ThemedButton-BdnEwA38.mjs";
|
|
17
|
-
import { t as ShopClient } from "../shop.client-
|
|
17
|
+
import { t as ShopClient } from "../shop.client-RljK0qPB.mjs";
|
|
18
18
|
import { t as FeedbackMessage } from "../FeedbackMessage-CSJrAuXH.mjs";
|
|
19
19
|
import { t as CarouselSlideContent } from "../carousel.shared-BFQ3kBEw.mjs";
|
|
20
|
-
import { t as coerceRichTextDoc } from "../richText-coerce-
|
|
21
|
-
import { t as createLucideIcon } from "../createLucideIcon-
|
|
22
|
-
import { t as CarouselNodeClient } from "../carousel.client-
|
|
23
|
-
import { t as EventDetailsIslandClient } from "../event-details.client-
|
|
24
|
-
import { t as ProductListClient } from "../product-list.client-
|
|
25
|
-
import { t as ProductDetailClient } from "../product-detail.client-
|
|
26
|
-
import { t as CartClient } from "../cart.client-
|
|
27
|
-
import { t as CheckoutClient } from "../checkout.client-
|
|
28
|
-
import { t as mountHeaderChromeRuntime } from "../enhanceHeaderSection-
|
|
29
|
-
import { t as EventListingClient } from "../EventListing.client-
|
|
30
|
-
import { n as EventCombinedIslandClient } from "../EventCombined.client-
|
|
31
|
-
import { t as EventCalendarClient } from "../EventCalendar.client-
|
|
32
|
-
import { t as FormNodeClient } from "../form.client-
|
|
33
|
-
import { t as NewsletterFormClient } from "../newsletter-form.client-
|
|
34
|
-
import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-
|
|
20
|
+
import { t as coerceRichTextDoc } from "../richText-coerce-BTurYEao.mjs";
|
|
21
|
+
import { t as createLucideIcon } from "../createLucideIcon-BrXgHVKN.mjs";
|
|
22
|
+
import { t as CarouselNodeClient } from "../carousel.client-eSSr1oYA.mjs";
|
|
23
|
+
import { t as EventDetailsIslandClient } from "../event-details.client-DZZaoCUc.mjs";
|
|
24
|
+
import { t as ProductListClient } from "../product-list.client-c-777ohj.mjs";
|
|
25
|
+
import { t as ProductDetailClient } from "../product-detail.client-5hNA8aKU.mjs";
|
|
26
|
+
import { t as CartClient } from "../cart.client-COAP4CEy.mjs";
|
|
27
|
+
import { t as CheckoutClient } from "../checkout.client-DRralR3e.mjs";
|
|
28
|
+
import { t as mountHeaderChromeRuntime } from "../enhanceHeaderSection-D7gRy-pL.mjs";
|
|
29
|
+
import { t as EventListingClient } from "../EventListing.client-8MFGI9BA.mjs";
|
|
30
|
+
import { n as EventCombinedIslandClient } from "../EventCombined.client-BEdfJGpx.mjs";
|
|
31
|
+
import { t as EventCalendarClient } from "../EventCalendar.client-ucgdMS35.mjs";
|
|
32
|
+
import { t as FormNodeClient } from "../form.client-D3_RF29v.mjs";
|
|
33
|
+
import { t as NewsletterFormClient } from "../newsletter-form.client-IfLup4o0.mjs";
|
|
34
|
+
import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-CN2GyuuA.mjs";
|
|
35
35
|
import * as React$1 from "react";
|
|
36
36
|
import React, { createContext, createElement, startTransition, useContext, useEffect, useMemo, useReducer, useRef } from "react";
|
|
37
37
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -579,7 +579,7 @@ function GiftingPurchaseFields(props) {
|
|
|
579
579
|
] });
|
|
580
580
|
}
|
|
581
581
|
//#endregion
|
|
582
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-context@1.1.4_@types+react@19.
|
|
582
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-context@1.1.4_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
583
583
|
function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
584
584
|
let defaultContexts = [];
|
|
585
585
|
function createContext3(rootComponentName, defaultContext) {
|
|
@@ -644,7 +644,7 @@ function composeContextScopes(...scopes) {
|
|
|
644
644
|
return createScope;
|
|
645
645
|
}
|
|
646
646
|
//#endregion
|
|
647
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.3_@types+react@19.
|
|
647
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.3_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
648
648
|
function setRef$1(ref, value) {
|
|
649
649
|
if (typeof ref === "function") return ref(value);
|
|
650
650
|
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
@@ -670,7 +670,7 @@ function useComposedRefs(...refs) {
|
|
|
670
670
|
return React$1.useCallback(composeRefs(...refs), refs);
|
|
671
671
|
}
|
|
672
672
|
//#endregion
|
|
673
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.3.0_@types+react@19.
|
|
673
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.3.0_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
674
674
|
// @__NO_SIDE_EFFECTS__
|
|
675
675
|
function createSlot(ownerName) {
|
|
676
676
|
const Slot2 = React$1.forwardRef((props, forwardedRef) => {
|
|
@@ -840,10 +840,10 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
|
|
|
840
840
|
};
|
|
841
841
|
}
|
|
842
842
|
//#endregion
|
|
843
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.2_@types+react@19.
|
|
843
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.2_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
844
844
|
var useLayoutEffect2 = globalThis?.document ? React$1.useLayoutEffect : () => {};
|
|
845
845
|
//#endregion
|
|
846
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.3_@types+react@19.
|
|
846
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.3_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
847
847
|
var useInsertionEffect = React$1[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
|
|
848
848
|
function useControllableState({ prop, defaultProp, onChange = () => {}, caller }) {
|
|
849
849
|
const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({
|
|
@@ -895,7 +895,7 @@ function isFunction(value) {
|
|
|
895
895
|
return typeof value === "function";
|
|
896
896
|
}
|
|
897
897
|
//#endregion
|
|
898
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.6_@types+react-dom@19.
|
|
898
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.6_@types+react-dom@19.3.0_@types+react@19.3.0__@types+rea_5f9a799abc4f9a9e6d85bf1bb9fa9936/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
899
899
|
var Primitive = [
|
|
900
900
|
"a",
|
|
901
901
|
"button",
|
|
@@ -932,7 +932,7 @@ var Primitive = [
|
|
|
932
932
|
};
|
|
933
933
|
}, {});
|
|
934
934
|
//#endregion
|
|
935
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.6_@types+react-dom@19.
|
|
935
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.6_@types+react-dom@19.3.0_@types+react@19.3.0__@types+reac_9693c01c5692b316cb89d152a948ae8e/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
936
936
|
function useStateMachine(initialState, machine) {
|
|
937
937
|
return React$1.useReducer((state, event) => {
|
|
938
938
|
return machine[state][event] ?? state;
|
|
@@ -1055,7 +1055,7 @@ function getElementRef(element) {
|
|
|
1055
1055
|
return element.props.ref || element.ref;
|
|
1056
1056
|
}
|
|
1057
1057
|
//#endregion
|
|
1058
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-id@1.1.2_@types+react@19.
|
|
1058
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-id@1.1.2_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
1059
1059
|
var useReactId = React$1[" useId ".trim().toString()] || (() => void 0);
|
|
1060
1060
|
var count = 0;
|
|
1061
1061
|
function useId$1(deterministicId) {
|
|
@@ -1066,7 +1066,7 @@ function useId$1(deterministicId) {
|
|
|
1066
1066
|
return deterministicId || (id ? `radix-${id}` : "");
|
|
1067
1067
|
}
|
|
1068
1068
|
//#endregion
|
|
1069
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-collapsible@1.1.14_@types+react-dom@19.
|
|
1069
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-collapsible@1.1.14_@types+react-dom@19.3.0_@types+react@19.3.0__@types+_0c44053653ada5b0f65d38b9de6b5dd2/node_modules/@radix-ui/react-collapsible/dist/index.mjs
|
|
1070
1070
|
var COLLAPSIBLE_NAME = "Collapsible";
|
|
1071
1071
|
var [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);
|
|
1072
1072
|
var [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);
|
|
@@ -1182,14 +1182,14 @@ var Root = Collapsible;
|
|
|
1182
1182
|
var Trigger = CollapsibleTrigger;
|
|
1183
1183
|
var Content = CollapsibleContent;
|
|
1184
1184
|
//#endregion
|
|
1185
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-direction@1.1.2_@types+react@19.
|
|
1185
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-direction@1.1.2_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
1186
1186
|
var DirectionContext = React$1.createContext(void 0);
|
|
1187
1187
|
function useDirection(localDir) {
|
|
1188
1188
|
const globalDir = React$1.useContext(DirectionContext);
|
|
1189
1189
|
return localDir || globalDir || "ltr";
|
|
1190
1190
|
}
|
|
1191
1191
|
//#endregion
|
|
1192
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-accordion@1.2.14_@types+react-dom@19.
|
|
1192
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-accordion@1.2.14_@types+react-dom@19.3.0_@types+react@19.3.0__@types+re_b14c2e354eb15ca6de0629216f19579e/node_modules/@radix-ui/react-accordion/dist/index.mjs
|
|
1193
1193
|
var ACCORDION_NAME = "Accordion";
|
|
1194
1194
|
var ACCORDION_KEYS = [
|
|
1195
1195
|
"Home",
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { t as registerFlightIsland } from "../flightRegistrations-DjYm0Wz6.mjs";
|
|
4
|
+
import React, { useEffect, useMemo, useRef } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region ../blocks/src/system/runtime/islands/islandDelivery.flight.tsx
|
|
7
|
+
const REACT_LAZY = Symbol.for("react.lazy");
|
|
8
|
+
function isLazy(value) {
|
|
9
|
+
return typeof value === "object" && value !== null && "$$typeof" in value && value.$$typeof === REACT_LAZY;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Flight wraps streamed or outlined chunks and not-yet-loaded client references in lazy
|
|
13
|
+
* wrappers. Resolve them as React does when it renders them: a pending one throws, which
|
|
14
|
+
* suspends this boundary until the content it is keyed by has arrived.
|
|
15
|
+
*/
|
|
16
|
+
function resolveLazy(value) {
|
|
17
|
+
return isLazy(value) ? resolveLazy(value._init(value._payload)) : value;
|
|
18
|
+
}
|
|
19
|
+
function typeName(type) {
|
|
20
|
+
const resolved = resolveLazy(type);
|
|
21
|
+
if (typeof resolved === "string") return resolved;
|
|
22
|
+
if (typeof resolved === "function") return resolved.displayName ?? resolved.name;
|
|
23
|
+
if (resolved && typeof resolved === "object" && "$$typeof" in resolved) return String(resolved.$$typeof);
|
|
24
|
+
return String(resolved);
|
|
25
|
+
}
|
|
26
|
+
/** Reduces React elements in the server output to what they render: type, key and props. */
|
|
27
|
+
function contentReplacer(_key, value) {
|
|
28
|
+
const resolved = resolveLazy(value);
|
|
29
|
+
if (typeof resolved === "function") return `fn:${typeName(resolved)}`;
|
|
30
|
+
if (typeof resolved === "symbol") return resolved.toString();
|
|
31
|
+
if (resolved && typeof resolved === "object" && "$$typeof" in resolved) {
|
|
32
|
+
const element = resolved;
|
|
33
|
+
return {
|
|
34
|
+
type: typeName(element.type),
|
|
35
|
+
key: element.key,
|
|
36
|
+
props: element.props
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
return resolved;
|
|
40
|
+
}
|
|
41
|
+
const fnv1a = (hash, char) => Math.imul(hash ^ char.charCodeAt(0), 16777619);
|
|
42
|
+
/** Folds over a string's characters without copying them into an array first. */
|
|
43
|
+
const foldCharacters = Array.prototype.reduce;
|
|
44
|
+
/** FNV-1a over the serialised content: a key, not a security boundary. */
|
|
45
|
+
function islandContentKey(content) {
|
|
46
|
+
const text = JSON.stringify(content, contentReplacer) ?? "";
|
|
47
|
+
const hash = foldCharacters.call(text, fnv1a, 2166136261);
|
|
48
|
+
return `${text.length}:${(hash >>> 0).toString(36)}`;
|
|
49
|
+
}
|
|
50
|
+
function FlightIslandRoot({ as, rootProps, transport, children }) {
|
|
51
|
+
const ref = useRef(null);
|
|
52
|
+
const kind = rootProps["data-rb-island"];
|
|
53
|
+
const registeredTransport = useRef(transport);
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
const element = ref.current;
|
|
56
|
+
if (!element) return;
|
|
57
|
+
return registerFlightIsland({
|
|
58
|
+
element,
|
|
59
|
+
kind,
|
|
60
|
+
readTransport: () => registeredTransport.current
|
|
61
|
+
});
|
|
62
|
+
}, [kind]);
|
|
63
|
+
return React.createElement(as, {
|
|
64
|
+
...rootProps,
|
|
65
|
+
"data-rb-island-delivery": "flight",
|
|
66
|
+
ref
|
|
67
|
+
}, children);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Inside a server component render the props already reach the browser as this
|
|
71
|
+
* component's props in the flight data, so no script repeats them.
|
|
72
|
+
*
|
|
73
|
+
* React owns the root element, and once the island mounts its runtime owns everything
|
|
74
|
+
* inside it, so React must never reconcile inside a mounted root. The root is keyed by
|
|
75
|
+
* its content: a refresh that brings the same props and fallback leaves a running island
|
|
76
|
+
* alone, and one that changes either replaces the whole root, which the runtime then
|
|
77
|
+
* mounts afresh.
|
|
78
|
+
*/
|
|
79
|
+
function IslandDelivery({ as, rootProps, transport, children }) {
|
|
80
|
+
const contentKey = useMemo(() => islandContentKey({
|
|
81
|
+
as,
|
|
82
|
+
rootProps,
|
|
83
|
+
transport,
|
|
84
|
+
children
|
|
85
|
+
}), [
|
|
86
|
+
as,
|
|
87
|
+
rootProps,
|
|
88
|
+
transport,
|
|
89
|
+
children
|
|
90
|
+
]);
|
|
91
|
+
return /* @__PURE__ */ jsx(FlightIslandRoot, {
|
|
92
|
+
as,
|
|
93
|
+
rootProps,
|
|
94
|
+
transport,
|
|
95
|
+
children
|
|
96
|
+
}, contentKey);
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
export { IslandDelivery };
|
|
@@ -1,14 +1,14 @@
|
|
|
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-BlfqYLJW.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { A as renderBlock, B as compileManifestContentContract, C as resolveSiteCustomBlocks, D as prefetchBlockDataWithFailures, E as requireSdkTheme, F as resolveRouteHrefForStage, G as isRecord, H as deriveFieldValidationPlan, I as getBlockDefinition, J as readPublishedBlockPlacement, L as siteFooterManifest, M as resolveAuthoredLinkHref, N as isRouteVisibleInStage, P as normalizeRenderStage, R as siteHeaderManifest, S as siteLocationRenderContext, T as MissingSdkThemeError, U as projectRepeaterGridLayout$1, V as admitLayoutGridForPlan, W as projectRepeaterGridLayoutForRendering$1, _ as invalidRenderableBlock, a as solvedInksForThemeRuntime, b as resolveSdkBlockManifest, c as MissingBlockOverrideError, d as buildThemeRuntime, f as parseBlocksTheme, g as collectMediaAssetSidecar, h as buildSiteRenderSupport, i as renderWithSdkThemeRuntime, j as getDefaultComponentRegistry, k as makeDefaultBlockComponent, l as PageRenderer, m as buildRenderablePageOutline, n as planLayoutThemeRuntime, o as ThemeScope, p as applyBindingsToContent, r as renderWithOverrideOnlyRuntime, s as EditorPageRenderer, t as Page, u as toBlocksPageRendererDataContext, v as projectRenderablePageOutline, w as MISSING_SDK_THEME_ERROR_CODE, x as sanitizeSdkRuntimeBlockContent, y as readInvalidBlockAdmission, z as admitTransportedRenderableManifestContent } from "./Page-
|
|
6
|
-
import { Nt as parseFieldDefinition } from "./registry.server-
|
|
3
|
+
import { An as resolveImageSourceSetWithContext$1, Ci as readRuntimeNow, Cn as RichText$2, En as computeMediaTransformStyle, Mn as resolveImageUrlWithContext$1, jn as resolveImageUrl$1, po as sanitizeHref, wi as resolveDateRuntimeContext } from "./display-DDNmyb0z.mjs";
|
|
4
|
+
import { $ as persistableMediaSchema, Q as mediaSchema, et as runtimeMediaSchema, tn as toUtcIsoDateTimeString } from "./noop-B_f7RqLD.mjs";
|
|
5
|
+
import { A as renderBlock, B as compileManifestContentContract, C as resolveSiteCustomBlocks, D as prefetchBlockDataWithFailures, E as requireSdkTheme, F as resolveRouteHrefForStage, G as isRecord, H as deriveFieldValidationPlan, I as getBlockDefinition, J as readPublishedBlockPlacement, L as siteFooterManifest, M as resolveAuthoredLinkHref, N as isRouteVisibleInStage, P as normalizeRenderStage, R as siteHeaderManifest, S as siteLocationRenderContext, T as MissingSdkThemeError, U as projectRepeaterGridLayout$1, V as admitLayoutGridForPlan, W as projectRepeaterGridLayoutForRendering$1, _ as invalidRenderableBlock, a as solvedInksForThemeRuntime, b as resolveSdkBlockManifest, c as MissingBlockOverrideError, d as buildThemeRuntime, f as parseBlocksTheme, g as collectMediaAssetSidecar, h as buildSiteRenderSupport, i as renderWithSdkThemeRuntime, j as getDefaultComponentRegistry, k as makeDefaultBlockComponent, l as PageRenderer, m as buildRenderablePageOutline, n as planLayoutThemeRuntime, o as ThemeScope, p as applyBindingsToContent, r as renderWithOverrideOnlyRuntime, s as EditorPageRenderer, t as Page, u as toBlocksPageRendererDataContext, v as projectRenderablePageOutline, w as MISSING_SDK_THEME_ERROR_CODE, x as sanitizeSdkRuntimeBlockContent, y as readInvalidBlockAdmission, z as admitTransportedRenderableManifestContent } from "./Page-Bu5TJU3L.mjs";
|
|
6
|
+
import { Nt as parseFieldDefinition } from "./registry.server-CMrdUGGv.mjs";
|
|
7
7
|
import { o as setContextResolveImageUrlContext, t as buildResolveImageUrlContext } from "./mediaContext-Fusweriw.mjs";
|
|
8
8
|
import { n as toBlocksImageResolveContextInput, r as toBlocksMediaAssets } from "./mediaAssets-B99AP7ai.mjs";
|
|
9
9
|
import "react";
|
|
10
|
-
import { z } from "zod";
|
|
11
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { z } from "zod";
|
|
12
12
|
import { BlocksIslandsHydrator } from "#sdk-rendering-client";
|
|
13
13
|
//#region ../core/src/navigation-portal-labels.ts
|
|
14
14
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { q as RichTextDocSchema, t as logger } from "./noop-B_f7RqLD.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 { Ei as createHostedBlockApiConfig } from "./display-DDNmyb0z.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,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as parseSurfaceTree } from "./accessibleSurfaces-
|
|
2
|
+
import { n as parseSurfaceTree } from "./accessibleSurfaces-_7jkuinl.mjs";
|
|
3
3
|
//#region ../site-renderer/src/runtimeResponse.ts
|
|
4
4
|
/** Recreate owner-produced rendering values at a JSON boundary, never trust copied proofs. */
|
|
5
5
|
function restoreRuntimeResponse(serialized) {
|
|
@@ -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-Dc8j5i79.mjs";
|
|
3
|
+
import { t as ShopClient } from "./shop.client-RljK0qPB.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-BEfD0e4m.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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as useBlockApi } from "./context-
|
|
2
|
+
import { u as getShopDisplayForItems } from "./shop.interactive-BH0xDlMF.mjs";
|
|
3
|
+
import { Cn as RichText, a as buildProductDetailDisplay, g as deriveCommerceCheckoutState, h as buildProductCartItem, i as buildProductCardDisplay, s as formatCommercePrice, v as productItemKey } from "./display-DDNmyb0z.mjs";
|
|
4
|
+
import { b as reportWorkflowError, h as assertNever, y as clearWorkflowFeedback } from "./creditProducts-CMOmhWm2.mjs";
|
|
5
|
+
import { f as DiscountCodeDisclosure, i as SiteTermsChangedNotice, n as DemoBookingPortalAccess, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "./DemoBookingPortalAccess-Cilv5zdS.mjs";
|
|
6
|
+
import { n as useBlockApi } from "./context-Xhf81Q-c.mjs";
|
|
7
7
|
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
8
|
-
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-
|
|
8
|
+
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-CY8qywXl.mjs";
|
|
9
9
|
import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-DKlZRNZD.mjs";
|
|
10
|
-
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-
|
|
10
|
+
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-Cq07nTyG.mjs";
|
|
11
11
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
12
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-
|
|
13
|
-
import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-
|
|
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-
|
|
12
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-BTurYEao.mjs";
|
|
13
|
+
import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-aAP2WbCR.mjs";
|
|
14
|
+
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-DQtwf_s2.mjs";
|
|
15
|
+
import { t as CarouselNodeClient } from "./carousel.client-eSSr1oYA.mjs";
|
|
16
|
+
import { n as useCommerceCart } from "./shop-commerce-store-D9CHihQv.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 {
|
|
2
|
+
import { _ as parseStoredCommerceCartState, m as buildPassCartItem, p as EMPTY_COMMERCE_CART_STATE, y as reduceCommerceCart } from "./display-DDNmyb0z.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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as useBlockApi } from "./context-
|
|
2
|
+
import { _ as shopProductPresentation } from "./shop.interactive-BH0xDlMF.mjs";
|
|
3
|
+
import { c as formatInterval, s as formatCommercePrice, yr as getShopSuccessCopy } from "./display-DDNmyb0z.mjs";
|
|
4
|
+
import { M as assertNever$1, h as assertNever } from "./creditProducts-CMOmhWm2.mjs";
|
|
5
|
+
import { f as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-Cilv5zdS.mjs";
|
|
6
|
+
import { n as useBlockApi } from "./context-Xhf81Q-c.mjs";
|
|
7
7
|
import { r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
8
8
|
import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
|
|
9
9
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
10
|
-
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-
|
|
10
|
+
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-Cq07nTyG.mjs";
|
|
11
11
|
import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
|
|
12
12
|
import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
|
|
13
13
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
14
|
-
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
14
|
+
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-CD82QX5i.mjs";
|
|
15
15
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
16
|
-
import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, r as MembershipCardView } from "./view-
|
|
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-
|
|
16
|
+
import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, r as MembershipCardView } from "./view-aAP2WbCR.mjs";
|
|
17
|
+
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-DQtwf_s2.mjs";
|
|
18
|
+
import { t as CarouselNodeClient } from "./carousel.client-eSSr1oYA.mjs";
|
|
19
|
+
import { r as formatEntitlementEnd } from "./dateFormatting-Bv6kjUW3.mjs";
|
|
20
|
+
import { t as addPassToCommerceCart } from "./shop-commerce-store-D9CHihQv.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
|
|
@@ -64,7 +64,8 @@ function shopPassesMembershipsReducer(state, action) {
|
|
|
64
64
|
...state,
|
|
65
65
|
checkout: createOpenCheckoutState({
|
|
66
66
|
productType: "pass",
|
|
67
|
-
product: action.pass
|
|
67
|
+
product: action.pass,
|
|
68
|
+
teamMember: action.teamMember
|
|
68
69
|
})
|
|
69
70
|
};
|
|
70
71
|
case "openMembershipCheckout": return {
|
|
@@ -204,6 +205,7 @@ function buildDirectShopCheckoutPlan(input) {
|
|
|
204
205
|
command: planDirectShopCheckoutRequest({
|
|
205
206
|
productType: input.checkout.item.productType,
|
|
206
207
|
productId: input.checkout.item.product.id,
|
|
208
|
+
...input.checkout.item.productType === "pass" && input.checkout.item.teamMember ? { teamMemberId: input.checkout.item.teamMember.id } : {},
|
|
207
209
|
form,
|
|
208
210
|
successUrl: successUrl.toString(),
|
|
209
211
|
cancelUrl: cancelUrl.toString(),
|
|
@@ -246,33 +248,113 @@ async function submitDirectShopCheckout(input) {
|
|
|
246
248
|
function ShopClient(props) {
|
|
247
249
|
return /* @__PURE__ */ jsx(PassesMembershipsController, { render: props.render });
|
|
248
250
|
}
|
|
251
|
+
function initialPassTeamMember(selection) {
|
|
252
|
+
if (!selection || selection.kind === "any") return null;
|
|
253
|
+
if (selection.kind === "owner") return selection.teamMember;
|
|
254
|
+
return selection.teamMembers.length === 1 ? selection.teamMembers[0] ?? null : null;
|
|
255
|
+
}
|
|
256
|
+
function PassTeamMemberChoice(props) {
|
|
257
|
+
const selection = props.selection;
|
|
258
|
+
if (!selection || selection.kind === "any") return null;
|
|
259
|
+
if (selection.kind === "owner") return /* @__PURE__ */ jsxs("p", {
|
|
260
|
+
className: "shop__card-team-member",
|
|
261
|
+
children: ["With ", selection.teamMember.name]
|
|
262
|
+
});
|
|
263
|
+
const selectId = `shop-pass-team-member-${props.passId}`;
|
|
264
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
265
|
+
className: "shop__card-team-member-choice rb-flex rb-flex-col rb-gap-1",
|
|
266
|
+
children: [
|
|
267
|
+
/* @__PURE__ */ jsx("label", {
|
|
268
|
+
className: "rb-label",
|
|
269
|
+
htmlFor: selectId,
|
|
270
|
+
children: "Choose your practitioner"
|
|
271
|
+
}),
|
|
272
|
+
/* @__PURE__ */ jsxs("select", {
|
|
273
|
+
id: selectId,
|
|
274
|
+
className: "form-input",
|
|
275
|
+
value: props.chosen?.id ?? "",
|
|
276
|
+
"aria-invalid": props.missing || void 0,
|
|
277
|
+
onChange: (event) => props.onChoose(selection.teamMembers.find((member) => member.id === event.target.value) ?? null),
|
|
278
|
+
children: [selection.teamMembers.length > 1 ? /* @__PURE__ */ jsx("option", {
|
|
279
|
+
value: "",
|
|
280
|
+
children: "Choose…"
|
|
281
|
+
}) : null, selection.teamMembers.map((member) => /* @__PURE__ */ jsx("option", {
|
|
282
|
+
value: member.id,
|
|
283
|
+
children: member.name
|
|
284
|
+
}, member.id))]
|
|
285
|
+
}),
|
|
286
|
+
props.chosen ? /* @__PURE__ */ jsxs("p", {
|
|
287
|
+
className: "rb-caption status-muted",
|
|
288
|
+
children: [
|
|
289
|
+
"You'll book these sessions with ",
|
|
290
|
+
props.chosen.name,
|
|
291
|
+
"."
|
|
292
|
+
]
|
|
293
|
+
}) : props.missing ? /* @__PURE__ */ jsx("p", {
|
|
294
|
+
className: "rb-caption status-error",
|
|
295
|
+
role: "alert",
|
|
296
|
+
children: "Choose who you'd like to book these sessions with."
|
|
297
|
+
}) : null
|
|
298
|
+
]
|
|
299
|
+
});
|
|
300
|
+
}
|
|
249
301
|
function PassProductCard(props) {
|
|
250
302
|
const action = props.display.action;
|
|
251
|
-
|
|
303
|
+
const nobodyToChoose = action.kind === "purchase" && action.product.teamMemberSelection?.kind === "choose" && action.product.teamMemberSelection.teamMembers.length === 0;
|
|
304
|
+
if (action.kind === "unavailable" || nobodyToChoose) return /* @__PURE__ */ jsx(PassCardView, {
|
|
252
305
|
display: props.display,
|
|
253
306
|
presentation: props.presentation,
|
|
254
307
|
index: props.index,
|
|
255
|
-
action: /* @__PURE__ */ jsx(PassPurchaseUnavailable, { label: action.label })
|
|
308
|
+
action: /* @__PURE__ */ jsx(PassPurchaseUnavailable, { label: action.kind === "unavailable" ? action.label : "Not available to buy online yet" })
|
|
256
309
|
});
|
|
310
|
+
return /* @__PURE__ */ jsx(PurchasablePassCard, {
|
|
311
|
+
...props,
|
|
312
|
+
action
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
function PurchasablePassCard(props) {
|
|
316
|
+
const { product } = props.action;
|
|
317
|
+
const selection = product.teamMemberSelection;
|
|
318
|
+
const [chosen, setChosen] = useState(() => initialPassTeamMember(selection));
|
|
319
|
+
const [missing, setMissing] = useState(false);
|
|
320
|
+
const buy = () => {
|
|
321
|
+
if (selection?.kind === "choose" && !chosen) {
|
|
322
|
+
setMissing(true);
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
props.onBuy(product, chosen);
|
|
326
|
+
};
|
|
257
327
|
return /* @__PURE__ */ jsx(PassCardView, {
|
|
258
328
|
display: props.display,
|
|
259
329
|
presentation: props.presentation,
|
|
260
330
|
index: props.index,
|
|
261
|
-
action: /* @__PURE__ */ jsx(
|
|
331
|
+
action: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(PassTeamMemberChoice, {
|
|
332
|
+
passId: product.id,
|
|
333
|
+
selection,
|
|
334
|
+
chosen,
|
|
335
|
+
missing,
|
|
336
|
+
onChoose: (teamMember) => {
|
|
337
|
+
setChosen(teamMember);
|
|
338
|
+
setMissing(false);
|
|
339
|
+
}
|
|
340
|
+
}), /* @__PURE__ */ jsx(ShopPurchaseAction, {
|
|
262
341
|
presentation: props.presentation,
|
|
263
342
|
type: "button",
|
|
264
343
|
variant: props.buttonVariant,
|
|
265
344
|
size: "md",
|
|
266
345
|
extraClassName: "shop__cta",
|
|
267
|
-
label: action.label,
|
|
268
|
-
onClick:
|
|
269
|
-
}),
|
|
346
|
+
label: props.action.label,
|
|
347
|
+
onClick: buy
|
|
348
|
+
})] }),
|
|
270
349
|
feedback: /* @__PURE__ */ jsx(ShopAddFeedback, {
|
|
271
350
|
active: props.feedbackActive,
|
|
272
|
-
itemLabel:
|
|
351
|
+
itemLabel: chosen ? `${product.name} with ${chosen.name}` : product.name
|
|
273
352
|
})
|
|
274
353
|
});
|
|
275
354
|
}
|
|
355
|
+
function checkoutProductLabel(checkout) {
|
|
356
|
+
return `${checkout.item.productType === "pass" && checkout.item.teamMember ? `${checkout.item.product.name} with ${checkout.item.teamMember.name}` : checkout.item.product.name} — ${formatCommercePrice(checkout.item.product.price, checkout.item.product.currency)}`;
|
|
357
|
+
}
|
|
276
358
|
function getCheckoutModalTitle(checkout) {
|
|
277
359
|
if (!checkout) return "";
|
|
278
360
|
if (checkout.item.productType === "membership") return "Subscribe to Membership";
|
|
@@ -324,11 +406,12 @@ function PassesMembershipsController({ render }) {
|
|
|
324
406
|
subtotalCents: checkout?.item.product.price
|
|
325
407
|
});
|
|
326
408
|
const discountApplyFeedback = getDiscountApplyFeedback(discountApply.status, formatCommercePrice);
|
|
327
|
-
const handleBuyPass = useCallback((pass) => {
|
|
409
|
+
const handleBuyPass = useCallback((pass, teamMember) => {
|
|
328
410
|
if (hydration.passPurchaseMode === "add_to_cart") {
|
|
329
411
|
addPassToCommerceCart(api.config.siteId, {
|
|
330
412
|
passId: pass.id,
|
|
331
413
|
title: pass.name,
|
|
414
|
+
...teamMember ? { teamMember } : {},
|
|
332
415
|
unitPriceCents: pass.price,
|
|
333
416
|
currency: pass.currency
|
|
334
417
|
});
|
|
@@ -337,7 +420,8 @@ function PassesMembershipsController({ render }) {
|
|
|
337
420
|
}
|
|
338
421
|
dispatch({
|
|
339
422
|
type: "openPassCheckout",
|
|
340
|
-
pass
|
|
423
|
+
pass,
|
|
424
|
+
teamMember
|
|
341
425
|
});
|
|
342
426
|
}, [
|
|
343
427
|
api.config.siteId,
|
|
@@ -512,15 +596,10 @@ function PassesMembershipsController({ render }) {
|
|
|
512
596
|
children: [
|
|
513
597
|
/* @__PURE__ */ jsxs("p", {
|
|
514
598
|
className: "shop__modal-product",
|
|
515
|
-
children: [
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
checkout.item.productType === "membership" ? /* @__PURE__ */ jsx("span", {
|
|
520
|
-
className: "shop__modal-interval",
|
|
521
|
-
children: formatInterval(checkout.item.product.billingInterval)
|
|
522
|
-
}) : null
|
|
523
|
-
]
|
|
599
|
+
children: [checkoutProductLabel(checkout), checkout.item.productType === "membership" ? /* @__PURE__ */ jsx("span", {
|
|
600
|
+
className: "shop__modal-interval",
|
|
601
|
+
children: formatInterval(checkout.item.product.billingInterval)
|
|
602
|
+
}) : null]
|
|
524
603
|
}),
|
|
525
604
|
/* @__PURE__ */ jsx(SiteTermsChangedNotice, { message: siteTerms.notice }),
|
|
526
605
|
checkout.duplicateWarning ? /* @__PURE__ */ jsxs(FeedbackMessage, {
|