@riverbankcms/sdk 0.181.0 → 0.182.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-CVCasDPz.d.ts → BlocksIslandsHydrator-Bvw2bUif.d.ts} +1 -1
- package/dist/_dts/{Page-Dtj2Ui3S.d.ts → Page-B2EAT-bE.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-D1f_60WW.d.ts → SdkPreviewMode-D0vww6rh.d.ts} +2 -2
- package/dist/_dts/{client-Chr9pNVW.d.ts → client-D6T430bk.d.ts} +1 -3
- package/dist/_dts/{content-types-kjccgopX.d.ts → content-types-wZVWccC6.d.ts} +2 -2
- package/dist/_dts/{contracts-BodaiS00.d.ts → contracts-B-vtOcr8.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-BS6kaJFp.d.ts → generatePageMetadata-CxfwHE6z.d.ts} +2 -2
- package/dist/_dts/{index-Brl6_I2j.d.ts → index-CEyYMhLJ.d.ts} +1 -1
- package/dist/_dts/{index-DG0OvBs0.d.ts → index-CQrb3Ccc.d.ts} +4 -4
- package/dist/_dts/{index-Dy50xUMK.d.ts → index-CciRW_w1.d.ts} +2 -2
- package/dist/_dts/{index-Diqt0PvG.d.ts → index-Cqxis-nv.d.ts} +1 -1
- package/dist/_dts/{index-CJkefwYh.d.ts → index-DIU-wL1M.d.ts} +2 -2
- package/dist/_dts/{index-D1WpKwQe.d.ts → index-DqPKdeTk.d.ts} +1 -1
- package/dist/_dts/{loadContent-BgxshKrA.d.ts → loadContent-D0wrxiSp.d.ts} +7 -7
- package/dist/_dts/{request-CA0izds5.d.ts → request-DEwxUSw8.d.ts} +130 -28
- package/dist/_dts/{resolveBlockData-ChQmwEd3.d.ts → resolveBlockData-VaG_MYbN.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BvGyvblj.d.ts → resolvePageContent-DTwklC_v.d.ts} +1 -1
- 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/gifting/client.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +7 -7
- 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 +3 -3
- 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/portal/index.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 +6 -6
- 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/{serviceBookingOutline-BgFbJQhU.d.ts → serviceBookingOutline-DtQuFlID.d.ts} +6 -6
- package/dist/_dts/{types-CgS3xLk8.d.ts → types-B3RjeBLV.d.ts} +2 -2
- package/dist/_dts/{types-CQrsP1x_.d.ts → types-BvUSGQrw.d.ts} +3 -3
- package/dist/_dts/{types-R65DKjPn.d.ts → types-CkRFtBqd.d.ts} +7 -7
- package/dist/_dts/{validation-6LTIbuBA.d.ts → validation-BZA3DhcV.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DqZPz6oW.mjs → BlocksIslandsHydrator-CQMf0HdN.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-uWfR2kaG.mjs → BookingMailingListNote-7kdvuPow.mjs} +6 -6
- package/dist/client/{BookingQuestionFields-CyNIKw6k.mjs → BookingQuestionFields-BJI7mZuV.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-BGCX3zwG.mjs → CalendarNavigationChevron-DPUD6wjy.mjs} +7 -7
- package/dist/client/{DemoBookingPortalAccess-DFLPyuqe.mjs → DemoBookingPortalAccess-8kwNF9HN.mjs} +4 -4
- package/dist/client/{EventCalendar.client-zDL4-t-B.mjs → EventCalendar.client-Dhb14bcC.mjs} +9 -9
- package/dist/client/{EventCombined.client-uciDKLID.mjs → EventCombined.client-C1jEZBN9.mjs} +8 -8
- package/dist/client/{EventItem-CwzrjcRw.mjs → EventItem-Bb0ppG2N.mjs} +8 -176
- package/dist/client/{EventListWeekNavigation-ChvcnPma.mjs → EventListWeekNavigation-DMryCaNV.mjs} +1 -1
- package/dist/client/{EventListing.client-DA57Qoyx.mjs → EventListing.client-BuH5kKA3.mjs} +3 -3
- package/dist/client/{EventListing.view-DZ0qMFF4.mjs → EventListing.view-DsqvuulZ.mjs} +7 -7
- package/dist/client/{EventRegistrationPayment-DSqCJL8E.mjs → EventRegistrationPayment-D4FvQSFF.mjs} +31 -164
- package/dist/client/{Page-C7mygH_f.mjs → Page-sV6BJkXX.mjs} +172 -102
- package/dist/client/{SiteTermsAgreementField-B4z-e4Wq.mjs → SiteTermsAgreementField-VfSd6JU-.mjs} +2 -2
- package/dist/client/{StepIndicator-Dn_DY4oY.mjs → StepIndicator-B6o5B7g3.mjs} +1 -1
- package/dist/client/{StepIndicator-atfDU82W.mjs → StepIndicator-BTqO7cJl.mjs} +220 -19
- package/dist/client/{accessibleSurfaces-n6kS6Hct.mjs → accessibleSurfaces-BogaGutk.mjs} +966 -693
- package/dist/client/{accordion-CsW8U3ff.mjs → accordion-6cuswD_s.mjs} +1 -1
- package/dist/client/{booking-form.client-cBWM392H.mjs → booking-form.client-BOMe_SKi.mjs} +15 -15
- package/dist/client/{bookingForm-DgySpp6C.mjs → bookingForm-DSCH-VHo.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-BpGVdLFD.mjs → boxStyleClassNames-BFuqZCfz.mjs} +2 -2
- package/dist/client/{carousel-DJoleFV3.mjs → carousel-CGyQVV1M.mjs} +1 -1
- package/dist/client/{cart-EO5o6uPH.mjs → cart-BYOe7MCh.mjs} +3 -3
- package/dist/client/{cart.client-D_gPw45z.mjs → cart.client-BKFkaXdV.mjs} +1 -1
- package/dist/client/{checkout-NVfZW0kR.mjs → checkout-Dwd7Di77.mjs} +3 -3
- package/dist/client/{checkout.client-DD3JuqOy.mjs → checkout.client-C25hpi-z.mjs} +1 -1
- package/dist/client/{checkoutUrls-z2gXvlGw.mjs → checkoutUrls-tG788sw0.mjs} +1 -1
- package/dist/client/client.mjs +25 -6
- package/dist/client/{constants-CoOkvw__.mjs → constants-DdxFG3Ic.mjs} +1 -1
- package/dist/client/{context-CRhn9qzS.mjs → context-Hi1RuYEM.mjs} +23 -5
- package/dist/client/{dateFormatting-BnWB4L1s.mjs → dateFormatting-C8vBCHuo.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CWDGSTBu.mjs → demoPortalMagicLink-BAL5UIDG.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-tdP_-Z9o.mjs → enhanceHeaderSection-Dv1Lr9kJ.mjs} +3 -3
- package/dist/client/{event-registration.client-D7YYKySQ.mjs → event-registration.client-dB_Z7bb-.mjs} +12 -12
- package/dist/client/{eventCalendar-CsAfu5d0.mjs → eventCalendar-CQnRA4Ww.mjs} +4 -4
- package/dist/client/{eventCombined-VXJB5CoS.mjs → eventCombined-BDOG1hVp.mjs} +4 -4
- package/dist/client/{eventListing-B3KIZNfY.mjs → eventListing-DSVmhy9n.mjs} +4 -4
- package/dist/client/{eventRegistration-BP-dEk1c.mjs → eventRegistration-CD5mRtEH.mjs} +4 -4
- package/dist/client/{form-DM8Zbxbv.mjs → form-DWnlEVSK.mjs} +3 -3
- package/dist/client/{form.client-e2z_Tlgk.mjs → form.client-D7zmeqNI.mjs} +4 -4
- package/dist/client/{form.parts-Ctljy1a3.mjs → form.parts-C-G6N_MK.mjs} +1 -1
- package/dist/client/gifting/client.mjs +7 -7
- package/dist/client/{gifting-DWIsqQru.mjs → gifting-Cn0jidP5.mjs} +4 -4
- package/dist/client/{gifting.client-QsSWF0uA.mjs → gifting.client-DVo1YFLs.mjs} +4 -4
- package/dist/client/{gifting.parts-CedLgwa_.mjs → gifting.parts-Bak93gD2.mjs} +2 -2
- package/dist/client/{headerSection-DAkRkwb-.mjs → headerSection-DjQuj_6v.mjs} +2 -2
- package/dist/client/{newsletter-form.client-WYja9-WN.mjs → newsletter-form.client-rIYPziZC.mjs} +5 -5
- package/dist/client/{newsletter-form.interactive-RuM86VAv.mjs → newsletter-form.interactive-DVt3enLr.mjs} +162 -135
- package/dist/client/{newsletter-form.parts-2petDnWv.mjs → newsletter-form.parts-CH6dGfdn.mjs} +1 -1
- package/dist/client/{newsletterForm-BUbXdA_e.mjs → newsletterForm-Cg8cBDHd.mjs} +3 -3
- package/dist/client/{noop-Dl4mZ-rr.mjs → noop-jesvJXEE.mjs} +239 -229
- package/dist/client/portal/client.mjs +269 -83
- package/dist/client/{portalOrders-COGn4BKG.mjs → portalOrders-oEoTvzkW.mjs} +1 -1
- package/dist/client/{portalRoutes-D72yvtDh.mjs → portalRoutes-ByyVZfVq.mjs} +13 -2
- package/dist/client/{product-detail.client-pOAryevt.mjs → product-detail.client-5aHq-vuu.mjs} +1 -1
- package/dist/client/{product-list.client-CcUpUiud.mjs → product-list.client-CyAk5rnC.mjs} +1 -1
- package/dist/client/{productDetail-BZJCfqat.mjs → productDetail-B8aZ2mqY.mjs} +3 -3
- package/dist/client/{productList-CiRs3mNb.mjs → productList-BuLemmod.mjs} +3 -3
- package/dist/client/{propsDecoder--uHW4tFM.mjs → propsDecoder-0Unsqn3R.mjs} +2 -2
- package/dist/client/{registry.server-CDNNd8wC.mjs → registry.server-DzvtVVD0.mjs} +352 -166
- package/dist/client/rendering/client.mjs +23 -23
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-CQGE_wHV.mjs → richText-coerce-Bnng7JFA.mjs} +2 -2
- package/dist/client/{routeIslandApiConfig-BtCg87-N.mjs → routeIslandApiConfig-BGfcc9sk.mjs} +1 -1
- package/dist/client/{runtimeResponse-Ds9cmBUf.mjs → runtimeResponse-DAPVRToN.mjs} +1 -1
- package/dist/client/{runtimeResponse-DL_ARBpa.mjs → runtimeResponse-nXT8VAMl.mjs} +1 -1
- package/dist/client/{shop-Rx_gEMK8.mjs → shop-GuMqnDL-.mjs} +3 -3
- package/dist/client/{shop-commerce-D8evQnMT.mjs → shop-commerce-D5bDY1o1.mjs} +12 -12
- package/dist/client/{shop-commerce-store-C9PcsSTj.mjs → shop-commerce-store-B7sHnLwI.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-D5CtGfJI.mjs → shop-discount-apply.state-Dos2zdC2.mjs} +2 -2
- package/dist/client/{shop.client-D4lzQ9oY.mjs → shop.client-uvj5GDZb.mjs} +11 -11
- package/dist/client/{shopShared-BVbq7Nm-.mjs → shopShared-3giNWE3H.mjs} +2 -2
- package/dist/client/{src-ZSqRK3dD.mjs → src-CmXh3JWs.mjs} +5 -1
- package/dist/client/{timetableModel-BQJrSK0K.mjs → timetableModel-GA-hn1qM.mjs} +8 -15
- package/dist/client/{useAvailableSlots-Dm3lKJKR.mjs → useAvailableSlots-CBneCxbG.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-klgfGn7f.mjs → useDiscountCodeUi-D0kGF0C7.mjs} +1 -1
- package/dist/client/{useEventPagination-Jnjt7_ly.mjs → useEventPagination-xX8n_Tuu.mjs} +7 -7
- package/dist/client/{view-CC_yQLSA.mjs → view-DOyZc-DF.mjs} +3 -3
- package/dist/client/{wizardSteps-BliJOzEX.mjs → wizardSteps-B952ify5.mjs} +303 -31
- package/dist/preview-next/client/{PageSectionToolbar-BhL0uADo.mjs → PageSectionToolbar-BI3UCdpu.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-Ct8eIm0i.mjs → PreviewEditorSidebar-jkfLVOgY.mjs} +12 -9
- package/dist/preview-next/client/{PreviewEditorUI-BS32G4V9.mjs → PreviewEditorUI-DwJQs4hM.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-RL0WfZXD.mjs → PreviewShell-BAxAkuz8.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-MK_gHeGy.mjs → SdkPreviewModeRuntime-0UVB-39f.mjs} +44 -17
- package/dist/preview-next/client/{previewAssistantSlot-CQyS8pcq.mjs → previewAssistantSlot-BgiYk3PB.mjs} +2577 -1683
- package/dist/preview-next/client/{previewChromeRoot-BSxp3Mfu.mjs → previewChromeRoot-tieNdF3E.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DKnTzy74.mjs → sdk-runtime-DXb_Evl0.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BlmbvbLN.mjs → siteStyleAccess-BlN0jt2c.mjs} +1 -1
- package/dist/preview-next/client/{useAutosaveStatus-D-7GwZOQ.mjs → useAutosaveStatus-BUEPA4oL.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-BNZtGM5g.mjs → useOpenBlockForSetup-BVfr5P--.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-R3PcMmax.mjs → route-contract-BHTBA48n.mjs} +20 -1
- package/dist/server/{Block.shared-CniF9tSu.mjs → Block.shared-hGoyEdjJ.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-BQWsnGT6.mjs → ThemeScopeCore-BfUCTOwj.mjs} +37 -25
- package/dist/server/{accessibleSurfaces-WPzUAHp4.mjs → accessibleSurfaces-Dskni4Xj.mjs} +94 -361
- package/dist/server/{bindings-DxojjtK3.mjs → bindings-DMJH4bvo.mjs} +4 -4
- package/dist/server/{client-CDndhbYO.mjs → client-DrwlRNAH.mjs} +22 -3
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-VyF5nEhL.mjs → constants-CeMywaiD.mjs} +11 -0
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{resolveButtonColourStates-B0O1IM16.mjs → expandPalette-ehuW8r2g.mjs} +769 -227
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-BKstMBmX.mjs → loadContent-D0prFflT.mjs} +4 -4
- package/dist/server/{loadPage-IgNnZaqr.mjs → loadPage-CBLke9pJ.mjs} +3 -3
- package/dist/server/{lookMediaFrame-TFjgNG61.mjs → lookMediaFrame-H0fi4bJk.mjs} +2 -2
- package/dist/server/{navigation-quBYlSKD.mjs → navigation-wrcuWmgp.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +8 -8
- package/dist/server/{overrideResolution-CCaAPpIa.mjs → overrideResolution-DUgCEH8z.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-B7iULvKe.mjs → pageRenderPlan-BHrmogsW.mjs} +161 -244
- package/dist/server/{pageRuntimeSupport-BytMroxn.mjs → pageRuntimeSupport-D2-YMRei.mjs} +1 -1
- package/dist/server/{pageShared-Dcs_XTIO.mjs → pageShared-CG8O31Eo.mjs} +1265 -1032
- package/dist/server/{parseThemeForPersistence-Bihl4W5K.mjs → parseThemeForPersistence-CrPlbJEN.mjs} +1 -1
- package/dist/server/{portal-CMW_b9mG.mjs → portal-pG_uhsI2.mjs} +1 -1
- package/dist/server/portal.mjs +2 -2
- package/dist/server/{prebuild-agaH-vZV.mjs → prebuild-C8Amvzce.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-DwpRjqw4.mjs → prefetchBlockData-BxUETRIZ.mjs} +2 -2
- package/dist/server/{registry-DM9dHfDC.mjs → registry-Cc88-23f.mjs} +1173 -745
- 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/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-CinHGf8l.mjs → resolveBlockData-OG3KOkig.mjs} +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-BBBhOtdE.mjs → servicePageContent-BcFuhhD7.mjs} +5 -5
- package/dist/server/theme-bridge.mjs +33 -8
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{validation-DG5jX3jH.mjs → validation-BovmbS8N.mjs} +3 -3
- package/dist/server/{version-CipbxPHL.mjs → version-hws4hgyX.mjs} +1 -1
- package/dist/styles/index.css +86 -46
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { d as unsafeAsStoragePath, f as parseUuidBrand, i as resolveManagedMediaReference, l as unsafeAsMediaAssetId, m as ok$1, o as parseCanonicalMediaIdentifier, p as err, u as unsafeAsStorageBucketName } from "./renderableMediaAssetAdmission-BsOWd9lf.mjs";
|
|
3
|
-
import { An as formatCurrencyAmount, Bn as parseEventSeriesId, Cn as toUtcIsoDateTimeString, Ct as unsafeAsPositiveCheckoutQuantity, Dn as parsePositiveCents, Dt as eventCalendarDisplayModeValues, En as toBookingTimeZone, Et as eventCalendarDefaultViewValues, J as runtimeMediaSchema, Nn as parseAppointmentServiceId, O as toBookingRequirementConsentField, Ot as eventCalendarListLayoutCompatibleDisplayModeValues, Sn as parseUtcIsoDateTimeString, St as roomChoicesSchema, T as blockBookingConsentSchema, Tn as resolveBookingTimeZoneId, Tt as normalizeCurrencyCode, _n as formatLocalScheduleDate, an as formatDateTimeRange, at as eyebrowTreatmentValues, bn as parseBookingLocalDate, bt as placesFor, c as blockSiteTermsSchema, cn as formatTime$2, dn as inferSiteDateLocale, dt as bookingQuestionsAnswerValueSchema, fn as resolveBookingDisplayContext, gn as compareLocalScheduleDates, hn as addLocalScheduleDays, in as formatDateTime, j as eventCalendarListLayoutOptions, k as beforeBookingQuestionsPresentationSchema, kn as toNonNegativeCents, kt as eventCalendarListLayoutValues, ln as formatTimeRange, mn as toScheduledBookingDateTime, nn as formatDate$2, on as formatSiteInstantDate, ot as headingDecorationColorTokenValues, rn as formatDateRange, sn as formatSiteInstantTime, t as assertNever$2, tn as validateBookingPaymentOptionKinds, ut as visibleHeadingDecorationFamilyValues, vn as getBookingLocalDateKey, w as blockBookingPaymentTermsSchema, wn as resolveBookingBusinessTimeZone, wt as allocateReductionCents, xn as parseLocalScheduleTime, xt as reviewedRoomsSchema, yn as getLocalScheduleDate, yt as ROOM_PLACES, zn as parseEventOfferingId } from "./src-
|
|
3
|
+
import { An as formatCurrencyAmount, Bn as parseEventSeriesId, Cn as toUtcIsoDateTimeString, Ct as unsafeAsPositiveCheckoutQuantity, Dn as parsePositiveCents, Dt as eventCalendarDisplayModeValues, En as toBookingTimeZone, Et as eventCalendarDefaultViewValues, J as runtimeMediaSchema, Nn as parseAppointmentServiceId, O as toBookingRequirementConsentField, Ot as eventCalendarListLayoutCompatibleDisplayModeValues, Sn as parseUtcIsoDateTimeString, St as roomChoicesSchema, T as blockBookingConsentSchema, Tn as resolveBookingTimeZoneId, Tt as normalizeCurrencyCode, _n as formatLocalScheduleDate, an as formatDateTimeRange, at as eyebrowTreatmentValues, bn as parseBookingLocalDate, bt as placesFor, c as blockSiteTermsSchema, cn as formatTime$2, dn as inferSiteDateLocale, dt as bookingQuestionsAnswerValueSchema, fn as resolveBookingDisplayContext, gn as compareLocalScheduleDates, hn as addLocalScheduleDays, in as formatDateTime, j as eventCalendarListLayoutOptions, k as beforeBookingQuestionsPresentationSchema, kn as toNonNegativeCents, kt as eventCalendarListLayoutValues, ln as formatTimeRange, mn as toScheduledBookingDateTime, nn as formatDate$2, on as formatSiteInstantDate, ot as headingDecorationColorTokenValues, rn as formatDateRange, sn as formatSiteInstantTime, t as assertNever$2, tn as validateBookingPaymentOptionKinds, ut as visibleHeadingDecorationFamilyValues, vn as getBookingLocalDateKey, w as blockBookingPaymentTermsSchema, wn as resolveBookingBusinessTimeZone, wt as allocateReductionCents, xn as parseLocalScheduleTime, xt as reviewedRoomsSchema, yn as getLocalScheduleDate, yt as ROOM_PLACES, zn as parseEventOfferingId } from "./src-CmXh3JWs.mjs";
|
|
4
4
|
import { c as checkBookingQuestionsAnswered, d as initialBookingQuestionsAnswerMode, f as initialBookingQuestionsValues, h as assertNever$3, p as resolveBookingQuestionsAnswerMode, r as bookingCalendar, s as buildBookingQuestionsSubmission } from "./bookingCalendar--aWnqFDn.mjs";
|
|
5
5
|
import { t as stableJsonStringify } from "./stable-json-D0XAEIXc.mjs";
|
|
6
|
-
import { Mt as blockAppearancePresets, Nt as resolveEffectiveKnobs, en as cardListFamilyBlocks, i as listLookSlot, r as listLookControl, tn as cardListKnobBlocks } from "./noop-
|
|
6
|
+
import { Mt as blockAppearancePresets, Nt as resolveEffectiveKnobs, en as cardListFamilyBlocks, i as listLookSlot, r as listLookControl, tn as cardListKnobBlocks } from "./noop-jesvJXEE.mjs";
|
|
7
7
|
import { g as blockColorTokenNames, w as parseColorTokenParts } from "./types-BEaKfam_.mjs";
|
|
8
|
-
import {
|
|
8
|
+
import { A as PUBLIC_BUTTON_ROLES, H as rgbColorValue, R as backgroundColorStyle, U as textColorStyle, V as mergeStyles } from "./accessibleSurfaces-BogaGutk.mjs";
|
|
9
9
|
import { x as clsx } from "./ThemedButton-PFOhXktM.mjs";
|
|
10
10
|
import { a as getSupabaseUrl, i as getSiteId, n as getCurrentResolveImageUrlContext, r as getMediaAssetIndex } from "./mediaContext-DzvnjYXm.mjs";
|
|
11
11
|
import { l as buildCalendarViewport$1, r as groupItemsByDate } from "./src-uwCpbHXG.mjs";
|
|
@@ -1327,9 +1327,6 @@ const checkoutCopy = {
|
|
|
1327
1327
|
checkoutAssistanceRequired: "We can’t confirm your last payment attempt yet. Please don’t pay again – contact the business so they can check it."
|
|
1328
1328
|
};
|
|
1329
1329
|
//#endregion
|
|
1330
|
-
//#region ../commerce/src/purchase/eventCheckoutRecoveryWindow.ts
|
|
1331
|
-
const EVENT_CHECKOUT_HOLD_DURATION_MS = 2100 * 1e3;
|
|
1332
|
-
//#endregion
|
|
1333
1330
|
//#region ../commerce/src/purchase/roomWords.ts
|
|
1334
1331
|
const PEOPLE_WORD = {
|
|
1335
1332
|
guest: "you",
|
|
@@ -1385,14 +1382,14 @@ const ROOM_REFUSAL_REASON_MESSAGES = {
|
|
|
1385
1382
|
//#endregion
|
|
1386
1383
|
//#region ../commerce/src/purchase/event-registration-errors.ts
|
|
1387
1384
|
/**
|
|
1388
|
-
* Said to a booker whose earlier
|
|
1389
|
-
*
|
|
1390
|
-
*
|
|
1385
|
+
* Said to a booker whose earlier booking this one can't replace, because its payment has started (or
|
|
1386
|
+
* can't be checked yet). An unpaid one would just be replaced (#1832). It doesn't hand back the earlier
|
|
1387
|
+
* booking, so it tells them where the answer will come from: the confirmation email, or the organiser.
|
|
1391
1388
|
*/
|
|
1392
1389
|
function earlierBookingUnpaid(subject, otherwise = "") {
|
|
1393
|
-
return
|
|
1390
|
+
return `${subject === null ? "You’ve already started paying for an earlier booking, so we can’t take another one." : `You’ve already started paying for ${subject}, so we can’t take another booking for it.`} ${otherwise}If that payment goes through, you’ll get a confirmation email. If you don’t get one, please contact the organiser.`;
|
|
1394
1391
|
}
|
|
1395
|
-
earlierBookingUnpaid("this
|
|
1392
|
+
earlierBookingUnpaid("this run");
|
|
1396
1393
|
const eventRegistrationErrors = {
|
|
1397
1394
|
invalidAnswers: {
|
|
1398
1395
|
endsCommand: false,
|
|
@@ -1522,7 +1519,7 @@ const eventRegistrationErrors = {
|
|
|
1522
1519
|
},
|
|
1523
1520
|
/**
|
|
1524
1521
|
* The server's own message says which date or run. This one is only shown if that's missing. The
|
|
1525
|
-
* earlier booking still stands, so the command isn't ended
|
|
1522
|
+
* earlier booking still stands, so the command isn't ended.
|
|
1526
1523
|
*/
|
|
1527
1524
|
earlierBookingUnpaid: {
|
|
1528
1525
|
endsCommand: false,
|
|
@@ -5680,18 +5677,55 @@ function isBookableEvent(event, now) {
|
|
|
5680
5677
|
function hasEventBookingClosedEarly(event, now) {
|
|
5681
5678
|
return event.bookingClosesAt !== void 0 && hasBookingClosed(event.bookingClosesAt, now);
|
|
5682
5679
|
}
|
|
5680
|
+
/**
|
|
5681
|
+
* Past its cut-off but not yet started: the window an early cut-off adds. Once
|
|
5682
|
+
* a date has started, the page says that instead.
|
|
5683
|
+
*/
|
|
5684
|
+
function isInBookingCutOffWindow(event, now) {
|
|
5685
|
+
return hasEventBookingClosedEarly(event, now) && Date.parse(event.startsAt) > now.getTime();
|
|
5686
|
+
}
|
|
5683
5687
|
//#endregion
|
|
5684
5688
|
//#region ../blocks/src/system/runtime/nodes/events/domain/destination.ts
|
|
5685
5689
|
function isRecord$2(value) {
|
|
5686
5690
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5687
5691
|
}
|
|
5688
|
-
function
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
+
function isEventDestinationMode(value) {
|
|
5693
|
+
return value === "cms-managed" || value === "system-managed";
|
|
5694
|
+
}
|
|
5695
|
+
function readEventPage(value) {
|
|
5696
|
+
return isRecord$2(value) && isEventDestinationMode(value.mode) && typeof value.path === "string" && value.path.trim().length > 0 ? {
|
|
5697
|
+
mode: value.mode,
|
|
5698
|
+
path: value.path
|
|
5699
|
+
} : null;
|
|
5700
|
+
}
|
|
5701
|
+
/**
|
|
5702
|
+
* A destination from the payload, or null when it isn't one. An external
|
|
5703
|
+
* destination with a malformed `page` keeps linking out, as one without a page
|
|
5704
|
+
* does, rather than being read as booked here.
|
|
5705
|
+
*/
|
|
5706
|
+
function readRuntimeEventDestination(value) {
|
|
5707
|
+
if (!isRecord$2(value)) return null;
|
|
5708
|
+
if (value.kind === "native") return isEventDestinationMode(value.mode) && typeof value.path === "string" ? {
|
|
5709
|
+
kind: "native",
|
|
5710
|
+
mode: value.mode,
|
|
5711
|
+
path: value.path
|
|
5712
|
+
} : null;
|
|
5713
|
+
if (value.kind !== "external" || typeof value.url !== "string" || typeof value.label !== "string") return null;
|
|
5714
|
+
const page = readEventPage(value.page);
|
|
5715
|
+
return page ? {
|
|
5716
|
+
kind: "external",
|
|
5717
|
+
url: value.url,
|
|
5718
|
+
label: value.label,
|
|
5719
|
+
page
|
|
5720
|
+
} : {
|
|
5721
|
+
kind: "external",
|
|
5722
|
+
url: value.url,
|
|
5723
|
+
label: value.label
|
|
5724
|
+
};
|
|
5692
5725
|
}
|
|
5693
5726
|
function resolveRuntimeEventDestination(event) {
|
|
5694
|
-
|
|
5727
|
+
const destination = readRuntimeEventDestination(event.destination);
|
|
5728
|
+
if (destination) return destination;
|
|
5695
5729
|
return {
|
|
5696
5730
|
kind: "native",
|
|
5697
5731
|
mode: event.eventDestinationMode === "system-managed" ? "system-managed" : "cms-managed",
|
|
@@ -5699,6 +5733,193 @@ function resolveRuntimeEventDestination(event) {
|
|
|
5699
5733
|
};
|
|
5700
5734
|
}
|
|
5701
5735
|
//#endregion
|
|
5736
|
+
//#region ../blocks/src/system/runtime/nodes/events/domain/cta.ts
|
|
5737
|
+
/**
|
|
5738
|
+
* Booking call-to-action resolution for events: where an event links to and
|
|
5739
|
+
* what the button says. Sold-out and waitlist decisions come from capacity.ts
|
|
5740
|
+
* so cards, rows and the wizard never disagree.
|
|
5741
|
+
*/
|
|
5742
|
+
function closedEventBookingLabel(reason) {
|
|
5743
|
+
switch (reason) {
|
|
5744
|
+
case "occurrence_cancelled":
|
|
5745
|
+
case "series_cancelled": return "Cancelled";
|
|
5746
|
+
case "occurrence_completed":
|
|
5747
|
+
case "series_completed": return "Completed";
|
|
5748
|
+
case "series_draft":
|
|
5749
|
+
case "series_archived":
|
|
5750
|
+
case "parent_archived":
|
|
5751
|
+
case "parent_inconsistent":
|
|
5752
|
+
case "already_started":
|
|
5753
|
+
case "enrollment_closed": return "Registration closed";
|
|
5754
|
+
default: return assertNever$3(reason);
|
|
5755
|
+
}
|
|
5756
|
+
}
|
|
5757
|
+
function outwardLink(url) {
|
|
5758
|
+
return {
|
|
5759
|
+
href: url,
|
|
5760
|
+
target: "_blank",
|
|
5761
|
+
rel: "noopener noreferrer"
|
|
5762
|
+
};
|
|
5763
|
+
}
|
|
5764
|
+
/** The event's own page path, when it has a page (booked here, or booked elsewhere with its own page). */
|
|
5765
|
+
function eventDestinationPagePath(destination) {
|
|
5766
|
+
return destination.kind === "native" ? destination.path : destination.page?.path ?? null;
|
|
5767
|
+
}
|
|
5768
|
+
/**
|
|
5769
|
+
* Where an event's details are: its page when it has one (booked here, or
|
|
5770
|
+
* booked elsewhere with its own page), otherwise the outside link in a new tab.
|
|
5771
|
+
*/
|
|
5772
|
+
function eventDestinationPageLink(destination) {
|
|
5773
|
+
switch (destination.kind) {
|
|
5774
|
+
case "native": return { href: destination.path };
|
|
5775
|
+
case "external": return destination.page ? { href: destination.page.path } : outwardLink(destination.url);
|
|
5776
|
+
}
|
|
5777
|
+
}
|
|
5778
|
+
/** Where an event is booked: the outside link (new tab) for any event booked elsewhere, otherwise its page. */
|
|
5779
|
+
function eventDestinationBookingLink(destination) {
|
|
5780
|
+
return destination.kind === "external" ? outwardLink(destination.url) : { href: destination.path };
|
|
5781
|
+
}
|
|
5782
|
+
/** For the title, image, date tiles and calendar cells. */
|
|
5783
|
+
function resolveEventPageLink(event) {
|
|
5784
|
+
return eventDestinationPageLink(resolveRuntimeEventDestination(event));
|
|
5785
|
+
}
|
|
5786
|
+
/** For the Book button. */
|
|
5787
|
+
function resolveEventBookingLink(event) {
|
|
5788
|
+
return eventDestinationBookingLink(resolveRuntimeEventDestination(event));
|
|
5789
|
+
}
|
|
5790
|
+
/**
|
|
5791
|
+
* Resolve the CTA state for an event.
|
|
5792
|
+
* Shared by EventCard and EventCompactRow to keep sold-out, registration-closed,
|
|
5793
|
+
* and course-specific defaults consistent.
|
|
5794
|
+
*/
|
|
5795
|
+
function resolveEventCta(event, buttonText) {
|
|
5796
|
+
const isSoldOut = isEventFull(event);
|
|
5797
|
+
const isExternal = resolveRuntimeEventDestination(event).kind === "external";
|
|
5798
|
+
const { href } = resolveEventBookingLink(event);
|
|
5799
|
+
if (event.bookingAvailability.kind === "closed") {
|
|
5800
|
+
const linksToClosedWholeSeriesDetails = event.bookingAvailability.reason === "enrollment_closed" && !isExternal;
|
|
5801
|
+
return {
|
|
5802
|
+
label: closedEventBookingLabel(event.bookingAvailability.reason),
|
|
5803
|
+
href,
|
|
5804
|
+
external: isExternal,
|
|
5805
|
+
hidden: !linksToClosedWholeSeriesDetails
|
|
5806
|
+
};
|
|
5807
|
+
}
|
|
5808
|
+
if (!isExternal && isSoldOut) {
|
|
5809
|
+
if (canJoinEventWaitlistOnAnyMode(event)) return {
|
|
5810
|
+
label: "Join waitlist",
|
|
5811
|
+
href,
|
|
5812
|
+
external: false,
|
|
5813
|
+
hidden: false
|
|
5814
|
+
};
|
|
5815
|
+
return {
|
|
5816
|
+
label: "Sold out",
|
|
5817
|
+
href,
|
|
5818
|
+
external: false,
|
|
5819
|
+
hidden: true
|
|
5820
|
+
};
|
|
5821
|
+
}
|
|
5822
|
+
return destinationCta(event, buttonText);
|
|
5823
|
+
}
|
|
5824
|
+
function destinationCta(event, buttonText) {
|
|
5825
|
+
const destination = resolveRuntimeEventDestination(event);
|
|
5826
|
+
return {
|
|
5827
|
+
label: buttonText ?? (destination.kind === "external" ? destination.label : "Book"),
|
|
5828
|
+
href: resolveEventBookingLink(event).href,
|
|
5829
|
+
external: destination.kind === "external",
|
|
5830
|
+
hidden: false
|
|
5831
|
+
};
|
|
5832
|
+
}
|
|
5833
|
+
/**
|
|
5834
|
+
* A bounded date strip cannot prove a series sold out. Its destination owns date selection,
|
|
5835
|
+
* so the card offers that destination and leaves capacity with the individual date rows.
|
|
5836
|
+
* Whole-series bookings still have one shared capacity, as do ordinary occurrence cards.
|
|
5837
|
+
*/
|
|
5838
|
+
function resolveEventCardBooking(event, scope, buttonText, options) {
|
|
5839
|
+
const closedCta = event.bookingAvailability.kind === "closed" ? resolveEventCta(event, buttonText) : renderClockClosedCta(event, options.now);
|
|
5840
|
+
if (scope === "series" && event.bookingScope === "single_occurrence") {
|
|
5841
|
+
const closed = seriesBookingClosed(event);
|
|
5842
|
+
return {
|
|
5843
|
+
cta: closed ? resolveEventCta(event, buttonText) : withoutPage(destinationCta(event, buttonText)),
|
|
5844
|
+
availability: null,
|
|
5845
|
+
closed
|
|
5846
|
+
};
|
|
5847
|
+
}
|
|
5848
|
+
return closedCta ? {
|
|
5849
|
+
cta: closedCta,
|
|
5850
|
+
availability: null,
|
|
5851
|
+
closed: true
|
|
5852
|
+
} : {
|
|
5853
|
+
cta: withoutPage(resolveEventCta(event, buttonText)),
|
|
5854
|
+
availability: occurrenceCardAvailability(event, options.count),
|
|
5855
|
+
closed: false
|
|
5856
|
+
};
|
|
5857
|
+
}
|
|
5858
|
+
/** A native card with no page yet can't invite booking: there is nowhere to send the visitor. */
|
|
5859
|
+
function withoutPage(cta) {
|
|
5860
|
+
return !cta.external && !cta.hidden && cta.href === "" ? {
|
|
5861
|
+
...cta,
|
|
5862
|
+
label: "Details coming soon",
|
|
5863
|
+
hidden: true
|
|
5864
|
+
} : cta;
|
|
5865
|
+
}
|
|
5866
|
+
/** Only a series-wide closure closes its card; a cancelled or started date says nothing about later dates. */
|
|
5867
|
+
function seriesBookingClosed(event) {
|
|
5868
|
+
if (event.bookingAvailability.kind !== "closed") return false;
|
|
5869
|
+
switch (event.bookingAvailability.reason) {
|
|
5870
|
+
case "occurrence_cancelled":
|
|
5871
|
+
case "occurrence_completed":
|
|
5872
|
+
case "already_started": return false;
|
|
5873
|
+
case "series_cancelled":
|
|
5874
|
+
case "series_completed":
|
|
5875
|
+
case "series_draft":
|
|
5876
|
+
case "series_archived":
|
|
5877
|
+
case "parent_archived":
|
|
5878
|
+
case "parent_inconsistent":
|
|
5879
|
+
case "enrollment_closed": return true;
|
|
5880
|
+
default: return assertNever$3(event.bookingAvailability.reason);
|
|
5881
|
+
}
|
|
5882
|
+
}
|
|
5883
|
+
function occurrenceCardAvailability(event, count) {
|
|
5884
|
+
const label = formatEventRemainingPlaces(event, {
|
|
5885
|
+
full: "Sold out",
|
|
5886
|
+
count
|
|
5887
|
+
});
|
|
5888
|
+
const availability = getEventAvailabilityStatus(event);
|
|
5889
|
+
return label ? {
|
|
5890
|
+
label,
|
|
5891
|
+
status: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available"
|
|
5892
|
+
} : null;
|
|
5893
|
+
}
|
|
5894
|
+
/** Preserve projected closure reasons; only an open native booking needs its clock rechecked. */
|
|
5895
|
+
function renderClockClosedCta(event, now) {
|
|
5896
|
+
if (!now || event.destination.kind !== "native") return null;
|
|
5897
|
+
if (event.bookingScope !== "whole_series") return hasEventBookingClosedEarly(event, now) ? {
|
|
5898
|
+
label: "Registration closed",
|
|
5899
|
+
href: resolveEventBookingLink(event).href,
|
|
5900
|
+
external: false,
|
|
5901
|
+
hidden: true
|
|
5902
|
+
} : null;
|
|
5903
|
+
const phase = resolveWholeSeriesBookingPhase(event.run, now);
|
|
5904
|
+
if (phase.kind === "open") return null;
|
|
5905
|
+
return {
|
|
5906
|
+
label: (() => {
|
|
5907
|
+
switch (phase.reason) {
|
|
5908
|
+
case "cancelled": return "Cancelled";
|
|
5909
|
+
case "completed": return "Completed";
|
|
5910
|
+
case "in-progress":
|
|
5911
|
+
case "bookings-closed":
|
|
5912
|
+
case "enrolment-closed":
|
|
5913
|
+
case "no-sessions": return "Registration closed";
|
|
5914
|
+
default: return assertNever$3(phase.reason);
|
|
5915
|
+
}
|
|
5916
|
+
})(),
|
|
5917
|
+
href: resolveEventBookingLink(event).href,
|
|
5918
|
+
external: false,
|
|
5919
|
+
hidden: phase.reason !== "enrolment-closed" && phase.reason !== "bookings-closed"
|
|
5920
|
+
};
|
|
5921
|
+
}
|
|
5922
|
+
//#endregion
|
|
5702
5923
|
//#region ../blocks/src/system/runtime/nodes/events/domain/location.ts
|
|
5703
5924
|
/** The name in a venue's place: its own, or the owner's word that the address follows the booking. */
|
|
5704
5925
|
function eventPlaceName(event) {
|
|
@@ -7531,6 +7752,14 @@ function isOrdinaryPublicEvent(event) {
|
|
|
7531
7752
|
return event.bookingScope === "single_occurrence";
|
|
7532
7753
|
}
|
|
7533
7754
|
/**
|
|
7755
|
+
* A date people come to without booking. An event booked on another website is
|
|
7756
|
+
* also saved with no booking here, but its visitors do book, just elsewhere, so
|
|
7757
|
+
* it is never a drop-in.
|
|
7758
|
+
*/
|
|
7759
|
+
function isDropInPublicEvent(event) {
|
|
7760
|
+
return event.bookingScope === "single_occurrence" && !event.requiresRegistration && event.destination.kind !== "external";
|
|
7761
|
+
}
|
|
7762
|
+
/**
|
|
7534
7763
|
* What a series' own page shows when its URL names no date.
|
|
7535
7764
|
*
|
|
7536
7765
|
* Two or more dates a visitor can book make a choice: the page lists every
|
|
@@ -7713,7 +7942,7 @@ function planDropInPanel(selection) {
|
|
|
7713
7942
|
}
|
|
7714
7943
|
function getPublicEventCanonicalPath(event) {
|
|
7715
7944
|
if (event.path) return event.path;
|
|
7716
|
-
return event.destination
|
|
7945
|
+
return eventDestinationPagePath(event.destination);
|
|
7717
7946
|
}
|
|
7718
7947
|
function eventOccurrenceContext(event) {
|
|
7719
7948
|
return {
|
|
@@ -7729,7 +7958,7 @@ function eventOccurrenceContext(event) {
|
|
|
7729
7958
|
function registrationDataForEventSelection(selection) {
|
|
7730
7959
|
switch (selection.kind) {
|
|
7731
7960
|
case "occurrence": return {
|
|
7732
|
-
events: [selection.event],
|
|
7961
|
+
events: [selection.event, ...selection.additionalDates ?? []],
|
|
7733
7962
|
occurrenceContext: eventOccurrenceContext(selection.event),
|
|
7734
7963
|
subject: null
|
|
7735
7964
|
};
|
|
@@ -7909,7 +8138,10 @@ function openRunBookingLine(run) {
|
|
|
7909
8138
|
/** One date between its cut-off and its start, or null. */
|
|
7910
8139
|
function closedDateCopy(event, now) {
|
|
7911
8140
|
const closesAt = event.bookingClosesAt;
|
|
7912
|
-
|
|
8141
|
+
return closesAt && isInBookingCutOffWindow(event, now) ? cutOffDateCopy(event, closesAt) : null;
|
|
8142
|
+
}
|
|
8143
|
+
/** What a date past its cut-off says: when bookings closed, and how long before the start. */
|
|
8144
|
+
function cutOffDateCopy(event, closesAt) {
|
|
7913
8145
|
const zone = eventTimeZone(event);
|
|
7914
8146
|
const closed = formatBookingClosedTime(closesAt, event.startsAt, zone);
|
|
7915
8147
|
const start = formatBookingClosedTime(event.startsAt, event.startsAt, zone);
|
|
@@ -7921,6 +8153,34 @@ function closedDateCopy(event, now) {
|
|
|
7921
8153
|
otherDatesHref: weekly ? eventOwnPagePath(event) : null
|
|
7922
8154
|
};
|
|
7923
8155
|
}
|
|
8156
|
+
/**
|
|
8157
|
+
* What a date booked on another website says once it has closed, as decided by
|
|
8158
|
+
* `bookedElsewhereDateClosure`. There's no booking form here to say so, and the
|
|
8159
|
+
* outward button mustn't stand in for it.
|
|
8160
|
+
*/
|
|
8161
|
+
function bookElsewhereDateCopy(event, closure) {
|
|
8162
|
+
const weekly = isWeekly(event);
|
|
8163
|
+
const otherDatesHref = weekly ? eventOwnPagePath(event) : null;
|
|
8164
|
+
const closedTitle = weekly ? "Bookings for this date have closed" : "Bookings for this event have closed";
|
|
8165
|
+
switch (closure.kind) {
|
|
8166
|
+
case "cutOff": return cutOffDateCopy(event, closure.closesAt);
|
|
8167
|
+
case "finished": return {
|
|
8168
|
+
titleText: weekly ? "This date has finished" : "This event has finished",
|
|
8169
|
+
bodyText: "The details are kept here for reference.",
|
|
8170
|
+
otherDatesHref
|
|
8171
|
+
};
|
|
8172
|
+
case "started": return {
|
|
8173
|
+
titleText: closedTitle,
|
|
8174
|
+
bodyText: "Bookings closed when it started. The organiser may still be able to help if you’d like to come.",
|
|
8175
|
+
otherDatesHref
|
|
8176
|
+
};
|
|
8177
|
+
case "notTaking": return {
|
|
8178
|
+
titleText: closedTitle,
|
|
8179
|
+
bodyText: "Bookings aren’t being taken at the moment.",
|
|
8180
|
+
otherDatesHref
|
|
8181
|
+
};
|
|
8182
|
+
}
|
|
8183
|
+
}
|
|
7924
8184
|
/** The body of a course past its cut-off, or null if the run doesn't say when. */
|
|
7925
8185
|
function closedRunBody(run) {
|
|
7926
8186
|
const first = orderedLiveRunSessions(run.sessions)[0];
|
|
@@ -7971,9 +8231,12 @@ function closedRunCopy(reason, run) {
|
|
|
7971
8231
|
function closedDatesCopy(dates, now) {
|
|
7972
8232
|
if (dates.some((date) => Date.parse(date.startsAt) > now.getTime() && !(date.bookingClosesAt && hasBookingClosed(date.bookingClosesAt, now)))) return null;
|
|
7973
8233
|
const [firstClosed] = dates.flatMap((date) => closedDateCopy(date, now) ?? []);
|
|
7974
|
-
|
|
8234
|
+
return firstClosed ? closedDateListCopy(dates.length, firstClosed) : null;
|
|
8235
|
+
}
|
|
8236
|
+
/** A closed list of dates: one date says its own cut-off; several share the run's line. */
|
|
8237
|
+
function closedDateListCopy(dateCount, firstCutOff) {
|
|
7975
8238
|
return {
|
|
7976
|
-
...
|
|
8239
|
+
...dateCount > 1 ? copy["bookings-closed"] : firstCutOff,
|
|
7977
8240
|
otherDatesHref: null
|
|
7978
8241
|
};
|
|
7979
8242
|
}
|
|
@@ -12320,14 +12583,8 @@ function getTicketSelectionPurpose(input) {
|
|
|
12320
12583
|
return input.admission.kind === "checking" && input.event && canJoinEventWaitlist(input.event, { attendanceMode: input.attendanceMode }) ? "waitlist" : "book";
|
|
12321
12584
|
}
|
|
12322
12585
|
function resolveRegistrationAdmission(input) {
|
|
12323
|
-
|
|
12324
|
-
if (input.
|
|
12325
|
-
if (input.eligibilityError) return {
|
|
12326
|
-
kind: "closed",
|
|
12327
|
-
reason: input.bookingsClosed ? "bookingsClosed" : "optionsUnavailable",
|
|
12328
|
-
message: input.eligibilityError
|
|
12329
|
-
};
|
|
12330
|
-
if (!input.eligibility) return { kind: "checking" };
|
|
12586
|
+
const early = admissionBeforeOptions(input);
|
|
12587
|
+
if (early || !input.eligibility) return early ?? { kind: "checking" };
|
|
12331
12588
|
const { registration, availability } = input.eligibility;
|
|
12332
12589
|
if (registration.kind === "pending_payment") return { kind: "resume" };
|
|
12333
12590
|
if (registration.kind === "waitlisted") return {
|
|
@@ -12338,6 +12595,21 @@ function resolveRegistrationAdmission(input) {
|
|
|
12338
12595
|
const admission = admissionFromAvailability(availability, input.isAuthenticated, input.businessName);
|
|
12339
12596
|
return admission.kind === "open" && input.selectionPayment ? admissionForSelectionPayment(input.selectionPayment, input.businessName) : admission;
|
|
12340
12597
|
}
|
|
12598
|
+
/**
|
|
12599
|
+
* Admission that doesn't need the options' answer. Every way in waits for the
|
|
12600
|
+
* options, even a held place: until they arrive, whether anything is due can't
|
|
12601
|
+
* be known, and a paid event would look free.
|
|
12602
|
+
*/
|
|
12603
|
+
function admissionBeforeOptions(input) {
|
|
12604
|
+
if (input.eligibilityLoading) return { kind: "checking" };
|
|
12605
|
+
if (input.holdsOwnPlace && (input.eligibility || input.eligibilityError)) return { kind: "resume" };
|
|
12606
|
+
if (input.eligibilityError) return {
|
|
12607
|
+
kind: "closed",
|
|
12608
|
+
reason: input.bookingsClosed ? "bookingsClosed" : "optionsUnavailable",
|
|
12609
|
+
message: input.eligibilityError
|
|
12610
|
+
};
|
|
12611
|
+
return null;
|
|
12612
|
+
}
|
|
12341
12613
|
/** The checkout refusal's words, for a selection the page shouldn't have offered together. */
|
|
12342
12614
|
const BOOK_SEPARATELY_MESSAGE = "These can’t be booked together. Book them one at a time.";
|
|
12343
12615
|
/** An open selection the server says can't be paid: the site can't take the money, or the items' ways to pay don't combine. */
|
|
@@ -13865,4 +14137,4 @@ function registrationStepLabel(step, context) {
|
|
|
13865
14137
|
}
|
|
13866
14138
|
}
|
|
13867
14139
|
//#endregion
|
|
13868
|
-
export { deriveEventRegistrationSteps as $, PAGE_NAVIGATION as $a, toSelectedCollectionOptionKind as $i, serverPricedTotalCents as $n, resolveImageUrl as $o, formatValidity as $r, parseMailchimpAudienceId as $s, toWholeSeriesRegistrationEvents as $t, ownCoverPaysEveryDate as A, toBookingPurchasablePackages as Aa, bookingFormInteractiveIslandPropsCodec as Ai, selectionConfirmationHint as An, eventDateLocale as Ao, normalizeTicketSelectionLines as Ar, eventRegistrationErrors as As, resolveEventRequiresPayment as At, closedAdmissionLabel as B, calendarTabViewsSchema as Ba, isSameOpenCheckout as Bi, severalConfirmationSentence as Bn, formatEventRunDates as Bo, placesLeftLabel as Br, formatCreditProductPayment as Bs, defaultTicketOptions as Bt, currentSelectionFundingLookup as C, reconcileBookingPackagePurchase as Ca, planWholeSeriesParentBooking as Ci, primarySelectionItem as Cn, selectMostOpenCapacitySource as Co, withRegistrationAvailability as Cr, sanitizeHref as Cs, beginWaitlistInvitation as Ct, fundingOptionPick as D, resolveBookingPaymentChoice as Da, resolveSelectionBookingClosedDetail as Di, runPricingChoice as Dn, RichText as Do, getTicketSelectionTotal as Dr, decideSelectionAttendance as Ds, buildRegistrationSelectionRequest as Dt, fundingOptionKey as E, resolveBookingPaymentAvailability as Ea, registrationDataForEventSelection as Ei, runNeedsPricingChoice as En, isBlockButtonRole as Eo, getTicketLineQuantity as Er, INCOMPATIBLE_ATTENDANCE_MESSAGE as Es, withOfferedEvent as Et, selectionFundingRequest as F, createZodCodec as Fa, getBookingRedirectStateFromLocation as Fi, selectionItemsLabel as Fn, formatEventClockLabel as Fo, decideSignInReturn as Fr, bookingCollectionDatesOpen as Fs, validateFormData as Ft, planRegistrationDetailsContinuation as G, eventLayoutSchema as Ga, resolveAppointmentCheckoutVerificationState as Gi, combinationHintCopy as Gn, resolveEventTimeZone as Go, buildCartDisplay as Gr, resolveWholeSeriesBookingPhase as Gs, selectRoomOffer as Gt, getTicketSelectionPurpose as H, eventButtonVariantSchema as Ha, normalizeBookingServices as Hi, severalRunsChoiceMessage as Hn, formatEventWeekdayTime as Ho, resolveRegistrationDisplay as Hr, CANCELLED_SESSION_STATUS as Hs, presentRoomChooser as Ht, buildEventRegistrationPaymentOptionsViewModel as I, defineClientOwnedBlockRuntime as Ia, getBookingSuccessCopy as Ii, selectionPlacesLabel as In, formatEventCompactDateRail as Io, nextSignInReturnExpiry as Ir, flexibleBalanceDueDay as Is, ADD_A_PLACE as It, resolveRegistrationAdmission as J, registrationButtonVariantSchema as Ja, resolveBookingSiteId as Ji, combinationWorking as Jn, computeMediaTransformStyle as Jo, buildProductCardDisplay as Jr, parseMailingListRuntimeContext as Js, confirmationPaymentRows as Jt, registrationStopsHere as K, filterAutoShowSchema as Ka, resolveBookingPaymentStep as Ki, combinationOfferLine as Kn, ImagePresets as Ko, buildCheckoutDisplay as Kr, resolveWholeSeriesPaymentDates as Ks, isSameWaitlistClaim as Kt, buildSelectionCollectionOptions as L, defineProgressiveBlockRuntime as La, getRegistrationSuccessCopy as Li, selectionPlacesNote as Ln, formatEventDateParts as Lo, readSignInReturn as Lr, repriceBookingCollectionOptions as Ls, bookingLines as Lt, selectionFundingBasis as M, buildInteractiveIslandProps as Ma, readOverrideServiceCategories as Mi, selectionEntitlementNote as Mn, eventLocalDateKey as Mo, BOOKING_SIGN_IN_RETURN_PARAM as Mr, parseEventRegistrationErrorReason as Ms, resolveRouteRequiresPayment as Mt, selectionFundingFetchWanted as N, createInteractiveIslandCodec as Na, deriveBookingFormViewState as Ni, selectionIncludes as Nn, formatCalendarTitle as No, clearSignInReturnDrafts as Nr, EVENT_CHECKOUT_HOLD_DURATION_MS as Ns, toRegistrationRequestSubject as Nt, initialSelectionFundingLookup as O, resolveBookingPaymentMode as Oa, selectionRepresentativeEvent as Oi, runUnitPriceCents as On, buildCalendarViewport as Oo, getTicketTypeLineMax as Or, setRoomChoicePeople as Os, findPreSelectedEvent as Ot, selectionFundingReducer as P, defineInteractiveIslandMetaKeys as Pa, formatBookingSubmissionPreparationError as Pi, selectionItemPrice as Pn, formatDate$1 as Po, createSignInReturnDraftStore as Pr, planCheckoutPaymentFlow as Ps, registrationQuestionsMessage as Pt, visitorHoldsOwnPlace as Q, getBlockApiReadStage as Qa, snapshotBookingShownTerms as Qi, selectionPreviewLines as Qn, resolveImageSourceSetWithContext as Qo, formatInterval as Qr, parseBrevoListId as Qs, toWholeSeriesRegistrationEvent as Qt, decideEventRegistrationPayment as R, isDecodeSuccess as Ra, getShopSuccessCopy as Ri, selectionRowAvailability as Rn, formatEventHourLabel as Ro, signInReturnPath as Rr, getStripeMinimumChargeRequirement as Rs, dayOptionsOf as Rt, chosenFundingOption as S, bookingRequiresResourceSelection as Sa, planOrdinarySeriesSelection as Si, planSelectionPrice as Sn, selectEventCapacitySource as So, shouldLoadRegistrationOptions as Sr, resolveDateRuntimeContext as Ss, entryStart as St, fundingMoneyDates as T, resolveBookingPackageSources as Ta, planWholeSeriesRunSelection as Ti, runChoiceUsable as Tn, blockButtonRoleSchema as To, getSingleSelectedPricingOptionId as Tr, isRecord$3 as Ts, invitationBooking as Tt, placeCountCeiling as U, eventCalendarDefaultViewSchema as Ua, parseBookingCurrencyInputToCents as Ui, summariseSelectionPayment as Un, formatTime$1 as Uo, shownVenue as Ur, nextLiveRunSessionStartMs as Us, roomChoiceMessage as Ut, fullyBookedLabel as V, columnOptionSchema as Va, normalizeBookingFormConfig as Vi, severalItemsOf as Vn, formatEventTimeRange as Vo, registrationDisplaySchema as Vr, formatCreditProductUnits as Vs, isRoomChoiceRefusal as Vt, planRegistrationDetailsCheck as W, eventCalendarDisplayModeSchema as Wa, prepareBookingSubmission as Wi, toggleSelectionItem as Wn, groupEventsByDate as Wo, appliedDiscountHint as Wr, orderedLiveRunSessions as Ws, roomSubmission as Wt, resolveRegistrationTicketContinuation as X, browserReadAuthoritySchema as Xa, resolveLowestBookingPaymentStep as Xi, selectionCombinationHint as Xn, renderAudio as Xo, buildProductListDisplay as Xr, DEFAULT_MAILING_LIST_PRIVACY_NOTE as Xs, getRegistrationStartAt as Xt, resolveRegistrationAvailabilityBlocker as Y, weekStartSchema as Ya, resolveDefaultBookingServiceId as Yi, paymentCaption as Yn, mediaImageHostProps as Yo, buildProductDetailDisplay as Yr, resolveBookingSignupOffer as Ys, resolveFinishedPresentation as Yt, settledRemainingPlaces as Z, createHostedBlockApiConfig as Za, selectedBookingCollectionOptionKind as Zi, selectionItemName as Zn, renderVideo as Zo, formatCommercePrice as Zr, DEFAULT_MAILING_LIST_SUCCESS_MESSAGE as Zs, toRegistrationEvents as Zt, pickCollections as _, BOOKING_FORM_DATA_RESERVED_KEYS as _a, resolveEventRegistrationScopedEvents as _i, SEVERAL_BOOKINGS_ACCOUNT_NOTE as _n, formatTotalCapacity as _o, getSlidingScaleForEvent as _r, plainTextToInlineText as _s, bookingOccurrenceContext as _t, registrationPresentation as a, deriveAppointmentBookingQuestions as aa, EVENT_PRESET_VOCABULARY as ac, buildProductCartItem as ai, buildSelectionRequirementsSubmission as an, bookingPresentation as ao, formatRunScheduleLines as ar, createImageShapeField as as, toHeadlessPaymentSelection as at, selectionPaysNothing as b, bookingHasPackagePaymentChoices as ba, isOrdinaryPublicEvent as bi, effectiveSelection as bn, getRemainingPlaces as bo, parseCurrencyInputToCents as br, parseBlockColorToken as bs, entryPageEvent as bt, registrationStepLabelContext as c, bookingQuestionsAnswerDraftSchema as ca, isPublicEventPricingOptionDisplayable as cc, productItemKey as ci, deriveRunRequirements as cn, eventVenuePlace as co, getPortalSubjectEmail as cr, uiTransforms as cs, calculateEventRegistrationPreviewTotal as ct, decideEventChoice as d, needsBookingQuestionsRefresh as da, publicEventPricingStrategy as dc, closedDatesCopy as di, runsKeepingAnswers as dn, hasEventBookingClosedEarly as do, occurrenceTitleOverride as dr, asPartialObject as ds, paymentChoiceDetails as dt, projectSelectedAppointmentConsentIntoForm as ea, parseMailchimpInterestId as ec, membershipCardListContent as ei, EVENT_SIGN_IN_FORM_ID as en, canonicalUrl as eo, findSelectedTicketType as er, resolveImageUrlWithContext as es, isEventRegistrationAvailable as et, isRegistrationLocked as f, restoreBookingQuestionsAnswers as fa, publicEventPricingType as fc, closedRunCopy as fi, toRunRequirementsSnapshots as fn, isBookableEvent as fo, transformRegistrationOptionsResponse as fr, createTransformRegistry as fs, paymentChoicePrice as ft, paymentOptionFor as g, formatPrice as ga, unsafeAsSiteId as gc, resolveEventRegistrationChoices as gi, SELECTION_LIMIT_NOTE as gn, formatRemainingPlaces as go, getRegistrationOccurrenceId as gr, parseInlineTextFromUnknown as gs, restorableBrowserDraftCode as gt, moneyCollections as h, formatCentsAsCurrencyInput as ha, parseSiteId as hc, normalizeEventRegistrationPageSurfaceSubject as hi, ATTENDANCE_CHOICE_MESSAGE as hn, formatEventRemainingPlaces as ho, getCurrentTicketSelection as hr, isInlineTextEmpty as hs, registrationBrowserDraftSchema as ht, registrationPaymentRoute as i, appointmentQuestionsRefusal as ia, offeringLabelForPageSurfaceSubject as ic, buildPassCartItem as ii, toEventSignInDraft as in, bookingPageKindSchema as io, formatRegistrationSchedule as ir, systemCustomizeFacetDefinitionsForBlock as is, resolveHeadlessEventRegistrationView as it, selectionDatesQuote as j, getBookingServiceSlidingScale as ja, buildBookingFormInteractiveIslandProps as ji, selectionConsentLabel as jn, eventDateOptions as jo, setTicketLineQuantity as jr, eventRegistrationRefusalMessage as js, resolveRegistrationTarget as jt, lookupChosenOption as k, resolveBookingPurchasablePackages as ka, groupPublicEventsByRun as ki, selectionAtLimit as kn, eventCalendarWeekStart as ko, hasValidPricingOptionSelection as kr, eventRegistrationErrorEndsCommand as ks, resolveDiscountContext as kt, areEventRegistrationPaymentSelectionsEqual as l, decideBookingQuestionsRestoration as la, publicEventPricingCurrency as lc, reduceCommerceCart as li, nextRunToRead as ln, formatEventLocation as lo, getTicketTypeAvailabilityLabel as lr, SECTION_STATE_KINDS as ls, buildBookingPaymentSelectionViewModel as lt, collectionsOf as m, toBookingQuestionsPaymentSnapshot as ma, resolvePricingOptionsPriceDisplay as mc, eventRegistrationPageSurfaceSubjectSchema as mi, paymentReturnRestoration as mn, canJoinEventWaitlistOnAnyMode as mo, isEmailAddress as mr, inlineTextToPlainText as ms, registrationBrowserDraft as mt, getEventSelectionMode as n, EMPTY_APPOINTMENT_BOOKING_QUESTIONS as na, EVENT_ADDRESS_AFTER_BOOKING_LABEL as nc, passCardListContent as ni, eventSignInEnds as nn, pageNavigationSchema as no, formatDate as nr, resolvePublicMediaUrl as ns, resolveEventRegistrationSubmitPlan as nt, registrationRoute as o, isAppointmentBookingQuestionsEvent as oa, formatBookingPriceDisplay as oc, deriveCommerceCheckoutState as oi, checkRunRequirements as on, eventOnlinePlace as oo, formatTime as or, heroTitleSizeOptions as os, toInternalPaymentSelection as ot, registrationFlowReducer as p, toBookingQuestionsAnswerDraft as pa, resolveExactOrFreePriceDisplay as pc, closedDateCopy as pi, withoutKeptAnswers as pn, canJoinEventWaitlist as po, withOccurrenceTitle as pr, runTransforms as ps, BROWSER_DRAFT_LIFETIME_MS as pt, resolveGuestNextStepCheck as q, previewStageSchema as qa, resolveBookingSelectedService as qi, combinationOffersOf as qn, MediaPlaceholder as qo, buildPassesMembershipsDisplay as qr, resolveWholeSeriesRunLifecycle as qs, toWaitlistClaimResolveFailure as qt, panelShouldOpen as r, applyAppointmentBookingQuestionsEvent as ra, getBookingInstalmentProtectedDepositAmountCents as rc, EMPTY_COMMERCE_CART_STATE as ri, eventSignInRestoration as rn, requestSignIn as ro, formatEventDateTime as rr, resolveArrangementKnobs as rs, resolveHeadlessEventRegistrationStatus as rt, registrationStepLabel as s, needsAppointmentQuestionsRefresh as sa, formatEventPricing as sc, parseStoredCommerceCartState as si, decideSelectionRequirementsLayout as sn, eventPlaceName as so, getImplicitSingleTicketType as sr, createAspectRatioField as ss, onlineBookingUnavailableMessage as st, REGISTRATION_STEP_LABELS as t, resolveSelectedAppointmentConsent as ta, parseNewsletterListId as tc, membershipClassesLabel as ti, eventSignInDraftStore as tn, leavePage as to, formatBookingWhen as tr, resolveMediaNodeResponsiveImage as ts, normalizeEventRegistrationMaxTickets as tt, createInitialRegistrationFlowState as u, deriveBookingQuestions as ua, publicEventPricingDisplay as uc, resolveSelectedProduct as ui, runFieldErrors as un, resolveRuntimeEventDestination as uo, getVisibleTicketTypes as ur, sectionStateToneFromKind as us, buildReviewedBookingPaymentViewModel as ut, runsSelectionPaymentRequest as v, BOOKING_FORM_DATA_RESERVED_KEY_VALUES as va, eventOccurrenceContext as vi, attendanceChoicePending as vn, getEventAvailability as vo, getSlidingScaleSelectionMessage as vr, generateLookMediaFrameCss as vs, decideRegistrationEntry as vt, fundingChoice as w, resolveBookingPackagePaymentSelection as wa, planWholeSeriesParentSelection as wi, quoteReductions as wn, BLOCK_BUTTON_ROLE_OPTIONS as wo, canRequestTicketOption as wr, parseAspectRatioValue as ws, invitationSubmission as wt, cardStepServesDates as x, bookingPackageRequestKey as xa, planDropInPanel as xi, incompleteRunChoiceMessage as xn, isEventFull as xo, resolveHeldTicketPlaces as xr, readRuntimeNow as xs, entrySelectionMode as xt, selectionItemLabels as y, applyBookingPaymentAdmission as ya, getPublicEventCanonicalPath as yi, canToggleSelectionItem as yn, getEventAvailabilityStatus as yo, getTicketSelectionRemainingPlaces as yr, resolveLookMediaFrame as ys, entryChoosesEvent as yt, shouldPromptForLogin as z, bookingNowSchema as za, isBookingServiceSlidingAmountInRange as zi, selectionTicketInputs as zn, formatEventNextDateFact as zo, sweepExpiredSignInReturnDrafts as zr, formatCreditProductBalance as zs, decideRoomStay as zt };
|
|
14140
|
+
export { deriveEventRegistrationSteps as $, weekStartSchema as $a, resolveDefaultBookingServiceId as $i, serverPricedTotalCents as $n, groupEventsByDate as $o, formatValidity as $r, resolveWholeSeriesBookingPhase as $s, toWholeSeriesRegistrationEvents as $t, ownCoverPaysEveryDate as A, resolveBookingPaymentAvailability as Aa, registrationDataForEventSelection as Ai, selectionConfirmationHint as An, isEventFull as Ao, normalizeTicketSelectionLines as Ar, readRuntimeNow as As, resolveEventRequiresPayment as At, closedAdmissionLabel as B, defineClientOwnedBlockRuntime as Ba, getBookingSuccessCopy as Bi, severalConfirmationSentence as Bn, eventDateOptions as Bo, placesLeftLabel as Br, eventRegistrationRefusalMessage as Bs, defaultTicketOptions as Bt, currentSelectionFundingLookup as C, applyBookingPaymentAdmission as Ca, parseSiteId as Cc, isDropInPublicEvent as Ci, primarySelectionItem as Cn, canJoinEventWaitlistOnAnyMode as Co, withRegistrationAvailability as Cr, inlineTextToPlainText as Cs, beginWaitlistInvitation as Ct, fundingOptionPick as D, reconcileBookingPackagePurchase as Da, planWholeSeriesParentBooking as Di, runPricingChoice as Dn, getEventAvailability as Do, getTicketSelectionTotal as Dr, generateLookMediaFrameCss as Ds, buildRegistrationSelectionRequest as Dt, fundingOptionKey as E, bookingRequiresResourceSelection as Ea, planOrdinarySeriesSelection as Ei, runNeedsPricingChoice as En, formatTotalCapacity as Eo, getTicketLineQuantity as Er, plainTextToInlineText as Es, withOfferedEvent as Et, selectionFundingRequest as F, getBookingServiceSlidingScale as Fa, buildBookingFormInteractiveIslandProps as Fi, selectionItemsLabel as Fn, isBlockButtonRole as Fo, decideSignInReturn as Fr, INCOMPATIBLE_ATTENDANCE_MESSAGE as Fs, validateFormData as Ft, planRegistrationDetailsContinuation as G, columnOptionSchema as Ga, normalizeBookingFormConfig as Gi, combinationHintCopy as Gn, formatEventCompactDateRail as Go, buildCartDisplay as Gr, repriceBookingCollectionOptions as Gs, selectRoomOffer as Gt, getTicketSelectionPurpose as H, isDecodeSuccess as Ha, getShopSuccessCopy as Hi, severalRunsChoiceMessage as Hn, formatCalendarTitle as Ho, resolveRegistrationDisplay as Hr, planCheckoutPaymentFlow as Hs, presentRoomChooser as Ht, buildEventRegistrationPaymentOptionsViewModel as I, buildInteractiveIslandProps as Ia, readOverrideServiceCategories as Ii, selectionPlacesLabel as In, RichText as Io, nextSignInReturnExpiry as Ir, decideSelectionAttendance as Is, ADD_A_PLACE as It, resolveRegistrationAdmission as J, eventCalendarDisplayModeSchema as Ja, prepareBookingSubmission as Ji, combinationWorking as Jn, formatEventNextDateFact as Jo, buildProductCardDisplay as Jr, formatCreditProductPayment as Js, confirmationPaymentRows as Jt, registrationStopsHere as K, eventButtonVariantSchema as Ka, normalizeBookingServices as Ki, combinationOfferLine as Kn, formatEventDateParts as Ko, buildCheckoutDisplay as Kr, getStripeMinimumChargeRequirement as Ks, isSameWaitlistClaim as Kt, buildSelectionCollectionOptions as L, createInteractiveIslandCodec as La, deriveBookingFormViewState as Li, selectionPlacesNote as Ln, buildCalendarViewport as Lo, readSignInReturn as Lr, setRoomChoicePeople as Ls, bookingLines as Lt, selectionFundingBasis as M, resolveBookingPaymentMode as Ma, selectionRepresentativeEvent as Mi, selectionEntitlementNote as Mn, selectMostOpenCapacitySource as Mo, BOOKING_SIGN_IN_RETURN_PARAM as Mr, sanitizeHref as Ms, resolveRouteRequiresPayment as Mt, selectionFundingFetchWanted as N, resolveBookingPurchasablePackages as Na, groupPublicEventsByRun as Ni, selectionIncludes as Nn, BLOCK_BUTTON_ROLE_OPTIONS as No, clearSignInReturnDrafts as Nr, parseAspectRatioValue as Ns, toRegistrationRequestSubject as Nt, initialSelectionFundingLookup as O, resolveBookingPackagePaymentSelection as Oa, planWholeSeriesParentSelection as Oi, runUnitPriceCents as On, getEventAvailabilityStatus as Oo, getTicketTypeLineMax as Or, resolveLookMediaFrame as Os, findPreSelectedEvent as Ot, selectionFundingReducer as P, toBookingPurchasablePackages as Pa, bookingFormInteractiveIslandPropsCodec as Pi, selectionItemPrice as Pn, blockButtonRoleSchema as Po, createSignInReturnDraftStore as Pr, isRecord$3 as Ps, registrationQuestionsMessage as Pt, visitorHoldsOwnPlace as Q, registrationButtonVariantSchema as Qa, resolveBookingSiteId as Qi, selectionPreviewLines as Qn, formatTime$1 as Qo, formatInterval as Qr, orderedLiveRunSessions as Qs, toWholeSeriesRegistrationEvent as Qt, decideEventRegistrationPayment as R, defineInteractiveIslandMetaKeys as Ra, formatBookingSubmissionPreparationError as Ri, selectionRowAvailability as Rn, eventCalendarWeekStart as Ro, signInReturnPath as Rr, eventRegistrationErrorEndsCommand as Rs, dayOptionsOf as Rt, chosenFundingOption as S, BOOKING_FORM_DATA_RESERVED_KEY_VALUES as Sa, resolvePricingOptionsPriceDisplay as Sc, getPublicEventCanonicalPath as Si, planSelectionPrice as Sn, canJoinEventWaitlist as So, shouldLoadRegistrationOptions as Sr, runTransforms as Ss, entryStart as St, fundingMoneyDates as T, bookingPackageRequestKey as Ta, planDropInPanel as Ti, runChoiceUsable as Tn, formatRemainingPlaces as To, getSingleSelectedPricingOptionId as Tr, parseInlineTextFromUnknown as Ts, invitationBooking as Tt, placeCountCeiling as U, bookingNowSchema as Ua, isBookingServiceSlidingAmountInRange as Ui, summariseSelectionPayment as Un, formatDate$1 as Uo, shownVenue as Ur, bookingCollectionDatesOpen as Us, roomChoiceMessage as Ut, fullyBookedLabel as V, defineProgressiveBlockRuntime as Va, getRegistrationSuccessCopy as Vi, severalItemsOf as Vn, eventLocalDateKey as Vo, registrationDisplaySchema as Vr, parseEventRegistrationErrorReason as Vs, isRoomChoiceRefusal as Vt, planRegistrationDetailsCheck as W, calendarTabViewsSchema as Wa, isSameOpenCheckout as Wi, toggleSelectionItem as Wn, formatEventClockLabel as Wo, appliedDiscountHint as Wr, flexibleBalanceDueDay as Ws, roomSubmission as Wt, resolveRegistrationTicketContinuation as X, filterAutoShowSchema as Xa, resolveBookingPaymentStep as Xi, selectionCombinationHint as Xn, formatEventTimeRange as Xo, buildProductListDisplay as Xr, CANCELLED_SESSION_STATUS as Xs, getRegistrationStartAt as Xt, resolveRegistrationAvailabilityBlocker as Y, eventLayoutSchema as Ya, resolveAppointmentCheckoutVerificationState as Yi, paymentCaption as Yn, formatEventRunDates as Yo, buildProductDetailDisplay as Yr, formatCreditProductUnits as Ys, resolveFinishedPresentation as Yt, settledRemainingPlaces as Z, previewStageSchema as Za, resolveBookingSelectedService as Zi, selectionItemName as Zn, formatEventWeekdayTime as Zo, formatCommercePrice as Zr, nextLiveRunSessionStartMs as Zs, toRegistrationEvents as Zt, pickCollections as _, toBookingQuestionsAnswerDraft as _a, publicEventPricingCurrency as _c, eventRegistrationPageSurfaceSubjectSchema as _i, SEVERAL_BOOKINGS_ACCOUNT_NOTE as _n, resolveEventCta as _o, getSlidingScaleForEvent as _r, uiTransforms as _s, bookingOccurrenceContext as _t, registrationPresentation as a, resolveSelectedAppointmentConsent as aa, DEFAULT_MAILING_LIST_SUCCESS_MESSAGE as ac, buildProductCartItem as ai, buildSelectionRequirementsSubmission as an, leavePage as ao, formatRunScheduleLines as ar, renderAudio as as, toHeadlessPaymentSelection as at, selectionPaysNothing as b, formatPrice as ba, publicEventPricingType as bc, resolveEventRegistrationScopedEvents as bi, effectiveSelection as bn, isBookableEvent as bo, parseCurrencyInputToCents as br, asPartialObject as bs, entryPageEvent as bt, registrationStepLabelContext as c, appointmentQuestionsRefusal as ca, parseMailchimpInterestId as cc, productItemKey as ci, deriveRunRequirements as cn, bookingPageKindSchema as co, getPortalSubjectEmail as cr, resolveImageUrl as cs, calculateEventRegistrationPreviewTotal as ct, decideEventChoice as d, needsAppointmentQuestionsRefresh as da, getBookingInstalmentProtectedDepositAmountCents as dc, closedDateListCopy as di, runsKeepingAnswers as dn, eventPlaceName as do, occurrenceTitleOverride as dr, resolvePublicMediaUrl as ds, paymentChoiceDetails as dt, resolveLowestBookingPaymentStep as ea, resolveWholeSeriesPaymentDates as ec, membershipCardListContent as ei, EVENT_SIGN_IN_FORM_ID as en, browserReadAuthoritySchema as eo, findSelectedTicketType as er, resolveEventTimeZone as es, isEventRegistrationAvailable as et, isRegistrationLocked as f, bookingQuestionsAnswerDraftSchema as fa, offeringLabelForPageSurfaceSubject as fc, closedDatesCopy as fi, toRunRequirementsSnapshots as fn, eventVenuePlace as fo, transformRegistrationOptionsResponse as fr, resolveArrangementKnobs as fs, paymentChoicePrice as ft, paymentOptionFor as g, restoreBookingQuestionsAnswers as ga, isPublicEventPricingOptionDisplayable as gc, cutOffDateCopy as gi, SELECTION_LIMIT_NOTE as gn, resolveEventCardBooking as go, getRegistrationOccurrenceId as gr, createAspectRatioField as gs, restorableBrowserDraftCode as gt, moneyCollections as h, needsBookingQuestionsRefresh as ha, formatEventPricing as hc, closedDateCopy as hi, ATTENDANCE_CHOICE_MESSAGE as hn, eventDestinationPagePath as ho, getCurrentTicketSelection as hr, heroTitleSizeOptions as hs, registrationBrowserDraftSchema as ht, registrationPaymentRoute as i, projectSelectedAppointmentConsentIntoForm as ia, DEFAULT_MAILING_LIST_PRIVACY_NOTE as ic, buildPassCartItem as ii, toEventSignInDraft as in, canonicalUrl as io, formatRegistrationSchedule as ir, mediaImageHostProps as is, resolveHeadlessEventRegistrationView as it, selectionDatesQuote as j, resolveBookingPaymentChoice as ja, resolveSelectionBookingClosedDetail as ji, selectionConsentLabel as jn, selectEventCapacitySource as jo, setTicketLineQuantity as jr, resolveDateRuntimeContext as js, resolveRegistrationTarget as jt, lookupChosenOption as k, resolveBookingPackageSources as ka, planWholeSeriesRunSelection as ki, selectionAtLimit as kn, getRemainingPlaces as ko, hasValidPricingOptionSelection as kr, parseBlockColorToken as ks, resolveDiscountContext as kt, areEventRegistrationPaymentSelectionsEqual as l, deriveAppointmentBookingQuestions as la, parseNewsletterListId as lc, reduceCommerceCart as li, nextRunToRead as ln, bookingPresentation as lo, getTicketTypeAvailabilityLabel as lr, resolveImageUrlWithContext as ls, buildBookingPaymentSelectionViewModel as lt, collectionsOf as m, deriveBookingQuestions as ma, formatBookingPriceDisplay as mc, bookElsewhereDateCopy as mi, paymentReturnRestoration as mn, eventDestinationBookingLink as mo, isEmailAddress as mr, createImageShapeField as ms, registrationBrowserDraft as mt, getEventSelectionMode as n, snapshotBookingShownTerms as na, parseMailingListRuntimeContext as nc, passCardListContent as ni, eventSignInEnds as nn, getBlockApiReadStage as no, formatDate as nr, MediaPlaceholder as ns, resolveEventRegistrationSubmitPlan as nt, registrationRoute as o, EMPTY_APPOINTMENT_BOOKING_QUESTIONS as oa, parseBrevoListId as oc, deriveCommerceCheckoutState as oi, checkRunRequirements as on, pageNavigationSchema as oo, formatTime as or, renderVideo as os, toInternalPaymentSelection as ot, registrationFlowReducer as p, decideBookingQuestionsRestoration as pa, EVENT_PRESET_VOCABULARY as pc, closedRunCopy as pi, withoutKeptAnswers as pn, formatEventLocation as po, withOccurrenceTitle as pr, systemCustomizeFacetDefinitionsForBlock as ps, BROWSER_DRAFT_LIFETIME_MS as pt, resolveGuestNextStepCheck as q, eventCalendarDefaultViewSchema as qa, parseBookingCurrencyInputToCents as qi, combinationOffersOf as qn, formatEventHourLabel as qo, buildPassesMembershipsDisplay as qr, formatCreditProductBalance as qs, toWaitlistClaimResolveFailure as qt, panelShouldOpen as r, toSelectedCollectionOptionKind as ra, resolveBookingSignupOffer as rc, EMPTY_COMMERCE_CART_STATE as ri, eventSignInRestoration as rn, PAGE_NAVIGATION as ro, formatEventDateTime as rr, computeMediaTransformStyle as rs, resolveHeadlessEventRegistrationStatus as rt, registrationStepLabel as s, applyAppointmentBookingQuestionsEvent as sa, parseMailchimpAudienceId as sc, parseStoredCommerceCartState as si, decideSelectionRequirementsLayout as sn, requestSignIn as so, getImplicitSingleTicketType as sr, resolveImageSourceSetWithContext as ss, onlineBookingUnavailableMessage as st, REGISTRATION_STEP_LABELS as t, selectedBookingCollectionOptionKind as ta, resolveWholeSeriesRunLifecycle as tc, membershipClassesLabel as ti, eventSignInDraftStore as tn, createHostedBlockApiConfig as to, formatBookingWhen as tr, ImagePresets as ts, normalizeEventRegistrationMaxTickets as tt, createInitialRegistrationFlowState as u, isAppointmentBookingQuestionsEvent as ua, EVENT_ADDRESS_AFTER_BOOKING_LABEL as uc, resolveSelectedProduct as ui, runFieldErrors as un, eventOnlinePlace as uo, getVisibleTicketTypes as ur, resolveMediaNodeResponsiveImage as us, buildReviewedBookingPaymentViewModel as ut, runsSelectionPaymentRequest as v, toBookingQuestionsPaymentSnapshot as va, publicEventPricingDisplay as vc, normalizeEventRegistrationPageSurfaceSubject as vi, attendanceChoicePending as vn, resolveEventPageLink as vo, getSlidingScaleSelectionMessage as vr, SECTION_STATE_KINDS as vs, decideRegistrationEntry as vt, fundingChoice as w, bookingHasPackagePaymentChoices as wa, unsafeAsSiteId as wc, isOrdinaryPublicEvent as wi, quoteReductions as wn, formatEventRemainingPlaces as wo, canRequestTicketOption as wr, isInlineTextEmpty as ws, invitationSubmission as wt, cardStepServesDates as x, BOOKING_FORM_DATA_RESERVED_KEYS as xa, resolveExactOrFreePriceDisplay as xc, eventOccurrenceContext as xi, incompleteRunChoiceMessage as xn, isInBookingCutOffWindow as xo, resolveHeldTicketPlaces as xr, createTransformRegistry as xs, entrySelectionMode as xt, selectionItemLabels as y, formatCentsAsCurrencyInput as ya, publicEventPricingStrategy as yc, resolveEventRegistrationChoices as yi, canToggleSelectionItem as yn, resolveRuntimeEventDestination as yo, getTicketSelectionRemainingPlaces as yr, sectionStateToneFromKind as ys, entryChoosesEvent as yt, shouldPromptForLogin as z, createZodCodec as za, getBookingRedirectStateFromLocation as zi, selectionTicketInputs as zn, eventDateLocale as zo, sweepExpiredSignInReturnDrafts as zr, eventRegistrationErrors as zs, decideRoomStay as zt };
|
package/dist/preview-next/client/{PageSectionToolbar-BhL0uADo.mjs → PageSectionToolbar-BI3UCdpu.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-CE6sIgz8.mjs";
|
|
3
|
-
import { $
|
|
3
|
+
import { $l as getDirectImageUrlForMediaAsset, Ac as __awaiter, Ai as resolveMediaStorageUrl, Co as replaceInlineTextRange, Dc as usePortalContainer, Di as computeMediaTransformStyle, E as selectedImageFromRenderableAsset, Ei as getRichTextImageSize, F as lookTilePosition, Fc as __spreadArray, Ic as __spreadArrays, Jc as useSize, Jl as isRotationDimensionSwap, L as nextLookTilePin, Mc as __generator, Nc as __read, P as lookPositionLabel, Pc as __rest, Ql as resolveMediaTransformForAspect, S as pageDesignLookPosition, So as removeInlineTextMarkFromRange, T as selectedImageFromMediaValue, Xl as formatAspectRatioToken, Xs as selectedCanvasBlockId, Yl as normalizeRightAngle, Ys as unwrapResponse, Zl as parseAspectRatioValue, Zo as getCuratedSiteStyle, _c as DialogOverlay, _d as unsafeAsPositiveByteCount, _u as generateUuidV4, ad as unsafeAsEditorBlockId, al as composeEventHandlers, bn as useEditorUiStore, cl as Button, cu as mediaIdentifierSchema, dl as cva, ds as getGradientPreset, ec as Callout, eu as getImageUrl, fc as overlayScrimClass, gc as DialogDescription, gd as unsafeAsMediaAssetId, gl as cn$2, go as inlineTextToPlainText, gu as authoredValuesEqual, hc as DialogContent, hl as useComposedRefs, ho as inlineTextHighlightTones, i as usePreviewSidebarNavigation, ic as Dialog, ii as getBlockDefinition, il as createContextScope, j as usePreviewRenderBackgrounds, jc as __extends, ji as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, kc as __assign, ki as resolveImageUrlWithContext, lc as DialogHeader, ls as gradientToCss, mc as DialogClose, md as assertNever, mo as inlineTextEqual, mu as asLayoutVariantKey, nl as useControllableState, o as usePreviewPageDesignEditorState, oc as DialogContent$1, ol as Primitive, on as getDashboardBaseUrl, ou as resolveManagedMediaReference, po as inlineTextAccentTones, rc as Spinner, ro as richTextVariantCapabilities, rr as defaultBackgroundOverrideForMode, sc as DialogDescription$1, ta as readThemeScopeContext, to as RichTextDocSchema, tr as backgroundColorTokens, uc as DialogTitle$1, ul as useControlReadiness, uo as applyInlineTextMarkToRange, ur as rankBackgroundImagePoolItems, vc as DialogPortal, vo as normalizeInlineText, wo as truncateInlineText, x as cyclePageDesignBlockLook, xn as useEditorUiStoreInstance, xo as plainTextToInlineText, xs as assertNever$1, yc as DialogTitle, yo as normalizeInlineTextMarks, zl as surfaceForegroundValue } from "./previewAssistantSlot-BgiYk3PB.mjs";
|
|
4
4
|
import { A as List, F as Info, G as FileSpreadsheet, I as Image, J as FileArchive, K as FilePlay, Kt as err, L as ImageUp, M as Link$1, P as Italic$1, S as Palette, U as File, V as Highlighter, W as FileText, X as EyeOff, _t as Bold$1, a as Upload, c as Trash2, et as Crop, j as ListOrdered, n as X, pt as Check, q as FileHeadphone, qt as ok, s as TriangleAlert, xt as Archive, y as Pencil } from "./lucide-react-00FF_oar.mjs";
|
|
5
|
-
import { At as useFieldDescribedBy, Dt as Input, E as usePreviewCompiledThemeOptional, G as TransferError, H as useMediaEditor, L as siteColourCss, S as planBlockToolbarPlacement, St as usePrevious, U as useMediaEditorOptional, W as useApiMediaUploader, _ as PreviewChromeFloatingControl, _t as Select, b as measureSiteTopChromeClearance, bt as SelectTrigger, ct as EditorCanvasChoiceChip, dt as EditorInsertionMarker, ft as EditorSelectionFrame, h as CustomizeBackgroundColorPicker, lt as EditorCanvasCycleChip, pt as CHOSEN_OPTION_CLASS, st as EditorCanvasChipRow, ut as EditorCanvasNameChip, vt as SelectContent, xt as SelectValue, y as readThemeCustomProperties, yt as SelectItem, zt as classifyKnownMimeType } from "./siteStyleAccess-
|
|
6
|
-
import { A as Tooltip, F as DropdownMenu, H as DropdownMenuTrigger, I as DropdownMenuContent, L as DropdownMenuItem, M as TooltipProvider, N as TooltipTrigger, P as Badge, a as blockNoticeAction, d as arrangementBackgroundControlFor, f as arrangementBlockControlsFor, j as TooltipContent, o as blockNoticeLabel, r as useBlockCustomizeControls, s as blockNoticeMessage, t as useOpenBlockForSetup, u as useBlockNotice } from "./useOpenBlockForSetup-
|
|
5
|
+
import { At as useFieldDescribedBy, Dt as Input, E as usePreviewCompiledThemeOptional, G as TransferError, H as useMediaEditor, L as siteColourCss, S as planBlockToolbarPlacement, St as usePrevious, U as useMediaEditorOptional, W as useApiMediaUploader, _ as PreviewChromeFloatingControl, _t as Select, b as measureSiteTopChromeClearance, bt as SelectTrigger, ct as EditorCanvasChoiceChip, dt as EditorInsertionMarker, ft as EditorSelectionFrame, h as CustomizeBackgroundColorPicker, lt as EditorCanvasCycleChip, pt as CHOSEN_OPTION_CLASS, st as EditorCanvasChipRow, ut as EditorCanvasNameChip, vt as SelectContent, xt as SelectValue, y as readThemeCustomProperties, yt as SelectItem, zt as classifyKnownMimeType } from "./siteStyleAccess-BlN0jt2c.mjs";
|
|
6
|
+
import { A as Tooltip, F as DropdownMenu, H as DropdownMenuTrigger, I as DropdownMenuContent, L as DropdownMenuItem, M as TooltipProvider, N as TooltipTrigger, P as Badge, a as blockNoticeAction, d as arrangementBackgroundControlFor, f as arrangementBlockControlsFor, j as TooltipContent, o as blockNoticeLabel, r as useBlockCustomizeControls, s as blockNoticeMessage, t as useOpenBlockForSetup, u as useBlockNotice } from "./useOpenBlockForSetup-BVfr5P--.mjs";
|
|
7
7
|
import * as React$1 from "react";
|
|
8
8
|
import React, { Component, createContext, createRef, forwardRef, useCallback, useContext, useDebugValue, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|