@riverbankcms/sdk 0.121.0 → 0.124.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 +14 -9
- package/dist/{PreviewEditorSidebar-lZ600tJx.mjs → PreviewEditorSidebar-DBmAJJkQ.mjs} +24 -41
- package/dist/{PreviewEditorUI-CTBWzLSb.mjs → PreviewEditorUI-CfGaz9cY.mjs} +3 -3
- package/dist/{PreviewQueryProvider-BHT8CJvZ.mjs → PreviewQueryProvider-BH-3-jSj.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-DhPU58s7.mjs → SdkPreviewModeRuntime-BW9Z8j8T.mjs} +1020 -1234
- package/dist/{SiteChromeCustomizeContext-BkNvpzNZ.mjs → SiteChromeCustomizeContext-2z8moxYf.mjs} +1902 -1961
- package/dist/_dts/ai/src/contracts/proposals.d.ts +1236 -4152
- package/dist/_dts/api/src/appointmentEndpointDefinitions.d.ts +435 -0
- package/dist/_dts/api/src/bookingClosures.d.ts +3 -3
- package/dist/_dts/api/src/bookingConfig.d.ts +100 -75
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +26 -35
- package/dist/_dts/api/src/bookingRecords.d.ts +4 -15
- package/dist/_dts/api/src/bookingVerticalCatalog.d.ts +746 -0
- package/dist/_dts/api/src/bookingVerticalPreset.d.ts +38 -0
- package/dist/_dts/api/src/bookingVerticals.d.ts +11 -652
- package/dist/_dts/api/src/bookings.d.ts +11 -9
- package/dist/_dts/api/src/cache-tags.d.ts +2 -2
- package/dist/_dts/api/src/commercePortalEndpoints.d.ts +10 -10
- package/dist/_dts/api/src/common/envelope.d.ts +2 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +0 -17
- package/dist/_dts/api/src/courseEndpointDefinitions.d.ts +99 -0
- package/dist/_dts/api/src/courses.d.ts +22 -33
- package/dist/_dts/api/src/defineEndpointDefinitions.d.ts +14 -0
- package/dist/_dts/api/src/demoMutationPolicies.d.ts +4 -0
- package/dist/_dts/api/src/endpoints.d.ts +3740 -3733
- package/dist/_dts/api/src/event-destination-policy.d.ts +1 -1
- package/dist/_dts/api/src/event-presentation.d.ts +4 -9
- package/dist/_dts/api/src/index.d.ts +10 -12
- package/dist/_dts/api/src/newsletterEndpointDefinitions.d.ts +376 -0
- package/dist/_dts/api/src/participantMessaging.d.ts +2 -2
- package/dist/_dts/api/src/public/endpoints.d.ts +1 -1
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +272 -0
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +274 -0
- package/dist/_dts/api/src/publicExperience/newsletterEndpoints.d.ts +31 -0
- package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +152 -0
- package/dist/_dts/api/src/publicExperience/siteEndpoints.d.ts +95 -0
- package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +154 -0
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +10 -962
- package/dist/_dts/api/src/publicWholeSeriesEndpointDefinitions.d.ts +52 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +0 -51
- package/dist/_dts/api/src/sdkEntryReadEndpoints.d.ts +23 -0
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +1 -38
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +6 -7
- package/dist/_dts/blocks/src/PageRenderer.d.ts +4 -15
- package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +0 -16
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +6 -222
- package/dist/_dts/blocks/src/portal/types.d.ts +3 -3
- package/dist/_dts/blocks/src/subroutes/fold.d.ts +1 -14
- package/dist/_dts/blocks/src/subroutes/index.d.ts +1 -1
- package/dist/_dts/blocks/src/subroutes/kinds.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/course-details.d.ts +0 -11
- package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +3 -4
- package/dist/_dts/blocks/src/system/blocks/courses/shared/pricing.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +401 -12
- package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +9 -10
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +14 -13
- package/dist/_dts/blocks/src/system/blocks/events/event-listing.d.ts +1 -2
- package/dist/_dts/blocks/src/system/blocks/events/shared/filtering.d.ts +1 -4
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +19 -18
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +9 -11
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +2 -2
- package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +10 -10
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +10 -10
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/appointments.d.ts +162 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +59 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/courses.d.ts +134 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/discounts.d.ts +85 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +241 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/forms.d.ts +53 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/newsletter.d.ts +32 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +220 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +176 -0
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +12 -1121
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +19 -583
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +9 -276
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventFilters.d.ts +1 -12
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +2 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details/logic.d.ts +1 -18
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details/runs.d.ts +0 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/course-details.server.d.ts +1 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/courseRegistrationViewState.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/pricing.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/types.d.ts +0 -25
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseEligibility.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCoursePaymentVerification.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationActions.d.ts +35 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationPortal.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationSelection.d.ts +31 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationWizard.d.ts +80 -55
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseWaitlistSelection.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/whole-series-registration.headless.contract.d.ts +4 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.interactive.d.ts +0 -38
- package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.client.d.ts +1 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details.server.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +0 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +0 -9
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +0 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +0 -11
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +0 -21
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +24 -433
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +1 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +52 -266
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +5 -15
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventFilters.d.ts +0 -8
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +1573 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/listOptions.d.ts +1 -3
- package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +2 -3
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +2 -2
- package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +0 -5
- package/dist/_dts/content-model/src/content-types/builtins.d.ts +0 -5
- package/dist/_dts/content-model/src/templates/defaults.d.ts +6 -3
- package/dist/_dts/core/src/editor-state.d.ts +1 -13
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +1587 -115
- package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +6 -6
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +6 -1
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +27 -4
- package/dist/_dts/sdk/src/cli/commands/audit.d.ts +1 -2
- package/dist/_dts/sdk/src/cli/commands/pull-dated-offering-scope.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/pull-dry-run.d.ts +4 -6
- package/dist/_dts/sdk/src/cli/commands/push/consts.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +0 -1
- package/dist/_dts/sdk/src/cli/commands/push/verification.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/content/collectionWriters.d.ts +23 -0
- package/dist/_dts/sdk/src/cli/content/metadataAfterPush.d.ts +25 -0
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +0 -52
- package/dist/_dts/sdk/src/cli/content/writer.d.ts +3 -81
- package/dist/_dts/sdk/src/cli/site-commands/datedOfferingCommands.d.ts +6 -9
- package/dist/_dts/sdk/src/client/contentReadOperations.d.ts +40 -0
- package/dist/_dts/sdk/src/client/management/index.d.ts +1 -3
- package/dist/_dts/sdk/src/client/management/types.d.ts +3 -91
- package/dist/_dts/sdk/src/client/runtimeCacheKeys.d.ts +72 -0
- package/dist/_dts/sdk/src/client/runtimeCachePolicy.d.ts +10 -75
- package/dist/_dts/sdk/src/client/types.d.ts +7 -33
- package/dist/_dts/sdk/src/components.d.ts +1 -1
- package/dist/_dts/sdk/src/config/types.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -6
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/page.d.ts +0 -8
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +1 -34
- package/dist/_dts/sdk/src/data/prefetchBlockData.d.ts +4 -3
- package/dist/_dts/sdk/src/next/catch-all-utils.d.ts +0 -11
- package/dist/_dts/sdk/src/next/catch-all.d.ts +1 -76
- package/dist/_dts/sdk/src/next/types.d.ts +0 -19
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +7 -207
- package/dist/_dts/sdk/src/public-api/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -1
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +0 -7
- package/dist/_dts/sdk/src/rendering/helpers/templateContent.d.ts +81 -0
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +1 -51
- package/dist/_dts/sdk/src/rendering/overrides.d.ts +2 -1
- package/dist/_dts/sdk/src/routing/entrySubroutes.d.ts +6 -6
- package/dist/_dts/sdk/src/routing/index.d.ts +0 -2
- package/dist/_dts/sdk/src/routing/resolveOccurrence.d.ts +3 -3
- package/dist/_dts/sdk/src/routing/resolvePageContent.d.ts +10 -39
- package/dist/_dts/sdk/src/types/block-kinds.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/adapter.d.ts +1 -1
- package/dist/_dts/site-commands/src/appointmentCommandSchemas.d.ts +100 -0
- package/dist/_dts/site-commands/src/capabilityGaps.d.ts +2 -2
- package/dist/_dts/site-commands/src/commandContract.d.ts +1242 -0
- package/dist/_dts/site-commands/src/commandDomain.d.ts +20 -0
- package/dist/_dts/site-commands/src/commandIdentifiers.d.ts +7 -0
- package/dist/_dts/site-commands/src/commandValidation.d.ts +10 -0
- package/dist/_dts/site-commands/src/commands.d.ts +729 -2659
- package/dist/_dts/site-commands/src/domain.d.ts +1 -1
- package/dist/_dts/site-commands/src/eventCommandContent.d.ts +11 -0
- package/dist/_dts/site-commands/src/exposure.d.ts +1 -1
- package/dist/_dts/site-commands/src/index.d.ts +6 -0
- package/dist/_dts/site-commands/src/metadata.d.ts +1 -27
- package/dist/_dts/site-commands/src/planner.d.ts +1 -1
- package/dist/_dts/site-commands/src/refContributions.d.ts +1 -1
- package/dist/_dts/site-commands/src/refs.d.ts +1 -4
- package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +378 -0
- package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +46 -0
- package/dist/_dts/site-commands/src/staticExecutionGaps.d.ts +2 -2
- package/dist/_dts/site-commands/src/venueCommandMapping.d.ts +21 -0
- package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +58 -0
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +47 -24
- package/dist/cli/index.mjs +7392 -10989
- package/dist/cli/init-docs/content/cli-reference.md +5 -21
- package/dist/cli/init-docs/content/content-management.md +4 -5
- package/dist/client/{DiscountCodeDisclosure-DIWj-P9v.mjs → DiscountCodeDisclosure-DxvjKvck.mjs} +2 -2
- package/dist/client/{EventCombined.client-De8YWBSr.mjs → EventCombined.client-BydMGc4c.mjs} +5 -16
- package/dist/client/{EventListing.client-seHTjimY.mjs → EventListing.client-vpzhhysN.mjs} +3 -10
- package/dist/client/{LeafletStaticMap-BmQxFcJW.mjs → LeafletStaticMap-CB07rpf8.mjs} +1 -1
- package/dist/client/{MagicLinkForm-OoJAIUIj.mjs → MagicLinkForm-BzyRJ8VF.mjs} +2 -2
- package/dist/client/{StepIndicator-CiZ8kdPk.mjs → StepIndicator-CTcGf8Be.mjs} +2 -2
- package/dist/client/{accordion-6lnN__XJ.mjs → accordion-B-DUDLRD.mjs} +1 -1
- package/dist/client/{bookingForm-5uyqhONU.mjs → bookingForm-DSbClLcZ.mjs} +6 -6
- package/dist/client/bookings.mjs +753 -818
- package/dist/client/{carousel-Dtnifil_.mjs → carousel-B6Ccdx8M.mjs} +1 -1
- package/dist/client/{cart-5Tc5S7NV.mjs → cart-BZh8G8wM.mjs} +3 -3
- package/dist/client/{checkout-CYKKN5Hr.mjs → checkout-o6zaC-kM.mjs} +3 -3
- package/dist/client/client.mjs +7398 -7687
- package/dist/client/{context-BGZNlGXB.mjs → context-CJz1Vlsz.mjs} +40 -43
- package/dist/client/{courseRegistration-CxCBybB4.mjs → courseRegistration-Cf11pNDs.mjs} +606 -621
- package/dist/client/{eventCalendar-Xj2jZS9X.mjs → eventCalendar-BeXrdsSE.mjs} +5 -13
- package/dist/client/{eventCombined-CgcMoOgM.mjs → eventCombined-DA76PZgG.mjs} +3 -3
- package/dist/client/{eventDetails-CEAH8Edc.mjs → eventDetails-BLxg0rok.mjs} +140 -116
- package/dist/client/{eventListing-qyPVQ0wP.mjs → eventListing-tO9LheBX.mjs} +3 -3
- package/dist/client/{eventRegistration-DDu79CtL.mjs → eventRegistration-Cnene9D9.mjs} +165 -68
- package/dist/client/{form-Bc7JKI7I.mjs → form-DZf72CHB.mjs} +2 -2
- package/dist/client/{headerSection-vTku_LEl.mjs → headerSection-Hioja5Cr.mjs} +2 -2
- package/dist/client/hooks.mjs +3452 -2365
- package/dist/client/{locationMap-Bg7X4Jna.mjs → locationMap-DwhUXEix.mjs} +2 -2
- package/dist/client/{newsletterForm-lpylVdp5.mjs → newsletterForm-C350bEQf.mjs} +2 -2
- package/dist/client/{pricing-DE8fjJiT.mjs → pricing-BYWN_ATa.mjs} +3 -19
- package/dist/client/{productDetail-D7Bo2RMH.mjs → productDetail-CCqCyXgU.mjs} +3 -3
- package/dist/client/{productList-VjnZqiqN.mjs → productList-BAiNJrOU.mjs} +3 -3
- package/dist/client/{propsDecoder-DreFXjNP.mjs → propsDecoder-DeunRj6m.mjs} +210 -378
- package/dist/client/rendering/client.mjs +2541 -2813
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +5622 -4734
- package/dist/client/{shop-IRsHHbf7.mjs → shop-DUmCdBtw.mjs} +6 -6
- package/dist/client/{shop-commerce-gnI8PieZ.mjs → shop-commerce-CY27mEUr.mjs} +5 -5
- package/dist/client/{shop-commerce-store-BTbrhObn.mjs → shop-commerce-store-ChXPbWfa.mjs} +1 -1
- package/dist/client/{shopShared-D6KS2_qk.mjs → shopShared-q0kin1cv.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-DCccGCxV.mjs → useDiscountCodeUi-I-92-x2V.mjs} +2 -2
- package/dist/client/{useEventFilters-eGs3rPZQ.mjs → useEventFilters-DlcVluZh.mjs} +59 -124
- package/dist/client/{usePolling-CvSU2sur.mjs → usePolling-Bz7GFV_a.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +1115 -1043
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +1116 -1044
- package/dist/{previewAuthStore-31xH13Jc.mjs → previewAuthStore-CJX21dGi.mjs} +1119 -1044
- package/dist/{sdk-runtime-BE_vcGua.mjs → sdk-runtime-OnPM8Z69.mjs} +2 -2
- package/dist/{separator-CiffYtk3.mjs → separator-CPtfzHqA.mjs} +1 -1
- package/dist/server/components.mjs +11120 -12601
- package/dist/server/config-validation.mjs +3454 -2356
- package/dist/server/config.mjs +3454 -2356
- package/dist/server/data.mjs +3452 -2367
- package/dist/server/index.mjs +1499 -1488
- package/dist/server/next.mjs +18291 -21201
- package/dist/server/page-converter.mjs +1898 -2040
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +19666 -21153
- package/dist/server/rendering.mjs +17117 -18651
- package/dist/server/routing.mjs +3614 -2509
- package/dist/server/server.mjs +3298 -3478
- package/package.json +1 -1
- package/dist/_dts/api/src/previewContentContract.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/course.d.ts +0 -6
- package/dist/_dts/sdk/src/cli/commands/push/scopes/courses.d.ts +0 -4
- package/dist/_dts/sdk/src/client/management/courses.d.ts +0 -10
- package/dist/_dts/sdk/src/routing/resolveEntrySubroute.d.ts +0 -36
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as buildBookingPaymentSelectionViewModel, t as usePolling } from "./usePolling-
|
|
3
|
-
import { Bt as
|
|
4
|
-
import { n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
2
|
+
import { n as buildBookingPaymentSelectionViewModel, t as usePolling } from "./usePolling-Bz7GFV_a.mjs";
|
|
3
|
+
import { At as formatBookingTime, Bt as publicEventPricingMode, C as getWizardStepsForContext, Dt as formatBookingDate, Ft as toBookingTimeZone, H as resolveRuntimeEventPricing, Ht as publicEventScalarPrice, It as toScheduledBookingDateTime, Ot as formatBookingDateTime, P as formatEventPriceDisplay, S as getStepNumber, Ut as publicEventTicketTypes, Vt as publicEventPricingType, Wt as formatCurrencyAmount, X as themeButtonClassName, Y as resolveEventRegistrationScopedEvents, _ as findPreSelectedEvent, b as resolveRegistrationTarget, g as findEventByOccurrenceId, h as toRegistrationEvents, t as defineIslandPropsDecoder, v as resolveDiscountContext, x as WIZARD_STEPS, y as resolveEventRequiresPayment, yt as assertNever, zt as publicEventPricingCurrency } from "./propsDecoder-DeunRj6m.mjs";
|
|
4
|
+
import { n as useBlockApi, t as BlockApiProvider } from "./context-CJz1Vlsz.mjs";
|
|
5
5
|
import { n as isSpamProtectionEnabled, r as AltchaWidget, t as getChallengeUrl } from "./src-B833rYRr.mjs";
|
|
6
|
-
import { i as CheckIcon, n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
7
|
-
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-
|
|
8
|
-
import { n as SpinnerNode, r as formatPrice, t as StepIndicator$1 } from "./StepIndicator-
|
|
6
|
+
import { i as CheckIcon, n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-I-92-x2V.mjs";
|
|
7
|
+
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-DxvjKvck.mjs";
|
|
8
|
+
import { n as SpinnerNode, r as formatPrice, t as StepIndicator$1 } from "./StepIndicator-CTcGf8Be.mjs";
|
|
9
9
|
import { t as FeedbackMessage } from "./FeedbackMessage-ByMrs3cr.mjs";
|
|
10
10
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-AYanWFb-.mjs";
|
|
11
11
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-AGs4cE7t.mjs";
|
|
12
12
|
import { t as consumeSearchParam } from "./urlParams-D71VXFGx.mjs";
|
|
13
|
-
import { a as ClockIcon, i as LoggedInAsUser, n as logoutPortal, r as useWaitlistClaim, t as MagicLinkForm } from "./MagicLinkForm-
|
|
13
|
+
import { a as ClockIcon, i as LoggedInAsUser, n as logoutPortal, r as useWaitlistClaim, t as MagicLinkForm } from "./MagicLinkForm-BzyRJ8VF.mjs";
|
|
14
14
|
import { t as CrossIcon } from "./CrossIcon-Dn1KRKW5.mjs";
|
|
15
15
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
16
16
|
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UNsfPcYq.mjs";
|
|
@@ -408,6 +408,23 @@ function areEntitlementsDisabledForTicketCount(ticketsCount) {
|
|
|
408
408
|
return ticketsCount > 1;
|
|
409
409
|
}
|
|
410
410
|
/**
|
|
411
|
+
* Describe what redeeming a pass costs the customer.
|
|
412
|
+
*
|
|
413
|
+
* The balance is what they hold *before* this booking, so "1 of 5" means four
|
|
414
|
+
* are left afterwards. Spelling out the balance is what stops people missing
|
|
415
|
+
* that a credit is being spent at all.
|
|
416
|
+
*
|
|
417
|
+
* Always one credit: passes are only redeemable for single-ticket bookings,
|
|
418
|
+
* per {@link areEntitlementsDisabledForTicketCount}.
|
|
419
|
+
*
|
|
420
|
+
* @param creditsRemaining - Credits on the pass before this booking, if known
|
|
421
|
+
*/
|
|
422
|
+
function formatPassCreditUsageLabel(creditsRemaining) {
|
|
423
|
+
if (typeof creditsRemaining !== "number" || creditsRemaining <= 0) return "Uses 1 pass credit";
|
|
424
|
+
if (creditsRemaining === 1) return "Uses your last credit";
|
|
425
|
+
return `Uses 1 of ${creditsRemaining} credits`;
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
411
428
|
* Transform API eligibility response to internal eligibility data.
|
|
412
429
|
*
|
|
413
430
|
* @param response - The raw API response from checkEligibility
|
|
@@ -1355,6 +1372,23 @@ function isDirectPaymentOptionSelected(option, selectionState) {
|
|
|
1355
1372
|
return selectionState.kind === "valid" && selectionState.selection.collectionOptionKind === option.kind;
|
|
1356
1373
|
}
|
|
1357
1374
|
/**
|
|
1375
|
+
* Label for the button that acts on the chosen payment method.
|
|
1376
|
+
*
|
|
1377
|
+
* A pass redemption spends a credit the moment it is pressed, so the label
|
|
1378
|
+
* names the pass instead of describing the step.
|
|
1379
|
+
*/
|
|
1380
|
+
function resolvePaymentButtonText(method) {
|
|
1381
|
+
switch (method) {
|
|
1382
|
+
case "stripe": return "Continue to Payment";
|
|
1383
|
+
case "pass": return "Book using class pass";
|
|
1384
|
+
case "pass_bundle":
|
|
1385
|
+
case "membership_bundle": return "Purchase & Register";
|
|
1386
|
+
case "free":
|
|
1387
|
+
case "membership":
|
|
1388
|
+
case null: return "Complete Registration";
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
/**
|
|
1358
1392
|
* Payment Selection Step
|
|
1359
1393
|
*
|
|
1360
1394
|
* Shows payment options based on event pricing type and user eligibility.
|
|
@@ -1394,11 +1428,7 @@ const PaymentSelectionStep = ({ event, occurrenceContext, ticketsCount, email, i
|
|
|
1394
1428
|
collectionOptionKind: directPaymentFallbackKind
|
|
1395
1429
|
});
|
|
1396
1430
|
}, [directPaymentFallbackKind, onSelectionChange]);
|
|
1397
|
-
const getButtonText = useCallback(() =>
|
|
1398
|
-
if (selectedMethod === "stripe") return "Continue to Payment";
|
|
1399
|
-
if (selectedMethod === "pass_bundle" || selectedMethod === "membership_bundle") return "Purchase & Register";
|
|
1400
|
-
return "Complete Registration";
|
|
1401
|
-
}, [selectedMethod]);
|
|
1431
|
+
const getButtonText = useCallback(() => resolvePaymentButtonText(selectedMethod), [selectedMethod]);
|
|
1402
1432
|
useEffect(() => {
|
|
1403
1433
|
if (!onStateChange) return;
|
|
1404
1434
|
let status = "ready";
|
|
@@ -1945,6 +1975,21 @@ function EventRegistrationWizardContent(props) {
|
|
|
1945
1975
|
}
|
|
1946
1976
|
//#endregion
|
|
1947
1977
|
//#region ../blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.tsx
|
|
1978
|
+
/**
|
|
1979
|
+
* Label for the button that submits the details step.
|
|
1980
|
+
*
|
|
1981
|
+
* When a pass covers the booking there is no payment step to follow, so this
|
|
1982
|
+
* button is the last thing read before a credit is spent — it names the pass
|
|
1983
|
+
* rather than leaving that to the summary above it.
|
|
1984
|
+
*/
|
|
1985
|
+
function resolveDetailsButtonText(input) {
|
|
1986
|
+
const { wizard } = input;
|
|
1987
|
+
if (wizard.eligibility?.canJoinWaitlist) return "Join Waitlist";
|
|
1988
|
+
if (!input.hasWaitlistClaim && wizard.eligibility?.isFull) return "Sold out";
|
|
1989
|
+
if (wizard.paymentSelection.method === "pass") return "Book using class pass";
|
|
1990
|
+
if (wizard.paymentSelection.method === "membership") return input.fallbackText;
|
|
1991
|
+
return wizard.eventRequiresPayment ? "Continue to Payment" : input.fallbackText;
|
|
1992
|
+
}
|
|
1948
1993
|
function EventRegistrationWizardActions(props) {
|
|
1949
1994
|
const { wizard } = props;
|
|
1950
1995
|
const nextStepAfterTickets = "enter-details";
|
|
@@ -1952,12 +1997,11 @@ function EventRegistrationWizardActions(props) {
|
|
|
1952
1997
|
const hasWaitlistClaim = wizard.waitlistClaim.claim !== null;
|
|
1953
1998
|
const currentEvent = wizard.selectedEvent ?? wizard.preSelectedEvent;
|
|
1954
1999
|
const isSoldOutWithoutWaitlist = !hasWaitlistClaim && currentEvent?.availableSpots === 0 && currentEvent.waitlistEnabled !== true;
|
|
1955
|
-
const getDetailsButtonText = () => {
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
};
|
|
2000
|
+
const getDetailsButtonText = () => resolveDetailsButtonText({
|
|
2001
|
+
wizard,
|
|
2002
|
+
hasWaitlistClaim,
|
|
2003
|
+
fallbackText: props.buttonText
|
|
2004
|
+
});
|
|
1961
2005
|
switch (wizard.step) {
|
|
1962
2006
|
case "error":
|
|
1963
2007
|
case "success":
|
|
@@ -2053,6 +2097,41 @@ function isProductMethod(method) {
|
|
|
2053
2097
|
"membership_bundle"
|
|
2054
2098
|
].includes(method);
|
|
2055
2099
|
}
|
|
2100
|
+
/** Credits held on the pass the customer is about to redeem, before this booking. */
|
|
2101
|
+
function getSelectedPassCreditsRemaining(wizard) {
|
|
2102
|
+
const { method, passId } = wizard.paymentSelection;
|
|
2103
|
+
if (method !== "pass" || !passId) return null;
|
|
2104
|
+
return (wizard.eligibility?.eligiblePasses ?? []).find((candidate) => candidate.id === passId)?.creditsRemaining ?? null;
|
|
2105
|
+
}
|
|
2106
|
+
/**
|
|
2107
|
+
* Copy describing how a pass or membership covers the booking.
|
|
2108
|
+
*
|
|
2109
|
+
* Pass redemptions spend something, so they say so and name the balance;
|
|
2110
|
+
* memberships already include the class, so "Included" stays accurate.
|
|
2111
|
+
*/
|
|
2112
|
+
function resolveEntitlementSummaryCopy(method, passCreditsRemaining) {
|
|
2113
|
+
switch (method) {
|
|
2114
|
+
case "pass": return {
|
|
2115
|
+
productPrice: "1 credit",
|
|
2116
|
+
pricingNote: formatPassCreditUsageLabel(passCreditsRemaining)
|
|
2117
|
+
};
|
|
2118
|
+
case "pass_bundle": return {
|
|
2119
|
+
productPrice: null,
|
|
2120
|
+
pricingNote: "1 pass credit"
|
|
2121
|
+
};
|
|
2122
|
+
case "membership": return {
|
|
2123
|
+
productPrice: "Included",
|
|
2124
|
+
pricingNote: "Included in membership"
|
|
2125
|
+
};
|
|
2126
|
+
case "membership_bundle":
|
|
2127
|
+
case "free":
|
|
2128
|
+
case "stripe":
|
|
2129
|
+
case null: return {
|
|
2130
|
+
productPrice: null,
|
|
2131
|
+
pricingNote: "Included in membership"
|
|
2132
|
+
};
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2056
2135
|
function getSummaryRow(option, label) {
|
|
2057
2136
|
return option.summaryRows.find((row) => row.label === label)?.value ?? null;
|
|
2058
2137
|
}
|
|
@@ -2069,6 +2148,35 @@ function getSelectedDirectPaymentOption(input) {
|
|
|
2069
2148
|
const requestedKind = input.wizard.paymentSelection.collectionOptionKind ?? "upfront";
|
|
2070
2149
|
return options.find((option) => option.kind === requestedKind) ?? options.find((option) => option.kind === "upfront") ?? options[0] ?? null;
|
|
2071
2150
|
}
|
|
2151
|
+
/** Product row naming the pass or membership that covers this booking. */
|
|
2152
|
+
function EntitlementSummaryRow(props) {
|
|
2153
|
+
const { paymentSelection } = props.wizard;
|
|
2154
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
2155
|
+
className: "er-summary-bar-product",
|
|
2156
|
+
children: [/* @__PURE__ */ jsxs("div", { children: [
|
|
2157
|
+
/* @__PURE__ */ jsx("div", {
|
|
2158
|
+
className: "er-summary-bar-product-name",
|
|
2159
|
+
children: paymentSelection.productName
|
|
2160
|
+
}),
|
|
2161
|
+
props.showPassEscape && /* @__PURE__ */ jsx("button", {
|
|
2162
|
+
type: "button",
|
|
2163
|
+
className: "er-summary-bar-pass-escape",
|
|
2164
|
+
onClick: props.wizard.handleUseCardInsteadOfPass,
|
|
2165
|
+
children: "Pay by card instead"
|
|
2166
|
+
}),
|
|
2167
|
+
paymentSelection.productInterval && /* @__PURE__ */ jsx("div", {
|
|
2168
|
+
className: "er-summary-bar-product-detail",
|
|
2169
|
+
children: paymentSelection.productInterval
|
|
2170
|
+
})
|
|
2171
|
+
] }), /* @__PURE__ */ jsx("div", {
|
|
2172
|
+
className: "er-summary-bar-product-price",
|
|
2173
|
+
children: props.copy.productPrice ? /* @__PURE__ */ jsx("span", {
|
|
2174
|
+
className: "er-summary-bar-included",
|
|
2175
|
+
children: props.copy.productPrice
|
|
2176
|
+
}) : paymentSelection.productPrice ? formatPrice(paymentSelection.productPrice, paymentSelection.productCurrency ?? "usd") : null
|
|
2177
|
+
})]
|
|
2178
|
+
});
|
|
2179
|
+
}
|
|
2072
2180
|
function EventRegistrationSummaryBar(props) {
|
|
2073
2181
|
const { wizard } = props;
|
|
2074
2182
|
const summaryEvent = wizard.selectedEvent ?? wizard.preSelectedEvent;
|
|
@@ -2096,30 +2204,13 @@ function EventRegistrationSummaryBar(props) {
|
|
|
2096
2204
|
} : null;
|
|
2097
2205
|
if (!summaryTitle) return null;
|
|
2098
2206
|
const productMethod = isProductMethod(wizard.paymentSelection.method);
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
wizard.paymentSelection.method === "pass" && wizard.step === "enter-details" && /* @__PURE__ */ jsx("button", {
|
|
2107
|
-
type: "button",
|
|
2108
|
-
className: "er-summary-bar-pass-escape",
|
|
2109
|
-
onClick: wizard.handleUseCardInsteadOfPass,
|
|
2110
|
-
children: "Don't want to use your pass?"
|
|
2111
|
-
}),
|
|
2112
|
-
wizard.paymentSelection.productInterval && /* @__PURE__ */ jsx("div", {
|
|
2113
|
-
className: "er-summary-bar-product-detail",
|
|
2114
|
-
children: wizard.paymentSelection.productInterval
|
|
2115
|
-
})
|
|
2116
|
-
] }), /* @__PURE__ */ jsx("div", {
|
|
2117
|
-
className: "er-summary-bar-product-price",
|
|
2118
|
-
children: wizard.paymentSelection.method === "pass" || wizard.paymentSelection.method === "membership" ? /* @__PURE__ */ jsx("span", {
|
|
2119
|
-
className: "er-summary-bar-included",
|
|
2120
|
-
children: "Included"
|
|
2121
|
-
}) : wizard.paymentSelection.productPrice ? formatPrice(wizard.paymentSelection.productPrice, wizard.paymentSelection.productCurrency ?? "usd") : null
|
|
2122
|
-
})]
|
|
2207
|
+
const isPassRedemption = wizard.paymentSelection.method === "pass";
|
|
2208
|
+
const entitlementCopy = resolveEntitlementSummaryCopy(wizard.paymentSelection.method, getSelectedPassCreditsRemaining(wizard));
|
|
2209
|
+
const showPassEscape = isPassRedemption && (wizard.step === "enter-details" || wizard.step === "select-tickets");
|
|
2210
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [productMethod && wizard.paymentSelection.productName && /* @__PURE__ */ jsx(EntitlementSummaryRow, {
|
|
2211
|
+
wizard,
|
|
2212
|
+
copy: entitlementCopy,
|
|
2213
|
+
showPassEscape
|
|
2123
2214
|
}), /* @__PURE__ */ jsxs("div", {
|
|
2124
2215
|
className: "er-summary-bar",
|
|
2125
2216
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
@@ -2150,7 +2241,7 @@ function EventRegistrationSummaryBar(props) {
|
|
|
2150
2241
|
children: formatPrice(subtotalCents, summaryCurrency)
|
|
2151
2242
|
}), /* @__PURE__ */ jsx("div", {
|
|
2152
2243
|
className: "er-summary-bar-included",
|
|
2153
|
-
children:
|
|
2244
|
+
children: entitlementCopy.pricingNote
|
|
2154
2245
|
})] }) : flexibleBalanceSummary ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2155
2246
|
flexibleBalanceSummary.total ? /* @__PURE__ */ jsxs("div", {
|
|
2156
2247
|
className: "er-summary-bar-product-detail",
|
|
@@ -2735,6 +2826,33 @@ const eventRegistrationSubmitDeps = { savePendingRegistration };
|
|
|
2735
2826
|
function useEventRegistrationSubmit(options) {
|
|
2736
2827
|
return useEventRegistrationSubmitWithDeps(options, eventRegistrationSubmitDeps);
|
|
2737
2828
|
}
|
|
2829
|
+
/**
|
|
2830
|
+
* Describe a completed registration to the success step.
|
|
2831
|
+
*
|
|
2832
|
+
* Only pass redemptions adopt the server's message: it names the credits spent
|
|
2833
|
+
* and the balance left, which the block's copy cannot. Every other method keeps
|
|
2834
|
+
* whatever success message the site configured.
|
|
2835
|
+
*/
|
|
2836
|
+
function toRegistrationResult(result) {
|
|
2837
|
+
if (result.alreadyRegistered) {
|
|
2838
|
+
const waitlisted = result.status === "waitlist";
|
|
2839
|
+
return {
|
|
2840
|
+
status: result.status,
|
|
2841
|
+
variant: "info",
|
|
2842
|
+
title: waitlisted ? "Already waitlisted" : "Already registered",
|
|
2843
|
+
message: result.message ?? (waitlisted ? "You are already on the waitlist for this event." : "You are already registered for this event.")
|
|
2844
|
+
};
|
|
2845
|
+
}
|
|
2846
|
+
if (result.status === "waitlist") return {
|
|
2847
|
+
status: "waitlist",
|
|
2848
|
+
title: "Added to waitlist",
|
|
2849
|
+
message: result.message ?? (typeof result.waitlistPosition === "number" ? `You've been added to the waitlist (position ${result.waitlistPosition}).` : "You've been added to the waitlist.")
|
|
2850
|
+
};
|
|
2851
|
+
return {
|
|
2852
|
+
status: result.status,
|
|
2853
|
+
message: result.paymentMethod === "pass" ? result.message : void 0
|
|
2854
|
+
};
|
|
2855
|
+
}
|
|
2738
2856
|
function useEventRegistrationSubmitWithDeps(options, deps) {
|
|
2739
2857
|
return async (method, passId, membershipId, selection, submitOptions) => {
|
|
2740
2858
|
const submitOccurrenceId = options.registrationTarget?.occurrenceId;
|
|
@@ -2844,23 +2962,7 @@ function useEventRegistrationSubmitWithDeps(options, deps) {
|
|
|
2844
2962
|
}
|
|
2845
2963
|
};
|
|
2846
2964
|
}
|
|
2847
|
-
|
|
2848
|
-
const title = result.status === "waitlist" ? "Already waitlisted" : "Already registered";
|
|
2849
|
-
const fallbackMessage = result.status === "waitlist" ? "You are already on the waitlist for this event." : "You are already registered for this event.";
|
|
2850
|
-
options.setRegistrationResult({
|
|
2851
|
-
status: result.status,
|
|
2852
|
-
variant: "info",
|
|
2853
|
-
title,
|
|
2854
|
-
message: result.message ?? fallbackMessage
|
|
2855
|
-
});
|
|
2856
|
-
} else if (result.status === "waitlist") {
|
|
2857
|
-
const waitlistMessage = typeof result.waitlistPosition === "number" ? `You've been added to the waitlist (position ${result.waitlistPosition}).` : "You've been added to the waitlist.";
|
|
2858
|
-
options.setRegistrationResult({
|
|
2859
|
-
status: "waitlist",
|
|
2860
|
-
title: "Added to waitlist",
|
|
2861
|
-
message: result.message ?? waitlistMessage
|
|
2862
|
-
});
|
|
2863
|
-
} else options.setRegistrationResult({ status: result.status });
|
|
2965
|
+
options.setRegistrationResult(toRegistrationResult(result));
|
|
2864
2966
|
options.setStep("success");
|
|
2865
2967
|
return {
|
|
2866
2968
|
ok: true,
|
|
@@ -2923,16 +3025,13 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
2923
3025
|
const scopedEvents = useMemo(() => {
|
|
2924
3026
|
return resolveEventRegistrationScopedEvents(registrationEvents, {
|
|
2925
3027
|
occurrenceContext: options.occurrenceContext,
|
|
2926
|
-
subject: options.subject
|
|
2927
|
-
contentEntry: options.contentEntry
|
|
3028
|
+
subject: options.subject
|
|
2928
3029
|
});
|
|
2929
3030
|
}, [
|
|
2930
3031
|
registrationEvents,
|
|
2931
3032
|
options.occurrenceContext?.seriesId,
|
|
2932
3033
|
options.subject?.kind,
|
|
2933
|
-
options.subject?.kind === "eventSeries" ? options.subject.eventSeriesId : options.subject?.kind === "eventOffering" ? `${options.subject.eventOfferingId}:${options.subject.availableEventSeriesIds.join(",")}` : options.subject?.reason
|
|
2934
|
-
options.contentEntry?.slug,
|
|
2935
|
-
options.contentEntry?.contentTypeSlug
|
|
3034
|
+
options.subject?.kind === "eventSeries" ? options.subject.eventSeriesId : options.subject?.kind === "eventOffering" ? `${options.subject.eventOfferingId}:${options.subject.availableEventSeriesIds.join(",")}` : options.subject?.reason
|
|
2936
3035
|
]);
|
|
2937
3036
|
const preSelectedEvent = useMemo(() => findPreSelectedEvent({
|
|
2938
3037
|
scopedEvents,
|
|
@@ -3472,7 +3571,6 @@ function useEventRegistrationWizardWithDeps(options, deps) {
|
|
|
3472
3571
|
anchorId: options.anchorId,
|
|
3473
3572
|
occurrenceContext: options.occurrenceContext,
|
|
3474
3573
|
registrationTarget,
|
|
3475
|
-
contentEntry: options.contentEntry,
|
|
3476
3574
|
subject: options.subject,
|
|
3477
3575
|
events: options.events,
|
|
3478
3576
|
maxTicketsNum: waitlistClaim.claim ? 1 : options.maxTicketsNum,
|
|
@@ -3598,7 +3696,7 @@ function formatTicketTypePrice(ticketType, currency) {
|
|
|
3598
3696
|
return formatCurrencyAmount(ticketType.priceAmount, currency, { decimals: "auto" });
|
|
3599
3697
|
}
|
|
3600
3698
|
function EventRegistrationWizard(props) {
|
|
3601
|
-
const { occurrenceContext,
|
|
3699
|
+
const { occurrenceContext, subject, events, maxTickets = "5", showVenue = true, showCapacity = true, successMessage = "Thank you for registering! Check your email for confirmation details.", waitlistMessage: _waitlistMessage = "You've been added to the waitlist. We'll email you a claim link if a spot opens up.", buttonText = "Complete Registration", buttonVariant = "primary", className, spamProtectionEnabled, supportEmail, sitePasses, siteMemberships } = props;
|
|
3602
3700
|
const maxTicketsNum = normalizeEventRegistrationMaxTickets(maxTickets);
|
|
3603
3701
|
const showSpamProtection = spamProtectionEnabled ?? isSpamProtectionEnabled();
|
|
3604
3702
|
const buttonClass = themeButtonClassName({
|
|
@@ -3610,7 +3708,6 @@ function EventRegistrationWizard(props) {
|
|
|
3610
3708
|
const wizard = useEventRegistrationWizard({
|
|
3611
3709
|
anchorId: EVENT_REGISTRATION_ANCHOR_ID,
|
|
3612
3710
|
occurrenceContext: occurrenceContext ?? null,
|
|
3613
|
-
contentEntry: contentEntry ?? null,
|
|
3614
3711
|
subject: subject ?? null,
|
|
3615
3712
|
events: events ?? [],
|
|
3616
3713
|
maxTicketsNum
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as clsx } from "./clsx-DgIEfj3H.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
3
|
+
import { St as ok, X as themeButtonClassName, t as defineIslandPropsDecoder, xt as err, yt as assertNever } from "./propsDecoder-DeunRj6m.mjs";
|
|
4
|
+
import { n as useBlockApi, t as BlockApiProvider } from "./context-CJz1Vlsz.mjs";
|
|
5
5
|
import { n as isSpamProtectionEnabled, r as AltchaWidget, t as getChallengeUrl } from "./src-B833rYRr.mjs";
|
|
6
6
|
import { t as FeedbackMessage } from "./FeedbackMessage-ByMrs3cr.mjs";
|
|
7
7
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { X as themeButtonClassName, r as buildCartDisplay, t as defineIslandPropsDecoder } from "./propsDecoder-DeunRj6m.mjs";
|
|
3
3
|
import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-ClwHwYVA.mjs";
|
|
4
|
-
import { n as useCommerceCart } from "./shop-commerce-store-
|
|
4
|
+
import { n as useCommerceCart } from "./shop-commerce-store-ChXPbWfa.mjs";
|
|
5
5
|
import { t as ModalShell } from "./ModalShell-CqkBvBIC.mjs";
|
|
6
6
|
import * as React$1 from "react";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|