@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,37 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import {
|
|
3
|
+
import { an as staticHeaderChromeRuntime } from "../shop.interactive-BH0xDlMF.mjs";
|
|
4
4
|
import { r as indexRenderableMediaAssets } from "../renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
5
|
-
import { Cn as RichText, Dn as mediaImageHostProps, En as computeMediaTransformStyle, Nn as resolveMediaNodeResponsiveImage, On as renderAudio, Tn as MediaPlaceholder, kn as renderVideo, wn as ImagePresets } from "../display-
|
|
6
|
-
import { n as BookingFormNodeClient } from "../booking-form.client-
|
|
5
|
+
import { Cn as RichText, Dn as mediaImageHostProps, En as computeMediaTransformStyle, Nn as resolveMediaNodeResponsiveImage, On as renderAudio, Tn as MediaPlaceholder, kn as renderVideo, wn as ImagePresets } from "../display-DDNmyb0z.mjs";
|
|
6
|
+
import { n as BookingFormNodeClient } from "../booking-form.client-wd71DG19.mjs";
|
|
7
7
|
import { on as formatCurrencyAmount } from "../noop-B_f7RqLD.mjs";
|
|
8
|
-
import { o as getRuntimeTimeZone } from "../useAvailableSlots-
|
|
8
|
+
import { o as getRuntimeTimeZone } from "../useAvailableSlots-GP8tnAVW.mjs";
|
|
9
9
|
import { h as assertNever } from "../creditProducts-CMOmhWm2.mjs";
|
|
10
|
-
import { i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "../DemoBookingPortalAccess-
|
|
11
|
-
import
|
|
12
|
-
import { f as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import "../
|
|
10
|
+
import { i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "../DemoBookingPortalAccess-Cilv5zdS.mjs";
|
|
11
|
+
import "../accessibleSurfaces-_7jkuinl.mjs";
|
|
12
|
+
import { F as markEditableSurfaceForwarding, I as splitPositioningClasses, P as composeHeaderSectionWrapperClassName, c as HeaderSectionFrame, d as accordionIconColorStyle, f as resolveAccordionIconStyle, fn as ICON_CONFIG, i as WeeklySlotAvailabilityView, l as accordionItemPartSlots, n as runtimeBackedBlockModes, o as LocationMapSSR, r as runtimeBackedBlockServerEntries, t as serverComponentRegistry, u as accordionLookAttributes } from "../registry.server-CBg2M6Uj.mjs";
|
|
13
|
+
import { f as Text } from "../timetableModel-GsDrJxxw.mjs";
|
|
14
|
+
import { t as EventRegistrationIslandClient } from "../event-registration.client-CLBdHUfd.mjs";
|
|
15
|
+
import { n as useBlockApi, t as BlockApiProvider$1 } from "../context-Xhf81Q-c.mjs";
|
|
16
16
|
import { S as clsx } from "../ThemedButton-BdnEwA38.mjs";
|
|
17
|
-
import { t as ShopClient } from "../shop.client-
|
|
17
|
+
import { t as ShopClient } from "../shop.client-DDFRt6OU.mjs";
|
|
18
18
|
import { t as FeedbackMessage } from "../FeedbackMessage-CSJrAuXH.mjs";
|
|
19
19
|
import { t as CarouselSlideContent } from "../carousel.shared-BFQ3kBEw.mjs";
|
|
20
20
|
import { t as coerceRichTextDoc } from "../richText-coerce-BTurYEao.mjs";
|
|
21
|
-
import { t as createLucideIcon } from "../createLucideIcon-
|
|
22
|
-
import { t as CarouselNodeClient } from "../carousel.client-
|
|
23
|
-
import { t as EventDetailsIslandClient } from "../event-details.client-
|
|
24
|
-
import { t as ProductListClient } from "../product-list.client-
|
|
25
|
-
import { t as ProductDetailClient } from "../product-detail.client-
|
|
26
|
-
import { t as CartClient } from "../cart.client-
|
|
27
|
-
import { t as CheckoutClient } from "../checkout.client-
|
|
28
|
-
import { t as mountHeaderChromeRuntime } from "../enhanceHeaderSection-
|
|
29
|
-
import { t as EventListingClient } from "../EventListing.client-
|
|
30
|
-
import { n as EventCombinedIslandClient } from "../EventCombined.client-
|
|
31
|
-
import { t as EventCalendarClient } from "../EventCalendar.client-
|
|
32
|
-
import { t as FormNodeClient } from "../form.client-
|
|
33
|
-
import { t as NewsletterFormClient } from "../newsletter-form.client-
|
|
34
|
-
import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-
|
|
21
|
+
import { t as createLucideIcon } from "../createLucideIcon-BrXgHVKN.mjs";
|
|
22
|
+
import { t as CarouselNodeClient } from "../carousel.client-eSSr1oYA.mjs";
|
|
23
|
+
import { t as EventDetailsIslandClient } from "../event-details.client-DZZaoCUc.mjs";
|
|
24
|
+
import { t as ProductListClient } from "../product-list.client-C627X8DQ.mjs";
|
|
25
|
+
import { t as ProductDetailClient } from "../product-detail.client-BXeLqkCE.mjs";
|
|
26
|
+
import { t as CartClient } from "../cart.client-CfpnxTUZ.mjs";
|
|
27
|
+
import { t as CheckoutClient } from "../checkout.client-ovtyXyn0.mjs";
|
|
28
|
+
import { t as mountHeaderChromeRuntime } from "../enhanceHeaderSection-D7gRy-pL.mjs";
|
|
29
|
+
import { t as EventListingClient } from "../EventListing.client-BNACUaxV.mjs";
|
|
30
|
+
import { n as EventCombinedIslandClient } from "../EventCombined.client-DpugEJLB.mjs";
|
|
31
|
+
import { t as EventCalendarClient } from "../EventCalendar.client-LXUHJEi7.mjs";
|
|
32
|
+
import { t as FormNodeClient } from "../form.client-D3_RF29v.mjs";
|
|
33
|
+
import { t as NewsletterFormClient } from "../newsletter-form.client-IfLup4o0.mjs";
|
|
34
|
+
import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-B1Tkg-ZW.mjs";
|
|
35
35
|
import * as React$1 from "react";
|
|
36
36
|
import React, { createContext, createElement, startTransition, useContext, useEffect, useMemo, useReducer, useRef } from "react";
|
|
37
37
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -579,7 +579,7 @@ function GiftingPurchaseFields(props) {
|
|
|
579
579
|
] });
|
|
580
580
|
}
|
|
581
581
|
//#endregion
|
|
582
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-context@1.1.4_@types+react@19.
|
|
582
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-context@1.1.4_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
583
583
|
function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
584
584
|
let defaultContexts = [];
|
|
585
585
|
function createContext3(rootComponentName, defaultContext) {
|
|
@@ -644,7 +644,7 @@ function composeContextScopes(...scopes) {
|
|
|
644
644
|
return createScope;
|
|
645
645
|
}
|
|
646
646
|
//#endregion
|
|
647
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.3_@types+react@19.
|
|
647
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.3_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
648
648
|
function setRef$1(ref, value) {
|
|
649
649
|
if (typeof ref === "function") return ref(value);
|
|
650
650
|
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
@@ -670,7 +670,7 @@ function useComposedRefs(...refs) {
|
|
|
670
670
|
return React$1.useCallback(composeRefs(...refs), refs);
|
|
671
671
|
}
|
|
672
672
|
//#endregion
|
|
673
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.3.0_@types+react@19.
|
|
673
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.3.0_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
674
674
|
// @__NO_SIDE_EFFECTS__
|
|
675
675
|
function createSlot(ownerName) {
|
|
676
676
|
const Slot2 = React$1.forwardRef((props, forwardedRef) => {
|
|
@@ -840,10 +840,10 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
|
|
|
840
840
|
};
|
|
841
841
|
}
|
|
842
842
|
//#endregion
|
|
843
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.2_@types+react@19.
|
|
843
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.2_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
844
844
|
var useLayoutEffect2 = globalThis?.document ? React$1.useLayoutEffect : () => {};
|
|
845
845
|
//#endregion
|
|
846
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.3_@types+react@19.
|
|
846
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.3_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
847
847
|
var useInsertionEffect = React$1[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
|
|
848
848
|
function useControllableState({ prop, defaultProp, onChange = () => {}, caller }) {
|
|
849
849
|
const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({
|
|
@@ -895,7 +895,7 @@ function isFunction(value) {
|
|
|
895
895
|
return typeof value === "function";
|
|
896
896
|
}
|
|
897
897
|
//#endregion
|
|
898
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.6_@types+react-dom@19.
|
|
898
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.6_@types+react-dom@19.3.0_@types+react@19.3.0__@types+rea_5f9a799abc4f9a9e6d85bf1bb9fa9936/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
899
899
|
var Primitive = [
|
|
900
900
|
"a",
|
|
901
901
|
"button",
|
|
@@ -932,7 +932,7 @@ var Primitive = [
|
|
|
932
932
|
};
|
|
933
933
|
}, {});
|
|
934
934
|
//#endregion
|
|
935
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.6_@types+react-dom@19.
|
|
935
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.6_@types+react-dom@19.3.0_@types+react@19.3.0__@types+reac_9693c01c5692b316cb89d152a948ae8e/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
936
936
|
function useStateMachine(initialState, machine) {
|
|
937
937
|
return React$1.useReducer((state, event) => {
|
|
938
938
|
return machine[state][event] ?? state;
|
|
@@ -1055,7 +1055,7 @@ function getElementRef(element) {
|
|
|
1055
1055
|
return element.props.ref || element.ref;
|
|
1056
1056
|
}
|
|
1057
1057
|
//#endregion
|
|
1058
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-id@1.1.2_@types+react@19.
|
|
1058
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-id@1.1.2_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
1059
1059
|
var useReactId = React$1[" useId ".trim().toString()] || (() => void 0);
|
|
1060
1060
|
var count = 0;
|
|
1061
1061
|
function useId$1(deterministicId) {
|
|
@@ -1066,7 +1066,7 @@ function useId$1(deterministicId) {
|
|
|
1066
1066
|
return deterministicId || (id ? `radix-${id}` : "");
|
|
1067
1067
|
}
|
|
1068
1068
|
//#endregion
|
|
1069
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-collapsible@1.1.14_@types+react-dom@19.
|
|
1069
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-collapsible@1.1.14_@types+react-dom@19.3.0_@types+react@19.3.0__@types+_0c44053653ada5b0f65d38b9de6b5dd2/node_modules/@radix-ui/react-collapsible/dist/index.mjs
|
|
1070
1070
|
var COLLAPSIBLE_NAME = "Collapsible";
|
|
1071
1071
|
var [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);
|
|
1072
1072
|
var [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);
|
|
@@ -1182,14 +1182,14 @@ var Root = Collapsible;
|
|
|
1182
1182
|
var Trigger = CollapsibleTrigger;
|
|
1183
1183
|
var Content = CollapsibleContent;
|
|
1184
1184
|
//#endregion
|
|
1185
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-direction@1.1.2_@types+react@19.
|
|
1185
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-direction@1.1.2_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
1186
1186
|
var DirectionContext = React$1.createContext(void 0);
|
|
1187
1187
|
function useDirection(localDir) {
|
|
1188
1188
|
const globalDir = React$1.useContext(DirectionContext);
|
|
1189
1189
|
return localDir || globalDir || "ltr";
|
|
1190
1190
|
}
|
|
1191
1191
|
//#endregion
|
|
1192
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-accordion@1.2.14_@types+react-dom@19.
|
|
1192
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-accordion@1.2.14_@types+react-dom@19.3.0_@types+react@19.3.0__@types+re_b14c2e354eb15ca6de0629216f19579e/node_modules/@radix-ui/react-accordion/dist/index.mjs
|
|
1193
1193
|
var ACCORDION_NAME = "Accordion";
|
|
1194
1194
|
var ACCORDION_KEYS = [
|
|
1195
1195
|
"Home",
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { t as registerFlightIsland } from "../flightRegistrations-DjYm0Wz6.mjs";
|
|
4
|
+
import React, { useEffect, useMemo, useRef } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region ../blocks/src/system/runtime/islands/islandDelivery.flight.tsx
|
|
7
|
+
const REACT_LAZY = Symbol.for("react.lazy");
|
|
8
|
+
function isLazy(value) {
|
|
9
|
+
return typeof value === "object" && value !== null && "$$typeof" in value && value.$$typeof === REACT_LAZY;
|
|
10
|
+
}
|
|
11
|
+
/** A lazy wrapper whose shape this file doesn't recognise, so its content can't be keyed. */
|
|
12
|
+
var UnreadableContent = class extends Error {};
|
|
13
|
+
/**
|
|
14
|
+
* Flight wraps streamed or outlined chunks and not-yet-loaded client references in lazy
|
|
15
|
+
* wrappers. Resolve them as React does when it renders them: a pending one throws, which
|
|
16
|
+
* suspends this boundary until the content it is keyed by has arrived.
|
|
17
|
+
*/
|
|
18
|
+
function resolveLazy(value) {
|
|
19
|
+
if (!isLazy(value)) return value;
|
|
20
|
+
if (typeof value._init !== "function" || !("_payload" in value)) throw new UnreadableContent();
|
|
21
|
+
return resolveLazy(value._init(value._payload));
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* By the time Flight content reaches the browser, server components have rendered away, so
|
|
25
|
+
* every element type is a tag name, a React symbol or a client module export. Exports are
|
|
26
|
+
* module singletons, so their object identity tells two components apart even when they
|
|
27
|
+
* share a name, and stays the same across refreshes of the same page.
|
|
28
|
+
*/
|
|
29
|
+
const typeIdentities = /* @__PURE__ */ new WeakMap();
|
|
30
|
+
/** Numbers handed out so far, both for type identities and for unreadable content. */
|
|
31
|
+
const issued = { count: 0 };
|
|
32
|
+
function identityOf(value) {
|
|
33
|
+
const known = typeIdentities.get(value);
|
|
34
|
+
if (known !== void 0) return known;
|
|
35
|
+
const identity = issued.count++;
|
|
36
|
+
typeIdentities.set(value, identity);
|
|
37
|
+
return identity;
|
|
38
|
+
}
|
|
39
|
+
function typeKey(type) {
|
|
40
|
+
const resolved = resolveLazy(type);
|
|
41
|
+
if (typeof resolved === "string") return resolved;
|
|
42
|
+
if (typeof resolved === "symbol") return resolved.toString();
|
|
43
|
+
if (typeof resolved === "function" || typeof resolved === "object" && resolved !== null) return `type:${identityOf(resolved)}`;
|
|
44
|
+
return String(resolved);
|
|
45
|
+
}
|
|
46
|
+
/** Reduces React elements in the server output to what they render: type, key and props. */
|
|
47
|
+
function contentReplacer(_key, value) {
|
|
48
|
+
const resolved = resolveLazy(value);
|
|
49
|
+
if (typeof resolved === "function") return `fn:${identityOf(resolved)}`;
|
|
50
|
+
if (typeof resolved === "symbol") return resolved.toString();
|
|
51
|
+
if (resolved && typeof resolved === "object" && "$$typeof" in resolved) {
|
|
52
|
+
const element = resolved;
|
|
53
|
+
return {
|
|
54
|
+
type: typeKey(element.type),
|
|
55
|
+
key: element.key,
|
|
56
|
+
props: element.props
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
return resolved;
|
|
60
|
+
}
|
|
61
|
+
const fnv1a = (hash, char) => Math.imul(hash ^ char.charCodeAt(0), 16777619);
|
|
62
|
+
/** Folds over a string's characters without copying them into an array first. */
|
|
63
|
+
const foldCharacters = Array.prototype.reduce;
|
|
64
|
+
/** The content as text, or null when part of it is in a shape this file can't read. */
|
|
65
|
+
function serialiseContent(content) {
|
|
66
|
+
try {
|
|
67
|
+
return JSON.stringify(content, contentReplacer) ?? "";
|
|
68
|
+
} catch (error) {
|
|
69
|
+
if (error instanceof UnreadableContent) return null;
|
|
70
|
+
throw error;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* FNV-1a over the serialised content: a key, not a security boundary. Content it can't
|
|
75
|
+
* read gets a key of its own, so the root is replaced rather than ever reconciled.
|
|
76
|
+
*/
|
|
77
|
+
function islandContentKey(content) {
|
|
78
|
+
const text = serialiseContent(content);
|
|
79
|
+
if (text === null) return `unreadable:${issued.count++}`;
|
|
80
|
+
const hash = foldCharacters.call(text, fnv1a, 2166136261);
|
|
81
|
+
return `${text.length}:${(hash >>> 0).toString(36)}`;
|
|
82
|
+
}
|
|
83
|
+
function FlightIslandRoot({ as, rootProps, transport, children }) {
|
|
84
|
+
const ref = useRef(null);
|
|
85
|
+
const kind = rootProps["data-rb-island"];
|
|
86
|
+
const registeredTransport = useRef(transport);
|
|
87
|
+
useEffect(() => {
|
|
88
|
+
const element = ref.current;
|
|
89
|
+
if (!element) return;
|
|
90
|
+
return registerFlightIsland({
|
|
91
|
+
element,
|
|
92
|
+
kind,
|
|
93
|
+
readTransport: () => registeredTransport.current
|
|
94
|
+
});
|
|
95
|
+
}, [kind]);
|
|
96
|
+
return React.createElement(as, {
|
|
97
|
+
...rootProps,
|
|
98
|
+
"data-rb-island-delivery": "flight",
|
|
99
|
+
ref
|
|
100
|
+
}, children);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Inside a server component render the props already reach the browser as this
|
|
104
|
+
* component's props in the flight data, so no script repeats them.
|
|
105
|
+
*
|
|
106
|
+
* React owns the root element, and once the island mounts its runtime owns everything
|
|
107
|
+
* inside it, so React must never reconcile inside a mounted root. The root is keyed by
|
|
108
|
+
* its content: a refresh that brings the same props and fallback leaves a running island
|
|
109
|
+
* alone, and one that changes either, or that the key can't read, replaces the whole
|
|
110
|
+
* root, which the runtime then mounts afresh.
|
|
111
|
+
*/
|
|
112
|
+
function IslandDelivery({ as, rootProps, transport, children }) {
|
|
113
|
+
const contentKey = useMemo(() => islandContentKey({
|
|
114
|
+
as,
|
|
115
|
+
rootProps,
|
|
116
|
+
transport,
|
|
117
|
+
children
|
|
118
|
+
}), [
|
|
119
|
+
as,
|
|
120
|
+
rootProps,
|
|
121
|
+
transport,
|
|
122
|
+
children
|
|
123
|
+
]);
|
|
124
|
+
return /* @__PURE__ */ jsx(FlightIslandRoot, {
|
|
125
|
+
as,
|
|
126
|
+
rootProps,
|
|
127
|
+
transport,
|
|
128
|
+
children
|
|
129
|
+
}, contentKey);
|
|
130
|
+
}
|
|
131
|
+
//#endregion
|
|
132
|
+
export { IslandDelivery };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { a as mediaIdentifierSchema, i as resolveManagedMediaReference, n as renderableMediaAssetSchema, o as parseCanonicalMediaIdentifier, s as parseMediaIdentifier, t as buildRenderableMediaAssetIndex } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
3
|
-
import { An as resolveImageSourceSetWithContext$1, Ci as readRuntimeNow, Cn as RichText$2, En as computeMediaTransformStyle, Mn as resolveImageUrlWithContext$1, jn as resolveImageUrl$1, po as sanitizeHref, wi as resolveDateRuntimeContext } from "./display-
|
|
3
|
+
import { An as resolveImageSourceSetWithContext$1, Ci as readRuntimeNow, Cn as RichText$2, En as computeMediaTransformStyle, Mn as resolveImageUrlWithContext$1, jn as resolveImageUrl$1, po as sanitizeHref, wi as resolveDateRuntimeContext } from "./display-DDNmyb0z.mjs";
|
|
4
4
|
import { $ as persistableMediaSchema, Q as mediaSchema, et as runtimeMediaSchema, tn as toUtcIsoDateTimeString } from "./noop-B_f7RqLD.mjs";
|
|
5
|
-
import { A as renderBlock, B as compileManifestContentContract, C as resolveSiteCustomBlocks, D as prefetchBlockDataWithFailures, E as requireSdkTheme, F as resolveRouteHrefForStage, G as isRecord, H as deriveFieldValidationPlan, I as getBlockDefinition, J as readPublishedBlockPlacement, L as siteFooterManifest, M as resolveAuthoredLinkHref, N as isRouteVisibleInStage, P as normalizeRenderStage, R as siteHeaderManifest, S as siteLocationRenderContext, T as MissingSdkThemeError, U as projectRepeaterGridLayout$1, V as admitLayoutGridForPlan, W as projectRepeaterGridLayoutForRendering$1, _ as invalidRenderableBlock, a as solvedInksForThemeRuntime, b as resolveSdkBlockManifest, c as MissingBlockOverrideError, d as buildThemeRuntime, f as parseBlocksTheme, g as collectMediaAssetSidecar, h as buildSiteRenderSupport, i as renderWithSdkThemeRuntime, j as getDefaultComponentRegistry, k as makeDefaultBlockComponent, l as PageRenderer, m as buildRenderablePageOutline, n as planLayoutThemeRuntime, o as ThemeScope, p as applyBindingsToContent, r as renderWithOverrideOnlyRuntime, s as EditorPageRenderer, t as Page, u as toBlocksPageRendererDataContext, v as projectRenderablePageOutline, w as MISSING_SDK_THEME_ERROR_CODE, x as sanitizeSdkRuntimeBlockContent, y as readInvalidBlockAdmission, z as admitTransportedRenderableManifestContent } from "./Page-
|
|
6
|
-
import { Nt as parseFieldDefinition } from "./registry.server-
|
|
5
|
+
import { A as renderBlock, B as compileManifestContentContract, C as resolveSiteCustomBlocks, D as prefetchBlockDataWithFailures, E as requireSdkTheme, F as resolveRouteHrefForStage, G as isRecord, H as deriveFieldValidationPlan, I as getBlockDefinition, J as readPublishedBlockPlacement, L as siteFooterManifest, M as resolveAuthoredLinkHref, N as isRouteVisibleInStage, P as normalizeRenderStage, R as siteHeaderManifest, S as siteLocationRenderContext, T as MissingSdkThemeError, U as projectRepeaterGridLayout$1, V as admitLayoutGridForPlan, W as projectRepeaterGridLayoutForRendering$1, _ as invalidRenderableBlock, a as solvedInksForThemeRuntime, b as resolveSdkBlockManifest, c as MissingBlockOverrideError, d as buildThemeRuntime, f as parseBlocksTheme, g as collectMediaAssetSidecar, h as buildSiteRenderSupport, i as renderWithSdkThemeRuntime, j as getDefaultComponentRegistry, k as makeDefaultBlockComponent, l as PageRenderer, m as buildRenderablePageOutline, n as planLayoutThemeRuntime, o as ThemeScope, p as applyBindingsToContent, r as renderWithOverrideOnlyRuntime, s as EditorPageRenderer, t as Page, u as toBlocksPageRendererDataContext, v as projectRenderablePageOutline, w as MISSING_SDK_THEME_ERROR_CODE, x as sanitizeSdkRuntimeBlockContent, y as readInvalidBlockAdmission, z as admitTransportedRenderableManifestContent } from "./Page-PW4Ojv9r.mjs";
|
|
6
|
+
import { Nt as parseFieldDefinition } from "./registry.server-CBg2M6Uj.mjs";
|
|
7
7
|
import { o as setContextResolveImageUrlContext, t as buildResolveImageUrlContext } from "./mediaContext-Fusweriw.mjs";
|
|
8
8
|
import { n as toBlocksImageResolveContextInput, r as toBlocksMediaAssets } from "./mediaAssets-B99AP7ai.mjs";
|
|
9
9
|
import "react";
|
|
10
|
-
import { z } from "zod";
|
|
11
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { z } from "zod";
|
|
12
12
|
import { BlocksIslandsHydrator } from "#sdk-rendering-client";
|
|
13
13
|
//#region ../core/src/navigation-portal-labels.ts
|
|
14
14
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Ei as createHostedBlockApiConfig } from "./display-
|
|
2
|
+
import { Ei as createHostedBlockApiConfig } from "./display-DDNmyb0z.mjs";
|
|
3
3
|
//#region src/rendering/islands/enhancers/routeIslandApiConfig.ts
|
|
4
4
|
function buildRouteIslandApiConfig({ apiBaseUrl, portalToken, previewToken, siteId, stage, readAuthority }) {
|
|
5
5
|
if (readAuthority) return createHostedBlockApiConfig({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as parseSurfaceTree } from "./accessibleSurfaces-
|
|
2
|
+
import { n as parseSurfaceTree } from "./accessibleSurfaces-_7jkuinl.mjs";
|
|
3
3
|
//#region ../site-renderer/src/runtimeResponse.ts
|
|
4
4
|
/** Recreate owner-produced rendering values at a JSON boundary, never trust copied proofs. */
|
|
5
5
|
function restoreRuntimeResponse(serialized) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as ShopClient } from "./shop.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
|
|
3
|
+
import { t as ShopClient } from "./shop.client-DDFRt6OU.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-BEfD0e4m.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/shop.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("shop");
|
|
7
7
|
const enhance = (root, props) => {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { u as getShopDisplayForItems } from "./shop.interactive-
|
|
3
|
-
import { Cn as RichText, a as buildProductDetailDisplay, g as deriveCommerceCheckoutState, h as buildProductCartItem, i as buildProductCardDisplay, s as formatCommercePrice, v as productItemKey } from "./display-
|
|
2
|
+
import { u as getShopDisplayForItems } from "./shop.interactive-BH0xDlMF.mjs";
|
|
3
|
+
import { Cn as RichText, a as buildProductDetailDisplay, g as deriveCommerceCheckoutState, h as buildProductCartItem, i as buildProductCardDisplay, s as formatCommercePrice, v as productItemKey } from "./display-DDNmyb0z.mjs";
|
|
4
4
|
import { b as reportWorkflowError, h as assertNever, y as clearWorkflowFeedback } from "./creditProducts-CMOmhWm2.mjs";
|
|
5
|
-
import { f as DiscountCodeDisclosure, i as SiteTermsChangedNotice, n as DemoBookingPortalAccess, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "./DemoBookingPortalAccess-
|
|
6
|
-
import { n as useBlockApi } from "./context-
|
|
5
|
+
import { f as DiscountCodeDisclosure, i as SiteTermsChangedNotice, n as DemoBookingPortalAccess, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "./DemoBookingPortalAccess-Cilv5zdS.mjs";
|
|
6
|
+
import { n as useBlockApi } from "./context-Xhf81Q-c.mjs";
|
|
7
7
|
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
8
|
-
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-
|
|
8
|
+
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-CY8qywXl.mjs";
|
|
9
9
|
import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-DKlZRNZD.mjs";
|
|
10
|
-
import { a as initialDiscountApplyState, c as checkoutFormForDiscountUiState, d as planUnifiedCheckoutRequest, f as ShopAddFeedback, i as getDiscountApplyFeedback, l as planCartDiscountAvailabilityRequests, m as consumeSearchParam, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, s as aggregateCartDiscountUiState, t as useDiscountApply } from "./useDiscountApply-
|
|
10
|
+
import { a as initialDiscountApplyState, c as checkoutFormForDiscountUiState, d as planUnifiedCheckoutRequest, f as ShopAddFeedback, i as getDiscountApplyFeedback, l as planCartDiscountAvailabilityRequests, m as consumeSearchParam, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, s as aggregateCartDiscountUiState, t as useDiscountApply } from "./useDiscountApply-Cq07nTyG.mjs";
|
|
11
11
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
12
12
|
import { t as coerceRichTextDoc } from "./richText-coerce-BTurYEao.mjs";
|
|
13
|
-
import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-
|
|
14
|
-
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-
|
|
15
|
-
import { t as CarouselNodeClient } from "./carousel.client-
|
|
16
|
-
import { n as useCommerceCart } from "./shop-commerce-store-
|
|
13
|
+
import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-CgComegl.mjs";
|
|
14
|
+
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-DQtwf_s2.mjs";
|
|
15
|
+
import { t as CarouselNodeClient } from "./carousel.client-eSSr1oYA.mjs";
|
|
16
|
+
import { n as useCommerceCart } from "./shop-commerce-store-D9CHihQv.mjs";
|
|
17
17
|
import * as React$1 from "react";
|
|
18
18
|
import { useEffect, useState } from "react";
|
|
19
19
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { _ as parseStoredCommerceCartState, m as buildPassCartItem, p as EMPTY_COMMERCE_CART_STATE, y as reduceCommerceCart } from "./display-
|
|
2
|
+
import { _ as parseStoredCommerceCartState, m as buildPassCartItem, p as EMPTY_COMMERCE_CART_STATE, y as reduceCommerceCart } from "./display-DDNmyb0z.mjs";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
//#region ../blocks/src/system/runtime/nodes/shop-commerce-store.ts
|
|
5
5
|
const EMPTY_STATE = EMPTY_COMMERCE_CART_STATE;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { _ as shopProductPresentation } from "./shop.interactive-
|
|
3
|
-
import { c as formatInterval, s as formatCommercePrice, yr as getShopSuccessCopy } from "./display-
|
|
2
|
+
import { _ as shopProductPresentation } from "./shop.interactive-BH0xDlMF.mjs";
|
|
3
|
+
import { c as formatInterval, s as formatCommercePrice, yr as getShopSuccessCopy } from "./display-DDNmyb0z.mjs";
|
|
4
4
|
import { M as assertNever$1, h as assertNever } from "./creditProducts-CMOmhWm2.mjs";
|
|
5
|
-
import { f as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-
|
|
6
|
-
import { n as useBlockApi } from "./context-
|
|
5
|
+
import { f as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-Cilv5zdS.mjs";
|
|
6
|
+
import { n as useBlockApi } from "./context-Xhf81Q-c.mjs";
|
|
7
7
|
import { r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
8
8
|
import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
|
|
9
9
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
10
|
-
import { a as initialDiscountApplyState, f as ShopAddFeedback, h as consumeSearchParams, i as getDiscountApplyFeedback, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, t as useDiscountApply, u as planDirectShopCheckoutRequest } from "./useDiscountApply-
|
|
10
|
+
import { a as initialDiscountApplyState, f as ShopAddFeedback, h as consumeSearchParams, i as getDiscountApplyFeedback, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, t as useDiscountApply, u as planDirectShopCheckoutRequest } from "./useDiscountApply-Cq07nTyG.mjs";
|
|
11
11
|
import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
|
|
12
12
|
import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
|
|
13
13
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
14
|
-
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
14
|
+
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-CD82QX5i.mjs";
|
|
15
15
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
16
|
-
import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, r as MembershipCardView } from "./view-
|
|
17
|
-
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-
|
|
18
|
-
import { t as CarouselNodeClient } from "./carousel.client-
|
|
16
|
+
import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, r as MembershipCardView } from "./view-CgComegl.mjs";
|
|
17
|
+
import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-DQtwf_s2.mjs";
|
|
18
|
+
import { t as CarouselNodeClient } from "./carousel.client-eSSr1oYA.mjs";
|
|
19
19
|
import { r as formatEntitlementEnd } from "./dateFormatting-Bv6kjUW3.mjs";
|
|
20
|
-
import { t as addPassToCommerceCart } from "./shop-commerce-store-
|
|
20
|
+
import { t as addPassToCommerceCart } from "./shop-commerce-store-D9CHihQv.mjs";
|
|
21
21
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
22
22
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
23
23
|
//#region ../blocks/src/system/runtime/shared/components/ActionRow.tsx
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { d as parseUuidBrand, f as err, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
3
|
-
import { Ao as formatEventPricing, Bi as defineClientOwnedBlockRuntime, Bo as parseEventSeriesId, Cn as RichText, Co as DEFAULT_MAILING_LIST_PRIVACY_NOTE, D as registrationStepLabel, Dn as mediaImageHostProps, Do as parseMailchimpInterestId, E as registrationRoute, En as computeMediaTransformStyle, Eo as parseMailchimpAudienceId, Fa as assertNever, Fi as defineInteractiveIslandMetaKeys, Ft as formatBookingWhen, Gi as listLookSlot, Ha as toNonEmptyReadonlyArray, Hi as isDecodeSuccess, Ii as eventRegistrationPageSurfaceSubjectSchema, In as eventCalendarWeekStart, Ki as lookListPresentationSchemaShape, Ln as eventDateLocale, N as isRegistrationLocked, Ni as buildInteractiveIslandProps, Nn as resolveMediaNodeResponsiveImage, No as publicEventPricingDisplay, O as registrationStepLabelContext, On as renderAudio, Oo as parseNewsletterListId, Pi as createInteractiveIslandCodec, Ri as resolveEventRegistrationScopedEvents, Rn as eventDateOptions, S as getEventSelectionMode, Sn as shownVenue, Ti as browserReadAuthoritySchema, Tn as MediaPlaceholder, To as parseBrevoListId, Ui as listItemPresentation, Un as formatEventCompactDateRail, Vi as defineProgressiveBlockRuntime, Zn as resolveRuntimeEventDestination, _i as previewStageSchema, _o as nextLiveRunSessionStartMs, a as buildProductDetailDisplay, an as toWholeSeriesRegistrationEvent, b as resolveSelectedProduct, bn as registrationDisplaySchema, bo as resolveWholeSeriesRunLifecycle, ct as findPreSelectedEvent, di as columnOptionSchema, fi as eventButtonVariantSchema, g as deriveCommerceCheckoutState, gi as filterAutoShowSchema, hi as eventLayoutSchema, in as toRegistrationEvents, ji as pageNavigationSchema, kn as renderVideo, ko as formatBookingPriceDisplay, li as bookingNowSchema, lr as groupPublicEventsByRun, mi as eventCalendarDisplayModeSchema, n as buildCheckoutDisplay, no as cardRoleSchema, o as buildProductListDisplay, on as toWholeSeriesRegistrationEvents, pi as eventCalendarDefaultViewSchema, qt as withOccurrenceTitle, r as buildPassesMembershipsDisplay, ra as resolveModeArrangement, sr as selectEventCapacitySource, t as buildCartDisplay, tr as formatRemainingPlaces, ui as calendarTabViewsSchema, ut as resolveEventRequiresPayment, vi as registrationButtonVariantSchema, wi as resolveDateRuntimeContext, wn as ImagePresets, wo as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, x as REGISTRATION_STEP_LABELS, xi as blockButtonRoleSchema, xn as resolveRegistrationDisplay, xo as parseMailingListRuntimeContext, yi as weekStartSchema, yn as placesLeftLabel, zi as createZodCodec, zn as eventLocalDateKey, zt as formatRegistrationSchedule } from "./display-
|
|
3
|
+
import { Ao as formatEventPricing, Bi as defineClientOwnedBlockRuntime, Bo as parseEventSeriesId, Cn as RichText, Co as DEFAULT_MAILING_LIST_PRIVACY_NOTE, D as registrationStepLabel, Dn as mediaImageHostProps, Do as parseMailchimpInterestId, E as registrationRoute, En as computeMediaTransformStyle, Eo as parseMailchimpAudienceId, Fa as assertNever, Fi as defineInteractiveIslandMetaKeys, Ft as formatBookingWhen, Gi as listLookSlot, Ha as toNonEmptyReadonlyArray, Hi as isDecodeSuccess, Ii as eventRegistrationPageSurfaceSubjectSchema, In as eventCalendarWeekStart, Ki as lookListPresentationSchemaShape, Ln as eventDateLocale, N as isRegistrationLocked, Ni as buildInteractiveIslandProps, Nn as resolveMediaNodeResponsiveImage, No as publicEventPricingDisplay, O as registrationStepLabelContext, On as renderAudio, Oo as parseNewsletterListId, Pi as createInteractiveIslandCodec, Ri as resolveEventRegistrationScopedEvents, Rn as eventDateOptions, S as getEventSelectionMode, Sn as shownVenue, Ti as browserReadAuthoritySchema, Tn as MediaPlaceholder, To as parseBrevoListId, Ui as listItemPresentation, Un as formatEventCompactDateRail, Vi as defineProgressiveBlockRuntime, Zn as resolveRuntimeEventDestination, _i as previewStageSchema, _o as nextLiveRunSessionStartMs, a as buildProductDetailDisplay, an as toWholeSeriesRegistrationEvent, b as resolveSelectedProduct, bn as registrationDisplaySchema, bo as resolveWholeSeriesRunLifecycle, ct as findPreSelectedEvent, di as columnOptionSchema, fi as eventButtonVariantSchema, g as deriveCommerceCheckoutState, gi as filterAutoShowSchema, hi as eventLayoutSchema, in as toRegistrationEvents, ji as pageNavigationSchema, kn as renderVideo, ko as formatBookingPriceDisplay, li as bookingNowSchema, lr as groupPublicEventsByRun, mi as eventCalendarDisplayModeSchema, n as buildCheckoutDisplay, no as cardRoleSchema, o as buildProductListDisplay, on as toWholeSeriesRegistrationEvents, pi as eventCalendarDefaultViewSchema, qt as withOccurrenceTitle, r as buildPassesMembershipsDisplay, ra as resolveModeArrangement, sr as selectEventCapacitySource, t as buildCartDisplay, tr as formatRemainingPlaces, ui as calendarTabViewsSchema, ut as resolveEventRequiresPayment, vi as registrationButtonVariantSchema, wi as resolveDateRuntimeContext, wn as ImagePresets, wo as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, x as REGISTRATION_STEP_LABELS, xi as blockButtonRoleSchema, xn as resolveRegistrationDisplay, xo as parseMailingListRuntimeContext, yi as weekStartSchema, yn as placesLeftLabel, zi as createZodCodec, zn as eventLocalDateKey, zt as formatRegistrationSchedule } from "./display-DDNmyb0z.mjs";
|
|
4
4
|
import { It as formatTime, Jt as getLocalScheduleDate, L as publicEventDestinationSchema, Mt as formatDate, Nt as formatDateRange, Qt as resolveBookingTimeZoneId, R as publicEventSchema, S as isEventCalendarListLayout, Ut as buildBookingUtcDateWindow, Yt as parseBookingLocalDate, Zt as resolveBookingBusinessTimeZone, _t as eventScheduleScopeValues, bt as publicEventLoaderQuerySchemaShape, dt as publicPassProductSchema, en as parseUtcIsoDateTimeString, ft as publicProductSchema, g as eventCalendarListGroupingDecision, mt as purchasablePublicPassProductSchema, n as blockSiteTermsSchema, o as publicMembershipProductCollectionSchema, p as calendarWindowPageSchema, pt as purchasablePublicMembershipProductSchema, s as publicPassProductCollectionSchema, tn as toUtcIsoDateTimeString, ut as publicMembershipProductSchema, v as eventCalendarVariantMeaning, vt as eventSurfacePresetValues, w as resolveEventCalendarReadPlan, y as eventListArrangementValues, yt as eventSurfaceScopeValues, zt as inferSiteDateLocale } from "./noop-B_f7RqLD.mjs";
|
|
5
5
|
import { M as assertNever$2, h as assertNever$1 } from "./creditProducts-CMOmhWm2.mjs";
|
|
6
6
|
import { d as formatDateKey, l as buildCalendarViewport, r as groupItemsByDate } from "./src-xrjaKaCj.mjs";
|
|
7
7
|
import { S as clsx, h as ExternalLinkIcon, i as ThemedButtonLink, n as ThemedAuthoredButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
8
8
|
import { n as getCurrentResolveImageUrlContext } from "./mediaContext-Fusweriw.mjs";
|
|
9
9
|
import "react";
|
|
10
|
-
import { z } from "zod";
|
|
11
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { z } from "zod";
|
|
12
12
|
//#region ../core/src/block-interaction-context.ts
|
|
13
13
|
/** Server-resolved presentation context, never permission to perform a write. */
|
|
14
14
|
const blockInteractionContextSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("live") }).strict(), z.object({ kind: z.literal("demo") }).strict()]);
|
|
@@ -2211,7 +2211,7 @@ const eventCalendarBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
2211
2211
|
display: display.listBy === "week" ? {
|
|
2212
2212
|
...display,
|
|
2213
2213
|
events: eventListWindowEvents(display.events, buildEventListWeek(hydration.calendarContext.initialToday, display.startOfWeek, hydration.calendarContext.timeZone))
|
|
2214
|
-
} : display,
|
|
2214
|
+
} : plan.jobs === "list" || plan.jobs === "both" ? firstListPage(display) : display,
|
|
2215
2215
|
hydration
|
|
2216
2216
|
};
|
|
2217
2217
|
}
|
|
@@ -2267,6 +2267,17 @@ function weekListPaging(source) {
|
|
|
2267
2267
|
sectionAction: void 0
|
|
2268
2268
|
} : {};
|
|
2269
2269
|
}
|
|
2270
|
+
/**
|
|
2271
|
+
* A list seed is its first page: the list slices to one page before its pager sees the events,
|
|
2272
|
+
* and the pager reads later pages from the server after the last one it holds. The rest of the
|
|
2273
|
+
* read would only be sent to the browser and dropped. The calendar tab has its own window.
|
|
2274
|
+
*/
|
|
2275
|
+
function firstListPage(display) {
|
|
2276
|
+
return display.events.length > display.eventsPerPage ? {
|
|
2277
|
+
...display,
|
|
2278
|
+
events: display.events.slice(0, display.eventsPerPage)
|
|
2279
|
+
} : display;
|
|
2280
|
+
}
|
|
2270
2281
|
/** The week presentation owns the series projection and its independent header action. */
|
|
2271
2282
|
function calendarRecurringWeekPresentation(source) {
|
|
2272
2283
|
return {
|
|
@@ -2391,6 +2402,10 @@ function formatBookingSchedulePresentation(event) {
|
|
|
2391
2402
|
function formatBookingScheduleSummary(event) {
|
|
2392
2403
|
return formatBookingSchedulePresentation(event)?.text ?? null;
|
|
2393
2404
|
}
|
|
2405
|
+
/** The course's name when the page is a course's own (an offering subject). */
|
|
2406
|
+
function courseTitleOf(subject) {
|
|
2407
|
+
return subject?.kind === "eventOffering" ? subject.title ?? null : null;
|
|
2408
|
+
}
|
|
2394
2409
|
const DEFAULT_BOOKING_BUTTON_TEXT = "Book your place";
|
|
2395
2410
|
/** Browse the page's dates on close while keeping the draft's resume action. */
|
|
2396
2411
|
function bookingCardEntry(input) {
|
|
@@ -2470,11 +2485,19 @@ function formatBookingShortDate(event) {
|
|
|
2470
2485
|
function byStart(left, right) {
|
|
2471
2486
|
return Date.parse(left.startsAt) - Date.parse(right.startsAt);
|
|
2472
2487
|
}
|
|
2488
|
+
/**
|
|
2489
|
+
* The run's name as a fact after the course's: none off a course page, and
|
|
2490
|
+
* none for an unnamed run (one titled as the course), whose dates say it.
|
|
2491
|
+
*/
|
|
2492
|
+
function runName(event, courseTitle) {
|
|
2493
|
+
return courseTitle && event.title !== courseTitle ? event.title : null;
|
|
2494
|
+
}
|
|
2473
2495
|
function singleEntry(event, input) {
|
|
2474
2496
|
const isCourse = event.registrationSubject.kind === "wholeSeries";
|
|
2475
2497
|
return {
|
|
2476
2498
|
kind: "single",
|
|
2477
|
-
title: event.title,
|
|
2499
|
+
title: input.courseTitle ?? event.title,
|
|
2500
|
+
run: runName(event, input.courseTitle),
|
|
2478
2501
|
when: formatRegistrationSchedule(event, null, "long"),
|
|
2479
2502
|
shortWhen: formatRegistrationSchedule(event),
|
|
2480
2503
|
venue: shownVenue(event, input.display),
|
|
@@ -2490,7 +2513,7 @@ function chooseDateEntry(input) {
|
|
|
2490
2513
|
const shown = ordered.slice(0, 4);
|
|
2491
2514
|
return {
|
|
2492
2515
|
kind: "chooseDate",
|
|
2493
|
-
title: first?.title ?? "",
|
|
2516
|
+
title: input.courseTitle ?? first?.title ?? "",
|
|
2494
2517
|
schedule: (first ? formatBookingScheduleSummary(first) : null) ?? (ordered.length === 1 ? "1 date" : `${ordered.length} dates`),
|
|
2495
2518
|
venue: first ? shownVenue(first, input.display) : null,
|
|
2496
2519
|
price: seriesPriceLabel(ordered),
|
|
@@ -2514,9 +2537,9 @@ function idleBookingEntry(input) {
|
|
|
2514
2537
|
if (getEventSelectionMode(input.events) === "date") return chooseDateEntry(input);
|
|
2515
2538
|
return {
|
|
2516
2539
|
kind: "chooseEvent",
|
|
2517
|
-
title: input.events[0]?.title ?? "",
|
|
2540
|
+
title: input.courseTitle ?? input.events[0]?.title ?? "",
|
|
2518
2541
|
count: input.events.length,
|
|
2519
|
-
|
|
2542
|
+
countLabel: input.courseTitle ? `${input.events.length} to choose from` : `${input.events.length} ${input.noun.pluralLabel}`,
|
|
2520
2543
|
action: "Choose an event"
|
|
2521
2544
|
};
|
|
2522
2545
|
}
|
|
@@ -2528,7 +2551,7 @@ function bookingEntry(input) {
|
|
|
2528
2551
|
};
|
|
2529
2552
|
if (input.underway) return {
|
|
2530
2553
|
kind: "inProgress",
|
|
2531
|
-
title: input.event?.title ?? input.events[0]?.title ?? "",
|
|
2554
|
+
title: input.courseTitle ?? input.event?.title ?? input.events[0]?.title ?? "",
|
|
2532
2555
|
progress: input.progress,
|
|
2533
2556
|
action: "Continue booking"
|
|
2534
2557
|
};
|
|
@@ -2584,7 +2607,7 @@ function bookingPanelHeading(entry, display) {
|
|
|
2584
2607
|
};
|
|
2585
2608
|
case "chooseEvent": return {
|
|
2586
2609
|
title,
|
|
2587
|
-
subtitle:
|
|
2610
|
+
subtitle: entry.countLabel
|
|
2588
2611
|
};
|
|
2589
2612
|
case "inProgress": return {
|
|
2590
2613
|
title,
|
|
@@ -3048,6 +3071,7 @@ const idleBookingEntrySchema = z.discriminatedUnion("kind", [
|
|
|
3048
3071
|
z.object({
|
|
3049
3072
|
kind: z.literal("single"),
|
|
3050
3073
|
title: z.string(),
|
|
3074
|
+
run: z.string().nullable(),
|
|
3051
3075
|
when: z.string().nullable(),
|
|
3052
3076
|
shortWhen: z.string().nullable(),
|
|
3053
3077
|
venue: z.string().nullable(),
|
|
@@ -3077,7 +3101,7 @@ const idleBookingEntrySchema = z.discriminatedUnion("kind", [
|
|
|
3077
3101
|
kind: z.literal("chooseEvent"),
|
|
3078
3102
|
title: z.string(),
|
|
3079
3103
|
count: z.number(),
|
|
3080
|
-
|
|
3104
|
+
countLabel: z.string(),
|
|
3081
3105
|
action: z.string()
|
|
3082
3106
|
})
|
|
3083
3107
|
]);
|
|
@@ -3110,7 +3134,8 @@ function idleEntry(source, scopedSourceEvents, display) {
|
|
|
3110
3134
|
display,
|
|
3111
3135
|
buttonText: source.buttonText,
|
|
3112
3136
|
noun: nounFor(scoped, source.bookingOfferingPresets),
|
|
3113
|
-
attendanceMode: null
|
|
3137
|
+
attendanceMode: null,
|
|
3138
|
+
courseTitle: courseTitleOf(source.subject)
|
|
3114
3139
|
});
|
|
3115
3140
|
}
|
|
3116
3141
|
/** The server's card on CMS pages, or null where the shell still applies. */
|
|
@@ -4645,4 +4670,4 @@ function shopProductPresentation(hydration, productId, index, count) {
|
|
|
4645
4670
|
};
|
|
4646
4671
|
}
|
|
4647
4672
|
//#endregion
|
|
4648
|
-
export { bookingEntry as $,
|
|
4673
|
+
export { bookingEntry as $, normalizeEventSurfaceScope as $t, formInteractiveIslandPropsCodec as A, normalizeCsvIds as At, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as B, getCardOrientation as Bt, newsletterFormInteractiveIslandPropsCodec as C, getEventIdentity as Ct, publicGiftingOffersResponseSchema as D, toError as Dt, giftingInteractiveIslandPropsCodec as E, toEventPaginationLoadError as Et, eventRegistrationInteractiveIslandPropsCodec as F, CardListContentPart as Ft, normalizeOfferingsPreviewItemLimit as G, weekColumnDays as Gt, buildOfferingsPreviewListing as H, Grid as Ht, offeringNounForEvent as I, CardListLeadDate as It, resolveOfferingsPreviewGroups as J, formatEventPriceDisplay as Jt, offeringsListingFor as K, formatEventPrice as Kt, OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS as L, resolveCardListSchedule as Lt, buildEventRegistrationInteractiveIslandProps as M, normalizeOptionalId as Mt, displayButtonText as N, catalogueEventCardProps as Nt, buildFormInteractiveIslandProps as O, buildEventRuntimeFilters as Ot, eventRegistrationBlockRuntime as P, listingEventCardProps as Pt, bookingCardEntry as Q, normalizeEventSurfacePresets as Qt, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as R, selectCardListPresentation as Rt, newsletterFormBlockRuntime as S, eventPaginationLoadReducer as St, giftingBlockRuntime as T, planEventPageOperation as Tt, isOfferingsPreviewSourceKey as U, buildEventListWeek as Ut, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as V, getContainerClass as Vt, normalizeOfferingsPreviewContentForWrite as W, eventListWeekDays as Wt, DEFAULT_BOOKING_BUTTON_TEXT as X, normalizeEventScheduleScope as Xt, resolveOfferingsRenderInput as Y, normalizeEventCategoryIds as Yt, bookingBarPlacement as Z, normalizeEventStaffMemberId as Zt, shopProductPresentation as _, buildEventListingInteractiveIslandProps as _t, buildShopInteractiveIslandProps as a, staticHeaderChromeRuntime as an, buildEventCombinedInteractiveIslandProps as at, buildNewsletterFormInteractiveIslandProps as b, createInitialEventPaginationLoadState as bt, checkoutBlockRuntime as c, splitSiteChromePlacementClasses as cn, eventCombinedInteractiveIslandPropsCodec as ct, productDetailBlockRuntime as d, parseMailingListPlacementTargeting as dn, buildEventCalendarListingRender as dt, normalizeEventVenueId as en, bookingEntryProgress as et, productDetailInteractiveIslandPropsCodec as f, parseMailingListVisitorSelection as fn, eventCalendarBlockRuntime as ft, shopInteractiveIslandPropsCodec as g, combinedLookSchema as gt, shopBlockRuntime as h, parseContentVersionId as hn, recurringScheduleProjectionSchema as ht, buildProductListInteractiveIslandProps as i, resolveHeaderChromeRuntimeContract as in, occurrenceContextSchema as it, buildEventRegistrationDisplayFromScopedEvents as j, normalizeCsvString as jt, formBlockRuntime as k, getEventRuntimeFiltersKey as kt, checkoutInteractiveIslandPropsCodec as l, buildMailingListSignupBlockSourceRef as ln, buildEventCalendarInteractiveIslandProps as lt, productListInteractiveIslandPropsCodec as m, sameMailingListPlacementTargeting as mn, projectRecurringSchedule as mt, buildCheckoutInteractiveIslandProps as n, headerChromeRuntimeContractSchema as nn, courseTitleOf as nt, cartBlockRuntime as o, parseHeaderPositioning as on, buildEventCombinedListingDisplay as ot, productListBlockRuntime as p, DEFAULT_MAILING_LIST_TARGETING as pn, eventCalendarInteractiveIslandPropsCodec as pt, resolveOfferingsPreviewGroupCta as q, formatEventPriceAmount as qt, buildProductDetailInteractiveIslandProps as r, isHeaderScrollRuntimeEnabled as rn, formatBookingSchedulePresentation as rt, cartInteractiveIslandPropsCodec as s, planSiteChromePlacement as sn, eventCombinedBlockRuntime as st, buildCartInteractiveIslandProps as t, resolveEventSelection as tn, bookingPanelHeading as tt, getShopDisplayForItems as u, assessMailingListTargeting as un, buildEventCalendarListingDisplay as ut, publicProductsResponseSchema as v, eventListingBlockRuntime as vt, buildGiftingInteractiveIslandProps as w, getEventPaginationView as wt, newsletterBlockSubmissionMessage as x, eventPageOperationQuery as xt, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as y, eventListingInteractiveIslandPropsCodec as yt, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as z, MediaNodeServer as zt };
|