@riverbankcms/sdk 0.84.0 → 0.84.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PreviewEditorSidebar-HML67UDA.mjs → PreviewEditorSidebar-4PH35ZIE.mjs} +3 -3
- package/dist/{PreviewEditorUI-I4BQUU6K.mjs → PreviewEditorUI-WHMCRJGM.mjs} +11 -6
- package/dist/SdkPreviewModeRuntime-4FGSVUYI.mjs +8 -0
- package/dist/_dts/api/src/bookingConfig.d.ts +2 -0
- package/dist/_dts/api/src/index.d.ts +2 -2
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +2 -1
- package/dist/_dts/api/src/sdk-event-payment-terms.d.ts +16 -0
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +11 -2
- package/dist/_dts/api/src/sdkContracts.d.ts +3 -0
- package/dist/_dts/api/src/types.d.ts +1 -0
- package/dist/_dts/api/src/url.d.ts +12 -4
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +6 -6
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizard.d.ts +0 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/constants.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +275 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +22 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.state.d.ts +3 -303
- 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 +9 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +8 -6
- package/dist/_dts/content-editor/src/hooks/useSimpleAutosave.d.ts +8 -0
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +6 -4
- package/dist/_dts/preview-next/src/client/preview/MaintenanceModeBadge.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorUI.d.ts +2 -1
- package/dist/_dts/sdk/src/client/management/index.d.ts +1 -1
- package/dist/_dts/sdk/src/client/management/types.d.ts +6 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/{chunk-LBBPD2IW.mjs → chunk-4QNLOTES.mjs} +11 -16
- package/dist/{chunk-5E33VO6J.mjs → chunk-NFWGLRZZ.mjs} +1 -70
- package/dist/{chunk-HFMGVJCE.mjs → chunk-OCGTXHSO.mjs} +8 -7
- package/dist/{chunk-3LXFQS7T.mjs → chunk-PYDHOMEO.mjs} +1 -1
- package/dist/{chunk-6X2OVO3S.mjs → chunk-WFPYN7KA.mjs} +2 -2
- package/dist/{chunk-MSHZO4SL.mjs → chunk-ZR2GQK2A.mjs} +274 -223
- package/dist/cli/index.mjs +332 -45
- package/dist/cli/init-docs/content/agents-section.md +5 -0
- package/dist/cli/init-docs/content/cli-reference.md +13 -0
- package/dist/cli/init-docs/content/content-management.md +31 -0
- package/dist/cli/init-docs/content/getting-started.md +12 -0
- package/dist/cli/init-docs/content/workflow-add-block.md +3 -1
- package/dist/cli/init-docs/content/workflow-agent-safe-sync.md +81 -0
- package/dist/cli/init-docs/content/workflow-create-page.md +13 -3
- package/dist/cli/init-docs/content/workflow-custom-block.md +9 -0
- package/dist/cli/init-docs/content/workflow-templates.md +14 -0
- package/dist/client/{accordion-ESY65T56.mjs → accordion-2UZPBMYM.mjs} +1 -1
- package/dist/client/{bookingForm-JRFNZUHD.mjs → bookingForm-36CWQUMV.mjs} +4 -4
- package/dist/client/bookings.mjs +156 -138
- package/dist/client/{carousel-CPR5VWIP.mjs → carousel-QH77HR6X.mjs} +2 -2
- package/dist/client/{cart-ZUX5BA7O.mjs → cart-X4YK4FTW.mjs} +5 -5
- package/dist/client/{checkout-RULGBADZ.mjs → checkout-OM2BEPWD.mjs} +5 -5
- package/dist/client/{chunk-RDJFCPY3.mjs → chunk-3C2VTPWI.mjs} +34 -117
- package/dist/client/{chunk-BT6AEIKN.mjs → chunk-3DTWLTXM.mjs} +1 -1
- package/dist/client/{chunk-JWEYB4V6.mjs → chunk-4OXKTA3D.mjs} +1 -1
- package/dist/client/{chunk-URQCZD5W.mjs → chunk-52CGCQ7B.mjs} +4 -4
- package/dist/client/{chunk-52I7BGEK.mjs → chunk-7UCLJ5SP.mjs} +1 -1
- package/dist/client/{chunk-Z5OBQ5I4.mjs → chunk-F5VRX5Y6.mjs} +1 -1
- package/dist/client/{chunk-GFSQNTRW.mjs → chunk-SDIYSQAY.mjs} +0 -4
- package/dist/client/{chunk-HXPWP5EN.mjs → chunk-VGDBVNOO.mjs} +175 -14
- package/dist/client/{chunk-5ZEAZ33K.mjs → chunk-ZKUO52W3.mjs} +1 -1
- package/dist/client/client.mjs +348 -232
- package/dist/client/{courseRegistration-QTUDC35T.mjs → courseRegistration-TMKU6ABO.mjs} +4 -4
- package/dist/client/{eventCalendar-Q7NS4XLD.mjs → eventCalendar-G6TI32X6.mjs} +6 -6
- package/dist/client/{eventCombined-QAO7VUO5.mjs → eventCombined-SCKEMNAR.mjs} +6 -6
- package/dist/client/{eventDetails-WTNNU6Q3.mjs → eventDetails-XPIFXXPK.mjs} +6 -6
- package/dist/client/{eventListing-5TA2ELDT.mjs → eventListing-7QFMEMGT.mjs} +6 -6
- package/dist/client/{eventRegistration-M6USZGRF.mjs → eventRegistration-TOODSZUI.mjs} +6 -6
- package/dist/client/{form-DGVGXLMH.mjs → form-MTCMVCZT.mjs} +2 -2
- package/dist/client/{headerSection-O2AGMPCU.mjs → headerSection-Y5TMR3TW.mjs} +2 -2
- package/dist/client/hooks.mjs +315 -35
- package/dist/client/{locationMap-EJRNRIKJ.mjs → locationMap-RH2LG7FZ.mjs} +1 -1
- package/dist/client/{newsletterForm-7NTC2DTR.mjs → newsletterForm-PCAIPFMA.mjs} +2 -2
- package/dist/client/{productDetail-HH4LP53D.mjs → productDetail-OIGDR4YE.mjs} +5 -5
- package/dist/client/{productList-YVHYM2AF.mjs → productList-4MA5S2CX.mjs} +5 -5
- package/dist/client/rendering/client.mjs +312 -195
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +312 -195
- package/dist/client/{shop-UIFX7XRK.mjs → shop-WXSYV5QO.mjs} +5 -5
- package/dist/client/spam-protection.mjs +0 -4
- package/dist/preview-next/client/runtime.mjs +5 -5
- package/dist/{sdk-runtime-ZENAOYMN.mjs → sdk-runtime-QLOCYKVU.mjs} +6 -6
- package/dist/server/components.mjs +188 -61
- package/dist/server/config-validation.mjs +313 -33
- package/dist/server/config.mjs +313 -33
- package/dist/server/data.mjs +315 -35
- package/dist/server/index.mjs +10 -11
- package/dist/server/next.mjs +198 -72
- package/dist/server/page-converter.mjs +315 -35
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +188 -61
- package/dist/server/rendering.mjs +188 -61
- package/dist/server/routing.mjs +334 -34
- package/dist/server/server.mjs +331 -52
- package/package.json +1 -1
- package/dist/SdkPreviewModeRuntime-MCKMVDTK.mjs +0 -8
|
@@ -23922,19 +23922,205 @@ var init_gifting_interactive = __esm({
|
|
|
23922
23922
|
}
|
|
23923
23923
|
});
|
|
23924
23924
|
|
|
23925
|
+
// ../blocks/src/system/runtime/nodes/event-registration/wizardSteps.ts
|
|
23926
|
+
function getWizardStepsForContext(hasPreSelectedContext, needsPaymentStep) {
|
|
23927
|
+
const baseSteps = hasPreSelectedContext ? ["select-tickets", "enter-details"] : ["select-event", "select-tickets", "enter-details"];
|
|
23928
|
+
if (!needsPaymentStep) {
|
|
23929
|
+
return baseSteps;
|
|
23930
|
+
}
|
|
23931
|
+
return [...baseSteps, "select-payment"];
|
|
23932
|
+
}
|
|
23933
|
+
function getStepNumber(step, wizardSteps) {
|
|
23934
|
+
const index = wizardSteps.indexOf(step);
|
|
23935
|
+
return index >= 0 ? index + 1 : 1;
|
|
23936
|
+
}
|
|
23937
|
+
var WIZARD_STEPS;
|
|
23938
|
+
var init_wizardSteps = __esm({
|
|
23939
|
+
"../blocks/src/system/runtime/nodes/event-registration/wizardSteps.ts"() {
|
|
23940
|
+
"use strict";
|
|
23941
|
+
WIZARD_STEPS = [
|
|
23942
|
+
"select-event",
|
|
23943
|
+
"select-tickets",
|
|
23944
|
+
"enter-details",
|
|
23945
|
+
"select-payment"
|
|
23946
|
+
];
|
|
23947
|
+
}
|
|
23948
|
+
});
|
|
23949
|
+
|
|
23950
|
+
// ../blocks/src/system/runtime/nodes/event-registration/registrationDerivations.ts
|
|
23951
|
+
function eventMatchesOccurrenceId(event, occurrenceId) {
|
|
23952
|
+
return event.registrationOccurrenceId === occurrenceId || event.publicEventId === occurrenceId;
|
|
23953
|
+
}
|
|
23954
|
+
function findEventByOccurrenceId(events, occurrenceId) {
|
|
23955
|
+
return events.find((event) => eventMatchesOccurrenceId(event, occurrenceId)) ?? null;
|
|
23956
|
+
}
|
|
23957
|
+
function findPreSelectedEvent(input) {
|
|
23958
|
+
const occurrenceContext = input.occurrenceContext;
|
|
23959
|
+
if (!occurrenceContext) {
|
|
23960
|
+
return null;
|
|
23961
|
+
}
|
|
23962
|
+
const contextDate = getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
23963
|
+
startsAt: occurrenceContext.startsAt,
|
|
23964
|
+
timeZone: occurrenceContext.timeZone
|
|
23965
|
+
}));
|
|
23966
|
+
return input.scopedEvents.find(
|
|
23967
|
+
(event) => eventMatchesOccurrenceId(event, occurrenceContext.id) || getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
23968
|
+
startsAt: event.startsAt,
|
|
23969
|
+
timeZone: event.timeZone
|
|
23970
|
+
})) === contextDate
|
|
23971
|
+
) ?? null;
|
|
23972
|
+
}
|
|
23973
|
+
function resolveRegistrationTarget(input) {
|
|
23974
|
+
const occurrenceId = input.occurrenceContext?.id ?? input.selectedEvent?.registrationOccurrenceId ?? null;
|
|
23975
|
+
if (!occurrenceId) {
|
|
23976
|
+
return null;
|
|
23977
|
+
}
|
|
23978
|
+
return {
|
|
23979
|
+
occurrenceId,
|
|
23980
|
+
selectedEventId: input.selectedEvent?.publicEventId ?? null
|
|
23981
|
+
};
|
|
23982
|
+
}
|
|
23983
|
+
function resolveEventRequiresPayment(input) {
|
|
23984
|
+
if (input.eligibility) {
|
|
23985
|
+
return input.eligibility.requiresPayment;
|
|
23986
|
+
}
|
|
23987
|
+
if (input.selectedTicketType) {
|
|
23988
|
+
return input.selectedTicketType.priceAmount > 0;
|
|
23989
|
+
}
|
|
23990
|
+
if (!input.event) {
|
|
23991
|
+
return false;
|
|
23992
|
+
}
|
|
23993
|
+
return publicEventPricingType(resolveRuntimeEventPricing(input.event)) !== "free";
|
|
23994
|
+
}
|
|
23995
|
+
function resolveDiscountContext(input) {
|
|
23996
|
+
const selection = input.paymentSelection.method ? input.paymentSelection : null;
|
|
23997
|
+
if (!input.event) {
|
|
23998
|
+
return null;
|
|
23999
|
+
}
|
|
24000
|
+
if (selection?.method === "pass_bundle" && selection.bundlePassId) {
|
|
24001
|
+
return { type: "pass", passId: selection.bundlePassId };
|
|
24002
|
+
}
|
|
24003
|
+
if (selection?.method === "membership_bundle" && selection.bundleMembershipId) {
|
|
24004
|
+
return { type: "membership", membershipId: selection.bundleMembershipId };
|
|
24005
|
+
}
|
|
24006
|
+
if (!input.eventRequiresPayment) {
|
|
24007
|
+
return null;
|
|
24008
|
+
}
|
|
24009
|
+
if (selection?.method && selection.method !== "stripe") {
|
|
24010
|
+
return null;
|
|
24011
|
+
}
|
|
24012
|
+
return {
|
|
24013
|
+
type: "event",
|
|
24014
|
+
eventSeriesId: input.event.seriesId,
|
|
24015
|
+
eventCategoryId: input.event.eventCategory?.id ?? null,
|
|
24016
|
+
ticketsCount: input.ticketsCount
|
|
24017
|
+
};
|
|
24018
|
+
}
|
|
24019
|
+
var init_registrationDerivations = __esm({
|
|
24020
|
+
"../blocks/src/system/runtime/nodes/event-registration/registrationDerivations.ts"() {
|
|
24021
|
+
"use strict";
|
|
24022
|
+
init_src();
|
|
24023
|
+
init_pricing2();
|
|
24024
|
+
}
|
|
24025
|
+
});
|
|
24026
|
+
|
|
24027
|
+
// ../blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.ts
|
|
24028
|
+
function toRegistrationEvent(event) {
|
|
24029
|
+
return {
|
|
24030
|
+
...event,
|
|
24031
|
+
pricing: resolveRuntimeEventPricing(event),
|
|
24032
|
+
publicEventId: event.id,
|
|
24033
|
+
registrationOccurrenceId: event.occurrenceId
|
|
24034
|
+
};
|
|
24035
|
+
}
|
|
24036
|
+
function toRegistrationEvents(events) {
|
|
24037
|
+
return events.map(toRegistrationEvent);
|
|
24038
|
+
}
|
|
24039
|
+
var init_registrationEventAdapter = __esm({
|
|
24040
|
+
"../blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.ts"() {
|
|
24041
|
+
"use strict";
|
|
24042
|
+
init_pricing2();
|
|
24043
|
+
}
|
|
24044
|
+
});
|
|
24045
|
+
|
|
23925
24046
|
// ../blocks/src/system/runtime/nodes/event-registration.interactive.ts
|
|
23926
24047
|
import { z as z40 } from "zod";
|
|
23927
24048
|
function buildEventRegistrationDisplay(source) {
|
|
24049
|
+
const stepLabels = buildEventRegistrationShellStepLabels(source);
|
|
23928
24050
|
return {
|
|
23929
24051
|
kind: "event-registration",
|
|
23930
24052
|
state: "generic-shell",
|
|
23931
24053
|
className: source.className ?? null,
|
|
23932
24054
|
titleText: "Event registration",
|
|
23933
|
-
bodyText:
|
|
23934
|
-
stepLabels
|
|
24055
|
+
bodyText: buildEventRegistrationShellBodyText(stepLabels),
|
|
24056
|
+
stepLabels,
|
|
23935
24057
|
summaryButtonText: source.buttonText?.trim() || "Register"
|
|
23936
24058
|
};
|
|
23937
24059
|
}
|
|
24060
|
+
function buildEventRegistrationShellStepLabels(source) {
|
|
24061
|
+
const scopedEvents = scopeEventRegistrationEvents(source);
|
|
24062
|
+
if (scopedEvents.length === 0) {
|
|
24063
|
+
return EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS;
|
|
24064
|
+
}
|
|
24065
|
+
const preSelectedEvent = findPreSelectedEvent({
|
|
24066
|
+
scopedEvents,
|
|
24067
|
+
occurrenceContext: source.occurrenceContext
|
|
24068
|
+
});
|
|
24069
|
+
const hasPreSelectedContext = Boolean(source.occurrenceContext || preSelectedEvent);
|
|
24070
|
+
const needsPaymentStep = hasPreSelectedContext && preSelectedEvent ? resolveEventRequiresPayment({
|
|
24071
|
+
eligibility: null,
|
|
24072
|
+
selectedTicketType: null,
|
|
24073
|
+
event: preSelectedEvent
|
|
24074
|
+
}) : false;
|
|
24075
|
+
return getWizardStepsForContext(hasPreSelectedContext, needsPaymentStep).map((step) => shellLabelForRegistrationStep(step, scopedEvents));
|
|
24076
|
+
}
|
|
24077
|
+
function scopeEventRegistrationEvents(source) {
|
|
24078
|
+
const events = toRegistrationEvents(source.events ?? []);
|
|
24079
|
+
if (source.occurrenceContext?.seriesId) {
|
|
24080
|
+
return events.filter((event) => event.seriesId === source.occurrenceContext?.seriesId);
|
|
24081
|
+
}
|
|
24082
|
+
const entrySlug = source.contentEntry?.slug;
|
|
24083
|
+
const entryContentType = source.contentEntry?.contentTypeSlug;
|
|
24084
|
+
if (entrySlug && entryContentType && isEventContentType(entryContentType)) {
|
|
24085
|
+
return events.filter((event) => event.slug === entrySlug);
|
|
24086
|
+
}
|
|
24087
|
+
return events;
|
|
24088
|
+
}
|
|
24089
|
+
function shellLabelForRegistrationStep(step, events) {
|
|
24090
|
+
switch (step) {
|
|
24091
|
+
case "select-event":
|
|
24092
|
+
return isDateSelection(events) ? "Date" : "Event";
|
|
24093
|
+
case "select-tickets":
|
|
24094
|
+
return "Tickets";
|
|
24095
|
+
case "enter-details":
|
|
24096
|
+
return "Details";
|
|
24097
|
+
case "select-payment":
|
|
24098
|
+
return "Payment";
|
|
24099
|
+
case "error":
|
|
24100
|
+
case "success":
|
|
24101
|
+
case "submitting":
|
|
24102
|
+
case "redirecting":
|
|
24103
|
+
case "verifying-payment":
|
|
24104
|
+
case "verifying-timeout":
|
|
24105
|
+
case "payment-failed":
|
|
24106
|
+
return "Details";
|
|
24107
|
+
}
|
|
24108
|
+
}
|
|
24109
|
+
function isDateSelection(events) {
|
|
24110
|
+
const firstSeriesId = events[0]?.seriesId;
|
|
24111
|
+
return Boolean(
|
|
24112
|
+
events.length > 1 && firstSeriesId && events.every((event) => event.seriesId === firstSeriesId)
|
|
24113
|
+
);
|
|
24114
|
+
}
|
|
24115
|
+
function buildEventRegistrationShellBodyText(stepLabels) {
|
|
24116
|
+
if (stepLabels.includes("Payment")) {
|
|
24117
|
+
return "Preparing tickets, details, and payment options.";
|
|
24118
|
+
}
|
|
24119
|
+
if (stepLabels[0] === "Tickets") {
|
|
24120
|
+
return "Preparing tickets and booking details.";
|
|
24121
|
+
}
|
|
24122
|
+
return "Preparing dates, tickets, and booking details.";
|
|
24123
|
+
}
|
|
23938
24124
|
function normalizeEventRegistrationEventInput(value) {
|
|
23939
24125
|
if (!isRecord7(value)) {
|
|
23940
24126
|
return value;
|
|
@@ -23961,22 +24147,22 @@ function buildEventRegistrationInteractiveIslandProps(props2) {
|
|
|
23961
24147
|
source: props2
|
|
23962
24148
|
});
|
|
23963
24149
|
}
|
|
23964
|
-
var EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS,
|
|
24150
|
+
var EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS, EVENT_REGISTRATION_SHELL_STEP_LABELS, contentEntrySchema3, eventRegistrationPublicEventSchema, eventRegistrationSourceSchema, eventRegistrationDisplaySchema, eventRegistrationHydrationSchema, eventRegistrationRenderSchema, eventRegistrationIslandMetaCodec, eventRegistrationIslandMetaKeys, eventRegistrationBlockRuntime, eventRegistrationInteractiveIslandPropsCodec;
|
|
23965
24151
|
var init_event_registration_interactive = __esm({
|
|
23966
24152
|
"../blocks/src/system/runtime/nodes/event-registration.interactive.ts"() {
|
|
23967
24153
|
"use strict";
|
|
23968
24154
|
init_schemas2();
|
|
23969
24155
|
init_event_registration_shared();
|
|
24156
|
+
init_events();
|
|
23970
24157
|
init_pricing2();
|
|
23971
24158
|
init_islands();
|
|
23972
24159
|
init_runtime();
|
|
23973
24160
|
init_contract_schemas();
|
|
24161
|
+
init_wizardSteps();
|
|
24162
|
+
init_registrationDerivations();
|
|
24163
|
+
init_registrationEventAdapter();
|
|
23974
24164
|
EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS = ["Date", "Tickets", "Details"];
|
|
23975
|
-
[
|
|
23976
|
-
eventRegistrationGenericDateStepLabel,
|
|
23977
|
-
eventRegistrationGenericTicketsStepLabel,
|
|
23978
|
-
eventRegistrationGenericDetailsStepLabel
|
|
23979
|
-
] = EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS;
|
|
24165
|
+
EVENT_REGISTRATION_SHELL_STEP_LABELS = ["Event", "Date", "Tickets", "Details", "Payment"];
|
|
23980
24166
|
contentEntrySchema3 = z40.object({
|
|
23981
24167
|
id: z40.string(),
|
|
23982
24168
|
slug: z40.string(),
|
|
@@ -24012,11 +24198,7 @@ var init_event_registration_interactive = __esm({
|
|
|
24012
24198
|
className: z40.string().nullable(),
|
|
24013
24199
|
titleText: z40.string(),
|
|
24014
24200
|
bodyText: z40.string(),
|
|
24015
|
-
stepLabels: z40.
|
|
24016
|
-
z40.literal(eventRegistrationGenericDateStepLabel),
|
|
24017
|
-
z40.literal(eventRegistrationGenericTicketsStepLabel),
|
|
24018
|
-
z40.literal(eventRegistrationGenericDetailsStepLabel)
|
|
24019
|
-
]),
|
|
24201
|
+
stepLabels: z40.array(z40.enum(EVENT_REGISTRATION_SHELL_STEP_LABELS)).min(1),
|
|
24020
24202
|
summaryButtonText: z40.string()
|
|
24021
24203
|
});
|
|
24022
24204
|
eventRegistrationHydrationSchema = z40.object({
|
|
@@ -25145,6 +25327,15 @@ var init_timetableModel = __esm({
|
|
|
25145
25327
|
}
|
|
25146
25328
|
});
|
|
25147
25329
|
|
|
25330
|
+
// ../blocks/src/system/runtime/nodes/event-registration/constants.ts
|
|
25331
|
+
var EVENT_REGISTRATION_ANCHOR_ID;
|
|
25332
|
+
var init_constants3 = __esm({
|
|
25333
|
+
"../blocks/src/system/runtime/nodes/event-registration/constants.ts"() {
|
|
25334
|
+
"use strict";
|
|
25335
|
+
EVENT_REGISTRATION_ANCHOR_ID = "event-registration";
|
|
25336
|
+
}
|
|
25337
|
+
});
|
|
25338
|
+
|
|
25148
25339
|
// ../blocks/src/system/runtime/shared/components/FeedbackMessage.tsx
|
|
25149
25340
|
import { jsx as jsx48, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
25150
25341
|
function joinClasses4(...parts) {
|
|
@@ -28067,10 +28258,6 @@ function getCmsApiUrl() {
|
|
|
28067
28258
|
if (dashboardUrl) {
|
|
28068
28259
|
return `${dashboardUrl.replace(/\/$/, "")}/api`;
|
|
28069
28260
|
}
|
|
28070
|
-
const legacyApiUrl = process.env.NEXT_PUBLIC_CMS_API_URL;
|
|
28071
|
-
if (legacyApiUrl) {
|
|
28072
|
-
return legacyApiUrl.replace(/\/$/, "");
|
|
28073
|
-
}
|
|
28074
28261
|
throw new Error("Dashboard URL not configured. Set NEXT_PUBLIC_DASHBOARD_URL");
|
|
28075
28262
|
}
|
|
28076
28263
|
function getChallengeUrl() {
|
|
@@ -31664,11 +31851,11 @@ var init_validation2 = __esm({
|
|
|
31664
31851
|
});
|
|
31665
31852
|
|
|
31666
31853
|
// ../blocks/src/system/runtime/shared/utils/wizardSteps.ts
|
|
31667
|
-
function
|
|
31854
|
+
function getStepNumber2(step, wizardSteps) {
|
|
31668
31855
|
const index = wizardSteps.indexOf(step);
|
|
31669
31856
|
return index >= 0 ? index + 1 : 1;
|
|
31670
31857
|
}
|
|
31671
|
-
var
|
|
31858
|
+
var init_wizardSteps2 = __esm({
|
|
31672
31859
|
"../blocks/src/system/runtime/shared/utils/wizardSteps.ts"() {
|
|
31673
31860
|
"use strict";
|
|
31674
31861
|
}
|
|
@@ -31684,7 +31871,7 @@ var init_utils2 = __esm({
|
|
|
31684
31871
|
init_themePortalRoot();
|
|
31685
31872
|
init_urlParams();
|
|
31686
31873
|
init_validation2();
|
|
31687
|
-
|
|
31874
|
+
init_wizardSteps2();
|
|
31688
31875
|
}
|
|
31689
31876
|
});
|
|
31690
31877
|
|
|
@@ -32385,31 +32572,6 @@ var init_StepIndicator2 = __esm({
|
|
|
32385
32572
|
}
|
|
32386
32573
|
});
|
|
32387
32574
|
|
|
32388
|
-
// ../blocks/src/system/runtime/nodes/event-registration/wizardSteps.ts
|
|
32389
|
-
function getWizardStepsForContext(hasPreSelectedContext, needsPaymentStep) {
|
|
32390
|
-
const baseSteps = hasPreSelectedContext ? ["select-tickets", "enter-details"] : ["select-event", "select-tickets", "enter-details"];
|
|
32391
|
-
if (!needsPaymentStep) {
|
|
32392
|
-
return baseSteps;
|
|
32393
|
-
}
|
|
32394
|
-
return [...baseSteps, "select-payment"];
|
|
32395
|
-
}
|
|
32396
|
-
function getStepNumber2(step, wizardSteps) {
|
|
32397
|
-
const index = wizardSteps.indexOf(step);
|
|
32398
|
-
return index >= 0 ? index + 1 : 1;
|
|
32399
|
-
}
|
|
32400
|
-
var WIZARD_STEPS;
|
|
32401
|
-
var init_wizardSteps2 = __esm({
|
|
32402
|
-
"../blocks/src/system/runtime/nodes/event-registration/wizardSteps.ts"() {
|
|
32403
|
-
"use strict";
|
|
32404
|
-
WIZARD_STEPS = [
|
|
32405
|
-
"select-event",
|
|
32406
|
-
"select-tickets",
|
|
32407
|
-
"enter-details",
|
|
32408
|
-
"select-payment"
|
|
32409
|
-
];
|
|
32410
|
-
}
|
|
32411
|
-
});
|
|
32412
|
-
|
|
32413
32575
|
// ../blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.ts
|
|
32414
32576
|
function createInitialRegistrationFlowState(hasPreSelectedContext) {
|
|
32415
32577
|
return {
|
|
@@ -32568,7 +32730,23 @@ var init_registrationStateMachine = __esm({
|
|
|
32568
32730
|
}
|
|
32569
32731
|
});
|
|
32570
32732
|
|
|
32571
|
-
// ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.
|
|
32733
|
+
// ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.ts
|
|
32734
|
+
var DEFAULT_EVENT_REGISTRATION_MAX_TICKETS;
|
|
32735
|
+
var init_event_registration_headless_contract = __esm({
|
|
32736
|
+
"../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.ts"() {
|
|
32737
|
+
"use strict";
|
|
32738
|
+
DEFAULT_EVENT_REGISTRATION_MAX_TICKETS = 5;
|
|
32739
|
+
}
|
|
32740
|
+
});
|
|
32741
|
+
|
|
32742
|
+
// ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.ts
|
|
32743
|
+
var init_event_registration_headless_override = __esm({
|
|
32744
|
+
"../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.ts"() {
|
|
32745
|
+
"use strict";
|
|
32746
|
+
}
|
|
32747
|
+
});
|
|
32748
|
+
|
|
32749
|
+
// ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.ts
|
|
32572
32750
|
function getRegistrableStatuses(isPreview) {
|
|
32573
32751
|
return isPreview ? ["active", "draft"] : ["active"];
|
|
32574
32752
|
}
|
|
@@ -32641,11 +32819,20 @@ function missingPaymentSelection() {
|
|
|
32641
32819
|
message: "Select a payment option to continue."
|
|
32642
32820
|
};
|
|
32643
32821
|
}
|
|
32644
|
-
var
|
|
32822
|
+
var init_event_registration_headless_planning = __esm({
|
|
32823
|
+
"../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.ts"() {
|
|
32824
|
+
"use strict";
|
|
32825
|
+
init_event_registration_headless_contract();
|
|
32826
|
+
}
|
|
32827
|
+
});
|
|
32828
|
+
|
|
32829
|
+
// ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.state.ts
|
|
32645
32830
|
var init_event_registration_headless_state = __esm({
|
|
32646
32831
|
"../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.state.ts"() {
|
|
32647
32832
|
"use strict";
|
|
32648
|
-
|
|
32833
|
+
init_event_registration_headless_contract();
|
|
32834
|
+
init_event_registration_headless_override();
|
|
32835
|
+
init_event_registration_headless_planning();
|
|
32649
32836
|
}
|
|
32650
32837
|
});
|
|
32651
32838
|
|
|
@@ -33192,9 +33379,9 @@ var init_EventSelectionStep = __esm({
|
|
|
33192
33379
|
showCapacity
|
|
33193
33380
|
}) => {
|
|
33194
33381
|
const selectionMode = getEventSelectionMode(events);
|
|
33195
|
-
const
|
|
33382
|
+
const isDateSelection2 = selectionMode === "date";
|
|
33196
33383
|
return /* @__PURE__ */ jsxs50("div", { className: "er-stack", children: [
|
|
33197
|
-
/* @__PURE__ */ jsx74("h3", { className: "er-title", children:
|
|
33384
|
+
/* @__PURE__ */ jsx74("h3", { className: "er-title", children: isDateSelection2 ? "Choose a date" : "Select an event" }),
|
|
33198
33385
|
/* @__PURE__ */ jsx74("div", { className: "er-event-grid", children: events.map((event) => {
|
|
33199
33386
|
const isSelected = selectedEvent?.publicEventId === event.publicEventId;
|
|
33200
33387
|
const isSoldOut = event.capacity !== null && event.availableSpots === 0;
|
|
@@ -33222,9 +33409,9 @@ var init_EventSelectionStep = __esm({
|
|
|
33222
33409
|
className: cardClasses,
|
|
33223
33410
|
children: /* @__PURE__ */ jsxs50("div", { className: "er-event-option", children: [
|
|
33224
33411
|
/* @__PURE__ */ jsxs50("div", { className: "er-event-option-main", children: [
|
|
33225
|
-
/* @__PURE__ */ jsx74("h4", { className: "er-event-title", children:
|
|
33412
|
+
/* @__PURE__ */ jsx74("h4", { className: "er-event-title", children: isDateSelection2 ? formatDate3(event.startsAt, { timeZone }) : event.title }),
|
|
33226
33413
|
/* @__PURE__ */ jsxs50("p", { className: "er-text er-text--muted", children: [
|
|
33227
|
-
|
|
33414
|
+
isDateSelection2 ? formatTime3(event.startsAt, { timeZone }) : `${formatDate3(event.startsAt, { timeZone })} at ${formatTime3(event.startsAt, { timeZone })}`,
|
|
33228
33415
|
showVenue && event.venue && /* @__PURE__ */ jsxs50(Fragment9, { children: [
|
|
33229
33416
|
/* @__PURE__ */ jsx74("span", { "aria-hidden": "true", children: " \xB7 " }),
|
|
33230
33417
|
event.venue.name
|
|
@@ -34001,7 +34188,7 @@ var init_PaymentSelectionStep = __esm({
|
|
|
34001
34188
|
label: "Pay by Card",
|
|
34002
34189
|
detail: formatPrice(totalPrice, eligibility.currency),
|
|
34003
34190
|
selected: selectedMethod === "stripe",
|
|
34004
|
-
onClick: () => onSelectionChange({ method: "stripe" })
|
|
34191
|
+
onClick: () => onSelectionChange({ method: "stripe", collectionOptionKind: "upfront" })
|
|
34005
34192
|
}
|
|
34006
34193
|
),
|
|
34007
34194
|
isAuthenticated && eligibility.eligiblePasses.map((pass) => /* @__PURE__ */ jsx80(
|
|
@@ -34251,7 +34438,7 @@ var init_event_registration = __esm({
|
|
|
34251
34438
|
init_utils3();
|
|
34252
34439
|
init_hooks();
|
|
34253
34440
|
init_sessionStorage();
|
|
34254
|
-
|
|
34441
|
+
init_wizardSteps();
|
|
34255
34442
|
init_EventSelectionStep();
|
|
34256
34443
|
init_TicketSelectionStep();
|
|
34257
34444
|
init_AttendeeDetailsStep();
|
|
@@ -34940,6 +35127,7 @@ function useEventRegistrationSubmit(options) {
|
|
|
34940
35127
|
checkoutType,
|
|
34941
35128
|
productId: bundleProductId,
|
|
34942
35129
|
discountCode: options.discountCode.trim() ? options.discountCode.trim() : void 0,
|
|
35130
|
+
collectionOptionKind: selectionSnapshot.collectionOptionKind,
|
|
34943
35131
|
successUrl,
|
|
34944
35132
|
cancelUrl
|
|
34945
35133
|
});
|
|
@@ -35016,102 +35204,6 @@ var init_useEventRegistrationSubmit = __esm({
|
|
|
35016
35204
|
}
|
|
35017
35205
|
});
|
|
35018
35206
|
|
|
35019
|
-
// ../blocks/src/system/runtime/nodes/event-registration/registrationDerivations.ts
|
|
35020
|
-
function eventMatchesOccurrenceId(event, occurrenceId) {
|
|
35021
|
-
return event.registrationOccurrenceId === occurrenceId || event.publicEventId === occurrenceId;
|
|
35022
|
-
}
|
|
35023
|
-
function findEventByOccurrenceId(events, occurrenceId) {
|
|
35024
|
-
return events.find((event) => eventMatchesOccurrenceId(event, occurrenceId)) ?? null;
|
|
35025
|
-
}
|
|
35026
|
-
function findPreSelectedEvent(input) {
|
|
35027
|
-
const occurrenceContext = input.occurrenceContext;
|
|
35028
|
-
if (!occurrenceContext) {
|
|
35029
|
-
return null;
|
|
35030
|
-
}
|
|
35031
|
-
const contextDate = getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
35032
|
-
startsAt: occurrenceContext.startsAt,
|
|
35033
|
-
timeZone: occurrenceContext.timeZone
|
|
35034
|
-
}));
|
|
35035
|
-
return input.scopedEvents.find(
|
|
35036
|
-
(event) => eventMatchesOccurrenceId(event, occurrenceContext.id) || getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
35037
|
-
startsAt: event.startsAt,
|
|
35038
|
-
timeZone: event.timeZone
|
|
35039
|
-
})) === contextDate
|
|
35040
|
-
) ?? null;
|
|
35041
|
-
}
|
|
35042
|
-
function resolveRegistrationTarget(input) {
|
|
35043
|
-
const occurrenceId = input.occurrenceContext?.id ?? input.selectedEvent?.registrationOccurrenceId ?? null;
|
|
35044
|
-
if (!occurrenceId) {
|
|
35045
|
-
return null;
|
|
35046
|
-
}
|
|
35047
|
-
return {
|
|
35048
|
-
occurrenceId,
|
|
35049
|
-
selectedEventId: input.selectedEvent?.publicEventId ?? null
|
|
35050
|
-
};
|
|
35051
|
-
}
|
|
35052
|
-
function resolveEventRequiresPayment(input) {
|
|
35053
|
-
if (input.eligibility) {
|
|
35054
|
-
return input.eligibility.requiresPayment;
|
|
35055
|
-
}
|
|
35056
|
-
if (input.selectedTicketType) {
|
|
35057
|
-
return input.selectedTicketType.priceAmount > 0;
|
|
35058
|
-
}
|
|
35059
|
-
if (!input.event) {
|
|
35060
|
-
return false;
|
|
35061
|
-
}
|
|
35062
|
-
return publicEventPricingType(resolveRuntimeEventPricing(input.event)) !== "free";
|
|
35063
|
-
}
|
|
35064
|
-
function resolveDiscountContext(input) {
|
|
35065
|
-
const selection = input.paymentSelection.method ? input.paymentSelection : null;
|
|
35066
|
-
if (!input.event) {
|
|
35067
|
-
return null;
|
|
35068
|
-
}
|
|
35069
|
-
if (selection?.method === "pass_bundle" && selection.bundlePassId) {
|
|
35070
|
-
return { type: "pass", passId: selection.bundlePassId };
|
|
35071
|
-
}
|
|
35072
|
-
if (selection?.method === "membership_bundle" && selection.bundleMembershipId) {
|
|
35073
|
-
return { type: "membership", membershipId: selection.bundleMembershipId };
|
|
35074
|
-
}
|
|
35075
|
-
if (!input.eventRequiresPayment) {
|
|
35076
|
-
return null;
|
|
35077
|
-
}
|
|
35078
|
-
if (selection?.method && selection.method !== "stripe") {
|
|
35079
|
-
return null;
|
|
35080
|
-
}
|
|
35081
|
-
return {
|
|
35082
|
-
type: "event",
|
|
35083
|
-
eventSeriesId: input.event.seriesId,
|
|
35084
|
-
eventCategoryId: input.event.eventCategory?.id ?? null,
|
|
35085
|
-
ticketsCount: input.ticketsCount
|
|
35086
|
-
};
|
|
35087
|
-
}
|
|
35088
|
-
var init_registrationDerivations = __esm({
|
|
35089
|
-
"../blocks/src/system/runtime/nodes/event-registration/registrationDerivations.ts"() {
|
|
35090
|
-
"use strict";
|
|
35091
|
-
init_src();
|
|
35092
|
-
init_pricing2();
|
|
35093
|
-
}
|
|
35094
|
-
});
|
|
35095
|
-
|
|
35096
|
-
// ../blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.ts
|
|
35097
|
-
function toRegistrationEvent(event) {
|
|
35098
|
-
return {
|
|
35099
|
-
...event,
|
|
35100
|
-
pricing: resolveRuntimeEventPricing(event),
|
|
35101
|
-
publicEventId: event.id,
|
|
35102
|
-
registrationOccurrenceId: event.occurrenceId
|
|
35103
|
-
};
|
|
35104
|
-
}
|
|
35105
|
-
function toRegistrationEvents(events) {
|
|
35106
|
-
return events.map(toRegistrationEvent);
|
|
35107
|
-
}
|
|
35108
|
-
var init_registrationEventAdapter = __esm({
|
|
35109
|
-
"../blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.ts"() {
|
|
35110
|
-
"use strict";
|
|
35111
|
-
init_pricing2();
|
|
35112
|
-
}
|
|
35113
|
-
});
|
|
35114
|
-
|
|
35115
35207
|
// ../blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.ts
|
|
35116
35208
|
import { useCallback as useCallback7, useEffect as useEffect14, useMemo as useMemo7, useReducer as useReducer5, useState as useState8 } from "react";
|
|
35117
35209
|
function useEventRegistrationWizard(options) {
|
|
@@ -35406,23 +35498,29 @@ function useEventRegistrationWizard(options) {
|
|
|
35406
35498
|
);
|
|
35407
35499
|
const handleDetailsComplete = async () => {
|
|
35408
35500
|
if (ticketTypeSelectionRequired && !hasValidSelectedTicketType) {
|
|
35409
|
-
|
|
35501
|
+
const message = "Select a ticket type to continue.";
|
|
35502
|
+
setErrorMessage(message);
|
|
35410
35503
|
setStep("error");
|
|
35411
|
-
return;
|
|
35504
|
+
return { ok: false, reason: "blocked", message };
|
|
35412
35505
|
}
|
|
35413
35506
|
if (!validateForm()) {
|
|
35414
35507
|
setGuestSectionShake(true);
|
|
35415
|
-
return
|
|
35508
|
+
return {
|
|
35509
|
+
ok: false,
|
|
35510
|
+
reason: "validation-failed",
|
|
35511
|
+
message: "Check the highlighted fields and try again."
|
|
35512
|
+
};
|
|
35416
35513
|
}
|
|
35417
35514
|
if (waitlistClaim.claim === null && eligibility?.isFull && !eligibility.canJoinWaitlist) {
|
|
35418
|
-
|
|
35515
|
+
const message = "This event is sold out.";
|
|
35516
|
+
setErrorMessage(message);
|
|
35419
35517
|
setStep("error");
|
|
35420
|
-
return;
|
|
35518
|
+
return { ok: false, reason: "blocked", message };
|
|
35421
35519
|
}
|
|
35422
35520
|
const shouldCollectPayment = !eligibility?.canJoinWaitlist && requiresPaymentStep({ eventRequiresPayment, paymentSelection });
|
|
35423
35521
|
if (shouldCollectPayment) {
|
|
35424
35522
|
setStep("select-payment");
|
|
35425
|
-
return;
|
|
35523
|
+
return { ok: true, outcome: "payment-step" };
|
|
35426
35524
|
}
|
|
35427
35525
|
const submitPlan = resolveEventRegistrationSubmitPlan({
|
|
35428
35526
|
paymentSelection,
|
|
@@ -35432,14 +35530,22 @@ function useEventRegistrationWizard(options) {
|
|
|
35432
35530
|
if (!submitPlan.ok) {
|
|
35433
35531
|
setErrorMessage(submitPlan.message);
|
|
35434
35532
|
setStep("error");
|
|
35435
|
-
return;
|
|
35533
|
+
return { ok: false, reason: "blocked", message: submitPlan.message };
|
|
35436
35534
|
}
|
|
35437
|
-
await handleSubmit(
|
|
35535
|
+
const submitResult = await handleSubmit(
|
|
35438
35536
|
submitPlan.args.method,
|
|
35439
35537
|
submitPlan.args.passId,
|
|
35440
35538
|
submitPlan.args.membershipId,
|
|
35441
35539
|
submitPlan.args.selection
|
|
35442
35540
|
);
|
|
35541
|
+
if (!submitResult.ok) {
|
|
35542
|
+
return {
|
|
35543
|
+
ok: false,
|
|
35544
|
+
reason: submitResult.reason === "submission-failed" ? "submission-failed" : "blocked",
|
|
35545
|
+
message: submitResult.message
|
|
35546
|
+
};
|
|
35547
|
+
}
|
|
35548
|
+
return { ok: true, outcome: "submitted" };
|
|
35443
35549
|
};
|
|
35444
35550
|
const handlePaymentSelect = async () => {
|
|
35445
35551
|
const submitPlan = resolveEventRegistrationSubmitPlan({
|
|
@@ -35807,7 +35913,7 @@ function EventRegistrationWizard(props2) {
|
|
|
35807
35913
|
return "";
|
|
35808
35914
|
}
|
|
35809
35915
|
});
|
|
35810
|
-
const currentStepNumber =
|
|
35916
|
+
const currentStepNumber = getStepNumber(wizard.step, activeWizardSteps);
|
|
35811
35917
|
const summaryEvent = wizard.selectedEvent ?? wizard.preSelectedEvent;
|
|
35812
35918
|
const summaryEventPricingType = summaryEvent ? publicEventPricingType(summaryEvent.pricing) : "free";
|
|
35813
35919
|
const waitlistClaimRequiresPortalLogin = wizard.waitlistClaim.requiresPortalLogin && wizard.portalAuthState !== "authenticated" && wizard.portalAuthState !== "checking";
|
|
@@ -35886,7 +35992,7 @@ function EventRegistrationWizard(props2) {
|
|
|
35886
35992
|
wizard.step === "error" && /* @__PURE__ */ jsx90(ErrorStep, { message: wizard.errorMessage, onRetry: wizard.handleRetry })
|
|
35887
35993
|
] }) });
|
|
35888
35994
|
}
|
|
35889
|
-
var
|
|
35995
|
+
var EVENT_PORTAL_AUTH_COPY;
|
|
35890
35996
|
var init_EventRegistrationWizard = __esm({
|
|
35891
35997
|
"../blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizard.tsx"() {
|
|
35892
35998
|
"use strict";
|
|
@@ -35894,7 +36000,7 @@ var init_EventRegistrationWizard = __esm({
|
|
|
35894
36000
|
init_src();
|
|
35895
36001
|
init_client2();
|
|
35896
36002
|
init_StepIndicator2();
|
|
35897
|
-
|
|
36003
|
+
init_wizardSteps();
|
|
35898
36004
|
init_registrationStateMachine();
|
|
35899
36005
|
init_event_registration_headless_state();
|
|
35900
36006
|
init_EventRegistrationWizardContent();
|
|
@@ -35905,8 +36011,8 @@ var init_EventRegistrationWizard = __esm({
|
|
|
35905
36011
|
init_MagicLinkForm();
|
|
35906
36012
|
init_spinner();
|
|
35907
36013
|
init_buttons();
|
|
36014
|
+
init_constants3();
|
|
35908
36015
|
init_event_registration();
|
|
35909
|
-
EVENT_REGISTRATION_ANCHOR_ID = "event-registration";
|
|
35910
36016
|
EVENT_PORTAL_AUTH_COPY = {
|
|
35911
36017
|
membership: {
|
|
35912
36018
|
title: "Have a pass or membership?",
|
|
@@ -35980,6 +36086,7 @@ var init_event_registration_client = __esm({
|
|
|
35980
36086
|
"use strict";
|
|
35981
36087
|
"use client";
|
|
35982
36088
|
init_EventRegistrationWizard();
|
|
36089
|
+
init_constants3();
|
|
35983
36090
|
init_PastOccurrenceNotice();
|
|
35984
36091
|
EventRegistrationClient = (clientProps) => {
|
|
35985
36092
|
const isPast = isPastOccurrence(clientProps.occurrenceContext?.startsAt);
|
|
@@ -37326,7 +37433,7 @@ function useCourseRegistrationWizard(props2) {
|
|
|
37326
37433
|
),
|
|
37327
37434
|
[hasPreSelectedCourse, hasCoursePayment, canUseMembership, bookingMode, isMembershipFastTrack]
|
|
37328
37435
|
);
|
|
37329
|
-
const currentStepNumber =
|
|
37436
|
+
const currentStepNumber = getStepNumber2(step, wizardSteps);
|
|
37330
37437
|
const totalSteps = wizardSteps.length;
|
|
37331
37438
|
const stepLabels = getStepLabels(wizardSteps);
|
|
37332
37439
|
const canShowPortalAuthSidebarOnCurrentStep = step !== "success" && step !== "waitlist" && step !== "error";
|
|
@@ -53217,6 +53324,7 @@ var EventListingSSR = (props2) => {
|
|
|
53217
53324
|
|
|
53218
53325
|
// ../blocks/src/system/runtime/nodes/event-registration.server.tsx
|
|
53219
53326
|
init_event_registration_interactive();
|
|
53327
|
+
init_constants3();
|
|
53220
53328
|
import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
53221
53329
|
function cx(...classes) {
|
|
53222
53330
|
return classes.filter((className) => Boolean(className)).join(" ");
|
|
@@ -53284,42 +53392,51 @@ function EventRegistrationSSR({
|
|
|
53284
53392
|
function EventRegistrationShell({
|
|
53285
53393
|
display
|
|
53286
53394
|
}) {
|
|
53287
|
-
return /* @__PURE__ */ jsx47(
|
|
53288
|
-
|
|
53289
|
-
|
|
53290
|
-
|
|
53291
|
-
|
|
53292
|
-
|
|
53293
|
-
|
|
53294
|
-
|
|
53295
|
-
|
|
53296
|
-
|
|
53297
|
-
|
|
53298
|
-
|
|
53299
|
-
|
|
53300
|
-
|
|
53301
|
-
|
|
53395
|
+
return /* @__PURE__ */ jsx47(
|
|
53396
|
+
"div",
|
|
53397
|
+
{
|
|
53398
|
+
id: EVENT_REGISTRATION_ANCHOR_ID,
|
|
53399
|
+
className: "er-container er-registration-shell",
|
|
53400
|
+
"aria-busy": "true",
|
|
53401
|
+
role: "status",
|
|
53402
|
+
children: /* @__PURE__ */ jsxs32("div", { className: "er-payment-layout er-payment-layout--no-sidebar", children: [
|
|
53403
|
+
/* @__PURE__ */ jsxs32("div", { className: "er-payment-layout-main", children: [
|
|
53404
|
+
/* @__PURE__ */ jsx47("div", { className: "er-steps-nav er-registration-shell__steps", "aria-hidden": "true", children: /* @__PURE__ */ jsx47("ol", { className: "er-steps", children: display.stepLabels.map((label, index) => {
|
|
53405
|
+
const isActive = index === 0;
|
|
53406
|
+
return /* @__PURE__ */ jsxs32("li", { className: "er-step", children: [
|
|
53407
|
+
/* @__PURE__ */ jsx47("span", { className: cx("er-step-circle", isActive && "er-step-circle--active"), children: index + 1 }),
|
|
53408
|
+
/* @__PURE__ */ jsx47("span", { className: cx("er-step-label", isActive && "er-step-label--active"), children: label }),
|
|
53409
|
+
index < display.stepLabels.length - 1 ? /* @__PURE__ */ jsx47("span", { className: "er-step-connector" }) : null
|
|
53410
|
+
] }, label);
|
|
53411
|
+
}) }) }),
|
|
53412
|
+
/* @__PURE__ */ jsxs32("div", { className: "er-stack", children: [
|
|
53413
|
+
/* @__PURE__ */ jsxs32("div", { children: [
|
|
53414
|
+
/* @__PURE__ */ jsx47("p", { className: "er-registration-shell__eyebrow", children: "Registration" }),
|
|
53415
|
+
/* @__PURE__ */ jsx47("h3", { className: "er-title er-registration-shell__title", children: display.titleText }),
|
|
53416
|
+
/* @__PURE__ */ jsx47("p", { className: "er-text er-text--muted er-registration-shell__copy", children: display.bodyText })
|
|
53417
|
+
] }),
|
|
53418
|
+
/* @__PURE__ */ jsxs32("div", { className: "er-event-grid er-registration-shell__cards", "aria-hidden": "true", children: [
|
|
53419
|
+
/* @__PURE__ */ jsxs32("div", { className: "er-event-card er-registration-shell__card", children: [
|
|
53420
|
+
/* @__PURE__ */ jsx47("div", { className: "er-registration-shell__line er-registration-shell__line--lg" }),
|
|
53421
|
+
/* @__PURE__ */ jsx47("div", { className: "er-registration-shell__line er-registration-shell__line--sm" })
|
|
53422
|
+
] }),
|
|
53423
|
+
/* @__PURE__ */ jsxs32("div", { className: "er-event-card er-registration-shell__card", children: [
|
|
53424
|
+
/* @__PURE__ */ jsx47("div", { className: "er-registration-shell__line er-registration-shell__line--md" }),
|
|
53425
|
+
/* @__PURE__ */ jsx47("div", { className: "er-registration-shell__line er-registration-shell__line--xs" })
|
|
53426
|
+
] })
|
|
53427
|
+
] })
|
|
53428
|
+
] })
|
|
53302
53429
|
] }),
|
|
53303
|
-
/* @__PURE__ */ jsxs32("div", { className: "er-
|
|
53304
|
-
/* @__PURE__ */ jsxs32("div", { className: "er-
|
|
53305
|
-
/* @__PURE__ */ jsx47("div", { className: "er-registration-shell__line er-registration-shell__line--lg" }),
|
|
53306
|
-
/* @__PURE__ */ jsx47("div", { className: "er-registration-shell__line er-registration-shell__line--sm" })
|
|
53307
|
-
] }),
|
|
53308
|
-
/* @__PURE__ */ jsxs32("div", { className: "er-event-card er-registration-shell__card", children: [
|
|
53430
|
+
/* @__PURE__ */ jsx47("div", { className: "er-payment-layout-footer", children: /* @__PURE__ */ jsxs32("div", { className: "er-summary-bar er-registration-shell__summary", "aria-hidden": "true", children: [
|
|
53431
|
+
/* @__PURE__ */ jsxs32("div", { className: "er-summary-bar-info", children: [
|
|
53309
53432
|
/* @__PURE__ */ jsx47("div", { className: "er-registration-shell__line er-registration-shell__line--md" }),
|
|
53310
53433
|
/* @__PURE__ */ jsx47("div", { className: "er-registration-shell__line er-registration-shell__line--xs" })
|
|
53311
|
-
] })
|
|
53312
|
-
|
|
53434
|
+
] }),
|
|
53435
|
+
/* @__PURE__ */ jsx47("div", { className: "er-registration-shell__button-placeholder", children: display.summaryButtonText })
|
|
53436
|
+
] }) })
|
|
53313
53437
|
] })
|
|
53314
|
-
|
|
53315
|
-
|
|
53316
|
-
/* @__PURE__ */ jsxs32("div", { className: "er-summary-bar-info", children: [
|
|
53317
|
-
/* @__PURE__ */ jsx47("div", { className: "er-registration-shell__line er-registration-shell__line--md" }),
|
|
53318
|
-
/* @__PURE__ */ jsx47("div", { className: "er-registration-shell__line er-registration-shell__line--xs" })
|
|
53319
|
-
] }),
|
|
53320
|
-
/* @__PURE__ */ jsx47("div", { className: "er-registration-shell__button-placeholder", children: display.summaryButtonText })
|
|
53321
|
-
] }) })
|
|
53322
|
-
] }) });
|
|
53438
|
+
}
|
|
53439
|
+
);
|
|
53323
53440
|
}
|
|
53324
53441
|
var event_registration_server_default = EventRegistrationSSR;
|
|
53325
53442
|
|