@riverbankcms/sdk 0.169.0 → 0.170.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_dts/{BlocksIslandsHydrator-DpROiz12.d.ts → BlocksIslandsHydrator-B2i5CY_X.d.ts} +1 -1
- package/dist/_dts/{Page-DHBBDRC_.d.ts → Page-BSZjbeRK.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-CG7Qib7u.d.ts → SdkPreviewMode-BZpPBMcu.d.ts} +2 -2
- package/dist/_dts/{client-MURxFla9.d.ts → client-x82SZgwK.d.ts} +1 -1
- package/dist/_dts/{content-types-ClBGjxBV.d.ts → content-types-CODkxsZy.d.ts} +2 -2
- package/dist/_dts/{contracts-CHNvzh0y.d.ts → contracts-Lyfhmbjf.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DQM934Fm.d.ts → footerPageOutline-BShG2GAV.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-ConZaEqB.d.ts → generatePageMetadata-DLhUW3xK.d.ts} +2 -2
- package/dist/_dts/{index-BaDqRekr.d.ts → index-B7Mq5M6P.d.ts} +4 -4
- package/dist/_dts/{index-CovKPftP.d.ts → index-B82pqQAC.d.ts} +2 -2
- package/dist/_dts/{index-CiR_oPYT.d.ts → index-BisbMZTW.d.ts} +1 -1
- package/dist/_dts/{index-CVB5wgbz.d.ts → index-C3rMEJ5a.d.ts} +2 -2
- package/dist/_dts/{index-DDaX-K2D.d.ts → index-CCugONHM.d.ts} +1 -1
- package/dist/_dts/{index-rfAssXq0.d.ts → index-CstY6ZMa.d.ts} +3 -3
- package/dist/_dts/{index-DCw8LO4M.d.ts → index-DXc_ewhR.d.ts} +1 -1
- package/dist/_dts/{loadContent-CRLKVVDP.d.ts → loadContent-BoqtbbhP.d.ts} +7 -7
- package/dist/_dts/{request-DeVetKBr.d.ts → request-CJ_ClHLv.d.ts} +39255 -37305
- package/dist/_dts/{resolveBlockData-C5KYFeig.d.ts → resolveBlockData-DFExYkJ4.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-D8MZWyNO.d.ts → resolvePageContent-D-WvpC_d.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-Fj31kIi2.d.ts → types-990t4t99.d.ts} +7 -7
- package/dist/_dts/{types-B4MBlP_B.d.ts → types-CbjK5ZLy.d.ts} +2 -2
- package/dist/_dts/{types-OwqfS8Gn.d.ts → types-CpuxuS40.d.ts} +3 -3
- package/dist/_dts/{validation-B1Fa8o_b.d.ts → validation-BN95LiS0.d.ts} +4 -4
- package/dist/client/BlocksIslandsHydrator-B1Tkg-ZW.mjs +410 -0
- package/dist/client/{BookingMailingListNote-y3qWjnOo.mjs → BookingMailingListNote-Br1VyHkP.mjs} +5 -5
- package/dist/client/{BookingQuestionFields-DjLjd0vc.mjs → BookingQuestionFields-LLGCWjvU.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-VM7C2fdh.mjs → CalendarNavigationChevron-CH7z2m47.mjs} +4 -4
- package/dist/client/{DemoBookingPortalAccess-C2QCj_Ta.mjs → DemoBookingPortalAccess-Cilv5zdS.mjs} +3 -3
- package/dist/client/{EventCalendar.client-DDjz7tuX.mjs → EventCalendar.client-LXUHJEi7.mjs} +7 -7
- package/dist/client/{EventCombined.client-CeYbNsch.mjs → EventCombined.client-DpugEJLB.mjs} +5 -5
- package/dist/client/{EventItem-B5J0IeF4.mjs → EventItem-gFuZn-dE.mjs} +7 -6
- package/dist/client/{EventListWeekNavigation-eH04D8-V.mjs → EventListWeekNavigation-D-kLg1jQ.mjs} +2 -1
- package/dist/client/{EventListing.client-slpvrTrM.mjs → EventListing.client-BNACUaxV.mjs} +3 -3
- package/dist/client/{EventListing.view-BYBaElec.mjs → EventListing.view-CtVfe3VG.mjs} +5 -6
- package/dist/client/{EventRegistrationPayment-Do7Q0wRG.mjs → EventRegistrationPayment-CqH3hE-k.mjs} +18 -10
- package/dist/client/Page-PW4Ojv9r.mjs +29977 -0
- package/dist/client/{StepIndicator-BZNUd0-v.mjs → StepIndicator-CR7_0yu4.mjs} +4 -3
- package/dist/client/{accessibleSurfaces-chpD4C2c.mjs → accessibleSurfaces-_7jkuinl.mjs} +56 -8
- package/dist/client/{accordion-BCtVxnDZ.mjs → accordion-DMItWylU.mjs} +6 -1
- package/dist/client/{booking-form.client-Cr5G-HHO.mjs → booking-form.client-wd71DG19.mjs} +10 -10
- package/dist/client/bookingForm-Cyr2qeS1.mjs +31 -0
- package/dist/client/bookings.mjs +4 -4
- package/dist/client/{carousel-DW-HgjvT.mjs → carousel-B5-Hzzif.mjs} +7 -9
- package/dist/client/{carousel.client-BD4DXMtI.mjs → carousel.client-eSSr1oYA.mjs} +2 -2
- package/dist/client/{cart-D1zWe4R7.mjs → cart-wlRXnOjO.mjs} +3 -3
- package/dist/client/{cart.client-CIfbTLHS.mjs → cart.client-CfpnxTUZ.mjs} +1 -1
- package/dist/client/{checkout-fDCNZ3IT.mjs → checkout-Dnu9W8IA.mjs} +3 -3
- package/dist/client/{checkout.client-C4l2KjtV.mjs → checkout.client-ovtyXyn0.mjs} +1 -1
- package/dist/client/{checkoutUrls-cWL6I-Vz.mjs → checkoutUrls-CY8qywXl.mjs} +1 -1
- package/dist/client/client.mjs +40 -12
- package/dist/client/{createLucideIcon-CIbxe9em.mjs → createLucideIcon-BrXgHVKN.mjs} +9 -9
- package/dist/client/{cta-Bj5WHgcv.mjs → cta-CfuyGqXL.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-3uVu3WgG.mjs → demoPortalMagicLink-DQtwf_s2.mjs} +1 -1
- package/dist/client/{display-CT8KMSpH.mjs → display-DDNmyb0z.mjs} +18 -793
- package/dist/client/{enhanceHeaderSection-B27KFGDv.mjs → enhanceHeaderSection-D7gRy-pL.mjs} +3 -3
- package/dist/client/{event-details.client-CL4Lqz2c.mjs → event-details.client-DZZaoCUc.mjs} +1 -1
- package/dist/client/{event-registration.client-Dj3Kyp5X.mjs → event-registration.client-CLBdHUfd.mjs} +12 -11
- package/dist/client/{eventCalendar-DGsdSF8J.mjs → eventCalendar-B4VbblGN.mjs} +14 -17
- package/dist/client/eventCombined-e2AvbA0u.mjs +25 -0
- package/dist/client/{eventDetails-DzMskXYA.mjs → eventDetails-DIJYMzVg.mjs} +4 -6
- package/dist/client/eventListing-C0bpAR1t.mjs +26 -0
- package/dist/client/eventRegistration-DyseP_sY.mjs +31 -0
- package/dist/client/flightRegistrations-DjYm0Wz6.mjs +45 -0
- package/dist/client/form-Cfl8d6qc.mjs +27 -0
- package/dist/client/{form.client-CCl6CpRJ.mjs → form.client-D3_RF29v.mjs} +3 -3
- package/dist/client/{form.parts-BOJ1yDDf.mjs → form.parts-DWLf_3PF.mjs} +1 -1
- package/dist/client/formSnapshot-Cy4abc0T.mjs +73 -0
- package/dist/client/gifting/client.mjs +1 -1
- package/dist/client/{headerSection-q_bEzfhW.mjs → headerSection-CyNGt23J.mjs} +2 -2
- package/dist/client/{newsletter-form.client-CiqKAmPs.mjs → newsletter-form.client-IfLup4o0.mjs} +4 -4
- package/dist/client/{newsletter-form.parts-x1RzAMNO.mjs → newsletter-form.parts-DDD-LRyW.mjs} +1 -1
- package/dist/client/newsletterForm-Bn7HVbuq.mjs +27 -0
- package/dist/client/portal/client.mjs +5 -5
- package/dist/client/{product-detail.client-rWUvpVvZ.mjs → product-detail.client-BXeLqkCE.mjs} +1 -1
- package/dist/client/{product-list.client-J0wDOmKv.mjs → product-list.client-C627X8DQ.mjs} +1 -1
- package/dist/client/{productDetail-LtCkMrJ0.mjs → productDetail-B-K_hd7Y.mjs} +3 -3
- package/dist/client/{productList-C0MLeh-v.mjs → productList-BNZAsfaP.mjs} +3 -3
- package/dist/client/{propsDecoder-CAmEkJ6Y.mjs → propsDecoder-Dc8j5i79.mjs} +2 -2
- package/dist/client/reactMount-DFQy3CmO.mjs +51 -0
- package/dist/client/{registry.server-Bf2YX_4v.mjs → registry.server-CBg2M6Uj.mjs} +352 -288
- package/dist/client/rendering/client.mjs +36 -36
- package/dist/client/rendering/islandDelivery.flight.mjs +132 -0
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +4 -4
- package/dist/client/{routeIslandApiConfig-UdAlnZGQ.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-Dkn6EasY.mjs → shop-PgmiVKSV.mjs} +3 -3
- package/dist/client/{shop-commerce-bo0Z6kwf.mjs → shop-commerce-DkgvZAQS.mjs} +10 -10
- package/dist/client/{shop-commerce-store-Ckxa4_jI.mjs → shop-commerce-store-D9CHihQv.mjs} +1 -1
- package/dist/client/{shop.client-B_GqU6_U.mjs → shop.client-DDFRt6OU.mjs} +10 -10
- package/dist/client/{shop.interactive-C6L_Ig5F.mjs → shop.interactive-BH0xDlMF.mjs} +37 -12
- package/dist/client/{shopShared-CO1Y8lFd.mjs → shopShared-BEfD0e4m.mjs} +12 -15
- package/dist/client/{timetableModel-D62jfOxZ.mjs → timetableModel-GsDrJxxw.mjs} +6 -6
- package/dist/client/{useAvailableSlots-CStfVmyY.mjs → useAvailableSlots-GP8tnAVW.mjs} +1 -1
- package/dist/client/{useDiscountApply-Ca2pHUDu.mjs → useDiscountApply-Cq07nTyG.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-AEifktGO.mjs → useDiscountCodeUi-CD82QX5i.mjs} +1 -1
- package/dist/client/{useEventPagination-uxnUWI2v.mjs → useEventPagination-DGl4Jeuz.mjs} +5 -5
- package/dist/client/{view-SVnWic7i.mjs → view-CgComegl.mjs} +2 -2
- package/dist/client/{view-B6KSxQMO.mjs → view-oToSpu1N.mjs} +3 -3
- package/dist/preview-next/chrome.css +4 -0
- package/dist/preview-next/client/{ArrangementLookControls-kbdqYkWM.mjs → ArrangementLookControls-DJQrgD5f.mjs} +12 -19
- 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-DI_LhsMQ.mjs → PreviewEditorSidebar-DWU6X6Y-.mjs} +119 -133
- package/dist/preview-next/client/{PreviewEditorUI-yyD-ZREP.mjs → PreviewEditorUI-C-X0ptC3.mjs} +7 -39
- package/dist/preview-next/client/{PreviewShell-YauP65Gi.mjs → PreviewShell-C1WUNsj9.mjs} +40 -46
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Bl7jQMI1.mjs → SdkPreviewModeRuntime-Cs2QFT7k.mjs} +11 -9
- package/dist/preview-next/client/{SiteChromeCustomizeButton-CQFRP9aM.mjs → SiteChromeCustomizeButton-CcZ_ERvZ.mjs} +844 -23038
- package/dist/preview-next/client/{lucide-react-DkZ8fO-G.mjs → lucide-react-DbC1o6_9.mjs} +11 -11
- package/dist/preview-next/client/{previewAssistantSlot-DSR0IdAw.mjs → previewAssistantSlot-CSs9S8wr.mjs} +357 -924
- package/dist/preview-next/client/{previewChromeSurface-uSnVzeNs.mjs → previewChromeRoot-B2OTurZH.mjs} +52 -14
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-6Q0RVJTQ.mjs → sdk-runtime-CBIwYDyi.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus-Cdx3kAGm.mjs → useAutosaveStatus-DoWvGNPA.mjs} +3 -3
- package/dist/preview-next/client/{useBlockCustomizeControls-ZrWdhcB6.mjs → useBlockCustomizeControls-WOs8Atje.mjs} +17 -23
- package/dist/preview-next/client/{useOpenBlockForSetup-CK-GWb9k.mjs → useOpenBlockForSetup-CipKCK2O.mjs} +1 -1
- package/dist/preview-next/container-responsive.css +3050 -0
- package/dist/preview-next/editor-base.css +90 -178
- package/dist/preview-next/editor-chrome.css +25 -8
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +3 -4
- package/dist/preview-next/{route-contract-BU1m9SV3.mjs → route-contract-BLYaenrK.mjs} +36 -8
- package/dist/server/{Block.shared-4vx7wzxj.mjs → Block.shared-Dx4j9CJT.mjs} +4 -4
- package/dist/server/ThemeScopeCore-B0IfeNNZ.mjs +1983 -0
- package/dist/server/{accessibleSurfaces-108nxyGc.mjs → accessibleSurfaces-D0q5tLSW.mjs} +56 -8
- package/dist/server/{bindings-TAQbo2P5.mjs → bindings-C1-MNwwS.mjs} +1 -1
- package/dist/server/{client-DzCxEl3L.mjs → client-Djjv-NuA.mjs} +38 -10
- 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/index.mjs +2 -2
- package/dist/server/{loadContent-BO1M9Hdf.mjs → loadContent-DhraQ_Fi.mjs} +4 -4
- package/dist/server/{loadPage-BvWzmZcD.mjs → loadPage-QXSdPSYY.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-fxuB1zZg.mjs → overrideResolution-CMNx5tQg.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-DzduDSqY.mjs → pageRenderPlan-Bv6NbFeM.mjs} +11 -9
- package/dist/server/{pageRuntimeSupport-BU8pwTNx.mjs → pageRuntimeSupport-B2laBtff.mjs} +1 -1
- package/dist/server/{pageShared-CSOJ8p8E.mjs → pageShared-CE9EBNSH.mjs} +352 -290
- package/dist/server/{prebuild-C5ZYo7wA.mjs → prebuild-FBA6Y1K7.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BvbxqeKn.mjs → prefetchBlockData-yL2hB2l_.mjs} +2 -2
- package/dist/server/{registry-Fv-7D8o2.mjs → registry-Djrj9gWy.mjs} +56 -816
- 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-xPgkvoWS.mjs → resolveBlockData-CyeIjmqx.mjs} +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -2
- package/dist/server/{validation-DddhgNdb.mjs → validation-Dh8htd6l.mjs} +3 -3
- package/dist/server/{version-D_W2mt8w.mjs → version-LMwnoksN.mjs} +1 -1
- package/dist/styles/index.css +122 -49
- package/package.json +10 -6
- package/dist/client/BlocksIslandsHydrator-qq4Vhs7k.mjs +0 -296
- package/dist/client/Page-Dv9eIOGr.mjs +0 -52213
- package/dist/client/bookingForm-B1Fc62Sl.mjs +0 -34
- package/dist/client/eventCombined-DFSVDJ3D.mjs +0 -28
- package/dist/client/eventListing-CpFFcAUr.mjs +0 -29
- package/dist/client/eventRegistration-BipMUOCw.mjs +0 -34
- package/dist/client/form-57k2JQnm.mjs +0 -90
- package/dist/client/newsletterForm-Cn7h4zFe.mjs +0 -53
- package/dist/client/reactMount-BGJVsHRb.mjs +0 -28
- package/dist/client/runtimeResponse-BP-L6exS.mjs +0 -3
- package/dist/server/ThemeScopeCore-C3HLgqBF.mjs +0 -24213
- package/dist/client/{context-DQnTyApV.mjs → context-Xhf81Q-c.mjs} +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { t as buildCartDisplay } from "./display-
|
|
2
|
+
import { an as staticHeaderChromeRuntime } from "./shop.interactive-BH0xDlMF.mjs";
|
|
3
|
+
import { t as buildCartDisplay } from "./display-DDNmyb0z.mjs";
|
|
4
4
|
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
5
5
|
import { n as NAV_DROPDOWN_SHIFT_PROPERTY } from "./navDropdownSizing-CUjDrcIt.mjs";
|
|
6
6
|
import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-DKlZRNZD.mjs";
|
|
7
7
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
8
|
-
import { n as useCommerceCart } from "./shop-commerce-store-
|
|
8
|
+
import { n as useCommerceCart } from "./shop-commerce-store-D9CHihQv.mjs";
|
|
9
9
|
import * as React$1 from "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
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 { $ as bookingEntry, I as offeringNounForEvent, N as displayButtonText, Q as bookingCardEntry, X as DEFAULT_BOOKING_BUTTON_TEXT, Z as bookingBarPlacement, et as bookingEntryProgress, j as buildEventRegistrationDisplayFromScopedEvents,
|
|
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-
|
|
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
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-
|
|
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-
|
|
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";
|
|
@@ -3526,7 +3526,8 @@ function EventRegistrationWizardView(viewProps) {
|
|
|
3526
3526
|
display,
|
|
3527
3527
|
buttonText,
|
|
3528
3528
|
noun: props.offeringNoun ?? offeringNounForEvent(summaryEvent ?? wizard.scopedEvents[0] ?? null, null),
|
|
3529
|
-
attendanceMode: wizard.selectedAttendanceMode
|
|
3529
|
+
attendanceMode: wizard.selectedAttendanceMode,
|
|
3530
|
+
courseTitle: courseTitleOf(props.subject)
|
|
3530
3531
|
};
|
|
3531
3532
|
const progressFacts = bookingEntryProgress({
|
|
3532
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-LXUHJEi7.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-DpugEJLB.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-BNACUaxV.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 };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use client";
|
|
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
|
+
import "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
//#region src/rendering/islands/enhancers/eventRegistration.tsx
|
|
10
|
+
const decode = defineIslandPropsDecoder("event-registration");
|
|
11
|
+
const enhance = (root, props) => {
|
|
12
|
+
const { siteId, apiBaseUrl, stage, portalToken, previewToken } = props;
|
|
13
|
+
if (!siteId) throw new Error("[sdk:islands] event-registration requires siteId");
|
|
14
|
+
if (!apiBaseUrl) throw new Error("[sdk:islands] event-registration requires apiBaseUrl");
|
|
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
|
+
};
|
|
30
|
+
//#endregion
|
|
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 };
|
|
@@ -0,0 +1,27 @@
|
|
|
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 FormNodeClient } from "./form.client-D3_RF29v.mjs";
|
|
5
|
+
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
+
import { n as snapshotForm, t as restoreForm } from "./formSnapshot-Cy4abc0T.mjs";
|
|
7
|
+
import "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
//#region src/rendering/islands/enhancers/form.tsx
|
|
10
|
+
const decode = defineIslandPropsDecoder("form");
|
|
11
|
+
const enhance = (root, props) => {
|
|
12
|
+
const { siteId, apiBaseUrl } = props;
|
|
13
|
+
if (!siteId) throw new Error("[sdk:islands] form requires siteId");
|
|
14
|
+
if (!apiBaseUrl) throw new Error("[sdk:islands] form requires apiBaseUrl");
|
|
15
|
+
const apiConfig = {
|
|
16
|
+
baseUrl: apiBaseUrl,
|
|
17
|
+
auth: { type: "none" },
|
|
18
|
+
siteId
|
|
19
|
+
};
|
|
20
|
+
const fallbackForm = root.querySelector("form");
|
|
21
|
+
return mountReactIsland(root, /* @__PURE__ */ jsx(BlockApiProvider, {
|
|
22
|
+
config: apiConfig,
|
|
23
|
+
children: /* @__PURE__ */ jsx(FormNodeClient, { ...props })
|
|
24
|
+
}), { handover: (mount) => restoreForm(mount.querySelector("form"), snapshotForm(fallbackForm)) });
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { decode, enhance };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Gi as listLookSlot } from "./display-
|
|
2
|
+
import { Gi as listLookSlot } from "./display-DDNmyb0z.mjs";
|
|
3
3
|
import { _ as ok, g as err, h as assertNever } from "./creditProducts-CMOmhWm2.mjs";
|
|
4
|
-
import { n as useBlockApi } from "./context-
|
|
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 { Gi as listLookSlot, Wi as listLookControl } from "./display-
|
|
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";
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region src/rendering/islands/enhancers/formSnapshot.ts
|
|
3
|
+
const SKIPPED_INPUT_TYPES = /* @__PURE__ */ new Set([
|
|
4
|
+
"hidden",
|
|
5
|
+
"file",
|
|
6
|
+
"submit",
|
|
7
|
+
"button",
|
|
8
|
+
"reset",
|
|
9
|
+
"image"
|
|
10
|
+
]);
|
|
11
|
+
function isVisitorControl(el) {
|
|
12
|
+
if (el instanceof HTMLInputElement) return el.name !== "" && !SKIPPED_INPUT_TYPES.has(el.type);
|
|
13
|
+
return (el instanceof HTMLTextAreaElement || el instanceof HTMLSelectElement) && el.name !== "";
|
|
14
|
+
}
|
|
15
|
+
function isCheckable(control) {
|
|
16
|
+
return control instanceof HTMLInputElement && (control.type === "checkbox" || control.type === "radio");
|
|
17
|
+
}
|
|
18
|
+
function namedControls(form) {
|
|
19
|
+
const positions = /* @__PURE__ */ new Map();
|
|
20
|
+
return Array.from(form.elements).filter(isVisitorControl).map((control) => {
|
|
21
|
+
if (isCheckable(control)) return {
|
|
22
|
+
key: `${control.name}\u0000checked\u0000${control.value}`,
|
|
23
|
+
control
|
|
24
|
+
};
|
|
25
|
+
const position = positions.get(control.name) ?? 0;
|
|
26
|
+
positions.set(control.name, position + 1);
|
|
27
|
+
return {
|
|
28
|
+
key: `${control.name}\u0000value\u0000${position}`,
|
|
29
|
+
control
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function snapshotControl(control) {
|
|
34
|
+
if (control instanceof HTMLSelectElement && control.multiple) return {
|
|
35
|
+
kind: "selected",
|
|
36
|
+
values: Array.from(control.selectedOptions, (o) => o.value)
|
|
37
|
+
};
|
|
38
|
+
if (isCheckable(control)) return {
|
|
39
|
+
kind: "checked",
|
|
40
|
+
checked: control.checked
|
|
41
|
+
};
|
|
42
|
+
return {
|
|
43
|
+
kind: "value",
|
|
44
|
+
value: control.value
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function snapshotForm(form) {
|
|
48
|
+
if (!form) return /* @__PURE__ */ new Map();
|
|
49
|
+
return new Map(namedControls(form).map(({ key, control }) => [key, snapshotControl(control)]));
|
|
50
|
+
}
|
|
51
|
+
function restoreForm(form, snapshot) {
|
|
52
|
+
if (!form || snapshot.size === 0) return;
|
|
53
|
+
for (const { key, control } of namedControls(form)) {
|
|
54
|
+
const saved = snapshot.get(key);
|
|
55
|
+
if (!saved) continue;
|
|
56
|
+
switch (saved.kind) {
|
|
57
|
+
case "selected": {
|
|
58
|
+
if (!(control instanceof HTMLSelectElement) || !control.multiple) break;
|
|
59
|
+
const selected = new Set(saved.values);
|
|
60
|
+
for (const option of Array.from(control.options)) option.selected = selected.has(option.value);
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
case "checked":
|
|
64
|
+
if (control instanceof HTMLInputElement) control.checked = saved.checked;
|
|
65
|
+
break;
|
|
66
|
+
case "value":
|
|
67
|
+
control.value = saved.value;
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
export { snapshotForm as n, restoreForm as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
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-
|
|
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-CiqKAmPs.mjs → newsletter-form.client-IfLup4o0.mjs}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { Gi as listLookSlot } from "./display-
|
|
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
4
|
import { M as assertNever$1, h as assertNever } from "./creditProducts-CMOmhWm2.mjs";
|
|
5
|
-
import { i as BlockApiError, n as useBlockApi } from "./context-
|
|
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-x1RzAMNO.mjs → newsletter-form.parts-DDD-LRyW.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Gi as listLookSlot } from "./display-
|
|
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";
|
|
@@ -0,0 +1,27 @@
|
|
|
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 NewsletterFormClient } from "./newsletter-form.client-IfLup4o0.mjs";
|
|
5
|
+
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
+
import { n as snapshotForm, t as restoreForm } from "./formSnapshot-Cy4abc0T.mjs";
|
|
7
|
+
import "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
//#region src/rendering/islands/enhancers/newsletterForm.tsx
|
|
10
|
+
const decode = defineIslandPropsDecoder("newsletter-form");
|
|
11
|
+
const enhance = (root, props) => {
|
|
12
|
+
const { siteId, apiBaseUrl } = props;
|
|
13
|
+
if (!siteId) throw new Error("[sdk:islands] newsletter-form requires siteId");
|
|
14
|
+
if (!apiBaseUrl) throw new Error("[sdk:islands] newsletter-form requires apiBaseUrl");
|
|
15
|
+
const apiConfig = {
|
|
16
|
+
baseUrl: apiBaseUrl,
|
|
17
|
+
auth: { type: "none" },
|
|
18
|
+
siteId
|
|
19
|
+
};
|
|
20
|
+
const fallbackForm = root.querySelector("form");
|
|
21
|
+
return mountReactIsland(root, /* @__PURE__ */ jsx(BlockApiProvider, {
|
|
22
|
+
config: apiConfig,
|
|
23
|
+
children: /* @__PURE__ */ jsx(NewsletterFormClient, { ...props })
|
|
24
|
+
}), { handover: (mount) => restoreForm(mount.querySelector("form"), snapshotForm(fallbackForm)) });
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { decode, enhance };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
import { in as parsePositiveMoneyInputToCents, on as formatCurrencyAmount, t as logger } from "../noop-B_f7RqLD.mjs";
|
|
4
|
-
import { n as useAvailableDates, s as unsafeAsAppointmentResourceId, t as useAvailableSlots } from "../useAvailableSlots-
|
|
4
|
+
import { n as useAvailableDates, s as unsafeAsAppointmentResourceId, t as useAvailableSlots } from "../useAvailableSlots-GP8tnAVW.mjs";
|
|
5
5
|
import { M as assertNever$1, a as UNANSWERED_QUESTIONS_SUMMARY, h as assertNever, i as getPortalCreditProductCreditNoun, j as resolveFlexibleBalancePaymentEligibility, m as unansweredRequiredBookingQuestions, o as UNANSWERED_QUESTION_MESSAGE, r as getCreditProductTypeLabel, t as deriveCreditProductLabels, u as initialBookingQuestionValues, w as formatOrderInstalmentStatusLabel$1 } from "../creditProducts-CMOmhWm2.mjs";
|
|
6
6
|
import { t as generateUuidV4 } from "../uuid-BETKW8rS.mjs";
|
|
7
|
-
import { a as createBlockApi, i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-
|
|
7
|
+
import { a as createBlockApi, i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-Xhf81Q-c.mjs";
|
|
8
8
|
import { S as clsx, i as ThemedButtonLink, l as SpinnerNode, o as ThemedFileChooser, r as ThemedButton, t as ThemedActionsButton } from "../ThemedButton-BdnEwA38.mjs";
|
|
9
9
|
import { t as resolveDedicatedBookingHref } from "../bookingRoute-D6DlxYx6.mjs";
|
|
10
|
-
import { a as DemoPortalSignInLink, i as useBookingNowIso, r as parseBookingSubmissionFailure, t as BookingQuestionFields } from "../BookingQuestionFields-
|
|
10
|
+
import { a as DemoPortalSignInLink, i as useBookingNowIso, r as parseBookingSubmissionFailure, t as BookingQuestionFields } from "../BookingQuestionFields-LLGCWjvU.mjs";
|
|
11
11
|
import { t as ModalShell } from "../ModalShell-B_fHWK71.mjs";
|
|
12
12
|
import { t as TabBarFragment } from "../TabBarFragment-DkVKtK5a.mjs";
|
|
13
13
|
import { t as formatDate } from "../formatDate-BGlhrmhF.mjs";
|
|
14
|
-
import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "../demoPortalMagicLink-
|
|
14
|
+
import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "../demoPortalMagicLink-DQtwf_s2.mjs";
|
|
15
15
|
import { a as formatPortalSessionDay, c as isPast, i as formatPortalSession, l as portalSessionDisplay, n as formatDateTime, o as formatPortalSessionTime, r as formatEntitlementEnd, s as formatPortalSessionWithWeekday, t as formatDate$1 } from "../dateFormatting-Bv6kjUW3.mjs";
|
|
16
16
|
import * as React$1 from "react";
|
|
17
17
|
import React, { createContext, forwardRef, useCallback, useContext, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
|
|
@@ -10120,7 +10120,7 @@ function CreditSection({ credit }) {
|
|
|
10120
10120
|
children: "Site credit"
|
|
10121
10121
|
}), /* @__PURE__ */ jsx("p", {
|
|
10122
10122
|
className: "cp-card-subtitle",
|
|
10123
|
-
children: "
|
|
10123
|
+
children: "Used automatically when you pay online."
|
|
10124
10124
|
})] })
|
|
10125
10125
|
}), /* @__PURE__ */ jsxs("div", {
|
|
10126
10126
|
className: "cp-card-meta",
|
package/dist/client/{product-detail.client-rWUvpVvZ.mjs → product-detail.client-BXeLqkCE.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as ProductDetailController } from "./shop-commerce-
|
|
2
|
+
import { r as ProductDetailController } from "./shop-commerce-DkgvZAQS.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/product-detail.client.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as ProductListController } from "./shop-commerce-
|
|
2
|
+
import { i as ProductListController } from "./shop-commerce-DkgvZAQS.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/product-list.client.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as ProductDetailClient } from "./product-detail.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
3
|
+
import { t as ProductDetailClient } from "./product-detail.client-BXeLqkCE.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-BEfD0e4m.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/productDetail.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("product-detail");
|
|
7
7
|
const enhance = (root, props) => mountShopBlockIsland(root, props, ProductDetailClient, "product-detail");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as ProductListClient } from "./product-list.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
3
|
+
import { t as ProductListClient } from "./product-list.client-C627X8DQ.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-BEfD0e4m.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/productList.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("product-list");
|
|
7
7
|
const enhance = (root, props) => mountShopBlockIsland(root, props, ProductListClient, "product-list");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { A as formInteractiveIslandPropsCodec, C as newsletterFormInteractiveIslandPropsCodec, E as giftingInteractiveIslandPropsCodec, F as eventRegistrationInteractiveIslandPropsCodec,
|
|
3
|
-
import { Hi as isDecodeSuccess, Ii as eventRegistrationPageSurfaceSubjectSchema, Ki as lookListPresentationSchemaShape, ur as bookingFormInteractiveIslandPropsCodec, zi as createZodCodec } from "./display-
|
|
2
|
+
import { A as formInteractiveIslandPropsCodec, C as newsletterFormInteractiveIslandPropsCodec, E as giftingInteractiveIslandPropsCodec, F as eventRegistrationInteractiveIslandPropsCodec, ct as eventCombinedInteractiveIslandPropsCodec, f as productDetailInteractiveIslandPropsCodec, g as shopInteractiveIslandPropsCodec, l as checkoutInteractiveIslandPropsCodec, m as productListInteractiveIslandPropsCodec, nn as headerChromeRuntimeContractSchema, pt as eventCalendarInteractiveIslandPropsCodec, s as cartInteractiveIslandPropsCodec, yt as eventListingInteractiveIslandPropsCodec } from "./shop.interactive-BH0xDlMF.mjs";
|
|
3
|
+
import { Hi as isDecodeSuccess, Ii as eventRegistrationPageSurfaceSubjectSchema, Ki as lookListPresentationSchemaShape, ur as bookingFormInteractiveIslandPropsCodec, zi as createZodCodec } from "./display-DDNmyb0z.mjs";
|
|
4
4
|
import { I as eventVenueDrawingSchema, R as publicEventSchema, a as eventAutoApplyDiscountPreviewSchema, o as publicMembershipProductCollectionSchema, s as publicPassProductCollectionSchema } from "./noop-B_f7RqLD.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region ../blocks/src/system/runtime/nodes/event-details/lookPresentation.ts
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createElement, useLayoutEffect } from "react";
|
|
3
|
+
import { createRoot } from "react-dom/client";
|
|
4
|
+
//#region src/rendering/islands/enhancers/reactMount.ts
|
|
5
|
+
/**
|
|
6
|
+
* Removes the fallback in the same commit that shows the island, so nothing paints in
|
|
7
|
+
* between. Fallback nodes the island moved into its own tree (as the carousel does with
|
|
8
|
+
* its slides) are no longer the root's children and stay where the island put them.
|
|
9
|
+
*/
|
|
10
|
+
function FallbackHandover({ root, mount, fallbackNodes, handover, children }) {
|
|
11
|
+
useLayoutEffect(() => {
|
|
12
|
+
handover?.(mount);
|
|
13
|
+
fallbackNodes.forEach((node) => {
|
|
14
|
+
if (node.parentNode === root) node.remove();
|
|
15
|
+
});
|
|
16
|
+
}, []);
|
|
17
|
+
return children;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The island's React tree mounts beside the server fallback rather than in place of it,
|
|
21
|
+
* so fallback content never leaves the document. Nested islands inside it (in a carousel
|
|
22
|
+
* slide, say) stay connected while the island takes over, and the runtime has no reason
|
|
23
|
+
* to treat them as removed.
|
|
24
|
+
*/
|
|
25
|
+
function mountReactIsland(root, island, options = {}) {
|
|
26
|
+
if (root.dataset.rbReactMounted === "true") return;
|
|
27
|
+
const fallbackNodes = Array.from(root.childNodes);
|
|
28
|
+
const mount = document.createElement("div");
|
|
29
|
+
root.append(mount);
|
|
30
|
+
const reactRoot = createRoot(mount);
|
|
31
|
+
try {
|
|
32
|
+
reactRoot.render(createElement(FallbackHandover, {
|
|
33
|
+
root,
|
|
34
|
+
mount,
|
|
35
|
+
fallbackNodes,
|
|
36
|
+
handover: options.handover,
|
|
37
|
+
children: island
|
|
38
|
+
}));
|
|
39
|
+
} catch (error) {
|
|
40
|
+
reactRoot.unmount();
|
|
41
|
+
mount.remove();
|
|
42
|
+
throw error;
|
|
43
|
+
}
|
|
44
|
+
root.dataset.rbReactMounted = "true";
|
|
45
|
+
return () => {
|
|
46
|
+
reactRoot.unmount();
|
|
47
|
+
delete root.dataset.rbReactMounted;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
export { mountReactIsland as t };
|