@riverbankcms/sdk 0.153.0 → 0.155.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 +2 -0
- package/dist/{EventEmbeddedCheckoutStep-veN-QiAE.mjs → EventEmbeddedCheckoutStep-DALtAjqG.mjs} +1 -1
- package/dist/{PreviewEditorSidebar-jI_4DTZY.mjs → PreviewEditorSidebar-CbSbqmz3.mjs} +219 -38
- package/dist/{PreviewEditorUI-ORkVZhfu.mjs → PreviewEditorUI-CKKnAw11.mjs} +26 -58
- package/dist/{SdkPreviewModeRuntime-DaNqevI1.mjs → SdkPreviewModeRuntime-wLkXrWy9.mjs} +177 -84
- package/dist/{SiteChromeCustomizeContext-CgNuBHC0.mjs → SiteChromeCustomizeContext-BQ8vvKb-.mjs} +9824 -5829
- package/dist/{ThemedButton-X2UxhW6F.mjs → ThemedButton-Bi0rgijy.mjs} +482 -85
- package/dist/_dts/ai/src/contracts/proposals.d.ts +42873 -16847
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +5432 -1810
- package/dist/_dts/api/src/billing.d.ts +2 -0
- package/dist/_dts/api/src/billingEndpointDefinitions.d.ts +78 -0
- package/dist/_dts/api/src/bookingAdjustments.d.ts +3 -2
- package/dist/_dts/api/src/bookingConfig.d.ts +4 -12
- package/dist/_dts/api/src/bookingManagementEventEndpointTypes.d.ts +2 -2
- package/dist/_dts/api/src/bookingOperations.d.ts +11 -2
- package/dist/_dts/api/src/bookingPeople.d.ts +20 -1
- package/dist/_dts/api/src/bookingPeopleEndpointDefinitions.d.ts +8 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +5 -106
- package/dist/_dts/api/src/bookings.d.ts +10 -4
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +1 -1
- package/dist/_dts/api/src/common/envelope.d.ts +2 -2
- package/dist/_dts/api/src/contentRuntime.d.ts +5 -3
- package/dist/_dts/api/src/endpoints.d.ts +89 -44
- package/dist/_dts/api/src/eventManagementContracts.d.ts +20 -11
- package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +1 -1
- package/dist/_dts/api/src/index.d.ts +9 -4
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -0
- package/dist/_dts/api/src/moneyPayments.d.ts +116 -0
- package/dist/_dts/api/src/onboarding/surfaceData.d.ts +2 -0
- package/dist/_dts/api/src/privacyPolicy.d.ts +20 -2
- package/dist/_dts/api/src/public/types.d.ts +1 -0
- package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +1 -0
- package/dist/_dts/api/src/publicBookingService.d.ts +1 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +4 -0
- package/dist/_dts/api/src/sdk-event-management.d.ts +1 -0
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +24 -9
- package/dist/_dts/api/src/sdkContracts.d.ts +2 -0
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +5 -3
- package/dist/_dts/api/src/sdkPullEventContracts.d.ts +15 -4
- package/dist/_dts/api/src/sdkThemeWire.d.ts +172 -103
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -2
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +18 -0
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +17 -16
- package/dist/_dts/api/src/siteSettings.d.ts +1 -0
- package/dist/_dts/api/src/siteTerms.d.ts +100 -0
- package/dist/_dts/api/src/stripeConnectSetup.d.ts +90 -0
- package/dist/_dts/api/src/types.d.ts +13 -32
- package/dist/_dts/api/src/webhooks.d.ts +9 -9
- package/dist/_dts/api/src/wholeSeriesRuns.d.ts +2 -4
- package/dist/_dts/block-form/src/client/index.d.ts +2 -1
- package/dist/_dts/block-form/src/widgets/DateField/DateField.d.ts +3 -1
- package/dist/_dts/block-form/src/widgets/DateField/datePickerPopover.d.ts +3 -1
- package/dist/_dts/block-form/src/widgets/DateTimeField/DateTimeField.d.ts +3 -1
- package/dist/_dts/blocks/src/client/carousel.d.ts +1 -0
- package/dist/_dts/blocks/src/client/site-chrome.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +12 -33
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +30 -118
- package/dist/_dts/blocks/src/index.d.ts +2 -2
- package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +1 -0
- package/dist/_dts/blocks/src/pageRenderPlan.d.ts +8 -1
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +1 -0
- package/dist/_dts/blocks/src/primitives/content/components/RichText.d.ts +1 -1
- package/dist/_dts/blocks/src/primitives/content/primitives.d.ts +4 -1
- package/dist/_dts/blocks/src/primitives/layout/Section.d.ts +1 -0
- package/dist/_dts/blocks/src/rendering/server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/fields.d.ts +0 -4
- package/dist/_dts/blocks/src/system/blocks/events/shared/index.d.ts +0 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +13 -9
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/form.d.ts +10 -0
- package/dist/_dts/blocks/src/system/blocks/image-gallery/fields.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/image-gallery.d.ts +6 -1
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +47 -45
- package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +12 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/catalogue.d.ts +7 -1
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/index.d.ts +14 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/itemData.d.ts +12 -0
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +56 -6
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/photoCount.d.ts +3 -12
- package/dist/_dts/blocks/src/system/blocks/shared/siteTerms.d.ts +17 -0
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime-layout.d.ts +23 -0
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime-profile.d.ts +20 -0
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +17 -16
- package/dist/_dts/blocks/src/system/blocks/site-footer.d.ts +1 -1
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +119 -9
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +24 -24
- package/dist/_dts/blocks/src/system/manifest/validation.d.ts +3 -1
- package/dist/_dts/blocks/src/system/node/fragments/backgroundLayer.d.ts +6 -0
- package/dist/_dts/blocks/src/system/node/fragments/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/node/fragments/lookSlot.d.ts +22 -3
- package/dist/_dts/blocks/src/system/node/fragments/responsiveTwoColumn.d.ts +3 -1
- package/dist/_dts/blocks/src/system/node/fragments/sectionHead.d.ts +15 -0
- package/dist/_dts/blocks/src/system/node/fragments/styledSection.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +51 -198
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +21 -99
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingFlowController.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useBookingSubmission.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useSiteTermsAgreement.d.ts +17 -0
- package/dist/_dts/blocks/src/system/runtime/hooks/useSiteTermsAgreement.state.d.ts +42 -0
- package/dist/_dts/blocks/src/system/runtime/lookSurfaces.d.ts +22 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +6 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +15 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/carousel.client.d.ts +5 -30
- package/dist/_dts/blocks/src/system/runtime/nodes/carousel.server.d.ts +3 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/carousel.shared.d.ts +71 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/lookPresentation.d.ts +16 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/presentation.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/AttendeeDetailsStep.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/CalendarAction.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SuccessStep.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/bookingCalendar.d.ts +16 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/finishedBooking.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +42 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/dates.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/CardListItem.d.ts +26 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventItem.d.ts +17 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCardListContent.d.ts +9 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +49 -21
- package/dist/_dts/blocks/src/system/runtime/nodes/form.fields.d.ts +5 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/form.interactive.d.ts +11 -79
- package/dist/_dts/blocks/src/system/runtime/nodes/form.parts.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/form.server.d.ts +2 -13
- package/dist/_dts/blocks/src/system/runtime/nodes/gifting.interactive.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.interactive.d.ts +8 -72
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.parts.d.ts +6 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview-catalogue.d.ts +5 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview-content.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/CheckboxChoice.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/shared/components/SiteTermsAgreementField.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/shared/siteTermsAgreement.d.ts +81 -0
- package/dist/_dts/blocks/src/system/runtime/shared/siteTermsCheckoutApi.d.ts +14 -0
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.d.ts +3 -0
- package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/registry/footerArrangement.d.ts +6 -0
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +0 -11
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +3 -10
- package/dist/_dts/blocks/src/system/types/link.d.ts +2 -0
- package/dist/_dts/calendar/src/icsRenderer.d.ts +23 -0
- package/dist/_dts/calendar/src/index.d.ts +2 -0
- package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/orderConfirmationPlanning.d.ts +1 -0
- package/dist/_dts/commerce/src/purchase/types.d.ts +5 -0
- package/dist/_dts/content-editor/src/FooterComposerOverview.d.ts +5 -2
- package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +1 -1
- package/dist/_dts/content-editor/src/FooterNavigationLayoutControl.d.ts +6 -3
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +3 -1
- package/dist/_dts/content-editor/src/controller/editorLeaseParticipation.d.ts +1 -1
- package/dist/_dts/content-editor/src/controller/publicationDate.d.ts +5 -0
- package/dist/_dts/content-editor/src/footerComposer.d.ts +2 -1
- package/dist/_dts/content-editor/src/footerComposerPanelTypes.d.ts +3 -1
- package/dist/_dts/content-editor/src/footerNavigationLayoutState.d.ts +56 -0
- package/dist/_dts/content-editor/src/footerPreviewRuntime.d.ts +2 -1
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +3 -4
- package/dist/_dts/content-editor/src/useFooterNavigationLayout.d.ts +11 -8
- package/dist/_dts/content-model/src/content-types/entryValidation.d.ts +6 -5
- package/dist/_dts/content-model/src/content-types/schema.d.ts +4 -0
- package/dist/_dts/content-model/src/contentManifest.d.ts +10 -2
- package/dist/_dts/content-model/src/definitions/shared.d.ts +2 -0
- package/dist/_dts/core/src/booking-date-time.d.ts +5 -0
- package/dist/_dts/core/src/booking-refunds.d.ts +43 -0
- package/dist/_dts/core/src/branded.d.ts +6 -0
- package/dist/_dts/core/src/date-display.d.ts +90 -0
- package/dist/_dts/core/src/date-time-formatter.d.ts +2 -0
- package/dist/_dts/core/src/footer-arrangement.d.ts +8 -1
- package/dist/_dts/core/src/footer-composition-types.d.ts +6 -1
- package/dist/_dts/core/src/footer-composition.d.ts +1 -1
- package/dist/_dts/core/src/footer-navigation-layout.d.ts +3 -0
- package/dist/_dts/core/src/index.d.ts +4 -1
- package/dist/_dts/core/src/mailing-list-setup.d.ts +3 -0
- package/dist/_dts/core/src/mailing-list-submission.d.ts +6 -1
- package/dist/_dts/core/src/public-profile.d.ts +3 -1
- package/dist/_dts/core/src/scheduled-date-time.d.ts +69 -0
- package/dist/_dts/core/src/site-terms.d.ts +94 -0
- package/dist/_dts/core/src/whole-series-run-schedule.d.ts +2 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +356 -9
- package/dist/_dts/db/src/schemas/forms.d.ts +32 -32
- package/dist/_dts/editor/src/chrome/EditorChrome.d.ts +2 -2
- package/dist/_dts/editor/src/chrome/EditorStatusBar.d.ts +3 -2
- package/dist/_dts/editor/src/chrome/statusBarPresentation.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/widgets/link/LinkContentList.d.ts +2 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPicker.d.ts +3 -0
- package/dist/_dts/editor-blocks/src/widgets/link/LinkPickerDialog.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +3 -0
- package/dist/_dts/editor-blocks/src/widgets/link/draft.d.ts +6 -1
- package/dist/_dts/editor-blocks/src/widgets/link/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/blocks/ArrangementBlockToolbar.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/arrangementControlsModel.d.ts +8 -1
- package/dist/_dts/preview-next/src/client/blocks/previewCustomizeControlPlan.d.ts +4 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +3 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +3 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +4 -1
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +27 -5
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/useConfirmedPreferenceRecord.d.ts +12 -0
- package/dist/_dts/preview-next/src/client/preview/usePersistedFooterPreferences.d.ts +26 -0
- package/dist/_dts/preview-next/src/client/preview/usePersistedHeaderPreferences.d.ts +40 -2
- package/dist/_dts/preview-next/src/client/sdk/SdkPreviewMode.d.ts +2 -0
- package/dist/_dts/sdk/src/config/typed-entry-links.test-d.d.ts +1 -0
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -3
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +4 -46
- package/dist/_dts/sdk/src/date-time/index.d.ts +2 -68
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +4 -2
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +3 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +7 -4
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +3 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/ThemeFontLoader.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/buttonColourContract.d.ts +2 -0
- package/dist/_dts/theme-core/src/buttons/resolveButtonColourStates.d.ts +2 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/lanternRecipes.d.ts +60 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/quietArrow.d.ts +12 -8
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +69 -8
- package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +22 -1
- package/dist/_dts/theme-core/src/buttons/types.d.ts +358 -46
- package/dist/_dts/theme-core/src/buttons/typography.d.ts +24 -0
- package/dist/_dts/theme-core/src/cards/types.d.ts +8 -8
- package/dist/_dts/theme-core/src/footer/effectiveNavLinkStyle.d.ts +1 -1
- package/dist/_dts/theme-core/src/footer/generateFooterCss.d.ts +4 -1
- package/dist/_dts/theme-core/src/footer/mode.d.ts +2 -11
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/header/containerSchema.d.ts +1 -0
- package/dist/_dts/theme-core/src/header/generateHeaderCss.d.ts +3 -0
- package/dist/_dts/theme-core/src/inputs/checkable.d.ts +6 -0
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +249 -147
- package/dist/_dts/theme-core/src/navigation/types.d.ts +4 -4
- package/dist/_dts/theme-core/src/schema.d.ts +321 -192
- package/dist/_dts/theme-core/src/site-styles/accessibleSurfaces.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +24 -7
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +4 -6
- package/dist/_dts/theme-core/src/site-styles/compileFooterAgainstRow.d.ts +121 -0
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +81 -1
- package/dist/_dts/theme-core/src/site-styles/footerLookDefaults.d.ts +45 -0
- package/dist/_dts/theme-core/src/site-styles/footerLookRecipe.d.ts +50 -0
- package/dist/_dts/theme-core/src/site-styles/footerLooks.d.ts +9 -35
- package/dist/_dts/theme-core/src/site-styles/footerPreferences.d.ts +29 -0
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -2
- package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +4 -0
- package/dist/_dts/theme-core/src/site-styles/headerPreferencesPersistence.d.ts +2 -3
- package/dist/_dts/theme-core/src/site-styles/headerStyleRecipe.d.ts +13 -1
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +4 -0
- package/dist/_dts/theme-core/src/site-styles/lookResolution.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +5 -0
- package/dist/_dts/theme-core/src/site-styles/siteChromeBackgrounds.d.ts +8 -0
- package/dist/_dts/theme-core/src/site-styles/siteStyleTypography.d.ts +46 -0
- package/dist/_dts/theme-core/src/site-styles/themeParity.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
- package/dist/_dts/theme-core/src/status/generateStatusCss.d.ts +4 -1
- package/dist/_dts/theme-core/src/surfaces/resolveSurfaceForeground.d.ts +2 -0
- package/dist/_dts/theme-core/src/typography/schema.d.ts +9 -0
- package/dist/_dts/ui/src/calendar.d.ts +6 -1
- package/dist/_dts/ui/src/card.d.ts +1 -1
- package/dist/_dts/ui/src/index.d.ts +1 -1
- package/dist/client/{BookingMailingListNote-DrchYW1m.mjs → BookingMailingListNote-CiW1dsz7.mjs} +3 -3
- package/dist/client/{CardListItem-CC_GVmF6.mjs → CardListItem-DVYTlYpS.mjs} +70 -13
- package/dist/client/CheckboxChoice-CUnPrBlC.mjs +44 -0
- package/dist/client/DemoBookingPortalAccess-DEsn5F2C.mjs +770 -0
- package/dist/client/{EventCombined.client-DyN0v0Xk.mjs → EventCombined.client-BdctbwnV.mjs} +5 -5
- package/dist/client/{EventEmbeddedCheckoutStep-CgfpKc3n.mjs → EventEmbeddedCheckoutStep-DAhQs6Jb.mjs} +2 -5
- package/dist/client/{EventListing.client-CuOuvYMz.mjs → EventListing.client-BviZXfAE.mjs} +2 -2
- package/dist/client/{mailingListSignupCopy-DZSHZrm6.mjs → FieldValidationMessage-AYanWFb-.mjs} +1 -14
- package/dist/client/{LeafletStaticMap-B0WhRr3j.mjs → LeafletStaticMap-BLTECfjU.mjs} +1 -1
- package/dist/client/{RichText-C1fIXBzA.mjs → RichText-D3oE1_pw.mjs} +77 -44
- package/dist/client/ThemedButton-Ckj0Rfr_.mjs +1256 -0
- package/dist/client/{accordion-DCDVWSye.mjs → accordion-yBx6d4O2.mjs} +1 -1
- package/dist/client/{bookingForm-BJ3C4GlM.mjs → bookingForm-CPDEsQci.mjs} +64 -35
- package/dist/client/bookings.mjs +19252 -15228
- package/dist/client/carousel-DCqjwd2s.mjs +71 -0
- package/dist/client/{carousel.client-GEtOGsxo.mjs → carousel.client-Bx7XMF8-.mjs} +114 -39
- package/dist/client/{cart-Yv-aAtck.mjs → cart-DWJXrQxs.mjs} +3 -3
- package/dist/client/{checkout-B9xDkl30.mjs → checkout-CH4ypSLS.mjs} +3 -3
- package/dist/client/client.mjs +13559 -7353
- package/dist/client/{context-BOGe3rIA.mjs → context-BOs0m_iw.mjs} +16 -12
- package/dist/client/{eventCalendar-D6M0T9hs.mjs → eventCalendar-CRylMllc.mjs} +8 -319
- package/dist/client/{eventCombined-NM4UFBq8.mjs → eventCombined-DohTS3kp.mjs} +4 -4
- package/dist/client/{eventDetails-f_FhV4O8.mjs → eventDetails-qf-u9zcF.mjs} +108 -36
- package/dist/client/{eventListing-WLkfAROh.mjs → eventListing-Cg__X2vy.mjs} +4 -4
- package/dist/client/{eventRegistration-D3ejfLvW.mjs → eventRegistration-CybWxswy.mjs} +215 -237
- package/dist/client/{form-D5Or2Jyu.mjs → form-C-SGk6nq.mjs} +115 -51
- package/dist/client/{headerSection-hWgnv27V.mjs → headerSection-BdzPaHqo.mjs} +3 -3
- package/dist/client/hooks.mjs +3280 -1362
- package/dist/client/{locationMap-Di1K0O2S.mjs → locationMap-CEwIKmMb.mjs} +3 -3
- package/dist/client/mailingListSignupCopy-DS-_ePzG.mjs +14 -0
- package/dist/client/{media-D29-F1u_.mjs → media-V_ShXXru.mjs} +3 -3
- package/dist/client/{mediaContext-CwbbimYB.mjs → mediaContext-D-0tNVxE.mjs} +1 -1
- package/dist/client/{newsletterForm-CwxcwTNO.mjs → newsletterForm-CmwTltoS.mjs} +52 -15
- package/dist/client/{productDetail-BLSnhPdA.mjs → productDetail-DjIzUwg3.mjs} +3 -3
- package/dist/client/{productList-oGytONOX.mjs → productList-D6JGFnMF.mjs} +3 -3
- package/dist/client/{propsDecoder-lf_dTeZS.mjs → propsDecoder-BRKz13eg.mjs} +17944 -14861
- package/dist/client/{renderableMediaAssetAdmission-CHkXYDC_.mjs → renderableMediaAssetAdmission-Cd3JSw2H.mjs} +3 -1
- package/dist/client/rendering/client.mjs +15893 -11685
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +14451 -8139
- package/dist/client/{routeIslandApiConfig-Bc_WVPS8.mjs → routeIslandApiConfig-slAAILQ5.mjs} +1 -1
- package/dist/client/{shop-BQ3bR7fA.mjs → shop-C45K96_0.mjs} +178 -157
- package/dist/client/{shop-commerce-DDPll6ZC.mjs → shop-commerce-oGBiKT5d.mjs} +23 -10
- package/dist/client/{shop-commerce-store-DO-e1pTe.mjs → shop-commerce-store-H_HFPFZ8.mjs} +1 -1
- package/dist/client/{shopShared-BylM9jh1.mjs → shopShared-D54T_LAV.mjs} +5 -5
- package/dist/client/{useDiscountCodeUi-B1Puub2v.mjs → useDiscountCodeUi-Dm2EUa03.mjs} +1 -1
- package/dist/client/{useEventPagination-BBhkmQaT.mjs → useEventPagination-0l_A8CxG.mjs} +62 -24
- package/dist/preview-next/before-render.mjs +134 -51
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/editor-chrome.css +5 -2
- package/dist/preview-next/keepAlive.mjs +134 -51
- package/dist/preview-next/middleware.mjs +134 -51
- package/dist/{sdk-runtime-DWCvhJGu.mjs → sdk-runtime-CjTM32Ah.mjs} +1 -1
- package/dist/server/components.mjs +15231 -10855
- package/dist/server/config-validation.mjs +3153 -1323
- package/dist/server/config.mjs +3119 -1321
- package/dist/server/data.mjs +3201 -1329
- package/dist/server/date-time.mjs +270 -117
- package/dist/server/index.mjs +137 -52
- package/dist/server/next.mjs +14713 -10388
- package/dist/server/page-converter.mjs +2642 -1073
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +14674 -10630
- package/dist/server/rendering.mjs +15055 -10670
- package/dist/server/routing.mjs +3483 -1488
- package/dist/server/server.mjs +3620 -1740
- package/dist/server/theme-bridge.mjs +2694 -189
- package/dist/server/theme.mjs +422 -67
- package/dist/{spinner-BYM-Y81w.mjs → spinner-KVVZh8jd.mjs} +1 -1
- package/dist/src-BgmWy3P1.mjs +1667 -0
- package/dist/styles/index.css +1196 -2
- package/package.json +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/shared/layout.d.ts +0 -12
- package/dist/client/CheckboxChoice-Dq30m3DO.mjs +0 -24
- package/dist/client/DemoBookingPortalAccess-ojwbVUmx.mjs +0 -344
- package/dist/client/ThemedButton-B7HFqFBg.mjs +0 -411
- package/dist/client/carousel-BSCBhfHY.mjs +0 -38
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { _ as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { $ as normalizeEventRegistrationMaxTickets, $t as placesLeftLabel, A as registrationRoute, Ai as publicEventPricingStrategy, At as formatEventDateTime, B as decideEventRegistrationPayment, Bt as withOccurrenceTitle, C as bookingEntry, Ct as confirmationPaymentRows, D as panelShouldOpen, Dt as findSelectedTicketType, E as getEventSelectionMode, Et as areEntitlementsDisabledForTicketCount, F as decideEventChoice, Ft as getPortalSubjectEmail, G as planRegistrationDetailsContinuation, Gn as getEventAvailability, Gt as getTicketSelectionTotal, H as fullyBookedLabel, Hn as canJoinEventWaitlistOnAnyMode, Ht as canRequestTicketOption, I as getDeclinedPass, It as getTicketTypeAvailabilityLabel, J as resolveRegistrationAvailabilityBlocker, Jn as isEventFull, Jt as normalizeTicketSelectionLines, K as resolveGuestNextStepCheck, Kt as getTicketTypeLineMax, L as isRegistrationLocked, Lt as getVisibleTicketTypes, M as registrationStepLabelContext, Mt as formatRegistrationSchedule, N as areEventRegistrationPaymentSelectionsEqual, Ni as assertNever$1, Nt as formatTime, O as registrationPaymentRoute, Oi as publicEventPricingCurrency, On as formatEventPriceDisplay, Ot as formatBookingWhen, P as createInitialRegistrationFlowState, Pt as getImplicitSingleTicketType, Q as isEventRegistrationAvailable, Qt as toWholeSeriesRegistrationEvents, R as registrationFlowReducer, Rt as occurrenceTitleOverride, S as bookingCardEntry, St as validateFormData, T as bookingPanelHeading, Tr as assertNever, Tt as ENTITLEMENT_SINGLE_TICKET_TOOLTIP, U as placeCountCeiling, Ut as getSingleSelectedPricingOptionId, V as shouldPromptForLogin, Vn as canJoinEventWaitlist, Vt as formatPrice, W as planRegistrationDetailsCheck, Wt as getTicketLineQuantity, X as settledRemainingPlaces, Xn as selectMostOpenCapacitySource, Xt as getRegistrationStartAt, Y as resolveRegistrationTicketContinuation, Yn as selectEventCapacitySource, Yt as setTicketLineQuantity, Z as visitorHoldsOwnPlace, Zn as groupPublicEventsByRun, Zt as toRegistrationEvents, _ as buildEventRegistrationDisplayFromScopedEvents, _t as getRegistrationOccurrenceId, at as paymentChoicePrice, b as DEFAULT_BOOKING_BUTTON_TEXT, bt as parseCurrencyInputToCents, cr as getRegistrationSuccessCopy, ct as resolveEventRequiresPayment, dt as toRegistrationRequestSubject, en as shownVenue, et as resolveEventRegistrationSubmitPlan, ft as beginWaitlistInvitation, gi as resolveBookingSignupOffer, gt as getEligibilityFlowFlags, ht as formatCentsAsCurrencyInput, it as paymentChoiceDetails, j as registrationStepLabel, ji as publicEventPricingType, jt as formatPassCreditUsageLabel, k as registrationPresentation, kt as formatDate, lt as resolveRegistrationTarget, mt as invitationSubmission, oi as eventRegistrationErrors, ot as findPreSelectedEvent, pt as createRegistrationDraftData, q as resolveRegistrationAdmission, qn as getRemainingPlaces, qt as hasValidPricingOptionSelection, rn as resolveEventRegistrationScopedEvents, si as parseEventRegistrationErrorReason, st as resolveDiscountContext, t as defineIslandPropsDecoder, tt as calculateEventRegistrationPreviewTotal, ut as resolveRouteRequiresPayment, v as displayButtonText, vt as getSlidingScaleForEvent, w as bookingEntryProgress, wt as resolveFinishedPresentation, x as bookingBarPlacement, xt as shouldLoadRegistrationOptions, y as offeringNounForEvent, yt as getSlidingScaleSelectionMessage, z as buildEventRegistrationPaymentOptionsViewModel, zt as transformRegistrationOptionsResponse } from "./propsDecoder-BRKz13eg.mjs";
|
|
3
|
+
import { _ as eventSiteTermsSurface, a as requestDemoPortalMagicLink, g as useSiteTermsAgreement, h as siteTermsFailureKind, i as buildPortalCallbackUrl, o as SiteTermsAgreementField, p as storeDemoBookingPass, r as CUSTOMER_PORTAL_PATH, s as SiteTermsChangedNotice, t as BookingConfirmation, v as DiscountCodeDisclosure } from "./DemoBookingPortalAccess-DEsn5F2C.mjs";
|
|
4
|
+
import { n as ThemedButton, o as SpinnerNode, r as ThemedButtonLink } from "./ThemedButton-Ckj0Rfr_.mjs";
|
|
5
5
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DS92SRVZ.mjs";
|
|
6
6
|
import { t as CrossIcon } from "./CrossIcon-Dn1KRKW5.mjs";
|
|
7
|
-
import { a as requestDemoPortalMagicLink, d as storeDemoBookingPass, i as buildPortalCallbackUrl, p as DiscountCodeDisclosure, r as CUSTOMER_PORTAL_PATH, t as BookingConfirmation } from "./DemoBookingPortalAccess-ojwbVUmx.mjs";
|
|
8
7
|
import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
|
|
9
|
-
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
10
|
-
import { a as useBookingNowIso, i as usePolling, n as BookingConsentAgreement, o as StepIndicator$1, r as PaymentChoiceRows, t as BookingMailingListNote } from "./BookingMailingListNote-
|
|
11
|
-
import { n as useBlockApi, r as BlockApiError, t as BlockApiProvider } from "./context-
|
|
8
|
+
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-Dm2EUa03.mjs";
|
|
9
|
+
import { a as useBookingNowIso, i as usePolling, n as BookingConsentAgreement, o as StepIndicator$1, r as PaymentChoiceRows, t as BookingMailingListNote } from "./BookingMailingListNote-CiW1dsz7.mjs";
|
|
10
|
+
import { n as useBlockApi, r as BlockApiError, t as BlockApiProvider } from "./context-BOs0m_iw.mjs";
|
|
12
11
|
import { n as isSpamProtectionEnabled, r as AltchaWidget, t as getChallengeUrl } from "./src-B833rYRr.mjs";
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
12
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-CUnPrBlC.mjs";
|
|
13
|
+
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-AYanWFb-.mjs";
|
|
15
14
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
16
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
15
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-slAAILQ5.mjs";
|
|
17
16
|
import { t as createLucideIcon } from "./createLucideIcon-PaLVMov4.mjs";
|
|
18
17
|
import { t as ModalShell } from "./ModalShell-BXzucfR6.mjs";
|
|
19
18
|
import { n as EVENT_REGISTRATION_CHECKOUT_ATTEMPT_PARAM, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-CT8yg_UB.mjs";
|
|
@@ -21,21 +20,6 @@ import React, { Suspense, lazy, useCallback, useEffect, useId, useLayoutEffect,
|
|
|
21
20
|
import { z } from "zod";
|
|
22
21
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
23
22
|
import { createPortal } from "react-dom";
|
|
24
|
-
//#region ../core/src/ticket-quantity.ts
|
|
25
|
-
function toPositiveTicketQuantity(value) {
|
|
26
|
-
if (!Number.isFinite(value) || !Number.isInteger(value) || value <= 0) return err("invalid_quantity");
|
|
27
|
-
return ok(value);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* The places a booking holds: the sum of its ticket lines' quantities. The one
|
|
31
|
-
* derivation for selections, persisted lines and a booking outcome's lines;
|
|
32
|
-
* null when the total is not a positive whole number.
|
|
33
|
-
*/
|
|
34
|
-
function deriveTotalTicketQuantity(lines) {
|
|
35
|
-
const parsed = toPositiveTicketQuantity(lines.reduce((sum, line) => sum + line.quantity, 0));
|
|
36
|
-
return parsed.ok ? parsed.value : null;
|
|
37
|
-
}
|
|
38
|
-
//#endregion
|
|
39
23
|
//#region ../core/src/uuid.ts
|
|
40
24
|
function generateUuidV4(cryptoSource = globalThis.crypto) {
|
|
41
25
|
if (typeof cryptoSource.randomUUID === "function") return cryptoSource.randomUUID();
|
|
@@ -159,154 +143,6 @@ function planEventRegistrationSurface(input) {
|
|
|
159
143
|
} : { kind: "unavailableWholeSeries" };
|
|
160
144
|
}
|
|
161
145
|
//#endregion
|
|
162
|
-
//#region ../blocks/src/system/runtime/nodes/event-registration/finishedBooking.ts
|
|
163
|
-
/**
|
|
164
|
-
* What a finished booking says, decided once (issue 1581).
|
|
165
|
-
*
|
|
166
|
-
* The confirmation, the finished card and the booking bar all describe the
|
|
167
|
-
* same booking. This module resolves which event was booked (by the outcome's
|
|
168
|
-
* identity, never the editable draft) and the facts shown for it, and hands
|
|
169
|
-
* that one value to all three. Places and money come only from the outcome.
|
|
170
|
-
*/
|
|
171
|
-
function confirmationPaymentRows(payment) {
|
|
172
|
-
switch (payment.kind) {
|
|
173
|
-
case "none": return [];
|
|
174
|
-
case "settled": return payment.rows;
|
|
175
|
-
case "due": return [...payment.paidRows, payment.amountDueRow];
|
|
176
|
-
default: return assertNever$1(payment);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
function row(label, value) {
|
|
180
|
-
return value ? [{
|
|
181
|
-
label,
|
|
182
|
-
value
|
|
183
|
-
}] : [];
|
|
184
|
-
}
|
|
185
|
-
function placesLabel(count) {
|
|
186
|
-
return count === 1 ? "1 place" : `${count} places`;
|
|
187
|
-
}
|
|
188
|
-
function duePayment(balance, currency, paidRows, instructions) {
|
|
189
|
-
return {
|
|
190
|
-
kind: "due",
|
|
191
|
-
paidRows,
|
|
192
|
-
amountDueRow: {
|
|
193
|
-
label: "Still to pay",
|
|
194
|
-
value: formatPrice(balance.amountCents, currency)
|
|
195
|
-
},
|
|
196
|
-
instructions
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
/** Every evidenced debt carries its required amount row, independently of success prose. */
|
|
200
|
-
function presentConfirmationPayment(payment) {
|
|
201
|
-
switch (payment.kind) {
|
|
202
|
-
case "free":
|
|
203
|
-
case "waived": return {
|
|
204
|
-
kind: "settled",
|
|
205
|
-
rows: []
|
|
206
|
-
};
|
|
207
|
-
case "pass": return {
|
|
208
|
-
kind: "settled",
|
|
209
|
-
rows: row("Paid with", payment.passName?.trim() || "Class pass")
|
|
210
|
-
};
|
|
211
|
-
case "membership": return {
|
|
212
|
-
kind: "settled",
|
|
213
|
-
rows: row("Paid with", payment.membershipName?.trim() || "Membership")
|
|
214
|
-
};
|
|
215
|
-
case "manual_due": return duePayment(payment.balance, payment.currency, [], OFFLINE_BOOKING_PAYMENT_INSTRUCTIONS);
|
|
216
|
-
case "monetary":
|
|
217
|
-
case "managed_balance_due": {
|
|
218
|
-
const paidRows = row("Paid", payment.amountPaidCents > 0 ? formatPrice(payment.amountPaidCents, payment.currency) : null);
|
|
219
|
-
return payment.balance.kind === "settled" ? {
|
|
220
|
-
kind: "settled",
|
|
221
|
-
rows: paidRows
|
|
222
|
-
} : duePayment(payment.balance, payment.currency, paidRows, payment.kind === "monetary" && payment.paymentMethod === "manual" ? OFFLINE_BOOKING_PAYMENT_INSTRUCTIONS : null);
|
|
223
|
-
}
|
|
224
|
-
default: return assertNever$1(payment);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
/** Places and payment, only when the outcome carries the booking's details. */
|
|
228
|
-
function outcomeFacts(outcome) {
|
|
229
|
-
switch (outcome.kind) {
|
|
230
|
-
case "detailsUnavailable": return {
|
|
231
|
-
places: null,
|
|
232
|
-
rows: [],
|
|
233
|
-
payment: { kind: "none" }
|
|
234
|
-
};
|
|
235
|
-
case "detailsAvailable": {
|
|
236
|
-
const places = deriveTotalTicketQuantity(outcome.ticketLines);
|
|
237
|
-
return {
|
|
238
|
-
places,
|
|
239
|
-
rows: row("Places", places === null ? null : String(places)),
|
|
240
|
-
payment: presentConfirmationPayment(outcome.payment)
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
default: return assertNever$1(outcome);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
function scheduleRows(event, when, where, display) {
|
|
247
|
-
return event ? [...row("When", when), ...row("Where", where === "venue" ? shownVenue(event, display) : null)] : [];
|
|
248
|
-
}
|
|
249
|
-
/** Title and dates come from the event given; callers decide which event that is. */
|
|
250
|
-
function entryFacts(event, occurrence) {
|
|
251
|
-
return {
|
|
252
|
-
title: event?.title ?? "",
|
|
253
|
-
when: event ? formatRegistrationSchedule(event, occurrence, "long") : null,
|
|
254
|
-
shortWhen: event ? formatRegistrationSchedule(event, occurrence) : null
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
function bookedBooking(result, context) {
|
|
258
|
-
const { identity } = result.outcome;
|
|
259
|
-
const event = findBookedEvent(context.events, identity);
|
|
260
|
-
const dates = entryFacts(event);
|
|
261
|
-
const facts = outcomeFacts(result.outcome);
|
|
262
|
-
const where = identity.attendanceMode === "online" ? "none" : "venue";
|
|
263
|
-
return {
|
|
264
|
-
entry: {
|
|
265
|
-
kind: "booked",
|
|
266
|
-
...dates,
|
|
267
|
-
places: facts.places === null ? null : placesLabel(facts.places)
|
|
268
|
-
},
|
|
269
|
-
summary: [...scheduleRows(event, dates.shortWhen, where, context.display), ...facts.rows],
|
|
270
|
-
payment: facts.payment
|
|
271
|
-
};
|
|
272
|
-
}
|
|
273
|
-
function waitlistedBooking(context) {
|
|
274
|
-
const event = context.draftEvent;
|
|
275
|
-
const dates = entryFacts(withOccurrenceTitle(event, context.occurrenceContext), context.occurrenceContext);
|
|
276
|
-
return {
|
|
277
|
-
entry: {
|
|
278
|
-
kind: "waitlisted",
|
|
279
|
-
...dates
|
|
280
|
-
},
|
|
281
|
-
summary: scheduleRows(event, dates.shortWhen, "venue", context.display),
|
|
282
|
-
payment: { kind: "none" }
|
|
283
|
-
};
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* The one place a finished booking is resolved: the confirmation, the
|
|
287
|
-
* finished card and the bar all take this, never the raw result and events.
|
|
288
|
-
*/
|
|
289
|
-
function resolveFinishedPresentation(presentation, context) {
|
|
290
|
-
if (presentation.layout !== "whole") return presentation;
|
|
291
|
-
switch (presentation.screen) {
|
|
292
|
-
case "confirmed": return {
|
|
293
|
-
...presentation,
|
|
294
|
-
finished: bookedBooking(presentation.result, context)
|
|
295
|
-
};
|
|
296
|
-
case "waitlisted": return {
|
|
297
|
-
...presentation,
|
|
298
|
-
finished: waitlistedBooking(context)
|
|
299
|
-
};
|
|
300
|
-
case "processing":
|
|
301
|
-
case "verifying":
|
|
302
|
-
case "verifyingTimeout":
|
|
303
|
-
case "paymentStatus":
|
|
304
|
-
case "paymentFailed":
|
|
305
|
-
case "error": return presentation;
|
|
306
|
-
default: return assertNever$1(presentation);
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
//#endregion
|
|
310
146
|
//#region ../blocks/src/system/runtime/nodes/event-registration/useRegistrationAdmission.ts
|
|
311
147
|
/** Owns admission and its navigation commands; renderers receive decisions. */
|
|
312
148
|
function useRegistrationAdmission(input) {
|
|
@@ -1073,7 +909,7 @@ function useEventRegistrationSubmitWithDeps(options, deps) {
|
|
|
1073
909
|
const { message, action } = registrationErrorPresentation(error);
|
|
1074
910
|
options.setErrorAction?.(action);
|
|
1075
911
|
options.setErrorMessage(message);
|
|
1076
|
-
options.setStep(
|
|
912
|
+
options.setStep(failedRegistrationStep(error, method));
|
|
1077
913
|
return {
|
|
1078
914
|
ok: false,
|
|
1079
915
|
reason: "submission-failed",
|
|
@@ -1255,6 +1091,11 @@ function invitationRequestCredential(credential) {
|
|
|
1255
1091
|
case "portalOwnedEntry": return { waitlistEntryId: credential.entryId };
|
|
1256
1092
|
}
|
|
1257
1093
|
}
|
|
1094
|
+
/** Legal rejection returns to the intact draft, before any payment effect. */
|
|
1095
|
+
function failedRegistrationStep(error, method) {
|
|
1096
|
+
if (!siteTermsFailureKind(error)) return "error";
|
|
1097
|
+
return method === "pass_bundle" || method === "membership_bundle" ? "select-payment" : "enter-details";
|
|
1098
|
+
}
|
|
1258
1099
|
//#endregion
|
|
1259
1100
|
//#region ../blocks/src/system/runtime/nodes/event-registration/useSettledCommerceView.ts
|
|
1260
1101
|
function buildCandidate(input) {
|
|
@@ -2276,14 +2117,13 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
2276
2117
|
if (check.kind === "blocked") return blockDetailsCompletion(check.blocker);
|
|
2277
2118
|
setErrors(check.errors);
|
|
2278
2119
|
setGuestErrors(check.guestErrors);
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
}
|
|
2120
|
+
const siteTermsAgreed = siteTerms.requireAgreement();
|
|
2121
|
+
if (check.kind === "invalid") setGuestSectionShake(true);
|
|
2122
|
+
if (check.kind === "invalid" || !siteTermsAgreed) return {
|
|
2123
|
+
ok: false,
|
|
2124
|
+
reason: "validation-failed",
|
|
2125
|
+
message: "Check the highlighted fields and try again."
|
|
2126
|
+
};
|
|
2287
2127
|
const continuation = planRegistrationDetailsContinuation({
|
|
2288
2128
|
next: await checkDetailsNextStep(),
|
|
2289
2129
|
eventRequiresPayment,
|
|
@@ -2316,6 +2156,8 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
2316
2156
|
}
|
|
2317
2157
|
};
|
|
2318
2158
|
const handlePaymentSelect = async () => {
|
|
2159
|
+
const surface = eventSiteTermsSurface(paymentSelection.method);
|
|
2160
|
+
if (surface === "commerce" && !siteTerms.requireAgreement(surface)) return;
|
|
2319
2161
|
const submitPlan = resolveEventRegistrationSubmitPlan({
|
|
2320
2162
|
paymentSelection,
|
|
2321
2163
|
eventRequiresPayment,
|
|
@@ -2372,13 +2214,21 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
2372
2214
|
discountCode: discountUi.discountCode,
|
|
2373
2215
|
step
|
|
2374
2216
|
});
|
|
2217
|
+
const siteTerms = useSiteTermsAgreement({
|
|
2218
|
+
terms: options.siteTerms,
|
|
2219
|
+
context: {
|
|
2220
|
+
kind: "event",
|
|
2221
|
+
event: currentEvent,
|
|
2222
|
+
admission
|
|
2223
|
+
}
|
|
2224
|
+
});
|
|
2375
2225
|
const selectionMethod = paymentSelection.method;
|
|
2376
2226
|
const shouldShowDiscountToggle = discountContext !== null && discountUi.manualCodeEntryAllowed && (selectionMethod === "stripe" || selectionMethod === "pass_bundle" || selectionMethod === "membership_bundle");
|
|
2377
2227
|
const handleSubmit = deps.useEventRegistrationSubmit({
|
|
2378
2228
|
openPayment: paymentController.openPayment,
|
|
2379
2229
|
commandRef,
|
|
2380
2230
|
setErrorAction,
|
|
2381
|
-
api,
|
|
2231
|
+
api: siteTerms.api,
|
|
2382
2232
|
registrationTarget,
|
|
2383
2233
|
selectedAttendanceMode,
|
|
2384
2234
|
ticketSelections,
|
|
@@ -2531,6 +2381,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
2531
2381
|
hasValidTicketSelection,
|
|
2532
2382
|
eventRequiresPayment,
|
|
2533
2383
|
formData,
|
|
2384
|
+
siteTerms,
|
|
2534
2385
|
mailingListSignup,
|
|
2535
2386
|
setFormData: (value) => {
|
|
2536
2387
|
if (!selectionLocked) setFormData(value);
|
|
@@ -4011,7 +3862,7 @@ function EventRegistrationWizardActions(props) {
|
|
|
4011
3862
|
}
|
|
4012
3863
|
//#endregion
|
|
4013
3864
|
//#region ../blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.tsx
|
|
4014
|
-
const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-
|
|
3865
|
+
const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-DAhQs6Jb.mjs"));
|
|
4015
3866
|
/** The one Stripe mount, shared by the standard wizard and headless arrangements. */
|
|
4016
3867
|
function EventPaymentMount({ state, onComplete, onRetry, onBack, buttonVariant }) {
|
|
4017
3868
|
if (state.kind === "abandoning") return /* @__PURE__ */ jsx("p", {
|
|
@@ -5131,7 +4982,7 @@ function MailingListOptInField({ signup, formData, onChange }) {
|
|
|
5131
4982
|
* Collects attendee information: name, email, phone, and notes.
|
|
5132
4983
|
* Validates required fields and displays errors.
|
|
5133
4984
|
*/
|
|
5134
|
-
const AttendeeDetailsStep = ({ formData, onChange, errors, emailLocked = false, onLogout, ticketsCount = 1, requireGuestDetails = false, guests = [], onGuestsChange, guestErrors = {}, guestSectionShake = false, onGuestShakeEnd, consent, mailingListSignup }) => {
|
|
4985
|
+
const AttendeeDetailsStep = ({ formData, onChange, errors, emailLocked = false, onLogout, ticketsCount = 1, requireGuestDetails = false, guests = [], onGuestsChange, guestErrors = {}, guestSectionShake = false, onGuestShakeEnd, consent, mailingListSignup, siteTerms, siteTermsNotice }) => {
|
|
5135
4986
|
const idBase = useId();
|
|
5136
4987
|
const nameId = `${idBase}-name`;
|
|
5137
4988
|
const emailId = `${idBase}-email`;
|
|
@@ -5151,6 +5002,7 @@ const AttendeeDetailsStep = ({ formData, onChange, errors, emailLocked = false,
|
|
|
5151
5002
|
className: "er-title",
|
|
5152
5003
|
children: "Your details"
|
|
5153
5004
|
}),
|
|
5005
|
+
siteTermsNotice,
|
|
5154
5006
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
5155
5007
|
/* @__PURE__ */ jsxs("div", {
|
|
5156
5008
|
className: "er-field",
|
|
@@ -5224,7 +5076,8 @@ const AttendeeDetailsStep = ({ formData, onChange, errors, emailLocked = false,
|
|
|
5224
5076
|
formData,
|
|
5225
5077
|
idBase,
|
|
5226
5078
|
onChange
|
|
5227
|
-
}) : null
|
|
5079
|
+
}) : null,
|
|
5080
|
+
siteTerms
|
|
5228
5081
|
] }),
|
|
5229
5082
|
guestDetailsChangeHandler && /* @__PURE__ */ jsx(GuestDetailsSection, {
|
|
5230
5083
|
guests,
|
|
@@ -5544,7 +5397,14 @@ function AttendeeDetailsContent(props) {
|
|
|
5544
5397
|
guestSectionShake: wizard.guestSectionShake,
|
|
5545
5398
|
onGuestShakeEnd: wizard.handleGuestShakeEnd,
|
|
5546
5399
|
consent: (wizard.selectedEvent ?? wizard.preSelectedEvent)?.consent ?? null,
|
|
5547
|
-
mailingListSignup: wizard.mailingListSignup
|
|
5400
|
+
mailingListSignup: wizard.mailingListSignup,
|
|
5401
|
+
siteTerms: /* @__PURE__ */ jsx(SiteTermsAgreementField, {
|
|
5402
|
+
agreement: wizard.siteTerms.view,
|
|
5403
|
+
onChange: wizard.siteTerms.onChange,
|
|
5404
|
+
error: wizard.siteTerms.error,
|
|
5405
|
+
disabled: wizard.siteTerms.disabled
|
|
5406
|
+
}),
|
|
5407
|
+
siteTermsNotice: /* @__PURE__ */ jsx(SiteTermsChangedNotice, { message: wizard.siteTerms.notice })
|
|
5548
5408
|
}),
|
|
5549
5409
|
props.showSpamProtection && /* @__PURE__ */ jsx("div", {
|
|
5550
5410
|
className: "er-altcha",
|
|
@@ -5591,6 +5451,7 @@ function PaymentSelectionContent(props) {
|
|
|
5591
5451
|
onRequestLogin: () => wizard.setShowMagicLinkModal(true)
|
|
5592
5452
|
});
|
|
5593
5453
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5454
|
+
eventSiteTermsSurface(wizard.paymentSelection.method) === "commerce" ? /* @__PURE__ */ jsx(SiteTermsChangedNotice, { message: wizard.siteTerms.notice }) : null,
|
|
5594
5455
|
/* @__PURE__ */ jsx(PaymentSelectionStep, {
|
|
5595
5456
|
event: wizard.selectedEvent,
|
|
5596
5457
|
occurrenceContext: wizard.occurrenceContext,
|
|
@@ -5610,7 +5471,8 @@ function PaymentSelectionContent(props) {
|
|
|
5610
5471
|
eligibility: wizard.eligibility,
|
|
5611
5472
|
onBookOnePlace: () => bookOnePlace(wizard)
|
|
5612
5473
|
}) : null,
|
|
5613
|
-
/* @__PURE__ */ jsx(EventDiscountCodeDisclosure, { wizard })
|
|
5474
|
+
/* @__PURE__ */ jsx(EventDiscountCodeDisclosure, { wizard }),
|
|
5475
|
+
/* @__PURE__ */ jsx(BundleSiteTerms, { wizard })
|
|
5614
5476
|
] });
|
|
5615
5477
|
}
|
|
5616
5478
|
function ClosedAdmissionNotice({ wizard }) {
|
|
@@ -5690,6 +5552,15 @@ function EventRegistrationWizardContent(props) {
|
|
|
5690
5552
|
default: return null;
|
|
5691
5553
|
}
|
|
5692
5554
|
}
|
|
5555
|
+
function BundleSiteTerms({ wizard }) {
|
|
5556
|
+
if (eventSiteTermsSurface(wizard.paymentSelection.method) !== "commerce") return null;
|
|
5557
|
+
return /* @__PURE__ */ jsx(SiteTermsAgreementField, {
|
|
5558
|
+
agreement: wizard.siteTerms.commerceView,
|
|
5559
|
+
onChange: wizard.siteTerms.onChange,
|
|
5560
|
+
error: wizard.siteTerms.error,
|
|
5561
|
+
disabled: wizard.siteTerms.disabled
|
|
5562
|
+
});
|
|
5563
|
+
}
|
|
5693
5564
|
//#endregion
|
|
5694
5565
|
//#region ../blocks/src/system/runtime/nodes/event-registration/PaymentFailedStep.tsx
|
|
5695
5566
|
/**
|
|
@@ -5818,6 +5689,106 @@ function StepIndicator(props) {
|
|
|
5818
5689
|
});
|
|
5819
5690
|
}
|
|
5820
5691
|
//#endregion
|
|
5692
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/CalendarAction.tsx
|
|
5693
|
+
/** Download effects happen only after a click, including in editor preview. */
|
|
5694
|
+
async function downloadCalendar(calendar) {
|
|
5695
|
+
const { renderCalendarFeedIcs } = await import("./propsDecoder-BRKz13eg.mjs").then((n) => n.Pr);
|
|
5696
|
+
const url = URL.createObjectURL(new Blob([renderCalendarFeedIcs(calendar.feed)], { type: "text/calendar;charset=utf-8" }));
|
|
5697
|
+
const link = document.createElement("a");
|
|
5698
|
+
link.href = url;
|
|
5699
|
+
link.download = calendar.fileName;
|
|
5700
|
+
document.body.append(link);
|
|
5701
|
+
link.click();
|
|
5702
|
+
link.remove();
|
|
5703
|
+
setTimeout(() => URL.revokeObjectURL(url), 0);
|
|
5704
|
+
}
|
|
5705
|
+
function CalendarAction({ calendar }) {
|
|
5706
|
+
const [open, setOpen] = useState(false);
|
|
5707
|
+
const [downloadFailed, setDownloadFailed] = useState(false);
|
|
5708
|
+
const id = useId();
|
|
5709
|
+
const choicesRef = useRef(null);
|
|
5710
|
+
useEffect(() => {
|
|
5711
|
+
if (open) choicesRef.current?.scrollIntoView({ block: "nearest" });
|
|
5712
|
+
}, [open]);
|
|
5713
|
+
const close = () => setOpen(false);
|
|
5714
|
+
const download = async (value) => {
|
|
5715
|
+
setDownloadFailed(false);
|
|
5716
|
+
try {
|
|
5717
|
+
await downloadCalendar(value);
|
|
5718
|
+
close();
|
|
5719
|
+
} catch {
|
|
5720
|
+
setDownloadFailed(true);
|
|
5721
|
+
}
|
|
5722
|
+
};
|
|
5723
|
+
if (!calendar) return null;
|
|
5724
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
5725
|
+
className: "er-calendar-action",
|
|
5726
|
+
onBlur: (event) => {
|
|
5727
|
+
if (!event.currentTarget.contains(event.relatedTarget)) close();
|
|
5728
|
+
},
|
|
5729
|
+
onKeyDown: (event) => {
|
|
5730
|
+
if (event.key === "Escape" && open) {
|
|
5731
|
+
event.stopPropagation();
|
|
5732
|
+
close();
|
|
5733
|
+
event.currentTarget.querySelector("button")?.focus();
|
|
5734
|
+
}
|
|
5735
|
+
},
|
|
5736
|
+
children: [calendar.kind === "sessions" ? /* @__PURE__ */ jsx(ThemedButton, {
|
|
5737
|
+
type: "button",
|
|
5738
|
+
variant: "outline",
|
|
5739
|
+
size: "md",
|
|
5740
|
+
extraClassName: "er-calendar-action__trigger",
|
|
5741
|
+
label: calendar.sessionCount === 2 ? "Add both sessions to your calendar" : `Add all ${calendar.sessionCount} sessions to your calendar`,
|
|
5742
|
+
onClick: () => {
|
|
5743
|
+
download(calendar);
|
|
5744
|
+
}
|
|
5745
|
+
}) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ThemedButton, {
|
|
5746
|
+
type: "button",
|
|
5747
|
+
variant: "outline",
|
|
5748
|
+
size: "md",
|
|
5749
|
+
extraClassName: "er-calendar-action__trigger er-calendar-action__trigger--disclosure",
|
|
5750
|
+
label: "Add to calendar",
|
|
5751
|
+
"aria-expanded": open,
|
|
5752
|
+
"aria-controls": id,
|
|
5753
|
+
onClick: () => setOpen(!open)
|
|
5754
|
+
}), open ? /* @__PURE__ */ jsxs("div", {
|
|
5755
|
+
id,
|
|
5756
|
+
ref: choicesRef,
|
|
5757
|
+
className: "er-calendar-action__choices",
|
|
5758
|
+
children: [
|
|
5759
|
+
/* @__PURE__ */ jsx("a", {
|
|
5760
|
+
className: "er-calendar-action__choice",
|
|
5761
|
+
href: calendar.googleUrl,
|
|
5762
|
+
target: "_blank",
|
|
5763
|
+
rel: "noopener noreferrer",
|
|
5764
|
+
onClick: close,
|
|
5765
|
+
children: "Google Calendar"
|
|
5766
|
+
}),
|
|
5767
|
+
/* @__PURE__ */ jsx("a", {
|
|
5768
|
+
className: "er-calendar-action__choice",
|
|
5769
|
+
href: calendar.outlookUrl,
|
|
5770
|
+
target: "_blank",
|
|
5771
|
+
rel: "noopener noreferrer",
|
|
5772
|
+
onClick: close,
|
|
5773
|
+
children: "Outlook.com"
|
|
5774
|
+
}),
|
|
5775
|
+
/* @__PURE__ */ jsx("button", {
|
|
5776
|
+
type: "button",
|
|
5777
|
+
className: "er-calendar-action__choice",
|
|
5778
|
+
onClick: () => {
|
|
5779
|
+
download(calendar);
|
|
5780
|
+
},
|
|
5781
|
+
children: "Apple Calendar or other (.ics file)"
|
|
5782
|
+
})
|
|
5783
|
+
]
|
|
5784
|
+
}) : null] }), downloadFailed ? /* @__PURE__ */ jsx("p", {
|
|
5785
|
+
role: "alert",
|
|
5786
|
+
className: "er-calendar-action__error",
|
|
5787
|
+
children: "We couldn't create the calendar file. Please try again."
|
|
5788
|
+
}) : null]
|
|
5789
|
+
});
|
|
5790
|
+
}
|
|
5791
|
+
//#endregion
|
|
5821
5792
|
//#region ../blocks/src/system/runtime/nodes/event-registration/SuccessStep.tsx
|
|
5822
5793
|
function ConfirmationSummary({ rows }) {
|
|
5823
5794
|
if (!rows || rows.length === 0) return null;
|
|
@@ -5841,62 +5812,66 @@ function ConfirmationPaymentDetails({ summary, payment }) {
|
|
|
5841
5812
|
*
|
|
5842
5813
|
* Displays registration confirmation with a success icon and message.
|
|
5843
5814
|
*/
|
|
5844
|
-
const SuccessStep = ({ title, copy, variant = "success", mailingListSignupNote, context = "booking", demoEmailSuppressed = false, customerEmail, summary, payment }) => {
|
|
5845
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
/* @__PURE__ */
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5815
|
+
const SuccessStep = ({ title, copy, variant = "success", mailingListSignupNote, context = "booking", demoEmailSuppressed = false, customerEmail, summary, payment, calendar }) => {
|
|
5816
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5817
|
+
/* @__PURE__ */ jsx(TerminalPanel, {
|
|
5818
|
+
tone: variant === "info" ? "info" : "success",
|
|
5819
|
+
className: "er-center",
|
|
5820
|
+
iconClassName: "er-icon",
|
|
5821
|
+
titleClassName: "er-title--lg er-message",
|
|
5822
|
+
bodyClassName: "er-text--muted",
|
|
5823
|
+
icon: /* @__PURE__ */ jsx(StateIcon, {
|
|
5824
|
+
variant: variant === "info" ? "info" : "success",
|
|
5825
|
+
children: /* @__PURE__ */ jsx("svg", {
|
|
5826
|
+
fill: "none",
|
|
5827
|
+
stroke: "currentColor",
|
|
5828
|
+
viewBox: "0 0 24 24",
|
|
5829
|
+
children: variant === "info" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5830
|
+
/* @__PURE__ */ jsx("path", {
|
|
5831
|
+
strokeLinecap: "round",
|
|
5832
|
+
strokeLinejoin: "round",
|
|
5833
|
+
strokeWidth: 2,
|
|
5834
|
+
d: "M12 8h.01"
|
|
5835
|
+
}),
|
|
5836
|
+
/* @__PURE__ */ jsx("path", {
|
|
5837
|
+
strokeLinecap: "round",
|
|
5838
|
+
strokeLinejoin: "round",
|
|
5839
|
+
strokeWidth: 2,
|
|
5840
|
+
d: "M11 12h1v4h1"
|
|
5841
|
+
}),
|
|
5842
|
+
/* @__PURE__ */ jsx("path", {
|
|
5843
|
+
strokeLinecap: "round",
|
|
5844
|
+
strokeLinejoin: "round",
|
|
5845
|
+
strokeWidth: 2,
|
|
5846
|
+
d: "M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z"
|
|
5847
|
+
})
|
|
5848
|
+
] }) : /* @__PURE__ */ jsx("path", {
|
|
5871
5849
|
strokeLinecap: "round",
|
|
5872
5850
|
strokeLinejoin: "round",
|
|
5873
5851
|
strokeWidth: 2,
|
|
5874
|
-
d: "
|
|
5852
|
+
d: "M5 13l4 4L19 7"
|
|
5875
5853
|
})
|
|
5876
|
-
] }) : /* @__PURE__ */ jsx("path", {
|
|
5877
|
-
strokeLinecap: "round",
|
|
5878
|
-
strokeLinejoin: "round",
|
|
5879
|
-
strokeWidth: 2,
|
|
5880
|
-
d: "M5 13l4 4L19 7"
|
|
5881
5854
|
})
|
|
5882
|
-
})
|
|
5855
|
+
}),
|
|
5856
|
+
title: title ?? (variant === "info" ? "You’re already booked" : "You’re booked!"),
|
|
5857
|
+
body: /* @__PURE__ */ jsx(BookingConfirmation, {
|
|
5858
|
+
demoEmailSuppressed,
|
|
5859
|
+
email: customerEmail,
|
|
5860
|
+
copy,
|
|
5861
|
+
messagePresentation: { kind: "plain" },
|
|
5862
|
+
noteClassName: "er-text--muted"
|
|
5863
|
+
}),
|
|
5864
|
+
secondaryBody: mailingListSignupNote ? /* @__PURE__ */ jsx(BookingMailingListNote, {
|
|
5865
|
+
note: mailingListSignupNote,
|
|
5866
|
+
context
|
|
5867
|
+
}) : void 0
|
|
5883
5868
|
}),
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
email: customerEmail,
|
|
5888
|
-
copy,
|
|
5889
|
-
messagePresentation: { kind: "plain" },
|
|
5890
|
-
noteClassName: "er-text--muted"
|
|
5869
|
+
/* @__PURE__ */ jsx(ConfirmationPaymentDetails, {
|
|
5870
|
+
summary,
|
|
5871
|
+
payment
|
|
5891
5872
|
}),
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
context
|
|
5895
|
-
}) : void 0
|
|
5896
|
-
}), /* @__PURE__ */ jsx(ConfirmationPaymentDetails, {
|
|
5897
|
-
summary,
|
|
5898
|
-
payment
|
|
5899
|
-
})] });
|
|
5873
|
+
/* @__PURE__ */ jsx(CalendarAction, { calendar })
|
|
5874
|
+
] });
|
|
5900
5875
|
};
|
|
5901
5876
|
//#endregion
|
|
5902
5877
|
//#region ../blocks/src/system/runtime/nodes/event-registration/VerifyingPaymentStep.tsx
|
|
@@ -6081,6 +6056,7 @@ function EventRegistrationSuccess(props) {
|
|
|
6081
6056
|
demoEmailSuppressed: props.demoEmailSuppressed,
|
|
6082
6057
|
customerEmail: wizard.formData.email,
|
|
6083
6058
|
summary: finished.summary,
|
|
6059
|
+
calendar: finished.calendar,
|
|
6084
6060
|
payment: finished.payment
|
|
6085
6061
|
});
|
|
6086
6062
|
}
|
|
@@ -6322,6 +6298,7 @@ function useConfiguredEventRegistrationWizard(props) {
|
|
|
6322
6298
|
},
|
|
6323
6299
|
maxTicketsNum: normalizeEventRegistrationMaxTickets(props.maxTickets ?? "5"),
|
|
6324
6300
|
mailingList: props.mailingList,
|
|
6301
|
+
siteTerms: props.siteTerms,
|
|
6325
6302
|
siteName: props.siteName
|
|
6326
6303
|
});
|
|
6327
6304
|
}
|
|
@@ -6390,6 +6367,7 @@ function EventRegistrationWizardView(viewProps) {
|
|
|
6390
6367
|
const showPortalAuthPrompt = waitlistClaimRequiresPortalLogin || wizard.step === "select-tickets" && wizard.portalAuthState !== "authenticated" && wizard.portalAuthState !== "checking" && summaryEventPricingType !== "free";
|
|
6391
6368
|
const presentation = resolveFinishedPresentation(wizard.presentation, {
|
|
6392
6369
|
events: wizard.scopedEvents,
|
|
6370
|
+
completedOutcomes: wizard.flow.completedOutcomes,
|
|
6393
6371
|
draftEvent: summaryEvent ?? null,
|
|
6394
6372
|
occurrenceContext: wizard.occurrenceContext,
|
|
6395
6373
|
display
|