@riverbankcms/sdk 0.124.0 → 0.126.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 +3 -1
- package/dist/{PreviewEditorSidebar-DBmAJJkQ.mjs → PreviewEditorSidebar-DcYJxTgc.mjs} +67 -266
- package/dist/{PreviewEditorUI-CfGaz9cY.mjs → PreviewEditorUI-Ctt1yTJr.mjs} +3 -3
- package/dist/{PreviewQueryProvider-BH-3-jSj.mjs → PreviewQueryProvider-DgFDIwvK.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-BW9Z8j8T.mjs → SdkPreviewModeRuntime-CvW1vdQ4.mjs} +38 -30
- package/dist/{SiteChromeCustomizeContext-2z8moxYf.mjs → SiteChromeCustomizeContext-C87qlKWw.mjs} +493 -1378
- package/dist/_dts/ai/src/contracts/proposals.d.ts +1354 -202
- package/dist/_dts/api/src/accessAdmin.d.ts +2 -14
- package/dist/_dts/api/src/common/envelope.d.ts +1 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +0 -2
- package/dist/_dts/api/src/endpoints.d.ts +0 -7
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +42 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +11 -9
- package/dist/_dts/api/src/siteAccessAdmin.d.ts +23 -0
- package/dist/_dts/api/src/siteOperations.d.ts +18 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +1 -14
- package/dist/_dts/billing/src/plans/types.d.ts +24 -5
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +4 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/logic.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.client.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.server.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +15 -2
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +331 -19
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +1 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -3
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -2
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +3 -12
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +3 -13
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +8 -100
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +1 -4
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +1 -15
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +11 -21
- package/dist/_dts/sdk/src/cli/commands/event.d.ts +2 -2
- package/dist/_dts/sdk/src/cli/commands/eventOccurrenceSchedule.d.ts +12 -0
- package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +6 -0
- package/dist/_dts/sdk/src/cli/commands/style.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/content/legacyEventScheduleShapeError.d.ts +5 -0
- package/dist/_dts/sdk/src/cli/content/localEventSchedule.d.ts +17 -0
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +5 -10
- package/dist/_dts/sdk/src/cli/migrations/events.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/site-commands/eventScheduleCompiler.d.ts +24 -0
- package/dist/_dts/sdk/src/client/management/http.d.ts +1 -1
- package/dist/_dts/sdk/src/client/management/types.d.ts +3 -28
- package/dist/_dts/sdk/src/config/index.d.ts +1 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +5 -20
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commandContract.d.ts +33 -5
- package/dist/_dts/site-commands/src/commandDomain.d.ts +2 -2
- package/dist/_dts/site-commands/src/commands.d.ts +38 -9
- package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +28 -1
- package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +4 -4
- package/dist/_dts/theme-core/src/palette/concretePalette.d.ts +20 -0
- package/dist/_dts/theme-core/src/palette/curated/index.d.ts +2 -17
- package/dist/_dts/theme-core/src/palette/index.d.ts +1 -6
- package/dist/_dts/theme-core/src/palette/schema.d.ts +39 -0
- package/dist/_dts/theme-core/src/schema.d.ts +38 -26
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +4 -6
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +5 -6
- package/dist/cli/index.mjs +631 -525
- package/dist/cli/init-docs/content/cli-reference.md +6 -3
- package/dist/cli/init-docs/content/content-management.md +24 -13
- package/dist/client/{DiscountCodeDisclosure-DxvjKvck.mjs → DiscountCodeDisclosure-DS0AuFWW.mjs} +1 -1
- package/dist/client/{EventCombined.client-BydMGc4c.mjs → EventCombined.client-DtMxLr7q.mjs} +2 -2
- package/dist/client/{EventListing.client-vpzhhysN.mjs → EventListing.client-BdLSRNg1.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-CB07rpf8.mjs → LeafletStaticMap-BrpC6vsT.mjs} +1 -1
- package/dist/client/{MagicLinkForm-BzyRJ8VF.mjs → MagicLinkForm-Bt3IuLMy.mjs} +1 -1
- package/dist/client/{StepIndicator-CTcGf8Be.mjs → StepIndicator-CBYPFVoy.mjs} +2 -2
- package/dist/client/{accordion-B-DUDLRD.mjs → accordion-BqqwPJWM.mjs} +1 -1
- package/dist/client/{bookingForm-DSbClLcZ.mjs → bookingForm-SneP3yxC.mjs} +5 -6
- package/dist/client/bookings.mjs +190 -24
- package/dist/client/{carousel-B6Ccdx8M.mjs → carousel-BTIR9L3I.mjs} +1 -1
- package/dist/client/{cart-BZh8G8wM.mjs → cart-bqiqd8SX.mjs} +3 -3
- package/dist/client/{checkout-o6zaC-kM.mjs → checkout-WbTFV5v4.mjs} +3 -3
- package/dist/client/client.mjs +175 -223
- package/dist/client/{courseRegistration-Cf11pNDs.mjs → courseRegistration-BcemLAdN.mjs} +6 -7
- package/dist/client/{eventCalendar-BeXrdsSE.mjs → eventCalendar-CsxIw0V_.mjs} +4 -4
- package/dist/client/{eventCombined-DA76PZgG.mjs → eventCombined-B6XMoHfa.mjs} +2 -2
- package/dist/client/{eventDetails-BLxg0rok.mjs → eventDetails-BJaoPPfo.mjs} +10 -5
- package/dist/client/{eventListing-tO9LheBX.mjs → eventListing-DgwdYHRT.mjs} +2 -2
- package/dist/client/{eventRegistration-Cnene9D9.mjs → eventRegistration-C0O3folu.mjs} +30 -22
- package/dist/client/{form-DZf72CHB.mjs → form-Bk9txGFt.mjs} +1 -1
- package/dist/client/{headerSection-Hioja5Cr.mjs → headerSection-yIBt0yTv.mjs} +2 -2
- package/dist/client/hooks.mjs +54 -102
- package/dist/client/{locationMap-DwhUXEix.mjs → locationMap-C-3KIpv-.mjs} +2 -2
- package/dist/client/{newsletterForm-C350bEQf.mjs → newsletterForm-CzB8g8h2.mjs} +1 -1
- package/dist/client/{pricing-BYWN_ATa.mjs → pricing-C1QeDes_.mjs} +1 -1
- package/dist/client/{productDetail-CCqCyXgU.mjs → productDetail-w7SBp5uc.mjs} +3 -3
- package/dist/client/{productList-BAiNJrOU.mjs → productList-D0tGKHGf.mjs} +3 -3
- package/dist/client/{propsDecoder-DeunRj6m.mjs → propsDecoder-Bcin2DB3.mjs} +172 -11
- package/dist/client/rendering/client.mjs +322 -363
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +231 -272
- package/dist/client/{useDiscountCodeUi-I-92-x2V.mjs → scrollToBlock-h-o_STf_.mjs} +18 -2
- package/dist/client/{shop-DUmCdBtw.mjs → shop-BGzmL8O_.mjs} +5 -6
- package/dist/client/{shop-commerce-CY27mEUr.mjs → shop-commerce-lX8QxjX-.mjs} +4 -4
- package/dist/client/{shop-commerce-store-ChXPbWfa.mjs → shop-commerce-store-CEurARtu.mjs} +1 -1
- package/dist/client/{shopShared-q0kin1cv.mjs → shopShared-DXxH8xxw.mjs} +2 -2
- package/dist/client/{useEventFilters-DlcVluZh.mjs → useEventFilters-B591g9vd.mjs} +2 -2
- package/dist/client/{usePolling-Bz7GFV_a.mjs → usePolling-BvnChV4m.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +0 -7
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +0 -7
- package/dist/{previewAuthStore-CJX21dGi.mjs → previewAuthStore-Dev9CdG9.mjs} +0 -7
- package/dist/{sdk-runtime-OnPM8Z69.mjs → sdk-runtime-M__i3Jce.mjs} +2 -2
- package/dist/{separator-CPtfzHqA.mjs → separator-VSlnI9bc.mjs} +1 -1
- package/dist/server/components.mjs +99 -141
- package/dist/server/config-validation.mjs +54 -102
- package/dist/server/config.mjs +54 -102
- package/dist/server/data.mjs +54 -102
- package/dist/server/index.mjs +1 -8
- package/dist/server/next.mjs +103 -152
- package/dist/server/page-converter.mjs +54 -102
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +62 -104
- package/dist/server/rendering.mjs +100 -142
- package/dist/server/routing.mjs +75 -147
- package/dist/server/server.mjs +55 -110
- package/dist/server/theme-bridge.mjs +172 -162
- package/dist/server/theme.mjs +167 -11
- package/package.json +1 -1
- package/dist/_dts/theme-core/src/palette/editorState.d.ts +0 -75
- package/dist/_dts/theme-core/src/palette/libraryModel.d.ts +0 -64
- package/dist/_dts/theme-core/src/palette/persistenceReadSource.d.ts +0 -81
- package/dist/_dts/theme-core/src/palette/resolveSelection.d.ts +0 -75
- package/dist/_dts/theme-core/src/palette/selection.d.ts +0 -74
- package/dist/_dts/theme-core/src/palette/sitePalettePersistence.d.ts +0 -34
- package/dist/client/scrollToBlock-C86BYkyV.mjs +0 -17
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as beginAutosaveBatch, $a as getLocalDateKey, $c as toScheduledBookingDateTime, $n as layoutTransforms, $o as renderAudio, $r as parseStoredCommerceCartState, $t as redoHistory, Aa as el, Ac as createCollection, Ai as componentRuntimeRulesForTheme, An as DEFAULT_LAUNCH_READINESS_INPUT, Ao as isInlineTextEmpty, Ar as giftingBlockDefinition, As as mergeStyles, At as MediaField, Ba as formatEventCompactDateRail, Bc as parseFooterModuleId, Bi as parseGradientPresetId, Bl as GripVertical, Bn as escapeStyleContent, Bo as ClockIcon$1, Br as buildProductDetailInteractiveIslandProps, Bs as unmapValueFromSelect, C as usePreviewThemeOverlay, Ca as eventCollectionHydrationSchema, Ci as resolveBackgroundColorValue, Cl as Ticket, Cn as MediaEditorContextProvider, Co as parseGeneratedIconSetId, Cr as findPreSelectedEvent, Cs as pageDesignEditorBackgroundOverrideOwner, Ct as InlineTextField, Da as normalizeCsvIds, Di as retargetCompiledBoundaryRuntimeForContentAdjacency, Dn as getPageDesignEditorState, Do as logger, Dr as WIZARD_STEPS$1, Ds as normalizeBoxStylesCardVariant, Dt as ButtonVariantField, Ea as getEventRuntimeFiltersKey, Ei as compileEditorModelRuntime, El as Sparkles, En as applyPageDesignEditorAction, Eo as isRecord$20, Er as resolveRegistrationTarget, Es as ICON_CONFIG, Et as EntryPickerWidgetProvider, Fa as eventCalendarListLayoutOptions, Fc as Button, Fn as containerResponsiveThemeCss, Fo as ArrowDownIcon, Fr as resolveEventRegistrationScopedEvents, Fs as SdkConfigProvider, Ft as RichTextWidgetProvider, Ga as formatTime$3, Gc as formatBookingDateTime, Gl as CircleMinus, Gn as siteFooterManifest, Go as FileTextIcon, Gr as buildProductCardDisplay, Ha as formatEventPrice, Hc as unsafeAsEditorBlockValues, Hi as sectionTransitionFamilies, Hn as generateDefaultAccordionSystem, Ho as FileArchiveIcon, Hr as buildShopInteractiveIslandProps, Hs as useField, Ht as prepareBlockEditorManifest, Ia as buildGoogleMapsDirectionsUrl, Ii as gradientToCss, Il as Minus, In as createCustomBlockRegistry, Io as ArrowRightIcon, Ir as checkoutBlockDefinition, Is as useSdkConfig, It as EditorProvider, Ja as groupEventsByDate, Jc as formatLocalScheduleDate, Ji as backgroundAppearanceColorTokenNames, Jl as ChevronDown, Jn as SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR, Jo as ImagePresets, Jr as formatInterval, Js as SelectItem, Jt as useOptionalEditorUiStoreInstance, Ka as getCardOrientation, Kc as formatBookingInstant, Kl as ChevronRight, Kn as siteHeaderManifest, Ko as MinusIcon, Kr as buildProductDetailDisplay, Ks as Select, Kt as useEditorUiStore, La as normalizeLocationMapProps, Lc as useComposedRefs, Li as GRADIENT_PRESETS, Ln as buildThemeRuntime, Lo as ChevronDownIcon, Lr as cartBlockDefinition, Ls as hasEmptyOption, Lt as useEditor, Ma as bindingSchema, Mc as createContextScope, Mi as designRuntimeRulesForTheme, Mn as AMBIENT_BACKGROUND_ROLES, Mo as canonicalizePersistedBlockButtonRole, Mr as courseRegistrationBlockDefinition, Ms as textColorStyle, Mt as ReferenceWidgetProvider, Na as previewStageSchema, Nc as composeEventHandlers, Nn as isSupportedLoaderEndpoint, No as isBlockButtonRole, Nr as buildCourseRegistrationInteractiveIslandProps, Ns as getFieldIntent, Nt as useRichTextImagePicker, Oa as normalizeCsvString, Oc as useId$1, Oi as retargetCompiledRuntimeFieldsForContentAdjacency, Oo as coerceInlineTextWithFallback, Or as getStepNumber$1, Os as normalizeCardVariantRole, Ot as ButtonWidgetProvider, Pa as eventCalendarListLayoutCompatibleDisplayModeValues, Pc as Primitive, Pi as surfaceResolutionContextFromTheme, Pn as ThemeScope, Po as getIconComponent, Pr as normalizeEventRegistrationPageSurfaceSubject, Ps as isHeaderField, Pt as RichTextField, Qa as getEventAvailabilityStatus, Qc as toBookingTimeZone, Qi as defaultThemeTokens, Qn as mediaTransforms, Qo as getCurrentResolveImageUrlContext, Qr as deriveCommerceCheckoutState, Qt as pushHistoryEntry, Ra as toLocationMapHydrationProps, Rc as cn, Ri as GRADIENT_PRESET_IDS, Rn as DEFAULT_THEME_RESPONSIVE_MODE, Ro as CircleMinusIcon, Rr as buildCartInteractiveIslandProps, Rs as mapCurrentValueForSelect, Rt as LinkField, S as PreviewThemeOverlayProvider, Sa as eventCollectionDisplaySchemaShape, Si as resolveSurfaceForegroundStyles, Sn as MediaEditor, So as parseGeneratedIconAssetId, Sr as findEventByOccurrenceId, Ss as isThemeV2NormalEditorRawStyleFieldName, St as OfferingsPreviewWidgetProvider, Ta as buildEventRuntimeFilters, Ti as applyCompiledRuntimeFieldsToContent, Tl as Star, Tn as useApiMediaUploader, To as isObjectRecord, Tr as resolveEventRequiresPayment, Ts as assertNever$6, Tt as EntryPickerField, Ua as formatEventPriceDisplay, Uc as addLocalScheduleDays, Ui as sectionTransitionFamilyForBoundaryOptionId, Ul as CreditCard, Un as getBlockDefinition, Uo as FileAudioIcon, Ur as getShopDisplayForItems, Ut as stripTopLevelRoutingUi, Va as formatEventDateParts, Vc as unsafeAsEditorBlockId, Vi as defaultSectionTransitionVariantForFamily, Vn as mergeContentWithBlockStyleOverrides, Vo as DownloadIcon, Vr as buildProductListInteractiveIslandProps, Vs as FieldFrame, Vt as hideThemeV2RawStyleFields, Wa as formatEventTeacherLine, Wc as formatBookingDate, Wi as sectionTransitionVariantForBoundaryOptionId, Wl as CirclePlus, Wn as projectRecurringSchedule, Wo as FileSpreadsheetIcon, Wr as buildCartDisplay, Wt as getBlockManifestFromSdkConfig, Xa as resolveEventLinkProps, Xc as parseBookingLocalDate, Xi as foregroundTokenForBackgroundAppearanceColorToken, Xl as ArrowDown, Xn as visibleHeaderClearancePx, Xo as buildResolveImageUrlContext, Xr as buildPassCartItem, Xs as SelectValue, Xt as canUndoHistory, Ya as resolveEventCta, Yc as getBookingLocalDateKey, Yi as backgroundAppearanceQuickColorTokenNames, Yn as planSiteOverlayHeaderClearance, Yo as MediaPlaceholder, Yr as EMPTY_COMMERCE_CART_STATE, Ys as SelectTrigger, Yt as canRedoHistory, Za as getEventAvailability, Zc as resolveBookingTimeZoneId, Zi as parseBackgroundAppearanceColorToken, Zl as __exportAll, Zn as contentTransforms, Zo as computeMediaTransformStyle, Zr as buildProductCartItem, Zt as createHistoryState, _a as isSemanticSpacing, _c as Content, _i as bodyCopyFragment, _l as err$2, _n as createManifestFormAdapter, _o as resolveFeatureCardGeneratedIconSizePx, _r as formBlockDefinition, _s as parseThemeForPersistence, _t as createSiteOptionApiLoader, aa as createTransformRegistry, ac as TabsContent, ai as faqAccordionFragment, al as publicEventScalarPrice, an as createRoutingHelpers, ao as defineInteractiveIslandMetaKeys, ar as NAV_DROPDOWN_SHIFT_PROPERTY, as as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, b as PreviewDesignCoordinatorProvider, ba as buildEventCollectionHydration, bc as createCollapsibleScope, bi as getAnchorClasses, bl as Upload, bn as evaluateVisibility, bo as parseBlockIconValue, br as buildEventRegistrationInteractiveIslandProps, bs as resolveOnColorForThemeToken, bt as SiteOptionWidgetProvider, cc as Dialog, ci as singleButtonFragment, cl as assertNever$5, co as defineProgressiveBlockRuntime, cr as productDetailBlockDefinition, cs as siblingPath, ct as PreviewRichTextEditor, da as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, dc as DialogFooter, di as testimonialsCarouselFragment, dl as parseSiteId, do as markEditableSurfaceForwarding, dr as eventListingBlockDefinition, ei as productItemKey, el as parseEventPageSurfaceSubject, en as undoHistory, eo as getLocalMinuteOfDay, er as uiTransforms, es as renderVideo, et as confirmAutosaveBatch, f as PREVIEW_DESIGN_SAVE_ERROR_MESSAGE, fa as buildOfferingsPreviewRenderStates, fc as DialogHeader, fi as testimonialsHeadingFragment, fl as unsafeAsAppointmentResourceId, fo as splitPositioningClasses, fr as buildEventListingInteractiveIslandProps, ft as useUISelector, ga as resolveOfferingsPreviewGroups, gi as heroCopyFragment, gl as unsafeAsPassId, go as FEATURE_CARD_ICON_TREATMENTS, gr as buildEventCalendarListingRender, gs as themeButtonClassName, gt as useEntryEditorController, ha as resolveOfferingsPreviewGroupCta, hi as ctaRowFragment, hl as unsafeAsFormId, hn as validateBlockManifestIssues, ho as mediaSchema, hr as buildEventCalendarListingDisplay, hs as parseThemeButtonVariantId, i as usePreviewDesignHistoryOrder, ic as Tabs, ii as cardFragment, il as publicEventPricingType, in as useDebouncedLatestSave, io as createInteractiveIslandCodec, ir as useImageResolveContextOptional, is as setContextResolveImageUrlContext, it as rejectAutosaveBatch, ja as when, jc as useControllableState, jl as Plus, jn as deriveLaunchReadiness, jo as parseInlineTextFromUnknown, jr as buildGiftingInteractiveIslandProps, js as rgbColorValue, jt as ReferenceField, ka as normalizeOptionalId, kc as useDirection, ki as planPageDesignLayoutLookCompatibility, kl as RotateCcw, kn as decodePublicProductCategorySelectorQuery, ko as inlineTextToPlainText, kr as getWizardStepsForContext$1, ks as backgroundColorStyle, kt as FileField, lc as DialogContent, li as formEmbedFragment, ll as expectParsedBrandedId, ln as parseReferenceKind, lr as newsletterSignupBlockDefinition, lt as PreviewInlineTextEditor, ma as resolveOfferingsPreviewCoursePath, mi as heroCtaRowFragment, ml as unsafeAsCustomerPassId, mn as usePalette, mo as PUBLIC_DOWNLOAD_MEDIA_TYPES, mr as buildEventCalendarInteractiveIslandProps, ms as AFFORDANCE_SUPPRESS_CLASS, mt as EntryControllerProvider, n as useSiteChromeCustomizeOptional, ni as richTextFragment, nl as publicEventPricingCurrency, nn as recordsEqual, no as blockBookingPaymentTermsSchema, nr as createManifestValidator, ns as resolveMediaNodeResponsiveImage, nt as enqueueTransaction, oa as runTransforms, oc as TabsList, oi as faqHeadingFragment, ol as publicEventTicketTypes, on as createSnapshotFromPageRecord, oo as createZodCodec, or as shopBlockDefinition, os as attachRenderableMediaAssetFields, ot as resolvePreviewSidebarTab, p as reportPreviewDesignError, pa as normalizeOfferingsPreviewItemLimit, pc as DialogTitle, pi as ctaCopyFragment, pl as unsafeAsAppointmentServiceId, pn as PaletteProvider, po as planSiteChromePlacement, pr as eventCalendarBlockDefinition, pt as EditableBlockProvider, qa as getContainerClass, qc as formatBookingTime, qi as BACKGROUND_BODY_TEXT_MIN_CONTRAST_RATIO, ql as ChevronLeft, qn as SITE_CHROME_VISIBLE_HEADER_SELECTOR, qo as PlusIcon, qr as formatCommercePrice, qs as SelectContent, qt as useEditorUiStoreInstance, r as PreviewDesignHistoryOrderProvider, ri as headingFragment, rl as publicEventPricingMode, ro as buildInteractiveIslandProps, rr as ImageResolveContextProvider, rs as resolveMediaStorageUrl, rt as idleEditorTransactionQueueState, sa as ctaButton, sc as TabsTrigger, si as blogFeaturedPostFragment, sl as formatCurrencyAmount, sn as BUILT_IN_REFERENCE_KINDS, so as defineClientOwnedBlockRuntime, sr as productListBlockDefinition, ss as getAtPath, t as SiteChromeCustomizeProvider, ti as reduceCommerceCart, tl as formatBookingPriceDisplay, tn as unsafeAsLinkedContentEntryId, to as resolveRuntimeEventPricing, tr as formattingTransforms, ts as resolveImageUrlWithContext, tt as deriveTransactionCapabilities, u as PREVIEW_DESIGN_LOAD_ERROR_MESSAGE, uc as DialogDescription, ui as formCopyFragment, ul as parseMediaAssetId, uo as composeHeaderSectionWrapperClassName, ur as buildNewsletterFormInteractiveIslandProps, ut as PreviewTextEditor, va as resolveSpacing, vc as Root, vi as defineFragment, vl as ok$3, vo as shouldReserveFeatureCardIconZone, vr as buildFormInteractiveIslandProps, vs as getTextColorForBackground, vt as createSiteOptionWidgetAdapters, wa as eventCollectionSourceSchemaShape, wi as formatSiteChromeBackgroundTokenLabel, wn as useMediaEditorOptional, wo as RichTextDocSchema, wr as resolveDiscountContext, ws as asDesignBlockId, wt as IconPickerField, xa as buildEventCollectionListingDisplay, xi as boxStylesTransforms, xn as createStoreBackend, xo as resolveBlockIconRenderValue, xr as toRegistrationEvents, xs as resolveTokenOrCssColorValue, xt as OfferingsPreviewGroupOrderField, ya as buildEventCollectionDisplay, yc as Trigger, yi as BACKGROUND_POSITION_PRESET_VALUES, yl as X, yn as FormRenderer, yo as buildGeneratedBlockIconRenderAssetLookupFromUnknown, yr as eventRegistrationBlockDefinition, ys as isCssColorLiteral, yt as SiteOptionPickerField, za as formatDate$3, zc as clsx, zi as getGradientPreset, zl as Image, zn as getResponsiveScopeSpec, zo as CirclePlusIcon, zr as buildCheckoutInteractiveIslandProps, zs as mapOptionValueForSelect, zt as LinkWidgetProvider } from "./SiteChromeCustomizeContext-2z8moxYf.mjs";
|
|
3
|
-
import { i as useOptionalPreviewLayout, t as PreviewQueryProvider } from "./PreviewQueryProvider-
|
|
4
|
-
import { _ as API_ENDPOINTS, a as usePreviewToken, c as createBearerAPIClient, d as unwrapResponse, g as resolveSurfaceDocumentAttributes, h as SURFACE_IDS, i as usePreviewAuthFetch, m as SURFACE_DOCUMENT_DATA_ATTRIBUTE, n as markPreviewAuthExpired, o as isPreviewRuntimeSessionEditable, r as usePreviewAuth, s as ApiRequestError, t as initPreviewAuth } from "./previewAuthStore-
|
|
2
|
+
import { $ as resolvePreviewSidebarTab, $a as markEditableSurfaceForwarding, $c as expectParsedBrandedId, $i as normalizeOfferingsPreviewItemLimit, $n as shopBlockDefinition, $r as singleButtonFragment, $s as DialogContent, $t as createSnapshotFromPageRecord, Aa as formatEventTeacherLine, Ac as parseFooterModuleId, Ai as getGradientPreset, Al as GripVertical, An as buildThemeRuntime, Ao as FileArchiveIcon, Ar as buildCheckoutInteractiveIslandProps, As as unmapValueFromSelect, At as useEditor, Ba as getLocalMinuteOfDay, Bc as parseBookingLocalDate, Bi as backgroundAppearanceQuickColorTokenNames, Bl as ArrowDown, Bn as SITE_CHROME_VISIBLE_HEADER_SELECTOR, Bo as getCurrentResolveImageUrlContext, Br as EMPTY_COMMERCE_CART_STATE, Bs as SelectValue, Bt as useEditorUiStoreInstance, Ca as normalizeLocationMapProps, Cc as composeEventHandlers, Ci as designRuntimeRulesForTheme, Cn as DEFAULT_LAUNCH_READINESS_INPUT, Co as ArrowDownIcon, Cr as giftingBlockDefinition, Cs as getFieldIntent, Ct as MediaField, Da as formatEventDateParts, Dc as useComposedRefs, Di as gradientToCss, Dn as ThemeScope, Do as CirclePlusIcon, Dr as checkoutBlockDefinition, Ds as hasEmptyOption, Dt as RichTextField, Ea as formatEventCompactDateRail, El as Minus, En as isSupportedLoaderEndpoint, Eo as CircleMinusIcon, Er as buildCourseRegistrationInteractiveIslandProps, Es as useSdkConfig, Et as useRichTextImagePicker, Fa as resolveEventCta, Fc as formatBookingDateTime, Fi as sectionTransitionVariantForBoundaryOptionId, Fl as CircleMinus, Fn as generateDefaultAccordionSystem, Fo as PlusIcon, Fr as buildCartDisplay, Ft as prepareBlockEditorManifest, Ga as buildInteractiveIslandProps, Gc as formatBookingPriceDisplay, Gi as createTransformRegistry, Gn as mediaTransforms, Go as resolveMediaStorageUrl, Gr as productItemKey, Gt as pushHistoryEntry, Ha as normalizeEventRegistrationPageSurfaceSubject, Hc as toBookingTimeZone, Hi as parseBackgroundAppearanceColorToken, Hn as planSiteOverlayHeaderClearance, Ho as renderVideo, Hr as buildProductCartItem, Ht as canRedoHistory, Ia as resolveEventLinkProps, Ic as formatBookingInstant, Il as ChevronRight, In as getBlockDefinition, Io as ImagePresets, Ir as buildProductCardDisplay, Is as Select, It as stripTopLevelRoutingUi, J as deriveTransactionCapabilities, Ja as createZodCodec, Jc as publicEventPricingType, Jn as formattingTransforms, Jo as attachRenderableMediaAssetFields, Jr as headingFragment, Js as Tabs, Jt as unsafeAsLinkedContentEntryId, K as beginAutosaveBatch, Ka as createInteractiveIslandCodec, Kc as publicEventPricingCurrency, Ki as runTransforms, Kn as layoutTransforms, Ko as setContextResolveImageUrlContext, Kr as reduceCommerceCart, Kt as redoHistory, La as getEventAvailability, Lc as formatBookingTime, Ll as ChevronLeft, Ln as projectRecurringSchedule, Lo as MediaPlaceholder, Lr as buildProductDetailDisplay, Ls as SelectContent, Lt as getBlockManifestFromSdkConfig, Ma as getCardOrientation, Mc as unsafeAsEditorBlockValues, Mi as defaultSectionTransitionVariantForFamily, Mn as getResponsiveScopeSpec, Mo as FileSpreadsheetIcon, Mr as buildProductListInteractiveIslandProps, Ms as useField, Mt as LinkWidgetProvider, Na as getContainerClass, Nc as addLocalScheduleDays, Ni as sectionTransitionFamilies, Nl as CreditCard, Nn as escapeStyleContent, No as FileTextIcon, Nr as buildShopInteractiveIslandProps, Oa as formatEventPrice, Oc as cn, Oi as GRADIENT_PRESETS, On as containerResponsiveThemeCss, Oo as ClockIcon$1, Or as cartBlockDefinition, Os as mapCurrentValueForSelect, Ot as RichTextWidgetProvider, Pa as groupEventsByDate, Pc as formatBookingDate, Pi as sectionTransitionFamilyForBoundaryOptionId, Pl as CirclePlus, Pn as mergeContentWithBlockStyleOverrides, Po as MinusIcon, Pr as getShopDisplayForItems, Pt as hideThemeV2RawStyleFields, Qa as composeHeaderSectionWrapperClassName, Qc as assertNever$5, Qi as buildOfferingsPreviewRenderStates, Qn as NAV_DROPDOWN_SHIFT_PROPERTY, Qr as blogFeaturedPostFragment, Qs as Dialog, Qt as createRoutingHelpers, Ra as getEventAvailabilityStatus, Rc as formatLocalScheduleDate, Ri as BACKGROUND_BODY_TEXT_MIN_CONTRAST_RATIO, Rl as ChevronDown, Rn as siteFooterManifest, Ro as buildResolveImageUrlContext, Rr as formatCommercePrice, Rs as SelectItem, S as usePreviewThemeOverlay, Sa as buildGoogleMapsDirectionsUrl, Sc as createContextScope, Sn as decodePublicProductCategorySelectorQuery, So as getIconComponent, Sr as getWizardStepsForContext$1, Ss as textColorStyle, St as FileField, Ta as formatDate$3, Tc as Button, Ti as surfaceResolutionContextFromTheme, Tn as AMBIENT_BACKGROUND_ROLES, To as ChevronDownIcon, Tr as courseRegistrationBlockDefinition, Ts as SdkConfigProvider, Tt as ReferenceWidgetProvider, Ua as resolveEventRegistrationScopedEvents, Uc as toScheduledBookingDateTime, Ui as defaultThemeTokens, Un as visibleHeaderClearancePx, Uo as resolveImageUrlWithContext, Ur as deriveCommerceCheckoutState, Ut as canUndoHistory, Va as resolveRuntimeEventPricing, Vc as resolveBookingTimeZoneId, Vi as foregroundTokenForBackgroundAppearanceColorToken, Vl as __exportAll, Vn as SITE_OVERLAY_HEADER_CLEARANCE_CSS_VAR, Vo as renderAudio, Vr as buildPassCartItem, Vt as useOptionalEditorUiStoreInstance, Wa as blockBookingPaymentTermsSchema, Wc as parseEventPageSurfaceSubject, Wn as contentTransforms, Wo as resolveMediaNodeResponsiveImage, Wr as parseStoredCommerceCartState, Wt as createHistoryState, X as idleEditorTransactionQueueState, Xa as defineProgressiveBlockRuntime, Xc as publicEventTicketTypes, Xn as ImageResolveContextProvider, Xo as siblingPath, Xr as faqAccordionFragment, Xs as TabsList, Y as enqueueTransaction, Ya as defineClientOwnedBlockRuntime, Yc as publicEventScalarPrice, Yn as createManifestValidator, Yo as getAtPath, Yr as cardFragment, Ys as TabsContent, Yt as recordsEqual, Z as rejectAutosaveBatch, Zc as formatCurrencyAmount, Zi as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, Zn as useImageResolveContextOptional, Zr as faqHeadingFragment, Zs as TabsTrigger, Zt as useDebouncedLatestSave, _a as when, _i as compileEditorModelRuntime, _n as useMediaEditorOptional, _o as inlineTextToPlainText, _r as resolveDiscountContext, _t as IconPickerField, aa as buildEventCollectionDisplay, ai as heroCtaRowFragment, al as unsafeAsFormId, ao as resolveFeatureCardGeneratedIconSizePx, ar as buildEventListingInteractiveIslandProps, as as parseThemeForPersistence, at as useUISelector, ba as eventCalendarListLayoutCompatibleDisplayModeValues, bc as createCollection, bi as planPageDesignLayoutLookCompatibility, bn as getPageDesignEditorState, bo as canonicalizePersistedBlockButtonRole, br as WIZARD_STEPS$1, bs as mergeStyles, bt as ButtonVariantField, ca as eventCollectionDisplaySchemaShape, cc as Root, ci as bodyCopyFragment, cl as ok$3, cn as validateBlockManifestIssues, co as parseBlockIconValue, cr as buildEventCalendarListingDisplay, cs as resolveOnColorForThemeToken, da as buildEventRuntimeFilters, di as getAnchorClasses, do as parseGeneratedIconSetId, dr as buildFormInteractiveIslandProps, ds as pageDesignEditorBackgroundOverrideOwner, dt as createSiteOptionWidgetAdapters, ea as resolveOfferingsPreviewCoursePath, ec as DialogDescription, ei as formEmbedFragment, el as parseMediaAssetId, en as BUILT_IN_REFERENCE_KINDS, eo as splitPositioningClasses, er as productListBlockDefinition, f as PREVIEW_DESIGN_LOAD_ERROR_MESSAGE, fa as getEventRuntimeFiltersKey, fi as boxStylesTransforms, fn as FormRenderer, fo as RichTextDocSchema, fr as eventRegistrationBlockDefinition, fs as asDesignBlockId, ft as SiteOptionPickerField, ga as el, gi as applyCompiledRuntimeFieldsToContent, gl as Sparkles, gn as MediaEditorContextProvider, go as coerceInlineTextWithFallback, gr as findPreSelectedEvent, gs as normalizeCardVariantRole, gt as InlineTextField, ha as normalizeOptionalId, hi as formatSiteChromeBackgroundTokenLabel, hl as Star, hn as MediaEditor, ho as logger, hr as findEventByOccurrenceId, hs as normalizeBoxStylesCardVariant, ht as OfferingsPreviewWidgetProvider, i as usePreviewDesignHistoryOrder, ia as resolveSpacing, ii as ctaCopyFragment, il as unsafeAsCustomerPassId, io as FEATURE_CARD_ICON_TREATMENTS, ir as eventListingBlockDefinition, is as themeButtonClassName, ja as formatTime$3, jc as unsafeAsEditorBlockId, ji as parseGradientPresetId, jn as DEFAULT_THEME_RESPONSIVE_MODE, jo as FileAudioIcon, jr as buildProductDetailInteractiveIslandProps, js as FieldFrame, jt as LinkField, ka as formatEventPriceDisplay, kc as clsx, ki as GRADIENT_PRESET_IDS, kl as Image, kn as createCustomBlockRegistry, ko as DownloadIcon, kr as buildCartInteractiveIslandProps, ks as mapOptionValueForSelect, kt as EditorProvider, la as eventCollectionHydrationSchema, lc as Trigger, li as defineFragment, ll as X, lo as resolveBlockIconRenderValue, lr as buildEventCalendarListingRender, ls as resolveTokenOrCssColorValue, lt as useEntryEditorController, m as reportPreviewDesignError, ma as normalizeCsvString, mi as resolveBackgroundColorValue, mn as createStoreBackend, mo as isRecord$20, mr as toRegistrationEvents, ms as ICON_CONFIG, mt as OfferingsPreviewGroupOrderField, n as useSiteChromeCustomizeOptional, na as resolveOfferingsPreviewGroups, nc as DialogHeader, ni as testimonialsCarouselFragment, nl as unsafeAsAppointmentResourceId, nn as parseReferenceKind, no as PUBLIC_DOWNLOAD_MEDIA_TYPES, nr as newsletterSignupBlockDefinition, ns as AFFORDANCE_SUPPRESS_CLASS, nt as PreviewInlineTextEditor, oa as buildEventCollectionHydration, oi as ctaRowFragment, ol as unsafeAsPassId, on as PaletteProvider, oo as shouldReserveFeatureCardIconZone, or as eventCalendarBlockDefinition, os as getTextColorForBackground, ot as EditableBlockProvider, p as PREVIEW_DESIGN_SAVE_ERROR_MESSAGE, pa as normalizeCsvIds, pi as resolveSurfaceForegroundStyles, pl as Ticket, pn as evaluateVisibility, po as isObjectRecord, pr as buildEventRegistrationInteractiveIslandProps, ps as assertNever$6, pt as SiteOptionWidgetProvider, q as confirmAutosaveBatch, qa as defineInteractiveIslandMetaKeys, qc as publicEventPricingMode, qi as ctaButton, qn as uiTransforms, qo as SECTION_BACKGROUND_MIN_SOURCE_WIDTH, qr as richTextFragment, qt as undoHistory, r as PreviewDesignHistoryOrderProvider, ra as isSemanticSpacing, rc as DialogTitle, ri as testimonialsHeadingFragment, rl as unsafeAsAppointmentServiceId, ro as mediaSchema, rr as buildNewsletterFormInteractiveIslandProps, rs as parseThemeButtonVariantId, rt as PreviewTextEditor, sa as buildEventCollectionListingDisplay, sc as Content, si as heroCopyFragment, sl as err$2, sn as usePalette, so as buildGeneratedBlockIconRenderAssetLookupFromUnknown, sr as buildEventCalendarInteractiveIslandProps, ss as isCssColorLiteral, st as EntryControllerProvider, t as SiteChromeCustomizeProvider, ta as resolveOfferingsPreviewGroupCta, tc as DialogFooter, ti as formCopyFragment, tl as parseSiteId, to as planSiteChromePlacement, tr as productDetailBlockDefinition, tt as PreviewRichTextEditor, ua as eventCollectionSourceSchemaShape, uc as createCollapsibleScope, ui as BACKGROUND_POSITION_PRESET_VALUES, ul as Upload, un as createManifestFormAdapter, uo as parseGeneratedIconAssetId, ur as formBlockDefinition, us as isThemeV2NormalEditorRawStyleFieldName, ut as createSiteOptionApiLoader, va as bindingSchema, vc as useId$1, vi as retargetCompiledBoundaryRuntimeForContentAdjacency, vn as useApiMediaUploader, vo as isInlineTextEmpty, vr as resolveEventRequiresPayment, vt as EntryPickerField, wa as toLocationMapHydrationProps, wc as Primitive, wn as deriveLaunchReadiness, wo as ArrowRightIcon, wr as buildGiftingInteractiveIslandProps, ws as isHeaderField, wt as ReferenceField, x as PreviewThemeOverlayProvider, xa as eventCalendarListLayoutOptions, xc as useControllableState, xi as componentRuntimeRulesForTheme, xl as Plus, xo as isBlockButtonRole, xr as getStepNumber$1, xs as rgbColorValue, xt as ButtonWidgetProvider, y as PreviewDesignCoordinatorProvider, ya as previewStageSchema, yc as useDirection, yi as retargetCompiledRuntimeFieldsForContentAdjacency, yl as RotateCcw, yn as applyPageDesignEditorAction, yo as parseInlineTextFromUnknown, yr as resolveRegistrationTarget, ys as backgroundColorStyle, yt as EntryPickerWidgetProvider, za as getLocalDateKey, zc as getBookingLocalDateKey, zi as backgroundAppearanceColorTokenNames, zn as siteHeaderManifest, zo as computeMediaTransformStyle, zr as formatInterval, zs as SelectTrigger, zt as useEditorUiStore } from "./SiteChromeCustomizeContext-C87qlKWw.mjs";
|
|
3
|
+
import { i as useOptionalPreviewLayout, t as PreviewQueryProvider } from "./PreviewQueryProvider-DgFDIwvK.mjs";
|
|
4
|
+
import { _ as API_ENDPOINTS, a as usePreviewToken, c as createBearerAPIClient, d as unwrapResponse, g as resolveSurfaceDocumentAttributes, h as SURFACE_IDS, i as usePreviewAuthFetch, m as SURFACE_DOCUMENT_DATA_ATTRIBUTE, n as markPreviewAuthExpired, o as isPreviewRuntimeSessionEditable, r as usePreviewAuth, s as ApiRequestError, t as initPreviewAuth } from "./previewAuthStore-Dev9CdG9.mjs";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import React, { Children, Component, Fragment, cloneElement, createContext, createElement, forwardRef, isValidElement, startTransition, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -3682,7 +3682,10 @@ function uniqByOccurrenceId(events) {
|
|
|
3682
3682
|
return out;
|
|
3683
3683
|
}
|
|
3684
3684
|
function selectEventDetails(args) {
|
|
3685
|
-
const all = uniqByOccurrenceId((args.events ?? []).filter(Boolean)
|
|
3685
|
+
const all = uniqByOccurrenceId(resolveEventRegistrationScopedEvents((args.events ?? []).filter(Boolean), {
|
|
3686
|
+
occurrenceContext: args.occurrenceContext,
|
|
3687
|
+
subject: args.subject
|
|
3688
|
+
}));
|
|
3686
3689
|
const occurrenceContext = args.occurrenceContext ?? null;
|
|
3687
3690
|
const otherLimit = parseLimit$1(args.otherDatesLimit, 5);
|
|
3688
3691
|
const selectedFromContext = (() => {
|
|
@@ -4610,11 +4613,13 @@ function EventDetailsView({ selection, showVenue, showMap, showOtherDates, showC
|
|
|
4610
4613
|
}
|
|
4611
4614
|
//#endregion
|
|
4612
4615
|
//#region ../blocks/src/system/runtime/nodes/event-details.server.tsx
|
|
4613
|
-
function EventDetailsSSR({ blockId, occurrenceContext, events, showVenue = true, showMap = true, showOtherDates = true, otherDatesLimit, showCost = true, showAcceptedPasses = true, showAcceptedMemberships = true, sitePasses, siteMemberships, autoApplyDiscount, className, children }) {
|
|
4616
|
+
function EventDetailsSSR({ blockId, occurrenceContext, subject, events, showVenue = true, showMap = true, showOtherDates = true, otherDatesLimit, showCost = true, showAcceptedPasses = true, showAcceptedMemberships = true, sitePasses, siteMemberships, autoApplyDiscount, className, children }) {
|
|
4614
4617
|
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
4618
|
+
const normalizedSubject = normalizeEventRegistrationPageSurfaceSubject(subject);
|
|
4615
4619
|
const selection = selectEventDetails({
|
|
4616
4620
|
events: events ?? null,
|
|
4617
4621
|
occurrenceContext: occurrenceContext ?? null,
|
|
4622
|
+
subject: normalizedSubject,
|
|
4618
4623
|
nowIso,
|
|
4619
4624
|
otherDatesLimit
|
|
4620
4625
|
});
|
|
@@ -4629,6 +4634,7 @@ function EventDetailsSSR({ blockId, occurrenceContext, events, showVenue = true,
|
|
|
4629
4634
|
children: [
|
|
4630
4635
|
/* @__PURE__ */ jsx(IslandPropsScript, { value: {
|
|
4631
4636
|
occurrenceContext,
|
|
4637
|
+
subject: normalizedSubject,
|
|
4632
4638
|
events,
|
|
4633
4639
|
showVenue,
|
|
4634
4640
|
showMap,
|
|
@@ -15613,16 +15619,29 @@ function cleanupStaleRegistrations() {
|
|
|
15613
15619
|
}
|
|
15614
15620
|
//#endregion
|
|
15615
15621
|
//#region ../blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.ts
|
|
15622
|
+
const eventRegistrationStripeReturnDeps = {
|
|
15623
|
+
usePaymentVerification,
|
|
15624
|
+
consumeSearchParam,
|
|
15625
|
+
scrollToBlock,
|
|
15626
|
+
cleanupStaleRegistrations,
|
|
15627
|
+
clearPendingRegistration,
|
|
15628
|
+
getPendingRegistration
|
|
15629
|
+
};
|
|
15616
15630
|
function useEventRegistrationStripeReturn(options) {
|
|
15631
|
+
return useEventRegistrationStripeReturnWithDeps(options, eventRegistrationStripeReturnDeps);
|
|
15632
|
+
}
|
|
15633
|
+
function useEventRegistrationStripeReturnWithDeps(options, deps) {
|
|
15617
15634
|
const { api, events, occurrenceId, pendingAttendeeId, setErrorMessage, setFormData, setPaymentSelection, setPendingAttendeeId, setRegistrationResult, setSelectedEvent, setSelectedAttendanceMode, setTicketSelections, setStep, setTicketsCount, step } = options;
|
|
15618
|
-
const
|
|
15635
|
+
const verificationConfig = useMemo(() => step === "verifying-payment" && pendingAttendeeId ? { transactionId: pendingAttendeeId } : null, [step, pendingAttendeeId]);
|
|
15636
|
+
const verification = deps.usePaymentVerification(verificationConfig);
|
|
15619
15637
|
useEffect(() => {
|
|
15620
|
-
cleanupStaleRegistrations();
|
|
15621
|
-
const registrationStatus = consumeSearchParam("registration");
|
|
15622
|
-
if (
|
|
15638
|
+
deps.cleanupStaleRegistrations();
|
|
15639
|
+
const registrationStatus = deps.consumeSearchParam("registration");
|
|
15640
|
+
if (registrationStatus !== "cancelled" && registrationStatus !== "success") return;
|
|
15641
|
+
deps.scrollToBlock(EVENT_REGISTRATION_ANCHOR_ID);
|
|
15623
15642
|
const siteId = api.config.siteId;
|
|
15624
15643
|
if (!siteId) return;
|
|
15625
|
-
const pending = getPendingRegistration(siteId, occurrenceId || void 0);
|
|
15644
|
+
const pending = deps.getPendingRegistration(siteId, occurrenceId || void 0);
|
|
15626
15645
|
if (!pending) return;
|
|
15627
15646
|
setFormData(pending.formData);
|
|
15628
15647
|
setTicketSelections(pending.ticketSelections);
|
|
@@ -15642,7 +15661,7 @@ function useEventRegistrationStripeReturn(options) {
|
|
|
15642
15661
|
useEffect(() => {
|
|
15643
15662
|
if (verification.status === "completed") {
|
|
15644
15663
|
const siteId = api.config.siteId;
|
|
15645
|
-
if (siteId && occurrenceId) clearPendingRegistration(siteId, occurrenceId);
|
|
15664
|
+
if (siteId && occurrenceId) deps.clearPendingRegistration(siteId, occurrenceId);
|
|
15646
15665
|
setRegistrationResult({ status: "confirmed" });
|
|
15647
15666
|
setStep("success");
|
|
15648
15667
|
} else if (verification.status === "failed") {
|
|
@@ -15753,13 +15772,7 @@ function useEventRegistrationSubmitWithDeps(options, deps) {
|
|
|
15753
15772
|
if (!result.alreadyRegistered && result.status === "confirmed" && result.pendingPayment && (method === "stripe" || method === "pass_bundle" || method === "membership_bundle")) {
|
|
15754
15773
|
options.setPendingAttendeeId(result.attendeeId);
|
|
15755
15774
|
options.setStep("redirecting");
|
|
15756
|
-
const
|
|
15757
|
-
const successParams = new URLSearchParams(currentUrl.search);
|
|
15758
|
-
successParams.set("registration", "success");
|
|
15759
|
-
const successUrl = `${currentUrl.origin}${currentUrl.pathname}?${successParams.toString()}${currentUrl.hash}`;
|
|
15760
|
-
const cancelParams = new URLSearchParams(currentUrl.search);
|
|
15761
|
-
cancelParams.set("registration", "cancelled");
|
|
15762
|
-
const cancelUrl = `${currentUrl.origin}${currentUrl.pathname}?${cancelParams.toString()}${currentUrl.hash}`;
|
|
15775
|
+
const { successUrl, cancelUrl } = buildCheckoutReturnUrls("registration", EVENT_REGISTRATION_ANCHOR_ID);
|
|
15763
15776
|
const checkoutType = method === "pass_bundle" ? "pass_bundle" : method === "membership_bundle" ? "membership_bundle" : "event";
|
|
15764
15777
|
const checkoutResult = await options.api.createEventCheckout({
|
|
15765
15778
|
attendeeId: result.attendeeId,
|
|
@@ -19165,6 +19178,7 @@ const LeafletStaticMap = ({ location, label, className = "", height = 200, zoom
|
|
|
19165
19178
|
function toEventDetailsClientProps(props) {
|
|
19166
19179
|
return {
|
|
19167
19180
|
occurrenceContext: props.occurrenceContext,
|
|
19181
|
+
subject: props.subject,
|
|
19168
19182
|
events: props.events ? [...props.events] : props.events,
|
|
19169
19183
|
showVenue: props.showVenue,
|
|
19170
19184
|
showMap: props.showMap,
|
|
@@ -19180,10 +19194,11 @@ function toEventDetailsClientProps(props) {
|
|
|
19180
19194
|
nowIso: props.nowIso
|
|
19181
19195
|
};
|
|
19182
19196
|
}
|
|
19183
|
-
function EventDetailsClient({ occurrenceContext, events, showVenue = true, showMap = true, showOtherDates = true, otherDatesLimit, showCost = true, showAcceptedPasses = true, showAcceptedMemberships = true, sitePasses, siteMemberships, autoApplyDiscount, className, nowIso, children }) {
|
|
19197
|
+
function EventDetailsClient({ occurrenceContext, subject, events, showVenue = true, showMap = true, showOtherDates = true, otherDatesLimit, showCost = true, showAcceptedPasses = true, showAcceptedMemberships = true, sitePasses, siteMemberships, autoApplyDiscount, className, nowIso, children }) {
|
|
19184
19198
|
const selection = selectEventDetails({
|
|
19185
19199
|
events: events ?? null,
|
|
19186
19200
|
occurrenceContext: occurrenceContext ?? null,
|
|
19201
|
+
subject,
|
|
19187
19202
|
nowIso: nowIso ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
19188
19203
|
otherDatesLimit
|
|
19189
19204
|
});
|
|
@@ -36636,17 +36651,17 @@ function LinkedEntryEditEventBridge() {
|
|
|
36636
36651
|
//#region ../preview-next/src/client/preview/PreviewShellLayout.tsx
|
|
36637
36652
|
const previewContainerResponsiveEnabled = process.env.NEXT_PUBLIC_ENABLE_PREVIEW_CONTAINER_RESPONSIVE !== "false";
|
|
36638
36653
|
const PreviewEditorSidebar = React.lazy(async () => {
|
|
36639
|
-
return { default: (await import("./PreviewEditorSidebar-
|
|
36654
|
+
return { default: (await import("./PreviewEditorSidebar-DcYJxTgc.mjs")).PreviewEditorSidebar };
|
|
36640
36655
|
});
|
|
36641
36656
|
const PreviewEditorUI = React.lazy(async () => {
|
|
36642
|
-
return { default: (await import("./PreviewEditorUI-
|
|
36657
|
+
return { default: (await import("./PreviewEditorUI-Ctt1yTJr.mjs")).PreviewEditorUI };
|
|
36643
36658
|
});
|
|
36644
36659
|
const previewPaneContainmentStyle = {
|
|
36645
36660
|
contain: "layout paint",
|
|
36646
36661
|
isolation: "isolate",
|
|
36647
36662
|
transform: "translateZ(0)"
|
|
36648
36663
|
};
|
|
36649
|
-
function PreviewShellLayout({ children, theme, surfaceId, siteId, dashboardBaseUrl = null, pageId, entryData, contentTypeSchema, referenceContentTypeKeys = [], draftContent, currentTemplate, apiClient, bearerToken, themeId = null, themeSelectionId = null, themeSelectionVersion = null, themeSelectionUpdatedAt = null, themeSelectionButtonStyleSelection = null,
|
|
36664
|
+
function PreviewShellLayout({ children, theme, surfaceId, siteId, dashboardBaseUrl = null, pageId, entryData, contentTypeSchema, referenceContentTypeKeys = [], draftContent, currentTemplate, apiClient, bearerToken, themeId = null, themeSelectionId = null, themeSelectionVersion = null, themeSelectionUpdatedAt = null, themeSelectionButtonStyleSelection = null, themeSelectionHeaderLayoutId = null, themeSelectionHeaderStyleId = null, themeSelectionHeaderLookId = null, themeSelectionFooterLookId = null, themeSelectionHeaderContext, supabaseUrl, isSiteLaunched, maintenanceModeEnabled, entrySubrouteContext, assistantPanel, sdkConfig, mediaAssets, bookingOfferingPresets, themeRuntime = defaultPreviewThemeRuntime, siteStyleAccess = { kind: "hidden" }, onFooterSaved }) {
|
|
36650
36665
|
const layout = useOptionalPreviewLayout();
|
|
36651
36666
|
const headerNode = layout?.headerNode ?? null;
|
|
36652
36667
|
const bannerNode = layout?.bannerNode ?? null;
|
|
@@ -36822,7 +36837,6 @@ function PreviewShellLayout({ children, theme, surfaceId, siteId, dashboardBaseU
|
|
|
36822
36837
|
themeSelectionVersion,
|
|
36823
36838
|
themeSelectionUpdatedAt,
|
|
36824
36839
|
themeSelectionButtonStyleSelection,
|
|
36825
|
-
runtimePaletteState,
|
|
36826
36840
|
themeSelectionHeaderLayoutId,
|
|
36827
36841
|
themeSelectionHeaderStyleId,
|
|
36828
36842
|
themeSelectionHeaderLookId,
|
|
@@ -36880,7 +36894,6 @@ function PreviewShellLayout({ children, theme, surfaceId, siteId, dashboardBaseU
|
|
|
36880
36894
|
selectionVersion: themeSelectionVersion,
|
|
36881
36895
|
selectionUpdatedAt: themeSelectionUpdatedAt,
|
|
36882
36896
|
buttonStyleSelection: themeSelectionButtonStyleSelection,
|
|
36883
|
-
runtimePaletteState,
|
|
36884
36897
|
headerLayoutId: themeSelectionHeaderLayoutId,
|
|
36885
36898
|
headerStyleId: themeSelectionHeaderStyleId,
|
|
36886
36899
|
headerLookId: themeSelectionHeaderLookId,
|
|
@@ -36915,7 +36928,7 @@ function PreviewShellLayout({ children, theme, surfaceId, siteId, dashboardBaseU
|
|
|
36915
36928
|
}
|
|
36916
36929
|
//#endregion
|
|
36917
36930
|
//#region ../preview-next/src/client/preview/PreviewShell.tsx
|
|
36918
|
-
function PreviewShell({ children, apiBaseUrl, blockApiConfig, siteId, siteSlug, editableId, previewSession, previewToken, dashboardBaseUrl = null, surfaceId, theme, themeId = null, themeSelectionId = null, themeSelectionVersion = null, themeSelectionUpdatedAt = null, themeSelectionButtonStyleSelection = null,
|
|
36931
|
+
function PreviewShell({ children, apiBaseUrl, blockApiConfig, siteId, siteSlug, editableId, previewSession, previewToken, dashboardBaseUrl = null, surfaceId, theme, themeId = null, themeSelectionId = null, themeSelectionVersion = null, themeSelectionUpdatedAt = null, themeSelectionButtonStyleSelection = null, themeSelectionHeaderLayoutId = null, themeSelectionHeaderStyleId = null, themeSelectionHeaderLookId = null, themeSelectionFooterLookId = null, themeSelectionHeaderContext, pageId, routeId, entryData, contentTypeSchema, referenceContentTypeKeys = [], draftContent, currentTemplate, initialStatus, initialBlocks, pageMetadata, isSiteLaunched, maintenanceModeEnabled, entrySubrouteContext, assistantPanel, sdkConfig, mediaAssets, bookingOfferingPresets, supabaseUrl, themeRuntime = defaultPreviewThemeRuntime, designEditorEligibility, hideSiteStyleConfigurator = false, baseFetch, onFooterSaved }) {
|
|
36919
36932
|
const apiClient = useMemo(() => createBearerAPIClient(previewToken, apiBaseUrl), [previewToken, apiBaseUrl]);
|
|
36920
36933
|
const resolvedDesignEditorEligibility = designEditorEligibility ?? defaultDesignEditorEligibility({
|
|
36921
36934
|
pageId,
|
|
@@ -36973,7 +36986,6 @@ function PreviewShell({ children, apiBaseUrl, blockApiConfig, siteId, siteSlug,
|
|
|
36973
36986
|
themeSelectionVersion,
|
|
36974
36987
|
themeSelectionUpdatedAt,
|
|
36975
36988
|
themeSelectionButtonStyleSelection,
|
|
36976
|
-
runtimePaletteState,
|
|
36977
36989
|
themeSelectionHeaderLayoutId,
|
|
36978
36990
|
themeSelectionHeaderStyleId,
|
|
36979
36991
|
themeSelectionHeaderLookId,
|
|
@@ -39396,10 +39408,6 @@ function SdkPreviewModeRuntime(props) {
|
|
|
39396
39408
|
mediaAssets: content.mediaAssets
|
|
39397
39409
|
};
|
|
39398
39410
|
return /* @__PURE__ */ jsx(PreviewShell, {
|
|
39399
|
-
runtimePaletteState: {
|
|
39400
|
-
kind: "invalid",
|
|
39401
|
-
reason: "missing-active-palette-reference"
|
|
39402
|
-
},
|
|
39403
39411
|
apiBaseUrl,
|
|
39404
39412
|
blockApiConfig: useMemo(() => ({
|
|
39405
39413
|
baseUrl: apiBaseUrl,
|