@riverbankcms/sdk 0.158.0 → 0.159.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/README.md +21 -2
- package/dist/_dts/{BlocksIslandsHydrator-BgNBtEai.d.ts → BlocksIslandsHydrator-Cj1i1Yhh.d.ts} +1 -1
- package/dist/_dts/{Page-DpCo8zXD.d.ts → Page-Cgzbv22M.d.ts} +6 -6
- package/dist/_dts/{SdkPreviewMode-Bv2TMscG.d.ts → SdkPreviewMode-BC_FGc6b.d.ts} +2 -2
- package/dist/_dts/{client-B960v2gW.d.ts → client-BOK-YHVJ.d.ts} +23 -1
- package/dist/_dts/{content-types-CN0Wy8V6.d.ts → content-types-CsrYWxq_.d.ts} +2 -2
- package/dist/_dts/{contracts-BFUrby76.d.ts → contracts-ClgMD-9g.d.ts} +4 -4
- package/dist/_dts/{footerPageOutline-CmoqleLS.d.ts → footerPageOutline-C_IDuELl.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-Dkvivc3R.d.ts → generatePageMetadata-B7bhYSWx.d.ts} +5 -2
- package/dist/_dts/{hosted-booking-appearance-BIbit60h.d.ts → hosted-booking-appearance-ChGCQYdQ.d.ts} +15 -7
- package/dist/_dts/{index-Ba6RmuxX.d.ts → index-BZ4fb2zz.d.ts} +3 -3
- package/dist/_dts/{index-DCNu_8it.d.ts → index-CcaG6O13.d.ts} +4 -4
- package/dist/_dts/{index-DfkFWUxt.d.ts → index-Ci1PEk82.d.ts} +1 -1
- package/dist/_dts/{index-DaS_z6ir.d.ts → index-DMOfW1A7.d.ts} +1 -1
- package/dist/_dts/{index-DpgkhY-a.d.ts → index-Dt3XSGzY.d.ts} +2 -2
- package/dist/_dts/{index-DPfI2t5A.d.ts → index-DzUdUaJ-.d.ts} +2 -2
- package/dist/_dts/{loadContent-DvvKF4nB.d.ts → loadContent-C1JI2pG0.d.ts} +7 -7
- package/dist/_dts/{navigation-n-eTVTIQ.d.ts → navigation-BnV_hOZy.d.ts} +20 -19
- package/dist/_dts/{resolvePageContent-D0lGwVD6.d.ts → resolvePageContent-BtRUtrJa.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 +6 -6
- 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/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 +8 -2
- 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/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/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-BY7PgnDi.d.ts → types--oWXIfyz.d.ts} +7 -7
- package/dist/_dts/{types-BJrRUaY7.d.ts → types-CI9dYWJ8.d.ts} +2 -2
- package/dist/_dts/{types-maEnXL6Z.d.ts → types-CMFIZGUI.d.ts} +3 -3
- package/dist/_dts/{validation-BjuVrMrs.d.ts → validation-Ct-GL0eA.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-WRLS96Ev.mjs → BlocksIslandsHydrator-DKS8Ba30.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-eovghMPa.mjs → BookingMailingListNote-Cg9v6d7Y.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-CIcMQRc1.mjs → CalendarNavigationChevron-BoVCTUXy.mjs} +5 -5
- package/dist/client/{DemoBookingPortalAccess-CdnFgDyQ.mjs → DemoBookingPortalAccess-BxRVCJG3.mjs} +3 -3
- package/dist/client/{EventCalendar.client-Dc-ZLxKo.mjs → EventCalendar.client-BI-kvwXf.mjs} +8 -8
- package/dist/client/{EventCombined.client-C93XqRIv.mjs → EventCombined.client-DIvnoN5l.mjs} +6 -6
- package/dist/client/{EventItem-DnCTygqk.mjs → EventItem-BRMtEaa6.mjs} +3 -3
- package/dist/client/{EventListWeekNavigation-9h97heuQ.mjs → EventListWeekNavigation-B8DzAUDa.mjs} +1 -1
- package/dist/client/{EventListing.client-DFKlQvvs.mjs → EventListing.client-Bo4qzQi0.mjs} +3 -3
- package/dist/client/{EventListing.view-pAuTDyrP.mjs → EventListing.view-D2vemnCx.mjs} +4 -4
- package/dist/client/{EventRegistrationPayment-rgKlBvhP.mjs → EventRegistrationPayment-e5XWtygG.mjs} +120 -88
- package/dist/client/{LeafletStaticMap-3XiWSgy0.mjs → LeafletStaticMap-dlapZ6mi.mjs} +1 -1
- package/dist/client/{Page-BmpeAwID.mjs → Page-Dqpv9Ggi.mjs} +16 -13
- package/dist/client/{StepIndicator-qEq6X5zP.mjs → StepIndicator-BrvKa_8H.mjs} +2 -2
- package/dist/client/{accordion-DeObOasQ.mjs → accordion-ByLpb4Dz.mjs} +1 -1
- package/dist/client/{booking-form.client-DfWeF0lj.mjs → booking-form.client-BLndwxpx.mjs} +9 -9
- package/dist/client/{bookingForm-TnzIBHx2.mjs → bookingForm-CTxTEgHX.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{carousel-kkFnbr5Z.mjs → carousel-C8ef0vnT.mjs} +1 -1
- package/dist/client/{cart-BAXNbFux.mjs → cart-BpH6jkUO.mjs} +3 -3
- package/dist/client/{cart.client-BczxUF70.mjs → cart.client-DV78Td13.mjs} +1 -1
- package/dist/client/{checkout-C5NRhPeP.mjs → checkout-BJVb2RpL.mjs} +3 -3
- package/dist/client/{checkout.client-BuDk3Td9.mjs → checkout.client-CqGPXPSm.mjs} +1 -1
- package/dist/client/client.mjs +2 -2
- package/dist/client/{context-CVsgML69.mjs → context-BRgBWthI.mjs} +1 -1
- package/dist/client/{cta-BWnUuJce.mjs → cta-D8ucLsvX.mjs} +1 -1
- package/dist/client/dateFormatting-LeKNQ-iX.mjs +61 -0
- package/dist/client/{demoPortalMagicLink-CUlwvmxf.mjs → demoPortalMagicLink-CjstiFPh.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-Cw8nnFj-.mjs → enhanceHeaderSection-BaQJyI9x.mjs} +2 -2
- package/dist/client/{event-details.client-Bl0E_6Vi.mjs → event-details.client-CYNQYOsP.mjs} +2 -2
- package/dist/client/{event-registration.client-DmfLg_LC.mjs → event-registration.client-DDqSpN36.mjs} +31 -17
- package/dist/client/{eventCalendar-D1Dwb9VA.mjs → eventCalendar-3vQtuC9X.mjs} +4 -4
- package/dist/client/{eventCombined-DfsqY1qR.mjs → eventCombined-CEJFMjqV.mjs} +4 -4
- package/dist/client/{eventDetails-BmugDVoa.mjs → eventDetails-nGh47jef.mjs} +2 -2
- package/dist/client/{eventListing-BPAGJi3C.mjs → eventListing-BL3Ptb83.mjs} +4 -4
- package/dist/client/{eventRegistration-DBlz_x6u.mjs → eventRegistration-DDSO6KB2.mjs} +4 -4
- package/dist/client/{form-DVu3ZMjx.mjs → form-DjNLfy2Z.mjs} +3 -3
- package/dist/client/{form.client-QZUyABIY.mjs → form.client-Cj0By6ot.mjs} +3 -3
- package/dist/client/{form.parts-Bs0F3v08.mjs → form.parts-DyA9C5Hy.mjs} +1 -1
- package/dist/client/{formatDate-BD9D3dgo.mjs → formatDate-CZo0MPTA.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-BQwWW4Yy.mjs → headerSection-JjSq6Mzp.mjs} +2 -2
- package/dist/client/{location-map.client-upKuwABk.mjs → location-map.client-DRN1JePj.mjs} +2 -2
- package/dist/client/{location-map.view-RuBCD10O.mjs → location-map.view-CuCvQdvp.mjs} +2 -2
- package/dist/client/{locationMap-1sCbsk0V.mjs → locationMap-B9srHHzZ.mjs} +2 -2
- package/dist/client/{newsletter-form.client-DBTU3oNv.mjs → newsletter-form.client-C2EgEBP1.mjs} +4 -4
- package/dist/client/{newsletter-form.parts-C9I9JBhe.mjs → newsletter-form.parts-CaldoFmi.mjs} +1 -1
- package/dist/client/{newsletterForm-DTPtTxxG.mjs → newsletterForm-hm7L17LM.mjs} +3 -3
- package/dist/client/{noop-DMFt3KdC.mjs → noop-M8FTSgm2.mjs} +2 -2
- package/dist/client/portal/client.mjs +10 -67
- package/dist/client/{product-detail.client-BX7M5o6p.mjs → product-detail.client-y86uwzEI.mjs} +1 -1
- package/dist/client/{product-list.client-i32QNY4c.mjs → product-list.client-_JBndYZT.mjs} +1 -1
- package/dist/client/{productDetail-DWjE9zm7.mjs → productDetail-D-9fb2cW.mjs} +3 -3
- package/dist/client/{productList-DZH9_brv.mjs → productList-BSRlnwBW.mjs} +3 -3
- package/dist/client/{propsDecoder-CTzHkEkh.mjs → propsDecoder-DhbGL302.mjs} +3 -3
- package/dist/client/{registry.server-vJ5FlscU.mjs → registry.server-BaX0hxf5.mjs} +83 -63
- package/dist/client/rendering/client.mjs +23 -23
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +4 -4
- package/dist/client/{richText-coerce-DXAmC72p.mjs → richText-coerce-Cny2Ukb6.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CmC7ygin.mjs → routeIslandApiConfig-96er7pIx.mjs} +1 -1
- package/dist/client/{shop-C7eL3B37.mjs → shop-CnIJfdZA.mjs} +3 -3
- package/dist/client/{shop-commerce-D8oRN0QJ.mjs → shop-commerce-CsLwzq5O.mjs} +9 -9
- package/dist/client/{shop-commerce-store-CRnQ4M18.mjs → shop-commerce-store--O8GRBwr.mjs} +1 -1
- package/dist/client/{shop.client-X6d6KVmA.mjs → shop.client-BcaJ-acA.mjs} +11 -10
- package/dist/client/{shop.interactive-DBMeM8VD.mjs → shop.interactive-BxL_bshW.mjs} +37 -3
- package/dist/client/{shopShared-Y182kN_s.mjs → shopShared-VZjPOfCX.mjs} +2 -2
- package/dist/client/{timetableModel-D7PwpaBY.mjs → timetableModel-D09jPdue.mjs} +5 -5
- package/dist/client/{useAvailableSlots-BDV6MHgJ.mjs → useAvailableSlots-pTXuY3jV.mjs} +2 -2
- package/dist/client/{useBookingNowIso-DgJEv3ZY.mjs → useBookingNowIso-D14J-EhJ.mjs} +1 -1
- package/dist/client/{useDiscountApply-BTu9EeT7.mjs → useDiscountApply-o5sIVZ2u.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-BfZxdxI-.mjs → useDiscountCodeUi-DJhFP_rg.mjs} +1 -1
- package/dist/client/{useEventPagination-pnvdHGeQ.mjs → useEventPagination-DMmNf2FP.mjs} +6 -6
- package/dist/client/{view-hJr_L4QC2.mjs → view-BgPql2yH2.mjs} +3 -3
- package/dist/client/{view-BPEa6Okm.mjs → view-D1R3Lk05.mjs} +13 -69
- package/dist/client/{wizardSteps-HdyGoIG3.mjs → wizardSteps-C0TsNqJc.mjs} +102 -37
- package/dist/preview-next/client/{PreviewEditorSidebar-CXRUbqMp.mjs → PreviewEditorSidebar-DADCj_ET.mjs} +67 -67
- package/dist/preview-next/client/{PreviewEditorUI-CxjEV0Fm.mjs → PreviewEditorUI-La40Dmmh.mjs} +3 -3
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BxI12BBS.mjs → SdkPreviewModeRuntime-406Hw9zY.mjs} +130 -130
- package/dist/preview-next/client/{SdkPreviewModeRuntime-XdQSGGj_.mjs → SdkPreviewModeRuntime-CWN44I_B.mjs} +1 -1
- package/dist/preview-next/client/{SiteChromeCustomizeContext-CfRQRwpH.mjs → SiteChromeCustomizeContext-BdwEZoo9.mjs} +111593 -111244
- package/dist/preview-next/client/{previewChromeSurface-CH7hd5n7.mjs → previewChromeSurface-BVUKIYG0.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-C6xEU1LI.mjs → sdk-runtime-Cy9AKPy5.mjs} +1 -1
- package/dist/preview-next/client/{siteStyleAccess-CRXaC2oL.mjs → siteStyleAccess-CFMmoMZb.mjs} +1 -1
- package/dist/preview-next/client/{spinner-BTf1CZmy.mjs → spinner-Bhpzz2vO.mjs} +1 -1
- package/dist/server/{Block.shared-DLoilC2J.mjs → Block.shared-DB6fb1pR.mjs} +4 -4
- package/dist/server/{bindings-C7DKLVx_.mjs → bindings-z2daXp-2.mjs} +1 -1
- package/dist/server/{blocks-jlIm0PWc.mjs → blocks-BaG8Qpaa.mjs} +64 -29
- package/dist/server/{client-CU4wlMLE.mjs → client-Cv-osXoU.mjs} +1 -1
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{generatePageMetadata-CPvssVOp.mjs → generatePageMetadata-DB_lbrZ7.mjs} +28 -2
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-DmQ4BiiQ.mjs → loadContent-BNMDYCm8.mjs} +4 -4
- package/dist/server/{loadPage-BBkDQA57.mjs → loadPage-CjA_F_AF.mjs} +2 -2
- package/dist/server/loadPage-jade28Xh.mjs +2 -0
- package/dist/server/metadata.mjs +2 -2
- package/dist/server/next.mjs +12 -11
- package/dist/server/{overrideResolution-ByeAbLSO.mjs → overrideResolution-CGodrtqi.mjs} +1 -1
- package/dist/server/{overrides-BcA6ZPWf.mjs → overrides-DxRC724a.mjs} +73 -114
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-8T-m7XjB.mjs → prebuild-C6bhjRKT.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Bjya-X9t.mjs → prefetchBlockData-DZ5Fq_-r.mjs} +1 -1
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-D0ow8PRJ.mjs → resolveBlockData-CbGDakvp.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/{themeAdmission-D2-BnmDO.mjs → themeAdmission-DK2YBNqy.mjs} +8 -6
- package/dist/server/{validation-Cm41pDUB.mjs → validation-BtHE2S_D.mjs} +2 -2
- package/dist/server/{version-Bo9C3McI.mjs → version-CNCdL6id.mjs} +1 -1
- package/package.json +1 -1
- package/dist/server/loadPage-ZrcfjG3X.mjs +0 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { l as buildCalendarViewport$1, n as calendarLinks, r as groupItemsByDate } from "./src-1PJxc8KO.mjs";
|
|
3
3
|
import { C as unsafeAsStoragePath, S as unsafeAsStorageBucketName, T as ok$1, d as parseEventSeriesId, i as resolveManagedMediaReference, o as parseCanonicalMediaIdentifier, u as parseEventOfferingId, w as err, y as unsafeAsMediaAssetId } from "./renderableMediaAssetAdmission-DGjBr_e-.mjs";
|
|
4
4
|
import { $t as asDesignEntryId, A as planFlexibleBalanceCreditFirst, At as navLinkOwnsHoverForeground, Bn as expandPalette, Ct as generateInteractiveChildInheritanceCSS, D as getStripeMinimumChargeRequirement, Dt as NAV_LINK_PADDING_X_MAP, E as checkoutCopy, Er as runtimeMediaSchema, Et as NAV_LINK_PADDING_MAP, F as getBookingLaterInstalments, Fn as unsafeAsOpaqueButtonColourToken, Ft as runtimeBoxBackgroundSchema, Gn as hexColorSchema, Hn as planForegroundHover, Jn as paletteValueKey, Jt as asBlockContentVersionId, Kn as paletteColorsSchema, Kt as normalizeCardRole, L as headerPositioningValues, Ln as surfaceToneFromForegroundToken, Lt as siteChromeBackgroundOverrideOwner, M as repriceBookingCollectionOptions, Mr as formatCurrencyAmount, Mt as navEffectPolicy, N as resolveAvailableBookingCollectionOptions, On as opaqueSurfaceDeclarations, Ot as NAV_LINK_TEXT_SIZE_MAP, P as resolveBookingCollectionOptionFacts, Pn as PUBLIC_BUTTON_ROLES, Qn as backgroundColorStyle, Qt as asDesignBoundaryId, Rn as resolveSurfaceForeground, S as clsx, St as generateBaseInteractiveCSS, Tn as resolveSurface, Tt as NAV_LINK_LETTER_SPACING_MAP, Un as resolveConcreteColorHex, Ut as cardRoleSchema, Wt as cardRoleValues, Xn as requirePaletteColorsFromEntries, Xt as asBoundaryOptionId, Yn as paletteValueKeySchema, Yt as asBlockOrderIndex, Zn as TokenResolver, Zt as asDesignBlockId, _t as brandDisplayModeValues, an as assertNever$1, ar as parseThemeColorToken, bn as requireNonEmptyReadonlyArray, bt as buttonStyleSelectionSchema, dr as contrastRatio, en as asDesignPageId, fn as flushPanelFrame, fr as relativeLuminance, gn as noHeadingDecoration, gt as headerInteractionQuietPalette, hn as makeBoundaryId, hr as rgbToHex, ht as headerInteractionPaletteValues, in as asSiteStyleId, j as isBookingCollectionEquivalentToUpfront, jt as navLinkOwnsUnderline, k as planCheckoutPaymentFlow, kr as getBookingInstalmentPlanIntervalCount, kt as navLinkHoverColorCandidate, mr as hexToRgb, nn as asLayoutVariantKey, nr as rgbColorValue, or as themeColorShadeSteps, pr as featuresFromHex, qn as paletteModeSchema, qt as asAppearancePresetId, rn as asPageFlowPresetId, rr as textColorStyle, sn as defineExactCatalog, tn as asDesignSystemTemplateId, tr as mergeStyles, vn as panelFrame, vt as logoSizePolicyValues, wt as NAV_LINK_BORDER_RADIUS_MAP, xr as surfaceForegroundValue, xt as generateEffectsCSS, yn as plainFrame, yr as surfaceForegroundInputFromResolved, yt as defaultButtonStyleSelectionFor, zt as themeV2RuntimeStyleFieldNames } from "./ThemedButton-DVBC_pS9.mjs";
|
|
5
|
-
import { Ct as toUtcIsoDateTimeString, G as blockBookingConsentSchema, J as toBookingRequirementConsentField, S as eventCalendarListLayoutValues, St as toScheduledBookingDateTime, Y as blockBookingPaymentTermsSchema, _ as eventCalendarDefaultViewValues, at as formatTime$2, bt as resolveBookingTimeZoneId, ct as resolveBookingDisplayContext, dt as compareLocalScheduleDates, ht as getLocalScheduleDate, it as formatDateTimeRange, mt as getBookingLocalDateKey, n as blockSiteTermsSchema, nt as formatDateRange, ot as formatTimeRange, rt as formatDateTime, st as inferSiteDateLocale, tt as formatDate$2, v as eventCalendarDisplayModeValues, vt as parseUtcIsoDateTimeString, xt as toBookingTimeZone, yt as resolveBookingBusinessTimeZone } from "./noop-
|
|
5
|
+
import { Ct as toUtcIsoDateTimeString, G as blockBookingConsentSchema, J as toBookingRequirementConsentField, S as eventCalendarListLayoutValues, St as toScheduledBookingDateTime, Y as blockBookingPaymentTermsSchema, _ as eventCalendarDefaultViewValues, _t as parseLocalScheduleTime, at as formatTime$2, bt as resolveBookingTimeZoneId, ct as resolveBookingDisplayContext, dt as compareLocalScheduleDates, ht as getLocalScheduleDate, it as formatDateTimeRange, mt as getBookingLocalDateKey, n as blockSiteTermsSchema, nt as formatDateRange, ot as formatTimeRange, rt as formatDateTime, st as inferSiteDateLocale, tt as formatDate$2, v as eventCalendarDisplayModeValues, vt as parseUtcIsoDateTimeString, xt as toBookingTimeZone, yt as resolveBookingBusinessTimeZone } from "./noop-M8FTSgm2.mjs";
|
|
6
6
|
import { t as assertNever$2 } from "./src-7cXhT0G_.mjs";
|
|
7
7
|
import { a as getSupabaseUrl, i as getSiteId, n as getCurrentResolveImageUrlContext, r as getMediaAssetIndex } from "./mediaContext-DThoeEBU.mjs";
|
|
8
8
|
import React from "react";
|
|
@@ -250,14 +250,14 @@ function parseEventPageSurfaceDestinationMode(value) {
|
|
|
250
250
|
}
|
|
251
251
|
function parseEventPageSurfaceSubject(value) {
|
|
252
252
|
if (!isRecord$7(value)) return err({ kind: "notObject" });
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
}
|
|
253
|
+
const parsed = value.kind === "eventSeries" ? parseEventSeriesPageSurfaceSubject(value) : value.kind === "eventOffering" ? parseEventOfferingPageSurfaceSubject(value) : err({
|
|
254
|
+
kind: "unsupportedSubject",
|
|
255
|
+
subjectKind: value.kind
|
|
256
|
+
});
|
|
257
|
+
return parsed.ok && value.noindex === true ? ok$1({
|
|
258
|
+
...parsed.value,
|
|
259
|
+
noindex: true
|
|
260
|
+
}) : parsed;
|
|
261
261
|
}
|
|
262
262
|
function parseEventSeriesPageSurfaceSubject(value) {
|
|
263
263
|
const eventSeriesId = parseEventSeriesId(value.eventSeriesId);
|
|
@@ -12790,6 +12790,10 @@ function getEventAvailability(event) {
|
|
|
12790
12790
|
available: null,
|
|
12791
12791
|
isFull: false
|
|
12792
12792
|
};
|
|
12793
|
+
if (event.registeredCount === null) return {
|
|
12794
|
+
available: 0,
|
|
12795
|
+
isFull: true
|
|
12796
|
+
};
|
|
12793
12797
|
const available = event.availableSpots ?? event.capacity - event.registeredCount;
|
|
12794
12798
|
if (available <= 0) return {
|
|
12795
12799
|
available: 0,
|
|
@@ -12843,12 +12847,12 @@ function lowCapacityThreshold(capacity) {
|
|
|
12843
12847
|
}
|
|
12844
12848
|
function getRemainingPlaces(source) {
|
|
12845
12849
|
const { available, isFull } = getEventAvailability(source);
|
|
12846
|
-
if (available === null
|
|
12850
|
+
if (available === null) return { kind: "unlimited" };
|
|
12847
12851
|
if (isFull) return {
|
|
12848
12852
|
kind: "full",
|
|
12849
12853
|
waitlist: canJoinEventWaitlist(source)
|
|
12850
12854
|
};
|
|
12851
|
-
if (available <= lowCapacityThreshold(source.capacity)) return {
|
|
12855
|
+
if (source.capacity !== null && available <= lowCapacityThreshold(source.capacity)) return {
|
|
12852
12856
|
kind: "low",
|
|
12853
12857
|
remaining: available
|
|
12854
12858
|
};
|
|
@@ -13153,8 +13157,13 @@ function buildCalendarViewport(input) {
|
|
|
13153
13157
|
}
|
|
13154
13158
|
/** Tick digits are civil clock values, not session instants. */
|
|
13155
13159
|
function formatEventHourLabel(hour, timeZone) {
|
|
13156
|
-
return
|
|
13157
|
-
|
|
13160
|
+
return formatEventClockLabel(`${String(hour % 24).padStart(2, "0")}:00`, eventDateLocale(timeZone));
|
|
13161
|
+
}
|
|
13162
|
+
/** Weekly cadence and tick clocks are civil values; UTC only carries their components. */
|
|
13163
|
+
function formatEventClockLabel(value, locale) {
|
|
13164
|
+
const clock = parseLocalScheduleTime(value);
|
|
13165
|
+
return formatTime$2(toUtcIsoDateTimeString(new Date(Date.UTC(2e3, 0, 1, clock.hour, clock.minute)).toISOString()), {
|
|
13166
|
+
locale,
|
|
13158
13167
|
timeZone: resolveBookingBusinessTimeZone("UTC")
|
|
13159
13168
|
}, { zone: "omit" });
|
|
13160
13169
|
}
|
|
@@ -14711,9 +14720,9 @@ function findBookedEvent(events, identity) {
|
|
|
14711
14720
|
}
|
|
14712
14721
|
//#endregion
|
|
14713
14722
|
//#region ../blocks/src/system/runtime/nodes/event-registration/ticketSelectionLines.ts
|
|
14714
|
-
/**
|
|
14715
|
-
function canRequestTicketOption(availability) {
|
|
14716
|
-
return availability.kind === "available" || availability.reason === "sold_out" || availability.reason === "overallCapacityUnavailable";
|
|
14723
|
+
/** Waitlists request places; bookings can only request currently available capacity. */
|
|
14724
|
+
function canRequestTicketOption(availability, purpose) {
|
|
14725
|
+
return availability.kind === "available" || purpose === "waitlist" && (availability.reason === "sold_out" || availability.reason === "overallCapacityUnavailable");
|
|
14717
14726
|
}
|
|
14718
14727
|
function normalizeTicketSelectionLines(lines) {
|
|
14719
14728
|
const quantitiesByTicketType = /* @__PURE__ */ new Map();
|
|
@@ -14741,8 +14750,20 @@ function getSingleSelectedPricingOptionId(lines) {
|
|
|
14741
14750
|
function hasValidPricingOptionSelection(input) {
|
|
14742
14751
|
if (!input.selectionRequired) return true;
|
|
14743
14752
|
if (input.lines.length === 0) return false;
|
|
14744
|
-
const
|
|
14745
|
-
return input.lines.every((line) =>
|
|
14753
|
+
const totalSelectedQuantity = getTicketSelectionTotal(input.lines);
|
|
14754
|
+
return input.lines.every((line) => {
|
|
14755
|
+
const option = input.visibleOptions.find((option) => option.pricingOptionId === line.pricingOptionId);
|
|
14756
|
+
return option !== void 0 && line.quantity <= getTicketTypeLineMax({
|
|
14757
|
+
currentQuantity: line.quantity,
|
|
14758
|
+
totalSelectedQuantity,
|
|
14759
|
+
maxTickets: input.maxTickets,
|
|
14760
|
+
purpose: input.purpose,
|
|
14761
|
+
pricingOptionId: option.pricingOptionId,
|
|
14762
|
+
availability: option.availability,
|
|
14763
|
+
heldPlacesBySelection: input.heldPlacesBySelection,
|
|
14764
|
+
overallRemainingPlaces: input.overallRemainingPlaces
|
|
14765
|
+
});
|
|
14766
|
+
});
|
|
14746
14767
|
}
|
|
14747
14768
|
function setTicketLineQuantity(input) {
|
|
14748
14769
|
const nextQuantity = Math.max(0, Math.floor(input.quantity));
|
|
@@ -14754,9 +14775,19 @@ function setTicketLineQuantity(input) {
|
|
|
14754
14775
|
}];
|
|
14755
14776
|
}
|
|
14756
14777
|
function getTicketTypeLineMax(input) {
|
|
14778
|
+
if (!canRequestTicketOption(input.availability, "waitlist")) return 0;
|
|
14757
14779
|
const otherSelectedQuantity = input.totalSelectedQuantity - input.currentQuantity;
|
|
14758
14780
|
const maxByBlock = input.maxTickets - otherSelectedQuantity;
|
|
14759
|
-
return Math.max(0, maxByBlock);
|
|
14781
|
+
if (input.purpose === "waitlist") return Math.max(0, maxByBlock);
|
|
14782
|
+
const heldPlaces = input.heldPlacesBySelection ?? [];
|
|
14783
|
+
const heldForType = getTicketLineQuantity(heldPlaces, input.pricingOptionId);
|
|
14784
|
+
const publicRemaining = canRequestTicketOption(input.availability, input.purpose) ? input.availability.remainingPlaces ?? Infinity : 0;
|
|
14785
|
+
const maxByOverall = (input.overallRemainingPlaces ?? Infinity) + getTicketSelectionTotal(heldPlaces) - otherSelectedQuantity;
|
|
14786
|
+
return Math.max(0, Math.min(maxByBlock, publicRemaining + heldForType, maxByOverall));
|
|
14787
|
+
}
|
|
14788
|
+
/** Holds belong to the original event, mode and ticket types, not the edited draft. */
|
|
14789
|
+
function getHeldPlacesBySelection(current, held) {
|
|
14790
|
+
return held?.selectionId === current.selectionId && held?.attendanceMode === current.attendanceMode ? held.lines : [];
|
|
14760
14791
|
}
|
|
14761
14792
|
//#endregion
|
|
14762
14793
|
//#region ../blocks/src/system/runtime/shared/utils/formatting.ts
|
|
@@ -14807,20 +14838,6 @@ function formatTime(isoTimestamp, options) {
|
|
|
14807
14838
|
const { context, zone } = bookingContext(options);
|
|
14808
14839
|
return instant.ok ? formatTime$2(instant.value, context, { zone }) : isoTimestamp;
|
|
14809
14840
|
}
|
|
14810
|
-
function bookingDateLocale(siteTimeZone) {
|
|
14811
|
-
return inferSiteDateLocale(resolveBookingBusinessTimeZone(siteTimeZone));
|
|
14812
|
-
}
|
|
14813
|
-
/** A stored local clock has no date or DST offset; UTC preserves its digits. */
|
|
14814
|
-
function formatBookingScheduleSummary(event) {
|
|
14815
|
-
const summary = event.scheduleSummary;
|
|
14816
|
-
if (!summary) return null;
|
|
14817
|
-
const start = summary.startTime ? parseUtcIsoDateTimeString(`1970-01-01T${summary.startTime}:00Z`) : null;
|
|
14818
|
-
const time = start?.ok ? formatTime$2(start.value, {
|
|
14819
|
-
timeZone: resolveBookingTimeZoneId("UTC"),
|
|
14820
|
-
locale: bookingDateLocale(event.siteTimeZone)
|
|
14821
|
-
}, { zone: "omit" }) : null;
|
|
14822
|
-
return [summary.recurrenceDescription, time].filter(Boolean).join(", ");
|
|
14823
|
-
}
|
|
14824
14841
|
/** Variant meaning is closed here; core owns the resulting typography. */
|
|
14825
14842
|
const BOOKING_DATE_PRESENTATIONS = {
|
|
14826
14843
|
day: {
|
|
@@ -15057,10 +15074,35 @@ function getVisibleTicketTypes(input) {
|
|
|
15057
15074
|
...option,
|
|
15058
15075
|
pricingOptionId: id
|
|
15059
15076
|
})) : [];
|
|
15060
|
-
|
|
15077
|
+
const source = input.eligibility?.ticketTypes ?? eventTicketTypes;
|
|
15078
|
+
const selectedIds = new Set(input.ticketSelections?.map((line) => line.pricingOptionId));
|
|
15079
|
+
return source.map((ticketType) => ticketTypeForSelectionMode(ticketType, input.selectedAttendanceMode)).filter((ticketType) => selectedIds.has(ticketType.pricingOptionId) || ticketType.isActive && ticketTypeMatchesMode(ticketType, input.selectedAttendanceMode));
|
|
15080
|
+
}
|
|
15081
|
+
function ticketTypeForSelectionMode(ticketType, mode) {
|
|
15082
|
+
if (!ticketType.isActive) return {
|
|
15083
|
+
...ticketType,
|
|
15084
|
+
availability: {
|
|
15085
|
+
kind: "unavailable",
|
|
15086
|
+
reason: "inactive",
|
|
15087
|
+
remainingPlaces: ticketType.availability.remainingPlaces
|
|
15088
|
+
}
|
|
15089
|
+
};
|
|
15090
|
+
if (!ticketTypeMatchesMode(ticketType, mode)) return {
|
|
15091
|
+
...ticketType,
|
|
15092
|
+
availability: {
|
|
15093
|
+
kind: "unavailable",
|
|
15094
|
+
reason: "attendance_mode_unavailable",
|
|
15095
|
+
remainingPlaces: ticketType.availability.remainingPlaces
|
|
15096
|
+
}
|
|
15097
|
+
};
|
|
15098
|
+
return ticketType;
|
|
15099
|
+
}
|
|
15100
|
+
function ticketTypeMatchesMode(ticketType, mode) {
|
|
15101
|
+
const scope = ticketType.attendanceScope ?? "both";
|
|
15102
|
+
return !mode || scope === "both" || scope === mode;
|
|
15061
15103
|
}
|
|
15062
|
-
function getImplicitSingleTicketType(ticketTypes) {
|
|
15063
|
-
return ticketTypes.length === 1 && ticketTypes[0] && canRequestTicketOption(ticketTypes[0].availability) ? ticketTypes[0] : null;
|
|
15104
|
+
function getImplicitSingleTicketType(ticketTypes, purpose = "book") {
|
|
15105
|
+
return ticketTypes.length === 1 && ticketTypes[0] && canRequestTicketOption(ticketTypes[0].availability, purpose) ? ticketTypes[0] : null;
|
|
15064
15106
|
}
|
|
15065
15107
|
function findSelectedTicketType(input) {
|
|
15066
15108
|
if (!input.selectedPricingOptionId) return null;
|
|
@@ -15310,6 +15352,26 @@ function getEligibilityFlowFlags(input) {
|
|
|
15310
15352
|
isMembershipFastTrack: input.portalAuthState === "authenticated" && hasMembership && input.ticketsCount === 1 && input.paymentMethod === "membership"
|
|
15311
15353
|
};
|
|
15312
15354
|
}
|
|
15355
|
+
/** Prefer refreshed capacity, including a known zero; fall back while options load. */
|
|
15356
|
+
function getTicketSelectionRemainingPlaces(input) {
|
|
15357
|
+
const availability = input.eligibility?.availability;
|
|
15358
|
+
if (availability && "remainingPlaces" in availability) return availability.remainingPlaces ?? null;
|
|
15359
|
+
return input.event ? getEventAvailability(selectEventCapacitySource(input.event, input.attendanceMode)).available : null;
|
|
15360
|
+
}
|
|
15361
|
+
function resolveHeldTicketPlaces(current, invitation, paymentHold) {
|
|
15362
|
+
return getHeldPlacesBySelection(current, invitation.kind === "ready" ? {
|
|
15363
|
+
selectionId: invitation.restoration.event?.selectionId ?? current.selectionId,
|
|
15364
|
+
attendanceMode: invitation.restoration.attendanceMode,
|
|
15365
|
+
lines: invitation.restoration.ticketSelections
|
|
15366
|
+
} : paymentHold);
|
|
15367
|
+
}
|
|
15368
|
+
function getCurrentTicketSelection(event, attendanceMode, lines) {
|
|
15369
|
+
return {
|
|
15370
|
+
selectionId: event?.selectionId ?? null,
|
|
15371
|
+
attendanceMode,
|
|
15372
|
+
lines
|
|
15373
|
+
};
|
|
15374
|
+
}
|
|
15313
15375
|
//#endregion
|
|
15314
15376
|
//#region ../blocks/src/system/runtime/nodes/event-registration/registrationDraft.state.ts
|
|
15315
15377
|
function createRegistrationDraftData(event) {
|
|
@@ -16083,6 +16145,9 @@ function getStepLabel(step) {
|
|
|
16083
16145
|
function visitorHoldsOwnPlace(input) {
|
|
16084
16146
|
return input.hasWaitlistClaim || input.retryingHeldPlace;
|
|
16085
16147
|
}
|
|
16148
|
+
function getTicketSelectionPurpose(admission) {
|
|
16149
|
+
return admission.kind === "waitlist" ? "waitlist" : "book";
|
|
16150
|
+
}
|
|
16086
16151
|
function resolveRegistrationAdmission(input) {
|
|
16087
16152
|
if (input.holdsOwnPlace) return { kind: "resume" };
|
|
16088
16153
|
if (input.eligibilityLoading) return { kind: "checking" };
|
|
@@ -16981,4 +17046,4 @@ function registrationStepLabel(step, context) {
|
|
|
16981
17046
|
}
|
|
16982
17047
|
}
|
|
16983
17048
|
//#endregion
|
|
16984
|
-
export {
|
|
17049
|
+
export { getEligibilityFlowFlags as $, resolveDefaultBookingServiceId as $n, parseGradientPresetId as $r, resolveImageSourceSetWithContext as $t, isEventRegistrationAvailable as A, orderedLiveRunSessions as Ai, isEventFull as An, defineProgressiveBlockRuntime as Ar, getTicketSelectionTotal as At, paymentChoiceDetails as B, parseNewsletterListId as Bi, getBookingRedirectStateFromLocation as Bn, transparentHeaderForegroundInput as Br, registrationDisplaySchema as Bt, resolveGuestNextStepCheck as C, cardListFamilyBlocks as Ci, canJoinEventWaitlistOnAnyMode as Cn, createInteractiveIslandCodec as Cr, occurrenceTitleOverride as Ct, settledRemainingPlaces as D, isRecord$3 as Di, getEventAvailability as Dn, resolveEventRegistrationScopedEvents as Dr, canRequestTicketOption as Dt, resolveRegistrationTicketContinuation as E, parseAspectRatioValue as Ei, formatTotalCapacity as En, normalizeEventRegistrationPageSurfaceSubject as Er, formatPrice as Et, toHeadlessPaymentSelection as F, DEFAULT_MAILING_LIST_SUCCESS_MESSAGE as Fi, buildBookingFormInteractiveIslandProps as Fn, lookListPresentationSchemaShape as Fr, getRegistrationStartAt as Ft, resolveRegistrationTarget as G, publicEventPricingDisplay as Gi, isBookingServiceSlidingAmountInRange as Gn, readStoredMode as Gr, getBlockApiReadStage as Gt, findPreSelectedEvent as H, formatEventPricing as Hi, getBookingSuccessCopy as Hn, mergeHeaderNavTypographyPreference as Hr, shownVenue as Ht, toInternalPaymentSelection as I, parseMailingListProviderScope as Ii, readOverrideServiceCategories as In, resolvedItemSurfaceProps as Ir, toRegistrationEvents as It, beginWaitlistInvitation as J, resolveExactOrFreePriceDisplay as Ji, parseBookingCurrencyInputToCents as Jn, resolvePublishedLook as Jr, MediaPlaceholder as Jt, resolveRouteRequiresPayment as K, publicEventPricingStrategy as Ki, normalizeBookingFormConfig as Kn, resolveEffectiveArrangement as Kr, RichText as Kt, calculateEventRegistrationPreviewTotal as L, parseBrevoListId as Li, deriveBookingFormViewState as Ln, effectiveHeaderNavLinkStyle as Lr, toWholeSeriesRegistrationEvent as Lt, resolveEventRegistrationSubmitPlan as M, resolveWholeSeriesRunLifecycle as Mi, selectMostOpenCapacitySource as Mn, listItemPresentation as Mr, hasValidPricingOptionSelection as Mt, resolveHeadlessEventRegistrationStatus as N, parseMailingListRuntimeContext as Ni, groupPublicEventsByRun as Nn, listLookControl as Nr, normalizeTicketSelectionLines as Nt, visitorHoldsOwnPlace as O, CANCELLED_SESSION_STATUS as Oi, getEventAvailabilityStatus as On, createZodCodec as Or, getSingleSelectedPricingOptionId as Ot, resolveHeadlessEventRegistrationView as P, resolveBookingSignupOffer as Pi, bookingFormInteractiveIslandPropsCodec as Pn, listLookSlot as Pr, setTicketLineQuantity as Pt, getCurrentTicketSelection as Q, resolveBookingSiteId as Qn, getGradientPreset as Qr, renderVideo as Qt, buildBookingPaymentSelectionViewModel as R, parseMailchimpAudienceId as Ri, formatBookingCentsAsCurrencyInput as Rn, headerForegroundCandidates as Rr, toWholeSeriesRegistrationEvents as Rt, planRegistrationDetailsContinuation as S, resolveEffectiveKnobs as Si, canJoinEventWaitlist as Sn, buildInteractiveIslandProps as Sr, getVisibleTicketTypes as St, resolveRegistrationAvailabilityBlocker as T, itemRole as Ti, formatRemainingPlaces as Tn, eventRegistrationPageSurfaceSubjectSchema as Tr, withOccurrenceTitle as Tt, resolveDiscountContext as U, isPublicEventPricingOptionDisplayable as Ui, getRegistrationSuccessCopy as Un, readHeaderNavFontSizePreference as Ur, browserReadAuthoritySchema as Ut, paymentChoicePrice as V, formatBookingPriceDisplay as Vi, getBookingServiceSlidingScale as Vn, readOpeningForegroundProjection as Vr, resolveRegistrationDisplay as Vt, resolveEventRequiresPayment as W, publicEventPricingCurrency as Wi, getShopSuccessCopy as Wn, arrangementManifestFromVariants as Wr, createHostedBlockApiConfig as Wt, invitationSubmission as X, assertNever as Xi, resolveAppointmentCheckoutVerificationState as Xn, compiledRuntimeStyleFieldNames as Xr, mediaImageHostProps as Xt, createRegistrationDraftData as Y, resolvePricingOptionsPriceDisplay as Yi, prepareBookingSubmission as Yn, requireCuratedSiteStyle as Yr, computeMediaTransformStyle as Yt, formatCentsAsCurrencyInput as Z, resolveBookingPaymentStep as Zn, gradientToCss as Zr, renderAudio as Zt, shouldPromptForLogin as _, heroPhotoPaintsGround as _i, formatEventTimeRange as _n, BLOCK_BUTTON_ROLE_OPTIONS as _r, formatRegistrationSchedule as _t, registrationPresentation as a, arrangementLookHooks as ai, buildCalendarViewport as an, BOOKING_FORM_DATA_RESERVED_KEY_VALUES as ar, resolveHeldTicketPlaces as at, placeCountCeiling as b, sectionForegroundBackground as bi, resolveEventTimeZone as bn, readRuntimeNow as br, getPortalSubjectEmail as bt, registrationStepLabelContext as c, resolveLookSlotSurfaces as ci, eventDateOptions as cn, columnOptionSchema as cr, confirmationPaymentRows as ct, decideEventChoice as d, composeBoundary as di, formatDate$1 as dn, eventCalendarDisplayModeSchema as dr, areEntitlementsDisabledForTicketCount as dt, deriveSiteStyleBlockPolicy as ei, resolveImageUrl as en, selectedBookingCollectionOptionKind as er, getRegistrationOccurrenceId as et, getDeclinedPass as f, sectionFactsForContent as fi, formatEventClockLabel as fn, eventLayoutSchema as fr, findSelectedTicketType as ft, decideEventRegistrationPayment as g, deriveSectionGround as gi, formatEventNextDateFact as gn, weekStartSchema as gr, formatPassCreditUsageLabel as gt, buildEventRegistrationPaymentOptionsViewModel as h, transitionCatalogueEntries as hi, formatEventHourLabel as hn, registrationButtonVariantSchema as hr, formatEventDateTime as ht, registrationPaymentRoute as i, generateNavLinkCSS as ii, sanitizeHref as in, BOOKING_FORM_DATA_RESERVED_KEYS as ir, parseCurrencyInputToCents as it, normalizeEventRegistrationMaxTickets as j, resolveWholeSeriesBookingPhase as ji, selectEventCapacitySource as jn, isDecodeSuccess as jr, getTicketTypeLineMax as jt, deriveEventRegistrationSteps as k, nextLiveRunSessionStartMs as ki, getRemainingPlaces as kn, defineClientOwnedBlockRuntime as kr, getTicketLineQuantity as kt, areEventRegistrationPaymentSelectionsEqual as l, headerRootPaint as li, eventLocalDateKey as ln, eventButtonVariantSchema as lr, resolveFinishedPresentation as lt, registrationFlowReducer as m, anglePolygonCss as mi, formatEventDateParts as mn, previewStageSchema as mr, formatDate as mt, getEventSelectionMode as n, footerForegroundCandidates as ni, resolveMediaNodeResponsiveImage as nn, projectSelectedAppointmentConsentIntoForm as nr, getSlidingScaleSelectionMessage as nt, registrationRoute as o, arrangementSlotNames as oi, eventCalendarWeekStart as on, bookingNowSchema as or, shouldLoadRegistrationOptions as ot, isRegistrationLocked as p, boundaryRuntimeMetricsForDecorativeTransition as pi, formatEventCompactDateRail as pn, filterAutoShowSchema as pr, formatBookingWhen as pt, toRegistrationRequestSubject as q, publicEventPricingType as qi, normalizeBookingServices as qn, resolveModeArrangement as qr, ImagePresets as qt, panelShouldOpen as r, buildTextContrastShadow as ri, resolvePublicMediaUrl as rn, resolveSelectedAppointmentConsent as rr, getTicketSelectionRemainingPlaces as rt, registrationStepLabel as s, resolveItemSurface as si, eventDateLocale as sn, calendarTabViewsSchema as sr, validateFormData as st, REGISTRATION_STEP_LABELS as t, generateFooterCss as ti, resolveImageUrlWithContext as tn, toSelectedCollectionOptionKind as tr, getSlidingScaleForEvent as tt, createInitialRegistrationFlowState as u, boundaryLayout as ui, formatCalendarTitle as un, eventCalendarDefaultViewSchema as ur, ENTITLEMENT_SINGLE_TICKET_TOOLTIP as ut, fullyBookedLabel as v, parseCanonicalRuntimeBackground as vi, formatTime$1 as vn, blockButtonRoleSchema as vr, formatTime as vt, resolveRegistrationAdmission as w, cardListKnobBlocks as wi, formatEventRemainingPlaces as wn, defineInteractiveIslandMetaKeys as wr, transformRegistrationOptionsResponse as wt, planRegistrationDetailsCheck as x, defineBlockDesignMetadata as xi, resolveRuntimeEventDestination as xn, resolveDateRuntimeContext as xr, getTicketTypeAvailabilityLabel as xt, getTicketSelectionPurpose as y, resolveSectionBackground as yi, groupEventsByDate as yn, isBlockButtonRole as yr, getImplicitSingleTicketType as yt, buildReviewedBookingPaymentViewModel as z, parseMailchimpInterestId as zi, formatBookingSubmissionPreparationError as zn, headerLeafTextColor as zr, placesLeftLabel as zt };
|
|
@@ -1,12 +1,76 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { A as resolveButtonStyleSelection, D as buttonStyleSelectionParameterValue, E as buttonStyleHoverPreferenceValue, F as buttonStyleSelectionsEqual, Gr as buildFontPreviewUrl, Jn as paletteColorEntries, Jr as VARIANT_ROLES, Kr as generateFontFaceCss, M as updateButtonStyleSelectionChoice, N as buttonStyleSelectionKey, Xn as paletteColorsSchema, i as ThemedButtonSpecimen, j as updateButtonStyleHoverPreference, k as findButtonStyleRecipe, qr as getSiteFontsStorageUrl } from "./ThemedButton-BEOPss9H.mjs";
|
|
3
|
-
import { A as previewHeaderStyle, Ao as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { A as previewHeaderStyle, Ao as getHeaderStyle, Ar as Tabs, Bn as listPageSurfaceContentSlots, Br as Collapsible, C as openRow, Cr as Callout, Cs as formatDate, D as previewCuratedPalette, Dn as isEdited, Dr as PopoverContent, E as previewButtonStyle, Er as Popover, Es as resolveBookingBusinessTimeZone, F as syncStyleConfiguratorState, Fn as FormRenderer, Fo as replaceSiteStyleCompilationPlan, Gr as DropdownMenuContent, Hr as CollapsibleTrigger, I as toggleRow, Io as defaultFooterPreferences, Jr as DropdownMenuSeparator, Kr as DropdownMenuItem, L as createOptimisticActionRunner, Li as ThemeScope, Ln as civilPickerDisplay, M as restageSelectionChanges, Mn as ManifestForm, Mr as TabsList, N as setPaletteColors, Nr as TabsTrigger, O as previewFooterLook, On as canWriteLinkedEntry, Oo as findFooterLook, Or as PopoverTrigger, Os as assertNever$1, P as styleConfiguratorHistoryEntryForPersistedSelection, Pn as createManifestValidation, Q as resolvePreviewSidebarTab, R as resolveStyleConfiguratorInitialSnapshot, S as markApplySaving, Si as Button, So as palettesForSiteStyle, Sr as SelectValue, T as planStyleSwitch, Tr as SearchInput, Ts as parseUtcIsoDateTimeString, Ur as Surface, Vn as blocksKeys, Vr as CollapsibleContent, Wr as DropdownMenu, X as PREVIEW_DESIGN_SAVE_ERROR_MESSAGE, Xn as getDashboardUrl, Yn as unwrapResponse, Yr as DropdownMenuTrigger, Z as reportPreviewDesignError, Zr as X$1, _ as deriveStyleConfiguratorCapabilities, a as selectionSnapshotFromApplySiteStyleSelectionResponse, ar as createStoreBackend, at as FooterComposerPanel, b as markApplyFailed, bi as ChevronDown, br as SelectItem, bs as syncStateOf, d as cycleSiteChromeSelectionId, di as Maximize2, dn as deriveRouteMetadataPresentation, do as compileUpdatedSiteThemeFromSelections, en as BlockEditor, f as planSiteChromeSelection, fn as resolvePageRouteSlug, ft as ContentFieldsForm, g as createStyleConfiguratorState, gt as useEntryController, h as cancelPreview, hn as useEditorUiStoreInstance, i as buildApplySiteStyleSelectionBody, ii as SlidersHorizontal, j as resetTypographyToSaved, jo as defaultHeaderLogoContext, jr as TabsContent, k as previewHeaderLayout, ko as getHeaderLayout, kr as Input, ln as isAdapterReferenceKind, m as applyTypographyDraftPatch, mn as useEditorUiStore, n as useSiteChromeCustomizeOptional, p as applyResolvedSelections, pn as resolveContentTitle, pt as useUISelector, qr as DropdownMenuLabel, r as StyleSwitchSummary, ri as Smartphone, rt as usePreviewAuth, s as usePreviewDesignCoordinator, sn as routeLifecycleContext, st as resolveFooterLayoutHints, ti as Tablet, u as buildSiteChromeSelectionModels, ui as Monitor, uo as compileReplacementSiteThemeFromSelections, v as dismissWarnings, vi as ChevronRight, vr as Select, w as palettePreviewProjection, wi as cn, wn as toEditorBlockItem, wr as CalloutDescription, ws as parseBookingLocalDate, wt as LinkedEntryLeaseBanner, x as markApplySaved, xi as Check, xo as offeredSiteStyles, xr as SelectTrigger, xs as valueStatus, y as isPreviewingChange, yi as ChevronLeft, yo as getCuratedSiteStyle, yr as SelectContent, ys as displayedValues, yt as useAutosaveStatus, zi as resolveSdkFooterMode, zn as listEntryPageContentSlots } from "./SiteChromeCustomizeContext-BdwEZoo9.mjs";
|
|
4
|
+
import { c as resolvePreviewSidebarChromeModel, d as useBlockCustomizeControls, h as previewWidgetOverrides, i as resolvePreviewDashboardSetupHandoff, m as PreviewFormProvider, o as resolvePreviewEditorGuidanceModel, p as usePreviewBlockCustomizeSelectionOptional, r as buildPreviewDashboardSetupUrl, t as canInspectSiteStyle, u as usePreviewSiteFontStorageUrl } from "./siteStyleAccess-CFMmoMZb.mjs";
|
|
5
|
+
import { n as Separator, t as Spinner } from "./spinner-Bhpzz2vO.mjs";
|
|
6
6
|
import React, { createContext, forwardRef, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore, useTransition } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
9
9
|
import { useRouter } from "next/navigation.js";
|
|
10
|
+
//#region ../blocks/src/subroutes/formatDate.ts
|
|
11
|
+
/** Occurrence instants name the occurrence-local day; civil keys preserve their day. */
|
|
12
|
+
function formatOccurrenceDate(iso, context) {
|
|
13
|
+
if (!iso) return null;
|
|
14
|
+
if (/^\d{4}-\d{2}-\d{2}$/.test(iso)) try {
|
|
15
|
+
return formatDate({
|
|
16
|
+
kind: "civil",
|
|
17
|
+
value: parseBookingLocalDate(iso)
|
|
18
|
+
}, context, { date: "long" });
|
|
19
|
+
} catch {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
const instant = parseUtcIsoDateTimeString(iso);
|
|
23
|
+
return instant.ok ? formatDate({
|
|
24
|
+
kind: "instant",
|
|
25
|
+
value: instant.value
|
|
26
|
+
}, context, { date: "long" }) : null;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region ../blocks/src/subroutes/fold.ts
|
|
30
|
+
/**
|
|
31
|
+
* Typeclass-style exhaustive dispatch over a subroute context.
|
|
32
|
+
*
|
|
33
|
+
* The single place that knows how to peel the discriminated union open and
|
|
34
|
+
* hand its inner payload to a kind-specific handler. Use this instead of
|
|
35
|
+
* inline `switch (ctx.kind)` so the dispatch stays consistent across
|
|
36
|
+
* consumers (notice, SEO, breadcrumbs, …).
|
|
37
|
+
*/
|
|
38
|
+
function foldSubroute(ctx, fold) {
|
|
39
|
+
switch (ctx.kind) {
|
|
40
|
+
case "event-occurrence": return fold["event-occurrence"](ctx.occurrence);
|
|
41
|
+
case "event-run": return fold["event-run"](ctx.run);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region ../blocks/src/subroutes/kinds.ts
|
|
46
|
+
/**
|
|
47
|
+
* The single source of truth for per-kind subroute metadata.
|
|
48
|
+
*
|
|
49
|
+
* Adding a new {@link EntrySubrouteKind} requires a new entry here; the
|
|
50
|
+
* `Record<EntrySubrouteKind, …>` shape will refuse to compile otherwise.
|
|
51
|
+
*/
|
|
52
|
+
const SUBROUTE_KINDS = {
|
|
53
|
+
"event-occurrence": {
|
|
54
|
+
kind: "event-occurrence",
|
|
55
|
+
containerNoun: "event",
|
|
56
|
+
instanceNoun: "date",
|
|
57
|
+
listLabel: "events list",
|
|
58
|
+
formatInstanceName: (occurrence, locale) => formatOccurrenceDate(occurrence.startsAt, {
|
|
59
|
+
locale,
|
|
60
|
+
timeZone: resolveBookingBusinessTimeZone(occurrence.timeZone)
|
|
61
|
+
}),
|
|
62
|
+
subEditorPath: () => "bookings/events"
|
|
63
|
+
},
|
|
64
|
+
"event-run": {
|
|
65
|
+
kind: "event-run",
|
|
66
|
+
containerNoun: "event",
|
|
67
|
+
instanceNoun: "run",
|
|
68
|
+
listLabel: "event runs",
|
|
69
|
+
formatInstanceName: (run) => run.name,
|
|
70
|
+
subEditorPath: () => "bookings/events"
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
//#endregion
|
|
10
74
|
//#region ../../node_modules/.pnpm/react-colorful@5.7.0_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-colorful/dist/index.mjs
|
|
11
75
|
function u() {
|
|
12
76
|
return (u = Object.assign || function(e) {
|
|
@@ -514,70 +578,6 @@ function ContentSpinner({ className, size = "xl" }) {
|
|
|
514
578
|
});
|
|
515
579
|
}
|
|
516
580
|
//#endregion
|
|
517
|
-
//#region ../blocks/src/subroutes/formatDate.ts
|
|
518
|
-
/** Occurrence instants name the occurrence-local day; civil keys preserve their day. */
|
|
519
|
-
function formatOccurrenceDate(iso, context) {
|
|
520
|
-
if (!iso) return null;
|
|
521
|
-
if (/^\d{4}-\d{2}-\d{2}$/.test(iso)) try {
|
|
522
|
-
return formatDate({
|
|
523
|
-
kind: "civil",
|
|
524
|
-
value: parseBookingLocalDate(iso)
|
|
525
|
-
}, context, { date: "long" });
|
|
526
|
-
} catch {
|
|
527
|
-
return null;
|
|
528
|
-
}
|
|
529
|
-
const instant = parseUtcIsoDateTimeString(iso);
|
|
530
|
-
return instant.ok ? formatDate({
|
|
531
|
-
kind: "instant",
|
|
532
|
-
value: instant.value
|
|
533
|
-
}, context, { date: "long" }) : null;
|
|
534
|
-
}
|
|
535
|
-
//#endregion
|
|
536
|
-
//#region ../blocks/src/subroutes/fold.ts
|
|
537
|
-
/**
|
|
538
|
-
* Typeclass-style exhaustive dispatch over a subroute context.
|
|
539
|
-
*
|
|
540
|
-
* The single place that knows how to peel the discriminated union open and
|
|
541
|
-
* hand its inner payload to a kind-specific handler. Use this instead of
|
|
542
|
-
* inline `switch (ctx.kind)` so the dispatch stays consistent across
|
|
543
|
-
* consumers (notice, SEO, breadcrumbs, …).
|
|
544
|
-
*/
|
|
545
|
-
function foldSubroute(ctx, fold) {
|
|
546
|
-
switch (ctx.kind) {
|
|
547
|
-
case "event-occurrence": return fold["event-occurrence"](ctx.occurrence);
|
|
548
|
-
case "event-run": return fold["event-run"](ctx.run);
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
//#endregion
|
|
552
|
-
//#region ../blocks/src/subroutes/kinds.ts
|
|
553
|
-
/**
|
|
554
|
-
* The single source of truth for per-kind subroute metadata.
|
|
555
|
-
*
|
|
556
|
-
* Adding a new {@link EntrySubrouteKind} requires a new entry here; the
|
|
557
|
-
* `Record<EntrySubrouteKind, …>` shape will refuse to compile otherwise.
|
|
558
|
-
*/
|
|
559
|
-
const SUBROUTE_KINDS = {
|
|
560
|
-
"event-occurrence": {
|
|
561
|
-
kind: "event-occurrence",
|
|
562
|
-
containerNoun: "event",
|
|
563
|
-
instanceNoun: "date",
|
|
564
|
-
listLabel: "events list",
|
|
565
|
-
formatInstanceName: (occurrence, locale) => formatOccurrenceDate(occurrence.startsAt, {
|
|
566
|
-
locale,
|
|
567
|
-
timeZone: resolveBookingBusinessTimeZone(occurrence.timeZone)
|
|
568
|
-
}),
|
|
569
|
-
subEditorPath: () => "bookings/events"
|
|
570
|
-
},
|
|
571
|
-
"event-run": {
|
|
572
|
-
kind: "event-run",
|
|
573
|
-
containerNoun: "event",
|
|
574
|
-
instanceNoun: "run",
|
|
575
|
-
listLabel: "event runs",
|
|
576
|
-
formatInstanceName: (run) => run.name,
|
|
577
|
-
subEditorPath: () => "bookings/events"
|
|
578
|
-
}
|
|
579
|
-
};
|
|
580
|
-
//#endregion
|
|
581
581
|
//#region ../content-model/src/content-types/entryValidation.ts
|
|
582
582
|
function hasRepeaterVariants(field) {
|
|
583
583
|
return field.itemTypes !== void 0;
|
package/dist/preview-next/client/{PreviewEditorUI-CxjEV0Fm.mjs → PreviewEditorUI-La40Dmmh.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { t as Spinner } from "./spinner-
|
|
4
|
-
import { a as resolvePreviewChromeSurface, c as PREVIEW_THEME_COOKIE_NAME, l as PREVIEW_CHROME_Z_INDEX, n as PREVIEW_CHROME_THEME_CLASS_NAME, r as applyPreviewChromeSurfaceToElement, t as PREVIEW_CHROME_PORTAL_CLASS_NAME, u as FixedBottomSurface } from "./previewChromeSurface-
|
|
2
|
+
import { $r as Undo2, Ci as cva, Dt as EditorWriteSurface, Fr as DialogContent, G as usePreviewPageDesignEditorState, Gr as DropdownMenuContent, Ir as DialogDescription, J as previewDesignHistoryDomainForCommand, Kr as DropdownMenuItem, Pr as Dialog, Rr as DialogHeader, Si as Button, Wr as DropdownMenu, Y as selectPreviewDesignHistoryDomain, Yn as unwrapResponse, Yr as DropdownMenuTrigger, Zt as useEditor, _i as EllipsisVertical, _n as canDiscardDraft, _r as TooltipTrigger, _t as useEntryEditorController, bi as ChevronDown, ci as PenLine, ei as TriangleAlert, fi as LoaderCircle, gi as Eye, gr as TooltipContent, hn as useEditorUiStoreInstance, hr as Tooltip, li as Palette, mn as useEditorUiStore, n as useSiteChromeCustomizeOptional, ni as Sparkles, oi as Redo2, q as usePreviewDesignHistoryOrder, rt as usePreviewAuth, si as Pencil, vt as classifyHistoryShortcut, wi as cn, yt as useAutosaveStatus, zr as DialogTitle } from "./SiteChromeCustomizeContext-BdwEZoo9.mjs";
|
|
3
|
+
import { t as Spinner } from "./spinner-Bhpzz2vO.mjs";
|
|
4
|
+
import { a as resolvePreviewChromeSurface, c as PREVIEW_THEME_COOKIE_NAME, l as PREVIEW_CHROME_Z_INDEX, n as PREVIEW_CHROME_THEME_CLASS_NAME, r as applyPreviewChromeSurfaceToElement, t as PREVIEW_CHROME_PORTAL_CLASS_NAME, u as FixedBottomSurface } from "./previewChromeSurface-BVUKIYG0.mjs";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { useCallback, useEffect, useMemo, useState, useTransition } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|