@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,10 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { an as staticHeaderChromeRuntime } from "./shop.interactive-BH0xDlMF.mjs";
|
|
3
|
+
import { t as buildCartDisplay } from "./display-DDNmyb0z.mjs";
|
|
3
4
|
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
4
5
|
import { n as NAV_DROPDOWN_SHIFT_PROPERTY } from "./navDropdownSizing-CUjDrcIt.mjs";
|
|
5
6
|
import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-DKlZRNZD.mjs";
|
|
6
7
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
7
|
-
import { n as useCommerceCart } from "./shop-commerce-store-
|
|
8
|
+
import { n as useCommerceCart } from "./shop-commerce-store-D9CHihQv.mjs";
|
|
8
9
|
import * as React$1 from "react";
|
|
9
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
11
|
import { createPortal } from "react-dom";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as resolveEventDetailsPresentation, t as EventDetailsView } from "./view-
|
|
2
|
+
import { n as resolveEventDetailsPresentation, t as EventDetailsView } from "./view-oToSpu1N.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/event-details.client.tsx
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { $
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as useBlockApi } from "./context-
|
|
7
|
-
import { a as getWaitlistClaimEntryIdFromUrl, i as eventRegistrationCheckoutReturnRequest, o as getWaitlistClaimTokenFromUrl, r as useEventRegistrationWizard, t as EventPaymentMount } from "./EventRegistrationPayment-
|
|
2
|
+
import { $ as bookingEntry, I as offeringNounForEvent, Jt as formatEventPriceDisplay, N as displayButtonText, Q as bookingCardEntry, X as DEFAULT_BOOKING_BUTTON_TEXT, Z as bookingBarPlacement, et as bookingEntryProgress, j as buildEventRegistrationDisplayFromScopedEvents, nt as courseTitleOf, tt as bookingPanelHeading } from "./shop.interactive-BH0xDlMF.mjs";
|
|
3
|
+
import { $n as canJoinEventWaitlistOnAnyMode, $t as getTicketTypeLineMax, At as confirmationPaymentRows, B as placeCountCeiling, Bt as formatTime, C as panelShouldOpen, D as registrationStepLabel, Fo as publicEventPricingType, Ft as formatBookingWhen, G as resolveRegistrationAvailabilityBlocker, Gt as occurrenceTitleOverride, It as formatDate, Jt as formatPrice, L as shouldPromptForLogin, Lt as formatEventDateTime, Mo as publicEventPricingCurrency, Mt as ENTITLEMENT_SINGLE_TICKET_TOOLTIP, Nt as areEntitlementsDisabledForTicketCount, O as registrationStepLabelContext, Po as publicEventPricingStrategy, Qn as canJoinEventWaitlist, Qt as getTicketSelectionTotal, R as fullyBookedLabel, Ri as resolveEventRegistrationScopedEvents, Rt as formatPassCreditUsageLabel, S as getEventSelectionMode, Sn as shownVenue, Ut as getTicketTypeAvailabilityLabel, Wt as getVisibleTicketTypes, X as isEventRegistrationAvailable, Yt as canRequestTicketOption, Z as normalizeEventRegistrationMaxTickets, Zt as getTicketLineQuantity, ar as getRemainingPlaces, cr as selectMostOpenCapacitySource, jt as resolveFinishedPresentation, k as areEventRegistrationPaymentSelectionsEqual, lr as groupPublicEventsByRun, nn as setTicketLineQuantity, or as isEventFull, ot as paymentChoiceDetails, q as settledRemainingPlaces, qt as withOccurrenceTitle, rr as getEventAvailability, sr as selectEventCapacitySource, st as paymentChoicePrice, vr as getRegistrationSuccessCopy, yn as placesLeftLabel, zt as formatRegistrationSchedule } from "./display-DDNmyb0z.mjs";
|
|
4
|
+
import { h as assertNever } from "./creditProducts-CMOmhWm2.mjs";
|
|
5
|
+
import { c as NavigationHandOffPanel, f as DiscountCodeDisclosure, i as SiteTermsChangedNotice, r as SiteTermsAgreementField, s as eventSiteTermsSurface, t as BookingConfirmation } from "./DemoBookingPortalAccess-Cilv5zdS.mjs";
|
|
6
|
+
import { n as useBlockApi } from "./context-Xhf81Q-c.mjs";
|
|
7
|
+
import { a as getWaitlistClaimEntryIdFromUrl, i as eventRegistrationCheckoutReturnRequest, o as getWaitlistClaimTokenFromUrl, r as useEventRegistrationWizard, t as EventPaymentMount } from "./EventRegistrationPayment-CqH3hE-k.mjs";
|
|
8
8
|
import { l as SpinnerNode, r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
9
9
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
10
10
|
import { t as CheckboxChoice } from "./CheckboxChoice-W_uiRgDK.mjs";
|
|
11
11
|
import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
|
|
12
12
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
13
13
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
14
|
-
import { i as useBookingNowIso } from "./BookingQuestionFields-
|
|
15
|
-
import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-
|
|
14
|
+
import { i as useBookingNowIso } from "./BookingQuestionFields-LLGCWjvU.mjs";
|
|
15
|
+
import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-CD82QX5i.mjs";
|
|
16
16
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
17
|
-
import { i as BookingConsentAgreement, l as PaymentChoiceRows, n as BookingQuestionSections, r as MagicLinkForm, t as BookingMailingListNote } from "./BookingMailingListNote-
|
|
17
|
+
import { i as BookingConsentAgreement, l as PaymentChoiceRows, n as BookingQuestionSections, r as MagicLinkForm, t as BookingMailingListNote } from "./BookingMailingListNote-Br1VyHkP.mjs";
|
|
18
18
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
19
|
-
import { i as RegistrationClosedState, n as BookingEntryBar, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-
|
|
20
|
-
import { t as createLucideIcon } from "./createLucideIcon-
|
|
19
|
+
import { i as RegistrationClosedState, n as BookingEntryBar, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-CR7_0yu4.mjs";
|
|
20
|
+
import { t as createLucideIcon } from "./createLucideIcon-BrXgHVKN.mjs";
|
|
21
21
|
import React, { useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
22
22
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
23
23
|
import { createPortal } from "react-dom";
|
|
@@ -1164,6 +1164,26 @@ function ClosedPaymentPanel({ message }) {
|
|
|
1164
1164
|
});
|
|
1165
1165
|
}
|
|
1166
1166
|
//#endregion
|
|
1167
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/existingBookingsSummary.ts
|
|
1168
|
+
function places(count) {
|
|
1169
|
+
return count === 1 ? "1 place" : `${count} places`;
|
|
1170
|
+
}
|
|
1171
|
+
/** Waitlist entries have their own notice, so only confirmed bookings count here. */
|
|
1172
|
+
function summariseExistingBookings(registrations) {
|
|
1173
|
+
const confirmed = registrations.filter((registration) => registration.status === "confirmed");
|
|
1174
|
+
const [only] = confirmed;
|
|
1175
|
+
if (!only) return { kind: "none" };
|
|
1176
|
+
if (confirmed.length === 1) return {
|
|
1177
|
+
kind: "booked",
|
|
1178
|
+
detail: only.ticketBreakdown ?? places(only.ticketsCount)
|
|
1179
|
+
};
|
|
1180
|
+
const placeCount = confirmed.reduce((total, registration) => total + registration.ticketsCount, 0);
|
|
1181
|
+
return {
|
|
1182
|
+
kind: "booked",
|
|
1183
|
+
detail: `${confirmed.length} bookings · ${places(placeCount)}`
|
|
1184
|
+
};
|
|
1185
|
+
}
|
|
1186
|
+
//#endregion
|
|
1167
1187
|
//#region ../blocks/src/system/runtime/nodes/event-registration/EventSelectionStep.tsx
|
|
1168
1188
|
/** Dates in order, grouped by the month and year they fall in, both in the date's own zone. */
|
|
1169
1189
|
function groupByMonth(events) {
|
|
@@ -2446,7 +2466,7 @@ function entitlementRows(props) {
|
|
|
2446
2466
|
//#region ../blocks/src/system/runtime/nodes/event-registration/CalendarAction.tsx
|
|
2447
2467
|
/** Download effects happen only after a click, including in editor preview. */
|
|
2448
2468
|
async function downloadCalendar(calendar) {
|
|
2449
|
-
const { renderCalendarFeedIcs } = await import("./src-
|
|
2469
|
+
const { renderCalendarFeedIcs } = await import("./src-BozhJ43Z.mjs");
|
|
2450
2470
|
const url = URL.createObjectURL(new Blob([renderCalendarFeedIcs(calendar.feed)], { type: "text/calendar;charset=utf-8" }));
|
|
2451
2471
|
const link = document.createElement("a");
|
|
2452
2472
|
link.href = url;
|
|
@@ -2749,6 +2769,7 @@ function ExistingRegistrationNotice(props) {
|
|
|
2749
2769
|
className: "er-existing-registration-notice",
|
|
2750
2770
|
titleClassName: "er-existing-registration-title",
|
|
2751
2771
|
bodyClassName: "er-existing-registration-copy",
|
|
2772
|
+
secondaryBodyClassName: "er-existing-registration-copy",
|
|
2752
2773
|
icon: /* @__PURE__ */ jsx(StateIcon, {
|
|
2753
2774
|
variant: isBooked ? "success" : "info",
|
|
2754
2775
|
children: /* @__PURE__ */ jsx("svg", {
|
|
@@ -2763,9 +2784,14 @@ function ExistingRegistrationNotice(props) {
|
|
|
2763
2784
|
})
|
|
2764
2785
|
})
|
|
2765
2786
|
}),
|
|
2766
|
-
title: isBooked ? "You're already booked
|
|
2767
|
-
body: "Sign out to book for someone else.",
|
|
2768
|
-
|
|
2787
|
+
title: isBooked ? "You're already booked for this date" : "You're already on the waitlist for this event.",
|
|
2788
|
+
body: isBooked ? props.detail : "Sign out to book for someone else.",
|
|
2789
|
+
secondaryBody: isBooked ? "Need more tickets? You can book them below. They'll come as a new booking with its own confirmation email, and your first booking won't change." : void 0,
|
|
2790
|
+
actions: isBooked ? /* @__PURE__ */ jsx("a", {
|
|
2791
|
+
href: "/portal",
|
|
2792
|
+
className: "er-existing-registration-link",
|
|
2793
|
+
children: "View my bookings"
|
|
2794
|
+
}) : /* @__PURE__ */ jsx("button", {
|
|
2769
2795
|
type: "button",
|
|
2770
2796
|
className: "er-existing-registration-link",
|
|
2771
2797
|
onClick: props.onBookForSomeoneElse,
|
|
@@ -2871,8 +2897,14 @@ function ClosedAdmissionNotice({ wizard }) {
|
|
|
2871
2897
|
}
|
|
2872
2898
|
function TicketSelectionContent({ wizard, display }) {
|
|
2873
2899
|
if (!wizard.selectedEvent && !wizard.occurrenceContext) return null;
|
|
2900
|
+
const isWaitlisted = wizard.admission.kind === "closed" && wizard.admission.reason === "alreadyWaitlisted";
|
|
2901
|
+
const existingBookings = summariseExistingBookings(wizard.existingRegistrations);
|
|
2874
2902
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2875
|
-
|
|
2903
|
+
existingBookings.kind === "booked" && !isWaitlisted && /* @__PURE__ */ jsx(ExistingRegistrationNotice, {
|
|
2904
|
+
kind: "booked",
|
|
2905
|
+
detail: existingBookings.detail
|
|
2906
|
+
}),
|
|
2907
|
+
isWaitlisted && /* @__PURE__ */ jsx(ExistingRegistrationNotice, {
|
|
2876
2908
|
kind: "waitlisted",
|
|
2877
2909
|
onBookForSomeoneElse: wizard.handleBookForSomeoneElse
|
|
2878
2910
|
}),
|
|
@@ -3250,7 +3282,13 @@ function EventRegistrationSurface(props) {
|
|
|
3250
3282
|
return /* @__PURE__ */ jsxs("div", {
|
|
3251
3283
|
ref: useRegistrationStepFocus(wizard.step, props.variant),
|
|
3252
3284
|
className: `rb-reg-surface er-container${props.variant === "overlay" ? " er-container--overlay" : ""}`,
|
|
3253
|
-
children: [
|
|
3285
|
+
children: [wizard.handOff ? /* @__PURE__ */ jsx(NavigationHandOffPanel, {
|
|
3286
|
+
handOff: wizard.handOff,
|
|
3287
|
+
purpose: wizard.handOff.purpose,
|
|
3288
|
+
businessName: wizard.handOffBusinessName,
|
|
3289
|
+
offeringLabel: wizard.handOffOfferingLabel,
|
|
3290
|
+
onBack: () => wizard.dismissHandOff?.()
|
|
3291
|
+
}, wizard.handOff.url) : presentation.layout === "steps" ? /* @__PURE__ */ jsx(EventRegistrationStepLayout, {
|
|
3254
3292
|
...props,
|
|
3255
3293
|
progress: presentation.progress
|
|
3256
3294
|
}) : /* @__PURE__ */ jsxs("div", {
|
|
@@ -3386,6 +3424,8 @@ function useConfiguredEventRegistrationWizard(props) {
|
|
|
3386
3424
|
maxTicketsNum: normalizeEventRegistrationMaxTickets(props.maxTickets ?? "5"),
|
|
3387
3425
|
mailingList: props.mailingList,
|
|
3388
3426
|
siteTerms: props.siteTerms,
|
|
3427
|
+
pageNavigation: props.pageNavigation,
|
|
3428
|
+
offeringNoun: props.offeringNoun,
|
|
3389
3429
|
siteName: props.siteName
|
|
3390
3430
|
});
|
|
3391
3431
|
}
|
|
@@ -3486,7 +3526,8 @@ function EventRegistrationWizardView(viewProps) {
|
|
|
3486
3526
|
display,
|
|
3487
3527
|
buttonText,
|
|
3488
3528
|
noun: props.offeringNoun ?? offeringNounForEvent(summaryEvent ?? wizard.scopedEvents[0] ?? null, null),
|
|
3489
|
-
attendanceMode: wizard.selectedAttendanceMode
|
|
3529
|
+
attendanceMode: wizard.selectedAttendanceMode,
|
|
3530
|
+
courseTitle: courseTitleOf(props.subject)
|
|
3490
3531
|
};
|
|
3491
3532
|
const progressFacts = bookingEntryProgress({
|
|
3492
3533
|
presentation,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
4
|
-
import { t as EventCalendarClient } from "./EventCalendar.client-
|
|
5
|
-
import { t as mountReactIsland } from "./reactMount-
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-Xhf81Q-c.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
4
|
+
import { t as EventCalendarClient } from "./EventCalendar.client-ucgdMS35.mjs";
|
|
5
|
+
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DFjRKvzM.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/eventCalendar.tsx
|
|
@@ -12,18 +12,15 @@ const enhance = (root, props) => {
|
|
|
12
12
|
const { siteId, apiBaseUrl, stage } = props;
|
|
13
13
|
if (!siteId) throw new Error("[sdk:islands] event-calendar requires siteId");
|
|
14
14
|
if (!apiBaseUrl) throw new Error("[sdk:islands] event-calendar requires apiBaseUrl");
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
children: /* @__PURE__ */ jsx(EventCalendarClient, { ...props })
|
|
25
|
-
}));
|
|
26
|
-
});
|
|
15
|
+
return mountReactIsland(root, /* @__PURE__ */ jsx(BlockApiProvider, {
|
|
16
|
+
config: buildRouteIslandApiConfig({
|
|
17
|
+
readAuthority: props.readAuthority,
|
|
18
|
+
apiBaseUrl,
|
|
19
|
+
siteId,
|
|
20
|
+
stage
|
|
21
|
+
}),
|
|
22
|
+
children: /* @__PURE__ */ jsx(EventCalendarClient, { ...props })
|
|
23
|
+
}));
|
|
27
24
|
};
|
|
28
25
|
//#endregion
|
|
29
26
|
export { decode, enhance };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as BlockApiProvider } from "./context-Xhf81Q-c.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
4
|
+
import { n as EventCombinedIslandClient } from "./EventCombined.client-BEdfJGpx.mjs";
|
|
5
|
+
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DFjRKvzM.mjs";
|
|
7
|
+
import "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
//#region src/rendering/islands/enhancers/eventCombined.tsx
|
|
10
|
+
const decode = defineIslandPropsDecoder("event-combined");
|
|
11
|
+
const enhance = (root, props) => {
|
|
12
|
+
const { siteId, apiBaseUrl, stage } = props;
|
|
13
|
+
if (!apiBaseUrl) throw new Error("[sdk:islands] event-combined requires apiBaseUrl");
|
|
14
|
+
return mountReactIsland(root, /* @__PURE__ */ jsx(BlockApiProvider, {
|
|
15
|
+
config: buildRouteIslandApiConfig({
|
|
16
|
+
readAuthority: props.readAuthority,
|
|
17
|
+
apiBaseUrl,
|
|
18
|
+
siteId,
|
|
19
|
+
stage
|
|
20
|
+
}),
|
|
21
|
+
children: /* @__PURE__ */ jsx(EventCombinedIslandClient, { ...props })
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { decode, enhance };
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as EventDetailsIslandClient } from "./event-details.client-
|
|
4
|
-
import { t as mountReactIsland } from "./reactMount-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
3
|
+
import { t as EventDetailsIslandClient } from "./event-details.client-DZZaoCUc.mjs";
|
|
4
|
+
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/rendering/islands/enhancers/eventDetails.tsx
|
|
8
8
|
const decode = defineIslandPropsDecoder("event-details");
|
|
9
9
|
const enhance = (root, props) => {
|
|
10
|
-
return mountReactIsland(root, ({
|
|
11
|
-
reactRoot.render(/* @__PURE__ */ jsx(EventDetailsIslandClient, { ...props }));
|
|
12
|
-
});
|
|
10
|
+
return mountReactIsland(root, /* @__PURE__ */ jsx(EventDetailsIslandClient, { ...props }));
|
|
13
11
|
};
|
|
14
12
|
//#endregion
|
|
15
13
|
export { decode, enhance };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as BlockApiProvider } from "./context-Xhf81Q-c.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
4
|
+
import { t as EventListingClient } from "./EventListing.client-8MFGI9BA.mjs";
|
|
5
|
+
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DFjRKvzM.mjs";
|
|
7
|
+
import "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
//#region src/rendering/islands/enhancers/eventListing.tsx
|
|
10
|
+
const decode = defineIslandPropsDecoder("event-listing");
|
|
11
|
+
const enhance = (root, props) => {
|
|
12
|
+
const { siteId, apiBaseUrl, stage } = props;
|
|
13
|
+
if (!siteId) throw new Error("[sdk:islands] event-listing requires siteId");
|
|
14
|
+
if (!apiBaseUrl) throw new Error("[sdk:islands] event-listing requires apiBaseUrl");
|
|
15
|
+
return mountReactIsland(root, /* @__PURE__ */ jsx(BlockApiProvider, {
|
|
16
|
+
config: buildRouteIslandApiConfig({
|
|
17
|
+
readAuthority: props.readAuthority,
|
|
18
|
+
apiBaseUrl,
|
|
19
|
+
siteId,
|
|
20
|
+
stage
|
|
21
|
+
}),
|
|
22
|
+
children: /* @__PURE__ */ jsx(EventListingClient, { ...props })
|
|
23
|
+
}));
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { decode, enhance };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as EventRegistrationIslandClient } from "./event-registration.client-
|
|
3
|
-
import { t as BlockApiProvider } from "./context-
|
|
4
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
5
|
-
import { t as mountReactIsland } from "./reactMount-
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
2
|
+
import { t as EventRegistrationIslandClient } from "./event-registration.client-CLBdHUfd.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-Xhf81Q-c.mjs";
|
|
4
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
5
|
+
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DFjRKvzM.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/eventRegistration.tsx
|
|
@@ -12,20 +12,20 @@ const enhance = (root, props) => {
|
|
|
12
12
|
const { siteId, apiBaseUrl, stage, portalToken, previewToken } = props;
|
|
13
13
|
if (!siteId) throw new Error("[sdk:islands] event-registration requires siteId");
|
|
14
14
|
if (!apiBaseUrl) throw new Error("[sdk:islands] event-registration requires apiBaseUrl");
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
})
|
|
28
|
-
});
|
|
15
|
+
return mountReactIsland(root, /* @__PURE__ */ jsx(BlockApiProvider, {
|
|
16
|
+
config: {
|
|
17
|
+
...buildRouteIslandApiConfig({
|
|
18
|
+
readAuthority: props.readAuthority,
|
|
19
|
+
apiBaseUrl,
|
|
20
|
+
portalToken,
|
|
21
|
+
previewToken,
|
|
22
|
+
siteId,
|
|
23
|
+
stage
|
|
24
|
+
}),
|
|
25
|
+
pageNavigation: props.render.hydration.pageNavigation
|
|
26
|
+
},
|
|
27
|
+
children: /* @__PURE__ */ jsx(EventRegistrationIslandClient, { ...props })
|
|
28
|
+
}));
|
|
29
29
|
};
|
|
30
30
|
//#endregion
|
|
31
31
|
export { decode, enhance };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region ../blocks/src/system/runtime/islands/flightRegistrations.ts
|
|
3
|
+
const STORE_KEY = Symbol.for("riverbankcms.islands.flight-registrations.v1");
|
|
4
|
+
function flightIslandStore() {
|
|
5
|
+
const host = globalThis;
|
|
6
|
+
const existing = host[STORE_KEY];
|
|
7
|
+
if (existing) return existing;
|
|
8
|
+
const created = {
|
|
9
|
+
registrations: /* @__PURE__ */ new Map(),
|
|
10
|
+
listeners: /* @__PURE__ */ new Set()
|
|
11
|
+
};
|
|
12
|
+
host[STORE_KEY] = created;
|
|
13
|
+
return created;
|
|
14
|
+
}
|
|
15
|
+
/** One registration per element; the returned disposer only removes its own. */
|
|
16
|
+
function registerFlightIsland(registration) {
|
|
17
|
+
const { registrations, listeners } = flightIslandStore();
|
|
18
|
+
registrations.set(registration.element, registration);
|
|
19
|
+
listeners.forEach((listener) => listener({
|
|
20
|
+
type: "registered",
|
|
21
|
+
registration
|
|
22
|
+
}));
|
|
23
|
+
return () => {
|
|
24
|
+
if (registrations.get(registration.element) !== registration) return;
|
|
25
|
+
registrations.delete(registration.element);
|
|
26
|
+
listeners.forEach((listener) => listener({
|
|
27
|
+
type: "disposed",
|
|
28
|
+
element: registration.element
|
|
29
|
+
}));
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/** Replays current registrations, then reports each change until unsubscribed. */
|
|
33
|
+
function subscribeFlightIslands(listener) {
|
|
34
|
+
const { registrations, listeners } = flightIslandStore();
|
|
35
|
+
listeners.add(listener);
|
|
36
|
+
registrations.forEach((registration) => listener({
|
|
37
|
+
type: "registered",
|
|
38
|
+
registration
|
|
39
|
+
}));
|
|
40
|
+
return () => {
|
|
41
|
+
listeners.delete(listener);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { subscribeFlightIslands as n, registerFlightIsland as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
4
|
-
import { t as FormNodeClient } from "./form.client-
|
|
5
|
-
import { t as mountReactIsland } from "./reactMount-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-Xhf81Q-c.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
4
|
+
import { t as FormNodeClient } from "./form.client-D3_RF29v.mjs";
|
|
5
|
+
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
//#region src/rendering/islands/enhancers/form.tsx
|
|
@@ -75,16 +75,11 @@ const enhance = (root, props) => {
|
|
|
75
75
|
auth: { type: "none" },
|
|
76
76
|
siteId
|
|
77
77
|
};
|
|
78
|
-
const
|
|
79
|
-
return mountReactIsland(root,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}));
|
|
84
|
-
requestAnimationFrame(() => {
|
|
85
|
-
applySnapshots(root.querySelector("form"), snapshots);
|
|
86
|
-
});
|
|
87
|
-
});
|
|
78
|
+
const fallbackForm = root.querySelector("form");
|
|
79
|
+
return mountReactIsland(root, /* @__PURE__ */ jsx(BlockApiProvider, {
|
|
80
|
+
config: apiConfig,
|
|
81
|
+
children: /* @__PURE__ */ jsx(FormNodeClient, { ...props })
|
|
82
|
+
}), { handover: (mount) => applySnapshots(mount.querySelector("form"), snapshotFormValues(fallbackForm)) });
|
|
88
83
|
};
|
|
89
84
|
//#endregion
|
|
90
85
|
export { decode, enhance };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as useBlockApi } from "./context-
|
|
2
|
+
import { Gi as listLookSlot } from "./display-DDNmyb0z.mjs";
|
|
3
|
+
import { _ as ok, g as err, h as assertNever } from "./creditProducts-CMOmhWm2.mjs";
|
|
4
|
+
import { n as useBlockApi } from "./context-Xhf81Q-c.mjs";
|
|
5
5
|
import { S as clsx } from "./ThemedButton-BdnEwA38.mjs";
|
|
6
6
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
7
|
-
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-
|
|
7
|
+
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-DWLf_3PF.mjs";
|
|
8
8
|
import { t as SpamProtectionWidget } from "./SpamProtectionWidget-CCF6YLUX.mjs";
|
|
9
9
|
import { t as useAltchaProtection } from "./altchaProtection-DjIV9A5n.mjs";
|
|
10
10
|
import { useReducer, useRef } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Gi as listLookSlot, Wi as listLookControl } from "./display-DDNmyb0z.mjs";
|
|
3
3
|
import { t as CheckboxChoice } from "./CheckboxChoice-W_uiRgDK.mjs";
|
|
4
4
|
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-C3H26pN9.mjs";
|
|
5
5
|
import "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Mt as formatDate$1, Pt as formatDateTime, Yt as parseBookingLocalDate, en as parseUtcIsoDateTimeString } from "./noop-B_f7RqLD.mjs";
|
|
3
3
|
//#region ../blocks/src/bindings/formatDate.ts
|
|
4
4
|
/** Admit stored civil dates or offset-aware instants before core projection. */
|
|
5
5
|
function formatDate(value, context, options) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Mt as formatDate, Qt as resolveBookingTimeZoneId, sn as formatGiftCardAmountLabel, t as logger, tn as toUtcIsoDateTimeString } from "../noop-B_f7RqLD.mjs";
|
|
4
|
+
import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-Xhf81Q-c.mjs";
|
|
5
5
|
import { i as ThemedButtonLink, r as ThemedButton } from "../ThemedButton-BdnEwA38.mjs";
|
|
6
6
|
import { t as CheckIcon } from "../CheckIcon-CVcKteXH.mjs";
|
|
7
7
|
import React from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as mountHeaderChromeRuntime } from "./enhanceHeaderSection-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
3
|
+
import { t as mountHeaderChromeRuntime } from "./enhanceHeaderSection-D7gRy-pL.mjs";
|
|
4
4
|
//#region src/rendering/islands/enhancers/headerSection.ts
|
|
5
5
|
const decode = defineIslandPropsDecoder("headerSection");
|
|
6
6
|
const enhance = (root, props) => {
|
package/dist/client/{newsletter-form.client-BWp7Y1e1.mjs → newsletter-form.client-IfLup4o0.mjs}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { fn as parseMailingListVisitorSelection, x as newsletterBlockSubmissionMessage, y as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE } from "./shop.interactive-BH0xDlMF.mjs";
|
|
3
|
+
import { Gi as listLookSlot } from "./display-DDNmyb0z.mjs";
|
|
4
|
+
import { M as assertNever$1, h as assertNever } from "./creditProducts-CMOmhWm2.mjs";
|
|
5
|
+
import { i as BlockApiError, n as useBlockApi } from "./context-Xhf81Q-c.mjs";
|
|
6
6
|
import { S as clsx } from "./ThemedButton-BdnEwA38.mjs";
|
|
7
7
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
8
|
-
import { a as partitionNewsletterFields, i as TOPIC_CHOICE_FIELD_ID, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-
|
|
8
|
+
import { a as partitionNewsletterFields, i as TOPIC_CHOICE_FIELD_ID, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-DDD-LRyW.mjs";
|
|
9
9
|
import { t as MAILING_LIST_CONFIRMATION_MESSAGE } from "./mailingListSignupCopy-CX4sDozG.mjs";
|
|
10
10
|
import { t as SpamProtectionWidget } from "./SpamProtectionWidget-CCF6YLUX.mjs";
|
|
11
11
|
import { t as useAltchaProtection } from "./altchaProtection-DjIV9A5n.mjs";
|
package/dist/client/{newsletter-form.parts-Dg8s9NwJ.mjs → newsletter-form.parts-DDD-LRyW.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Gi as listLookSlot } from "./display-DDNmyb0z.mjs";
|
|
3
3
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
4
4
|
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-C3H26pN9.mjs";
|
|
5
5
|
import "react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
4
|
-
import { t as NewsletterFormClient } from "./newsletter-form.client-
|
|
5
|
-
import { t as mountReactIsland } from "./reactMount-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-Xhf81Q-c.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
4
|
+
import { t as NewsletterFormClient } from "./newsletter-form.client-IfLup4o0.mjs";
|
|
5
|
+
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
//#region src/rendering/islands/enhancers/newsletterForm.tsx
|
|
@@ -30,7 +30,7 @@ function applySnapshots(form, snapshots) {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
const enhance = (root, props) => {
|
|
33
|
-
const { siteId, apiBaseUrl
|
|
33
|
+
const { siteId, apiBaseUrl } = props;
|
|
34
34
|
if (!siteId) throw new Error("[sdk:islands] newsletter-form requires siteId");
|
|
35
35
|
if (!apiBaseUrl) throw new Error("[sdk:islands] newsletter-form requires apiBaseUrl");
|
|
36
36
|
const apiConfig = {
|
|
@@ -38,16 +38,11 @@ const enhance = (root, props) => {
|
|
|
38
38
|
auth: { type: "none" },
|
|
39
39
|
siteId
|
|
40
40
|
};
|
|
41
|
-
const
|
|
42
|
-
return mountReactIsland(root,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}));
|
|
47
|
-
requestAnimationFrame(() => {
|
|
48
|
-
applySnapshots(root.querySelector("form"), snapshots);
|
|
49
|
-
});
|
|
50
|
-
});
|
|
41
|
+
const fallbackForm = root.querySelector("form");
|
|
42
|
+
return mountReactIsland(root, /* @__PURE__ */ jsx(BlockApiProvider, {
|
|
43
|
+
config: apiConfig,
|
|
44
|
+
children: /* @__PURE__ */ jsx(NewsletterFormClient, { ...props })
|
|
45
|
+
}), { handover: (mount) => applySnapshots(mount.querySelector("form"), snapshotFormValues(fallbackForm)) });
|
|
51
46
|
};
|
|
52
47
|
//#endregion
|
|
53
48
|
export { decode, enhance };
|